From 5b1d8c65dc971c6250d360c97dc2cca294495813 Mon Sep 17 00:00:00 2001 From: Juan Cisneros Date: Tue, 28 May 2024 22:29:51 -0500 Subject: [PATCH] New Features: 1. Menu Added, and will not show if on Login or Register pages New Pages: Bugs Corrected: To Be Corrected: --- src/app/app-routing.module.ts | 2 +- src/app/app.component.html | 23 +++++++++++++- src/app/app.component.ts | 30 +++++++++++++++++-- src/app/home/home.page.html | 12 ++------ www/5075.1962af4f40e84068.js | 1 + www/5075.69f1387a10a41fbb.js | 1 - www/index.html | 4 +-- www/main.448900f4ab7d59b4.js | 1 - www/main.c60d77526e4a53bb.js | 1 + www/runtime.5c6cf64da62ae198.js | 1 + www/runtime.740f2252166f27e0.js | 1 - ...a28a4f.css => styles.fbc08642ef693048.css} | 2 +- 12 files changed, 59 insertions(+), 20 deletions(-) create mode 100644 www/5075.1962af4f40e84068.js delete mode 100644 www/5075.69f1387a10a41fbb.js delete mode 100644 www/main.448900f4ab7d59b4.js create mode 100644 www/main.c60d77526e4a53bb.js create mode 100644 www/runtime.5c6cf64da62ae198.js delete mode 100644 www/runtime.740f2252166f27e0.js rename www/{styles.502aa233b7a28a4f.css => styles.fbc08642ef693048.css} (96%) diff --git a/src/app/app-routing.module.ts b/src/app/app-routing.module.ts index a6f3b9b..6ad7bc8 100644 --- a/src/app/app-routing.module.ts +++ b/src/app/app-routing.module.ts @@ -8,7 +8,7 @@ const redirectLoggedInToHome = () => redirectLoggedInTo(['home']); const routes: Routes = [ { path: '', - redirectTo: 'register', + redirectTo: 'login', pathMatch: 'full' }, { diff --git a/src/app/app.component.html b/src/app/app.component.html index 13b9677..37a3484 100644 --- a/src/app/app.component.html +++ b/src/app/app.component.html @@ -1,3 +1,24 @@ - + + + + + + Menu + + + + + + + + + {{item.title}} + + + + + + + diff --git a/src/app/app.component.ts b/src/app/app.component.ts index 913de3d..e0282dd 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -1,10 +1,34 @@ -import { Component } from '@angular/core'; +import { Component, OnInit } from '@angular/core'; +import { Router, NavigationEnd } from '@angular/router'; +import { MenuController } from '@ionic/angular'; @Component({ selector: 'app-root', templateUrl: 'app.component.html', styleUrls: ['app.component.scss'], }) -export class AppComponent { - constructor() {} +export class AppComponent implements OnInit { + + menuItems = [ + { + title: 'Home', + url: '/home', + icon: 'home' + }, + ]; + + constructor(private router: Router, private menuController: MenuController) {} + + ngOnInit() { + this.router.events.subscribe((event) => { + if (event instanceof NavigationEnd) { + // Disable the menu on Login and Register pages + if (event.urlAfterRedirects.includes('/login') || event.urlAfterRedirects.includes('/register')) { + this.menuController.enable(false); + } else { + this.menuController.enable(true); + } + } + }); + } } diff --git a/src/app/home/home.page.html b/src/app/home/home.page.html index c20037f..2f12b06 100644 --- a/src/app/home/home.page.html +++ b/src/app/home/home.page.html @@ -1,18 +1,12 @@ - - Juan - + + + Inicio - - - DevProbe - - -
Ready to create an app?

Start with Ionic UI Components

diff --git a/www/5075.1962af4f40e84068.js b/www/5075.1962af4f40e84068.js new file mode 100644 index 0000000..6b5a5b3 --- /dev/null +++ b/www/5075.1962af4f40e84068.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[5075],{5075:(d,i,a)=>{a.r(i),a.d(i,{HomePageModule:()=>p});var l=a(177),r=a(7863),m=a(4341),s=a(845),e=a(4438);const u=[{path:"",component:(()=>{var n;class t{constructor(){}}return(n=t).\u0275fac=function(o){return new(o||n)},n.\u0275cmp=e.VBU({type:n,selectors:[["app-home"]],decls:15,vars:2,consts:[[3,"translucent"],["slot","start","menu","menu-id"],[3,"fullscreen"],["id","container"],["target","_blank","rel","noopener noreferrer","href","https://ionicframework.com/docs/components"],[1,"bg-amber-200","min-w-96"]],template:function(o,P){1&o&&(e.j41(0,"ion-header",0)(1,"ion-toolbar"),e.nrm(2,"ion-menu-button",1),e.j41(3,"ion-title"),e.EFF(4,"Inicio"),e.k0s()()(),e.j41(5,"ion-content",2)(6,"div",3)(7,"strong"),e.EFF(8,"Ready to create an app?"),e.k0s(),e.j41(9,"p"),e.EFF(10,"Start with Ionic "),e.j41(11,"a",4),e.EFF(12,"UI Components"),e.k0s()(),e.j41(13,"ion-button",5),e.EFF(14,"Hola"),e.k0s()()()),2&o&&(e.Y8G("translucent",!0),e.R7$(5),e.Y8G("fullscreen",!0))},dependencies:[r.Jm,r.W9,r.eU,r.MC,r.BC,r.ai],styles:["#container[_ngcontent-%COMP%]{text-align:center;position:absolute;left:0;right:0;top:50%;transform:translateY(-50%)}#container[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{font-size:20px;line-height:26px}#container[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:16px;line-height:22px;color:#8c8c8c;margin:0}#container[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{text-decoration:none}"]}),t})()}];let g=(()=>{var n;class t{}return(n=t).\u0275fac=function(o){return new(o||n)},n.\u0275mod=e.$C({type:n}),n.\u0275inj=e.G2t({imports:[s.iI.forChild(u),s.iI]}),t})(),p=(()=>{var n;class t{}return(n=t).\u0275fac=function(o){return new(o||n)},n.\u0275mod=e.$C({type:n}),n.\u0275inj=e.G2t({imports:[l.MD,m.YN,r.bv,g]}),t})()}}]); \ No newline at end of file diff --git a/www/5075.69f1387a10a41fbb.js b/www/5075.69f1387a10a41fbb.js deleted file mode 100644 index 2ae2c9f..0000000 --- a/www/5075.69f1387a10a41fbb.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[5075],{5075:(d,i,a)=>{a.r(i),a.d(i,{HomePageModule:()=>p});var l=a(177),r=a(7863),m=a(4341),s=a(845),e=a(4438);const g=[{path:"",component:(()=>{var n;class o{constructor(){}}return(n=o).\u0275fac=function(t){return new(t||n)},n.\u0275cmp=e.VBU({type:n,selectors:[["app-home"]],decls:18,vars:2,consts:[[3,"translucent"],[3,"fullscreen"],["collapse","condense"],["size","large"],["id","container"],["target","_blank","rel","noopener noreferrer","href","https://ionicframework.com/docs/components"],[1,"bg-amber-200","min-w-96"]],template:function(t,f){1&t&&(e.j41(0,"ion-header",0)(1,"ion-toolbar")(2,"ion-title"),e.EFF(3," Juan "),e.k0s()()(),e.j41(4,"ion-content",1)(5,"ion-header",2)(6,"ion-toolbar")(7,"ion-title",3),e.EFF(8,"DevProbe"),e.k0s()()(),e.j41(9,"div",4)(10,"strong"),e.EFF(11,"Ready to create an app?"),e.k0s(),e.j41(12,"p"),e.EFF(13,"Start with Ionic "),e.j41(14,"a",5),e.EFF(15,"UI Components"),e.k0s()(),e.j41(16,"ion-button",6),e.EFF(17,"Hola"),e.k0s()()()),2&t&&(e.Y8G("translucent",!0),e.R7$(4),e.Y8G("fullscreen",!0))},dependencies:[r.Jm,r.W9,r.eU,r.BC,r.ai],styles:["#container[_ngcontent-%COMP%]{text-align:center;position:absolute;left:0;right:0;top:50%;transform:translateY(-50%)}#container[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{font-size:20px;line-height:26px}#container[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:16px;line-height:22px;color:#8c8c8c;margin:0}#container[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{text-decoration:none}"]}),o})()}];let u=(()=>{var n;class o{}return(n=o).\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.$C({type:n}),n.\u0275inj=e.G2t({imports:[s.iI.forChild(g),s.iI]}),o})(),p=(()=>{var n;class o{}return(n=o).\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.$C({type:n}),n.\u0275inj=e.G2t({imports:[l.MD,m.YN,r.bv,u]}),o})()}}]); \ No newline at end of file diff --git a/www/index.html b/www/index.html index 415d372..20f535c 100644 --- a/www/index.html +++ b/www/index.html @@ -17,10 +17,10 @@ - + - + diff --git a/www/main.448900f4ab7d59b4.js b/www/main.448900f4ab7d59b4.js deleted file mode 100644 index bdf8fd4..0000000 --- a/www/main.448900f4ab7d59b4.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkapp=self.webpackChunkapp||[]).push([[8792],{1076:(En,bt,B)=>{"use strict";B.d(bt,{Am:()=>tn,FA:()=>me,Fy:()=>Ke,I9:()=>Ar,Im:()=>Yn,Ku:()=>Xe,T9:()=>vt,Tj:()=>Mt,Uj:()=>tt,XA:()=>Re,ZQ:()=>Ct,bD:()=>yt,cY:()=>je,eX:()=>q,g:()=>ae,hp:()=>gn,jZ:()=>kt,lT:()=>Be,lV:()=>en,nr:()=>Pe,sr:()=>Lt,tD:()=>Jt,u:()=>Te,yU:()=>mt,zW:()=>z});const Oe=function(re){const de=[];let Me=0;for(let Et=0;Et>6|192,de[Me++]=63&it|128):55296==(64512&it)&&Et+1>18|240,de[Me++]=it>>12&63|128,de[Me++]=it>>6&63|128,de[Me++]=63&it|128):(de[Me++]=it>>12|224,de[Me++]=it>>6&63|128,de[Me++]=63&it|128)}return de},Ie={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(re,de){if(!Array.isArray(re))throw Error("encodeByteArray takes an array as a parameter");this.init_();const Me=de?this.byteToCharMapWebSafe_:this.byteToCharMap_,Et=[];for(let it=0;it>6,yr=63&ur;gr||(yr=64,Mn||(wn=64)),Et.push(Me[hn>>2],Me[(3&hn)<<4|Kn>>4],Me[wn],Me[yr])}return Et.join("")},encodeString(re,de){return this.HAS_NATIVE_SUPPORT&&!de?btoa(re):this.encodeByteArray(Oe(re),de)},decodeString(re,de){return this.HAS_NATIVE_SUPPORT&&!de?atob(re):function(re){const de=[];let Me=0,Et=0;for(;Me191&&it<224){const hn=re[Me++];de[Et++]=String.fromCharCode((31&it)<<6|63&hn)}else if(it>239&&it<365){const gr=((7&it)<<18|(63&re[Me++])<<12|(63&re[Me++])<<6|63&re[Me++])-65536;de[Et++]=String.fromCharCode(55296+(gr>>10)),de[Et++]=String.fromCharCode(56320+(1023&gr))}else{const hn=re[Me++],Mn=re[Me++];de[Et++]=String.fromCharCode((15&it)<<12|(63&hn)<<6|63&Mn)}}return de.join("")}(this.decodeStringToByteArray(re,de))},decodeStringToByteArray(re,de){this.init_();const Me=de?this.charToByteMapWebSafe_:this.charToByteMap_,Et=[];for(let it=0;it>4),64!==ur&&(Et.push(Kn<<4&240|ur>>2),64!==xn&&Et.push(ur<<6&192|xn))}return Et},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let re=0;re=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(re)]=re,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(re)]=re)}}};class ne extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}const tt=function(re){return function(re){const de=Oe(re);return Ie.encodeByteArray(de,!0)}(re).replace(/\./g,"")},Te=function(re){try{return Ie.decodeString(re,!0)}catch(de){console.error("base64Decode failed: ",de)}return null},at=()=>{try{return function Ve(){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 re=process.env.__FIREBASE_DEFAULTS__;return re?JSON.parse(re):void 0})()||(()=>{if(typeof document>"u")return;let re;try{re=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch{return}const de=re&&Te(re[1]);return de&&JSON.parse(de)})()}catch(re){return void console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${re}`)}},Mt=re=>{var de,Me;return null===(Me=null===(de=at())||void 0===de?void 0:de.emulatorHosts)||void 0===Me?void 0:Me[re]},mt=re=>{const de=Mt(re);if(!de)return;const Me=de.lastIndexOf(":");if(Me<=0||Me+1===de.length)throw new Error(`Invalid host ${de} with no separate hostname and port!`);const Et=parseInt(de.substring(Me+1),10);return"["===de[0]?[de.substring(1,Me-1),Et]:[de.substring(0,Me),Et]},vt=()=>{var re;return null===(re=at())||void 0===re?void 0:re.config},Re=re=>{var de;return null===(de=at())||void 0===de?void 0:de[`_${re}`]};class je{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((de,Me)=>{this.resolve=de,this.reject=Me})}wrapCallback(de){return(Me,Et)=>{Me?this.reject(Me):this.resolve(Et),"function"==typeof de&&(this.promise.catch(()=>{}),1===de.length?de(Me):de(Me,Et))}}}function Ke(re,de){if(re.uid)throw new Error('The "uid" field is no longer supported by mockUserToken. Please use "sub" instead for Firebase Auth User ID.');const Et=de||"demo-project",it=re.iat||0,hn=re.sub||re.user_id;if(!hn)throw new Error("mockUserToken must contain 'sub' or 'user_id' field!");const Mn=Object.assign({iss:`https://securetoken.google.com/${Et}`,aud:Et,iat:it,exp:it+3600,auth_time:it,sub:hn,user_id:hn,firebase:{sign_in_provider:"custom",identities:{}}},re);return[tt(JSON.stringify({alg:"none",type:"JWT"})),tt(JSON.stringify(Mn)),""].join(".")}function Ct(){return typeof navigator<"u"&&"string"==typeof navigator.userAgent?navigator.userAgent:""}function kt(){return typeof window<"u"&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(Ct())}function Lt(){const re="object"==typeof chrome?chrome.runtime:"object"==typeof browser?browser.runtime:void 0;return"object"==typeof re&&void 0!==re.id}function en(){return"object"==typeof navigator&&"ReactNative"===navigator.product}function Be(){const re=Ct();return re.indexOf("MSIE ")>=0||re.indexOf("Trident/")>=0}function Pe(){return!function ze(){var re;const de=null===(re=at())||void 0===re?void 0:re.forceEnvironment;if("node"===de)return!0;if("browser"===de)return!1;try{return"[object process]"===Object.prototype.toString.call(global.process)}catch{return!1}}()&&!!navigator.userAgent&&navigator.userAgent.includes("Safari")&&!navigator.userAgent.includes("Chrome")}function z(){try{return"object"==typeof indexedDB}catch{return!1}}function q(){return new Promise((re,de)=>{try{let Me=!0;const Et="validate-browser-context-for-indexeddb-analytics-module",it=self.indexedDB.open(Et);it.onsuccess=()=>{it.result.close(),Me||self.indexedDB.deleteDatabase(Et),re(!0)},it.onupgradeneeded=()=>{Me=!1},it.onerror=()=>{var hn;de((null===(hn=it.error)||void 0===hn?void 0:hn.message)||"")}}catch(Me){de(Me)}})}class ae extends Error{constructor(de,Me,Et){super(Me),this.code=de,this.customData=Et,this.name="FirebaseError",Object.setPrototypeOf(this,ae.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,me.prototype.create)}}class me{constructor(de,Me,Et){this.service=de,this.serviceName=Me,this.errors=Et}create(de,...Me){const Et=Me[0]||{},it=`${this.service}/${de}`,hn=this.errors[de],Mn=hn?function Ae(re,de){return re.replace(ut,(Me,Et)=>{const it=de[Et];return null!=it?String(it):`<${Et}?>`})}(hn,Et):"Error";return new ae(it,`${this.serviceName}: ${Mn} (${it}).`,Et)}}const ut=/\{\$([^}]+)}/g;function Yn(re){for(const de in re)if(Object.prototype.hasOwnProperty.call(re,de))return!1;return!0}function yt(re,de){if(re===de)return!0;const Me=Object.keys(re),Et=Object.keys(de);for(const it of Me){if(!Et.includes(it))return!1;const hn=re[it],Mn=de[it];if(Ot(hn)&&Ot(Mn)){if(!yt(hn,Mn))return!1}else if(hn!==Mn)return!1}for(const it of Et)if(!Me.includes(it))return!1;return!0}function Ot(re){return null!==re&&"object"==typeof re}function tn(re){const de=[];for(const[Me,Et]of Object.entries(re))Array.isArray(Et)?Et.forEach(it=>{de.push(encodeURIComponent(Me)+"="+encodeURIComponent(it))}):de.push(encodeURIComponent(Me)+"="+encodeURIComponent(Et));return de.length?"&"+de.join("&"):""}function Ar(re){const de={};return re.replace(/^\?/,"").split("&").forEach(Et=>{if(Et){const[it,hn]=Et.split("=");de[decodeURIComponent(it)]=decodeURIComponent(hn)}}),de}function gn(re){const de=re.indexOf("?");if(!de)return"";const Me=re.indexOf("#",de);return re.substring(de,Me>0?Me:void 0)}function Jt(re,de){const Me=new Wt(re,de);return Me.subscribe.bind(Me)}class Wt{constructor(de,Me){this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Promise.resolve(),this.finalized=!1,this.onNoObservers=Me,this.task.then(()=>{de(this)}).catch(Et=>{this.error(Et)})}next(de){this.forEachObserver(Me=>{Me.next(de)})}error(de){this.forEachObserver(Me=>{Me.error(de)}),this.close(de)}complete(){this.forEachObserver(de=>{de.complete()}),this.close()}subscribe(de,Me,Et){let it;if(void 0===de&&void 0===Me&&void 0===Et)throw new Error("Missing Observer.");it=function wr(re,de){if("object"!=typeof re||null===re)return!1;for(const Me of de)if(Me in re&&"function"==typeof re[Me])return!0;return!1}(de,["next","error","complete"])?de:{next:de,error:Me,complete:Et},void 0===it.next&&(it.next=Or),void 0===it.error&&(it.error=Or),void 0===it.complete&&(it.complete=Or);const hn=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then(()=>{try{this.finalError?it.error(this.finalError):it.complete()}catch{}}),this.observers.push(it),hn}unsubscribeOne(de){void 0===this.observers||void 0===this.observers[de]||(delete this.observers[de],this.observerCount-=1,0===this.observerCount&&void 0!==this.onNoObservers&&this.onNoObservers(this))}forEachObserver(de){if(!this.finalized)for(let Me=0;Me{if(void 0!==this.observers&&void 0!==this.observers[de])try{Me(this.observers[de])}catch(Et){typeof console<"u"&&console.error&&console.error(Et)}})}close(de){this.finalized||(this.finalized=!0,void 0!==de&&(this.finalError=de),this.task.then(()=>{this.observers=void 0,this.onNoObservers=void 0}))}}function Or(){}function Xe(re){return re&&re._delegate?re._delegate:re}},4442:(En,bt,B)=>{"use strict";B.d(bt,{L:()=>Q,a:()=>Ie,b:()=>ne,c:()=>Qe,d:()=>tt,g:()=>rt}),B(5531);const Q="ionViewWillEnter",Ie="ionViewDidEnter",ne="ionViewWillLeave",Qe="ionViewDidLeave",tt="ionViewWillUnload",rt=Pe=>Pe.classList.contains("ion-page")?Pe:Pe.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")||Pe},5531:(En,bt,B)=>{"use strict";B.d(bt,{a:()=>Te,c:()=>d,g:()=>tt});class g{constructor(){this.m=new Map}reset(Pe){this.m=new Map(Object.entries(Pe))}get(Pe,z){const q=this.m.get(Pe);return void 0!==q?q:z}getBoolean(Pe,z=!1){const q=this.m.get(Pe);return void 0===q?z:"string"==typeof q?"true"===q:!!q}getNumber(Pe,z){const q=parseFloat(this.m.get(Pe));return isNaN(q)?void 0!==z?z:NaN:q}set(Pe,z){this.m.set(Pe,z)}}const d=new g,tt=rt=>_e(rt),Te=(rt,Pe)=>("string"==typeof rt&&(Pe=rt,rt=void 0),tt(rt).includes(Pe)),_e=(rt=window)=>{if(typeof rt>"u")return[];rt.Ionic=rt.Ionic||{};let Pe=rt.Ionic.platforms;return null==Pe&&(Pe=rt.Ionic.platforms=Fe(rt),Pe.forEach(z=>rt.document.documentElement.classList.add(`plt-${z}`))),Pe},Fe=rt=>{const Pe=d.get("platform");return Object.keys(en).filter(z=>{const q=null==Pe?void 0:Pe[z];return"function"==typeof q?q(rt):en[z](rt)})},Ve=rt=>!!(Tt(rt,/iPad/i)||Tt(rt,/Macintosh/i)&&vt(rt)),ct=rt=>Tt(rt,/android|sink/i),vt=rt=>Lt(rt,"(any-pointer:coarse)"),je=rt=>Ke(rt)||Ct(rt),Ke=rt=>!!(rt.cordova||rt.phonegap||rt.PhoneGap),Ct=rt=>{const Pe=rt.Capacitor;return!(null==Pe||!Pe.isNative)},Tt=(rt,Pe)=>Pe.test(rt.navigator.userAgent),Lt=(rt,Pe)=>{var z;return null===(z=rt.matchMedia)||void 0===z?void 0:z.call(rt,Pe).matches},en={ipad:Ve,iphone:rt=>Tt(rt,/iPhone/i),ios:rt=>Tt(rt,/iPhone|iPod/i)||Ve(rt),android:ct,phablet:rt=>{const Pe=rt.innerWidth,z=rt.innerHeight,q=Math.min(Pe,z),ie=Math.max(Pe,z);return q>390&&q<520&&ie>620&&ie<800},tablet:rt=>{const Pe=rt.innerWidth,z=rt.innerHeight,q=Math.min(Pe,z),ie=Math.max(Pe,z);return Ve(rt)||(rt=>ct(rt)&&!Tt(rt,/mobile/i))(rt)||q>460&&q<820&&ie>780&&ie<1400},cordova:Ke,capacitor:Ct,electron:rt=>Tt(rt,/electron/i),pwa:rt=>{var Pe;return!!(null!==(Pe=rt.matchMedia)&&void 0!==Pe&&Pe.call(rt,"(display-mode: standalone)").matches||rt.navigator.standalone)},mobile:vt,mobileweb:rt=>vt(rt)&&!je(rt),desktop:rt=>!vt(rt),hybrid:je}},9986:(En,bt,B)=>{"use strict";B.d(bt,{c:()=>Ie});var g=B(8476);let d;const Oe=(ne,Qe,tt)=>{const Te=Qe.startsWith("animation")?(ne=>(void 0===d&&(d=void 0===ne.style.animationName&&void 0!==ne.style.webkitAnimationName?"-webkit-":""),d))(ne):"";ne.style.setProperty(Te+Qe,tt)},Q=(ne=[],Qe)=>{if(void 0!==Qe){const tt=Array.isArray(Qe)?Qe:[Qe];return[...ne,...tt]}return ne},Ie=ne=>{let Qe,tt,Te,_e,Fe,Ue,at,kt,ze,Tt,Be,Ve=[],Ye=[],gt=[],ct=!1,Mt={},mt=[],vt=[],Re={},je=0,Ke=!1,Ct=!1,Lt=!0,en=!1,Dt=!0,Pt=!1;const rt=ne,Pe=[],z=[],q=[],ie=[],he=[],ae=[],me=[],Ae=[],ut=[],Vt=[],jt=[],vn="function"==typeof AnimationEffect||void 0!==g.w&&"function"==typeof g.w.AnimationEffect,bn="function"==typeof Element&&"function"==typeof Element.prototype.animate&&vn,$n=()=>jt,Yn=(Y,Z)=>{const Ne=Z.findIndex(X=>X.c===Y);Ne>-1&&Z.splice(Ne,1)},yt=(Y,Z)=>((null!=Z&&Z.oneTimeCallback?z:Pe).push({c:Y,o:Z}),Be),Qt=()=>{bn&&(jt.forEach(Y=>{Y.cancel()}),jt.length=0)},tn=()=>{ae.forEach(Y=>{null!=Y&&Y.parentNode&&Y.parentNode.removeChild(Y)}),ae.length=0},Zn=()=>void 0!==Fe?Fe:at?at.getFill():"both",Rn=()=>void 0!==kt?kt:void 0!==Ue?Ue:at?at.getDirection():"normal",Sr=()=>Ke?"linear":void 0!==Te?Te:at?at.getEasing():"linear",tr=()=>Ct?0:void 0!==ze?ze:void 0!==tt?tt:at?at.getDuration():0,Ir=()=>void 0!==_e?_e:at?at.getIterations():1,Ri=()=>void 0!==Tt?Tt:void 0!==Qe?Qe:at?at.getDelay():0,gr=()=>{0!==je&&(je--,0===je&&((()=>{ut.forEach(we=>we()),Vt.forEach(we=>we());const Y=Lt?1:0,Z=mt,Ne=vt,X=Re;ie.forEach(we=>{const ot=we.classList;Z.forEach(Kt=>ot.add(Kt)),Ne.forEach(Kt=>ot.remove(Kt));for(const Kt in X)X.hasOwnProperty(Kt)&&Oe(we,Kt,X[Kt])}),ze=void 0,kt=void 0,Tt=void 0,Pe.forEach(we=>we.c(Y,Be)),z.forEach(we=>we.c(Y,Be)),z.length=0,Dt=!0,Lt&&(en=!0),Lt=!0})(),at&&at.animationFinish()))},ri=()=>{(()=>{me.forEach(X=>X()),Ae.forEach(X=>X());const Y=Ye,Z=gt,Ne=Mt;ie.forEach(X=>{const we=X.classList;Y.forEach(ot=>we.add(ot)),Z.forEach(ot=>we.remove(ot));for(const ot in Ne)Ne.hasOwnProperty(ot)&&Oe(X,ot,Ne[ot])})})(),Ve.length>0&&bn&&(ie.forEach(Y=>{const Z=Y.animate(Ve,{id:rt,delay:Ri(),duration:tr(),easing:Sr(),iterations:Ir(),fill:Zn(),direction:Rn()});Z.pause(),jt.push(Z)}),jt.length>0&&(jt[0].onfinish=()=>{gr()})),ct=!0},xn=Y=>{Y=Math.min(Math.max(Y,0),.9999),bn&&jt.forEach(Z=>{Z.currentTime=Z.effect.getComputedTiming().delay+tr()*Y,Z.pause()})},wn=Y=>{jt.forEach(Z=>{Z.effect.updateTiming({delay:Ri(),duration:tr(),easing:Sr(),iterations:Ir(),fill:Zn(),direction:Rn()})}),void 0!==Y&&xn(Y)},yr=(Y=!1,Z=!0,Ne)=>(Y&&he.forEach(X=>{X.update(Y,Z,Ne)}),bn&&wn(Ne),Be),Li=()=>{ct&&(bn?jt.forEach(Y=>{Y.pause()}):ie.forEach(Y=>{Oe(Y,"animation-play-state","paused")}),Pt=!0)},St=Y=>new Promise(Z=>{null!=Y&&Y.sync&&(Ct=!0,yt(()=>Ct=!1,{oneTimeCallback:!0})),ct||ri(),en&&(bn&&(xn(0),wn()),en=!1),Dt&&(je=he.length+1,Dt=!1);const Ne=()=>{Yn(X,z),Z()},X=()=>{Yn(Ne,q),Z()};yt(X,{oneTimeCallback:!0}),((Y,Z)=>{q.push({c:Y,o:{oneTimeCallback:!0}})})(Ne),he.forEach(we=>{we.play()}),bn?(jt.forEach(Y=>{Y.play()}),(0===Ve.length||0===ie.length)&&gr()):gr(),Pt=!1}),$t=(Y,Z)=>{const Ne=Ve[0];return void 0===Ne||void 0!==Ne.offset&&0!==Ne.offset?Ve=[{offset:0,[Y]:Z},...Ve]:Ne[Y]=Z,Be};return Be={parentAnimation:at,elements:ie,childAnimations:he,id:rt,animationFinish:gr,from:$t,to:(Y,Z)=>{const Ne=Ve[Ve.length-1];return void 0===Ne||void 0!==Ne.offset&&1!==Ne.offset?Ve=[...Ve,{offset:1,[Y]:Z}]:Ne[Y]=Z,Be},fromTo:(Y,Z,Ne)=>$t(Y,Z).to(Y,Ne),parent:Y=>(at=Y,Be),play:St,pause:()=>(he.forEach(Y=>{Y.pause()}),Li(),Be),stop:()=>{he.forEach(Y=>{Y.stop()}),ct&&(Qt(),ct=!1),Ke=!1,Ct=!1,Dt=!0,kt=void 0,ze=void 0,Tt=void 0,je=0,en=!1,Lt=!0,Pt=!1,q.forEach(Y=>Y.c(0,Be)),q.length=0},destroy:Y=>(he.forEach(Z=>{Z.destroy(Y)}),(Y=>{Qt(),Y&&tn()})(Y),ie.length=0,he.length=0,Ve.length=0,Pe.length=0,z.length=0,ct=!1,Dt=!0,Be),keyframes:Y=>{const Z=Ve!==Y;return Ve=Y,Z&&(Y=>{bn&&$n().forEach(Z=>{const Ne=Z.effect;if(Ne.setKeyframes)Ne.setKeyframes(Y);else{const X=new KeyframeEffect(Ne.target,Y,Ne.getTiming());Z.effect=X}})})(Ve),Be},addAnimation:Y=>{if(null!=Y)if(Array.isArray(Y))for(const Z of Y)Z.parent(Be),he.push(Z);else Y.parent(Be),he.push(Y);return Be},addElement:Y=>{if(null!=Y)if(1===Y.nodeType)ie.push(Y);else if(Y.length>=0)for(let Z=0;Z(Fe=Y,yr(!0),Be),direction:Y=>(Ue=Y,yr(!0),Be),iterations:Y=>(_e=Y,yr(!0),Be),duration:Y=>(!bn&&0===Y&&(Y=1),tt=Y,yr(!0),Be),easing:Y=>(Te=Y,yr(!0),Be),delay:Y=>(Qe=Y,yr(!0),Be),getWebAnimations:$n,getKeyframes:()=>Ve,getFill:Zn,getDirection:Rn,getDelay:Ri,getIterations:Ir,getEasing:Sr,getDuration:tr,afterAddRead:Y=>(ut.push(Y),Be),afterAddWrite:Y=>(Vt.push(Y),Be),afterClearStyles:(Y=[])=>{for(const Z of Y)Re[Z]="";return Be},afterStyles:(Y={})=>(Re=Y,Be),afterRemoveClass:Y=>(vt=Q(vt,Y),Be),afterAddClass:Y=>(mt=Q(mt,Y),Be),beforeAddRead:Y=>(me.push(Y),Be),beforeAddWrite:Y=>(Ae.push(Y),Be),beforeClearStyles:(Y=[])=>{for(const Z of Y)Mt[Z]="";return Be},beforeStyles:(Y={})=>(Mt=Y,Be),beforeRemoveClass:Y=>(gt=Q(gt,Y),Be),beforeAddClass:Y=>(Ye=Q(Ye,Y),Be),onFinish:yt,isRunning:()=>0!==je&&!Pt,progressStart:(Y=!1,Z)=>(he.forEach(Ne=>{Ne.progressStart(Y,Z)}),Li(),Ke=Y,ct||ri(),yr(!1,!0,Z),Be),progressStep:Y=>(he.forEach(Z=>{Z.progressStep(Y)}),xn(Y),Be),progressEnd:(Y,Z,Ne)=>(Ke=!1,he.forEach(X=>{X.progressEnd(Y,Z,Ne)}),void 0!==Ne&&(ze=Ne),en=!1,Lt=!0,0===Y?(kt="reverse"===Rn()?"normal":"reverse","reverse"===kt&&(Lt=!1),bn?(yr(),xn(1-Z)):(Tt=(1-Z)*tr()*-1,yr(!1,!1))):1===Y&&(bn?(yr(),xn(Z)):(Tt=Z*tr()*-1,yr(!1,!1))),void 0!==Y&&!at&&St(),Be)}}},464:(En,bt,B)=>{"use strict";B.d(bt,{E:()=>Te,a:()=>g,s:()=>Qe});const g=_e=>{try{if(_e instanceof ne)return _e.value;if(!Oe()||"string"!=typeof _e||""===_e)return _e;if(_e.includes("onload="))return"";const Fe=document.createDocumentFragment(),Ue=document.createElement("div");Fe.appendChild(Ue),Ue.innerHTML=_e,Ie.forEach(ct=>{const at=Fe.querySelectorAll(ct);for(let Mt=at.length-1;Mt>=0;Mt--){const mt=at[Mt];mt.parentNode?mt.parentNode.removeChild(mt):Fe.removeChild(mt);const vt=ge(mt);for(let Re=0;Re{if(_e.nodeType&&1!==_e.nodeType)return;if(typeof NamedNodeMap<"u"&&!(_e.attributes instanceof NamedNodeMap))return void _e.remove();for(let Ue=_e.attributes.length-1;Ue>=0;Ue--){const Ve=_e.attributes.item(Ue),Ye=Ve.name;if(!Q.includes(Ye.toLowerCase())){_e.removeAttribute(Ye);continue}const gt=Ve.value,ct=_e[Ye];(null!=gt&>.toLowerCase().includes("javascript:")||null!=ct&&ct.toLowerCase().includes("javascript:"))&&_e.removeAttribute(Ye)}const Fe=ge(_e);for(let Ue=0;Uenull!=_e.children?_e.children:_e.childNodes,Oe=()=>{var _e;const Fe=window,Ue=null===(_e=null==Fe?void 0:Fe.Ionic)||void 0===_e?void 0:_e.config;return!Ue||(Ue.get?Ue.get("sanitizerEnabled",!0):!0===Ue.sanitizerEnabled||void 0===Ue.sanitizerEnabled)},Q=["class","id","href","src","name","slot"],Ie=["script","style","iframe","meta","link","object","embed"];class ne{constructor(Fe){this.value=Fe}}const Qe=_e=>{const Fe=window,Ue=Fe.Ionic;if(!Ue||!Ue.config||"Object"===Ue.config.constructor.name)return Fe.Ionic=Fe.Ionic||{},Fe.Ionic.config=Object.assign(Object.assign({},Fe.Ionic.config),_e),Fe.Ionic.config},Te=!1},8621:(En,bt,B)=>{"use strict";B.d(bt,{C:()=>Q,a:()=>ge,d:()=>Oe});var g=B(467),d=B(4920);const ge=function(){var Ie=(0,g.A)(function*(ne,Qe,tt,Te,_e,Fe){var Ue;if(ne)return ne.attachViewToDom(Qe,tt,_e,Te);if(!(Fe||"string"==typeof tt||tt instanceof HTMLElement))throw new Error("framework delegate is missing");const Ve="string"==typeof tt?null===(Ue=Qe.ownerDocument)||void 0===Ue?void 0:Ue.createElement(tt):tt;return Te&&Te.forEach(Ye=>Ve.classList.add(Ye)),_e&&Object.assign(Ve,_e),Qe.appendChild(Ve),yield new Promise(Ye=>(0,d.c)(Ve,Ye)),Ve});return function(Qe,tt,Te,_e,Fe,Ue){return Ie.apply(this,arguments)}}(),Oe=(Ie,ne)=>{if(ne){if(Ie)return Ie.removeViewFromDom(ne.parentElement,ne);ne.remove()}return Promise.resolve()},Q=()=>{let Ie,ne;return{attachViewToDom:function(){var Te=(0,g.A)(function*(_e,Fe,Ue={},Ve=[]){var Ye,gt;let ct;if(Ie=_e,Fe){const Mt="string"==typeof Fe?null===(Ye=Ie.ownerDocument)||void 0===Ye?void 0:Ye.createElement(Fe):Fe;Ve.forEach(mt=>Mt.classList.add(mt)),Object.assign(Mt,Ue),Ie.appendChild(Mt),ct=Mt,yield new Promise(mt=>(0,d.c)(Mt,mt))}else if(Ie.children.length>0&&("ION-MODAL"===Ie.tagName||"ION-POPOVER"===Ie.tagName)&&!(ct=Ie.children[0]).classList.contains("ion-delegate-host")){const mt=null===(gt=Ie.ownerDocument)||void 0===gt?void 0:gt.createElement("div");mt.classList.add("ion-delegate-host"),Ve.forEach(vt=>mt.classList.add(vt)),mt.append(...Ie.children),Ie.appendChild(mt),ct=mt}const at=document.querySelector("ion-app")||document.body;return ne=document.createComment("ionic teleport"),Ie.parentNode.insertBefore(ne,Ie),at.appendChild(Ie),null!=ct?ct:Ie});return function(Fe,Ue){return Te.apply(this,arguments)}}(),removeViewFromDom:()=>(Ie&&ne&&(ne.parentNode.insertBefore(Ie,ne),ne.remove()),Promise.resolve())}}},1970:(En,bt,B)=>{"use strict";B.d(bt,{B:()=>Oe,G:()=>Q});class d{constructor(ne,Qe,tt,Te,_e){this.id=Qe,this.name=tt,this.disableScroll=_e,this.priority=1e6*Te+Qe,this.ctrl=ne}canStart(){return!!this.ctrl&&this.ctrl.canStart(this.name)}start(){return!!this.ctrl&&this.ctrl.start(this.name,this.id,this.priority)}capture(){if(!this.ctrl)return!1;const ne=this.ctrl.capture(this.name,this.id,this.priority);return ne&&this.disableScroll&&this.ctrl.disableScroll(this.id),ne}release(){this.ctrl&&(this.ctrl.release(this.id),this.disableScroll&&this.ctrl.enableScroll(this.id))}destroy(){this.release(),this.ctrl=void 0}}class ge{constructor(ne,Qe,tt,Te){this.id=Qe,this.disable=tt,this.disableScroll=Te,this.ctrl=ne}block(){if(this.ctrl){if(this.disable)for(const ne of this.disable)this.ctrl.disableGesture(ne,this.id);this.disableScroll&&this.ctrl.disableScroll(this.id)}}unblock(){if(this.ctrl){if(this.disable)for(const ne of this.disable)this.ctrl.enableGesture(ne,this.id);this.disableScroll&&this.ctrl.enableScroll(this.id)}}destroy(){this.unblock(),this.ctrl=void 0}}const Oe="backdrop-no-scroll",Q=new class g{constructor(){this.gestureId=0,this.requestedStart=new Map,this.disabledGestures=new Map,this.disabledScroll=new Set}createGesture(ne){var Qe;return new d(this,this.newID(),ne.name,null!==(Qe=ne.priority)&&void 0!==Qe?Qe:0,!!ne.disableScroll)}createBlocker(ne={}){return new ge(this,this.newID(),ne.disable,!!ne.disableScroll)}start(ne,Qe,tt){return this.canStart(ne)?(this.requestedStart.set(Qe,tt),!0):(this.requestedStart.delete(Qe),!1)}capture(ne,Qe,tt){if(!this.start(ne,Qe,tt))return!1;const Te=this.requestedStart;let _e=-1e4;if(Te.forEach(Fe=>{_e=Math.max(_e,Fe)}),_e===tt){this.capturedId=Qe,Te.clear();const Fe=new CustomEvent("ionGestureCaptured",{detail:{gestureName:ne}});return document.dispatchEvent(Fe),!0}return Te.delete(Qe),!1}release(ne){this.requestedStart.delete(ne),this.capturedId===ne&&(this.capturedId=void 0)}disableGesture(ne,Qe){let tt=this.disabledGestures.get(ne);void 0===tt&&(tt=new Set,this.disabledGestures.set(ne,tt)),tt.add(Qe)}enableGesture(ne,Qe){const tt=this.disabledGestures.get(ne);void 0!==tt&&tt.delete(Qe)}disableScroll(ne){this.disabledScroll.add(ne),1===this.disabledScroll.size&&document.body.classList.add(Oe)}enableScroll(ne){this.disabledScroll.delete(ne),0===this.disabledScroll.size&&document.body.classList.remove(Oe)}canStart(ne){return!(void 0!==this.capturedId||this.isDisabled(ne))}isCaptured(){return void 0!==this.capturedId}isScrollDisabled(){return this.disabledScroll.size>0}isDisabled(ne){const Qe=this.disabledGestures.get(ne);return!!(Qe&&Qe.size>0)}newID(){return this.gestureId++,this.gestureId}}},6411:(En,bt,B)=>{"use strict";B.r(bt),B.d(bt,{MENU_BACK_BUTTON_PRIORITY:()=>tt,OVERLAY_BACK_BUTTON_PRIORITY:()=>Qe,blockHardwareBackButton:()=>Ie,shouldUseCloseWatcher:()=>Q,startHardwareBackButton:()=>ne});var g=B(467),d=B(8476),ge=B(3664);B(9672);const Q=()=>ge.c.get("experimentalCloseWatcher",!1)&&void 0!==d.w&&"CloseWatcher"in d.w,Ie=()=>{document.addEventListener("backbutton",()=>{})},ne=()=>{const Te=document;let _e=!1;const Fe=()=>{if(_e)return;let Ue=0,Ve=[];const Ye=new CustomEvent("ionBackButton",{bubbles:!1,detail:{register(at,Mt){Ve.push({priority:at,handler:Mt,id:Ue++})}}});Te.dispatchEvent(Ye);const gt=function(){var at=(0,g.A)(function*(Mt){try{if(null!=Mt&&Mt.handler){const mt=Mt.handler(ct);null!=mt&&(yield mt)}}catch(mt){console.error(mt)}});return function(mt){return at.apply(this,arguments)}}(),ct=()=>{if(Ve.length>0){let at={priority:Number.MIN_SAFE_INTEGER,handler:()=>{},id:-1};Ve.forEach(Mt=>{Mt.priority>=at.priority&&(at=Mt)}),_e=!0,Ve=Ve.filter(Mt=>Mt.id!==at.id),gt(at).then(()=>_e=!1)}};ct()};if(Q()){let Ue;const Ve=()=>{null==Ue||Ue.destroy(),Ue=new d.w.CloseWatcher,Ue.onclose=()=>{Fe(),Ve()}};Ve()}else Te.addEventListener("backbutton",Fe)},Qe=100,tt=99},4920:(En,bt,B)=>{"use strict";B.d(bt,{a:()=>Qe,b:()=>tt,c:()=>ge,d:()=>Ve,e:()=>Mt,f:()=>Ue,g:()=>Te,h:()=>Q,i:()=>ne,j:()=>Ye,k:()=>Oe,l:()=>Fe,m:()=>gt,n:()=>at,o:()=>mt,p:()=>ct,r:()=>_e,s:()=>vt,t:()=>g});const g=(Re,je=0)=>new Promise(Ke=>{d(Re,je,Ke)}),d=(Re,je=0,Ke)=>{let Ct,kt;const ze={passive:!0},Lt=()=>{Ct&&Ct()},en=Dt=>{(void 0===Dt||Re===Dt.target)&&(Lt(),Ke(Dt))};return Re&&(Re.addEventListener("webkitTransitionEnd",en,ze),Re.addEventListener("transitionend",en,ze),kt=setTimeout(en,je+500),Ct=()=>{void 0!==kt&&(clearTimeout(kt),kt=void 0),Re.removeEventListener("webkitTransitionEnd",en,ze),Re.removeEventListener("transitionend",en,ze)}),Lt},ge=(Re,je)=>{Re.componentOnReady?Re.componentOnReady().then(Ke=>je(Ke)):_e(()=>je(Re))},Oe=Re=>void 0!==Re.componentOnReady,Q=(Re,je=[])=>{const Ke={};return je.forEach(Ct=>{Re.hasAttribute(Ct)&&(null!==Re.getAttribute(Ct)&&(Ke[Ct]=Re.getAttribute(Ct)),Re.removeAttribute(Ct))}),Ke},Ie=["role","aria-activedescendant","aria-atomic","aria-autocomplete","aria-braillelabel","aria-brailleroledescription","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colindextext","aria-colspan","aria-controls","aria-current","aria-describedby","aria-description","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowindextext","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext"],ne=(Re,je)=>{let Ke=Ie;return je&&je.length>0&&(Ke=Ke.filter(Ct=>!je.includes(Ct))),Q(Re,Ke)},Qe=(Re,je,Ke,Ct)=>{var kt;if(typeof window<"u"){const ze=window,Tt=null===(kt=null==ze?void 0:ze.Ionic)||void 0===kt?void 0:kt.config;if(Tt){const Lt=Tt.get("_ael");if(Lt)return Lt(Re,je,Ke,Ct);if(Tt._ael)return Tt._ael(Re,je,Ke,Ct)}}return Re.addEventListener(je,Ke,Ct)},tt=(Re,je,Ke,Ct)=>{var kt;if(typeof window<"u"){const ze=window,Tt=null===(kt=null==ze?void 0:ze.Ionic)||void 0===kt?void 0:kt.config;if(Tt){const Lt=Tt.get("_rel");if(Lt)return Lt(Re,je,Ke,Ct);if(Tt._rel)return Tt._rel(Re,je,Ke,Ct)}}return Re.removeEventListener(je,Ke,Ct)},Te=(Re,je=Re)=>Re.shadowRoot||je,_e=Re=>"function"==typeof __zone_symbol__requestAnimationFrame?__zone_symbol__requestAnimationFrame(Re):"function"==typeof requestAnimationFrame?requestAnimationFrame(Re):setTimeout(Re),Fe=Re=>!!Re.shadowRoot&&!!Re.attachShadow,Ue=Re=>{if(Re.focus(),Re.classList.contains("ion-focusable")){const je=Re.closest("ion-app");je&&je.setFocus([Re])}},Ve=(Re,je,Ke,Ct,kt)=>{if(Re||Fe(je)){let ze=je.querySelector("input.aux-input");ze||(ze=je.ownerDocument.createElement("input"),ze.type="hidden",ze.classList.add("aux-input"),je.appendChild(ze)),ze.disabled=kt,ze.name=Ke,ze.value=Ct||""}},Ye=(Re,je,Ke)=>Math.max(Re,Math.min(je,Ke)),gt=(Re,je)=>{if(!Re){const Ke="ASSERT: "+je;throw console.error(Ke),new Error(Ke)}},ct=Re=>{if(Re){const je=Re.changedTouches;if(je&&je.length>0){const Ke=je[0];return{x:Ke.clientX,y:Ke.clientY}}if(void 0!==Re.pageX)return{x:Re.pageX,y:Re.pageY}}return{x:0,y:0}},at=Re=>{const je="rtl"===document.dir;switch(Re){case"start":return je;case"end":return!je;default:throw new Error(`"${Re}" is not a valid value for [side]. Use "start" or "end" instead.`)}},Mt=(Re,je)=>{const Ke=Re._original||Re;return{_original:Re,emit:mt(Ke.emit.bind(Ke),je)}},mt=(Re,je=0)=>{let Ke;return(...Ct)=>{clearTimeout(Ke),Ke=setTimeout(Re,je,...Ct)}},vt=(Re,je)=>{if(null!=Re||(Re={}),null!=je||(je={}),Re===je)return!0;const Ke=Object.keys(Re);if(Ke.length!==Object.keys(je).length)return!1;for(const Ct of Ke)if(!(Ct in je)||Re[Ct]!==je[Ct])return!1;return!0}},5465:(En,bt,B)=>{"use strict";B.d(bt,{m:()=>Ue});var g=B(467),d=B(8476),ge=B(6411),Oe=B(4929),Q=B(4920),Ie=B(3664),ne=B(9986);const Qe=Ve=>(0,ne.c)().duration(Ve?400:300),tt=Ve=>{let Ye,gt;const ct=Ve.width+8,at=(0,ne.c)(),Mt=(0,ne.c)();Ve.isEndSide?(Ye=ct+"px",gt="0px"):(Ye=-ct+"px",gt="0px"),at.addElement(Ve.menuInnerEl).fromTo("transform",`translateX(${Ye})`,`translateX(${gt})`);const vt="ios"===(0,Ie.b)(Ve),Re=vt?.2:.25;return Mt.addElement(Ve.backdropEl).fromTo("opacity",.01,Re),Qe(vt).addAnimation([at,Mt])},Te=Ve=>{let Ye,gt;const ct=(0,Ie.b)(Ve),at=Ve.width;Ve.isEndSide?(Ye=-at+"px",gt=at+"px"):(Ye=at+"px",gt=-at+"px");const Mt=(0,ne.c)().addElement(Ve.menuInnerEl).fromTo("transform",`translateX(${gt})`,"translateX(0px)"),mt=(0,ne.c)().addElement(Ve.contentEl).fromTo("transform","translateX(0px)",`translateX(${Ye})`),vt=(0,ne.c)().addElement(Ve.backdropEl).fromTo("opacity",.01,.32);return Qe("ios"===ct).addAnimation([Mt,mt,vt])},_e=Ve=>{const Ye=(0,Ie.b)(Ve),gt=Ve.width*(Ve.isEndSide?-1:1)+"px",ct=(0,ne.c)().addElement(Ve.contentEl).fromTo("transform","translateX(0px)",`translateX(${gt})`);return Qe("ios"===Ye).addAnimation(ct)},Ue=(()=>{const Ve=new Map,Ye=[],gt=function(){var q=(0,g.A)(function*(ie){const he=yield je(ie,!0);return!!he&&he.open()});return function(he){return q.apply(this,arguments)}}(),ct=function(){var q=(0,g.A)(function*(ie){const he=yield void 0!==ie?je(ie,!0):Ke();return void 0!==he&&he.close()});return function(he){return q.apply(this,arguments)}}(),at=function(){var q=(0,g.A)(function*(ie){const he=yield je(ie,!0);return!!he&&he.toggle()});return function(he){return q.apply(this,arguments)}}(),Mt=function(){var q=(0,g.A)(function*(ie,he){const ae=yield je(he);return ae&&(ae.disabled=!ie),ae});return function(he,ae){return q.apply(this,arguments)}}(),mt=function(){var q=(0,g.A)(function*(ie,he){const ae=yield je(he);return ae&&(ae.swipeGesture=ie),ae});return function(he,ae){return q.apply(this,arguments)}}(),vt=function(){var q=(0,g.A)(function*(ie){if(null!=ie){const he=yield je(ie);return void 0!==he&&he.isOpen()}return void 0!==(yield Ke())});return function(he){return q.apply(this,arguments)}}(),Re=function(){var q=(0,g.A)(function*(ie){const he=yield je(ie);return!!he&&!he.disabled});return function(he){return q.apply(this,arguments)}}(),je=function(){var q=(0,g.A)(function*(ie,he=!1){if(yield z(),"start"===ie||"end"===ie){const me=Ye.filter(ut=>ut.side===ie&&!ut.disabled);if(me.length>=1)return me.length>1&&he&&(0,Oe.p)(`menuController queried for a menu on the "${ie}" side, but ${me.length} menus were found. The first menu reference will be used. If this is not the behavior you want then pass the ID of the menu instead of its side.`,me.map(ut=>ut.el)),me[0].el;const Ae=Ye.filter(ut=>ut.side===ie);if(Ae.length>=1)return Ae.length>1&&he&&(0,Oe.p)(`menuController queried for a menu on the "${ie}" side, but ${Ae.length} menus were found. The first menu reference will be used. If this is not the behavior you want then pass the ID of the menu instead of its side.`,Ae.map(ut=>ut.el)),Ae[0].el}else if(null!=ie)return Pe(me=>me.menuId===ie);return Pe(me=>!me.disabled)||(Ye.length>0?Ye[0].el:void 0)});return function(he){return q.apply(this,arguments)}}(),Ke=function(){var q=(0,g.A)(function*(){return yield z(),Be()});return function(){return q.apply(this,arguments)}}(),Ct=function(){var q=(0,g.A)(function*(){return yield z(),Pt()});return function(){return q.apply(this,arguments)}}(),kt=function(){var q=(0,g.A)(function*(){return yield z(),rt()});return function(){return q.apply(this,arguments)}}(),ze=(q,ie)=>{Ve.set(q,ie)},en=function(){var q=(0,g.A)(function*(ie,he,ae){if(rt())return!1;if(he){const me=yield Ke();me&&ie.el!==me&&(yield me.setOpen(!1,!1))}return ie._setOpen(he,ae)});return function(he,ae,me){return q.apply(this,arguments)}}(),Be=()=>Pe(q=>q._isOpen),Pt=()=>Ye.map(q=>q.el),rt=()=>Ye.some(q=>q.isAnimating),Pe=q=>{const ie=Ye.find(q);if(void 0!==ie)return ie.el},z=()=>Promise.all(Array.from(document.querySelectorAll("ion-menu")).map(q=>new Promise(ie=>(0,Q.c)(q,ie))));return ze("reveal",_e),ze("push",Te),ze("overlay",tt),null==d.d||d.d.addEventListener("ionBackButton",q=>{const ie=Be();ie&&q.detail.register(ge.MENU_BACK_BUTTON_PRIORITY,()=>ie.close())}),{registerAnimation:ze,get:je,getMenus:Ct,getOpen:Ke,isEnabled:Re,swipeGesture:mt,isAnimating:kt,isOpen:vt,enable:Mt,toggle:at,close:ct,open:gt,_getOpenSync:Be,_createAnimation:(q,ie)=>{const he=Ve.get(q);if(!he)throw new Error("animation not registered");return he(ie)},_register:q=>{Ye.indexOf(q)<0&&Ye.push(q)},_unregister:q=>{const ie=Ye.indexOf(q);ie>-1&&Ye.splice(ie,1)},_setOpen:en}})()},8607:(En,bt,B)=>{"use strict";B.r(bt),B.d(bt,{GESTURE_CONTROLLER:()=>g.G,createGesture:()=>tt});var g=B(1970);const d=(Ue,Ve,Ye,gt)=>{const ct=ge(Ue)?{capture:!!gt.capture,passive:!!gt.passive}:!!gt.capture;let at,Mt;return Ue.__zone_symbol__addEventListener?(at="__zone_symbol__addEventListener",Mt="__zone_symbol__removeEventListener"):(at="addEventListener",Mt="removeEventListener"),Ue[at](Ve,Ye,ct),()=>{Ue[Mt](Ve,Ye,ct)}},ge=Ue=>{if(void 0===Oe)try{const Ve=Object.defineProperty({},"passive",{get:()=>{Oe=!0}});Ue.addEventListener("optsTest",()=>{},Ve)}catch{Oe=!1}return!!Oe};let Oe;const ne=Ue=>Ue instanceof Document?Ue:Ue.ownerDocument,tt=Ue=>{let Ve=!1,Ye=!1,gt=!0,ct=!1;const at=Object.assign({disableScroll:!1,direction:"x",gesturePriority:0,passive:!0,maxAngle:40,threshold:10},Ue),Mt=at.canStart,mt=at.onWillStart,vt=at.onStart,Re=at.onEnd,je=at.notCaptured,Ke=at.onMove,Ct=at.threshold,kt=at.passive,ze=at.blurOnStart,Tt={type:"pan",startX:0,startY:0,startTime:0,currentX:0,currentY:0,velocityX:0,velocityY:0,deltaX:0,deltaY:0,currentTime:0,event:void 0,data:void 0},Lt=((Ue,Ve,Ye)=>{const gt=Ye*(Math.PI/180),ct="x"===Ue,at=Math.cos(gt),Mt=Ve*Ve;let mt=0,vt=0,Re=!1,je=0;return{start(Ke,Ct){mt=Ke,vt=Ct,je=0,Re=!0},detect(Ke,Ct){if(!Re)return!1;const kt=Ke-mt,ze=Ct-vt,Tt=kt*kt+ze*ze;if(Ttat?1:en<-at?-1:0,Re=!1,!0},isGesture:()=>0!==je,getDirection:()=>je}})(at.direction,at.threshold,at.maxAngle),en=g.G.createGesture({name:Ue.gestureName,priority:Ue.gesturePriority,disableScroll:Ue.disableScroll}),Pt=()=>{Ve&&(ct=!1,Ke&&Ke(Tt))},rt=()=>!!en.capture()&&(Ve=!0,gt=!1,Tt.startX=Tt.currentX,Tt.startY=Tt.currentY,Tt.startTime=Tt.currentTime,mt?mt(Tt).then(z):z(),!0),z=()=>{ze&&(()=>{if(typeof document<"u"){const me=document.activeElement;null!=me&&me.blur&&me.blur()}})(),vt&&vt(Tt),gt=!0},q=()=>{Ve=!1,Ye=!1,ct=!1,gt=!0,en.release()},ie=me=>{const Ae=Ve,ut=gt;if(q(),ut){if(Te(Tt,me),Ae)return void(Re&&Re(Tt));je&&je(Tt)}},he=((Ue,Ve,Ye,gt,ct)=>{let at,Mt,mt,vt,Re,je,Ke,Ct=0;const kt=Pe=>{Ct=Date.now()+2e3,Ve(Pe)&&(!Mt&&Ye&&(Mt=d(Ue,"touchmove",Ye,ct)),mt||(mt=d(Pe.target,"touchend",Tt,ct)),vt||(vt=d(Pe.target,"touchcancel",Tt,ct)))},ze=Pe=>{Ct>Date.now()||Ve(Pe)&&(!je&&Ye&&(je=d(ne(Ue),"mousemove",Ye,ct)),Ke||(Ke=d(ne(Ue),"mouseup",Lt,ct)))},Tt=Pe=>{en(),gt&>(Pe)},Lt=Pe=>{Dt(),gt&>(Pe)},en=()=>{Mt&&Mt(),mt&&mt(),vt&&vt(),Mt=mt=vt=void 0},Dt=()=>{je&&je(),Ke&&Ke(),je=Ke=void 0},Be=()=>{en(),Dt()},Pt=(Pe=!0)=>{Pe?(at||(at=d(Ue,"touchstart",kt,ct)),Re||(Re=d(Ue,"mousedown",ze,ct))):(at&&at(),Re&&Re(),at=Re=void 0,Be())};return{enable:Pt,stop:Be,destroy:()=>{Pt(!1),gt=Ye=Ve=void 0}}})(at.el,me=>{const Ae=Fe(me);return!(Ye||!gt||(_e(me,Tt),Tt.startX=Tt.currentX,Tt.startY=Tt.currentY,Tt.startTime=Tt.currentTime=Ae,Tt.velocityX=Tt.velocityY=Tt.deltaX=Tt.deltaY=0,Tt.event=me,Mt&&!1===Mt(Tt))||(en.release(),!en.start()))&&(Ye=!0,0===Ct?rt():(Lt.start(Tt.startX,Tt.startY),!0))},me=>{Ve?!ct&>&&(ct=!0,Te(Tt,me),requestAnimationFrame(Pt)):(Te(Tt,me),Lt.detect(Tt.currentX,Tt.currentY)&&(!Lt.isGesture()||!rt())&&ae())},ie,{capture:!1,passive:kt}),ae=()=>{q(),he.stop(),je&&je(Tt)};return{enable(me=!0){me||(Ve&&ie(void 0),q()),he.enable(me)},destroy(){en.destroy(),he.destroy()}}},Te=(Ue,Ve)=>{if(!Ve)return;const Ye=Ue.currentX,gt=Ue.currentY,ct=Ue.currentTime;_e(Ve,Ue);const at=Ue.currentX,Mt=Ue.currentY,vt=(Ue.currentTime=Fe(Ve))-ct;if(vt>0&&vt<100){const je=(Mt-gt)/vt;Ue.velocityX=(at-Ye)/vt*.7+.3*Ue.velocityX,Ue.velocityY=.7*je+.3*Ue.velocityY}Ue.deltaX=at-Ue.startX,Ue.deltaY=Mt-Ue.startY,Ue.event=Ve},_e=(Ue,Ve)=>{let Ye=0,gt=0;if(Ue){const ct=Ue.changedTouches;if(ct&&ct.length>0){const at=ct[0];Ye=at.clientX,gt=at.clientY}else void 0!==Ue.pageX&&(Ye=Ue.pageX,gt=Ue.pageY)}Ve.currentX=Ye,Ve.currentY=gt},Fe=Ue=>Ue.timeStamp||Date.now()},9672:(En,bt,B)=>{"use strict";B.d(bt,{B:()=>Ie,a:()=>Fo,b:()=>xr,c:()=>ut,d:()=>bn,e:()=>sr,f:()=>rt,g:()=>Vt,h:()=>Be,i:()=>vn,j:()=>yr,k:()=>ne,r:()=>Nn,w:()=>ui});var g=B(467);var Oe=Object.defineProperty,Ie={isDev:!1,isBrowser:!0,isServer:!1,isTesting:!1},ne=U=>{const te=new URL(U,jn.$resourcesUrl$);return te.origin!==or.location.origin?te.href:te.pathname},Qe={},Fe=U=>"object"==(U=typeof U)||"function"===U;function Ue(U){var te,Ee,ke;return null!=(ke=null==(Ee=null==(te=U.head)?void 0:te.querySelector('meta[name="csp-nonce"]'))?void 0:Ee.getAttribute("content"))?ke:void 0}((U,te)=>{for(var Ee in te)Oe(U,Ee,{get:te[Ee],enumerable:!0})})({},{err:()=>gt,map:()=>ct,ok:()=>Ye,unwrap:()=>at,unwrapErr:()=>Mt});var Ye=U=>({isOk:!0,isErr:!1,value:U}),gt=U=>({isOk:!1,isErr:!0,value:U});function ct(U,te){if(U.isOk){const Ee=te(U.value);return Ee instanceof Promise?Ee.then(ke=>Ye(ke)):Ye(Ee)}if(U.isErr)return gt(U.value);throw"should never get here"}var at=U=>{if(U.isOk)return U.value;throw U.value},Mt=U=>{if(U.isErr)return U.value;throw U.value},kt="s-id",ze="sty-id",en="slot-fb{display:contents}slot-fb[hidden]{display:none}",Dt="http://www.w3.org/1999/xlink",Be=(U,te,...Ee)=>{let ke=null,st=null,Je=null,Ut=!1,Ht=!1;const qt=[],Zt=Cn=>{for(let Ln=0;LnCn[Ln]).join(" "))}}if("function"==typeof U)return U(null===te?{}:te,qt,z);const _n=Pt(U,null);return _n.$attrs$=te,qt.length>0&&(_n.$children$=qt),_n.$key$=st,_n.$name$=Je,_n},Pt=(U,te)=>({$flags$:0,$tag$:U,$text$:te,$elm$:null,$children$:null,$attrs$:null,$key$:null,$name$:null}),rt={},z={forEach:(U,te)=>U.map(q).forEach(te),map:(U,te)=>U.map(q).map(te).map(ie)},q=U=>({vattrs:U.$attrs$,vchildren:U.$children$,vkey:U.$key$,vname:U.$name$,vtag:U.$tag$,vtext:U.$text$}),ie=U=>{if("function"==typeof U.vtag){const Ee={...U.vattrs};return U.vkey&&(Ee.key=U.vkey),U.vname&&(Ee.name=U.vname),Be(U.vtag,Ee,...U.vchildren||[])}const te=Pt(U.vtag,U.vtext);return te.$attrs$=U.vattrs,te.$children$=U.vchildren,te.$key$=U.vkey,te.$name$=U.vname,te},ae=(U,te,Ee,ke,st,Je,Ut)=>{let Ht,qt,Zt,_n;if(1===Je.nodeType){for(Ht=Je.getAttribute("c-id"),Ht&&(qt=Ht.split("."),(qt[0]===Ut||"0"===qt[0])&&(Zt={$flags$:0,$hostId$:qt[0],$nodeId$:qt[1],$depth$:qt[2],$index$:qt[3],$tag$:Je.tagName.toLowerCase(),$elm$:Je,$attrs$:null,$children$:null,$key$:null,$name$:null,$text$:null},te.push(Zt),Je.removeAttribute("c-id"),U.$children$||(U.$children$=[]),U.$children$[Zt.$index$]=Zt,U=Zt,ke&&"0"===Zt.$depth$&&(ke[Zt.$index$]=Zt.$elm$))),_n=Je.childNodes.length-1;_n>=0;_n--)ae(U,te,Ee,ke,st,Je.childNodes[_n],Ut);if(Je.shadowRoot)for(_n=Je.shadowRoot.childNodes.length-1;_n>=0;_n--)ae(U,te,Ee,ke,st,Je.shadowRoot.childNodes[_n],Ut)}else if(8===Je.nodeType)qt=Je.nodeValue.split("."),(qt[1]===Ut||"0"===qt[1])&&(Ht=qt[0],Zt={$flags$:0,$hostId$:qt[1],$nodeId$:qt[2],$depth$:qt[3],$index$:qt[4],$elm$:Je,$attrs$:null,$children$:null,$key$:null,$name$:null,$tag$:null,$text$:null},"t"===Ht?(Zt.$elm$=Je.nextSibling,Zt.$elm$&&3===Zt.$elm$.nodeType&&(Zt.$text$=Zt.$elm$.textContent,te.push(Zt),Je.remove(),U.$children$||(U.$children$=[]),U.$children$[Zt.$index$]=Zt,ke&&"0"===Zt.$depth$&&(ke[Zt.$index$]=Zt.$elm$))):Zt.$hostId$===Ut&&("s"===Ht?(Zt.$tag$="slot",Je["s-sn"]=qt[5]?Zt.$name$=qt[5]:"",Je["s-sr"]=!0,ke&&(Zt.$elm$=kr.createElement(Zt.$tag$),Zt.$name$&&Zt.$elm$.setAttribute("name",Zt.$name$),Je.parentNode.insertBefore(Zt.$elm$,Je),Je.remove(),"0"===Zt.$depth$&&(ke[Zt.$index$]=Zt.$elm$)),Ee.push(Zt),U.$children$||(U.$children$=[]),U.$children$[Zt.$index$]=Zt):"r"===Ht&&(ke?Je.remove():(st["s-cr"]=Je,Je["s-cn"]=!0))));else if(U&&"style"===U.$tag$){const Cn=Pt(null,Je.textContent);Cn.$elm$=Je,Cn.$index$="0",U.$children$=[Cn]}},me=(U,te)=>{if(1===U.nodeType){let Ee=0;for(;Eesi.push(U),Vt=U=>oi(U).$modeName$,vn=U=>oi(U).$hostElement$,bn=(U,te,Ee)=>{const ke=vn(U);return{emit:st=>$n(ke,te,{bubbles:!!(4&Ee),composed:!!(2&Ee),cancelable:!!(1&Ee),detail:st})}},$n=(U,te,Ee)=>{const ke=jn.ce(te,Ee);return U.dispatchEvent(ke),ke},qn=new WeakMap,er=(U,te,Ee)=>{let ke=ps.get(U);To&&Ee?(ke=ke||new CSSStyleSheet,"string"==typeof ke?ke=te:ke.replaceSync(te)):ke=te,ps.set(U,ke)},yn=(U,te,Ee)=>{var ke;const st=Yn(te,Ee),Je=ps.get(st);if(U=11===U.nodeType?U:kr,Je)if("string"==typeof Je){let Ht,Ut=qn.get(U=U.head||U);if(Ut||qn.set(U,Ut=new Set),!Ut.has(st)){if(U.host&&(Ht=U.querySelector(`[${ze}="${st}"]`)))Ht.innerHTML=Je;else{Ht=kr.createElement("style"),Ht.innerHTML=Je;const qt=null!=(ke=jn.$nonce$)?ke:Ue(kr);null!=qt&&Ht.setAttribute("nonce",qt),U.insertBefore(Ht,U.querySelector("link"))}4&te.$flags$&&(Ht.innerHTML+=en),Ut&&Ut.add(st)}}else U.adoptedStyleSheets.includes(Je)||(U.adoptedStyleSheets=[...U.adoptedStyleSheets,Je]);return st},Yn=(U,te)=>"sc-"+(te&&32&U.$flags$?U.$tagName$+"-"+te:U.$tagName$),Le=U=>U.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g,"$1{"),yt=(U,te,Ee,ke,st,Je)=>{if(Ee!==ke){let Ut=ko(U,te),Ht=te.toLowerCase();if("class"===te){const qt=U.classList,Zt=Qt(Ee),_n=Qt(ke);qt.remove(...Zt.filter(Cn=>Cn&&!_n.includes(Cn))),qt.add(..._n.filter(Cn=>Cn&&!Zt.includes(Cn)))}else if("style"===te){for(const qt in Ee)(!ke||null==ke[qt])&&(qt.includes("-")?U.style.removeProperty(qt):U.style[qt]="");for(const qt in ke)(!Ee||ke[qt]!==Ee[qt])&&(qt.includes("-")?U.style.setProperty(qt,ke[qt]):U.style[qt]=ke[qt])}else if("key"!==te)if("ref"===te)ke&&ke(U);else if(Ut||"o"!==te[0]||"n"!==te[1]){const qt=Fe(ke);if((Ut||qt&&null!==ke)&&!st)try{if(U.tagName.includes("-"))U[te]=ke;else{const _n=null==ke?"":ke;"list"===te?Ut=!1:(null==Ee||U[te]!=_n)&&(U[te]=_n)}}catch{}let Zt=!1;Ht!==(Ht=Ht.replace(/^xlink\:?/,""))&&(te=Ht,Zt=!0),null==ke||!1===ke?(!1!==ke||""===U.getAttribute(te))&&(Zt?U.removeAttributeNS(Dt,te):U.removeAttribute(te)):(!Ut||4&Je||st)&&!qt&&(ke=!0===ke?"":ke,Zt?U.setAttributeNS(Dt,te,ke):U.setAttribute(te,ke))}else if(te="-"===te[2]?te.slice(3):ko(or,Ht)?Ht.slice(2):Ht[2]+te.slice(3),Ee||ke){const qt=te.endsWith(tn);te=te.replace(Ar,""),Ee&&jn.rel(U,te,Ee,qt),ke&&jn.ael(U,te,ke,qt)}}},Ot=/\s/,Qt=U=>U?U.split(Ot):[],tn="Capture",Ar=new RegExp(tn+"$"),gn=(U,te,Ee)=>{const ke=11===te.$elm$.nodeType&&te.$elm$.host?te.$elm$.host:te.$elm$,st=U&&U.$attrs$||Qe,Je=te.$attrs$||Qe;for(const Ut of mn(Object.keys(st)))Ut in Je||yt(ke,Ut,st[Ut],void 0,Ee,te.$flags$);for(const Ut of mn(Object.keys(Je)))yt(ke,Ut,st[Ut],Je[Ut],Ee,te.$flags$)};function mn(U){return U.includes("ref")?[...U.filter(te=>"ref"!==te),"ref"]:U}var Jt,Wt,pr,wr=!1,Or=!1,Mr=!1,_r=!1,Bn=(U,te,Ee,ke)=>{var st;const Je=te.$children$[Ee];let Ht,qt,Zt,Ut=0;if(wr||(Mr=!0,"slot"===Je.$tag$&&(Jt&&ke.classList.add(Jt+"-s"),Je.$flags$|=Je.$children$?2:1)),null!==Je.$text$)Ht=Je.$elm$=kr.createTextNode(Je.$text$);else if(1&Je.$flags$)Ht=Je.$elm$=kr.createTextNode("");else{if(_r||(_r="svg"===Je.$tag$),Ht=Je.$elm$=kr.createElementNS(_r?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",2&Je.$flags$?"slot-fb":Je.$tag$),_r&&"foreignObject"===Je.$tag$&&(_r=!1),gn(null,Je,_r),(U=>null!=U)(Jt)&&Ht["s-si"]!==Jt&&Ht.classList.add(Ht["s-si"]=Jt),Je.$children$)for(Ut=0;Ut{jn.$flags$|=1;const te=U.closest(pr.toLowerCase());if(null!=te){const Ee=Array.from(te.childNodes).find(st=>st["s-cr"]),ke=Array.from(U.childNodes);for(const st of Ee?ke.reverse():ke)null!=st["s-sh"]&&(de(te,st,null!=Ee?Ee:null),st["s-sh"]=void 0,Mr=!0)}jn.$flags$&=-2},Zn=(U,te)=>{jn.$flags$|=1;const Ee=Array.from(U.childNodes);if(U["s-sr"]){let ke=U;for(;ke=ke.nextSibling;)ke&&ke["s-sn"]===U["s-sn"]&&ke["s-sh"]===pr&&Ee.push(ke)}for(let ke=Ee.length-1;ke>=0;ke--){const st=Ee[ke];st["s-hn"]!==pr&&st["s-ol"]&&(de(Qr(st),st,Ri(st)),st["s-ol"].remove(),st["s-ol"]=void 0,st["s-sh"]=void 0,Mr=!0),te&&Zn(st,te)}jn.$flags$&=-2},Rn=(U,te,Ee,ke,st,Je)=>{let Ht,Ut=U["s-cr"]&&U["s-cr"].parentNode||U;for(Ut.shadowRoot&&Ut.tagName===pr&&(Ut=Ut.shadowRoot);st<=Je;++st)ke[st]&&(Ht=Bn(null,Ee,st,U),Ht&&(ke[st].$elm$=Ht,de(Ut,Ht,Ri(te))))},Sr=(U,te,Ee)=>{for(let ke=te;ke<=Ee;++ke){const st=U[ke];if(st){const Je=st.$elm$;re(st),Je&&(Or=!0,Je["s-ol"]?Je["s-ol"].remove():Zn(Je,!0),Je.remove())}}},Ir=(U,te,Ee=!1)=>U.$tag$===te.$tag$&&("slot"===U.$tag$?U.$name$===te.$name$:!!Ee||U.$key$===te.$key$),Ri=U=>U&&U["s-ol"]||U,Qr=U=>(U["s-ol"]?U["s-ol"]:U).parentNode,Jr=(U,te,Ee=!1)=>{const ke=te.$elm$=U.$elm$,st=U.$children$,Je=te.$children$,Ut=te.$tag$,Ht=te.$text$;let qt;null===Ht?(_r="svg"===Ut||"foreignObject"!==Ut&&_r,"slot"!==Ut||wr?gn(U,te,_r):U.$name$!==te.$name$&&(te.$elm$["s-sn"]=te.$name$||"",ni(te.$elm$.parentElement)),null!==st&&null!==Je?((U,te,Ee,ke,st=!1)=>{let cr,nr,Je=0,Ut=0,Ht=0,qt=0,Zt=te.length-1,_n=te[0],Cn=te[Zt],Ln=ke.length-1,In=ke[0],br=ke[Ln];for(;Je<=Zt&&Ut<=Ln;)if(null==_n)_n=te[++Je];else if(null==Cn)Cn=te[--Zt];else if(null==In)In=ke[++Ut];else if(null==br)br=ke[--Ln];else if(Ir(_n,In,st))Jr(_n,In,st),_n=te[++Je],In=ke[++Ut];else if(Ir(Cn,br,st))Jr(Cn,br,st),Cn=te[--Zt],br=ke[--Ln];else if(Ir(_n,br,st))("slot"===_n.$tag$||"slot"===br.$tag$)&&Zn(_n.$elm$.parentNode,!1),Jr(_n,br,st),de(U,_n.$elm$,Cn.$elm$.nextSibling),_n=te[++Je],br=ke[--Ln];else if(Ir(Cn,In,st))("slot"===_n.$tag$||"slot"===br.$tag$)&&Zn(Cn.$elm$.parentNode,!1),Jr(Cn,In,st),de(U,Cn.$elm$,_n.$elm$),Cn=te[--Zt],In=ke[++Ut];else{for(Ht=-1,qt=Je;qt<=Zt;++qt)if(te[qt]&&null!==te[qt].$key$&&te[qt].$key$===In.$key$){Ht=qt;break}Ht>=0?(nr=te[Ht],nr.$tag$!==In.$tag$?cr=Bn(te&&te[Ut],Ee,Ht,U):(Jr(nr,In,st),te[Ht]=void 0,cr=nr.$elm$),In=ke[++Ut]):(cr=Bn(te&&te[Ut],Ee,Ut,U),In=ke[++Ut]),cr&&de(Qr(_n.$elm$),cr,Ri(_n.$elm$))}Je>Zt?Rn(U,null==ke[Ln+1]?null:ke[Ln+1].$elm$,Ee,ke,Ut,Ln):Ut>Ln&&Sr(te,Je,Zt)})(ke,st,te,Je,Ee):null!==Je?(null!==U.$text$&&(ke.textContent=""),Rn(ke,null,te,Je,0,Je.length-1)):null!==st&&Sr(st,0,st.length-1),_r&&"svg"===Ut&&(_r=!1)):(qt=ke["s-cr"])?qt.parentNode.textContent=Ht:U.$text$!==Ht&&(ke.data=Ht)},oe=U=>{const te=U.childNodes;for(const Ee of te)if(1===Ee.nodeType){if(Ee["s-sr"]){const ke=Ee["s-sn"];Ee.hidden=!1;for(const st of te)if(st!==Ee)if(st["s-hn"]!==Ee["s-hn"]||""!==ke){if(1===st.nodeType&&(ke===st.getAttribute("slot")||ke===st["s-sn"])||3===st.nodeType&&ke===st["s-sn"]){Ee.hidden=!0;break}}else if(1===st.nodeType||3===st.nodeType&&""!==st.textContent.trim()){Ee.hidden=!0;break}}oe(Ee)}},He=[],dt=U=>{let te,Ee,ke;for(const st of U.childNodes){if(st["s-sr"]&&(te=st["s-cr"])&&te.parentNode){Ee=te.parentNode.childNodes;const Je=st["s-sn"];for(ke=Ee.length-1;ke>=0;ke--)if(te=Ee[ke],!(te["s-cn"]||te["s-nr"]||te["s-hn"]===st["s-hn"]||te["s-sh"]&&te["s-sh"]===st["s-hn"]))if(Xe(te,Je)){let Ut=He.find(Ht=>Ht.$nodeToRelocate$===te);Or=!0,te["s-sn"]=te["s-sn"]||Je,Ut?(Ut.$nodeToRelocate$["s-sh"]=st["s-hn"],Ut.$slotRefNode$=st):(te["s-sh"]=st["s-hn"],He.push({$slotRefNode$:st,$nodeToRelocate$:te})),te["s-sr"]&&He.map(Ht=>{Xe(Ht.$nodeToRelocate$,te["s-sn"])&&(Ut=He.find(qt=>qt.$nodeToRelocate$===te),Ut&&!Ht.$slotRefNode$&&(Ht.$slotRefNode$=Ut.$slotRefNode$))})}else He.some(Ut=>Ut.$nodeToRelocate$===te)||He.push({$nodeToRelocate$:te})}1===st.nodeType&&dt(st)}},Xe=(U,te)=>1===U.nodeType?null===U.getAttribute("slot")&&""===te||U.getAttribute("slot")===te:U["s-sn"]===te||""===te,re=U=>{U.$attrs$&&U.$attrs$.ref&&U.$attrs$.ref(null),U.$children$&&U.$children$.map(re)},de=(U,te,Ee)=>{const ke=null==U?void 0:U.insertBefore(te,Ee);return Et(te,U),ke},Me=U=>U?U["s-rsc"]||U["s-si"]||U["s-sc"]||Me(U.parentElement):void 0,Et=(U,te)=>{var Ee,ke,st;if(U&&te){const Je=U["s-rsc"],Ut=Me(te);Je&&null!=(Ee=U.classList)&&Ee.contains(Je)&&U.classList.remove(Je),Ut&&(U["s-rsc"]=Ut,(null==(ke=U.classList)||!ke.contains(Ut))&&(null==(st=U.classList)||st.add(Ut)))}},hn=(U,te)=>{te&&!U.$onRenderResolve$&&te["s-p"]&&te["s-p"].push(new Promise(Ee=>U.$onRenderResolve$=Ee))},Mn=(U,te)=>{if(U.$flags$|=16,!(4&U.$flags$))return hn(U,U.$ancestorComponent$),ui(()=>Kn(U,te));U.$flags$|=512},Kn=(U,te)=>{const ke=U.$lazyInstance$;let st;return te&&(U.$flags$|=256,U.$queuedListeners$&&(U.$queuedListeners$.map(([Je,Ut])=>ii(ke,Je,Ut)),U.$queuedListeners$=void 0),st=ii(ke,"componentWillLoad")),st=gr(st,()=>ii(ke,"componentWillRender")),gr(st,()=>ri(U,ke,te))},gr=(U,te)=>ur(U)?U.then(te):te(),ur=U=>U instanceof Promise||U&&U.then&&"function"==typeof U.then,ri=function(){var U=(0,g.A)(function*(te,Ee,ke){var st;const Je=te.$hostElement$,Ht=Je["s-rc"];ke&&(U=>{const te=U.$cmpMeta$,Ee=U.$hostElement$,ke=te.$flags$,Je=yn(Ee.shadowRoot?Ee.shadowRoot:Ee.getRootNode(),te,U.$modeName$);10&ke&&(Ee["s-sc"]=Je,Ee.classList.add(Je+"-h"),2&ke&&Ee.classList.add(Je+"-s"))})(te);xn(te,Ee,Je,ke),Ht&&(Ht.map(Zt=>Zt()),Je["s-rc"]=void 0);{const Zt=null!=(st=Je["s-p"])?st:[],_n=()=>wn(te);0===Zt.length?_n():(Promise.all(Zt).then(_n),te.$flags$|=4,Zt.length=0)}});return function(Ee,ke,st){return U.apply(this,arguments)}}(),xn=(U,te,Ee,ke)=>{try{te=te.render&&te.render(),U.$flags$&=-17,U.$flags$|=2,((U,te,Ee=!1)=>{var ke,st,Je,Ut,Ht;const qt=U.$hostElement$,Zt=U.$cmpMeta$,_n=U.$vnode$||Pt(null,null),Cn=(U=>U&&U.$tag$===rt)(te)?te:Be(null,null,te);if(pr=qt.tagName,Zt.$attrsToReflect$&&(Cn.$attrs$=Cn.$attrs$||{},Zt.$attrsToReflect$.map(([Ln,In])=>Cn.$attrs$[In]=qt[Ln])),Ee&&Cn.$attrs$)for(const Ln of Object.keys(Cn.$attrs$))qt.hasAttribute(Ln)&&!["key","ref","style","class"].includes(Ln)&&(Cn.$attrs$[Ln]=qt[Ln]);if(Cn.$tag$=null,Cn.$flags$|=4,U.$vnode$=Cn,Cn.$elm$=_n.$elm$=qt.shadowRoot||qt,Jt=qt["s-sc"],wr=!!(1&Zt.$flags$),Wt=qt["s-cr"],Or=!1,Jr(_n,Cn,Ee),jn.$flags$|=1,Mr){dt(Cn.$elm$);for(const Ln of He){const In=Ln.$nodeToRelocate$;if(!In["s-ol"]){const br=kr.createTextNode("");br["s-nr"]=In,de(In.parentNode,In["s-ol"]=br,In)}}for(const Ln of He){const In=Ln.$nodeToRelocate$,br=Ln.$slotRefNode$;if(br){const cr=br.parentNode;let nr=br.nextSibling;if(nr&&1===nr.nodeType){let li=null==(ke=In["s-ol"])?void 0:ke.previousSibling;for(;li;){let vi=null!=(st=li["s-nr"])?st:null;if(vi&&vi["s-sn"]===In["s-sn"]&&cr===vi.parentNode){for(vi=vi.nextSibling;vi===In||null!=vi&&vi["s-sr"];)vi=null==vi?void 0:vi.nextSibling;if(!vi||!vi["s-nr"]){nr=vi;break}}li=li.previousSibling}}(!nr&&cr!==In.parentNode||In.nextSibling!==nr)&&In!==nr&&(de(cr,In,nr),1===In.nodeType&&(In.hidden=null!=(Je=In["s-ih"])&&Je)),In&&"function"==typeof br["s-rf"]&&br["s-rf"](In)}else 1===In.nodeType&&(Ee&&(In["s-ih"]=null!=(Ut=In.hidden)&&Ut),In.hidden=!0)}}if(Or&&oe(Cn.$elm$),jn.$flags$&=-2,He.length=0,2&Zt.$flags$)for(const Ln of Cn.$elm$.childNodes)Ln["s-hn"]!==pr&&!Ln["s-sh"]&&(Ee&&null==Ln["s-ih"]&&(Ln["s-ih"]=null!=(Ht=Ln.hidden)&&Ht),Ln.hidden=!0);Wt=void 0})(U,te,ke)}catch(st){ei(st,U.$hostElement$)}return null},wn=U=>{const Ee=U.$hostElement$,st=U.$lazyInstance$,Je=U.$ancestorComponent$;ii(st,"componentDidRender"),64&U.$flags$?ii(st,"componentDidUpdate"):(U.$flags$|=64,pi(Ee),ii(st,"componentDidLoad"),U.$onReadyResolve$(Ee),Je||Ei()),U.$onInstanceResolve$(Ee),U.$onRenderResolve$&&(U.$onRenderResolve$(),U.$onRenderResolve$=void 0),512&U.$flags$&&qe(()=>Mn(U,!1)),U.$flags$&=-517},yr=U=>{{const te=oi(U),Ee=te.$hostElement$.isConnected;return Ee&&2==(18&te.$flags$)&&Mn(te,!1),Ee}},Ei=U=>{pi(kr.documentElement),qe(()=>$n(or,"appload",{detail:{namespace:"ionic"}}))},ii=(U,te,Ee)=>{if(U&&U[te])try{return U[te](Ee)}catch(ke){ei(ke)}},pi=U=>U.classList.add("hydrated"),Xi=(U,te,Ee)=>{var ke;const st=U.prototype;if(te.$members$){U.watchers&&(te.$watchers$=U.watchers);const Je=Object.entries(te.$members$);if(Je.map(([Ut,[Ht]])=>{31&Ht||2&Ee&&32&Ht?Object.defineProperty(st,Ut,{get(){return((U,te)=>oi(this).$instanceValues$.get(te))(0,Ut)},set(qt){((U,te,Ee,ke)=>{const st=oi(U);if(!st)throw new Error(`Couldn't find host element for "${ke.$tagName$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`);const Je=st.$hostElement$,Ut=st.$instanceValues$.get(te),Ht=st.$flags$,qt=st.$lazyInstance$;Ee=((U,te)=>null==U||Fe(U)?U:4&te?"false"!==U&&(""===U||!!U):2&te?parseFloat(U):1&te?String(U):U)(Ee,ke.$members$[te][0]);const Zt=Number.isNaN(Ut)&&Number.isNaN(Ee);if((!(8&Ht)||void 0===Ut)&&Ee!==Ut&&!Zt&&(st.$instanceValues$.set(te,Ee),qt)){if(ke.$watchers$&&128&Ht){const Cn=ke.$watchers$[te];Cn&&Cn.map(Ln=>{try{qt[Ln](Ee,Ut,te)}catch(In){ei(In,Je)}})}2==(18&Ht)&&Mn(st,!1)}})(this,Ut,qt,te)},configurable:!0,enumerable:!0}):1&Ee&&64&Ht&&Object.defineProperty(st,Ut,{value(...qt){var Zt;const _n=oi(this);return null==(Zt=null==_n?void 0:_n.$onInstancePromise$)?void 0:Zt.then(()=>{var Cn;return null==(Cn=_n.$lazyInstance$)?void 0:Cn[Ut](...qt)})}})}),1&Ee){const Ut=new Map;st.attributeChangedCallback=function(Ht,qt,Zt){jn.jmp(()=>{var _n;const Cn=Ut.get(Ht);if(this.hasOwnProperty(Cn))Zt=this[Cn],delete this[Cn];else{if(st.hasOwnProperty(Cn)&&"number"==typeof this[Cn]&&this[Cn]==Zt)return;if(null==Cn){const Ln=oi(this),In=null==Ln?void 0:Ln.$flags$;if(In&&!(8&In)&&128&In&&Zt!==qt){const br=Ln.$lazyInstance$,cr=null==(_n=te.$watchers$)?void 0:_n[Ht];null==cr||cr.forEach(nr=>{null!=br[nr]&&br[nr].call(br,Zt,qt,Ht)})}return}}this[Cn]=(null!==Zt||"boolean"!=typeof this[Cn])&&Zt})},U.observedAttributes=Array.from(new Set([...Object.keys(null!=(ke=te.$watchers$)?ke:{}),...Je.filter(([Ht,qt])=>15&qt[0]).map(([Ht,qt])=>{var Zt;const _n=qt[1]||Ht;return Ut.set(_n,Ht),512&qt[0]&&(null==(Zt=te.$attrsToReflect$)||Zt.push([Ht,_n])),_n})]))}}return U},wi=function(){var U=(0,g.A)(function*(te,Ee,ke,st){let Je;if(!(32&Ee.$flags$)){if(Ee.$flags$|=32,ke.$lazyBundleId$){if(Je=is(ke),Je.then){const _n=()=>{};Je=yield Je,_n()}Je.isProxied||(ke.$watchers$=Je.watchers,Xi(Je,ke,2),Je.isProxied=!0);const Zt=()=>{};Ee.$flags$|=8;try{new Je(Ee)}catch(_n){ei(_n)}Ee.$flags$&=-9,Ee.$flags$|=128,Zt(),gi(Ee.$lazyInstance$)}else Je=te.constructor,customElements.whenDefined(ke.$tagName$).then(()=>Ee.$flags$|=128);if(Je.style){let Zt=Je.style;"string"!=typeof Zt&&(Zt=Zt[Ee.$modeName$=(U=>si.map(te=>te(U)).find(te=>!!te))(te)]);const _n=Yn(ke,Ee.$modeName$);if(!ps.has(_n)){const Cn=()=>{};er(_n,Zt,!!(1&ke.$flags$)),Cn()}}}const Ut=Ee.$ancestorComponent$,Ht=()=>Mn(Ee,!0);Ut&&Ut["s-rc"]?Ut["s-rc"].push(Ht):Ht()});return function(Ee,ke,st,Je){return U.apply(this,arguments)}}(),gi=U=>{ii(U,"connectedCallback")},lt=U=>{const te=U["s-cr"]=kr.createComment("");te["s-cn"]=!0,de(U,te,U.firstChild)},$t=U=>{ii(U,"disconnectedCallback")},fn=function(){var U=(0,g.A)(function*(te){if(!(1&jn.$flags$)){const Ee=oi(te);Ee.$rmListeners$&&(Ee.$rmListeners$.map(ke=>ke()),Ee.$rmListeners$=void 0),null!=Ee&&Ee.$lazyInstance$?$t(Ee.$lazyInstance$):null!=Ee&&Ee.$onReadyPromise$&&Ee.$onReadyPromise$.then(()=>$t(Ee.$lazyInstance$))}});return function(Ee){return U.apply(this,arguments)}}(),Y=U=>{const te=U.cloneNode;U.cloneNode=function(Ee){const ke=this,st=ke.shadowRoot&&Ao,Je=te.call(ke,!!st&&Ee);if(!st&&Ee){let Ht,qt,Ut=0;const Zt=["s-id","s-cr","s-lr","s-rc","s-sc","s-p","s-cn","s-sr","s-sn","s-hn","s-ol","s-nr","s-si","s-rf","s-rsc"];for(;Ut!ke.childNodes[Ut][_n]),Ht&&(Je.__appendChild?Je.__appendChild(Ht.cloneNode(!0)):Je.appendChild(Ht.cloneNode(!0))),qt&&Je.appendChild(ke.childNodes[Ut].cloneNode(!0))}return Je}},Z=U=>{U.__appendChild=U.appendChild,U.appendChild=function(te){const Ee=te["s-sn"]=Ui(te),ke=Ai(this.childNodes,Ee,this.tagName);if(ke){const st=Mi(ke,Ee),Je=st[st.length-1],Ut=de(Je.parentNode,te,Je.nextSibling);return oe(this),Ut}return this.__appendChild(te)}},Ne=U=>{U.__removeChild=U.removeChild,U.removeChild=function(te){if(te&&typeof te["s-sn"]<"u"){const Ee=Ai(this.childNodes,te["s-sn"],this.tagName);if(Ee){const st=Mi(Ee,te["s-sn"]).find(Je=>Je===te);if(st)return st.remove(),void oe(this)}}return this.__removeChild(te)}},X=U=>{const te=U.prepend;U.prepend=function(...Ee){Ee.forEach(ke=>{"string"==typeof ke&&(ke=this.ownerDocument.createTextNode(ke));const st=ke["s-sn"]=Ui(ke),Je=Ai(this.childNodes,st,this.tagName);if(Je){const Ut=document.createTextNode("");Ut["s-nr"]=ke,Je["s-cr"].parentNode.__appendChild(Ut),ke["s-ol"]=Ut;const qt=Mi(Je,st)[0];return de(qt.parentNode,ke,qt.nextSibling)}return 1===ke.nodeType&&ke.getAttribute("slot")&&(ke.hidden=!0),te.call(this,ke)})}},we=U=>{U.append=function(...te){te.forEach(Ee=>{"string"==typeof Ee&&(Ee=this.ownerDocument.createTextNode(Ee)),this.appendChild(Ee)})}},ot=U=>{const te=U.insertAdjacentHTML;U.insertAdjacentHTML=function(Ee,ke){if("afterbegin"!==Ee&&"beforeend"!==Ee)return te.call(this,Ee,ke);const st=this.ownerDocument.createElement("_");let Je;if(st.innerHTML=ke,"afterbegin"===Ee)for(;Je=st.firstChild;)this.prepend(Je);else if("beforeend"===Ee)for(;Je=st.firstChild;)this.append(Je)}},Kt=U=>{U.insertAdjacentText=function(te,Ee){this.insertAdjacentHTML(te,Ee)}},cn=U=>{const te=U.insertAdjacentElement;U.insertAdjacentElement=function(Ee,ke){return"afterbegin"!==Ee&&"beforeend"!==Ee?te.call(this,Ee,ke):"afterbegin"===Ee?(this.prepend(ke),ke):("beforeend"===Ee&&this.append(ke),ke)}},Pn=U=>{const te=Object.getOwnPropertyDescriptor(Node.prototype,"textContent");Object.defineProperty(U,"__textContent",te),Object.defineProperty(U,"textContent",{get(){return" "+Hn(this.childNodes).map(st=>{var Je,Ut;const Ht=[];let qt=st.nextSibling;for(;qt&&qt["s-sn"]===st["s-sn"];)(3===qt.nodeType||1===qt.nodeType)&&Ht.push(null!=(Ut=null==(Je=qt.textContent)?void 0:Je.trim())?Ut:""),qt=qt.nextSibling;return Ht.filter(Zt=>""!==Zt).join(" ")}).filter(st=>""!==st).join(" ")+" "},set(Ee){Hn(this.childNodes).forEach(st=>{let Je=st.nextSibling;for(;Je&&Je["s-sn"]===st["s-sn"];){const Ut=Je;Je=Je.nextSibling,Ut.remove()}if(""===st["s-sn"]){const Ut=this.ownerDocument.createTextNode(Ee);Ut["s-sn"]="",de(st.parentElement,Ut,st.nextSibling)}else st.remove()})}})},Cr=(U,te)=>{class Ee extends Array{item(st){return this[st]}}if(8&te.$flags$){const ke=U.__lookupGetter__("childNodes");Object.defineProperty(U,"children",{get(){return this.childNodes.map(st=>1===st.nodeType)}}),Object.defineProperty(U,"childElementCount",{get:()=>U.children.length}),Object.defineProperty(U,"childNodes",{get(){const st=ke.call(this);if(!(1&jn.$flags$)&&2&oi(this).$flags$){const Je=new Ee;for(let Ut=0;Ut{const te=[];for(const Ee of Array.from(U))Ee["s-sr"]&&te.push(Ee),te.push(...Hn(Ee.childNodes));return te},Ui=U=>U["s-sn"]||1===U.nodeType&&U.getAttribute("slot")||"",Ai=(U,te,Ee)=>{let st,ke=0;for(;ke{const Ee=[U];for(;(U=U.nextSibling)&&U["s-sn"]===te;)Ee.push(U);return Ee},xr=(U,te={})=>{var Ee;const st=[],Je=te.exclude||[],Ut=or.customElements,Ht=kr.head,qt=Ht.querySelector("meta[charset]"),Zt=kr.createElement("style"),_n=[],Cn=kr.querySelectorAll(`[${ze}]`);let Ln,In=!0,br=0;for(Object.assign(jn,te),jn.$resourcesUrl$=new URL(te.resourcesUrl||"./",kr.baseURI).href,jn.$flags$|=2;br{nr[1].map(li=>{var vi;const ci={$flags$:li[0],$tagName$:li[1],$members$:li[2],$listeners$:li[3]};4&ci.$flags$&&(cr=!0),ci.$members$=li[2],ci.$listeners$=li[3],ci.$attrsToReflect$=[],ci.$watchers$=null!=(vi=li[4])?vi:{};const no=ci.$tagName$,Go=class extends HTMLElement{constructor(dr){super(dr),kn(dr=this,ci),1&ci.$flags$&&dr.attachShadow({mode:"open",delegatesFocus:!!(16&ci.$flags$)})}connectedCallback(){Ln&&(clearTimeout(Ln),Ln=null),In?_n.push(this):jn.jmp(()=>(U=>{if(!(1&jn.$flags$)){const te=oi(U),Ee=te.$cmpMeta$,ke=()=>{};if(1&te.$flags$)An(U,te,Ee.$listeners$),null!=te&&te.$lazyInstance$?gi(te.$lazyInstance$):null!=te&&te.$onReadyPromise$&&te.$onReadyPromise$.then(()=>gi(te.$lazyInstance$));else{let st;if(te.$flags$|=1,st=U.getAttribute(kt),st){if(1&Ee.$flags$){const Je=yn(U.shadowRoot,Ee,U.getAttribute("s-mode"));U.classList.remove(Je+"-h",Je+"-s")}((U,te,Ee,ke)=>{const Je=U.shadowRoot,Ut=[],qt=Je?[]:null,Zt=ke.$vnode$=Pt(te,null);jn.$orgLocNodes$||me(kr.body,jn.$orgLocNodes$=new Map),U[kt]=Ee,U.removeAttribute(kt),ae(Zt,Ut,[],qt,U,U,Ee),Ut.map(_n=>{const Cn=_n.$hostId$+"."+_n.$nodeId$,Ln=jn.$orgLocNodes$.get(Cn),In=_n.$elm$;Ln&&Ao&&""===Ln["s-en"]&&Ln.parentNode.insertBefore(In,Ln.nextSibling),Je||(In["s-hn"]=te,Ln&&(In["s-ol"]=Ln,In["s-ol"]["s-nr"]=In)),jn.$orgLocNodes$.delete(Cn)}),Je&&qt.map(_n=>{_n&&Je.appendChild(_n)})})(U,Ee.$tagName$,st,te)}st||12&Ee.$flags$&<(U);{let Je=U;for(;Je=Je.parentNode||Je.host;)if(1===Je.nodeType&&Je.hasAttribute("s-id")&&Je["s-p"]||Je["s-p"]){hn(te,te.$ancestorComponent$=Je);break}}Ee.$members$&&Object.entries(Ee.$members$).map(([Je,[Ut]])=>{if(31&Ut&&U.hasOwnProperty(Je)){const Ht=U[Je];delete U[Je],U[Je]=Ht}}),wi(U,te,Ee)}ke()}})(this))}disconnectedCallback(){jn.jmp(()=>fn(this))}componentOnReady(){return oi(this).$onReadyPromise$}};2&ci.$flags$&&((U,te)=>{Y(U),Z(U),we(U),X(U),cn(U),ot(U),Kt(U),Pn(U),Cr(U,te),Ne(U)})(Go.prototype,ci),ci.$lazyBundleId$=nr[0],!Je.includes(no)&&!Ut.get(no)&&(st.push(no),Ut.define(no,Xi(Go,ci,1)))})}),st.length>0&&(cr&&(Zt.textContent+=en),Zt.textContent+=st+"{visibility:hidden}.hydrated{visibility:inherit}",Zt.innerHTML.length)){Zt.setAttribute("data-styles","");const nr=null!=(Ee=jn.$nonce$)?Ee:Ue(kr);null!=nr&&Zt.setAttribute("nonce",nr),Ht.insertBefore(Zt,qt?qt.nextSibling:Ht.firstChild)}In=!1,_n.length?_n.map(nr=>nr.connectedCallback()):jn.jmp(()=>Ln=setTimeout(Ei,30))},An=(U,te,Ee,ke)=>{Ee&&Ee.map(([st,Je,Ut])=>{const Ht=mi(U,st),qt=Pi(te,Ut),Zt=$i(st);jn.ael(Ht,Je,qt,Zt),(te.$rmListeners$=te.$rmListeners$||[]).push(()=>jn.rel(Ht,Je,qt,Zt))})},Pi=(U,te)=>Ee=>{try{256&U.$flags$?U.$lazyInstance$[te](Ee):(U.$queuedListeners$=U.$queuedListeners$||[]).push([te,Ee])}catch(ke){ei(ke)}},mi=(U,te)=>4&te?kr:8&te?or:16&te?kr.body:U,$i=U=>Co?{passive:!!(1&U),capture:!!(2&U)}:!!(2&U),mr=new WeakMap,oi=U=>mr.get(U),Nn=(U,te)=>mr.set(te.$lazyInstance$=U,te),kn=(U,te)=>{const Ee={$flags$:0,$hostElement$:U,$cmpMeta$:te,$instanceValues$:new Map};return Ee.$onInstancePromise$=new Promise(ke=>Ee.$onInstanceResolve$=ke),Ee.$onReadyPromise$=new Promise(ke=>Ee.$onReadyResolve$=ke),U["s-p"]=[],U["s-rc"]=[],An(U,Ee,te.$listeners$),mr.set(U,Ee)},ko=(U,te)=>te in U,ei=(U,te)=>(0,console.error)(U,te),Bi=new Map,is=(U,te,Ee)=>{const ke=U.$tagName$.replace(/-/g,"_"),st=U.$lazyBundleId$,Je=Bi.get(st);return Je?Je[ke]:B(8996)(`./${st}.entry.js`).then(Ut=>(Bi.set(st,Ut),Ut[ke]),ei)},ps=new Map,si=[],or=typeof window<"u"?window:{},kr=or.document||{head:{}},jn={$flags$:0,$resourcesUrl$:"",jmp:U=>U(),raf:U=>requestAnimationFrame(U),ael:(U,te,Ee,ke)=>U.addEventListener(te,Ee,ke),rel:(U,te,Ee,ke)=>U.removeEventListener(te,Ee,ke),ce:(U,te)=>new CustomEvent(U,te)},Fo=U=>{Object.assign(jn,U)},Ao=!0,Co=(()=>{let U=!1;try{kr.addEventListener("e",null,Object.defineProperty({},"passive",{get(){U=!0}}))}catch{}return U})(),To=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch{}return!1})(),xi=!1,S=[],H=[],ue=(U,te)=>Ee=>{U.push(Ee),xi||(xi=!0,te&&4&jn.$flags$?qe(fe):jn.raf(fe))},M=U=>{for(let te=0;te{M(S),M(H),(xi=S.length>0)&&jn.raf(fe)},qe=U=>Promise.resolve(void 0).then(U),sr=ue(S,!1),ui=ue(H,!0)},2725:(En,bt,B)=>{"use strict";B.d(bt,{b:()=>Qe,c:()=>tt,d:()=>Te,e:()=>Be,g:()=>Pe,l:()=>en,s:()=>Pt,t:()=>at,w:()=>Dt});var g=B(467),d=B(3664),ge=B(9672),Oe=B(4929),Q=B(4920);const Qe="ionViewWillLeave",tt="ionViewDidLeave",Te="ionViewWillUnload",_e=z=>{z.tabIndex=-1,z.focus()},Fe=z=>null!==z.offsetParent,Ve="ion-last-focus",ct_saveViewFocus=ie=>{if(d.c.get("focusManagerPriority",!1)){const ae=document.activeElement;null!==ae&&null!=ie&&ie.contains(ae)&&ae.setAttribute(Ve,"true")}},ct_setViewFocus=ie=>{const he=d.c.get("focusManagerPriority",!1);if(Array.isArray(he)&&!ie.contains(document.activeElement)){const ae=ie.querySelector(`[${Ve}]`);if(ae&&Fe(ae))return void _e(ae);for(const me of he)switch(me){case"content":const Ae=ie.querySelector('main, [role="main"]');if(Ae&&Fe(Ae))return void _e(Ae);break;case"heading":const ut=ie.querySelector('h1, [role="heading"][aria-level="1"]');if(ut&&Fe(ut))return void _e(ut);break;case"banner":const Vt=ie.querySelector('header, [role="banner"]');if(Vt&&Fe(Vt))return void _e(Vt);break;default:(0,Oe.p)(`Unrecognized focus manager priority value ${me}`)}_e(ie)}},at=z=>new Promise((q,ie)=>{(0,ge.w)(()=>{Mt(z),mt(z).then(he=>{he.animation&&he.animation.destroy(),vt(z),q(he)},he=>{vt(z),ie(he)})})}),Mt=z=>{const q=z.enteringEl,ie=z.leavingEl;ct_saveViewFocus(ie),rt(q,ie,z.direction),z.showGoBack?q.classList.add("can-go-back"):q.classList.remove("can-go-back"),Pt(q,!1),q.style.setProperty("pointer-events","none"),ie&&(Pt(ie,!1),ie.style.setProperty("pointer-events","none"))},mt=function(){var z=(0,g.A)(function*(q){const ie=yield Re(q);return ie&&ge.B.isBrowser?je(ie,q):Ke(q)});return function(ie){return z.apply(this,arguments)}}(),vt=z=>{const q=z.enteringEl,ie=z.leavingEl;q.classList.remove("ion-page-invisible"),q.style.removeProperty("pointer-events"),void 0!==ie&&(ie.classList.remove("ion-page-invisible"),ie.style.removeProperty("pointer-events")),ct_setViewFocus(q)},Re=function(){var z=(0,g.A)(function*(q){return q.leavingEl&&q.animated&&0!==q.duration?q.animationBuilder?q.animationBuilder:"ios"===q.mode?(yield Promise.resolve().then(B.bind(B,8454))).iosTransitionAnimation:(yield Promise.resolve().then(B.bind(B,3314))).mdTransitionAnimation:void 0});return function(ie){return z.apply(this,arguments)}}(),je=function(){var z=(0,g.A)(function*(q,ie){yield Ct(ie,!0);const he=q(ie.baseEl,ie);Tt(ie.enteringEl,ie.leavingEl);const ae=yield ze(he,ie);return ie.progressCallback&&ie.progressCallback(void 0),ae&&Lt(ie.enteringEl,ie.leavingEl),{hasCompleted:ae,animation:he}});return function(ie,he){return z.apply(this,arguments)}}(),Ke=function(){var z=(0,g.A)(function*(q){const ie=q.enteringEl,he=q.leavingEl,ae=d.c.get("focusManagerPriority",!1);return yield Ct(q,ae),Tt(ie,he),Lt(ie,he),{hasCompleted:!0}});return function(ie){return z.apply(this,arguments)}}(),Ct=function(){var z=(0,g.A)(function*(q,ie){(void 0!==q.deepWait?q.deepWait:ie)&&(yield Promise.all([Be(q.enteringEl),Be(q.leavingEl)])),yield kt(q.viewIsReady,q.enteringEl)});return function(ie,he){return z.apply(this,arguments)}}(),kt=function(){var z=(0,g.A)(function*(q,ie){q&&(yield q(ie))});return function(ie,he){return z.apply(this,arguments)}}(),ze=(z,q)=>{const ie=q.progressCallback,he=new Promise(ae=>{z.onFinish(me=>ae(1===me))});return ie?(z.progressStart(!0),ie(z)):z.play(),he},Tt=(z,q)=>{en(q,Qe),en(z,"ionViewWillEnter")},Lt=(z,q)=>{en(z,"ionViewDidEnter"),en(q,tt)},en=(z,q)=>{if(z){const ie=new CustomEvent(q,{bubbles:!1,cancelable:!1});z.dispatchEvent(ie)}},Dt=()=>new Promise(z=>(0,Q.r)(()=>(0,Q.r)(()=>z()))),Be=function(){var z=(0,g.A)(function*(q){const ie=q;if(ie){if(null!=ie.componentOnReady){if(null!=(yield ie.componentOnReady()))return}else if(null!=ie.__registerHost)return void(yield new Promise(ae=>(0,Q.r)(ae)));yield Promise.all(Array.from(ie.children).map(Be))}});return function(ie){return z.apply(this,arguments)}}(),Pt=(z,q)=>{q?(z.setAttribute("aria-hidden","true"),z.classList.add("ion-page-hidden")):(z.hidden=!1,z.removeAttribute("aria-hidden"),z.classList.remove("ion-page-hidden"))},rt=(z,q,ie)=>{void 0!==z&&(z.style.zIndex="back"===ie?"99":"101"),void 0!==q&&(q.style.zIndex="100")},Pe=z=>z.classList.contains("ion-page")?z:z.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")||z},4929:(En,bt,B)=>{"use strict";B.d(bt,{a:()=>d,b:()=>ge,p:()=>g});const g=(Oe,...Q)=>console.warn(`[Ionic Warning]: ${Oe}`,...Q),d=(Oe,...Q)=>console.error(`[Ionic Error]: ${Oe}`,...Q),ge=(Oe,...Q)=>console.error(`<${Oe.tagName.toLowerCase()}> must be used inside ${Q.join(" or ")}.`)},8476:(En,bt,B)=>{"use strict";B.d(bt,{d:()=>d,w:()=>g});const g=typeof window<"u"?window:void 0,d=typeof document<"u"?document:void 0},3664:(En,bt,B)=>{"use strict";B.d(bt,{a:()=>_e,b:()=>Pt,c:()=>ge,i:()=>rt});var g=B(9672);class d{constructor(){this.m=new Map}reset(z){this.m=new Map(Object.entries(z))}get(z,q){const ie=this.m.get(z);return void 0!==ie?ie:q}getBoolean(z,q=!1){const ie=this.m.get(z);return void 0===ie?q:"string"==typeof ie?"true"===ie:!!ie}getNumber(z,q){const ie=parseFloat(this.m.get(z));return isNaN(ie)?void 0!==q?q:NaN:ie}set(z,q){this.m.set(z,q)}}const ge=new d,tt="ionic-persist-config",_e=(Pe,z)=>("string"==typeof Pe&&(z=Pe,Pe=void 0),(Pe=>Fe(Pe))(Pe).includes(z)),Fe=(Pe=window)=>{if(typeof Pe>"u")return[];Pe.Ionic=Pe.Ionic||{};let z=Pe.Ionic.platforms;return null==z&&(z=Pe.Ionic.platforms=Ue(Pe),z.forEach(q=>Pe.document.documentElement.classList.add(`plt-${q}`))),z},Ue=Pe=>{const z=ge.get("platform");return Object.keys(Dt).filter(q=>{const ie=null==z?void 0:z[q];return"function"==typeof ie?ie(Pe):Dt[q](Pe)})},Ye=Pe=>!!(Lt(Pe,/iPad/i)||Lt(Pe,/Macintosh/i)&&Re(Pe)),at=Pe=>Lt(Pe,/android|sink/i),Re=Pe=>en(Pe,"(any-pointer:coarse)"),Ke=Pe=>Ct(Pe)||kt(Pe),Ct=Pe=>!!(Pe.cordova||Pe.phonegap||Pe.PhoneGap),kt=Pe=>{const z=Pe.Capacitor;return!(null==z||!z.isNative)},Lt=(Pe,z)=>z.test(Pe.navigator.userAgent),en=(Pe,z)=>{var q;return null===(q=Pe.matchMedia)||void 0===q?void 0:q.call(Pe,z).matches},Dt={ipad:Ye,iphone:Pe=>Lt(Pe,/iPhone/i),ios:Pe=>Lt(Pe,/iPhone|iPod/i)||Ye(Pe),android:at,phablet:Pe=>{const z=Pe.innerWidth,q=Pe.innerHeight,ie=Math.min(z,q),he=Math.max(z,q);return ie>390&&ie<520&&he>620&&he<800},tablet:Pe=>{const z=Pe.innerWidth,q=Pe.innerHeight,ie=Math.min(z,q),he=Math.max(z,q);return Ye(Pe)||(Pe=>at(Pe)&&!Lt(Pe,/mobile/i))(Pe)||ie>460&&ie<820&&he>780&&he<1400},cordova:Ct,capacitor:kt,electron:Pe=>Lt(Pe,/electron/i),pwa:Pe=>{var z;return!!(null!==(z=Pe.matchMedia)&&void 0!==z&&z.call(Pe,"(display-mode: standalone)").matches||Pe.navigator.standalone)},mobile:Re,mobileweb:Pe=>Re(Pe)&&!Ke(Pe),desktop:Pe=>!Re(Pe),hybrid:Ke};let Be;const Pt=Pe=>Pe&&(0,g.g)(Pe)||Be,rt=(Pe={})=>{if(typeof window>"u")return;const z=window.document,q=window,ie=q.Ionic=q.Ionic||{},he={};Pe._ael&&(he.ael=Pe._ael),Pe._rel&&(he.rel=Pe._rel),Pe._ce&&(he.ce=Pe._ce),(0,g.a)(he);const ae=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(Pe=>{try{const z=Pe.sessionStorage.getItem(tt);return null!==z?JSON.parse(z):{}}catch{return{}}})(q)),{persistConfig:!1}),ie.config),(Pe=>{const z={};return Pe.location.search.slice(1).split("&").map(q=>q.split("=")).map(([q,ie])=>{try{return[decodeURIComponent(q),decodeURIComponent(ie)]}catch{return["",""]}}).filter(([q])=>((Pe,z)=>Pe.substr(0,z.length)===z)(q,"ionic:")).map(([q,ie])=>[q.slice(6),ie]).forEach(([q,ie])=>{z[q]=ie}),z})(q)),Pe);ge.reset(ae),ge.getBoolean("persistConfig")&&((Pe,z)=>{try{Pe.sessionStorage.setItem(tt,JSON.stringify(z))}catch{return}})(q,ae),Fe(q),ie.config=ge,ie.mode=Be=ge.get("mode",z.documentElement.getAttribute("mode")||(_e(q,"ios")?"ios":"md")),ge.set("mode",Be),z.documentElement.setAttribute("mode",Be),z.documentElement.classList.add(Be),ge.getBoolean("_testing")&&ge.set("animated",!1);const me=ut=>{var Vt;return null===(Vt=ut.tagName)||void 0===Vt?void 0:Vt.startsWith("ION-")},Ae=ut=>["ios","md"].includes(ut);(0,g.c)(ut=>{for(;ut;){const Vt=ut.mode||ut.getAttribute("mode");if(Vt){if(Ae(Vt))return Vt;me(ut)&&console.warn('Invalid ionic mode: "'+Vt+'", expected: "ios" or "md"')}ut=ut.parentElement}return Be})}},8454:(En,bt,B)=>{"use strict";B.r(bt),B.d(bt,{iosTransitionAnimation:()=>Ve,shadow:()=>Qe});var g=B(9986),d=B(2725);B(8476),B(3664),B(9672);const ne=gt=>document.querySelector(`${gt}.ion-cloned-element`),Qe=gt=>gt.shadowRoot||gt,tt=gt=>{const ct="ION-TABS"===gt.tagName?gt:gt.querySelector("ion-tabs"),at="ion-content ion-header:not(.header-collapse-condense-inactive) ion-title.title-large";if(null!=ct){const Mt=ct.querySelector("ion-tab:not(.tab-hidden), .ion-page:not(.ion-page-hidden)");return null!=Mt?Mt.querySelector(at):null}return gt.querySelector(at)},Te=(gt,ct)=>{const at="ION-TABS"===gt.tagName?gt:gt.querySelector("ion-tabs");let Mt=[];if(null!=at){const mt=at.querySelector("ion-tab:not(.tab-hidden), .ion-page:not(.ion-page-hidden)");null!=mt&&(Mt=mt.querySelectorAll("ion-buttons"))}else Mt=gt.querySelectorAll("ion-buttons");for(const mt of Mt){const vt=mt.closest("ion-header"),Re=vt&&!vt.classList.contains("header-collapse-condense-inactive"),je=mt.querySelector("ion-back-button"),Ke=mt.classList.contains("buttons-collapse");if(null!==je&&("start"===mt.slot||""===mt.slot)&&(Ke&&Re&&ct||!Ke))return je}return null},Fe=(gt,ct,at,Mt,mt,vt,Re,je,Ke)=>{var Ct,kt;const ze=ct?`calc(100% - ${mt.right+4}px)`:mt.left-4+"px",Tt=ct?"right":"left",Lt=ct?"left":"right",en=ct?"right":"left";let Dt=1,Be=1,Pt=`scale(${Be})`;const rt="scale(1)";if(vt&&Re){const Ot=(null===(Ct=vt.textContent)||void 0===Ct?void 0:Ct.trim())===(null===(kt=je.textContent)||void 0===kt?void 0:kt.trim());Dt=Ke.width/Re.width,Be=(Ke.height-Ye)/Re.height,Pt=Ot?`scale(${Dt}, ${Be})`:`scale(${Be})`}const z=Qe(Mt).querySelector("ion-icon").getBoundingClientRect(),q=ct?z.width/2-(z.right-mt.right)+"px":mt.left-z.width/2+"px",ie=ct?`-${window.innerWidth-mt.right}px`:`${mt.left}px`,he=`${Ke.top}px`,ae=`${mt.top}px`,ut=at?[{offset:0,transform:`translate3d(${ie}, ${ae}, 0)`},{offset:1,transform:`translate3d(${q}, ${he}, 0)`}]:[{offset:0,transform:`translate3d(${q}, ${he}, 0)`},{offset:1,transform:`translate3d(${ie}, ${ae}, 0)`}],vn=at?[{offset:0,opacity:1,transform:rt},{offset:1,opacity:0,transform:Pt}]:[{offset:0,opacity:0,transform:Pt},{offset:1,opacity:1,transform:rt}],qn=at?[{offset:0,opacity:1,transform:"scale(1)"},{offset:.2,opacity:0,transform:"scale(0.6)"},{offset:1,opacity:0,transform:"scale(0.6)"}]:[{offset:0,opacity:0,transform:"scale(0.6)"},{offset:.6,opacity:0,transform:"scale(0.6)"},{offset:1,opacity:1,transform:"scale(1)"}],er=(0,g.c)(),yn=(0,g.c)(),ir=(0,g.c)(),Yn=ne("ion-back-button"),Le=Qe(Yn).querySelector(".button-text"),yt=Qe(Yn).querySelector("ion-icon");Yn.text=Mt.text,Yn.mode=Mt.mode,Yn.icon=Mt.icon,Yn.color=Mt.color,Yn.disabled=Mt.disabled,Yn.style.setProperty("display","block"),Yn.style.setProperty("position","fixed"),yn.addElement(yt),er.addElement(Le),ir.addElement(Yn),ir.beforeStyles({position:"absolute",top:"0px",[en]:"0px"}).beforeAddWrite(()=>{Mt.style.setProperty("display","none"),Yn.style.setProperty(Tt,ze)}).afterAddWrite(()=>{Mt.style.setProperty("display",""),Yn.style.setProperty("display","none"),Yn.style.removeProperty(Tt)}).keyframes(ut),er.beforeStyles({"transform-origin":`${Tt} top`}).keyframes(vn),yn.beforeStyles({"transform-origin":`${Lt} center`}).keyframes(qn),gt.addAnimation([er,yn,ir])},Ue=(gt,ct,at,Mt,mt,vt,Re,je,Ke)=>{var Ct,kt;const ze=ct?"right":"left",Tt=ct?`calc(100% - ${mt.right}px)`:`${mt.left}px`,en=`${mt.top}px`;let Be=ct?`-${window.innerWidth-Re.right-8}px`:`${Re.x+8}px`,Pt=.5;const rt="scale(1)";let Pe=`scale(${Pt})`;if(je&&Ke){Be=ct?`-${window.innerWidth-Ke.right-8}px`:Ke.x-8+"px";const Vt=(null===(Ct=je.textContent)||void 0===Ct?void 0:Ct.trim())===(null===(kt=Mt.textContent)||void 0===kt?void 0:kt.trim());Pt=Ke.height/(vt.height-Ye),Pe=Vt?`scale(${Ke.width/vt.width}, ${Pt})`:`scale(${Pt})`}const ie=Re.top+Re.height/2-mt.height*Pt/2+"px",me=at?[{offset:0,opacity:0,transform:`translate3d(${Be}, ${ie}, 0) ${Pe}`},{offset:.1,opacity:0},{offset:1,opacity:1,transform:`translate3d(0px, ${en}, 0) ${rt}`}]:[{offset:0,opacity:.99,transform:`translate3d(0px, ${en}, 0) ${rt}`},{offset:.6,opacity:0},{offset:1,opacity:0,transform:`translate3d(${Be}, ${ie}, 0) ${Pe}`}],Ae=ne("ion-title"),ut=(0,g.c)();Ae.innerText=Mt.innerText,Ae.size=Mt.size,Ae.color=Mt.color,ut.addElement(Ae),ut.beforeStyles({"transform-origin":`${ze} top`,height:`${mt.height}px`,display:"",position:"relative",[ze]:Tt}).beforeAddWrite(()=>{Mt.style.setProperty("opacity","0")}).afterAddWrite(()=>{Mt.style.setProperty("opacity",""),Ae.style.setProperty("display","none")}).keyframes(me),gt.addAnimation(ut)},Ve=(gt,ct)=>{var at;try{const Mt="cubic-bezier(0.32,0.72,0,1)",mt="opacity",vt="transform",Re="0%",Ke="rtl"===gt.ownerDocument.dir,Ct=Ke?"-99.5%":"99.5%",kt=Ke?"33%":"-33%",ze=ct.enteringEl,Tt=ct.leavingEl,Lt="back"===ct.direction,en=ze.querySelector(":scope > ion-content"),Dt=ze.querySelectorAll(":scope > ion-header > *:not(ion-toolbar), :scope > ion-footer > *"),Be=ze.querySelectorAll(":scope > ion-header > ion-toolbar"),Pt=(0,g.c)(),rt=(0,g.c)();if(Pt.addElement(ze).duration((null!==(at=ct.duration)&&void 0!==at?at:0)||540).easing(ct.easing||Mt).fill("both").beforeRemoveClass("ion-page-invisible"),Tt&&null!=gt){const ie=(0,g.c)();ie.addElement(gt),Pt.addAnimation(ie)}if(en||0!==Be.length||0!==Dt.length?(rt.addElement(en),rt.addElement(Dt)):rt.addElement(ze.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")),Pt.addAnimation(rt),Lt?rt.beforeClearStyles([mt]).fromTo("transform",`translateX(${kt})`,`translateX(${Re})`).fromTo(mt,.8,1):rt.beforeClearStyles([mt]).fromTo("transform",`translateX(${Ct})`,`translateX(${Re})`),en){const ie=Qe(en).querySelector(".transition-effect");if(ie){const he=ie.querySelector(".transition-cover"),ae=ie.querySelector(".transition-shadow"),me=(0,g.c)(),Ae=(0,g.c)(),ut=(0,g.c)();me.addElement(ie).beforeStyles({opacity:"1",display:"block"}).afterStyles({opacity:"",display:""}),Ae.addElement(he).beforeClearStyles([mt]).fromTo(mt,0,.1),ut.addElement(ae).beforeClearStyles([mt]).fromTo(mt,.03,.7),me.addAnimation([Ae,ut]),rt.addAnimation([me])}}const Pe=ze.querySelector("ion-header.header-collapse-condense"),{forward:z,backward:q}=((gt,ct,at,Mt,mt)=>{const vt=Te(Mt,at),Re=tt(mt),je=tt(Mt),Ke=Te(mt,at),Ct=null!==vt&&null!==Re&&!at,kt=null!==je&&null!==Ke&&at;if(Ct){const ze=Re.getBoundingClientRect(),Tt=vt.getBoundingClientRect(),Lt=Qe(vt).querySelector(".button-text"),en=null==Lt?void 0:Lt.getBoundingClientRect(),Be=Qe(Re).querySelector(".toolbar-title").getBoundingClientRect();Ue(gt,ct,at,Re,ze,Be,Tt,Lt,en),Fe(gt,ct,at,vt,Tt,Lt,en,Re,Be)}else if(kt){const ze=je.getBoundingClientRect(),Tt=Ke.getBoundingClientRect(),Lt=Qe(Ke).querySelector(".button-text"),en=null==Lt?void 0:Lt.getBoundingClientRect(),Be=Qe(je).querySelector(".toolbar-title").getBoundingClientRect();Ue(gt,ct,at,je,ze,Be,Tt,Lt,en),Fe(gt,ct,at,Ke,Tt,Lt,en,je,Be)}return{forward:Ct,backward:kt}})(Pt,Ke,Lt,ze,Tt);if(Be.forEach(ie=>{const he=(0,g.c)();he.addElement(ie),Pt.addAnimation(he);const ae=(0,g.c)();ae.addElement(ie.querySelector("ion-title"));const me=(0,g.c)(),Ae=Array.from(ie.querySelectorAll("ion-buttons,[menuToggle]")),ut=ie.closest("ion-header"),Vt=null==ut?void 0:ut.classList.contains("header-collapse-condense-inactive");let jt;jt=Ae.filter(Lt?er=>{const yn=er.classList.contains("buttons-collapse");return yn&&!Vt||!yn}:er=>!er.classList.contains("buttons-collapse")),me.addElement(jt);const vn=(0,g.c)();vn.addElement(ie.querySelectorAll(":scope > *:not(ion-title):not(ion-buttons):not([menuToggle])"));const bn=(0,g.c)();bn.addElement(Qe(ie).querySelector(".toolbar-background"));const $n=(0,g.c)(),qn=ie.querySelector("ion-back-button");if(qn&&$n.addElement(qn),he.addAnimation([ae,me,vn,bn,$n]),me.fromTo(mt,.01,1),vn.fromTo(mt,.01,1),Lt)Vt||ae.fromTo("transform",`translateX(${kt})`,`translateX(${Re})`).fromTo(mt,.01,1),vn.fromTo("transform",`translateX(${kt})`,`translateX(${Re})`),$n.fromTo(mt,.01,1);else if(Pe||ae.fromTo("transform",`translateX(${Ct})`,`translateX(${Re})`).fromTo(mt,.01,1),vn.fromTo("transform",`translateX(${Ct})`,`translateX(${Re})`),bn.beforeClearStyles([mt,"transform"]),(null==ut?void 0:ut.translucent)?bn.fromTo("transform",Ke?"translateX(-100%)":"translateX(100%)","translateX(0px)"):bn.fromTo(mt,.01,"var(--opacity)"),z||$n.fromTo(mt,.01,1),qn&&!z){const yn=(0,g.c)();yn.addElement(Qe(qn).querySelector(".button-text")).fromTo("transform",Ke?"translateX(-100px)":"translateX(100px)","translateX(0px)"),he.addAnimation(yn)}}),Tt){const ie=(0,g.c)(),he=Tt.querySelector(":scope > ion-content"),ae=Tt.querySelectorAll(":scope > ion-header > ion-toolbar"),me=Tt.querySelectorAll(":scope > ion-header > *:not(ion-toolbar), :scope > ion-footer > *");if(he||0!==ae.length||0!==me.length?(ie.addElement(he),ie.addElement(me)):ie.addElement(Tt.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")),Pt.addAnimation(ie),Lt){ie.beforeClearStyles([mt]).fromTo("transform",`translateX(${Re})`,Ke?"translateX(-100%)":"translateX(100%)");const Ae=(0,d.g)(Tt);Pt.afterAddWrite(()=>{"normal"===Pt.getDirection()&&Ae.style.setProperty("display","none")})}else ie.fromTo("transform",`translateX(${Re})`,`translateX(${kt})`).fromTo(mt,1,.8);if(he){const Ae=Qe(he).querySelector(".transition-effect");if(Ae){const ut=Ae.querySelector(".transition-cover"),Vt=Ae.querySelector(".transition-shadow"),jt=(0,g.c)(),vn=(0,g.c)(),bn=(0,g.c)();jt.addElement(Ae).beforeStyles({opacity:"1",display:"block"}).afterStyles({opacity:"",display:""}),vn.addElement(ut).beforeClearStyles([mt]).fromTo(mt,.1,0),bn.addElement(Vt).beforeClearStyles([mt]).fromTo(mt,.7,.03),jt.addAnimation([vn,bn]),ie.addAnimation([jt])}}ae.forEach(Ae=>{const ut=(0,g.c)();ut.addElement(Ae);const Vt=(0,g.c)();Vt.addElement(Ae.querySelector("ion-title"));const jt=(0,g.c)(),vn=Ae.querySelectorAll("ion-buttons,[menuToggle]"),bn=Ae.closest("ion-header"),$n=null==bn?void 0:bn.classList.contains("header-collapse-condense-inactive"),qn=Array.from(vn).filter(yt=>{const Ot=yt.classList.contains("buttons-collapse");return Ot&&!$n||!Ot});jt.addElement(qn);const er=(0,g.c)(),yn=Ae.querySelectorAll(":scope > *:not(ion-title):not(ion-buttons):not([menuToggle])");yn.length>0&&er.addElement(yn);const ir=(0,g.c)();ir.addElement(Qe(Ae).querySelector(".toolbar-background"));const Yn=(0,g.c)(),Le=Ae.querySelector("ion-back-button");if(Le&&Yn.addElement(Le),ut.addAnimation([Vt,jt,er,Yn,ir]),Pt.addAnimation(ut),Yn.fromTo(mt,.99,0),jt.fromTo(mt,.99,0),er.fromTo(mt,.99,0),Lt){if($n||Vt.fromTo("transform",`translateX(${Re})`,Ke?"translateX(-100%)":"translateX(100%)").fromTo(mt,.99,0),er.fromTo("transform",`translateX(${Re})`,Ke?"translateX(-100%)":"translateX(100%)"),ir.beforeClearStyles([mt,"transform"]),(null==bn?void 0:bn.translucent)?ir.fromTo("transform","translateX(0px)",Ke?"translateX(-100%)":"translateX(100%)"):ir.fromTo(mt,"var(--opacity)",0),Le&&!q){const Ot=(0,g.c)();Ot.addElement(Qe(Le).querySelector(".button-text")).fromTo("transform",`translateX(${Re})`,`translateX(${(Ke?-124:124)+"px"})`),ut.addAnimation(Ot)}}else $n||Vt.fromTo("transform",`translateX(${Re})`,`translateX(${kt})`).fromTo(mt,.99,0).afterClearStyles([vt,mt]),er.fromTo("transform",`translateX(${Re})`,`translateX(${kt})`).afterClearStyles([vt,mt]),Yn.afterClearStyles([mt]),Vt.afterClearStyles([mt]),jt.afterClearStyles([mt])})}return Pt}catch(Mt){throw Mt}},Ye=10},3314:(En,bt,B)=>{"use strict";B.r(bt),B.d(bt,{mdTransitionAnimation:()=>Ie});var g=B(9986),d=B(2725);B(8476),B(3664),B(9672);const Ie=(ne,Qe)=>{var tt,Te,_e;const Ve="back"===Qe.direction,gt=Qe.leavingEl,ct=(0,d.g)(Qe.enteringEl),at=ct.querySelector("ion-toolbar"),Mt=(0,g.c)();if(Mt.addElement(ct).fill("both").beforeRemoveClass("ion-page-invisible"),Ve?Mt.duration((null!==(tt=Qe.duration)&&void 0!==tt?tt:0)||200).easing("cubic-bezier(0.47,0,0.745,0.715)"):Mt.duration((null!==(Te=Qe.duration)&&void 0!==Te?Te:0)||280).easing("cubic-bezier(0.36,0.66,0.04,1)").fromTo("transform","translateY(40px)","translateY(0px)").fromTo("opacity",.01,1),at){const mt=(0,g.c)();mt.addElement(at),Mt.addAnimation(mt)}if(gt&&Ve){Mt.duration((null!==(_e=Qe.duration)&&void 0!==_e?_e:0)||200).easing("cubic-bezier(0.47,0,0.745,0.715)");const mt=(0,g.c)();mt.addElement((0,d.g)(gt)).onFinish(vt=>{1===vt&&mt.elements.length>0&&mt.elements[0].style.setProperty("display","none")}).fromTo("transform","translateY(0px)","translateY(40px)").fromTo("opacity",1,0),Mt.addAnimation(mt)}return Mt}},6002:(En,bt,B)=>{"use strict";B.d(bt,{B:()=>vn,F:()=>Yn,G:()=>bn,O:()=>$n,a:()=>ct,b:()=>at,c:()=>Re,d:()=>qn,e:()=>er,f:()=>z,g:()=>ie,h:()=>me,i:()=>ut,j:()=>Ke,k:()=>Ct,l:()=>Mt,m:()=>mt,n:()=>Te,o:()=>rt,q:()=>_e,s:()=>jt});var g=B(467),d=B(8476),ge=B(4920),Oe=B(6411),Q=B(3664),Ie=B(8621),ne=B(1970),Qe=B(4929);const tt='[tabindex]:not([tabindex^="-"]):not([hidden]):not([disabled]), input:not([type=hidden]):not([tabindex^="-"]):not([hidden]):not([disabled]), textarea:not([tabindex^="-"]):not([hidden]):not([disabled]), button:not([tabindex^="-"]):not([hidden]):not([disabled]), select:not([tabindex^="-"]):not([hidden]):not([disabled]), .ion-focusable:not([tabindex^="-"]):not([hidden]):not([disabled]), .ion-focusable[disabled="false"]:not([tabindex^="-"]):not([hidden])',Te=(Le,yt)=>{const Ot=Le.querySelector(tt);Fe(Ot,null!=yt?yt:Le)},_e=(Le,yt)=>{const Ot=Array.from(Le.querySelectorAll(tt));Fe(Ot.length>0?Ot[Ot.length-1]:null,null!=yt?yt:Le)},Fe=(Le,yt)=>{let Ot=Le;const Qt=null==Le?void 0:Le.shadowRoot;Qt&&(Ot=Qt.querySelector(tt)||Le),Ot?(0,ge.f)(Ot):yt.focus()};let Ue=0,Ve=0;const Ye=new WeakMap,gt=Le=>({create:yt=>kt(Le,yt),dismiss:(yt,Ot,Qt)=>Dt(document,yt,Ot,Le,Qt),getTop:()=>(0,g.A)(function*(){return rt(document,Le)})()}),ct=gt("ion-alert"),at=gt("ion-action-sheet"),Mt=gt("ion-loading"),mt=gt("ion-modal"),Re=gt("ion-popover"),Ke=Le=>{typeof document<"u"&&en(document);const yt=Ue++;Le.overlayIndex=yt},Ct=Le=>(Le.hasAttribute("id")||(Le.id="ion-overlay-"+ ++Ve),Le.id),kt=(Le,yt)=>typeof window<"u"&&typeof window.customElements<"u"?window.customElements.whenDefined(Le).then(()=>{const Ot=document.createElement(Le);return Ot.classList.add("overlay-hidden"),Object.assign(Ot,Object.assign(Object.assign({},yt),{hasController:!0})),he(document).appendChild(Ot),new Promise(Qt=>(0,ge.c)(Ot,Qt))}):Promise.resolve(),Tt=(Le,yt)=>{let Ot=Le;const Qt=null==Le?void 0:Le.shadowRoot;Qt&&(Ot=Qt.querySelector(tt)||Le),Ot?(0,ge.f)(Ot):yt.focus()},en=Le=>{0===Ue&&(Ue=1,Le.addEventListener("focus",yt=>{((Le,yt)=>{const Ot=rt(yt,"ion-alert,ion-action-sheet,ion-loading,ion-modal,ion-picker-legacy,ion-popover"),Qt=Le.target;Ot&&Qt&&!Ot.classList.contains(Yn)&&(Ot.shadowRoot?(()=>{if(Ot.contains(Qt))Ot.lastFocus=Qt;else if("ION-TOAST"===Qt.tagName)Tt(Ot.lastFocus,Ot);else{const gn=Ot.lastFocus;Te(Ot),gn===yt.activeElement&&_e(Ot),Ot.lastFocus=yt.activeElement}})():(()=>{if(Ot===Qt)Ot.lastFocus=void 0;else if("ION-TOAST"===Qt.tagName)Tt(Ot.lastFocus,Ot);else{const gn=(0,ge.g)(Ot);if(!gn.contains(Qt))return;const mn=gn.querySelector(".ion-overlay-wrapper");if(!mn)return;if(mn.contains(Qt)||Qt===gn.querySelector("ion-backdrop"))Ot.lastFocus=Qt;else{const Jt=Ot.lastFocus;Te(mn,Ot),Jt===yt.activeElement&&_e(mn,Ot),Ot.lastFocus=yt.activeElement}}})())})(yt,Le)},!0),Le.addEventListener("ionBackButton",yt=>{const Ot=rt(Le);null!=Ot&&Ot.backdropDismiss&&yt.detail.register(Oe.OVERLAY_BACK_BUTTON_PRIORITY,()=>{Ot.dismiss(void 0,vn)})}),(0,Oe.shouldUseCloseWatcher)()||Le.addEventListener("keydown",yt=>{if("Escape"===yt.key){const Ot=rt(Le);null!=Ot&&Ot.backdropDismiss&&Ot.dismiss(void 0,vn)}}))},Dt=(Le,yt,Ot,Qt,tn)=>{const Ar=rt(Le,Qt,tn);return Ar?Ar.dismiss(yt,Ot):Promise.reject("overlay does not exist")},Pt=(Le,yt)=>((Le,yt)=>(void 0===yt&&(yt="ion-alert,ion-action-sheet,ion-loading,ion-modal,ion-picker-legacy,ion-popover,ion-toast"),Array.from(Le.querySelectorAll(yt)).filter(Ot=>Ot.overlayIndex>0)))(Le,yt).filter(Ot=>!(Le=>Le.classList.contains("overlay-hidden"))(Ot)),rt=(Le,yt,Ot)=>{const Qt=Pt(Le,yt);return void 0===Ot?Qt[Qt.length-1]:Qt.find(tn=>tn.id===Ot)},Pe=(Le=!1)=>{const Ot=he(document).querySelector("ion-router-outlet, ion-nav, #ion-view-container-root");Ot&&(Le?Ot.setAttribute("aria-hidden","true"):Ot.removeAttribute("aria-hidden"))},z=function(){var Le=(0,g.A)(function*(yt,Ot,Qt,tn,Ar){var gn,mn;if(yt.presented)return;Pe(!0),document.body.classList.add(ne.B),yn(yt.el),yt.presented=!0,yt.willPresent.emit(),null===(gn=yt.willPresentShorthand)||void 0===gn||gn.emit();const Jt=(0,Q.b)(yt),Wt=yt.enterAnimation?yt.enterAnimation:Q.c.get(Ot,"ios"===Jt?Qt:tn);(yield ae(yt,Wt,yt.el,Ar))&&(yt.didPresent.emit(),null===(mn=yt.didPresentShorthand)||void 0===mn||mn.emit()),"ION-TOAST"!==yt.el.tagName&&q(yt.el),yt.keyboardClose&&(null===document.activeElement||!yt.el.contains(document.activeElement))&&yt.el.focus(),yt.el.removeAttribute("aria-hidden")});return function(Ot,Qt,tn,Ar,gn){return Le.apply(this,arguments)}}(),q=function(){var Le=(0,g.A)(function*(yt){let Ot=document.activeElement;if(!Ot)return;const Qt=null==Ot?void 0:Ot.shadowRoot;Qt&&(Ot=Qt.querySelector(tt)||Ot),yield yt.onDidDismiss(),(null===document.activeElement||document.activeElement===document.body)&&Ot.focus()});return function(Ot){return Le.apply(this,arguments)}}(),ie=function(){var Le=(0,g.A)(function*(yt,Ot,Qt,tn,Ar,gn,mn){var Jt,Wt;if(!yt.presented)return!1;void 0!==d.d&&1===Pt(d.d).length&&(Pe(!1),document.body.classList.remove(ne.B)),yt.presented=!1;try{yt.el.style.setProperty("pointer-events","none"),yt.willDismiss.emit({data:Ot,role:Qt}),null===(Jt=yt.willDismissShorthand)||void 0===Jt||Jt.emit({data:Ot,role:Qt});const wr=(0,Q.b)(yt),Or=yt.leaveAnimation?yt.leaveAnimation:Q.c.get(tn,"ios"===wr?Ar:gn);Qt!==bn&&(yield ae(yt,Or,yt.el,mn)),yt.didDismiss.emit({data:Ot,role:Qt}),null===(Wt=yt.didDismissShorthand)||void 0===Wt||Wt.emit({data:Ot,role:Qt}),(Ye.get(yt)||[]).forEach(_r=>_r.destroy()),Ye.delete(yt),yt.el.classList.add("overlay-hidden"),yt.el.style.removeProperty("pointer-events"),void 0!==yt.el.lastFocus&&(yt.el.lastFocus=void 0)}catch(wr){console.error(wr)}return yt.el.remove(),ir(),!0});return function(Ot,Qt,tn,Ar,gn,mn,Jt){return Le.apply(this,arguments)}}(),he=Le=>Le.querySelector("ion-app")||Le.body,ae=function(){var Le=(0,g.A)(function*(yt,Ot,Qt,tn){Qt.classList.remove("overlay-hidden");const gn=Ot(yt.el,tn);(!yt.animated||!Q.c.getBoolean("animated",!0))&&gn.duration(0),yt.keyboardClose&&gn.beforeAddWrite(()=>{const Jt=Qt.ownerDocument.activeElement;null!=Jt&&Jt.matches("input,ion-input, ion-textarea")&&Jt.blur()});const mn=Ye.get(yt)||[];return Ye.set(yt,[...mn,gn]),yield gn.play(),!0});return function(Ot,Qt,tn,Ar){return Le.apply(this,arguments)}}(),me=(Le,yt)=>{let Ot;const Qt=new Promise(tn=>Ot=tn);return Ae(Le,yt,tn=>{Ot(tn.detail)}),Qt},Ae=(Le,yt,Ot)=>{const Qt=tn=>{(0,ge.b)(Le,yt,Qt),Ot(tn)};(0,ge.a)(Le,yt,Qt)},ut=Le=>"cancel"===Le||Le===vn,Vt=Le=>Le(),jt=(Le,yt)=>{if("function"==typeof Le)return Q.c.get("_zoneGate",Vt)(()=>{try{return Le(yt)}catch(Qt){throw Qt}})},vn="backdrop",bn="gesture",$n=39,qn=Le=>{let Ot,yt=!1;const Qt=(0,Ie.C)(),tn=(mn=!1)=>{if(Ot&&!mn)return{delegate:Ot,inline:yt};const{el:Jt,hasController:Wt,delegate:pr}=Le;return yt=null!==Jt.parentNode&&!Wt,Ot=yt?pr||Qt:pr,{inline:yt,delegate:Ot}};return{attachViewToDom:function(){var mn=(0,g.A)(function*(Jt){const{delegate:Wt}=tn(!0);if(Wt)return yield Wt.attachViewToDom(Le.el,Jt);const{hasController:pr}=Le;if(pr&&void 0!==Jt)throw new Error("framework delegate is missing");return null});return function(Wt){return mn.apply(this,arguments)}}(),removeViewFromDom:()=>{const{delegate:mn}=tn();mn&&void 0!==Le.el&&mn.removeViewFromDom(Le.el.parentElement,Le.el)}}},er=()=>{let Le;const yt=()=>{Le&&(Le(),Le=void 0)};return{addClickListener:(Qt,tn)=>{yt();const Ar=void 0!==tn?document.getElementById(tn):null;Ar?Le=((mn,Jt)=>{const Wt=()=>{Jt.present()};return mn.addEventListener("click",Wt),()=>{mn.removeEventListener("click",Wt)}})(Ar,Qt):(0,Qe.p)(`A trigger element with the ID "${tn}" was not found in the DOM. The trigger element must be in the DOM when the "trigger" property is set on an overlay component.`,Qt)},removeClickListener:yt}},yn=Le=>{var yt;if(void 0===d.d)return;const Ot=Pt(d.d);for(let Qt=Ot.length-1;Qt>=0;Qt--){const tn=Ot[Qt],Ar=null!==(yt=Ot[Qt+1])&&void 0!==yt?yt:Le;(Ar.hasAttribute("aria-hidden")||"ION-TOAST"!==Ar.tagName)&&tn.setAttribute("aria-hidden","true")}},ir=()=>{if(void 0===d.d)return;const Le=Pt(d.d);for(let yt=Le.length-1;yt>=0;yt--){const Ot=Le[yt];if(Ot.removeAttribute("aria-hidden"),"ION-TOAST"!==Ot.tagName)break}},Yn="ion-disable-focus-trap"},63:(En,bt,B)=>{"use strict";var g=B(345),d=B(4438),ge=B(845),Oe=B(3656),Q=B(7863);let Ie=(()=>{var Pt;class rt{constructor(){}}return(Pt=rt).\u0275fac=function(z){return new(z||Pt)},Pt.\u0275cmp=d.VBU({type:Pt,selectors:[["app-root"]],decls:2,vars:0,template:function(z,q){1&z&&(d.j41(0,"ion-app"),d.nrm(1,"ion-router-outlet"),d.k0s())},dependencies:[Q.U1,Q.Rg]}),rt})();var ne=B(9842),Qe=B(8737),tt=B(1203),Te=B(6354),_e=B(6697);B(2214);const Ue=(0,Te.T)(Pt=>!!Pt);let Ve=(()=>{var Pt;class rt{constructor(z,q){(0,ne.A)(this,"router",void 0),(0,ne.A)(this,"auth",void 0),(0,ne.A)(this,"canActivate",(ie,he)=>{const ae=ie.data.authGuardPipe||(()=>Ue);return(0,Qe.kQ)(this.auth).pipe((0,_e.s)(1),ae(ie,he),(0,Te.T)(me=>"boolean"==typeof me?me:Array.isArray(me)?this.router.createUrlTree(me):this.router.parseUrl(me)))}),this.router=z,this.auth=q}}return Pt=rt,(0,ne.A)(rt,"\u0275fac",function(z){return new(z||Pt)(d.KVO(ge.Ix),d.KVO(Qe.Nj))}),(0,ne.A)(rt,"\u0275prov",d.jDH({token:Pt,factory:Pt.\u0275fac,providedIn:"any"})),rt})();const kt=[{path:"",redirectTo:"register",pathMatch:"full"},{path:"home",loadChildren:()=>B.e(5075).then(B.bind(B,5075)).then(Pt=>Pt.HomePageModule),...(Pt=()=>{return Pt=[""],(0,tt.F)(Ue,(0,Te.T)(rt=>rt||Pt));var Pt},{canActivate:[Ve],data:{authGuardPipe:Pt}})},{path:"register",loadChildren:()=>Promise.all([B.e(2076),B.e(3825)]).then(B.bind(B,3825)).then(Pt=>Pt.RegisterPageModule)},{path:"login",loadChildren:()=>Promise.all([B.e(2076),B.e(6688)]).then(B.bind(B,6688)).then(Pt=>Pt.LoginPageModule)}];var Pt;let ze=(()=>{var Pt;class rt{}return(Pt=rt).\u0275fac=function(z){return new(z||Pt)},Pt.\u0275mod=d.$C({type:Pt}),Pt.\u0275inj=d.G2t({imports:[ge.iI.forRoot(kt,{preloadingStrategy:ge.Kp}),ge.iI]}),rt})();var Tt=B(7440),Lt=B(4262);const en_firebase={projectId:"devprobe-89481",appId:"1:405563293900:web:ba12c0bd15401fd708c269",storageBucket:"devprobe-89481.appspot.com",apiKey:"AIzaSyAORx8ZNhFZwo_uR4tPEcmF8pKm4GAqi5A",authDomain:"devprobe-89481.firebaseapp.com",messagingSenderId:"405563293900"};let Dt=(()=>{var Pt;class rt{}return(Pt=rt).\u0275fac=function(z){return new(z||Pt)},Pt.\u0275mod=d.$C({type:Pt,bootstrap:[Ie]}),Pt.\u0275inj=d.G2t({providers:[{provide:ge.b,useClass:Oe.jM},(0,Tt.MW)(()=>(0,Tt.Wp)(en_firebase)),(0,Lt.hV)(()=>(0,Lt.aU)()),(0,Qe._q)(()=>(0,Qe.xI)())],imports:[g.Bb,Q.bv.forRoot(),ze]}),rt})();(0,d.SmG)(),g.sG().bootstrapModule(Dt).catch(Pt=>console.log(Pt))},4412:(En,bt,B)=>{"use strict";B.d(bt,{t:()=>d});var g=B(1413);class d extends g.B{constructor(Oe){super(),this._value=Oe}get value(){return this.getValue()}_subscribe(Oe){const Q=super._subscribe(Oe);return!Q.closed&&Oe.next(this._value),Q}getValue(){const{hasError:Oe,thrownError:Q,_value:Ie}=this;if(Oe)throw Q;return this._throwIfClosed(),Ie}next(Oe){super.next(this._value=Oe)}}},1985:(En,bt,B)=>{"use strict";B.d(bt,{c:()=>Qe});var g=B(7707),d=B(8359),ge=B(3494),Oe=B(1203),Q=B(1026),Ie=B(8071),ne=B(9786);let Qe=(()=>{class Fe{constructor(Ve){Ve&&(this._subscribe=Ve)}lift(Ve){const Ye=new Fe;return Ye.source=this,Ye.operator=Ve,Ye}subscribe(Ve,Ye,gt){const ct=function _e(Fe){return Fe&&Fe instanceof g.vU||function Te(Fe){return Fe&&(0,Ie.T)(Fe.next)&&(0,Ie.T)(Fe.error)&&(0,Ie.T)(Fe.complete)}(Fe)&&(0,d.Uv)(Fe)}(Ve)?Ve:new g.Ms(Ve,Ye,gt);return(0,ne.Y)(()=>{const{operator:at,source:Mt}=this;ct.add(at?at.call(ct,Mt):Mt?this._subscribe(ct):this._trySubscribe(ct))}),ct}_trySubscribe(Ve){try{return this._subscribe(Ve)}catch(Ye){Ve.error(Ye)}}forEach(Ve,Ye){return new(Ye=tt(Ye))((gt,ct)=>{const at=new g.Ms({next:Mt=>{try{Ve(Mt)}catch(mt){ct(mt),at.unsubscribe()}},error:ct,complete:gt});this.subscribe(at)})}_subscribe(Ve){var Ye;return null===(Ye=this.source)||void 0===Ye?void 0:Ye.subscribe(Ve)}[ge.s](){return this}pipe(...Ve){return(0,Oe.m)(Ve)(this)}toPromise(Ve){return new(Ve=tt(Ve))((Ye,gt)=>{let ct;this.subscribe(at=>ct=at,at=>gt(at),()=>Ye(ct))})}}return Fe.create=Ue=>new Fe(Ue),Fe})();function tt(Fe){var Ue;return null!==(Ue=null!=Fe?Fe:Q.$.Promise)&&void 0!==Ue?Ue:Promise}},1413:(En,bt,B)=>{"use strict";B.d(bt,{B:()=>ne});var g=B(1985),d=B(8359);const Oe=(0,B(1853).L)(tt=>function(){tt(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var Q=B(7908),Ie=B(9786);let ne=(()=>{class tt extends g.c{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(_e){const Fe=new Qe(this,this);return Fe.operator=_e,Fe}_throwIfClosed(){if(this.closed)throw new Oe}next(_e){(0,Ie.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const Fe of this.currentObservers)Fe.next(_e)}})}error(_e){(0,Ie.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=_e;const{observers:Fe}=this;for(;Fe.length;)Fe.shift().error(_e)}})}complete(){(0,Ie.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:_e}=this;for(;_e.length;)_e.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var _e;return(null===(_e=this.observers)||void 0===_e?void 0:_e.length)>0}_trySubscribe(_e){return this._throwIfClosed(),super._trySubscribe(_e)}_subscribe(_e){return this._throwIfClosed(),this._checkFinalizedStatuses(_e),this._innerSubscribe(_e)}_innerSubscribe(_e){const{hasError:Fe,isStopped:Ue,observers:Ve}=this;return Fe||Ue?d.Kn:(this.currentObservers=null,Ve.push(_e),new d.yU(()=>{this.currentObservers=null,(0,Q.o)(Ve,_e)}))}_checkFinalizedStatuses(_e){const{hasError:Fe,thrownError:Ue,isStopped:Ve}=this;Fe?_e.error(Ue):Ve&&_e.complete()}asObservable(){const _e=new g.c;return _e.source=this,_e}}return tt.create=(Te,_e)=>new Qe(Te,_e),tt})();class Qe extends ne{constructor(Te,_e){super(),this.destination=Te,this.source=_e}next(Te){var _e,Fe;null===(Fe=null===(_e=this.destination)||void 0===_e?void 0:_e.next)||void 0===Fe||Fe.call(_e,Te)}error(Te){var _e,Fe;null===(Fe=null===(_e=this.destination)||void 0===_e?void 0:_e.error)||void 0===Fe||Fe.call(_e,Te)}complete(){var Te,_e;null===(_e=null===(Te=this.destination)||void 0===Te?void 0:Te.complete)||void 0===_e||_e.call(Te)}_subscribe(Te){var _e,Fe;return null!==(Fe=null===(_e=this.source)||void 0===_e?void 0:_e.subscribe(Te))&&void 0!==Fe?Fe:d.Kn}}},7707:(En,bt,B)=>{"use strict";B.d(bt,{Ms:()=>gt,vU:()=>Fe});var g=B(8071),d=B(8359),ge=B(1026),Oe=B(5334),Q=B(5343);const Ie=tt("C",void 0,void 0);function tt(vt,Re,je){return{kind:vt,value:Re,error:je}}var Te=B(9270),_e=B(9786);class Fe extends d.yU{constructor(Re){super(),this.isStopped=!1,Re?(this.destination=Re,(0,d.Uv)(Re)&&Re.add(this)):this.destination=mt}static create(Re,je,Ke){return new gt(Re,je,Ke)}next(Re){this.isStopped?Mt(function Qe(vt){return tt("N",vt,void 0)}(Re),this):this._next(Re)}error(Re){this.isStopped?Mt(function ne(vt){return tt("E",void 0,vt)}(Re),this):(this.isStopped=!0,this._error(Re))}complete(){this.isStopped?Mt(Ie,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(Re){this.destination.next(Re)}_error(Re){try{this.destination.error(Re)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const Ue=Function.prototype.bind;function Ve(vt,Re){return Ue.call(vt,Re)}class Ye{constructor(Re){this.partialObserver=Re}next(Re){const{partialObserver:je}=this;if(je.next)try{je.next(Re)}catch(Ke){ct(Ke)}}error(Re){const{partialObserver:je}=this;if(je.error)try{je.error(Re)}catch(Ke){ct(Ke)}else ct(Re)}complete(){const{partialObserver:Re}=this;if(Re.complete)try{Re.complete()}catch(je){ct(je)}}}class gt extends Fe{constructor(Re,je,Ke){let Ct;if(super(),(0,g.T)(Re)||!Re)Ct={next:null!=Re?Re:void 0,error:null!=je?je:void 0,complete:null!=Ke?Ke:void 0};else{let kt;this&&ge.$.useDeprecatedNextContext?(kt=Object.create(Re),kt.unsubscribe=()=>this.unsubscribe(),Ct={next:Re.next&&Ve(Re.next,kt),error:Re.error&&Ve(Re.error,kt),complete:Re.complete&&Ve(Re.complete,kt)}):Ct=Re}this.destination=new Ye(Ct)}}function ct(vt){ge.$.useDeprecatedSynchronousErrorHandling?(0,_e.l)(vt):(0,Oe.m)(vt)}function Mt(vt,Re){const{onStoppedNotification:je}=ge.$;je&&Te.f.setTimeout(()=>je(vt,Re))}const mt={closed:!0,next:Q.l,error:function at(vt){throw vt},complete:Q.l}},8359:(En,bt,B)=>{"use strict";B.d(bt,{Kn:()=>Ie,yU:()=>Q,Uv:()=>ne});var g=B(8071);const ge=(0,B(1853).L)(tt=>function(_e){tt(this),this.message=_e?`${_e.length} errors occurred during unsubscription:\n${_e.map((Fe,Ue)=>`${Ue+1}) ${Fe.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=_e});var Oe=B(7908);class Q{constructor(Te){this.initialTeardown=Te,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let Te;if(!this.closed){this.closed=!0;const{_parentage:_e}=this;if(_e)if(this._parentage=null,Array.isArray(_e))for(const Ve of _e)Ve.remove(this);else _e.remove(this);const{initialTeardown:Fe}=this;if((0,g.T)(Fe))try{Fe()}catch(Ve){Te=Ve instanceof ge?Ve.errors:[Ve]}const{_finalizers:Ue}=this;if(Ue){this._finalizers=null;for(const Ve of Ue)try{Qe(Ve)}catch(Ye){Te=null!=Te?Te:[],Ye instanceof ge?Te=[...Te,...Ye.errors]:Te.push(Ye)}}if(Te)throw new ge(Te)}}add(Te){var _e;if(Te&&Te!==this)if(this.closed)Qe(Te);else{if(Te instanceof Q){if(Te.closed||Te._hasParent(this))return;Te._addParent(this)}(this._finalizers=null!==(_e=this._finalizers)&&void 0!==_e?_e:[]).push(Te)}}_hasParent(Te){const{_parentage:_e}=this;return _e===Te||Array.isArray(_e)&&_e.includes(Te)}_addParent(Te){const{_parentage:_e}=this;this._parentage=Array.isArray(_e)?(_e.push(Te),_e):_e?[_e,Te]:Te}_removeParent(Te){const{_parentage:_e}=this;_e===Te?this._parentage=null:Array.isArray(_e)&&(0,Oe.o)(_e,Te)}remove(Te){const{_finalizers:_e}=this;_e&&(0,Oe.o)(_e,Te),Te instanceof Q&&Te._removeParent(this)}}Q.EMPTY=(()=>{const tt=new Q;return tt.closed=!0,tt})();const Ie=Q.EMPTY;function ne(tt){return tt instanceof Q||tt&&"closed"in tt&&(0,g.T)(tt.remove)&&(0,g.T)(tt.add)&&(0,g.T)(tt.unsubscribe)}function Qe(tt){(0,g.T)(tt)?tt():tt.unsubscribe()}},1026:(En,bt,B)=>{"use strict";B.d(bt,{$:()=>g});const g={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},4572:(En,bt,B)=>{"use strict";B.d(bt,{z:()=>Te});var g=B(1985),d=B(3073),ge=B(8455),Oe=B(3669),Q=B(6450),Ie=B(3794),ne=B(8496),Qe=B(4360),tt=B(5225);function Te(...Ue){const Ve=(0,Ie.lI)(Ue),Ye=(0,Ie.ms)(Ue),{args:gt,keys:ct}=(0,d.D)(Ue);if(0===gt.length)return(0,ge.H)([],Ve);const at=new g.c(function _e(Ue,Ve,Ye=Oe.D){return gt=>{Fe(Ve,()=>{const{length:ct}=Ue,at=new Array(ct);let Mt=ct,mt=ct;for(let vt=0;vt{const Re=(0,ge.H)(Ue[vt],Ve);let je=!1;Re.subscribe((0,Qe._)(gt,Ke=>{at[vt]=Ke,je||(je=!0,mt--),mt||gt.next(Ye(at.slice()))},()=>{--Mt||gt.complete()}))},gt)},gt)}}(gt,Ve,ct?Mt=>(0,ne.e)(ct,Mt):Oe.D));return Ye?at.pipe((0,Q.I)(Ye)):at}function Fe(Ue,Ve,Ye){Ue?(0,tt.N)(Ye,Ue,Ve):Ve()}},983:(En,bt,B)=>{"use strict";B.d(bt,{w:()=>d});const d=new(B(1985).c)(Q=>Q.complete())},8455:(En,bt,B)=>{"use strict";B.d(bt,{H:()=>Re});var g=B(8750),d=B(941),ge=B(6745),Ie=B(1985),Qe=B(4761),tt=B(8071),Te=B(5225);function Fe(je,Ke){if(!je)throw new Error("Iterable cannot be null");return new Ie.c(Ct=>{(0,Te.N)(Ct,Ke,()=>{const kt=je[Symbol.asyncIterator]();(0,Te.N)(Ct,Ke,()=>{kt.next().then(ze=>{ze.done?Ct.complete():Ct.next(ze.value)})},0,!0)})})}var Ue=B(5055),Ve=B(9858),Ye=B(7441),gt=B(5397),ct=B(7953),at=B(591),Mt=B(5196);function Re(je,Ke){return Ke?function vt(je,Ke){if(null!=je){if((0,Ue.l)(je))return function Oe(je,Ke){return(0,g.Tg)(je).pipe((0,ge._)(Ke),(0,d.Q)(Ke))}(je,Ke);if((0,Ye.X)(je))return function ne(je,Ke){return new Ie.c(Ct=>{let kt=0;return Ke.schedule(function(){kt===je.length?Ct.complete():(Ct.next(je[kt++]),Ct.closed||this.schedule())})})}(je,Ke);if((0,Ve.y)(je))return function Q(je,Ke){return(0,g.Tg)(je).pipe((0,ge._)(Ke),(0,d.Q)(Ke))}(je,Ke);if((0,ct.T)(je))return Fe(je,Ke);if((0,gt.x)(je))return function _e(je,Ke){return new Ie.c(Ct=>{let kt;return(0,Te.N)(Ct,Ke,()=>{kt=je[Qe.l](),(0,Te.N)(Ct,Ke,()=>{let ze,Tt;try{({value:ze,done:Tt}=kt.next())}catch(Lt){return void Ct.error(Lt)}Tt?Ct.complete():Ct.next(ze)},0,!0)}),()=>(0,tt.T)(null==kt?void 0:kt.return)&&kt.return()})}(je,Ke);if((0,Mt.U)(je))return function mt(je,Ke){return Fe((0,Mt.C)(je),Ke)}(je,Ke)}throw(0,at.L)(je)}(je,Ke):(0,g.Tg)(je)}},3726:(En,bt,B)=>{"use strict";B.d(bt,{R:()=>Te});var g=B(8750),d=B(1985),ge=B(1397),Oe=B(7441),Q=B(8071),Ie=B(6450);const ne=["addListener","removeListener"],Qe=["addEventListener","removeEventListener"],tt=["on","off"];function Te(Ye,gt,ct,at){if((0,Q.T)(ct)&&(at=ct,ct=void 0),at)return Te(Ye,gt,ct).pipe((0,Ie.I)(at));const[Mt,mt]=function Ve(Ye){return(0,Q.T)(Ye.addEventListener)&&(0,Q.T)(Ye.removeEventListener)}(Ye)?Qe.map(vt=>Re=>Ye[vt](gt,Re,ct)):function Fe(Ye){return(0,Q.T)(Ye.addListener)&&(0,Q.T)(Ye.removeListener)}(Ye)?ne.map(_e(Ye,gt)):function Ue(Ye){return(0,Q.T)(Ye.on)&&(0,Q.T)(Ye.off)}(Ye)?tt.map(_e(Ye,gt)):[];if(!Mt&&(0,Oe.X)(Ye))return(0,ge.Z)(vt=>Te(vt,gt,ct))((0,g.Tg)(Ye));if(!Mt)throw new TypeError("Invalid event target");return new d.c(vt=>{const Re=(...je)=>vt.next(1mt(Re)})}function _e(Ye,gt){return ct=>at=>Ye[ct](gt,at)}},8750:(En,bt,B)=>{"use strict";B.d(bt,{Tg:()=>Ue});var g=B(1635),d=B(7441),ge=B(9858),Oe=B(1985),Q=B(5055),Ie=B(7953),ne=B(591),Qe=B(5397),tt=B(5196),Te=B(8071),_e=B(5334),Fe=B(3494);function Ue(vt){if(vt instanceof Oe.c)return vt;if(null!=vt){if((0,Q.l)(vt))return function Ve(vt){return new Oe.c(Re=>{const je=vt[Fe.s]();if((0,Te.T)(je.subscribe))return je.subscribe(Re);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(vt);if((0,d.X)(vt))return function Ye(vt){return new Oe.c(Re=>{for(let je=0;je{vt.then(je=>{Re.closed||(Re.next(je),Re.complete())},je=>Re.error(je)).then(null,_e.m)})}(vt);if((0,Ie.T)(vt))return at(vt);if((0,Qe.x)(vt))return function ct(vt){return new Oe.c(Re=>{for(const je of vt)if(Re.next(je),Re.closed)return;Re.complete()})}(vt);if((0,tt.U)(vt))return function Mt(vt){return at((0,tt.C)(vt))}(vt)}throw(0,ne.L)(vt)}function at(vt){return new Oe.c(Re=>{(function mt(vt,Re){var je,Ke,Ct,kt;return(0,g.sH)(this,void 0,void 0,function*(){try{for(je=(0,g.xN)(vt);!(Ke=yield je.next()).done;)if(Re.next(Ke.value),Re.closed)return}catch(ze){Ct={error:ze}}finally{try{Ke&&!Ke.done&&(kt=je.return)&&(yield kt.call(je))}finally{if(Ct)throw Ct.error}}Re.complete()})})(vt,Re).catch(je=>Re.error(je))})}},7673:(En,bt,B)=>{"use strict";B.d(bt,{of:()=>ge});var g=B(3794),d=B(8455);function ge(...Oe){const Q=(0,g.lI)(Oe);return(0,d.H)(Oe,Q)}},4360:(En,bt,B)=>{"use strict";B.d(bt,{_:()=>d});var g=B(7707);function d(Oe,Q,Ie,ne,Qe){return new ge(Oe,Q,Ie,ne,Qe)}class ge extends g.vU{constructor(Q,Ie,ne,Qe,tt,Te){super(Q),this.onFinalize=tt,this.shouldUnsubscribe=Te,this._next=Ie?function(_e){try{Ie(_e)}catch(Fe){Q.error(Fe)}}:super._next,this._error=Qe?function(_e){try{Qe(_e)}catch(Fe){Q.error(Fe)}finally{this.unsubscribe()}}:super._error,this._complete=ne?function(){try{ne()}catch(_e){Q.error(_e)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var Q;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:Ie}=this;super.unsubscribe(),!Ie&&(null===(Q=this.onFinalize)||void 0===Q||Q.call(this))}}}},5964:(En,bt,B)=>{"use strict";B.d(bt,{p:()=>ge});var g=B(9974),d=B(4360);function ge(Oe,Q){return(0,g.N)((Ie,ne)=>{let Qe=0;Ie.subscribe((0,d._)(ne,tt=>Oe.call(Q,tt,Qe++)&&ne.next(tt)))})}},6354:(En,bt,B)=>{"use strict";B.d(bt,{T:()=>ge});var g=B(9974),d=B(4360);function ge(Oe,Q){return(0,g.N)((Ie,ne)=>{let Qe=0;Ie.subscribe((0,d._)(ne,tt=>{ne.next(Oe.call(Q,tt,Qe++))}))})}},1397:(En,bt,B)=>{"use strict";B.d(bt,{Z:()=>Qe});var g=B(6354),d=B(8750),ge=B(9974),Oe=B(5225),Q=B(4360),ne=B(8071);function Qe(tt,Te,_e=1/0){return(0,ne.T)(Te)?Qe((Fe,Ue)=>(0,g.T)((Ve,Ye)=>Te(Fe,Ve,Ue,Ye))((0,d.Tg)(tt(Fe,Ue))),_e):("number"==typeof Te&&(_e=Te),(0,ge.N)((Fe,Ue)=>function Ie(tt,Te,_e,Fe,Ue,Ve,Ye,gt){const ct=[];let at=0,Mt=0,mt=!1;const vt=()=>{mt&&!ct.length&&!at&&Te.complete()},Re=Ke=>at{Ve&&Te.next(Ke),at++;let Ct=!1;(0,d.Tg)(_e(Ke,Mt++)).subscribe((0,Q._)(Te,kt=>{null==Ue||Ue(kt),Ve?Re(kt):Te.next(kt)},()=>{Ct=!0},void 0,()=>{if(Ct)try{for(at--;ct.length&&atje(kt)):je(kt)}vt()}catch(kt){Te.error(kt)}}))};return tt.subscribe((0,Q._)(Te,Re,()=>{mt=!0,vt()})),()=>{null==gt||gt()}}(Fe,Ue,tt,_e)))}},941:(En,bt,B)=>{"use strict";B.d(bt,{Q:()=>Oe});var g=B(5225),d=B(9974),ge=B(4360);function Oe(Q,Ie=0){return(0,d.N)((ne,Qe)=>{ne.subscribe((0,ge._)(Qe,tt=>(0,g.N)(Qe,Q,()=>Qe.next(tt),Ie),()=>(0,g.N)(Qe,Q,()=>Qe.complete(),Ie),tt=>(0,g.N)(Qe,Q,()=>Qe.error(tt),Ie)))})}},6745:(En,bt,B)=>{"use strict";B.d(bt,{_:()=>d});var g=B(9974);function d(ge,Oe=0){return(0,g.N)((Q,Ie)=>{Ie.add(ge.schedule(()=>Q.subscribe(Ie),Oe))})}},5558:(En,bt,B)=>{"use strict";B.d(bt,{n:()=>Oe});var g=B(8750),d=B(9974),ge=B(4360);function Oe(Q,Ie){return(0,d.N)((ne,Qe)=>{let tt=null,Te=0,_e=!1;const Fe=()=>_e&&!tt&&Qe.complete();ne.subscribe((0,ge._)(Qe,Ue=>{null==tt||tt.unsubscribe();let Ve=0;const Ye=Te++;(0,g.Tg)(Q(Ue,Ye)).subscribe(tt=(0,ge._)(Qe,gt=>Qe.next(Ie?Ie(Ue,gt,Ye,Ve++):gt),()=>{tt=null,Fe()}))},()=>{_e=!0,Fe()}))})}},6697:(En,bt,B)=>{"use strict";B.d(bt,{s:()=>Oe});var g=B(983),d=B(9974),ge=B(4360);function Oe(Q){return Q<=0?()=>g.w:(0,d.N)((Ie,ne)=>{let Qe=0;Ie.subscribe((0,ge._)(ne,tt=>{++Qe<=Q&&(ne.next(tt),Q<=Qe&&ne.complete())}))})}},8141:(En,bt,B)=>{"use strict";B.d(bt,{M:()=>Q});var g=B(8071),d=B(9974),ge=B(4360),Oe=B(3669);function Q(Ie,ne,Qe){const tt=(0,g.T)(Ie)||ne||Qe?{next:Ie,error:ne,complete:Qe}:Ie;return tt?(0,d.N)((Te,_e)=>{var Fe;null===(Fe=tt.subscribe)||void 0===Fe||Fe.call(tt);let Ue=!0;Te.subscribe((0,ge._)(_e,Ve=>{var Ye;null===(Ye=tt.next)||void 0===Ye||Ye.call(tt,Ve),_e.next(Ve)},()=>{var Ve;Ue=!1,null===(Ve=tt.complete)||void 0===Ve||Ve.call(tt),_e.complete()},Ve=>{var Ye;Ue=!1,null===(Ye=tt.error)||void 0===Ye||Ye.call(tt,Ve),_e.error(Ve)},()=>{var Ve,Ye;Ue&&(null===(Ve=tt.unsubscribe)||void 0===Ve||Ve.call(tt)),null===(Ye=tt.finalize)||void 0===Ye||Ye.call(tt)}))}):Oe.D}},9270:(En,bt,B)=>{"use strict";B.d(bt,{f:()=>g});const g={setTimeout(d,ge,...Oe){const{delegate:Q}=g;return null!=Q&&Q.setTimeout?Q.setTimeout(d,ge,...Oe):setTimeout(d,ge,...Oe)},clearTimeout(d){const{delegate:ge}=g;return((null==ge?void 0:ge.clearTimeout)||clearTimeout)(d)},delegate:void 0}},4761:(En,bt,B)=>{"use strict";B.d(bt,{l:()=>d});const d=function g(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},3494:(En,bt,B)=>{"use strict";B.d(bt,{s:()=>g});const g="function"==typeof Symbol&&Symbol.observable||"@@observable"},3794:(En,bt,B)=>{"use strict";B.d(bt,{ms:()=>Oe,lI:()=>Q});var g=B(8071);function ge(ne){return ne[ne.length-1]}function Oe(ne){return(0,g.T)(ge(ne))?ne.pop():void 0}function Q(ne){return function d(ne){return ne&&(0,g.T)(ne.schedule)}(ge(ne))?ne.pop():void 0}},3073:(En,bt,B)=>{"use strict";B.d(bt,{D:()=>Q});const{isArray:g}=Array,{getPrototypeOf:d,prototype:ge,keys:Oe}=Object;function Q(ne){if(1===ne.length){const Qe=ne[0];if(g(Qe))return{args:Qe,keys:null};if(function Ie(ne){return ne&&"object"==typeof ne&&d(ne)===ge}(Qe)){const tt=Oe(Qe);return{args:tt.map(Te=>Qe[Te]),keys:tt}}}return{args:ne,keys:null}}},7908:(En,bt,B)=>{"use strict";function g(d,ge){if(d){const Oe=d.indexOf(ge);0<=Oe&&d.splice(Oe,1)}}B.d(bt,{o:()=>g})},1853:(En,bt,B)=>{"use strict";function g(d){const Oe=d(Q=>{Error.call(Q),Q.stack=(new Error).stack});return Oe.prototype=Object.create(Error.prototype),Oe.prototype.constructor=Oe,Oe}B.d(bt,{L:()=>g})},8496:(En,bt,B)=>{"use strict";function g(d,ge){return d.reduce((Oe,Q,Ie)=>(Oe[Q]=ge[Ie],Oe),{})}B.d(bt,{e:()=>g})},9786:(En,bt,B)=>{"use strict";B.d(bt,{Y:()=>ge,l:()=>Oe});var g=B(1026);let d=null;function ge(Q){if(g.$.useDeprecatedSynchronousErrorHandling){const Ie=!d;if(Ie&&(d={errorThrown:!1,error:null}),Q(),Ie){const{errorThrown:ne,error:Qe}=d;if(d=null,ne)throw Qe}}else Q()}function Oe(Q){g.$.useDeprecatedSynchronousErrorHandling&&d&&(d.errorThrown=!0,d.error=Q)}},5225:(En,bt,B)=>{"use strict";function g(d,ge,Oe,Q=0,Ie=!1){const ne=ge.schedule(function(){Oe(),Ie?d.add(this.schedule(null,Q)):this.unsubscribe()},Q);if(d.add(ne),!Ie)return ne}B.d(bt,{N:()=>g})},3669:(En,bt,B)=>{"use strict";function g(d){return d}B.d(bt,{D:()=>g})},7441:(En,bt,B)=>{"use strict";B.d(bt,{X:()=>g});const g=d=>d&&"number"==typeof d.length&&"function"!=typeof d},7953:(En,bt,B)=>{"use strict";B.d(bt,{T:()=>d});var g=B(8071);function d(ge){return Symbol.asyncIterator&&(0,g.T)(null==ge?void 0:ge[Symbol.asyncIterator])}},8071:(En,bt,B)=>{"use strict";function g(d){return"function"==typeof d}B.d(bt,{T:()=>g})},5055:(En,bt,B)=>{"use strict";B.d(bt,{l:()=>ge});var g=B(3494),d=B(8071);function ge(Oe){return(0,d.T)(Oe[g.s])}},5397:(En,bt,B)=>{"use strict";B.d(bt,{x:()=>ge});var g=B(4761),d=B(8071);function ge(Oe){return(0,d.T)(null==Oe?void 0:Oe[g.l])}},9858:(En,bt,B)=>{"use strict";B.d(bt,{y:()=>d});var g=B(8071);function d(ge){return(0,g.T)(null==ge?void 0:ge.then)}},5196:(En,bt,B)=>{"use strict";B.d(bt,{C:()=>ge,U:()=>Oe});var g=B(1635),d=B(8071);function ge(Q){return(0,g.AQ)(this,arguments,function*(){const ne=Q.getReader();try{for(;;){const{value:Qe,done:tt}=yield(0,g.N3)(ne.read());if(tt)return yield(0,g.N3)(void 0);yield yield(0,g.N3)(Qe)}}finally{ne.releaseLock()}})}function Oe(Q){return(0,d.T)(null==Q?void 0:Q.getReader)}},9974:(En,bt,B)=>{"use strict";B.d(bt,{N:()=>ge,S:()=>d});var g=B(8071);function d(Oe){return(0,g.T)(null==Oe?void 0:Oe.lift)}function ge(Oe){return Q=>{if(d(Q))return Q.lift(function(Ie){try{return Oe(Ie,this)}catch(ne){this.error(ne)}});throw new TypeError("Unable to lift unknown Observable type")}}},6450:(En,bt,B)=>{"use strict";B.d(bt,{I:()=>Oe});var g=B(6354);const{isArray:d}=Array;function Oe(Q){return(0,g.T)(Ie=>function ge(Q,Ie){return d(Ie)?Q(...Ie):Q(Ie)}(Q,Ie))}},5343:(En,bt,B)=>{"use strict";function g(){}B.d(bt,{l:()=>g})},1203:(En,bt,B)=>{"use strict";B.d(bt,{F:()=>d,m:()=>ge});var g=B(3669);function d(...Oe){return ge(Oe)}function ge(Oe){return 0===Oe.length?g.D:1===Oe.length?Oe[0]:function(Ie){return Oe.reduce((ne,Qe)=>Qe(ne),Ie)}}},5334:(En,bt,B)=>{"use strict";B.d(bt,{m:()=>ge});var g=B(1026),d=B(9270);function ge(Oe){d.f.setTimeout(()=>{const{onUnhandledError:Q}=g.$;if(!Q)throw Oe;Q(Oe)})}},591:(En,bt,B)=>{"use strict";function g(d){return new TypeError(`You provided ${null!==d&&"object"==typeof d?"an invalid object":`'${d}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}B.d(bt,{L:()=>g})},8996:(En,bt,B)=>{var g={"./ion-accordion_2.entry.js":[2375,2076,2375],"./ion-action-sheet.entry.js":[8814,2076,8814],"./ion-alert.entry.js":[5222,2076,5222],"./ion-app_8.entry.js":[7720,2076,7720],"./ion-avatar_3.entry.js":[1049,1049],"./ion-back-button.entry.js":[3162,2076,3162],"./ion-backdrop.entry.js":[7240,7240],"./ion-breadcrumb_2.entry.js":[8314,2076,8314],"./ion-button_2.entry.js":[4591,4591],"./ion-card_5.entry.js":[8584,8584],"./ion-checkbox.entry.js":[3511,3511],"./ion-chip.entry.js":[6024,6024],"./ion-col_3.entry.js":[5100,5100],"./ion-datetime-button.entry.js":[7428,1293,7428],"./ion-datetime_3.entry.js":[2885,1293,2076,2885],"./ion-fab_3.entry.js":[4463,2076,4463],"./ion-img.entry.js":[4183,4183],"./ion-infinite-scroll_2.entry.js":[4171,2076,4171],"./ion-input-password-toggle.entry.js":[6521,2076,6521],"./ion-input.entry.js":[9344,2076,9344],"./ion-item-option_3.entry.js":[5949,2076,5949],"./ion-item_8.entry.js":[3506,2076,3506],"./ion-loading.entry.js":[7372,2076,7372],"./ion-menu_3.entry.js":[2075,2076,2075],"./ion-modal.entry.js":[441,2076,441],"./ion-nav_2.entry.js":[5712,2076,5712],"./ion-picker-column-option.entry.js":[9013,9013],"./ion-picker-column.entry.js":[1459,2076,1459],"./ion-picker.entry.js":[6840,6840],"./ion-popover.entry.js":[6433,2076,6433],"./ion-progress-bar.entry.js":[9977,9977],"./ion-radio_2.entry.js":[8066,2076,8066],"./ion-range.entry.js":[8477,2076,8477],"./ion-refresher_2.entry.js":[5197,2076,5197],"./ion-reorder_2.entry.js":[7030,2076,7030],"./ion-ripple-effect.entry.js":[964,964],"./ion-route_4.entry.js":[8970,8970],"./ion-searchbar.entry.js":[8193,2076,8193],"./ion-segment_2.entry.js":[2560,2076,2560],"./ion-select_3.entry.js":[7076,2076,7076],"./ion-spinner.entry.js":[8805,2076,8805],"./ion-split-pane.entry.js":[5887,5887],"./ion-tab-bar_2.entry.js":[4406,2076,4406],"./ion-tab_2.entry.js":[1102,1102],"./ion-text.entry.js":[1577,1577],"./ion-textarea.entry.js":[2348,2076,2348],"./ion-toast.entry.js":[2415,2076,2415],"./ion-toggle.entry.js":[3814,2076,3814]};function d(ge){if(!B.o(g,ge))return Promise.resolve().then(()=>{var Ie=new Error("Cannot find module '"+ge+"'");throw Ie.code="MODULE_NOT_FOUND",Ie});var Oe=g[ge],Q=Oe[0];return Promise.all(Oe.slice(1).map(B.e)).then(()=>B(Q))}d.keys=()=>Object.keys(g),d.id=8996,En.exports=d},177:(En,bt,B)=>{"use strict";B.d(bt,{AJ:()=>Ut,MD:()=>Je,N0:()=>ci,QT:()=>ge,Sm:()=>gt,T3:()=>kn,VF:()=>Q,Vy:()=>Cn,Xr:()=>cr,ZD:()=>Oe,_b:()=>Y,aZ:()=>at,bT:()=>Hn,fw:()=>ct,hb:()=>Ve,hj:()=>tt,qQ:()=>ne});var g=B(4438);let d=null;function ge(){return d}function Oe(D){var V;null!==(V=d)&&void 0!==V||(d=D)}class Q{}const ne=new g.nKC("");let Qe=(()=>{var D;class V{historyGo(O){throw new Error("")}}return(D=V).\u0275fac=function(O){return new(O||D)},D.\u0275prov=g.jDH({token:D,factory:()=>(0,g.WQX)(Te),providedIn:"platform"}),V})();const tt=new g.nKC("");let Te=(()=>{var D;class V extends Qe{constructor(){super(),this._doc=(0,g.WQX)(ne),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return ge().getBaseHref(this._doc)}onPopState(O){const le=ge().getGlobalEventTarget(this._doc,"window");return le.addEventListener("popstate",O,!1),()=>le.removeEventListener("popstate",O)}onHashChange(O){const le=ge().getGlobalEventTarget(this._doc,"window");return le.addEventListener("hashchange",O,!1),()=>le.removeEventListener("hashchange",O)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(O){this._location.pathname=O}pushState(O,le,xe){this._history.pushState(O,le,xe)}replaceState(O,le,xe){this._history.replaceState(O,le,xe)}forward(){this._history.forward()}back(){this._history.back()}historyGo(O=0){this._history.go(O)}getState(){return this._history.state}}return(D=V).\u0275fac=function(O){return new(O||D)},D.\u0275prov=g.jDH({token:D,factory:()=>new D,providedIn:"platform"}),V})();function _e(D,V){if(0==D.length)return V;if(0==V.length)return D;let De=0;return D.endsWith("/")&&De++,V.startsWith("/")&&De++,2==De?D+V.substring(1):1==De?D+V:D+"/"+V}function Fe(D){const V=D.match(/#|\?|$/),De=V&&V.index||D.length;return D.slice(0,De-("/"===D[De-1]?1:0))+D.slice(De)}function Ue(D){return D&&"?"!==D[0]?"?"+D:D}let Ve=(()=>{var D;class V{historyGo(O){throw new Error("")}}return(D=V).\u0275fac=function(O){return new(O||D)},D.\u0275prov=g.jDH({token:D,factory:()=>(0,g.WQX)(gt),providedIn:"root"}),V})();const Ye=new g.nKC("");let gt=(()=>{var D;class V extends Ve{constructor(O,le){var xe,Ft,an;super(),this._platformLocation=O,this._removeListenerFns=[],this._baseHref=null!==(xe=null!==(Ft=null!=le?le:this._platformLocation.getBaseHrefFromDOM())&&void 0!==Ft?Ft:null===(an=(0,g.WQX)(ne).location)||void 0===an?void 0:an.origin)&&void 0!==xe?xe:""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(O){this._removeListenerFns.push(this._platformLocation.onPopState(O),this._platformLocation.onHashChange(O))}getBaseHref(){return this._baseHref}prepareExternalUrl(O){return _e(this._baseHref,O)}path(O=!1){const le=this._platformLocation.pathname+Ue(this._platformLocation.search),xe=this._platformLocation.hash;return xe&&O?`${le}${xe}`:le}pushState(O,le,xe,Ft){const an=this.prepareExternalUrl(xe+Ue(Ft));this._platformLocation.pushState(O,le,an)}replaceState(O,le,xe,Ft){const an=this.prepareExternalUrl(xe+Ue(Ft));this._platformLocation.replaceState(O,le,an)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(O=0){var le,xe;null===(le=(xe=this._platformLocation).historyGo)||void 0===le||le.call(xe,O)}}return(D=V).\u0275fac=function(O){return new(O||D)(g.KVO(Qe),g.KVO(Ye,8))},D.\u0275prov=g.jDH({token:D,factory:D.\u0275fac,providedIn:"root"}),V})(),ct=(()=>{var D;class V extends Ve{constructor(O,le){super(),this._platformLocation=O,this._baseHref="",this._removeListenerFns=[],null!=le&&(this._baseHref=le)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(O){this._removeListenerFns.push(this._platformLocation.onPopState(O),this._platformLocation.onHashChange(O))}getBaseHref(){return this._baseHref}path(O=!1){var le;const xe=null!==(le=this._platformLocation.hash)&&void 0!==le?le:"#";return xe.length>0?xe.substring(1):xe}prepareExternalUrl(O){const le=_e(this._baseHref,O);return le.length>0?"#"+le:le}pushState(O,le,xe,Ft){let an=this.prepareExternalUrl(xe+Ue(Ft));0==an.length&&(an=this._platformLocation.pathname),this._platformLocation.pushState(O,le,an)}replaceState(O,le,xe,Ft){let an=this.prepareExternalUrl(xe+Ue(Ft));0==an.length&&(an=this._platformLocation.pathname),this._platformLocation.replaceState(O,le,an)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(O=0){var le,xe;null===(le=(xe=this._platformLocation).historyGo)||void 0===le||le.call(xe,O)}}return(D=V).\u0275fac=function(O){return new(O||D)(g.KVO(Qe),g.KVO(Ye,8))},D.\u0275prov=g.jDH({token:D,factory:D.\u0275fac}),V})(),at=(()=>{var D;class V{constructor(O){this._subject=new g.bkB,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=O;const le=this._locationStrategy.getBaseHref();this._basePath=function Re(D){if(new RegExp("^(https?:)?//").test(D)){const[,De]=D.split(/\/\/[^\/]+/);return De}return D}(Fe(vt(le))),this._locationStrategy.onPopState(xe=>{this._subject.emit({url:this.path(!0),pop:!0,state:xe.state,type:xe.type})})}ngOnDestroy(){var O;null===(O=this._urlChangeSubscription)||void 0===O||O.unsubscribe(),this._urlChangeListeners=[]}path(O=!1){return this.normalize(this._locationStrategy.path(O))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(O,le=""){return this.path()==this.normalize(O+Ue(le))}normalize(O){return V.stripTrailingSlash(function mt(D,V){if(!D||!V.startsWith(D))return V;const De=V.substring(D.length);return""===De||["/",";","?","#"].includes(De[0])?De:V}(this._basePath,vt(O)))}prepareExternalUrl(O){return O&&"/"!==O[0]&&(O="/"+O),this._locationStrategy.prepareExternalUrl(O)}go(O,le="",xe=null){this._locationStrategy.pushState(xe,"",O,le),this._notifyUrlChangeListeners(this.prepareExternalUrl(O+Ue(le)),xe)}replaceState(O,le="",xe=null){this._locationStrategy.replaceState(xe,"",O,le),this._notifyUrlChangeListeners(this.prepareExternalUrl(O+Ue(le)),xe)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(O=0){var le,xe;null===(le=(xe=this._locationStrategy).historyGo)||void 0===le||le.call(xe,O)}onUrlChange(O){var le;return this._urlChangeListeners.push(O),null!==(le=this._urlChangeSubscription)&&void 0!==le||(this._urlChangeSubscription=this.subscribe(xe=>{this._notifyUrlChangeListeners(xe.url,xe.state)})),()=>{const xe=this._urlChangeListeners.indexOf(O);var Ft;this._urlChangeListeners.splice(xe,1),0===this._urlChangeListeners.length&&(null===(Ft=this._urlChangeSubscription)||void 0===Ft||Ft.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(O="",le){this._urlChangeListeners.forEach(xe=>xe(O,le))}subscribe(O,le,xe){return this._subject.subscribe({next:O,error:le,complete:xe})}}return(D=V).normalizeQueryParams=Ue,D.joinWithSlash=_e,D.stripTrailingSlash=Fe,D.\u0275fac=function(O){return new(O||D)(g.KVO(Ve))},D.\u0275prov=g.jDH({token:D,factory:()=>function Mt(){return new at((0,g.KVO)(Ve))}(),providedIn:"root"}),V})();function vt(D){return D.replace(/\/index.html$/,"")}function Y(D,V){V=encodeURIComponent(V);for(const De of D.split(";")){const O=De.indexOf("="),[le,xe]=-1==O?[De,""]:[De.slice(0,O),De.slice(O+1)];if(le.trim()===V)return decodeURIComponent(xe)}return null}let Hn=(()=>{var D;class V{constructor(O,le){this._viewContainer=O,this._context=new Ui,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=le}set ngIf(O){this._context.$implicit=this._context.ngIf=O,this._updateView()}set ngIfThen(O){Ai("ngIfThen",O),this._thenTemplateRef=O,this._thenViewRef=null,this._updateView()}set ngIfElse(O){Ai("ngIfElse",O),this._elseTemplateRef=O,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(O,le){return!0}}return(D=V).\u0275fac=function(O){return new(O||D)(g.rXU(g.c1b),g.rXU(g.C4Q))},D.\u0275dir=g.FsC({type:D,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),V})();class Ui{constructor(){this.$implicit=null,this.ngIf=null}}function Ai(D,V){if(V&&!V.createEmbeddedView)throw new Error(`${D} must be a TemplateRef, but received '${(0,g.Tbb)(V)}'.`)}let kn=(()=>{var D;class V{constructor(O){this._viewContainerRef=O,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(O){if(this._shouldRecreateView(O)){var le;const xe=this._viewContainerRef;if(this._viewRef&&xe.remove(xe.indexOf(this._viewRef)),!this.ngTemplateOutlet)return void(this._viewRef=null);const Ft=this._createContextForwardProxy();this._viewRef=xe.createEmbeddedView(this.ngTemplateOutlet,Ft,{injector:null!==(le=this.ngTemplateOutletInjector)&&void 0!==le?le:void 0})}}_shouldRecreateView(O){return!!O.ngTemplateOutlet||!!O.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(O,le,xe)=>!!this.ngTemplateOutletContext&&Reflect.set(this.ngTemplateOutletContext,le,xe),get:(O,le,xe)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,le,xe)}})}}return(D=V).\u0275fac=function(O){return new(O||D)(g.rXU(g.c1b))},D.\u0275dir=g.FsC({type:D,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[g.OA$]}),V})(),Je=(()=>{var D;class V{}return(D=V).\u0275fac=function(O){return new(O||D)},D.\u0275mod=g.$C({type:D}),D.\u0275inj=g.G2t({}),V})();const Ut="browser",Ht="server";function Cn(D){return D===Ht}let cr=(()=>{var D;class V{}return(D=V).\u0275prov=(0,g.jDH)({token:D,providedIn:"root",factory:()=>function _n(D){return D===Ut}((0,g.WQX)(g.Agw))?new nr((0,g.WQX)(ne),window):new vi}),V})();class nr{constructor(V,De){this.document=V,this.window=De,this.offset=()=>[0,0]}setOffset(V){this.offset=Array.isArray(V)?()=>V:V}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(V){this.window.scrollTo(V[0],V[1])}scrollToAnchor(V){const De=function li(D,V){const De=D.getElementById(V)||D.getElementsByName(V)[0];if(De)return De;if("function"==typeof D.createTreeWalker&&D.body&&"function"==typeof D.body.attachShadow){const O=D.createTreeWalker(D.body,NodeFilter.SHOW_ELEMENT);let le=O.currentNode;for(;le;){const xe=le.shadowRoot;if(xe){const Ft=xe.getElementById(V)||xe.querySelector(`[name="${V}"]`);if(Ft)return Ft}le=O.nextNode()}}return null}(this.document,V);De&&(this.scrollToElement(De),De.focus())}setHistoryScrollRestoration(V){this.window.history.scrollRestoration=V}scrollToElement(V){const De=V.getBoundingClientRect(),O=De.left+this.window.pageXOffset,le=De.top+this.window.pageYOffset,xe=this.offset();this.window.scrollTo(O-xe[0],le-xe[1])}}class vi{setOffset(V){}getScrollPosition(){return[0,0]}scrollToPosition(V){}scrollToAnchor(V){}setHistoryScrollRestoration(V){}}class ci{}},4438:(En,bt,B)=>{"use strict";B.d(bt,{iLQ:()=>kI,sZ2:()=>vv,hnV:()=>QT,Hbi:()=>ZM,o8S:()=>Id,BIS:()=>vy,gRc:()=>uD,Ql9:()=>TM,Ocv:()=>xM,Z63:()=>oo,aKT:()=>Qu,uvJ:()=>Jo,zcH:()=>Ya,bkB:()=>Os,$GK:()=>or,nKC:()=>X,zZn:()=>ds,_q3:()=>zI,MKu:()=>HI,xe9:()=>iy,Co$:()=>hi,Vns:()=>io,SKi:()=>Eo,Xx1:()=>_n,Agw:()=>Zd,PLl:()=>_v,sFG:()=>gm,_9s:()=>lp,czy:()=>Xg,kdw:()=>Ln,C4Q:()=>sp,NYb:()=>vM,giA:()=>qT,xvI:()=>GR,RxE:()=>BT,c1b:()=>hd,gXe:()=>ms,mal:()=>a_,L39:()=>wP,a0P:()=>kP,Ol2:()=>j0,w6W:()=>rs,oH4:()=>oD,SmG:()=>VM,Rfq:()=>Jr,WQX:()=>Ee,QuC:()=>ro,EmA:()=>ul,fpN:()=>YM,HJs:()=>FP,N4e:()=>lo,O8t:()=>RP,H3F:()=>jT,H8p:()=>dl,KH2:()=>Xp,TgB:()=>Mp,wOt:()=>Le,WHO:()=>WT,e01:()=>KT,H5H:()=>fI,Zy3:()=>yt,mq5:()=>nC,JZv:()=>Bn,LfX:()=>St,plB:()=>tl,jNT:()=>NI,zjR:()=>XT,TL$:()=>Cg,Tbb:()=>tr,Vt3:()=>bp,Mj6:()=>ss,GFd:()=>Vi,OA$:()=>At,Jv_:()=>vT,aNF:()=>_T,R7$:()=>e0,BMQ:()=>J0,AVh:()=>oI,wni:()=>GC,VBU:()=>vs,FsC:()=>as,jDH:()=>lr,G2t:()=>wi,$C:()=>sl,EJ8:()=>ha,rXU:()=>id,nrm:()=>dI,eu8:()=>hI,bVm:()=>X_,qex:()=>q_,k0s:()=>K_,j41:()=>W_,RV6:()=>JA,xGo:()=>cf,KVO:()=>U,kS0:()=>Vc,QTQ:()=>t0,bIt:()=>mI,lsd:()=>qC,XpG:()=>NC,SdG:()=>kC,NAR:()=>OC,Y8G:()=>rI,lJ4:()=>IT,mGM:()=>KC,Njj:()=>Ac,eBV:()=>Sd,n$t:()=>zf,DNE:()=>Pp,EFF:()=>iT,DH7:()=>gT,mxI:()=>EI,R50:()=>II,GBs:()=>WC}),B(467);let ge=null,Q=1;const Ie=Symbol("SIGNAL");function ne(e){const t=ge;return ge=e,t}function Ve(e){if((!Ke(e)||e.dirty)&&(e.dirty||e.lastCleanEpoch!==Q)){if(!e.producerMustRecompute(e)&&!mt(e))return e.dirty=!1,void(e.lastCleanEpoch=Q);e.producerRecomputeValue(e),e.dirty=!1,e.lastCleanEpoch=Q}}function mt(e){Ct(e);for(let t=0;t0}function Ct(e){var t,r,o;null!==(t=e.producerNode)&&void 0!==t||(e.producerNode=[]),null!==(r=e.producerIndexOfThis)&&void 0!==r||(e.producerIndexOfThis=[]),null!==(o=e.producerLastReadVersion)&&void 0!==o||(e.producerLastReadVersion=[])}let Pt=null;var $n=B(1413),qn=B(8359),er=B(4412),yn=B(6354);const Yn="https://g.co/ng/security#xss";class Le extends Error{constructor(t,r){super(yt(t,r)),this.code=t}}function yt(e,t){return`NG0${Math.abs(e)}${t?": "+t:""}`}function mn(e){return{toString:e}.toString()}const Wt="__parameters__";function Mr(e,t,r){return mn(()=>{const o=function Or(e){return function(...r){if(e){const o=e(...r);for(const a in o)this[a]=o[a]}}}(t);function a(...c){if(this instanceof a)return o.apply(this,c),this;const p=new a(...c);return y.annotation=p,y;function y(A,F,W){const ee=A.hasOwnProperty(Wt)?A[Wt]:Object.defineProperty(A,Wt,{value:[]})[Wt];for(;ee.length<=W;)ee.push(null);return(ee[W]=ee[W]||[]).push(p),A}}return r&&(a.prototype=Object.create(r.prototype)),a.prototype.ngMetadataName=e,a.annotationCls=a,a})}const Bn=globalThis;function Rn(e){for(let t in e)if(e[t]===Rn)return t;throw Error("Could not find renamed property on target object.")}function Sr(e,t){for(const r in t)t.hasOwnProperty(r)&&!e.hasOwnProperty(r)&&(e[r]=t[r])}function tr(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(tr).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const r=t.indexOf("\n");return-1===r?t:t.substring(0,r)}function Ir(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const Qr=Rn({__forward_ref__:Rn});function Jr(e){return e.__forward_ref__=Jr,e.toString=function(){return tr(this())},e}function oe(e){return He(e)?e():e}function He(e){return"function"==typeof e&&e.hasOwnProperty(Qr)&&e.__forward_ref__===Jr}function lr(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function wi(e){return{providers:e.providers||[],imports:e.imports||[]}}function gi(e){return lt(e,Wn)||lt(e,Z)}function St(e){return null!==gi(e)}function lt(e,t){return e.hasOwnProperty(t)?e[t]:null}function fn(e){return e&&(e.hasOwnProperty(Y)||e.hasOwnProperty(Ne))?e[Y]:null}const Wn=Rn({\u0275prov:Rn}),Y=Rn({\u0275inj:Rn}),Z=Rn({ngInjectableDef:Rn}),Ne=Rn({ngInjectorDef:Rn});class X{constructor(t,r){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof r?this.__NG_ELEMENT_ID__=r:void 0!==r&&(this.\u0275prov=lr({token:this,providedIn:r.providedIn||"root",factory:r.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function xr(e){return e&&!!e.\u0275providers}const An=Rn({\u0275cmp:Rn}),Pi=Rn({\u0275dir:Rn}),mi=Rn({\u0275pipe:Rn}),$i=Rn({\u0275mod:Rn}),ti=Rn({\u0275fac:Rn}),mr=Rn({__NG_ELEMENT_ID__:Rn}),oi=Rn({__NG_ENV_ID__:Rn});function Nn(e){return"string"==typeof e?e:null==e?"":String(e)}function si(e,t){throw new Le(-201,!1)}var or=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(or||{});let kr;function ai(){return kr}function jn(e){const t=kr;return kr=e,t}function Fo(e,t,r){const o=gi(e);return o&&"root"==o.providedIn?void 0===o.value?o.value=o.factory():o.value:r&or.Optional?null:void 0!==t?t:void si()}const co={},To="__NG_DI_FLAG__",xi="ngTempTokenPath",H=/\n/gm,M="__source";let fe;function sr(e){const t=fe;return fe=e,t}function ui(e,t=or.Default){if(void 0===fe)throw new Le(-203,!1);return null===fe?Fo(e,void 0,t):fe.get(e,t&or.Optional?null:void 0,t)}function U(e,t=or.Default){return(ai()||ui)(oe(e),t)}function Ee(e,t=or.Default){return U(e,ke(t))}function ke(e){return typeof e>"u"||"number"==typeof e?e:(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function st(e){const t=[];for(let r=0;rArray.isArray(r)?li(r,t):t(r))}function vi(e,t,r){t>=e.length?e.push(r):e.splice(t,0,r)}function ci(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Qi(e,t,r){let o=Do(e,t);return o>=0?e[1|o]=r:(o=~o,function Wr(e,t,r,o){let a=e.length;if(a==t)e.push(r,o);else if(1===a)e.push(o,e[0]),e[0]=r;else{for(a--,e.push(e[a-1],e[a]);a>t;)e[a]=e[a-2],a--;e[t]=r,e[t+1]=o}}(e,o,t,r)),o}function Ko(e,t){const r=Do(e,t);if(r>=0)return e[1|r]}function Do(e,t){return function os(e,t,r){let o=0,a=e.length>>r;for(;a!==o;){const c=o+(a-o>>1),p=e[c<t?a=c:o=c+1}return~(a<t){p=c-1;break}}}for(;c-1){let c;for(;++ac?"":a[W+1].toLowerCase(),2&o&&F!==ee){if(ce(o))return!1;p=!0}}}}else{if(!p&&!ce(o)&&!ce(A))return!1;if(p&&ce(A))continue;p=!1,o=A|1&o}}return ce(o)||p}function ce(e){return!(1&e)}function $(e,t,r,o){if(null===t)return-1;let a=0;if(o||!r){let c=!1;for(;a-1)for(r++;r0?'="'+y+'"':"")+"]"}else 8&o?a+="."+p:4&o&&(a+=" "+p);else""!==a&&!ce(p)&&(t+=ao(c,a),a=""),o=p,c=c||!ce(o);r++}return""!==a&&(t+=ao(c,a)),t}function vs(e){return mn(()=>{var t;const r=ll(e),o={...r,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===gs.OnPush,directiveDefs:null,pipeDefs:null,dependencies:r.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:null!==(t=e.signals)&&void 0!==t&&t,data:e.data||{},encapsulation:e.encapsulation||ms.Emulated,styles:e.styles||Pr,_:null,schemas:e.schemas||null,tView:null,id:""};ls(o);const a=e.dependencies;return o.directiveDefs=_s(a,!1),o.pipeDefs=_s(a,!0),o.id=function vr(e){let t=0;const r=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery].join("|");for(const a of r)t=Math.imul(31,t)+a.charCodeAt(0)|0;return t+=2147483648,"c"+t}(o),o})}function Bs(e){return Jn(e)||Ni(e)}function Oa(e){return null!==e}function sl(e){return mn(()=>({type:e.type,bootstrap:e.bootstrap||Pr,declarations:e.declarations||Pr,imports:e.imports||Pr,exports:e.exports||Pr,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function al(e,t){if(null==e)return Vo;const r={};for(const a in e)if(e.hasOwnProperty(a)){const c=e[a];let p,y,A=ss.None;var o;Array.isArray(c)?(A=c[0],p=c[1],y=null!==(o=c[2])&&void 0!==o?o:p):(p=c,y=c),t?(r[p]=A!==ss.None?[a,A]:a,t[p]=y):r[p]=a}return r}function as(e){return mn(()=>{const t=ll(e);return ls(t),t})}function ha(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,standalone:!0===e.standalone,onDestroy:e.type.prototype.ngOnDestroy||null}}function Jn(e){return e[An]||null}function Ni(e){return e[Pi]||null}function Ti(e){return e[mi]||null}function ro(e){const t=Jn(e)||Ni(e)||Ti(e);return null!==t&&t.standalone}function Hr(e,t){const r=e[$i]||null;if(!r&&!0===t)throw new Error(`Type ${tr(e)} does not have '\u0275mod' property.`);return r}function ll(e){const t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputTransforms:null,inputConfig:e.inputs||Vo,exportAs:e.exportAs||null,standalone:!0===e.standalone,signals:!0===e.signals,selectors:e.selectors||Pr,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:al(e.inputs,t),outputs:al(e.outputs),debugInfo:null}}function ls(e){var t;null===(t=e.features)||void 0===t||t.forEach(r=>r(e))}function _s(e,t){if(!e)return null;const r=t?Ti:Bs;return()=>("function"==typeof e?e():e).map(o=>r(o)).filter(Oa)}function ul(e){return{\u0275providers:e}}function ys(...e){return{\u0275providers:ka(0,e),\u0275fromNgModule:!0}}function ka(e,...t){const r=[],o=new Set;let a;const c=p=>{r.push(p)};return li(t,p=>{const y=p;cl(y,c,[],o)&&(a||(a=[]),a.push(y))}),void 0!==a&&js(a,c),r}function js(e,t){for(let r=0;r{t(c,o)})}}function cl(e,t,r,o){if(!(e=oe(e)))return!1;let a=null,c=fn(e);const p=!c&&Jn(e);if(c||p){if(p&&!p.standalone)return!1;a=e}else{const A=e.ngModule;if(c=fn(A),!c)return!1;a=A}const y=o.has(a);if(p){if(y)return!1;if(o.add(a),p.dependencies){const A="function"==typeof p.dependencies?p.dependencies():p.dependencies;for(const F of A)cl(F,t,r,o)}}else{if(!c)return!1;{if(null!=c.imports&&!y){let F;o.add(a);try{li(c.imports,W=>{cl(W,t,r,o)&&(F||(F=[]),F.push(W))})}finally{}void 0!==F&&js(F,t)}if(!y){const F=br(a)||(()=>new a);t({provide:a,useFactory:F,deps:Pr},a),t({provide:so,useValue:a,multi:!0},a),t({provide:oo,useValue:()=>U(a),multi:!0},a)}const A=c.providers;if(null!=A&&!y){const F=e;Ll(A,W=>{t(W,F)})}}}return a!==e&&void 0!==e.providers}function Ll(e,t){for(let r of e)xr(r)&&(r=r.\u0275providers),Array.isArray(r)?Ll(r,t):t(r)}const Ul=Rn({provide:String,useValue:Rn});function fa(e){return null!==e&&"object"==typeof e&&Ul in e}function Yo(e){return"function"==typeof e}const dl=new X(""),Zo={},wu={};let $l;function Lo(){return void 0===$l&&($l=new ua),$l}class Jo{}class Rs extends Jo{get destroyed(){return this._destroyed}constructor(t,r,o,a){super(),this.parent=r,this.source=o,this.scopes=a,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Ms(t,p=>this.processProvider(p)),this.records.set(Us,Va(void 0,this)),a.has("environment")&&this.records.set(Jo,Va(void 0,this));const c=this.records.get(dl);null!=c&&"string"==typeof c.value&&this.scopes.add(c.value),this.injectorDefTypes=new Set(this.get(so,Pr,or.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;const t=ne(null);try{for(const o of this._ngOnDestroyHooks)o.ngOnDestroy();const r=this._onDestroyHooks;this._onDestroyHooks=[];for(const o of r)o()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),ne(t)}}onDestroy(t){return this.assertNotDestroyed(),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){this.assertNotDestroyed();const r=sr(this),o=jn(void 0);try{return t()}finally{sr(r),jn(o)}}get(t,r=co,o=or.Default){if(this.assertNotDestroyed(),t.hasOwnProperty(oi))return t[oi](this);o=ke(o);const c=sr(this),p=jn(void 0);try{if(!(o&or.SkipSelf)){let A=this.records.get(t);if(void 0===A){const F=function ma(e){return"function"==typeof e||"object"==typeof e&&e instanceof X}(t)&&gi(t);A=F&&this.injectableDefInScope(F)?Va(Di(t),Zo):null,this.records.set(t,A)}if(null!=A)return this.hydrate(t,A)}return(o&or.Self?Lo():this.parent).get(t,r=o&or.Optional&&r===co?null:r)}catch(y){if("NullInjectorError"===y.name){if((y[xi]=y[xi]||[]).unshift(tr(t)),c)throw y;return function Ht(e,t,r,o){const a=e[xi];throw t[M]&&a.unshift(t[M]),e.message=function qt(e,t,r,o=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let a=tr(t);if(Array.isArray(t))a=t.map(tr).join(" -> ");else if("object"==typeof t){let c=[];for(let p in t)if(t.hasOwnProperty(p)){let y=t[p];c.push(p+":"+("string"==typeof y?JSON.stringify(y):tr(y)))}a=`{${c.join(", ")}}`}return`${r}${o?"("+o+")":""}[${a}]: ${e.replace(H,"\n ")}`}("\n"+e.message,a,r,o),e.ngTokenPath=a,e[xi]=null,e}(y,t,"R3InjectorError",this.source)}throw y}finally{jn(p),sr(c)}}resolveInjectorInitializers(){const t=ne(null),r=sr(this),o=jn(void 0);try{const c=this.get(oo,Pr,or.Self);for(const p of c)p()}finally{sr(r),jn(o),ne(t)}}toString(){const t=[],r=this.records;for(const o of r.keys())t.push(tr(o));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Le(205,!1)}processProvider(t){let r=Yo(t=oe(t))?t:oe(t&&t.provide);const o=function Bl(e){return fa(e)?Va(void 0,e.useValue):Va(ga(e),Zo)}(t);if(!Yo(t)&&!0===t.multi){let a=this.records.get(r);a||(a=Va(void 0,Zo,!0),a.factory=()=>st(a.multi),this.records.set(r,a)),r=t,a.multi.push(t)}this.records.set(r,o)}hydrate(t,r){const o=ne(null);try{return r.value===Zo&&(r.value=wu,r.value=r.factory()),"object"==typeof r.value&&r.value&&function pc(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(r.value)&&this._ngOnDestroyHooks.add(r.value),r.value}finally{ne(o)}}injectableDefInScope(t){if(!t.providedIn)return!1;const r=oe(t.providedIn);return"string"==typeof r?"any"===r||this.scopes.has(r):this.injectorDefTypes.has(r)}removeOnDestroy(t){const r=this._onDestroyHooks.indexOf(t);-1!==r&&this._onDestroyHooks.splice(r,1)}}function Di(e){const t=gi(e),r=null!==t?t.factory:br(e);if(null!==r)return r;if(e instanceof X)throw new Le(204,!1);if(e instanceof Function)return function pa(e){if(e.length>0)throw new Le(204,!1);const r=function $t(e){return e&&(e[Wn]||e[Z])||null}(e);return null!==r?()=>r.factory(e):()=>new e}(e);throw new Le(204,!1)}function ga(e,t,r){let o;if(Yo(e)){const a=oe(e);return br(a)||Di(a)}if(fa(e))o=()=>oe(e.useValue);else if(function ws(e){return!(!e||!e.useFactory)}(e))o=()=>e.useFactory(...st(e.deps||[]));else if(function Is(e){return!(!e||!e.useExisting)}(e))o=()=>U(oe(e.useExisting));else{const a=oe(e&&(e.useClass||e.provide));if(!function zs(e){return!!e.deps}(e))return br(a)||Di(a);o=()=>new a(...st(e.deps))}return o}function Va(e,t,r=!1){return{factory:e,value:t,multi:r?[]:void 0}}function Ms(e,t){for(const r of e)Array.isArray(r)?Ms(r,t):r&&xr(r)?Ms(r.\u0275providers,t):t(r)}function lo(e,t){e instanceof Rs&&e.assertNotDestroyed();const o=sr(e),a=jn(void 0);try{return t()}finally{sr(o),jn(a)}}function Hs(){return void 0!==ai()||null!=function qe(){return fe}()}const Gr=0,un=1,Vn=2,Kr=3,Hi=4,_i=5,Gi=6,ki=7,Zr=8,zi=9,Uo=10,fr=11,La=12,gc=13,Ua=14,Wi=15,va=16,es=17,wo=18,Gs=19,jl=20,Lr=21,_a=22,Ws=23,Dr=25,$a=1,$o=7,Ks=9,Fi=10;var Su=function(e){return e[e.None=0]="None",e[e.HasTransplantedViews=2]="HasTransplantedViews",e}(Su||{});function Ur(e){return Array.isArray(e)&&"object"==typeof e[$a]}function _o(e){return Array.isArray(e)&&!0===e[$a]}function zl(e){return!!(4&e.flags)}function As(e){return e.componentOffset>-1}function Ia(e){return!(1&~e.flags)}function us(e){return!!e.template}function Hl(e){return!!(512&e[Vn])}class ht{constructor(t,r,o){this.previousValue=t,this.currentValue=r,this.firstChange=o}isFirstChange(){return this.firstChange}}function Yt(e,t,r,o){null!==t?t.applyValueToInputSignal(t,o):e[r]=o}function At(){return Tn}function Tn(e){return e.type.prototype.ngOnChanges&&(e.setInput=Si),hr}function hr(){const e=Ki(this),t=null==e?void 0:e.current;if(t){const r=e.previous;if(r===Vo)e.previous=t;else for(let o in t)r[o]=t[o];e.current=null,this.ngOnChanges(t)}}function Si(e,t,r,o,a){const c=this.declaredInputs[o],p=Ki(e)||function Bo(e,t){return e[Br]=t}(e,{previous:Vo,current:null}),y=p.current||(p.current={}),A=p.previous,F=A[c];y[c]=new ht(F&&F.currentValue,r,A===Vo),Yt(e,t,a,r)}At.ngInherit=!0;const Br="__ngSimpleChanges__";function Ki(e){return e[Br]||null}const yo=function(e,t,r){};let Ps=!1;function di(e){for(;Array.isArray(e);)e=e[Gr];return e}function ts(e,t){return di(t[e.index])}function Xl(e,t){return e.data[t]}function So(e,t){const r=t[e];return Ur(r)?r:r[Gr]}function vc(e){return!(128&~e[Vn])}function Cs(e,t){return null==t?null:e[t]}function yc(e){e[es]=0}function bd(e){1024&e[Vn]||(e[Vn]|=1024,vc(e)&&xs(e))}function Ql(e){var t;return!!(9216&e[Vn]||null!==(t=e[Ws])&&void 0!==t&&t.dirty)}function fl(e){var t;if(null===(t=e[Uo].changeDetectionScheduler)||void 0===t||t.notify(1),Ql(e))xs(e);else if(64&e[Vn])if(function Ca(){return Ps}())e[Vn]|=1024,xs(e);else{var r;null===(r=e[Uo].changeDetectionScheduler)||void 0===r||r.notify()}}function xs(e){var t;null===(t=e[Uo].changeDetectionScheduler)||void 0===t||t.notify();let r=Qs(e);for(;null!==r&&!(8192&r[Vn])&&(r[Vn]|=8192,vc(r));)r=Qs(r)}function Wa(e,t){if(!(256&~e[Vn]))throw new Le(911,!1);null===e[Lr]&&(e[Lr]=[]),e[Lr].push(t)}function Qs(e){const t=e[Kr];return _o(t)?t[Kr]:t}const Gn={lFrame:Zh(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function Ta(){return Gn.bindingsEnabled}function Zl(){return null!==Gn.skipHydrationRootTNode}function Gt(){return Gn.lFrame.lView}function qr(){return Gn.lFrame.tView}function Sd(e){return Gn.lFrame.contextLView=e,e[Zr]}function Ac(e){return Gn.lFrame.contextLView=null,e}function Ci(){let e=Xh();for(;null!==e&&64===e.type;)e=e.parent;return e}function Xh(){return Gn.lFrame.currentTNode}function Js(e,t){const r=Gn.lFrame;r.currentTNode=e,r.isParent=t}function xu(){return Gn.lFrame.isParent}function Nu(){Gn.lFrame.isParent=!1}function Ts(){return Gn.lFrame.bindingIndex++}function Md(e,t){const r=Gn.lFrame;r.bindingIndex=r.bindingRootIndex=e,Pd(t)}function Pd(e){Gn.lFrame.currentDirectiveIndex=e}function xd(){return Gn.lFrame.currentQueryIndex}function Dc(e){Gn.lFrame.currentQueryIndex=e}function bc(e){const t=e[un];return 2===t.type?t.declTNode:1===t.type?e[_i]:null}function Yh(e,t,r){if(r&or.SkipSelf){let a=t,c=e;for(;!(a=a.parent,null!==a||r&or.Host||(a=bc(c),null===a||(c=c[Ua],10&a.type))););if(null===a)return!1;t=a,e=c}const o=Gn.lFrame=ku();return o.currentTNode=t,o.lView=e,!0}function Da(e){const t=ku(),r=e[un];Gn.lFrame=t,t.currentTNode=r.firstChild,t.lView=e,t.tView=r,t.contextLView=e,t.bindingIndex=r.bindingStartIndex,t.inI18n=!1}function ku(){const e=Gn.lFrame,t=null===e?null:e.child;return null===t?Zh(e):t}function Zh(e){const t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function Nd(){const e=Gn.lFrame;return Gn.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const wc=Nd;function Fu(){const e=Nd();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function fo(){return Gn.lFrame.selectedIndex}function ba(e){Gn.lFrame.selectedIndex=e}function yi(){const e=Gn.lFrame;return Xl(e.tView,e.selectedIndex)}let Lu=!0;function Uu(){return Lu}function Ns(e){Lu=e}function $u(e,t){for(let F=t.directiveStart,W=t.directiveEnd;F=o)break}else t[A]<0&&(e[es]+=65536),(y>14>16&&(3&e[Vn])===t&&(e[Vn]+=16384,vl(y,c)):vl(y,c)}const _l=-1;class yl{constructor(t,r,o){this.factory=t,this.resolving=!1,this.canSeeViewProviders=r,this.injectImpl=o}}function Il(e){return e!==_l}function wa(e){return 32767&e}function El(e,t){let r=function xc(e){return e>>16}(e),o=t;for(;r>0;)o=o[Ua],r--;return o}let ju=!0;function Jl(e){const t=ju;return ju=e,t}const sf=255,Vd=5;let Nc=0;const Ds={};function zu(e,t){const r=Ld(e,t);if(-1!==r)return r;const o=t[un];o.firstCreatePass&&(e.injectorIndex=t.length,Ro(o.data,e),Ro(t,null),Ro(o.blueprint,null));const a=qa(e,t),c=e.injectorIndex;if(Il(a)){const p=wa(a),y=El(a,t),A=y[un].data;for(let F=0;F<8;F++)t[c+F]=y[p+F]|A[p+F]}return t[c+8]=a,c}function Ro(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Ld(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function qa(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let r=0,o=null,a=t;for(;null!==a;){if(o=Qa(a),null===o)return _l;if(r++,a=a[Ua],-1!==o.injectorIndex)return o.injectorIndex|r<<16}return _l}function Al(e,t,r){!function cv(e,t,r){let o;"string"==typeof r?o=r.charCodeAt(0)||0:r.hasOwnProperty(mr)&&(o=r[mr]),null==o&&(o=r[mr]=Nc++);const a=o&sf;t.data[e+(a>>Vd)]|=1<=0?t&sf:uf:t}(r);if("function"==typeof c){if(!Yh(t,e,o))return o&or.Host?eu(a,0,o):Ud(t,r,o,a);try{let p;if(p=c(o),null!=p||o&or.Optional)return p;si()}finally{wc()}}else if("number"==typeof c){let p=null,y=Ld(e,t),A=_l,F=o&or.Host?t[Wi][_i]:null;for((-1===y||o&or.SkipSelf)&&(A=-1===y?qa(e,t):t[y+8],A!==_l&&tu(o,!1)?(p=t[un],y=wa(A),t=El(A,t)):y=-1);-1!==y;){const W=t[un];if(Fc(c,y,W.data)){const ee=sg(y,t,r,p,o,F);if(ee!==Ds)return ee}A=t[y+8],A!==_l&&tu(o,t[un].data[y+8]===F)&&Fc(c,y,t)?(p=W,y=wa(A),t=El(A,t)):y=-1}}return a}function sg(e,t,r,o,a,c){const p=t[un],y=p.data[e+8],W=$d(y,p,r,null==o?As(y)&&ju:o!=p&&!!(3&y.type),a&or.Host&&c===y);return null!==W?Cl(t,p,W,y):Ds}function $d(e,t,r,o,a){const c=e.providerIndexes,p=t.data,y=1048575&c,A=e.directiveStart,W=c>>20,Se=a?y+W:e.directiveEnd;for(let Ge=o?y:y+W;Ge=A&&_t.type===r)return Ge}if(a){const Ge=p[A];if(Ge&&us(Ge)&&Ge.type===r)return A}return null}function Cl(e,t,r,o){let a=e[r];const c=t.data;if(function nf(e){return e instanceof yl}(a)){const p=a;p.resolving&&function Bi(e,t){throw t&&t.join(" > "),new Le(-200,e)}(function kn(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():Nn(e)}(c[r]));const y=Jl(p.canSeeViewProviders);p.resolving=!0;const F=p.injectImpl?jn(p.injectImpl):null;Yh(e,o,or.Default);try{a=e[r]=p.factory(void 0,c,e,o),t.firstCreatePass&&r>=o.directiveStart&&function og(e,t,r){const{ngOnChanges:o,ngOnInit:a,ngDoCheck:c}=t.type.prototype;if(o){var p,y;const ee=Tn(t);(null!==(p=r.preOrderHooks)&&void 0!==p?p:r.preOrderHooks=[]).push(e,ee),(null!==(y=r.preOrderCheckHooks)&&void 0!==y?y:r.preOrderCheckHooks=[]).push(e,ee)}var A,F,W;a&&(null!==(A=r.preOrderHooks)&&void 0!==A?A:r.preOrderHooks=[]).push(0-e,a),c&&((null!==(F=r.preOrderHooks)&&void 0!==F?F:r.preOrderHooks=[]).push(e,c),(null!==(W=r.preOrderCheckHooks)&&void 0!==W?W:r.preOrderCheckHooks=[]).push(e,c))}(r,c[r],t)}finally{null!==F&&jn(F),Jl(y),p.resolving=!1,wc()}}return a}function Fc(e,t,r){return!!(r[t+(e>>Vd)]&1<{const t=e.prototype.constructor,r=t[ti]||Hu(t),o=Object.prototype;let a=Object.getPrototypeOf(e.prototype).constructor;for(;a&&a!==o;){const c=a[ti]||Hu(a);if(c&&c!==r)return c;a=Object.getPrototypeOf(a)}return c=>new c})}function Hu(e){return He(e)?()=>{const t=Hu(oe(e));return t&&t()}:br(e)}function Qa(e){const t=e[un],r=t.type;return 2===r?t.declTNode:1===r?e[_i]:null}function Vc(e){return function Oc(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;const r=e.attrs;if(r){const o=r.length;let a=0;for(;a{var e;class t{static create(o,a){if(Array.isArray(o))return ug({name:""},a,o,"");{var c;const p=null!==(c=o.name)&&void 0!==c?c:"";return ug({name:p},o.parent,o.providers,p)}}}return(e=t).THROW_IF_NOT_FOUND=co,e.NULL=new ua,e.\u0275prov=lr({token:e,providedIn:"any",factory:()=>U(Us)}),e.__NG_ELEMENT_ID__=-1,t})();function Uc(e){return e.ngOriginalError}class Ya{constructor(){this._console=console}handleError(t){const r=this._findOriginalError(t);this._console.error("ERROR",t),r&&this._console.error("ORIGINAL ERROR",r)}_findOriginalError(t){let r=t&&Uc(t);for(;r&&Uc(r);)r=Uc(r);return r||null}}const zd=new X("",{providedIn:"root",factory:()=>Ee(Ya).handleError.bind(void 0)});let Ku=(()=>{var e;class t{}return(e=t).__NG_ELEMENT_ID__=cg,e.__NG_ENV_ID__=r=>r,t})();class yf extends Ku{constructor(t){super(),this._lView=t}onDestroy(t){return Wa(this._lView,t),()=>function Yl(e,t){if(null===e[Lr])return;const r=e[Lr].indexOf(t);-1!==r&&e[Lr].splice(r,1)}(this._lView,t)}}function cg(){return new yf(Gt())}function Xu(){return oa(Ci(),Gt())}function oa(e,t){return new Qu(ts(e,t))}let Qu=(()=>{class t{constructor(o){this.nativeElement=o}}return t.__NG_ELEMENT_ID__=Xu,t})();function ru(e){return e instanceof Qu?e.nativeElement:e}function If(e){return t=>{setTimeout(e,void 0,t)}}const Os=class hv extends $n.B{constructor(t=!1){var r;super(),this.destroyRef=void 0,this.__isAsync=t,Hs()&&(this.destroyRef=null!==(r=Ee(Ku,{optional:!0}))&&void 0!==r?r:void 0)}emit(t){const r=ne(null);try{super.next(t)}finally{ne(r)}}subscribe(t,r,o){let a=t,c=r||(()=>null),p=o;if(t&&"object"==typeof t){var y,A,F;const ee=t;a=null===(y=ee.next)||void 0===y?void 0:y.bind(ee),c=null===(A=ee.error)||void 0===A?void 0:A.bind(ee),p=null===(F=ee.complete)||void 0===F?void 0:F.bind(ee)}this.__isAsync&&(c=If(c),a&&(a=If(a)),p&&(p=If(p)));const W=super.subscribe({next:a,error:c,complete:p});return t instanceof qn.yU&&t.add(W),W}};function Ef(){return this._results[Symbol.iterator]()}class $c{get changes(){var t;return null!==(t=this._changes)&&void 0!==t?t:this._changes=new Os}constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._onDirty=void 0,this._results=[],this._changesDetected=!1,this._changes=void 0,this.length=0,this.first=void 0,this.last=void 0;const r=$c.prototype;r[Symbol.iterator]||(r[Symbol.iterator]=Ef)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,r){return this._results.reduce(t,r)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,r){this.dirty=!1;const o=function nr(e){return e.flat(Number.POSITIVE_INFINITY)}(t);(this._changesDetected=!function cr(e,t,r){if(e.length!==t.length)return!1;for(let o=0;oTg}),Tg="ng",_v=new X(""),Zd=new X("",{providedIn:"platform",factory:()=>"unknown"}),vy=new X("",{providedIn:"root",factory:()=>{var e;return(null===(e=function au(){if(void 0!==Ag)return Ag;if(typeof document<"u")return document;throw new Le(210,!1)}().body)||void 0===e||null===(e=e.querySelector("[ngCspNonce]"))||void 0===e?void 0:e.getAttribute("ngCspNonce"))||null}});let Av=()=>null;function rh(e,t,r=!1){return Av(e,t,r)}const xg=new X("",{providedIn:"root",factory:()=>!1});let ah;function Og(e){var t;return(null===(t=function Ff(){if(void 0===ah&&(ah=null,Bn.trustedTypes))try{ah=Bn.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return ah}())||void 0===t?void 0:t.createScriptURL(e))||e}class kg{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Yn})`}}function cu(e){return e instanceof kg?e.changingThisBreaksApplicationSecurity:e}function po(e,t){const r=function go(e){return e instanceof kg&&e.getTypeName()||null}(e);if(null!=r&&r!==t){if("ResourceURL"===r&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${r} (see ${Yn})`)}return r===t}const QI=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;var Xc=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}(Xc||{});function Qc(e){const t=Sa();return t?t.sanitize(Xc.URL,e)||"":po(e,"URL")?cu(e):function bi(e){return(e=String(e)).match(QI)?e:"unsafe:"+e}(Nn(e))}function $g(e){const t=Sa();if(t)return Og(t.sanitize(Xc.RESOURCE_URL,e)||"");if(po(e,"ResourceURL"))return Og(cu(e));throw new Le(904,!1)}function zf(e,t,r){return function Hg(e,t){return"src"===t&&("embed"===e||"frame"===e||"iframe"===e||"media"===e||"script"===e)||"href"===t&&("base"===e||"link"===e)?$g:Qc}(t,r)(e)}function Sa(){const e=Gt();return e&&e[Uo].sanitizer}const Fv=/^>|^->||--!>|)/g,Gg="\u200b$1\u200b";function aa(e){return e instanceof Function?e():e}var Xg=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(Xg||{});let Bv;function Qg(e,t){return Bv(e,t)}function ph(e,t,r,o,a){if(null!=o){let c,p=!1;_o(o)?c=o:Ur(o)&&(p=!0,o=o[Gr]);const y=di(o);0===e&&null!==r?null==a?rd(t,r,y):nd(t,r,y,a||null,!0):1===e&&null!==r?nd(t,r,y,a||null,!0):2===e?function Yf(e,t,r){const o=Qf(e,t);o&&function aE(e,t,r,o){e.removeChild(t,r,o)}(e,o,t,r)}(t,y,p):3===e&&t.destroyNode(y),null!=c&&function uE(e,t,r,o,a){const c=r[$o];c!==di(r)&&ph(t,e,o,c,a);for(let y=Fi;yt.replace(Vv,Gg))}(t))}function Rl(e,t,r){return e.createElement(t,r)}function jv(e,t){var r;null===(r=t[Uo].changeDetectionScheduler)||void 0===r||r.notify(1),Ra(e,t,t[fr],2,null,null)}function Gy(e,t){const r=e[Ks],o=r.indexOf(t);r.splice(o,1)}function qf(e,t){if(e.length<=Fi)return;const r=Fi+t,o=e[r];if(o){const a=o[va];null!==a&&a!==e&&Gy(a,o),t>0&&(e[r-1][Hi]=o[Hi]);const c=ci(e,Fi+t);!function Hy(e,t){jv(e,t),t[Gr]=null,t[_i]=null}(o[un],o);const p=c[wo];null!==p&&p.detachView(c[un]),o[Kr]=null,o[Hi]=null,o[Vn]&=-129}return o}function Yg(e,t){if(!(256&t[Vn])){const r=t[fr];r.destroyNode&&Ra(e,t,r,3,null,null),function fu(e){let t=e[La];if(!t)return Zg(e[un],e);for(;t;){let r=null;if(Ur(t))r=t[La];else{const o=t[Fi];o&&(r=o)}if(!r){for(;t&&!t[Hi]&&t!==e;)Ur(t)&&Zg(t[un],t),t=t[Kr];null===t&&(t=e),Ur(t)&&Zg(t[un],t),r=t&&t[Hi]}t=r}}(t)}}function Zg(e,t){if(256&t[Vn])return;const r=ne(null);try{t[Vn]&=-129,t[Vn]|=256,t[Ws]&&function vt(e){if(Ct(e),Ke(e))for(let t=0;t=0?o[p]():o[-p].unsubscribe(),c+=2}else r[c].call(o[r[c+1]]);null!==o&&(t[ki]=null);const a=t[Lr];if(null!==a){t[Lr]=null;for(let c=0;c-1){const{encapsulation:c}=e.data[o.directiveStart+a];if(c===ms.None||c===ms.Emulated)return null}return ts(o,r)}}(e,t.parent,r)}function nd(e,t,r,o,a){e.insertBefore(t,r,o,a)}function rd(e,t,r){e.appendChild(t,r)}function Xf(e,t,r,o,a){null!==o?nd(e,t,r,o,a):rd(e,t,r)}function Qf(e,t){return e.parentNode(t)}function Hv(e,t,r){return qy(e,t,r)}let Wv,qy=function Gv(e,t,r){return 40&e.type?ts(e,r):null};function Jg(e,t,r,o){const a=zv(e,o,t),c=t[fr],y=Hv(o.parent||t[_i],o,t);if(null!=a)if(Array.isArray(r))for(let A=0;ADr&&nm(e,t,Dr,!1),yo(p?2:0,a),r(o,a)}finally{ba(c),yo(p?3:1,a)}}function Xv(e,t,r){if(zl(t)){const o=ne(null);try{const c=t.directiveEnd;for(let p=t.directiveStart;pnull;function Yv(e,t,r,o,a){for(let p in t){var c;if(!t.hasOwnProperty(p))continue;const y=t[p];if(void 0===y)continue;null!==(c=o)&&void 0!==c||(o={});let A,F=ss.None;Array.isArray(y)?(A=y[0],F=y[1]):A=y;let W=p;if(null!==a){if(!a.hasOwnProperty(p))continue;W=a[p]}0===e?u0(o,r,W,A,F):u0(o,r,W,A)}return o}function u0(e,t,r,o,a){let c;e.hasOwnProperty(r)?(c=e[r]).push(t,o):c=e[r]=[t,o],void 0!==a&&c.push(a)}function ks(e,t,r,o,a,c,p,y){const A=ts(t,r);let W,F=t.inputs;!y&&null!=F&&(W=F[o])?(t_(e,r,W,o,a),As(t)&&function vE(e,t){const r=So(t,e);16&r[Vn]||(r[Vn]|=64)}(r,t.index)):3&t.type&&(o=function mE(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(o),a=null!=p?p(a,t.value||"",o):a,c.setProperty(A,o,a))}function Zv(e,t,r,o){if(Ta()){const a=null===o?null:{"":-1},c=function CE(e,t){const r=e.directiveRegistry;let o=null,a=null;if(r)for(let p=0;p0;){const r=e[--t];if("number"==typeof r&&r<0)return r}return 0})(p)!=y&&p.push(y),p.push(r,o,c)}}(e,t,o,Jf(e,r,a.hostVars,Nr),a)}function Ml(e,t,r,o,a,c){const p=ts(e,t);!function e_(e,t,r,o,a,c,p){if(null==c)e.removeAttribute(t,a,r);else{const y=null==p?Nn(c):p(c,o||"",a);e.setAttribute(t,a,y,r)}}(t[fr],p,c,e.value,r,o,a)}function RE(e,t,r,o,a,c){const p=c[t];if(null!==p)for(let y=0;y0&&(r[a-1][Hi]=t),o!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{},consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{xs(e.lView)},consumerOnSignalRead(){this.lView[Ws]=this}},I0=100;function cm(e,t=!0,r=0){const o=e[Uo],a=o.rendererFactory;var p;null===(p=a.begin)||void 0===p||p.call(a);try{!function LE(e,t){n_(e,t);let r=0;for(;Ql(e);){if(r===I0)throw new Le(103,!1);r++,n_(e,1)}}(e,r)}catch(F){throw t&&am(e,F),F}finally{var y,A;null===(y=a.end)||void 0===y||y.call(a),null===(A=o.inlineEffectRunner)||void 0===A||A.flush()}}function UE(e,t,r,o){var a;const c=t[Vn];if(!(256&~c))return;null===(a=t[Uo].inlineEffectRunner)||void 0===a||a.flush(),Da(t);let y=null,A=null;(function $E(e){return 2!==e.type})(e)&&(A=function OE(e){var t;return null!==(t=e[Ws])&&void 0!==t?t:function kE(e){var t;const r=null!==(t=y0.pop())&&void 0!==t?t:Object.create(VE);return r.lView=e,r}(e)}(t),y=function at(e){return e&&(e.nextProducerIndex=0),ne(e)}(A));try{yc(t),function Cc(e){return Gn.lFrame.bindingIndex=e}(e.bindingStartIndex),null!==r&&r0(e,t,r,2,o);const F=!(3&~c);if(F){const Se=e.preOrderCheckHooks;null!==Se&&Sc(t,Se,null)}else{const Se=e.preOrderHooks;null!==Se&&ra(t,Se,0,null),ia(t,0)}if(function BE(e){for(let t=gg(e);null!==t;t=Tf(t)){if(!(t[Vn]&Su.HasTransplantedViews))continue;const r=t[Ks];for(let o=0;oe.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}(A,y),function FE(e){e.lView[Ws]!==e&&(e.lView=null,y0.push(e))}(A)),Fu()}}function E0(e,t){for(let r=gg(e);null!==r;r=Tf(r))for(let o=Fi;o-1&&(qf(t,o),ci(r,o))}this._attachedToViewContainer=!1}Yg(this._lView[un],this._lView)}onDestroy(t){Wa(this._lView,t)}markForCheck(){ip(this._cdRefInjectingView||this._lView)}detach(){this._lView[Vn]&=-129}reattach(){fl(this._lView),this._lView[Vn]|=128}detectChanges(){this._lView[Vn]|=1024,cm(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new Le(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,jv(this._lView[un],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new Le(902,!1);this._appRef=t,fl(this._lView)}}let sp=(()=>{class t{}return t.__NG_ELEMENT_ID__=HE,t})();const T0=sp,zE=class extends T0{constructor(t,r,o){super(),this._declarationLView=t,this._declarationTContainer=r,this.elementRef=o}get ssrId(){var t;return(null===(t=this._declarationTContainer.tView)||void 0===t?void 0:t.ssrId)||null}createEmbeddedView(t,r){return this.createEmbeddedViewImpl(t,r)}createEmbeddedViewImpl(t,r,o){const a=function tp(e,t,r,o){const a=ne(null);try{var c,p,y;const A=t.tView,ee=rm(e,A,r,4096&e[Vn]?4096:16,null,t,null,null,null!==(c=null==o?void 0:o.injector)&&void 0!==c?c:null,null!==(p=null==o?void 0:o.embeddedViewInjector)&&void 0!==p?p:null,null!==(y=null==o?void 0:o.dehydratedView)&&void 0!==y?y:null);ee[va]=e[t.index];const Ge=e[wo];return null!==Ge&&(ee[wo]=Ge.createEmbeddedView(A)),lm(A,ee,r),ee}finally{ne(a)}}(this._declarationLView,this._declarationTContainer,t,{embeddedViewInjector:r,dehydratedView:o});return new op(a)}};function HE(){return dm(Ci(),Gt())}function dm(e,t){return 4&e.type?new zE(t,e,oa(e,t)):null}class pm{}class Ih{}class i_{}class ap{resolveComponentFactory(t){throw function Eh(e){const t=Error(`No component factory found for ${tr(e)}.`);return t.ngComponent=e,t}(t)}}let lc=(()=>{class t{}return t.NULL=new ap,t})();class lp{}let gm=(()=>{class t{constructor(){this.destroyNode=null}}return t.__NG_ELEMENT_ID__=()=>function mm(){const e=Gt(),r=So(Ci().index,e);return(Ur(r)?r:e)[fr]}(),t})(),vm=(()=>{var e;class t{}return(e=t).\u0275prov=lr({token:e,providedIn:"root",factory:()=>null}),t})();const up={},s_=new Set;function Ma(e){var t,r;s_.has(e)||(s_.add(e),null===(t=performance)||void 0===t||null===(r=t.mark)||void 0===r||r.call(t,"mark_feature_usage",{detail:{feature:e}}))}function _m(...e){}class Eo{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:o=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Os(!1),this.onMicrotaskEmpty=new Os(!1),this.onStable=new Os(!1),this.onError=new Os(!1),typeof Zone>"u")throw new Le(908,!1);Zone.assertZonePatched();const a=this;a._nesting=0,a._outer=a._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(a._inner=a._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(a._inner=a._inner.fork(Zone.longStackTraceZoneSpec)),a.shouldCoalesceEventChangeDetection=!o&&r,a.shouldCoalesceRunChangeDetection=o,a.lastRequestAnimationFrameId=-1,a.nativeRequestAnimationFrame=function ym(){const e="function"==typeof Bn.requestAnimationFrame;let t=Bn[e?"requestAnimationFrame":"setTimeout"],r=Bn[e?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&t&&r){const o=t[Zone.__symbol__("OriginalDelegate")];o&&(t=o);const a=r[Zone.__symbol__("OriginalDelegate")];a&&(r=a)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:r}}().nativeRequestAnimationFrame,function ns(e){const t=()=>{!function Em(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(Bn,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,jo(e),e.isCheckStableRunning=!0,Ah(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),jo(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(r,o,a,c,p,y)=>{if(function R0(e){var t;return!(!Array.isArray(e)||1!==e.length)&&!0===(null===(t=e[0].data)||void 0===t?void 0:t.__ignore_ng_zone__)}(y))return r.invokeTask(a,c,p,y);try{return Ch(e),r.invokeTask(a,c,p,y)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===c.type||e.shouldCoalesceRunChangeDetection)&&t(),Am(e)}},onInvoke:(r,o,a,c,p,y,A)=>{try{return Ch(e),r.invoke(a,c,p,y,A)}finally{e.shouldCoalesceRunChangeDetection&&t(),Am(e)}},onHasTask:(r,o,a,c)=>{r.hasTask(a,c),o===a&&("microTask"==c.change?(e._hasPendingMicrotasks=c.microTask,jo(e),Ah(e)):"macroTask"==c.change&&(e.hasPendingMacrotasks=c.macroTask))},onHandleError:(r,o,a,c)=>(r.handleError(a,c),e.runOutsideAngular(()=>e.onError.emit(c)),!1)})}(a)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Eo.isInAngularZone())throw new Le(909,!1)}static assertNotInAngularZone(){if(Eo.isInAngularZone())throw new Le(909,!1)}run(t,r,o){return this._inner.run(t,r,o)}runTask(t,r,o,a){const c=this._inner,p=c.scheduleEventTask("NgZoneEvent: "+a,t,Im,_m,_m);try{return c.runTask(p,r,o)}finally{c.cancelTask(p)}}runGuarded(t,r,o){return this._inner.runGuarded(t,r,o)}runOutsideAngular(t){return this._outer.run(t)}}const Im={};function Ah(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function jo(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function Ch(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Am(e){e._nesting--,Ah(e)}class Cm{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Os,this.onMicrotaskEmpty=new Os,this.onStable=new Os,this.onError=new Os}run(t,r,o){return t.apply(r,o)}runGuarded(t,r,o){return t.apply(r,o)}runOutsideAngular(t){return t()}runTask(t,r,o,a){return t.apply(r,o)}}var mu=function(e){return e[e.EarlyRead=0]="EarlyRead",e[e.Write=1]="Write",e[e.MixedReadWrite=2]="MixedReadWrite",e[e.Read=3]="Read",e}(mu||{});const Tm={destroy(){}};function a_(e,t){var r,o,a;!t&&function Es(e){if(!Hs())throw new Le(-203,!1)}();const c=null!==(r=null==t?void 0:t.injector)&&void 0!==r?r:Ee(ds);if(!function el(e){return"browser"===(null!=e?e:Ee(ds)).get(Zd)}(c))return Tm;Ma("NgAfterNextRender");const p=c.get(ad),y=null!==(o=p.handler)&&void 0!==o?o:p.handler=new Dm,A=null!==(a=null==t?void 0:t.phase)&&void 0!==a?a:mu.MixedReadWrite,F=()=>{y.unregister(ee),W()},W=c.get(Ku).onDestroy(F),ee=lo(c,()=>new cp(A,()=>{F(),e()}));return y.register(ee),{destroy:F}}class cp{constructor(t,r){var o;this.phase=t,this.callbackFn=r,this.zone=Ee(Eo),this.errorHandler=Ee(Ya,{optional:!0}),null===(o=Ee(pm,{optional:!0}))||void 0===o||o.notify(1)}invoke(){try{this.zone.runOutsideAngular(this.callbackFn)}catch(r){var t;null===(t=this.errorHandler)||void 0===t||t.handleError(r)}}}class Dm{constructor(){this.executingCallbacks=!1,this.buckets={[mu.EarlyRead]:new Set,[mu.Write]:new Set,[mu.MixedReadWrite]:new Set,[mu.Read]:new Set},this.deferredCallbacks=new Set}register(t){(this.executingCallbacks?this.deferredCallbacks:this.buckets[t.phase]).add(t)}unregister(t){this.buckets[t.phase].delete(t),this.deferredCallbacks.delete(t)}execute(){this.executingCallbacks=!0;for(const t of Object.values(this.buckets))for(const r of t)r.invoke();this.executingCallbacks=!1;for(const t of this.deferredCallbacks)this.buckets[t.phase].add(t);this.deferredCallbacks.clear()}destroy(){for(const t of Object.values(this.buckets))t.clear();this.deferredCallbacks.clear()}}let ad=(()=>{var e;class t{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){var o;this.executeInternalCallbacks(),null===(o=this.handler)||void 0===o||o.execute()}executeInternalCallbacks(){const o=[...this.internalCallbacks];this.internalCallbacks.length=0;for(const a of o)a()}ngOnDestroy(){var o;null===(o=this.handler)||void 0===o||o.destroy(),this.handler=null,this.internalCallbacks.length=0}}return(e=t).\u0275prov=lr({token:e,providedIn:"root",factory:()=>new e}),t})();function tl(e){return!!Hr(e)}function _u(e,t,r){let o=r?e.styles:null,a=r?e.classes:null,c=0;if(null!==t)for(let p=0;p0&&Zy(e,r,c.join(" "))}}(Bt,Fl,dn,o),void 0!==r&&function f_(e,t,r){const o=e.projection=[];for(let a=0;a{class t{}return t.__NG_ELEMENT_ID__=p_,t})();function p_(){return vp(Ci(),Gt())}const g_=hd,m_=class extends g_{constructor(t,r,o){super(),this._lContainer=t,this._hostTNode=r,this._hostLView=o}get element(){return oa(this._hostTNode,this._hostLView)}get injector(){return new Yi(this._hostTNode,this._hostLView)}get parentInjector(){const t=qa(this._hostTNode,this._hostLView);if(Il(t)){const r=El(t,this._hostLView),o=wa(t);return new Yi(r[un].data[o+8],r)}return new Yi(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const r=wh(this._lContainer);return null!==r&&r[t]||null}get length(){return this._lContainer.length-Fi}createEmbeddedView(t,r,o){let a,c;"number"==typeof o?a=o:null!=o&&(a=o.index,c=o.injector);const y=t.createEmbeddedViewImpl(r||{},c,null);return this.insertImpl(y,a,_h(this._hostTNode,null)),y}createComponent(t,r,o,a,c){var p,A;const F=t&&!function Ft(e){return"function"==typeof e}(t);let W;if(F)W=r;else{const dn=r||{};W=dn.index,o=dn.injector,a=dn.projectableNodes,c=dn.environmentInjector||dn.ngModuleRef}const ee=F?t:new bh(Jn(t)),Se=o||this.parentInjector;if(!c&&null==ee.ngModule){const Xt=(F?Se:this.parentInjector).get(Jo,null);Xt&&(c=Xt)}const Ge=Jn(null!==(p=ee.componentType)&&void 0!==p?p:{}),_t=(null==Ge?void 0:Ge.id,null),Bt=null!==(A=null==_t?void 0:_t.firstChild)&&void 0!==A?A:null,sn=ee.create(Se,a,Bt,c);return this.insertImpl(sn.hostView,W,_h(this._hostTNode,_t)),sn}insert(t,r){return this.insertImpl(t,r,!0)}insertImpl(t,r,o){const a=t._lView;if(function _c(e){return _o(e[Kr])}(a)){const y=this.indexOf(t);if(-1!==y)this.detach(y);else{const A=a[Kr],F=new m_(A,A[_i],A[Kr]);F.detach(F.indexOf(t))}}const c=this._adjustIndex(r),p=this._lContainer;return np(p,a,c,o),t.attachToViewContainerRef(),vi(mp(p),c,t),t}move(t,r){return this.insert(t,r)}indexOf(t){const r=wh(this._lContainer);return null!==r?r.indexOf(t):-1}remove(t){const r=this._adjustIndex(t,-1),o=qf(this._lContainer,r);o&&(ci(mp(this._lContainer),r),Yg(o[un],o))}detach(t){const r=this._adjustIndex(t,-1),o=qf(this._lContainer,r);return o&&null!=ci(mp(this._lContainer),r)?new op(o):null}_adjustIndex(t,r=0){return null==t?this.length+r:t}};function wh(e){return e[8]}function mp(e){return e[8]||(e[8]=[])}function vp(e,t){let r;const o=t[e.index];return _o(o)?r=o:(r=h0(o,t,null,e),t[e.index]=r,om(t,r)),Iu(r,t,e,o),new m_(r,e,t)}let Iu=function Rm(e,t,r,o){if(e[$o])return;let a;a=8&r.type?di(o):function Sh(e,t){const r=e[fr],o=r.createComment(""),a=ts(t,e);return nd(r,Qf(r,a),o,function Ky(e,t){return e.nextSibling(t)}(r,a),!1),o}(t,r),e[$o]=a},Rh=()=>!1;class Mh{constructor(t){this.queryList=t,this.matches=null}clone(){return new Mh(this.queryList)}setDirty(){this.queryList.setDirty()}}class _p{constructor(t=[]){this.queries=t}createEmbeddedView(t){const r=t.queries;if(null!==r){const o=null!==t.contentQueries?t.contentQueries[0]:r.length,a=[];for(let c=0;ct.trim())}(t):t}}class xm{constructor(t=[]){this.queries=t}elementStart(t,r){for(let o=0;o0)o.push(p[y/2]);else{const F=c[y+1],W=t[-A];for(let ee=Fi;ee=0;o--){const a=e[o];a.hostVars=t+=a.hostVars,a.hostAttrs=Xo(a.hostAttrs,r=Xo(r,a.hostAttrs))}}(o)}function x_(e,t){for(const o in t.inputs){if(!t.inputs.hasOwnProperty(o)||e.inputs.hasOwnProperty(o))continue;const a=t.inputs[o];if(void 0!==a&&(e.inputs[o]=a,e.declaredInputs[o]=t.declaredInputs[o],null!==t.inputTransforms)){var r;const c=Array.isArray(a)?a[0]:a;if(!t.inputTransforms.hasOwnProperty(c))continue;null!==(r=e.inputTransforms)&&void 0!==r||(e.inputTransforms={}),e.inputTransforms[c]=t.inputTransforms[c]}}}function Lh(e){return e===Vo?{}:e===Pr?[]:e}function wp(e,t){const r=e.viewQuery;e.viewQuery=r?(o,a)=>{t(o,a),r(o,a)}:t}function Fs(e,t){const r=e.contentQueries;e.contentQueries=r?(o,a,c)=>{t(o,a,c),r(o,a,c)}:t}function O_(e,t){const r=e.hostBindings;e.hostBindings=r?(o,a)=>{t(o,a),r(o,a)}:t}function Vi(e){const t=e.inputConfig,r={};for(const o in t)if(t.hasOwnProperty(o)){const a=t[o];Array.isArray(a)&&a[3]&&(r[o]=a[3])}e.inputTransforms=r}class io{}class hi{}function rs(e,t){return new Cu(e,null!=t?t:null,[])}class Cu extends io{constructor(t,r,o){super(),this._parent=r,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new u_(this);const a=Hr(t);this._bootstrapComponents=aa(a.bootstrap),this._r3Injector=_f(t,r,[{provide:io,useValue:this},{provide:lc,useValue:this.componentFactoryResolver},...o],tr(t),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(t)}get injector(){return this._r3Injector}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(r=>r()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class Vs extends hi{constructor(t){super(),this.moduleType=t}create(t){return new Cu(this.moduleType,t,[])}}class Rp extends io{constructor(t){super(),this.componentFactoryResolver=new u_(this),this.instance=null;const r=new Rs([...t.providers,{provide:io,useValue:this},{provide:lc,useValue:this.componentFactoryResolver}],t.parent||Lo(),t.debugName,new Set(["environment"]));this.injector=r,t.runEnvironmentInitializers&&r.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}}function j0(e,t,r=null){return new Rp({providers:e,parent:t,debugName:r,runEnvironmentInitializers:!0}).injector}let Mp=(()=>{var e;class t{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new er.t(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);const o=this.taskId++;return this.pendingTasks.add(o),o}remove(o){this.pendingTasks.delete(o),0===this.pendingTasks.size&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}}return(e=t).\u0275fac=function(o){return new(o||e)},e.\u0275prov=lr({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();function V_(e){return!!z0(e)&&(Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e)}function z0(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function Mo(e,t,r){return!Object.is(e[t],r)&&(e[t]=r,!0)}function Pp(e,t,r,o,a,c,p,y){const A=Gt(),F=qr(),W=e+Dr,ee=F.firstCreatePass?function ab(e,t,r,o,a,c,p,y,A){const F=t.consts,W=sc(t,e,4,p||null,Cs(F,y));Zv(t,r,W,Cs(F,A)),$u(t,W);const ee=W.tView=ep(2,W,o,a,c,t.directiveRegistry,t.pipeRegistry,null,t.schemas,F,null);return null!==t.queries&&(t.queries.template(t,W),ee.queries=t.queries.embeddedTView(W)),W}(W,F,A,t,r,o,a,c,p):F.data[W];Js(ee,!1);const Se=nA(F,A,ee,e);Uu()&&Jg(F,A,Se,ee),Zi(Se,A);const Ge=h0(Se,A,Se,ee);return A[W]=Ge,om(A,Ge),function v_(e,t,r){return Rh(e,t,r)}(Ge,ee,A),Ia(ee)&&mh(F,A,ee),null!=p&&od(A,ee,y),Pp}let nA=function rA(e,t,r,o){return Ns(!0),t[fr].createComment("")};function J0(e,t,r,o){const a=Gt();return Mo(a,Ts(),t)&&(qr(),Ml(yi(),a,e,t,r,o)),J0}function H_(e,t){return e<<17|t<<2}function yd(e){return e>>17&32767}function eI(e){return 2|e}function Bh(e){return(131068&e)>>2}function tI(e,t){return-131069&e|t<<2}function nI(e){return 1|e}function OA(e,t,r,o){const a=e[r+1],c=null===t;let p=o?yd(a):Bh(a),y=!1;for(;0!==p&&(!1===y||c);){const F=e[p+1];Kb(e[p],t)&&(y=!0,e[p+1]=o?nI(F):eI(F)),p=o?yd(F):Bh(F)}y&&(e[r+1]=o?eI(a):nI(a))}function Kb(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&Do(e,t)>=0}function rI(e,t,r){const o=Gt();return Mo(o,Ts(),t)&&ks(qr(),yi(),o,e,t,o[fr],r,!1),rI}function iI(e,t,r,o,a){const p=a?"class":"style";t_(e,r,t.inputs[p],p,o)}function oI(e,t){return function Ol(e,t,r,o){const a=Gt(),c=qr(),p=function na(e){const t=Gn.lFrame,r=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,r}(2);c.firstUpdatePass&&function zA(e,t,r,o){const a=e.data;if(null===a[r+1]){const c=a[fo()],p=function jA(e,t){return t>=e.expandoStartIndex}(e,r);(function KA(e,t){return!!(e.flags&(t?8:16))})(c,o)&&null===t&&!p&&(t=!1),t=function nw(e,t,r,o){const a=function Ou(e){const t=Gn.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}(e);let c=o?t.residualClasses:t.residualStyles;if(null===a)0===(o?t.classBindings:t.styleBindings)&&(r=qm(r=sI(null,e,t,r,o),t.attrs,o),c=null);else{const p=t.directiveStylingLast;if(-1===p||e[p]!==a)if(r=sI(a,e,t,r,o),null===c){let A=function rw(e,t,r){const o=r?t.classBindings:t.styleBindings;if(0!==Bh(o))return e[yd(o)]}(e,t,o);void 0!==A&&Array.isArray(A)&&(A=sI(null,e,t,A[1],o),A=qm(A,t.attrs,o),function iw(e,t,r,o){e[yd(r?t.classBindings:t.styleBindings)]=o}(e,t,o,A))}else c=function ow(e,t,r){let o;const a=t.directiveEnd;for(let c=1+t.directiveStylingLast;c0)&&(F=!0)):W=r,a)if(0!==A){const Se=yd(e[y+1]);e[o+1]=H_(Se,y),0!==Se&&(e[Se+1]=tI(e[Se+1],o)),e[y+1]=function zb(e,t){return 131071&e|t<<17}(e[y+1],o)}else e[o+1]=H_(y,0),0!==y&&(e[y+1]=tI(e[y+1],o)),y=o;else e[o+1]=H_(A,0),0===y?y=o:e[A+1]=tI(e[A+1],o),A=o;F&&(e[o+1]=eI(e[o+1])),OA(e,W,o,!0),OA(e,W,o,!1),function Wb(e,t,r,o,a){const c=a?e.residualClasses:e.residualStyles;null!=c&&"string"==typeof t&&Do(c,t)>=0&&(r[o+1]=nI(r[o+1]))}(t,W,e,o,c),p=H_(y,A),c?t.classBindings=p:t.styleBindings=p}(a,c,t,r,p,o)}}(c,e,p,o),t!==Nr&&Mo(a,p,t)&&function GA(e,t,r,o,a,c,p,y){if(!(3&t.type))return;const A=e.data,F=A[y+1],W=function Hb(e){return!(1&~e)}(F)?WA(A,t,r,a,Bh(F),p):void 0;G_(W)||(G_(c)||function jb(e){return!(2&~e)}(F)&&(c=WA(A,null,r,a,y,p)),function cE(e,t,r,o,a){if(t)a?e.addClass(r,o):e.removeClass(r,o);else{let c=-1===o.indexOf("-")?void 0:Xg.DashCase;null==a?e.removeStyle(r,o,c):("string"==typeof a&&a.endsWith("!important")&&(a=a.slice(0,-10),c|=Xg.Important),e.setStyle(r,o,a,c))}}(o,p,function Ga(e,t){return di(t[e])}(fo(),r),a,c))}(c,c.data[fo()],a,a[fr],e,a[p+1]=function uw(e,t){return null==e||""===e||("string"==typeof t?e+=t:"object"==typeof e&&(e=tr(cu(e)))),e}(t,r),o,p)}(e,t,null,!0),oI}function sI(e,t,r,o,a){let c=null;const p=r.directiveEnd;let y=r.directiveStylingLast;for(-1===y?y=r.directiveStart:y++;y0;){const A=e[a],F=Array.isArray(A),W=F?A[1]:A,ee=null===W;let Se=r[a+1];Se===Nr&&(Se=ee?Pr:void 0);let Ge=ee?Ko(Se,o):W===o?Se:void 0;if(F&&!G_(Ge)&&(Ge=Ko(A,o)),G_(Ge)&&(y=Ge,p))return y;const _t=e[a+1];a=p?yd(_t):Bh(_t)}if(null!==t){let A=c?t.residualClasses:t.residualStyles;null!=A&&(y=Ko(A,o))}return y}function G_(e){return void 0!==e}function W_(e,t,r,o){const a=Gt(),c=qr(),p=Dr+e,y=a[fr],A=c.firstCreatePass?function xw(e,t,r,o,a,c){const p=t.consts,A=sc(t,e,2,o,Cs(p,a));return Zv(t,r,A,Cs(p,c)),null!==A.attrs&&_u(A,A.attrs,!1),null!==A.mergedAttrs&&_u(A,A.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,A),A}(p,c,a,t,r,o):c.data[p],F=YA(c,a,A,y,t,e);a[p]=F;const W=Ia(A);return Js(A,!0),Jy(y,F,A),!function Hm(e){return!(32&~e.flags)}(A)&&Uu()&&Jg(c,a,F,A),0===function Ic(){return Gn.lFrame.elementDepthCount}()&&Zi(F,a),function Ec(){Gn.lFrame.elementDepthCount++}(),W&&(mh(c,a,A),Xv(c,A,a)),null!==o&&od(a,A),W_}function K_(){let e=Ci();xu()?Nu():(e=e.parent,Js(e,!1));const t=e;(function gl(e){return Gn.skipHydrationRootTNode===e})(t)&&function Ka(){Gn.skipHydrationRootTNode=null}(),function Ys(){Gn.lFrame.elementDepthCount--}();const r=qr();return r.firstCreatePass&&($u(r,e),zl(e)&&r.queries.elementEnd(e)),null!=t.classesWithoutHost&&function Bu(e){return!!(8&e.flags)}(t)&&iI(r,t,Gt(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function kd(e){return!!(16&e.flags)}(t)&&iI(r,t,Gt(),t.stylesWithoutHost,!1),K_}function dI(e,t,r,o){return W_(e,t,r,o),K_(),dI}let YA=(e,t,r,o,a,c)=>(Ns(!0),Rl(o,a,function Od(){return Gn.lFrame.currentNamespace}()));function q_(e,t,r){const o=Gt(),a=qr(),c=e+Dr,p=a.firstCreatePass?function kw(e,t,r,o,a){const c=t.consts,p=Cs(c,o),y=sc(t,e,8,"ng-container",p);return null!==p&&_u(y,p,!0),Zv(t,r,y,Cs(c,a)),null!==t.queries&&t.queries.elementStart(t,y),y}(c,a,o,t,r):a.data[c];Js(p,!0);const y=ZA(a,o,p,e);return o[c]=y,Uu()&&Jg(a,o,y,p),Zi(y,o),Ia(p)&&(mh(a,o,p),Xv(a,p,o)),null!=r&&od(o,p),q_}function X_(){let e=Ci();const t=qr();return xu()?Nu():(e=e.parent,Js(e,!1)),t.firstCreatePass&&($u(t,e),zl(e)&&t.queries.elementEnd(e)),X_}function hI(e,t,r){return q_(e,t,r),X_(),hI}let ZA=(e,t,r,o)=>(Ns(!0),td(t[fr],""));function JA(){return Gt()}const jh=void 0;var Uw=["en",[["a","p"],["AM","PM"],jh],[["AM","PM"],jh,jh],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],jh,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],jh,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",jh,"{1} 'at' {0}",jh],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function Lw(e){const r=Math.floor(Math.abs(e)),o=e.toString().replace(/^[^.]*\.?/,"").length;return 1===r&&0===o?1:5}];let qp={};function fI(e){const t=function $w(e){return e.toLowerCase().replace(/_/g,"-")}(e);let r=rC(t);if(r)return r;const o=t.split("-")[0];if(r=rC(o),r)return r;if("en"===o)return Uw;throw new Le(701,!1)}function nC(e){return fI(e)[Xp.PluralCase]}function rC(e){return e in qp||(qp[e]=Bn.ng&&Bn.ng.common&&Bn.ng.common.locales&&Bn.ng.common.locales[e]),qp[e]}var Xp=function(e){return e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencyCode=15]="CurrencyCode",e[e.CurrencySymbol=16]="CurrencySymbol",e[e.CurrencyName=17]="CurrencyName",e[e.Currencies=18]="Currencies",e[e.Directionality=19]="Directionality",e[e.PluralCase=20]="PluralCase",e[e.ExtraData=21]="ExtraData",e}(Xp||{});const Qp="en-US";let iC=Qp;function mI(e,t,r,o){const a=Gt(),c=qr(),p=Ci();return vI(c,a,a[fr],p,e,t,o),mI}function vI(e,t,r,o,a,c,p){const y=Ia(o),F=e.firstCreatePass&&g0(e),W=t[Zr],ee=p0(t);let Se=!0;if(3&o.type||p){const Bt=ts(o,t),sn=p?p(Bt):Bt,dn=ee.length,Xt=p?$r=>p(di($r[o.index])):o.index;let Er=null;if(!p&&y&&(Er=function FS(e,t,r,o){const a=e.cleanup;if(null!=a)for(let c=0;cA?y[A]:null}"string"==typeof p&&(c+=2)}return null}(e,t,a,o.index)),null!==Er)(Er.__ngLastListenerFn__||Er).__ngNextListenerFn__=c,Er.__ngLastListenerFn__=c,Se=!1;else{c=xC(o,t,W,c,!1);const $r=r.listen(sn,a,c);ee.push(c,$r),F&&F.push(a,Xt,dn,dn+1)}}else c=xC(o,t,W,c,!1);const Ge=o.outputs;let _t;if(Se&&null!==Ge&&(_t=Ge[a])){const Bt=_t.length;if(Bt)for(let sn=0;sn-1?So(e.index,t):t);let A=PC(t,r,o,p),F=c.__ngNextListenerFn__;for(;F;)A=PC(t,r,F,p)&&A,F=F.__ngNextListenerFn__;return a&&!1===A&&p.preventDefault(),A}}function NC(e=1){return function Vu(e){return(Gn.lFrame.contextLView=function eg(e,t){for(;e>0;)t=t[Ua],e--;return t}(e,Gn.lFrame.contextLView))[Zr]}(e)}function VS(e,t){let r=null;const o=function rn(e){const t=e.attrs;if(null!=t){const r=t.indexOf(5);if(!(1&r))return t[r+1]}return null}(e);for(let a=0;a(Ns(!0),function Sl(e,t){return e.createText(t)}(t[fr],o));function II(e,t,r){km(t)&&(t=t());const o=Gt();return Mo(o,Ts(),t)&&ks(qr(),yi(),o,e,t,o[fr],r,!1),II}function gT(e,t){const r=km(e);return r&&e.set(t),r}function EI(e,t){const r=Gt(),o=qr(),a=Ci();return vI(o,r,r[fr],a,e,t),EI}function AI(e,t,r,o,a){if(e=oe(e),Array.isArray(e))for(let c=0;c>20;if(Yo(e)||!e.multi){const Ge=new yl(F,a,id),_t=TI(A,t,a?W:W+Se,ee);-1===_t?(Al(zu(y,p),c,A),CI(c,e,t.length),t.push(A),y.directiveStart++,y.directiveEnd++,a&&(y.providerIndexes+=1048576),r.push(Ge),p.push(Ge)):(r[_t]=Ge,p[_t]=Ge)}else{const Ge=TI(A,t,W+Se,ee),_t=TI(A,t,W,W+Se),sn=_t>=0&&r[_t];if(a&&!sn||!a&&!(Ge>=0&&r[Ge])){Al(zu(y,p),c,A);const dn=function rR(e,t,r,o,a){const c=new yl(e,r,id);return c.multi=[],c.index=t,c.componentProviders=0,mT(c,a,o&&!r),c}(a?nR:tR,r.length,a,o,F);!a&&sn&&(r[_t].providerFactory=dn),CI(c,e,t.length,0),t.push(A),y.directiveStart++,y.directiveEnd++,a&&(y.providerIndexes+=1048576),r.push(dn),p.push(dn)}else CI(c,e,Ge>-1?Ge:_t,mT(r[a?_t:Ge],F,!a&&o));!a&&o&&sn&&r[_t].componentProviders++}}}function CI(e,t,r,o){const a=Yo(t),c=function Ss(e){return!!e.useClass}(t);if(a||c){const A=(c?oe(t.useClass):t).prototype.ngOnDestroy;if(A){const F=e.destroyHooks||(e.destroyHooks=[]);if(!a&&t.multi){const W=F.indexOf(r);-1===W?F.push(r,[o,A]):F[W+1].push(o,A)}else F.push(r,A)}}}function mT(e,t,r){return r&&e.componentProviders++,e.multi.push(t)-1}function TI(e,t,r,o){for(let a=r;a{r.providersResolver=(o,a)=>function eR(e,t,r){const o=qr();if(o.firstCreatePass){const a=us(e);AI(r,o.data,o.blueprint,a,!0),AI(t,o.data,o.blueprint,a,!1)}}(o,a?a(e):e,t)}}let iR=(()=>{var e;class t{constructor(o){this._injector=o,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(o){if(!o.standalone)return null;if(!this.cachedInjectors.has(o)){const a=ka(0,o.type),c=a.length>0?j0([a],this._injector,`Standalone[${o.type.name}]`):null;this.cachedInjectors.set(o,c)}return this.cachedInjectors.get(o)}ngOnDestroy(){try{for(const o of this.cachedInjectors.values())null!==o&&o.destroy()}finally{this.cachedInjectors.clear()}}}return(e=t).\u0275prov=lr({token:e,providedIn:"environment",factory:()=>new e(U(Jo))}),t})();function _T(e){Ma("NgStandalone"),e.getStandaloneInjector=t=>t.get(iR).getOrCreateStandaloneInjector(e)}function IT(e,t,r){const o=function ho(){const e=Gn.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}()+e,a=Gt();return a[o]===Nr?function Tu(e,t,r){return e[t]=r}(a,o,r?t.call(r):t()):function zm(e,t){return e[t]}(a,o)}class BT{constructor(t){this.full=t;const r=t.split(".");this.major=r[0],this.minor=r[1],this.patch=r.slice(2).join(".")}}const GR=new BT("17.3.10");let jT=(()=>{var e;class t{log(o){console.log(o)}warn(o){console.warn(o)}}return(e=t).\u0275fac=function(o){return new(o||e)},e.\u0275prov=lr({token:e,factory:e.\u0275fac,providedIn:"platform"}),t})();const WT=new X(""),KT=new X("");let xI,vM=(()=>{var e;class t{constructor(o,a,c){this._ngZone=o,this.registry=a,this._pendingCount=0,this._isZoneStable=!0,this._callbacks=[],this.taskTrackingZone=null,xI||(function _M(e){xI=e}(c),c.addToWindow(a)),this._watchAngularEvents(),o.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Eo.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;0!==this._callbacks.length;){let o=this._callbacks.pop();clearTimeout(o.timeoutId),o.doneCb()}});else{let o=this.getPendingTasks();this._callbacks=this._callbacks.filter(a=>!a.updateCb||!a.updateCb(o)||(clearTimeout(a.timeoutId),!1))}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(o=>({source:o.source,creationLocation:o.creationLocation,data:o.data})):[]}addCallback(o,a,c){let p=-1;a&&a>0&&(p=setTimeout(()=>{this._callbacks=this._callbacks.filter(y=>y.timeoutId!==p),o()},a)),this._callbacks.push({doneCb:o,timeoutId:p,updateCb:c})}whenStable(o,a,c){if(c&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(o,a,c),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(o){this.registry.registerApplication(o,this)}unregisterApplication(o){this.registry.unregisterApplication(o)}findProviders(o,a,c){return[]}}return(e=t).\u0275fac=function(o){return new(o||e)(U(Eo),U(qT),U(KT))},e.\u0275prov=lr({token:e,factory:e.\u0275fac}),t})(),qT=(()=>{var e;class t{constructor(){this._applications=new Map}registerApplication(o,a){this._applications.set(o,a)}unregisterApplication(o){this._applications.delete(o)}unregisterAllApplications(){this._applications.clear()}getTestability(o){return this._applications.get(o)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(o,a=!0){var c,p;return null!==(c=null===(p=xI)||void 0===p?void 0:p.findTestabilityInTree(this,o,a))&&void 0!==c?c:null}}return(e=t).\u0275fac=function(o){return new(o||e)},e.\u0275prov=lr({token:e,factory:e.\u0275fac,providedIn:"platform"}),t})();function NI(e){return!!e&&"function"==typeof e.then}function XT(e){return!!e&&"function"==typeof e.subscribe}const QT=new X("");let OI=(()=>{var e;class t{constructor(){var o;this.initialized=!1,this.done=!1,this.donePromise=new Promise((a,c)=>{this.resolve=a,this.reject=c}),this.appInits=null!==(o=Ee(QT,{optional:!0}))&&void 0!==o?o:[]}runInitializers(){if(this.initialized)return;const o=[];for(const c of this.appInits){const p=c();if(NI(p))o.push(p);else if(XT(p)){const y=new Promise((A,F)=>{p.subscribe({complete:A,error:F})});o.push(y)}}const a=()=>{this.done=!0,this.resolve()};Promise.all(o).then(()=>{a()}).catch(c=>{this.reject(c)}),0===o.length&&a(),this.initialized=!0}}return(e=t).\u0275fac=function(o){return new(o||e)},e.\u0275prov=lr({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();const kI=new X("");function JT(e,t){return Array.isArray(t)?t.reduce(JT,e):{...e,...t}}let Id=(()=>{var e;class t{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=Ee(zd),this.afterRenderEffectManager=Ee(ad),this.externalTestViews=new Set,this.beforeRender=new $n.B,this.afterTick=new $n.B,this.componentTypes=[],this.components=[],this.isStable=Ee(Mp).hasPendingTasks.pipe((0,yn.T)(o=>!o)),this._injector=Ee(Jo)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(o,a){const c=o instanceof i_;if(!this._injector.get(OI).done)throw!c&&ro(o),new Le(405,!1);let y;y=c?o:this._injector.get(lc).resolveComponentFactory(o),this.componentTypes.push(y.componentType);const A=function yM(e){return e.isBoundToModule}(y)?void 0:this._injector.get(io),W=y.create(ds.NULL,[],a||y.selector,A),ee=W.location.nativeElement,Se=W.injector.get(WT,null);return null==Se||Se.registerApplication(ee),W.onDestroy(()=>{this.detachView(W.hostView),ry(this.components,W),null==Se||Se.unregisterApplication(ee)}),this._loadComponent(W),W}tick(){this._tick(!0)}_tick(o){if(this._runningTick)throw new Le(101,!1);const a=ne(null);try{this._runningTick=!0,this.detectChangesInAttachedViews(o)}catch(c){this.internalErrorHandler(c)}finally{this.afterTick.next(),this._runningTick=!1,ne(a)}}detectChangesInAttachedViews(o){let a=0;const c=this.afterRenderEffectManager;for(;;){if(a===I0)throw new Le(103,!1);if(o){const p=0===a;this.beforeRender.next(p);for(let{_lView:y,notifyErrorHandler:A}of this._views)EM(y,p,A)}if(a++,c.executeInternalCallbacks(),![...this.externalTestViews.keys(),...this._views].some(({_lView:p})=>FI(p))&&(c.execute(),![...this.externalTestViews.keys(),...this._views].some(({_lView:p})=>FI(p))))break}}attachView(o){const a=o;this._views.push(a),a.attachToAppRef(this)}detachView(o){const a=o;ry(this._views,a),a.detachFromAppRef()}_loadComponent(o){this.attachView(o.hostView),this.tick(),this.components.push(o);const a=this._injector.get(kI,[]);[...this._bootstrapListeners,...a].forEach(c=>c(o))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(o=>o()),this._views.slice().forEach(o=>o.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(o){return this._destroyListeners.push(o),()=>ry(this._destroyListeners,o)}destroy(){if(this._destroyed)throw new Le(406,!1);const o=this._injector;o.destroy&&!o.destroyed&&o.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return(e=t).\u0275fac=function(o){return new(o||e)},e.\u0275prov=lr({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();function ry(e,t){const r=e.indexOf(t);r>-1&&e.splice(r,1)}function EM(e,t,r){!t&&!FI(e)||function AM(e,t,r){let o;r?(o=0,e[Vn]|=1024):o=64&e[Vn]?0:1,cm(e,t,o)}(e,r,t)}function FI(e){return Ql(e)}class CM{constructor(t,r){this.ngModuleFactory=t,this.componentFactories=r}}let TM=(()=>{var e;class t{compileModuleSync(o){return new Vs(o)}compileModuleAsync(o){return Promise.resolve(this.compileModuleSync(o))}compileModuleAndAllComponentsSync(o){const a=this.compileModuleSync(o),p=aa(Hr(o).declarations).reduce((y,A)=>{const F=Jn(A);return F&&y.push(new bh(F)),y},[]);return new CM(a,p)}compileModuleAndAllComponentsAsync(o){return Promise.resolve(this.compileModuleAndAllComponentsSync(o))}clearCache(){}clearCacheFor(o){}getModuleId(o){}}return(e=t).\u0275fac=function(o){return new(o||e)},e.\u0275prov=lr({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),wM=(()=>{var e;class t{constructor(){this.zone=Ee(Eo),this.applicationRef=Ee(Id)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){var o;null===(o=this._onMicrotaskEmptySubscription)||void 0===o||o.unsubscribe()}}return(e=t).\u0275fac=function(o){return new(o||e)},e.\u0275prov=lr({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();function SM(){const e=Ee(Eo),t=Ee(Ya);return r=>e.runOutsideAngular(()=>t.handleError(r))}let MM=(()=>{var e;class t{constructor(){this.subscription=new qn.yU,this.initialized=!1,this.zone=Ee(Eo),this.pendingTasks=Ee(Mp)}initialize(){if(this.initialized)return;this.initialized=!0;let o=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(o=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{Eo.assertNotInAngularZone(),queueMicrotask(()=>{null!==o&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(o),o=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{var a;Eo.assertInAngularZone(),null!==(a=o)&&void 0!==a||(o=this.pendingTasks.add())}))}ngOnDestroy(){this.subscription.unsubscribe()}}return(e=t).\u0275fac=function(o){return new(o||e)},e.\u0275prov=lr({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();const iy=new X("",{providedIn:"root",factory:()=>Ee(iy,or.Optional|or.SkipSelf)||function PM(){return typeof $localize<"u"&&$localize.locale||Qp}()}),xM=new X("",{providedIn:"root",factory:()=>"USD"}),VI=new X("");let rD=(()=>{var e;class t{constructor(o){this._injector=o,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(o,a){const c=function Th(e="zone.js",t){return"noop"===e?new Cm:"zone.js"===e?new Eo(t):e}(null==a?void 0:a.ngZone,function nD(e){var t,r;return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:null!==(t=null==e?void 0:e.eventCoalescing)&&void 0!==t&&t,shouldCoalesceRunChangeDetection:null!==(r=null==e?void 0:e.runCoalescing)&&void 0!==r&&r}}({eventCoalescing:null==a?void 0:a.ngZoneEventCoalescing,runCoalescing:null==a?void 0:a.ngZoneRunCoalescing}));return c.run(()=>{const p=function Sp(e,t,r){return new Cu(e,t,r)}(o.moduleType,this.injector,function tD(e){return[{provide:Eo,useFactory:e},{provide:oo,multi:!0,useFactory:()=>{const t=Ee(wM,{optional:!0});return()=>t.initialize()}},{provide:oo,multi:!0,useFactory:()=>{const t=Ee(MM);return()=>{t.initialize()}}},{provide:zd,useFactory:SM}]}(()=>c)),y=p.injector.get(Ya,null);return c.runOutsideAngular(()=>{const A=c.onError.subscribe({next:F=>{y.handleError(F)}});p.onDestroy(()=>{ry(this._modules,p),A.unsubscribe()})}),function ZT(e,t,r){try{const o=r();return NI(o)?o.catch(a=>{throw t.runOutsideAngular(()=>e.handleError(a)),a}):o}catch(o){throw t.runOutsideAngular(()=>e.handleError(o)),o}}(y,c,()=>{const A=p.injector.get(OI);return A.runInitializers(),A.donePromise.then(()=>(function oC(e){"string"==typeof e&&(iC=e.toLowerCase().replace(/_/g,"-"))}(p.injector.get(iy,Qp)||Qp),this._moduleDoBootstrap(p),p))})})}bootstrapModule(o,a=[]){const c=JT({},a);return function bM(e,t,r){const o=new Vs(r);return Promise.resolve(o)}(0,0,o).then(p=>this.bootstrapModuleFactory(p,c))}_moduleDoBootstrap(o){const a=o.injector.get(Id);if(o._bootstrapComponents.length>0)o._bootstrapComponents.forEach(c=>a.bootstrap(c));else{if(!o.instance.ngDoBootstrap)throw new Le(-403,!1);o.instance.ngDoBootstrap(a)}this._modules.push(o)}onDestroy(o){this._destroyListeners.push(o)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Le(404,!1);this._modules.slice().forEach(a=>a.destroy()),this._destroyListeners.forEach(a=>a());const o=this._injector.get(VI,null);o&&(o.forEach(a=>a()),o.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return(e=t).\u0275fac=function(o){return new(o||e)(U(ds))},e.\u0275prov=lr({token:e,factory:e.\u0275fac,providedIn:"platform"}),t})(),Ed=null;const iD=new X("");function oD(e,t,r=[]){const o=`Platform: ${t}`,a=new X(o);return(c=[])=>{let p=LI();if(!p||p.injector.get(iD,!1)){const y=[...r,...c,{provide:a,useValue:!0}];e?e(y):function OM(e){if(Ed&&!Ed.get(iD,!1))throw new Le(400,!1);(function YT(){!function Pe(e){Pt=e}(()=>{throw new Le(600,!1)})})(),Ed=e;const t=e.get(rD);(function aD(e){const t=e.get(_v,null);null==t||t.forEach(r=>r())})(e)}(function sD(e=[],t){return ds.create({name:t,providers:[{provide:dl,useValue:"platform"},{provide:VI,useValue:new Set([()=>Ed=null])},...e]})}(y,o))}return function kM(e){const t=LI();if(!t)throw new Le(401,!1);return t}()}}function LI(){var e,t;return null!==(e=null===(t=Ed)||void 0===t?void 0:t.get(rD))&&void 0!==e?e:null}function VM(){}let uD=(()=>{class t{}return t.__NG_ELEMENT_ID__=LM,t})();function LM(e){return function UM(e,t,r){if(As(e)&&!r){const o=So(e.index,t);return new op(o,o)}return 47&e.type?new op(t[Wi],t):null}(Ci(),Gt(),!(16&~e))}class fD{constructor(){}supports(t){return V_(t)}create(t){return new HM(t)}}const zM=(e,t)=>t;class HM{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||zM}forEachItem(t){let r;for(r=this._itHead;null!==r;r=r._next)t(r)}forEachOperation(t){let r=this._itHead,o=this._removalsHead,a=0,c=null;for(;r||o;){const p=!o||r&&r.currentIndex{p=this._trackByFn(a,y),null!==r&&Object.is(r.trackById,p)?(o&&(r=this._verifyReinsertion(r,y,p,a)),Object.is(r.item,y)||this._addIdentityChange(r,y)):(r=this._mismatch(r,y,p,a),o=!0),r=r._next,a++}),this.length=a;return this._truncate(r),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,r,o,a){let c;return null===t?c=this._itTail:(c=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(o,null))?(Object.is(t.item,r)||this._addIdentityChange(t,r),this._reinsertAfter(t,c,a)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(o,a))?(Object.is(t.item,r)||this._addIdentityChange(t,r),this._moveAfter(t,c,a)):t=this._addAfter(new GM(r,o),c,a),t}_verifyReinsertion(t,r,o,a){let c=null===this._unlinkedRecords?null:this._unlinkedRecords.get(o,null);return null!==c?t=this._reinsertAfter(c,t._prev,a):t.currentIndex!=a&&(t.currentIndex=a,this._addToMoves(t,a)),t}_truncate(t){for(;null!==t;){const r=t._next;this._addToRemovals(this._unlink(t)),t=r}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,r,o){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const a=t._prevRemoved,c=t._nextRemoved;return null===a?this._removalsHead=c:a._nextRemoved=c,null===c?this._removalsTail=a:c._prevRemoved=a,this._insertAfter(t,r,o),this._addToMoves(t,o),t}_moveAfter(t,r,o){return this._unlink(t),this._insertAfter(t,r,o),this._addToMoves(t,o),t}_addAfter(t,r,o){return this._insertAfter(t,r,o),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,r,o){const a=null===r?this._itHead:r._next;return t._next=a,t._prev=r,null===a?this._itTail=t:a._prev=t,null===r?this._itHead=t:r._next=t,null===this._linkedRecords&&(this._linkedRecords=new pD),this._linkedRecords.put(t),t.currentIndex=o,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const r=t._prev,o=t._next;return null===r?this._itHead=o:r._next=o,null===o?this._itTail=r:o._prev=r,t}_addToMoves(t,r){return t.previousIndex===r||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new pD),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,r){return t.item=r,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class GM{constructor(t,r){this.item=t,this.trackById=r,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class WM{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,r){let o;for(o=this._head;null!==o;o=o._nextDup)if((null===r||r<=o.currentIndex)&&Object.is(o.trackById,t))return o;return null}remove(t){const r=t._prevDup,o=t._nextDup;return null===r?this._head=o:r._nextDup=o,null===o?this._tail=r:o._prevDup=r,null===this._head}}class pD{constructor(){this.map=new Map}put(t){const r=t.trackById;let o=this.map.get(r);o||(o=new WM,this.map.set(r,o)),o.add(t)}get(t,r){const a=this.map.get(t);return a?a.get(t,r):null}remove(t){const r=t.trackById;return this.map.get(r).remove(t)&&this.map.delete(r),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function gD(e,t,r){const o=e.previousIndex;if(null===o)return o;let a=0;return r&&o{if(r&&r.key===a)this._maybeAddToChanges(r,o),this._appendAfter=r,r=r._next;else{const c=this._getOrCreateRecordForKey(a,o);r=this._insertBeforeOrAppend(r,c)}}),r){r._prev&&(r._prev._next=null),this._removalsHead=r;for(let o=r;null!==o;o=o._nextRemoved)o===this._mapHead&&(this._mapHead=null),this._records.delete(o.key),o._nextRemoved=o._next,o.previousValue=o.currentValue,o.currentValue=null,o._prev=null,o._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,r){if(t){const o=t._prev;return r._next=t,r._prev=o,t._prev=r,o&&(o._next=r),t===this._mapHead&&(this._mapHead=r),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=r,r._prev=this._appendAfter):this._mapHead=r,this._appendAfter=r,null}_getOrCreateRecordForKey(t,r){if(this._records.has(t)){const a=this._records.get(t);this._maybeAddToChanges(a,r);const c=a._prev,p=a._next;return c&&(c._next=p),p&&(p._prev=c),a._next=null,a._prev=null,a}const o=new qM(t);return this._records.set(t,o),o.currentValue=r,this._addToAdditions(o),o}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,r){Object.is(r,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=r,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,r){t instanceof Map?t.forEach(r):Object.keys(t).forEach(o=>r(t[o],o))}}class qM{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function vD(){return new zI([new fD])}let zI=(()=>{var e;class t{constructor(o){this.factories=o}static create(o,a){if(null!=a){const c=a.factories.slice();o=o.concat(c)}return new t(o)}static extend(o){return{provide:t,useFactory:a=>t.create(o,a||vD()),deps:[[t,new Ln,new _n]]}}find(o){const a=this.factories.find(c=>c.supports(o));if(null!=a)return a;throw new Le(901,!1)}}return(e=t).\u0275prov=lr({token:e,providedIn:"root",factory:vD}),t})();function _D(){return new HI([new mD])}let HI=(()=>{var e;class t{constructor(o){this.factories=o}static create(o,a){if(a){const c=a.factories.slice();o=o.concat(c)}return new t(o)}static extend(o){return{provide:t,useFactory:a=>t.create(o,a||_D()),deps:[[t,new Ln,new _n]]}}find(o){const a=this.factories.find(c=>c.supports(o));if(a)return a;throw new Le(901,!1)}}return(e=t).\u0275prov=lr({token:e,providedIn:"root",factory:_D}),t})();const YM=oD(null,"core",[]);let ZM=(()=>{var e;class t{constructor(o){}}return(e=t).\u0275fac=function(o){return new(o||e)(U(Id))},e.\u0275mod=sl({type:e}),e.\u0275inj=wi({}),t})();function wP(e){return"boolean"==typeof e?e:null!=e&&"false"!==e}function RP(e){const t=ne(null);try{return e()}finally{ne(t)}}function kP(e,t){const r=Jn(e),o=t.elementInjector||Lo();return new bh(r).create(o,t.projectableNodes,t.hostElement,t.environmentInjector)}function FP(e){const t=Jn(e);if(!t)return null;const r=new bh(t);return{get selector(){return r.selector},get type(){return r.componentType},get inputs(){return r.inputs},get outputs(){return r.outputs},get ngContentSelectors(){return r.ngContentSelectors},get isStandalone(){return t.standalone},get isSignal(){return t.signals}}}},7440:(En,bt,B)=>{"use strict";B.d(bt,{MW:()=>Ue,Wp:()=>ct,XU:()=>Oe,gL:()=>Q});var g=B(2214),d=B(4438),ge=B(3586);class Oe{constructor(je){return je}}class Q{constructor(){return(0,g.Dk)()}}const Qe=new d.nKC("angularfire2._apps"),tt={provide:Oe,useFactory:function ne(Re){return Re&&1===Re.length?Re[0]:new Oe((0,g.Sx)())},deps:[[new d.Xx1,Qe]]},Te={provide:Q,deps:[[new d.Xx1,Qe]]};function _e(Re){return(je,Ke)=>{const Ct=Ke.get(d.Agw);(0,g.KO)("angularfire",ge.xv.full,"core"),(0,g.KO)("angularfire",ge.xv.full,"app"),(0,g.KO)("angular",d.xvI.full,Ct.toString());const kt=je.runOutsideAngular(()=>Re(Ke));return new Oe(kt)}}function Ue(Re,...je){return(0,d.EmA)([tt,Te,{provide:Qe,useFactory:_e(Re),multi:!0,deps:[d.SKi,d.zZn,ge.u0,...je]}])}const ct=(0,ge.S3)(g.Wp,!0)},8737:(En,bt,B)=>{"use strict";B.d(bt,{Nj:()=>qa,DF:()=>Al,eJ:()=>Hu,xI:()=>ag,_q:()=>Cl,x9:()=>qu,kQ:()=>Fc});var g=B(3586),d=B(4438),ge=B(7440),Oe=B(2214),Q=B(467),Ie=B(7852),ne=B(1076),Qe=B(8041),tt=B(1635),Te=B(1362);const Mt=function ct(){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."}},mt=new ne.FA("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."}),Re=new Qe.Vy("@firebase/auth");function Ke(E,...h){Re.logLevel<=Qe.$b.ERROR&&Re.error(`Auth (${Ie.MF}): ${E}`,...h)}function Ct(E,...h){throw en(E,...h)}function kt(E,...h){return en(E,...h)}function ze(E,h,v){const b=Object.assign(Object.assign({},Mt()),{[h]:v});return new ne.FA("auth","Firebase",b).create(h,{appName:E.name})}function Tt(E){return ze(E,"operation-not-supported-in-this-environment","Operations that alter the current user are not supported in conjunction with FirebaseServerApp")}function en(E,...h){if("string"!=typeof E){const v=h[0],b=[...h.slice(1)];return b[0]&&(b[0].appName=E.name),E._errorFactory.create(v,...b)}return mt.create(E,...h)}function Dt(E,h,...v){if(!E)throw en(h,...v)}function Be(E){const h="INTERNAL ASSERTION FAILED: "+E;throw Ke(h),new Error(h)}function Pt(E,h){E||Be(h)}function rt(){var E;return typeof self<"u"&&(null===(E=self.location)||void 0===E?void 0:E.href)||""}function z(){var E;return typeof self<"u"&&(null===(E=self.location)||void 0===E?void 0:E.protocol)||null}class he{constructor(h,v){this.shortDelay=h,this.longDelay=v,Pt(v>h,"Short delay should be less than long delay!"),this.isMobile=(0,ne.jZ)()||(0,ne.lV)()}get(){return function q(){return!(typeof navigator<"u"&&navigator&&"onLine"in navigator&&"boolean"==typeof navigator.onLine&&(function Pe(){return"http:"===z()||"https:"===z()}()||(0,ne.sr)()||"connection"in navigator))||navigator.onLine}()?this.isMobile?this.longDelay:this.shortDelay:Math.min(5e3,this.shortDelay)}}function ae(E,h){Pt(E.emulator,"Emulator should always be set here");const{url:v}=E.emulator;return h?`${v}${h.startsWith("/")?h.slice(1):h}`:v}class me{static initialize(h,v,b){this.fetchImpl=h,v&&(this.headersImpl=v),b&&(this.responseImpl=b)}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 Be("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 Be("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 Be("Could not find Response implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}}const Ae={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"},ut=new he(3e4,6e4);function Vt(E,h){return E.tenantId&&!h.tenantId?Object.assign(Object.assign({},h),{tenantId:E.tenantId}):h}function jt(E,h,v,b){return vn.apply(this,arguments)}function vn(){return(vn=(0,Q.A)(function*(E,h,v,b,K={}){return bn(E,K,(0,Q.A)(function*(){let pe={},nt={};b&&("GET"===h?nt=b:pe={body:JSON.stringify(b)});const xt=(0,ne.Am)(Object.assign({key:E.config.apiKey},nt)).slice(1),on=yield E._getAdditionalHeaders();return on["Content-Type"]="application/json",E.languageCode&&(on["X-Firebase-Locale"]=E.languageCode),me.fetch()(yn(E,E.config.apiHost,v,xt),Object.assign({method:h,headers:on,referrerPolicy:"no-referrer"},pe))}))})).apply(this,arguments)}function bn(E,h,v){return $n.apply(this,arguments)}function $n(){return($n=(0,Q.A)(function*(E,h,v){E._canInitEmulator=!1;const b=Object.assign(Object.assign({},Ae),h);try{const K=new Yn(E),pe=yield Promise.race([v(),K.promise]);K.clearNetworkTimeout();const nt=yield pe.json();if("needConfirmation"in nt)throw Le(E,"account-exists-with-different-credential",nt);if(pe.ok&&!("errorMessage"in nt))return nt;{const xt=pe.ok?nt.errorMessage:nt.error.message,[on,Dn]=xt.split(" : ");if("FEDERATED_USER_ID_ALREADY_LINKED"===on)throw Le(E,"credential-already-in-use",nt);if("EMAIL_EXISTS"===on)throw Le(E,"email-already-in-use",nt);if("USER_DISABLED"===on)throw Le(E,"user-disabled",nt);const Xn=b[on]||on.toLowerCase().replace(/[_\s]+/g,"-");if(Dn)throw ze(E,Xn,Dn);Ct(E,Xn)}}catch(K){if(K instanceof ne.g)throw K;Ct(E,"network-request-failed",{message:String(K)})}})).apply(this,arguments)}function qn(E,h,v,b){return er.apply(this,arguments)}function er(){return(er=(0,Q.A)(function*(E,h,v,b,K={}){const pe=yield jt(E,h,v,b,K);return"mfaPendingCredential"in pe&&Ct(E,"multi-factor-auth-required",{_serverResponse:pe}),pe})).apply(this,arguments)}function yn(E,h,v,b){const K=`${h}${v}?${b}`;return E.config.emulator?ae(E.config,K):`${E.config.apiScheme}://${K}`}function ir(E){switch(E){case"ENFORCE":return"ENFORCE";case"AUDIT":return"AUDIT";case"OFF":return"OFF";default:return"ENFORCEMENT_STATE_UNSPECIFIED"}}class Yn{constructor(h){this.auth=h,this.timer=null,this.promise=new Promise((v,b)=>{this.timer=setTimeout(()=>b(kt(this.auth,"network-request-failed")),ut.get())})}clearNetworkTimeout(){clearTimeout(this.timer)}}function Le(E,h,v){const b={appName:E.name};v.email&&(b.email=v.email),v.phoneNumber&&(b.phoneNumber=v.phoneNumber);const K=kt(E,h,b);return K.customData._tokenResponse=v,K}function Ot(E){return void 0!==E&&void 0!==E.enterprise}class Qt{constructor(h){if(this.siteKey="",this.recaptchaEnforcementState=[],void 0===h.recaptchaKey)throw new Error("recaptchaKey undefined");this.siteKey=h.recaptchaKey.split("/")[3],this.recaptchaEnforcementState=h.recaptchaEnforcementState}getProviderEnforcementState(h){if(!this.recaptchaEnforcementState||0===this.recaptchaEnforcementState.length)return null;for(const v of this.recaptchaEnforcementState)if(v.provider&&v.provider===h)return ir(v.enforcementState);return null}isProviderEnabled(h){return"ENFORCE"===this.getProviderEnforcementState(h)||"AUDIT"===this.getProviderEnforcementState(h)}}function gn(E,h){return mn.apply(this,arguments)}function mn(){return(mn=(0,Q.A)(function*(E,h){return jt(E,"GET","/v2/recaptchaConfig",Vt(E,h))})).apply(this,arguments)}function Wt(){return(Wt=(0,Q.A)(function*(E,h){return jt(E,"POST","/v1/accounts:delete",h)})).apply(this,arguments)}function Or(E,h){return Mr.apply(this,arguments)}function Mr(){return(Mr=(0,Q.A)(function*(E,h){return jt(E,"POST","/v1/accounts:lookup",h)})).apply(this,arguments)}function _r(E){if(E)try{const h=new Date(Number(E));if(!isNaN(h.getTime()))return h.toUTCString()}catch{}}function Zn(){return(Zn=(0,Q.A)(function*(E,h=!1){const v=(0,ne.Ku)(E),b=yield v.getIdToken(h),K=Sr(b);Dt(K&&K.exp&&K.auth_time&&K.iat,v.auth,"internal-error");const pe="object"==typeof K.firebase?K.firebase:void 0,nt=null==pe?void 0:pe.sign_in_provider;return{claims:K,token:b,authTime:_r(Rn(K.auth_time)),issuedAtTime:_r(Rn(K.iat)),expirationTime:_r(Rn(K.exp)),signInProvider:nt||null,signInSecondFactor:(null==pe?void 0:pe.sign_in_second_factor)||null}})).apply(this,arguments)}function Rn(E){return 1e3*Number(E)}function Sr(E){const[h,v,b]=E.split(".");if(void 0===h||void 0===v||void 0===b)return Ke("JWT malformed, contained fewer than 3 sections"),null;try{const K=(0,ne.u)(v);return K?JSON.parse(K):(Ke("Failed to decode base64 JWT payload"),null)}catch(K){return Ke("Caught error parsing JWT payload as JSON",null==K?void 0:K.toString()),null}}function tr(E){const h=Sr(E);return Dt(h,"internal-error"),Dt(typeof h.exp<"u","internal-error"),Dt(typeof h.iat<"u","internal-error"),Number(h.exp)-Number(h.iat)}function Ir(E,h){return Ri.apply(this,arguments)}function Ri(){return(Ri=(0,Q.A)(function*(E,h,v=!1){if(v)return h;try{return yield h}catch(b){throw b instanceof ne.g&&function Qr({code:E}){return"auth/user-disabled"===E||"auth/user-token-expired"===E}(b)&&E.auth.currentUser===E&&(yield E.auth.signOut()),b}})).apply(this,arguments)}class Jr{constructor(h){this.user=h,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(h){var v;if(h){const b=this.errorBackoff;return this.errorBackoff=Math.min(2*this.errorBackoff,96e4),b}{this.errorBackoff=3e4;const K=(null!==(v=this.user.stsTokenManager.expirationTime)&&void 0!==v?v:0)-Date.now()-3e5;return Math.max(0,K)}}schedule(h=!1){var v=this;if(!this.isRunning)return;const b=this.getInterval(h);this.timerId=setTimeout((0,Q.A)(function*(){yield v.iteration()}),b)}iteration(){var h=this;return(0,Q.A)(function*(){try{yield h.user.getIdToken(!0)}catch(v){return void("auth/network-request-failed"===(null==v?void 0:v.code)&&h.schedule(!0))}h.schedule()})()}}class oe{constructor(h,v){this.createdAt=h,this.lastLoginAt=v,this._initializeTime()}_initializeTime(){this.lastSignInTime=_r(this.lastLoginAt),this.creationTime=_r(this.createdAt)}_copy(h){this.createdAt=h.createdAt,this.lastLoginAt=h.lastLoginAt,this._initializeTime()}toJSON(){return{createdAt:this.createdAt,lastLoginAt:this.lastLoginAt}}}function He(E){return dt.apply(this,arguments)}function dt(){return(dt=(0,Q.A)(function*(E){var h;const v=E.auth,b=yield E.getIdToken(),K=yield Ir(E,Or(v,{idToken:b}));Dt(null==K?void 0:K.users.length,v,"internal-error");const pe=K.users[0];E._notifyReloadListener(pe);const nt=null!==(h=pe.providerUserInfo)&&void 0!==h&&h.length?Me(pe.providerUserInfo):[],xt=function de(E,h){return[...E.filter(b=>!h.some(K=>K.providerId===b.providerId)),...h]}(E.providerData,nt),Xn=!!E.isAnonymous&&!(E.email&&pe.passwordHash||null!=xt&&xt.length),jr={uid:pe.localId,displayName:pe.displayName||null,photoURL:pe.photoUrl||null,email:pe.email||null,emailVerified:pe.emailVerified||!1,phoneNumber:pe.phoneNumber||null,tenantId:pe.tenantId||null,providerData:xt,metadata:new oe(pe.createdAt,pe.lastLoginAt),isAnonymous:Xn};Object.assign(E,jr)})).apply(this,arguments)}function re(){return(re=(0,Q.A)(function*(E){const h=(0,ne.Ku)(E);yield He(h),yield h.auth._persistUserIfCurrent(h),h.auth._notifyListenersIfCurrent(h)})).apply(this,arguments)}function Me(E){return E.map(h=>{var{providerId:v}=h,b=(0,tt.Tt)(h,["providerId"]);return{providerId:v,uid:b.rawId||"",displayName:b.displayName||null,email:b.email||null,phoneNumber:b.phoneNumber||null,photoURL:b.photoUrl||null}})}function it(){return(it=(0,Q.A)(function*(E,h){const v=yield bn(E,{},(0,Q.A)(function*(){const b=(0,ne.Am)({grant_type:"refresh_token",refresh_token:h}).slice(1),{tokenApiHost:K,apiKey:pe}=E.config,nt=yn(E,K,"/v1/token",`key=${pe}`),xt=yield E._getAdditionalHeaders();return xt["Content-Type"]="application/x-www-form-urlencoded",me.fetch()(nt,{method:"POST",headers:xt,body:b})}));return{accessToken:v.access_token,expiresIn:v.expires_in,refreshToken:v.refresh_token}})).apply(this,arguments)}function Mn(){return(Mn=(0,Q.A)(function*(E,h){return jt(E,"POST","/v2/accounts:revokeToken",Vt(E,h))})).apply(this,arguments)}class Kn{constructor(){this.refreshToken=null,this.accessToken=null,this.expirationTime=null}get isExpired(){return!this.expirationTime||Date.now()>this.expirationTime-3e4}updateFromServerResponse(h){Dt(h.idToken,"internal-error"),Dt(typeof h.idToken<"u","internal-error"),Dt(typeof h.refreshToken<"u","internal-error");const v="expiresIn"in h&&typeof h.expiresIn<"u"?Number(h.expiresIn):tr(h.idToken);this.updateTokensAndExpiration(h.idToken,h.refreshToken,v)}updateFromIdToken(h){Dt(0!==h.length,"internal-error");const v=tr(h);this.updateTokensAndExpiration(h,null,v)}getToken(h,v=!1){var b=this;return(0,Q.A)(function*(){return v||!b.accessToken||b.isExpired?(Dt(b.refreshToken,h,"user-token-expired"),b.refreshToken?(yield b.refresh(h,b.refreshToken),b.accessToken):null):b.accessToken})()}clearRefreshToken(){this.refreshToken=null}refresh(h,v){var b=this;return(0,Q.A)(function*(){const{accessToken:K,refreshToken:pe,expiresIn:nt}=yield function Et(E,h){return it.apply(this,arguments)}(h,v);b.updateTokensAndExpiration(K,pe,Number(nt))})()}updateTokensAndExpiration(h,v,b){this.refreshToken=v||null,this.accessToken=h||null,this.expirationTime=Date.now()+1e3*b}static fromJSON(h,v){const{refreshToken:b,accessToken:K,expirationTime:pe}=v,nt=new Kn;return b&&(Dt("string"==typeof b,"internal-error",{appName:h}),nt.refreshToken=b),K&&(Dt("string"==typeof K,"internal-error",{appName:h}),nt.accessToken=K),pe&&(Dt("number"==typeof pe,"internal-error",{appName:h}),nt.expirationTime=pe),nt}toJSON(){return{refreshToken:this.refreshToken,accessToken:this.accessToken,expirationTime:this.expirationTime}}_assign(h){this.accessToken=h.accessToken,this.refreshToken=h.refreshToken,this.expirationTime=h.expirationTime}_clone(){return Object.assign(new Kn,this.toJSON())}_performRefresh(){return Be("not implemented")}}function gr(E,h){Dt("string"==typeof E||typeof E>"u","internal-error",{appName:h})}class ur{constructor(h){var{uid:v,auth:b,stsTokenManager:K}=h,pe=(0,tt.Tt)(h,["uid","auth","stsTokenManager"]);this.providerId="firebase",this.proactiveRefresh=new Jr(this),this.reloadUserInfo=null,this.reloadListener=null,this.uid=v,this.auth=b,this.stsTokenManager=K,this.accessToken=K.accessToken,this.displayName=pe.displayName||null,this.email=pe.email||null,this.emailVerified=pe.emailVerified||!1,this.phoneNumber=pe.phoneNumber||null,this.photoURL=pe.photoURL||null,this.isAnonymous=pe.isAnonymous||!1,this.tenantId=pe.tenantId||null,this.providerData=pe.providerData?[...pe.providerData]:[],this.metadata=new oe(pe.createdAt||void 0,pe.lastLoginAt||void 0)}getIdToken(h){var v=this;return(0,Q.A)(function*(){const b=yield Ir(v,v.stsTokenManager.getToken(v.auth,h));return Dt(b,v.auth,"internal-error"),v.accessToken!==b&&(v.accessToken=b,yield v.auth._persistUserIfCurrent(v),v.auth._notifyListenersIfCurrent(v)),b})()}getIdTokenResult(h){return function ni(E){return Zn.apply(this,arguments)}(this,h)}reload(){return function Xe(E){return re.apply(this,arguments)}(this)}_assign(h){this!==h&&(Dt(this.uid===h.uid,this.auth,"internal-error"),this.displayName=h.displayName,this.photoURL=h.photoURL,this.email=h.email,this.emailVerified=h.emailVerified,this.phoneNumber=h.phoneNumber,this.isAnonymous=h.isAnonymous,this.tenantId=h.tenantId,this.providerData=h.providerData.map(v=>Object.assign({},v)),this.metadata._copy(h.metadata),this.stsTokenManager._assign(h.stsTokenManager))}_clone(h){const v=new ur(Object.assign(Object.assign({},this),{auth:h,stsTokenManager:this.stsTokenManager._clone()}));return v.metadata._copy(this.metadata),v}_onReload(h){Dt(!this.reloadListener,this.auth,"internal-error"),this.reloadListener=h,this.reloadUserInfo&&(this._notifyReloadListener(this.reloadUserInfo),this.reloadUserInfo=null)}_notifyReloadListener(h){this.reloadListener?this.reloadListener(h):this.reloadUserInfo=h}_startProactiveRefresh(){this.proactiveRefresh._start()}_stopProactiveRefresh(){this.proactiveRefresh._stop()}_updateTokensIfNecessary(h,v=!1){var b=this;return(0,Q.A)(function*(){let K=!1;h.idToken&&h.idToken!==b.stsTokenManager.accessToken&&(b.stsTokenManager.updateFromServerResponse(h),K=!0),v&&(yield He(b)),yield b.auth._persistUserIfCurrent(b),K&&b.auth._notifyListenersIfCurrent(b)})()}delete(){var h=this;return(0,Q.A)(function*(){if((0,Ie.xZ)(h.auth.app))return Promise.reject(Tt(h.auth));const v=yield h.getIdToken();return yield Ir(h,function Jt(E,h){return Wt.apply(this,arguments)}(h.auth,{idToken:v})),h.stsTokenManager.clearRefreshToken(),h.auth.signOut()})()}toJSON(){return Object.assign(Object.assign({uid:this.uid,email:this.email||void 0,emailVerified:this.emailVerified,displayName:this.displayName||void 0,isAnonymous:this.isAnonymous,photoURL:this.photoURL||void 0,phoneNumber:this.phoneNumber||void 0,tenantId:this.tenantId||void 0,providerData:this.providerData.map(h=>Object.assign({},h)),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(h,v){var b,K,pe,nt,xt,on,Dn,Xn;const jr=null!==(b=v.displayName)&&void 0!==b?b:void 0,Oo=null!==(K=v.email)&&void 0!==K?K:void 0,Zi=null!==(pe=v.phoneNumber)&&void 0!==pe?pe:void 0,sa=null!==(nt=v.photoURL)&&void 0!==nt?nt:void 0,Wd=null!==(xt=v.tenantId)&&void 0!==xt?xt:void 0,ou=null!==(on=v._redirectEventId)&&void 0!==on?on:void 0,Kd=null!==(Dn=v.createdAt)&&void 0!==Dn?Dn:void 0,Yu=null!==(Xn=v.lastLoginAt)&&void 0!==Xn?Xn:void 0,{uid:Zu,emailVerified:Ju,isAnonymous:Af,providerData:su,stsTokenManager:Cf}=v;Dt(Zu&&Cf,h,"internal-error");const qd=Kn.fromJSON(this.name,Cf);Dt("string"==typeof Zu,h,"internal-error"),gr(jr,h.name),gr(Oo,h.name),Dt("boolean"==typeof Ju,h,"internal-error"),Dt("boolean"==typeof Af,h,"internal-error"),gr(Zi,h.name),gr(sa,h.name),gr(Wd,h.name),gr(ou,h.name),gr(Kd,h.name),gr(Yu,h.name);const Xd=new ur({uid:Zu,auth:h,email:Oo,emailVerified:Ju,displayName:jr,isAnonymous:Af,photoURL:sa,phoneNumber:Zi,tenantId:Wd,stsTokenManager:qd,createdAt:Kd,lastLoginAt:Yu});return su&&Array.isArray(su)&&(Xd.providerData=su.map(Qd=>Object.assign({},Qd))),ou&&(Xd._redirectEventId=ou),Xd}static _fromIdTokenResponse(h,v,b=!1){return(0,Q.A)(function*(){const K=new Kn;K.updateFromServerResponse(v);const pe=new ur({uid:v.localId,auth:h,stsTokenManager:K,isAnonymous:b});return yield He(pe),pe})()}static _fromGetAccountInfoResponse(h,v,b){return(0,Q.A)(function*(){const K=v.users[0];Dt(void 0!==K.localId,"internal-error");const pe=void 0!==K.providerUserInfo?Me(K.providerUserInfo):[],nt=!(K.email&&K.passwordHash||null!=pe&&pe.length),xt=new Kn;xt.updateFromIdToken(b);const on=new ur({uid:K.localId,auth:h,stsTokenManager:xt,isAnonymous:nt}),Dn={uid:K.localId,displayName:K.displayName||null,photoURL:K.photoUrl||null,email:K.email||null,emailVerified:K.emailVerified||!1,phoneNumber:K.phoneNumber||null,tenantId:K.tenantId||null,providerData:pe,metadata:new oe(K.createdAt,K.lastLoginAt),isAnonymous:!(K.email&&K.passwordHash||null!=pe&&pe.length)};return Object.assign(on,Dn),on})()}}const ri=new Map;function xn(E){Pt(E instanceof Function,"Expected a class definition");let h=ri.get(E);return h?(Pt(h instanceof E,"Instance stored in cache mismatched with class"),h):(h=new E,ri.set(E,h),h)}const yr=(()=>{class E{constructor(){this.type="NONE",this.storage={}}_isAvailable(){return(0,Q.A)(function*(){return!0})()}_set(v,b){var K=this;return(0,Q.A)(function*(){K.storage[v]=b})()}_get(v){var b=this;return(0,Q.A)(function*(){const K=b.storage[v];return void 0===K?null:K})()}_remove(v){var b=this;return(0,Q.A)(function*(){delete b.storage[v]})()}_addListener(v,b){}_removeListener(v,b){}}return E.type="NONE",E})();function Ei(E,h,v){return`firebase:${E}:${h}:${v}`}class ii{constructor(h,v,b){this.persistence=h,this.auth=v,this.userKey=b;const{config:K,name:pe}=this.auth;this.fullUserKey=Ei(this.userKey,K.apiKey,pe),this.fullPersistenceKey=Ei("persistence",K.apiKey,pe),this.boundEventHandler=v._onStorageEvent.bind(v),this.persistence._addListener(this.fullUserKey,this.boundEventHandler)}setCurrentUser(h){return this.persistence._set(this.fullUserKey,h.toJSON())}getCurrentUser(){var h=this;return(0,Q.A)(function*(){const v=yield h.persistence._get(h.fullUserKey);return v?ur._fromJSON(h.auth,v):null})()}removeCurrentUser(){return this.persistence._remove(this.fullUserKey)}savePersistenceForRedirect(){return this.persistence._set(this.fullPersistenceKey,this.persistence.type)}setPersistence(h){var v=this;return(0,Q.A)(function*(){if(v.persistence===h)return;const b=yield v.getCurrentUser();return yield v.removeCurrentUser(),v.persistence=h,b?v.setCurrentUser(b):void 0})()}delete(){this.persistence._removeListener(this.fullUserKey,this.boundEventHandler)}static create(h,v,b="authUser"){return(0,Q.A)(function*(){if(!v.length)return new ii(xn(yr),h,b);const K=(yield Promise.all(v.map(function(){var Dn=(0,Q.A)(function*(Xn){if(yield Xn._isAvailable())return Xn});return function(Xn){return Dn.apply(this,arguments)}}()))).filter(Dn=>Dn);let pe=K[0]||xn(yr);const nt=Ei(b,h.config.apiKey,h.name);let xt=null;for(const Dn of v)try{const Xn=yield Dn._get(nt);if(Xn){const jr=ur._fromJSON(h,Xn);Dn!==pe&&(xt=jr),pe=Dn;break}}catch{}const on=K.filter(Dn=>Dn._shouldAllowMigration);return pe._shouldAllowMigration&&on.length?(pe=on[0],xt&&(yield pe._set(nt,xt.toJSON())),yield Promise.all(v.map(function(){var Dn=(0,Q.A)(function*(Xn){if(Xn!==pe)try{yield Xn._remove(nt)}catch{}});return function(Xn){return Dn.apply(this,arguments)}}())),new ii(pe,h,b)):new ii(pe,h,b)})()}}function pi(E){const h=E.toLowerCase();if(h.includes("opera/")||h.includes("opr/")||h.includes("opios/"))return"Opera";if(wi(h))return"IEMobile";if(h.includes("msie")||h.includes("trident/"))return"IE";if(h.includes("edge/"))return"Edge";if(Li(h))return"Firefox";if(h.includes("silk/"))return"Silk";if(St(h))return"Blackberry";if(lt(h))return"Webos";if(lr(h))return"Safari";if((h.includes("chrome/")||Xi(h))&&!h.includes("edge/"))return"Chrome";if(gi(h))return"Android";{const b=E.match(/([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/);if(2===(null==b?void 0:b.length))return b[1]}return"Other"}function Li(E=(0,ne.ZQ)()){return/firefox\//i.test(E)}function lr(E=(0,ne.ZQ)()){const h=E.toLowerCase();return h.includes("safari/")&&!h.includes("chrome/")&&!h.includes("crios/")&&!h.includes("android")}function Xi(E=(0,ne.ZQ)()){return/crios\//i.test(E)}function wi(E=(0,ne.ZQ)()){return/iemobile/i.test(E)}function gi(E=(0,ne.ZQ)()){return/android/i.test(E)}function St(E=(0,ne.ZQ)()){return/blackberry/i.test(E)}function lt(E=(0,ne.ZQ)()){return/webos/i.test(E)}function $t(E=(0,ne.ZQ)()){return/iphone|ipad|ipod/i.test(E)||/macintosh/i.test(E)&&/mobile/i.test(E)}function Z(E=(0,ne.ZQ)()){return $t(E)||gi(E)||lt(E)||St(E)||/windows phone/i.test(E)||wi(E)}function X(E,h=[]){let v;switch(E){case"Browser":v=pi((0,ne.ZQ)());break;case"Worker":v=`${pi((0,ne.ZQ)())}-${E}`;break;default:v=E}const b=h.length?h.join(","):"FirebaseCore-web";return`${v}/JsCore/${Ie.MF}/${b}`}class we{constructor(h){this.auth=h,this.queue=[]}pushCallback(h,v){const b=pe=>new Promise((nt,xt)=>{try{nt(h(pe))}catch(on){xt(on)}});b.onAbort=v,this.queue.push(b);const K=this.queue.length-1;return()=>{this.queue[K]=()=>Promise.resolve()}}runMiddleware(h){var v=this;return(0,Q.A)(function*(){if(v.auth.currentUser===h)return;const b=[];try{for(const K of v.queue)yield K(h),K.onAbort&&b.push(K.onAbort)}catch(K){b.reverse();for(const pe of b)try{pe()}catch{}throw v.auth._errorFactory.create("login-blocked",{originalMessage:null==K?void 0:K.message})}})()}}function Kt(){return(Kt=(0,Q.A)(function*(E,h={}){return jt(E,"GET","/v2/passwordPolicy",Vt(E,h))})).apply(this,arguments)}class Pn{constructor(h){var v,b,K,pe;const nt=h.customStrengthOptions;this.customStrengthOptions={},this.customStrengthOptions.minPasswordLength=null!==(v=nt.minPasswordLength)&&void 0!==v?v:6,nt.maxPasswordLength&&(this.customStrengthOptions.maxPasswordLength=nt.maxPasswordLength),void 0!==nt.containsLowercaseCharacter&&(this.customStrengthOptions.containsLowercaseLetter=nt.containsLowercaseCharacter),void 0!==nt.containsUppercaseCharacter&&(this.customStrengthOptions.containsUppercaseLetter=nt.containsUppercaseCharacter),void 0!==nt.containsNumericCharacter&&(this.customStrengthOptions.containsNumericCharacter=nt.containsNumericCharacter),void 0!==nt.containsNonAlphanumericCharacter&&(this.customStrengthOptions.containsNonAlphanumericCharacter=nt.containsNonAlphanumericCharacter),this.enforcementState=h.enforcementState,"ENFORCEMENT_STATE_UNSPECIFIED"===this.enforcementState&&(this.enforcementState="OFF"),this.allowedNonAlphanumericCharacters=null!==(K=null===(b=h.allowedNonAlphanumericCharacters)||void 0===b?void 0:b.join(""))&&void 0!==K?K:"",this.forceUpgradeOnSignin=null!==(pe=h.forceUpgradeOnSignin)&&void 0!==pe&&pe,this.schemaVersion=h.schemaVersion}validatePassword(h){var v,b,K,pe,nt,xt;const on={isValid:!0,passwordPolicy:this};return this.validatePasswordLengthOptions(h,on),this.validatePasswordCharacterOptions(h,on),on.isValid&&(on.isValid=null===(v=on.meetsMinPasswordLength)||void 0===v||v),on.isValid&&(on.isValid=null===(b=on.meetsMaxPasswordLength)||void 0===b||b),on.isValid&&(on.isValid=null===(K=on.containsLowercaseLetter)||void 0===K||K),on.isValid&&(on.isValid=null===(pe=on.containsUppercaseLetter)||void 0===pe||pe),on.isValid&&(on.isValid=null===(nt=on.containsNumericCharacter)||void 0===nt||nt),on.isValid&&(on.isValid=null===(xt=on.containsNonAlphanumericCharacter)||void 0===xt||xt),on}validatePasswordLengthOptions(h,v){const b=this.customStrengthOptions.minPasswordLength,K=this.customStrengthOptions.maxPasswordLength;b&&(v.meetsMinPasswordLength=h.length>=b),K&&(v.meetsMaxPasswordLength=h.length<=K)}validatePasswordCharacterOptions(h,v){let b;this.updatePasswordCharacterOptionsStatuses(v,!1,!1,!1,!1);for(let K=0;K="a"&&b<="z",b>="A"&&b<="Z",b>="0"&&b<="9",this.allowedNonAlphanumericCharacters.includes(b))}updatePasswordCharacterOptionsStatuses(h,v,b,K,pe){this.customStrengthOptions.containsLowercaseLetter&&(h.containsLowercaseLetter||(h.containsLowercaseLetter=v)),this.customStrengthOptions.containsUppercaseLetter&&(h.containsUppercaseLetter||(h.containsUppercaseLetter=b)),this.customStrengthOptions.containsNumericCharacter&&(h.containsNumericCharacter||(h.containsNumericCharacter=K)),this.customStrengthOptions.containsNonAlphanumericCharacter&&(h.containsNonAlphanumericCharacter||(h.containsNonAlphanumericCharacter=pe))}}class Cr{constructor(h,v,b,K){this.app=h,this.heartbeatServiceProvider=v,this.appCheckServiceProvider=b,this.config=K,this.currentUser=null,this.emulatorConfig=null,this.operations=Promise.resolve(),this.authStateSubscription=new Ui(this),this.idTokenSubscription=new Ui(this),this.beforeStateQueue=new we(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=mt,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=h.name,this.clientVersion=K.sdkClientVersion}_initializeWithPersistence(h,v){var b=this;return v&&(this._popupRedirectResolver=xn(v)),this._initializationPromise=this.queue((0,Q.A)(function*(){var K,pe;if(!b._deleted&&(b.persistenceManager=yield ii.create(b,h),!b._deleted)){if(null!==(K=b._popupRedirectResolver)&&void 0!==K&&K._shouldInitProactively)try{yield b._popupRedirectResolver._initialize(b)}catch{}yield b.initializeCurrentUser(v),b.lastNotifiedUid=(null===(pe=b.currentUser)||void 0===pe?void 0:pe.uid)||null,!b._deleted&&(b._isInitialized=!0)}})),this._initializationPromise}_onStorageEvent(){var h=this;return(0,Q.A)(function*(){if(h._deleted)return;const v=yield h.assertedPersistence.getCurrentUser();if(h.currentUser||v){if(h.currentUser&&v&&h.currentUser.uid===v.uid)return h._currentUser._assign(v),void(yield h.currentUser.getIdToken());yield h._updateCurrentUser(v,!0)}})()}initializeCurrentUserFromIdToken(h){var v=this;return(0,Q.A)(function*(){try{const b=yield Or(v,{idToken:h}),K=yield ur._fromGetAccountInfoResponse(v,b,h);yield v.directlySetCurrentUser(K)}catch(b){console.warn("FirebaseServerApp could not login user with provided authIdToken: ",b),yield v.directlySetCurrentUser(null)}})()}initializeCurrentUser(h){var v=this;return(0,Q.A)(function*(){var b;if((0,Ie.xZ)(v.app)){const xt=v.app.settings.authIdToken;return xt?new Promise(on=>{setTimeout(()=>v.initializeCurrentUserFromIdToken(xt).then(on,on))}):v.directlySetCurrentUser(null)}const K=yield v.assertedPersistence.getCurrentUser();let pe=K,nt=!1;if(h&&v.config.authDomain){yield v.getOrInitRedirectPersistenceManager();const xt=null===(b=v.redirectUser)||void 0===b?void 0:b._redirectEventId,on=null==pe?void 0:pe._redirectEventId,Dn=yield v.tryRedirectSignIn(h);(!xt||xt===on)&&null!=Dn&&Dn.user&&(pe=Dn.user,nt=!0)}if(!pe)return v.directlySetCurrentUser(null);if(!pe._redirectEventId){if(nt)try{yield v.beforeStateQueue.runMiddleware(pe)}catch(xt){pe=K,v._popupRedirectResolver._overrideRedirectResult(v,()=>Promise.reject(xt))}return pe?v.reloadAndSetCurrentUserOrClear(pe):v.directlySetCurrentUser(null)}return Dt(v._popupRedirectResolver,v,"argument-error"),yield v.getOrInitRedirectPersistenceManager(),v.redirectUser&&v.redirectUser._redirectEventId===pe._redirectEventId?v.directlySetCurrentUser(pe):v.reloadAndSetCurrentUserOrClear(pe)})()}tryRedirectSignIn(h){var v=this;return(0,Q.A)(function*(){let b=null;try{b=yield v._popupRedirectResolver._completeRedirectFn(v,h,!0)}catch{yield v._setRedirectUser(null)}return b})()}reloadAndSetCurrentUserOrClear(h){var v=this;return(0,Q.A)(function*(){try{yield He(h)}catch(b){if("auth/network-request-failed"!==(null==b?void 0:b.code))return v.directlySetCurrentUser(null)}return v.directlySetCurrentUser(h)})()}useDeviceLanguage(){this.languageCode=function ie(){if(typeof navigator>"u")return null;const E=navigator;return E.languages&&E.languages[0]||E.language||null}()}_delete(){var h=this;return(0,Q.A)(function*(){h._deleted=!0})()}updateCurrentUser(h){var v=this;return(0,Q.A)(function*(){if((0,Ie.xZ)(v.app))return Promise.reject(Tt(v));const b=h?(0,ne.Ku)(h):null;return b&&Dt(b.auth.config.apiKey===v.config.apiKey,v,"invalid-user-token"),v._updateCurrentUser(b&&b._clone(v))})()}_updateCurrentUser(h,v=!1){var b=this;return(0,Q.A)(function*(){if(!b._deleted)return h&&Dt(b.tenantId===h.tenantId,b,"tenant-id-mismatch"),v||(yield b.beforeStateQueue.runMiddleware(h)),b.queue((0,Q.A)(function*(){yield b.directlySetCurrentUser(h),b.notifyAuthListeners()}))})()}signOut(){var h=this;return(0,Q.A)(function*(){return(0,Ie.xZ)(h.app)?Promise.reject(Tt(h)):(yield h.beforeStateQueue.runMiddleware(null),(h.redirectPersistenceManager||h._popupRedirectResolver)&&(yield h._setRedirectUser(null)),h._updateCurrentUser(null,!0))})()}setPersistence(h){var v=this;return(0,Ie.xZ)(this.app)?Promise.reject(Tt(this)):this.queue((0,Q.A)(function*(){yield v.assertedPersistence.setPersistence(xn(h))}))}_getRecaptchaConfig(){return null==this.tenantId?this._agentRecaptchaConfig:this._tenantRecaptchaConfigs[this.tenantId]}validatePassword(h){var v=this;return(0,Q.A)(function*(){v._getPasswordPolicyInternal()||(yield v._updatePasswordPolicy());const b=v._getPasswordPolicyInternal();return b.schemaVersion!==v.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION?Promise.reject(v._errorFactory.create("unsupported-password-policy-schema-version",{})):b.validatePassword(h)})()}_getPasswordPolicyInternal(){return null===this.tenantId?this._projectPasswordPolicy:this._tenantPasswordPolicies[this.tenantId]}_updatePasswordPolicy(){var h=this;return(0,Q.A)(function*(){const v=yield function ot(E){return Kt.apply(this,arguments)}(h),b=new Pn(v);null===h.tenantId?h._projectPasswordPolicy=b:h._tenantPasswordPolicies[h.tenantId]=b})()}_getPersistence(){return this.assertedPersistence.persistence.type}_updateErrorMap(h){this._errorFactory=new ne.FA("auth","Firebase",h())}onAuthStateChanged(h,v,b){return this.registerStateListener(this.authStateSubscription,h,v,b)}beforeAuthStateChanged(h,v){return this.beforeStateQueue.pushCallback(h,v)}onIdTokenChanged(h,v,b){return this.registerStateListener(this.idTokenSubscription,h,v,b)}authStateReady(){return new Promise((h,v)=>{if(this.currentUser)h();else{const b=this.onAuthStateChanged(()=>{b(),h()},v)}})}revokeAccessToken(h){var v=this;return(0,Q.A)(function*(){if(v.currentUser){const b=yield v.currentUser.getIdToken(),K={providerId:"apple.com",tokenType:"ACCESS_TOKEN",token:h,idToken:b};null!=v.tenantId&&(K.tenantId=v.tenantId),yield function hn(E,h){return Mn.apply(this,arguments)}(v,K)}})()}toJSON(){var h;return{apiKey:this.config.apiKey,authDomain:this.config.authDomain,appName:this.name,currentUser:null===(h=this._currentUser)||void 0===h?void 0:h.toJSON()}}_setRedirectUser(h,v){var b=this;return(0,Q.A)(function*(){const K=yield b.getOrInitRedirectPersistenceManager(v);return null===h?K.removeCurrentUser():K.setCurrentUser(h)})()}getOrInitRedirectPersistenceManager(h){var v=this;return(0,Q.A)(function*(){if(!v.redirectPersistenceManager){const b=h&&xn(h)||v._popupRedirectResolver;Dt(b,v,"argument-error"),v.redirectPersistenceManager=yield ii.create(v,[xn(b._redirectPersistence)],"redirectUser"),v.redirectUser=yield v.redirectPersistenceManager.getCurrentUser()}return v.redirectPersistenceManager})()}_redirectUserForId(h){var v=this;return(0,Q.A)(function*(){var b,K;return v._isInitialized&&(yield v.queue((0,Q.A)(function*(){}))),(null===(b=v._currentUser)||void 0===b?void 0:b._redirectEventId)===h?v._currentUser:(null===(K=v.redirectUser)||void 0===K?void 0:K._redirectEventId)===h?v.redirectUser:null})()}_persistUserIfCurrent(h){var v=this;return(0,Q.A)(function*(){if(h===v.currentUser)return v.queue((0,Q.A)(function*(){return v.directlySetCurrentUser(h)}))})()}_notifyListenersIfCurrent(h){h===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 h,v;if(!this._isInitialized)return;this.idTokenSubscription.next(this.currentUser);const b=null!==(v=null===(h=this.currentUser)||void 0===h?void 0:h.uid)&&void 0!==v?v:null;this.lastNotifiedUid!==b&&(this.lastNotifiedUid=b,this.authStateSubscription.next(this.currentUser))}registerStateListener(h,v,b,K){if(this._deleted)return()=>{};const pe="function"==typeof v?v:v.next.bind(v);let nt=!1;const xt=this._isInitialized?Promise.resolve():this._initializationPromise;if(Dt(xt,this,"internal-error"),xt.then(()=>{nt||pe(this.currentUser)}),"function"==typeof v){const on=h.addObserver(v,b,K);return()=>{nt=!0,on()}}{const on=h.addObserver(v);return()=>{nt=!0,on()}}}directlySetCurrentUser(h){var v=this;return(0,Q.A)(function*(){v.currentUser&&v.currentUser!==h&&v._currentUser._stopProactiveRefresh(),h&&v.isProactiveRefreshEnabled&&h._startProactiveRefresh(),v.currentUser=h,h?yield v.assertedPersistence.setCurrentUser(h):yield v.assertedPersistence.removeCurrentUser()})()}queue(h){return this.operations=this.operations.then(h,h),this.operations}get assertedPersistence(){return Dt(this.persistenceManager,this,"internal-error"),this.persistenceManager}_logFramework(h){!h||this.frameworks.includes(h)||(this.frameworks.push(h),this.frameworks.sort(),this.clientVersion=X(this.config.clientPlatform,this._getFrameworks()))}_getFrameworks(){return this.frameworks}_getAdditionalHeaders(){var h=this;return(0,Q.A)(function*(){var v;const b={"X-Client-Version":h.clientVersion};h.app.options.appId&&(b["X-Firebase-gmpid"]=h.app.options.appId);const K=yield null===(v=h.heartbeatServiceProvider.getImmediate({optional:!0}))||void 0===v?void 0:v.getHeartbeatsHeader();K&&(b["X-Firebase-Client"]=K);const pe=yield h._getAppCheckToken();return pe&&(b["X-Firebase-AppCheck"]=pe),b})()}_getAppCheckToken(){var h=this;return(0,Q.A)(function*(){var v;const b=yield null===(v=h.appCheckServiceProvider.getImmediate({optional:!0}))||void 0===v?void 0:v.getToken();return null!=b&&b.error&&function je(E,...h){Re.logLevel<=Qe.$b.WARN&&Re.warn(`Auth (${Ie.MF}): ${E}`,...h)}(`Error while retrieving App Check token: ${b.error}`),null==b?void 0:b.token})()}}function Hn(E){return(0,ne.Ku)(E)}class Ui{constructor(h){this.auth=h,this.observer=null,this.addObserver=(0,ne.tD)(v=>this.observer=v)}get next(){return Dt(this.observer,this.auth,"internal-error"),this.observer.next.bind(this.observer)}}let Ai={loadJS:()=>(0,Q.A)(function*(){throw new Error("Unable to load external scripts")})(),recaptchaV2Script:"",recaptchaEnterpriseScript:"",gapiScript:""};function xr(E){return Ai.loadJS(E)}function $i(E){return`__${E}${Math.floor(1e6*Math.random())}`}class oi{constructor(h){this.type="recaptcha-enterprise",this.auth=Hn(h)}verify(h="verify",v=!1){var b=this;return(0,Q.A)(function*(){function pe(){return pe=(0,Q.A)(function*(xt){if(!v){if(null==xt.tenantId&&null!=xt._agentRecaptchaConfig)return xt._agentRecaptchaConfig.siteKey;if(null!=xt.tenantId&&void 0!==xt._tenantRecaptchaConfigs[xt.tenantId])return xt._tenantRecaptchaConfigs[xt.tenantId].siteKey}return new Promise(function(){var on=(0,Q.A)(function*(Dn,Xn){gn(xt,{clientType:"CLIENT_TYPE_WEB",version:"RECAPTCHA_ENTERPRISE"}).then(jr=>{if(void 0!==jr.recaptchaKey){const Oo=new Qt(jr);return null==xt.tenantId?xt._agentRecaptchaConfig=Oo:xt._tenantRecaptchaConfigs[xt.tenantId]=Oo,Dn(Oo.siteKey)}Xn(new Error("recaptcha Enterprise site key undefined"))}).catch(jr=>{Xn(jr)})});return function(Dn,Xn){return on.apply(this,arguments)}}())}),pe.apply(this,arguments)}function nt(xt,on,Dn){const Xn=window.grecaptcha;Ot(Xn)?Xn.enterprise.ready(()=>{Xn.enterprise.execute(xt,{action:h}).then(jr=>{on(jr)}).catch(()=>{on("NO_RECAPTCHA")})}):Dn(Error("No reCAPTCHA enterprise script loaded."))}return new Promise((xt,on)=>{(function K(xt){return pe.apply(this,arguments)})(b.auth).then(Dn=>{if(!v&&Ot(window.grecaptcha))nt(Dn,xt,on);else{if(typeof window>"u")return void on(new Error("RecaptchaVerifier is only supported in browser"));let Xn=function Pi(){return Ai.recaptchaEnterpriseScript}();0!==Xn.length&&(Xn+=Dn),xr(Xn).then(()=>{nt(Dn,xt,on)}).catch(jr=>{on(jr)})}}).catch(Dn=>{on(Dn)})})})()}}function Nn(E,h,v){return kn.apply(this,arguments)}function kn(){return(kn=(0,Q.A)(function*(E,h,v,b=!1){const K=new oi(E);let pe;try{pe=yield K.verify(v)}catch{pe=yield K.verify(v,!0)}const nt=Object.assign({},h);return Object.assign(nt,b?{captchaResp:pe}:{captchaResponse:pe}),Object.assign(nt,{clientType:"CLIENT_TYPE_WEB"}),Object.assign(nt,{recaptchaVersion:"RECAPTCHA_ENTERPRISE"}),nt})).apply(this,arguments)}function ko(E,h,v,b){return ei.apply(this,arguments)}function ei(){return ei=(0,Q.A)(function*(E,h,v,b){var K;if(null!==(K=E._getRecaptchaConfig())&&void 0!==K&&K.isProviderEnabled("EMAIL_PASSWORD_PROVIDER")){const pe=yield Nn(E,h,v,"getOobCode"===v);return b(E,pe)}return b(E,h).catch(function(){var pe=(0,Q.A)(function*(nt){if("auth/missing-recaptcha-token"===nt.code){console.log(`${v} is protected by reCAPTCHA Enterprise for this project. Automatically triggering the reCAPTCHA flow and restarting the flow.`);const xt=yield Nn(E,h,v,"getOobCode"===v);return b(E,xt)}return Promise.reject(nt)});return function(nt){return pe.apply(this,arguments)}}())}),ei.apply(this,arguments)}function kr(E){const h=E.indexOf(":");return h<0?"":E.substr(0,h+1)}function jn(E){if(!E)return null;const h=Number(E);return isNaN(h)?null:h}class Ao{constructor(h,v){this.providerId=h,this.signInMethod=v}toJSON(){return Be("not implemented")}_getIdTokenResponse(h){return Be("not implemented")}_linkToIdToken(h,v){return Be("not implemented")}_getReauthenticationResolver(h){return Be("not implemented")}}function S(E,h){return H.apply(this,arguments)}function H(){return(H=(0,Q.A)(function*(E,h){return jt(E,"POST","/v1/accounts:signUp",h)})).apply(this,arguments)}function fe(E,h){return qe.apply(this,arguments)}function qe(){return(qe=(0,Q.A)(function*(E,h){return qn(E,"POST","/v1/accounts:signInWithPassword",Vt(E,h))})).apply(this,arguments)}function Zt(){return(Zt=(0,Q.A)(function*(E,h){return qn(E,"POST","/v1/accounts:signInWithEmailLink",Vt(E,h))})).apply(this,arguments)}function Cn(){return(Cn=(0,Q.A)(function*(E,h){return qn(E,"POST","/v1/accounts:signInWithEmailLink",Vt(E,h))})).apply(this,arguments)}class Ln extends Ao{constructor(h,v,b,K=null){super("password",b),this._email=h,this._password=v,this._tenantId=K}static _fromEmailAndPassword(h,v){return new Ln(h,v,"password")}static _fromEmailAndCode(h,v,b=null){return new Ln(h,v,"emailLink",b)}toJSON(){return{email:this._email,password:this._password,signInMethod:this.signInMethod,tenantId:this._tenantId}}static fromJSON(h){const v="string"==typeof h?JSON.parse(h):h;if(null!=v&&v.email&&null!=v&&v.password){if("password"===v.signInMethod)return this._fromEmailAndPassword(v.email,v.password);if("emailLink"===v.signInMethod)return this._fromEmailAndCode(v.email,v.password,v.tenantId)}return null}_getIdTokenResponse(h){var v=this;return(0,Q.A)(function*(){switch(v.signInMethod){case"password":return ko(h,{returnSecureToken:!0,email:v._email,password:v._password,clientType:"CLIENT_TYPE_WEB"},"signInWithPassword",fe);case"emailLink":return function qt(E,h){return Zt.apply(this,arguments)}(h,{email:v._email,oobCode:v._password});default:Ct(h,"internal-error")}})()}_linkToIdToken(h,v){var b=this;return(0,Q.A)(function*(){switch(b.signInMethod){case"password":return ko(h,{idToken:v,returnSecureToken:!0,email:b._email,password:b._password,clientType:"CLIENT_TYPE_WEB"},"signUpPassword",S);case"emailLink":return function _n(E,h){return Cn.apply(this,arguments)}(h,{idToken:v,email:b._email,oobCode:b._password});default:Ct(h,"internal-error")}})()}_getReauthenticationResolver(h){return this._getIdTokenResponse(h)}}function In(E,h){return br.apply(this,arguments)}function br(){return(br=(0,Q.A)(function*(E,h){return qn(E,"POST","/v1/accounts:signInWithIdp",Vt(E,h))})).apply(this,arguments)}class os{constructor(h){var v,b,K,pe,nt,xt;const on=(0,ne.I9)((0,ne.hp)(h)),Dn=null!==(v=on.apiKey)&&void 0!==v?v:null,Xn=null!==(b=on.oobCode)&&void 0!==b?b:null,jr=function Do(E){switch(E){case"recoverEmail":return"RECOVER_EMAIL";case"resetPassword":return"PASSWORD_RESET";case"signIn":return"EMAIL_SIGNIN";case"verifyEmail":return"VERIFY_EMAIL";case"verifyAndChangeEmail":return"VERIFY_AND_CHANGE_EMAIL";case"revertSecondFactorAddition":return"REVERT_SECOND_FACTOR_ADDITION";default:return null}}(null!==(K=on.mode)&&void 0!==K?K:null);Dt(Dn&&Xn&&jr,"argument-error"),this.apiKey=Dn,this.operation=jr,this.code=Xn,this.continueUrl=null!==(pe=on.continueUrl)&&void 0!==pe?pe:null,this.languageCode=null!==(nt=on.languageCode)&&void 0!==nt?nt:null,this.tenantId=null!==(xt=on.tenantId)&&void 0!==xt?xt:null}static parseLink(h){const v=function xa(E){const h=(0,ne.I9)((0,ne.hp)(E)).link,v=h?(0,ne.I9)((0,ne.hp)(h)).deep_link_id:null,b=(0,ne.I9)((0,ne.hp)(E)).deep_link_id;return(b?(0,ne.I9)((0,ne.hp)(b)).link:null)||b||v||h||E}(h);try{return new os(v)}catch{return null}}}let Pr=(()=>{class E{constructor(){this.providerId=E.PROVIDER_ID}static credential(v,b){return Ln._fromEmailAndPassword(v,b)}static credentialWithLink(v,b){const K=os.parseLink(b);return Dt(K,"argument-error"),Ln._fromEmailAndCode(v,K.code,K.tenantId)}}return E.PROVIDER_ID="password",E.EMAIL_PASSWORD_SIGN_IN_METHOD="password",E.EMAIL_LINK_SIGN_IN_METHOD="emailLink",E})();class oo{constructor(h){this.providerId=h,this.defaultLanguageCode=null,this.customParameters={}}setDefaultLanguage(h){this.defaultLanguageCode=h}setCustomParameters(h){return this.customParameters=h,this}getCustomParameters(){return this.customParameters}}class Us extends oo{constructor(){super(...arguments),this.scopes=[]}addScope(h){return this.scopes.includes(h)||this.scopes.push(h),this}getScopes(){return[...this.scopes]}}function Xo(E,h){return bo.apply(this,arguments)}function bo(){return(bo=(0,Q.A)(function*(E,h){return qn(E,"POST","/v1/accounts:signUp",Vt(E,h))})).apply(this,arguments)}class ji{constructor(h){this.user=h.user,this.providerId=h.providerId,this._tokenResponse=h._tokenResponse,this.operationType=h.operationType}static _fromIdTokenResponse(h,v,b,K=!1){return(0,Q.A)(function*(){const pe=yield ur._fromIdTokenResponse(h,b,K),nt=da(b);return new ji({user:pe,providerId:nt,_tokenResponse:b,operationType:v})})()}static _forOperation(h,v,b){return(0,Q.A)(function*(){yield h._updateTokensIfNecessary(b,!0);const K=da(b);return new ji({user:h,providerId:K,_tokenResponse:b,operationType:v})})()}}function da(E){return E.providerId?E.providerId:"phoneNumber"in E?"phone":null}class P extends ne.g{constructor(h,v,b,K){var pe;super(v.code,v.message),this.operationType=b,this.user=K,Object.setPrototypeOf(this,P.prototype),this.customData={appName:h.name,tenantId:null!==(pe=h.tenantId)&&void 0!==pe?pe:void 0,_serverResponse:v.customData._serverResponse,operationType:b}}static _fromErrorAndOperation(h,v,b,K){return new P(h,v,b,K)}}function ce(E,h,v,b){return("reauthenticate"===h?v._getReauthenticationResolver(E):v._getIdTokenResponse(E)).catch(pe=>{throw"auth/multi-factor-auth-required"===pe.code?P._fromErrorAndOperation(E,pe,h,b):pe})}function rr(){return(rr=(0,Q.A)(function*(E,h,v=!1){const b=yield Ir(E,h._linkToIdToken(E.auth,yield E.getIdToken()),v);return ji._forOperation(E,"link",b)})).apply(this,arguments)}function Qo(){return(Qo=(0,Q.A)(function*(E,h,v=!1){const{auth:b}=E;if((0,Ie.xZ)(b.app))return Promise.reject(Tt(b));const K="reauthenticate";try{const pe=yield Ir(E,ce(b,K,h,E),v);Dt(pe.idToken,b,"internal-error");const nt=Sr(pe.idToken);Dt(nt,b,"internal-error");const{sub:xt}=nt;return Dt(E.uid===xt,b,"user-mismatch"),ji._forOperation(E,K,pe)}catch(pe){throw"auth/user-not-found"===(null==pe?void 0:pe.code)&&Ct(b,"user-mismatch"),pe}})).apply(this,arguments)}function Na(E,h){return vs.apply(this,arguments)}function vs(){return(vs=(0,Q.A)(function*(E,h,v=!1){if((0,Ie.xZ)(E.app))return Promise.reject(Tt(E));const b="signIn",K=yield ce(E,b,h),pe=yield ji._fromIdTokenResponse(E,b,K);return v||(yield E._updateCurrentUser(pe.user)),pe})).apply(this,arguments)}function Oa(){return(Oa=(0,Q.A)(function*(E,h){return Na(Hn(E),h)})).apply(this,arguments)}function Vl(E){return vr.apply(this,arguments)}function vr(){return(vr=(0,Q.A)(function*(E){const h=Hn(E);h._getPasswordPolicyInternal()&&(yield h._updatePasswordPolicy())})).apply(this,arguments)}function ws(E,h,v){return Yo.apply(this,arguments)}function Yo(){return(Yo=(0,Q.A)(function*(E,h,v){if((0,Ie.xZ)(E.app))return Promise.reject(Tt(E));const b=Hn(E),nt=yield ko(b,{returnSecureToken:!0,email:h,password:v,clientType:"CLIENT_TYPE_WEB"},"signUpPassword",Xo).catch(on=>{throw"auth/password-does-not-meet-requirements"===on.code&&Vl(E),on}),xt=yield ji._fromIdTokenResponse(b,"signIn",nt);return yield b._updateCurrentUser(xt.user),xt})).apply(this,arguments)}function Ss(E,h,v){return(0,Ie.xZ)(E.app)?Promise.reject(Tt(E)):function Bs(E,h){return Oa.apply(this,arguments)}((0,ne.Ku)(E),Pr.credential(h,v)).catch(function(){var b=(0,Q.A)(function*(K){throw"auth/password-does-not-meet-requirements"===K.code&&Vl(E),K});return function(K){return b.apply(this,arguments)}}())}function Oi(E,h,v,b){return(0,ne.Ku)(E).onIdTokenChanged(h,v,b)}const Gs="__sak";class jl{constructor(h,v){this.storageRetriever=h,this.type=v}_isAvailable(){try{return this.storage?(this.storage.setItem(Gs,"1"),this.storage.removeItem(Gs),Promise.resolve(!0)):Promise.resolve(!1)}catch{return Promise.resolve(!1)}}_set(h,v){return this.storage.setItem(h,JSON.stringify(v)),Promise.resolve()}_get(h){const v=this.storage.getItem(h);return Promise.resolve(v?JSON.parse(v):null)}_remove(h){return this.storage.removeItem(h),Promise.resolve()}get storage(){return this.storageRetriever()}}const $a=(()=>{class E extends jl{constructor(){super(()=>window.localStorage,"LOCAL"),this.boundEventHandler=(v,b)=>this.onStorageEvent(v,b),this.listeners={},this.localCache={},this.pollTimer=null,this.safariLocalStorageNotSynced=function Lr(){const E=(0,ne.ZQ)();return lr(E)||$t(E)}()&&function Ne(){try{return!(!window||window===window.top)}catch{return!1}}(),this.fallbackToPolling=Z(),this._shouldAllowMigration=!0}forAllChangedKeys(v){for(const b of Object.keys(this.listeners)){const K=this.storage.getItem(b),pe=this.localCache[b];K!==pe&&v(b,pe,K)}}onStorageEvent(v,b=!1){if(!v.key)return void this.forAllChangedKeys((xt,on,Dn)=>{this.notifyListeners(xt,Dn)});const K=v.key;if(b?this.detachListener():this.stopPolling(),this.safariLocalStorageNotSynced){const xt=this.storage.getItem(K);if(v.newValue!==xt)null!==v.newValue?this.storage.setItem(K,v.newValue):this.storage.removeItem(K);else if(this.localCache[K]===v.newValue&&!b)return}const pe=()=>{const xt=this.storage.getItem(K);!b&&this.localCache[K]===xt||this.notifyListeners(K,xt)},nt=this.storage.getItem(K);!function Y(){return(0,ne.lT)()&&10===document.documentMode}()||nt===v.newValue||v.newValue===v.oldValue?pe():setTimeout(pe,10)}notifyListeners(v,b){this.localCache[v]=b;const K=this.listeners[v];if(K)for(const pe of Array.from(K))pe(b&&JSON.parse(b))}startPolling(){this.stopPolling(),this.pollTimer=setInterval(()=>{this.forAllChangedKeys((v,b,K)=>{this.onStorageEvent(new StorageEvent("storage",{key:v,oldValue:b,newValue:K}),!0)})},1e3)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}attachListener(){window.addEventListener("storage",this.boundEventHandler)}detachListener(){window.removeEventListener("storage",this.boundEventHandler)}_addListener(v,b){0===Object.keys(this.listeners).length&&(this.fallbackToPolling?this.startPolling():this.attachListener()),this.listeners[v]||(this.listeners[v]=new Set,this.localCache[v]=this.storage.getItem(v)),this.listeners[v].add(b)}_removeListener(v,b){this.listeners[v]&&(this.listeners[v].delete(b),0===this.listeners[v].size&&delete this.listeners[v]),0===Object.keys(this.listeners).length&&(this.detachListener(),this.stopPolling())}_set(v,b){var K=()=>super._set,pe=this;return(0,Q.A)(function*(){yield K().call(pe,v,b),pe.localCache[v]=JSON.stringify(b)})()}_get(v){var b=()=>super._get,K=this;return(0,Q.A)(function*(){const pe=yield b().call(K,v);return K.localCache[v]=JSON.stringify(pe),pe})()}_remove(v){var b=()=>super._remove,K=this;return(0,Q.A)(function*(){yield b().call(K,v),delete K.localCache[v]})()}}return E.type="LOCAL",E})(),$o=(()=>{class E extends jl{constructor(){super(()=>window.sessionStorage,"SESSION")}_addListener(v,b){}_removeListener(v,b){}}return E.type="SESSION",E})();let Ks=(()=>{class E{constructor(v){this.eventTarget=v,this.handlersMap={},this.boundEventHandler=this.handleEvent.bind(this)}static _getInstance(v){const b=this.receivers.find(pe=>pe.isListeningto(v));if(b)return b;const K=new E(v);return this.receivers.push(K),K}isListeningto(v){return this.eventTarget===v}handleEvent(v){var b=this;return(0,Q.A)(function*(){const K=v,{eventId:pe,eventType:nt,data:xt}=K.data,on=b.handlersMap[nt];if(null==on||!on.size)return;K.ports[0].postMessage({status:"ack",eventId:pe,eventType:nt});const Dn=Array.from(on).map(function(){var jr=(0,Q.A)(function*(Oo){return Oo(K.origin,xt)});return function(Oo){return jr.apply(this,arguments)}}()),Xn=yield function ya(E){return Promise.all(E.map(function(){var h=(0,Q.A)(function*(v){try{return{fulfilled:!0,value:yield v}}catch(b){return{fulfilled:!1,reason:b}}});return function(v){return h.apply(this,arguments)}}()))}(Dn);K.ports[0].postMessage({status:"done",eventId:pe,eventType:nt,response:Xn})})()}_subscribe(v,b){0===Object.keys(this.handlersMap).length&&this.eventTarget.addEventListener("message",this.boundEventHandler),this.handlersMap[v]||(this.handlersMap[v]=new Set),this.handlersMap[v].add(b)}_unsubscribe(v,b){this.handlersMap[v]&&b&&this.handlersMap[v].delete(b),(!b||0===this.handlersMap[v].size)&&delete this.handlersMap[v],0===Object.keys(this.handlersMap).length&&this.eventTarget.removeEventListener("message",this.boundEventHandler)}}return E.receivers=[],E})();function Fi(E="",h=10){let v="";for(let b=0;b{const Xn=Fi("",20);pe.port1.start();const jr=setTimeout(()=>{Dn(new Error("unsupported_event"))},b);xt={messageChannel:pe,onMessage(Oo){const Zi=Oo;if(Zi.data.eventId===Xn)switch(Zi.data.status){case"ack":clearTimeout(jr),nt=setTimeout(()=>{Dn(new Error("timeout"))},3e3);break;case"done":clearTimeout(nt),on(Zi.data.response);break;default:clearTimeout(jr),clearTimeout(nt),Dn(new Error("invalid_response"))}}},K.handlers.add(xt),pe.port1.addEventListener("message",xt.onMessage),K.target.postMessage({eventType:h,eventId:Xn,data:v},[pe.port2])}).finally(()=>{xt&&K.removeMessageHandler(xt)})})()}}function Ur(){return window}function zl(){return typeof Ur().WorkerGlobalScope<"u"&&"function"==typeof Ur().importScripts}function Ia(){return(Ia=(0,Q.A)(function*(){if(null==navigator||!navigator.serviceWorker)return null;try{return(yield navigator.serviceWorker.ready).active}catch{return null}})).apply(this,arguments)}const Gl="firebaseLocalStorageDb",Ea="firebaseLocalStorage",Mu="fbase_key";class Ba{constructor(h){this.request=h}toPromise(){return new Promise((h,v)=>{this.request.addEventListener("success",()=>{h(this.request.result)}),this.request.addEventListener("error",()=>{v(this.request.error)})})}}function ja(E,h){return E.transaction([Ea],h?"readwrite":"readonly").objectStore(Ea)}function mc(){const E=indexedDB.open(Gl,1);return new Promise((h,v)=>{E.addEventListener("error",()=>{v(E.error)}),E.addEventListener("upgradeneeded",()=>{const b=E.result;try{b.createObjectStore(Ea,{keyPath:Mu})}catch(K){v(K)}}),E.addEventListener("success",(0,Q.A)(function*(){const b=E.result;b.objectStoreNames.contains(Ea)?h(b):(b.close(),yield function Gh(){const E=indexedDB.deleteDatabase(Gl);return new Ba(E).toPromise()}(),h(yield mc()))}))})}function qs(E,h,v){return Xs.apply(this,arguments)}function Xs(){return(Xs=(0,Q.A)(function*(E,h,v){const b=ja(E,!0).put({[Mu]:h,value:v});return new Ba(b).toPromise()})).apply(this,arguments)}function Cd(){return(Cd=(0,Q.A)(function*(E,h){const v=ja(E,!1).get(h),b=yield new Ba(v).toPromise();return void 0===b?null:b.value})).apply(this,arguments)}function Td(E,h){const v=ja(E,!0).delete(h);return new Ba(v).toPromise()}const Kh=(()=>{class E{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 v=this;return(0,Q.A)(function*(){return v.db||(v.db=yield mc()),v.db})()}_withRetries(v){var b=this;return(0,Q.A)(function*(){let K=0;for(;;)try{const pe=yield b._openDb();return yield v(pe)}catch(pe){if(K++>3)throw pe;b.db&&(b.db.close(),b.db=void 0)}})()}initializeServiceWorkerMessaging(){var v=this;return(0,Q.A)(function*(){return zl()?v.initializeReceiver():v.initializeSender()})()}initializeReceiver(){var v=this;return(0,Q.A)(function*(){v.receiver=Ks._getInstance(function Hl(){return zl()?self:null}()),v.receiver._subscribe("keyChanged",function(){var b=(0,Q.A)(function*(K,pe){return{keyProcessed:(yield v._poll()).includes(pe.key)}});return function(K,pe){return b.apply(this,arguments)}}()),v.receiver._subscribe("ping",function(){var b=(0,Q.A)(function*(K,pe){return["keyChanged"]});return function(K,pe){return b.apply(this,arguments)}}())})()}initializeSender(){var v=this;return(0,Q.A)(function*(){var b,K;if(v.activeServiceWorker=yield function As(){return Ia.apply(this,arguments)}(),!v.activeServiceWorker)return;v.sender=new Su(v.activeServiceWorker);const pe=yield v.sender._send("ping",{},800);pe&&null!==(b=pe[0])&&void 0!==b&&b.fulfilled&&null!==(K=pe[0])&&void 0!==K&&K.value.includes("keyChanged")&&(v.serviceWorkerReceiverAvailable=!0)})()}notifyServiceWorker(v){var b=this;return(0,Q.A)(function*(){if(b.sender&&b.activeServiceWorker&&function us(){var E;return(null===(E=null==navigator?void 0:navigator.serviceWorker)||void 0===E?void 0:E.controller)||null}()===b.activeServiceWorker)try{yield b.sender._send("keyChanged",{key:v},b.serviceWorkerReceiverAvailable?800:50)}catch{}})()}_isAvailable(){return(0,Q.A)(function*(){try{if(!indexedDB)return!1;const v=yield mc();return yield qs(v,Gs,"1"),yield Td(v,Gs),!0}catch{}return!1})()}_withPendingWrite(v){var b=this;return(0,Q.A)(function*(){b.pendingWrites++;try{yield v()}finally{b.pendingWrites--}})()}_set(v,b){var K=this;return(0,Q.A)(function*(){return K._withPendingWrite((0,Q.A)(function*(){return yield K._withRetries(pe=>qs(pe,v,b)),K.localCache[v]=b,K.notifyServiceWorker(v)}))})()}_get(v){var b=this;return(0,Q.A)(function*(){const K=yield b._withRetries(pe=>function Ad(E,h){return Cd.apply(this,arguments)}(pe,v));return b.localCache[v]=K,K})()}_remove(v){var b=this;return(0,Q.A)(function*(){return b._withPendingWrite((0,Q.A)(function*(){return yield b._withRetries(K=>Td(K,v)),delete b.localCache[v],b.notifyServiceWorker(v)}))})()}_poll(){var v=this;return(0,Q.A)(function*(){const b=yield v._withRetries(nt=>{const xt=ja(nt,!1).getAll();return new Ba(xt).toPromise()});if(!b)return[];if(0!==v.pendingWrites)return[];const K=[],pe=new Set;if(0!==b.length)for(const{fbase_key:nt,value:xt}of b)pe.add(nt),JSON.stringify(v.localCache[nt])!==JSON.stringify(xt)&&(v.notifyListeners(nt,xt),K.push(nt));for(const nt of Object.keys(v.localCache))v.localCache[nt]&&!pe.has(nt)&&(v.notifyListeners(nt,null),K.push(nt));return K})()}notifyListeners(v,b){this.localCache[v]=b;const K=this.listeners[v];if(K)for(const pe of Array.from(K))pe(b)}startPolling(){var v=this;this.stopPolling(),this.pollTimer=setInterval((0,Q.A)(function*(){return v._poll()}),800)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}_addListener(v,b){0===Object.keys(this.listeners).length&&this.startPolling(),this.listeners[v]||(this.listeners[v]=new Set,this._get(v)),this.listeners[v].add(b)}_removeListener(v,b){this.listeners[v]&&(this.listeners[v].delete(b),0===this.listeners[v].size&&delete this.listeners[v]),0===Object.keys(this.listeners).length&&this.stopPolling()}}return E.type="LOCAL",E})();$i("rcb"),new he(3e4,6e4);class So extends Ao{constructor(h){super("custom","custom"),this.params=h}_getIdTokenResponse(h){return In(h,this._buildIdpRequest())}_linkToIdToken(h,v){return In(h,this._buildIdpRequest(v))}_getReauthenticationResolver(h){return In(h,this._buildIdpRequest())}_buildIdpRequest(h){const v={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 h&&(v.idToken=h),v}}function Dd(E){return Na(E.auth,new So(E),E.bypassAuthState)}function vc(E){const{auth:h,user:v}=E;return Dt(v,h,"internal-error"),function eo(E,h){return Qo.apply(this,arguments)}(v,new So(E),E.bypassAuthState)}function _c(E){return Cs.apply(this,arguments)}function Cs(){return(Cs=(0,Q.A)(function*(E){const{auth:h,user:v}=E;return Dt(v,h,"internal-error"),function On(E,h){return rr.apply(this,arguments)}(v,new So(E),E.bypassAuthState)})).apply(this,arguments)}class yc{constructor(h,v,b,K,pe=!1){this.auth=h,this.resolver=b,this.user=K,this.bypassAuthState=pe,this.pendingPromise=null,this.eventManager=null,this.filter=Array.isArray(v)?v:[v]}execute(){var h=this;return new Promise(function(){var v=(0,Q.A)(function*(b,K){h.pendingPromise={resolve:b,reject:K};try{h.eventManager=yield h.resolver._initialize(h.auth),yield h.onExecution(),h.eventManager.registerConsumer(h)}catch(pe){h.reject(pe)}});return function(b,K){return v.apply(this,arguments)}}())}onAuthEvent(h){var v=this;return(0,Q.A)(function*(){const{urlResponse:b,sessionId:K,postBody:pe,tenantId:nt,error:xt,type:on}=h;if(xt)return void v.reject(xt);const Dn={auth:v.auth,requestUri:b,sessionId:K,tenantId:nt||void 0,postBody:pe||void 0,user:v.user,bypassAuthState:v.bypassAuthState};try{v.resolve(yield v.getIdpTask(on)(Dn))}catch(Xn){v.reject(Xn)}})()}onError(h){this.reject(h)}getIdpTask(h){switch(h){case"signInViaPopup":case"signInViaRedirect":return Dd;case"linkViaPopup":case"linkViaRedirect":return _c;case"reauthViaPopup":case"reauthViaRedirect":return vc;default:Ct(this.auth,"internal-error")}}resolve(h){Pt(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.resolve(h),this.unregisterAndCleanUp()}reject(h){Pt(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.reject(h),this.unregisterAndCleanUp()}unregisterAndCleanUp(){this.eventManager&&this.eventManager.unregisterConsumer(this),this.pendingPromise=null,this.cleanUp()}}new he(2e3,1e4);const Gn="pendingRedirect",pl=new Map;class wd extends yc{constructor(h,v,b=!1){super(h,["signInViaRedirect","linkViaRedirect","reauthViaRedirect","unknown"],v,void 0,b),this.eventId=null}execute(){var h=()=>super.execute,v=this;return(0,Q.A)(function*(){let b=pl.get(v.auth._key());if(!b){try{const pe=(yield function Ic(E,h){return Ec.apply(this,arguments)}(v.resolver,v.auth))?yield h().call(v):null;b=()=>Promise.resolve(pe)}catch(K){b=()=>Promise.reject(K)}pl.set(v.auth._key(),b)}return v.bypassAuthState||pl.set(v.auth._key(),()=>Promise.resolve(null)),b()})()}onAuthEvent(h){var v=()=>super.onAuthEvent,b=this;return(0,Q.A)(function*(){if("signInViaRedirect"===h.type)return v().call(b,h);if("unknown"!==h.type){if(h.eventId){const K=yield b.auth._redirectUserForId(h.eventId);if(K)return b.user=K,v().call(b,h);b.resolve(null)}}else b.resolve(null)})()}onExecution(){return(0,Q.A)(function*(){})()}cleanUp(){}}function Ec(){return(Ec=(0,Q.A)(function*(E,h){const v=function ml(E){return Ei(Gn,E.config.apiKey,E.name)}(h),b=function qh(E){return xn(E._redirectPersistence)}(E);if(!(yield b._isAvailable()))return!1;const K="true"===(yield b._get(v));return yield b._remove(v),K})).apply(this,arguments)}function gl(E,h){pl.set(E._key(),h)}function Nu(E,h){return Rd.apply(this,arguments)}function Rd(){return(Rd=(0,Q.A)(function*(E,h,v=!1){if((0,Ie.xZ)(E.app))return Promise.reject(Tt(E));const b=Hn(E),K=function cs(E,h){return h?xn(h):(Dt(E._popupRedirectResolver,E,"argument-error"),E._popupRedirectResolver)}(b,h),nt=yield new wd(b,K,v).execute();return nt&&!v&&(delete nt.user._redirectEventId,yield b._persistUserIfCurrent(nt.user),yield b._setRedirectUser(null,h)),nt})).apply(this,arguments)}class ta{constructor(h){this.auth=h,this.cachedEventUids=new Set,this.consumers=new Set,this.queuedRedirectEvent=null,this.hasHandledPotentialRedirect=!1,this.lastProcessedEventTime=Date.now()}registerConsumer(h){this.consumers.add(h),this.queuedRedirectEvent&&this.isEventForConsumer(this.queuedRedirectEvent,h)&&(this.sendToConsumer(this.queuedRedirectEvent,h),this.saveEventToCache(this.queuedRedirectEvent),this.queuedRedirectEvent=null)}unregisterConsumer(h){this.consumers.delete(h)}onEvent(h){if(this.hasEventBeenHandled(h))return!1;let v=!1;return this.consumers.forEach(b=>{this.isEventForConsumer(h,b)&&(v=!0,this.sendToConsumer(h,b),this.saveEventToCache(h))}),this.hasHandledPotentialRedirect||!function na(E){switch(E.type){case"signInViaRedirect":case"linkViaRedirect":case"reauthViaRedirect":return!0;case"unknown":return Ts(E);default:return!1}}(h)||(this.hasHandledPotentialRedirect=!0,v||(this.queuedRedirectEvent=h,v=!0)),v}sendToConsumer(h,v){var b;if(h.error&&!Ts(h)){const K=(null===(b=h.error.code)||void 0===b?void 0:b.split("auth/")[1])||"internal-error";v.onError(kt(this.auth,K))}else v.onAuthEvent(h)}isEventForConsumer(h,v){const b=null===v.eventId||!!h.eventId&&h.eventId===v.eventId;return v.filter.includes(h.type)&&b}hasEventBeenHandled(h){return Date.now()-this.lastProcessedEventTime>=6e5&&this.cachedEventUids.clear(),this.cachedEventUids.has(Cc(h))}saveEventToCache(h){this.cachedEventUids.add(Cc(h)),this.lastProcessedEventTime=Date.now()}}function Cc(E){return[E.type,E.eventId,E.sessionId,E.tenantId].filter(h=>h).join("-")}function Ts({type:E,error:h}){return"unknown"===E&&"auth/no-auth-event"===(null==h?void 0:h.code)}function Tc(){return(Tc=(0,Q.A)(function*(E,h={}){return jt(E,"GET","/v1/projects",h)})).apply(this,arguments)}const Md=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,Io=/^https?/;function Ou(){return Ou=(0,Q.A)(function*(E){if(E.config.emulator)return;const{authorizedDomains:h}=yield function ng(E){return Tc.apply(this,arguments)}(E);for(const v of h)try{if(xd(v))return}catch{}Ct(E,"unauthorized-domain")}),Ou.apply(this,arguments)}function xd(E){const h=rt(),{protocol:v,hostname:b}=new URL(h);if(E.startsWith("chrome-extension://")){const nt=new URL(E);return""===nt.hostname&&""===b?"chrome-extension:"===v&&E.replace("chrome-extension://","")===h.replace("chrome-extension://",""):"chrome-extension:"===v&&nt.hostname===b}if(!Io.test(v))return!1;if(Md.test(E))return b===E;const K=E.replace(/\./g,"\\.");return new RegExp("^(.+\\."+K+"|"+K+")$","i").test(b)}const Dc=new he(3e4,6e4);function bc(){const E=Ur().___jsl;if(null!=E&&E.H)for(const h of Object.keys(E.H))if(E.H[h].r=E.H[h].r||[],E.H[h].L=E.H[h].L||[],E.H[h].r=[...E.H[h].L],E.CP)for(let v=0;v{var b,K,pe;function nt(){bc(),gapi.load("gapi.iframes",{callback:()=>{h(gapi.iframes.getContext())},ontimeout:()=>{bc(),v(kt(E,"network-request-failed"))},timeout:Dc.get()})}if(null!==(K=null===(b=Ur().gapi)||void 0===b?void 0:b.iframes)&&void 0!==K&&K.Iframe)h(gapi.iframes.getContext());else{if(null===(pe=Ur().gapi)||void 0===pe||!pe.load){const xt=$i("iframefcb");return Ur()[xt]=()=>{gapi.load?nt():v(kt(E,"network-request-failed"))},xr(`${function mi(){return Ai.gapiScript}()}?onload=${xt}`).catch(on=>v(on))}nt()}}).catch(h=>{throw Da=null,h})}(E),Da}(E),v=Ur().gapi;return Dt(v,E,"internal-error"),h.open({where:document.body,url:fo(E),messageHandlersFilter:v.iframes.CROSS_ORIGIN_IFRAMES_FILTER,attributes:Fu,dontclear:!0},b=>new Promise(function(){var K=(0,Q.A)(function*(pe,nt){yield b.restyle({setHideOnLeave:!1});const xt=kt(E,"network-request-failed"),on=Ur().setTimeout(()=>{nt(xt)},Zh.get());function Dn(){Ur().clearTimeout(on),pe(b)}b.ping(Dn).then(Dn,()=>{nt(xt)})});return function(pe,nt){return K.apply(this,arguments)}}()))}),yi.apply(this,arguments)}const rg={location:"yes",resizable:"yes",statusbar:"yes",toolbar:"no"};class Lu{constructor(h){this.window=h,this.associatedEvent=null}close(){if(this.window)try{this.window.close()}catch{}}}const og="__/auth/handler",$u="emulator/auth/handler",Sc=encodeURIComponent("fac");function ra(E,h,v,b,K,pe){return ia.apply(this,arguments)}function ia(){return(ia=(0,Q.A)(function*(E,h,v,b,K,pe){Dt(E.config.authDomain,E,"auth-domain-config-required"),Dt(E.config.apiKey,E,"invalid-api-key");const nt={apiKey:E.config.apiKey,appName:E.name,authType:v,redirectUrl:b,v:Ie.MF,eventId:K};if(h instanceof oo){h.setDefaultLanguage(E.languageCode),nt.providerId=h.providerId||"",(0,ne.Im)(h.getCustomParameters())||(nt.customParameters=JSON.stringify(h.getCustomParameters()));for(const[Xn,jr]of Object.entries(pe||{}))nt[Xn]=jr}if(h instanceof Us){const Xn=h.getScopes().filter(jr=>""!==jr);Xn.length>0&&(nt.scopes=Xn.join(","))}E.tenantId&&(nt.tid=E.tenantId);const xt=nt;for(const Xn of Object.keys(xt))void 0===xt[Xn]&&delete xt[Xn];const on=yield E._getAppCheckToken(),Dn=on?`#${Sc}=${encodeURIComponent(on)}`:"";return`${function Rc({config:E}){return E.emulator?ae(E,$u):`https://${E.authDomain}/${og}`}(E)}?${(0,ne.Am)(xt).slice(1)}${Dn}`})).apply(this,arguments)}const vl="webStorageSupport",_l=class tf{constructor(){this.eventManagers={},this.iframes={},this.originValidationPromises={},this._redirectPersistence=$o,this._completeRedirectFn=Nu,this._overrideRedirectResult=gl}_openPopup(h,v,b,K){var pe=this;return(0,Q.A)(function*(){var nt;Pt(null===(nt=pe.eventManagers[h._key()])||void 0===nt?void 0:nt.manager,"_initialize() not called before _openPopup()");const xt=yield ra(h,v,b,rt(),K);return function Uu(E,h,v,b=500,K=600){const pe=Math.max((window.screen.availHeight-K)/2,0).toString(),nt=Math.max((window.screen.availWidth-b)/2,0).toString();let xt="";const on=Object.assign(Object.assign({},rg),{width:b.toString(),height:K.toString(),top:pe,left:nt}),Dn=(0,ne.ZQ)().toLowerCase();v&&(xt=Xi(Dn)?"_blank":v),Li(Dn)&&(h=h||"http://localhost",on.scrollbars="yes");const Xn=Object.entries(on).reduce((Oo,[Zi,sa])=>`${Oo}${Zi}=${sa},`,"");if(function Wn(E=(0,ne.ZQ)()){var h;return $t(E)&&!(null===(h=window.navigator)||void 0===h||!h.standalone)}(Dn)&&"_self"!==xt)return function Ns(E,h){const v=document.createElement("a");v.href=E,v.target=h;const b=document.createEvent("MouseEvent");b.initMouseEvent("click",!0,!0,window,1,0,0,0,0,!1,!1,!1,!1,1,null),v.dispatchEvent(b)}(h||"",xt),new Lu(null);const jr=window.open(h||"",xt,Xn);Dt(jr,E,"popup-blocked");try{jr.focus()}catch{}return new Lu(jr)}(h,xt,Fi())})()}_openRedirect(h,v,b,K){var pe=this;return(0,Q.A)(function*(){return yield pe._originValidation(h),function _o(E){Ur().location.href=E}(yield ra(h,v,b,rt(),K)),new Promise(()=>{})})()}_initialize(h){const v=h._key();if(this.eventManagers[v]){const{manager:K,promise:pe}=this.eventManagers[v];return K?Promise.resolve(K):(Pt(pe,"If manager is not set, promise should be"),pe)}const b=this.initAndGetManager(h);return this.eventManagers[v]={promise:b},b.catch(()=>{delete this.eventManagers[v]}),b}initAndGetManager(h){var v=this;return(0,Q.A)(function*(){const b=yield function ba(E){return yi.apply(this,arguments)}(h),K=new ta(h);return b.register("authEvent",pe=>(Dt(null==pe?void 0:pe.authEvent,h,"invalid-auth-event"),{status:K.onEvent(pe.authEvent)?"ACK":"ERROR"}),gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER),v.eventManagers[h._key()]={manager:K},v.iframes[h._key()]=b,K})()}_isIframeWebStorageSupported(h,v){this.iframes[h._key()].send(vl,{type:vl},K=>{var pe;const nt=null===(pe=null==K?void 0:K[0])||void 0===pe?void 0:pe[vl];void 0!==nt&&v(!!nt),Ct(h,"internal-error")},gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER)}_originValidation(h){const v=h._key();return this.originValidationPromises[v]||(this.originValidationPromises[v]=function Pd(E){return Ou.apply(this,arguments)}(h)),this.originValidationPromises[v]}get _shouldInitProactively(){return Z()||lr()||$t()}};var Fd="@firebase/auth";class wa{constructor(h){this.auth=h,this.internalListeners=new Map}getUid(){var h;return this.assertAuthConfigured(),(null===(h=this.auth.currentUser)||void 0===h?void 0:h.uid)||null}getToken(h){var v=this;return(0,Q.A)(function*(){return v.assertAuthConfigured(),yield v.auth._initializationPromise,v.auth.currentUser?{accessToken:yield v.auth.currentUser.getIdToken(h)}:null})()}addAuthTokenListener(h){if(this.assertAuthConfigured(),this.internalListeners.has(h))return;const v=this.auth.onIdTokenChanged(b=>{h((null==b?void 0:b.stsTokenManager.accessToken)||null)});this.internalListeners.set(h,v),this.updateProactiveRefresh()}removeAuthTokenListener(h){this.assertAuthConfigured();const v=this.internalListeners.get(h);v&&(this.internalListeners.delete(h),v(),this.updateProactiveRefresh())}assertAuthConfigured(){Dt(this.auth._initializationPromise,"dependent-sdk-initialized-before-auth")}updateProactiveRefresh(){this.internalListeners.size>0?this.auth._startProactiveRefresh():this.auth._stopProactiveRefresh()}}const Jl=(0,ne.XA)("authIdTokenMaxAge")||300;let rf=null;const sf=E=>function(){var h=(0,Q.A)(function*(v){const b=v&&(yield v.getIdTokenResult()),K=b&&((new Date).getTime()-Date.parse(b.issuedAtTime))/1e3;if(K&&K>Jl)return;const pe=null==b?void 0:b.token;rf!==pe&&(rf=pe,yield fetch(E,{method:pe?"POST":"DELETE",headers:pe?{Authorization:`Bearer ${pe}`}:{}}))});return function(v){return h.apply(this,arguments)}}();function Vd(E=(0,Ie.Sx)()){const h=(0,Ie.j6)(E,"auth");if(h.isInitialized())return h.getImmediate();const v=function ps(E,h){const v=(0,Ie.j6)(E,"auth");if(v.isInitialized()){const K=v.getImmediate(),pe=v.getOptions();if((0,ne.bD)(pe,null!=h?h:{}))return K;Ct(K,"already-initialized")}return v.initialize({options:h})}(E,{popupRedirectResolver:_l,persistence:[Kh,$a,$o]}),b=(0,ne.XA)("authTokenSyncURL");if(b&&"boolean"==typeof isSecureContext&&isSecureContext){const pe=new URL(b,location.origin);if(location.origin===pe.origin){const nt=sf(pe.toString());(function Gr(E,h,v){(0,ne.Ku)(E).beforeAuthStateChanged(h,v)})(v,nt,()=>nt(v.currentUser)),Oi(v,xt=>nt(xt))}}const K=(0,ne.Tj)("auth");return K&&function or(E,h,v){const b=Hn(E);Dt(b._canInitEmulator,b,"emulator-config-failed"),Dt(/^https?:\/\//.test(h),b,"invalid-emulator-scheme");const K=!(null==v||!v.disableWarnings),pe=kr(h),{host:nt,port:xt}=function ai(E){const h=kr(E),v=/(\/\/)?([^?#/]+)/.exec(E.substr(h.length));if(!v)return{host:"",port:null};const b=v[2].split("@").pop()||"",K=/^(\[[^\]]+\])(:|$)/.exec(b);if(K){const pe=K[1];return{host:pe,port:jn(b.substr(pe.length+1))}}{const[pe,nt]=b.split(":");return{host:pe,port:jn(nt)}}}(h);b.config.emulator={url:`${pe}//${nt}${null===xt?"":`:${xt}`}/`},b.settings.appVerificationDisabledForTesting=!0,b.emulatorConfig=Object.freeze({host:nt,port:xt,protocol:pe.replace(":",""),options:Object.freeze({disableWarnings:K})}),K||function Fo(){function E(){const h=document.createElement("p"),v=h.style;h.innerText="Running in emulator mode. Do not use with production credentials.",v.position="fixed",v.width="100%",v.backgroundColor="#ffffff",v.border=".1em solid #000000",v.color="#b50000",v.bottom="0px",v.left="0px",v.margin="0px",v.zIndex="10000",v.textAlign="center",h.classList.add("firebase-emulator-warning"),document.body.appendChild(h)}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",E):E())}()}(v,`http://${K}`),v}(function Mi(E){Ai=E})({loadJS:E=>new Promise((h,v)=>{const b=document.createElement("script");b.setAttribute("src",E),b.onload=h,b.onerror=K=>{const pe=kt("internal-error");pe.customData=K,v(pe)},b.type="text/javascript",b.charset="UTF-8",function Nc(){var E,h;return null!==(h=null===(E=document.getElementsByTagName("head"))||void 0===E?void 0:E[0])&&void 0!==h?h:document}().appendChild(b)}),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 El(E){(0,Ie.om)(new Te.uA("auth",(h,{options:v})=>{const b=h.getProvider("app").getImmediate(),K=h.getProvider("heartbeat"),pe=h.getProvider("app-check-internal"),{apiKey:nt,authDomain:xt}=b.options;Dt(nt&&!nt.includes(":"),"invalid-api-key",{appName:b.name});const on={apiKey:nt,authDomain:xt,clientPlatform:E,apiHost:"identitytoolkit.googleapis.com",tokenApiHost:"securetoken.googleapis.com",apiScheme:"https",sdkClientVersion:X(E)},Dn=new Cr(b,K,pe,on);return function si(E,h){const v=(null==h?void 0:h.persistence)||[],b=(Array.isArray(v)?v:[v]).map(xn);null!=h&&h.errorMap&&E._updateErrorMap(h.errorMap),E._initializeWithPersistence(b,null==h?void 0:h.popupRedirectResolver)}(Dn,v),Dn},"PUBLIC").setInstantiationMode("EXPLICIT").setInstanceCreatedCallback((h,v,b)=>{h.getProvider("auth-internal").initialize()})),(0,Ie.om)(new Te.uA("auth-internal",h=>{const v=Hn(h.getProvider("auth").getImmediate());return new wa(v)},"PRIVATE").setInstantiationMode("EXPLICIT")),(0,Ie.KO)(Fd,"1.7.4",function xc(E){switch(E){case"Node":return"node";case"ReactNative":return"rn";case"Worker":return"webworker";case"Cordova":return"cordova";case"WebExtension":return"web-extension";default:return}}(E)),(0,Ie.KO)(Fd,"1.7.4","esm2017")}("Browser");var Ds=B(1985);function zu(E){return new Ds.c(function(h){return{unsubscribe:Oi(E,h.next.bind(h),h.error.bind(h),h.complete.bind(h))}})}class qa{constructor(h){return h}}class Al{constructor(){return(0,g.CA)("auth")}}const eu=new d.nKC("angularfire2.auth-instances");function af(E){return(h,v)=>{const b=h.runOutsideAngular(()=>E(v));return new qa(b)}}const lf={provide:Al,deps:[[new d.Xx1,eu]]},sg={provide:qa,useFactory:function Ud(E,h){const v=(0,g.lR)("auth",E,h);return v&&new qa(v)},deps:[[new d.Xx1,eu],ge.XU]};function Cl(E,...h){return(0,Oe.KO)("angularfire",g.xv.full,"auth"),(0,d.EmA)([sg,lf,{provide:eu,useFactory:af(E),multi:!0,deps:[d.SKi,d.zZn,g.u0,ge.gL,[new d.Xx1,g.Jv],...h]}])}const Fc=(0,g.S3)(zu,!0),Hu=(0,g.S3)(ws,!0),ag=(0,g.S3)(Vd,!0),qu=(0,g.S3)(Ss,!0)},4262:(En,bt,B)=>{"use strict";B.d(bt,{_7:()=>vh,H9:()=>sm,x7:()=>lm,aU:()=>um,hV:()=>Yv,BN:()=>T0});var Ue,Ve,g=B(3586),d=B(4438),ge=B(7440),Oe=B(8737),Q=B(2214),Ie=B(467),ne=B(7852),Qe=B(1362),tt=B(8041),Te=B(1076),_e=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Fe={};(function(){var l;function s(){this.blockSize=-1,this.blockSize=64,this.g=Array(4),this.B=Array(this.blockSize),this.o=this.h=0,this.s()}function u(ft,$e,et){et||(et=0);var pt=Array(16);if("string"==typeof $e)for(var It=0;16>It;++It)pt[It]=$e.charCodeAt(et++)|$e.charCodeAt(et++)<<8|$e.charCodeAt(et++)<<16|$e.charCodeAt(et++)<<24;else for(It=0;16>It;++It)pt[It]=$e[et++]|$e[et++]<<8|$e[et++]<<16|$e[et++]<<24;var Nt=ft.g[3],Ze=($e=ft.g[0])+(Nt^(et=ft.g[1])&((It=ft.g[2])^Nt))+pt[0]+3614090360&4294967295;Ze=(et=(It=(Nt=($e=(et=(It=(Nt=($e=(et=(It=(Nt=($e=(et=(It=(Nt=($e=(et=(It=(Nt=($e=(et=(It=(Nt=($e=(et=(It=(Nt=($e=(et=(It=(Nt=($e=(et=(It=(Nt=($e=(et=(It=(Nt=($e=(et=(It=(Nt=($e=(et=(It=(Nt=($e=(et=(It=(Nt=($e=(et=(It=(Nt=($e=(et=(It=(Nt=($e=et+(Ze<<7&4294967295|Ze>>>25))+((Ze=Nt+(It^$e&(et^It))+pt[1]+3905402710&4294967295)<<12&4294967295|Ze>>>20))+((Ze=It+(et^Nt&($e^et))+pt[2]+606105819&4294967295)<<17&4294967295|Ze>>>15))+((Ze=et+($e^It&(Nt^$e))+pt[3]+3250441966&4294967295)<<22&4294967295|Ze>>>10))+((Ze=$e+(Nt^et&(It^Nt))+pt[4]+4118548399&4294967295)<<7&4294967295|Ze>>>25))+((Ze=Nt+(It^$e&(et^It))+pt[5]+1200080426&4294967295)<<12&4294967295|Ze>>>20))+((Ze=It+(et^Nt&($e^et))+pt[6]+2821735955&4294967295)<<17&4294967295|Ze>>>15))+((Ze=et+($e^It&(Nt^$e))+pt[7]+4249261313&4294967295)<<22&4294967295|Ze>>>10))+((Ze=$e+(Nt^et&(It^Nt))+pt[8]+1770035416&4294967295)<<7&4294967295|Ze>>>25))+((Ze=Nt+(It^$e&(et^It))+pt[9]+2336552879&4294967295)<<12&4294967295|Ze>>>20))+((Ze=It+(et^Nt&($e^et))+pt[10]+4294925233&4294967295)<<17&4294967295|Ze>>>15))+((Ze=et+($e^It&(Nt^$e))+pt[11]+2304563134&4294967295)<<22&4294967295|Ze>>>10))+((Ze=$e+(Nt^et&(It^Nt))+pt[12]+1804603682&4294967295)<<7&4294967295|Ze>>>25))+((Ze=Nt+(It^$e&(et^It))+pt[13]+4254626195&4294967295)<<12&4294967295|Ze>>>20))+((Ze=It+(et^Nt&($e^et))+pt[14]+2792965006&4294967295)<<17&4294967295|Ze>>>15))+((Ze=et+($e^It&(Nt^$e))+pt[15]+1236535329&4294967295)<<22&4294967295|Ze>>>10))+((Ze=$e+(It^Nt&(et^It))+pt[1]+4129170786&4294967295)<<5&4294967295|Ze>>>27))+((Ze=Nt+(et^It&($e^et))+pt[6]+3225465664&4294967295)<<9&4294967295|Ze>>>23))+((Ze=It+($e^et&(Nt^$e))+pt[11]+643717713&4294967295)<<14&4294967295|Ze>>>18))+((Ze=et+(Nt^$e&(It^Nt))+pt[0]+3921069994&4294967295)<<20&4294967295|Ze>>>12))+((Ze=$e+(It^Nt&(et^It))+pt[5]+3593408605&4294967295)<<5&4294967295|Ze>>>27))+((Ze=Nt+(et^It&($e^et))+pt[10]+38016083&4294967295)<<9&4294967295|Ze>>>23))+((Ze=It+($e^et&(Nt^$e))+pt[15]+3634488961&4294967295)<<14&4294967295|Ze>>>18))+((Ze=et+(Nt^$e&(It^Nt))+pt[4]+3889429448&4294967295)<<20&4294967295|Ze>>>12))+((Ze=$e+(It^Nt&(et^It))+pt[9]+568446438&4294967295)<<5&4294967295|Ze>>>27))+((Ze=Nt+(et^It&($e^et))+pt[14]+3275163606&4294967295)<<9&4294967295|Ze>>>23))+((Ze=It+($e^et&(Nt^$e))+pt[3]+4107603335&4294967295)<<14&4294967295|Ze>>>18))+((Ze=et+(Nt^$e&(It^Nt))+pt[8]+1163531501&4294967295)<<20&4294967295|Ze>>>12))+((Ze=$e+(It^Nt&(et^It))+pt[13]+2850285829&4294967295)<<5&4294967295|Ze>>>27))+((Ze=Nt+(et^It&($e^et))+pt[2]+4243563512&4294967295)<<9&4294967295|Ze>>>23))+((Ze=It+($e^et&(Nt^$e))+pt[7]+1735328473&4294967295)<<14&4294967295|Ze>>>18))+((Ze=et+(Nt^$e&(It^Nt))+pt[12]+2368359562&4294967295)<<20&4294967295|Ze>>>12))+((Ze=$e+(et^It^Nt)+pt[5]+4294588738&4294967295)<<4&4294967295|Ze>>>28))+((Ze=Nt+($e^et^It)+pt[8]+2272392833&4294967295)<<11&4294967295|Ze>>>21))+((Ze=It+(Nt^$e^et)+pt[11]+1839030562&4294967295)<<16&4294967295|Ze>>>16))+((Ze=et+(It^Nt^$e)+pt[14]+4259657740&4294967295)<<23&4294967295|Ze>>>9))+((Ze=$e+(et^It^Nt)+pt[1]+2763975236&4294967295)<<4&4294967295|Ze>>>28))+((Ze=Nt+($e^et^It)+pt[4]+1272893353&4294967295)<<11&4294967295|Ze>>>21))+((Ze=It+(Nt^$e^et)+pt[7]+4139469664&4294967295)<<16&4294967295|Ze>>>16))+((Ze=et+(It^Nt^$e)+pt[10]+3200236656&4294967295)<<23&4294967295|Ze>>>9))+((Ze=$e+(et^It^Nt)+pt[13]+681279174&4294967295)<<4&4294967295|Ze>>>28))+((Ze=Nt+($e^et^It)+pt[0]+3936430074&4294967295)<<11&4294967295|Ze>>>21))+((Ze=It+(Nt^$e^et)+pt[3]+3572445317&4294967295)<<16&4294967295|Ze>>>16))+((Ze=et+(It^Nt^$e)+pt[6]+76029189&4294967295)<<23&4294967295|Ze>>>9))+((Ze=$e+(et^It^Nt)+pt[9]+3654602809&4294967295)<<4&4294967295|Ze>>>28))+((Ze=Nt+($e^et^It)+pt[12]+3873151461&4294967295)<<11&4294967295|Ze>>>21))+((Ze=It+(Nt^$e^et)+pt[15]+530742520&4294967295)<<16&4294967295|Ze>>>16))+((Ze=et+(It^Nt^$e)+pt[2]+3299628645&4294967295)<<23&4294967295|Ze>>>9))+((Ze=$e+(It^(et|~Nt))+pt[0]+4096336452&4294967295)<<6&4294967295|Ze>>>26))+((Ze=Nt+(et^($e|~It))+pt[7]+1126891415&4294967295)<<10&4294967295|Ze>>>22))+((Ze=It+($e^(Nt|~et))+pt[14]+2878612391&4294967295)<<15&4294967295|Ze>>>17))+((Ze=et+(Nt^(It|~$e))+pt[5]+4237533241&4294967295)<<21&4294967295|Ze>>>11))+((Ze=$e+(It^(et|~Nt))+pt[12]+1700485571&4294967295)<<6&4294967295|Ze>>>26))+((Ze=Nt+(et^($e|~It))+pt[3]+2399980690&4294967295)<<10&4294967295|Ze>>>22))+((Ze=It+($e^(Nt|~et))+pt[10]+4293915773&4294967295)<<15&4294967295|Ze>>>17))+((Ze=et+(Nt^(It|~$e))+pt[1]+2240044497&4294967295)<<21&4294967295|Ze>>>11))+((Ze=$e+(It^(et|~Nt))+pt[8]+1873313359&4294967295)<<6&4294967295|Ze>>>26))+((Ze=Nt+(et^($e|~It))+pt[15]+4264355552&4294967295)<<10&4294967295|Ze>>>22))+((Ze=It+($e^(Nt|~et))+pt[6]+2734768916&4294967295)<<15&4294967295|Ze>>>17))+((Ze=et+(Nt^(It|~$e))+pt[13]+1309151649&4294967295)<<21&4294967295|Ze>>>11))+((Nt=($e=et+((Ze=$e+(It^(et|~Nt))+pt[4]+4149444226&4294967295)<<6&4294967295|Ze>>>26))+((Ze=Nt+(et^($e|~It))+pt[11]+3174756917&4294967295)<<10&4294967295|Ze>>>22))^((It=Nt+((Ze=It+($e^(Nt|~et))+pt[2]+718787259&4294967295)<<15&4294967295|Ze>>>17))|~$e))+pt[9]+3951481745&4294967295,ft.g[0]=ft.g[0]+$e&4294967295,ft.g[1]=ft.g[1]+(It+(Ze<<21&4294967295|Ze>>>11))&4294967295,ft.g[2]=ft.g[2]+It&4294967295,ft.g[3]=ft.g[3]+Nt&4294967295}function _(ft,$e){this.h=$e;for(var et=[],pt=!0,It=ft.length-1;0<=It;It--){var Nt=0|ft[It];pt&&Nt==$e||(et[It]=Nt,pt=!1)}this.g=et}(function n(ft,$e){function et(){}et.prototype=$e.prototype,ft.D=$e.prototype,ft.prototype=new et,ft.prototype.constructor=ft,ft.C=function(pt,It,Nt){for(var Ze=Array(arguments.length-2),Pl=2;Plthis.h?this.blockSize:2*this.blockSize)-this.h);ft[0]=128;for(var $e=1;$e$e;++$e)for(var pt=0;32>pt;pt+=8)ft[et++]=this.g[$e]>>>pt&255;return ft};var w={};function N(ft){return-128<=ft&&128>ft?function f(ft,$e){var et=w;return Object.prototype.hasOwnProperty.call(et,ft)?et[ft]:et[ft]=$e(ft)}(ft,function($e){return new _([0|$e],0>$e?-1:0)}):new _([0|ft],0>ft?-1:0)}function j(ft){if(isNaN(ft)||!isFinite(ft))return be;if(0>ft)return ln(j(-ft));for(var $e=[],et=1,pt=0;ft>=et;pt++)$e[pt]=ft/et|0,et*=4294967296;return new _($e,0)}var be=N(0),We=N(1),Rt=N(16777216);function nn(ft){if(0!=ft.h)return!1;for(var $e=0;$e>>16,ft[$e]&=65535,$e++}function Qn(ft,$e){this.g=ft,this.h=$e}function Rr(ft,$e){if(nn($e))throw Error("division by zero");if(nn(ft))return new Qn(be,be);if(pn(ft))return $e=Rr(ln(ft),$e),new Qn(ln($e.g),ln($e.h));if(pn($e))return $e=Rr(ft,ln($e)),new Qn(ln($e.g),$e.h);if(30=pt.l(ft);)et=Ii(et),pt=Ii(pt);var It=zr(et,1),Nt=zr(pt,1);for(pt=zr(pt,2),et=zr(et,2);!nn(pt);){var Ze=Nt.add(pt);0>=Ze.l(ft)&&(It=It.add(et),Nt=Ze),pt=zr(pt,1),et=zr(et,1)}return $e=zn(ft,It.j($e)),new Qn(It,$e)}for(It=be;0<=ft.l($e);){for(et=Math.max(1,Math.floor(ft.m()/$e.m())),pt=48>=(pt=Math.ceil(Math.log(et)/Math.LN2))?1:Math.pow(2,pt-48),Ze=(Nt=j(et)).j($e);pn(Ze)||0>>31;return new _(et,ft.h)}function zr(ft,$e){var et=$e>>5;$e%=32;for(var pt=ft.g.length-et,It=[],Nt=0;Nt>>$e|ft.i(Nt+et+1)<<32-$e:ft.i(Nt+et);return new _(It,ft.h)}(l=_.prototype).m=function(){if(pn(this))return-ln(this).m();for(var ft=0,$e=1,et=0;et(ft=ft||10)||36>>0).toString(ft);if(nn(et=It))return Nt+pt;for(;6>Nt.length;)Nt="0"+Nt;pt=Nt+pt}},l.i=function(ft){return 0>ft?0:ft>>16)+(this.i(It)>>>16)+(ft.i(It)>>>16);pt=Ze>>>16,et[It]=(Ze&=65535)<<16|(Nt&=65535)}return new _(et,-2147483648&et[et.length-1]?-1:0)},l.j=function(ft){if(nn(this)||nn(ft))return be;if(pn(this))return pn(ft)?ln(this).j(ln(ft)):ln(ln(this).j(ft));if(pn(ft))return ln(this.j(ln(ft)));if(0>this.l(Rt)&&0>ft.l(Rt))return j(this.m()*ft.m());for(var $e=this.g.length+ft.g.length,et=[],pt=0;pt<2*$e;pt++)et[pt]=0;for(pt=0;pt>>16,Ze=65535&this.i(pt),Pl=ft.i(It)>>>16,ac=65535&ft.i(It);et[2*pt+2*It]+=Ze*ac,ar(et,2*pt+2*It),et[2*pt+2*It+1]+=Nt*ac,ar(et,2*pt+2*It+1),et[2*pt+2*It+1]+=Ze*Pl,ar(et,2*pt+2*It+1),et[2*pt+2*It+2]+=Nt*Pl,ar(et,2*pt+2*It+2)}for(pt=0;pt<$e;pt++)et[pt]=et[2*pt+1]<<16|et[2*pt];for(pt=$e;pt<2*$e;pt++)et[pt]=0;return new _(et,0)},l.A=function(ft){return Rr(this,ft).h},l.and=function(ft){for(var $e=Math.max(this.g.length,ft.g.length),et=[],pt=0;pt<$e;pt++)et[pt]=this.i(pt)&ft.i(pt);return new _(et,this.h&ft.h)},l.or=function(ft){for(var $e=Math.max(this.g.length,ft.g.length),et=[],pt=0;pt<$e;pt++)et[pt]=this.i(pt)|ft.i(pt);return new _(et,this.h|ft.h)},l.xor=function(ft){for(var $e=Math.max(this.g.length,ft.g.length),et=[],pt=0;pt<$e;pt++)et[pt]=this.i(pt)^ft.i(pt);return new _(et,this.h^ft.h)},s.prototype.digest=s.prototype.v,s.prototype.reset=s.prototype.s,s.prototype.update=s.prototype.u,Ve=Fe.Md5=s,_.prototype.add=_.prototype.add,_.prototype.multiply=_.prototype.j,_.prototype.modulo=_.prototype.A,_.prototype.compare=_.prototype.l,_.prototype.toNumber=_.prototype.m,_.prototype.toString=_.prototype.toString,_.prototype.getBits=_.prototype.i,_.fromNumber=j,_.fromString=function se(ft,$e){if(0==ft.length)throw Error("number format error: empty string");if(2>($e=$e||10)||36<$e)throw Error("radix out of range: "+$e);if("-"==ft.charAt(0))return ln(se(ft.substring(1),$e));if(0<=ft.indexOf("-"))throw Error('number format error: interior "-" character');for(var et=j(Math.pow($e,8)),pt=be,It=0;ItNt?(Nt=j(Math.pow($e,Nt)),pt=pt.j(Nt).add(j(Ze))):pt=(pt=pt.j(et)).add(j(Ze))}return pt},Ue=Fe.Integer=_}).apply(typeof _e<"u"?_e:typeof self<"u"?self:typeof window<"u"?window:{});var ct,at,Mt,mt,vt,Re,je,Ke,Ct,Ye=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},gt={};(function(){var l,n="function"==typeof Object.defineProperties?Object.defineProperty:function(m,k,G){return m==Array.prototype||m==Object.prototype||(m[k]=G.value),m},s=function i(m){m=["object"==typeof globalThis&&globalThis,m,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof Ye&&Ye];for(var k=0;k{throw m},0)}function Ze(){var m=hm;let k=null;return m.g&&(k=m.g,m.g=m.g.next,m.g||(m.h=null),k.next=null),k}var ac=new class zn{constructor(k,G){this.i=k,this.j=G,this.h=0,this.g=null}get(){let k;return 0new D0,m=>m.reset());class D0{constructor(){this.next=this.g=this.h=null}set(k,G){this.h=k,this.g=G,this.next=null}reset(){this.next=this.g=this.h=null}}let sd,yh=!1,hm=new class Pl{constructor(){this.h=this.g=null}add(k,G){const ye=ac.get();ye.set(k,G),this.h?this.h.next=ye:this.g=ye,this.h=ye}},fm=()=>{const m=w.Promise.resolve(void 0);sd=()=>{m.then(b0)}};var b0=()=>{for(var m;m=Ze();){try{m.h.call(m.g)}catch(G){Nt(G)}var k=ac;k.j(m),100>k.h&&(k.h++,m.next=k.g,k.g=m)}yh=!1};function gu(){this.s=this.s,this.C=this.C}function mo(m,k){this.type=m,this.g=this.target=k,this.defaultPrevented=!1}gu.prototype.s=!1,gu.prototype.ma=function(){this.s||(this.s=!0,this.N())},gu.prototype.N=function(){if(this.C)for(;this.C.length;)this.C.shift()()},mo.prototype.h=function(){this.defaultPrevented=!0};var pm=function(){if(!w.addEventListener||!Object.defineProperty)return!1;var m=!1,k=Object.defineProperty({},"passive",{get:function(){m=!0}});try{const G=()=>{};w.addEventListener("test",G,k),w.removeEventListener("test",G,k)}catch{}return m}();function Ih(m,k){if(mo.call(this,m?m.type:""),this.relatedTarget=this.g=this.target=null,this.button=this.screenY=this.screenX=this.clientY=this.clientX=0,this.key="",this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1,this.state=null,this.pointerId=0,this.pointerType="",this.i=null,m){var G=this.type=m.type,ye=m.changedTouches&&m.changedTouches.length?m.changedTouches[0]:null;if(this.target=m.target||m.srcElement,this.g=k,k=m.relatedTarget){if(Ii){e:{try{Rr(k.nodeName);var wt=!0;break e}catch{}wt=!1}wt||(k=null)}}else"mouseover"==G?k=m.fromElement:"mouseout"==G&&(k=m.toElement);this.relatedTarget=k,ye?(this.clientX=void 0!==ye.clientX?ye.clientX:ye.pageX,this.clientY=void 0!==ye.clientY?ye.clientY:ye.pageY,this.screenX=ye.screenX||0,this.screenY=ye.screenY||0):(this.clientX=void 0!==m.clientX?m.clientX:m.pageX,this.clientY=void 0!==m.clientY?m.clientY:m.pageY,this.screenX=m.screenX||0,this.screenY=m.screenY||0),this.button=m.button,this.key=m.key||"",this.ctrlKey=m.ctrlKey,this.altKey=m.altKey,this.shiftKey=m.shiftKey,this.metaKey=m.metaKey,this.pointerId=m.pointerId||0,this.pointerType="string"==typeof m.pointerType?m.pointerType:i_[m.pointerType]||"",this.state=m.state,this.i=m,m.defaultPrevented&&Ih.aa.h.call(this)}}nn(Ih,mo);var i_={2:"touch",3:"pen",4:"mouse"};Ih.prototype.h=function(){Ih.aa.h.call(this);var m=this.i;m.preventDefault?m.preventDefault():m.returnValue=!1};var Eh="closure_listenable_"+(1e6*Math.random()|0),o_=0;function XE(m,k,G,ye,wt){this.listener=m,this.proxy=null,this.src=k,this.type=G,this.capture=!!ye,this.ha=wt,this.key=++o_,this.da=this.fa=!1}function ap(m){m.da=!0,m.listener=null,m.proxy=null,m.src=null,m.ha=null}function lc(m){this.src=m,this.g={},this.h=0}function lp(m,k){var G=k.type;if(G in m.g){var zt,ye=m.g[G],wt=Array.prototype.indexOf.call(ye,k,void 0);(zt=0<=wt)&&Array.prototype.splice.call(ye,wt,1),zt&&(ap(k),0==m.g[G].length&&(delete m.g[G],m.h--))}}function gm(m,k,G,ye){for(var wt=0;wt>>0);function Em(m){return"function"==typeof m?m:(m[Ah]||(m[Ah]=function(k){return m.handleEvent(k)}),m[Ah])}function ns(){gu.call(this),this.i=new lc(this),this.M=this,this.F=null}function jo(m,k){var G,ye=m.F;if(ye)for(G=[];ye;ye=ye.F)G.push(ye);if(m=m.M,ye=k.type||k,"string"==typeof k)k=new mo(k,m);else if(k instanceof mo)k.target=k.target||m;else{var wt=k;pt(k=new mo(ye,m),wt)}if(wt=!0,G)for(var zt=G.length-1;0<=zt;zt--){var Sn=k.g=G[zt];wt=Ch(Sn,ye,!0,k)&&wt}if(wt=Ch(Sn=k.g=m,ye,!0,k)&&wt,wt=Ch(Sn,ye,!1,k)&&wt,G)for(zt=0;zt{m.g=null,m.i&&(m.i=!1,Cm(m))},m.l);const k=m.h;m.h=null,m.m.apply(null,k)}nn(ns,gu),ns.prototype[Eh]=!0,ns.prototype.removeEventListener=function(m,k,G,ye){_m(this,m,k,G,ye)},ns.prototype.N=function(){if(ns.aa.N.call(this),this.i){var k,m=this.i;for(k in m.g){for(var G=m.g[k],ye=0;yeye.length)){var wt=ye[1];if(Array.isArray(wt)&&!(1>wt.length)){var zt=wt[0];if("noop"!=zt&&"stop"!=zt&&"close"!=zt)for(var Sn=1;Snk.length?Sm:(k=k.slice(ye,ye+G),m.C=ye+G,k))}function wh(m){m.S=Date.now()+m.I,mp(m,m.I)}function mp(m,k){if(null!=m.B)throw Error("WatchDog timer not null");m.B=hp(We(m.ba,m),k)}function vp(m){m.B&&(w.clearTimeout(m.B),m.B=null)}function Sh(m){0==m.j.G||m.J||B0(m.j,m)}function Iu(m){vp(m);var k=m.M;k&&"function"==typeof k.ma&&k.ma(),m.M=null,Tm(m.U),m.g&&(k=m.g,m.g=null,k.abort(),k.ma())}function Rh(m,k){try{var G=m.j;if(0!=G.G&&(G.g==m||Mm(G.h,m)))if(!m.K&&Mm(G.h,m)&&3==G.G){try{var ye=G.Da.g.parse(k)}catch{ye=null}if(Array.isArray(ye)&&3==ye.length){var wt=ye;if(0==wt[0]){e:if(!G.u){if(G.g){if(!(G.g.F+3e3wt[2]&&G.F&&0==G.v&&!G.C&&(G.C=hp(We(G.Za,G),6e3));if(1>=y_(G.h)&&G.ca){try{G.ca()}catch{}G.ca=void 0}}else Au(G,11)}else if((m.K||G.g==m)&&Vh(G),!ar(k))for(wt=G.Da.g.parse(k),k=0;khs)&&(3!=hs||this.g&&(this.h.h||this.g.oa()||b_(this.g)))){this.J||4!=hs||7==k||cc(),vp(this);var G=this.g.Z();this.X=G;t:if(g_(this)){var ye=b_(this.g);m="";var wt=ye.length,zt=4==Eu(this.g);if(!this.h.i){if(typeof TextDecoder>"u"){Iu(this),Sh(this);var Sn="";break t}this.h.i=new w.TextDecoder}for(k=0;k=m.j}function y_(m){return m.h?1:m.g?m.g.size:0}function Mm(m,k){return m.h?m.h==k:!!m.g&&m.g.has(k)}function Mh(m,k){m.g?m.g.add(k):m.h=k}function _p(m,k){m.h&&m.h==k?m.h=null:m.g&&m.g.has(k)&&m.g.delete(k)}function Pm(m){if(null!=m.h)return m.i.concat(m.h.D);if(null!=m.g&&0!==m.g.size){let k=m.i;for(const G of m.g.values())k=k.concat(G.D);return k}return pn(m.i)}function I_(m,k){if(m.forEach&&"function"==typeof m.forEach)m.forEach(k,void 0);else if(N(m)||"string"==typeof m)Array.prototype.forEach.call(m,k,void 0);else for(var G=function Nm(m){if(m.na&&"function"==typeof m.na)return m.na();if(!m.V||"function"!=typeof m.V){if(typeof Map<"u"&&m instanceof Map)return Array.from(m.keys());if(!(typeof Set<"u"&&m instanceof Set)){if(N(m)||"string"==typeof m){var k=[];m=m.length;for(var G=0;Gk)throw Error("Bad port number "+k);m.s=k}else m.s=null}function Om(m,k,G){k instanceof Nh?(m.i=k,function T_(m,k){k&&!m.j&&(xl(m),m.i=null,m.g.forEach(function(G,ye){var wt=ye.toLowerCase();ye!=wt&&(km(this,ye),Fm(this,wt,G))},m)),m.j=k}(m.i,m.h)):(G||(k=gd(k,QE)),m.i=new Nh(k,m.h))}function qi(m,k,G){m.i.set(k,G)}function Ph(m){return qi(m,"zx",Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^Date.now()).toString(36)),m}function xh(m,k){return m?k?decodeURI(m.replace(/%25/g,"%2525")):decodeURIComponent(m):""}function gd(m,k,G){return"string"==typeof m?(m=encodeURI(m).replace(k,x0),G&&(m=m.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),m):null}function x0(m){return"%"+((m=m.charCodeAt(0))>>4&15).toString(16)+(15&m).toString(16)}dc.prototype.toString=function(){var m=[],k=this.j;k&&m.push(gd(k,yp,!0),":");var G=this.g;return(G||"file"==k)&&(m.push("//"),(k=this.o)&&m.push(gd(k,yp,!0),"@"),m.push(encodeURIComponent(String(G)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),null!=(G=this.s)&&m.push(":",String(G))),(G=this.l)&&(this.g&&"/"!=G.charAt(0)&&m.push("/"),m.push(gd(G,"/"==G.charAt(0)?C_:A_,!0))),(G=this.i.toString())&&m.push("?",G),(G=this.m)&&m.push("#",gd(G,YE)),m.join("")};var yp=/[#\/\?@]/g,A_=/[#\?:]/g,C_=/[#\?]/g,QE=/[#\?@]/g,YE=/#/g;function Nh(m,k){this.h=this.g=null,this.i=m||null,this.j=!!k}function xl(m){m.g||(m.g=new Map,m.h=0,m.i&&function P0(m,k){if(m){m=m.split("&");for(var G=0;G{}),1<=this.readyState&&this.g&&4!=this.readyState&&(this.g=!1,Ap(this)),this.readyState=0},l.Sa=function(m){if(this.g&&(this.l=m,this.h||(this.status=this.l.status,this.statusText=this.l.statusText,this.h=m.headers,this.readyState=2,Cp(this)),this.g&&(this.readyState=3,Cp(this),this.g)))if("arraybuffer"===this.responseType)m.arrayBuffer().then(this.Qa.bind(this),this.ga.bind(this));else if(typeof w.ReadableStream<"u"&&"body"in m){if(this.j=m.body.getReader(),this.o){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');this.response=[]}else this.response=this.responseText="",this.v=new TextDecoder;O0(this)}else m.text().then(this.Ra.bind(this),this.ga.bind(this))},l.Pa=function(m){if(this.g){if(this.o&&m.value)this.response.push(m.value);else if(!this.o){var k=m.value?m.value:new Uint8Array(0);(k=this.v.decode(k,{stream:!m.done}))&&(this.response=this.responseText+=k)}m.done?Ap(this):Cp(this),3==this.readyState&&O0(this)}},l.Ra=function(m){this.g&&(this.response=this.responseText=m,Ap(this))},l.Qa=function(m){this.g&&(this.response=m,Ap(this))},l.ga=function(){this.g&&Ap(this)},l.setRequestHeader=function(m,k){this.u.append(m,k)},l.getResponseHeader=function(m){return this.h&&this.h.get(m.toLowerCase())||""},l.getAllResponseHeaders=function(){if(!this.h)return"";const m=[],k=this.h.entries();for(var G=k.next();!G.done;)m.push((G=G.value)[0]+": "+G[1]),G=k.next();return m.join("\r\n")},Object.defineProperty(Vm.prototype,"withCredentials",{get:function(){return"include"===this.m},set:function(m){this.m=m?"include":"same-origin"}}),nn(vo,ns);var eA=/^https?$/i,tA=["POST","PUT"];function k0(m,k){m.h=!1,m.g&&(m.j=!0,m.g.abort(),m.j=!1),m.l=k,m.m=5,F0(m),Um(m)}function F0(m){m.A||(m.A=!0,jo(m,"complete"),jo(m,"error"))}function V0(m){if(m.h&&typeof _<"u"&&(!m.v[1]||4!=Eu(m)||2!=m.Z()))if(m.u&&4==Eu(m))Am(m.Ea,0,m);else if(jo(m,"readystatechange"),4==Eu(m)){m.h=!1;try{const Sn=m.Z();e:switch(Sn){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var k=!0;break e;default:k=!1}var G;if(!(G=k)){var ye;if(ye=0===Sn){var wt=String(m.D).match(E_)[1]||null;!wt&&w.self&&w.self.location&&(wt=w.self.location.protocol.slice(0,-1)),ye=!eA.test(wt?wt.toLowerCase():"")}G=ye}if(G)jo(m,"complete"),jo(m,"success");else{m.m=6;try{var zt=2{}:null;m.g=null,m.v=null,k||jo(m,"ready");try{G.onreadystatechange=ye}catch{}}}function L0(m){m.I&&(w.clearTimeout(m.I),m.I=null)}function Eu(m){return m.g?m.g.readyState:0}function b_(m){try{if(!m.g)return null;if("response"in m.g)return m.g.response;switch(m.H){case"":case"text":return m.g.responseText;case"arraybuffer":if("mozResponseArrayBuffer"in m.g)return m.g.mozResponseArrayBuffer}return null}catch{return null}}function Nl(m,k,G){return G&&G.internalChannelParams&&G.internalChannelParams[m]||k}function w_(m){this.Aa=0,this.i=[],this.j=new _u,this.ia=this.qa=this.I=this.W=this.g=this.ya=this.D=this.H=this.m=this.S=this.o=null,this.Ya=this.U=0,this.Va=Nl("failFast",!1,m),this.F=this.C=this.u=this.s=this.l=null,this.X=!0,this.za=this.T=-1,this.Y=this.v=this.B=0,this.Ta=Nl("baseRetryDelayMs",5e3,m),this.cb=Nl("retryDelaySeedMs",1e4,m),this.Wa=Nl("forwardChannelMaxRetries",2,m),this.wa=Nl("forwardChannelRequestTimeoutMs",2e4,m),this.pa=m&&m.xmlHttpFactory||void 0,this.Xa=m&&m.Tb||void 0,this.Ca=m&&m.useFetchStreams||!1,this.L=void 0,this.J=m&&m.supportsCrossDomainXhr||!1,this.K="",this.h=new Rm(m&&m.concurrentRequestLimit),this.Da=new ZE,this.P=m&&m.fastHandshake||!1,this.O=m&&m.encodeInitMessageHeaders||!1,this.P&&this.O&&(this.O=!1),this.Ua=m&&m.Rb||!1,m&&m.xa&&this.j.xa(),m&&m.forceLongPolling&&(this.X=!1),this.ba=!this.P&&this.X&&m&&m.detectBufferingProxy||!1,this.ja=void 0,m&&m.longPollingTimeout&&0hi)zt=Math.max(0,wt[io].g-100),Vi=!1;else try{JE(rs,Sn,"req"+hi+"_")}catch{ye&&ye(rs)}}if(Vi){ye=Sn.join("&");break e}}}return m=m.i.splice(0,G),k.D=m,ye}function Bm(m){if(!m.g&&!m.u){m.Y=1;var k=m.Fa;sd||fm(),yh||(sd(),yh=!0),hm.add(k,m),m.v=0}}function jm(m){return!(m.g||m.u||3<=m.v||(m.Y++,m.u=hp(We(m.Fa,m),P_(m,m.v)),m.v++,0))}function Dp(m){null!=m.A&&(w.clearTimeout(m.A),m.A=null)}function $0(m){m.g=new yu(m,m.j,"rpc",m.Y),null===m.m&&(m.g.H=m.o),m.g.O=0;var k=nl(m.qa);qi(k,"RID","rpc"),qi(k,"SID",m.K),qi(k,"AID",m.T),qi(k,"CI",m.F?"0":"1"),!m.F&&m.ja&&qi(k,"TO",m.ja),qi(k,"TYPE","xmlhttp"),kh(m,k),m.m&&m.o&&Tp(k,m.m,m.o),m.L&&(m.g.I=m.L);var G=m.g;m=m.ia,G.L=1,G.v=Ph(nl(k)),G.m=null,G.P=!0,p_(G,m)}function Vh(m){null!=m.C&&(w.clearTimeout(m.C),m.C=null)}function B0(m,k){var G=null;if(m.g==k){Vh(m),Dp(m),m.g=null;var ye=2}else{if(!Mm(m.h,k))return;G=k.D,_p(m.h,k),ye=1}if(0!=m.G)if(k.o)if(1==ye){G=k.m?k.m.length:0,k=Date.now()-k.F;var wt=m.B;jo(ye=dp(),new cd(ye,G)),$m(m)}else Bm(m);else if(3==(wt=k.s)||0==wt&&0=m.h.j-(m.s?1:0)||(m.s?(m.i=k.D.concat(m.i),0):1==m.G||2==m.G||m.B>=(m.Va?0:m.Wa)||(m.s=hp(We(m.Ga,m,k),P_(m,m.B)),m.B++,0)))}(m,k)||2==ye&&jm(m)))switch(G&&0{ye.abort(),fc(0,0,!1,k)},1e4);fetch(m,{signal:ye.signal}).then(zt=>{clearTimeout(wt),fc(0,0,!!zt.ok,k)}).catch(()=>{clearTimeout(wt),fc(0,0,!1,k)})}(ye.toString(),G)}else uo(2);m.G=0,m.l&&m.l.sa(k),bp(m),R_(m)}function bp(m){if(m.G=0,m.ka=[],m.l){const k=Pm(m.h);(0!=k.length||0!=m.i.length)&&(ln(m.ka,k),ln(m.ka,m.i),m.h.i.length=0,pn(m.i),m.i.length=0),m.l.ra()}}function x_(m,k,G){var ye=G instanceof dc?nl(G):new dc(G);if(""!=ye.g)k&&(ye.g=k+"."+ye.g),pd(ye,ye.s);else{var wt=w.location;ye=wt.protocol,k=k?k+"."+wt.hostname:wt.hostname,wt=+wt.port;var zt=new dc(null);ye&&fd(zt,ye),k&&(zt.g=k),wt&&pd(zt,wt),G&&(zt.l=G),ye=zt}return k=m.ya,(G=m.D)&&k&&qi(ye,G,k),qi(ye,"VER",m.la),kh(m,ye),ye}function N_(m,k,G){if(k&&!m.J)throw Error("Can't create secondary domain capable XhrIo object.");return(k=new vo(m.Ca&&!m.pa?new Ep({eb:G}):m.pa)).Ha(m.J),k}function Lh(){}function wp(){}function Fs(m,k){ns.call(this),this.g=new w_(k),this.l=m,this.h=k&&k.messageUrlParams||null,m=k&&k.messageHeaders||null,k&&k.clientProtocolHeaderRequired&&(m?m["X-Client-Protocol"]="webchannel":m={"X-Client-Protocol":"webchannel"}),this.g.o=m,m=k&&k.initMessageHeaders||null,k&&k.messageContentType&&(m?m["X-WebChannel-Content-Type"]=k.messageContentType:m={"X-WebChannel-Content-Type":k.messageContentType}),k&&k.va&&(m?m["X-WebChannel-Client-Profile"]=k.va:m={"X-WebChannel-Client-Profile":k.va}),this.g.S=m,(m=k&&k.Sb)&&!ar(m)&&(this.g.m=m),this.v=k&&k.supportsCrossDomainXhr||!1,this.u=k&&k.sendRawJson||!1,(k=k&&k.httpSessionIdParam)&&!ar(k)&&(this.g.D=k,null!==(m=this.h)&&k in m&&k in(m=this.h)&&delete m[k]),this.j=new vd(this)}function O_(m){tl.call(this),m.__headers__&&(this.headers=m.__headers__,this.statusCode=m.__status__,delete m.__headers__,delete m.__status__);var k=m.__sm__;if(k){e:{for(const G in k){m=G;break e}m=void 0}(this.i=m)&&(m=this.i,k=null!==k&&m in k?k[m]:void 0),this.data=k}else this.data=m}function k_(){ld.call(this),this.status=1}function vd(m){this.g=m}(l=vo.prototype).Ha=function(m){this.J=m},l.ea=function(m,k,G,ye){if(this.g)throw Error("[goog.net.XhrIo] Object is active with another request="+this.D+"; newUri="+m);k=k?k.toUpperCase():"GET",this.D=m,this.l="",this.m=0,this.A=!1,this.h=!0,this.g=this.o?this.o.g():wm.g(),this.v=function Dm(m){return m.h||(m.h=m.i())}(this.o?this.o:wm),this.g.onreadystatechange=We(this.Ea,this);try{this.B=!0,this.g.open(k,String(m),!0),this.B=!1}catch(zt){return void k0(this,zt)}if(m=G||"",G=new Map(this.headers),ye)if(Object.getPrototypeOf(ye)===Object.prototype)for(var wt in ye)G.set(wt,ye[wt]);else{if("function"!=typeof ye.keys||"function"!=typeof ye.get)throw Error("Unknown input type for opt_headers: "+String(ye));for(const zt of ye.keys())G.set(zt,ye.get(zt))}ye=Array.from(G.keys()).find(zt=>"content-type"==zt.toLowerCase()),wt=w.FormData&&m instanceof w.FormData,!(0<=Array.prototype.indexOf.call(tA,k,void 0))||ye||wt||G.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");for(const[zt,Sn]of G)this.g.setRequestHeader(zt,Sn);this.H&&(this.g.responseType=this.H),"withCredentials"in this.g&&this.g.withCredentials!==this.J&&(this.g.withCredentials=this.J);try{L0(this),this.u=!0,this.g.send(m),this.u=!1}catch(zt){k0(this,zt)}},l.abort=function(m){this.g&&this.h&&(this.h=!1,this.j=!0,this.g.abort(),this.j=!1,this.m=m||7,jo(this,"complete"),jo(this,"abort"),Um(this))},l.N=function(){this.g&&(this.h&&(this.h=!1,this.j=!0,this.g.abort(),this.j=!1),Um(this,!0)),vo.aa.N.call(this)},l.Ea=function(){this.s||(this.B||this.u||this.j?V0(this):this.bb())},l.bb=function(){V0(this)},l.isActive=function(){return!!this.g},l.Z=function(){try{return 2=this.R)){var m=2*this.R;this.j.info("BP detection timer enabled: "+m),this.A=hp(We(this.ab,this),m)}},l.ab=function(){this.A&&(this.A=null,this.j.info("BP detection timeout reached."),this.j.info("Buffering proxy detected and switch to long-polling!"),this.F=!1,this.M=!0,uo(10),Oh(this),$0(this))},l.Za=function(){null!=this.C&&(this.C=null,Oh(this),jm(this),uo(19))},l.fb=function(m){m?(this.j.info("Successfully pinged google.com"),uo(2)):(this.j.info("Failed to ping google.com"),uo(1))},l.isActive=function(){return!!this.l&&this.l.isActive(this)},(l=Lh.prototype).ua=function(){},l.ta=function(){},l.sa=function(){},l.ra=function(){},l.isActive=function(){return!0},l.Na=function(){},wp.prototype.g=function(m,k){return new Fs(m,k)},nn(Fs,ns),Fs.prototype.m=function(){this.g.l=this.j,this.v&&(this.g.J=!0),this.g.connect(this.l,this.h||void 0)},Fs.prototype.close=function(){S_(this.g)},Fs.prototype.o=function(m){var k=this.g;if("string"==typeof m){var G={};G.__data__=m,m=G}else this.u&&((G={}).__data__=Dh(m),m=G);k.i.push(new v_(k.Ya++,m)),3==k.G&&$m(k)},Fs.prototype.N=function(){this.g.l=null,delete this.j,S_(this.g),delete this.g,Fs.aa.N.call(this)},nn(O_,tl),nn(k_,ld),nn(vd,Lh),vd.prototype.ua=function(){jo(this.g,"a")},vd.prototype.ta=function(m){jo(this.g,new O_(m))},vd.prototype.sa=function(m){jo(this.g,new k_)},vd.prototype.ra=function(){jo(this.g,"b")},wp.prototype.createWebChannel=wp.prototype.g,Fs.prototype.send=Fs.prototype.o,Fs.prototype.open=Fs.prototype.m,Fs.prototype.close=Fs.prototype.close,Ct=gt.createWebChannelTransport=function(){return new wp},Ke=gt.getStatEventTarget=function(){return dp()},je=gt.Event=vu,Re=gt.Stat={mb:0,pb:1,qb:2,Jb:3,Ob:4,Lb:5,Mb:6,Kb:7,Ib:8,Nb:9,PROXY:10,NOPROXY:11,Gb:12,Cb:13,Db:14,Bb:15,Eb:16,Fb:17,ib:18,hb:19,jb:20},pp.NO_ERROR=0,pp.TIMEOUT=8,pp.HTTP_ERROR=6,vt=gt.ErrorCode=pp,d_.COMPLETE="complete",mt=gt.EventType=d_,ad.EventType=uc,uc.OPEN="a",uc.CLOSE="b",uc.ERROR="c",uc.MESSAGE="d",ns.prototype.listen=ns.prototype.K,Mt=gt.WebChannel=ad,at=gt.FetchXmlHttpFactory=Ep,vo.prototype.listenOnce=vo.prototype.L,vo.prototype.getLastError=vo.prototype.Ka,vo.prototype.getLastErrorCode=vo.prototype.Ba,vo.prototype.getStatus=vo.prototype.Z,vo.prototype.getResponseJson=vo.prototype.Oa,vo.prototype.getResponseText=vo.prototype.oa,vo.prototype.send=vo.prototype.ea,vo.prototype.setWithCredentials=vo.prototype.Ha,ct=gt.XhrIo=vo}).apply(typeof Ye<"u"?Ye:typeof self<"u"?self:typeof window<"u"?window:{});const kt="@firebase/firestore";class ze{constructor(n){this.uid=n}isAuthenticated(){return null!=this.uid}toKey(){return this.isAuthenticated()?"uid:"+this.uid:"anonymous-user"}isEqual(n){return n.uid===this.uid}}ze.UNAUTHENTICATED=new ze(null),ze.GOOGLE_CREDENTIALS=new ze("google-credentials-uid"),ze.FIRST_PARTY=new ze("first-party-uid"),ze.MOCK_USER=new ze("mock-user");let Tt="10.12.1";const Lt=new tt.Vy("@firebase/firestore");function en(){return Lt.logLevel}function Be(l,...n){if(Lt.logLevel<=tt.$b.DEBUG){const i=n.map(Pe);Lt.debug(`Firestore (${Tt}): ${l}`,...i)}}function Pt(l,...n){if(Lt.logLevel<=tt.$b.ERROR){const i=n.map(Pe);Lt.error(`Firestore (${Tt}): ${l}`,...i)}}function rt(l,...n){if(Lt.logLevel<=tt.$b.WARN){const i=n.map(Pe);Lt.warn(`Firestore (${Tt}): ${l}`,...i)}}function Pe(l){if("string"==typeof l)return l;try{return JSON.stringify(l)}catch{return l}}function z(l="Unexpected state"){const n=`FIRESTORE (${Tt}) INTERNAL ASSERTION FAILED: `+l;throw Pt(n),new Error(n)}function q(l,n){l||z()}function he(l,n){return l}const ae={OK:"ok",CANCELLED:"cancelled",UNKNOWN:"unknown",INVALID_ARGUMENT:"invalid-argument",DEADLINE_EXCEEDED:"deadline-exceeded",NOT_FOUND:"not-found",ALREADY_EXISTS:"already-exists",PERMISSION_DENIED:"permission-denied",UNAUTHENTICATED:"unauthenticated",RESOURCE_EXHAUSTED:"resource-exhausted",FAILED_PRECONDITION:"failed-precondition",ABORTED:"aborted",OUT_OF_RANGE:"out-of-range",UNIMPLEMENTED:"unimplemented",INTERNAL:"internal",UNAVAILABLE:"unavailable",DATA_LOSS:"data-loss"};class me extends Te.g{constructor(n,i){super(n,i),this.code=n,this.message=i,this.toString=()=>`${this.name}: [code=${this.code}]: ${this.message}`}}class Ae{constructor(){this.promise=new Promise((n,i)=>{this.resolve=n,this.reject=i})}}class ut{constructor(n,i){this.user=i,this.type="OAuth",this.headers=new Map,this.headers.set("Authorization",`Bearer ${n}`)}}class Vt{getToken(){return Promise.resolve(null)}invalidateToken(){}start(n,i){n.enqueueRetryable(()=>i(ze.UNAUTHENTICATED))}shutdown(){}}class jt{constructor(n){this.token=n,this.changeListener=null}getToken(){return Promise.resolve(this.token)}invalidateToken(){}start(n,i){this.changeListener=i,n.enqueueRetryable(()=>i(this.token.user))}shutdown(){this.changeListener=null}}class vn{constructor(n){this.t=n,this.currentUser=ze.UNAUTHENTICATED,this.i=0,this.forceRefresh=!1,this.auth=null}start(n,i){var s=this;let u=this.i;const f=j=>this.i!==u?(u=this.i,i(j)):Promise.resolve();let _=new Ae;this.o=()=>{this.i++,this.currentUser=this.u(),_.resolve(),_=new Ae,n.enqueueRetryable(()=>f(this.currentUser))};const w=()=>{const j=_;n.enqueueRetryable((0,Ie.A)(function*(){yield j.promise,yield f(s.currentUser)}))},N=j=>{Be("FirebaseAuthCredentialsProvider","Auth detected"),this.auth=j,this.auth.addAuthTokenListener(this.o),w()};this.t.onInit(j=>N(j)),setTimeout(()=>{if(!this.auth){const j=this.t.getImmediate({optional:!0});j?N(j):(Be("FirebaseAuthCredentialsProvider","Auth not yet detected"),_.resolve(),_=new Ae)}},0),w()}getToken(){const n=this.i,i=this.forceRefresh;return this.forceRefresh=!1,this.auth?this.auth.getToken(i).then(s=>this.i!==n?(Be("FirebaseAuthCredentialsProvider","getToken aborted due to token change."),this.getToken()):s?(q("string"==typeof s.accessToken),new ut(s.accessToken,this.currentUser)):null):Promise.resolve(null)}invalidateToken(){this.forceRefresh=!0}shutdown(){this.auth&&this.auth.removeAuthTokenListener(this.o)}u(){const n=this.auth&&this.auth.getUid();return q(null===n||"string"==typeof n),new ze(n)}}class bn{constructor(n,i,s){this.l=n,this.h=i,this.P=s,this.type="FirstParty",this.user=ze.FIRST_PARTY,this.I=new Map}T(){return this.P?this.P():null}get headers(){this.I.set("X-Goog-AuthUser",this.l);const n=this.T();return n&&this.I.set("Authorization",n),this.h&&this.I.set("X-Goog-Iam-Authorization-Token",this.h),this.I}}class $n{constructor(n,i,s){this.l=n,this.h=i,this.P=s}getToken(){return Promise.resolve(new bn(this.l,this.h,this.P))}start(n,i){n.enqueueRetryable(()=>i(ze.FIRST_PARTY))}shutdown(){}invalidateToken(){}}class qn{constructor(n){this.value=n,this.type="AppCheck",this.headers=new Map,n&&n.length>0&&this.headers.set("x-firebase-appcheck",this.value)}}class er{constructor(n){this.A=n,this.forceRefresh=!1,this.appCheck=null,this.R=null}start(n,i){const s=f=>{null!=f.error&&Be("FirebaseAppCheckTokenProvider",`Error getting App Check token; using placeholder token instead. Error: ${f.error.message}`);const _=f.token!==this.R;return this.R=f.token,Be("FirebaseAppCheckTokenProvider",`Received ${_?"new":"existing"} token.`),_?i(f.token):Promise.resolve()};this.o=f=>{n.enqueueRetryable(()=>s(f))};const u=f=>{Be("FirebaseAppCheckTokenProvider","AppCheck detected"),this.appCheck=f,this.appCheck.addTokenListener(this.o)};this.A.onInit(f=>u(f)),setTimeout(()=>{if(!this.appCheck){const f=this.A.getImmediate({optional:!0});f?u(f):Be("FirebaseAppCheckTokenProvider","AppCheck not yet detected")}},0)}getToken(){const n=this.forceRefresh;return this.forceRefresh=!1,this.appCheck?this.appCheck.getToken(n).then(i=>i?(q("string"==typeof i.token),this.R=i.token,new qn(i.token)):null):Promise.resolve(null)}invalidateToken(){this.forceRefresh=!0}shutdown(){this.appCheck&&this.appCheck.removeTokenListener(this.o)}}function ir(l){const n=typeof self<"u"&&(self.crypto||self.msCrypto),i=new Uint8Array(l);if(n&&"function"==typeof n.getRandomValues)n.getRandomValues(i);else for(let s=0;sn?1:0}function yt(l,n,i){return l.length===n.length&&l.every((s,u)=>i(s,n[u]))}class Qt{constructor(n,i){if(this.seconds=n,this.nanoseconds=i,i<0)throw new me(ae.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+i);if(i>=1e9)throw new me(ae.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+i);if(n<-62135596800)throw new me(ae.INVALID_ARGUMENT,"Timestamp seconds out of range: "+n);if(n>=253402300800)throw new me(ae.INVALID_ARGUMENT,"Timestamp seconds out of range: "+n)}static now(){return Qt.fromMillis(Date.now())}static fromDate(n){return Qt.fromMillis(n.getTime())}static fromMillis(n){const i=Math.floor(n/1e3),s=Math.floor(1e6*(n-1e3*i));return new Qt(i,s)}toDate(){return new Date(this.toMillis())}toMillis(){return 1e3*this.seconds+this.nanoseconds/1e6}_compareTo(n){return this.seconds===n.seconds?Le(this.nanoseconds,n.nanoseconds):Le(this.seconds,n.seconds)}isEqual(n){return n.seconds===this.seconds&&n.nanoseconds===this.nanoseconds}toString(){return"Timestamp(seconds="+this.seconds+", nanoseconds="+this.nanoseconds+")"}toJSON(){return{seconds:this.seconds,nanoseconds:this.nanoseconds}}valueOf(){return String(this.seconds- -62135596800).padStart(12,"0")+"."+String(this.nanoseconds).padStart(9,"0")}}class tn{constructor(n){this.timestamp=n}static fromTimestamp(n){return new tn(n)}static min(){return new tn(new Qt(0,0))}static max(){return new tn(new Qt(253402300799,999999999))}compareTo(n){return this.timestamp._compareTo(n.timestamp)}isEqual(n){return this.timestamp.isEqual(n.timestamp)}toMicroseconds(){return 1e6*this.timestamp.seconds+this.timestamp.nanoseconds/1e3}toString(){return"SnapshotVersion("+this.timestamp.toString()+")"}toTimestamp(){return this.timestamp}}class Ar{constructor(n,i,s){void 0===i?i=0:i>n.length&&z(),void 0===s?s=n.length-i:s>n.length-i&&z(),this.segments=n,this.offset=i,this.len=s}get length(){return this.len}isEqual(n){return 0===Ar.comparator(this,n)}child(n){const i=this.segments.slice(this.offset,this.limit());return n instanceof Ar?n.forEach(s=>{i.push(s)}):i.push(n),this.construct(i)}limit(){return this.offset+this.length}popFirst(n){return this.construct(this.segments,this.offset+(n=void 0===n?1:n),this.length-n)}popLast(){return this.construct(this.segments,this.offset,this.length-1)}firstSegment(){return this.segments[this.offset]}lastSegment(){return this.get(this.length-1)}get(n){return this.segments[this.offset+n]}isEmpty(){return 0===this.length}isPrefixOf(n){if(n.length_)return 1}return n.lengthi.length?1:0}}class gn extends Ar{construct(n,i,s){return new gn(n,i,s)}canonicalString(){return this.toArray().join("/")}toString(){return this.canonicalString()}toUriEncodedString(){return this.toArray().map(encodeURIComponent).join("/")}static fromString(...n){const i=[];for(const s of n){if(s.indexOf("//")>=0)throw new me(ae.INVALID_ARGUMENT,`Invalid segment (${s}). Paths must not contain // in them.`);i.push(...s.split("/").filter(u=>u.length>0))}return new gn(i)}static emptyPath(){return new gn([])}}const mn=/^[_a-zA-Z][_a-zA-Z0-9]*$/;class Jt extends Ar{construct(n,i,s){return new Jt(n,i,s)}static isValidIdentifier(n){return mn.test(n)}canonicalString(){return this.toArray().map(n=>(n=n.replace(/\\/g,"\\\\").replace(/`/g,"\\`"),Jt.isValidIdentifier(n)||(n="`"+n+"`"),n)).join(".")}toString(){return this.canonicalString()}isKeyField(){return 1===this.length&&"__name__"===this.get(0)}static keyField(){return new Jt(["__name__"])}static fromServerFormat(n){const i=[];let s="",u=0;const f=()=>{if(0===s.length)throw new me(ae.INVALID_ARGUMENT,`Invalid field path (${n}). Paths must not be empty, begin with '.', end with '.', or contain '..'`);i.push(s),s=""};let _=!1;for(;u=2&&this.path.get(this.path.length-2)===n}getCollectionGroup(){return this.path.get(this.path.length-2)}getCollectionPath(){return this.path.popLast()}isEqual(n){return null!==n&&0===gn.comparator(this.path,n.path)}toString(){return this.path.toString()}static comparator(n,i){return gn.comparator(n.path,i.path)}static isDocumentKey(n){return n.length%2==0}static fromSegments(n){return new Wt(new gn(n.slice()))}}class Sr{constructor(n,i,s){this.readTime=n,this.documentKey=i,this.largestBatchId=s}static min(){return new Sr(tn.min(),Wt.empty(),-1)}static max(){return new Sr(tn.max(),Wt.empty(),-1)}}function tr(l,n){let i=l.readTime.compareTo(n.readTime);return 0!==i?i:(i=Wt.comparator(l.documentKey,n.documentKey),0!==i?i:Le(l.largestBatchId,n.largestBatchId))}const Ir="The current tab is not in the required state to perform this operation. It might be necessary to refresh the browser tab.";class Ri{constructor(){this.onCommittedListeners=[]}addOnCommittedListener(n){this.onCommittedListeners.push(n)}raiseOnCommittedEvent(){this.onCommittedListeners.forEach(n=>n())}}function Qr(l){return Jr.apply(this,arguments)}function Jr(){return(Jr=(0,Ie.A)(function*(l){if(l.code!==ae.FAILED_PRECONDITION||l.message!==Ir)throw l;Be("LocalStore","Unexpectedly lost primary lease")})).apply(this,arguments)}class oe{constructor(n){this.nextCallback=null,this.catchCallback=null,this.result=void 0,this.error=void 0,this.isDone=!1,this.callbackAttached=!1,n(i=>{this.isDone=!0,this.result=i,this.nextCallback&&this.nextCallback(i)},i=>{this.isDone=!0,this.error=i,this.catchCallback&&this.catchCallback(i)})}catch(n){return this.next(void 0,n)}next(n,i){return this.callbackAttached&&z(),this.callbackAttached=!0,this.isDone?this.error?this.wrapFailure(i,this.error):this.wrapSuccess(n,this.result):new oe((s,u)=>{this.nextCallback=f=>{this.wrapSuccess(n,f).next(s,u)},this.catchCallback=f=>{this.wrapFailure(i,f).next(s,u)}})}toPromise(){return new Promise((n,i)=>{this.next(n,i)})}wrapUserFunction(n){try{const i=n();return i instanceof oe?i:oe.resolve(i)}catch(i){return oe.reject(i)}}wrapSuccess(n,i){return n?this.wrapUserFunction(()=>n(i)):oe.resolve(i)}wrapFailure(n,i){return n?this.wrapUserFunction(()=>n(i)):oe.reject(i)}static resolve(n){return new oe((i,s)=>{i(n)})}static reject(n){return new oe((i,s)=>{s(n)})}static waitFor(n){return new oe((i,s)=>{let u=0,f=0,_=!1;n.forEach(w=>{++u,w.next(()=>{++f,_&&f===u&&i()},N=>s(N))}),_=!0,f===u&&i()})}static or(n){let i=oe.resolve(!1);for(const s of n)i=i.next(u=>u?oe.resolve(u):s());return i}static forEach(n,i){const s=[];return n.forEach((u,f)=>{s.push(i.call(this,u,f))}),this.waitFor(s)}static mapArray(n,i){return new oe((s,u)=>{const f=n.length,_=new Array(f);let w=0;for(let N=0;N{_[j]=se,++w,w===f&&s(_)},se=>u(se))}})}static doWhile(n,i){return new oe((s,u)=>{const f=()=>{!0===n()?i().next(()=>{f()},u):s()};f()})}}function Me(l){return"IndexedDbTransactionError"===l.name}let ur=(()=>{class l{constructor(i,s){this.previousValue=i,s&&(s.sequenceNumberHandler=u=>this.ie(u),this.se=u=>s.writeSequenceNumber(u))}ie(i){return this.previousValue=Math.max(i,this.previousValue),this.previousValue}next(){const i=++this.previousValue;return this.se&&this.se(i),i}}return l.oe=-1,l})();function ri(l){return null==l}function xn(l){return 0===l&&1/l==-1/0}function Pi(l){let n=0;for(const i in l)Object.prototype.hasOwnProperty.call(l,i)&&n++;return n}function mi(l,n){for(const i in l)Object.prototype.hasOwnProperty.call(l,i)&&n(i,l[i])}function ti(l){for(const n in l)if(Object.prototype.hasOwnProperty.call(l,n))return!1;return!0}class mr{constructor(n,i){this.comparator=n,this.root=i||Nn.EMPTY}insert(n,i){return new mr(this.comparator,this.root.insert(n,i,this.comparator).copy(null,null,Nn.BLACK,null,null))}remove(n){return new mr(this.comparator,this.root.remove(n,this.comparator).copy(null,null,Nn.BLACK,null,null))}get(n){let i=this.root;for(;!i.isEmpty();){const s=this.comparator(n,i.key);if(0===s)return i.value;s<0?i=i.left:s>0&&(i=i.right)}return null}indexOf(n){let i=0,s=this.root;for(;!s.isEmpty();){const u=this.comparator(n,s.key);if(0===u)return i+s.left.size;u<0?s=s.left:(i+=s.left.size+1,s=s.right)}return-1}isEmpty(){return this.root.isEmpty()}get size(){return this.root.size}minKey(){return this.root.minKey()}maxKey(){return this.root.maxKey()}inorderTraversal(n){return this.root.inorderTraversal(n)}forEach(n){this.inorderTraversal((i,s)=>(n(i,s),!1))}toString(){const n=[];return this.inorderTraversal((i,s)=>(n.push(`${i}:${s}`),!1)),`{${n.join(", ")}}`}reverseTraversal(n){return this.root.reverseTraversal(n)}getIterator(){return new oi(this.root,null,this.comparator,!1)}getIteratorFrom(n){return new oi(this.root,n,this.comparator,!1)}getReverseIterator(){return new oi(this.root,null,this.comparator,!0)}getReverseIteratorFrom(n){return new oi(this.root,n,this.comparator,!0)}}class oi{constructor(n,i,s,u){this.isReverse=u,this.nodeStack=[];let f=1;for(;!n.isEmpty();)if(f=i?s(n.key,i):1,i&&u&&(f*=-1),f<0)n=this.isReverse?n.left:n.right;else{if(0===f){this.nodeStack.push(n);break}this.nodeStack.push(n),n=this.isReverse?n.right:n.left}}getNext(){let n=this.nodeStack.pop();const i={key:n.key,value:n.value};if(this.isReverse)for(n=n.left;!n.isEmpty();)this.nodeStack.push(n),n=n.right;else for(n=n.right;!n.isEmpty();)this.nodeStack.push(n),n=n.left;return i}hasNext(){return this.nodeStack.length>0}peek(){if(0===this.nodeStack.length)return null;const n=this.nodeStack[this.nodeStack.length-1];return{key:n.key,value:n.value}}}class Nn{constructor(n,i,s,u,f){this.key=n,this.value=i,this.color=null!=s?s:Nn.RED,this.left=null!=u?u:Nn.EMPTY,this.right=null!=f?f:Nn.EMPTY,this.size=this.left.size+1+this.right.size}copy(n,i,s,u,f){return new Nn(null!=n?n:this.key,null!=i?i:this.value,null!=s?s:this.color,null!=u?u:this.left,null!=f?f:this.right)}isEmpty(){return!1}inorderTraversal(n){return this.left.inorderTraversal(n)||n(this.key,this.value)||this.right.inorderTraversal(n)}reverseTraversal(n){return this.right.reverseTraversal(n)||n(this.key,this.value)||this.left.reverseTraversal(n)}min(){return this.left.isEmpty()?this:this.left.min()}minKey(){return this.min().key}maxKey(){return this.right.isEmpty()?this.key:this.right.maxKey()}insert(n,i,s){let u=this;const f=s(n,u.key);return u=f<0?u.copy(null,null,null,u.left.insert(n,i,s),null):0===f?u.copy(null,i,null,null,null):u.copy(null,null,null,null,u.right.insert(n,i,s)),u.fixUp()}removeMin(){if(this.left.isEmpty())return Nn.EMPTY;let n=this;return n.left.isRed()||n.left.left.isRed()||(n=n.moveRedLeft()),n=n.copy(null,null,null,n.left.removeMin(),null),n.fixUp()}remove(n,i){let s,u=this;if(i(n,u.key)<0)u.left.isEmpty()||u.left.isRed()||u.left.left.isRed()||(u=u.moveRedLeft()),u=u.copy(null,null,null,u.left.remove(n,i),null);else{if(u.left.isRed()&&(u=u.rotateRight()),u.right.isEmpty()||u.right.isRed()||u.right.left.isRed()||(u=u.moveRedRight()),0===i(n,u.key)){if(u.right.isEmpty())return Nn.EMPTY;s=u.right.min(),u=u.copy(s.key,s.value,null,null,u.right.removeMin())}u=u.copy(null,null,null,null,u.right.remove(n,i))}return u.fixUp()}isRed(){return this.color}fixUp(){let n=this;return n.right.isRed()&&!n.left.isRed()&&(n=n.rotateLeft()),n.left.isRed()&&n.left.left.isRed()&&(n=n.rotateRight()),n.left.isRed()&&n.right.isRed()&&(n=n.colorFlip()),n}moveRedLeft(){let n=this.colorFlip();return n.right.left.isRed()&&(n=n.copy(null,null,null,null,n.right.rotateRight()),n=n.rotateLeft(),n=n.colorFlip()),n}moveRedRight(){let n=this.colorFlip();return n.left.left.isRed()&&(n=n.rotateRight(),n=n.colorFlip()),n}rotateLeft(){const n=this.copy(null,null,Nn.RED,null,this.right.left);return this.right.copy(null,null,this.color,n,null)}rotateRight(){const n=this.copy(null,null,Nn.RED,this.left.right,null);return this.left.copy(null,null,this.color,null,n)}colorFlip(){const n=this.left.copy(null,null,!this.left.color,null,null),i=this.right.copy(null,null,!this.right.color,null,null);return this.copy(null,null,!this.color,n,i)}checkMaxDepth(){const n=this.check();return Math.pow(2,n)<=this.size+1}check(){if(this.isRed()&&this.left.isRed()||this.right.isRed())throw z();const n=this.left.check();if(n!==this.right.check())throw z();return n+(this.isRed()?0:1)}}Nn.EMPTY=null,Nn.RED=!0,Nn.BLACK=!1,Nn.EMPTY=new class{constructor(){this.size=0}get key(){throw z()}get value(){throw z()}get color(){throw z()}get left(){throw z()}get right(){throw z()}copy(n,i,s,u,f){return this}insert(n,i,s){return new Nn(n,i)}remove(n,i){return this}isEmpty(){return!0}inorderTraversal(n){return!1}reverseTraversal(n){return!1}minKey(){return null}maxKey(){return null}isRed(){return!1}checkMaxDepth(){return!0}check(){return 0}};class kn{constructor(n){this.comparator=n,this.data=new mr(this.comparator)}has(n){return null!==this.data.get(n)}first(){return this.data.minKey()}last(){return this.data.maxKey()}get size(){return this.data.size}indexOf(n){return this.data.indexOf(n)}forEach(n){this.data.inorderTraversal((i,s)=>(n(i),!1))}forEachInRange(n,i){const s=this.data.getIteratorFrom(n[0]);for(;s.hasNext();){const u=s.getNext();if(this.comparator(u.key,n[1])>=0)return;i(u.key)}}forEachWhile(n,i){let s;for(s=void 0!==i?this.data.getIteratorFrom(i):this.data.getIterator();s.hasNext();)if(!n(s.getNext().key))return}firstAfterOrEqual(n){const i=this.data.getIteratorFrom(n);return i.hasNext()?i.getNext().key:null}getIterator(){return new ko(this.data.getIterator())}getIteratorFrom(n){return new ko(this.data.getIteratorFrom(n))}add(n){return this.copy(this.data.remove(n).insert(n,!0))}delete(n){return this.has(n)?this.copy(this.data.remove(n)):this}isEmpty(){return this.data.isEmpty()}unionWith(n){let i=this;return i.size{i=i.add(s)}),i}isEqual(n){if(!(n instanceof kn)||this.size!==n.size)return!1;const i=this.data.getIterator(),s=n.data.getIterator();for(;i.hasNext();){const u=i.getNext().key,f=s.getNext().key;if(0!==this.comparator(u,f))return!1}return!0}toArray(){const n=[];return this.forEach(i=>{n.push(i)}),n}toString(){const n=[];return this.forEach(i=>n.push(i)),"SortedSet("+n.toString()+")"}copy(n){const i=new kn(this.comparator);return i.data=n,i}}class ko{constructor(n){this.iter=n}getNext(){return this.iter.getNext().key}hasNext(){return this.iter.hasNext()}}class Bi{constructor(n){this.fields=n,n.sort(Jt.comparator)}static empty(){return new Bi([])}unionWith(n){let i=new kn(Jt.comparator);for(const s of this.fields)i=i.add(s);for(const s of n)i=i.add(s);return new Bi(i.toArray())}covers(n){for(const i of this.fields)if(i.isPrefixOf(n))return!0;return!1}isEqual(n){return yt(this.fields,n.fields,(i,s)=>i.isEqual(s))}}class is extends Error{constructor(){super(...arguments),this.name="Base64DecodeError"}}class si{constructor(n){this.binaryString=n}static fromBase64String(n){const i=function(u){try{return atob(u)}catch(f){throw typeof DOMException<"u"&&f instanceof DOMException?new is("Invalid base64 string: "+f):f}}(n);return new si(i)}static fromUint8Array(n){const i=function(u){let f="";for(let _=0;_nue(i,n))}function fe(l,n){if(l===n)return 0;const i=H(l),s=H(n);if(i!==s)return Le(i,s);switch(i){case 0:case 9007199254740991:return 0;case 1:return Le(l.booleanValue,n.booleanValue);case 2:return function(f,_){const w=ai(f.integerValue||f.doubleValue),N=ai(_.integerValue||_.doubleValue);return wN?1:w===N?0:isNaN(w)?isNaN(N)?0:-1:1}(l,n);case 3:return qe(l.timestampValue,n.timestampValue);case 4:return qe(Co(l),Co(n));case 5:return Le(l.stringValue,n.stringValue);case 6:return function(f,_){const w=jn(f),N=jn(_);return w.compareTo(N)}(l.bytesValue,n.bytesValue);case 7:return function(f,_){const w=f.split("/"),N=_.split("/");for(let j=0;jn.mapValue.fields[i]=Ht(s)),n}if(l.arrayValue){const n={arrayValue:{values:[]}};for(let i=0;i<(l.arrayValue.values||[]).length;++i)n.arrayValue.values[i]=Ht(l.arrayValue.values[i]);return n}return Object.assign({},l)}function qt(l){return"__max__"===(((l.mapValue||{}).fields||{}).__type__||{}).stringValue}class In{constructor(n){this.value=n}static empty(){return new In({mapValue:{}})}field(n){if(n.isEmpty())return this.value;{let i=this.value;for(let s=0;s{if(!i.isImmediateParentOf(w)){const N=this.getFieldsMap(i);this.applyChanges(N,s,u),s={},u=[],i=w.popLast()}_?s[w.lastSegment()]=Ht(_):u.push(w.lastSegment())});const f=this.getFieldsMap(i);this.applyChanges(f,s,u)}delete(n){const i=this.field(n.popLast());Ut(i)&&i.mapValue.fields&&delete i.mapValue.fields[n.lastSegment()]}isEqual(n){return ue(this.value,n.value)}getFieldsMap(n){let i=this.value;i.mapValue.fields||(i.mapValue={fields:{}});for(let s=0;sn[u]=f);for(const u of s)delete n[u]}clone(){return new In(Ht(this.value))}}function br(l){const n=[];return mi(l.fields,(i,s)=>{const u=new Jt([i]);if(Ut(s)){const f=br(s.mapValue).fields;if(0===f.length)n.push(u);else for(const _ of f)n.push(u.child(_))}else n.push(u)}),new Bi(n)}class cr{constructor(n,i,s,u,f,_,w){this.key=n,this.documentType=i,this.version=s,this.readTime=u,this.createTime=f,this.data=_,this.documentState=w}static newInvalidDocument(n){return new cr(n,0,tn.min(),tn.min(),tn.min(),In.empty(),0)}static newFoundDocument(n,i,s,u){return new cr(n,1,i,tn.min(),s,u,0)}static newNoDocument(n,i){return new cr(n,2,i,tn.min(),tn.min(),In.empty(),0)}static newUnknownDocument(n,i){return new cr(n,3,i,tn.min(),tn.min(),In.empty(),2)}convertToFoundDocument(n,i){return!this.createTime.isEqual(tn.min())||2!==this.documentType&&0!==this.documentType||(this.createTime=n),this.version=n,this.documentType=1,this.data=i,this.documentState=0,this}convertToNoDocument(n){return this.version=n,this.documentType=2,this.data=In.empty(),this.documentState=0,this}convertToUnknownDocument(n){return this.version=n,this.documentType=3,this.data=In.empty(),this.documentState=2,this}setHasCommittedMutations(){return this.documentState=2,this}setHasLocalMutations(){return this.documentState=1,this.version=tn.min(),this}setReadTime(n){return this.readTime=n,this}get hasLocalMutations(){return 1===this.documentState}get hasCommittedMutations(){return 2===this.documentState}get hasPendingWrites(){return this.hasLocalMutations||this.hasCommittedMutations}isValidDocument(){return 0!==this.documentType}isFoundDocument(){return 1===this.documentType}isNoDocument(){return 2===this.documentType}isUnknownDocument(){return 3===this.documentType}isEqual(n){return n instanceof cr&&this.key.isEqual(n.key)&&this.version.isEqual(n.version)&&this.documentType===n.documentType&&this.documentState===n.documentState&&this.data.isEqual(n.data)}mutableCopy(){return new cr(this.key,this.documentType,this.version,this.readTime,this.createTime,this.data.clone(),this.documentState)}toString(){return`Document(${this.key}, ${this.version}, ${JSON.stringify(this.data.value)}, {createTime: ${this.createTime}}), {documentType: ${this.documentType}}), {documentState: ${this.documentState}})`}}class nr{constructor(n,i){this.position=n,this.inclusive=i}}function li(l,n,i){let s=0;for(let u=0;u":return n>0;case">=":return n>=0;default:return z()}}isInequality(){return["<","<=",">",">=","!=","not-in"].indexOf(this.op)>=0}getFlattenedFilters(){return[this]}getFilters(){return[this]}}class Wr extends Go{constructor(n,i){super(),this.filters=n,this.op=i,this.ae=null}static create(n,i){return new Wr(n,i)}matches(n){return Wo(this)?void 0===this.filters.find(i=>!i.matches(n)):void 0!==this.filters.find(i=>i.matches(n))}getFlattenedFilters(){return null!==this.ae||(this.ae=this.filters.reduce((n,i)=>n.concat(i.getFlattenedFilters()),[])),this.ae}getFilters(){return Object.assign([],this.filters)}}function Wo(l){return"and"===l.op}function Ko(l){return function Do(l){for(const n of l.filters)if(n instanceof Wr)return!1;return!0}(l)&&Wo(l)}function xa(l){if(l instanceof dr)return l.field.canonicalString()+l.op.toString()+sr(l.value);if(Ko(l))return l.filters.map(n=>xa(n)).join(",");{const n=l.filters.map(i=>xa(i)).join(",");return`${l.op}(${n})`}}function os(l,n){return l instanceof dr?(s=l,(u=n)instanceof dr&&s.op===u.op&&s.field.isEqual(u.field)&&ue(s.value,u.value)):l instanceof Wr?function(s,u){return u instanceof Wr&&s.op===u.op&&s.filters.length===u.filters.length&&s.filters.reduce((f,_,w)=>f&&os(_,u.filters[w]),!0)}(l,n):void z();var s,u}function Pr(l){return l instanceof dr?`${(i=l).field.canonicalString()} ${i.op} ${sr(i.value)}`:l instanceof Wr?function(i){return i.op.toString()+" {"+i.getFilters().map(Pr).join(" ,")+"}"}(l):"Filter";var i}class oo extends dr{constructor(n,i,s){super(n,i,s),this.key=Wt.fromName(s.referenceValue)}matches(n){const i=Wt.comparator(n.key,this.key);return this.matchesComparison(i)}}class Us extends dr{constructor(n,i){super(n,"in",i),this.keys=ua(0,i)}matches(n){return this.keys.some(i=>i.isEqual(n.key))}}class so extends dr{constructor(n,i){super(n,"not-in",i),this.keys=ua(0,i)}matches(n){return!this.keys.some(i=>i.isEqual(n.key))}}function ua(l,n){var i;return((null===(i=n.arrayValue)||void 0===i?void 0:i.values)||[]).map(s=>Wt.fromName(s.referenceValue))}class gs extends dr{constructor(n,i){super(n,"array-contains",i)}matches(n){const i=n.data.field(this.field);return ke(i)&&M(i.arrayValue,this.value)}}class ms extends dr{constructor(n,i){super(n,"in",i)}matches(n){const i=n.data.field(this.field);return null!==i&&M(this.value.arrayValue,i)}}class ss extends dr{constructor(n,i){super(n,"not-in",i)}matches(n){if(M(this.value.arrayValue,{nullValue:"NULL_VALUE"}))return!1;const i=n.data.field(this.field);return null!==i&&!M(this.value.arrayValue,i)}}class $s extends dr{constructor(n,i){super(n,"array-contains-any",i)}matches(n){const i=n.data.field(this.field);return!(!ke(i)||!i.arrayValue.values)&&i.arrayValue.values.some(s=>M(this.value.arrayValue,s))}}class ca{constructor(n,i=null,s=[],u=[],f=null,_=null,w=null){this.path=n,this.collectionGroup=i,this.orderBy=s,this.filters=u,this.limit=f,this.startAt=_,this.endAt=w,this.ue=null}}function qo(l,n=null,i=[],s=[],u=null,f=null,_=null){return new ca(l,n,i,s,u,f,_)}function bs(l){const n=he(l);if(null===n.ue){let i=n.path.canonicalString();null!==n.collectionGroup&&(i+="|cg:"+n.collectionGroup),i+="|f:",i+=n.filters.map(s=>xa(s)).join(","),i+="|ob:",i+=n.orderBy.map(s=>{return(f=s).field.canonicalString()+f.dir;var f}).join(","),ri(n.limit)||(i+="|l:",i+=n.limit),n.startAt&&(i+="|lb:",i+=n.startAt.inclusive?"b:":"a:",i+=n.startAt.position.map(s=>sr(s)).join(",")),n.endAt&&(i+="|ub:",i+=n.endAt.inclusive?"a:":"b:",i+=n.endAt.position.map(s=>sr(s)).join(",")),n.ue=i}return n.ue}function Xo(l,n){if(l.limit!==n.limit||l.orderBy.length!==n.orderBy.length)return!1;for(let i=0;i0?n.explicitOrderBy[n.explicitOrderBy.length-1].dir:"asc";(function(_){let w=new kn(Jt.comparator);return _.filters.forEach(N=>{N.getFlattenedFilters().forEach(j=>{j.isInequality()&&(w=w.add(j.field))})}),w})(n).forEach(f=>{i.has(f.canonicalString())||f.isKeyField()||n.ce.push(new ci(f,s))}),i.has(Jt.keyField().canonicalString())||n.ce.push(new ci(Jt.keyField(),s))}return n.ce}function On(l){const n=he(l);return n.le||(n.le=function Ji(l,n){if("F"===l.limitType)return qo(l.path,l.collectionGroup,n,l.filters,l.limit,l.startAt,l.endAt);{n=n.map(u=>new ci(u.field,"desc"===u.dir?"asc":"desc"));const i=l.endAt?new nr(l.endAt.position,l.endAt.inclusive):null,s=l.startAt?new nr(l.startAt.position,l.startAt.inclusive):null;return qo(l.path,l.collectionGroup,n,l.filters,l.limit,i,s)}}(n,rn(l))),n.le}function eo(l,n,i){return new L(l.path,l.collectionGroup,l.explicitOrderBy.slice(),l.filters.slice(),n,i,l.startAt,l.endAt)}function Qo(l,n){return Xo(On(l),On(n))&&l.limitType===n.limitType}function Na(l){return`${bs(On(l))}|lt:${l.limitType}`}function vs(l){return`Query(target=${function(i){let s=i.path.canonicalString();return null!==i.collectionGroup&&(s+=" collectionGroup="+i.collectionGroup),i.filters.length>0&&(s+=`, filters: [${i.filters.map(u=>Pr(u)).join(", ")}]`),ri(i.limit)||(s+=", limit: "+i.limit),i.orderBy.length>0&&(s+=`, orderBy: [${i.orderBy.map(u=>{return`${(_=u).field.canonicalString()} (${_.dir})`;var _}).join(", ")}]`),i.startAt&&(s+=", startAt: ",s+=i.startAt.inclusive?"b:":"a:",s+=i.startAt.position.map(u=>sr(u)).join(",")),i.endAt&&(s+=", endAt: ",s+=i.endAt.inclusive?"a:":"b:",s+=i.endAt.position.map(u=>sr(u)).join(",")),`Target(${s})`}(On(l))}; limitType=${l.limitType})`}function Bs(l,n){return n.isFoundDocument()&&function(s,u){const f=u.key.path;return null!==s.collectionGroup?u.key.hasCollectionId(s.collectionGroup)&&s.path.isPrefixOf(f):Wt.isDocumentKey(s.path)?s.path.isEqual(f):s.path.isImmediateParentOf(f)}(l,n)&&function(s,u){for(const f of rn(s))if(!f.field.isKeyField()&&null===u.data.field(f.field))return!1;return!0}(l,n)&&function(s,u){for(const f of s.filters)if(!f.matches(u))return!1;return!0}(l,n)&&(u=n,!((s=l).startAt&&!function(_,w,N){const j=li(_,w,N);return _.inclusive?j<=0:j<0}(s.startAt,rn(s),u)||s.endAt&&!function(_,w,N){const j=li(_,w,N);return _.inclusive?j>=0:j>0}(s.endAt,rn(s),u)));var s,u}function sl(l){return(n,i)=>{let s=!1;for(const u of rn(l)){const f=al(u,n,i);if(0!==f)return f;s=s||u.field.isKeyField()}return 0}}function al(l,n,i){const s=l.field.isKeyField()?Wt.comparator(n.key,i.key):function(f,_,w){const N=_.data.field(f),j=w.data.field(f);return null!==N&&null!==j?fe(N,j):z()}(l.field,n,i);switch(l.dir){case"asc":return s;case"desc":return-1*s;default:return z()}}class as{constructor(n,i){this.mapKeyFn=n,this.equalsFn=i,this.inner={},this.innerSize=0}get(n){const i=this.mapKeyFn(n),s=this.inner[i];if(void 0!==s)for(const[u,f]of s)if(this.equalsFn(u,n))return f}has(n){return void 0!==this.get(n)}set(n,i){const s=this.mapKeyFn(n),u=this.inner[s];if(void 0===u)return this.inner[s]=[[n,i]],void this.innerSize++;for(let f=0;f{for(const[u,f]of s)n(u,f)})}isEmpty(){return ti(this.inner)}size(){return this.innerSize}}const ha=new mr(Wt.comparator);function Jn(){return ha}const Ni=new mr(Wt.comparator);function Ti(...l){let n=Ni;for(const i of l)n=n.insert(i.key,i);return n}function ro(l){let n=Ni;return l.forEach((i,s)=>n=n.insert(i,s.overlayedDocument)),n}function Hr(){return ls()}function ll(){return ls()}function ls(){return new as(l=>l.toString(),(l,n)=>l.isEqual(n))}const _s=new mr(Wt.comparator),Vl=new kn(Wt.comparator);function vr(...l){let n=Vl;for(const i of l)n=n.add(i);return n}const ul=new kn(Le);function ka(l,n){if(l.useProto3Json){if(isNaN(n))return{doubleValue:"NaN"};if(n===1/0)return{doubleValue:"Infinity"};if(n===-1/0)return{doubleValue:"-Infinity"}}return{doubleValue:xn(n)?"-0":n}}function js(l){return{integerValue:""+l}}function cl(l,n){return function wn(l){return"number"==typeof l&&Number.isInteger(l)&&!xn(l)&&l<=Number.MAX_SAFE_INTEGER&&l>=Number.MIN_SAFE_INTEGER}(n)?js(n):ka(l,n)}class Fa{constructor(){this._=void 0}}function Ll(l,n,i){return l instanceof Is?function(u,f){const _={fields:{__type__:{stringValue:"server_timestamp"},__local_write_time__:{timestampValue:{seconds:u.seconds,nanos:u.nanoseconds}}}};return f&&Fo(f)&&(f=Ao(f)),f&&(_.fields.__previous_value__=f),{mapValue:_}}(i,n):l instanceof ws?Yo(l,n):l instanceof Ss?dl(l,n):function(u,f){const _=fa(u,f),w=wu(_)+wu(u.Pe);return Ee(_)&&Ee(u.Pe)?js(w):ka(u.serializer,w)}(l,n)}function Ul(l,n,i){return l instanceof ws?Yo(l,n):l instanceof Ss?dl(l,n):i}function fa(l,n){return l instanceof Zo?Ee(s=n)||(f=s)&&"doubleValue"in f?n:{integerValue:0}:null;var s,f}class Is extends Fa{}class ws extends Fa{constructor(n){super(),this.elements=n}}function Yo(l,n){const i=$l(n);for(const s of l.elements)i.some(u=>ue(u,s))||i.push(s);return{arrayValue:{values:i}}}class Ss extends Fa{constructor(n){super(),this.elements=n}}function dl(l,n){let i=$l(n);for(const s of l.elements)i=i.filter(u=>!ue(u,s));return{arrayValue:{values:i}}}class Zo extends Fa{constructor(n,i){super(),this.serializer=n,this.Pe=i}}function wu(l){return ai(l.integerValue||l.doubleValue)}function $l(l){return ke(l)&&l.arrayValue.values?l.arrayValue.values.slice():[]}class Rs{constructor(n,i){this.version=n,this.transformResults=i}}class Di{constructor(n,i){this.updateTime=n,this.exists=i}static none(){return new Di}static exists(n){return new Di(void 0,n)}static updateTime(n){return new Di(n)}get isNone(){return void 0===this.updateTime&&void 0===this.exists}isEqual(n){return this.exists===n.exists&&(this.updateTime?!!n.updateTime&&this.updateTime.isEqual(n.updateTime):!n.updateTime)}}function pa(l,n){return void 0!==l.updateTime?n.isFoundDocument()&&n.version.isEqual(l.updateTime):void 0===l.exists||l.exists===n.isFoundDocument()}class Bl{}function ga(l,n){if(!l.hasLocalMutations||n&&0===n.fields.length)return null;if(null===n)return l.isNoDocument()?new V(l.key,Di.none()):new Ms(l.key,l.data,Di.none());{const i=l.data,s=In.empty();let u=new kn(Jt.comparator);for(let f of n.fields)if(!u.has(f)){let _=i.field(f);null===_&&f.length>1&&(f=f.popLast(),_=i.field(f)),null===_?s.delete(f):s.set(f,_),u=u.add(f)}return new lo(l.key,s,new Bi(u.toArray()),Di.none())}}function Va(l,n,i){l instanceof Ms?function(u,f,_){const w=u.value.clone(),N=Es(u.fieldTransforms,f,_.transformResults);w.setAll(N),f.convertToFoundDocument(_.version,w).setHasCommittedMutations()}(l,n,i):l instanceof lo?function(u,f,_){if(!pa(u.precondition,f))return void f.convertToUnknownDocument(_.version);const w=Es(u.fieldTransforms,f,_.transformResults),N=f.data;N.setAll(Hs(u)),N.setAll(w),f.convertToFoundDocument(_.version,N).setHasCommittedMutations()}(l,n,i):n.convertToNoDocument(i.version).setHasCommittedMutations()}function zs(l,n,i,s){return l instanceof Ms?function(f,_,w,N){if(!pa(f.precondition,_))return w;const j=f.value.clone(),se=D(f.fieldTransforms,N,_);return j.setAll(se),_.convertToFoundDocument(_.version,j).setHasLocalMutations(),null}(l,n,i,s):l instanceof lo?function(f,_,w,N){if(!pa(f.precondition,_))return w;const j=D(f.fieldTransforms,N,_),se=_.data;return se.setAll(Hs(f)),se.setAll(j),_.convertToFoundDocument(_.version,se).setHasLocalMutations(),null===w?null:w.unionWith(f.fieldMask.fields).unionWith(f.fieldTransforms.map(be=>be.field))}(l,n,i,s):(w=i,pa(l.precondition,_=n)?(_.convertToNoDocument(_.version).setHasLocalMutations(),null):w);var _,w}function pc(l,n){let i=null;for(const s of l.fieldTransforms){const u=n.data.field(s.field),f=fa(s.transform,u||null);null!=f&&(null===i&&(i=In.empty()),i.set(s.field,f))}return i||null}function ma(l,n){return l.type===n.type&&!!l.key.isEqual(n.key)&&!!l.precondition.isEqual(n.precondition)&&(u=n.fieldTransforms,!!(void 0===(s=l.fieldTransforms)&&void 0===u||s&&u&&yt(s,u,(f,_)=>function Jo(l,n){return l.field.isEqual(n.field)&&(u=n.transform,(s=l.transform)instanceof ws&&u instanceof ws||s instanceof Ss&&u instanceof Ss?yt(s.elements,u.elements,ue):s instanceof Zo&&u instanceof Zo?ue(s.Pe,u.Pe):s instanceof Is&&u instanceof Is);var s,u}(f,_))))&&(0===l.type?l.value.isEqual(n.value):1!==l.type||l.data.isEqual(n.data)&&l.fieldMask.isEqual(n.fieldMask));var s,u}class Ms extends Bl{constructor(n,i,s,u=[]){super(),this.key=n,this.value=i,this.precondition=s,this.fieldTransforms=u,this.type=0}getFieldMask(){return null}}class lo extends Bl{constructor(n,i,s,u,f=[]){super(),this.key=n,this.data=i,this.fieldMask=s,this.precondition=u,this.fieldTransforms=f,this.type=1}getFieldMask(){return this.fieldMask}}function Hs(l){const n=new Map;return l.fieldMask.fields.forEach(i=>{if(!i.isEmpty()){const s=l.data.field(i);n.set(i,s)}}),n}function Es(l,n,i){const s=new Map;q(l.length===i.length);for(let u=0;u{const f=n.get(u.key),_=f.overlayedDocument;let w=this.applyToLocalView(_,f.mutatedFields);w=i.has(u.key)?null:w;const N=ga(_,w);null!==N&&s.set(u.key,N),_.isValidDocument()||_.convertToNoDocument(tn.min())}),s}keys(){return this.mutations.reduce((n,i)=>n.add(i.key),vr())}isEqual(n){return this.batchId===n.batchId&&yt(this.mutations,n.mutations,(i,s)=>ma(i,s))&&yt(this.baseMutations,n.baseMutations,(i,s)=>ma(i,s))}}class le{constructor(n,i,s,u){this.batch=n,this.commitVersion=i,this.mutationResults=s,this.docVersions=u}static from(n,i,s){q(n.mutations.length===s.length);let u=function(){return _s}();const f=n.mutations;for(let _=0;_=8)throw new Kr(`Invalid padding: ${i}`);if(s<0)throw new Kr(`Invalid hash count: ${s}`);if(n.length>0&&0===this.hashCount)throw new Kr(`Invalid hash count: ${s}`);if(0===n.length&&0!==i)throw new Kr(`Invalid padding when bitmap length is 0: ${i}`);this.Ie=8*n.length-i,this.Te=Ue.fromNumber(this.Ie)}Ee(n,i,s){let u=n.add(i.multiply(Ue.fromNumber(s)));return 1===u.compare(Oi)&&(u=new Ue([u.getBits(0),u.getBits(1)],0)),u.modulo(this.Te).toNumber()}de(n){return!!(this.bitmap[Math.floor(n/8)]&1<_.insert(w)),_}insert(n){if(0===this.Ie)return;const i=Gr(n),[s,u]=un(i);for(let f=0;f0&&(this.we=!0,this.pe=n)}Ce(){let n=vr(),i=vr(),s=vr();return this.ge.forEach((u,f)=>{switch(f){case 0:n=n.add(u);break;case 2:i=i.add(u);break;case 1:s=s.add(u);break;default:z()}}),new _i(this.pe,this.ye,n,i,s)}ve(){this.we=!1,this.ge=La()}Fe(n,i){this.we=!0,this.ge=this.ge.insert(n,i)}Me(n){this.we=!0,this.ge=this.ge.remove(n)}xe(){this.fe+=1}Oe(){this.fe-=1,q(this.fe>=0)}Ne(){this.we=!0,this.ye=!0}}class Uo{constructor(n){this.Le=n,this.Be=new Map,this.ke=Jn(),this.qe=fr(),this.Qe=new mr(Le)}Ke(n){for(const i of n.Re)n.Ve&&n.Ve.isFoundDocument()?this.$e(i,n.Ve):this.Ue(i,n.key,n.Ve);for(const i of n.removedTargetIds)this.Ue(i,n.key,n.Ve)}We(n){this.forEachTarget(n,i=>{const s=this.Ge(i);switch(n.state){case 0:this.ze(i)&&s.De(n.resumeToken);break;case 1:s.Oe(),s.Se||s.ve(),s.De(n.resumeToken);break;case 2:s.Oe(),s.Se||this.removeTarget(i);break;case 3:this.ze(i)&&(s.Ne(),s.De(n.resumeToken));break;case 4:this.ze(i)&&(this.je(i),s.De(n.resumeToken));break;default:z()}})}forEachTarget(n,i){n.targetIds.length>0?n.targetIds.forEach(i):this.Be.forEach((s,u)=>{this.ze(u)&&i(u)})}He(n){const i=n.targetId,s=n.me.count,u=this.Je(i);if(u){const f=u.target;if(bo(f))if(0===s){const _=new Wt(f.path);this.Ue(i,_,cr.newNoDocument(_,tn.min()))}else q(1===s);else{const _=this.Ye(i);if(_!==s){const w=this.Ze(n),N=w?this.Xe(w,n,_):1;0!==N&&(this.je(i),this.Qe=this.Qe.insert(i,2===N?"TargetPurposeExistenceFilterMismatchBloom":"TargetPurposeExistenceFilterMismatch"))}}}}Ze(n){const i=n.me.unchangedNames;if(!i||!i.bits)return null;const{bits:{bitmap:s="",padding:u=0},hashCount:f=0}=i;let _,w;try{_=jn(s).toUint8Array()}catch(N){if(N instanceof is)return rt("Decoding the base64 bloom filter in existence filter failed ("+N.message+"); ignoring the bloom filter and falling back to full re-query."),null;throw N}try{w=new Vn(_,u,f)}catch(N){return rt(N instanceof Kr?"BloomFilter error: ":"Applying bloom filter failed: ",N),null}return 0===w.Ie?null:w}Xe(n,i,s){return i.me.count===s-this.nt(n,i.targetId)?0:2}nt(n,i){const s=this.Le.getRemoteKeysForTarget(i);let u=0;return s.forEach(f=>{const _=this.Le.tt(),w=`projects/${_.projectId}/databases/${_.database}/documents/${f.path.canonicalString()}`;n.mightContain(w)||(this.Ue(i,f,null),u++)}),u}rt(n){const i=new Map;this.Be.forEach((f,_)=>{const w=this.Je(_);if(w){if(f.current&&bo(w.target)){const N=new Wt(w.target.path);null!==this.ke.get(N)||this.it(_,N)||this.Ue(_,N,cr.newNoDocument(N,n))}f.be&&(i.set(_,f.Ce()),f.ve())}});let s=vr();this.qe.forEach((f,_)=>{let w=!0;_.forEachWhile(N=>{const j=this.Je(N);return!j||"TargetPurposeLimboResolution"===j.purpose||(w=!1,!1)}),w&&(s=s.add(f))}),this.ke.forEach((f,_)=>_.setReadTime(n));const u=new Hi(n,i,this.Qe,this.ke,s);return this.ke=Jn(),this.qe=fr(),this.Qe=new mr(Le),u}$e(n,i){if(!this.ze(n))return;const s=this.it(n,i.key)?2:0;this.Ge(n).Fe(i.key,s),this.ke=this.ke.insert(i.key,i),this.qe=this.qe.insert(i.key,this.st(i.key).add(n))}Ue(n,i,s){if(!this.ze(n))return;const u=this.Ge(n);this.it(n,i)?u.Fe(i,1):u.Me(i),this.qe=this.qe.insert(i,this.st(i).delete(n)),s&&(this.ke=this.ke.insert(i,s))}removeTarget(n){this.Be.delete(n)}Ye(n){const i=this.Ge(n).Ce();return this.Le.getRemoteKeysForTarget(n).size+i.addedDocuments.size-i.removedDocuments.size}xe(n){this.Ge(n).xe()}Ge(n){let i=this.Be.get(n);return i||(i=new zi,this.Be.set(n,i)),i}st(n){let i=this.qe.get(n);return i||(i=new kn(Le),this.qe=this.qe.insert(n,i)),i}ze(n){const i=null!==this.Je(n);return i||Be("WatchChangeAggregator","Detected inactive target",n),i}Je(n){const i=this.Be.get(n);return i&&i.Se?null:this.Le.ot(n)}je(n){this.Be.set(n,new zi),this.Le.getRemoteKeysForTarget(n).forEach(i=>{this.Ue(n,i,null)})}it(n,i){return this.Le.getRemoteKeysForTarget(n).has(i)}}function fr(){return new mr(Wt.comparator)}function La(){return new mr(Wt.comparator)}const gc={asc:"ASCENDING",desc:"DESCENDING"},Ua={"<":"LESS_THAN","<=":"LESS_THAN_OR_EQUAL",">":"GREATER_THAN",">=":"GREATER_THAN_OR_EQUAL","==":"EQUAL","!=":"NOT_EQUAL","array-contains":"ARRAY_CONTAINS",in:"IN","not-in":"NOT_IN","array-contains-any":"ARRAY_CONTAINS_ANY"},Wi={and:"AND",or:"OR"};class va{constructor(n,i){this.databaseId=n,this.useProto3Json=i}}function es(l,n){return l.useProto3Json||ri(n)?n:{value:n}}function wo(l,n){return l.useProto3Json?`${new Date(1e3*n.seconds).toISOString().replace(/\.\d*/,"").replace("Z","")}.${("000000000"+n.nanoseconds).slice(-9)}Z`:{seconds:""+n.seconds,nanos:n.nanoseconds}}function Gs(l,n){return l.useProto3Json?n.toBase64():n.toUint8Array()}function jl(l,n){return wo(l,n.toTimestamp())}function Lr(l){return q(!!l),tn.fromTimestamp(function(i){const s=kr(i);return new Qt(s.seconds,s.nanos)}(l))}function _a(l,n){return Ws(l,n).canonicalString()}function Ws(l,n){const i=(u=l,new gn(["projects",u.projectId,"databases",u.database])).child("documents");var u;return void 0===n?i:i.child(n)}function Dr(l){const n=gn.fromString(l);return q(Td(n)),n}function $a(l,n){return _a(l.databaseId,n.path)}function No(l,n){const i=Dr(n);if(i.get(1)!==l.databaseId.projectId)throw new me(ae.INVALID_ARGUMENT,"Tried to deserialize key from different project: "+i.get(1)+" vs "+l.databaseId.projectId);if(i.get(3)!==l.databaseId.database)throw new me(ae.INVALID_ARGUMENT,"Tried to deserialize key from different database: "+i.get(3)+" vs "+l.databaseId.database);return new Wt(Fi(i))}function $o(l,n){return _a(l.databaseId,n)}function Ks(l){return new gn(["projects",l.databaseId.projectId,"databases",l.databaseId.database]).canonicalString()}function Fi(l){return q(l.length>4&&"documents"===l.get(4)),l.popFirst(5)}function Su(l,n,i){return{name:$a(l,n),fields:i.value.mapValue.fields}}function Hl(l,n){return{documents:[$o(l,n.path)]}}function Gl(l,n){const i={structuredQuery:{}},s=n.path;let u;null!==n.collectionGroup?(u=s,i.structuredQuery.from=[{collectionId:n.collectionGroup,allDescendants:!0}]):(u=s.popLast(),i.structuredQuery.from=[{collectionId:s.lastSegment()}]),i.parent=$o(l,u);const f=function(j){if(0!==j.length)return Ad(Wr.create(j,"and"))}(n.filters);f&&(i.structuredQuery.where=f);const _=function(j){if(0!==j.length)return j.map(se=>{return{field:qs((We=se).field),direction:ja(We.dir)};var We})}(n.orderBy);_&&(i.structuredQuery.orderBy=_);const w=es(l,n.limit);return null!==w&&(i.structuredQuery.limit=w),n.startAt&&(i.structuredQuery.startAt={before:(j=n.startAt).inclusive,values:j.position}),n.endAt&&(i.structuredQuery.endAt=function(j){return{before:!j.inclusive,values:j.position}}(n.endAt)),{_t:i,parent:u};var j}function Ea(l){let n=function ya(l){const n=Dr(l);return 4===n.length?gn.emptyPath():Fi(n)}(l.parent);const i=l.structuredQuery,s=i.from?i.from.length:0;let u=null;if(s>0){q(1===s);const se=i.from[0];se.allDescendants?u=se.collectionId:n=n.child(se.collectionId)}let f=[];i.where&&(f=function(be){const We=Ba(be);return We instanceof Wr&&Ko(We)?We.getFilters():[We]}(i.where));let _=[];i.orderBy&&(_=i.orderBy.map(We=>{return new ci(Xs((nn=We).field),function(ln){switch(ln){case"ASCENDING":return"asc";case"DESCENDING":return"desc";default:return}}(nn.direction));var nn}));let w=null;i.limit&&(w=function(be){let We;return We="object"==typeof be?be.value:be,ri(We)?null:We}(i.limit));let N=null;var be;i.startAt&&(N=new nr((be=i.startAt).values||[],!!be.before));let j=null;return i.endAt&&(j=function(be){return new nr(be.values||[],!be.before)}(i.endAt)),function P(l,n,i,s,u,f,_,w){return new L(l,n,i,s,u,f,_,w)}(n,u,_,f,w,"F",N,j)}function Ba(l){return void 0!==l.unaryFilter?function(i){switch(i.unaryFilter.op){case"IS_NAN":const s=Xs(i.unaryFilter.field);return dr.create(s,"==",{doubleValue:NaN});case"IS_NULL":const u=Xs(i.unaryFilter.field);return dr.create(u,"==",{nullValue:"NULL_VALUE"});case"IS_NOT_NAN":const f=Xs(i.unaryFilter.field);return dr.create(f,"!=",{doubleValue:NaN});case"IS_NOT_NULL":const _=Xs(i.unaryFilter.field);return dr.create(_,"!=",{nullValue:"NULL_VALUE"});default:return z()}}(l):void 0!==l.fieldFilter?dr.create(Xs((i=l).fieldFilter.field),function(u){switch(u){case"EQUAL":return"==";case"NOT_EQUAL":return"!=";case"GREATER_THAN":return">";case"GREATER_THAN_OR_EQUAL":return">=";case"LESS_THAN":return"<";case"LESS_THAN_OR_EQUAL":return"<=";case"ARRAY_CONTAINS":return"array-contains";case"IN":return"in";case"NOT_IN":return"not-in";case"ARRAY_CONTAINS_ANY":return"array-contains-any";default:return z()}}(i.fieldFilter.op),i.fieldFilter.value):void 0!==l.compositeFilter?function(i){return Wr.create(i.compositeFilter.filters.map(s=>Ba(s)),function(u){switch(u){case"AND":return"and";case"OR":return"or";default:return z()}}(i.compositeFilter.op))}(l):z();var i}function ja(l){return gc[l]}function Gh(l){return Ua[l]}function mc(l){return Wi[l]}function qs(l){return{fieldPath:l.canonicalString()}}function Xs(l){return Jt.fromServerFormat(l.fieldPath)}function Ad(l){return l instanceof dr?function(i){if("=="===i.op){if(Je(i.value))return{unaryFilter:{field:qs(i.field),op:"IS_NAN"}};if(st(i.value))return{unaryFilter:{field:qs(i.field),op:"IS_NULL"}}}else if("!="===i.op){if(Je(i.value))return{unaryFilter:{field:qs(i.field),op:"IS_NOT_NAN"}};if(st(i.value))return{unaryFilter:{field:qs(i.field),op:"IS_NOT_NULL"}}}return{fieldFilter:{field:qs(i.field),op:Gh(i.op),value:i.value}}}(l):l instanceof Wr?function(i){const s=i.getFilters().map(u=>Ad(u));return 1===s.length?s[0]:{compositeFilter:{op:mc(i.op),filters:s}}}(l):z()}function Cd(l){const n=[];return l.fields.forEach(i=>n.push(i.canonicalString())),{fieldPaths:n}}function Td(l){return l.length>=4&&"projects"===l.get(0)&&"databases"===l.get(2)}class Aa{constructor(n,i,s,u,f=tn.min(),_=tn.min(),w=si.EMPTY_BYTE_STRING,N=null){this.target=n,this.targetId=i,this.purpose=s,this.sequenceNumber=u,this.snapshotVersion=f,this.lastLimboFreeSnapshotVersion=_,this.resumeToken=w,this.expectedCount=N}withSequenceNumber(n){return new Aa(this.target,this.targetId,this.purpose,n,this.snapshotVersion,this.lastLimboFreeSnapshotVersion,this.resumeToken,this.expectedCount)}withResumeToken(n,i){return new Aa(this.target,this.targetId,this.purpose,this.sequenceNumber,i,this.lastLimboFreeSnapshotVersion,n,null)}withExpectedCount(n){return new Aa(this.target,this.targetId,this.purpose,this.sequenceNumber,this.snapshotVersion,this.lastLimboFreeSnapshotVersion,this.resumeToken,n)}withLastLimboFreeSnapshotVersion(n){return new Aa(this.target,this.targetId,this.purpose,this.sequenceNumber,this.snapshotVersion,n,this.resumeToken,this.expectedCount)}}class Wh{constructor(n){this.ct=n}}function ve(l){const n=Ea({parent:l.parent,structuredQuery:l.structuredQuery});return"LAST"===l.limitType?eo(n,n.limit,"L"):n}class Bo{constructor(){}Pt(n,i){this.It(n,i),i.Tt()}It(n,i){if("nullValue"in n)this.Et(i,5);else if("booleanValue"in n)this.Et(i,10),i.dt(n.booleanValue?1:0);else if("integerValue"in n)this.Et(i,15),i.dt(ai(n.integerValue));else if("doubleValue"in n){const s=ai(n.doubleValue);isNaN(s)?this.Et(i,13):(this.Et(i,15),xn(s)?i.dt(0):i.dt(s))}else if("timestampValue"in n){let s=n.timestampValue;this.Et(i,20),"string"==typeof s&&(s=kr(s)),i.At(`${s.seconds||""}`),i.dt(s.nanos||0)}else if("stringValue"in n)this.Rt(n.stringValue,i),this.Vt(i);else if("bytesValue"in n)this.Et(i,30),i.ft(jn(n.bytesValue)),this.Vt(i);else if("referenceValue"in n)this.gt(n.referenceValue,i);else if("geoPointValue"in n){const s=n.geoPointValue;this.Et(i,45),i.dt(s.latitude||0),i.dt(s.longitude||0)}else"mapValue"in n?qt(n)?this.Et(i,Number.MAX_SAFE_INTEGER):(this.yt(n.mapValue,i),this.Vt(i)):"arrayValue"in n?(this.wt(n.arrayValue,i),this.Vt(i)):z()}Rt(n,i){this.Et(i,25),this.St(n,i)}St(n,i){i.At(n)}yt(n,i){const s=n.fields||{};this.Et(i,55);for(const u of Object.keys(s))this.Rt(u,i),this.It(s[u],i)}wt(n,i){const s=n.values||[];this.Et(i,50);for(const u of s)this.It(u,i)}gt(n,i){this.Et(i,37),Wt.fromName(n).path.forEach(s=>{this.Et(i,60),this.St(s,i)})}Et(n,i){n.dt(i)}Vt(n){n.dt(2)}}Bo.bt=new Bo;class Cs{constructor(){this._n=new yc}addToCollectionParentIndex(n,i){return this._n.add(i),oe.resolve()}getCollectionParents(n,i){return oe.resolve(this._n.getEntries(i))}addFieldIndex(n,i){return oe.resolve()}deleteFieldIndex(n,i){return oe.resolve()}deleteAllFieldIndexes(n){return oe.resolve()}createTargetIndexes(n,i){return oe.resolve()}getDocumentsMatchingTarget(n,i){return oe.resolve(null)}getIndexType(n,i){return oe.resolve(0)}getFieldIndexes(n,i){return oe.resolve([])}getNextCollectionGroupToUpdate(n){return oe.resolve(null)}getMinOffset(n,i){return oe.resolve(Sr.min())}getMinOffsetFromCollectionGroup(n,i){return oe.resolve(Sr.min())}updateCollectionGroup(n,i,s){return oe.resolve()}updateIndexEntries(n,i){return oe.resolve()}}class yc{constructor(){this.index={}}add(n){const i=n.lastSegment(),s=n.popLast(),u=this.index[i]||new kn(gn.comparator),f=!u.has(s);return this.index[i]=u.add(s),f}has(n){const i=n.lastSegment(),s=n.popLast(),u=this.index[i];return u&&u.has(s)}getEntries(n){return(this.index[n]||new kn(gn.comparator)).toArray()}}new Uint8Array(0);class Gn{constructor(n,i,s){this.cacheSizeCollectionThreshold=n,this.percentileToCollect=i,this.maximumSequenceNumbersToCollect=s}static withCacheSize(n){return new Gn(n,Gn.DEFAULT_COLLECTION_PERCENTILE,Gn.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT)}}Gn.DEFAULT_COLLECTION_PERCENTILE=10,Gn.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT=1e3,Gn.DEFAULT=new Gn(41943040,Gn.DEFAULT_COLLECTION_PERCENTILE,Gn.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT),Gn.DISABLED=new Gn(-1,0,0);class gl{constructor(n){this.On=n}next(){return this.On+=2,this.On}static Nn(){return new gl(0)}static Ln(){return new gl(-1)}}class Js{constructor(){this.changes=new as(n=>n.toString(),(n,i)=>n.isEqual(i)),this.changesApplied=!1}addEntry(n){this.assertNotApplied(),this.changes.set(n.key,n)}removeEntry(n,i){this.assertNotApplied(),this.changes.set(n,cr.newInvalidDocument(n).setReadTime(i))}getEntry(n,i){this.assertNotApplied();const s=this.changes.get(i);return void 0!==s?oe.resolve(s):this.getFromCache(n,i)}getEntries(n,i){return this.getAllFromCache(n,i)}apply(n){return this.assertNotApplied(),this.changesApplied=!0,this.applyChanges(n)}assertNotApplied(){}}class Ts{constructor(n,i){this.overlayedDocument=n,this.mutatedFields=i}}class na{constructor(n,i,s,u){this.remoteDocumentCache=n,this.mutationQueue=i,this.documentOverlayCache=s,this.indexManager=u}getDocument(n,i){let s=null;return this.documentOverlayCache.getOverlay(n,i).next(u=>(s=u,this.remoteDocumentCache.getEntry(n,i))).next(u=>(null!==s&&zs(s.mutation,u,Bi.empty(),Qt.now()),u))}getDocuments(n,i){return this.remoteDocumentCache.getEntries(n,i).next(s=>this.getLocalViewOfDocuments(n,s,vr()).next(()=>s))}getLocalViewOfDocuments(n,i,s=vr()){const u=Hr();return this.populateOverlays(n,u,i).next(()=>this.computeViews(n,i,u,s).next(f=>{let _=Ti();return f.forEach((w,N)=>{_=_.insert(w,N.overlayedDocument)}),_}))}getOverlayedDocuments(n,i){const s=Hr();return this.populateOverlays(n,s,i).next(()=>this.computeViews(n,i,s,vr()))}populateOverlays(n,i,s){const u=[];return s.forEach(f=>{i.has(f)||u.push(f)}),this.documentOverlayCache.getOverlays(n,u).next(f=>{f.forEach((_,w)=>{i.set(_,w)})})}computeViews(n,i,s,u){let f=Jn();const _=ls(),w=ls();return i.forEach((N,j)=>{const se=s.get(j.key);u.has(j.key)&&(void 0===se||se.mutation instanceof lo)?f=f.insert(j.key,j):void 0!==se?(_.set(j.key,se.mutation.getFieldMask()),zs(se.mutation,j,se.mutation.getFieldMask(),Qt.now())):_.set(j.key,Bi.empty())}),this.recalculateAndSaveOverlays(n,f).next(N=>(N.forEach((j,se)=>_.set(j,se)),i.forEach((j,se)=>{var be;return w.set(j,new Ts(se,null!==(be=_.get(j))&&void 0!==be?be:null))}),w))}recalculateAndSaveOverlays(n,i){const s=ls();let u=new mr((_,w)=>_-w),f=vr();return this.mutationQueue.getAllMutationBatchesAffectingDocumentKeys(n,i).next(_=>{for(const w of _)w.keys().forEach(N=>{const j=i.get(N);if(null===j)return;let se=s.get(N)||Bi.empty();se=w.applyToLocalView(j,se),s.set(N,se);const be=(u.get(w.batchId)||vr()).add(N);u=u.insert(w.batchId,be)})}).next(()=>{const _=[],w=u.getReverseIterator();for(;w.hasNext();){const N=w.getNext(),j=N.key,se=N.value,be=ll();se.forEach(We=>{if(!f.has(We)){const Rt=ga(i.get(We),s.get(We));null!==Rt&&be.set(We,Rt),f=f.add(We)}}),_.push(this.documentOverlayCache.saveOverlays(n,j,be))}return oe.waitFor(_)}).next(()=>s)}recalculateAndSaveOverlaysForDocumentKeys(n,i){return this.remoteDocumentCache.getEntries(n,i).next(s=>this.recalculateAndSaveOverlays(n,s))}getDocumentsMatchingQuery(n,i,s,u){return Wt.isDocumentKey((_=i).path)&&null===_.collectionGroup&&0===_.filters.length?this.getDocumentsMatchingDocumentQuery(n,i.path):function Ce(l){return null!==l.collectionGroup}(i)?this.getDocumentsMatchingCollectionGroupQuery(n,i,s,u):this.getDocumentsMatchingCollectionQuery(n,i,s,u);var _}getNextDocuments(n,i,s,u){return this.remoteDocumentCache.getAllFromCollectionGroup(n,i,s,u).next(f=>{const _=u-f.size>0?this.documentOverlayCache.getOverlaysForCollectionGroup(n,i,s.largestBatchId,u-f.size):oe.resolve(Hr());let w=-1,N=f;return _.next(j=>oe.forEach(j,(se,be)=>(w{N=N.insert(se,We)}))).next(()=>this.populateOverlays(n,j,f)).next(()=>this.computeViews(n,N,j,vr())).next(se=>({batchId:w,changes:ro(se)})))})}getDocumentsMatchingDocumentQuery(n,i){return this.getDocument(n,new Wt(i)).next(s=>{let u=Ti();return s.isFoundDocument()&&(u=u.insert(s.key,s)),u})}getDocumentsMatchingCollectionGroupQuery(n,i,s,u){const f=i.collectionGroup;let _=Ti();return this.indexManager.getCollectionParents(n,f).next(w=>oe.forEach(w,N=>{const j=(be=i,We=N.child(f),new L(We,null,be.explicitOrderBy.slice(),be.filters.slice(),be.limit,be.limitType,be.startAt,be.endAt));var be,We;return this.getDocumentsMatchingCollectionQuery(n,j,s,u).next(se=>{se.forEach((be,We)=>{_=_.insert(be,We)})})}).next(()=>_))}getDocumentsMatchingCollectionQuery(n,i,s,u){let f;return this.documentOverlayCache.getOverlaysForCollection(n,i.path,s.largestBatchId).next(_=>(f=_,this.remoteDocumentCache.getDocumentsMatchingQuery(n,i,s,f,u))).next(_=>{f.forEach((N,j)=>{const se=j.getKey();null===_.get(se)&&(_=_.insert(se,cr.newInvalidDocument(se)))});let w=Ti();return _.forEach((N,j)=>{const se=f.get(N);void 0!==se&&zs(se.mutation,j,Bi.empty(),Qt.now()),Bs(i,j)&&(w=w.insert(N,j))}),w})}}class ng{constructor(n){this.serializer=n,this.cr=new Map,this.lr=new Map}getBundleMetadata(n,i){return oe.resolve(this.cr.get(i))}saveBundleMetadata(n,i){return this.cr.set(i.id,{id:(u=i).id,version:u.version,createTime:Lr(u.createTime)}),oe.resolve();var u}getNamedQuery(n,i){return oe.resolve(this.lr.get(i))}saveNamedQuery(n,i){return this.lr.set(i.name,{name:(u=i).name,query:ve(u.bundledQuery),readTime:Lr(u.readTime)}),oe.resolve();var u}}class Tc{constructor(){this.overlays=new mr(Wt.comparator),this.hr=new Map}getOverlay(n,i){return oe.resolve(this.overlays.get(i))}getOverlays(n,i){const s=Hr();return oe.forEach(i,u=>this.getOverlay(n,u).next(f=>{null!==f&&s.set(u,f)})).next(()=>s)}saveOverlays(n,i,s){return s.forEach((u,f)=>{this.ht(n,i,f)}),oe.resolve()}removeOverlaysForBatchId(n,i,s){const u=this.hr.get(s);return void 0!==u&&(u.forEach(f=>this.overlays=this.overlays.remove(f)),this.hr.delete(s)),oe.resolve()}getOverlaysForCollection(n,i,s){const u=Hr(),f=i.length+1,_=new Wt(i.child("")),w=this.overlays.getIteratorFrom(_);for(;w.hasNext();){const N=w.getNext().value,j=N.getKey();if(!i.isPrefixOf(j.path))break;j.path.length===f&&N.largestBatchId>s&&u.set(N.getKey(),N)}return oe.resolve(u)}getOverlaysForCollectionGroup(n,i,s,u){let f=new mr((j,se)=>j-se);const _=this.overlays.getIterator();for(;_.hasNext();){const j=_.getNext().value;if(j.getKey().getCollectionGroup()===i&&j.largestBatchId>s){let se=f.get(j.largestBatchId);null===se&&(se=Hr(),f=f.insert(j.largestBatchId,se)),se.set(j.getKey(),j)}}const w=Hr(),N=f.getIterator();for(;N.hasNext()&&(N.getNext().value.forEach((j,se)=>w.set(j,se)),!(w.size()>=u)););return oe.resolve(w)}ht(n,i,s){const u=this.overlays.get(s.key);if(null!==u){const _=this.hr.get(u.largestBatchId).delete(s.key);this.hr.set(u.largestBatchId,_)}this.overlays=this.overlays.insert(s.key,new xe(i,s));let f=this.hr.get(i);void 0===f&&(f=vr(),this.hr.set(i,f)),this.hr.set(i,f.add(s.key))}}class Md{constructor(){this.Pr=new kn(Io.Ir),this.Tr=new kn(Io.Er)}isEmpty(){return this.Pr.isEmpty()}addReference(n,i){const s=new Io(n,i);this.Pr=this.Pr.add(s),this.Tr=this.Tr.add(s)}dr(n,i){n.forEach(s=>this.addReference(s,i))}removeReference(n,i){this.Ar(new Io(n,i))}Rr(n,i){n.forEach(s=>this.removeReference(s,i))}Vr(n){const i=new Wt(new gn([])),s=new Io(i,n),u=new Io(i,n+1),f=[];return this.Tr.forEachInRange([s,u],_=>{this.Ar(_),f.push(_.key)}),f}mr(){this.Pr.forEach(n=>this.Ar(n))}Ar(n){this.Pr=this.Pr.delete(n),this.Tr=this.Tr.delete(n)}gr(n){const i=new Wt(new gn([])),s=new Io(i,n),u=new Io(i,n+1);let f=vr();return this.Tr.forEachInRange([s,u],_=>{f=f.add(_.key)}),f}containsKey(n){const i=new Io(n,0),s=this.Pr.firstAfterOrEqual(i);return null!==s&&n.isEqual(s.key)}}class Io{constructor(n,i){this.key=n,this.pr=i}static Ir(n,i){return Wt.comparator(n.key,i.key)||Le(n.pr,i.pr)}static Er(n,i){return Le(n.pr,i.pr)||Wt.comparator(n.key,i.key)}}class Pd{constructor(n,i){this.indexManager=n,this.referenceDelegate=i,this.mutationQueue=[],this.yr=1,this.wr=new kn(Io.Ir)}checkEmpty(n){return oe.resolve(0===this.mutationQueue.length)}addMutationBatch(n,i,s,u){const f=this.yr;this.yr++;const _=new O(f,i,s,u);this.mutationQueue.push(_);for(const w of u)this.wr=this.wr.add(new Io(w.key,f)),this.indexManager.addToCollectionParentIndex(n,w.key.path.popLast());return oe.resolve(_)}lookupMutationBatch(n,i){return oe.resolve(this.Sr(i))}getNextMutationBatchAfterBatchId(n,i){const u=this.br(i+1),f=u<0?0:u;return oe.resolve(this.mutationQueue.length>f?this.mutationQueue[f]:null)}getHighestUnacknowledgedBatchId(){return oe.resolve(0===this.mutationQueue.length?-1:this.yr-1)}getAllMutationBatches(n){return oe.resolve(this.mutationQueue.slice())}getAllMutationBatchesAffectingDocumentKey(n,i){const s=new Io(i,0),u=new Io(i,Number.POSITIVE_INFINITY),f=[];return this.wr.forEachInRange([s,u],_=>{const w=this.Sr(_.pr);f.push(w)}),oe.resolve(f)}getAllMutationBatchesAffectingDocumentKeys(n,i){let s=new kn(Le);return i.forEach(u=>{const f=new Io(u,0),_=new Io(u,Number.POSITIVE_INFINITY);this.wr.forEachInRange([f,_],w=>{s=s.add(w.pr)})}),oe.resolve(this.Dr(s))}getAllMutationBatchesAffectingQuery(n,i){const s=i.path,u=s.length+1;let f=s;Wt.isDocumentKey(f)||(f=f.child(""));const _=new Io(new Wt(f),0);let w=new kn(Le);return this.wr.forEachWhile(N=>{const j=N.key.path;return!!s.isPrefixOf(j)&&(j.length===u&&(w=w.add(N.pr)),!0)},_),oe.resolve(this.Dr(w))}Dr(n){const i=[];return n.forEach(s=>{const u=this.Sr(s);null!==u&&i.push(u)}),i}removeMutationBatch(n,i){q(0===this.Cr(i.batchId,"removed")),this.mutationQueue.shift();let s=this.wr;return oe.forEach(i.mutations,u=>{const f=new Io(u.key,i.batchId);return s=s.delete(f),this.referenceDelegate.markPotentiallyOrphaned(n,u.key)}).next(()=>{this.wr=s})}Mn(n){}containsKey(n,i){const s=new Io(i,0),u=this.wr.firstAfterOrEqual(s);return oe.resolve(i.isEqual(u&&u.key))}performConsistencyCheck(n){return oe.resolve()}Cr(n,i){return this.br(n)}br(n){return 0===this.mutationQueue.length?0:n-this.mutationQueue[0].batchId}Sr(n){const i=this.br(n);return i<0||i>=this.mutationQueue.length?null:this.mutationQueue[i]}}class Ou{constructor(n){this.vr=n,this.docs=new mr(Wt.comparator),this.size=0}setIndexManager(n){this.indexManager=n}addEntry(n,i){const s=i.key,u=this.docs.get(s),f=u?u.size:0,_=this.vr(i);return this.docs=this.docs.insert(s,{document:i.mutableCopy(),size:_}),this.size+=_-f,this.indexManager.addToCollectionParentIndex(n,s.path.popLast())}removeEntry(n){const i=this.docs.get(n);i&&(this.docs=this.docs.remove(n),this.size-=i.size)}getEntry(n,i){const s=this.docs.get(i);return oe.resolve(s?s.document.mutableCopy():cr.newInvalidDocument(i))}getEntries(n,i){let s=Jn();return i.forEach(u=>{const f=this.docs.get(u);s=s.insert(u,f?f.document.mutableCopy():cr.newInvalidDocument(u))}),oe.resolve(s)}getDocumentsMatchingQuery(n,i,s,u){let f=Jn();const _=i.path,w=new Wt(_.child("")),N=this.docs.getIteratorFrom(w);for(;N.hasNext();){const{key:j,value:{document:se}}=N.getNext();if(!_.isPrefixOf(j.path))break;j.path.length>_.length+1||tr(new Sr((l=se).readTime,l.key,-1),s)<=0||(u.has(se.key)||Bs(i,se))&&(f=f.insert(se.key,se.mutableCopy()))}var l;return oe.resolve(f)}getAllFromCollectionGroup(n,i,s,u){z()}Fr(n,i){return oe.forEach(this.docs,s=>i(s))}newChangeBuffer(n){return new xd(this)}getSize(n){return oe.resolve(this.size)}}class xd extends Js{constructor(n){super(),this.ar=n}applyChanges(n){const i=[];return this.changes.forEach((s,u)=>{u.isValidDocument()?i.push(this.ar.addEntry(n,u)):this.ar.removeEntry(s)}),oe.waitFor(i)}getFromCache(n,i){return this.ar.getEntry(n,i)}getAllFromCache(n,i){return this.ar.getEntries(n,i)}}class Dc{constructor(n){this.persistence=n,this.Mr=new as(i=>bs(i),Xo),this.lastRemoteSnapshotVersion=tn.min(),this.highestTargetId=0,this.Or=0,this.Nr=new Md,this.targetCount=0,this.Lr=gl.Nn()}forEachTarget(n,i){return this.Mr.forEach((s,u)=>i(u)),oe.resolve()}getLastRemoteSnapshotVersion(n){return oe.resolve(this.lastRemoteSnapshotVersion)}getHighestSequenceNumber(n){return oe.resolve(this.Or)}allocateTargetId(n){return this.highestTargetId=this.Lr.next(),oe.resolve(this.highestTargetId)}setTargetsMetadata(n,i,s){return s&&(this.lastRemoteSnapshotVersion=s),i>this.Or&&(this.Or=i),oe.resolve()}qn(n){this.Mr.set(n.target,n);const i=n.targetId;i>this.highestTargetId&&(this.Lr=new gl(i),this.highestTargetId=i),n.sequenceNumber>this.Or&&(this.Or=n.sequenceNumber)}addTargetData(n,i){return this.qn(i),this.targetCount+=1,oe.resolve()}updateTargetData(n,i){return this.qn(i),oe.resolve()}removeTargetData(n,i){return this.Mr.delete(i.target),this.Nr.Vr(i.targetId),this.targetCount-=1,oe.resolve()}removeTargets(n,i,s){let u=0;const f=[];return this.Mr.forEach((_,w)=>{w.sequenceNumber<=i&&null===s.get(w.targetId)&&(this.Mr.delete(_),f.push(this.removeMatchingKeysForTargetId(n,w.targetId)),u++)}),oe.waitFor(f).next(()=>u)}getTargetCount(n){return oe.resolve(this.targetCount)}getTargetData(n,i){const s=this.Mr.get(i)||null;return oe.resolve(s)}addMatchingKeys(n,i,s){return this.Nr.dr(i,s),oe.resolve()}removeMatchingKeys(n,i,s){this.Nr.Rr(i,s);const u=this.persistence.referenceDelegate,f=[];return u&&i.forEach(_=>{f.push(u.markPotentiallyOrphaned(n,_))}),oe.waitFor(f)}removeMatchingKeysForTargetId(n,i){return this.Nr.Vr(i),oe.resolve()}getMatchingKeysForTargetId(n,i){const s=this.Nr.gr(i);return oe.resolve(s)}containsKey(n,i){return oe.resolve(this.Nr.containsKey(i))}}class bc{constructor(n,i){this.Br={},this.overlays={},this.kr=new ur(0),this.qr=!1,this.qr=!0,this.referenceDelegate=n(this),this.Qr=new Dc(this),this.indexManager=new Cs,this.remoteDocumentCache=new Ou(s=>this.referenceDelegate.Kr(s)),this.serializer=new Wh(i),this.$r=new ng(this.serializer)}start(){return Promise.resolve()}shutdown(){return this.qr=!1,Promise.resolve()}get started(){return this.qr}setDatabaseDeletedListener(){}setNetworkEnabled(){}getIndexManager(n){return this.indexManager}getDocumentOverlayCache(n){let i=this.overlays[n.toKey()];return i||(i=new Tc,this.overlays[n.toKey()]=i),i}getMutationQueue(n,i){let s=this.Br[n.toKey()];return s||(s=new Pd(i,this.referenceDelegate),this.Br[n.toKey()]=s),s}getTargetCache(){return this.Qr}getRemoteDocumentCache(){return this.remoteDocumentCache}getBundleCache(){return this.$r}runTransaction(n,i,s){Be("MemoryPersistence","Starting transaction:",n);const u=new Yh(this.kr.next());return this.referenceDelegate.Ur(),s(u).next(f=>this.referenceDelegate.Wr(u).next(()=>f)).toPromise().then(f=>(u.raiseOnCommittedEvent(),f))}Gr(n,i){return oe.or(Object.values(this.Br).map(s=>()=>s.containsKey(n,i)))}}class Yh extends Ri{constructor(n){super(),this.currentSequenceNumber=n}}class Da{constructor(n){this.persistence=n,this.zr=new Md,this.jr=null}static Hr(n){return new Da(n)}get Jr(){if(this.jr)return this.jr;throw z()}addReference(n,i,s){return this.zr.addReference(s,i),this.Jr.delete(s.toString()),oe.resolve()}removeReference(n,i,s){return this.zr.removeReference(s,i),this.Jr.add(s.toString()),oe.resolve()}markPotentiallyOrphaned(n,i){return this.Jr.add(i.toString()),oe.resolve()}removeTarget(n,i){this.zr.Vr(i.targetId).forEach(u=>this.Jr.add(u.toString()));const s=this.persistence.getTargetCache();return s.getMatchingKeysForTargetId(n,i.targetId).next(u=>{u.forEach(f=>this.Jr.add(f.toString()))}).next(()=>s.removeTargetData(n,i))}Ur(){this.jr=new Set}Wr(n){const i=this.persistence.getRemoteDocumentCache().newChangeBuffer();return oe.forEach(this.Jr,s=>{const u=Wt.fromPath(s);return this.Yr(n,u).next(f=>{f||i.removeEntry(u,tn.min())})}).next(()=>(this.jr=null,i.apply(n)))}updateLimboDocument(n,i){return this.Yr(n,i).next(s=>{s?this.Jr.delete(i.toString()):this.Jr.add(i.toString())})}Kr(n){return 0}Yr(n,i){return oe.or([()=>oe.resolve(this.zr.containsKey(i)),()=>this.persistence.getTargetCache().containsKey(n,i),()=>this.persistence.Gr(n,i)])}}class yi{constructor(n,i,s,u){this.targetId=n,this.fromCache=i,this.qi=s,this.Qi=u}static Ki(n,i){let s=vr(),u=vr();for(const f of i.docChanges)switch(f.type){case 0:s=s.add(f.doc.key);break;case 1:u=u.add(f.doc.key)}return new yi(n,i.fromCache,s,u)}}class rg{constructor(){this._documentReadCount=0}get documentReadCount(){return this._documentReadCount}incrementDocumentReadCount(n){this._documentReadCount+=n}}class Jh{constructor(){this.$i=!1,this.Ui=!1,this.Wi=100,this.Gi=(0,Te.nr)()?8:function Xe(l){const n=l.match(/Android ([\d.]+)/i),i=n?n[1].split(".").slice(0,2).join("."):"-1";return Number(i)}((0,Te.ZQ)())>0?6:4}initialize(n,i){this.zi=n,this.indexManager=i,this.$i=!0}getDocumentsMatchingQuery(n,i,s,u){const f={result:null};return this.ji(n,i).next(_=>{f.result=_}).next(()=>{if(!f.result)return this.Hi(n,i,u,s).next(_=>{f.result=_})}).next(()=>{if(f.result)return;const _=new rg;return this.Ji(n,i,_).next(w=>{if(f.result=w,this.Ui)return this.Yi(n,i,_,w.size)})}).next(()=>f.result)}Yi(n,i,s,u){return s.documentReadCountthis.Gi*u?(en()<=tt.$b.DEBUG&&Be("QueryEngine","The SDK decides to create cache indexes for query:",vs(i),"as using cache indexes may help improve performance."),this.indexManager.createTargetIndexes(n,On(i))):oe.resolve())}ji(n,i){if($(i))return oe.resolve(null);let s=On(i);return this.indexManager.getIndexType(n,s).next(u=>0===u?null:(null!==i.limit&&1===u&&(i=eo(i,null,"F"),s=On(i)),this.indexManager.getDocumentsMatchingTarget(n,s).next(f=>{const _=vr(...f);return this.zi.getDocuments(n,_).next(w=>this.indexManager.getMinOffset(n,s).next(N=>{const j=this.Zi(i,w);return this.Xi(i,j,_,N.readTime)?this.ji(n,eo(i,null,"F")):this.es(n,j,i,N)}))})))}Hi(n,i,s,u){return $(i)||u.isEqual(tn.min())?oe.resolve(null):this.zi.getDocuments(n,s).next(f=>{const _=this.Zi(i,f);return this.Xi(i,_,s,u)?oe.resolve(null):(en()<=tt.$b.DEBUG&&Be("QueryEngine","Re-using previous result from %s to execute query: %s",u.toString(),vs(i)),this.es(n,_,i,function Zn(l,n){const i=l.toTimestamp().seconds,s=l.toTimestamp().nanoseconds+1,u=tn.fromTimestamp(1e9===s?new Qt(i+1,0):new Qt(i,s));return new Sr(u,Wt.empty(),n)}(u,-1)).next(w=>w))})}Zi(n,i){let s=new kn(sl(n));return i.forEach((u,f)=>{Bs(n,f)&&(s=s.add(f))}),s}Xi(n,i,s,u){if(null===n.limit)return!1;if(s.size!==i.size)return!0;const f="F"===n.limitType?i.last():i.first();return!!f&&(f.hasPendingWrites||f.version.compareTo(u)>0)}Ji(n,i,s){return en()<=tt.$b.DEBUG&&Be("QueryEngine","Using full collection scan to execute query:",vs(i)),this.zi.getDocumentsMatchingQuery(n,i,Sr.min(),s)}es(n,i,s,u){return this.zi.getDocumentsMatchingQuery(n,s,u).next(f=>(i.forEach(_=>{f=f.insert(_.key,_)}),f))}}class ig{constructor(n,i,s,u){this.persistence=n,this.ts=i,this.serializer=u,this.ns=new mr(Le),this.rs=new as(f=>bs(f),Xo),this.ss=new Map,this.os=n.getRemoteDocumentCache(),this.Qr=n.getTargetCache(),this.$r=n.getBundleCache(),this._s(s)}_s(n){this.documentOverlayCache=this.persistence.getDocumentOverlayCache(n),this.indexManager=this.persistence.getIndexManager(n),this.mutationQueue=this.persistence.getMutationQueue(n,this.indexManager),this.localDocuments=new na(this.os,this.mutationQueue,this.documentOverlayCache,this.indexManager),this.os.setIndexManager(this.indexManager),this.ts.initialize(this.localDocuments,this.indexManager)}collectGarbage(n){return this.persistence.runTransaction("Collect garbage","readwrite-primary",i=>n.collect(i,this.ns))}}function Od(l,n){return Lu.apply(this,arguments)}function Lu(){return(Lu=(0,Ie.A)(function*(l,n){const i=he(l);return yield i.persistence.runTransaction("Handle user change","readonly",s=>{let u;return i.mutationQueue.getAllMutationBatches(s).next(f=>(u=f,i._s(n),i.mutationQueue.getAllMutationBatches(s))).next(f=>{const _=[],w=[];let N=vr();for(const j of u){_.push(j.batchId);for(const se of j.mutations)N=N.add(se.key)}for(const j of f){w.push(j.batchId);for(const se of j.mutations)N=N.add(se.key)}return i.localDocuments.getDocuments(s,N).next(j=>({us:j,removedBatchIds:_,addedBatchIds:w}))})})})).apply(this,arguments)}function Ns(l){const n=he(l);return n.persistence.runTransaction("Get last remote snapshot version","readonly",i=>n.Qr.getLastRemoteSnapshotVersion(i))}function Sc(l,n){const i=he(l);return i.persistence.runTransaction("Get next mutation batch","readonly",s=>(void 0===n&&(n=-1),i.mutationQueue.getNextMutationBatchAfterBatchId(s,n)))}function ia(l,n,i){return Rc.apply(this,arguments)}function Rc(){return(Rc=(0,Ie.A)(function*(l,n,i){const s=he(l),u=s.ns.get(n),f=i?"readwrite":"readwrite-primary";try{i||(yield s.persistence.runTransaction("Release target",f,_=>s.persistence.referenceDelegate.removeTarget(_,u)))}catch(_){if(!Me(_))throw _;Be("LocalStore",`Failed to update sequence numbers for target ${n}: ${_}`)}s.ns=s.ns.remove(n),s.rs.delete(u.target)})).apply(this,arguments)}function vl(l,n,i){const s=he(l);let u=tn.min(),f=vr();return s.persistence.runTransaction("Execute query","readwrite",_=>function(N,j,se){const be=he(N),We=be.rs.get(se);return void 0!==We?oe.resolve(be.ns.get(We)):be.Qr.getTargetData(j,se)}(s,_,On(n)).next(w=>{if(w)return u=w.lastLimboFreeSnapshotVersion,s.Qr.getMatchingKeysForTargetId(_,w.targetId).next(N=>{f=N})}).next(()=>s.ts.getDocumentsMatchingQuery(_,n,i?u:tn.min(),i?f:vr())).next(w=>(function yl(l,n,i){let s=l.ss.get(n)||tn.min();i.forEach((u,f)=>{f.readTime.compareTo(s)>0&&(s=f.readTime)}),l.ss.set(n,s)}(s,function Oa(l){return l.collectionGroup||(l.path.length%2==1?l.path.lastSegment():l.path.get(l.path.length-2))}(n),w),{documents:w,hs:f})))}class ju{constructor(){this.activeTargetIds=function ys(){return ul}()}As(n){this.activeTargetIds=this.activeTargetIds.add(n)}Rs(n){this.activeTargetIds=this.activeTargetIds.delete(n)}ds(){const n={activeTargetIds:this.activeTargetIds.toArray(),updateTimeMs:Date.now()};return JSON.stringify(n)}}class rf{constructor(){this.no=new ju,this.ro={},this.onlineStateHandler=null,this.sequenceNumberHandler=null}addPendingMutation(n){}updateMutationState(n,i,s){}addLocalQueryTarget(n){return this.no.As(n),this.ro[n]||"not-current"}updateQueryState(n,i,s){this.ro[n]=i}removeLocalQueryTarget(n){this.no.Rs(n)}isLocalQueryTarget(n){return this.no.activeTargetIds.has(n)}clearQueryState(n){delete this.ro[n]}getAllActiveQueryTargets(){return this.no.activeTargetIds}isActiveQueryTarget(n){return this.no.activeTargetIds.has(n)}start(){return this.no=new ju,Promise.resolve()}handleUserChange(n,i,s){}setOnlineState(n){}shutdown(){}writeSequenceNumber(n){}notifyBundleLoaded(n){}}class sf{io(n){}shutdown(){}}class Vd{constructor(){this.so=()=>this.oo(),this._o=()=>this.ao(),this.uo=[],this.co()}io(n){this.uo.push(n)}shutdown(){window.removeEventListener("online",this.so),window.removeEventListener("offline",this._o)}co(){window.addEventListener("online",this.so),window.addEventListener("offline",this._o)}oo(){Be("ConnectivityMonitor","Network connectivity changed: AVAILABLE");for(const n of this.uo)n(0)}ao(){Be("ConnectivityMonitor","Network connectivity changed: UNAVAILABLE");for(const n of this.uo)n(1)}static D(){return typeof window<"u"&&void 0!==window.addEventListener&&void 0!==window.removeEventListener}}let Nc=null;function Ds(){return null===Nc?Nc=268435456+Math.round(2147483648*Math.random()):Nc++,"0x"+Nc.toString(16)}const cv={BatchGetDocuments:"batchGet",Commit:"commit",RunQuery:"runQuery",RunAggregationQuery:"runAggregationQuery"};class zu{constructor(n){this.lo=n.lo,this.ho=n.ho}Po(n){this.Io=n}To(n){this.Eo=n}Ao(n){this.Ro=n}onMessage(n){this.Vo=n}close(){this.ho()}send(n){this.lo(n)}mo(){this.Io()}fo(){this.Eo()}po(n){this.Ro(n)}yo(n){this.Vo(n)}}const Ro="WebChannelConnection";class Ld extends class{constructor(i){this.databaseInfo=i,this.databaseId=i.databaseId;const s=i.ssl?"https":"http",u=encodeURIComponent(this.databaseId.projectId),f=encodeURIComponent(this.databaseId.database);this.wo=s+"://"+i.host,this.So=`projects/${u}/databases/${f}`,this.bo="(default)"===this.databaseId.database?`project_id=${u}`:`project_id=${u}&database_id=${f}`}get Do(){return!1}Co(i,s,u,f,_){const w=Ds(),N=this.vo(i,s.toUriEncodedString());Be("RestConnection",`Sending RPC '${i}' ${w}:`,N,u);const j={"google-cloud-resource-prefix":this.So,"x-goog-request-params":this.bo};return this.Fo(j,f,_),this.Mo(i,N,j,u).then(se=>(Be("RestConnection",`Received RPC '${i}' ${w}: `,se),se),se=>{throw rt("RestConnection",`RPC '${i}' ${w} failed with error: `,se,"url: ",N,"request:",u),se})}xo(i,s,u,f,_,w){return this.Co(i,s,u,f,_)}Fo(i,s,u){i["X-Goog-Api-Client"]="gl-js/ fire/"+Tt,i["Content-Type"]="text/plain",this.databaseInfo.appId&&(i["X-Firebase-GMPID"]=this.databaseInfo.appId),s&&s.headers.forEach((f,_)=>i[_]=f),u&&u.headers.forEach((f,_)=>i[_]=f)}vo(i,s){return`${this.wo}/v1/${s}:${cv[i]}`}terminate(){}}{constructor(n){super(n),this.forceLongPolling=n.forceLongPolling,this.autoDetectLongPolling=n.autoDetectLongPolling,this.useFetchStreams=n.useFetchStreams,this.longPollingOptions=n.longPollingOptions}Mo(n,i,s,u){const f=Ds();return new Promise((_,w)=>{const N=new ct;N.setWithCredentials(!0),N.listenOnce(mt.COMPLETE,()=>{try{switch(N.getLastErrorCode()){case vt.NO_ERROR:const se=N.getResponseJson();Be(Ro,`XHR for RPC '${n}' ${f} received:`,JSON.stringify(se)),_(se);break;case vt.TIMEOUT:Be(Ro,`RPC '${n}' ${f} timed out`),w(new me(ae.DEADLINE_EXCEEDED,"Request time out"));break;case vt.HTTP_ERROR:const be=N.getStatus();if(Be(Ro,`RPC '${n}' ${f} failed with status:`,be,"response text:",N.getResponseText()),be>0){let We=N.getResponseJson();Array.isArray(We)&&(We=We[0]);const Rt=null==We?void 0:We.error;if(Rt&&Rt.status&&Rt.message){const nn=function(ln){const zn=ln.toLowerCase().replace(/_/g,"-");return Object.values(ae).indexOf(zn)>=0?zn:ae.UNKNOWN}(Rt.status);w(new me(nn,Rt.message))}else w(new me(ae.UNKNOWN,"Server responded with status "+N.getStatus()))}else w(new me(ae.UNAVAILABLE,"Connection failed."));break;default:z()}}finally{Be(Ro,`RPC '${n}' ${f} completed.`)}});const j=JSON.stringify(u);Be(Ro,`RPC '${n}' ${f} sending request:`,u),N.send(i,"POST",j,s,15)})}Oo(n,i,s){const u=Ds(),f=[this.wo,"/","google.firestore.v1.Firestore","/",n,"/channel"],_=Ct(),w=Ke(),N={httpSessionIdParam:"gsessionid",initMessageHeaders:{},messageUrlParams:{database:`projects/${this.databaseId.projectId}/databases/${this.databaseId.database}`},sendRawJson:!0,supportsCrossDomainXhr:!0,internalChannelParams:{forwardChannelRequestTimeoutMs:6e5},forceLongPolling:this.forceLongPolling,detectBufferingProxy:this.autoDetectLongPolling},j=this.longPollingOptions.timeoutSeconds;void 0!==j&&(N.longPollingTimeout=Math.round(1e3*j)),this.useFetchStreams&&(N.xmlHttpFactory=new at({})),this.Fo(N.initMessageHeaders,i,s),N.encodeInitMessageHeaders=!0;const se=f.join("");Be(Ro,`Creating RPC '${n}' stream ${u}: ${se}`,N);const be=_.createWebChannel(se,N);let We=!1,Rt=!1;const nn=new zu({lo:ln=>{Rt?Be(Ro,`Not sending because RPC '${n}' stream ${u} is closed:`,ln):(We||(Be(Ro,`Opening RPC '${n}' stream ${u} transport.`),be.open(),We=!0),Be(Ro,`RPC '${n}' stream ${u} sending:`,ln),be.send(ln))},ho:()=>be.close()}),pn=(ln,zn,ar)=>{ln.listen(zn,Qn=>{try{ar(Qn)}catch(Rr){setTimeout(()=>{throw Rr},0)}})};return pn(be,Mt.EventType.OPEN,()=>{Rt||(Be(Ro,`RPC '${n}' stream ${u} transport opened.`),nn.mo())}),pn(be,Mt.EventType.CLOSE,()=>{Rt||(Rt=!0,Be(Ro,`RPC '${n}' stream ${u} transport closed`),nn.po())}),pn(be,Mt.EventType.ERROR,ln=>{Rt||(Rt=!0,rt(Ro,`RPC '${n}' stream ${u} transport errored:`,ln),nn.po(new me(ae.UNAVAILABLE,"The operation could not be completed")))}),pn(be,Mt.EventType.MESSAGE,ln=>{var zn;if(!Rt){const ar=ln.data[0];q(!!ar);const Rr=ar.error||(null===(zn=ar[0])||void 0===zn?void 0:zn.error);if(Rr){Be(Ro,`RPC '${n}' stream ${u} received error:`,Rr);const Ii=Rr.status;let zr=function(et){const pt=Un[et];if(void 0!==pt)return Tr(pt)}(Ii),ft=Rr.message;void 0===zr&&(zr=ae.INTERNAL,ft="Unknown error status: "+Ii+" with message "+Rr.message),Rt=!0,nn.po(new me(zr,ft)),be.close()}else Be(Ro,`RPC '${n}' stream ${u} received:`,ar),nn.yo(ar)}}),pn(w,je.STAT_EVENT,ln=>{ln.stat===Re.PROXY?Be(Ro,`RPC '${n}' stream ${u} detected buffering proxy`):ln.stat===Re.NOPROXY&&Be(Ro,`RPC '${n}' stream ${u} detected no buffering proxy`)}),setTimeout(()=>{nn.fo()},0),nn}}function Al(){return typeof document<"u"?document:null}function Oc(l){return new va(l,!0)}class eu{constructor(n,i,s=1e3,u=1.5,f=6e4){this.oi=n,this.timerId=i,this.No=s,this.Lo=u,this.Bo=f,this.ko=0,this.qo=null,this.Qo=Date.now(),this.reset()}reset(){this.ko=0}Ko(){this.ko=this.Bo}$o(n){this.cancel();const i=Math.floor(this.ko+this.Uo()),s=Math.max(0,Date.now()-this.Qo),u=Math.max(0,i-s);u>0&&Be("ExponentialBackoff",`Backing off for ${u} ms (base delay: ${this.ko} ms, delay with jitter: ${i} ms, last attempt: ${s} ms ago)`),this.qo=this.oi.enqueueAfterDelay(this.timerId,u,()=>(this.Qo=Date.now(),n())),this.ko*=this.Lo,this.kothis.Bo&&(this.ko=this.Bo)}Wo(){null!==this.qo&&(this.qo.skipDelay(),this.qo=null)}cancel(){null!==this.qo&&(this.qo.cancel(),this.qo=null)}Uo(){return(Math.random()-.5)*this.ko}}class Ud{constructor(n,i,s,u,f,_,w,N){this.oi=n,this.Go=s,this.zo=u,this.connection=f,this.authCredentialsProvider=_,this.appCheckCredentialsProvider=w,this.listener=N,this.state=0,this.jo=0,this.Ho=null,this.Jo=null,this.stream=null,this.Yo=new eu(n,i)}Zo(){return 1===this.state||5===this.state||this.Xo()}Xo(){return 2===this.state||3===this.state}start(){4!==this.state?this.auth():this.e_()}stop(){var n=this;return(0,Ie.A)(function*(){n.Zo()&&(yield n.close(0))})()}t_(){this.state=0,this.Yo.reset()}n_(){this.Xo()&&null===this.Ho&&(this.Ho=this.oi.enqueueAfterDelay(this.Go,6e4,()=>this.r_()))}i_(n){this.s_(),this.stream.send(n)}r_(){var n=this;return(0,Ie.A)(function*(){if(n.Xo())return n.close(0)})()}s_(){this.Ho&&(this.Ho.cancel(),this.Ho=null)}o_(){this.Jo&&(this.Jo.cancel(),this.Jo=null)}close(n,i){var s=this;return(0,Ie.A)(function*(){s.s_(),s.o_(),s.Yo.cancel(),s.jo++,4!==n?s.Yo.reset():i&&i.code===ae.RESOURCE_EXHAUSTED?(Pt(i.toString()),Pt("Using maximum backoff delay to prevent overloading the backend."),s.Yo.Ko()):i&&i.code===ae.UNAUTHENTICATED&&3!==s.state&&(s.authCredentialsProvider.invalidateToken(),s.appCheckCredentialsProvider.invalidateToken()),null!==s.stream&&(s.__(),s.stream.close(),s.stream=null),s.state=n,yield s.listener.Ao(i)})()}__(){}auth(){this.state=1;const n=this.a_(this.jo),i=this.jo;Promise.all([this.authCredentialsProvider.getToken(),this.appCheckCredentialsProvider.getToken()]).then(([s,u])=>{this.jo===i&&this.u_(s,u)},s=>{n(()=>{const u=new me(ae.UNKNOWN,"Fetching auth token failed: "+s.message);return this.c_(u)})})}u_(n,i){const s=this.a_(this.jo);this.stream=this.l_(n,i),this.stream.Po(()=>{s(()=>this.listener.Po())}),this.stream.To(()=>{s(()=>(this.state=2,this.Jo=this.oi.enqueueAfterDelay(this.zo,1e4,()=>(this.Xo()&&(this.state=3),Promise.resolve())),this.listener.To()))}),this.stream.Ao(u=>{s(()=>this.c_(u))}),this.stream.onMessage(u=>{s(()=>this.onMessage(u))})}e_(){var n=this;this.state=5,this.Yo.$o((0,Ie.A)(function*(){n.state=0,n.start()}))}c_(n){return Be("PersistentStream",`close with error: ${n}`),this.stream=null,this.close(4,n)}a_(n){return i=>{this.oi.enqueueAndForget(()=>this.jo===n?i():(Be("PersistentStream","stream callback skipped by getCloseGuardedDispatcher."),Promise.resolve()))}}}class af extends Ud{constructor(n,i,s,u,f,_){super(n,"listen_stream_connection_backoff","listen_stream_idle","health_check_timeout",i,s,u,_),this.serializer=f}l_(n,i){return this.connection.Oo("Listen",n,i)}onMessage(n){this.Yo.reset();const i=function zl(l,n){let i;if("targetChange"in n){const s="NO_CHANGE"===(j=n.targetChange.targetChangeType||"NO_CHANGE")?0:"ADD"===j?1:"REMOVE"===j?2:"CURRENT"===j?3:"RESET"===j?4:z(),u=n.targetChange.targetIds||[],f=function(j,se){return j.useProto3Json?(q(void 0===se||"string"==typeof se),si.fromBase64String(se||"")):(q(void 0===se||se instanceof Buffer||se instanceof Uint8Array),si.fromUint8Array(se||new Uint8Array))}(l,n.targetChange.resumeToken),_=n.targetChange.cause,w=_&&function(j){const se=void 0===j.code?ae.UNKNOWN:Tr(j.code);return new me(se,j.message||"")}(_);i=new Zr(s,u,f,w||null)}else if("documentChange"in n){const s=n.documentChange,u=No(l,s.document.name),f=Lr(s.document.updateTime),_=s.document.createTime?Lr(s.document.createTime):tn.min(),w=new In({mapValue:{fields:s.document.fields}}),N=cr.newFoundDocument(u,f,_,w);i=new Gi(s.targetIds||[],s.removedTargetIds||[],N.key,N)}else if("documentDelete"in n){const s=n.documentDelete,u=No(l,s.document),f=s.readTime?Lr(s.readTime):tn.min(),_=cr.newNoDocument(u,f);i=new Gi([],s.removedTargetIds||[],_.key,_)}else if("documentRemove"in n){const s=n.documentRemove,u=No(l,s.document);i=new Gi([],s.removedTargetIds||[],u,null)}else{if(!("filter"in n))return z();{const s=n.filter,{count:u=0,unchangedNames:f}=s,_=new an(u,f);i=new ki(s.targetId,_)}}var j;return i}(this.serializer,n),s=function(f){if(!("targetChange"in f))return tn.min();const _=f.targetChange;return _.targetIds&&_.targetIds.length?tn.min():_.readTime?Lr(_.readTime):tn.min()}(n);return this.listener.h_(i,s)}P_(n){const i={};i.database=Ks(this.serializer),i.addTarget=function(f,_){let w;const N=_.target;if(w=bo(N)?{documents:Hl(f,N)}:{query:Gl(f,N)._t},w.targetId=_.targetId,_.resumeToken.approximateByteSize()>0){w.resumeToken=Gs(f,_.resumeToken);const j=es(f,_.expectedCount);null!==j&&(w.expectedCount=j)}else if(_.snapshotVersion.compareTo(tn.min())>0){w.readTime=wo(f,_.snapshotVersion.toTimestamp());const j=es(f,_.expectedCount);null!==j&&(w.expectedCount=j)}return w}(this.serializer,n);const s=function Mu(l,n){const i=function(u){switch(u){case"TargetPurposeListen":return null;case"TargetPurposeExistenceFilterMismatch":return"existence-filter-mismatch";case"TargetPurposeExistenceFilterMismatchBloom":return"existence-filter-mismatch-bloom";case"TargetPurposeLimboResolution":return"limbo-document";default:return z()}}(n.purpose);return null==i?null:{"goog-listen-tags":i}}(0,n);s&&(i.labels=s),this.i_(i)}I_(n){const i={};i.database=Ks(this.serializer),i.removeTarget=n,this.i_(i)}}class lf extends Ud{constructor(n,i,s,u,f,_){super(n,"write_stream_connection_backoff","write_stream_idle","health_check_timeout",i,s,u,_),this.serializer=f,this.T_=!1}get E_(){return this.T_}start(){this.T_=!1,this.lastStreamToken=void 0,super.start()}__(){this.T_&&this.d_([])}l_(n,i){return this.connection.Oo("Write",n,i)}onMessage(n){if(q(!!n.streamToken),this.lastStreamToken=n.streamToken,this.T_){this.Yo.reset();const i=function us(l,n){return l&&l.length>0?(q(void 0!==n),l.map(i=>function(u,f){let _=Lr(u.updateTime?u.updateTime:f);return _.isEqual(tn.min())&&(_=Lr(f)),new Rs(_,u.transformResults||[])}(i,n))):[]}(n.writeResults,n.commitTime),s=Lr(n.commitTime);return this.listener.A_(s,i)}return q(!n.writeResults||0===n.writeResults.length),this.T_=!0,this.listener.R_()}V_(){const n={};n.database=Ks(this.serializer),this.i_(n)}d_(n){const i={streamToken:this.lastStreamToken,writes:n.map(s=>function As(l,n){let i;if(n instanceof Ms)i={update:Su(l,n.key,n.value)};else if(n instanceof V)i={delete:$a(l,n.key)};else if(n instanceof lo)i={update:Su(l,n.key,n.data),updateMask:Cd(n.fieldMask)};else{if(!(n instanceof De))return z();i={verify:$a(l,n.key)}}return n.fieldTransforms.length>0&&(i.updateTransforms=n.fieldTransforms.map(s=>function(f,_){const w=_.transform;if(w instanceof Is)return{fieldPath:_.field.canonicalString(),setToServerValue:"REQUEST_TIME"};if(w instanceof ws)return{fieldPath:_.field.canonicalString(),appendMissingElements:{values:w.elements}};if(w instanceof Ss)return{fieldPath:_.field.canonicalString(),removeAllFromArray:{values:w.elements}};if(w instanceof Zo)return{fieldPath:_.field.canonicalString(),increment:w.Pe};throw z()}(0,s))),n.precondition.isNone||(i.currentDocument=void 0!==(f=n.precondition).updateTime?{updateTime:jl(l,f.updateTime)}:void 0!==f.exists?{exists:f.exists}:z()),i;var f}(this.serializer,s))};this.i_(i)}}class sg extends class{}{constructor(n,i,s,u){super(),this.authCredentials=n,this.appCheckCredentials=i,this.connection=s,this.serializer=u,this.m_=!1}f_(){if(this.m_)throw new me(ae.FAILED_PRECONDITION,"The client has already been terminated.")}Co(n,i,s,u){return this.f_(),Promise.all([this.authCredentials.getToken(),this.appCheckCredentials.getToken()]).then(([f,_])=>this.connection.Co(n,Ws(i,s),u,f,_)).catch(f=>{throw"FirebaseError"===f.name?(f.code===ae.UNAUTHENTICATED&&(this.authCredentials.invalidateToken(),this.appCheckCredentials.invalidateToken()),f):new me(ae.UNKNOWN,f.toString())})}xo(n,i,s,u,f){return this.f_(),Promise.all([this.authCredentials.getToken(),this.appCheckCredentials.getToken()]).then(([_,w])=>this.connection.xo(n,Ws(i,s),u,_,w,f)).catch(_=>{throw"FirebaseError"===_.name?(_.code===ae.UNAUTHENTICATED&&(this.authCredentials.invalidateToken(),this.appCheckCredentials.invalidateToken()),_):new me(ae.UNKNOWN,_.toString())})}terminate(){this.m_=!0,this.connection.terminate()}}class $d{constructor(n,i){this.asyncQueue=n,this.onlineStateHandler=i,this.state="Unknown",this.g_=0,this.p_=null,this.y_=!0}w_(){0===this.g_&&(this.S_("Unknown"),this.p_=this.asyncQueue.enqueueAfterDelay("online_state_timeout",1e4,()=>(this.p_=null,this.b_("Backend didn't respond within 10 seconds."),this.S_("Offline"),Promise.resolve())))}D_(n){"Online"===this.state?this.S_("Unknown"):(this.g_++,this.g_>=1&&(this.C_(),this.b_(`Connection failed 1 times. Most recent error: ${n.toString()}`),this.S_("Offline")))}set(n){this.C_(),this.g_=0,"Online"===n&&(this.y_=!1),this.S_(n)}S_(n){n!==this.state&&(this.state=n,this.onlineStateHandler(n))}b_(n){const i=`Could not reach Cloud Firestore backend. ${n}\nThis typically indicates that your device does not have a healthy Internet connection at the moment. The client will operate in offline mode until it is able to successfully connect to the backend.`;this.y_?(Pt(i),this.y_=!1):Be("OnlineStateTracker",i)}C_(){null!==this.p_&&(this.p_.cancel(),this.p_=null)}}class Cl{constructor(n,i,s,u,f){var _=this;this.localStore=n,this.datastore=i,this.asyncQueue=s,this.remoteSyncer={},this.v_=[],this.F_=new Map,this.M_=new Set,this.x_=[],this.O_=f,this.O_.io(w=>{s.enqueueAndForget((0,Ie.A)(function*(){var N;Qa(_)&&(Be("RemoteStore","Restarting streams for network reachability change."),yield(N=(0,Ie.A)(function*(se){const be=he(se);be.M_.add(4),yield tu(be),be.N_.set("Unknown"),be.M_.delete(4),yield kc(be)}),function j(se){return N.apply(this,arguments)})(_))}))}),this.N_=new $d(s,u)}}function kc(l){return Fc.apply(this,arguments)}function Fc(){return(Fc=(0,Ie.A)(function*(l){if(Qa(l))for(const n of l.x_)yield n(!0)})).apply(this,arguments)}function tu(l){return Tl.apply(this,arguments)}function Tl(){return(Tl=(0,Ie.A)(function*(l){for(const n of l.x_)yield n(!1)})).apply(this,arguments)}function Xa(l,n){const i=he(l);i.F_.has(n.targetId)||(i.F_.set(n.targetId,n),df(i)?Hu(i):qu(i).Xo()&&uf(i,n))}function Yi(l,n){const i=he(l),s=qu(i);i.F_.delete(n),s.Xo()&&cf(i,n),0===i.F_.size&&(s.Xo()?s.n_():Qa(i)&&i.N_.set("Unknown"))}function uf(l,n){if(l.L_.xe(n.targetId),n.resumeToken.approximateByteSize()>0||n.snapshotVersion.compareTo(tn.min())>0){const i=l.remoteSyncer.getRemoteKeysForTarget(n.targetId).size;n=n.withExpectedCount(i)}qu(l).P_(n)}function cf(l,n){l.L_.xe(n),qu(l).I_(n)}function Hu(l){l.L_=new Uo({getRemoteKeysForTarget:n=>l.remoteSyncer.getRemoteKeysForTarget(n),ot:n=>l.F_.get(n)||null,tt:()=>l.datastore.serializer.databaseId}),qu(l).start(),l.N_.w_()}function df(l){return Qa(l)&&!qu(l).Zo()&&l.F_.size>0}function Qa(l){return 0===he(l).M_.size}function Vc(l){l.L_=void 0}function ag(l){return Bd.apply(this,arguments)}function Bd(){return(Bd=(0,Ie.A)(function*(l){l.N_.set("Online")})).apply(this,arguments)}function hf(l){return Gu.apply(this,arguments)}function Gu(){return(Gu=(0,Ie.A)(function*(l){l.F_.forEach((n,i)=>{uf(l,n)})})).apply(this,arguments)}function lg(l,n){return ff.apply(this,arguments)}function ff(){return(ff=(0,Ie.A)(function*(l,n){Vc(l),df(l)?(l.N_.D_(n),Hu(l)):l.N_.set("Unknown")})).apply(this,arguments)}function dv(l,n,i){return pf.apply(this,arguments)}function pf(){return pf=(0,Ie.A)(function*(l,n,i){if(l.N_.set("Online"),n instanceof Zr&&2===n.state&&n.cause)try{yield(s=(0,Ie.A)(function*(f,_){const w=_.cause;for(const N of _.targetIds)f.F_.has(N)&&(yield f.remoteSyncer.rejectListen(N,w),f.F_.delete(N),f.L_.removeTarget(N))}),function u(f,_){return s.apply(this,arguments)})(l,n)}catch(s){Be("RemoteStore","Failed to remove targets %s: %s ",n.targetIds.join(","),s),yield Lc(l,s)}else if(n instanceof Gi?l.L_.Ke(n):n instanceof ki?l.L_.He(n):l.L_.We(n),!i.isEqual(tn.min()))try{const s=yield Ns(l.localStore);i.compareTo(s)>=0&&(yield function(f,_){const w=f.L_.rt(_);return w.targetChanges.forEach((N,j)=>{if(N.resumeToken.approximateByteSize()>0){const se=f.F_.get(j);se&&f.F_.set(j,se.withResumeToken(N.resumeToken,_))}}),w.targetMismatches.forEach((N,j)=>{const se=f.F_.get(N);if(!se)return;f.F_.set(N,se.withResumeToken(si.EMPTY_BYTE_STRING,se.snapshotVersion)),cf(f,N);const be=new Aa(se.target,N,j,se.sequenceNumber);uf(f,be)}),f.remoteSyncer.applyRemoteEvent(w)}(l,i))}catch(s){Be("RemoteStore","Failed to raise snapshot:",s),yield Lc(l,s)}var s}),pf.apply(this,arguments)}function Lc(l,n,i){return gf.apply(this,arguments)}function gf(){return(gf=(0,Ie.A)(function*(l,n,i){if(!Me(n))throw n;l.M_.add(1),yield tu(l),l.N_.set("Offline"),i||(i=()=>Ns(l.localStore)),l.asyncQueue.enqueueRetryable((0,Ie.A)(function*(){Be("RemoteStore","Retrying IndexedDB access"),yield i(),l.M_.delete(1),yield kc(l)}))})).apply(this,arguments)}function mf(l,n){return n().catch(i=>Lc(l,i,n))}function Wu(l){return vf.apply(this,arguments)}function vf(){return(vf=(0,Ie.A)(function*(l){const n=he(l),i=nu(n);let s=n.v_.length>0?n.v_[n.v_.length-1].batchId:-1;for(;hy(n);)try{const u=yield Sc(n.localStore,s);if(null===u){0===n.v_.length&&i.n_();break}s=u.batchId,ug(n,u)}catch(u){yield Lc(n,u)}_f(n)&&ds(n)})).apply(this,arguments)}function hy(l){return Qa(l)&&l.v_.length<10}function ug(l,n){l.v_.push(n);const i=nu(l);i.Xo()&&i.E_&&i.d_(n.mutations)}function _f(l){return Qa(l)&&!nu(l).Zo()&&l.v_.length>0}function ds(l){nu(l).start()}function fy(l){return jd.apply(this,arguments)}function jd(){return(jd=(0,Ie.A)(function*(l){nu(l).V_()})).apply(this,arguments)}function py(l){return Uc.apply(this,arguments)}function Uc(){return(Uc=(0,Ie.A)(function*(l){const n=nu(l);for(const i of l.v_)n.d_(i.mutations)})).apply(this,arguments)}function Ya(l,n,i){return zd.apply(this,arguments)}function zd(){return(zd=(0,Ie.A)(function*(l,n,i){const s=l.v_.shift(),u=le.from(s,n,i);yield mf(l,()=>l.remoteSyncer.applySuccessfulWrite(u)),yield Wu(l)})).apply(this,arguments)}function Ku(l,n){return yf.apply(this,arguments)}function yf(){return yf=(0,Ie.A)(function*(l,n){var i;n&&nu(l).E_&&(yield(i=(0,Ie.A)(function*(u,f){if(function Fr(l){switch(l){default:return z();case ae.CANCELLED:case ae.UNKNOWN:case ae.DEADLINE_EXCEEDED:case ae.RESOURCE_EXHAUSTED:case ae.INTERNAL:case ae.UNAVAILABLE:case ae.UNAUTHENTICATED:return!1;case ae.INVALID_ARGUMENT:case ae.NOT_FOUND:case ae.ALREADY_EXISTS:case ae.PERMISSION_DENIED:case ae.FAILED_PRECONDITION:case ae.ABORTED:case ae.OUT_OF_RANGE:case ae.UNIMPLEMENTED:case ae.DATA_LOSS:return!0}}(w=f.code)&&w!==ae.ABORTED){const _=u.v_.shift();nu(u).t_(),yield mf(u,()=>u.remoteSyncer.rejectFailedWrite(_.batchId,f)),yield Wu(u)}var w}),function s(u,f){return i.apply(this,arguments)})(l,n)),_f(l)&&ds(l)}),yf.apply(this,arguments)}function cg(l,n){return Hd.apply(this,arguments)}function Hd(){return(Hd=(0,Ie.A)(function*(l,n){const i=he(l);i.asyncQueue.verifyOperationInProgress(),Be("RemoteStore","RemoteStore received new credentials");const s=Qa(i);i.M_.add(3),yield tu(i),s&&i.N_.set("Unknown"),yield i.remoteSyncer.handleCredentialChange(n),i.M_.delete(3),yield kc(i)})).apply(this,arguments)}function dg(l,n){return hg.apply(this,arguments)}function hg(){return(hg=(0,Ie.A)(function*(l,n){const i=he(l);n?(i.M_.delete(2),yield kc(i)):n||(i.M_.add(2),yield tu(i),i.N_.set("Unknown"))})).apply(this,arguments)}function qu(l){return l.B_||(l.B_=function(i,s,u){const f=he(i);return f.f_(),new af(s,f.connection,f.authCredentials,f.appCheckCredentials,f.serializer,u)}(l.datastore,l.asyncQueue,{Po:ag.bind(null,l),To:hf.bind(null,l),Ao:lg.bind(null,l),h_:dv.bind(null,l)}),l.x_.push(function(){var n=(0,Ie.A)(function*(i){i?(l.B_.t_(),df(l)?Hu(l):l.N_.set("Unknown")):(yield l.B_.stop(),Vc(l))});return function(i){return n.apply(this,arguments)}}())),l.B_}function nu(l){return l.k_||(l.k_=function(i,s,u){const f=he(i);return f.f_(),new lf(s,f.connection,f.authCredentials,f.appCheckCredentials,f.serializer,u)}(l.datastore,l.asyncQueue,{Po:()=>Promise.resolve(),To:fy.bind(null,l),Ao:Ku.bind(null,l),R_:py.bind(null,l),A_:Ya.bind(null,l)}),l.x_.push(function(){var n=(0,Ie.A)(function*(i){i?(l.k_.t_(),yield Wu(l)):(yield l.k_.stop(),l.v_.length>0&&(Be("RemoteStore",`Stopping write stream with ${l.v_.length} pending writes`),l.v_=[]))});return function(i){return n.apply(this,arguments)}}())),l.k_}class fg{constructor(n,i,s,u,f){this.asyncQueue=n,this.timerId=i,this.targetTimeMs=s,this.op=u,this.removalCallback=f,this.deferred=new Ae,this.then=this.deferred.promise.then.bind(this.deferred.promise),this.deferred.promise.catch(_=>{})}get promise(){return this.deferred.promise}static createAndSchedule(n,i,s,u,f){const _=Date.now()+s,w=new fg(n,i,_,u,f);return w.start(s),w}start(n){this.timerHandle=setTimeout(()=>this.handleDelayElapsed(),n)}skipDelay(){return this.handleDelayElapsed()}cancel(n){null!==this.timerHandle&&(this.clearTimeout(),this.deferred.reject(new me(ae.CANCELLED,"Operation cancelled"+(n?": "+n:""))))}handleDelayElapsed(){this.asyncQueue.enqueueAndForget(()=>null!==this.timerHandle?(this.clearTimeout(),this.op().then(n=>this.deferred.resolve(n))):Promise.resolve())}clearTimeout(){null!==this.timerHandle&&(this.removalCallback(this),clearTimeout(this.timerHandle),this.timerHandle=null)}}function Xu(l,n){if(Pt("AsyncQueue",`${n}: ${l}`),Me(l))return new me(ae.UNAVAILABLE,`${n}: ${l}`);throw l}class oa{constructor(n){this.comparator=n?(i,s)=>n(i,s)||Wt.comparator(i.key,s.key):(i,s)=>Wt.comparator(i.key,s.key),this.keyedMap=Ti(),this.sortedSet=new mr(this.comparator)}static emptySet(n){return new oa(n.comparator)}has(n){return null!=this.keyedMap.get(n)}get(n){return this.keyedMap.get(n)}first(){return this.sortedSet.minKey()}last(){return this.sortedSet.maxKey()}isEmpty(){return this.sortedSet.isEmpty()}indexOf(n){const i=this.keyedMap.get(n);return i?this.sortedSet.indexOf(i):-1}get size(){return this.sortedSet.size}forEach(n){this.sortedSet.inorderTraversal((i,s)=>(n(i),!1))}add(n){const i=this.delete(n.key);return i.copy(i.keyedMap.insert(n.key,n),i.sortedSet.insert(n,null))}delete(n){const i=this.get(n);return i?this.copy(this.keyedMap.remove(n),this.sortedSet.remove(i)):this}isEqual(n){if(!(n instanceof oa)||this.size!==n.size)return!1;const i=this.sortedSet.getIterator(),s=n.sortedSet.getIterator();for(;i.hasNext();){const u=i.getNext().key,f=s.getNext().key;if(!u.isEqual(f))return!1}return!0}toString(){const n=[];return this.forEach(i=>{n.push(i.toString())}),0===n.length?"DocumentSet ()":"DocumentSet (\n "+n.join(" \n")+"\n)"}copy(n,i){const s=new oa;return s.comparator=this.comparator,s.keyedMap=n,s.sortedSet=i,s}}class Qu{constructor(){this.q_=new mr(Wt.comparator)}track(n){const i=n.doc.key,s=this.q_.get(i);s?0!==n.type&&3===s.type?this.q_=this.q_.insert(i,n):3===n.type&&1!==s.type?this.q_=this.q_.insert(i,{type:s.type,doc:n.doc}):2===n.type&&2===s.type?this.q_=this.q_.insert(i,{type:2,doc:n.doc}):2===n.type&&0===s.type?this.q_=this.q_.insert(i,{type:0,doc:n.doc}):1===n.type&&0===s.type?this.q_=this.q_.remove(i):1===n.type&&2===s.type?this.q_=this.q_.insert(i,{type:1,doc:s.doc}):0===n.type&&1===s.type?this.q_=this.q_.insert(i,{type:2,doc:n.doc}):z():this.q_=this.q_.insert(i,n)}Q_(){const n=[];return this.q_.inorderTraversal((i,s)=>{n.push(s)}),n}}class ru{constructor(n,i,s,u,f,_,w,N,j){this.query=n,this.docs=i,this.oldDocs=s,this.docChanges=u,this.mutatedKeys=f,this.fromCache=_,this.syncStateChanged=w,this.excludesMetadataChanges=N,this.hasCachedResults=j}static fromInitialDocuments(n,i,s,u,f){const _=[];return i.forEach(w=>{_.push({type:0,doc:w})}),new ru(n,i,oa.emptySet(i),_,s,u,!0,!1,f)}get hasPendingWrites(){return!this.mutatedKeys.isEmpty()}isEqual(n){if(!(this.fromCache===n.fromCache&&this.hasCachedResults===n.hasCachedResults&&this.syncStateChanged===n.syncStateChanged&&this.mutatedKeys.isEqual(n.mutatedKeys)&&Qo(this.query,n.query)&&this.docs.isEqual(n.docs)&&this.oldDocs.isEqual(n.oldDocs)))return!1;const i=this.docChanges,s=n.docChanges;if(i.length!==s.length)return!1;for(let u=0;un.G_())}}class If{constructor(){this.queries=new as(n=>Na(n),Qo),this.onlineState="Unknown",this.z_=new Set}}function Ef(){return(Ef=(0,Ie.A)(function*(l,n){const i=he(l);let s=3;const u=n.query;let f=i.queries.get(u);f?!f.W_()&&n.G_()&&(s=2):(f=new hv,s=n.G_()?0:1);try{switch(s){case 0:f.K_=yield i.onListen(u,!0);break;case 1:f.K_=yield i.onListen(u,!1);break;case 2:yield i.onFirstRemoteStoreListen(u)}}catch(_){const w=Xu(_,`Initialization of query '${vs(n.query)}' failed`);return void n.onError(w)}i.queries.set(u,f),f.U_.push(n),n.j_(i.onlineState),f.K_&&n.H_(f.K_)&&Gd(i)})).apply(this,arguments)}function iu(){return(iu=(0,Ie.A)(function*(l,n){const i=he(l),s=n.query;let u=3;const f=i.queries.get(s);if(f){const _=f.U_.indexOf(n);_>=0&&(f.U_.splice(_,1),0===f.U_.length?u=n.G_()?0:1:!f.W_()&&n.G_()&&(u=2))}switch(u){case 0:return i.queries.delete(s),i.onUnlisten(s,!0);case 1:return i.queries.delete(s),i.onUnlisten(s,!1);case 2:return i.onLastRemoteStoreUnlisten(s);default:return}})).apply(this,arguments)}function fv(l,n){const i=he(l);let s=!1;for(const u of n){const _=i.queries.get(u.query);if(_){for(const w of _.U_)w.H_(u)&&(s=!0);_.K_=u}}s&&Gd(i)}function pg(l,n,i){const s=he(l),u=s.queries.get(n);if(u)for(const f of u.U_)f.onError(i);s.queries.delete(n)}function Gd(l){l.z_.forEach(n=>{n.next()})}var E,h;(h=E||(E={})).J_="default",h.Cache="cache";class v{constructor(n,i,s){this.query=n,this.Y_=i,this.Z_=!1,this.X_=null,this.onlineState="Unknown",this.options=s||{}}H_(n){if(!this.options.includeMetadataChanges){const s=[];for(const u of n.docChanges)3!==u.type&&s.push(u);n=new ru(n.query,n.docs,n.oldDocs,s,n.mutatedKeys,n.fromCache,n.syncStateChanged,!0,n.hasCachedResults)}let i=!1;return this.Z_?this.ea(n)&&(this.Y_.next(n),i=!0):this.ta(n,this.onlineState)&&(this.na(n),i=!0),this.X_=n,i}onError(n){this.Y_.error(n)}j_(n){this.onlineState=n;let i=!1;return this.X_&&!this.Z_&&this.ta(this.X_,n)&&(this.na(this.X_),i=!0),i}ta(n,i){return!n.fromCache||!this.G_()||(!this.options.ra||!("Offline"!==i))&&(!n.docs.isEmpty()||n.hasCachedResults||"Offline"===i)}ea(n){return n.docChanges.length>0||!!(n.syncStateChanged||this.X_&&this.X_.hasPendingWrites!==n.hasPendingWrites)&&!0===this.options.includeMetadataChanges}na(n){n=ru.fromInitialDocuments(n.query,n.docs,n.mutatedKeys,n.fromCache,n.hasCachedResults),this.Z_=!0,this.Y_.next(n)}G_(){return this.options.source!==E.Cache}}class xt{constructor(n){this.key=n}}class on{constructor(n){this.key=n}}class Dn{constructor(n,i){this.query=n,this.la=i,this.ha=null,this.hasCachedResults=!1,this.current=!1,this.Pa=vr(),this.mutatedKeys=vr(),this.Ia=sl(n),this.Ta=new oa(this.Ia)}get Ea(){return this.la}da(n,i){const s=i?i.Aa:new Qu,u=i?i.Ta:this.Ta;let f=i?i.mutatedKeys:this.mutatedKeys,_=u,w=!1;const N="F"===this.query.limitType&&u.size===this.query.limit?u.last():null,j="L"===this.query.limitType&&u.size===this.query.limit?u.first():null;if(n.inorderTraversal((se,be)=>{const We=u.get(se),Rt=Bs(this.query,be)?be:null,nn=!!We&&this.mutatedKeys.has(We.key),pn=!!Rt&&(Rt.hasLocalMutations||this.mutatedKeys.has(Rt.key)&&Rt.hasCommittedMutations);let ln=!1;We&&Rt?We.data.isEqual(Rt.data)?nn!==pn&&(s.track({type:3,doc:Rt}),ln=!0):this.Ra(We,Rt)||(s.track({type:2,doc:Rt}),ln=!0,(N&&this.Ia(Rt,N)>0||j&&this.Ia(Rt,j)<0)&&(w=!0)):!We&&Rt?(s.track({type:0,doc:Rt}),ln=!0):We&&!Rt&&(s.track({type:1,doc:We}),ln=!0,(N||j)&&(w=!0)),ln&&(Rt?(_=_.add(Rt),f=pn?f.add(se):f.delete(se)):(_=_.delete(se),f=f.delete(se)))}),null!==this.query.limit)for(;_.size>this.query.limit;){const se="F"===this.query.limitType?_.last():_.first();_=_.delete(se.key),f=f.delete(se.key),s.track({type:1,doc:se})}return{Ta:_,Aa:s,Xi:w,mutatedKeys:f}}Ra(n,i){return n.hasLocalMutations&&i.hasCommittedMutations&&!i.hasLocalMutations}applyChanges(n,i,s,u){const f=this.Ta;this.Ta=n.Ta,this.mutatedKeys=n.mutatedKeys;const _=n.Aa.Q_();_.sort((se,be)=>function(Rt,nn){const pn=ln=>{switch(ln){case 0:return 1;case 2:case 3:return 2;case 1:return 0;default:return z()}};return pn(Rt)-pn(nn)}(se.type,be.type)||this.Ia(se.doc,be.doc)),this.Va(s),u=null!=u&&u;const w=i&&!u?this.ma():[],N=0===this.Pa.size&&this.current&&!u?1:0,j=N!==this.ha;return this.ha=N,0!==_.length||j?{snapshot:new ru(this.query,n.Ta,f,_,n.mutatedKeys,0===N,j,!1,!!s&&s.resumeToken.approximateByteSize()>0),fa:w}:{fa:w}}j_(n){return this.current&&"Offline"===n?(this.current=!1,this.applyChanges({Ta:this.Ta,Aa:new Qu,mutatedKeys:this.mutatedKeys,Xi:!1},!1)):{fa:[]}}ga(n){return!this.la.has(n)&&!!this.Ta.has(n)&&!this.Ta.get(n).hasLocalMutations}Va(n){n&&(n.addedDocuments.forEach(i=>this.la=this.la.add(i)),n.modifiedDocuments.forEach(i=>{}),n.removedDocuments.forEach(i=>this.la=this.la.delete(i)),this.current=n.current)}ma(){if(!this.current)return[];const n=this.Pa;this.Pa=vr(),this.Ta.forEach(s=>{this.ga(s.key)&&(this.Pa=this.Pa.add(s.key))});const i=[];return n.forEach(s=>{this.Pa.has(s)||i.push(new on(s))}),this.Pa.forEach(s=>{n.has(s)||i.push(new xt(s))}),i}pa(n){this.la=n.hs,this.Pa=vr();const i=this.da(n.documents);return this.applyChanges(i,!0)}ya(){return ru.fromInitialDocuments(this.query,this.Ta,this.mutatedKeys,0===this.ha,this.hasCachedResults)}}class Xn{constructor(n,i,s){this.query=n,this.targetId=i,this.view=s}}class jr{constructor(n){this.key=n,this.wa=!1}}class Oo{constructor(n,i,s,u,f,_){this.localStore=n,this.remoteStore=i,this.eventManager=s,this.sharedClientState=u,this.currentUser=f,this.maxConcurrentLimboResolutions=_,this.Sa={},this.ba=new as(w=>Na(w),Qo),this.Da=new Map,this.Ca=new Set,this.va=new mr(Wt.comparator),this.Fa=new Map,this.Ma=new Md,this.xa={},this.Oa=new Map,this.Na=gl.Ln(),this.onlineState="Unknown",this.La=void 0}get isPrimaryClient(){return!0===this.La}}function Zi(l,n){return sa.apply(this,arguments)}function sa(){return(sa=(0,Ie.A)(function*(l,n,i=!0){const s=ec(l);let u;const f=s.ba.get(n);return f?(s.sharedClientState.addLocalQueryTarget(f.targetId),u=f.view.ya()):u=yield Kd(s,n,i,!0),u})).apply(this,arguments)}function Wd(l,n){return ou.apply(this,arguments)}function ou(){return(ou=(0,Ie.A)(function*(l,n){const i=ec(l);yield Kd(i,n,!0,!1)})).apply(this,arguments)}function Kd(l,n,i,s){return Yu.apply(this,arguments)}function Yu(){return(Yu=(0,Ie.A)(function*(l,n,i,s){const u=yield function ra(l,n){const i=he(l);return i.persistence.runTransaction("Allocate target","readwrite",s=>{let u;return i.Qr.getTargetData(s,n).next(f=>f?(u=f,oe.resolve(u)):i.Qr.allocateTargetId(s).next(_=>(u=new Aa(n,_,"TargetPurposeListen",s.currentSequenceNumber),i.Qr.addTargetData(s,u).next(()=>u))))}).then(s=>{const u=i.ns.get(s.targetId);return(null===u||s.snapshotVersion.compareTo(u.snapshotVersion)>0)&&(i.ns=i.ns.insert(s.targetId,s),i.rs.set(n,s.targetId)),s})}(l.localStore,On(n)),f=u.targetId,_=i?l.sharedClientState.addLocalQueryTarget(f):"not-current";let w;return s&&(w=yield function Zu(l,n,i,s,u){return Ju.apply(this,arguments)}(l,n,f,"current"===_,u.resumeToken)),l.isPrimaryClient&&i&&Xa(l.remoteStore,u),w})).apply(this,arguments)}function Ju(){return Ju=(0,Ie.A)(function*(l,n,i,s,u){l.Ba=(be,We,Rt)=>{return(nn=(0,Ie.A)(function*(ln,zn,ar,Qn){let Rr=zn.view.da(ar);Rr.Xi&&(Rr=yield vl(ln.localStore,zn.query,!1).then(({documents:$e})=>zn.view.da($e,Rr)));const Ii=Qn&&Qn.targetChanges.get(zn.targetId),zr=Qn&&null!=Qn.targetMismatches.get(zn.targetId),ft=zn.view.applyChanges(Rr,ln.isPrimaryClient,Ii,zr);return Eg(ln,zn.targetId,ft.fa),ft.snapshot}),function pn(ln,zn,ar,Qn){return nn.apply(this,arguments)})(l,be,We,Rt);var nn};const f=yield vl(l.localStore,n,!0),_=new Dn(n,f.hs),w=_.da(f.documents),N=_i.createSynthesizedTargetChangeForCurrentChange(i,s&&"Offline"!==l.onlineState,u),j=_.applyChanges(w,l.isPrimaryClient,N);Eg(l,i,j.fa);const se=new Xn(n,i,_);return l.ba.set(n,se),l.Da.has(i)?l.Da.get(i).push(n):l.Da.set(i,[n]),j.snapshot}),Ju.apply(this,arguments)}function Af(l,n,i){return su.apply(this,arguments)}function su(){return(su=(0,Ie.A)(function*(l,n,i){const s=he(l),u=s.ba.get(n),f=s.Da.get(u.targetId);if(f.length>1)return s.Da.set(u.targetId,f.filter(_=>!Qo(_,n))),void s.ba.delete(n);s.isPrimaryClient?(s.sharedClientState.removeLocalQueryTarget(u.targetId),s.sharedClientState.isActiveQueryTarget(u.targetId)||(yield ia(s.localStore,u.targetId,!1).then(()=>{s.sharedClientState.clearQueryState(u.targetId),i&&Yi(s.remoteStore,u.targetId),Yd(s,u.targetId)}).catch(Qr))):(Yd(s,u.targetId),yield ia(s.localStore,u.targetId,!0))})).apply(this,arguments)}function Cf(l,n){return qd.apply(this,arguments)}function qd(){return(qd=(0,Ie.A)(function*(l,n){const i=he(l),s=i.ba.get(n),u=i.Da.get(s.targetId);i.isPrimaryClient&&1===u.length&&(i.sharedClientState.removeLocalQueryTarget(s.targetId),Yi(i.remoteStore,s.targetId))})).apply(this,arguments)}function Qd(){return(Qd=(0,Ie.A)(function*(l,n,i){const s=function Bc(l){const n=he(l);return n.remoteStore.remoteSyncer.applySuccessfulWrite=pv.bind(null,n),n.remoteStore.remoteSyncer.rejectFailedWrite=gv.bind(null,n),n}(l);try{const u=yield function(_,w){const N=he(_),j=Qt.now(),se=w.reduce((Rt,nn)=>Rt.add(nn.key),vr());let be,We;return N.persistence.runTransaction("Locally write mutations","readwrite",Rt=>{let nn=Jn(),pn=vr();return N.os.getEntries(Rt,se).next(ln=>{nn=ln,nn.forEach((zn,ar)=>{ar.isValidDocument()||(pn=pn.add(zn))})}).next(()=>N.localDocuments.getOverlayedDocuments(Rt,nn)).next(ln=>{be=ln;const zn=[];for(const ar of w){const Qn=pc(ar,be.get(ar.key).overlayedDocument);null!=Qn&&zn.push(new lo(ar.key,Qn,br(Qn.value.mapValue),Di.exists(!0)))}return N.mutationQueue.addMutationBatch(Rt,j,zn,w)}).next(ln=>{We=ln;const zn=ln.applyToLocalDocumentSet(be,pn);return N.documentOverlayCache.saveOverlays(Rt,ln.batchId,zn)})}).then(()=>({batchId:We.batchId,changes:ro(be)}))}(s.localStore,n);s.sharedClientState.addPendingMutation(u.batchId),function(_,w,N){let j=_.xa[_.currentUser.toKey()];j||(j=new mr(Le)),j=j.insert(w,N),_.xa[_.currentUser.toKey()]=j}(s,u.batchId,i),yield Dl(s,u.changes),yield Wu(s.remoteStore)}catch(u){const f=Xu(u,"Failed to persist write");i.reject(f)}})).apply(this,arguments)}function gg(l,n){return Tf.apply(this,arguments)}function Tf(){return(Tf=(0,Ie.A)(function*(l,n){const i=he(l);try{const s=yield function og(l,n){const i=he(l),s=n.snapshotVersion;let u=i.ns;return i.persistence.runTransaction("Apply remote event","readwrite-primary",f=>{const _=i.os.newChangeBuffer({trackRemovals:!0});u=i.ns;const w=[];n.targetChanges.forEach((se,be)=>{const We=u.get(be);if(!We)return;w.push(i.Qr.removeMatchingKeys(f,se.removedDocuments,be).next(()=>i.Qr.addMatchingKeys(f,se.addedDocuments,be)));let Rt=We.withSequenceNumber(f.currentSequenceNumber);var pn,ln,zn;null!==n.targetMismatches.get(be)?Rt=Rt.withResumeToken(si.EMPTY_BYTE_STRING,tn.min()).withLastLimboFreeSnapshotVersion(tn.min()):se.resumeToken.approximateByteSize()>0&&(Rt=Rt.withResumeToken(se.resumeToken,s)),u=u.insert(be,Rt),ln=Rt,zn=se,(0===(pn=We).resumeToken.approximateByteSize()||ln.snapshotVersion.toMicroseconds()-pn.snapshotVersion.toMicroseconds()>=3e8||zn.addedDocuments.size+zn.modifiedDocuments.size+zn.removedDocuments.size>0)&&w.push(i.Qr.updateTargetData(f,Rt))});let N=Jn(),j=vr();if(n.documentUpdates.forEach(se=>{n.resolvedLimboDocuments.has(se)&&w.push(i.persistence.referenceDelegate.updateLimboDocument(f,se))}),w.push(function $u(l,n,i){let s=vr(),u=vr();return i.forEach(f=>s=s.add(f)),n.getEntries(l,s).next(f=>{let _=Jn();return i.forEach((w,N)=>{const j=f.get(w);N.isFoundDocument()!==j.isFoundDocument()&&(u=u.add(w)),N.isNoDocument()&&N.version.isEqual(tn.min())?(n.removeEntry(w,N.readTime),_=_.insert(w,N)):!j.isValidDocument()||N.version.compareTo(j.version)>0||0===N.version.compareTo(j.version)&&j.hasPendingWrites?(n.addEntry(N),_=_.insert(w,N)):Be("LocalStore","Ignoring outdated watch update for ",w,". Current version:",j.version," Watch version:",N.version)}),{cs:_,ls:u}})}(f,_,n.documentUpdates).next(se=>{N=se.cs,j=se.ls})),!s.isEqual(tn.min())){const se=i.Qr.getLastRemoteSnapshotVersion(f).next(be=>i.Qr.setTargetsMetadata(f,f.currentSequenceNumber,s));w.push(se)}return oe.waitFor(w).next(()=>_.apply(f)).next(()=>i.localDocuments.getLocalViewOfDocuments(f,N,j)).next(()=>N)}).then(f=>(i.ns=u,f))}(i.localStore,n);n.targetChanges.forEach((u,f)=>{const _=i.Fa.get(f);_&&(q(u.addedDocuments.size+u.modifiedDocuments.size+u.removedDocuments.size<=1),u.addedDocuments.size>0?_.wa=!0:u.modifiedDocuments.size>0?q(_.wa):u.removedDocuments.size>0&&(q(_.wa),_.wa=!1))}),yield Dl(i,s,n)}catch(s){yield Qr(s)}})).apply(this,arguments)}function mg(l,n,i){const s=he(l);if(s.isPrimaryClient&&0===i||!s.isPrimaryClient&&1===i){const u=[];s.ba.forEach((f,_)=>{const w=_.view.j_(n);w.snapshot&&u.push(w.snapshot)}),function(_,w){const N=he(_);N.onlineState=w;let j=!1;N.queries.forEach((se,be)=>{for(const We of be.U_)We.j_(w)&&(j=!0)}),j&&Gd(N)}(s.eventManager,n),u.length&&s.Sa.h_(u),s.onlineState=n,s.isPrimaryClient&&s.sharedClientState.setOnlineState(n)}}function Df(l,n,i){return bf.apply(this,arguments)}function bf(){return(bf=(0,Ie.A)(function*(l,n,i){const s=he(l);s.sharedClientState.updateQueryState(n,"rejected",i);const u=s.Fa.get(n),f=u&&u.key;if(f){let _=new mr(Wt.comparator);_=_.insert(f,cr.newNoDocument(f,tn.min()));const w=vr().add(f),N=new Hi(tn.min(),new Map,new mr(Le),_,w);yield gg(s,N),s.va=s.va.remove(f),s.Fa.delete(n),mv(s)}else yield ia(s.localStore,n,!1).then(()=>Yd(s,n,i)).catch(Qr)})).apply(this,arguments)}function pv(l,n){return wf.apply(this,arguments)}function wf(){return(wf=(0,Ie.A)(function*(l,n){const i=he(l),s=n.batch.batchId;try{const u=yield function Uu(l,n){const i=he(l);return i.persistence.runTransaction("Acknowledge batch","readwrite-primary",s=>{const u=n.batch.keys(),f=i.os.newChangeBuffer({trackRemovals:!0});return function(w,N,j,se){const be=j.batch,We=be.keys();let Rt=oe.resolve();return We.forEach(nn=>{Rt=Rt.next(()=>se.getEntry(N,nn)).next(pn=>{const ln=j.docVersions.get(nn);q(null!==ln),pn.version.compareTo(ln)<0&&(be.applyToRemoteDocument(pn,j),pn.isValidDocument()&&(pn.setReadTime(j.commitVersion),se.addEntry(pn)))})}),Rt.next(()=>w.mutationQueue.removeMutationBatch(N,be))}(i,s,n,f).next(()=>f.apply(s)).next(()=>i.mutationQueue.performConsistencyCheck(s)).next(()=>i.documentOverlayCache.removeOverlaysForBatchId(s,u,n.batch.batchId)).next(()=>i.localDocuments.recalculateAndSaveOverlaysForDocumentKeys(s,function(w){let N=vr();for(let j=0;j0&&(N=N.add(w.batch.mutations[j].key));return N}(n))).next(()=>i.localDocuments.getDocuments(s,u))})}(i.localStore,n);Sf(i,s,null),yg(i,s),i.sharedClientState.updateMutationState(s,"acknowledged"),yield Dl(i,u)}catch(u){yield Qr(u)}})).apply(this,arguments)}function gv(l,n,i){return vg.apply(this,arguments)}function vg(){return(vg=(0,Ie.A)(function*(l,n,i){const s=he(l);try{const u=yield function(_,w){const N=he(_);return N.persistence.runTransaction("Reject batch","readwrite-primary",j=>{let se;return N.mutationQueue.lookupMutationBatch(j,w).next(be=>(q(null!==be),se=be.keys(),N.mutationQueue.removeMutationBatch(j,be))).next(()=>N.mutationQueue.performConsistencyCheck(j)).next(()=>N.documentOverlayCache.removeOverlaysForBatchId(j,se,w)).next(()=>N.localDocuments.recalculateAndSaveOverlaysForDocumentKeys(j,se)).next(()=>N.localDocuments.getDocuments(j,se))})}(s.localStore,n);Sf(s,n,i),yg(s,n),s.sharedClientState.updateMutationState(n,"rejected",i),yield Dl(s,u)}catch(u){yield Qr(u)}})).apply(this,arguments)}function yg(l,n){(l.Oa.get(n)||[]).forEach(i=>{i.resolve()}),l.Oa.delete(n)}function Sf(l,n,i){const s=he(l);let u=s.xa[s.currentUser.toKey()];if(u){const f=u.get(n);f&&(i?f.reject(i):f.resolve(),u=u.remove(n)),s.xa[s.currentUser.toKey()]=u}}function Yd(l,n,i=null){l.sharedClientState.removeLocalQueryTarget(n);for(const s of l.Da.get(n))l.ba.delete(s),i&&l.Sa.ka(s,i);l.Da.delete(n),l.isPrimaryClient&&l.Ma.Vr(n).forEach(s=>{l.Ma.containsKey(s)||Ig(l,s)})}function Ig(l,n){l.Ca.delete(n.path.canonicalString());const i=l.va.get(n);null!==i&&(Yi(l.remoteStore,i),l.va=l.va.remove(n),l.Fa.delete(i),mv(l))}function Eg(l,n,i){for(const s of i)s instanceof xt?(l.Ma.addReference(s.key,n),my(l,s)):s instanceof on?(Be("SyncEngine","Document no longer in limbo: "+s.key),l.Ma.removeReference(s.key,n),l.Ma.containsKey(s.key)||Ig(l,s.key)):z()}function my(l,n){const i=n.key,s=i.path.canonicalString();l.va.get(i)||l.Ca.has(s)||(Be("SyncEngine","New document in limbo: "+i),l.Ca.add(s),mv(l))}function mv(l){for(;l.Ca.size>0&&l.va.size{_.push(s.Ba(N,n,i).then(j=>{if((j||i)&&s.isPrimaryClient&&s.sharedClientState.updateQueryState(N.targetId,j&&!j.fromCache?"current":"not-current"),j){u.push(j);const se=yi.Ki(N.targetId,j);f.push(se)}}))}),yield Promise.all(_),s.Sa.h_(u),yield(w=(0,Ie.A)(function*(j,se){const be=he(j);try{yield be.persistence.runTransaction("notifyLocalViewChanges","readwrite",We=>oe.forEach(se,Rt=>oe.forEach(Rt.qi,nn=>be.persistence.referenceDelegate.addReference(We,Rt.targetId,nn)).next(()=>oe.forEach(Rt.Qi,nn=>be.persistence.referenceDelegate.removeReference(We,Rt.targetId,nn)))))}catch(We){if(!Me(We))throw We;Be("LocalStore","Failed to update sequence numbers: "+We)}for(const We of se){const Rt=We.targetId;if(!We.fromCache){const nn=be.ns.get(Rt),ln=nn.withLastLimboFreeSnapshotVersion(nn.snapshotVersion);be.ns=be.ns.insert(Rt,ln)}}}),function N(j,se){return w.apply(this,arguments)})(s.localStore,f))}),Rf.apply(this,arguments)}function Ag(l,n){return Cg.apply(this,arguments)}function Cg(){return(Cg=(0,Ie.A)(function*(l,n){const i=he(l);if(!i.currentUser.isEqual(n)){Be("SyncEngine","User change. New user:",n.toKey());const s=yield Od(i.localStore,n);i.currentUser=n,(f=i).Oa.forEach(w=>{w.forEach(N=>{N.reject(new me(ae.CANCELLED,"'waitForPendingWrites' promise is rejected due to a user change."))})}),f.Oa.clear(),i.sharedClientState.handleUserChange(n,s.removedBatchIds,s.addedBatchIds),yield Dl(i,s.us)}var f})).apply(this,arguments)}function au(l,n){const i=he(l),s=i.Fa.get(n);if(s&&s.wa)return vr().add(s.key);{let u=vr();const f=i.Da.get(n);if(!f)return u;for(const _ of f){const w=i.ba.get(_);u=u.unionWith(w.view.Ea)}return u}}function ec(l){const n=he(l);return n.remoteStore.remoteSyncer.applyRemoteEvent=gg.bind(null,n),n.remoteStore.remoteSyncer.getRemoteKeysForTarget=au.bind(null,n),n.remoteStore.remoteSyncer.rejectListen=Df.bind(null,n),n.Sa.h_=fv.bind(null,n.eventManager),n.Sa.ka=pg.bind(null,n.eventManager),n}class Za{constructor(){this.synchronizeTabs=!1}initialize(n){var i=this;return(0,Ie.A)(function*(){i.serializer=Oc(n.databaseInfo.databaseId),i.sharedClientState=i.createSharedClientState(n),i.persistence=i.createPersistence(n),yield i.persistence.start(),i.localStore=i.createLocalStore(n),i.gcScheduler=i.createGarbageCollectionScheduler(n,i.localStore),i.indexBackfillerScheduler=i.createIndexBackfillerScheduler(n,i.localStore)})()}createGarbageCollectionScheduler(n,i){return null}createIndexBackfillerScheduler(n,i){return null}createLocalStore(n){return function ef(l,n,i,s){return new ig(l,n,i,s)}(this.persistence,new Jh,n.initialUser,this.serializer)}createPersistence(n){return new bc(Da.Hr,this.serializer)}createSharedClientState(n){return new rf}terminate(){var n=this;return(0,Ie.A)(function*(){var i,s;null===(i=n.gcScheduler)||void 0===i||i.stop(),null===(s=n.indexBackfillerScheduler)||void 0===s||s.stop(),n.sharedClientState.shutdown(),yield n.persistence.shutdown()})()}}class Ja{initialize(n,i){var s=this;return(0,Ie.A)(function*(){s.localStore||(s.localStore=n.localStore,s.sharedClientState=n.sharedClientState,s.datastore=s.createDatastore(i),s.remoteStore=s.createRemoteStore(i),s.eventManager=s.createEventManager(i),s.syncEngine=s.createSyncEngine(i,!n.synchronizeTabs),s.sharedClientState.onlineStateHandler=u=>mg(s.syncEngine,u,1),s.remoteStore.remoteSyncer.handleCredentialChange=Ag.bind(null,s.syncEngine),yield dg(s.remoteStore,s.syncEngine.isPrimaryClient))})()}createEventManager(n){return new If}createDatastore(n){const i=Oc(n.databaseInfo.databaseId),s=new Ld(n.databaseInfo);return new sg(n.authCredentials,n.appCheckCredentials,s,i)}createRemoteStore(n){return s=this.localStore,u=this.datastore,f=n.asyncQueue,_=i=>mg(this.syncEngine,i,0),w=Vd.D()?new Vd:new sf,new Cl(s,u,f,_,w);var s,u,f,_,w}createSyncEngine(n,i){return function(u,f,_,w,N,j,se){const be=new Oo(u,f,_,w,N,j);return se&&(be.La=!0),be}(this.localStore,this.remoteStore,this.eventManager,this.sharedClientState,n.initialUser,n.maxConcurrentLimboResolutions,i)}terminate(){var n=this;return(0,Ie.A)(function*(){var i,s;yield(s=(0,Ie.A)(function*(f){const _=he(f);Be("RemoteStore","RemoteStore shutting down."),_.M_.add(5),yield tu(_),_.O_.shutdown(),_.N_.set("Unknown")}),function u(f){return s.apply(this,arguments)})(n.remoteStore),null===(i=n.datastore)||void 0===i||i.terminate()})()}}class Hc{constructor(n){this.observer=n,this.muted=!1}next(n){this.observer.next&&this.Ka(this.observer.next,n)}error(n){this.observer.error?this.Ka(this.observer.error,n):Pt("Uncaught Error in snapshot listener:",n.toString())}$a(){this.muted=!0}Ka(n,i){this.muted||setTimeout(()=>{this.muted||n(i)},0)}}class Ay{constructor(n,i,s,u){var f=this;this.authCredentials=n,this.appCheckCredentials=i,this.asyncQueue=s,this.databaseInfo=u,this.user=ze.UNAUTHENTICATED,this.clientId=Yn.newId(),this.authCredentialListener=()=>Promise.resolve(),this.appCheckCredentialListener=()=>Promise.resolve(),this.authCredentials.start(s,function(){var _=(0,Ie.A)(function*(w){Be("FirestoreClient","Received user=",w.uid),yield f.authCredentialListener(w),f.user=w});return function(w){return _.apply(this,arguments)}}()),this.appCheckCredentials.start(s,_=>(Be("FirestoreClient","Received new app check token=",_),this.appCheckCredentialListener(_,this.user)))}get configuration(){return{asyncQueue:this.asyncQueue,databaseInfo:this.databaseInfo,clientId:this.clientId,authCredentials:this.authCredentials,appCheckCredentials:this.appCheckCredentials,initialUser:this.user,maxConcurrentLimboResolutions:100}}setCredentialChangeListener(n){this.authCredentialListener=n}setAppCheckTokenChangeListener(n){this.appCheckCredentialListener=n}verifyNotTerminated(){if(this.asyncQueue.isShuttingDown)throw new me(ae.FAILED_PRECONDITION,"The client has already been terminated.")}terminate(){var n=this;this.asyncQueue.enterRestrictedMode();const i=new Ae;return this.asyncQueue.enqueueAndForgetEvenWhileRestricted((0,Ie.A)(function*(){try{n._onlineComponents&&(yield n._onlineComponents.terminate()),n._offlineComponents&&(yield n._offlineComponents.terminate()),n.authCredentials.shutdown(),n.appCheckCredentials.shutdown(),i.resolve()}catch(s){const u=Xu(s,"Failed to shutdown persistence");i.reject(u)}})),i.promise}}function Pf(l,n){return rh.apply(this,arguments)}function rh(){return rh=(0,Ie.A)(function*(l,n){l.asyncQueue.verifyOperationInProgress(),Be("FirestoreClient","Initializing OfflineComponentProvider");const i=l.configuration;yield n.initialize(i);let s=i.initialUser;l.setCredentialChangeListener(function(){var u=(0,Ie.A)(function*(f){s.isEqual(f)||(yield Od(n.localStore,f),s=f)});return function(f){return u.apply(this,arguments)}}()),n.persistence.setDatabaseDeletedListener(()=>l.terminate()),l._offlineComponents=n}),rh.apply(this,arguments)}function xf(l,n){return wg.apply(this,arguments)}function wg(){return(wg=(0,Ie.A)(function*(l,n){l.asyncQueue.verifyOperationInProgress();const i=yield function tc(l){return Nf.apply(this,arguments)}(l);Be("FirestoreClient","Initializing OnlineComponentProvider"),yield n.initialize(i,l.configuration),l.setCredentialChangeListener(s=>cg(n.remoteStore,s)),l.setAppCheckTokenChangeListener((s,u)=>cg(n.remoteStore,u)),l._onlineComponents=n})).apply(this,arguments)}function Nf(){return(Nf=(0,Ie.A)(function*(l){if(!l._offlineComponents)if(l._uninitializedComponentsProvider){Be("FirestoreClient","Using user provided OfflineComponentProvider");try{yield Pf(l,l._uninitializedComponentsProvider._offline)}catch(n){const i=n;if(!function Cv(l){return"FirebaseError"===l.name?l.code===ae.FAILED_PRECONDITION||l.code===ae.UNIMPLEMENTED:!(typeof DOMException<"u"&&l instanceof DOMException)||22===l.code||20===l.code||11===l.code}(i))throw i;rt("Error using user provided cache. Falling back to memory cache: "+i),yield Pf(l,new Za)}}else Be("FirestoreClient","Using default OfflineComponentProvider"),yield Pf(l,new Za);return l._offlineComponents})).apply(this,arguments)}function Gc(l){return Sg.apply(this,arguments)}function Sg(){return(Sg=(0,Ie.A)(function*(l){return l._onlineComponents||(l._uninitializedComponentsProvider?(Be("FirestoreClient","Using user provided OnlineComponentProvider"),yield xf(l,l._uninitializedComponentsProvider._online)):(Be("FirestoreClient","Using default OnlineComponentProvider"),yield xf(l,new Ja))),l._onlineComponents})).apply(this,arguments)}function Mg(){return(Mg=(0,Ie.A)(function*(l){const n=yield Gc(l),i=n.eventManager;return i.onListen=Zi.bind(null,n.syncEngine),i.onUnlisten=Af.bind(null,n.syncEngine),i.onFirstRemoteStoreListen=Wd.bind(null,n.syncEngine),i.onLastRemoteStoreUnlisten=Cf.bind(null,n.syncEngine),i})).apply(this,arguments)}function sh(l,n,i={}){const s=new Ae;return l.asyncQueue.enqueueAndForget((0,Ie.A)(function*(){return function(f,_,w,N,j){const se=new Hc({next:We=>{_.enqueueAndForget(()=>function $c(l,n){return iu.apply(this,arguments)}(f,be));const Rt=We.docs.has(w);!Rt&&We.fromCache?j.reject(new me(ae.UNAVAILABLE,"Failed to get document because the client is offline.")):Rt&&We.fromCache&&N&&"server"===N.source?j.reject(new me(ae.UNAVAILABLE,'Failed to get document from server. (However, this document does exist in the local cache. Run again without setting source to "server" to retrieve the cached document.)')):j.resolve(We)},error:We=>j.reject(We)}),be=new v(ce(w.path),se,{includeMetadataChanges:!0,ra:!0});return function Os(l,n){return Ef.apply(this,arguments)}(f,be)}(yield function uu(l){return Mg.apply(this,arguments)}(l),l.asyncQueue,n,i,s)})),s.promise}function ah(l){const n={};return void 0!==l.timeoutSeconds&&(n.timeoutSeconds=l.timeoutSeconds),n}const Ff=new Map;function Og(l){if(!Wt.isDocumentKey(l))throw new me(ae.INVALID_ARGUMENT,`Invalid document reference. Document references must have an even number of segments, but ${l} has ${l.length}.`)}function Lf(l){if(void 0===l)return"undefined";if(null===l)return"null";if("string"==typeof l)return l.length>20&&(l=`${l.substring(0,20)}...`),JSON.stringify(l);if("number"==typeof l||"boolean"==typeof l)return""+l;if("object"==typeof l){if(l instanceof Array)return"an array";{const n=(s=l).constructor?s.constructor.name:null;return n?`a custom ${n} object`:"an object"}}var s;return"function"==typeof l?"a function":z()}function Xr(l,n){if("_delegate"in l&&(l=l._delegate),!(l instanceof n)){if(n.name===l.constructor.name)throw new me(ae.INVALID_ARGUMENT,"Type does not match the expected instance. Did you pass a reference from a different Firestore SDK?");{const i=Lf(l);throw new me(ae.INVALID_ARGUMENT,`Expected type '${n.name}', but it was: ${i}`)}}return l}class Rv{constructor(n){var i,s;if(void 0===n.host){if(void 0!==n.ssl)throw new me(ae.INVALID_ARGUMENT,"Can't provide ssl option if host option is not set");this.host="firestore.googleapis.com",this.ssl=!0}else this.host=n.host,this.ssl=null===(i=n.ssl)||void 0===i||i;if(this.credentials=n.credentials,this.ignoreUndefinedProperties=!!n.ignoreUndefinedProperties,this.localCache=n.localCache,void 0===n.cacheSizeBytes)this.cacheSizeBytes=41943040;else{if(-1!==n.cacheSizeBytes&&n.cacheSizeBytes<1048576)throw new me(ae.INVALID_ARGUMENT,"cacheSizeBytes must be at least 1048576");this.cacheSizeBytes=n.cacheSizeBytes}(function wv(l,n,i,s){if(!0===n&&!0===s)throw new me(ae.INVALID_ARGUMENT,`${l} and ${i} cannot be used together.`)})("experimentalForceLongPolling",n.experimentalForceLongPolling,"experimentalAutoDetectLongPolling",n.experimentalAutoDetectLongPolling),this.experimentalForceLongPolling=!!n.experimentalForceLongPolling,this.experimentalAutoDetectLongPolling=!(this.experimentalForceLongPolling||void 0!==n.experimentalAutoDetectLongPolling&&!n.experimentalAutoDetectLongPolling),this.experimentalLongPollingOptions=ah(null!==(s=n.experimentalLongPollingOptions)&&void 0!==s?s:{}),function(f){if(void 0!==f.timeoutSeconds){if(isNaN(f.timeoutSeconds))throw new me(ae.INVALID_ARGUMENT,`invalid long polling timeout: ${f.timeoutSeconds} (must not be NaN)`);if(f.timeoutSeconds<5)throw new me(ae.INVALID_ARGUMENT,`invalid long polling timeout: ${f.timeoutSeconds} (minimum allowed value is 5)`);if(f.timeoutSeconds>30)throw new me(ae.INVALID_ARGUMENT,`invalid long polling timeout: ${f.timeoutSeconds} (maximum allowed value is 30)`)}}(this.experimentalLongPollingOptions),this.useFetchStreams=!!n.useFetchStreams}isEqual(n){return this.host===n.host&&this.ssl===n.ssl&&this.credentials===n.credentials&&this.cacheSizeBytes===n.cacheSizeBytes&&this.experimentalForceLongPolling===n.experimentalForceLongPolling&&this.experimentalAutoDetectLongPolling===n.experimentalAutoDetectLongPolling&&this.experimentalLongPollingOptions.timeoutSeconds===n.experimentalLongPollingOptions.timeoutSeconds&&this.ignoreUndefinedProperties===n.ignoreUndefinedProperties&&this.useFetchStreams===n.useFetchStreams}}class lh{constructor(n,i,s,u){this._authCredentials=n,this._appCheckCredentials=i,this._databaseId=s,this._app=u,this.type="firestore-lite",this._persistenceKey="(lite)",this._settings=new Rv({}),this._settingsFrozen=!1}get app(){if(!this._app)throw new me(ae.FAILED_PRECONDITION,"Firestore was not initialized using the Firebase SDK. 'app' is not available");return this._app}get _initialized(){return this._settingsFrozen}get _terminated(){return void 0!==this._terminateTask}_setSettings(n){if(this._settingsFrozen)throw new me(ae.FAILED_PRECONDITION,"Firestore has already been started and its settings can no longer be changed. You can only modify settings before calling any other methods on a Firestore object.");this._settings=new Rv(n),void 0!==n.credentials&&(this._authCredentials=function(s){if(!s)return new Vt;switch(s.type){case"firstParty":return new $n(s.sessionIndex||"0",s.iamToken||null,s.authTokenFactory||null);case"provider":return s.client;default:throw new me(ae.INVALID_ARGUMENT,"makeAuthCredentialsProvider failed due to invalid credential type")}}(n.credentials))}_getSettings(){return this._settings}_freezeSettings(){return this._settingsFrozen=!0,this._settings}_delete(){return this._terminateTask||(this._terminateTask=this._terminate()),this._terminateTask}toJSON(){return{app:this._app,databaseId:this._databaseId,settings:this._settings}}_terminate(){return function(i){const s=Ff.get(i);s&&(Be("ComponentProvider","Removing Datastore"),Ff.delete(i),s.terminate())}(this),Promise.resolve()}}class po{constructor(n,i,s){this.converter=i,this._query=s,this.type="query",this.firestore=n}withConverter(n){return new po(this.firestore,n,this._query)}}class go{constructor(n,i,s){this.converter=i,this._key=s,this.type="document",this.firestore=n}get _path(){return this._key.path}get id(){return this._key.path.lastSegment()}get path(){return this._key.path.canonicalString()}get parent(){return new bl(this.firestore,this.converter,this._key.path.popLast())}withConverter(n){return new go(this.firestore,n,this._key)}}class bl extends po{constructor(n,i,s){super(n,i,ce(s)),this._path=s,this.type="collection"}get id(){return this._query.path.lastSegment()}get path(){return this._query.path.canonicalString()}get parent(){const n=this._path.popLast();return n.isEmpty()?null:new go(this.firestore,null,new Wt(n))}withConverter(n){return new bl(this.firestore,n,this._path)}}function by(l,n,...i){if(l=(0,Te.Ku)(l),1===arguments.length&&(n=Yn.newId()),function Vf(l,n,i){if(!i)throw new me(ae.INVALID_ARGUMENT,`Function ${l}() cannot be called with an empty ${n}.`)}("doc","path",n),l instanceof lh){const s=gn.fromString(n,...i);return Og(s),new go(l,null,new Wt(s))}{if(!(l instanceof go||l instanceof bl))throw new me(ae.INVALID_ARGUMENT,"Expected first argument to collection() to be a CollectionReference, a DocumentReference or FirebaseFirestore");const s=l._path.child(gn.fromString(n,...i));return Og(s),new go(l.firestore,l instanceof bl?l.converter:null,new Wt(s))}}class wy{constructor(){this.iu=Promise.resolve(),this.su=[],this.ou=!1,this._u=[],this.au=null,this.uu=!1,this.cu=!1,this.lu=[],this.Yo=new eu(this,"async_queue_retry"),this.hu=()=>{const i=Al();i&&Be("AsyncQueue","Visibility state changed to "+i.visibilityState),this.Yo.Wo()};const n=Al();n&&"function"==typeof n.addEventListener&&n.addEventListener("visibilitychange",this.hu)}get isShuttingDown(){return this.ou}enqueueAndForget(n){this.enqueue(n)}enqueueAndForgetEvenWhileRestricted(n){this.Pu(),this.Iu(n)}enterRestrictedMode(n){if(!this.ou){this.ou=!0,this.cu=n||!1;const i=Al();i&&"function"==typeof i.removeEventListener&&i.removeEventListener("visibilitychange",this.hu)}}enqueue(n){if(this.Pu(),this.ou)return new Promise(()=>{});const i=new Ae;return this.Iu(()=>this.ou&&this.cu?Promise.resolve():(n().then(i.resolve,i.reject),i.promise)).then(()=>i.promise)}enqueueRetryable(n){this.enqueueAndForget(()=>(this.su.push(n),this.Tu()))}Tu(){var n=this;return(0,Ie.A)(function*(){if(0!==n.su.length){try{yield n.su[0](),n.su.shift(),n.Yo.reset()}catch(i){if(!Me(i))throw i;Be("AsyncQueue","Operation failed with retryable error: "+i)}n.su.length>0&&n.Yo.$o(()=>n.Tu())}})()}Iu(n){const i=this.iu.then(()=>(this.uu=!0,n().catch(s=>{throw this.au=s,this.uu=!1,Pt("INTERNAL UNHANDLED ERROR: ",function(_){let w=_.message||"";return _.stack&&(w=_.stack.includes(_.message)?_.stack:_.message+"\n"+_.stack),w}(s)),s}).then(s=>(this.uu=!1,s))));return this.iu=i,i}enqueueAfterDelay(n,i,s){this.Pu(),this.lu.indexOf(n)>-1&&(i=0);const u=fg.createAndSchedule(this,n,i,s,f=>this.Eu(f));return this._u.push(u),u}Pu(){this.au&&z()}verifyOperationInProgress(){}du(){var n=this;return(0,Ie.A)(function*(){let i;do{i=n.iu,yield i}while(i!==n.iu)})()}Au(n){for(const i of this._u)if(i.timerId===n)return!0;return!1}Ru(n){return this.du().then(()=>{this._u.sort((i,s)=>i.targetTimeMs-s.targetTimeMs);for(const i of this._u)if(i.skipDelay(),"all"!==n&&i.timerId===n)break;return this.du()})}Vu(n){this.lu.push(n)}Eu(n){const i=this._u.indexOf(n);this._u.splice(i,1)}}class bi extends lh{constructor(n,i,s,u){super(n,i,s,u),this.type="firestore",this._queue=new wy,this._persistenceKey=(null==u?void 0:u.name)||"[DEFAULT]"}_terminate(){return this._firestoreClient||Lg(this),this._firestoreClient.terminate()}}function uh(l,n){const i="object"==typeof l?l:(0,ne.Sx)(),s="string"==typeof l?l:n||"(default)",u=(0,ne.j6)(i,"firestore").getImmediate({identifier:s});if(!u._initialized){const f=(0,Te.yU)("firestore");f&&function cu(l,n,i,s={}){var u;const f=(l=Xr(l,lh))._getSettings(),_=`${n}:${i}`;if("firestore.googleapis.com"!==f.host&&f.host!==_&&rt("Host has been set in both settings() and connectFirestoreEmulator(), emulator host will be used."),l._setSettings(Object.assign(Object.assign({},f),{host:_,ssl:!1})),s.mockUserToken){let w,N;if("string"==typeof s.mockUserToken)w=s.mockUserToken,N=ze.MOCK_USER;else{w=(0,Te.Fy)(s.mockUserToken,null===(u=l._app)||void 0===u?void 0:u.options.projectId);const j=s.mockUserToken.sub||s.mockUserToken.user_id;if(!j)throw new me(ae.INVALID_ARGUMENT,"mockUserToken must contain 'sub' or 'user_id' field!");N=new ze(j)}l._authCredentials=new jt(new ut(w,N))}}(u,...f)}return u}function to(l){return l._firestoreClient||Lg(l),l._firestoreClient.verifyNotTerminated(),l._firestoreClient}function Lg(l){var n,i,s;const u=l._freezeSettings(),f=(N=(null===(n=l._app)||void 0===n?void 0:n.options.appId)||"",new co(l._databaseId,N,l._persistenceKey,(se=u).host,se.ssl,se.experimentalForceLongPolling,se.experimentalAutoDetectLongPolling,ah(se.experimentalLongPollingOptions),se.useFetchStreams));var N,se;l._firestoreClient=new Ay(l._authCredentials,l._appCheckCredentials,l._queue,f),null!==(i=u.localCache)&&void 0!==i&&i._offlineComponentProvider&&null!==(s=u.localCache)&&void 0!==s&&s._onlineComponentProvider&&(l._firestoreClient._uninitializedComponentsProvider={_offlineKind:u.localCache.kind,_offline:u.localCache._offlineComponentProvider,_online:u.localCache._onlineComponentProvider})}class nc{constructor(n){this._byteString=n}static fromBase64String(n){try{return new nc(si.fromBase64String(n))}catch(i){throw new me(ae.INVALID_ARGUMENT,"Failed to construct data from Base64 string: "+i)}}static fromUint8Array(n){return new nc(si.fromUint8Array(n))}toBase64(){return this._byteString.toBase64()}toUint8Array(){return this._byteString.toUint8Array()}toString(){return"Bytes(base64: "+this.toBase64()+")"}isEqual(n){return this._byteString.isEqual(n._byteString)}}class hu{constructor(...n){for(let i=0;i90)throw new me(ae.INVALID_ARGUMENT,"Latitude must be a number between -90 and 90, but was: "+n);if(!isFinite(i)||i<-180||i>180)throw new me(ae.INVALID_ARGUMENT,"Longitude must be a number between -180 and 180, but was: "+i);this._lat=n,this._long=i}get latitude(){return this._lat}get longitude(){return this._long}isEqual(n){return this._lat===n._lat&&this._long===n._long}toJSON(){return{latitude:this._lat,longitude:this._long}}_compareTo(n){return Le(this._lat,n._lat)||Le(this._long,n._long)}}const Nv=/^__.*__$/;class Uf{constructor(n,i,s){this.data=n,this.fieldMask=i,this.fieldTransforms=s}toMutation(n,i){return null!==this.fieldMask?new lo(n,this.data,this.fieldMask,i,this.fieldTransforms):new Ms(n,this.data,i,this.fieldTransforms)}}function $f(l){switch(l){case 0:case 2:case 1:return!0;case 3:case 4:return!1;default:throw z()}}class Bf{constructor(n,i,s,u,f,_){this.settings=n,this.databaseId=i,this.serializer=s,this.ignoreUndefinedProperties=u,void 0===f&&this.mu(),this.fieldTransforms=f||[],this.fieldMask=_||[]}get path(){return this.settings.path}get fu(){return this.settings.fu}gu(n){return new Bf(Object.assign(Object.assign({},this.settings),n),this.databaseId,this.serializer,this.ignoreUndefinedProperties,this.fieldTransforms,this.fieldMask)}pu(n){var i;const s=null===(i=this.path)||void 0===i?void 0:i.child(n),u=this.gu({path:s,yu:!1});return u.wu(n),u}Su(n){var i;const s=null===(i=this.path)||void 0===i?void 0:i.child(n),u=this.gu({path:s,yu:!1});return u.mu(),u}bu(n){return this.gu({path:void 0,yu:!0})}Du(n){return Gf(n,this.settings.methodName,this.settings.Cu||!1,this.path,this.settings.vu)}contains(n){return void 0!==this.fieldMask.find(i=>n.isPrefixOf(i))||void 0!==this.fieldTransforms.find(i=>n.isPrefixOf(i.field))}mu(){if(this.path)for(let n=0;nN.covers(be.field))}else N=null,j=_.fieldTransforms;return new Uf(new In(w),N,j)}function Sa(l,n){if(Vv(l=(0,Te.Ku)(l)))return Gg("Unsupported field value:",n,l),Fv(l,n);if(l instanceof qc)return function(s,u){if(!$f(u.fu))throw u.Du(`${s._methodName}() can only be used with update() and set()`);if(!u.path)throw u.Du(`${s._methodName}() is not currently supported inside arrays`);const f=s._toFieldTransform(u);f&&u.fieldTransforms.push(f)}(l,n),null;if(void 0===l&&n.ignoreUndefinedProperties)return null;if(n.path&&n.fieldMask.push(n.path),l instanceof Array){if(n.settings.yu&&4!==n.fu)throw n.Du("Nested arrays are not supported");return function(s,u){const f=[];let _=0;for(const w of s){let N=Sa(w,u.bu(_));null==N&&(N={nullValue:"NULL_VALUE"}),f.push(N),_++}return{arrayValue:{values:f}}}(l,n)}return function(s,u){if(null===(s=(0,Te.Ku)(s)))return{nullValue:"NULL_VALUE"};if("number"==typeof s)return cl(u.serializer,s);if("boolean"==typeof s)return{booleanValue:s};if("string"==typeof s)return{stringValue:s};if(s instanceof Date){const f=Qt.fromDate(s);return{timestampValue:wo(u.serializer,f)}}if(s instanceof Qt){const f=new Qt(s.seconds,1e3*Math.floor(s.nanoseconds/1e3));return{timestampValue:wo(u.serializer,f)}}if(s instanceof Ug)return{geoPointValue:{latitude:s.latitude,longitude:s.longitude}};if(s instanceof nc)return{bytesValue:Gs(u.serializer,s._byteString)};if(s instanceof go){const f=u.databaseId,_=s.firestore._databaseId;if(!_.isEqual(f))throw u.Du(`Document reference is for database ${_.projectId}/${_.database} but should be for database ${f.projectId}/${f.database}`);return{referenceValue:_a(s.firestore._databaseId||u.databaseId,s._key.path)}}throw u.Du(`Unsupported field value: ${Lf(s)}`)}(l,n)}function Fv(l,n){const i={};return ti(l)?n.path&&n.path.length>0&&n.fieldMask.push(n.path):mi(l,(s,u)=>{const f=Sa(u,n.pu(s));null!=f&&(i[s]=f)}),{mapValue:{fields:i}}}function Vv(l){return!("object"!=typeof l||null===l||l instanceof Array||l instanceof Date||l instanceof Qt||l instanceof Ug||l instanceof nc||l instanceof go||l instanceof qc)}function Gg(l,n,i){if(!Vv(i)||"object"!=typeof(u=i)||null===u||Object.getPrototypeOf(u)!==Object.prototype&&null!==Object.getPrototypeOf(u)){const s=Lf(i);throw n.Du("an object"===s?l+" a custom object":l+" "+s)}var u}function Yc(l,n,i){if((n=(0,Te.Ku)(n))instanceof hu)return n._internalPath;if("string"==typeof n)return Hf(l,n);throw Gf("Field path arguments must be of type string or ",l,!1,void 0,i)}const ky=new RegExp("[~\\*/\\[\\]]");function Hf(l,n,i){if(n.search(ky)>=0)throw Gf(`Invalid field path (${n}). Paths must not contain '~', '*', '/', '[', or ']'`,l,!1,void 0,i);try{return new hu(...n.split("."))._internalPath}catch{throw Gf(`Invalid field path (${n}). Paths must not be empty, begin with '.', end with '.', or contain '..'`,l,!1,void 0,i)}}function Gf(l,n,i,s,u){const f=s&&!s.isEmpty(),_=void 0!==u;let w=`Function ${n}() called with invalid data`;i&&(w+=" (via `toFirestore()`)"),w+=". ";let N="";return(f||_)&&(N+=" (found",f&&(N+=` in field ${s}`),_&&(N+=` in document ${u}`),N+=")"),new me(ae.INVALID_ARGUMENT,w+l+N)}function Lv(l,n){return l.some(i=>i.isEqual(n))}class dh{constructor(n,i,s,u,f){this._firestore=n,this._userDataWriter=i,this._key=s,this._document=u,this._converter=f}get id(){return this._key.path.lastSegment()}get ref(){return new go(this._firestore,this._converter,this._key)}exists(){return null!==this._document}data(){if(this._document){if(this._converter){const n=new Fy(this._firestore,this._userDataWriter,this._key,this._document,null);return this._converter.fromFirestore(n)}return this._userDataWriter.convertValue(this._document.data.value)}}get(n){if(this._document){const i=this._document.data.field(Zc("DocumentSnapshot.get",n));if(null!==i)return this._userDataWriter.convertValue(i)}}}class Fy extends dh{data(){return super.data()}}function Zc(l,n){return"string"==typeof n?Hf(l,n):n instanceof hu?n._internalPath:n._delegate._internalPath}class qg{convertValue(n,i="none"){switch(H(n)){case 0:return null;case 1:return n.booleanValue;case 2:return ai(n.integerValue||n.doubleValue);case 3:return this.convertTimestamp(n.timestampValue);case 4:return this.convertServerTimestamp(n,i);case 5:return n.stringValue;case 6:return this.convertBytes(jn(n.bytesValue));case 7:return this.convertReference(n.referenceValue);case 8:return this.convertGeoPoint(n.geoPointValue);case 9:return this.convertArray(n.arrayValue,i);case 10:return this.convertObject(n.mapValue,i);default:throw z()}}convertObject(n,i){return this.convertObjectMap(n.fields,i)}convertObjectMap(n,i="none"){const s={};return mi(n,(u,f)=>{s[u]=this.convertValue(f,i)}),s}convertGeoPoint(n){return new Ug(ai(n.latitude),ai(n.longitude))}convertArray(n,i){return(n.values||[]).map(s=>this.convertValue(s,i))}convertServerTimestamp(n,i){switch(i){case"previous":const s=Ao(n);return null==s?null:this.convertValue(s,i);case"estimate":return this.convertTimestamp(Co(n));default:return null}}convertTimestamp(n){const i=kr(n);return new Qt(i.seconds,i.nanos)}convertDocumentKey(n,i){const s=gn.fromString(n);q(Td(s));const u=new To(s.get(1),s.get(3)),f=new Wt(s.popFirst(5));return u.isEqual(i)||Pt(`Document ${f} contains a document reference within a different database (${u.projectId}/${u.database}) which is not supported. It will be treated as a reference in the current database (${i.projectId}/${i.database}) instead.`),f}}class Sl{constructor(n,i){this.hasPendingWrites=n,this.fromCache=i}isEqual(n){return this.hasPendingWrites===n.hasPendingWrites&&this.fromCache===n.fromCache}}class oc extends dh{constructor(n,i,s,u,f,_){super(n,i,s,u,_),this._firestore=n,this._firestoreImpl=n,this.metadata=f}exists(){return super.exists()}data(n={}){if(this._document){if(this._converter){const i=new td(this._firestore,this._userDataWriter,this._key,this._document,this.metadata,null);return this._converter.fromFirestore(i,n)}return this._userDataWriter.convertValue(this._document.data.value,n.serverTimestamps)}}get(n,i={}){if(this._document){const s=this._document.data.field(Zc("DocumentSnapshot.get",n));if(null!==s)return this._userDataWriter.convertValue(s,i.serverTimestamps)}}}class td extends oc{data(n={}){return super.data(n)}}function jv(l){l=Xr(l,go);const n=Xr(l.firestore,bi);return sh(to(n),l._key).then(i=>function Xf(l,n,i){const s=i.docs.get(n._key),u=new fu(l);return new oc(l,u,n._key,s,new Sl(i.hasPendingWrites,i.fromCache),n.converter)}(n,l,i))}class fu extends qg{constructor(n){super(),this.firestore=n}convertBytes(n){return new nc(n)}convertReference(n){const i=this.convertDocumentKey(n,this.firestore._databaseId);return new go(this.firestore,null,i)}}function Zg(l,n,i){l=Xr(l,go);const s=Xr(l.firestore,bi),u=function fh(l,n,i){let s;return s=l?i&&(i.merge||i.mergeFields)?l.toFirestore(n,i):l.toFirestore(n):n,s}(l.converter,n,i);return function rd(l,n){return function(s,u){const f=new Ae;return s.asyncQueue.enqueueAndForget((0,Ie.A)(function*(){return function Xd(l,n,i){return Qd.apply(this,arguments)}(yield function Rg(l){return Gc(l).then(n=>n.syncEngine)}(s),u,f)})),f.promise}(to(l),n)}(s,[jf(rc(s),"setDoc",l._key,u,null!==l.converter,i).toMutation(l._key,Di.none())])}!function(n,i=!0){Tt=ne.MF,(0,ne.om)(new Qe.uA("firestore",(s,{instanceIdentifier:u,options:f})=>{const _=s.getProvider("app").getImmediate(),w=new bi(new vn(s.getProvider("auth-internal")),new er(s.getProvider("app-check-internal")),function(j,se){if(!Object.prototype.hasOwnProperty.apply(j.options,["projectId"]))throw new me(ae.INVALID_ARGUMENT,'"projectId" not provided in firebase.initializeApp.');return new To(j.options.projectId,se)}(_,u),_);return f=Object.assign({useFetchStreams:i},f),w._setSettings(f),w},"PUBLIC").setMultipleInstances(!0)),(0,ne.KO)(kt,"4.6.3",n),(0,ne.KO)(kt,"4.6.3","esm2017")}();class vh{constructor(n){return n}}const ep="firestore",im=new d.nKC("angularfire2.firestore-instances");function s0(l){return(n,i)=>{const s=n.runOutsideAngular(()=>l(i));return new vh(s)}}const a0={provide:class o0{constructor(){return(0,g.CA)(ep)}},deps:[[new d.Xx1,im]]},l0={provide:vh,useFactory:function Qv(l,n){const i=(0,g.lR)(ep,l,n);return i&&new vh(i)},deps:[[new d.Xx1,im],ge.XU]};function Yv(l,...n){return(0,Q.KO)("angularfire",g.xv.full,"fst"),(0,d.EmA)([l0,a0,{provide:im,useFactory:s0(l),multi:!0,deps:[d.SKi,d.zZn,g.u0,ge.gL,[new d.Xx1,Oe.DF],[new d.Xx1,g.Jv],...n]}])}const sm=(0,g.S3)(by,!0),lm=(0,g.S3)(jv,!0),um=(0,g.S3)(uh,!0),T0=(0,g.S3)(Zg,!0)},3586:(En,bt,B)=>{"use strict";B.d(bt,{xv:()=>Re,u0:()=>Dt,Jv:()=>kt,CA:()=>Ct,lR:()=>Ke,S3:()=>ae});var g=B(9842),d=B(4438),ge=B(2214),Oe=B(8359);class Q extends Oe.yU{constructor(Ae,ut){super()}schedule(Ae,ut=0){return this}}const Ie={setInterval(me,Ae,...ut){const{delegate:Vt}=Ie;return null!=Vt&&Vt.setInterval?Vt.setInterval(me,Ae,...ut):setInterval(me,Ae,...ut)},clearInterval(me){const{delegate:Ae}=Ie;return((null==Ae?void 0:Ae.clearInterval)||clearInterval)(me)},delegate:void 0};var ne=B(7908);class Qe extends Q{constructor(Ae,ut){super(Ae,ut),this.scheduler=Ae,this.work=ut,this.pending=!1}schedule(Ae,ut=0){var Vt;if(this.closed)return this;this.state=Ae;const jt=this.id,vn=this.scheduler;return null!=jt&&(this.id=this.recycleAsyncId(vn,jt,ut)),this.pending=!0,this.delay=ut,this.id=null!==(Vt=this.id)&&void 0!==Vt?Vt:this.requestAsyncId(vn,this.id,ut),this}requestAsyncId(Ae,ut,Vt=0){return Ie.setInterval(Ae.flush.bind(Ae,this),Vt)}recycleAsyncId(Ae,ut,Vt=0){if(null!=Vt&&this.delay===Vt&&!1===this.pending)return ut;null!=ut&&Ie.clearInterval(ut)}execute(Ae,ut){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const Vt=this._execute(Ae,ut);if(Vt)return Vt;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(Ae,ut){let jt,Vt=!1;try{this.work(Ae)}catch(vn){Vt=!0,jt=vn||new Error("Scheduled action threw falsy error")}if(Vt)return this.unsubscribe(),jt}unsubscribe(){if(!this.closed){const{id:Ae,scheduler:ut}=this,{actions:Vt}=ut;this.work=this.state=this.scheduler=null,this.pending=!1,(0,ne.o)(Vt,this),null!=Ae&&(this.id=this.recycleAsyncId(ut,Ae,null)),this.delay=null,super.unsubscribe()}}}const Te={now:()=>(Te.delegate||Date).now(),delegate:void 0};class _e{constructor(Ae,ut=_e.now){this.schedulerActionCtor=Ae,this.now=ut}schedule(Ae,ut=0,Vt){return new this.schedulerActionCtor(this,Ae).schedule(Vt,ut)}}_e.now=Te.now;class Fe extends _e{constructor(Ae,ut=_e.now){super(Ae,ut),this.actions=[],this._active=!1}flush(Ae){const{actions:ut}=this;if(this._active)return void ut.push(Ae);let Vt;this._active=!0;do{if(Vt=Ae.execute(Ae.state,Ae.delay))break}while(Ae=ut.shift());if(this._active=!1,Vt){for(;Ae=ut.shift();)Ae.unsubscribe();throw Vt}}}const Ve=new class Ue extends Fe{}(class tt extends Qe{constructor(Ae,ut){super(Ae,ut),this.scheduler=Ae,this.work=ut}schedule(Ae,ut=0){return ut>0?super.schedule(Ae,ut):(this.delay=ut,this.state=Ae,this.scheduler.flush(this),this)}execute(Ae,ut){return ut>0||this.closed?super.execute(Ae,ut):this._execute(Ae,ut)}requestAsyncId(Ae,ut,Vt=0){return null!=Vt&&Vt>0||null==Vt&&this.delay>0?super.requestAsyncId(Ae,ut,Vt):(Ae.flush(this),0)}}),gt=new Fe(Qe);var at=B(1985),Mt=B(8141),mt=B(6745),vt=B(941);const Re=new d.RxE("ANGULARFIRE2_VERSION");function Ke(me,Ae,ut){if(Ae){if(1===Ae.length)return Ae[0];const vn=Ae.filter(bn=>bn.app===ut);if(1===vn.length)return vn[0]}return ut.container.getProvider(me).getImmediate({optional:!0})}const Ct=(me,Ae)=>{const ut=Ae?[Ae]:(0,ge.Dk)(),Vt=[];return ut.forEach(jt=>{jt.container.getProvider(me).instances.forEach(bn=>{Vt.includes(bn)||Vt.push(bn)})}),Vt};class kt{constructor(){return Ct(ze)}}const ze="app-check";function Tt(){}class Lt{constructor(Ae,ut=Ve){(0,g.A)(this,"zone",void 0),(0,g.A)(this,"delegate",void 0),this.zone=Ae,this.delegate=ut}now(){return this.delegate.now()}schedule(Ae,ut,Vt){const jt=this.zone;return this.delegate.schedule(function(bn){jt.runGuarded(()=>{Ae.apply(this,[bn])})},ut,Vt)}}class en{constructor(Ae){(0,g.A)(this,"zone",void 0),(0,g.A)(this,"task",null),this.zone=Ae}call(Ae,ut){const Vt=this.unscheduleTask.bind(this);return this.task=this.zone.run(()=>Zone.current.scheduleMacroTask("firebaseZoneBlock",Tt,{},Tt,Tt)),ut.pipe((0,Mt.M)({next:Vt,complete:Vt,error:Vt})).subscribe(Ae).add(Vt)}unscheduleTask(){setTimeout(()=>{null!=this.task&&"scheduled"===this.task.state&&(this.task.invoke(),this.task=null)},10)}}let Dt=(()=>{var me;class Ae{constructor(Vt){(0,g.A)(this,"ngZone",void 0),(0,g.A)(this,"outsideAngular",void 0),(0,g.A)(this,"insideAngular",void 0),this.ngZone=Vt,this.outsideAngular=Vt.runOutsideAngular(()=>new Lt(Zone.current)),this.insideAngular=Vt.run(()=>new Lt(Zone.current,gt)),globalThis.\u0275AngularFireScheduler||(globalThis.\u0275AngularFireScheduler=this)}}return me=Ae,(0,g.A)(Ae,"\u0275fac",function(Vt){return new(Vt||me)(d.KVO(d.SKi))}),(0,g.A)(Ae,"\u0275prov",d.jDH({token:me,factory:me.\u0275fac,providedIn:"root"})),Ae})();function Be(){const me=globalThis.\u0275AngularFireScheduler;if(!me)throw new Error("Either AngularFireModule has not been provided in your AppModule (this can be done manually or implictly using\nprovideFirebaseApp) or you're calling an AngularFire method outside of an NgModule (which is not supported).");return me}function rt(me){return Be().ngZone.run(()=>me())}function q(me){return function ie(me){return function(ut){return(ut=ut.lift(new en(me.ngZone))).pipe((0,mt._)(me.outsideAngular),(0,vt.Q)(me.insideAngular))}}(Be())(me)}const he=(me,Ae)=>function(){const Vt=arguments;return Ae&&setTimeout(()=>{"scheduled"===Ae.state&&Ae.invoke()},10),rt(()=>me.apply(void 0,Vt))},ae=(me,Ae)=>function(){let ut;const Vt=arguments;for(let vn=0;vnZone.current.scheduleMacroTask("firebaseZoneBlock",Tt,{},Tt,Tt)))),Vt[vn]=he(Vt[vn],ut));const jt=function Pt(me){return Be().ngZone.runOutsideAngular(()=>me())}(()=>me.apply(this,Vt));if(!Ae){if(jt instanceof at.c){const vn=Be();return jt.pipe((0,mt._)(vn.outsideAngular),(0,vt.Q)(vn.insideAngular))}return rt(()=>jt)}return jt instanceof at.c?jt.pipe(q):jt instanceof Promise?rt(()=>new Promise((vn,bn)=>jt.then($n=>rt(()=>vn($n)),$n=>rt(()=>bn($n))))):"function"==typeof jt&&ut?function(){return setTimeout(()=>{ut&&"scheduled"===ut.state&&ut.invoke()},10),jt.apply(this,arguments)}:rt(()=>jt)}},4341:(En,bt,B)=>{"use strict";B.d(bt,{YN:()=>da,zX:()=>ci,VZ:()=>Go,cz:()=>Ke,kq:()=>Ye,vO:()=>Ot,BC:()=>gn,vS:()=>or});var g=B(4438),d=B(177),ge=B(8455),Oe=B(1985),Q=B(3073),Ie=B(8750),ne=B(3794),Qe=B(4360),tt=B(6450),Te=B(8496),Fe=B(6354);let Ue=(()=>{var L;class P{constructor($,Ce){this._renderer=$,this._elementRef=Ce,this.onChange=rn=>{},this.onTouched=()=>{}}setProperty($,Ce){this._renderer.setProperty(this._elementRef.nativeElement,$,Ce)}registerOnTouched($){this.onTouched=$}registerOnChange($){this.onChange=$}setDisabledState($){this.setProperty("disabled",$)}}return(L=P).\u0275fac=function($){return new($||L)(g.rXU(g.sFG),g.rXU(g.aKT))},L.\u0275dir=g.FsC({type:L}),P})(),Ve=(()=>{var L;class P extends Ue{}return(L=P).\u0275fac=(()=>{let ce;return function(Ce){return(ce||(ce=g.xGo(L)))(Ce||L)}})(),L.\u0275dir=g.FsC({type:L,features:[g.Vt3]}),P})();const Ye=new g.nKC(""),at={provide:Ye,useExisting:(0,g.Rfq)(()=>vt),multi:!0},mt=new g.nKC("");let vt=(()=>{var L;class P extends Ue{constructor($,Ce,rn){super($,Ce),this._compositionMode=rn,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function Mt(){const L=(0,d.QT)()?(0,d.QT)().getUserAgent():"";return/android (\d+)/.test(L.toLowerCase())}())}writeValue($){this.setProperty("value",null==$?"":$)}_handleInput($){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange($)}_compositionStart(){this._composing=!0}_compositionEnd($){this._composing=!1,this._compositionMode&&this.onChange($)}}return(L=P).\u0275fac=function($){return new($||L)(g.rXU(g.sFG),g.rXU(g.aKT),g.rXU(mt,8))},L.\u0275dir=g.FsC({type:L,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function($,Ce){1&$&&g.bIt("input",function(On){return Ce._handleInput(On.target.value)})("blur",function(){return Ce.onTouched()})("compositionstart",function(){return Ce._compositionStart()})("compositionend",function(On){return Ce._compositionEnd(On.target.value)})},features:[g.Jv_([at]),g.Vt3]}),P})();function Re(L){return null==L||("string"==typeof L||Array.isArray(L))&&0===L.length}const Ke=new g.nKC(""),Ct=new g.nKC("");function z(L){return null}function q(L){return null!=L}function ie(L){return(0,g.jNT)(L)?(0,ge.H)(L):L}function he(L){let P={};return L.forEach(ce=>{P=null!=ce?{...P,...ce}:P}),0===Object.keys(P).length?null:P}function ae(L,P){return P.map(ce=>ce(L))}function Ae(L){return L.map(P=>function me(L){return!L.validate}(P)?P:ce=>P.validate(ce))}function Vt(L){return null!=L?function ut(L){if(!L)return null;const P=L.filter(q);return 0==P.length?null:function(ce){return he(ae(ce,P))}}(Ae(L)):null}function vn(L){return null!=L?function jt(L){if(!L)return null;const P=L.filter(q);return 0==P.length?null:function(ce){return function _e(...L){const P=(0,ne.ms)(L),{args:ce,keys:$}=(0,Q.D)(L),Ce=new Oe.c(rn=>{const{length:On}=ce;if(!On)return void rn.complete();const rr=new Array(On);let Ji=On,ao=On;for(let eo=0;eo{Qo||(Qo=!0,ao--),rr[eo]=Na},()=>Ji--,void 0,()=>{(!Ji||!Qo)&&(ao||rn.next($?(0,Te.e)($,rr):rr),rn.complete())}))}});return P?Ce.pipe((0,tt.I)(P)):Ce}(ae(ce,P).map(ie)).pipe((0,Fe.T)(he))}}(Ae(L)):null}function bn(L,P){return null===L?[P]:Array.isArray(L)?[...L,P]:[L,P]}function er(L){return L?Array.isArray(L)?L:[L]:[]}function yn(L,P){return Array.isArray(L)?L.includes(P):L===P}function ir(L,P){const ce=er(P);return er(L).forEach(Ce=>{yn(ce,Ce)||ce.push(Ce)}),ce}function Yn(L,P){return er(P).filter(ce=>!yn(L,ce))}class Le{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(P){this._rawValidators=P||[],this._composedValidatorFn=Vt(this._rawValidators)}_setAsyncValidators(P){this._rawAsyncValidators=P||[],this._composedAsyncValidatorFn=vn(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(P){this._onDestroyCallbacks.push(P)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(P=>P()),this._onDestroyCallbacks=[]}reset(P=void 0){this.control&&this.control.reset(P)}hasError(P,ce){return!!this.control&&this.control.hasError(P,ce)}getError(P,ce){return this.control?this.control.getError(P,ce):null}}class yt extends Le{get formDirective(){return null}get path(){return null}}class Ot extends Le{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Qt{constructor(P){this._cd=P}get isTouched(){var P;return!(null===(P=this._cd)||void 0===P||null===(P=P.control)||void 0===P||!P.touched)}get isUntouched(){var P;return!(null===(P=this._cd)||void 0===P||null===(P=P.control)||void 0===P||!P.untouched)}get isPristine(){var P;return!(null===(P=this._cd)||void 0===P||null===(P=P.control)||void 0===P||!P.pristine)}get isDirty(){var P;return!(null===(P=this._cd)||void 0===P||null===(P=P.control)||void 0===P||!P.dirty)}get isValid(){var P;return!(null===(P=this._cd)||void 0===P||null===(P=P.control)||void 0===P||!P.valid)}get isInvalid(){var P;return!(null===(P=this._cd)||void 0===P||null===(P=P.control)||void 0===P||!P.invalid)}get isPending(){var P;return!(null===(P=this._cd)||void 0===P||null===(P=P.control)||void 0===P||!P.pending)}get isSubmitted(){var P;return!(null===(P=this._cd)||void 0===P||!P.submitted)}}let gn=(()=>{var L;class P extends Qt{constructor($){super($)}}return(L=P).\u0275fac=function($){return new($||L)(g.rXU(Ot,2))},L.\u0275dir=g.FsC({type:L,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function($,Ce){2&$&&g.AVh("ng-untouched",Ce.isUntouched)("ng-touched",Ce.isTouched)("ng-pristine",Ce.isPristine)("ng-dirty",Ce.isDirty)("ng-valid",Ce.isValid)("ng-invalid",Ce.isInvalid)("ng-pending",Ce.isPending)},features:[g.Vt3]}),P})();const oe="VALID",He="INVALID",dt="PENDING",Xe="DISABLED";function it(L){return null!=L&&!Array.isArray(L)&&"object"==typeof L}class Kn{constructor(P,ce){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(P),this._assignAsyncValidators(ce)}get validator(){return this._composedValidatorFn}set validator(P){this._rawValidators=this._composedValidatorFn=P}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(P){this._rawAsyncValidators=this._composedAsyncValidatorFn=P}get parent(){return this._parent}get valid(){return this.status===oe}get invalid(){return this.status===He}get pending(){return this.status==dt}get disabled(){return this.status===Xe}get enabled(){return this.status!==Xe}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(P){this._assignValidators(P)}setAsyncValidators(P){this._assignAsyncValidators(P)}addValidators(P){this.setValidators(ir(P,this._rawValidators))}addAsyncValidators(P){this.setAsyncValidators(ir(P,this._rawAsyncValidators))}removeValidators(P){this.setValidators(Yn(P,this._rawValidators))}removeAsyncValidators(P){this.setAsyncValidators(Yn(P,this._rawAsyncValidators))}hasValidator(P){return yn(this._rawValidators,P)}hasAsyncValidator(P){return yn(this._rawAsyncValidators,P)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(P={}){this.touched=!0,this._parent&&!P.onlySelf&&this._parent.markAsTouched(P)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(P=>P.markAllAsTouched())}markAsUntouched(P={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(ce=>{ce.markAsUntouched({onlySelf:!0})}),this._parent&&!P.onlySelf&&this._parent._updateTouched(P)}markAsDirty(P={}){this.pristine=!1,this._parent&&!P.onlySelf&&this._parent.markAsDirty(P)}markAsPristine(P={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(ce=>{ce.markAsPristine({onlySelf:!0})}),this._parent&&!P.onlySelf&&this._parent._updatePristine(P)}markAsPending(P={}){this.status=dt,!1!==P.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!P.onlySelf&&this._parent.markAsPending(P)}disable(P={}){const ce=this._parentMarkedDirty(P.onlySelf);this.status=Xe,this.errors=null,this._forEachChild($=>{$.disable({...P,onlySelf:!0})}),this._updateValue(),!1!==P.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...P,skipPristineCheck:ce}),this._onDisabledChange.forEach($=>$(!0))}enable(P={}){const ce=this._parentMarkedDirty(P.onlySelf);this.status=oe,this._forEachChild($=>{$.enable({...P,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:P.emitEvent}),this._updateAncestors({...P,skipPristineCheck:ce}),this._onDisabledChange.forEach($=>$(!1))}_updateAncestors(P){this._parent&&!P.onlySelf&&(this._parent.updateValueAndValidity(P),P.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(P){this._parent=P}getRawValue(){return this.value}updateValueAndValidity(P={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===oe||this.status===dt)&&this._runAsyncValidator(P.emitEvent)),!1!==P.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!P.onlySelf&&this._parent.updateValueAndValidity(P)}_updateTreeValidity(P={emitEvent:!0}){this._forEachChild(ce=>ce._updateTreeValidity(P)),this.updateValueAndValidity({onlySelf:!0,emitEvent:P.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Xe:oe}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(P){if(this.asyncValidator){this.status=dt,this._hasOwnPendingAsyncValidator=!0;const ce=ie(this.asyncValidator(this));this._asyncValidationSubscription=ce.subscribe($=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors($,{emitEvent:P})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(P,ce={}){this.errors=P,this._updateControlsErrors(!1!==ce.emitEvent)}get(P){let ce=P;return null==ce||(Array.isArray(ce)||(ce=ce.split(".")),0===ce.length)?null:ce.reduce(($,Ce)=>$&&$._find(Ce),this)}getError(P,ce){const $=ce?this.get(ce):this;return $&&$.errors?$.errors[P]:null}hasError(P,ce){return!!this.getError(P,ce)}get root(){let P=this;for(;P._parent;)P=P._parent;return P}_updateControlsErrors(P){this.status=this._calculateStatus(),P&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(P)}_initObservables(){this.valueChanges=new g.bkB,this.statusChanges=new g.bkB}_calculateStatus(){return this._allControlsDisabled()?Xe:this.errors?He:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(dt)?dt:this._anyControlsHaveStatus(He)?He:oe}_anyControlsHaveStatus(P){return this._anyControls(ce=>ce.status===P)}_anyControlsDirty(){return this._anyControls(P=>P.dirty)}_anyControlsTouched(){return this._anyControls(P=>P.touched)}_updatePristine(P={}){this.pristine=!this._anyControlsDirty(),this._parent&&!P.onlySelf&&this._parent._updatePristine(P)}_updateTouched(P={}){this.touched=this._anyControlsTouched(),this._parent&&!P.onlySelf&&this._parent._updateTouched(P)}_registerOnCollectionChange(P){this._onCollectionChange=P}_setUpdateStrategy(P){it(P)&&null!=P.updateOn&&(this._updateOn=P.updateOn)}_parentMarkedDirty(P){return!P&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(P){return null}_assignValidators(P){this._rawValidators=Array.isArray(P)?P.slice():P,this._composedValidatorFn=function de(L){return Array.isArray(L)?Vt(L):L||null}(this._rawValidators)}_assignAsyncValidators(P){this._rawAsyncValidators=Array.isArray(P)?P.slice():P,this._composedAsyncValidatorFn=function Et(L){return Array.isArray(L)?vn(L):L||null}(this._rawAsyncValidators)}}const Ei=new g.nKC("CallSetDisabledState",{providedIn:"root",factory:()=>ii}),ii="always";function Li(L,P,ce=ii){var $,Ce;(function gi(L,P){const ce=function $n(L){return L._rawValidators}(L);null!==P.validator?L.setValidators(bn(ce,P.validator)):"function"==typeof ce&&L.setValidators([ce]);const $=function qn(L){return L._rawAsyncValidators}(L);null!==P.asyncValidator?L.setAsyncValidators(bn($,P.asyncValidator)):"function"==typeof $&&L.setAsyncValidators([$]);const Ce=()=>L.updateValueAndValidity();Xi(P._rawValidators,Ce),Xi(P._rawAsyncValidators,Ce)})(L,P),P.valueAccessor.writeValue(L.value),(L.disabled||"always"===ce)&&(null===($=(Ce=P.valueAccessor).setDisabledState)||void 0===$||$.call(Ce,L.disabled)),function lt(L,P){P.valueAccessor.registerOnChange(ce=>{L._pendingValue=ce,L._pendingChange=!0,L._pendingDirty=!0,"change"===L.updateOn&&fn(L,P)})}(L,P),function Wn(L,P){const ce=($,Ce)=>{P.valueAccessor.writeValue($),Ce&&P.viewToModelUpdate($)};L.registerOnChange(ce),P._registerOnDestroy(()=>{L._unregisterOnChange(ce)})}(L,P),function $t(L,P){P.valueAccessor.registerOnTouched(()=>{L._pendingTouched=!0,"blur"===L.updateOn&&L._pendingChange&&fn(L,P),"submit"!==L.updateOn&&L.markAsTouched()})}(L,P),function wi(L,P){if(P.valueAccessor.setDisabledState){const ce=$=>{P.valueAccessor.setDisabledState($)};L.registerOnDisabledChange(ce),P._registerOnDestroy(()=>{L._unregisterOnDisabledChange(ce)})}}(L,P)}function Xi(L,P){L.forEach(ce=>{ce.registerOnValidatorChange&&ce.registerOnValidatorChange(P)})}function fn(L,P){L._pendingDirty&&L.markAsDirty(),L.setValue(L._pendingValue,{emitModelToViewChange:!1}),P.viewToModelUpdate(L._pendingValue),L._pendingChange=!1}function Pi(L,P){const ce=L.indexOf(P);ce>-1&&L.splice(ce,1)}function mi(L){return"object"==typeof L&&null!==L&&2===Object.keys(L).length&&"value"in L&&"disabled"in L}Promise.resolve();const $i=class extends Kn{constructor(P=null,ce,$){super(function re(L){return(it(L)?L.validators:L)||null}(ce),function Me(L,P){return(it(P)?P.asyncValidators:L)||null}($,ce)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(P),this._setUpdateStrategy(ce),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),it(ce)&&(ce.nonNullable||ce.initialValueIsDefault)&&(this.defaultValue=mi(P)?P.value:P)}setValue(P,ce={}){this.value=this._pendingValue=P,this._onChange.length&&!1!==ce.emitModelToViewChange&&this._onChange.forEach($=>$(this.value,!1!==ce.emitViewToModelChange)),this.updateValueAndValidity(ce)}patchValue(P,ce={}){this.setValue(P,ce)}reset(P=this.defaultValue,ce={}){this._applyFormState(P),this.markAsPristine(ce),this.markAsUntouched(ce),this.setValue(this.value,ce),this._pendingChange=!1}_updateValue(){}_anyControls(P){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(P){this._onChange.push(P)}_unregisterOnChange(P){Pi(this._onChange,P)}registerOnDisabledChange(P){this._onDisabledChange.push(P)}_unregisterOnDisabledChange(P){Pi(this._onDisabledChange,P)}_forEachChild(P){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(P){mi(P)?(this.value=this._pendingValue=P.value,P.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=P}},ps={provide:Ot,useExisting:(0,g.Rfq)(()=>or)},si=Promise.resolve();let or=(()=>{var L;class P extends Ot{constructor($,Ce,rn,On,rr,Ji){super(),this._changeDetectorRef=rr,this.callSetDisabledState=Ji,this.control=new $i,this._registered=!1,this.name="",this.update=new g.bkB,this._parent=$,this._setValidators(Ce),this._setAsyncValidators(rn),this.valueAccessor=function Hn(L,P){if(!P)return null;let ce,$,Ce;return Array.isArray(P),P.forEach(rn=>{rn.constructor===vt?ce=rn:function Pn(L){return Object.getPrototypeOf(L.constructor)===Ve}(rn)?$=rn:Ce=rn}),Ce||$||ce||null}(0,On)}ngOnChanges($){if(this._checkForErrors(),!this._registered||"name"in $){if(this._registered&&(this._checkName(),this.formDirective)){const Ce=$.name.previousValue;this.formDirective.removeControl({name:Ce,path:this._getPath(Ce)})}this._setUpControl()}"isDisabled"in $&&this._updateDisabled($),function cn(L,P){if(!L.hasOwnProperty("model"))return!1;const ce=L.model;return!!ce.isFirstChange()||!Object.is(P,ce.currentValue)}($,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate($){this.viewModel=$,this.update.emit($)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){Li(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue($){si.then(()=>{var Ce;this.control.setValue($,{emitViewToModelChange:!1}),null===(Ce=this._changeDetectorRef)||void 0===Ce||Ce.markForCheck()})}_updateDisabled($){const Ce=$.isDisabled.currentValue,rn=0!==Ce&&(0,g.L39)(Ce);si.then(()=>{var On;rn&&!this.control.disabled?this.control.disable():!rn&&this.control.disabled&&this.control.enable(),null===(On=this._changeDetectorRef)||void 0===On||On.markForCheck()})}_getPath($){return this._parent?function pi(L,P){return[...P.path,L]}($,this._parent):[$]}}return(L=P).\u0275fac=function($){return new($||L)(g.rXU(yt,9),g.rXU(Ke,10),g.rXU(Ct,10),g.rXU(Ye,10),g.rXU(g.gRc,8),g.rXU(Ei,8))},L.\u0275dir=g.FsC({type:L,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[g.Mj6.None,"disabled","isDisabled"],model:[g.Mj6.None,"ngModel","model"],options:[g.Mj6.None,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[g.Jv_([ps]),g.Vt3,g.OA$]}),P})();function nr(L){return"number"==typeof L?L:parseFloat(L)}let li=(()=>{var L;class P{constructor(){this._validator=z}ngOnChanges($){if(this.inputName in $){const Ce=this.normalizeInput($[this.inputName].currentValue);this._enabled=this.enabled(Ce),this._validator=this._enabled?this.createValidator(Ce):z,this._onChange&&this._onChange()}}validate($){return this._validator($)}registerOnValidatorChange($){this._onChange=$}enabled($){return null!=$}}return(L=P).\u0275fac=function($){return new($||L)},L.\u0275dir=g.FsC({type:L,features:[g.OA$]}),P})();const vi={provide:Ke,useExisting:(0,g.Rfq)(()=>ci),multi:!0};let ci=(()=>{var L;class P extends li{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=$=>nr($),this.createValidator=$=>function Lt(L){return P=>{if(Re(P.value)||Re(L))return null;const ce=parseFloat(P.value);return!isNaN(ce)&&ce>L?{max:{max:L,actual:P.value}}:null}}($)}}return(L=P).\u0275fac=(()=>{let ce;return function(Ce){return(ce||(ce=g.xGo(L)))(Ce||L)}})(),L.\u0275dir=g.FsC({type:L,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function($,Ce){2&$&&g.BMQ("max",Ce._enabled?Ce.max:null)},inputs:{max:"max"},features:[g.Jv_([vi]),g.Vt3]}),P})();const no={provide:Ke,useExisting:(0,g.Rfq)(()=>Go),multi:!0};let Go=(()=>{var L;class P extends li{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=$=>nr($),this.createValidator=$=>function Tt(L){return P=>{if(Re(P.value)||Re(L))return null;const ce=parseFloat(P.value);return!isNaN(ce)&&ce{let ce;return function(Ce){return(ce||(ce=g.xGo(L)))(Ce||L)}})(),L.\u0275dir=g.FsC({type:L,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function($,Ce){2&$&&g.BMQ("min",Ce._enabled?Ce.min:null)},inputs:{min:"min"},features:[g.Jv_([no]),g.Vt3]}),P})(),ms=(()=>{var L;class P{}return(L=P).\u0275fac=function($){return new($||L)},L.\u0275mod=g.$C({type:L}),L.\u0275inj=g.G2t({}),P})(),da=(()=>{var L;class P{static withConfig($){var Ce;return{ngModule:P,providers:[{provide:Ei,useValue:null!==(Ce=$.callSetDisabledState)&&void 0!==Ce?Ce:ii}]}}}return(L=P).\u0275fac=function($){return new($||L)},L.\u0275mod=g.$C({type:L}),L.\u0275inj=g.G2t({imports:[ms]}),P})()},345:(En,bt,B)=>{"use strict";B.d(bt,{Bb:()=>er,hE:()=>Yn,sG:()=>vn});var g=B(4438),d=B(177);class ge extends d.VF{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class Oe extends ge{static makeCurrent(){(0,d.ZD)(new Oe)}onAndCancel(He,dt,Xe){return He.addEventListener(dt,Xe),()=>{He.removeEventListener(dt,Xe)}}dispatchEvent(He,dt){He.dispatchEvent(dt)}remove(He){He.parentNode&&He.parentNode.removeChild(He)}createElement(He,dt){return(dt=dt||this.getDefaultDocument()).createElement(He)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(He){return He.nodeType===Node.ELEMENT_NODE}isShadowRoot(He){return He instanceof DocumentFragment}getGlobalEventTarget(He,dt){return"window"===dt?window:"document"===dt?He:"body"===dt?He.body:null}getBaseHref(He){const dt=function Ie(){return Q=Q||document.querySelector("base"),Q?Q.getAttribute("href"):null}();return null==dt?null:function ne(oe){return new URL(oe,document.baseURI).pathname}(dt)}resetBaseElement(){Q=null}getUserAgent(){return window.navigator.userAgent}getCookie(He){return(0,d._b)(document.cookie,He)}}let Q=null,tt=(()=>{var oe;class He{build(){return new XMLHttpRequest}}return(oe=He).\u0275fac=function(Xe){return new(Xe||oe)},oe.\u0275prov=g.jDH({token:oe,factory:oe.\u0275fac}),He})();const Te=new g.nKC("");let _e=(()=>{var oe;class He{constructor(Xe,re){this._zone=re,this._eventNameToPlugin=new Map,Xe.forEach(de=>{de.manager=this}),this._plugins=Xe.slice().reverse()}addEventListener(Xe,re,de){return this._findPluginFor(re).addEventListener(Xe,re,de)}getZone(){return this._zone}_findPluginFor(Xe){let re=this._eventNameToPlugin.get(Xe);if(re)return re;if(re=this._plugins.find(Me=>Me.supports(Xe)),!re)throw new g.wOt(5101,!1);return this._eventNameToPlugin.set(Xe,re),re}}return(oe=He).\u0275fac=function(Xe){return new(Xe||oe)(g.KVO(Te),g.KVO(g.SKi))},oe.\u0275prov=g.jDH({token:oe,factory:oe.\u0275fac}),He})();class Fe{constructor(He){this._doc=He}}const Ue="ng-app-id";let Ve=(()=>{var oe;class He{constructor(Xe,re,de,Me={}){this.doc=Xe,this.appId=re,this.nonce=de,this.platformId=Me,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=(0,d.Vy)(Me),this.resetHostNodes()}addStyles(Xe){for(const re of Xe)1===this.changeUsageCount(re,1)&&this.onStyleAdded(re)}removeStyles(Xe){for(const re of Xe)this.changeUsageCount(re,-1)<=0&&this.onStyleRemoved(re)}ngOnDestroy(){const Xe=this.styleNodesInDOM;Xe&&(Xe.forEach(re=>re.remove()),Xe.clear());for(const re of this.getAllStyles())this.onStyleRemoved(re);this.resetHostNodes()}addHost(Xe){this.hostNodes.add(Xe);for(const re of this.getAllStyles())this.addStyleToHost(Xe,re)}removeHost(Xe){this.hostNodes.delete(Xe)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(Xe){for(const re of this.hostNodes)this.addStyleToHost(re,Xe)}onStyleRemoved(Xe){var re;const de=this.styleRef;null===(re=de.get(Xe))||void 0===re||null===(re=re.elements)||void 0===re||re.forEach(Me=>Me.remove()),de.delete(Xe)}collectServerRenderedStyles(){var Xe;const re=null===(Xe=this.doc.head)||void 0===Xe?void 0:Xe.querySelectorAll(`style[${Ue}="${this.appId}"]`);if(null!=re&&re.length){const de=new Map;return re.forEach(Me=>{null!=Me.textContent&&de.set(Me.textContent,Me)}),de}return null}changeUsageCount(Xe,re){const de=this.styleRef;if(de.has(Xe)){const Me=de.get(Xe);return Me.usage+=re,Me.usage}return de.set(Xe,{usage:re,elements:[]}),re}getStyleElement(Xe,re){const de=this.styleNodesInDOM,Me=null==de?void 0:de.get(re);if((null==Me?void 0:Me.parentNode)===Xe)return de.delete(re),Me.removeAttribute(Ue),Me;{const Et=this.doc.createElement("style");return this.nonce&&Et.setAttribute("nonce",this.nonce),Et.textContent=re,this.platformIsServer&&Et.setAttribute(Ue,this.appId),Xe.appendChild(Et),Et}}addStyleToHost(Xe,re){var de;const Me=this.getStyleElement(Xe,re),Et=this.styleRef,it=null===(de=Et.get(re))||void 0===de?void 0:de.elements;it?it.push(Me):Et.set(re,{elements:[Me],usage:1})}resetHostNodes(){const Xe=this.hostNodes;Xe.clear(),Xe.add(this.doc.head)}}return(oe=He).\u0275fac=function(Xe){return new(Xe||oe)(g.KVO(d.qQ),g.KVO(g.sZ2),g.KVO(g.BIS,8),g.KVO(g.Agw))},oe.\u0275prov=g.jDH({token:oe,factory:oe.\u0275fac}),He})();const Ye={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},gt=/%COMP%/g,vt=new g.nKC("",{providedIn:"root",factory:()=>!0});function Ke(oe,He){return He.map(dt=>dt.replace(gt,oe))}let Ct=(()=>{var oe;class He{constructor(Xe,re,de,Me,Et,it,hn,Mn=null){this.eventManager=Xe,this.sharedStylesHost=re,this.appId=de,this.removeStylesOnCompDestroy=Me,this.doc=Et,this.platformId=it,this.ngZone=hn,this.nonce=Mn,this.rendererByCompId=new Map,this.platformIsServer=(0,d.Vy)(it),this.defaultRenderer=new kt(Xe,Et,hn,this.platformIsServer)}createRenderer(Xe,re){if(!Xe||!re)return this.defaultRenderer;this.platformIsServer&&re.encapsulation===g.gXe.ShadowDom&&(re={...re,encapsulation:g.gXe.Emulated});const de=this.getOrCreateRenderer(Xe,re);return de instanceof Be?de.applyToHost(Xe):de instanceof Dt&&de.applyStyles(),de}getOrCreateRenderer(Xe,re){const de=this.rendererByCompId;let Me=de.get(re.id);if(!Me){const Et=this.doc,it=this.ngZone,hn=this.eventManager,Mn=this.sharedStylesHost,Kn=this.removeStylesOnCompDestroy,gr=this.platformIsServer;switch(re.encapsulation){case g.gXe.Emulated:Me=new Be(hn,Mn,re,this.appId,Kn,Et,it,gr);break;case g.gXe.ShadowDom:return new en(hn,Mn,Xe,re,Et,it,this.nonce,gr);default:Me=new Dt(hn,Mn,re,Kn,Et,it,gr)}de.set(re.id,Me)}return Me}ngOnDestroy(){this.rendererByCompId.clear()}}return(oe=He).\u0275fac=function(Xe){return new(Xe||oe)(g.KVO(_e),g.KVO(Ve),g.KVO(g.sZ2),g.KVO(vt),g.KVO(d.qQ),g.KVO(g.Agw),g.KVO(g.SKi),g.KVO(g.BIS))},oe.\u0275prov=g.jDH({token:oe,factory:oe.\u0275fac}),He})();class kt{constructor(He,dt,Xe,re){this.eventManager=He,this.doc=dt,this.ngZone=Xe,this.platformIsServer=re,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(He,dt){return dt?this.doc.createElementNS(Ye[dt]||dt,He):this.doc.createElement(He)}createComment(He){return this.doc.createComment(He)}createText(He){return this.doc.createTextNode(He)}appendChild(He,dt){(Lt(He)?He.content:He).appendChild(dt)}insertBefore(He,dt,Xe){He&&(Lt(He)?He.content:He).insertBefore(dt,Xe)}removeChild(He,dt){He&&He.removeChild(dt)}selectRootElement(He,dt){let Xe="string"==typeof He?this.doc.querySelector(He):He;if(!Xe)throw new g.wOt(-5104,!1);return dt||(Xe.textContent=""),Xe}parentNode(He){return He.parentNode}nextSibling(He){return He.nextSibling}setAttribute(He,dt,Xe,re){if(re){dt=re+":"+dt;const de=Ye[re];de?He.setAttributeNS(de,dt,Xe):He.setAttribute(dt,Xe)}else He.setAttribute(dt,Xe)}removeAttribute(He,dt,Xe){if(Xe){const re=Ye[Xe];re?He.removeAttributeNS(re,dt):He.removeAttribute(`${Xe}:${dt}`)}else He.removeAttribute(dt)}addClass(He,dt){He.classList.add(dt)}removeClass(He,dt){He.classList.remove(dt)}setStyle(He,dt,Xe,re){re&(g.czy.DashCase|g.czy.Important)?He.style.setProperty(dt,Xe,re&g.czy.Important?"important":""):He.style[dt]=Xe}removeStyle(He,dt,Xe){Xe&g.czy.DashCase?He.style.removeProperty(dt):He.style[dt]=""}setProperty(He,dt,Xe){null!=He&&(He[dt]=Xe)}setValue(He,dt){He.nodeValue=dt}listen(He,dt,Xe){if("string"==typeof He&&!(He=(0,d.QT)().getGlobalEventTarget(this.doc,He)))throw new Error(`Unsupported event target ${He} for event ${dt}`);return this.eventManager.addEventListener(He,dt,this.decoratePreventDefault(Xe))}decoratePreventDefault(He){return dt=>{if("__ngUnwrap__"===dt)return He;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>He(dt)):He(dt))&&dt.preventDefault()}}}function Lt(oe){return"TEMPLATE"===oe.tagName&&void 0!==oe.content}class en extends kt{constructor(He,dt,Xe,re,de,Me,Et,it){super(He,de,Me,it),this.sharedStylesHost=dt,this.hostEl=Xe,this.shadowRoot=Xe.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const hn=Ke(re.id,re.styles);for(const Mn of hn){const Kn=document.createElement("style");Et&&Kn.setAttribute("nonce",Et),Kn.textContent=Mn,this.shadowRoot.appendChild(Kn)}}nodeOrShadowRoot(He){return He===this.hostEl?this.shadowRoot:He}appendChild(He,dt){return super.appendChild(this.nodeOrShadowRoot(He),dt)}insertBefore(He,dt,Xe){return super.insertBefore(this.nodeOrShadowRoot(He),dt,Xe)}removeChild(He,dt){return super.removeChild(this.nodeOrShadowRoot(He),dt)}parentNode(He){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(He)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class Dt extends kt{constructor(He,dt,Xe,re,de,Me,Et,it){super(He,de,Me,Et),this.sharedStylesHost=dt,this.removeStylesOnCompDestroy=re,this.styles=it?Ke(it,Xe.styles):Xe.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class Be extends Dt{constructor(He,dt,Xe,re,de,Me,Et,it){const hn=re+"-"+Xe.id;super(He,dt,Xe,de,Me,Et,it,hn),this.contentAttr=function Re(oe){return"_ngcontent-%COMP%".replace(gt,oe)}(hn),this.hostAttr=function je(oe){return"_nghost-%COMP%".replace(gt,oe)}(hn)}applyToHost(He){this.applyStyles(),this.setAttribute(He,this.hostAttr,"")}createElement(He,dt){const Xe=super.createElement(He,dt);return super.setAttribute(Xe,this.contentAttr,""),Xe}}let Pt=(()=>{var oe;class He extends Fe{constructor(Xe){super(Xe)}supports(Xe){return!0}addEventListener(Xe,re,de){return Xe.addEventListener(re,de,!1),()=>this.removeEventListener(Xe,re,de)}removeEventListener(Xe,re,de){return Xe.removeEventListener(re,de)}}return(oe=He).\u0275fac=function(Xe){return new(Xe||oe)(g.KVO(d.qQ))},oe.\u0275prov=g.jDH({token:oe,factory:oe.\u0275fac}),He})();const rt=["alt","control","meta","shift"],Pe={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},z={alt:oe=>oe.altKey,control:oe=>oe.ctrlKey,meta:oe=>oe.metaKey,shift:oe=>oe.shiftKey};let q=(()=>{var oe;class He extends Fe{constructor(Xe){super(Xe)}supports(Xe){return null!=He.parseEventName(Xe)}addEventListener(Xe,re,de){const Me=He.parseEventName(re),Et=He.eventCallback(Me.fullKey,de,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,d.QT)().onAndCancel(Xe,Me.domEventName,Et))}static parseEventName(Xe){const re=Xe.toLowerCase().split("."),de=re.shift();if(0===re.length||"keydown"!==de&&"keyup"!==de)return null;const Me=He._normalizeKey(re.pop());let Et="",it=re.indexOf("code");if(it>-1&&(re.splice(it,1),Et="code."),rt.forEach(Mn=>{const Kn=re.indexOf(Mn);Kn>-1&&(re.splice(Kn,1),Et+=Mn+".")}),Et+=Me,0!=re.length||0===Me.length)return null;const hn={};return hn.domEventName=de,hn.fullKey=Et,hn}static matchEventFullKeyCode(Xe,re){let de=Pe[Xe.key]||Xe.key,Me="";return re.indexOf("code.")>-1&&(de=Xe.code,Me="code."),!(null==de||!de)&&(de=de.toLowerCase()," "===de?de="space":"."===de&&(de="dot"),rt.forEach(Et=>{Et!==de&&(0,z[Et])(Xe)&&(Me+=Et+".")}),Me+=de,Me===re)}static eventCallback(Xe,re,de){return Me=>{He.matchEventFullKeyCode(Me,Xe)&&de.runGuarded(()=>re(Me))}}static _normalizeKey(Xe){return"esc"===Xe?"escape":Xe}}return(oe=He).\u0275fac=function(Xe){return new(Xe||oe)(g.KVO(d.qQ))},oe.\u0275prov=g.jDH({token:oe,factory:oe.\u0275fac}),He})();const vn=(0,g.oH4)(g.fpN,"browser",[{provide:g.Agw,useValue:d.AJ},{provide:g.PLl,useValue:function Ae(){Oe.makeCurrent()},multi:!0},{provide:d.qQ,useFactory:function Vt(){return(0,g.TL$)(document),document},deps:[]}]),bn=new g.nKC(""),$n=[{provide:g.e01,useClass:class Qe{addToWindow(He){g.JZv.getAngularTestability=(Xe,re=!0)=>{const de=He.findTestabilityInTree(Xe,re);if(null==de)throw new g.wOt(5103,!1);return de},g.JZv.getAllAngularTestabilities=()=>He.getAllTestabilities(),g.JZv.getAllAngularRootElements=()=>He.getAllRootElements(),g.JZv.frameworkStabilizers||(g.JZv.frameworkStabilizers=[]),g.JZv.frameworkStabilizers.push(Xe=>{const re=g.JZv.getAllAngularTestabilities();let de=re.length;const Me=function(){de--,0==de&&Xe()};re.forEach(Et=>{Et.whenStable(Me)})})}findTestabilityInTree(He,dt,Xe){if(null==dt)return null;const re=He.getTestability(dt);return null!=re?re:Xe?(0,d.QT)().isShadowRoot(dt)?this.findTestabilityInTree(He,dt.host,!0):this.findTestabilityInTree(He,dt.parentElement,!0):null}},deps:[]},{provide:g.WHO,useClass:g.NYb,deps:[g.SKi,g.giA,g.e01]},{provide:g.NYb,useClass:g.NYb,deps:[g.SKi,g.giA,g.e01]}],qn=[{provide:g.H8p,useValue:"root"},{provide:g.zcH,useFactory:function ut(){return new g.zcH},deps:[]},{provide:Te,useClass:Pt,multi:!0,deps:[d.qQ,g.SKi,g.Agw]},{provide:Te,useClass:q,multi:!0,deps:[d.qQ]},Ct,Ve,_e,{provide:g._9s,useExisting:Ct},{provide:d.N0,useClass:tt,deps:[]},[]];let er=(()=>{var oe;class He{constructor(Xe){}static withServerTransition(Xe){return{ngModule:He,providers:[{provide:g.sZ2,useValue:Xe.appId}]}}}return(oe=He).\u0275fac=function(Xe){return new(Xe||oe)(g.KVO(bn,12))},oe.\u0275mod=g.$C({type:oe}),oe.\u0275inj=g.G2t({providers:[...qn,...$n],imports:[d.MD,g.Hbi]}),He})(),Yn=(()=>{var oe;class He{constructor(Xe){this._doc=Xe}getTitle(){return this._doc.title}setTitle(Xe){this._doc.title=Xe||""}}return(oe=He).\u0275fac=function(Xe){return new(Xe||oe)(g.KVO(d.qQ))},oe.\u0275prov=g.jDH({token:oe,factory:oe.\u0275fac,providedIn:"root"}),He})()},845:(En,bt,B)=>{"use strict";B.d(bt,{nX:()=>te,Zp:()=>S,Z:()=>mi,Xk:()=>yn,Kp:()=>Ua,b:()=>Yr,Ix:()=>ki,Wk:()=>Uo,iI:()=>Mu,Sd:()=>Qr});var g=B(467),d=B(4438),ge=B(1985),Oe=B(8071),Ie=B(8455),ne=B(7673),Qe=B(4412),tt=B(4572);const _e=(0,B(1853).L)(I=>function(){I(this),this.name="EmptyError",this.message="no elements in sequence"});var Fe=B(1397),Ue=B(3669);function Ve(I=1/0){return(0,Fe.Z)(Ue.D,I)}var gt=B(3794);function ct(...I){return function Ye(){return Ve(1)}()((0,Ie.H)(I,(0,gt.lI)(I)))}var at=B(8750);function Mt(I){return new ge.c(T=>{(0,at.Tg)(I()).subscribe(T)})}var mt=B(1203);function vt(I,T){const R=(0,Oe.T)(I)?I:()=>I,C=x=>x.error(R());return new ge.c(T?x=>T.schedule(C,0,x):C)}var Re=B(983),je=B(8359),Ke=B(9974),Ct=B(4360);function kt(){return(0,Ke.N)((I,T)=>{let R=null;I._refCount++;const C=(0,Ct._)(T,void 0,void 0,void 0,()=>{if(!I||I._refCount<=0||0<--I._refCount)return void(R=null);const x=I._connection,J=R;R=null,x&&(!J||x===J)&&x.unsubscribe(),T.unsubscribe()});I.subscribe(C),C.closed||(R=I.connect())})}class ze extends ge.c{constructor(T,R){super(),this.source=T,this.subjectFactory=R,this._subject=null,this._refCount=0,this._connection=null,(0,Ke.S)(T)&&(this.lift=T.lift)}_subscribe(T){return this.getSubject().subscribe(T)}getSubject(){const T=this._subject;return(!T||T.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:T}=this;this._subject=this._connection=null,null==T||T.unsubscribe()}connect(){let T=this._connection;if(!T){T=this._connection=new je.yU;const R=this.getSubject();T.add(this.source.subscribe((0,Ct._)(R,void 0,()=>{this._teardown(),R.complete()},C=>{this._teardown(),R.error(C)},()=>this._teardown()))),T.closed&&(this._connection=null,T=je.yU.EMPTY)}return T}refCount(){return kt()(this)}}var Tt=B(1413),Lt=B(177),en=B(6354),Dt=B(5558),Be=B(6697),rt=B(5964);function Pe(I){return(0,Ke.N)((T,R)=>{let C=!1;T.subscribe((0,Ct._)(R,x=>{C=!0,R.next(x)},()=>{C||R.next(I),R.complete()}))})}function z(I=q){return(0,Ke.N)((T,R)=>{let C=!1;T.subscribe((0,Ct._)(R,x=>{C=!0,R.next(x)},()=>C?R.complete():R.error(I())))})}function q(){return new _e}function ie(I,T){const R=arguments.length>=2;return C=>C.pipe(I?(0,rt.p)((x,J)=>I(x,J,C)):Ue.D,(0,Be.s)(1),R?Pe(T):z(()=>new _e))}function he(I,T){return(0,Oe.T)(T)?(0,Fe.Z)(I,T,1):(0,Fe.Z)(I,1)}var ae=B(8141);function me(I){return(0,Ke.N)((T,R)=>{let J,C=null,x=!1;C=T.subscribe((0,Ct._)(R,void 0,void 0,ve=>{J=(0,at.Tg)(I(ve,me(I)(T))),C?(C.unsubscribe(),C=null,J.subscribe(R)):x=!0})),x&&(C.unsubscribe(),C=null,J.subscribe(R))})}function Vt(I){return I<=0?()=>Re.w:(0,Ke.N)((T,R)=>{let C=[];T.subscribe((0,Ct._)(R,x=>{C.push(x),I{for(const x of C)R.next(x);R.complete()},void 0,()=>{C=null}))})}function bn(I){return(0,Ke.N)((T,R)=>{try{T.subscribe(R)}finally{R.add(I)}})}var $n=B(5343),er=B(345);const yn="primary",ir=Symbol("RouteTitle");class Yn{constructor(T){this.params=T||{}}has(T){return Object.prototype.hasOwnProperty.call(this.params,T)}get(T){if(this.has(T)){const R=this.params[T];return Array.isArray(R)?R[0]:R}return null}getAll(T){if(this.has(T)){const R=this.params[T];return Array.isArray(R)?R:[R]}return[]}get keys(){return Object.keys(this.params)}}function Le(I){return new Yn(I)}function yt(I,T,R){const C=R.path.split("/");if(C.length>I.length||"full"===R.pathMatch&&(T.hasChildren()||C.lengthC[J]===x)}return I===T}function gn(I){return I.length>0?I[I.length-1]:null}function mn(I){return function Q(I){return!!I&&(I instanceof ge.c||(0,Oe.T)(I.lift)&&(0,Oe.T)(I.subscribe))}(I)?I:(0,d.jNT)(I)?(0,Ie.H)(Promise.resolve(I)):(0,ne.of)(I)}const Jt={exact:function Or(I,T,R){if(!Ir(I.segments,T.segments)||!ni(I.segments,T.segments,R)||I.numberOfChildren!==T.numberOfChildren)return!1;for(const C in T.children)if(!I.children[C]||!Or(I.children[C],T.children[C],R))return!1;return!0},subset:_r},Wt={exact:function wr(I,T){return Qt(I,T)},subset:function Mr(I,T){return Object.keys(T).length<=Object.keys(I).length&&Object.keys(T).every(R=>Ar(I[R],T[R]))},ignored:()=>!0};function pr(I,T,R){return Jt[R.paths](I.root,T.root,R.matrixParams)&&Wt[R.queryParams](I.queryParams,T.queryParams)&&!("exact"===R.fragment&&I.fragment!==T.fragment)}function _r(I,T,R){return Bn(I,T,T.segments,R)}function Bn(I,T,R,C){if(I.segments.length>R.length){const x=I.segments.slice(0,R.length);return!(!Ir(x,R)||T.hasChildren()||!ni(x,R,C))}if(I.segments.length===R.length){if(!Ir(I.segments,R)||!ni(I.segments,R,C))return!1;for(const x in T.children)if(!I.children[x]||!_r(I.children[x],T.children[x],C))return!1;return!0}{const x=R.slice(0,I.segments.length),J=R.slice(I.segments.length);return!!(Ir(I.segments,x)&&ni(I.segments,x,C)&&I.children[yn])&&Bn(I.children[yn],T,J,C)}}function ni(I,T,R){return T.every((C,x)=>Wt[R](I[x].parameters,C.parameters))}class Zn{constructor(T=new Rn([],{}),R={},C=null){this.root=T,this.queryParams=R,this.fragment=C}get queryParamMap(){var T;return null!==(T=this._queryParamMap)&&void 0!==T||(this._queryParamMap=Le(this.queryParams)),this._queryParamMap}toString(){return oe.serialize(this)}}class Rn{constructor(T,R){this.segments=T,this.children=R,this.parent=null,Object.values(R).forEach(C=>C.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return He(this)}}class Sr{constructor(T,R){this.path=T,this.parameters=R}get parameterMap(){var T;return null!==(T=this._parameterMap)&&void 0!==T||(this._parameterMap=Le(this.parameters)),this._parameterMap}toString(){return hn(this)}}function Ir(I,T){return I.length===T.length&&I.every((R,C)=>R.path===T[C].path)}let Qr=(()=>{var I;class T{}return(I=T).\u0275fac=function(C){return new(C||I)},I.\u0275prov=d.jDH({token:I,factory:()=>new Jr,providedIn:"root"}),T})();class Jr{parse(T){const R=new pi(T);return new Zn(R.parseRootSegment(),R.parseQueryParams(),R.parseFragment())}serialize(T){const R=`/${dt(T.root,!0)}`,C=function Kn(I){const T=Object.entries(I).map(([R,C])=>Array.isArray(C)?C.map(x=>`${re(R)}=${re(x)}`).join("&"):`${re(R)}=${re(C)}`).filter(R=>R);return T.length?`?${T.join("&")}`:""}(T.queryParams);return`${R}${C}${"string"==typeof T.fragment?`#${function de(I){return encodeURI(I)}(T.fragment)}`:""}`}}const oe=new Jr;function He(I){return I.segments.map(T=>hn(T)).join("/")}function dt(I,T){if(!I.hasChildren())return He(I);if(T){const R=I.children[yn]?dt(I.children[yn],!1):"",C=[];return Object.entries(I.children).forEach(([x,J])=>{x!==yn&&C.push(`${x}:${dt(J,!1)}`)}),C.length>0?`${R}(${C.join("//")})`:R}{const R=function Ri(I,T){let R=[];return Object.entries(I.children).forEach(([C,x])=>{C===yn&&(R=R.concat(T(x,C)))}),Object.entries(I.children).forEach(([C,x])=>{C!==yn&&(R=R.concat(T(x,C)))}),R}(I,(C,x)=>x===yn?[dt(I.children[yn],!1)]:[`${x}:${dt(C,!1)}`]);return 1===Object.keys(I.children).length&&null!=I.children[yn]?`${He(I)}/${R[0]}`:`${He(I)}/(${R.join("//")})`}}function Xe(I){return encodeURIComponent(I).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function re(I){return Xe(I).replace(/%3B/gi,";")}function Me(I){return Xe(I).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Et(I){return decodeURIComponent(I)}function it(I){return Et(I.replace(/\+/g,"%20"))}function hn(I){return`${Me(I.path)}${function Mn(I){return Object.entries(I).map(([T,R])=>`;${Me(T)}=${Me(R)}`).join("")}(I.parameters)}`}const gr=/^[^\/()?;#]+/;function ur(I){const T=I.match(gr);return T?T[0]:""}const ri=/^[^\/()?;=#]+/,wn=/^[^=?&#]+/,Ei=/^[^&#]+/;class pi{constructor(T){this.url=T,this.remaining=T}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Rn([],{}):new Rn([],this.parseChildren())}parseQueryParams(){const T={};if(this.consumeOptional("?"))do{this.parseQueryParam(T)}while(this.consumeOptional("&"));return T}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const T=[];for(this.peekStartsWith("(")||T.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),T.push(this.parseSegment());let R={};this.peekStartsWith("/(")&&(this.capture("/"),R=this.parseParens(!0));let C={};return this.peekStartsWith("(")&&(C=this.parseParens(!1)),(T.length>0||Object.keys(R).length>0)&&(C[yn]=new Rn(T,R)),C}parseSegment(){const T=ur(this.remaining);if(""===T&&this.peekStartsWith(";"))throw new d.wOt(4009,!1);return this.capture(T),new Sr(Et(T),this.parseMatrixParams())}parseMatrixParams(){const T={};for(;this.consumeOptional(";");)this.parseParam(T);return T}parseParam(T){const R=function xn(I){const T=I.match(ri);return T?T[0]:""}(this.remaining);if(!R)return;this.capture(R);let C="";if(this.consumeOptional("=")){const x=ur(this.remaining);x&&(C=x,this.capture(C))}T[Et(R)]=Et(C)}parseQueryParam(T){const R=function yr(I){const T=I.match(wn);return T?T[0]:""}(this.remaining);if(!R)return;this.capture(R);let C="";if(this.consumeOptional("=")){const ve=function ii(I){const T=I.match(Ei);return T?T[0]:""}(this.remaining);ve&&(C=ve,this.capture(C))}const x=it(R),J=it(C);if(T.hasOwnProperty(x)){let ve=T[x];Array.isArray(ve)||(ve=[ve],T[x]=ve),ve.push(J)}else T[x]=J}parseParens(T){const R={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const C=ur(this.remaining),x=this.remaining[C.length];if("/"!==x&&")"!==x&&";"!==x)throw new d.wOt(4010,!1);let J;C.indexOf(":")>-1?(J=C.slice(0,C.indexOf(":")),this.capture(J),this.capture(":")):T&&(J=yn);const ve=this.parseChildren();R[J]=1===Object.keys(ve).length?ve[yn]:new Rn([],ve),this.consumeOptional("//")}return R}peekStartsWith(T){return this.remaining.startsWith(T)}consumeOptional(T){return!!this.peekStartsWith(T)&&(this.remaining=this.remaining.substring(T.length),!0)}capture(T){if(!this.consumeOptional(T))throw new d.wOt(4011,!1)}}function Li(I){return I.segments.length>0?new Rn([],{[yn]:I}):I}function lr(I){const T={};for(const[C,x]of Object.entries(I.children)){const J=lr(x);if(C===yn&&0===J.segments.length&&J.hasChildren())for(const[ve,ht]of Object.entries(J.children))T[ve]=ht;else(J.segments.length>0||J.hasChildren())&&(T[C]=J)}return function Xi(I){if(1===I.numberOfChildren&&I.children[yn]){const T=I.children[yn];return new Rn(I.segments.concat(T.segments),T.children)}return I}(new Rn(I.segments,T))}function wi(I){return I instanceof Zn}function St(I){var T;let R;const J=Li(function C(ve){const ht={};for(const At of ve.children){const Tn=C(At);ht[At.outlet]=Tn}const Yt=new Rn(ve.url,ht);return ve===I&&(R=Yt),Yt}(I.root));return null!==(T=R)&&void 0!==T?T:J}function lt(I,T,R,C){let x=I;for(;x.parent;)x=x.parent;if(0===T.length)return Wn(x,x,x,R,C);const J=function Ne(I){if("string"==typeof I[0]&&1===I.length&&"/"===I[0])return new Z(!0,0,I);let T=0,R=!1;const C=I.reduce((x,J,ve)=>{if("object"==typeof J&&null!=J){if(J.outlets){const ht={};return Object.entries(J.outlets).forEach(([Yt,At])=>{ht[Yt]="string"==typeof At?At.split("/"):At}),[...x,{outlets:ht}]}if(J.segmentPath)return[...x,J.segmentPath]}return"string"!=typeof J?[...x,J]:0===ve?(J.split("/").forEach((ht,Yt)=>{0==Yt&&"."===ht||(0==Yt&&""===ht?R=!0:".."===ht?T++:""!=ht&&x.push(ht))}),x):[...x,J]},[]);return new Z(R,T,C)}(T);if(J.toRoot())return Wn(x,x,new Rn([],{}),R,C);const ve=function we(I,T,R){if(I.isAbsolute)return new X(T,!0,0);if(!R)return new X(T,!1,NaN);if(null===R.parent)return new X(R,!0,0);const C=$t(I.commands[0])?0:1;return function ot(I,T,R){let C=I,x=T,J=R;for(;J>x;){if(J-=x,C=C.parent,!C)throw new d.wOt(4005,!1);x=C.segments.length}return new X(C,!1,x-J)}(R,R.segments.length-1+C,I.numberOfDoubleDots)}(J,x,I),ht=ve.processChildren?Pn(ve.segmentGroup,ve.index,J.commands):cn(ve.segmentGroup,ve.index,J.commands);return Wn(x,ve.segmentGroup,ht,R,C)}function $t(I){return"object"==typeof I&&null!=I&&!I.outlets&&!I.segmentPath}function fn(I){return"object"==typeof I&&null!=I&&I.outlets}function Wn(I,T,R,C,x){let ve,J={};C&&Object.entries(C).forEach(([Yt,At])=>{J[Yt]=Array.isArray(At)?At.map(Tn=>`${Tn}`):`${At}`}),ve=I===T?R:Y(I,T,R);const ht=Li(lr(ve));return new Zn(ht,J,x)}function Y(I,T,R){const C={};return Object.entries(I.children).forEach(([x,J])=>{C[x]=J===T?R:Y(J,T,R)}),new Rn(I.segments,C)}class Z{constructor(T,R,C){if(this.isAbsolute=T,this.numberOfDoubleDots=R,this.commands=C,T&&C.length>0&&$t(C[0]))throw new d.wOt(4003,!1);const x=C.find(fn);if(x&&x!==gn(C))throw new d.wOt(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class X{constructor(T,R,C){this.segmentGroup=T,this.processChildren=R,this.index=C}}function cn(I,T,R){var C;if(null!==(C=I)&&void 0!==C||(I=new Rn([],{})),0===I.segments.length&&I.hasChildren())return Pn(I,T,R);const x=function Cr(I,T,R){let C=0,x=T;const J={match:!1,pathIndex:0,commandIndex:0};for(;x=R.length)return J;const ve=I.segments[x],ht=R[C];if(fn(ht))break;const Yt=`${ht}`,At=C0&&void 0===Yt)break;if(Yt&&At&&"object"==typeof At&&void 0===At.outlets){if(!Mi(Yt,At,ve))return J;C+=2}else{if(!Mi(Yt,{},ve))return J;C++}x++}return{match:!0,pathIndex:x,commandIndex:C}}(I,T,R),J=R.slice(x.commandIndex);if(x.match&&x.pathIndexJ!==yn)&&I.children[yn]&&1===I.numberOfChildren&&0===I.children[yn].segments.length){const J=Pn(I.children[yn],T,R);return new Rn(I.segments,J.children)}return Object.entries(C).forEach(([J,ve])=>{"string"==typeof ve&&(ve=[ve]),null!==ve&&(x[J]=cn(I.children[J],T,ve))}),Object.entries(I.children).forEach(([J,ve])=>{void 0===C[J]&&(x[J]=ve)}),new Rn(I.segments,x)}}function Hn(I,T,R){const C=I.segments.slice(0,T);let x=0;for(;x{"string"==typeof C&&(C=[C]),null!==C&&(T[R]=Hn(new Rn([],{}),0,C))}),T}function Ai(I){const T={};return Object.entries(I).forEach(([R,C])=>T[R]=`${C}`),T}function Mi(I,T,R){return I==R.path&&Qt(T,R.parameters)}const xr="imperative";var An=function(I){return I[I.NavigationStart=0]="NavigationStart",I[I.NavigationEnd=1]="NavigationEnd",I[I.NavigationCancel=2]="NavigationCancel",I[I.NavigationError=3]="NavigationError",I[I.RoutesRecognized=4]="RoutesRecognized",I[I.ResolveStart=5]="ResolveStart",I[I.ResolveEnd=6]="ResolveEnd",I[I.GuardsCheckStart=7]="GuardsCheckStart",I[I.GuardsCheckEnd=8]="GuardsCheckEnd",I[I.RouteConfigLoadStart=9]="RouteConfigLoadStart",I[I.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",I[I.ChildActivationStart=11]="ChildActivationStart",I[I.ChildActivationEnd=12]="ChildActivationEnd",I[I.ActivationStart=13]="ActivationStart",I[I.ActivationEnd=14]="ActivationEnd",I[I.Scroll=15]="Scroll",I[I.NavigationSkipped=16]="NavigationSkipped",I}(An||{});class Pi{constructor(T,R){this.id=T,this.url=R}}class mi extends Pi{constructor(T,R,C="imperative",x=null){super(T,R),this.type=An.NavigationStart,this.navigationTrigger=C,this.restoredState=x}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class $i extends Pi{constructor(T,R,C){super(T,R),this.urlAfterRedirects=C,this.type=An.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}var ti=function(I){return I[I.Redirect=0]="Redirect",I[I.SupersededByNewNavigation=1]="SupersededByNewNavigation",I[I.NoDataFromResolver=2]="NoDataFromResolver",I[I.GuardRejected=3]="GuardRejected",I}(ti||{}),mr=function(I){return I[I.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",I[I.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",I}(mr||{});class oi extends Pi{constructor(T,R,C,x){super(T,R),this.reason=C,this.code=x,this.type=An.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Nn extends Pi{constructor(T,R,C,x){super(T,R),this.reason=C,this.code=x,this.type=An.NavigationSkipped}}class kn extends Pi{constructor(T,R,C,x){super(T,R),this.error=C,this.target=x,this.type=An.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class ko extends Pi{constructor(T,R,C,x){super(T,R),this.urlAfterRedirects=C,this.state=x,this.type=An.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ei extends Pi{constructor(T,R,C,x){super(T,R),this.urlAfterRedirects=C,this.state=x,this.type=An.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Bi extends Pi{constructor(T,R,C,x,J){super(T,R),this.urlAfterRedirects=C,this.state=x,this.shouldActivate=J,this.type=An.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class is extends Pi{constructor(T,R,C,x){super(T,R),this.urlAfterRedirects=C,this.state=x,this.type=An.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ps extends Pi{constructor(T,R,C,x){super(T,R),this.urlAfterRedirects=C,this.state=x,this.type=An.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class si{constructor(T){this.route=T,this.type=An.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class or{constructor(T){this.route=T,this.type=An.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class kr{constructor(T){this.snapshot=T,this.type=An.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ai{constructor(T){this.snapshot=T,this.type=An.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class jn{constructor(T){this.snapshot=T,this.type=An.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Fo{constructor(T){this.snapshot=T,this.type=An.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Ao{constructor(T,R,C){this.routerEvent=T,this.position=R,this.anchor=C,this.type=An.Scroll}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class Co{}class co{constructor(T){this.url=T}}class xi{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new S,this.attachRef=null}}let S=(()=>{var I;class T{constructor(){this.contexts=new Map}onChildOutletCreated(C,x){const J=this.getOrCreateContext(C);J.outlet=x,this.contexts.set(C,J)}onChildOutletDestroyed(C){const x=this.getContext(C);x&&(x.outlet=null,x.attachRef=null)}onOutletDeactivated(){const C=this.contexts;return this.contexts=new Map,C}onOutletReAttached(C){this.contexts=C}getOrCreateContext(C){let x=this.getContext(C);return x||(x=new xi,this.contexts.set(C,x)),x}getContext(C){return this.contexts.get(C)||null}}return(I=T).\u0275fac=function(C){return new(C||I)},I.\u0275prov=d.jDH({token:I,factory:I.\u0275fac,providedIn:"root"}),T})();class H{constructor(T){this._root=T}get root(){return this._root.value}parent(T){const R=this.pathFromRoot(T);return R.length>1?R[R.length-2]:null}children(T){const R=ue(T,this._root);return R?R.children.map(C=>C.value):[]}firstChild(T){const R=ue(T,this._root);return R&&R.children.length>0?R.children[0].value:null}siblings(T){const R=M(T,this._root);return R.length<2?[]:R[R.length-2].children.map(x=>x.value).filter(x=>x!==T)}pathFromRoot(T){return M(T,this._root).map(R=>R.value)}}function ue(I,T){if(I===T.value)return T;for(const R of T.children){const C=ue(I,R);if(C)return C}return null}function M(I,T){if(I===T.value)return[T];for(const R of T.children){const C=M(I,R);if(C.length)return C.unshift(T),C}return[]}class fe{constructor(T,R){this.value=T,this.children=R}toString(){return`TreeNode(${this.value})`}}function qe(I){const T={};return I&&I.children.forEach(R=>T[R.value.outlet]=R),T}class sr extends H{constructor(T,R){super(T),this.snapshot=R,Je(this,T)}toString(){return this.snapshot.toString()}}function ui(I){const T=function U(I){const J=new ke([],{},{},"",{},yn,I,null,{});return new st("",new fe(J,[]))}(I),R=new Qe.t([new Sr("",{})]),C=new Qe.t({}),x=new Qe.t({}),J=new Qe.t({}),ve=new Qe.t(""),ht=new te(R,C,J,ve,x,yn,I,T.root);return ht.snapshot=T.root,new sr(new fe(ht,[]),T)}class te{constructor(T,R,C,x,J,ve,ht,Yt){var At,Tn;this.urlSubject=T,this.paramsSubject=R,this.queryParamsSubject=C,this.fragmentSubject=x,this.dataSubject=J,this.outlet=ve,this.component=ht,this._futureSnapshot=Yt,this.title=null!==(At=null===(Tn=this.dataSubject)||void 0===Tn?void 0:Tn.pipe((0,en.T)(hr=>hr[ir])))&&void 0!==At?At:(0,ne.of)(void 0),this.url=T,this.params=R,this.queryParams=C,this.fragment=x,this.data=J}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){var T;return null!==(T=this._paramMap)&&void 0!==T||(this._paramMap=this.params.pipe((0,en.T)(R=>Le(R)))),this._paramMap}get queryParamMap(){var T;return null!==(T=this._queryParamMap)&&void 0!==T||(this._queryParamMap=this.queryParams.pipe((0,en.T)(R=>Le(R)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Ee(I,T,R="emptyOnly"){var C;let x;const{routeConfig:J}=I;var ve;return x=null===T||"always"!==R&&""!==(null==J?void 0:J.path)&&(T.component||null!==(C=T.routeConfig)&&void 0!==C&&C.loadComponent)?{params:{...I.params},data:{...I.data},resolve:{...I.data,...null!==(ve=I._resolvedData)&&void 0!==ve?ve:{}}}:{params:{...T.params,...I.params},data:{...T.data,...I.data},resolve:{...I.data,...T.data,...null==J?void 0:J.data,...I._resolvedData}},J&&Zt(J)&&(x.resolve[ir]=J.title),x}class ke{get title(){var T;return null===(T=this.data)||void 0===T?void 0:T[ir]}constructor(T,R,C,x,J,ve,ht,Yt,At){this.url=T,this.params=R,this.queryParams=C,this.fragment=x,this.data=J,this.outlet=ve,this.component=ht,this.routeConfig=Yt,this._resolve=At}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){var T;return null!==(T=this._paramMap)&&void 0!==T||(this._paramMap=Le(this.params)),this._paramMap}get queryParamMap(){var T;return null!==(T=this._queryParamMap)&&void 0!==T||(this._queryParamMap=Le(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(C=>C.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class st extends H{constructor(T,R){super(R),this.url=T,Je(this,R)}toString(){return Ut(this._root)}}function Je(I,T){T.value._routerState=I,T.children.forEach(R=>Je(I,R))}function Ut(I){const T=I.children.length>0?` { ${I.children.map(Ut).join(", ")} } `:"";return`${I.value}${T}`}function Ht(I){if(I.snapshot){const T=I.snapshot,R=I._futureSnapshot;I.snapshot=R,Qt(T.queryParams,R.queryParams)||I.queryParamsSubject.next(R.queryParams),T.fragment!==R.fragment&&I.fragmentSubject.next(R.fragment),Qt(T.params,R.params)||I.paramsSubject.next(R.params),function Ot(I,T){if(I.length!==T.length)return!1;for(let R=0;RQt(R.parameters,T[C].parameters))}(I.url,T.url);return R&&!(!I.parent!=!T.parent)&&(!I.parent||qt(I.parent,T.parent))}function Zt(I){return"string"==typeof I.title||null===I.title}let _n=(()=>{var I;class T{constructor(){this.activated=null,this._activatedRoute=null,this.name=yn,this.activateEvents=new d.bkB,this.deactivateEvents=new d.bkB,this.attachEvents=new d.bkB,this.detachEvents=new d.bkB,this.parentContexts=(0,d.WQX)(S),this.location=(0,d.WQX)(d.c1b),this.changeDetector=(0,d.WQX)(d.gRc),this.environmentInjector=(0,d.WQX)(d.uvJ),this.inputBinder=(0,d.WQX)(Ln,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(C){if(C.name){const{firstChange:x,previousValue:J}=C.name;if(x)return;this.isTrackedInParentContexts(J)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(J)),this.initializeOutletWithName()}}ngOnDestroy(){var C;this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),null===(C=this.inputBinder)||void 0===C||C.unsubscribeFromRouteData(this)}isTrackedInParentContexts(C){var x;return(null===(x=this.parentContexts.getContext(C))||void 0===x?void 0:x.outlet)===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const C=this.parentContexts.getContext(this.name);null!=C&&C.route&&(C.attachRef?this.attach(C.attachRef,C.route):this.activateWith(C.route,C.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new d.wOt(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new d.wOt(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new d.wOt(4012,!1);this.location.detach();const C=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(C.instance),C}attach(C,x){var J;this.activated=C,this._activatedRoute=x,this.location.insert(C.hostView),null===(J=this.inputBinder)||void 0===J||J.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(C.instance)}deactivate(){if(this.activated){const C=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(C)}}activateWith(C,x){var J;if(this.isActivated)throw new d.wOt(4013,!1);this._activatedRoute=C;const ve=this.location,Yt=C.snapshot.component,At=this.parentContexts.getOrCreateContext(this.name).children,Tn=new Cn(C,At,ve.injector);this.activated=ve.createComponent(Yt,{index:ve.length,injector:Tn,environmentInjector:null!=x?x:this.environmentInjector}),this.changeDetector.markForCheck(),null===(J=this.inputBinder)||void 0===J||J.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}}return(I=T).\u0275fac=function(C){return new(C||I)},I.\u0275dir=d.FsC({type:I,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[d.OA$]}),T})();class Cn{__ngOutletInjector(T){return new Cn(this.route,this.childContexts,T)}constructor(T,R,C){this.route=T,this.childContexts=R,this.parent=C}get(T,R){return T===te?this.route:T===S?this.childContexts:this.parent.get(T,R)}}const Ln=new d.nKC("");let In=(()=>{var I;class T{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(C){this.unsubscribeFromRouteData(C),this.subscribeToRouteData(C)}unsubscribeFromRouteData(C){var x;null===(x=this.outletDataSubscriptions.get(C))||void 0===x||x.unsubscribe(),this.outletDataSubscriptions.delete(C)}subscribeToRouteData(C){const{activatedRoute:x}=C,J=(0,tt.z)([x.queryParams,x.params,x.data]).pipe((0,Dt.n)(([ve,ht,Yt],At)=>(Yt={...ve,...ht,...Yt},0===At?(0,ne.of)(Yt):Promise.resolve(Yt)))).subscribe(ve=>{if(!C.isActivated||!C.activatedComponentRef||C.activatedRoute!==x||null===x.component)return void this.unsubscribeFromRouteData(C);const ht=(0,d.HJs)(x.component);if(ht)for(const{templateName:Yt}of ht.inputs)C.activatedComponentRef.setInput(Yt,ve[Yt]);else this.unsubscribeFromRouteData(C)});this.outletDataSubscriptions.set(C,J)}}return(I=T).\u0275fac=function(C){return new(C||I)},I.\u0275prov=d.jDH({token:I,factory:I.\u0275fac}),T})();function cr(I,T,R){if(R&&I.shouldReuseRoute(T.value,R.value.snapshot)){const C=R.value;C._futureSnapshot=T.value;const x=function nr(I,T,R){return T.children.map(C=>{for(const x of R.children)if(I.shouldReuseRoute(C.value,x.value.snapshot))return cr(I,C,x);return cr(I,C)})}(I,T,R);return new fe(C,x)}{if(I.shouldAttach(T.value)){const J=I.retrieve(T.value);if(null!==J){const ve=J.route;return ve.value._futureSnapshot=T.value,ve.children=T.children.map(ht=>cr(I,ht)),ve}}const C=function li(I){return new te(new Qe.t(I.url),new Qe.t(I.params),new Qe.t(I.queryParams),new Qe.t(I.fragment),new Qe.t(I.data),I.outlet,I.component,I)}(T.value),x=T.children.map(J=>cr(I,J));return new fe(C,x)}}const vi="ngNavigationCancelingError";function ci(I,T){const{redirectTo:R,navigationBehaviorOptions:C}=wi(T)?{redirectTo:T,navigationBehaviorOptions:void 0}:T,x=no(!1,ti.Redirect);return x.url=R,x.navigationBehaviorOptions=C,x}function no(I,T){const R=new Error(`NavigationCancelingError: ${I||""}`);return R[vi]=!0,R.cancellationCode=T,R}function dr(I){return!!I&&I[vi]}let Wr=(()=>{var I;class T{}return(I=T).\u0275fac=function(C){return new(C||I)},I.\u0275cmp=d.VBU({type:I,selectors:[["ng-component"]],standalone:!0,features:[d.aNF],decls:1,vars:0,template:function(C,x){1&C&&d.nrm(0,"router-outlet")},dependencies:[_n],encapsulation:2}),T})();function Us(I){const T=I.children&&I.children.map(Us),R=T?{...I,children:T}:{...I};return!R.component&&!R.loadComponent&&(T||R.loadChildren)&&R.outlet&&R.outlet!==yn&&(R.component=Wr),R}function so(I){return I.outlet||yn}function gs(I){var T;if(!I)return null;if(null!==(T=I.routeConfig)&&void 0!==T&&T._injector)return I.routeConfig._injector;for(let R=I.parent;R;R=R.parent){const C=R.routeConfig;if(null!=C&&C._loadedInjector)return C._loadedInjector;if(null!=C&&C._injector)return C._injector}return null}class $s{constructor(T,R,C,x,J){this.routeReuseStrategy=T,this.futureState=R,this.currState=C,this.forwardEvent=x,this.inputBindingEnabled=J}activate(T){const R=this.futureState._root,C=this.currState?this.currState._root:null;this.deactivateChildRoutes(R,C,T),Ht(this.futureState.root),this.activateChildRoutes(R,C,T)}deactivateChildRoutes(T,R,C){const x=qe(R);T.children.forEach(J=>{const ve=J.value.outlet;this.deactivateRoutes(J,x[ve],C),delete x[ve]}),Object.values(x).forEach(J=>{this.deactivateRouteAndItsChildren(J,C)})}deactivateRoutes(T,R,C){const x=T.value,J=R?R.value:null;if(x===J)if(x.component){const ve=C.getContext(x.outlet);ve&&this.deactivateChildRoutes(T,R,ve.children)}else this.deactivateChildRoutes(T,R,C);else J&&this.deactivateRouteAndItsChildren(R,C)}deactivateRouteAndItsChildren(T,R){T.value.component&&this.routeReuseStrategy.shouldDetach(T.value.snapshot)?this.detachAndStoreRouteSubtree(T,R):this.deactivateRouteAndOutlet(T,R)}detachAndStoreRouteSubtree(T,R){const C=R.getContext(T.value.outlet),x=C&&T.value.component?C.children:R,J=qe(T);for(const ve of Object.values(J))this.deactivateRouteAndItsChildren(ve,x);if(C&&C.outlet){const ve=C.outlet.detach(),ht=C.children.onOutletDeactivated();this.routeReuseStrategy.store(T.value.snapshot,{componentRef:ve,route:T,contexts:ht})}}deactivateRouteAndOutlet(T,R){const C=R.getContext(T.value.outlet),x=C&&T.value.component?C.children:R,J=qe(T);for(const ve of Object.values(J))this.deactivateRouteAndItsChildren(ve,x);C&&(C.outlet&&(C.outlet.deactivate(),C.children.onOutletDeactivated()),C.attachRef=null,C.route=null)}activateChildRoutes(T,R,C){const x=qe(R);T.children.forEach(J=>{this.activateRoutes(J,x[J.value.outlet],C),this.forwardEvent(new Fo(J.value.snapshot))}),T.children.length&&this.forwardEvent(new ai(T.value.snapshot))}activateRoutes(T,R,C){const x=T.value,J=R?R.value:null;if(Ht(x),x===J)if(x.component){const ve=C.getOrCreateContext(x.outlet);this.activateChildRoutes(T,R,ve.children)}else this.activateChildRoutes(T,R,C);else if(x.component){const ve=C.getOrCreateContext(x.outlet);if(this.routeReuseStrategy.shouldAttach(x.snapshot)){const ht=this.routeReuseStrategy.retrieve(x.snapshot);this.routeReuseStrategy.store(x.snapshot,null),ve.children.onOutletReAttached(ht.contexts),ve.attachRef=ht.componentRef,ve.route=ht.route.value,ve.outlet&&ve.outlet.attach(ht.componentRef,ht.route.value),Ht(ht.route.value),this.activateChildRoutes(T,null,ve.children)}else{const ht=gs(x.snapshot);ve.attachRef=null,ve.route=x,ve.injector=ht,ve.outlet&&ve.outlet.activateWith(x,ve.injector),this.activateChildRoutes(T,null,ve.children)}}else this.activateChildRoutes(T,null,C)}}class ca{constructor(T){this.path=T,this.route=this.path[this.path.length-1]}}class qo{constructor(T,R){this.component=T,this.route=R}}function bs(I,T,R){const C=I._root;return ji(C,T?T._root:null,R,[C.value])}function bo(I,T){const R=Symbol(),C=T.get(I,R);return C===R?"function"!=typeof I||(0,d.LfX)(I)?T.get(I):I:C}function ji(I,T,R,C,x={canDeactivateChecks:[],canActivateChecks:[]}){const J=qe(T);return I.children.forEach(ve=>{(function da(I,T,R,C,x={canDeactivateChecks:[],canActivateChecks:[]}){const J=I.value,ve=T?T.value:null,ht=R?R.getContext(I.value.outlet):null;if(ve&&J.routeConfig===ve.routeConfig){const Yt=function ol(I,T,R){if("function"==typeof R)return R(I,T);switch(R){case"pathParamsChange":return!Ir(I.url,T.url);case"pathParamsOrQueryParamsChange":return!Ir(I.url,T.url)||!Qt(I.queryParams,T.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!qt(I,T)||!Qt(I.queryParams,T.queryParams);default:return!qt(I,T)}}(ve,J,J.routeConfig.runGuardsAndResolvers);Yt?x.canActivateChecks.push(new ca(C)):(J.data=ve.data,J._resolvedData=ve._resolvedData),ji(I,T,J.component?ht?ht.children:null:R,C,x),Yt&&ht&&ht.outlet&&ht.outlet.isActivated&&x.canDeactivateChecks.push(new qo(ht.outlet.component,ve))}else ve&&L(T,ht,x),x.canActivateChecks.push(new ca(C)),ji(I,null,J.component?ht?ht.children:null:R,C,x)})(ve,J[ve.value.outlet],R,C.concat([ve.value]),x),delete J[ve.value.outlet]}),Object.entries(J).forEach(([ve,ht])=>L(ht,R.getContext(ve),x)),x}function L(I,T,R){const C=qe(I),x=I.value;Object.entries(C).forEach(([J,ve])=>{L(ve,x.component?T?T.children.getContext(J):null:T,R)}),R.canDeactivateChecks.push(new qo(x.component&&T&&T.outlet&&T.outlet.isActivated?T.outlet.component:null,x))}function P(I){return"function"==typeof I}function Ji(I){return I instanceof _e||"EmptyError"===(null==I?void 0:I.name)}const ao=Symbol("INITIAL_VALUE");function eo(){return(0,Dt.n)(I=>(0,tt.z)(I.map(T=>T.pipe((0,Be.s)(1),function Pt(...I){const T=(0,gt.lI)(I);return(0,Ke.N)((R,C)=>{(T?ct(I,R,T):ct(I,R)).subscribe(C)})}(ao)))).pipe((0,en.T)(T=>{for(const R of T)if(!0!==R){if(R===ao)return ao;if(!1===R||R instanceof Zn)return R}return!0}),(0,rt.p)(T=>T!==ao),(0,Be.s)(1)))}function Jn(I){return(0,mt.F)((0,ae.M)(T=>{if(wi(T))throw ci(0,T)}),(0,en.T)(T=>!0===T))}class Ti{constructor(T){this.segmentGroup=T||null}}class ro extends Error{constructor(T){super(),this.urlTree=T}}function Hr(I){return vt(new Ti(I))}class Vl{constructor(T,R){this.urlSerializer=T,this.urlTree=R}lineralizeSegments(T,R){let C=[],x=R.root;for(;;){if(C=C.concat(x.segments),0===x.numberOfChildren)return(0,ne.of)(C);if(x.numberOfChildren>1||!x.children[yn])return vt(new d.wOt(4e3,!1));x=x.children[yn]}}applyRedirectCommands(T,R,C){const x=this.applyRedirectCreateUrlTree(R,this.urlSerializer.parse(R),T,C);if(R.startsWith("/"))throw new ro(x);return x}applyRedirectCreateUrlTree(T,R,C,x){const J=this.createSegmentGroup(T,R.root,C,x);return new Zn(J,this.createQueryParams(R.queryParams,this.urlTree.queryParams),R.fragment)}createQueryParams(T,R){const C={};return Object.entries(T).forEach(([x,J])=>{if("string"==typeof J&&J.startsWith(":")){const ht=J.substring(1);C[x]=R[ht]}else C[x]=J}),C}createSegmentGroup(T,R,C,x){const J=this.createSegments(T,R.segments,C,x);let ve={};return Object.entries(R.children).forEach(([ht,Yt])=>{ve[ht]=this.createSegmentGroup(T,Yt,C,x)}),new Rn(J,ve)}createSegments(T,R,C,x){return R.map(J=>J.path.startsWith(":")?this.findPosParam(T,J,x):this.findOrReturn(J,C))}findPosParam(T,R,C){const x=C[R.path.substring(1)];if(!x)throw new d.wOt(4001,!1);return x}findOrReturn(T,R){let C=0;for(const x of R){if(x.path===T.path)return R.splice(C),x;C++}return T}}const vr={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function ul(I,T,R,C,x){const J=ys(I,T,R);return J.matched?(C=function Wo(I,T){var R;return I.providers&&!I._injector&&(I._injector=(0,d.Ol2)(I.providers,T,`Route: ${I.path}`)),null!==(R=I._injector)&&void 0!==R?R:T}(T,C),function Ni(I,T,R,C){const x=T.canMatch;if(!x||0===x.length)return(0,ne.of)(!0);const J=x.map(ve=>{const ht=bo(ve,I);return mn(function rr(I){return I&&P(I.canMatch)}(ht)?ht.canMatch(T,R):(0,d.N4e)(I,()=>ht(T,R)))});return(0,ne.of)(J).pipe(eo(),Jn())}(C,T,R).pipe((0,en.T)(ve=>!0===ve?J:{...vr}))):(0,ne.of)(J)}function ys(I,T,R){var C,x;if("**"===T.path)return function ka(I){return{matched:!0,parameters:I.length>0?gn(I).parameters:{},consumedSegments:I,remainingSegments:[],positionalParamSegments:{}}}(R);if(""===T.path)return"full"===T.pathMatch&&(I.hasChildren()||R.length>0)?{...vr}:{matched:!0,consumedSegments:[],remainingSegments:R,parameters:{},positionalParamSegments:{}};const ve=(T.matcher||yt)(R,I,T);if(!ve)return{...vr};const ht={};Object.entries(null!==(C=ve.posParams)&&void 0!==C?C:{}).forEach(([At,Tn])=>{ht[At]=Tn.path});const Yt=ve.consumed.length>0?{...ht,...ve.consumed[ve.consumed.length-1].parameters}:ht;return{matched:!0,consumedSegments:ve.consumed,remainingSegments:R.slice(ve.consumed.length),parameters:Yt,positionalParamSegments:null!==(x=ve.posParams)&&void 0!==x?x:{}}}function js(I,T,R,C){return R.length>0&&function Ll(I,T,R){return R.some(C=>fa(I,T,C)&&so(C)!==yn)}(I,R,C)?{segmentGroup:new Rn(T,Fa(C,new Rn(R,I.children))),slicedSegments:[]}:0===R.length&&function Ul(I,T,R){return R.some(C=>fa(I,T,C))}(I,R,C)?{segmentGroup:new Rn(I.segments,cl(I,R,C,I.children)),slicedSegments:R}:{segmentGroup:new Rn(I.segments,I.children),slicedSegments:R}}function cl(I,T,R,C){const x={};for(const J of R)if(fa(I,T,J)&&!C[so(J)]){const ve=new Rn([],{});x[so(J)]=ve}return{...C,...x}}function Fa(I,T){const R={};R[yn]=T;for(const C of I)if(""===C.path&&so(C)!==yn){const x=new Rn([],{});R[so(C)]=x}return R}function fa(I,T,R){return(!(I.hasChildren()||T.length>0)||"full"!==R.pathMatch)&&""===R.path}class Yo{}class Zo{constructor(T,R,C,x,J,ve,ht){this.injector=T,this.configLoader=R,this.rootComponentType=C,this.config=x,this.urlTree=J,this.paramsInheritanceStrategy=ve,this.urlSerializer=ht,this.applyRedirects=new Vl(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(T){return new d.wOt(4002,`'${T.segmentGroup}'`)}recognize(){const T=js(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(T).pipe((0,en.T)(R=>{const C=new ke([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},yn,this.rootComponentType,null,{}),x=new fe(C,R),J=new st("",x),ve=function gi(I,T,R=null,C=null){return lt(St(I),T,R,C)}(C,[],this.urlTree.queryParams,this.urlTree.fragment);return ve.queryParams=this.urlTree.queryParams,J.url=this.urlSerializer.serialize(ve),this.inheritParamsAndData(J._root,null),{state:J,tree:ve}}))}match(T){return this.processSegmentGroup(this.injector,this.config,T,yn).pipe(me(C=>{if(C instanceof ro)return this.urlTree=C.urlTree,this.match(C.urlTree.root);throw C instanceof Ti?this.noMatchError(C):C}))}inheritParamsAndData(T,R){const C=T.value,x=Ee(C,R,this.paramsInheritanceStrategy);C.params=Object.freeze(x.params),C.data=Object.freeze(x.data),T.children.forEach(J=>this.inheritParamsAndData(J,C))}processSegmentGroup(T,R,C,x){return 0===C.segments.length&&C.hasChildren()?this.processChildren(T,R,C):this.processSegment(T,R,C,C.segments,x,!0).pipe((0,en.T)(J=>J instanceof fe?[J]:[]))}processChildren(T,R,C){const x=[];for(const J of Object.keys(C.children))"primary"===J?x.unshift(J):x.push(J);return(0,Ie.H)(x).pipe(he(J=>{const ve=C.children[J],ht=function ua(I,T){const R=I.filter(C=>so(C)===T);return R.push(...I.filter(C=>so(C)!==T)),R}(R,J);return this.processSegmentGroup(T,ht,ve,J)}),function ut(I,T){return(0,Ke.N)(function Ae(I,T,R,C,x){return(J,ve)=>{let ht=R,Yt=T,At=0;J.subscribe((0,Ct._)(ve,Tn=>{const hr=At++;Yt=ht?I(Yt,Tn,hr):(ht=!0,Tn),C&&ve.next(Yt)},x&&(()=>{ht&&ve.next(Yt),ve.complete()})))}}(I,T,arguments.length>=2,!0))}((J,ve)=>(J.push(...ve),J)),Pe(null),function jt(I,T){const R=arguments.length>=2;return C=>C.pipe(I?(0,rt.p)((x,J)=>I(x,J,C)):Ue.D,Vt(1),R?Pe(T):z(()=>new _e))}(),(0,Fe.Z)(J=>{if(null===J)return Hr(C);const ve=Lo(J);return function wu(I){I.sort((T,R)=>T.value.outlet===yn?-1:R.value.outlet===yn?1:T.value.outlet.localeCompare(R.value.outlet))}(ve),(0,ne.of)(ve)}))}processSegment(T,R,C,x,J,ve){return(0,Ie.H)(R).pipe(he(ht=>{var Yt;return this.processSegmentAgainstRoute(null!==(Yt=ht._injector)&&void 0!==Yt?Yt:T,R,ht,C,x,J,ve).pipe(me(At=>{if(At instanceof Ti)return(0,ne.of)(null);throw At}))}),ie(ht=>!!ht),me(ht=>{if(Ji(ht))return function ws(I,T,R){return 0===T.length&&!I.children[R]}(C,x,J)?(0,ne.of)(new Yo):Hr(C);throw ht}))}processSegmentAgainstRoute(T,R,C,x,J,ve,ht){return function Is(I,T,R,C){return!!(so(I)===C||C!==yn&&fa(T,R,I))&&ys(T,I,R).matched}(C,x,J,ve)?void 0===C.redirectTo?this.matchSegmentAgainstRoute(T,x,C,J,ve):this.allowRedirects&&ht?this.expandSegmentAgainstRouteUsingRedirect(T,x,R,C,J,ve):Hr(x):Hr(x)}expandSegmentAgainstRouteUsingRedirect(T,R,C,x,J,ve){const{matched:ht,consumedSegments:Yt,positionalParamSegments:At,remainingSegments:Tn}=ys(R,x,J);if(!ht)return Hr(R);x.redirectTo.startsWith("/")&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>31&&(this.allowRedirects=!1));const hr=this.applyRedirects.applyRedirectCommands(Yt,x.redirectTo,At);return this.applyRedirects.lineralizeSegments(x,hr).pipe((0,Fe.Z)(Si=>this.processSegment(T,C,R,Si.concat(Tn),ve,!1)))}matchSegmentAgainstRoute(T,R,C,x,J){const ve=ul(R,C,x,T);return"**"===C.path&&(R.children={}),ve.pipe((0,Dt.n)(ht=>{var Yt;return ht.matched?(T=null!==(Yt=C._injector)&&void 0!==Yt?Yt:T,this.getChildConfig(T,C,x).pipe((0,Dt.n)(({routes:At})=>{var Tn,hr,Si;const Br=null!==(Tn=C._loadedInjector)&&void 0!==Tn?Tn:T,{consumedSegments:Ki,remainingSegments:Bo,parameters:za}=ht,Ha=new ke(Ki,za,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,function Rs(I){return I.data||{}}(C),so(C),null!==(hr=null!==(Si=C.component)&&void 0!==Si?Si:C._loadedComponent)&&void 0!==hr?hr:null,C,function Di(I){return I.resolve||{}}(C)),{segmentGroup:yo,slicedSegments:hl}=js(R,Ki,Bo,At);if(0===hl.length&&yo.hasChildren())return this.processChildren(Br,At,yo).pipe((0,en.T)(Ps=>null===Ps?null:new fe(Ha,Ps)));if(0===At.length&&0===hl.length)return(0,ne.of)(new fe(Ha,[]));const Wl=so(C)===J;return this.processSegment(Br,At,yo,hl,Wl?yn:J,!0).pipe((0,en.T)(Ps=>new fe(Ha,Ps instanceof fe?[Ps]:[])))}))):Hr(R)}))}getChildConfig(T,R,C){return R.children?(0,ne.of)({routes:R.children,injector:T}):R.loadChildren?void 0!==R._loadedRoutes?(0,ne.of)({routes:R._loadedRoutes,injector:R._loadedInjector}):function ha(I,T,R,C){const x=T.canLoad;if(void 0===x||0===x.length)return(0,ne.of)(!0);const J=x.map(ve=>{const ht=bo(ve,I);return mn(function $(I){return I&&P(I.canLoad)}(ht)?ht.canLoad(T,R):(0,d.N4e)(I,()=>ht(T,R)))});return(0,ne.of)(J).pipe(eo(),Jn())}(T,R,C).pipe((0,Fe.Z)(x=>x?this.configLoader.loadChildren(T,R).pipe((0,ae.M)(J=>{R._loadedRoutes=J.routes,R._loadedInjector=J.injector})):function _s(I){return vt(no(!1,ti.GuardRejected))}())):(0,ne.of)({routes:[],injector:T})}}function $l(I){const T=I.value.routeConfig;return T&&""===T.path}function Lo(I){const T=[],R=new Set;for(const C of I){if(!$l(C)){T.push(C);continue}const x=T.find(J=>C.value.routeConfig===J.value.routeConfig);void 0!==x?(x.children.push(...C.children),R.add(x)):T.push(C)}for(const C of R){const x=Lo(C.children);T.push(new fe(C.value,x))}return T.filter(C=>!R.has(C))}function ga(I){const T=I.children.map(R=>ga(R)).flat();return[I,...T]}function ma(I){return(0,Dt.n)(T=>{const R=I(T);return R?(0,Ie.H)(R).pipe((0,en.T)(()=>T)):(0,ne.of)(T)})}let Ms=(()=>{var I;class T{buildTitle(C){let x,J=C.root;for(;void 0!==J;){var ve;x=null!==(ve=this.getResolvedTitleForRoute(J))&&void 0!==ve?ve:x,J=J.children.find(ht=>ht.outlet===yn)}return x}getResolvedTitleForRoute(C){return C.data[ir]}}return(I=T).\u0275fac=function(C){return new(C||I)},I.\u0275prov=d.jDH({token:I,factory:()=>(0,d.WQX)(lo),providedIn:"root"}),T})(),lo=(()=>{var I;class T extends Ms{constructor(C){super(),this.title=C}updateTitle(C){const x=this.buildTitle(C);void 0!==x&&this.title.setTitle(x)}}return(I=T).\u0275fac=function(C){return new(C||I)(d.KVO(er.hE))},I.\u0275prov=d.jDH({token:I,factory:I.\u0275fac,providedIn:"root"}),T})();const Hs=new d.nKC("",{providedIn:"root",factory:()=>({})}),Es=new d.nKC("");let D=(()=>{var I;class T{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=(0,d.WQX)(d.Ql9)}loadComponent(C){if(this.componentLoaders.get(C))return this.componentLoaders.get(C);if(C._loadedComponent)return(0,ne.of)(C._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(C);const x=mn(C.loadComponent()).pipe((0,en.T)(O),(0,ae.M)(ve=>{this.onLoadEndListener&&this.onLoadEndListener(C),C._loadedComponent=ve}),bn(()=>{this.componentLoaders.delete(C)})),J=new ze(x,()=>new Tt.B).pipe(kt());return this.componentLoaders.set(C,J),J}loadChildren(C,x){if(this.childrenLoaders.get(x))return this.childrenLoaders.get(x);if(x._loadedRoutes)return(0,ne.of)({routes:x._loadedRoutes,injector:x._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(x);const ve=function V(I,T,R,C){return mn(I.loadChildren()).pipe((0,en.T)(O),(0,Fe.Z)(x=>x instanceof d.Co$||Array.isArray(x)?(0,ne.of)(x):(0,Ie.H)(T.compileModuleAsync(x))),(0,en.T)(x=>{C&&C(I);let J,ve,ht=!1;return Array.isArray(x)?(ve=x,!0):(J=x.create(R).injector,ve=J.get(Es,[],{optional:!0,self:!0}).flat()),{routes:ve.map(Us),injector:J}}))}(x,this.compiler,C,this.onLoadEndListener).pipe(bn(()=>{this.childrenLoaders.delete(x)})),ht=new ze(ve,()=>new Tt.B).pipe(kt());return this.childrenLoaders.set(x,ht),ht}}return(I=T).\u0275fac=function(C){return new(C||I)},I.\u0275prov=d.jDH({token:I,factory:I.\u0275fac,providedIn:"root"}),T})();function O(I){return function De(I){return I&&"object"==typeof I&&"default"in I}(I)?I.default:I}let le=(()=>{var I;class T{}return(I=T).\u0275fac=function(C){return new(C||I)},I.\u0275prov=d.jDH({token:I,factory:()=>(0,d.WQX)(xe),providedIn:"root"}),T})(),xe=(()=>{var I;class T{shouldProcessUrl(C){return!0}extract(C){return C}merge(C,x){return C}}return(I=T).\u0275fac=function(C){return new(C||I)},I.\u0275prov=d.jDH({token:I,factory:I.\u0275fac,providedIn:"root"}),T})();const Ft=new d.nKC(""),an=new d.nKC("");function Un(I,T,R){const C=I.get(an),x=I.get(Lt.qQ);return I.get(d.SKi).runOutsideAngular(()=>{if(!x.startViewTransition||C.skipNextTransition)return C.skipNextTransition=!1,new Promise(At=>setTimeout(At));let J;const ve=new Promise(At=>{J=At}),ht=x.startViewTransition(()=>(J(),function Fn(I){return new Promise(T=>{(0,d.mal)(T,{injector:I})})}(I))),{onViewTransitionCreated:Yt}=C;return Yt&&(0,d.N4e)(I,()=>Yt({transition:ht,from:T,to:R})),ve})}let Fr=(()=>{var I;class T{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new Tt.B,this.transitionAbortSubject=new Tt.B,this.configLoader=(0,d.WQX)(D),this.environmentInjector=(0,d.WQX)(d.uvJ),this.urlSerializer=(0,d.WQX)(Qr),this.rootContexts=(0,d.WQX)(S),this.location=(0,d.WQX)(Lt.aZ),this.inputBindingEnabled=null!==(0,d.WQX)(Ln,{optional:!0}),this.titleStrategy=(0,d.WQX)(Ms),this.options=(0,d.WQX)(Hs,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=(0,d.WQX)(le),this.createViewTransition=(0,d.WQX)(Ft,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>(0,ne.of)(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=J=>this.events.next(new or(J)),this.configLoader.onLoadStartListener=J=>this.events.next(new si(J))}complete(){var C;null===(C=this.transitions)||void 0===C||C.complete()}handleNavigationRequest(C){var x;const J=++this.navigationId;null===(x=this.transitions)||void 0===x||x.next({...this.transitions.value,...C,id:J})}setupNavigations(C,x,J){return this.transitions=new Qe.t({id:0,currentUrlTree:x,currentRawUrl:x,extractedUrl:this.urlHandlingStrategy.extract(x),urlAfterRedirects:this.urlHandlingStrategy.extract(x),rawUrl:x,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:xr,restoredState:null,currentSnapshot:J.snapshot,targetSnapshot:null,currentRouterState:J,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe((0,rt.p)(ve=>0!==ve.id),(0,en.T)(ve=>({...ve,extractedUrl:this.urlHandlingStrategy.extract(ve.rawUrl)})),(0,Dt.n)(ve=>{let ht=!1,Yt=!1;return(0,ne.of)(ve).pipe((0,Dt.n)(At=>{var Tn;if(this.navigationId>ve.id)return this.cancelNavigationTransition(ve,"",ti.SupersededByNewNavigation),Re.w;this.currentTransition=ve,this.currentNavigation={id:At.id,initialUrl:At.rawUrl,extractedUrl:At.extractedUrl,trigger:At.source,extras:At.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null};const hr=!C.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),Si=null!==(Tn=At.extras.onSameUrlNavigation)&&void 0!==Tn?Tn:C.onSameUrlNavigation;if(!hr&&"reload"!==Si){const Br="";return this.events.next(new Nn(At.id,this.urlSerializer.serialize(At.rawUrl),Br,mr.IgnoredSameUrlNavigation)),At.resolve(null),Re.w}if(this.urlHandlingStrategy.shouldProcessUrl(At.rawUrl))return(0,ne.of)(At).pipe((0,Dt.n)(Br=>{var Ki,Bo;const za=null===(Ki=this.transitions)||void 0===Ki?void 0:Ki.getValue();return this.events.next(new mi(Br.id,this.urlSerializer.serialize(Br.extractedUrl),Br.source,Br.restoredState)),za!==(null===(Bo=this.transitions)||void 0===Bo?void 0:Bo.getValue())?Re.w:Promise.resolve(Br)}),function pa(I,T,R,C,x,J){return(0,Fe.Z)(ve=>function Ss(I,T,R,C,x,J,ve="emptyOnly"){return new Zo(I,T,R,C,x,ve,J).recognize()}(I,T,R,C,ve.extractedUrl,x,J).pipe((0,en.T)(({state:ht,tree:Yt})=>({...ve,targetSnapshot:ht,urlAfterRedirects:Yt}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,C.config,this.urlSerializer,this.paramsInheritanceStrategy),(0,ae.M)(Br=>{ve.targetSnapshot=Br.targetSnapshot,ve.urlAfterRedirects=Br.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:Br.urlAfterRedirects};const Ki=new ko(Br.id,this.urlSerializer.serialize(Br.extractedUrl),this.urlSerializer.serialize(Br.urlAfterRedirects),Br.targetSnapshot);this.events.next(Ki)}));if(hr&&this.urlHandlingStrategy.shouldProcessUrl(At.currentRawUrl)){const{id:Br,extractedUrl:Ki,source:Bo,restoredState:za,extras:Ha}=At,yo=new mi(Br,this.urlSerializer.serialize(Ki),Bo,za);this.events.next(yo);const hl=ui(this.rootComponentType).snapshot;return this.currentTransition=ve={...At,targetSnapshot:hl,urlAfterRedirects:Ki,extras:{...Ha,skipLocationChange:!1,replaceUrl:!1}},this.currentNavigation.finalUrl=Ki,(0,ne.of)(ve)}{const Br="";return this.events.next(new Nn(At.id,this.urlSerializer.serialize(At.extractedUrl),Br,mr.IgnoredByUrlHandlingStrategy)),At.resolve(null),Re.w}}),(0,ae.M)(At=>{const Tn=new ei(At.id,this.urlSerializer.serialize(At.extractedUrl),this.urlSerializer.serialize(At.urlAfterRedirects),At.targetSnapshot);this.events.next(Tn)}),(0,en.T)(At=>(this.currentTransition=ve={...At,guards:bs(At.targetSnapshot,At.currentSnapshot,this.rootContexts)},ve)),function Qo(I,T){return(0,Fe.Z)(R=>{const{targetSnapshot:C,currentSnapshot:x,guards:{canActivateChecks:J,canDeactivateChecks:ve}}=R;return 0===ve.length&&0===J.length?(0,ne.of)({...R,guardsResult:!0}):function Na(I,T,R,C){return(0,Ie.H)(I).pipe((0,Fe.Z)(x=>function as(I,T,R,C,x){const J=T&&T.routeConfig?T.routeConfig.canDeactivate:null;if(!J||0===J.length)return(0,ne.of)(!0);const ve=J.map(ht=>{var Yt;const At=null!==(Yt=gs(T))&&void 0!==Yt?Yt:x,Tn=bo(ht,At);return mn(function On(I){return I&&P(I.canDeactivate)}(Tn)?Tn.canDeactivate(I,T,R,C):(0,d.N4e)(At,()=>Tn(I,T,R,C))).pipe(ie())});return(0,ne.of)(ve).pipe(eo())}(x.component,x.route,R,T,C)),ie(x=>!0!==x,!0))}(ve,C,x,I).pipe((0,Fe.Z)(ht=>ht&&function ce(I){return"boolean"==typeof I}(ht)?function vs(I,T,R,C){return(0,Ie.H)(T).pipe(he(x=>ct(function Oa(I,T){return null!==I&&T&&T(new kr(I)),(0,ne.of)(!0)}(x.route.parent,C),function Bs(I,T){return null!==I&&T&&T(new jn(I)),(0,ne.of)(!0)}(x.route,C),function al(I,T,R){const C=T[T.length-1],J=T.slice(0,T.length-1).reverse().map(ve=>function Xo(I){const T=I.routeConfig?I.routeConfig.canActivateChild:null;return T&&0!==T.length?{node:I,guards:T}:null}(ve)).filter(ve=>null!==ve).map(ve=>Mt(()=>{const ht=ve.guards.map(Yt=>{var At;const Tn=null!==(At=gs(ve.node))&&void 0!==At?At:R,hr=bo(Yt,Tn);return mn(function rn(I){return I&&P(I.canActivateChild)}(hr)?hr.canActivateChild(C,I):(0,d.N4e)(Tn,()=>hr(C,I))).pipe(ie())});return(0,ne.of)(ht).pipe(eo())}));return(0,ne.of)(J).pipe(eo())}(I,x.path,R),function sl(I,T,R){const C=T.routeConfig?T.routeConfig.canActivate:null;if(!C||0===C.length)return(0,ne.of)(!0);const x=C.map(J=>Mt(()=>{var ve;const ht=null!==(ve=gs(T))&&void 0!==ve?ve:R,Yt=bo(J,ht);return mn(function Ce(I){return I&&P(I.canActivate)}(Yt)?Yt.canActivate(T,I):(0,d.N4e)(ht,()=>Yt(T,I))).pipe(ie())}));return(0,ne.of)(x).pipe(eo())}(I,x.route,R))),ie(x=>!0!==x,!0))}(C,J,I,T):(0,ne.of)(ht)),(0,en.T)(ht=>({...R,guardsResult:ht})))})}(this.environmentInjector,At=>this.events.next(At)),(0,ae.M)(At=>{if(ve.guardsResult=At.guardsResult,wi(At.guardsResult))throw ci(0,At.guardsResult);const Tn=new Bi(At.id,this.urlSerializer.serialize(At.extractedUrl),this.urlSerializer.serialize(At.urlAfterRedirects),At.targetSnapshot,!!At.guardsResult);this.events.next(Tn)}),(0,rt.p)(At=>!!At.guardsResult||(this.cancelNavigationTransition(At,"",ti.GuardRejected),!1)),ma(At=>{if(At.guards.canActivateChecks.length)return(0,ne.of)(At).pipe((0,ae.M)(Tn=>{const hr=new is(Tn.id,this.urlSerializer.serialize(Tn.extractedUrl),this.urlSerializer.serialize(Tn.urlAfterRedirects),Tn.targetSnapshot);this.events.next(hr)}),(0,Dt.n)(Tn=>{let hr=!1;return(0,ne.of)(Tn).pipe(function Bl(I,T){return(0,Fe.Z)(R=>{const{targetSnapshot:C,guards:{canActivateChecks:x}}=R;if(!x.length)return(0,ne.of)(R);const J=new Set(x.map(Yt=>Yt.route)),ve=new Set;for(const Yt of J)if(!ve.has(Yt))for(const At of ga(Yt))ve.add(At);let ht=0;return(0,Ie.H)(ve).pipe(he(Yt=>J.has(Yt)?function Va(I,T,R,C){const x=I.routeConfig,J=I._resolve;return void 0!==(null==x?void 0:x.title)&&!Zt(x)&&(J[ir]=x.title),function zs(I,T,R,C){const x=tn(I);if(0===x.length)return(0,ne.of)({});const J={};return(0,Ie.H)(x).pipe((0,Fe.Z)(ve=>function pc(I,T,R,C){var x;const J=null!==(x=gs(T))&&void 0!==x?x:C,ve=bo(I,J);return mn(ve.resolve?ve.resolve(T,R):(0,d.N4e)(J,()=>ve(T,R)))}(I[ve],T,R,C).pipe(ie(),(0,ae.M)(ht=>{J[ve]=ht}))),Vt(1),function vn(I){return(0,en.T)(()=>I)}(J),me(ve=>Ji(ve)?Re.w:vt(ve)))}(J,I,T,C).pipe((0,en.T)(ve=>(I._resolvedData=ve,I.data=Ee(I,I.parent,R).resolve,null)))}(Yt,C,I,T):(Yt.data=Ee(Yt,Yt.parent,I).resolve,(0,ne.of)(void 0))),(0,ae.M)(()=>ht++),Vt(1),(0,Fe.Z)(Yt=>ht===ve.size?(0,ne.of)(R):Re.w))})}(this.paramsInheritanceStrategy,this.environmentInjector),(0,ae.M)({next:()=>hr=!0,complete:()=>{hr||this.cancelNavigationTransition(Tn,"",ti.NoDataFromResolver)}}))}),(0,ae.M)(Tn=>{const hr=new ps(Tn.id,this.urlSerializer.serialize(Tn.extractedUrl),this.urlSerializer.serialize(Tn.urlAfterRedirects),Tn.targetSnapshot);this.events.next(hr)}))}),ma(At=>{const Tn=hr=>{var Si;const Br=[];null!==(Si=hr.routeConfig)&&void 0!==Si&&Si.loadComponent&&!hr.routeConfig._loadedComponent&&Br.push(this.configLoader.loadComponent(hr.routeConfig).pipe((0,ae.M)(Ki=>{hr.component=Ki}),(0,en.T)(()=>{})));for(const Ki of hr.children)Br.push(...Tn(Ki));return Br};return(0,tt.z)(Tn(At.targetSnapshot.root)).pipe(Pe(null),(0,Be.s)(1))}),ma(()=>this.afterPreactivation()),(0,Dt.n)(()=>{var At;const{currentSnapshot:Tn,targetSnapshot:hr}=ve,Si=null===(At=this.createViewTransition)||void 0===At?void 0:At.call(this,this.environmentInjector,Tn.root,hr.root);return Si?(0,Ie.H)(Si).pipe((0,en.T)(()=>ve)):(0,ne.of)(ve)}),(0,en.T)(At=>{const Tn=function br(I,T,R){const C=cr(I,T._root,R?R._root:void 0);return new sr(C,T)}(C.routeReuseStrategy,At.targetSnapshot,At.currentRouterState);return this.currentTransition=ve={...At,targetRouterState:Tn},this.currentNavigation.targetRouterState=Tn,ve}),(0,ae.M)(()=>{this.events.next(new Co)}),((I,T,R,C)=>(0,en.T)(x=>(new $s(T,x.targetRouterState,x.currentRouterState,R,C).activate(I),x)))(this.rootContexts,C.routeReuseStrategy,At=>this.events.next(At),this.inputBindingEnabled),(0,Be.s)(1),(0,ae.M)({next:At=>{var Tn;ht=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new $i(At.id,this.urlSerializer.serialize(At.extractedUrl),this.urlSerializer.serialize(At.urlAfterRedirects))),null===(Tn=this.titleStrategy)||void 0===Tn||Tn.updateTitle(At.targetRouterState.snapshot),At.resolve(!0)},complete:()=>{ht=!0}}),function qn(I){return(0,Ke.N)((T,R)=>{(0,at.Tg)(I).subscribe((0,Ct._)(R,()=>R.complete(),$n.l)),!R.closed&&T.subscribe(R)})}(this.transitionAbortSubject.pipe((0,ae.M)(At=>{throw At}))),bn(()=>{var At;!ht&&!Yt&&this.cancelNavigationTransition(ve,"",ti.SupersededByNewNavigation),(null===(At=this.currentTransition)||void 0===At?void 0:At.id)===ve.id&&(this.currentNavigation=null,this.currentTransition=null)}),me(At=>{if(Yt=!0,dr(At))this.events.next(new oi(ve.id,this.urlSerializer.serialize(ve.extractedUrl),At.message,At.cancellationCode)),function Go(I){return dr(I)&&wi(I.url)}(At)?this.events.next(new co(At.url)):ve.resolve(!1);else{var Tn;this.events.next(new kn(ve.id,this.urlSerializer.serialize(ve.extractedUrl),At,null!==(Tn=ve.targetSnapshot)&&void 0!==Tn?Tn:void 0));try{ve.resolve(C.errorHandler(At))}catch(hr){this.options.resolveNavigationPromiseOnError?ve.resolve(!1):ve.reject(hr)}}return Re.w}))}))}cancelNavigationTransition(C,x,J){const ve=new oi(C.id,this.urlSerializer.serialize(C.extractedUrl),x,J);this.events.next(ve),C.resolve(!1)}isUpdatingInternalState(){var C,x;return(null===(C=this.currentTransition)||void 0===C?void 0:C.extractedUrl.toString())!==(null===(x=this.currentTransition)||void 0===x?void 0:x.currentUrlTree.toString())}isUpdatedBrowserUrl(){var C,x;return this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))).toString()!==(null===(C=this.currentTransition)||void 0===C?void 0:C.extractedUrl.toString())&&!(null!==(x=this.currentTransition)&&void 0!==x&&x.extras.skipLocationChange)}}return(I=T).\u0275fac=function(C){return new(C||I)},I.\u0275prov=d.jDH({token:I,factory:I.\u0275fac,providedIn:"root"}),T})();function Tr(I){return I!==xr}let Yr=(()=>{var I;class T{}return(I=T).\u0275fac=function(C){return new(C||I)},I.\u0275prov=d.jDH({token:I,factory:()=>(0,d.WQX)(Oi),providedIn:"root"}),T})();class Vr{shouldDetach(T){return!1}store(T,R){}shouldAttach(T){return!1}retrieve(T){return null}shouldReuseRoute(T,R){return T.routeConfig===R.routeConfig}}let Oi=(()=>{var I;class T extends Vr{}return(I=T).\u0275fac=(()=>{let R;return function(x){return(R||(R=d.xGo(I)))(x||I)}})(),I.\u0275prov=d.jDH({token:I,factory:I.\u0275fac,providedIn:"root"}),T})(),Gr=(()=>{var I;class T{}return(I=T).\u0275fac=function(C){return new(C||I)},I.\u0275prov=d.jDH({token:I,factory:()=>(0,d.WQX)(un),providedIn:"root"}),T})(),un=(()=>{var I;class T extends Gr{constructor(){super(...arguments),this.location=(0,d.WQX)(Lt.aZ),this.urlSerializer=(0,d.WQX)(Qr),this.options=(0,d.WQX)(Hs,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=(0,d.WQX)(le),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new Zn,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=ui(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){var C,x;return"computed"!==this.canceledNavigationResolution?this.currentPageId:null!==(C=null===(x=this.restoredState())||void 0===x?void 0:x.\u0275routerPageId)&&void 0!==C?C:this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(C){return this.location.subscribe(x=>{"popstate"===x.type&&C(x.url,x.state)})}handleRouterEvent(C,x){if(C instanceof mi)this.stateMemento=this.createStateMemento();else if(C instanceof Nn)this.rawUrlTree=x.initialUrl;else if(C instanceof ko){if("eager"===this.urlUpdateStrategy&&!x.extras.skipLocationChange){const J=this.urlHandlingStrategy.merge(x.finalUrl,x.initialUrl);this.setBrowserUrl(J,x)}}else C instanceof Co?(this.currentUrlTree=x.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(x.finalUrl,x.initialUrl),this.routerState=x.targetRouterState,"deferred"===this.urlUpdateStrategy&&(x.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,x))):C instanceof oi&&(C.code===ti.GuardRejected||C.code===ti.NoDataFromResolver)?this.restoreHistory(x):C instanceof kn?this.restoreHistory(x,!0):C instanceof $i&&(this.lastSuccessfulId=C.id,this.currentPageId=this.browserPageId)}setBrowserUrl(C,x){const J=this.urlSerializer.serialize(C);if(this.location.isCurrentPathEqualTo(J)||x.extras.replaceUrl){const ht={...x.extras.state,...this.generateNgRouterState(x.id,this.browserPageId)};this.location.replaceState(J,"",ht)}else{const ve={...x.extras.state,...this.generateNgRouterState(x.id,this.browserPageId+1)};this.location.go(J,"",ve)}}restoreHistory(C,x=!1){if("computed"===this.canceledNavigationResolution){const ve=this.currentPageId-this.browserPageId;0!==ve?this.location.historyGo(ve):this.currentUrlTree===C.finalUrl&&0===ve&&(this.resetState(C),this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(x&&this.resetState(C),this.resetUrlToCurrentUrlTree())}resetState(C){var x;this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,null!==(x=C.finalUrl)&&void 0!==x?x:this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(C,x){return"computed"===this.canceledNavigationResolution?{navigationId:C,\u0275routerPageId:x}:{navigationId:C}}}return(I=T).\u0275fac=(()=>{let R;return function(x){return(R||(R=d.xGo(I)))(x||I)}})(),I.\u0275prov=d.jDH({token:I,factory:I.\u0275fac,providedIn:"root"}),T})();var Vn=function(I){return I[I.COMPLETE=0]="COMPLETE",I[I.FAILED=1]="FAILED",I[I.REDIRECTING=2]="REDIRECTING",I}(Vn||{});function Kr(I,T){I.events.pipe((0,rt.p)(R=>R instanceof $i||R instanceof oi||R instanceof kn||R instanceof Nn),(0,en.T)(R=>R instanceof $i||R instanceof Nn?Vn.COMPLETE:R instanceof oi&&(R.code===ti.Redirect||R.code===ti.SupersededByNewNavigation)?Vn.REDIRECTING:Vn.FAILED),(0,rt.p)(R=>R!==Vn.REDIRECTING),(0,Be.s)(1)).subscribe(()=>{T()})}function Hi(I){throw I}const _i={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Gi={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let ki=(()=>{var I;class T{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){var C,x;this.disposed=!1,this.isNgZoneEnabled=!1,this.console=(0,d.WQX)(d.H3F),this.stateManager=(0,d.WQX)(Gr),this.options=(0,d.WQX)(Hs,{optional:!0})||{},this.pendingTasks=(0,d.WQX)(d.TgB),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=(0,d.WQX)(Fr),this.urlSerializer=(0,d.WQX)(Qr),this.location=(0,d.WQX)(Lt.aZ),this.urlHandlingStrategy=(0,d.WQX)(le),this._events=new Tt.B,this.errorHandler=this.options.errorHandler||Hi,this.navigated=!1,this.routeReuseStrategy=(0,d.WQX)(Yr),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=null!==(C=null===(x=(0,d.WQX)(Es,{optional:!0}))||void 0===x?void 0:x.flat())&&void 0!==C?C:[],this.componentInputBindingEnabled=!!(0,d.WQX)(Ln,{optional:!0}),this.eventsSubscription=new je.yU,this.isNgZoneEnabled=(0,d.WQX)(d.SKi)instanceof d.SKi&&d.SKi.isInAngularZone(),this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:J=>{this.console.warn(J)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){const C=this.navigationTransitions.events.subscribe(x=>{try{const J=this.navigationTransitions.currentTransition,ve=this.navigationTransitions.currentNavigation;if(null!==J&&null!==ve)if(this.stateManager.handleRouterEvent(x,ve),x instanceof oi&&x.code!==ti.Redirect&&x.code!==ti.SupersededByNewNavigation)this.navigated=!0;else if(x instanceof $i)this.navigated=!0;else if(x instanceof co){const ht=this.urlHandlingStrategy.merge(x.url,J.currentRawUrl),Yt={info:J.extras.info,skipLocationChange:J.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||Tr(J.source)};this.scheduleNavigation(ht,xr,null,Yt,{resolve:J.resolve,reject:J.reject,promise:J.promise})}(function zi(I){return!(I instanceof Co||I instanceof co)})(x)&&this._events.next(x)}catch(J){this.navigationTransitions.transitionAbortSubject.next(J)}});this.eventsSubscription.add(C)}resetRootComponentType(C){this.routerState.root.component=C,this.navigationTransitions.rootComponentType=C}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),xr,this.stateManager.restoredState())}setUpLocationChangeListener(){var C;null!==(C=this.nonRouterCurrentEntryChangeSubscription)&&void 0!==C||(this.nonRouterCurrentEntryChangeSubscription=this.stateManager.registerNonRouterCurrentEntryChangeListener((x,J)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(x,"popstate",J)},0)}))}navigateToSyncWithBrowser(C,x,J){const ve={replaceUrl:!0},ht=null!=J&&J.navigationId?J:null;if(J){const At={...J};delete At.navigationId,delete At.\u0275routerPageId,0!==Object.keys(At).length&&(ve.state=At)}const Yt=this.parseUrl(C);this.scheduleNavigation(Yt,x,ht,ve)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(C){this.config=C.map(Us),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(C,x={}){const{relativeTo:J,queryParams:ve,fragment:ht,queryParamsHandling:Yt,preserveFragment:At}=x,Tn=At?this.currentUrlTree.fragment:ht;let Si,hr=null;switch(Yt){case"merge":hr={...this.currentUrlTree.queryParams,...ve};break;case"preserve":hr=this.currentUrlTree.queryParams;break;default:hr=ve||null}null!==hr&&(hr=this.removeEmptyProps(hr));try{Si=St(J?J.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof C[0]||!C[0].startsWith("/"))&&(C=[]),Si=this.currentUrlTree.root}return lt(Si,C,hr,null!=Tn?Tn:null)}navigateByUrl(C,x={skipLocationChange:!1}){const J=wi(C)?C:this.parseUrl(C),ve=this.urlHandlingStrategy.merge(J,this.rawUrlTree);return this.scheduleNavigation(ve,xr,null,x)}navigate(C,x={skipLocationChange:!1}){return function Zr(I){for(let T=0;T(null!=ve&&(x[J]=ve),x),{})}scheduleNavigation(C,x,J,ve,ht){if(this.disposed)return Promise.resolve(!1);let Yt,At,Tn;ht?(Yt=ht.resolve,At=ht.reject,Tn=ht.promise):Tn=new Promise((Si,Br)=>{Yt=Si,At=Br});const hr=this.pendingTasks.add();return Kr(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(hr))}),this.navigationTransitions.handleNavigationRequest({source:x,restoredState:J,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:C,extras:ve,resolve:Yt,reject:At,promise:Tn,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),Tn.catch(Si=>Promise.reject(Si))}}return(I=T).\u0275fac=function(C){return new(C||I)},I.\u0275prov=d.jDH({token:I,factory:I.\u0275fac,providedIn:"root"}),T})(),Uo=(()=>{var I;class T{constructor(C,x,J,ve,ht,Yt){var At;this.router=C,this.route=x,this.tabIndexAttribute=J,this.renderer=ve,this.el=ht,this.locationStrategy=Yt,this.href=null,this.commands=null,this.onChanges=new Tt.B,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;const Tn=null===(At=ht.nativeElement.tagName)||void 0===At?void 0:At.toLowerCase();this.isAnchorElement="a"===Tn||"area"===Tn,this.isAnchorElement?this.subscription=C.events.subscribe(hr=>{hr instanceof $i&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(C){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",C)}ngOnChanges(C){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(C){null!=C?(this.commands=Array.isArray(C)?C:[C],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(C,x,J,ve,ht){const Yt=this.urlTree;return!!(null===Yt||this.isAnchorElement&&(0!==C||x||J||ve||ht||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(Yt,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info}),!this.isAnchorElement)}ngOnDestroy(){var C;null===(C=this.subscription)||void 0===C||C.unsubscribe()}updateHref(){var C;const x=this.urlTree;this.href=null!==x&&this.locationStrategy?null===(C=this.locationStrategy)||void 0===C?void 0:C.prepareExternalUrl(this.router.serializeUrl(x)):null;const J=null===this.href?null:(0,d.n$t)(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",J)}applyAttributeValue(C,x){const J=this.renderer,ve=this.el.nativeElement;null!==x?J.setAttribute(ve,C,x):J.removeAttribute(ve,C)}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}}return(I=T).\u0275fac=function(C){return new(C||I)(d.rXU(ki),d.rXU(te),d.kS0("tabindex"),d.rXU(d.sFG),d.rXU(d.aKT),d.rXU(Lt.hb))},I.\u0275dir=d.FsC({type:I,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(C,x){1&C&&d.bIt("click",function(ve){return x.onClick(ve.button,ve.ctrlKey,ve.shiftKey,ve.altKey,ve.metaKey)}),2&C&&d.BMQ("target",x.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[d.Mj6.HasDecoratorInputTransform,"preserveFragment","preserveFragment",d.L39],skipLocationChange:[d.Mj6.HasDecoratorInputTransform,"skipLocationChange","skipLocationChange",d.L39],replaceUrl:[d.Mj6.HasDecoratorInputTransform,"replaceUrl","replaceUrl",d.L39],routerLink:"routerLink"},standalone:!0,features:[d.GFd,d.OA$]}),T})();class gc{}let Ua=(()=>{var I;class T{preload(C,x){return x().pipe(me(()=>(0,ne.of)(null)))}}return(I=T).\u0275fac=function(C){return new(C||I)},I.\u0275prov=d.jDH({token:I,factory:I.\u0275fac,providedIn:"root"}),T})(),va=(()=>{var I;class T{constructor(C,x,J,ve,ht){this.router=C,this.injector=J,this.preloadingStrategy=ve,this.loader=ht}setUpPreloading(){this.subscription=this.router.events.pipe((0,rt.p)(C=>C instanceof $i),he(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(C,x){const J=[];for(const At of x){var ve,ht;At.providers&&!At._injector&&(At._injector=(0,d.Ol2)(At.providers,C,`Route: ${At.path}`));const Tn=null!==(ve=At._injector)&&void 0!==ve?ve:C,hr=null!==(ht=At._loadedInjector)&&void 0!==ht?ht:Tn;var Yt;(At.loadChildren&&!At._loadedRoutes&&void 0===At.canLoad||At.loadComponent&&!At._loadedComponent)&&J.push(this.preloadConfig(Tn,At)),(At.children||At._loadedRoutes)&&J.push(this.processRoutes(hr,null!==(Yt=At.children)&&void 0!==Yt?Yt:At._loadedRoutes))}return(0,Ie.H)(J).pipe(Ve())}preloadConfig(C,x){return this.preloadingStrategy.preload(x,()=>{let J;J=x.loadChildren&&void 0===x.canLoad?this.loader.loadChildren(C,x):(0,ne.of)(null);const ve=J.pipe((0,Fe.Z)(ht=>{var Yt;return null===ht?(0,ne.of)(void 0):(x._loadedRoutes=ht.routes,x._loadedInjector=ht.injector,this.processRoutes(null!==(Yt=ht.injector)&&void 0!==Yt?Yt:C,ht.routes))}));if(x.loadComponent&&!x._loadedComponent){const ht=this.loader.loadComponent(x);return(0,Ie.H)([ve,ht]).pipe(Ve())}return ve})}}return(I=T).\u0275fac=function(C){return new(C||I)(d.KVO(ki),d.KVO(d.Ql9),d.KVO(d.uvJ),d.KVO(gc),d.KVO(D))},I.\u0275prov=d.jDH({token:I,factory:I.\u0275fac,providedIn:"root"}),T})();const es=new d.nKC("");let wo=(()=>{var I;class T{constructor(C,x,J,ve,ht={}){this.urlSerializer=C,this.transitions=x,this.viewportScroller=J,this.zone=ve,this.options=ht,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},this.environmentInjector=(0,d.WQX)(d.uvJ),ht.scrollPositionRestoration||(ht.scrollPositionRestoration="disabled"),ht.anchorScrolling||(ht.anchorScrolling="disabled")}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(C=>{C instanceof mi?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=C.navigationTrigger,this.restoredId=C.restoredState?C.restoredState.navigationId:0):C instanceof $i?(this.lastId=C.id,this.scheduleScrollEvent(C,this.urlSerializer.parse(C.urlAfterRedirects).fragment)):C instanceof Nn&&C.code===mr.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(C,this.urlSerializer.parse(C.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(C=>{C instanceof Ao&&(C.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(C.position):C.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(C.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(C,x){var J=this;this.zone.runOutsideAngular((0,g.A)(function*(){yield new Promise(ve=>{setTimeout(()=>{ve()}),(0,d.mal)(()=>{ve()},{injector:J.environmentInjector})}),J.zone.run(()=>{J.transitions.events.next(new Ao(C,"popstate"===J.lastSource?J.store[J.restoredId]:null,x))})}))}ngOnDestroy(){var C,x;null===(C=this.routerEventsSubscription)||void 0===C||C.unsubscribe(),null===(x=this.scrollEventsSubscription)||void 0===x||x.unsubscribe()}}return(I=T).\u0275fac=function(C){d.QTQ()},I.\u0275prov=d.jDH({token:I,factory:I.\u0275fac}),T})();function Lr(I,T){return{\u0275kind:I,\u0275providers:T}}function No(){const I=(0,d.WQX)(d.zZn);return T=>{var R,C;const x=I.get(d.o8S);if(T!==x.components[0])return;const J=I.get(ki),ve=I.get($o);1===I.get(ya)&&J.initialNavigation(),null===(R=I.get(Ur,null,d.$GK.Optional))||void 0===R||R.setUpPreloading(),null===(C=I.get(es,null,d.$GK.Optional))||void 0===C||C.init(),J.resetRootComponentType(x.componentTypes[0]),ve.closed||(ve.next(),ve.complete(),ve.unsubscribe())}}const $o=new d.nKC("",{factory:()=>new Tt.B}),ya=new d.nKC("",{providedIn:"root",factory:()=>1}),Ur=new d.nKC("");function _o(I){return Lr(0,[{provide:Ur,useExisting:va},{provide:gc,useExisting:I}])}function Hl(I){return Lr(9,[{provide:Ft,useValue:Un},{provide:an,useValue:{skipNextTransition:!(null==I||!I.skipInitialTransition),...I}}])}const Ru=new d.nKC("ROUTER_FORROOT_GUARD"),Ea=[Lt.aZ,{provide:Qr,useClass:Jr},ki,S,{provide:te,useFactory:function jl(I){return I.routerState.root},deps:[ki]},D,[]];let Mu=(()=>{var I;class T{constructor(C){}static forRoot(C,x){return{ngModule:T,providers:[Ea,[],{provide:Es,multi:!0,useValue:C},{provide:Ru,useFactory:mc,deps:[[ki,new d.Xx1,new d.kdw]]},{provide:Hs,useValue:x||{}},null!=x&&x.useHash?{provide:Lt.hb,useClass:Lt.fw}:{provide:Lt.hb,useClass:Lt.Sm},{provide:es,useFactory:()=>{const I=(0,d.WQX)(Lt.Xr),T=(0,d.WQX)(d.SKi),R=(0,d.WQX)(Hs),C=(0,d.WQX)(Fr),x=(0,d.WQX)(Qr);return R.scrollOffset&&I.setOffset(R.scrollOffset),new wo(x,C,I,T,R)}},null!=x&&x.preloadingStrategy?_o(x.preloadingStrategy).\u0275providers:[],null!=x&&x.initialNavigation?qs(x):[],null!=x&&x.bindToComponentInputs?Lr(8,[In,{provide:Ln,useExisting:In}]).\u0275providers:[],null!=x&&x.enableViewTransitions?Hl().\u0275providers:[],[{provide:Xs,useFactory:No},{provide:d.iLQ,multi:!0,useExisting:Xs}]]}}static forChild(C){return{ngModule:T,providers:[{provide:Es,multi:!0,useValue:C}]}}}return(I=T).\u0275fac=function(C){return new(C||I)(d.KVO(Ru,8))},I.\u0275mod=d.$C({type:I}),I.\u0275inj=d.G2t({}),T})();function mc(I){return"guarded"}function qs(I){return["disabled"===I.initialNavigation?Lr(3,[{provide:d.hnV,multi:!0,useFactory:()=>{const T=(0,d.WQX)(ki);return()=>{T.setUpLocationChangeListener()}}},{provide:ya,useValue:2}]).\u0275providers:[],"enabledBlocking"===I.initialNavigation?Lr(2,[{provide:ya,useValue:0},{provide:d.hnV,multi:!0,deps:[d.zZn],useFactory:T=>{const R=T.get(Lt.hj,Promise.resolve());return()=>R.then(()=>new Promise(C=>{const x=T.get(ki),J=T.get($o);Kr(x,()=>{C(!0)}),T.get(Fr).afterPreactivation=()=>(C(!0),J.closed?(0,ne.of)(void 0):J),x.initialNavigation()}))}}]).\u0275providers:[]]}const Xs=new d.nKC("")},7852:(En,bt,B)=>{"use strict";B.d(bt,{MF:()=>Qr,j6:()=>_r,xZ:()=>Zn,om:()=>Mr,Sx:()=>He,Dk:()=>dt,Wp:()=>Jr,KO:()=>de});var g=B(467),d=B(1362),ge=B(8041),Oe=B(1076);const Q=(St,lt)=>lt.some($t=>St instanceof $t);let Ie,ne;const Te=new WeakMap,_e=new WeakMap,Fe=new WeakMap,Ue=new WeakMap,Ve=new WeakMap;let ct={get(St,lt,$t){if(St instanceof IDBTransaction){if("done"===lt)return _e.get(St);if("objectStoreNames"===lt)return St.objectStoreNames||Fe.get(St);if("store"===lt)return $t.objectStoreNames[1]?void 0:$t.objectStore($t.objectStoreNames[0])}return vt(St[lt])},set:(St,lt,$t)=>(St[lt]=$t,!0),has:(St,lt)=>St instanceof IDBTransaction&&("done"===lt||"store"===lt)||lt in St};function mt(St){return"function"==typeof St?function Mt(St){return St!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?function tt(){return ne||(ne=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}().includes(St)?function(...lt){return St.apply(Re(this),lt),vt(Te.get(this))}:function(...lt){return vt(St.apply(Re(this),lt))}:function(lt,...$t){const fn=St.call(Re(this),lt,...$t);return Fe.set(fn,lt.sort?lt.sort():[lt]),vt(fn)}}(St):(St instanceof IDBTransaction&&function gt(St){if(_e.has(St))return;const lt=new Promise(($t,fn)=>{const Wn=()=>{St.removeEventListener("complete",Y),St.removeEventListener("error",Z),St.removeEventListener("abort",Z)},Y=()=>{$t(),Wn()},Z=()=>{fn(St.error||new DOMException("AbortError","AbortError")),Wn()};St.addEventListener("complete",Y),St.addEventListener("error",Z),St.addEventListener("abort",Z)});_e.set(St,lt)}(St),Q(St,function Qe(){return Ie||(Ie=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}())?new Proxy(St,ct):St)}function vt(St){if(St instanceof IDBRequest)return function Ye(St){const lt=new Promise(($t,fn)=>{const Wn=()=>{St.removeEventListener("success",Y),St.removeEventListener("error",Z)},Y=()=>{$t(vt(St.result)),Wn()},Z=()=>{fn(St.error),Wn()};St.addEventListener("success",Y),St.addEventListener("error",Z)});return lt.then($t=>{$t instanceof IDBCursor&&Te.set($t,St)}).catch(()=>{}),Ve.set(lt,St),lt}(St);if(Ue.has(St))return Ue.get(St);const lt=mt(St);return lt!==St&&(Ue.set(St,lt),Ve.set(lt,St)),lt}const Re=St=>Ve.get(St),Ct=["get","getKey","getAll","getAllKeys","count"],kt=["put","add","delete","clear"],ze=new Map;function Tt(St,lt){if(!(St instanceof IDBDatabase)||lt in St||"string"!=typeof lt)return;if(ze.get(lt))return ze.get(lt);const $t=lt.replace(/FromIndex$/,""),fn=lt!==$t,Wn=kt.includes($t);if(!($t in(fn?IDBIndex:IDBObjectStore).prototype)||!Wn&&!Ct.includes($t))return;const Y=function(){var Z=(0,g.A)(function*(Ne,...X){const we=this.transaction(Ne,Wn?"readwrite":"readonly");let ot=we.store;return fn&&(ot=ot.index(X.shift())),(yield Promise.all([ot[$t](...X),Wn&&we.done]))[0]});return function(X){return Z.apply(this,arguments)}}();return ze.set(lt,Y),Y}!function at(St){ct=St(ct)}(St=>({...St,get:(lt,$t,fn)=>Tt(lt,$t)||St.get(lt,$t,fn),has:(lt,$t)=>!!Tt(lt,$t)||St.has(lt,$t)}));class Lt{constructor(lt){this.container=lt}getPlatformInfoString(){return this.container.getProviders().map($t=>{if(function en(St){const lt=St.getComponent();return"VERSION"===(null==lt?void 0:lt.type)}($t)){const fn=$t.getImmediate();return`${fn.library}/${fn.version}`}return null}).filter($t=>$t).join(" ")}}const Dt="@firebase/app",Pt=new ge.Vy("@firebase/app"),gn="[DEFAULT]",mn={[Dt]:"fire-core","@firebase/app-compat":"fire-core-compat","@firebase/analytics":"fire-analytics","@firebase/analytics-compat":"fire-analytics-compat","@firebase/app-check":"fire-app-check","@firebase/app-check-compat":"fire-app-check-compat","@firebase/auth":"fire-auth","@firebase/auth-compat":"fire-auth-compat","@firebase/database":"fire-rtdb","@firebase/database-compat":"fire-rtdb-compat","@firebase/functions":"fire-fn","@firebase/functions-compat":"fire-fn-compat","@firebase/installations":"fire-iid","@firebase/installations-compat":"fire-iid-compat","@firebase/messaging":"fire-fcm","@firebase/messaging-compat":"fire-fcm-compat","@firebase/performance":"fire-perf","@firebase/performance-compat":"fire-perf-compat","@firebase/remote-config":"fire-rc","@firebase/remote-config-compat":"fire-rc-compat","@firebase/storage":"fire-gcs","@firebase/storage-compat":"fire-gcs-compat","@firebase/firestore":"fire-fst","@firebase/firestore-compat":"fire-fst-compat","@firebase/vertexai-preview":"fire-vertex","fire-js":"fire-js",firebase:"fire-js-all"},Jt=new Map,Wt=new Map,pr=new Map;function wr(St,lt){try{St.container.addComponent(lt)}catch($t){Pt.debug(`Component ${lt.name} failed to register with FirebaseApp ${St.name}`,$t)}}function Mr(St){const lt=St.name;if(pr.has(lt))return Pt.debug(`There were multiple attempts to register component ${lt}.`),!1;pr.set(lt,St);for(const $t of Jt.values())wr($t,St);for(const $t of Wt.values())wr($t,St);return!0}function _r(St,lt){const $t=St.container.getProvider("heartbeat").getImmediate({optional:!0});return $t&&$t.triggerHeartbeat(),St.container.getProvider(lt)}function Zn(St){return void 0!==St.settings}const tr=new Oe.FA("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.","invalid-log-argument":"First argument to `onLog` must be null or a function.","idb-open":"Error thrown when opening IndexedDB. Original error: {$originalErrorMessage}.","idb-get":"Error thrown when reading from IndexedDB. Original error: {$originalErrorMessage}.","idb-set":"Error thrown when writing to IndexedDB. Original error: {$originalErrorMessage}.","idb-delete":"Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}.","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 Ir{constructor(lt,$t,fn){this._isDeleted=!1,this._options=Object.assign({},lt),this._config=Object.assign({},$t),this._name=$t.name,this._automaticDataCollectionEnabled=$t.automaticDataCollectionEnabled,this._container=fn,this.container.addComponent(new d.uA("app",()=>this,"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(lt){this.checkDestroyed(),this._automaticDataCollectionEnabled=lt}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(lt){this._isDeleted=lt}checkDestroyed(){if(this.isDeleted)throw tr.create("app-deleted",{appName:this._name})}}const Qr="10.12.2";function Jr(St,lt={}){let $t=St;"object"!=typeof lt&&(lt={name:lt});const fn=Object.assign({name:gn,automaticDataCollectionEnabled:!1},lt),Wn=fn.name;if("string"!=typeof Wn||!Wn)throw tr.create("bad-app-name",{appName:String(Wn)});if($t||($t=(0,Oe.T9)()),!$t)throw tr.create("no-options");const Y=Jt.get(Wn);if(Y){if((0,Oe.bD)($t,Y.options)&&(0,Oe.bD)(fn,Y.config))return Y;throw tr.create("duplicate-app",{appName:Wn})}const Z=new d.h1(Wn);for(const X of pr.values())Z.addComponent(X);const Ne=new Ir($t,fn,Z);return Jt.set(Wn,Ne),Ne}function He(St=gn){const lt=Jt.get(St);if(!lt&&St===gn&&(0,Oe.T9)())return Jr();if(!lt)throw tr.create("no-app",{appName:St});return lt}function dt(){return Array.from(Jt.values())}function de(St,lt,$t){var fn;let Wn=null!==(fn=mn[St])&&void 0!==fn?fn:St;$t&&(Wn+=`-${$t}`);const Y=Wn.match(/\s|\//),Z=lt.match(/\s|\//);if(Y||Z){const Ne=[`Unable to register library "${Wn}" with version "${lt}":`];return Y&&Ne.push(`library name "${Wn}" contains illegal characters (whitespace or "/")`),Y&&Z&&Ne.push("and"),Z&&Ne.push(`version name "${lt}" contains illegal characters (whitespace or "/")`),void Pt.warn(Ne.join(" "))}Mr(new d.uA(`${Wn}-version`,()=>({library:Wn,version:lt}),"VERSION"))}const it="firebase-heartbeat-database",hn=1,Mn="firebase-heartbeat-store";let Kn=null;function gr(){return Kn||(Kn=function je(St,lt,{blocked:$t,upgrade:fn,blocking:Wn,terminated:Y}={}){const Z=indexedDB.open(St,lt),Ne=vt(Z);return fn&&Z.addEventListener("upgradeneeded",X=>{fn(vt(Z.result),X.oldVersion,X.newVersion,vt(Z.transaction),X)}),$t&&Z.addEventListener("blocked",X=>$t(X.oldVersion,X.newVersion,X)),Ne.then(X=>{Y&&X.addEventListener("close",()=>Y()),Wn&&X.addEventListener("versionchange",we=>Wn(we.oldVersion,we.newVersion,we))}).catch(()=>{}),Ne}(it,hn,{upgrade:(St,lt)=>{if(0===lt)try{St.createObjectStore(Mn)}catch($t){console.warn($t)}}}).catch(St=>{throw tr.create("idb-open",{originalErrorMessage:St.message})})),Kn}function ri(){return(ri=(0,g.A)(function*(St){try{const $t=(yield gr()).transaction(Mn),fn=yield $t.objectStore(Mn).get(yr(St));return yield $t.done,fn}catch(lt){if(lt instanceof Oe.g)Pt.warn(lt.message);else{const $t=tr.create("idb-get",{originalErrorMessage:null==lt?void 0:lt.message});Pt.warn($t.message)}}})).apply(this,arguments)}function xn(St,lt){return wn.apply(this,arguments)}function wn(){return(wn=(0,g.A)(function*(St,lt){try{const fn=(yield gr()).transaction(Mn,"readwrite");yield fn.objectStore(Mn).put(lt,yr(St)),yield fn.done}catch($t){if($t instanceof Oe.g)Pt.warn($t.message);else{const fn=tr.create("idb-set",{originalErrorMessage:null==$t?void 0:$t.message});Pt.warn(fn.message)}}})).apply(this,arguments)}function yr(St){return`${St.name}!${St.options.appId}`}class pi{constructor(lt){this.container=lt,this._heartbeatsCache=null;const $t=this.container.getProvider("app").getImmediate();this._storage=new Xi($t),this._heartbeatsCachePromise=this._storage.read().then(fn=>(this._heartbeatsCache=fn,fn))}triggerHeartbeat(){var lt=this;return(0,g.A)(function*(){var $t,fn;const Y=lt.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),Z=Li();if((null!=(null===($t=lt._heartbeatsCache)||void 0===$t?void 0:$t.heartbeats)||(lt._heartbeatsCache=yield lt._heartbeatsCachePromise,null!=(null===(fn=lt._heartbeatsCache)||void 0===fn?void 0:fn.heartbeats)))&<._heartbeatsCache.lastSentHeartbeatDate!==Z&&!lt._heartbeatsCache.heartbeats.some(Ne=>Ne.date===Z))return lt._heartbeatsCache.heartbeats.push({date:Z,agent:Y}),lt._heartbeatsCache.heartbeats=lt._heartbeatsCache.heartbeats.filter(Ne=>{const X=new Date(Ne.date).valueOf();return Date.now()-X<=2592e6}),lt._storage.overwrite(lt._heartbeatsCache)})()}getHeartbeatsHeader(){var lt=this;return(0,g.A)(function*(){var $t;if(null===lt._heartbeatsCache&&(yield lt._heartbeatsCachePromise),null==(null===($t=lt._heartbeatsCache)||void 0===$t?void 0:$t.heartbeats)||0===lt._heartbeatsCache.heartbeats.length)return"";const fn=Li(),{heartbeatsToSend:Wn,unsentEntries:Y}=function lr(St,lt=1024){const $t=[];let fn=St.slice();for(const Wn of St){const Y=$t.find(Z=>Z.agent===Wn.agent);if(Y){if(Y.dates.push(Wn.date),wi($t)>lt){Y.dates.pop();break}}else if($t.push({agent:Wn.agent,dates:[Wn.date]}),wi($t)>lt){$t.pop();break}fn=fn.slice(1)}return{heartbeatsToSend:$t,unsentEntries:fn}}(lt._heartbeatsCache.heartbeats),Z=(0,Oe.Uj)(JSON.stringify({version:2,heartbeats:Wn}));return lt._heartbeatsCache.lastSentHeartbeatDate=fn,Y.length>0?(lt._heartbeatsCache.heartbeats=Y,yield lt._storage.overwrite(lt._heartbeatsCache)):(lt._heartbeatsCache.heartbeats=[],lt._storage.overwrite(lt._heartbeatsCache)),Z})()}}function Li(){return(new Date).toISOString().substring(0,10)}class Xi{constructor(lt){this.app=lt,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}runIndexedDBEnvironmentCheck(){return(0,g.A)(function*(){return!!(0,Oe.zW)()&&(0,Oe.eX)().then(()=>!0).catch(()=>!1)})()}read(){var lt=this;return(0,g.A)(function*(){if(yield lt._canUseIndexedDBPromise){const fn=yield function ur(St){return ri.apply(this,arguments)}(lt.app);return null!=fn&&fn.heartbeats?fn:{heartbeats:[]}}return{heartbeats:[]}})()}overwrite(lt){var $t=this;return(0,g.A)(function*(){var fn;if(yield $t._canUseIndexedDBPromise){const Y=yield $t.read();return xn($t.app,{lastSentHeartbeatDate:null!==(fn=lt.lastSentHeartbeatDate)&&void 0!==fn?fn:Y.lastSentHeartbeatDate,heartbeats:lt.heartbeats})}})()}add(lt){var $t=this;return(0,g.A)(function*(){var fn;if(yield $t._canUseIndexedDBPromise){const Y=yield $t.read();return xn($t.app,{lastSentHeartbeatDate:null!==(fn=lt.lastSentHeartbeatDate)&&void 0!==fn?fn:Y.lastSentHeartbeatDate,heartbeats:[...Y.heartbeats,...lt.heartbeats]})}})()}}function wi(St){return(0,Oe.Uj)(JSON.stringify({version:2,heartbeats:St})).length}!function gi(St){Mr(new d.uA("platform-logger",lt=>new Lt(lt),"PRIVATE")),Mr(new d.uA("heartbeat",lt=>new pi(lt),"PRIVATE")),de(Dt,"0.10.5",St),de(Dt,"0.10.5","esm2017"),de("fire-js","")}("")},1362:(En,bt,B)=>{"use strict";B.d(bt,{h1:()=>Qe,uA:()=>ge});var g=B(467),d=B(1076);class ge{constructor(Te,_e,Fe){this.name=Te,this.instanceFactory=_e,this.type=Fe,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(Te){return this.instantiationMode=Te,this}setMultipleInstances(Te){return this.multipleInstances=Te,this}setServiceProps(Te){return this.serviceProps=Te,this}setInstanceCreatedCallback(Te){return this.onInstanceCreated=Te,this}}const Oe="[DEFAULT]";class Q{constructor(Te,_e){this.name=Te,this.container=_e,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(Te){const _e=this.normalizeInstanceIdentifier(Te);if(!this.instancesDeferred.has(_e)){const Fe=new d.cY;if(this.instancesDeferred.set(_e,Fe),this.isInitialized(_e)||this.shouldAutoInitialize())try{const Ue=this.getOrInitializeService({instanceIdentifier:_e});Ue&&Fe.resolve(Ue)}catch{}}return this.instancesDeferred.get(_e).promise}getImmediate(Te){var _e;const Fe=this.normalizeInstanceIdentifier(null==Te?void 0:Te.identifier),Ue=null!==(_e=null==Te?void 0:Te.optional)&&void 0!==_e&&_e;if(!this.isInitialized(Fe)&&!this.shouldAutoInitialize()){if(Ue)return null;throw Error(`Service ${this.name} is not available`)}try{return this.getOrInitializeService({instanceIdentifier:Fe})}catch(Ve){if(Ue)return null;throw Ve}}getComponent(){return this.component}setComponent(Te){if(Te.name!==this.name)throw Error(`Mismatching Component ${Te.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=Te,this.shouldAutoInitialize()){if(function ne(tt){return"EAGER"===tt.instantiationMode}(Te))try{this.getOrInitializeService({instanceIdentifier:Oe})}catch{}for(const[_e,Fe]of this.instancesDeferred.entries()){const Ue=this.normalizeInstanceIdentifier(_e);try{const Ve=this.getOrInitializeService({instanceIdentifier:Ue});Fe.resolve(Ve)}catch{}}}}clearInstance(Te=Oe){this.instancesDeferred.delete(Te),this.instancesOptions.delete(Te),this.instances.delete(Te)}delete(){var Te=this;return(0,g.A)(function*(){const _e=Array.from(Te.instances.values());yield Promise.all([..._e.filter(Fe=>"INTERNAL"in Fe).map(Fe=>Fe.INTERNAL.delete()),..._e.filter(Fe=>"_delete"in Fe).map(Fe=>Fe._delete())])})()}isComponentSet(){return null!=this.component}isInitialized(Te=Oe){return this.instances.has(Te)}getOptions(Te=Oe){return this.instancesOptions.get(Te)||{}}initialize(Te={}){const{options:_e={}}=Te,Fe=this.normalizeInstanceIdentifier(Te.instanceIdentifier);if(this.isInitialized(Fe))throw Error(`${this.name}(${Fe}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);const Ue=this.getOrInitializeService({instanceIdentifier:Fe,options:_e});for(const[Ve,Ye]of this.instancesDeferred.entries())Fe===this.normalizeInstanceIdentifier(Ve)&&Ye.resolve(Ue);return Ue}onInit(Te,_e){var Fe;const Ue=this.normalizeInstanceIdentifier(_e),Ve=null!==(Fe=this.onInitCallbacks.get(Ue))&&void 0!==Fe?Fe:new Set;Ve.add(Te),this.onInitCallbacks.set(Ue,Ve);const Ye=this.instances.get(Ue);return Ye&&Te(Ye,Ue),()=>{Ve.delete(Te)}}invokeOnInitCallbacks(Te,_e){const Fe=this.onInitCallbacks.get(_e);if(Fe)for(const Ue of Fe)try{Ue(Te,_e)}catch{}}getOrInitializeService({instanceIdentifier:Te,options:_e={}}){let Fe=this.instances.get(Te);if(!Fe&&this.component&&(Fe=this.component.instanceFactory(this.container,{instanceIdentifier:(tt=Te,tt===Oe?void 0:tt),options:_e}),this.instances.set(Te,Fe),this.instancesOptions.set(Te,_e),this.invokeOnInitCallbacks(Fe,Te),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,Te,Fe)}catch{}var tt;return Fe||null}normalizeInstanceIdentifier(Te=Oe){return this.component?this.component.multipleInstances?Te:Oe:Te}shouldAutoInitialize(){return!!this.component&&"EXPLICIT"!==this.component.instantiationMode}}class Qe{constructor(Te){this.name=Te,this.providers=new Map}addComponent(Te){const _e=this.getProvider(Te.name);if(_e.isComponentSet())throw new Error(`Component ${Te.name} has already been registered with ${this.name}`);_e.setComponent(Te)}addOrOverwriteComponent(Te){this.getProvider(Te.name).isComponentSet()&&this.providers.delete(Te.name),this.addComponent(Te)}getProvider(Te){if(this.providers.has(Te))return this.providers.get(Te);const _e=new Q(Te,this);return this.providers.set(Te,_e),_e}getProviders(){return Array.from(this.providers.values())}}},8041:(En,bt,B)=>{"use strict";B.d(bt,{$b:()=>d,Vy:()=>ne});const g=[];var d=function(Te){return Te[Te.DEBUG=0]="DEBUG",Te[Te.VERBOSE=1]="VERBOSE",Te[Te.INFO=2]="INFO",Te[Te.WARN=3]="WARN",Te[Te.ERROR=4]="ERROR",Te[Te.SILENT=5]="SILENT",Te}(d||{});const ge={debug:d.DEBUG,verbose:d.VERBOSE,info:d.INFO,warn:d.WARN,error:d.ERROR,silent:d.SILENT},Oe=d.INFO,Q={[d.DEBUG]:"log",[d.VERBOSE]:"log",[d.INFO]:"info",[d.WARN]:"warn",[d.ERROR]:"error"},Ie=(Te,_e,...Fe)=>{if(_e{"use strict";B.d(bt,{Yq:()=>tn,TS:()=>Le,sR:()=>yt,el:()=>wn,Sb:()=>Ir,QE:()=>Li,CF:()=>Rn,Rg:()=>hn,p4:()=>lr,jM:()=>fn,q9:()=>er,Kb:()=>Wn,CE:()=>yr,pF:()=>Ei,fL:()=>wi,YV:()=>ur,er:()=>Xi,z3:()=>gi});var g=B(467),d=B(9842),ge=B(4438),Oe=B(845),Q=B(177),Ie=B(5531),ne=B(4442);var Lt=B(1413),en=B(3726),Dt=B(4412),Be=B(4572),Pt=B(7673),rt=B(1635),Pe=B(5964),z=B(5558),q=B(3669),ie=B(9974),he=B(4360);function me(Y,Z){return Y===Z}var Ae=B(4341);const ut=["tabsInner"];let bn=(()=>{var Y;class Z{constructor(X,we){(0,d.A)(this,"doc",void 0),(0,d.A)(this,"_readyPromise",void 0),(0,d.A)(this,"win",void 0),(0,d.A)(this,"backButton",new Lt.B),(0,d.A)(this,"keyboardDidShow",new Lt.B),(0,d.A)(this,"keyboardDidHide",new Lt.B),(0,d.A)(this,"pause",new Lt.B),(0,d.A)(this,"resume",new Lt.B),(0,d.A)(this,"resize",new Lt.B),this.doc=X,we.run(()=>{var ot;let Kt;this.win=X.defaultView,this.backButton.subscribeWithPriority=function(cn,Pn){return this.subscribe(Cr=>Cr.register(cn,Hn=>we.run(()=>Pn(Hn))))},qn(this.pause,X,"pause",we),qn(this.resume,X,"resume",we),qn(this.backButton,X,"ionBackButton",we),qn(this.resize,this.win,"resize",we),qn(this.keyboardDidShow,this.win,"ionKeyboardDidShow",we),qn(this.keyboardDidHide,this.win,"ionKeyboardDidHide",we),this._readyPromise=new Promise(cn=>{Kt=cn}),null!==(ot=this.win)&&void 0!==ot&&ot.cordova?X.addEventListener("deviceready",()=>{Kt("cordova")},{once:!0}):Kt("dom")})}is(X){return(0,Ie.a)(this.win,X)}platforms(){return(0,Ie.g)(this.win)}ready(){return this._readyPromise}get isRTL(){return"rtl"===this.doc.dir}getQueryParam(X){return $n(this.win.location.href,X)}isLandscape(){return!this.isPortrait()}isPortrait(){var X,we;return null===(X=(we=this.win).matchMedia)||void 0===X?void 0:X.call(we,"(orientation: portrait)").matches}testUserAgent(X){const we=this.win.navigator;return!!(null!=we&&we.userAgent&&we.userAgent.indexOf(X)>=0)}url(){return this.win.location.href}width(){return this.win.innerWidth}height(){return this.win.innerHeight}}return Y=Z,(0,d.A)(Z,"\u0275fac",function(X){return new(X||Y)(ge.KVO(Q.qQ),ge.KVO(ge.SKi))}),(0,d.A)(Z,"\u0275prov",ge.jDH({token:Y,factory:Y.\u0275fac,providedIn:"root"})),Z})();const $n=(Y,Z)=>{Z=Z.replace(/[[\]\\]/g,"\\$&");const X=new RegExp("[\\?&]"+Z+"=([^&#]*)").exec(Y);return X?decodeURIComponent(X[1].replace(/\+/g," ")):null},qn=(Y,Z,Ne,X)=>{Z&&Z.addEventListener(Ne,we=>{X.run(()=>{Y.next(null!=we?we.detail:void 0)})})};let er=(()=>{var Y;class Z{constructor(X,we,ot,Kt){(0,d.A)(this,"location",void 0),(0,d.A)(this,"serializer",void 0),(0,d.A)(this,"router",void 0),(0,d.A)(this,"topOutlet",void 0),(0,d.A)(this,"direction",ir),(0,d.A)(this,"animated",Yn),(0,d.A)(this,"animationBuilder",void 0),(0,d.A)(this,"guessDirection","forward"),(0,d.A)(this,"guessAnimation",void 0),(0,d.A)(this,"lastNavId",-1),this.location=we,this.serializer=ot,this.router=Kt,Kt&&Kt.events.subscribe(cn=>{if(cn instanceof Oe.Z){const Pn=cn.restoredState?cn.restoredState.navigationId:cn.id;this.guessDirection=this.guessAnimation=Pn{this.pop(),cn()})}navigateForward(X,we={}){return this.setDirection("forward",we.animated,we.animationDirection,we.animation),this.navigate(X,we)}navigateBack(X,we={}){return this.setDirection("back",we.animated,we.animationDirection,we.animation),this.navigate(X,we)}navigateRoot(X,we={}){return this.setDirection("root",we.animated,we.animationDirection,we.animation),this.navigate(X,we)}back(X={animated:!0,animationDirection:"back"}){return this.setDirection("back",X.animated,X.animationDirection,X.animation),this.location.back()}pop(){var X=this;return(0,g.A)(function*(){let we=X.topOutlet;for(;we;){if(yield we.pop())return!0;we=we.parentOutlet}return!1})()}setDirection(X,we,ot,Kt){this.direction=X,this.animated=yn(X,we,ot),this.animationBuilder=Kt}setTopOutlet(X){this.topOutlet=X}consumeTransition(){let we,X="root";const ot=this.animationBuilder;return"auto"===this.direction?(X=this.guessDirection,we=this.guessAnimation):(we=this.animated,X=this.direction),this.direction=ir,this.animated=Yn,this.animationBuilder=void 0,{direction:X,animation:we,animationBuilder:ot}}navigate(X,we){if(Array.isArray(X))return this.router.navigate(X,we);{const ot=this.serializer.parse(X.toString());return void 0!==we.queryParams&&(ot.queryParams={...we.queryParams}),void 0!==we.fragment&&(ot.fragment=we.fragment),this.router.navigateByUrl(ot,we)}}}return Y=Z,(0,d.A)(Z,"\u0275fac",function(X){return new(X||Y)(ge.KVO(bn),ge.KVO(Q.aZ),ge.KVO(Oe.Sd),ge.KVO(Oe.Ix,8))}),(0,d.A)(Z,"\u0275prov",ge.jDH({token:Y,factory:Y.\u0275fac,providedIn:"root"})),Z})();const yn=(Y,Z,Ne)=>{if(!1!==Z){if(void 0!==Ne)return Ne;if("forward"===Y||"back"===Y)return Y;if("root"===Y&&!0===Z)return"forward"}},ir="auto",Yn=void 0;let Le=(()=>{var Y;class Z{get(X,we){const ot=Ot();return ot?ot.get(X,we):null}getBoolean(X,we){const ot=Ot();return!!ot&&ot.getBoolean(X,we)}getNumber(X,we){const ot=Ot();return ot?ot.getNumber(X,we):0}}return Y=Z,(0,d.A)(Z,"\u0275fac",function(X){return new(X||Y)}),(0,d.A)(Z,"\u0275prov",ge.jDH({token:Y,factory:Y.\u0275fac,providedIn:"root"})),Z})();const yt=new ge.nKC("USERCONFIG"),Ot=()=>{if(typeof window<"u"){const Y=window.Ionic;if(null!=Y&&Y.config)return Y.config}return null};class Qt{constructor(Z={}){(0,d.A)(this,"data",void 0),this.data=Z,console.warn("[Ionic Warning]: NavParams has been deprecated in favor of using Angular's input API. Developers should migrate to either the @Input decorator or the Signals-based input API.")}get(Z){return this.data[Z]}}let tn=(()=>{var Y;class Z{constructor(){(0,d.A)(this,"zone",(0,ge.WQX)(ge.SKi)),(0,d.A)(this,"applicationRef",(0,ge.WQX)(ge.o8S)),(0,d.A)(this,"config",(0,ge.WQX)(yt))}create(X,we,ot){var Kt;return new Ar(X,we,this.applicationRef,this.zone,ot,null!==(Kt=this.config.useSetInputAPI)&&void 0!==Kt&&Kt)}}return Y=Z,(0,d.A)(Z,"\u0275fac",function(X){return new(X||Y)}),(0,d.A)(Z,"\u0275prov",ge.jDH({token:Y,factory:Y.\u0275fac})),Z})();class Ar{constructor(Z,Ne,X,we,ot,Kt){(0,d.A)(this,"environmentInjector",void 0),(0,d.A)(this,"injector",void 0),(0,d.A)(this,"applicationRef",void 0),(0,d.A)(this,"zone",void 0),(0,d.A)(this,"elementReferenceKey",void 0),(0,d.A)(this,"enableSignalsSupport",void 0),(0,d.A)(this,"elRefMap",new WeakMap),(0,d.A)(this,"elEventsMap",new WeakMap),this.environmentInjector=Z,this.injector=Ne,this.applicationRef=X,this.zone=we,this.elementReferenceKey=ot,this.enableSignalsSupport=Kt}attachViewToDom(Z,Ne,X,we){return this.zone.run(()=>new Promise(ot=>{const Kt={...X};void 0!==this.elementReferenceKey&&(Kt[this.elementReferenceKey]=Z),ot(gn(this.zone,this.environmentInjector,this.injector,this.applicationRef,this.elRefMap,this.elEventsMap,Z,Ne,Kt,we,this.elementReferenceKey,this.enableSignalsSupport))}))}removeViewFromDom(Z,Ne){return this.zone.run(()=>new Promise(X=>{const we=this.elRefMap.get(Ne);if(we){we.destroy(),this.elRefMap.delete(Ne);const ot=this.elEventsMap.get(Ne);ot&&(ot(),this.elEventsMap.delete(Ne))}X()}))}}const gn=(Y,Z,Ne,X,we,ot,Kt,cn,Pn,Cr,Hn,Ui)=>{const Ai=ge.zZn.create({providers:pr(Pn),parent:Ne}),Mi=(0,ge.a0P)(cn,{environmentInjector:Z,elementInjector:Ai}),xr=Mi.instance,An=Mi.location.nativeElement;if(Pn)if(Hn&&void 0!==xr[Hn]&&console.error(`[Ionic Error]: ${Hn} is a reserved property when using ${Kt.tagName.toLowerCase()}. Rename or remove the "${Hn}" property from ${cn.name}.`),!0===Ui&&void 0!==Mi.setInput){const{modal:mi,popover:$i,...ti}=Pn;for(const mr in ti)Mi.setInput(mr,ti[mr]);void 0!==mi&&Object.assign(xr,{modal:mi}),void 0!==$i&&Object.assign(xr,{popover:$i})}else Object.assign(xr,Pn);if(Cr)for(const mi of Cr)An.classList.add(mi);const Pi=Jt(Y,xr,An);return Kt.appendChild(An),X.attachView(Mi.hostView),we.set(An,Mi),ot.set(An,Pi),An},mn=[ne.L,ne.a,ne.b,ne.c,ne.d],Jt=(Y,Z,Ne)=>Y.run(()=>{const X=mn.filter(we=>"function"==typeof Z[we]).map(we=>{const ot=Kt=>Z[we](Kt.detail);return Ne.addEventListener(we,ot),()=>Ne.removeEventListener(we,ot)});return()=>X.forEach(we=>we())}),Wt=new ge.nKC("NavParamsToken"),pr=Y=>[{provide:Wt,useValue:Y},{provide:Qt,useFactory:wr,deps:[Wt]}],wr=Y=>new Qt(Y),Or=(Y,Z)=>{const Ne=Y.prototype;Z.forEach(X=>{Object.defineProperty(Ne,X,{get(){return this.el[X]},set(we){this.z.runOutsideAngular(()=>this.el[X]=we)}})})},Mr=(Y,Z)=>{const Ne=Y.prototype;Z.forEach(X=>{Ne[X]=function(){const we=arguments;return this.z.runOutsideAngular(()=>this.el[X].apply(this.el,we))}})},_r=(Y,Z,Ne)=>{Ne.forEach(X=>Y[X]=(0,en.R)(Z,X))};function Bn(Y){return function(Ne){const{defineCustomElementFn:X,inputs:we,methods:ot}=Y;return void 0!==X&&X(),we&&Or(Ne,we),ot&&Mr(Ne,ot),Ne}}const ni=["alignment","animated","arrow","keepContentsMounted","backdropDismiss","cssClass","dismissOnSelect","enterAnimation","event","isOpen","keyboardClose","leaveAnimation","mode","showBackdrop","translucent","trigger","triggerAction","reference","size","side"],Zn=["present","dismiss","onDidDismiss","onWillDismiss"];let Rn=(()=>{var Y;let Z=((0,d.A)(Y=class{constructor(X,we,ot){(0,d.A)(this,"z",void 0),(0,d.A)(this,"template",void 0),(0,d.A)(this,"isCmpOpen",!1),(0,d.A)(this,"el",void 0),this.z=ot,this.el=we.nativeElement,this.el.addEventListener("ionMount",()=>{this.isCmpOpen=!0,X.detectChanges()}),this.el.addEventListener("didDismiss",()=>{this.isCmpOpen=!1,X.detectChanges()}),_r(this,this.el,["ionPopoverDidPresent","ionPopoverWillPresent","ionPopoverWillDismiss","ionPopoverDidDismiss","didPresent","willPresent","willDismiss","didDismiss"])}},"\u0275fac",function(X){return new(X||Y)(ge.rXU(ge.gRc),ge.rXU(ge.aKT),ge.rXU(ge.SKi))}),(0,d.A)(Y,"\u0275dir",ge.FsC({type:Y,selectors:[["ion-popover"]],contentQueries:function(X,we,ot){if(1&X&&ge.wni(ot,ge.C4Q,5),2&X){let Kt;ge.mGM(Kt=ge.lsd())&&(we.template=Kt.first)}},inputs:{alignment:"alignment",animated:"animated",arrow:"arrow",keepContentsMounted:"keepContentsMounted",backdropDismiss:"backdropDismiss",cssClass:"cssClass",dismissOnSelect:"dismissOnSelect",enterAnimation:"enterAnimation",event:"event",isOpen:"isOpen",keyboardClose:"keyboardClose",leaveAnimation:"leaveAnimation",mode:"mode",showBackdrop:"showBackdrop",translucent:"translucent",trigger:"trigger",triggerAction:"triggerAction",reference:"reference",size:"size",side:"side"}})),Y);return Z=(0,rt.Cg)([Bn({inputs:ni,methods:Zn})],Z),Z})();const Sr=["animated","keepContentsMounted","backdropBreakpoint","backdropDismiss","breakpoints","canDismiss","cssClass","enterAnimation","event","handle","handleBehavior","initialBreakpoint","isOpen","keyboardClose","leaveAnimation","mode","presentingElement","showBackdrop","translucent","trigger"],tr=["present","dismiss","onDidDismiss","onWillDismiss","setCurrentBreakpoint","getCurrentBreakpoint"];let Ir=(()=>{var Y;let Z=((0,d.A)(Y=class{constructor(X,we,ot){(0,d.A)(this,"z",void 0),(0,d.A)(this,"template",void 0),(0,d.A)(this,"isCmpOpen",!1),(0,d.A)(this,"el",void 0),this.z=ot,this.el=we.nativeElement,this.el.addEventListener("ionMount",()=>{this.isCmpOpen=!0,X.detectChanges()}),this.el.addEventListener("didDismiss",()=>{this.isCmpOpen=!1,X.detectChanges()}),_r(this,this.el,["ionModalDidPresent","ionModalWillPresent","ionModalWillDismiss","ionModalDidDismiss","ionBreakpointDidChange","didPresent","willPresent","willDismiss","didDismiss"])}},"\u0275fac",function(X){return new(X||Y)(ge.rXU(ge.gRc),ge.rXU(ge.aKT),ge.rXU(ge.SKi))}),(0,d.A)(Y,"\u0275dir",ge.FsC({type:Y,selectors:[["ion-modal"]],contentQueries:function(X,we,ot){if(1&X&&ge.wni(ot,ge.C4Q,5),2&X){let Kt;ge.mGM(Kt=ge.lsd())&&(we.template=Kt.first)}},inputs:{animated:"animated",keepContentsMounted:"keepContentsMounted",backdropBreakpoint:"backdropBreakpoint",backdropDismiss:"backdropDismiss",breakpoints:"breakpoints",canDismiss:"canDismiss",cssClass:"cssClass",enterAnimation:"enterAnimation",event:"event",handle:"handle",handleBehavior:"handleBehavior",initialBreakpoint:"initialBreakpoint",isOpen:"isOpen",keyboardClose:"keyboardClose",leaveAnimation:"leaveAnimation",mode:"mode",presentingElement:"presentingElement",showBackdrop:"showBackdrop",translucent:"translucent",trigger:"trigger"}})),Y);return Z=(0,rt.Cg)([Bn({inputs:Sr,methods:tr})],Z),Z})();const Qr=(Y,Z)=>((Y=Y.filter(Ne=>Ne.stackId!==Z.stackId)).push(Z),Y),He=(Y,Z)=>{const Ne=Y.createUrlTree(["."],{relativeTo:Z});return Y.serializeUrl(Ne)},dt=(Y,Z)=>!Z||Y.stackId!==Z.stackId,Xe=(Y,Z)=>{if(!Y)return;const Ne=re(Z);for(let X=0;X=Y.length)return Ne[X];if(Ne[X]!==Y[X])return}},re=Y=>Y.split("/").map(Z=>Z.trim()).filter(Z=>""!==Z),de=Y=>{Y&&(Y.ref.destroy(),Y.unlistenEvents())};class Me{constructor(Z,Ne,X,we,ot,Kt){(0,d.A)(this,"containerEl",void 0),(0,d.A)(this,"router",void 0),(0,d.A)(this,"navCtrl",void 0),(0,d.A)(this,"zone",void 0),(0,d.A)(this,"location",void 0),(0,d.A)(this,"views",[]),(0,d.A)(this,"runningTask",void 0),(0,d.A)(this,"skipTransition",!1),(0,d.A)(this,"tabsPrefix",void 0),(0,d.A)(this,"activeView",void 0),(0,d.A)(this,"nextId",0),this.containerEl=Ne,this.router=X,this.navCtrl=we,this.zone=ot,this.location=Kt,this.tabsPrefix=void 0!==Z?re(Z):void 0}createView(Z,Ne){var X;const we=He(this.router,Ne),ot=null==Z||null===(X=Z.location)||void 0===X?void 0:X.nativeElement,Kt=Jt(this.zone,Z.instance,ot);return{id:this.nextId++,stackId:Xe(this.tabsPrefix,we),unlistenEvents:Kt,element:ot,ref:Z,url:we}}getExistingView(Z){const Ne=He(this.router,Z),X=this.views.find(we=>we.url===Ne);return X&&X.ref.changeDetectorRef.reattach(),X}setActive(Z){var Ne,X;const we=this.navCtrl.consumeTransition();let{direction:ot,animation:Kt,animationBuilder:cn}=we;const Pn=this.activeView,Cr=dt(Z,Pn);Cr&&(ot="back",Kt=void 0);const Hn=this.views.slice();let Ui;const Ai=this.router;Ai.getCurrentNavigation?Ui=Ai.getCurrentNavigation():null!==(Ne=Ai.navigations)&&void 0!==Ne&&Ne.value&&(Ui=Ai.navigations.value),null!==(X=Ui)&&void 0!==X&&null!==(X=X.extras)&&void 0!==X&&X.replaceUrl&&this.views.length>0&&this.views.splice(-1,1);const Mi=this.views.includes(Z),xr=this.insertView(Z,ot);Mi||Z.ref.changeDetectorRef.detectChanges();const An=Z.animationBuilder;return void 0===cn&&"back"===ot&&!Cr&&void 0!==An&&(cn=An),Pn&&(Pn.animationBuilder=cn),this.zone.runOutsideAngular(()=>this.wait(()=>(Pn&&Pn.ref.changeDetectorRef.detach(),Z.ref.changeDetectorRef.reattach(),this.transition(Z,Pn,Kt,this.canGoBack(1),!1,cn).then(()=>Et(Z,xr,Hn,this.location,this.zone)).then(()=>({enteringView:Z,direction:ot,animation:Kt,tabSwitch:Cr})))))}canGoBack(Z,Ne=this.getActiveStackId()){return this.getStack(Ne).length>Z}pop(Z,Ne=this.getActiveStackId()){return this.zone.run(()=>{const X=this.getStack(Ne);if(X.length<=Z)return Promise.resolve(!1);const we=X[X.length-Z-1];let ot=we.url;const Kt=we.savedData;if(Kt){var cn;const Cr=Kt.get("primary");null!=Cr&&null!==(cn=Cr.route)&&void 0!==cn&&null!==(cn=cn._routerState)&&void 0!==cn&&cn.snapshot.url&&(ot=Cr.route._routerState.snapshot.url)}const{animationBuilder:Pn}=this.navCtrl.consumeTransition();return this.navCtrl.navigateBack(ot,{...we.savedExtras,animation:Pn}).then(()=>!0)})}startBackTransition(){const Z=this.activeView;if(Z){const Ne=this.getStack(Z.stackId),X=Ne[Ne.length-2],we=X.animationBuilder;return this.wait(()=>this.transition(X,Z,"back",this.canGoBack(2),!0,we))}return Promise.resolve()}endBackTransition(Z){Z?(this.skipTransition=!0,this.pop(1)):this.activeView&&it(this.activeView,this.views,this.views,this.location,this.zone)}getLastUrl(Z){const Ne=this.getStack(Z);return Ne.length>0?Ne[Ne.length-1]:void 0}getRootUrl(Z){const Ne=this.getStack(Z);return Ne.length>0?Ne[0]:void 0}getActiveStackId(){return this.activeView?this.activeView.stackId:void 0}getActiveView(){return this.activeView}hasRunningTask(){return void 0!==this.runningTask}destroy(){this.containerEl=void 0,this.views.forEach(de),this.activeView=void 0,this.views=[]}getStack(Z){return this.views.filter(Ne=>Ne.stackId===Z)}insertView(Z,Ne){return this.activeView=Z,this.views=((Y,Z,Ne)=>"root"===Ne?Qr(Y,Z):"forward"===Ne?((Y,Z)=>(Y.indexOf(Z)>=0?Y=Y.filter(X=>X.stackId!==Z.stackId||X.id<=Z.id):Y.push(Z),Y))(Y,Z):((Y,Z)=>Y.indexOf(Z)>=0?Y.filter(X=>X.stackId!==Z.stackId||X.id<=Z.id):Qr(Y,Z))(Y,Z))(this.views,Z,Ne),this.views.slice()}transition(Z,Ne,X,we,ot,Kt){if(this.skipTransition)return this.skipTransition=!1,Promise.resolve(!1);if(Ne===Z)return Promise.resolve(!1);const cn=Z?Z.element:void 0,Pn=Ne?Ne.element:void 0,Cr=this.containerEl;return cn&&cn!==Pn&&(cn.classList.add("ion-page"),cn.classList.add("ion-page-invisible"),Cr.commit)?Cr.commit(cn,Pn,{duration:void 0===X?0:void 0,direction:X,showGoBack:we,progressAnimation:ot,animationBuilder:Kt}):Promise.resolve(!1)}wait(Z){var Ne=this;return(0,g.A)(function*(){void 0!==Ne.runningTask&&(yield Ne.runningTask,Ne.runningTask=void 0);const X=Ne.runningTask=Z();return X.finally(()=>Ne.runningTask=void 0),X})()}}const Et=(Y,Z,Ne,X,we)=>"function"==typeof requestAnimationFrame?new Promise(ot=>{requestAnimationFrame(()=>{it(Y,Z,Ne,X,we),ot()})}):Promise.resolve(),it=(Y,Z,Ne,X,we)=>{we.run(()=>Ne.filter(ot=>!Z.includes(ot)).forEach(de)),Z.forEach(ot=>{const cn=X.path().split("?")[0].split("#")[0];if(ot!==Y&&ot.url!==cn){const Pn=ot.element;Pn.setAttribute("aria-hidden","true"),Pn.classList.add("ion-page-hidden"),ot.ref.changeDetectorRef.detach()}})};let hn=(()=>{var Y;class Z{get activatedComponentRef(){return this.activated}set animation(X){this.nativeEl.animation=X}set animated(X){this.nativeEl.animated=X}set swipeGesture(X){this._swipeGesture=X,this.nativeEl.swipeHandler=X?{canStart:()=>this.stackCtrl.canGoBack(1)&&!this.stackCtrl.hasRunningTask(),onStart:()=>this.stackCtrl.startBackTransition(),onEnd:we=>this.stackCtrl.endBackTransition(we)}:void 0}constructor(X,we,ot,Kt,cn,Pn,Cr,Hn){(0,d.A)(this,"parentOutlet",void 0),(0,d.A)(this,"nativeEl",void 0),(0,d.A)(this,"activatedView",null),(0,d.A)(this,"tabsPrefix",void 0),(0,d.A)(this,"_swipeGesture",void 0),(0,d.A)(this,"stackCtrl",void 0),(0,d.A)(this,"proxyMap",new WeakMap),(0,d.A)(this,"currentActivatedRoute$",new Dt.t(null)),(0,d.A)(this,"activated",null),(0,d.A)(this,"_activatedRoute",null),(0,d.A)(this,"name",Oe.Xk),(0,d.A)(this,"stackWillChange",new ge.bkB),(0,d.A)(this,"stackDidChange",new ge.bkB),(0,d.A)(this,"activateEvents",new ge.bkB),(0,d.A)(this,"deactivateEvents",new ge.bkB),(0,d.A)(this,"parentContexts",(0,ge.WQX)(Oe.Zp)),(0,d.A)(this,"location",(0,ge.WQX)(ge.c1b)),(0,d.A)(this,"environmentInjector",(0,ge.WQX)(ge.uvJ)),(0,d.A)(this,"inputBinder",(0,ge.WQX)(Kn,{optional:!0})),(0,d.A)(this,"supportsBindingToComponentInputs",!0),(0,d.A)(this,"config",(0,ge.WQX)(Le)),(0,d.A)(this,"navCtrl",(0,ge.WQX)(er)),this.parentOutlet=Hn,this.nativeEl=Kt.nativeElement,this.name=X||Oe.Xk,this.tabsPrefix="true"===we?He(cn,Cr):void 0,this.stackCtrl=new Me(this.tabsPrefix,this.nativeEl,cn,this.navCtrl,Pn,ot),this.parentContexts.onChildOutletCreated(this.name,this)}ngOnDestroy(){var X;this.stackCtrl.destroy(),null===(X=this.inputBinder)||void 0===X||X.unsubscribeFromRouteData(this)}getContext(){return this.parentContexts.getContext(this.name)}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(!this.activated){const X=this.getContext();null!=X&&X.route&&this.activateWith(X.route,X.injector)}new Promise(X=>((Y,Z)=>{Y.componentOnReady?Y.componentOnReady().then(Ne=>Z(Ne)):(Y=>{"function"==typeof __zone_symbol__requestAnimationFrame?__zone_symbol__requestAnimationFrame(Y):"function"==typeof requestAnimationFrame?requestAnimationFrame(Y):setTimeout(Y)})(()=>Z(Y))})(this.nativeEl,X)).then(()=>{void 0===this._swipeGesture&&(this.swipeGesture=this.config.getBoolean("swipeBackEnabled","ios"===this.nativeEl.mode))})}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){throw new Error("incompatible reuse strategy")}attach(X,we){throw new Error("incompatible reuse strategy")}deactivate(){if(this.activated){if(this.activatedView){const we=this.getContext();this.activatedView.savedData=new Map(we.children.contexts);const ot=this.activatedView.savedData.get("primary");if(ot&&we.route&&(ot.route={...we.route}),this.activatedView.savedExtras={},we.route){const Kt=we.route.snapshot;this.activatedView.savedExtras.queryParams=Kt.queryParams,this.activatedView.savedExtras.fragment=Kt.fragment}}const X=this.component;this.activatedView=null,this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(X)}}activateWith(X,we){var ot;if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=X;let Kt,cn=this.stackCtrl.getExistingView(X);if(cn){Kt=this.activated=cn.ref;const Hn=cn.savedData;Hn&&(this.getContext().children.contexts=Hn),this.updateActivatedRouteProxy(Kt.instance,X)}else{var Pn;const Hn=X._futureSnapshot,Ui=this.parentContexts.getOrCreateContext(this.name).children,Ai=new Dt.t(null),Mi=this.createActivatedRouteProxy(Ai,X),xr=new Mn(Mi,Ui,this.location.injector),An=null!==(Pn=Hn.routeConfig.component)&&void 0!==Pn?Pn:Hn.component;Kt=this.activated=this.outletContent.createComponent(An,{index:this.outletContent.length,injector:xr,environmentInjector:null!=we?we:this.environmentInjector}),Ai.next(Kt.instance),cn=this.stackCtrl.createView(this.activated,X),this.proxyMap.set(Kt.instance,Mi),this.currentActivatedRoute$.next({component:Kt.instance,activatedRoute:X})}null===(ot=this.inputBinder)||void 0===ot||ot.bindActivatedRouteToOutletComponent(this),this.activatedView=cn,this.navCtrl.setTopOutlet(this);const Cr=this.stackCtrl.getActiveView();this.stackWillChange.emit({enteringView:cn,tabSwitch:dt(cn,Cr)}),this.stackCtrl.setActive(cn).then(Hn=>{this.activateEvents.emit(Kt.instance),this.stackDidChange.emit(Hn)})}canGoBack(X=1,we){return this.stackCtrl.canGoBack(X,we)}pop(X=1,we){return this.stackCtrl.pop(X,we)}getLastUrl(X){const we=this.stackCtrl.getLastUrl(X);return we?we.url:void 0}getLastRouteView(X){return this.stackCtrl.getLastUrl(X)}getRootView(X){return this.stackCtrl.getRootUrl(X)}getActiveStackId(){return this.stackCtrl.getActiveStackId()}createActivatedRouteProxy(X,we){const ot=new Oe.nX;return ot._futureSnapshot=we._futureSnapshot,ot._routerState=we._routerState,ot.snapshot=we.snapshot,ot.outlet=we.outlet,ot.component=we.component,ot._paramMap=this.proxyObservable(X,"paramMap"),ot._queryParamMap=this.proxyObservable(X,"queryParamMap"),ot.url=this.proxyObservable(X,"url"),ot.params=this.proxyObservable(X,"params"),ot.queryParams=this.proxyObservable(X,"queryParams"),ot.fragment=this.proxyObservable(X,"fragment"),ot.data=this.proxyObservable(X,"data"),ot}proxyObservable(X,we){return X.pipe((0,Pe.p)(ot=>!!ot),(0,z.n)(ot=>this.currentActivatedRoute$.pipe((0,Pe.p)(Kt=>null!==Kt&&Kt.component===ot),(0,z.n)(Kt=>Kt&&Kt.activatedRoute[we]),function ae(Y,Z=q.D){return Y=null!=Y?Y:me,(0,ie.N)((Ne,X)=>{let we,ot=!0;Ne.subscribe((0,he._)(X,Kt=>{const cn=Z(Kt);(ot||!Y(we,cn))&&(ot=!1,we=cn,X.next(Kt))}))})}())))}updateActivatedRouteProxy(X,we){const ot=this.proxyMap.get(X);if(!ot)throw new Error("Could not find activated route proxy for view");ot._futureSnapshot=we._futureSnapshot,ot._routerState=we._routerState,ot.snapshot=we.snapshot,ot.outlet=we.outlet,ot.component=we.component,this.currentActivatedRoute$.next({component:X,activatedRoute:we})}}return Y=Z,(0,d.A)(Z,"\u0275fac",function(X){return new(X||Y)(ge.kS0("name"),ge.kS0("tabs"),ge.rXU(Q.aZ),ge.rXU(ge.aKT),ge.rXU(Oe.Ix),ge.rXU(ge.SKi),ge.rXU(Oe.nX),ge.rXU(Y,12))}),(0,d.A)(Z,"\u0275dir",ge.FsC({type:Y,selectors:[["ion-router-outlet"]],inputs:{animated:"animated",animation:"animation",mode:"mode",swipeGesture:"swipeGesture",name:"name"},outputs:{stackWillChange:"stackWillChange",stackDidChange:"stackDidChange",activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]})),Z})();class Mn{constructor(Z,Ne,X){(0,d.A)(this,"route",void 0),(0,d.A)(this,"childContexts",void 0),(0,d.A)(this,"parent",void 0),this.route=Z,this.childContexts=Ne,this.parent=X}get(Z,Ne){return Z===Oe.nX?this.route:Z===Oe.Zp?this.childContexts:this.parent.get(Z,Ne)}}const Kn=new ge.nKC("");let gr=(()=>{var Y;class Z{constructor(){(0,d.A)(this,"outletDataSubscriptions",new Map)}bindActivatedRouteToOutletComponent(X){this.unsubscribeFromRouteData(X),this.subscribeToRouteData(X)}unsubscribeFromRouteData(X){var we;null===(we=this.outletDataSubscriptions.get(X))||void 0===we||we.unsubscribe(),this.outletDataSubscriptions.delete(X)}subscribeToRouteData(X){const{activatedRoute:we}=X,ot=(0,Be.z)([we.queryParams,we.params,we.data]).pipe((0,z.n)(([Kt,cn,Pn],Cr)=>(Pn={...Kt,...cn,...Pn},0===Cr?(0,Pt.of)(Pn):Promise.resolve(Pn)))).subscribe(Kt=>{if(!X.isActivated||!X.activatedComponentRef||X.activatedRoute!==we||null===we.component)return void this.unsubscribeFromRouteData(X);const cn=(0,ge.HJs)(we.component);if(cn)for(const{templateName:Pn}of cn.inputs)X.activatedComponentRef.setInput(Pn,Kt[Pn]);else this.unsubscribeFromRouteData(X)});this.outletDataSubscriptions.set(X,ot)}}return Y=Z,(0,d.A)(Z,"\u0275fac",function(X){return new(X||Y)}),(0,d.A)(Z,"\u0275prov",ge.jDH({token:Y,factory:Y.\u0275fac})),Z})();const ur=()=>({provide:Kn,useFactory:ri,deps:[Oe.Ix]});function ri(Y){return null!=Y&&Y.componentInputBindingEnabled?new gr:null}const xn=["color","defaultHref","disabled","icon","mode","routerAnimation","text","type"];let wn=(()=>{var Y;let Z=((0,d.A)(Y=class{constructor(X,we,ot,Kt,cn,Pn){(0,d.A)(this,"routerOutlet",void 0),(0,d.A)(this,"navCtrl",void 0),(0,d.A)(this,"config",void 0),(0,d.A)(this,"r",void 0),(0,d.A)(this,"z",void 0),(0,d.A)(this,"el",void 0),this.routerOutlet=X,this.navCtrl=we,this.config=ot,this.r=Kt,this.z=cn,Pn.detach(),this.el=this.r.nativeElement}onClick(X){var we;const ot=this.defaultHref||this.config.get("backButtonDefaultHref");null!==(we=this.routerOutlet)&&void 0!==we&&we.canGoBack()?(this.navCtrl.setDirection("back",void 0,void 0,this.routerAnimation),this.routerOutlet.pop(),X.preventDefault()):null!=ot&&(this.navCtrl.navigateBack(ot,{animation:this.routerAnimation}),X.preventDefault())}},"\u0275fac",function(X){return new(X||Y)(ge.rXU(hn,8),ge.rXU(er),ge.rXU(Le),ge.rXU(ge.aKT),ge.rXU(ge.SKi),ge.rXU(ge.gRc))}),(0,d.A)(Y,"\u0275dir",ge.FsC({type:Y,hostBindings:function(X,we){1&X&&ge.bIt("click",function(Kt){return we.onClick(Kt)})},inputs:{color:"color",defaultHref:"defaultHref",disabled:"disabled",icon:"icon",mode:"mode",routerAnimation:"routerAnimation",text:"text",type:"type"}})),Y);return Z=(0,rt.Cg)([Bn({inputs:xn})],Z),Z})(),yr=(()=>{var Y;class Z{constructor(X,we,ot,Kt,cn){(0,d.A)(this,"locationStrategy",void 0),(0,d.A)(this,"navCtrl",void 0),(0,d.A)(this,"elementRef",void 0),(0,d.A)(this,"router",void 0),(0,d.A)(this,"routerLink",void 0),(0,d.A)(this,"routerDirection","forward"),(0,d.A)(this,"routerAnimation",void 0),this.locationStrategy=X,this.navCtrl=we,this.elementRef=ot,this.router=Kt,this.routerLink=cn}ngOnInit(){this.updateTargetUrlAndHref()}ngOnChanges(){this.updateTargetUrlAndHref()}updateTargetUrlAndHref(){var X;if(null!==(X=this.routerLink)&&void 0!==X&&X.urlTree){const we=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.routerLink.urlTree));this.elementRef.nativeElement.href=we}}onClick(X){this.navCtrl.setDirection(this.routerDirection,void 0,void 0,this.routerAnimation),X.preventDefault()}}return Y=Z,(0,d.A)(Z,"\u0275fac",function(X){return new(X||Y)(ge.rXU(Q.hb),ge.rXU(er),ge.rXU(ge.aKT),ge.rXU(Oe.Ix),ge.rXU(Oe.Wk,8))}),(0,d.A)(Z,"\u0275dir",ge.FsC({type:Y,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(X,we){1&X&&ge.bIt("click",function(Kt){return we.onClick(Kt)})},inputs:{routerDirection:"routerDirection",routerAnimation:"routerAnimation"},features:[ge.OA$]})),Z})(),Ei=(()=>{var Y;class Z{constructor(X,we,ot,Kt,cn){(0,d.A)(this,"locationStrategy",void 0),(0,d.A)(this,"navCtrl",void 0),(0,d.A)(this,"elementRef",void 0),(0,d.A)(this,"router",void 0),(0,d.A)(this,"routerLink",void 0),(0,d.A)(this,"routerDirection","forward"),(0,d.A)(this,"routerAnimation",void 0),this.locationStrategy=X,this.navCtrl=we,this.elementRef=ot,this.router=Kt,this.routerLink=cn}ngOnInit(){this.updateTargetUrlAndHref()}ngOnChanges(){this.updateTargetUrlAndHref()}updateTargetUrlAndHref(){var X;if(null!==(X=this.routerLink)&&void 0!==X&&X.urlTree){const we=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.routerLink.urlTree));this.elementRef.nativeElement.href=we}}onClick(){this.navCtrl.setDirection(this.routerDirection,void 0,void 0,this.routerAnimation)}}return Y=Z,(0,d.A)(Z,"\u0275fac",function(X){return new(X||Y)(ge.rXU(Q.hb),ge.rXU(er),ge.rXU(ge.aKT),ge.rXU(Oe.Ix),ge.rXU(Oe.Wk,8))}),(0,d.A)(Z,"\u0275dir",ge.FsC({type:Y,selectors:[["a","routerLink",""],["area","routerLink",""]],hostBindings:function(X,we){1&X&&ge.bIt("click",function(){return we.onClick()})},inputs:{routerDirection:"routerDirection",routerAnimation:"routerAnimation"},features:[ge.OA$]})),Z})();const ii=["animated","animation","root","rootParams","swipeGesture"],pi=["push","insert","insertPages","pop","popTo","popToRoot","removeIndex","setRoot","setPages","getActive","getByIndex","canGoBack","getPrevious"];let Li=(()=>{var Y;let Z=((0,d.A)(Y=class{constructor(X,we,ot,Kt,cn,Pn){(0,d.A)(this,"z",void 0),(0,d.A)(this,"el",void 0),this.z=cn,Pn.detach(),this.el=X.nativeElement,X.nativeElement.delegate=Kt.create(we,ot),_r(this,this.el,["ionNavDidChange","ionNavWillChange"])}},"\u0275fac",function(X){return new(X||Y)(ge.rXU(ge.aKT),ge.rXU(ge.uvJ),ge.rXU(ge.zZn),ge.rXU(tn),ge.rXU(ge.SKi),ge.rXU(ge.gRc))}),(0,d.A)(Y,"\u0275dir",ge.FsC({type:Y,inputs:{animated:"animated",animation:"animation",root:"root",rootParams:"rootParams",swipeGesture:"swipeGesture"}})),Y);return Z=(0,rt.Cg)([Bn({inputs:ii,methods:pi})],Z),Z})(),lr=(()=>{var Y;class Z{constructor(X){(0,d.A)(this,"navCtrl",void 0),(0,d.A)(this,"tabsInner",void 0),(0,d.A)(this,"ionTabsWillChange",new ge.bkB),(0,d.A)(this,"ionTabsDidChange",new ge.bkB),(0,d.A)(this,"tabBarSlot","bottom"),this.navCtrl=X}ngAfterContentInit(){this.detectSlotChanges()}ngAfterContentChecked(){this.detectSlotChanges()}onStackWillChange({enteringView:X,tabSwitch:we}){const ot=X.stackId;we&&void 0!==ot&&this.ionTabsWillChange.emit({tab:ot})}onStackDidChange({enteringView:X,tabSwitch:we}){const ot=X.stackId;we&&void 0!==ot&&(this.tabBar&&(this.tabBar.selectedTab=ot),this.ionTabsDidChange.emit({tab:ot}))}select(X){const we="string"==typeof X,ot=we?X:X.detail.tab,Kt=this.outlet.getActiveStackId()===ot,cn=`${this.outlet.tabsPrefix}/${ot}`;if(we||X.stopPropagation(),Kt){const Pn=this.outlet.getActiveStackId(),Cr=this.outlet.getLastRouteView(Pn);if((null==Cr?void 0:Cr.url)===cn)return;const Hn=this.outlet.getRootView(ot);return this.navCtrl.navigateRoot(cn,{...Hn&&cn===Hn.url&&Hn.savedExtras,animated:!0,animationDirection:"back"})}{const Pn=this.outlet.getLastRouteView(ot);return this.navCtrl.navigateRoot((null==Pn?void 0:Pn.url)||cn,{...null==Pn?void 0:Pn.savedExtras,animated:!0,animationDirection:"back"})}}getSelected(){return this.outlet.getActiveStackId()}detectSlotChanges(){this.tabBars.forEach(X=>{const we=X.el.getAttribute("slot");we!==this.tabBarSlot&&(this.tabBarSlot=we,this.relocateTabBar())})}relocateTabBar(){const X=this.tabBar.el;"top"===this.tabBarSlot?this.tabsInner.nativeElement.before(X):this.tabsInner.nativeElement.after(X)}}return Y=Z,(0,d.A)(Z,"\u0275fac",function(X){return new(X||Y)(ge.rXU(er))}),(0,d.A)(Z,"\u0275dir",ge.FsC({type:Y,selectors:[["ion-tabs"]],viewQuery:function(X,we){if(1&X&&ge.GBs(ut,7,ge.aKT),2&X){let ot;ge.mGM(ot=ge.lsd())&&(we.tabsInner=ot.first)}},hostBindings:function(X,we){1&X&&ge.bIt("ionTabButtonClick",function(Kt){return we.select(Kt)})},outputs:{ionTabsWillChange:"ionTabsWillChange",ionTabsDidChange:"ionTabsDidChange"}})),Z})();const Xi=Y=>"function"==typeof __zone_symbol__requestAnimationFrame?__zone_symbol__requestAnimationFrame(Y):"function"==typeof requestAnimationFrame?requestAnimationFrame(Y):setTimeout(Y);let wi=(()=>{var Y;class Z{constructor(X,we){(0,d.A)(this,"injector",void 0),(0,d.A)(this,"elementRef",void 0),(0,d.A)(this,"onChange",()=>{}),(0,d.A)(this,"onTouched",()=>{}),(0,d.A)(this,"lastValue",void 0),(0,d.A)(this,"statusChanges",void 0),this.injector=X,this.elementRef=we}writeValue(X){this.elementRef.nativeElement.value=this.lastValue=X,gi(this.elementRef)}handleValueChange(X,we){X===this.elementRef.nativeElement&&(we!==this.lastValue&&(this.lastValue=we,this.onChange(we)),gi(this.elementRef))}_handleBlurEvent(X){X===this.elementRef.nativeElement&&(this.onTouched(),gi(this.elementRef))}registerOnChange(X){this.onChange=X}registerOnTouched(X){this.onTouched=X}setDisabledState(X){this.elementRef.nativeElement.disabled=X}ngOnDestroy(){this.statusChanges&&this.statusChanges.unsubscribe()}ngAfterViewInit(){let X;try{X=this.injector.get(Ae.vO)}catch{}if(!X)return;X.statusChanges&&(this.statusChanges=X.statusChanges.subscribe(()=>gi(this.elementRef)));const we=X.control;we&&["markAsTouched","markAllAsTouched","markAsUntouched","markAsDirty","markAsPristine"].forEach(Kt=>{if(typeof we[Kt]<"u"){const cn=we[Kt].bind(we);we[Kt]=(...Pn)=>{cn(...Pn),gi(this.elementRef)}}})}}return Y=Z,(0,d.A)(Z,"\u0275fac",function(X){return new(X||Y)(ge.rXU(ge.zZn),ge.rXU(ge.aKT))}),(0,d.A)(Z,"\u0275dir",ge.FsC({type:Y,hostBindings:function(X,we){1&X&&ge.bIt("ionBlur",function(Kt){return we._handleBlurEvent(Kt.target)})}})),Z})();const gi=Y=>{Xi(()=>{const Z=Y.nativeElement,Ne=null!=Z.value&&Z.value.toString().length>0,X=St(Z);lt(Z,X);const we=Z.closest("ion-item");we&<(we,Ne?[...X,"item-has-value"]:X)})},St=Y=>{const Z=Y.classList,Ne=[];for(let X=0;X{const Ne=Y.classList;Ne.remove("ion-valid","ion-invalid","ion-touched","ion-untouched","ion-dirty","ion-pristine"),Ne.add(...Z)},$t=(Y,Z)=>Y.substring(0,Z.length)===Z;class fn{shouldDetach(Z){return!1}shouldAttach(Z){return!1}store(Z,Ne){}retrieve(Z){return null}shouldReuseRoute(Z,Ne){if(Z.routeConfig!==Ne.routeConfig)return!1;const X=Z.params,we=Ne.params,ot=Object.keys(X),Kt=Object.keys(we);if(ot.length!==Kt.length)return!1;for(const cn of ot)if(we[cn]!==X[cn])return!1;return!0}}class Wn{constructor(Z){(0,d.A)(this,"ctrl",void 0),this.ctrl=Z}create(Z){return this.ctrl.create(Z||{})}dismiss(Z,Ne,X){return this.ctrl.dismiss(Z,Ne,X)}getTop(){return this.ctrl.getTop()}}},7863:(En,bt,B)=>{"use strict";B.d(bt,{hG:()=>Bi,U1:()=>bn,Jm:()=>Yn,hU:()=>Jt,W9:()=>Wt,lO:()=>ni,eU:()=>Zn,$w:()=>Ri,Rg:()=>xr,ln:()=>lt,BC:()=>Hn,ai:()=>Mi,bv:()=>xi,Xi:()=>or,oY:()=>ti,Gw:()=>q});var g=B(9842),d=B(4438),ge=B(4341),Oe=B(3656),Q=B(1635),Ie=B(3726),ne=B(177),Qe=B(845),Ve=(B(9986),B(2725),B(8454),B(3314),B(8607),B(3664)),Ye=B(464),ct=(B(5465),B(6002)),Mt=(B(8476),B(9672));B(1970),B(6411);var Ke=B(467);const Ct=Ve.i,kt=function(){var S=(0,Ke.A)(function*(H,ue){if(!(typeof window>"u"))return yield Ct(),(0,Mt.b)(JSON.parse('[["ion-menu_3",[[33,"ion-menu-button",{"color":[513],"disabled":[4],"menu":[1],"autoHide":[4,"auto-hide"],"type":[1],"visible":[32]},[[16,"ionMenuChange","visibilityChanged"],[16,"ionSplitPaneVisible","visibilityChanged"]]],[33,"ion-menu",{"contentId":[513,"content-id"],"menuId":[513,"menu-id"],"type":[1025],"disabled":[1028],"side":[513],"swipeGesture":[4,"swipe-gesture"],"maxEdgeStart":[2,"max-edge-start"],"isPaneVisible":[32],"isEndSide":[32],"isOpen":[64],"isActive":[64],"open":[64],"close":[64],"toggle":[64],"setOpen":[64]},[[16,"ionSplitPaneVisible","onSplitPaneChanged"],[2,"click","onBackdropClick"]],{"type":["typeChanged"],"disabled":["disabledChanged"],"side":["sideChanged"],"swipeGesture":["swipeGestureChanged"]}],[1,"ion-menu-toggle",{"menu":[1],"autoHide":[4,"auto-hide"],"visible":[32]},[[16,"ionMenuChange","visibilityChanged"],[16,"ionSplitPaneVisible","visibilityChanged"]]]]],["ion-input-password-toggle",[[33,"ion-input-password-toggle",{"color":[513],"showIcon":[1,"show-icon"],"hideIcon":[1,"hide-icon"],"type":[1025]},null,{"type":["onTypeChange"]}]]],["ion-fab_3",[[33,"ion-fab-button",{"color":[513],"activated":[4],"disabled":[4],"download":[1],"href":[1],"rel":[1],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"target":[1],"show":[4],"translucent":[4],"type":[1],"size":[1],"closeIcon":[1,"close-icon"]}],[1,"ion-fab",{"horizontal":[1],"vertical":[1],"edge":[4],"activated":[1028],"close":[64],"toggle":[64]},null,{"activated":["activatedChanged"]}],[1,"ion-fab-list",{"activated":[4],"side":[1]},null,{"activated":["activatedChanged"]}]]],["ion-refresher_2",[[0,"ion-refresher-content",{"pullingIcon":[1025,"pulling-icon"],"pullingText":[1,"pulling-text"],"refreshingSpinner":[1025,"refreshing-spinner"],"refreshingText":[1,"refreshing-text"]}],[32,"ion-refresher",{"pullMin":[2,"pull-min"],"pullMax":[2,"pull-max"],"closeDuration":[1,"close-duration"],"snapbackDuration":[1,"snapback-duration"],"pullFactor":[2,"pull-factor"],"disabled":[4],"nativeRefresher":[32],"state":[32],"complete":[64],"cancel":[64],"getProgress":[64]},null,{"disabled":["disabledChanged"]}]]],["ion-back-button",[[33,"ion-back-button",{"color":[513],"defaultHref":[1025,"default-href"],"disabled":[516],"icon":[1],"text":[1],"type":[1],"routerAnimation":[16]}]]],["ion-toast",[[33,"ion-toast",{"overlayIndex":[2,"overlay-index"],"delegate":[16],"hasController":[4,"has-controller"],"color":[513],"enterAnimation":[16],"leaveAnimation":[16],"cssClass":[1,"css-class"],"duration":[2],"header":[1],"layout":[1],"message":[1],"keyboardClose":[4,"keyboard-close"],"position":[1],"positionAnchor":[1,"position-anchor"],"buttons":[16],"translucent":[4],"animated":[4],"icon":[1],"htmlAttributes":[16],"swipeGesture":[1,"swipe-gesture"],"isOpen":[4,"is-open"],"trigger":[1],"revealContentToScreenReader":[32],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]},null,{"swipeGesture":["swipeGestureChanged"],"isOpen":["onIsOpenChange"],"trigger":["triggerChanged"]}]]],["ion-card_5",[[33,"ion-card",{"color":[513],"button":[4],"type":[1],"disabled":[4],"download":[1],"href":[1],"rel":[1],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"target":[1]}],[32,"ion-card-content"],[33,"ion-card-header",{"color":[513],"translucent":[4]}],[33,"ion-card-subtitle",{"color":[513]}],[33,"ion-card-title",{"color":[513]}]]],["ion-item-option_3",[[33,"ion-item-option",{"color":[513],"disabled":[4],"download":[1],"expandable":[4],"href":[1],"rel":[1],"target":[1],"type":[1]}],[32,"ion-item-options",{"side":[1],"fireSwipeEvent":[64]}],[0,"ion-item-sliding",{"disabled":[4],"state":[32],"getOpenAmount":[64],"getSlidingRatio":[64],"open":[64],"close":[64],"closeOpened":[64]},null,{"disabled":["disabledChanged"]}]]],["ion-accordion_2",[[49,"ion-accordion",{"value":[1],"disabled":[4],"readonly":[4],"toggleIcon":[1,"toggle-icon"],"toggleIconSlot":[1,"toggle-icon-slot"],"state":[32],"isNext":[32],"isPrevious":[32]},null,{"value":["valueChanged"]}],[33,"ion-accordion-group",{"animated":[4],"multiple":[4],"value":[1025],"disabled":[4],"readonly":[4],"expand":[1],"requestAccordionToggle":[64],"getAccordions":[64]},[[0,"keydown","onKeydown"]],{"value":["valueChanged"],"disabled":["disabledChanged"],"readonly":["readonlyChanged"]}]]],["ion-infinite-scroll_2",[[32,"ion-infinite-scroll-content",{"loadingSpinner":[1025,"loading-spinner"],"loadingText":[1,"loading-text"]}],[0,"ion-infinite-scroll",{"threshold":[1],"disabled":[4],"position":[1],"isLoading":[32],"complete":[64]},null,{"threshold":["thresholdChanged"],"disabled":["disabledChanged"]}]]],["ion-reorder_2",[[33,"ion-reorder",null,[[2,"click","onClick"]]],[0,"ion-reorder-group",{"disabled":[4],"state":[32],"complete":[64]},null,{"disabled":["disabledChanged"]}]]],["ion-segment_2",[[33,"ion-segment-button",{"disabled":[1028],"layout":[1],"type":[1],"value":[8],"checked":[32],"setFocus":[64]},null,{"value":["valueChanged"]}],[33,"ion-segment",{"color":[513],"disabled":[4],"scrollable":[4],"swipeGesture":[4,"swipe-gesture"],"value":[1032],"selectOnFocus":[4,"select-on-focus"],"activated":[32]},[[0,"keydown","onKeyDown"]],{"color":["colorChanged"],"swipeGesture":["swipeGestureChanged"],"value":["valueChanged"],"disabled":["disabledChanged"]}]]],["ion-tab-bar_2",[[33,"ion-tab-button",{"disabled":[4],"download":[1],"href":[1],"rel":[1],"layout":[1025],"selected":[1028],"tab":[1],"target":[1]},[[8,"ionTabBarChanged","onTabBarChanged"]]],[33,"ion-tab-bar",{"color":[513],"selectedTab":[1,"selected-tab"],"translucent":[4],"keyboardVisible":[32]},null,{"selectedTab":["selectedTabChanged"]}]]],["ion-chip",[[33,"ion-chip",{"color":[513],"outline":[4],"disabled":[4]}]]],["ion-datetime-button",[[33,"ion-datetime-button",{"color":[513],"disabled":[516],"datetime":[1],"datetimePresentation":[32],"dateText":[32],"timeText":[32],"datetimeActive":[32],"selectedButton":[32]}]]],["ion-input",[[38,"ion-input",{"color":[513],"autocapitalize":[1],"autocomplete":[1],"autocorrect":[1],"autofocus":[4],"clearInput":[4,"clear-input"],"clearInputIcon":[1,"clear-input-icon"],"clearOnEdit":[4,"clear-on-edit"],"counter":[4],"counterFormatter":[16],"debounce":[2],"disabled":[516],"enterkeyhint":[1],"errorText":[1,"error-text"],"fill":[1],"inputmode":[1],"helperText":[1,"helper-text"],"label":[1],"labelPlacement":[1,"label-placement"],"max":[8],"maxlength":[2],"min":[8],"minlength":[2],"multiple":[4],"name":[1],"pattern":[1],"placeholder":[1],"readonly":[516],"required":[4],"shape":[1],"spellcheck":[4],"step":[1],"type":[1],"value":[1032],"hasFocus":[32],"setFocus":[64],"getInputElement":[64]},null,{"debounce":["debounceChanged"],"type":["onTypeChange"],"value":["valueChanged"]}]]],["ion-searchbar",[[34,"ion-searchbar",{"color":[513],"animated":[4],"autocapitalize":[1],"autocomplete":[1],"autocorrect":[1],"cancelButtonIcon":[1,"cancel-button-icon"],"cancelButtonText":[1,"cancel-button-text"],"clearIcon":[1,"clear-icon"],"debounce":[2],"disabled":[4],"inputmode":[1],"enterkeyhint":[1],"maxlength":[2],"minlength":[2],"name":[1],"placeholder":[1],"searchIcon":[1,"search-icon"],"showCancelButton":[1,"show-cancel-button"],"showClearButton":[1,"show-clear-button"],"spellcheck":[4],"type":[1],"value":[1025],"focused":[32],"noAnimate":[32],"setFocus":[64],"getInputElement":[64]},null,{"lang":["onLangChanged"],"dir":["onDirChanged"],"debounce":["debounceChanged"],"value":["valueChanged"],"showCancelButton":["showCancelButtonChanged"]}]]],["ion-toggle",[[33,"ion-toggle",{"color":[513],"name":[1],"checked":[1028],"disabled":[4],"value":[1],"enableOnOffLabels":[4,"enable-on-off-labels"],"labelPlacement":[1,"label-placement"],"justify":[1],"alignment":[1],"activated":[32]},null,{"disabled":["disabledChanged"]}]]],["ion-nav_2",[[1,"ion-nav",{"delegate":[16],"swipeGesture":[1028,"swipe-gesture"],"animated":[4],"animation":[16],"rootParams":[16],"root":[1],"push":[64],"insert":[64],"insertPages":[64],"pop":[64],"popTo":[64],"popToRoot":[64],"removeIndex":[64],"setRoot":[64],"setPages":[64],"setRouteId":[64],"getRouteId":[64],"getActive":[64],"getByIndex":[64],"canGoBack":[64],"getPrevious":[64],"getLength":[64]},null,{"swipeGesture":["swipeGestureChanged"],"root":["rootChanged"]}],[0,"ion-nav-link",{"component":[1],"componentProps":[16],"routerDirection":[1,"router-direction"],"routerAnimation":[16]}]]],["ion-textarea",[[38,"ion-textarea",{"color":[513],"autocapitalize":[1],"autofocus":[4],"clearOnEdit":[4,"clear-on-edit"],"debounce":[2],"disabled":[4],"fill":[1],"inputmode":[1],"enterkeyhint":[1],"maxlength":[2],"minlength":[2],"name":[1],"placeholder":[1],"readonly":[4],"required":[4],"spellcheck":[4],"cols":[514],"rows":[2],"wrap":[1],"autoGrow":[516,"auto-grow"],"value":[1025],"counter":[4],"counterFormatter":[16],"errorText":[1,"error-text"],"helperText":[1,"helper-text"],"label":[1],"labelPlacement":[1,"label-placement"],"shape":[1],"hasFocus":[32],"setFocus":[64],"getInputElement":[64]},null,{"debounce":["debounceChanged"],"value":["valueChanged"]}]]],["ion-backdrop",[[33,"ion-backdrop",{"visible":[4],"tappable":[4],"stopPropagation":[4,"stop-propagation"]},[[2,"click","onMouseDown"]]]]],["ion-loading",[[34,"ion-loading",{"overlayIndex":[2,"overlay-index"],"delegate":[16],"hasController":[4,"has-controller"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"message":[1],"cssClass":[1,"css-class"],"duration":[2],"backdropDismiss":[4,"backdrop-dismiss"],"showBackdrop":[4,"show-backdrop"],"spinner":[1025],"translucent":[4],"animated":[4],"htmlAttributes":[16],"isOpen":[4,"is-open"],"trigger":[1],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]},null,{"isOpen":["onIsOpenChange"],"trigger":["triggerChanged"]}]]],["ion-breadcrumb_2",[[33,"ion-breadcrumb",{"collapsed":[4],"last":[4],"showCollapsedIndicator":[4,"show-collapsed-indicator"],"color":[1],"active":[4],"disabled":[4],"download":[1],"href":[1],"rel":[1],"separator":[4],"target":[1],"routerDirection":[1,"router-direction"],"routerAnimation":[16]}],[33,"ion-breadcrumbs",{"color":[513],"maxItems":[2,"max-items"],"itemsBeforeCollapse":[2,"items-before-collapse"],"itemsAfterCollapse":[2,"items-after-collapse"],"collapsed":[32],"activeChanged":[32]},[[0,"collapsedClick","onCollapsedClick"]],{"maxItems":["maxItemsChanged"],"itemsBeforeCollapse":["maxItemsChanged"],"itemsAfterCollapse":["maxItemsChanged"]}]]],["ion-modal",[[33,"ion-modal",{"hasController":[4,"has-controller"],"overlayIndex":[2,"overlay-index"],"delegate":[16],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"breakpoints":[16],"initialBreakpoint":[2,"initial-breakpoint"],"backdropBreakpoint":[2,"backdrop-breakpoint"],"handle":[4],"handleBehavior":[1,"handle-behavior"],"component":[1],"componentProps":[16],"cssClass":[1,"css-class"],"backdropDismiss":[4,"backdrop-dismiss"],"showBackdrop":[4,"show-backdrop"],"animated":[4],"presentingElement":[16],"htmlAttributes":[16],"isOpen":[4,"is-open"],"trigger":[1],"keepContentsMounted":[4,"keep-contents-mounted"],"focusTrap":[4,"focus-trap"],"canDismiss":[4,"can-dismiss"],"presented":[32],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64],"setCurrentBreakpoint":[64],"getCurrentBreakpoint":[64]},null,{"isOpen":["onIsOpenChange"],"trigger":["triggerChanged"]}]]],["ion-route_4",[[0,"ion-route",{"url":[1],"component":[1],"componentProps":[16],"beforeLeave":[16],"beforeEnter":[16]},null,{"url":["onUpdate"],"component":["onUpdate"],"componentProps":["onComponentProps"]}],[0,"ion-route-redirect",{"from":[1],"to":[1]},null,{"from":["propDidChange"],"to":["propDidChange"]}],[0,"ion-router",{"root":[1],"useHash":[4,"use-hash"],"canTransition":[64],"push":[64],"back":[64],"printDebug":[64],"navChanged":[64]},[[8,"popstate","onPopState"],[4,"ionBackButton","onBackButton"]]],[1,"ion-router-link",{"color":[513],"href":[1],"rel":[1],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"target":[1]}]]],["ion-avatar_3",[[33,"ion-avatar"],[33,"ion-badge",{"color":[513]}],[1,"ion-thumbnail"]]],["ion-col_3",[[1,"ion-col",{"offset":[1],"offsetXs":[1,"offset-xs"],"offsetSm":[1,"offset-sm"],"offsetMd":[1,"offset-md"],"offsetLg":[1,"offset-lg"],"offsetXl":[1,"offset-xl"],"pull":[1],"pullXs":[1,"pull-xs"],"pullSm":[1,"pull-sm"],"pullMd":[1,"pull-md"],"pullLg":[1,"pull-lg"],"pullXl":[1,"pull-xl"],"push":[1],"pushXs":[1,"push-xs"],"pushSm":[1,"push-sm"],"pushMd":[1,"push-md"],"pushLg":[1,"push-lg"],"pushXl":[1,"push-xl"],"size":[1],"sizeXs":[1,"size-xs"],"sizeSm":[1,"size-sm"],"sizeMd":[1,"size-md"],"sizeLg":[1,"size-lg"],"sizeXl":[1,"size-xl"]},[[9,"resize","onResize"]]],[1,"ion-grid",{"fixed":[4]}],[1,"ion-row"]]],["ion-tab_2",[[1,"ion-tab",{"active":[1028],"delegate":[16],"tab":[1],"component":[1],"setActive":[64]},null,{"active":["changeActive"]}],[1,"ion-tabs",{"useRouter":[1028,"use-router"],"selectedTab":[32],"select":[64],"getTab":[64],"getSelected":[64],"setRouteId":[64],"getRouteId":[64]}]]],["ion-img",[[1,"ion-img",{"alt":[1],"src":[1],"loadSrc":[32],"loadError":[32]},null,{"src":["srcChanged"]}]]],["ion-progress-bar",[[33,"ion-progress-bar",{"type":[1],"reversed":[4],"value":[2],"buffer":[2],"color":[513]}]]],["ion-range",[[33,"ion-range",{"color":[513],"debounce":[2],"name":[1],"label":[1],"dualKnobs":[4,"dual-knobs"],"min":[2],"max":[2],"pin":[4],"pinFormatter":[16],"snaps":[4],"step":[2],"ticks":[4],"activeBarStart":[1026,"active-bar-start"],"disabled":[4],"value":[1026],"labelPlacement":[1,"label-placement"],"ratioA":[32],"ratioB":[32],"pressedKnob":[32]},null,{"debounce":["debounceChanged"],"min":["minChanged"],"max":["maxChanged"],"activeBarStart":["activeBarStartChanged"],"disabled":["disabledChanged"],"value":["valueChanged"]}]]],["ion-split-pane",[[33,"ion-split-pane",{"contentId":[513,"content-id"],"disabled":[4],"when":[8],"visible":[32],"isVisible":[64]},null,{"visible":["visibleChanged"],"disabled":["updateState"],"when":["updateState"]}]]],["ion-text",[[1,"ion-text",{"color":[513]}]]],["ion-select_3",[[33,"ion-select",{"cancelText":[1,"cancel-text"],"color":[513],"compareWith":[1,"compare-with"],"disabled":[4],"fill":[1],"interface":[1],"interfaceOptions":[8,"interface-options"],"justify":[1],"label":[1],"labelPlacement":[1,"label-placement"],"multiple":[4],"name":[1],"okText":[1,"ok-text"],"placeholder":[1],"selectedText":[1,"selected-text"],"toggleIcon":[1,"toggle-icon"],"expandedIcon":[1,"expanded-icon"],"shape":[1],"value":[1032],"isExpanded":[32],"open":[64]},null,{"disabled":["styleChanged"],"isExpanded":["styleChanged"],"placeholder":["styleChanged"],"value":["styleChanged"]}],[1,"ion-select-option",{"disabled":[4],"value":[8]}],[34,"ion-select-popover",{"header":[1],"subHeader":[1,"sub-header"],"message":[1],"multiple":[4],"options":[16]}]]],["ion-picker",[[33,"ion-picker",{"exitInputMode":[64]},[[1,"touchstart","preventTouchStartPropagation"]]]]],["ion-picker-column",[[1,"ion-picker-column",{"disabled":[4],"value":[1032],"color":[513],"numericInput":[4,"numeric-input"],"ariaLabel":[32],"isActive":[32],"scrollActiveItemIntoView":[64],"setValue":[64],"setFocus":[64]},null,{"aria-label":["ariaLabelChanged"],"value":["valueChange"]}]]],["ion-datetime_3",[[33,"ion-datetime",{"color":[1],"name":[1],"disabled":[4],"formatOptions":[16],"readonly":[4],"isDateEnabled":[16],"min":[1025],"max":[1025],"presentation":[1],"cancelText":[1,"cancel-text"],"doneText":[1,"done-text"],"clearText":[1,"clear-text"],"yearValues":[8,"year-values"],"monthValues":[8,"month-values"],"dayValues":[8,"day-values"],"hourValues":[8,"hour-values"],"minuteValues":[8,"minute-values"],"locale":[1],"firstDayOfWeek":[2,"first-day-of-week"],"titleSelectedDatesFormatter":[16],"multiple":[4],"highlightedDates":[16],"value":[1025],"showDefaultTitle":[4,"show-default-title"],"showDefaultButtons":[4,"show-default-buttons"],"showClearButton":[4,"show-clear-button"],"showDefaultTimeLabel":[4,"show-default-time-label"],"hourCycle":[1,"hour-cycle"],"size":[1],"preferWheel":[4,"prefer-wheel"],"showMonthAndYear":[32],"activeParts":[32],"workingParts":[32],"isTimePopoverOpen":[32],"forceRenderDate":[32],"confirm":[64],"reset":[64],"cancel":[64]},null,{"formatOptions":["formatOptionsChanged"],"disabled":["disabledChanged"],"min":["minChanged"],"max":["maxChanged"],"presentation":["presentationChanged"],"yearValues":["yearValuesChanged"],"monthValues":["monthValuesChanged"],"dayValues":["dayValuesChanged"],"hourValues":["hourValuesChanged"],"minuteValues":["minuteValuesChanged"],"value":["valueChanged"]}],[34,"ion-picker-legacy",{"overlayIndex":[2,"overlay-index"],"delegate":[16],"hasController":[4,"has-controller"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"buttons":[16],"columns":[16],"cssClass":[1,"css-class"],"duration":[2],"showBackdrop":[4,"show-backdrop"],"backdropDismiss":[4,"backdrop-dismiss"],"animated":[4],"htmlAttributes":[16],"isOpen":[4,"is-open"],"trigger":[1],"presented":[32],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64],"getColumn":[64]},null,{"isOpen":["onIsOpenChange"],"trigger":["triggerChanged"]}],[32,"ion-picker-legacy-column",{"col":[16]},null,{"col":["colChanged"]}]]],["ion-radio_2",[[33,"ion-radio",{"color":[513],"name":[1],"disabled":[4],"value":[8],"labelPlacement":[1,"label-placement"],"justify":[1],"alignment":[1],"checked":[32],"buttonTabindex":[32],"setFocus":[64],"setButtonTabindex":[64]},null,{"value":["valueChanged"]}],[0,"ion-radio-group",{"allowEmptySelection":[4,"allow-empty-selection"],"compareWith":[1,"compare-with"],"name":[1],"value":[1032]},[[4,"keydown","onKeydown"]],{"value":["valueChanged"]}]]],["ion-ripple-effect",[[1,"ion-ripple-effect",{"type":[1],"addRipple":[64]}]]],["ion-button_2",[[33,"ion-button",{"color":[513],"buttonType":[1025,"button-type"],"disabled":[516],"expand":[513],"fill":[1537],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"download":[1],"href":[1],"rel":[1],"shape":[513],"size":[513],"strong":[4],"target":[1],"type":[1],"form":[1],"isCircle":[32]},null,{"disabled":["disabledChanged"]}],[1,"ion-icon",{"mode":[1025],"color":[1],"ios":[1],"md":[1],"flipRtl":[4,"flip-rtl"],"name":[513],"src":[1],"icon":[8],"size":[1],"lazy":[4],"sanitize":[4],"svgContent":[32],"isVisible":[32]},null,{"name":["loadIcon"],"src":["loadIcon"],"icon":["loadIcon"],"ios":["loadIcon"],"md":["loadIcon"]}]]],["ion-action-sheet",[[34,"ion-action-sheet",{"overlayIndex":[2,"overlay-index"],"delegate":[16],"hasController":[4,"has-controller"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"buttons":[16],"cssClass":[1,"css-class"],"backdropDismiss":[4,"backdrop-dismiss"],"header":[1],"subHeader":[1,"sub-header"],"translucent":[4],"animated":[4],"htmlAttributes":[16],"isOpen":[4,"is-open"],"trigger":[1],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]},null,{"isOpen":["onIsOpenChange"],"trigger":["triggerChanged"]}]]],["ion-alert",[[34,"ion-alert",{"overlayIndex":[2,"overlay-index"],"delegate":[16],"hasController":[4,"has-controller"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"cssClass":[1,"css-class"],"header":[1],"subHeader":[1,"sub-header"],"message":[1],"buttons":[16],"inputs":[1040],"backdropDismiss":[4,"backdrop-dismiss"],"translucent":[4],"animated":[4],"htmlAttributes":[16],"isOpen":[4,"is-open"],"trigger":[1],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]},[[4,"keydown","onKeydown"]],{"isOpen":["onIsOpenChange"],"trigger":["triggerChanged"],"buttons":["buttonsChanged"],"inputs":["inputsChanged"]}]]],["ion-app_8",[[0,"ion-app",{"setFocus":[64]}],[1,"ion-content",{"color":[513],"fullscreen":[4],"fixedSlotPlacement":[1,"fixed-slot-placement"],"forceOverscroll":[1028,"force-overscroll"],"scrollX":[4,"scroll-x"],"scrollY":[4,"scroll-y"],"scrollEvents":[4,"scroll-events"],"getScrollElement":[64],"getBackgroundElement":[64],"scrollToTop":[64],"scrollToBottom":[64],"scrollByPoint":[64],"scrollToPoint":[64]},[[9,"resize","onResize"]]],[36,"ion-footer",{"collapse":[1],"translucent":[4],"keyboardVisible":[32]}],[36,"ion-header",{"collapse":[1],"translucent":[4]}],[1,"ion-router-outlet",{"mode":[1025],"delegate":[16],"animated":[4],"animation":[16],"swipeHandler":[16],"commit":[64],"setRouteId":[64],"getRouteId":[64]},null,{"swipeHandler":["swipeHandlerChanged"]}],[33,"ion-title",{"color":[513],"size":[1]},null,{"size":["sizeChanged"]}],[33,"ion-toolbar",{"color":[513]},[[0,"ionStyle","childrenStyle"]]],[38,"ion-buttons",{"collapse":[4]}]]],["ion-picker-column-option",[[33,"ion-picker-column-option",{"disabled":[4],"value":[8],"color":[513],"ariaLabel":[32]},null,{"aria-label":["onAriaLabelChange"]}]]],["ion-popover",[[33,"ion-popover",{"hasController":[4,"has-controller"],"delegate":[16],"overlayIndex":[2,"overlay-index"],"enterAnimation":[16],"leaveAnimation":[16],"component":[1],"componentProps":[16],"keyboardClose":[4,"keyboard-close"],"cssClass":[1,"css-class"],"backdropDismiss":[4,"backdrop-dismiss"],"event":[8],"showBackdrop":[4,"show-backdrop"],"translucent":[4],"animated":[4],"htmlAttributes":[16],"triggerAction":[1,"trigger-action"],"trigger":[1],"size":[1],"dismissOnSelect":[4,"dismiss-on-select"],"reference":[1],"side":[1],"alignment":[1025],"arrow":[4],"isOpen":[4,"is-open"],"keyboardEvents":[4,"keyboard-events"],"focusTrap":[4,"focus-trap"],"keepContentsMounted":[4,"keep-contents-mounted"],"presented":[32],"presentFromTrigger":[64],"present":[64],"dismiss":[64],"getParentPopover":[64],"onDidDismiss":[64],"onWillDismiss":[64]},null,{"trigger":["onTriggerChange"],"triggerAction":["onTriggerChange"],"isOpen":["onIsOpenChange"]}]]],["ion-checkbox",[[33,"ion-checkbox",{"color":[513],"name":[1],"checked":[1028],"indeterminate":[1028],"disabled":[4],"value":[8],"labelPlacement":[1,"label-placement"],"justify":[1],"alignment":[1]}]]],["ion-spinner",[[1,"ion-spinner",{"color":[513],"duration":[2],"name":[1],"paused":[4]}]]],["ion-item_8",[[33,"ion-item-divider",{"color":[513],"sticky":[4]}],[32,"ion-item-group"],[33,"ion-note",{"color":[513]}],[1,"ion-skeleton-text",{"animated":[4]}],[33,"ion-item",{"color":[513],"button":[4],"detail":[4],"detailIcon":[1,"detail-icon"],"disabled":[4],"download":[1],"href":[1],"rel":[1],"lines":[1],"routerAnimation":[16],"routerDirection":[1,"router-direction"],"target":[1],"type":[1],"multipleInputs":[32],"focusable":[32]},[[0,"ionColor","labelColorChanged"],[0,"ionStyle","itemStyle"]],{"button":["buttonChanged"]}],[38,"ion-label",{"color":[513],"position":[1],"noAnimate":[32]},null,{"color":["colorChanged"],"position":["positionChanged"]}],[32,"ion-list",{"lines":[1],"inset":[4],"closeSlidingItems":[64]}],[33,"ion-list-header",{"color":[513],"lines":[1]}]]]]'),ue)});return function(ue,M){return S.apply(this,arguments)}}(),ze=["*"],Tt=["outletContent"];let q=(()=>{var S;class H extends Oe.fL{constructor(M,fe){super(M,fe)}_handleInputEvent(M){this.handleValueChange(M,M.value)}}return S=H,(0,g.A)(H,"\u0275fac",function(M){return new(M||S)(d.rXU(d.zZn),d.rXU(d.aKT))}),(0,g.A)(H,"\u0275dir",d.FsC({type:S,selectors:[["ion-input",3,"type","number"],["ion-textarea"],["ion-searchbar"]],hostBindings:function(M,fe){1&M&&d.bIt("ionInput",function(sr){return fe._handleInputEvent(sr.target)})},features:[d.Jv_([{provide:ge.kq,useExisting:S,multi:!0}]),d.Vt3]})),H})();const ie=(S,H)=>{const ue=S.prototype;H.forEach(M=>{Object.defineProperty(ue,M,{get(){return this.el[M]},set(fe){this.z.runOutsideAngular(()=>this.el[M]=fe)},configurable:!0})})},he=(S,H)=>{const ue=S.prototype;H.forEach(M=>{ue[M]=function(){const fe=arguments;return this.z.runOutsideAngular(()=>this.el[M].apply(this.el,fe))}})},ae=(S,H,ue)=>{ue.forEach(M=>S[M]=(0,Ie.R)(H,M))};function Ae(S){return function(ue){const{defineCustomElementFn:M,inputs:fe,methods:qe}=S;return void 0!==M&&M(),fe&&ie(ue,fe),qe&&he(ue,qe),ue}}let bn=(()=>{var S;let H=((0,g.A)(S=class{constructor(M,fe,qe){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=qe,M.detach(),this.el=fe.nativeElement}},"\u0275fac",function(M){return new(M||S)(d.rXU(d.gRc),d.rXU(d.aKT),d.rXU(d.SKi))}),(0,g.A)(S,"\u0275cmp",d.VBU({type:S,selectors:[["ion-app"]],ngContentSelectors:ze,decls:1,vars:0,template:function(M,fe){1&M&&(d.NAR(),d.SdG(0))},encapsulation:2,changeDetection:0})),S);return H=(0,Q.Cg)([Ae({})],H),H})(),Yn=(()=>{var S;let H=((0,g.A)(S=class{constructor(M,fe,qe){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=qe,M.detach(),this.el=fe.nativeElement,ae(this,this.el,["ionFocus","ionBlur"])}},"\u0275fac",function(M){return new(M||S)(d.rXU(d.gRc),d.rXU(d.aKT),d.rXU(d.SKi))}),(0,g.A)(S,"\u0275cmp",d.VBU({type:S,selectors:[["ion-button"]],inputs:{buttonType:"buttonType",color:"color",disabled:"disabled",download:"download",expand:"expand",fill:"fill",form:"form",href:"href",mode:"mode",rel:"rel",routerAnimation:"routerAnimation",routerDirection:"routerDirection",shape:"shape",size:"size",strong:"strong",target:"target",type:"type"},ngContentSelectors:ze,decls:1,vars:0,template:function(M,fe){1&M&&(d.NAR(),d.SdG(0))},encapsulation:2,changeDetection:0})),S);return H=(0,Q.Cg)([Ae({inputs:["buttonType","color","disabled","download","expand","fill","form","href","mode","rel","routerAnimation","routerDirection","shape","size","strong","target","type"]})],H),H})(),Jt=(()=>{var S;let H=((0,g.A)(S=class{constructor(M,fe,qe){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=qe,M.detach(),this.el=fe.nativeElement}},"\u0275fac",function(M){return new(M||S)(d.rXU(d.gRc),d.rXU(d.aKT),d.rXU(d.SKi))}),(0,g.A)(S,"\u0275cmp",d.VBU({type:S,selectors:[["ion-col"]],inputs:{offset:"offset",offsetLg:"offsetLg",offsetMd:"offsetMd",offsetSm:"offsetSm",offsetXl:"offsetXl",offsetXs:"offsetXs",pull:"pull",pullLg:"pullLg",pullMd:"pullMd",pullSm:"pullSm",pullXl:"pullXl",pullXs:"pullXs",push:"push",pushLg:"pushLg",pushMd:"pushMd",pushSm:"pushSm",pushXl:"pushXl",pushXs:"pushXs",size:"size",sizeLg:"sizeLg",sizeMd:"sizeMd",sizeSm:"sizeSm",sizeXl:"sizeXl",sizeXs:"sizeXs"},ngContentSelectors:ze,decls:1,vars:0,template:function(M,fe){1&M&&(d.NAR(),d.SdG(0))},encapsulation:2,changeDetection:0})),S);return H=(0,Q.Cg)([Ae({inputs:["offset","offsetLg","offsetMd","offsetSm","offsetXl","offsetXs","pull","pullLg","pullMd","pullSm","pullXl","pullXs","push","pushLg","pushMd","pushSm","pushXl","pushXs","size","sizeLg","sizeMd","sizeSm","sizeXl","sizeXs"]})],H),H})(),Wt=(()=>{var S;let H=((0,g.A)(S=class{constructor(M,fe,qe){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=qe,M.detach(),this.el=fe.nativeElement,ae(this,this.el,["ionScrollStart","ionScroll","ionScrollEnd"])}},"\u0275fac",function(M){return new(M||S)(d.rXU(d.gRc),d.rXU(d.aKT),d.rXU(d.SKi))}),(0,g.A)(S,"\u0275cmp",d.VBU({type:S,selectors:[["ion-content"]],inputs:{color:"color",fixedSlotPlacement:"fixedSlotPlacement",forceOverscroll:"forceOverscroll",fullscreen:"fullscreen",scrollEvents:"scrollEvents",scrollX:"scrollX",scrollY:"scrollY"},ngContentSelectors:ze,decls:1,vars:0,template:function(M,fe){1&M&&(d.NAR(),d.SdG(0))},encapsulation:2,changeDetection:0})),S);return H=(0,Q.Cg)([Ae({inputs:["color","fixedSlotPlacement","forceOverscroll","fullscreen","scrollEvents","scrollX","scrollY"],methods:["getScrollElement","scrollToTop","scrollToBottom","scrollByPoint","scrollToPoint"]})],H),H})(),ni=(()=>{var S;let H=((0,g.A)(S=class{constructor(M,fe,qe){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=qe,M.detach(),this.el=fe.nativeElement}},"\u0275fac",function(M){return new(M||S)(d.rXU(d.gRc),d.rXU(d.aKT),d.rXU(d.SKi))}),(0,g.A)(S,"\u0275cmp",d.VBU({type:S,selectors:[["ion-grid"]],inputs:{fixed:"fixed"},ngContentSelectors:ze,decls:1,vars:0,template:function(M,fe){1&M&&(d.NAR(),d.SdG(0))},encapsulation:2,changeDetection:0})),S);return H=(0,Q.Cg)([Ae({inputs:["fixed"]})],H),H})(),Zn=(()=>{var S;let H=((0,g.A)(S=class{constructor(M,fe,qe){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=qe,M.detach(),this.el=fe.nativeElement}},"\u0275fac",function(M){return new(M||S)(d.rXU(d.gRc),d.rXU(d.aKT),d.rXU(d.SKi))}),(0,g.A)(S,"\u0275cmp",d.VBU({type:S,selectors:[["ion-header"]],inputs:{collapse:"collapse",mode:"mode",translucent:"translucent"},ngContentSelectors:ze,decls:1,vars:0,template:function(M,fe){1&M&&(d.NAR(),d.SdG(0))},encapsulation:2,changeDetection:0})),S);return H=(0,Q.Cg)([Ae({inputs:["collapse","mode","translucent"]})],H),H})(),Ri=(()=>{var S;let H=((0,g.A)(S=class{constructor(M,fe,qe){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=qe,M.detach(),this.el=fe.nativeElement,ae(this,this.el,["ionInput","ionChange","ionBlur","ionFocus"])}},"\u0275fac",function(M){return new(M||S)(d.rXU(d.gRc),d.rXU(d.aKT),d.rXU(d.SKi))}),(0,g.A)(S,"\u0275cmp",d.VBU({type:S,selectors:[["ion-input"]],inputs:{autocapitalize:"autocapitalize",autocomplete:"autocomplete",autocorrect:"autocorrect",autofocus:"autofocus",clearInput:"clearInput",clearInputIcon:"clearInputIcon",clearOnEdit:"clearOnEdit",color:"color",counter:"counter",counterFormatter:"counterFormatter",debounce:"debounce",disabled:"disabled",enterkeyhint:"enterkeyhint",errorText:"errorText",fill:"fill",helperText:"helperText",inputmode:"inputmode",label:"label",labelPlacement:"labelPlacement",max:"max",maxlength:"maxlength",min:"min",minlength:"minlength",mode:"mode",multiple:"multiple",name:"name",pattern:"pattern",placeholder:"placeholder",readonly:"readonly",required:"required",shape:"shape",spellcheck:"spellcheck",step:"step",type:"type",value:"value"},ngContentSelectors:ze,decls:1,vars:0,template:function(M,fe){1&M&&(d.NAR(),d.SdG(0))},encapsulation:2,changeDetection:0})),S);return H=(0,Q.Cg)([Ae({inputs:["autocapitalize","autocomplete","autocorrect","autofocus","clearInput","clearInputIcon","clearOnEdit","color","counter","counterFormatter","debounce","disabled","enterkeyhint","errorText","fill","helperText","inputmode","label","labelPlacement","max","maxlength","min","minlength","mode","multiple","name","pattern","placeholder","readonly","required","shape","spellcheck","step","type","value"],methods:["setFocus","getInputElement"]})],H),H})(),lt=(()=>{var S;let H=((0,g.A)(S=class{constructor(M,fe,qe){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=qe,M.detach(),this.el=fe.nativeElement}},"\u0275fac",function(M){return new(M||S)(d.rXU(d.gRc),d.rXU(d.aKT),d.rXU(d.SKi))}),(0,g.A)(S,"\u0275cmp",d.VBU({type:S,selectors:[["ion-row"]],ngContentSelectors:ze,decls:1,vars:0,template:function(M,fe){1&M&&(d.NAR(),d.SdG(0))},encapsulation:2,changeDetection:0})),S);return H=(0,Q.Cg)([Ae({})],H),H})(),Hn=(()=>{var S;let H=((0,g.A)(S=class{constructor(M,fe,qe){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=qe,M.detach(),this.el=fe.nativeElement}},"\u0275fac",function(M){return new(M||S)(d.rXU(d.gRc),d.rXU(d.aKT),d.rXU(d.SKi))}),(0,g.A)(S,"\u0275cmp",d.VBU({type:S,selectors:[["ion-title"]],inputs:{color:"color",size:"size"},ngContentSelectors:ze,decls:1,vars:0,template:function(M,fe){1&M&&(d.NAR(),d.SdG(0))},encapsulation:2,changeDetection:0})),S);return H=(0,Q.Cg)([Ae({inputs:["color","size"]})],H),H})(),Mi=(()=>{var S;let H=((0,g.A)(S=class{constructor(M,fe,qe){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=qe,M.detach(),this.el=fe.nativeElement}},"\u0275fac",function(M){return new(M||S)(d.rXU(d.gRc),d.rXU(d.aKT),d.rXU(d.SKi))}),(0,g.A)(S,"\u0275cmp",d.VBU({type:S,selectors:[["ion-toolbar"]],inputs:{color:"color",mode:"mode"},ngContentSelectors:ze,decls:1,vars:0,template:function(M,fe){1&M&&(d.NAR(),d.SdG(0))},encapsulation:2,changeDetection:0})),S);return H=(0,Q.Cg)([Ae({inputs:["color","mode"]})],H),H})(),xr=(()=>{var S;class H extends Oe.Rg{constructor(M,fe,qe,sr,ui,U,te,Ee){super(M,fe,qe,sr,ui,U,te,Ee),(0,g.A)(this,"parentOutlet",void 0),(0,g.A)(this,"outletContent",void 0),this.parentOutlet=Ee}}return S=H,(0,g.A)(H,"\u0275fac",function(M){return new(M||S)(d.kS0("name"),d.kS0("tabs"),d.rXU(ne.aZ),d.rXU(d.aKT),d.rXU(Qe.Ix),d.rXU(d.SKi),d.rXU(Qe.nX),d.rXU(S,12))}),(0,g.A)(H,"\u0275cmp",d.VBU({type:S,selectors:[["ion-router-outlet"]],viewQuery:function(M,fe){if(1&M&&d.GBs(Tt,7,d.c1b),2&M){let qe;d.mGM(qe=d.lsd())&&(fe.outletContent=qe.first)}},features:[d.Vt3],ngContentSelectors:ze,decls:3,vars:0,consts:[["outletContent",""]],template:function(M,fe){1&M&&(d.NAR(),d.qex(0,null,0),d.SdG(2),d.bVm())},encapsulation:2})),H})(),ti=(()=>{var S;class H extends Oe.pF{}return S=H,(0,g.A)(H,"\u0275fac",(()=>{let ue;return function(fe){return(ue||(ue=d.xGo(S)))(fe||S)}})()),(0,g.A)(H,"\u0275dir",d.FsC({type:S,selectors:[["a","routerLink",""],["area","routerLink",""]],features:[d.Vt3]})),H})();const Nn={provide:ge.cz,useExisting:(0,d.Rfq)(()=>kn),multi:!0};let kn=(()=>{var S;class H extends ge.zX{}return S=H,(0,g.A)(H,"\u0275fac",(()=>{let ue;return function(fe){return(ue||(ue=d.xGo(S)))(fe||S)}})()),(0,g.A)(H,"\u0275dir",d.FsC({type:S,selectors:[["ion-input","type","number","max","","formControlName",""],["ion-input","type","number","max","","formControl",""],["ion-input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(M,fe){2&M&&d.BMQ("max",fe._enabled?fe.max:null)},features:[d.Jv_([Nn]),d.Vt3]})),H})();const ko={provide:ge.cz,useExisting:(0,d.Rfq)(()=>ei),multi:!0};let ei=(()=>{var S;class H extends ge.VZ{}return S=H,(0,g.A)(H,"\u0275fac",(()=>{let ue;return function(fe){return(ue||(ue=d.xGo(S)))(fe||S)}})()),(0,g.A)(H,"\u0275dir",d.FsC({type:S,selectors:[["ion-input","type","number","min","","formControlName",""],["ion-input","type","number","min","","formControl",""],["ion-input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(M,fe){2&M&&d.BMQ("min",fe._enabled?fe.min:null)},features:[d.Jv_([ko]),d.Vt3]})),H})(),Bi=(()=>{var S;class H extends Oe.Kb{constructor(){super(ct.a)}}return S=H,(0,g.A)(H,"\u0275fac",function(M){return new(M||S)}),(0,g.A)(H,"\u0275prov",d.jDH({token:S,factory:S.\u0275fac,providedIn:"root"})),H})(),or=(()=>{var S;class H extends Oe.Kb{constructor(){super(ct.l)}}return S=H,(0,g.A)(H,"\u0275fac",function(M){return new(M||S)}),(0,g.A)(H,"\u0275prov",d.jDH({token:S,factory:S.\u0275fac,providedIn:"root"})),H})(),ai=(()=>{var S;class H extends Oe.Kb{constructor(){super(ct.m),(0,g.A)(this,"angularDelegate",(0,d.WQX)(Oe.Yq)),(0,g.A)(this,"injector",(0,d.WQX)(d.zZn)),(0,g.A)(this,"environmentInjector",(0,d.WQX)(d.uvJ))}create(M){return super.create({...M,delegate:this.angularDelegate.create(this.environmentInjector,this.injector,"modal")})}}return S=H,(0,g.A)(H,"\u0275fac",function(M){return new(M||S)}),(0,g.A)(H,"\u0275prov",d.jDH({token:S,factory:S.\u0275fac})),H})();class Fo extends Oe.Kb{constructor(){super(ct.c),(0,g.A)(this,"angularDelegate",(0,d.WQX)(Oe.Yq)),(0,g.A)(this,"injector",(0,d.WQX)(d.zZn)),(0,g.A)(this,"environmentInjector",(0,d.WQX)(d.uvJ))}create(H){return super.create({...H,delegate:this.angularDelegate.create(this.environmentInjector,this.injector,"popover")})}}const Co=(S,H,ue)=>()=>{const M=H.defaultView;if(M&&typeof window<"u"){(0,Ye.s)({...S,_zoneGate:qe=>ue.run(qe)});const fe="__zone_symbol__addEventListener"in H.body?"__zone_symbol__addEventListener":"addEventListener";return function je(){var S=[];if(typeof window<"u"){var H=window;(!H.customElements||H.Element&&(!H.Element.prototype.closest||!H.Element.prototype.matches||!H.Element.prototype.remove||!H.Element.prototype.getRootNode))&&S.push(B.e(7278).then(B.t.bind(B,2190,23))),("function"!=typeof Object.assign||!Object.entries||!Array.prototype.find||!Array.prototype.includes||!String.prototype.startsWith||!String.prototype.endsWith||H.NodeList&&!H.NodeList.prototype.forEach||!H.fetch||!function(){try{var M=new URL("b","http://a");return M.pathname="c%20d","http://a/c%20d"===M.href&&M.searchParams}catch{return!1}}()||typeof WeakMap>"u")&&S.push(B.e(9329).then(B.t.bind(B,7783,23)))}return Promise.all(S)}().then(()=>kt(M,{exclude:["ion-tabs","ion-tab"],syncQueue:!0,raf:Oe.er,jmp:qe=>ue.runOutsideAngular(qe),ael(qe,sr,ui,U){qe[fe](sr,ui,U)},rel(qe,sr,ui,U){qe.removeEventListener(sr,ui,U)}}))}};let xi=(()=>{var S;class H{static forRoot(M={}){return{ngModule:H,providers:[{provide:Oe.sR,useValue:M},{provide:d.hnV,useFactory:Co,multi:!0,deps:[Oe.sR,ne.qQ,d.SKi]},Oe.Yq,(0,Oe.YV)()]}}}return S=H,(0,g.A)(H,"\u0275fac",function(M){return new(M||S)}),(0,g.A)(H,"\u0275mod",d.$C({type:S})),(0,g.A)(H,"\u0275inj",d.G2t({providers:[ai,Fo],imports:[ne.MD]})),H})()},2214:(En,bt,B)=>{"use strict";B.d(bt,{Dk:()=>g.Dk,KO:()=>g.KO,Sx:()=>g.Sx,Wp:()=>g.Wp});var g=B(7852);(0,g.KO)("firebase","10.12.2","app")},467:(En,bt,B)=>{"use strict";function g(ge,Oe,Q,Ie,ne,Qe,tt){try{var Te=ge[Qe](tt),_e=Te.value}catch(Fe){return void Q(Fe)}Te.done?Oe(_e):Promise.resolve(_e).then(Ie,ne)}function d(ge){return function(){var Oe=this,Q=arguments;return new Promise(function(Ie,ne){var Qe=ge.apply(Oe,Q);function tt(_e){g(Qe,Ie,ne,tt,Te,"next",_e)}function Te(_e){g(Qe,Ie,ne,tt,Te,"throw",_e)}tt(void 0)})}}B.d(bt,{A:()=>d})},9842:(En,bt,B)=>{"use strict";function g(Q){return(g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(Ie){return typeof Ie}:function(Ie){return Ie&&"function"==typeof Symbol&&Ie.constructor===Symbol&&Ie!==Symbol.prototype?"symbol":typeof Ie})(Q)}function Oe(Q,Ie,ne){return(Ie=function ge(Q){var Ie=function d(Q,Ie){if("object"!=g(Q)||!Q)return Q;var ne=Q[Symbol.toPrimitive];if(void 0!==ne){var Qe=ne.call(Q,Ie||"default");if("object"!=g(Qe))return Qe;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===Ie?String:Number)(Q)}(Q,"string");return"symbol"==g(Ie)?Ie:String(Ie)}(Ie))in Q?Object.defineProperty(Q,Ie,{value:ne,enumerable:!0,configurable:!0,writable:!0}):Q[Ie]=ne,Q}B.d(bt,{A:()=>Oe})},1635:(En,bt,B)=>{"use strict";function Oe(z,q){var ie={};for(var he in z)Object.prototype.hasOwnProperty.call(z,he)&&q.indexOf(he)<0&&(ie[he]=z[he]);if(null!=z&&"function"==typeof Object.getOwnPropertySymbols){var ae=0;for(he=Object.getOwnPropertySymbols(z);ae=0;ut--)(Ae=z[ut])&&(me=(ae<3?Ae(me):ae>3?Ae(q,ie,me):Ae(q,ie))||me);return ae>3&&me&&Object.defineProperty(q,ie,me),me}function Fe(z,q,ie,he){return new(ie||(ie=Promise))(function(me,Ae){function ut(vn){try{jt(he.next(vn))}catch(bn){Ae(bn)}}function Vt(vn){try{jt(he.throw(vn))}catch(bn){Ae(bn)}}function jt(vn){vn.done?me(vn.value):function ae(me){return me instanceof ie?me:new ie(function(Ae){Ae(me)})}(vn.value).then(ut,Vt)}jt((he=he.apply(z,q||[])).next())})}function vt(z){return this instanceof vt?(this.v=z,this):new vt(z)}function Re(z,q,ie){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var ae,he=ie.apply(z,q||[]),me=[];return ae={},Ae("next"),Ae("throw"),Ae("return"),ae[Symbol.asyncIterator]=function(){return this},ae;function Ae($n){he[$n]&&(ae[$n]=function(qn){return new Promise(function(er,yn){me.push([$n,qn,er,yn])>1||ut($n,qn)})})}function ut($n,qn){try{!function Vt($n){$n.value instanceof vt?Promise.resolve($n.value.v).then(jt,vn):bn(me[0][2],$n)}(he[$n](qn))}catch(er){bn(me[0][3],er)}}function jt($n){ut("next",$n)}function vn($n){ut("throw",$n)}function bn($n,qn){$n(qn),me.shift(),me.length&&ut(me[0][0],me[0][1])}}function Ke(z){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var ie,q=z[Symbol.asyncIterator];return q?q.call(z):(z=function gt(z){var q="function"==typeof Symbol&&Symbol.iterator,ie=q&&z[q],he=0;if(ie)return ie.call(z);if(z&&"number"==typeof z.length)return{next:function(){return z&&he>=z.length&&(z=void 0),{value:z&&z[he++],done:!z}}};throw new TypeError(q?"Object is not iterable.":"Symbol.iterator is not defined.")}(z),ie={},he("next"),he("throw"),he("return"),ie[Symbol.asyncIterator]=function(){return this},ie);function he(me){ie[me]=z[me]&&function(Ae){return new Promise(function(ut,Vt){!function ae(me,Ae,ut,Vt){Promise.resolve(Vt).then(function(jt){me({value:jt,done:ut})},Ae)}(ut,Vt,(Ae=z[me](Ae)).done,Ae.value)})}}}B.d(bt,{AQ:()=>Re,Cg:()=>Q,N3:()=>vt,Tt:()=>Oe,sH:()=>Fe,xN:()=>Ke}),"function"==typeof SuppressedError&&SuppressedError}},En=>{En(En.s=63)}]); \ No newline at end of file diff --git a/www/main.c60d77526e4a53bb.js b/www/main.c60d77526e4a53bb.js new file mode 100644 index 0000000..02ad701 --- /dev/null +++ b/www/main.c60d77526e4a53bb.js @@ -0,0 +1 @@ +(self.webpackChunkapp=self.webpackChunkapp||[]).push([[8792],{1076:(En,bt,j)=>{"use strict";j.d(bt,{Am:()=>en,FA:()=>me,Fy:()=>Ke,I9:()=>Ar,Im:()=>Yn,Ku:()=>Xe,T9:()=>vt,Tj:()=>Mt,Uj:()=>Je,XA:()=>Me,ZQ:()=>Ct,bD:()=>yt,cY:()=>je,eX:()=>W,g:()=>ae,hp:()=>gn,jZ:()=>Ot,lT:()=>Be,lV:()=>Zt,nr:()=>Ee,sr:()=>Vt,tD:()=>Jt,u:()=>De,yU:()=>mt,zW:()=>B});const Oe=function(ie){const he=[];let Pe=0;for(let Et=0;Et>6|192,he[Pe++]=63&rt|128):55296==(64512&rt)&&Et+1>18|240,he[Pe++]=rt>>12&63|128,he[Pe++]=rt>>6&63|128,he[Pe++]=63&rt|128):(he[Pe++]=rt>>12|224,he[Pe++]=rt>>6&63|128,he[Pe++]=63&rt|128)}return he},Ie={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:"function"==typeof atob,encodeByteArray(ie,he){if(!Array.isArray(ie))throw Error("encodeByteArray takes an array as a parameter");this.init_();const Pe=he?this.byteToCharMapWebSafe_:this.byteToCharMap_,Et=[];for(let rt=0;rt>6,yr=63&ur;gr||(yr=64,Sn||(Rn=64)),Et.push(Pe[dn>>2],Pe[(3&dn)<<4|Wn>>4],Pe[Rn],Pe[yr])}return Et.join("")},encodeString(ie,he){return this.HAS_NATIVE_SUPPORT&&!he?btoa(ie):this.encodeByteArray(Oe(ie),he)},decodeString(ie,he){return this.HAS_NATIVE_SUPPORT&&!he?atob(ie):function(ie){const he=[];let Pe=0,Et=0;for(;Pe191&&rt<224){const dn=ie[Pe++];he[Et++]=String.fromCharCode((31&rt)<<6|63&dn)}else if(rt>239&&rt<365){const gr=((7&rt)<<18|(63&ie[Pe++])<<12|(63&ie[Pe++])<<6|63&ie[Pe++])-65536;he[Et++]=String.fromCharCode(55296+(gr>>10)),he[Et++]=String.fromCharCode(56320+(1023&gr))}else{const dn=ie[Pe++],Sn=ie[Pe++];he[Et++]=String.fromCharCode((15&rt)<<12|(63&dn)<<6|63&Sn)}}return he.join("")}(this.decodeStringToByteArray(ie,he))},decodeStringToByteArray(ie,he){this.init_();const Pe=he?this.charToByteMapWebSafe_:this.charToByteMap_,Et=[];for(let rt=0;rt>4),64!==ur&&(Et.push(Wn<<4&240|ur>>2),64!==xn&&Et.push(ur<<6&192|xn))}return Et},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let ie=0;ie=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(ie)]=ie,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(ie)]=ie)}}};class re extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}const Je=function(ie){return function(ie){const he=Oe(ie);return Ie.encodeByteArray(he,!0)}(ie).replace(/\./g,"")},De=function(ie){try{return Ie.decodeString(ie,!0)}catch(he){console.error("base64Decode failed: ",he)}return null},st=()=>{try{return function Le(){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 ie=process.env.__FIREBASE_DEFAULTS__;return ie?JSON.parse(ie):void 0})()||(()=>{if(typeof document>"u")return;let ie;try{ie=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch{return}const he=ie&&De(ie[1]);return he&&JSON.parse(he)})()}catch(ie){return void console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${ie}`)}},Mt=ie=>{var he,Pe;return null===(Pe=null===(he=st())||void 0===he?void 0:he.emulatorHosts)||void 0===Pe?void 0:Pe[ie]},mt=ie=>{const he=Mt(ie);if(!he)return;const Pe=he.lastIndexOf(":");if(Pe<=0||Pe+1===he.length)throw new Error(`Invalid host ${he} with no separate hostname and port!`);const Et=parseInt(he.substring(Pe+1),10);return"["===he[0]?[he.substring(1,Pe-1),Et]:[he.substring(0,Pe),Et]},vt=()=>{var ie;return null===(ie=st())||void 0===ie?void 0:ie.config},Me=ie=>{var he;return null===(he=st())||void 0===he?void 0:he[`_${ie}`]};class je{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((he,Pe)=>{this.resolve=he,this.reject=Pe})}wrapCallback(he){return(Pe,Et)=>{Pe?this.reject(Pe):this.resolve(Et),"function"==typeof he&&(this.promise.catch(()=>{}),1===he.length?he(Pe):he(Pe,Et))}}}function Ke(ie,he){if(ie.uid)throw new Error('The "uid" field is no longer supported by mockUserToken. Please use "sub" instead for Firebase Auth User ID.');const Et=he||"demo-project",rt=ie.iat||0,dn=ie.sub||ie.user_id;if(!dn)throw new Error("mockUserToken must contain 'sub' or 'user_id' field!");const Sn=Object.assign({iss:`https://securetoken.google.com/${Et}`,aud:Et,iat:rt,exp:rt+3600,auth_time:rt,sub:dn,user_id:dn,firebase:{sign_in_provider:"custom",identities:{}}},ie);return[Je(JSON.stringify({alg:"none",type:"JWT"})),Je(JSON.stringify(Sn)),""].join(".")}function Ct(){return typeof navigator<"u"&&"string"==typeof navigator.userAgent?navigator.userAgent:""}function Ot(){return typeof window<"u"&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(Ct())}function Vt(){const ie="object"==typeof chrome?chrome.runtime:"object"==typeof browser?browser.runtime:void 0;return"object"==typeof ie&&void 0!==ie.id}function Zt(){return"object"==typeof navigator&&"ReactNative"===navigator.product}function Be(){const ie=Ct();return ie.indexOf("MSIE ")>=0||ie.indexOf("Trident/")>=0}function Ee(){return!function He(){var ie;const he=null===(ie=st())||void 0===ie?void 0:ie.forceEnvironment;if("node"===he)return!0;if("browser"===he)return!1;try{return"[object process]"===Object.prototype.toString.call(global.process)}catch{return!1}}()&&!!navigator.userAgent&&navigator.userAgent.includes("Safari")&&!navigator.userAgent.includes("Chrome")}function B(){try{return"object"==typeof indexedDB}catch{return!1}}function W(){return new Promise((ie,he)=>{try{let Pe=!0;const Et="validate-browser-context-for-indexeddb-analytics-module",rt=self.indexedDB.open(Et);rt.onsuccess=()=>{rt.result.close(),Pe||self.indexedDB.deleteDatabase(Et),ie(!0)},rt.onupgradeneeded=()=>{Pe=!1},rt.onerror=()=>{var dn;he((null===(dn=rt.error)||void 0===dn?void 0:dn.message)||"")}}catch(Pe){he(Pe)}})}class ae extends Error{constructor(he,Pe,Et){super(Pe),this.code=he,this.customData=Et,this.name="FirebaseError",Object.setPrototypeOf(this,ae.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,me.prototype.create)}}class me{constructor(he,Pe,Et){this.service=he,this.serviceName=Pe,this.errors=Et}create(he,...Pe){const Et=Pe[0]||{},rt=`${this.service}/${he}`,dn=this.errors[he],Sn=dn?function Ce(ie,he){return ie.replace(at,(Pe,Et)=>{const rt=he[Et];return null!=rt?String(rt):`<${Et}?>`})}(dn,Et):"Error";return new ae(rt,`${this.serviceName}: ${Sn} (${rt}).`,Et)}}const at=/\{\$([^}]+)}/g;function Yn(ie){for(const he in ie)if(Object.prototype.hasOwnProperty.call(ie,he))return!1;return!0}function yt(ie,he){if(ie===he)return!0;const Pe=Object.keys(ie),Et=Object.keys(he);for(const rt of Pe){if(!Et.includes(rt))return!1;const dn=ie[rt],Sn=he[rt];if(Nt(dn)&&Nt(Sn)){if(!yt(dn,Sn))return!1}else if(dn!==Sn)return!1}for(const rt of Et)if(!Pe.includes(rt))return!1;return!0}function Nt(ie){return null!==ie&&"object"==typeof ie}function en(ie){const he=[];for(const[Pe,Et]of Object.entries(ie))Array.isArray(Et)?Et.forEach(rt=>{he.push(encodeURIComponent(Pe)+"="+encodeURIComponent(rt))}):he.push(encodeURIComponent(Pe)+"="+encodeURIComponent(Et));return he.length?"&"+he.join("&"):""}function Ar(ie){const he={};return ie.replace(/^\?/,"").split("&").forEach(Et=>{if(Et){const[rt,dn]=Et.split("=");he[decodeURIComponent(rt)]=decodeURIComponent(dn)}}),he}function gn(ie){const he=ie.indexOf("?");if(!he)return"";const Pe=ie.indexOf("#",he);return ie.substring(he,Pe>0?Pe:void 0)}function Jt(ie,he){const Pe=new Gt(ie,he);return Pe.subscribe.bind(Pe)}class Gt{constructor(he,Pe){this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Promise.resolve(),this.finalized=!1,this.onNoObservers=Pe,this.task.then(()=>{he(this)}).catch(Et=>{this.error(Et)})}next(he){this.forEachObserver(Pe=>{Pe.next(he)})}error(he){this.forEachObserver(Pe=>{Pe.error(he)}),this.close(he)}complete(){this.forEachObserver(he=>{he.complete()}),this.close()}subscribe(he,Pe,Et){let rt;if(void 0===he&&void 0===Pe&&void 0===Et)throw new Error("Missing Observer.");rt=function wr(ie,he){if("object"!=typeof ie||null===ie)return!1;for(const Pe of he)if(Pe in ie&&"function"==typeof ie[Pe])return!0;return!1}(he,["next","error","complete"])?he:{next:he,error:Pe,complete:Et},void 0===rt.next&&(rt.next=kr),void 0===rt.error&&(rt.error=kr),void 0===rt.complete&&(rt.complete=kr);const dn=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then(()=>{try{this.finalError?rt.error(this.finalError):rt.complete()}catch{}}),this.observers.push(rt),dn}unsubscribeOne(he){void 0===this.observers||void 0===this.observers[he]||(delete this.observers[he],this.observerCount-=1,0===this.observerCount&&void 0!==this.onNoObservers&&this.onNoObservers(this))}forEachObserver(he){if(!this.finalized)for(let Pe=0;Pe{if(void 0!==this.observers&&void 0!==this.observers[he])try{Pe(this.observers[he])}catch(Et){typeof console<"u"&&console.error&&console.error(Et)}})}close(he){this.finalized||(this.finalized=!0,void 0!==he&&(this.finalError=he),this.task.then(()=>{this.observers=void 0,this.onNoObservers=void 0}))}}function kr(){}function Xe(ie){return ie&&ie._delegate?ie._delegate:ie}},4442:(En,bt,j)=>{"use strict";j.d(bt,{L:()=>X,a:()=>Ie,b:()=>re,c:()=>Ze,d:()=>Je,g:()=>pt}),j(5531);const X="ionViewWillEnter",Ie="ionViewDidEnter",re="ionViewWillLeave",Ze="ionViewDidLeave",Je="ionViewWillUnload",pt=Ee=>Ee.classList.contains("ion-page")?Ee:Ee.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")||Ee},5531:(En,bt,j)=>{"use strict";j.d(bt,{a:()=>De,c:()=>d,g:()=>Je});class g{constructor(){this.m=new Map}reset(Ee){this.m=new Map(Object.entries(Ee))}get(Ee,B){const W=this.m.get(Ee);return void 0!==W?W:B}getBoolean(Ee,B=!1){const W=this.m.get(Ee);return void 0===W?B:"string"==typeof W?"true"===W:!!W}getNumber(Ee,B){const W=parseFloat(this.m.get(Ee));return isNaN(W)?void 0!==B?B:NaN:W}set(Ee,B){this.m.set(Ee,B)}}const d=new g,Je=pt=>_e(pt),De=(pt,Ee)=>("string"==typeof pt&&(Ee=pt,pt=void 0),Je(pt).includes(Ee)),_e=(pt=window)=>{if(typeof pt>"u")return[];pt.Ionic=pt.Ionic||{};let Ee=pt.Ionic.platforms;return null==Ee&&(Ee=pt.Ionic.platforms=Fe(pt),Ee.forEach(B=>pt.document.documentElement.classList.add(`plt-${B}`))),Ee},Fe=pt=>{const Ee=d.get("platform");return Object.keys(Zt).filter(B=>{const W=null==Ee?void 0:Ee[B];return"function"==typeof W?W(pt):Zt[B](pt)})},Le=pt=>!!(Tt(pt,/iPad/i)||Tt(pt,/Macintosh/i)&&vt(pt)),ut=pt=>Tt(pt,/android|sink/i),vt=pt=>Vt(pt,"(any-pointer:coarse)"),je=pt=>Ke(pt)||Ct(pt),Ke=pt=>!!(pt.cordova||pt.phonegap||pt.PhoneGap),Ct=pt=>{const Ee=pt.Capacitor;return!(null==Ee||!Ee.isNative)},Tt=(pt,Ee)=>Ee.test(pt.navigator.userAgent),Vt=(pt,Ee)=>{var B;return null===(B=pt.matchMedia)||void 0===B?void 0:B.call(pt,Ee).matches},Zt={ipad:Le,iphone:pt=>Tt(pt,/iPhone/i),ios:pt=>Tt(pt,/iPhone|iPod/i)||Le(pt),android:ut,phablet:pt=>{const Ee=pt.innerWidth,B=pt.innerHeight,W=Math.min(Ee,B),te=Math.max(Ee,B);return W>390&&W<520&&te>620&&te<800},tablet:pt=>{const Ee=pt.innerWidth,B=pt.innerHeight,W=Math.min(Ee,B),te=Math.max(Ee,B);return Le(pt)||(pt=>ut(pt)&&!Tt(pt,/mobile/i))(pt)||W>460&&W<820&&te>780&&te<1400},cordova:Ke,capacitor:Ct,electron:pt=>Tt(pt,/electron/i),pwa:pt=>{var Ee;return!!(null!==(Ee=pt.matchMedia)&&void 0!==Ee&&Ee.call(pt,"(display-mode: standalone)").matches||pt.navigator.standalone)},mobile:vt,mobileweb:pt=>vt(pt)&&!je(pt),desktop:pt=>!vt(pt),hybrid:je}},9986:(En,bt,j)=>{"use strict";j.d(bt,{c:()=>Ie});var g=j(8476);let d;const Oe=(re,Ze,Je)=>{const De=Ze.startsWith("animation")?(re=>(void 0===d&&(d=void 0===re.style.animationName&&void 0!==re.style.webkitAnimationName?"-webkit-":""),d))(re):"";re.style.setProperty(De+Ze,Je)},X=(re=[],Ze)=>{if(void 0!==Ze){const Je=Array.isArray(Ze)?Ze:[Ze];return[...re,...Je]}return re},Ie=re=>{let Ze,Je,De,_e,Fe,$e,st,Ot,He,Tt,Be,Le=[],Qe=[],ft=[],ut=!1,Mt={},mt=[],vt=[],Me={},je=0,Ke=!1,Ct=!1,Vt=!0,Zt=!1,Dt=!0,rn=!1;const pt=re,Ee=[],B=[],W=[],te=[],de=[],ae=[],me=[],Ce=[],at=[],kt=[],Bt=[],vn="function"==typeof AnimationEffect||void 0!==g.w&&"function"==typeof g.w.AnimationEffect,bn="function"==typeof Element&&"function"==typeof Element.prototype.animate&&vn,$n=()=>Bt,Yn=(Y,Z)=>{const Ne=Z.findIndex(Q=>Q.c===Y);Ne>-1&&Z.splice(Ne,1)},yt=(Y,Z)=>((null!=Z&&Z.oneTimeCallback?B:Ee).push({c:Y,o:Z}),Be),Xt=()=>{bn&&(Bt.forEach(Y=>{Y.cancel()}),Bt.length=0)},en=()=>{ae.forEach(Y=>{null!=Y&&Y.parentNode&&Y.parentNode.removeChild(Y)}),ae.length=0},Zn=()=>void 0!==Fe?Fe:st?st.getFill():"both",wn=()=>void 0!==Ot?Ot:void 0!==$e?$e:st?st.getDirection():"normal",Sr=()=>Ke?"linear":void 0!==De?De:st?st.getEasing():"linear",tr=()=>Ct?0:void 0!==He?He:void 0!==Je?Je:st?st.getDuration():0,Ir=()=>void 0!==_e?_e:st?st.getIterations():1,Mi=()=>void 0!==Tt?Tt:void 0!==Ze?Ze:st?st.getDelay():0,gr=()=>{0!==je&&(je--,0===je&&((()=>{at.forEach(Se=>Se()),kt.forEach(Se=>Se());const Y=Vt?1:0,Z=mt,Ne=vt,Q=Me;te.forEach(Se=>{const it=Se.classList;Z.forEach(Wt=>it.add(Wt)),Ne.forEach(Wt=>it.remove(Wt));for(const Wt in Q)Q.hasOwnProperty(Wt)&&Oe(Se,Wt,Q[Wt])}),He=void 0,Ot=void 0,Tt=void 0,Ee.forEach(Se=>Se.c(Y,Be)),B.forEach(Se=>Se.c(Y,Be)),B.length=0,Dt=!0,Vt&&(Zt=!0),Vt=!0})(),st&&st.animationFinish()))},ri=()=>{(()=>{me.forEach(Q=>Q()),Ce.forEach(Q=>Q());const Y=Qe,Z=ft,Ne=Mt;te.forEach(Q=>{const Se=Q.classList;Y.forEach(it=>Se.add(it)),Z.forEach(it=>Se.remove(it));for(const it in Ne)Ne.hasOwnProperty(it)&&Oe(Q,it,Ne[it])})})(),Le.length>0&&bn&&(te.forEach(Y=>{const Z=Y.animate(Le,{id:pt,delay:Mi(),duration:tr(),easing:Sr(),iterations:Ir(),fill:Zn(),direction:wn()});Z.pause(),Bt.push(Z)}),Bt.length>0&&(Bt[0].onfinish=()=>{gr()})),ut=!0},xn=Y=>{Y=Math.min(Math.max(Y,0),.9999),bn&&Bt.forEach(Z=>{Z.currentTime=Z.effect.getComputedTiming().delay+tr()*Y,Z.pause()})},Rn=Y=>{Bt.forEach(Z=>{Z.effect.updateTiming({delay:Mi(),duration:tr(),easing:Sr(),iterations:Ir(),fill:Zn(),direction:wn()})}),void 0!==Y&&xn(Y)},yr=(Y=!1,Z=!0,Ne)=>(Y&&de.forEach(Q=>{Q.update(Y,Z,Ne)}),bn&&Rn(Ne),Be),Ui=()=>{ut&&(bn?Bt.forEach(Y=>{Y.pause()}):te.forEach(Y=>{Oe(Y,"animation-play-state","paused")}),rn=!0)},St=Y=>new Promise(Z=>{null!=Y&&Y.sync&&(Ct=!0,yt(()=>Ct=!1,{oneTimeCallback:!0})),ut||ri(),Zt&&(bn&&(xn(0),Rn()),Zt=!1),Dt&&(je=de.length+1,Dt=!1);const Ne=()=>{Yn(Q,B),Z()},Q=()=>{Yn(Ne,W),Z()};yt(Q,{oneTimeCallback:!0}),((Y,Z)=>{W.push({c:Y,o:{oneTimeCallback:!0}})})(Ne),de.forEach(Se=>{Se.play()}),bn?(Bt.forEach(Y=>{Y.play()}),(0===Le.length||0===te.length)&&gr()):gr(),rn=!1}),Ut=(Y,Z)=>{const Ne=Le[0];return void 0===Ne||void 0!==Ne.offset&&0!==Ne.offset?Le=[{offset:0,[Y]:Z},...Le]:Ne[Y]=Z,Be};return Be={parentAnimation:st,elements:te,childAnimations:de,id:pt,animationFinish:gr,from:Ut,to:(Y,Z)=>{const Ne=Le[Le.length-1];return void 0===Ne||void 0!==Ne.offset&&1!==Ne.offset?Le=[...Le,{offset:1,[Y]:Z}]:Ne[Y]=Z,Be},fromTo:(Y,Z,Ne)=>Ut(Y,Z).to(Y,Ne),parent:Y=>(st=Y,Be),play:St,pause:()=>(de.forEach(Y=>{Y.pause()}),Ui(),Be),stop:()=>{de.forEach(Y=>{Y.stop()}),ut&&(Xt(),ut=!1),Ke=!1,Ct=!1,Dt=!0,Ot=void 0,He=void 0,Tt=void 0,je=0,Zt=!1,Vt=!0,rn=!1,W.forEach(Y=>Y.c(0,Be)),W.length=0},destroy:Y=>(de.forEach(Z=>{Z.destroy(Y)}),(Y=>{Xt(),Y&&en()})(Y),te.length=0,de.length=0,Le.length=0,Ee.length=0,B.length=0,ut=!1,Dt=!0,Be),keyframes:Y=>{const Z=Le!==Y;return Le=Y,Z&&(Y=>{bn&&$n().forEach(Z=>{const Ne=Z.effect;if(Ne.setKeyframes)Ne.setKeyframes(Y);else{const Q=new KeyframeEffect(Ne.target,Y,Ne.getTiming());Z.effect=Q}})})(Le),Be},addAnimation:Y=>{if(null!=Y)if(Array.isArray(Y))for(const Z of Y)Z.parent(Be),de.push(Z);else Y.parent(Be),de.push(Y);return Be},addElement:Y=>{if(null!=Y)if(1===Y.nodeType)te.push(Y);else if(Y.length>=0)for(let Z=0;Z(Fe=Y,yr(!0),Be),direction:Y=>($e=Y,yr(!0),Be),iterations:Y=>(_e=Y,yr(!0),Be),duration:Y=>(!bn&&0===Y&&(Y=1),Je=Y,yr(!0),Be),easing:Y=>(De=Y,yr(!0),Be),delay:Y=>(Ze=Y,yr(!0),Be),getWebAnimations:$n,getKeyframes:()=>Le,getFill:Zn,getDirection:wn,getDelay:Mi,getIterations:Ir,getEasing:Sr,getDuration:tr,afterAddRead:Y=>(at.push(Y),Be),afterAddWrite:Y=>(kt.push(Y),Be),afterClearStyles:(Y=[])=>{for(const Z of Y)Me[Z]="";return Be},afterStyles:(Y={})=>(Me=Y,Be),afterRemoveClass:Y=>(vt=X(vt,Y),Be),afterAddClass:Y=>(mt=X(mt,Y),Be),beforeAddRead:Y=>(me.push(Y),Be),beforeAddWrite:Y=>(Ce.push(Y),Be),beforeClearStyles:(Y=[])=>{for(const Z of Y)Mt[Z]="";return Be},beforeStyles:(Y={})=>(Mt=Y,Be),beforeRemoveClass:Y=>(ft=X(ft,Y),Be),beforeAddClass:Y=>(Qe=X(Qe,Y),Be),onFinish:yt,isRunning:()=>0!==je&&!rn,progressStart:(Y=!1,Z)=>(de.forEach(Ne=>{Ne.progressStart(Y,Z)}),Ui(),Ke=Y,ut||ri(),yr(!1,!0,Z),Be),progressStep:Y=>(de.forEach(Z=>{Z.progressStep(Y)}),xn(Y),Be),progressEnd:(Y,Z,Ne)=>(Ke=!1,de.forEach(Q=>{Q.progressEnd(Y,Z,Ne)}),void 0!==Ne&&(He=Ne),Zt=!1,Vt=!0,0===Y?(Ot="reverse"===wn()?"normal":"reverse","reverse"===Ot&&(Vt=!1),bn?(yr(),xn(1-Z)):(Tt=(1-Z)*tr()*-1,yr(!1,!1))):1===Y&&(bn?(yr(),xn(Z)):(Tt=Z*tr()*-1,yr(!1,!1))),void 0!==Y&&!st&&St(),Be)}}},464:(En,bt,j)=>{"use strict";j.d(bt,{E:()=>De,a:()=>g,s:()=>Ze});const g=_e=>{try{if(_e instanceof re)return _e.value;if(!Oe()||"string"!=typeof _e||""===_e)return _e;if(_e.includes("onload="))return"";const Fe=document.createDocumentFragment(),$e=document.createElement("div");Fe.appendChild($e),$e.innerHTML=_e,Ie.forEach(ut=>{const st=Fe.querySelectorAll(ut);for(let Mt=st.length-1;Mt>=0;Mt--){const mt=st[Mt];mt.parentNode?mt.parentNode.removeChild(mt):Fe.removeChild(mt);const vt=ge(mt);for(let Me=0;Me{if(_e.nodeType&&1!==_e.nodeType)return;if(typeof NamedNodeMap<"u"&&!(_e.attributes instanceof NamedNodeMap))return void _e.remove();for(let $e=_e.attributes.length-1;$e>=0;$e--){const Le=_e.attributes.item($e),Qe=Le.name;if(!X.includes(Qe.toLowerCase())){_e.removeAttribute(Qe);continue}const ft=Le.value,ut=_e[Qe];(null!=ft&&ft.toLowerCase().includes("javascript:")||null!=ut&&ut.toLowerCase().includes("javascript:"))&&_e.removeAttribute(Qe)}const Fe=ge(_e);for(let $e=0;$enull!=_e.children?_e.children:_e.childNodes,Oe=()=>{var _e;const Fe=window,$e=null===(_e=null==Fe?void 0:Fe.Ionic)||void 0===_e?void 0:_e.config;return!$e||($e.get?$e.get("sanitizerEnabled",!0):!0===$e.sanitizerEnabled||void 0===$e.sanitizerEnabled)},X=["class","id","href","src","name","slot"],Ie=["script","style","iframe","meta","link","object","embed"];class re{constructor(Fe){this.value=Fe}}const Ze=_e=>{const Fe=window,$e=Fe.Ionic;if(!$e||!$e.config||"Object"===$e.config.constructor.name)return Fe.Ionic=Fe.Ionic||{},Fe.Ionic.config=Object.assign(Object.assign({},Fe.Ionic.config),_e),Fe.Ionic.config},De=!1},8621:(En,bt,j)=>{"use strict";j.d(bt,{C:()=>X,a:()=>ge,d:()=>Oe});var g=j(467),d=j(4920);const ge=function(){var Ie=(0,g.A)(function*(re,Ze,Je,De,_e,Fe){var $e;if(re)return re.attachViewToDom(Ze,Je,_e,De);if(!(Fe||"string"==typeof Je||Je instanceof HTMLElement))throw new Error("framework delegate is missing");const Le="string"==typeof Je?null===($e=Ze.ownerDocument)||void 0===$e?void 0:$e.createElement(Je):Je;return De&&De.forEach(Qe=>Le.classList.add(Qe)),_e&&Object.assign(Le,_e),Ze.appendChild(Le),yield new Promise(Qe=>(0,d.c)(Le,Qe)),Le});return function(Ze,Je,De,_e,Fe,$e){return Ie.apply(this,arguments)}}(),Oe=(Ie,re)=>{if(re){if(Ie)return Ie.removeViewFromDom(re.parentElement,re);re.remove()}return Promise.resolve()},X=()=>{let Ie,re;return{attachViewToDom:function(){var De=(0,g.A)(function*(_e,Fe,$e={},Le=[]){var Qe,ft;let ut;if(Ie=_e,Fe){const Mt="string"==typeof Fe?null===(Qe=Ie.ownerDocument)||void 0===Qe?void 0:Qe.createElement(Fe):Fe;Le.forEach(mt=>Mt.classList.add(mt)),Object.assign(Mt,$e),Ie.appendChild(Mt),ut=Mt,yield new Promise(mt=>(0,d.c)(Mt,mt))}else if(Ie.children.length>0&&("ION-MODAL"===Ie.tagName||"ION-POPOVER"===Ie.tagName)&&!(ut=Ie.children[0]).classList.contains("ion-delegate-host")){const mt=null===(ft=Ie.ownerDocument)||void 0===ft?void 0:ft.createElement("div");mt.classList.add("ion-delegate-host"),Le.forEach(vt=>mt.classList.add(vt)),mt.append(...Ie.children),Ie.appendChild(mt),ut=mt}const st=document.querySelector("ion-app")||document.body;return re=document.createComment("ionic teleport"),Ie.parentNode.insertBefore(re,Ie),st.appendChild(Ie),null!=ut?ut:Ie});return function(Fe,$e){return De.apply(this,arguments)}}(),removeViewFromDom:()=>(Ie&&re&&(re.parentNode.insertBefore(Ie,re),re.remove()),Promise.resolve())}}},1970:(En,bt,j)=>{"use strict";j.d(bt,{B:()=>Oe,G:()=>X});class d{constructor(re,Ze,Je,De,_e){this.id=Ze,this.name=Je,this.disableScroll=_e,this.priority=1e6*De+Ze,this.ctrl=re}canStart(){return!!this.ctrl&&this.ctrl.canStart(this.name)}start(){return!!this.ctrl&&this.ctrl.start(this.name,this.id,this.priority)}capture(){if(!this.ctrl)return!1;const re=this.ctrl.capture(this.name,this.id,this.priority);return re&&this.disableScroll&&this.ctrl.disableScroll(this.id),re}release(){this.ctrl&&(this.ctrl.release(this.id),this.disableScroll&&this.ctrl.enableScroll(this.id))}destroy(){this.release(),this.ctrl=void 0}}class ge{constructor(re,Ze,Je,De){this.id=Ze,this.disable=Je,this.disableScroll=De,this.ctrl=re}block(){if(this.ctrl){if(this.disable)for(const re of this.disable)this.ctrl.disableGesture(re,this.id);this.disableScroll&&this.ctrl.disableScroll(this.id)}}unblock(){if(this.ctrl){if(this.disable)for(const re of this.disable)this.ctrl.enableGesture(re,this.id);this.disableScroll&&this.ctrl.enableScroll(this.id)}}destroy(){this.unblock(),this.ctrl=void 0}}const Oe="backdrop-no-scroll",X=new class g{constructor(){this.gestureId=0,this.requestedStart=new Map,this.disabledGestures=new Map,this.disabledScroll=new Set}createGesture(re){var Ze;return new d(this,this.newID(),re.name,null!==(Ze=re.priority)&&void 0!==Ze?Ze:0,!!re.disableScroll)}createBlocker(re={}){return new ge(this,this.newID(),re.disable,!!re.disableScroll)}start(re,Ze,Je){return this.canStart(re)?(this.requestedStart.set(Ze,Je),!0):(this.requestedStart.delete(Ze),!1)}capture(re,Ze,Je){if(!this.start(re,Ze,Je))return!1;const De=this.requestedStart;let _e=-1e4;if(De.forEach(Fe=>{_e=Math.max(_e,Fe)}),_e===Je){this.capturedId=Ze,De.clear();const Fe=new CustomEvent("ionGestureCaptured",{detail:{gestureName:re}});return document.dispatchEvent(Fe),!0}return De.delete(Ze),!1}release(re){this.requestedStart.delete(re),this.capturedId===re&&(this.capturedId=void 0)}disableGesture(re,Ze){let Je=this.disabledGestures.get(re);void 0===Je&&(Je=new Set,this.disabledGestures.set(re,Je)),Je.add(Ze)}enableGesture(re,Ze){const Je=this.disabledGestures.get(re);void 0!==Je&&Je.delete(Ze)}disableScroll(re){this.disabledScroll.add(re),1===this.disabledScroll.size&&document.body.classList.add(Oe)}enableScroll(re){this.disabledScroll.delete(re),0===this.disabledScroll.size&&document.body.classList.remove(Oe)}canStart(re){return!(void 0!==this.capturedId||this.isDisabled(re))}isCaptured(){return void 0!==this.capturedId}isScrollDisabled(){return this.disabledScroll.size>0}isDisabled(re){const Ze=this.disabledGestures.get(re);return!!(Ze&&Ze.size>0)}newID(){return this.gestureId++,this.gestureId}}},6411:(En,bt,j)=>{"use strict";j.r(bt),j.d(bt,{MENU_BACK_BUTTON_PRIORITY:()=>Je,OVERLAY_BACK_BUTTON_PRIORITY:()=>Ze,blockHardwareBackButton:()=>Ie,shouldUseCloseWatcher:()=>X,startHardwareBackButton:()=>re});var g=j(467),d=j(8476),ge=j(3664);j(9672);const X=()=>ge.c.get("experimentalCloseWatcher",!1)&&void 0!==d.w&&"CloseWatcher"in d.w,Ie=()=>{document.addEventListener("backbutton",()=>{})},re=()=>{const De=document;let _e=!1;const Fe=()=>{if(_e)return;let $e=0,Le=[];const Qe=new CustomEvent("ionBackButton",{bubbles:!1,detail:{register(st,Mt){Le.push({priority:st,handler:Mt,id:$e++})}}});De.dispatchEvent(Qe);const ft=function(){var st=(0,g.A)(function*(Mt){try{if(null!=Mt&&Mt.handler){const mt=Mt.handler(ut);null!=mt&&(yield mt)}}catch(mt){console.error(mt)}});return function(mt){return st.apply(this,arguments)}}(),ut=()=>{if(Le.length>0){let st={priority:Number.MIN_SAFE_INTEGER,handler:()=>{},id:-1};Le.forEach(Mt=>{Mt.priority>=st.priority&&(st=Mt)}),_e=!0,Le=Le.filter(Mt=>Mt.id!==st.id),ft(st).then(()=>_e=!1)}};ut()};if(X()){let $e;const Le=()=>{null==$e||$e.destroy(),$e=new d.w.CloseWatcher,$e.onclose=()=>{Fe(),Le()}};Le()}else De.addEventListener("backbutton",Fe)},Ze=100,Je=99},4920:(En,bt,j)=>{"use strict";j.d(bt,{a:()=>Ze,b:()=>Je,c:()=>ge,d:()=>Le,e:()=>Mt,f:()=>$e,g:()=>De,h:()=>X,i:()=>re,j:()=>Qe,k:()=>Oe,l:()=>Fe,m:()=>ft,n:()=>st,o:()=>mt,p:()=>ut,r:()=>_e,s:()=>vt,t:()=>g});const g=(Me,je=0)=>new Promise(Ke=>{d(Me,je,Ke)}),d=(Me,je=0,Ke)=>{let Ct,Ot;const He={passive:!0},Vt=()=>{Ct&&Ct()},Zt=Dt=>{(void 0===Dt||Me===Dt.target)&&(Vt(),Ke(Dt))};return Me&&(Me.addEventListener("webkitTransitionEnd",Zt,He),Me.addEventListener("transitionend",Zt,He),Ot=setTimeout(Zt,je+500),Ct=()=>{void 0!==Ot&&(clearTimeout(Ot),Ot=void 0),Me.removeEventListener("webkitTransitionEnd",Zt,He),Me.removeEventListener("transitionend",Zt,He)}),Vt},ge=(Me,je)=>{Me.componentOnReady?Me.componentOnReady().then(Ke=>je(Ke)):_e(()=>je(Me))},Oe=Me=>void 0!==Me.componentOnReady,X=(Me,je=[])=>{const Ke={};return je.forEach(Ct=>{Me.hasAttribute(Ct)&&(null!==Me.getAttribute(Ct)&&(Ke[Ct]=Me.getAttribute(Ct)),Me.removeAttribute(Ct))}),Ke},Ie=["role","aria-activedescendant","aria-atomic","aria-autocomplete","aria-braillelabel","aria-brailleroledescription","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colindextext","aria-colspan","aria-controls","aria-current","aria-describedby","aria-description","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowindextext","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext"],re=(Me,je)=>{let Ke=Ie;return je&&je.length>0&&(Ke=Ke.filter(Ct=>!je.includes(Ct))),X(Me,Ke)},Ze=(Me,je,Ke,Ct)=>{var Ot;if(typeof window<"u"){const He=window,Tt=null===(Ot=null==He?void 0:He.Ionic)||void 0===Ot?void 0:Ot.config;if(Tt){const Vt=Tt.get("_ael");if(Vt)return Vt(Me,je,Ke,Ct);if(Tt._ael)return Tt._ael(Me,je,Ke,Ct)}}return Me.addEventListener(je,Ke,Ct)},Je=(Me,je,Ke,Ct)=>{var Ot;if(typeof window<"u"){const He=window,Tt=null===(Ot=null==He?void 0:He.Ionic)||void 0===Ot?void 0:Ot.config;if(Tt){const Vt=Tt.get("_rel");if(Vt)return Vt(Me,je,Ke,Ct);if(Tt._rel)return Tt._rel(Me,je,Ke,Ct)}}return Me.removeEventListener(je,Ke,Ct)},De=(Me,je=Me)=>Me.shadowRoot||je,_e=Me=>"function"==typeof __zone_symbol__requestAnimationFrame?__zone_symbol__requestAnimationFrame(Me):"function"==typeof requestAnimationFrame?requestAnimationFrame(Me):setTimeout(Me),Fe=Me=>!!Me.shadowRoot&&!!Me.attachShadow,$e=Me=>{if(Me.focus(),Me.classList.contains("ion-focusable")){const je=Me.closest("ion-app");je&&je.setFocus([Me])}},Le=(Me,je,Ke,Ct,Ot)=>{if(Me||Fe(je)){let He=je.querySelector("input.aux-input");He||(He=je.ownerDocument.createElement("input"),He.type="hidden",He.classList.add("aux-input"),je.appendChild(He)),He.disabled=Ot,He.name=Ke,He.value=Ct||""}},Qe=(Me,je,Ke)=>Math.max(Me,Math.min(je,Ke)),ft=(Me,je)=>{if(!Me){const Ke="ASSERT: "+je;throw console.error(Ke),new Error(Ke)}},ut=Me=>{if(Me){const je=Me.changedTouches;if(je&&je.length>0){const Ke=je[0];return{x:Ke.clientX,y:Ke.clientY}}if(void 0!==Me.pageX)return{x:Me.pageX,y:Me.pageY}}return{x:0,y:0}},st=Me=>{const je="rtl"===document.dir;switch(Me){case"start":return je;case"end":return!je;default:throw new Error(`"${Me}" is not a valid value for [side]. Use "start" or "end" instead.`)}},Mt=(Me,je)=>{const Ke=Me._original||Me;return{_original:Me,emit:mt(Ke.emit.bind(Ke),je)}},mt=(Me,je=0)=>{let Ke;return(...Ct)=>{clearTimeout(Ke),Ke=setTimeout(Me,je,...Ct)}},vt=(Me,je)=>{if(null!=Me||(Me={}),null!=je||(je={}),Me===je)return!0;const Ke=Object.keys(Me);if(Ke.length!==Object.keys(je).length)return!1;for(const Ct of Ke)if(!(Ct in je)||Me[Ct]!==je[Ct])return!1;return!0}},5465:(En,bt,j)=>{"use strict";j.d(bt,{m:()=>$e});var g=j(467),d=j(8476),ge=j(6411),Oe=j(4929),X=j(4920),Ie=j(3664),re=j(9986);const Ze=Le=>(0,re.c)().duration(Le?400:300),Je=Le=>{let Qe,ft;const ut=Le.width+8,st=(0,re.c)(),Mt=(0,re.c)();Le.isEndSide?(Qe=ut+"px",ft="0px"):(Qe=-ut+"px",ft="0px"),st.addElement(Le.menuInnerEl).fromTo("transform",`translateX(${Qe})`,`translateX(${ft})`);const vt="ios"===(0,Ie.b)(Le),Me=vt?.2:.25;return Mt.addElement(Le.backdropEl).fromTo("opacity",.01,Me),Ze(vt).addAnimation([st,Mt])},De=Le=>{let Qe,ft;const ut=(0,Ie.b)(Le),st=Le.width;Le.isEndSide?(Qe=-st+"px",ft=st+"px"):(Qe=st+"px",ft=-st+"px");const Mt=(0,re.c)().addElement(Le.menuInnerEl).fromTo("transform",`translateX(${ft})`,"translateX(0px)"),mt=(0,re.c)().addElement(Le.contentEl).fromTo("transform","translateX(0px)",`translateX(${Qe})`),vt=(0,re.c)().addElement(Le.backdropEl).fromTo("opacity",.01,.32);return Ze("ios"===ut).addAnimation([Mt,mt,vt])},_e=Le=>{const Qe=(0,Ie.b)(Le),ft=Le.width*(Le.isEndSide?-1:1)+"px",ut=(0,re.c)().addElement(Le.contentEl).fromTo("transform","translateX(0px)",`translateX(${ft})`);return Ze("ios"===Qe).addAnimation(ut)},$e=(()=>{const Le=new Map,Qe=[],ft=function(){var W=(0,g.A)(function*(te){const de=yield je(te,!0);return!!de&&de.open()});return function(de){return W.apply(this,arguments)}}(),ut=function(){var W=(0,g.A)(function*(te){const de=yield void 0!==te?je(te,!0):Ke();return void 0!==de&&de.close()});return function(de){return W.apply(this,arguments)}}(),st=function(){var W=(0,g.A)(function*(te){const de=yield je(te,!0);return!!de&&de.toggle()});return function(de){return W.apply(this,arguments)}}(),Mt=function(){var W=(0,g.A)(function*(te,de){const ae=yield je(de);return ae&&(ae.disabled=!te),ae});return function(de,ae){return W.apply(this,arguments)}}(),mt=function(){var W=(0,g.A)(function*(te,de){const ae=yield je(de);return ae&&(ae.swipeGesture=te),ae});return function(de,ae){return W.apply(this,arguments)}}(),vt=function(){var W=(0,g.A)(function*(te){if(null!=te){const de=yield je(te);return void 0!==de&&de.isOpen()}return void 0!==(yield Ke())});return function(de){return W.apply(this,arguments)}}(),Me=function(){var W=(0,g.A)(function*(te){const de=yield je(te);return!!de&&!de.disabled});return function(de){return W.apply(this,arguments)}}(),je=function(){var W=(0,g.A)(function*(te,de=!1){if(yield B(),"start"===te||"end"===te){const me=Qe.filter(at=>at.side===te&&!at.disabled);if(me.length>=1)return me.length>1&&de&&(0,Oe.p)(`menuController queried for a menu on the "${te}" side, but ${me.length} menus were found. The first menu reference will be used. If this is not the behavior you want then pass the ID of the menu instead of its side.`,me.map(at=>at.el)),me[0].el;const Ce=Qe.filter(at=>at.side===te);if(Ce.length>=1)return Ce.length>1&&de&&(0,Oe.p)(`menuController queried for a menu on the "${te}" side, but ${Ce.length} menus were found. The first menu reference will be used. If this is not the behavior you want then pass the ID of the menu instead of its side.`,Ce.map(at=>at.el)),Ce[0].el}else if(null!=te)return Ee(me=>me.menuId===te);return Ee(me=>!me.disabled)||(Qe.length>0?Qe[0].el:void 0)});return function(de){return W.apply(this,arguments)}}(),Ke=function(){var W=(0,g.A)(function*(){return yield B(),Be()});return function(){return W.apply(this,arguments)}}(),Ct=function(){var W=(0,g.A)(function*(){return yield B(),rn()});return function(){return W.apply(this,arguments)}}(),Ot=function(){var W=(0,g.A)(function*(){return yield B(),pt()});return function(){return W.apply(this,arguments)}}(),He=(W,te)=>{Le.set(W,te)},Zt=function(){var W=(0,g.A)(function*(te,de,ae){if(pt())return!1;if(de){const me=yield Ke();me&&te.el!==me&&(yield me.setOpen(!1,!1))}return te._setOpen(de,ae)});return function(de,ae,me){return W.apply(this,arguments)}}(),Be=()=>Ee(W=>W._isOpen),rn=()=>Qe.map(W=>W.el),pt=()=>Qe.some(W=>W.isAnimating),Ee=W=>{const te=Qe.find(W);if(void 0!==te)return te.el},B=()=>Promise.all(Array.from(document.querySelectorAll("ion-menu")).map(W=>new Promise(te=>(0,X.c)(W,te))));return He("reveal",_e),He("push",De),He("overlay",Je),null==d.d||d.d.addEventListener("ionBackButton",W=>{const te=Be();te&&W.detail.register(ge.MENU_BACK_BUTTON_PRIORITY,()=>te.close())}),{registerAnimation:He,get:je,getMenus:Ct,getOpen:Ke,isEnabled:Me,swipeGesture:mt,isAnimating:Ot,isOpen:vt,enable:Mt,toggle:st,close:ut,open:ft,_getOpenSync:Be,_createAnimation:(W,te)=>{const de=Le.get(W);if(!de)throw new Error("animation not registered");return de(te)},_register:W=>{Qe.indexOf(W)<0&&Qe.push(W)},_unregister:W=>{const te=Qe.indexOf(W);te>-1&&Qe.splice(te,1)},_setOpen:Zt}})()},8607:(En,bt,j)=>{"use strict";j.r(bt),j.d(bt,{GESTURE_CONTROLLER:()=>g.G,createGesture:()=>Je});var g=j(1970);const d=($e,Le,Qe,ft)=>{const ut=ge($e)?{capture:!!ft.capture,passive:!!ft.passive}:!!ft.capture;let st,Mt;return $e.__zone_symbol__addEventListener?(st="__zone_symbol__addEventListener",Mt="__zone_symbol__removeEventListener"):(st="addEventListener",Mt="removeEventListener"),$e[st](Le,Qe,ut),()=>{$e[Mt](Le,Qe,ut)}},ge=$e=>{if(void 0===Oe)try{const Le=Object.defineProperty({},"passive",{get:()=>{Oe=!0}});$e.addEventListener("optsTest",()=>{},Le)}catch{Oe=!1}return!!Oe};let Oe;const re=$e=>$e instanceof Document?$e:$e.ownerDocument,Je=$e=>{let Le=!1,Qe=!1,ft=!0,ut=!1;const st=Object.assign({disableScroll:!1,direction:"x",gesturePriority:0,passive:!0,maxAngle:40,threshold:10},$e),Mt=st.canStart,mt=st.onWillStart,vt=st.onStart,Me=st.onEnd,je=st.notCaptured,Ke=st.onMove,Ct=st.threshold,Ot=st.passive,He=st.blurOnStart,Tt={type:"pan",startX:0,startY:0,startTime:0,currentX:0,currentY:0,velocityX:0,velocityY:0,deltaX:0,deltaY:0,currentTime:0,event:void 0,data:void 0},Vt=(($e,Le,Qe)=>{const ft=Qe*(Math.PI/180),ut="x"===$e,st=Math.cos(ft),Mt=Le*Le;let mt=0,vt=0,Me=!1,je=0;return{start(Ke,Ct){mt=Ke,vt=Ct,je=0,Me=!0},detect(Ke,Ct){if(!Me)return!1;const Ot=Ke-mt,He=Ct-vt,Tt=Ot*Ot+He*He;if(Ttst?1:Zt<-st?-1:0,Me=!1,!0},isGesture:()=>0!==je,getDirection:()=>je}})(st.direction,st.threshold,st.maxAngle),Zt=g.G.createGesture({name:$e.gestureName,priority:$e.gesturePriority,disableScroll:$e.disableScroll}),rn=()=>{Le&&(ut=!1,Ke&&Ke(Tt))},pt=()=>!!Zt.capture()&&(Le=!0,ft=!1,Tt.startX=Tt.currentX,Tt.startY=Tt.currentY,Tt.startTime=Tt.currentTime,mt?mt(Tt).then(B):B(),!0),B=()=>{He&&(()=>{if(typeof document<"u"){const me=document.activeElement;null!=me&&me.blur&&me.blur()}})(),vt&&vt(Tt),ft=!0},W=()=>{Le=!1,Qe=!1,ut=!1,ft=!0,Zt.release()},te=me=>{const Ce=Le,at=ft;if(W(),at){if(De(Tt,me),Ce)return void(Me&&Me(Tt));je&&je(Tt)}},de=(($e,Le,Qe,ft,ut)=>{let st,Mt,mt,vt,Me,je,Ke,Ct=0;const Ot=Ee=>{Ct=Date.now()+2e3,Le(Ee)&&(!Mt&&Qe&&(Mt=d($e,"touchmove",Qe,ut)),mt||(mt=d(Ee.target,"touchend",Tt,ut)),vt||(vt=d(Ee.target,"touchcancel",Tt,ut)))},He=Ee=>{Ct>Date.now()||Le(Ee)&&(!je&&Qe&&(je=d(re($e),"mousemove",Qe,ut)),Ke||(Ke=d(re($e),"mouseup",Vt,ut)))},Tt=Ee=>{Zt(),ft&&ft(Ee)},Vt=Ee=>{Dt(),ft&&ft(Ee)},Zt=()=>{Mt&&Mt(),mt&&mt(),vt&&vt(),Mt=mt=vt=void 0},Dt=()=>{je&&je(),Ke&&Ke(),je=Ke=void 0},Be=()=>{Zt(),Dt()},rn=(Ee=!0)=>{Ee?(st||(st=d($e,"touchstart",Ot,ut)),Me||(Me=d($e,"mousedown",He,ut))):(st&&st(),Me&&Me(),st=Me=void 0,Be())};return{enable:rn,stop:Be,destroy:()=>{rn(!1),ft=Qe=Le=void 0}}})(st.el,me=>{const Ce=Fe(me);return!(Qe||!ft||(_e(me,Tt),Tt.startX=Tt.currentX,Tt.startY=Tt.currentY,Tt.startTime=Tt.currentTime=Ce,Tt.velocityX=Tt.velocityY=Tt.deltaX=Tt.deltaY=0,Tt.event=me,Mt&&!1===Mt(Tt))||(Zt.release(),!Zt.start()))&&(Qe=!0,0===Ct?pt():(Vt.start(Tt.startX,Tt.startY),!0))},me=>{Le?!ut&&ft&&(ut=!0,De(Tt,me),requestAnimationFrame(rn)):(De(Tt,me),Vt.detect(Tt.currentX,Tt.currentY)&&(!Vt.isGesture()||!pt())&&ae())},te,{capture:!1,passive:Ot}),ae=()=>{W(),de.stop(),je&&je(Tt)};return{enable(me=!0){me||(Le&&te(void 0),W()),de.enable(me)},destroy(){Zt.destroy(),de.destroy()}}},De=($e,Le)=>{if(!Le)return;const Qe=$e.currentX,ft=$e.currentY,ut=$e.currentTime;_e(Le,$e);const st=$e.currentX,Mt=$e.currentY,vt=($e.currentTime=Fe(Le))-ut;if(vt>0&&vt<100){const je=(Mt-ft)/vt;$e.velocityX=(st-Qe)/vt*.7+.3*$e.velocityX,$e.velocityY=.7*je+.3*$e.velocityY}$e.deltaX=st-$e.startX,$e.deltaY=Mt-$e.startY,$e.event=Le},_e=($e,Le)=>{let Qe=0,ft=0;if($e){const ut=$e.changedTouches;if(ut&&ut.length>0){const st=ut[0];Qe=st.clientX,ft=st.clientY}else void 0!==$e.pageX&&(Qe=$e.pageX,ft=$e.pageY)}Le.currentX=Qe,Le.currentY=ft},Fe=$e=>$e.timeStamp||Date.now()},9672:(En,bt,j)=>{"use strict";j.d(bt,{B:()=>Ie,a:()=>Fo,b:()=>xr,c:()=>at,d:()=>bn,e:()=>sr,f:()=>pt,g:()=>kt,h:()=>Be,i:()=>vn,j:()=>yr,k:()=>re,r:()=>Nn,w:()=>ui});var g=j(467);var Oe=Object.defineProperty,Ie={isDev:!1,isBrowser:!0,isServer:!1,isTesting:!1},re=U=>{const ne=new URL(U,jn.$resourcesUrl$);return ne.origin!==or.location.origin?ne.href:ne.pathname},Ze={},Fe=U=>"object"==(U=typeof U)||"function"===U;function $e(U){var ne,Ae,ke;return null!=(ke=null==(Ae=null==(ne=U.head)?void 0:ne.querySelector('meta[name="csp-nonce"]'))?void 0:Ae.getAttribute("content"))?ke:void 0}((U,ne)=>{for(var Ae in ne)Oe(U,Ae,{get:ne[Ae],enumerable:!0})})({},{err:()=>ft,map:()=>ut,ok:()=>Qe,unwrap:()=>st,unwrapErr:()=>Mt});var Qe=U=>({isOk:!0,isErr:!1,value:U}),ft=U=>({isOk:!1,isErr:!0,value:U});function ut(U,ne){if(U.isOk){const Ae=ne(U.value);return Ae instanceof Promise?Ae.then(ke=>Qe(ke)):Qe(Ae)}if(U.isErr)return ft(U.value);throw"should never get here"}var st=U=>{if(U.isOk)return U.value;throw U.value},Mt=U=>{if(U.isErr)return U.value;throw U.value},Ot="s-id",He="sty-id",Zt="slot-fb{display:contents}slot-fb[hidden]{display:none}",Dt="http://www.w3.org/1999/xlink",Be=(U,ne,...Ae)=>{let ke=null,ot=null,et=null,Lt=!1,zt=!1;const Kt=[],Yt=Cn=>{for(let Ln=0;LnCn[Ln]).join(" "))}}if("function"==typeof U)return U(null===ne?{}:ne,Kt,B);const _n=rn(U,null);return _n.$attrs$=ne,Kt.length>0&&(_n.$children$=Kt),_n.$key$=ot,_n.$name$=et,_n},rn=(U,ne)=>({$flags$:0,$tag$:U,$text$:ne,$elm$:null,$children$:null,$attrs$:null,$key$:null,$name$:null}),pt={},B={forEach:(U,ne)=>U.map(W).forEach(ne),map:(U,ne)=>U.map(W).map(ne).map(te)},W=U=>({vattrs:U.$attrs$,vchildren:U.$children$,vkey:U.$key$,vname:U.$name$,vtag:U.$tag$,vtext:U.$text$}),te=U=>{if("function"==typeof U.vtag){const Ae={...U.vattrs};return U.vkey&&(Ae.key=U.vkey),U.vname&&(Ae.name=U.vname),Be(U.vtag,Ae,...U.vchildren||[])}const ne=rn(U.vtag,U.vtext);return ne.$attrs$=U.vattrs,ne.$children$=U.vchildren,ne.$key$=U.vkey,ne.$name$=U.vname,ne},ae=(U,ne,Ae,ke,ot,et,Lt)=>{let zt,Kt,Yt,_n;if(1===et.nodeType){for(zt=et.getAttribute("c-id"),zt&&(Kt=zt.split("."),(Kt[0]===Lt||"0"===Kt[0])&&(Yt={$flags$:0,$hostId$:Kt[0],$nodeId$:Kt[1],$depth$:Kt[2],$index$:Kt[3],$tag$:et.tagName.toLowerCase(),$elm$:et,$attrs$:null,$children$:null,$key$:null,$name$:null,$text$:null},ne.push(Yt),et.removeAttribute("c-id"),U.$children$||(U.$children$=[]),U.$children$[Yt.$index$]=Yt,U=Yt,ke&&"0"===Yt.$depth$&&(ke[Yt.$index$]=Yt.$elm$))),_n=et.childNodes.length-1;_n>=0;_n--)ae(U,ne,Ae,ke,ot,et.childNodes[_n],Lt);if(et.shadowRoot)for(_n=et.shadowRoot.childNodes.length-1;_n>=0;_n--)ae(U,ne,Ae,ke,ot,et.shadowRoot.childNodes[_n],Lt)}else if(8===et.nodeType)Kt=et.nodeValue.split("."),(Kt[1]===Lt||"0"===Kt[1])&&(zt=Kt[0],Yt={$flags$:0,$hostId$:Kt[1],$nodeId$:Kt[2],$depth$:Kt[3],$index$:Kt[4],$elm$:et,$attrs$:null,$children$:null,$key$:null,$name$:null,$tag$:null,$text$:null},"t"===zt?(Yt.$elm$=et.nextSibling,Yt.$elm$&&3===Yt.$elm$.nodeType&&(Yt.$text$=Yt.$elm$.textContent,ne.push(Yt),et.remove(),U.$children$||(U.$children$=[]),U.$children$[Yt.$index$]=Yt,ke&&"0"===Yt.$depth$&&(ke[Yt.$index$]=Yt.$elm$))):Yt.$hostId$===Lt&&("s"===zt?(Yt.$tag$="slot",et["s-sn"]=Kt[5]?Yt.$name$=Kt[5]:"",et["s-sr"]=!0,ke&&(Yt.$elm$=Or.createElement(Yt.$tag$),Yt.$name$&&Yt.$elm$.setAttribute("name",Yt.$name$),et.parentNode.insertBefore(Yt.$elm$,et),et.remove(),"0"===Yt.$depth$&&(ke[Yt.$index$]=Yt.$elm$)),Ae.push(Yt),U.$children$||(U.$children$=[]),U.$children$[Yt.$index$]=Yt):"r"===zt&&(ke?et.remove():(ot["s-cr"]=et,et["s-cn"]=!0))));else if(U&&"style"===U.$tag$){const Cn=rn(null,et.textContent);Cn.$elm$=et,Cn.$index$="0",U.$children$=[Cn]}},me=(U,ne)=>{if(1===U.nodeType){let Ae=0;for(;Aesi.push(U),kt=U=>oi(U).$modeName$,vn=U=>oi(U).$hostElement$,bn=(U,ne,Ae)=>{const ke=vn(U);return{emit:ot=>$n(ke,ne,{bubbles:!!(4&Ae),composed:!!(2&Ae),cancelable:!!(1&Ae),detail:ot})}},$n=(U,ne,Ae)=>{const ke=jn.ce(ne,Ae);return U.dispatchEvent(ke),ke},qn=new WeakMap,er=(U,ne,Ae)=>{let ke=ps.get(U);To&&Ae?(ke=ke||new CSSStyleSheet,"string"==typeof ke?ke=ne:ke.replaceSync(ne)):ke=ne,ps.set(U,ke)},yn=(U,ne,Ae)=>{var ke;const ot=Yn(ne,Ae),et=ps.get(ot);if(U=11===U.nodeType?U:Or,et)if("string"==typeof et){let zt,Lt=qn.get(U=U.head||U);if(Lt||qn.set(U,Lt=new Set),!Lt.has(ot)){if(U.host&&(zt=U.querySelector(`[${He}="${ot}"]`)))zt.innerHTML=et;else{zt=Or.createElement("style"),zt.innerHTML=et;const Kt=null!=(ke=jn.$nonce$)?ke:$e(Or);null!=Kt&&zt.setAttribute("nonce",Kt),U.insertBefore(zt,U.querySelector("link"))}4&ne.$flags$&&(zt.innerHTML+=Zt),Lt&&Lt.add(ot)}}else U.adoptedStyleSheets.includes(et)||(U.adoptedStyleSheets=[...U.adoptedStyleSheets,et]);return ot},Yn=(U,ne)=>"sc-"+(ne&&32&U.$flags$?U.$tagName$+"-"+ne:U.$tagName$),Ve=U=>U.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g,"$1{"),yt=(U,ne,Ae,ke,ot,et)=>{if(Ae!==ke){let Lt=ko(U,ne),zt=ne.toLowerCase();if("class"===ne){const Kt=U.classList,Yt=Xt(Ae),_n=Xt(ke);Kt.remove(...Yt.filter(Cn=>Cn&&!_n.includes(Cn))),Kt.add(..._n.filter(Cn=>Cn&&!Yt.includes(Cn)))}else if("style"===ne){for(const Kt in Ae)(!ke||null==ke[Kt])&&(Kt.includes("-")?U.style.removeProperty(Kt):U.style[Kt]="");for(const Kt in ke)(!Ae||ke[Kt]!==Ae[Kt])&&(Kt.includes("-")?U.style.setProperty(Kt,ke[Kt]):U.style[Kt]=ke[Kt])}else if("key"!==ne)if("ref"===ne)ke&&ke(U);else if(Lt||"o"!==ne[0]||"n"!==ne[1]){const Kt=Fe(ke);if((Lt||Kt&&null!==ke)&&!ot)try{if(U.tagName.includes("-"))U[ne]=ke;else{const _n=null==ke?"":ke;"list"===ne?Lt=!1:(null==Ae||U[ne]!=_n)&&(U[ne]=_n)}}catch{}let Yt=!1;zt!==(zt=zt.replace(/^xlink\:?/,""))&&(ne=zt,Yt=!0),null==ke||!1===ke?(!1!==ke||""===U.getAttribute(ne))&&(Yt?U.removeAttributeNS(Dt,ne):U.removeAttribute(ne)):(!Lt||4&et||ot)&&!Kt&&(ke=!0===ke?"":ke,Yt?U.setAttributeNS(Dt,ne,ke):U.setAttribute(ne,ke))}else if(ne="-"===ne[2]?ne.slice(3):ko(or,zt)?zt.slice(2):zt[2]+ne.slice(3),Ae||ke){const Kt=ne.endsWith(en);ne=ne.replace(Ar,""),Ae&&jn.rel(U,ne,Ae,Kt),ke&&jn.ael(U,ne,ke,Kt)}}},Nt=/\s/,Xt=U=>U?U.split(Nt):[],en="Capture",Ar=new RegExp(en+"$"),gn=(U,ne,Ae)=>{const ke=11===ne.$elm$.nodeType&&ne.$elm$.host?ne.$elm$.host:ne.$elm$,ot=U&&U.$attrs$||Ze,et=ne.$attrs$||Ze;for(const Lt of mn(Object.keys(ot)))Lt in et||yt(ke,Lt,ot[Lt],void 0,Ae,ne.$flags$);for(const Lt of mn(Object.keys(et)))yt(ke,Lt,ot[Lt],et[Lt],Ae,ne.$flags$)};function mn(U){return U.includes("ref")?[...U.filter(ne=>"ref"!==ne),"ref"]:U}var Jt,Gt,pr,wr=!1,kr=!1,Mr=!1,_r=!1,Bn=(U,ne,Ae,ke)=>{var ot;const et=ne.$children$[Ae];let zt,Kt,Yt,Lt=0;if(wr||(Mr=!0,"slot"===et.$tag$&&(Jt&&ke.classList.add(Jt+"-s"),et.$flags$|=et.$children$?2:1)),null!==et.$text$)zt=et.$elm$=Or.createTextNode(et.$text$);else if(1&et.$flags$)zt=et.$elm$=Or.createTextNode("");else{if(_r||(_r="svg"===et.$tag$),zt=et.$elm$=Or.createElementNS(_r?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",2&et.$flags$?"slot-fb":et.$tag$),_r&&"foreignObject"===et.$tag$&&(_r=!1),gn(null,et,_r),(U=>null!=U)(Jt)&&zt["s-si"]!==Jt&&zt.classList.add(zt["s-si"]=Jt),et.$children$)for(Lt=0;Lt{jn.$flags$|=1;const ne=U.closest(pr.toLowerCase());if(null!=ne){const Ae=Array.from(ne.childNodes).find(ot=>ot["s-cr"]),ke=Array.from(U.childNodes);for(const ot of Ae?ke.reverse():ke)null!=ot["s-sh"]&&(he(ne,ot,null!=Ae?Ae:null),ot["s-sh"]=void 0,Mr=!0)}jn.$flags$&=-2},Zn=(U,ne)=>{jn.$flags$|=1;const Ae=Array.from(U.childNodes);if(U["s-sr"]){let ke=U;for(;ke=ke.nextSibling;)ke&&ke["s-sn"]===U["s-sn"]&&ke["s-sh"]===pr&&Ae.push(ke)}for(let ke=Ae.length-1;ke>=0;ke--){const ot=Ae[ke];ot["s-hn"]!==pr&&ot["s-ol"]&&(he(Qr(ot),ot,Mi(ot)),ot["s-ol"].remove(),ot["s-ol"]=void 0,ot["s-sh"]=void 0,Mr=!0),ne&&Zn(ot,ne)}jn.$flags$&=-2},wn=(U,ne,Ae,ke,ot,et)=>{let zt,Lt=U["s-cr"]&&U["s-cr"].parentNode||U;for(Lt.shadowRoot&&Lt.tagName===pr&&(Lt=Lt.shadowRoot);ot<=et;++ot)ke[ot]&&(zt=Bn(null,Ae,ot,U),zt&&(ke[ot].$elm$=zt,he(Lt,zt,Mi(ne))))},Sr=(U,ne,Ae)=>{for(let ke=ne;ke<=Ae;++ke){const ot=U[ke];if(ot){const et=ot.$elm$;ie(ot),et&&(kr=!0,et["s-ol"]?et["s-ol"].remove():Zn(et,!0),et.remove())}}},Ir=(U,ne,Ae=!1)=>U.$tag$===ne.$tag$&&("slot"===U.$tag$?U.$name$===ne.$name$:!!Ae||U.$key$===ne.$key$),Mi=U=>U&&U["s-ol"]||U,Qr=U=>(U["s-ol"]?U["s-ol"]:U).parentNode,Yr=(U,ne,Ae=!1)=>{const ke=ne.$elm$=U.$elm$,ot=U.$children$,et=ne.$children$,Lt=ne.$tag$,zt=ne.$text$;let Kt;null===zt?(_r="svg"===Lt||"foreignObject"!==Lt&&_r,"slot"!==Lt||wr?gn(U,ne,_r):U.$name$!==ne.$name$&&(ne.$elm$["s-sn"]=ne.$name$||"",ni(ne.$elm$.parentElement)),null!==ot&&null!==et?((U,ne,Ae,ke,ot=!1)=>{let cr,nr,et=0,Lt=0,zt=0,Kt=0,Yt=ne.length-1,_n=ne[0],Cn=ne[Yt],Ln=ke.length-1,In=ke[0],br=ke[Ln];for(;et<=Yt&&Lt<=Ln;)if(null==_n)_n=ne[++et];else if(null==Cn)Cn=ne[--Yt];else if(null==In)In=ke[++Lt];else if(null==br)br=ke[--Ln];else if(Ir(_n,In,ot))Yr(_n,In,ot),_n=ne[++et],In=ke[++Lt];else if(Ir(Cn,br,ot))Yr(Cn,br,ot),Cn=ne[--Yt],br=ke[--Ln];else if(Ir(_n,br,ot))("slot"===_n.$tag$||"slot"===br.$tag$)&&Zn(_n.$elm$.parentNode,!1),Yr(_n,br,ot),he(U,_n.$elm$,Cn.$elm$.nextSibling),_n=ne[++et],br=ke[--Ln];else if(Ir(Cn,In,ot))("slot"===_n.$tag$||"slot"===br.$tag$)&&Zn(Cn.$elm$.parentNode,!1),Yr(Cn,In,ot),he(U,Cn.$elm$,_n.$elm$),Cn=ne[--Yt],In=ke[++Lt];else{for(zt=-1,Kt=et;Kt<=Yt;++Kt)if(ne[Kt]&&null!==ne[Kt].$key$&&ne[Kt].$key$===In.$key$){zt=Kt;break}zt>=0?(nr=ne[zt],nr.$tag$!==In.$tag$?cr=Bn(ne&&ne[Lt],Ae,zt,U):(Yr(nr,In,ot),ne[zt]=void 0,cr=nr.$elm$),In=ke[++Lt]):(cr=Bn(ne&&ne[Lt],Ae,Lt,U),In=ke[++Lt]),cr&&he(Qr(_n.$elm$),cr,Mi(_n.$elm$))}et>Yt?wn(U,null==ke[Ln+1]?null:ke[Ln+1].$elm$,Ae,ke,Lt,Ln):Lt>Ln&&Sr(ne,et,Yt)})(ke,ot,ne,et,Ae):null!==et?(null!==U.$text$&&(ke.textContent=""),wn(ke,null,ne,et,0,et.length-1)):null!==ot&&Sr(ot,0,ot.length-1),_r&&"svg"===Lt&&(_r=!1)):(Kt=ke["s-cr"])?Kt.parentNode.textContent=zt:U.$text$!==zt&&(ke.data=zt)},oe=U=>{const ne=U.childNodes;for(const Ae of ne)if(1===Ae.nodeType){if(Ae["s-sr"]){const ke=Ae["s-sn"];Ae.hidden=!1;for(const ot of ne)if(ot!==Ae)if(ot["s-hn"]!==Ae["s-hn"]||""!==ke){if(1===ot.nodeType&&(ke===ot.getAttribute("slot")||ke===ot["s-sn"])||3===ot.nodeType&&ke===ot["s-sn"]){Ae.hidden=!0;break}}else if(1===ot.nodeType||3===ot.nodeType&&""!==ot.textContent.trim()){Ae.hidden=!0;break}}oe(Ae)}},ze=[],ct=U=>{let ne,Ae,ke;for(const ot of U.childNodes){if(ot["s-sr"]&&(ne=ot["s-cr"])&&ne.parentNode){Ae=ne.parentNode.childNodes;const et=ot["s-sn"];for(ke=Ae.length-1;ke>=0;ke--)if(ne=Ae[ke],!(ne["s-cn"]||ne["s-nr"]||ne["s-hn"]===ot["s-hn"]||ne["s-sh"]&&ne["s-sh"]===ot["s-hn"]))if(Xe(ne,et)){let Lt=ze.find(zt=>zt.$nodeToRelocate$===ne);kr=!0,ne["s-sn"]=ne["s-sn"]||et,Lt?(Lt.$nodeToRelocate$["s-sh"]=ot["s-hn"],Lt.$slotRefNode$=ot):(ne["s-sh"]=ot["s-hn"],ze.push({$slotRefNode$:ot,$nodeToRelocate$:ne})),ne["s-sr"]&&ze.map(zt=>{Xe(zt.$nodeToRelocate$,ne["s-sn"])&&(Lt=ze.find(Kt=>Kt.$nodeToRelocate$===ne),Lt&&!zt.$slotRefNode$&&(zt.$slotRefNode$=Lt.$slotRefNode$))})}else ze.some(Lt=>Lt.$nodeToRelocate$===ne)||ze.push({$nodeToRelocate$:ne})}1===ot.nodeType&&ct(ot)}},Xe=(U,ne)=>1===U.nodeType?null===U.getAttribute("slot")&&""===ne||U.getAttribute("slot")===ne:U["s-sn"]===ne||""===ne,ie=U=>{U.$attrs$&&U.$attrs$.ref&&U.$attrs$.ref(null),U.$children$&&U.$children$.map(ie)},he=(U,ne,Ae)=>{const ke=null==U?void 0:U.insertBefore(ne,Ae);return Et(ne,U),ke},Pe=U=>U?U["s-rsc"]||U["s-si"]||U["s-sc"]||Pe(U.parentElement):void 0,Et=(U,ne)=>{var Ae,ke,ot;if(U&&ne){const et=U["s-rsc"],Lt=Pe(ne);et&&null!=(Ae=U.classList)&&Ae.contains(et)&&U.classList.remove(et),Lt&&(U["s-rsc"]=Lt,(null==(ke=U.classList)||!ke.contains(Lt))&&(null==(ot=U.classList)||ot.add(Lt)))}},dn=(U,ne)=>{ne&&!U.$onRenderResolve$&&ne["s-p"]&&ne["s-p"].push(new Promise(Ae=>U.$onRenderResolve$=Ae))},Sn=(U,ne)=>{if(U.$flags$|=16,!(4&U.$flags$))return dn(U,U.$ancestorComponent$),ui(()=>Wn(U,ne));U.$flags$|=512},Wn=(U,ne)=>{const ke=U.$lazyInstance$;let ot;return ne&&(U.$flags$|=256,U.$queuedListeners$&&(U.$queuedListeners$.map(([et,Lt])=>ii(ke,et,Lt)),U.$queuedListeners$=void 0),ot=ii(ke,"componentWillLoad")),ot=gr(ot,()=>ii(ke,"componentWillRender")),gr(ot,()=>ri(U,ke,ne))},gr=(U,ne)=>ur(U)?U.then(ne):ne(),ur=U=>U instanceof Promise||U&&U.then&&"function"==typeof U.then,ri=function(){var U=(0,g.A)(function*(ne,Ae,ke){var ot;const et=ne.$hostElement$,zt=et["s-rc"];ke&&(U=>{const ne=U.$cmpMeta$,Ae=U.$hostElement$,ke=ne.$flags$,et=yn(Ae.shadowRoot?Ae.shadowRoot:Ae.getRootNode(),ne,U.$modeName$);10&ke&&(Ae["s-sc"]=et,Ae.classList.add(et+"-h"),2&ke&&Ae.classList.add(et+"-s"))})(ne);xn(ne,Ae,et,ke),zt&&(zt.map(Yt=>Yt()),et["s-rc"]=void 0);{const Yt=null!=(ot=et["s-p"])?ot:[],_n=()=>Rn(ne);0===Yt.length?_n():(Promise.all(Yt).then(_n),ne.$flags$|=4,Yt.length=0)}});return function(Ae,ke,ot){return U.apply(this,arguments)}}(),xn=(U,ne,Ae,ke)=>{try{ne=ne.render&&ne.render(),U.$flags$&=-17,U.$flags$|=2,((U,ne,Ae=!1)=>{var ke,ot,et,Lt,zt;const Kt=U.$hostElement$,Yt=U.$cmpMeta$,_n=U.$vnode$||rn(null,null),Cn=(U=>U&&U.$tag$===pt)(ne)?ne:Be(null,null,ne);if(pr=Kt.tagName,Yt.$attrsToReflect$&&(Cn.$attrs$=Cn.$attrs$||{},Yt.$attrsToReflect$.map(([Ln,In])=>Cn.$attrs$[In]=Kt[Ln])),Ae&&Cn.$attrs$)for(const Ln of Object.keys(Cn.$attrs$))Kt.hasAttribute(Ln)&&!["key","ref","style","class"].includes(Ln)&&(Cn.$attrs$[Ln]=Kt[Ln]);if(Cn.$tag$=null,Cn.$flags$|=4,U.$vnode$=Cn,Cn.$elm$=_n.$elm$=Kt.shadowRoot||Kt,Jt=Kt["s-sc"],wr=!!(1&Yt.$flags$),Gt=Kt["s-cr"],kr=!1,Yr(_n,Cn,Ae),jn.$flags$|=1,Mr){ct(Cn.$elm$);for(const Ln of ze){const In=Ln.$nodeToRelocate$;if(!In["s-ol"]){const br=Or.createTextNode("");br["s-nr"]=In,he(In.parentNode,In["s-ol"]=br,In)}}for(const Ln of ze){const In=Ln.$nodeToRelocate$,br=Ln.$slotRefNode$;if(br){const cr=br.parentNode;let nr=br.nextSibling;if(nr&&1===nr.nodeType){let li=null==(ke=In["s-ol"])?void 0:ke.previousSibling;for(;li;){let vi=null!=(ot=li["s-nr"])?ot:null;if(vi&&vi["s-sn"]===In["s-sn"]&&cr===vi.parentNode){for(vi=vi.nextSibling;vi===In||null!=vi&&vi["s-sr"];)vi=null==vi?void 0:vi.nextSibling;if(!vi||!vi["s-nr"]){nr=vi;break}}li=li.previousSibling}}(!nr&&cr!==In.parentNode||In.nextSibling!==nr)&&In!==nr&&(he(cr,In,nr),1===In.nodeType&&(In.hidden=null!=(et=In["s-ih"])&&et)),In&&"function"==typeof br["s-rf"]&&br["s-rf"](In)}else 1===In.nodeType&&(Ae&&(In["s-ih"]=null!=(Lt=In.hidden)&&Lt),In.hidden=!0)}}if(kr&&oe(Cn.$elm$),jn.$flags$&=-2,ze.length=0,2&Yt.$flags$)for(const Ln of Cn.$elm$.childNodes)Ln["s-hn"]!==pr&&!Ln["s-sh"]&&(Ae&&null==Ln["s-ih"]&&(Ln["s-ih"]=null!=(zt=Ln.hidden)&&zt),Ln.hidden=!0);Gt=void 0})(U,ne,ke)}catch(ot){ei(ot,U.$hostElement$)}return null},Rn=U=>{const Ae=U.$hostElement$,ot=U.$lazyInstance$,et=U.$ancestorComponent$;ii(ot,"componentDidRender"),64&U.$flags$?ii(ot,"componentDidUpdate"):(U.$flags$|=64,pi(Ae),ii(ot,"componentDidLoad"),U.$onReadyResolve$(Ae),et||Ei()),U.$onInstanceResolve$(Ae),U.$onRenderResolve$&&(U.$onRenderResolve$(),U.$onRenderResolve$=void 0),512&U.$flags$&&qe(()=>Sn(U,!1)),U.$flags$&=-517},yr=U=>{{const ne=oi(U),Ae=ne.$hostElement$.isConnected;return Ae&&2==(18&ne.$flags$)&&Sn(ne,!1),Ae}},Ei=U=>{pi(Or.documentElement),qe(()=>$n(or,"appload",{detail:{namespace:"ionic"}}))},ii=(U,ne,Ae)=>{if(U&&U[ne])try{return U[ne](Ae)}catch(ke){ei(ke)}},pi=U=>U.classList.add("hydrated"),Xi=(U,ne,Ae)=>{var ke;const ot=U.prototype;if(ne.$members$){U.watchers&&(ne.$watchers$=U.watchers);const et=Object.entries(ne.$members$);if(et.map(([Lt,[zt]])=>{31&zt||2&Ae&&32&zt?Object.defineProperty(ot,Lt,{get(){return((U,ne)=>oi(this).$instanceValues$.get(ne))(0,Lt)},set(Kt){((U,ne,Ae,ke)=>{const ot=oi(U);if(!ot)throw new Error(`Couldn't find host element for "${ke.$tagName$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`);const et=ot.$hostElement$,Lt=ot.$instanceValues$.get(ne),zt=ot.$flags$,Kt=ot.$lazyInstance$;Ae=((U,ne)=>null==U||Fe(U)?U:4&ne?"false"!==U&&(""===U||!!U):2&ne?parseFloat(U):1&ne?String(U):U)(Ae,ke.$members$[ne][0]);const Yt=Number.isNaN(Lt)&&Number.isNaN(Ae);if((!(8&zt)||void 0===Lt)&&Ae!==Lt&&!Yt&&(ot.$instanceValues$.set(ne,Ae),Kt)){if(ke.$watchers$&&128&zt){const Cn=ke.$watchers$[ne];Cn&&Cn.map(Ln=>{try{Kt[Ln](Ae,Lt,ne)}catch(In){ei(In,et)}})}2==(18&zt)&&Sn(ot,!1)}})(this,Lt,Kt,ne)},configurable:!0,enumerable:!0}):1&Ae&&64&zt&&Object.defineProperty(ot,Lt,{value(...Kt){var Yt;const _n=oi(this);return null==(Yt=null==_n?void 0:_n.$onInstancePromise$)?void 0:Yt.then(()=>{var Cn;return null==(Cn=_n.$lazyInstance$)?void 0:Cn[Lt](...Kt)})}})}),1&Ae){const Lt=new Map;ot.attributeChangedCallback=function(zt,Kt,Yt){jn.jmp(()=>{var _n;const Cn=Lt.get(zt);if(this.hasOwnProperty(Cn))Yt=this[Cn],delete this[Cn];else{if(ot.hasOwnProperty(Cn)&&"number"==typeof this[Cn]&&this[Cn]==Yt)return;if(null==Cn){const Ln=oi(this),In=null==Ln?void 0:Ln.$flags$;if(In&&!(8&In)&&128&In&&Yt!==Kt){const br=Ln.$lazyInstance$,cr=null==(_n=ne.$watchers$)?void 0:_n[zt];null==cr||cr.forEach(nr=>{null!=br[nr]&&br[nr].call(br,Yt,Kt,zt)})}return}}this[Cn]=(null!==Yt||"boolean"!=typeof this[Cn])&&Yt})},U.observedAttributes=Array.from(new Set([...Object.keys(null!=(ke=ne.$watchers$)?ke:{}),...et.filter(([zt,Kt])=>15&Kt[0]).map(([zt,Kt])=>{var Yt;const _n=Kt[1]||zt;return Lt.set(_n,zt),512&Kt[0]&&(null==(Yt=ne.$attrsToReflect$)||Yt.push([zt,_n])),_n})]))}}return U},wi=function(){var U=(0,g.A)(function*(ne,Ae,ke,ot){let et;if(!(32&Ae.$flags$)){if(Ae.$flags$|=32,ke.$lazyBundleId$){if(et=is(ke),et.then){const _n=()=>{};et=yield et,_n()}et.isProxied||(ke.$watchers$=et.watchers,Xi(et,ke,2),et.isProxied=!0);const Yt=()=>{};Ae.$flags$|=8;try{new et(Ae)}catch(_n){ei(_n)}Ae.$flags$&=-9,Ae.$flags$|=128,Yt(),gi(Ae.$lazyInstance$)}else et=ne.constructor,customElements.whenDefined(ke.$tagName$).then(()=>Ae.$flags$|=128);if(et.style){let Yt=et.style;"string"!=typeof Yt&&(Yt=Yt[Ae.$modeName$=(U=>si.map(ne=>ne(U)).find(ne=>!!ne))(ne)]);const _n=Yn(ke,Ae.$modeName$);if(!ps.has(_n)){const Cn=()=>{};er(_n,Yt,!!(1&ke.$flags$)),Cn()}}}const Lt=Ae.$ancestorComponent$,zt=()=>Sn(Ae,!0);Lt&&Lt["s-rc"]?Lt["s-rc"].push(zt):zt()});return function(Ae,ke,ot,et){return U.apply(this,arguments)}}(),gi=U=>{ii(U,"connectedCallback")},lt=U=>{const ne=U["s-cr"]=Or.createComment("");ne["s-cn"]=!0,he(U,ne,U.firstChild)},Ut=U=>{ii(U,"disconnectedCallback")},fn=function(){var U=(0,g.A)(function*(ne){if(!(1&jn.$flags$)){const Ae=oi(ne);Ae.$rmListeners$&&(Ae.$rmListeners$.map(ke=>ke()),Ae.$rmListeners$=void 0),null!=Ae&&Ae.$lazyInstance$?Ut(Ae.$lazyInstance$):null!=Ae&&Ae.$onReadyPromise$&&Ae.$onReadyPromise$.then(()=>Ut(Ae.$lazyInstance$))}});return function(Ae){return U.apply(this,arguments)}}(),Y=U=>{const ne=U.cloneNode;U.cloneNode=function(Ae){const ke=this,ot=ke.shadowRoot&&Ao,et=ne.call(ke,!!ot&&Ae);if(!ot&&Ae){let zt,Kt,Lt=0;const Yt=["s-id","s-cr","s-lr","s-rc","s-sc","s-p","s-cn","s-sr","s-sn","s-hn","s-ol","s-nr","s-si","s-rf","s-rsc"];for(;Lt!ke.childNodes[Lt][_n]),zt&&(et.__appendChild?et.__appendChild(zt.cloneNode(!0)):et.appendChild(zt.cloneNode(!0))),Kt&&et.appendChild(ke.childNodes[Lt].cloneNode(!0))}return et}},Z=U=>{U.__appendChild=U.appendChild,U.appendChild=function(ne){const Ae=ne["s-sn"]=$i(ne),ke=Ai(this.childNodes,Ae,this.tagName);if(ke){const ot=Pi(ke,Ae),et=ot[ot.length-1],Lt=he(et.parentNode,ne,et.nextSibling);return oe(this),Lt}return this.__appendChild(ne)}},Ne=U=>{U.__removeChild=U.removeChild,U.removeChild=function(ne){if(ne&&typeof ne["s-sn"]<"u"){const Ae=Ai(this.childNodes,ne["s-sn"],this.tagName);if(Ae){const ot=Pi(Ae,ne["s-sn"]).find(et=>et===ne);if(ot)return ot.remove(),void oe(this)}}return this.__removeChild(ne)}},Q=U=>{const ne=U.prepend;U.prepend=function(...Ae){Ae.forEach(ke=>{"string"==typeof ke&&(ke=this.ownerDocument.createTextNode(ke));const ot=ke["s-sn"]=$i(ke),et=Ai(this.childNodes,ot,this.tagName);if(et){const Lt=document.createTextNode("");Lt["s-nr"]=ke,et["s-cr"].parentNode.__appendChild(Lt),ke["s-ol"]=Lt;const Kt=Pi(et,ot)[0];return he(Kt.parentNode,ke,Kt.nextSibling)}return 1===ke.nodeType&&ke.getAttribute("slot")&&(ke.hidden=!0),ne.call(this,ke)})}},Se=U=>{U.append=function(...ne){ne.forEach(Ae=>{"string"==typeof Ae&&(Ae=this.ownerDocument.createTextNode(Ae)),this.appendChild(Ae)})}},it=U=>{const ne=U.insertAdjacentHTML;U.insertAdjacentHTML=function(Ae,ke){if("afterbegin"!==Ae&&"beforeend"!==Ae)return ne.call(this,Ae,ke);const ot=this.ownerDocument.createElement("_");let et;if(ot.innerHTML=ke,"afterbegin"===Ae)for(;et=ot.firstChild;)this.prepend(et);else if("beforeend"===Ae)for(;et=ot.firstChild;)this.append(et)}},Wt=U=>{U.insertAdjacentText=function(ne,Ae){this.insertAdjacentHTML(ne,Ae)}},cn=U=>{const ne=U.insertAdjacentElement;U.insertAdjacentElement=function(Ae,ke){return"afterbegin"!==Ae&&"beforeend"!==Ae?ne.call(this,Ae,ke):"afterbegin"===Ae?(this.prepend(ke),ke):("beforeend"===Ae&&this.append(ke),ke)}},Pn=U=>{const ne=Object.getOwnPropertyDescriptor(Node.prototype,"textContent");Object.defineProperty(U,"__textContent",ne),Object.defineProperty(U,"textContent",{get(){return" "+Hn(this.childNodes).map(ot=>{var et,Lt;const zt=[];let Kt=ot.nextSibling;for(;Kt&&Kt["s-sn"]===ot["s-sn"];)(3===Kt.nodeType||1===Kt.nodeType)&&zt.push(null!=(Lt=null==(et=Kt.textContent)?void 0:et.trim())?Lt:""),Kt=Kt.nextSibling;return zt.filter(Yt=>""!==Yt).join(" ")}).filter(ot=>""!==ot).join(" ")+" "},set(Ae){Hn(this.childNodes).forEach(ot=>{let et=ot.nextSibling;for(;et&&et["s-sn"]===ot["s-sn"];){const Lt=et;et=et.nextSibling,Lt.remove()}if(""===ot["s-sn"]){const Lt=this.ownerDocument.createTextNode(Ae);Lt["s-sn"]="",he(ot.parentElement,Lt,ot.nextSibling)}else ot.remove()})}})},Cr=(U,ne)=>{class Ae extends Array{item(ot){return this[ot]}}if(8&ne.$flags$){const ke=U.__lookupGetter__("childNodes");Object.defineProperty(U,"children",{get(){return this.childNodes.map(ot=>1===ot.nodeType)}}),Object.defineProperty(U,"childElementCount",{get:()=>U.children.length}),Object.defineProperty(U,"childNodes",{get(){const ot=ke.call(this);if(!(1&jn.$flags$)&&2&oi(this).$flags$){const et=new Ae;for(let Lt=0;Lt{const ne=[];for(const Ae of Array.from(U))Ae["s-sr"]&&ne.push(Ae),ne.push(...Hn(Ae.childNodes));return ne},$i=U=>U["s-sn"]||1===U.nodeType&&U.getAttribute("slot")||"",Ai=(U,ne,Ae)=>{let ot,ke=0;for(;ke{const Ae=[U];for(;(U=U.nextSibling)&&U["s-sn"]===ne;)Ae.push(U);return Ae},xr=(U,ne={})=>{var Ae;const ot=[],et=ne.exclude||[],Lt=or.customElements,zt=Or.head,Kt=zt.querySelector("meta[charset]"),Yt=Or.createElement("style"),_n=[],Cn=Or.querySelectorAll(`[${He}]`);let Ln,In=!0,br=0;for(Object.assign(jn,ne),jn.$resourcesUrl$=new URL(ne.resourcesUrl||"./",Or.baseURI).href,jn.$flags$|=2;br{nr[1].map(li=>{var vi;const ci={$flags$:li[0],$tagName$:li[1],$members$:li[2],$listeners$:li[3]};4&ci.$flags$&&(cr=!0),ci.$members$=li[2],ci.$listeners$=li[3],ci.$attrsToReflect$=[],ci.$watchers$=null!=(vi=li[4])?vi:{};const no=ci.$tagName$,Go=class extends HTMLElement{constructor(dr){super(dr),kn(dr=this,ci),1&ci.$flags$&&dr.attachShadow({mode:"open",delegatesFocus:!!(16&ci.$flags$)})}connectedCallback(){Ln&&(clearTimeout(Ln),Ln=null),In?_n.push(this):jn.jmp(()=>(U=>{if(!(1&jn.$flags$)){const ne=oi(U),Ae=ne.$cmpMeta$,ke=()=>{};if(1&ne.$flags$)An(U,ne,Ae.$listeners$),null!=ne&&ne.$lazyInstance$?gi(ne.$lazyInstance$):null!=ne&&ne.$onReadyPromise$&&ne.$onReadyPromise$.then(()=>gi(ne.$lazyInstance$));else{let ot;if(ne.$flags$|=1,ot=U.getAttribute(Ot),ot){if(1&Ae.$flags$){const et=yn(U.shadowRoot,Ae,U.getAttribute("s-mode"));U.classList.remove(et+"-h",et+"-s")}((U,ne,Ae,ke)=>{const et=U.shadowRoot,Lt=[],Kt=et?[]:null,Yt=ke.$vnode$=rn(ne,null);jn.$orgLocNodes$||me(Or.body,jn.$orgLocNodes$=new Map),U[Ot]=Ae,U.removeAttribute(Ot),ae(Yt,Lt,[],Kt,U,U,Ae),Lt.map(_n=>{const Cn=_n.$hostId$+"."+_n.$nodeId$,Ln=jn.$orgLocNodes$.get(Cn),In=_n.$elm$;Ln&&Ao&&""===Ln["s-en"]&&Ln.parentNode.insertBefore(In,Ln.nextSibling),et||(In["s-hn"]=ne,Ln&&(In["s-ol"]=Ln,In["s-ol"]["s-nr"]=In)),jn.$orgLocNodes$.delete(Cn)}),et&&Kt.map(_n=>{_n&&et.appendChild(_n)})})(U,Ae.$tagName$,ot,ne)}ot||12&Ae.$flags$&<(U);{let et=U;for(;et=et.parentNode||et.host;)if(1===et.nodeType&&et.hasAttribute("s-id")&&et["s-p"]||et["s-p"]){dn(ne,ne.$ancestorComponent$=et);break}}Ae.$members$&&Object.entries(Ae.$members$).map(([et,[Lt]])=>{if(31&Lt&&U.hasOwnProperty(et)){const zt=U[et];delete U[et],U[et]=zt}}),wi(U,ne,Ae)}ke()}})(this))}disconnectedCallback(){jn.jmp(()=>fn(this))}componentOnReady(){return oi(this).$onReadyPromise$}};2&ci.$flags$&&((U,ne)=>{Y(U),Z(U),Se(U),Q(U),cn(U),it(U),Wt(U),Pn(U),Cr(U,ne),Ne(U)})(Go.prototype,ci),ci.$lazyBundleId$=nr[0],!et.includes(no)&&!Lt.get(no)&&(ot.push(no),Lt.define(no,Xi(Go,ci,1)))})}),ot.length>0&&(cr&&(Yt.textContent+=Zt),Yt.textContent+=ot+"{visibility:hidden}.hydrated{visibility:inherit}",Yt.innerHTML.length)){Yt.setAttribute("data-styles","");const nr=null!=(Ae=jn.$nonce$)?Ae:$e(Or);null!=nr&&Yt.setAttribute("nonce",nr),zt.insertBefore(Yt,Kt?Kt.nextSibling:zt.firstChild)}In=!1,_n.length?_n.map(nr=>nr.connectedCallback()):jn.jmp(()=>Ln=setTimeout(Ei,30))},An=(U,ne,Ae,ke)=>{Ae&&Ae.map(([ot,et,Lt])=>{const zt=mi(U,ot),Kt=xi(ne,Lt),Yt=Si(ot);jn.ael(zt,et,Kt,Yt),(ne.$rmListeners$=ne.$rmListeners$||[]).push(()=>jn.rel(zt,et,Kt,Yt))})},xi=(U,ne)=>Ae=>{try{256&U.$flags$?U.$lazyInstance$[ne](Ae):(U.$queuedListeners$=U.$queuedListeners$||[]).push([ne,Ae])}catch(ke){ei(ke)}},mi=(U,ne)=>4&ne?Or:8&ne?or:16&ne?Or.body:U,Si=U=>Co?{passive:!!(1&U),capture:!!(2&U)}:!!(2&U),mr=new WeakMap,oi=U=>mr.get(U),Nn=(U,ne)=>mr.set(ne.$lazyInstance$=U,ne),kn=(U,ne)=>{const Ae={$flags$:0,$hostElement$:U,$cmpMeta$:ne,$instanceValues$:new Map};return Ae.$onInstancePromise$=new Promise(ke=>Ae.$onInstanceResolve$=ke),Ae.$onReadyPromise$=new Promise(ke=>Ae.$onReadyResolve$=ke),U["s-p"]=[],U["s-rc"]=[],An(U,Ae,ne.$listeners$),mr.set(U,Ae)},ko=(U,ne)=>ne in U,ei=(U,ne)=>(0,console.error)(U,ne),Bi=new Map,is=(U,ne,Ae)=>{const ke=U.$tagName$.replace(/-/g,"_"),ot=U.$lazyBundleId$,et=Bi.get(ot);return et?et[ke]:j(8996)(`./${ot}.entry.js`).then(Lt=>(Bi.set(ot,Lt),Lt[ke]),ei)},ps=new Map,si=[],or=typeof window<"u"?window:{},Or=or.document||{head:{}},jn={$flags$:0,$resourcesUrl$:"",jmp:U=>U(),raf:U=>requestAnimationFrame(U),ael:(U,ne,Ae,ke)=>U.addEventListener(ne,Ae,ke),rel:(U,ne,Ae,ke)=>U.removeEventListener(ne,Ae,ke),ce:(U,ne)=>new CustomEvent(U,ne)},Fo=U=>{Object.assign(jn,U)},Ao=!0,Co=(()=>{let U=!1;try{Or.addEventListener("e",null,Object.defineProperty({},"passive",{get(){U=!0}}))}catch{}return U})(),To=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch{}return!1})(),Ni=!1,S=[],H=[],ue=(U,ne)=>Ae=>{U.push(Ae),Ni||(Ni=!0,ne&&4&jn.$flags$?qe(fe):jn.raf(fe))},M=U=>{for(let ne=0;ne{M(S),M(H),(Ni=S.length>0)&&jn.raf(fe)},qe=U=>Promise.resolve(void 0).then(U),sr=ue(S,!1),ui=ue(H,!0)},2725:(En,bt,j)=>{"use strict";j.d(bt,{b:()=>Ze,c:()=>Je,d:()=>De,e:()=>Be,g:()=>Ee,l:()=>Zt,s:()=>rn,t:()=>st,w:()=>Dt});var g=j(467),d=j(3664),ge=j(9672),Oe=j(4929),X=j(4920);const Ze="ionViewWillLeave",Je="ionViewDidLeave",De="ionViewWillUnload",_e=B=>{B.tabIndex=-1,B.focus()},Fe=B=>null!==B.offsetParent,Le="ion-last-focus",ut_saveViewFocus=te=>{if(d.c.get("focusManagerPriority",!1)){const ae=document.activeElement;null!==ae&&null!=te&&te.contains(ae)&&ae.setAttribute(Le,"true")}},ut_setViewFocus=te=>{const de=d.c.get("focusManagerPriority",!1);if(Array.isArray(de)&&!te.contains(document.activeElement)){const ae=te.querySelector(`[${Le}]`);if(ae&&Fe(ae))return void _e(ae);for(const me of de)switch(me){case"content":const Ce=te.querySelector('main, [role="main"]');if(Ce&&Fe(Ce))return void _e(Ce);break;case"heading":const at=te.querySelector('h1, [role="heading"][aria-level="1"]');if(at&&Fe(at))return void _e(at);break;case"banner":const kt=te.querySelector('header, [role="banner"]');if(kt&&Fe(kt))return void _e(kt);break;default:(0,Oe.p)(`Unrecognized focus manager priority value ${me}`)}_e(te)}},st=B=>new Promise((W,te)=>{(0,ge.w)(()=>{Mt(B),mt(B).then(de=>{de.animation&&de.animation.destroy(),vt(B),W(de)},de=>{vt(B),te(de)})})}),Mt=B=>{const W=B.enteringEl,te=B.leavingEl;ut_saveViewFocus(te),pt(W,te,B.direction),B.showGoBack?W.classList.add("can-go-back"):W.classList.remove("can-go-back"),rn(W,!1),W.style.setProperty("pointer-events","none"),te&&(rn(te,!1),te.style.setProperty("pointer-events","none"))},mt=function(){var B=(0,g.A)(function*(W){const te=yield Me(W);return te&&ge.B.isBrowser?je(te,W):Ke(W)});return function(te){return B.apply(this,arguments)}}(),vt=B=>{const W=B.enteringEl,te=B.leavingEl;W.classList.remove("ion-page-invisible"),W.style.removeProperty("pointer-events"),void 0!==te&&(te.classList.remove("ion-page-invisible"),te.style.removeProperty("pointer-events")),ut_setViewFocus(W)},Me=function(){var B=(0,g.A)(function*(W){return W.leavingEl&&W.animated&&0!==W.duration?W.animationBuilder?W.animationBuilder:"ios"===W.mode?(yield Promise.resolve().then(j.bind(j,8454))).iosTransitionAnimation:(yield Promise.resolve().then(j.bind(j,3314))).mdTransitionAnimation:void 0});return function(te){return B.apply(this,arguments)}}(),je=function(){var B=(0,g.A)(function*(W,te){yield Ct(te,!0);const de=W(te.baseEl,te);Tt(te.enteringEl,te.leavingEl);const ae=yield He(de,te);return te.progressCallback&&te.progressCallback(void 0),ae&&Vt(te.enteringEl,te.leavingEl),{hasCompleted:ae,animation:de}});return function(te,de){return B.apply(this,arguments)}}(),Ke=function(){var B=(0,g.A)(function*(W){const te=W.enteringEl,de=W.leavingEl,ae=d.c.get("focusManagerPriority",!1);return yield Ct(W,ae),Tt(te,de),Vt(te,de),{hasCompleted:!0}});return function(te){return B.apply(this,arguments)}}(),Ct=function(){var B=(0,g.A)(function*(W,te){(void 0!==W.deepWait?W.deepWait:te)&&(yield Promise.all([Be(W.enteringEl),Be(W.leavingEl)])),yield Ot(W.viewIsReady,W.enteringEl)});return function(te,de){return B.apply(this,arguments)}}(),Ot=function(){var B=(0,g.A)(function*(W,te){W&&(yield W(te))});return function(te,de){return B.apply(this,arguments)}}(),He=(B,W)=>{const te=W.progressCallback,de=new Promise(ae=>{B.onFinish(me=>ae(1===me))});return te?(B.progressStart(!0),te(B)):B.play(),de},Tt=(B,W)=>{Zt(W,Ze),Zt(B,"ionViewWillEnter")},Vt=(B,W)=>{Zt(B,"ionViewDidEnter"),Zt(W,Je)},Zt=(B,W)=>{if(B){const te=new CustomEvent(W,{bubbles:!1,cancelable:!1});B.dispatchEvent(te)}},Dt=()=>new Promise(B=>(0,X.r)(()=>(0,X.r)(()=>B()))),Be=function(){var B=(0,g.A)(function*(W){const te=W;if(te){if(null!=te.componentOnReady){if(null!=(yield te.componentOnReady()))return}else if(null!=te.__registerHost)return void(yield new Promise(ae=>(0,X.r)(ae)));yield Promise.all(Array.from(te.children).map(Be))}});return function(te){return B.apply(this,arguments)}}(),rn=(B,W)=>{W?(B.setAttribute("aria-hidden","true"),B.classList.add("ion-page-hidden")):(B.hidden=!1,B.removeAttribute("aria-hidden"),B.classList.remove("ion-page-hidden"))},pt=(B,W,te)=>{void 0!==B&&(B.style.zIndex="back"===te?"99":"101"),void 0!==W&&(W.style.zIndex="100")},Ee=B=>B.classList.contains("ion-page")?B:B.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")||B},4929:(En,bt,j)=>{"use strict";j.d(bt,{a:()=>d,b:()=>ge,p:()=>g});const g=(Oe,...X)=>console.warn(`[Ionic Warning]: ${Oe}`,...X),d=(Oe,...X)=>console.error(`[Ionic Error]: ${Oe}`,...X),ge=(Oe,...X)=>console.error(`<${Oe.tagName.toLowerCase()}> must be used inside ${X.join(" or ")}.`)},8476:(En,bt,j)=>{"use strict";j.d(bt,{d:()=>d,w:()=>g});const g=typeof window<"u"?window:void 0,d=typeof document<"u"?document:void 0},3664:(En,bt,j)=>{"use strict";j.d(bt,{a:()=>_e,b:()=>rn,c:()=>ge,i:()=>pt});var g=j(9672);class d{constructor(){this.m=new Map}reset(B){this.m=new Map(Object.entries(B))}get(B,W){const te=this.m.get(B);return void 0!==te?te:W}getBoolean(B,W=!1){const te=this.m.get(B);return void 0===te?W:"string"==typeof te?"true"===te:!!te}getNumber(B,W){const te=parseFloat(this.m.get(B));return isNaN(te)?void 0!==W?W:NaN:te}set(B,W){this.m.set(B,W)}}const ge=new d,Je="ionic-persist-config",_e=(Ee,B)=>("string"==typeof Ee&&(B=Ee,Ee=void 0),(Ee=>Fe(Ee))(Ee).includes(B)),Fe=(Ee=window)=>{if(typeof Ee>"u")return[];Ee.Ionic=Ee.Ionic||{};let B=Ee.Ionic.platforms;return null==B&&(B=Ee.Ionic.platforms=$e(Ee),B.forEach(W=>Ee.document.documentElement.classList.add(`plt-${W}`))),B},$e=Ee=>{const B=ge.get("platform");return Object.keys(Dt).filter(W=>{const te=null==B?void 0:B[W];return"function"==typeof te?te(Ee):Dt[W](Ee)})},Qe=Ee=>!!(Vt(Ee,/iPad/i)||Vt(Ee,/Macintosh/i)&&Me(Ee)),st=Ee=>Vt(Ee,/android|sink/i),Me=Ee=>Zt(Ee,"(any-pointer:coarse)"),Ke=Ee=>Ct(Ee)||Ot(Ee),Ct=Ee=>!!(Ee.cordova||Ee.phonegap||Ee.PhoneGap),Ot=Ee=>{const B=Ee.Capacitor;return!(null==B||!B.isNative)},Vt=(Ee,B)=>B.test(Ee.navigator.userAgent),Zt=(Ee,B)=>{var W;return null===(W=Ee.matchMedia)||void 0===W?void 0:W.call(Ee,B).matches},Dt={ipad:Qe,iphone:Ee=>Vt(Ee,/iPhone/i),ios:Ee=>Vt(Ee,/iPhone|iPod/i)||Qe(Ee),android:st,phablet:Ee=>{const B=Ee.innerWidth,W=Ee.innerHeight,te=Math.min(B,W),de=Math.max(B,W);return te>390&&te<520&&de>620&&de<800},tablet:Ee=>{const B=Ee.innerWidth,W=Ee.innerHeight,te=Math.min(B,W),de=Math.max(B,W);return Qe(Ee)||(Ee=>st(Ee)&&!Vt(Ee,/mobile/i))(Ee)||te>460&&te<820&&de>780&&de<1400},cordova:Ct,capacitor:Ot,electron:Ee=>Vt(Ee,/electron/i),pwa:Ee=>{var B;return!!(null!==(B=Ee.matchMedia)&&void 0!==B&&B.call(Ee,"(display-mode: standalone)").matches||Ee.navigator.standalone)},mobile:Me,mobileweb:Ee=>Me(Ee)&&!Ke(Ee),desktop:Ee=>!Me(Ee),hybrid:Ke};let Be;const rn=Ee=>Ee&&(0,g.g)(Ee)||Be,pt=(Ee={})=>{if(typeof window>"u")return;const B=window.document,W=window,te=W.Ionic=W.Ionic||{},de={};Ee._ael&&(de.ael=Ee._ael),Ee._rel&&(de.rel=Ee._rel),Ee._ce&&(de.ce=Ee._ce),(0,g.a)(de);const ae=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(Ee=>{try{const B=Ee.sessionStorage.getItem(Je);return null!==B?JSON.parse(B):{}}catch{return{}}})(W)),{persistConfig:!1}),te.config),(Ee=>{const B={};return Ee.location.search.slice(1).split("&").map(W=>W.split("=")).map(([W,te])=>{try{return[decodeURIComponent(W),decodeURIComponent(te)]}catch{return["",""]}}).filter(([W])=>((Ee,B)=>Ee.substr(0,B.length)===B)(W,"ionic:")).map(([W,te])=>[W.slice(6),te]).forEach(([W,te])=>{B[W]=te}),B})(W)),Ee);ge.reset(ae),ge.getBoolean("persistConfig")&&((Ee,B)=>{try{Ee.sessionStorage.setItem(Je,JSON.stringify(B))}catch{return}})(W,ae),Fe(W),te.config=ge,te.mode=Be=ge.get("mode",B.documentElement.getAttribute("mode")||(_e(W,"ios")?"ios":"md")),ge.set("mode",Be),B.documentElement.setAttribute("mode",Be),B.documentElement.classList.add(Be),ge.getBoolean("_testing")&&ge.set("animated",!1);const me=at=>{var kt;return null===(kt=at.tagName)||void 0===kt?void 0:kt.startsWith("ION-")},Ce=at=>["ios","md"].includes(at);(0,g.c)(at=>{for(;at;){const kt=at.mode||at.getAttribute("mode");if(kt){if(Ce(kt))return kt;me(at)&&console.warn('Invalid ionic mode: "'+kt+'", expected: "ios" or "md"')}at=at.parentElement}return Be})}},8454:(En,bt,j)=>{"use strict";j.r(bt),j.d(bt,{iosTransitionAnimation:()=>Le,shadow:()=>Ze});var g=j(9986),d=j(2725);j(8476),j(3664),j(9672);const re=ft=>document.querySelector(`${ft}.ion-cloned-element`),Ze=ft=>ft.shadowRoot||ft,Je=ft=>{const ut="ION-TABS"===ft.tagName?ft:ft.querySelector("ion-tabs"),st="ion-content ion-header:not(.header-collapse-condense-inactive) ion-title.title-large";if(null!=ut){const Mt=ut.querySelector("ion-tab:not(.tab-hidden), .ion-page:not(.ion-page-hidden)");return null!=Mt?Mt.querySelector(st):null}return ft.querySelector(st)},De=(ft,ut)=>{const st="ION-TABS"===ft.tagName?ft:ft.querySelector("ion-tabs");let Mt=[];if(null!=st){const mt=st.querySelector("ion-tab:not(.tab-hidden), .ion-page:not(.ion-page-hidden)");null!=mt&&(Mt=mt.querySelectorAll("ion-buttons"))}else Mt=ft.querySelectorAll("ion-buttons");for(const mt of Mt){const vt=mt.closest("ion-header"),Me=vt&&!vt.classList.contains("header-collapse-condense-inactive"),je=mt.querySelector("ion-back-button"),Ke=mt.classList.contains("buttons-collapse");if(null!==je&&("start"===mt.slot||""===mt.slot)&&(Ke&&Me&&ut||!Ke))return je}return null},Fe=(ft,ut,st,Mt,mt,vt,Me,je,Ke)=>{var Ct,Ot;const He=ut?`calc(100% - ${mt.right+4}px)`:mt.left-4+"px",Tt=ut?"right":"left",Vt=ut?"left":"right",Zt=ut?"right":"left";let Dt=1,Be=1,rn=`scale(${Be})`;const pt="scale(1)";if(vt&&Me){const Nt=(null===(Ct=vt.textContent)||void 0===Ct?void 0:Ct.trim())===(null===(Ot=je.textContent)||void 0===Ot?void 0:Ot.trim());Dt=Ke.width/Me.width,Be=(Ke.height-Qe)/Me.height,rn=Nt?`scale(${Dt}, ${Be})`:`scale(${Be})`}const B=Ze(Mt).querySelector("ion-icon").getBoundingClientRect(),W=ut?B.width/2-(B.right-mt.right)+"px":mt.left-B.width/2+"px",te=ut?`-${window.innerWidth-mt.right}px`:`${mt.left}px`,de=`${Ke.top}px`,ae=`${mt.top}px`,at=st?[{offset:0,transform:`translate3d(${te}, ${ae}, 0)`},{offset:1,transform:`translate3d(${W}, ${de}, 0)`}]:[{offset:0,transform:`translate3d(${W}, ${de}, 0)`},{offset:1,transform:`translate3d(${te}, ${ae}, 0)`}],vn=st?[{offset:0,opacity:1,transform:pt},{offset:1,opacity:0,transform:rn}]:[{offset:0,opacity:0,transform:rn},{offset:1,opacity:1,transform:pt}],qn=st?[{offset:0,opacity:1,transform:"scale(1)"},{offset:.2,opacity:0,transform:"scale(0.6)"},{offset:1,opacity:0,transform:"scale(0.6)"}]:[{offset:0,opacity:0,transform:"scale(0.6)"},{offset:.6,opacity:0,transform:"scale(0.6)"},{offset:1,opacity:1,transform:"scale(1)"}],er=(0,g.c)(),yn=(0,g.c)(),ir=(0,g.c)(),Yn=re("ion-back-button"),Ve=Ze(Yn).querySelector(".button-text"),yt=Ze(Yn).querySelector("ion-icon");Yn.text=Mt.text,Yn.mode=Mt.mode,Yn.icon=Mt.icon,Yn.color=Mt.color,Yn.disabled=Mt.disabled,Yn.style.setProperty("display","block"),Yn.style.setProperty("position","fixed"),yn.addElement(yt),er.addElement(Ve),ir.addElement(Yn),ir.beforeStyles({position:"absolute",top:"0px",[Zt]:"0px"}).beforeAddWrite(()=>{Mt.style.setProperty("display","none"),Yn.style.setProperty(Tt,He)}).afterAddWrite(()=>{Mt.style.setProperty("display",""),Yn.style.setProperty("display","none"),Yn.style.removeProperty(Tt)}).keyframes(at),er.beforeStyles({"transform-origin":`${Tt} top`}).keyframes(vn),yn.beforeStyles({"transform-origin":`${Vt} center`}).keyframes(qn),ft.addAnimation([er,yn,ir])},$e=(ft,ut,st,Mt,mt,vt,Me,je,Ke)=>{var Ct,Ot;const He=ut?"right":"left",Tt=ut?`calc(100% - ${mt.right}px)`:`${mt.left}px`,Zt=`${mt.top}px`;let Be=ut?`-${window.innerWidth-Me.right-8}px`:`${Me.x+8}px`,rn=.5;const pt="scale(1)";let Ee=`scale(${rn})`;if(je&&Ke){Be=ut?`-${window.innerWidth-Ke.right-8}px`:Ke.x-8+"px";const kt=(null===(Ct=je.textContent)||void 0===Ct?void 0:Ct.trim())===(null===(Ot=Mt.textContent)||void 0===Ot?void 0:Ot.trim());rn=Ke.height/(vt.height-Qe),Ee=kt?`scale(${Ke.width/vt.width}, ${rn})`:`scale(${rn})`}const te=Me.top+Me.height/2-mt.height*rn/2+"px",me=st?[{offset:0,opacity:0,transform:`translate3d(${Be}, ${te}, 0) ${Ee}`},{offset:.1,opacity:0},{offset:1,opacity:1,transform:`translate3d(0px, ${Zt}, 0) ${pt}`}]:[{offset:0,opacity:.99,transform:`translate3d(0px, ${Zt}, 0) ${pt}`},{offset:.6,opacity:0},{offset:1,opacity:0,transform:`translate3d(${Be}, ${te}, 0) ${Ee}`}],Ce=re("ion-title"),at=(0,g.c)();Ce.innerText=Mt.innerText,Ce.size=Mt.size,Ce.color=Mt.color,at.addElement(Ce),at.beforeStyles({"transform-origin":`${He} top`,height:`${mt.height}px`,display:"",position:"relative",[He]:Tt}).beforeAddWrite(()=>{Mt.style.setProperty("opacity","0")}).afterAddWrite(()=>{Mt.style.setProperty("opacity",""),Ce.style.setProperty("display","none")}).keyframes(me),ft.addAnimation(at)},Le=(ft,ut)=>{var st;try{const Mt="cubic-bezier(0.32,0.72,0,1)",mt="opacity",vt="transform",Me="0%",Ke="rtl"===ft.ownerDocument.dir,Ct=Ke?"-99.5%":"99.5%",Ot=Ke?"33%":"-33%",He=ut.enteringEl,Tt=ut.leavingEl,Vt="back"===ut.direction,Zt=He.querySelector(":scope > ion-content"),Dt=He.querySelectorAll(":scope > ion-header > *:not(ion-toolbar), :scope > ion-footer > *"),Be=He.querySelectorAll(":scope > ion-header > ion-toolbar"),rn=(0,g.c)(),pt=(0,g.c)();if(rn.addElement(He).duration((null!==(st=ut.duration)&&void 0!==st?st:0)||540).easing(ut.easing||Mt).fill("both").beforeRemoveClass("ion-page-invisible"),Tt&&null!=ft){const te=(0,g.c)();te.addElement(ft),rn.addAnimation(te)}if(Zt||0!==Be.length||0!==Dt.length?(pt.addElement(Zt),pt.addElement(Dt)):pt.addElement(He.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")),rn.addAnimation(pt),Vt?pt.beforeClearStyles([mt]).fromTo("transform",`translateX(${Ot})`,`translateX(${Me})`).fromTo(mt,.8,1):pt.beforeClearStyles([mt]).fromTo("transform",`translateX(${Ct})`,`translateX(${Me})`),Zt){const te=Ze(Zt).querySelector(".transition-effect");if(te){const de=te.querySelector(".transition-cover"),ae=te.querySelector(".transition-shadow"),me=(0,g.c)(),Ce=(0,g.c)(),at=(0,g.c)();me.addElement(te).beforeStyles({opacity:"1",display:"block"}).afterStyles({opacity:"",display:""}),Ce.addElement(de).beforeClearStyles([mt]).fromTo(mt,0,.1),at.addElement(ae).beforeClearStyles([mt]).fromTo(mt,.03,.7),me.addAnimation([Ce,at]),pt.addAnimation([me])}}const Ee=He.querySelector("ion-header.header-collapse-condense"),{forward:B,backward:W}=((ft,ut,st,Mt,mt)=>{const vt=De(Mt,st),Me=Je(mt),je=Je(Mt),Ke=De(mt,st),Ct=null!==vt&&null!==Me&&!st,Ot=null!==je&&null!==Ke&&st;if(Ct){const He=Me.getBoundingClientRect(),Tt=vt.getBoundingClientRect(),Vt=Ze(vt).querySelector(".button-text"),Zt=null==Vt?void 0:Vt.getBoundingClientRect(),Be=Ze(Me).querySelector(".toolbar-title").getBoundingClientRect();$e(ft,ut,st,Me,He,Be,Tt,Vt,Zt),Fe(ft,ut,st,vt,Tt,Vt,Zt,Me,Be)}else if(Ot){const He=je.getBoundingClientRect(),Tt=Ke.getBoundingClientRect(),Vt=Ze(Ke).querySelector(".button-text"),Zt=null==Vt?void 0:Vt.getBoundingClientRect(),Be=Ze(je).querySelector(".toolbar-title").getBoundingClientRect();$e(ft,ut,st,je,He,Be,Tt,Vt,Zt),Fe(ft,ut,st,Ke,Tt,Vt,Zt,je,Be)}return{forward:Ct,backward:Ot}})(rn,Ke,Vt,He,Tt);if(Be.forEach(te=>{const de=(0,g.c)();de.addElement(te),rn.addAnimation(de);const ae=(0,g.c)();ae.addElement(te.querySelector("ion-title"));const me=(0,g.c)(),Ce=Array.from(te.querySelectorAll("ion-buttons,[menuToggle]")),at=te.closest("ion-header"),kt=null==at?void 0:at.classList.contains("header-collapse-condense-inactive");let Bt;Bt=Ce.filter(Vt?er=>{const yn=er.classList.contains("buttons-collapse");return yn&&!kt||!yn}:er=>!er.classList.contains("buttons-collapse")),me.addElement(Bt);const vn=(0,g.c)();vn.addElement(te.querySelectorAll(":scope > *:not(ion-title):not(ion-buttons):not([menuToggle])"));const bn=(0,g.c)();bn.addElement(Ze(te).querySelector(".toolbar-background"));const $n=(0,g.c)(),qn=te.querySelector("ion-back-button");if(qn&&$n.addElement(qn),de.addAnimation([ae,me,vn,bn,$n]),me.fromTo(mt,.01,1),vn.fromTo(mt,.01,1),Vt)kt||ae.fromTo("transform",`translateX(${Ot})`,`translateX(${Me})`).fromTo(mt,.01,1),vn.fromTo("transform",`translateX(${Ot})`,`translateX(${Me})`),$n.fromTo(mt,.01,1);else if(Ee||ae.fromTo("transform",`translateX(${Ct})`,`translateX(${Me})`).fromTo(mt,.01,1),vn.fromTo("transform",`translateX(${Ct})`,`translateX(${Me})`),bn.beforeClearStyles([mt,"transform"]),(null==at?void 0:at.translucent)?bn.fromTo("transform",Ke?"translateX(-100%)":"translateX(100%)","translateX(0px)"):bn.fromTo(mt,.01,"var(--opacity)"),B||$n.fromTo(mt,.01,1),qn&&!B){const yn=(0,g.c)();yn.addElement(Ze(qn).querySelector(".button-text")).fromTo("transform",Ke?"translateX(-100px)":"translateX(100px)","translateX(0px)"),de.addAnimation(yn)}}),Tt){const te=(0,g.c)(),de=Tt.querySelector(":scope > ion-content"),ae=Tt.querySelectorAll(":scope > ion-header > ion-toolbar"),me=Tt.querySelectorAll(":scope > ion-header > *:not(ion-toolbar), :scope > ion-footer > *");if(de||0!==ae.length||0!==me.length?(te.addElement(de),te.addElement(me)):te.addElement(Tt.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")),rn.addAnimation(te),Vt){te.beforeClearStyles([mt]).fromTo("transform",`translateX(${Me})`,Ke?"translateX(-100%)":"translateX(100%)");const Ce=(0,d.g)(Tt);rn.afterAddWrite(()=>{"normal"===rn.getDirection()&&Ce.style.setProperty("display","none")})}else te.fromTo("transform",`translateX(${Me})`,`translateX(${Ot})`).fromTo(mt,1,.8);if(de){const Ce=Ze(de).querySelector(".transition-effect");if(Ce){const at=Ce.querySelector(".transition-cover"),kt=Ce.querySelector(".transition-shadow"),Bt=(0,g.c)(),vn=(0,g.c)(),bn=(0,g.c)();Bt.addElement(Ce).beforeStyles({opacity:"1",display:"block"}).afterStyles({opacity:"",display:""}),vn.addElement(at).beforeClearStyles([mt]).fromTo(mt,.1,0),bn.addElement(kt).beforeClearStyles([mt]).fromTo(mt,.7,.03),Bt.addAnimation([vn,bn]),te.addAnimation([Bt])}}ae.forEach(Ce=>{const at=(0,g.c)();at.addElement(Ce);const kt=(0,g.c)();kt.addElement(Ce.querySelector("ion-title"));const Bt=(0,g.c)(),vn=Ce.querySelectorAll("ion-buttons,[menuToggle]"),bn=Ce.closest("ion-header"),$n=null==bn?void 0:bn.classList.contains("header-collapse-condense-inactive"),qn=Array.from(vn).filter(yt=>{const Nt=yt.classList.contains("buttons-collapse");return Nt&&!$n||!Nt});Bt.addElement(qn);const er=(0,g.c)(),yn=Ce.querySelectorAll(":scope > *:not(ion-title):not(ion-buttons):not([menuToggle])");yn.length>0&&er.addElement(yn);const ir=(0,g.c)();ir.addElement(Ze(Ce).querySelector(".toolbar-background"));const Yn=(0,g.c)(),Ve=Ce.querySelector("ion-back-button");if(Ve&&Yn.addElement(Ve),at.addAnimation([kt,Bt,er,Yn,ir]),rn.addAnimation(at),Yn.fromTo(mt,.99,0),Bt.fromTo(mt,.99,0),er.fromTo(mt,.99,0),Vt){if($n||kt.fromTo("transform",`translateX(${Me})`,Ke?"translateX(-100%)":"translateX(100%)").fromTo(mt,.99,0),er.fromTo("transform",`translateX(${Me})`,Ke?"translateX(-100%)":"translateX(100%)"),ir.beforeClearStyles([mt,"transform"]),(null==bn?void 0:bn.translucent)?ir.fromTo("transform","translateX(0px)",Ke?"translateX(-100%)":"translateX(100%)"):ir.fromTo(mt,"var(--opacity)",0),Ve&&!W){const Nt=(0,g.c)();Nt.addElement(Ze(Ve).querySelector(".button-text")).fromTo("transform",`translateX(${Me})`,`translateX(${(Ke?-124:124)+"px"})`),at.addAnimation(Nt)}}else $n||kt.fromTo("transform",`translateX(${Me})`,`translateX(${Ot})`).fromTo(mt,.99,0).afterClearStyles([vt,mt]),er.fromTo("transform",`translateX(${Me})`,`translateX(${Ot})`).afterClearStyles([vt,mt]),Yn.afterClearStyles([mt]),kt.afterClearStyles([mt]),Bt.afterClearStyles([mt])})}return rn}catch(Mt){throw Mt}},Qe=10},3314:(En,bt,j)=>{"use strict";j.r(bt),j.d(bt,{mdTransitionAnimation:()=>Ie});var g=j(9986),d=j(2725);j(8476),j(3664),j(9672);const Ie=(re,Ze)=>{var Je,De,_e;const Le="back"===Ze.direction,ft=Ze.leavingEl,ut=(0,d.g)(Ze.enteringEl),st=ut.querySelector("ion-toolbar"),Mt=(0,g.c)();if(Mt.addElement(ut).fill("both").beforeRemoveClass("ion-page-invisible"),Le?Mt.duration((null!==(Je=Ze.duration)&&void 0!==Je?Je:0)||200).easing("cubic-bezier(0.47,0,0.745,0.715)"):Mt.duration((null!==(De=Ze.duration)&&void 0!==De?De:0)||280).easing("cubic-bezier(0.36,0.66,0.04,1)").fromTo("transform","translateY(40px)","translateY(0px)").fromTo("opacity",.01,1),st){const mt=(0,g.c)();mt.addElement(st),Mt.addAnimation(mt)}if(ft&&Le){Mt.duration((null!==(_e=Ze.duration)&&void 0!==_e?_e:0)||200).easing("cubic-bezier(0.47,0,0.745,0.715)");const mt=(0,g.c)();mt.addElement((0,d.g)(ft)).onFinish(vt=>{1===vt&&mt.elements.length>0&&mt.elements[0].style.setProperty("display","none")}).fromTo("transform","translateY(0px)","translateY(40px)").fromTo("opacity",1,0),Mt.addAnimation(mt)}return Mt}},6002:(En,bt,j)=>{"use strict";j.d(bt,{B:()=>vn,F:()=>Yn,G:()=>bn,O:()=>$n,a:()=>ut,b:()=>st,c:()=>Me,d:()=>qn,e:()=>er,f:()=>B,g:()=>te,h:()=>me,i:()=>at,j:()=>Ke,k:()=>Ct,l:()=>Mt,m:()=>mt,n:()=>De,o:()=>pt,q:()=>_e,s:()=>Bt});var g=j(467),d=j(8476),ge=j(4920),Oe=j(6411),X=j(3664),Ie=j(8621),re=j(1970),Ze=j(4929);const Je='[tabindex]:not([tabindex^="-"]):not([hidden]):not([disabled]), input:not([type=hidden]):not([tabindex^="-"]):not([hidden]):not([disabled]), textarea:not([tabindex^="-"]):not([hidden]):not([disabled]), button:not([tabindex^="-"]):not([hidden]):not([disabled]), select:not([tabindex^="-"]):not([hidden]):not([disabled]), .ion-focusable:not([tabindex^="-"]):not([hidden]):not([disabled]), .ion-focusable[disabled="false"]:not([tabindex^="-"]):not([hidden])',De=(Ve,yt)=>{const Nt=Ve.querySelector(Je);Fe(Nt,null!=yt?yt:Ve)},_e=(Ve,yt)=>{const Nt=Array.from(Ve.querySelectorAll(Je));Fe(Nt.length>0?Nt[Nt.length-1]:null,null!=yt?yt:Ve)},Fe=(Ve,yt)=>{let Nt=Ve;const Xt=null==Ve?void 0:Ve.shadowRoot;Xt&&(Nt=Xt.querySelector(Je)||Ve),Nt?(0,ge.f)(Nt):yt.focus()};let $e=0,Le=0;const Qe=new WeakMap,ft=Ve=>({create:yt=>Ot(Ve,yt),dismiss:(yt,Nt,Xt)=>Dt(document,yt,Nt,Ve,Xt),getTop:()=>(0,g.A)(function*(){return pt(document,Ve)})()}),ut=ft("ion-alert"),st=ft("ion-action-sheet"),Mt=ft("ion-loading"),mt=ft("ion-modal"),Me=ft("ion-popover"),Ke=Ve=>{typeof document<"u"&&Zt(document);const yt=$e++;Ve.overlayIndex=yt},Ct=Ve=>(Ve.hasAttribute("id")||(Ve.id="ion-overlay-"+ ++Le),Ve.id),Ot=(Ve,yt)=>typeof window<"u"&&typeof window.customElements<"u"?window.customElements.whenDefined(Ve).then(()=>{const Nt=document.createElement(Ve);return Nt.classList.add("overlay-hidden"),Object.assign(Nt,Object.assign(Object.assign({},yt),{hasController:!0})),de(document).appendChild(Nt),new Promise(Xt=>(0,ge.c)(Nt,Xt))}):Promise.resolve(),Tt=(Ve,yt)=>{let Nt=Ve;const Xt=null==Ve?void 0:Ve.shadowRoot;Xt&&(Nt=Xt.querySelector(Je)||Ve),Nt?(0,ge.f)(Nt):yt.focus()},Zt=Ve=>{0===$e&&($e=1,Ve.addEventListener("focus",yt=>{((Ve,yt)=>{const Nt=pt(yt,"ion-alert,ion-action-sheet,ion-loading,ion-modal,ion-picker-legacy,ion-popover"),Xt=Ve.target;Nt&&Xt&&!Nt.classList.contains(Yn)&&(Nt.shadowRoot?(()=>{if(Nt.contains(Xt))Nt.lastFocus=Xt;else if("ION-TOAST"===Xt.tagName)Tt(Nt.lastFocus,Nt);else{const gn=Nt.lastFocus;De(Nt),gn===yt.activeElement&&_e(Nt),Nt.lastFocus=yt.activeElement}})():(()=>{if(Nt===Xt)Nt.lastFocus=void 0;else if("ION-TOAST"===Xt.tagName)Tt(Nt.lastFocus,Nt);else{const gn=(0,ge.g)(Nt);if(!gn.contains(Xt))return;const mn=gn.querySelector(".ion-overlay-wrapper");if(!mn)return;if(mn.contains(Xt)||Xt===gn.querySelector("ion-backdrop"))Nt.lastFocus=Xt;else{const Jt=Nt.lastFocus;De(mn,Nt),Jt===yt.activeElement&&_e(mn,Nt),Nt.lastFocus=yt.activeElement}}})())})(yt,Ve)},!0),Ve.addEventListener("ionBackButton",yt=>{const Nt=pt(Ve);null!=Nt&&Nt.backdropDismiss&&yt.detail.register(Oe.OVERLAY_BACK_BUTTON_PRIORITY,()=>{Nt.dismiss(void 0,vn)})}),(0,Oe.shouldUseCloseWatcher)()||Ve.addEventListener("keydown",yt=>{if("Escape"===yt.key){const Nt=pt(Ve);null!=Nt&&Nt.backdropDismiss&&Nt.dismiss(void 0,vn)}}))},Dt=(Ve,yt,Nt,Xt,en)=>{const Ar=pt(Ve,Xt,en);return Ar?Ar.dismiss(yt,Nt):Promise.reject("overlay does not exist")},rn=(Ve,yt)=>((Ve,yt)=>(void 0===yt&&(yt="ion-alert,ion-action-sheet,ion-loading,ion-modal,ion-picker-legacy,ion-popover,ion-toast"),Array.from(Ve.querySelectorAll(yt)).filter(Nt=>Nt.overlayIndex>0)))(Ve,yt).filter(Nt=>!(Ve=>Ve.classList.contains("overlay-hidden"))(Nt)),pt=(Ve,yt,Nt)=>{const Xt=rn(Ve,yt);return void 0===Nt?Xt[Xt.length-1]:Xt.find(en=>en.id===Nt)},Ee=(Ve=!1)=>{const Nt=de(document).querySelector("ion-router-outlet, ion-nav, #ion-view-container-root");Nt&&(Ve?Nt.setAttribute("aria-hidden","true"):Nt.removeAttribute("aria-hidden"))},B=function(){var Ve=(0,g.A)(function*(yt,Nt,Xt,en,Ar){var gn,mn;if(yt.presented)return;Ee(!0),document.body.classList.add(re.B),yn(yt.el),yt.presented=!0,yt.willPresent.emit(),null===(gn=yt.willPresentShorthand)||void 0===gn||gn.emit();const Jt=(0,X.b)(yt),Gt=yt.enterAnimation?yt.enterAnimation:X.c.get(Nt,"ios"===Jt?Xt:en);(yield ae(yt,Gt,yt.el,Ar))&&(yt.didPresent.emit(),null===(mn=yt.didPresentShorthand)||void 0===mn||mn.emit()),"ION-TOAST"!==yt.el.tagName&&W(yt.el),yt.keyboardClose&&(null===document.activeElement||!yt.el.contains(document.activeElement))&&yt.el.focus(),yt.el.removeAttribute("aria-hidden")});return function(Nt,Xt,en,Ar,gn){return Ve.apply(this,arguments)}}(),W=function(){var Ve=(0,g.A)(function*(yt){let Nt=document.activeElement;if(!Nt)return;const Xt=null==Nt?void 0:Nt.shadowRoot;Xt&&(Nt=Xt.querySelector(Je)||Nt),yield yt.onDidDismiss(),(null===document.activeElement||document.activeElement===document.body)&&Nt.focus()});return function(Nt){return Ve.apply(this,arguments)}}(),te=function(){var Ve=(0,g.A)(function*(yt,Nt,Xt,en,Ar,gn,mn){var Jt,Gt;if(!yt.presented)return!1;void 0!==d.d&&1===rn(d.d).length&&(Ee(!1),document.body.classList.remove(re.B)),yt.presented=!1;try{yt.el.style.setProperty("pointer-events","none"),yt.willDismiss.emit({data:Nt,role:Xt}),null===(Jt=yt.willDismissShorthand)||void 0===Jt||Jt.emit({data:Nt,role:Xt});const wr=(0,X.b)(yt),kr=yt.leaveAnimation?yt.leaveAnimation:X.c.get(en,"ios"===wr?Ar:gn);Xt!==bn&&(yield ae(yt,kr,yt.el,mn)),yt.didDismiss.emit({data:Nt,role:Xt}),null===(Gt=yt.didDismissShorthand)||void 0===Gt||Gt.emit({data:Nt,role:Xt}),(Qe.get(yt)||[]).forEach(_r=>_r.destroy()),Qe.delete(yt),yt.el.classList.add("overlay-hidden"),yt.el.style.removeProperty("pointer-events"),void 0!==yt.el.lastFocus&&(yt.el.lastFocus=void 0)}catch(wr){console.error(wr)}return yt.el.remove(),ir(),!0});return function(Nt,Xt,en,Ar,gn,mn,Jt){return Ve.apply(this,arguments)}}(),de=Ve=>Ve.querySelector("ion-app")||Ve.body,ae=function(){var Ve=(0,g.A)(function*(yt,Nt,Xt,en){Xt.classList.remove("overlay-hidden");const gn=Nt(yt.el,en);(!yt.animated||!X.c.getBoolean("animated",!0))&&gn.duration(0),yt.keyboardClose&&gn.beforeAddWrite(()=>{const Jt=Xt.ownerDocument.activeElement;null!=Jt&&Jt.matches("input,ion-input, ion-textarea")&&Jt.blur()});const mn=Qe.get(yt)||[];return Qe.set(yt,[...mn,gn]),yield gn.play(),!0});return function(Nt,Xt,en,Ar){return Ve.apply(this,arguments)}}(),me=(Ve,yt)=>{let Nt;const Xt=new Promise(en=>Nt=en);return Ce(Ve,yt,en=>{Nt(en.detail)}),Xt},Ce=(Ve,yt,Nt)=>{const Xt=en=>{(0,ge.b)(Ve,yt,Xt),Nt(en)};(0,ge.a)(Ve,yt,Xt)},at=Ve=>"cancel"===Ve||Ve===vn,kt=Ve=>Ve(),Bt=(Ve,yt)=>{if("function"==typeof Ve)return X.c.get("_zoneGate",kt)(()=>{try{return Ve(yt)}catch(Xt){throw Xt}})},vn="backdrop",bn="gesture",$n=39,qn=Ve=>{let Nt,yt=!1;const Xt=(0,Ie.C)(),en=(mn=!1)=>{if(Nt&&!mn)return{delegate:Nt,inline:yt};const{el:Jt,hasController:Gt,delegate:pr}=Ve;return yt=null!==Jt.parentNode&&!Gt,Nt=yt?pr||Xt:pr,{inline:yt,delegate:Nt}};return{attachViewToDom:function(){var mn=(0,g.A)(function*(Jt){const{delegate:Gt}=en(!0);if(Gt)return yield Gt.attachViewToDom(Ve.el,Jt);const{hasController:pr}=Ve;if(pr&&void 0!==Jt)throw new Error("framework delegate is missing");return null});return function(Gt){return mn.apply(this,arguments)}}(),removeViewFromDom:()=>{const{delegate:mn}=en();mn&&void 0!==Ve.el&&mn.removeViewFromDom(Ve.el.parentElement,Ve.el)}}},er=()=>{let Ve;const yt=()=>{Ve&&(Ve(),Ve=void 0)};return{addClickListener:(Xt,en)=>{yt();const Ar=void 0!==en?document.getElementById(en):null;Ar?Ve=((mn,Jt)=>{const Gt=()=>{Jt.present()};return mn.addEventListener("click",Gt),()=>{mn.removeEventListener("click",Gt)}})(Ar,Xt):(0,Ze.p)(`A trigger element with the ID "${en}" was not found in the DOM. The trigger element must be in the DOM when the "trigger" property is set on an overlay component.`,Xt)},removeClickListener:yt}},yn=Ve=>{var yt;if(void 0===d.d)return;const Nt=rn(d.d);for(let Xt=Nt.length-1;Xt>=0;Xt--){const en=Nt[Xt],Ar=null!==(yt=Nt[Xt+1])&&void 0!==yt?yt:Ve;(Ar.hasAttribute("aria-hidden")||"ION-TOAST"!==Ar.tagName)&&en.setAttribute("aria-hidden","true")}},ir=()=>{if(void 0===d.d)return;const Ve=rn(d.d);for(let yt=Ve.length-1;yt>=0;yt--){const Nt=Ve[yt];if(Nt.removeAttribute("aria-hidden"),"ION-TOAST"!==Nt.tagName)break}},Yn="ion-disable-focus-trap"},63:(En,bt,j)=>{"use strict";var g=j(345),d=j(4438),ge=j(845),Oe=j(3656),X=j(7863),Ie=j(177);function re(Ee,B){if(1&Ee&&(d.j41(0,"ion-menu-toggle",5)(1,"ion-item",6),d.nrm(2,"ion-icon",7),d.j41(3,"ion-label",8),d.EFF(4),d.k0s()()()),2&Ee){const W=B.$implicit;d.R7$(),d.Y8G("routerLink",W.url),d.R7$(),d.Y8G("name",W.icon),d.R7$(2),d.JRh(W.title)}}let Ze=(()=>{var Ee;class B{constructor(te,de){this.router=te,this.menuController=de,this.menuItems=[{title:"Home",url:"/home",icon:"home"}]}ngOnInit(){this.router.events.subscribe(te=>{te instanceof ge.wF&&(te.urlAfterRedirects.includes("/login")||te.urlAfterRedirects.includes("/register")?this.menuController.enable(!1):this.menuController.enable(!0))})}}return(Ee=B).\u0275fac=function(te){return new(te||Ee)(d.rXU(ge.Ix),d.rXU(X._t))},Ee.\u0275cmp=d.VBU({type:Ee,selectors:[["app-root"]],decls:11,vars:1,consts:[["when","md","contentId","menu-content"],["content-id","menu-content","menu-id","menu-id","side","start","type","overlay"],[1,"h-full"],["auto-hide","false",4,"ngFor","ngForOf"],["id","menu-content"],["auto-hide","false"],[3,"routerLink"],["slot","start",3,"name"],["color","primary"]],template:function(te,de){1&te&&(d.j41(0,"ion-app")(1,"ion-split-pane",0)(2,"ion-menu",1)(3,"ion-header")(4,"ion-toolbar")(5,"ion-title"),d.EFF(6," Menu "),d.k0s()()(),d.j41(7,"ion-content")(8,"ion-list",2),d.DNE(9,re,5,3,"ion-menu-toggle",3),d.k0s()()(),d.nrm(10,"ion-router-outlet",4),d.k0s()()),2&te&&(d.R7$(9),d.Y8G("ngForOf",de.menuItems))},dependencies:[Ie.Sq,X.U1,X.W9,X.eU,X.iq,X.uz,X.he,X.nf,X.oS,X.cA,X.HP,X.BC,X.ai,X.Rg,X.N7,ge.Wk]}),B})();var Je=j(9842),De=j(8737),_e=j(1203),Fe=j(6354),$e=j(6697);j(2214);const Qe=(0,Fe.T)(Ee=>!!Ee);let ft=(()=>{var Ee;class B{constructor(te,de){(0,Je.A)(this,"router",void 0),(0,Je.A)(this,"auth",void 0),(0,Je.A)(this,"canActivate",(ae,me)=>{const Ce=ae.data.authGuardPipe||(()=>Qe);return(0,De.kQ)(this.auth).pipe((0,$e.s)(1),Ce(ae,me),(0,Fe.T)(at=>"boolean"==typeof at?at:Array.isArray(at)?this.router.createUrlTree(at):this.router.parseUrl(at)))}),this.router=te,this.auth=de}}return Ee=B,(0,Je.A)(B,"\u0275fac",function(te){return new(te||Ee)(d.KVO(ge.Ix),d.KVO(De.Nj))}),(0,Je.A)(B,"\u0275prov",d.jDH({token:Ee,factory:Ee.\u0275fac,providedIn:"any"})),B})();const Tt=[{path:"",redirectTo:"login",pathMatch:"full"},{path:"home",loadChildren:()=>j.e(5075).then(j.bind(j,5075)).then(Ee=>Ee.HomePageModule),...(Ee=()=>{return Ee=[""],(0,_e.F)(Qe,(0,Fe.T)(B=>B||Ee));var Ee},{canActivate:[ft],data:{authGuardPipe:Ee}})},{path:"register",loadChildren:()=>Promise.all([j.e(2076),j.e(3825)]).then(j.bind(j,3825)).then(Ee=>Ee.RegisterPageModule)},{path:"login",loadChildren:()=>Promise.all([j.e(2076),j.e(6688)]).then(j.bind(j,6688)).then(Ee=>Ee.LoginPageModule)}];var Ee;let Vt=(()=>{var Ee;class B{}return(Ee=B).\u0275fac=function(te){return new(te||Ee)},Ee.\u0275mod=d.$C({type:Ee}),Ee.\u0275inj=d.G2t({imports:[ge.iI.forRoot(Tt,{preloadingStrategy:ge.Kp}),ge.iI]}),B})();var Zt=j(7440),Dt=j(4262);const Be_firebase={projectId:"devprobe-89481",appId:"1:405563293900:web:ba12c0bd15401fd708c269",storageBucket:"devprobe-89481.appspot.com",apiKey:"AIzaSyAORx8ZNhFZwo_uR4tPEcmF8pKm4GAqi5A",authDomain:"devprobe-89481.firebaseapp.com",messagingSenderId:"405563293900"};let rn=(()=>{var Ee;class B{}return(Ee=B).\u0275fac=function(te){return new(te||Ee)},Ee.\u0275mod=d.$C({type:Ee,bootstrap:[Ze]}),Ee.\u0275inj=d.G2t({providers:[{provide:ge.b,useClass:Oe.jM},(0,Zt.MW)(()=>(0,Zt.Wp)(Be_firebase)),(0,Dt.hV)(()=>(0,Dt.aU)()),(0,De._q)(()=>(0,De.xI)())],imports:[g.Bb,X.bv.forRoot(),Vt]}),B})();(0,d.SmG)(),g.sG().bootstrapModule(rn).catch(Ee=>console.log(Ee))},4412:(En,bt,j)=>{"use strict";j.d(bt,{t:()=>d});var g=j(1413);class d extends g.B{constructor(Oe){super(),this._value=Oe}get value(){return this.getValue()}_subscribe(Oe){const X=super._subscribe(Oe);return!X.closed&&Oe.next(this._value),X}getValue(){const{hasError:Oe,thrownError:X,_value:Ie}=this;if(Oe)throw X;return this._throwIfClosed(),Ie}next(Oe){super.next(this._value=Oe)}}},1985:(En,bt,j)=>{"use strict";j.d(bt,{c:()=>Ze});var g=j(7707),d=j(8359),ge=j(3494),Oe=j(1203),X=j(1026),Ie=j(8071),re=j(9786);let Ze=(()=>{class Fe{constructor(Le){Le&&(this._subscribe=Le)}lift(Le){const Qe=new Fe;return Qe.source=this,Qe.operator=Le,Qe}subscribe(Le,Qe,ft){const ut=function _e(Fe){return Fe&&Fe instanceof g.vU||function De(Fe){return Fe&&(0,Ie.T)(Fe.next)&&(0,Ie.T)(Fe.error)&&(0,Ie.T)(Fe.complete)}(Fe)&&(0,d.Uv)(Fe)}(Le)?Le:new g.Ms(Le,Qe,ft);return(0,re.Y)(()=>{const{operator:st,source:Mt}=this;ut.add(st?st.call(ut,Mt):Mt?this._subscribe(ut):this._trySubscribe(ut))}),ut}_trySubscribe(Le){try{return this._subscribe(Le)}catch(Qe){Le.error(Qe)}}forEach(Le,Qe){return new(Qe=Je(Qe))((ft,ut)=>{const st=new g.Ms({next:Mt=>{try{Le(Mt)}catch(mt){ut(mt),st.unsubscribe()}},error:ut,complete:ft});this.subscribe(st)})}_subscribe(Le){var Qe;return null===(Qe=this.source)||void 0===Qe?void 0:Qe.subscribe(Le)}[ge.s](){return this}pipe(...Le){return(0,Oe.m)(Le)(this)}toPromise(Le){return new(Le=Je(Le))((Qe,ft)=>{let ut;this.subscribe(st=>ut=st,st=>ft(st),()=>Qe(ut))})}}return Fe.create=$e=>new Fe($e),Fe})();function Je(Fe){var $e;return null!==($e=null!=Fe?Fe:X.$.Promise)&&void 0!==$e?$e:Promise}},1413:(En,bt,j)=>{"use strict";j.d(bt,{B:()=>re});var g=j(1985),d=j(8359);const Oe=(0,j(1853).L)(Je=>function(){Je(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var X=j(7908),Ie=j(9786);let re=(()=>{class Je extends g.c{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(_e){const Fe=new Ze(this,this);return Fe.operator=_e,Fe}_throwIfClosed(){if(this.closed)throw new Oe}next(_e){(0,Ie.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const Fe of this.currentObservers)Fe.next(_e)}})}error(_e){(0,Ie.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=_e;const{observers:Fe}=this;for(;Fe.length;)Fe.shift().error(_e)}})}complete(){(0,Ie.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:_e}=this;for(;_e.length;)_e.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var _e;return(null===(_e=this.observers)||void 0===_e?void 0:_e.length)>0}_trySubscribe(_e){return this._throwIfClosed(),super._trySubscribe(_e)}_subscribe(_e){return this._throwIfClosed(),this._checkFinalizedStatuses(_e),this._innerSubscribe(_e)}_innerSubscribe(_e){const{hasError:Fe,isStopped:$e,observers:Le}=this;return Fe||$e?d.Kn:(this.currentObservers=null,Le.push(_e),new d.yU(()=>{this.currentObservers=null,(0,X.o)(Le,_e)}))}_checkFinalizedStatuses(_e){const{hasError:Fe,thrownError:$e,isStopped:Le}=this;Fe?_e.error($e):Le&&_e.complete()}asObservable(){const _e=new g.c;return _e.source=this,_e}}return Je.create=(De,_e)=>new Ze(De,_e),Je})();class Ze extends re{constructor(De,_e){super(),this.destination=De,this.source=_e}next(De){var _e,Fe;null===(Fe=null===(_e=this.destination)||void 0===_e?void 0:_e.next)||void 0===Fe||Fe.call(_e,De)}error(De){var _e,Fe;null===(Fe=null===(_e=this.destination)||void 0===_e?void 0:_e.error)||void 0===Fe||Fe.call(_e,De)}complete(){var De,_e;null===(_e=null===(De=this.destination)||void 0===De?void 0:De.complete)||void 0===_e||_e.call(De)}_subscribe(De){var _e,Fe;return null!==(Fe=null===(_e=this.source)||void 0===_e?void 0:_e.subscribe(De))&&void 0!==Fe?Fe:d.Kn}}},7707:(En,bt,j)=>{"use strict";j.d(bt,{Ms:()=>ft,vU:()=>Fe});var g=j(8071),d=j(8359),ge=j(1026),Oe=j(5334),X=j(5343);const Ie=Je("C",void 0,void 0);function Je(vt,Me,je){return{kind:vt,value:Me,error:je}}var De=j(9270),_e=j(9786);class Fe extends d.yU{constructor(Me){super(),this.isStopped=!1,Me?(this.destination=Me,(0,d.Uv)(Me)&&Me.add(this)):this.destination=mt}static create(Me,je,Ke){return new ft(Me,je,Ke)}next(Me){this.isStopped?Mt(function Ze(vt){return Je("N",vt,void 0)}(Me),this):this._next(Me)}error(Me){this.isStopped?Mt(function re(vt){return Je("E",void 0,vt)}(Me),this):(this.isStopped=!0,this._error(Me))}complete(){this.isStopped?Mt(Ie,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(Me){this.destination.next(Me)}_error(Me){try{this.destination.error(Me)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const $e=Function.prototype.bind;function Le(vt,Me){return $e.call(vt,Me)}class Qe{constructor(Me){this.partialObserver=Me}next(Me){const{partialObserver:je}=this;if(je.next)try{je.next(Me)}catch(Ke){ut(Ke)}}error(Me){const{partialObserver:je}=this;if(je.error)try{je.error(Me)}catch(Ke){ut(Ke)}else ut(Me)}complete(){const{partialObserver:Me}=this;if(Me.complete)try{Me.complete()}catch(je){ut(je)}}}class ft extends Fe{constructor(Me,je,Ke){let Ct;if(super(),(0,g.T)(Me)||!Me)Ct={next:null!=Me?Me:void 0,error:null!=je?je:void 0,complete:null!=Ke?Ke:void 0};else{let Ot;this&&ge.$.useDeprecatedNextContext?(Ot=Object.create(Me),Ot.unsubscribe=()=>this.unsubscribe(),Ct={next:Me.next&&Le(Me.next,Ot),error:Me.error&&Le(Me.error,Ot),complete:Me.complete&&Le(Me.complete,Ot)}):Ct=Me}this.destination=new Qe(Ct)}}function ut(vt){ge.$.useDeprecatedSynchronousErrorHandling?(0,_e.l)(vt):(0,Oe.m)(vt)}function Mt(vt,Me){const{onStoppedNotification:je}=ge.$;je&&De.f.setTimeout(()=>je(vt,Me))}const mt={closed:!0,next:X.l,error:function st(vt){throw vt},complete:X.l}},8359:(En,bt,j)=>{"use strict";j.d(bt,{Kn:()=>Ie,yU:()=>X,Uv:()=>re});var g=j(8071);const ge=(0,j(1853).L)(Je=>function(_e){Je(this),this.message=_e?`${_e.length} errors occurred during unsubscription:\n${_e.map((Fe,$e)=>`${$e+1}) ${Fe.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=_e});var Oe=j(7908);class X{constructor(De){this.initialTeardown=De,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let De;if(!this.closed){this.closed=!0;const{_parentage:_e}=this;if(_e)if(this._parentage=null,Array.isArray(_e))for(const Le of _e)Le.remove(this);else _e.remove(this);const{initialTeardown:Fe}=this;if((0,g.T)(Fe))try{Fe()}catch(Le){De=Le instanceof ge?Le.errors:[Le]}const{_finalizers:$e}=this;if($e){this._finalizers=null;for(const Le of $e)try{Ze(Le)}catch(Qe){De=null!=De?De:[],Qe instanceof ge?De=[...De,...Qe.errors]:De.push(Qe)}}if(De)throw new ge(De)}}add(De){var _e;if(De&&De!==this)if(this.closed)Ze(De);else{if(De instanceof X){if(De.closed||De._hasParent(this))return;De._addParent(this)}(this._finalizers=null!==(_e=this._finalizers)&&void 0!==_e?_e:[]).push(De)}}_hasParent(De){const{_parentage:_e}=this;return _e===De||Array.isArray(_e)&&_e.includes(De)}_addParent(De){const{_parentage:_e}=this;this._parentage=Array.isArray(_e)?(_e.push(De),_e):_e?[_e,De]:De}_removeParent(De){const{_parentage:_e}=this;_e===De?this._parentage=null:Array.isArray(_e)&&(0,Oe.o)(_e,De)}remove(De){const{_finalizers:_e}=this;_e&&(0,Oe.o)(_e,De),De instanceof X&&De._removeParent(this)}}X.EMPTY=(()=>{const Je=new X;return Je.closed=!0,Je})();const Ie=X.EMPTY;function re(Je){return Je instanceof X||Je&&"closed"in Je&&(0,g.T)(Je.remove)&&(0,g.T)(Je.add)&&(0,g.T)(Je.unsubscribe)}function Ze(Je){(0,g.T)(Je)?Je():Je.unsubscribe()}},1026:(En,bt,j)=>{"use strict";j.d(bt,{$:()=>g});const g={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},4572:(En,bt,j)=>{"use strict";j.d(bt,{z:()=>De});var g=j(1985),d=j(3073),ge=j(8455),Oe=j(3669),X=j(6450),Ie=j(3794),re=j(8496),Ze=j(4360),Je=j(5225);function De(...$e){const Le=(0,Ie.lI)($e),Qe=(0,Ie.ms)($e),{args:ft,keys:ut}=(0,d.D)($e);if(0===ft.length)return(0,ge.H)([],Le);const st=new g.c(function _e($e,Le,Qe=Oe.D){return ft=>{Fe(Le,()=>{const{length:ut}=$e,st=new Array(ut);let Mt=ut,mt=ut;for(let vt=0;vt{const Me=(0,ge.H)($e[vt],Le);let je=!1;Me.subscribe((0,Ze._)(ft,Ke=>{st[vt]=Ke,je||(je=!0,mt--),mt||ft.next(Qe(st.slice()))},()=>{--Mt||ft.complete()}))},ft)},ft)}}(ft,Le,ut?Mt=>(0,re.e)(ut,Mt):Oe.D));return Qe?st.pipe((0,X.I)(Qe)):st}function Fe($e,Le,Qe){$e?(0,Je.N)(Qe,$e,Le):Le()}},983:(En,bt,j)=>{"use strict";j.d(bt,{w:()=>d});const d=new(j(1985).c)(X=>X.complete())},8455:(En,bt,j)=>{"use strict";j.d(bt,{H:()=>Me});var g=j(8750),d=j(941),ge=j(6745),Ie=j(1985),Ze=j(4761),Je=j(8071),De=j(5225);function Fe(je,Ke){if(!je)throw new Error("Iterable cannot be null");return new Ie.c(Ct=>{(0,De.N)(Ct,Ke,()=>{const Ot=je[Symbol.asyncIterator]();(0,De.N)(Ct,Ke,()=>{Ot.next().then(He=>{He.done?Ct.complete():Ct.next(He.value)})},0,!0)})})}var $e=j(5055),Le=j(9858),Qe=j(7441),ft=j(5397),ut=j(7953),st=j(591),Mt=j(5196);function Me(je,Ke){return Ke?function vt(je,Ke){if(null!=je){if((0,$e.l)(je))return function Oe(je,Ke){return(0,g.Tg)(je).pipe((0,ge._)(Ke),(0,d.Q)(Ke))}(je,Ke);if((0,Qe.X)(je))return function re(je,Ke){return new Ie.c(Ct=>{let Ot=0;return Ke.schedule(function(){Ot===je.length?Ct.complete():(Ct.next(je[Ot++]),Ct.closed||this.schedule())})})}(je,Ke);if((0,Le.y)(je))return function X(je,Ke){return(0,g.Tg)(je).pipe((0,ge._)(Ke),(0,d.Q)(Ke))}(je,Ke);if((0,ut.T)(je))return Fe(je,Ke);if((0,ft.x)(je))return function _e(je,Ke){return new Ie.c(Ct=>{let Ot;return(0,De.N)(Ct,Ke,()=>{Ot=je[Ze.l](),(0,De.N)(Ct,Ke,()=>{let He,Tt;try{({value:He,done:Tt}=Ot.next())}catch(Vt){return void Ct.error(Vt)}Tt?Ct.complete():Ct.next(He)},0,!0)}),()=>(0,Je.T)(null==Ot?void 0:Ot.return)&&Ot.return()})}(je,Ke);if((0,Mt.U)(je))return function mt(je,Ke){return Fe((0,Mt.C)(je),Ke)}(je,Ke)}throw(0,st.L)(je)}(je,Ke):(0,g.Tg)(je)}},3726:(En,bt,j)=>{"use strict";j.d(bt,{R:()=>De});var g=j(8750),d=j(1985),ge=j(1397),Oe=j(7441),X=j(8071),Ie=j(6450);const re=["addListener","removeListener"],Ze=["addEventListener","removeEventListener"],Je=["on","off"];function De(Qe,ft,ut,st){if((0,X.T)(ut)&&(st=ut,ut=void 0),st)return De(Qe,ft,ut).pipe((0,Ie.I)(st));const[Mt,mt]=function Le(Qe){return(0,X.T)(Qe.addEventListener)&&(0,X.T)(Qe.removeEventListener)}(Qe)?Ze.map(vt=>Me=>Qe[vt](ft,Me,ut)):function Fe(Qe){return(0,X.T)(Qe.addListener)&&(0,X.T)(Qe.removeListener)}(Qe)?re.map(_e(Qe,ft)):function $e(Qe){return(0,X.T)(Qe.on)&&(0,X.T)(Qe.off)}(Qe)?Je.map(_e(Qe,ft)):[];if(!Mt&&(0,Oe.X)(Qe))return(0,ge.Z)(vt=>De(vt,ft,ut))((0,g.Tg)(Qe));if(!Mt)throw new TypeError("Invalid event target");return new d.c(vt=>{const Me=(...je)=>vt.next(1mt(Me)})}function _e(Qe,ft){return ut=>st=>Qe[ut](ft,st)}},8750:(En,bt,j)=>{"use strict";j.d(bt,{Tg:()=>$e});var g=j(1635),d=j(7441),ge=j(9858),Oe=j(1985),X=j(5055),Ie=j(7953),re=j(591),Ze=j(5397),Je=j(5196),De=j(8071),_e=j(5334),Fe=j(3494);function $e(vt){if(vt instanceof Oe.c)return vt;if(null!=vt){if((0,X.l)(vt))return function Le(vt){return new Oe.c(Me=>{const je=vt[Fe.s]();if((0,De.T)(je.subscribe))return je.subscribe(Me);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(vt);if((0,d.X)(vt))return function Qe(vt){return new Oe.c(Me=>{for(let je=0;je{vt.then(je=>{Me.closed||(Me.next(je),Me.complete())},je=>Me.error(je)).then(null,_e.m)})}(vt);if((0,Ie.T)(vt))return st(vt);if((0,Ze.x)(vt))return function ut(vt){return new Oe.c(Me=>{for(const je of vt)if(Me.next(je),Me.closed)return;Me.complete()})}(vt);if((0,Je.U)(vt))return function Mt(vt){return st((0,Je.C)(vt))}(vt)}throw(0,re.L)(vt)}function st(vt){return new Oe.c(Me=>{(function mt(vt,Me){var je,Ke,Ct,Ot;return(0,g.sH)(this,void 0,void 0,function*(){try{for(je=(0,g.xN)(vt);!(Ke=yield je.next()).done;)if(Me.next(Ke.value),Me.closed)return}catch(He){Ct={error:He}}finally{try{Ke&&!Ke.done&&(Ot=je.return)&&(yield Ot.call(je))}finally{if(Ct)throw Ct.error}}Me.complete()})})(vt,Me).catch(je=>Me.error(je))})}},7673:(En,bt,j)=>{"use strict";j.d(bt,{of:()=>ge});var g=j(3794),d=j(8455);function ge(...Oe){const X=(0,g.lI)(Oe);return(0,d.H)(Oe,X)}},4360:(En,bt,j)=>{"use strict";j.d(bt,{_:()=>d});var g=j(7707);function d(Oe,X,Ie,re,Ze){return new ge(Oe,X,Ie,re,Ze)}class ge extends g.vU{constructor(X,Ie,re,Ze,Je,De){super(X),this.onFinalize=Je,this.shouldUnsubscribe=De,this._next=Ie?function(_e){try{Ie(_e)}catch(Fe){X.error(Fe)}}:super._next,this._error=Ze?function(_e){try{Ze(_e)}catch(Fe){X.error(Fe)}finally{this.unsubscribe()}}:super._error,this._complete=re?function(){try{re()}catch(_e){X.error(_e)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var X;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:Ie}=this;super.unsubscribe(),!Ie&&(null===(X=this.onFinalize)||void 0===X||X.call(this))}}}},5964:(En,bt,j)=>{"use strict";j.d(bt,{p:()=>ge});var g=j(9974),d=j(4360);function ge(Oe,X){return(0,g.N)((Ie,re)=>{let Ze=0;Ie.subscribe((0,d._)(re,Je=>Oe.call(X,Je,Ze++)&&re.next(Je)))})}},6354:(En,bt,j)=>{"use strict";j.d(bt,{T:()=>ge});var g=j(9974),d=j(4360);function ge(Oe,X){return(0,g.N)((Ie,re)=>{let Ze=0;Ie.subscribe((0,d._)(re,Je=>{re.next(Oe.call(X,Je,Ze++))}))})}},1397:(En,bt,j)=>{"use strict";j.d(bt,{Z:()=>Ze});var g=j(6354),d=j(8750),ge=j(9974),Oe=j(5225),X=j(4360),re=j(8071);function Ze(Je,De,_e=1/0){return(0,re.T)(De)?Ze((Fe,$e)=>(0,g.T)((Le,Qe)=>De(Fe,Le,$e,Qe))((0,d.Tg)(Je(Fe,$e))),_e):("number"==typeof De&&(_e=De),(0,ge.N)((Fe,$e)=>function Ie(Je,De,_e,Fe,$e,Le,Qe,ft){const ut=[];let st=0,Mt=0,mt=!1;const vt=()=>{mt&&!ut.length&&!st&&De.complete()},Me=Ke=>st{Le&&De.next(Ke),st++;let Ct=!1;(0,d.Tg)(_e(Ke,Mt++)).subscribe((0,X._)(De,Ot=>{null==$e||$e(Ot),Le?Me(Ot):De.next(Ot)},()=>{Ct=!0},void 0,()=>{if(Ct)try{for(st--;ut.length&&stje(Ot)):je(Ot)}vt()}catch(Ot){De.error(Ot)}}))};return Je.subscribe((0,X._)(De,Me,()=>{mt=!0,vt()})),()=>{null==ft||ft()}}(Fe,$e,Je,_e)))}},941:(En,bt,j)=>{"use strict";j.d(bt,{Q:()=>Oe});var g=j(5225),d=j(9974),ge=j(4360);function Oe(X,Ie=0){return(0,d.N)((re,Ze)=>{re.subscribe((0,ge._)(Ze,Je=>(0,g.N)(Ze,X,()=>Ze.next(Je),Ie),()=>(0,g.N)(Ze,X,()=>Ze.complete(),Ie),Je=>(0,g.N)(Ze,X,()=>Ze.error(Je),Ie)))})}},6745:(En,bt,j)=>{"use strict";j.d(bt,{_:()=>d});var g=j(9974);function d(ge,Oe=0){return(0,g.N)((X,Ie)=>{Ie.add(ge.schedule(()=>X.subscribe(Ie),Oe))})}},5558:(En,bt,j)=>{"use strict";j.d(bt,{n:()=>Oe});var g=j(8750),d=j(9974),ge=j(4360);function Oe(X,Ie){return(0,d.N)((re,Ze)=>{let Je=null,De=0,_e=!1;const Fe=()=>_e&&!Je&&Ze.complete();re.subscribe((0,ge._)(Ze,$e=>{null==Je||Je.unsubscribe();let Le=0;const Qe=De++;(0,g.Tg)(X($e,Qe)).subscribe(Je=(0,ge._)(Ze,ft=>Ze.next(Ie?Ie($e,ft,Qe,Le++):ft),()=>{Je=null,Fe()}))},()=>{_e=!0,Fe()}))})}},6697:(En,bt,j)=>{"use strict";j.d(bt,{s:()=>Oe});var g=j(983),d=j(9974),ge=j(4360);function Oe(X){return X<=0?()=>g.w:(0,d.N)((Ie,re)=>{let Ze=0;Ie.subscribe((0,ge._)(re,Je=>{++Ze<=X&&(re.next(Je),X<=Ze&&re.complete())}))})}},8141:(En,bt,j)=>{"use strict";j.d(bt,{M:()=>X});var g=j(8071),d=j(9974),ge=j(4360),Oe=j(3669);function X(Ie,re,Ze){const Je=(0,g.T)(Ie)||re||Ze?{next:Ie,error:re,complete:Ze}:Ie;return Je?(0,d.N)((De,_e)=>{var Fe;null===(Fe=Je.subscribe)||void 0===Fe||Fe.call(Je);let $e=!0;De.subscribe((0,ge._)(_e,Le=>{var Qe;null===(Qe=Je.next)||void 0===Qe||Qe.call(Je,Le),_e.next(Le)},()=>{var Le;$e=!1,null===(Le=Je.complete)||void 0===Le||Le.call(Je),_e.complete()},Le=>{var Qe;$e=!1,null===(Qe=Je.error)||void 0===Qe||Qe.call(Je,Le),_e.error(Le)},()=>{var Le,Qe;$e&&(null===(Le=Je.unsubscribe)||void 0===Le||Le.call(Je)),null===(Qe=Je.finalize)||void 0===Qe||Qe.call(Je)}))}):Oe.D}},9270:(En,bt,j)=>{"use strict";j.d(bt,{f:()=>g});const g={setTimeout(d,ge,...Oe){const{delegate:X}=g;return null!=X&&X.setTimeout?X.setTimeout(d,ge,...Oe):setTimeout(d,ge,...Oe)},clearTimeout(d){const{delegate:ge}=g;return((null==ge?void 0:ge.clearTimeout)||clearTimeout)(d)},delegate:void 0}},4761:(En,bt,j)=>{"use strict";j.d(bt,{l:()=>d});const d=function g(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},3494:(En,bt,j)=>{"use strict";j.d(bt,{s:()=>g});const g="function"==typeof Symbol&&Symbol.observable||"@@observable"},3794:(En,bt,j)=>{"use strict";j.d(bt,{ms:()=>Oe,lI:()=>X});var g=j(8071);function ge(re){return re[re.length-1]}function Oe(re){return(0,g.T)(ge(re))?re.pop():void 0}function X(re){return function d(re){return re&&(0,g.T)(re.schedule)}(ge(re))?re.pop():void 0}},3073:(En,bt,j)=>{"use strict";j.d(bt,{D:()=>X});const{isArray:g}=Array,{getPrototypeOf:d,prototype:ge,keys:Oe}=Object;function X(re){if(1===re.length){const Ze=re[0];if(g(Ze))return{args:Ze,keys:null};if(function Ie(re){return re&&"object"==typeof re&&d(re)===ge}(Ze)){const Je=Oe(Ze);return{args:Je.map(De=>Ze[De]),keys:Je}}}return{args:re,keys:null}}},7908:(En,bt,j)=>{"use strict";function g(d,ge){if(d){const Oe=d.indexOf(ge);0<=Oe&&d.splice(Oe,1)}}j.d(bt,{o:()=>g})},1853:(En,bt,j)=>{"use strict";function g(d){const Oe=d(X=>{Error.call(X),X.stack=(new Error).stack});return Oe.prototype=Object.create(Error.prototype),Oe.prototype.constructor=Oe,Oe}j.d(bt,{L:()=>g})},8496:(En,bt,j)=>{"use strict";function g(d,ge){return d.reduce((Oe,X,Ie)=>(Oe[X]=ge[Ie],Oe),{})}j.d(bt,{e:()=>g})},9786:(En,bt,j)=>{"use strict";j.d(bt,{Y:()=>ge,l:()=>Oe});var g=j(1026);let d=null;function ge(X){if(g.$.useDeprecatedSynchronousErrorHandling){const Ie=!d;if(Ie&&(d={errorThrown:!1,error:null}),X(),Ie){const{errorThrown:re,error:Ze}=d;if(d=null,re)throw Ze}}else X()}function Oe(X){g.$.useDeprecatedSynchronousErrorHandling&&d&&(d.errorThrown=!0,d.error=X)}},5225:(En,bt,j)=>{"use strict";function g(d,ge,Oe,X=0,Ie=!1){const re=ge.schedule(function(){Oe(),Ie?d.add(this.schedule(null,X)):this.unsubscribe()},X);if(d.add(re),!Ie)return re}j.d(bt,{N:()=>g})},3669:(En,bt,j)=>{"use strict";function g(d){return d}j.d(bt,{D:()=>g})},7441:(En,bt,j)=>{"use strict";j.d(bt,{X:()=>g});const g=d=>d&&"number"==typeof d.length&&"function"!=typeof d},7953:(En,bt,j)=>{"use strict";j.d(bt,{T:()=>d});var g=j(8071);function d(ge){return Symbol.asyncIterator&&(0,g.T)(null==ge?void 0:ge[Symbol.asyncIterator])}},8071:(En,bt,j)=>{"use strict";function g(d){return"function"==typeof d}j.d(bt,{T:()=>g})},5055:(En,bt,j)=>{"use strict";j.d(bt,{l:()=>ge});var g=j(3494),d=j(8071);function ge(Oe){return(0,d.T)(Oe[g.s])}},5397:(En,bt,j)=>{"use strict";j.d(bt,{x:()=>ge});var g=j(4761),d=j(8071);function ge(Oe){return(0,d.T)(null==Oe?void 0:Oe[g.l])}},9858:(En,bt,j)=>{"use strict";j.d(bt,{y:()=>d});var g=j(8071);function d(ge){return(0,g.T)(null==ge?void 0:ge.then)}},5196:(En,bt,j)=>{"use strict";j.d(bt,{C:()=>ge,U:()=>Oe});var g=j(1635),d=j(8071);function ge(X){return(0,g.AQ)(this,arguments,function*(){const re=X.getReader();try{for(;;){const{value:Ze,done:Je}=yield(0,g.N3)(re.read());if(Je)return yield(0,g.N3)(void 0);yield yield(0,g.N3)(Ze)}}finally{re.releaseLock()}})}function Oe(X){return(0,d.T)(null==X?void 0:X.getReader)}},9974:(En,bt,j)=>{"use strict";j.d(bt,{N:()=>ge,S:()=>d});var g=j(8071);function d(Oe){return(0,g.T)(null==Oe?void 0:Oe.lift)}function ge(Oe){return X=>{if(d(X))return X.lift(function(Ie){try{return Oe(Ie,this)}catch(re){this.error(re)}});throw new TypeError("Unable to lift unknown Observable type")}}},6450:(En,bt,j)=>{"use strict";j.d(bt,{I:()=>Oe});var g=j(6354);const{isArray:d}=Array;function Oe(X){return(0,g.T)(Ie=>function ge(X,Ie){return d(Ie)?X(...Ie):X(Ie)}(X,Ie))}},5343:(En,bt,j)=>{"use strict";function g(){}j.d(bt,{l:()=>g})},1203:(En,bt,j)=>{"use strict";j.d(bt,{F:()=>d,m:()=>ge});var g=j(3669);function d(...Oe){return ge(Oe)}function ge(Oe){return 0===Oe.length?g.D:1===Oe.length?Oe[0]:function(Ie){return Oe.reduce((re,Ze)=>Ze(re),Ie)}}},5334:(En,bt,j)=>{"use strict";j.d(bt,{m:()=>ge});var g=j(1026),d=j(9270);function ge(Oe){d.f.setTimeout(()=>{const{onUnhandledError:X}=g.$;if(!X)throw Oe;X(Oe)})}},591:(En,bt,j)=>{"use strict";function g(d){return new TypeError(`You provided ${null!==d&&"object"==typeof d?"an invalid object":`'${d}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}j.d(bt,{L:()=>g})},8996:(En,bt,j)=>{var g={"./ion-accordion_2.entry.js":[2375,2076,2375],"./ion-action-sheet.entry.js":[8814,2076,8814],"./ion-alert.entry.js":[5222,2076,5222],"./ion-app_8.entry.js":[7720,2076,7720],"./ion-avatar_3.entry.js":[1049,1049],"./ion-back-button.entry.js":[3162,2076,3162],"./ion-backdrop.entry.js":[7240,7240],"./ion-breadcrumb_2.entry.js":[8314,2076,8314],"./ion-button_2.entry.js":[4591,4591],"./ion-card_5.entry.js":[8584,8584],"./ion-checkbox.entry.js":[3511,3511],"./ion-chip.entry.js":[6024,6024],"./ion-col_3.entry.js":[5100,5100],"./ion-datetime-button.entry.js":[7428,1293,7428],"./ion-datetime_3.entry.js":[2885,1293,2076,2885],"./ion-fab_3.entry.js":[4463,2076,4463],"./ion-img.entry.js":[4183,4183],"./ion-infinite-scroll_2.entry.js":[4171,2076,4171],"./ion-input-password-toggle.entry.js":[6521,2076,6521],"./ion-input.entry.js":[9344,2076,9344],"./ion-item-option_3.entry.js":[5949,2076,5949],"./ion-item_8.entry.js":[3506,2076,3506],"./ion-loading.entry.js":[7372,2076,7372],"./ion-menu_3.entry.js":[2075,2076,2075],"./ion-modal.entry.js":[441,2076,441],"./ion-nav_2.entry.js":[5712,2076,5712],"./ion-picker-column-option.entry.js":[9013,9013],"./ion-picker-column.entry.js":[1459,2076,1459],"./ion-picker.entry.js":[6840,6840],"./ion-popover.entry.js":[6433,2076,6433],"./ion-progress-bar.entry.js":[9977,9977],"./ion-radio_2.entry.js":[8066,2076,8066],"./ion-range.entry.js":[8477,2076,8477],"./ion-refresher_2.entry.js":[5197,2076,5197],"./ion-reorder_2.entry.js":[7030,2076,7030],"./ion-ripple-effect.entry.js":[964,964],"./ion-route_4.entry.js":[8970,8970],"./ion-searchbar.entry.js":[8193,2076,8193],"./ion-segment_2.entry.js":[2560,2076,2560],"./ion-select_3.entry.js":[7076,2076,7076],"./ion-spinner.entry.js":[8805,2076,8805],"./ion-split-pane.entry.js":[5887,5887],"./ion-tab-bar_2.entry.js":[4406,2076,4406],"./ion-tab_2.entry.js":[1102,1102],"./ion-text.entry.js":[1577,1577],"./ion-textarea.entry.js":[2348,2076,2348],"./ion-toast.entry.js":[2415,2076,2415],"./ion-toggle.entry.js":[3814,2076,3814]};function d(ge){if(!j.o(g,ge))return Promise.resolve().then(()=>{var Ie=new Error("Cannot find module '"+ge+"'");throw Ie.code="MODULE_NOT_FOUND",Ie});var Oe=g[ge],X=Oe[0];return Promise.all(Oe.slice(1).map(j.e)).then(()=>j(X))}d.keys=()=>Object.keys(g),d.id=8996,En.exports=d},177:(En,bt,j)=>{"use strict";j.d(bt,{AJ:()=>Lt,MD:()=>et,N0:()=>ci,QT:()=>ge,Sm:()=>ft,Sq:()=>cn,T3:()=>kn,VF:()=>X,Vy:()=>Cn,Xr:()=>cr,ZD:()=>Oe,_b:()=>Y,aZ:()=>st,bT:()=>Hn,fw:()=>ut,hb:()=>Le,hj:()=>Je,qQ:()=>re});var g=j(4438);let d=null;function ge(){return d}function Oe(D){var V;null!==(V=d)&&void 0!==V||(d=D)}class X{}const re=new g.nKC("");let Ze=(()=>{var D;class V{historyGo(O){throw new Error("")}}return(D=V).\u0275fac=function(O){return new(O||D)},D.\u0275prov=g.jDH({token:D,factory:()=>(0,g.WQX)(De),providedIn:"platform"}),V})();const Je=new g.nKC("");let De=(()=>{var D;class V extends Ze{constructor(){super(),this._doc=(0,g.WQX)(re),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return ge().getBaseHref(this._doc)}onPopState(O){const le=ge().getGlobalEventTarget(this._doc,"window");return le.addEventListener("popstate",O,!1),()=>le.removeEventListener("popstate",O)}onHashChange(O){const le=ge().getGlobalEventTarget(this._doc,"window");return le.addEventListener("hashchange",O,!1),()=>le.removeEventListener("hashchange",O)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(O){this._location.pathname=O}pushState(O,le,xe){this._history.pushState(O,le,xe)}replaceState(O,le,xe){this._history.replaceState(O,le,xe)}forward(){this._history.forward()}back(){this._history.back()}historyGo(O=0){this._history.go(O)}getState(){return this._history.state}}return(D=V).\u0275fac=function(O){return new(O||D)},D.\u0275prov=g.jDH({token:D,factory:()=>new D,providedIn:"platform"}),V})();function _e(D,V){if(0==D.length)return V;if(0==V.length)return D;let be=0;return D.endsWith("/")&&be++,V.startsWith("/")&&be++,2==be?D+V.substring(1):1==be?D+V:D+"/"+V}function Fe(D){const V=D.match(/#|\?|$/),be=V&&V.index||D.length;return D.slice(0,be-("/"===D[be-1]?1:0))+D.slice(be)}function $e(D){return D&&"?"!==D[0]?"?"+D:D}let Le=(()=>{var D;class V{historyGo(O){throw new Error("")}}return(D=V).\u0275fac=function(O){return new(O||D)},D.\u0275prov=g.jDH({token:D,factory:()=>(0,g.WQX)(ft),providedIn:"root"}),V})();const Qe=new g.nKC("");let ft=(()=>{var D;class V extends Le{constructor(O,le){var xe,Ft,an;super(),this._platformLocation=O,this._removeListenerFns=[],this._baseHref=null!==(xe=null!==(Ft=null!=le?le:this._platformLocation.getBaseHrefFromDOM())&&void 0!==Ft?Ft:null===(an=(0,g.WQX)(re).location)||void 0===an?void 0:an.origin)&&void 0!==xe?xe:""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(O){this._removeListenerFns.push(this._platformLocation.onPopState(O),this._platformLocation.onHashChange(O))}getBaseHref(){return this._baseHref}prepareExternalUrl(O){return _e(this._baseHref,O)}path(O=!1){const le=this._platformLocation.pathname+$e(this._platformLocation.search),xe=this._platformLocation.hash;return xe&&O?`${le}${xe}`:le}pushState(O,le,xe,Ft){const an=this.prepareExternalUrl(xe+$e(Ft));this._platformLocation.pushState(O,le,an)}replaceState(O,le,xe,Ft){const an=this.prepareExternalUrl(xe+$e(Ft));this._platformLocation.replaceState(O,le,an)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(O=0){var le,xe;null===(le=(xe=this._platformLocation).historyGo)||void 0===le||le.call(xe,O)}}return(D=V).\u0275fac=function(O){return new(O||D)(g.KVO(Ze),g.KVO(Qe,8))},D.\u0275prov=g.jDH({token:D,factory:D.\u0275fac,providedIn:"root"}),V})(),ut=(()=>{var D;class V extends Le{constructor(O,le){super(),this._platformLocation=O,this._baseHref="",this._removeListenerFns=[],null!=le&&(this._baseHref=le)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(O){this._removeListenerFns.push(this._platformLocation.onPopState(O),this._platformLocation.onHashChange(O))}getBaseHref(){return this._baseHref}path(O=!1){var le;const xe=null!==(le=this._platformLocation.hash)&&void 0!==le?le:"#";return xe.length>0?xe.substring(1):xe}prepareExternalUrl(O){const le=_e(this._baseHref,O);return le.length>0?"#"+le:le}pushState(O,le,xe,Ft){let an=this.prepareExternalUrl(xe+$e(Ft));0==an.length&&(an=this._platformLocation.pathname),this._platformLocation.pushState(O,le,an)}replaceState(O,le,xe,Ft){let an=this.prepareExternalUrl(xe+$e(Ft));0==an.length&&(an=this._platformLocation.pathname),this._platformLocation.replaceState(O,le,an)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(O=0){var le,xe;null===(le=(xe=this._platformLocation).historyGo)||void 0===le||le.call(xe,O)}}return(D=V).\u0275fac=function(O){return new(O||D)(g.KVO(Ze),g.KVO(Qe,8))},D.\u0275prov=g.jDH({token:D,factory:D.\u0275fac}),V})(),st=(()=>{var D;class V{constructor(O){this._subject=new g.bkB,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=O;const le=this._locationStrategy.getBaseHref();this._basePath=function Me(D){if(new RegExp("^(https?:)?//").test(D)){const[,be]=D.split(/\/\/[^\/]+/);return be}return D}(Fe(vt(le))),this._locationStrategy.onPopState(xe=>{this._subject.emit({url:this.path(!0),pop:!0,state:xe.state,type:xe.type})})}ngOnDestroy(){var O;null===(O=this._urlChangeSubscription)||void 0===O||O.unsubscribe(),this._urlChangeListeners=[]}path(O=!1){return this.normalize(this._locationStrategy.path(O))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(O,le=""){return this.path()==this.normalize(O+$e(le))}normalize(O){return V.stripTrailingSlash(function mt(D,V){if(!D||!V.startsWith(D))return V;const be=V.substring(D.length);return""===be||["/",";","?","#"].includes(be[0])?be:V}(this._basePath,vt(O)))}prepareExternalUrl(O){return O&&"/"!==O[0]&&(O="/"+O),this._locationStrategy.prepareExternalUrl(O)}go(O,le="",xe=null){this._locationStrategy.pushState(xe,"",O,le),this._notifyUrlChangeListeners(this.prepareExternalUrl(O+$e(le)),xe)}replaceState(O,le="",xe=null){this._locationStrategy.replaceState(xe,"",O,le),this._notifyUrlChangeListeners(this.prepareExternalUrl(O+$e(le)),xe)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(O=0){var le,xe;null===(le=(xe=this._locationStrategy).historyGo)||void 0===le||le.call(xe,O)}onUrlChange(O){var le;return this._urlChangeListeners.push(O),null!==(le=this._urlChangeSubscription)&&void 0!==le||(this._urlChangeSubscription=this.subscribe(xe=>{this._notifyUrlChangeListeners(xe.url,xe.state)})),()=>{const xe=this._urlChangeListeners.indexOf(O);var Ft;this._urlChangeListeners.splice(xe,1),0===this._urlChangeListeners.length&&(null===(Ft=this._urlChangeSubscription)||void 0===Ft||Ft.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(O="",le){this._urlChangeListeners.forEach(xe=>xe(O,le))}subscribe(O,le,xe){return this._subject.subscribe({next:O,error:le,complete:xe})}}return(D=V).normalizeQueryParams=$e,D.joinWithSlash=_e,D.stripTrailingSlash=Fe,D.\u0275fac=function(O){return new(O||D)(g.KVO(Le))},D.\u0275prov=g.jDH({token:D,factory:()=>function Mt(){return new st((0,g.KVO)(Le))}(),providedIn:"root"}),V})();function vt(D){return D.replace(/\/index.html$/,"")}function Y(D,V){V=encodeURIComponent(V);for(const be of D.split(";")){const O=be.indexOf("="),[le,xe]=-1==O?[be,""]:[be.slice(0,O),be.slice(O+1)];if(le.trim()===V)return decodeURIComponent(xe)}return null}class Wt{constructor(V,be,O,le){this.$implicit=V,this.ngForOf=be,this.index=O,this.count=le}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let cn=(()=>{var D;class V{set ngForOf(O){this._ngForOf=O,this._ngForOfDirty=!0}set ngForTrackBy(O){this._trackByFn=O}get ngForTrackBy(){return this._trackByFn}constructor(O,le,xe){this._viewContainer=O,this._template=le,this._differs=xe,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(O){O&&(this._template=O)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const O=this._ngForOf;!this._differ&&O&&(this._differ=this._differs.find(O).create(this.ngForTrackBy))}if(this._differ){const O=this._differ.diff(this._ngForOf);O&&this._applyChanges(O)}}_applyChanges(O){const le=this._viewContainer;O.forEachOperation((xe,Ft,an)=>{if(null==xe.previousIndex)le.createEmbeddedView(this._template,new Wt(xe.item,this._ngForOf,-1,-1),null===an?void 0:an);else if(null==an)le.remove(null===Ft?void 0:Ft);else if(null!==Ft){const Un=le.get(Ft);le.move(Un,an),Pn(Un,xe)}});for(let xe=0,Ft=le.length;xe{Pn(le.get(xe.currentIndex),xe)})}static ngTemplateContextGuard(O,le){return!0}}return(D=V).\u0275fac=function(O){return new(O||D)(g.rXU(g.c1b),g.rXU(g.C4Q),g.rXU(g._q3))},D.\u0275dir=g.FsC({type:D,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),V})();function Pn(D,V){D.context.$implicit=V.item}let Hn=(()=>{var D;class V{constructor(O,le){this._viewContainer=O,this._context=new $i,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=le}set ngIf(O){this._context.$implicit=this._context.ngIf=O,this._updateView()}set ngIfThen(O){Ai("ngIfThen",O),this._thenTemplateRef=O,this._thenViewRef=null,this._updateView()}set ngIfElse(O){Ai("ngIfElse",O),this._elseTemplateRef=O,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(O,le){return!0}}return(D=V).\u0275fac=function(O){return new(O||D)(g.rXU(g.c1b),g.rXU(g.C4Q))},D.\u0275dir=g.FsC({type:D,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),V})();class $i{constructor(){this.$implicit=null,this.ngIf=null}}function Ai(D,V){if(V&&!V.createEmbeddedView)throw new Error(`${D} must be a TemplateRef, but received '${(0,g.Tbb)(V)}'.`)}let kn=(()=>{var D;class V{constructor(O){this._viewContainerRef=O,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(O){if(this._shouldRecreateView(O)){var le;const xe=this._viewContainerRef;if(this._viewRef&&xe.remove(xe.indexOf(this._viewRef)),!this.ngTemplateOutlet)return void(this._viewRef=null);const Ft=this._createContextForwardProxy();this._viewRef=xe.createEmbeddedView(this.ngTemplateOutlet,Ft,{injector:null!==(le=this.ngTemplateOutletInjector)&&void 0!==le?le:void 0})}}_shouldRecreateView(O){return!!O.ngTemplateOutlet||!!O.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(O,le,xe)=>!!this.ngTemplateOutletContext&&Reflect.set(this.ngTemplateOutletContext,le,xe),get:(O,le,xe)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,le,xe)}})}}return(D=V).\u0275fac=function(O){return new(O||D)(g.rXU(g.c1b))},D.\u0275dir=g.FsC({type:D,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[g.OA$]}),V})(),et=(()=>{var D;class V{}return(D=V).\u0275fac=function(O){return new(O||D)},D.\u0275mod=g.$C({type:D}),D.\u0275inj=g.G2t({}),V})();const Lt="browser",zt="server";function Cn(D){return D===zt}let cr=(()=>{var D;class V{}return(D=V).\u0275prov=(0,g.jDH)({token:D,providedIn:"root",factory:()=>function _n(D){return D===Lt}((0,g.WQX)(g.Agw))?new nr((0,g.WQX)(re),window):new vi}),V})();class nr{constructor(V,be){this.document=V,this.window=be,this.offset=()=>[0,0]}setOffset(V){this.offset=Array.isArray(V)?()=>V:V}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(V){this.window.scrollTo(V[0],V[1])}scrollToAnchor(V){const be=function li(D,V){const be=D.getElementById(V)||D.getElementsByName(V)[0];if(be)return be;if("function"==typeof D.createTreeWalker&&D.body&&"function"==typeof D.body.attachShadow){const O=D.createTreeWalker(D.body,NodeFilter.SHOW_ELEMENT);let le=O.currentNode;for(;le;){const xe=le.shadowRoot;if(xe){const Ft=xe.getElementById(V)||xe.querySelector(`[name="${V}"]`);if(Ft)return Ft}le=O.nextNode()}}return null}(this.document,V);be&&(this.scrollToElement(be),be.focus())}setHistoryScrollRestoration(V){this.window.history.scrollRestoration=V}scrollToElement(V){const be=V.getBoundingClientRect(),O=be.left+this.window.pageXOffset,le=be.top+this.window.pageYOffset,xe=this.offset();this.window.scrollTo(O-xe[0],le-xe[1])}}class vi{setOffset(V){}getScrollPosition(){return[0,0]}scrollToPosition(V){}scrollToAnchor(V){}setHistoryScrollRestoration(V){}}class ci{}},4438:(En,bt,j)=>{"use strict";j.d(bt,{iLQ:()=>FI,sZ2:()=>vv,hnV:()=>QT,Hbi:()=>ZM,o8S:()=>Id,BIS:()=>vy,gRc:()=>uD,Ql9:()=>TM,Ocv:()=>xM,Z63:()=>oo,aKT:()=>Qu,uvJ:()=>Jo,zcH:()=>Ya,bkB:()=>Os,$GK:()=>or,nKC:()=>Q,zZn:()=>ds,_q3:()=>HI,MKu:()=>GI,xe9:()=>iy,Co$:()=>hi,Vns:()=>io,SKi:()=>Eo,Xx1:()=>_n,Agw:()=>Zd,PLl:()=>_v,sFG:()=>gm,_9s:()=>lp,czy:()=>Xg,kdw:()=>Ln,C4Q:()=>sp,NYb:()=>vM,giA:()=>qT,xvI:()=>GR,RxE:()=>BT,c1b:()=>hd,gXe:()=>ms,mal:()=>a_,L39:()=>wP,a0P:()=>kP,Ol2:()=>j0,w6W:()=>rs,oH4:()=>oD,SmG:()=>VM,Rfq:()=>Yr,WQX:()=>Ae,QuC:()=>ro,EmA:()=>ul,fpN:()=>YM,HJs:()=>FP,N4e:()=>lo,O8t:()=>RP,H3F:()=>jT,H8p:()=>dl,KH2:()=>Xp,TgB:()=>Mp,wOt:()=>Ve,WHO:()=>WT,e01:()=>KT,H5H:()=>fI,Zy3:()=>yt,mq5:()=>rC,JZv:()=>Bn,LfX:()=>St,plB:()=>tl,jNT:()=>OI,zjR:()=>XT,TL$:()=>Cg,Tbb:()=>tr,Vt3:()=>bp,Mj6:()=>ss,GFd:()=>Li,OA$:()=>At,Jv_:()=>vT,aNF:()=>_T,R7$:()=>e0,BMQ:()=>J0,AVh:()=>oI,wni:()=>WC,VBU:()=>vs,FsC:()=>as,jDH:()=>lr,G2t:()=>wi,$C:()=>sl,EJ8:()=>ha,rXU:()=>id,nrm:()=>dI,eu8:()=>hI,bVm:()=>X_,qex:()=>q_,k0s:()=>K_,j41:()=>W_,RV6:()=>eC,xGo:()=>cf,KVO:()=>U,kS0:()=>Vc,QTQ:()=>t0,bIt:()=>mI,lsd:()=>XC,XpG:()=>OC,SdG:()=>FC,NAR:()=>kC,Y8G:()=>rI,lJ4:()=>IT,mGM:()=>qC,Njj:()=>Ac,eBV:()=>Sd,n$t:()=>zf,DNE:()=>Pp,EFF:()=>oT,JRh:()=>yI,DH7:()=>gT,mxI:()=>AI,R50:()=>EI,GBs:()=>KC}),j(467);let ge=null,X=1;const Ie=Symbol("SIGNAL");function re(e){const t=ge;return ge=e,t}function Le(e){if((!Ke(e)||e.dirty)&&(e.dirty||e.lastCleanEpoch!==X)){if(!e.producerMustRecompute(e)&&!mt(e))return e.dirty=!1,void(e.lastCleanEpoch=X);e.producerRecomputeValue(e),e.dirty=!1,e.lastCleanEpoch=X}}function mt(e){Ct(e);for(let t=0;t0}function Ct(e){var t,r,o;null!==(t=e.producerNode)&&void 0!==t||(e.producerNode=[]),null!==(r=e.producerIndexOfThis)&&void 0!==r||(e.producerIndexOfThis=[]),null!==(o=e.producerLastReadVersion)&&void 0!==o||(e.producerLastReadVersion=[])}let rn=null;var $n=j(1413),qn=j(8359),er=j(4412),yn=j(6354);const Yn="https://g.co/ng/security#xss";class Ve extends Error{constructor(t,r){super(yt(t,r)),this.code=t}}function yt(e,t){return`NG0${Math.abs(e)}${t?": "+t:""}`}function mn(e){return{toString:e}.toString()}const Gt="__parameters__";function Mr(e,t,r){return mn(()=>{const o=function kr(e){return function(...r){if(e){const o=e(...r);for(const a in o)this[a]=o[a]}}}(t);function a(...c){if(this instanceof a)return o.apply(this,c),this;const p=new a(...c);return y.annotation=p,y;function y(A,F,K){const ee=A.hasOwnProperty(Gt)?A[Gt]:Object.defineProperty(A,Gt,{value:[]})[Gt];for(;ee.length<=K;)ee.push(null);return(ee[K]=ee[K]||[]).push(p),A}}return r&&(a.prototype=Object.create(r.prototype)),a.prototype.ngMetadataName=e,a.annotationCls=a,a})}const Bn=globalThis;function wn(e){for(let t in e)if(e[t]===wn)return t;throw Error("Could not find renamed property on target object.")}function Sr(e,t){for(const r in t)t.hasOwnProperty(r)&&!e.hasOwnProperty(r)&&(e[r]=t[r])}function tr(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(tr).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const r=t.indexOf("\n");return-1===r?t:t.substring(0,r)}function Ir(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const Qr=wn({__forward_ref__:wn});function Yr(e){return e.__forward_ref__=Yr,e.toString=function(){return tr(this())},e}function oe(e){return ze(e)?e():e}function ze(e){return"function"==typeof e&&e.hasOwnProperty(Qr)&&e.__forward_ref__===Yr}function lr(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function wi(e){return{providers:e.providers||[],imports:e.imports||[]}}function gi(e){return lt(e,Kn)||lt(e,Z)}function St(e){return null!==gi(e)}function lt(e,t){return e.hasOwnProperty(t)?e[t]:null}function fn(e){return e&&(e.hasOwnProperty(Y)||e.hasOwnProperty(Ne))?e[Y]:null}const Kn=wn({\u0275prov:wn}),Y=wn({\u0275inj:wn}),Z=wn({ngInjectableDef:wn}),Ne=wn({ngInjectorDef:wn});class Q{constructor(t,r){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof r?this.__NG_ELEMENT_ID__=r:void 0!==r&&(this.\u0275prov=lr({token:this,providedIn:r.providedIn||"root",factory:r.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function xr(e){return e&&!!e.\u0275providers}const An=wn({\u0275cmp:wn}),xi=wn({\u0275dir:wn}),mi=wn({\u0275pipe:wn}),Si=wn({\u0275mod:wn}),ti=wn({\u0275fac:wn}),mr=wn({__NG_ELEMENT_ID__:wn}),oi=wn({__NG_ENV_ID__:wn});function Nn(e){return"string"==typeof e?e:null==e?"":String(e)}function si(e,t){throw new Ve(-201,!1)}var or=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(or||{});let Or;function ai(){return Or}function jn(e){const t=Or;return Or=e,t}function Fo(e,t,r){const o=gi(e);return o&&"root"==o.providedIn?void 0===o.value?o.value=o.factory():o.value:r&or.Optional?null:void 0!==t?t:void si()}const co={},To="__NG_DI_FLAG__",Ni="ngTempTokenPath",H=/\n/gm,M="__source";let fe;function sr(e){const t=fe;return fe=e,t}function ui(e,t=or.Default){if(void 0===fe)throw new Ve(-203,!1);return null===fe?Fo(e,void 0,t):fe.get(e,t&or.Optional?null:void 0,t)}function U(e,t=or.Default){return(ai()||ui)(oe(e),t)}function Ae(e,t=or.Default){return U(e,ke(t))}function ke(e){return typeof e>"u"||"number"==typeof e?e:(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function ot(e){const t=[];for(let r=0;rArray.isArray(r)?li(r,t):t(r))}function vi(e,t,r){t>=e.length?e.push(r):e.splice(t,0,r)}function ci(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Qi(e,t,r){let o=Do(e,t);return o>=0?e[1|o]=r:(o=~o,function Wr(e,t,r,o){let a=e.length;if(a==t)e.push(r,o);else if(1===a)e.push(o,e[0]),e[0]=r;else{for(a--,e.push(e[a-1],e[a]);a>t;)e[a]=e[a-2],a--;e[t]=r,e[t+1]=o}}(e,o,t,r)),o}function Ko(e,t){const r=Do(e,t);if(r>=0)return e[1|r]}function Do(e,t){return function os(e,t,r){let o=0,a=e.length>>r;for(;a!==o;){const c=o+(a-o>>1),p=e[c<t?a=c:o=c+1}return~(a<t){p=c-1;break}}}for(;c-1){let c;for(;++ac?"":a[K+1].toLowerCase(),2&o&&F!==ee){if(ce(o))return!1;p=!0}}}}else{if(!p&&!ce(o)&&!ce(A))return!1;if(p&&ce(A))continue;p=!1,o=A|1&o}}return ce(o)||p}function ce(e){return!(1&e)}function $(e,t,r,o){if(null===t)return-1;let a=0;if(o||!r){let c=!1;for(;a-1)for(r++;r0?'="'+y+'"':"")+"]"}else 8&o?a+="."+p:4&o&&(a+=" "+p);else""!==a&&!ce(p)&&(t+=ao(c,a),a=""),o=p,c=c||!ce(o);r++}return""!==a&&(t+=ao(c,a)),t}function vs(e){return mn(()=>{var t;const r=ll(e),o={...r,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===gs.OnPush,directiveDefs:null,pipeDefs:null,dependencies:r.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:null!==(t=e.signals)&&void 0!==t&&t,data:e.data||{},encapsulation:e.encapsulation||ms.Emulated,styles:e.styles||Pr,_:null,schemas:e.schemas||null,tView:null,id:""};ls(o);const a=e.dependencies;return o.directiveDefs=_s(a,!1),o.pipeDefs=_s(a,!0),o.id=function vr(e){let t=0;const r=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery].join("|");for(const a of r)t=Math.imul(31,t)+a.charCodeAt(0)|0;return t+=2147483648,"c"+t}(o),o})}function Bs(e){return Jn(e)||Oi(e)}function Oa(e){return null!==e}function sl(e){return mn(()=>({type:e.type,bootstrap:e.bootstrap||Pr,declarations:e.declarations||Pr,imports:e.imports||Pr,exports:e.exports||Pr,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function al(e,t){if(null==e)return Vo;const r={};for(const a in e)if(e.hasOwnProperty(a)){const c=e[a];let p,y,A=ss.None;var o;Array.isArray(c)?(A=c[0],p=c[1],y=null!==(o=c[2])&&void 0!==o?o:p):(p=c,y=c),t?(r[p]=A!==ss.None?[a,A]:a,t[p]=y):r[p]=a}return r}function as(e){return mn(()=>{const t=ll(e);return ls(t),t})}function ha(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,standalone:!0===e.standalone,onDestroy:e.type.prototype.ngOnDestroy||null}}function Jn(e){return e[An]||null}function Oi(e){return e[xi]||null}function Ti(e){return e[mi]||null}function ro(e){const t=Jn(e)||Oi(e)||Ti(e);return null!==t&&t.standalone}function Hr(e,t){const r=e[Si]||null;if(!r&&!0===t)throw new Error(`Type ${tr(e)} does not have '\u0275mod' property.`);return r}function ll(e){const t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputTransforms:null,inputConfig:e.inputs||Vo,exportAs:e.exportAs||null,standalone:!0===e.standalone,signals:!0===e.signals,selectors:e.selectors||Pr,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:al(e.inputs,t),outputs:al(e.outputs),debugInfo:null}}function ls(e){var t;null===(t=e.features)||void 0===t||t.forEach(r=>r(e))}function _s(e,t){if(!e)return null;const r=t?Ti:Bs;return()=>("function"==typeof e?e():e).map(o=>r(o)).filter(Oa)}function ul(e){return{\u0275providers:e}}function ys(...e){return{\u0275providers:ka(0,e),\u0275fromNgModule:!0}}function ka(e,...t){const r=[],o=new Set;let a;const c=p=>{r.push(p)};return li(t,p=>{const y=p;cl(y,c,[],o)&&(a||(a=[]),a.push(y))}),void 0!==a&&js(a,c),r}function js(e,t){for(let r=0;r{t(c,o)})}}function cl(e,t,r,o){if(!(e=oe(e)))return!1;let a=null,c=fn(e);const p=!c&&Jn(e);if(c||p){if(p&&!p.standalone)return!1;a=e}else{const A=e.ngModule;if(c=fn(A),!c)return!1;a=A}const y=o.has(a);if(p){if(y)return!1;if(o.add(a),p.dependencies){const A="function"==typeof p.dependencies?p.dependencies():p.dependencies;for(const F of A)cl(F,t,r,o)}}else{if(!c)return!1;{if(null!=c.imports&&!y){let F;o.add(a);try{li(c.imports,K=>{cl(K,t,r,o)&&(F||(F=[]),F.push(K))})}finally{}void 0!==F&&js(F,t)}if(!y){const F=br(a)||(()=>new a);t({provide:a,useFactory:F,deps:Pr},a),t({provide:so,useValue:a,multi:!0},a),t({provide:oo,useValue:()=>U(a),multi:!0},a)}const A=c.providers;if(null!=A&&!y){const F=e;Ll(A,K=>{t(K,F)})}}}return a!==e&&void 0!==e.providers}function Ll(e,t){for(let r of e)xr(r)&&(r=r.\u0275providers),Array.isArray(r)?Ll(r,t):t(r)}const Ul=wn({provide:String,useValue:wn});function fa(e){return null!==e&&"object"==typeof e&&Ul in e}function Yo(e){return"function"==typeof e}const dl=new Q(""),Zo={},wu={};let $l;function Lo(){return void 0===$l&&($l=new ua),$l}class Jo{}class Rs extends Jo{get destroyed(){return this._destroyed}constructor(t,r,o,a){super(),this.parent=r,this.source=o,this.scopes=a,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Ms(t,p=>this.processProvider(p)),this.records.set(Us,Va(void 0,this)),a.has("environment")&&this.records.set(Jo,Va(void 0,this));const c=this.records.get(dl);null!=c&&"string"==typeof c.value&&this.scopes.add(c.value),this.injectorDefTypes=new Set(this.get(so,Pr,or.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;const t=re(null);try{for(const o of this._ngOnDestroyHooks)o.ngOnDestroy();const r=this._onDestroyHooks;this._onDestroyHooks=[];for(const o of r)o()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),re(t)}}onDestroy(t){return this.assertNotDestroyed(),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){this.assertNotDestroyed();const r=sr(this),o=jn(void 0);try{return t()}finally{sr(r),jn(o)}}get(t,r=co,o=or.Default){if(this.assertNotDestroyed(),t.hasOwnProperty(oi))return t[oi](this);o=ke(o);const c=sr(this),p=jn(void 0);try{if(!(o&or.SkipSelf)){let A=this.records.get(t);if(void 0===A){const F=function ma(e){return"function"==typeof e||"object"==typeof e&&e instanceof Q}(t)&&gi(t);A=F&&this.injectableDefInScope(F)?Va(Di(t),Zo):null,this.records.set(t,A)}if(null!=A)return this.hydrate(t,A)}return(o&or.Self?Lo():this.parent).get(t,r=o&or.Optional&&r===co?null:r)}catch(y){if("NullInjectorError"===y.name){if((y[Ni]=y[Ni]||[]).unshift(tr(t)),c)throw y;return function zt(e,t,r,o){const a=e[Ni];throw t[M]&&a.unshift(t[M]),e.message=function Kt(e,t,r,o=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let a=tr(t);if(Array.isArray(t))a=t.map(tr).join(" -> ");else if("object"==typeof t){let c=[];for(let p in t)if(t.hasOwnProperty(p)){let y=t[p];c.push(p+":"+("string"==typeof y?JSON.stringify(y):tr(y)))}a=`{${c.join(", ")}}`}return`${r}${o?"("+o+")":""}[${a}]: ${e.replace(H,"\n ")}`}("\n"+e.message,a,r,o),e.ngTokenPath=a,e[Ni]=null,e}(y,t,"R3InjectorError",this.source)}throw y}finally{jn(p),sr(c)}}resolveInjectorInitializers(){const t=re(null),r=sr(this),o=jn(void 0);try{const c=this.get(oo,Pr,or.Self);for(const p of c)p()}finally{sr(r),jn(o),re(t)}}toString(){const t=[],r=this.records;for(const o of r.keys())t.push(tr(o));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Ve(205,!1)}processProvider(t){let r=Yo(t=oe(t))?t:oe(t&&t.provide);const o=function Bl(e){return fa(e)?Va(void 0,e.useValue):Va(ga(e),Zo)}(t);if(!Yo(t)&&!0===t.multi){let a=this.records.get(r);a||(a=Va(void 0,Zo,!0),a.factory=()=>ot(a.multi),this.records.set(r,a)),r=t,a.multi.push(t)}this.records.set(r,o)}hydrate(t,r){const o=re(null);try{return r.value===Zo&&(r.value=wu,r.value=r.factory()),"object"==typeof r.value&&r.value&&function pc(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(r.value)&&this._ngOnDestroyHooks.add(r.value),r.value}finally{re(o)}}injectableDefInScope(t){if(!t.providedIn)return!1;const r=oe(t.providedIn);return"string"==typeof r?"any"===r||this.scopes.has(r):this.injectorDefTypes.has(r)}removeOnDestroy(t){const r=this._onDestroyHooks.indexOf(t);-1!==r&&this._onDestroyHooks.splice(r,1)}}function Di(e){const t=gi(e),r=null!==t?t.factory:br(e);if(null!==r)return r;if(e instanceof Q)throw new Ve(204,!1);if(e instanceof Function)return function pa(e){if(e.length>0)throw new Ve(204,!1);const r=function Ut(e){return e&&(e[Kn]||e[Z])||null}(e);return null!==r?()=>r.factory(e):()=>new e}(e);throw new Ve(204,!1)}function ga(e,t,r){let o;if(Yo(e)){const a=oe(e);return br(a)||Di(a)}if(fa(e))o=()=>oe(e.useValue);else if(function ws(e){return!(!e||!e.useFactory)}(e))o=()=>e.useFactory(...ot(e.deps||[]));else if(function Is(e){return!(!e||!e.useExisting)}(e))o=()=>U(oe(e.useExisting));else{const a=oe(e&&(e.useClass||e.provide));if(!function zs(e){return!!e.deps}(e))return br(a)||Di(a);o=()=>new a(...ot(e.deps))}return o}function Va(e,t,r=!1){return{factory:e,value:t,multi:r?[]:void 0}}function Ms(e,t){for(const r of e)Array.isArray(r)?Ms(r,t):r&&xr(r)?Ms(r.\u0275providers,t):t(r)}function lo(e,t){e instanceof Rs&&e.assertNotDestroyed();const o=sr(e),a=jn(void 0);try{return t()}finally{sr(o),jn(a)}}function Hs(){return void 0!==ai()||null!=function qe(){return fe}()}const Gr=0,un=1,Vn=2,Kr=3,Hi=4,_i=5,Gi=6,Fi=7,Jr=8,zi=9,Uo=10,fr=11,La=12,gc=13,Ua=14,Wi=15,va=16,es=17,wo=18,Gs=19,jl=20,Lr=21,_a=22,Ws=23,Dr=25,$a=1,$o=7,Ks=9,Vi=10;var Su=function(e){return e[e.None=0]="None",e[e.HasTransplantedViews=2]="HasTransplantedViews",e}(Su||{});function Ur(e){return Array.isArray(e)&&"object"==typeof e[$a]}function _o(e){return Array.isArray(e)&&!0===e[$a]}function zl(e){return!!(4&e.flags)}function As(e){return e.componentOffset>-1}function Ia(e){return!(1&~e.flags)}function us(e){return!!e.template}function Hl(e){return!!(512&e[Vn])}class dt{constructor(t,r,o){this.previousValue=t,this.currentValue=r,this.firstChange=o}isFirstChange(){return this.firstChange}}function Qt(e,t,r,o){null!==t?t.applyValueToInputSignal(t,o):e[r]=o}function At(){return Tn}function Tn(e){return e.type.prototype.ngOnChanges&&(e.setInput=Ri),hr}function hr(){const e=Ki(this),t=null==e?void 0:e.current;if(t){const r=e.previous;if(r===Vo)e.previous=t;else for(let o in t)r[o]=t[o];e.current=null,this.ngOnChanges(t)}}function Ri(e,t,r,o,a){const c=this.declaredInputs[o],p=Ki(e)||function Bo(e,t){return e[Br]=t}(e,{previous:Vo,current:null}),y=p.current||(p.current={}),A=p.previous,F=A[c];y[c]=new dt(F&&F.currentValue,r,A===Vo),Qt(e,t,a,r)}At.ngInherit=!0;const Br="__ngSimpleChanges__";function Ki(e){return e[Br]||null}const yo=function(e,t,r){};let Ps=!1;function di(e){for(;Array.isArray(e);)e=e[Gr];return e}function Ga(e,t){return di(t[e])}function ts(e,t){return di(t[e.index])}function Xl(e,t){return e.data[t]}function So(e,t){const r=t[e];return Ur(r)?r:r[Gr]}function vc(e){return!(128&~e[Vn])}function Cs(e,t){return null==t?null:e[t]}function yc(e){e[es]=0}function bd(e){1024&e[Vn]||(e[Vn]|=1024,vc(e)&&xs(e))}function Ql(e){var t;return!!(9216&e[Vn]||null!==(t=e[Ws])&&void 0!==t&&t.dirty)}function fl(e){var t;if(null===(t=e[Uo].changeDetectionScheduler)||void 0===t||t.notify(1),Ql(e))xs(e);else if(64&e[Vn])if(function Ca(){return Ps}())e[Vn]|=1024,xs(e);else{var r;null===(r=e[Uo].changeDetectionScheduler)||void 0===r||r.notify()}}function xs(e){var t;null===(t=e[Uo].changeDetectionScheduler)||void 0===t||t.notify();let r=Qs(e);for(;null!==r&&!(8192&r[Vn])&&(r[Vn]|=8192,vc(r));)r=Qs(r)}function Wa(e,t){if(!(256&~e[Vn]))throw new Ve(911,!1);null===e[Lr]&&(e[Lr]=[]),e[Lr].push(t)}function Qs(e){const t=e[Kr];return _o(t)?t[Kr]:t}const Gn={lFrame:Zh(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function Ta(){return Gn.bindingsEnabled}function Zl(){return null!==Gn.skipHydrationRootTNode}function Ht(){return Gn.lFrame.lView}function qr(){return Gn.lFrame.tView}function Sd(e){return Gn.lFrame.contextLView=e,e[Jr]}function Ac(e){return Gn.lFrame.contextLView=null,e}function Ci(){let e=Xh();for(;null!==e&&64===e.type;)e=e.parent;return e}function Xh(){return Gn.lFrame.currentTNode}function Js(e,t){const r=Gn.lFrame;r.currentTNode=e,r.isParent=t}function xu(){return Gn.lFrame.isParent}function Nu(){Gn.lFrame.isParent=!1}function Ts(){return Gn.lFrame.bindingIndex++}function Md(e,t){const r=Gn.lFrame;r.bindingIndex=r.bindingRootIndex=e,Pd(t)}function Pd(e){Gn.lFrame.currentDirectiveIndex=e}function xd(){return Gn.lFrame.currentQueryIndex}function Dc(e){Gn.lFrame.currentQueryIndex=e}function bc(e){const t=e[un];return 2===t.type?t.declTNode:1===t.type?e[_i]:null}function Yh(e,t,r){if(r&or.SkipSelf){let a=t,c=e;for(;!(a=a.parent,null!==a||r&or.Host||(a=bc(c),null===a||(c=c[Ua],10&a.type))););if(null===a)return!1;t=a,e=c}const o=Gn.lFrame=ku();return o.currentTNode=t,o.lView=e,!0}function Da(e){const t=ku(),r=e[un];Gn.lFrame=t,t.currentTNode=r.firstChild,t.lView=e,t.tView=r,t.contextLView=e,t.bindingIndex=r.bindingStartIndex,t.inI18n=!1}function ku(){const e=Gn.lFrame,t=null===e?null:e.child;return null===t?Zh(e):t}function Zh(e){const t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function Nd(){const e=Gn.lFrame;return Gn.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const wc=Nd;function Fu(){const e=Nd();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function fo(){return Gn.lFrame.selectedIndex}function ba(e){Gn.lFrame.selectedIndex=e}function yi(){const e=Gn.lFrame;return Xl(e.tView,e.selectedIndex)}let Lu=!0;function Uu(){return Lu}function Ns(e){Lu=e}function $u(e,t){for(let F=t.directiveStart,K=t.directiveEnd;F=o)break}else t[A]<0&&(e[es]+=65536),(y>14>16&&(3&e[Vn])===t&&(e[Vn]+=16384,vl(y,c)):vl(y,c)}const _l=-1;class yl{constructor(t,r,o){this.factory=t,this.resolving=!1,this.canSeeViewProviders=r,this.injectImpl=o}}function Il(e){return e!==_l}function wa(e){return 32767&e}function El(e,t){let r=function xc(e){return e>>16}(e),o=t;for(;r>0;)o=o[Ua],r--;return o}let ju=!0;function Jl(e){const t=ju;return ju=e,t}const sf=255,Vd=5;let Nc=0;const Ds={};function zu(e,t){const r=Ld(e,t);if(-1!==r)return r;const o=t[un];o.firstCreatePass&&(e.injectorIndex=t.length,Ro(o.data,e),Ro(t,null),Ro(o.blueprint,null));const a=qa(e,t),c=e.injectorIndex;if(Il(a)){const p=wa(a),y=El(a,t),A=y[un].data;for(let F=0;F<8;F++)t[c+F]=y[p+F]|A[p+F]}return t[c+8]=a,c}function Ro(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Ld(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function qa(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let r=0,o=null,a=t;for(;null!==a;){if(o=Qa(a),null===o)return _l;if(r++,a=a[Ua],-1!==o.injectorIndex)return o.injectorIndex|r<<16}return _l}function Al(e,t,r){!function cv(e,t,r){let o;"string"==typeof r?o=r.charCodeAt(0)||0:r.hasOwnProperty(mr)&&(o=r[mr]),null==o&&(o=r[mr]=Nc++);const a=o&sf;t.data[e+(a>>Vd)]|=1<=0?t&sf:uf:t}(r);if("function"==typeof c){if(!Yh(t,e,o))return o&or.Host?eu(a,0,o):Ud(t,r,o,a);try{let p;if(p=c(o),null!=p||o&or.Optional)return p;si()}finally{wc()}}else if("number"==typeof c){let p=null,y=Ld(e,t),A=_l,F=o&or.Host?t[Wi][_i]:null;for((-1===y||o&or.SkipSelf)&&(A=-1===y?qa(e,t):t[y+8],A!==_l&&tu(o,!1)?(p=t[un],y=wa(A),t=El(A,t)):y=-1);-1!==y;){const K=t[un];if(Fc(c,y,K.data)){const ee=sg(y,t,r,p,o,F);if(ee!==Ds)return ee}A=t[y+8],A!==_l&&tu(o,t[un].data[y+8]===F)&&Fc(c,y,t)?(p=K,y=wa(A),t=El(A,t)):y=-1}}return a}function sg(e,t,r,o,a,c){const p=t[un],y=p.data[e+8],K=$d(y,p,r,null==o?As(y)&&ju:o!=p&&!!(3&y.type),a&or.Host&&c===y);return null!==K?Cl(t,p,K,y):Ds}function $d(e,t,r,o,a){const c=e.providerIndexes,p=t.data,y=1048575&c,A=e.directiveStart,K=c>>20,Re=a?y+K:e.directiveEnd;for(let Ge=o?y:y+K;Ge=A&&_t.type===r)return Ge}if(a){const Ge=p[A];if(Ge&&us(Ge)&&Ge.type===r)return A}return null}function Cl(e,t,r,o){let a=e[r];const c=t.data;if(function nf(e){return e instanceof yl}(a)){const p=a;p.resolving&&function Bi(e,t){throw t&&t.join(" > "),new Ve(-200,e)}(function kn(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():Nn(e)}(c[r]));const y=Jl(p.canSeeViewProviders);p.resolving=!0;const F=p.injectImpl?jn(p.injectImpl):null;Yh(e,o,or.Default);try{a=e[r]=p.factory(void 0,c,e,o),t.firstCreatePass&&r>=o.directiveStart&&function og(e,t,r){const{ngOnChanges:o,ngOnInit:a,ngDoCheck:c}=t.type.prototype;if(o){var p,y;const ee=Tn(t);(null!==(p=r.preOrderHooks)&&void 0!==p?p:r.preOrderHooks=[]).push(e,ee),(null!==(y=r.preOrderCheckHooks)&&void 0!==y?y:r.preOrderCheckHooks=[]).push(e,ee)}var A,F,K;a&&(null!==(A=r.preOrderHooks)&&void 0!==A?A:r.preOrderHooks=[]).push(0-e,a),c&&((null!==(F=r.preOrderHooks)&&void 0!==F?F:r.preOrderHooks=[]).push(e,c),(null!==(K=r.preOrderCheckHooks)&&void 0!==K?K:r.preOrderCheckHooks=[]).push(e,c))}(r,c[r],t)}finally{null!==F&&jn(F),Jl(y),p.resolving=!1,wc()}}return a}function Fc(e,t,r){return!!(r[t+(e>>Vd)]&1<{const t=e.prototype.constructor,r=t[ti]||Hu(t),o=Object.prototype;let a=Object.getPrototypeOf(e.prototype).constructor;for(;a&&a!==o;){const c=a[ti]||Hu(a);if(c&&c!==r)return c;a=Object.getPrototypeOf(a)}return c=>new c})}function Hu(e){return ze(e)?()=>{const t=Hu(oe(e));return t&&t()}:br(e)}function Qa(e){const t=e[un],r=t.type;return 2===r?t.declTNode:1===r?e[_i]:null}function Vc(e){return function Oc(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;const r=e.attrs;if(r){const o=r.length;let a=0;for(;a{var e;class t{static create(o,a){if(Array.isArray(o))return ug({name:""},a,o,"");{var c;const p=null!==(c=o.name)&&void 0!==c?c:"";return ug({name:p},o.parent,o.providers,p)}}}return(e=t).THROW_IF_NOT_FOUND=co,e.NULL=new ua,e.\u0275prov=lr({token:e,providedIn:"any",factory:()=>U(Us)}),e.__NG_ELEMENT_ID__=-1,t})();function Uc(e){return e.ngOriginalError}class Ya{constructor(){this._console=console}handleError(t){const r=this._findOriginalError(t);this._console.error("ERROR",t),r&&this._console.error("ORIGINAL ERROR",r)}_findOriginalError(t){let r=t&&Uc(t);for(;r&&Uc(r);)r=Uc(r);return r||null}}const zd=new Q("",{providedIn:"root",factory:()=>Ae(Ya).handleError.bind(void 0)});let Ku=(()=>{var e;class t{}return(e=t).__NG_ELEMENT_ID__=cg,e.__NG_ENV_ID__=r=>r,t})();class yf extends Ku{constructor(t){super(),this._lView=t}onDestroy(t){return Wa(this._lView,t),()=>function Yl(e,t){if(null===e[Lr])return;const r=e[Lr].indexOf(t);-1!==r&&e[Lr].splice(r,1)}(this._lView,t)}}function cg(){return new yf(Ht())}function Xu(){return oa(Ci(),Ht())}function oa(e,t){return new Qu(ts(e,t))}let Qu=(()=>{class t{constructor(o){this.nativeElement=o}}return t.__NG_ELEMENT_ID__=Xu,t})();function ru(e){return e instanceof Qu?e.nativeElement:e}function If(e){return t=>{setTimeout(e,void 0,t)}}const Os=class hv extends $n.B{constructor(t=!1){var r;super(),this.destroyRef=void 0,this.__isAsync=t,Hs()&&(this.destroyRef=null!==(r=Ae(Ku,{optional:!0}))&&void 0!==r?r:void 0)}emit(t){const r=re(null);try{super.next(t)}finally{re(r)}}subscribe(t,r,o){let a=t,c=r||(()=>null),p=o;if(t&&"object"==typeof t){var y,A,F;const ee=t;a=null===(y=ee.next)||void 0===y?void 0:y.bind(ee),c=null===(A=ee.error)||void 0===A?void 0:A.bind(ee),p=null===(F=ee.complete)||void 0===F?void 0:F.bind(ee)}this.__isAsync&&(c=If(c),a&&(a=If(a)),p&&(p=If(p)));const K=super.subscribe({next:a,error:c,complete:p});return t instanceof qn.yU&&t.add(K),K}};function Ef(){return this._results[Symbol.iterator]()}class $c{get changes(){var t;return null!==(t=this._changes)&&void 0!==t?t:this._changes=new Os}constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._onDirty=void 0,this._results=[],this._changesDetected=!1,this._changes=void 0,this.length=0,this.first=void 0,this.last=void 0;const r=$c.prototype;r[Symbol.iterator]||(r[Symbol.iterator]=Ef)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,r){return this._results.reduce(t,r)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,r){this.dirty=!1;const o=function nr(e){return e.flat(Number.POSITIVE_INFINITY)}(t);(this._changesDetected=!function cr(e,t,r){if(e.length!==t.length)return!1;for(let o=0;oTg}),Tg="ng",_v=new Q(""),Zd=new Q("",{providedIn:"platform",factory:()=>"unknown"}),vy=new Q("",{providedIn:"root",factory:()=>{var e;return(null===(e=function au(){if(void 0!==Ag)return Ag;if(typeof document<"u")return document;throw new Ve(210,!1)}().body)||void 0===e||null===(e=e.querySelector("[ngCspNonce]"))||void 0===e?void 0:e.getAttribute("ngCspNonce"))||null}});let Av=()=>null;function rh(e,t,r=!1){return Av(e,t,r)}const xg=new Q("",{providedIn:"root",factory:()=>!1});let ah;function Og(e){var t;return(null===(t=function Ff(){if(void 0===ah&&(ah=null,Bn.trustedTypes))try{ah=Bn.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return ah}())||void 0===t?void 0:t.createScriptURL(e))||e}class kg{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Yn})`}}function cu(e){return e instanceof kg?e.changingThisBreaksApplicationSecurity:e}function po(e,t){const r=function go(e){return e instanceof kg&&e.getTypeName()||null}(e);if(null!=r&&r!==t){if("ResourceURL"===r&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${r} (see ${Yn})`)}return r===t}const YI=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;var Xc=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}(Xc||{});function Qc(e){const t=Sa();return t?t.sanitize(Xc.URL,e)||"":po(e,"URL")?cu(e):function bi(e){return(e=String(e)).match(YI)?e:"unsafe:"+e}(Nn(e))}function $g(e){const t=Sa();if(t)return Og(t.sanitize(Xc.RESOURCE_URL,e)||"");if(po(e,"ResourceURL"))return Og(cu(e));throw new Ve(904,!1)}function zf(e,t,r){return function Hg(e,t){return"src"===t&&("embed"===e||"frame"===e||"iframe"===e||"media"===e||"script"===e)||"href"===t&&("base"===e||"link"===e)?$g:Qc}(t,r)(e)}function Sa(){const e=Ht();return e&&e[Uo].sanitizer}const Fv=/^>|^->||--!>|)/g,Gg="\u200b$1\u200b";function aa(e){return e instanceof Function?e():e}var Xg=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(Xg||{});let Bv;function Qg(e,t){return Bv(e,t)}function ph(e,t,r,o,a){if(null!=o){let c,p=!1;_o(o)?c=o:Ur(o)&&(p=!0,o=o[Gr]);const y=di(o);0===e&&null!==r?null==a?rd(t,r,y):nd(t,r,y,a||null,!0):1===e&&null!==r?nd(t,r,y,a||null,!0):2===e?function Yf(e,t,r){const o=Qf(e,t);o&&function lE(e,t,r,o){e.removeChild(t,r,o)}(e,o,t,r)}(t,y,p):3===e&&t.destroyNode(y),null!=c&&function cE(e,t,r,o,a){const c=r[$o];c!==di(r)&&ph(t,e,o,c,a);for(let y=Vi;yt.replace(Vv,Gg))}(t))}function Rl(e,t,r){return e.createElement(t,r)}function jv(e,t){var r;null===(r=t[Uo].changeDetectionScheduler)||void 0===r||r.notify(1),Ra(e,t,t[fr],2,null,null)}function Gy(e,t){const r=e[Ks],o=r.indexOf(t);r.splice(o,1)}function qf(e,t){if(e.length<=Vi)return;const r=Vi+t,o=e[r];if(o){const a=o[va];null!==a&&a!==e&&Gy(a,o),t>0&&(e[r-1][Hi]=o[Hi]);const c=ci(e,Vi+t);!function Hy(e,t){jv(e,t),t[Gr]=null,t[_i]=null}(o[un],o);const p=c[wo];null!==p&&p.detachView(c[un]),o[Kr]=null,o[Hi]=null,o[Vn]&=-129}return o}function Yg(e,t){if(!(256&t[Vn])){const r=t[fr];r.destroyNode&&Ra(e,t,r,3,null,null),function fu(e){let t=e[La];if(!t)return Zg(e[un],e);for(;t;){let r=null;if(Ur(t))r=t[La];else{const o=t[Vi];o&&(r=o)}if(!r){for(;t&&!t[Hi]&&t!==e;)Ur(t)&&Zg(t[un],t),t=t[Kr];null===t&&(t=e),Ur(t)&&Zg(t[un],t),r=t&&t[Hi]}t=r}}(t)}}function Zg(e,t){if(256&t[Vn])return;const r=re(null);try{t[Vn]&=-129,t[Vn]|=256,t[Ws]&&function vt(e){if(Ct(e),Ke(e))for(let t=0;t=0?o[p]():o[-p].unsubscribe(),c+=2}else r[c].call(o[r[c+1]]);null!==o&&(t[Fi]=null);const a=t[Lr];if(null!==a){t[Lr]=null;for(let c=0;c-1){const{encapsulation:c}=e.data[o.directiveStart+a];if(c===ms.None||c===ms.Emulated)return null}return ts(o,r)}}(e,t.parent,r)}function nd(e,t,r,o,a){e.insertBefore(t,r,o,a)}function rd(e,t,r){e.appendChild(t,r)}function Xf(e,t,r,o,a){null!==o?nd(e,t,r,o,a):rd(e,t,r)}function Qf(e,t){return e.parentNode(t)}function Hv(e,t,r){return qy(e,t,r)}let Wv,qy=function Gv(e,t,r){return 40&e.type?ts(e,r):null};function Jg(e,t,r,o){const a=zv(e,o,t),c=t[fr],y=Hv(o.parent||t[_i],o,t);if(null!=a)if(Array.isArray(r))for(let A=0;ADr&&nm(e,t,Dr,!1),yo(p?2:0,a),r(o,a)}finally{ba(c),yo(p?3:1,a)}}function Xv(e,t,r){if(zl(t)){const o=re(null);try{const c=t.directiveEnd;for(let p=t.directiveStart;pnull;function Yv(e,t,r,o,a){for(let p in t){var c;if(!t.hasOwnProperty(p))continue;const y=t[p];if(void 0===y)continue;null!==(c=o)&&void 0!==c||(o={});let A,F=ss.None;Array.isArray(y)?(A=y[0],F=y[1]):A=y;let K=p;if(null!==a){if(!a.hasOwnProperty(p))continue;K=a[p]}0===e?u0(o,r,K,A,F):u0(o,r,K,A)}return o}function u0(e,t,r,o,a){let c;e.hasOwnProperty(r)?(c=e[r]).push(t,o):c=e[r]=[t,o],void 0!==a&&c.push(a)}function ks(e,t,r,o,a,c,p,y){const A=ts(t,r);let K,F=t.inputs;!y&&null!=F&&(K=F[o])?(t_(e,r,K,o,a),As(t)&&function _E(e,t){const r=So(t,e);16&r[Vn]||(r[Vn]|=64)}(r,t.index)):3&t.type&&(o=function vE(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(o),a=null!=p?p(a,t.value||"",o):a,c.setProperty(A,o,a))}function Zv(e,t,r,o){if(Ta()){const a=null===o?null:{"":-1},c=function TE(e,t){const r=e.directiveRegistry;let o=null,a=null;if(r)for(let p=0;p0;){const r=e[--t];if("number"==typeof r&&r<0)return r}return 0})(p)!=y&&p.push(y),p.push(r,o,c)}}(e,t,o,Jf(e,r,a.hostVars,Nr),a)}function Ml(e,t,r,o,a,c){const p=ts(e,t);!function e_(e,t,r,o,a,c,p){if(null==c)e.removeAttribute(t,a,r);else{const y=null==p?Nn(c):p(c,o||"",a);e.setAttribute(t,a,y,r)}}(t[fr],p,c,e.value,r,o,a)}function ME(e,t,r,o,a,c){const p=c[t];if(null!==p)for(let y=0;y0&&(r[a-1][Hi]=t),o!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{},consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{xs(e.lView)},consumerOnSignalRead(){this.lView[Ws]=this}},I0=100;function cm(e,t=!0,r=0){const o=e[Uo],a=o.rendererFactory;var p;null===(p=a.begin)||void 0===p||p.call(a);try{!function UE(e,t){n_(e,t);let r=0;for(;Ql(e);){if(r===I0)throw new Ve(103,!1);r++,n_(e,1)}}(e,r)}catch(F){throw t&&am(e,F),F}finally{var y,A;null===(y=a.end)||void 0===y||y.call(a),null===(A=o.inlineEffectRunner)||void 0===A||A.flush()}}function $E(e,t,r,o){var a;const c=t[Vn];if(!(256&~c))return;null===(a=t[Uo].inlineEffectRunner)||void 0===a||a.flush(),Da(t);let y=null,A=null;(function BE(e){return 2!==e.type})(e)&&(A=function kE(e){var t;return null!==(t=e[Ws])&&void 0!==t?t:function FE(e){var t;const r=null!==(t=y0.pop())&&void 0!==t?t:Object.create(LE);return r.lView=e,r}(e)}(t),y=function st(e){return e&&(e.nextProducerIndex=0),re(e)}(A));try{yc(t),function Cc(e){return Gn.lFrame.bindingIndex=e}(e.bindingStartIndex),null!==r&&r0(e,t,r,2,o);const F=!(3&~c);if(F){const Re=e.preOrderCheckHooks;null!==Re&&Sc(t,Re,null)}else{const Re=e.preOrderHooks;null!==Re&&ra(t,Re,0,null),ia(t,0)}if(function jE(e){for(let t=gg(e);null!==t;t=Tf(t)){if(!(t[Vn]&Su.HasTransplantedViews))continue;const r=t[Ks];for(let o=0;oe.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}(A,y),function VE(e){e.lView[Ws]!==e&&(e.lView=null,y0.push(e))}(A)),Fu()}}function E0(e,t){for(let r=gg(e);null!==r;r=Tf(r))for(let o=Vi;o-1&&(qf(t,o),ci(r,o))}this._attachedToViewContainer=!1}Yg(this._lView[un],this._lView)}onDestroy(t){Wa(this._lView,t)}markForCheck(){ip(this._cdRefInjectingView||this._lView)}detach(){this._lView[Vn]&=-129}reattach(){fl(this._lView),this._lView[Vn]|=128}detectChanges(){this._lView[Vn]|=1024,cm(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new Ve(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,jv(this._lView[un],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new Ve(902,!1);this._appRef=t,fl(this._lView)}}let sp=(()=>{class t{}return t.__NG_ELEMENT_ID__=GE,t})();const T0=sp,HE=class extends T0{constructor(t,r,o){super(),this._declarationLView=t,this._declarationTContainer=r,this.elementRef=o}get ssrId(){var t;return(null===(t=this._declarationTContainer.tView)||void 0===t?void 0:t.ssrId)||null}createEmbeddedView(t,r){return this.createEmbeddedViewImpl(t,r)}createEmbeddedViewImpl(t,r,o){const a=function tp(e,t,r,o){const a=re(null);try{var c,p,y;const A=t.tView,ee=rm(e,A,r,4096&e[Vn]?4096:16,null,t,null,null,null!==(c=null==o?void 0:o.injector)&&void 0!==c?c:null,null!==(p=null==o?void 0:o.embeddedViewInjector)&&void 0!==p?p:null,null!==(y=null==o?void 0:o.dehydratedView)&&void 0!==y?y:null);ee[va]=e[t.index];const Ge=e[wo];return null!==Ge&&(ee[wo]=Ge.createEmbeddedView(A)),lm(A,ee,r),ee}finally{re(a)}}(this._declarationLView,this._declarationTContainer,t,{embeddedViewInjector:r,dehydratedView:o});return new op(a)}};function GE(){return dm(Ci(),Ht())}function dm(e,t){return 4&e.type?new HE(t,e,oa(e,t)):null}class pm{}class Ih{}class i_{}class ap{resolveComponentFactory(t){throw function Eh(e){const t=Error(`No component factory found for ${tr(e)}.`);return t.ngComponent=e,t}(t)}}let lc=(()=>{class t{}return t.NULL=new ap,t})();class lp{}let gm=(()=>{class t{constructor(){this.destroyNode=null}}return t.__NG_ELEMENT_ID__=()=>function mm(){const e=Ht(),r=So(Ci().index,e);return(Ur(r)?r:e)[fr]}(),t})(),vm=(()=>{var e;class t{}return(e=t).\u0275prov=lr({token:e,providedIn:"root",factory:()=>null}),t})();const up={},s_=new Set;function Ma(e){var t,r;s_.has(e)||(s_.add(e),null===(t=performance)||void 0===t||null===(r=t.mark)||void 0===r||r.call(t,"mark_feature_usage",{detail:{feature:e}}))}function _m(...e){}class Eo{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:o=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Os(!1),this.onMicrotaskEmpty=new Os(!1),this.onStable=new Os(!1),this.onError=new Os(!1),typeof Zone>"u")throw new Ve(908,!1);Zone.assertZonePatched();const a=this;a._nesting=0,a._outer=a._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(a._inner=a._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(a._inner=a._inner.fork(Zone.longStackTraceZoneSpec)),a.shouldCoalesceEventChangeDetection=!o&&r,a.shouldCoalesceRunChangeDetection=o,a.lastRequestAnimationFrameId=-1,a.nativeRequestAnimationFrame=function ym(){const e="function"==typeof Bn.requestAnimationFrame;let t=Bn[e?"requestAnimationFrame":"setTimeout"],r=Bn[e?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&t&&r){const o=t[Zone.__symbol__("OriginalDelegate")];o&&(t=o);const a=r[Zone.__symbol__("OriginalDelegate")];a&&(r=a)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:r}}().nativeRequestAnimationFrame,function ns(e){const t=()=>{!function Em(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(Bn,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,jo(e),e.isCheckStableRunning=!0,Ah(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),jo(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(r,o,a,c,p,y)=>{if(function R0(e){var t;return!(!Array.isArray(e)||1!==e.length)&&!0===(null===(t=e[0].data)||void 0===t?void 0:t.__ignore_ng_zone__)}(y))return r.invokeTask(a,c,p,y);try{return Ch(e),r.invokeTask(a,c,p,y)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===c.type||e.shouldCoalesceRunChangeDetection)&&t(),Am(e)}},onInvoke:(r,o,a,c,p,y,A)=>{try{return Ch(e),r.invoke(a,c,p,y,A)}finally{e.shouldCoalesceRunChangeDetection&&t(),Am(e)}},onHasTask:(r,o,a,c)=>{r.hasTask(a,c),o===a&&("microTask"==c.change?(e._hasPendingMicrotasks=c.microTask,jo(e),Ah(e)):"macroTask"==c.change&&(e.hasPendingMacrotasks=c.macroTask))},onHandleError:(r,o,a,c)=>(r.handleError(a,c),e.runOutsideAngular(()=>e.onError.emit(c)),!1)})}(a)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Eo.isInAngularZone())throw new Ve(909,!1)}static assertNotInAngularZone(){if(Eo.isInAngularZone())throw new Ve(909,!1)}run(t,r,o){return this._inner.run(t,r,o)}runTask(t,r,o,a){const c=this._inner,p=c.scheduleEventTask("NgZoneEvent: "+a,t,Im,_m,_m);try{return c.runTask(p,r,o)}finally{c.cancelTask(p)}}runGuarded(t,r,o){return this._inner.runGuarded(t,r,o)}runOutsideAngular(t){return this._outer.run(t)}}const Im={};function Ah(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function jo(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function Ch(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Am(e){e._nesting--,Ah(e)}class Cm{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Os,this.onMicrotaskEmpty=new Os,this.onStable=new Os,this.onError=new Os}run(t,r,o){return t.apply(r,o)}runGuarded(t,r,o){return t.apply(r,o)}runOutsideAngular(t){return t()}runTask(t,r,o,a){return t.apply(r,o)}}var mu=function(e){return e[e.EarlyRead=0]="EarlyRead",e[e.Write=1]="Write",e[e.MixedReadWrite=2]="MixedReadWrite",e[e.Read=3]="Read",e}(mu||{});const Tm={destroy(){}};function a_(e,t){var r,o,a;!t&&function Es(e){if(!Hs())throw new Ve(-203,!1)}();const c=null!==(r=null==t?void 0:t.injector)&&void 0!==r?r:Ae(ds);if(!function el(e){return"browser"===(null!=e?e:Ae(ds)).get(Zd)}(c))return Tm;Ma("NgAfterNextRender");const p=c.get(ad),y=null!==(o=p.handler)&&void 0!==o?o:p.handler=new Dm,A=null!==(a=null==t?void 0:t.phase)&&void 0!==a?a:mu.MixedReadWrite,F=()=>{y.unregister(ee),K()},K=c.get(Ku).onDestroy(F),ee=lo(c,()=>new cp(A,()=>{F(),e()}));return y.register(ee),{destroy:F}}class cp{constructor(t,r){var o;this.phase=t,this.callbackFn=r,this.zone=Ae(Eo),this.errorHandler=Ae(Ya,{optional:!0}),null===(o=Ae(pm,{optional:!0}))||void 0===o||o.notify(1)}invoke(){try{this.zone.runOutsideAngular(this.callbackFn)}catch(r){var t;null===(t=this.errorHandler)||void 0===t||t.handleError(r)}}}class Dm{constructor(){this.executingCallbacks=!1,this.buckets={[mu.EarlyRead]:new Set,[mu.Write]:new Set,[mu.MixedReadWrite]:new Set,[mu.Read]:new Set},this.deferredCallbacks=new Set}register(t){(this.executingCallbacks?this.deferredCallbacks:this.buckets[t.phase]).add(t)}unregister(t){this.buckets[t.phase].delete(t),this.deferredCallbacks.delete(t)}execute(){this.executingCallbacks=!0;for(const t of Object.values(this.buckets))for(const r of t)r.invoke();this.executingCallbacks=!1;for(const t of this.deferredCallbacks)this.buckets[t.phase].add(t);this.deferredCallbacks.clear()}destroy(){for(const t of Object.values(this.buckets))t.clear();this.deferredCallbacks.clear()}}let ad=(()=>{var e;class t{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){var o;this.executeInternalCallbacks(),null===(o=this.handler)||void 0===o||o.execute()}executeInternalCallbacks(){const o=[...this.internalCallbacks];this.internalCallbacks.length=0;for(const a of o)a()}ngOnDestroy(){var o;null===(o=this.handler)||void 0===o||o.destroy(),this.handler=null,this.internalCallbacks.length=0}}return(e=t).\u0275prov=lr({token:e,providedIn:"root",factory:()=>new e}),t})();function tl(e){return!!Hr(e)}function _u(e,t,r){let o=r?e.styles:null,a=r?e.classes:null,c=0;if(null!==t)for(let p=0;p0&&Zy(e,r,c.join(" "))}}($t,Fl,hn,o),void 0!==r&&function f_(e,t,r){const o=e.projection=[];for(let a=0;a{class t{}return t.__NG_ELEMENT_ID__=p_,t})();function p_(){return vp(Ci(),Ht())}const g_=hd,m_=class extends g_{constructor(t,r,o){super(),this._lContainer=t,this._hostTNode=r,this._hostLView=o}get element(){return oa(this._hostTNode,this._hostLView)}get injector(){return new Yi(this._hostTNode,this._hostLView)}get parentInjector(){const t=qa(this._hostTNode,this._hostLView);if(Il(t)){const r=El(t,this._hostLView),o=wa(t);return new Yi(r[un].data[o+8],r)}return new Yi(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const r=wh(this._lContainer);return null!==r&&r[t]||null}get length(){return this._lContainer.length-Vi}createEmbeddedView(t,r,o){let a,c;"number"==typeof o?a=o:null!=o&&(a=o.index,c=o.injector);const y=t.createEmbeddedViewImpl(r||{},c,null);return this.insertImpl(y,a,_h(this._hostTNode,null)),y}createComponent(t,r,o,a,c){var p,A;const F=t&&!function Ft(e){return"function"==typeof e}(t);let K;if(F)K=r;else{const hn=r||{};K=hn.index,o=hn.injector,a=hn.projectableNodes,c=hn.environmentInjector||hn.ngModuleRef}const ee=F?t:new bh(Jn(t)),Re=o||this.parentInjector;if(!c&&null==ee.ngModule){const qt=(F?Re:this.parentInjector).get(Jo,null);qt&&(c=qt)}const Ge=Jn(null!==(p=ee.componentType)&&void 0!==p?p:{}),_t=(null==Ge?void 0:Ge.id,null),$t=null!==(A=null==_t?void 0:_t.firstChild)&&void 0!==A?A:null,sn=ee.create(Re,a,$t,c);return this.insertImpl(sn.hostView,K,_h(this._hostTNode,_t)),sn}insert(t,r){return this.insertImpl(t,r,!0)}insertImpl(t,r,o){const a=t._lView;if(function _c(e){return _o(e[Kr])}(a)){const y=this.indexOf(t);if(-1!==y)this.detach(y);else{const A=a[Kr],F=new m_(A,A[_i],A[Kr]);F.detach(F.indexOf(t))}}const c=this._adjustIndex(r),p=this._lContainer;return np(p,a,c,o),t.attachToViewContainerRef(),vi(mp(p),c,t),t}move(t,r){return this.insert(t,r)}indexOf(t){const r=wh(this._lContainer);return null!==r?r.indexOf(t):-1}remove(t){const r=this._adjustIndex(t,-1),o=qf(this._lContainer,r);o&&(ci(mp(this._lContainer),r),Yg(o[un],o))}detach(t){const r=this._adjustIndex(t,-1),o=qf(this._lContainer,r);return o&&null!=ci(mp(this._lContainer),r)?new op(o):null}_adjustIndex(t,r=0){return null==t?this.length+r:t}};function wh(e){return e[8]}function mp(e){return e[8]||(e[8]=[])}function vp(e,t){let r;const o=t[e.index];return _o(o)?r=o:(r=h0(o,t,null,e),t[e.index]=r,om(t,r)),Iu(r,t,e,o),new m_(r,e,t)}let Iu=function Rm(e,t,r,o){if(e[$o])return;let a;a=8&r.type?di(o):function Sh(e,t){const r=e[fr],o=r.createComment(""),a=ts(t,e);return nd(r,Qf(r,a),o,function Ky(e,t){return e.nextSibling(t)}(r,a),!1),o}(t,r),e[$o]=a},Rh=()=>!1;class Mh{constructor(t){this.queryList=t,this.matches=null}clone(){return new Mh(this.queryList)}setDirty(){this.queryList.setDirty()}}class _p{constructor(t=[]){this.queries=t}createEmbeddedView(t){const r=t.queries;if(null!==r){const o=null!==t.contentQueries?t.contentQueries[0]:r.length,a=[];for(let c=0;ct.trim())}(t):t}}class xm{constructor(t=[]){this.queries=t}elementStart(t,r){for(let o=0;o0)o.push(p[y/2]);else{const F=c[y+1],K=t[-A];for(let ee=Vi;ee=0;o--){const a=e[o];a.hostVars=t+=a.hostVars,a.hostAttrs=Xo(a.hostAttrs,r=Xo(r,a.hostAttrs))}}(o)}function x_(e,t){for(const o in t.inputs){if(!t.inputs.hasOwnProperty(o)||e.inputs.hasOwnProperty(o))continue;const a=t.inputs[o];if(void 0!==a&&(e.inputs[o]=a,e.declaredInputs[o]=t.declaredInputs[o],null!==t.inputTransforms)){var r;const c=Array.isArray(a)?a[0]:a;if(!t.inputTransforms.hasOwnProperty(c))continue;null!==(r=e.inputTransforms)&&void 0!==r||(e.inputTransforms={}),e.inputTransforms[c]=t.inputTransforms[c]}}}function Lh(e){return e===Vo?{}:e===Pr?[]:e}function wp(e,t){const r=e.viewQuery;e.viewQuery=r?(o,a)=>{t(o,a),r(o,a)}:t}function Fs(e,t){const r=e.contentQueries;e.contentQueries=r?(o,a,c)=>{t(o,a,c),r(o,a,c)}:t}function O_(e,t){const r=e.hostBindings;e.hostBindings=r?(o,a)=>{t(o,a),r(o,a)}:t}function Li(e){const t=e.inputConfig,r={};for(const o in t)if(t.hasOwnProperty(o)){const a=t[o];Array.isArray(a)&&a[3]&&(r[o]=a[3])}e.inputTransforms=r}class io{}class hi{}function rs(e,t){return new Cu(e,null!=t?t:null,[])}class Cu extends io{constructor(t,r,o){super(),this._parent=r,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new u_(this);const a=Hr(t);this._bootstrapComponents=aa(a.bootstrap),this._r3Injector=_f(t,r,[{provide:io,useValue:this},{provide:lc,useValue:this.componentFactoryResolver},...o],tr(t),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(t)}get injector(){return this._r3Injector}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(r=>r()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class Vs extends hi{constructor(t){super(),this.moduleType=t}create(t){return new Cu(this.moduleType,t,[])}}class Rp extends io{constructor(t){super(),this.componentFactoryResolver=new u_(this),this.instance=null;const r=new Rs([...t.providers,{provide:io,useValue:this},{provide:lc,useValue:this.componentFactoryResolver}],t.parent||Lo(),t.debugName,new Set(["environment"]));this.injector=r,t.runEnvironmentInitializers&&r.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}}function j0(e,t,r=null){return new Rp({providers:e,parent:t,debugName:r,runEnvironmentInitializers:!0}).injector}let Mp=(()=>{var e;class t{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new er.t(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);const o=this.taskId++;return this.pendingTasks.add(o),o}remove(o){this.pendingTasks.delete(o),0===this.pendingTasks.size&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}}return(e=t).\u0275fac=function(o){return new(o||e)},e.\u0275prov=lr({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();function V_(e){return!!z0(e)&&(Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e)}function z0(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function Mo(e,t,r){return!Object.is(e[t],r)&&(e[t]=r,!0)}function Pp(e,t,r,o,a,c,p,y){const A=Ht(),F=qr(),K=e+Dr,ee=F.firstCreatePass?function ab(e,t,r,o,a,c,p,y,A){const F=t.consts,K=sc(t,e,4,p||null,Cs(F,y));Zv(t,r,K,Cs(F,A)),$u(t,K);const ee=K.tView=ep(2,K,o,a,c,t.directiveRegistry,t.pipeRegistry,null,t.schemas,F,null);return null!==t.queries&&(t.queries.template(t,K),ee.queries=t.queries.embeddedTView(K)),K}(K,F,A,t,r,o,a,c,p):F.data[K];Js(ee,!1);const Re=rA(F,A,ee,e);Uu()&&Jg(F,A,Re,ee),Zi(Re,A);const Ge=h0(Re,A,Re,ee);return A[K]=Ge,om(A,Ge),function v_(e,t,r){return Rh(e,t,r)}(Ge,ee,A),Ia(ee)&&mh(F,A,ee),null!=p&&od(A,ee,y),Pp}let rA=function iA(e,t,r,o){return Ns(!0),t[fr].createComment("")};function J0(e,t,r,o){const a=Ht();return Mo(a,Ts(),t)&&(qr(),Ml(yi(),a,e,t,r,o)),J0}function H_(e,t){return e<<17|t<<2}function yd(e){return e>>17&32767}function eI(e){return 2|e}function Bh(e){return(131068&e)>>2}function tI(e,t){return-131069&e|t<<2}function nI(e){return 1|e}function kA(e,t,r,o){const a=e[r+1],c=null===t;let p=o?yd(a):Bh(a),y=!1;for(;0!==p&&(!1===y||c);){const F=e[p+1];Kb(e[p],t)&&(y=!0,e[p+1]=o?nI(F):eI(F)),p=o?yd(F):Bh(F)}y&&(e[r+1]=o?eI(a):nI(a))}function Kb(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&Do(e,t)>=0}function rI(e,t,r){const o=Ht();return Mo(o,Ts(),t)&&ks(qr(),yi(),o,e,t,o[fr],r,!1),rI}function iI(e,t,r,o,a){const p=a?"class":"style";t_(e,r,t.inputs[p],p,o)}function oI(e,t){return function Ol(e,t,r,o){const a=Ht(),c=qr(),p=function na(e){const t=Gn.lFrame,r=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,r}(2);c.firstUpdatePass&&function HA(e,t,r,o){const a=e.data;if(null===a[r+1]){const c=a[fo()],p=function zA(e,t){return t>=e.expandoStartIndex}(e,r);(function qA(e,t){return!!(e.flags&(t?8:16))})(c,o)&&null===t&&!p&&(t=!1),t=function nw(e,t,r,o){const a=function Ou(e){const t=Gn.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}(e);let c=o?t.residualClasses:t.residualStyles;if(null===a)0===(o?t.classBindings:t.styleBindings)&&(r=qm(r=sI(null,e,t,r,o),t.attrs,o),c=null);else{const p=t.directiveStylingLast;if(-1===p||e[p]!==a)if(r=sI(a,e,t,r,o),null===c){let A=function rw(e,t,r){const o=r?t.classBindings:t.styleBindings;if(0!==Bh(o))return e[yd(o)]}(e,t,o);void 0!==A&&Array.isArray(A)&&(A=sI(null,e,t,A[1],o),A=qm(A,t.attrs,o),function iw(e,t,r,o){e[yd(r?t.classBindings:t.styleBindings)]=o}(e,t,o,A))}else c=function ow(e,t,r){let o;const a=t.directiveEnd;for(let c=1+t.directiveStylingLast;c0)&&(F=!0)):K=r,a)if(0!==A){const Re=yd(e[y+1]);e[o+1]=H_(Re,y),0!==Re&&(e[Re+1]=tI(e[Re+1],o)),e[y+1]=function zb(e,t){return 131071&e|t<<17}(e[y+1],o)}else e[o+1]=H_(y,0),0!==y&&(e[y+1]=tI(e[y+1],o)),y=o;else e[o+1]=H_(A,0),0===y?y=o:e[A+1]=tI(e[A+1],o),A=o;F&&(e[o+1]=eI(e[o+1])),kA(e,K,o,!0),kA(e,K,o,!1),function Wb(e,t,r,o,a){const c=a?e.residualClasses:e.residualStyles;null!=c&&"string"==typeof t&&Do(c,t)>=0&&(r[o+1]=nI(r[o+1]))}(t,K,e,o,c),p=H_(y,A),c?t.classBindings=p:t.styleBindings=p}(a,c,t,r,p,o)}}(c,e,p,o),t!==Nr&&Mo(a,p,t)&&function WA(e,t,r,o,a,c,p,y){if(!(3&t.type))return;const A=e.data,F=A[y+1],K=function Hb(e){return!(1&~e)}(F)?KA(A,t,r,a,Bh(F),p):void 0;G_(K)||(G_(c)||function jb(e){return!(2&~e)}(F)&&(c=KA(A,null,r,a,y,p)),function dE(e,t,r,o,a){if(t)a?e.addClass(r,o):e.removeClass(r,o);else{let c=-1===o.indexOf("-")?void 0:Xg.DashCase;null==a?e.removeStyle(r,o,c):("string"==typeof a&&a.endsWith("!important")&&(a=a.slice(0,-10),c|=Xg.Important),e.setStyle(r,o,a,c))}}(o,p,Ga(fo(),r),a,c))}(c,c.data[fo()],a,a[fr],e,a[p+1]=function uw(e,t){return null==e||""===e||("string"==typeof t?e+=t:"object"==typeof e&&(e=tr(cu(e)))),e}(t,r),o,p)}(e,t,null,!0),oI}function sI(e,t,r,o,a){let c=null;const p=r.directiveEnd;let y=r.directiveStylingLast;for(-1===y?y=r.directiveStart:y++;y0;){const A=e[a],F=Array.isArray(A),K=F?A[1]:A,ee=null===K;let Re=r[a+1];Re===Nr&&(Re=ee?Pr:void 0);let Ge=ee?Ko(Re,o):K===o?Re:void 0;if(F&&!G_(Ge)&&(Ge=Ko(A,o)),G_(Ge)&&(y=Ge,p))return y;const _t=e[a+1];a=p?yd(_t):Bh(_t)}if(null!==t){let A=c?t.residualClasses:t.residualStyles;null!=A&&(y=Ko(A,o))}return y}function G_(e){return void 0!==e}function W_(e,t,r,o){const a=Ht(),c=qr(),p=Dr+e,y=a[fr],A=c.firstCreatePass?function xw(e,t,r,o,a,c){const p=t.consts,A=sc(t,e,2,o,Cs(p,a));return Zv(t,r,A,Cs(p,c)),null!==A.attrs&&_u(A,A.attrs,!1),null!==A.mergedAttrs&&_u(A,A.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,A),A}(p,c,a,t,r,o):c.data[p],F=ZA(c,a,A,y,t,e);a[p]=F;const K=Ia(A);return Js(A,!0),Jy(y,F,A),!function Hm(e){return!(32&~e.flags)}(A)&&Uu()&&Jg(c,a,F,A),0===function Ic(){return Gn.lFrame.elementDepthCount}()&&Zi(F,a),function Ec(){Gn.lFrame.elementDepthCount++}(),K&&(mh(c,a,A),Xv(c,A,a)),null!==o&&od(a,A),W_}function K_(){let e=Ci();xu()?Nu():(e=e.parent,Js(e,!1));const t=e;(function gl(e){return Gn.skipHydrationRootTNode===e})(t)&&function Ka(){Gn.skipHydrationRootTNode=null}(),function Ys(){Gn.lFrame.elementDepthCount--}();const r=qr();return r.firstCreatePass&&($u(r,e),zl(e)&&r.queries.elementEnd(e)),null!=t.classesWithoutHost&&function Bu(e){return!!(8&e.flags)}(t)&&iI(r,t,Ht(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function kd(e){return!!(16&e.flags)}(t)&&iI(r,t,Ht(),t.stylesWithoutHost,!1),K_}function dI(e,t,r,o){return W_(e,t,r,o),K_(),dI}let ZA=(e,t,r,o,a,c)=>(Ns(!0),Rl(o,a,function Od(){return Gn.lFrame.currentNamespace}()));function q_(e,t,r){const o=Ht(),a=qr(),c=e+Dr,p=a.firstCreatePass?function kw(e,t,r,o,a){const c=t.consts,p=Cs(c,o),y=sc(t,e,8,"ng-container",p);return null!==p&&_u(y,p,!0),Zv(t,r,y,Cs(c,a)),null!==t.queries&&t.queries.elementStart(t,y),y}(c,a,o,t,r):a.data[c];Js(p,!0);const y=JA(a,o,p,e);return o[c]=y,Uu()&&Jg(a,o,y,p),Zi(y,o),Ia(p)&&(mh(a,o,p),Xv(a,p,o)),null!=r&&od(o,p),q_}function X_(){let e=Ci();const t=qr();return xu()?Nu():(e=e.parent,Js(e,!1)),t.firstCreatePass&&($u(t,e),zl(e)&&t.queries.elementEnd(e)),X_}function hI(e,t,r){return q_(e,t,r),X_(),hI}let JA=(e,t,r,o)=>(Ns(!0),td(t[fr],""));function eC(){return Ht()}const jh=void 0;var Uw=["en",[["a","p"],["AM","PM"],jh],[["AM","PM"],jh,jh],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],jh,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],jh,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",jh,"{1} 'at' {0}",jh],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function Lw(e){const r=Math.floor(Math.abs(e)),o=e.toString().replace(/^[^.]*\.?/,"").length;return 1===r&&0===o?1:5}];let qp={};function fI(e){const t=function $w(e){return e.toLowerCase().replace(/_/g,"-")}(e);let r=iC(t);if(r)return r;const o=t.split("-")[0];if(r=iC(o),r)return r;if("en"===o)return Uw;throw new Ve(701,!1)}function rC(e){return fI(e)[Xp.PluralCase]}function iC(e){return e in qp||(qp[e]=Bn.ng&&Bn.ng.common&&Bn.ng.common.locales&&Bn.ng.common.locales[e]),qp[e]}var Xp=function(e){return e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencyCode=15]="CurrencyCode",e[e.CurrencySymbol=16]="CurrencySymbol",e[e.CurrencyName=17]="CurrencyName",e[e.Currencies=18]="Currencies",e[e.Directionality=19]="Directionality",e[e.PluralCase=20]="PluralCase",e[e.ExtraData=21]="ExtraData",e}(Xp||{});const Qp="en-US";let oC=Qp;function mI(e,t,r,o){const a=Ht(),c=qr(),p=Ci();return vI(c,a,a[fr],p,e,t,o),mI}function vI(e,t,r,o,a,c,p){const y=Ia(o),F=e.firstCreatePass&&g0(e),K=t[Jr],ee=p0(t);let Re=!0;if(3&o.type||p){const $t=ts(o,t),sn=p?p($t):$t,hn=ee.length,qt=p?$r=>p(di($r[o.index])):o.index;let Er=null;if(!p&&y&&(Er=function FS(e,t,r,o){const a=e.cleanup;if(null!=a)for(let c=0;cA?y[A]:null}"string"==typeof p&&(c+=2)}return null}(e,t,a,o.index)),null!==Er)(Er.__ngLastListenerFn__||Er).__ngNextListenerFn__=c,Er.__ngLastListenerFn__=c,Re=!1;else{c=NC(o,t,K,c,!1);const $r=r.listen(sn,a,c);ee.push(c,$r),F&&F.push(a,qt,hn,hn+1)}}else c=NC(o,t,K,c,!1);const Ge=o.outputs;let _t;if(Re&&null!==Ge&&(_t=Ge[a])){const $t=_t.length;if($t)for(let sn=0;sn<$t;sn+=2){const fi=t[_t[sn]][_t[sn+1]].subscribe(c),fs=ee.length;ee.push(c,fi),F&&F.push(a,o.index,fs,-(fs+1))}}}function xC(e,t,r,o){const a=re(null);try{return yo(6,t,r),!1!==r(o)}catch(c){return am(e,c),!1}finally{yo(7,t,r),re(a)}}function NC(e,t,r,o,a){return function c(p){if(p===Function)return o;ip(e.componentOffset>-1?So(e.index,t):t);let A=xC(t,r,o,p),F=c.__ngNextListenerFn__;for(;F;)A=xC(t,r,F,p)&&A,F=F.__ngNextListenerFn__;return a&&!1===A&&p.preventDefault(),A}}function OC(e=1){return function Vu(e){return(Gn.lFrame.contextLView=function eg(e,t){for(;e>0;)t=t[Ua],e--;return t}(e,Gn.lFrame.contextLView))[Jr]}(e)}function VS(e,t){let r=null;const o=function nn(e){const t=e.attrs;if(null!=t){const r=t.indexOf(5);if(!(1&r))return t[r+1]}return null}(e);for(let a=0;a(Ns(!0),function Sl(e,t){return e.createText(t)}(t[fr],o));function yI(e){return II("",e,""),yI}function II(e,t,r){const o=Ht(),a=function Up(e,t,r,o){return Mo(e,Ts(),r)?t+Nn(r)+o:Nr}(o,e,t,r);return a!==Nr&&function pu(e,t,r){const o=Ga(t,e);!function oc(e,t,r){e.setValue(t,r)}(e[fr],o,r)}(o,fo(),a),II}function EI(e,t,r){km(t)&&(t=t());const o=Ht();return Mo(o,Ts(),t)&&ks(qr(),yi(),o,e,t,o[fr],r,!1),EI}function gT(e,t){const r=km(e);return r&&e.set(t),r}function AI(e,t){const r=Ht(),o=qr(),a=Ci();return vI(o,r,r[fr],a,e,t),AI}function CI(e,t,r,o,a){if(e=oe(e),Array.isArray(e))for(let c=0;c>20;if(Yo(e)||!e.multi){const Ge=new yl(F,a,id),_t=DI(A,t,a?K:K+Re,ee);-1===_t?(Al(zu(y,p),c,A),TI(c,e,t.length),t.push(A),y.directiveStart++,y.directiveEnd++,a&&(y.providerIndexes+=1048576),r.push(Ge),p.push(Ge)):(r[_t]=Ge,p[_t]=Ge)}else{const Ge=DI(A,t,K+Re,ee),_t=DI(A,t,K,K+Re),sn=_t>=0&&r[_t];if(a&&!sn||!a&&!(Ge>=0&&r[Ge])){Al(zu(y,p),c,A);const hn=function rR(e,t,r,o,a){const c=new yl(e,r,id);return c.multi=[],c.index=t,c.componentProviders=0,mT(c,a,o&&!r),c}(a?nR:tR,r.length,a,o,F);!a&&sn&&(r[_t].providerFactory=hn),TI(c,e,t.length,0),t.push(A),y.directiveStart++,y.directiveEnd++,a&&(y.providerIndexes+=1048576),r.push(hn),p.push(hn)}else TI(c,e,Ge>-1?Ge:_t,mT(r[a?_t:Ge],F,!a&&o));!a&&o&&sn&&r[_t].componentProviders++}}}function TI(e,t,r,o){const a=Yo(t),c=function Ss(e){return!!e.useClass}(t);if(a||c){const A=(c?oe(t.useClass):t).prototype.ngOnDestroy;if(A){const F=e.destroyHooks||(e.destroyHooks=[]);if(!a&&t.multi){const K=F.indexOf(r);-1===K?F.push(r,[o,A]):F[K+1].push(o,A)}else F.push(r,A)}}}function mT(e,t,r){return r&&e.componentProviders++,e.multi.push(t)-1}function DI(e,t,r,o){for(let a=r;a{r.providersResolver=(o,a)=>function eR(e,t,r){const o=qr();if(o.firstCreatePass){const a=us(e);CI(r,o.data,o.blueprint,a,!0),CI(t,o.data,o.blueprint,a,!1)}}(o,a?a(e):e,t)}}let iR=(()=>{var e;class t{constructor(o){this._injector=o,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(o){if(!o.standalone)return null;if(!this.cachedInjectors.has(o)){const a=ka(0,o.type),c=a.length>0?j0([a],this._injector,`Standalone[${o.type.name}]`):null;this.cachedInjectors.set(o,c)}return this.cachedInjectors.get(o)}ngOnDestroy(){try{for(const o of this.cachedInjectors.values())null!==o&&o.destroy()}finally{this.cachedInjectors.clear()}}}return(e=t).\u0275prov=lr({token:e,providedIn:"environment",factory:()=>new e(U(Jo))}),t})();function _T(e){Ma("NgStandalone"),e.getStandaloneInjector=t=>t.get(iR).getOrCreateStandaloneInjector(e)}function IT(e,t,r){const o=function ho(){const e=Gn.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}()+e,a=Ht();return a[o]===Nr?function Tu(e,t,r){return e[t]=r}(a,o,r?t.call(r):t()):function zm(e,t){return e[t]}(a,o)}class BT{constructor(t){this.full=t;const r=t.split(".");this.major=r[0],this.minor=r[1],this.patch=r.slice(2).join(".")}}const GR=new BT("17.3.10");let jT=(()=>{var e;class t{log(o){console.log(o)}warn(o){console.warn(o)}}return(e=t).\u0275fac=function(o){return new(o||e)},e.\u0275prov=lr({token:e,factory:e.\u0275fac,providedIn:"platform"}),t})();const WT=new Q(""),KT=new Q("");let NI,vM=(()=>{var e;class t{constructor(o,a,c){this._ngZone=o,this.registry=a,this._pendingCount=0,this._isZoneStable=!0,this._callbacks=[],this.taskTrackingZone=null,NI||(function _M(e){NI=e}(c),c.addToWindow(a)),this._watchAngularEvents(),o.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Eo.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;0!==this._callbacks.length;){let o=this._callbacks.pop();clearTimeout(o.timeoutId),o.doneCb()}});else{let o=this.getPendingTasks();this._callbacks=this._callbacks.filter(a=>!a.updateCb||!a.updateCb(o)||(clearTimeout(a.timeoutId),!1))}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(o=>({source:o.source,creationLocation:o.creationLocation,data:o.data})):[]}addCallback(o,a,c){let p=-1;a&&a>0&&(p=setTimeout(()=>{this._callbacks=this._callbacks.filter(y=>y.timeoutId!==p),o()},a)),this._callbacks.push({doneCb:o,timeoutId:p,updateCb:c})}whenStable(o,a,c){if(c&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(o,a,c),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(o){this.registry.registerApplication(o,this)}unregisterApplication(o){this.registry.unregisterApplication(o)}findProviders(o,a,c){return[]}}return(e=t).\u0275fac=function(o){return new(o||e)(U(Eo),U(qT),U(KT))},e.\u0275prov=lr({token:e,factory:e.\u0275fac}),t})(),qT=(()=>{var e;class t{constructor(){this._applications=new Map}registerApplication(o,a){this._applications.set(o,a)}unregisterApplication(o){this._applications.delete(o)}unregisterAllApplications(){this._applications.clear()}getTestability(o){return this._applications.get(o)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(o,a=!0){var c,p;return null!==(c=null===(p=NI)||void 0===p?void 0:p.findTestabilityInTree(this,o,a))&&void 0!==c?c:null}}return(e=t).\u0275fac=function(o){return new(o||e)},e.\u0275prov=lr({token:e,factory:e.\u0275fac,providedIn:"platform"}),t})();function OI(e){return!!e&&"function"==typeof e.then}function XT(e){return!!e&&"function"==typeof e.subscribe}const QT=new Q("");let kI=(()=>{var e;class t{constructor(){var o;this.initialized=!1,this.done=!1,this.donePromise=new Promise((a,c)=>{this.resolve=a,this.reject=c}),this.appInits=null!==(o=Ae(QT,{optional:!0}))&&void 0!==o?o:[]}runInitializers(){if(this.initialized)return;const o=[];for(const c of this.appInits){const p=c();if(OI(p))o.push(p);else if(XT(p)){const y=new Promise((A,F)=>{p.subscribe({complete:A,error:F})});o.push(y)}}const a=()=>{this.done=!0,this.resolve()};Promise.all(o).then(()=>{a()}).catch(c=>{this.reject(c)}),0===o.length&&a(),this.initialized=!0}}return(e=t).\u0275fac=function(o){return new(o||e)},e.\u0275prov=lr({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();const FI=new Q("");function JT(e,t){return Array.isArray(t)?t.reduce(JT,e):{...e,...t}}let Id=(()=>{var e;class t{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=Ae(zd),this.afterRenderEffectManager=Ae(ad),this.externalTestViews=new Set,this.beforeRender=new $n.B,this.afterTick=new $n.B,this.componentTypes=[],this.components=[],this.isStable=Ae(Mp).hasPendingTasks.pipe((0,yn.T)(o=>!o)),this._injector=Ae(Jo)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(o,a){const c=o instanceof i_;if(!this._injector.get(kI).done)throw!c&&ro(o),new Ve(405,!1);let y;y=c?o:this._injector.get(lc).resolveComponentFactory(o),this.componentTypes.push(y.componentType);const A=function yM(e){return e.isBoundToModule}(y)?void 0:this._injector.get(io),K=y.create(ds.NULL,[],a||y.selector,A),ee=K.location.nativeElement,Re=K.injector.get(WT,null);return null==Re||Re.registerApplication(ee),K.onDestroy(()=>{this.detachView(K.hostView),ry(this.components,K),null==Re||Re.unregisterApplication(ee)}),this._loadComponent(K),K}tick(){this._tick(!0)}_tick(o){if(this._runningTick)throw new Ve(101,!1);const a=re(null);try{this._runningTick=!0,this.detectChangesInAttachedViews(o)}catch(c){this.internalErrorHandler(c)}finally{this.afterTick.next(),this._runningTick=!1,re(a)}}detectChangesInAttachedViews(o){let a=0;const c=this.afterRenderEffectManager;for(;;){if(a===I0)throw new Ve(103,!1);if(o){const p=0===a;this.beforeRender.next(p);for(let{_lView:y,notifyErrorHandler:A}of this._views)EM(y,p,A)}if(a++,c.executeInternalCallbacks(),![...this.externalTestViews.keys(),...this._views].some(({_lView:p})=>VI(p))&&(c.execute(),![...this.externalTestViews.keys(),...this._views].some(({_lView:p})=>VI(p))))break}}attachView(o){const a=o;this._views.push(a),a.attachToAppRef(this)}detachView(o){const a=o;ry(this._views,a),a.detachFromAppRef()}_loadComponent(o){this.attachView(o.hostView),this.tick(),this.components.push(o);const a=this._injector.get(FI,[]);[...this._bootstrapListeners,...a].forEach(c=>c(o))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(o=>o()),this._views.slice().forEach(o=>o.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(o){return this._destroyListeners.push(o),()=>ry(this._destroyListeners,o)}destroy(){if(this._destroyed)throw new Ve(406,!1);const o=this._injector;o.destroy&&!o.destroyed&&o.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return(e=t).\u0275fac=function(o){return new(o||e)},e.\u0275prov=lr({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();function ry(e,t){const r=e.indexOf(t);r>-1&&e.splice(r,1)}function EM(e,t,r){!t&&!VI(e)||function AM(e,t,r){let o;r?(o=0,e[Vn]|=1024):o=64&e[Vn]?0:1,cm(e,t,o)}(e,r,t)}function VI(e){return Ql(e)}class CM{constructor(t,r){this.ngModuleFactory=t,this.componentFactories=r}}let TM=(()=>{var e;class t{compileModuleSync(o){return new Vs(o)}compileModuleAsync(o){return Promise.resolve(this.compileModuleSync(o))}compileModuleAndAllComponentsSync(o){const a=this.compileModuleSync(o),p=aa(Hr(o).declarations).reduce((y,A)=>{const F=Jn(A);return F&&y.push(new bh(F)),y},[]);return new CM(a,p)}compileModuleAndAllComponentsAsync(o){return Promise.resolve(this.compileModuleAndAllComponentsSync(o))}clearCache(){}clearCacheFor(o){}getModuleId(o){}}return(e=t).\u0275fac=function(o){return new(o||e)},e.\u0275prov=lr({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),wM=(()=>{var e;class t{constructor(){this.zone=Ae(Eo),this.applicationRef=Ae(Id)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){var o;null===(o=this._onMicrotaskEmptySubscription)||void 0===o||o.unsubscribe()}}return(e=t).\u0275fac=function(o){return new(o||e)},e.\u0275prov=lr({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();function SM(){const e=Ae(Eo),t=Ae(Ya);return r=>e.runOutsideAngular(()=>t.handleError(r))}let MM=(()=>{var e;class t{constructor(){this.subscription=new qn.yU,this.initialized=!1,this.zone=Ae(Eo),this.pendingTasks=Ae(Mp)}initialize(){if(this.initialized)return;this.initialized=!0;let o=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(o=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{Eo.assertNotInAngularZone(),queueMicrotask(()=>{null!==o&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(o),o=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{var a;Eo.assertInAngularZone(),null!==(a=o)&&void 0!==a||(o=this.pendingTasks.add())}))}ngOnDestroy(){this.subscription.unsubscribe()}}return(e=t).\u0275fac=function(o){return new(o||e)},e.\u0275prov=lr({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();const iy=new Q("",{providedIn:"root",factory:()=>Ae(iy,or.Optional|or.SkipSelf)||function PM(){return typeof $localize<"u"&&$localize.locale||Qp}()}),xM=new Q("",{providedIn:"root",factory:()=>"USD"}),LI=new Q("");let rD=(()=>{var e;class t{constructor(o){this._injector=o,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(o,a){const c=function Th(e="zone.js",t){return"noop"===e?new Cm:"zone.js"===e?new Eo(t):e}(null==a?void 0:a.ngZone,function nD(e){var t,r;return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:null!==(t=null==e?void 0:e.eventCoalescing)&&void 0!==t&&t,shouldCoalesceRunChangeDetection:null!==(r=null==e?void 0:e.runCoalescing)&&void 0!==r&&r}}({eventCoalescing:null==a?void 0:a.ngZoneEventCoalescing,runCoalescing:null==a?void 0:a.ngZoneRunCoalescing}));return c.run(()=>{const p=function Sp(e,t,r){return new Cu(e,t,r)}(o.moduleType,this.injector,function tD(e){return[{provide:Eo,useFactory:e},{provide:oo,multi:!0,useFactory:()=>{const t=Ae(wM,{optional:!0});return()=>t.initialize()}},{provide:oo,multi:!0,useFactory:()=>{const t=Ae(MM);return()=>{t.initialize()}}},{provide:zd,useFactory:SM}]}(()=>c)),y=p.injector.get(Ya,null);return c.runOutsideAngular(()=>{const A=c.onError.subscribe({next:F=>{y.handleError(F)}});p.onDestroy(()=>{ry(this._modules,p),A.unsubscribe()})}),function ZT(e,t,r){try{const o=r();return OI(o)?o.catch(a=>{throw t.runOutsideAngular(()=>e.handleError(a)),a}):o}catch(o){throw t.runOutsideAngular(()=>e.handleError(o)),o}}(y,c,()=>{const A=p.injector.get(kI);return A.runInitializers(),A.donePromise.then(()=>(function sC(e){"string"==typeof e&&(oC=e.toLowerCase().replace(/_/g,"-"))}(p.injector.get(iy,Qp)||Qp),this._moduleDoBootstrap(p),p))})})}bootstrapModule(o,a=[]){const c=JT({},a);return function bM(e,t,r){const o=new Vs(r);return Promise.resolve(o)}(0,0,o).then(p=>this.bootstrapModuleFactory(p,c))}_moduleDoBootstrap(o){const a=o.injector.get(Id);if(o._bootstrapComponents.length>0)o._bootstrapComponents.forEach(c=>a.bootstrap(c));else{if(!o.instance.ngDoBootstrap)throw new Ve(-403,!1);o.instance.ngDoBootstrap(a)}this._modules.push(o)}onDestroy(o){this._destroyListeners.push(o)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Ve(404,!1);this._modules.slice().forEach(a=>a.destroy()),this._destroyListeners.forEach(a=>a());const o=this._injector.get(LI,null);o&&(o.forEach(a=>a()),o.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return(e=t).\u0275fac=function(o){return new(o||e)(U(ds))},e.\u0275prov=lr({token:e,factory:e.\u0275fac,providedIn:"platform"}),t})(),Ed=null;const iD=new Q("");function oD(e,t,r=[]){const o=`Platform: ${t}`,a=new Q(o);return(c=[])=>{let p=UI();if(!p||p.injector.get(iD,!1)){const y=[...r,...c,{provide:a,useValue:!0}];e?e(y):function OM(e){if(Ed&&!Ed.get(iD,!1))throw new Ve(400,!1);(function YT(){!function Ee(e){rn=e}(()=>{throw new Ve(600,!1)})})(),Ed=e;const t=e.get(rD);(function aD(e){const t=e.get(_v,null);null==t||t.forEach(r=>r())})(e)}(function sD(e=[],t){return ds.create({name:t,providers:[{provide:dl,useValue:"platform"},{provide:LI,useValue:new Set([()=>Ed=null])},...e]})}(y,o))}return function kM(e){const t=UI();if(!t)throw new Ve(401,!1);return t}()}}function UI(){var e,t;return null!==(e=null===(t=Ed)||void 0===t?void 0:t.get(rD))&&void 0!==e?e:null}function VM(){}let uD=(()=>{class t{}return t.__NG_ELEMENT_ID__=LM,t})();function LM(e){return function UM(e,t,r){if(As(e)&&!r){const o=So(e.index,t);return new op(o,o)}return 47&e.type?new op(t[Wi],t):null}(Ci(),Ht(),!(16&~e))}class fD{constructor(){}supports(t){return V_(t)}create(t){return new HM(t)}}const zM=(e,t)=>t;class HM{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||zM}forEachItem(t){let r;for(r=this._itHead;null!==r;r=r._next)t(r)}forEachOperation(t){let r=this._itHead,o=this._removalsHead,a=0,c=null;for(;r||o;){const p=!o||r&&r.currentIndex{p=this._trackByFn(a,y),null!==r&&Object.is(r.trackById,p)?(o&&(r=this._verifyReinsertion(r,y,p,a)),Object.is(r.item,y)||this._addIdentityChange(r,y)):(r=this._mismatch(r,y,p,a),o=!0),r=r._next,a++}),this.length=a;return this._truncate(r),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,r,o,a){let c;return null===t?c=this._itTail:(c=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(o,null))?(Object.is(t.item,r)||this._addIdentityChange(t,r),this._reinsertAfter(t,c,a)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(o,a))?(Object.is(t.item,r)||this._addIdentityChange(t,r),this._moveAfter(t,c,a)):t=this._addAfter(new GM(r,o),c,a),t}_verifyReinsertion(t,r,o,a){let c=null===this._unlinkedRecords?null:this._unlinkedRecords.get(o,null);return null!==c?t=this._reinsertAfter(c,t._prev,a):t.currentIndex!=a&&(t.currentIndex=a,this._addToMoves(t,a)),t}_truncate(t){for(;null!==t;){const r=t._next;this._addToRemovals(this._unlink(t)),t=r}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,r,o){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const a=t._prevRemoved,c=t._nextRemoved;return null===a?this._removalsHead=c:a._nextRemoved=c,null===c?this._removalsTail=a:c._prevRemoved=a,this._insertAfter(t,r,o),this._addToMoves(t,o),t}_moveAfter(t,r,o){return this._unlink(t),this._insertAfter(t,r,o),this._addToMoves(t,o),t}_addAfter(t,r,o){return this._insertAfter(t,r,o),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,r,o){const a=null===r?this._itHead:r._next;return t._next=a,t._prev=r,null===a?this._itTail=t:a._prev=t,null===r?this._itHead=t:r._next=t,null===this._linkedRecords&&(this._linkedRecords=new pD),this._linkedRecords.put(t),t.currentIndex=o,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const r=t._prev,o=t._next;return null===r?this._itHead=o:r._next=o,null===o?this._itTail=r:o._prev=r,t}_addToMoves(t,r){return t.previousIndex===r||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new pD),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,r){return t.item=r,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class GM{constructor(t,r){this.item=t,this.trackById=r,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class WM{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,r){let o;for(o=this._head;null!==o;o=o._nextDup)if((null===r||r<=o.currentIndex)&&Object.is(o.trackById,t))return o;return null}remove(t){const r=t._prevDup,o=t._nextDup;return null===r?this._head=o:r._nextDup=o,null===o?this._tail=r:o._prevDup=r,null===this._head}}class pD{constructor(){this.map=new Map}put(t){const r=t.trackById;let o=this.map.get(r);o||(o=new WM,this.map.set(r,o)),o.add(t)}get(t,r){const a=this.map.get(t);return a?a.get(t,r):null}remove(t){const r=t.trackById;return this.map.get(r).remove(t)&&this.map.delete(r),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function gD(e,t,r){const o=e.previousIndex;if(null===o)return o;let a=0;return r&&o{if(r&&r.key===a)this._maybeAddToChanges(r,o),this._appendAfter=r,r=r._next;else{const c=this._getOrCreateRecordForKey(a,o);r=this._insertBeforeOrAppend(r,c)}}),r){r._prev&&(r._prev._next=null),this._removalsHead=r;for(let o=r;null!==o;o=o._nextRemoved)o===this._mapHead&&(this._mapHead=null),this._records.delete(o.key),o._nextRemoved=o._next,o.previousValue=o.currentValue,o.currentValue=null,o._prev=null,o._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,r){if(t){const o=t._prev;return r._next=t,r._prev=o,t._prev=r,o&&(o._next=r),t===this._mapHead&&(this._mapHead=r),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=r,r._prev=this._appendAfter):this._mapHead=r,this._appendAfter=r,null}_getOrCreateRecordForKey(t,r){if(this._records.has(t)){const a=this._records.get(t);this._maybeAddToChanges(a,r);const c=a._prev,p=a._next;return c&&(c._next=p),p&&(p._prev=c),a._next=null,a._prev=null,a}const o=new qM(t);return this._records.set(t,o),o.currentValue=r,this._addToAdditions(o),o}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,r){Object.is(r,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=r,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,r){t instanceof Map?t.forEach(r):Object.keys(t).forEach(o=>r(t[o],o))}}class qM{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function vD(){return new HI([new fD])}let HI=(()=>{var e;class t{constructor(o){this.factories=o}static create(o,a){if(null!=a){const c=a.factories.slice();o=o.concat(c)}return new t(o)}static extend(o){return{provide:t,useFactory:a=>t.create(o,a||vD()),deps:[[t,new Ln,new _n]]}}find(o){const a=this.factories.find(c=>c.supports(o));if(null!=a)return a;throw new Ve(901,!1)}}return(e=t).\u0275prov=lr({token:e,providedIn:"root",factory:vD}),t})();function _D(){return new GI([new mD])}let GI=(()=>{var e;class t{constructor(o){this.factories=o}static create(o,a){if(a){const c=a.factories.slice();o=o.concat(c)}return new t(o)}static extend(o){return{provide:t,useFactory:a=>t.create(o,a||_D()),deps:[[t,new Ln,new _n]]}}find(o){const a=this.factories.find(c=>c.supports(o));if(a)return a;throw new Ve(901,!1)}}return(e=t).\u0275prov=lr({token:e,providedIn:"root",factory:_D}),t})();const YM=oD(null,"core",[]);let ZM=(()=>{var e;class t{constructor(o){}}return(e=t).\u0275fac=function(o){return new(o||e)(U(Id))},e.\u0275mod=sl({type:e}),e.\u0275inj=wi({}),t})();function wP(e){return"boolean"==typeof e?e:null!=e&&"false"!==e}function RP(e){const t=re(null);try{return e()}finally{re(t)}}function kP(e,t){const r=Jn(e),o=t.elementInjector||Lo();return new bh(r).create(o,t.projectableNodes,t.hostElement,t.environmentInjector)}function FP(e){const t=Jn(e);if(!t)return null;const r=new bh(t);return{get selector(){return r.selector},get type(){return r.componentType},get inputs(){return r.inputs},get outputs(){return r.outputs},get ngContentSelectors(){return r.ngContentSelectors},get isStandalone(){return t.standalone},get isSignal(){return t.signals}}}},7440:(En,bt,j)=>{"use strict";j.d(bt,{MW:()=>$e,Wp:()=>ut,XU:()=>Oe,gL:()=>X});var g=j(2214),d=j(4438),ge=j(3586);class Oe{constructor(je){return je}}class X{constructor(){return(0,g.Dk)()}}const Ze=new d.nKC("angularfire2._apps"),Je={provide:Oe,useFactory:function re(Me){return Me&&1===Me.length?Me[0]:new Oe((0,g.Sx)())},deps:[[new d.Xx1,Ze]]},De={provide:X,deps:[[new d.Xx1,Ze]]};function _e(Me){return(je,Ke)=>{const Ct=Ke.get(d.Agw);(0,g.KO)("angularfire",ge.xv.full,"core"),(0,g.KO)("angularfire",ge.xv.full,"app"),(0,g.KO)("angular",d.xvI.full,Ct.toString());const Ot=je.runOutsideAngular(()=>Me(Ke));return new Oe(Ot)}}function $e(Me,...je){return(0,d.EmA)([Je,De,{provide:Ze,useFactory:_e(Me),multi:!0,deps:[d.SKi,d.zZn,ge.u0,...je]}])}const ut=(0,ge.S3)(g.Wp,!0)},8737:(En,bt,j)=>{"use strict";j.d(bt,{Nj:()=>qa,DF:()=>Al,eJ:()=>Hu,xI:()=>ag,_q:()=>Cl,x9:()=>qu,kQ:()=>Fc});var g=j(3586),d=j(4438),ge=j(7440),Oe=j(2214),X=j(467),Ie=j(7852),re=j(1076),Ze=j(8041),Je=j(1635),De=j(1362);const Mt=function ut(){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."}},mt=new re.FA("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."}),Me=new Ze.Vy("@firebase/auth");function Ke(E,...h){Me.logLevel<=Ze.$b.ERROR&&Me.error(`Auth (${Ie.MF}): ${E}`,...h)}function Ct(E,...h){throw Zt(E,...h)}function Ot(E,...h){return Zt(E,...h)}function He(E,h,v){const b=Object.assign(Object.assign({},Mt()),{[h]:v});return new re.FA("auth","Firebase",b).create(h,{appName:E.name})}function Tt(E){return He(E,"operation-not-supported-in-this-environment","Operations that alter the current user are not supported in conjunction with FirebaseServerApp")}function Zt(E,...h){if("string"!=typeof E){const v=h[0],b=[...h.slice(1)];return b[0]&&(b[0].appName=E.name),E._errorFactory.create(v,...b)}return mt.create(E,...h)}function Dt(E,h,...v){if(!E)throw Zt(h,...v)}function Be(E){const h="INTERNAL ASSERTION FAILED: "+E;throw Ke(h),new Error(h)}function rn(E,h){E||Be(h)}function pt(){var E;return typeof self<"u"&&(null===(E=self.location)||void 0===E?void 0:E.href)||""}function B(){var E;return typeof self<"u"&&(null===(E=self.location)||void 0===E?void 0:E.protocol)||null}class de{constructor(h,v){this.shortDelay=h,this.longDelay=v,rn(v>h,"Short delay should be less than long delay!"),this.isMobile=(0,re.jZ)()||(0,re.lV)()}get(){return function W(){return!(typeof navigator<"u"&&navigator&&"onLine"in navigator&&"boolean"==typeof navigator.onLine&&(function Ee(){return"http:"===B()||"https:"===B()}()||(0,re.sr)()||"connection"in navigator))||navigator.onLine}()?this.isMobile?this.longDelay:this.shortDelay:Math.min(5e3,this.shortDelay)}}function ae(E,h){rn(E.emulator,"Emulator should always be set here");const{url:v}=E.emulator;return h?`${v}${h.startsWith("/")?h.slice(1):h}`:v}class me{static initialize(h,v,b){this.fetchImpl=h,v&&(this.headersImpl=v),b&&(this.responseImpl=b)}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 Be("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 Be("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 Be("Could not find Response implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}}const Ce={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"},at=new de(3e4,6e4);function kt(E,h){return E.tenantId&&!h.tenantId?Object.assign(Object.assign({},h),{tenantId:E.tenantId}):h}function Bt(E,h,v,b){return vn.apply(this,arguments)}function vn(){return(vn=(0,X.A)(function*(E,h,v,b,q={}){return bn(E,q,(0,X.A)(function*(){let pe={},nt={};b&&("GET"===h?nt=b:pe={body:JSON.stringify(b)});const Pt=(0,re.Am)(Object.assign({key:E.config.apiKey},nt)).slice(1),on=yield E._getAdditionalHeaders();return on["Content-Type"]="application/json",E.languageCode&&(on["X-Firebase-Locale"]=E.languageCode),me.fetch()(yn(E,E.config.apiHost,v,Pt),Object.assign({method:h,headers:on,referrerPolicy:"no-referrer"},pe))}))})).apply(this,arguments)}function bn(E,h,v){return $n.apply(this,arguments)}function $n(){return($n=(0,X.A)(function*(E,h,v){E._canInitEmulator=!1;const b=Object.assign(Object.assign({},Ce),h);try{const q=new Yn(E),pe=yield Promise.race([v(),q.promise]);q.clearNetworkTimeout();const nt=yield pe.json();if("needConfirmation"in nt)throw Ve(E,"account-exists-with-different-credential",nt);if(pe.ok&&!("errorMessage"in nt))return nt;{const Pt=pe.ok?nt.errorMessage:nt.error.message,[on,Dn]=Pt.split(" : ");if("FEDERATED_USER_ID_ALREADY_LINKED"===on)throw Ve(E,"credential-already-in-use",nt);if("EMAIL_EXISTS"===on)throw Ve(E,"email-already-in-use",nt);if("USER_DISABLED"===on)throw Ve(E,"user-disabled",nt);const Xn=b[on]||on.toLowerCase().replace(/[_\s]+/g,"-");if(Dn)throw He(E,Xn,Dn);Ct(E,Xn)}}catch(q){if(q instanceof re.g)throw q;Ct(E,"network-request-failed",{message:String(q)})}})).apply(this,arguments)}function qn(E,h,v,b){return er.apply(this,arguments)}function er(){return(er=(0,X.A)(function*(E,h,v,b,q={}){const pe=yield Bt(E,h,v,b,q);return"mfaPendingCredential"in pe&&Ct(E,"multi-factor-auth-required",{_serverResponse:pe}),pe})).apply(this,arguments)}function yn(E,h,v,b){const q=`${h}${v}?${b}`;return E.config.emulator?ae(E.config,q):`${E.config.apiScheme}://${q}`}function ir(E){switch(E){case"ENFORCE":return"ENFORCE";case"AUDIT":return"AUDIT";case"OFF":return"OFF";default:return"ENFORCEMENT_STATE_UNSPECIFIED"}}class Yn{constructor(h){this.auth=h,this.timer=null,this.promise=new Promise((v,b)=>{this.timer=setTimeout(()=>b(Ot(this.auth,"network-request-failed")),at.get())})}clearNetworkTimeout(){clearTimeout(this.timer)}}function Ve(E,h,v){const b={appName:E.name};v.email&&(b.email=v.email),v.phoneNumber&&(b.phoneNumber=v.phoneNumber);const q=Ot(E,h,b);return q.customData._tokenResponse=v,q}function Nt(E){return void 0!==E&&void 0!==E.enterprise}class Xt{constructor(h){if(this.siteKey="",this.recaptchaEnforcementState=[],void 0===h.recaptchaKey)throw new Error("recaptchaKey undefined");this.siteKey=h.recaptchaKey.split("/")[3],this.recaptchaEnforcementState=h.recaptchaEnforcementState}getProviderEnforcementState(h){if(!this.recaptchaEnforcementState||0===this.recaptchaEnforcementState.length)return null;for(const v of this.recaptchaEnforcementState)if(v.provider&&v.provider===h)return ir(v.enforcementState);return null}isProviderEnabled(h){return"ENFORCE"===this.getProviderEnforcementState(h)||"AUDIT"===this.getProviderEnforcementState(h)}}function gn(E,h){return mn.apply(this,arguments)}function mn(){return(mn=(0,X.A)(function*(E,h){return Bt(E,"GET","/v2/recaptchaConfig",kt(E,h))})).apply(this,arguments)}function Gt(){return(Gt=(0,X.A)(function*(E,h){return Bt(E,"POST","/v1/accounts:delete",h)})).apply(this,arguments)}function kr(E,h){return Mr.apply(this,arguments)}function Mr(){return(Mr=(0,X.A)(function*(E,h){return Bt(E,"POST","/v1/accounts:lookup",h)})).apply(this,arguments)}function _r(E){if(E)try{const h=new Date(Number(E));if(!isNaN(h.getTime()))return h.toUTCString()}catch{}}function Zn(){return(Zn=(0,X.A)(function*(E,h=!1){const v=(0,re.Ku)(E),b=yield v.getIdToken(h),q=Sr(b);Dt(q&&q.exp&&q.auth_time&&q.iat,v.auth,"internal-error");const pe="object"==typeof q.firebase?q.firebase:void 0,nt=null==pe?void 0:pe.sign_in_provider;return{claims:q,token:b,authTime:_r(wn(q.auth_time)),issuedAtTime:_r(wn(q.iat)),expirationTime:_r(wn(q.exp)),signInProvider:nt||null,signInSecondFactor:(null==pe?void 0:pe.sign_in_second_factor)||null}})).apply(this,arguments)}function wn(E){return 1e3*Number(E)}function Sr(E){const[h,v,b]=E.split(".");if(void 0===h||void 0===v||void 0===b)return Ke("JWT malformed, contained fewer than 3 sections"),null;try{const q=(0,re.u)(v);return q?JSON.parse(q):(Ke("Failed to decode base64 JWT payload"),null)}catch(q){return Ke("Caught error parsing JWT payload as JSON",null==q?void 0:q.toString()),null}}function tr(E){const h=Sr(E);return Dt(h,"internal-error"),Dt(typeof h.exp<"u","internal-error"),Dt(typeof h.iat<"u","internal-error"),Number(h.exp)-Number(h.iat)}function Ir(E,h){return Mi.apply(this,arguments)}function Mi(){return(Mi=(0,X.A)(function*(E,h,v=!1){if(v)return h;try{return yield h}catch(b){throw b instanceof re.g&&function Qr({code:E}){return"auth/user-disabled"===E||"auth/user-token-expired"===E}(b)&&E.auth.currentUser===E&&(yield E.auth.signOut()),b}})).apply(this,arguments)}class Yr{constructor(h){this.user=h,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(h){var v;if(h){const b=this.errorBackoff;return this.errorBackoff=Math.min(2*this.errorBackoff,96e4),b}{this.errorBackoff=3e4;const q=(null!==(v=this.user.stsTokenManager.expirationTime)&&void 0!==v?v:0)-Date.now()-3e5;return Math.max(0,q)}}schedule(h=!1){var v=this;if(!this.isRunning)return;const b=this.getInterval(h);this.timerId=setTimeout((0,X.A)(function*(){yield v.iteration()}),b)}iteration(){var h=this;return(0,X.A)(function*(){try{yield h.user.getIdToken(!0)}catch(v){return void("auth/network-request-failed"===(null==v?void 0:v.code)&&h.schedule(!0))}h.schedule()})()}}class oe{constructor(h,v){this.createdAt=h,this.lastLoginAt=v,this._initializeTime()}_initializeTime(){this.lastSignInTime=_r(this.lastLoginAt),this.creationTime=_r(this.createdAt)}_copy(h){this.createdAt=h.createdAt,this.lastLoginAt=h.lastLoginAt,this._initializeTime()}toJSON(){return{createdAt:this.createdAt,lastLoginAt:this.lastLoginAt}}}function ze(E){return ct.apply(this,arguments)}function ct(){return(ct=(0,X.A)(function*(E){var h;const v=E.auth,b=yield E.getIdToken(),q=yield Ir(E,kr(v,{idToken:b}));Dt(null==q?void 0:q.users.length,v,"internal-error");const pe=q.users[0];E._notifyReloadListener(pe);const nt=null!==(h=pe.providerUserInfo)&&void 0!==h&&h.length?Pe(pe.providerUserInfo):[],Pt=function he(E,h){return[...E.filter(b=>!h.some(q=>q.providerId===b.providerId)),...h]}(E.providerData,nt),Xn=!!E.isAnonymous&&!(E.email&&pe.passwordHash||null!=Pt&&Pt.length),jr={uid:pe.localId,displayName:pe.displayName||null,photoURL:pe.photoUrl||null,email:pe.email||null,emailVerified:pe.emailVerified||!1,phoneNumber:pe.phoneNumber||null,tenantId:pe.tenantId||null,providerData:Pt,metadata:new oe(pe.createdAt,pe.lastLoginAt),isAnonymous:Xn};Object.assign(E,jr)})).apply(this,arguments)}function ie(){return(ie=(0,X.A)(function*(E){const h=(0,re.Ku)(E);yield ze(h),yield h.auth._persistUserIfCurrent(h),h.auth._notifyListenersIfCurrent(h)})).apply(this,arguments)}function Pe(E){return E.map(h=>{var{providerId:v}=h,b=(0,Je.Tt)(h,["providerId"]);return{providerId:v,uid:b.rawId||"",displayName:b.displayName||null,email:b.email||null,phoneNumber:b.phoneNumber||null,photoURL:b.photoUrl||null}})}function rt(){return(rt=(0,X.A)(function*(E,h){const v=yield bn(E,{},(0,X.A)(function*(){const b=(0,re.Am)({grant_type:"refresh_token",refresh_token:h}).slice(1),{tokenApiHost:q,apiKey:pe}=E.config,nt=yn(E,q,"/v1/token",`key=${pe}`),Pt=yield E._getAdditionalHeaders();return Pt["Content-Type"]="application/x-www-form-urlencoded",me.fetch()(nt,{method:"POST",headers:Pt,body:b})}));return{accessToken:v.access_token,expiresIn:v.expires_in,refreshToken:v.refresh_token}})).apply(this,arguments)}function Sn(){return(Sn=(0,X.A)(function*(E,h){return Bt(E,"POST","/v2/accounts:revokeToken",kt(E,h))})).apply(this,arguments)}class Wn{constructor(){this.refreshToken=null,this.accessToken=null,this.expirationTime=null}get isExpired(){return!this.expirationTime||Date.now()>this.expirationTime-3e4}updateFromServerResponse(h){Dt(h.idToken,"internal-error"),Dt(typeof h.idToken<"u","internal-error"),Dt(typeof h.refreshToken<"u","internal-error");const v="expiresIn"in h&&typeof h.expiresIn<"u"?Number(h.expiresIn):tr(h.idToken);this.updateTokensAndExpiration(h.idToken,h.refreshToken,v)}updateFromIdToken(h){Dt(0!==h.length,"internal-error");const v=tr(h);this.updateTokensAndExpiration(h,null,v)}getToken(h,v=!1){var b=this;return(0,X.A)(function*(){return v||!b.accessToken||b.isExpired?(Dt(b.refreshToken,h,"user-token-expired"),b.refreshToken?(yield b.refresh(h,b.refreshToken),b.accessToken):null):b.accessToken})()}clearRefreshToken(){this.refreshToken=null}refresh(h,v){var b=this;return(0,X.A)(function*(){const{accessToken:q,refreshToken:pe,expiresIn:nt}=yield function Et(E,h){return rt.apply(this,arguments)}(h,v);b.updateTokensAndExpiration(q,pe,Number(nt))})()}updateTokensAndExpiration(h,v,b){this.refreshToken=v||null,this.accessToken=h||null,this.expirationTime=Date.now()+1e3*b}static fromJSON(h,v){const{refreshToken:b,accessToken:q,expirationTime:pe}=v,nt=new Wn;return b&&(Dt("string"==typeof b,"internal-error",{appName:h}),nt.refreshToken=b),q&&(Dt("string"==typeof q,"internal-error",{appName:h}),nt.accessToken=q),pe&&(Dt("number"==typeof pe,"internal-error",{appName:h}),nt.expirationTime=pe),nt}toJSON(){return{refreshToken:this.refreshToken,accessToken:this.accessToken,expirationTime:this.expirationTime}}_assign(h){this.accessToken=h.accessToken,this.refreshToken=h.refreshToken,this.expirationTime=h.expirationTime}_clone(){return Object.assign(new Wn,this.toJSON())}_performRefresh(){return Be("not implemented")}}function gr(E,h){Dt("string"==typeof E||typeof E>"u","internal-error",{appName:h})}class ur{constructor(h){var{uid:v,auth:b,stsTokenManager:q}=h,pe=(0,Je.Tt)(h,["uid","auth","stsTokenManager"]);this.providerId="firebase",this.proactiveRefresh=new Yr(this),this.reloadUserInfo=null,this.reloadListener=null,this.uid=v,this.auth=b,this.stsTokenManager=q,this.accessToken=q.accessToken,this.displayName=pe.displayName||null,this.email=pe.email||null,this.emailVerified=pe.emailVerified||!1,this.phoneNumber=pe.phoneNumber||null,this.photoURL=pe.photoURL||null,this.isAnonymous=pe.isAnonymous||!1,this.tenantId=pe.tenantId||null,this.providerData=pe.providerData?[...pe.providerData]:[],this.metadata=new oe(pe.createdAt||void 0,pe.lastLoginAt||void 0)}getIdToken(h){var v=this;return(0,X.A)(function*(){const b=yield Ir(v,v.stsTokenManager.getToken(v.auth,h));return Dt(b,v.auth,"internal-error"),v.accessToken!==b&&(v.accessToken=b,yield v.auth._persistUserIfCurrent(v),v.auth._notifyListenersIfCurrent(v)),b})()}getIdTokenResult(h){return function ni(E){return Zn.apply(this,arguments)}(this,h)}reload(){return function Xe(E){return ie.apply(this,arguments)}(this)}_assign(h){this!==h&&(Dt(this.uid===h.uid,this.auth,"internal-error"),this.displayName=h.displayName,this.photoURL=h.photoURL,this.email=h.email,this.emailVerified=h.emailVerified,this.phoneNumber=h.phoneNumber,this.isAnonymous=h.isAnonymous,this.tenantId=h.tenantId,this.providerData=h.providerData.map(v=>Object.assign({},v)),this.metadata._copy(h.metadata),this.stsTokenManager._assign(h.stsTokenManager))}_clone(h){const v=new ur(Object.assign(Object.assign({},this),{auth:h,stsTokenManager:this.stsTokenManager._clone()}));return v.metadata._copy(this.metadata),v}_onReload(h){Dt(!this.reloadListener,this.auth,"internal-error"),this.reloadListener=h,this.reloadUserInfo&&(this._notifyReloadListener(this.reloadUserInfo),this.reloadUserInfo=null)}_notifyReloadListener(h){this.reloadListener?this.reloadListener(h):this.reloadUserInfo=h}_startProactiveRefresh(){this.proactiveRefresh._start()}_stopProactiveRefresh(){this.proactiveRefresh._stop()}_updateTokensIfNecessary(h,v=!1){var b=this;return(0,X.A)(function*(){let q=!1;h.idToken&&h.idToken!==b.stsTokenManager.accessToken&&(b.stsTokenManager.updateFromServerResponse(h),q=!0),v&&(yield ze(b)),yield b.auth._persistUserIfCurrent(b),q&&b.auth._notifyListenersIfCurrent(b)})()}delete(){var h=this;return(0,X.A)(function*(){if((0,Ie.xZ)(h.auth.app))return Promise.reject(Tt(h.auth));const v=yield h.getIdToken();return yield Ir(h,function Jt(E,h){return Gt.apply(this,arguments)}(h.auth,{idToken:v})),h.stsTokenManager.clearRefreshToken(),h.auth.signOut()})()}toJSON(){return Object.assign(Object.assign({uid:this.uid,email:this.email||void 0,emailVerified:this.emailVerified,displayName:this.displayName||void 0,isAnonymous:this.isAnonymous,photoURL:this.photoURL||void 0,phoneNumber:this.phoneNumber||void 0,tenantId:this.tenantId||void 0,providerData:this.providerData.map(h=>Object.assign({},h)),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(h,v){var b,q,pe,nt,Pt,on,Dn,Xn;const jr=null!==(b=v.displayName)&&void 0!==b?b:void 0,Oo=null!==(q=v.email)&&void 0!==q?q:void 0,Zi=null!==(pe=v.phoneNumber)&&void 0!==pe?pe:void 0,sa=null!==(nt=v.photoURL)&&void 0!==nt?nt:void 0,Wd=null!==(Pt=v.tenantId)&&void 0!==Pt?Pt:void 0,ou=null!==(on=v._redirectEventId)&&void 0!==on?on:void 0,Kd=null!==(Dn=v.createdAt)&&void 0!==Dn?Dn:void 0,Yu=null!==(Xn=v.lastLoginAt)&&void 0!==Xn?Xn:void 0,{uid:Zu,emailVerified:Ju,isAnonymous:Af,providerData:su,stsTokenManager:Cf}=v;Dt(Zu&&Cf,h,"internal-error");const qd=Wn.fromJSON(this.name,Cf);Dt("string"==typeof Zu,h,"internal-error"),gr(jr,h.name),gr(Oo,h.name),Dt("boolean"==typeof Ju,h,"internal-error"),Dt("boolean"==typeof Af,h,"internal-error"),gr(Zi,h.name),gr(sa,h.name),gr(Wd,h.name),gr(ou,h.name),gr(Kd,h.name),gr(Yu,h.name);const Xd=new ur({uid:Zu,auth:h,email:Oo,emailVerified:Ju,displayName:jr,isAnonymous:Af,photoURL:sa,phoneNumber:Zi,tenantId:Wd,stsTokenManager:qd,createdAt:Kd,lastLoginAt:Yu});return su&&Array.isArray(su)&&(Xd.providerData=su.map(Qd=>Object.assign({},Qd))),ou&&(Xd._redirectEventId=ou),Xd}static _fromIdTokenResponse(h,v,b=!1){return(0,X.A)(function*(){const q=new Wn;q.updateFromServerResponse(v);const pe=new ur({uid:v.localId,auth:h,stsTokenManager:q,isAnonymous:b});return yield ze(pe),pe})()}static _fromGetAccountInfoResponse(h,v,b){return(0,X.A)(function*(){const q=v.users[0];Dt(void 0!==q.localId,"internal-error");const pe=void 0!==q.providerUserInfo?Pe(q.providerUserInfo):[],nt=!(q.email&&q.passwordHash||null!=pe&&pe.length),Pt=new Wn;Pt.updateFromIdToken(b);const on=new ur({uid:q.localId,auth:h,stsTokenManager:Pt,isAnonymous:nt}),Dn={uid:q.localId,displayName:q.displayName||null,photoURL:q.photoUrl||null,email:q.email||null,emailVerified:q.emailVerified||!1,phoneNumber:q.phoneNumber||null,tenantId:q.tenantId||null,providerData:pe,metadata:new oe(q.createdAt,q.lastLoginAt),isAnonymous:!(q.email&&q.passwordHash||null!=pe&&pe.length)};return Object.assign(on,Dn),on})()}}const ri=new Map;function xn(E){rn(E instanceof Function,"Expected a class definition");let h=ri.get(E);return h?(rn(h instanceof E,"Instance stored in cache mismatched with class"),h):(h=new E,ri.set(E,h),h)}const yr=(()=>{class E{constructor(){this.type="NONE",this.storage={}}_isAvailable(){return(0,X.A)(function*(){return!0})()}_set(v,b){var q=this;return(0,X.A)(function*(){q.storage[v]=b})()}_get(v){var b=this;return(0,X.A)(function*(){const q=b.storage[v];return void 0===q?null:q})()}_remove(v){var b=this;return(0,X.A)(function*(){delete b.storage[v]})()}_addListener(v,b){}_removeListener(v,b){}}return E.type="NONE",E})();function Ei(E,h,v){return`firebase:${E}:${h}:${v}`}class ii{constructor(h,v,b){this.persistence=h,this.auth=v,this.userKey=b;const{config:q,name:pe}=this.auth;this.fullUserKey=Ei(this.userKey,q.apiKey,pe),this.fullPersistenceKey=Ei("persistence",q.apiKey,pe),this.boundEventHandler=v._onStorageEvent.bind(v),this.persistence._addListener(this.fullUserKey,this.boundEventHandler)}setCurrentUser(h){return this.persistence._set(this.fullUserKey,h.toJSON())}getCurrentUser(){var h=this;return(0,X.A)(function*(){const v=yield h.persistence._get(h.fullUserKey);return v?ur._fromJSON(h.auth,v):null})()}removeCurrentUser(){return this.persistence._remove(this.fullUserKey)}savePersistenceForRedirect(){return this.persistence._set(this.fullPersistenceKey,this.persistence.type)}setPersistence(h){var v=this;return(0,X.A)(function*(){if(v.persistence===h)return;const b=yield v.getCurrentUser();return yield v.removeCurrentUser(),v.persistence=h,b?v.setCurrentUser(b):void 0})()}delete(){this.persistence._removeListener(this.fullUserKey,this.boundEventHandler)}static create(h,v,b="authUser"){return(0,X.A)(function*(){if(!v.length)return new ii(xn(yr),h,b);const q=(yield Promise.all(v.map(function(){var Dn=(0,X.A)(function*(Xn){if(yield Xn._isAvailable())return Xn});return function(Xn){return Dn.apply(this,arguments)}}()))).filter(Dn=>Dn);let pe=q[0]||xn(yr);const nt=Ei(b,h.config.apiKey,h.name);let Pt=null;for(const Dn of v)try{const Xn=yield Dn._get(nt);if(Xn){const jr=ur._fromJSON(h,Xn);Dn!==pe&&(Pt=jr),pe=Dn;break}}catch{}const on=q.filter(Dn=>Dn._shouldAllowMigration);return pe._shouldAllowMigration&&on.length?(pe=on[0],Pt&&(yield pe._set(nt,Pt.toJSON())),yield Promise.all(v.map(function(){var Dn=(0,X.A)(function*(Xn){if(Xn!==pe)try{yield Xn._remove(nt)}catch{}});return function(Xn){return Dn.apply(this,arguments)}}())),new ii(pe,h,b)):new ii(pe,h,b)})()}}function pi(E){const h=E.toLowerCase();if(h.includes("opera/")||h.includes("opr/")||h.includes("opios/"))return"Opera";if(wi(h))return"IEMobile";if(h.includes("msie")||h.includes("trident/"))return"IE";if(h.includes("edge/"))return"Edge";if(Ui(h))return"Firefox";if(h.includes("silk/"))return"Silk";if(St(h))return"Blackberry";if(lt(h))return"Webos";if(lr(h))return"Safari";if((h.includes("chrome/")||Xi(h))&&!h.includes("edge/"))return"Chrome";if(gi(h))return"Android";{const b=E.match(/([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/);if(2===(null==b?void 0:b.length))return b[1]}return"Other"}function Ui(E=(0,re.ZQ)()){return/firefox\//i.test(E)}function lr(E=(0,re.ZQ)()){const h=E.toLowerCase();return h.includes("safari/")&&!h.includes("chrome/")&&!h.includes("crios/")&&!h.includes("android")}function Xi(E=(0,re.ZQ)()){return/crios\//i.test(E)}function wi(E=(0,re.ZQ)()){return/iemobile/i.test(E)}function gi(E=(0,re.ZQ)()){return/android/i.test(E)}function St(E=(0,re.ZQ)()){return/blackberry/i.test(E)}function lt(E=(0,re.ZQ)()){return/webos/i.test(E)}function Ut(E=(0,re.ZQ)()){return/iphone|ipad|ipod/i.test(E)||/macintosh/i.test(E)&&/mobile/i.test(E)}function Z(E=(0,re.ZQ)()){return Ut(E)||gi(E)||lt(E)||St(E)||/windows phone/i.test(E)||wi(E)}function Q(E,h=[]){let v;switch(E){case"Browser":v=pi((0,re.ZQ)());break;case"Worker":v=`${pi((0,re.ZQ)())}-${E}`;break;default:v=E}const b=h.length?h.join(","):"FirebaseCore-web";return`${v}/JsCore/${Ie.MF}/${b}`}class Se{constructor(h){this.auth=h,this.queue=[]}pushCallback(h,v){const b=pe=>new Promise((nt,Pt)=>{try{nt(h(pe))}catch(on){Pt(on)}});b.onAbort=v,this.queue.push(b);const q=this.queue.length-1;return()=>{this.queue[q]=()=>Promise.resolve()}}runMiddleware(h){var v=this;return(0,X.A)(function*(){if(v.auth.currentUser===h)return;const b=[];try{for(const q of v.queue)yield q(h),q.onAbort&&b.push(q.onAbort)}catch(q){b.reverse();for(const pe of b)try{pe()}catch{}throw v.auth._errorFactory.create("login-blocked",{originalMessage:null==q?void 0:q.message})}})()}}function Wt(){return(Wt=(0,X.A)(function*(E,h={}){return Bt(E,"GET","/v2/passwordPolicy",kt(E,h))})).apply(this,arguments)}class Pn{constructor(h){var v,b,q,pe;const nt=h.customStrengthOptions;this.customStrengthOptions={},this.customStrengthOptions.minPasswordLength=null!==(v=nt.minPasswordLength)&&void 0!==v?v:6,nt.maxPasswordLength&&(this.customStrengthOptions.maxPasswordLength=nt.maxPasswordLength),void 0!==nt.containsLowercaseCharacter&&(this.customStrengthOptions.containsLowercaseLetter=nt.containsLowercaseCharacter),void 0!==nt.containsUppercaseCharacter&&(this.customStrengthOptions.containsUppercaseLetter=nt.containsUppercaseCharacter),void 0!==nt.containsNumericCharacter&&(this.customStrengthOptions.containsNumericCharacter=nt.containsNumericCharacter),void 0!==nt.containsNonAlphanumericCharacter&&(this.customStrengthOptions.containsNonAlphanumericCharacter=nt.containsNonAlphanumericCharacter),this.enforcementState=h.enforcementState,"ENFORCEMENT_STATE_UNSPECIFIED"===this.enforcementState&&(this.enforcementState="OFF"),this.allowedNonAlphanumericCharacters=null!==(q=null===(b=h.allowedNonAlphanumericCharacters)||void 0===b?void 0:b.join(""))&&void 0!==q?q:"",this.forceUpgradeOnSignin=null!==(pe=h.forceUpgradeOnSignin)&&void 0!==pe&&pe,this.schemaVersion=h.schemaVersion}validatePassword(h){var v,b,q,pe,nt,Pt;const on={isValid:!0,passwordPolicy:this};return this.validatePasswordLengthOptions(h,on),this.validatePasswordCharacterOptions(h,on),on.isValid&&(on.isValid=null===(v=on.meetsMinPasswordLength)||void 0===v||v),on.isValid&&(on.isValid=null===(b=on.meetsMaxPasswordLength)||void 0===b||b),on.isValid&&(on.isValid=null===(q=on.containsLowercaseLetter)||void 0===q||q),on.isValid&&(on.isValid=null===(pe=on.containsUppercaseLetter)||void 0===pe||pe),on.isValid&&(on.isValid=null===(nt=on.containsNumericCharacter)||void 0===nt||nt),on.isValid&&(on.isValid=null===(Pt=on.containsNonAlphanumericCharacter)||void 0===Pt||Pt),on}validatePasswordLengthOptions(h,v){const b=this.customStrengthOptions.minPasswordLength,q=this.customStrengthOptions.maxPasswordLength;b&&(v.meetsMinPasswordLength=h.length>=b),q&&(v.meetsMaxPasswordLength=h.length<=q)}validatePasswordCharacterOptions(h,v){let b;this.updatePasswordCharacterOptionsStatuses(v,!1,!1,!1,!1);for(let q=0;q="a"&&b<="z",b>="A"&&b<="Z",b>="0"&&b<="9",this.allowedNonAlphanumericCharacters.includes(b))}updatePasswordCharacterOptionsStatuses(h,v,b,q,pe){this.customStrengthOptions.containsLowercaseLetter&&(h.containsLowercaseLetter||(h.containsLowercaseLetter=v)),this.customStrengthOptions.containsUppercaseLetter&&(h.containsUppercaseLetter||(h.containsUppercaseLetter=b)),this.customStrengthOptions.containsNumericCharacter&&(h.containsNumericCharacter||(h.containsNumericCharacter=q)),this.customStrengthOptions.containsNonAlphanumericCharacter&&(h.containsNonAlphanumericCharacter||(h.containsNonAlphanumericCharacter=pe))}}class Cr{constructor(h,v,b,q){this.app=h,this.heartbeatServiceProvider=v,this.appCheckServiceProvider=b,this.config=q,this.currentUser=null,this.emulatorConfig=null,this.operations=Promise.resolve(),this.authStateSubscription=new $i(this),this.idTokenSubscription=new $i(this),this.beforeStateQueue=new Se(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=mt,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=h.name,this.clientVersion=q.sdkClientVersion}_initializeWithPersistence(h,v){var b=this;return v&&(this._popupRedirectResolver=xn(v)),this._initializationPromise=this.queue((0,X.A)(function*(){var q,pe;if(!b._deleted&&(b.persistenceManager=yield ii.create(b,h),!b._deleted)){if(null!==(q=b._popupRedirectResolver)&&void 0!==q&&q._shouldInitProactively)try{yield b._popupRedirectResolver._initialize(b)}catch{}yield b.initializeCurrentUser(v),b.lastNotifiedUid=(null===(pe=b.currentUser)||void 0===pe?void 0:pe.uid)||null,!b._deleted&&(b._isInitialized=!0)}})),this._initializationPromise}_onStorageEvent(){var h=this;return(0,X.A)(function*(){if(h._deleted)return;const v=yield h.assertedPersistence.getCurrentUser();if(h.currentUser||v){if(h.currentUser&&v&&h.currentUser.uid===v.uid)return h._currentUser._assign(v),void(yield h.currentUser.getIdToken());yield h._updateCurrentUser(v,!0)}})()}initializeCurrentUserFromIdToken(h){var v=this;return(0,X.A)(function*(){try{const b=yield kr(v,{idToken:h}),q=yield ur._fromGetAccountInfoResponse(v,b,h);yield v.directlySetCurrentUser(q)}catch(b){console.warn("FirebaseServerApp could not login user with provided authIdToken: ",b),yield v.directlySetCurrentUser(null)}})()}initializeCurrentUser(h){var v=this;return(0,X.A)(function*(){var b;if((0,Ie.xZ)(v.app)){const Pt=v.app.settings.authIdToken;return Pt?new Promise(on=>{setTimeout(()=>v.initializeCurrentUserFromIdToken(Pt).then(on,on))}):v.directlySetCurrentUser(null)}const q=yield v.assertedPersistence.getCurrentUser();let pe=q,nt=!1;if(h&&v.config.authDomain){yield v.getOrInitRedirectPersistenceManager();const Pt=null===(b=v.redirectUser)||void 0===b?void 0:b._redirectEventId,on=null==pe?void 0:pe._redirectEventId,Dn=yield v.tryRedirectSignIn(h);(!Pt||Pt===on)&&null!=Dn&&Dn.user&&(pe=Dn.user,nt=!0)}if(!pe)return v.directlySetCurrentUser(null);if(!pe._redirectEventId){if(nt)try{yield v.beforeStateQueue.runMiddleware(pe)}catch(Pt){pe=q,v._popupRedirectResolver._overrideRedirectResult(v,()=>Promise.reject(Pt))}return pe?v.reloadAndSetCurrentUserOrClear(pe):v.directlySetCurrentUser(null)}return Dt(v._popupRedirectResolver,v,"argument-error"),yield v.getOrInitRedirectPersistenceManager(),v.redirectUser&&v.redirectUser._redirectEventId===pe._redirectEventId?v.directlySetCurrentUser(pe):v.reloadAndSetCurrentUserOrClear(pe)})()}tryRedirectSignIn(h){var v=this;return(0,X.A)(function*(){let b=null;try{b=yield v._popupRedirectResolver._completeRedirectFn(v,h,!0)}catch{yield v._setRedirectUser(null)}return b})()}reloadAndSetCurrentUserOrClear(h){var v=this;return(0,X.A)(function*(){try{yield ze(h)}catch(b){if("auth/network-request-failed"!==(null==b?void 0:b.code))return v.directlySetCurrentUser(null)}return v.directlySetCurrentUser(h)})()}useDeviceLanguage(){this.languageCode=function te(){if(typeof navigator>"u")return null;const E=navigator;return E.languages&&E.languages[0]||E.language||null}()}_delete(){var h=this;return(0,X.A)(function*(){h._deleted=!0})()}updateCurrentUser(h){var v=this;return(0,X.A)(function*(){if((0,Ie.xZ)(v.app))return Promise.reject(Tt(v));const b=h?(0,re.Ku)(h):null;return b&&Dt(b.auth.config.apiKey===v.config.apiKey,v,"invalid-user-token"),v._updateCurrentUser(b&&b._clone(v))})()}_updateCurrentUser(h,v=!1){var b=this;return(0,X.A)(function*(){if(!b._deleted)return h&&Dt(b.tenantId===h.tenantId,b,"tenant-id-mismatch"),v||(yield b.beforeStateQueue.runMiddleware(h)),b.queue((0,X.A)(function*(){yield b.directlySetCurrentUser(h),b.notifyAuthListeners()}))})()}signOut(){var h=this;return(0,X.A)(function*(){return(0,Ie.xZ)(h.app)?Promise.reject(Tt(h)):(yield h.beforeStateQueue.runMiddleware(null),(h.redirectPersistenceManager||h._popupRedirectResolver)&&(yield h._setRedirectUser(null)),h._updateCurrentUser(null,!0))})()}setPersistence(h){var v=this;return(0,Ie.xZ)(this.app)?Promise.reject(Tt(this)):this.queue((0,X.A)(function*(){yield v.assertedPersistence.setPersistence(xn(h))}))}_getRecaptchaConfig(){return null==this.tenantId?this._agentRecaptchaConfig:this._tenantRecaptchaConfigs[this.tenantId]}validatePassword(h){var v=this;return(0,X.A)(function*(){v._getPasswordPolicyInternal()||(yield v._updatePasswordPolicy());const b=v._getPasswordPolicyInternal();return b.schemaVersion!==v.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION?Promise.reject(v._errorFactory.create("unsupported-password-policy-schema-version",{})):b.validatePassword(h)})()}_getPasswordPolicyInternal(){return null===this.tenantId?this._projectPasswordPolicy:this._tenantPasswordPolicies[this.tenantId]}_updatePasswordPolicy(){var h=this;return(0,X.A)(function*(){const v=yield function it(E){return Wt.apply(this,arguments)}(h),b=new Pn(v);null===h.tenantId?h._projectPasswordPolicy=b:h._tenantPasswordPolicies[h.tenantId]=b})()}_getPersistence(){return this.assertedPersistence.persistence.type}_updateErrorMap(h){this._errorFactory=new re.FA("auth","Firebase",h())}onAuthStateChanged(h,v,b){return this.registerStateListener(this.authStateSubscription,h,v,b)}beforeAuthStateChanged(h,v){return this.beforeStateQueue.pushCallback(h,v)}onIdTokenChanged(h,v,b){return this.registerStateListener(this.idTokenSubscription,h,v,b)}authStateReady(){return new Promise((h,v)=>{if(this.currentUser)h();else{const b=this.onAuthStateChanged(()=>{b(),h()},v)}})}revokeAccessToken(h){var v=this;return(0,X.A)(function*(){if(v.currentUser){const b=yield v.currentUser.getIdToken(),q={providerId:"apple.com",tokenType:"ACCESS_TOKEN",token:h,idToken:b};null!=v.tenantId&&(q.tenantId=v.tenantId),yield function dn(E,h){return Sn.apply(this,arguments)}(v,q)}})()}toJSON(){var h;return{apiKey:this.config.apiKey,authDomain:this.config.authDomain,appName:this.name,currentUser:null===(h=this._currentUser)||void 0===h?void 0:h.toJSON()}}_setRedirectUser(h,v){var b=this;return(0,X.A)(function*(){const q=yield b.getOrInitRedirectPersistenceManager(v);return null===h?q.removeCurrentUser():q.setCurrentUser(h)})()}getOrInitRedirectPersistenceManager(h){var v=this;return(0,X.A)(function*(){if(!v.redirectPersistenceManager){const b=h&&xn(h)||v._popupRedirectResolver;Dt(b,v,"argument-error"),v.redirectPersistenceManager=yield ii.create(v,[xn(b._redirectPersistence)],"redirectUser"),v.redirectUser=yield v.redirectPersistenceManager.getCurrentUser()}return v.redirectPersistenceManager})()}_redirectUserForId(h){var v=this;return(0,X.A)(function*(){var b,q;return v._isInitialized&&(yield v.queue((0,X.A)(function*(){}))),(null===(b=v._currentUser)||void 0===b?void 0:b._redirectEventId)===h?v._currentUser:(null===(q=v.redirectUser)||void 0===q?void 0:q._redirectEventId)===h?v.redirectUser:null})()}_persistUserIfCurrent(h){var v=this;return(0,X.A)(function*(){if(h===v.currentUser)return v.queue((0,X.A)(function*(){return v.directlySetCurrentUser(h)}))})()}_notifyListenersIfCurrent(h){h===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 h,v;if(!this._isInitialized)return;this.idTokenSubscription.next(this.currentUser);const b=null!==(v=null===(h=this.currentUser)||void 0===h?void 0:h.uid)&&void 0!==v?v:null;this.lastNotifiedUid!==b&&(this.lastNotifiedUid=b,this.authStateSubscription.next(this.currentUser))}registerStateListener(h,v,b,q){if(this._deleted)return()=>{};const pe="function"==typeof v?v:v.next.bind(v);let nt=!1;const Pt=this._isInitialized?Promise.resolve():this._initializationPromise;if(Dt(Pt,this,"internal-error"),Pt.then(()=>{nt||pe(this.currentUser)}),"function"==typeof v){const on=h.addObserver(v,b,q);return()=>{nt=!0,on()}}{const on=h.addObserver(v);return()=>{nt=!0,on()}}}directlySetCurrentUser(h){var v=this;return(0,X.A)(function*(){v.currentUser&&v.currentUser!==h&&v._currentUser._stopProactiveRefresh(),h&&v.isProactiveRefreshEnabled&&h._startProactiveRefresh(),v.currentUser=h,h?yield v.assertedPersistence.setCurrentUser(h):yield v.assertedPersistence.removeCurrentUser()})()}queue(h){return this.operations=this.operations.then(h,h),this.operations}get assertedPersistence(){return Dt(this.persistenceManager,this,"internal-error"),this.persistenceManager}_logFramework(h){!h||this.frameworks.includes(h)||(this.frameworks.push(h),this.frameworks.sort(),this.clientVersion=Q(this.config.clientPlatform,this._getFrameworks()))}_getFrameworks(){return this.frameworks}_getAdditionalHeaders(){var h=this;return(0,X.A)(function*(){var v;const b={"X-Client-Version":h.clientVersion};h.app.options.appId&&(b["X-Firebase-gmpid"]=h.app.options.appId);const q=yield null===(v=h.heartbeatServiceProvider.getImmediate({optional:!0}))||void 0===v?void 0:v.getHeartbeatsHeader();q&&(b["X-Firebase-Client"]=q);const pe=yield h._getAppCheckToken();return pe&&(b["X-Firebase-AppCheck"]=pe),b})()}_getAppCheckToken(){var h=this;return(0,X.A)(function*(){var v;const b=yield null===(v=h.appCheckServiceProvider.getImmediate({optional:!0}))||void 0===v?void 0:v.getToken();return null!=b&&b.error&&function je(E,...h){Me.logLevel<=Ze.$b.WARN&&Me.warn(`Auth (${Ie.MF}): ${E}`,...h)}(`Error while retrieving App Check token: ${b.error}`),null==b?void 0:b.token})()}}function Hn(E){return(0,re.Ku)(E)}class $i{constructor(h){this.auth=h,this.observer=null,this.addObserver=(0,re.tD)(v=>this.observer=v)}get next(){return Dt(this.observer,this.auth,"internal-error"),this.observer.next.bind(this.observer)}}let Ai={loadJS:()=>(0,X.A)(function*(){throw new Error("Unable to load external scripts")})(),recaptchaV2Script:"",recaptchaEnterpriseScript:"",gapiScript:""};function xr(E){return Ai.loadJS(E)}function Si(E){return`__${E}${Math.floor(1e6*Math.random())}`}class oi{constructor(h){this.type="recaptcha-enterprise",this.auth=Hn(h)}verify(h="verify",v=!1){var b=this;return(0,X.A)(function*(){function pe(){return pe=(0,X.A)(function*(Pt){if(!v){if(null==Pt.tenantId&&null!=Pt._agentRecaptchaConfig)return Pt._agentRecaptchaConfig.siteKey;if(null!=Pt.tenantId&&void 0!==Pt._tenantRecaptchaConfigs[Pt.tenantId])return Pt._tenantRecaptchaConfigs[Pt.tenantId].siteKey}return new Promise(function(){var on=(0,X.A)(function*(Dn,Xn){gn(Pt,{clientType:"CLIENT_TYPE_WEB",version:"RECAPTCHA_ENTERPRISE"}).then(jr=>{if(void 0!==jr.recaptchaKey){const Oo=new Xt(jr);return null==Pt.tenantId?Pt._agentRecaptchaConfig=Oo:Pt._tenantRecaptchaConfigs[Pt.tenantId]=Oo,Dn(Oo.siteKey)}Xn(new Error("recaptcha Enterprise site key undefined"))}).catch(jr=>{Xn(jr)})});return function(Dn,Xn){return on.apply(this,arguments)}}())}),pe.apply(this,arguments)}function nt(Pt,on,Dn){const Xn=window.grecaptcha;Nt(Xn)?Xn.enterprise.ready(()=>{Xn.enterprise.execute(Pt,{action:h}).then(jr=>{on(jr)}).catch(()=>{on("NO_RECAPTCHA")})}):Dn(Error("No reCAPTCHA enterprise script loaded."))}return new Promise((Pt,on)=>{(function q(Pt){return pe.apply(this,arguments)})(b.auth).then(Dn=>{if(!v&&Nt(window.grecaptcha))nt(Dn,Pt,on);else{if(typeof window>"u")return void on(new Error("RecaptchaVerifier is only supported in browser"));let Xn=function xi(){return Ai.recaptchaEnterpriseScript}();0!==Xn.length&&(Xn+=Dn),xr(Xn).then(()=>{nt(Dn,Pt,on)}).catch(jr=>{on(jr)})}}).catch(Dn=>{on(Dn)})})})()}}function Nn(E,h,v){return kn.apply(this,arguments)}function kn(){return(kn=(0,X.A)(function*(E,h,v,b=!1){const q=new oi(E);let pe;try{pe=yield q.verify(v)}catch{pe=yield q.verify(v,!0)}const nt=Object.assign({},h);return Object.assign(nt,b?{captchaResp:pe}:{captchaResponse:pe}),Object.assign(nt,{clientType:"CLIENT_TYPE_WEB"}),Object.assign(nt,{recaptchaVersion:"RECAPTCHA_ENTERPRISE"}),nt})).apply(this,arguments)}function ko(E,h,v,b){return ei.apply(this,arguments)}function ei(){return ei=(0,X.A)(function*(E,h,v,b){var q;if(null!==(q=E._getRecaptchaConfig())&&void 0!==q&&q.isProviderEnabled("EMAIL_PASSWORD_PROVIDER")){const pe=yield Nn(E,h,v,"getOobCode"===v);return b(E,pe)}return b(E,h).catch(function(){var pe=(0,X.A)(function*(nt){if("auth/missing-recaptcha-token"===nt.code){console.log(`${v} is protected by reCAPTCHA Enterprise for this project. Automatically triggering the reCAPTCHA flow and restarting the flow.`);const Pt=yield Nn(E,h,v,"getOobCode"===v);return b(E,Pt)}return Promise.reject(nt)});return function(nt){return pe.apply(this,arguments)}}())}),ei.apply(this,arguments)}function Or(E){const h=E.indexOf(":");return h<0?"":E.substr(0,h+1)}function jn(E){if(!E)return null;const h=Number(E);return isNaN(h)?null:h}class Ao{constructor(h,v){this.providerId=h,this.signInMethod=v}toJSON(){return Be("not implemented")}_getIdTokenResponse(h){return Be("not implemented")}_linkToIdToken(h,v){return Be("not implemented")}_getReauthenticationResolver(h){return Be("not implemented")}}function S(E,h){return H.apply(this,arguments)}function H(){return(H=(0,X.A)(function*(E,h){return Bt(E,"POST","/v1/accounts:signUp",h)})).apply(this,arguments)}function fe(E,h){return qe.apply(this,arguments)}function qe(){return(qe=(0,X.A)(function*(E,h){return qn(E,"POST","/v1/accounts:signInWithPassword",kt(E,h))})).apply(this,arguments)}function Yt(){return(Yt=(0,X.A)(function*(E,h){return qn(E,"POST","/v1/accounts:signInWithEmailLink",kt(E,h))})).apply(this,arguments)}function Cn(){return(Cn=(0,X.A)(function*(E,h){return qn(E,"POST","/v1/accounts:signInWithEmailLink",kt(E,h))})).apply(this,arguments)}class Ln extends Ao{constructor(h,v,b,q=null){super("password",b),this._email=h,this._password=v,this._tenantId=q}static _fromEmailAndPassword(h,v){return new Ln(h,v,"password")}static _fromEmailAndCode(h,v,b=null){return new Ln(h,v,"emailLink",b)}toJSON(){return{email:this._email,password:this._password,signInMethod:this.signInMethod,tenantId:this._tenantId}}static fromJSON(h){const v="string"==typeof h?JSON.parse(h):h;if(null!=v&&v.email&&null!=v&&v.password){if("password"===v.signInMethod)return this._fromEmailAndPassword(v.email,v.password);if("emailLink"===v.signInMethod)return this._fromEmailAndCode(v.email,v.password,v.tenantId)}return null}_getIdTokenResponse(h){var v=this;return(0,X.A)(function*(){switch(v.signInMethod){case"password":return ko(h,{returnSecureToken:!0,email:v._email,password:v._password,clientType:"CLIENT_TYPE_WEB"},"signInWithPassword",fe);case"emailLink":return function Kt(E,h){return Yt.apply(this,arguments)}(h,{email:v._email,oobCode:v._password});default:Ct(h,"internal-error")}})()}_linkToIdToken(h,v){var b=this;return(0,X.A)(function*(){switch(b.signInMethod){case"password":return ko(h,{idToken:v,returnSecureToken:!0,email:b._email,password:b._password,clientType:"CLIENT_TYPE_WEB"},"signUpPassword",S);case"emailLink":return function _n(E,h){return Cn.apply(this,arguments)}(h,{idToken:v,email:b._email,oobCode:b._password});default:Ct(h,"internal-error")}})()}_getReauthenticationResolver(h){return this._getIdTokenResponse(h)}}function In(E,h){return br.apply(this,arguments)}function br(){return(br=(0,X.A)(function*(E,h){return qn(E,"POST","/v1/accounts:signInWithIdp",kt(E,h))})).apply(this,arguments)}class os{constructor(h){var v,b,q,pe,nt,Pt;const on=(0,re.I9)((0,re.hp)(h)),Dn=null!==(v=on.apiKey)&&void 0!==v?v:null,Xn=null!==(b=on.oobCode)&&void 0!==b?b:null,jr=function Do(E){switch(E){case"recoverEmail":return"RECOVER_EMAIL";case"resetPassword":return"PASSWORD_RESET";case"signIn":return"EMAIL_SIGNIN";case"verifyEmail":return"VERIFY_EMAIL";case"verifyAndChangeEmail":return"VERIFY_AND_CHANGE_EMAIL";case"revertSecondFactorAddition":return"REVERT_SECOND_FACTOR_ADDITION";default:return null}}(null!==(q=on.mode)&&void 0!==q?q:null);Dt(Dn&&Xn&&jr,"argument-error"),this.apiKey=Dn,this.operation=jr,this.code=Xn,this.continueUrl=null!==(pe=on.continueUrl)&&void 0!==pe?pe:null,this.languageCode=null!==(nt=on.languageCode)&&void 0!==nt?nt:null,this.tenantId=null!==(Pt=on.tenantId)&&void 0!==Pt?Pt:null}static parseLink(h){const v=function xa(E){const h=(0,re.I9)((0,re.hp)(E)).link,v=h?(0,re.I9)((0,re.hp)(h)).deep_link_id:null,b=(0,re.I9)((0,re.hp)(E)).deep_link_id;return(b?(0,re.I9)((0,re.hp)(b)).link:null)||b||v||h||E}(h);try{return new os(v)}catch{return null}}}let Pr=(()=>{class E{constructor(){this.providerId=E.PROVIDER_ID}static credential(v,b){return Ln._fromEmailAndPassword(v,b)}static credentialWithLink(v,b){const q=os.parseLink(b);return Dt(q,"argument-error"),Ln._fromEmailAndCode(v,q.code,q.tenantId)}}return E.PROVIDER_ID="password",E.EMAIL_PASSWORD_SIGN_IN_METHOD="password",E.EMAIL_LINK_SIGN_IN_METHOD="emailLink",E})();class oo{constructor(h){this.providerId=h,this.defaultLanguageCode=null,this.customParameters={}}setDefaultLanguage(h){this.defaultLanguageCode=h}setCustomParameters(h){return this.customParameters=h,this}getCustomParameters(){return this.customParameters}}class Us extends oo{constructor(){super(...arguments),this.scopes=[]}addScope(h){return this.scopes.includes(h)||this.scopes.push(h),this}getScopes(){return[...this.scopes]}}function Xo(E,h){return bo.apply(this,arguments)}function bo(){return(bo=(0,X.A)(function*(E,h){return qn(E,"POST","/v1/accounts:signUp",kt(E,h))})).apply(this,arguments)}class ji{constructor(h){this.user=h.user,this.providerId=h.providerId,this._tokenResponse=h._tokenResponse,this.operationType=h.operationType}static _fromIdTokenResponse(h,v,b,q=!1){return(0,X.A)(function*(){const pe=yield ur._fromIdTokenResponse(h,b,q),nt=da(b);return new ji({user:pe,providerId:nt,_tokenResponse:b,operationType:v})})()}static _forOperation(h,v,b){return(0,X.A)(function*(){yield h._updateTokensIfNecessary(b,!0);const q=da(b);return new ji({user:h,providerId:q,_tokenResponse:b,operationType:v})})()}}function da(E){return E.providerId?E.providerId:"phoneNumber"in E?"phone":null}class P extends re.g{constructor(h,v,b,q){var pe;super(v.code,v.message),this.operationType=b,this.user=q,Object.setPrototypeOf(this,P.prototype),this.customData={appName:h.name,tenantId:null!==(pe=h.tenantId)&&void 0!==pe?pe:void 0,_serverResponse:v.customData._serverResponse,operationType:b}}static _fromErrorAndOperation(h,v,b,q){return new P(h,v,b,q)}}function ce(E,h,v,b){return("reauthenticate"===h?v._getReauthenticationResolver(E):v._getIdTokenResponse(E)).catch(pe=>{throw"auth/multi-factor-auth-required"===pe.code?P._fromErrorAndOperation(E,pe,h,b):pe})}function rr(){return(rr=(0,X.A)(function*(E,h,v=!1){const b=yield Ir(E,h._linkToIdToken(E.auth,yield E.getIdToken()),v);return ji._forOperation(E,"link",b)})).apply(this,arguments)}function Qo(){return(Qo=(0,X.A)(function*(E,h,v=!1){const{auth:b}=E;if((0,Ie.xZ)(b.app))return Promise.reject(Tt(b));const q="reauthenticate";try{const pe=yield Ir(E,ce(b,q,h,E),v);Dt(pe.idToken,b,"internal-error");const nt=Sr(pe.idToken);Dt(nt,b,"internal-error");const{sub:Pt}=nt;return Dt(E.uid===Pt,b,"user-mismatch"),ji._forOperation(E,q,pe)}catch(pe){throw"auth/user-not-found"===(null==pe?void 0:pe.code)&&Ct(b,"user-mismatch"),pe}})).apply(this,arguments)}function Na(E,h){return vs.apply(this,arguments)}function vs(){return(vs=(0,X.A)(function*(E,h,v=!1){if((0,Ie.xZ)(E.app))return Promise.reject(Tt(E));const b="signIn",q=yield ce(E,b,h),pe=yield ji._fromIdTokenResponse(E,b,q);return v||(yield E._updateCurrentUser(pe.user)),pe})).apply(this,arguments)}function Oa(){return(Oa=(0,X.A)(function*(E,h){return Na(Hn(E),h)})).apply(this,arguments)}function Vl(E){return vr.apply(this,arguments)}function vr(){return(vr=(0,X.A)(function*(E){const h=Hn(E);h._getPasswordPolicyInternal()&&(yield h._updatePasswordPolicy())})).apply(this,arguments)}function ws(E,h,v){return Yo.apply(this,arguments)}function Yo(){return(Yo=(0,X.A)(function*(E,h,v){if((0,Ie.xZ)(E.app))return Promise.reject(Tt(E));const b=Hn(E),nt=yield ko(b,{returnSecureToken:!0,email:h,password:v,clientType:"CLIENT_TYPE_WEB"},"signUpPassword",Xo).catch(on=>{throw"auth/password-does-not-meet-requirements"===on.code&&Vl(E),on}),Pt=yield ji._fromIdTokenResponse(b,"signIn",nt);return yield b._updateCurrentUser(Pt.user),Pt})).apply(this,arguments)}function Ss(E,h,v){return(0,Ie.xZ)(E.app)?Promise.reject(Tt(E)):function Bs(E,h){return Oa.apply(this,arguments)}((0,re.Ku)(E),Pr.credential(h,v)).catch(function(){var b=(0,X.A)(function*(q){throw"auth/password-does-not-meet-requirements"===q.code&&Vl(E),q});return function(q){return b.apply(this,arguments)}}())}function ki(E,h,v,b){return(0,re.Ku)(E).onIdTokenChanged(h,v,b)}const Gs="__sak";class jl{constructor(h,v){this.storageRetriever=h,this.type=v}_isAvailable(){try{return this.storage?(this.storage.setItem(Gs,"1"),this.storage.removeItem(Gs),Promise.resolve(!0)):Promise.resolve(!1)}catch{return Promise.resolve(!1)}}_set(h,v){return this.storage.setItem(h,JSON.stringify(v)),Promise.resolve()}_get(h){const v=this.storage.getItem(h);return Promise.resolve(v?JSON.parse(v):null)}_remove(h){return this.storage.removeItem(h),Promise.resolve()}get storage(){return this.storageRetriever()}}const $a=(()=>{class E extends jl{constructor(){super(()=>window.localStorage,"LOCAL"),this.boundEventHandler=(v,b)=>this.onStorageEvent(v,b),this.listeners={},this.localCache={},this.pollTimer=null,this.safariLocalStorageNotSynced=function Lr(){const E=(0,re.ZQ)();return lr(E)||Ut(E)}()&&function Ne(){try{return!(!window||window===window.top)}catch{return!1}}(),this.fallbackToPolling=Z(),this._shouldAllowMigration=!0}forAllChangedKeys(v){for(const b of Object.keys(this.listeners)){const q=this.storage.getItem(b),pe=this.localCache[b];q!==pe&&v(b,pe,q)}}onStorageEvent(v,b=!1){if(!v.key)return void this.forAllChangedKeys((Pt,on,Dn)=>{this.notifyListeners(Pt,Dn)});const q=v.key;if(b?this.detachListener():this.stopPolling(),this.safariLocalStorageNotSynced){const Pt=this.storage.getItem(q);if(v.newValue!==Pt)null!==v.newValue?this.storage.setItem(q,v.newValue):this.storage.removeItem(q);else if(this.localCache[q]===v.newValue&&!b)return}const pe=()=>{const Pt=this.storage.getItem(q);!b&&this.localCache[q]===Pt||this.notifyListeners(q,Pt)},nt=this.storage.getItem(q);!function Y(){return(0,re.lT)()&&10===document.documentMode}()||nt===v.newValue||v.newValue===v.oldValue?pe():setTimeout(pe,10)}notifyListeners(v,b){this.localCache[v]=b;const q=this.listeners[v];if(q)for(const pe of Array.from(q))pe(b&&JSON.parse(b))}startPolling(){this.stopPolling(),this.pollTimer=setInterval(()=>{this.forAllChangedKeys((v,b,q)=>{this.onStorageEvent(new StorageEvent("storage",{key:v,oldValue:b,newValue:q}),!0)})},1e3)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}attachListener(){window.addEventListener("storage",this.boundEventHandler)}detachListener(){window.removeEventListener("storage",this.boundEventHandler)}_addListener(v,b){0===Object.keys(this.listeners).length&&(this.fallbackToPolling?this.startPolling():this.attachListener()),this.listeners[v]||(this.listeners[v]=new Set,this.localCache[v]=this.storage.getItem(v)),this.listeners[v].add(b)}_removeListener(v,b){this.listeners[v]&&(this.listeners[v].delete(b),0===this.listeners[v].size&&delete this.listeners[v]),0===Object.keys(this.listeners).length&&(this.detachListener(),this.stopPolling())}_set(v,b){var q=()=>super._set,pe=this;return(0,X.A)(function*(){yield q().call(pe,v,b),pe.localCache[v]=JSON.stringify(b)})()}_get(v){var b=()=>super._get,q=this;return(0,X.A)(function*(){const pe=yield b().call(q,v);return q.localCache[v]=JSON.stringify(pe),pe})()}_remove(v){var b=()=>super._remove,q=this;return(0,X.A)(function*(){yield b().call(q,v),delete q.localCache[v]})()}}return E.type="LOCAL",E})(),$o=(()=>{class E extends jl{constructor(){super(()=>window.sessionStorage,"SESSION")}_addListener(v,b){}_removeListener(v,b){}}return E.type="SESSION",E})();let Ks=(()=>{class E{constructor(v){this.eventTarget=v,this.handlersMap={},this.boundEventHandler=this.handleEvent.bind(this)}static _getInstance(v){const b=this.receivers.find(pe=>pe.isListeningto(v));if(b)return b;const q=new E(v);return this.receivers.push(q),q}isListeningto(v){return this.eventTarget===v}handleEvent(v){var b=this;return(0,X.A)(function*(){const q=v,{eventId:pe,eventType:nt,data:Pt}=q.data,on=b.handlersMap[nt];if(null==on||!on.size)return;q.ports[0].postMessage({status:"ack",eventId:pe,eventType:nt});const Dn=Array.from(on).map(function(){var jr=(0,X.A)(function*(Oo){return Oo(q.origin,Pt)});return function(Oo){return jr.apply(this,arguments)}}()),Xn=yield function ya(E){return Promise.all(E.map(function(){var h=(0,X.A)(function*(v){try{return{fulfilled:!0,value:yield v}}catch(b){return{fulfilled:!1,reason:b}}});return function(v){return h.apply(this,arguments)}}()))}(Dn);q.ports[0].postMessage({status:"done",eventId:pe,eventType:nt,response:Xn})})()}_subscribe(v,b){0===Object.keys(this.handlersMap).length&&this.eventTarget.addEventListener("message",this.boundEventHandler),this.handlersMap[v]||(this.handlersMap[v]=new Set),this.handlersMap[v].add(b)}_unsubscribe(v,b){this.handlersMap[v]&&b&&this.handlersMap[v].delete(b),(!b||0===this.handlersMap[v].size)&&delete this.handlersMap[v],0===Object.keys(this.handlersMap).length&&this.eventTarget.removeEventListener("message",this.boundEventHandler)}}return E.receivers=[],E})();function Vi(E="",h=10){let v="";for(let b=0;b{const Xn=Vi("",20);pe.port1.start();const jr=setTimeout(()=>{Dn(new Error("unsupported_event"))},b);Pt={messageChannel:pe,onMessage(Oo){const Zi=Oo;if(Zi.data.eventId===Xn)switch(Zi.data.status){case"ack":clearTimeout(jr),nt=setTimeout(()=>{Dn(new Error("timeout"))},3e3);break;case"done":clearTimeout(nt),on(Zi.data.response);break;default:clearTimeout(jr),clearTimeout(nt),Dn(new Error("invalid_response"))}}},q.handlers.add(Pt),pe.port1.addEventListener("message",Pt.onMessage),q.target.postMessage({eventType:h,eventId:Xn,data:v},[pe.port2])}).finally(()=>{Pt&&q.removeMessageHandler(Pt)})})()}}function Ur(){return window}function zl(){return typeof Ur().WorkerGlobalScope<"u"&&"function"==typeof Ur().importScripts}function Ia(){return(Ia=(0,X.A)(function*(){if(null==navigator||!navigator.serviceWorker)return null;try{return(yield navigator.serviceWorker.ready).active}catch{return null}})).apply(this,arguments)}const Gl="firebaseLocalStorageDb",Ea="firebaseLocalStorage",Mu="fbase_key";class Ba{constructor(h){this.request=h}toPromise(){return new Promise((h,v)=>{this.request.addEventListener("success",()=>{h(this.request.result)}),this.request.addEventListener("error",()=>{v(this.request.error)})})}}function ja(E,h){return E.transaction([Ea],h?"readwrite":"readonly").objectStore(Ea)}function mc(){const E=indexedDB.open(Gl,1);return new Promise((h,v)=>{E.addEventListener("error",()=>{v(E.error)}),E.addEventListener("upgradeneeded",()=>{const b=E.result;try{b.createObjectStore(Ea,{keyPath:Mu})}catch(q){v(q)}}),E.addEventListener("success",(0,X.A)(function*(){const b=E.result;b.objectStoreNames.contains(Ea)?h(b):(b.close(),yield function Gh(){const E=indexedDB.deleteDatabase(Gl);return new Ba(E).toPromise()}(),h(yield mc()))}))})}function qs(E,h,v){return Xs.apply(this,arguments)}function Xs(){return(Xs=(0,X.A)(function*(E,h,v){const b=ja(E,!0).put({[Mu]:h,value:v});return new Ba(b).toPromise()})).apply(this,arguments)}function Cd(){return(Cd=(0,X.A)(function*(E,h){const v=ja(E,!1).get(h),b=yield new Ba(v).toPromise();return void 0===b?null:b.value})).apply(this,arguments)}function Td(E,h){const v=ja(E,!0).delete(h);return new Ba(v).toPromise()}const Kh=(()=>{class E{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 v=this;return(0,X.A)(function*(){return v.db||(v.db=yield mc()),v.db})()}_withRetries(v){var b=this;return(0,X.A)(function*(){let q=0;for(;;)try{const pe=yield b._openDb();return yield v(pe)}catch(pe){if(q++>3)throw pe;b.db&&(b.db.close(),b.db=void 0)}})()}initializeServiceWorkerMessaging(){var v=this;return(0,X.A)(function*(){return zl()?v.initializeReceiver():v.initializeSender()})()}initializeReceiver(){var v=this;return(0,X.A)(function*(){v.receiver=Ks._getInstance(function Hl(){return zl()?self:null}()),v.receiver._subscribe("keyChanged",function(){var b=(0,X.A)(function*(q,pe){return{keyProcessed:(yield v._poll()).includes(pe.key)}});return function(q,pe){return b.apply(this,arguments)}}()),v.receiver._subscribe("ping",function(){var b=(0,X.A)(function*(q,pe){return["keyChanged"]});return function(q,pe){return b.apply(this,arguments)}}())})()}initializeSender(){var v=this;return(0,X.A)(function*(){var b,q;if(v.activeServiceWorker=yield function As(){return Ia.apply(this,arguments)}(),!v.activeServiceWorker)return;v.sender=new Su(v.activeServiceWorker);const pe=yield v.sender._send("ping",{},800);pe&&null!==(b=pe[0])&&void 0!==b&&b.fulfilled&&null!==(q=pe[0])&&void 0!==q&&q.value.includes("keyChanged")&&(v.serviceWorkerReceiverAvailable=!0)})()}notifyServiceWorker(v){var b=this;return(0,X.A)(function*(){if(b.sender&&b.activeServiceWorker&&function us(){var E;return(null===(E=null==navigator?void 0:navigator.serviceWorker)||void 0===E?void 0:E.controller)||null}()===b.activeServiceWorker)try{yield b.sender._send("keyChanged",{key:v},b.serviceWorkerReceiverAvailable?800:50)}catch{}})()}_isAvailable(){return(0,X.A)(function*(){try{if(!indexedDB)return!1;const v=yield mc();return yield qs(v,Gs,"1"),yield Td(v,Gs),!0}catch{}return!1})()}_withPendingWrite(v){var b=this;return(0,X.A)(function*(){b.pendingWrites++;try{yield v()}finally{b.pendingWrites--}})()}_set(v,b){var q=this;return(0,X.A)(function*(){return q._withPendingWrite((0,X.A)(function*(){return yield q._withRetries(pe=>qs(pe,v,b)),q.localCache[v]=b,q.notifyServiceWorker(v)}))})()}_get(v){var b=this;return(0,X.A)(function*(){const q=yield b._withRetries(pe=>function Ad(E,h){return Cd.apply(this,arguments)}(pe,v));return b.localCache[v]=q,q})()}_remove(v){var b=this;return(0,X.A)(function*(){return b._withPendingWrite((0,X.A)(function*(){return yield b._withRetries(q=>Td(q,v)),delete b.localCache[v],b.notifyServiceWorker(v)}))})()}_poll(){var v=this;return(0,X.A)(function*(){const b=yield v._withRetries(nt=>{const Pt=ja(nt,!1).getAll();return new Ba(Pt).toPromise()});if(!b)return[];if(0!==v.pendingWrites)return[];const q=[],pe=new Set;if(0!==b.length)for(const{fbase_key:nt,value:Pt}of b)pe.add(nt),JSON.stringify(v.localCache[nt])!==JSON.stringify(Pt)&&(v.notifyListeners(nt,Pt),q.push(nt));for(const nt of Object.keys(v.localCache))v.localCache[nt]&&!pe.has(nt)&&(v.notifyListeners(nt,null),q.push(nt));return q})()}notifyListeners(v,b){this.localCache[v]=b;const q=this.listeners[v];if(q)for(const pe of Array.from(q))pe(b)}startPolling(){var v=this;this.stopPolling(),this.pollTimer=setInterval((0,X.A)(function*(){return v._poll()}),800)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}_addListener(v,b){0===Object.keys(this.listeners).length&&this.startPolling(),this.listeners[v]||(this.listeners[v]=new Set,this._get(v)),this.listeners[v].add(b)}_removeListener(v,b){this.listeners[v]&&(this.listeners[v].delete(b),0===this.listeners[v].size&&delete this.listeners[v]),0===Object.keys(this.listeners).length&&this.stopPolling()}}return E.type="LOCAL",E})();Si("rcb"),new de(3e4,6e4);class So extends Ao{constructor(h){super("custom","custom"),this.params=h}_getIdTokenResponse(h){return In(h,this._buildIdpRequest())}_linkToIdToken(h,v){return In(h,this._buildIdpRequest(v))}_getReauthenticationResolver(h){return In(h,this._buildIdpRequest())}_buildIdpRequest(h){const v={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 h&&(v.idToken=h),v}}function Dd(E){return Na(E.auth,new So(E),E.bypassAuthState)}function vc(E){const{auth:h,user:v}=E;return Dt(v,h,"internal-error"),function eo(E,h){return Qo.apply(this,arguments)}(v,new So(E),E.bypassAuthState)}function _c(E){return Cs.apply(this,arguments)}function Cs(){return(Cs=(0,X.A)(function*(E){const{auth:h,user:v}=E;return Dt(v,h,"internal-error"),function On(E,h){return rr.apply(this,arguments)}(v,new So(E),E.bypassAuthState)})).apply(this,arguments)}class yc{constructor(h,v,b,q,pe=!1){this.auth=h,this.resolver=b,this.user=q,this.bypassAuthState=pe,this.pendingPromise=null,this.eventManager=null,this.filter=Array.isArray(v)?v:[v]}execute(){var h=this;return new Promise(function(){var v=(0,X.A)(function*(b,q){h.pendingPromise={resolve:b,reject:q};try{h.eventManager=yield h.resolver._initialize(h.auth),yield h.onExecution(),h.eventManager.registerConsumer(h)}catch(pe){h.reject(pe)}});return function(b,q){return v.apply(this,arguments)}}())}onAuthEvent(h){var v=this;return(0,X.A)(function*(){const{urlResponse:b,sessionId:q,postBody:pe,tenantId:nt,error:Pt,type:on}=h;if(Pt)return void v.reject(Pt);const Dn={auth:v.auth,requestUri:b,sessionId:q,tenantId:nt||void 0,postBody:pe||void 0,user:v.user,bypassAuthState:v.bypassAuthState};try{v.resolve(yield v.getIdpTask(on)(Dn))}catch(Xn){v.reject(Xn)}})()}onError(h){this.reject(h)}getIdpTask(h){switch(h){case"signInViaPopup":case"signInViaRedirect":return Dd;case"linkViaPopup":case"linkViaRedirect":return _c;case"reauthViaPopup":case"reauthViaRedirect":return vc;default:Ct(this.auth,"internal-error")}}resolve(h){rn(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.resolve(h),this.unregisterAndCleanUp()}reject(h){rn(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.reject(h),this.unregisterAndCleanUp()}unregisterAndCleanUp(){this.eventManager&&this.eventManager.unregisterConsumer(this),this.pendingPromise=null,this.cleanUp()}}new de(2e3,1e4);const Gn="pendingRedirect",pl=new Map;class wd extends yc{constructor(h,v,b=!1){super(h,["signInViaRedirect","linkViaRedirect","reauthViaRedirect","unknown"],v,void 0,b),this.eventId=null}execute(){var h=()=>super.execute,v=this;return(0,X.A)(function*(){let b=pl.get(v.auth._key());if(!b){try{const pe=(yield function Ic(E,h){return Ec.apply(this,arguments)}(v.resolver,v.auth))?yield h().call(v):null;b=()=>Promise.resolve(pe)}catch(q){b=()=>Promise.reject(q)}pl.set(v.auth._key(),b)}return v.bypassAuthState||pl.set(v.auth._key(),()=>Promise.resolve(null)),b()})()}onAuthEvent(h){var v=()=>super.onAuthEvent,b=this;return(0,X.A)(function*(){if("signInViaRedirect"===h.type)return v().call(b,h);if("unknown"!==h.type){if(h.eventId){const q=yield b.auth._redirectUserForId(h.eventId);if(q)return b.user=q,v().call(b,h);b.resolve(null)}}else b.resolve(null)})()}onExecution(){return(0,X.A)(function*(){})()}cleanUp(){}}function Ec(){return(Ec=(0,X.A)(function*(E,h){const v=function ml(E){return Ei(Gn,E.config.apiKey,E.name)}(h),b=function qh(E){return xn(E._redirectPersistence)}(E);if(!(yield b._isAvailable()))return!1;const q="true"===(yield b._get(v));return yield b._remove(v),q})).apply(this,arguments)}function gl(E,h){pl.set(E._key(),h)}function Nu(E,h){return Rd.apply(this,arguments)}function Rd(){return(Rd=(0,X.A)(function*(E,h,v=!1){if((0,Ie.xZ)(E.app))return Promise.reject(Tt(E));const b=Hn(E),q=function cs(E,h){return h?xn(h):(Dt(E._popupRedirectResolver,E,"argument-error"),E._popupRedirectResolver)}(b,h),nt=yield new wd(b,q,v).execute();return nt&&!v&&(delete nt.user._redirectEventId,yield b._persistUserIfCurrent(nt.user),yield b._setRedirectUser(null,h)),nt})).apply(this,arguments)}class ta{constructor(h){this.auth=h,this.cachedEventUids=new Set,this.consumers=new Set,this.queuedRedirectEvent=null,this.hasHandledPotentialRedirect=!1,this.lastProcessedEventTime=Date.now()}registerConsumer(h){this.consumers.add(h),this.queuedRedirectEvent&&this.isEventForConsumer(this.queuedRedirectEvent,h)&&(this.sendToConsumer(this.queuedRedirectEvent,h),this.saveEventToCache(this.queuedRedirectEvent),this.queuedRedirectEvent=null)}unregisterConsumer(h){this.consumers.delete(h)}onEvent(h){if(this.hasEventBeenHandled(h))return!1;let v=!1;return this.consumers.forEach(b=>{this.isEventForConsumer(h,b)&&(v=!0,this.sendToConsumer(h,b),this.saveEventToCache(h))}),this.hasHandledPotentialRedirect||!function na(E){switch(E.type){case"signInViaRedirect":case"linkViaRedirect":case"reauthViaRedirect":return!0;case"unknown":return Ts(E);default:return!1}}(h)||(this.hasHandledPotentialRedirect=!0,v||(this.queuedRedirectEvent=h,v=!0)),v}sendToConsumer(h,v){var b;if(h.error&&!Ts(h)){const q=(null===(b=h.error.code)||void 0===b?void 0:b.split("auth/")[1])||"internal-error";v.onError(Ot(this.auth,q))}else v.onAuthEvent(h)}isEventForConsumer(h,v){const b=null===v.eventId||!!h.eventId&&h.eventId===v.eventId;return v.filter.includes(h.type)&&b}hasEventBeenHandled(h){return Date.now()-this.lastProcessedEventTime>=6e5&&this.cachedEventUids.clear(),this.cachedEventUids.has(Cc(h))}saveEventToCache(h){this.cachedEventUids.add(Cc(h)),this.lastProcessedEventTime=Date.now()}}function Cc(E){return[E.type,E.eventId,E.sessionId,E.tenantId].filter(h=>h).join("-")}function Ts({type:E,error:h}){return"unknown"===E&&"auth/no-auth-event"===(null==h?void 0:h.code)}function Tc(){return(Tc=(0,X.A)(function*(E,h={}){return Bt(E,"GET","/v1/projects",h)})).apply(this,arguments)}const Md=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,Io=/^https?/;function Ou(){return Ou=(0,X.A)(function*(E){if(E.config.emulator)return;const{authorizedDomains:h}=yield function ng(E){return Tc.apply(this,arguments)}(E);for(const v of h)try{if(xd(v))return}catch{}Ct(E,"unauthorized-domain")}),Ou.apply(this,arguments)}function xd(E){const h=pt(),{protocol:v,hostname:b}=new URL(h);if(E.startsWith("chrome-extension://")){const nt=new URL(E);return""===nt.hostname&&""===b?"chrome-extension:"===v&&E.replace("chrome-extension://","")===h.replace("chrome-extension://",""):"chrome-extension:"===v&&nt.hostname===b}if(!Io.test(v))return!1;if(Md.test(E))return b===E;const q=E.replace(/\./g,"\\.");return new RegExp("^(.+\\."+q+"|"+q+")$","i").test(b)}const Dc=new de(3e4,6e4);function bc(){const E=Ur().___jsl;if(null!=E&&E.H)for(const h of Object.keys(E.H))if(E.H[h].r=E.H[h].r||[],E.H[h].L=E.H[h].L||[],E.H[h].r=[...E.H[h].L],E.CP)for(let v=0;v{var b,q,pe;function nt(){bc(),gapi.load("gapi.iframes",{callback:()=>{h(gapi.iframes.getContext())},ontimeout:()=>{bc(),v(Ot(E,"network-request-failed"))},timeout:Dc.get()})}if(null!==(q=null===(b=Ur().gapi)||void 0===b?void 0:b.iframes)&&void 0!==q&&q.Iframe)h(gapi.iframes.getContext());else{if(null===(pe=Ur().gapi)||void 0===pe||!pe.load){const Pt=Si("iframefcb");return Ur()[Pt]=()=>{gapi.load?nt():v(Ot(E,"network-request-failed"))},xr(`${function mi(){return Ai.gapiScript}()}?onload=${Pt}`).catch(on=>v(on))}nt()}}).catch(h=>{throw Da=null,h})}(E),Da}(E),v=Ur().gapi;return Dt(v,E,"internal-error"),h.open({where:document.body,url:fo(E),messageHandlersFilter:v.iframes.CROSS_ORIGIN_IFRAMES_FILTER,attributes:Fu,dontclear:!0},b=>new Promise(function(){var q=(0,X.A)(function*(pe,nt){yield b.restyle({setHideOnLeave:!1});const Pt=Ot(E,"network-request-failed"),on=Ur().setTimeout(()=>{nt(Pt)},Zh.get());function Dn(){Ur().clearTimeout(on),pe(b)}b.ping(Dn).then(Dn,()=>{nt(Pt)})});return function(pe,nt){return q.apply(this,arguments)}}()))}),yi.apply(this,arguments)}const rg={location:"yes",resizable:"yes",statusbar:"yes",toolbar:"no"};class Lu{constructor(h){this.window=h,this.associatedEvent=null}close(){if(this.window)try{this.window.close()}catch{}}}const og="__/auth/handler",$u="emulator/auth/handler",Sc=encodeURIComponent("fac");function ra(E,h,v,b,q,pe){return ia.apply(this,arguments)}function ia(){return(ia=(0,X.A)(function*(E,h,v,b,q,pe){Dt(E.config.authDomain,E,"auth-domain-config-required"),Dt(E.config.apiKey,E,"invalid-api-key");const nt={apiKey:E.config.apiKey,appName:E.name,authType:v,redirectUrl:b,v:Ie.MF,eventId:q};if(h instanceof oo){h.setDefaultLanguage(E.languageCode),nt.providerId=h.providerId||"",(0,re.Im)(h.getCustomParameters())||(nt.customParameters=JSON.stringify(h.getCustomParameters()));for(const[Xn,jr]of Object.entries(pe||{}))nt[Xn]=jr}if(h instanceof Us){const Xn=h.getScopes().filter(jr=>""!==jr);Xn.length>0&&(nt.scopes=Xn.join(","))}E.tenantId&&(nt.tid=E.tenantId);const Pt=nt;for(const Xn of Object.keys(Pt))void 0===Pt[Xn]&&delete Pt[Xn];const on=yield E._getAppCheckToken(),Dn=on?`#${Sc}=${encodeURIComponent(on)}`:"";return`${function Rc({config:E}){return E.emulator?ae(E,$u):`https://${E.authDomain}/${og}`}(E)}?${(0,re.Am)(Pt).slice(1)}${Dn}`})).apply(this,arguments)}const vl="webStorageSupport",_l=class tf{constructor(){this.eventManagers={},this.iframes={},this.originValidationPromises={},this._redirectPersistence=$o,this._completeRedirectFn=Nu,this._overrideRedirectResult=gl}_openPopup(h,v,b,q){var pe=this;return(0,X.A)(function*(){var nt;rn(null===(nt=pe.eventManagers[h._key()])||void 0===nt?void 0:nt.manager,"_initialize() not called before _openPopup()");const Pt=yield ra(h,v,b,pt(),q);return function Uu(E,h,v,b=500,q=600){const pe=Math.max((window.screen.availHeight-q)/2,0).toString(),nt=Math.max((window.screen.availWidth-b)/2,0).toString();let Pt="";const on=Object.assign(Object.assign({},rg),{width:b.toString(),height:q.toString(),top:pe,left:nt}),Dn=(0,re.ZQ)().toLowerCase();v&&(Pt=Xi(Dn)?"_blank":v),Ui(Dn)&&(h=h||"http://localhost",on.scrollbars="yes");const Xn=Object.entries(on).reduce((Oo,[Zi,sa])=>`${Oo}${Zi}=${sa},`,"");if(function Kn(E=(0,re.ZQ)()){var h;return Ut(E)&&!(null===(h=window.navigator)||void 0===h||!h.standalone)}(Dn)&&"_self"!==Pt)return function Ns(E,h){const v=document.createElement("a");v.href=E,v.target=h;const b=document.createEvent("MouseEvent");b.initMouseEvent("click",!0,!0,window,1,0,0,0,0,!1,!1,!1,!1,1,null),v.dispatchEvent(b)}(h||"",Pt),new Lu(null);const jr=window.open(h||"",Pt,Xn);Dt(jr,E,"popup-blocked");try{jr.focus()}catch{}return new Lu(jr)}(h,Pt,Vi())})()}_openRedirect(h,v,b,q){var pe=this;return(0,X.A)(function*(){return yield pe._originValidation(h),function _o(E){Ur().location.href=E}(yield ra(h,v,b,pt(),q)),new Promise(()=>{})})()}_initialize(h){const v=h._key();if(this.eventManagers[v]){const{manager:q,promise:pe}=this.eventManagers[v];return q?Promise.resolve(q):(rn(pe,"If manager is not set, promise should be"),pe)}const b=this.initAndGetManager(h);return this.eventManagers[v]={promise:b},b.catch(()=>{delete this.eventManagers[v]}),b}initAndGetManager(h){var v=this;return(0,X.A)(function*(){const b=yield function ba(E){return yi.apply(this,arguments)}(h),q=new ta(h);return b.register("authEvent",pe=>(Dt(null==pe?void 0:pe.authEvent,h,"invalid-auth-event"),{status:q.onEvent(pe.authEvent)?"ACK":"ERROR"}),gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER),v.eventManagers[h._key()]={manager:q},v.iframes[h._key()]=b,q})()}_isIframeWebStorageSupported(h,v){this.iframes[h._key()].send(vl,{type:vl},q=>{var pe;const nt=null===(pe=null==q?void 0:q[0])||void 0===pe?void 0:pe[vl];void 0!==nt&&v(!!nt),Ct(h,"internal-error")},gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER)}_originValidation(h){const v=h._key();return this.originValidationPromises[v]||(this.originValidationPromises[v]=function Pd(E){return Ou.apply(this,arguments)}(h)),this.originValidationPromises[v]}get _shouldInitProactively(){return Z()||lr()||Ut()}};var Fd="@firebase/auth";class wa{constructor(h){this.auth=h,this.internalListeners=new Map}getUid(){var h;return this.assertAuthConfigured(),(null===(h=this.auth.currentUser)||void 0===h?void 0:h.uid)||null}getToken(h){var v=this;return(0,X.A)(function*(){return v.assertAuthConfigured(),yield v.auth._initializationPromise,v.auth.currentUser?{accessToken:yield v.auth.currentUser.getIdToken(h)}:null})()}addAuthTokenListener(h){if(this.assertAuthConfigured(),this.internalListeners.has(h))return;const v=this.auth.onIdTokenChanged(b=>{h((null==b?void 0:b.stsTokenManager.accessToken)||null)});this.internalListeners.set(h,v),this.updateProactiveRefresh()}removeAuthTokenListener(h){this.assertAuthConfigured();const v=this.internalListeners.get(h);v&&(this.internalListeners.delete(h),v(),this.updateProactiveRefresh())}assertAuthConfigured(){Dt(this.auth._initializationPromise,"dependent-sdk-initialized-before-auth")}updateProactiveRefresh(){this.internalListeners.size>0?this.auth._startProactiveRefresh():this.auth._stopProactiveRefresh()}}const Jl=(0,re.XA)("authIdTokenMaxAge")||300;let rf=null;const sf=E=>function(){var h=(0,X.A)(function*(v){const b=v&&(yield v.getIdTokenResult()),q=b&&((new Date).getTime()-Date.parse(b.issuedAtTime))/1e3;if(q&&q>Jl)return;const pe=null==b?void 0:b.token;rf!==pe&&(rf=pe,yield fetch(E,{method:pe?"POST":"DELETE",headers:pe?{Authorization:`Bearer ${pe}`}:{}}))});return function(v){return h.apply(this,arguments)}}();function Vd(E=(0,Ie.Sx)()){const h=(0,Ie.j6)(E,"auth");if(h.isInitialized())return h.getImmediate();const v=function ps(E,h){const v=(0,Ie.j6)(E,"auth");if(v.isInitialized()){const q=v.getImmediate(),pe=v.getOptions();if((0,re.bD)(pe,null!=h?h:{}))return q;Ct(q,"already-initialized")}return v.initialize({options:h})}(E,{popupRedirectResolver:_l,persistence:[Kh,$a,$o]}),b=(0,re.XA)("authTokenSyncURL");if(b&&"boolean"==typeof isSecureContext&&isSecureContext){const pe=new URL(b,location.origin);if(location.origin===pe.origin){const nt=sf(pe.toString());(function Gr(E,h,v){(0,re.Ku)(E).beforeAuthStateChanged(h,v)})(v,nt,()=>nt(v.currentUser)),ki(v,Pt=>nt(Pt))}}const q=(0,re.Tj)("auth");return q&&function or(E,h,v){const b=Hn(E);Dt(b._canInitEmulator,b,"emulator-config-failed"),Dt(/^https?:\/\//.test(h),b,"invalid-emulator-scheme");const q=!(null==v||!v.disableWarnings),pe=Or(h),{host:nt,port:Pt}=function ai(E){const h=Or(E),v=/(\/\/)?([^?#/]+)/.exec(E.substr(h.length));if(!v)return{host:"",port:null};const b=v[2].split("@").pop()||"",q=/^(\[[^\]]+\])(:|$)/.exec(b);if(q){const pe=q[1];return{host:pe,port:jn(b.substr(pe.length+1))}}{const[pe,nt]=b.split(":");return{host:pe,port:jn(nt)}}}(h);b.config.emulator={url:`${pe}//${nt}${null===Pt?"":`:${Pt}`}/`},b.settings.appVerificationDisabledForTesting=!0,b.emulatorConfig=Object.freeze({host:nt,port:Pt,protocol:pe.replace(":",""),options:Object.freeze({disableWarnings:q})}),q||function Fo(){function E(){const h=document.createElement("p"),v=h.style;h.innerText="Running in emulator mode. Do not use with production credentials.",v.position="fixed",v.width="100%",v.backgroundColor="#ffffff",v.border=".1em solid #000000",v.color="#b50000",v.bottom="0px",v.left="0px",v.margin="0px",v.zIndex="10000",v.textAlign="center",h.classList.add("firebase-emulator-warning"),document.body.appendChild(h)}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",E):E())}()}(v,`http://${q}`),v}(function Pi(E){Ai=E})({loadJS:E=>new Promise((h,v)=>{const b=document.createElement("script");b.setAttribute("src",E),b.onload=h,b.onerror=q=>{const pe=Ot("internal-error");pe.customData=q,v(pe)},b.type="text/javascript",b.charset="UTF-8",function Nc(){var E,h;return null!==(h=null===(E=document.getElementsByTagName("head"))||void 0===E?void 0:E[0])&&void 0!==h?h:document}().appendChild(b)}),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 El(E){(0,Ie.om)(new De.uA("auth",(h,{options:v})=>{const b=h.getProvider("app").getImmediate(),q=h.getProvider("heartbeat"),pe=h.getProvider("app-check-internal"),{apiKey:nt,authDomain:Pt}=b.options;Dt(nt&&!nt.includes(":"),"invalid-api-key",{appName:b.name});const on={apiKey:nt,authDomain:Pt,clientPlatform:E,apiHost:"identitytoolkit.googleapis.com",tokenApiHost:"securetoken.googleapis.com",apiScheme:"https",sdkClientVersion:Q(E)},Dn=new Cr(b,q,pe,on);return function si(E,h){const v=(null==h?void 0:h.persistence)||[],b=(Array.isArray(v)?v:[v]).map(xn);null!=h&&h.errorMap&&E._updateErrorMap(h.errorMap),E._initializeWithPersistence(b,null==h?void 0:h.popupRedirectResolver)}(Dn,v),Dn},"PUBLIC").setInstantiationMode("EXPLICIT").setInstanceCreatedCallback((h,v,b)=>{h.getProvider("auth-internal").initialize()})),(0,Ie.om)(new De.uA("auth-internal",h=>{const v=Hn(h.getProvider("auth").getImmediate());return new wa(v)},"PRIVATE").setInstantiationMode("EXPLICIT")),(0,Ie.KO)(Fd,"1.7.4",function xc(E){switch(E){case"Node":return"node";case"ReactNative":return"rn";case"Worker":return"webworker";case"Cordova":return"cordova";case"WebExtension":return"web-extension";default:return}}(E)),(0,Ie.KO)(Fd,"1.7.4","esm2017")}("Browser");var Ds=j(1985);function zu(E){return new Ds.c(function(h){return{unsubscribe:ki(E,h.next.bind(h),h.error.bind(h),h.complete.bind(h))}})}class qa{constructor(h){return h}}class Al{constructor(){return(0,g.CA)("auth")}}const eu=new d.nKC("angularfire2.auth-instances");function af(E){return(h,v)=>{const b=h.runOutsideAngular(()=>E(v));return new qa(b)}}const lf={provide:Al,deps:[[new d.Xx1,eu]]},sg={provide:qa,useFactory:function Ud(E,h){const v=(0,g.lR)("auth",E,h);return v&&new qa(v)},deps:[[new d.Xx1,eu],ge.XU]};function Cl(E,...h){return(0,Oe.KO)("angularfire",g.xv.full,"auth"),(0,d.EmA)([sg,lf,{provide:eu,useFactory:af(E),multi:!0,deps:[d.SKi,d.zZn,g.u0,ge.gL,[new d.Xx1,g.Jv],...h]}])}const Fc=(0,g.S3)(zu,!0),Hu=(0,g.S3)(ws,!0),ag=(0,g.S3)(Vd,!0),qu=(0,g.S3)(Ss,!0)},4262:(En,bt,j)=>{"use strict";j.d(bt,{_7:()=>vh,H9:()=>sm,x7:()=>lm,aU:()=>um,hV:()=>Yv,BN:()=>T0});var $e,Le,g=j(3586),d=j(4438),ge=j(7440),Oe=j(8737),X=j(2214),Ie=j(467),re=j(7852),Ze=j(1362),Je=j(8041),De=j(1076),_e=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Fe={};(function(){var l;function s(){this.blockSize=-1,this.blockSize=64,this.g=Array(4),this.B=Array(this.blockSize),this.o=this.h=0,this.s()}function u(ht,Ue,tt){tt||(tt=0);var gt=Array(16);if("string"==typeof Ue)for(var It=0;16>It;++It)gt[It]=Ue.charCodeAt(tt++)|Ue.charCodeAt(tt++)<<8|Ue.charCodeAt(tt++)<<16|Ue.charCodeAt(tt++)<<24;else for(It=0;16>It;++It)gt[It]=Ue[tt++]|Ue[tt++]<<8|Ue[tt++]<<16|Ue[tt++]<<24;var xt=ht.g[3],Ye=(Ue=ht.g[0])+(xt^(tt=ht.g[1])&((It=ht.g[2])^xt))+gt[0]+3614090360&4294967295;Ye=(tt=(It=(xt=(Ue=(tt=(It=(xt=(Ue=(tt=(It=(xt=(Ue=(tt=(It=(xt=(Ue=(tt=(It=(xt=(Ue=(tt=(It=(xt=(Ue=(tt=(It=(xt=(Ue=(tt=(It=(xt=(Ue=(tt=(It=(xt=(Ue=(tt=(It=(xt=(Ue=(tt=(It=(xt=(Ue=(tt=(It=(xt=(Ue=(tt=(It=(xt=(Ue=(tt=(It=(xt=(Ue=(tt=(It=(xt=(Ue=tt+(Ye<<7&4294967295|Ye>>>25))+((Ye=xt+(It^Ue&(tt^It))+gt[1]+3905402710&4294967295)<<12&4294967295|Ye>>>20))+((Ye=It+(tt^xt&(Ue^tt))+gt[2]+606105819&4294967295)<<17&4294967295|Ye>>>15))+((Ye=tt+(Ue^It&(xt^Ue))+gt[3]+3250441966&4294967295)<<22&4294967295|Ye>>>10))+((Ye=Ue+(xt^tt&(It^xt))+gt[4]+4118548399&4294967295)<<7&4294967295|Ye>>>25))+((Ye=xt+(It^Ue&(tt^It))+gt[5]+1200080426&4294967295)<<12&4294967295|Ye>>>20))+((Ye=It+(tt^xt&(Ue^tt))+gt[6]+2821735955&4294967295)<<17&4294967295|Ye>>>15))+((Ye=tt+(Ue^It&(xt^Ue))+gt[7]+4249261313&4294967295)<<22&4294967295|Ye>>>10))+((Ye=Ue+(xt^tt&(It^xt))+gt[8]+1770035416&4294967295)<<7&4294967295|Ye>>>25))+((Ye=xt+(It^Ue&(tt^It))+gt[9]+2336552879&4294967295)<<12&4294967295|Ye>>>20))+((Ye=It+(tt^xt&(Ue^tt))+gt[10]+4294925233&4294967295)<<17&4294967295|Ye>>>15))+((Ye=tt+(Ue^It&(xt^Ue))+gt[11]+2304563134&4294967295)<<22&4294967295|Ye>>>10))+((Ye=Ue+(xt^tt&(It^xt))+gt[12]+1804603682&4294967295)<<7&4294967295|Ye>>>25))+((Ye=xt+(It^Ue&(tt^It))+gt[13]+4254626195&4294967295)<<12&4294967295|Ye>>>20))+((Ye=It+(tt^xt&(Ue^tt))+gt[14]+2792965006&4294967295)<<17&4294967295|Ye>>>15))+((Ye=tt+(Ue^It&(xt^Ue))+gt[15]+1236535329&4294967295)<<22&4294967295|Ye>>>10))+((Ye=Ue+(It^xt&(tt^It))+gt[1]+4129170786&4294967295)<<5&4294967295|Ye>>>27))+((Ye=xt+(tt^It&(Ue^tt))+gt[6]+3225465664&4294967295)<<9&4294967295|Ye>>>23))+((Ye=It+(Ue^tt&(xt^Ue))+gt[11]+643717713&4294967295)<<14&4294967295|Ye>>>18))+((Ye=tt+(xt^Ue&(It^xt))+gt[0]+3921069994&4294967295)<<20&4294967295|Ye>>>12))+((Ye=Ue+(It^xt&(tt^It))+gt[5]+3593408605&4294967295)<<5&4294967295|Ye>>>27))+((Ye=xt+(tt^It&(Ue^tt))+gt[10]+38016083&4294967295)<<9&4294967295|Ye>>>23))+((Ye=It+(Ue^tt&(xt^Ue))+gt[15]+3634488961&4294967295)<<14&4294967295|Ye>>>18))+((Ye=tt+(xt^Ue&(It^xt))+gt[4]+3889429448&4294967295)<<20&4294967295|Ye>>>12))+((Ye=Ue+(It^xt&(tt^It))+gt[9]+568446438&4294967295)<<5&4294967295|Ye>>>27))+((Ye=xt+(tt^It&(Ue^tt))+gt[14]+3275163606&4294967295)<<9&4294967295|Ye>>>23))+((Ye=It+(Ue^tt&(xt^Ue))+gt[3]+4107603335&4294967295)<<14&4294967295|Ye>>>18))+((Ye=tt+(xt^Ue&(It^xt))+gt[8]+1163531501&4294967295)<<20&4294967295|Ye>>>12))+((Ye=Ue+(It^xt&(tt^It))+gt[13]+2850285829&4294967295)<<5&4294967295|Ye>>>27))+((Ye=xt+(tt^It&(Ue^tt))+gt[2]+4243563512&4294967295)<<9&4294967295|Ye>>>23))+((Ye=It+(Ue^tt&(xt^Ue))+gt[7]+1735328473&4294967295)<<14&4294967295|Ye>>>18))+((Ye=tt+(xt^Ue&(It^xt))+gt[12]+2368359562&4294967295)<<20&4294967295|Ye>>>12))+((Ye=Ue+(tt^It^xt)+gt[5]+4294588738&4294967295)<<4&4294967295|Ye>>>28))+((Ye=xt+(Ue^tt^It)+gt[8]+2272392833&4294967295)<<11&4294967295|Ye>>>21))+((Ye=It+(xt^Ue^tt)+gt[11]+1839030562&4294967295)<<16&4294967295|Ye>>>16))+((Ye=tt+(It^xt^Ue)+gt[14]+4259657740&4294967295)<<23&4294967295|Ye>>>9))+((Ye=Ue+(tt^It^xt)+gt[1]+2763975236&4294967295)<<4&4294967295|Ye>>>28))+((Ye=xt+(Ue^tt^It)+gt[4]+1272893353&4294967295)<<11&4294967295|Ye>>>21))+((Ye=It+(xt^Ue^tt)+gt[7]+4139469664&4294967295)<<16&4294967295|Ye>>>16))+((Ye=tt+(It^xt^Ue)+gt[10]+3200236656&4294967295)<<23&4294967295|Ye>>>9))+((Ye=Ue+(tt^It^xt)+gt[13]+681279174&4294967295)<<4&4294967295|Ye>>>28))+((Ye=xt+(Ue^tt^It)+gt[0]+3936430074&4294967295)<<11&4294967295|Ye>>>21))+((Ye=It+(xt^Ue^tt)+gt[3]+3572445317&4294967295)<<16&4294967295|Ye>>>16))+((Ye=tt+(It^xt^Ue)+gt[6]+76029189&4294967295)<<23&4294967295|Ye>>>9))+((Ye=Ue+(tt^It^xt)+gt[9]+3654602809&4294967295)<<4&4294967295|Ye>>>28))+((Ye=xt+(Ue^tt^It)+gt[12]+3873151461&4294967295)<<11&4294967295|Ye>>>21))+((Ye=It+(xt^Ue^tt)+gt[15]+530742520&4294967295)<<16&4294967295|Ye>>>16))+((Ye=tt+(It^xt^Ue)+gt[2]+3299628645&4294967295)<<23&4294967295|Ye>>>9))+((Ye=Ue+(It^(tt|~xt))+gt[0]+4096336452&4294967295)<<6&4294967295|Ye>>>26))+((Ye=xt+(tt^(Ue|~It))+gt[7]+1126891415&4294967295)<<10&4294967295|Ye>>>22))+((Ye=It+(Ue^(xt|~tt))+gt[14]+2878612391&4294967295)<<15&4294967295|Ye>>>17))+((Ye=tt+(xt^(It|~Ue))+gt[5]+4237533241&4294967295)<<21&4294967295|Ye>>>11))+((Ye=Ue+(It^(tt|~xt))+gt[12]+1700485571&4294967295)<<6&4294967295|Ye>>>26))+((Ye=xt+(tt^(Ue|~It))+gt[3]+2399980690&4294967295)<<10&4294967295|Ye>>>22))+((Ye=It+(Ue^(xt|~tt))+gt[10]+4293915773&4294967295)<<15&4294967295|Ye>>>17))+((Ye=tt+(xt^(It|~Ue))+gt[1]+2240044497&4294967295)<<21&4294967295|Ye>>>11))+((Ye=Ue+(It^(tt|~xt))+gt[8]+1873313359&4294967295)<<6&4294967295|Ye>>>26))+((Ye=xt+(tt^(Ue|~It))+gt[15]+4264355552&4294967295)<<10&4294967295|Ye>>>22))+((Ye=It+(Ue^(xt|~tt))+gt[6]+2734768916&4294967295)<<15&4294967295|Ye>>>17))+((Ye=tt+(xt^(It|~Ue))+gt[13]+1309151649&4294967295)<<21&4294967295|Ye>>>11))+((xt=(Ue=tt+((Ye=Ue+(It^(tt|~xt))+gt[4]+4149444226&4294967295)<<6&4294967295|Ye>>>26))+((Ye=xt+(tt^(Ue|~It))+gt[11]+3174756917&4294967295)<<10&4294967295|Ye>>>22))^((It=xt+((Ye=It+(Ue^(xt|~tt))+gt[2]+718787259&4294967295)<<15&4294967295|Ye>>>17))|~Ue))+gt[9]+3951481745&4294967295,ht.g[0]=ht.g[0]+Ue&4294967295,ht.g[1]=ht.g[1]+(It+(Ye<<21&4294967295|Ye>>>11))&4294967295,ht.g[2]=ht.g[2]+It&4294967295,ht.g[3]=ht.g[3]+xt&4294967295}function _(ht,Ue){this.h=Ue;for(var tt=[],gt=!0,It=ht.length-1;0<=It;It--){var xt=0|ht[It];gt&&xt==Ue||(tt[It]=xt,gt=!1)}this.g=tt}(function n(ht,Ue){function tt(){}tt.prototype=Ue.prototype,ht.D=Ue.prototype,ht.prototype=new tt,ht.prototype.constructor=ht,ht.C=function(gt,It,xt){for(var Ye=Array(arguments.length-2),Pl=2;Plthis.h?this.blockSize:2*this.blockSize)-this.h);ht[0]=128;for(var Ue=1;UeUe;++Ue)for(var gt=0;32>gt;gt+=8)ht[tt++]=this.g[Ue]>>>gt&255;return ht};var w={};function N(ht){return-128<=ht&&128>ht?function f(ht,Ue){var tt=w;return Object.prototype.hasOwnProperty.call(tt,ht)?tt[ht]:tt[ht]=Ue(ht)}(ht,function(Ue){return new _([0|Ue],0>Ue?-1:0)}):new _([0|ht],0>ht?-1:0)}function z(ht){if(isNaN(ht)||!isFinite(ht))return we;if(0>ht)return ln(z(-ht));for(var Ue=[],tt=1,gt=0;ht>=tt;gt++)Ue[gt]=ht/tt|0,tt*=4294967296;return new _(Ue,0)}var we=N(0),We=N(1),Rt=N(16777216);function tn(ht){if(0!=ht.h)return!1;for(var Ue=0;Ue>>16,ht[Ue]&=65535,Ue++}function Qn(ht,Ue){this.g=ht,this.h=Ue}function Rr(ht,Ue){if(tn(Ue))throw Error("division by zero");if(tn(ht))return new Qn(we,we);if(pn(ht))return Ue=Rr(ln(ht),Ue),new Qn(ln(Ue.g),ln(Ue.h));if(pn(Ue))return Ue=Rr(ht,ln(Ue)),new Qn(ln(Ue.g),Ue.h);if(30=gt.l(ht);)tt=Ii(tt),gt=Ii(gt);var It=zr(tt,1),xt=zr(gt,1);for(gt=zr(gt,2),tt=zr(tt,2);!tn(gt);){var Ye=xt.add(gt);0>=Ye.l(ht)&&(It=It.add(tt),xt=Ye),gt=zr(gt,1),tt=zr(tt,1)}return Ue=zn(ht,It.j(Ue)),new Qn(It,Ue)}for(It=we;0<=ht.l(Ue);){for(tt=Math.max(1,Math.floor(ht.m()/Ue.m())),gt=48>=(gt=Math.ceil(Math.log(tt)/Math.LN2))?1:Math.pow(2,gt-48),Ye=(xt=z(tt)).j(Ue);pn(Ye)||0>>31;return new _(tt,ht.h)}function zr(ht,Ue){var tt=Ue>>5;Ue%=32;for(var gt=ht.g.length-tt,It=[],xt=0;xt>>Ue|ht.i(xt+tt+1)<<32-Ue:ht.i(xt+tt);return new _(It,ht.h)}(l=_.prototype).m=function(){if(pn(this))return-ln(this).m();for(var ht=0,Ue=1,tt=0;tt(ht=ht||10)||36>>0).toString(ht);if(tn(tt=It))return xt+gt;for(;6>xt.length;)xt="0"+xt;gt=xt+gt}},l.i=function(ht){return 0>ht?0:ht>>16)+(this.i(It)>>>16)+(ht.i(It)>>>16);gt=Ye>>>16,tt[It]=(Ye&=65535)<<16|(xt&=65535)}return new _(tt,-2147483648&tt[tt.length-1]?-1:0)},l.j=function(ht){if(tn(this)||tn(ht))return we;if(pn(this))return pn(ht)?ln(this).j(ln(ht)):ln(ln(this).j(ht));if(pn(ht))return ln(this.j(ln(ht)));if(0>this.l(Rt)&&0>ht.l(Rt))return z(this.m()*ht.m());for(var Ue=this.g.length+ht.g.length,tt=[],gt=0;gt<2*Ue;gt++)tt[gt]=0;for(gt=0;gt>>16,Ye=65535&this.i(gt),Pl=ht.i(It)>>>16,ac=65535&ht.i(It);tt[2*gt+2*It]+=Ye*ac,ar(tt,2*gt+2*It),tt[2*gt+2*It+1]+=xt*ac,ar(tt,2*gt+2*It+1),tt[2*gt+2*It+1]+=Ye*Pl,ar(tt,2*gt+2*It+1),tt[2*gt+2*It+2]+=xt*Pl,ar(tt,2*gt+2*It+2)}for(gt=0;gt(Ue=Ue||10)||36xt?(xt=z(Math.pow(Ue,xt)),gt=gt.j(xt).add(z(Ye))):gt=(gt=gt.j(tt)).add(z(Ye))}return gt},$e=Fe.Integer=_}).apply(typeof _e<"u"?_e:typeof self<"u"?self:typeof window<"u"?window:{});var ut,st,Mt,mt,vt,Me,je,Ke,Ct,Qe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},ft={};(function(){var l,n="function"==typeof Object.defineProperties?Object.defineProperty:function(m,k,G){return m==Array.prototype||m==Object.prototype||(m[k]=G.value),m},s=function i(m){m=["object"==typeof globalThis&&globalThis,m,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof Qe&&Qe];for(var k=0;k{throw m},0)}function Ye(){var m=hm;let k=null;return m.g&&(k=m.g,m.g=m.g.next,m.g||(m.h=null),k.next=null),k}var ac=new class zn{constructor(k,G){this.i=k,this.j=G,this.h=0,this.g=null}get(){let k;return 0new D0,m=>m.reset());class D0{constructor(){this.next=this.g=this.h=null}set(k,G){this.h=k,this.g=G,this.next=null}reset(){this.next=this.g=this.h=null}}let sd,yh=!1,hm=new class Pl{constructor(){this.h=this.g=null}add(k,G){const ye=ac.get();ye.set(k,G),this.h?this.h.next=ye:this.g=ye,this.h=ye}},fm=()=>{const m=w.Promise.resolve(void 0);sd=()=>{m.then(b0)}};var b0=()=>{for(var m;m=Ye();){try{m.h.call(m.g)}catch(G){xt(G)}var k=ac;k.j(m),100>k.h&&(k.h++,m.next=k.g,k.g=m)}yh=!1};function gu(){this.s=this.s,this.C=this.C}function mo(m,k){this.type=m,this.g=this.target=k,this.defaultPrevented=!1}gu.prototype.s=!1,gu.prototype.ma=function(){this.s||(this.s=!0,this.N())},gu.prototype.N=function(){if(this.C)for(;this.C.length;)this.C.shift()()},mo.prototype.h=function(){this.defaultPrevented=!0};var pm=function(){if(!w.addEventListener||!Object.defineProperty)return!1;var m=!1,k=Object.defineProperty({},"passive",{get:function(){m=!0}});try{const G=()=>{};w.addEventListener("test",G,k),w.removeEventListener("test",G,k)}catch{}return m}();function Ih(m,k){if(mo.call(this,m?m.type:""),this.relatedTarget=this.g=this.target=null,this.button=this.screenY=this.screenX=this.clientY=this.clientX=0,this.key="",this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1,this.state=null,this.pointerId=0,this.pointerType="",this.i=null,m){var G=this.type=m.type,ye=m.changedTouches&&m.changedTouches.length?m.changedTouches[0]:null;if(this.target=m.target||m.srcElement,this.g=k,k=m.relatedTarget){if(Ii){e:{try{Rr(k.nodeName);var wt=!0;break e}catch{}wt=!1}wt||(k=null)}}else"mouseover"==G?k=m.fromElement:"mouseout"==G&&(k=m.toElement);this.relatedTarget=k,ye?(this.clientX=void 0!==ye.clientX?ye.clientX:ye.pageX,this.clientY=void 0!==ye.clientY?ye.clientY:ye.pageY,this.screenX=ye.screenX||0,this.screenY=ye.screenY||0):(this.clientX=void 0!==m.clientX?m.clientX:m.pageX,this.clientY=void 0!==m.clientY?m.clientY:m.pageY,this.screenX=m.screenX||0,this.screenY=m.screenY||0),this.button=m.button,this.key=m.key||"",this.ctrlKey=m.ctrlKey,this.altKey=m.altKey,this.shiftKey=m.shiftKey,this.metaKey=m.metaKey,this.pointerId=m.pointerId||0,this.pointerType="string"==typeof m.pointerType?m.pointerType:i_[m.pointerType]||"",this.state=m.state,this.i=m,m.defaultPrevented&&Ih.aa.h.call(this)}}tn(Ih,mo);var i_={2:"touch",3:"pen",4:"mouse"};Ih.prototype.h=function(){Ih.aa.h.call(this);var m=this.i;m.preventDefault?m.preventDefault():m.returnValue=!1};var Eh="closure_listenable_"+(1e6*Math.random()|0),o_=0;function QE(m,k,G,ye,wt){this.listener=m,this.proxy=null,this.src=k,this.type=G,this.capture=!!ye,this.ha=wt,this.key=++o_,this.da=this.fa=!1}function ap(m){m.da=!0,m.listener=null,m.proxy=null,m.src=null,m.ha=null}function lc(m){this.src=m,this.g={},this.h=0}function lp(m,k){var G=k.type;if(G in m.g){var jt,ye=m.g[G],wt=Array.prototype.indexOf.call(ye,k,void 0);(jt=0<=wt)&&Array.prototype.splice.call(ye,wt,1),jt&&(ap(k),0==m.g[G].length&&(delete m.g[G],m.h--))}}function gm(m,k,G,ye){for(var wt=0;wt>>0);function Em(m){return"function"==typeof m?m:(m[Ah]||(m[Ah]=function(k){return m.handleEvent(k)}),m[Ah])}function ns(){gu.call(this),this.i=new lc(this),this.M=this,this.F=null}function jo(m,k){var G,ye=m.F;if(ye)for(G=[];ye;ye=ye.F)G.push(ye);if(m=m.M,ye=k.type||k,"string"==typeof k)k=new mo(k,m);else if(k instanceof mo)k.target=k.target||m;else{var wt=k;gt(k=new mo(ye,m),wt)}if(wt=!0,G)for(var jt=G.length-1;0<=jt;jt--){var Mn=k.g=G[jt];wt=Ch(Mn,ye,!0,k)&&wt}if(wt=Ch(Mn=k.g=m,ye,!0,k)&&wt,wt=Ch(Mn,ye,!1,k)&&wt,G)for(jt=0;jt{m.g=null,m.i&&(m.i=!1,Cm(m))},m.l);const k=m.h;m.h=null,m.m.apply(null,k)}tn(ns,gu),ns.prototype[Eh]=!0,ns.prototype.removeEventListener=function(m,k,G,ye){_m(this,m,k,G,ye)},ns.prototype.N=function(){if(ns.aa.N.call(this),this.i){var k,m=this.i;for(k in m.g){for(var G=m.g[k],ye=0;yeye.length)){var wt=ye[1];if(Array.isArray(wt)&&!(1>wt.length)){var jt=wt[0];if("noop"!=jt&&"stop"!=jt&&"close"!=jt)for(var Mn=1;Mnk.length?Sm:(k=k.slice(ye,ye+G),m.C=ye+G,k))}function wh(m){m.S=Date.now()+m.I,mp(m,m.I)}function mp(m,k){if(null!=m.B)throw Error("WatchDog timer not null");m.B=hp(We(m.ba,m),k)}function vp(m){m.B&&(w.clearTimeout(m.B),m.B=null)}function Sh(m){0==m.j.G||m.J||B0(m.j,m)}function Iu(m){vp(m);var k=m.M;k&&"function"==typeof k.ma&&k.ma(),m.M=null,Tm(m.U),m.g&&(k=m.g,m.g=null,k.abort(),k.ma())}function Rh(m,k){try{var G=m.j;if(0!=G.G&&(G.g==m||Mm(G.h,m)))if(!m.K&&Mm(G.h,m)&&3==G.G){try{var ye=G.Da.g.parse(k)}catch{ye=null}if(Array.isArray(ye)&&3==ye.length){var wt=ye;if(0==wt[0]){e:if(!G.u){if(G.g){if(!(G.g.F+3e3wt[2]&&G.F&&0==G.v&&!G.C&&(G.C=hp(We(G.Za,G),6e3));if(1>=y_(G.h)&&G.ca){try{G.ca()}catch{}G.ca=void 0}}else Au(G,11)}else if((m.K||G.g==m)&&Vh(G),!ar(k))for(wt=G.Da.g.parse(k),k=0;khs)&&(3!=hs||this.g&&(this.h.h||this.g.oa()||b_(this.g)))){this.J||4!=hs||7==k||cc(),vp(this);var G=this.g.Z();this.X=G;t:if(g_(this)){var ye=b_(this.g);m="";var wt=ye.length,jt=4==Eu(this.g);if(!this.h.i){if(typeof TextDecoder>"u"){Iu(this),Sh(this);var Mn="";break t}this.h.i=new w.TextDecoder}for(k=0;k=m.j}function y_(m){return m.h?1:m.g?m.g.size:0}function Mm(m,k){return m.h?m.h==k:!!m.g&&m.g.has(k)}function Mh(m,k){m.g?m.g.add(k):m.h=k}function _p(m,k){m.h&&m.h==k?m.h=null:m.g&&m.g.has(k)&&m.g.delete(k)}function Pm(m){if(null!=m.h)return m.i.concat(m.h.D);if(null!=m.g&&0!==m.g.size){let k=m.i;for(const G of m.g.values())k=k.concat(G.D);return k}return pn(m.i)}function I_(m,k){if(m.forEach&&"function"==typeof m.forEach)m.forEach(k,void 0);else if(N(m)||"string"==typeof m)Array.prototype.forEach.call(m,k,void 0);else for(var G=function Nm(m){if(m.na&&"function"==typeof m.na)return m.na();if(!m.V||"function"!=typeof m.V){if(typeof Map<"u"&&m instanceof Map)return Array.from(m.keys());if(!(typeof Set<"u"&&m instanceof Set)){if(N(m)||"string"==typeof m){var k=[];m=m.length;for(var G=0;Gk)throw Error("Bad port number "+k);m.s=k}else m.s=null}function Om(m,k,G){k instanceof Nh?(m.i=k,function T_(m,k){k&&!m.j&&(xl(m),m.i=null,m.g.forEach(function(G,ye){var wt=ye.toLowerCase();ye!=wt&&(km(this,ye),Fm(this,wt,G))},m)),m.j=k}(m.i,m.h)):(G||(k=gd(k,YE)),m.i=new Nh(k,m.h))}function qi(m,k,G){m.i.set(k,G)}function Ph(m){return qi(m,"zx",Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^Date.now()).toString(36)),m}function xh(m,k){return m?k?decodeURI(m.replace(/%25/g,"%2525")):decodeURIComponent(m):""}function gd(m,k,G){return"string"==typeof m?(m=encodeURI(m).replace(k,x0),G&&(m=m.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),m):null}function x0(m){return"%"+((m=m.charCodeAt(0))>>4&15).toString(16)+(15&m).toString(16)}dc.prototype.toString=function(){var m=[],k=this.j;k&&m.push(gd(k,yp,!0),":");var G=this.g;return(G||"file"==k)&&(m.push("//"),(k=this.o)&&m.push(gd(k,yp,!0),"@"),m.push(encodeURIComponent(String(G)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),null!=(G=this.s)&&m.push(":",String(G))),(G=this.l)&&(this.g&&"/"!=G.charAt(0)&&m.push("/"),m.push(gd(G,"/"==G.charAt(0)?C_:A_,!0))),(G=this.i.toString())&&m.push("?",G),(G=this.m)&&m.push("#",gd(G,ZE)),m.join("")};var yp=/[#\/\?@]/g,A_=/[#\?:]/g,C_=/[#\?]/g,YE=/[#\?@]/g,ZE=/#/g;function Nh(m,k){this.h=this.g=null,this.i=m||null,this.j=!!k}function xl(m){m.g||(m.g=new Map,m.h=0,m.i&&function P0(m,k){if(m){m=m.split("&");for(var G=0;G{}),1<=this.readyState&&this.g&&4!=this.readyState&&(this.g=!1,Ap(this)),this.readyState=0},l.Sa=function(m){if(this.g&&(this.l=m,this.h||(this.status=this.l.status,this.statusText=this.l.statusText,this.h=m.headers,this.readyState=2,Cp(this)),this.g&&(this.readyState=3,Cp(this),this.g)))if("arraybuffer"===this.responseType)m.arrayBuffer().then(this.Qa.bind(this),this.ga.bind(this));else if(typeof w.ReadableStream<"u"&&"body"in m){if(this.j=m.body.getReader(),this.o){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');this.response=[]}else this.response=this.responseText="",this.v=new TextDecoder;O0(this)}else m.text().then(this.Ra.bind(this),this.ga.bind(this))},l.Pa=function(m){if(this.g){if(this.o&&m.value)this.response.push(m.value);else if(!this.o){var k=m.value?m.value:new Uint8Array(0);(k=this.v.decode(k,{stream:!m.done}))&&(this.response=this.responseText+=k)}m.done?Ap(this):Cp(this),3==this.readyState&&O0(this)}},l.Ra=function(m){this.g&&(this.response=this.responseText=m,Ap(this))},l.Qa=function(m){this.g&&(this.response=m,Ap(this))},l.ga=function(){this.g&&Ap(this)},l.setRequestHeader=function(m,k){this.u.append(m,k)},l.getResponseHeader=function(m){return this.h&&this.h.get(m.toLowerCase())||""},l.getAllResponseHeaders=function(){if(!this.h)return"";const m=[],k=this.h.entries();for(var G=k.next();!G.done;)m.push((G=G.value)[0]+": "+G[1]),G=k.next();return m.join("\r\n")},Object.defineProperty(Vm.prototype,"withCredentials",{get:function(){return"include"===this.m},set:function(m){this.m=m?"include":"same-origin"}}),tn(vo,ns);var tA=/^https?$/i,nA=["POST","PUT"];function k0(m,k){m.h=!1,m.g&&(m.j=!0,m.g.abort(),m.j=!1),m.l=k,m.m=5,F0(m),Um(m)}function F0(m){m.A||(m.A=!0,jo(m,"complete"),jo(m,"error"))}function V0(m){if(m.h&&typeof _<"u"&&(!m.v[1]||4!=Eu(m)||2!=m.Z()))if(m.u&&4==Eu(m))Am(m.Ea,0,m);else if(jo(m,"readystatechange"),4==Eu(m)){m.h=!1;try{const Mn=m.Z();e:switch(Mn){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var k=!0;break e;default:k=!1}var G;if(!(G=k)){var ye;if(ye=0===Mn){var wt=String(m.D).match(E_)[1]||null;!wt&&w.self&&w.self.location&&(wt=w.self.location.protocol.slice(0,-1)),ye=!tA.test(wt?wt.toLowerCase():"")}G=ye}if(G)jo(m,"complete"),jo(m,"success");else{m.m=6;try{var jt=2{}:null;m.g=null,m.v=null,k||jo(m,"ready");try{G.onreadystatechange=ye}catch{}}}function L0(m){m.I&&(w.clearTimeout(m.I),m.I=null)}function Eu(m){return m.g?m.g.readyState:0}function b_(m){try{if(!m.g)return null;if("response"in m.g)return m.g.response;switch(m.H){case"":case"text":return m.g.responseText;case"arraybuffer":if("mozResponseArrayBuffer"in m.g)return m.g.mozResponseArrayBuffer}return null}catch{return null}}function Nl(m,k,G){return G&&G.internalChannelParams&&G.internalChannelParams[m]||k}function w_(m){this.Aa=0,this.i=[],this.j=new _u,this.ia=this.qa=this.I=this.W=this.g=this.ya=this.D=this.H=this.m=this.S=this.o=null,this.Ya=this.U=0,this.Va=Nl("failFast",!1,m),this.F=this.C=this.u=this.s=this.l=null,this.X=!0,this.za=this.T=-1,this.Y=this.v=this.B=0,this.Ta=Nl("baseRetryDelayMs",5e3,m),this.cb=Nl("retryDelaySeedMs",1e4,m),this.Wa=Nl("forwardChannelMaxRetries",2,m),this.wa=Nl("forwardChannelRequestTimeoutMs",2e4,m),this.pa=m&&m.xmlHttpFactory||void 0,this.Xa=m&&m.Tb||void 0,this.Ca=m&&m.useFetchStreams||!1,this.L=void 0,this.J=m&&m.supportsCrossDomainXhr||!1,this.K="",this.h=new Rm(m&&m.concurrentRequestLimit),this.Da=new JE,this.P=m&&m.fastHandshake||!1,this.O=m&&m.encodeInitMessageHeaders||!1,this.P&&this.O&&(this.O=!1),this.Ua=m&&m.Rb||!1,m&&m.xa&&this.j.xa(),m&&m.forceLongPolling&&(this.X=!1),this.ba=!this.P&&this.X&&m&&m.detectBufferingProxy||!1,this.ja=void 0,m&&m.longPollingTimeout&&0hi)jt=Math.max(0,wt[io].g-100),Li=!1;else try{eA(rs,Mn,"req"+hi+"_")}catch{ye&&ye(rs)}}if(Li){ye=Mn.join("&");break e}}}return m=m.i.splice(0,G),k.D=m,ye}function Bm(m){if(!m.g&&!m.u){m.Y=1;var k=m.Fa;sd||fm(),yh||(sd(),yh=!0),hm.add(k,m),m.v=0}}function jm(m){return!(m.g||m.u||3<=m.v||(m.Y++,m.u=hp(We(m.Fa,m),P_(m,m.v)),m.v++,0))}function Dp(m){null!=m.A&&(w.clearTimeout(m.A),m.A=null)}function $0(m){m.g=new yu(m,m.j,"rpc",m.Y),null===m.m&&(m.g.H=m.o),m.g.O=0;var k=nl(m.qa);qi(k,"RID","rpc"),qi(k,"SID",m.K),qi(k,"AID",m.T),qi(k,"CI",m.F?"0":"1"),!m.F&&m.ja&&qi(k,"TO",m.ja),qi(k,"TYPE","xmlhttp"),kh(m,k),m.m&&m.o&&Tp(k,m.m,m.o),m.L&&(m.g.I=m.L);var G=m.g;m=m.ia,G.L=1,G.v=Ph(nl(k)),G.m=null,G.P=!0,p_(G,m)}function Vh(m){null!=m.C&&(w.clearTimeout(m.C),m.C=null)}function B0(m,k){var G=null;if(m.g==k){Vh(m),Dp(m),m.g=null;var ye=2}else{if(!Mm(m.h,k))return;G=k.D,_p(m.h,k),ye=1}if(0!=m.G)if(k.o)if(1==ye){G=k.m?k.m.length:0,k=Date.now()-k.F;var wt=m.B;jo(ye=dp(),new cd(ye,G)),$m(m)}else Bm(m);else if(3==(wt=k.s)||0==wt&&0=m.h.j-(m.s?1:0)||(m.s?(m.i=k.D.concat(m.i),0):1==m.G||2==m.G||m.B>=(m.Va?0:m.Wa)||(m.s=hp(We(m.Ga,m,k),P_(m,m.B)),m.B++,0)))}(m,k)||2==ye&&jm(m)))switch(G&&0{ye.abort(),fc(0,0,!1,k)},1e4);fetch(m,{signal:ye.signal}).then(jt=>{clearTimeout(wt),fc(0,0,!!jt.ok,k)}).catch(()=>{clearTimeout(wt),fc(0,0,!1,k)})}(ye.toString(),G)}else uo(2);m.G=0,m.l&&m.l.sa(k),bp(m),R_(m)}function bp(m){if(m.G=0,m.ka=[],m.l){const k=Pm(m.h);(0!=k.length||0!=m.i.length)&&(ln(m.ka,k),ln(m.ka,m.i),m.h.i.length=0,pn(m.i),m.i.length=0),m.l.ra()}}function x_(m,k,G){var ye=G instanceof dc?nl(G):new dc(G);if(""!=ye.g)k&&(ye.g=k+"."+ye.g),pd(ye,ye.s);else{var wt=w.location;ye=wt.protocol,k=k?k+"."+wt.hostname:wt.hostname,wt=+wt.port;var jt=new dc(null);ye&&fd(jt,ye),k&&(jt.g=k),wt&&pd(jt,wt),G&&(jt.l=G),ye=jt}return k=m.ya,(G=m.D)&&k&&qi(ye,G,k),qi(ye,"VER",m.la),kh(m,ye),ye}function N_(m,k,G){if(k&&!m.J)throw Error("Can't create secondary domain capable XhrIo object.");return(k=new vo(m.Ca&&!m.pa?new Ep({eb:G}):m.pa)).Ha(m.J),k}function Lh(){}function wp(){}function Fs(m,k){ns.call(this),this.g=new w_(k),this.l=m,this.h=k&&k.messageUrlParams||null,m=k&&k.messageHeaders||null,k&&k.clientProtocolHeaderRequired&&(m?m["X-Client-Protocol"]="webchannel":m={"X-Client-Protocol":"webchannel"}),this.g.o=m,m=k&&k.initMessageHeaders||null,k&&k.messageContentType&&(m?m["X-WebChannel-Content-Type"]=k.messageContentType:m={"X-WebChannel-Content-Type":k.messageContentType}),k&&k.va&&(m?m["X-WebChannel-Client-Profile"]=k.va:m={"X-WebChannel-Client-Profile":k.va}),this.g.S=m,(m=k&&k.Sb)&&!ar(m)&&(this.g.m=m),this.v=k&&k.supportsCrossDomainXhr||!1,this.u=k&&k.sendRawJson||!1,(k=k&&k.httpSessionIdParam)&&!ar(k)&&(this.g.D=k,null!==(m=this.h)&&k in m&&k in(m=this.h)&&delete m[k]),this.j=new vd(this)}function O_(m){tl.call(this),m.__headers__&&(this.headers=m.__headers__,this.statusCode=m.__status__,delete m.__headers__,delete m.__status__);var k=m.__sm__;if(k){e:{for(const G in k){m=G;break e}m=void 0}(this.i=m)&&(m=this.i,k=null!==k&&m in k?k[m]:void 0),this.data=k}else this.data=m}function k_(){ld.call(this),this.status=1}function vd(m){this.g=m}(l=vo.prototype).Ha=function(m){this.J=m},l.ea=function(m,k,G,ye){if(this.g)throw Error("[goog.net.XhrIo] Object is active with another request="+this.D+"; newUri="+m);k=k?k.toUpperCase():"GET",this.D=m,this.l="",this.m=0,this.A=!1,this.h=!0,this.g=this.o?this.o.g():wm.g(),this.v=function Dm(m){return m.h||(m.h=m.i())}(this.o?this.o:wm),this.g.onreadystatechange=We(this.Ea,this);try{this.B=!0,this.g.open(k,String(m),!0),this.B=!1}catch(jt){return void k0(this,jt)}if(m=G||"",G=new Map(this.headers),ye)if(Object.getPrototypeOf(ye)===Object.prototype)for(var wt in ye)G.set(wt,ye[wt]);else{if("function"!=typeof ye.keys||"function"!=typeof ye.get)throw Error("Unknown input type for opt_headers: "+String(ye));for(const jt of ye.keys())G.set(jt,ye.get(jt))}ye=Array.from(G.keys()).find(jt=>"content-type"==jt.toLowerCase()),wt=w.FormData&&m instanceof w.FormData,!(0<=Array.prototype.indexOf.call(nA,k,void 0))||ye||wt||G.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");for(const[jt,Mn]of G)this.g.setRequestHeader(jt,Mn);this.H&&(this.g.responseType=this.H),"withCredentials"in this.g&&this.g.withCredentials!==this.J&&(this.g.withCredentials=this.J);try{L0(this),this.u=!0,this.g.send(m),this.u=!1}catch(jt){k0(this,jt)}},l.abort=function(m){this.g&&this.h&&(this.h=!1,this.j=!0,this.g.abort(),this.j=!1,this.m=m||7,jo(this,"complete"),jo(this,"abort"),Um(this))},l.N=function(){this.g&&(this.h&&(this.h=!1,this.j=!0,this.g.abort(),this.j=!1),Um(this,!0)),vo.aa.N.call(this)},l.Ea=function(){this.s||(this.B||this.u||this.j?V0(this):this.bb())},l.bb=function(){V0(this)},l.isActive=function(){return!!this.g},l.Z=function(){try{return 2=this.R)){var m=2*this.R;this.j.info("BP detection timer enabled: "+m),this.A=hp(We(this.ab,this),m)}},l.ab=function(){this.A&&(this.A=null,this.j.info("BP detection timeout reached."),this.j.info("Buffering proxy detected and switch to long-polling!"),this.F=!1,this.M=!0,uo(10),Oh(this),$0(this))},l.Za=function(){null!=this.C&&(this.C=null,Oh(this),jm(this),uo(19))},l.fb=function(m){m?(this.j.info("Successfully pinged google.com"),uo(2)):(this.j.info("Failed to ping google.com"),uo(1))},l.isActive=function(){return!!this.l&&this.l.isActive(this)},(l=Lh.prototype).ua=function(){},l.ta=function(){},l.sa=function(){},l.ra=function(){},l.isActive=function(){return!0},l.Na=function(){},wp.prototype.g=function(m,k){return new Fs(m,k)},tn(Fs,ns),Fs.prototype.m=function(){this.g.l=this.j,this.v&&(this.g.J=!0),this.g.connect(this.l,this.h||void 0)},Fs.prototype.close=function(){S_(this.g)},Fs.prototype.o=function(m){var k=this.g;if("string"==typeof m){var G={};G.__data__=m,m=G}else this.u&&((G={}).__data__=Dh(m),m=G);k.i.push(new v_(k.Ya++,m)),3==k.G&&$m(k)},Fs.prototype.N=function(){this.g.l=null,delete this.j,S_(this.g),delete this.g,Fs.aa.N.call(this)},tn(O_,tl),tn(k_,ld),tn(vd,Lh),vd.prototype.ua=function(){jo(this.g,"a")},vd.prototype.ta=function(m){jo(this.g,new O_(m))},vd.prototype.sa=function(m){jo(this.g,new k_)},vd.prototype.ra=function(){jo(this.g,"b")},wp.prototype.createWebChannel=wp.prototype.g,Fs.prototype.send=Fs.prototype.o,Fs.prototype.open=Fs.prototype.m,Fs.prototype.close=Fs.prototype.close,Ct=ft.createWebChannelTransport=function(){return new wp},Ke=ft.getStatEventTarget=function(){return dp()},je=ft.Event=vu,Me=ft.Stat={mb:0,pb:1,qb:2,Jb:3,Ob:4,Lb:5,Mb:6,Kb:7,Ib:8,Nb:9,PROXY:10,NOPROXY:11,Gb:12,Cb:13,Db:14,Bb:15,Eb:16,Fb:17,ib:18,hb:19,jb:20},pp.NO_ERROR=0,pp.TIMEOUT=8,pp.HTTP_ERROR=6,vt=ft.ErrorCode=pp,d_.COMPLETE="complete",mt=ft.EventType=d_,ad.EventType=uc,uc.OPEN="a",uc.CLOSE="b",uc.ERROR="c",uc.MESSAGE="d",ns.prototype.listen=ns.prototype.K,Mt=ft.WebChannel=ad,st=ft.FetchXmlHttpFactory=Ep,vo.prototype.listenOnce=vo.prototype.L,vo.prototype.getLastError=vo.prototype.Ka,vo.prototype.getLastErrorCode=vo.prototype.Ba,vo.prototype.getStatus=vo.prototype.Z,vo.prototype.getResponseJson=vo.prototype.Oa,vo.prototype.getResponseText=vo.prototype.oa,vo.prototype.send=vo.prototype.ea,vo.prototype.setWithCredentials=vo.prototype.Ha,ut=ft.XhrIo=vo}).apply(typeof Qe<"u"?Qe:typeof self<"u"?self:typeof window<"u"?window:{});const Ot="@firebase/firestore";class He{constructor(n){this.uid=n}isAuthenticated(){return null!=this.uid}toKey(){return this.isAuthenticated()?"uid:"+this.uid:"anonymous-user"}isEqual(n){return n.uid===this.uid}}He.UNAUTHENTICATED=new He(null),He.GOOGLE_CREDENTIALS=new He("google-credentials-uid"),He.FIRST_PARTY=new He("first-party-uid"),He.MOCK_USER=new He("mock-user");let Tt="10.12.1";const Vt=new Je.Vy("@firebase/firestore");function Zt(){return Vt.logLevel}function Be(l,...n){if(Vt.logLevel<=Je.$b.DEBUG){const i=n.map(Ee);Vt.debug(`Firestore (${Tt}): ${l}`,...i)}}function rn(l,...n){if(Vt.logLevel<=Je.$b.ERROR){const i=n.map(Ee);Vt.error(`Firestore (${Tt}): ${l}`,...i)}}function pt(l,...n){if(Vt.logLevel<=Je.$b.WARN){const i=n.map(Ee);Vt.warn(`Firestore (${Tt}): ${l}`,...i)}}function Ee(l){if("string"==typeof l)return l;try{return JSON.stringify(l)}catch{return l}}function B(l="Unexpected state"){const n=`FIRESTORE (${Tt}) INTERNAL ASSERTION FAILED: `+l;throw rn(n),new Error(n)}function W(l,n){l||B()}function de(l,n){return l}const ae={OK:"ok",CANCELLED:"cancelled",UNKNOWN:"unknown",INVALID_ARGUMENT:"invalid-argument",DEADLINE_EXCEEDED:"deadline-exceeded",NOT_FOUND:"not-found",ALREADY_EXISTS:"already-exists",PERMISSION_DENIED:"permission-denied",UNAUTHENTICATED:"unauthenticated",RESOURCE_EXHAUSTED:"resource-exhausted",FAILED_PRECONDITION:"failed-precondition",ABORTED:"aborted",OUT_OF_RANGE:"out-of-range",UNIMPLEMENTED:"unimplemented",INTERNAL:"internal",UNAVAILABLE:"unavailable",DATA_LOSS:"data-loss"};class me extends De.g{constructor(n,i){super(n,i),this.code=n,this.message=i,this.toString=()=>`${this.name}: [code=${this.code}]: ${this.message}`}}class Ce{constructor(){this.promise=new Promise((n,i)=>{this.resolve=n,this.reject=i})}}class at{constructor(n,i){this.user=i,this.type="OAuth",this.headers=new Map,this.headers.set("Authorization",`Bearer ${n}`)}}class kt{getToken(){return Promise.resolve(null)}invalidateToken(){}start(n,i){n.enqueueRetryable(()=>i(He.UNAUTHENTICATED))}shutdown(){}}class Bt{constructor(n){this.token=n,this.changeListener=null}getToken(){return Promise.resolve(this.token)}invalidateToken(){}start(n,i){this.changeListener=i,n.enqueueRetryable(()=>i(this.token.user))}shutdown(){this.changeListener=null}}class vn{constructor(n){this.t=n,this.currentUser=He.UNAUTHENTICATED,this.i=0,this.forceRefresh=!1,this.auth=null}start(n,i){var s=this;let u=this.i;const f=z=>this.i!==u?(u=this.i,i(z)):Promise.resolve();let _=new Ce;this.o=()=>{this.i++,this.currentUser=this.u(),_.resolve(),_=new Ce,n.enqueueRetryable(()=>f(this.currentUser))};const w=()=>{const z=_;n.enqueueRetryable((0,Ie.A)(function*(){yield z.promise,yield f(s.currentUser)}))},N=z=>{Be("FirebaseAuthCredentialsProvider","Auth detected"),this.auth=z,this.auth.addAuthTokenListener(this.o),w()};this.t.onInit(z=>N(z)),setTimeout(()=>{if(!this.auth){const z=this.t.getImmediate({optional:!0});z?N(z):(Be("FirebaseAuthCredentialsProvider","Auth not yet detected"),_.resolve(),_=new Ce)}},0),w()}getToken(){const n=this.i,i=this.forceRefresh;return this.forceRefresh=!1,this.auth?this.auth.getToken(i).then(s=>this.i!==n?(Be("FirebaseAuthCredentialsProvider","getToken aborted due to token change."),this.getToken()):s?(W("string"==typeof s.accessToken),new at(s.accessToken,this.currentUser)):null):Promise.resolve(null)}invalidateToken(){this.forceRefresh=!0}shutdown(){this.auth&&this.auth.removeAuthTokenListener(this.o)}u(){const n=this.auth&&this.auth.getUid();return W(null===n||"string"==typeof n),new He(n)}}class bn{constructor(n,i,s){this.l=n,this.h=i,this.P=s,this.type="FirstParty",this.user=He.FIRST_PARTY,this.I=new Map}T(){return this.P?this.P():null}get headers(){this.I.set("X-Goog-AuthUser",this.l);const n=this.T();return n&&this.I.set("Authorization",n),this.h&&this.I.set("X-Goog-Iam-Authorization-Token",this.h),this.I}}class $n{constructor(n,i,s){this.l=n,this.h=i,this.P=s}getToken(){return Promise.resolve(new bn(this.l,this.h,this.P))}start(n,i){n.enqueueRetryable(()=>i(He.FIRST_PARTY))}shutdown(){}invalidateToken(){}}class qn{constructor(n){this.value=n,this.type="AppCheck",this.headers=new Map,n&&n.length>0&&this.headers.set("x-firebase-appcheck",this.value)}}class er{constructor(n){this.A=n,this.forceRefresh=!1,this.appCheck=null,this.R=null}start(n,i){const s=f=>{null!=f.error&&Be("FirebaseAppCheckTokenProvider",`Error getting App Check token; using placeholder token instead. Error: ${f.error.message}`);const _=f.token!==this.R;return this.R=f.token,Be("FirebaseAppCheckTokenProvider",`Received ${_?"new":"existing"} token.`),_?i(f.token):Promise.resolve()};this.o=f=>{n.enqueueRetryable(()=>s(f))};const u=f=>{Be("FirebaseAppCheckTokenProvider","AppCheck detected"),this.appCheck=f,this.appCheck.addTokenListener(this.o)};this.A.onInit(f=>u(f)),setTimeout(()=>{if(!this.appCheck){const f=this.A.getImmediate({optional:!0});f?u(f):Be("FirebaseAppCheckTokenProvider","AppCheck not yet detected")}},0)}getToken(){const n=this.forceRefresh;return this.forceRefresh=!1,this.appCheck?this.appCheck.getToken(n).then(i=>i?(W("string"==typeof i.token),this.R=i.token,new qn(i.token)):null):Promise.resolve(null)}invalidateToken(){this.forceRefresh=!0}shutdown(){this.appCheck&&this.appCheck.removeTokenListener(this.o)}}function ir(l){const n=typeof self<"u"&&(self.crypto||self.msCrypto),i=new Uint8Array(l);if(n&&"function"==typeof n.getRandomValues)n.getRandomValues(i);else for(let s=0;sn?1:0}function yt(l,n,i){return l.length===n.length&&l.every((s,u)=>i(s,n[u]))}class Xt{constructor(n,i){if(this.seconds=n,this.nanoseconds=i,i<0)throw new me(ae.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+i);if(i>=1e9)throw new me(ae.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+i);if(n<-62135596800)throw new me(ae.INVALID_ARGUMENT,"Timestamp seconds out of range: "+n);if(n>=253402300800)throw new me(ae.INVALID_ARGUMENT,"Timestamp seconds out of range: "+n)}static now(){return Xt.fromMillis(Date.now())}static fromDate(n){return Xt.fromMillis(n.getTime())}static fromMillis(n){const i=Math.floor(n/1e3),s=Math.floor(1e6*(n-1e3*i));return new Xt(i,s)}toDate(){return new Date(this.toMillis())}toMillis(){return 1e3*this.seconds+this.nanoseconds/1e6}_compareTo(n){return this.seconds===n.seconds?Ve(this.nanoseconds,n.nanoseconds):Ve(this.seconds,n.seconds)}isEqual(n){return n.seconds===this.seconds&&n.nanoseconds===this.nanoseconds}toString(){return"Timestamp(seconds="+this.seconds+", nanoseconds="+this.nanoseconds+")"}toJSON(){return{seconds:this.seconds,nanoseconds:this.nanoseconds}}valueOf(){return String(this.seconds- -62135596800).padStart(12,"0")+"."+String(this.nanoseconds).padStart(9,"0")}}class en{constructor(n){this.timestamp=n}static fromTimestamp(n){return new en(n)}static min(){return new en(new Xt(0,0))}static max(){return new en(new Xt(253402300799,999999999))}compareTo(n){return this.timestamp._compareTo(n.timestamp)}isEqual(n){return this.timestamp.isEqual(n.timestamp)}toMicroseconds(){return 1e6*this.timestamp.seconds+this.timestamp.nanoseconds/1e3}toString(){return"SnapshotVersion("+this.timestamp.toString()+")"}toTimestamp(){return this.timestamp}}class Ar{constructor(n,i,s){void 0===i?i=0:i>n.length&&B(),void 0===s?s=n.length-i:s>n.length-i&&B(),this.segments=n,this.offset=i,this.len=s}get length(){return this.len}isEqual(n){return 0===Ar.comparator(this,n)}child(n){const i=this.segments.slice(this.offset,this.limit());return n instanceof Ar?n.forEach(s=>{i.push(s)}):i.push(n),this.construct(i)}limit(){return this.offset+this.length}popFirst(n){return this.construct(this.segments,this.offset+(n=void 0===n?1:n),this.length-n)}popLast(){return this.construct(this.segments,this.offset,this.length-1)}firstSegment(){return this.segments[this.offset]}lastSegment(){return this.get(this.length-1)}get(n){return this.segments[this.offset+n]}isEmpty(){return 0===this.length}isPrefixOf(n){if(n.length_)return 1}return n.lengthi.length?1:0}}class gn extends Ar{construct(n,i,s){return new gn(n,i,s)}canonicalString(){return this.toArray().join("/")}toString(){return this.canonicalString()}toUriEncodedString(){return this.toArray().map(encodeURIComponent).join("/")}static fromString(...n){const i=[];for(const s of n){if(s.indexOf("//")>=0)throw new me(ae.INVALID_ARGUMENT,`Invalid segment (${s}). Paths must not contain // in them.`);i.push(...s.split("/").filter(u=>u.length>0))}return new gn(i)}static emptyPath(){return new gn([])}}const mn=/^[_a-zA-Z][_a-zA-Z0-9]*$/;class Jt extends Ar{construct(n,i,s){return new Jt(n,i,s)}static isValidIdentifier(n){return mn.test(n)}canonicalString(){return this.toArray().map(n=>(n=n.replace(/\\/g,"\\\\").replace(/`/g,"\\`"),Jt.isValidIdentifier(n)||(n="`"+n+"`"),n)).join(".")}toString(){return this.canonicalString()}isKeyField(){return 1===this.length&&"__name__"===this.get(0)}static keyField(){return new Jt(["__name__"])}static fromServerFormat(n){const i=[];let s="",u=0;const f=()=>{if(0===s.length)throw new me(ae.INVALID_ARGUMENT,`Invalid field path (${n}). Paths must not be empty, begin with '.', end with '.', or contain '..'`);i.push(s),s=""};let _=!1;for(;u=2&&this.path.get(this.path.length-2)===n}getCollectionGroup(){return this.path.get(this.path.length-2)}getCollectionPath(){return this.path.popLast()}isEqual(n){return null!==n&&0===gn.comparator(this.path,n.path)}toString(){return this.path.toString()}static comparator(n,i){return gn.comparator(n.path,i.path)}static isDocumentKey(n){return n.length%2==0}static fromSegments(n){return new Gt(new gn(n.slice()))}}class Sr{constructor(n,i,s){this.readTime=n,this.documentKey=i,this.largestBatchId=s}static min(){return new Sr(en.min(),Gt.empty(),-1)}static max(){return new Sr(en.max(),Gt.empty(),-1)}}function tr(l,n){let i=l.readTime.compareTo(n.readTime);return 0!==i?i:(i=Gt.comparator(l.documentKey,n.documentKey),0!==i?i:Ve(l.largestBatchId,n.largestBatchId))}const Ir="The current tab is not in the required state to perform this operation. It might be necessary to refresh the browser tab.";class Mi{constructor(){this.onCommittedListeners=[]}addOnCommittedListener(n){this.onCommittedListeners.push(n)}raiseOnCommittedEvent(){this.onCommittedListeners.forEach(n=>n())}}function Qr(l){return Yr.apply(this,arguments)}function Yr(){return(Yr=(0,Ie.A)(function*(l){if(l.code!==ae.FAILED_PRECONDITION||l.message!==Ir)throw l;Be("LocalStore","Unexpectedly lost primary lease")})).apply(this,arguments)}class oe{constructor(n){this.nextCallback=null,this.catchCallback=null,this.result=void 0,this.error=void 0,this.isDone=!1,this.callbackAttached=!1,n(i=>{this.isDone=!0,this.result=i,this.nextCallback&&this.nextCallback(i)},i=>{this.isDone=!0,this.error=i,this.catchCallback&&this.catchCallback(i)})}catch(n){return this.next(void 0,n)}next(n,i){return this.callbackAttached&&B(),this.callbackAttached=!0,this.isDone?this.error?this.wrapFailure(i,this.error):this.wrapSuccess(n,this.result):new oe((s,u)=>{this.nextCallback=f=>{this.wrapSuccess(n,f).next(s,u)},this.catchCallback=f=>{this.wrapFailure(i,f).next(s,u)}})}toPromise(){return new Promise((n,i)=>{this.next(n,i)})}wrapUserFunction(n){try{const i=n();return i instanceof oe?i:oe.resolve(i)}catch(i){return oe.reject(i)}}wrapSuccess(n,i){return n?this.wrapUserFunction(()=>n(i)):oe.resolve(i)}wrapFailure(n,i){return n?this.wrapUserFunction(()=>n(i)):oe.reject(i)}static resolve(n){return new oe((i,s)=>{i(n)})}static reject(n){return new oe((i,s)=>{s(n)})}static waitFor(n){return new oe((i,s)=>{let u=0,f=0,_=!1;n.forEach(w=>{++u,w.next(()=>{++f,_&&f===u&&i()},N=>s(N))}),_=!0,f===u&&i()})}static or(n){let i=oe.resolve(!1);for(const s of n)i=i.next(u=>u?oe.resolve(u):s());return i}static forEach(n,i){const s=[];return n.forEach((u,f)=>{s.push(i.call(this,u,f))}),this.waitFor(s)}static mapArray(n,i){return new oe((s,u)=>{const f=n.length,_=new Array(f);let w=0;for(let N=0;N{_[z]=se,++w,w===f&&s(_)},se=>u(se))}})}static doWhile(n,i){return new oe((s,u)=>{const f=()=>{!0===n()?i().next(()=>{f()},u):s()};f()})}}function Pe(l){return"IndexedDbTransactionError"===l.name}let ur=(()=>{class l{constructor(i,s){this.previousValue=i,s&&(s.sequenceNumberHandler=u=>this.ie(u),this.se=u=>s.writeSequenceNumber(u))}ie(i){return this.previousValue=Math.max(i,this.previousValue),this.previousValue}next(){const i=++this.previousValue;return this.se&&this.se(i),i}}return l.oe=-1,l})();function ri(l){return null==l}function xn(l){return 0===l&&1/l==-1/0}function xi(l){let n=0;for(const i in l)Object.prototype.hasOwnProperty.call(l,i)&&n++;return n}function mi(l,n){for(const i in l)Object.prototype.hasOwnProperty.call(l,i)&&n(i,l[i])}function ti(l){for(const n in l)if(Object.prototype.hasOwnProperty.call(l,n))return!1;return!0}class mr{constructor(n,i){this.comparator=n,this.root=i||Nn.EMPTY}insert(n,i){return new mr(this.comparator,this.root.insert(n,i,this.comparator).copy(null,null,Nn.BLACK,null,null))}remove(n){return new mr(this.comparator,this.root.remove(n,this.comparator).copy(null,null,Nn.BLACK,null,null))}get(n){let i=this.root;for(;!i.isEmpty();){const s=this.comparator(n,i.key);if(0===s)return i.value;s<0?i=i.left:s>0&&(i=i.right)}return null}indexOf(n){let i=0,s=this.root;for(;!s.isEmpty();){const u=this.comparator(n,s.key);if(0===u)return i+s.left.size;u<0?s=s.left:(i+=s.left.size+1,s=s.right)}return-1}isEmpty(){return this.root.isEmpty()}get size(){return this.root.size}minKey(){return this.root.minKey()}maxKey(){return this.root.maxKey()}inorderTraversal(n){return this.root.inorderTraversal(n)}forEach(n){this.inorderTraversal((i,s)=>(n(i,s),!1))}toString(){const n=[];return this.inorderTraversal((i,s)=>(n.push(`${i}:${s}`),!1)),`{${n.join(", ")}}`}reverseTraversal(n){return this.root.reverseTraversal(n)}getIterator(){return new oi(this.root,null,this.comparator,!1)}getIteratorFrom(n){return new oi(this.root,n,this.comparator,!1)}getReverseIterator(){return new oi(this.root,null,this.comparator,!0)}getReverseIteratorFrom(n){return new oi(this.root,n,this.comparator,!0)}}class oi{constructor(n,i,s,u){this.isReverse=u,this.nodeStack=[];let f=1;for(;!n.isEmpty();)if(f=i?s(n.key,i):1,i&&u&&(f*=-1),f<0)n=this.isReverse?n.left:n.right;else{if(0===f){this.nodeStack.push(n);break}this.nodeStack.push(n),n=this.isReverse?n.right:n.left}}getNext(){let n=this.nodeStack.pop();const i={key:n.key,value:n.value};if(this.isReverse)for(n=n.left;!n.isEmpty();)this.nodeStack.push(n),n=n.right;else for(n=n.right;!n.isEmpty();)this.nodeStack.push(n),n=n.left;return i}hasNext(){return this.nodeStack.length>0}peek(){if(0===this.nodeStack.length)return null;const n=this.nodeStack[this.nodeStack.length-1];return{key:n.key,value:n.value}}}class Nn{constructor(n,i,s,u,f){this.key=n,this.value=i,this.color=null!=s?s:Nn.RED,this.left=null!=u?u:Nn.EMPTY,this.right=null!=f?f:Nn.EMPTY,this.size=this.left.size+1+this.right.size}copy(n,i,s,u,f){return new Nn(null!=n?n:this.key,null!=i?i:this.value,null!=s?s:this.color,null!=u?u:this.left,null!=f?f:this.right)}isEmpty(){return!1}inorderTraversal(n){return this.left.inorderTraversal(n)||n(this.key,this.value)||this.right.inorderTraversal(n)}reverseTraversal(n){return this.right.reverseTraversal(n)||n(this.key,this.value)||this.left.reverseTraversal(n)}min(){return this.left.isEmpty()?this:this.left.min()}minKey(){return this.min().key}maxKey(){return this.right.isEmpty()?this.key:this.right.maxKey()}insert(n,i,s){let u=this;const f=s(n,u.key);return u=f<0?u.copy(null,null,null,u.left.insert(n,i,s),null):0===f?u.copy(null,i,null,null,null):u.copy(null,null,null,null,u.right.insert(n,i,s)),u.fixUp()}removeMin(){if(this.left.isEmpty())return Nn.EMPTY;let n=this;return n.left.isRed()||n.left.left.isRed()||(n=n.moveRedLeft()),n=n.copy(null,null,null,n.left.removeMin(),null),n.fixUp()}remove(n,i){let s,u=this;if(i(n,u.key)<0)u.left.isEmpty()||u.left.isRed()||u.left.left.isRed()||(u=u.moveRedLeft()),u=u.copy(null,null,null,u.left.remove(n,i),null);else{if(u.left.isRed()&&(u=u.rotateRight()),u.right.isEmpty()||u.right.isRed()||u.right.left.isRed()||(u=u.moveRedRight()),0===i(n,u.key)){if(u.right.isEmpty())return Nn.EMPTY;s=u.right.min(),u=u.copy(s.key,s.value,null,null,u.right.removeMin())}u=u.copy(null,null,null,null,u.right.remove(n,i))}return u.fixUp()}isRed(){return this.color}fixUp(){let n=this;return n.right.isRed()&&!n.left.isRed()&&(n=n.rotateLeft()),n.left.isRed()&&n.left.left.isRed()&&(n=n.rotateRight()),n.left.isRed()&&n.right.isRed()&&(n=n.colorFlip()),n}moveRedLeft(){let n=this.colorFlip();return n.right.left.isRed()&&(n=n.copy(null,null,null,null,n.right.rotateRight()),n=n.rotateLeft(),n=n.colorFlip()),n}moveRedRight(){let n=this.colorFlip();return n.left.left.isRed()&&(n=n.rotateRight(),n=n.colorFlip()),n}rotateLeft(){const n=this.copy(null,null,Nn.RED,null,this.right.left);return this.right.copy(null,null,this.color,n,null)}rotateRight(){const n=this.copy(null,null,Nn.RED,this.left.right,null);return this.left.copy(null,null,this.color,null,n)}colorFlip(){const n=this.left.copy(null,null,!this.left.color,null,null),i=this.right.copy(null,null,!this.right.color,null,null);return this.copy(null,null,!this.color,n,i)}checkMaxDepth(){const n=this.check();return Math.pow(2,n)<=this.size+1}check(){if(this.isRed()&&this.left.isRed()||this.right.isRed())throw B();const n=this.left.check();if(n!==this.right.check())throw B();return n+(this.isRed()?0:1)}}Nn.EMPTY=null,Nn.RED=!0,Nn.BLACK=!1,Nn.EMPTY=new class{constructor(){this.size=0}get key(){throw B()}get value(){throw B()}get color(){throw B()}get left(){throw B()}get right(){throw B()}copy(n,i,s,u,f){return this}insert(n,i,s){return new Nn(n,i)}remove(n,i){return this}isEmpty(){return!0}inorderTraversal(n){return!1}reverseTraversal(n){return!1}minKey(){return null}maxKey(){return null}isRed(){return!1}checkMaxDepth(){return!0}check(){return 0}};class kn{constructor(n){this.comparator=n,this.data=new mr(this.comparator)}has(n){return null!==this.data.get(n)}first(){return this.data.minKey()}last(){return this.data.maxKey()}get size(){return this.data.size}indexOf(n){return this.data.indexOf(n)}forEach(n){this.data.inorderTraversal((i,s)=>(n(i),!1))}forEachInRange(n,i){const s=this.data.getIteratorFrom(n[0]);for(;s.hasNext();){const u=s.getNext();if(this.comparator(u.key,n[1])>=0)return;i(u.key)}}forEachWhile(n,i){let s;for(s=void 0!==i?this.data.getIteratorFrom(i):this.data.getIterator();s.hasNext();)if(!n(s.getNext().key))return}firstAfterOrEqual(n){const i=this.data.getIteratorFrom(n);return i.hasNext()?i.getNext().key:null}getIterator(){return new ko(this.data.getIterator())}getIteratorFrom(n){return new ko(this.data.getIteratorFrom(n))}add(n){return this.copy(this.data.remove(n).insert(n,!0))}delete(n){return this.has(n)?this.copy(this.data.remove(n)):this}isEmpty(){return this.data.isEmpty()}unionWith(n){let i=this;return i.size{i=i.add(s)}),i}isEqual(n){if(!(n instanceof kn)||this.size!==n.size)return!1;const i=this.data.getIterator(),s=n.data.getIterator();for(;i.hasNext();){const u=i.getNext().key,f=s.getNext().key;if(0!==this.comparator(u,f))return!1}return!0}toArray(){const n=[];return this.forEach(i=>{n.push(i)}),n}toString(){const n=[];return this.forEach(i=>n.push(i)),"SortedSet("+n.toString()+")"}copy(n){const i=new kn(this.comparator);return i.data=n,i}}class ko{constructor(n){this.iter=n}getNext(){return this.iter.getNext().key}hasNext(){return this.iter.hasNext()}}class Bi{constructor(n){this.fields=n,n.sort(Jt.comparator)}static empty(){return new Bi([])}unionWith(n){let i=new kn(Jt.comparator);for(const s of this.fields)i=i.add(s);for(const s of n)i=i.add(s);return new Bi(i.toArray())}covers(n){for(const i of this.fields)if(i.isPrefixOf(n))return!0;return!1}isEqual(n){return yt(this.fields,n.fields,(i,s)=>i.isEqual(s))}}class is extends Error{constructor(){super(...arguments),this.name="Base64DecodeError"}}class si{constructor(n){this.binaryString=n}static fromBase64String(n){const i=function(u){try{return atob(u)}catch(f){throw typeof DOMException<"u"&&f instanceof DOMException?new is("Invalid base64 string: "+f):f}}(n);return new si(i)}static fromUint8Array(n){const i=function(u){let f="";for(let _=0;_nue(i,n))}function fe(l,n){if(l===n)return 0;const i=H(l),s=H(n);if(i!==s)return Ve(i,s);switch(i){case 0:case 9007199254740991:return 0;case 1:return Ve(l.booleanValue,n.booleanValue);case 2:return function(f,_){const w=ai(f.integerValue||f.doubleValue),N=ai(_.integerValue||_.doubleValue);return wN?1:w===N?0:isNaN(w)?isNaN(N)?0:-1:1}(l,n);case 3:return qe(l.timestampValue,n.timestampValue);case 4:return qe(Co(l),Co(n));case 5:return Ve(l.stringValue,n.stringValue);case 6:return function(f,_){const w=jn(f),N=jn(_);return w.compareTo(N)}(l.bytesValue,n.bytesValue);case 7:return function(f,_){const w=f.split("/"),N=_.split("/");for(let z=0;zn.mapValue.fields[i]=zt(s)),n}if(l.arrayValue){const n={arrayValue:{values:[]}};for(let i=0;i<(l.arrayValue.values||[]).length;++i)n.arrayValue.values[i]=zt(l.arrayValue.values[i]);return n}return Object.assign({},l)}function Kt(l){return"__max__"===(((l.mapValue||{}).fields||{}).__type__||{}).stringValue}class In{constructor(n){this.value=n}static empty(){return new In({mapValue:{}})}field(n){if(n.isEmpty())return this.value;{let i=this.value;for(let s=0;s{if(!i.isImmediateParentOf(w)){const N=this.getFieldsMap(i);this.applyChanges(N,s,u),s={},u=[],i=w.popLast()}_?s[w.lastSegment()]=zt(_):u.push(w.lastSegment())});const f=this.getFieldsMap(i);this.applyChanges(f,s,u)}delete(n){const i=this.field(n.popLast());Lt(i)&&i.mapValue.fields&&delete i.mapValue.fields[n.lastSegment()]}isEqual(n){return ue(this.value,n.value)}getFieldsMap(n){let i=this.value;i.mapValue.fields||(i.mapValue={fields:{}});for(let s=0;sn[u]=f);for(const u of s)delete n[u]}clone(){return new In(zt(this.value))}}function br(l){const n=[];return mi(l.fields,(i,s)=>{const u=new Jt([i]);if(Lt(s)){const f=br(s.mapValue).fields;if(0===f.length)n.push(u);else for(const _ of f)n.push(u.child(_))}else n.push(u)}),new Bi(n)}class cr{constructor(n,i,s,u,f,_,w){this.key=n,this.documentType=i,this.version=s,this.readTime=u,this.createTime=f,this.data=_,this.documentState=w}static newInvalidDocument(n){return new cr(n,0,en.min(),en.min(),en.min(),In.empty(),0)}static newFoundDocument(n,i,s,u){return new cr(n,1,i,en.min(),s,u,0)}static newNoDocument(n,i){return new cr(n,2,i,en.min(),en.min(),In.empty(),0)}static newUnknownDocument(n,i){return new cr(n,3,i,en.min(),en.min(),In.empty(),2)}convertToFoundDocument(n,i){return!this.createTime.isEqual(en.min())||2!==this.documentType&&0!==this.documentType||(this.createTime=n),this.version=n,this.documentType=1,this.data=i,this.documentState=0,this}convertToNoDocument(n){return this.version=n,this.documentType=2,this.data=In.empty(),this.documentState=0,this}convertToUnknownDocument(n){return this.version=n,this.documentType=3,this.data=In.empty(),this.documentState=2,this}setHasCommittedMutations(){return this.documentState=2,this}setHasLocalMutations(){return this.documentState=1,this.version=en.min(),this}setReadTime(n){return this.readTime=n,this}get hasLocalMutations(){return 1===this.documentState}get hasCommittedMutations(){return 2===this.documentState}get hasPendingWrites(){return this.hasLocalMutations||this.hasCommittedMutations}isValidDocument(){return 0!==this.documentType}isFoundDocument(){return 1===this.documentType}isNoDocument(){return 2===this.documentType}isUnknownDocument(){return 3===this.documentType}isEqual(n){return n instanceof cr&&this.key.isEqual(n.key)&&this.version.isEqual(n.version)&&this.documentType===n.documentType&&this.documentState===n.documentState&&this.data.isEqual(n.data)}mutableCopy(){return new cr(this.key,this.documentType,this.version,this.readTime,this.createTime,this.data.clone(),this.documentState)}toString(){return`Document(${this.key}, ${this.version}, ${JSON.stringify(this.data.value)}, {createTime: ${this.createTime}}), {documentType: ${this.documentType}}), {documentState: ${this.documentState}})`}}class nr{constructor(n,i){this.position=n,this.inclusive=i}}function li(l,n,i){let s=0;for(let u=0;u":return n>0;case">=":return n>=0;default:return B()}}isInequality(){return["<","<=",">",">=","!=","not-in"].indexOf(this.op)>=0}getFlattenedFilters(){return[this]}getFilters(){return[this]}}class Wr extends Go{constructor(n,i){super(),this.filters=n,this.op=i,this.ae=null}static create(n,i){return new Wr(n,i)}matches(n){return Wo(this)?void 0===this.filters.find(i=>!i.matches(n)):void 0!==this.filters.find(i=>i.matches(n))}getFlattenedFilters(){return null!==this.ae||(this.ae=this.filters.reduce((n,i)=>n.concat(i.getFlattenedFilters()),[])),this.ae}getFilters(){return Object.assign([],this.filters)}}function Wo(l){return"and"===l.op}function Ko(l){return function Do(l){for(const n of l.filters)if(n instanceof Wr)return!1;return!0}(l)&&Wo(l)}function xa(l){if(l instanceof dr)return l.field.canonicalString()+l.op.toString()+sr(l.value);if(Ko(l))return l.filters.map(n=>xa(n)).join(",");{const n=l.filters.map(i=>xa(i)).join(",");return`${l.op}(${n})`}}function os(l,n){return l instanceof dr?(s=l,(u=n)instanceof dr&&s.op===u.op&&s.field.isEqual(u.field)&&ue(s.value,u.value)):l instanceof Wr?function(s,u){return u instanceof Wr&&s.op===u.op&&s.filters.length===u.filters.length&&s.filters.reduce((f,_,w)=>f&&os(_,u.filters[w]),!0)}(l,n):void B();var s,u}function Pr(l){return l instanceof dr?`${(i=l).field.canonicalString()} ${i.op} ${sr(i.value)}`:l instanceof Wr?function(i){return i.op.toString()+" {"+i.getFilters().map(Pr).join(" ,")+"}"}(l):"Filter";var i}class oo extends dr{constructor(n,i,s){super(n,i,s),this.key=Gt.fromName(s.referenceValue)}matches(n){const i=Gt.comparator(n.key,this.key);return this.matchesComparison(i)}}class Us extends dr{constructor(n,i){super(n,"in",i),this.keys=ua(0,i)}matches(n){return this.keys.some(i=>i.isEqual(n.key))}}class so extends dr{constructor(n,i){super(n,"not-in",i),this.keys=ua(0,i)}matches(n){return!this.keys.some(i=>i.isEqual(n.key))}}function ua(l,n){var i;return((null===(i=n.arrayValue)||void 0===i?void 0:i.values)||[]).map(s=>Gt.fromName(s.referenceValue))}class gs extends dr{constructor(n,i){super(n,"array-contains",i)}matches(n){const i=n.data.field(this.field);return ke(i)&&M(i.arrayValue,this.value)}}class ms extends dr{constructor(n,i){super(n,"in",i)}matches(n){const i=n.data.field(this.field);return null!==i&&M(this.value.arrayValue,i)}}class ss extends dr{constructor(n,i){super(n,"not-in",i)}matches(n){if(M(this.value.arrayValue,{nullValue:"NULL_VALUE"}))return!1;const i=n.data.field(this.field);return null!==i&&!M(this.value.arrayValue,i)}}class $s extends dr{constructor(n,i){super(n,"array-contains-any",i)}matches(n){const i=n.data.field(this.field);return!(!ke(i)||!i.arrayValue.values)&&i.arrayValue.values.some(s=>M(this.value.arrayValue,s))}}class ca{constructor(n,i=null,s=[],u=[],f=null,_=null,w=null){this.path=n,this.collectionGroup=i,this.orderBy=s,this.filters=u,this.limit=f,this.startAt=_,this.endAt=w,this.ue=null}}function qo(l,n=null,i=[],s=[],u=null,f=null,_=null){return new ca(l,n,i,s,u,f,_)}function bs(l){const n=de(l);if(null===n.ue){let i=n.path.canonicalString();null!==n.collectionGroup&&(i+="|cg:"+n.collectionGroup),i+="|f:",i+=n.filters.map(s=>xa(s)).join(","),i+="|ob:",i+=n.orderBy.map(s=>{return(f=s).field.canonicalString()+f.dir;var f}).join(","),ri(n.limit)||(i+="|l:",i+=n.limit),n.startAt&&(i+="|lb:",i+=n.startAt.inclusive?"b:":"a:",i+=n.startAt.position.map(s=>sr(s)).join(",")),n.endAt&&(i+="|ub:",i+=n.endAt.inclusive?"a:":"b:",i+=n.endAt.position.map(s=>sr(s)).join(",")),n.ue=i}return n.ue}function Xo(l,n){if(l.limit!==n.limit||l.orderBy.length!==n.orderBy.length)return!1;for(let i=0;i0?n.explicitOrderBy[n.explicitOrderBy.length-1].dir:"asc";(function(_){let w=new kn(Jt.comparator);return _.filters.forEach(N=>{N.getFlattenedFilters().forEach(z=>{z.isInequality()&&(w=w.add(z.field))})}),w})(n).forEach(f=>{i.has(f.canonicalString())||f.isKeyField()||n.ce.push(new ci(f,s))}),i.has(Jt.keyField().canonicalString())||n.ce.push(new ci(Jt.keyField(),s))}return n.ce}function On(l){const n=de(l);return n.le||(n.le=function Ji(l,n){if("F"===l.limitType)return qo(l.path,l.collectionGroup,n,l.filters,l.limit,l.startAt,l.endAt);{n=n.map(u=>new ci(u.field,"desc"===u.dir?"asc":"desc"));const i=l.endAt?new nr(l.endAt.position,l.endAt.inclusive):null,s=l.startAt?new nr(l.startAt.position,l.startAt.inclusive):null;return qo(l.path,l.collectionGroup,n,l.filters,l.limit,i,s)}}(n,nn(l))),n.le}function eo(l,n,i){return new L(l.path,l.collectionGroup,l.explicitOrderBy.slice(),l.filters.slice(),n,i,l.startAt,l.endAt)}function Qo(l,n){return Xo(On(l),On(n))&&l.limitType===n.limitType}function Na(l){return`${bs(On(l))}|lt:${l.limitType}`}function vs(l){return`Query(target=${function(i){let s=i.path.canonicalString();return null!==i.collectionGroup&&(s+=" collectionGroup="+i.collectionGroup),i.filters.length>0&&(s+=`, filters: [${i.filters.map(u=>Pr(u)).join(", ")}]`),ri(i.limit)||(s+=", limit: "+i.limit),i.orderBy.length>0&&(s+=`, orderBy: [${i.orderBy.map(u=>{return`${(_=u).field.canonicalString()} (${_.dir})`;var _}).join(", ")}]`),i.startAt&&(s+=", startAt: ",s+=i.startAt.inclusive?"b:":"a:",s+=i.startAt.position.map(u=>sr(u)).join(",")),i.endAt&&(s+=", endAt: ",s+=i.endAt.inclusive?"a:":"b:",s+=i.endAt.position.map(u=>sr(u)).join(",")),`Target(${s})`}(On(l))}; limitType=${l.limitType})`}function Bs(l,n){return n.isFoundDocument()&&function(s,u){const f=u.key.path;return null!==s.collectionGroup?u.key.hasCollectionId(s.collectionGroup)&&s.path.isPrefixOf(f):Gt.isDocumentKey(s.path)?s.path.isEqual(f):s.path.isImmediateParentOf(f)}(l,n)&&function(s,u){for(const f of nn(s))if(!f.field.isKeyField()&&null===u.data.field(f.field))return!1;return!0}(l,n)&&function(s,u){for(const f of s.filters)if(!f.matches(u))return!1;return!0}(l,n)&&(u=n,!((s=l).startAt&&!function(_,w,N){const z=li(_,w,N);return _.inclusive?z<=0:z<0}(s.startAt,nn(s),u)||s.endAt&&!function(_,w,N){const z=li(_,w,N);return _.inclusive?z>=0:z>0}(s.endAt,nn(s),u)));var s,u}function sl(l){return(n,i)=>{let s=!1;for(const u of nn(l)){const f=al(u,n,i);if(0!==f)return f;s=s||u.field.isKeyField()}return 0}}function al(l,n,i){const s=l.field.isKeyField()?Gt.comparator(n.key,i.key):function(f,_,w){const N=_.data.field(f),z=w.data.field(f);return null!==N&&null!==z?fe(N,z):B()}(l.field,n,i);switch(l.dir){case"asc":return s;case"desc":return-1*s;default:return B()}}class as{constructor(n,i){this.mapKeyFn=n,this.equalsFn=i,this.inner={},this.innerSize=0}get(n){const i=this.mapKeyFn(n),s=this.inner[i];if(void 0!==s)for(const[u,f]of s)if(this.equalsFn(u,n))return f}has(n){return void 0!==this.get(n)}set(n,i){const s=this.mapKeyFn(n),u=this.inner[s];if(void 0===u)return this.inner[s]=[[n,i]],void this.innerSize++;for(let f=0;f{for(const[u,f]of s)n(u,f)})}isEmpty(){return ti(this.inner)}size(){return this.innerSize}}const ha=new mr(Gt.comparator);function Jn(){return ha}const Oi=new mr(Gt.comparator);function Ti(...l){let n=Oi;for(const i of l)n=n.insert(i.key,i);return n}function ro(l){let n=Oi;return l.forEach((i,s)=>n=n.insert(i,s.overlayedDocument)),n}function Hr(){return ls()}function ll(){return ls()}function ls(){return new as(l=>l.toString(),(l,n)=>l.isEqual(n))}const _s=new mr(Gt.comparator),Vl=new kn(Gt.comparator);function vr(...l){let n=Vl;for(const i of l)n=n.add(i);return n}const ul=new kn(Ve);function ka(l,n){if(l.useProto3Json){if(isNaN(n))return{doubleValue:"NaN"};if(n===1/0)return{doubleValue:"Infinity"};if(n===-1/0)return{doubleValue:"-Infinity"}}return{doubleValue:xn(n)?"-0":n}}function js(l){return{integerValue:""+l}}function cl(l,n){return function Rn(l){return"number"==typeof l&&Number.isInteger(l)&&!xn(l)&&l<=Number.MAX_SAFE_INTEGER&&l>=Number.MIN_SAFE_INTEGER}(n)?js(n):ka(l,n)}class Fa{constructor(){this._=void 0}}function Ll(l,n,i){return l instanceof Is?function(u,f){const _={fields:{__type__:{stringValue:"server_timestamp"},__local_write_time__:{timestampValue:{seconds:u.seconds,nanos:u.nanoseconds}}}};return f&&Fo(f)&&(f=Ao(f)),f&&(_.fields.__previous_value__=f),{mapValue:_}}(i,n):l instanceof ws?Yo(l,n):l instanceof Ss?dl(l,n):function(u,f){const _=fa(u,f),w=wu(_)+wu(u.Pe);return Ae(_)&&Ae(u.Pe)?js(w):ka(u.serializer,w)}(l,n)}function Ul(l,n,i){return l instanceof ws?Yo(l,n):l instanceof Ss?dl(l,n):i}function fa(l,n){return l instanceof Zo?Ae(s=n)||(f=s)&&"doubleValue"in f?n:{integerValue:0}:null;var s,f}class Is extends Fa{}class ws extends Fa{constructor(n){super(),this.elements=n}}function Yo(l,n){const i=$l(n);for(const s of l.elements)i.some(u=>ue(u,s))||i.push(s);return{arrayValue:{values:i}}}class Ss extends Fa{constructor(n){super(),this.elements=n}}function dl(l,n){let i=$l(n);for(const s of l.elements)i=i.filter(u=>!ue(u,s));return{arrayValue:{values:i}}}class Zo extends Fa{constructor(n,i){super(),this.serializer=n,this.Pe=i}}function wu(l){return ai(l.integerValue||l.doubleValue)}function $l(l){return ke(l)&&l.arrayValue.values?l.arrayValue.values.slice():[]}class Rs{constructor(n,i){this.version=n,this.transformResults=i}}class Di{constructor(n,i){this.updateTime=n,this.exists=i}static none(){return new Di}static exists(n){return new Di(void 0,n)}static updateTime(n){return new Di(n)}get isNone(){return void 0===this.updateTime&&void 0===this.exists}isEqual(n){return this.exists===n.exists&&(this.updateTime?!!n.updateTime&&this.updateTime.isEqual(n.updateTime):!n.updateTime)}}function pa(l,n){return void 0!==l.updateTime?n.isFoundDocument()&&n.version.isEqual(l.updateTime):void 0===l.exists||l.exists===n.isFoundDocument()}class Bl{}function ga(l,n){if(!l.hasLocalMutations||n&&0===n.fields.length)return null;if(null===n)return l.isNoDocument()?new V(l.key,Di.none()):new Ms(l.key,l.data,Di.none());{const i=l.data,s=In.empty();let u=new kn(Jt.comparator);for(let f of n.fields)if(!u.has(f)){let _=i.field(f);null===_&&f.length>1&&(f=f.popLast(),_=i.field(f)),null===_?s.delete(f):s.set(f,_),u=u.add(f)}return new lo(l.key,s,new Bi(u.toArray()),Di.none())}}function Va(l,n,i){l instanceof Ms?function(u,f,_){const w=u.value.clone(),N=Es(u.fieldTransforms,f,_.transformResults);w.setAll(N),f.convertToFoundDocument(_.version,w).setHasCommittedMutations()}(l,n,i):l instanceof lo?function(u,f,_){if(!pa(u.precondition,f))return void f.convertToUnknownDocument(_.version);const w=Es(u.fieldTransforms,f,_.transformResults),N=f.data;N.setAll(Hs(u)),N.setAll(w),f.convertToFoundDocument(_.version,N).setHasCommittedMutations()}(l,n,i):n.convertToNoDocument(i.version).setHasCommittedMutations()}function zs(l,n,i,s){return l instanceof Ms?function(f,_,w,N){if(!pa(f.precondition,_))return w;const z=f.value.clone(),se=D(f.fieldTransforms,N,_);return z.setAll(se),_.convertToFoundDocument(_.version,z).setHasLocalMutations(),null}(l,n,i,s):l instanceof lo?function(f,_,w,N){if(!pa(f.precondition,_))return w;const z=D(f.fieldTransforms,N,_),se=_.data;return se.setAll(Hs(f)),se.setAll(z),_.convertToFoundDocument(_.version,se).setHasLocalMutations(),null===w?null:w.unionWith(f.fieldMask.fields).unionWith(f.fieldTransforms.map(we=>we.field))}(l,n,i,s):(w=i,pa(l.precondition,_=n)?(_.convertToNoDocument(_.version).setHasLocalMutations(),null):w);var _,w}function pc(l,n){let i=null;for(const s of l.fieldTransforms){const u=n.data.field(s.field),f=fa(s.transform,u||null);null!=f&&(null===i&&(i=In.empty()),i.set(s.field,f))}return i||null}function ma(l,n){return l.type===n.type&&!!l.key.isEqual(n.key)&&!!l.precondition.isEqual(n.precondition)&&(u=n.fieldTransforms,!!(void 0===(s=l.fieldTransforms)&&void 0===u||s&&u&&yt(s,u,(f,_)=>function Jo(l,n){return l.field.isEqual(n.field)&&(u=n.transform,(s=l.transform)instanceof ws&&u instanceof ws||s instanceof Ss&&u instanceof Ss?yt(s.elements,u.elements,ue):s instanceof Zo&&u instanceof Zo?ue(s.Pe,u.Pe):s instanceof Is&&u instanceof Is);var s,u}(f,_))))&&(0===l.type?l.value.isEqual(n.value):1!==l.type||l.data.isEqual(n.data)&&l.fieldMask.isEqual(n.fieldMask));var s,u}class Ms extends Bl{constructor(n,i,s,u=[]){super(),this.key=n,this.value=i,this.precondition=s,this.fieldTransforms=u,this.type=0}getFieldMask(){return null}}class lo extends Bl{constructor(n,i,s,u,f=[]){super(),this.key=n,this.data=i,this.fieldMask=s,this.precondition=u,this.fieldTransforms=f,this.type=1}getFieldMask(){return this.fieldMask}}function Hs(l){const n=new Map;return l.fieldMask.fields.forEach(i=>{if(!i.isEmpty()){const s=l.data.field(i);n.set(i,s)}}),n}function Es(l,n,i){const s=new Map;W(l.length===i.length);for(let u=0;u{const f=n.get(u.key),_=f.overlayedDocument;let w=this.applyToLocalView(_,f.mutatedFields);w=i.has(u.key)?null:w;const N=ga(_,w);null!==N&&s.set(u.key,N),_.isValidDocument()||_.convertToNoDocument(en.min())}),s}keys(){return this.mutations.reduce((n,i)=>n.add(i.key),vr())}isEqual(n){return this.batchId===n.batchId&&yt(this.mutations,n.mutations,(i,s)=>ma(i,s))&&yt(this.baseMutations,n.baseMutations,(i,s)=>ma(i,s))}}class le{constructor(n,i,s,u){this.batch=n,this.commitVersion=i,this.mutationResults=s,this.docVersions=u}static from(n,i,s){W(n.mutations.length===s.length);let u=function(){return _s}();const f=n.mutations;for(let _=0;_=8)throw new Kr(`Invalid padding: ${i}`);if(s<0)throw new Kr(`Invalid hash count: ${s}`);if(n.length>0&&0===this.hashCount)throw new Kr(`Invalid hash count: ${s}`);if(0===n.length&&0!==i)throw new Kr(`Invalid padding when bitmap length is 0: ${i}`);this.Ie=8*n.length-i,this.Te=$e.fromNumber(this.Ie)}Ee(n,i,s){let u=n.add(i.multiply($e.fromNumber(s)));return 1===u.compare(ki)&&(u=new $e([u.getBits(0),u.getBits(1)],0)),u.modulo(this.Te).toNumber()}de(n){return!!(this.bitmap[Math.floor(n/8)]&1<_.insert(w)),_}insert(n){if(0===this.Ie)return;const i=Gr(n),[s,u]=un(i);for(let f=0;f0&&(this.we=!0,this.pe=n)}Ce(){let n=vr(),i=vr(),s=vr();return this.ge.forEach((u,f)=>{switch(f){case 0:n=n.add(u);break;case 2:i=i.add(u);break;case 1:s=s.add(u);break;default:B()}}),new _i(this.pe,this.ye,n,i,s)}ve(){this.we=!1,this.ge=La()}Fe(n,i){this.we=!0,this.ge=this.ge.insert(n,i)}Me(n){this.we=!0,this.ge=this.ge.remove(n)}xe(){this.fe+=1}Oe(){this.fe-=1,W(this.fe>=0)}Ne(){this.we=!0,this.ye=!0}}class Uo{constructor(n){this.Le=n,this.Be=new Map,this.ke=Jn(),this.qe=fr(),this.Qe=new mr(Ve)}Ke(n){for(const i of n.Re)n.Ve&&n.Ve.isFoundDocument()?this.$e(i,n.Ve):this.Ue(i,n.key,n.Ve);for(const i of n.removedTargetIds)this.Ue(i,n.key,n.Ve)}We(n){this.forEachTarget(n,i=>{const s=this.Ge(i);switch(n.state){case 0:this.ze(i)&&s.De(n.resumeToken);break;case 1:s.Oe(),s.Se||s.ve(),s.De(n.resumeToken);break;case 2:s.Oe(),s.Se||this.removeTarget(i);break;case 3:this.ze(i)&&(s.Ne(),s.De(n.resumeToken));break;case 4:this.ze(i)&&(this.je(i),s.De(n.resumeToken));break;default:B()}})}forEachTarget(n,i){n.targetIds.length>0?n.targetIds.forEach(i):this.Be.forEach((s,u)=>{this.ze(u)&&i(u)})}He(n){const i=n.targetId,s=n.me.count,u=this.Je(i);if(u){const f=u.target;if(bo(f))if(0===s){const _=new Gt(f.path);this.Ue(i,_,cr.newNoDocument(_,en.min()))}else W(1===s);else{const _=this.Ye(i);if(_!==s){const w=this.Ze(n),N=w?this.Xe(w,n,_):1;0!==N&&(this.je(i),this.Qe=this.Qe.insert(i,2===N?"TargetPurposeExistenceFilterMismatchBloom":"TargetPurposeExistenceFilterMismatch"))}}}}Ze(n){const i=n.me.unchangedNames;if(!i||!i.bits)return null;const{bits:{bitmap:s="",padding:u=0},hashCount:f=0}=i;let _,w;try{_=jn(s).toUint8Array()}catch(N){if(N instanceof is)return pt("Decoding the base64 bloom filter in existence filter failed ("+N.message+"); ignoring the bloom filter and falling back to full re-query."),null;throw N}try{w=new Vn(_,u,f)}catch(N){return pt(N instanceof Kr?"BloomFilter error: ":"Applying bloom filter failed: ",N),null}return 0===w.Ie?null:w}Xe(n,i,s){return i.me.count===s-this.nt(n,i.targetId)?0:2}nt(n,i){const s=this.Le.getRemoteKeysForTarget(i);let u=0;return s.forEach(f=>{const _=this.Le.tt(),w=`projects/${_.projectId}/databases/${_.database}/documents/${f.path.canonicalString()}`;n.mightContain(w)||(this.Ue(i,f,null),u++)}),u}rt(n){const i=new Map;this.Be.forEach((f,_)=>{const w=this.Je(_);if(w){if(f.current&&bo(w.target)){const N=new Gt(w.target.path);null!==this.ke.get(N)||this.it(_,N)||this.Ue(_,N,cr.newNoDocument(N,n))}f.be&&(i.set(_,f.Ce()),f.ve())}});let s=vr();this.qe.forEach((f,_)=>{let w=!0;_.forEachWhile(N=>{const z=this.Je(N);return!z||"TargetPurposeLimboResolution"===z.purpose||(w=!1,!1)}),w&&(s=s.add(f))}),this.ke.forEach((f,_)=>_.setReadTime(n));const u=new Hi(n,i,this.Qe,this.ke,s);return this.ke=Jn(),this.qe=fr(),this.Qe=new mr(Ve),u}$e(n,i){if(!this.ze(n))return;const s=this.it(n,i.key)?2:0;this.Ge(n).Fe(i.key,s),this.ke=this.ke.insert(i.key,i),this.qe=this.qe.insert(i.key,this.st(i.key).add(n))}Ue(n,i,s){if(!this.ze(n))return;const u=this.Ge(n);this.it(n,i)?u.Fe(i,1):u.Me(i),this.qe=this.qe.insert(i,this.st(i).delete(n)),s&&(this.ke=this.ke.insert(i,s))}removeTarget(n){this.Be.delete(n)}Ye(n){const i=this.Ge(n).Ce();return this.Le.getRemoteKeysForTarget(n).size+i.addedDocuments.size-i.removedDocuments.size}xe(n){this.Ge(n).xe()}Ge(n){let i=this.Be.get(n);return i||(i=new zi,this.Be.set(n,i)),i}st(n){let i=this.qe.get(n);return i||(i=new kn(Ve),this.qe=this.qe.insert(n,i)),i}ze(n){const i=null!==this.Je(n);return i||Be("WatchChangeAggregator","Detected inactive target",n),i}Je(n){const i=this.Be.get(n);return i&&i.Se?null:this.Le.ot(n)}je(n){this.Be.set(n,new zi),this.Le.getRemoteKeysForTarget(n).forEach(i=>{this.Ue(n,i,null)})}it(n,i){return this.Le.getRemoteKeysForTarget(n).has(i)}}function fr(){return new mr(Gt.comparator)}function La(){return new mr(Gt.comparator)}const gc={asc:"ASCENDING",desc:"DESCENDING"},Ua={"<":"LESS_THAN","<=":"LESS_THAN_OR_EQUAL",">":"GREATER_THAN",">=":"GREATER_THAN_OR_EQUAL","==":"EQUAL","!=":"NOT_EQUAL","array-contains":"ARRAY_CONTAINS",in:"IN","not-in":"NOT_IN","array-contains-any":"ARRAY_CONTAINS_ANY"},Wi={and:"AND",or:"OR"};class va{constructor(n,i){this.databaseId=n,this.useProto3Json=i}}function es(l,n){return l.useProto3Json||ri(n)?n:{value:n}}function wo(l,n){return l.useProto3Json?`${new Date(1e3*n.seconds).toISOString().replace(/\.\d*/,"").replace("Z","")}.${("000000000"+n.nanoseconds).slice(-9)}Z`:{seconds:""+n.seconds,nanos:n.nanoseconds}}function Gs(l,n){return l.useProto3Json?n.toBase64():n.toUint8Array()}function jl(l,n){return wo(l,n.toTimestamp())}function Lr(l){return W(!!l),en.fromTimestamp(function(i){const s=Or(i);return new Xt(s.seconds,s.nanos)}(l))}function _a(l,n){return Ws(l,n).canonicalString()}function Ws(l,n){const i=(u=l,new gn(["projects",u.projectId,"databases",u.database])).child("documents");var u;return void 0===n?i:i.child(n)}function Dr(l){const n=gn.fromString(l);return W(Td(n)),n}function $a(l,n){return _a(l.databaseId,n.path)}function No(l,n){const i=Dr(n);if(i.get(1)!==l.databaseId.projectId)throw new me(ae.INVALID_ARGUMENT,"Tried to deserialize key from different project: "+i.get(1)+" vs "+l.databaseId.projectId);if(i.get(3)!==l.databaseId.database)throw new me(ae.INVALID_ARGUMENT,"Tried to deserialize key from different database: "+i.get(3)+" vs "+l.databaseId.database);return new Gt(Vi(i))}function $o(l,n){return _a(l.databaseId,n)}function Ks(l){return new gn(["projects",l.databaseId.projectId,"databases",l.databaseId.database]).canonicalString()}function Vi(l){return W(l.length>4&&"documents"===l.get(4)),l.popFirst(5)}function Su(l,n,i){return{name:$a(l,n),fields:i.value.mapValue.fields}}function Hl(l,n){return{documents:[$o(l,n.path)]}}function Gl(l,n){const i={structuredQuery:{}},s=n.path;let u;null!==n.collectionGroup?(u=s,i.structuredQuery.from=[{collectionId:n.collectionGroup,allDescendants:!0}]):(u=s.popLast(),i.structuredQuery.from=[{collectionId:s.lastSegment()}]),i.parent=$o(l,u);const f=function(z){if(0!==z.length)return Ad(Wr.create(z,"and"))}(n.filters);f&&(i.structuredQuery.where=f);const _=function(z){if(0!==z.length)return z.map(se=>{return{field:qs((We=se).field),direction:ja(We.dir)};var We})}(n.orderBy);_&&(i.structuredQuery.orderBy=_);const w=es(l,n.limit);return null!==w&&(i.structuredQuery.limit=w),n.startAt&&(i.structuredQuery.startAt={before:(z=n.startAt).inclusive,values:z.position}),n.endAt&&(i.structuredQuery.endAt=function(z){return{before:!z.inclusive,values:z.position}}(n.endAt)),{_t:i,parent:u};var z}function Ea(l){let n=function ya(l){const n=Dr(l);return 4===n.length?gn.emptyPath():Vi(n)}(l.parent);const i=l.structuredQuery,s=i.from?i.from.length:0;let u=null;if(s>0){W(1===s);const se=i.from[0];se.allDescendants?u=se.collectionId:n=n.child(se.collectionId)}let f=[];i.where&&(f=function(we){const We=Ba(we);return We instanceof Wr&&Ko(We)?We.getFilters():[We]}(i.where));let _=[];i.orderBy&&(_=i.orderBy.map(We=>{return new ci(Xs((tn=We).field),function(ln){switch(ln){case"ASCENDING":return"asc";case"DESCENDING":return"desc";default:return}}(tn.direction));var tn}));let w=null;i.limit&&(w=function(we){let We;return We="object"==typeof we?we.value:we,ri(We)?null:We}(i.limit));let N=null;var we;i.startAt&&(N=new nr((we=i.startAt).values||[],!!we.before));let z=null;return i.endAt&&(z=function(we){return new nr(we.values||[],!we.before)}(i.endAt)),function P(l,n,i,s,u,f,_,w){return new L(l,n,i,s,u,f,_,w)}(n,u,_,f,w,"F",N,z)}function Ba(l){return void 0!==l.unaryFilter?function(i){switch(i.unaryFilter.op){case"IS_NAN":const s=Xs(i.unaryFilter.field);return dr.create(s,"==",{doubleValue:NaN});case"IS_NULL":const u=Xs(i.unaryFilter.field);return dr.create(u,"==",{nullValue:"NULL_VALUE"});case"IS_NOT_NAN":const f=Xs(i.unaryFilter.field);return dr.create(f,"!=",{doubleValue:NaN});case"IS_NOT_NULL":const _=Xs(i.unaryFilter.field);return dr.create(_,"!=",{nullValue:"NULL_VALUE"});default:return B()}}(l):void 0!==l.fieldFilter?dr.create(Xs((i=l).fieldFilter.field),function(u){switch(u){case"EQUAL":return"==";case"NOT_EQUAL":return"!=";case"GREATER_THAN":return">";case"GREATER_THAN_OR_EQUAL":return">=";case"LESS_THAN":return"<";case"LESS_THAN_OR_EQUAL":return"<=";case"ARRAY_CONTAINS":return"array-contains";case"IN":return"in";case"NOT_IN":return"not-in";case"ARRAY_CONTAINS_ANY":return"array-contains-any";default:return B()}}(i.fieldFilter.op),i.fieldFilter.value):void 0!==l.compositeFilter?function(i){return Wr.create(i.compositeFilter.filters.map(s=>Ba(s)),function(u){switch(u){case"AND":return"and";case"OR":return"or";default:return B()}}(i.compositeFilter.op))}(l):B();var i}function ja(l){return gc[l]}function Gh(l){return Ua[l]}function mc(l){return Wi[l]}function qs(l){return{fieldPath:l.canonicalString()}}function Xs(l){return Jt.fromServerFormat(l.fieldPath)}function Ad(l){return l instanceof dr?function(i){if("=="===i.op){if(et(i.value))return{unaryFilter:{field:qs(i.field),op:"IS_NAN"}};if(ot(i.value))return{unaryFilter:{field:qs(i.field),op:"IS_NULL"}}}else if("!="===i.op){if(et(i.value))return{unaryFilter:{field:qs(i.field),op:"IS_NOT_NAN"}};if(ot(i.value))return{unaryFilter:{field:qs(i.field),op:"IS_NOT_NULL"}}}return{fieldFilter:{field:qs(i.field),op:Gh(i.op),value:i.value}}}(l):l instanceof Wr?function(i){const s=i.getFilters().map(u=>Ad(u));return 1===s.length?s[0]:{compositeFilter:{op:mc(i.op),filters:s}}}(l):B()}function Cd(l){const n=[];return l.fields.forEach(i=>n.push(i.canonicalString())),{fieldPaths:n}}function Td(l){return l.length>=4&&"projects"===l.get(0)&&"databases"===l.get(2)}class Aa{constructor(n,i,s,u,f=en.min(),_=en.min(),w=si.EMPTY_BYTE_STRING,N=null){this.target=n,this.targetId=i,this.purpose=s,this.sequenceNumber=u,this.snapshotVersion=f,this.lastLimboFreeSnapshotVersion=_,this.resumeToken=w,this.expectedCount=N}withSequenceNumber(n){return new Aa(this.target,this.targetId,this.purpose,n,this.snapshotVersion,this.lastLimboFreeSnapshotVersion,this.resumeToken,this.expectedCount)}withResumeToken(n,i){return new Aa(this.target,this.targetId,this.purpose,this.sequenceNumber,i,this.lastLimboFreeSnapshotVersion,n,null)}withExpectedCount(n){return new Aa(this.target,this.targetId,this.purpose,this.sequenceNumber,this.snapshotVersion,this.lastLimboFreeSnapshotVersion,this.resumeToken,n)}withLastLimboFreeSnapshotVersion(n){return new Aa(this.target,this.targetId,this.purpose,this.sequenceNumber,this.snapshotVersion,n,this.resumeToken,this.expectedCount)}}class Wh{constructor(n){this.ct=n}}function ve(l){const n=Ea({parent:l.parent,structuredQuery:l.structuredQuery});return"LAST"===l.limitType?eo(n,n.limit,"L"):n}class Bo{constructor(){}Pt(n,i){this.It(n,i),i.Tt()}It(n,i){if("nullValue"in n)this.Et(i,5);else if("booleanValue"in n)this.Et(i,10),i.dt(n.booleanValue?1:0);else if("integerValue"in n)this.Et(i,15),i.dt(ai(n.integerValue));else if("doubleValue"in n){const s=ai(n.doubleValue);isNaN(s)?this.Et(i,13):(this.Et(i,15),xn(s)?i.dt(0):i.dt(s))}else if("timestampValue"in n){let s=n.timestampValue;this.Et(i,20),"string"==typeof s&&(s=Or(s)),i.At(`${s.seconds||""}`),i.dt(s.nanos||0)}else if("stringValue"in n)this.Rt(n.stringValue,i),this.Vt(i);else if("bytesValue"in n)this.Et(i,30),i.ft(jn(n.bytesValue)),this.Vt(i);else if("referenceValue"in n)this.gt(n.referenceValue,i);else if("geoPointValue"in n){const s=n.geoPointValue;this.Et(i,45),i.dt(s.latitude||0),i.dt(s.longitude||0)}else"mapValue"in n?Kt(n)?this.Et(i,Number.MAX_SAFE_INTEGER):(this.yt(n.mapValue,i),this.Vt(i)):"arrayValue"in n?(this.wt(n.arrayValue,i),this.Vt(i)):B()}Rt(n,i){this.Et(i,25),this.St(n,i)}St(n,i){i.At(n)}yt(n,i){const s=n.fields||{};this.Et(i,55);for(const u of Object.keys(s))this.Rt(u,i),this.It(s[u],i)}wt(n,i){const s=n.values||[];this.Et(i,50);for(const u of s)this.It(u,i)}gt(n,i){this.Et(i,37),Gt.fromName(n).path.forEach(s=>{this.Et(i,60),this.St(s,i)})}Et(n,i){n.dt(i)}Vt(n){n.dt(2)}}Bo.bt=new Bo;class Cs{constructor(){this._n=new yc}addToCollectionParentIndex(n,i){return this._n.add(i),oe.resolve()}getCollectionParents(n,i){return oe.resolve(this._n.getEntries(i))}addFieldIndex(n,i){return oe.resolve()}deleteFieldIndex(n,i){return oe.resolve()}deleteAllFieldIndexes(n){return oe.resolve()}createTargetIndexes(n,i){return oe.resolve()}getDocumentsMatchingTarget(n,i){return oe.resolve(null)}getIndexType(n,i){return oe.resolve(0)}getFieldIndexes(n,i){return oe.resolve([])}getNextCollectionGroupToUpdate(n){return oe.resolve(null)}getMinOffset(n,i){return oe.resolve(Sr.min())}getMinOffsetFromCollectionGroup(n,i){return oe.resolve(Sr.min())}updateCollectionGroup(n,i,s){return oe.resolve()}updateIndexEntries(n,i){return oe.resolve()}}class yc{constructor(){this.index={}}add(n){const i=n.lastSegment(),s=n.popLast(),u=this.index[i]||new kn(gn.comparator),f=!u.has(s);return this.index[i]=u.add(s),f}has(n){const i=n.lastSegment(),s=n.popLast(),u=this.index[i];return u&&u.has(s)}getEntries(n){return(this.index[n]||new kn(gn.comparator)).toArray()}}new Uint8Array(0);class Gn{constructor(n,i,s){this.cacheSizeCollectionThreshold=n,this.percentileToCollect=i,this.maximumSequenceNumbersToCollect=s}static withCacheSize(n){return new Gn(n,Gn.DEFAULT_COLLECTION_PERCENTILE,Gn.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT)}}Gn.DEFAULT_COLLECTION_PERCENTILE=10,Gn.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT=1e3,Gn.DEFAULT=new Gn(41943040,Gn.DEFAULT_COLLECTION_PERCENTILE,Gn.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT),Gn.DISABLED=new Gn(-1,0,0);class gl{constructor(n){this.On=n}next(){return this.On+=2,this.On}static Nn(){return new gl(0)}static Ln(){return new gl(-1)}}class Js{constructor(){this.changes=new as(n=>n.toString(),(n,i)=>n.isEqual(i)),this.changesApplied=!1}addEntry(n){this.assertNotApplied(),this.changes.set(n.key,n)}removeEntry(n,i){this.assertNotApplied(),this.changes.set(n,cr.newInvalidDocument(n).setReadTime(i))}getEntry(n,i){this.assertNotApplied();const s=this.changes.get(i);return void 0!==s?oe.resolve(s):this.getFromCache(n,i)}getEntries(n,i){return this.getAllFromCache(n,i)}apply(n){return this.assertNotApplied(),this.changesApplied=!0,this.applyChanges(n)}assertNotApplied(){}}class Ts{constructor(n,i){this.overlayedDocument=n,this.mutatedFields=i}}class na{constructor(n,i,s,u){this.remoteDocumentCache=n,this.mutationQueue=i,this.documentOverlayCache=s,this.indexManager=u}getDocument(n,i){let s=null;return this.documentOverlayCache.getOverlay(n,i).next(u=>(s=u,this.remoteDocumentCache.getEntry(n,i))).next(u=>(null!==s&&zs(s.mutation,u,Bi.empty(),Xt.now()),u))}getDocuments(n,i){return this.remoteDocumentCache.getEntries(n,i).next(s=>this.getLocalViewOfDocuments(n,s,vr()).next(()=>s))}getLocalViewOfDocuments(n,i,s=vr()){const u=Hr();return this.populateOverlays(n,u,i).next(()=>this.computeViews(n,i,u,s).next(f=>{let _=Ti();return f.forEach((w,N)=>{_=_.insert(w,N.overlayedDocument)}),_}))}getOverlayedDocuments(n,i){const s=Hr();return this.populateOverlays(n,s,i).next(()=>this.computeViews(n,i,s,vr()))}populateOverlays(n,i,s){const u=[];return s.forEach(f=>{i.has(f)||u.push(f)}),this.documentOverlayCache.getOverlays(n,u).next(f=>{f.forEach((_,w)=>{i.set(_,w)})})}computeViews(n,i,s,u){let f=Jn();const _=ls(),w=ls();return i.forEach((N,z)=>{const se=s.get(z.key);u.has(z.key)&&(void 0===se||se.mutation instanceof lo)?f=f.insert(z.key,z):void 0!==se?(_.set(z.key,se.mutation.getFieldMask()),zs(se.mutation,z,se.mutation.getFieldMask(),Xt.now())):_.set(z.key,Bi.empty())}),this.recalculateAndSaveOverlays(n,f).next(N=>(N.forEach((z,se)=>_.set(z,se)),i.forEach((z,se)=>{var we;return w.set(z,new Ts(se,null!==(we=_.get(z))&&void 0!==we?we:null))}),w))}recalculateAndSaveOverlays(n,i){const s=ls();let u=new mr((_,w)=>_-w),f=vr();return this.mutationQueue.getAllMutationBatchesAffectingDocumentKeys(n,i).next(_=>{for(const w of _)w.keys().forEach(N=>{const z=i.get(N);if(null===z)return;let se=s.get(N)||Bi.empty();se=w.applyToLocalView(z,se),s.set(N,se);const we=(u.get(w.batchId)||vr()).add(N);u=u.insert(w.batchId,we)})}).next(()=>{const _=[],w=u.getReverseIterator();for(;w.hasNext();){const N=w.getNext(),z=N.key,se=N.value,we=ll();se.forEach(We=>{if(!f.has(We)){const Rt=ga(i.get(We),s.get(We));null!==Rt&&we.set(We,Rt),f=f.add(We)}}),_.push(this.documentOverlayCache.saveOverlays(n,z,we))}return oe.waitFor(_)}).next(()=>s)}recalculateAndSaveOverlaysForDocumentKeys(n,i){return this.remoteDocumentCache.getEntries(n,i).next(s=>this.recalculateAndSaveOverlays(n,s))}getDocumentsMatchingQuery(n,i,s,u){return Gt.isDocumentKey((_=i).path)&&null===_.collectionGroup&&0===_.filters.length?this.getDocumentsMatchingDocumentQuery(n,i.path):function Te(l){return null!==l.collectionGroup}(i)?this.getDocumentsMatchingCollectionGroupQuery(n,i,s,u):this.getDocumentsMatchingCollectionQuery(n,i,s,u);var _}getNextDocuments(n,i,s,u){return this.remoteDocumentCache.getAllFromCollectionGroup(n,i,s,u).next(f=>{const _=u-f.size>0?this.documentOverlayCache.getOverlaysForCollectionGroup(n,i,s.largestBatchId,u-f.size):oe.resolve(Hr());let w=-1,N=f;return _.next(z=>oe.forEach(z,(se,we)=>(w{N=N.insert(se,We)}))).next(()=>this.populateOverlays(n,z,f)).next(()=>this.computeViews(n,N,z,vr())).next(se=>({batchId:w,changes:ro(se)})))})}getDocumentsMatchingDocumentQuery(n,i){return this.getDocument(n,new Gt(i)).next(s=>{let u=Ti();return s.isFoundDocument()&&(u=u.insert(s.key,s)),u})}getDocumentsMatchingCollectionGroupQuery(n,i,s,u){const f=i.collectionGroup;let _=Ti();return this.indexManager.getCollectionParents(n,f).next(w=>oe.forEach(w,N=>{const z=(we=i,We=N.child(f),new L(We,null,we.explicitOrderBy.slice(),we.filters.slice(),we.limit,we.limitType,we.startAt,we.endAt));var we,We;return this.getDocumentsMatchingCollectionQuery(n,z,s,u).next(se=>{se.forEach((we,We)=>{_=_.insert(we,We)})})}).next(()=>_))}getDocumentsMatchingCollectionQuery(n,i,s,u){let f;return this.documentOverlayCache.getOverlaysForCollection(n,i.path,s.largestBatchId).next(_=>(f=_,this.remoteDocumentCache.getDocumentsMatchingQuery(n,i,s,f,u))).next(_=>{f.forEach((N,z)=>{const se=z.getKey();null===_.get(se)&&(_=_.insert(se,cr.newInvalidDocument(se)))});let w=Ti();return _.forEach((N,z)=>{const se=f.get(N);void 0!==se&&zs(se.mutation,z,Bi.empty(),Xt.now()),Bs(i,z)&&(w=w.insert(N,z))}),w})}}class ng{constructor(n){this.serializer=n,this.cr=new Map,this.lr=new Map}getBundleMetadata(n,i){return oe.resolve(this.cr.get(i))}saveBundleMetadata(n,i){return this.cr.set(i.id,{id:(u=i).id,version:u.version,createTime:Lr(u.createTime)}),oe.resolve();var u}getNamedQuery(n,i){return oe.resolve(this.lr.get(i))}saveNamedQuery(n,i){return this.lr.set(i.name,{name:(u=i).name,query:ve(u.bundledQuery),readTime:Lr(u.readTime)}),oe.resolve();var u}}class Tc{constructor(){this.overlays=new mr(Gt.comparator),this.hr=new Map}getOverlay(n,i){return oe.resolve(this.overlays.get(i))}getOverlays(n,i){const s=Hr();return oe.forEach(i,u=>this.getOverlay(n,u).next(f=>{null!==f&&s.set(u,f)})).next(()=>s)}saveOverlays(n,i,s){return s.forEach((u,f)=>{this.ht(n,i,f)}),oe.resolve()}removeOverlaysForBatchId(n,i,s){const u=this.hr.get(s);return void 0!==u&&(u.forEach(f=>this.overlays=this.overlays.remove(f)),this.hr.delete(s)),oe.resolve()}getOverlaysForCollection(n,i,s){const u=Hr(),f=i.length+1,_=new Gt(i.child("")),w=this.overlays.getIteratorFrom(_);for(;w.hasNext();){const N=w.getNext().value,z=N.getKey();if(!i.isPrefixOf(z.path))break;z.path.length===f&&N.largestBatchId>s&&u.set(N.getKey(),N)}return oe.resolve(u)}getOverlaysForCollectionGroup(n,i,s,u){let f=new mr((z,se)=>z-se);const _=this.overlays.getIterator();for(;_.hasNext();){const z=_.getNext().value;if(z.getKey().getCollectionGroup()===i&&z.largestBatchId>s){let se=f.get(z.largestBatchId);null===se&&(se=Hr(),f=f.insert(z.largestBatchId,se)),se.set(z.getKey(),z)}}const w=Hr(),N=f.getIterator();for(;N.hasNext()&&(N.getNext().value.forEach((z,se)=>w.set(z,se)),!(w.size()>=u)););return oe.resolve(w)}ht(n,i,s){const u=this.overlays.get(s.key);if(null!==u){const _=this.hr.get(u.largestBatchId).delete(s.key);this.hr.set(u.largestBatchId,_)}this.overlays=this.overlays.insert(s.key,new xe(i,s));let f=this.hr.get(i);void 0===f&&(f=vr(),this.hr.set(i,f)),this.hr.set(i,f.add(s.key))}}class Md{constructor(){this.Pr=new kn(Io.Ir),this.Tr=new kn(Io.Er)}isEmpty(){return this.Pr.isEmpty()}addReference(n,i){const s=new Io(n,i);this.Pr=this.Pr.add(s),this.Tr=this.Tr.add(s)}dr(n,i){n.forEach(s=>this.addReference(s,i))}removeReference(n,i){this.Ar(new Io(n,i))}Rr(n,i){n.forEach(s=>this.removeReference(s,i))}Vr(n){const i=new Gt(new gn([])),s=new Io(i,n),u=new Io(i,n+1),f=[];return this.Tr.forEachInRange([s,u],_=>{this.Ar(_),f.push(_.key)}),f}mr(){this.Pr.forEach(n=>this.Ar(n))}Ar(n){this.Pr=this.Pr.delete(n),this.Tr=this.Tr.delete(n)}gr(n){const i=new Gt(new gn([])),s=new Io(i,n),u=new Io(i,n+1);let f=vr();return this.Tr.forEachInRange([s,u],_=>{f=f.add(_.key)}),f}containsKey(n){const i=new Io(n,0),s=this.Pr.firstAfterOrEqual(i);return null!==s&&n.isEqual(s.key)}}class Io{constructor(n,i){this.key=n,this.pr=i}static Ir(n,i){return Gt.comparator(n.key,i.key)||Ve(n.pr,i.pr)}static Er(n,i){return Ve(n.pr,i.pr)||Gt.comparator(n.key,i.key)}}class Pd{constructor(n,i){this.indexManager=n,this.referenceDelegate=i,this.mutationQueue=[],this.yr=1,this.wr=new kn(Io.Ir)}checkEmpty(n){return oe.resolve(0===this.mutationQueue.length)}addMutationBatch(n,i,s,u){const f=this.yr;this.yr++;const _=new O(f,i,s,u);this.mutationQueue.push(_);for(const w of u)this.wr=this.wr.add(new Io(w.key,f)),this.indexManager.addToCollectionParentIndex(n,w.key.path.popLast());return oe.resolve(_)}lookupMutationBatch(n,i){return oe.resolve(this.Sr(i))}getNextMutationBatchAfterBatchId(n,i){const u=this.br(i+1),f=u<0?0:u;return oe.resolve(this.mutationQueue.length>f?this.mutationQueue[f]:null)}getHighestUnacknowledgedBatchId(){return oe.resolve(0===this.mutationQueue.length?-1:this.yr-1)}getAllMutationBatches(n){return oe.resolve(this.mutationQueue.slice())}getAllMutationBatchesAffectingDocumentKey(n,i){const s=new Io(i,0),u=new Io(i,Number.POSITIVE_INFINITY),f=[];return this.wr.forEachInRange([s,u],_=>{const w=this.Sr(_.pr);f.push(w)}),oe.resolve(f)}getAllMutationBatchesAffectingDocumentKeys(n,i){let s=new kn(Ve);return i.forEach(u=>{const f=new Io(u,0),_=new Io(u,Number.POSITIVE_INFINITY);this.wr.forEachInRange([f,_],w=>{s=s.add(w.pr)})}),oe.resolve(this.Dr(s))}getAllMutationBatchesAffectingQuery(n,i){const s=i.path,u=s.length+1;let f=s;Gt.isDocumentKey(f)||(f=f.child(""));const _=new Io(new Gt(f),0);let w=new kn(Ve);return this.wr.forEachWhile(N=>{const z=N.key.path;return!!s.isPrefixOf(z)&&(z.length===u&&(w=w.add(N.pr)),!0)},_),oe.resolve(this.Dr(w))}Dr(n){const i=[];return n.forEach(s=>{const u=this.Sr(s);null!==u&&i.push(u)}),i}removeMutationBatch(n,i){W(0===this.Cr(i.batchId,"removed")),this.mutationQueue.shift();let s=this.wr;return oe.forEach(i.mutations,u=>{const f=new Io(u.key,i.batchId);return s=s.delete(f),this.referenceDelegate.markPotentiallyOrphaned(n,u.key)}).next(()=>{this.wr=s})}Mn(n){}containsKey(n,i){const s=new Io(i,0),u=this.wr.firstAfterOrEqual(s);return oe.resolve(i.isEqual(u&&u.key))}performConsistencyCheck(n){return oe.resolve()}Cr(n,i){return this.br(n)}br(n){return 0===this.mutationQueue.length?0:n-this.mutationQueue[0].batchId}Sr(n){const i=this.br(n);return i<0||i>=this.mutationQueue.length?null:this.mutationQueue[i]}}class Ou{constructor(n){this.vr=n,this.docs=new mr(Gt.comparator),this.size=0}setIndexManager(n){this.indexManager=n}addEntry(n,i){const s=i.key,u=this.docs.get(s),f=u?u.size:0,_=this.vr(i);return this.docs=this.docs.insert(s,{document:i.mutableCopy(),size:_}),this.size+=_-f,this.indexManager.addToCollectionParentIndex(n,s.path.popLast())}removeEntry(n){const i=this.docs.get(n);i&&(this.docs=this.docs.remove(n),this.size-=i.size)}getEntry(n,i){const s=this.docs.get(i);return oe.resolve(s?s.document.mutableCopy():cr.newInvalidDocument(i))}getEntries(n,i){let s=Jn();return i.forEach(u=>{const f=this.docs.get(u);s=s.insert(u,f?f.document.mutableCopy():cr.newInvalidDocument(u))}),oe.resolve(s)}getDocumentsMatchingQuery(n,i,s,u){let f=Jn();const _=i.path,w=new Gt(_.child("")),N=this.docs.getIteratorFrom(w);for(;N.hasNext();){const{key:z,value:{document:se}}=N.getNext();if(!_.isPrefixOf(z.path))break;z.path.length>_.length+1||tr(new Sr((l=se).readTime,l.key,-1),s)<=0||(u.has(se.key)||Bs(i,se))&&(f=f.insert(se.key,se.mutableCopy()))}var l;return oe.resolve(f)}getAllFromCollectionGroup(n,i,s,u){B()}Fr(n,i){return oe.forEach(this.docs,s=>i(s))}newChangeBuffer(n){return new xd(this)}getSize(n){return oe.resolve(this.size)}}class xd extends Js{constructor(n){super(),this.ar=n}applyChanges(n){const i=[];return this.changes.forEach((s,u)=>{u.isValidDocument()?i.push(this.ar.addEntry(n,u)):this.ar.removeEntry(s)}),oe.waitFor(i)}getFromCache(n,i){return this.ar.getEntry(n,i)}getAllFromCache(n,i){return this.ar.getEntries(n,i)}}class Dc{constructor(n){this.persistence=n,this.Mr=new as(i=>bs(i),Xo),this.lastRemoteSnapshotVersion=en.min(),this.highestTargetId=0,this.Or=0,this.Nr=new Md,this.targetCount=0,this.Lr=gl.Nn()}forEachTarget(n,i){return this.Mr.forEach((s,u)=>i(u)),oe.resolve()}getLastRemoteSnapshotVersion(n){return oe.resolve(this.lastRemoteSnapshotVersion)}getHighestSequenceNumber(n){return oe.resolve(this.Or)}allocateTargetId(n){return this.highestTargetId=this.Lr.next(),oe.resolve(this.highestTargetId)}setTargetsMetadata(n,i,s){return s&&(this.lastRemoteSnapshotVersion=s),i>this.Or&&(this.Or=i),oe.resolve()}qn(n){this.Mr.set(n.target,n);const i=n.targetId;i>this.highestTargetId&&(this.Lr=new gl(i),this.highestTargetId=i),n.sequenceNumber>this.Or&&(this.Or=n.sequenceNumber)}addTargetData(n,i){return this.qn(i),this.targetCount+=1,oe.resolve()}updateTargetData(n,i){return this.qn(i),oe.resolve()}removeTargetData(n,i){return this.Mr.delete(i.target),this.Nr.Vr(i.targetId),this.targetCount-=1,oe.resolve()}removeTargets(n,i,s){let u=0;const f=[];return this.Mr.forEach((_,w)=>{w.sequenceNumber<=i&&null===s.get(w.targetId)&&(this.Mr.delete(_),f.push(this.removeMatchingKeysForTargetId(n,w.targetId)),u++)}),oe.waitFor(f).next(()=>u)}getTargetCount(n){return oe.resolve(this.targetCount)}getTargetData(n,i){const s=this.Mr.get(i)||null;return oe.resolve(s)}addMatchingKeys(n,i,s){return this.Nr.dr(i,s),oe.resolve()}removeMatchingKeys(n,i,s){this.Nr.Rr(i,s);const u=this.persistence.referenceDelegate,f=[];return u&&i.forEach(_=>{f.push(u.markPotentiallyOrphaned(n,_))}),oe.waitFor(f)}removeMatchingKeysForTargetId(n,i){return this.Nr.Vr(i),oe.resolve()}getMatchingKeysForTargetId(n,i){const s=this.Nr.gr(i);return oe.resolve(s)}containsKey(n,i){return oe.resolve(this.Nr.containsKey(i))}}class bc{constructor(n,i){this.Br={},this.overlays={},this.kr=new ur(0),this.qr=!1,this.qr=!0,this.referenceDelegate=n(this),this.Qr=new Dc(this),this.indexManager=new Cs,this.remoteDocumentCache=new Ou(s=>this.referenceDelegate.Kr(s)),this.serializer=new Wh(i),this.$r=new ng(this.serializer)}start(){return Promise.resolve()}shutdown(){return this.qr=!1,Promise.resolve()}get started(){return this.qr}setDatabaseDeletedListener(){}setNetworkEnabled(){}getIndexManager(n){return this.indexManager}getDocumentOverlayCache(n){let i=this.overlays[n.toKey()];return i||(i=new Tc,this.overlays[n.toKey()]=i),i}getMutationQueue(n,i){let s=this.Br[n.toKey()];return s||(s=new Pd(i,this.referenceDelegate),this.Br[n.toKey()]=s),s}getTargetCache(){return this.Qr}getRemoteDocumentCache(){return this.remoteDocumentCache}getBundleCache(){return this.$r}runTransaction(n,i,s){Be("MemoryPersistence","Starting transaction:",n);const u=new Yh(this.kr.next());return this.referenceDelegate.Ur(),s(u).next(f=>this.referenceDelegate.Wr(u).next(()=>f)).toPromise().then(f=>(u.raiseOnCommittedEvent(),f))}Gr(n,i){return oe.or(Object.values(this.Br).map(s=>()=>s.containsKey(n,i)))}}class Yh extends Mi{constructor(n){super(),this.currentSequenceNumber=n}}class Da{constructor(n){this.persistence=n,this.zr=new Md,this.jr=null}static Hr(n){return new Da(n)}get Jr(){if(this.jr)return this.jr;throw B()}addReference(n,i,s){return this.zr.addReference(s,i),this.Jr.delete(s.toString()),oe.resolve()}removeReference(n,i,s){return this.zr.removeReference(s,i),this.Jr.add(s.toString()),oe.resolve()}markPotentiallyOrphaned(n,i){return this.Jr.add(i.toString()),oe.resolve()}removeTarget(n,i){this.zr.Vr(i.targetId).forEach(u=>this.Jr.add(u.toString()));const s=this.persistence.getTargetCache();return s.getMatchingKeysForTargetId(n,i.targetId).next(u=>{u.forEach(f=>this.Jr.add(f.toString()))}).next(()=>s.removeTargetData(n,i))}Ur(){this.jr=new Set}Wr(n){const i=this.persistence.getRemoteDocumentCache().newChangeBuffer();return oe.forEach(this.Jr,s=>{const u=Gt.fromPath(s);return this.Yr(n,u).next(f=>{f||i.removeEntry(u,en.min())})}).next(()=>(this.jr=null,i.apply(n)))}updateLimboDocument(n,i){return this.Yr(n,i).next(s=>{s?this.Jr.delete(i.toString()):this.Jr.add(i.toString())})}Kr(n){return 0}Yr(n,i){return oe.or([()=>oe.resolve(this.zr.containsKey(i)),()=>this.persistence.getTargetCache().containsKey(n,i),()=>this.persistence.Gr(n,i)])}}class yi{constructor(n,i,s,u){this.targetId=n,this.fromCache=i,this.qi=s,this.Qi=u}static Ki(n,i){let s=vr(),u=vr();for(const f of i.docChanges)switch(f.type){case 0:s=s.add(f.doc.key);break;case 1:u=u.add(f.doc.key)}return new yi(n,i.fromCache,s,u)}}class rg{constructor(){this._documentReadCount=0}get documentReadCount(){return this._documentReadCount}incrementDocumentReadCount(n){this._documentReadCount+=n}}class Jh{constructor(){this.$i=!1,this.Ui=!1,this.Wi=100,this.Gi=(0,De.nr)()?8:function Xe(l){const n=l.match(/Android ([\d.]+)/i),i=n?n[1].split(".").slice(0,2).join("."):"-1";return Number(i)}((0,De.ZQ)())>0?6:4}initialize(n,i){this.zi=n,this.indexManager=i,this.$i=!0}getDocumentsMatchingQuery(n,i,s,u){const f={result:null};return this.ji(n,i).next(_=>{f.result=_}).next(()=>{if(!f.result)return this.Hi(n,i,u,s).next(_=>{f.result=_})}).next(()=>{if(f.result)return;const _=new rg;return this.Ji(n,i,_).next(w=>{if(f.result=w,this.Ui)return this.Yi(n,i,_,w.size)})}).next(()=>f.result)}Yi(n,i,s,u){return s.documentReadCountthis.Gi*u?(Zt()<=Je.$b.DEBUG&&Be("QueryEngine","The SDK decides to create cache indexes for query:",vs(i),"as using cache indexes may help improve performance."),this.indexManager.createTargetIndexes(n,On(i))):oe.resolve())}ji(n,i){if($(i))return oe.resolve(null);let s=On(i);return this.indexManager.getIndexType(n,s).next(u=>0===u?null:(null!==i.limit&&1===u&&(i=eo(i,null,"F"),s=On(i)),this.indexManager.getDocumentsMatchingTarget(n,s).next(f=>{const _=vr(...f);return this.zi.getDocuments(n,_).next(w=>this.indexManager.getMinOffset(n,s).next(N=>{const z=this.Zi(i,w);return this.Xi(i,z,_,N.readTime)?this.ji(n,eo(i,null,"F")):this.es(n,z,i,N)}))})))}Hi(n,i,s,u){return $(i)||u.isEqual(en.min())?oe.resolve(null):this.zi.getDocuments(n,s).next(f=>{const _=this.Zi(i,f);return this.Xi(i,_,s,u)?oe.resolve(null):(Zt()<=Je.$b.DEBUG&&Be("QueryEngine","Re-using previous result from %s to execute query: %s",u.toString(),vs(i)),this.es(n,_,i,function Zn(l,n){const i=l.toTimestamp().seconds,s=l.toTimestamp().nanoseconds+1,u=en.fromTimestamp(1e9===s?new Xt(i+1,0):new Xt(i,s));return new Sr(u,Gt.empty(),n)}(u,-1)).next(w=>w))})}Zi(n,i){let s=new kn(sl(n));return i.forEach((u,f)=>{Bs(n,f)&&(s=s.add(f))}),s}Xi(n,i,s,u){if(null===n.limit)return!1;if(s.size!==i.size)return!0;const f="F"===n.limitType?i.last():i.first();return!!f&&(f.hasPendingWrites||f.version.compareTo(u)>0)}Ji(n,i,s){return Zt()<=Je.$b.DEBUG&&Be("QueryEngine","Using full collection scan to execute query:",vs(i)),this.zi.getDocumentsMatchingQuery(n,i,Sr.min(),s)}es(n,i,s,u){return this.zi.getDocumentsMatchingQuery(n,s,u).next(f=>(i.forEach(_=>{f=f.insert(_.key,_)}),f))}}class ig{constructor(n,i,s,u){this.persistence=n,this.ts=i,this.serializer=u,this.ns=new mr(Ve),this.rs=new as(f=>bs(f),Xo),this.ss=new Map,this.os=n.getRemoteDocumentCache(),this.Qr=n.getTargetCache(),this.$r=n.getBundleCache(),this._s(s)}_s(n){this.documentOverlayCache=this.persistence.getDocumentOverlayCache(n),this.indexManager=this.persistence.getIndexManager(n),this.mutationQueue=this.persistence.getMutationQueue(n,this.indexManager),this.localDocuments=new na(this.os,this.mutationQueue,this.documentOverlayCache,this.indexManager),this.os.setIndexManager(this.indexManager),this.ts.initialize(this.localDocuments,this.indexManager)}collectGarbage(n){return this.persistence.runTransaction("Collect garbage","readwrite-primary",i=>n.collect(i,this.ns))}}function Od(l,n){return Lu.apply(this,arguments)}function Lu(){return(Lu=(0,Ie.A)(function*(l,n){const i=de(l);return yield i.persistence.runTransaction("Handle user change","readonly",s=>{let u;return i.mutationQueue.getAllMutationBatches(s).next(f=>(u=f,i._s(n),i.mutationQueue.getAllMutationBatches(s))).next(f=>{const _=[],w=[];let N=vr();for(const z of u){_.push(z.batchId);for(const se of z.mutations)N=N.add(se.key)}for(const z of f){w.push(z.batchId);for(const se of z.mutations)N=N.add(se.key)}return i.localDocuments.getDocuments(s,N).next(z=>({us:z,removedBatchIds:_,addedBatchIds:w}))})})})).apply(this,arguments)}function Ns(l){const n=de(l);return n.persistence.runTransaction("Get last remote snapshot version","readonly",i=>n.Qr.getLastRemoteSnapshotVersion(i))}function Sc(l,n){const i=de(l);return i.persistence.runTransaction("Get next mutation batch","readonly",s=>(void 0===n&&(n=-1),i.mutationQueue.getNextMutationBatchAfterBatchId(s,n)))}function ia(l,n,i){return Rc.apply(this,arguments)}function Rc(){return(Rc=(0,Ie.A)(function*(l,n,i){const s=de(l),u=s.ns.get(n),f=i?"readwrite":"readwrite-primary";try{i||(yield s.persistence.runTransaction("Release target",f,_=>s.persistence.referenceDelegate.removeTarget(_,u)))}catch(_){if(!Pe(_))throw _;Be("LocalStore",`Failed to update sequence numbers for target ${n}: ${_}`)}s.ns=s.ns.remove(n),s.rs.delete(u.target)})).apply(this,arguments)}function vl(l,n,i){const s=de(l);let u=en.min(),f=vr();return s.persistence.runTransaction("Execute query","readwrite",_=>function(N,z,se){const we=de(N),We=we.rs.get(se);return void 0!==We?oe.resolve(we.ns.get(We)):we.Qr.getTargetData(z,se)}(s,_,On(n)).next(w=>{if(w)return u=w.lastLimboFreeSnapshotVersion,s.Qr.getMatchingKeysForTargetId(_,w.targetId).next(N=>{f=N})}).next(()=>s.ts.getDocumentsMatchingQuery(_,n,i?u:en.min(),i?f:vr())).next(w=>(function yl(l,n,i){let s=l.ss.get(n)||en.min();i.forEach((u,f)=>{f.readTime.compareTo(s)>0&&(s=f.readTime)}),l.ss.set(n,s)}(s,function Oa(l){return l.collectionGroup||(l.path.length%2==1?l.path.lastSegment():l.path.get(l.path.length-2))}(n),w),{documents:w,hs:f})))}class ju{constructor(){this.activeTargetIds=function ys(){return ul}()}As(n){this.activeTargetIds=this.activeTargetIds.add(n)}Rs(n){this.activeTargetIds=this.activeTargetIds.delete(n)}ds(){const n={activeTargetIds:this.activeTargetIds.toArray(),updateTimeMs:Date.now()};return JSON.stringify(n)}}class rf{constructor(){this.no=new ju,this.ro={},this.onlineStateHandler=null,this.sequenceNumberHandler=null}addPendingMutation(n){}updateMutationState(n,i,s){}addLocalQueryTarget(n){return this.no.As(n),this.ro[n]||"not-current"}updateQueryState(n,i,s){this.ro[n]=i}removeLocalQueryTarget(n){this.no.Rs(n)}isLocalQueryTarget(n){return this.no.activeTargetIds.has(n)}clearQueryState(n){delete this.ro[n]}getAllActiveQueryTargets(){return this.no.activeTargetIds}isActiveQueryTarget(n){return this.no.activeTargetIds.has(n)}start(){return this.no=new ju,Promise.resolve()}handleUserChange(n,i,s){}setOnlineState(n){}shutdown(){}writeSequenceNumber(n){}notifyBundleLoaded(n){}}class sf{io(n){}shutdown(){}}class Vd{constructor(){this.so=()=>this.oo(),this._o=()=>this.ao(),this.uo=[],this.co()}io(n){this.uo.push(n)}shutdown(){window.removeEventListener("online",this.so),window.removeEventListener("offline",this._o)}co(){window.addEventListener("online",this.so),window.addEventListener("offline",this._o)}oo(){Be("ConnectivityMonitor","Network connectivity changed: AVAILABLE");for(const n of this.uo)n(0)}ao(){Be("ConnectivityMonitor","Network connectivity changed: UNAVAILABLE");for(const n of this.uo)n(1)}static D(){return typeof window<"u"&&void 0!==window.addEventListener&&void 0!==window.removeEventListener}}let Nc=null;function Ds(){return null===Nc?Nc=268435456+Math.round(2147483648*Math.random()):Nc++,"0x"+Nc.toString(16)}const cv={BatchGetDocuments:"batchGet",Commit:"commit",RunQuery:"runQuery",RunAggregationQuery:"runAggregationQuery"};class zu{constructor(n){this.lo=n.lo,this.ho=n.ho}Po(n){this.Io=n}To(n){this.Eo=n}Ao(n){this.Ro=n}onMessage(n){this.Vo=n}close(){this.ho()}send(n){this.lo(n)}mo(){this.Io()}fo(){this.Eo()}po(n){this.Ro(n)}yo(n){this.Vo(n)}}const Ro="WebChannelConnection";class Ld extends class{constructor(i){this.databaseInfo=i,this.databaseId=i.databaseId;const s=i.ssl?"https":"http",u=encodeURIComponent(this.databaseId.projectId),f=encodeURIComponent(this.databaseId.database);this.wo=s+"://"+i.host,this.So=`projects/${u}/databases/${f}`,this.bo="(default)"===this.databaseId.database?`project_id=${u}`:`project_id=${u}&database_id=${f}`}get Do(){return!1}Co(i,s,u,f,_){const w=Ds(),N=this.vo(i,s.toUriEncodedString());Be("RestConnection",`Sending RPC '${i}' ${w}:`,N,u);const z={"google-cloud-resource-prefix":this.So,"x-goog-request-params":this.bo};return this.Fo(z,f,_),this.Mo(i,N,z,u).then(se=>(Be("RestConnection",`Received RPC '${i}' ${w}: `,se),se),se=>{throw pt("RestConnection",`RPC '${i}' ${w} failed with error: `,se,"url: ",N,"request:",u),se})}xo(i,s,u,f,_,w){return this.Co(i,s,u,f,_)}Fo(i,s,u){i["X-Goog-Api-Client"]="gl-js/ fire/"+Tt,i["Content-Type"]="text/plain",this.databaseInfo.appId&&(i["X-Firebase-GMPID"]=this.databaseInfo.appId),s&&s.headers.forEach((f,_)=>i[_]=f),u&&u.headers.forEach((f,_)=>i[_]=f)}vo(i,s){return`${this.wo}/v1/${s}:${cv[i]}`}terminate(){}}{constructor(n){super(n),this.forceLongPolling=n.forceLongPolling,this.autoDetectLongPolling=n.autoDetectLongPolling,this.useFetchStreams=n.useFetchStreams,this.longPollingOptions=n.longPollingOptions}Mo(n,i,s,u){const f=Ds();return new Promise((_,w)=>{const N=new ut;N.setWithCredentials(!0),N.listenOnce(mt.COMPLETE,()=>{try{switch(N.getLastErrorCode()){case vt.NO_ERROR:const se=N.getResponseJson();Be(Ro,`XHR for RPC '${n}' ${f} received:`,JSON.stringify(se)),_(se);break;case vt.TIMEOUT:Be(Ro,`RPC '${n}' ${f} timed out`),w(new me(ae.DEADLINE_EXCEEDED,"Request time out"));break;case vt.HTTP_ERROR:const we=N.getStatus();if(Be(Ro,`RPC '${n}' ${f} failed with status:`,we,"response text:",N.getResponseText()),we>0){let We=N.getResponseJson();Array.isArray(We)&&(We=We[0]);const Rt=null==We?void 0:We.error;if(Rt&&Rt.status&&Rt.message){const tn=function(ln){const zn=ln.toLowerCase().replace(/_/g,"-");return Object.values(ae).indexOf(zn)>=0?zn:ae.UNKNOWN}(Rt.status);w(new me(tn,Rt.message))}else w(new me(ae.UNKNOWN,"Server responded with status "+N.getStatus()))}else w(new me(ae.UNAVAILABLE,"Connection failed."));break;default:B()}}finally{Be(Ro,`RPC '${n}' ${f} completed.`)}});const z=JSON.stringify(u);Be(Ro,`RPC '${n}' ${f} sending request:`,u),N.send(i,"POST",z,s,15)})}Oo(n,i,s){const u=Ds(),f=[this.wo,"/","google.firestore.v1.Firestore","/",n,"/channel"],_=Ct(),w=Ke(),N={httpSessionIdParam:"gsessionid",initMessageHeaders:{},messageUrlParams:{database:`projects/${this.databaseId.projectId}/databases/${this.databaseId.database}`},sendRawJson:!0,supportsCrossDomainXhr:!0,internalChannelParams:{forwardChannelRequestTimeoutMs:6e5},forceLongPolling:this.forceLongPolling,detectBufferingProxy:this.autoDetectLongPolling},z=this.longPollingOptions.timeoutSeconds;void 0!==z&&(N.longPollingTimeout=Math.round(1e3*z)),this.useFetchStreams&&(N.xmlHttpFactory=new st({})),this.Fo(N.initMessageHeaders,i,s),N.encodeInitMessageHeaders=!0;const se=f.join("");Be(Ro,`Creating RPC '${n}' stream ${u}: ${se}`,N);const we=_.createWebChannel(se,N);let We=!1,Rt=!1;const tn=new zu({lo:ln=>{Rt?Be(Ro,`Not sending because RPC '${n}' stream ${u} is closed:`,ln):(We||(Be(Ro,`Opening RPC '${n}' stream ${u} transport.`),we.open(),We=!0),Be(Ro,`RPC '${n}' stream ${u} sending:`,ln),we.send(ln))},ho:()=>we.close()}),pn=(ln,zn,ar)=>{ln.listen(zn,Qn=>{try{ar(Qn)}catch(Rr){setTimeout(()=>{throw Rr},0)}})};return pn(we,Mt.EventType.OPEN,()=>{Rt||(Be(Ro,`RPC '${n}' stream ${u} transport opened.`),tn.mo())}),pn(we,Mt.EventType.CLOSE,()=>{Rt||(Rt=!0,Be(Ro,`RPC '${n}' stream ${u} transport closed`),tn.po())}),pn(we,Mt.EventType.ERROR,ln=>{Rt||(Rt=!0,pt(Ro,`RPC '${n}' stream ${u} transport errored:`,ln),tn.po(new me(ae.UNAVAILABLE,"The operation could not be completed")))}),pn(we,Mt.EventType.MESSAGE,ln=>{var zn;if(!Rt){const ar=ln.data[0];W(!!ar);const Rr=ar.error||(null===(zn=ar[0])||void 0===zn?void 0:zn.error);if(Rr){Be(Ro,`RPC '${n}' stream ${u} received error:`,Rr);const Ii=Rr.status;let zr=function(tt){const gt=Un[tt];if(void 0!==gt)return Tr(gt)}(Ii),ht=Rr.message;void 0===zr&&(zr=ae.INTERNAL,ht="Unknown error status: "+Ii+" with message "+Rr.message),Rt=!0,tn.po(new me(zr,ht)),we.close()}else Be(Ro,`RPC '${n}' stream ${u} received:`,ar),tn.yo(ar)}}),pn(w,je.STAT_EVENT,ln=>{ln.stat===Me.PROXY?Be(Ro,`RPC '${n}' stream ${u} detected buffering proxy`):ln.stat===Me.NOPROXY&&Be(Ro,`RPC '${n}' stream ${u} detected no buffering proxy`)}),setTimeout(()=>{tn.fo()},0),tn}}function Al(){return typeof document<"u"?document:null}function Oc(l){return new va(l,!0)}class eu{constructor(n,i,s=1e3,u=1.5,f=6e4){this.oi=n,this.timerId=i,this.No=s,this.Lo=u,this.Bo=f,this.ko=0,this.qo=null,this.Qo=Date.now(),this.reset()}reset(){this.ko=0}Ko(){this.ko=this.Bo}$o(n){this.cancel();const i=Math.floor(this.ko+this.Uo()),s=Math.max(0,Date.now()-this.Qo),u=Math.max(0,i-s);u>0&&Be("ExponentialBackoff",`Backing off for ${u} ms (base delay: ${this.ko} ms, delay with jitter: ${i} ms, last attempt: ${s} ms ago)`),this.qo=this.oi.enqueueAfterDelay(this.timerId,u,()=>(this.Qo=Date.now(),n())),this.ko*=this.Lo,this.kothis.Bo&&(this.ko=this.Bo)}Wo(){null!==this.qo&&(this.qo.skipDelay(),this.qo=null)}cancel(){null!==this.qo&&(this.qo.cancel(),this.qo=null)}Uo(){return(Math.random()-.5)*this.ko}}class Ud{constructor(n,i,s,u,f,_,w,N){this.oi=n,this.Go=s,this.zo=u,this.connection=f,this.authCredentialsProvider=_,this.appCheckCredentialsProvider=w,this.listener=N,this.state=0,this.jo=0,this.Ho=null,this.Jo=null,this.stream=null,this.Yo=new eu(n,i)}Zo(){return 1===this.state||5===this.state||this.Xo()}Xo(){return 2===this.state||3===this.state}start(){4!==this.state?this.auth():this.e_()}stop(){var n=this;return(0,Ie.A)(function*(){n.Zo()&&(yield n.close(0))})()}t_(){this.state=0,this.Yo.reset()}n_(){this.Xo()&&null===this.Ho&&(this.Ho=this.oi.enqueueAfterDelay(this.Go,6e4,()=>this.r_()))}i_(n){this.s_(),this.stream.send(n)}r_(){var n=this;return(0,Ie.A)(function*(){if(n.Xo())return n.close(0)})()}s_(){this.Ho&&(this.Ho.cancel(),this.Ho=null)}o_(){this.Jo&&(this.Jo.cancel(),this.Jo=null)}close(n,i){var s=this;return(0,Ie.A)(function*(){s.s_(),s.o_(),s.Yo.cancel(),s.jo++,4!==n?s.Yo.reset():i&&i.code===ae.RESOURCE_EXHAUSTED?(rn(i.toString()),rn("Using maximum backoff delay to prevent overloading the backend."),s.Yo.Ko()):i&&i.code===ae.UNAUTHENTICATED&&3!==s.state&&(s.authCredentialsProvider.invalidateToken(),s.appCheckCredentialsProvider.invalidateToken()),null!==s.stream&&(s.__(),s.stream.close(),s.stream=null),s.state=n,yield s.listener.Ao(i)})()}__(){}auth(){this.state=1;const n=this.a_(this.jo),i=this.jo;Promise.all([this.authCredentialsProvider.getToken(),this.appCheckCredentialsProvider.getToken()]).then(([s,u])=>{this.jo===i&&this.u_(s,u)},s=>{n(()=>{const u=new me(ae.UNKNOWN,"Fetching auth token failed: "+s.message);return this.c_(u)})})}u_(n,i){const s=this.a_(this.jo);this.stream=this.l_(n,i),this.stream.Po(()=>{s(()=>this.listener.Po())}),this.stream.To(()=>{s(()=>(this.state=2,this.Jo=this.oi.enqueueAfterDelay(this.zo,1e4,()=>(this.Xo()&&(this.state=3),Promise.resolve())),this.listener.To()))}),this.stream.Ao(u=>{s(()=>this.c_(u))}),this.stream.onMessage(u=>{s(()=>this.onMessage(u))})}e_(){var n=this;this.state=5,this.Yo.$o((0,Ie.A)(function*(){n.state=0,n.start()}))}c_(n){return Be("PersistentStream",`close with error: ${n}`),this.stream=null,this.close(4,n)}a_(n){return i=>{this.oi.enqueueAndForget(()=>this.jo===n?i():(Be("PersistentStream","stream callback skipped by getCloseGuardedDispatcher."),Promise.resolve()))}}}class af extends Ud{constructor(n,i,s,u,f,_){super(n,"listen_stream_connection_backoff","listen_stream_idle","health_check_timeout",i,s,u,_),this.serializer=f}l_(n,i){return this.connection.Oo("Listen",n,i)}onMessage(n){this.Yo.reset();const i=function zl(l,n){let i;if("targetChange"in n){const s="NO_CHANGE"===(z=n.targetChange.targetChangeType||"NO_CHANGE")?0:"ADD"===z?1:"REMOVE"===z?2:"CURRENT"===z?3:"RESET"===z?4:B(),u=n.targetChange.targetIds||[],f=function(z,se){return z.useProto3Json?(W(void 0===se||"string"==typeof se),si.fromBase64String(se||"")):(W(void 0===se||se instanceof Buffer||se instanceof Uint8Array),si.fromUint8Array(se||new Uint8Array))}(l,n.targetChange.resumeToken),_=n.targetChange.cause,w=_&&function(z){const se=void 0===z.code?ae.UNKNOWN:Tr(z.code);return new me(se,z.message||"")}(_);i=new Jr(s,u,f,w||null)}else if("documentChange"in n){const s=n.documentChange,u=No(l,s.document.name),f=Lr(s.document.updateTime),_=s.document.createTime?Lr(s.document.createTime):en.min(),w=new In({mapValue:{fields:s.document.fields}}),N=cr.newFoundDocument(u,f,_,w);i=new Gi(s.targetIds||[],s.removedTargetIds||[],N.key,N)}else if("documentDelete"in n){const s=n.documentDelete,u=No(l,s.document),f=s.readTime?Lr(s.readTime):en.min(),_=cr.newNoDocument(u,f);i=new Gi([],s.removedTargetIds||[],_.key,_)}else if("documentRemove"in n){const s=n.documentRemove,u=No(l,s.document);i=new Gi([],s.removedTargetIds||[],u,null)}else{if(!("filter"in n))return B();{const s=n.filter,{count:u=0,unchangedNames:f}=s,_=new an(u,f);i=new Fi(s.targetId,_)}}var z;return i}(this.serializer,n),s=function(f){if(!("targetChange"in f))return en.min();const _=f.targetChange;return _.targetIds&&_.targetIds.length?en.min():_.readTime?Lr(_.readTime):en.min()}(n);return this.listener.h_(i,s)}P_(n){const i={};i.database=Ks(this.serializer),i.addTarget=function(f,_){let w;const N=_.target;if(w=bo(N)?{documents:Hl(f,N)}:{query:Gl(f,N)._t},w.targetId=_.targetId,_.resumeToken.approximateByteSize()>0){w.resumeToken=Gs(f,_.resumeToken);const z=es(f,_.expectedCount);null!==z&&(w.expectedCount=z)}else if(_.snapshotVersion.compareTo(en.min())>0){w.readTime=wo(f,_.snapshotVersion.toTimestamp());const z=es(f,_.expectedCount);null!==z&&(w.expectedCount=z)}return w}(this.serializer,n);const s=function Mu(l,n){const i=function(u){switch(u){case"TargetPurposeListen":return null;case"TargetPurposeExistenceFilterMismatch":return"existence-filter-mismatch";case"TargetPurposeExistenceFilterMismatchBloom":return"existence-filter-mismatch-bloom";case"TargetPurposeLimboResolution":return"limbo-document";default:return B()}}(n.purpose);return null==i?null:{"goog-listen-tags":i}}(0,n);s&&(i.labels=s),this.i_(i)}I_(n){const i={};i.database=Ks(this.serializer),i.removeTarget=n,this.i_(i)}}class lf extends Ud{constructor(n,i,s,u,f,_){super(n,"write_stream_connection_backoff","write_stream_idle","health_check_timeout",i,s,u,_),this.serializer=f,this.T_=!1}get E_(){return this.T_}start(){this.T_=!1,this.lastStreamToken=void 0,super.start()}__(){this.T_&&this.d_([])}l_(n,i){return this.connection.Oo("Write",n,i)}onMessage(n){if(W(!!n.streamToken),this.lastStreamToken=n.streamToken,this.T_){this.Yo.reset();const i=function us(l,n){return l&&l.length>0?(W(void 0!==n),l.map(i=>function(u,f){let _=Lr(u.updateTime?u.updateTime:f);return _.isEqual(en.min())&&(_=Lr(f)),new Rs(_,u.transformResults||[])}(i,n))):[]}(n.writeResults,n.commitTime),s=Lr(n.commitTime);return this.listener.A_(s,i)}return W(!n.writeResults||0===n.writeResults.length),this.T_=!0,this.listener.R_()}V_(){const n={};n.database=Ks(this.serializer),this.i_(n)}d_(n){const i={streamToken:this.lastStreamToken,writes:n.map(s=>function As(l,n){let i;if(n instanceof Ms)i={update:Su(l,n.key,n.value)};else if(n instanceof V)i={delete:$a(l,n.key)};else if(n instanceof lo)i={update:Su(l,n.key,n.data),updateMask:Cd(n.fieldMask)};else{if(!(n instanceof be))return B();i={verify:$a(l,n.key)}}return n.fieldTransforms.length>0&&(i.updateTransforms=n.fieldTransforms.map(s=>function(f,_){const w=_.transform;if(w instanceof Is)return{fieldPath:_.field.canonicalString(),setToServerValue:"REQUEST_TIME"};if(w instanceof ws)return{fieldPath:_.field.canonicalString(),appendMissingElements:{values:w.elements}};if(w instanceof Ss)return{fieldPath:_.field.canonicalString(),removeAllFromArray:{values:w.elements}};if(w instanceof Zo)return{fieldPath:_.field.canonicalString(),increment:w.Pe};throw B()}(0,s))),n.precondition.isNone||(i.currentDocument=void 0!==(f=n.precondition).updateTime?{updateTime:jl(l,f.updateTime)}:void 0!==f.exists?{exists:f.exists}:B()),i;var f}(this.serializer,s))};this.i_(i)}}class sg extends class{}{constructor(n,i,s,u){super(),this.authCredentials=n,this.appCheckCredentials=i,this.connection=s,this.serializer=u,this.m_=!1}f_(){if(this.m_)throw new me(ae.FAILED_PRECONDITION,"The client has already been terminated.")}Co(n,i,s,u){return this.f_(),Promise.all([this.authCredentials.getToken(),this.appCheckCredentials.getToken()]).then(([f,_])=>this.connection.Co(n,Ws(i,s),u,f,_)).catch(f=>{throw"FirebaseError"===f.name?(f.code===ae.UNAUTHENTICATED&&(this.authCredentials.invalidateToken(),this.appCheckCredentials.invalidateToken()),f):new me(ae.UNKNOWN,f.toString())})}xo(n,i,s,u,f){return this.f_(),Promise.all([this.authCredentials.getToken(),this.appCheckCredentials.getToken()]).then(([_,w])=>this.connection.xo(n,Ws(i,s),u,_,w,f)).catch(_=>{throw"FirebaseError"===_.name?(_.code===ae.UNAUTHENTICATED&&(this.authCredentials.invalidateToken(),this.appCheckCredentials.invalidateToken()),_):new me(ae.UNKNOWN,_.toString())})}terminate(){this.m_=!0,this.connection.terminate()}}class $d{constructor(n,i){this.asyncQueue=n,this.onlineStateHandler=i,this.state="Unknown",this.g_=0,this.p_=null,this.y_=!0}w_(){0===this.g_&&(this.S_("Unknown"),this.p_=this.asyncQueue.enqueueAfterDelay("online_state_timeout",1e4,()=>(this.p_=null,this.b_("Backend didn't respond within 10 seconds."),this.S_("Offline"),Promise.resolve())))}D_(n){"Online"===this.state?this.S_("Unknown"):(this.g_++,this.g_>=1&&(this.C_(),this.b_(`Connection failed 1 times. Most recent error: ${n.toString()}`),this.S_("Offline")))}set(n){this.C_(),this.g_=0,"Online"===n&&(this.y_=!1),this.S_(n)}S_(n){n!==this.state&&(this.state=n,this.onlineStateHandler(n))}b_(n){const i=`Could not reach Cloud Firestore backend. ${n}\nThis typically indicates that your device does not have a healthy Internet connection at the moment. The client will operate in offline mode until it is able to successfully connect to the backend.`;this.y_?(rn(i),this.y_=!1):Be("OnlineStateTracker",i)}C_(){null!==this.p_&&(this.p_.cancel(),this.p_=null)}}class Cl{constructor(n,i,s,u,f){var _=this;this.localStore=n,this.datastore=i,this.asyncQueue=s,this.remoteSyncer={},this.v_=[],this.F_=new Map,this.M_=new Set,this.x_=[],this.O_=f,this.O_.io(w=>{s.enqueueAndForget((0,Ie.A)(function*(){var N;Qa(_)&&(Be("RemoteStore","Restarting streams for network reachability change."),yield(N=(0,Ie.A)(function*(se){const we=de(se);we.M_.add(4),yield tu(we),we.N_.set("Unknown"),we.M_.delete(4),yield kc(we)}),function z(se){return N.apply(this,arguments)})(_))}))}),this.N_=new $d(s,u)}}function kc(l){return Fc.apply(this,arguments)}function Fc(){return(Fc=(0,Ie.A)(function*(l){if(Qa(l))for(const n of l.x_)yield n(!0)})).apply(this,arguments)}function tu(l){return Tl.apply(this,arguments)}function Tl(){return(Tl=(0,Ie.A)(function*(l){for(const n of l.x_)yield n(!1)})).apply(this,arguments)}function Xa(l,n){const i=de(l);i.F_.has(n.targetId)||(i.F_.set(n.targetId,n),df(i)?Hu(i):qu(i).Xo()&&uf(i,n))}function Yi(l,n){const i=de(l),s=qu(i);i.F_.delete(n),s.Xo()&&cf(i,n),0===i.F_.size&&(s.Xo()?s.n_():Qa(i)&&i.N_.set("Unknown"))}function uf(l,n){if(l.L_.xe(n.targetId),n.resumeToken.approximateByteSize()>0||n.snapshotVersion.compareTo(en.min())>0){const i=l.remoteSyncer.getRemoteKeysForTarget(n.targetId).size;n=n.withExpectedCount(i)}qu(l).P_(n)}function cf(l,n){l.L_.xe(n),qu(l).I_(n)}function Hu(l){l.L_=new Uo({getRemoteKeysForTarget:n=>l.remoteSyncer.getRemoteKeysForTarget(n),ot:n=>l.F_.get(n)||null,tt:()=>l.datastore.serializer.databaseId}),qu(l).start(),l.N_.w_()}function df(l){return Qa(l)&&!qu(l).Zo()&&l.F_.size>0}function Qa(l){return 0===de(l).M_.size}function Vc(l){l.L_=void 0}function ag(l){return Bd.apply(this,arguments)}function Bd(){return(Bd=(0,Ie.A)(function*(l){l.N_.set("Online")})).apply(this,arguments)}function hf(l){return Gu.apply(this,arguments)}function Gu(){return(Gu=(0,Ie.A)(function*(l){l.F_.forEach((n,i)=>{uf(l,n)})})).apply(this,arguments)}function lg(l,n){return ff.apply(this,arguments)}function ff(){return(ff=(0,Ie.A)(function*(l,n){Vc(l),df(l)?(l.N_.D_(n),Hu(l)):l.N_.set("Unknown")})).apply(this,arguments)}function dv(l,n,i){return pf.apply(this,arguments)}function pf(){return pf=(0,Ie.A)(function*(l,n,i){if(l.N_.set("Online"),n instanceof Jr&&2===n.state&&n.cause)try{yield(s=(0,Ie.A)(function*(f,_){const w=_.cause;for(const N of _.targetIds)f.F_.has(N)&&(yield f.remoteSyncer.rejectListen(N,w),f.F_.delete(N),f.L_.removeTarget(N))}),function u(f,_){return s.apply(this,arguments)})(l,n)}catch(s){Be("RemoteStore","Failed to remove targets %s: %s ",n.targetIds.join(","),s),yield Lc(l,s)}else if(n instanceof Gi?l.L_.Ke(n):n instanceof Fi?l.L_.He(n):l.L_.We(n),!i.isEqual(en.min()))try{const s=yield Ns(l.localStore);i.compareTo(s)>=0&&(yield function(f,_){const w=f.L_.rt(_);return w.targetChanges.forEach((N,z)=>{if(N.resumeToken.approximateByteSize()>0){const se=f.F_.get(z);se&&f.F_.set(z,se.withResumeToken(N.resumeToken,_))}}),w.targetMismatches.forEach((N,z)=>{const se=f.F_.get(N);if(!se)return;f.F_.set(N,se.withResumeToken(si.EMPTY_BYTE_STRING,se.snapshotVersion)),cf(f,N);const we=new Aa(se.target,N,z,se.sequenceNumber);uf(f,we)}),f.remoteSyncer.applyRemoteEvent(w)}(l,i))}catch(s){Be("RemoteStore","Failed to raise snapshot:",s),yield Lc(l,s)}var s}),pf.apply(this,arguments)}function Lc(l,n,i){return gf.apply(this,arguments)}function gf(){return(gf=(0,Ie.A)(function*(l,n,i){if(!Pe(n))throw n;l.M_.add(1),yield tu(l),l.N_.set("Offline"),i||(i=()=>Ns(l.localStore)),l.asyncQueue.enqueueRetryable((0,Ie.A)(function*(){Be("RemoteStore","Retrying IndexedDB access"),yield i(),l.M_.delete(1),yield kc(l)}))})).apply(this,arguments)}function mf(l,n){return n().catch(i=>Lc(l,i,n))}function Wu(l){return vf.apply(this,arguments)}function vf(){return(vf=(0,Ie.A)(function*(l){const n=de(l),i=nu(n);let s=n.v_.length>0?n.v_[n.v_.length-1].batchId:-1;for(;hy(n);)try{const u=yield Sc(n.localStore,s);if(null===u){0===n.v_.length&&i.n_();break}s=u.batchId,ug(n,u)}catch(u){yield Lc(n,u)}_f(n)&&ds(n)})).apply(this,arguments)}function hy(l){return Qa(l)&&l.v_.length<10}function ug(l,n){l.v_.push(n);const i=nu(l);i.Xo()&&i.E_&&i.d_(n.mutations)}function _f(l){return Qa(l)&&!nu(l).Zo()&&l.v_.length>0}function ds(l){nu(l).start()}function fy(l){return jd.apply(this,arguments)}function jd(){return(jd=(0,Ie.A)(function*(l){nu(l).V_()})).apply(this,arguments)}function py(l){return Uc.apply(this,arguments)}function Uc(){return(Uc=(0,Ie.A)(function*(l){const n=nu(l);for(const i of l.v_)n.d_(i.mutations)})).apply(this,arguments)}function Ya(l,n,i){return zd.apply(this,arguments)}function zd(){return(zd=(0,Ie.A)(function*(l,n,i){const s=l.v_.shift(),u=le.from(s,n,i);yield mf(l,()=>l.remoteSyncer.applySuccessfulWrite(u)),yield Wu(l)})).apply(this,arguments)}function Ku(l,n){return yf.apply(this,arguments)}function yf(){return yf=(0,Ie.A)(function*(l,n){var i;n&&nu(l).E_&&(yield(i=(0,Ie.A)(function*(u,f){if(function Fr(l){switch(l){default:return B();case ae.CANCELLED:case ae.UNKNOWN:case ae.DEADLINE_EXCEEDED:case ae.RESOURCE_EXHAUSTED:case ae.INTERNAL:case ae.UNAVAILABLE:case ae.UNAUTHENTICATED:return!1;case ae.INVALID_ARGUMENT:case ae.NOT_FOUND:case ae.ALREADY_EXISTS:case ae.PERMISSION_DENIED:case ae.FAILED_PRECONDITION:case ae.ABORTED:case ae.OUT_OF_RANGE:case ae.UNIMPLEMENTED:case ae.DATA_LOSS:return!0}}(w=f.code)&&w!==ae.ABORTED){const _=u.v_.shift();nu(u).t_(),yield mf(u,()=>u.remoteSyncer.rejectFailedWrite(_.batchId,f)),yield Wu(u)}var w}),function s(u,f){return i.apply(this,arguments)})(l,n)),_f(l)&&ds(l)}),yf.apply(this,arguments)}function cg(l,n){return Hd.apply(this,arguments)}function Hd(){return(Hd=(0,Ie.A)(function*(l,n){const i=de(l);i.asyncQueue.verifyOperationInProgress(),Be("RemoteStore","RemoteStore received new credentials");const s=Qa(i);i.M_.add(3),yield tu(i),s&&i.N_.set("Unknown"),yield i.remoteSyncer.handleCredentialChange(n),i.M_.delete(3),yield kc(i)})).apply(this,arguments)}function dg(l,n){return hg.apply(this,arguments)}function hg(){return(hg=(0,Ie.A)(function*(l,n){const i=de(l);n?(i.M_.delete(2),yield kc(i)):n||(i.M_.add(2),yield tu(i),i.N_.set("Unknown"))})).apply(this,arguments)}function qu(l){return l.B_||(l.B_=function(i,s,u){const f=de(i);return f.f_(),new af(s,f.connection,f.authCredentials,f.appCheckCredentials,f.serializer,u)}(l.datastore,l.asyncQueue,{Po:ag.bind(null,l),To:hf.bind(null,l),Ao:lg.bind(null,l),h_:dv.bind(null,l)}),l.x_.push(function(){var n=(0,Ie.A)(function*(i){i?(l.B_.t_(),df(l)?Hu(l):l.N_.set("Unknown")):(yield l.B_.stop(),Vc(l))});return function(i){return n.apply(this,arguments)}}())),l.B_}function nu(l){return l.k_||(l.k_=function(i,s,u){const f=de(i);return f.f_(),new lf(s,f.connection,f.authCredentials,f.appCheckCredentials,f.serializer,u)}(l.datastore,l.asyncQueue,{Po:()=>Promise.resolve(),To:fy.bind(null,l),Ao:Ku.bind(null,l),R_:py.bind(null,l),A_:Ya.bind(null,l)}),l.x_.push(function(){var n=(0,Ie.A)(function*(i){i?(l.k_.t_(),yield Wu(l)):(yield l.k_.stop(),l.v_.length>0&&(Be("RemoteStore",`Stopping write stream with ${l.v_.length} pending writes`),l.v_=[]))});return function(i){return n.apply(this,arguments)}}())),l.k_}class fg{constructor(n,i,s,u,f){this.asyncQueue=n,this.timerId=i,this.targetTimeMs=s,this.op=u,this.removalCallback=f,this.deferred=new Ce,this.then=this.deferred.promise.then.bind(this.deferred.promise),this.deferred.promise.catch(_=>{})}get promise(){return this.deferred.promise}static createAndSchedule(n,i,s,u,f){const _=Date.now()+s,w=new fg(n,i,_,u,f);return w.start(s),w}start(n){this.timerHandle=setTimeout(()=>this.handleDelayElapsed(),n)}skipDelay(){return this.handleDelayElapsed()}cancel(n){null!==this.timerHandle&&(this.clearTimeout(),this.deferred.reject(new me(ae.CANCELLED,"Operation cancelled"+(n?": "+n:""))))}handleDelayElapsed(){this.asyncQueue.enqueueAndForget(()=>null!==this.timerHandle?(this.clearTimeout(),this.op().then(n=>this.deferred.resolve(n))):Promise.resolve())}clearTimeout(){null!==this.timerHandle&&(this.removalCallback(this),clearTimeout(this.timerHandle),this.timerHandle=null)}}function Xu(l,n){if(rn("AsyncQueue",`${n}: ${l}`),Pe(l))return new me(ae.UNAVAILABLE,`${n}: ${l}`);throw l}class oa{constructor(n){this.comparator=n?(i,s)=>n(i,s)||Gt.comparator(i.key,s.key):(i,s)=>Gt.comparator(i.key,s.key),this.keyedMap=Ti(),this.sortedSet=new mr(this.comparator)}static emptySet(n){return new oa(n.comparator)}has(n){return null!=this.keyedMap.get(n)}get(n){return this.keyedMap.get(n)}first(){return this.sortedSet.minKey()}last(){return this.sortedSet.maxKey()}isEmpty(){return this.sortedSet.isEmpty()}indexOf(n){const i=this.keyedMap.get(n);return i?this.sortedSet.indexOf(i):-1}get size(){return this.sortedSet.size}forEach(n){this.sortedSet.inorderTraversal((i,s)=>(n(i),!1))}add(n){const i=this.delete(n.key);return i.copy(i.keyedMap.insert(n.key,n),i.sortedSet.insert(n,null))}delete(n){const i=this.get(n);return i?this.copy(this.keyedMap.remove(n),this.sortedSet.remove(i)):this}isEqual(n){if(!(n instanceof oa)||this.size!==n.size)return!1;const i=this.sortedSet.getIterator(),s=n.sortedSet.getIterator();for(;i.hasNext();){const u=i.getNext().key,f=s.getNext().key;if(!u.isEqual(f))return!1}return!0}toString(){const n=[];return this.forEach(i=>{n.push(i.toString())}),0===n.length?"DocumentSet ()":"DocumentSet (\n "+n.join(" \n")+"\n)"}copy(n,i){const s=new oa;return s.comparator=this.comparator,s.keyedMap=n,s.sortedSet=i,s}}class Qu{constructor(){this.q_=new mr(Gt.comparator)}track(n){const i=n.doc.key,s=this.q_.get(i);s?0!==n.type&&3===s.type?this.q_=this.q_.insert(i,n):3===n.type&&1!==s.type?this.q_=this.q_.insert(i,{type:s.type,doc:n.doc}):2===n.type&&2===s.type?this.q_=this.q_.insert(i,{type:2,doc:n.doc}):2===n.type&&0===s.type?this.q_=this.q_.insert(i,{type:0,doc:n.doc}):1===n.type&&0===s.type?this.q_=this.q_.remove(i):1===n.type&&2===s.type?this.q_=this.q_.insert(i,{type:1,doc:s.doc}):0===n.type&&1===s.type?this.q_=this.q_.insert(i,{type:2,doc:n.doc}):B():this.q_=this.q_.insert(i,n)}Q_(){const n=[];return this.q_.inorderTraversal((i,s)=>{n.push(s)}),n}}class ru{constructor(n,i,s,u,f,_,w,N,z){this.query=n,this.docs=i,this.oldDocs=s,this.docChanges=u,this.mutatedKeys=f,this.fromCache=_,this.syncStateChanged=w,this.excludesMetadataChanges=N,this.hasCachedResults=z}static fromInitialDocuments(n,i,s,u,f){const _=[];return i.forEach(w=>{_.push({type:0,doc:w})}),new ru(n,i,oa.emptySet(i),_,s,u,!0,!1,f)}get hasPendingWrites(){return!this.mutatedKeys.isEmpty()}isEqual(n){if(!(this.fromCache===n.fromCache&&this.hasCachedResults===n.hasCachedResults&&this.syncStateChanged===n.syncStateChanged&&this.mutatedKeys.isEqual(n.mutatedKeys)&&Qo(this.query,n.query)&&this.docs.isEqual(n.docs)&&this.oldDocs.isEqual(n.oldDocs)))return!1;const i=this.docChanges,s=n.docChanges;if(i.length!==s.length)return!1;for(let u=0;un.G_())}}class If{constructor(){this.queries=new as(n=>Na(n),Qo),this.onlineState="Unknown",this.z_=new Set}}function Ef(){return(Ef=(0,Ie.A)(function*(l,n){const i=de(l);let s=3;const u=n.query;let f=i.queries.get(u);f?!f.W_()&&n.G_()&&(s=2):(f=new hv,s=n.G_()?0:1);try{switch(s){case 0:f.K_=yield i.onListen(u,!0);break;case 1:f.K_=yield i.onListen(u,!1);break;case 2:yield i.onFirstRemoteStoreListen(u)}}catch(_){const w=Xu(_,`Initialization of query '${vs(n.query)}' failed`);return void n.onError(w)}i.queries.set(u,f),f.U_.push(n),n.j_(i.onlineState),f.K_&&n.H_(f.K_)&&Gd(i)})).apply(this,arguments)}function iu(){return(iu=(0,Ie.A)(function*(l,n){const i=de(l),s=n.query;let u=3;const f=i.queries.get(s);if(f){const _=f.U_.indexOf(n);_>=0&&(f.U_.splice(_,1),0===f.U_.length?u=n.G_()?0:1:!f.W_()&&n.G_()&&(u=2))}switch(u){case 0:return i.queries.delete(s),i.onUnlisten(s,!0);case 1:return i.queries.delete(s),i.onUnlisten(s,!1);case 2:return i.onLastRemoteStoreUnlisten(s);default:return}})).apply(this,arguments)}function fv(l,n){const i=de(l);let s=!1;for(const u of n){const _=i.queries.get(u.query);if(_){for(const w of _.U_)w.H_(u)&&(s=!0);_.K_=u}}s&&Gd(i)}function pg(l,n,i){const s=de(l),u=s.queries.get(n);if(u)for(const f of u.U_)f.onError(i);s.queries.delete(n)}function Gd(l){l.z_.forEach(n=>{n.next()})}var E,h;(h=E||(E={})).J_="default",h.Cache="cache";class v{constructor(n,i,s){this.query=n,this.Y_=i,this.Z_=!1,this.X_=null,this.onlineState="Unknown",this.options=s||{}}H_(n){if(!this.options.includeMetadataChanges){const s=[];for(const u of n.docChanges)3!==u.type&&s.push(u);n=new ru(n.query,n.docs,n.oldDocs,s,n.mutatedKeys,n.fromCache,n.syncStateChanged,!0,n.hasCachedResults)}let i=!1;return this.Z_?this.ea(n)&&(this.Y_.next(n),i=!0):this.ta(n,this.onlineState)&&(this.na(n),i=!0),this.X_=n,i}onError(n){this.Y_.error(n)}j_(n){this.onlineState=n;let i=!1;return this.X_&&!this.Z_&&this.ta(this.X_,n)&&(this.na(this.X_),i=!0),i}ta(n,i){return!n.fromCache||!this.G_()||(!this.options.ra||!("Offline"!==i))&&(!n.docs.isEmpty()||n.hasCachedResults||"Offline"===i)}ea(n){return n.docChanges.length>0||!!(n.syncStateChanged||this.X_&&this.X_.hasPendingWrites!==n.hasPendingWrites)&&!0===this.options.includeMetadataChanges}na(n){n=ru.fromInitialDocuments(n.query,n.docs,n.mutatedKeys,n.fromCache,n.hasCachedResults),this.Z_=!0,this.Y_.next(n)}G_(){return this.options.source!==E.Cache}}class Pt{constructor(n){this.key=n}}class on{constructor(n){this.key=n}}class Dn{constructor(n,i){this.query=n,this.la=i,this.ha=null,this.hasCachedResults=!1,this.current=!1,this.Pa=vr(),this.mutatedKeys=vr(),this.Ia=sl(n),this.Ta=new oa(this.Ia)}get Ea(){return this.la}da(n,i){const s=i?i.Aa:new Qu,u=i?i.Ta:this.Ta;let f=i?i.mutatedKeys:this.mutatedKeys,_=u,w=!1;const N="F"===this.query.limitType&&u.size===this.query.limit?u.last():null,z="L"===this.query.limitType&&u.size===this.query.limit?u.first():null;if(n.inorderTraversal((se,we)=>{const We=u.get(se),Rt=Bs(this.query,we)?we:null,tn=!!We&&this.mutatedKeys.has(We.key),pn=!!Rt&&(Rt.hasLocalMutations||this.mutatedKeys.has(Rt.key)&&Rt.hasCommittedMutations);let ln=!1;We&&Rt?We.data.isEqual(Rt.data)?tn!==pn&&(s.track({type:3,doc:Rt}),ln=!0):this.Ra(We,Rt)||(s.track({type:2,doc:Rt}),ln=!0,(N&&this.Ia(Rt,N)>0||z&&this.Ia(Rt,z)<0)&&(w=!0)):!We&&Rt?(s.track({type:0,doc:Rt}),ln=!0):We&&!Rt&&(s.track({type:1,doc:We}),ln=!0,(N||z)&&(w=!0)),ln&&(Rt?(_=_.add(Rt),f=pn?f.add(se):f.delete(se)):(_=_.delete(se),f=f.delete(se)))}),null!==this.query.limit)for(;_.size>this.query.limit;){const se="F"===this.query.limitType?_.last():_.first();_=_.delete(se.key),f=f.delete(se.key),s.track({type:1,doc:se})}return{Ta:_,Aa:s,Xi:w,mutatedKeys:f}}Ra(n,i){return n.hasLocalMutations&&i.hasCommittedMutations&&!i.hasLocalMutations}applyChanges(n,i,s,u){const f=this.Ta;this.Ta=n.Ta,this.mutatedKeys=n.mutatedKeys;const _=n.Aa.Q_();_.sort((se,we)=>function(Rt,tn){const pn=ln=>{switch(ln){case 0:return 1;case 2:case 3:return 2;case 1:return 0;default:return B()}};return pn(Rt)-pn(tn)}(se.type,we.type)||this.Ia(se.doc,we.doc)),this.Va(s),u=null!=u&&u;const w=i&&!u?this.ma():[],N=0===this.Pa.size&&this.current&&!u?1:0,z=N!==this.ha;return this.ha=N,0!==_.length||z?{snapshot:new ru(this.query,n.Ta,f,_,n.mutatedKeys,0===N,z,!1,!!s&&s.resumeToken.approximateByteSize()>0),fa:w}:{fa:w}}j_(n){return this.current&&"Offline"===n?(this.current=!1,this.applyChanges({Ta:this.Ta,Aa:new Qu,mutatedKeys:this.mutatedKeys,Xi:!1},!1)):{fa:[]}}ga(n){return!this.la.has(n)&&!!this.Ta.has(n)&&!this.Ta.get(n).hasLocalMutations}Va(n){n&&(n.addedDocuments.forEach(i=>this.la=this.la.add(i)),n.modifiedDocuments.forEach(i=>{}),n.removedDocuments.forEach(i=>this.la=this.la.delete(i)),this.current=n.current)}ma(){if(!this.current)return[];const n=this.Pa;this.Pa=vr(),this.Ta.forEach(s=>{this.ga(s.key)&&(this.Pa=this.Pa.add(s.key))});const i=[];return n.forEach(s=>{this.Pa.has(s)||i.push(new on(s))}),this.Pa.forEach(s=>{n.has(s)||i.push(new Pt(s))}),i}pa(n){this.la=n.hs,this.Pa=vr();const i=this.da(n.documents);return this.applyChanges(i,!0)}ya(){return ru.fromInitialDocuments(this.query,this.Ta,this.mutatedKeys,0===this.ha,this.hasCachedResults)}}class Xn{constructor(n,i,s){this.query=n,this.targetId=i,this.view=s}}class jr{constructor(n){this.key=n,this.wa=!1}}class Oo{constructor(n,i,s,u,f,_){this.localStore=n,this.remoteStore=i,this.eventManager=s,this.sharedClientState=u,this.currentUser=f,this.maxConcurrentLimboResolutions=_,this.Sa={},this.ba=new as(w=>Na(w),Qo),this.Da=new Map,this.Ca=new Set,this.va=new mr(Gt.comparator),this.Fa=new Map,this.Ma=new Md,this.xa={},this.Oa=new Map,this.Na=gl.Ln(),this.onlineState="Unknown",this.La=void 0}get isPrimaryClient(){return!0===this.La}}function Zi(l,n){return sa.apply(this,arguments)}function sa(){return(sa=(0,Ie.A)(function*(l,n,i=!0){const s=ec(l);let u;const f=s.ba.get(n);return f?(s.sharedClientState.addLocalQueryTarget(f.targetId),u=f.view.ya()):u=yield Kd(s,n,i,!0),u})).apply(this,arguments)}function Wd(l,n){return ou.apply(this,arguments)}function ou(){return(ou=(0,Ie.A)(function*(l,n){const i=ec(l);yield Kd(i,n,!0,!1)})).apply(this,arguments)}function Kd(l,n,i,s){return Yu.apply(this,arguments)}function Yu(){return(Yu=(0,Ie.A)(function*(l,n,i,s){const u=yield function ra(l,n){const i=de(l);return i.persistence.runTransaction("Allocate target","readwrite",s=>{let u;return i.Qr.getTargetData(s,n).next(f=>f?(u=f,oe.resolve(u)):i.Qr.allocateTargetId(s).next(_=>(u=new Aa(n,_,"TargetPurposeListen",s.currentSequenceNumber),i.Qr.addTargetData(s,u).next(()=>u))))}).then(s=>{const u=i.ns.get(s.targetId);return(null===u||s.snapshotVersion.compareTo(u.snapshotVersion)>0)&&(i.ns=i.ns.insert(s.targetId,s),i.rs.set(n,s.targetId)),s})}(l.localStore,On(n)),f=u.targetId,_=i?l.sharedClientState.addLocalQueryTarget(f):"not-current";let w;return s&&(w=yield function Zu(l,n,i,s,u){return Ju.apply(this,arguments)}(l,n,f,"current"===_,u.resumeToken)),l.isPrimaryClient&&i&&Xa(l.remoteStore,u),w})).apply(this,arguments)}function Ju(){return Ju=(0,Ie.A)(function*(l,n,i,s,u){l.Ba=(we,We,Rt)=>{return(tn=(0,Ie.A)(function*(ln,zn,ar,Qn){let Rr=zn.view.da(ar);Rr.Xi&&(Rr=yield vl(ln.localStore,zn.query,!1).then(({documents:Ue})=>zn.view.da(Ue,Rr)));const Ii=Qn&&Qn.targetChanges.get(zn.targetId),zr=Qn&&null!=Qn.targetMismatches.get(zn.targetId),ht=zn.view.applyChanges(Rr,ln.isPrimaryClient,Ii,zr);return Eg(ln,zn.targetId,ht.fa),ht.snapshot}),function pn(ln,zn,ar,Qn){return tn.apply(this,arguments)})(l,we,We,Rt);var tn};const f=yield vl(l.localStore,n,!0),_=new Dn(n,f.hs),w=_.da(f.documents),N=_i.createSynthesizedTargetChangeForCurrentChange(i,s&&"Offline"!==l.onlineState,u),z=_.applyChanges(w,l.isPrimaryClient,N);Eg(l,i,z.fa);const se=new Xn(n,i,_);return l.ba.set(n,se),l.Da.has(i)?l.Da.get(i).push(n):l.Da.set(i,[n]),z.snapshot}),Ju.apply(this,arguments)}function Af(l,n,i){return su.apply(this,arguments)}function su(){return(su=(0,Ie.A)(function*(l,n,i){const s=de(l),u=s.ba.get(n),f=s.Da.get(u.targetId);if(f.length>1)return s.Da.set(u.targetId,f.filter(_=>!Qo(_,n))),void s.ba.delete(n);s.isPrimaryClient?(s.sharedClientState.removeLocalQueryTarget(u.targetId),s.sharedClientState.isActiveQueryTarget(u.targetId)||(yield ia(s.localStore,u.targetId,!1).then(()=>{s.sharedClientState.clearQueryState(u.targetId),i&&Yi(s.remoteStore,u.targetId),Yd(s,u.targetId)}).catch(Qr))):(Yd(s,u.targetId),yield ia(s.localStore,u.targetId,!0))})).apply(this,arguments)}function Cf(l,n){return qd.apply(this,arguments)}function qd(){return(qd=(0,Ie.A)(function*(l,n){const i=de(l),s=i.ba.get(n),u=i.Da.get(s.targetId);i.isPrimaryClient&&1===u.length&&(i.sharedClientState.removeLocalQueryTarget(s.targetId),Yi(i.remoteStore,s.targetId))})).apply(this,arguments)}function Qd(){return(Qd=(0,Ie.A)(function*(l,n,i){const s=function Bc(l){const n=de(l);return n.remoteStore.remoteSyncer.applySuccessfulWrite=pv.bind(null,n),n.remoteStore.remoteSyncer.rejectFailedWrite=gv.bind(null,n),n}(l);try{const u=yield function(_,w){const N=de(_),z=Xt.now(),se=w.reduce((Rt,tn)=>Rt.add(tn.key),vr());let we,We;return N.persistence.runTransaction("Locally write mutations","readwrite",Rt=>{let tn=Jn(),pn=vr();return N.os.getEntries(Rt,se).next(ln=>{tn=ln,tn.forEach((zn,ar)=>{ar.isValidDocument()||(pn=pn.add(zn))})}).next(()=>N.localDocuments.getOverlayedDocuments(Rt,tn)).next(ln=>{we=ln;const zn=[];for(const ar of w){const Qn=pc(ar,we.get(ar.key).overlayedDocument);null!=Qn&&zn.push(new lo(ar.key,Qn,br(Qn.value.mapValue),Di.exists(!0)))}return N.mutationQueue.addMutationBatch(Rt,z,zn,w)}).next(ln=>{We=ln;const zn=ln.applyToLocalDocumentSet(we,pn);return N.documentOverlayCache.saveOverlays(Rt,ln.batchId,zn)})}).then(()=>({batchId:We.batchId,changes:ro(we)}))}(s.localStore,n);s.sharedClientState.addPendingMutation(u.batchId),function(_,w,N){let z=_.xa[_.currentUser.toKey()];z||(z=new mr(Ve)),z=z.insert(w,N),_.xa[_.currentUser.toKey()]=z}(s,u.batchId,i),yield Dl(s,u.changes),yield Wu(s.remoteStore)}catch(u){const f=Xu(u,"Failed to persist write");i.reject(f)}})).apply(this,arguments)}function gg(l,n){return Tf.apply(this,arguments)}function Tf(){return(Tf=(0,Ie.A)(function*(l,n){const i=de(l);try{const s=yield function og(l,n){const i=de(l),s=n.snapshotVersion;let u=i.ns;return i.persistence.runTransaction("Apply remote event","readwrite-primary",f=>{const _=i.os.newChangeBuffer({trackRemovals:!0});u=i.ns;const w=[];n.targetChanges.forEach((se,we)=>{const We=u.get(we);if(!We)return;w.push(i.Qr.removeMatchingKeys(f,se.removedDocuments,we).next(()=>i.Qr.addMatchingKeys(f,se.addedDocuments,we)));let Rt=We.withSequenceNumber(f.currentSequenceNumber);var pn,ln,zn;null!==n.targetMismatches.get(we)?Rt=Rt.withResumeToken(si.EMPTY_BYTE_STRING,en.min()).withLastLimboFreeSnapshotVersion(en.min()):se.resumeToken.approximateByteSize()>0&&(Rt=Rt.withResumeToken(se.resumeToken,s)),u=u.insert(we,Rt),ln=Rt,zn=se,(0===(pn=We).resumeToken.approximateByteSize()||ln.snapshotVersion.toMicroseconds()-pn.snapshotVersion.toMicroseconds()>=3e8||zn.addedDocuments.size+zn.modifiedDocuments.size+zn.removedDocuments.size>0)&&w.push(i.Qr.updateTargetData(f,Rt))});let N=Jn(),z=vr();if(n.documentUpdates.forEach(se=>{n.resolvedLimboDocuments.has(se)&&w.push(i.persistence.referenceDelegate.updateLimboDocument(f,se))}),w.push(function $u(l,n,i){let s=vr(),u=vr();return i.forEach(f=>s=s.add(f)),n.getEntries(l,s).next(f=>{let _=Jn();return i.forEach((w,N)=>{const z=f.get(w);N.isFoundDocument()!==z.isFoundDocument()&&(u=u.add(w)),N.isNoDocument()&&N.version.isEqual(en.min())?(n.removeEntry(w,N.readTime),_=_.insert(w,N)):!z.isValidDocument()||N.version.compareTo(z.version)>0||0===N.version.compareTo(z.version)&&z.hasPendingWrites?(n.addEntry(N),_=_.insert(w,N)):Be("LocalStore","Ignoring outdated watch update for ",w,". Current version:",z.version," Watch version:",N.version)}),{cs:_,ls:u}})}(f,_,n.documentUpdates).next(se=>{N=se.cs,z=se.ls})),!s.isEqual(en.min())){const se=i.Qr.getLastRemoteSnapshotVersion(f).next(we=>i.Qr.setTargetsMetadata(f,f.currentSequenceNumber,s));w.push(se)}return oe.waitFor(w).next(()=>_.apply(f)).next(()=>i.localDocuments.getLocalViewOfDocuments(f,N,z)).next(()=>N)}).then(f=>(i.ns=u,f))}(i.localStore,n);n.targetChanges.forEach((u,f)=>{const _=i.Fa.get(f);_&&(W(u.addedDocuments.size+u.modifiedDocuments.size+u.removedDocuments.size<=1),u.addedDocuments.size>0?_.wa=!0:u.modifiedDocuments.size>0?W(_.wa):u.removedDocuments.size>0&&(W(_.wa),_.wa=!1))}),yield Dl(i,s,n)}catch(s){yield Qr(s)}})).apply(this,arguments)}function mg(l,n,i){const s=de(l);if(s.isPrimaryClient&&0===i||!s.isPrimaryClient&&1===i){const u=[];s.ba.forEach((f,_)=>{const w=_.view.j_(n);w.snapshot&&u.push(w.snapshot)}),function(_,w){const N=de(_);N.onlineState=w;let z=!1;N.queries.forEach((se,we)=>{for(const We of we.U_)We.j_(w)&&(z=!0)}),z&&Gd(N)}(s.eventManager,n),u.length&&s.Sa.h_(u),s.onlineState=n,s.isPrimaryClient&&s.sharedClientState.setOnlineState(n)}}function Df(l,n,i){return bf.apply(this,arguments)}function bf(){return(bf=(0,Ie.A)(function*(l,n,i){const s=de(l);s.sharedClientState.updateQueryState(n,"rejected",i);const u=s.Fa.get(n),f=u&&u.key;if(f){let _=new mr(Gt.comparator);_=_.insert(f,cr.newNoDocument(f,en.min()));const w=vr().add(f),N=new Hi(en.min(),new Map,new mr(Ve),_,w);yield gg(s,N),s.va=s.va.remove(f),s.Fa.delete(n),mv(s)}else yield ia(s.localStore,n,!1).then(()=>Yd(s,n,i)).catch(Qr)})).apply(this,arguments)}function pv(l,n){return wf.apply(this,arguments)}function wf(){return(wf=(0,Ie.A)(function*(l,n){const i=de(l),s=n.batch.batchId;try{const u=yield function Uu(l,n){const i=de(l);return i.persistence.runTransaction("Acknowledge batch","readwrite-primary",s=>{const u=n.batch.keys(),f=i.os.newChangeBuffer({trackRemovals:!0});return function(w,N,z,se){const we=z.batch,We=we.keys();let Rt=oe.resolve();return We.forEach(tn=>{Rt=Rt.next(()=>se.getEntry(N,tn)).next(pn=>{const ln=z.docVersions.get(tn);W(null!==ln),pn.version.compareTo(ln)<0&&(we.applyToRemoteDocument(pn,z),pn.isValidDocument()&&(pn.setReadTime(z.commitVersion),se.addEntry(pn)))})}),Rt.next(()=>w.mutationQueue.removeMutationBatch(N,we))}(i,s,n,f).next(()=>f.apply(s)).next(()=>i.mutationQueue.performConsistencyCheck(s)).next(()=>i.documentOverlayCache.removeOverlaysForBatchId(s,u,n.batch.batchId)).next(()=>i.localDocuments.recalculateAndSaveOverlaysForDocumentKeys(s,function(w){let N=vr();for(let z=0;z0&&(N=N.add(w.batch.mutations[z].key));return N}(n))).next(()=>i.localDocuments.getDocuments(s,u))})}(i.localStore,n);Sf(i,s,null),yg(i,s),i.sharedClientState.updateMutationState(s,"acknowledged"),yield Dl(i,u)}catch(u){yield Qr(u)}})).apply(this,arguments)}function gv(l,n,i){return vg.apply(this,arguments)}function vg(){return(vg=(0,Ie.A)(function*(l,n,i){const s=de(l);try{const u=yield function(_,w){const N=de(_);return N.persistence.runTransaction("Reject batch","readwrite-primary",z=>{let se;return N.mutationQueue.lookupMutationBatch(z,w).next(we=>(W(null!==we),se=we.keys(),N.mutationQueue.removeMutationBatch(z,we))).next(()=>N.mutationQueue.performConsistencyCheck(z)).next(()=>N.documentOverlayCache.removeOverlaysForBatchId(z,se,w)).next(()=>N.localDocuments.recalculateAndSaveOverlaysForDocumentKeys(z,se)).next(()=>N.localDocuments.getDocuments(z,se))})}(s.localStore,n);Sf(s,n,i),yg(s,n),s.sharedClientState.updateMutationState(n,"rejected",i),yield Dl(s,u)}catch(u){yield Qr(u)}})).apply(this,arguments)}function yg(l,n){(l.Oa.get(n)||[]).forEach(i=>{i.resolve()}),l.Oa.delete(n)}function Sf(l,n,i){const s=de(l);let u=s.xa[s.currentUser.toKey()];if(u){const f=u.get(n);f&&(i?f.reject(i):f.resolve(),u=u.remove(n)),s.xa[s.currentUser.toKey()]=u}}function Yd(l,n,i=null){l.sharedClientState.removeLocalQueryTarget(n);for(const s of l.Da.get(n))l.ba.delete(s),i&&l.Sa.ka(s,i);l.Da.delete(n),l.isPrimaryClient&&l.Ma.Vr(n).forEach(s=>{l.Ma.containsKey(s)||Ig(l,s)})}function Ig(l,n){l.Ca.delete(n.path.canonicalString());const i=l.va.get(n);null!==i&&(Yi(l.remoteStore,i),l.va=l.va.remove(n),l.Fa.delete(i),mv(l))}function Eg(l,n,i){for(const s of i)s instanceof Pt?(l.Ma.addReference(s.key,n),my(l,s)):s instanceof on?(Be("SyncEngine","Document no longer in limbo: "+s.key),l.Ma.removeReference(s.key,n),l.Ma.containsKey(s.key)||Ig(l,s.key)):B()}function my(l,n){const i=n.key,s=i.path.canonicalString();l.va.get(i)||l.Ca.has(s)||(Be("SyncEngine","New document in limbo: "+i),l.Ca.add(s),mv(l))}function mv(l){for(;l.Ca.size>0&&l.va.size{_.push(s.Ba(N,n,i).then(z=>{if((z||i)&&s.isPrimaryClient&&s.sharedClientState.updateQueryState(N.targetId,z&&!z.fromCache?"current":"not-current"),z){u.push(z);const se=yi.Ki(N.targetId,z);f.push(se)}}))}),yield Promise.all(_),s.Sa.h_(u),yield(w=(0,Ie.A)(function*(z,se){const we=de(z);try{yield we.persistence.runTransaction("notifyLocalViewChanges","readwrite",We=>oe.forEach(se,Rt=>oe.forEach(Rt.qi,tn=>we.persistence.referenceDelegate.addReference(We,Rt.targetId,tn)).next(()=>oe.forEach(Rt.Qi,tn=>we.persistence.referenceDelegate.removeReference(We,Rt.targetId,tn)))))}catch(We){if(!Pe(We))throw We;Be("LocalStore","Failed to update sequence numbers: "+We)}for(const We of se){const Rt=We.targetId;if(!We.fromCache){const tn=we.ns.get(Rt),ln=tn.withLastLimboFreeSnapshotVersion(tn.snapshotVersion);we.ns=we.ns.insert(Rt,ln)}}}),function N(z,se){return w.apply(this,arguments)})(s.localStore,f))}),Rf.apply(this,arguments)}function Ag(l,n){return Cg.apply(this,arguments)}function Cg(){return(Cg=(0,Ie.A)(function*(l,n){const i=de(l);if(!i.currentUser.isEqual(n)){Be("SyncEngine","User change. New user:",n.toKey());const s=yield Od(i.localStore,n);i.currentUser=n,(f=i).Oa.forEach(w=>{w.forEach(N=>{N.reject(new me(ae.CANCELLED,"'waitForPendingWrites' promise is rejected due to a user change."))})}),f.Oa.clear(),i.sharedClientState.handleUserChange(n,s.removedBatchIds,s.addedBatchIds),yield Dl(i,s.us)}var f})).apply(this,arguments)}function au(l,n){const i=de(l),s=i.Fa.get(n);if(s&&s.wa)return vr().add(s.key);{let u=vr();const f=i.Da.get(n);if(!f)return u;for(const _ of f){const w=i.ba.get(_);u=u.unionWith(w.view.Ea)}return u}}function ec(l){const n=de(l);return n.remoteStore.remoteSyncer.applyRemoteEvent=gg.bind(null,n),n.remoteStore.remoteSyncer.getRemoteKeysForTarget=au.bind(null,n),n.remoteStore.remoteSyncer.rejectListen=Df.bind(null,n),n.Sa.h_=fv.bind(null,n.eventManager),n.Sa.ka=pg.bind(null,n.eventManager),n}class Za{constructor(){this.synchronizeTabs=!1}initialize(n){var i=this;return(0,Ie.A)(function*(){i.serializer=Oc(n.databaseInfo.databaseId),i.sharedClientState=i.createSharedClientState(n),i.persistence=i.createPersistence(n),yield i.persistence.start(),i.localStore=i.createLocalStore(n),i.gcScheduler=i.createGarbageCollectionScheduler(n,i.localStore),i.indexBackfillerScheduler=i.createIndexBackfillerScheduler(n,i.localStore)})()}createGarbageCollectionScheduler(n,i){return null}createIndexBackfillerScheduler(n,i){return null}createLocalStore(n){return function ef(l,n,i,s){return new ig(l,n,i,s)}(this.persistence,new Jh,n.initialUser,this.serializer)}createPersistence(n){return new bc(Da.Hr,this.serializer)}createSharedClientState(n){return new rf}terminate(){var n=this;return(0,Ie.A)(function*(){var i,s;null===(i=n.gcScheduler)||void 0===i||i.stop(),null===(s=n.indexBackfillerScheduler)||void 0===s||s.stop(),n.sharedClientState.shutdown(),yield n.persistence.shutdown()})()}}class Ja{initialize(n,i){var s=this;return(0,Ie.A)(function*(){s.localStore||(s.localStore=n.localStore,s.sharedClientState=n.sharedClientState,s.datastore=s.createDatastore(i),s.remoteStore=s.createRemoteStore(i),s.eventManager=s.createEventManager(i),s.syncEngine=s.createSyncEngine(i,!n.synchronizeTabs),s.sharedClientState.onlineStateHandler=u=>mg(s.syncEngine,u,1),s.remoteStore.remoteSyncer.handleCredentialChange=Ag.bind(null,s.syncEngine),yield dg(s.remoteStore,s.syncEngine.isPrimaryClient))})()}createEventManager(n){return new If}createDatastore(n){const i=Oc(n.databaseInfo.databaseId),s=new Ld(n.databaseInfo);return new sg(n.authCredentials,n.appCheckCredentials,s,i)}createRemoteStore(n){return s=this.localStore,u=this.datastore,f=n.asyncQueue,_=i=>mg(this.syncEngine,i,0),w=Vd.D()?new Vd:new sf,new Cl(s,u,f,_,w);var s,u,f,_,w}createSyncEngine(n,i){return function(u,f,_,w,N,z,se){const we=new Oo(u,f,_,w,N,z);return se&&(we.La=!0),we}(this.localStore,this.remoteStore,this.eventManager,this.sharedClientState,n.initialUser,n.maxConcurrentLimboResolutions,i)}terminate(){var n=this;return(0,Ie.A)(function*(){var i,s;yield(s=(0,Ie.A)(function*(f){const _=de(f);Be("RemoteStore","RemoteStore shutting down."),_.M_.add(5),yield tu(_),_.O_.shutdown(),_.N_.set("Unknown")}),function u(f){return s.apply(this,arguments)})(n.remoteStore),null===(i=n.datastore)||void 0===i||i.terminate()})()}}class Hc{constructor(n){this.observer=n,this.muted=!1}next(n){this.observer.next&&this.Ka(this.observer.next,n)}error(n){this.observer.error?this.Ka(this.observer.error,n):rn("Uncaught Error in snapshot listener:",n.toString())}$a(){this.muted=!0}Ka(n,i){this.muted||setTimeout(()=>{this.muted||n(i)},0)}}class Ay{constructor(n,i,s,u){var f=this;this.authCredentials=n,this.appCheckCredentials=i,this.asyncQueue=s,this.databaseInfo=u,this.user=He.UNAUTHENTICATED,this.clientId=Yn.newId(),this.authCredentialListener=()=>Promise.resolve(),this.appCheckCredentialListener=()=>Promise.resolve(),this.authCredentials.start(s,function(){var _=(0,Ie.A)(function*(w){Be("FirestoreClient","Received user=",w.uid),yield f.authCredentialListener(w),f.user=w});return function(w){return _.apply(this,arguments)}}()),this.appCheckCredentials.start(s,_=>(Be("FirestoreClient","Received new app check token=",_),this.appCheckCredentialListener(_,this.user)))}get configuration(){return{asyncQueue:this.asyncQueue,databaseInfo:this.databaseInfo,clientId:this.clientId,authCredentials:this.authCredentials,appCheckCredentials:this.appCheckCredentials,initialUser:this.user,maxConcurrentLimboResolutions:100}}setCredentialChangeListener(n){this.authCredentialListener=n}setAppCheckTokenChangeListener(n){this.appCheckCredentialListener=n}verifyNotTerminated(){if(this.asyncQueue.isShuttingDown)throw new me(ae.FAILED_PRECONDITION,"The client has already been terminated.")}terminate(){var n=this;this.asyncQueue.enterRestrictedMode();const i=new Ce;return this.asyncQueue.enqueueAndForgetEvenWhileRestricted((0,Ie.A)(function*(){try{n._onlineComponents&&(yield n._onlineComponents.terminate()),n._offlineComponents&&(yield n._offlineComponents.terminate()),n.authCredentials.shutdown(),n.appCheckCredentials.shutdown(),i.resolve()}catch(s){const u=Xu(s,"Failed to shutdown persistence");i.reject(u)}})),i.promise}}function Pf(l,n){return rh.apply(this,arguments)}function rh(){return rh=(0,Ie.A)(function*(l,n){l.asyncQueue.verifyOperationInProgress(),Be("FirestoreClient","Initializing OfflineComponentProvider");const i=l.configuration;yield n.initialize(i);let s=i.initialUser;l.setCredentialChangeListener(function(){var u=(0,Ie.A)(function*(f){s.isEqual(f)||(yield Od(n.localStore,f),s=f)});return function(f){return u.apply(this,arguments)}}()),n.persistence.setDatabaseDeletedListener(()=>l.terminate()),l._offlineComponents=n}),rh.apply(this,arguments)}function xf(l,n){return wg.apply(this,arguments)}function wg(){return(wg=(0,Ie.A)(function*(l,n){l.asyncQueue.verifyOperationInProgress();const i=yield function tc(l){return Nf.apply(this,arguments)}(l);Be("FirestoreClient","Initializing OnlineComponentProvider"),yield n.initialize(i,l.configuration),l.setCredentialChangeListener(s=>cg(n.remoteStore,s)),l.setAppCheckTokenChangeListener((s,u)=>cg(n.remoteStore,u)),l._onlineComponents=n})).apply(this,arguments)}function Nf(){return(Nf=(0,Ie.A)(function*(l){if(!l._offlineComponents)if(l._uninitializedComponentsProvider){Be("FirestoreClient","Using user provided OfflineComponentProvider");try{yield Pf(l,l._uninitializedComponentsProvider._offline)}catch(n){const i=n;if(!function Cv(l){return"FirebaseError"===l.name?l.code===ae.FAILED_PRECONDITION||l.code===ae.UNIMPLEMENTED:!(typeof DOMException<"u"&&l instanceof DOMException)||22===l.code||20===l.code||11===l.code}(i))throw i;pt("Error using user provided cache. Falling back to memory cache: "+i),yield Pf(l,new Za)}}else Be("FirestoreClient","Using default OfflineComponentProvider"),yield Pf(l,new Za);return l._offlineComponents})).apply(this,arguments)}function Gc(l){return Sg.apply(this,arguments)}function Sg(){return(Sg=(0,Ie.A)(function*(l){return l._onlineComponents||(l._uninitializedComponentsProvider?(Be("FirestoreClient","Using user provided OnlineComponentProvider"),yield xf(l,l._uninitializedComponentsProvider._online)):(Be("FirestoreClient","Using default OnlineComponentProvider"),yield xf(l,new Ja))),l._onlineComponents})).apply(this,arguments)}function Mg(){return(Mg=(0,Ie.A)(function*(l){const n=yield Gc(l),i=n.eventManager;return i.onListen=Zi.bind(null,n.syncEngine),i.onUnlisten=Af.bind(null,n.syncEngine),i.onFirstRemoteStoreListen=Wd.bind(null,n.syncEngine),i.onLastRemoteStoreUnlisten=Cf.bind(null,n.syncEngine),i})).apply(this,arguments)}function sh(l,n,i={}){const s=new Ce;return l.asyncQueue.enqueueAndForget((0,Ie.A)(function*(){return function(f,_,w,N,z){const se=new Hc({next:We=>{_.enqueueAndForget(()=>function $c(l,n){return iu.apply(this,arguments)}(f,we));const Rt=We.docs.has(w);!Rt&&We.fromCache?z.reject(new me(ae.UNAVAILABLE,"Failed to get document because the client is offline.")):Rt&&We.fromCache&&N&&"server"===N.source?z.reject(new me(ae.UNAVAILABLE,'Failed to get document from server. (However, this document does exist in the local cache. Run again without setting source to "server" to retrieve the cached document.)')):z.resolve(We)},error:We=>z.reject(We)}),we=new v(ce(w.path),se,{includeMetadataChanges:!0,ra:!0});return function Os(l,n){return Ef.apply(this,arguments)}(f,we)}(yield function uu(l){return Mg.apply(this,arguments)}(l),l.asyncQueue,n,i,s)})),s.promise}function ah(l){const n={};return void 0!==l.timeoutSeconds&&(n.timeoutSeconds=l.timeoutSeconds),n}const Ff=new Map;function Og(l){if(!Gt.isDocumentKey(l))throw new me(ae.INVALID_ARGUMENT,`Invalid document reference. Document references must have an even number of segments, but ${l} has ${l.length}.`)}function Lf(l){if(void 0===l)return"undefined";if(null===l)return"null";if("string"==typeof l)return l.length>20&&(l=`${l.substring(0,20)}...`),JSON.stringify(l);if("number"==typeof l||"boolean"==typeof l)return""+l;if("object"==typeof l){if(l instanceof Array)return"an array";{const n=(s=l).constructor?s.constructor.name:null;return n?`a custom ${n} object`:"an object"}}var s;return"function"==typeof l?"a function":B()}function Xr(l,n){if("_delegate"in l&&(l=l._delegate),!(l instanceof n)){if(n.name===l.constructor.name)throw new me(ae.INVALID_ARGUMENT,"Type does not match the expected instance. Did you pass a reference from a different Firestore SDK?");{const i=Lf(l);throw new me(ae.INVALID_ARGUMENT,`Expected type '${n.name}', but it was: ${i}`)}}return l}class Rv{constructor(n){var i,s;if(void 0===n.host){if(void 0!==n.ssl)throw new me(ae.INVALID_ARGUMENT,"Can't provide ssl option if host option is not set");this.host="firestore.googleapis.com",this.ssl=!0}else this.host=n.host,this.ssl=null===(i=n.ssl)||void 0===i||i;if(this.credentials=n.credentials,this.ignoreUndefinedProperties=!!n.ignoreUndefinedProperties,this.localCache=n.localCache,void 0===n.cacheSizeBytes)this.cacheSizeBytes=41943040;else{if(-1!==n.cacheSizeBytes&&n.cacheSizeBytes<1048576)throw new me(ae.INVALID_ARGUMENT,"cacheSizeBytes must be at least 1048576");this.cacheSizeBytes=n.cacheSizeBytes}(function wv(l,n,i,s){if(!0===n&&!0===s)throw new me(ae.INVALID_ARGUMENT,`${l} and ${i} cannot be used together.`)})("experimentalForceLongPolling",n.experimentalForceLongPolling,"experimentalAutoDetectLongPolling",n.experimentalAutoDetectLongPolling),this.experimentalForceLongPolling=!!n.experimentalForceLongPolling,this.experimentalAutoDetectLongPolling=!(this.experimentalForceLongPolling||void 0!==n.experimentalAutoDetectLongPolling&&!n.experimentalAutoDetectLongPolling),this.experimentalLongPollingOptions=ah(null!==(s=n.experimentalLongPollingOptions)&&void 0!==s?s:{}),function(f){if(void 0!==f.timeoutSeconds){if(isNaN(f.timeoutSeconds))throw new me(ae.INVALID_ARGUMENT,`invalid long polling timeout: ${f.timeoutSeconds} (must not be NaN)`);if(f.timeoutSeconds<5)throw new me(ae.INVALID_ARGUMENT,`invalid long polling timeout: ${f.timeoutSeconds} (minimum allowed value is 5)`);if(f.timeoutSeconds>30)throw new me(ae.INVALID_ARGUMENT,`invalid long polling timeout: ${f.timeoutSeconds} (maximum allowed value is 30)`)}}(this.experimentalLongPollingOptions),this.useFetchStreams=!!n.useFetchStreams}isEqual(n){return this.host===n.host&&this.ssl===n.ssl&&this.credentials===n.credentials&&this.cacheSizeBytes===n.cacheSizeBytes&&this.experimentalForceLongPolling===n.experimentalForceLongPolling&&this.experimentalAutoDetectLongPolling===n.experimentalAutoDetectLongPolling&&this.experimentalLongPollingOptions.timeoutSeconds===n.experimentalLongPollingOptions.timeoutSeconds&&this.ignoreUndefinedProperties===n.ignoreUndefinedProperties&&this.useFetchStreams===n.useFetchStreams}}class lh{constructor(n,i,s,u){this._authCredentials=n,this._appCheckCredentials=i,this._databaseId=s,this._app=u,this.type="firestore-lite",this._persistenceKey="(lite)",this._settings=new Rv({}),this._settingsFrozen=!1}get app(){if(!this._app)throw new me(ae.FAILED_PRECONDITION,"Firestore was not initialized using the Firebase SDK. 'app' is not available");return this._app}get _initialized(){return this._settingsFrozen}get _terminated(){return void 0!==this._terminateTask}_setSettings(n){if(this._settingsFrozen)throw new me(ae.FAILED_PRECONDITION,"Firestore has already been started and its settings can no longer be changed. You can only modify settings before calling any other methods on a Firestore object.");this._settings=new Rv(n),void 0!==n.credentials&&(this._authCredentials=function(s){if(!s)return new kt;switch(s.type){case"firstParty":return new $n(s.sessionIndex||"0",s.iamToken||null,s.authTokenFactory||null);case"provider":return s.client;default:throw new me(ae.INVALID_ARGUMENT,"makeAuthCredentialsProvider failed due to invalid credential type")}}(n.credentials))}_getSettings(){return this._settings}_freezeSettings(){return this._settingsFrozen=!0,this._settings}_delete(){return this._terminateTask||(this._terminateTask=this._terminate()),this._terminateTask}toJSON(){return{app:this._app,databaseId:this._databaseId,settings:this._settings}}_terminate(){return function(i){const s=Ff.get(i);s&&(Be("ComponentProvider","Removing Datastore"),Ff.delete(i),s.terminate())}(this),Promise.resolve()}}class po{constructor(n,i,s){this.converter=i,this._query=s,this.type="query",this.firestore=n}withConverter(n){return new po(this.firestore,n,this._query)}}class go{constructor(n,i,s){this.converter=i,this._key=s,this.type="document",this.firestore=n}get _path(){return this._key.path}get id(){return this._key.path.lastSegment()}get path(){return this._key.path.canonicalString()}get parent(){return new bl(this.firestore,this.converter,this._key.path.popLast())}withConverter(n){return new go(this.firestore,n,this._key)}}class bl extends po{constructor(n,i,s){super(n,i,ce(s)),this._path=s,this.type="collection"}get id(){return this._query.path.lastSegment()}get path(){return this._query.path.canonicalString()}get parent(){const n=this._path.popLast();return n.isEmpty()?null:new go(this.firestore,null,new Gt(n))}withConverter(n){return new bl(this.firestore,n,this._path)}}function by(l,n,...i){if(l=(0,De.Ku)(l),1===arguments.length&&(n=Yn.newId()),function Vf(l,n,i){if(!i)throw new me(ae.INVALID_ARGUMENT,`Function ${l}() cannot be called with an empty ${n}.`)}("doc","path",n),l instanceof lh){const s=gn.fromString(n,...i);return Og(s),new go(l,null,new Gt(s))}{if(!(l instanceof go||l instanceof bl))throw new me(ae.INVALID_ARGUMENT,"Expected first argument to collection() to be a CollectionReference, a DocumentReference or FirebaseFirestore");const s=l._path.child(gn.fromString(n,...i));return Og(s),new go(l.firestore,l instanceof bl?l.converter:null,new Gt(s))}}class wy{constructor(){this.iu=Promise.resolve(),this.su=[],this.ou=!1,this._u=[],this.au=null,this.uu=!1,this.cu=!1,this.lu=[],this.Yo=new eu(this,"async_queue_retry"),this.hu=()=>{const i=Al();i&&Be("AsyncQueue","Visibility state changed to "+i.visibilityState),this.Yo.Wo()};const n=Al();n&&"function"==typeof n.addEventListener&&n.addEventListener("visibilitychange",this.hu)}get isShuttingDown(){return this.ou}enqueueAndForget(n){this.enqueue(n)}enqueueAndForgetEvenWhileRestricted(n){this.Pu(),this.Iu(n)}enterRestrictedMode(n){if(!this.ou){this.ou=!0,this.cu=n||!1;const i=Al();i&&"function"==typeof i.removeEventListener&&i.removeEventListener("visibilitychange",this.hu)}}enqueue(n){if(this.Pu(),this.ou)return new Promise(()=>{});const i=new Ce;return this.Iu(()=>this.ou&&this.cu?Promise.resolve():(n().then(i.resolve,i.reject),i.promise)).then(()=>i.promise)}enqueueRetryable(n){this.enqueueAndForget(()=>(this.su.push(n),this.Tu()))}Tu(){var n=this;return(0,Ie.A)(function*(){if(0!==n.su.length){try{yield n.su[0](),n.su.shift(),n.Yo.reset()}catch(i){if(!Pe(i))throw i;Be("AsyncQueue","Operation failed with retryable error: "+i)}n.su.length>0&&n.Yo.$o(()=>n.Tu())}})()}Iu(n){const i=this.iu.then(()=>(this.uu=!0,n().catch(s=>{throw this.au=s,this.uu=!1,rn("INTERNAL UNHANDLED ERROR: ",function(_){let w=_.message||"";return _.stack&&(w=_.stack.includes(_.message)?_.stack:_.message+"\n"+_.stack),w}(s)),s}).then(s=>(this.uu=!1,s))));return this.iu=i,i}enqueueAfterDelay(n,i,s){this.Pu(),this.lu.indexOf(n)>-1&&(i=0);const u=fg.createAndSchedule(this,n,i,s,f=>this.Eu(f));return this._u.push(u),u}Pu(){this.au&&B()}verifyOperationInProgress(){}du(){var n=this;return(0,Ie.A)(function*(){let i;do{i=n.iu,yield i}while(i!==n.iu)})()}Au(n){for(const i of this._u)if(i.timerId===n)return!0;return!1}Ru(n){return this.du().then(()=>{this._u.sort((i,s)=>i.targetTimeMs-s.targetTimeMs);for(const i of this._u)if(i.skipDelay(),"all"!==n&&i.timerId===n)break;return this.du()})}Vu(n){this.lu.push(n)}Eu(n){const i=this._u.indexOf(n);this._u.splice(i,1)}}class bi extends lh{constructor(n,i,s,u){super(n,i,s,u),this.type="firestore",this._queue=new wy,this._persistenceKey=(null==u?void 0:u.name)||"[DEFAULT]"}_terminate(){return this._firestoreClient||Lg(this),this._firestoreClient.terminate()}}function uh(l,n){const i="object"==typeof l?l:(0,re.Sx)(),s="string"==typeof l?l:n||"(default)",u=(0,re.j6)(i,"firestore").getImmediate({identifier:s});if(!u._initialized){const f=(0,De.yU)("firestore");f&&function cu(l,n,i,s={}){var u;const f=(l=Xr(l,lh))._getSettings(),_=`${n}:${i}`;if("firestore.googleapis.com"!==f.host&&f.host!==_&&pt("Host has been set in both settings() and connectFirestoreEmulator(), emulator host will be used."),l._setSettings(Object.assign(Object.assign({},f),{host:_,ssl:!1})),s.mockUserToken){let w,N;if("string"==typeof s.mockUserToken)w=s.mockUserToken,N=He.MOCK_USER;else{w=(0,De.Fy)(s.mockUserToken,null===(u=l._app)||void 0===u?void 0:u.options.projectId);const z=s.mockUserToken.sub||s.mockUserToken.user_id;if(!z)throw new me(ae.INVALID_ARGUMENT,"mockUserToken must contain 'sub' or 'user_id' field!");N=new He(z)}l._authCredentials=new Bt(new at(w,N))}}(u,...f)}return u}function to(l){return l._firestoreClient||Lg(l),l._firestoreClient.verifyNotTerminated(),l._firestoreClient}function Lg(l){var n,i,s;const u=l._freezeSettings(),f=(N=(null===(n=l._app)||void 0===n?void 0:n.options.appId)||"",new co(l._databaseId,N,l._persistenceKey,(se=u).host,se.ssl,se.experimentalForceLongPolling,se.experimentalAutoDetectLongPolling,ah(se.experimentalLongPollingOptions),se.useFetchStreams));var N,se;l._firestoreClient=new Ay(l._authCredentials,l._appCheckCredentials,l._queue,f),null!==(i=u.localCache)&&void 0!==i&&i._offlineComponentProvider&&null!==(s=u.localCache)&&void 0!==s&&s._onlineComponentProvider&&(l._firestoreClient._uninitializedComponentsProvider={_offlineKind:u.localCache.kind,_offline:u.localCache._offlineComponentProvider,_online:u.localCache._onlineComponentProvider})}class nc{constructor(n){this._byteString=n}static fromBase64String(n){try{return new nc(si.fromBase64String(n))}catch(i){throw new me(ae.INVALID_ARGUMENT,"Failed to construct data from Base64 string: "+i)}}static fromUint8Array(n){return new nc(si.fromUint8Array(n))}toBase64(){return this._byteString.toBase64()}toUint8Array(){return this._byteString.toUint8Array()}toString(){return"Bytes(base64: "+this.toBase64()+")"}isEqual(n){return this._byteString.isEqual(n._byteString)}}class hu{constructor(...n){for(let i=0;i90)throw new me(ae.INVALID_ARGUMENT,"Latitude must be a number between -90 and 90, but was: "+n);if(!isFinite(i)||i<-180||i>180)throw new me(ae.INVALID_ARGUMENT,"Longitude must be a number between -180 and 180, but was: "+i);this._lat=n,this._long=i}get latitude(){return this._lat}get longitude(){return this._long}isEqual(n){return this._lat===n._lat&&this._long===n._long}toJSON(){return{latitude:this._lat,longitude:this._long}}_compareTo(n){return Ve(this._lat,n._lat)||Ve(this._long,n._long)}}const Nv=/^__.*__$/;class Uf{constructor(n,i,s){this.data=n,this.fieldMask=i,this.fieldTransforms=s}toMutation(n,i){return null!==this.fieldMask?new lo(n,this.data,this.fieldMask,i,this.fieldTransforms):new Ms(n,this.data,i,this.fieldTransforms)}}function $f(l){switch(l){case 0:case 2:case 1:return!0;case 3:case 4:return!1;default:throw B()}}class Bf{constructor(n,i,s,u,f,_){this.settings=n,this.databaseId=i,this.serializer=s,this.ignoreUndefinedProperties=u,void 0===f&&this.mu(),this.fieldTransforms=f||[],this.fieldMask=_||[]}get path(){return this.settings.path}get fu(){return this.settings.fu}gu(n){return new Bf(Object.assign(Object.assign({},this.settings),n),this.databaseId,this.serializer,this.ignoreUndefinedProperties,this.fieldTransforms,this.fieldMask)}pu(n){var i;const s=null===(i=this.path)||void 0===i?void 0:i.child(n),u=this.gu({path:s,yu:!1});return u.wu(n),u}Su(n){var i;const s=null===(i=this.path)||void 0===i?void 0:i.child(n),u=this.gu({path:s,yu:!1});return u.mu(),u}bu(n){return this.gu({path:void 0,yu:!0})}Du(n){return Gf(n,this.settings.methodName,this.settings.Cu||!1,this.path,this.settings.vu)}contains(n){return void 0!==this.fieldMask.find(i=>n.isPrefixOf(i))||void 0!==this.fieldTransforms.find(i=>n.isPrefixOf(i.field))}mu(){if(this.path)for(let n=0;nN.covers(we.field))}else N=null,z=_.fieldTransforms;return new Uf(new In(w),N,z)}function Sa(l,n){if(Vv(l=(0,De.Ku)(l)))return Gg("Unsupported field value:",n,l),Fv(l,n);if(l instanceof qc)return function(s,u){if(!$f(u.fu))throw u.Du(`${s._methodName}() can only be used with update() and set()`);if(!u.path)throw u.Du(`${s._methodName}() is not currently supported inside arrays`);const f=s._toFieldTransform(u);f&&u.fieldTransforms.push(f)}(l,n),null;if(void 0===l&&n.ignoreUndefinedProperties)return null;if(n.path&&n.fieldMask.push(n.path),l instanceof Array){if(n.settings.yu&&4!==n.fu)throw n.Du("Nested arrays are not supported");return function(s,u){const f=[];let _=0;for(const w of s){let N=Sa(w,u.bu(_));null==N&&(N={nullValue:"NULL_VALUE"}),f.push(N),_++}return{arrayValue:{values:f}}}(l,n)}return function(s,u){if(null===(s=(0,De.Ku)(s)))return{nullValue:"NULL_VALUE"};if("number"==typeof s)return cl(u.serializer,s);if("boolean"==typeof s)return{booleanValue:s};if("string"==typeof s)return{stringValue:s};if(s instanceof Date){const f=Xt.fromDate(s);return{timestampValue:wo(u.serializer,f)}}if(s instanceof Xt){const f=new Xt(s.seconds,1e3*Math.floor(s.nanoseconds/1e3));return{timestampValue:wo(u.serializer,f)}}if(s instanceof Ug)return{geoPointValue:{latitude:s.latitude,longitude:s.longitude}};if(s instanceof nc)return{bytesValue:Gs(u.serializer,s._byteString)};if(s instanceof go){const f=u.databaseId,_=s.firestore._databaseId;if(!_.isEqual(f))throw u.Du(`Document reference is for database ${_.projectId}/${_.database} but should be for database ${f.projectId}/${f.database}`);return{referenceValue:_a(s.firestore._databaseId||u.databaseId,s._key.path)}}throw u.Du(`Unsupported field value: ${Lf(s)}`)}(l,n)}function Fv(l,n){const i={};return ti(l)?n.path&&n.path.length>0&&n.fieldMask.push(n.path):mi(l,(s,u)=>{const f=Sa(u,n.pu(s));null!=f&&(i[s]=f)}),{mapValue:{fields:i}}}function Vv(l){return!("object"!=typeof l||null===l||l instanceof Array||l instanceof Date||l instanceof Xt||l instanceof Ug||l instanceof nc||l instanceof go||l instanceof qc)}function Gg(l,n,i){if(!Vv(i)||"object"!=typeof(u=i)||null===u||Object.getPrototypeOf(u)!==Object.prototype&&null!==Object.getPrototypeOf(u)){const s=Lf(i);throw n.Du("an object"===s?l+" a custom object":l+" "+s)}var u}function Yc(l,n,i){if((n=(0,De.Ku)(n))instanceof hu)return n._internalPath;if("string"==typeof n)return Hf(l,n);throw Gf("Field path arguments must be of type string or ",l,!1,void 0,i)}const ky=new RegExp("[~\\*/\\[\\]]");function Hf(l,n,i){if(n.search(ky)>=0)throw Gf(`Invalid field path (${n}). Paths must not contain '~', '*', '/', '[', or ']'`,l,!1,void 0,i);try{return new hu(...n.split("."))._internalPath}catch{throw Gf(`Invalid field path (${n}). Paths must not be empty, begin with '.', end with '.', or contain '..'`,l,!1,void 0,i)}}function Gf(l,n,i,s,u){const f=s&&!s.isEmpty(),_=void 0!==u;let w=`Function ${n}() called with invalid data`;i&&(w+=" (via `toFirestore()`)"),w+=". ";let N="";return(f||_)&&(N+=" (found",f&&(N+=` in field ${s}`),_&&(N+=` in document ${u}`),N+=")"),new me(ae.INVALID_ARGUMENT,w+l+N)}function Lv(l,n){return l.some(i=>i.isEqual(n))}class dh{constructor(n,i,s,u,f){this._firestore=n,this._userDataWriter=i,this._key=s,this._document=u,this._converter=f}get id(){return this._key.path.lastSegment()}get ref(){return new go(this._firestore,this._converter,this._key)}exists(){return null!==this._document}data(){if(this._document){if(this._converter){const n=new Fy(this._firestore,this._userDataWriter,this._key,this._document,null);return this._converter.fromFirestore(n)}return this._userDataWriter.convertValue(this._document.data.value)}}get(n){if(this._document){const i=this._document.data.field(Zc("DocumentSnapshot.get",n));if(null!==i)return this._userDataWriter.convertValue(i)}}}class Fy extends dh{data(){return super.data()}}function Zc(l,n){return"string"==typeof n?Hf(l,n):n instanceof hu?n._internalPath:n._delegate._internalPath}class qg{convertValue(n,i="none"){switch(H(n)){case 0:return null;case 1:return n.booleanValue;case 2:return ai(n.integerValue||n.doubleValue);case 3:return this.convertTimestamp(n.timestampValue);case 4:return this.convertServerTimestamp(n,i);case 5:return n.stringValue;case 6:return this.convertBytes(jn(n.bytesValue));case 7:return this.convertReference(n.referenceValue);case 8:return this.convertGeoPoint(n.geoPointValue);case 9:return this.convertArray(n.arrayValue,i);case 10:return this.convertObject(n.mapValue,i);default:throw B()}}convertObject(n,i){return this.convertObjectMap(n.fields,i)}convertObjectMap(n,i="none"){const s={};return mi(n,(u,f)=>{s[u]=this.convertValue(f,i)}),s}convertGeoPoint(n){return new Ug(ai(n.latitude),ai(n.longitude))}convertArray(n,i){return(n.values||[]).map(s=>this.convertValue(s,i))}convertServerTimestamp(n,i){switch(i){case"previous":const s=Ao(n);return null==s?null:this.convertValue(s,i);case"estimate":return this.convertTimestamp(Co(n));default:return null}}convertTimestamp(n){const i=Or(n);return new Xt(i.seconds,i.nanos)}convertDocumentKey(n,i){const s=gn.fromString(n);W(Td(s));const u=new To(s.get(1),s.get(3)),f=new Gt(s.popFirst(5));return u.isEqual(i)||rn(`Document ${f} contains a document reference within a different database (${u.projectId}/${u.database}) which is not supported. It will be treated as a reference in the current database (${i.projectId}/${i.database}) instead.`),f}}class Sl{constructor(n,i){this.hasPendingWrites=n,this.fromCache=i}isEqual(n){return this.hasPendingWrites===n.hasPendingWrites&&this.fromCache===n.fromCache}}class oc extends dh{constructor(n,i,s,u,f,_){super(n,i,s,u,_),this._firestore=n,this._firestoreImpl=n,this.metadata=f}exists(){return super.exists()}data(n={}){if(this._document){if(this._converter){const i=new td(this._firestore,this._userDataWriter,this._key,this._document,this.metadata,null);return this._converter.fromFirestore(i,n)}return this._userDataWriter.convertValue(this._document.data.value,n.serverTimestamps)}}get(n,i={}){if(this._document){const s=this._document.data.field(Zc("DocumentSnapshot.get",n));if(null!==s)return this._userDataWriter.convertValue(s,i.serverTimestamps)}}}class td extends oc{data(n={}){return super.data(n)}}function jv(l){l=Xr(l,go);const n=Xr(l.firestore,bi);return sh(to(n),l._key).then(i=>function Xf(l,n,i){const s=i.docs.get(n._key),u=new fu(l);return new oc(l,u,n._key,s,new Sl(i.hasPendingWrites,i.fromCache),n.converter)}(n,l,i))}class fu extends qg{constructor(n){super(),this.firestore=n}convertBytes(n){return new nc(n)}convertReference(n){const i=this.convertDocumentKey(n,this.firestore._databaseId);return new go(this.firestore,null,i)}}function Zg(l,n,i){l=Xr(l,go);const s=Xr(l.firestore,bi),u=function fh(l,n,i){let s;return s=l?i&&(i.merge||i.mergeFields)?l.toFirestore(n,i):l.toFirestore(n):n,s}(l.converter,n,i);return function rd(l,n){return function(s,u){const f=new Ce;return s.asyncQueue.enqueueAndForget((0,Ie.A)(function*(){return function Xd(l,n,i){return Qd.apply(this,arguments)}(yield function Rg(l){return Gc(l).then(n=>n.syncEngine)}(s),u,f)})),f.promise}(to(l),n)}(s,[jf(rc(s),"setDoc",l._key,u,null!==l.converter,i).toMutation(l._key,Di.none())])}!function(n,i=!0){Tt=re.MF,(0,re.om)(new Ze.uA("firestore",(s,{instanceIdentifier:u,options:f})=>{const _=s.getProvider("app").getImmediate(),w=new bi(new vn(s.getProvider("auth-internal")),new er(s.getProvider("app-check-internal")),function(z,se){if(!Object.prototype.hasOwnProperty.apply(z.options,["projectId"]))throw new me(ae.INVALID_ARGUMENT,'"projectId" not provided in firebase.initializeApp.');return new To(z.options.projectId,se)}(_,u),_);return f=Object.assign({useFetchStreams:i},f),w._setSettings(f),w},"PUBLIC").setMultipleInstances(!0)),(0,re.KO)(Ot,"4.6.3",n),(0,re.KO)(Ot,"4.6.3","esm2017")}();class vh{constructor(n){return n}}const ep="firestore",im=new d.nKC("angularfire2.firestore-instances");function s0(l){return(n,i)=>{const s=n.runOutsideAngular(()=>l(i));return new vh(s)}}const a0={provide:class o0{constructor(){return(0,g.CA)(ep)}},deps:[[new d.Xx1,im]]},l0={provide:vh,useFactory:function Qv(l,n){const i=(0,g.lR)(ep,l,n);return i&&new vh(i)},deps:[[new d.Xx1,im],ge.XU]};function Yv(l,...n){return(0,X.KO)("angularfire",g.xv.full,"fst"),(0,d.EmA)([l0,a0,{provide:im,useFactory:s0(l),multi:!0,deps:[d.SKi,d.zZn,g.u0,ge.gL,[new d.Xx1,Oe.DF],[new d.Xx1,g.Jv],...n]}])}const sm=(0,g.S3)(by,!0),lm=(0,g.S3)(jv,!0),um=(0,g.S3)(uh,!0),T0=(0,g.S3)(Zg,!0)},3586:(En,bt,j)=>{"use strict";j.d(bt,{xv:()=>Me,u0:()=>Dt,Jv:()=>Ot,CA:()=>Ct,lR:()=>Ke,S3:()=>ae});var g=j(9842),d=j(4438),ge=j(2214),Oe=j(8359);class X extends Oe.yU{constructor(Ce,at){super()}schedule(Ce,at=0){return this}}const Ie={setInterval(me,Ce,...at){const{delegate:kt}=Ie;return null!=kt&&kt.setInterval?kt.setInterval(me,Ce,...at):setInterval(me,Ce,...at)},clearInterval(me){const{delegate:Ce}=Ie;return((null==Ce?void 0:Ce.clearInterval)||clearInterval)(me)},delegate:void 0};var re=j(7908);class Ze extends X{constructor(Ce,at){super(Ce,at),this.scheduler=Ce,this.work=at,this.pending=!1}schedule(Ce,at=0){var kt;if(this.closed)return this;this.state=Ce;const Bt=this.id,vn=this.scheduler;return null!=Bt&&(this.id=this.recycleAsyncId(vn,Bt,at)),this.pending=!0,this.delay=at,this.id=null!==(kt=this.id)&&void 0!==kt?kt:this.requestAsyncId(vn,this.id,at),this}requestAsyncId(Ce,at,kt=0){return Ie.setInterval(Ce.flush.bind(Ce,this),kt)}recycleAsyncId(Ce,at,kt=0){if(null!=kt&&this.delay===kt&&!1===this.pending)return at;null!=at&&Ie.clearInterval(at)}execute(Ce,at){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const kt=this._execute(Ce,at);if(kt)return kt;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(Ce,at){let Bt,kt=!1;try{this.work(Ce)}catch(vn){kt=!0,Bt=vn||new Error("Scheduled action threw falsy error")}if(kt)return this.unsubscribe(),Bt}unsubscribe(){if(!this.closed){const{id:Ce,scheduler:at}=this,{actions:kt}=at;this.work=this.state=this.scheduler=null,this.pending=!1,(0,re.o)(kt,this),null!=Ce&&(this.id=this.recycleAsyncId(at,Ce,null)),this.delay=null,super.unsubscribe()}}}const De={now:()=>(De.delegate||Date).now(),delegate:void 0};class _e{constructor(Ce,at=_e.now){this.schedulerActionCtor=Ce,this.now=at}schedule(Ce,at=0,kt){return new this.schedulerActionCtor(this,Ce).schedule(kt,at)}}_e.now=De.now;class Fe extends _e{constructor(Ce,at=_e.now){super(Ce,at),this.actions=[],this._active=!1}flush(Ce){const{actions:at}=this;if(this._active)return void at.push(Ce);let kt;this._active=!0;do{if(kt=Ce.execute(Ce.state,Ce.delay))break}while(Ce=at.shift());if(this._active=!1,kt){for(;Ce=at.shift();)Ce.unsubscribe();throw kt}}}const Le=new class $e extends Fe{}(class Je extends Ze{constructor(Ce,at){super(Ce,at),this.scheduler=Ce,this.work=at}schedule(Ce,at=0){return at>0?super.schedule(Ce,at):(this.delay=at,this.state=Ce,this.scheduler.flush(this),this)}execute(Ce,at){return at>0||this.closed?super.execute(Ce,at):this._execute(Ce,at)}requestAsyncId(Ce,at,kt=0){return null!=kt&&kt>0||null==kt&&this.delay>0?super.requestAsyncId(Ce,at,kt):(Ce.flush(this),0)}}),ft=new Fe(Ze);var st=j(1985),Mt=j(8141),mt=j(6745),vt=j(941);const Me=new d.RxE("ANGULARFIRE2_VERSION");function Ke(me,Ce,at){if(Ce){if(1===Ce.length)return Ce[0];const vn=Ce.filter(bn=>bn.app===at);if(1===vn.length)return vn[0]}return at.container.getProvider(me).getImmediate({optional:!0})}const Ct=(me,Ce)=>{const at=Ce?[Ce]:(0,ge.Dk)(),kt=[];return at.forEach(Bt=>{Bt.container.getProvider(me).instances.forEach(bn=>{kt.includes(bn)||kt.push(bn)})}),kt};class Ot{constructor(){return Ct(He)}}const He="app-check";function Tt(){}class Vt{constructor(Ce,at=Le){(0,g.A)(this,"zone",void 0),(0,g.A)(this,"delegate",void 0),this.zone=Ce,this.delegate=at}now(){return this.delegate.now()}schedule(Ce,at,kt){const Bt=this.zone;return this.delegate.schedule(function(bn){Bt.runGuarded(()=>{Ce.apply(this,[bn])})},at,kt)}}class Zt{constructor(Ce){(0,g.A)(this,"zone",void 0),(0,g.A)(this,"task",null),this.zone=Ce}call(Ce,at){const kt=this.unscheduleTask.bind(this);return this.task=this.zone.run(()=>Zone.current.scheduleMacroTask("firebaseZoneBlock",Tt,{},Tt,Tt)),at.pipe((0,Mt.M)({next:kt,complete:kt,error:kt})).subscribe(Ce).add(kt)}unscheduleTask(){setTimeout(()=>{null!=this.task&&"scheduled"===this.task.state&&(this.task.invoke(),this.task=null)},10)}}let Dt=(()=>{var me;class Ce{constructor(kt){(0,g.A)(this,"ngZone",void 0),(0,g.A)(this,"outsideAngular",void 0),(0,g.A)(this,"insideAngular",void 0),this.ngZone=kt,this.outsideAngular=kt.runOutsideAngular(()=>new Vt(Zone.current)),this.insideAngular=kt.run(()=>new Vt(Zone.current,ft)),globalThis.\u0275AngularFireScheduler||(globalThis.\u0275AngularFireScheduler=this)}}return me=Ce,(0,g.A)(Ce,"\u0275fac",function(kt){return new(kt||me)(d.KVO(d.SKi))}),(0,g.A)(Ce,"\u0275prov",d.jDH({token:me,factory:me.\u0275fac,providedIn:"root"})),Ce})();function Be(){const me=globalThis.\u0275AngularFireScheduler;if(!me)throw new Error("Either AngularFireModule has not been provided in your AppModule (this can be done manually or implictly using\nprovideFirebaseApp) or you're calling an AngularFire method outside of an NgModule (which is not supported).");return me}function pt(me){return Be().ngZone.run(()=>me())}function W(me){return function te(me){return function(at){return(at=at.lift(new Zt(me.ngZone))).pipe((0,mt._)(me.outsideAngular),(0,vt.Q)(me.insideAngular))}}(Be())(me)}const de=(me,Ce)=>function(){const kt=arguments;return Ce&&setTimeout(()=>{"scheduled"===Ce.state&&Ce.invoke()},10),pt(()=>me.apply(void 0,kt))},ae=(me,Ce)=>function(){let at;const kt=arguments;for(let vn=0;vnZone.current.scheduleMacroTask("firebaseZoneBlock",Tt,{},Tt,Tt)))),kt[vn]=de(kt[vn],at));const Bt=function rn(me){return Be().ngZone.runOutsideAngular(()=>me())}(()=>me.apply(this,kt));if(!Ce){if(Bt instanceof st.c){const vn=Be();return Bt.pipe((0,mt._)(vn.outsideAngular),(0,vt.Q)(vn.insideAngular))}return pt(()=>Bt)}return Bt instanceof st.c?Bt.pipe(W):Bt instanceof Promise?pt(()=>new Promise((vn,bn)=>Bt.then($n=>pt(()=>vn($n)),$n=>pt(()=>bn($n))))):"function"==typeof Bt&&at?function(){return setTimeout(()=>{at&&"scheduled"===at.state&&at.invoke()},10),Bt.apply(this,arguments)}:pt(()=>Bt)}},4341:(En,bt,j)=>{"use strict";j.d(bt,{YN:()=>da,zX:()=>ci,VZ:()=>Go,cz:()=>Ke,kq:()=>Qe,vO:()=>Nt,BC:()=>gn,vS:()=>or});var g=j(4438),d=j(177),ge=j(8455),Oe=j(1985),X=j(3073),Ie=j(8750),re=j(3794),Ze=j(4360),Je=j(6450),De=j(8496),Fe=j(6354);let $e=(()=>{var L;class P{constructor($,Te){this._renderer=$,this._elementRef=Te,this.onChange=nn=>{},this.onTouched=()=>{}}setProperty($,Te){this._renderer.setProperty(this._elementRef.nativeElement,$,Te)}registerOnTouched($){this.onTouched=$}registerOnChange($){this.onChange=$}setDisabledState($){this.setProperty("disabled",$)}}return(L=P).\u0275fac=function($){return new($||L)(g.rXU(g.sFG),g.rXU(g.aKT))},L.\u0275dir=g.FsC({type:L}),P})(),Le=(()=>{var L;class P extends $e{}return(L=P).\u0275fac=(()=>{let ce;return function(Te){return(ce||(ce=g.xGo(L)))(Te||L)}})(),L.\u0275dir=g.FsC({type:L,features:[g.Vt3]}),P})();const Qe=new g.nKC(""),st={provide:Qe,useExisting:(0,g.Rfq)(()=>vt),multi:!0},mt=new g.nKC("");let vt=(()=>{var L;class P extends $e{constructor($,Te,nn){super($,Te),this._compositionMode=nn,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function Mt(){const L=(0,d.QT)()?(0,d.QT)().getUserAgent():"";return/android (\d+)/.test(L.toLowerCase())}())}writeValue($){this.setProperty("value",null==$?"":$)}_handleInput($){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange($)}_compositionStart(){this._composing=!0}_compositionEnd($){this._composing=!1,this._compositionMode&&this.onChange($)}}return(L=P).\u0275fac=function($){return new($||L)(g.rXU(g.sFG),g.rXU(g.aKT),g.rXU(mt,8))},L.\u0275dir=g.FsC({type:L,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function($,Te){1&$&&g.bIt("input",function(On){return Te._handleInput(On.target.value)})("blur",function(){return Te.onTouched()})("compositionstart",function(){return Te._compositionStart()})("compositionend",function(On){return Te._compositionEnd(On.target.value)})},features:[g.Jv_([st]),g.Vt3]}),P})();function Me(L){return null==L||("string"==typeof L||Array.isArray(L))&&0===L.length}const Ke=new g.nKC(""),Ct=new g.nKC("");function B(L){return null}function W(L){return null!=L}function te(L){return(0,g.jNT)(L)?(0,ge.H)(L):L}function de(L){let P={};return L.forEach(ce=>{P=null!=ce?{...P,...ce}:P}),0===Object.keys(P).length?null:P}function ae(L,P){return P.map(ce=>ce(L))}function Ce(L){return L.map(P=>function me(L){return!L.validate}(P)?P:ce=>P.validate(ce))}function kt(L){return null!=L?function at(L){if(!L)return null;const P=L.filter(W);return 0==P.length?null:function(ce){return de(ae(ce,P))}}(Ce(L)):null}function vn(L){return null!=L?function Bt(L){if(!L)return null;const P=L.filter(W);return 0==P.length?null:function(ce){return function _e(...L){const P=(0,re.ms)(L),{args:ce,keys:$}=(0,X.D)(L),Te=new Oe.c(nn=>{const{length:On}=ce;if(!On)return void nn.complete();const rr=new Array(On);let Ji=On,ao=On;for(let eo=0;eo{Qo||(Qo=!0,ao--),rr[eo]=Na},()=>Ji--,void 0,()=>{(!Ji||!Qo)&&(ao||nn.next($?(0,De.e)($,rr):rr),nn.complete())}))}});return P?Te.pipe((0,Je.I)(P)):Te}(ae(ce,P).map(te)).pipe((0,Fe.T)(de))}}(Ce(L)):null}function bn(L,P){return null===L?[P]:Array.isArray(L)?[...L,P]:[L,P]}function er(L){return L?Array.isArray(L)?L:[L]:[]}function yn(L,P){return Array.isArray(L)?L.includes(P):L===P}function ir(L,P){const ce=er(P);return er(L).forEach(Te=>{yn(ce,Te)||ce.push(Te)}),ce}function Yn(L,P){return er(P).filter(ce=>!yn(L,ce))}class Ve{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(P){this._rawValidators=P||[],this._composedValidatorFn=kt(this._rawValidators)}_setAsyncValidators(P){this._rawAsyncValidators=P||[],this._composedAsyncValidatorFn=vn(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(P){this._onDestroyCallbacks.push(P)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(P=>P()),this._onDestroyCallbacks=[]}reset(P=void 0){this.control&&this.control.reset(P)}hasError(P,ce){return!!this.control&&this.control.hasError(P,ce)}getError(P,ce){return this.control?this.control.getError(P,ce):null}}class yt extends Ve{get formDirective(){return null}get path(){return null}}class Nt extends Ve{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Xt{constructor(P){this._cd=P}get isTouched(){var P;return!(null===(P=this._cd)||void 0===P||null===(P=P.control)||void 0===P||!P.touched)}get isUntouched(){var P;return!(null===(P=this._cd)||void 0===P||null===(P=P.control)||void 0===P||!P.untouched)}get isPristine(){var P;return!(null===(P=this._cd)||void 0===P||null===(P=P.control)||void 0===P||!P.pristine)}get isDirty(){var P;return!(null===(P=this._cd)||void 0===P||null===(P=P.control)||void 0===P||!P.dirty)}get isValid(){var P;return!(null===(P=this._cd)||void 0===P||null===(P=P.control)||void 0===P||!P.valid)}get isInvalid(){var P;return!(null===(P=this._cd)||void 0===P||null===(P=P.control)||void 0===P||!P.invalid)}get isPending(){var P;return!(null===(P=this._cd)||void 0===P||null===(P=P.control)||void 0===P||!P.pending)}get isSubmitted(){var P;return!(null===(P=this._cd)||void 0===P||!P.submitted)}}let gn=(()=>{var L;class P extends Xt{constructor($){super($)}}return(L=P).\u0275fac=function($){return new($||L)(g.rXU(Nt,2))},L.\u0275dir=g.FsC({type:L,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function($,Te){2&$&&g.AVh("ng-untouched",Te.isUntouched)("ng-touched",Te.isTouched)("ng-pristine",Te.isPristine)("ng-dirty",Te.isDirty)("ng-valid",Te.isValid)("ng-invalid",Te.isInvalid)("ng-pending",Te.isPending)},features:[g.Vt3]}),P})();const oe="VALID",ze="INVALID",ct="PENDING",Xe="DISABLED";function rt(L){return null!=L&&!Array.isArray(L)&&"object"==typeof L}class Wn{constructor(P,ce){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(P),this._assignAsyncValidators(ce)}get validator(){return this._composedValidatorFn}set validator(P){this._rawValidators=this._composedValidatorFn=P}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(P){this._rawAsyncValidators=this._composedAsyncValidatorFn=P}get parent(){return this._parent}get valid(){return this.status===oe}get invalid(){return this.status===ze}get pending(){return this.status==ct}get disabled(){return this.status===Xe}get enabled(){return this.status!==Xe}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(P){this._assignValidators(P)}setAsyncValidators(P){this._assignAsyncValidators(P)}addValidators(P){this.setValidators(ir(P,this._rawValidators))}addAsyncValidators(P){this.setAsyncValidators(ir(P,this._rawAsyncValidators))}removeValidators(P){this.setValidators(Yn(P,this._rawValidators))}removeAsyncValidators(P){this.setAsyncValidators(Yn(P,this._rawAsyncValidators))}hasValidator(P){return yn(this._rawValidators,P)}hasAsyncValidator(P){return yn(this._rawAsyncValidators,P)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(P={}){this.touched=!0,this._parent&&!P.onlySelf&&this._parent.markAsTouched(P)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(P=>P.markAllAsTouched())}markAsUntouched(P={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(ce=>{ce.markAsUntouched({onlySelf:!0})}),this._parent&&!P.onlySelf&&this._parent._updateTouched(P)}markAsDirty(P={}){this.pristine=!1,this._parent&&!P.onlySelf&&this._parent.markAsDirty(P)}markAsPristine(P={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(ce=>{ce.markAsPristine({onlySelf:!0})}),this._parent&&!P.onlySelf&&this._parent._updatePristine(P)}markAsPending(P={}){this.status=ct,!1!==P.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!P.onlySelf&&this._parent.markAsPending(P)}disable(P={}){const ce=this._parentMarkedDirty(P.onlySelf);this.status=Xe,this.errors=null,this._forEachChild($=>{$.disable({...P,onlySelf:!0})}),this._updateValue(),!1!==P.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...P,skipPristineCheck:ce}),this._onDisabledChange.forEach($=>$(!0))}enable(P={}){const ce=this._parentMarkedDirty(P.onlySelf);this.status=oe,this._forEachChild($=>{$.enable({...P,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:P.emitEvent}),this._updateAncestors({...P,skipPristineCheck:ce}),this._onDisabledChange.forEach($=>$(!1))}_updateAncestors(P){this._parent&&!P.onlySelf&&(this._parent.updateValueAndValidity(P),P.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(P){this._parent=P}getRawValue(){return this.value}updateValueAndValidity(P={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===oe||this.status===ct)&&this._runAsyncValidator(P.emitEvent)),!1!==P.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!P.onlySelf&&this._parent.updateValueAndValidity(P)}_updateTreeValidity(P={emitEvent:!0}){this._forEachChild(ce=>ce._updateTreeValidity(P)),this.updateValueAndValidity({onlySelf:!0,emitEvent:P.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Xe:oe}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(P){if(this.asyncValidator){this.status=ct,this._hasOwnPendingAsyncValidator=!0;const ce=te(this.asyncValidator(this));this._asyncValidationSubscription=ce.subscribe($=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors($,{emitEvent:P})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(P,ce={}){this.errors=P,this._updateControlsErrors(!1!==ce.emitEvent)}get(P){let ce=P;return null==ce||(Array.isArray(ce)||(ce=ce.split(".")),0===ce.length)?null:ce.reduce(($,Te)=>$&&$._find(Te),this)}getError(P,ce){const $=ce?this.get(ce):this;return $&&$.errors?$.errors[P]:null}hasError(P,ce){return!!this.getError(P,ce)}get root(){let P=this;for(;P._parent;)P=P._parent;return P}_updateControlsErrors(P){this.status=this._calculateStatus(),P&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(P)}_initObservables(){this.valueChanges=new g.bkB,this.statusChanges=new g.bkB}_calculateStatus(){return this._allControlsDisabled()?Xe:this.errors?ze:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(ct)?ct:this._anyControlsHaveStatus(ze)?ze:oe}_anyControlsHaveStatus(P){return this._anyControls(ce=>ce.status===P)}_anyControlsDirty(){return this._anyControls(P=>P.dirty)}_anyControlsTouched(){return this._anyControls(P=>P.touched)}_updatePristine(P={}){this.pristine=!this._anyControlsDirty(),this._parent&&!P.onlySelf&&this._parent._updatePristine(P)}_updateTouched(P={}){this.touched=this._anyControlsTouched(),this._parent&&!P.onlySelf&&this._parent._updateTouched(P)}_registerOnCollectionChange(P){this._onCollectionChange=P}_setUpdateStrategy(P){rt(P)&&null!=P.updateOn&&(this._updateOn=P.updateOn)}_parentMarkedDirty(P){return!P&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(P){return null}_assignValidators(P){this._rawValidators=Array.isArray(P)?P.slice():P,this._composedValidatorFn=function he(L){return Array.isArray(L)?kt(L):L||null}(this._rawValidators)}_assignAsyncValidators(P){this._rawAsyncValidators=Array.isArray(P)?P.slice():P,this._composedAsyncValidatorFn=function Et(L){return Array.isArray(L)?vn(L):L||null}(this._rawAsyncValidators)}}const Ei=new g.nKC("CallSetDisabledState",{providedIn:"root",factory:()=>ii}),ii="always";function Ui(L,P,ce=ii){var $,Te;(function gi(L,P){const ce=function $n(L){return L._rawValidators}(L);null!==P.validator?L.setValidators(bn(ce,P.validator)):"function"==typeof ce&&L.setValidators([ce]);const $=function qn(L){return L._rawAsyncValidators}(L);null!==P.asyncValidator?L.setAsyncValidators(bn($,P.asyncValidator)):"function"==typeof $&&L.setAsyncValidators([$]);const Te=()=>L.updateValueAndValidity();Xi(P._rawValidators,Te),Xi(P._rawAsyncValidators,Te)})(L,P),P.valueAccessor.writeValue(L.value),(L.disabled||"always"===ce)&&(null===($=(Te=P.valueAccessor).setDisabledState)||void 0===$||$.call(Te,L.disabled)),function lt(L,P){P.valueAccessor.registerOnChange(ce=>{L._pendingValue=ce,L._pendingChange=!0,L._pendingDirty=!0,"change"===L.updateOn&&fn(L,P)})}(L,P),function Kn(L,P){const ce=($,Te)=>{P.valueAccessor.writeValue($),Te&&P.viewToModelUpdate($)};L.registerOnChange(ce),P._registerOnDestroy(()=>{L._unregisterOnChange(ce)})}(L,P),function Ut(L,P){P.valueAccessor.registerOnTouched(()=>{L._pendingTouched=!0,"blur"===L.updateOn&&L._pendingChange&&fn(L,P),"submit"!==L.updateOn&&L.markAsTouched()})}(L,P),function wi(L,P){if(P.valueAccessor.setDisabledState){const ce=$=>{P.valueAccessor.setDisabledState($)};L.registerOnDisabledChange(ce),P._registerOnDestroy(()=>{L._unregisterOnDisabledChange(ce)})}}(L,P)}function Xi(L,P){L.forEach(ce=>{ce.registerOnValidatorChange&&ce.registerOnValidatorChange(P)})}function fn(L,P){L._pendingDirty&&L.markAsDirty(),L.setValue(L._pendingValue,{emitModelToViewChange:!1}),P.viewToModelUpdate(L._pendingValue),L._pendingChange=!1}function xi(L,P){const ce=L.indexOf(P);ce>-1&&L.splice(ce,1)}function mi(L){return"object"==typeof L&&null!==L&&2===Object.keys(L).length&&"value"in L&&"disabled"in L}Promise.resolve();const Si=class extends Wn{constructor(P=null,ce,$){super(function ie(L){return(rt(L)?L.validators:L)||null}(ce),function Pe(L,P){return(rt(P)?P.asyncValidators:L)||null}($,ce)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(P),this._setUpdateStrategy(ce),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),rt(ce)&&(ce.nonNullable||ce.initialValueIsDefault)&&(this.defaultValue=mi(P)?P.value:P)}setValue(P,ce={}){this.value=this._pendingValue=P,this._onChange.length&&!1!==ce.emitModelToViewChange&&this._onChange.forEach($=>$(this.value,!1!==ce.emitViewToModelChange)),this.updateValueAndValidity(ce)}patchValue(P,ce={}){this.setValue(P,ce)}reset(P=this.defaultValue,ce={}){this._applyFormState(P),this.markAsPristine(ce),this.markAsUntouched(ce),this.setValue(this.value,ce),this._pendingChange=!1}_updateValue(){}_anyControls(P){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(P){this._onChange.push(P)}_unregisterOnChange(P){xi(this._onChange,P)}registerOnDisabledChange(P){this._onDisabledChange.push(P)}_unregisterOnDisabledChange(P){xi(this._onDisabledChange,P)}_forEachChild(P){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(P){mi(P)?(this.value=this._pendingValue=P.value,P.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=P}},ps={provide:Nt,useExisting:(0,g.Rfq)(()=>or)},si=Promise.resolve();let or=(()=>{var L;class P extends Nt{constructor($,Te,nn,On,rr,Ji){super(),this._changeDetectorRef=rr,this.callSetDisabledState=Ji,this.control=new Si,this._registered=!1,this.name="",this.update=new g.bkB,this._parent=$,this._setValidators(Te),this._setAsyncValidators(nn),this.valueAccessor=function Hn(L,P){if(!P)return null;let ce,$,Te;return Array.isArray(P),P.forEach(nn=>{nn.constructor===vt?ce=nn:function Pn(L){return Object.getPrototypeOf(L.constructor)===Le}(nn)?$=nn:Te=nn}),Te||$||ce||null}(0,On)}ngOnChanges($){if(this._checkForErrors(),!this._registered||"name"in $){if(this._registered&&(this._checkName(),this.formDirective)){const Te=$.name.previousValue;this.formDirective.removeControl({name:Te,path:this._getPath(Te)})}this._setUpControl()}"isDisabled"in $&&this._updateDisabled($),function cn(L,P){if(!L.hasOwnProperty("model"))return!1;const ce=L.model;return!!ce.isFirstChange()||!Object.is(P,ce.currentValue)}($,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate($){this.viewModel=$,this.update.emit($)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){Ui(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue($){si.then(()=>{var Te;this.control.setValue($,{emitViewToModelChange:!1}),null===(Te=this._changeDetectorRef)||void 0===Te||Te.markForCheck()})}_updateDisabled($){const Te=$.isDisabled.currentValue,nn=0!==Te&&(0,g.L39)(Te);si.then(()=>{var On;nn&&!this.control.disabled?this.control.disable():!nn&&this.control.disabled&&this.control.enable(),null===(On=this._changeDetectorRef)||void 0===On||On.markForCheck()})}_getPath($){return this._parent?function pi(L,P){return[...P.path,L]}($,this._parent):[$]}}return(L=P).\u0275fac=function($){return new($||L)(g.rXU(yt,9),g.rXU(Ke,10),g.rXU(Ct,10),g.rXU(Qe,10),g.rXU(g.gRc,8),g.rXU(Ei,8))},L.\u0275dir=g.FsC({type:L,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[g.Mj6.None,"disabled","isDisabled"],model:[g.Mj6.None,"ngModel","model"],options:[g.Mj6.None,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[g.Jv_([ps]),g.Vt3,g.OA$]}),P})();function nr(L){return"number"==typeof L?L:parseFloat(L)}let li=(()=>{var L;class P{constructor(){this._validator=B}ngOnChanges($){if(this.inputName in $){const Te=this.normalizeInput($[this.inputName].currentValue);this._enabled=this.enabled(Te),this._validator=this._enabled?this.createValidator(Te):B,this._onChange&&this._onChange()}}validate($){return this._validator($)}registerOnValidatorChange($){this._onChange=$}enabled($){return null!=$}}return(L=P).\u0275fac=function($){return new($||L)},L.\u0275dir=g.FsC({type:L,features:[g.OA$]}),P})();const vi={provide:Ke,useExisting:(0,g.Rfq)(()=>ci),multi:!0};let ci=(()=>{var L;class P extends li{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=$=>nr($),this.createValidator=$=>function Vt(L){return P=>{if(Me(P.value)||Me(L))return null;const ce=parseFloat(P.value);return!isNaN(ce)&&ce>L?{max:{max:L,actual:P.value}}:null}}($)}}return(L=P).\u0275fac=(()=>{let ce;return function(Te){return(ce||(ce=g.xGo(L)))(Te||L)}})(),L.\u0275dir=g.FsC({type:L,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function($,Te){2&$&&g.BMQ("max",Te._enabled?Te.max:null)},inputs:{max:"max"},features:[g.Jv_([vi]),g.Vt3]}),P})();const no={provide:Ke,useExisting:(0,g.Rfq)(()=>Go),multi:!0};let Go=(()=>{var L;class P extends li{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=$=>nr($),this.createValidator=$=>function Tt(L){return P=>{if(Me(P.value)||Me(L))return null;const ce=parseFloat(P.value);return!isNaN(ce)&&ce{let ce;return function(Te){return(ce||(ce=g.xGo(L)))(Te||L)}})(),L.\u0275dir=g.FsC({type:L,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function($,Te){2&$&&g.BMQ("min",Te._enabled?Te.min:null)},inputs:{min:"min"},features:[g.Jv_([no]),g.Vt3]}),P})(),ms=(()=>{var L;class P{}return(L=P).\u0275fac=function($){return new($||L)},L.\u0275mod=g.$C({type:L}),L.\u0275inj=g.G2t({}),P})(),da=(()=>{var L;class P{static withConfig($){var Te;return{ngModule:P,providers:[{provide:Ei,useValue:null!==(Te=$.callSetDisabledState)&&void 0!==Te?Te:ii}]}}}return(L=P).\u0275fac=function($){return new($||L)},L.\u0275mod=g.$C({type:L}),L.\u0275inj=g.G2t({imports:[ms]}),P})()},345:(En,bt,j)=>{"use strict";j.d(bt,{Bb:()=>er,hE:()=>Yn,sG:()=>vn});var g=j(4438),d=j(177);class ge extends d.VF{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class Oe extends ge{static makeCurrent(){(0,d.ZD)(new Oe)}onAndCancel(ze,ct,Xe){return ze.addEventListener(ct,Xe),()=>{ze.removeEventListener(ct,Xe)}}dispatchEvent(ze,ct){ze.dispatchEvent(ct)}remove(ze){ze.parentNode&&ze.parentNode.removeChild(ze)}createElement(ze,ct){return(ct=ct||this.getDefaultDocument()).createElement(ze)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(ze){return ze.nodeType===Node.ELEMENT_NODE}isShadowRoot(ze){return ze instanceof DocumentFragment}getGlobalEventTarget(ze,ct){return"window"===ct?window:"document"===ct?ze:"body"===ct?ze.body:null}getBaseHref(ze){const ct=function Ie(){return X=X||document.querySelector("base"),X?X.getAttribute("href"):null}();return null==ct?null:function re(oe){return new URL(oe,document.baseURI).pathname}(ct)}resetBaseElement(){X=null}getUserAgent(){return window.navigator.userAgent}getCookie(ze){return(0,d._b)(document.cookie,ze)}}let X=null,Je=(()=>{var oe;class ze{build(){return new XMLHttpRequest}}return(oe=ze).\u0275fac=function(Xe){return new(Xe||oe)},oe.\u0275prov=g.jDH({token:oe,factory:oe.\u0275fac}),ze})();const De=new g.nKC("");let _e=(()=>{var oe;class ze{constructor(Xe,ie){this._zone=ie,this._eventNameToPlugin=new Map,Xe.forEach(he=>{he.manager=this}),this._plugins=Xe.slice().reverse()}addEventListener(Xe,ie,he){return this._findPluginFor(ie).addEventListener(Xe,ie,he)}getZone(){return this._zone}_findPluginFor(Xe){let ie=this._eventNameToPlugin.get(Xe);if(ie)return ie;if(ie=this._plugins.find(Pe=>Pe.supports(Xe)),!ie)throw new g.wOt(5101,!1);return this._eventNameToPlugin.set(Xe,ie),ie}}return(oe=ze).\u0275fac=function(Xe){return new(Xe||oe)(g.KVO(De),g.KVO(g.SKi))},oe.\u0275prov=g.jDH({token:oe,factory:oe.\u0275fac}),ze})();class Fe{constructor(ze){this._doc=ze}}const $e="ng-app-id";let Le=(()=>{var oe;class ze{constructor(Xe,ie,he,Pe={}){this.doc=Xe,this.appId=ie,this.nonce=he,this.platformId=Pe,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=(0,d.Vy)(Pe),this.resetHostNodes()}addStyles(Xe){for(const ie of Xe)1===this.changeUsageCount(ie,1)&&this.onStyleAdded(ie)}removeStyles(Xe){for(const ie of Xe)this.changeUsageCount(ie,-1)<=0&&this.onStyleRemoved(ie)}ngOnDestroy(){const Xe=this.styleNodesInDOM;Xe&&(Xe.forEach(ie=>ie.remove()),Xe.clear());for(const ie of this.getAllStyles())this.onStyleRemoved(ie);this.resetHostNodes()}addHost(Xe){this.hostNodes.add(Xe);for(const ie of this.getAllStyles())this.addStyleToHost(Xe,ie)}removeHost(Xe){this.hostNodes.delete(Xe)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(Xe){for(const ie of this.hostNodes)this.addStyleToHost(ie,Xe)}onStyleRemoved(Xe){var ie;const he=this.styleRef;null===(ie=he.get(Xe))||void 0===ie||null===(ie=ie.elements)||void 0===ie||ie.forEach(Pe=>Pe.remove()),he.delete(Xe)}collectServerRenderedStyles(){var Xe;const ie=null===(Xe=this.doc.head)||void 0===Xe?void 0:Xe.querySelectorAll(`style[${$e}="${this.appId}"]`);if(null!=ie&&ie.length){const he=new Map;return ie.forEach(Pe=>{null!=Pe.textContent&&he.set(Pe.textContent,Pe)}),he}return null}changeUsageCount(Xe,ie){const he=this.styleRef;if(he.has(Xe)){const Pe=he.get(Xe);return Pe.usage+=ie,Pe.usage}return he.set(Xe,{usage:ie,elements:[]}),ie}getStyleElement(Xe,ie){const he=this.styleNodesInDOM,Pe=null==he?void 0:he.get(ie);if((null==Pe?void 0:Pe.parentNode)===Xe)return he.delete(ie),Pe.removeAttribute($e),Pe;{const Et=this.doc.createElement("style");return this.nonce&&Et.setAttribute("nonce",this.nonce),Et.textContent=ie,this.platformIsServer&&Et.setAttribute($e,this.appId),Xe.appendChild(Et),Et}}addStyleToHost(Xe,ie){var he;const Pe=this.getStyleElement(Xe,ie),Et=this.styleRef,rt=null===(he=Et.get(ie))||void 0===he?void 0:he.elements;rt?rt.push(Pe):Et.set(ie,{elements:[Pe],usage:1})}resetHostNodes(){const Xe=this.hostNodes;Xe.clear(),Xe.add(this.doc.head)}}return(oe=ze).\u0275fac=function(Xe){return new(Xe||oe)(g.KVO(d.qQ),g.KVO(g.sZ2),g.KVO(g.BIS,8),g.KVO(g.Agw))},oe.\u0275prov=g.jDH({token:oe,factory:oe.\u0275fac}),ze})();const Qe={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},ft=/%COMP%/g,vt=new g.nKC("",{providedIn:"root",factory:()=>!0});function Ke(oe,ze){return ze.map(ct=>ct.replace(ft,oe))}let Ct=(()=>{var oe;class ze{constructor(Xe,ie,he,Pe,Et,rt,dn,Sn=null){this.eventManager=Xe,this.sharedStylesHost=ie,this.appId=he,this.removeStylesOnCompDestroy=Pe,this.doc=Et,this.platformId=rt,this.ngZone=dn,this.nonce=Sn,this.rendererByCompId=new Map,this.platformIsServer=(0,d.Vy)(rt),this.defaultRenderer=new Ot(Xe,Et,dn,this.platformIsServer)}createRenderer(Xe,ie){if(!Xe||!ie)return this.defaultRenderer;this.platformIsServer&&ie.encapsulation===g.gXe.ShadowDom&&(ie={...ie,encapsulation:g.gXe.Emulated});const he=this.getOrCreateRenderer(Xe,ie);return he instanceof Be?he.applyToHost(Xe):he instanceof Dt&&he.applyStyles(),he}getOrCreateRenderer(Xe,ie){const he=this.rendererByCompId;let Pe=he.get(ie.id);if(!Pe){const Et=this.doc,rt=this.ngZone,dn=this.eventManager,Sn=this.sharedStylesHost,Wn=this.removeStylesOnCompDestroy,gr=this.platformIsServer;switch(ie.encapsulation){case g.gXe.Emulated:Pe=new Be(dn,Sn,ie,this.appId,Wn,Et,rt,gr);break;case g.gXe.ShadowDom:return new Zt(dn,Sn,Xe,ie,Et,rt,this.nonce,gr);default:Pe=new Dt(dn,Sn,ie,Wn,Et,rt,gr)}he.set(ie.id,Pe)}return Pe}ngOnDestroy(){this.rendererByCompId.clear()}}return(oe=ze).\u0275fac=function(Xe){return new(Xe||oe)(g.KVO(_e),g.KVO(Le),g.KVO(g.sZ2),g.KVO(vt),g.KVO(d.qQ),g.KVO(g.Agw),g.KVO(g.SKi),g.KVO(g.BIS))},oe.\u0275prov=g.jDH({token:oe,factory:oe.\u0275fac}),ze})();class Ot{constructor(ze,ct,Xe,ie){this.eventManager=ze,this.doc=ct,this.ngZone=Xe,this.platformIsServer=ie,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(ze,ct){return ct?this.doc.createElementNS(Qe[ct]||ct,ze):this.doc.createElement(ze)}createComment(ze){return this.doc.createComment(ze)}createText(ze){return this.doc.createTextNode(ze)}appendChild(ze,ct){(Vt(ze)?ze.content:ze).appendChild(ct)}insertBefore(ze,ct,Xe){ze&&(Vt(ze)?ze.content:ze).insertBefore(ct,Xe)}removeChild(ze,ct){ze&&ze.removeChild(ct)}selectRootElement(ze,ct){let Xe="string"==typeof ze?this.doc.querySelector(ze):ze;if(!Xe)throw new g.wOt(-5104,!1);return ct||(Xe.textContent=""),Xe}parentNode(ze){return ze.parentNode}nextSibling(ze){return ze.nextSibling}setAttribute(ze,ct,Xe,ie){if(ie){ct=ie+":"+ct;const he=Qe[ie];he?ze.setAttributeNS(he,ct,Xe):ze.setAttribute(ct,Xe)}else ze.setAttribute(ct,Xe)}removeAttribute(ze,ct,Xe){if(Xe){const ie=Qe[Xe];ie?ze.removeAttributeNS(ie,ct):ze.removeAttribute(`${Xe}:${ct}`)}else ze.removeAttribute(ct)}addClass(ze,ct){ze.classList.add(ct)}removeClass(ze,ct){ze.classList.remove(ct)}setStyle(ze,ct,Xe,ie){ie&(g.czy.DashCase|g.czy.Important)?ze.style.setProperty(ct,Xe,ie&g.czy.Important?"important":""):ze.style[ct]=Xe}removeStyle(ze,ct,Xe){Xe&g.czy.DashCase?ze.style.removeProperty(ct):ze.style[ct]=""}setProperty(ze,ct,Xe){null!=ze&&(ze[ct]=Xe)}setValue(ze,ct){ze.nodeValue=ct}listen(ze,ct,Xe){if("string"==typeof ze&&!(ze=(0,d.QT)().getGlobalEventTarget(this.doc,ze)))throw new Error(`Unsupported event target ${ze} for event ${ct}`);return this.eventManager.addEventListener(ze,ct,this.decoratePreventDefault(Xe))}decoratePreventDefault(ze){return ct=>{if("__ngUnwrap__"===ct)return ze;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>ze(ct)):ze(ct))&&ct.preventDefault()}}}function Vt(oe){return"TEMPLATE"===oe.tagName&&void 0!==oe.content}class Zt extends Ot{constructor(ze,ct,Xe,ie,he,Pe,Et,rt){super(ze,he,Pe,rt),this.sharedStylesHost=ct,this.hostEl=Xe,this.shadowRoot=Xe.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const dn=Ke(ie.id,ie.styles);for(const Sn of dn){const Wn=document.createElement("style");Et&&Wn.setAttribute("nonce",Et),Wn.textContent=Sn,this.shadowRoot.appendChild(Wn)}}nodeOrShadowRoot(ze){return ze===this.hostEl?this.shadowRoot:ze}appendChild(ze,ct){return super.appendChild(this.nodeOrShadowRoot(ze),ct)}insertBefore(ze,ct,Xe){return super.insertBefore(this.nodeOrShadowRoot(ze),ct,Xe)}removeChild(ze,ct){return super.removeChild(this.nodeOrShadowRoot(ze),ct)}parentNode(ze){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(ze)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class Dt extends Ot{constructor(ze,ct,Xe,ie,he,Pe,Et,rt){super(ze,he,Pe,Et),this.sharedStylesHost=ct,this.removeStylesOnCompDestroy=ie,this.styles=rt?Ke(rt,Xe.styles):Xe.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class Be extends Dt{constructor(ze,ct,Xe,ie,he,Pe,Et,rt){const dn=ie+"-"+Xe.id;super(ze,ct,Xe,he,Pe,Et,rt,dn),this.contentAttr=function Me(oe){return"_ngcontent-%COMP%".replace(ft,oe)}(dn),this.hostAttr=function je(oe){return"_nghost-%COMP%".replace(ft,oe)}(dn)}applyToHost(ze){this.applyStyles(),this.setAttribute(ze,this.hostAttr,"")}createElement(ze,ct){const Xe=super.createElement(ze,ct);return super.setAttribute(Xe,this.contentAttr,""),Xe}}let rn=(()=>{var oe;class ze extends Fe{constructor(Xe){super(Xe)}supports(Xe){return!0}addEventListener(Xe,ie,he){return Xe.addEventListener(ie,he,!1),()=>this.removeEventListener(Xe,ie,he)}removeEventListener(Xe,ie,he){return Xe.removeEventListener(ie,he)}}return(oe=ze).\u0275fac=function(Xe){return new(Xe||oe)(g.KVO(d.qQ))},oe.\u0275prov=g.jDH({token:oe,factory:oe.\u0275fac}),ze})();const pt=["alt","control","meta","shift"],Ee={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},B={alt:oe=>oe.altKey,control:oe=>oe.ctrlKey,meta:oe=>oe.metaKey,shift:oe=>oe.shiftKey};let W=(()=>{var oe;class ze extends Fe{constructor(Xe){super(Xe)}supports(Xe){return null!=ze.parseEventName(Xe)}addEventListener(Xe,ie,he){const Pe=ze.parseEventName(ie),Et=ze.eventCallback(Pe.fullKey,he,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,d.QT)().onAndCancel(Xe,Pe.domEventName,Et))}static parseEventName(Xe){const ie=Xe.toLowerCase().split("."),he=ie.shift();if(0===ie.length||"keydown"!==he&&"keyup"!==he)return null;const Pe=ze._normalizeKey(ie.pop());let Et="",rt=ie.indexOf("code");if(rt>-1&&(ie.splice(rt,1),Et="code."),pt.forEach(Sn=>{const Wn=ie.indexOf(Sn);Wn>-1&&(ie.splice(Wn,1),Et+=Sn+".")}),Et+=Pe,0!=ie.length||0===Pe.length)return null;const dn={};return dn.domEventName=he,dn.fullKey=Et,dn}static matchEventFullKeyCode(Xe,ie){let he=Ee[Xe.key]||Xe.key,Pe="";return ie.indexOf("code.")>-1&&(he=Xe.code,Pe="code."),!(null==he||!he)&&(he=he.toLowerCase()," "===he?he="space":"."===he&&(he="dot"),pt.forEach(Et=>{Et!==he&&(0,B[Et])(Xe)&&(Pe+=Et+".")}),Pe+=he,Pe===ie)}static eventCallback(Xe,ie,he){return Pe=>{ze.matchEventFullKeyCode(Pe,Xe)&&he.runGuarded(()=>ie(Pe))}}static _normalizeKey(Xe){return"esc"===Xe?"escape":Xe}}return(oe=ze).\u0275fac=function(Xe){return new(Xe||oe)(g.KVO(d.qQ))},oe.\u0275prov=g.jDH({token:oe,factory:oe.\u0275fac}),ze})();const vn=(0,g.oH4)(g.fpN,"browser",[{provide:g.Agw,useValue:d.AJ},{provide:g.PLl,useValue:function Ce(){Oe.makeCurrent()},multi:!0},{provide:d.qQ,useFactory:function kt(){return(0,g.TL$)(document),document},deps:[]}]),bn=new g.nKC(""),$n=[{provide:g.e01,useClass:class Ze{addToWindow(ze){g.JZv.getAngularTestability=(Xe,ie=!0)=>{const he=ze.findTestabilityInTree(Xe,ie);if(null==he)throw new g.wOt(5103,!1);return he},g.JZv.getAllAngularTestabilities=()=>ze.getAllTestabilities(),g.JZv.getAllAngularRootElements=()=>ze.getAllRootElements(),g.JZv.frameworkStabilizers||(g.JZv.frameworkStabilizers=[]),g.JZv.frameworkStabilizers.push(Xe=>{const ie=g.JZv.getAllAngularTestabilities();let he=ie.length;const Pe=function(){he--,0==he&&Xe()};ie.forEach(Et=>{Et.whenStable(Pe)})})}findTestabilityInTree(ze,ct,Xe){if(null==ct)return null;const ie=ze.getTestability(ct);return null!=ie?ie:Xe?(0,d.QT)().isShadowRoot(ct)?this.findTestabilityInTree(ze,ct.host,!0):this.findTestabilityInTree(ze,ct.parentElement,!0):null}},deps:[]},{provide:g.WHO,useClass:g.NYb,deps:[g.SKi,g.giA,g.e01]},{provide:g.NYb,useClass:g.NYb,deps:[g.SKi,g.giA,g.e01]}],qn=[{provide:g.H8p,useValue:"root"},{provide:g.zcH,useFactory:function at(){return new g.zcH},deps:[]},{provide:De,useClass:rn,multi:!0,deps:[d.qQ,g.SKi,g.Agw]},{provide:De,useClass:W,multi:!0,deps:[d.qQ]},Ct,Le,_e,{provide:g._9s,useExisting:Ct},{provide:d.N0,useClass:Je,deps:[]},[]];let er=(()=>{var oe;class ze{constructor(Xe){}static withServerTransition(Xe){return{ngModule:ze,providers:[{provide:g.sZ2,useValue:Xe.appId}]}}}return(oe=ze).\u0275fac=function(Xe){return new(Xe||oe)(g.KVO(bn,12))},oe.\u0275mod=g.$C({type:oe}),oe.\u0275inj=g.G2t({providers:[...qn,...$n],imports:[d.MD,g.Hbi]}),ze})(),Yn=(()=>{var oe;class ze{constructor(Xe){this._doc=Xe}getTitle(){return this._doc.title}setTitle(Xe){this._doc.title=Xe||""}}return(oe=ze).\u0275fac=function(Xe){return new(Xe||oe)(g.KVO(d.qQ))},oe.\u0275prov=g.jDH({token:oe,factory:oe.\u0275fac,providedIn:"root"}),ze})()},845:(En,bt,j)=>{"use strict";j.d(bt,{nX:()=>ne,Zp:()=>S,wF:()=>Si,Z:()=>mi,Xk:()=>yn,Kp:()=>Ua,b:()=>Zr,Ix:()=>Fi,Wk:()=>Uo,iI:()=>Mu,Sd:()=>Qr});var g=j(467),d=j(4438),ge=j(1985),Oe=j(8071),Ie=j(8455),re=j(7673),Ze=j(4412),Je=j(4572);const _e=(0,j(1853).L)(I=>function(){I(this),this.name="EmptyError",this.message="no elements in sequence"});var Fe=j(1397),$e=j(3669);function Le(I=1/0){return(0,Fe.Z)($e.D,I)}var ft=j(3794);function ut(...I){return function Qe(){return Le(1)}()((0,Ie.H)(I,(0,ft.lI)(I)))}var st=j(8750);function Mt(I){return new ge.c(T=>{(0,st.Tg)(I()).subscribe(T)})}var mt=j(1203);function vt(I,T){const R=(0,Oe.T)(I)?I:()=>I,C=x=>x.error(R());return new ge.c(T?x=>T.schedule(C,0,x):C)}var Me=j(983),je=j(8359),Ke=j(9974),Ct=j(4360);function Ot(){return(0,Ke.N)((I,T)=>{let R=null;I._refCount++;const C=(0,Ct._)(T,void 0,void 0,void 0,()=>{if(!I||I._refCount<=0||0<--I._refCount)return void(R=null);const x=I._connection,J=R;R=null,x&&(!J||x===J)&&x.unsubscribe(),T.unsubscribe()});I.subscribe(C),C.closed||(R=I.connect())})}class He extends ge.c{constructor(T,R){super(),this.source=T,this.subjectFactory=R,this._subject=null,this._refCount=0,this._connection=null,(0,Ke.S)(T)&&(this.lift=T.lift)}_subscribe(T){return this.getSubject().subscribe(T)}getSubject(){const T=this._subject;return(!T||T.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:T}=this;this._subject=this._connection=null,null==T||T.unsubscribe()}connect(){let T=this._connection;if(!T){T=this._connection=new je.yU;const R=this.getSubject();T.add(this.source.subscribe((0,Ct._)(R,void 0,()=>{this._teardown(),R.complete()},C=>{this._teardown(),R.error(C)},()=>this._teardown()))),T.closed&&(this._connection=null,T=je.yU.EMPTY)}return T}refCount(){return Ot()(this)}}var Tt=j(1413),Vt=j(177),Zt=j(6354),Dt=j(5558),Be=j(6697),pt=j(5964);function Ee(I){return(0,Ke.N)((T,R)=>{let C=!1;T.subscribe((0,Ct._)(R,x=>{C=!0,R.next(x)},()=>{C||R.next(I),R.complete()}))})}function B(I=W){return(0,Ke.N)((T,R)=>{let C=!1;T.subscribe((0,Ct._)(R,x=>{C=!0,R.next(x)},()=>C?R.complete():R.error(I())))})}function W(){return new _e}function te(I,T){const R=arguments.length>=2;return C=>C.pipe(I?(0,pt.p)((x,J)=>I(x,J,C)):$e.D,(0,Be.s)(1),R?Ee(T):B(()=>new _e))}function de(I,T){return(0,Oe.T)(T)?(0,Fe.Z)(I,T,1):(0,Fe.Z)(I,1)}var ae=j(8141);function me(I){return(0,Ke.N)((T,R)=>{let J,C=null,x=!1;C=T.subscribe((0,Ct._)(R,void 0,void 0,ve=>{J=(0,st.Tg)(I(ve,me(I)(T))),C?(C.unsubscribe(),C=null,J.subscribe(R)):x=!0})),x&&(C.unsubscribe(),C=null,J.subscribe(R))})}function kt(I){return I<=0?()=>Me.w:(0,Ke.N)((T,R)=>{let C=[];T.subscribe((0,Ct._)(R,x=>{C.push(x),I{for(const x of C)R.next(x);R.complete()},void 0,()=>{C=null}))})}function bn(I){return(0,Ke.N)((T,R)=>{try{T.subscribe(R)}finally{R.add(I)}})}var $n=j(5343),er=j(345);const yn="primary",ir=Symbol("RouteTitle");class Yn{constructor(T){this.params=T||{}}has(T){return Object.prototype.hasOwnProperty.call(this.params,T)}get(T){if(this.has(T)){const R=this.params[T];return Array.isArray(R)?R[0]:R}return null}getAll(T){if(this.has(T)){const R=this.params[T];return Array.isArray(R)?R:[R]}return[]}get keys(){return Object.keys(this.params)}}function Ve(I){return new Yn(I)}function yt(I,T,R){const C=R.path.split("/");if(C.length>I.length||"full"===R.pathMatch&&(T.hasChildren()||C.lengthC[J]===x)}return I===T}function gn(I){return I.length>0?I[I.length-1]:null}function mn(I){return function X(I){return!!I&&(I instanceof ge.c||(0,Oe.T)(I.lift)&&(0,Oe.T)(I.subscribe))}(I)?I:(0,d.jNT)(I)?(0,Ie.H)(Promise.resolve(I)):(0,re.of)(I)}const Jt={exact:function kr(I,T,R){if(!Ir(I.segments,T.segments)||!ni(I.segments,T.segments,R)||I.numberOfChildren!==T.numberOfChildren)return!1;for(const C in T.children)if(!I.children[C]||!kr(I.children[C],T.children[C],R))return!1;return!0},subset:_r},Gt={exact:function wr(I,T){return Xt(I,T)},subset:function Mr(I,T){return Object.keys(T).length<=Object.keys(I).length&&Object.keys(T).every(R=>Ar(I[R],T[R]))},ignored:()=>!0};function pr(I,T,R){return Jt[R.paths](I.root,T.root,R.matrixParams)&&Gt[R.queryParams](I.queryParams,T.queryParams)&&!("exact"===R.fragment&&I.fragment!==T.fragment)}function _r(I,T,R){return Bn(I,T,T.segments,R)}function Bn(I,T,R,C){if(I.segments.length>R.length){const x=I.segments.slice(0,R.length);return!(!Ir(x,R)||T.hasChildren()||!ni(x,R,C))}if(I.segments.length===R.length){if(!Ir(I.segments,R)||!ni(I.segments,R,C))return!1;for(const x in T.children)if(!I.children[x]||!_r(I.children[x],T.children[x],C))return!1;return!0}{const x=R.slice(0,I.segments.length),J=R.slice(I.segments.length);return!!(Ir(I.segments,x)&&ni(I.segments,x,C)&&I.children[yn])&&Bn(I.children[yn],T,J,C)}}function ni(I,T,R){return T.every((C,x)=>Gt[R](I[x].parameters,C.parameters))}class Zn{constructor(T=new wn([],{}),R={},C=null){this.root=T,this.queryParams=R,this.fragment=C}get queryParamMap(){var T;return null!==(T=this._queryParamMap)&&void 0!==T||(this._queryParamMap=Ve(this.queryParams)),this._queryParamMap}toString(){return oe.serialize(this)}}class wn{constructor(T,R){this.segments=T,this.children=R,this.parent=null,Object.values(R).forEach(C=>C.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return ze(this)}}class Sr{constructor(T,R){this.path=T,this.parameters=R}get parameterMap(){var T;return null!==(T=this._parameterMap)&&void 0!==T||(this._parameterMap=Ve(this.parameters)),this._parameterMap}toString(){return dn(this)}}function Ir(I,T){return I.length===T.length&&I.every((R,C)=>R.path===T[C].path)}let Qr=(()=>{var I;class T{}return(I=T).\u0275fac=function(C){return new(C||I)},I.\u0275prov=d.jDH({token:I,factory:()=>new Yr,providedIn:"root"}),T})();class Yr{parse(T){const R=new pi(T);return new Zn(R.parseRootSegment(),R.parseQueryParams(),R.parseFragment())}serialize(T){const R=`/${ct(T.root,!0)}`,C=function Wn(I){const T=Object.entries(I).map(([R,C])=>Array.isArray(C)?C.map(x=>`${ie(R)}=${ie(x)}`).join("&"):`${ie(R)}=${ie(C)}`).filter(R=>R);return T.length?`?${T.join("&")}`:""}(T.queryParams);return`${R}${C}${"string"==typeof T.fragment?`#${function he(I){return encodeURI(I)}(T.fragment)}`:""}`}}const oe=new Yr;function ze(I){return I.segments.map(T=>dn(T)).join("/")}function ct(I,T){if(!I.hasChildren())return ze(I);if(T){const R=I.children[yn]?ct(I.children[yn],!1):"",C=[];return Object.entries(I.children).forEach(([x,J])=>{x!==yn&&C.push(`${x}:${ct(J,!1)}`)}),C.length>0?`${R}(${C.join("//")})`:R}{const R=function Mi(I,T){let R=[];return Object.entries(I.children).forEach(([C,x])=>{C===yn&&(R=R.concat(T(x,C)))}),Object.entries(I.children).forEach(([C,x])=>{C!==yn&&(R=R.concat(T(x,C)))}),R}(I,(C,x)=>x===yn?[ct(I.children[yn],!1)]:[`${x}:${ct(C,!1)}`]);return 1===Object.keys(I.children).length&&null!=I.children[yn]?`${ze(I)}/${R[0]}`:`${ze(I)}/(${R.join("//")})`}}function Xe(I){return encodeURIComponent(I).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function ie(I){return Xe(I).replace(/%3B/gi,";")}function Pe(I){return Xe(I).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Et(I){return decodeURIComponent(I)}function rt(I){return Et(I.replace(/\+/g,"%20"))}function dn(I){return`${Pe(I.path)}${function Sn(I){return Object.entries(I).map(([T,R])=>`;${Pe(T)}=${Pe(R)}`).join("")}(I.parameters)}`}const gr=/^[^\/()?;#]+/;function ur(I){const T=I.match(gr);return T?T[0]:""}const ri=/^[^\/()?;=#]+/,Rn=/^[^=?&#]+/,Ei=/^[^&#]+/;class pi{constructor(T){this.url=T,this.remaining=T}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new wn([],{}):new wn([],this.parseChildren())}parseQueryParams(){const T={};if(this.consumeOptional("?"))do{this.parseQueryParam(T)}while(this.consumeOptional("&"));return T}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const T=[];for(this.peekStartsWith("(")||T.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),T.push(this.parseSegment());let R={};this.peekStartsWith("/(")&&(this.capture("/"),R=this.parseParens(!0));let C={};return this.peekStartsWith("(")&&(C=this.parseParens(!1)),(T.length>0||Object.keys(R).length>0)&&(C[yn]=new wn(T,R)),C}parseSegment(){const T=ur(this.remaining);if(""===T&&this.peekStartsWith(";"))throw new d.wOt(4009,!1);return this.capture(T),new Sr(Et(T),this.parseMatrixParams())}parseMatrixParams(){const T={};for(;this.consumeOptional(";");)this.parseParam(T);return T}parseParam(T){const R=function xn(I){const T=I.match(ri);return T?T[0]:""}(this.remaining);if(!R)return;this.capture(R);let C="";if(this.consumeOptional("=")){const x=ur(this.remaining);x&&(C=x,this.capture(C))}T[Et(R)]=Et(C)}parseQueryParam(T){const R=function yr(I){const T=I.match(Rn);return T?T[0]:""}(this.remaining);if(!R)return;this.capture(R);let C="";if(this.consumeOptional("=")){const ve=function ii(I){const T=I.match(Ei);return T?T[0]:""}(this.remaining);ve&&(C=ve,this.capture(C))}const x=rt(R),J=rt(C);if(T.hasOwnProperty(x)){let ve=T[x];Array.isArray(ve)||(ve=[ve],T[x]=ve),ve.push(J)}else T[x]=J}parseParens(T){const R={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const C=ur(this.remaining),x=this.remaining[C.length];if("/"!==x&&")"!==x&&";"!==x)throw new d.wOt(4010,!1);let J;C.indexOf(":")>-1?(J=C.slice(0,C.indexOf(":")),this.capture(J),this.capture(":")):T&&(J=yn);const ve=this.parseChildren();R[J]=1===Object.keys(ve).length?ve[yn]:new wn([],ve),this.consumeOptional("//")}return R}peekStartsWith(T){return this.remaining.startsWith(T)}consumeOptional(T){return!!this.peekStartsWith(T)&&(this.remaining=this.remaining.substring(T.length),!0)}capture(T){if(!this.consumeOptional(T))throw new d.wOt(4011,!1)}}function Ui(I){return I.segments.length>0?new wn([],{[yn]:I}):I}function lr(I){const T={};for(const[C,x]of Object.entries(I.children)){const J=lr(x);if(C===yn&&0===J.segments.length&&J.hasChildren())for(const[ve,dt]of Object.entries(J.children))T[ve]=dt;else(J.segments.length>0||J.hasChildren())&&(T[C]=J)}return function Xi(I){if(1===I.numberOfChildren&&I.children[yn]){const T=I.children[yn];return new wn(I.segments.concat(T.segments),T.children)}return I}(new wn(I.segments,T))}function wi(I){return I instanceof Zn}function St(I){var T;let R;const J=Ui(function C(ve){const dt={};for(const At of ve.children){const Tn=C(At);dt[At.outlet]=Tn}const Qt=new wn(ve.url,dt);return ve===I&&(R=Qt),Qt}(I.root));return null!==(T=R)&&void 0!==T?T:J}function lt(I,T,R,C){let x=I;for(;x.parent;)x=x.parent;if(0===T.length)return Kn(x,x,x,R,C);const J=function Ne(I){if("string"==typeof I[0]&&1===I.length&&"/"===I[0])return new Z(!0,0,I);let T=0,R=!1;const C=I.reduce((x,J,ve)=>{if("object"==typeof J&&null!=J){if(J.outlets){const dt={};return Object.entries(J.outlets).forEach(([Qt,At])=>{dt[Qt]="string"==typeof At?At.split("/"):At}),[...x,{outlets:dt}]}if(J.segmentPath)return[...x,J.segmentPath]}return"string"!=typeof J?[...x,J]:0===ve?(J.split("/").forEach((dt,Qt)=>{0==Qt&&"."===dt||(0==Qt&&""===dt?R=!0:".."===dt?T++:""!=dt&&x.push(dt))}),x):[...x,J]},[]);return new Z(R,T,C)}(T);if(J.toRoot())return Kn(x,x,new wn([],{}),R,C);const ve=function Se(I,T,R){if(I.isAbsolute)return new Q(T,!0,0);if(!R)return new Q(T,!1,NaN);if(null===R.parent)return new Q(R,!0,0);const C=Ut(I.commands[0])?0:1;return function it(I,T,R){let C=I,x=T,J=R;for(;J>x;){if(J-=x,C=C.parent,!C)throw new d.wOt(4005,!1);x=C.segments.length}return new Q(C,!1,x-J)}(R,R.segments.length-1+C,I.numberOfDoubleDots)}(J,x,I),dt=ve.processChildren?Pn(ve.segmentGroup,ve.index,J.commands):cn(ve.segmentGroup,ve.index,J.commands);return Kn(x,ve.segmentGroup,dt,R,C)}function Ut(I){return"object"==typeof I&&null!=I&&!I.outlets&&!I.segmentPath}function fn(I){return"object"==typeof I&&null!=I&&I.outlets}function Kn(I,T,R,C,x){let ve,J={};C&&Object.entries(C).forEach(([Qt,At])=>{J[Qt]=Array.isArray(At)?At.map(Tn=>`${Tn}`):`${At}`}),ve=I===T?R:Y(I,T,R);const dt=Ui(lr(ve));return new Zn(dt,J,x)}function Y(I,T,R){const C={};return Object.entries(I.children).forEach(([x,J])=>{C[x]=J===T?R:Y(J,T,R)}),new wn(I.segments,C)}class Z{constructor(T,R,C){if(this.isAbsolute=T,this.numberOfDoubleDots=R,this.commands=C,T&&C.length>0&&Ut(C[0]))throw new d.wOt(4003,!1);const x=C.find(fn);if(x&&x!==gn(C))throw new d.wOt(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Q{constructor(T,R,C){this.segmentGroup=T,this.processChildren=R,this.index=C}}function cn(I,T,R){var C;if(null!==(C=I)&&void 0!==C||(I=new wn([],{})),0===I.segments.length&&I.hasChildren())return Pn(I,T,R);const x=function Cr(I,T,R){let C=0,x=T;const J={match:!1,pathIndex:0,commandIndex:0};for(;x=R.length)return J;const ve=I.segments[x],dt=R[C];if(fn(dt))break;const Qt=`${dt}`,At=C0&&void 0===Qt)break;if(Qt&&At&&"object"==typeof At&&void 0===At.outlets){if(!Pi(Qt,At,ve))return J;C+=2}else{if(!Pi(Qt,{},ve))return J;C++}x++}return{match:!0,pathIndex:x,commandIndex:C}}(I,T,R),J=R.slice(x.commandIndex);if(x.match&&x.pathIndexJ!==yn)&&I.children[yn]&&1===I.numberOfChildren&&0===I.children[yn].segments.length){const J=Pn(I.children[yn],T,R);return new wn(I.segments,J.children)}return Object.entries(C).forEach(([J,ve])=>{"string"==typeof ve&&(ve=[ve]),null!==ve&&(x[J]=cn(I.children[J],T,ve))}),Object.entries(I.children).forEach(([J,ve])=>{void 0===C[J]&&(x[J]=ve)}),new wn(I.segments,x)}}function Hn(I,T,R){const C=I.segments.slice(0,T);let x=0;for(;x{"string"==typeof C&&(C=[C]),null!==C&&(T[R]=Hn(new wn([],{}),0,C))}),T}function Ai(I){const T={};return Object.entries(I).forEach(([R,C])=>T[R]=`${C}`),T}function Pi(I,T,R){return I==R.path&&Xt(T,R.parameters)}const xr="imperative";var An=function(I){return I[I.NavigationStart=0]="NavigationStart",I[I.NavigationEnd=1]="NavigationEnd",I[I.NavigationCancel=2]="NavigationCancel",I[I.NavigationError=3]="NavigationError",I[I.RoutesRecognized=4]="RoutesRecognized",I[I.ResolveStart=5]="ResolveStart",I[I.ResolveEnd=6]="ResolveEnd",I[I.GuardsCheckStart=7]="GuardsCheckStart",I[I.GuardsCheckEnd=8]="GuardsCheckEnd",I[I.RouteConfigLoadStart=9]="RouteConfigLoadStart",I[I.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",I[I.ChildActivationStart=11]="ChildActivationStart",I[I.ChildActivationEnd=12]="ChildActivationEnd",I[I.ActivationStart=13]="ActivationStart",I[I.ActivationEnd=14]="ActivationEnd",I[I.Scroll=15]="Scroll",I[I.NavigationSkipped=16]="NavigationSkipped",I}(An||{});class xi{constructor(T,R){this.id=T,this.url=R}}class mi extends xi{constructor(T,R,C="imperative",x=null){super(T,R),this.type=An.NavigationStart,this.navigationTrigger=C,this.restoredState=x}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Si extends xi{constructor(T,R,C){super(T,R),this.urlAfterRedirects=C,this.type=An.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}var ti=function(I){return I[I.Redirect=0]="Redirect",I[I.SupersededByNewNavigation=1]="SupersededByNewNavigation",I[I.NoDataFromResolver=2]="NoDataFromResolver",I[I.GuardRejected=3]="GuardRejected",I}(ti||{}),mr=function(I){return I[I.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",I[I.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",I}(mr||{});class oi extends xi{constructor(T,R,C,x){super(T,R),this.reason=C,this.code=x,this.type=An.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Nn extends xi{constructor(T,R,C,x){super(T,R),this.reason=C,this.code=x,this.type=An.NavigationSkipped}}class kn extends xi{constructor(T,R,C,x){super(T,R),this.error=C,this.target=x,this.type=An.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class ko extends xi{constructor(T,R,C,x){super(T,R),this.urlAfterRedirects=C,this.state=x,this.type=An.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ei extends xi{constructor(T,R,C,x){super(T,R),this.urlAfterRedirects=C,this.state=x,this.type=An.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Bi extends xi{constructor(T,R,C,x,J){super(T,R),this.urlAfterRedirects=C,this.state=x,this.shouldActivate=J,this.type=An.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class is extends xi{constructor(T,R,C,x){super(T,R),this.urlAfterRedirects=C,this.state=x,this.type=An.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ps extends xi{constructor(T,R,C,x){super(T,R),this.urlAfterRedirects=C,this.state=x,this.type=An.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class si{constructor(T){this.route=T,this.type=An.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class or{constructor(T){this.route=T,this.type=An.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Or{constructor(T){this.snapshot=T,this.type=An.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ai{constructor(T){this.snapshot=T,this.type=An.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class jn{constructor(T){this.snapshot=T,this.type=An.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Fo{constructor(T){this.snapshot=T,this.type=An.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Ao{constructor(T,R,C){this.routerEvent=T,this.position=R,this.anchor=C,this.type=An.Scroll}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class Co{}class co{constructor(T){this.url=T}}class Ni{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new S,this.attachRef=null}}let S=(()=>{var I;class T{constructor(){this.contexts=new Map}onChildOutletCreated(C,x){const J=this.getOrCreateContext(C);J.outlet=x,this.contexts.set(C,J)}onChildOutletDestroyed(C){const x=this.getContext(C);x&&(x.outlet=null,x.attachRef=null)}onOutletDeactivated(){const C=this.contexts;return this.contexts=new Map,C}onOutletReAttached(C){this.contexts=C}getOrCreateContext(C){let x=this.getContext(C);return x||(x=new Ni,this.contexts.set(C,x)),x}getContext(C){return this.contexts.get(C)||null}}return(I=T).\u0275fac=function(C){return new(C||I)},I.\u0275prov=d.jDH({token:I,factory:I.\u0275fac,providedIn:"root"}),T})();class H{constructor(T){this._root=T}get root(){return this._root.value}parent(T){const R=this.pathFromRoot(T);return R.length>1?R[R.length-2]:null}children(T){const R=ue(T,this._root);return R?R.children.map(C=>C.value):[]}firstChild(T){const R=ue(T,this._root);return R&&R.children.length>0?R.children[0].value:null}siblings(T){const R=M(T,this._root);return R.length<2?[]:R[R.length-2].children.map(x=>x.value).filter(x=>x!==T)}pathFromRoot(T){return M(T,this._root).map(R=>R.value)}}function ue(I,T){if(I===T.value)return T;for(const R of T.children){const C=ue(I,R);if(C)return C}return null}function M(I,T){if(I===T.value)return[T];for(const R of T.children){const C=M(I,R);if(C.length)return C.unshift(T),C}return[]}class fe{constructor(T,R){this.value=T,this.children=R}toString(){return`TreeNode(${this.value})`}}function qe(I){const T={};return I&&I.children.forEach(R=>T[R.value.outlet]=R),T}class sr extends H{constructor(T,R){super(T),this.snapshot=R,et(this,T)}toString(){return this.snapshot.toString()}}function ui(I){const T=function U(I){const J=new ke([],{},{},"",{},yn,I,null,{});return new ot("",new fe(J,[]))}(I),R=new Ze.t([new Sr("",{})]),C=new Ze.t({}),x=new Ze.t({}),J=new Ze.t({}),ve=new Ze.t(""),dt=new ne(R,C,J,ve,x,yn,I,T.root);return dt.snapshot=T.root,new sr(new fe(dt,[]),T)}class ne{constructor(T,R,C,x,J,ve,dt,Qt){var At,Tn;this.urlSubject=T,this.paramsSubject=R,this.queryParamsSubject=C,this.fragmentSubject=x,this.dataSubject=J,this.outlet=ve,this.component=dt,this._futureSnapshot=Qt,this.title=null!==(At=null===(Tn=this.dataSubject)||void 0===Tn?void 0:Tn.pipe((0,Zt.T)(hr=>hr[ir])))&&void 0!==At?At:(0,re.of)(void 0),this.url=T,this.params=R,this.queryParams=C,this.fragment=x,this.data=J}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){var T;return null!==(T=this._paramMap)&&void 0!==T||(this._paramMap=this.params.pipe((0,Zt.T)(R=>Ve(R)))),this._paramMap}get queryParamMap(){var T;return null!==(T=this._queryParamMap)&&void 0!==T||(this._queryParamMap=this.queryParams.pipe((0,Zt.T)(R=>Ve(R)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Ae(I,T,R="emptyOnly"){var C;let x;const{routeConfig:J}=I;var ve;return x=null===T||"always"!==R&&""!==(null==J?void 0:J.path)&&(T.component||null!==(C=T.routeConfig)&&void 0!==C&&C.loadComponent)?{params:{...I.params},data:{...I.data},resolve:{...I.data,...null!==(ve=I._resolvedData)&&void 0!==ve?ve:{}}}:{params:{...T.params,...I.params},data:{...T.data,...I.data},resolve:{...I.data,...T.data,...null==J?void 0:J.data,...I._resolvedData}},J&&Yt(J)&&(x.resolve[ir]=J.title),x}class ke{get title(){var T;return null===(T=this.data)||void 0===T?void 0:T[ir]}constructor(T,R,C,x,J,ve,dt,Qt,At){this.url=T,this.params=R,this.queryParams=C,this.fragment=x,this.data=J,this.outlet=ve,this.component=dt,this.routeConfig=Qt,this._resolve=At}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){var T;return null!==(T=this._paramMap)&&void 0!==T||(this._paramMap=Ve(this.params)),this._paramMap}get queryParamMap(){var T;return null!==(T=this._queryParamMap)&&void 0!==T||(this._queryParamMap=Ve(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(C=>C.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class ot extends H{constructor(T,R){super(R),this.url=T,et(this,R)}toString(){return Lt(this._root)}}function et(I,T){T.value._routerState=I,T.children.forEach(R=>et(I,R))}function Lt(I){const T=I.children.length>0?` { ${I.children.map(Lt).join(", ")} } `:"";return`${I.value}${T}`}function zt(I){if(I.snapshot){const T=I.snapshot,R=I._futureSnapshot;I.snapshot=R,Xt(T.queryParams,R.queryParams)||I.queryParamsSubject.next(R.queryParams),T.fragment!==R.fragment&&I.fragmentSubject.next(R.fragment),Xt(T.params,R.params)||I.paramsSubject.next(R.params),function Nt(I,T){if(I.length!==T.length)return!1;for(let R=0;RXt(R.parameters,T[C].parameters))}(I.url,T.url);return R&&!(!I.parent!=!T.parent)&&(!I.parent||Kt(I.parent,T.parent))}function Yt(I){return"string"==typeof I.title||null===I.title}let _n=(()=>{var I;class T{constructor(){this.activated=null,this._activatedRoute=null,this.name=yn,this.activateEvents=new d.bkB,this.deactivateEvents=new d.bkB,this.attachEvents=new d.bkB,this.detachEvents=new d.bkB,this.parentContexts=(0,d.WQX)(S),this.location=(0,d.WQX)(d.c1b),this.changeDetector=(0,d.WQX)(d.gRc),this.environmentInjector=(0,d.WQX)(d.uvJ),this.inputBinder=(0,d.WQX)(Ln,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(C){if(C.name){const{firstChange:x,previousValue:J}=C.name;if(x)return;this.isTrackedInParentContexts(J)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(J)),this.initializeOutletWithName()}}ngOnDestroy(){var C;this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),null===(C=this.inputBinder)||void 0===C||C.unsubscribeFromRouteData(this)}isTrackedInParentContexts(C){var x;return(null===(x=this.parentContexts.getContext(C))||void 0===x?void 0:x.outlet)===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const C=this.parentContexts.getContext(this.name);null!=C&&C.route&&(C.attachRef?this.attach(C.attachRef,C.route):this.activateWith(C.route,C.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new d.wOt(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new d.wOt(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new d.wOt(4012,!1);this.location.detach();const C=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(C.instance),C}attach(C,x){var J;this.activated=C,this._activatedRoute=x,this.location.insert(C.hostView),null===(J=this.inputBinder)||void 0===J||J.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(C.instance)}deactivate(){if(this.activated){const C=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(C)}}activateWith(C,x){var J;if(this.isActivated)throw new d.wOt(4013,!1);this._activatedRoute=C;const ve=this.location,Qt=C.snapshot.component,At=this.parentContexts.getOrCreateContext(this.name).children,Tn=new Cn(C,At,ve.injector);this.activated=ve.createComponent(Qt,{index:ve.length,injector:Tn,environmentInjector:null!=x?x:this.environmentInjector}),this.changeDetector.markForCheck(),null===(J=this.inputBinder)||void 0===J||J.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}}return(I=T).\u0275fac=function(C){return new(C||I)},I.\u0275dir=d.FsC({type:I,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[d.OA$]}),T})();class Cn{__ngOutletInjector(T){return new Cn(this.route,this.childContexts,T)}constructor(T,R,C){this.route=T,this.childContexts=R,this.parent=C}get(T,R){return T===ne?this.route:T===S?this.childContexts:this.parent.get(T,R)}}const Ln=new d.nKC("");let In=(()=>{var I;class T{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(C){this.unsubscribeFromRouteData(C),this.subscribeToRouteData(C)}unsubscribeFromRouteData(C){var x;null===(x=this.outletDataSubscriptions.get(C))||void 0===x||x.unsubscribe(),this.outletDataSubscriptions.delete(C)}subscribeToRouteData(C){const{activatedRoute:x}=C,J=(0,Je.z)([x.queryParams,x.params,x.data]).pipe((0,Dt.n)(([ve,dt,Qt],At)=>(Qt={...ve,...dt,...Qt},0===At?(0,re.of)(Qt):Promise.resolve(Qt)))).subscribe(ve=>{if(!C.isActivated||!C.activatedComponentRef||C.activatedRoute!==x||null===x.component)return void this.unsubscribeFromRouteData(C);const dt=(0,d.HJs)(x.component);if(dt)for(const{templateName:Qt}of dt.inputs)C.activatedComponentRef.setInput(Qt,ve[Qt]);else this.unsubscribeFromRouteData(C)});this.outletDataSubscriptions.set(C,J)}}return(I=T).\u0275fac=function(C){return new(C||I)},I.\u0275prov=d.jDH({token:I,factory:I.\u0275fac}),T})();function cr(I,T,R){if(R&&I.shouldReuseRoute(T.value,R.value.snapshot)){const C=R.value;C._futureSnapshot=T.value;const x=function nr(I,T,R){return T.children.map(C=>{for(const x of R.children)if(I.shouldReuseRoute(C.value,x.value.snapshot))return cr(I,C,x);return cr(I,C)})}(I,T,R);return new fe(C,x)}{if(I.shouldAttach(T.value)){const J=I.retrieve(T.value);if(null!==J){const ve=J.route;return ve.value._futureSnapshot=T.value,ve.children=T.children.map(dt=>cr(I,dt)),ve}}const C=function li(I){return new ne(new Ze.t(I.url),new Ze.t(I.params),new Ze.t(I.queryParams),new Ze.t(I.fragment),new Ze.t(I.data),I.outlet,I.component,I)}(T.value),x=T.children.map(J=>cr(I,J));return new fe(C,x)}}const vi="ngNavigationCancelingError";function ci(I,T){const{redirectTo:R,navigationBehaviorOptions:C}=wi(T)?{redirectTo:T,navigationBehaviorOptions:void 0}:T,x=no(!1,ti.Redirect);return x.url=R,x.navigationBehaviorOptions=C,x}function no(I,T){const R=new Error(`NavigationCancelingError: ${I||""}`);return R[vi]=!0,R.cancellationCode=T,R}function dr(I){return!!I&&I[vi]}let Wr=(()=>{var I;class T{}return(I=T).\u0275fac=function(C){return new(C||I)},I.\u0275cmp=d.VBU({type:I,selectors:[["ng-component"]],standalone:!0,features:[d.aNF],decls:1,vars:0,template:function(C,x){1&C&&d.nrm(0,"router-outlet")},dependencies:[_n],encapsulation:2}),T})();function Us(I){const T=I.children&&I.children.map(Us),R=T?{...I,children:T}:{...I};return!R.component&&!R.loadComponent&&(T||R.loadChildren)&&R.outlet&&R.outlet!==yn&&(R.component=Wr),R}function so(I){return I.outlet||yn}function gs(I){var T;if(!I)return null;if(null!==(T=I.routeConfig)&&void 0!==T&&T._injector)return I.routeConfig._injector;for(let R=I.parent;R;R=R.parent){const C=R.routeConfig;if(null!=C&&C._loadedInjector)return C._loadedInjector;if(null!=C&&C._injector)return C._injector}return null}class $s{constructor(T,R,C,x,J){this.routeReuseStrategy=T,this.futureState=R,this.currState=C,this.forwardEvent=x,this.inputBindingEnabled=J}activate(T){const R=this.futureState._root,C=this.currState?this.currState._root:null;this.deactivateChildRoutes(R,C,T),zt(this.futureState.root),this.activateChildRoutes(R,C,T)}deactivateChildRoutes(T,R,C){const x=qe(R);T.children.forEach(J=>{const ve=J.value.outlet;this.deactivateRoutes(J,x[ve],C),delete x[ve]}),Object.values(x).forEach(J=>{this.deactivateRouteAndItsChildren(J,C)})}deactivateRoutes(T,R,C){const x=T.value,J=R?R.value:null;if(x===J)if(x.component){const ve=C.getContext(x.outlet);ve&&this.deactivateChildRoutes(T,R,ve.children)}else this.deactivateChildRoutes(T,R,C);else J&&this.deactivateRouteAndItsChildren(R,C)}deactivateRouteAndItsChildren(T,R){T.value.component&&this.routeReuseStrategy.shouldDetach(T.value.snapshot)?this.detachAndStoreRouteSubtree(T,R):this.deactivateRouteAndOutlet(T,R)}detachAndStoreRouteSubtree(T,R){const C=R.getContext(T.value.outlet),x=C&&T.value.component?C.children:R,J=qe(T);for(const ve of Object.values(J))this.deactivateRouteAndItsChildren(ve,x);if(C&&C.outlet){const ve=C.outlet.detach(),dt=C.children.onOutletDeactivated();this.routeReuseStrategy.store(T.value.snapshot,{componentRef:ve,route:T,contexts:dt})}}deactivateRouteAndOutlet(T,R){const C=R.getContext(T.value.outlet),x=C&&T.value.component?C.children:R,J=qe(T);for(const ve of Object.values(J))this.deactivateRouteAndItsChildren(ve,x);C&&(C.outlet&&(C.outlet.deactivate(),C.children.onOutletDeactivated()),C.attachRef=null,C.route=null)}activateChildRoutes(T,R,C){const x=qe(R);T.children.forEach(J=>{this.activateRoutes(J,x[J.value.outlet],C),this.forwardEvent(new Fo(J.value.snapshot))}),T.children.length&&this.forwardEvent(new ai(T.value.snapshot))}activateRoutes(T,R,C){const x=T.value,J=R?R.value:null;if(zt(x),x===J)if(x.component){const ve=C.getOrCreateContext(x.outlet);this.activateChildRoutes(T,R,ve.children)}else this.activateChildRoutes(T,R,C);else if(x.component){const ve=C.getOrCreateContext(x.outlet);if(this.routeReuseStrategy.shouldAttach(x.snapshot)){const dt=this.routeReuseStrategy.retrieve(x.snapshot);this.routeReuseStrategy.store(x.snapshot,null),ve.children.onOutletReAttached(dt.contexts),ve.attachRef=dt.componentRef,ve.route=dt.route.value,ve.outlet&&ve.outlet.attach(dt.componentRef,dt.route.value),zt(dt.route.value),this.activateChildRoutes(T,null,ve.children)}else{const dt=gs(x.snapshot);ve.attachRef=null,ve.route=x,ve.injector=dt,ve.outlet&&ve.outlet.activateWith(x,ve.injector),this.activateChildRoutes(T,null,ve.children)}}else this.activateChildRoutes(T,null,C)}}class ca{constructor(T){this.path=T,this.route=this.path[this.path.length-1]}}class qo{constructor(T,R){this.component=T,this.route=R}}function bs(I,T,R){const C=I._root;return ji(C,T?T._root:null,R,[C.value])}function bo(I,T){const R=Symbol(),C=T.get(I,R);return C===R?"function"!=typeof I||(0,d.LfX)(I)?T.get(I):I:C}function ji(I,T,R,C,x={canDeactivateChecks:[],canActivateChecks:[]}){const J=qe(T);return I.children.forEach(ve=>{(function da(I,T,R,C,x={canDeactivateChecks:[],canActivateChecks:[]}){const J=I.value,ve=T?T.value:null,dt=R?R.getContext(I.value.outlet):null;if(ve&&J.routeConfig===ve.routeConfig){const Qt=function ol(I,T,R){if("function"==typeof R)return R(I,T);switch(R){case"pathParamsChange":return!Ir(I.url,T.url);case"pathParamsOrQueryParamsChange":return!Ir(I.url,T.url)||!Xt(I.queryParams,T.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Kt(I,T)||!Xt(I.queryParams,T.queryParams);default:return!Kt(I,T)}}(ve,J,J.routeConfig.runGuardsAndResolvers);Qt?x.canActivateChecks.push(new ca(C)):(J.data=ve.data,J._resolvedData=ve._resolvedData),ji(I,T,J.component?dt?dt.children:null:R,C,x),Qt&&dt&&dt.outlet&&dt.outlet.isActivated&&x.canDeactivateChecks.push(new qo(dt.outlet.component,ve))}else ve&&L(T,dt,x),x.canActivateChecks.push(new ca(C)),ji(I,null,J.component?dt?dt.children:null:R,C,x)})(ve,J[ve.value.outlet],R,C.concat([ve.value]),x),delete J[ve.value.outlet]}),Object.entries(J).forEach(([ve,dt])=>L(dt,R.getContext(ve),x)),x}function L(I,T,R){const C=qe(I),x=I.value;Object.entries(C).forEach(([J,ve])=>{L(ve,x.component?T?T.children.getContext(J):null:T,R)}),R.canDeactivateChecks.push(new qo(x.component&&T&&T.outlet&&T.outlet.isActivated?T.outlet.component:null,x))}function P(I){return"function"==typeof I}function Ji(I){return I instanceof _e||"EmptyError"===(null==I?void 0:I.name)}const ao=Symbol("INITIAL_VALUE");function eo(){return(0,Dt.n)(I=>(0,Je.z)(I.map(T=>T.pipe((0,Be.s)(1),function rn(...I){const T=(0,ft.lI)(I);return(0,Ke.N)((R,C)=>{(T?ut(I,R,T):ut(I,R)).subscribe(C)})}(ao)))).pipe((0,Zt.T)(T=>{for(const R of T)if(!0!==R){if(R===ao)return ao;if(!1===R||R instanceof Zn)return R}return!0}),(0,pt.p)(T=>T!==ao),(0,Be.s)(1)))}function Jn(I){return(0,mt.F)((0,ae.M)(T=>{if(wi(T))throw ci(0,T)}),(0,Zt.T)(T=>!0===T))}class Ti{constructor(T){this.segmentGroup=T||null}}class ro extends Error{constructor(T){super(),this.urlTree=T}}function Hr(I){return vt(new Ti(I))}class Vl{constructor(T,R){this.urlSerializer=T,this.urlTree=R}lineralizeSegments(T,R){let C=[],x=R.root;for(;;){if(C=C.concat(x.segments),0===x.numberOfChildren)return(0,re.of)(C);if(x.numberOfChildren>1||!x.children[yn])return vt(new d.wOt(4e3,!1));x=x.children[yn]}}applyRedirectCommands(T,R,C){const x=this.applyRedirectCreateUrlTree(R,this.urlSerializer.parse(R),T,C);if(R.startsWith("/"))throw new ro(x);return x}applyRedirectCreateUrlTree(T,R,C,x){const J=this.createSegmentGroup(T,R.root,C,x);return new Zn(J,this.createQueryParams(R.queryParams,this.urlTree.queryParams),R.fragment)}createQueryParams(T,R){const C={};return Object.entries(T).forEach(([x,J])=>{if("string"==typeof J&&J.startsWith(":")){const dt=J.substring(1);C[x]=R[dt]}else C[x]=J}),C}createSegmentGroup(T,R,C,x){const J=this.createSegments(T,R.segments,C,x);let ve={};return Object.entries(R.children).forEach(([dt,Qt])=>{ve[dt]=this.createSegmentGroup(T,Qt,C,x)}),new wn(J,ve)}createSegments(T,R,C,x){return R.map(J=>J.path.startsWith(":")?this.findPosParam(T,J,x):this.findOrReturn(J,C))}findPosParam(T,R,C){const x=C[R.path.substring(1)];if(!x)throw new d.wOt(4001,!1);return x}findOrReturn(T,R){let C=0;for(const x of R){if(x.path===T.path)return R.splice(C),x;C++}return T}}const vr={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function ul(I,T,R,C,x){const J=ys(I,T,R);return J.matched?(C=function Wo(I,T){var R;return I.providers&&!I._injector&&(I._injector=(0,d.Ol2)(I.providers,T,`Route: ${I.path}`)),null!==(R=I._injector)&&void 0!==R?R:T}(T,C),function Oi(I,T,R,C){const x=T.canMatch;if(!x||0===x.length)return(0,re.of)(!0);const J=x.map(ve=>{const dt=bo(ve,I);return mn(function rr(I){return I&&P(I.canMatch)}(dt)?dt.canMatch(T,R):(0,d.N4e)(I,()=>dt(T,R)))});return(0,re.of)(J).pipe(eo(),Jn())}(C,T,R).pipe((0,Zt.T)(ve=>!0===ve?J:{...vr}))):(0,re.of)(J)}function ys(I,T,R){var C,x;if("**"===T.path)return function ka(I){return{matched:!0,parameters:I.length>0?gn(I).parameters:{},consumedSegments:I,remainingSegments:[],positionalParamSegments:{}}}(R);if(""===T.path)return"full"===T.pathMatch&&(I.hasChildren()||R.length>0)?{...vr}:{matched:!0,consumedSegments:[],remainingSegments:R,parameters:{},positionalParamSegments:{}};const ve=(T.matcher||yt)(R,I,T);if(!ve)return{...vr};const dt={};Object.entries(null!==(C=ve.posParams)&&void 0!==C?C:{}).forEach(([At,Tn])=>{dt[At]=Tn.path});const Qt=ve.consumed.length>0?{...dt,...ve.consumed[ve.consumed.length-1].parameters}:dt;return{matched:!0,consumedSegments:ve.consumed,remainingSegments:R.slice(ve.consumed.length),parameters:Qt,positionalParamSegments:null!==(x=ve.posParams)&&void 0!==x?x:{}}}function js(I,T,R,C){return R.length>0&&function Ll(I,T,R){return R.some(C=>fa(I,T,C)&&so(C)!==yn)}(I,R,C)?{segmentGroup:new wn(T,Fa(C,new wn(R,I.children))),slicedSegments:[]}:0===R.length&&function Ul(I,T,R){return R.some(C=>fa(I,T,C))}(I,R,C)?{segmentGroup:new wn(I.segments,cl(I,R,C,I.children)),slicedSegments:R}:{segmentGroup:new wn(I.segments,I.children),slicedSegments:R}}function cl(I,T,R,C){const x={};for(const J of R)if(fa(I,T,J)&&!C[so(J)]){const ve=new wn([],{});x[so(J)]=ve}return{...C,...x}}function Fa(I,T){const R={};R[yn]=T;for(const C of I)if(""===C.path&&so(C)!==yn){const x=new wn([],{});R[so(C)]=x}return R}function fa(I,T,R){return(!(I.hasChildren()||T.length>0)||"full"!==R.pathMatch)&&""===R.path}class Yo{}class Zo{constructor(T,R,C,x,J,ve,dt){this.injector=T,this.configLoader=R,this.rootComponentType=C,this.config=x,this.urlTree=J,this.paramsInheritanceStrategy=ve,this.urlSerializer=dt,this.applyRedirects=new Vl(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(T){return new d.wOt(4002,`'${T.segmentGroup}'`)}recognize(){const T=js(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(T).pipe((0,Zt.T)(R=>{const C=new ke([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},yn,this.rootComponentType,null,{}),x=new fe(C,R),J=new ot("",x),ve=function gi(I,T,R=null,C=null){return lt(St(I),T,R,C)}(C,[],this.urlTree.queryParams,this.urlTree.fragment);return ve.queryParams=this.urlTree.queryParams,J.url=this.urlSerializer.serialize(ve),this.inheritParamsAndData(J._root,null),{state:J,tree:ve}}))}match(T){return this.processSegmentGroup(this.injector,this.config,T,yn).pipe(me(C=>{if(C instanceof ro)return this.urlTree=C.urlTree,this.match(C.urlTree.root);throw C instanceof Ti?this.noMatchError(C):C}))}inheritParamsAndData(T,R){const C=T.value,x=Ae(C,R,this.paramsInheritanceStrategy);C.params=Object.freeze(x.params),C.data=Object.freeze(x.data),T.children.forEach(J=>this.inheritParamsAndData(J,C))}processSegmentGroup(T,R,C,x){return 0===C.segments.length&&C.hasChildren()?this.processChildren(T,R,C):this.processSegment(T,R,C,C.segments,x,!0).pipe((0,Zt.T)(J=>J instanceof fe?[J]:[]))}processChildren(T,R,C){const x=[];for(const J of Object.keys(C.children))"primary"===J?x.unshift(J):x.push(J);return(0,Ie.H)(x).pipe(de(J=>{const ve=C.children[J],dt=function ua(I,T){const R=I.filter(C=>so(C)===T);return R.push(...I.filter(C=>so(C)!==T)),R}(R,J);return this.processSegmentGroup(T,dt,ve,J)}),function at(I,T){return(0,Ke.N)(function Ce(I,T,R,C,x){return(J,ve)=>{let dt=R,Qt=T,At=0;J.subscribe((0,Ct._)(ve,Tn=>{const hr=At++;Qt=dt?I(Qt,Tn,hr):(dt=!0,Tn),C&&ve.next(Qt)},x&&(()=>{dt&&ve.next(Qt),ve.complete()})))}}(I,T,arguments.length>=2,!0))}((J,ve)=>(J.push(...ve),J)),Ee(null),function Bt(I,T){const R=arguments.length>=2;return C=>C.pipe(I?(0,pt.p)((x,J)=>I(x,J,C)):$e.D,kt(1),R?Ee(T):B(()=>new _e))}(),(0,Fe.Z)(J=>{if(null===J)return Hr(C);const ve=Lo(J);return function wu(I){I.sort((T,R)=>T.value.outlet===yn?-1:R.value.outlet===yn?1:T.value.outlet.localeCompare(R.value.outlet))}(ve),(0,re.of)(ve)}))}processSegment(T,R,C,x,J,ve){return(0,Ie.H)(R).pipe(de(dt=>{var Qt;return this.processSegmentAgainstRoute(null!==(Qt=dt._injector)&&void 0!==Qt?Qt:T,R,dt,C,x,J,ve).pipe(me(At=>{if(At instanceof Ti)return(0,re.of)(null);throw At}))}),te(dt=>!!dt),me(dt=>{if(Ji(dt))return function ws(I,T,R){return 0===T.length&&!I.children[R]}(C,x,J)?(0,re.of)(new Yo):Hr(C);throw dt}))}processSegmentAgainstRoute(T,R,C,x,J,ve,dt){return function Is(I,T,R,C){return!!(so(I)===C||C!==yn&&fa(T,R,I))&&ys(T,I,R).matched}(C,x,J,ve)?void 0===C.redirectTo?this.matchSegmentAgainstRoute(T,x,C,J,ve):this.allowRedirects&&dt?this.expandSegmentAgainstRouteUsingRedirect(T,x,R,C,J,ve):Hr(x):Hr(x)}expandSegmentAgainstRouteUsingRedirect(T,R,C,x,J,ve){const{matched:dt,consumedSegments:Qt,positionalParamSegments:At,remainingSegments:Tn}=ys(R,x,J);if(!dt)return Hr(R);x.redirectTo.startsWith("/")&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>31&&(this.allowRedirects=!1));const hr=this.applyRedirects.applyRedirectCommands(Qt,x.redirectTo,At);return this.applyRedirects.lineralizeSegments(x,hr).pipe((0,Fe.Z)(Ri=>this.processSegment(T,C,R,Ri.concat(Tn),ve,!1)))}matchSegmentAgainstRoute(T,R,C,x,J){const ve=ul(R,C,x,T);return"**"===C.path&&(R.children={}),ve.pipe((0,Dt.n)(dt=>{var Qt;return dt.matched?(T=null!==(Qt=C._injector)&&void 0!==Qt?Qt:T,this.getChildConfig(T,C,x).pipe((0,Dt.n)(({routes:At})=>{var Tn,hr,Ri;const Br=null!==(Tn=C._loadedInjector)&&void 0!==Tn?Tn:T,{consumedSegments:Ki,remainingSegments:Bo,parameters:za}=dt,Ha=new ke(Ki,za,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,function Rs(I){return I.data||{}}(C),so(C),null!==(hr=null!==(Ri=C.component)&&void 0!==Ri?Ri:C._loadedComponent)&&void 0!==hr?hr:null,C,function Di(I){return I.resolve||{}}(C)),{segmentGroup:yo,slicedSegments:hl}=js(R,Ki,Bo,At);if(0===hl.length&&yo.hasChildren())return this.processChildren(Br,At,yo).pipe((0,Zt.T)(Ps=>null===Ps?null:new fe(Ha,Ps)));if(0===At.length&&0===hl.length)return(0,re.of)(new fe(Ha,[]));const Wl=so(C)===J;return this.processSegment(Br,At,yo,hl,Wl?yn:J,!0).pipe((0,Zt.T)(Ps=>new fe(Ha,Ps instanceof fe?[Ps]:[])))}))):Hr(R)}))}getChildConfig(T,R,C){return R.children?(0,re.of)({routes:R.children,injector:T}):R.loadChildren?void 0!==R._loadedRoutes?(0,re.of)({routes:R._loadedRoutes,injector:R._loadedInjector}):function ha(I,T,R,C){const x=T.canLoad;if(void 0===x||0===x.length)return(0,re.of)(!0);const J=x.map(ve=>{const dt=bo(ve,I);return mn(function $(I){return I&&P(I.canLoad)}(dt)?dt.canLoad(T,R):(0,d.N4e)(I,()=>dt(T,R)))});return(0,re.of)(J).pipe(eo(),Jn())}(T,R,C).pipe((0,Fe.Z)(x=>x?this.configLoader.loadChildren(T,R).pipe((0,ae.M)(J=>{R._loadedRoutes=J.routes,R._loadedInjector=J.injector})):function _s(I){return vt(no(!1,ti.GuardRejected))}())):(0,re.of)({routes:[],injector:T})}}function $l(I){const T=I.value.routeConfig;return T&&""===T.path}function Lo(I){const T=[],R=new Set;for(const C of I){if(!$l(C)){T.push(C);continue}const x=T.find(J=>C.value.routeConfig===J.value.routeConfig);void 0!==x?(x.children.push(...C.children),R.add(x)):T.push(C)}for(const C of R){const x=Lo(C.children);T.push(new fe(C.value,x))}return T.filter(C=>!R.has(C))}function ga(I){const T=I.children.map(R=>ga(R)).flat();return[I,...T]}function ma(I){return(0,Dt.n)(T=>{const R=I(T);return R?(0,Ie.H)(R).pipe((0,Zt.T)(()=>T)):(0,re.of)(T)})}let Ms=(()=>{var I;class T{buildTitle(C){let x,J=C.root;for(;void 0!==J;){var ve;x=null!==(ve=this.getResolvedTitleForRoute(J))&&void 0!==ve?ve:x,J=J.children.find(dt=>dt.outlet===yn)}return x}getResolvedTitleForRoute(C){return C.data[ir]}}return(I=T).\u0275fac=function(C){return new(C||I)},I.\u0275prov=d.jDH({token:I,factory:()=>(0,d.WQX)(lo),providedIn:"root"}),T})(),lo=(()=>{var I;class T extends Ms{constructor(C){super(),this.title=C}updateTitle(C){const x=this.buildTitle(C);void 0!==x&&this.title.setTitle(x)}}return(I=T).\u0275fac=function(C){return new(C||I)(d.KVO(er.hE))},I.\u0275prov=d.jDH({token:I,factory:I.\u0275fac,providedIn:"root"}),T})();const Hs=new d.nKC("",{providedIn:"root",factory:()=>({})}),Es=new d.nKC("");let D=(()=>{var I;class T{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=(0,d.WQX)(d.Ql9)}loadComponent(C){if(this.componentLoaders.get(C))return this.componentLoaders.get(C);if(C._loadedComponent)return(0,re.of)(C._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(C);const x=mn(C.loadComponent()).pipe((0,Zt.T)(O),(0,ae.M)(ve=>{this.onLoadEndListener&&this.onLoadEndListener(C),C._loadedComponent=ve}),bn(()=>{this.componentLoaders.delete(C)})),J=new He(x,()=>new Tt.B).pipe(Ot());return this.componentLoaders.set(C,J),J}loadChildren(C,x){if(this.childrenLoaders.get(x))return this.childrenLoaders.get(x);if(x._loadedRoutes)return(0,re.of)({routes:x._loadedRoutes,injector:x._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(x);const ve=function V(I,T,R,C){return mn(I.loadChildren()).pipe((0,Zt.T)(O),(0,Fe.Z)(x=>x instanceof d.Co$||Array.isArray(x)?(0,re.of)(x):(0,Ie.H)(T.compileModuleAsync(x))),(0,Zt.T)(x=>{C&&C(I);let J,ve,dt=!1;return Array.isArray(x)?(ve=x,!0):(J=x.create(R).injector,ve=J.get(Es,[],{optional:!0,self:!0}).flat()),{routes:ve.map(Us),injector:J}}))}(x,this.compiler,C,this.onLoadEndListener).pipe(bn(()=>{this.childrenLoaders.delete(x)})),dt=new He(ve,()=>new Tt.B).pipe(Ot());return this.childrenLoaders.set(x,dt),dt}}return(I=T).\u0275fac=function(C){return new(C||I)},I.\u0275prov=d.jDH({token:I,factory:I.\u0275fac,providedIn:"root"}),T})();function O(I){return function be(I){return I&&"object"==typeof I&&"default"in I}(I)?I.default:I}let le=(()=>{var I;class T{}return(I=T).\u0275fac=function(C){return new(C||I)},I.\u0275prov=d.jDH({token:I,factory:()=>(0,d.WQX)(xe),providedIn:"root"}),T})(),xe=(()=>{var I;class T{shouldProcessUrl(C){return!0}extract(C){return C}merge(C,x){return C}}return(I=T).\u0275fac=function(C){return new(C||I)},I.\u0275prov=d.jDH({token:I,factory:I.\u0275fac,providedIn:"root"}),T})();const Ft=new d.nKC(""),an=new d.nKC("");function Un(I,T,R){const C=I.get(an),x=I.get(Vt.qQ);return I.get(d.SKi).runOutsideAngular(()=>{if(!x.startViewTransition||C.skipNextTransition)return C.skipNextTransition=!1,new Promise(At=>setTimeout(At));let J;const ve=new Promise(At=>{J=At}),dt=x.startViewTransition(()=>(J(),function Fn(I){return new Promise(T=>{(0,d.mal)(T,{injector:I})})}(I))),{onViewTransitionCreated:Qt}=C;return Qt&&(0,d.N4e)(I,()=>Qt({transition:dt,from:T,to:R})),ve})}let Fr=(()=>{var I;class T{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new Tt.B,this.transitionAbortSubject=new Tt.B,this.configLoader=(0,d.WQX)(D),this.environmentInjector=(0,d.WQX)(d.uvJ),this.urlSerializer=(0,d.WQX)(Qr),this.rootContexts=(0,d.WQX)(S),this.location=(0,d.WQX)(Vt.aZ),this.inputBindingEnabled=null!==(0,d.WQX)(Ln,{optional:!0}),this.titleStrategy=(0,d.WQX)(Ms),this.options=(0,d.WQX)(Hs,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=(0,d.WQX)(le),this.createViewTransition=(0,d.WQX)(Ft,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>(0,re.of)(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=J=>this.events.next(new or(J)),this.configLoader.onLoadStartListener=J=>this.events.next(new si(J))}complete(){var C;null===(C=this.transitions)||void 0===C||C.complete()}handleNavigationRequest(C){var x;const J=++this.navigationId;null===(x=this.transitions)||void 0===x||x.next({...this.transitions.value,...C,id:J})}setupNavigations(C,x,J){return this.transitions=new Ze.t({id:0,currentUrlTree:x,currentRawUrl:x,extractedUrl:this.urlHandlingStrategy.extract(x),urlAfterRedirects:this.urlHandlingStrategy.extract(x),rawUrl:x,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:xr,restoredState:null,currentSnapshot:J.snapshot,targetSnapshot:null,currentRouterState:J,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe((0,pt.p)(ve=>0!==ve.id),(0,Zt.T)(ve=>({...ve,extractedUrl:this.urlHandlingStrategy.extract(ve.rawUrl)})),(0,Dt.n)(ve=>{let dt=!1,Qt=!1;return(0,re.of)(ve).pipe((0,Dt.n)(At=>{var Tn;if(this.navigationId>ve.id)return this.cancelNavigationTransition(ve,"",ti.SupersededByNewNavigation),Me.w;this.currentTransition=ve,this.currentNavigation={id:At.id,initialUrl:At.rawUrl,extractedUrl:At.extractedUrl,trigger:At.source,extras:At.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null};const hr=!C.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),Ri=null!==(Tn=At.extras.onSameUrlNavigation)&&void 0!==Tn?Tn:C.onSameUrlNavigation;if(!hr&&"reload"!==Ri){const Br="";return this.events.next(new Nn(At.id,this.urlSerializer.serialize(At.rawUrl),Br,mr.IgnoredSameUrlNavigation)),At.resolve(null),Me.w}if(this.urlHandlingStrategy.shouldProcessUrl(At.rawUrl))return(0,re.of)(At).pipe((0,Dt.n)(Br=>{var Ki,Bo;const za=null===(Ki=this.transitions)||void 0===Ki?void 0:Ki.getValue();return this.events.next(new mi(Br.id,this.urlSerializer.serialize(Br.extractedUrl),Br.source,Br.restoredState)),za!==(null===(Bo=this.transitions)||void 0===Bo?void 0:Bo.getValue())?Me.w:Promise.resolve(Br)}),function pa(I,T,R,C,x,J){return(0,Fe.Z)(ve=>function Ss(I,T,R,C,x,J,ve="emptyOnly"){return new Zo(I,T,R,C,x,ve,J).recognize()}(I,T,R,C,ve.extractedUrl,x,J).pipe((0,Zt.T)(({state:dt,tree:Qt})=>({...ve,targetSnapshot:dt,urlAfterRedirects:Qt}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,C.config,this.urlSerializer,this.paramsInheritanceStrategy),(0,ae.M)(Br=>{ve.targetSnapshot=Br.targetSnapshot,ve.urlAfterRedirects=Br.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:Br.urlAfterRedirects};const Ki=new ko(Br.id,this.urlSerializer.serialize(Br.extractedUrl),this.urlSerializer.serialize(Br.urlAfterRedirects),Br.targetSnapshot);this.events.next(Ki)}));if(hr&&this.urlHandlingStrategy.shouldProcessUrl(At.currentRawUrl)){const{id:Br,extractedUrl:Ki,source:Bo,restoredState:za,extras:Ha}=At,yo=new mi(Br,this.urlSerializer.serialize(Ki),Bo,za);this.events.next(yo);const hl=ui(this.rootComponentType).snapshot;return this.currentTransition=ve={...At,targetSnapshot:hl,urlAfterRedirects:Ki,extras:{...Ha,skipLocationChange:!1,replaceUrl:!1}},this.currentNavigation.finalUrl=Ki,(0,re.of)(ve)}{const Br="";return this.events.next(new Nn(At.id,this.urlSerializer.serialize(At.extractedUrl),Br,mr.IgnoredByUrlHandlingStrategy)),At.resolve(null),Me.w}}),(0,ae.M)(At=>{const Tn=new ei(At.id,this.urlSerializer.serialize(At.extractedUrl),this.urlSerializer.serialize(At.urlAfterRedirects),At.targetSnapshot);this.events.next(Tn)}),(0,Zt.T)(At=>(this.currentTransition=ve={...At,guards:bs(At.targetSnapshot,At.currentSnapshot,this.rootContexts)},ve)),function Qo(I,T){return(0,Fe.Z)(R=>{const{targetSnapshot:C,currentSnapshot:x,guards:{canActivateChecks:J,canDeactivateChecks:ve}}=R;return 0===ve.length&&0===J.length?(0,re.of)({...R,guardsResult:!0}):function Na(I,T,R,C){return(0,Ie.H)(I).pipe((0,Fe.Z)(x=>function as(I,T,R,C,x){const J=T&&T.routeConfig?T.routeConfig.canDeactivate:null;if(!J||0===J.length)return(0,re.of)(!0);const ve=J.map(dt=>{var Qt;const At=null!==(Qt=gs(T))&&void 0!==Qt?Qt:x,Tn=bo(dt,At);return mn(function On(I){return I&&P(I.canDeactivate)}(Tn)?Tn.canDeactivate(I,T,R,C):(0,d.N4e)(At,()=>Tn(I,T,R,C))).pipe(te())});return(0,re.of)(ve).pipe(eo())}(x.component,x.route,R,T,C)),te(x=>!0!==x,!0))}(ve,C,x,I).pipe((0,Fe.Z)(dt=>dt&&function ce(I){return"boolean"==typeof I}(dt)?function vs(I,T,R,C){return(0,Ie.H)(T).pipe(de(x=>ut(function Oa(I,T){return null!==I&&T&&T(new Or(I)),(0,re.of)(!0)}(x.route.parent,C),function Bs(I,T){return null!==I&&T&&T(new jn(I)),(0,re.of)(!0)}(x.route,C),function al(I,T,R){const C=T[T.length-1],J=T.slice(0,T.length-1).reverse().map(ve=>function Xo(I){const T=I.routeConfig?I.routeConfig.canActivateChild:null;return T&&0!==T.length?{node:I,guards:T}:null}(ve)).filter(ve=>null!==ve).map(ve=>Mt(()=>{const dt=ve.guards.map(Qt=>{var At;const Tn=null!==(At=gs(ve.node))&&void 0!==At?At:R,hr=bo(Qt,Tn);return mn(function nn(I){return I&&P(I.canActivateChild)}(hr)?hr.canActivateChild(C,I):(0,d.N4e)(Tn,()=>hr(C,I))).pipe(te())});return(0,re.of)(dt).pipe(eo())}));return(0,re.of)(J).pipe(eo())}(I,x.path,R),function sl(I,T,R){const C=T.routeConfig?T.routeConfig.canActivate:null;if(!C||0===C.length)return(0,re.of)(!0);const x=C.map(J=>Mt(()=>{var ve;const dt=null!==(ve=gs(T))&&void 0!==ve?ve:R,Qt=bo(J,dt);return mn(function Te(I){return I&&P(I.canActivate)}(Qt)?Qt.canActivate(T,I):(0,d.N4e)(dt,()=>Qt(T,I))).pipe(te())}));return(0,re.of)(x).pipe(eo())}(I,x.route,R))),te(x=>!0!==x,!0))}(C,J,I,T):(0,re.of)(dt)),(0,Zt.T)(dt=>({...R,guardsResult:dt})))})}(this.environmentInjector,At=>this.events.next(At)),(0,ae.M)(At=>{if(ve.guardsResult=At.guardsResult,wi(At.guardsResult))throw ci(0,At.guardsResult);const Tn=new Bi(At.id,this.urlSerializer.serialize(At.extractedUrl),this.urlSerializer.serialize(At.urlAfterRedirects),At.targetSnapshot,!!At.guardsResult);this.events.next(Tn)}),(0,pt.p)(At=>!!At.guardsResult||(this.cancelNavigationTransition(At,"",ti.GuardRejected),!1)),ma(At=>{if(At.guards.canActivateChecks.length)return(0,re.of)(At).pipe((0,ae.M)(Tn=>{const hr=new is(Tn.id,this.urlSerializer.serialize(Tn.extractedUrl),this.urlSerializer.serialize(Tn.urlAfterRedirects),Tn.targetSnapshot);this.events.next(hr)}),(0,Dt.n)(Tn=>{let hr=!1;return(0,re.of)(Tn).pipe(function Bl(I,T){return(0,Fe.Z)(R=>{const{targetSnapshot:C,guards:{canActivateChecks:x}}=R;if(!x.length)return(0,re.of)(R);const J=new Set(x.map(Qt=>Qt.route)),ve=new Set;for(const Qt of J)if(!ve.has(Qt))for(const At of ga(Qt))ve.add(At);let dt=0;return(0,Ie.H)(ve).pipe(de(Qt=>J.has(Qt)?function Va(I,T,R,C){const x=I.routeConfig,J=I._resolve;return void 0!==(null==x?void 0:x.title)&&!Yt(x)&&(J[ir]=x.title),function zs(I,T,R,C){const x=en(I);if(0===x.length)return(0,re.of)({});const J={};return(0,Ie.H)(x).pipe((0,Fe.Z)(ve=>function pc(I,T,R,C){var x;const J=null!==(x=gs(T))&&void 0!==x?x:C,ve=bo(I,J);return mn(ve.resolve?ve.resolve(T,R):(0,d.N4e)(J,()=>ve(T,R)))}(I[ve],T,R,C).pipe(te(),(0,ae.M)(dt=>{J[ve]=dt}))),kt(1),function vn(I){return(0,Zt.T)(()=>I)}(J),me(ve=>Ji(ve)?Me.w:vt(ve)))}(J,I,T,C).pipe((0,Zt.T)(ve=>(I._resolvedData=ve,I.data=Ae(I,I.parent,R).resolve,null)))}(Qt,C,I,T):(Qt.data=Ae(Qt,Qt.parent,I).resolve,(0,re.of)(void 0))),(0,ae.M)(()=>dt++),kt(1),(0,Fe.Z)(Qt=>dt===ve.size?(0,re.of)(R):Me.w))})}(this.paramsInheritanceStrategy,this.environmentInjector),(0,ae.M)({next:()=>hr=!0,complete:()=>{hr||this.cancelNavigationTransition(Tn,"",ti.NoDataFromResolver)}}))}),(0,ae.M)(Tn=>{const hr=new ps(Tn.id,this.urlSerializer.serialize(Tn.extractedUrl),this.urlSerializer.serialize(Tn.urlAfterRedirects),Tn.targetSnapshot);this.events.next(hr)}))}),ma(At=>{const Tn=hr=>{var Ri;const Br=[];null!==(Ri=hr.routeConfig)&&void 0!==Ri&&Ri.loadComponent&&!hr.routeConfig._loadedComponent&&Br.push(this.configLoader.loadComponent(hr.routeConfig).pipe((0,ae.M)(Ki=>{hr.component=Ki}),(0,Zt.T)(()=>{})));for(const Ki of hr.children)Br.push(...Tn(Ki));return Br};return(0,Je.z)(Tn(At.targetSnapshot.root)).pipe(Ee(null),(0,Be.s)(1))}),ma(()=>this.afterPreactivation()),(0,Dt.n)(()=>{var At;const{currentSnapshot:Tn,targetSnapshot:hr}=ve,Ri=null===(At=this.createViewTransition)||void 0===At?void 0:At.call(this,this.environmentInjector,Tn.root,hr.root);return Ri?(0,Ie.H)(Ri).pipe((0,Zt.T)(()=>ve)):(0,re.of)(ve)}),(0,Zt.T)(At=>{const Tn=function br(I,T,R){const C=cr(I,T._root,R?R._root:void 0);return new sr(C,T)}(C.routeReuseStrategy,At.targetSnapshot,At.currentRouterState);return this.currentTransition=ve={...At,targetRouterState:Tn},this.currentNavigation.targetRouterState=Tn,ve}),(0,ae.M)(()=>{this.events.next(new Co)}),((I,T,R,C)=>(0,Zt.T)(x=>(new $s(T,x.targetRouterState,x.currentRouterState,R,C).activate(I),x)))(this.rootContexts,C.routeReuseStrategy,At=>this.events.next(At),this.inputBindingEnabled),(0,Be.s)(1),(0,ae.M)({next:At=>{var Tn;dt=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new Si(At.id,this.urlSerializer.serialize(At.extractedUrl),this.urlSerializer.serialize(At.urlAfterRedirects))),null===(Tn=this.titleStrategy)||void 0===Tn||Tn.updateTitle(At.targetRouterState.snapshot),At.resolve(!0)},complete:()=>{dt=!0}}),function qn(I){return(0,Ke.N)((T,R)=>{(0,st.Tg)(I).subscribe((0,Ct._)(R,()=>R.complete(),$n.l)),!R.closed&&T.subscribe(R)})}(this.transitionAbortSubject.pipe((0,ae.M)(At=>{throw At}))),bn(()=>{var At;!dt&&!Qt&&this.cancelNavigationTransition(ve,"",ti.SupersededByNewNavigation),(null===(At=this.currentTransition)||void 0===At?void 0:At.id)===ve.id&&(this.currentNavigation=null,this.currentTransition=null)}),me(At=>{if(Qt=!0,dr(At))this.events.next(new oi(ve.id,this.urlSerializer.serialize(ve.extractedUrl),At.message,At.cancellationCode)),function Go(I){return dr(I)&&wi(I.url)}(At)?this.events.next(new co(At.url)):ve.resolve(!1);else{var Tn;this.events.next(new kn(ve.id,this.urlSerializer.serialize(ve.extractedUrl),At,null!==(Tn=ve.targetSnapshot)&&void 0!==Tn?Tn:void 0));try{ve.resolve(C.errorHandler(At))}catch(hr){this.options.resolveNavigationPromiseOnError?ve.resolve(!1):ve.reject(hr)}}return Me.w}))}))}cancelNavigationTransition(C,x,J){const ve=new oi(C.id,this.urlSerializer.serialize(C.extractedUrl),x,J);this.events.next(ve),C.resolve(!1)}isUpdatingInternalState(){var C,x;return(null===(C=this.currentTransition)||void 0===C?void 0:C.extractedUrl.toString())!==(null===(x=this.currentTransition)||void 0===x?void 0:x.currentUrlTree.toString())}isUpdatedBrowserUrl(){var C,x;return this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))).toString()!==(null===(C=this.currentTransition)||void 0===C?void 0:C.extractedUrl.toString())&&!(null!==(x=this.currentTransition)&&void 0!==x&&x.extras.skipLocationChange)}}return(I=T).\u0275fac=function(C){return new(C||I)},I.\u0275prov=d.jDH({token:I,factory:I.\u0275fac,providedIn:"root"}),T})();function Tr(I){return I!==xr}let Zr=(()=>{var I;class T{}return(I=T).\u0275fac=function(C){return new(C||I)},I.\u0275prov=d.jDH({token:I,factory:()=>(0,d.WQX)(ki),providedIn:"root"}),T})();class Vr{shouldDetach(T){return!1}store(T,R){}shouldAttach(T){return!1}retrieve(T){return null}shouldReuseRoute(T,R){return T.routeConfig===R.routeConfig}}let ki=(()=>{var I;class T extends Vr{}return(I=T).\u0275fac=(()=>{let R;return function(x){return(R||(R=d.xGo(I)))(x||I)}})(),I.\u0275prov=d.jDH({token:I,factory:I.\u0275fac,providedIn:"root"}),T})(),Gr=(()=>{var I;class T{}return(I=T).\u0275fac=function(C){return new(C||I)},I.\u0275prov=d.jDH({token:I,factory:()=>(0,d.WQX)(un),providedIn:"root"}),T})(),un=(()=>{var I;class T extends Gr{constructor(){super(...arguments),this.location=(0,d.WQX)(Vt.aZ),this.urlSerializer=(0,d.WQX)(Qr),this.options=(0,d.WQX)(Hs,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=(0,d.WQX)(le),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new Zn,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=ui(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){var C,x;return"computed"!==this.canceledNavigationResolution?this.currentPageId:null!==(C=null===(x=this.restoredState())||void 0===x?void 0:x.\u0275routerPageId)&&void 0!==C?C:this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(C){return this.location.subscribe(x=>{"popstate"===x.type&&C(x.url,x.state)})}handleRouterEvent(C,x){if(C instanceof mi)this.stateMemento=this.createStateMemento();else if(C instanceof Nn)this.rawUrlTree=x.initialUrl;else if(C instanceof ko){if("eager"===this.urlUpdateStrategy&&!x.extras.skipLocationChange){const J=this.urlHandlingStrategy.merge(x.finalUrl,x.initialUrl);this.setBrowserUrl(J,x)}}else C instanceof Co?(this.currentUrlTree=x.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(x.finalUrl,x.initialUrl),this.routerState=x.targetRouterState,"deferred"===this.urlUpdateStrategy&&(x.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,x))):C instanceof oi&&(C.code===ti.GuardRejected||C.code===ti.NoDataFromResolver)?this.restoreHistory(x):C instanceof kn?this.restoreHistory(x,!0):C instanceof Si&&(this.lastSuccessfulId=C.id,this.currentPageId=this.browserPageId)}setBrowserUrl(C,x){const J=this.urlSerializer.serialize(C);if(this.location.isCurrentPathEqualTo(J)||x.extras.replaceUrl){const dt={...x.extras.state,...this.generateNgRouterState(x.id,this.browserPageId)};this.location.replaceState(J,"",dt)}else{const ve={...x.extras.state,...this.generateNgRouterState(x.id,this.browserPageId+1)};this.location.go(J,"",ve)}}restoreHistory(C,x=!1){if("computed"===this.canceledNavigationResolution){const ve=this.currentPageId-this.browserPageId;0!==ve?this.location.historyGo(ve):this.currentUrlTree===C.finalUrl&&0===ve&&(this.resetState(C),this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(x&&this.resetState(C),this.resetUrlToCurrentUrlTree())}resetState(C){var x;this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,null!==(x=C.finalUrl)&&void 0!==x?x:this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(C,x){return"computed"===this.canceledNavigationResolution?{navigationId:C,\u0275routerPageId:x}:{navigationId:C}}}return(I=T).\u0275fac=(()=>{let R;return function(x){return(R||(R=d.xGo(I)))(x||I)}})(),I.\u0275prov=d.jDH({token:I,factory:I.\u0275fac,providedIn:"root"}),T})();var Vn=function(I){return I[I.COMPLETE=0]="COMPLETE",I[I.FAILED=1]="FAILED",I[I.REDIRECTING=2]="REDIRECTING",I}(Vn||{});function Kr(I,T){I.events.pipe((0,pt.p)(R=>R instanceof Si||R instanceof oi||R instanceof kn||R instanceof Nn),(0,Zt.T)(R=>R instanceof Si||R instanceof Nn?Vn.COMPLETE:R instanceof oi&&(R.code===ti.Redirect||R.code===ti.SupersededByNewNavigation)?Vn.REDIRECTING:Vn.FAILED),(0,pt.p)(R=>R!==Vn.REDIRECTING),(0,Be.s)(1)).subscribe(()=>{T()})}function Hi(I){throw I}const _i={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Gi={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Fi=(()=>{var I;class T{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){var C,x;this.disposed=!1,this.isNgZoneEnabled=!1,this.console=(0,d.WQX)(d.H3F),this.stateManager=(0,d.WQX)(Gr),this.options=(0,d.WQX)(Hs,{optional:!0})||{},this.pendingTasks=(0,d.WQX)(d.TgB),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=(0,d.WQX)(Fr),this.urlSerializer=(0,d.WQX)(Qr),this.location=(0,d.WQX)(Vt.aZ),this.urlHandlingStrategy=(0,d.WQX)(le),this._events=new Tt.B,this.errorHandler=this.options.errorHandler||Hi,this.navigated=!1,this.routeReuseStrategy=(0,d.WQX)(Zr),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=null!==(C=null===(x=(0,d.WQX)(Es,{optional:!0}))||void 0===x?void 0:x.flat())&&void 0!==C?C:[],this.componentInputBindingEnabled=!!(0,d.WQX)(Ln,{optional:!0}),this.eventsSubscription=new je.yU,this.isNgZoneEnabled=(0,d.WQX)(d.SKi)instanceof d.SKi&&d.SKi.isInAngularZone(),this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:J=>{this.console.warn(J)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){const C=this.navigationTransitions.events.subscribe(x=>{try{const J=this.navigationTransitions.currentTransition,ve=this.navigationTransitions.currentNavigation;if(null!==J&&null!==ve)if(this.stateManager.handleRouterEvent(x,ve),x instanceof oi&&x.code!==ti.Redirect&&x.code!==ti.SupersededByNewNavigation)this.navigated=!0;else if(x instanceof Si)this.navigated=!0;else if(x instanceof co){const dt=this.urlHandlingStrategy.merge(x.url,J.currentRawUrl),Qt={info:J.extras.info,skipLocationChange:J.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||Tr(J.source)};this.scheduleNavigation(dt,xr,null,Qt,{resolve:J.resolve,reject:J.reject,promise:J.promise})}(function zi(I){return!(I instanceof Co||I instanceof co)})(x)&&this._events.next(x)}catch(J){this.navigationTransitions.transitionAbortSubject.next(J)}});this.eventsSubscription.add(C)}resetRootComponentType(C){this.routerState.root.component=C,this.navigationTransitions.rootComponentType=C}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),xr,this.stateManager.restoredState())}setUpLocationChangeListener(){var C;null!==(C=this.nonRouterCurrentEntryChangeSubscription)&&void 0!==C||(this.nonRouterCurrentEntryChangeSubscription=this.stateManager.registerNonRouterCurrentEntryChangeListener((x,J)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(x,"popstate",J)},0)}))}navigateToSyncWithBrowser(C,x,J){const ve={replaceUrl:!0},dt=null!=J&&J.navigationId?J:null;if(J){const At={...J};delete At.navigationId,delete At.\u0275routerPageId,0!==Object.keys(At).length&&(ve.state=At)}const Qt=this.parseUrl(C);this.scheduleNavigation(Qt,x,dt,ve)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(C){this.config=C.map(Us),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(C,x={}){const{relativeTo:J,queryParams:ve,fragment:dt,queryParamsHandling:Qt,preserveFragment:At}=x,Tn=At?this.currentUrlTree.fragment:dt;let Ri,hr=null;switch(Qt){case"merge":hr={...this.currentUrlTree.queryParams,...ve};break;case"preserve":hr=this.currentUrlTree.queryParams;break;default:hr=ve||null}null!==hr&&(hr=this.removeEmptyProps(hr));try{Ri=St(J?J.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof C[0]||!C[0].startsWith("/"))&&(C=[]),Ri=this.currentUrlTree.root}return lt(Ri,C,hr,null!=Tn?Tn:null)}navigateByUrl(C,x={skipLocationChange:!1}){const J=wi(C)?C:this.parseUrl(C),ve=this.urlHandlingStrategy.merge(J,this.rawUrlTree);return this.scheduleNavigation(ve,xr,null,x)}navigate(C,x={skipLocationChange:!1}){return function Jr(I){for(let T=0;T(null!=ve&&(x[J]=ve),x),{})}scheduleNavigation(C,x,J,ve,dt){if(this.disposed)return Promise.resolve(!1);let Qt,At,Tn;dt?(Qt=dt.resolve,At=dt.reject,Tn=dt.promise):Tn=new Promise((Ri,Br)=>{Qt=Ri,At=Br});const hr=this.pendingTasks.add();return Kr(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(hr))}),this.navigationTransitions.handleNavigationRequest({source:x,restoredState:J,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:C,extras:ve,resolve:Qt,reject:At,promise:Tn,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),Tn.catch(Ri=>Promise.reject(Ri))}}return(I=T).\u0275fac=function(C){return new(C||I)},I.\u0275prov=d.jDH({token:I,factory:I.\u0275fac,providedIn:"root"}),T})(),Uo=(()=>{var I;class T{constructor(C,x,J,ve,dt,Qt){var At;this.router=C,this.route=x,this.tabIndexAttribute=J,this.renderer=ve,this.el=dt,this.locationStrategy=Qt,this.href=null,this.commands=null,this.onChanges=new Tt.B,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;const Tn=null===(At=dt.nativeElement.tagName)||void 0===At?void 0:At.toLowerCase();this.isAnchorElement="a"===Tn||"area"===Tn,this.isAnchorElement?this.subscription=C.events.subscribe(hr=>{hr instanceof Si&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(C){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",C)}ngOnChanges(C){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(C){null!=C?(this.commands=Array.isArray(C)?C:[C],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(C,x,J,ve,dt){const Qt=this.urlTree;return!!(null===Qt||this.isAnchorElement&&(0!==C||x||J||ve||dt||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(Qt,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info}),!this.isAnchorElement)}ngOnDestroy(){var C;null===(C=this.subscription)||void 0===C||C.unsubscribe()}updateHref(){var C;const x=this.urlTree;this.href=null!==x&&this.locationStrategy?null===(C=this.locationStrategy)||void 0===C?void 0:C.prepareExternalUrl(this.router.serializeUrl(x)):null;const J=null===this.href?null:(0,d.n$t)(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",J)}applyAttributeValue(C,x){const J=this.renderer,ve=this.el.nativeElement;null!==x?J.setAttribute(ve,C,x):J.removeAttribute(ve,C)}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}}return(I=T).\u0275fac=function(C){return new(C||I)(d.rXU(Fi),d.rXU(ne),d.kS0("tabindex"),d.rXU(d.sFG),d.rXU(d.aKT),d.rXU(Vt.hb))},I.\u0275dir=d.FsC({type:I,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(C,x){1&C&&d.bIt("click",function(ve){return x.onClick(ve.button,ve.ctrlKey,ve.shiftKey,ve.altKey,ve.metaKey)}),2&C&&d.BMQ("target",x.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[d.Mj6.HasDecoratorInputTransform,"preserveFragment","preserveFragment",d.L39],skipLocationChange:[d.Mj6.HasDecoratorInputTransform,"skipLocationChange","skipLocationChange",d.L39],replaceUrl:[d.Mj6.HasDecoratorInputTransform,"replaceUrl","replaceUrl",d.L39],routerLink:"routerLink"},standalone:!0,features:[d.GFd,d.OA$]}),T})();class gc{}let Ua=(()=>{var I;class T{preload(C,x){return x().pipe(me(()=>(0,re.of)(null)))}}return(I=T).\u0275fac=function(C){return new(C||I)},I.\u0275prov=d.jDH({token:I,factory:I.\u0275fac,providedIn:"root"}),T})(),va=(()=>{var I;class T{constructor(C,x,J,ve,dt){this.router=C,this.injector=J,this.preloadingStrategy=ve,this.loader=dt}setUpPreloading(){this.subscription=this.router.events.pipe((0,pt.p)(C=>C instanceof Si),de(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(C,x){const J=[];for(const At of x){var ve,dt;At.providers&&!At._injector&&(At._injector=(0,d.Ol2)(At.providers,C,`Route: ${At.path}`));const Tn=null!==(ve=At._injector)&&void 0!==ve?ve:C,hr=null!==(dt=At._loadedInjector)&&void 0!==dt?dt:Tn;var Qt;(At.loadChildren&&!At._loadedRoutes&&void 0===At.canLoad||At.loadComponent&&!At._loadedComponent)&&J.push(this.preloadConfig(Tn,At)),(At.children||At._loadedRoutes)&&J.push(this.processRoutes(hr,null!==(Qt=At.children)&&void 0!==Qt?Qt:At._loadedRoutes))}return(0,Ie.H)(J).pipe(Le())}preloadConfig(C,x){return this.preloadingStrategy.preload(x,()=>{let J;J=x.loadChildren&&void 0===x.canLoad?this.loader.loadChildren(C,x):(0,re.of)(null);const ve=J.pipe((0,Fe.Z)(dt=>{var Qt;return null===dt?(0,re.of)(void 0):(x._loadedRoutes=dt.routes,x._loadedInjector=dt.injector,this.processRoutes(null!==(Qt=dt.injector)&&void 0!==Qt?Qt:C,dt.routes))}));if(x.loadComponent&&!x._loadedComponent){const dt=this.loader.loadComponent(x);return(0,Ie.H)([ve,dt]).pipe(Le())}return ve})}}return(I=T).\u0275fac=function(C){return new(C||I)(d.KVO(Fi),d.KVO(d.Ql9),d.KVO(d.uvJ),d.KVO(gc),d.KVO(D))},I.\u0275prov=d.jDH({token:I,factory:I.\u0275fac,providedIn:"root"}),T})();const es=new d.nKC("");let wo=(()=>{var I;class T{constructor(C,x,J,ve,dt={}){this.urlSerializer=C,this.transitions=x,this.viewportScroller=J,this.zone=ve,this.options=dt,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},this.environmentInjector=(0,d.WQX)(d.uvJ),dt.scrollPositionRestoration||(dt.scrollPositionRestoration="disabled"),dt.anchorScrolling||(dt.anchorScrolling="disabled")}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(C=>{C instanceof mi?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=C.navigationTrigger,this.restoredId=C.restoredState?C.restoredState.navigationId:0):C instanceof Si?(this.lastId=C.id,this.scheduleScrollEvent(C,this.urlSerializer.parse(C.urlAfterRedirects).fragment)):C instanceof Nn&&C.code===mr.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(C,this.urlSerializer.parse(C.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(C=>{C instanceof Ao&&(C.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(C.position):C.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(C.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(C,x){var J=this;this.zone.runOutsideAngular((0,g.A)(function*(){yield new Promise(ve=>{setTimeout(()=>{ve()}),(0,d.mal)(()=>{ve()},{injector:J.environmentInjector})}),J.zone.run(()=>{J.transitions.events.next(new Ao(C,"popstate"===J.lastSource?J.store[J.restoredId]:null,x))})}))}ngOnDestroy(){var C,x;null===(C=this.routerEventsSubscription)||void 0===C||C.unsubscribe(),null===(x=this.scrollEventsSubscription)||void 0===x||x.unsubscribe()}}return(I=T).\u0275fac=function(C){d.QTQ()},I.\u0275prov=d.jDH({token:I,factory:I.\u0275fac}),T})();function Lr(I,T){return{\u0275kind:I,\u0275providers:T}}function No(){const I=(0,d.WQX)(d.zZn);return T=>{var R,C;const x=I.get(d.o8S);if(T!==x.components[0])return;const J=I.get(Fi),ve=I.get($o);1===I.get(ya)&&J.initialNavigation(),null===(R=I.get(Ur,null,d.$GK.Optional))||void 0===R||R.setUpPreloading(),null===(C=I.get(es,null,d.$GK.Optional))||void 0===C||C.init(),J.resetRootComponentType(x.componentTypes[0]),ve.closed||(ve.next(),ve.complete(),ve.unsubscribe())}}const $o=new d.nKC("",{factory:()=>new Tt.B}),ya=new d.nKC("",{providedIn:"root",factory:()=>1}),Ur=new d.nKC("");function _o(I){return Lr(0,[{provide:Ur,useExisting:va},{provide:gc,useExisting:I}])}function Hl(I){return Lr(9,[{provide:Ft,useValue:Un},{provide:an,useValue:{skipNextTransition:!(null==I||!I.skipInitialTransition),...I}}])}const Ru=new d.nKC("ROUTER_FORROOT_GUARD"),Ea=[Vt.aZ,{provide:Qr,useClass:Yr},Fi,S,{provide:ne,useFactory:function jl(I){return I.routerState.root},deps:[Fi]},D,[]];let Mu=(()=>{var I;class T{constructor(C){}static forRoot(C,x){return{ngModule:T,providers:[Ea,[],{provide:Es,multi:!0,useValue:C},{provide:Ru,useFactory:mc,deps:[[Fi,new d.Xx1,new d.kdw]]},{provide:Hs,useValue:x||{}},null!=x&&x.useHash?{provide:Vt.hb,useClass:Vt.fw}:{provide:Vt.hb,useClass:Vt.Sm},{provide:es,useFactory:()=>{const I=(0,d.WQX)(Vt.Xr),T=(0,d.WQX)(d.SKi),R=(0,d.WQX)(Hs),C=(0,d.WQX)(Fr),x=(0,d.WQX)(Qr);return R.scrollOffset&&I.setOffset(R.scrollOffset),new wo(x,C,I,T,R)}},null!=x&&x.preloadingStrategy?_o(x.preloadingStrategy).\u0275providers:[],null!=x&&x.initialNavigation?qs(x):[],null!=x&&x.bindToComponentInputs?Lr(8,[In,{provide:Ln,useExisting:In}]).\u0275providers:[],null!=x&&x.enableViewTransitions?Hl().\u0275providers:[],[{provide:Xs,useFactory:No},{provide:d.iLQ,multi:!0,useExisting:Xs}]]}}static forChild(C){return{ngModule:T,providers:[{provide:Es,multi:!0,useValue:C}]}}}return(I=T).\u0275fac=function(C){return new(C||I)(d.KVO(Ru,8))},I.\u0275mod=d.$C({type:I}),I.\u0275inj=d.G2t({}),T})();function mc(I){return"guarded"}function qs(I){return["disabled"===I.initialNavigation?Lr(3,[{provide:d.hnV,multi:!0,useFactory:()=>{const T=(0,d.WQX)(Fi);return()=>{T.setUpLocationChangeListener()}}},{provide:ya,useValue:2}]).\u0275providers:[],"enabledBlocking"===I.initialNavigation?Lr(2,[{provide:ya,useValue:0},{provide:d.hnV,multi:!0,deps:[d.zZn],useFactory:T=>{const R=T.get(Vt.hj,Promise.resolve());return()=>R.then(()=>new Promise(C=>{const x=T.get(Fi),J=T.get($o);Kr(x,()=>{C(!0)}),T.get(Fr).afterPreactivation=()=>(C(!0),J.closed?(0,re.of)(void 0):J),x.initialNavigation()}))}}]).\u0275providers:[]]}const Xs=new d.nKC("")},7852:(En,bt,j)=>{"use strict";j.d(bt,{MF:()=>Qr,j6:()=>_r,xZ:()=>Zn,om:()=>Mr,Sx:()=>ze,Dk:()=>ct,Wp:()=>Yr,KO:()=>he});var g=j(467),d=j(1362),ge=j(8041),Oe=j(1076);const X=(St,lt)=>lt.some(Ut=>St instanceof Ut);let Ie,re;const De=new WeakMap,_e=new WeakMap,Fe=new WeakMap,$e=new WeakMap,Le=new WeakMap;let ut={get(St,lt,Ut){if(St instanceof IDBTransaction){if("done"===lt)return _e.get(St);if("objectStoreNames"===lt)return St.objectStoreNames||Fe.get(St);if("store"===lt)return Ut.objectStoreNames[1]?void 0:Ut.objectStore(Ut.objectStoreNames[0])}return vt(St[lt])},set:(St,lt,Ut)=>(St[lt]=Ut,!0),has:(St,lt)=>St instanceof IDBTransaction&&("done"===lt||"store"===lt)||lt in St};function mt(St){return"function"==typeof St?function Mt(St){return St!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?function Je(){return re||(re=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}().includes(St)?function(...lt){return St.apply(Me(this),lt),vt(De.get(this))}:function(...lt){return vt(St.apply(Me(this),lt))}:function(lt,...Ut){const fn=St.call(Me(this),lt,...Ut);return Fe.set(fn,lt.sort?lt.sort():[lt]),vt(fn)}}(St):(St instanceof IDBTransaction&&function ft(St){if(_e.has(St))return;const lt=new Promise((Ut,fn)=>{const Kn=()=>{St.removeEventListener("complete",Y),St.removeEventListener("error",Z),St.removeEventListener("abort",Z)},Y=()=>{Ut(),Kn()},Z=()=>{fn(St.error||new DOMException("AbortError","AbortError")),Kn()};St.addEventListener("complete",Y),St.addEventListener("error",Z),St.addEventListener("abort",Z)});_e.set(St,lt)}(St),X(St,function Ze(){return Ie||(Ie=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}())?new Proxy(St,ut):St)}function vt(St){if(St instanceof IDBRequest)return function Qe(St){const lt=new Promise((Ut,fn)=>{const Kn=()=>{St.removeEventListener("success",Y),St.removeEventListener("error",Z)},Y=()=>{Ut(vt(St.result)),Kn()},Z=()=>{fn(St.error),Kn()};St.addEventListener("success",Y),St.addEventListener("error",Z)});return lt.then(Ut=>{Ut instanceof IDBCursor&&De.set(Ut,St)}).catch(()=>{}),Le.set(lt,St),lt}(St);if($e.has(St))return $e.get(St);const lt=mt(St);return lt!==St&&($e.set(St,lt),Le.set(lt,St)),lt}const Me=St=>Le.get(St),Ct=["get","getKey","getAll","getAllKeys","count"],Ot=["put","add","delete","clear"],He=new Map;function Tt(St,lt){if(!(St instanceof IDBDatabase)||lt in St||"string"!=typeof lt)return;if(He.get(lt))return He.get(lt);const Ut=lt.replace(/FromIndex$/,""),fn=lt!==Ut,Kn=Ot.includes(Ut);if(!(Ut in(fn?IDBIndex:IDBObjectStore).prototype)||!Kn&&!Ct.includes(Ut))return;const Y=function(){var Z=(0,g.A)(function*(Ne,...Q){const Se=this.transaction(Ne,Kn?"readwrite":"readonly");let it=Se.store;return fn&&(it=it.index(Q.shift())),(yield Promise.all([it[Ut](...Q),Kn&&Se.done]))[0]});return function(Q){return Z.apply(this,arguments)}}();return He.set(lt,Y),Y}!function st(St){ut=St(ut)}(St=>({...St,get:(lt,Ut,fn)=>Tt(lt,Ut)||St.get(lt,Ut,fn),has:(lt,Ut)=>!!Tt(lt,Ut)||St.has(lt,Ut)}));class Vt{constructor(lt){this.container=lt}getPlatformInfoString(){return this.container.getProviders().map(Ut=>{if(function Zt(St){const lt=St.getComponent();return"VERSION"===(null==lt?void 0:lt.type)}(Ut)){const fn=Ut.getImmediate();return`${fn.library}/${fn.version}`}return null}).filter(Ut=>Ut).join(" ")}}const Dt="@firebase/app",rn=new ge.Vy("@firebase/app"),gn="[DEFAULT]",mn={[Dt]:"fire-core","@firebase/app-compat":"fire-core-compat","@firebase/analytics":"fire-analytics","@firebase/analytics-compat":"fire-analytics-compat","@firebase/app-check":"fire-app-check","@firebase/app-check-compat":"fire-app-check-compat","@firebase/auth":"fire-auth","@firebase/auth-compat":"fire-auth-compat","@firebase/database":"fire-rtdb","@firebase/database-compat":"fire-rtdb-compat","@firebase/functions":"fire-fn","@firebase/functions-compat":"fire-fn-compat","@firebase/installations":"fire-iid","@firebase/installations-compat":"fire-iid-compat","@firebase/messaging":"fire-fcm","@firebase/messaging-compat":"fire-fcm-compat","@firebase/performance":"fire-perf","@firebase/performance-compat":"fire-perf-compat","@firebase/remote-config":"fire-rc","@firebase/remote-config-compat":"fire-rc-compat","@firebase/storage":"fire-gcs","@firebase/storage-compat":"fire-gcs-compat","@firebase/firestore":"fire-fst","@firebase/firestore-compat":"fire-fst-compat","@firebase/vertexai-preview":"fire-vertex","fire-js":"fire-js",firebase:"fire-js-all"},Jt=new Map,Gt=new Map,pr=new Map;function wr(St,lt){try{St.container.addComponent(lt)}catch(Ut){rn.debug(`Component ${lt.name} failed to register with FirebaseApp ${St.name}`,Ut)}}function Mr(St){const lt=St.name;if(pr.has(lt))return rn.debug(`There were multiple attempts to register component ${lt}.`),!1;pr.set(lt,St);for(const Ut of Jt.values())wr(Ut,St);for(const Ut of Gt.values())wr(Ut,St);return!0}function _r(St,lt){const Ut=St.container.getProvider("heartbeat").getImmediate({optional:!0});return Ut&&Ut.triggerHeartbeat(),St.container.getProvider(lt)}function Zn(St){return void 0!==St.settings}const tr=new Oe.FA("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.","invalid-log-argument":"First argument to `onLog` must be null or a function.","idb-open":"Error thrown when opening IndexedDB. Original error: {$originalErrorMessage}.","idb-get":"Error thrown when reading from IndexedDB. Original error: {$originalErrorMessage}.","idb-set":"Error thrown when writing to IndexedDB. Original error: {$originalErrorMessage}.","idb-delete":"Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}.","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 Ir{constructor(lt,Ut,fn){this._isDeleted=!1,this._options=Object.assign({},lt),this._config=Object.assign({},Ut),this._name=Ut.name,this._automaticDataCollectionEnabled=Ut.automaticDataCollectionEnabled,this._container=fn,this.container.addComponent(new d.uA("app",()=>this,"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(lt){this.checkDestroyed(),this._automaticDataCollectionEnabled=lt}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(lt){this._isDeleted=lt}checkDestroyed(){if(this.isDeleted)throw tr.create("app-deleted",{appName:this._name})}}const Qr="10.12.2";function Yr(St,lt={}){let Ut=St;"object"!=typeof lt&&(lt={name:lt});const fn=Object.assign({name:gn,automaticDataCollectionEnabled:!1},lt),Kn=fn.name;if("string"!=typeof Kn||!Kn)throw tr.create("bad-app-name",{appName:String(Kn)});if(Ut||(Ut=(0,Oe.T9)()),!Ut)throw tr.create("no-options");const Y=Jt.get(Kn);if(Y){if((0,Oe.bD)(Ut,Y.options)&&(0,Oe.bD)(fn,Y.config))return Y;throw tr.create("duplicate-app",{appName:Kn})}const Z=new d.h1(Kn);for(const Q of pr.values())Z.addComponent(Q);const Ne=new Ir(Ut,fn,Z);return Jt.set(Kn,Ne),Ne}function ze(St=gn){const lt=Jt.get(St);if(!lt&&St===gn&&(0,Oe.T9)())return Yr();if(!lt)throw tr.create("no-app",{appName:St});return lt}function ct(){return Array.from(Jt.values())}function he(St,lt,Ut){var fn;let Kn=null!==(fn=mn[St])&&void 0!==fn?fn:St;Ut&&(Kn+=`-${Ut}`);const Y=Kn.match(/\s|\//),Z=lt.match(/\s|\//);if(Y||Z){const Ne=[`Unable to register library "${Kn}" with version "${lt}":`];return Y&&Ne.push(`library name "${Kn}" contains illegal characters (whitespace or "/")`),Y&&Z&&Ne.push("and"),Z&&Ne.push(`version name "${lt}" contains illegal characters (whitespace or "/")`),void rn.warn(Ne.join(" "))}Mr(new d.uA(`${Kn}-version`,()=>({library:Kn,version:lt}),"VERSION"))}const rt="firebase-heartbeat-database",dn=1,Sn="firebase-heartbeat-store";let Wn=null;function gr(){return Wn||(Wn=function je(St,lt,{blocked:Ut,upgrade:fn,blocking:Kn,terminated:Y}={}){const Z=indexedDB.open(St,lt),Ne=vt(Z);return fn&&Z.addEventListener("upgradeneeded",Q=>{fn(vt(Z.result),Q.oldVersion,Q.newVersion,vt(Z.transaction),Q)}),Ut&&Z.addEventListener("blocked",Q=>Ut(Q.oldVersion,Q.newVersion,Q)),Ne.then(Q=>{Y&&Q.addEventListener("close",()=>Y()),Kn&&Q.addEventListener("versionchange",Se=>Kn(Se.oldVersion,Se.newVersion,Se))}).catch(()=>{}),Ne}(rt,dn,{upgrade:(St,lt)=>{if(0===lt)try{St.createObjectStore(Sn)}catch(Ut){console.warn(Ut)}}}).catch(St=>{throw tr.create("idb-open",{originalErrorMessage:St.message})})),Wn}function ri(){return(ri=(0,g.A)(function*(St){try{const Ut=(yield gr()).transaction(Sn),fn=yield Ut.objectStore(Sn).get(yr(St));return yield Ut.done,fn}catch(lt){if(lt instanceof Oe.g)rn.warn(lt.message);else{const Ut=tr.create("idb-get",{originalErrorMessage:null==lt?void 0:lt.message});rn.warn(Ut.message)}}})).apply(this,arguments)}function xn(St,lt){return Rn.apply(this,arguments)}function Rn(){return(Rn=(0,g.A)(function*(St,lt){try{const fn=(yield gr()).transaction(Sn,"readwrite");yield fn.objectStore(Sn).put(lt,yr(St)),yield fn.done}catch(Ut){if(Ut instanceof Oe.g)rn.warn(Ut.message);else{const fn=tr.create("idb-set",{originalErrorMessage:null==Ut?void 0:Ut.message});rn.warn(fn.message)}}})).apply(this,arguments)}function yr(St){return`${St.name}!${St.options.appId}`}class pi{constructor(lt){this.container=lt,this._heartbeatsCache=null;const Ut=this.container.getProvider("app").getImmediate();this._storage=new Xi(Ut),this._heartbeatsCachePromise=this._storage.read().then(fn=>(this._heartbeatsCache=fn,fn))}triggerHeartbeat(){var lt=this;return(0,g.A)(function*(){var Ut,fn;const Y=lt.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),Z=Ui();if((null!=(null===(Ut=lt._heartbeatsCache)||void 0===Ut?void 0:Ut.heartbeats)||(lt._heartbeatsCache=yield lt._heartbeatsCachePromise,null!=(null===(fn=lt._heartbeatsCache)||void 0===fn?void 0:fn.heartbeats)))&<._heartbeatsCache.lastSentHeartbeatDate!==Z&&!lt._heartbeatsCache.heartbeats.some(Ne=>Ne.date===Z))return lt._heartbeatsCache.heartbeats.push({date:Z,agent:Y}),lt._heartbeatsCache.heartbeats=lt._heartbeatsCache.heartbeats.filter(Ne=>{const Q=new Date(Ne.date).valueOf();return Date.now()-Q<=2592e6}),lt._storage.overwrite(lt._heartbeatsCache)})()}getHeartbeatsHeader(){var lt=this;return(0,g.A)(function*(){var Ut;if(null===lt._heartbeatsCache&&(yield lt._heartbeatsCachePromise),null==(null===(Ut=lt._heartbeatsCache)||void 0===Ut?void 0:Ut.heartbeats)||0===lt._heartbeatsCache.heartbeats.length)return"";const fn=Ui(),{heartbeatsToSend:Kn,unsentEntries:Y}=function lr(St,lt=1024){const Ut=[];let fn=St.slice();for(const Kn of St){const Y=Ut.find(Z=>Z.agent===Kn.agent);if(Y){if(Y.dates.push(Kn.date),wi(Ut)>lt){Y.dates.pop();break}}else if(Ut.push({agent:Kn.agent,dates:[Kn.date]}),wi(Ut)>lt){Ut.pop();break}fn=fn.slice(1)}return{heartbeatsToSend:Ut,unsentEntries:fn}}(lt._heartbeatsCache.heartbeats),Z=(0,Oe.Uj)(JSON.stringify({version:2,heartbeats:Kn}));return lt._heartbeatsCache.lastSentHeartbeatDate=fn,Y.length>0?(lt._heartbeatsCache.heartbeats=Y,yield lt._storage.overwrite(lt._heartbeatsCache)):(lt._heartbeatsCache.heartbeats=[],lt._storage.overwrite(lt._heartbeatsCache)),Z})()}}function Ui(){return(new Date).toISOString().substring(0,10)}class Xi{constructor(lt){this.app=lt,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}runIndexedDBEnvironmentCheck(){return(0,g.A)(function*(){return!!(0,Oe.zW)()&&(0,Oe.eX)().then(()=>!0).catch(()=>!1)})()}read(){var lt=this;return(0,g.A)(function*(){if(yield lt._canUseIndexedDBPromise){const fn=yield function ur(St){return ri.apply(this,arguments)}(lt.app);return null!=fn&&fn.heartbeats?fn:{heartbeats:[]}}return{heartbeats:[]}})()}overwrite(lt){var Ut=this;return(0,g.A)(function*(){var fn;if(yield Ut._canUseIndexedDBPromise){const Y=yield Ut.read();return xn(Ut.app,{lastSentHeartbeatDate:null!==(fn=lt.lastSentHeartbeatDate)&&void 0!==fn?fn:Y.lastSentHeartbeatDate,heartbeats:lt.heartbeats})}})()}add(lt){var Ut=this;return(0,g.A)(function*(){var fn;if(yield Ut._canUseIndexedDBPromise){const Y=yield Ut.read();return xn(Ut.app,{lastSentHeartbeatDate:null!==(fn=lt.lastSentHeartbeatDate)&&void 0!==fn?fn:Y.lastSentHeartbeatDate,heartbeats:[...Y.heartbeats,...lt.heartbeats]})}})()}}function wi(St){return(0,Oe.Uj)(JSON.stringify({version:2,heartbeats:St})).length}!function gi(St){Mr(new d.uA("platform-logger",lt=>new Vt(lt),"PRIVATE")),Mr(new d.uA("heartbeat",lt=>new pi(lt),"PRIVATE")),he(Dt,"0.10.5",St),he(Dt,"0.10.5","esm2017"),he("fire-js","")}("")},1362:(En,bt,j)=>{"use strict";j.d(bt,{h1:()=>Ze,uA:()=>ge});var g=j(467),d=j(1076);class ge{constructor(De,_e,Fe){this.name=De,this.instanceFactory=_e,this.type=Fe,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(De){return this.instantiationMode=De,this}setMultipleInstances(De){return this.multipleInstances=De,this}setServiceProps(De){return this.serviceProps=De,this}setInstanceCreatedCallback(De){return this.onInstanceCreated=De,this}}const Oe="[DEFAULT]";class X{constructor(De,_e){this.name=De,this.container=_e,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(De){const _e=this.normalizeInstanceIdentifier(De);if(!this.instancesDeferred.has(_e)){const Fe=new d.cY;if(this.instancesDeferred.set(_e,Fe),this.isInitialized(_e)||this.shouldAutoInitialize())try{const $e=this.getOrInitializeService({instanceIdentifier:_e});$e&&Fe.resolve($e)}catch{}}return this.instancesDeferred.get(_e).promise}getImmediate(De){var _e;const Fe=this.normalizeInstanceIdentifier(null==De?void 0:De.identifier),$e=null!==(_e=null==De?void 0:De.optional)&&void 0!==_e&&_e;if(!this.isInitialized(Fe)&&!this.shouldAutoInitialize()){if($e)return null;throw Error(`Service ${this.name} is not available`)}try{return this.getOrInitializeService({instanceIdentifier:Fe})}catch(Le){if($e)return null;throw Le}}getComponent(){return this.component}setComponent(De){if(De.name!==this.name)throw Error(`Mismatching Component ${De.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=De,this.shouldAutoInitialize()){if(function re(Je){return"EAGER"===Je.instantiationMode}(De))try{this.getOrInitializeService({instanceIdentifier:Oe})}catch{}for(const[_e,Fe]of this.instancesDeferred.entries()){const $e=this.normalizeInstanceIdentifier(_e);try{const Le=this.getOrInitializeService({instanceIdentifier:$e});Fe.resolve(Le)}catch{}}}}clearInstance(De=Oe){this.instancesDeferred.delete(De),this.instancesOptions.delete(De),this.instances.delete(De)}delete(){var De=this;return(0,g.A)(function*(){const _e=Array.from(De.instances.values());yield Promise.all([..._e.filter(Fe=>"INTERNAL"in Fe).map(Fe=>Fe.INTERNAL.delete()),..._e.filter(Fe=>"_delete"in Fe).map(Fe=>Fe._delete())])})()}isComponentSet(){return null!=this.component}isInitialized(De=Oe){return this.instances.has(De)}getOptions(De=Oe){return this.instancesOptions.get(De)||{}}initialize(De={}){const{options:_e={}}=De,Fe=this.normalizeInstanceIdentifier(De.instanceIdentifier);if(this.isInitialized(Fe))throw Error(`${this.name}(${Fe}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);const $e=this.getOrInitializeService({instanceIdentifier:Fe,options:_e});for(const[Le,Qe]of this.instancesDeferred.entries())Fe===this.normalizeInstanceIdentifier(Le)&&Qe.resolve($e);return $e}onInit(De,_e){var Fe;const $e=this.normalizeInstanceIdentifier(_e),Le=null!==(Fe=this.onInitCallbacks.get($e))&&void 0!==Fe?Fe:new Set;Le.add(De),this.onInitCallbacks.set($e,Le);const Qe=this.instances.get($e);return Qe&&De(Qe,$e),()=>{Le.delete(De)}}invokeOnInitCallbacks(De,_e){const Fe=this.onInitCallbacks.get(_e);if(Fe)for(const $e of Fe)try{$e(De,_e)}catch{}}getOrInitializeService({instanceIdentifier:De,options:_e={}}){let Fe=this.instances.get(De);if(!Fe&&this.component&&(Fe=this.component.instanceFactory(this.container,{instanceIdentifier:(Je=De,Je===Oe?void 0:Je),options:_e}),this.instances.set(De,Fe),this.instancesOptions.set(De,_e),this.invokeOnInitCallbacks(Fe,De),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,De,Fe)}catch{}var Je;return Fe||null}normalizeInstanceIdentifier(De=Oe){return this.component?this.component.multipleInstances?De:Oe:De}shouldAutoInitialize(){return!!this.component&&"EXPLICIT"!==this.component.instantiationMode}}class Ze{constructor(De){this.name=De,this.providers=new Map}addComponent(De){const _e=this.getProvider(De.name);if(_e.isComponentSet())throw new Error(`Component ${De.name} has already been registered with ${this.name}`);_e.setComponent(De)}addOrOverwriteComponent(De){this.getProvider(De.name).isComponentSet()&&this.providers.delete(De.name),this.addComponent(De)}getProvider(De){if(this.providers.has(De))return this.providers.get(De);const _e=new X(De,this);return this.providers.set(De,_e),_e}getProviders(){return Array.from(this.providers.values())}}},8041:(En,bt,j)=>{"use strict";j.d(bt,{$b:()=>d,Vy:()=>re});const g=[];var d=function(De){return De[De.DEBUG=0]="DEBUG",De[De.VERBOSE=1]="VERBOSE",De[De.INFO=2]="INFO",De[De.WARN=3]="WARN",De[De.ERROR=4]="ERROR",De[De.SILENT=5]="SILENT",De}(d||{});const ge={debug:d.DEBUG,verbose:d.VERBOSE,info:d.INFO,warn:d.WARN,error:d.ERROR,silent:d.SILENT},Oe=d.INFO,X={[d.DEBUG]:"log",[d.VERBOSE]:"log",[d.INFO]:"info",[d.WARN]:"warn",[d.ERROR]:"error"},Ie=(De,_e,...Fe)=>{if(_e{"use strict";j.d(bt,{Yq:()=>en,TS:()=>Ve,sR:()=>yt,el:()=>Rn,Sb:()=>Ir,QE:()=>Ui,CF:()=>wn,Rg:()=>dn,p4:()=>lr,jM:()=>fn,_t:()=>kt,q9:()=>er,Kb:()=>Kn,CE:()=>yr,pF:()=>Ei,fL:()=>wi,YV:()=>ur,er:()=>Xi,z3:()=>gi});var g=j(467),d=j(9842),ge=j(4438),Oe=j(845),X=j(177),Ie=j(5531),re=j(4442);var Vt=j(1413),Zt=j(3726),Dt=j(4412),Be=j(4572),rn=j(7673),pt=j(1635),Ee=j(5964),B=j(5558),W=j(3669),te=j(9974),de=j(4360);function me(Y,Z){return Y===Z}var Ce=j(4341);const at=["tabsInner"];class kt{constructor(Z){(0,d.A)(this,"menuController",void 0),this.menuController=Z}open(Z){return this.menuController.open(Z)}close(Z){return this.menuController.close(Z)}toggle(Z){return this.menuController.toggle(Z)}enable(Z,Ne){return this.menuController.enable(Z,Ne)}swipeGesture(Z,Ne){return this.menuController.swipeGesture(Z,Ne)}isOpen(Z){return this.menuController.isOpen(Z)}isEnabled(Z){return this.menuController.isEnabled(Z)}get(Z){return this.menuController.get(Z)}getOpen(){return this.menuController.getOpen()}getMenus(){return this.menuController.getMenus()}registerAnimation(Z,Ne){return this.menuController.registerAnimation(Z,Ne)}isAnimating(){return this.menuController.isAnimating()}_getOpenSync(){return this.menuController._getOpenSync()}_createAnimation(Z,Ne){return this.menuController._createAnimation(Z,Ne)}_register(Z){return this.menuController._register(Z)}_unregister(Z){return this.menuController._unregister(Z)}_setOpen(Z,Ne,Q){return this.menuController._setOpen(Z,Ne,Q)}}let bn=(()=>{var Y;class Z{constructor(Q,Se){(0,d.A)(this,"doc",void 0),(0,d.A)(this,"_readyPromise",void 0),(0,d.A)(this,"win",void 0),(0,d.A)(this,"backButton",new Vt.B),(0,d.A)(this,"keyboardDidShow",new Vt.B),(0,d.A)(this,"keyboardDidHide",new Vt.B),(0,d.A)(this,"pause",new Vt.B),(0,d.A)(this,"resume",new Vt.B),(0,d.A)(this,"resize",new Vt.B),this.doc=Q,Se.run(()=>{var it;let Wt;this.win=Q.defaultView,this.backButton.subscribeWithPriority=function(cn,Pn){return this.subscribe(Cr=>Cr.register(cn,Hn=>Se.run(()=>Pn(Hn))))},qn(this.pause,Q,"pause",Se),qn(this.resume,Q,"resume",Se),qn(this.backButton,Q,"ionBackButton",Se),qn(this.resize,this.win,"resize",Se),qn(this.keyboardDidShow,this.win,"ionKeyboardDidShow",Se),qn(this.keyboardDidHide,this.win,"ionKeyboardDidHide",Se),this._readyPromise=new Promise(cn=>{Wt=cn}),null!==(it=this.win)&&void 0!==it&&it.cordova?Q.addEventListener("deviceready",()=>{Wt("cordova")},{once:!0}):Wt("dom")})}is(Q){return(0,Ie.a)(this.win,Q)}platforms(){return(0,Ie.g)(this.win)}ready(){return this._readyPromise}get isRTL(){return"rtl"===this.doc.dir}getQueryParam(Q){return $n(this.win.location.href,Q)}isLandscape(){return!this.isPortrait()}isPortrait(){var Q,Se;return null===(Q=(Se=this.win).matchMedia)||void 0===Q?void 0:Q.call(Se,"(orientation: portrait)").matches}testUserAgent(Q){const Se=this.win.navigator;return!!(null!=Se&&Se.userAgent&&Se.userAgent.indexOf(Q)>=0)}url(){return this.win.location.href}width(){return this.win.innerWidth}height(){return this.win.innerHeight}}return Y=Z,(0,d.A)(Z,"\u0275fac",function(Q){return new(Q||Y)(ge.KVO(X.qQ),ge.KVO(ge.SKi))}),(0,d.A)(Z,"\u0275prov",ge.jDH({token:Y,factory:Y.\u0275fac,providedIn:"root"})),Z})();const $n=(Y,Z)=>{Z=Z.replace(/[[\]\\]/g,"\\$&");const Q=new RegExp("[\\?&]"+Z+"=([^&#]*)").exec(Y);return Q?decodeURIComponent(Q[1].replace(/\+/g," ")):null},qn=(Y,Z,Ne,Q)=>{Z&&Z.addEventListener(Ne,Se=>{Q.run(()=>{Y.next(null!=Se?Se.detail:void 0)})})};let er=(()=>{var Y;class Z{constructor(Q,Se,it,Wt){(0,d.A)(this,"location",void 0),(0,d.A)(this,"serializer",void 0),(0,d.A)(this,"router",void 0),(0,d.A)(this,"topOutlet",void 0),(0,d.A)(this,"direction",ir),(0,d.A)(this,"animated",Yn),(0,d.A)(this,"animationBuilder",void 0),(0,d.A)(this,"guessDirection","forward"),(0,d.A)(this,"guessAnimation",void 0),(0,d.A)(this,"lastNavId",-1),this.location=Se,this.serializer=it,this.router=Wt,Wt&&Wt.events.subscribe(cn=>{if(cn instanceof Oe.Z){const Pn=cn.restoredState?cn.restoredState.navigationId:cn.id;this.guessDirection=this.guessAnimation=Pn{this.pop(),cn()})}navigateForward(Q,Se={}){return this.setDirection("forward",Se.animated,Se.animationDirection,Se.animation),this.navigate(Q,Se)}navigateBack(Q,Se={}){return this.setDirection("back",Se.animated,Se.animationDirection,Se.animation),this.navigate(Q,Se)}navigateRoot(Q,Se={}){return this.setDirection("root",Se.animated,Se.animationDirection,Se.animation),this.navigate(Q,Se)}back(Q={animated:!0,animationDirection:"back"}){return this.setDirection("back",Q.animated,Q.animationDirection,Q.animation),this.location.back()}pop(){var Q=this;return(0,g.A)(function*(){let Se=Q.topOutlet;for(;Se;){if(yield Se.pop())return!0;Se=Se.parentOutlet}return!1})()}setDirection(Q,Se,it,Wt){this.direction=Q,this.animated=yn(Q,Se,it),this.animationBuilder=Wt}setTopOutlet(Q){this.topOutlet=Q}consumeTransition(){let Se,Q="root";const it=this.animationBuilder;return"auto"===this.direction?(Q=this.guessDirection,Se=this.guessAnimation):(Se=this.animated,Q=this.direction),this.direction=ir,this.animated=Yn,this.animationBuilder=void 0,{direction:Q,animation:Se,animationBuilder:it}}navigate(Q,Se){if(Array.isArray(Q))return this.router.navigate(Q,Se);{const it=this.serializer.parse(Q.toString());return void 0!==Se.queryParams&&(it.queryParams={...Se.queryParams}),void 0!==Se.fragment&&(it.fragment=Se.fragment),this.router.navigateByUrl(it,Se)}}}return Y=Z,(0,d.A)(Z,"\u0275fac",function(Q){return new(Q||Y)(ge.KVO(bn),ge.KVO(X.aZ),ge.KVO(Oe.Sd),ge.KVO(Oe.Ix,8))}),(0,d.A)(Z,"\u0275prov",ge.jDH({token:Y,factory:Y.\u0275fac,providedIn:"root"})),Z})();const yn=(Y,Z,Ne)=>{if(!1!==Z){if(void 0!==Ne)return Ne;if("forward"===Y||"back"===Y)return Y;if("root"===Y&&!0===Z)return"forward"}},ir="auto",Yn=void 0;let Ve=(()=>{var Y;class Z{get(Q,Se){const it=Nt();return it?it.get(Q,Se):null}getBoolean(Q,Se){const it=Nt();return!!it&&it.getBoolean(Q,Se)}getNumber(Q,Se){const it=Nt();return it?it.getNumber(Q,Se):0}}return Y=Z,(0,d.A)(Z,"\u0275fac",function(Q){return new(Q||Y)}),(0,d.A)(Z,"\u0275prov",ge.jDH({token:Y,factory:Y.\u0275fac,providedIn:"root"})),Z})();const yt=new ge.nKC("USERCONFIG"),Nt=()=>{if(typeof window<"u"){const Y=window.Ionic;if(null!=Y&&Y.config)return Y.config}return null};class Xt{constructor(Z={}){(0,d.A)(this,"data",void 0),this.data=Z,console.warn("[Ionic Warning]: NavParams has been deprecated in favor of using Angular's input API. Developers should migrate to either the @Input decorator or the Signals-based input API.")}get(Z){return this.data[Z]}}let en=(()=>{var Y;class Z{constructor(){(0,d.A)(this,"zone",(0,ge.WQX)(ge.SKi)),(0,d.A)(this,"applicationRef",(0,ge.WQX)(ge.o8S)),(0,d.A)(this,"config",(0,ge.WQX)(yt))}create(Q,Se,it){var Wt;return new Ar(Q,Se,this.applicationRef,this.zone,it,null!==(Wt=this.config.useSetInputAPI)&&void 0!==Wt&&Wt)}}return Y=Z,(0,d.A)(Z,"\u0275fac",function(Q){return new(Q||Y)}),(0,d.A)(Z,"\u0275prov",ge.jDH({token:Y,factory:Y.\u0275fac})),Z})();class Ar{constructor(Z,Ne,Q,Se,it,Wt){(0,d.A)(this,"environmentInjector",void 0),(0,d.A)(this,"injector",void 0),(0,d.A)(this,"applicationRef",void 0),(0,d.A)(this,"zone",void 0),(0,d.A)(this,"elementReferenceKey",void 0),(0,d.A)(this,"enableSignalsSupport",void 0),(0,d.A)(this,"elRefMap",new WeakMap),(0,d.A)(this,"elEventsMap",new WeakMap),this.environmentInjector=Z,this.injector=Ne,this.applicationRef=Q,this.zone=Se,this.elementReferenceKey=it,this.enableSignalsSupport=Wt}attachViewToDom(Z,Ne,Q,Se){return this.zone.run(()=>new Promise(it=>{const Wt={...Q};void 0!==this.elementReferenceKey&&(Wt[this.elementReferenceKey]=Z),it(gn(this.zone,this.environmentInjector,this.injector,this.applicationRef,this.elRefMap,this.elEventsMap,Z,Ne,Wt,Se,this.elementReferenceKey,this.enableSignalsSupport))}))}removeViewFromDom(Z,Ne){return this.zone.run(()=>new Promise(Q=>{const Se=this.elRefMap.get(Ne);if(Se){Se.destroy(),this.elRefMap.delete(Ne);const it=this.elEventsMap.get(Ne);it&&(it(),this.elEventsMap.delete(Ne))}Q()}))}}const gn=(Y,Z,Ne,Q,Se,it,Wt,cn,Pn,Cr,Hn,$i)=>{const Ai=ge.zZn.create({providers:pr(Pn),parent:Ne}),Pi=(0,ge.a0P)(cn,{environmentInjector:Z,elementInjector:Ai}),xr=Pi.instance,An=Pi.location.nativeElement;if(Pn)if(Hn&&void 0!==xr[Hn]&&console.error(`[Ionic Error]: ${Hn} is a reserved property when using ${Wt.tagName.toLowerCase()}. Rename or remove the "${Hn}" property from ${cn.name}.`),!0===$i&&void 0!==Pi.setInput){const{modal:mi,popover:Si,...ti}=Pn;for(const mr in ti)Pi.setInput(mr,ti[mr]);void 0!==mi&&Object.assign(xr,{modal:mi}),void 0!==Si&&Object.assign(xr,{popover:Si})}else Object.assign(xr,Pn);if(Cr)for(const mi of Cr)An.classList.add(mi);const xi=Jt(Y,xr,An);return Wt.appendChild(An),Q.attachView(Pi.hostView),Se.set(An,Pi),it.set(An,xi),An},mn=[re.L,re.a,re.b,re.c,re.d],Jt=(Y,Z,Ne)=>Y.run(()=>{const Q=mn.filter(Se=>"function"==typeof Z[Se]).map(Se=>{const it=Wt=>Z[Se](Wt.detail);return Ne.addEventListener(Se,it),()=>Ne.removeEventListener(Se,it)});return()=>Q.forEach(Se=>Se())}),Gt=new ge.nKC("NavParamsToken"),pr=Y=>[{provide:Gt,useValue:Y},{provide:Xt,useFactory:wr,deps:[Gt]}],wr=Y=>new Xt(Y),kr=(Y,Z)=>{const Ne=Y.prototype;Z.forEach(Q=>{Object.defineProperty(Ne,Q,{get(){return this.el[Q]},set(Se){this.z.runOutsideAngular(()=>this.el[Q]=Se)}})})},Mr=(Y,Z)=>{const Ne=Y.prototype;Z.forEach(Q=>{Ne[Q]=function(){const Se=arguments;return this.z.runOutsideAngular(()=>this.el[Q].apply(this.el,Se))}})},_r=(Y,Z,Ne)=>{Ne.forEach(Q=>Y[Q]=(0,Zt.R)(Z,Q))};function Bn(Y){return function(Ne){const{defineCustomElementFn:Q,inputs:Se,methods:it}=Y;return void 0!==Q&&Q(),Se&&kr(Ne,Se),it&&Mr(Ne,it),Ne}}const ni=["alignment","animated","arrow","keepContentsMounted","backdropDismiss","cssClass","dismissOnSelect","enterAnimation","event","isOpen","keyboardClose","leaveAnimation","mode","showBackdrop","translucent","trigger","triggerAction","reference","size","side"],Zn=["present","dismiss","onDidDismiss","onWillDismiss"];let wn=(()=>{var Y;let Z=((0,d.A)(Y=class{constructor(Q,Se,it){(0,d.A)(this,"z",void 0),(0,d.A)(this,"template",void 0),(0,d.A)(this,"isCmpOpen",!1),(0,d.A)(this,"el",void 0),this.z=it,this.el=Se.nativeElement,this.el.addEventListener("ionMount",()=>{this.isCmpOpen=!0,Q.detectChanges()}),this.el.addEventListener("didDismiss",()=>{this.isCmpOpen=!1,Q.detectChanges()}),_r(this,this.el,["ionPopoverDidPresent","ionPopoverWillPresent","ionPopoverWillDismiss","ionPopoverDidDismiss","didPresent","willPresent","willDismiss","didDismiss"])}},"\u0275fac",function(Q){return new(Q||Y)(ge.rXU(ge.gRc),ge.rXU(ge.aKT),ge.rXU(ge.SKi))}),(0,d.A)(Y,"\u0275dir",ge.FsC({type:Y,selectors:[["ion-popover"]],contentQueries:function(Q,Se,it){if(1&Q&&ge.wni(it,ge.C4Q,5),2&Q){let Wt;ge.mGM(Wt=ge.lsd())&&(Se.template=Wt.first)}},inputs:{alignment:"alignment",animated:"animated",arrow:"arrow",keepContentsMounted:"keepContentsMounted",backdropDismiss:"backdropDismiss",cssClass:"cssClass",dismissOnSelect:"dismissOnSelect",enterAnimation:"enterAnimation",event:"event",isOpen:"isOpen",keyboardClose:"keyboardClose",leaveAnimation:"leaveAnimation",mode:"mode",showBackdrop:"showBackdrop",translucent:"translucent",trigger:"trigger",triggerAction:"triggerAction",reference:"reference",size:"size",side:"side"}})),Y);return Z=(0,pt.Cg)([Bn({inputs:ni,methods:Zn})],Z),Z})();const Sr=["animated","keepContentsMounted","backdropBreakpoint","backdropDismiss","breakpoints","canDismiss","cssClass","enterAnimation","event","handle","handleBehavior","initialBreakpoint","isOpen","keyboardClose","leaveAnimation","mode","presentingElement","showBackdrop","translucent","trigger"],tr=["present","dismiss","onDidDismiss","onWillDismiss","setCurrentBreakpoint","getCurrentBreakpoint"];let Ir=(()=>{var Y;let Z=((0,d.A)(Y=class{constructor(Q,Se,it){(0,d.A)(this,"z",void 0),(0,d.A)(this,"template",void 0),(0,d.A)(this,"isCmpOpen",!1),(0,d.A)(this,"el",void 0),this.z=it,this.el=Se.nativeElement,this.el.addEventListener("ionMount",()=>{this.isCmpOpen=!0,Q.detectChanges()}),this.el.addEventListener("didDismiss",()=>{this.isCmpOpen=!1,Q.detectChanges()}),_r(this,this.el,["ionModalDidPresent","ionModalWillPresent","ionModalWillDismiss","ionModalDidDismiss","ionBreakpointDidChange","didPresent","willPresent","willDismiss","didDismiss"])}},"\u0275fac",function(Q){return new(Q||Y)(ge.rXU(ge.gRc),ge.rXU(ge.aKT),ge.rXU(ge.SKi))}),(0,d.A)(Y,"\u0275dir",ge.FsC({type:Y,selectors:[["ion-modal"]],contentQueries:function(Q,Se,it){if(1&Q&&ge.wni(it,ge.C4Q,5),2&Q){let Wt;ge.mGM(Wt=ge.lsd())&&(Se.template=Wt.first)}},inputs:{animated:"animated",keepContentsMounted:"keepContentsMounted",backdropBreakpoint:"backdropBreakpoint",backdropDismiss:"backdropDismiss",breakpoints:"breakpoints",canDismiss:"canDismiss",cssClass:"cssClass",enterAnimation:"enterAnimation",event:"event",handle:"handle",handleBehavior:"handleBehavior",initialBreakpoint:"initialBreakpoint",isOpen:"isOpen",keyboardClose:"keyboardClose",leaveAnimation:"leaveAnimation",mode:"mode",presentingElement:"presentingElement",showBackdrop:"showBackdrop",translucent:"translucent",trigger:"trigger"}})),Y);return Z=(0,pt.Cg)([Bn({inputs:Sr,methods:tr})],Z),Z})();const Qr=(Y,Z)=>((Y=Y.filter(Ne=>Ne.stackId!==Z.stackId)).push(Z),Y),ze=(Y,Z)=>{const Ne=Y.createUrlTree(["."],{relativeTo:Z});return Y.serializeUrl(Ne)},ct=(Y,Z)=>!Z||Y.stackId!==Z.stackId,Xe=(Y,Z)=>{if(!Y)return;const Ne=ie(Z);for(let Q=0;Q=Y.length)return Ne[Q];if(Ne[Q]!==Y[Q])return}},ie=Y=>Y.split("/").map(Z=>Z.trim()).filter(Z=>""!==Z),he=Y=>{Y&&(Y.ref.destroy(),Y.unlistenEvents())};class Pe{constructor(Z,Ne,Q,Se,it,Wt){(0,d.A)(this,"containerEl",void 0),(0,d.A)(this,"router",void 0),(0,d.A)(this,"navCtrl",void 0),(0,d.A)(this,"zone",void 0),(0,d.A)(this,"location",void 0),(0,d.A)(this,"views",[]),(0,d.A)(this,"runningTask",void 0),(0,d.A)(this,"skipTransition",!1),(0,d.A)(this,"tabsPrefix",void 0),(0,d.A)(this,"activeView",void 0),(0,d.A)(this,"nextId",0),this.containerEl=Ne,this.router=Q,this.navCtrl=Se,this.zone=it,this.location=Wt,this.tabsPrefix=void 0!==Z?ie(Z):void 0}createView(Z,Ne){var Q;const Se=ze(this.router,Ne),it=null==Z||null===(Q=Z.location)||void 0===Q?void 0:Q.nativeElement,Wt=Jt(this.zone,Z.instance,it);return{id:this.nextId++,stackId:Xe(this.tabsPrefix,Se),unlistenEvents:Wt,element:it,ref:Z,url:Se}}getExistingView(Z){const Ne=ze(this.router,Z),Q=this.views.find(Se=>Se.url===Ne);return Q&&Q.ref.changeDetectorRef.reattach(),Q}setActive(Z){var Ne,Q;const Se=this.navCtrl.consumeTransition();let{direction:it,animation:Wt,animationBuilder:cn}=Se;const Pn=this.activeView,Cr=ct(Z,Pn);Cr&&(it="back",Wt=void 0);const Hn=this.views.slice();let $i;const Ai=this.router;Ai.getCurrentNavigation?$i=Ai.getCurrentNavigation():null!==(Ne=Ai.navigations)&&void 0!==Ne&&Ne.value&&($i=Ai.navigations.value),null!==(Q=$i)&&void 0!==Q&&null!==(Q=Q.extras)&&void 0!==Q&&Q.replaceUrl&&this.views.length>0&&this.views.splice(-1,1);const Pi=this.views.includes(Z),xr=this.insertView(Z,it);Pi||Z.ref.changeDetectorRef.detectChanges();const An=Z.animationBuilder;return void 0===cn&&"back"===it&&!Cr&&void 0!==An&&(cn=An),Pn&&(Pn.animationBuilder=cn),this.zone.runOutsideAngular(()=>this.wait(()=>(Pn&&Pn.ref.changeDetectorRef.detach(),Z.ref.changeDetectorRef.reattach(),this.transition(Z,Pn,Wt,this.canGoBack(1),!1,cn).then(()=>Et(Z,xr,Hn,this.location,this.zone)).then(()=>({enteringView:Z,direction:it,animation:Wt,tabSwitch:Cr})))))}canGoBack(Z,Ne=this.getActiveStackId()){return this.getStack(Ne).length>Z}pop(Z,Ne=this.getActiveStackId()){return this.zone.run(()=>{const Q=this.getStack(Ne);if(Q.length<=Z)return Promise.resolve(!1);const Se=Q[Q.length-Z-1];let it=Se.url;const Wt=Se.savedData;if(Wt){var cn;const Cr=Wt.get("primary");null!=Cr&&null!==(cn=Cr.route)&&void 0!==cn&&null!==(cn=cn._routerState)&&void 0!==cn&&cn.snapshot.url&&(it=Cr.route._routerState.snapshot.url)}const{animationBuilder:Pn}=this.navCtrl.consumeTransition();return this.navCtrl.navigateBack(it,{...Se.savedExtras,animation:Pn}).then(()=>!0)})}startBackTransition(){const Z=this.activeView;if(Z){const Ne=this.getStack(Z.stackId),Q=Ne[Ne.length-2],Se=Q.animationBuilder;return this.wait(()=>this.transition(Q,Z,"back",this.canGoBack(2),!0,Se))}return Promise.resolve()}endBackTransition(Z){Z?(this.skipTransition=!0,this.pop(1)):this.activeView&&rt(this.activeView,this.views,this.views,this.location,this.zone)}getLastUrl(Z){const Ne=this.getStack(Z);return Ne.length>0?Ne[Ne.length-1]:void 0}getRootUrl(Z){const Ne=this.getStack(Z);return Ne.length>0?Ne[0]:void 0}getActiveStackId(){return this.activeView?this.activeView.stackId:void 0}getActiveView(){return this.activeView}hasRunningTask(){return void 0!==this.runningTask}destroy(){this.containerEl=void 0,this.views.forEach(he),this.activeView=void 0,this.views=[]}getStack(Z){return this.views.filter(Ne=>Ne.stackId===Z)}insertView(Z,Ne){return this.activeView=Z,this.views=((Y,Z,Ne)=>"root"===Ne?Qr(Y,Z):"forward"===Ne?((Y,Z)=>(Y.indexOf(Z)>=0?Y=Y.filter(Q=>Q.stackId!==Z.stackId||Q.id<=Z.id):Y.push(Z),Y))(Y,Z):((Y,Z)=>Y.indexOf(Z)>=0?Y.filter(Q=>Q.stackId!==Z.stackId||Q.id<=Z.id):Qr(Y,Z))(Y,Z))(this.views,Z,Ne),this.views.slice()}transition(Z,Ne,Q,Se,it,Wt){if(this.skipTransition)return this.skipTransition=!1,Promise.resolve(!1);if(Ne===Z)return Promise.resolve(!1);const cn=Z?Z.element:void 0,Pn=Ne?Ne.element:void 0,Cr=this.containerEl;return cn&&cn!==Pn&&(cn.classList.add("ion-page"),cn.classList.add("ion-page-invisible"),Cr.commit)?Cr.commit(cn,Pn,{duration:void 0===Q?0:void 0,direction:Q,showGoBack:Se,progressAnimation:it,animationBuilder:Wt}):Promise.resolve(!1)}wait(Z){var Ne=this;return(0,g.A)(function*(){void 0!==Ne.runningTask&&(yield Ne.runningTask,Ne.runningTask=void 0);const Q=Ne.runningTask=Z();return Q.finally(()=>Ne.runningTask=void 0),Q})()}}const Et=(Y,Z,Ne,Q,Se)=>"function"==typeof requestAnimationFrame?new Promise(it=>{requestAnimationFrame(()=>{rt(Y,Z,Ne,Q,Se),it()})}):Promise.resolve(),rt=(Y,Z,Ne,Q,Se)=>{Se.run(()=>Ne.filter(it=>!Z.includes(it)).forEach(he)),Z.forEach(it=>{const cn=Q.path().split("?")[0].split("#")[0];if(it!==Y&&it.url!==cn){const Pn=it.element;Pn.setAttribute("aria-hidden","true"),Pn.classList.add("ion-page-hidden"),it.ref.changeDetectorRef.detach()}})};let dn=(()=>{var Y;class Z{get activatedComponentRef(){return this.activated}set animation(Q){this.nativeEl.animation=Q}set animated(Q){this.nativeEl.animated=Q}set swipeGesture(Q){this._swipeGesture=Q,this.nativeEl.swipeHandler=Q?{canStart:()=>this.stackCtrl.canGoBack(1)&&!this.stackCtrl.hasRunningTask(),onStart:()=>this.stackCtrl.startBackTransition(),onEnd:Se=>this.stackCtrl.endBackTransition(Se)}:void 0}constructor(Q,Se,it,Wt,cn,Pn,Cr,Hn){(0,d.A)(this,"parentOutlet",void 0),(0,d.A)(this,"nativeEl",void 0),(0,d.A)(this,"activatedView",null),(0,d.A)(this,"tabsPrefix",void 0),(0,d.A)(this,"_swipeGesture",void 0),(0,d.A)(this,"stackCtrl",void 0),(0,d.A)(this,"proxyMap",new WeakMap),(0,d.A)(this,"currentActivatedRoute$",new Dt.t(null)),(0,d.A)(this,"activated",null),(0,d.A)(this,"_activatedRoute",null),(0,d.A)(this,"name",Oe.Xk),(0,d.A)(this,"stackWillChange",new ge.bkB),(0,d.A)(this,"stackDidChange",new ge.bkB),(0,d.A)(this,"activateEvents",new ge.bkB),(0,d.A)(this,"deactivateEvents",new ge.bkB),(0,d.A)(this,"parentContexts",(0,ge.WQX)(Oe.Zp)),(0,d.A)(this,"location",(0,ge.WQX)(ge.c1b)),(0,d.A)(this,"environmentInjector",(0,ge.WQX)(ge.uvJ)),(0,d.A)(this,"inputBinder",(0,ge.WQX)(Wn,{optional:!0})),(0,d.A)(this,"supportsBindingToComponentInputs",!0),(0,d.A)(this,"config",(0,ge.WQX)(Ve)),(0,d.A)(this,"navCtrl",(0,ge.WQX)(er)),this.parentOutlet=Hn,this.nativeEl=Wt.nativeElement,this.name=Q||Oe.Xk,this.tabsPrefix="true"===Se?ze(cn,Cr):void 0,this.stackCtrl=new Pe(this.tabsPrefix,this.nativeEl,cn,this.navCtrl,Pn,it),this.parentContexts.onChildOutletCreated(this.name,this)}ngOnDestroy(){var Q;this.stackCtrl.destroy(),null===(Q=this.inputBinder)||void 0===Q||Q.unsubscribeFromRouteData(this)}getContext(){return this.parentContexts.getContext(this.name)}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(!this.activated){const Q=this.getContext();null!=Q&&Q.route&&this.activateWith(Q.route,Q.injector)}new Promise(Q=>((Y,Z)=>{Y.componentOnReady?Y.componentOnReady().then(Ne=>Z(Ne)):(Y=>{"function"==typeof __zone_symbol__requestAnimationFrame?__zone_symbol__requestAnimationFrame(Y):"function"==typeof requestAnimationFrame?requestAnimationFrame(Y):setTimeout(Y)})(()=>Z(Y))})(this.nativeEl,Q)).then(()=>{void 0===this._swipeGesture&&(this.swipeGesture=this.config.getBoolean("swipeBackEnabled","ios"===this.nativeEl.mode))})}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){throw new Error("incompatible reuse strategy")}attach(Q,Se){throw new Error("incompatible reuse strategy")}deactivate(){if(this.activated){if(this.activatedView){const Se=this.getContext();this.activatedView.savedData=new Map(Se.children.contexts);const it=this.activatedView.savedData.get("primary");if(it&&Se.route&&(it.route={...Se.route}),this.activatedView.savedExtras={},Se.route){const Wt=Se.route.snapshot;this.activatedView.savedExtras.queryParams=Wt.queryParams,this.activatedView.savedExtras.fragment=Wt.fragment}}const Q=this.component;this.activatedView=null,this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(Q)}}activateWith(Q,Se){var it;if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=Q;let Wt,cn=this.stackCtrl.getExistingView(Q);if(cn){Wt=this.activated=cn.ref;const Hn=cn.savedData;Hn&&(this.getContext().children.contexts=Hn),this.updateActivatedRouteProxy(Wt.instance,Q)}else{var Pn;const Hn=Q._futureSnapshot,$i=this.parentContexts.getOrCreateContext(this.name).children,Ai=new Dt.t(null),Pi=this.createActivatedRouteProxy(Ai,Q),xr=new Sn(Pi,$i,this.location.injector),An=null!==(Pn=Hn.routeConfig.component)&&void 0!==Pn?Pn:Hn.component;Wt=this.activated=this.outletContent.createComponent(An,{index:this.outletContent.length,injector:xr,environmentInjector:null!=Se?Se:this.environmentInjector}),Ai.next(Wt.instance),cn=this.stackCtrl.createView(this.activated,Q),this.proxyMap.set(Wt.instance,Pi),this.currentActivatedRoute$.next({component:Wt.instance,activatedRoute:Q})}null===(it=this.inputBinder)||void 0===it||it.bindActivatedRouteToOutletComponent(this),this.activatedView=cn,this.navCtrl.setTopOutlet(this);const Cr=this.stackCtrl.getActiveView();this.stackWillChange.emit({enteringView:cn,tabSwitch:ct(cn,Cr)}),this.stackCtrl.setActive(cn).then(Hn=>{this.activateEvents.emit(Wt.instance),this.stackDidChange.emit(Hn)})}canGoBack(Q=1,Se){return this.stackCtrl.canGoBack(Q,Se)}pop(Q=1,Se){return this.stackCtrl.pop(Q,Se)}getLastUrl(Q){const Se=this.stackCtrl.getLastUrl(Q);return Se?Se.url:void 0}getLastRouteView(Q){return this.stackCtrl.getLastUrl(Q)}getRootView(Q){return this.stackCtrl.getRootUrl(Q)}getActiveStackId(){return this.stackCtrl.getActiveStackId()}createActivatedRouteProxy(Q,Se){const it=new Oe.nX;return it._futureSnapshot=Se._futureSnapshot,it._routerState=Se._routerState,it.snapshot=Se.snapshot,it.outlet=Se.outlet,it.component=Se.component,it._paramMap=this.proxyObservable(Q,"paramMap"),it._queryParamMap=this.proxyObservable(Q,"queryParamMap"),it.url=this.proxyObservable(Q,"url"),it.params=this.proxyObservable(Q,"params"),it.queryParams=this.proxyObservable(Q,"queryParams"),it.fragment=this.proxyObservable(Q,"fragment"),it.data=this.proxyObservable(Q,"data"),it}proxyObservable(Q,Se){return Q.pipe((0,Ee.p)(it=>!!it),(0,B.n)(it=>this.currentActivatedRoute$.pipe((0,Ee.p)(Wt=>null!==Wt&&Wt.component===it),(0,B.n)(Wt=>Wt&&Wt.activatedRoute[Se]),function ae(Y,Z=W.D){return Y=null!=Y?Y:me,(0,te.N)((Ne,Q)=>{let Se,it=!0;Ne.subscribe((0,de._)(Q,Wt=>{const cn=Z(Wt);(it||!Y(Se,cn))&&(it=!1,Se=cn,Q.next(Wt))}))})}())))}updateActivatedRouteProxy(Q,Se){const it=this.proxyMap.get(Q);if(!it)throw new Error("Could not find activated route proxy for view");it._futureSnapshot=Se._futureSnapshot,it._routerState=Se._routerState,it.snapshot=Se.snapshot,it.outlet=Se.outlet,it.component=Se.component,this.currentActivatedRoute$.next({component:Q,activatedRoute:Se})}}return Y=Z,(0,d.A)(Z,"\u0275fac",function(Q){return new(Q||Y)(ge.kS0("name"),ge.kS0("tabs"),ge.rXU(X.aZ),ge.rXU(ge.aKT),ge.rXU(Oe.Ix),ge.rXU(ge.SKi),ge.rXU(Oe.nX),ge.rXU(Y,12))}),(0,d.A)(Z,"\u0275dir",ge.FsC({type:Y,selectors:[["ion-router-outlet"]],inputs:{animated:"animated",animation:"animation",mode:"mode",swipeGesture:"swipeGesture",name:"name"},outputs:{stackWillChange:"stackWillChange",stackDidChange:"stackDidChange",activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]})),Z})();class Sn{constructor(Z,Ne,Q){(0,d.A)(this,"route",void 0),(0,d.A)(this,"childContexts",void 0),(0,d.A)(this,"parent",void 0),this.route=Z,this.childContexts=Ne,this.parent=Q}get(Z,Ne){return Z===Oe.nX?this.route:Z===Oe.Zp?this.childContexts:this.parent.get(Z,Ne)}}const Wn=new ge.nKC("");let gr=(()=>{var Y;class Z{constructor(){(0,d.A)(this,"outletDataSubscriptions",new Map)}bindActivatedRouteToOutletComponent(Q){this.unsubscribeFromRouteData(Q),this.subscribeToRouteData(Q)}unsubscribeFromRouteData(Q){var Se;null===(Se=this.outletDataSubscriptions.get(Q))||void 0===Se||Se.unsubscribe(),this.outletDataSubscriptions.delete(Q)}subscribeToRouteData(Q){const{activatedRoute:Se}=Q,it=(0,Be.z)([Se.queryParams,Se.params,Se.data]).pipe((0,B.n)(([Wt,cn,Pn],Cr)=>(Pn={...Wt,...cn,...Pn},0===Cr?(0,rn.of)(Pn):Promise.resolve(Pn)))).subscribe(Wt=>{if(!Q.isActivated||!Q.activatedComponentRef||Q.activatedRoute!==Se||null===Se.component)return void this.unsubscribeFromRouteData(Q);const cn=(0,ge.HJs)(Se.component);if(cn)for(const{templateName:Pn}of cn.inputs)Q.activatedComponentRef.setInput(Pn,Wt[Pn]);else this.unsubscribeFromRouteData(Q)});this.outletDataSubscriptions.set(Q,it)}}return Y=Z,(0,d.A)(Z,"\u0275fac",function(Q){return new(Q||Y)}),(0,d.A)(Z,"\u0275prov",ge.jDH({token:Y,factory:Y.\u0275fac})),Z})();const ur=()=>({provide:Wn,useFactory:ri,deps:[Oe.Ix]});function ri(Y){return null!=Y&&Y.componentInputBindingEnabled?new gr:null}const xn=["color","defaultHref","disabled","icon","mode","routerAnimation","text","type"];let Rn=(()=>{var Y;let Z=((0,d.A)(Y=class{constructor(Q,Se,it,Wt,cn,Pn){(0,d.A)(this,"routerOutlet",void 0),(0,d.A)(this,"navCtrl",void 0),(0,d.A)(this,"config",void 0),(0,d.A)(this,"r",void 0),(0,d.A)(this,"z",void 0),(0,d.A)(this,"el",void 0),this.routerOutlet=Q,this.navCtrl=Se,this.config=it,this.r=Wt,this.z=cn,Pn.detach(),this.el=this.r.nativeElement}onClick(Q){var Se;const it=this.defaultHref||this.config.get("backButtonDefaultHref");null!==(Se=this.routerOutlet)&&void 0!==Se&&Se.canGoBack()?(this.navCtrl.setDirection("back",void 0,void 0,this.routerAnimation),this.routerOutlet.pop(),Q.preventDefault()):null!=it&&(this.navCtrl.navigateBack(it,{animation:this.routerAnimation}),Q.preventDefault())}},"\u0275fac",function(Q){return new(Q||Y)(ge.rXU(dn,8),ge.rXU(er),ge.rXU(Ve),ge.rXU(ge.aKT),ge.rXU(ge.SKi),ge.rXU(ge.gRc))}),(0,d.A)(Y,"\u0275dir",ge.FsC({type:Y,hostBindings:function(Q,Se){1&Q&&ge.bIt("click",function(Wt){return Se.onClick(Wt)})},inputs:{color:"color",defaultHref:"defaultHref",disabled:"disabled",icon:"icon",mode:"mode",routerAnimation:"routerAnimation",text:"text",type:"type"}})),Y);return Z=(0,pt.Cg)([Bn({inputs:xn})],Z),Z})(),yr=(()=>{var Y;class Z{constructor(Q,Se,it,Wt,cn){(0,d.A)(this,"locationStrategy",void 0),(0,d.A)(this,"navCtrl",void 0),(0,d.A)(this,"elementRef",void 0),(0,d.A)(this,"router",void 0),(0,d.A)(this,"routerLink",void 0),(0,d.A)(this,"routerDirection","forward"),(0,d.A)(this,"routerAnimation",void 0),this.locationStrategy=Q,this.navCtrl=Se,this.elementRef=it,this.router=Wt,this.routerLink=cn}ngOnInit(){this.updateTargetUrlAndHref()}ngOnChanges(){this.updateTargetUrlAndHref()}updateTargetUrlAndHref(){var Q;if(null!==(Q=this.routerLink)&&void 0!==Q&&Q.urlTree){const Se=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.routerLink.urlTree));this.elementRef.nativeElement.href=Se}}onClick(Q){this.navCtrl.setDirection(this.routerDirection,void 0,void 0,this.routerAnimation),Q.preventDefault()}}return Y=Z,(0,d.A)(Z,"\u0275fac",function(Q){return new(Q||Y)(ge.rXU(X.hb),ge.rXU(er),ge.rXU(ge.aKT),ge.rXU(Oe.Ix),ge.rXU(Oe.Wk,8))}),(0,d.A)(Z,"\u0275dir",ge.FsC({type:Y,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(Q,Se){1&Q&&ge.bIt("click",function(Wt){return Se.onClick(Wt)})},inputs:{routerDirection:"routerDirection",routerAnimation:"routerAnimation"},features:[ge.OA$]})),Z})(),Ei=(()=>{var Y;class Z{constructor(Q,Se,it,Wt,cn){(0,d.A)(this,"locationStrategy",void 0),(0,d.A)(this,"navCtrl",void 0),(0,d.A)(this,"elementRef",void 0),(0,d.A)(this,"router",void 0),(0,d.A)(this,"routerLink",void 0),(0,d.A)(this,"routerDirection","forward"),(0,d.A)(this,"routerAnimation",void 0),this.locationStrategy=Q,this.navCtrl=Se,this.elementRef=it,this.router=Wt,this.routerLink=cn}ngOnInit(){this.updateTargetUrlAndHref()}ngOnChanges(){this.updateTargetUrlAndHref()}updateTargetUrlAndHref(){var Q;if(null!==(Q=this.routerLink)&&void 0!==Q&&Q.urlTree){const Se=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.routerLink.urlTree));this.elementRef.nativeElement.href=Se}}onClick(){this.navCtrl.setDirection(this.routerDirection,void 0,void 0,this.routerAnimation)}}return Y=Z,(0,d.A)(Z,"\u0275fac",function(Q){return new(Q||Y)(ge.rXU(X.hb),ge.rXU(er),ge.rXU(ge.aKT),ge.rXU(Oe.Ix),ge.rXU(Oe.Wk,8))}),(0,d.A)(Z,"\u0275dir",ge.FsC({type:Y,selectors:[["a","routerLink",""],["area","routerLink",""]],hostBindings:function(Q,Se){1&Q&&ge.bIt("click",function(){return Se.onClick()})},inputs:{routerDirection:"routerDirection",routerAnimation:"routerAnimation"},features:[ge.OA$]})),Z})();const ii=["animated","animation","root","rootParams","swipeGesture"],pi=["push","insert","insertPages","pop","popTo","popToRoot","removeIndex","setRoot","setPages","getActive","getByIndex","canGoBack","getPrevious"];let Ui=(()=>{var Y;let Z=((0,d.A)(Y=class{constructor(Q,Se,it,Wt,cn,Pn){(0,d.A)(this,"z",void 0),(0,d.A)(this,"el",void 0),this.z=cn,Pn.detach(),this.el=Q.nativeElement,Q.nativeElement.delegate=Wt.create(Se,it),_r(this,this.el,["ionNavDidChange","ionNavWillChange"])}},"\u0275fac",function(Q){return new(Q||Y)(ge.rXU(ge.aKT),ge.rXU(ge.uvJ),ge.rXU(ge.zZn),ge.rXU(en),ge.rXU(ge.SKi),ge.rXU(ge.gRc))}),(0,d.A)(Y,"\u0275dir",ge.FsC({type:Y,inputs:{animated:"animated",animation:"animation",root:"root",rootParams:"rootParams",swipeGesture:"swipeGesture"}})),Y);return Z=(0,pt.Cg)([Bn({inputs:ii,methods:pi})],Z),Z})(),lr=(()=>{var Y;class Z{constructor(Q){(0,d.A)(this,"navCtrl",void 0),(0,d.A)(this,"tabsInner",void 0),(0,d.A)(this,"ionTabsWillChange",new ge.bkB),(0,d.A)(this,"ionTabsDidChange",new ge.bkB),(0,d.A)(this,"tabBarSlot","bottom"),this.navCtrl=Q}ngAfterContentInit(){this.detectSlotChanges()}ngAfterContentChecked(){this.detectSlotChanges()}onStackWillChange({enteringView:Q,tabSwitch:Se}){const it=Q.stackId;Se&&void 0!==it&&this.ionTabsWillChange.emit({tab:it})}onStackDidChange({enteringView:Q,tabSwitch:Se}){const it=Q.stackId;Se&&void 0!==it&&(this.tabBar&&(this.tabBar.selectedTab=it),this.ionTabsDidChange.emit({tab:it}))}select(Q){const Se="string"==typeof Q,it=Se?Q:Q.detail.tab,Wt=this.outlet.getActiveStackId()===it,cn=`${this.outlet.tabsPrefix}/${it}`;if(Se||Q.stopPropagation(),Wt){const Pn=this.outlet.getActiveStackId(),Cr=this.outlet.getLastRouteView(Pn);if((null==Cr?void 0:Cr.url)===cn)return;const Hn=this.outlet.getRootView(it);return this.navCtrl.navigateRoot(cn,{...Hn&&cn===Hn.url&&Hn.savedExtras,animated:!0,animationDirection:"back"})}{const Pn=this.outlet.getLastRouteView(it);return this.navCtrl.navigateRoot((null==Pn?void 0:Pn.url)||cn,{...null==Pn?void 0:Pn.savedExtras,animated:!0,animationDirection:"back"})}}getSelected(){return this.outlet.getActiveStackId()}detectSlotChanges(){this.tabBars.forEach(Q=>{const Se=Q.el.getAttribute("slot");Se!==this.tabBarSlot&&(this.tabBarSlot=Se,this.relocateTabBar())})}relocateTabBar(){const Q=this.tabBar.el;"top"===this.tabBarSlot?this.tabsInner.nativeElement.before(Q):this.tabsInner.nativeElement.after(Q)}}return Y=Z,(0,d.A)(Z,"\u0275fac",function(Q){return new(Q||Y)(ge.rXU(er))}),(0,d.A)(Z,"\u0275dir",ge.FsC({type:Y,selectors:[["ion-tabs"]],viewQuery:function(Q,Se){if(1&Q&&ge.GBs(at,7,ge.aKT),2&Q){let it;ge.mGM(it=ge.lsd())&&(Se.tabsInner=it.first)}},hostBindings:function(Q,Se){1&Q&&ge.bIt("ionTabButtonClick",function(Wt){return Se.select(Wt)})},outputs:{ionTabsWillChange:"ionTabsWillChange",ionTabsDidChange:"ionTabsDidChange"}})),Z})();const Xi=Y=>"function"==typeof __zone_symbol__requestAnimationFrame?__zone_symbol__requestAnimationFrame(Y):"function"==typeof requestAnimationFrame?requestAnimationFrame(Y):setTimeout(Y);let wi=(()=>{var Y;class Z{constructor(Q,Se){(0,d.A)(this,"injector",void 0),(0,d.A)(this,"elementRef",void 0),(0,d.A)(this,"onChange",()=>{}),(0,d.A)(this,"onTouched",()=>{}),(0,d.A)(this,"lastValue",void 0),(0,d.A)(this,"statusChanges",void 0),this.injector=Q,this.elementRef=Se}writeValue(Q){this.elementRef.nativeElement.value=this.lastValue=Q,gi(this.elementRef)}handleValueChange(Q,Se){Q===this.elementRef.nativeElement&&(Se!==this.lastValue&&(this.lastValue=Se,this.onChange(Se)),gi(this.elementRef))}_handleBlurEvent(Q){Q===this.elementRef.nativeElement&&(this.onTouched(),gi(this.elementRef))}registerOnChange(Q){this.onChange=Q}registerOnTouched(Q){this.onTouched=Q}setDisabledState(Q){this.elementRef.nativeElement.disabled=Q}ngOnDestroy(){this.statusChanges&&this.statusChanges.unsubscribe()}ngAfterViewInit(){let Q;try{Q=this.injector.get(Ce.vO)}catch{}if(!Q)return;Q.statusChanges&&(this.statusChanges=Q.statusChanges.subscribe(()=>gi(this.elementRef)));const Se=Q.control;Se&&["markAsTouched","markAllAsTouched","markAsUntouched","markAsDirty","markAsPristine"].forEach(Wt=>{if(typeof Se[Wt]<"u"){const cn=Se[Wt].bind(Se);Se[Wt]=(...Pn)=>{cn(...Pn),gi(this.elementRef)}}})}}return Y=Z,(0,d.A)(Z,"\u0275fac",function(Q){return new(Q||Y)(ge.rXU(ge.zZn),ge.rXU(ge.aKT))}),(0,d.A)(Z,"\u0275dir",ge.FsC({type:Y,hostBindings:function(Q,Se){1&Q&&ge.bIt("ionBlur",function(Wt){return Se._handleBlurEvent(Wt.target)})}})),Z})();const gi=Y=>{Xi(()=>{const Z=Y.nativeElement,Ne=null!=Z.value&&Z.value.toString().length>0,Q=St(Z);lt(Z,Q);const Se=Z.closest("ion-item");Se&<(Se,Ne?[...Q,"item-has-value"]:Q)})},St=Y=>{const Z=Y.classList,Ne=[];for(let Q=0;Q{const Ne=Y.classList;Ne.remove("ion-valid","ion-invalid","ion-touched","ion-untouched","ion-dirty","ion-pristine"),Ne.add(...Z)},Ut=(Y,Z)=>Y.substring(0,Z.length)===Z;class fn{shouldDetach(Z){return!1}shouldAttach(Z){return!1}store(Z,Ne){}retrieve(Z){return null}shouldReuseRoute(Z,Ne){if(Z.routeConfig!==Ne.routeConfig)return!1;const Q=Z.params,Se=Ne.params,it=Object.keys(Q),Wt=Object.keys(Se);if(it.length!==Wt.length)return!1;for(const cn of it)if(Se[cn]!==Q[cn])return!1;return!0}}class Kn{constructor(Z){(0,d.A)(this,"ctrl",void 0),this.ctrl=Z}create(Z){return this.ctrl.create(Z||{})}dismiss(Z,Ne,Q){return this.ctrl.dismiss(Z,Ne,Q)}getTop(){return this.ctrl.getTop()}}},7863:(En,bt,j)=>{"use strict";j.d(bt,{hG:()=>Bi,U1:()=>bn,Jm:()=>Yn,hU:()=>Jt,W9:()=>Gt,lO:()=>ni,eU:()=>Zn,iq:()=>wn,$w:()=>Mi,uz:()=>Yr,he:()=>he,nf:()=>Pe,oS:()=>dn,MC:()=>Sn,cA:()=>Wn,Rg:()=>xr,ln:()=>lt,HP:()=>Se,BC:()=>Hn,ai:()=>Pi,bv:()=>Ni,Xi:()=>or,_t:()=>Or,N7:()=>Si,oY:()=>ti,Gw:()=>W});var g=j(9842),d=j(4438),ge=j(4341),Oe=j(3656),X=j(1635),Ie=j(3726),re=j(177),Ze=j(845),Le=(j(9986),j(2725),j(8454),j(3314),j(8607),j(3664)),Qe=j(464),ft=j(5465),ut=j(6002),Mt=(j(8476),j(9672));j(1970),j(6411);var Ke=j(467);const Ct=Le.i,Ot=function(){var S=(0,Ke.A)(function*(H,ue){if(!(typeof window>"u"))return yield Ct(),(0,Mt.b)(JSON.parse('[["ion-menu_3",[[33,"ion-menu-button",{"color":[513],"disabled":[4],"menu":[1],"autoHide":[4,"auto-hide"],"type":[1],"visible":[32]},[[16,"ionMenuChange","visibilityChanged"],[16,"ionSplitPaneVisible","visibilityChanged"]]],[33,"ion-menu",{"contentId":[513,"content-id"],"menuId":[513,"menu-id"],"type":[1025],"disabled":[1028],"side":[513],"swipeGesture":[4,"swipe-gesture"],"maxEdgeStart":[2,"max-edge-start"],"isPaneVisible":[32],"isEndSide":[32],"isOpen":[64],"isActive":[64],"open":[64],"close":[64],"toggle":[64],"setOpen":[64]},[[16,"ionSplitPaneVisible","onSplitPaneChanged"],[2,"click","onBackdropClick"]],{"type":["typeChanged"],"disabled":["disabledChanged"],"side":["sideChanged"],"swipeGesture":["swipeGestureChanged"]}],[1,"ion-menu-toggle",{"menu":[1],"autoHide":[4,"auto-hide"],"visible":[32]},[[16,"ionMenuChange","visibilityChanged"],[16,"ionSplitPaneVisible","visibilityChanged"]]]]],["ion-input-password-toggle",[[33,"ion-input-password-toggle",{"color":[513],"showIcon":[1,"show-icon"],"hideIcon":[1,"hide-icon"],"type":[1025]},null,{"type":["onTypeChange"]}]]],["ion-fab_3",[[33,"ion-fab-button",{"color":[513],"activated":[4],"disabled":[4],"download":[1],"href":[1],"rel":[1],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"target":[1],"show":[4],"translucent":[4],"type":[1],"size":[1],"closeIcon":[1,"close-icon"]}],[1,"ion-fab",{"horizontal":[1],"vertical":[1],"edge":[4],"activated":[1028],"close":[64],"toggle":[64]},null,{"activated":["activatedChanged"]}],[1,"ion-fab-list",{"activated":[4],"side":[1]},null,{"activated":["activatedChanged"]}]]],["ion-refresher_2",[[0,"ion-refresher-content",{"pullingIcon":[1025,"pulling-icon"],"pullingText":[1,"pulling-text"],"refreshingSpinner":[1025,"refreshing-spinner"],"refreshingText":[1,"refreshing-text"]}],[32,"ion-refresher",{"pullMin":[2,"pull-min"],"pullMax":[2,"pull-max"],"closeDuration":[1,"close-duration"],"snapbackDuration":[1,"snapback-duration"],"pullFactor":[2,"pull-factor"],"disabled":[4],"nativeRefresher":[32],"state":[32],"complete":[64],"cancel":[64],"getProgress":[64]},null,{"disabled":["disabledChanged"]}]]],["ion-back-button",[[33,"ion-back-button",{"color":[513],"defaultHref":[1025,"default-href"],"disabled":[516],"icon":[1],"text":[1],"type":[1],"routerAnimation":[16]}]]],["ion-toast",[[33,"ion-toast",{"overlayIndex":[2,"overlay-index"],"delegate":[16],"hasController":[4,"has-controller"],"color":[513],"enterAnimation":[16],"leaveAnimation":[16],"cssClass":[1,"css-class"],"duration":[2],"header":[1],"layout":[1],"message":[1],"keyboardClose":[4,"keyboard-close"],"position":[1],"positionAnchor":[1,"position-anchor"],"buttons":[16],"translucent":[4],"animated":[4],"icon":[1],"htmlAttributes":[16],"swipeGesture":[1,"swipe-gesture"],"isOpen":[4,"is-open"],"trigger":[1],"revealContentToScreenReader":[32],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]},null,{"swipeGesture":["swipeGestureChanged"],"isOpen":["onIsOpenChange"],"trigger":["triggerChanged"]}]]],["ion-card_5",[[33,"ion-card",{"color":[513],"button":[4],"type":[1],"disabled":[4],"download":[1],"href":[1],"rel":[1],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"target":[1]}],[32,"ion-card-content"],[33,"ion-card-header",{"color":[513],"translucent":[4]}],[33,"ion-card-subtitle",{"color":[513]}],[33,"ion-card-title",{"color":[513]}]]],["ion-item-option_3",[[33,"ion-item-option",{"color":[513],"disabled":[4],"download":[1],"expandable":[4],"href":[1],"rel":[1],"target":[1],"type":[1]}],[32,"ion-item-options",{"side":[1],"fireSwipeEvent":[64]}],[0,"ion-item-sliding",{"disabled":[4],"state":[32],"getOpenAmount":[64],"getSlidingRatio":[64],"open":[64],"close":[64],"closeOpened":[64]},null,{"disabled":["disabledChanged"]}]]],["ion-accordion_2",[[49,"ion-accordion",{"value":[1],"disabled":[4],"readonly":[4],"toggleIcon":[1,"toggle-icon"],"toggleIconSlot":[1,"toggle-icon-slot"],"state":[32],"isNext":[32],"isPrevious":[32]},null,{"value":["valueChanged"]}],[33,"ion-accordion-group",{"animated":[4],"multiple":[4],"value":[1025],"disabled":[4],"readonly":[4],"expand":[1],"requestAccordionToggle":[64],"getAccordions":[64]},[[0,"keydown","onKeydown"]],{"value":["valueChanged"],"disabled":["disabledChanged"],"readonly":["readonlyChanged"]}]]],["ion-infinite-scroll_2",[[32,"ion-infinite-scroll-content",{"loadingSpinner":[1025,"loading-spinner"],"loadingText":[1,"loading-text"]}],[0,"ion-infinite-scroll",{"threshold":[1],"disabled":[4],"position":[1],"isLoading":[32],"complete":[64]},null,{"threshold":["thresholdChanged"],"disabled":["disabledChanged"]}]]],["ion-reorder_2",[[33,"ion-reorder",null,[[2,"click","onClick"]]],[0,"ion-reorder-group",{"disabled":[4],"state":[32],"complete":[64]},null,{"disabled":["disabledChanged"]}]]],["ion-segment_2",[[33,"ion-segment-button",{"disabled":[1028],"layout":[1],"type":[1],"value":[8],"checked":[32],"setFocus":[64]},null,{"value":["valueChanged"]}],[33,"ion-segment",{"color":[513],"disabled":[4],"scrollable":[4],"swipeGesture":[4,"swipe-gesture"],"value":[1032],"selectOnFocus":[4,"select-on-focus"],"activated":[32]},[[0,"keydown","onKeyDown"]],{"color":["colorChanged"],"swipeGesture":["swipeGestureChanged"],"value":["valueChanged"],"disabled":["disabledChanged"]}]]],["ion-tab-bar_2",[[33,"ion-tab-button",{"disabled":[4],"download":[1],"href":[1],"rel":[1],"layout":[1025],"selected":[1028],"tab":[1],"target":[1]},[[8,"ionTabBarChanged","onTabBarChanged"]]],[33,"ion-tab-bar",{"color":[513],"selectedTab":[1,"selected-tab"],"translucent":[4],"keyboardVisible":[32]},null,{"selectedTab":["selectedTabChanged"]}]]],["ion-chip",[[33,"ion-chip",{"color":[513],"outline":[4],"disabled":[4]}]]],["ion-datetime-button",[[33,"ion-datetime-button",{"color":[513],"disabled":[516],"datetime":[1],"datetimePresentation":[32],"dateText":[32],"timeText":[32],"datetimeActive":[32],"selectedButton":[32]}]]],["ion-input",[[38,"ion-input",{"color":[513],"autocapitalize":[1],"autocomplete":[1],"autocorrect":[1],"autofocus":[4],"clearInput":[4,"clear-input"],"clearInputIcon":[1,"clear-input-icon"],"clearOnEdit":[4,"clear-on-edit"],"counter":[4],"counterFormatter":[16],"debounce":[2],"disabled":[516],"enterkeyhint":[1],"errorText":[1,"error-text"],"fill":[1],"inputmode":[1],"helperText":[1,"helper-text"],"label":[1],"labelPlacement":[1,"label-placement"],"max":[8],"maxlength":[2],"min":[8],"minlength":[2],"multiple":[4],"name":[1],"pattern":[1],"placeholder":[1],"readonly":[516],"required":[4],"shape":[1],"spellcheck":[4],"step":[1],"type":[1],"value":[1032],"hasFocus":[32],"setFocus":[64],"getInputElement":[64]},null,{"debounce":["debounceChanged"],"type":["onTypeChange"],"value":["valueChanged"]}]]],["ion-searchbar",[[34,"ion-searchbar",{"color":[513],"animated":[4],"autocapitalize":[1],"autocomplete":[1],"autocorrect":[1],"cancelButtonIcon":[1,"cancel-button-icon"],"cancelButtonText":[1,"cancel-button-text"],"clearIcon":[1,"clear-icon"],"debounce":[2],"disabled":[4],"inputmode":[1],"enterkeyhint":[1],"maxlength":[2],"minlength":[2],"name":[1],"placeholder":[1],"searchIcon":[1,"search-icon"],"showCancelButton":[1,"show-cancel-button"],"showClearButton":[1,"show-clear-button"],"spellcheck":[4],"type":[1],"value":[1025],"focused":[32],"noAnimate":[32],"setFocus":[64],"getInputElement":[64]},null,{"lang":["onLangChanged"],"dir":["onDirChanged"],"debounce":["debounceChanged"],"value":["valueChanged"],"showCancelButton":["showCancelButtonChanged"]}]]],["ion-toggle",[[33,"ion-toggle",{"color":[513],"name":[1],"checked":[1028],"disabled":[4],"value":[1],"enableOnOffLabels":[4,"enable-on-off-labels"],"labelPlacement":[1,"label-placement"],"justify":[1],"alignment":[1],"activated":[32]},null,{"disabled":["disabledChanged"]}]]],["ion-nav_2",[[1,"ion-nav",{"delegate":[16],"swipeGesture":[1028,"swipe-gesture"],"animated":[4],"animation":[16],"rootParams":[16],"root":[1],"push":[64],"insert":[64],"insertPages":[64],"pop":[64],"popTo":[64],"popToRoot":[64],"removeIndex":[64],"setRoot":[64],"setPages":[64],"setRouteId":[64],"getRouteId":[64],"getActive":[64],"getByIndex":[64],"canGoBack":[64],"getPrevious":[64],"getLength":[64]},null,{"swipeGesture":["swipeGestureChanged"],"root":["rootChanged"]}],[0,"ion-nav-link",{"component":[1],"componentProps":[16],"routerDirection":[1,"router-direction"],"routerAnimation":[16]}]]],["ion-textarea",[[38,"ion-textarea",{"color":[513],"autocapitalize":[1],"autofocus":[4],"clearOnEdit":[4,"clear-on-edit"],"debounce":[2],"disabled":[4],"fill":[1],"inputmode":[1],"enterkeyhint":[1],"maxlength":[2],"minlength":[2],"name":[1],"placeholder":[1],"readonly":[4],"required":[4],"spellcheck":[4],"cols":[514],"rows":[2],"wrap":[1],"autoGrow":[516,"auto-grow"],"value":[1025],"counter":[4],"counterFormatter":[16],"errorText":[1,"error-text"],"helperText":[1,"helper-text"],"label":[1],"labelPlacement":[1,"label-placement"],"shape":[1],"hasFocus":[32],"setFocus":[64],"getInputElement":[64]},null,{"debounce":["debounceChanged"],"value":["valueChanged"]}]]],["ion-backdrop",[[33,"ion-backdrop",{"visible":[4],"tappable":[4],"stopPropagation":[4,"stop-propagation"]},[[2,"click","onMouseDown"]]]]],["ion-loading",[[34,"ion-loading",{"overlayIndex":[2,"overlay-index"],"delegate":[16],"hasController":[4,"has-controller"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"message":[1],"cssClass":[1,"css-class"],"duration":[2],"backdropDismiss":[4,"backdrop-dismiss"],"showBackdrop":[4,"show-backdrop"],"spinner":[1025],"translucent":[4],"animated":[4],"htmlAttributes":[16],"isOpen":[4,"is-open"],"trigger":[1],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]},null,{"isOpen":["onIsOpenChange"],"trigger":["triggerChanged"]}]]],["ion-breadcrumb_2",[[33,"ion-breadcrumb",{"collapsed":[4],"last":[4],"showCollapsedIndicator":[4,"show-collapsed-indicator"],"color":[1],"active":[4],"disabled":[4],"download":[1],"href":[1],"rel":[1],"separator":[4],"target":[1],"routerDirection":[1,"router-direction"],"routerAnimation":[16]}],[33,"ion-breadcrumbs",{"color":[513],"maxItems":[2,"max-items"],"itemsBeforeCollapse":[2,"items-before-collapse"],"itemsAfterCollapse":[2,"items-after-collapse"],"collapsed":[32],"activeChanged":[32]},[[0,"collapsedClick","onCollapsedClick"]],{"maxItems":["maxItemsChanged"],"itemsBeforeCollapse":["maxItemsChanged"],"itemsAfterCollapse":["maxItemsChanged"]}]]],["ion-modal",[[33,"ion-modal",{"hasController":[4,"has-controller"],"overlayIndex":[2,"overlay-index"],"delegate":[16],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"breakpoints":[16],"initialBreakpoint":[2,"initial-breakpoint"],"backdropBreakpoint":[2,"backdrop-breakpoint"],"handle":[4],"handleBehavior":[1,"handle-behavior"],"component":[1],"componentProps":[16],"cssClass":[1,"css-class"],"backdropDismiss":[4,"backdrop-dismiss"],"showBackdrop":[4,"show-backdrop"],"animated":[4],"presentingElement":[16],"htmlAttributes":[16],"isOpen":[4,"is-open"],"trigger":[1],"keepContentsMounted":[4,"keep-contents-mounted"],"focusTrap":[4,"focus-trap"],"canDismiss":[4,"can-dismiss"],"presented":[32],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64],"setCurrentBreakpoint":[64],"getCurrentBreakpoint":[64]},null,{"isOpen":["onIsOpenChange"],"trigger":["triggerChanged"]}]]],["ion-route_4",[[0,"ion-route",{"url":[1],"component":[1],"componentProps":[16],"beforeLeave":[16],"beforeEnter":[16]},null,{"url":["onUpdate"],"component":["onUpdate"],"componentProps":["onComponentProps"]}],[0,"ion-route-redirect",{"from":[1],"to":[1]},null,{"from":["propDidChange"],"to":["propDidChange"]}],[0,"ion-router",{"root":[1],"useHash":[4,"use-hash"],"canTransition":[64],"push":[64],"back":[64],"printDebug":[64],"navChanged":[64]},[[8,"popstate","onPopState"],[4,"ionBackButton","onBackButton"]]],[1,"ion-router-link",{"color":[513],"href":[1],"rel":[1],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"target":[1]}]]],["ion-avatar_3",[[33,"ion-avatar"],[33,"ion-badge",{"color":[513]}],[1,"ion-thumbnail"]]],["ion-col_3",[[1,"ion-col",{"offset":[1],"offsetXs":[1,"offset-xs"],"offsetSm":[1,"offset-sm"],"offsetMd":[1,"offset-md"],"offsetLg":[1,"offset-lg"],"offsetXl":[1,"offset-xl"],"pull":[1],"pullXs":[1,"pull-xs"],"pullSm":[1,"pull-sm"],"pullMd":[1,"pull-md"],"pullLg":[1,"pull-lg"],"pullXl":[1,"pull-xl"],"push":[1],"pushXs":[1,"push-xs"],"pushSm":[1,"push-sm"],"pushMd":[1,"push-md"],"pushLg":[1,"push-lg"],"pushXl":[1,"push-xl"],"size":[1],"sizeXs":[1,"size-xs"],"sizeSm":[1,"size-sm"],"sizeMd":[1,"size-md"],"sizeLg":[1,"size-lg"],"sizeXl":[1,"size-xl"]},[[9,"resize","onResize"]]],[1,"ion-grid",{"fixed":[4]}],[1,"ion-row"]]],["ion-tab_2",[[1,"ion-tab",{"active":[1028],"delegate":[16],"tab":[1],"component":[1],"setActive":[64]},null,{"active":["changeActive"]}],[1,"ion-tabs",{"useRouter":[1028,"use-router"],"selectedTab":[32],"select":[64],"getTab":[64],"getSelected":[64],"setRouteId":[64],"getRouteId":[64]}]]],["ion-img",[[1,"ion-img",{"alt":[1],"src":[1],"loadSrc":[32],"loadError":[32]},null,{"src":["srcChanged"]}]]],["ion-progress-bar",[[33,"ion-progress-bar",{"type":[1],"reversed":[4],"value":[2],"buffer":[2],"color":[513]}]]],["ion-range",[[33,"ion-range",{"color":[513],"debounce":[2],"name":[1],"label":[1],"dualKnobs":[4,"dual-knobs"],"min":[2],"max":[2],"pin":[4],"pinFormatter":[16],"snaps":[4],"step":[2],"ticks":[4],"activeBarStart":[1026,"active-bar-start"],"disabled":[4],"value":[1026],"labelPlacement":[1,"label-placement"],"ratioA":[32],"ratioB":[32],"pressedKnob":[32]},null,{"debounce":["debounceChanged"],"min":["minChanged"],"max":["maxChanged"],"activeBarStart":["activeBarStartChanged"],"disabled":["disabledChanged"],"value":["valueChanged"]}]]],["ion-split-pane",[[33,"ion-split-pane",{"contentId":[513,"content-id"],"disabled":[4],"when":[8],"visible":[32],"isVisible":[64]},null,{"visible":["visibleChanged"],"disabled":["updateState"],"when":["updateState"]}]]],["ion-text",[[1,"ion-text",{"color":[513]}]]],["ion-select_3",[[33,"ion-select",{"cancelText":[1,"cancel-text"],"color":[513],"compareWith":[1,"compare-with"],"disabled":[4],"fill":[1],"interface":[1],"interfaceOptions":[8,"interface-options"],"justify":[1],"label":[1],"labelPlacement":[1,"label-placement"],"multiple":[4],"name":[1],"okText":[1,"ok-text"],"placeholder":[1],"selectedText":[1,"selected-text"],"toggleIcon":[1,"toggle-icon"],"expandedIcon":[1,"expanded-icon"],"shape":[1],"value":[1032],"isExpanded":[32],"open":[64]},null,{"disabled":["styleChanged"],"isExpanded":["styleChanged"],"placeholder":["styleChanged"],"value":["styleChanged"]}],[1,"ion-select-option",{"disabled":[4],"value":[8]}],[34,"ion-select-popover",{"header":[1],"subHeader":[1,"sub-header"],"message":[1],"multiple":[4],"options":[16]}]]],["ion-picker",[[33,"ion-picker",{"exitInputMode":[64]},[[1,"touchstart","preventTouchStartPropagation"]]]]],["ion-picker-column",[[1,"ion-picker-column",{"disabled":[4],"value":[1032],"color":[513],"numericInput":[4,"numeric-input"],"ariaLabel":[32],"isActive":[32],"scrollActiveItemIntoView":[64],"setValue":[64],"setFocus":[64]},null,{"aria-label":["ariaLabelChanged"],"value":["valueChange"]}]]],["ion-datetime_3",[[33,"ion-datetime",{"color":[1],"name":[1],"disabled":[4],"formatOptions":[16],"readonly":[4],"isDateEnabled":[16],"min":[1025],"max":[1025],"presentation":[1],"cancelText":[1,"cancel-text"],"doneText":[1,"done-text"],"clearText":[1,"clear-text"],"yearValues":[8,"year-values"],"monthValues":[8,"month-values"],"dayValues":[8,"day-values"],"hourValues":[8,"hour-values"],"minuteValues":[8,"minute-values"],"locale":[1],"firstDayOfWeek":[2,"first-day-of-week"],"titleSelectedDatesFormatter":[16],"multiple":[4],"highlightedDates":[16],"value":[1025],"showDefaultTitle":[4,"show-default-title"],"showDefaultButtons":[4,"show-default-buttons"],"showClearButton":[4,"show-clear-button"],"showDefaultTimeLabel":[4,"show-default-time-label"],"hourCycle":[1,"hour-cycle"],"size":[1],"preferWheel":[4,"prefer-wheel"],"showMonthAndYear":[32],"activeParts":[32],"workingParts":[32],"isTimePopoverOpen":[32],"forceRenderDate":[32],"confirm":[64],"reset":[64],"cancel":[64]},null,{"formatOptions":["formatOptionsChanged"],"disabled":["disabledChanged"],"min":["minChanged"],"max":["maxChanged"],"presentation":["presentationChanged"],"yearValues":["yearValuesChanged"],"monthValues":["monthValuesChanged"],"dayValues":["dayValuesChanged"],"hourValues":["hourValuesChanged"],"minuteValues":["minuteValuesChanged"],"value":["valueChanged"]}],[34,"ion-picker-legacy",{"overlayIndex":[2,"overlay-index"],"delegate":[16],"hasController":[4,"has-controller"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"buttons":[16],"columns":[16],"cssClass":[1,"css-class"],"duration":[2],"showBackdrop":[4,"show-backdrop"],"backdropDismiss":[4,"backdrop-dismiss"],"animated":[4],"htmlAttributes":[16],"isOpen":[4,"is-open"],"trigger":[1],"presented":[32],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64],"getColumn":[64]},null,{"isOpen":["onIsOpenChange"],"trigger":["triggerChanged"]}],[32,"ion-picker-legacy-column",{"col":[16]},null,{"col":["colChanged"]}]]],["ion-radio_2",[[33,"ion-radio",{"color":[513],"name":[1],"disabled":[4],"value":[8],"labelPlacement":[1,"label-placement"],"justify":[1],"alignment":[1],"checked":[32],"buttonTabindex":[32],"setFocus":[64],"setButtonTabindex":[64]},null,{"value":["valueChanged"]}],[0,"ion-radio-group",{"allowEmptySelection":[4,"allow-empty-selection"],"compareWith":[1,"compare-with"],"name":[1],"value":[1032]},[[4,"keydown","onKeydown"]],{"value":["valueChanged"]}]]],["ion-ripple-effect",[[1,"ion-ripple-effect",{"type":[1],"addRipple":[64]}]]],["ion-button_2",[[33,"ion-button",{"color":[513],"buttonType":[1025,"button-type"],"disabled":[516],"expand":[513],"fill":[1537],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"download":[1],"href":[1],"rel":[1],"shape":[513],"size":[513],"strong":[4],"target":[1],"type":[1],"form":[1],"isCircle":[32]},null,{"disabled":["disabledChanged"]}],[1,"ion-icon",{"mode":[1025],"color":[1],"ios":[1],"md":[1],"flipRtl":[4,"flip-rtl"],"name":[513],"src":[1],"icon":[8],"size":[1],"lazy":[4],"sanitize":[4],"svgContent":[32],"isVisible":[32]},null,{"name":["loadIcon"],"src":["loadIcon"],"icon":["loadIcon"],"ios":["loadIcon"],"md":["loadIcon"]}]]],["ion-action-sheet",[[34,"ion-action-sheet",{"overlayIndex":[2,"overlay-index"],"delegate":[16],"hasController":[4,"has-controller"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"buttons":[16],"cssClass":[1,"css-class"],"backdropDismiss":[4,"backdrop-dismiss"],"header":[1],"subHeader":[1,"sub-header"],"translucent":[4],"animated":[4],"htmlAttributes":[16],"isOpen":[4,"is-open"],"trigger":[1],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]},null,{"isOpen":["onIsOpenChange"],"trigger":["triggerChanged"]}]]],["ion-alert",[[34,"ion-alert",{"overlayIndex":[2,"overlay-index"],"delegate":[16],"hasController":[4,"has-controller"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"cssClass":[1,"css-class"],"header":[1],"subHeader":[1,"sub-header"],"message":[1],"buttons":[16],"inputs":[1040],"backdropDismiss":[4,"backdrop-dismiss"],"translucent":[4],"animated":[4],"htmlAttributes":[16],"isOpen":[4,"is-open"],"trigger":[1],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]},[[4,"keydown","onKeydown"]],{"isOpen":["onIsOpenChange"],"trigger":["triggerChanged"],"buttons":["buttonsChanged"],"inputs":["inputsChanged"]}]]],["ion-app_8",[[0,"ion-app",{"setFocus":[64]}],[1,"ion-content",{"color":[513],"fullscreen":[4],"fixedSlotPlacement":[1,"fixed-slot-placement"],"forceOverscroll":[1028,"force-overscroll"],"scrollX":[4,"scroll-x"],"scrollY":[4,"scroll-y"],"scrollEvents":[4,"scroll-events"],"getScrollElement":[64],"getBackgroundElement":[64],"scrollToTop":[64],"scrollToBottom":[64],"scrollByPoint":[64],"scrollToPoint":[64]},[[9,"resize","onResize"]]],[36,"ion-footer",{"collapse":[1],"translucent":[4],"keyboardVisible":[32]}],[36,"ion-header",{"collapse":[1],"translucent":[4]}],[1,"ion-router-outlet",{"mode":[1025],"delegate":[16],"animated":[4],"animation":[16],"swipeHandler":[16],"commit":[64],"setRouteId":[64],"getRouteId":[64]},null,{"swipeHandler":["swipeHandlerChanged"]}],[33,"ion-title",{"color":[513],"size":[1]},null,{"size":["sizeChanged"]}],[33,"ion-toolbar",{"color":[513]},[[0,"ionStyle","childrenStyle"]]],[38,"ion-buttons",{"collapse":[4]}]]],["ion-picker-column-option",[[33,"ion-picker-column-option",{"disabled":[4],"value":[8],"color":[513],"ariaLabel":[32]},null,{"aria-label":["onAriaLabelChange"]}]]],["ion-popover",[[33,"ion-popover",{"hasController":[4,"has-controller"],"delegate":[16],"overlayIndex":[2,"overlay-index"],"enterAnimation":[16],"leaveAnimation":[16],"component":[1],"componentProps":[16],"keyboardClose":[4,"keyboard-close"],"cssClass":[1,"css-class"],"backdropDismiss":[4,"backdrop-dismiss"],"event":[8],"showBackdrop":[4,"show-backdrop"],"translucent":[4],"animated":[4],"htmlAttributes":[16],"triggerAction":[1,"trigger-action"],"trigger":[1],"size":[1],"dismissOnSelect":[4,"dismiss-on-select"],"reference":[1],"side":[1],"alignment":[1025],"arrow":[4],"isOpen":[4,"is-open"],"keyboardEvents":[4,"keyboard-events"],"focusTrap":[4,"focus-trap"],"keepContentsMounted":[4,"keep-contents-mounted"],"presented":[32],"presentFromTrigger":[64],"present":[64],"dismiss":[64],"getParentPopover":[64],"onDidDismiss":[64],"onWillDismiss":[64]},null,{"trigger":["onTriggerChange"],"triggerAction":["onTriggerChange"],"isOpen":["onIsOpenChange"]}]]],["ion-checkbox",[[33,"ion-checkbox",{"color":[513],"name":[1],"checked":[1028],"indeterminate":[1028],"disabled":[4],"value":[8],"labelPlacement":[1,"label-placement"],"justify":[1],"alignment":[1]}]]],["ion-spinner",[[1,"ion-spinner",{"color":[513],"duration":[2],"name":[1],"paused":[4]}]]],["ion-item_8",[[33,"ion-item-divider",{"color":[513],"sticky":[4]}],[32,"ion-item-group"],[33,"ion-note",{"color":[513]}],[1,"ion-skeleton-text",{"animated":[4]}],[33,"ion-item",{"color":[513],"button":[4],"detail":[4],"detailIcon":[1,"detail-icon"],"disabled":[4],"download":[1],"href":[1],"rel":[1],"lines":[1],"routerAnimation":[16],"routerDirection":[1,"router-direction"],"target":[1],"type":[1],"multipleInputs":[32],"focusable":[32]},[[0,"ionColor","labelColorChanged"],[0,"ionStyle","itemStyle"]],{"button":["buttonChanged"]}],[38,"ion-label",{"color":[513],"position":[1],"noAnimate":[32]},null,{"color":["colorChanged"],"position":["positionChanged"]}],[32,"ion-list",{"lines":[1],"inset":[4],"closeSlidingItems":[64]}],[33,"ion-list-header",{"color":[513],"lines":[1]}]]]]'),ue)});return function(ue,M){return S.apply(this,arguments)}}(),He=["*"],Tt=["outletContent"];let W=(()=>{var S;class H extends Oe.fL{constructor(M,fe){super(M,fe)}_handleInputEvent(M){this.handleValueChange(M,M.value)}}return S=H,(0,g.A)(H,"\u0275fac",function(M){return new(M||S)(d.rXU(d.zZn),d.rXU(d.aKT))}),(0,g.A)(H,"\u0275dir",d.FsC({type:S,selectors:[["ion-input",3,"type","number"],["ion-textarea"],["ion-searchbar"]],hostBindings:function(M,fe){1&M&&d.bIt("ionInput",function(sr){return fe._handleInputEvent(sr.target)})},features:[d.Jv_([{provide:ge.kq,useExisting:S,multi:!0}]),d.Vt3]})),H})();const te=(S,H)=>{const ue=S.prototype;H.forEach(M=>{Object.defineProperty(ue,M,{get(){return this.el[M]},set(fe){this.z.runOutsideAngular(()=>this.el[M]=fe)},configurable:!0})})},de=(S,H)=>{const ue=S.prototype;H.forEach(M=>{ue[M]=function(){const fe=arguments;return this.z.runOutsideAngular(()=>this.el[M].apply(this.el,fe))}})},ae=(S,H,ue)=>{ue.forEach(M=>S[M]=(0,Ie.R)(H,M))};function Ce(S){return function(ue){const{defineCustomElementFn:M,inputs:fe,methods:qe}=S;return void 0!==M&&M(),fe&&te(ue,fe),qe&&de(ue,qe),ue}}let bn=(()=>{var S;let H=((0,g.A)(S=class{constructor(M,fe,qe){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=qe,M.detach(),this.el=fe.nativeElement}},"\u0275fac",function(M){return new(M||S)(d.rXU(d.gRc),d.rXU(d.aKT),d.rXU(d.SKi))}),(0,g.A)(S,"\u0275cmp",d.VBU({type:S,selectors:[["ion-app"]],ngContentSelectors:He,decls:1,vars:0,template:function(M,fe){1&M&&(d.NAR(),d.SdG(0))},encapsulation:2,changeDetection:0})),S);return H=(0,X.Cg)([Ce({})],H),H})(),Yn=(()=>{var S;let H=((0,g.A)(S=class{constructor(M,fe,qe){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=qe,M.detach(),this.el=fe.nativeElement,ae(this,this.el,["ionFocus","ionBlur"])}},"\u0275fac",function(M){return new(M||S)(d.rXU(d.gRc),d.rXU(d.aKT),d.rXU(d.SKi))}),(0,g.A)(S,"\u0275cmp",d.VBU({type:S,selectors:[["ion-button"]],inputs:{buttonType:"buttonType",color:"color",disabled:"disabled",download:"download",expand:"expand",fill:"fill",form:"form",href:"href",mode:"mode",rel:"rel",routerAnimation:"routerAnimation",routerDirection:"routerDirection",shape:"shape",size:"size",strong:"strong",target:"target",type:"type"},ngContentSelectors:He,decls:1,vars:0,template:function(M,fe){1&M&&(d.NAR(),d.SdG(0))},encapsulation:2,changeDetection:0})),S);return H=(0,X.Cg)([Ce({inputs:["buttonType","color","disabled","download","expand","fill","form","href","mode","rel","routerAnimation","routerDirection","shape","size","strong","target","type"]})],H),H})(),Jt=(()=>{var S;let H=((0,g.A)(S=class{constructor(M,fe,qe){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=qe,M.detach(),this.el=fe.nativeElement}},"\u0275fac",function(M){return new(M||S)(d.rXU(d.gRc),d.rXU(d.aKT),d.rXU(d.SKi))}),(0,g.A)(S,"\u0275cmp",d.VBU({type:S,selectors:[["ion-col"]],inputs:{offset:"offset",offsetLg:"offsetLg",offsetMd:"offsetMd",offsetSm:"offsetSm",offsetXl:"offsetXl",offsetXs:"offsetXs",pull:"pull",pullLg:"pullLg",pullMd:"pullMd",pullSm:"pullSm",pullXl:"pullXl",pullXs:"pullXs",push:"push",pushLg:"pushLg",pushMd:"pushMd",pushSm:"pushSm",pushXl:"pushXl",pushXs:"pushXs",size:"size",sizeLg:"sizeLg",sizeMd:"sizeMd",sizeSm:"sizeSm",sizeXl:"sizeXl",sizeXs:"sizeXs"},ngContentSelectors:He,decls:1,vars:0,template:function(M,fe){1&M&&(d.NAR(),d.SdG(0))},encapsulation:2,changeDetection:0})),S);return H=(0,X.Cg)([Ce({inputs:["offset","offsetLg","offsetMd","offsetSm","offsetXl","offsetXs","pull","pullLg","pullMd","pullSm","pullXl","pullXs","push","pushLg","pushMd","pushSm","pushXl","pushXs","size","sizeLg","sizeMd","sizeSm","sizeXl","sizeXs"]})],H),H})(),Gt=(()=>{var S;let H=((0,g.A)(S=class{constructor(M,fe,qe){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=qe,M.detach(),this.el=fe.nativeElement,ae(this,this.el,["ionScrollStart","ionScroll","ionScrollEnd"])}},"\u0275fac",function(M){return new(M||S)(d.rXU(d.gRc),d.rXU(d.aKT),d.rXU(d.SKi))}),(0,g.A)(S,"\u0275cmp",d.VBU({type:S,selectors:[["ion-content"]],inputs:{color:"color",fixedSlotPlacement:"fixedSlotPlacement",forceOverscroll:"forceOverscroll",fullscreen:"fullscreen",scrollEvents:"scrollEvents",scrollX:"scrollX",scrollY:"scrollY"},ngContentSelectors:He,decls:1,vars:0,template:function(M,fe){1&M&&(d.NAR(),d.SdG(0))},encapsulation:2,changeDetection:0})),S);return H=(0,X.Cg)([Ce({inputs:["color","fixedSlotPlacement","forceOverscroll","fullscreen","scrollEvents","scrollX","scrollY"],methods:["getScrollElement","scrollToTop","scrollToBottom","scrollByPoint","scrollToPoint"]})],H),H})(),ni=(()=>{var S;let H=((0,g.A)(S=class{constructor(M,fe,qe){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=qe,M.detach(),this.el=fe.nativeElement}},"\u0275fac",function(M){return new(M||S)(d.rXU(d.gRc),d.rXU(d.aKT),d.rXU(d.SKi))}),(0,g.A)(S,"\u0275cmp",d.VBU({type:S,selectors:[["ion-grid"]],inputs:{fixed:"fixed"},ngContentSelectors:He,decls:1,vars:0,template:function(M,fe){1&M&&(d.NAR(),d.SdG(0))},encapsulation:2,changeDetection:0})),S);return H=(0,X.Cg)([Ce({inputs:["fixed"]})],H),H})(),Zn=(()=>{var S;let H=((0,g.A)(S=class{constructor(M,fe,qe){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=qe,M.detach(),this.el=fe.nativeElement}},"\u0275fac",function(M){return new(M||S)(d.rXU(d.gRc),d.rXU(d.aKT),d.rXU(d.SKi))}),(0,g.A)(S,"\u0275cmp",d.VBU({type:S,selectors:[["ion-header"]],inputs:{collapse:"collapse",mode:"mode",translucent:"translucent"},ngContentSelectors:He,decls:1,vars:0,template:function(M,fe){1&M&&(d.NAR(),d.SdG(0))},encapsulation:2,changeDetection:0})),S);return H=(0,X.Cg)([Ce({inputs:["collapse","mode","translucent"]})],H),H})(),wn=(()=>{var S;let H=((0,g.A)(S=class{constructor(M,fe,qe){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=qe,M.detach(),this.el=fe.nativeElement}},"\u0275fac",function(M){return new(M||S)(d.rXU(d.gRc),d.rXU(d.aKT),d.rXU(d.SKi))}),(0,g.A)(S,"\u0275cmp",d.VBU({type:S,selectors:[["ion-icon"]],inputs:{color:"color",flipRtl:"flipRtl",icon:"icon",ios:"ios",lazy:"lazy",md:"md",mode:"mode",name:"name",sanitize:"sanitize",size:"size",src:"src"},ngContentSelectors:He,decls:1,vars:0,template:function(M,fe){1&M&&(d.NAR(),d.SdG(0))},encapsulation:2,changeDetection:0})),S);return H=(0,X.Cg)([Ce({inputs:["color","flipRtl","icon","ios","lazy","md","mode","name","sanitize","size","src"]})],H),H})(),Mi=(()=>{var S;let H=((0,g.A)(S=class{constructor(M,fe,qe){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=qe,M.detach(),this.el=fe.nativeElement,ae(this,this.el,["ionInput","ionChange","ionBlur","ionFocus"])}},"\u0275fac",function(M){return new(M||S)(d.rXU(d.gRc),d.rXU(d.aKT),d.rXU(d.SKi))}),(0,g.A)(S,"\u0275cmp",d.VBU({type:S,selectors:[["ion-input"]],inputs:{autocapitalize:"autocapitalize",autocomplete:"autocomplete",autocorrect:"autocorrect",autofocus:"autofocus",clearInput:"clearInput",clearInputIcon:"clearInputIcon",clearOnEdit:"clearOnEdit",color:"color",counter:"counter",counterFormatter:"counterFormatter",debounce:"debounce",disabled:"disabled",enterkeyhint:"enterkeyhint",errorText:"errorText",fill:"fill",helperText:"helperText",inputmode:"inputmode",label:"label",labelPlacement:"labelPlacement",max:"max",maxlength:"maxlength",min:"min",minlength:"minlength",mode:"mode",multiple:"multiple",name:"name",pattern:"pattern",placeholder:"placeholder",readonly:"readonly",required:"required",shape:"shape",spellcheck:"spellcheck",step:"step",type:"type",value:"value"},ngContentSelectors:He,decls:1,vars:0,template:function(M,fe){1&M&&(d.NAR(),d.SdG(0))},encapsulation:2,changeDetection:0})),S);return H=(0,X.Cg)([Ce({inputs:["autocapitalize","autocomplete","autocorrect","autofocus","clearInput","clearInputIcon","clearOnEdit","color","counter","counterFormatter","debounce","disabled","enterkeyhint","errorText","fill","helperText","inputmode","label","labelPlacement","max","maxlength","min","minlength","mode","multiple","name","pattern","placeholder","readonly","required","shape","spellcheck","step","type","value"],methods:["setFocus","getInputElement"]})],H),H})(),Yr=(()=>{var S;let H=((0,g.A)(S=class{constructor(M,fe,qe){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=qe,M.detach(),this.el=fe.nativeElement}},"\u0275fac",function(M){return new(M||S)(d.rXU(d.gRc),d.rXU(d.aKT),d.rXU(d.SKi))}),(0,g.A)(S,"\u0275cmp",d.VBU({type:S,selectors:[["ion-item"]],inputs:{button:"button",color:"color",detail:"detail",detailIcon:"detailIcon",disabled:"disabled",download:"download",href:"href",lines:"lines",mode:"mode",rel:"rel",routerAnimation:"routerAnimation",routerDirection:"routerDirection",target:"target",type:"type"},ngContentSelectors:He,decls:1,vars:0,template:function(M,fe){1&M&&(d.NAR(),d.SdG(0))},encapsulation:2,changeDetection:0})),S);return H=(0,X.Cg)([Ce({inputs:["button","color","detail","detailIcon","disabled","download","href","lines","mode","rel","routerAnimation","routerDirection","target","type"]})],H),H})(),he=(()=>{var S;let H=((0,g.A)(S=class{constructor(M,fe,qe){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=qe,M.detach(),this.el=fe.nativeElement}},"\u0275fac",function(M){return new(M||S)(d.rXU(d.gRc),d.rXU(d.aKT),d.rXU(d.SKi))}),(0,g.A)(S,"\u0275cmp",d.VBU({type:S,selectors:[["ion-label"]],inputs:{color:"color",mode:"mode",position:"position"},ngContentSelectors:He,decls:1,vars:0,template:function(M,fe){1&M&&(d.NAR(),d.SdG(0))},encapsulation:2,changeDetection:0})),S);return H=(0,X.Cg)([Ce({inputs:["color","mode","position"]})],H),H})(),Pe=(()=>{var S;let H=((0,g.A)(S=class{constructor(M,fe,qe){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=qe,M.detach(),this.el=fe.nativeElement}},"\u0275fac",function(M){return new(M||S)(d.rXU(d.gRc),d.rXU(d.aKT),d.rXU(d.SKi))}),(0,g.A)(S,"\u0275cmp",d.VBU({type:S,selectors:[["ion-list"]],inputs:{inset:"inset",lines:"lines",mode:"mode"},ngContentSelectors:He,decls:1,vars:0,template:function(M,fe){1&M&&(d.NAR(),d.SdG(0))},encapsulation:2,changeDetection:0})),S);return H=(0,X.Cg)([Ce({inputs:["inset","lines","mode"],methods:["closeSlidingItems"]})],H),H})(),dn=(()=>{var S;let H=((0,g.A)(S=class{constructor(M,fe,qe){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=qe,M.detach(),this.el=fe.nativeElement,ae(this,this.el,["ionWillOpen","ionWillClose","ionDidOpen","ionDidClose"])}},"\u0275fac",function(M){return new(M||S)(d.rXU(d.gRc),d.rXU(d.aKT),d.rXU(d.SKi))}),(0,g.A)(S,"\u0275cmp",d.VBU({type:S,selectors:[["ion-menu"]],inputs:{contentId:"contentId",disabled:"disabled",maxEdgeStart:"maxEdgeStart",menuId:"menuId",side:"side",swipeGesture:"swipeGesture",type:"type"},ngContentSelectors:He,decls:1,vars:0,template:function(M,fe){1&M&&(d.NAR(),d.SdG(0))},encapsulation:2,changeDetection:0})),S);return H=(0,X.Cg)([Ce({inputs:["contentId","disabled","maxEdgeStart","menuId","side","swipeGesture","type"],methods:["isOpen","isActive","open","close","toggle","setOpen"]})],H),H})(),Sn=(()=>{var S;let H=((0,g.A)(S=class{constructor(M,fe,qe){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=qe,M.detach(),this.el=fe.nativeElement}},"\u0275fac",function(M){return new(M||S)(d.rXU(d.gRc),d.rXU(d.aKT),d.rXU(d.SKi))}),(0,g.A)(S,"\u0275cmp",d.VBU({type:S,selectors:[["ion-menu-button"]],inputs:{autoHide:"autoHide",color:"color",disabled:"disabled",menu:"menu",mode:"mode",type:"type"},ngContentSelectors:He,decls:1,vars:0,template:function(M,fe){1&M&&(d.NAR(),d.SdG(0))},encapsulation:2,changeDetection:0})),S);return H=(0,X.Cg)([Ce({inputs:["autoHide","color","disabled","menu","mode","type"]})],H),H})(),Wn=(()=>{var S;let H=((0,g.A)(S=class{constructor(M,fe,qe){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=qe,M.detach(),this.el=fe.nativeElement}},"\u0275fac",function(M){return new(M||S)(d.rXU(d.gRc),d.rXU(d.aKT),d.rXU(d.SKi))}),(0,g.A)(S,"\u0275cmp",d.VBU({type:S,selectors:[["ion-menu-toggle"]],inputs:{autoHide:"autoHide",menu:"menu"},ngContentSelectors:He,decls:1,vars:0,template:function(M,fe){1&M&&(d.NAR(),d.SdG(0))},encapsulation:2,changeDetection:0})),S);return H=(0,X.Cg)([Ce({inputs:["autoHide","menu"]})],H),H})(),lt=(()=>{var S;let H=((0,g.A)(S=class{constructor(M,fe,qe){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=qe,M.detach(),this.el=fe.nativeElement}},"\u0275fac",function(M){return new(M||S)(d.rXU(d.gRc),d.rXU(d.aKT),d.rXU(d.SKi))}),(0,g.A)(S,"\u0275cmp",d.VBU({type:S,selectors:[["ion-row"]],ngContentSelectors:He,decls:1,vars:0,template:function(M,fe){1&M&&(d.NAR(),d.SdG(0))},encapsulation:2,changeDetection:0})),S);return H=(0,X.Cg)([Ce({})],H),H})(),Se=(()=>{var S;let H=((0,g.A)(S=class{constructor(M,fe,qe){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=qe,M.detach(),this.el=fe.nativeElement,ae(this,this.el,["ionSplitPaneVisible"])}},"\u0275fac",function(M){return new(M||S)(d.rXU(d.gRc),d.rXU(d.aKT),d.rXU(d.SKi))}),(0,g.A)(S,"\u0275cmp",d.VBU({type:S,selectors:[["ion-split-pane"]],inputs:{contentId:"contentId",disabled:"disabled",when:"when"},ngContentSelectors:He,decls:1,vars:0,template:function(M,fe){1&M&&(d.NAR(),d.SdG(0))},encapsulation:2,changeDetection:0})),S);return H=(0,X.Cg)([Ce({inputs:["contentId","disabled","when"]})],H),H})(),Hn=(()=>{var S;let H=((0,g.A)(S=class{constructor(M,fe,qe){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=qe,M.detach(),this.el=fe.nativeElement}},"\u0275fac",function(M){return new(M||S)(d.rXU(d.gRc),d.rXU(d.aKT),d.rXU(d.SKi))}),(0,g.A)(S,"\u0275cmp",d.VBU({type:S,selectors:[["ion-title"]],inputs:{color:"color",size:"size"},ngContentSelectors:He,decls:1,vars:0,template:function(M,fe){1&M&&(d.NAR(),d.SdG(0))},encapsulation:2,changeDetection:0})),S);return H=(0,X.Cg)([Ce({inputs:["color","size"]})],H),H})(),Pi=(()=>{var S;let H=((0,g.A)(S=class{constructor(M,fe,qe){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=qe,M.detach(),this.el=fe.nativeElement}},"\u0275fac",function(M){return new(M||S)(d.rXU(d.gRc),d.rXU(d.aKT),d.rXU(d.SKi))}),(0,g.A)(S,"\u0275cmp",d.VBU({type:S,selectors:[["ion-toolbar"]],inputs:{color:"color",mode:"mode"},ngContentSelectors:He,decls:1,vars:0,template:function(M,fe){1&M&&(d.NAR(),d.SdG(0))},encapsulation:2,changeDetection:0})),S);return H=(0,X.Cg)([Ce({inputs:["color","mode"]})],H),H})(),xr=(()=>{var S;class H extends Oe.Rg{constructor(M,fe,qe,sr,ui,U,ne,Ae){super(M,fe,qe,sr,ui,U,ne,Ae),(0,g.A)(this,"parentOutlet",void 0),(0,g.A)(this,"outletContent",void 0),this.parentOutlet=Ae}}return S=H,(0,g.A)(H,"\u0275fac",function(M){return new(M||S)(d.kS0("name"),d.kS0("tabs"),d.rXU(re.aZ),d.rXU(d.aKT),d.rXU(Ze.Ix),d.rXU(d.SKi),d.rXU(Ze.nX),d.rXU(S,12))}),(0,g.A)(H,"\u0275cmp",d.VBU({type:S,selectors:[["ion-router-outlet"]],viewQuery:function(M,fe){if(1&M&&d.GBs(Tt,7,d.c1b),2&M){let qe;d.mGM(qe=d.lsd())&&(fe.outletContent=qe.first)}},features:[d.Vt3],ngContentSelectors:He,decls:3,vars:0,consts:[["outletContent",""]],template:function(M,fe){1&M&&(d.NAR(),d.qex(0,null,0),d.SdG(2),d.bVm())},encapsulation:2})),H})(),Si=(()=>{var S;class H extends Oe.CE{}return S=H,(0,g.A)(H,"\u0275fac",(()=>{let ue;return function(fe){return(ue||(ue=d.xGo(S)))(fe||S)}})()),(0,g.A)(H,"\u0275dir",d.FsC({type:S,selectors:[["","routerLink","",5,"a",5,"area"]],features:[d.Vt3]})),H})(),ti=(()=>{var S;class H extends Oe.pF{}return S=H,(0,g.A)(H,"\u0275fac",(()=>{let ue;return function(fe){return(ue||(ue=d.xGo(S)))(fe||S)}})()),(0,g.A)(H,"\u0275dir",d.FsC({type:S,selectors:[["a","routerLink",""],["area","routerLink",""]],features:[d.Vt3]})),H})();const Nn={provide:ge.cz,useExisting:(0,d.Rfq)(()=>kn),multi:!0};let kn=(()=>{var S;class H extends ge.zX{}return S=H,(0,g.A)(H,"\u0275fac",(()=>{let ue;return function(fe){return(ue||(ue=d.xGo(S)))(fe||S)}})()),(0,g.A)(H,"\u0275dir",d.FsC({type:S,selectors:[["ion-input","type","number","max","","formControlName",""],["ion-input","type","number","max","","formControl",""],["ion-input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(M,fe){2&M&&d.BMQ("max",fe._enabled?fe.max:null)},features:[d.Jv_([Nn]),d.Vt3]})),H})();const ko={provide:ge.cz,useExisting:(0,d.Rfq)(()=>ei),multi:!0};let ei=(()=>{var S;class H extends ge.VZ{}return S=H,(0,g.A)(H,"\u0275fac",(()=>{let ue;return function(fe){return(ue||(ue=d.xGo(S)))(fe||S)}})()),(0,g.A)(H,"\u0275dir",d.FsC({type:S,selectors:[["ion-input","type","number","min","","formControlName",""],["ion-input","type","number","min","","formControl",""],["ion-input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(M,fe){2&M&&d.BMQ("min",fe._enabled?fe.min:null)},features:[d.Jv_([ko]),d.Vt3]})),H})(),Bi=(()=>{var S;class H extends Oe.Kb{constructor(){super(ut.a)}}return S=H,(0,g.A)(H,"\u0275fac",function(M){return new(M||S)}),(0,g.A)(H,"\u0275prov",d.jDH({token:S,factory:S.\u0275fac,providedIn:"root"})),H})(),or=(()=>{var S;class H extends Oe.Kb{constructor(){super(ut.l)}}return S=H,(0,g.A)(H,"\u0275fac",function(M){return new(M||S)}),(0,g.A)(H,"\u0275prov",d.jDH({token:S,factory:S.\u0275fac,providedIn:"root"})),H})(),Or=(()=>{var S;class H extends Oe._t{constructor(){super(ft.m)}}return S=H,(0,g.A)(H,"\u0275fac",function(M){return new(M||S)}),(0,g.A)(H,"\u0275prov",d.jDH({token:S,factory:S.\u0275fac,providedIn:"root"})),H})(),ai=(()=>{var S;class H extends Oe.Kb{constructor(){super(ut.m),(0,g.A)(this,"angularDelegate",(0,d.WQX)(Oe.Yq)),(0,g.A)(this,"injector",(0,d.WQX)(d.zZn)),(0,g.A)(this,"environmentInjector",(0,d.WQX)(d.uvJ))}create(M){return super.create({...M,delegate:this.angularDelegate.create(this.environmentInjector,this.injector,"modal")})}}return S=H,(0,g.A)(H,"\u0275fac",function(M){return new(M||S)}),(0,g.A)(H,"\u0275prov",d.jDH({token:S,factory:S.\u0275fac})),H})();class Fo extends Oe.Kb{constructor(){super(ut.c),(0,g.A)(this,"angularDelegate",(0,d.WQX)(Oe.Yq)),(0,g.A)(this,"injector",(0,d.WQX)(d.zZn)),(0,g.A)(this,"environmentInjector",(0,d.WQX)(d.uvJ))}create(H){return super.create({...H,delegate:this.angularDelegate.create(this.environmentInjector,this.injector,"popover")})}}const Co=(S,H,ue)=>()=>{const M=H.defaultView;if(M&&typeof window<"u"){(0,Qe.s)({...S,_zoneGate:qe=>ue.run(qe)});const fe="__zone_symbol__addEventListener"in H.body?"__zone_symbol__addEventListener":"addEventListener";return function je(){var S=[];if(typeof window<"u"){var H=window;(!H.customElements||H.Element&&(!H.Element.prototype.closest||!H.Element.prototype.matches||!H.Element.prototype.remove||!H.Element.prototype.getRootNode))&&S.push(j.e(7278).then(j.t.bind(j,2190,23))),("function"!=typeof Object.assign||!Object.entries||!Array.prototype.find||!Array.prototype.includes||!String.prototype.startsWith||!String.prototype.endsWith||H.NodeList&&!H.NodeList.prototype.forEach||!H.fetch||!function(){try{var M=new URL("b","http://a");return M.pathname="c%20d","http://a/c%20d"===M.href&&M.searchParams}catch{return!1}}()||typeof WeakMap>"u")&&S.push(j.e(9329).then(j.t.bind(j,7783,23)))}return Promise.all(S)}().then(()=>Ot(M,{exclude:["ion-tabs","ion-tab"],syncQueue:!0,raf:Oe.er,jmp:qe=>ue.runOutsideAngular(qe),ael(qe,sr,ui,U){qe[fe](sr,ui,U)},rel(qe,sr,ui,U){qe.removeEventListener(sr,ui,U)}}))}};let Ni=(()=>{var S;class H{static forRoot(M={}){return{ngModule:H,providers:[{provide:Oe.sR,useValue:M},{provide:d.hnV,useFactory:Co,multi:!0,deps:[Oe.sR,re.qQ,d.SKi]},Oe.Yq,(0,Oe.YV)()]}}}return S=H,(0,g.A)(H,"\u0275fac",function(M){return new(M||S)}),(0,g.A)(H,"\u0275mod",d.$C({type:S})),(0,g.A)(H,"\u0275inj",d.G2t({providers:[ai,Fo],imports:[re.MD]})),H})()},2214:(En,bt,j)=>{"use strict";j.d(bt,{Dk:()=>g.Dk,KO:()=>g.KO,Sx:()=>g.Sx,Wp:()=>g.Wp});var g=j(7852);(0,g.KO)("firebase","10.12.2","app")},467:(En,bt,j)=>{"use strict";function g(ge,Oe,X,Ie,re,Ze,Je){try{var De=ge[Ze](Je),_e=De.value}catch(Fe){return void X(Fe)}De.done?Oe(_e):Promise.resolve(_e).then(Ie,re)}function d(ge){return function(){var Oe=this,X=arguments;return new Promise(function(Ie,re){var Ze=ge.apply(Oe,X);function Je(_e){g(Ze,Ie,re,Je,De,"next",_e)}function De(_e){g(Ze,Ie,re,Je,De,"throw",_e)}Je(void 0)})}}j.d(bt,{A:()=>d})},9842:(En,bt,j)=>{"use strict";function g(X){return(g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(Ie){return typeof Ie}:function(Ie){return Ie&&"function"==typeof Symbol&&Ie.constructor===Symbol&&Ie!==Symbol.prototype?"symbol":typeof Ie})(X)}function Oe(X,Ie,re){return(Ie=function ge(X){var Ie=function d(X,Ie){if("object"!=g(X)||!X)return X;var re=X[Symbol.toPrimitive];if(void 0!==re){var Ze=re.call(X,Ie||"default");if("object"!=g(Ze))return Ze;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===Ie?String:Number)(X)}(X,"string");return"symbol"==g(Ie)?Ie:String(Ie)}(Ie))in X?Object.defineProperty(X,Ie,{value:re,enumerable:!0,configurable:!0,writable:!0}):X[Ie]=re,X}j.d(bt,{A:()=>Oe})},1635:(En,bt,j)=>{"use strict";function Oe(B,W){var te={};for(var de in B)Object.prototype.hasOwnProperty.call(B,de)&&W.indexOf(de)<0&&(te[de]=B[de]);if(null!=B&&"function"==typeof Object.getOwnPropertySymbols){var ae=0;for(de=Object.getOwnPropertySymbols(B);ae=0;at--)(Ce=B[at])&&(me=(ae<3?Ce(me):ae>3?Ce(W,te,me):Ce(W,te))||me);return ae>3&&me&&Object.defineProperty(W,te,me),me}function Fe(B,W,te,de){return new(te||(te=Promise))(function(me,Ce){function at(vn){try{Bt(de.next(vn))}catch(bn){Ce(bn)}}function kt(vn){try{Bt(de.throw(vn))}catch(bn){Ce(bn)}}function Bt(vn){vn.done?me(vn.value):function ae(me){return me instanceof te?me:new te(function(Ce){Ce(me)})}(vn.value).then(at,kt)}Bt((de=de.apply(B,W||[])).next())})}function vt(B){return this instanceof vt?(this.v=B,this):new vt(B)}function Me(B,W,te){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var ae,de=te.apply(B,W||[]),me=[];return ae={},Ce("next"),Ce("throw"),Ce("return"),ae[Symbol.asyncIterator]=function(){return this},ae;function Ce($n){de[$n]&&(ae[$n]=function(qn){return new Promise(function(er,yn){me.push([$n,qn,er,yn])>1||at($n,qn)})})}function at($n,qn){try{!function kt($n){$n.value instanceof vt?Promise.resolve($n.value.v).then(Bt,vn):bn(me[0][2],$n)}(de[$n](qn))}catch(er){bn(me[0][3],er)}}function Bt($n){at("next",$n)}function vn($n){at("throw",$n)}function bn($n,qn){$n(qn),me.shift(),me.length&&at(me[0][0],me[0][1])}}function Ke(B){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var te,W=B[Symbol.asyncIterator];return W?W.call(B):(B=function ft(B){var W="function"==typeof Symbol&&Symbol.iterator,te=W&&B[W],de=0;if(te)return te.call(B);if(B&&"number"==typeof B.length)return{next:function(){return B&&de>=B.length&&(B=void 0),{value:B&&B[de++],done:!B}}};throw new TypeError(W?"Object is not iterable.":"Symbol.iterator is not defined.")}(B),te={},de("next"),de("throw"),de("return"),te[Symbol.asyncIterator]=function(){return this},te);function de(me){te[me]=B[me]&&function(Ce){return new Promise(function(at,kt){!function ae(me,Ce,at,kt){Promise.resolve(kt).then(function(Bt){me({value:Bt,done:at})},Ce)}(at,kt,(Ce=B[me](Ce)).done,Ce.value)})}}}j.d(bt,{AQ:()=>Me,Cg:()=>X,N3:()=>vt,Tt:()=>Oe,sH:()=>Fe,xN:()=>Ke}),"function"==typeof SuppressedError&&SuppressedError}},En=>{En(En.s=63)}]); \ No newline at end of file diff --git a/www/runtime.5c6cf64da62ae198.js b/www/runtime.5c6cf64da62ae198.js new file mode 100644 index 0000000..2ea8e86 --- /dev/null +++ b/www/runtime.5c6cf64da62ae198.js @@ -0,0 +1 @@ +(()=>{"use strict";var e,v={},g={};function f(e){var r=g[e];if(void 0!==r)return r.exports;var a=g[e]={exports:{}};return v[e](a,a.exports,f),a.exports}f.m=v,e=[],f.O=(r,a,d,n)=>{if(!a){var t=1/0;for(c=0;c=n)&&Object.keys(f.O).every(p=>f.O[p](a[b]))?a.splice(b--,1):(l=!1,n0&&e[c-1][2]>n;c--)e[c]=e[c-1];e[c]=[a,d,n]},f.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return f.d(r,{a:r}),r},(()=>{var r,e=Object.getPrototypeOf?a=>Object.getPrototypeOf(a):a=>a.__proto__;f.t=function(a,d){if(1&d&&(a=this(a)),8&d||"object"==typeof a&&a&&(4&d&&a.__esModule||16&d&&"function"==typeof a.then))return a;var n=Object.create(null);f.r(n);var c={};r=r||[null,e({}),e([]),e(e)];for(var t=2&d&&a;"object"==typeof t&&!~r.indexOf(t);t=e(t))Object.getOwnPropertyNames(t).forEach(l=>c[l]=()=>a[l]);return c.default=()=>a,f.d(n,c),n}})(),f.d=(e,r)=>{for(var a in r)f.o(r,a)&&!f.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:r[a]})},f.f={},f.e=e=>Promise.all(Object.keys(f.f).reduce((r,a)=>(f.f[a](e,r),r),[])),f.u=e=>(({2076:"common",7278:"polyfills-dom",9329:"polyfills-core-js"}[e]||e)+"."+{441:"c8d135e5d56e5723",964:"466b88054b5c618c",1049:"7ef232095c56e4df",1102:"010dfe13f6ca7e15",1293:"ee80f2d33790618d",1459:"32c41a59c0fd4cf1",1577:"f6f558490ff910b3",2075:"1971ba880d06cc30",2076:"f315cb4ccd9356c1",2144:"5d46fa3641b801f2",2348:"12b471577685ffbe",2375:"efb0d99d1467ed67",2415:"dddee43f1c9b92e7",2560:"f34ba2c5e85b55c8",2885:"d64fa10bd441cbc8",3162:"825364e1635b086f",3506:"899dcc5e5d913023",3511:"16739e7034875331",3814:"4f667f072e44b4e7",3825:"4d3ee377b3ffc7dd",4171:"f5bc55c1acb0f5c1",4183:"0d54a4cc8cbc3a61",4406:"03b087c2d77cb960",4463:"ce74c63a27a7a872",4591:"7a48c0cf9464e62b",4699:"01733b3942afbe92",4867:"17817bc208c2836c",5075:"1962af4f40e84068",5100:"659224ed1f94442c",5197:"cfc60de4c5213fec",5222:"9cbea5f62b0fb679",5712:"a9a2db8da6f1a8cd",5887:"708ea3877f30ffcd",5949:"2ed93c457aa1e9fb",6024:"3c02ab7fe82fedfe",6433:"26eeba8bb230b119",6521:"3c5b756783b6739a",6688:"a7b3b7014e68a27e",6840:"fd32dada9c8ec44e",7030:"f2a9bf080bedfc5b",7076:"2b7ea8b1f54f4458",7179:"80391eb100990080",7240:"680a87741a5535b1",7278:"bf542500b6fca113",7356:"911eacb1ce959b5e",7372:"4ea07cfe7eb821be",7428:"cb325b96b92ea4c2",7720:"78509b154c08b472",8066:"67e76a5c3f71f306",8193:"476b12959c4b189d",8314:"52348a57ed623e38",8361:"3d466d853997fbb0",8477:"15dacf21c512c8d4",8584:"94ca33677cedf961",8805:"7a687270c4acd743",8814:"4175e28b98837400",8970:"402b7daea47854b9",9013:"b8cefd92ba4e66d6",9329:"c76198334f717402",9344:"2d668603b6130b28",9977:"948bf38bed890db4"}[e]+".js"),f.miniCssF=e=>{},f.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),(()=>{var e={},r="app:";f.l=(a,d,n,c)=>{if(e[a])e[a].push(d);else{var t,l;if(void 0!==n)for(var b=document.getElementsByTagName("script"),i=0;i{t.onerror=t.onload=null,clearTimeout(s);var y=e[a];if(delete e[a],t.parentNode&&t.parentNode.removeChild(t),y&&y.forEach(_=>_(p)),m)return m(p)},s=setTimeout(u.bind(null,void 0,{type:"timeout",target:t}),12e4);t.onerror=u.bind(null,t.onerror),t.onload=u.bind(null,t.onload),l&&document.head.appendChild(t)}}})(),f.r=e=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;f.tt=()=>(void 0===e&&(e={createScriptURL:r=>r},typeof trustedTypes<"u"&&trustedTypes.createPolicy&&(e=trustedTypes.createPolicy("angular#bundler",e))),e)})(),f.tu=e=>f.tt().createScriptURL(e),f.p="",(()=>{var e={9121:0};f.f.j=(d,n)=>{var c=f.o(e,d)?e[d]:void 0;if(0!==c)if(c)n.push(c[2]);else if(9121!=d){var t=new Promise((o,u)=>c=e[d]=[o,u]);n.push(c[2]=t);var l=f.p+f.u(d),b=new Error;f.l(l,o=>{if(f.o(e,d)&&(0!==(c=e[d])&&(e[d]=void 0),c)){var u=o&&("load"===o.type?"missing":o.type),s=o&&o.target&&o.target.src;b.message="Loading chunk "+d+" failed.\n("+u+": "+s+")",b.name="ChunkLoadError",b.type=u,b.request=s,c[1](b)}},"chunk-"+d,d)}else e[d]=0},f.O.j=d=>0===e[d];var r=(d,n)=>{var b,i,[c,t,l]=n,o=0;if(c.some(s=>0!==e[s])){for(b in t)f.o(t,b)&&(f.m[b]=t[b]);if(l)var u=l(f)}for(d&&d(n);o{"use strict";var e,v={},g={};function t(e){var r=g[e];if(void 0!==r)return r.exports;var a=g[e]={exports:{}};return v[e](a,a.exports,t),a.exports}t.m=v,e=[],t.O=(r,a,c,n)=>{if(!a){var f=1/0;for(d=0;d=n)&&Object.keys(t.O).every(p=>t.O[p](a[b]))?a.splice(b--,1):(l=!1,n0&&e[d-1][2]>n;d--)e[d]=e[d-1];e[d]=[a,c,n]},t.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return t.d(r,{a:r}),r},(()=>{var r,e=Object.getPrototypeOf?a=>Object.getPrototypeOf(a):a=>a.__proto__;t.t=function(a,c){if(1&c&&(a=this(a)),8&c||"object"==typeof a&&a&&(4&c&&a.__esModule||16&c&&"function"==typeof a.then))return a;var n=Object.create(null);t.r(n);var d={};r=r||[null,e({}),e([]),e(e)];for(var f=2&c&&a;"object"==typeof f&&!~r.indexOf(f);f=e(f))Object.getOwnPropertyNames(f).forEach(l=>d[l]=()=>a[l]);return d.default=()=>a,t.d(n,d),n}})(),t.d=(e,r)=>{for(var a in r)t.o(r,a)&&!t.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:r[a]})},t.f={},t.e=e=>Promise.all(Object.keys(t.f).reduce((r,a)=>(t.f[a](e,r),r),[])),t.u=e=>(({2076:"common",7278:"polyfills-dom",9329:"polyfills-core-js"}[e]||e)+"."+{441:"c8d135e5d56e5723",964:"466b88054b5c618c",1049:"7ef232095c56e4df",1102:"010dfe13f6ca7e15",1293:"ee80f2d33790618d",1459:"32c41a59c0fd4cf1",1577:"f6f558490ff910b3",2075:"1971ba880d06cc30",2076:"f315cb4ccd9356c1",2144:"5d46fa3641b801f2",2348:"12b471577685ffbe",2375:"efb0d99d1467ed67",2415:"dddee43f1c9b92e7",2560:"f34ba2c5e85b55c8",2885:"d64fa10bd441cbc8",3162:"825364e1635b086f",3506:"899dcc5e5d913023",3511:"16739e7034875331",3814:"4f667f072e44b4e7",3825:"4d3ee377b3ffc7dd",4171:"f5bc55c1acb0f5c1",4183:"0d54a4cc8cbc3a61",4406:"03b087c2d77cb960",4463:"ce74c63a27a7a872",4591:"7a48c0cf9464e62b",4699:"01733b3942afbe92",4867:"17817bc208c2836c",5075:"69f1387a10a41fbb",5100:"659224ed1f94442c",5197:"cfc60de4c5213fec",5222:"9cbea5f62b0fb679",5712:"a9a2db8da6f1a8cd",5887:"708ea3877f30ffcd",5949:"2ed93c457aa1e9fb",6024:"3c02ab7fe82fedfe",6433:"26eeba8bb230b119",6521:"3c5b756783b6739a",6688:"a7b3b7014e68a27e",6840:"fd32dada9c8ec44e",7030:"f2a9bf080bedfc5b",7076:"2b7ea8b1f54f4458",7179:"80391eb100990080",7240:"680a87741a5535b1",7278:"bf542500b6fca113",7356:"911eacb1ce959b5e",7372:"4ea07cfe7eb821be",7428:"cb325b96b92ea4c2",7720:"78509b154c08b472",8066:"67e76a5c3f71f306",8193:"476b12959c4b189d",8314:"52348a57ed623e38",8361:"3d466d853997fbb0",8477:"15dacf21c512c8d4",8584:"94ca33677cedf961",8805:"7a687270c4acd743",8814:"4175e28b98837400",8970:"402b7daea47854b9",9013:"b8cefd92ba4e66d6",9329:"c76198334f717402",9344:"2d668603b6130b28",9977:"948bf38bed890db4"}[e]+".js"),t.miniCssF=e=>{},t.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),(()=>{var e={},r="app:";t.l=(a,c,n,d)=>{if(e[a])e[a].push(c);else{var f,l;if(void 0!==n)for(var b=document.getElementsByTagName("script"),i=0;i{f.onerror=f.onload=null,clearTimeout(s);var y=e[a];if(delete e[a],f.parentNode&&f.parentNode.removeChild(f),y&&y.forEach(_=>_(p)),m)return m(p)},s=setTimeout(u.bind(null,void 0,{type:"timeout",target:f}),12e4);f.onerror=u.bind(null,f.onerror),f.onload=u.bind(null,f.onload),l&&document.head.appendChild(f)}}})(),t.r=e=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;t.tt=()=>(void 0===e&&(e={createScriptURL:r=>r},typeof trustedTypes<"u"&&trustedTypes.createPolicy&&(e=trustedTypes.createPolicy("angular#bundler",e))),e)})(),t.tu=e=>t.tt().createScriptURL(e),t.p="",(()=>{var e={9121:0};t.f.j=(c,n)=>{var d=t.o(e,c)?e[c]:void 0;if(0!==d)if(d)n.push(d[2]);else if(9121!=c){var f=new Promise((o,u)=>d=e[c]=[o,u]);n.push(d[2]=f);var l=t.p+t.u(c),b=new Error;t.l(l,o=>{if(t.o(e,c)&&(0!==(d=e[c])&&(e[c]=void 0),d)){var u=o&&("load"===o.type?"missing":o.type),s=o&&o.target&&o.target.src;b.message="Loading chunk "+c+" failed.\n("+u+": "+s+")",b.name="ChunkLoadError",b.type=u,b.request=s,d[1](b)}},"chunk-"+c,c)}else e[c]=0},t.O.j=c=>0===e[c];var r=(c,n)=>{var b,i,[d,f,l]=n,o=0;if(d.some(s=>0!==e[s])){for(b in f)t.o(f,b)&&(t.m[b]=f[b]);if(l)var u=l(t)}for(c&&c(n);o.ion-page{position:relative;contain:layout style;height:100%}.split-pane-visible>.ion-page.split-pane-main{position:relative}ion-route,ion-route-redirect,ion-router,ion-select-option,ion-nav-controller,ion-menu-controller,ion-action-sheet-controller,ion-alert-controller,ion-loading-controller,ion-modal-controller,ion-picker-controller,ion-popover-controller,ion-toast-controller,.ion-page-hidden{display:none!important}.ion-page-invisible{opacity:0}.can-go-back>ion-header ion-back-button{display:block}html.plt-ios.plt-hybrid,html.plt-ios.plt-pwa{--ion-statusbar-padding: 20px}@supports (padding-top: 20px){html{--ion-safe-area-top: var(--ion-statusbar-padding)}}@supports (padding-top: env(safe-area-inset-top)){html{--ion-safe-area-top: env(safe-area-inset-top);--ion-safe-area-bottom: env(safe-area-inset-bottom);--ion-safe-area-left: env(safe-area-inset-left);--ion-safe-area-right: env(safe-area-inset-right)}}ion-card.ion-color .ion-inherit-color,ion-card-header.ion-color .ion-inherit-color{color:inherit}.menu-content{transform:translateZ(0)}.menu-content-open{cursor:pointer;touch-action:manipulation;pointer-events:none;overflow-y:hidden}.menu-content-open ion-content{--overflow: hidden}.menu-content-open .ion-content-scroll-host{overflow:hidden}.ios .menu-content-reveal{box-shadow:-8px 0 42px #00000014}[dir=rtl].ios .menu-content-reveal{box-shadow:8px 0 42px #00000014}.md .menu-content-reveal,.md .menu-content-push{box-shadow:4px 0 16px #0000002e}ion-accordion-group.accordion-group-expand-inset>ion-accordion:first-of-type{border-top-left-radius:8px;border-top-right-radius:8px}ion-accordion-group.accordion-group-expand-inset>ion-accordion:last-of-type{border-bottom-left-radius:8px;border-bottom-right-radius:8px}ion-accordion-group>ion-accordion:last-of-type ion-item[slot=header]{--border-width: 0px}ion-accordion.accordion-animated>[slot=header] .ion-accordion-toggle-icon{transition:.3s transform cubic-bezier(.25,.8,.5,1)}@media (prefers-reduced-motion: reduce){ion-accordion .ion-accordion-toggle-icon{transition:none!important}}ion-accordion.accordion-expanding>[slot=header] .ion-accordion-toggle-icon,ion-accordion.accordion-expanded>[slot=header] .ion-accordion-toggle-icon{transform:rotate(180deg)}ion-accordion-group.accordion-group-expand-inset.md>ion-accordion.accordion-previous ion-item[slot=header]{--border-width: 0px;--inner-border-width: 0px}ion-accordion-group.accordion-group-expand-inset.md>ion-accordion.accordion-expanding:first-of-type,ion-accordion-group.accordion-group-expand-inset.md>ion-accordion.accordion-expanded:first-of-type{margin-top:0}ion-input input::-webkit-date-and-time-value{text-align:start}.ion-datetime-button-overlay{--width: fit-content;--height: fit-content}.ion-datetime-button-overlay ion-datetime.datetime-grid{width:320px;min-height:320px}[ion-last-focus],header[tabindex="-1"]:focus,[role=banner][tabindex="-1"]:focus,main[tabindex="-1"]:focus,[role=main][tabindex="-1"]:focus,h1[tabindex="-1"]:focus,[role=heading][aria-level="1"][tabindex="-1"]:focus{outline:none}.popover-viewport:has(>ion-content){overflow:hidden}@supports not selector(:has(> ion-content)){.popover-viewport{overflow:hidden}}audio,canvas,progress,video{vertical-align:baseline}audio:not([controls]){display:none;height:0}b,strong{font-weight:700}img{max-width:100%}hr{height:1px;border-width:0;box-sizing:content-box}pre{overflow:auto}code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}label,input,select,textarea{font-family:inherit;line-height:normal}textarea{overflow:auto;height:auto;font:inherit;color:inherit}textarea::placeholder{padding-left:2px}form,input,optgroup,select{margin:0;font:inherit;color:inherit}html input[type=button],input[type=reset],input[type=submit]{cursor:pointer;-webkit-appearance:button}a,a div,a span,a ion-icon,a ion-label,button,button div,button span,button ion-icon,button ion-label,.ion-tappable,[tappable],[tappable] div,[tappable] span,[tappable] ion-icon,[tappable] ion-label,input,textarea{touch-action:manipulation}a ion-label,button ion-label{pointer-events:none}button{padding:0;border:0;border-radius:0;font-family:inherit;font-style:inherit;font-variant:inherit;line-height:1;text-transform:none;cursor:pointer;-webkit-appearance:button}[tappable]{cursor:pointer}a[disabled],button[disabled],html input[disabled]{cursor:default}button::-moz-focus-inner,input::-moz-focus-inner{padding:0;border:0}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{height:auto}input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration{-webkit-appearance:none}table{border-collapse:collapse;border-spacing:0}td,th{padding:0}*{box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-tap-highlight-color:transparent;-webkit-touch-callout:none}html{width:100%;height:100%;-webkit-text-size-adjust:100%;text-size-adjust:100%}html:not(.hydrated) body{display:none}html.ion-ce body{display:block}html.plt-pwa{height:100vh}body{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;margin:0;padding:0;position:fixed;width:100%;max-width:100%;height:100%;max-height:100%;transform:translateZ(0);text-rendering:optimizeLegibility;overflow:hidden;touch-action:manipulation;-webkit-user-drag:none;-ms-content-zooming:none;word-wrap:break-word;overscroll-behavior-y:none;-webkit-text-size-adjust:none;text-size-adjust:none}html{font-family:var(--ion-font-family)}@supports (-webkit-touch-callout: none){html{font:var(--ion-dynamic-font, 16px var(--ion-font-family))}}a{background-color:transparent;color:var(--ion-color-primary, #0054e9)}h1,h2,h3,h4,h5,h6{margin-top:16px;margin-bottom:10px;font-weight:500;line-height:1.2}h1{margin-top:20px;font-size:1.625rem}h2{margin-top:18px;font-size:1.5rem}h3{font-size:1.375rem}h4{font-size:1.25rem}h5{font-size:1.125rem}h6{font-size:1rem}small{font-size:75%}sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}.ion-hide,.ion-hide-up,.ion-hide-down{display:none!important}@media (min-width: 576px){.ion-hide-sm-up{display:none!important}}@media (max-width: 575.98px){.ion-hide-sm-down{display:none!important}}@media (min-width: 768px){.ion-hide-md-up{display:none!important}}@media (max-width: 767.98px){.ion-hide-md-down{display:none!important}}@media (min-width: 992px){.ion-hide-lg-up{display:none!important}}@media (max-width: 991.98px){.ion-hide-lg-down{display:none!important}}@media (min-width: 1200px){.ion-hide-xl-up{display:none!important}}@media (max-width: 1199.98px){.ion-hide-xl-down{display:none!important}}.ion-no-padding{--padding-start: 0;--padding-end: 0;--padding-top: 0;--padding-bottom: 0;padding:0}.ion-padding{--padding-start: var(--ion-padding, 16px);--padding-end: var(--ion-padding, 16px);--padding-top: var(--ion-padding, 16px);--padding-bottom: var(--ion-padding, 16px);padding-inline-start:var(--ion-padding, 16px);padding-inline-end:var(--ion-padding, 16px);padding-top:var(--ion-padding, 16px);padding-bottom:var(--ion-padding, 16px)}.ion-padding-top{--padding-top: var(--ion-padding, 16px);padding-top:var(--ion-padding, 16px)}.ion-padding-start{--padding-start: var(--ion-padding, 16px);padding-inline-start:var(--ion-padding, 16px)}.ion-padding-end{--padding-end: var(--ion-padding, 16px);padding-inline-end:var(--ion-padding, 16px)}.ion-padding-bottom{--padding-bottom: var(--ion-padding, 16px);padding-bottom:var(--ion-padding, 16px)}.ion-padding-vertical{--padding-top: var(--ion-padding, 16px);--padding-bottom: var(--ion-padding, 16px);padding-top:var(--ion-padding, 16px);padding-bottom:var(--ion-padding, 16px)}.ion-padding-horizontal{--padding-start: var(--ion-padding, 16px);--padding-end: var(--ion-padding, 16px);padding-inline-start:var(--ion-padding, 16px);padding-inline-end:var(--ion-padding, 16px)}.ion-no-margin{--margin-start: 0;--margin-end: 0;--margin-top: 0;--margin-bottom: 0;margin:0}.ion-margin{--margin-start: var(--ion-margin, 16px);--margin-end: var(--ion-margin, 16px);--margin-top: var(--ion-margin, 16px);--margin-bottom: var(--ion-margin, 16px);margin-inline-start:var(--ion-margin, 16px);margin-inline-end:var(--ion-margin, 16px);margin-top:var(--ion-margin, 16px);margin-bottom:var(--ion-margin, 16px)}.ion-margin-top{--margin-top: var(--ion-margin, 16px);margin-top:var(--ion-margin, 16px)}.ion-margin-start{--margin-start: var(--ion-margin, 16px);margin-inline-start:var(--ion-margin, 16px)}.ion-margin-end{--margin-end: var(--ion-margin, 16px);margin-inline-end:var(--ion-margin, 16px)}.ion-margin-bottom{--margin-bottom: var(--ion-margin, 16px);margin-bottom:var(--ion-margin, 16px)}.ion-margin-vertical{--margin-top: var(--ion-margin, 16px);--margin-bottom: var(--ion-margin, 16px);margin-top:var(--ion-margin, 16px);margin-bottom:var(--ion-margin, 16px)}.ion-margin-horizontal{--margin-start: var(--ion-margin, 16px);--margin-end: var(--ion-margin, 16px);margin-inline-start:var(--ion-margin, 16px);margin-inline-end:var(--ion-margin, 16px)}.ion-float-left{float:left!important}.ion-float-right{float:right!important}.ion-float-start{float:left!important}:host-context([dir=rtl]) .ion-float-start{float:right!important}[dir=rtl] .ion-float-start{float:right!important}@supports selector(:dir(rtl)){.ion-float-start:dir(rtl){float:right!important}}.ion-float-end{float:right!important}:host-context([dir=rtl]) .ion-float-end{float:left!important}[dir=rtl] .ion-float-end{float:left!important}@supports selector(:dir(rtl)){.ion-float-end:dir(rtl){float:left!important}}@media (min-width: 576px){.ion-float-sm-left{float:left!important}.ion-float-sm-right{float:right!important}.ion-float-sm-start{float:left!important}:host-context([dir=rtl]) .ion-float-sm-start{float:right!important}[dir=rtl] .ion-float-sm-start{float:right!important}@supports selector(:dir(rtl)){.ion-float-sm-start:dir(rtl){float:right!important}}.ion-float-sm-end{float:right!important}:host-context([dir=rtl]) .ion-float-sm-end{float:left!important}[dir=rtl] .ion-float-sm-end{float:left!important}@supports selector(:dir(rtl)){.ion-float-sm-end:dir(rtl){float:left!important}}}@media (min-width: 768px){.ion-float-md-left{float:left!important}.ion-float-md-right{float:right!important}.ion-float-md-start{float:left!important}:host-context([dir=rtl]) .ion-float-md-start{float:right!important}[dir=rtl] .ion-float-md-start{float:right!important}@supports selector(:dir(rtl)){.ion-float-md-start:dir(rtl){float:right!important}}.ion-float-md-end{float:right!important}:host-context([dir=rtl]) .ion-float-md-end{float:left!important}[dir=rtl] .ion-float-md-end{float:left!important}@supports selector(:dir(rtl)){.ion-float-md-end:dir(rtl){float:left!important}}}@media (min-width: 992px){.ion-float-lg-left{float:left!important}.ion-float-lg-right{float:right!important}.ion-float-lg-start{float:left!important}:host-context([dir=rtl]) .ion-float-lg-start{float:right!important}[dir=rtl] .ion-float-lg-start{float:right!important}@supports selector(:dir(rtl)){.ion-float-lg-start:dir(rtl){float:right!important}}.ion-float-lg-end{float:right!important}:host-context([dir=rtl]) .ion-float-lg-end{float:left!important}[dir=rtl] .ion-float-lg-end{float:left!important}@supports selector(:dir(rtl)){.ion-float-lg-end:dir(rtl){float:left!important}}}@media (min-width: 1200px){.ion-float-xl-left{float:left!important}.ion-float-xl-right{float:right!important}.ion-float-xl-start{float:left!important}:host-context([dir=rtl]) .ion-float-xl-start{float:right!important}[dir=rtl] .ion-float-xl-start{float:right!important}@supports selector(:dir(rtl)){.ion-float-xl-start:dir(rtl){float:right!important}}.ion-float-xl-end{float:right!important}:host-context([dir=rtl]) .ion-float-xl-end{float:left!important}[dir=rtl] .ion-float-xl-end{float:left!important}@supports selector(:dir(rtl)){.ion-float-xl-end:dir(rtl){float:left!important}}}.ion-text-center{text-align:center!important}.ion-text-justify{text-align:justify!important}.ion-text-start{text-align:start!important}.ion-text-end{text-align:end!important}.ion-text-left{text-align:left!important}.ion-text-right{text-align:right!important}.ion-text-nowrap{white-space:nowrap!important}.ion-text-wrap{white-space:normal!important}@media (min-width: 576px){.ion-text-sm-center{text-align:center!important}.ion-text-sm-justify{text-align:justify!important}.ion-text-sm-start{text-align:start!important}.ion-text-sm-end{text-align:end!important}.ion-text-sm-left{text-align:left!important}.ion-text-sm-right{text-align:right!important}.ion-text-sm-nowrap{white-space:nowrap!important}.ion-text-sm-wrap{white-space:normal!important}}@media (min-width: 768px){.ion-text-md-center{text-align:center!important}.ion-text-md-justify{text-align:justify!important}.ion-text-md-start{text-align:start!important}.ion-text-md-end{text-align:end!important}.ion-text-md-left{text-align:left!important}.ion-text-md-right{text-align:right!important}.ion-text-md-nowrap{white-space:nowrap!important}.ion-text-md-wrap{white-space:normal!important}}@media (min-width: 992px){.ion-text-lg-center{text-align:center!important}.ion-text-lg-justify{text-align:justify!important}.ion-text-lg-start{text-align:start!important}.ion-text-lg-end{text-align:end!important}.ion-text-lg-left{text-align:left!important}.ion-text-lg-right{text-align:right!important}.ion-text-lg-nowrap{white-space:nowrap!important}.ion-text-lg-wrap{white-space:normal!important}}@media (min-width: 1200px){.ion-text-xl-center{text-align:center!important}.ion-text-xl-justify{text-align:justify!important}.ion-text-xl-start{text-align:start!important}.ion-text-xl-end{text-align:end!important}.ion-text-xl-left{text-align:left!important}.ion-text-xl-right{text-align:right!important}.ion-text-xl-nowrap{white-space:nowrap!important}.ion-text-xl-wrap{white-space:normal!important}}.ion-text-uppercase{text-transform:uppercase!important}.ion-text-lowercase{text-transform:lowercase!important}.ion-text-capitalize{text-transform:capitalize!important}@media (min-width: 576px){.ion-text-sm-uppercase{text-transform:uppercase!important}.ion-text-sm-lowercase{text-transform:lowercase!important}.ion-text-sm-capitalize{text-transform:capitalize!important}}@media (min-width: 768px){.ion-text-md-uppercase{text-transform:uppercase!important}.ion-text-md-lowercase{text-transform:lowercase!important}.ion-text-md-capitalize{text-transform:capitalize!important}}@media (min-width: 992px){.ion-text-lg-uppercase{text-transform:uppercase!important}.ion-text-lg-lowercase{text-transform:lowercase!important}.ion-text-lg-capitalize{text-transform:capitalize!important}}@media (min-width: 1200px){.ion-text-xl-uppercase{text-transform:uppercase!important}.ion-text-xl-lowercase{text-transform:lowercase!important}.ion-text-xl-capitalize{text-transform:capitalize!important}}.ion-align-self-start{align-self:flex-start!important}.ion-align-self-end{align-self:flex-end!important}.ion-align-self-center{align-self:center!important}.ion-align-self-stretch{align-self:stretch!important}.ion-align-self-baseline{align-self:baseline!important}.ion-align-self-auto{align-self:auto!important}.ion-wrap{flex-wrap:wrap!important}.ion-nowrap{flex-wrap:nowrap!important}.ion-wrap-reverse{flex-wrap:wrap-reverse!important}.ion-justify-content-start{justify-content:flex-start!important}.ion-justify-content-center{justify-content:center!important}.ion-justify-content-end{justify-content:flex-end!important}.ion-justify-content-around{justify-content:space-around!important}.ion-justify-content-between{justify-content:space-between!important}.ion-justify-content-evenly{justify-content:space-evenly!important}.ion-align-items-start{align-items:flex-start!important}.ion-align-items-center{align-items:center!important}.ion-align-items-end{align-items:flex-end!important}.ion-align-items-stretch{align-items:stretch!important}.ion-align-items-baseline{align-items:baseline!important}:root{--ion-color-primary: #4d8dff;--ion-color-primary-rgb: 77, 141, 255;--ion-color-primary-contrast: #000;--ion-color-primary-contrast-rgb: 0, 0, 0;--ion-color-primary-shade: #447ce0;--ion-color-primary-tint: #5f98ff;--ion-color-secondary: #46b1ff;--ion-color-secondary-rgb: 70, 177, 255;--ion-color-secondary-contrast: #000;--ion-color-secondary-contrast-rgb: 0, 0, 0;--ion-color-secondary-shade: #3e9ce0;--ion-color-secondary-tint: #59b9ff;--ion-color-tertiary: #8482fb;--ion-color-tertiary-rgb: 132, 130, 251;--ion-color-tertiary-contrast: #000;--ion-color-tertiary-contrast-rgb: 0, 0, 0;--ion-color-tertiary-shade: #7472dd;--ion-color-tertiary-tint: #908ffb;--ion-color-success: #2dd55b;--ion-color-success-rgb: 45, 213, 91;--ion-color-success-contrast: #000;--ion-color-success-contrast-rgb: 0, 0, 0;--ion-color-success-shade: #28bb50;--ion-color-success-tint: #42d96b;--ion-color-warning: #ffce31;--ion-color-warning-rgb: 255, 206, 49;--ion-color-warning-contrast: #000;--ion-color-warning-contrast-rgb: 0, 0, 0;--ion-color-warning-shade: #e0b52b;--ion-color-warning-tint: #ffd346;--ion-color-danger: #f24c58;--ion-color-danger-rgb: 242, 76, 88;--ion-color-danger-contrast: #000;--ion-color-danger-contrast-rgb: 0, 0, 0;--ion-color-danger-shade: #d5434d;--ion-color-danger-tint: #f35e69;--ion-color-light: #222428;--ion-color-light-rgb: 34, 36, 40;--ion-color-light-contrast: #fff;--ion-color-light-contrast-rgb: 255, 255, 255;--ion-color-light-shade: #1e2023;--ion-color-light-tint: #383a3e;--ion-color-medium: #989aa2;--ion-color-medium-rgb: 152, 154, 162;--ion-color-medium-contrast: #000;--ion-color-medium-contrast-rgb: 0, 0, 0;--ion-color-medium-shade: #86888f;--ion-color-medium-tint: #a2a4ab;--ion-color-dark: #f4f5f8;--ion-color-dark-rgb: 244, 245, 248;--ion-color-dark-contrast: #000;--ion-color-dark-contrast-rgb: 0, 0, 0;--ion-color-dark-shade: #d7d8da;--ion-color-dark-tint: #f5f6f9}:root.ios{--ion-background-color: #000000;--ion-background-color-rgb: 0, 0, 0;--ion-text-color: #ffffff;--ion-text-color-rgb: 255, 255, 255;--ion-background-color-step-50: #0d0d0d;--ion-background-color-step-100: #1a1a1a;--ion-background-color-step-150: #262626;--ion-background-color-step-200: #333333;--ion-background-color-step-250: #404040;--ion-background-color-step-300: #4d4d4d;--ion-background-color-step-350: #595959;--ion-background-color-step-400: #666666;--ion-background-color-step-450: #737373;--ion-background-color-step-500: #808080;--ion-background-color-step-550: #8c8c8c;--ion-background-color-step-600: #999999;--ion-background-color-step-650: #a6a6a6;--ion-background-color-step-700: #b3b3b3;--ion-background-color-step-750: #bfbfbf;--ion-background-color-step-800: #cccccc;--ion-background-color-step-850: #d9d9d9;--ion-background-color-step-900: #e6e6e6;--ion-background-color-step-950: #f2f2f2;--ion-text-color-step-50: #f2f2f2;--ion-text-color-step-100: #e6e6e6;--ion-text-color-step-150: #d9d9d9;--ion-text-color-step-200: #cccccc;--ion-text-color-step-250: #bfbfbf;--ion-text-color-step-300: #b3b3b3;--ion-text-color-step-350: #a6a6a6;--ion-text-color-step-400: #999999;--ion-text-color-step-450: #8c8c8c;--ion-text-color-step-500: #808080;--ion-text-color-step-550: #737373;--ion-text-color-step-600: #666666;--ion-text-color-step-650: #595959;--ion-text-color-step-700: #4d4d4d;--ion-text-color-step-750: #404040;--ion-text-color-step-800: #333333;--ion-text-color-step-850: #262626;--ion-text-color-step-900: #1a1a1a;--ion-text-color-step-950: #0d0d0d;--ion-item-background: #000000;--ion-card-background: #1c1c1d}:root.ios ion-modal{--ion-background-color: var(--ion-color-step-100, var(--ion-background-color-step-100));--ion-toolbar-background: var(--ion-color-step-150, var(--ion-background-color-step-150));--ion-toolbar-border-color: var(--ion-color-step-250, var(--ion-background-color-step-250))}:root.md{--ion-background-color: #121212;--ion-background-color-rgb: 18, 18, 18;--ion-text-color: #ffffff;--ion-text-color-rgb: 255, 255, 255;--ion-background-color-step-50: #1e1e1e;--ion-background-color-step-100: #2a2a2a;--ion-background-color-step-150: #363636;--ion-background-color-step-200: #414141;--ion-background-color-step-250: #4d4d4d;--ion-background-color-step-300: #595959;--ion-background-color-step-350: #656565;--ion-background-color-step-400: #717171;--ion-background-color-step-450: #7d7d7d;--ion-background-color-step-500: #898989;--ion-background-color-step-550: #949494;--ion-background-color-step-600: #a0a0a0;--ion-background-color-step-650: #acacac;--ion-background-color-step-700: #b8b8b8;--ion-background-color-step-750: #c4c4c4;--ion-background-color-step-800: #d0d0d0;--ion-background-color-step-850: #dbdbdb;--ion-background-color-step-900: #e7e7e7;--ion-background-color-step-950: #f3f3f3;--ion-text-color-step-50: #f3f3f3;--ion-text-color-step-100: #e7e7e7;--ion-text-color-step-150: #dbdbdb;--ion-text-color-step-200: #d0d0d0;--ion-text-color-step-250: #c4c4c4;--ion-text-color-step-300: #b8b8b8;--ion-text-color-step-350: #acacac;--ion-text-color-step-400: #a0a0a0;--ion-text-color-step-450: #949494;--ion-text-color-step-500: #898989;--ion-text-color-step-550: #7d7d7d;--ion-text-color-step-600: #717171;--ion-text-color-step-650: #656565;--ion-text-color-step-700: #595959;--ion-text-color-step-750: #4d4d4d;--ion-text-color-step-800: #414141;--ion-text-color-step-850: #363636;--ion-text-color-step-900: #2a2a2a;--ion-text-color-step-950: #1e1e1e;--ion-item-background: #1e1e1e;--ion-toolbar-background: #1f1f1f;--ion-tab-bar-background: #1f1f1f;--ion-card-background: #1e1e1e}*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.collapse{visibility:collapse}.m-4{margin:1rem}.mb-6{margin-bottom:1.5rem}.flex{display:flex}.h-48{height:12rem}.h-full{height:100%}.min-w-96{min-width:24rem}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.rounded-2xl{border-radius:1rem}.bg-amber-200{--tw-bg-opacity: 1;background-color:rgb(253 230 138 / var(--tw-bg-opacity))}.bg-gray-800{--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}.p-10{padding:2.5rem}.text-6xl{font-size:3.75rem;line-height:1}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.text-blue-500{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}@media (min-width: 768px){.md\:h-full{height:100%}.md\:flex-row{flex-direction:row}.md\:justify-end{justify-content:flex-end}}@media (min-width: 1024px){.lg\:ml-2{margin-left:.5rem}.lg\:h-96{height:24rem}.lg\:h-full{height:100%}.lg\:min-w-20{min-width:5rem}.lg\:flex-row{flex-direction:row}.lg\:justify-center{justify-content:center}.lg\:p-32{padding:8rem}.lg\:text-lg{font-size:1.125rem;line-height:1.75rem}} +:root{--ion-color-primary: #0054e9;--ion-color-primary-rgb: 0, 84, 233;--ion-color-primary-contrast: #fff;--ion-color-primary-contrast-rgb: 255, 255, 255;--ion-color-primary-shade: #004acd;--ion-color-primary-tint: #1a65eb;--ion-color-secondary: #0163aa;--ion-color-secondary-rgb: 1, 99, 170;--ion-color-secondary-contrast: #fff;--ion-color-secondary-contrast-rgb: 255, 255, 255;--ion-color-secondary-shade: #015796;--ion-color-secondary-tint: #1a73b3;--ion-color-tertiary: #6030ff;--ion-color-tertiary-rgb: 96, 48, 255;--ion-color-tertiary-contrast: #fff;--ion-color-tertiary-contrast-rgb: 255, 255, 255;--ion-color-tertiary-shade: #542ae0;--ion-color-tertiary-tint: #7045ff;--ion-color-success: #2dd55b;--ion-color-success-rgb: 45, 213, 91;--ion-color-success-contrast: #000;--ion-color-success-contrast-rgb: 0, 0, 0;--ion-color-success-shade: #28bb50;--ion-color-success-tint: #42d96b;--ion-color-warning: #ffc409;--ion-color-warning-rgb: 255, 196, 9;--ion-color-warning-contrast: #000;--ion-color-warning-contrast-rgb: 0, 0, 0;--ion-color-warning-shade: #e0ac08;--ion-color-warning-tint: #ffca22;--ion-color-danger: #c5000f;--ion-color-danger-rgb: 197, 0, 15;--ion-color-danger-contrast: #fff;--ion-color-danger-contrast-rgb: 255, 255, 255;--ion-color-danger-shade: #ad000d;--ion-color-danger-tint: #cb1a27;--ion-color-light: #f4f5f8;--ion-color-light-rgb: 244, 245, 248;--ion-color-light-contrast: #000;--ion-color-light-contrast-rgb: 0, 0, 0;--ion-color-light-shade: #d7d8da;--ion-color-light-tint: #f5f6f9;--ion-color-medium: #636469;--ion-color-medium-rgb: 99, 100, 105;--ion-color-medium-contrast: #fff;--ion-color-medium-contrast-rgb: 255, 255, 255;--ion-color-medium-shade: #57585c;--ion-color-medium-tint: #737478;--ion-color-dark: #222428;--ion-color-dark-rgb: 34, 36, 40;--ion-color-dark-contrast: #fff;--ion-color-dark-contrast-rgb: 255, 255, 255;--ion-color-dark-shade: #1e2023;--ion-color-dark-tint: #383a3e}html.ios{--ion-default-font: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Roboto", sans-serif}html.md{--ion-default-font: "Roboto", "Helvetica Neue", sans-serif}html{--ion-dynamic-font: -apple-system-body;--ion-font-family: var(--ion-default-font)}body{background:var(--ion-background-color);color:var(--ion-text-color)}body.backdrop-no-scroll{overflow:hidden}html.ios ion-modal.modal-card ion-header ion-toolbar:first-of-type,html.ios ion-modal.modal-sheet ion-header ion-toolbar:first-of-type,html.ios ion-modal ion-footer ion-toolbar:first-of-type{padding-top:6px}html.ios ion-modal.modal-card ion-header ion-toolbar:last-of-type,html.ios ion-modal.modal-sheet ion-header ion-toolbar:last-of-type{padding-bottom:6px}html.ios ion-modal ion-toolbar{padding-right:calc(var(--ion-safe-area-right) + 8px);padding-left:calc(var(--ion-safe-area-left) + 8px)}@media screen and (min-width: 768px){html.ios ion-modal.modal-card:first-of-type{--backdrop-opacity: .18}}ion-modal.modal-default.show-modal~ion-modal.modal-default{--backdrop-opacity: 0;--box-shadow: none}html.ios ion-modal.modal-card .ion-page{border-top-left-radius:var(--border-radius)}.ion-color-primary{--ion-color-base: var(--ion-color-primary, #0054e9) !important;--ion-color-base-rgb: var(--ion-color-primary-rgb, 0, 84, 233) !important;--ion-color-contrast: var(--ion-color-primary-contrast, #fff) !important;--ion-color-contrast-rgb: var(--ion-color-primary-contrast-rgb, 255, 255, 255) !important;--ion-color-shade: var(--ion-color-primary-shade, #004acd) !important;--ion-color-tint: var(--ion-color-primary-tint, #1a65eb) !important}.ion-color-secondary{--ion-color-base: var(--ion-color-secondary, #0163aa) !important;--ion-color-base-rgb: var(--ion-color-secondary-rgb, 1, 99, 170) !important;--ion-color-contrast: var(--ion-color-secondary-contrast, #fff) !important;--ion-color-contrast-rgb: var(--ion-color-secondary-contrast-rgb, 255, 255, 255) !important;--ion-color-shade: var(--ion-color-secondary-shade, #015796) !important;--ion-color-tint: var(--ion-color-secondary-tint, #1a73b3) !important}.ion-color-tertiary{--ion-color-base: var(--ion-color-tertiary, #6030ff) !important;--ion-color-base-rgb: var(--ion-color-tertiary-rgb, 96, 48, 255) !important;--ion-color-contrast: var(--ion-color-tertiary-contrast, #fff) !important;--ion-color-contrast-rgb: var(--ion-color-tertiary-contrast-rgb, 255, 255, 255) !important;--ion-color-shade: var(--ion-color-tertiary-shade, #542ae0) !important;--ion-color-tint: var(--ion-color-tertiary-tint, #7045ff) !important}.ion-color-success{--ion-color-base: var(--ion-color-success, #2dd55b) !important;--ion-color-base-rgb: var(--ion-color-success-rgb, 45, 213, 91) !important;--ion-color-contrast: var(--ion-color-success-contrast, #000) !important;--ion-color-contrast-rgb: var(--ion-color-success-contrast-rgb, 0, 0, 0) !important;--ion-color-shade: var(--ion-color-success-shade, #28bb50) !important;--ion-color-tint: var(--ion-color-success-tint, #42d96b) !important}.ion-color-warning{--ion-color-base: var(--ion-color-warning, #ffc409) !important;--ion-color-base-rgb: var(--ion-color-warning-rgb, 255, 196, 9) !important;--ion-color-contrast: var(--ion-color-warning-contrast, #000) !important;--ion-color-contrast-rgb: var(--ion-color-warning-contrast-rgb, 0, 0, 0) !important;--ion-color-shade: var(--ion-color-warning-shade, #e0ac08) !important;--ion-color-tint: var(--ion-color-warning-tint, #ffca22) !important}.ion-color-danger{--ion-color-base: var(--ion-color-danger, #c5000f) !important;--ion-color-base-rgb: var(--ion-color-danger-rgb, 197, 0, 15) !important;--ion-color-contrast: var(--ion-color-danger-contrast, #fff) !important;--ion-color-contrast-rgb: var(--ion-color-danger-contrast-rgb, 255, 255, 255) !important;--ion-color-shade: var(--ion-color-danger-shade, #ad000d) !important;--ion-color-tint: var(--ion-color-danger-tint, #cb1a27) !important}.ion-color-light{--ion-color-base: var(--ion-color-light, #f4f5f8) !important;--ion-color-base-rgb: var(--ion-color-light-rgb, 244, 245, 248) !important;--ion-color-contrast: var(--ion-color-light-contrast, #000) !important;--ion-color-contrast-rgb: var(--ion-color-light-contrast-rgb, 0, 0, 0) !important;--ion-color-shade: var(--ion-color-light-shade, #d7d8da) !important;--ion-color-tint: var(--ion-color-light-tint, #f5f6f9) !important}.ion-color-medium{--ion-color-base: var(--ion-color-medium, #636469) !important;--ion-color-base-rgb: var(--ion-color-medium-rgb, 99, 100, 105) !important;--ion-color-contrast: var(--ion-color-medium-contrast, #fff) !important;--ion-color-contrast-rgb: var(--ion-color-medium-contrast-rgb, 255, 255, 255) !important;--ion-color-shade: var(--ion-color-medium-shade, #57585c) !important;--ion-color-tint: var(--ion-color-medium-tint, #737478) !important}.ion-color-dark{--ion-color-base: var(--ion-color-dark, #222428) !important;--ion-color-base-rgb: var(--ion-color-dark-rgb, 34, 36, 40) !important;--ion-color-contrast: var(--ion-color-dark-contrast, #fff) !important;--ion-color-contrast-rgb: var(--ion-color-dark-contrast-rgb, 255, 255, 255) !important;--ion-color-shade: var(--ion-color-dark-shade, #1e2023) !important;--ion-color-tint: var(--ion-color-dark-tint, #383a3e) !important}.ion-page{left:0;right:0;top:0;bottom:0;display:flex;position:absolute;flex-direction:column;justify-content:space-between;contain:layout size style;z-index:0}ion-modal>.ion-page{position:relative;contain:layout style;height:100%}.split-pane-visible>.ion-page.split-pane-main{position:relative}ion-route,ion-route-redirect,ion-router,ion-select-option,ion-nav-controller,ion-menu-controller,ion-action-sheet-controller,ion-alert-controller,ion-loading-controller,ion-modal-controller,ion-picker-controller,ion-popover-controller,ion-toast-controller,.ion-page-hidden{display:none!important}.ion-page-invisible{opacity:0}.can-go-back>ion-header ion-back-button{display:block}html.plt-ios.plt-hybrid,html.plt-ios.plt-pwa{--ion-statusbar-padding: 20px}@supports (padding-top: 20px){html{--ion-safe-area-top: var(--ion-statusbar-padding)}}@supports (padding-top: env(safe-area-inset-top)){html{--ion-safe-area-top: env(safe-area-inset-top);--ion-safe-area-bottom: env(safe-area-inset-bottom);--ion-safe-area-left: env(safe-area-inset-left);--ion-safe-area-right: env(safe-area-inset-right)}}ion-card.ion-color .ion-inherit-color,ion-card-header.ion-color .ion-inherit-color{color:inherit}.menu-content{transform:translateZ(0)}.menu-content-open{cursor:pointer;touch-action:manipulation;pointer-events:none;overflow-y:hidden}.menu-content-open ion-content{--overflow: hidden}.menu-content-open .ion-content-scroll-host{overflow:hidden}.ios .menu-content-reveal{box-shadow:-8px 0 42px #00000014}[dir=rtl].ios .menu-content-reveal{box-shadow:8px 0 42px #00000014}.md .menu-content-reveal,.md .menu-content-push{box-shadow:4px 0 16px #0000002e}ion-accordion-group.accordion-group-expand-inset>ion-accordion:first-of-type{border-top-left-radius:8px;border-top-right-radius:8px}ion-accordion-group.accordion-group-expand-inset>ion-accordion:last-of-type{border-bottom-left-radius:8px;border-bottom-right-radius:8px}ion-accordion-group>ion-accordion:last-of-type ion-item[slot=header]{--border-width: 0px}ion-accordion.accordion-animated>[slot=header] .ion-accordion-toggle-icon{transition:.3s transform cubic-bezier(.25,.8,.5,1)}@media (prefers-reduced-motion: reduce){ion-accordion .ion-accordion-toggle-icon{transition:none!important}}ion-accordion.accordion-expanding>[slot=header] .ion-accordion-toggle-icon,ion-accordion.accordion-expanded>[slot=header] .ion-accordion-toggle-icon{transform:rotate(180deg)}ion-accordion-group.accordion-group-expand-inset.md>ion-accordion.accordion-previous ion-item[slot=header]{--border-width: 0px;--inner-border-width: 0px}ion-accordion-group.accordion-group-expand-inset.md>ion-accordion.accordion-expanding:first-of-type,ion-accordion-group.accordion-group-expand-inset.md>ion-accordion.accordion-expanded:first-of-type{margin-top:0}ion-input input::-webkit-date-and-time-value{text-align:start}.ion-datetime-button-overlay{--width: fit-content;--height: fit-content}.ion-datetime-button-overlay ion-datetime.datetime-grid{width:320px;min-height:320px}[ion-last-focus],header[tabindex="-1"]:focus,[role=banner][tabindex="-1"]:focus,main[tabindex="-1"]:focus,[role=main][tabindex="-1"]:focus,h1[tabindex="-1"]:focus,[role=heading][aria-level="1"][tabindex="-1"]:focus{outline:none}.popover-viewport:has(>ion-content){overflow:hidden}@supports not selector(:has(> ion-content)){.popover-viewport{overflow:hidden}}audio,canvas,progress,video{vertical-align:baseline}audio:not([controls]){display:none;height:0}b,strong{font-weight:700}img{max-width:100%}hr{height:1px;border-width:0;box-sizing:content-box}pre{overflow:auto}code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}label,input,select,textarea{font-family:inherit;line-height:normal}textarea{overflow:auto;height:auto;font:inherit;color:inherit}textarea::placeholder{padding-left:2px}form,input,optgroup,select{margin:0;font:inherit;color:inherit}html input[type=button],input[type=reset],input[type=submit]{cursor:pointer;-webkit-appearance:button}a,a div,a span,a ion-icon,a ion-label,button,button div,button span,button ion-icon,button ion-label,.ion-tappable,[tappable],[tappable] div,[tappable] span,[tappable] ion-icon,[tappable] ion-label,input,textarea{touch-action:manipulation}a ion-label,button ion-label{pointer-events:none}button{padding:0;border:0;border-radius:0;font-family:inherit;font-style:inherit;font-variant:inherit;line-height:1;text-transform:none;cursor:pointer;-webkit-appearance:button}[tappable]{cursor:pointer}a[disabled],button[disabled],html input[disabled]{cursor:default}button::-moz-focus-inner,input::-moz-focus-inner{padding:0;border:0}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{height:auto}input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration{-webkit-appearance:none}table{border-collapse:collapse;border-spacing:0}td,th{padding:0}*{box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-tap-highlight-color:transparent;-webkit-touch-callout:none}html{width:100%;height:100%;-webkit-text-size-adjust:100%;text-size-adjust:100%}html:not(.hydrated) body{display:none}html.ion-ce body{display:block}html.plt-pwa{height:100vh}body{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;margin:0;padding:0;position:fixed;width:100%;max-width:100%;height:100%;max-height:100%;transform:translateZ(0);text-rendering:optimizeLegibility;overflow:hidden;touch-action:manipulation;-webkit-user-drag:none;-ms-content-zooming:none;word-wrap:break-word;overscroll-behavior-y:none;-webkit-text-size-adjust:none;text-size-adjust:none}html{font-family:var(--ion-font-family)}@supports (-webkit-touch-callout: none){html{font:var(--ion-dynamic-font, 16px var(--ion-font-family))}}a{background-color:transparent;color:var(--ion-color-primary, #0054e9)}h1,h2,h3,h4,h5,h6{margin-top:16px;margin-bottom:10px;font-weight:500;line-height:1.2}h1{margin-top:20px;font-size:1.625rem}h2{margin-top:18px;font-size:1.5rem}h3{font-size:1.375rem}h4{font-size:1.25rem}h5{font-size:1.125rem}h6{font-size:1rem}small{font-size:75%}sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}.ion-hide,.ion-hide-up,.ion-hide-down{display:none!important}@media (min-width: 576px){.ion-hide-sm-up{display:none!important}}@media (max-width: 575.98px){.ion-hide-sm-down{display:none!important}}@media (min-width: 768px){.ion-hide-md-up{display:none!important}}@media (max-width: 767.98px){.ion-hide-md-down{display:none!important}}@media (min-width: 992px){.ion-hide-lg-up{display:none!important}}@media (max-width: 991.98px){.ion-hide-lg-down{display:none!important}}@media (min-width: 1200px){.ion-hide-xl-up{display:none!important}}@media (max-width: 1199.98px){.ion-hide-xl-down{display:none!important}}.ion-no-padding{--padding-start: 0;--padding-end: 0;--padding-top: 0;--padding-bottom: 0;padding:0}.ion-padding{--padding-start: var(--ion-padding, 16px);--padding-end: var(--ion-padding, 16px);--padding-top: var(--ion-padding, 16px);--padding-bottom: var(--ion-padding, 16px);padding-inline-start:var(--ion-padding, 16px);padding-inline-end:var(--ion-padding, 16px);padding-top:var(--ion-padding, 16px);padding-bottom:var(--ion-padding, 16px)}.ion-padding-top{--padding-top: var(--ion-padding, 16px);padding-top:var(--ion-padding, 16px)}.ion-padding-start{--padding-start: var(--ion-padding, 16px);padding-inline-start:var(--ion-padding, 16px)}.ion-padding-end{--padding-end: var(--ion-padding, 16px);padding-inline-end:var(--ion-padding, 16px)}.ion-padding-bottom{--padding-bottom: var(--ion-padding, 16px);padding-bottom:var(--ion-padding, 16px)}.ion-padding-vertical{--padding-top: var(--ion-padding, 16px);--padding-bottom: var(--ion-padding, 16px);padding-top:var(--ion-padding, 16px);padding-bottom:var(--ion-padding, 16px)}.ion-padding-horizontal{--padding-start: var(--ion-padding, 16px);--padding-end: var(--ion-padding, 16px);padding-inline-start:var(--ion-padding, 16px);padding-inline-end:var(--ion-padding, 16px)}.ion-no-margin{--margin-start: 0;--margin-end: 0;--margin-top: 0;--margin-bottom: 0;margin:0}.ion-margin{--margin-start: var(--ion-margin, 16px);--margin-end: var(--ion-margin, 16px);--margin-top: var(--ion-margin, 16px);--margin-bottom: var(--ion-margin, 16px);margin-inline-start:var(--ion-margin, 16px);margin-inline-end:var(--ion-margin, 16px);margin-top:var(--ion-margin, 16px);margin-bottom:var(--ion-margin, 16px)}.ion-margin-top{--margin-top: var(--ion-margin, 16px);margin-top:var(--ion-margin, 16px)}.ion-margin-start{--margin-start: var(--ion-margin, 16px);margin-inline-start:var(--ion-margin, 16px)}.ion-margin-end{--margin-end: var(--ion-margin, 16px);margin-inline-end:var(--ion-margin, 16px)}.ion-margin-bottom{--margin-bottom: var(--ion-margin, 16px);margin-bottom:var(--ion-margin, 16px)}.ion-margin-vertical{--margin-top: var(--ion-margin, 16px);--margin-bottom: var(--ion-margin, 16px);margin-top:var(--ion-margin, 16px);margin-bottom:var(--ion-margin, 16px)}.ion-margin-horizontal{--margin-start: var(--ion-margin, 16px);--margin-end: var(--ion-margin, 16px);margin-inline-start:var(--ion-margin, 16px);margin-inline-end:var(--ion-margin, 16px)}.ion-float-left{float:left!important}.ion-float-right{float:right!important}.ion-float-start{float:left!important}:host-context([dir=rtl]) .ion-float-start{float:right!important}[dir=rtl] .ion-float-start{float:right!important}@supports selector(:dir(rtl)){.ion-float-start:dir(rtl){float:right!important}}.ion-float-end{float:right!important}:host-context([dir=rtl]) .ion-float-end{float:left!important}[dir=rtl] .ion-float-end{float:left!important}@supports selector(:dir(rtl)){.ion-float-end:dir(rtl){float:left!important}}@media (min-width: 576px){.ion-float-sm-left{float:left!important}.ion-float-sm-right{float:right!important}.ion-float-sm-start{float:left!important}:host-context([dir=rtl]) .ion-float-sm-start{float:right!important}[dir=rtl] .ion-float-sm-start{float:right!important}@supports selector(:dir(rtl)){.ion-float-sm-start:dir(rtl){float:right!important}}.ion-float-sm-end{float:right!important}:host-context([dir=rtl]) .ion-float-sm-end{float:left!important}[dir=rtl] .ion-float-sm-end{float:left!important}@supports selector(:dir(rtl)){.ion-float-sm-end:dir(rtl){float:left!important}}}@media (min-width: 768px){.ion-float-md-left{float:left!important}.ion-float-md-right{float:right!important}.ion-float-md-start{float:left!important}:host-context([dir=rtl]) .ion-float-md-start{float:right!important}[dir=rtl] .ion-float-md-start{float:right!important}@supports selector(:dir(rtl)){.ion-float-md-start:dir(rtl){float:right!important}}.ion-float-md-end{float:right!important}:host-context([dir=rtl]) .ion-float-md-end{float:left!important}[dir=rtl] .ion-float-md-end{float:left!important}@supports selector(:dir(rtl)){.ion-float-md-end:dir(rtl){float:left!important}}}@media (min-width: 992px){.ion-float-lg-left{float:left!important}.ion-float-lg-right{float:right!important}.ion-float-lg-start{float:left!important}:host-context([dir=rtl]) .ion-float-lg-start{float:right!important}[dir=rtl] .ion-float-lg-start{float:right!important}@supports selector(:dir(rtl)){.ion-float-lg-start:dir(rtl){float:right!important}}.ion-float-lg-end{float:right!important}:host-context([dir=rtl]) .ion-float-lg-end{float:left!important}[dir=rtl] .ion-float-lg-end{float:left!important}@supports selector(:dir(rtl)){.ion-float-lg-end:dir(rtl){float:left!important}}}@media (min-width: 1200px){.ion-float-xl-left{float:left!important}.ion-float-xl-right{float:right!important}.ion-float-xl-start{float:left!important}:host-context([dir=rtl]) .ion-float-xl-start{float:right!important}[dir=rtl] .ion-float-xl-start{float:right!important}@supports selector(:dir(rtl)){.ion-float-xl-start:dir(rtl){float:right!important}}.ion-float-xl-end{float:right!important}:host-context([dir=rtl]) .ion-float-xl-end{float:left!important}[dir=rtl] .ion-float-xl-end{float:left!important}@supports selector(:dir(rtl)){.ion-float-xl-end:dir(rtl){float:left!important}}}.ion-text-center{text-align:center!important}.ion-text-justify{text-align:justify!important}.ion-text-start{text-align:start!important}.ion-text-end{text-align:end!important}.ion-text-left{text-align:left!important}.ion-text-right{text-align:right!important}.ion-text-nowrap{white-space:nowrap!important}.ion-text-wrap{white-space:normal!important}@media (min-width: 576px){.ion-text-sm-center{text-align:center!important}.ion-text-sm-justify{text-align:justify!important}.ion-text-sm-start{text-align:start!important}.ion-text-sm-end{text-align:end!important}.ion-text-sm-left{text-align:left!important}.ion-text-sm-right{text-align:right!important}.ion-text-sm-nowrap{white-space:nowrap!important}.ion-text-sm-wrap{white-space:normal!important}}@media (min-width: 768px){.ion-text-md-center{text-align:center!important}.ion-text-md-justify{text-align:justify!important}.ion-text-md-start{text-align:start!important}.ion-text-md-end{text-align:end!important}.ion-text-md-left{text-align:left!important}.ion-text-md-right{text-align:right!important}.ion-text-md-nowrap{white-space:nowrap!important}.ion-text-md-wrap{white-space:normal!important}}@media (min-width: 992px){.ion-text-lg-center{text-align:center!important}.ion-text-lg-justify{text-align:justify!important}.ion-text-lg-start{text-align:start!important}.ion-text-lg-end{text-align:end!important}.ion-text-lg-left{text-align:left!important}.ion-text-lg-right{text-align:right!important}.ion-text-lg-nowrap{white-space:nowrap!important}.ion-text-lg-wrap{white-space:normal!important}}@media (min-width: 1200px){.ion-text-xl-center{text-align:center!important}.ion-text-xl-justify{text-align:justify!important}.ion-text-xl-start{text-align:start!important}.ion-text-xl-end{text-align:end!important}.ion-text-xl-left{text-align:left!important}.ion-text-xl-right{text-align:right!important}.ion-text-xl-nowrap{white-space:nowrap!important}.ion-text-xl-wrap{white-space:normal!important}}.ion-text-uppercase{text-transform:uppercase!important}.ion-text-lowercase{text-transform:lowercase!important}.ion-text-capitalize{text-transform:capitalize!important}@media (min-width: 576px){.ion-text-sm-uppercase{text-transform:uppercase!important}.ion-text-sm-lowercase{text-transform:lowercase!important}.ion-text-sm-capitalize{text-transform:capitalize!important}}@media (min-width: 768px){.ion-text-md-uppercase{text-transform:uppercase!important}.ion-text-md-lowercase{text-transform:lowercase!important}.ion-text-md-capitalize{text-transform:capitalize!important}}@media (min-width: 992px){.ion-text-lg-uppercase{text-transform:uppercase!important}.ion-text-lg-lowercase{text-transform:lowercase!important}.ion-text-lg-capitalize{text-transform:capitalize!important}}@media (min-width: 1200px){.ion-text-xl-uppercase{text-transform:uppercase!important}.ion-text-xl-lowercase{text-transform:lowercase!important}.ion-text-xl-capitalize{text-transform:capitalize!important}}.ion-align-self-start{align-self:flex-start!important}.ion-align-self-end{align-self:flex-end!important}.ion-align-self-center{align-self:center!important}.ion-align-self-stretch{align-self:stretch!important}.ion-align-self-baseline{align-self:baseline!important}.ion-align-self-auto{align-self:auto!important}.ion-wrap{flex-wrap:wrap!important}.ion-nowrap{flex-wrap:nowrap!important}.ion-wrap-reverse{flex-wrap:wrap-reverse!important}.ion-justify-content-start{justify-content:flex-start!important}.ion-justify-content-center{justify-content:center!important}.ion-justify-content-end{justify-content:flex-end!important}.ion-justify-content-around{justify-content:space-around!important}.ion-justify-content-between{justify-content:space-between!important}.ion-justify-content-evenly{justify-content:space-evenly!important}.ion-align-items-start{align-items:flex-start!important}.ion-align-items-center{align-items:center!important}.ion-align-items-end{align-items:flex-end!important}.ion-align-items-stretch{align-items:stretch!important}.ion-align-items-baseline{align-items:baseline!important}:root{--ion-color-primary: #4d8dff;--ion-color-primary-rgb: 77, 141, 255;--ion-color-primary-contrast: #000;--ion-color-primary-contrast-rgb: 0, 0, 0;--ion-color-primary-shade: #447ce0;--ion-color-primary-tint: #5f98ff;--ion-color-secondary: #46b1ff;--ion-color-secondary-rgb: 70, 177, 255;--ion-color-secondary-contrast: #000;--ion-color-secondary-contrast-rgb: 0, 0, 0;--ion-color-secondary-shade: #3e9ce0;--ion-color-secondary-tint: #59b9ff;--ion-color-tertiary: #8482fb;--ion-color-tertiary-rgb: 132, 130, 251;--ion-color-tertiary-contrast: #000;--ion-color-tertiary-contrast-rgb: 0, 0, 0;--ion-color-tertiary-shade: #7472dd;--ion-color-tertiary-tint: #908ffb;--ion-color-success: #2dd55b;--ion-color-success-rgb: 45, 213, 91;--ion-color-success-contrast: #000;--ion-color-success-contrast-rgb: 0, 0, 0;--ion-color-success-shade: #28bb50;--ion-color-success-tint: #42d96b;--ion-color-warning: #ffce31;--ion-color-warning-rgb: 255, 206, 49;--ion-color-warning-contrast: #000;--ion-color-warning-contrast-rgb: 0, 0, 0;--ion-color-warning-shade: #e0b52b;--ion-color-warning-tint: #ffd346;--ion-color-danger: #f24c58;--ion-color-danger-rgb: 242, 76, 88;--ion-color-danger-contrast: #000;--ion-color-danger-contrast-rgb: 0, 0, 0;--ion-color-danger-shade: #d5434d;--ion-color-danger-tint: #f35e69;--ion-color-light: #222428;--ion-color-light-rgb: 34, 36, 40;--ion-color-light-contrast: #fff;--ion-color-light-contrast-rgb: 255, 255, 255;--ion-color-light-shade: #1e2023;--ion-color-light-tint: #383a3e;--ion-color-medium: #989aa2;--ion-color-medium-rgb: 152, 154, 162;--ion-color-medium-contrast: #000;--ion-color-medium-contrast-rgb: 0, 0, 0;--ion-color-medium-shade: #86888f;--ion-color-medium-tint: #a2a4ab;--ion-color-dark: #f4f5f8;--ion-color-dark-rgb: 244, 245, 248;--ion-color-dark-contrast: #000;--ion-color-dark-contrast-rgb: 0, 0, 0;--ion-color-dark-shade: #d7d8da;--ion-color-dark-tint: #f5f6f9}:root.ios{--ion-background-color: #000000;--ion-background-color-rgb: 0, 0, 0;--ion-text-color: #ffffff;--ion-text-color-rgb: 255, 255, 255;--ion-background-color-step-50: #0d0d0d;--ion-background-color-step-100: #1a1a1a;--ion-background-color-step-150: #262626;--ion-background-color-step-200: #333333;--ion-background-color-step-250: #404040;--ion-background-color-step-300: #4d4d4d;--ion-background-color-step-350: #595959;--ion-background-color-step-400: #666666;--ion-background-color-step-450: #737373;--ion-background-color-step-500: #808080;--ion-background-color-step-550: #8c8c8c;--ion-background-color-step-600: #999999;--ion-background-color-step-650: #a6a6a6;--ion-background-color-step-700: #b3b3b3;--ion-background-color-step-750: #bfbfbf;--ion-background-color-step-800: #cccccc;--ion-background-color-step-850: #d9d9d9;--ion-background-color-step-900: #e6e6e6;--ion-background-color-step-950: #f2f2f2;--ion-text-color-step-50: #f2f2f2;--ion-text-color-step-100: #e6e6e6;--ion-text-color-step-150: #d9d9d9;--ion-text-color-step-200: #cccccc;--ion-text-color-step-250: #bfbfbf;--ion-text-color-step-300: #b3b3b3;--ion-text-color-step-350: #a6a6a6;--ion-text-color-step-400: #999999;--ion-text-color-step-450: #8c8c8c;--ion-text-color-step-500: #808080;--ion-text-color-step-550: #737373;--ion-text-color-step-600: #666666;--ion-text-color-step-650: #595959;--ion-text-color-step-700: #4d4d4d;--ion-text-color-step-750: #404040;--ion-text-color-step-800: #333333;--ion-text-color-step-850: #262626;--ion-text-color-step-900: #1a1a1a;--ion-text-color-step-950: #0d0d0d;--ion-item-background: #000000;--ion-card-background: #1c1c1d}:root.ios ion-modal{--ion-background-color: var(--ion-color-step-100, var(--ion-background-color-step-100));--ion-toolbar-background: var(--ion-color-step-150, var(--ion-background-color-step-150));--ion-toolbar-border-color: var(--ion-color-step-250, var(--ion-background-color-step-250))}:root.md{--ion-background-color: #121212;--ion-background-color-rgb: 18, 18, 18;--ion-text-color: #ffffff;--ion-text-color-rgb: 255, 255, 255;--ion-background-color-step-50: #1e1e1e;--ion-background-color-step-100: #2a2a2a;--ion-background-color-step-150: #363636;--ion-background-color-step-200: #414141;--ion-background-color-step-250: #4d4d4d;--ion-background-color-step-300: #595959;--ion-background-color-step-350: #656565;--ion-background-color-step-400: #717171;--ion-background-color-step-450: #7d7d7d;--ion-background-color-step-500: #898989;--ion-background-color-step-550: #949494;--ion-background-color-step-600: #a0a0a0;--ion-background-color-step-650: #acacac;--ion-background-color-step-700: #b8b8b8;--ion-background-color-step-750: #c4c4c4;--ion-background-color-step-800: #d0d0d0;--ion-background-color-step-850: #dbdbdb;--ion-background-color-step-900: #e7e7e7;--ion-background-color-step-950: #f3f3f3;--ion-text-color-step-50: #f3f3f3;--ion-text-color-step-100: #e7e7e7;--ion-text-color-step-150: #dbdbdb;--ion-text-color-step-200: #d0d0d0;--ion-text-color-step-250: #c4c4c4;--ion-text-color-step-300: #b8b8b8;--ion-text-color-step-350: #acacac;--ion-text-color-step-400: #a0a0a0;--ion-text-color-step-450: #949494;--ion-text-color-step-500: #898989;--ion-text-color-step-550: #7d7d7d;--ion-text-color-step-600: #717171;--ion-text-color-step-650: #656565;--ion-text-color-step-700: #595959;--ion-text-color-step-750: #4d4d4d;--ion-text-color-step-800: #414141;--ion-text-color-step-850: #363636;--ion-text-color-step-900: #2a2a2a;--ion-text-color-step-950: #1e1e1e;--ion-item-background: #1e1e1e;--ion-toolbar-background: #1f1f1f;--ion-tab-bar-background: #1f1f1f;--ion-card-background: #1e1e1e}*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.m-4{margin:1rem}.mb-6{margin-bottom:1.5rem}.flex{display:flex}.h-48{height:12rem}.h-full{height:100%}.min-w-96{min-width:24rem}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.rounded-2xl{border-radius:1rem}.bg-amber-200{--tw-bg-opacity: 1;background-color:rgb(253 230 138 / var(--tw-bg-opacity))}.bg-gray-800{--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}.p-10{padding:2.5rem}.text-6xl{font-size:3.75rem;line-height:1}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.text-blue-500{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}@media (min-width: 768px){.md\:h-full{height:100%}.md\:flex-row{flex-direction:row}.md\:justify-end{justify-content:flex-end}}@media (min-width: 1024px){.lg\:ml-2{margin-left:.5rem}.lg\:h-96{height:24rem}.lg\:h-full{height:100%}.lg\:min-w-20{min-width:5rem}.lg\:flex-row{flex-direction:row}.lg\:justify-center{justify-content:center}.lg\:p-32{padding:8rem}.lg\:text-lg{font-size:1.125rem;line-height:1.75rem}}