diff --git a/src/app/app.component.ts b/src/app/app.component.ts index 85ea560..72845fb 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -38,6 +38,11 @@ export class AppComponent implements OnInit { title:'Latency Test', url:'/latency-test', icon:'pulse' + }, + { + title:'Show Map', + url:'/show-map', + icon:'map' } ]; diff --git a/src/app/interfaces/ip-api.ts b/src/app/interfaces/ip-api.ts new file mode 100644 index 0000000..136c37c --- /dev/null +++ b/src/app/interfaces/ip-api.ts @@ -0,0 +1,6 @@ +export interface IpApi { + country: string; + city: string; + lat: number; + lon: number; +} diff --git a/src/app/interfaces/ripe.ts b/src/app/interfaces/ripe.ts index 0208314..3d41bda 100644 --- a/src/app/interfaces/ripe.ts +++ b/src/app/interfaces/ripe.ts @@ -8,4 +8,8 @@ export interface Ripe { toLongitude?: number; latency?: number; description?: string; + cityFrom?: string; + countryFrom?: string; + cityTo?: string; + countryTo?: string; } diff --git a/src/app/pages/latency-test/latency-test.page.html b/src/app/pages/latency-test/latency-test.page.html index 82bbca5..5e54358 100644 --- a/src/app/pages/latency-test/latency-test.page.html +++ b/src/app/pages/latency-test/latency-test.page.html @@ -33,9 +33,9 @@ - FROM {{ test.from }} + FROM {{ test.cityFrom }},{{test.countryFrom}} {{ test.latency }} ms - TO {{ test.dst_addr }} + TO {{ test.cityTo }},{{test.countryTo}} diff --git a/src/app/pages/latency-test/latency-test.page.ts b/src/app/pages/latency-test/latency-test.page.ts index 12aae83..e378c37 100644 --- a/src/app/pages/latency-test/latency-test.page.ts +++ b/src/app/pages/latency-test/latency-test.page.ts @@ -4,6 +4,7 @@ import {Ripe} from "../../interfaces/ripe"; import {User} from "../../interfaces/user"; import {TeamsService} from "../../services/teams.service"; import {LoadingController} from "@ionic/angular"; +import {LocationService} from "../../services/location.service"; @Component({ selector: 'app-latency-test', @@ -21,12 +22,14 @@ export class LatencyTestPage implements OnInit { constructor( private ripeService: RipeService, private teamsService: TeamsService, - private loadingCtrl: LoadingController + private loadingCtrl: LoadingController, + private locationService: LocationService ) { } ngOnInit() { + } async sendRequest() { @@ -54,13 +57,33 @@ export class LatencyTestPage implements OnInit { latency: data[i].avg, dst_addr: data[i].dst_addr, from: data[i].from, + toLatitude: 0, + toLongitude: 0, + fromLatitude: 0, + fromLongitude: 0, + cityTo: '', + countryTo: '', + cityFrom: '', + countryFrom: '' } this.ripeResults.push(ripe); //TODO:Prodcut Objective } - await this.ripeService.saveMeasurementResults(orgName, "Web", this.description, this.ripeResults); + await this.ripeService.saveMeasurementResults(orgName, "Web", this.description, this.ripeResults).then(async () => { + //TODO: Get Location service + await this.locationService.getLocation(this.ripeResults).then((data) => { + this.ripeResults = data; + this.locationService.saveLocationResults(orgName, "Web", this.description, data).then(async (data) => { + if (data) { + console.log('Data saved'); + console.log(this.ripeResults); + await this.hideLoading(); + } + }); + }); + }); }); - await this.hideLoading(); + } handleChange($event: any) { diff --git a/src/app/pages/show-map/show-map.module.ts b/src/app/pages/show-map/show-map.module.ts index 7862246..332b8ee 100644 --- a/src/app/pages/show-map/show-map.module.ts +++ b/src/app/pages/show-map/show-map.module.ts @@ -7,14 +7,16 @@ import { IonicModule } from '@ionic/angular'; import { ShowMapPageRoutingModule } from './show-map-routing.module'; import { ShowMapPage } from './show-map.page'; +import {ComponentsModule} from "../../components/components.module"; @NgModule({ - imports: [ - CommonModule, - FormsModule, - IonicModule, - ShowMapPageRoutingModule - ], + imports: [ + CommonModule, + FormsModule, + IonicModule, + ShowMapPageRoutingModule, + ComponentsModule + ], declarations: [ShowMapPage] }) export class ShowMapPageModule {} diff --git a/src/app/pages/show-map/show-map.page.html b/src/app/pages/show-map/show-map.page.html index 2176191..e9bd8c8 100644 --- a/src/app/pages/show-map/show-map.page.html +++ b/src/app/pages/show-map/show-map.page.html @@ -1,10 +1,15 @@ - - - show-map - - + - -
-
+ + +
diff --git a/src/app/pages/show-map/show-map.page.scss b/src/app/pages/show-map/show-map.page.scss index e69de29..f69d632 100644 --- a/src/app/pages/show-map/show-map.page.scss +++ b/src/app/pages/show-map/show-map.page.scss @@ -0,0 +1,9 @@ +.fixed-card { + position: absolute; + top: 10px; + left: 50px; + z-index: 1000; + background-color: white; + border-radius: 10px; + box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2); +} diff --git a/src/app/pages/show-map/show-map.page.ts b/src/app/pages/show-map/show-map.page.ts index 11dc480..dd31887 100644 --- a/src/app/pages/show-map/show-map.page.ts +++ b/src/app/pages/show-map/show-map.page.ts @@ -15,53 +15,66 @@ import {Ripe} from "../../interfaces/ripe"; export class ShowMapPage implements OnInit, OnDestroy{ map: Leaflet.Map|undefined; - ripeData:Ripe = { - fromLatitude: 0, - fromLongitude: 0, - toLatitude: 0, - toLongitude: 0, - latency: 0 - } + ripeData: Ripe[]=[]; constructor( + private ripeService: RipeService ) { } ngOnInit() { - } - ionViewDidEnter() { this.leafletMap(); } - - leafletMap() { - this.map = Leaflet.map('mapId').setView([0, 0], 2.5); - Leaflet.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', { - attribution: 'edupala.com © Angular LeafLet', - }).addTo(this.map); + } - antPath([[this.ripeData.fromLatitude, this.ripeData.fromLongitude], [this.ripeData.toLatitude, this.ripeData.toLongitude]], - { color: '#FF0000', weight: 5, opacity: 0.6 }) - .addTo(this.map); - //in the middle of the path add a Latency in ms thing - const labelIcon = Leaflet.divIcon({ - className: 'label-icon', - html: `
Latency: ${this.ripeData.latency} ms
`, - iconSize: [120, 20] // size of the icon - }) + async ionViewDidEnter() { + this.ripeData= await this.ripeService.getAllResults("DevProbe", "Web", "NEW IONIC"); + await this.leafletMap(); + } - // Add the label to the map at the desired coordinates - const labelCoordinates:LatLngExpression = [(this.ripeData.fromLatitude! + this.ripeData.toLatitude!) / 2, (this.ripeData.fromLongitude! + this.ripeData.toLongitude!) / 2]; - Leaflet.marker(labelCoordinates, { icon: labelIcon }).addTo(this.map); + async leafletMap() { + this.map = Leaflet.map('mapId').setView([0, 0], 2.5); + Leaflet.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', { + attribution: 'edupala.com © Angular LeafLet', + }).addTo(this.map); setTimeout(() => { - this.map!.invalidateSize(); - },100); - + this.map!.invalidateSize(); + this.addPaths(); + }, 1000); } /** Remove map when we have multiple map object */ ngOnDestroy() { this.map!.remove(); } + + addPaths() { + // @ts-ignore + this.ripeData = this.ripeData["data"]; + //sort from highest to lowest latency + this.ripeData.sort((a, b) => (a.latency! < b.latency!) ? 1 : -1); + + + + for (let data of this.ripeData) { + antPath([[data.fromLatitude, data.fromLongitude], [data.toLatitude, data.toLongitude]], + {color: '#FF0000', weight: 5, opacity: 0.6}) + .addTo(this.map); + + let labelIcon = Leaflet.divIcon({ + className: 'label-icon', + html: `
Latency: ${data.latency} ms
`, + iconSize: [120, 20] // size of the icon + }) + + // Add the label to the map at the desired coordinates + // @ts-ignore + const labelCoordinates:LatLngExpression = [(data.fromLatitude + data.toLatitude) / 2, (data.fromLongitude + data.toLongitude) / 2]; + Leaflet.marker(labelCoordinates, { icon: labelIcon }).addTo(this.map!); + + + } + } } diff --git a/src/app/services/location.service.spec.ts b/src/app/services/location.service.spec.ts deleted file mode 100644 index 49dca00..0000000 --- a/src/app/services/location.service.spec.ts +++ /dev/null @@ -1,16 +0,0 @@ -import { TestBed } from '@angular/core/testing'; - -import { LocationService } from './location.service'; - -describe('LocationService', () => { - let service: LocationService; - - beforeEach(() => { - TestBed.configureTestingModule({}); - service = TestBed.inject(LocationService); - }); - - it('should be created', () => { - expect(service).toBeTruthy(); - }); -}); diff --git a/src/app/services/location.service.ts b/src/app/services/location.service.ts index 60661dd..56ce156 100644 --- a/src/app/services/location.service.ts +++ b/src/app/services/location.service.ts @@ -1,9 +1,82 @@ import { Injectable } from '@angular/core'; +import { HttpClient } from '@angular/common/http'; +import { collection, doc, Firestore, setDoc } from '@angular/fire/firestore'; +import { Ripe } from '../interfaces/ripe'; +import { IpApi } from '../interfaces/ip-api'; @Injectable({ providedIn: 'root' }) export class LocationService { - constructor() { } + private ipApiURL = 'https://cors-ea3m.onrender.com/http://ip-api.com/json/'; + + constructor( + private firestore: Firestore, + private http: HttpClient + ) { } + + async getLocation(ripeData: Ripe[]): Promise { + + console.log(ripeData); + + // Primera solicitud + const fromLoc = this.http.get(this.ipApiURL + ripeData[0].dst_addr).toPromise(); + const fromData = await fromLoc; + + // Actualiza los datos para todos los elementos en ripeData + for (let i = 0; i < ripeData.length; i++) { + ripeData[i].toLatitude = fromData!.lat; + ripeData[i].toLongitude = fromData!.lon; + ripeData[i].cityTo = fromData!.city; + ripeData[i].countryTo = fromData!.country; + } + + // Segunda solicitud + const promises = ripeData.map((ripe) => this.http.get(this.ipApiURL + ripe.from).toPromise()); + const results = await Promise.all(promises); + + // Actualiza los datos con los resultados de la segunda solicitud + results.forEach((data, index) => { + ripeData[index].fromLatitude = data!.lat; + ripeData[index].fromLongitude = data!.lon; + ripeData[index].cityFrom = data!.city; + ripeData[index].countryFrom = data!.country; + }); + + console.log(ripeData); + + return ripeData; + } + + async saveLocationResults(orgName: string, productObjective: string, description: string, ripeData: Ripe[]) { + try { + console.log(ripeData, "ripeData"); + const collectionRef = collection(this.firestore, 'teams', orgName, 'products', productObjective, 'ripe'); + const docRef = doc(collectionRef, description); // Use description as the document ID + + //Create a new object called locationData, this object will have all the arrays of ripeData + // Prepare the data + const data = ripeData.map((item) => ({ + from: item.from, + dst_addr: item.dst_addr, + latency: item.latency, + cityFrom: item.cityFrom, + countryFrom: item.countryFrom, + cityTo: item.cityTo, + countryTo: item.countryTo, + fromLatitude: item.fromLatitude, + fromLongitude: item.fromLongitude, + toLatitude: item.toLatitude, + toLongitude: item.toLongitude + })); + await setDoc(docRef, { data }); + console.log("Data saved", { data }); + return true; + } catch (e) { + console.log(e); + return false; + } + } + } diff --git a/src/app/services/ripe.service.ts b/src/app/services/ripe.service.ts index 273cd33..3417386 100644 --- a/src/app/services/ripe.service.ts +++ b/src/app/services/ripe.service.ts @@ -2,7 +2,7 @@ import { Injectable } from '@angular/core'; import {HttpClient} from "@angular/common/http"; import {Ripe} from "../interfaces/ripe"; import {Observable} from "rxjs"; -import {collection, doc, Firestore, setDoc} from "@angular/fire/firestore"; +import {collection, doc, Firestore, getDoc, getDocs, setDoc} from "@angular/fire/firestore"; @Injectable({ @@ -59,26 +59,38 @@ export class RipeService { } -async saveMeasurementResults(orgName:string, productObjective:string,description:string ,ripeData:Ripe[]){ - try { - const collectionRef = collection(this.firestore, 'teams', orgName, 'products', productObjective, 'ripe'); - const docRef = doc(collectionRef, description); // Use description as the document ID + async saveMeasurementResults(orgName:string, productObjective:string,description:string ,ripeData:Ripe[]){ + try { + const collectionRef = collection(this.firestore, 'teams', orgName, 'products', productObjective, 'ripe'); + const docRef = doc(collectionRef, description); // Use description as the document ID - // Prepare the data - const data = ripeData.map((item, index) => ({ - from: item.from, - dst_addr: item.dst_addr, - latency: item.latency - })); + // Prepare the data + const data = ripeData.map((item, index) => ({ + from: item.from, + dst_addr: item.dst_addr, + latency: item.latency + })); - await setDoc(docRef, { data }); + await setDoc(docRef, { data }); - return true; - } catch (e) { - console.log(e); - return false; + return true; + } catch (e) { + console.log(e); + return false; + } } -} + + + async getAllResults(orgName:string, productObjective:string, description:string):Promise{ + let path = 'teams/' + orgName + '/products/' + productObjective + '/ripe'; + let ref = doc(this.firestore, path, description); + const fetchOrg = await getDoc(ref); + const ripeData = fetchOrg.data(); + return ripeData as Ripe[]; + + } + + diff --git a/www/1956.bf40c06794b2530b.js b/www/1956.bf40c06794b2530b.js deleted file mode 100644 index e9c9d82..0000000 --- a/www/1956.bf40c06794b2530b.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[1956],{1956:(j,d,r)=>{r.r(d),r.d(d,{LatencyTestPageModule:()=>C});var y=r(177),p=r(4341),i=r(7863),h=r(305),u=r(467),e=r(4438),f=r(1626);let v=(()=>{var n;class a{constructor(t){this.http=t,this.measurementsUrl="https://cors-ea3m.onrender.com/https://atlas.ripe.net/api/v2/measurements/",this.measurementID="73134479"}sendMeasurementRequest(t,s,l){var o=this;return(0,u.A)(function*(){let g={definitions:[{target:t,description:s,type:"ping",af:4,is_oneoff:!0}],probes:[{requested:1,type:"area",value:"WW"}]};console.log(g);let m=yield o.http.post(o.measurementsUrl,g,{headers:{Authorization:"Key 92530695-134f-4cbc-b7c3-ec130f3719b0"}}).toPromise();console.log(m),o.measurementID=m.measurements[0],console.log(o.measurementID)})()}getMeasurementResults(){var t=this;return(0,u.A)(function*(){return t.http.get(t.measurementsUrl+t.measurementID+"/results/",{headers:{Authorization:"Key 92530695-134f-4cbc-b7c3-ec130f3719b0"}})})()}}return(n=a).\u0275fac=function(t){return new(t||n)(e.KVO(f.Qq))},n.\u0275prov=e.jDH({token:n,factory:n.\u0275fac,providedIn:"root"}),a})();var T=r(385),M=r(8453);const R=[{path:"",component:(()=>{var n;class a{constructor(t){this.ripeService=t,this.host="portfoliojuanfranciscocisneros.web.app",this.description="NEW IONIC",this.type="ping",this.ripeResults=[]}ngOnInit(){var t=this;return(0,u.A)(function*(){yield t.getResults()})()}sendRequest(){console.log(this.host,this.description,this.type),this.ripeService.sendMeasurementRequest(this.host,this.description,this.type)}getResults(){var t=this;return(0,u.A)(function*(){(yield t.ripeService.getMeasurementResults()).subscribe(s=>{for(let l=0;l{var n;class a{}return(n=a).\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.$C({type:n}),n.\u0275inj=e.G2t({imports:[h.iI.forChild(R),h.iI]}),a})();var L=r(5553);let C=(()=>{var n;class a{}return(n=a).\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.$C({type:n}),n.\u0275inj=e.G2t({imports:[y.MD,p.YN,i.bv,P,L.h]}),a})()}}]); \ No newline at end of file diff --git a/www/246.40c5b07bd0aaa622.js b/www/246.40c5b07bd0aaa622.js deleted file mode 100644 index bebebc0..0000000 --- a/www/246.40c5b07bd0aaa622.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkapp=self.webpackChunkapp||[]).push([[246],{246:($e,fe,z)=>{"use strict";z.r(fe),z.d(fe,{ShowMapPageModule:()=>T});var Ut=z(177),l=z(4341),v=z(7863),r=z(305),h=z(8244),a=z(5841),c=z(4438);const d=[{path:"",component:(()=>{var g;class y{constructor(){this.ripeData={fromLatitude:0,fromLongitude:0,toLatitude:0,toLongitude:0,latency:0}}ngOnInit(){}ionViewDidEnter(){this.leafletMap()}leafletMap(){this.map=h.map("mapId").setView([0,0],2.5),h.tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",{attribution:"edupala.com \xa9 Angular LeafLet"}).addTo(this.map),(0,a.antPath)([[this.ripeData.fromLatitude,this.ripeData.fromLongitude],[this.ripeData.toLatitude,this.ripeData.toLongitude]],{color:"#FF0000",weight:5,opacity:.6}).addTo(this.map);const w=h.divIcon({className:"label-icon",html:`
Latency: ${this.ripeData.latency} ms
`,iconSize:[120,20]});h.marker([(this.ripeData.fromLatitude+this.ripeData.toLatitude)/2,(this.ripeData.fromLongitude+this.ripeData.toLongitude)/2],{icon:w}).addTo(this.map),setTimeout(()=>{this.map.invalidateSize()},100)}ngOnDestroy(){this.map.remove()}}return(g=y).\u0275fac=function(w){return new(w||g)},g.\u0275cmp=c.VBU({type:g,selectors:[["app-show-map"]],decls:6,vars:1,consts:[[3,"translucent"],["id","mapId",2,"width","100%","height","100%"]],template:function(w,C){1&w&&(c.j41(0,"ion-header",0)(1,"ion-toolbar")(2,"ion-title"),c.EFF(3,"show-map"),c.k0s()()(),c.j41(4,"ion-content"),c.nrm(5,"div",1),c.k0s()),2&w&&c.Y8G("translucent",!0)},dependencies:[v.W9,v.eU,v.BC,v.ai]}),y})()}];let _=(()=>{var g;class y{}return(g=y).\u0275fac=function(w){return new(w||g)},g.\u0275mod=c.$C({type:g}),g.\u0275inj=c.G2t({imports:[r.iI.forChild(d),r.iI]}),y})(),T=(()=>{var g;class y{}return(g=y).\u0275fac=function(w){return new(w||g)},g.\u0275mod=c.$C({type:g}),g.\u0275inj=c.G2t({imports:[Ut.MD,l.YN,v.bv,_]}),y})()},5841:($e,fe,z)=>{var Ut;window,$e.exports=(Ut=z(8244),function(l){var v={};function r(h){if(v[h])return v[h].exports;var a=v[h]={i:h,l:!1,exports:{}};return l[h].call(a.exports,a,a.exports,r),a.l=!0,a.exports}return r.m=l,r.c=v,r.d=function(h,a,c){r.o(h,a)||Object.defineProperty(h,a,{enumerable:!0,get:c})},r.r=function(h){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(h,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(h,"__esModule",{value:!0})},r.t=function(h,a){if(1&a&&(h=r(h)),8&a||4&a&&"object"==typeof h&&h&&h.__esModule)return h;var c=Object.create(null);if(r.r(c),Object.defineProperty(c,"default",{enumerable:!0,value:h}),2&a&&"string"!=typeof h)for(var f in h)r.d(c,f,function(d){return h[d]}.bind(null,f));return c},r.n=function(h){var a=h&&h.__esModule?function(){return h.default}:function(){return h};return r.d(a,"a",a),a},r.o=function(h,a){return Object.prototype.hasOwnProperty.call(h,a)},r.p="",r(r.s=59)}([function(l,v){l.exports="object"==typeof window&&window&&window.Math==Math?window:"object"==typeof self&&self&&self.Math==Math?self:Function("return this")()},function(l,v){l.exports=Ut},function(l,v,r){var h=r(4);l.exports=function(a){if(!h(a))throw TypeError(String(a)+" is not an object");return a}},function(l,v,r){var h=r(0),a=r(11).f,c=r(16),f=r(33),d=r(30),_=r(52),T=r(69);l.exports=function(g,y){var b,w,C,H,G,J=g.target,$=g.global,et=g.stat;if(b=$?h:et?h[J]||d(J,{}):(h[J]||{}).prototype)for(w in y){if(H=y[w],C=g.noTargetGet?(G=a(b,w))&&G.value:b[w],!T($?w:J+(et?".":"#")+w,g.forced)&&void 0!==C){if(typeof H==typeof C)continue;_(H,C)}(g.sham||C&&C.sham)&&c(H,"sham",!0),f(b,w,H,g)}}},function(l,v){l.exports=function(r){return"object"==typeof r?null!==r:"function"==typeof r}},function(l,v){l.exports=function(r){try{return!!r()}catch{return!0}}},function(l,v,r){var h=r(20),a=r(7),c=r(55),f=r(8).f;l.exports=function(d){var _=h.Symbol||(h.Symbol={});a(_,d)||f(_,d,{value:c.f(d)})}},function(l,v){var r={}.hasOwnProperty;l.exports=function(h,a){return r.call(h,a)}},function(l,v,r){var h=r(9),a=r(46),c=r(2),f=r(13),d=Object.defineProperty;v.f=h?d:function(_,T,g){if(c(_),T=f(T,!0),c(g),a)try{return d(_,T,g)}catch{}if("get"in g||"set"in g)throw TypeError("Accessors not supported");return"value"in g&&(_[T]=g.value),_}},function(l,v,r){l.exports=!r(5)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(l,v,r){var h=r(15)("wks"),a=r(31),c=r(0).Symbol,f=r(49);l.exports=function(d){return h[d]||(h[d]=f&&c[d]||(f?c:a)("Symbol."+d))}},function(l,v,r){var h=r(9),a=r(32),c=r(14),f=r(17),d=r(13),_=r(7),T=r(46),g=Object.getOwnPropertyDescriptor;v.f=h?g:function(y,b){if(y=f(y),b=d(b,!0),T)try{return g(y,b)}catch{}if(_(y,b))return c(!a.f.call(y,b),y[b])}},function(l,v,r){l.exports=r(21)},function(l,v,r){var h=r(4);l.exports=function(a,c){if(!h(a))return a;var f,d;if(c&&"function"==typeof(f=a.toString)&&!h(d=f.call(a))||"function"==typeof(f=a.valueOf)&&!h(d=f.call(a))||!c&&"function"==typeof(f=a.toString)&&!h(d=f.call(a)))return d;throw TypeError("Can't convert object to primitive value")}},function(l,v){l.exports=function(r,h){return{enumerable:!(1&r),configurable:!(2&r),writable:!(4&r),value:h}}},function(l,v,r){var h=r(0),a=r(30),c=h["__core-js_shared__"]||a("__core-js_shared__",{});(l.exports=function(f,d){return c[f]||(c[f]=void 0!==d?d:{})})("versions",[]).push({version:"3.0.1",mode:r(48)?"pure":"global",copyright:"\xa9 2019 Denis Pushkarev (zloirock.ru)"})},function(l,v,r){var h=r(8),a=r(14);l.exports=r(9)?function(c,f,d){return h.f(c,f,a(1,d))}:function(c,f,d){return c[f]=d,c}},function(l,v,r){var h=r(65),a=r(43);l.exports=function(c){return h(a(c))}},function(l,v,r){var h=r(15)("keys"),a=r(31);l.exports=function(c){return h[c]||(h[c]=a(c))}},function(l,v){l.exports={}},function(l,v,r){l.exports=r(0)},function(l,v,r){var h=function(){return this||"object"==typeof self&&self}()||Function("return this")(),a=h.regeneratorRuntime&&Object.getOwnPropertyNames(h).indexOf("regeneratorRuntime")>=0,c=a&&h.regeneratorRuntime;if(h.regeneratorRuntime=void 0,l.exports=r(22),a)h.regeneratorRuntime=c;else try{delete h.regeneratorRuntime}catch{h.regeneratorRuntime=void 0}},function(l,v){!function(r){"use strict";var h,a=Object.prototype,c=a.hasOwnProperty,f="function"==typeof Symbol?Symbol:{},d=f.iterator||"@@iterator",_=f.asyncIterator||"@@asyncIterator",T=f.toStringTag||"@@toStringTag",g="object"==typeof l,y=r.regeneratorRuntime;if(y)g&&(l.exports=y);else{(y=r.regeneratorRuntime=g?l.exports:{}).wrap=pt;var b="suspendedStart",w="suspendedYield",C="executing",H="completed",G={},J={};J[d]=function(){return this};var $=Object.getPrototypeOf,et=$&&$($(Z([])));et&&et!==a&&c.call(et,d)&&(J=et);var ct=I.prototype=A.prototype=Object.create(J);E.prototype=ct.constructor=I,I.constructor=E,I[T]=E.displayName="GeneratorFunction",y.isGeneratorFunction=function(S){var x="function"==typeof S&&S.constructor;return!!x&&(x===E||"GeneratorFunction"===(x.displayName||x.name))},y.mark=function(S){return Object.setPrototypeOf?Object.setPrototypeOf(S,I):(S.__proto__=I,T in S||(S[T]="GeneratorFunction")),S.prototype=Object.create(ct),S},y.awrap=function(S){return{__await:S}},j(W.prototype),W.prototype[_]=function(){return this},y.AsyncIterator=W,y.async=function(S,x,B,N){var M=new W(pt(S,x,B,N));return y.isGeneratorFunction(x)?M:M.next().then(function(at){return at.done?at.value:M.next()})},j(ct),ct[T]="Generator",ct[d]=function(){return this},ct.toString=function(){return"[object Generator]"},y.keys=function(S){var x=[];for(var B in S)x.push(B);return x.reverse(),function N(){for(;x.length;){var M=x.pop();if(M in S)return N.value=M,N.done=!1,N}return N.done=!0,N}},y.values=Z,X.prototype={constructor:X,reset:function(S){if(this.prev=0,this.next=0,this.sent=this._sent=h,this.done=!1,this.delegate=null,this.method="next",this.arg=h,this.tryEntries.forEach(P),!S)for(var x in this)"t"===x.charAt(0)&&c.call(this,x)&&!isNaN(+x.slice(1))&&(this[x]=h)},stop:function(){this.done=!0;var S=this.tryEntries[0].completion;if("throw"===S.type)throw S.arg;return this.rval},dispatchException:function(S){if(this.done)throw S;var x=this;function B(Et,nt){return at.type="throw",at.arg=S,x.next=Et,nt&&(x.method="next",x.arg=h),!!nt}for(var N=this.tryEntries.length-1;N>=0;--N){var M=this.tryEntries[N],at=M.completion;if("root"===M.tryLoc)return B("end");if(M.tryLoc<=this.prev){var vt=c.call(M,"catchLoc"),St=c.call(M,"finallyLoc");if(vt&&St){if(this.prev=0;--B){var N=this.tryEntries[B];if(N.tryLoc<=this.prev&&c.call(N,"finallyLoc")&&this.prev=0;--x){var B=this.tryEntries[x];if(B.finallyLoc===S)return this.complete(B.completion,B.afterLoc),P(B),G}},catch:function(S){for(var x=this.tryEntries.length-1;x>=0;--x){var B=this.tryEntries[x];if(B.tryLoc===S){var N=B.completion;if("throw"===N.type){var M=N.arg;P(B)}return M}}throw new Error("illegal catch attempt")},delegateYield:function(S,x,B){return this.delegate={iterator:Z(S),resultName:x,nextLoc:B},"next"===this.method&&(this.arg=h),G}}}function pt(S,x,B,N){var at=Object.create((x&&x.prototype instanceof A?x:A).prototype),vt=new X(N||[]);return at._invoke=function(St,Et,nt){var ht=b;return function(xt,Zt){if(ht===C)throw new Error("Generator is already running");if(ht===H){if("throw"===xt)throw Zt;return q()}for(nt.method=xt,nt.arg=Zt;;){var _t=nt.delegate;if(_t){var Pt=K(_t,nt);if(Pt){if(Pt===G)continue;return Pt}}if("next"===nt.method)nt.sent=nt._sent=nt.arg;else if("throw"===nt.method){if(ht===b)throw ht=H,nt.arg;nt.dispatchException(nt.arg)}else"return"===nt.method&&nt.abrupt("return",nt.arg);ht=C;var ut=D(St,Et,nt);if("normal"===ut.type){if(ht=nt.done?H:w,ut.arg===G)continue;return{value:ut.arg,done:nt.done}}"throw"===ut.type&&(ht=H,nt.method="throw",nt.arg=ut.arg)}}}(S,B,vt),at}function D(S,x,B){try{return{type:"normal",arg:S.call(x,B)}}catch(N){return{type:"throw",arg:N}}}function A(){}function E(){}function I(){}function j(S){["next","throw","return"].forEach(function(x){S[x]=function(B){return this._invoke(x,B)}})}function W(S){var x;this._invoke=function(B,N){function M(){return new Promise(function(at,vt){!function St(Et,nt,ht,xt){var Zt=D(S[Et],S,nt);if("throw"!==Zt.type){var _t=Zt.arg,Pt=_t.value;return Pt&&"object"==typeof Pt&&c.call(Pt,"__await")?Promise.resolve(Pt.__await).then(function(ut){St("next",ut,ht,xt)},function(ut){St("throw",ut,ht,xt)}):Promise.resolve(Pt).then(function(ut){_t.value=ut,ht(_t)},function(ut){return St("throw",ut,ht,xt)})}xt(Zt.arg)}(B,N,at,vt)})}return x=x?x.then(M,M):M()}}function K(S,x){var B=S.iterator[x.method];if(B===h){if(x.delegate=null,"throw"===x.method){if(S.iterator.return&&(x.method="return",x.arg=h,K(S,x),"throw"===x.method))return G;x.method="throw",x.arg=new TypeError("The iterator does not provide a 'throw' method")}return G}var N=D(B,S.iterator,x.arg);if("throw"===N.type)return x.method="throw",x.arg=N.arg,x.delegate=null,G;var M=N.arg;return M?M.done?(x[S.resultName]=M.value,x.next=S.nextLoc,"return"!==x.method&&(x.method="next",x.arg=h),x.delegate=null,G):M:(x.method="throw",x.arg=new TypeError("iterator result is not an object"),x.delegate=null,G)}function k(S){var x={tryLoc:S[0]};1 in S&&(x.catchLoc=S[1]),2 in S&&(x.finallyLoc=S[2],x.afterLoc=S[3]),this.tryEntries.push(x)}function P(S){var x=S.completion||{};x.type="normal",delete x.arg,S.completion=x}function X(S){this.tryEntries=[{tryLoc:"root"}],S.forEach(k,this),this.reset(!0)}function Z(S){if(S){var x=S[d];if(x)return x.call(S);if("function"==typeof S.next)return S;if(!isNaN(S.length)){var B=-1,N=function M(){for(;++B=0&&g.splice(A,1)}function G(D){var A=document.createElement("style");if(void 0===D.attrs.type&&(D.attrs.type="text/css"),void 0===D.attrs.nonce){var E=r.nc;E&&(D.attrs.nonce=E)}return J(A,D.attrs),C(D,A),A}function J(D,A){Object.keys(A).forEach(function(E){D.setAttribute(E,A[E])})}function $(D,A){var E,I,j,W,k,P;if(A.transform&&D.css){if(!(W="function"==typeof A.transform?A.transform(D.css):A.transform.default(D.css)))return function(){};D.css=W}if(A.singleton){var K=T++;E=_||(_=G(A)),I=pt.bind(null,E,K,!1),j=pt.bind(null,E,K,!0)}else D.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(k=A,P=document.createElement("link"),void 0===k.attrs.type&&(k.attrs.type="text/css"),k.attrs.rel="stylesheet",J(P,k.attrs),C(k,P),I=function(k,P,X){var Z=X.css,q=X.sourceMap;(P.convertToAbsoluteUrls||void 0===P.convertToAbsoluteUrls&&q)&&(Z=y(Z)),q&&(Z+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(q))))+" */");var x=new Blob([Z],{type:"text/css"}),B=k.href;k.href=URL.createObjectURL(x),B&&URL.revokeObjectURL(B)}.bind(null,E=P,A),j=function(){H(E),E.href&&URL.revokeObjectURL(E.href)}):(E=G(A),I=function(k,P){var X=P.css,Z=P.media;if(Z&&k.setAttribute("media",Z),k.styleSheet)k.styleSheet.cssText=X;else{for(;k.firstChild;)k.removeChild(k.firstChild);k.appendChild(document.createTextNode(X))}}.bind(null,E),j=function(){H(E)});return I(D),function(k){if(k){if(k.css===D.css&&k.media===D.media&&k.sourceMap===D.sourceMap)return;I(D=k)}else j()}}l.exports=function(D,A){if(typeof DEBUG<"u"&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(A=A||{}).attrs="object"==typeof A.attrs?A.attrs:{},A.singleton||"boolean"==typeof A.singleton||(A.singleton=f()),A.insertInto||(A.insertInto="head"),A.insertAt||(A.insertAt="bottom");var E=w(D,A);return b(E,A),function(I){for(var j=[],W=0;W1&&void 0!==arguments[1]?arguments[1]:{};return function(S,x){if(!(S instanceof x))throw new TypeError("Cannot call a class as a function")}(this,I),this,P=!(Z=g(I).call(this))||"object"!==f(Z)&&"function"!=typeof Z?b(this):Z,w(b(b(P)),H,null),w(b(b(P)),G,null),w(b(b(P)),"_map",null),w(b(b(P)),"_path",null),w(b(b(P)),"_animatedPathId",null),w(b(b(P)),"_animatedPathClass","leaflet-ant-path"),w(b(b(P)),"_reversePathClass","".concat(P._animatedPathClass,"__reverse")),w(b(b(P)),"_hardwareAccClass","hardware-acceleration"),w(b(b(P)),"_defaultOptions",{use:h.polyline,paused:!1,reverse:!1,hardwareAcceleration:!1,renderer:Object(h.svg)({pane:"overlayPane"}),delay:400,dashArray:[10,20],weight:5,opacity:.5,color:"#0000FF",pulseColor:"#FFFFFF"}),h.Util.setOptions(b(b(P)),_({},P._defaultOptions,q)),P._path=k,P._animatedPathId="ant-path-".concat((new Date).getTime()),P._mount(),P}var j,W,K;return function(k,P){if("function"!=typeof P&&null!==P)throw new TypeError("Super expression must either be null or a function");k.prototype=Object.create(P&&P.prototype,{constructor:{value:k,writable:!0,configurable:!0}}),P&&y(k,P)}(I,h.FeatureGroup),j=I,K=[{key:J,get:function(){return this}}],(W=[{key:"map",value:function(k){return new this.constructor[Symbol.species](this._path.map(k),_({},this.options))}},{key:et,value:c.a.mark(function k(){return c.a.wrap(function(P){for(;;)switch(P.prev=P.next){case 0:return P.delegateYield(this._path,"t0",1);case 1:case"end":return P.stop()}},k,this)})},{key:"_processOptions",value:function(){var k=this.options,P=this._animatedPathClass,X=this._reversePathClass,Z=this._hardwareAccClass,q=this._animatedPathId,S=k.reverse,x=k.hardwareAcceleration,B=_({},k),N=_({},k);return N.color=N.pulseColor||k.pulseColor,N.className=[P,q,S?X:"",x?"".concat(P,"__").concat(Z):""].join(" "),delete B.dashArray,Array.isArray(N.dashArray)&&(N.dashArray=String(N.dashArray)),{pathOpts:B,pulseOpts:N}}},{key:"_mount",value:function(){var k=this._processOptions(),X=k.pulseOpts,Z=this.options.use;this.addLayer(this[C.main]=Z(this._path,k.pathOpts)),this.addLayer(this[C.pulse]=Z(this._path,X))}},{key:"_calculateAnimationSpeed",value:function(){var k=this.options,P=this._map,X=this._animatedPathId;if(!k.paused&&P){var Z=P.getZoom(),q=document.getElementsByClassName(X),S=1+k.delay/3/Z+"s",x=["-webkit-","-moz-","-ms-","-o-",""].map(function(B){return"".concat(B,"animation-duration: ").concat(S)}).join(";");Array.from(q,function(B){B.style.cssText=x,B.setAttribute("data-animated","true")})}}},{key:"_pureReverse",value:function(){var k=this[C.pulse].getElement();k&&(this.options.reverse?k.classList.remove(this._reversePathClass):k.classList.add(this._reversePathClass))}},{key:"onAdd",value:function(k){return this._map=k,this._map.on("zoomend",this._calculateAnimationSpeed,this),this._mount(),this._calculateAnimationSpeed(),this}},{key:"onRemove",value:function(k){return this._map&&(this._map.off("zoomend",this._calculateAnimationSpeed,this),this._map=null),k&&k.removeLayer(this[C.main]).removeLayer(this[C.pulse]),this}},{key:"pause",value:function(){if(!this.options.paused){var k=this[C.pulse].getElement();return this.options.paused=!0,k&&(k.removeAttribute("style"),k.setAttribute("data-animated","true")),!0}return!1}},{key:"resume",value:function(){var k=this.options;return!!k.paused&&(k.paused=!1,this._calculateAnimationSpeed(),!0)}},{key:"bringToFront",value:function(){return this[C.main].bringToFront(),this[C.pulse].bringToFront(),this}},{key:"bringToBack",value:function(){return this[C.pulse].bringToBack(),this[C.main].bringToBack(),this}},{key:"removeFrom",value:function(k){return k&&k.hasLayer(this)&&k.removeLayer(this),this}},{key:"setStyle",value:function(k){var P=_({},this.options,k),Z=P.delay,q=P.reverse;P.paused?this.pause():this.resume(),Z!==this.options.delay&&(this.options.delay=Z||this._defaultOptions.delay,this._calculateAnimationSpeed()),void 0!==q&&q!==this.options.reverse&&this._pureReverse(),this.options=_({},this.options,k);var S=this._processOptions(),B=S.pulseOpts;return this[C.main].setStyle(S.pathOpts),this[C.pulse].setStyle(B),this}},{key:"reverse",value:function(){return this._pureReverse(),this.options.reverse=!this.options.reverse,this}},{key:"redraw",value:function(){return this[C.main].redraw(),this[C.pulse].redraw(),this}},{key:"addLatLng",value:function(){for(var k,P,X=arguments.length,Z=new Array(X),q=0;q0?a(h(c),9007199254740991):0}},function(l,v){var r=Math.ceil,h=Math.floor;l.exports=function(a){return isNaN(a=+a)?0:(a>0?h:r)(a)}},function(l,v,r){l.exports=!r(9)&&!r(5)(function(){return 7!=Object.defineProperty(r(47)("div"),"a",{get:function(){return 7}}).a})},function(l,v,r){var h=r(4),a=r(0).document,c=h(a)&&h(a.createElement);l.exports=function(f){return c?a.createElement(f):{}}},function(l,v){l.exports=!1},function(l,v,r){l.exports=!r(5)(function(){return!String(Symbol())})},function(l,v,r){l.exports=r(15)("native-function-to-string",Function.toString)},function(l,v,r){var h,a,c,f=r(66),d=r(4),_=r(16),T=r(7),g=r(18),y=r(19),b=r(0).WeakMap;if(f){var w=new b,C=w.get,H=w.has,G=w.set;h=function($,et){return G.call(w,$,et),et},a=function($){return C.call(w,$)||{}},c=function($){return H.call(w,$)}}else{var J=g("state");y[J]=!0,h=function($,et){return _($,J,et),et},a=function($){return T($,J)?$[J]:{}},c=function($){return T($,J)}}l.exports={set:h,get:a,has:c,enforce:function($){return c($)?a($):h($,{})},getterFor:function($){return function(et){var ct;if(!d(et)||(ct=a(et)).type!==$)throw TypeError("Incompatible receiver, "+$+" required");return ct}}}},function(l,v,r){var h=r(7),a=r(53),c=r(11),f=r(8);l.exports=function(d,_){for(var T=a(_),g=f.f,y=c.f,b=0;by;)h(g,T=_[y++])&&(~c(b,T)||b.push(T));return b}},function(l,v,r){v.f=r(10)},function(l,v,r){var h=r(2),a=r(75),c=r(35),f=r(76),d=r(47),_=r(18)("IE_PROTO"),T=function(){},g=function(){var y,b=d("iframe"),w=c.length;for(b.style.display="none",f.appendChild(b),b.src="javascript:",(y=b.contentWindow.document).open(),y.write(" + diff --git a/www/main.1b0f8b6062d0e377.js b/www/main.1b0f8b6062d0e377.js deleted file mode 100644 index 90a9594..0000000 --- a/www/main.1b0f8b6062d0e377.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkapp=self.webpackChunkapp||[]).push([[8792],{1076:(Tn,Tt,j)=>{"use strict";j.d(Tt,{Am:()=>sn,FA:()=>ye,Fy:()=>Xe,I9:()=>br,Im:()=>Jn,Ku:()=>Qe,T9:()=>vt,Tj:()=>Pt,Uj:()=>et,XA:()=>Re,ZQ:()=>Dt,bD:()=>At,cY:()=>Ge,eX:()=>K,g:()=>ae,hp:()=>_n,jZ:()=>Ot,lT:()=>je,lV:()=>Zt,nr:()=>Ne,sr:()=>Ut,tD:()=>rn,u:()=>be,yU:()=>yt,zW:()=>B});const Fe=function(le){const pe=[];let xe=0;for(let wt=0;wt>6|192,pe[xe++]=63&st|128):55296==(64512&st)&&wt+1>18|240,pe[xe++]=st>>12&63|128,pe[xe++]=st>>6&63|128,pe[xe++]=63&st|128):(pe[xe++]=st>>12|224,pe[xe++]=st>>6&63|128,pe[xe++]=63&st|128)}return pe},Ae={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(le,pe){if(!Array.isArray(le))throw Error("encodeByteArray takes an array as a parameter");this.init_();const xe=pe?this.byteToCharMapWebSafe_:this.byteToCharMap_,wt=[];for(let st=0;st>6,Er=63&cr;Ir||(Er=64,Pn||(Dn=64)),wt.push(xe[pn>>2],xe[(3&pn)<<4|Kn>>4],xe[Dn],xe[Er])}return wt.join("")},encodeString(le,pe){return this.HAS_NATIVE_SUPPORT&&!pe?btoa(le):this.encodeByteArray(Fe(le),pe)},decodeString(le,pe){return this.HAS_NATIVE_SUPPORT&&!pe?atob(le):function(le){const pe=[];let xe=0,wt=0;for(;xe191&&st<224){const pn=le[xe++];pe[wt++]=String.fromCharCode((31&st)<<6|63&pn)}else if(st>239&&st<365){const Ir=((7&st)<<18|(63&le[xe++])<<12|(63&le[xe++])<<6|63&le[xe++])-65536;pe[wt++]=String.fromCharCode(55296+(Ir>>10)),pe[wt++]=String.fromCharCode(56320+(1023&Ir))}else{const pn=le[xe++],Pn=le[xe++];pe[wt++]=String.fromCharCode((15&st)<<12|(63&pn)<<6|63&Pn)}}return pe.join("")}(this.decodeStringToByteArray(le,pe))},decodeStringToByteArray(le,pe){this.init_();const xe=pe?this.charToByteMapWebSafe_:this.charToByteMap_,wt=[];for(let st=0;st>4),64!==cr&&(wt.push(Kn<<4&240|cr>>2),64!==On&&wt.push(cr<<6&192|On))}return wt},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let le=0;le=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(le)]=le,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(le)]=le)}}};class se extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}const et=function(le){return function(le){const pe=Fe(le);return Ae.encodeByteArray(pe,!0)}(le).replace(/\./g,"")},be=function(le){try{return Ae.decodeString(le,!0)}catch(pe){console.error("base64Decode failed: ",pe)}return null},lt=()=>{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 le=process.env.__FIREBASE_DEFAULTS__;return le?JSON.parse(le):void 0})()||(()=>{if(typeof document>"u")return;let le;try{le=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch{return}const pe=le&&be(le[1]);return pe&&JSON.parse(pe)})()}catch(le){return void console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${le}`)}},Pt=le=>{var pe,xe;return null===(xe=null===(pe=lt())||void 0===pe?void 0:pe.emulatorHosts)||void 0===xe?void 0:xe[le]},yt=le=>{const pe=Pt(le);if(!pe)return;const xe=pe.lastIndexOf(":");if(xe<=0||xe+1===pe.length)throw new Error(`Invalid host ${pe} with no separate hostname and port!`);const wt=parseInt(pe.substring(xe+1),10);return"["===pe[0]?[pe.substring(1,xe-1),wt]:[pe.substring(0,xe),wt]},vt=()=>{var le;return null===(le=lt())||void 0===le?void 0:le.config},Re=le=>{var pe;return null===(pe=lt())||void 0===pe?void 0:pe[`_${le}`]};class Ge{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((pe,xe)=>{this.resolve=pe,this.reject=xe})}wrapCallback(pe){return(xe,wt)=>{xe?this.reject(xe):this.resolve(wt),"function"==typeof pe&&(this.promise.catch(()=>{}),1===pe.length?pe(xe):pe(xe,wt))}}}function Xe(le,pe){if(le.uid)throw new Error('The "uid" field is no longer supported by mockUserToken. Please use "sub" instead for Firebase Auth User ID.');const wt=pe||"demo-project",st=le.iat||0,pn=le.sub||le.user_id;if(!pn)throw new Error("mockUserToken must contain 'sub' or 'user_id' field!");const Pn=Object.assign({iss:`https://securetoken.google.com/${wt}`,aud:wt,iat:st,exp:st+3600,auth_time:st,sub:pn,user_id:pn,firebase:{sign_in_provider:"custom",identities:{}}},le);return[et(JSON.stringify({alg:"none",type:"JWT"})),et(JSON.stringify(Pn)),""].join(".")}function Dt(){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(Dt())}function Ut(){const le="object"==typeof chrome?chrome.runtime:"object"==typeof browser?browser.runtime:void 0;return"object"==typeof le&&void 0!==le.id}function Zt(){return"object"==typeof navigator&&"ReactNative"===navigator.product}function je(){const le=Dt();return le.indexOf("MSIE ")>=0||le.indexOf("Trident/")>=0}function Ne(){return!function We(){var le;const pe=null===(le=lt())||void 0===le?void 0:le.forceEnvironment;if("node"===pe)return!0;if("browser"===pe)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 K(){return new Promise((le,pe)=>{try{let xe=!0;const wt="validate-browser-context-for-indexeddb-analytics-module",st=self.indexedDB.open(wt);st.onsuccess=()=>{st.result.close(),xe||self.indexedDB.deleteDatabase(wt),le(!0)},st.onupgradeneeded=()=>{xe=!1},st.onerror=()=>{var pn;pe((null===(pn=st.error)||void 0===pn?void 0:pn.message)||"")}}catch(xe){pe(xe)}})}class ae extends Error{constructor(pe,xe,wt){super(xe),this.code=pe,this.customData=wt,this.name="FirebaseError",Object.setPrototypeOf(this,ae.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,ye.prototype.create)}}class ye{constructor(pe,xe,wt){this.service=pe,this.serviceName=xe,this.errors=wt}create(pe,...xe){const wt=xe[0]||{},st=`${this.service}/${pe}`,pn=this.errors[pe],Pn=pn?function Te(le,pe){return le.replace(ft,(xe,wt)=>{const st=pe[wt];return null!=st?String(st):`<${wt}?>`})}(pn,wt):"Error";return new ae(st,`${this.serviceName}: ${Pn} (${st}).`,wt)}}const ft=/\{\$([^}]+)}/g;function Jn(le){for(const pe in le)if(Object.prototype.hasOwnProperty.call(le,pe))return!1;return!0}function At(le,pe){if(le===pe)return!0;const xe=Object.keys(le),wt=Object.keys(pe);for(const st of xe){if(!wt.includes(st))return!1;const pn=le[st],Pn=pe[st];if(kt(pn)&&kt(Pn)){if(!At(pn,Pn))return!1}else if(pn!==Pn)return!1}for(const st of wt)if(!xe.includes(st))return!1;return!0}function kt(le){return null!==le&&"object"==typeof le}function sn(le){const pe=[];for(const[xe,wt]of Object.entries(le))Array.isArray(wt)?wt.forEach(st=>{pe.push(encodeURIComponent(xe)+"="+encodeURIComponent(st))}):pe.push(encodeURIComponent(xe)+"="+encodeURIComponent(wt));return pe.length?"&"+pe.join("&"):""}function br(le){const pe={};return le.replace(/^\?/,"").split("&").forEach(wt=>{if(wt){const[st,pn]=wt.split("=");pe[decodeURIComponent(st)]=decodeURIComponent(pn)}}),pe}function _n(le){const pe=le.indexOf("?");if(!pe)return"";const xe=le.indexOf("#",pe);return le.substring(pe,xe>0?xe:void 0)}function rn(le,pe){const xe=new Wt(le,pe);return xe.subscribe.bind(xe)}class Wt{constructor(pe,xe){this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Promise.resolve(),this.finalized=!1,this.onNoObservers=xe,this.task.then(()=>{pe(this)}).catch(wt=>{this.error(wt)})}next(pe){this.forEachObserver(xe=>{xe.next(pe)})}error(pe){this.forEachObserver(xe=>{xe.error(pe)}),this.close(pe)}complete(){this.forEachObserver(pe=>{pe.complete()}),this.close()}subscribe(pe,xe,wt){let st;if(void 0===pe&&void 0===xe&&void 0===wt)throw new Error("Missing Observer.");st=function Sr(le,pe){if("object"!=typeof le||null===le)return!1;for(const xe of pe)if(xe in le&&"function"==typeof le[xe])return!0;return!1}(pe,["next","error","complete"])?pe:{next:pe,error:xe,complete:wt},void 0===st.next&&(st.next=Vr),void 0===st.error&&(st.error=Vr),void 0===st.complete&&(st.complete=Vr);const pn=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then(()=>{try{this.finalError?st.error(this.finalError):st.complete()}catch{}}),this.observers.push(st),pn}unsubscribeOne(pe){void 0===this.observers||void 0===this.observers[pe]||(delete this.observers[pe],this.observerCount-=1,0===this.observerCount&&void 0!==this.onNoObservers&&this.onNoObservers(this))}forEachObserver(pe){if(!this.finalized)for(let xe=0;xe{if(void 0!==this.observers&&void 0!==this.observers[pe])try{xe(this.observers[pe])}catch(wt){typeof console<"u"&&console.error&&console.error(wt)}})}close(pe){this.finalized||(this.finalized=!0,void 0!==pe&&(this.finalError=pe),this.task.then(()=>{this.observers=void 0,this.onNoObservers=void 0}))}}function Vr(){}function Qe(le){return le&&le._delegate?le._delegate:le}},4442:(Tn,Tt,j)=>{"use strict";j.d(Tt,{L:()=>Y,a:()=>Ae,b:()=>se,c:()=>Je,d:()=>et,g:()=>ht}),j(5531);const Y="ionViewWillEnter",Ae="ionViewDidEnter",se="ionViewWillLeave",Je="ionViewDidLeave",et="ionViewWillUnload",ht=Ne=>Ne.classList.contains("ion-page")?Ne:Ne.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")||Ne},5531:(Tn,Tt,j)=>{"use strict";j.d(Tt,{a:()=>be,c:()=>c,g:()=>et});class g{constructor(){this.m=new Map}reset(Ne){this.m=new Map(Object.entries(Ne))}get(Ne,B){const K=this.m.get(Ne);return void 0!==K?K:B}getBoolean(Ne,B=!1){const K=this.m.get(Ne);return void 0===K?B:"string"==typeof K?"true"===K:!!K}getNumber(Ne,B){const K=parseFloat(this.m.get(Ne));return isNaN(K)?void 0!==B?B:NaN:K}set(Ne,B){this.m.set(Ne,B)}}const c=new g,et=ht=>Ee(ht),be=(ht,Ne)=>("string"==typeof ht&&(Ne=ht,ht=void 0),et(ht).includes(Ne)),Ee=(ht=window)=>{if(typeof ht>"u")return[];ht.Ionic=ht.Ionic||{};let Ne=ht.Ionic.platforms;return null==Ne&&(Ne=ht.Ionic.platforms=Ve(ht),Ne.forEach(B=>ht.document.documentElement.classList.add(`plt-${B}`))),Ne},Ve=ht=>{const Ne=c.get("platform");return Object.keys(Zt).filter(B=>{const K=null==Ne?void 0:Ne[B];return"function"==typeof K?K(ht):Zt[B](ht)})},Le=ht=>!!(bt(ht,/iPad/i)||bt(ht,/Macintosh/i)&&vt(ht)),ct=ht=>bt(ht,/android|sink/i),vt=ht=>Ut(ht,"(any-pointer:coarse)"),Ge=ht=>Xe(ht)||Dt(ht),Xe=ht=>!!(ht.cordova||ht.phonegap||ht.PhoneGap),Dt=ht=>{const Ne=ht.Capacitor;return!(null==Ne||!Ne.isNative)},bt=(ht,Ne)=>Ne.test(ht.navigator.userAgent),Ut=(ht,Ne)=>{var B;return null===(B=ht.matchMedia)||void 0===B?void 0:B.call(ht,Ne).matches},Zt={ipad:Le,iphone:ht=>bt(ht,/iPhone/i),ios:ht=>bt(ht,/iPhone|iPod/i)||Le(ht),android:ct,phablet:ht=>{const Ne=ht.innerWidth,B=ht.innerHeight,K=Math.min(Ne,B),ne=Math.max(Ne,B);return K>390&&K<520&&ne>620&&ne<800},tablet:ht=>{const Ne=ht.innerWidth,B=ht.innerHeight,K=Math.min(Ne,B),ne=Math.max(Ne,B);return Le(ht)||(ht=>ct(ht)&&!bt(ht,/mobile/i))(ht)||K>460&&K<820&&ne>780&&ne<1400},cordova:Xe,capacitor:Dt,electron:ht=>bt(ht,/electron/i),pwa:ht=>{var Ne;return!!(null!==(Ne=ht.matchMedia)&&void 0!==Ne&&Ne.call(ht,"(display-mode: standalone)").matches||ht.navigator.standalone)},mobile:vt,mobileweb:ht=>vt(ht)&&!Ge(ht),desktop:ht=>!vt(ht),hybrid:Ge}},9986:(Tn,Tt,j)=>{"use strict";j.d(Tt,{c:()=>Ae});var g=j(8476);let c;const Fe=(se,Je,et)=>{const be=Je.startsWith("animation")?(se=>(void 0===c&&(c=void 0===se.style.animationName&&void 0!==se.style.webkitAnimationName?"-webkit-":""),c))(se):"";se.style.setProperty(be+Je,et)},Y=(se=[],Je)=>{if(void 0!==Je){const et=Array.isArray(Je)?Je:[Je];return[...se,...et]}return se},Ae=se=>{let Je,et,be,Ee,Ve,Be,lt,Ot,We,bt,je,Le=[],Ze=[],pt=[],ct=!1,Pt={},yt=[],vt=[],Re={},Ge=0,Xe=!1,Dt=!1,Ut=!0,Zt=!1,It=!0,nn=!1;const ht=se,Ne=[],B=[],K=[],ne=[],oe=[],ae=[],ye=[],Te=[],ft=[],Nt=[],jt=[],vn="function"==typeof AnimationEffect||void 0!==g.w&&"function"==typeof g.w.AnimationEffect,Sn="function"==typeof Element&&"function"==typeof Element.prototype.animate&&vn,jn=()=>jt,Jn=(R,V)=>{const Z=V.findIndex(U=>U.c===R);Z>-1&&V.splice(Z,1)},At=(R,V)=>((null!=V&&V.oneTimeCallback?B:Ne).push({c:R,o:V}),je),Jt=()=>{Sn&&(jt.forEach(R=>{R.cancel()}),jt.length=0)},sn=()=>{ae.forEach(R=>{null!=R&&R.parentNode&&R.parentNode.removeChild(R)}),ae.length=0},Yn=()=>void 0!==Ve?Ve:lt?lt.getFill():"both",Rn=()=>void 0!==Ot?Ot:void 0!==Be?Be:lt?lt.getDirection():"normal",Rr=()=>Xe?"linear":void 0!==be?be:lt?lt.getEasing():"linear",rr=()=>Dt?0:void 0!==We?We:void 0!==et?et:lt?lt.getDuration():0,Tr=()=>void 0!==Ee?Ee:lt?lt.getIterations():1,Ri=()=>void 0!==bt?bt:void 0!==Je?Je:lt?lt.getDelay():0,Ir=()=>{0!==Ge&&(Ge--,0===Ge&&((()=>{ft.forEach(re=>re()),Nt.forEach(re=>re());const R=Ut?1:0,V=yt,Z=vt,U=Re;ne.forEach(re=>{const Oe=re.classList;V.forEach(rt=>Oe.add(rt)),Z.forEach(rt=>Oe.remove(rt));for(const rt in U)U.hasOwnProperty(rt)&&Fe(re,rt,U[rt])}),We=void 0,Ot=void 0,bt=void 0,Ne.forEach(re=>re.c(R,je)),B.forEach(re=>re.c(R,je)),B.length=0,It=!0,Ut&&(Zt=!0),Ut=!0})(),lt&<.animationFinish()))},hi=()=>{(()=>{ye.forEach(U=>U()),Te.forEach(U=>U());const R=Ze,V=pt,Z=Pt;ne.forEach(U=>{const re=U.classList;R.forEach(Oe=>re.add(Oe)),V.forEach(Oe=>re.remove(Oe));for(const Oe in Z)Z.hasOwnProperty(Oe)&&Fe(U,Oe,Z[Oe])})})(),Le.length>0&&Sn&&(ne.forEach(R=>{const V=R.animate(Le,{id:ht,delay:Ri(),duration:rr(),easing:Rr(),iterations:Tr(),fill:Yn(),direction:Rn()});V.pause(),jt.push(V)}),jt.length>0&&(jt[0].onfinish=()=>{Ir()})),ct=!0},On=R=>{R=Math.min(Math.max(R,0),.9999),Sn&&jt.forEach(V=>{V.currentTime=V.effect.getComputedTiming().delay+rr()*R,V.pause()})},Dn=R=>{jt.forEach(V=>{V.effect.updateTiming({delay:Ri(),duration:rr(),easing:Rr(),iterations:Tr(),fill:Yn(),direction:Rn()})}),void 0!==R&&On(R)},Er=(R=!1,V=!0,Z)=>(R&&oe.forEach(U=>{U.update(R,V,Z)}),Sn&&Dn(Z),je),Ti=()=>{ct&&(Sn?jt.forEach(R=>{R.pause()}):ne.forEach(R=>{Fe(R,"animation-play-state","paused")}),nn=!0)},Rt=R=>new Promise(V=>{null!=R&&R.sync&&(Dt=!0,At(()=>Dt=!1,{oneTimeCallback:!0})),ct||hi(),Zt&&(Sn&&(On(0),Dn()),Zt=!1),It&&(Ge=oe.length+1,It=!1);const Z=()=>{Jn(U,B),V()},U=()=>{Jn(Z,K),V()};At(U,{oneTimeCallback:!0}),((R,V)=>{K.push({c:R,o:{oneTimeCallback:!0}})})(Z),oe.forEach(re=>{re.play()}),Sn?(jt.forEach(R=>{R.play()}),(0===Le.length||0===ne.length)&&Ir()):Ir(),nn=!1}),Bt=(R,V)=>{const Z=Le[0];return void 0===Z||void 0!==Z.offset&&0!==Z.offset?Le=[{offset:0,[R]:V},...Le]:Z[R]=V,je};return je={parentAnimation:lt,elements:ne,childAnimations:oe,id:ht,animationFinish:Ir,from:Bt,to:(R,V)=>{const Z=Le[Le.length-1];return void 0===Z||void 0!==Z.offset&&1!==Z.offset?Le=[...Le,{offset:1,[R]:V}]:Z[R]=V,je},fromTo:(R,V,Z)=>Bt(R,V).to(R,Z),parent:R=>(lt=R,je),play:Rt,pause:()=>(oe.forEach(R=>{R.pause()}),Ti(),je),stop:()=>{oe.forEach(R=>{R.stop()}),ct&&(Jt(),ct=!1),Xe=!1,Dt=!1,It=!0,Ot=void 0,We=void 0,bt=void 0,Ge=0,Zt=!1,Ut=!0,nn=!1,K.forEach(R=>R.c(0,je)),K.length=0},destroy:R=>(oe.forEach(V=>{V.destroy(R)}),(R=>{Jt(),R&&sn()})(R),ne.length=0,oe.length=0,Le.length=0,Ne.length=0,B.length=0,ct=!1,It=!0,je),keyframes:R=>{const V=Le!==R;return Le=R,V&&(R=>{Sn&&jn().forEach(V=>{const Z=V.effect;if(Z.setKeyframes)Z.setKeyframes(R);else{const U=new KeyframeEffect(Z.target,R,Z.getTiming());V.effect=U}})})(Le),je},addAnimation:R=>{if(null!=R)if(Array.isArray(R))for(const V of R)V.parent(je),oe.push(V);else R.parent(je),oe.push(R);return je},addElement:R=>{if(null!=R)if(1===R.nodeType)ne.push(R);else if(R.length>=0)for(let V=0;V(Ve=R,Er(!0),je),direction:R=>(Be=R,Er(!0),je),iterations:R=>(Ee=R,Er(!0),je),duration:R=>(!Sn&&0===R&&(R=1),et=R,Er(!0),je),easing:R=>(be=R,Er(!0),je),delay:R=>(Je=R,Er(!0),je),getWebAnimations:jn,getKeyframes:()=>Le,getFill:Yn,getDirection:Rn,getDelay:Ri,getIterations:Tr,getEasing:Rr,getDuration:rr,afterAddRead:R=>(ft.push(R),je),afterAddWrite:R=>(Nt.push(R),je),afterClearStyles:(R=[])=>{for(const V of R)Re[V]="";return je},afterStyles:(R={})=>(Re=R,je),afterRemoveClass:R=>(vt=Y(vt,R),je),afterAddClass:R=>(yt=Y(yt,R),je),beforeAddRead:R=>(ye.push(R),je),beforeAddWrite:R=>(Te.push(R),je),beforeClearStyles:(R=[])=>{for(const V of R)Pt[V]="";return je},beforeStyles:(R={})=>(Pt=R,je),beforeRemoveClass:R=>(pt=Y(pt,R),je),beforeAddClass:R=>(Ze=Y(Ze,R),je),onFinish:At,isRunning:()=>0!==Ge&&!nn,progressStart:(R=!1,V)=>(oe.forEach(Z=>{Z.progressStart(R,V)}),Ti(),Xe=R,ct||hi(),Er(!1,!0,V),je),progressStep:R=>(oe.forEach(V=>{V.progressStep(R)}),On(R),je),progressEnd:(R,V,Z)=>(Xe=!1,oe.forEach(U=>{U.progressEnd(R,V,Z)}),void 0!==Z&&(We=Z),Zt=!1,Ut=!0,0===R?(Ot="reverse"===Rn()?"normal":"reverse","reverse"===Ot&&(Ut=!1),Sn?(Er(),On(1-V)):(bt=(1-V)*rr()*-1,Er(!1,!1))):1===R&&(Sn?(Er(),On(V)):(bt=V*rr()*-1,Er(!1,!1))),void 0!==R&&!lt&&Rt(),je)}}},464:(Tn,Tt,j)=>{"use strict";j.d(Tt,{E:()=>be,a:()=>g,s:()=>Je});const g=Ee=>{try{if(Ee instanceof se)return Ee.value;if(!Fe()||"string"!=typeof Ee||""===Ee)return Ee;if(Ee.includes("onload="))return"";const Ve=document.createDocumentFragment(),Be=document.createElement("div");Ve.appendChild(Be),Be.innerHTML=Ee,Ae.forEach(ct=>{const lt=Ve.querySelectorAll(ct);for(let Pt=lt.length-1;Pt>=0;Pt--){const yt=lt[Pt];yt.parentNode?yt.parentNode.removeChild(yt):Ve.removeChild(yt);const vt=ve(yt);for(let Re=0;Re{if(Ee.nodeType&&1!==Ee.nodeType)return;if(typeof NamedNodeMap<"u"&&!(Ee.attributes instanceof NamedNodeMap))return void Ee.remove();for(let Be=Ee.attributes.length-1;Be>=0;Be--){const Le=Ee.attributes.item(Be),Ze=Le.name;if(!Y.includes(Ze.toLowerCase())){Ee.removeAttribute(Ze);continue}const pt=Le.value,ct=Ee[Ze];(null!=pt&&pt.toLowerCase().includes("javascript:")||null!=ct&&ct.toLowerCase().includes("javascript:"))&&Ee.removeAttribute(Ze)}const Ve=ve(Ee);for(let Be=0;Benull!=Ee.children?Ee.children:Ee.childNodes,Fe=()=>{var Ee;const Ve=window,Be=null===(Ee=null==Ve?void 0:Ve.Ionic)||void 0===Ee?void 0:Ee.config;return!Be||(Be.get?Be.get("sanitizerEnabled",!0):!0===Be.sanitizerEnabled||void 0===Be.sanitizerEnabled)},Y=["class","id","href","src","name","slot"],Ae=["script","style","iframe","meta","link","object","embed"];class se{constructor(Ve){this.value=Ve}}const Je=Ee=>{const Ve=window,Be=Ve.Ionic;if(!Be||!Be.config||"Object"===Be.config.constructor.name)return Ve.Ionic=Ve.Ionic||{},Ve.Ionic.config=Object.assign(Object.assign({},Ve.Ionic.config),Ee),Ve.Ionic.config},be=!1},8621:(Tn,Tt,j)=>{"use strict";j.d(Tt,{C:()=>Y,a:()=>ve,d:()=>Fe});var g=j(467),c=j(4920);const ve=function(){var Ae=(0,g.A)(function*(se,Je,et,be,Ee,Ve){var Be;if(se)return se.attachViewToDom(Je,et,Ee,be);if(!(Ve||"string"==typeof et||et instanceof HTMLElement))throw new Error("framework delegate is missing");const Le="string"==typeof et?null===(Be=Je.ownerDocument)||void 0===Be?void 0:Be.createElement(et):et;return be&&be.forEach(Ze=>Le.classList.add(Ze)),Ee&&Object.assign(Le,Ee),Je.appendChild(Le),yield new Promise(Ze=>(0,c.c)(Le,Ze)),Le});return function(Je,et,be,Ee,Ve,Be){return Ae.apply(this,arguments)}}(),Fe=(Ae,se)=>{if(se){if(Ae)return Ae.removeViewFromDom(se.parentElement,se);se.remove()}return Promise.resolve()},Y=()=>{let Ae,se;return{attachViewToDom:function(){var be=(0,g.A)(function*(Ee,Ve,Be={},Le=[]){var Ze,pt;let ct;if(Ae=Ee,Ve){const Pt="string"==typeof Ve?null===(Ze=Ae.ownerDocument)||void 0===Ze?void 0:Ze.createElement(Ve):Ve;Le.forEach(yt=>Pt.classList.add(yt)),Object.assign(Pt,Be),Ae.appendChild(Pt),ct=Pt,yield new Promise(yt=>(0,c.c)(Pt,yt))}else if(Ae.children.length>0&&("ION-MODAL"===Ae.tagName||"ION-POPOVER"===Ae.tagName)&&!(ct=Ae.children[0]).classList.contains("ion-delegate-host")){const yt=null===(pt=Ae.ownerDocument)||void 0===pt?void 0:pt.createElement("div");yt.classList.add("ion-delegate-host"),Le.forEach(vt=>yt.classList.add(vt)),yt.append(...Ae.children),Ae.appendChild(yt),ct=yt}const lt=document.querySelector("ion-app")||document.body;return se=document.createComment("ionic teleport"),Ae.parentNode.insertBefore(se,Ae),lt.appendChild(Ae),null!=ct?ct:Ae});return function(Ve,Be){return be.apply(this,arguments)}}(),removeViewFromDom:()=>(Ae&&se&&(se.parentNode.insertBefore(Ae,se),se.remove()),Promise.resolve())}}},1970:(Tn,Tt,j)=>{"use strict";j.d(Tt,{B:()=>Fe,G:()=>Y});class c{constructor(se,Je,et,be,Ee){this.id=Je,this.name=et,this.disableScroll=Ee,this.priority=1e6*be+Je,this.ctrl=se}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 se=this.ctrl.capture(this.name,this.id,this.priority);return se&&this.disableScroll&&this.ctrl.disableScroll(this.id),se}release(){this.ctrl&&(this.ctrl.release(this.id),this.disableScroll&&this.ctrl.enableScroll(this.id))}destroy(){this.release(),this.ctrl=void 0}}class ve{constructor(se,Je,et,be){this.id=Je,this.disable=et,this.disableScroll=be,this.ctrl=se}block(){if(this.ctrl){if(this.disable)for(const se of this.disable)this.ctrl.disableGesture(se,this.id);this.disableScroll&&this.ctrl.disableScroll(this.id)}}unblock(){if(this.ctrl){if(this.disable)for(const se of this.disable)this.ctrl.enableGesture(se,this.id);this.disableScroll&&this.ctrl.enableScroll(this.id)}}destroy(){this.unblock(),this.ctrl=void 0}}const Fe="backdrop-no-scroll",Y=new class g{constructor(){this.gestureId=0,this.requestedStart=new Map,this.disabledGestures=new Map,this.disabledScroll=new Set}createGesture(se){var Je;return new c(this,this.newID(),se.name,null!==(Je=se.priority)&&void 0!==Je?Je:0,!!se.disableScroll)}createBlocker(se={}){return new ve(this,this.newID(),se.disable,!!se.disableScroll)}start(se,Je,et){return this.canStart(se)?(this.requestedStart.set(Je,et),!0):(this.requestedStart.delete(Je),!1)}capture(se,Je,et){if(!this.start(se,Je,et))return!1;const be=this.requestedStart;let Ee=-1e4;if(be.forEach(Ve=>{Ee=Math.max(Ee,Ve)}),Ee===et){this.capturedId=Je,be.clear();const Ve=new CustomEvent("ionGestureCaptured",{detail:{gestureName:se}});return document.dispatchEvent(Ve),!0}return be.delete(Je),!1}release(se){this.requestedStart.delete(se),this.capturedId===se&&(this.capturedId=void 0)}disableGesture(se,Je){let et=this.disabledGestures.get(se);void 0===et&&(et=new Set,this.disabledGestures.set(se,et)),et.add(Je)}enableGesture(se,Je){const et=this.disabledGestures.get(se);void 0!==et&&et.delete(Je)}disableScroll(se){this.disabledScroll.add(se),1===this.disabledScroll.size&&document.body.classList.add(Fe)}enableScroll(se){this.disabledScroll.delete(se),0===this.disabledScroll.size&&document.body.classList.remove(Fe)}canStart(se){return!(void 0!==this.capturedId||this.isDisabled(se))}isCaptured(){return void 0!==this.capturedId}isScrollDisabled(){return this.disabledScroll.size>0}isDisabled(se){const Je=this.disabledGestures.get(se);return!!(Je&&Je.size>0)}newID(){return this.gestureId++,this.gestureId}}},6411:(Tn,Tt,j)=>{"use strict";j.r(Tt),j.d(Tt,{MENU_BACK_BUTTON_PRIORITY:()=>et,OVERLAY_BACK_BUTTON_PRIORITY:()=>Je,blockHardwareBackButton:()=>Ae,shouldUseCloseWatcher:()=>Y,startHardwareBackButton:()=>se});var g=j(467),c=j(8476),ve=j(3664);j(9672);const Y=()=>ve.c.get("experimentalCloseWatcher",!1)&&void 0!==c.w&&"CloseWatcher"in c.w,Ae=()=>{document.addEventListener("backbutton",()=>{})},se=()=>{const be=document;let Ee=!1;const Ve=()=>{if(Ee)return;let Be=0,Le=[];const Ze=new CustomEvent("ionBackButton",{bubbles:!1,detail:{register(lt,Pt){Le.push({priority:lt,handler:Pt,id:Be++})}}});be.dispatchEvent(Ze);const pt=function(){var lt=(0,g.A)(function*(Pt){try{if(null!=Pt&&Pt.handler){const yt=Pt.handler(ct);null!=yt&&(yield yt)}}catch(yt){console.error(yt)}});return function(yt){return lt.apply(this,arguments)}}(),ct=()=>{if(Le.length>0){let lt={priority:Number.MIN_SAFE_INTEGER,handler:()=>{},id:-1};Le.forEach(Pt=>{Pt.priority>=lt.priority&&(lt=Pt)}),Ee=!0,Le=Le.filter(Pt=>Pt.id!==lt.id),pt(lt).then(()=>Ee=!1)}};ct()};if(Y()){let Be;const Le=()=>{null==Be||Be.destroy(),Be=new c.w.CloseWatcher,Be.onclose=()=>{Ve(),Le()}};Le()}else be.addEventListener("backbutton",Ve)},Je=100,et=99},4920:(Tn,Tt,j)=>{"use strict";j.d(Tt,{a:()=>Je,b:()=>et,c:()=>ve,d:()=>Le,e:()=>Pt,f:()=>Be,g:()=>be,h:()=>Y,i:()=>se,j:()=>Ze,k:()=>Fe,l:()=>Ve,m:()=>pt,n:()=>lt,o:()=>yt,p:()=>ct,r:()=>Ee,s:()=>vt,t:()=>g});const g=(Re,Ge=0)=>new Promise(Xe=>{c(Re,Ge,Xe)}),c=(Re,Ge=0,Xe)=>{let Dt,Ot;const We={passive:!0},Ut=()=>{Dt&&Dt()},Zt=It=>{(void 0===It||Re===It.target)&&(Ut(),Xe(It))};return Re&&(Re.addEventListener("webkitTransitionEnd",Zt,We),Re.addEventListener("transitionend",Zt,We),Ot=setTimeout(Zt,Ge+500),Dt=()=>{void 0!==Ot&&(clearTimeout(Ot),Ot=void 0),Re.removeEventListener("webkitTransitionEnd",Zt,We),Re.removeEventListener("transitionend",Zt,We)}),Ut},ve=(Re,Ge)=>{Re.componentOnReady?Re.componentOnReady().then(Xe=>Ge(Xe)):Ee(()=>Ge(Re))},Fe=Re=>void 0!==Re.componentOnReady,Y=(Re,Ge=[])=>{const Xe={};return Ge.forEach(Dt=>{Re.hasAttribute(Dt)&&(null!==Re.getAttribute(Dt)&&(Xe[Dt]=Re.getAttribute(Dt)),Re.removeAttribute(Dt))}),Xe},Ae=["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"],se=(Re,Ge)=>{let Xe=Ae;return Ge&&Ge.length>0&&(Xe=Xe.filter(Dt=>!Ge.includes(Dt))),Y(Re,Xe)},Je=(Re,Ge,Xe,Dt)=>{var Ot;if(typeof window<"u"){const We=window,bt=null===(Ot=null==We?void 0:We.Ionic)||void 0===Ot?void 0:Ot.config;if(bt){const Ut=bt.get("_ael");if(Ut)return Ut(Re,Ge,Xe,Dt);if(bt._ael)return bt._ael(Re,Ge,Xe,Dt)}}return Re.addEventListener(Ge,Xe,Dt)},et=(Re,Ge,Xe,Dt)=>{var Ot;if(typeof window<"u"){const We=window,bt=null===(Ot=null==We?void 0:We.Ionic)||void 0===Ot?void 0:Ot.config;if(bt){const Ut=bt.get("_rel");if(Ut)return Ut(Re,Ge,Xe,Dt);if(bt._rel)return bt._rel(Re,Ge,Xe,Dt)}}return Re.removeEventListener(Ge,Xe,Dt)},be=(Re,Ge=Re)=>Re.shadowRoot||Ge,Ee=Re=>"function"==typeof __zone_symbol__requestAnimationFrame?__zone_symbol__requestAnimationFrame(Re):"function"==typeof requestAnimationFrame?requestAnimationFrame(Re):setTimeout(Re),Ve=Re=>!!Re.shadowRoot&&!!Re.attachShadow,Be=Re=>{if(Re.focus(),Re.classList.contains("ion-focusable")){const Ge=Re.closest("ion-app");Ge&&Ge.setFocus([Re])}},Le=(Re,Ge,Xe,Dt,Ot)=>{if(Re||Ve(Ge)){let We=Ge.querySelector("input.aux-input");We||(We=Ge.ownerDocument.createElement("input"),We.type="hidden",We.classList.add("aux-input"),Ge.appendChild(We)),We.disabled=Ot,We.name=Xe,We.value=Dt||""}},Ze=(Re,Ge,Xe)=>Math.max(Re,Math.min(Ge,Xe)),pt=(Re,Ge)=>{if(!Re){const Xe="ASSERT: "+Ge;throw console.error(Xe),new Error(Xe)}},ct=Re=>{if(Re){const Ge=Re.changedTouches;if(Ge&&Ge.length>0){const Xe=Ge[0];return{x:Xe.clientX,y:Xe.clientY}}if(void 0!==Re.pageX)return{x:Re.pageX,y:Re.pageY}}return{x:0,y:0}},lt=Re=>{const Ge="rtl"===document.dir;switch(Re){case"start":return Ge;case"end":return!Ge;default:throw new Error(`"${Re}" is not a valid value for [side]. Use "start" or "end" instead.`)}},Pt=(Re,Ge)=>{const Xe=Re._original||Re;return{_original:Re,emit:yt(Xe.emit.bind(Xe),Ge)}},yt=(Re,Ge=0)=>{let Xe;return(...Dt)=>{clearTimeout(Xe),Xe=setTimeout(Re,Ge,...Dt)}},vt=(Re,Ge)=>{if(null!=Re||(Re={}),null!=Ge||(Ge={}),Re===Ge)return!0;const Xe=Object.keys(Re);if(Xe.length!==Object.keys(Ge).length)return!1;for(const Dt of Xe)if(!(Dt in Ge)||Re[Dt]!==Ge[Dt])return!1;return!0}},5465:(Tn,Tt,j)=>{"use strict";j.d(Tt,{m:()=>Be});var g=j(467),c=j(8476),ve=j(6411),Fe=j(4929),Y=j(4920),Ae=j(3664),se=j(9986);const Je=Le=>(0,se.c)().duration(Le?400:300),et=Le=>{let Ze,pt;const ct=Le.width+8,lt=(0,se.c)(),Pt=(0,se.c)();Le.isEndSide?(Ze=ct+"px",pt="0px"):(Ze=-ct+"px",pt="0px"),lt.addElement(Le.menuInnerEl).fromTo("transform",`translateX(${Ze})`,`translateX(${pt})`);const vt="ios"===(0,Ae.b)(Le),Re=vt?.2:.25;return Pt.addElement(Le.backdropEl).fromTo("opacity",.01,Re),Je(vt).addAnimation([lt,Pt])},be=Le=>{let Ze,pt;const ct=(0,Ae.b)(Le),lt=Le.width;Le.isEndSide?(Ze=-lt+"px",pt=lt+"px"):(Ze=lt+"px",pt=-lt+"px");const Pt=(0,se.c)().addElement(Le.menuInnerEl).fromTo("transform",`translateX(${pt})`,"translateX(0px)"),yt=(0,se.c)().addElement(Le.contentEl).fromTo("transform","translateX(0px)",`translateX(${Ze})`),vt=(0,se.c)().addElement(Le.backdropEl).fromTo("opacity",.01,.32);return Je("ios"===ct).addAnimation([Pt,yt,vt])},Ee=Le=>{const Ze=(0,Ae.b)(Le),pt=Le.width*(Le.isEndSide?-1:1)+"px",ct=(0,se.c)().addElement(Le.contentEl).fromTo("transform","translateX(0px)",`translateX(${pt})`);return Je("ios"===Ze).addAnimation(ct)},Be=(()=>{const Le=new Map,Ze=[],pt=function(){var K=(0,g.A)(function*(ne){const oe=yield Ge(ne,!0);return!!oe&&oe.open()});return function(oe){return K.apply(this,arguments)}}(),ct=function(){var K=(0,g.A)(function*(ne){const oe=yield void 0!==ne?Ge(ne,!0):Xe();return void 0!==oe&&oe.close()});return function(oe){return K.apply(this,arguments)}}(),lt=function(){var K=(0,g.A)(function*(ne){const oe=yield Ge(ne,!0);return!!oe&&oe.toggle()});return function(oe){return K.apply(this,arguments)}}(),Pt=function(){var K=(0,g.A)(function*(ne,oe){const ae=yield Ge(oe);return ae&&(ae.disabled=!ne),ae});return function(oe,ae){return K.apply(this,arguments)}}(),yt=function(){var K=(0,g.A)(function*(ne,oe){const ae=yield Ge(oe);return ae&&(ae.swipeGesture=ne),ae});return function(oe,ae){return K.apply(this,arguments)}}(),vt=function(){var K=(0,g.A)(function*(ne){if(null!=ne){const oe=yield Ge(ne);return void 0!==oe&&oe.isOpen()}return void 0!==(yield Xe())});return function(oe){return K.apply(this,arguments)}}(),Re=function(){var K=(0,g.A)(function*(ne){const oe=yield Ge(ne);return!!oe&&!oe.disabled});return function(oe){return K.apply(this,arguments)}}(),Ge=function(){var K=(0,g.A)(function*(ne,oe=!1){if(yield B(),"start"===ne||"end"===ne){const ye=Ze.filter(ft=>ft.side===ne&&!ft.disabled);if(ye.length>=1)return ye.length>1&&oe&&(0,Fe.p)(`menuController queried for a menu on the "${ne}" side, but ${ye.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.`,ye.map(ft=>ft.el)),ye[0].el;const Te=Ze.filter(ft=>ft.side===ne);if(Te.length>=1)return Te.length>1&&oe&&(0,Fe.p)(`menuController queried for a menu on the "${ne}" side, but ${Te.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.`,Te.map(ft=>ft.el)),Te[0].el}else if(null!=ne)return Ne(ye=>ye.menuId===ne);return Ne(ye=>!ye.disabled)||(Ze.length>0?Ze[0].el:void 0)});return function(oe){return K.apply(this,arguments)}}(),Xe=function(){var K=(0,g.A)(function*(){return yield B(),je()});return function(){return K.apply(this,arguments)}}(),Dt=function(){var K=(0,g.A)(function*(){return yield B(),nn()});return function(){return K.apply(this,arguments)}}(),Ot=function(){var K=(0,g.A)(function*(){return yield B(),ht()});return function(){return K.apply(this,arguments)}}(),We=(K,ne)=>{Le.set(K,ne)},Zt=function(){var K=(0,g.A)(function*(ne,oe,ae){if(ht())return!1;if(oe){const ye=yield Xe();ye&&ne.el!==ye&&(yield ye.setOpen(!1,!1))}return ne._setOpen(oe,ae)});return function(oe,ae,ye){return K.apply(this,arguments)}}(),je=()=>Ne(K=>K._isOpen),nn=()=>Ze.map(K=>K.el),ht=()=>Ze.some(K=>K.isAnimating),Ne=K=>{const ne=Ze.find(K);if(void 0!==ne)return ne.el},B=()=>Promise.all(Array.from(document.querySelectorAll("ion-menu")).map(K=>new Promise(ne=>(0,Y.c)(K,ne))));return We("reveal",Ee),We("push",be),We("overlay",et),null==c.d||c.d.addEventListener("ionBackButton",K=>{const ne=je();ne&&K.detail.register(ve.MENU_BACK_BUTTON_PRIORITY,()=>ne.close())}),{registerAnimation:We,get:Ge,getMenus:Dt,getOpen:Xe,isEnabled:Re,swipeGesture:yt,isAnimating:Ot,isOpen:vt,enable:Pt,toggle:lt,close:ct,open:pt,_getOpenSync:je,_createAnimation:(K,ne)=>{const oe=Le.get(K);if(!oe)throw new Error("animation not registered");return oe(ne)},_register:K=>{Ze.indexOf(K)<0&&Ze.push(K)},_unregister:K=>{const ne=Ze.indexOf(K);ne>-1&&Ze.splice(ne,1)},_setOpen:Zt}})()},8607:(Tn,Tt,j)=>{"use strict";j.r(Tt),j.d(Tt,{GESTURE_CONTROLLER:()=>g.G,createGesture:()=>et});var g=j(1970);const c=(Be,Le,Ze,pt)=>{const ct=ve(Be)?{capture:!!pt.capture,passive:!!pt.passive}:!!pt.capture;let lt,Pt;return Be.__zone_symbol__addEventListener?(lt="__zone_symbol__addEventListener",Pt="__zone_symbol__removeEventListener"):(lt="addEventListener",Pt="removeEventListener"),Be[lt](Le,Ze,ct),()=>{Be[Pt](Le,Ze,ct)}},ve=Be=>{if(void 0===Fe)try{const Le=Object.defineProperty({},"passive",{get:()=>{Fe=!0}});Be.addEventListener("optsTest",()=>{},Le)}catch{Fe=!1}return!!Fe};let Fe;const se=Be=>Be instanceof Document?Be:Be.ownerDocument,et=Be=>{let Le=!1,Ze=!1,pt=!0,ct=!1;const lt=Object.assign({disableScroll:!1,direction:"x",gesturePriority:0,passive:!0,maxAngle:40,threshold:10},Be),Pt=lt.canStart,yt=lt.onWillStart,vt=lt.onStart,Re=lt.onEnd,Ge=lt.notCaptured,Xe=lt.onMove,Dt=lt.threshold,Ot=lt.passive,We=lt.blurOnStart,bt={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},Ut=((Be,Le,Ze)=>{const pt=Ze*(Math.PI/180),ct="x"===Be,lt=Math.cos(pt),Pt=Le*Le;let yt=0,vt=0,Re=!1,Ge=0;return{start(Xe,Dt){yt=Xe,vt=Dt,Ge=0,Re=!0},detect(Xe,Dt){if(!Re)return!1;const Ot=Xe-yt,We=Dt-vt,bt=Ot*Ot+We*We;if(btlt?1:Zt<-lt?-1:0,Re=!1,!0},isGesture:()=>0!==Ge,getDirection:()=>Ge}})(lt.direction,lt.threshold,lt.maxAngle),Zt=g.G.createGesture({name:Be.gestureName,priority:Be.gesturePriority,disableScroll:Be.disableScroll}),nn=()=>{Le&&(ct=!1,Xe&&Xe(bt))},ht=()=>!!Zt.capture()&&(Le=!0,pt=!1,bt.startX=bt.currentX,bt.startY=bt.currentY,bt.startTime=bt.currentTime,yt?yt(bt).then(B):B(),!0),B=()=>{We&&(()=>{if(typeof document<"u"){const ye=document.activeElement;null!=ye&&ye.blur&&ye.blur()}})(),vt&&vt(bt),pt=!0},K=()=>{Le=!1,Ze=!1,ct=!1,pt=!0,Zt.release()},ne=ye=>{const Te=Le,ft=pt;if(K(),ft){if(be(bt,ye),Te)return void(Re&&Re(bt));Ge&&Ge(bt)}},oe=((Be,Le,Ze,pt,ct)=>{let lt,Pt,yt,vt,Re,Ge,Xe,Dt=0;const Ot=Ne=>{Dt=Date.now()+2e3,Le(Ne)&&(!Pt&&Ze&&(Pt=c(Be,"touchmove",Ze,ct)),yt||(yt=c(Ne.target,"touchend",bt,ct)),vt||(vt=c(Ne.target,"touchcancel",bt,ct)))},We=Ne=>{Dt>Date.now()||Le(Ne)&&(!Ge&&Ze&&(Ge=c(se(Be),"mousemove",Ze,ct)),Xe||(Xe=c(se(Be),"mouseup",Ut,ct)))},bt=Ne=>{Zt(),pt&&pt(Ne)},Ut=Ne=>{It(),pt&&pt(Ne)},Zt=()=>{Pt&&Pt(),yt&&yt(),vt&&vt(),Pt=yt=vt=void 0},It=()=>{Ge&&Ge(),Xe&&Xe(),Ge=Xe=void 0},je=()=>{Zt(),It()},nn=(Ne=!0)=>{Ne?(lt||(lt=c(Be,"touchstart",Ot,ct)),Re||(Re=c(Be,"mousedown",We,ct))):(lt&<(),Re&&Re(),lt=Re=void 0,je())};return{enable:nn,stop:je,destroy:()=>{nn(!1),pt=Ze=Le=void 0}}})(lt.el,ye=>{const Te=Ve(ye);return!(Ze||!pt||(Ee(ye,bt),bt.startX=bt.currentX,bt.startY=bt.currentY,bt.startTime=bt.currentTime=Te,bt.velocityX=bt.velocityY=bt.deltaX=bt.deltaY=0,bt.event=ye,Pt&&!1===Pt(bt))||(Zt.release(),!Zt.start()))&&(Ze=!0,0===Dt?ht():(Ut.start(bt.startX,bt.startY),!0))},ye=>{Le?!ct&&pt&&(ct=!0,be(bt,ye),requestAnimationFrame(nn)):(be(bt,ye),Ut.detect(bt.currentX,bt.currentY)&&(!Ut.isGesture()||!ht())&&ae())},ne,{capture:!1,passive:Ot}),ae=()=>{K(),oe.stop(),Ge&&Ge(bt)};return{enable(ye=!0){ye||(Le&&ne(void 0),K()),oe.enable(ye)},destroy(){Zt.destroy(),oe.destroy()}}},be=(Be,Le)=>{if(!Le)return;const Ze=Be.currentX,pt=Be.currentY,ct=Be.currentTime;Ee(Le,Be);const lt=Be.currentX,Pt=Be.currentY,vt=(Be.currentTime=Ve(Le))-ct;if(vt>0&&vt<100){const Ge=(Pt-pt)/vt;Be.velocityX=(lt-Ze)/vt*.7+.3*Be.velocityX,Be.velocityY=.7*Ge+.3*Be.velocityY}Be.deltaX=lt-Be.startX,Be.deltaY=Pt-Be.startY,Be.event=Le},Ee=(Be,Le)=>{let Ze=0,pt=0;if(Be){const ct=Be.changedTouches;if(ct&&ct.length>0){const lt=ct[0];Ze=lt.clientX,pt=lt.clientY}else void 0!==Be.pageX&&(Ze=Be.pageX,pt=Be.pageY)}Le.currentX=Ze,Le.currentY=pt},Ve=Be=>Be.timeStamp||Date.now()},9672:(Tn,Tt,j)=>{"use strict";j.d(Tt,{B:()=>Ae,a:()=>Lo,b:()=>pr,c:()=>ft,d:()=>Sn,e:()=>hr,f:()=>ht,g:()=>Nt,h:()=>je,i:()=>vn,j:()=>Er,k:()=>se,r:()=>xn,w:()=>yi});var g=j(467);var Fe=Object.defineProperty,Ae={isDev:!1,isBrowser:!0,isServer:!1,isTesting:!1},se=H=>{const ie=new URL(H,Gn.$resourcesUrl$);return ie.origin!==ir.location.origin?ie.href:ie.pathname},Je={},Ve=H=>"object"==(H=typeof H)||"function"===H;function Be(H){var ie,De,Ue;return null!=(Ue=null==(De=null==(ie=H.head)?void 0:ie.querySelector('meta[name="csp-nonce"]'))?void 0:De.getAttribute("content"))?Ue:void 0}((H,ie)=>{for(var De in ie)Fe(H,De,{get:ie[De],enumerable:!0})})({},{err:()=>pt,map:()=>ct,ok:()=>Ze,unwrap:()=>lt,unwrapErr:()=>Pt});var Ze=H=>({isOk:!0,isErr:!1,value:H}),pt=H=>({isOk:!1,isErr:!0,value:H});function ct(H,ie){if(H.isOk){const De=ie(H.value);return De instanceof Promise?De.then(Ue=>Ze(Ue)):Ze(De)}if(H.isErr)return pt(H.value);throw"should never get here"}var lt=H=>{if(H.isOk)return H.value;throw H.value},Pt=H=>{if(H.isErr)return H.value;throw H.value},Ot="s-id",We="sty-id",Zt="slot-fb{display:contents}slot-fb[hidden]{display:none}",It="http://www.w3.org/1999/xlink",je=(H,ie,...De)=>{let Ue=null,at=null,nt=null,$t=!1,qt=!1;const Qt=[],tn=bn=>{for(let $n=0;$nbn[$n]).join(" "))}}if("function"==typeof H)return H(null===ie?{}:ie,Qt,B);const An=nn(H,null);return An.$attrs$=ie,Qt.length>0&&(An.$children$=Qt),An.$key$=at,An.$name$=nt,An},nn=(H,ie)=>({$flags$:0,$tag$:H,$text$:ie,$elm$:null,$children$:null,$attrs$:null,$key$:null,$name$:null}),ht={},B={forEach:(H,ie)=>H.map(K).forEach(ie),map:(H,ie)=>H.map(K).map(ie).map(ne)},K=H=>({vattrs:H.$attrs$,vchildren:H.$children$,vkey:H.$key$,vname:H.$name$,vtag:H.$tag$,vtext:H.$text$}),ne=H=>{if("function"==typeof H.vtag){const De={...H.vattrs};return H.vkey&&(De.key=H.vkey),H.vname&&(De.name=H.vname),je(H.vtag,De,...H.vchildren||[])}const ie=nn(H.vtag,H.vtext);return ie.$attrs$=H.vattrs,ie.$children$=H.vchildren,ie.$key$=H.vkey,ie.$name$=H.vname,ie},ae=(H,ie,De,Ue,at,nt,$t)=>{let qt,Qt,tn,An;if(1===nt.nodeType){for(qt=nt.getAttribute("c-id"),qt&&(Qt=qt.split("."),(Qt[0]===$t||"0"===Qt[0])&&(tn={$flags$:0,$hostId$:Qt[0],$nodeId$:Qt[1],$depth$:Qt[2],$index$:Qt[3],$tag$:nt.tagName.toLowerCase(),$elm$:nt,$attrs$:null,$children$:null,$key$:null,$name$:null,$text$:null},ie.push(tn),nt.removeAttribute("c-id"),H.$children$||(H.$children$=[]),H.$children$[tn.$index$]=tn,H=tn,Ue&&"0"===tn.$depth$&&(Ue[tn.$index$]=tn.$elm$))),An=nt.childNodes.length-1;An>=0;An--)ae(H,ie,De,Ue,at,nt.childNodes[An],$t);if(nt.shadowRoot)for(An=nt.shadowRoot.childNodes.length-1;An>=0;An--)ae(H,ie,De,Ue,at,nt.shadowRoot.childNodes[An],$t)}else if(8===nt.nodeType)Qt=nt.nodeValue.split("."),(Qt[1]===$t||"0"===Qt[1])&&(qt=Qt[0],tn={$flags$:0,$hostId$:Qt[1],$nodeId$:Qt[2],$depth$:Qt[3],$index$:Qt[4],$elm$:nt,$attrs$:null,$children$:null,$key$:null,$name$:null,$tag$:null,$text$:null},"t"===qt?(tn.$elm$=nt.nextSibling,tn.$elm$&&3===tn.$elm$.nodeType&&(tn.$text$=tn.$elm$.textContent,ie.push(tn),nt.remove(),H.$children$||(H.$children$=[]),H.$children$[tn.$index$]=tn,Ue&&"0"===tn.$depth$&&(Ue[tn.$index$]=tn.$elm$))):tn.$hostId$===$t&&("s"===qt?(tn.$tag$="slot",nt["s-sn"]=Qt[5]?tn.$name$=Qt[5]:"",nt["s-sr"]=!0,Ue&&(tn.$elm$=jr.createElement(tn.$tag$),tn.$name$&&tn.$elm$.setAttribute("name",tn.$name$),nt.parentNode.insertBefore(tn.$elm$,nt),nt.remove(),"0"===tn.$depth$&&(Ue[tn.$index$]=tn.$elm$)),De.push(tn),H.$children$||(H.$children$=[]),H.$children$[tn.$index$]=tn):"r"===qt&&(Ue?nt.remove():(at["s-cr"]=nt,nt["s-cn"]=!0))));else if(H&&"style"===H.$tag$){const bn=nn(null,nt.textContent);bn.$elm$=nt,bn.$index$="0",H.$children$=[bn]}},ye=(H,ie)=>{if(1===H.nodeType){let De=0;for(;Deri.push(H),Nt=H=>qr(H).$modeName$,vn=H=>qr(H).$hostElement$,Sn=(H,ie,De)=>{const Ue=vn(H);return{emit:at=>jn(Ue,ie,{bubbles:!!(4&De),composed:!!(2&De),cancelable:!!(1&De),detail:at})}},jn=(H,ie,De)=>{const Ue=Gn.ce(ie,De);return H.dispatchEvent(Ue),Ue},Xn=new WeakMap,Qn=(H,ie,De)=>{let Ue=Wo.get(H);bo&&De?(Ue=Ue||new CSSStyleSheet,"string"==typeof Ue?Ue=ie:Ue.replaceSync(ie)):Ue=ie,Wo.set(H,Ue)},En=(H,ie,De)=>{var Ue;const at=Jn(ie,De),nt=Wo.get(at);if(H=11===H.nodeType?H:jr,nt)if("string"==typeof nt){let qt,$t=Xn.get(H=H.head||H);if($t||Xn.set(H,$t=new Set),!$t.has(at)){if(H.host&&(qt=H.querySelector(`[${We}="${at}"]`)))qt.innerHTML=nt;else{qt=jr.createElement("style"),qt.innerHTML=nt;const Qt=null!=(Ue=Gn.$nonce$)?Ue:Be(jr);null!=Qt&&qt.setAttribute("nonce",Qt),H.insertBefore(qt,H.querySelector("link"))}4&ie.$flags$&&(qt.innerHTML+=Zt),$t&&$t.add(at)}}else H.adoptedStyleSheets.includes(nt)||(H.adoptedStyleSheets=[...H.adoptedStyleSheets,nt]);return at},Jn=(H,ie)=>"sc-"+(ie&&32&H.$flags$?H.$tagName$+"-"+ie:H.$tagName$),$e=H=>H.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g,"$1{"),At=(H,ie,De,Ue,at,nt)=>{if(De!==Ue){let $t=_o(H,ie),qt=ie.toLowerCase();if("class"===ie){const Qt=H.classList,tn=Jt(De),An=Jt(Ue);Qt.remove(...tn.filter(bn=>bn&&!An.includes(bn))),Qt.add(...An.filter(bn=>bn&&!tn.includes(bn)))}else if("style"===ie){for(const Qt in De)(!Ue||null==Ue[Qt])&&(Qt.includes("-")?H.style.removeProperty(Qt):H.style[Qt]="");for(const Qt in Ue)(!De||Ue[Qt]!==De[Qt])&&(Qt.includes("-")?H.style.setProperty(Qt,Ue[Qt]):H.style[Qt]=Ue[Qt])}else if("key"!==ie)if("ref"===ie)Ue&&Ue(H);else if($t||"o"!==ie[0]||"n"!==ie[1]){const Qt=Ve(Ue);if(($t||Qt&&null!==Ue)&&!at)try{if(H.tagName.includes("-"))H[ie]=Ue;else{const An=null==Ue?"":Ue;"list"===ie?$t=!1:(null==De||H[ie]!=An)&&(H[ie]=An)}}catch{}let tn=!1;qt!==(qt=qt.replace(/^xlink\:?/,""))&&(ie=qt,tn=!0),null==Ue||!1===Ue?(!1!==Ue||""===H.getAttribute(ie))&&(tn?H.removeAttributeNS(It,ie):H.removeAttribute(ie)):(!$t||4&nt||at)&&!Qt&&(Ue=!0===Ue?"":Ue,tn?H.setAttributeNS(It,ie,Ue):H.setAttribute(ie,Ue))}else if(ie="-"===ie[2]?ie.slice(3):_o(ir,qt)?qt.slice(2):qt[2]+ie.slice(3),De||Ue){const Qt=ie.endsWith(sn);ie=ie.replace(br,""),De&&Gn.rel(H,ie,De,Qt),Ue&&Gn.ael(H,ie,Ue,Qt)}}},kt=/\s/,Jt=H=>H?H.split(kt):[],sn="Capture",br=new RegExp(sn+"$"),_n=(H,ie,De)=>{const Ue=11===ie.$elm$.nodeType&&ie.$elm$.host?ie.$elm$.host:ie.$elm$,at=H&&H.$attrs$||Je,nt=ie.$attrs$||Je;for(const $t of yn(Object.keys(at)))$t in nt||At(Ue,$t,at[$t],void 0,De,ie.$flags$);for(const $t of yn(Object.keys(nt)))At(Ue,$t,at[$t],nt[$t],De,ie.$flags$)};function yn(H){return H.includes("ref")?[...H.filter(ie=>"ref"!==ie),"ref"]:H}var rn,Wt,mr,Sr=!1,Vr=!1,Or=!1,Cr=!1,zn=(H,ie,De,Ue)=>{var at;const nt=ie.$children$[De];let qt,Qt,tn,$t=0;if(Sr||(Or=!0,"slot"===nt.$tag$&&(rn&&Ue.classList.add(rn+"-s"),nt.$flags$|=nt.$children$?2:1)),null!==nt.$text$)qt=nt.$elm$=jr.createTextNode(nt.$text$);else if(1&nt.$flags$)qt=nt.$elm$=jr.createTextNode("");else{if(Cr||(Cr="svg"===nt.$tag$),qt=nt.$elm$=jr.createElementNS(Cr?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",2&nt.$flags$?"slot-fb":nt.$tag$),Cr&&"foreignObject"===nt.$tag$&&(Cr=!1),_n(null,nt,Cr),(H=>null!=H)(rn)&&qt["s-si"]!==rn&&qt.classList.add(qt["s-si"]=rn),nt.$children$)for($t=0;$t{Gn.$flags$|=1;const ie=H.closest(mr.toLowerCase());if(null!=ie){const De=Array.from(ie.childNodes).find(at=>at["s-cr"]),Ue=Array.from(H.childNodes);for(const at of De?Ue.reverse():Ue)null!=at["s-sh"]&&(pe(ie,at,null!=De?De:null),at["s-sh"]=void 0,Or=!0)}Gn.$flags$&=-2},Yn=(H,ie)=>{Gn.$flags$|=1;const De=Array.from(H.childNodes);if(H["s-sr"]){let Ue=H;for(;Ue=Ue.nextSibling;)Ue&&Ue["s-sn"]===H["s-sn"]&&Ue["s-sh"]===mr&&De.push(Ue)}for(let Ue=De.length-1;Ue>=0;Ue--){const at=De[Ue];at["s-hn"]!==mr&&at["s-ol"]&&(pe(Jr(at),at,Ri(at)),at["s-ol"].remove(),at["s-ol"]=void 0,at["s-sh"]=void 0,Or=!0),ie&&Yn(at,ie)}Gn.$flags$&=-2},Rn=(H,ie,De,Ue,at,nt)=>{let qt,$t=H["s-cr"]&&H["s-cr"].parentNode||H;for($t.shadowRoot&&$t.tagName===mr&&($t=$t.shadowRoot);at<=nt;++at)Ue[at]&&(qt=zn(null,De,at,H),qt&&(Ue[at].$elm$=qt,pe($t,qt,Ri(ie))))},Rr=(H,ie,De)=>{for(let Ue=ie;Ue<=De;++Ue){const at=H[Ue];if(at){const nt=at.$elm$;le(at),nt&&(Vr=!0,nt["s-ol"]?nt["s-ol"].remove():Yn(nt,!0),nt.remove())}}},Tr=(H,ie,De=!1)=>H.$tag$===ie.$tag$&&("slot"===H.$tag$?H.$name$===ie.$name$:!!De||H.$key$===ie.$key$),Ri=H=>H&&H["s-ol"]||H,Jr=H=>(H["s-ol"]?H["s-ol"]:H).parentNode,Zr=(H,ie,De=!1)=>{const Ue=ie.$elm$=H.$elm$,at=H.$children$,nt=ie.$children$,$t=ie.$tag$,qt=ie.$text$;let Qt;null===qt?(Cr="svg"===$t||"foreignObject"!==$t&&Cr,"slot"!==$t||Sr?_n(H,ie,Cr):H.$name$!==ie.$name$&&(ie.$elm$["s-sn"]=ie.$name$||"",li(ie.$elm$.parentElement)),null!==at&&null!==nt?((H,ie,De,Ue,at=!1)=>{let vr,ar,nt=0,$t=0,qt=0,Qt=0,tn=ie.length-1,An=ie[0],bn=ie[tn],$n=Ue.length-1,Cn=Ue[0],Nr=Ue[$n];for(;nt<=tn&&$t<=$n;)if(null==An)An=ie[++nt];else if(null==bn)bn=ie[--tn];else if(null==Cn)Cn=Ue[++$t];else if(null==Nr)Nr=Ue[--$n];else if(Tr(An,Cn,at))Zr(An,Cn,at),An=ie[++nt],Cn=Ue[++$t];else if(Tr(bn,Nr,at))Zr(bn,Nr,at),bn=ie[--tn],Nr=Ue[--$n];else if(Tr(An,Nr,at))("slot"===An.$tag$||"slot"===Nr.$tag$)&&Yn(An.$elm$.parentNode,!1),Zr(An,Nr,at),pe(H,An.$elm$,bn.$elm$.nextSibling),An=ie[++nt],Nr=Ue[--$n];else if(Tr(bn,Cn,at))("slot"===An.$tag$||"slot"===Nr.$tag$)&&Yn(bn.$elm$.parentNode,!1),Zr(bn,Cn,at),pe(H,bn.$elm$,An.$elm$),bn=ie[--tn],Cn=Ue[++$t];else{for(qt=-1,Qt=nt;Qt<=tn;++Qt)if(ie[Qt]&&null!==ie[Qt].$key$&&ie[Qt].$key$===Cn.$key$){qt=Qt;break}qt>=0?(ar=ie[qt],ar.$tag$!==Cn.$tag$?vr=zn(ie&&ie[$t],De,qt,H):(Zr(ar,Cn,at),ie[qt]=void 0,vr=ar.$elm$),Cn=Ue[++$t]):(vr=zn(ie&&ie[$t],De,$t,H),Cn=Ue[++$t]),vr&&pe(Jr(An.$elm$),vr,Ri(An.$elm$))}nt>tn?Rn(H,null==Ue[$n+1]?null:Ue[$n+1].$elm$,De,Ue,$t,$n):$t>$n&&Rr(ie,nt,tn)})(Ue,at,ie,nt,De):null!==nt?(null!==H.$text$&&(Ue.textContent=""),Rn(Ue,null,ie,nt,0,nt.length-1)):null!==at&&Rr(at,0,at.length-1),Cr&&"svg"===$t&&(Cr=!1)):(Qt=Ue["s-cr"])?Qt.parentNode.textContent=qt:H.$text$!==qt&&(Ue.data=qt)},ue=H=>{const ie=H.childNodes;for(const De of ie)if(1===De.nodeType){if(De["s-sr"]){const Ue=De["s-sn"];De.hidden=!1;for(const at of ie)if(at!==De)if(at["s-hn"]!==De["s-hn"]||""!==Ue){if(1===at.nodeType&&(Ue===at.getAttribute("slot")||Ue===at["s-sn"])||3===at.nodeType&&Ue===at["s-sn"]){De.hidden=!0;break}}else if(1===at.nodeType||3===at.nodeType&&""!==at.textContent.trim()){De.hidden=!0;break}}ue(De)}},ze=[],dt=H=>{let ie,De,Ue;for(const at of H.childNodes){if(at["s-sr"]&&(ie=at["s-cr"])&&ie.parentNode){De=ie.parentNode.childNodes;const nt=at["s-sn"];for(Ue=De.length-1;Ue>=0;Ue--)if(ie=De[Ue],!(ie["s-cn"]||ie["s-nr"]||ie["s-hn"]===at["s-hn"]||ie["s-sh"]&&ie["s-sh"]===at["s-hn"]))if(Qe(ie,nt)){let $t=ze.find(qt=>qt.$nodeToRelocate$===ie);Vr=!0,ie["s-sn"]=ie["s-sn"]||nt,$t?($t.$nodeToRelocate$["s-sh"]=at["s-hn"],$t.$slotRefNode$=at):(ie["s-sh"]=at["s-hn"],ze.push({$slotRefNode$:at,$nodeToRelocate$:ie})),ie["s-sr"]&&ze.map(qt=>{Qe(qt.$nodeToRelocate$,ie["s-sn"])&&($t=ze.find(Qt=>Qt.$nodeToRelocate$===ie),$t&&!qt.$slotRefNode$&&(qt.$slotRefNode$=$t.$slotRefNode$))})}else ze.some($t=>$t.$nodeToRelocate$===ie)||ze.push({$nodeToRelocate$:ie})}1===at.nodeType&&dt(at)}},Qe=(H,ie)=>1===H.nodeType?null===H.getAttribute("slot")&&""===ie||H.getAttribute("slot")===ie:H["s-sn"]===ie||""===ie,le=H=>{H.$attrs$&&H.$attrs$.ref&&H.$attrs$.ref(null),H.$children$&&H.$children$.map(le)},pe=(H,ie,De)=>{const Ue=null==H?void 0:H.insertBefore(ie,De);return wt(ie,H),Ue},xe=H=>H?H["s-rsc"]||H["s-si"]||H["s-sc"]||xe(H.parentElement):void 0,wt=(H,ie)=>{var De,Ue,at;if(H&&ie){const nt=H["s-rsc"],$t=xe(ie);nt&&null!=(De=H.classList)&&De.contains(nt)&&H.classList.remove(nt),$t&&(H["s-rsc"]=$t,(null==(Ue=H.classList)||!Ue.contains($t))&&(null==(at=H.classList)||at.add($t)))}},pn=(H,ie)=>{ie&&!H.$onRenderResolve$&&ie["s-p"]&&ie["s-p"].push(new Promise(De=>H.$onRenderResolve$=De))},Pn=(H,ie)=>{if(H.$flags$|=16,!(4&H.$flags$))return pn(H,H.$ancestorComponent$),yi(()=>Kn(H,ie));H.$flags$|=512},Kn=(H,ie)=>{const Ue=H.$lazyInstance$;let at;return ie&&(H.$flags$|=256,H.$queuedListeners$&&(H.$queuedListeners$.map(([nt,$t])=>ui(Ue,nt,$t)),H.$queuedListeners$=void 0),at=ui(Ue,"componentWillLoad")),at=Ir(at,()=>ui(Ue,"componentWillRender")),Ir(at,()=>hi(H,Ue,ie))},Ir=(H,ie)=>cr(H)?H.then(ie):ie(),cr=H=>H instanceof Promise||H&&H.then&&"function"==typeof H.then,hi=function(){var H=(0,g.A)(function*(ie,De,Ue){var at;const nt=ie.$hostElement$,qt=nt["s-rc"];Ue&&(H=>{const ie=H.$cmpMeta$,De=H.$hostElement$,Ue=ie.$flags$,nt=En(De.shadowRoot?De.shadowRoot:De.getRootNode(),ie,H.$modeName$);10&Ue&&(De["s-sc"]=nt,De.classList.add(nt+"-h"),2&Ue&&De.classList.add(nt+"-s"))})(ie);On(ie,De,nt,Ue),qt&&(qt.map(tn=>tn()),nt["s-rc"]=void 0);{const tn=null!=(at=nt["s-p"])?at:[],An=()=>Dn(ie);0===tn.length?An():(Promise.all(tn).then(An),ie.$flags$|=4,tn.length=0)}});return function(De,Ue,at){return H.apply(this,arguments)}}(),On=(H,ie,De,Ue)=>{try{ie=ie.render&&ie.render(),H.$flags$&=-17,H.$flags$|=2,((H,ie,De=!1)=>{var Ue,at,nt,$t,qt;const Qt=H.$hostElement$,tn=H.$cmpMeta$,An=H.$vnode$||nn(null,null),bn=(H=>H&&H.$tag$===ht)(ie)?ie:je(null,null,ie);if(mr=Qt.tagName,tn.$attrsToReflect$&&(bn.$attrs$=bn.$attrs$||{},tn.$attrsToReflect$.map(([$n,Cn])=>bn.$attrs$[Cn]=Qt[$n])),De&&bn.$attrs$)for(const $n of Object.keys(bn.$attrs$))Qt.hasAttribute($n)&&!["key","ref","style","class"].includes($n)&&(bn.$attrs$[$n]=Qt[$n]);if(bn.$tag$=null,bn.$flags$|=4,H.$vnode$=bn,bn.$elm$=An.$elm$=Qt.shadowRoot||Qt,rn=Qt["s-sc"],Sr=!!(1&tn.$flags$),Wt=Qt["s-cr"],Vr=!1,Zr(An,bn,De),Gn.$flags$|=1,Or){dt(bn.$elm$);for(const $n of ze){const Cn=$n.$nodeToRelocate$;if(!Cn["s-ol"]){const Nr=jr.createTextNode("");Nr["s-nr"]=Cn,pe(Cn.parentNode,Cn["s-ol"]=Nr,Cn)}}for(const $n of ze){const Cn=$n.$nodeToRelocate$,Nr=$n.$slotRefNode$;if(Nr){const vr=Nr.parentNode;let ar=Nr.nextSibling;if(ar&&1===ar.nodeType){let _i=null==(Ue=Cn["s-ol"])?void 0:Ue.previousSibling;for(;_i;){let Di=null!=(at=_i["s-nr"])?at:null;if(Di&&Di["s-sn"]===Cn["s-sn"]&&vr===Di.parentNode){for(Di=Di.nextSibling;Di===Cn||null!=Di&&Di["s-sr"];)Di=null==Di?void 0:Di.nextSibling;if(!Di||!Di["s-nr"]){ar=Di;break}}_i=_i.previousSibling}}(!ar&&vr!==Cn.parentNode||Cn.nextSibling!==ar)&&Cn!==ar&&(pe(vr,Cn,ar),1===Cn.nodeType&&(Cn.hidden=null!=(nt=Cn["s-ih"])&&nt)),Cn&&"function"==typeof Nr["s-rf"]&&Nr["s-rf"](Cn)}else 1===Cn.nodeType&&(De&&(Cn["s-ih"]=null!=($t=Cn.hidden)&&$t),Cn.hidden=!0)}}if(Vr&&ue(bn.$elm$),Gn.$flags$&=-2,ze.length=0,2&tn.$flags$)for(const $n of bn.$elm$.childNodes)$n["s-hn"]!==mr&&!$n["s-sh"]&&(De&&null==$n["s-ih"]&&($n["s-ih"]=null!=(qt=$n.hidden)&&qt),$n.hidden=!0);Wt=void 0})(H,ie,Ue)}catch(at){ni(at,H.$hostElement$)}return null},Dn=H=>{const De=H.$hostElement$,at=H.$lazyInstance$,nt=H.$ancestorComponent$;ui(at,"componentDidRender"),64&H.$flags$?ui(at,"componentDidUpdate"):(H.$flags$|=64,fi(De),ui(at,"componentDidLoad"),H.$onReadyResolve$(De),nt||mi()),H.$onInstanceResolve$(De),H.$onRenderResolve$&&(H.$onRenderResolve$(),H.$onRenderResolve$=void 0),512&H.$flags$&&Ye(()=>Pn(H,!1)),H.$flags$&=-517},Er=H=>{{const ie=qr(H),De=ie.$hostElement$.isConnected;return De&&2==(18&ie.$flags$)&&Pn(ie,!1),De}},mi=H=>{fi(jr.documentElement),Ye(()=>jn(ir,"appload",{detail:{namespace:"ionic"}}))},ui=(H,ie,De)=>{if(H&&H[ie])try{return H[ie](De)}catch(Ue){ni(Ue)}},fi=H=>H.classList.add("hydrated"),Fi=(H,ie,De)=>{var Ue;const at=H.prototype;if(ie.$members$){H.watchers&&(ie.$watchers$=H.watchers);const nt=Object.entries(ie.$members$);if(nt.map(([$t,[qt]])=>{31&qt||2&De&&32&qt?Object.defineProperty(at,$t,{get(){return((H,ie)=>qr(this).$instanceValues$.get(ie))(0,$t)},set(Qt){((H,ie,De,Ue)=>{const at=qr(H);if(!at)throw new Error(`Couldn't find host element for "${Ue.$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 nt=at.$hostElement$,$t=at.$instanceValues$.get(ie),qt=at.$flags$,Qt=at.$lazyInstance$;De=((H,ie)=>null==H||Ve(H)?H:4&ie?"false"!==H&&(""===H||!!H):2&ie?parseFloat(H):1&ie?String(H):H)(De,Ue.$members$[ie][0]);const tn=Number.isNaN($t)&&Number.isNaN(De);if((!(8&qt)||void 0===$t)&&De!==$t&&!tn&&(at.$instanceValues$.set(ie,De),Qt)){if(Ue.$watchers$&&128&qt){const bn=Ue.$watchers$[ie];bn&&bn.map($n=>{try{Qt[$n](De,$t,ie)}catch(Cn){ni(Cn,nt)}})}2==(18&qt)&&Pn(at,!1)}})(this,$t,Qt,ie)},configurable:!0,enumerable:!0}):1&De&&64&qt&&Object.defineProperty(at,$t,{value(...Qt){var tn;const An=qr(this);return null==(tn=null==An?void 0:An.$onInstancePromise$)?void 0:tn.then(()=>{var bn;return null==(bn=An.$lazyInstance$)?void 0:bn[$t](...Qt)})}})}),1&De){const $t=new Map;at.attributeChangedCallback=function(qt,Qt,tn){Gn.jmp(()=>{var An;const bn=$t.get(qt);if(this.hasOwnProperty(bn))tn=this[bn],delete this[bn];else{if(at.hasOwnProperty(bn)&&"number"==typeof this[bn]&&this[bn]==tn)return;if(null==bn){const $n=qr(this),Cn=null==$n?void 0:$n.$flags$;if(Cn&&!(8&Cn)&&128&Cn&&tn!==Qt){const Nr=$n.$lazyInstance$,vr=null==(An=ie.$watchers$)?void 0:An[qt];null==vr||vr.forEach(ar=>{null!=Nr[ar]&&Nr[ar].call(Nr,tn,Qt,qt)})}return}}this[bn]=(null!==tn||"boolean"!=typeof this[bn])&&tn})},H.observedAttributes=Array.from(new Set([...Object.keys(null!=(Ue=ie.$watchers$)?Ue:{}),...nt.filter(([qt,Qt])=>15&Qt[0]).map(([qt,Qt])=>{var tn;const An=Qt[1]||qt;return $t.set(An,qt),512&Qt[0]&&(null==(tn=ie.$attrsToReflect$)||tn.push([qt,An])),An})]))}}return H},Mi=function(){var H=(0,g.A)(function*(ie,De,Ue,at){let nt;if(!(32&De.$flags$)){if(De.$flags$|=32,Ue.$lazyBundleId$){if(nt=Co(Ue),nt.then){const An=()=>{};nt=yield nt,An()}nt.isProxied||(Ue.$watchers$=nt.watchers,Fi(nt,Ue,2),nt.isProxied=!0);const tn=()=>{};De.$flags$|=8;try{new nt(De)}catch(An){ni(An)}De.$flags$&=-9,De.$flags$|=128,tn(),pi(De.$lazyInstance$)}else nt=ie.constructor,customElements.whenDefined(Ue.$tagName$).then(()=>De.$flags$|=128);if(nt.style){let tn=nt.style;"string"!=typeof tn&&(tn=tn[De.$modeName$=(H=>ri.map(ie=>ie(H)).find(ie=>!!ie))(ie)]);const An=Jn(Ue,De.$modeName$);if(!Wo.has(An)){const bn=()=>{};Qn(An,tn,!!(1&Ue.$flags$)),bn()}}}const $t=De.$ancestorComponent$,qt=()=>Pn(De,!0);$t&&$t["s-rc"]?$t["s-rc"].push(qt):qt()});return function(De,Ue,at,nt){return H.apply(this,arguments)}}(),pi=H=>{ui(H,"connectedCallback")},ut=H=>{const ie=H["s-cr"]=jr.createComment("");ie["s-cn"]=!0,pe(H,ie,H.firstChild)},Bt=H=>{ui(H,"disconnectedCallback")},mn=function(){var H=(0,g.A)(function*(ie){if(!(1&Gn.$flags$)){const De=qr(ie);De.$rmListeners$&&(De.$rmListeners$.map(Ue=>Ue()),De.$rmListeners$=void 0),null!=De&&De.$lazyInstance$?Bt(De.$lazyInstance$):null!=De&&De.$onReadyPromise$&&De.$onReadyPromise$.then(()=>Bt(De.$lazyInstance$))}});return function(De){return H.apply(this,arguments)}}(),R=H=>{const ie=H.cloneNode;H.cloneNode=function(De){const Ue=this,at=Ue.shadowRoot&&To,nt=ie.call(Ue,!!at&&De);if(!at&&De){let qt,Qt,$t=0;const tn=["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(;$t!Ue.childNodes[$t][An]),qt&&(nt.__appendChild?nt.__appendChild(qt.cloneNode(!0)):nt.appendChild(qt.cloneNode(!0))),Qt&&nt.appendChild(Ue.childNodes[$t].cloneNode(!0))}return nt}},V=H=>{H.__appendChild=H.appendChild,H.appendChild=function(ie){const De=ie["s-sn"]=Ur(ie),Ue=dr(this.childNodes,De,this.tagName);if(Ue){const at=kr(Ue,De),nt=at[at.length-1],$t=pe(nt.parentNode,ie,nt.nextSibling);return ue(this),$t}return this.__appendChild(ie)}},Z=H=>{H.__removeChild=H.removeChild,H.removeChild=function(ie){if(ie&&typeof ie["s-sn"]<"u"){const De=dr(this.childNodes,ie["s-sn"],this.tagName);if(De){const at=kr(De,ie["s-sn"]).find(nt=>nt===ie);if(at)return at.remove(),void ue(this)}}return this.__removeChild(ie)}},U=H=>{const ie=H.prepend;H.prepend=function(...De){De.forEach(Ue=>{"string"==typeof Ue&&(Ue=this.ownerDocument.createTextNode(Ue));const at=Ue["s-sn"]=Ur(Ue),nt=dr(this.childNodes,at,this.tagName);if(nt){const $t=document.createTextNode("");$t["s-nr"]=Ue,nt["s-cr"].parentNode.__appendChild($t),Ue["s-ol"]=$t;const Qt=kr(nt,at)[0];return pe(Qt.parentNode,Ue,Qt.nextSibling)}return 1===Ue.nodeType&&Ue.getAttribute("slot")&&(Ue.hidden=!0),ie.call(this,Ue)})}},re=H=>{H.append=function(...ie){ie.forEach(De=>{"string"==typeof De&&(De=this.ownerDocument.createTextNode(De)),this.appendChild(De)})}},Oe=H=>{const ie=H.insertAdjacentHTML;H.insertAdjacentHTML=function(De,Ue){if("afterbegin"!==De&&"beforeend"!==De)return ie.call(this,De,Ue);const at=this.ownerDocument.createElement("_");let nt;if(at.innerHTML=Ue,"afterbegin"===De)for(;nt=at.firstChild;)this.prepend(nt);else if("beforeend"===De)for(;nt=at.firstChild;)this.append(nt)}},rt=H=>{H.insertAdjacentText=function(ie,De){this.insertAdjacentHTML(ie,De)}},Ht=H=>{const ie=H.insertAdjacentElement;H.insertAdjacentElement=function(De,Ue){return"afterbegin"!==De&&"beforeend"!==De?ie.call(this,De,Ue):"afterbegin"===De?(this.prepend(Ue),Ue):("beforeend"===De&&this.append(Ue),Ue)}},Kt=H=>{const ie=Object.getOwnPropertyDescriptor(Node.prototype,"textContent");Object.defineProperty(H,"__textContent",ie),Object.defineProperty(H,"textContent",{get(){return" "+Ln(this.childNodes).map(at=>{var nt,$t;const qt=[];let Qt=at.nextSibling;for(;Qt&&Qt["s-sn"]===at["s-sn"];)(3===Qt.nodeType||1===Qt.nodeType)&&qt.push(null!=($t=null==(nt=Qt.textContent)?void 0:nt.trim())?$t:""),Qt=Qt.nextSibling;return qt.filter(tn=>""!==tn).join(" ")}).filter(at=>""!==at).join(" ")+" "},set(De){Ln(this.childNodes).forEach(at=>{let nt=at.nextSibling;for(;nt&&nt["s-sn"]===at["s-sn"];){const $t=nt;nt=nt.nextSibling,$t.remove()}if(""===at["s-sn"]){const $t=this.ownerDocument.createTextNode(De);$t["s-sn"]="",pe(at.parentElement,$t,at.nextSibling)}else at.remove()})}})},Bn=(H,ie)=>{class De extends Array{item(at){return this[at]}}if(8&ie.$flags$){const Ue=H.__lookupGetter__("childNodes");Object.defineProperty(H,"children",{get(){return this.childNodes.map(at=>1===at.nodeType)}}),Object.defineProperty(H,"childElementCount",{get:()=>H.children.length}),Object.defineProperty(H,"childNodes",{get(){const at=Ue.call(this);if(!(1&Gn.$flags$)&&2&qr(this).$flags$){const nt=new De;for(let $t=0;$t{const ie=[];for(const De of Array.from(H))De["s-sr"]&&ie.push(De),ie.push(...Ln(De.childNodes));return ie},Ur=H=>H["s-sn"]||1===H.nodeType&&H.getAttribute("slot")||"",dr=(H,ie,De)=>{let at,Ue=0;for(;Ue{const De=[H];for(;(H=H.nextSibling)&&H["s-sn"]===ie;)De.push(H);return De},pr=(H,ie={})=>{var De;const at=[],nt=ie.exclude||[],$t=ir.customElements,qt=jr.head,Qt=qt.querySelector("meta[charset]"),tn=jr.createElement("style"),An=[],bn=jr.querySelectorAll(`[${We}]`);let $n,Cn=!0,Nr=0;for(Object.assign(Gn,ie),Gn.$resourcesUrl$=new URL(ie.resourcesUrl||"./",jr.baseURI).href,Gn.$flags$|=2;Nr{ar[1].map(_i=>{var Di;const Ii={$flags$:_i[0],$tagName$:_i[1],$members$:_i[2],$listeners$:_i[3]};4&Ii.$flags$&&(vr=!0),Ii.$members$=_i[2],Ii.$listeners$=_i[3],Ii.$attrsToReflect$=[],Ii.$watchers$=null!=(Di=_i[4])?Di:{};const no=Ii.$tagName$,Ko=class extends HTMLElement{constructor(_r){super(_r),kn(_r=this,Ii),1&Ii.$flags$&&_r.attachShadow({mode:"open",delegatesFocus:!!(16&Ii.$flags$)})}connectedCallback(){$n&&(clearTimeout($n),$n=null),Cn?An.push(this):Gn.jmp(()=>(H=>{if(!(1&Gn.$flags$)){const ie=qr(H),De=ie.$cmpMeta$,Ue=()=>{};if(1&ie.$flags$)on(H,ie,De.$listeners$),null!=ie&&ie.$lazyInstance$?pi(ie.$lazyInstance$):null!=ie&&ie.$onReadyPromise$&&ie.$onReadyPromise$.then(()=>pi(ie.$lazyInstance$));else{let at;if(ie.$flags$|=1,at=H.getAttribute(Ot),at){if(1&De.$flags$){const nt=En(H.shadowRoot,De,H.getAttribute("s-mode"));H.classList.remove(nt+"-h",nt+"-s")}((H,ie,De,Ue)=>{const nt=H.shadowRoot,$t=[],Qt=nt?[]:null,tn=Ue.$vnode$=nn(ie,null);Gn.$orgLocNodes$||ye(jr.body,Gn.$orgLocNodes$=new Map),H[Ot]=De,H.removeAttribute(Ot),ae(tn,$t,[],Qt,H,H,De),$t.map(An=>{const bn=An.$hostId$+"."+An.$nodeId$,$n=Gn.$orgLocNodes$.get(bn),Cn=An.$elm$;$n&&To&&""===$n["s-en"]&&$n.parentNode.insertBefore(Cn,$n.nextSibling),nt||(Cn["s-hn"]=ie,$n&&(Cn["s-ol"]=$n,Cn["s-ol"]["s-nr"]=Cn)),Gn.$orgLocNodes$.delete(bn)}),nt&&Qt.map(An=>{An&&nt.appendChild(An)})})(H,De.$tagName$,at,ie)}at||12&De.$flags$&&ut(H);{let nt=H;for(;nt=nt.parentNode||nt.host;)if(1===nt.nodeType&&nt.hasAttribute("s-id")&&nt["s-p"]||nt["s-p"]){pn(ie,ie.$ancestorComponent$=nt);break}}De.$members$&&Object.entries(De.$members$).map(([nt,[$t]])=>{if(31&$t&&H.hasOwnProperty(nt)){const qt=H[nt];delete H[nt],H[nt]=qt}}),Mi(H,ie,De)}Ue()}})(this))}disconnectedCallback(){Gn.jmp(()=>mn(this))}componentOnReady(){return qr(this).$onReadyPromise$}};2&Ii.$flags$&&((H,ie)=>{R(H),V(H),re(H),U(H),Ht(H),Oe(H),rt(H),Kt(H),Bn(H,ie),Z(H)})(Ko.prototype,Ii),Ii.$lazyBundleId$=ar[0],!nt.includes(no)&&!$t.get(no)&&(at.push(no),$t.define(no,Fi(Ko,Ii,1)))})}),at.length>0&&(vr&&(tn.textContent+=Zt),tn.textContent+=at+"{visibility:hidden}.hydrated{visibility:inherit}",tn.innerHTML.length)){tn.setAttribute("data-styles","");const ar=null!=(De=Gn.$nonce$)?De:Be(jr);null!=ar&&tn.setAttribute("nonce",ar),qt.insertBefore(tn,Qt?Qt.nextSibling:qt.firstChild)}Cn=!1,An.length?An.map(ar=>ar.connectedCallback()):Gn.jmp(()=>$n=setTimeout(mi,30))},on=(H,ie,De,Ue)=>{De&&De.map(([at,nt,$t])=>{const qt=Br(H,at),Qt=Zn(ie,$t),tn=xr(at);Gn.ael(qt,nt,Qt,tn),(ie.$rmListeners$=ie.$rmListeners$||[]).push(()=>Gn.rel(qt,nt,Qt,tn))})},Zn=(H,ie)=>De=>{try{256&H.$flags$?H.$lazyInstance$[ie](De):(H.$queuedListeners$=H.$queuedListeners$||[]).push([ie,De])}catch(Ue){ni(Ue)}},Br=(H,ie)=>4&ie?jr:8&ie?ir:16&ie?jr.body:H,xr=H=>Do?{passive:!!(1&H),capture:!!(2&H)}:!!(2&H),ur=new WeakMap,qr=H=>ur.get(H),xn=(H,ie)=>ur.set(ie.$lazyInstance$=H,ie),kn=(H,ie)=>{const De={$flags$:0,$hostElement$:H,$cmpMeta$:ie,$instanceValues$:new Map};return De.$onInstancePromise$=new Promise(Ue=>De.$onInstanceResolve$=Ue),De.$onReadyPromise$=new Promise(Ue=>De.$onReadyResolve$=Ue),H["s-p"]=[],H["s-rc"]=[],on(H,De,ie.$listeners$),ur.set(H,De)},_o=(H,ie)=>ie in H,ni=(H,ie)=>(0,console.error)(H,ie),gi=new Map,Co=(H,ie,De)=>{const Ue=H.$tagName$.replace(/-/g,"_"),at=H.$lazyBundleId$,nt=gi.get(at);return nt?nt[Ue]:j(8996)(`./${at}.entry.js`).then($t=>(gi.set(at,$t),$t[Ue]),ni)},Wo=new Map,ri=[],ir=typeof window<"u"?window:{},jr=ir.document||{head:{}},Gn={$flags$:0,$resourcesUrl$:"",jmp:H=>H(),raf:H=>requestAnimationFrame(H),ael:(H,ie,De,Ue)=>H.addEventListener(ie,De,Ue),rel:(H,ie,De,Ue)=>H.removeEventListener(ie,De,Ue),ce:(H,ie)=>new CustomEvent(H,ie)},Lo=H=>{Object.assign(Gn,H)},To=!0,Do=(()=>{let H=!1;try{jr.addEventListener("e",null,Object.defineProperty({},"passive",{get(){H=!0}}))}catch{}return H})(),bo=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch{}return!1})(),Li=!1,S=[],q=[],fe=(H,ie)=>De=>{H.push(De),Li||(Li=!0,ie&&4&Gn.$flags$?Ye(me):Gn.raf(me))},P=H=>{for(let ie=0;ie{P(S),P(q),(Li=S.length>0)&&Gn.raf(me)},Ye=H=>Promise.resolve(void 0).then(H),hr=fe(S,!1),yi=fe(q,!0)},2725:(Tn,Tt,j)=>{"use strict";j.d(Tt,{b:()=>Je,c:()=>et,d:()=>be,e:()=>je,g:()=>Ne,l:()=>Zt,s:()=>nn,t:()=>lt,w:()=>It});var g=j(467),c=j(3664),ve=j(9672),Fe=j(4929),Y=j(4920);const Je="ionViewWillLeave",et="ionViewDidLeave",be="ionViewWillUnload",Ee=B=>{B.tabIndex=-1,B.focus()},Ve=B=>null!==B.offsetParent,Le="ion-last-focus",ct_saveViewFocus=ne=>{if(c.c.get("focusManagerPriority",!1)){const ae=document.activeElement;null!==ae&&null!=ne&&ne.contains(ae)&&ae.setAttribute(Le,"true")}},ct_setViewFocus=ne=>{const oe=c.c.get("focusManagerPriority",!1);if(Array.isArray(oe)&&!ne.contains(document.activeElement)){const ae=ne.querySelector(`[${Le}]`);if(ae&&Ve(ae))return void Ee(ae);for(const ye of oe)switch(ye){case"content":const Te=ne.querySelector('main, [role="main"]');if(Te&&Ve(Te))return void Ee(Te);break;case"heading":const ft=ne.querySelector('h1, [role="heading"][aria-level="1"]');if(ft&&Ve(ft))return void Ee(ft);break;case"banner":const Nt=ne.querySelector('header, [role="banner"]');if(Nt&&Ve(Nt))return void Ee(Nt);break;default:(0,Fe.p)(`Unrecognized focus manager priority value ${ye}`)}Ee(ne)}},lt=B=>new Promise((K,ne)=>{(0,ve.w)(()=>{Pt(B),yt(B).then(oe=>{oe.animation&&oe.animation.destroy(),vt(B),K(oe)},oe=>{vt(B),ne(oe)})})}),Pt=B=>{const K=B.enteringEl,ne=B.leavingEl;ct_saveViewFocus(ne),ht(K,ne,B.direction),B.showGoBack?K.classList.add("can-go-back"):K.classList.remove("can-go-back"),nn(K,!1),K.style.setProperty("pointer-events","none"),ne&&(nn(ne,!1),ne.style.setProperty("pointer-events","none"))},yt=function(){var B=(0,g.A)(function*(K){const ne=yield Re(K);return ne&&ve.B.isBrowser?Ge(ne,K):Xe(K)});return function(ne){return B.apply(this,arguments)}}(),vt=B=>{const K=B.enteringEl,ne=B.leavingEl;K.classList.remove("ion-page-invisible"),K.style.removeProperty("pointer-events"),void 0!==ne&&(ne.classList.remove("ion-page-invisible"),ne.style.removeProperty("pointer-events")),ct_setViewFocus(K)},Re=function(){var B=(0,g.A)(function*(K){return K.leavingEl&&K.animated&&0!==K.duration?K.animationBuilder?K.animationBuilder:"ios"===K.mode?(yield Promise.resolve().then(j.bind(j,8454))).iosTransitionAnimation:(yield Promise.resolve().then(j.bind(j,3314))).mdTransitionAnimation:void 0});return function(ne){return B.apply(this,arguments)}}(),Ge=function(){var B=(0,g.A)(function*(K,ne){yield Dt(ne,!0);const oe=K(ne.baseEl,ne);bt(ne.enteringEl,ne.leavingEl);const ae=yield We(oe,ne);return ne.progressCallback&&ne.progressCallback(void 0),ae&&Ut(ne.enteringEl,ne.leavingEl),{hasCompleted:ae,animation:oe}});return function(ne,oe){return B.apply(this,arguments)}}(),Xe=function(){var B=(0,g.A)(function*(K){const ne=K.enteringEl,oe=K.leavingEl,ae=c.c.get("focusManagerPriority",!1);return yield Dt(K,ae),bt(ne,oe),Ut(ne,oe),{hasCompleted:!0}});return function(ne){return B.apply(this,arguments)}}(),Dt=function(){var B=(0,g.A)(function*(K,ne){(void 0!==K.deepWait?K.deepWait:ne)&&(yield Promise.all([je(K.enteringEl),je(K.leavingEl)])),yield Ot(K.viewIsReady,K.enteringEl)});return function(ne,oe){return B.apply(this,arguments)}}(),Ot=function(){var B=(0,g.A)(function*(K,ne){K&&(yield K(ne))});return function(ne,oe){return B.apply(this,arguments)}}(),We=(B,K)=>{const ne=K.progressCallback,oe=new Promise(ae=>{B.onFinish(ye=>ae(1===ye))});return ne?(B.progressStart(!0),ne(B)):B.play(),oe},bt=(B,K)=>{Zt(K,Je),Zt(B,"ionViewWillEnter")},Ut=(B,K)=>{Zt(B,"ionViewDidEnter"),Zt(K,et)},Zt=(B,K)=>{if(B){const ne=new CustomEvent(K,{bubbles:!1,cancelable:!1});B.dispatchEvent(ne)}},It=()=>new Promise(B=>(0,Y.r)(()=>(0,Y.r)(()=>B()))),je=function(){var B=(0,g.A)(function*(K){const ne=K;if(ne){if(null!=ne.componentOnReady){if(null!=(yield ne.componentOnReady()))return}else if(null!=ne.__registerHost)return void(yield new Promise(ae=>(0,Y.r)(ae)));yield Promise.all(Array.from(ne.children).map(je))}});return function(ne){return B.apply(this,arguments)}}(),nn=(B,K)=>{K?(B.setAttribute("aria-hidden","true"),B.classList.add("ion-page-hidden")):(B.hidden=!1,B.removeAttribute("aria-hidden"),B.classList.remove("ion-page-hidden"))},ht=(B,K,ne)=>{void 0!==B&&(B.style.zIndex="back"===ne?"99":"101"),void 0!==K&&(K.style.zIndex="100")},Ne=B=>B.classList.contains("ion-page")?B:B.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")||B},4929:(Tn,Tt,j)=>{"use strict";j.d(Tt,{a:()=>c,b:()=>ve,p:()=>g});const g=(Fe,...Y)=>console.warn(`[Ionic Warning]: ${Fe}`,...Y),c=(Fe,...Y)=>console.error(`[Ionic Error]: ${Fe}`,...Y),ve=(Fe,...Y)=>console.error(`<${Fe.tagName.toLowerCase()}> must be used inside ${Y.join(" or ")}.`)},8476:(Tn,Tt,j)=>{"use strict";j.d(Tt,{d:()=>c,w:()=>g});const g=typeof window<"u"?window:void 0,c=typeof document<"u"?document:void 0},3664:(Tn,Tt,j)=>{"use strict";j.d(Tt,{a:()=>Ee,b:()=>nn,c:()=>ve,i:()=>ht});var g=j(9672);class c{constructor(){this.m=new Map}reset(B){this.m=new Map(Object.entries(B))}get(B,K){const ne=this.m.get(B);return void 0!==ne?ne:K}getBoolean(B,K=!1){const ne=this.m.get(B);return void 0===ne?K:"string"==typeof ne?"true"===ne:!!ne}getNumber(B,K){const ne=parseFloat(this.m.get(B));return isNaN(ne)?void 0!==K?K:NaN:ne}set(B,K){this.m.set(B,K)}}const ve=new c,et="ionic-persist-config",Ee=(Ne,B)=>("string"==typeof Ne&&(B=Ne,Ne=void 0),(Ne=>Ve(Ne))(Ne).includes(B)),Ve=(Ne=window)=>{if(typeof Ne>"u")return[];Ne.Ionic=Ne.Ionic||{};let B=Ne.Ionic.platforms;return null==B&&(B=Ne.Ionic.platforms=Be(Ne),B.forEach(K=>Ne.document.documentElement.classList.add(`plt-${K}`))),B},Be=Ne=>{const B=ve.get("platform");return Object.keys(It).filter(K=>{const ne=null==B?void 0:B[K];return"function"==typeof ne?ne(Ne):It[K](Ne)})},Ze=Ne=>!!(Ut(Ne,/iPad/i)||Ut(Ne,/Macintosh/i)&&Re(Ne)),lt=Ne=>Ut(Ne,/android|sink/i),Re=Ne=>Zt(Ne,"(any-pointer:coarse)"),Xe=Ne=>Dt(Ne)||Ot(Ne),Dt=Ne=>!!(Ne.cordova||Ne.phonegap||Ne.PhoneGap),Ot=Ne=>{const B=Ne.Capacitor;return!(null==B||!B.isNative)},Ut=(Ne,B)=>B.test(Ne.navigator.userAgent),Zt=(Ne,B)=>{var K;return null===(K=Ne.matchMedia)||void 0===K?void 0:K.call(Ne,B).matches},It={ipad:Ze,iphone:Ne=>Ut(Ne,/iPhone/i),ios:Ne=>Ut(Ne,/iPhone|iPod/i)||Ze(Ne),android:lt,phablet:Ne=>{const B=Ne.innerWidth,K=Ne.innerHeight,ne=Math.min(B,K),oe=Math.max(B,K);return ne>390&&ne<520&&oe>620&&oe<800},tablet:Ne=>{const B=Ne.innerWidth,K=Ne.innerHeight,ne=Math.min(B,K),oe=Math.max(B,K);return Ze(Ne)||(Ne=>lt(Ne)&&!Ut(Ne,/mobile/i))(Ne)||ne>460&&ne<820&&oe>780&&oe<1400},cordova:Dt,capacitor:Ot,electron:Ne=>Ut(Ne,/electron/i),pwa:Ne=>{var B;return!!(null!==(B=Ne.matchMedia)&&void 0!==B&&B.call(Ne,"(display-mode: standalone)").matches||Ne.navigator.standalone)},mobile:Re,mobileweb:Ne=>Re(Ne)&&!Xe(Ne),desktop:Ne=>!Re(Ne),hybrid:Xe};let je;const nn=Ne=>Ne&&(0,g.g)(Ne)||je,ht=(Ne={})=>{if(typeof window>"u")return;const B=window.document,K=window,ne=K.Ionic=K.Ionic||{},oe={};Ne._ael&&(oe.ael=Ne._ael),Ne._rel&&(oe.rel=Ne._rel),Ne._ce&&(oe.ce=Ne._ce),(0,g.a)(oe);const ae=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(Ne=>{try{const B=Ne.sessionStorage.getItem(et);return null!==B?JSON.parse(B):{}}catch{return{}}})(K)),{persistConfig:!1}),ne.config),(Ne=>{const B={};return Ne.location.search.slice(1).split("&").map(K=>K.split("=")).map(([K,ne])=>{try{return[decodeURIComponent(K),decodeURIComponent(ne)]}catch{return["",""]}}).filter(([K])=>((Ne,B)=>Ne.substr(0,B.length)===B)(K,"ionic:")).map(([K,ne])=>[K.slice(6),ne]).forEach(([K,ne])=>{B[K]=ne}),B})(K)),Ne);ve.reset(ae),ve.getBoolean("persistConfig")&&((Ne,B)=>{try{Ne.sessionStorage.setItem(et,JSON.stringify(B))}catch{return}})(K,ae),Ve(K),ne.config=ve,ne.mode=je=ve.get("mode",B.documentElement.getAttribute("mode")||(Ee(K,"ios")?"ios":"md")),ve.set("mode",je),B.documentElement.setAttribute("mode",je),B.documentElement.classList.add(je),ve.getBoolean("_testing")&&ve.set("animated",!1);const ye=ft=>{var Nt;return null===(Nt=ft.tagName)||void 0===Nt?void 0:Nt.startsWith("ION-")},Te=ft=>["ios","md"].includes(ft);(0,g.c)(ft=>{for(;ft;){const Nt=ft.mode||ft.getAttribute("mode");if(Nt){if(Te(Nt))return Nt;ye(ft)&&console.warn('Invalid ionic mode: "'+Nt+'", expected: "ios" or "md"')}ft=ft.parentElement}return je})}},8454:(Tn,Tt,j)=>{"use strict";j.r(Tt),j.d(Tt,{iosTransitionAnimation:()=>Le,shadow:()=>Je});var g=j(9986),c=j(2725);j(8476),j(3664),j(9672);const se=pt=>document.querySelector(`${pt}.ion-cloned-element`),Je=pt=>pt.shadowRoot||pt,et=pt=>{const ct="ION-TABS"===pt.tagName?pt:pt.querySelector("ion-tabs"),lt="ion-content ion-header:not(.header-collapse-condense-inactive) ion-title.title-large";if(null!=ct){const Pt=ct.querySelector("ion-tab:not(.tab-hidden), .ion-page:not(.ion-page-hidden)");return null!=Pt?Pt.querySelector(lt):null}return pt.querySelector(lt)},be=(pt,ct)=>{const lt="ION-TABS"===pt.tagName?pt:pt.querySelector("ion-tabs");let Pt=[];if(null!=lt){const yt=lt.querySelector("ion-tab:not(.tab-hidden), .ion-page:not(.ion-page-hidden)");null!=yt&&(Pt=yt.querySelectorAll("ion-buttons"))}else Pt=pt.querySelectorAll("ion-buttons");for(const yt of Pt){const vt=yt.closest("ion-header"),Re=vt&&!vt.classList.contains("header-collapse-condense-inactive"),Ge=yt.querySelector("ion-back-button"),Xe=yt.classList.contains("buttons-collapse");if(null!==Ge&&("start"===yt.slot||""===yt.slot)&&(Xe&&Re&&ct||!Xe))return Ge}return null},Ve=(pt,ct,lt,Pt,yt,vt,Re,Ge,Xe)=>{var Dt,Ot;const We=ct?`calc(100% - ${yt.right+4}px)`:yt.left-4+"px",bt=ct?"right":"left",Ut=ct?"left":"right",Zt=ct?"right":"left";let It=1,je=1,nn=`scale(${je})`;const ht="scale(1)";if(vt&&Re){const kt=(null===(Dt=vt.textContent)||void 0===Dt?void 0:Dt.trim())===(null===(Ot=Ge.textContent)||void 0===Ot?void 0:Ot.trim());It=Xe.width/Re.width,je=(Xe.height-Ze)/Re.height,nn=kt?`scale(${It}, ${je})`:`scale(${je})`}const B=Je(Pt).querySelector("ion-icon").getBoundingClientRect(),K=ct?B.width/2-(B.right-yt.right)+"px":yt.left-B.width/2+"px",ne=ct?`-${window.innerWidth-yt.right}px`:`${yt.left}px`,oe=`${Xe.top}px`,ae=`${yt.top}px`,ft=lt?[{offset:0,transform:`translate3d(${ne}, ${ae}, 0)`},{offset:1,transform:`translate3d(${K}, ${oe}, 0)`}]:[{offset:0,transform:`translate3d(${K}, ${oe}, 0)`},{offset:1,transform:`translate3d(${ne}, ${ae}, 0)`}],vn=lt?[{offset:0,opacity:1,transform:ht},{offset:1,opacity:0,transform:nn}]:[{offset:0,opacity:0,transform:nn},{offset:1,opacity:1,transform:ht}],Xn=lt?[{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)"}],Qn=(0,g.c)(),En=(0,g.c)(),nr=(0,g.c)(),Jn=se("ion-back-button"),$e=Je(Jn).querySelector(".button-text"),At=Je(Jn).querySelector("ion-icon");Jn.text=Pt.text,Jn.mode=Pt.mode,Jn.icon=Pt.icon,Jn.color=Pt.color,Jn.disabled=Pt.disabled,Jn.style.setProperty("display","block"),Jn.style.setProperty("position","fixed"),En.addElement(At),Qn.addElement($e),nr.addElement(Jn),nr.beforeStyles({position:"absolute",top:"0px",[Zt]:"0px"}).beforeAddWrite(()=>{Pt.style.setProperty("display","none"),Jn.style.setProperty(bt,We)}).afterAddWrite(()=>{Pt.style.setProperty("display",""),Jn.style.setProperty("display","none"),Jn.style.removeProperty(bt)}).keyframes(ft),Qn.beforeStyles({"transform-origin":`${bt} top`}).keyframes(vn),En.beforeStyles({"transform-origin":`${Ut} center`}).keyframes(Xn),pt.addAnimation([Qn,En,nr])},Be=(pt,ct,lt,Pt,yt,vt,Re,Ge,Xe)=>{var Dt,Ot;const We=ct?"right":"left",bt=ct?`calc(100% - ${yt.right}px)`:`${yt.left}px`,Zt=`${yt.top}px`;let je=ct?`-${window.innerWidth-Re.right-8}px`:`${Re.x+8}px`,nn=.5;const ht="scale(1)";let Ne=`scale(${nn})`;if(Ge&&Xe){je=ct?`-${window.innerWidth-Xe.right-8}px`:Xe.x-8+"px";const Nt=(null===(Dt=Ge.textContent)||void 0===Dt?void 0:Dt.trim())===(null===(Ot=Pt.textContent)||void 0===Ot?void 0:Ot.trim());nn=Xe.height/(vt.height-Ze),Ne=Nt?`scale(${Xe.width/vt.width}, ${nn})`:`scale(${nn})`}const ne=Re.top+Re.height/2-yt.height*nn/2+"px",ye=lt?[{offset:0,opacity:0,transform:`translate3d(${je}, ${ne}, 0) ${Ne}`},{offset:.1,opacity:0},{offset:1,opacity:1,transform:`translate3d(0px, ${Zt}, 0) ${ht}`}]:[{offset:0,opacity:.99,transform:`translate3d(0px, ${Zt}, 0) ${ht}`},{offset:.6,opacity:0},{offset:1,opacity:0,transform:`translate3d(${je}, ${ne}, 0) ${Ne}`}],Te=se("ion-title"),ft=(0,g.c)();Te.innerText=Pt.innerText,Te.size=Pt.size,Te.color=Pt.color,ft.addElement(Te),ft.beforeStyles({"transform-origin":`${We} top`,height:`${yt.height}px`,display:"",position:"relative",[We]:bt}).beforeAddWrite(()=>{Pt.style.setProperty("opacity","0")}).afterAddWrite(()=>{Pt.style.setProperty("opacity",""),Te.style.setProperty("display","none")}).keyframes(ye),pt.addAnimation(ft)},Le=(pt,ct)=>{var lt;try{const Pt="cubic-bezier(0.32,0.72,0,1)",yt="opacity",vt="transform",Re="0%",Xe="rtl"===pt.ownerDocument.dir,Dt=Xe?"-99.5%":"99.5%",Ot=Xe?"33%":"-33%",We=ct.enteringEl,bt=ct.leavingEl,Ut="back"===ct.direction,Zt=We.querySelector(":scope > ion-content"),It=We.querySelectorAll(":scope > ion-header > *:not(ion-toolbar), :scope > ion-footer > *"),je=We.querySelectorAll(":scope > ion-header > ion-toolbar"),nn=(0,g.c)(),ht=(0,g.c)();if(nn.addElement(We).duration((null!==(lt=ct.duration)&&void 0!==lt?lt:0)||540).easing(ct.easing||Pt).fill("both").beforeRemoveClass("ion-page-invisible"),bt&&null!=pt){const ne=(0,g.c)();ne.addElement(pt),nn.addAnimation(ne)}if(Zt||0!==je.length||0!==It.length?(ht.addElement(Zt),ht.addElement(It)):ht.addElement(We.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")),nn.addAnimation(ht),Ut?ht.beforeClearStyles([yt]).fromTo("transform",`translateX(${Ot})`,`translateX(${Re})`).fromTo(yt,.8,1):ht.beforeClearStyles([yt]).fromTo("transform",`translateX(${Dt})`,`translateX(${Re})`),Zt){const ne=Je(Zt).querySelector(".transition-effect");if(ne){const oe=ne.querySelector(".transition-cover"),ae=ne.querySelector(".transition-shadow"),ye=(0,g.c)(),Te=(0,g.c)(),ft=(0,g.c)();ye.addElement(ne).beforeStyles({opacity:"1",display:"block"}).afterStyles({opacity:"",display:""}),Te.addElement(oe).beforeClearStyles([yt]).fromTo(yt,0,.1),ft.addElement(ae).beforeClearStyles([yt]).fromTo(yt,.03,.7),ye.addAnimation([Te,ft]),ht.addAnimation([ye])}}const Ne=We.querySelector("ion-header.header-collapse-condense"),{forward:B,backward:K}=((pt,ct,lt,Pt,yt)=>{const vt=be(Pt,lt),Re=et(yt),Ge=et(Pt),Xe=be(yt,lt),Dt=null!==vt&&null!==Re&&!lt,Ot=null!==Ge&&null!==Xe&<if(Dt){const We=Re.getBoundingClientRect(),bt=vt.getBoundingClientRect(),Ut=Je(vt).querySelector(".button-text"),Zt=null==Ut?void 0:Ut.getBoundingClientRect(),je=Je(Re).querySelector(".toolbar-title").getBoundingClientRect();Be(pt,ct,lt,Re,We,je,bt,Ut,Zt),Ve(pt,ct,lt,vt,bt,Ut,Zt,Re,je)}else if(Ot){const We=Ge.getBoundingClientRect(),bt=Xe.getBoundingClientRect(),Ut=Je(Xe).querySelector(".button-text"),Zt=null==Ut?void 0:Ut.getBoundingClientRect(),je=Je(Ge).querySelector(".toolbar-title").getBoundingClientRect();Be(pt,ct,lt,Ge,We,je,bt,Ut,Zt),Ve(pt,ct,lt,Xe,bt,Ut,Zt,Ge,je)}return{forward:Dt,backward:Ot}})(nn,Xe,Ut,We,bt);if(je.forEach(ne=>{const oe=(0,g.c)();oe.addElement(ne),nn.addAnimation(oe);const ae=(0,g.c)();ae.addElement(ne.querySelector("ion-title"));const ye=(0,g.c)(),Te=Array.from(ne.querySelectorAll("ion-buttons,[menuToggle]")),ft=ne.closest("ion-header"),Nt=null==ft?void 0:ft.classList.contains("header-collapse-condense-inactive");let jt;jt=Te.filter(Ut?Qn=>{const En=Qn.classList.contains("buttons-collapse");return En&&!Nt||!En}:Qn=>!Qn.classList.contains("buttons-collapse")),ye.addElement(jt);const vn=(0,g.c)();vn.addElement(ne.querySelectorAll(":scope > *:not(ion-title):not(ion-buttons):not([menuToggle])"));const Sn=(0,g.c)();Sn.addElement(Je(ne).querySelector(".toolbar-background"));const jn=(0,g.c)(),Xn=ne.querySelector("ion-back-button");if(Xn&&jn.addElement(Xn),oe.addAnimation([ae,ye,vn,Sn,jn]),ye.fromTo(yt,.01,1),vn.fromTo(yt,.01,1),Ut)Nt||ae.fromTo("transform",`translateX(${Ot})`,`translateX(${Re})`).fromTo(yt,.01,1),vn.fromTo("transform",`translateX(${Ot})`,`translateX(${Re})`),jn.fromTo(yt,.01,1);else if(Ne||ae.fromTo("transform",`translateX(${Dt})`,`translateX(${Re})`).fromTo(yt,.01,1),vn.fromTo("transform",`translateX(${Dt})`,`translateX(${Re})`),Sn.beforeClearStyles([yt,"transform"]),(null==ft?void 0:ft.translucent)?Sn.fromTo("transform",Xe?"translateX(-100%)":"translateX(100%)","translateX(0px)"):Sn.fromTo(yt,.01,"var(--opacity)"),B||jn.fromTo(yt,.01,1),Xn&&!B){const En=(0,g.c)();En.addElement(Je(Xn).querySelector(".button-text")).fromTo("transform",Xe?"translateX(-100px)":"translateX(100px)","translateX(0px)"),oe.addAnimation(En)}}),bt){const ne=(0,g.c)(),oe=bt.querySelector(":scope > ion-content"),ae=bt.querySelectorAll(":scope > ion-header > ion-toolbar"),ye=bt.querySelectorAll(":scope > ion-header > *:not(ion-toolbar), :scope > ion-footer > *");if(oe||0!==ae.length||0!==ye.length?(ne.addElement(oe),ne.addElement(ye)):ne.addElement(bt.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")),nn.addAnimation(ne),Ut){ne.beforeClearStyles([yt]).fromTo("transform",`translateX(${Re})`,Xe?"translateX(-100%)":"translateX(100%)");const Te=(0,c.g)(bt);nn.afterAddWrite(()=>{"normal"===nn.getDirection()&&Te.style.setProperty("display","none")})}else ne.fromTo("transform",`translateX(${Re})`,`translateX(${Ot})`).fromTo(yt,1,.8);if(oe){const Te=Je(oe).querySelector(".transition-effect");if(Te){const ft=Te.querySelector(".transition-cover"),Nt=Te.querySelector(".transition-shadow"),jt=(0,g.c)(),vn=(0,g.c)(),Sn=(0,g.c)();jt.addElement(Te).beforeStyles({opacity:"1",display:"block"}).afterStyles({opacity:"",display:""}),vn.addElement(ft).beforeClearStyles([yt]).fromTo(yt,.1,0),Sn.addElement(Nt).beforeClearStyles([yt]).fromTo(yt,.7,.03),jt.addAnimation([vn,Sn]),ne.addAnimation([jt])}}ae.forEach(Te=>{const ft=(0,g.c)();ft.addElement(Te);const Nt=(0,g.c)();Nt.addElement(Te.querySelector("ion-title"));const jt=(0,g.c)(),vn=Te.querySelectorAll("ion-buttons,[menuToggle]"),Sn=Te.closest("ion-header"),jn=null==Sn?void 0:Sn.classList.contains("header-collapse-condense-inactive"),Xn=Array.from(vn).filter(At=>{const kt=At.classList.contains("buttons-collapse");return kt&&!jn||!kt});jt.addElement(Xn);const Qn=(0,g.c)(),En=Te.querySelectorAll(":scope > *:not(ion-title):not(ion-buttons):not([menuToggle])");En.length>0&&Qn.addElement(En);const nr=(0,g.c)();nr.addElement(Je(Te).querySelector(".toolbar-background"));const Jn=(0,g.c)(),$e=Te.querySelector("ion-back-button");if($e&&Jn.addElement($e),ft.addAnimation([Nt,jt,Qn,Jn,nr]),nn.addAnimation(ft),Jn.fromTo(yt,.99,0),jt.fromTo(yt,.99,0),Qn.fromTo(yt,.99,0),Ut){if(jn||Nt.fromTo("transform",`translateX(${Re})`,Xe?"translateX(-100%)":"translateX(100%)").fromTo(yt,.99,0),Qn.fromTo("transform",`translateX(${Re})`,Xe?"translateX(-100%)":"translateX(100%)"),nr.beforeClearStyles([yt,"transform"]),(null==Sn?void 0:Sn.translucent)?nr.fromTo("transform","translateX(0px)",Xe?"translateX(-100%)":"translateX(100%)"):nr.fromTo(yt,"var(--opacity)",0),$e&&!K){const kt=(0,g.c)();kt.addElement(Je($e).querySelector(".button-text")).fromTo("transform",`translateX(${Re})`,`translateX(${(Xe?-124:124)+"px"})`),ft.addAnimation(kt)}}else jn||Nt.fromTo("transform",`translateX(${Re})`,`translateX(${Ot})`).fromTo(yt,.99,0).afterClearStyles([vt,yt]),Qn.fromTo("transform",`translateX(${Re})`,`translateX(${Ot})`).afterClearStyles([vt,yt]),Jn.afterClearStyles([yt]),Nt.afterClearStyles([yt]),jt.afterClearStyles([yt])})}return nn}catch(Pt){throw Pt}},Ze=10},3314:(Tn,Tt,j)=>{"use strict";j.r(Tt),j.d(Tt,{mdTransitionAnimation:()=>Ae});var g=j(9986),c=j(2725);j(8476),j(3664),j(9672);const Ae=(se,Je)=>{var et,be,Ee;const Le="back"===Je.direction,pt=Je.leavingEl,ct=(0,c.g)(Je.enteringEl),lt=ct.querySelector("ion-toolbar"),Pt=(0,g.c)();if(Pt.addElement(ct).fill("both").beforeRemoveClass("ion-page-invisible"),Le?Pt.duration((null!==(et=Je.duration)&&void 0!==et?et:0)||200).easing("cubic-bezier(0.47,0,0.745,0.715)"):Pt.duration((null!==(be=Je.duration)&&void 0!==be?be:0)||280).easing("cubic-bezier(0.36,0.66,0.04,1)").fromTo("transform","translateY(40px)","translateY(0px)").fromTo("opacity",.01,1),lt){const yt=(0,g.c)();yt.addElement(lt),Pt.addAnimation(yt)}if(pt&&Le){Pt.duration((null!==(Ee=Je.duration)&&void 0!==Ee?Ee:0)||200).easing("cubic-bezier(0.47,0,0.745,0.715)");const yt=(0,g.c)();yt.addElement((0,c.g)(pt)).onFinish(vt=>{1===vt&&yt.elements.length>0&&yt.elements[0].style.setProperty("display","none")}).fromTo("transform","translateY(0px)","translateY(40px)").fromTo("opacity",1,0),Pt.addAnimation(yt)}return Pt}},6002:(Tn,Tt,j)=>{"use strict";j.d(Tt,{B:()=>vn,F:()=>Jn,G:()=>Sn,O:()=>jn,a:()=>ct,b:()=>lt,c:()=>Re,d:()=>Xn,e:()=>Qn,f:()=>B,g:()=>ne,h:()=>ye,i:()=>ft,j:()=>Xe,k:()=>Dt,l:()=>Pt,m:()=>yt,n:()=>be,o:()=>ht,q:()=>Ee,s:()=>jt});var g=j(467),c=j(8476),ve=j(4920),Fe=j(6411),Y=j(3664),Ae=j(8621),se=j(1970),Je=j(4929);const et='[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])',be=($e,At)=>{const kt=$e.querySelector(et);Ve(kt,null!=At?At:$e)},Ee=($e,At)=>{const kt=Array.from($e.querySelectorAll(et));Ve(kt.length>0?kt[kt.length-1]:null,null!=At?At:$e)},Ve=($e,At)=>{let kt=$e;const Jt=null==$e?void 0:$e.shadowRoot;Jt&&(kt=Jt.querySelector(et)||$e),kt?(0,ve.f)(kt):At.focus()};let Be=0,Le=0;const Ze=new WeakMap,pt=$e=>({create:At=>Ot($e,At),dismiss:(At,kt,Jt)=>It(document,At,kt,$e,Jt),getTop:()=>(0,g.A)(function*(){return ht(document,$e)})()}),ct=pt("ion-alert"),lt=pt("ion-action-sheet"),Pt=pt("ion-loading"),yt=pt("ion-modal"),Re=pt("ion-popover"),Xe=$e=>{typeof document<"u"&&Zt(document);const At=Be++;$e.overlayIndex=At},Dt=$e=>($e.hasAttribute("id")||($e.id="ion-overlay-"+ ++Le),$e.id),Ot=($e,At)=>typeof window<"u"&&typeof window.customElements<"u"?window.customElements.whenDefined($e).then(()=>{const kt=document.createElement($e);return kt.classList.add("overlay-hidden"),Object.assign(kt,Object.assign(Object.assign({},At),{hasController:!0})),oe(document).appendChild(kt),new Promise(Jt=>(0,ve.c)(kt,Jt))}):Promise.resolve(),bt=($e,At)=>{let kt=$e;const Jt=null==$e?void 0:$e.shadowRoot;Jt&&(kt=Jt.querySelector(et)||$e),kt?(0,ve.f)(kt):At.focus()},Zt=$e=>{0===Be&&(Be=1,$e.addEventListener("focus",At=>{(($e,At)=>{const kt=ht(At,"ion-alert,ion-action-sheet,ion-loading,ion-modal,ion-picker-legacy,ion-popover"),Jt=$e.target;kt&&Jt&&!kt.classList.contains(Jn)&&(kt.shadowRoot?(()=>{if(kt.contains(Jt))kt.lastFocus=Jt;else if("ION-TOAST"===Jt.tagName)bt(kt.lastFocus,kt);else{const _n=kt.lastFocus;be(kt),_n===At.activeElement&&Ee(kt),kt.lastFocus=At.activeElement}})():(()=>{if(kt===Jt)kt.lastFocus=void 0;else if("ION-TOAST"===Jt.tagName)bt(kt.lastFocus,kt);else{const _n=(0,ve.g)(kt);if(!_n.contains(Jt))return;const yn=_n.querySelector(".ion-overlay-wrapper");if(!yn)return;if(yn.contains(Jt)||Jt===_n.querySelector("ion-backdrop"))kt.lastFocus=Jt;else{const rn=kt.lastFocus;be(yn,kt),rn===At.activeElement&&Ee(yn,kt),kt.lastFocus=At.activeElement}}})())})(At,$e)},!0),$e.addEventListener("ionBackButton",At=>{const kt=ht($e);null!=kt&&kt.backdropDismiss&&At.detail.register(Fe.OVERLAY_BACK_BUTTON_PRIORITY,()=>{kt.dismiss(void 0,vn)})}),(0,Fe.shouldUseCloseWatcher)()||$e.addEventListener("keydown",At=>{if("Escape"===At.key){const kt=ht($e);null!=kt&&kt.backdropDismiss&&kt.dismiss(void 0,vn)}}))},It=($e,At,kt,Jt,sn)=>{const br=ht($e,Jt,sn);return br?br.dismiss(At,kt):Promise.reject("overlay does not exist")},nn=($e,At)=>(($e,At)=>(void 0===At&&(At="ion-alert,ion-action-sheet,ion-loading,ion-modal,ion-picker-legacy,ion-popover,ion-toast"),Array.from($e.querySelectorAll(At)).filter(kt=>kt.overlayIndex>0)))($e,At).filter(kt=>!($e=>$e.classList.contains("overlay-hidden"))(kt)),ht=($e,At,kt)=>{const Jt=nn($e,At);return void 0===kt?Jt[Jt.length-1]:Jt.find(sn=>sn.id===kt)},Ne=($e=!1)=>{const kt=oe(document).querySelector("ion-router-outlet, ion-nav, #ion-view-container-root");kt&&($e?kt.setAttribute("aria-hidden","true"):kt.removeAttribute("aria-hidden"))},B=function(){var $e=(0,g.A)(function*(At,kt,Jt,sn,br){var _n,yn;if(At.presented)return;Ne(!0),document.body.classList.add(se.B),En(At.el),At.presented=!0,At.willPresent.emit(),null===(_n=At.willPresentShorthand)||void 0===_n||_n.emit();const rn=(0,Y.b)(At),Wt=At.enterAnimation?At.enterAnimation:Y.c.get(kt,"ios"===rn?Jt:sn);(yield ae(At,Wt,At.el,br))&&(At.didPresent.emit(),null===(yn=At.didPresentShorthand)||void 0===yn||yn.emit()),"ION-TOAST"!==At.el.tagName&&K(At.el),At.keyboardClose&&(null===document.activeElement||!At.el.contains(document.activeElement))&&At.el.focus(),At.el.removeAttribute("aria-hidden")});return function(kt,Jt,sn,br,_n){return $e.apply(this,arguments)}}(),K=function(){var $e=(0,g.A)(function*(At){let kt=document.activeElement;if(!kt)return;const Jt=null==kt?void 0:kt.shadowRoot;Jt&&(kt=Jt.querySelector(et)||kt),yield At.onDidDismiss(),(null===document.activeElement||document.activeElement===document.body)&&kt.focus()});return function(kt){return $e.apply(this,arguments)}}(),ne=function(){var $e=(0,g.A)(function*(At,kt,Jt,sn,br,_n,yn){var rn,Wt;if(!At.presented)return!1;void 0!==c.d&&1===nn(c.d).length&&(Ne(!1),document.body.classList.remove(se.B)),At.presented=!1;try{At.el.style.setProperty("pointer-events","none"),At.willDismiss.emit({data:kt,role:Jt}),null===(rn=At.willDismissShorthand)||void 0===rn||rn.emit({data:kt,role:Jt});const Sr=(0,Y.b)(At),Vr=At.leaveAnimation?At.leaveAnimation:Y.c.get(sn,"ios"===Sr?br:_n);Jt!==Sn&&(yield ae(At,Vr,At.el,yn)),At.didDismiss.emit({data:kt,role:Jt}),null===(Wt=At.didDismissShorthand)||void 0===Wt||Wt.emit({data:kt,role:Jt}),(Ze.get(At)||[]).forEach(Cr=>Cr.destroy()),Ze.delete(At),At.el.classList.add("overlay-hidden"),At.el.style.removeProperty("pointer-events"),void 0!==At.el.lastFocus&&(At.el.lastFocus=void 0)}catch(Sr){console.error(Sr)}return At.el.remove(),nr(),!0});return function(kt,Jt,sn,br,_n,yn,rn){return $e.apply(this,arguments)}}(),oe=$e=>$e.querySelector("ion-app")||$e.body,ae=function(){var $e=(0,g.A)(function*(At,kt,Jt,sn){Jt.classList.remove("overlay-hidden");const _n=kt(At.el,sn);(!At.animated||!Y.c.getBoolean("animated",!0))&&_n.duration(0),At.keyboardClose&&_n.beforeAddWrite(()=>{const rn=Jt.ownerDocument.activeElement;null!=rn&&rn.matches("input,ion-input, ion-textarea")&&rn.blur()});const yn=Ze.get(At)||[];return Ze.set(At,[...yn,_n]),yield _n.play(),!0});return function(kt,Jt,sn,br){return $e.apply(this,arguments)}}(),ye=($e,At)=>{let kt;const Jt=new Promise(sn=>kt=sn);return Te($e,At,sn=>{kt(sn.detail)}),Jt},Te=($e,At,kt)=>{const Jt=sn=>{(0,ve.b)($e,At,Jt),kt(sn)};(0,ve.a)($e,At,Jt)},ft=$e=>"cancel"===$e||$e===vn,Nt=$e=>$e(),jt=($e,At)=>{if("function"==typeof $e)return Y.c.get("_zoneGate",Nt)(()=>{try{return $e(At)}catch(Jt){throw Jt}})},vn="backdrop",Sn="gesture",jn=39,Xn=$e=>{let kt,At=!1;const Jt=(0,Ae.C)(),sn=(yn=!1)=>{if(kt&&!yn)return{delegate:kt,inline:At};const{el:rn,hasController:Wt,delegate:mr}=$e;return At=null!==rn.parentNode&&!Wt,kt=At?mr||Jt:mr,{inline:At,delegate:kt}};return{attachViewToDom:function(){var yn=(0,g.A)(function*(rn){const{delegate:Wt}=sn(!0);if(Wt)return yield Wt.attachViewToDom($e.el,rn);const{hasController:mr}=$e;if(mr&&void 0!==rn)throw new Error("framework delegate is missing");return null});return function(Wt){return yn.apply(this,arguments)}}(),removeViewFromDom:()=>{const{delegate:yn}=sn();yn&&void 0!==$e.el&&yn.removeViewFromDom($e.el.parentElement,$e.el)}}},Qn=()=>{let $e;const At=()=>{$e&&($e(),$e=void 0)};return{addClickListener:(Jt,sn)=>{At();const br=void 0!==sn?document.getElementById(sn):null;br?$e=((yn,rn)=>{const Wt=()=>{rn.present()};return yn.addEventListener("click",Wt),()=>{yn.removeEventListener("click",Wt)}})(br,Jt):(0,Je.p)(`A trigger element with the ID "${sn}" was not found in the DOM. The trigger element must be in the DOM when the "trigger" property is set on an overlay component.`,Jt)},removeClickListener:At}},En=$e=>{var At;if(void 0===c.d)return;const kt=nn(c.d);for(let Jt=kt.length-1;Jt>=0;Jt--){const sn=kt[Jt],br=null!==(At=kt[Jt+1])&&void 0!==At?At:$e;(br.hasAttribute("aria-hidden")||"ION-TOAST"!==br.tagName)&&sn.setAttribute("aria-hidden","true")}},nr=()=>{if(void 0===c.d)return;const $e=nn(c.d);for(let At=$e.length-1;At>=0;At--){const kt=$e[At];if(kt.removeAttribute("aria-hidden"),"ION-TOAST"!==kt.tagName)break}},Jn="ion-disable-focus-trap"},63:(Tn,Tt,j)=>{"use strict";var g=j(345),c=j(4438),ve=j(305),Fe=j(3656),Y=j(7863),Ae=j(177);function se(B,K){if(1&B&&(c.j41(0,"ion-menu-toggle",5)(1,"ion-item",6),c.nrm(2,"ion-icon",7),c.j41(3,"ion-label",8),c.EFF(4),c.k0s()()()),2&B){const ne=K.$implicit;c.R7$(),c.Y8G("routerLink",ne.url),c.R7$(),c.Y8G("name",ne.icon),c.R7$(2),c.JRh(ne.title)}}let Je=(()=>{var B;class K{constructor(oe,ae){this.router=oe,this.menuController=ae,this.menuItems=[{title:"Home",url:"/home",icon:"home"},{title:"Model The Product",url:"/model-product",icon:"cube"},{title:"My Team",url:"/myteam",icon:"people"},{title:"Latency Test",url:"/latency-test",icon:"pulse"}]}ngOnInit(){this.router.events.subscribe(oe=>{oe instanceof ve.wF&&(oe.urlAfterRedirects.includes("/login")||oe.urlAfterRedirects.includes("/register")?this.menuController.enable(!1):this.menuController.enable(!0))})}}return(B=K).\u0275fac=function(oe){return new(oe||B)(c.rXU(ve.Ix),c.rXU(Y._t))},B.\u0275cmp=c.VBU({type:B,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(oe,ae){1&oe&&(c.j41(0,"ion-app")(1,"ion-split-pane",0)(2,"ion-menu",1)(3,"ion-header")(4,"ion-toolbar")(5,"ion-title"),c.EFF(6," Menu "),c.k0s()()(),c.j41(7,"ion-content")(8,"ion-list",2),c.DNE(9,se,5,3,"ion-menu-toggle",3),c.k0s()()(),c.nrm(10,"ion-router-outlet",4),c.k0s()()),2&oe&&(c.R7$(9),c.Y8G("ngForOf",ae.menuItems))},dependencies:[Ae.Sq,Y.U1,Y.W9,Y.eU,Y.iq,Y.uz,Y.he,Y.nf,Y.oS,Y.cA,Y.HP,Y.BC,Y.ai,Y.Rg,Y.N7,ve.Wk]}),K})();var et=j(9842),be=j(8737),Ee=j(1203),Ve=j(6354),Be=j(6697);j(2214);const Ze=(0,Ve.T)(B=>!!B);let pt=(()=>{var B;class K{constructor(oe,ae){(0,et.A)(this,"router",void 0),(0,et.A)(this,"auth",void 0),(0,et.A)(this,"canActivate",(ye,Te)=>{const ft=ye.data.authGuardPipe||(()=>Ze);return(0,be.kQ)(this.auth).pipe((0,Be.s)(1),ft(ye,Te),(0,Ve.T)(Nt=>"boolean"==typeof Nt?Nt:Array.isArray(Nt)?this.router.createUrlTree(Nt):this.router.parseUrl(Nt)))}),this.router=oe,this.auth=ae}}return B=K,(0,et.A)(K,"\u0275fac",function(oe){return new(oe||B)(c.KVO(ve.Ix),c.KVO(be.Nj))}),(0,et.A)(K,"\u0275prov",c.jDH({token:B,factory:B.\u0275fac,providedIn:"any"})),K})();const ct=B=>({canActivate:[pt],data:{authGuardPipe:B}}),Ot=()=>{return B=[""],(0,Ee.F)(Ze,(0,Ve.T)(K=>K||B));var B},We=()=>{return B=["home"],(0,Ee.F)(Ze,(0,Ve.T)(K=>K&&B||!0));var B},bt=[{path:"",redirectTo:"login",pathMatch:"full"},{path:"home",loadChildren:()=>Promise.all([j.e(2076),j.e(3118)]).then(j.bind(j,3118)).then(B=>B.HomePageModule),...ct(Ot)},{path:"register",loadChildren:()=>Promise.all([j.e(2076),j.e(3825)]).then(j.bind(j,3825)).then(B=>B.RegisterPageModule),...ct(We)},{path:"login",loadChildren:()=>Promise.all([j.e(2076),j.e(6688)]).then(j.bind(j,6688)).then(B=>B.LoginPageModule),...ct(We)},{path:"myteam",loadChildren:()=>Promise.all([j.e(2076),j.e(839)]).then(j.bind(j,839)).then(B=>B.MyteamPageModule),...ct(Ot)},{path:"model-product",loadChildren:()=>Promise.all([j.e(2076),j.e(3998)]).then(j.bind(j,3998)).then(B=>B.ModelProductPageModule),...ct(Ot)},{path:"new-product",loadChildren:()=>Promise.all([j.e(2076),j.e(7444)]).then(j.bind(j,7444)).then(B=>B.NewProductPageModule),...ct(Ot)},{path:"view-product",loadChildren:()=>Promise.all([j.e(2076),j.e(6927)]).then(j.bind(j,6927)).then(B=>B.ViewProductPageModule)},{path:"show-map",loadChildren:()=>j.e(246).then(j.bind(j,246)).then(B=>B.ShowMapPageModule)},{path:"latency-test",loadChildren:()=>Promise.all([j.e(2076),j.e(1956)]).then(j.bind(j,1956)).then(B=>B.LatencyTestPageModule)}];let Ut=(()=>{var B;class K{}return(B=K).\u0275fac=function(oe){return new(oe||B)},B.\u0275mod=c.$C({type:B}),B.\u0275inj=c.G2t({imports:[ve.iI.forRoot(bt,{preloadingStrategy:ve.Kp}),ve.iI]}),K})();var Zt=j(7440),It=j(4262);const je_firebase={projectId:"devprobe-89481",appId:"1:405563293900:web:ba12c0bd15401fd708c269",storageBucket:"devprobe-89481.appspot.com",apiKey:"AIzaSyAORx8ZNhFZwo_uR4tPEcmF8pKm4GAqi5A",authDomain:"devprobe-89481.firebaseapp.com",messagingSenderId:"405563293900"};var nn=j(1626);let ht=(()=>{var B;class K{}return(B=K).\u0275fac=function(oe){return new(oe||B)},B.\u0275mod=c.$C({type:B,bootstrap:[Je]}),B.\u0275inj=c.G2t({providers:[{provide:ve.b,useClass:Fe.jM},(0,Zt.MW)(()=>(0,Zt.Wp)(je_firebase)),(0,It.hV)(()=>(0,It.aU)()),(0,be._q)(()=>(0,be.xI)()),nn.q1],imports:[g.Bb,Y.bv.forRoot(),Ut,nn.q1]}),K})();(0,c.SmG)(),g.sG().bootstrapModule(ht).catch(B=>console.log(B))},4412:(Tn,Tt,j)=>{"use strict";j.d(Tt,{t:()=>c});var g=j(1413);class c extends g.B{constructor(Fe){super(),this._value=Fe}get value(){return this.getValue()}_subscribe(Fe){const Y=super._subscribe(Fe);return!Y.closed&&Fe.next(this._value),Y}getValue(){const{hasError:Fe,thrownError:Y,_value:Ae}=this;if(Fe)throw Y;return this._throwIfClosed(),Ae}next(Fe){super.next(this._value=Fe)}}},1985:(Tn,Tt,j)=>{"use strict";j.d(Tt,{c:()=>Je});var g=j(7707),c=j(8359),ve=j(3494),Fe=j(1203),Y=j(1026),Ae=j(8071),se=j(9786);let Je=(()=>{class Ve{constructor(Le){Le&&(this._subscribe=Le)}lift(Le){const Ze=new Ve;return Ze.source=this,Ze.operator=Le,Ze}subscribe(Le,Ze,pt){const ct=function Ee(Ve){return Ve&&Ve instanceof g.vU||function be(Ve){return Ve&&(0,Ae.T)(Ve.next)&&(0,Ae.T)(Ve.error)&&(0,Ae.T)(Ve.complete)}(Ve)&&(0,c.Uv)(Ve)}(Le)?Le:new g.Ms(Le,Ze,pt);return(0,se.Y)(()=>{const{operator:lt,source:Pt}=this;ct.add(lt?lt.call(ct,Pt):Pt?this._subscribe(ct):this._trySubscribe(ct))}),ct}_trySubscribe(Le){try{return this._subscribe(Le)}catch(Ze){Le.error(Ze)}}forEach(Le,Ze){return new(Ze=et(Ze))((pt,ct)=>{const lt=new g.Ms({next:Pt=>{try{Le(Pt)}catch(yt){ct(yt),lt.unsubscribe()}},error:ct,complete:pt});this.subscribe(lt)})}_subscribe(Le){var Ze;return null===(Ze=this.source)||void 0===Ze?void 0:Ze.subscribe(Le)}[ve.s](){return this}pipe(...Le){return(0,Fe.m)(Le)(this)}toPromise(Le){return new(Le=et(Le))((Ze,pt)=>{let ct;this.subscribe(lt=>ct=lt,lt=>pt(lt),()=>Ze(ct))})}}return Ve.create=Be=>new Ve(Be),Ve})();function et(Ve){var Be;return null!==(Be=null!=Ve?Ve:Y.$.Promise)&&void 0!==Be?Be:Promise}},1413:(Tn,Tt,j)=>{"use strict";j.d(Tt,{B:()=>se});var g=j(1985),c=j(8359);const Fe=(0,j(1853).L)(et=>function(){et(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var Y=j(7908),Ae=j(9786);let se=(()=>{class et extends g.c{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(Ee){const Ve=new Je(this,this);return Ve.operator=Ee,Ve}_throwIfClosed(){if(this.closed)throw new Fe}next(Ee){(0,Ae.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const Ve of this.currentObservers)Ve.next(Ee)}})}error(Ee){(0,Ae.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=Ee;const{observers:Ve}=this;for(;Ve.length;)Ve.shift().error(Ee)}})}complete(){(0,Ae.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:Ee}=this;for(;Ee.length;)Ee.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var Ee;return(null===(Ee=this.observers)||void 0===Ee?void 0:Ee.length)>0}_trySubscribe(Ee){return this._throwIfClosed(),super._trySubscribe(Ee)}_subscribe(Ee){return this._throwIfClosed(),this._checkFinalizedStatuses(Ee),this._innerSubscribe(Ee)}_innerSubscribe(Ee){const{hasError:Ve,isStopped:Be,observers:Le}=this;return Ve||Be?c.Kn:(this.currentObservers=null,Le.push(Ee),new c.yU(()=>{this.currentObservers=null,(0,Y.o)(Le,Ee)}))}_checkFinalizedStatuses(Ee){const{hasError:Ve,thrownError:Be,isStopped:Le}=this;Ve?Ee.error(Be):Le&&Ee.complete()}asObservable(){const Ee=new g.c;return Ee.source=this,Ee}}return et.create=(be,Ee)=>new Je(be,Ee),et})();class Je extends se{constructor(be,Ee){super(),this.destination=be,this.source=Ee}next(be){var Ee,Ve;null===(Ve=null===(Ee=this.destination)||void 0===Ee?void 0:Ee.next)||void 0===Ve||Ve.call(Ee,be)}error(be){var Ee,Ve;null===(Ve=null===(Ee=this.destination)||void 0===Ee?void 0:Ee.error)||void 0===Ve||Ve.call(Ee,be)}complete(){var be,Ee;null===(Ee=null===(be=this.destination)||void 0===be?void 0:be.complete)||void 0===Ee||Ee.call(be)}_subscribe(be){var Ee,Ve;return null!==(Ve=null===(Ee=this.source)||void 0===Ee?void 0:Ee.subscribe(be))&&void 0!==Ve?Ve:c.Kn}}},7707:(Tn,Tt,j)=>{"use strict";j.d(Tt,{Ms:()=>pt,vU:()=>Ve});var g=j(8071),c=j(8359),ve=j(1026),Fe=j(5334),Y=j(5343);const Ae=et("C",void 0,void 0);function et(vt,Re,Ge){return{kind:vt,value:Re,error:Ge}}var be=j(9270),Ee=j(9786);class Ve extends c.yU{constructor(Re){super(),this.isStopped=!1,Re?(this.destination=Re,(0,c.Uv)(Re)&&Re.add(this)):this.destination=yt}static create(Re,Ge,Xe){return new pt(Re,Ge,Xe)}next(Re){this.isStopped?Pt(function Je(vt){return et("N",vt,void 0)}(Re),this):this._next(Re)}error(Re){this.isStopped?Pt(function se(vt){return et("E",void 0,vt)}(Re),this):(this.isStopped=!0,this._error(Re))}complete(){this.isStopped?Pt(Ae,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 Be=Function.prototype.bind;function Le(vt,Re){return Be.call(vt,Re)}class Ze{constructor(Re){this.partialObserver=Re}next(Re){const{partialObserver:Ge}=this;if(Ge.next)try{Ge.next(Re)}catch(Xe){ct(Xe)}}error(Re){const{partialObserver:Ge}=this;if(Ge.error)try{Ge.error(Re)}catch(Xe){ct(Xe)}else ct(Re)}complete(){const{partialObserver:Re}=this;if(Re.complete)try{Re.complete()}catch(Ge){ct(Ge)}}}class pt extends Ve{constructor(Re,Ge,Xe){let Dt;if(super(),(0,g.T)(Re)||!Re)Dt={next:null!=Re?Re:void 0,error:null!=Ge?Ge:void 0,complete:null!=Xe?Xe:void 0};else{let Ot;this&&ve.$.useDeprecatedNextContext?(Ot=Object.create(Re),Ot.unsubscribe=()=>this.unsubscribe(),Dt={next:Re.next&&Le(Re.next,Ot),error:Re.error&&Le(Re.error,Ot),complete:Re.complete&&Le(Re.complete,Ot)}):Dt=Re}this.destination=new Ze(Dt)}}function ct(vt){ve.$.useDeprecatedSynchronousErrorHandling?(0,Ee.l)(vt):(0,Fe.m)(vt)}function Pt(vt,Re){const{onStoppedNotification:Ge}=ve.$;Ge&&be.f.setTimeout(()=>Ge(vt,Re))}const yt={closed:!0,next:Y.l,error:function lt(vt){throw vt},complete:Y.l}},8359:(Tn,Tt,j)=>{"use strict";j.d(Tt,{Kn:()=>Ae,yU:()=>Y,Uv:()=>se});var g=j(8071);const ve=(0,j(1853).L)(et=>function(Ee){et(this),this.message=Ee?`${Ee.length} errors occurred during unsubscription:\n${Ee.map((Ve,Be)=>`${Be+1}) ${Ve.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=Ee});var Fe=j(7908);class Y{constructor(be){this.initialTeardown=be,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let be;if(!this.closed){this.closed=!0;const{_parentage:Ee}=this;if(Ee)if(this._parentage=null,Array.isArray(Ee))for(const Le of Ee)Le.remove(this);else Ee.remove(this);const{initialTeardown:Ve}=this;if((0,g.T)(Ve))try{Ve()}catch(Le){be=Le instanceof ve?Le.errors:[Le]}const{_finalizers:Be}=this;if(Be){this._finalizers=null;for(const Le of Be)try{Je(Le)}catch(Ze){be=null!=be?be:[],Ze instanceof ve?be=[...be,...Ze.errors]:be.push(Ze)}}if(be)throw new ve(be)}}add(be){var Ee;if(be&&be!==this)if(this.closed)Je(be);else{if(be instanceof Y){if(be.closed||be._hasParent(this))return;be._addParent(this)}(this._finalizers=null!==(Ee=this._finalizers)&&void 0!==Ee?Ee:[]).push(be)}}_hasParent(be){const{_parentage:Ee}=this;return Ee===be||Array.isArray(Ee)&&Ee.includes(be)}_addParent(be){const{_parentage:Ee}=this;this._parentage=Array.isArray(Ee)?(Ee.push(be),Ee):Ee?[Ee,be]:be}_removeParent(be){const{_parentage:Ee}=this;Ee===be?this._parentage=null:Array.isArray(Ee)&&(0,Fe.o)(Ee,be)}remove(be){const{_finalizers:Ee}=this;Ee&&(0,Fe.o)(Ee,be),be instanceof Y&&be._removeParent(this)}}Y.EMPTY=(()=>{const et=new Y;return et.closed=!0,et})();const Ae=Y.EMPTY;function se(et){return et instanceof Y||et&&"closed"in et&&(0,g.T)(et.remove)&&(0,g.T)(et.add)&&(0,g.T)(et.unsubscribe)}function Je(et){(0,g.T)(et)?et():et.unsubscribe()}},1026:(Tn,Tt,j)=>{"use strict";j.d(Tt,{$:()=>g});const g={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},4572:(Tn,Tt,j)=>{"use strict";j.d(Tt,{z:()=>be});var g=j(1985),c=j(3073),ve=j(8455),Fe=j(3669),Y=j(6450),Ae=j(3794),se=j(8496),Je=j(4360),et=j(5225);function be(...Be){const Le=(0,Ae.lI)(Be),Ze=(0,Ae.ms)(Be),{args:pt,keys:ct}=(0,c.D)(Be);if(0===pt.length)return(0,ve.H)([],Le);const lt=new g.c(function Ee(Be,Le,Ze=Fe.D){return pt=>{Ve(Le,()=>{const{length:ct}=Be,lt=new Array(ct);let Pt=ct,yt=ct;for(let vt=0;vt{const Re=(0,ve.H)(Be[vt],Le);let Ge=!1;Re.subscribe((0,Je._)(pt,Xe=>{lt[vt]=Xe,Ge||(Ge=!0,yt--),yt||pt.next(Ze(lt.slice()))},()=>{--Pt||pt.complete()}))},pt)},pt)}}(pt,Le,ct?Pt=>(0,se.e)(ct,Pt):Fe.D));return Ze?lt.pipe((0,Y.I)(Ze)):lt}function Ve(Be,Le,Ze){Be?(0,et.N)(Ze,Be,Le):Le()}},983:(Tn,Tt,j)=>{"use strict";j.d(Tt,{w:()=>c});const c=new(j(1985).c)(Y=>Y.complete())},8455:(Tn,Tt,j)=>{"use strict";j.d(Tt,{H:()=>Re});var g=j(8750),c=j(941),ve=j(6745),Ae=j(1985),Je=j(4761),et=j(8071),be=j(5225);function Ve(Ge,Xe){if(!Ge)throw new Error("Iterable cannot be null");return new Ae.c(Dt=>{(0,be.N)(Dt,Xe,()=>{const Ot=Ge[Symbol.asyncIterator]();(0,be.N)(Dt,Xe,()=>{Ot.next().then(We=>{We.done?Dt.complete():Dt.next(We.value)})},0,!0)})})}var Be=j(5055),Le=j(9858),Ze=j(7441),pt=j(5397),ct=j(7953),lt=j(591),Pt=j(5196);function Re(Ge,Xe){return Xe?function vt(Ge,Xe){if(null!=Ge){if((0,Be.l)(Ge))return function Fe(Ge,Xe){return(0,g.Tg)(Ge).pipe((0,ve._)(Xe),(0,c.Q)(Xe))}(Ge,Xe);if((0,Ze.X)(Ge))return function se(Ge,Xe){return new Ae.c(Dt=>{let Ot=0;return Xe.schedule(function(){Ot===Ge.length?Dt.complete():(Dt.next(Ge[Ot++]),Dt.closed||this.schedule())})})}(Ge,Xe);if((0,Le.y)(Ge))return function Y(Ge,Xe){return(0,g.Tg)(Ge).pipe((0,ve._)(Xe),(0,c.Q)(Xe))}(Ge,Xe);if((0,ct.T)(Ge))return Ve(Ge,Xe);if((0,pt.x)(Ge))return function Ee(Ge,Xe){return new Ae.c(Dt=>{let Ot;return(0,be.N)(Dt,Xe,()=>{Ot=Ge[Je.l](),(0,be.N)(Dt,Xe,()=>{let We,bt;try{({value:We,done:bt}=Ot.next())}catch(Ut){return void Dt.error(Ut)}bt?Dt.complete():Dt.next(We)},0,!0)}),()=>(0,et.T)(null==Ot?void 0:Ot.return)&&Ot.return()})}(Ge,Xe);if((0,Pt.U)(Ge))return function yt(Ge,Xe){return Ve((0,Pt.C)(Ge),Xe)}(Ge,Xe)}throw(0,lt.L)(Ge)}(Ge,Xe):(0,g.Tg)(Ge)}},3726:(Tn,Tt,j)=>{"use strict";j.d(Tt,{R:()=>be});var g=j(8750),c=j(1985),ve=j(1397),Fe=j(7441),Y=j(8071),Ae=j(6450);const se=["addListener","removeListener"],Je=["addEventListener","removeEventListener"],et=["on","off"];function be(Ze,pt,ct,lt){if((0,Y.T)(ct)&&(lt=ct,ct=void 0),lt)return be(Ze,pt,ct).pipe((0,Ae.I)(lt));const[Pt,yt]=function Le(Ze){return(0,Y.T)(Ze.addEventListener)&&(0,Y.T)(Ze.removeEventListener)}(Ze)?Je.map(vt=>Re=>Ze[vt](pt,Re,ct)):function Ve(Ze){return(0,Y.T)(Ze.addListener)&&(0,Y.T)(Ze.removeListener)}(Ze)?se.map(Ee(Ze,pt)):function Be(Ze){return(0,Y.T)(Ze.on)&&(0,Y.T)(Ze.off)}(Ze)?et.map(Ee(Ze,pt)):[];if(!Pt&&(0,Fe.X)(Ze))return(0,ve.Z)(vt=>be(vt,pt,ct))((0,g.Tg)(Ze));if(!Pt)throw new TypeError("Invalid event target");return new c.c(vt=>{const Re=(...Ge)=>vt.next(1yt(Re)})}function Ee(Ze,pt){return ct=>lt=>Ze[ct](pt,lt)}},8750:(Tn,Tt,j)=>{"use strict";j.d(Tt,{Tg:()=>Be});var g=j(1635),c=j(7441),ve=j(9858),Fe=j(1985),Y=j(5055),Ae=j(7953),se=j(591),Je=j(5397),et=j(5196),be=j(8071),Ee=j(5334),Ve=j(3494);function Be(vt){if(vt instanceof Fe.c)return vt;if(null!=vt){if((0,Y.l)(vt))return function Le(vt){return new Fe.c(Re=>{const Ge=vt[Ve.s]();if((0,be.T)(Ge.subscribe))return Ge.subscribe(Re);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(vt);if((0,c.X)(vt))return function Ze(vt){return new Fe.c(Re=>{for(let Ge=0;Ge{vt.then(Ge=>{Re.closed||(Re.next(Ge),Re.complete())},Ge=>Re.error(Ge)).then(null,Ee.m)})}(vt);if((0,Ae.T)(vt))return lt(vt);if((0,Je.x)(vt))return function ct(vt){return new Fe.c(Re=>{for(const Ge of vt)if(Re.next(Ge),Re.closed)return;Re.complete()})}(vt);if((0,et.U)(vt))return function Pt(vt){return lt((0,et.C)(vt))}(vt)}throw(0,se.L)(vt)}function lt(vt){return new Fe.c(Re=>{(function yt(vt,Re){var Ge,Xe,Dt,Ot;return(0,g.sH)(this,void 0,void 0,function*(){try{for(Ge=(0,g.xN)(vt);!(Xe=yield Ge.next()).done;)if(Re.next(Xe.value),Re.closed)return}catch(We){Dt={error:We}}finally{try{Xe&&!Xe.done&&(Ot=Ge.return)&&(yield Ot.call(Ge))}finally{if(Dt)throw Dt.error}}Re.complete()})})(vt,Re).catch(Ge=>Re.error(Ge))})}},7673:(Tn,Tt,j)=>{"use strict";j.d(Tt,{of:()=>ve});var g=j(3794),c=j(8455);function ve(...Fe){const Y=(0,g.lI)(Fe);return(0,c.H)(Fe,Y)}},4360:(Tn,Tt,j)=>{"use strict";j.d(Tt,{_:()=>c});var g=j(7707);function c(Fe,Y,Ae,se,Je){return new ve(Fe,Y,Ae,se,Je)}class ve extends g.vU{constructor(Y,Ae,se,Je,et,be){super(Y),this.onFinalize=et,this.shouldUnsubscribe=be,this._next=Ae?function(Ee){try{Ae(Ee)}catch(Ve){Y.error(Ve)}}:super._next,this._error=Je?function(Ee){try{Je(Ee)}catch(Ve){Y.error(Ve)}finally{this.unsubscribe()}}:super._error,this._complete=se?function(){try{se()}catch(Ee){Y.error(Ee)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var Y;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:Ae}=this;super.unsubscribe(),!Ae&&(null===(Y=this.onFinalize)||void 0===Y||Y.call(this))}}}},274:(Tn,Tt,j)=>{"use strict";j.d(Tt,{H:()=>ve});var g=j(1397),c=j(8071);function ve(Fe,Y){return(0,c.T)(Y)?(0,g.Z)(Fe,Y,1):(0,g.Z)(Fe,1)}},5964:(Tn,Tt,j)=>{"use strict";j.d(Tt,{p:()=>ve});var g=j(9974),c=j(4360);function ve(Fe,Y){return(0,g.N)((Ae,se)=>{let Je=0;Ae.subscribe((0,c._)(se,et=>Fe.call(Y,et,Je++)&&se.next(et)))})}},980:(Tn,Tt,j)=>{"use strict";j.d(Tt,{j:()=>c});var g=j(9974);function c(ve){return(0,g.N)((Fe,Y)=>{try{Fe.subscribe(Y)}finally{Y.add(ve)}})}},6354:(Tn,Tt,j)=>{"use strict";j.d(Tt,{T:()=>ve});var g=j(9974),c=j(4360);function ve(Fe,Y){return(0,g.N)((Ae,se)=>{let Je=0;Ae.subscribe((0,c._)(se,et=>{se.next(Fe.call(Y,et,Je++))}))})}},1397:(Tn,Tt,j)=>{"use strict";j.d(Tt,{Z:()=>Je});var g=j(6354),c=j(8750),ve=j(9974),Fe=j(5225),Y=j(4360),se=j(8071);function Je(et,be,Ee=1/0){return(0,se.T)(be)?Je((Ve,Be)=>(0,g.T)((Le,Ze)=>be(Ve,Le,Be,Ze))((0,c.Tg)(et(Ve,Be))),Ee):("number"==typeof be&&(Ee=be),(0,ve.N)((Ve,Be)=>function Ae(et,be,Ee,Ve,Be,Le,Ze,pt){const ct=[];let lt=0,Pt=0,yt=!1;const vt=()=>{yt&&!ct.length&&!lt&&be.complete()},Re=Xe=>lt{Le&&be.next(Xe),lt++;let Dt=!1;(0,c.Tg)(Ee(Xe,Pt++)).subscribe((0,Y._)(be,Ot=>{null==Be||Be(Ot),Le?Re(Ot):be.next(Ot)},()=>{Dt=!0},void 0,()=>{if(Dt)try{for(lt--;ct.length&<Ge(Ot)):Ge(Ot)}vt()}catch(Ot){be.error(Ot)}}))};return et.subscribe((0,Y._)(be,Re,()=>{yt=!0,vt()})),()=>{null==pt||pt()}}(Ve,Be,et,Ee)))}},941:(Tn,Tt,j)=>{"use strict";j.d(Tt,{Q:()=>Fe});var g=j(5225),c=j(9974),ve=j(4360);function Fe(Y,Ae=0){return(0,c.N)((se,Je)=>{se.subscribe((0,ve._)(Je,et=>(0,g.N)(Je,Y,()=>Je.next(et),Ae),()=>(0,g.N)(Je,Y,()=>Je.complete(),Ae),et=>(0,g.N)(Je,Y,()=>Je.error(et),Ae)))})}},6745:(Tn,Tt,j)=>{"use strict";j.d(Tt,{_:()=>c});var g=j(9974);function c(ve,Fe=0){return(0,g.N)((Y,Ae)=>{Ae.add(ve.schedule(()=>Y.subscribe(Ae),Fe))})}},5558:(Tn,Tt,j)=>{"use strict";j.d(Tt,{n:()=>Fe});var g=j(8750),c=j(9974),ve=j(4360);function Fe(Y,Ae){return(0,c.N)((se,Je)=>{let et=null,be=0,Ee=!1;const Ve=()=>Ee&&!et&&Je.complete();se.subscribe((0,ve._)(Je,Be=>{null==et||et.unsubscribe();let Le=0;const Ze=be++;(0,g.Tg)(Y(Be,Ze)).subscribe(et=(0,ve._)(Je,pt=>Je.next(Ae?Ae(Be,pt,Ze,Le++):pt),()=>{et=null,Ve()}))},()=>{Ee=!0,Ve()}))})}},6697:(Tn,Tt,j)=>{"use strict";j.d(Tt,{s:()=>Fe});var g=j(983),c=j(9974),ve=j(4360);function Fe(Y){return Y<=0?()=>g.w:(0,c.N)((Ae,se)=>{let Je=0;Ae.subscribe((0,ve._)(se,et=>{++Je<=Y&&(se.next(et),Y<=Je&&se.complete())}))})}},8141:(Tn,Tt,j)=>{"use strict";j.d(Tt,{M:()=>Y});var g=j(8071),c=j(9974),ve=j(4360),Fe=j(3669);function Y(Ae,se,Je){const et=(0,g.T)(Ae)||se||Je?{next:Ae,error:se,complete:Je}:Ae;return et?(0,c.N)((be,Ee)=>{var Ve;null===(Ve=et.subscribe)||void 0===Ve||Ve.call(et);let Be=!0;be.subscribe((0,ve._)(Ee,Le=>{var Ze;null===(Ze=et.next)||void 0===Ze||Ze.call(et,Le),Ee.next(Le)},()=>{var Le;Be=!1,null===(Le=et.complete)||void 0===Le||Le.call(et),Ee.complete()},Le=>{var Ze;Be=!1,null===(Ze=et.error)||void 0===Ze||Ze.call(et,Le),Ee.error(Le)},()=>{var Le,Ze;Be&&(null===(Le=et.unsubscribe)||void 0===Le||Le.call(et)),null===(Ze=et.finalize)||void 0===Ze||Ze.call(et)}))}):Fe.D}},9270:(Tn,Tt,j)=>{"use strict";j.d(Tt,{f:()=>g});const g={setTimeout(c,ve,...Fe){const{delegate:Y}=g;return null!=Y&&Y.setTimeout?Y.setTimeout(c,ve,...Fe):setTimeout(c,ve,...Fe)},clearTimeout(c){const{delegate:ve}=g;return((null==ve?void 0:ve.clearTimeout)||clearTimeout)(c)},delegate:void 0}},4761:(Tn,Tt,j)=>{"use strict";j.d(Tt,{l:()=>c});const c=function g(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},3494:(Tn,Tt,j)=>{"use strict";j.d(Tt,{s:()=>g});const g="function"==typeof Symbol&&Symbol.observable||"@@observable"},3794:(Tn,Tt,j)=>{"use strict";j.d(Tt,{ms:()=>Fe,lI:()=>Y});var g=j(8071);function ve(se){return se[se.length-1]}function Fe(se){return(0,g.T)(ve(se))?se.pop():void 0}function Y(se){return function c(se){return se&&(0,g.T)(se.schedule)}(ve(se))?se.pop():void 0}},3073:(Tn,Tt,j)=>{"use strict";j.d(Tt,{D:()=>Y});const{isArray:g}=Array,{getPrototypeOf:c,prototype:ve,keys:Fe}=Object;function Y(se){if(1===se.length){const Je=se[0];if(g(Je))return{args:Je,keys:null};if(function Ae(se){return se&&"object"==typeof se&&c(se)===ve}(Je)){const et=Fe(Je);return{args:et.map(be=>Je[be]),keys:et}}}return{args:se,keys:null}}},7908:(Tn,Tt,j)=>{"use strict";function g(c,ve){if(c){const Fe=c.indexOf(ve);0<=Fe&&c.splice(Fe,1)}}j.d(Tt,{o:()=>g})},1853:(Tn,Tt,j)=>{"use strict";function g(c){const Fe=c(Y=>{Error.call(Y),Y.stack=(new Error).stack});return Fe.prototype=Object.create(Error.prototype),Fe.prototype.constructor=Fe,Fe}j.d(Tt,{L:()=>g})},8496:(Tn,Tt,j)=>{"use strict";function g(c,ve){return c.reduce((Fe,Y,Ae)=>(Fe[Y]=ve[Ae],Fe),{})}j.d(Tt,{e:()=>g})},9786:(Tn,Tt,j)=>{"use strict";j.d(Tt,{Y:()=>ve,l:()=>Fe});var g=j(1026);let c=null;function ve(Y){if(g.$.useDeprecatedSynchronousErrorHandling){const Ae=!c;if(Ae&&(c={errorThrown:!1,error:null}),Y(),Ae){const{errorThrown:se,error:Je}=c;if(c=null,se)throw Je}}else Y()}function Fe(Y){g.$.useDeprecatedSynchronousErrorHandling&&c&&(c.errorThrown=!0,c.error=Y)}},5225:(Tn,Tt,j)=>{"use strict";function g(c,ve,Fe,Y=0,Ae=!1){const se=ve.schedule(function(){Fe(),Ae?c.add(this.schedule(null,Y)):this.unsubscribe()},Y);if(c.add(se),!Ae)return se}j.d(Tt,{N:()=>g})},3669:(Tn,Tt,j)=>{"use strict";function g(c){return c}j.d(Tt,{D:()=>g})},7441:(Tn,Tt,j)=>{"use strict";j.d(Tt,{X:()=>g});const g=c=>c&&"number"==typeof c.length&&"function"!=typeof c},7953:(Tn,Tt,j)=>{"use strict";j.d(Tt,{T:()=>c});var g=j(8071);function c(ve){return Symbol.asyncIterator&&(0,g.T)(null==ve?void 0:ve[Symbol.asyncIterator])}},8071:(Tn,Tt,j)=>{"use strict";function g(c){return"function"==typeof c}j.d(Tt,{T:()=>g})},5055:(Tn,Tt,j)=>{"use strict";j.d(Tt,{l:()=>ve});var g=j(3494),c=j(8071);function ve(Fe){return(0,c.T)(Fe[g.s])}},5397:(Tn,Tt,j)=>{"use strict";j.d(Tt,{x:()=>ve});var g=j(4761),c=j(8071);function ve(Fe){return(0,c.T)(null==Fe?void 0:Fe[g.l])}},9858:(Tn,Tt,j)=>{"use strict";j.d(Tt,{y:()=>c});var g=j(8071);function c(ve){return(0,g.T)(null==ve?void 0:ve.then)}},5196:(Tn,Tt,j)=>{"use strict";j.d(Tt,{C:()=>ve,U:()=>Fe});var g=j(1635),c=j(8071);function ve(Y){return(0,g.AQ)(this,arguments,function*(){const se=Y.getReader();try{for(;;){const{value:Je,done:et}=yield(0,g.N3)(se.read());if(et)return yield(0,g.N3)(void 0);yield yield(0,g.N3)(Je)}}finally{se.releaseLock()}})}function Fe(Y){return(0,c.T)(null==Y?void 0:Y.getReader)}},9974:(Tn,Tt,j)=>{"use strict";j.d(Tt,{N:()=>ve,S:()=>c});var g=j(8071);function c(Fe){return(0,g.T)(null==Fe?void 0:Fe.lift)}function ve(Fe){return Y=>{if(c(Y))return Y.lift(function(Ae){try{return Fe(Ae,this)}catch(se){this.error(se)}});throw new TypeError("Unable to lift unknown Observable type")}}},6450:(Tn,Tt,j)=>{"use strict";j.d(Tt,{I:()=>Fe});var g=j(6354);const{isArray:c}=Array;function Fe(Y){return(0,g.T)(Ae=>function ve(Y,Ae){return c(Ae)?Y(...Ae):Y(Ae)}(Y,Ae))}},5343:(Tn,Tt,j)=>{"use strict";function g(){}j.d(Tt,{l:()=>g})},1203:(Tn,Tt,j)=>{"use strict";j.d(Tt,{F:()=>c,m:()=>ve});var g=j(3669);function c(...Fe){return ve(Fe)}function ve(Fe){return 0===Fe.length?g.D:1===Fe.length?Fe[0]:function(Ae){return Fe.reduce((se,Je)=>Je(se),Ae)}}},5334:(Tn,Tt,j)=>{"use strict";j.d(Tt,{m:()=>ve});var g=j(1026),c=j(9270);function ve(Fe){c.f.setTimeout(()=>{const{onUnhandledError:Y}=g.$;if(!Y)throw Fe;Y(Fe)})}},591:(Tn,Tt,j)=>{"use strict";function g(c){return new TypeError(`You provided ${null!==c&&"object"==typeof c?"an invalid object":`'${c}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}j.d(Tt,{L:()=>g})},8996:(Tn,Tt,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 c(ve){if(!j.o(g,ve))return Promise.resolve().then(()=>{var Ae=new Error("Cannot find module '"+ve+"'");throw Ae.code="MODULE_NOT_FOUND",Ae});var Fe=g[ve],Y=Fe[0];return Promise.all(Fe.slice(1).map(j.e)).then(()=>j(Y))}c.keys=()=>Object.keys(g),c.id=8996,Tn.exports=c},177:(Tn,Tt,j)=>{"use strict";j.d(Tt,{AJ:()=>$t,MD:()=>nt,N0:()=>Ii,QT:()=>ve,Sm:()=>pt,Sq:()=>Ht,T3:()=>kn,VF:()=>Y,Vy:()=>bn,Xr:()=>vr,ZD:()=>Fe,_b:()=>R,aZ:()=>lt,bT:()=>Ln,fw:()=>ct,hb:()=>Le,hj:()=>et,qQ:()=>se});var g=j(4438);let c=null;function ve(){return c}function Fe(T){var $;null!==($=c)&&void 0!==$||(c=T)}class Y{}const se=new g.nKC("");let Je=(()=>{var T;class ${historyGo(k){throw new Error("")}}return(T=$).\u0275fac=function(k){return new(k||T)},T.\u0275prov=g.jDH({token:T,factory:()=>(0,g.WQX)(be),providedIn:"platform"}),$})();const et=new g.nKC("");let be=(()=>{var T;class $ extends Je{constructor(){super(),this._doc=(0,g.WQX)(se),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return ve().getBaseHref(this._doc)}onPopState(k){const he=ve().getGlobalEventTarget(this._doc,"window");return he.addEventListener("popstate",k,!1),()=>he.removeEventListener("popstate",k)}onHashChange(k){const he=ve().getGlobalEventTarget(this._doc,"window");return he.addEventListener("hashchange",k,!1),()=>he.removeEventListener("hashchange",k)}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(k){this._location.pathname=k}pushState(k,he,ke){this._history.pushState(k,he,ke)}replaceState(k,he,ke){this._history.replaceState(k,he,ke)}forward(){this._history.forward()}back(){this._history.back()}historyGo(k=0){this._history.go(k)}getState(){return this._history.state}}return(T=$).\u0275fac=function(k){return new(k||T)},T.\u0275prov=g.jDH({token:T,factory:()=>new T,providedIn:"platform"}),$})();function Ee(T,$){if(0==T.length)return $;if(0==$.length)return T;let Se=0;return T.endsWith("/")&&Se++,$.startsWith("/")&&Se++,2==Se?T+$.substring(1):1==Se?T+$:T+"/"+$}function Ve(T){const $=T.match(/#|\?|$/),Se=$&&$.index||T.length;return T.slice(0,Se-("/"===T[Se-1]?1:0))+T.slice(Se)}function Be(T){return T&&"?"!==T[0]?"?"+T:T}let Le=(()=>{var T;class ${historyGo(k){throw new Error("")}}return(T=$).\u0275fac=function(k){return new(k||T)},T.\u0275prov=g.jDH({token:T,factory:()=>(0,g.WQX)(pt),providedIn:"root"}),$})();const Ze=new g.nKC("");let pt=(()=>{var T;class $ extends Le{constructor(k,he){var ke,Vt,dn;super(),this._platformLocation=k,this._removeListenerFns=[],this._baseHref=null!==(ke=null!==(Vt=null!=he?he:this._platformLocation.getBaseHrefFromDOM())&&void 0!==Vt?Vt:null===(dn=(0,g.WQX)(se).location)||void 0===dn?void 0:dn.origin)&&void 0!==ke?ke:""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(k){this._removeListenerFns.push(this._platformLocation.onPopState(k),this._platformLocation.onHashChange(k))}getBaseHref(){return this._baseHref}prepareExternalUrl(k){return Ee(this._baseHref,k)}path(k=!1){const he=this._platformLocation.pathname+Be(this._platformLocation.search),ke=this._platformLocation.hash;return ke&&k?`${he}${ke}`:he}pushState(k,he,ke,Vt){const dn=this.prepareExternalUrl(ke+Be(Vt));this._platformLocation.pushState(k,he,dn)}replaceState(k,he,ke,Vt){const dn=this.prepareExternalUrl(ke+Be(Vt));this._platformLocation.replaceState(k,he,dn)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(k=0){var he,ke;null===(he=(ke=this._platformLocation).historyGo)||void 0===he||he.call(ke,k)}}return(T=$).\u0275fac=function(k){return new(k||T)(g.KVO(Je),g.KVO(Ze,8))},T.\u0275prov=g.jDH({token:T,factory:T.\u0275fac,providedIn:"root"}),$})(),ct=(()=>{var T;class $ extends Le{constructor(k,he){super(),this._platformLocation=k,this._baseHref="",this._removeListenerFns=[],null!=he&&(this._baseHref=he)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(k){this._removeListenerFns.push(this._platformLocation.onPopState(k),this._platformLocation.onHashChange(k))}getBaseHref(){return this._baseHref}path(k=!1){var he;const ke=null!==(he=this._platformLocation.hash)&&void 0!==he?he:"#";return ke.length>0?ke.substring(1):ke}prepareExternalUrl(k){const he=Ee(this._baseHref,k);return he.length>0?"#"+he:he}pushState(k,he,ke,Vt){let dn=this.prepareExternalUrl(ke+Be(Vt));0==dn.length&&(dn=this._platformLocation.pathname),this._platformLocation.pushState(k,he,dn)}replaceState(k,he,ke,Vt){let dn=this.prepareExternalUrl(ke+Be(Vt));0==dn.length&&(dn=this._platformLocation.pathname),this._platformLocation.replaceState(k,he,dn)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(k=0){var he,ke;null===(he=(ke=this._platformLocation).historyGo)||void 0===he||he.call(ke,k)}}return(T=$).\u0275fac=function(k){return new(k||T)(g.KVO(Je),g.KVO(Ze,8))},T.\u0275prov=g.jDH({token:T,factory:T.\u0275fac}),$})(),lt=(()=>{var T;class ${constructor(k){this._subject=new g.bkB,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=k;const he=this._locationStrategy.getBaseHref();this._basePath=function Re(T){if(new RegExp("^(https?:)?//").test(T)){const[,Se]=T.split(/\/\/[^\/]+/);return Se}return T}(Ve(vt(he))),this._locationStrategy.onPopState(ke=>{this._subject.emit({url:this.path(!0),pop:!0,state:ke.state,type:ke.type})})}ngOnDestroy(){var k;null===(k=this._urlChangeSubscription)||void 0===k||k.unsubscribe(),this._urlChangeListeners=[]}path(k=!1){return this.normalize(this._locationStrategy.path(k))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(k,he=""){return this.path()==this.normalize(k+Be(he))}normalize(k){return $.stripTrailingSlash(function yt(T,$){if(!T||!$.startsWith(T))return $;const Se=$.substring(T.length);return""===Se||["/",";","?","#"].includes(Se[0])?Se:$}(this._basePath,vt(k)))}prepareExternalUrl(k){return k&&"/"!==k[0]&&(k="/"+k),this._locationStrategy.prepareExternalUrl(k)}go(k,he="",ke=null){this._locationStrategy.pushState(ke,"",k,he),this._notifyUrlChangeListeners(this.prepareExternalUrl(k+Be(he)),ke)}replaceState(k,he="",ke=null){this._locationStrategy.replaceState(ke,"",k,he),this._notifyUrlChangeListeners(this.prepareExternalUrl(k+Be(he)),ke)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(k=0){var he,ke;null===(he=(ke=this._locationStrategy).historyGo)||void 0===he||he.call(ke,k)}onUrlChange(k){var he;return this._urlChangeListeners.push(k),null!==(he=this._urlChangeSubscription)&&void 0!==he||(this._urlChangeSubscription=this.subscribe(ke=>{this._notifyUrlChangeListeners(ke.url,ke.state)})),()=>{const ke=this._urlChangeListeners.indexOf(k);var Vt;this._urlChangeListeners.splice(ke,1),0===this._urlChangeListeners.length&&(null===(Vt=this._urlChangeSubscription)||void 0===Vt||Vt.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(k="",he){this._urlChangeListeners.forEach(ke=>ke(k,he))}subscribe(k,he,ke){return this._subject.subscribe({next:k,error:he,complete:ke})}}return(T=$).normalizeQueryParams=Be,T.joinWithSlash=Ee,T.stripTrailingSlash=Ve,T.\u0275fac=function(k){return new(k||T)(g.KVO(Le))},T.\u0275prov=g.jDH({token:T,factory:()=>function Pt(){return new lt((0,g.KVO)(Le))}(),providedIn:"root"}),$})();function vt(T){return T.replace(/\/index.html$/,"")}function R(T,$){$=encodeURIComponent($);for(const Se of T.split(";")){const k=Se.indexOf("="),[he,ke]=-1==k?[Se,""]:[Se.slice(0,k),Se.slice(k+1)];if(he.trim()===$)return decodeURIComponent(ke)}return null}class rt{constructor($,Se,k,he){this.$implicit=$,this.ngForOf=Se,this.index=k,this.count=he}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 Ht=(()=>{var T;class ${set ngForOf(k){this._ngForOf=k,this._ngForOfDirty=!0}set ngForTrackBy(k){this._trackByFn=k}get ngForTrackBy(){return this._trackByFn}constructor(k,he,ke){this._viewContainer=k,this._template=he,this._differs=ke,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(k){k&&(this._template=k)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const k=this._ngForOf;!this._differ&&k&&(this._differ=this._differs.find(k).create(this.ngForTrackBy))}if(this._differ){const k=this._differ.diff(this._ngForOf);k&&this._applyChanges(k)}}_applyChanges(k){const he=this._viewContainer;k.forEachOperation((ke,Vt,dn)=>{if(null==ke.previousIndex)he.createEmbeddedView(this._template,new rt(ke.item,this._ngForOf,-1,-1),null===dn?void 0:dn);else if(null==dn)he.remove(null===Vt?void 0:Vt);else if(null!==Vt){const Hn=he.get(Vt);he.move(Hn,dn),Kt(Hn,ke)}});for(let ke=0,Vt=he.length;ke{Kt(he.get(ke.currentIndex),ke)})}static ngTemplateContextGuard(k,he){return!0}}return(T=$).\u0275fac=function(k){return new(k||T)(g.rXU(g.c1b),g.rXU(g.C4Q),g.rXU(g._q3))},T.\u0275dir=g.FsC({type:T,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),$})();function Kt(T,$){T.context.$implicit=$.item}let Ln=(()=>{var T;class ${constructor(k,he){this._viewContainer=k,this._context=new Ur,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=he}set ngIf(k){this._context.$implicit=this._context.ngIf=k,this._updateView()}set ngIfThen(k){dr("ngIfThen",k),this._thenTemplateRef=k,this._thenViewRef=null,this._updateView()}set ngIfElse(k){dr("ngIfElse",k),this._elseTemplateRef=k,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(k,he){return!0}}return(T=$).\u0275fac=function(k){return new(k||T)(g.rXU(g.c1b),g.rXU(g.C4Q))},T.\u0275dir=g.FsC({type:T,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),$})();class Ur{constructor(){this.$implicit=null,this.ngIf=null}}function dr(T,$){if($&&!$.createEmbeddedView)throw new Error(`${T} must be a TemplateRef, but received '${(0,g.Tbb)($)}'.`)}let kn=(()=>{var T;class ${constructor(k){this._viewContainerRef=k,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(k){if(this._shouldRecreateView(k)){var he;const ke=this._viewContainerRef;if(this._viewRef&&ke.remove(ke.indexOf(this._viewRef)),!this.ngTemplateOutlet)return void(this._viewRef=null);const Vt=this._createContextForwardProxy();this._viewRef=ke.createEmbeddedView(this.ngTemplateOutlet,Vt,{injector:null!==(he=this.ngTemplateOutletInjector)&&void 0!==he?he:void 0})}}_shouldRecreateView(k){return!!k.ngTemplateOutlet||!!k.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(k,he,ke)=>!!this.ngTemplateOutletContext&&Reflect.set(this.ngTemplateOutletContext,he,ke),get:(k,he,ke)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,he,ke)}})}}return(T=$).\u0275fac=function(k){return new(k||T)(g.rXU(g.c1b))},T.\u0275dir=g.FsC({type:T,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[g.OA$]}),$})(),nt=(()=>{var T;class ${}return(T=$).\u0275fac=function(k){return new(k||T)},T.\u0275mod=g.$C({type:T}),T.\u0275inj=g.G2t({}),$})();const $t="browser",qt="server";function bn(T){return T===qt}let vr=(()=>{var T;class ${}return(T=$).\u0275prov=(0,g.jDH)({token:T,providedIn:"root",factory:()=>function An(T){return T===$t}((0,g.WQX)(g.Agw))?new ar((0,g.WQX)(se),window):new Di}),$})();class ar{constructor($,Se){this.document=$,this.window=Se,this.offset=()=>[0,0]}setOffset($){this.offset=Array.isArray($)?()=>$:$}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition($){this.window.scrollTo($[0],$[1])}scrollToAnchor($){const Se=function _i(T,$){const Se=T.getElementById($)||T.getElementsByName($)[0];if(Se)return Se;if("function"==typeof T.createTreeWalker&&T.body&&"function"==typeof T.body.attachShadow){const k=T.createTreeWalker(T.body,NodeFilter.SHOW_ELEMENT);let he=k.currentNode;for(;he;){const ke=he.shadowRoot;if(ke){const Vt=ke.getElementById($)||ke.querySelector(`[name="${$}"]`);if(Vt)return Vt}he=k.nextNode()}}return null}(this.document,$);Se&&(this.scrollToElement(Se),Se.focus())}setHistoryScrollRestoration($){this.window.history.scrollRestoration=$}scrollToElement($){const Se=$.getBoundingClientRect(),k=Se.left+this.window.pageXOffset,he=Se.top+this.window.pageYOffset,ke=this.offset();this.window.scrollTo(k-ke[0],he-ke[1])}}class Di{setOffset($){}getScrollPosition(){return[0,0]}scrollToPosition($){}scrollToAnchor($){}setHistoryScrollRestoration($){}}class Ii{}},1626:(Tn,Tt,j)=>{"use strict";j.d(Tt,{Qq:()=>ne,q1:()=>cr}),j(467);var c=j(4438),ve=j(7673),Fe=j(1985),Y=j(8455),Ae=j(274),se=j(5964),Je=j(6354),et=j(980),be=j(5558),Ee=j(177);class Ve{}class Be{}class Le{constructor(R){this.normalizedNames=new Map,this.lazyUpdate=null,R?"string"==typeof R?this.lazyInit=()=>{this.headers=new Map,R.split("\n").forEach(V=>{const Z=V.indexOf(":");if(Z>0){const U=V.slice(0,Z),re=U.toLowerCase(),Oe=V.slice(Z+1).trim();this.maybeSetNormalizedName(U,re),this.headers.has(re)?this.headers.get(re).push(Oe):this.headers.set(re,[Oe])}})}:typeof Headers<"u"&&R instanceof Headers?(this.headers=new Map,R.forEach((V,Z)=>{this.setHeaderEntries(Z,V)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(R).forEach(([V,Z])=>{this.setHeaderEntries(V,Z)})}:this.headers=new Map}has(R){return this.init(),this.headers.has(R.toLowerCase())}get(R){this.init();const V=this.headers.get(R.toLowerCase());return V&&V.length>0?V[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(R){return this.init(),this.headers.get(R.toLowerCase())||null}append(R,V){return this.clone({name:R,value:V,op:"a"})}set(R,V){return this.clone({name:R,value:V,op:"s"})}delete(R,V){return this.clone({name:R,value:V,op:"d"})}maybeSetNormalizedName(R,V){this.normalizedNames.has(V)||this.normalizedNames.set(V,R)}init(){this.lazyInit&&(this.lazyInit instanceof Le?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(R=>this.applyUpdate(R)),this.lazyUpdate=null))}copyFrom(R){R.init(),Array.from(R.headers.keys()).forEach(V=>{this.headers.set(V,R.headers.get(V)),this.normalizedNames.set(V,R.normalizedNames.get(V))})}clone(R){const V=new Le;return V.lazyInit=this.lazyInit&&this.lazyInit instanceof Le?this.lazyInit:this,V.lazyUpdate=(this.lazyUpdate||[]).concat([R]),V}applyUpdate(R){const V=R.name.toLowerCase();switch(R.op){case"a":case"s":let Z=R.value;if("string"==typeof Z&&(Z=[Z]),0===Z.length)return;this.maybeSetNormalizedName(R.name,V);const U=("a"===R.op?this.headers.get(V):void 0)||[];U.push(...Z),this.headers.set(V,U);break;case"d":const re=R.value;if(re){let Oe=this.headers.get(V);if(!Oe)return;Oe=Oe.filter(rt=>-1===re.indexOf(rt)),0===Oe.length?(this.headers.delete(V),this.normalizedNames.delete(V)):this.headers.set(V,Oe)}else this.headers.delete(V),this.normalizedNames.delete(V)}}setHeaderEntries(R,V){const Z=(Array.isArray(V)?V:[V]).map(re=>re.toString()),U=R.toLowerCase();this.headers.set(U,Z),this.maybeSetNormalizedName(R,U)}forEach(R){this.init(),Array.from(this.normalizedNames.keys()).forEach(V=>R(this.normalizedNames.get(V),this.headers.get(V)))}}class pt{encodeKey(R){return yt(R)}encodeValue(R){return yt(R)}decodeKey(R){return decodeURIComponent(R)}decodeValue(R){return decodeURIComponent(R)}}const lt=/%(\d[a-f0-9])/gi,Pt={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function yt(ce){return encodeURIComponent(ce).replace(lt,(R,V)=>{var Z;return null!==(Z=Pt[V])&&void 0!==Z?Z:R})}function vt(ce){return`${ce}`}class Re{constructor(R={}){if(this.updates=null,this.cloneFrom=null,this.encoder=R.encoder||new pt,R.fromString){if(R.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function ct(ce,R){const V=new Map;return ce.length>0&&ce.replace(/^\?/,"").split("&").forEach(U=>{const re=U.indexOf("="),[Oe,rt]=-1==re?[R.decodeKey(U),""]:[R.decodeKey(U.slice(0,re)),R.decodeValue(U.slice(re+1))],Ht=V.get(Oe)||[];Ht.push(rt),V.set(Oe,Ht)}),V}(R.fromString,this.encoder)}else R.fromObject?(this.map=new Map,Object.keys(R.fromObject).forEach(V=>{const Z=R.fromObject[V],U=Array.isArray(Z)?Z.map(vt):[vt(Z)];this.map.set(V,U)})):this.map=null}has(R){return this.init(),this.map.has(R)}get(R){this.init();const V=this.map.get(R);return V?V[0]:null}getAll(R){return this.init(),this.map.get(R)||null}keys(){return this.init(),Array.from(this.map.keys())}append(R,V){return this.clone({param:R,value:V,op:"a"})}appendAll(R){const V=[];return Object.keys(R).forEach(Z=>{const U=R[Z];Array.isArray(U)?U.forEach(re=>{V.push({param:Z,value:re,op:"a"})}):V.push({param:Z,value:U,op:"a"})}),this.clone(V)}set(R,V){return this.clone({param:R,value:V,op:"s"})}delete(R,V){return this.clone({param:R,value:V,op:"d"})}toString(){return this.init(),this.keys().map(R=>{const V=this.encoder.encodeKey(R);return this.map.get(R).map(Z=>V+"="+this.encoder.encodeValue(Z)).join("&")}).filter(R=>""!==R).join("&")}clone(R){const V=new Re({encoder:this.encoder});return V.cloneFrom=this.cloneFrom||this,V.updates=(this.updates||[]).concat(R),V}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(R=>this.map.set(R,this.cloneFrom.map.get(R))),this.updates.forEach(R=>{switch(R.op){case"a":case"s":const V=("a"===R.op?this.map.get(R.param):void 0)||[];V.push(vt(R.value)),this.map.set(R.param,V);break;case"d":if(void 0===R.value){this.map.delete(R.param);break}{let Z=this.map.get(R.param)||[];const U=Z.indexOf(vt(R.value));-1!==U&&Z.splice(U,1),Z.length>0?this.map.set(R.param,Z):this.map.delete(R.param)}}}),this.cloneFrom=this.updates=null)}}class Xe{constructor(){this.map=new Map}set(R,V){return this.map.set(R,V),this}get(R){return this.map.has(R)||this.map.set(R,R.defaultValue()),this.map.get(R)}delete(R){return this.map.delete(R),this}has(R){return this.map.has(R)}keys(){return this.map.keys()}}function Ot(ce){return typeof ArrayBuffer<"u"&&ce instanceof ArrayBuffer}function We(ce){return typeof Blob<"u"&&ce instanceof Blob}function bt(ce){return typeof FormData<"u"&&ce instanceof FormData}class Zt{constructor(R,V,Z,U){var re,Oe;let rt;if(this.url=V,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=R.toUpperCase(),function Dt(ce){switch(ce){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||U?(this.body=void 0!==Z?Z:null,rt=U):rt=Z,rt&&(this.reportProgress=!!rt.reportProgress,this.withCredentials=!!rt.withCredentials,rt.responseType&&(this.responseType=rt.responseType),rt.headers&&(this.headers=rt.headers),rt.context&&(this.context=rt.context),rt.params&&(this.params=rt.params),this.transferCache=rt.transferCache),null!==(re=this.headers)&&void 0!==re||(this.headers=new Le),null!==(Oe=this.context)&&void 0!==Oe||(this.context=new Xe),this.params){const Ht=this.params.toString();if(0===Ht.length)this.urlWithParams=V;else{const Kt=V.indexOf("?");this.urlWithParams=V+(-1===Kt?"?":Kton.set(Zn,R.setHeaders[Zn]),dr)),R.setParams&&(kr=Object.keys(R.setParams).reduce((on,Zn)=>on.set(Zn,R.setParams[Zn]),kr)),new Zt(Oe,rt,Bn,{params:kr,headers:dr,context:pr,reportProgress:Ur,responseType:Ht,withCredentials:Ln,transferCache:Kt})}}var It=function(ce){return ce[ce.Sent=0]="Sent",ce[ce.UploadProgress=1]="UploadProgress",ce[ce.ResponseHeader=2]="ResponseHeader",ce[ce.DownloadProgress=3]="DownloadProgress",ce[ce.Response=4]="Response",ce[ce.User=5]="User",ce}(It||{});class je{constructor(R,V=B.Ok,Z="OK"){this.headers=R.headers||new Le,this.status=void 0!==R.status?R.status:V,this.statusText=R.statusText||Z,this.url=R.url||null,this.ok=this.status>=200&&this.status<300}}class nn extends je{constructor(R={}){super(R),this.type=It.ResponseHeader}clone(R={}){return new nn({headers:R.headers||this.headers,status:void 0!==R.status?R.status:this.status,statusText:R.statusText||this.statusText,url:R.url||this.url||void 0})}}class ht extends je{constructor(R={}){super(R),this.type=It.Response,this.body=void 0!==R.body?R.body:null}clone(R={}){return new ht({body:void 0!==R.body?R.body:this.body,headers:R.headers||this.headers,status:void 0!==R.status?R.status:this.status,statusText:R.statusText||this.statusText,url:R.url||this.url||void 0})}}class Ne extends je{constructor(R){super(R,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${R.url||"(unknown url)"}`:`Http failure response for ${R.url||"(unknown url)"}: ${R.status} ${R.statusText}`,this.error=R.error||null}}var B=function(ce){return ce[ce.Continue=100]="Continue",ce[ce.SwitchingProtocols=101]="SwitchingProtocols",ce[ce.Processing=102]="Processing",ce[ce.EarlyHints=103]="EarlyHints",ce[ce.Ok=200]="Ok",ce[ce.Created=201]="Created",ce[ce.Accepted=202]="Accepted",ce[ce.NonAuthoritativeInformation=203]="NonAuthoritativeInformation",ce[ce.NoContent=204]="NoContent",ce[ce.ResetContent=205]="ResetContent",ce[ce.PartialContent=206]="PartialContent",ce[ce.MultiStatus=207]="MultiStatus",ce[ce.AlreadyReported=208]="AlreadyReported",ce[ce.ImUsed=226]="ImUsed",ce[ce.MultipleChoices=300]="MultipleChoices",ce[ce.MovedPermanently=301]="MovedPermanently",ce[ce.Found=302]="Found",ce[ce.SeeOther=303]="SeeOther",ce[ce.NotModified=304]="NotModified",ce[ce.UseProxy=305]="UseProxy",ce[ce.Unused=306]="Unused",ce[ce.TemporaryRedirect=307]="TemporaryRedirect",ce[ce.PermanentRedirect=308]="PermanentRedirect",ce[ce.BadRequest=400]="BadRequest",ce[ce.Unauthorized=401]="Unauthorized",ce[ce.PaymentRequired=402]="PaymentRequired",ce[ce.Forbidden=403]="Forbidden",ce[ce.NotFound=404]="NotFound",ce[ce.MethodNotAllowed=405]="MethodNotAllowed",ce[ce.NotAcceptable=406]="NotAcceptable",ce[ce.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",ce[ce.RequestTimeout=408]="RequestTimeout",ce[ce.Conflict=409]="Conflict",ce[ce.Gone=410]="Gone",ce[ce.LengthRequired=411]="LengthRequired",ce[ce.PreconditionFailed=412]="PreconditionFailed",ce[ce.PayloadTooLarge=413]="PayloadTooLarge",ce[ce.UriTooLong=414]="UriTooLong",ce[ce.UnsupportedMediaType=415]="UnsupportedMediaType",ce[ce.RangeNotSatisfiable=416]="RangeNotSatisfiable",ce[ce.ExpectationFailed=417]="ExpectationFailed",ce[ce.ImATeapot=418]="ImATeapot",ce[ce.MisdirectedRequest=421]="MisdirectedRequest",ce[ce.UnprocessableEntity=422]="UnprocessableEntity",ce[ce.Locked=423]="Locked",ce[ce.FailedDependency=424]="FailedDependency",ce[ce.TooEarly=425]="TooEarly",ce[ce.UpgradeRequired=426]="UpgradeRequired",ce[ce.PreconditionRequired=428]="PreconditionRequired",ce[ce.TooManyRequests=429]="TooManyRequests",ce[ce.RequestHeaderFieldsTooLarge=431]="RequestHeaderFieldsTooLarge",ce[ce.UnavailableForLegalReasons=451]="UnavailableForLegalReasons",ce[ce.InternalServerError=500]="InternalServerError",ce[ce.NotImplemented=501]="NotImplemented",ce[ce.BadGateway=502]="BadGateway",ce[ce.ServiceUnavailable=503]="ServiceUnavailable",ce[ce.GatewayTimeout=504]="GatewayTimeout",ce[ce.HttpVersionNotSupported=505]="HttpVersionNotSupported",ce[ce.VariantAlsoNegotiates=506]="VariantAlsoNegotiates",ce[ce.InsufficientStorage=507]="InsufficientStorage",ce[ce.LoopDetected=508]="LoopDetected",ce[ce.NotExtended=510]="NotExtended",ce[ce.NetworkAuthenticationRequired=511]="NetworkAuthenticationRequired",ce}(B||{});function K(ce,R){return{body:R,headers:ce.headers,context:ce.context,observe:ce.observe,params:ce.params,reportProgress:ce.reportProgress,responseType:ce.responseType,withCredentials:ce.withCredentials,transferCache:ce.transferCache}}let ne=(()=>{var ce;class R{constructor(Z){this.handler=Z}request(Z,U,re={}){let Oe;if(Z instanceof Zt)Oe=Z;else{let Kt,Bn;Kt=re.headers instanceof Le?re.headers:new Le(re.headers),re.params&&(Bn=re.params instanceof Re?re.params:new Re({fromObject:re.params})),Oe=new Zt(Z,U,void 0!==re.body?re.body:null,{headers:Kt,context:re.context,params:Bn,reportProgress:re.reportProgress,responseType:re.responseType||"json",withCredentials:re.withCredentials,transferCache:re.transferCache})}const rt=(0,ve.of)(Oe).pipe((0,Ae.H)(Kt=>this.handler.handle(Kt)));if(Z instanceof Zt||"events"===re.observe)return rt;const Ht=rt.pipe((0,se.p)(Kt=>Kt instanceof ht));switch(re.observe||"body"){case"body":switch(Oe.responseType){case"arraybuffer":return Ht.pipe((0,Je.T)(Kt=>{if(null!==Kt.body&&!(Kt.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return Kt.body}));case"blob":return Ht.pipe((0,Je.T)(Kt=>{if(null!==Kt.body&&!(Kt.body instanceof Blob))throw new Error("Response is not a Blob.");return Kt.body}));case"text":return Ht.pipe((0,Je.T)(Kt=>{if(null!==Kt.body&&"string"!=typeof Kt.body)throw new Error("Response is not a string.");return Kt.body}));default:return Ht.pipe((0,Je.T)(Kt=>Kt.body))}case"response":return Ht;default:throw new Error(`Unreachable: unhandled observe type ${re.observe}}`)}}delete(Z,U={}){return this.request("DELETE",Z,U)}get(Z,U={}){return this.request("GET",Z,U)}head(Z,U={}){return this.request("HEAD",Z,U)}jsonp(Z,U){return this.request("JSONP",Z,{params:(new Re).append(U,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(Z,U={}){return this.request("OPTIONS",Z,U)}patch(Z,U,re={}){return this.request("PATCH",Z,K(re,U))}post(Z,U,re={}){return this.request("POST",Z,K(re,U))}put(Z,U,re={}){return this.request("PUT",Z,K(re,U))}}return(ce=R).\u0275fac=function(Z){return new(Z||ce)(c.KVO(Ve))},ce.\u0275prov=c.jDH({token:ce,factory:ce.\u0275fac}),R})();function vn(ce,R){return R(ce)}function Sn(ce,R){return(V,Z)=>R.intercept(V,{handle:U=>ce(U,Z)})}const Xn=new c.nKC(""),Qn=new c.nKC(""),En=new c.nKC(""),nr=new c.nKC("");function Jn(){let ce=null;return(R,V)=>{var Z;null===ce&&(ce=(null!==(Z=(0,c.WQX)(Xn,{optional:!0}))&&void 0!==Z?Z:[]).reduceRight(Sn,vn));const U=(0,c.WQX)(c.TgB),re=U.add();return ce(R,V).pipe((0,et.j)(()=>U.remove(re)))}}let kt=(()=>{var ce;class R extends Ve{constructor(Z,U){super(),this.backend=Z,this.injector=U,this.chain=null,this.pendingTasks=(0,c.WQX)(c.TgB);const re=(0,c.WQX)(nr,{optional:!0});this.backend=null!=re?re:Z}handle(Z){if(null===this.chain){const re=Array.from(new Set([...this.injector.get(Qn),...this.injector.get(En,[])]));this.chain=re.reduceRight((Oe,rt)=>function jn(ce,R,V){return(Z,U)=>(0,c.N4e)(V,()=>R(Z,re=>ce(re,U)))}(Oe,rt,this.injector),vn)}const U=this.pendingTasks.add();return this.chain(Z,re=>this.backend.handle(re)).pipe((0,et.j)(()=>this.pendingTasks.remove(U)))}}return(ce=R).\u0275fac=function(Z){return new(Z||ce)(c.KVO(Be),c.KVO(c.uvJ))},ce.\u0275prov=c.jDH({token:ce,factory:ce.\u0275fac}),R})();const Cr=/^\)\]\}',?\n/;let li=(()=>{var ce;class R{constructor(Z){this.xhrFactory=Z}handle(Z){if("JSONP"===Z.method)throw new c.wOt(-2800,!1);const U=this.xhrFactory;return(U.\u0275loadImpl?(0,Y.H)(U.\u0275loadImpl()):(0,ve.of)(null)).pipe((0,be.n)(()=>new Fe.c(Oe=>{const rt=U.build();if(rt.open(Z.method,Z.urlWithParams),Z.withCredentials&&(rt.withCredentials=!0),Z.headers.forEach((on,Zn)=>rt.setRequestHeader(on,Zn.join(","))),Z.headers.has("Accept")||rt.setRequestHeader("Accept","application/json, text/plain, */*"),!Z.headers.has("Content-Type")){const on=Z.detectContentTypeHeader();null!==on&&rt.setRequestHeader("Content-Type",on)}if(Z.responseType){const on=Z.responseType.toLowerCase();rt.responseType="json"!==on?on:"text"}const Ht=Z.serializeBody();let Kt=null;const Bn=()=>{if(null!==Kt)return Kt;const on=rt.statusText||"OK",Zn=new Le(rt.getAllResponseHeaders()),Br=function zn(ce){return"responseURL"in ce&&ce.responseURL?ce.responseURL:/^X-Request-URL:/m.test(ce.getAllResponseHeaders())?ce.getResponseHeader("X-Request-URL"):null}(rt)||Z.url;return Kt=new nn({headers:Zn,status:rt.status,statusText:on,url:Br}),Kt},Ln=()=>{let{headers:on,status:Zn,statusText:Br,url:xr}=Bn(),gr=null;Zn!==B.NoContent&&(gr=typeof rt.response>"u"?rt.responseText:rt.response),0===Zn&&(Zn=gr?B.Ok:0);let ur=Zn>=200&&Zn<300;if("json"===Z.responseType&&"string"==typeof gr){const qr=gr;gr=gr.replace(Cr,"");try{gr=""!==gr?JSON.parse(gr):null}catch(xn){gr=qr,ur&&(ur=!1,gr={error:xn,text:gr})}}ur?(Oe.next(new ht({body:gr,headers:on,status:Zn,statusText:Br,url:xr||void 0})),Oe.complete()):Oe.error(new Ne({error:gr,headers:on,status:Zn,statusText:Br,url:xr||void 0}))},Ur=on=>{const{url:Zn}=Bn(),Br=new Ne({error:on,status:rt.status||0,statusText:rt.statusText||"Unknown Error",url:Zn||void 0});Oe.error(Br)};let dr=!1;const kr=on=>{dr||(Oe.next(Bn()),dr=!0);let Zn={type:It.DownloadProgress,loaded:on.loaded};on.lengthComputable&&(Zn.total=on.total),"text"===Z.responseType&&rt.responseText&&(Zn.partialText=rt.responseText),Oe.next(Zn)},pr=on=>{let Zn={type:It.UploadProgress,loaded:on.loaded};on.lengthComputable&&(Zn.total=on.total),Oe.next(Zn)};return rt.addEventListener("load",Ln),rt.addEventListener("error",Ur),rt.addEventListener("timeout",Ur),rt.addEventListener("abort",Ur),Z.reportProgress&&(rt.addEventListener("progress",kr),null!==Ht&&rt.upload&&rt.upload.addEventListener("progress",pr)),rt.send(Ht),Oe.next({type:It.Sent}),()=>{rt.removeEventListener("error",Ur),rt.removeEventListener("abort",Ur),rt.removeEventListener("load",Ln),rt.removeEventListener("timeout",Ur),Z.reportProgress&&(rt.removeEventListener("progress",kr),null!==Ht&&rt.upload&&rt.upload.removeEventListener("progress",pr)),rt.readyState!==rt.DONE&&rt.abort()}})))}}return(ce=R).\u0275fac=function(Z){return new(Z||ce)(c.KVO(Ee.N0))},ce.\u0275prov=c.jDH({token:ce,factory:ce.\u0275fac}),R})();const Yn=new c.nKC(""),Rr=new c.nKC("",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),Tr=new c.nKC("",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class Ri{}let Jr=(()=>{var ce;class R{constructor(Z,U,re){this.doc=Z,this.platform=U,this.cookieName=re,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const Z=this.doc.cookie||"";return Z!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,Ee._b)(Z,this.cookieName),this.lastCookieString=Z),this.lastToken}}return(ce=R).\u0275fac=function(Z){return new(Z||ce)(c.KVO(Ee.qQ),c.KVO(c.Agw),c.KVO(Rr))},ce.\u0275prov=c.jDH({token:ce,factory:ce.\u0275fac}),R})();function Zr(ce,R){const V=ce.url.toLowerCase();if(!(0,c.WQX)(Yn)||"GET"===ce.method||"HEAD"===ce.method||V.startsWith("http://")||V.startsWith("https://"))return R(ce);const Z=(0,c.WQX)(Ri).getToken(),U=(0,c.WQX)(Tr);return null!=Z&&!ce.headers.has(U)&&(ce=ce.clone({headers:ce.headers.set(U,Z)})),R(ce)}var ze=function(ce){return ce[ce.Interceptors=0]="Interceptors",ce[ce.LegacyInterceptors=1]="LegacyInterceptors",ce[ce.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",ce[ce.NoXsrfProtection=3]="NoXsrfProtection",ce[ce.JsonpSupport=4]="JsonpSupport",ce[ce.RequestsMadeViaParent=5]="RequestsMadeViaParent",ce[ce.Fetch=6]="Fetch",ce}(ze||{});function dt(ce,R){return{\u0275kind:ce,\u0275providers:R}}function Qe(...ce){const R=[ne,li,kt,{provide:Ve,useExisting:kt},{provide:Be,useExisting:li},{provide:Qn,useValue:Zr,multi:!0},{provide:Yn,useValue:!0},{provide:Ri,useClass:Jr}];for(const V of ce)R.push(...V.\u0275providers);return(0,c.EmA)(R)}const pe=new c.nKC("");let cr=(()=>{var ce;class R{}return(ce=R).\u0275fac=function(Z){return new(Z||ce)},ce.\u0275mod=c.$C({type:ce}),ce.\u0275inj=c.G2t({providers:[Qe(dt(ze.LegacyInterceptors,[{provide:pe,useFactory:Jn},{provide:Qn,useExisting:pe,multi:!0}]))]}),R})()},4438:(Tn,Tt,j)=>{"use strict";j.d(Tt,{iLQ:()=>jI,sZ2:()=>vv,hnV:()=>eD,Hbi:()=>JM,o8S:()=>Id,BIS:()=>yy,gRc:()=>fD,Ql9:()=>TM,Ocv:()=>xM,Z63:()=>oo,aKT:()=>Qu,uvJ:()=>ts,zcH:()=>Ya,bkB:()=>Os,$GK:()=>ir,nKC:()=>U,zZn:()=>hs,_q3:()=>QI,MKu:()=>YI,xe9:()=>sy,Co$:()=>Ai,Vns:()=>io,SKi:()=>Ao,Xx1:()=>An,Agw:()=>Jd,PLl:()=>_v,sFG:()=>gm,_9s:()=>lp,czy:()=>Xg,kdw:()=>$n,C4Q:()=>sp,NYb:()=>vM,giA:()=>JT,xvI:()=>GR,RxE:()=>GT,c1b:()=>hd,gXe:()=>ms,mal:()=>u_,L39:()=>wP,a0P:()=>kP,Ol2:()=>K0,w6W:()=>os,oH4:()=>uD,SmG:()=>LM,Rfq:()=>Zr,WQX:()=>De,QuC:()=>ro,EmA:()=>ul,fpN:()=>YM,HJs:()=>FP,N4e:()=>lo,O8t:()=>RP,H3F:()=>WT,H8p:()=>dl,KH2:()=>Xp,TgB:()=>Mp,wOt:()=>$e,WHO:()=>QT,e01:()=>YT,H5H:()=>_I,Zy3:()=>At,mq5:()=>lC,JZv:()=>zn,LfX:()=>Rt,plB:()=>tl,jNT:()=>$I,zjR:()=>ZT,TL$:()=>Cg,Tbb:()=>rr,Vt3:()=>bp,Mj6:()=>as,GFd:()=>ji,OA$:()=>St,Jv_:()=>ET,aNF:()=>AT,R7$:()=>r0,BMQ:()=>iI,AVh:()=>cI,wni:()=>QC,VBU:()=>vs,FsC:()=>ls,jDH:()=>sr,G2t:()=>Mi,$C:()=>sl,EJ8:()=>ha,rXU:()=>id,nrm:()=>mI,eu8:()=>vI,bVm:()=>Y_,qex:()=>Q_,k0s:()=>X_,j41:()=>q_,RV6:()=>oC,xGo:()=>cf,KVO:()=>H,kS0:()=>Lc,QTQ:()=>o0,bIt:()=>EI,lsd:()=>ZC,XpG:()=>UC,SdG:()=>BC,NAR:()=>$C,Y8G:()=>lI,FS9:()=>CI,lJ4:()=>TT,mGM:()=>JC,Dyx:()=>nC,Z7z:()=>tC,fX1:()=>eC,Njj:()=>Ac,eBV:()=>Sd,n$t:()=>zf,DNE:()=>Pp,EFF:()=>uT,JRh:()=>DI,DH7:()=>yT,mxI:()=>SI,R50:()=>wI,GBs:()=>YC}),j(467);let ve=null,Y=1;const Ae=Symbol("SIGNAL");function se(e){const t=ve;return ve=e,t}function Le(e){if((!Xe(e)||e.dirty)&&(e.dirty||e.lastCleanEpoch!==Y)){if(!e.producerMustRecompute(e)&&!yt(e))return e.dirty=!1,void(e.lastCleanEpoch=Y);e.producerRecomputeValue(e),e.dirty=!1,e.lastCleanEpoch=Y}}function yt(e){Dt(e);for(let t=0;t0}function Dt(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 nn=null;var jn=j(1413),Xn=j(8359),Qn=j(4412),En=j(6354);const Jn="https://g.co/ng/security#xss";class $e extends Error{constructor(t,r){super(At(t,r)),this.code=t}}function At(e,t){return`NG0${Math.abs(e)}${t?": "+t:""}`}function yn(e){return{toString:e}.toString()}const Wt="__parameters__";function Or(e,t,r){return yn(()=>{const o=function Vr(e){return function(...r){if(e){const o=e(...r);for(const a in o)this[a]=o[a]}}}(t);function a(...d){if(this instanceof a)return o.apply(this,d),this;const p=new a(...d);return y.annotation=p,y;function y(A,L,Q){const te=A.hasOwnProperty(Wt)?A[Wt]:Object.defineProperty(A,Wt,{value:[]})[Wt];for(;te.length<=Q;)te.push(null);return(te[Q]=te[Q]||[]).push(p),A}}return r&&(a.prototype=Object.create(r.prototype)),a.prototype.ngMetadataName=e,a.annotationCls=a,a})}const zn=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 Rr(e,t){for(const r in t)t.hasOwnProperty(r)&&!e.hasOwnProperty(r)&&(e[r]=t[r])}function rr(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(rr).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 Tr(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const Jr=Rn({__forward_ref__:Rn});function Zr(e){return e.__forward_ref__=Zr,e.toString=function(){return rr(this())},e}function ue(e){return ze(e)?e():e}function ze(e){return"function"==typeof e&&e.hasOwnProperty(Jr)&&e.__forward_ref__===Zr}function sr(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Mi(e){return{providers:e.providers||[],imports:e.imports||[]}}function pi(e){return ut(e,ce)||ut(e,V)}function Rt(e){return null!==pi(e)}function ut(e,t){return e.hasOwnProperty(t)?e[t]:null}function mn(e){return e&&(e.hasOwnProperty(R)||e.hasOwnProperty(Z))?e[R]:null}const ce=Rn({\u0275prov:Rn}),R=Rn({\u0275inj:Rn}),V=Rn({ngInjectableDef:Rn}),Z=Rn({ngInjectorDef:Rn});class U{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=sr({token:this,providedIn:r.providedIn||"root",factory:r.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function pr(e){return e&&!!e.\u0275providers}const on=Rn({\u0275cmp:Rn}),Zn=Rn({\u0275dir:Rn}),Br=Rn({\u0275pipe:Rn}),xr=Rn({\u0275mod:Rn}),gr=Rn({\u0275fac:Rn}),ur=Rn({__NG_ELEMENT_ID__:Rn}),qr=Rn({__NG_ENV_ID__:Rn});function xn(e){return"string"==typeof e?e:null==e?"":String(e)}function ri(e,t){throw new $e(-201,!1)}var ir=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}(ir||{});let jr;function vi(){return jr}function Gn(e){const t=jr;return jr=e,t}function Lo(e,t,r){const o=pi(e);return o&&"root"==o.providedIn?void 0===o.value?o.value=o.factory():o.value:r&ir.Optional?null:void 0!==t?t:void ri()}const co={},bo="__NG_DI_FLAG__",Li="ngTempTokenPath",q=/\n/gm,P="__source";let me;function hr(e){const t=me;return me=e,t}function yi(e,t=ir.Default){if(void 0===me)throw new $e(-203,!1);return null===me?Lo(e,void 0,t):me.get(e,t&ir.Optional?null:void 0,t)}function H(e,t=ir.Default){return(vi()||yi)(ue(e),t)}function De(e,t=ir.Default){return H(e,Ue(t))}function Ue(e){return typeof e>"u"||"number"==typeof e?e:(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function at(e){const t=[];for(let r=0;rArray.isArray(r)?_i(r,t):t(r))}function Di(e,t,r){t>=e.length?e.push(r):e.splice(t,0,r)}function Ii(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Qi(e,t,r){let o=wo(e,t);return o>=0?e[1|o]=r:(o=~o,function ii(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 Xo(e,t){const r=wo(e,t);if(r>=0)return e[1|r]}function wo(e,t){return function ss(e,t,r){let o=0,a=e.length>>r;for(;a!==o;){const d=o+(a-o>>1),p=e[d<t?a=d:o=d+1}return~(a<t){p=d-1;break}}}for(;d-1){let d;for(;++ad?"":a[Q+1].toLowerCase(),2&o&&L!==te){if(ge(o))return!1;p=!0}}}}else{if(!p&&!ge(o)&&!ge(A))return!1;if(p&&ge(A))continue;p=!1,o=A|1&o}}return ge(o)||p}function ge(e){return!(1&e)}function G(e,t,r,o){if(null===t)return-1;let a=0;if(o||!r){let d=!1;for(;a-1)for(r++;r0?'="'+y+'"':"")+"]"}else 8&o?a+="."+p:4&o&&(a+=" "+p);else""!==a&&!ge(p)&&(t+=ao(d,a),a=""),o=p,d=d||!ge(o);r++}return""!==a&&(t+=ao(d,a)),t}function vs(e){return yn(()=>{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||Lr,_:null,schemas:e.schemas||null,tView:null,id:""};us(o);const a=e.dependencies;return o.directiveDefs=_s(a,!1),o.pipeDefs=_s(a,!0),o.id=function Dr(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 or(e)||Vi(e)}function Oa(e){return null!==e}function sl(e){return yn(()=>({type:e.type,bootstrap:e.bootstrap||Lr,declarations:e.declarations||Lr,imports:e.imports||Lr,exports:e.exports||Lr,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 d=e[a];let p,y,A=as.None;var o;Array.isArray(d)?(A=d[0],p=d[1],y=null!==(o=d[2])&&void 0!==o?o:p):(p=d,y=d),t?(r[p]=A!==as.None?[a,A]:a,t[p]=y):r[p]=a}return r}function ls(e){return yn(()=>{const t=ll(e);return us(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 or(e){return e[on]||null}function Vi(e){return e[Zn]||null}function xi(e){return e[Br]||null}function ro(e){const t=or(e)||Vi(e)||xi(e);return null!==t&&t.standalone}function ei(e,t){const r=e[xr]||null;if(!r&&!0===t)throw new Error(`Type ${rr(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||Lr,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 us(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?xi: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 d=p=>{r.push(p)};return _i(t,p=>{const y=p;cl(y,d,[],o)&&(a||(a=[]),a.push(y))}),void 0!==a&&js(a,d),r}function js(e,t){for(let r=0;r{t(d,o)})}}function cl(e,t,r,o){if(!(e=ue(e)))return!1;let a=null,d=mn(e);const p=!d&&or(e);if(d||p){if(p&&!p.standalone)return!1;a=e}else{const A=e.ngModule;if(d=mn(A),!d)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 L of A)cl(L,t,r,o)}}else{if(!d)return!1;{if(null!=d.imports&&!y){let L;o.add(a);try{_i(d.imports,Q=>{cl(Q,t,r,o)&&(L||(L=[]),L.push(Q))})}finally{}void 0!==L&&js(L,t)}if(!y){const L=Nr(a)||(()=>new a);t({provide:a,useFactory:L,deps:Lr},a),t({provide:so,useValue:a,multi:!0},a),t({provide:oo,useValue:()=>H(a),multi:!0},a)}const A=d.providers;if(null!=A&&!y){const L=e;Vl(A,Q=>{t(Q,L)})}}}return a!==e&&void 0!==e.providers}function Vl(e,t){for(let r of e)pr(r)&&(r=r.\u0275providers),Array.isArray(r)?Vl(r,t):t(r)}const Ul=Rn({provide:String,useValue:Rn});function fa(e){return null!==e&&"object"==typeof e&&Ul in e}function Zo(e){return"function"==typeof e}const dl=new U(""),es={},wu={};let $l;function Uo(){return void 0===$l&&($l=new ua),$l}class ts{}class Rs extends ts{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,La(void 0,this)),a.has("environment")&&this.records.set(ts,La(void 0,this));const d=this.records.get(dl);null!=d&&"string"==typeof d.value&&this.scopes.add(d.value),this.injectorDefTypes=new Set(this.get(so,Lr,ir.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;const t=se(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(),se(t)}}onDestroy(t){return this.assertNotDestroyed(),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){this.assertNotDestroyed();const r=hr(this),o=Gn(void 0);try{return t()}finally{hr(r),Gn(o)}}get(t,r=co,o=ir.Default){if(this.assertNotDestroyed(),t.hasOwnProperty(qr))return t[qr](this);o=Ue(o);const d=hr(this),p=Gn(void 0);try{if(!(o&ir.SkipSelf)){let A=this.records.get(t);if(void 0===A){const L=function ma(e){return"function"==typeof e||"object"==typeof e&&e instanceof U}(t)&&pi(t);A=L&&this.injectableDefInScope(L)?La(Ni(t),es):null,this.records.set(t,A)}if(null!=A)return this.hydrate(t,A)}return(o&ir.Self?Uo():this.parent).get(t,r=o&ir.Optional&&r===co?null:r)}catch(y){if("NullInjectorError"===y.name){if((y[Li]=y[Li]||[]).unshift(rr(t)),d)throw y;return function qt(e,t,r,o){const a=e[Li];throw t[P]&&a.unshift(t[P]),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=rr(t);if(Array.isArray(t))a=t.map(rr).join(" -> ");else if("object"==typeof t){let d=[];for(let p in t)if(t.hasOwnProperty(p)){let y=t[p];d.push(p+":"+("string"==typeof y?JSON.stringify(y):rr(y)))}a=`{${d.join(", ")}}`}return`${r}${o?"("+o+")":""}[${a}]: ${e.replace(q,"\n ")}`}("\n"+e.message,a,r,o),e.ngTokenPath=a,e[Li]=null,e}(y,t,"R3InjectorError",this.source)}throw y}finally{Gn(p),hr(d)}}resolveInjectorInitializers(){const t=se(null),r=hr(this),o=Gn(void 0);try{const d=this.get(oo,Lr,ir.Self);for(const p of d)p()}finally{hr(r),Gn(o),se(t)}}toString(){const t=[],r=this.records;for(const o of r.keys())t.push(rr(o));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new $e(205,!1)}processProvider(t){let r=Zo(t=ue(t))?t:ue(t&&t.provide);const o=function Bl(e){return fa(e)?La(void 0,e.useValue):La(ga(e),es)}(t);if(!Zo(t)&&!0===t.multi){let a=this.records.get(r);a||(a=La(void 0,es,!0),a.factory=()=>at(a.multi),this.records.set(r,a)),r=t,a.multi.push(t)}this.records.set(r,o)}hydrate(t,r){const o=se(null);try{return r.value===es&&(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{se(o)}}injectableDefInScope(t){if(!t.providedIn)return!1;const r=ue(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 Ni(e){const t=pi(e),r=null!==t?t.factory:Nr(e);if(null!==r)return r;if(e instanceof U)throw new $e(204,!1);if(e instanceof Function)return function pa(e){if(e.length>0)throw new $e(204,!1);const r=function Bt(e){return e&&(e[ce]||e[V])||null}(e);return null!==r?()=>r.factory(e):()=>new e}(e);throw new $e(204,!1)}function ga(e,t,r){let o;if(Zo(e)){const a=ue(e);return Nr(a)||Ni(a)}if(fa(e))o=()=>ue(e.useValue);else if(function ws(e){return!(!e||!e.useFactory)}(e))o=()=>e.useFactory(...at(e.deps||[]));else if(function Is(e){return!(!e||!e.useExisting)}(e))o=()=>H(ue(e.useExisting));else{const a=ue(e&&(e.useClass||e.provide));if(!function zs(e){return!!e.deps}(e))return Nr(a)||Ni(a);o=()=>new a(...at(e.deps))}return o}function La(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&&pr(r)?Ms(r.\u0275providers,t):t(r)}function lo(e,t){e instanceof Rs&&e.assertNotDestroyed();const o=hr(e),a=Gn(void 0);try{return t()}finally{hr(o),Gn(a)}}function Hs(){return void 0!==vi()||null!=function Ye(){return me}()}const ti=0,fn=1,Un=2,oi=3,Gi=4,bi=5,Wi=6,$i=7,di=8,Hi=9,$o=10,Ar=11,Va=12,gc=13,Ua=14,Ki=15,va=16,ns=17,Ro=18,Gs=19,jl=20,Gr=21,_a=22,Ws=23,Pr=25,$a=1,Bo=7,Ks=9,Bi=10;var Su=function(e){return e[e.None=0]="None",e[e.HasTransplantedViews=2]="HasTransplantedViews",e}(Su||{});function Wr(e){return Array.isArray(e)&&"object"==typeof e[$a]}function yo(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 cs(e){return!!e.template}function Hl(e){return!!(512&e[Un])}class gt{constructor(t,r,o){this.previousValue=t,this.currentValue=r,this.firstChange=o}isFirstChange(){return this.firstChange}}function en(e,t,r,o){null!==t?t.applyValueToInputSignal(t,o):e[r]=o}function St(){return wn}function wn(e){return e.type.prototype.ngOnChanges&&(e.setInput=ki),yr}function yr(){const e=qi(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 ki(e,t,r,o,a){const d=this.declaredInputs[o],p=qi(e)||function jo(e,t){return e[Xr]=t}(e,{previous:Vo,current:null}),y=p.current||(p.current={}),A=p.previous,L=A[d];y[d]=new gt(L&&L.currentValue,r,A===Vo),en(e,t,a,r)}St.ngInherit=!0;const Xr="__ngSimpleChanges__";function qi(e){return e[Xr]||null}const Io=function(e,t,r){};let Ps=!1;function Ei(e){for(;Array.isArray(e);)e=e[ti];return e}function Ga(e,t){return Ei(t[e])}function rs(e,t){return Ei(t[e.index])}function Xl(e,t){return e.data[t]}function Mo(e,t){const r=t[e];return Wr(r)?r:r[ti]}function vc(e){return!(128&~e[Un])}function Cs(e,t){return null==t?null:e[t]}function yc(e){e[ns]=0}function bd(e){1024&e[Un]||(e[Un]|=1024,vc(e)&&xs(e))}function Ql(e){var t;return!!(9216&e[Un]||null!==(t=e[Ws])&&void 0!==t&&t.dirty)}function fl(e){var t;if(null===(t=e[$o].changeDetectionScheduler)||void 0===t||t.notify(1),Ql(e))xs(e);else if(64&e[Un])if(function Ca(){return Ps}())e[Un]|=1024,xs(e);else{var r;null===(r=e[$o].changeDetectionScheduler)||void 0===r||r.notify()}}function xs(e){var t;null===(t=e[$o].changeDetectionScheduler)||void 0===t||t.notify();let r=Qs(e);for(;null!==r&&!(8192&r[Un])&&(r[Un]|=8192,vc(r));)r=Qs(r)}function Wa(e,t){if(!(256&~e[Un]))throw new $e(911,!1);null===e[Gr]&&(e[Gr]=[]),e[Gr].push(t)}function Qs(e){const t=e[oi];return yo(t)?t[oi]:t}const qn={lFrame:Jh(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function Ta(){return qn.bindingsEnabled}function Jl(){return null!==qn.skipHydrationRootTNode}function Xt(){return qn.lFrame.lView}function si(){return qn.lFrame.tView}function Sd(e){return qn.lFrame.contextLView=e,e[di]}function Ac(e){return qn.lFrame.contextLView=null,e}function Pi(){let e=Xh();for(;null!==e&&64===e.type;)e=e.parent;return e}function Xh(){return qn.lFrame.currentTNode}function Zs(e,t){const r=qn.lFrame;r.currentTNode=e,r.isParent=t}function xu(){return qn.lFrame.isParent}function Nu(){qn.lFrame.isParent=!1}function Ts(){return qn.lFrame.bindingIndex++}function Md(e,t){const r=qn.lFrame;r.bindingIndex=r.bindingRootIndex=e,Pd(t)}function Pd(e){qn.lFrame.currentDirectiveIndex=e}function xd(){return qn.lFrame.currentQueryIndex}function Dc(e){qn.lFrame.currentQueryIndex=e}function bc(e){const t=e[fn];return 2===t.type?t.declTNode:1===t.type?e[bi]:null}function Yh(e,t,r){if(r&ir.SkipSelf){let a=t,d=e;for(;!(a=a.parent,null!==a||r&ir.Host||(a=bc(d),null===a||(d=d[Ua],10&a.type))););if(null===a)return!1;t=a,e=d}const o=qn.lFrame=ku();return o.currentTNode=t,o.lView=e,!0}function Da(e){const t=ku(),r=e[fn];qn.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=qn.lFrame,t=null===e?null:e.child;return null===t?Jh(e):t}function Jh(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=qn.lFrame;return qn.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 qn.lFrame.selectedIndex}function ba(e){qn.lFrame.selectedIndex=e}function wi(){const e=qn.lFrame;return Xl(e.tView,e.selectedIndex)}let Vu=!0;function Uu(){return Vu}function Ns(e){Vu=e}function $u(e,t){for(let L=t.directiveStart,Q=t.directiveEnd;L=o)break}else t[A]<0&&(e[ns]+=65536),(y>14>16&&(3&e[Un])===t&&(e[Un]+=16384,vl(y,d)):vl(y,d)}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 Zl(e){const t=ju;return ju=e,t}const sf=255,Ld=5;let Nc=0;const Ds={};function zu(e,t){const r=Vd(e,t);if(-1!==r)return r;const o=t[fn];o.firstCreatePass&&(e.injectorIndex=t.length,Po(o.data,e),Po(t,null),Po(o.blueprint,null));const a=qa(e,t),d=e.injectorIndex;if(Il(a)){const p=wa(a),y=El(a,t),A=y[fn].data;for(let L=0;L<8;L++)t[d+L]=y[p+L]|A[p+L]}return t[d+8]=a,d}function Po(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Vd(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(ur)&&(o=r[ur]),null==o&&(o=r[ur]=Nc++);const a=o&sf;t.data[e+(a>>Ld)]|=1<=0?t&sf:uf:t}(r);if("function"==typeof d){if(!Yh(t,e,o))return o&ir.Host?eu(a,0,o):Ud(t,r,o,a);try{let p;if(p=d(o),null!=p||o&ir.Optional)return p;ri()}finally{wc()}}else if("number"==typeof d){let p=null,y=Vd(e,t),A=_l,L=o&ir.Host?t[Ki][bi]:null;for((-1===y||o&ir.SkipSelf)&&(A=-1===y?qa(e,t):t[y+8],A!==_l&&tu(o,!1)?(p=t[fn],y=wa(A),t=El(A,t)):y=-1);-1!==y;){const Q=t[fn];if(Fc(d,y,Q.data)){const te=sg(y,t,r,p,o,L);if(te!==Ds)return te}A=t[y+8],A!==_l&&tu(o,t[fn].data[y+8]===L)&&Fc(d,y,t)?(p=Q,y=wa(A),t=El(A,t)):y=-1}}return a}function sg(e,t,r,o,a,d){const p=t[fn],y=p.data[e+8],Q=$d(y,p,r,null==o?As(y)&&ju:o!=p&&!!(3&y.type),a&ir.Host&&d===y);return null!==Q?Cl(t,p,Q,y):Ds}function $d(e,t,r,o,a){const d=e.providerIndexes,p=t.data,y=1048575&d,A=e.directiveStart,Q=d>>20,Pe=a?y+Q:e.directiveEnd;for(let Ke=o?y:y+Q;Ke=A&&Et.type===r)return Ke}if(a){const Ke=p[A];if(Ke&&cs(Ke)&&Ke.type===r)return A}return null}function Cl(e,t,r,o){let a=e[r];const d=t.data;if(function nf(e){return e instanceof yl}(a)){const p=a;p.resolving&&function gi(e,t){throw t&&t.join(" > "),new $e(-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():xn(e)}(d[r]));const y=Zl(p.canSeeViewProviders);p.resolving=!0;const L=p.injectImpl?Gn(p.injectImpl):null;Yh(e,o,ir.Default);try{a=e[r]=p.factory(void 0,d,e,o),t.firstCreatePass&&r>=o.directiveStart&&function og(e,t,r){const{ngOnChanges:o,ngOnInit:a,ngDoCheck:d}=t.type.prototype;if(o){var p,y;const te=wn(t);(null!==(p=r.preOrderHooks)&&void 0!==p?p:r.preOrderHooks=[]).push(e,te),(null!==(y=r.preOrderCheckHooks)&&void 0!==y?y:r.preOrderCheckHooks=[]).push(e,te)}var A,L,Q;a&&(null!==(A=r.preOrderHooks)&&void 0!==A?A:r.preOrderHooks=[]).push(0-e,a),d&&((null!==(L=r.preOrderHooks)&&void 0!==L?L:r.preOrderHooks=[]).push(e,d),(null!==(Q=r.preOrderCheckHooks)&&void 0!==Q?Q:r.preOrderCheckHooks=[]).push(e,d))}(r,d[r],t)}finally{null!==L&&Gn(L),Zl(y),p.resolving=!1,wc()}}return a}function Fc(e,t,r){return!!(r[t+(e>>Ld)]&1<{const t=e.prototype.constructor,r=t[gr]||Hu(t),o=Object.prototype;let a=Object.getPrototypeOf(e.prototype).constructor;for(;a&&a!==o;){const d=a[gr]||Hu(a);if(d&&d!==r)return d;a=Object.getPrototypeOf(a)}return d=>new d})}function Hu(e){return ze(e)?()=>{const t=Hu(ue(e));return t&&t()}:Nr(e)}function Qa(e){const t=e[fn],r=t.type;return 2===r?t.declTNode:1===r?e[bi]:null}function Lc(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 d;const p=null!==(d=o.name)&&void 0!==d?d:"";return ug({name:p},o.parent,o.providers,p)}}}return(e=t).THROW_IF_NOT_FOUND=co,e.NULL=new ua,e.\u0275prov=sr({token:e,providedIn:"any",factory:()=>H(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 U("",{providedIn:"root",factory:()=>De(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[Gr])return;const r=e[Gr].indexOf(t);-1!==r&&e[Gr].splice(r,1)}(this._lView,t)}}function cg(){return new yf(Xt())}function Xu(){return oa(Pi(),Xt())}function oa(e,t){return new Qu(rs(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 jn.B{constructor(t=!1){var r;super(),this.destroyRef=void 0,this.__isAsync=t,Hs()&&(this.destroyRef=null!==(r=De(Ku,{optional:!0}))&&void 0!==r?r:void 0)}emit(t){const r=se(null);try{super.next(t)}finally{se(r)}}subscribe(t,r,o){let a=t,d=r||(()=>null),p=o;if(t&&"object"==typeof t){var y,A,L;const te=t;a=null===(y=te.next)||void 0===y?void 0:y.bind(te),d=null===(A=te.error)||void 0===A?void 0:A.bind(te),p=null===(L=te.complete)||void 0===L?void 0:L.bind(te)}this.__isAsync&&(d=If(d),a&&(a=If(a)),p&&(p=If(p)));const Q=super.subscribe({next:a,error:d,complete:p});return t instanceof Xn.yU&&t.add(Q),Q}};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 ar(e){return e.flat(Number.POSITIVE_INFINITY)}(t);(this._changesDetected=!function vr(e,t,r){if(e.length!==t.length)return!1;for(let o=0;oTg}),Tg="ng",_v=new U(""),Jd=new U("",{providedIn:"platform",factory:()=>"unknown"}),yy=new U("",{providedIn:"root",factory:()=>{var e;return(null===(e=function au(){if(void 0!==Ag)return Ag;if(typeof document<"u")return document;throw new $e(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 U("",{providedIn:"root",factory:()=>!1});let ah;function Og(e){var t;return(null===(t=function Ff(){if(void 0===ah&&(ah=null,zn.trustedTypes))try{ah=zn.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 ${Jn})`}}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 ${Jn})`)}return r===t}const iE=/^(?!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 Oi(e){return(e=String(e)).match(iE)?e:"unsafe:"+e}(xn(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 $e(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=Xt();return e&&e[$o].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 d,p=!1;yo(o)?d=o:Wr(o)&&(p=!0,o=o[ti]);const y=Ei(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 fE(e,t,r,o){e.removeChild(t,r,o)}(e,o,t,r)}(t,y,p):3===e&&t.destroyNode(y),null!=d&&function gE(e,t,r,o,a){const d=r[Bo];d!==Ei(r)&&ph(t,e,o,d,a);for(let y=Bi;yt.replace(Lv,Gg))}(t))}function Rl(e,t,r){return e.createElement(t,r)}function jv(e,t){var r;null===(r=t[$o].changeDetectionScheduler)||void 0===r||r.notify(1),Ra(e,t,t[Ar],2,null,null)}function zv(e,t){const r=e[Ks],o=r.indexOf(t);r.splice(o,1)}function qf(e,t){if(e.length<=Bi)return;const r=Bi+t,o=e[r];if(o){const a=o[va];null!==a&&a!==e&&zv(a,o),t>0&&(e[r-1][Gi]=o[Gi]);const d=Ii(e,Bi+t);!function Wy(e,t){jv(e,t),t[ti]=null,t[bi]=null}(o[fn],o);const p=d[Ro];null!==p&&p.detachView(d[fn]),o[oi]=null,o[Gi]=null,o[Un]&=-129}return o}function Yg(e,t){if(!(256&t[Un])){const r=t[Ar];r.destroyNode&&Ra(e,t,r,3,null,null),function fu(e){let t=e[Va];if(!t)return Jg(e[fn],e);for(;t;){let r=null;if(Wr(t))r=t[Va];else{const o=t[Bi];o&&(r=o)}if(!r){for(;t&&!t[Gi]&&t!==e;)Wr(t)&&Jg(t[fn],t),t=t[oi];null===t&&(t=e),Wr(t)&&Jg(t[fn],t),r=t&&t[Gi]}t=r}}(t)}}function Jg(e,t){if(256&t[Un])return;const r=se(null);try{t[Un]&=-129,t[Un]|=256,t[Ws]&&function vt(e){if(Dt(e),Xe(e))for(let t=0;t=0?o[p]():o[-p].unsubscribe(),d+=2}else r[d].call(o[r[d+1]]);null!==o&&(t[$i]=null);const a=t[Gr];if(null!==a){t[Gr]=null;for(let d=0;d-1){const{encapsulation:d}=e.data[o.directiveStart+a];if(d===ms.None||d===ms.Emulated)return null}return rs(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 Gv(e,t,r){return Yy(e,t,r)}let Kv,Yy=function Wv(e,t,r){return 40&e.type?rs(e,r):null};function Zg(e,t,r,o){const a=Hv(e,o,t),d=t[Ar],y=Gv(o.parent||t[bi],o,t);if(null!=a)if(Array.isArray(r))for(let A=0;APr&&nm(e,t,Pr,!1),Io(p?2:0,a),r(o,a)}finally{ba(d),Io(p?3:1,a)}}function Qv(e,t,r){if(zl(t)){const o=se(null);try{const d=t.directiveEnd;for(let p=t.directiveStart;pnull;function Jv(e,t,r,o,a){for(let p in t){var d;if(!t.hasOwnProperty(p))continue;const y=t[p];if(void 0===y)continue;null!==(d=o)&&void 0!==d||(o={});let A,L=as.None;Array.isArray(y)?(A=y[0],L=y[1]):A=y;let Q=p;if(null!==a){if(!a.hasOwnProperty(p))continue;Q=a[p]}0===e?h0(o,r,Q,A,L):h0(o,r,Q,A)}return o}function h0(e,t,r,o,a){let d;e.hasOwnProperty(r)?(d=e[r]).push(t,o):d=e[r]=[t,o],void 0!==a&&d.push(a)}function ks(e,t,r,o,a,d,p,y){const A=rs(t,r);let Q,L=t.inputs;!y&&null!=L&&(Q=L[o])?(n_(e,r,Q,o,a),As(t)&&function CE(e,t){const r=Mo(t,e);16&r[Un]||(r[Un]|=64)}(r,t.index)):3&t.type&&(o=function AE(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,d.setProperty(A,o,a))}function Zv(e,t,r,o){if(Ta()){const a=null===o?null:{"":-1},d=function RE(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,d)}}(e,t,o,Zf(e,r,a.hostVars,$r),a)}function Ml(e,t,r,o,a,d){const p=rs(e,t);!function t_(e,t,r,o,a,d,p){if(null==d)e.removeAttribute(t,a,r);else{const y=null==p?xn(d):p(d,o||"",a);e.setAttribute(t,a,y,r)}}(t[Ar],p,d,e.value,r,o,a)}function OE(e,t,r,o,a,d){const p=d[t];if(null!==p)for(let y=0;y0&&(r[a-1][Gi]=t),o!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{},consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{xs(e.lView)},consumerOnSignalRead(){this.lView[Ws]=this}},T0=100;function cm(e,t=!0,r=0){const o=e[$o],a=o.rendererFactory;var p;null===(p=a.begin)||void 0===p||p.call(a);try{!function jE(e,t){i_(e,t);let r=0;for(;Ql(e);){if(r===T0)throw new $e(103,!1);r++,i_(e,1)}}(e,r)}catch(L){throw t&&am(e,L),L}finally{var y,A;null===(y=a.end)||void 0===y||y.call(a),null===(A=o.inlineEffectRunner)||void 0===A||A.flush()}}function zE(e,t,r,o){var a;const d=t[Un];if(!(256&~d))return;null===(a=t[$o].inlineEffectRunner)||void 0===a||a.flush(),Da(t);let y=null,A=null;(function HE(e){return 2!==e.type})(e)&&(A=function VE(e){var t;return null!==(t=e[Ws])&&void 0!==t?t:function UE(e){var t;const r=null!==(t=C0.pop())&&void 0!==t?t:Object.create(BE);return r.lView=e,r}(e)}(t),y=function lt(e){return e&&(e.nextProducerIndex=0),se(e)}(A));try{yc(t),function Cc(e){return qn.lFrame.bindingIndex=e}(e.bindingStartIndex),null!==r&&a0(e,t,r,2,o);const L=!(3&~d);if(L){const Pe=e.preOrderCheckHooks;null!==Pe&&Sc(t,Pe,null)}else{const Pe=e.preOrderHooks;null!==Pe&&ra(t,Pe,0,null),ia(t,0)}if(function GE(e){for(let t=gg(e);null!==t;t=Tf(t)){if(!(t[Un]&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 $E(e){e.lView[Ws]!==e&&(e.lView=null,C0.push(e))}(A)),Fu()}}function D0(e,t){for(let r=gg(e);null!==r;r=Tf(r))for(let o=Bi;o-1&&(qf(t,o),Ii(r,o))}this._attachedToViewContainer=!1}Yg(this._lView[fn],this._lView)}onDestroy(t){Wa(this._lView,t)}markForCheck(){ip(this._cdRefInjectingView||this._lView)}detach(){this._lView[Un]&=-129}reattach(){fl(this._lView),this._lView[Un]|=128}detectChanges(){this._lView[Un]|=1024,cm(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new $e(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,jv(this._lView[fn],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new $e(902,!1);this._appRef=t,fl(this._lView)}}let sp=(()=>{class t{}return t.__NG_ELEMENT_ID__=qE,t})();const S0=sp,KE=class extends S0{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=tp(this._declarationLView,this._declarationTContainer,t,{embeddedViewInjector:r,dehydratedView:o});return new op(a)}};function qE(){return dm(Pi(),Xt())}function dm(e,t){return 4&e.type?new KE(t,e,oa(e,t)):null}let fm=()=>null;function mo(e,t){return fm(e,t)}class pm{}class Ih{}class s_{}class ap{resolveComponentFactory(t){throw function Eh(e){const t=Error(`No component factory found for ${rr(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=Xt(),r=Mo(Pi().index,e);return(Wr(r)?r:e)[Ar]}(),t})(),vm=(()=>{var e;class t{}return(e=t).\u0275prov=sr({token:e,providedIn:"root",factory:()=>null}),t})();const up={},l_=new Set;function Ma(e){var t,r;l_.has(e)||(l_.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 Ao{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 $e(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 zn.requestAnimationFrame;let t=zn[e?"requestAnimationFrame":"setTimeout"],r=zn[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 is(e){const t=()=>{!function Em(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(zn,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,zo(e),e.isCheckStableRunning=!0,Ah(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),zo(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(r,o,a,d,p,y)=>{if(function O0(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,d,p,y);try{return Ch(e),r.invokeTask(a,d,p,y)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===d.type||e.shouldCoalesceRunChangeDetection)&&t(),Am(e)}},onInvoke:(r,o,a,d,p,y,A)=>{try{return Ch(e),r.invoke(a,d,p,y,A)}finally{e.shouldCoalesceRunChangeDetection&&t(),Am(e)}},onHasTask:(r,o,a,d)=>{r.hasTask(a,d),o===a&&("microTask"==d.change?(e._hasPendingMicrotasks=d.microTask,zo(e),Ah(e)):"macroTask"==d.change&&(e.hasPendingMacrotasks=d.macroTask))},onHandleError:(r,o,a,d)=>(r.handleError(a,d),e.runOutsideAngular(()=>e.onError.emit(d)),!1)})}(a)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Ao.isInAngularZone())throw new $e(909,!1)}static assertNotInAngularZone(){if(Ao.isInAngularZone())throw new $e(909,!1)}run(t,r,o){return this._inner.run(t,r,o)}runTask(t,r,o,a){const d=this._inner,p=d.scheduleEventTask("NgZoneEvent: "+a,t,Im,_m,_m);try{return d.runTask(p,r,o)}finally{d.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 zo(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 u_(e,t){var r,o,a;!t&&function Es(e){if(!Hs())throw new $e(-203,!1)}();const d=null!==(r=null==t?void 0:t.injector)&&void 0!==r?r:De(hs);if(!function el(e){return"browser"===(null!=e?e:De(hs)).get(Jd)}(d))return Tm;Ma("NgAfterNextRender");const p=d.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,L=()=>{y.unregister(te),Q()},Q=d.get(Ku).onDestroy(L),te=lo(d,()=>new cp(A,()=>{L(),e()}));return y.register(te),{destroy:L}}class cp{constructor(t,r){var o;this.phase=t,this.callbackFn=r,this.zone=De(Ao),this.errorHandler=De(Ya,{optional:!0}),null===(o=De(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=sr({token:e,providedIn:"root",factory:()=>new e}),t})();function tl(e){return!!ei(e)}function _u(e,t,r){let o=r?e.styles:null,a=r?e.classes:null,d=0;if(null!==t)for(let p=0;p0&&t0(e,r,d.join(" "))}}(zt,Fl,gn,o),void 0!==r&&function g_(e,t,r){const o=e.projection=[];for(let a=0;a{class t{}return t.__NG_ELEMENT_ID__=m_,t})();function m_(){return vp(Pi(),Xt())}const v_=hd,__=class extends v_{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[fn].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-Bi}createEmbeddedView(t,r,o){let a,d;"number"==typeof o?a=o:null!=o&&(a=o.index,d=o.injector);const p=mo(this._lContainer,t.ssrId),y=t.createEmbeddedViewImpl(r||{},d,p);return this.insertImpl(y,a,_h(this._hostTNode,p)),y}createComponent(t,r,o,a,d){var p,y,A;const L=t&&!function Vt(e){return"function"==typeof e}(t);let Q;if(L)Q=r;else{const gn=r||{};Q=gn.index,o=gn.injector,a=gn.projectableNodes,d=gn.environmentInjector||gn.ngModuleRef}const te=L?t:new bh(or(t)),Pe=o||this.parentInjector;if(!d&&null==te.ngModule){const Yt=(L?Pe:this.parentInjector).get(ts,null);Yt&&(d=Yt)}const Ke=or(null!==(p=te.componentType)&&void 0!==p?p:{}),Et=mo(this._lContainer,null!==(y=null==Ke?void 0:Ke.id)&&void 0!==y?y:null),zt=null!==(A=null==Et?void 0:Et.firstChild)&&void 0!==A?A:null,cn=te.create(Pe,a,zt,d);return this.insertImpl(cn.hostView,Q,_h(this._hostTNode,Et)),cn}insert(t,r){return this.insertImpl(t,r,!0)}insertImpl(t,r,o){const a=t._lView;if(function _c(e){return yo(e[oi])}(a)){const y=this.indexOf(t);if(-1!==y)this.detach(y);else{const A=a[oi],L=new __(A,A[bi],A[oi]);L.detach(L.indexOf(t))}}const d=this._adjustIndex(r),p=this._lContainer;return np(p,a,d,o),t.attachToViewContainerRef(),Di(mp(p),d,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&&(Ii(mp(this._lContainer),r),Yg(o[fn],o))}detach(t){const r=this._adjustIndex(t,-1),o=qf(this._lContainer,r);return o&&null!=Ii(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 yo(o)?r=o:(r=v0(o,t,null,e),t[e.index]=r,om(t,r)),Iu(r,t,e,o),new __(r,e,t)}let Iu=function Rm(e,t,r,o){if(e[Bo])return;let a;a=8&r.type?Ei(o):function Sh(e,t){const r=e[Ar],o=r.createComment(""),a=rs(t,e);return nd(r,Qf(r,a),o,function Qy(e,t){return e.nextSibling(t)}(r,a),!1),o}(t,r),e[Bo]=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 d=0;dt.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 L=d[y+1],Q=t[-A];for(let te=Bi;te=0;o--){const a=e[o];a.hostVars=t+=a.hostVars,a.hostAttrs=Yo(a.hostAttrs,r=Yo(r,a.hostAttrs))}}(o)}function O_(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 d=Array.isArray(a)?a[0]:a;if(!t.inputTransforms.hasOwnProperty(d))continue;null!==(r=e.inputTransforms)&&void 0!==r||(e.inputTransforms={}),e.inputTransforms[d]=t.inputTransforms[d]}}}function Vh(e){return e===Vo?{}:e===Lr?[]: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,d)=>{t(o,a,d),r(o,a,d)}:t}function F_(e,t){const r=e.hostBindings;e.hostBindings=r?(o,a)=>{t(o,a),r(o,a)}:t}function ji(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 Ai{}function os(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 d_(this);const a=ei(t);this._bootstrapComponents=aa(a.bootstrap),this._r3Injector=_f(t,r,[{provide:io,useValue:this},{provide:lc,useValue:this.componentFactoryResolver},...o],rr(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 Ls extends Ai{constructor(t){super(),this.moduleType=t}create(t){return new Cu(this.moduleType,t,[])}}class Rp extends io{constructor(t){super(),this.componentFactoryResolver=new d_(this),this.instance=null;const r=new Rs([...t.providers,{provide:io,useValue:this},{provide:lc,useValue:this.componentFactoryResolver}],t.parent||Uo(),t.debugName,new Set(["environment"]));this.injector=r,t.runEnvironmentInitializers&&r.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}}function K0(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 Qn.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=sr({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();function U_(e){return!!q0(e)&&(Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e)}function q0(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function xo(e,t,r){return!Object.is(e[t],r)&&(e[t]=r,!0)}function Pp(e,t,r,o,a,d,p,y){const A=Xt(),L=si(),Q=e+Pr,te=L.firstCreatePass?function cb(e,t,r,o,a,d,p,y,A){const L=t.consts,Q=sc(t,e,4,p||null,Cs(L,y));Zv(t,r,Q,Cs(L,A)),$u(t,Q);const te=Q.tView=ep(2,Q,o,a,d,t.directiveRegistry,t.pipeRegistry,null,t.schemas,L,null);return null!==t.queries&&(t.queries.template(t,Q),te.queries=t.queries.embeddedTView(Q)),Q}(Q,L,A,t,r,o,a,d,p):L.data[Q];Zs(te,!1);const Pe=oA(L,A,te,e);Uu()&&Zg(L,A,Pe,te),Ji(Pe,A);const Ke=v0(Pe,A,Pe,te);return A[Q]=Ke,om(A,Ke),function y_(e,t,r){return Rh(e,t,r)}(Ke,te,A),Ia(te)&&mh(L,A,te),null!=p&&od(A,te,y),Pp}let oA=function sA(e,t,r,o){return Ns(!0),t[Ar].createComment("")};function iI(e,t,r,o){const a=Xt();return xo(a,Ts(),t)&&(si(),Ml(wi(),a,e,t,r,o)),iI}function Up(e,t,r,o){return xo(e,Ts(),r)?t+xn(r)+o:$r}function W_(e,t){return e<<17|t<<2}function yd(e){return e>>17&32767}function oI(e){return 2|e}function Bh(e){return(131068&e)>>2}function sI(e,t){return-131069&e|t<<2}function aI(e){return 1|e}function LA(e,t,r,o){const a=e[r+1],d=null===t;let p=o?yd(a):Bh(a),y=!1;for(;0!==p&&(!1===y||d);){const L=e[p+1];Qb(e[p],t)&&(y=!0,e[p+1]=o?aI(L):oI(L)),p=o?yd(L):Bh(L)}y&&(e[r+1]=o?oI(a):aI(a))}function Qb(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&wo(e,t)>=0}function lI(e,t,r){const o=Xt();return xo(o,Ts(),t)&&ks(si(),wi(),o,e,t,o[Ar],r,!1),lI}function uI(e,t,r,o,a){const p=a?"class":"style";n_(e,r,t.inputs[p],p,o)}function cI(e,t){return function Ol(e,t,r,o){const a=Xt(),d=si(),p=function na(e){const t=qn.lFrame,r=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,r}(2);d.firstUpdatePass&&function WA(e,t,r,o){const a=e.data;if(null===a[r+1]){const d=a[fo()],p=function GA(e,t){return t>=e.expandoStartIndex}(e,r);(function QA(e,t){return!!(e.flags&(t?8:16))})(d,o)&&null===t&&!p&&(t=!1),t=function ow(e,t,r,o){const a=function Ou(e){const t=qn.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}(e);let d=o?t.residualClasses:t.residualStyles;if(null===a)0===(o?t.classBindings:t.styleBindings)&&(r=qm(r=dI(null,e,t,r,o),t.attrs,o),d=null);else{const p=t.directiveStylingLast;if(-1===p||e[p]!==a)if(r=dI(a,e,t,r,o),null===d){let A=function sw(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=dI(null,e,t,A[1],o),A=qm(A,t.attrs,o),function aw(e,t,r,o){e[yd(r?t.classBindings:t.styleBindings)]=o}(e,t,o,A))}else d=function lw(e,t,r){let o;const a=t.directiveEnd;for(let d=1+t.directiveStylingLast;d0)&&(L=!0)):Q=r,a)if(0!==A){const Pe=yd(e[y+1]);e[o+1]=W_(Pe,y),0!==Pe&&(e[Pe+1]=sI(e[Pe+1],o)),e[y+1]=function Wb(e,t){return 131071&e|t<<17}(e[y+1],o)}else e[o+1]=W_(y,0),0!==y&&(e[y+1]=sI(e[y+1],o)),y=o;else e[o+1]=W_(A,0),0===y?y=o:e[A+1]=sI(e[A+1],o),A=o;L&&(e[o+1]=oI(e[o+1])),LA(e,Q,o,!0),LA(e,Q,o,!1),function Xb(e,t,r,o,a){const d=a?e.residualClasses:e.residualStyles;null!=d&&"string"==typeof t&&wo(d,t)>=0&&(r[o+1]=aI(r[o+1]))}(t,Q,e,o,d),p=W_(y,A),d?t.classBindings=p:t.styleBindings=p}(a,d,t,r,p,o)}}(d,e,p,o),t!==$r&&xo(a,p,t)&&function qA(e,t,r,o,a,d,p,y){if(!(3&t.type))return;const A=e.data,L=A[y+1],Q=function Kb(e){return!(1&~e)}(L)?XA(A,t,r,a,Bh(L),p):void 0;K_(Q)||(K_(d)||function Gb(e){return!(2&~e)}(L)&&(d=XA(A,null,r,a,y,p)),function mE(e,t,r,o,a){if(t)a?e.addClass(r,o):e.removeClass(r,o);else{let d=-1===o.indexOf("-")?void 0:Xg.DashCase;null==a?e.removeStyle(r,o,d):("string"==typeof a&&a.endsWith("!important")&&(a=a.slice(0,-10),d|=Xg.Important),e.setStyle(r,o,a,d))}}(o,p,Ga(fo(),r),a,d))}(d,d.data[fo()],a,a[Ar],e,a[p+1]=function hw(e,t){return null==e||""===e||("string"==typeof t?e+=t:"object"==typeof e&&(e=rr(cu(e)))),e}(t,r),o,p)}(e,t,null,!0),cI}function dI(e,t,r,o,a){let d=null;const p=r.directiveEnd;let y=r.directiveStylingLast;for(-1===y?y=r.directiveStart:y++;y0;){const A=e[a],L=Array.isArray(A),Q=L?A[1]:A,te=null===Q;let Pe=r[a+1];Pe===$r&&(Pe=te?Lr:void 0);let Ke=te?Xo(Pe,o):Q===o?Pe:void 0;if(L&&!K_(Ke)&&(Ke=Xo(A,o)),K_(Ke)&&(y=Ke,p))return y;const Et=e[a+1];a=p?yd(Et):Bh(Et)}if(null!==t){let A=d?t.residualClasses:t.residualStyles;null!=A&&(y=Xo(A,o))}return y}function K_(e){return void 0!==e}class Cw{destroy(t){}updateValue(t,r){}swap(t,r){const o=Math.min(t,r),a=Math.max(t,r),d=this.detach(a);if(a-o>1){const p=this.detach(o);this.attach(o,d),this.attach(a,p)}else this.attach(o,d)}move(t,r){this.attach(r,this.detach(t))}}function hI(e,t,r,o,a){return e===r&&Object.is(t,o)?1:Object.is(a(e,t),a(r,o))?-1:0}function fI(e,t,r,o){return!(void 0===t||!t.has(o)||(e.attach(r,t.get(o)),t.delete(o),0))}function YA(e,t,r,o,a){if(fI(e,t,o,r(o,a)))e.updateValue(o,a);else{const d=e.create(o,a);e.attach(o,d)}}function JA(e,t,r,o){const a=new Set;for(let d=t;d<=r;d++)a.add(o(d,e.at(d)));return a}class ZA{constructor(){this.kvMap=new Map,this._vMap=void 0}has(t){return this.kvMap.has(t)}delete(t){if(!this.has(t))return!1;const r=this.kvMap.get(t);return void 0!==this._vMap&&this._vMap.has(r)?(this.kvMap.set(t,this._vMap.get(r)),this._vMap.delete(r)):this.kvMap.delete(t),!0}get(t){return this.kvMap.get(t)}set(t,r){if(this.kvMap.has(t)){let o=this.kvMap.get(t);void 0===this._vMap&&(this._vMap=new Map);const a=this._vMap;for(;a.has(o);)o=a.get(o);a.set(o,r)}else this.kvMap.set(t,r)}forEach(t){for(let[r,o]of this.kvMap)if(t(o,r),void 0!==this._vMap){const a=this._vMap;for(;a.has(o);)o=a.get(o),t(o,r)}}}class bw{constructor(t,r,o){this.lContainer=t,this.$implicit=r,this.$index=o}get $count(){return this.lContainer.length-Bi}}function eC(e,t){return t}class Sw{constructor(t,r,o){this.hasEmptyBlock=t,this.trackByFn=r,this.liveCollection=o}}function tC(e,t,r,o,a,d,p,y,A,L,Q,te,Pe){Ma("NgControlFlow");const Ke=void 0!==A,Et=Xt(),zt=y?p.bind(Et[Ki][di]):p,cn=new Sw(Ke,zt);Et[Pr+e]=cn,Pp(e+1,t,r,o,a,d),Ke&&Pp(e+2,A,L,Q,te,Pe)}class Rw extends Cw{constructor(t,r,o){super(),this.lContainer=t,this.hostLView=r,this.templateTNode=o,this.needsIndexUpdate=!1}get length(){return this.lContainer.length-Bi}at(t){return this.getLView(t)[di].$implicit}attach(t,r){const o=r[Wi];this.needsIndexUpdate||(this.needsIndexUpdate=t!==this.length),np(this.lContainer,r,t,_h(this.templateTNode,o))}detach(t){return this.needsIndexUpdate||(this.needsIndexUpdate=t!==this.length-1),function Mw(e,t){return qf(e,t)}(this.lContainer,t)}create(t,r){const o=mo(this.lContainer,this.templateTNode.tView.ssrId);return tp(this.hostLView,this.templateTNode,new bw(this.lContainer,r,t),{dehydratedView:o})}destroy(t){Yg(t[fn],t)}updateValue(t,r){this.getLView(t)[di].$implicit=r}reset(){this.needsIndexUpdate=!1}updateIndexes(){if(this.needsIndexUpdate)for(let t=0;t{e.destroy(Pe)})}(p,e,d.trackByFn),p.updateIndexes(),d.hasEmptyBlock){const y=Ts(),A=0===p.length;if(xo(o,y,A)){const L=r+2,Q=pI(o,L);if(A){const te=gI(a,L),Pe=mo(Q,te.tView.ssrId);np(Q,tp(o,te,void 0,{dehydratedView:Pe}),0,_h(te,Pe))}else!function um(e,t){const r=qf(e,t);return void 0!==r&&Yg(r[fn],r),r}(Q,0)}}}finally{se(t)}}function pI(e,t){return e[t]}function gI(e,t){return Xl(e,t)}function q_(e,t,r,o){const a=Xt(),d=si(),p=Pr+e,y=a[Ar],A=d.firstCreatePass?function xw(e,t,r,o,a,d){const p=t.consts,A=sc(t,e,2,o,Cs(p,a));return Zv(t,r,A,Cs(p,d)),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,d,a,t,r,o):d.data[p],L=rC(d,a,A,y,t,e);a[p]=L;const Q=Ia(A);return Zs(A,!0),n0(y,L,A),!function Hm(e){return!(32&~e.flags)}(A)&&Uu()&&Zg(d,a,L,A),0===function Ic(){return qn.lFrame.elementDepthCount}()&&Ji(L,a),function Ec(){qn.lFrame.elementDepthCount++}(),Q&&(mh(d,a,A),Qv(d,A,a)),null!==o&&od(a,A),q_}function X_(){let e=Pi();xu()?Nu():(e=e.parent,Zs(e,!1));const t=e;(function gl(e){return qn.skipHydrationRootTNode===e})(t)&&function Ka(){qn.skipHydrationRootTNode=null}(),function Ys(){qn.lFrame.elementDepthCount--}();const r=si();return r.firstCreatePass&&($u(r,e),zl(e)&&r.queries.elementEnd(e)),null!=t.classesWithoutHost&&function Bu(e){return!!(8&e.flags)}(t)&&uI(r,t,Xt(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function kd(e){return!!(16&e.flags)}(t)&&uI(r,t,Xt(),t.stylesWithoutHost,!1),X_}function mI(e,t,r,o){return q_(e,t,r,o),X_(),mI}let rC=(e,t,r,o,a,d)=>(Ns(!0),Rl(o,a,function Od(){return qn.lFrame.currentNamespace}()));function Q_(e,t,r){const o=Xt(),a=si(),d=e+Pr,p=a.firstCreatePass?function kw(e,t,r,o,a){const d=t.consts,p=Cs(d,o),y=sc(t,e,8,"ng-container",p);return null!==p&&_u(y,p,!0),Zv(t,r,y,Cs(d,a)),null!==t.queries&&t.queries.elementStart(t,y),y}(d,a,o,t,r):a.data[d];Zs(p,!0);const y=iC(a,o,p,e);return o[d]=y,Uu()&&Zg(a,o,y,p),Ji(y,o),Ia(p)&&(mh(a,o,p),Qv(a,p,o)),null!=r&&od(o,p),Q_}function Y_(){let e=Pi();const t=si();return xu()?Nu():(e=e.parent,Zs(e,!1)),t.firstCreatePass&&($u(t,e),zl(e)&&t.queries.elementEnd(e)),Y_}function vI(e,t,r){return Q_(e,t,r),Y_(),vI}let iC=(e,t,r,o)=>(Ns(!0),td(t[Ar],""));function oC(){return Xt()}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 Vw(e){const r=Math.floor(Math.abs(e)),o=e.toString().replace(/^[^.]*\.?/,"").length;return 1===r&&0===o?1:5}];let qp={};function _I(e){const t=function $w(e){return e.toLowerCase().replace(/_/g,"-")}(e);let r=uC(t);if(r)return r;const o=t.split("-")[0];if(r=uC(o),r)return r;if("en"===o)return Uw;throw new $e(701,!1)}function lC(e){return _I(e)[Xp.PluralCase]}function uC(e){return e in qp||(qp[e]=zn.ng&&zn.ng.common&&zn.ng.common.locales&&zn.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 cC=Qp;function EI(e,t,r,o){const a=Xt(),d=si(),p=Pi();return AI(d,a,a[Ar],p,e,t,o),EI}function AI(e,t,r,o,a,d,p){const y=Ia(o),L=e.firstCreatePass&&I0(e),Q=t[di],te=y0(t);let Pe=!0;if(3&o.type||p){const zt=rs(o,t),cn=p?p(zt):zt,gn=te.length,Yt=p?Kr=>p(Ei(Kr[o.index])):o.index;let wr=null;if(!p&&y&&(wr=function FS(e,t,r,o){const a=e.cleanup;if(null!=a)for(let d=0;dA?y[A]:null}"string"==typeof p&&(d+=2)}return null}(e,t,a,o.index)),null!==wr)(wr.__ngLastListenerFn__||wr).__ngNextListenerFn__=d,wr.__ngLastListenerFn__=d,Pe=!1;else{d=VC(o,t,Q,d,!1);const Kr=r.listen(cn,a,d);te.push(d,Kr),L&&L.push(a,Yt,gn,gn+1)}}else d=VC(o,t,Q,d,!1);const Ke=o.outputs;let Et;if(Pe&&null!==Ke&&(Et=Ke[a])){const zt=Et.length;if(zt)for(let cn=0;cn-1?Mo(e.index,t):t);let A=LC(t,r,o,p),L=d.__ngNextListenerFn__;for(;L;)A=LC(t,r,L,p)&&A,L=L.__ngNextListenerFn__;return a&&!1===A&&p.preventDefault(),A}}function UC(e=1){return function Lu(e){return(qn.lFrame.contextLView=function eg(e,t){for(;e>0;)t=t[Ua],e--;return t}(e,qn.lFrame.contextLView))[di]}(e)}function LS(e,t){let r=null;const o=function ln(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[Ar],o));function DI(e){return bI("",e,""),DI}function bI(e,t,r){const o=Xt(),a=Up(o,e,t,r);return a!==$r&&function pu(e,t,r){const o=Ga(t,e);!function oc(e,t,r){e.setValue(t,r)}(e[Ar],o,r)}(o,fo(),a),bI}function wI(e,t,r){km(t)&&(t=t());const o=Xt();return xo(o,Ts(),t)&&ks(si(),wi(),o,e,t,o[Ar],r,!1),wI}function yT(e,t){const r=km(e);return r&&e.set(t),r}function SI(e,t){const r=Xt(),o=si(),a=Pi();return AI(o,r,r[Ar],a,e,t),SI}function RI(e,t,r,o,a){if(e=ue(e),Array.isArray(e))for(let d=0;d>20;if(Zo(e)||!e.multi){const Ke=new yl(L,a,id),Et=PI(A,t,a?Q:Q+Pe,te);-1===Et?(Al(zu(y,p),d,A),MI(d,e,t.length),t.push(A),y.directiveStart++,y.directiveEnd++,a&&(y.providerIndexes+=1048576),r.push(Ke),p.push(Ke)):(r[Et]=Ke,p[Et]=Ke)}else{const Ke=PI(A,t,Q+Pe,te),Et=PI(A,t,Q,Q+Pe),cn=Et>=0&&r[Et];if(a&&!cn||!a&&!(Ke>=0&&r[Ke])){Al(zu(y,p),d,A);const gn=function rR(e,t,r,o,a){const d=new yl(e,r,id);return d.multi=[],d.index=t,d.componentProviders=0,IT(d,a,o&&!r),d}(a?nR:tR,r.length,a,o,L);!a&&cn&&(r[Et].providerFactory=gn),MI(d,e,t.length,0),t.push(A),y.directiveStart++,y.directiveEnd++,a&&(y.providerIndexes+=1048576),r.push(gn),p.push(gn)}else MI(d,e,Ke>-1?Ke:Et,IT(r[a?Et:Ke],L,!a&&o));!a&&o&&cn&&r[Et].componentProviders++}}}function MI(e,t,r,o){const a=Zo(t),d=function Ss(e){return!!e.useClass}(t);if(a||d){const A=(d?ue(t.useClass):t).prototype.ngOnDestroy;if(A){const L=e.destroyHooks||(e.destroyHooks=[]);if(!a&&t.multi){const Q=L.indexOf(r);-1===Q?L.push(r,[o,A]):L[Q+1].push(o,A)}else L.push(r,A)}}}function IT(e,t,r){return r&&e.componentProviders++,e.multi.push(t)-1}function PI(e,t,r,o){for(let a=r;a{r.providersResolver=(o,a)=>function eR(e,t,r){const o=si();if(o.firstCreatePass){const a=cs(e);RI(r,o.data,o.blueprint,a,!0),RI(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),d=a.length>0?K0([a],this._injector,`Standalone[${o.type.name}]`):null;this.cachedInjectors.set(o,d)}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=sr({token:e,providedIn:"environment",factory:()=>new e(H(ts))}),t})();function AT(e){Ma("NgStandalone"),e.getStandaloneInjector=t=>t.get(iR).getOrCreateStandaloneInjector(e)}function TT(e,t,r){const o=function ho(){const e=qn.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}()+e,a=Xt();return a[o]===$r?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 GT{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 GT("17.3.10");let WT=(()=>{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=sr({token:e,factory:e.\u0275fac,providedIn:"platform"}),t})();const QT=new U(""),YT=new U("");let UI,vM=(()=>{var e;class t{constructor(o,a,d){this._ngZone=o,this.registry=a,this._pendingCount=0,this._isZoneStable=!0,this._callbacks=[],this.taskTrackingZone=null,UI||(function _M(e){UI=e}(d),d.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:()=>{Ao.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,d){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:d})}whenStable(o,a,d){if(d&&!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,d),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(o){this.registry.registerApplication(o,this)}unregisterApplication(o){this.registry.unregisterApplication(o)}findProviders(o,a,d){return[]}}return(e=t).\u0275fac=function(o){return new(o||e)(H(Ao),H(JT),H(YT))},e.\u0275prov=sr({token:e,factory:e.\u0275fac}),t})(),JT=(()=>{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 d,p;return null!==(d=null===(p=UI)||void 0===p?void 0:p.findTestabilityInTree(this,o,a))&&void 0!==d?d:null}}return(e=t).\u0275fac=function(o){return new(o||e)},e.\u0275prov=sr({token:e,factory:e.\u0275fac,providedIn:"platform"}),t})();function $I(e){return!!e&&"function"==typeof e.then}function ZT(e){return!!e&&"function"==typeof e.subscribe}const eD=new U("");let BI=(()=>{var e;class t{constructor(){var o;this.initialized=!1,this.done=!1,this.donePromise=new Promise((a,d)=>{this.resolve=a,this.reject=d}),this.appInits=null!==(o=De(eD,{optional:!0}))&&void 0!==o?o:[]}runInitializers(){if(this.initialized)return;const o=[];for(const d of this.appInits){const p=d();if($I(p))o.push(p);else if(ZT(p)){const y=new Promise((A,L)=>{p.subscribe({complete:A,error:L})});o.push(y)}}const a=()=>{this.done=!0,this.resolve()};Promise.all(o).then(()=>{a()}).catch(d=>{this.reject(d)}),0===o.length&&a(),this.initialized=!0}}return(e=t).\u0275fac=function(o){return new(o||e)},e.\u0275prov=sr({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();const jI=new U("");function rD(e,t){return Array.isArray(t)?t.reduce(rD,e):{...e,...t}}let Id=(()=>{var e;class t{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=De(zd),this.afterRenderEffectManager=De(ad),this.externalTestViews=new Set,this.beforeRender=new jn.B,this.afterTick=new jn.B,this.componentTypes=[],this.components=[],this.isStable=De(Mp).hasPendingTasks.pipe((0,En.T)(o=>!o)),this._injector=De(ts)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(o,a){const d=o instanceof s_;if(!this._injector.get(BI).done)throw!d&&ro(o),new $e(405,!1);let y;y=d?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),Q=y.create(hs.NULL,[],a||y.selector,A),te=Q.location.nativeElement,Pe=Q.injector.get(QT,null);return null==Pe||Pe.registerApplication(te),Q.onDestroy(()=>{this.detachView(Q.hostView),oy(this.components,Q),null==Pe||Pe.unregisterApplication(te)}),this._loadComponent(Q),Q}tick(){this._tick(!0)}_tick(o){if(this._runningTick)throw new $e(101,!1);const a=se(null);try{this._runningTick=!0,this.detectChangesInAttachedViews(o)}catch(d){this.internalErrorHandler(d)}finally{this.afterTick.next(),this._runningTick=!1,se(a)}}detectChangesInAttachedViews(o){let a=0;const d=this.afterRenderEffectManager;for(;;){if(a===T0)throw new $e(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++,d.executeInternalCallbacks(),![...this.externalTestViews.keys(),...this._views].some(({_lView:p})=>zI(p))&&(d.execute(),![...this.externalTestViews.keys(),...this._views].some(({_lView:p})=>zI(p))))break}}attachView(o){const a=o;this._views.push(a),a.attachToAppRef(this)}detachView(o){const a=o;oy(this._views,a),a.detachFromAppRef()}_loadComponent(o){this.attachView(o.hostView),this.tick(),this.components.push(o);const a=this._injector.get(jI,[]);[...this._bootstrapListeners,...a].forEach(d=>d(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),()=>oy(this._destroyListeners,o)}destroy(){if(this._destroyed)throw new $e(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=sr({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();function oy(e,t){const r=e.indexOf(t);r>-1&&e.splice(r,1)}function EM(e,t,r){!t&&!zI(e)||function AM(e,t,r){let o;r?(o=0,e[Un]|=1024):o=64&e[Un]?0:1,cm(e,t,o)}(e,r,t)}function zI(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 Ls(o)}compileModuleAsync(o){return Promise.resolve(this.compileModuleSync(o))}compileModuleAndAllComponentsSync(o){const a=this.compileModuleSync(o),p=aa(ei(o).declarations).reduce((y,A)=>{const L=or(A);return L&&y.push(new bh(L)),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=sr({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),wM=(()=>{var e;class t{constructor(){this.zone=De(Ao),this.applicationRef=De(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=sr({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();function SM(){const e=De(Ao),t=De(Ya);return r=>e.runOutsideAngular(()=>t.handleError(r))}let MM=(()=>{var e;class t{constructor(){this.subscription=new Xn.yU,this.initialized=!1,this.zone=De(Ao),this.pendingTasks=De(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(()=>{Ao.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;Ao.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=sr({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();const sy=new U("",{providedIn:"root",factory:()=>De(sy,ir.Optional|ir.SkipSelf)||function PM(){return typeof $localize<"u"&&$localize.locale||Qp}()}),xM=new U("",{providedIn:"root",factory:()=>"USD"}),HI=new U("");let aD=(()=>{var e;class t{constructor(o){this._injector=o,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(o,a){const d=function Th(e="zone.js",t){return"noop"===e?new Cm:"zone.js"===e?new Ao(t):e}(null==a?void 0:a.ngZone,function sD(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 d.run(()=>{const p=function Sp(e,t,r){return new Cu(e,t,r)}(o.moduleType,this.injector,function oD(e){return[{provide:Ao,useFactory:e},{provide:oo,multi:!0,useFactory:()=>{const t=De(wM,{optional:!0});return()=>t.initialize()}},{provide:oo,multi:!0,useFactory:()=>{const t=De(MM);return()=>{t.initialize()}}},{provide:zd,useFactory:SM}]}(()=>d)),y=p.injector.get(Ya,null);return d.runOutsideAngular(()=>{const A=d.onError.subscribe({next:L=>{y.handleError(L)}});p.onDestroy(()=>{oy(this._modules,p),A.unsubscribe()})}),function nD(e,t,r){try{const o=r();return $I(o)?o.catch(a=>{throw t.runOutsideAngular(()=>e.handleError(a)),a}):o}catch(o){throw t.runOutsideAngular(()=>e.handleError(o)),o}}(y,d,()=>{const A=p.injector.get(BI);return A.runInitializers(),A.donePromise.then(()=>(function dC(e){"string"==typeof e&&(cC=e.toLowerCase().replace(/_/g,"-"))}(p.injector.get(sy,Qp)||Qp),this._moduleDoBootstrap(p),p))})})}bootstrapModule(o,a=[]){const d=rD({},a);return function bM(e,t,r){const o=new Ls(r);return Promise.resolve(o)}(0,0,o).then(p=>this.bootstrapModuleFactory(p,d))}_moduleDoBootstrap(o){const a=o.injector.get(Id);if(o._bootstrapComponents.length>0)o._bootstrapComponents.forEach(d=>a.bootstrap(d));else{if(!o.instance.ngDoBootstrap)throw new $e(-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 $e(404,!1);this._modules.slice().forEach(a=>a.destroy()),this._destroyListeners.forEach(a=>a());const o=this._injector.get(HI,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)(H(hs))},e.\u0275prov=sr({token:e,factory:e.\u0275fac,providedIn:"platform"}),t})(),Ed=null;const lD=new U("");function uD(e,t,r=[]){const o=`Platform: ${t}`,a=new U(o);return(d=[])=>{let p=GI();if(!p||p.injector.get(lD,!1)){const y=[...r,...d,{provide:a,useValue:!0}];e?e(y):function OM(e){if(Ed&&!Ed.get(lD,!1))throw new $e(400,!1);(function tD(){!function Ne(e){nn=e}(()=>{throw new $e(600,!1)})})(),Ed=e;const t=e.get(aD);(function dD(e){const t=e.get(_v,null);null==t||t.forEach(r=>r())})(e)}(function cD(e=[],t){return hs.create({name:t,providers:[{provide:dl,useValue:"platform"},{provide:HI,useValue:new Set([()=>Ed=null])},...e]})}(y,o))}return function kM(e){const t=GI();if(!t)throw new $e(401,!1);return t}()}}function GI(){var e,t;return null!==(e=null===(t=Ed)||void 0===t?void 0:t.get(aD))&&void 0!==e?e:null}function LM(){}let fD=(()=>{class t{}return t.__NG_ELEMENT_ID__=VM,t})();function VM(e){return function UM(e,t,r){if(As(e)&&!r){const o=Mo(e.index,t);return new op(o,o)}return 47&e.type?new op(t[Ki],t):null}(Pi(),Xt(),!(16&~e))}class vD{constructor(){}supports(t){return U_(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,d=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 d;return null===t?d=this._itTail:(d=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,d,a)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(o,a))?(Object.is(t.item,r)||this._addIdentityChange(t,r),this._moveAfter(t,d,a)):t=this._addAfter(new GM(r,o),d,a),t}_verifyReinsertion(t,r,o,a){let d=null===this._unlinkedRecords?null:this._unlinkedRecords.get(o,null);return null!==d?t=this._reinsertAfter(d,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,d=t._nextRemoved;return null===a?this._removalsHead=d:a._nextRemoved=d,null===d?this._removalsTail=a:d._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 _D),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 _D),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 _D{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 yD(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 d=this._getOrCreateRecordForKey(a,o);r=this._insertBeforeOrAppend(r,d)}}),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 d=a._prev,p=a._next;return d&&(d._next=p),p&&(p._prev=d),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 ED(){return new QI([new vD])}let QI=(()=>{var e;class t{constructor(o){this.factories=o}static create(o,a){if(null!=a){const d=a.factories.slice();o=o.concat(d)}return new t(o)}static extend(o){return{provide:t,useFactory:a=>t.create(o,a||ED()),deps:[[t,new $n,new An]]}}find(o){const a=this.factories.find(d=>d.supports(o));if(null!=a)return a;throw new $e(901,!1)}}return(e=t).\u0275prov=sr({token:e,providedIn:"root",factory:ED}),t})();function AD(){return new YI([new ID])}let YI=(()=>{var e;class t{constructor(o){this.factories=o}static create(o,a){if(a){const d=a.factories.slice();o=o.concat(d)}return new t(o)}static extend(o){return{provide:t,useFactory:a=>t.create(o,a||AD()),deps:[[t,new $n,new An]]}}find(o){const a=this.factories.find(d=>d.supports(o));if(a)return a;throw new $e(901,!1)}}return(e=t).\u0275prov=sr({token:e,providedIn:"root",factory:AD}),t})();const YM=uD(null,"core",[]);let JM=(()=>{var e;class t{constructor(o){}}return(e=t).\u0275fac=function(o){return new(o||e)(H(Id))},e.\u0275mod=sl({type:e}),e.\u0275inj=Mi({}),t})();function wP(e){return"boolean"==typeof e?e:null!=e&&"false"!==e}function RP(e){const t=se(null);try{return e()}finally{se(t)}}function kP(e,t){const r=or(e),o=t.elementInjector||Uo();return new bh(r).create(o,t.projectableNodes,t.hostElement,t.environmentInjector)}function FP(e){const t=or(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:(Tn,Tt,j)=>{"use strict";j.d(Tt,{MW:()=>Be,Wp:()=>ct,XU:()=>Fe,gL:()=>Y});var g=j(2214),c=j(4438),ve=j(3586);class Fe{constructor(Ge){return Ge}}class Y{constructor(){return(0,g.Dk)()}}const Je=new c.nKC("angularfire2._apps"),et={provide:Fe,useFactory:function se(Re){return Re&&1===Re.length?Re[0]:new Fe((0,g.Sx)())},deps:[[new c.Xx1,Je]]},be={provide:Y,deps:[[new c.Xx1,Je]]};function Ee(Re){return(Ge,Xe)=>{const Dt=Xe.get(c.Agw);(0,g.KO)("angularfire",ve.xv.full,"core"),(0,g.KO)("angularfire",ve.xv.full,"app"),(0,g.KO)("angular",c.xvI.full,Dt.toString());const Ot=Ge.runOutsideAngular(()=>Re(Xe));return new Fe(Ot)}}function Be(Re,...Ge){return(0,c.EmA)([et,be,{provide:Je,useFactory:Ee(Re),multi:!0,deps:[c.SKi,c.zZn,ve.u0,...Ge]}])}const ct=(0,ve.S3)(g.Wp,!0)},8737:(Tn,Tt,j)=>{"use strict";j.d(Tt,{Nj:()=>qa,DF:()=>Al,eJ:()=>Hu,xI:()=>ag,_q:()=>Cl,x9:()=>qu,kQ:()=>Fc});var g=j(3586),c=j(4438),ve=j(7440),Fe=j(2214),Y=j(467),Ae=j(7852),se=j(1076),Je=j(8041),et=j(1635),be=j(1362);const Pt=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."}},yt=new se.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 Je.Vy("@firebase/auth");function Xe(E,...h){Re.logLevel<=Je.$b.ERROR&&Re.error(`Auth (${Ae.MF}): ${E}`,...h)}function Dt(E,...h){throw Zt(E,...h)}function Ot(E,...h){return Zt(E,...h)}function We(E,h,v){const b=Object.assign(Object.assign({},Pt()),{[h]:v});return new se.FA("auth","Firebase",b).create(h,{appName:E.name})}function bt(E){return We(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 yt.create(E,...h)}function It(E,h,...v){if(!E)throw Zt(h,...v)}function je(E){const h="INTERNAL ASSERTION FAILED: "+E;throw Xe(h),new Error(h)}function nn(E,h){E||je(h)}function ht(){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 oe{constructor(h,v){this.shortDelay=h,this.longDelay=v,nn(v>h,"Short delay should be less than long delay!"),this.isMobile=(0,se.jZ)()||(0,se.lV)()}get(){return function K(){return!(typeof navigator<"u"&&navigator&&"onLine"in navigator&&"boolean"==typeof navigator.onLine&&(function Ne(){return"http:"===B()||"https:"===B()}()||(0,se.sr)()||"connection"in navigator))||navigator.onLine}()?this.isMobile?this.longDelay:this.shortDelay:Math.min(5e3,this.shortDelay)}}function ae(E,h){nn(E.emulator,"Emulator should always be set here");const{url:v}=E.emulator;return h?`${v}${h.startsWith("/")?h.slice(1):h}`:v}class ye{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 je("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 je("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 je("Could not find Response implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}}const Te={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"},ft=new oe(3e4,6e4);function Nt(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,Y.A)(function*(E,h,v,b,J={}){return Sn(E,J,(0,Y.A)(function*(){let _e={},ot={};b&&("GET"===h?ot=b:_e={body:JSON.stringify(b)});const Ft=(0,se.Am)(Object.assign({key:E.config.apiKey},ot)).slice(1),un=yield E._getAdditionalHeaders();return un["Content-Type"]="application/json",E.languageCode&&(un["X-Firebase-Locale"]=E.languageCode),ye.fetch()(En(E,E.config.apiHost,v,Ft),Object.assign({method:h,headers:un,referrerPolicy:"no-referrer"},_e))}))})).apply(this,arguments)}function Sn(E,h,v){return jn.apply(this,arguments)}function jn(){return(jn=(0,Y.A)(function*(E,h,v){E._canInitEmulator=!1;const b=Object.assign(Object.assign({},Te),h);try{const J=new Jn(E),_e=yield Promise.race([v(),J.promise]);J.clearNetworkTimeout();const ot=yield _e.json();if("needConfirmation"in ot)throw $e(E,"account-exists-with-different-credential",ot);if(_e.ok&&!("errorMessage"in ot))return ot;{const Ft=_e.ok?ot.errorMessage:ot.error.message,[un,Mn]=Ft.split(" : ");if("FEDERATED_USER_ID_ALREADY_LINKED"===un)throw $e(E,"credential-already-in-use",ot);if("EMAIL_EXISTS"===un)throw $e(E,"email-already-in-use",ot);if("USER_DISABLED"===un)throw $e(E,"user-disabled",ot);const er=b[un]||un.toLowerCase().replace(/[_\s]+/g,"-");if(Mn)throw We(E,er,Mn);Dt(E,er)}}catch(J){if(J instanceof se.g)throw J;Dt(E,"network-request-failed",{message:String(J)})}})).apply(this,arguments)}function Xn(E,h,v,b){return Qn.apply(this,arguments)}function Qn(){return(Qn=(0,Y.A)(function*(E,h,v,b,J={}){const _e=yield jt(E,h,v,b,J);return"mfaPendingCredential"in _e&&Dt(E,"multi-factor-auth-required",{_serverResponse:_e}),_e})).apply(this,arguments)}function En(E,h,v,b){const J=`${h}${v}?${b}`;return E.config.emulator?ae(E.config,J):`${E.config.apiScheme}://${J}`}function nr(E){switch(E){case"ENFORCE":return"ENFORCE";case"AUDIT":return"AUDIT";case"OFF":return"OFF";default:return"ENFORCEMENT_STATE_UNSPECIFIED"}}class Jn{constructor(h){this.auth=h,this.timer=null,this.promise=new Promise((v,b)=>{this.timer=setTimeout(()=>b(Ot(this.auth,"network-request-failed")),ft.get())})}clearNetworkTimeout(){clearTimeout(this.timer)}}function $e(E,h,v){const b={appName:E.name};v.email&&(b.email=v.email),v.phoneNumber&&(b.phoneNumber=v.phoneNumber);const J=Ot(E,h,b);return J.customData._tokenResponse=v,J}function kt(E){return void 0!==E&&void 0!==E.enterprise}class Jt{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 nr(v.enforcementState);return null}isProviderEnabled(h){return"ENFORCE"===this.getProviderEnforcementState(h)||"AUDIT"===this.getProviderEnforcementState(h)}}function _n(E,h){return yn.apply(this,arguments)}function yn(){return(yn=(0,Y.A)(function*(E,h){return jt(E,"GET","/v2/recaptchaConfig",Nt(E,h))})).apply(this,arguments)}function Wt(){return(Wt=(0,Y.A)(function*(E,h){return jt(E,"POST","/v1/accounts:delete",h)})).apply(this,arguments)}function Vr(E,h){return Or.apply(this,arguments)}function Or(){return(Or=(0,Y.A)(function*(E,h){return jt(E,"POST","/v1/accounts:lookup",h)})).apply(this,arguments)}function Cr(E){if(E)try{const h=new Date(Number(E));if(!isNaN(h.getTime()))return h.toUTCString()}catch{}}function Yn(){return(Yn=(0,Y.A)(function*(E,h=!1){const v=(0,se.Ku)(E),b=yield v.getIdToken(h),J=Rr(b);It(J&&J.exp&&J.auth_time&&J.iat,v.auth,"internal-error");const _e="object"==typeof J.firebase?J.firebase:void 0,ot=null==_e?void 0:_e.sign_in_provider;return{claims:J,token:b,authTime:Cr(Rn(J.auth_time)),issuedAtTime:Cr(Rn(J.iat)),expirationTime:Cr(Rn(J.exp)),signInProvider:ot||null,signInSecondFactor:(null==_e?void 0:_e.sign_in_second_factor)||null}})).apply(this,arguments)}function Rn(E){return 1e3*Number(E)}function Rr(E){const[h,v,b]=E.split(".");if(void 0===h||void 0===v||void 0===b)return Xe("JWT malformed, contained fewer than 3 sections"),null;try{const J=(0,se.u)(v);return J?JSON.parse(J):(Xe("Failed to decode base64 JWT payload"),null)}catch(J){return Xe("Caught error parsing JWT payload as JSON",null==J?void 0:J.toString()),null}}function rr(E){const h=Rr(E);return It(h,"internal-error"),It(typeof h.exp<"u","internal-error"),It(typeof h.iat<"u","internal-error"),Number(h.exp)-Number(h.iat)}function Tr(E,h){return Ri.apply(this,arguments)}function Ri(){return(Ri=(0,Y.A)(function*(E,h,v=!1){if(v)return h;try{return yield h}catch(b){throw b instanceof se.g&&function Jr({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 Zr{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 J=(null!==(v=this.user.stsTokenManager.expirationTime)&&void 0!==v?v:0)-Date.now()-3e5;return Math.max(0,J)}}schedule(h=!1){var v=this;if(!this.isRunning)return;const b=this.getInterval(h);this.timerId=setTimeout((0,Y.A)(function*(){yield v.iteration()}),b)}iteration(){var h=this;return(0,Y.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 ue{constructor(h,v){this.createdAt=h,this.lastLoginAt=v,this._initializeTime()}_initializeTime(){this.lastSignInTime=Cr(this.lastLoginAt),this.creationTime=Cr(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 dt.apply(this,arguments)}function dt(){return(dt=(0,Y.A)(function*(E){var h;const v=E.auth,b=yield E.getIdToken(),J=yield Tr(E,Vr(v,{idToken:b}));It(null==J?void 0:J.users.length,v,"internal-error");const _e=J.users[0];E._notifyReloadListener(_e);const ot=null!==(h=_e.providerUserInfo)&&void 0!==h&&h.length?xe(_e.providerUserInfo):[],Ft=function pe(E,h){return[...E.filter(b=>!h.some(J=>J.providerId===b.providerId)),...h]}(E.providerData,ot),er=!!E.isAnonymous&&!(E.email&&_e.passwordHash||null!=Ft&&Ft.length),Qr={uid:_e.localId,displayName:_e.displayName||null,photoURL:_e.photoUrl||null,email:_e.email||null,emailVerified:_e.emailVerified||!1,phoneNumber:_e.phoneNumber||null,tenantId:_e.tenantId||null,providerData:Ft,metadata:new ue(_e.createdAt,_e.lastLoginAt),isAnonymous:er};Object.assign(E,Qr)})).apply(this,arguments)}function le(){return(le=(0,Y.A)(function*(E){const h=(0,se.Ku)(E);yield ze(h),yield h.auth._persistUserIfCurrent(h),h.auth._notifyListenersIfCurrent(h)})).apply(this,arguments)}function xe(E){return E.map(h=>{var{providerId:v}=h,b=(0,et.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 st(){return(st=(0,Y.A)(function*(E,h){const v=yield Sn(E,{},(0,Y.A)(function*(){const b=(0,se.Am)({grant_type:"refresh_token",refresh_token:h}).slice(1),{tokenApiHost:J,apiKey:_e}=E.config,ot=En(E,J,"/v1/token",`key=${_e}`),Ft=yield E._getAdditionalHeaders();return Ft["Content-Type"]="application/x-www-form-urlencoded",ye.fetch()(ot,{method:"POST",headers:Ft,body:b})}));return{accessToken:v.access_token,expiresIn:v.expires_in,refreshToken:v.refresh_token}})).apply(this,arguments)}function Pn(){return(Pn=(0,Y.A)(function*(E,h){return jt(E,"POST","/v2/accounts:revokeToken",Nt(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){It(h.idToken,"internal-error"),It(typeof h.idToken<"u","internal-error"),It(typeof h.refreshToken<"u","internal-error");const v="expiresIn"in h&&typeof h.expiresIn<"u"?Number(h.expiresIn):rr(h.idToken);this.updateTokensAndExpiration(h.idToken,h.refreshToken,v)}updateFromIdToken(h){It(0!==h.length,"internal-error");const v=rr(h);this.updateTokensAndExpiration(h,null,v)}getToken(h,v=!1){var b=this;return(0,Y.A)(function*(){return v||!b.accessToken||b.isExpired?(It(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,Y.A)(function*(){const{accessToken:J,refreshToken:_e,expiresIn:ot}=yield function wt(E,h){return st.apply(this,arguments)}(h,v);b.updateTokensAndExpiration(J,_e,Number(ot))})()}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:J,expirationTime:_e}=v,ot=new Kn;return b&&(It("string"==typeof b,"internal-error",{appName:h}),ot.refreshToken=b),J&&(It("string"==typeof J,"internal-error",{appName:h}),ot.accessToken=J),_e&&(It("number"==typeof _e,"internal-error",{appName:h}),ot.expirationTime=_e),ot}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 je("not implemented")}}function Ir(E,h){It("string"==typeof E||typeof E>"u","internal-error",{appName:h})}class cr{constructor(h){var{uid:v,auth:b,stsTokenManager:J}=h,_e=(0,et.Tt)(h,["uid","auth","stsTokenManager"]);this.providerId="firebase",this.proactiveRefresh=new Zr(this),this.reloadUserInfo=null,this.reloadListener=null,this.uid=v,this.auth=b,this.stsTokenManager=J,this.accessToken=J.accessToken,this.displayName=_e.displayName||null,this.email=_e.email||null,this.emailVerified=_e.emailVerified||!1,this.phoneNumber=_e.phoneNumber||null,this.photoURL=_e.photoURL||null,this.isAnonymous=_e.isAnonymous||!1,this.tenantId=_e.tenantId||null,this.providerData=_e.providerData?[..._e.providerData]:[],this.metadata=new ue(_e.createdAt||void 0,_e.lastLoginAt||void 0)}getIdToken(h){var v=this;return(0,Y.A)(function*(){const b=yield Tr(v,v.stsTokenManager.getToken(v.auth,h));return It(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 li(E){return Yn.apply(this,arguments)}(this,h)}reload(){return function Qe(E){return le.apply(this,arguments)}(this)}_assign(h){this!==h&&(It(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 cr(Object.assign(Object.assign({},this),{auth:h,stsTokenManager:this.stsTokenManager._clone()}));return v.metadata._copy(this.metadata),v}_onReload(h){It(!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,Y.A)(function*(){let J=!1;h.idToken&&h.idToken!==b.stsTokenManager.accessToken&&(b.stsTokenManager.updateFromServerResponse(h),J=!0),v&&(yield ze(b)),yield b.auth._persistUserIfCurrent(b),J&&b.auth._notifyListenersIfCurrent(b)})()}delete(){var h=this;return(0,Y.A)(function*(){if((0,Ae.xZ)(h.auth.app))return Promise.reject(bt(h.auth));const v=yield h.getIdToken();return yield Tr(h,function rn(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,J,_e,ot,Ft,un,Mn,er;const Qr=null!==(b=v.displayName)&&void 0!==b?b:void 0,Fo=null!==(J=v.email)&&void 0!==J?J:void 0,Ji=null!==(_e=v.phoneNumber)&&void 0!==_e?_e:void 0,sa=null!==(ot=v.photoURL)&&void 0!==ot?ot:void 0,Wd=null!==(Ft=v.tenantId)&&void 0!==Ft?Ft:void 0,ou=null!==(un=v._redirectEventId)&&void 0!==un?un:void 0,Kd=null!==(Mn=v.createdAt)&&void 0!==Mn?Mn:void 0,Yu=null!==(er=v.lastLoginAt)&&void 0!==er?er:void 0,{uid:Ju,emailVerified:Zu,isAnonymous:Af,providerData:su,stsTokenManager:Cf}=v;It(Ju&&Cf,h,"internal-error");const qd=Kn.fromJSON(this.name,Cf);It("string"==typeof Ju,h,"internal-error"),Ir(Qr,h.name),Ir(Fo,h.name),It("boolean"==typeof Zu,h,"internal-error"),It("boolean"==typeof Af,h,"internal-error"),Ir(Ji,h.name),Ir(sa,h.name),Ir(Wd,h.name),Ir(ou,h.name),Ir(Kd,h.name),Ir(Yu,h.name);const Xd=new cr({uid:Ju,auth:h,email:Fo,emailVerified:Zu,displayName:Qr,isAnonymous:Af,photoURL:sa,phoneNumber:Ji,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,Y.A)(function*(){const J=new Kn;J.updateFromServerResponse(v);const _e=new cr({uid:v.localId,auth:h,stsTokenManager:J,isAnonymous:b});return yield ze(_e),_e})()}static _fromGetAccountInfoResponse(h,v,b){return(0,Y.A)(function*(){const J=v.users[0];It(void 0!==J.localId,"internal-error");const _e=void 0!==J.providerUserInfo?xe(J.providerUserInfo):[],ot=!(J.email&&J.passwordHash||null!=_e&&_e.length),Ft=new Kn;Ft.updateFromIdToken(b);const un=new cr({uid:J.localId,auth:h,stsTokenManager:Ft,isAnonymous:ot}),Mn={uid:J.localId,displayName:J.displayName||null,photoURL:J.photoUrl||null,email:J.email||null,emailVerified:J.emailVerified||!1,phoneNumber:J.phoneNumber||null,tenantId:J.tenantId||null,providerData:_e,metadata:new ue(J.createdAt,J.lastLoginAt),isAnonymous:!(J.email&&J.passwordHash||null!=_e&&_e.length)};return Object.assign(un,Mn),un})()}}const hi=new Map;function On(E){nn(E instanceof Function,"Expected a class definition");let h=hi.get(E);return h?(nn(h instanceof E,"Instance stored in cache mismatched with class"),h):(h=new E,hi.set(E,h),h)}const Er=(()=>{class E{constructor(){this.type="NONE",this.storage={}}_isAvailable(){return(0,Y.A)(function*(){return!0})()}_set(v,b){var J=this;return(0,Y.A)(function*(){J.storage[v]=b})()}_get(v){var b=this;return(0,Y.A)(function*(){const J=b.storage[v];return void 0===J?null:J})()}_remove(v){var b=this;return(0,Y.A)(function*(){delete b.storage[v]})()}_addListener(v,b){}_removeListener(v,b){}}return E.type="NONE",E})();function mi(E,h,v){return`firebase:${E}:${h}:${v}`}class ui{constructor(h,v,b){this.persistence=h,this.auth=v,this.userKey=b;const{config:J,name:_e}=this.auth;this.fullUserKey=mi(this.userKey,J.apiKey,_e),this.fullPersistenceKey=mi("persistence",J.apiKey,_e),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,Y.A)(function*(){const v=yield h.persistence._get(h.fullUserKey);return v?cr._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,Y.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,Y.A)(function*(){if(!v.length)return new ui(On(Er),h,b);const J=(yield Promise.all(v.map(function(){var Mn=(0,Y.A)(function*(er){if(yield er._isAvailable())return er});return function(er){return Mn.apply(this,arguments)}}()))).filter(Mn=>Mn);let _e=J[0]||On(Er);const ot=mi(b,h.config.apiKey,h.name);let Ft=null;for(const Mn of v)try{const er=yield Mn._get(ot);if(er){const Qr=cr._fromJSON(h,er);Mn!==_e&&(Ft=Qr),_e=Mn;break}}catch{}const un=J.filter(Mn=>Mn._shouldAllowMigration);return _e._shouldAllowMigration&&un.length?(_e=un[0],Ft&&(yield _e._set(ot,Ft.toJSON())),yield Promise.all(v.map(function(){var Mn=(0,Y.A)(function*(er){if(er!==_e)try{yield er._remove(ot)}catch{}});return function(er){return Mn.apply(this,arguments)}}())),new ui(_e,h,b)):new ui(_e,h,b)})()}}function fi(E){const h=E.toLowerCase();if(h.includes("opera/")||h.includes("opr/")||h.includes("opios/"))return"Opera";if(Mi(h))return"IEMobile";if(h.includes("msie")||h.includes("trident/"))return"IE";if(h.includes("edge/"))return"Edge";if(Ti(h))return"Firefox";if(h.includes("silk/"))return"Silk";if(Rt(h))return"Blackberry";if(ut(h))return"Webos";if(sr(h))return"Safari";if((h.includes("chrome/")||Fi(h))&&!h.includes("edge/"))return"Chrome";if(pi(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 Ti(E=(0,se.ZQ)()){return/firefox\//i.test(E)}function sr(E=(0,se.ZQ)()){const h=E.toLowerCase();return h.includes("safari/")&&!h.includes("chrome/")&&!h.includes("crios/")&&!h.includes("android")}function Fi(E=(0,se.ZQ)()){return/crios\//i.test(E)}function Mi(E=(0,se.ZQ)()){return/iemobile/i.test(E)}function pi(E=(0,se.ZQ)()){return/android/i.test(E)}function Rt(E=(0,se.ZQ)()){return/blackberry/i.test(E)}function ut(E=(0,se.ZQ)()){return/webos/i.test(E)}function Bt(E=(0,se.ZQ)()){return/iphone|ipad|ipod/i.test(E)||/macintosh/i.test(E)&&/mobile/i.test(E)}function V(E=(0,se.ZQ)()){return Bt(E)||pi(E)||ut(E)||Rt(E)||/windows phone/i.test(E)||Mi(E)}function U(E,h=[]){let v;switch(E){case"Browser":v=fi((0,se.ZQ)());break;case"Worker":v=`${fi((0,se.ZQ)())}-${E}`;break;default:v=E}const b=h.length?h.join(","):"FirebaseCore-web";return`${v}/JsCore/${Ae.MF}/${b}`}class re{constructor(h){this.auth=h,this.queue=[]}pushCallback(h,v){const b=_e=>new Promise((ot,Ft)=>{try{ot(h(_e))}catch(un){Ft(un)}});b.onAbort=v,this.queue.push(b);const J=this.queue.length-1;return()=>{this.queue[J]=()=>Promise.resolve()}}runMiddleware(h){var v=this;return(0,Y.A)(function*(){if(v.auth.currentUser===h)return;const b=[];try{for(const J of v.queue)yield J(h),J.onAbort&&b.push(J.onAbort)}catch(J){b.reverse();for(const _e of b)try{_e()}catch{}throw v.auth._errorFactory.create("login-blocked",{originalMessage:null==J?void 0:J.message})}})()}}function rt(){return(rt=(0,Y.A)(function*(E,h={}){return jt(E,"GET","/v2/passwordPolicy",Nt(E,h))})).apply(this,arguments)}class Kt{constructor(h){var v,b,J,_e;const ot=h.customStrengthOptions;this.customStrengthOptions={},this.customStrengthOptions.minPasswordLength=null!==(v=ot.minPasswordLength)&&void 0!==v?v:6,ot.maxPasswordLength&&(this.customStrengthOptions.maxPasswordLength=ot.maxPasswordLength),void 0!==ot.containsLowercaseCharacter&&(this.customStrengthOptions.containsLowercaseLetter=ot.containsLowercaseCharacter),void 0!==ot.containsUppercaseCharacter&&(this.customStrengthOptions.containsUppercaseLetter=ot.containsUppercaseCharacter),void 0!==ot.containsNumericCharacter&&(this.customStrengthOptions.containsNumericCharacter=ot.containsNumericCharacter),void 0!==ot.containsNonAlphanumericCharacter&&(this.customStrengthOptions.containsNonAlphanumericCharacter=ot.containsNonAlphanumericCharacter),this.enforcementState=h.enforcementState,"ENFORCEMENT_STATE_UNSPECIFIED"===this.enforcementState&&(this.enforcementState="OFF"),this.allowedNonAlphanumericCharacters=null!==(J=null===(b=h.allowedNonAlphanumericCharacters)||void 0===b?void 0:b.join(""))&&void 0!==J?J:"",this.forceUpgradeOnSignin=null!==(_e=h.forceUpgradeOnSignin)&&void 0!==_e&&_e,this.schemaVersion=h.schemaVersion}validatePassword(h){var v,b,J,_e,ot,Ft;const un={isValid:!0,passwordPolicy:this};return this.validatePasswordLengthOptions(h,un),this.validatePasswordCharacterOptions(h,un),un.isValid&&(un.isValid=null===(v=un.meetsMinPasswordLength)||void 0===v||v),un.isValid&&(un.isValid=null===(b=un.meetsMaxPasswordLength)||void 0===b||b),un.isValid&&(un.isValid=null===(J=un.containsLowercaseLetter)||void 0===J||J),un.isValid&&(un.isValid=null===(_e=un.containsUppercaseLetter)||void 0===_e||_e),un.isValid&&(un.isValid=null===(ot=un.containsNumericCharacter)||void 0===ot||ot),un.isValid&&(un.isValid=null===(Ft=un.containsNonAlphanumericCharacter)||void 0===Ft||Ft),un}validatePasswordLengthOptions(h,v){const b=this.customStrengthOptions.minPasswordLength,J=this.customStrengthOptions.maxPasswordLength;b&&(v.meetsMinPasswordLength=h.length>=b),J&&(v.meetsMaxPasswordLength=h.length<=J)}validatePasswordCharacterOptions(h,v){let b;this.updatePasswordCharacterOptionsStatuses(v,!1,!1,!1,!1);for(let J=0;J="a"&&b<="z",b>="A"&&b<="Z",b>="0"&&b<="9",this.allowedNonAlphanumericCharacters.includes(b))}updatePasswordCharacterOptionsStatuses(h,v,b,J,_e){this.customStrengthOptions.containsLowercaseLetter&&(h.containsLowercaseLetter||(h.containsLowercaseLetter=v)),this.customStrengthOptions.containsUppercaseLetter&&(h.containsUppercaseLetter||(h.containsUppercaseLetter=b)),this.customStrengthOptions.containsNumericCharacter&&(h.containsNumericCharacter||(h.containsNumericCharacter=J)),this.customStrengthOptions.containsNonAlphanumericCharacter&&(h.containsNonAlphanumericCharacter||(h.containsNonAlphanumericCharacter=_e))}}class Bn{constructor(h,v,b,J){this.app=h,this.heartbeatServiceProvider=v,this.appCheckServiceProvider=b,this.config=J,this.currentUser=null,this.emulatorConfig=null,this.operations=Promise.resolve(),this.authStateSubscription=new Ur(this),this.idTokenSubscription=new Ur(this),this.beforeStateQueue=new re(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=yt,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=J.sdkClientVersion}_initializeWithPersistence(h,v){var b=this;return v&&(this._popupRedirectResolver=On(v)),this._initializationPromise=this.queue((0,Y.A)(function*(){var J,_e;if(!b._deleted&&(b.persistenceManager=yield ui.create(b,h),!b._deleted)){if(null!==(J=b._popupRedirectResolver)&&void 0!==J&&J._shouldInitProactively)try{yield b._popupRedirectResolver._initialize(b)}catch{}yield b.initializeCurrentUser(v),b.lastNotifiedUid=(null===(_e=b.currentUser)||void 0===_e?void 0:_e.uid)||null,!b._deleted&&(b._isInitialized=!0)}})),this._initializationPromise}_onStorageEvent(){var h=this;return(0,Y.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,Y.A)(function*(){try{const b=yield Vr(v,{idToken:h}),J=yield cr._fromGetAccountInfoResponse(v,b,h);yield v.directlySetCurrentUser(J)}catch(b){console.warn("FirebaseServerApp could not login user with provided authIdToken: ",b),yield v.directlySetCurrentUser(null)}})()}initializeCurrentUser(h){var v=this;return(0,Y.A)(function*(){var b;if((0,Ae.xZ)(v.app)){const Ft=v.app.settings.authIdToken;return Ft?new Promise(un=>{setTimeout(()=>v.initializeCurrentUserFromIdToken(Ft).then(un,un))}):v.directlySetCurrentUser(null)}const J=yield v.assertedPersistence.getCurrentUser();let _e=J,ot=!1;if(h&&v.config.authDomain){yield v.getOrInitRedirectPersistenceManager();const Ft=null===(b=v.redirectUser)||void 0===b?void 0:b._redirectEventId,un=null==_e?void 0:_e._redirectEventId,Mn=yield v.tryRedirectSignIn(h);(!Ft||Ft===un)&&null!=Mn&&Mn.user&&(_e=Mn.user,ot=!0)}if(!_e)return v.directlySetCurrentUser(null);if(!_e._redirectEventId){if(ot)try{yield v.beforeStateQueue.runMiddleware(_e)}catch(Ft){_e=J,v._popupRedirectResolver._overrideRedirectResult(v,()=>Promise.reject(Ft))}return _e?v.reloadAndSetCurrentUserOrClear(_e):v.directlySetCurrentUser(null)}return It(v._popupRedirectResolver,v,"argument-error"),yield v.getOrInitRedirectPersistenceManager(),v.redirectUser&&v.redirectUser._redirectEventId===_e._redirectEventId?v.directlySetCurrentUser(_e):v.reloadAndSetCurrentUserOrClear(_e)})()}tryRedirectSignIn(h){var v=this;return(0,Y.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,Y.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 ne(){if(typeof navigator>"u")return null;const E=navigator;return E.languages&&E.languages[0]||E.language||null}()}_delete(){var h=this;return(0,Y.A)(function*(){h._deleted=!0})()}updateCurrentUser(h){var v=this;return(0,Y.A)(function*(){if((0,Ae.xZ)(v.app))return Promise.reject(bt(v));const b=h?(0,se.Ku)(h):null;return b&&It(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,Y.A)(function*(){if(!b._deleted)return h&&It(b.tenantId===h.tenantId,b,"tenant-id-mismatch"),v||(yield b.beforeStateQueue.runMiddleware(h)),b.queue((0,Y.A)(function*(){yield b.directlySetCurrentUser(h),b.notifyAuthListeners()}))})()}signOut(){var h=this;return(0,Y.A)(function*(){return(0,Ae.xZ)(h.app)?Promise.reject(bt(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,Ae.xZ)(this.app)?Promise.reject(bt(this)):this.queue((0,Y.A)(function*(){yield v.assertedPersistence.setPersistence(On(h))}))}_getRecaptchaConfig(){return null==this.tenantId?this._agentRecaptchaConfig:this._tenantRecaptchaConfigs[this.tenantId]}validatePassword(h){var v=this;return(0,Y.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,Y.A)(function*(){const v=yield function Oe(E){return rt.apply(this,arguments)}(h),b=new Kt(v);null===h.tenantId?h._projectPasswordPolicy=b:h._tenantPasswordPolicies[h.tenantId]=b})()}_getPersistence(){return this.assertedPersistence.persistence.type}_updateErrorMap(h){this._errorFactory=new se.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,Y.A)(function*(){if(v.currentUser){const b=yield v.currentUser.getIdToken(),J={providerId:"apple.com",tokenType:"ACCESS_TOKEN",token:h,idToken:b};null!=v.tenantId&&(J.tenantId=v.tenantId),yield function pn(E,h){return Pn.apply(this,arguments)}(v,J)}})()}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,Y.A)(function*(){const J=yield b.getOrInitRedirectPersistenceManager(v);return null===h?J.removeCurrentUser():J.setCurrentUser(h)})()}getOrInitRedirectPersistenceManager(h){var v=this;return(0,Y.A)(function*(){if(!v.redirectPersistenceManager){const b=h&&On(h)||v._popupRedirectResolver;It(b,v,"argument-error"),v.redirectPersistenceManager=yield ui.create(v,[On(b._redirectPersistence)],"redirectUser"),v.redirectUser=yield v.redirectPersistenceManager.getCurrentUser()}return v.redirectPersistenceManager})()}_redirectUserForId(h){var v=this;return(0,Y.A)(function*(){var b,J;return v._isInitialized&&(yield v.queue((0,Y.A)(function*(){}))),(null===(b=v._currentUser)||void 0===b?void 0:b._redirectEventId)===h?v._currentUser:(null===(J=v.redirectUser)||void 0===J?void 0:J._redirectEventId)===h?v.redirectUser:null})()}_persistUserIfCurrent(h){var v=this;return(0,Y.A)(function*(){if(h===v.currentUser)return v.queue((0,Y.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,J){if(this._deleted)return()=>{};const _e="function"==typeof v?v:v.next.bind(v);let ot=!1;const Ft=this._isInitialized?Promise.resolve():this._initializationPromise;if(It(Ft,this,"internal-error"),Ft.then(()=>{ot||_e(this.currentUser)}),"function"==typeof v){const un=h.addObserver(v,b,J);return()=>{ot=!0,un()}}{const un=h.addObserver(v);return()=>{ot=!0,un()}}}directlySetCurrentUser(h){var v=this;return(0,Y.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 It(this.persistenceManager,this,"internal-error"),this.persistenceManager}_logFramework(h){!h||this.frameworks.includes(h)||(this.frameworks.push(h),this.frameworks.sort(),this.clientVersion=U(this.config.clientPlatform,this._getFrameworks()))}_getFrameworks(){return this.frameworks}_getAdditionalHeaders(){var h=this;return(0,Y.A)(function*(){var v;const b={"X-Client-Version":h.clientVersion};h.app.options.appId&&(b["X-Firebase-gmpid"]=h.app.options.appId);const J=yield null===(v=h.heartbeatServiceProvider.getImmediate({optional:!0}))||void 0===v?void 0:v.getHeartbeatsHeader();J&&(b["X-Firebase-Client"]=J);const _e=yield h._getAppCheckToken();return _e&&(b["X-Firebase-AppCheck"]=_e),b})()}_getAppCheckToken(){var h=this;return(0,Y.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 Ge(E,...h){Re.logLevel<=Je.$b.WARN&&Re.warn(`Auth (${Ae.MF}): ${E}`,...h)}(`Error while retrieving App Check token: ${b.error}`),null==b?void 0:b.token})()}}function Ln(E){return(0,se.Ku)(E)}class Ur{constructor(h){this.auth=h,this.observer=null,this.addObserver=(0,se.tD)(v=>this.observer=v)}get next(){return It(this.observer,this.auth,"internal-error"),this.observer.next.bind(this.observer)}}let dr={loadJS:()=>(0,Y.A)(function*(){throw new Error("Unable to load external scripts")})(),recaptchaV2Script:"",recaptchaEnterpriseScript:"",gapiScript:""};function pr(E){return dr.loadJS(E)}function xr(E){return`__${E}${Math.floor(1e6*Math.random())}`}class qr{constructor(h){this.type="recaptcha-enterprise",this.auth=Ln(h)}verify(h="verify",v=!1){var b=this;return(0,Y.A)(function*(){function _e(){return _e=(0,Y.A)(function*(Ft){if(!v){if(null==Ft.tenantId&&null!=Ft._agentRecaptchaConfig)return Ft._agentRecaptchaConfig.siteKey;if(null!=Ft.tenantId&&void 0!==Ft._tenantRecaptchaConfigs[Ft.tenantId])return Ft._tenantRecaptchaConfigs[Ft.tenantId].siteKey}return new Promise(function(){var un=(0,Y.A)(function*(Mn,er){_n(Ft,{clientType:"CLIENT_TYPE_WEB",version:"RECAPTCHA_ENTERPRISE"}).then(Qr=>{if(void 0!==Qr.recaptchaKey){const Fo=new Jt(Qr);return null==Ft.tenantId?Ft._agentRecaptchaConfig=Fo:Ft._tenantRecaptchaConfigs[Ft.tenantId]=Fo,Mn(Fo.siteKey)}er(new Error("recaptcha Enterprise site key undefined"))}).catch(Qr=>{er(Qr)})});return function(Mn,er){return un.apply(this,arguments)}}())}),_e.apply(this,arguments)}function ot(Ft,un,Mn){const er=window.grecaptcha;kt(er)?er.enterprise.ready(()=>{er.enterprise.execute(Ft,{action:h}).then(Qr=>{un(Qr)}).catch(()=>{un("NO_RECAPTCHA")})}):Mn(Error("No reCAPTCHA enterprise script loaded."))}return new Promise((Ft,un)=>{(function J(Ft){return _e.apply(this,arguments)})(b.auth).then(Mn=>{if(!v&&kt(window.grecaptcha))ot(Mn,Ft,un);else{if(typeof window>"u")return void un(new Error("RecaptchaVerifier is only supported in browser"));let er=function Zn(){return dr.recaptchaEnterpriseScript}();0!==er.length&&(er+=Mn),pr(er).then(()=>{ot(Mn,Ft,un)}).catch(Qr=>{un(Qr)})}}).catch(Mn=>{un(Mn)})})})()}}function xn(E,h,v){return kn.apply(this,arguments)}function kn(){return(kn=(0,Y.A)(function*(E,h,v,b=!1){const J=new qr(E);let _e;try{_e=yield J.verify(v)}catch{_e=yield J.verify(v,!0)}const ot=Object.assign({},h);return Object.assign(ot,b?{captchaResp:_e}:{captchaResponse:_e}),Object.assign(ot,{clientType:"CLIENT_TYPE_WEB"}),Object.assign(ot,{recaptchaVersion:"RECAPTCHA_ENTERPRISE"}),ot})).apply(this,arguments)}function _o(E,h,v,b){return ni.apply(this,arguments)}function ni(){return ni=(0,Y.A)(function*(E,h,v,b){var J;if(null!==(J=E._getRecaptchaConfig())&&void 0!==J&&J.isProviderEnabled("EMAIL_PASSWORD_PROVIDER")){const _e=yield xn(E,h,v,"getOobCode"===v);return b(E,_e)}return b(E,h).catch(function(){var _e=(0,Y.A)(function*(ot){if("auth/missing-recaptcha-token"===ot.code){console.log(`${v} is protected by reCAPTCHA Enterprise for this project. Automatically triggering the reCAPTCHA flow and restarting the flow.`);const Ft=yield xn(E,h,v,"getOobCode"===v);return b(E,Ft)}return Promise.reject(ot)});return function(ot){return _e.apply(this,arguments)}}())}),ni.apply(this,arguments)}function jr(E){const h=E.indexOf(":");return h<0?"":E.substr(0,h+1)}function Gn(E){if(!E)return null;const h=Number(E);return isNaN(h)?null:h}class To{constructor(h,v){this.providerId=h,this.signInMethod=v}toJSON(){return je("not implemented")}_getIdTokenResponse(h){return je("not implemented")}_linkToIdToken(h,v){return je("not implemented")}_getReauthenticationResolver(h){return je("not implemented")}}function S(E,h){return q.apply(this,arguments)}function q(){return(q=(0,Y.A)(function*(E,h){return jt(E,"POST","/v1/accounts:signUp",h)})).apply(this,arguments)}function me(E,h){return Ye.apply(this,arguments)}function Ye(){return(Ye=(0,Y.A)(function*(E,h){return Xn(E,"POST","/v1/accounts:signInWithPassword",Nt(E,h))})).apply(this,arguments)}function tn(){return(tn=(0,Y.A)(function*(E,h){return Xn(E,"POST","/v1/accounts:signInWithEmailLink",Nt(E,h))})).apply(this,arguments)}function bn(){return(bn=(0,Y.A)(function*(E,h){return Xn(E,"POST","/v1/accounts:signInWithEmailLink",Nt(E,h))})).apply(this,arguments)}class $n extends To{constructor(h,v,b,J=null){super("password",b),this._email=h,this._password=v,this._tenantId=J}static _fromEmailAndPassword(h,v){return new $n(h,v,"password")}static _fromEmailAndCode(h,v,b=null){return new $n(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,Y.A)(function*(){switch(v.signInMethod){case"password":return _o(h,{returnSecureToken:!0,email:v._email,password:v._password,clientType:"CLIENT_TYPE_WEB"},"signInWithPassword",me);case"emailLink":return function Qt(E,h){return tn.apply(this,arguments)}(h,{email:v._email,oobCode:v._password});default:Dt(h,"internal-error")}})()}_linkToIdToken(h,v){var b=this;return(0,Y.A)(function*(){switch(b.signInMethod){case"password":return _o(h,{idToken:v,returnSecureToken:!0,email:b._email,password:b._password,clientType:"CLIENT_TYPE_WEB"},"signUpPassword",S);case"emailLink":return function An(E,h){return bn.apply(this,arguments)}(h,{idToken:v,email:b._email,oobCode:b._password});default:Dt(h,"internal-error")}})()}_getReauthenticationResolver(h){return this._getIdTokenResponse(h)}}function Cn(E,h){return Nr.apply(this,arguments)}function Nr(){return(Nr=(0,Y.A)(function*(E,h){return Xn(E,"POST","/v1/accounts:signInWithIdp",Nt(E,h))})).apply(this,arguments)}class ss{constructor(h){var v,b,J,_e,ot,Ft;const un=(0,se.I9)((0,se.hp)(h)),Mn=null!==(v=un.apiKey)&&void 0!==v?v:null,er=null!==(b=un.oobCode)&&void 0!==b?b:null,Qr=function wo(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!==(J=un.mode)&&void 0!==J?J:null);It(Mn&&er&&Qr,"argument-error"),this.apiKey=Mn,this.operation=Qr,this.code=er,this.continueUrl=null!==(_e=un.continueUrl)&&void 0!==_e?_e:null,this.languageCode=null!==(ot=un.languageCode)&&void 0!==ot?ot:null,this.tenantId=null!==(Ft=un.tenantId)&&void 0!==Ft?Ft:null}static parseLink(h){const v=function xa(E){const h=(0,se.I9)((0,se.hp)(E)).link,v=h?(0,se.I9)((0,se.hp)(h)).deep_link_id:null,b=(0,se.I9)((0,se.hp)(E)).deep_link_id;return(b?(0,se.I9)((0,se.hp)(b)).link:null)||b||v||h||E}(h);try{return new ss(v)}catch{return null}}}let Lr=(()=>{class E{constructor(){this.providerId=E.PROVIDER_ID}static credential(v,b){return $n._fromEmailAndPassword(v,b)}static credentialWithLink(v,b){const J=ss.parseLink(b);return It(J,"argument-error"),$n._fromEmailAndCode(v,J.code,J.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 Yo(E,h){return So.apply(this,arguments)}function So(){return(So=(0,Y.A)(function*(E,h){return Xn(E,"POST","/v1/accounts:signUp",Nt(E,h))})).apply(this,arguments)}class zi{constructor(h){this.user=h.user,this.providerId=h.providerId,this._tokenResponse=h._tokenResponse,this.operationType=h.operationType}static _fromIdTokenResponse(h,v,b,J=!1){return(0,Y.A)(function*(){const _e=yield cr._fromIdTokenResponse(h,b,J),ot=da(b);return new zi({user:_e,providerId:ot,_tokenResponse:b,operationType:v})})()}static _forOperation(h,v,b){return(0,Y.A)(function*(){yield h._updateTokensIfNecessary(b,!0);const J=da(b);return new zi({user:h,providerId:J,_tokenResponse:b,operationType:v})})()}}function da(E){return E.providerId?E.providerId:"phoneNumber"in E?"phone":null}class x extends se.g{constructor(h,v,b,J){var _e;super(v.code,v.message),this.operationType=b,this.user=J,Object.setPrototypeOf(this,x.prototype),this.customData={appName:h.name,tenantId:null!==(_e=h.tenantId)&&void 0!==_e?_e:void 0,_serverResponse:v.customData._serverResponse,operationType:b}}static _fromErrorAndOperation(h,v,b,J){return new x(h,v,b,J)}}function ge(E,h,v,b){return("reauthenticate"===h?v._getReauthenticationResolver(E):v._getIdTokenResponse(E)).catch(_e=>{throw"auth/multi-factor-auth-required"===_e.code?x._fromErrorAndOperation(E,_e,h,b):_e})}function lr(){return(lr=(0,Y.A)(function*(E,h,v=!1){const b=yield Tr(E,h._linkToIdToken(E.auth,yield E.getIdToken()),v);return zi._forOperation(E,"link",b)})).apply(this,arguments)}function Jo(){return(Jo=(0,Y.A)(function*(E,h,v=!1){const{auth:b}=E;if((0,Ae.xZ)(b.app))return Promise.reject(bt(b));const J="reauthenticate";try{const _e=yield Tr(E,ge(b,J,h,E),v);It(_e.idToken,b,"internal-error");const ot=Rr(_e.idToken);It(ot,b,"internal-error");const{sub:Ft}=ot;return It(E.uid===Ft,b,"user-mismatch"),zi._forOperation(E,J,_e)}catch(_e){throw"auth/user-not-found"===(null==_e?void 0:_e.code)&&Dt(b,"user-mismatch"),_e}})).apply(this,arguments)}function Na(E,h){return vs.apply(this,arguments)}function vs(){return(vs=(0,Y.A)(function*(E,h,v=!1){if((0,Ae.xZ)(E.app))return Promise.reject(bt(E));const b="signIn",J=yield ge(E,b,h),_e=yield zi._fromIdTokenResponse(E,b,J);return v||(yield E._updateCurrentUser(_e.user)),_e})).apply(this,arguments)}function Oa(){return(Oa=(0,Y.A)(function*(E,h){return Na(Ln(E),h)})).apply(this,arguments)}function Ll(E){return Dr.apply(this,arguments)}function Dr(){return(Dr=(0,Y.A)(function*(E){const h=Ln(E);h._getPasswordPolicyInternal()&&(yield h._updatePasswordPolicy())})).apply(this,arguments)}function ws(E,h,v){return Zo.apply(this,arguments)}function Zo(){return(Zo=(0,Y.A)(function*(E,h,v){if((0,Ae.xZ)(E.app))return Promise.reject(bt(E));const b=Ln(E),ot=yield _o(b,{returnSecureToken:!0,email:h,password:v,clientType:"CLIENT_TYPE_WEB"},"signUpPassword",Yo).catch(un=>{throw"auth/password-does-not-meet-requirements"===un.code&&Ll(E),un}),Ft=yield zi._fromIdTokenResponse(b,"signIn",ot);return yield b._updateCurrentUser(Ft.user),Ft})).apply(this,arguments)}function Ss(E,h,v){return(0,Ae.xZ)(E.app)?Promise.reject(bt(E)):function Bs(E,h){return Oa.apply(this,arguments)}((0,se.Ku)(E),Lr.credential(h,v)).catch(function(){var b=(0,Y.A)(function*(J){throw"auth/password-does-not-meet-requirements"===J.code&&Ll(E),J});return function(J){return b.apply(this,arguments)}}())}function Ui(E,h,v,b){return(0,se.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 Gr(){const E=(0,se.ZQ)();return sr(E)||Bt(E)}()&&function Z(){try{return!(!window||window===window.top)}catch{return!1}}(),this.fallbackToPolling=V(),this._shouldAllowMigration=!0}forAllChangedKeys(v){for(const b of Object.keys(this.listeners)){const J=this.storage.getItem(b),_e=this.localCache[b];J!==_e&&v(b,_e,J)}}onStorageEvent(v,b=!1){if(!v.key)return void this.forAllChangedKeys((Ft,un,Mn)=>{this.notifyListeners(Ft,Mn)});const J=v.key;if(b?this.detachListener():this.stopPolling(),this.safariLocalStorageNotSynced){const Ft=this.storage.getItem(J);if(v.newValue!==Ft)null!==v.newValue?this.storage.setItem(J,v.newValue):this.storage.removeItem(J);else if(this.localCache[J]===v.newValue&&!b)return}const _e=()=>{const Ft=this.storage.getItem(J);!b&&this.localCache[J]===Ft||this.notifyListeners(J,Ft)},ot=this.storage.getItem(J);!function R(){return(0,se.lT)()&&10===document.documentMode}()||ot===v.newValue||v.newValue===v.oldValue?_e():setTimeout(_e,10)}notifyListeners(v,b){this.localCache[v]=b;const J=this.listeners[v];if(J)for(const _e of Array.from(J))_e(b&&JSON.parse(b))}startPolling(){this.stopPolling(),this.pollTimer=setInterval(()=>{this.forAllChangedKeys((v,b,J)=>{this.onStorageEvent(new StorageEvent("storage",{key:v,oldValue:b,newValue:J}),!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 J=()=>super._set,_e=this;return(0,Y.A)(function*(){yield J().call(_e,v,b),_e.localCache[v]=JSON.stringify(b)})()}_get(v){var b=()=>super._get,J=this;return(0,Y.A)(function*(){const _e=yield b().call(J,v);return J.localCache[v]=JSON.stringify(_e),_e})()}_remove(v){var b=()=>super._remove,J=this;return(0,Y.A)(function*(){yield b().call(J,v),delete J.localCache[v]})()}}return E.type="LOCAL",E})(),Bo=(()=>{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(_e=>_e.isListeningto(v));if(b)return b;const J=new E(v);return this.receivers.push(J),J}isListeningto(v){return this.eventTarget===v}handleEvent(v){var b=this;return(0,Y.A)(function*(){const J=v,{eventId:_e,eventType:ot,data:Ft}=J.data,un=b.handlersMap[ot];if(null==un||!un.size)return;J.ports[0].postMessage({status:"ack",eventId:_e,eventType:ot});const Mn=Array.from(un).map(function(){var Qr=(0,Y.A)(function*(Fo){return Fo(J.origin,Ft)});return function(Fo){return Qr.apply(this,arguments)}}()),er=yield function ya(E){return Promise.all(E.map(function(){var h=(0,Y.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)}}()))}(Mn);J.ports[0].postMessage({status:"done",eventId:_e,eventType:ot,response:er})})()}_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 Bi(E="",h=10){let v="";for(let b=0;b{const er=Bi("",20);_e.port1.start();const Qr=setTimeout(()=>{Mn(new Error("unsupported_event"))},b);Ft={messageChannel:_e,onMessage(Fo){const Ji=Fo;if(Ji.data.eventId===er)switch(Ji.data.status){case"ack":clearTimeout(Qr),ot=setTimeout(()=>{Mn(new Error("timeout"))},3e3);break;case"done":clearTimeout(ot),un(Ji.data.response);break;default:clearTimeout(Qr),clearTimeout(ot),Mn(new Error("invalid_response"))}}},J.handlers.add(Ft),_e.port1.addEventListener("message",Ft.onMessage),J.target.postMessage({eventType:h,eventId:er,data:v},[_e.port2])}).finally(()=>{Ft&&J.removeMessageHandler(Ft)})})()}}function Wr(){return window}function zl(){return typeof Wr().WorkerGlobalScope<"u"&&"function"==typeof Wr().importScripts}function Ia(){return(Ia=(0,Y.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(J){v(J)}}),E.addEventListener("success",(0,Y.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,Y.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,Y.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,Y.A)(function*(){return v.db||(v.db=yield mc()),v.db})()}_withRetries(v){var b=this;return(0,Y.A)(function*(){let J=0;for(;;)try{const _e=yield b._openDb();return yield v(_e)}catch(_e){if(J++>3)throw _e;b.db&&(b.db.close(),b.db=void 0)}})()}initializeServiceWorkerMessaging(){var v=this;return(0,Y.A)(function*(){return zl()?v.initializeReceiver():v.initializeSender()})()}initializeReceiver(){var v=this;return(0,Y.A)(function*(){v.receiver=Ks._getInstance(function Hl(){return zl()?self:null}()),v.receiver._subscribe("keyChanged",function(){var b=(0,Y.A)(function*(J,_e){return{keyProcessed:(yield v._poll()).includes(_e.key)}});return function(J,_e){return b.apply(this,arguments)}}()),v.receiver._subscribe("ping",function(){var b=(0,Y.A)(function*(J,_e){return["keyChanged"]});return function(J,_e){return b.apply(this,arguments)}}())})()}initializeSender(){var v=this;return(0,Y.A)(function*(){var b,J;if(v.activeServiceWorker=yield function As(){return Ia.apply(this,arguments)}(),!v.activeServiceWorker)return;v.sender=new Su(v.activeServiceWorker);const _e=yield v.sender._send("ping",{},800);_e&&null!==(b=_e[0])&&void 0!==b&&b.fulfilled&&null!==(J=_e[0])&&void 0!==J&&J.value.includes("keyChanged")&&(v.serviceWorkerReceiverAvailable=!0)})()}notifyServiceWorker(v){var b=this;return(0,Y.A)(function*(){if(b.sender&&b.activeServiceWorker&&function cs(){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,Y.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,Y.A)(function*(){b.pendingWrites++;try{yield v()}finally{b.pendingWrites--}})()}_set(v,b){var J=this;return(0,Y.A)(function*(){return J._withPendingWrite((0,Y.A)(function*(){return yield J._withRetries(_e=>qs(_e,v,b)),J.localCache[v]=b,J.notifyServiceWorker(v)}))})()}_get(v){var b=this;return(0,Y.A)(function*(){const J=yield b._withRetries(_e=>function Ad(E,h){return Cd.apply(this,arguments)}(_e,v));return b.localCache[v]=J,J})()}_remove(v){var b=this;return(0,Y.A)(function*(){return b._withPendingWrite((0,Y.A)(function*(){return yield b._withRetries(J=>Td(J,v)),delete b.localCache[v],b.notifyServiceWorker(v)}))})()}_poll(){var v=this;return(0,Y.A)(function*(){const b=yield v._withRetries(ot=>{const Ft=ja(ot,!1).getAll();return new Ba(Ft).toPromise()});if(!b)return[];if(0!==v.pendingWrites)return[];const J=[],_e=new Set;if(0!==b.length)for(const{fbase_key:ot,value:Ft}of b)_e.add(ot),JSON.stringify(v.localCache[ot])!==JSON.stringify(Ft)&&(v.notifyListeners(ot,Ft),J.push(ot));for(const ot of Object.keys(v.localCache))v.localCache[ot]&&!_e.has(ot)&&(v.notifyListeners(ot,null),J.push(ot));return J})()}notifyListeners(v,b){this.localCache[v]=b;const J=this.listeners[v];if(J)for(const _e of Array.from(J))_e(b)}startPolling(){var v=this;this.stopPolling(),this.pollTimer=setInterval((0,Y.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})();xr("rcb"),new oe(3e4,6e4);class Mo extends To{constructor(h){super("custom","custom"),this.params=h}_getIdTokenResponse(h){return Cn(h,this._buildIdpRequest())}_linkToIdToken(h,v){return Cn(h,this._buildIdpRequest(v))}_getReauthenticationResolver(h){return Cn(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 Mo(E),E.bypassAuthState)}function vc(E){const{auth:h,user:v}=E;return It(v,h,"internal-error"),function eo(E,h){return Jo.apply(this,arguments)}(v,new Mo(E),E.bypassAuthState)}function _c(E){return Cs.apply(this,arguments)}function Cs(){return(Cs=(0,Y.A)(function*(E){const{auth:h,user:v}=E;return It(v,h,"internal-error"),function Fn(E,h){return lr.apply(this,arguments)}(v,new Mo(E),E.bypassAuthState)})).apply(this,arguments)}class yc{constructor(h,v,b,J,_e=!1){this.auth=h,this.resolver=b,this.user=J,this.bypassAuthState=_e,this.pendingPromise=null,this.eventManager=null,this.filter=Array.isArray(v)?v:[v]}execute(){var h=this;return new Promise(function(){var v=(0,Y.A)(function*(b,J){h.pendingPromise={resolve:b,reject:J};try{h.eventManager=yield h.resolver._initialize(h.auth),yield h.onExecution(),h.eventManager.registerConsumer(h)}catch(_e){h.reject(_e)}});return function(b,J){return v.apply(this,arguments)}}())}onAuthEvent(h){var v=this;return(0,Y.A)(function*(){const{urlResponse:b,sessionId:J,postBody:_e,tenantId:ot,error:Ft,type:un}=h;if(Ft)return void v.reject(Ft);const Mn={auth:v.auth,requestUri:b,sessionId:J,tenantId:ot||void 0,postBody:_e||void 0,user:v.user,bypassAuthState:v.bypassAuthState};try{v.resolve(yield v.getIdpTask(un)(Mn))}catch(er){v.reject(er)}})()}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:Dt(this.auth,"internal-error")}}resolve(h){nn(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.resolve(h),this.unregisterAndCleanUp()}reject(h){nn(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 oe(2e3,1e4);const qn="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,Y.A)(function*(){let b=pl.get(v.auth._key());if(!b){try{const _e=(yield function Ic(E,h){return Ec.apply(this,arguments)}(v.resolver,v.auth))?yield h().call(v):null;b=()=>Promise.resolve(_e)}catch(J){b=()=>Promise.reject(J)}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,Y.A)(function*(){if("signInViaRedirect"===h.type)return v().call(b,h);if("unknown"!==h.type){if(h.eventId){const J=yield b.auth._redirectUserForId(h.eventId);if(J)return b.user=J,v().call(b,h);b.resolve(null)}}else b.resolve(null)})()}onExecution(){return(0,Y.A)(function*(){})()}cleanUp(){}}function Ec(){return(Ec=(0,Y.A)(function*(E,h){const v=function ml(E){return mi(qn,E.config.apiKey,E.name)}(h),b=function qh(E){return On(E._redirectPersistence)}(E);if(!(yield b._isAvailable()))return!1;const J="true"===(yield b._get(v));return yield b._remove(v),J})).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,Y.A)(function*(E,h,v=!1){if((0,Ae.xZ)(E.app))return Promise.reject(bt(E));const b=Ln(E),J=function ds(E,h){return h?On(h):(It(E._popupRedirectResolver,E,"argument-error"),E._popupRedirectResolver)}(b,h),ot=yield new wd(b,J,v).execute();return ot&&!v&&(delete ot.user._redirectEventId,yield b._persistUserIfCurrent(ot.user),yield b._setRedirectUser(null,h)),ot})).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 J=(null===(b=h.error.code)||void 0===b?void 0:b.split("auth/")[1])||"internal-error";v.onError(Ot(this.auth,J))}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,Y.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}$/,Eo=/^https?/;function Ou(){return Ou=(0,Y.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{}Dt(E,"unauthorized-domain")}),Ou.apply(this,arguments)}function xd(E){const h=ht(),{protocol:v,hostname:b}=new URL(h);if(E.startsWith("chrome-extension://")){const ot=new URL(E);return""===ot.hostname&&""===b?"chrome-extension:"===v&&E.replace("chrome-extension://","")===h.replace("chrome-extension://",""):"chrome-extension:"===v&&ot.hostname===b}if(!Eo.test(v))return!1;if(Md.test(E))return b===E;const J=E.replace(/\./g,"\\.");return new RegExp("^(.+\\."+J+"|"+J+")$","i").test(b)}const Dc=new oe(3e4,6e4);function bc(){const E=Wr().___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,J,_e;function ot(){bc(),gapi.load("gapi.iframes",{callback:()=>{h(gapi.iframes.getContext())},ontimeout:()=>{bc(),v(Ot(E,"network-request-failed"))},timeout:Dc.get()})}if(null!==(J=null===(b=Wr().gapi)||void 0===b?void 0:b.iframes)&&void 0!==J&&J.Iframe)h(gapi.iframes.getContext());else{if(null===(_e=Wr().gapi)||void 0===_e||!_e.load){const Ft=xr("iframefcb");return Wr()[Ft]=()=>{gapi.load?ot():v(Ot(E,"network-request-failed"))},pr(`${function Br(){return dr.gapiScript}()}?onload=${Ft}`).catch(un=>v(un))}ot()}}).catch(h=>{throw Da=null,h})}(E),Da}(E),v=Wr().gapi;return It(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 J=(0,Y.A)(function*(_e,ot){yield b.restyle({setHideOnLeave:!1});const Ft=Ot(E,"network-request-failed"),un=Wr().setTimeout(()=>{ot(Ft)},Jh.get());function Mn(){Wr().clearTimeout(un),_e(b)}b.ping(Mn).then(Mn,()=>{ot(Ft)})});return function(_e,ot){return J.apply(this,arguments)}}()))}),wi.apply(this,arguments)}const rg={location:"yes",resizable:"yes",statusbar:"yes",toolbar:"no"};class Vu{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,J,_e){return ia.apply(this,arguments)}function ia(){return(ia=(0,Y.A)(function*(E,h,v,b,J,_e){It(E.config.authDomain,E,"auth-domain-config-required"),It(E.config.apiKey,E,"invalid-api-key");const ot={apiKey:E.config.apiKey,appName:E.name,authType:v,redirectUrl:b,v:Ae.MF,eventId:J};if(h instanceof oo){h.setDefaultLanguage(E.languageCode),ot.providerId=h.providerId||"",(0,se.Im)(h.getCustomParameters())||(ot.customParameters=JSON.stringify(h.getCustomParameters()));for(const[er,Qr]of Object.entries(_e||{}))ot[er]=Qr}if(h instanceof Us){const er=h.getScopes().filter(Qr=>""!==Qr);er.length>0&&(ot.scopes=er.join(","))}E.tenantId&&(ot.tid=E.tenantId);const Ft=ot;for(const er of Object.keys(Ft))void 0===Ft[er]&&delete Ft[er];const un=yield E._getAppCheckToken(),Mn=un?`#${Sc}=${encodeURIComponent(un)}`:"";return`${function Rc({config:E}){return E.emulator?ae(E,$u):`https://${E.authDomain}/${og}`}(E)}?${(0,se.Am)(Ft).slice(1)}${Mn}`})).apply(this,arguments)}const vl="webStorageSupport",_l=class tf{constructor(){this.eventManagers={},this.iframes={},this.originValidationPromises={},this._redirectPersistence=Bo,this._completeRedirectFn=Nu,this._overrideRedirectResult=gl}_openPopup(h,v,b,J){var _e=this;return(0,Y.A)(function*(){var ot;nn(null===(ot=_e.eventManagers[h._key()])||void 0===ot?void 0:ot.manager,"_initialize() not called before _openPopup()");const Ft=yield ra(h,v,b,ht(),J);return function Uu(E,h,v,b=500,J=600){const _e=Math.max((window.screen.availHeight-J)/2,0).toString(),ot=Math.max((window.screen.availWidth-b)/2,0).toString();let Ft="";const un=Object.assign(Object.assign({},rg),{width:b.toString(),height:J.toString(),top:_e,left:ot}),Mn=(0,se.ZQ)().toLowerCase();v&&(Ft=Fi(Mn)?"_blank":v),Ti(Mn)&&(h=h||"http://localhost",un.scrollbars="yes");const er=Object.entries(un).reduce((Fo,[Ji,sa])=>`${Fo}${Ji}=${sa},`,"");if(function ce(E=(0,se.ZQ)()){var h;return Bt(E)&&!(null===(h=window.navigator)||void 0===h||!h.standalone)}(Mn)&&"_self"!==Ft)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||"",Ft),new Vu(null);const Qr=window.open(h||"",Ft,er);It(Qr,E,"popup-blocked");try{Qr.focus()}catch{}return new Vu(Qr)}(h,Ft,Bi())})()}_openRedirect(h,v,b,J){var _e=this;return(0,Y.A)(function*(){return yield _e._originValidation(h),function yo(E){Wr().location.href=E}(yield ra(h,v,b,ht(),J)),new Promise(()=>{})})()}_initialize(h){const v=h._key();if(this.eventManagers[v]){const{manager:J,promise:_e}=this.eventManagers[v];return J?Promise.resolve(J):(nn(_e,"If manager is not set, promise should be"),_e)}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,Y.A)(function*(){const b=yield function ba(E){return wi.apply(this,arguments)}(h),J=new ta(h);return b.register("authEvent",_e=>(It(null==_e?void 0:_e.authEvent,h,"invalid-auth-event"),{status:J.onEvent(_e.authEvent)?"ACK":"ERROR"}),gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER),v.eventManagers[h._key()]={manager:J},v.iframes[h._key()]=b,J})()}_isIframeWebStorageSupported(h,v){this.iframes[h._key()].send(vl,{type:vl},J=>{var _e;const ot=null===(_e=null==J?void 0:J[0])||void 0===_e?void 0:_e[vl];void 0!==ot&&v(!!ot),Dt(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 V()||sr()||Bt()}};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,Y.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(){It(this.auth._initializationPromise,"dependent-sdk-initialized-before-auth")}updateProactiveRefresh(){this.internalListeners.size>0?this.auth._startProactiveRefresh():this.auth._stopProactiveRefresh()}}const Zl=(0,se.XA)("authIdTokenMaxAge")||300;let rf=null;const sf=E=>function(){var h=(0,Y.A)(function*(v){const b=v&&(yield v.getIdTokenResult()),J=b&&((new Date).getTime()-Date.parse(b.issuedAtTime))/1e3;if(J&&J>Zl)return;const _e=null==b?void 0:b.token;rf!==_e&&(rf=_e,yield fetch(E,{method:_e?"POST":"DELETE",headers:_e?{Authorization:`Bearer ${_e}`}:{}}))});return function(v){return h.apply(this,arguments)}}();function Ld(E=(0,Ae.Sx)()){const h=(0,Ae.j6)(E,"auth");if(h.isInitialized())return h.getImmediate();const v=function Wo(E,h){const v=(0,Ae.j6)(E,"auth");if(v.isInitialized()){const J=v.getImmediate(),_e=v.getOptions();if((0,se.bD)(_e,null!=h?h:{}))return J;Dt(J,"already-initialized")}return v.initialize({options:h})}(E,{popupRedirectResolver:_l,persistence:[Kh,$a,Bo]}),b=(0,se.XA)("authTokenSyncURL");if(b&&"boolean"==typeof isSecureContext&&isSecureContext){const _e=new URL(b,location.origin);if(location.origin===_e.origin){const ot=sf(_e.toString());(function ti(E,h,v){(0,se.Ku)(E).beforeAuthStateChanged(h,v)})(v,ot,()=>ot(v.currentUser)),Ui(v,Ft=>ot(Ft))}}const J=(0,se.Tj)("auth");return J&&function ir(E,h,v){const b=Ln(E);It(b._canInitEmulator,b,"emulator-config-failed"),It(/^https?:\/\//.test(h),b,"invalid-emulator-scheme");const J=!(null==v||!v.disableWarnings),_e=jr(h),{host:ot,port:Ft}=function vi(E){const h=jr(E),v=/(\/\/)?([^?#/]+)/.exec(E.substr(h.length));if(!v)return{host:"",port:null};const b=v[2].split("@").pop()||"",J=/^(\[[^\]]+\])(:|$)/.exec(b);if(J){const _e=J[1];return{host:_e,port:Gn(b.substr(_e.length+1))}}{const[_e,ot]=b.split(":");return{host:_e,port:Gn(ot)}}}(h);b.config.emulator={url:`${_e}//${ot}${null===Ft?"":`:${Ft}`}/`},b.settings.appVerificationDisabledForTesting=!0,b.emulatorConfig=Object.freeze({host:ot,port:Ft,protocol:_e.replace(":",""),options:Object.freeze({disableWarnings:J})}),J||function Lo(){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://${J}`),v}(function kr(E){dr=E})({loadJS:E=>new Promise((h,v)=>{const b=document.createElement("script");b.setAttribute("src",E),b.onload=h,b.onerror=J=>{const _e=Ot("internal-error");_e.customData=J,v(_e)},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,Ae.om)(new be.uA("auth",(h,{options:v})=>{const b=h.getProvider("app").getImmediate(),J=h.getProvider("heartbeat"),_e=h.getProvider("app-check-internal"),{apiKey:ot,authDomain:Ft}=b.options;It(ot&&!ot.includes(":"),"invalid-api-key",{appName:b.name});const un={apiKey:ot,authDomain:Ft,clientPlatform:E,apiHost:"identitytoolkit.googleapis.com",tokenApiHost:"securetoken.googleapis.com",apiScheme:"https",sdkClientVersion:U(E)},Mn=new Bn(b,J,_e,un);return function ri(E,h){const v=(null==h?void 0:h.persistence)||[],b=(Array.isArray(v)?v:[v]).map(On);null!=h&&h.errorMap&&E._updateErrorMap(h.errorMap),E._initializeWithPersistence(b,null==h?void 0:h.popupRedirectResolver)}(Mn,v),Mn},"PUBLIC").setInstantiationMode("EXPLICIT").setInstanceCreatedCallback((h,v,b)=>{h.getProvider("auth-internal").initialize()})),(0,Ae.om)(new be.uA("auth-internal",h=>{const v=Ln(h.getProvider("auth").getImmediate());return new wa(v)},"PRIVATE").setInstantiationMode("EXPLICIT")),(0,Ae.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,Ae.KO)(Fd,"1.7.4","esm2017")}("Browser");var Ds=j(1985);function zu(E){return new Ds.c(function(h){return{unsubscribe:Ui(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 c.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 c.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 c.Xx1,eu],ve.XU]};function Cl(E,...h){return(0,Fe.KO)("angularfire",g.xv.full,"auth"),(0,c.EmA)([sg,lf,{provide:eu,useFactory:af(E),multi:!0,deps:[c.SKi,c.zZn,g.u0,ve.gL,[new c.Xx1,g.Jv],...h]}])}const Fc=(0,g.S3)(zu,!0),Hu=(0,g.S3)(ws,!0),ag=(0,g.S3)(Ld,!0),qu=(0,g.S3)(Ss,!0)},4262:(Tn,Tt,j)=>{"use strict";j.d(Tt,{_7:()=>vh,rJ:()=>g0,kd:()=>m0,H9:()=>sm,x7:()=>lm,GG:()=>r_,aU:()=>um,hV:()=>Jv,BN:()=>S0,mZ:()=>R0});var Be,Le,g=j(3586),c=j(4438),ve=j(7440),Fe=j(8737),Y=j(2214),Ae=j(467),se=j(7852),Je=j(1362),et=j(8041),be=j(1076),Ee=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Ve={};(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(mt,He,it){it||(it=0);var _t=Array(16);if("string"==typeof He)for(var Ct=0;16>Ct;++Ct)_t[Ct]=He.charCodeAt(it++)|He.charCodeAt(it++)<<8|He.charCodeAt(it++)<<16|He.charCodeAt(it++)<<24;else for(Ct=0;16>Ct;++Ct)_t[Ct]=He[it++]|He[it++]<<8|He[it++]<<16|He[it++]<<24;var Lt=mt.g[3],tt=(He=mt.g[0])+(Lt^(it=mt.g[1])&((Ct=mt.g[2])^Lt))+_t[0]+3614090360&4294967295;tt=(it=(Ct=(Lt=(He=(it=(Ct=(Lt=(He=(it=(Ct=(Lt=(He=(it=(Ct=(Lt=(He=(it=(Ct=(Lt=(He=(it=(Ct=(Lt=(He=(it=(Ct=(Lt=(He=(it=(Ct=(Lt=(He=(it=(Ct=(Lt=(He=(it=(Ct=(Lt=(He=(it=(Ct=(Lt=(He=(it=(Ct=(Lt=(He=(it=(Ct=(Lt=(He=(it=(Ct=(Lt=(He=(it=(Ct=(Lt=(He=it+(tt<<7&4294967295|tt>>>25))+((tt=Lt+(Ct^He&(it^Ct))+_t[1]+3905402710&4294967295)<<12&4294967295|tt>>>20))+((tt=Ct+(it^Lt&(He^it))+_t[2]+606105819&4294967295)<<17&4294967295|tt>>>15))+((tt=it+(He^Ct&(Lt^He))+_t[3]+3250441966&4294967295)<<22&4294967295|tt>>>10))+((tt=He+(Lt^it&(Ct^Lt))+_t[4]+4118548399&4294967295)<<7&4294967295|tt>>>25))+((tt=Lt+(Ct^He&(it^Ct))+_t[5]+1200080426&4294967295)<<12&4294967295|tt>>>20))+((tt=Ct+(it^Lt&(He^it))+_t[6]+2821735955&4294967295)<<17&4294967295|tt>>>15))+((tt=it+(He^Ct&(Lt^He))+_t[7]+4249261313&4294967295)<<22&4294967295|tt>>>10))+((tt=He+(Lt^it&(Ct^Lt))+_t[8]+1770035416&4294967295)<<7&4294967295|tt>>>25))+((tt=Lt+(Ct^He&(it^Ct))+_t[9]+2336552879&4294967295)<<12&4294967295|tt>>>20))+((tt=Ct+(it^Lt&(He^it))+_t[10]+4294925233&4294967295)<<17&4294967295|tt>>>15))+((tt=it+(He^Ct&(Lt^He))+_t[11]+2304563134&4294967295)<<22&4294967295|tt>>>10))+((tt=He+(Lt^it&(Ct^Lt))+_t[12]+1804603682&4294967295)<<7&4294967295|tt>>>25))+((tt=Lt+(Ct^He&(it^Ct))+_t[13]+4254626195&4294967295)<<12&4294967295|tt>>>20))+((tt=Ct+(it^Lt&(He^it))+_t[14]+2792965006&4294967295)<<17&4294967295|tt>>>15))+((tt=it+(He^Ct&(Lt^He))+_t[15]+1236535329&4294967295)<<22&4294967295|tt>>>10))+((tt=He+(Ct^Lt&(it^Ct))+_t[1]+4129170786&4294967295)<<5&4294967295|tt>>>27))+((tt=Lt+(it^Ct&(He^it))+_t[6]+3225465664&4294967295)<<9&4294967295|tt>>>23))+((tt=Ct+(He^it&(Lt^He))+_t[11]+643717713&4294967295)<<14&4294967295|tt>>>18))+((tt=it+(Lt^He&(Ct^Lt))+_t[0]+3921069994&4294967295)<<20&4294967295|tt>>>12))+((tt=He+(Ct^Lt&(it^Ct))+_t[5]+3593408605&4294967295)<<5&4294967295|tt>>>27))+((tt=Lt+(it^Ct&(He^it))+_t[10]+38016083&4294967295)<<9&4294967295|tt>>>23))+((tt=Ct+(He^it&(Lt^He))+_t[15]+3634488961&4294967295)<<14&4294967295|tt>>>18))+((tt=it+(Lt^He&(Ct^Lt))+_t[4]+3889429448&4294967295)<<20&4294967295|tt>>>12))+((tt=He+(Ct^Lt&(it^Ct))+_t[9]+568446438&4294967295)<<5&4294967295|tt>>>27))+((tt=Lt+(it^Ct&(He^it))+_t[14]+3275163606&4294967295)<<9&4294967295|tt>>>23))+((tt=Ct+(He^it&(Lt^He))+_t[3]+4107603335&4294967295)<<14&4294967295|tt>>>18))+((tt=it+(Lt^He&(Ct^Lt))+_t[8]+1163531501&4294967295)<<20&4294967295|tt>>>12))+((tt=He+(Ct^Lt&(it^Ct))+_t[13]+2850285829&4294967295)<<5&4294967295|tt>>>27))+((tt=Lt+(it^Ct&(He^it))+_t[2]+4243563512&4294967295)<<9&4294967295|tt>>>23))+((tt=Ct+(He^it&(Lt^He))+_t[7]+1735328473&4294967295)<<14&4294967295|tt>>>18))+((tt=it+(Lt^He&(Ct^Lt))+_t[12]+2368359562&4294967295)<<20&4294967295|tt>>>12))+((tt=He+(it^Ct^Lt)+_t[5]+4294588738&4294967295)<<4&4294967295|tt>>>28))+((tt=Lt+(He^it^Ct)+_t[8]+2272392833&4294967295)<<11&4294967295|tt>>>21))+((tt=Ct+(Lt^He^it)+_t[11]+1839030562&4294967295)<<16&4294967295|tt>>>16))+((tt=it+(Ct^Lt^He)+_t[14]+4259657740&4294967295)<<23&4294967295|tt>>>9))+((tt=He+(it^Ct^Lt)+_t[1]+2763975236&4294967295)<<4&4294967295|tt>>>28))+((tt=Lt+(He^it^Ct)+_t[4]+1272893353&4294967295)<<11&4294967295|tt>>>21))+((tt=Ct+(Lt^He^it)+_t[7]+4139469664&4294967295)<<16&4294967295|tt>>>16))+((tt=it+(Ct^Lt^He)+_t[10]+3200236656&4294967295)<<23&4294967295|tt>>>9))+((tt=He+(it^Ct^Lt)+_t[13]+681279174&4294967295)<<4&4294967295|tt>>>28))+((tt=Lt+(He^it^Ct)+_t[0]+3936430074&4294967295)<<11&4294967295|tt>>>21))+((tt=Ct+(Lt^He^it)+_t[3]+3572445317&4294967295)<<16&4294967295|tt>>>16))+((tt=it+(Ct^Lt^He)+_t[6]+76029189&4294967295)<<23&4294967295|tt>>>9))+((tt=He+(it^Ct^Lt)+_t[9]+3654602809&4294967295)<<4&4294967295|tt>>>28))+((tt=Lt+(He^it^Ct)+_t[12]+3873151461&4294967295)<<11&4294967295|tt>>>21))+((tt=Ct+(Lt^He^it)+_t[15]+530742520&4294967295)<<16&4294967295|tt>>>16))+((tt=it+(Ct^Lt^He)+_t[2]+3299628645&4294967295)<<23&4294967295|tt>>>9))+((tt=He+(Ct^(it|~Lt))+_t[0]+4096336452&4294967295)<<6&4294967295|tt>>>26))+((tt=Lt+(it^(He|~Ct))+_t[7]+1126891415&4294967295)<<10&4294967295|tt>>>22))+((tt=Ct+(He^(Lt|~it))+_t[14]+2878612391&4294967295)<<15&4294967295|tt>>>17))+((tt=it+(Lt^(Ct|~He))+_t[5]+4237533241&4294967295)<<21&4294967295|tt>>>11))+((tt=He+(Ct^(it|~Lt))+_t[12]+1700485571&4294967295)<<6&4294967295|tt>>>26))+((tt=Lt+(it^(He|~Ct))+_t[3]+2399980690&4294967295)<<10&4294967295|tt>>>22))+((tt=Ct+(He^(Lt|~it))+_t[10]+4293915773&4294967295)<<15&4294967295|tt>>>17))+((tt=it+(Lt^(Ct|~He))+_t[1]+2240044497&4294967295)<<21&4294967295|tt>>>11))+((tt=He+(Ct^(it|~Lt))+_t[8]+1873313359&4294967295)<<6&4294967295|tt>>>26))+((tt=Lt+(it^(He|~Ct))+_t[15]+4264355552&4294967295)<<10&4294967295|tt>>>22))+((tt=Ct+(He^(Lt|~it))+_t[6]+2734768916&4294967295)<<15&4294967295|tt>>>17))+((tt=it+(Lt^(Ct|~He))+_t[13]+1309151649&4294967295)<<21&4294967295|tt>>>11))+((Lt=(He=it+((tt=He+(Ct^(it|~Lt))+_t[4]+4149444226&4294967295)<<6&4294967295|tt>>>26))+((tt=Lt+(it^(He|~Ct))+_t[11]+3174756917&4294967295)<<10&4294967295|tt>>>22))^((Ct=Lt+((tt=Ct+(He^(Lt|~it))+_t[2]+718787259&4294967295)<<15&4294967295|tt>>>17))|~He))+_t[9]+3951481745&4294967295,mt.g[0]=mt.g[0]+He&4294967295,mt.g[1]=mt.g[1]+(Ct+(tt<<21&4294967295|tt>>>11))&4294967295,mt.g[2]=mt.g[2]+Ct&4294967295,mt.g[3]=mt.g[3]+Lt&4294967295}function _(mt,He){this.h=He;for(var it=[],_t=!0,Ct=mt.length-1;0<=Ct;Ct--){var Lt=0|mt[Ct];_t&&Lt==He||(it[Ct]=Lt,_t=!1)}this.g=it}(function n(mt,He){function it(){}it.prototype=He.prototype,mt.D=He.prototype,mt.prototype=new it,mt.prototype.constructor=mt,mt.C=function(_t,Ct,Lt){for(var tt=Array(arguments.length-2),Pl=2;Plthis.h?this.blockSize:2*this.blockSize)-this.h);mt[0]=128;for(var He=1;HeHe;++He)for(var _t=0;32>_t;_t+=8)mt[it++]=this.g[He]>>>_t&255;return mt};var w={};function O(mt){return-128<=mt&&128>mt?function f(mt,He){var it=w;return Object.prototype.hasOwnProperty.call(it,mt)?it[mt]:it[mt]=He(mt)}(mt,function(He){return new _([0|He],0>He?-1:0)}):new _([0|mt],0>mt?-1:0)}function W(mt){if(isNaN(mt)||!isFinite(mt))return Me;if(0>mt)return hn(W(-mt));for(var He=[],it=1,_t=0;mt>=it;_t++)He[_t]=mt/it|0,it*=4294967296;return new _(He,0)}var Me=O(0),qe=O(1),xt=O(16777216);function an(mt){if(0!=mt.h)return!1;for(var He=0;He>>16,mt[He]&=65535,He++}function tr(mt,He){this.g=mt,this.h=He}function Fr(mt,He){if(an(He))throw Error("division by zero");if(an(mt))return new tr(Me,Me);if(In(mt))return He=Fr(hn(mt),He),new tr(hn(He.g),hn(He.h));if(In(He))return He=Fr(mt,hn(He)),new tr(hn(He.g),He.h);if(30=_t.l(mt);)it=Si(it),_t=Si(_t);var Ct=Yr(it,1),Lt=Yr(_t,1);for(_t=Yr(_t,2),it=Yr(it,2);!an(_t);){var tt=Lt.add(_t);0>=tt.l(mt)&&(Ct=Ct.add(it),Lt=tt),_t=Yr(_t,1),it=Yr(it,1)}return He=Wn(mt,Ct.j(He)),new tr(Ct,He)}for(Ct=Me;0<=mt.l(He);){for(it=Math.max(1,Math.floor(mt.m()/He.m())),_t=48>=(_t=Math.ceil(Math.log(it)/Math.LN2))?1:Math.pow(2,_t-48),tt=(Lt=W(it)).j(He);In(tt)||0>>31;return new _(it,mt.h)}function Yr(mt,He){var it=He>>5;He%=32;for(var _t=mt.g.length-it,Ct=[],Lt=0;Lt<_t;Lt++)Ct[Lt]=0>>He|mt.i(Lt+it+1)<<32-He:mt.i(Lt+it);return new _(Ct,mt.h)}(l=_.prototype).m=function(){if(In(this))return-hn(this).m();for(var mt=0,He=1,it=0;it(mt=mt||10)||36>>0).toString(mt);if(an(it=Ct))return Lt+_t;for(;6>Lt.length;)Lt="0"+Lt;_t=Lt+_t}},l.i=function(mt){return 0>mt?0:mt>>16)+(this.i(Ct)>>>16)+(mt.i(Ct)>>>16);_t=tt>>>16,it[Ct]=(tt&=65535)<<16|(Lt&=65535)}return new _(it,-2147483648&it[it.length-1]?-1:0)},l.j=function(mt){if(an(this)||an(mt))return Me;if(In(this))return In(mt)?hn(this).j(hn(mt)):hn(hn(this).j(mt));if(In(mt))return hn(this.j(hn(mt)));if(0>this.l(xt)&&0>mt.l(xt))return W(this.m()*mt.m());for(var He=this.g.length+mt.g.length,it=[],_t=0;_t<2*He;_t++)it[_t]=0;for(_t=0;_t>>16,tt=65535&this.i(_t),Pl=mt.i(Ct)>>>16,ac=65535&mt.i(Ct);it[2*_t+2*Ct]+=tt*ac,fr(it,2*_t+2*Ct),it[2*_t+2*Ct+1]+=Lt*ac,fr(it,2*_t+2*Ct+1),it[2*_t+2*Ct+1]+=tt*Pl,fr(it,2*_t+2*Ct+1),it[2*_t+2*Ct+2]+=Lt*Pl,fr(it,2*_t+2*Ct+2)}for(_t=0;_t(He=He||10)||36Lt?(Lt=W(Math.pow(He,Lt)),_t=_t.j(Lt).add(W(tt))):_t=(_t=_t.j(it)).add(W(tt))}return _t},Be=Ve.Integer=_}).apply(typeof Ee<"u"?Ee:typeof self<"u"?self:typeof window<"u"?window:{});var ct,lt,Pt,yt,vt,Re,Ge,Xe,Dt,Ze=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},pt={};(function(){var l,n="function"==typeof Object.defineProperties?Object.defineProperty:function(m,F,X){return m==Array.prototype||m==Object.prototype||(m[F]=X.value),m},s=function i(m){m=["object"==typeof globalThis&&globalThis,m,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof Ze&&Ze];for(var F=0;F{throw m},0)}function tt(){var m=hm;let F=null;return m.g&&(F=m.g,m.g=m.g.next,m.g||(m.h=null),F.next=null),F}var ac=new class Wn{constructor(F,X){this.i=F,this.j=X,this.h=0,this.g=null}get(){let F;return 0new M0,m=>m.reset());class M0{constructor(){this.next=this.g=this.h=null}set(F,X){this.h=F,this.g=X,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(F,X){const Ce=ac.get();Ce.set(F,X),this.h?this.h.next=Ce:this.g=Ce,this.h=Ce}},fm=()=>{const m=w.Promise.resolve(void 0);sd=()=>{m.then(P0)}};var P0=()=>{for(var m;m=tt();){try{m.h.call(m.g)}catch(X){Lt(X)}var F=ac;F.j(m),100>F.h&&(F.h++,m.next=F.g,F.g=m)}yh=!1};function gu(){this.s=this.s,this.C=this.C}function mo(m,F){this.type=m,this.g=this.target=F,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,F=Object.defineProperty({},"passive",{get:function(){m=!0}});try{const X=()=>{};w.addEventListener("test",X,F),w.removeEventListener("test",X,F)}catch{}return m}();function Ih(m,F){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 X=this.type=m.type,Ce=m.changedTouches&&m.changedTouches.length?m.changedTouches[0]:null;if(this.target=m.target||m.srcElement,this.g=F,F=m.relatedTarget){if(Si){e:{try{Fr(F.nodeName);var Mt=!0;break e}catch{}Mt=!1}Mt||(F=null)}}else"mouseover"==X?F=m.fromElement:"mouseout"==X&&(F=m.toElement);this.relatedTarget=F,Ce?(this.clientX=void 0!==Ce.clientX?Ce.clientX:Ce.pageX,this.clientY=void 0!==Ce.clientY?Ce.clientY:Ce.pageY,this.screenX=Ce.screenX||0,this.screenY=Ce.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:s_[m.pointerType]||"",this.state=m.state,this.i=m,m.defaultPrevented&&Ih.aa.h.call(this)}}an(Ih,mo);var s_={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),a_=0;function JE(m,F,X,Ce,Mt){this.listener=m,this.proxy=null,this.src=F,this.type=X,this.capture=!!Ce,this.ha=Mt,this.key=++a_,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,F){var X=F.type;if(X in m.g){var Gt,Ce=m.g[X],Mt=Array.prototype.indexOf.call(Ce,F,void 0);(Gt=0<=Mt)&&Array.prototype.splice.call(Ce,Mt,1),Gt&&(ap(F),0==m.g[X].length&&(delete m.g[X],m.h--))}}function gm(m,F,X,Ce){for(var Mt=0;Mt>>0);function Em(m){return"function"==typeof m?m:(m[Ah]||(m[Ah]=function(F){return m.handleEvent(F)}),m[Ah])}function is(){gu.call(this),this.i=new lc(this),this.M=this,this.F=null}function zo(m,F){var X,Ce=m.F;if(Ce)for(X=[];Ce;Ce=Ce.F)X.push(Ce);if(m=m.M,Ce=F.type||F,"string"==typeof F)F=new mo(F,m);else if(F instanceof mo)F.target=F.target||m;else{var Mt=F;_t(F=new mo(Ce,m),Mt)}if(Mt=!0,X)for(var Gt=X.length-1;0<=Gt;Gt--){var Nn=F.g=X[Gt];Mt=Ch(Nn,Ce,!0,F)&&Mt}if(Mt=Ch(Nn=F.g=m,Ce,!0,F)&&Mt,Mt=Ch(Nn,Ce,!1,F)&&Mt,X)for(Gt=0;Gt{m.g=null,m.i&&(m.i=!1,Cm(m))},m.l);const F=m.h;m.h=null,m.m.apply(null,F)}an(is,gu),is.prototype[Eh]=!0,is.prototype.removeEventListener=function(m,F,X,Ce){_m(this,m,F,X,Ce)},is.prototype.N=function(){if(is.aa.N.call(this),this.i){var F,m=this.i;for(F in m.g){for(var X=m.g[F],Ce=0;CeCe.length)){var Mt=Ce[1];if(Array.isArray(Mt)&&!(1>Mt.length)){var Gt=Mt[0];if("noop"!=Gt&&"stop"!=Gt&&"close"!=Gt)for(var Nn=1;NnF.length?Sm:(F=F.slice(Ce,Ce+X),m.C=Ce+X,F))}function wh(m){m.S=Date.now()+m.I,mp(m,m.I)}function mp(m,F){if(null!=m.B)throw Error("WatchDog timer not null");m.B=hp(qe(m.ba,m),F)}function vp(m){m.B&&(w.clearTimeout(m.B),m.B=null)}function Sh(m){0==m.j.G||m.J||W0(m.j,m)}function Iu(m){vp(m);var F=m.M;F&&"function"==typeof F.ma&&F.ma(),m.M=null,Tm(m.U),m.g&&(F=m.g,m.g=null,F.abort(),F.ma())}function Rh(m,F){try{var X=m.j;if(0!=X.G&&(X.g==m||Mm(X.h,m)))if(!m.K&&Mm(X.h,m)&&3==X.G){try{var Ce=X.Da.g.parse(F)}catch{Ce=null}if(Array.isArray(Ce)&&3==Ce.length){var Mt=Ce;if(0==Mt[0]){e:if(!X.u){if(X.g){if(!(X.g.F+3e3Mt[2]&&X.F&&0==X.v&&!X.C&&(X.C=hp(qe(X.Za,X),6e3));if(1>=E_(X.h)&&X.ca){try{X.ca()}catch{}X.ca=void 0}}else Au(X,11)}else if((m.K||X.g==m)&&Lh(X),!fr(F))for(Mt=X.Da.g.parse(F),F=0;Ffs)&&(3!=fs||this.g&&(this.h.h||this.g.oa()||S_(this.g)))){this.J||4!=fs||7==F||cc(),vp(this);var X=this.g.Z();this.X=X;t:if(v_(this)){var Ce=S_(this.g);m="";var Mt=Ce.length,Gt=4==Eu(this.g);if(!this.h.i){if(typeof TextDecoder>"u"){Iu(this),Sh(this);var Nn="";break t}this.h.i=new w.TextDecoder}for(F=0;F=m.j}function E_(m){return m.h?1:m.g?m.g.size:0}function Mm(m,F){return m.h?m.h==F:!!m.g&&m.g.has(F)}function Mh(m,F){m.g?m.g.add(F):m.h=F}function _p(m,F){m.h&&m.h==F?m.h=null:m.g&&m.g.has(F)&&m.g.delete(F)}function Pm(m){if(null!=m.h)return m.i.concat(m.h.D);if(null!=m.g&&0!==m.g.size){let F=m.i;for(const X of m.g.values())F=F.concat(X.D);return F}return In(m.i)}function A_(m,F){if(m.forEach&&"function"==typeof m.forEach)m.forEach(F,void 0);else if(O(m)||"string"==typeof m)Array.prototype.forEach.call(m,F,void 0);else for(var X=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(O(m)||"string"==typeof m){var F=[];m=m.length;for(var X=0;XF)throw Error("Bad port number "+F);m.s=F}else m.s=null}function Om(m,F,X){F instanceof Nh?(m.i=F,function b_(m,F){F&&!m.j&&(xl(m),m.i=null,m.g.forEach(function(X,Ce){var Mt=Ce.toLowerCase();Ce!=Mt&&(km(this,Ce),Fm(this,Mt,X))},m)),m.j=F}(m.i,m.h)):(X||(F=gd(F,ZE)),m.i=new Nh(F,m.h))}function Xi(m,F,X){m.i.set(F,X)}function Ph(m){return Xi(m,"zx",Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^Date.now()).toString(36)),m}function xh(m,F){return m?F?decodeURI(m.replace(/%25/g,"%2525")):decodeURIComponent(m):""}function gd(m,F,X){return"string"==typeof m?(m=encodeURI(m).replace(F,L0),X&&(m=m.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),m):null}function L0(m){return"%"+((m=m.charCodeAt(0))>>4&15).toString(16)+(15&m).toString(16)}dc.prototype.toString=function(){var m=[],F=this.j;F&&m.push(gd(F,yp,!0),":");var X=this.g;return(X||"file"==F)&&(m.push("//"),(F=this.o)&&m.push(gd(F,yp,!0),"@"),m.push(encodeURIComponent(String(X)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),null!=(X=this.s)&&m.push(":",String(X))),(X=this.l)&&(this.g&&"/"!=X.charAt(0)&&m.push("/"),m.push(gd(X,"/"==X.charAt(0)?D_:T_,!0))),(X=this.i.toString())&&m.push("?",X),(X=this.m)&&m.push("#",gd(X,eA)),m.join("")};var yp=/[#\/\?@]/g,T_=/[#\?:]/g,D_=/[#\?]/g,ZE=/[#\?@]/g,eA=/#/g;function Nh(m,F){this.h=this.g=null,this.i=m||null,this.j=!!F}function xl(m){m.g||(m.g=new Map,m.h=0,m.i&&function F0(m,F){if(m){m=m.split("&");for(var X=0;X{}),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;U0(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 F=m.value?m.value:new Uint8Array(0);(F=this.v.decode(F,{stream:!m.done}))&&(this.response=this.responseText+=F)}m.done?Ap(this):Cp(this),3==this.readyState&&U0(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,F){this.u.append(m,F)},l.getResponseHeader=function(m){return this.h&&this.h.get(m.toLowerCase())||""},l.getAllResponseHeaders=function(){if(!this.h)return"";const m=[],F=this.h.entries();for(var X=F.next();!X.done;)m.push((X=X.value)[0]+": "+X[1]),X=F.next();return m.join("\r\n")},Object.defineProperty(Lm.prototype,"withCredentials",{get:function(){return"include"===this.m},set:function(m){this.m=m?"include":"same-origin"}}),an(vo,is);var rA=/^https?$/i,iA=["POST","PUT"];function $0(m,F){m.h=!1,m.g&&(m.j=!0,m.g.abort(),m.j=!1),m.l=F,m.m=5,B0(m),Um(m)}function B0(m){m.A||(m.A=!0,zo(m,"complete"),zo(m,"error"))}function j0(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(zo(m,"readystatechange"),4==Eu(m)){m.h=!1;try{const Nn=m.Z();e:switch(Nn){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var F=!0;break e;default:F=!1}var X;if(!(X=F)){var Ce;if(Ce=0===Nn){var Mt=String(m.D).match(C_)[1]||null;!Mt&&w.self&&w.self.location&&(Mt=w.self.location.protocol.slice(0,-1)),Ce=!rA.test(Mt?Mt.toLowerCase():"")}X=Ce}if(X)zo(m,"complete"),zo(m,"success");else{m.m=6;try{var Gt=2{}:null;m.g=null,m.v=null,F||zo(m,"ready");try{X.onreadystatechange=Ce}catch{}}}function z0(m){m.I&&(w.clearTimeout(m.I),m.I=null)}function Eu(m){return m.g?m.g.readyState:0}function S_(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,F,X){return X&&X.internalChannelParams&&X.internalChannelParams[m]||F}function R_(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 tA,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&&0Ai)Gt=Math.max(0,Mt[io].g-100),ji=!1;else try{nA(os,Nn,"req"+Ai+"_")}catch{Ce&&Ce(os)}}if(ji){Ce=Nn.join("&");break e}}}return m=m.i.splice(0,X),F.D=m,Ce}function Bm(m){if(!m.g&&!m.u){m.Y=1;var F=m.Fa;sd||fm(),yh||(sd(),yh=!0),hm.add(F,m),m.v=0}}function jm(m){return!(m.g||m.u||3<=m.v||(m.Y++,m.u=hp(qe(m.Fa,m),N_(m,m.v)),m.v++,0))}function Dp(m){null!=m.A&&(w.clearTimeout(m.A),m.A=null)}function G0(m){m.g=new yu(m,m.j,"rpc",m.Y),null===m.m&&(m.g.H=m.o),m.g.O=0;var F=nl(m.qa);Xi(F,"RID","rpc"),Xi(F,"SID",m.K),Xi(F,"AID",m.T),Xi(F,"CI",m.F?"0":"1"),!m.F&&m.ja&&Xi(F,"TO",m.ja),Xi(F,"TYPE","xmlhttp"),kh(m,F),m.m&&m.o&&Tp(F,m.m,m.o),m.L&&(m.g.I=m.L);var X=m.g;m=m.ia,X.L=1,X.v=Ph(nl(F)),X.m=null,X.P=!0,m_(X,m)}function Lh(m){null!=m.C&&(w.clearTimeout(m.C),m.C=null)}function W0(m,F){var X=null;if(m.g==F){Lh(m),Dp(m),m.g=null;var Ce=2}else{if(!Mm(m.h,F))return;X=F.D,_p(m.h,F),Ce=1}if(0!=m.G)if(F.o)if(1==Ce){X=F.m?F.m.length:0,F=Date.now()-F.F;var Mt=m.B;zo(Ce=dp(),new cd(Ce,X)),$m(m)}else Bm(m);else if(3==(Mt=F.s)||0==Mt&&0=m.h.j-(m.s?1:0)||(m.s?(m.i=F.D.concat(m.i),0):1==m.G||2==m.G||m.B>=(m.Va?0:m.Wa)||(m.s=hp(qe(m.Ga,m,F),N_(m,m.B)),m.B++,0)))}(m,F)||2==Ce&&jm(m)))switch(X&&0{Ce.abort(),fc(0,0,!1,F)},1e4);fetch(m,{signal:Ce.signal}).then(Gt=>{clearTimeout(Mt),fc(0,0,!!Gt.ok,F)}).catch(()=>{clearTimeout(Mt),fc(0,0,!1,F)})}(Ce.toString(),X)}else uo(2);m.G=0,m.l&&m.l.sa(F),bp(m),P_(m)}function bp(m){if(m.G=0,m.ka=[],m.l){const F=Pm(m.h);(0!=F.length||0!=m.i.length)&&(hn(m.ka,F),hn(m.ka,m.i),m.h.i.length=0,In(m.i),m.i.length=0),m.l.ra()}}function O_(m,F,X){var Ce=X instanceof dc?nl(X):new dc(X);if(""!=Ce.g)F&&(Ce.g=F+"."+Ce.g),pd(Ce,Ce.s);else{var Mt=w.location;Ce=Mt.protocol,F=F?F+"."+Mt.hostname:Mt.hostname,Mt=+Mt.port;var Gt=new dc(null);Ce&&fd(Gt,Ce),F&&(Gt.g=F),Mt&&pd(Gt,Mt),X&&(Gt.l=X),Ce=Gt}return F=m.ya,(X=m.D)&&F&&Xi(Ce,X,F),Xi(Ce,"VER",m.la),kh(m,Ce),Ce}function k_(m,F,X){if(F&&!m.J)throw Error("Can't create secondary domain capable XhrIo object.");return(F=new vo(m.Ca&&!m.pa?new Ep({eb:X}):m.pa)).Ha(m.J),F}function Vh(){}function wp(){}function Fs(m,F){is.call(this),this.g=new R_(F),this.l=m,this.h=F&&F.messageUrlParams||null,m=F&&F.messageHeaders||null,F&&F.clientProtocolHeaderRequired&&(m?m["X-Client-Protocol"]="webchannel":m={"X-Client-Protocol":"webchannel"}),this.g.o=m,m=F&&F.initMessageHeaders||null,F&&F.messageContentType&&(m?m["X-WebChannel-Content-Type"]=F.messageContentType:m={"X-WebChannel-Content-Type":F.messageContentType}),F&&F.va&&(m?m["X-WebChannel-Client-Profile"]=F.va:m={"X-WebChannel-Client-Profile":F.va}),this.g.S=m,(m=F&&F.Sb)&&!fr(m)&&(this.g.m=m),this.v=F&&F.supportsCrossDomainXhr||!1,this.u=F&&F.sendRawJson||!1,(F=F&&F.httpSessionIdParam)&&!fr(F)&&(this.g.D=F,null!==(m=this.h)&&F in m&&F in(m=this.h)&&delete m[F]),this.j=new vd(this)}function F_(m){tl.call(this),m.__headers__&&(this.headers=m.__headers__,this.statusCode=m.__status__,delete m.__headers__,delete m.__status__);var F=m.__sm__;if(F){e:{for(const X in F){m=X;break e}m=void 0}(this.i=m)&&(m=this.i,F=null!==F&&m in F?F[m]:void 0),this.data=F}else this.data=m}function L_(){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,F,X,Ce){if(this.g)throw Error("[goog.net.XhrIo] Object is active with another request="+this.D+"; newUri="+m);F=F?F.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=qe(this.Ea,this);try{this.B=!0,this.g.open(F,String(m),!0),this.B=!1}catch(Gt){return void $0(this,Gt)}if(m=X||"",X=new Map(this.headers),Ce)if(Object.getPrototypeOf(Ce)===Object.prototype)for(var Mt in Ce)X.set(Mt,Ce[Mt]);else{if("function"!=typeof Ce.keys||"function"!=typeof Ce.get)throw Error("Unknown input type for opt_headers: "+String(Ce));for(const Gt of Ce.keys())X.set(Gt,Ce.get(Gt))}Ce=Array.from(X.keys()).find(Gt=>"content-type"==Gt.toLowerCase()),Mt=w.FormData&&m instanceof w.FormData,!(0<=Array.prototype.indexOf.call(iA,F,void 0))||Ce||Mt||X.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");for(const[Gt,Nn]of X)this.g.setRequestHeader(Gt,Nn);this.H&&(this.g.responseType=this.H),"withCredentials"in this.g&&this.g.withCredentials!==this.J&&(this.g.withCredentials=this.J);try{z0(this),this.u=!0,this.g.send(m),this.u=!1}catch(Gt){$0(this,Gt)}},l.abort=function(m){this.g&&this.h&&(this.h=!1,this.j=!0,this.g.abort(),this.j=!1,this.m=m||7,zo(this,"complete"),zo(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?j0(this):this.bb())},l.bb=function(){j0(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(qe(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),G0(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=Vh.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,F){return new Fs(m,F)},an(Fs,is),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(){M_(this.g)},Fs.prototype.o=function(m){var F=this.g;if("string"==typeof m){var X={};X.__data__=m,m=X}else this.u&&((X={}).__data__=Dh(m),m=X);F.i.push(new y_(F.Ya++,m)),3==F.G&&$m(F)},Fs.prototype.N=function(){this.g.l=null,delete this.j,M_(this.g),delete this.g,Fs.aa.N.call(this)},an(F_,tl),an(L_,ld),an(vd,Vh),vd.prototype.ua=function(){zo(this.g,"a")},vd.prototype.ta=function(m){zo(this.g,new F_(m))},vd.prototype.sa=function(m){zo(this.g,new L_)},vd.prototype.ra=function(){zo(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,Dt=pt.createWebChannelTransport=function(){return new wp},Xe=pt.getStatEventTarget=function(){return dp()},Ge=pt.Event=vu,Re=pt.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=pt.ErrorCode=pp,f_.COMPLETE="complete",yt=pt.EventType=f_,ad.EventType=uc,uc.OPEN="a",uc.CLOSE="b",uc.ERROR="c",uc.MESSAGE="d",is.prototype.listen=is.prototype.K,Pt=pt.WebChannel=ad,lt=pt.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=pt.XhrIo=vo}).apply(typeof Ze<"u"?Ze:typeof self<"u"?self:typeof window<"u"?window:{});const Ot="@firebase/firestore";class We{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}}We.UNAUTHENTICATED=new We(null),We.GOOGLE_CREDENTIALS=new We("google-credentials-uid"),We.FIRST_PARTY=new We("first-party-uid"),We.MOCK_USER=new We("mock-user");let bt="10.12.1";const Ut=new et.Vy("@firebase/firestore");function Zt(){return Ut.logLevel}function je(l,...n){if(Ut.logLevel<=et.$b.DEBUG){const i=n.map(Ne);Ut.debug(`Firestore (${bt}): ${l}`,...i)}}function nn(l,...n){if(Ut.logLevel<=et.$b.ERROR){const i=n.map(Ne);Ut.error(`Firestore (${bt}): ${l}`,...i)}}function ht(l,...n){if(Ut.logLevel<=et.$b.WARN){const i=n.map(Ne);Ut.warn(`Firestore (${bt}): ${l}`,...i)}}function Ne(l){if("string"==typeof l)return l;try{return JSON.stringify(l)}catch{return l}}function B(l="Unexpected state"){const n=`FIRESTORE (${bt}) INTERNAL ASSERTION FAILED: `+l;throw nn(n),new Error(n)}function K(l,n){l||B()}function oe(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 ye extends be.g{constructor(n,i){super(n,i),this.code=n,this.message=i,this.toString=()=>`${this.name}: [code=${this.code}]: ${this.message}`}}class Te{constructor(){this.promise=new Promise((n,i)=>{this.resolve=n,this.reject=i})}}class ft{constructor(n,i){this.user=i,this.type="OAuth",this.headers=new Map,this.headers.set("Authorization",`Bearer ${n}`)}}class Nt{getToken(){return Promise.resolve(null)}invalidateToken(){}start(n,i){n.enqueueRetryable(()=>i(We.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=We.UNAUTHENTICATED,this.i=0,this.forceRefresh=!1,this.auth=null}start(n,i){var s=this;let u=this.i;const f=W=>this.i!==u?(u=this.i,i(W)):Promise.resolve();let _=new Te;this.o=()=>{this.i++,this.currentUser=this.u(),_.resolve(),_=new Te,n.enqueueRetryable(()=>f(this.currentUser))};const w=()=>{const W=_;n.enqueueRetryable((0,Ae.A)(function*(){yield W.promise,yield f(s.currentUser)}))},O=W=>{je("FirebaseAuthCredentialsProvider","Auth detected"),this.auth=W,this.auth.addAuthTokenListener(this.o),w()};this.t.onInit(W=>O(W)),setTimeout(()=>{if(!this.auth){const W=this.t.getImmediate({optional:!0});W?O(W):(je("FirebaseAuthCredentialsProvider","Auth not yet detected"),_.resolve(),_=new Te)}},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?(je("FirebaseAuthCredentialsProvider","getToken aborted due to token change."),this.getToken()):s?(K("string"==typeof s.accessToken),new ft(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 K(null===n||"string"==typeof n),new We(n)}}class Sn{constructor(n,i,s){this.l=n,this.h=i,this.P=s,this.type="FirstParty",this.user=We.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 jn{constructor(n,i,s){this.l=n,this.h=i,this.P=s}getToken(){return Promise.resolve(new Sn(this.l,this.h,this.P))}start(n,i){n.enqueueRetryable(()=>i(We.FIRST_PARTY))}shutdown(){}invalidateToken(){}}class Xn{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 Qn{constructor(n){this.A=n,this.forceRefresh=!1,this.appCheck=null,this.R=null}start(n,i){const s=f=>{null!=f.error&&je("FirebaseAppCheckTokenProvider",`Error getting App Check token; using placeholder token instead. Error: ${f.error.message}`);const _=f.token!==this.R;return this.R=f.token,je("FirebaseAppCheckTokenProvider",`Received ${_?"new":"existing"} token.`),_?i(f.token):Promise.resolve()};this.o=f=>{n.enqueueRetryable(()=>s(f))};const u=f=>{je("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):je("FirebaseAppCheckTokenProvider","AppCheck not yet detected")}},0)}getToken(){const n=this.forceRefresh;return this.forceRefresh=!1,this.appCheck?this.appCheck.getToken(n).then(i=>i?(K("string"==typeof i.token),this.R=i.token,new Xn(i.token)):null):Promise.resolve(null)}invalidateToken(){this.forceRefresh=!0}shutdown(){this.appCheck&&this.appCheck.removeTokenListener(this.o)}}function nr(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 At(l,n,i){return l.length===n.length&&l.every((s,u)=>i(s,n[u]))}class Jt{constructor(n,i){if(this.seconds=n,this.nanoseconds=i,i<0)throw new ye(ae.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+i);if(i>=1e9)throw new ye(ae.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+i);if(n<-62135596800)throw new ye(ae.INVALID_ARGUMENT,"Timestamp seconds out of range: "+n);if(n>=253402300800)throw new ye(ae.INVALID_ARGUMENT,"Timestamp seconds out of range: "+n)}static now(){return Jt.fromMillis(Date.now())}static fromDate(n){return Jt.fromMillis(n.getTime())}static fromMillis(n){const i=Math.floor(n/1e3),s=Math.floor(1e6*(n-1e3*i));return new Jt(i,s)}toDate(){return new Date(this.toMillis())}toMillis(){return 1e3*this.seconds+this.nanoseconds/1e6}_compareTo(n){return this.seconds===n.seconds?$e(this.nanoseconds,n.nanoseconds):$e(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 sn{constructor(n){this.timestamp=n}static fromTimestamp(n){return new sn(n)}static min(){return new sn(new Jt(0,0))}static max(){return new sn(new Jt(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 br{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===br.comparator(this,n)}child(n){const i=this.segments.slice(this.offset,this.limit());return n instanceof br?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 _n extends br{construct(n,i,s){return new _n(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 ye(ae.INVALID_ARGUMENT,`Invalid segment (${s}). Paths must not contain // in them.`);i.push(...s.split("/").filter(u=>u.length>0))}return new _n(i)}static emptyPath(){return new _n([])}}const yn=/^[_a-zA-Z][_a-zA-Z0-9]*$/;class rn extends br{construct(n,i,s){return new rn(n,i,s)}static isValidIdentifier(n){return yn.test(n)}canonicalString(){return this.toArray().map(n=>(n=n.replace(/\\/g,"\\\\").replace(/`/g,"\\`"),rn.isValidIdentifier(n)||(n="`"+n+"`"),n)).join(".")}toString(){return this.canonicalString()}isKeyField(){return 1===this.length&&"__name__"===this.get(0)}static keyField(){return new rn(["__name__"])}static fromServerFormat(n){const i=[];let s="",u=0;const f=()=>{if(0===s.length)throw new ye(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===_n.comparator(this.path,n.path)}toString(){return this.path.toString()}static comparator(n,i){return _n.comparator(n.path,i.path)}static isDocumentKey(n){return n.length%2==0}static fromSegments(n){return new Wt(new _n(n.slice()))}}class Rr{constructor(n,i,s){this.readTime=n,this.documentKey=i,this.largestBatchId=s}static min(){return new Rr(sn.min(),Wt.empty(),-1)}static max(){return new Rr(sn.max(),Wt.empty(),-1)}}function rr(l,n){let i=l.readTime.compareTo(n.readTime);return 0!==i?i:(i=Wt.comparator(l.documentKey,n.documentKey),0!==i?i:$e(l.largestBatchId,n.largestBatchId))}const Tr="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 Jr(l){return Zr.apply(this,arguments)}function Zr(){return(Zr=(0,Ae.A)(function*(l){if(l.code!==ae.FAILED_PRECONDITION||l.message!==Tr)throw l;je("LocalStore","Unexpectedly lost primary lease")})).apply(this,arguments)}class ue{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 ue((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 ue?i:ue.resolve(i)}catch(i){return ue.reject(i)}}wrapSuccess(n,i){return n?this.wrapUserFunction(()=>n(i)):ue.resolve(i)}wrapFailure(n,i){return n?this.wrapUserFunction(()=>n(i)):ue.reject(i)}static resolve(n){return new ue((i,s)=>{i(n)})}static reject(n){return new ue((i,s)=>{s(n)})}static waitFor(n){return new ue((i,s)=>{let u=0,f=0,_=!1;n.forEach(w=>{++u,w.next(()=>{++f,_&&f===u&&i()},O=>s(O))}),_=!0,f===u&&i()})}static or(n){let i=ue.resolve(!1);for(const s of n)i=i.next(u=>u?ue.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 ue((s,u)=>{const f=n.length,_=new Array(f);let w=0;for(let O=0;O{_[W]=de,++w,w===f&&s(_)},de=>u(de))}})}static doWhile(n,i){return new ue((s,u)=>{const f=()=>{!0===n()?i().next(()=>{f()},u):s()};f()})}}function xe(l){return"IndexedDbTransactionError"===l.name}let cr=(()=>{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 hi(l){return null==l}function On(l){return 0===l&&1/l==-1/0}function Zn(l){let n=0;for(const i in l)Object.prototype.hasOwnProperty.call(l,i)&&n++;return n}function Br(l,n){for(const i in l)Object.prototype.hasOwnProperty.call(l,i)&&n(i,l[i])}function gr(l){for(const n in l)if(Object.prototype.hasOwnProperty.call(l,n))return!1;return!0}class ur{constructor(n,i){this.comparator=n,this.root=i||xn.EMPTY}insert(n,i){return new ur(this.comparator,this.root.insert(n,i,this.comparator).copy(null,null,xn.BLACK,null,null))}remove(n){return new ur(this.comparator,this.root.remove(n,this.comparator).copy(null,null,xn.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 qr(this.root,null,this.comparator,!1)}getIteratorFrom(n){return new qr(this.root,n,this.comparator,!1)}getReverseIterator(){return new qr(this.root,null,this.comparator,!0)}getReverseIteratorFrom(n){return new qr(this.root,n,this.comparator,!0)}}class qr{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 xn{constructor(n,i,s,u,f){this.key=n,this.value=i,this.color=null!=s?s:xn.RED,this.left=null!=u?u:xn.EMPTY,this.right=null!=f?f:xn.EMPTY,this.size=this.left.size+1+this.right.size}copy(n,i,s,u,f){return new xn(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 xn.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 xn.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,xn.RED,null,this.right.left);return this.right.copy(null,null,this.color,n,null)}rotateRight(){const n=this.copy(null,null,xn.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)}}xn.EMPTY=null,xn.RED=!0,xn.BLACK=!1,xn.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 xn(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 ur(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 _o(this.data.getIterator())}getIteratorFrom(n){return new _o(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 _o{constructor(n){this.iter=n}getNext(){return this.iter.getNext().key}hasNext(){return this.iter.hasNext()}}class gi{constructor(n){this.fields=n,n.sort(rn.comparator)}static empty(){return new gi([])}unionWith(n){let i=new kn(rn.comparator);for(const s of this.fields)i=i.add(s);for(const s of n)i=i.add(s);return new gi(i.toArray())}covers(n){for(const i of this.fields)if(i.isPrefixOf(n))return!0;return!1}isEqual(n){return At(this.fields,n.fields,(i,s)=>i.isEqual(s))}}class Co extends Error{constructor(){super(...arguments),this.name="Base64DecodeError"}}class ri{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 Co("Invalid base64 string: "+f):f}}(n);return new ri(i)}static fromUint8Array(n){const i=function(u){let f="";for(let _=0;_nfe(i,n))}function me(l,n){if(l===n)return 0;const i=q(l),s=q(n);if(i!==s)return $e(i,s);switch(i){case 0:case 9007199254740991:return 0;case 1:return $e(l.booleanValue,n.booleanValue);case 2:return function(f,_){const w=vi(f.integerValue||f.doubleValue),O=vi(_.integerValue||_.doubleValue);return wO?1:w===O?0:isNaN(w)?isNaN(O)?0:-1:1}(l,n);case 3:return Ye(l.timestampValue,n.timestampValue);case 4:return Ye(Do(l),Do(n));case 5:return $e(l.stringValue,n.stringValue);case 6:return function(f,_){const w=Gn(f),O=Gn(_);return w.compareTo(O)}(l.bytesValue,n.bytesValue);case 7:return function(f,_){const w=f.split("/"),O=_.split("/");for(let W=0;Wn.mapValue.fields[i]=qt(s)),n}if(l.arrayValue){const n={arrayValue:{values:[]}};for(let i=0;i<(l.arrayValue.values||[]).length;++i)n.arrayValue.values[i]=qt(l.arrayValue.values[i]);return n}return Object.assign({},l)}function Qt(l){return"__max__"===(((l.mapValue||{}).fields||{}).__type__||{}).stringValue}class Cn{constructor(n){this.value=n}static empty(){return new Cn({mapValue:{}})}field(n){if(n.isEmpty())return this.value;{let i=this.value;for(let s=0;s{if(!i.isImmediateParentOf(w)){const O=this.getFieldsMap(i);this.applyChanges(O,s,u),s={},u=[],i=w.popLast()}_?s[w.lastSegment()]=qt(_):u.push(w.lastSegment())});const f=this.getFieldsMap(i);this.applyChanges(f,s,u)}delete(n){const i=this.field(n.popLast());$t(i)&&i.mapValue.fields&&delete i.mapValue.fields[n.lastSegment()]}isEqual(n){return fe(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 Cn(qt(this.value))}}function Nr(l){const n=[];return Br(l.fields,(i,s)=>{const u=new rn([i]);if($t(s)){const f=Nr(s.mapValue).fields;if(0===f.length)n.push(u);else for(const _ of f)n.push(u.child(_))}else n.push(u)}),new gi(n)}class vr{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 vr(n,0,sn.min(),sn.min(),sn.min(),Cn.empty(),0)}static newFoundDocument(n,i,s,u){return new vr(n,1,i,sn.min(),s,u,0)}static newNoDocument(n,i){return new vr(n,2,i,sn.min(),sn.min(),Cn.empty(),0)}static newUnknownDocument(n,i){return new vr(n,3,i,sn.min(),sn.min(),Cn.empty(),2)}convertToFoundDocument(n,i){return!this.createTime.isEqual(sn.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=Cn.empty(),this.documentState=0,this}convertToUnknownDocument(n){return this.version=n,this.documentType=3,this.data=Cn.empty(),this.documentState=2,this}setHasCommittedMutations(){return this.documentState=2,this}setHasLocalMutations(){return this.documentState=1,this.version=sn.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 vr&&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 vr(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 ar{constructor(n,i){this.position=n,this.inclusive=i}}function _i(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 ii extends Ko{constructor(n,i){super(),this.filters=n,this.op=i,this.ae=null}static create(n,i){return new ii(n,i)}matches(n){return qo(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 qo(l){return"and"===l.op}function Xo(l){return function wo(l){for(const n of l.filters)if(n instanceof ii)return!1;return!0}(l)&&qo(l)}function xa(l){if(l instanceof _r)return l.field.canonicalString()+l.op.toString()+hr(l.value);if(Xo(l))return l.filters.map(n=>xa(n)).join(",");{const n=l.filters.map(i=>xa(i)).join(",");return`${l.op}(${n})`}}function ss(l,n){return l instanceof _r?(s=l,(u=n)instanceof _r&&s.op===u.op&&s.field.isEqual(u.field)&&fe(s.value,u.value)):l instanceof ii?function(s,u){return u instanceof ii&&s.op===u.op&&s.filters.length===u.filters.length&&s.filters.reduce((f,_,w)=>f&&ss(_,u.filters[w]),!0)}(l,n):void B();var s,u}function Lr(l){return l instanceof _r?`${(i=l).field.canonicalString()} ${i.op} ${hr(i.value)}`:l instanceof ii?function(i){return i.op.toString()+" {"+i.getFilters().map(Lr).join(" ,")+"}"}(l):"Filter";var i}class oo extends _r{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 _r{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 _r{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 _r{constructor(n,i){super(n,"array-contains",i)}matches(n){const i=n.data.field(this.field);return Ue(i)&&P(i.arrayValue,this.value)}}class ms extends _r{constructor(n,i){super(n,"in",i)}matches(n){const i=n.data.field(this.field);return null!==i&&P(this.value.arrayValue,i)}}class as extends _r{constructor(n,i){super(n,"not-in",i)}matches(n){if(P(this.value.arrayValue,{nullValue:"NULL_VALUE"}))return!1;const i=n.data.field(this.field);return null!==i&&!P(this.value.arrayValue,i)}}class $s extends _r{constructor(n,i){super(n,"array-contains-any",i)}matches(n){const i=n.data.field(this.field);return!(!Ue(i)||!i.arrayValue.values)&&i.arrayValue.values.some(s=>P(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=oe(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(","),hi(n.limit)||(i+="|l:",i+=n.limit),n.startAt&&(i+="|lb:",i+=n.startAt.inclusive?"b:":"a:",i+=n.startAt.position.map(s=>hr(s)).join(",")),n.endAt&&(i+="|ub:",i+=n.endAt.inclusive?"a:":"b:",i+=n.endAt.position.map(s=>hr(s)).join(",")),n.ue=i}return n.ue}function Yo(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(rn.comparator);return _.filters.forEach(O=>{O.getFlattenedFilters().forEach(W=>{W.isInequality()&&(w=w.add(W.field))})}),w})(n).forEach(f=>{i.has(f.canonicalString())||f.isKeyField()||n.ce.push(new Ii(f,s))}),i.has(rn.keyField().canonicalString())||n.ce.push(new Ii(rn.keyField(),s))}return n.ce}function Fn(l){const n=oe(l);return n.le||(n.le=function Zi(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 Ii(u.field,"desc"===u.dir?"asc":"desc"));const i=l.endAt?new ar(l.endAt.position,l.endAt.inclusive):null,s=l.startAt?new ar(l.startAt.position,l.startAt.inclusive):null;return Qo(l.path,l.collectionGroup,n,l.filters,l.limit,i,s)}}(n,ln(l))),n.le}function eo(l,n,i){return new z(l.path,l.collectionGroup,l.explicitOrderBy.slice(),l.filters.slice(),n,i,l.startAt,l.endAt)}function Jo(l,n){return Yo(Fn(l),Fn(n))&&l.limitType===n.limitType}function Na(l){return`${bs(Fn(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=>Lr(u)).join(", ")}]`),hi(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=>hr(u)).join(",")),i.endAt&&(s+=", endAt: ",s+=i.endAt.inclusive?"a:":"b:",s+=i.endAt.position.map(u=>hr(u)).join(",")),`Target(${s})`}(Fn(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 ln(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,O){const W=_i(_,w,O);return _.inclusive?W<=0:W<0}(s.startAt,ln(s),u)||s.endAt&&!function(_,w,O){const W=_i(_,w,O);return _.inclusive?W>=0:W>0}(s.endAt,ln(s),u)));var s,u}function sl(l){return(n,i)=>{let s=!1;for(const u of ln(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 O=_.data.field(f),W=w.data.field(f);return null!==O&&null!==W?me(O,W):B()}(l.field,n,i);switch(l.dir){case"asc":return s;case"desc":return-1*s;default:return B()}}class ls{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 gr(this.inner)}size(){return this.innerSize}}const ha=new ur(Wt.comparator);function or(){return ha}const Vi=new ur(Wt.comparator);function xi(...l){let n=Vi;for(const i of l)n=n.insert(i.key,i);return n}function ro(l){let n=Vi;return l.forEach((i,s)=>n=n.insert(i,s.overlayedDocument)),n}function ei(){return us()}function ll(){return us()}function us(){return new ls(l=>l.toString(),(l,n)=>l.isEqual(n))}const _s=new ur(Wt.comparator),Ll=new kn(Wt.comparator);function Dr(...l){let n=Ll;for(const i of l)n=n.add(i);return n}const ul=new kn($e);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:On(n)?"-0":n}}function js(l){return{integerValue:""+l}}function cl(l,n){return function Dn(l){return"number"==typeof l&&Number.isInteger(l)&&!On(l)&&l<=Number.MAX_SAFE_INTEGER&&l>=Number.MIN_SAFE_INTEGER}(n)?js(n):ka(l,n)}class Fa{constructor(){this._=void 0}}function Vl(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&&Lo(f)&&(f=To(f)),f&&(_.fields.__previous_value__=f),{mapValue:_}}(i,n):l instanceof ws?Zo(l,n):l instanceof Ss?dl(l,n):function(u,f){const _=fa(u,f),w=wu(_)+wu(u.Pe);return De(_)&&De(u.Pe)?js(w):ka(u.serializer,w)}(l,n)}function Ul(l,n,i){return l instanceof ws?Zo(l,n):l instanceof Ss?dl(l,n):i}function fa(l,n){return l instanceof es?De(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 Zo(l,n){const i=$l(n);for(const s of l.elements)i.some(u=>fe(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=>!fe(u,s));return{arrayValue:{values:i}}}class es extends Fa{constructor(n,i){super(),this.serializer=n,this.Pe=i}}function wu(l){return vi(l.integerValue||l.doubleValue)}function $l(l){return Ue(l)&&l.arrayValue.values?l.arrayValue.values.slice():[]}class Rs{constructor(n,i){this.version=n,this.transformResults=i}}class Ni{constructor(n,i){this.updateTime=n,this.exists=i}static none(){return new Ni}static exists(n){return new Ni(void 0,n)}static updateTime(n){return new Ni(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 $(l.key,Ni.none()):new Ms(l.key,l.data,Ni.none());{const i=l.data,s=Cn.empty();let u=new kn(rn.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 gi(u.toArray()),Ni.none())}}function La(l,n,i){l instanceof Ms?function(u,f,_){const w=u.value.clone(),O=Es(u.fieldTransforms,f,_.transformResults);w.setAll(O),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),O=f.data;O.setAll(Hs(u)),O.setAll(w),f.convertToFoundDocument(_.version,O).setHasCommittedMutations()}(l,n,i):n.convertToNoDocument(i.version).setHasCommittedMutations()}function zs(l,n,i,s){return l instanceof Ms?function(f,_,w,O){if(!pa(f.precondition,_))return w;const W=f.value.clone(),de=T(f.fieldTransforms,O,_);return W.setAll(de),_.convertToFoundDocument(_.version,W).setHasLocalMutations(),null}(l,n,i,s):l instanceof lo?function(f,_,w,O){if(!pa(f.precondition,_))return w;const W=T(f.fieldTransforms,O,_),de=_.data;return de.setAll(Hs(f)),de.setAll(W),_.convertToFoundDocument(_.version,de).setHasLocalMutations(),null===w?null:w.unionWith(f.fieldMask.fields).unionWith(f.fieldTransforms.map(Me=>Me.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=Cn.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&&At(s,u,(f,_)=>function ts(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?At(s.elements,u.elements,fe):s instanceof es&&u instanceof es?fe(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;K(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 O=ga(_,w);null!==O&&s.set(u.key,O),_.isValidDocument()||_.convertToNoDocument(sn.min())}),s}keys(){return this.mutations.reduce((n,i)=>n.add(i.key),Dr())}isEqual(n){return this.batchId===n.batchId&&At(this.mutations,n.mutations,(i,s)=>ma(i,s))&&At(this.baseMutations,n.baseMutations,(i,s)=>ma(i,s))}}class he{constructor(n,i,s,u){this.batch=n,this.commitVersion=i,this.mutationResults=s,this.docVersions=u}static from(n,i,s){K(n.mutations.length===s.length);let u=function(){return _s}();const f=n.mutations;for(let _=0;_=8)throw new oi(`Invalid padding: ${i}`);if(s<0)throw new oi(`Invalid hash count: ${s}`);if(n.length>0&&0===this.hashCount)throw new oi(`Invalid hash count: ${s}`);if(0===n.length&&0!==i)throw new oi(`Invalid padding when bitmap length is 0: ${i}`);this.Ie=8*n.length-i,this.Te=Be.fromNumber(this.Ie)}Ee(n,i,s){let u=n.add(i.multiply(Be.fromNumber(s)));return 1===u.compare(Ui)&&(u=new Be([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=ti(n),[s,u]=fn(i);for(let f=0;f0&&(this.we=!0,this.pe=n)}Ce(){let n=Dr(),i=Dr(),s=Dr();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 bi(this.pe,this.ye,n,i,s)}ve(){this.we=!1,this.ge=Va()}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,K(this.fe>=0)}Ne(){this.we=!0,this.ye=!0}}class $o{constructor(n){this.Le=n,this.Be=new Map,this.ke=or(),this.qe=Ar(),this.Qe=new ur($e)}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(So(f))if(0===s){const _=new Wt(f.path);this.Ue(i,_,vr.newNoDocument(_,sn.min()))}else K(1===s);else{const _=this.Ye(i);if(_!==s){const w=this.Ze(n),O=w?this.Xe(w,n,_):1;0!==O&&(this.je(i),this.Qe=this.Qe.insert(i,2===O?"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{_=Gn(s).toUint8Array()}catch(O){if(O instanceof Co)return ht("Decoding the base64 bloom filter in existence filter failed ("+O.message+"); ignoring the bloom filter and falling back to full re-query."),null;throw O}try{w=new Un(_,u,f)}catch(O){return ht(O instanceof oi?"BloomFilter error: ":"Applying bloom filter failed: ",O),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&&So(w.target)){const O=new Wt(w.target.path);null!==this.ke.get(O)||this.it(_,O)||this.Ue(_,O,vr.newNoDocument(O,n))}f.be&&(i.set(_,f.Ce()),f.ve())}});let s=Dr();this.qe.forEach((f,_)=>{let w=!0;_.forEachWhile(O=>{const W=this.Je(O);return!W||"TargetPurposeLimboResolution"===W.purpose||(w=!1,!1)}),w&&(s=s.add(f))}),this.ke.forEach((f,_)=>_.setReadTime(n));const u=new Gi(n,i,this.Qe,this.ke,s);return this.ke=or(),this.qe=Ar(),this.Qe=new ur($e),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 Hi,this.Be.set(n,i)),i}st(n){let i=this.qe.get(n);return i||(i=new kn($e),this.qe=this.qe.insert(n,i)),i}ze(n){const i=null!==this.Je(n);return i||je("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 Hi),this.Le.getRemoteKeysForTarget(n).forEach(i=>{this.Ue(n,i,null)})}it(n,i){return this.Le.getRemoteKeysForTarget(n).has(i)}}function Ar(){return new ur(Wt.comparator)}function Va(){return new ur(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"},Ki={and:"AND",or:"OR"};class va{constructor(n,i){this.databaseId=n,this.useProto3Json=i}}function ns(l,n){return l.useProto3Json||hi(n)?n:{value:n}}function Ro(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 Ro(l,n.toTimestamp())}function Gr(l){return K(!!l),sn.fromTimestamp(function(i){const s=jr(i);return new Jt(s.seconds,s.nanos)}(l))}function _a(l,n){return Ws(l,n).canonicalString()}function Ws(l,n){const i=(u=l,new _n(["projects",u.projectId,"databases",u.database])).child("documents");var u;return void 0===n?i:i.child(n)}function Pr(l){const n=_n.fromString(l);return K(Td(n)),n}function $a(l,n){return _a(l.databaseId,n.path)}function ko(l,n){const i=Pr(n);if(i.get(1)!==l.databaseId.projectId)throw new ye(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 ye(ae.INVALID_ARGUMENT,"Tried to deserialize key from different database: "+i.get(3)+" vs "+l.databaseId.database);return new Wt(Bi(i))}function Bo(l,n){return _a(l.databaseId,n)}function Ks(l){return new _n(["projects",l.databaseId.projectId,"databases",l.databaseId.database]).canonicalString()}function Bi(l){return K(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:[Bo(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=Bo(l,u);const f=function(W){if(0!==W.length)return Ad(ii.create(W,"and"))}(n.filters);f&&(i.structuredQuery.where=f);const _=function(W){if(0!==W.length)return W.map(de=>{return{field:qs((qe=de).field),direction:ja(qe.dir)};var qe})}(n.orderBy);_&&(i.structuredQuery.orderBy=_);const w=ns(l,n.limit);return null!==w&&(i.structuredQuery.limit=w),n.startAt&&(i.structuredQuery.startAt={before:(W=n.startAt).inclusive,values:W.position}),n.endAt&&(i.structuredQuery.endAt=function(W){return{before:!W.inclusive,values:W.position}}(n.endAt)),{_t:i,parent:u};var W}function Ea(l){let n=function ya(l){const n=Pr(l);return 4===n.length?_n.emptyPath():Bi(n)}(l.parent);const i=l.structuredQuery,s=i.from?i.from.length:0;let u=null;if(s>0){K(1===s);const de=i.from[0];de.allDescendants?u=de.collectionId:n=n.child(de.collectionId)}let f=[];i.where&&(f=function(Me){const qe=Ba(Me);return qe instanceof ii&&Xo(qe)?qe.getFilters():[qe]}(i.where));let _=[];i.orderBy&&(_=i.orderBy.map(qe=>{return new Ii(Xs((an=qe).field),function(hn){switch(hn){case"ASCENDING":return"asc";case"DESCENDING":return"desc";default:return}}(an.direction));var an}));let w=null;i.limit&&(w=function(Me){let qe;return qe="object"==typeof Me?Me.value:Me,hi(qe)?null:qe}(i.limit));let O=null;var Me;i.startAt&&(O=new ar((Me=i.startAt).values||[],!!Me.before));let W=null;return i.endAt&&(W=function(Me){return new ar(Me.values||[],!Me.before)}(i.endAt)),function x(l,n,i,s,u,f,_,w){return new z(l,n,i,s,u,f,_,w)}(n,u,_,f,w,"F",O,W)}function Ba(l){return void 0!==l.unaryFilter?function(i){switch(i.unaryFilter.op){case"IS_NAN":const s=Xs(i.unaryFilter.field);return _r.create(s,"==",{doubleValue:NaN});case"IS_NULL":const u=Xs(i.unaryFilter.field);return _r.create(u,"==",{nullValue:"NULL_VALUE"});case"IS_NOT_NAN":const f=Xs(i.unaryFilter.field);return _r.create(f,"!=",{doubleValue:NaN});case"IS_NOT_NULL":const _=Xs(i.unaryFilter.field);return _r.create(_,"!=",{nullValue:"NULL_VALUE"});default:return B()}}(l):void 0!==l.fieldFilter?_r.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 ii.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 Ki[l]}function qs(l){return{fieldPath:l.canonicalString()}}function Xs(l){return rn.fromServerFormat(l.fieldPath)}function Ad(l){return l instanceof _r?function(i){if("=="===i.op){if(nt(i.value))return{unaryFilter:{field:qs(i.field),op:"IS_NAN"}};if(at(i.value))return{unaryFilter:{field:qs(i.field),op:"IS_NULL"}}}else if("!="===i.op){if(nt(i.value))return{unaryFilter:{field:qs(i.field),op:"IS_NOT_NAN"}};if(at(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 ii?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=sn.min(),_=sn.min(),w=ri.EMPTY_BYTE_STRING,O=null){this.target=n,this.targetId=i,this.purpose=s,this.sequenceNumber=u,this.snapshotVersion=f,this.lastLimboFreeSnapshotVersion=_,this.resumeToken=w,this.expectedCount=O}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 Ie(l){const n=Ea({parent:l.parent,structuredQuery:l.structuredQuery});return"LAST"===l.limitType?eo(n,n.limit,"L"):n}class jo{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(vi(n.integerValue));else if("doubleValue"in n){const s=vi(n.doubleValue);isNaN(s)?this.Et(i,13):(this.Et(i,15),On(s)?i.dt(0):i.dt(s))}else if("timestampValue"in n){let s=n.timestampValue;this.Et(i,20),"string"==typeof s&&(s=jr(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(Gn(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)):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),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)}}jo.bt=new jo;class Cs{constructor(){this._n=new yc}addToCollectionParentIndex(n,i){return this._n.add(i),ue.resolve()}getCollectionParents(n,i){return ue.resolve(this._n.getEntries(i))}addFieldIndex(n,i){return ue.resolve()}deleteFieldIndex(n,i){return ue.resolve()}deleteAllFieldIndexes(n){return ue.resolve()}createTargetIndexes(n,i){return ue.resolve()}getDocumentsMatchingTarget(n,i){return ue.resolve(null)}getIndexType(n,i){return ue.resolve(0)}getFieldIndexes(n,i){return ue.resolve([])}getNextCollectionGroupToUpdate(n){return ue.resolve(null)}getMinOffset(n,i){return ue.resolve(Rr.min())}getMinOffsetFromCollectionGroup(n,i){return ue.resolve(Rr.min())}updateCollectionGroup(n,i,s){return ue.resolve()}updateIndexEntries(n,i){return ue.resolve()}}class yc{constructor(){this.index={}}add(n){const i=n.lastSegment(),s=n.popLast(),u=this.index[i]||new kn(_n.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(_n.comparator)).toArray()}}new Uint8Array(0);class qn{constructor(n,i,s){this.cacheSizeCollectionThreshold=n,this.percentileToCollect=i,this.maximumSequenceNumbersToCollect=s}static withCacheSize(n){return new qn(n,qn.DEFAULT_COLLECTION_PERCENTILE,qn.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT)}}qn.DEFAULT_COLLECTION_PERCENTILE=10,qn.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT=1e3,qn.DEFAULT=new qn(41943040,qn.DEFAULT_COLLECTION_PERCENTILE,qn.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT),qn.DISABLED=new qn(-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 Zs{constructor(){this.changes=new ls(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,vr.newInvalidDocument(n).setReadTime(i))}getEntry(n,i){this.assertNotApplied();const s=this.changes.get(i);return void 0!==s?ue.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,gi.empty(),Jt.now()),u))}getDocuments(n,i){return this.remoteDocumentCache.getEntries(n,i).next(s=>this.getLocalViewOfDocuments(n,s,Dr()).next(()=>s))}getLocalViewOfDocuments(n,i,s=Dr()){const u=ei();return this.populateOverlays(n,u,i).next(()=>this.computeViews(n,i,u,s).next(f=>{let _=xi();return f.forEach((w,O)=>{_=_.insert(w,O.overlayedDocument)}),_}))}getOverlayedDocuments(n,i){const s=ei();return this.populateOverlays(n,s,i).next(()=>this.computeViews(n,i,s,Dr()))}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=or();const _=us(),w=us();return i.forEach((O,W)=>{const de=s.get(W.key);u.has(W.key)&&(void 0===de||de.mutation instanceof lo)?f=f.insert(W.key,W):void 0!==de?(_.set(W.key,de.mutation.getFieldMask()),zs(de.mutation,W,de.mutation.getFieldMask(),Jt.now())):_.set(W.key,gi.empty())}),this.recalculateAndSaveOverlays(n,f).next(O=>(O.forEach((W,de)=>_.set(W,de)),i.forEach((W,de)=>{var Me;return w.set(W,new Ts(de,null!==(Me=_.get(W))&&void 0!==Me?Me:null))}),w))}recalculateAndSaveOverlays(n,i){const s=us();let u=new ur((_,w)=>_-w),f=Dr();return this.mutationQueue.getAllMutationBatchesAffectingDocumentKeys(n,i).next(_=>{for(const w of _)w.keys().forEach(O=>{const W=i.get(O);if(null===W)return;let de=s.get(O)||gi.empty();de=w.applyToLocalView(W,de),s.set(O,de);const Me=(u.get(w.batchId)||Dr()).add(O);u=u.insert(w.batchId,Me)})}).next(()=>{const _=[],w=u.getReverseIterator();for(;w.hasNext();){const O=w.getNext(),W=O.key,de=O.value,Me=ll();de.forEach(qe=>{if(!f.has(qe)){const xt=ga(i.get(qe),s.get(qe));null!==xt&&Me.set(qe,xt),f=f.add(qe)}}),_.push(this.documentOverlayCache.saveOverlays(n,W,Me))}return ue.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 we(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):ue.resolve(ei());let w=-1,O=f;return _.next(W=>ue.forEach(W,(de,Me)=>(w{O=O.insert(de,qe)}))).next(()=>this.populateOverlays(n,W,f)).next(()=>this.computeViews(n,O,W,Dr())).next(de=>({batchId:w,changes:ro(de)})))})}getDocumentsMatchingDocumentQuery(n,i){return this.getDocument(n,new Wt(i)).next(s=>{let u=xi();return s.isFoundDocument()&&(u=u.insert(s.key,s)),u})}getDocumentsMatchingCollectionGroupQuery(n,i,s,u){const f=i.collectionGroup;let _=xi();return this.indexManager.getCollectionParents(n,f).next(w=>ue.forEach(w,O=>{const W=(Me=i,qe=O.child(f),new z(qe,null,Me.explicitOrderBy.slice(),Me.filters.slice(),Me.limit,Me.limitType,Me.startAt,Me.endAt));var Me,qe;return this.getDocumentsMatchingCollectionQuery(n,W,s,u).next(de=>{de.forEach((Me,qe)=>{_=_.insert(Me,qe)})})}).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((O,W)=>{const de=W.getKey();null===_.get(de)&&(_=_.insert(de,vr.newInvalidDocument(de)))});let w=xi();return _.forEach((O,W)=>{const de=f.get(O);void 0!==de&&zs(de.mutation,W,gi.empty(),Jt.now()),Bs(i,W)&&(w=w.insert(O,W))}),w})}}class ng{constructor(n){this.serializer=n,this.cr=new Map,this.lr=new Map}getBundleMetadata(n,i){return ue.resolve(this.cr.get(i))}saveBundleMetadata(n,i){return this.cr.set(i.id,{id:(u=i).id,version:u.version,createTime:Gr(u.createTime)}),ue.resolve();var u}getNamedQuery(n,i){return ue.resolve(this.lr.get(i))}saveNamedQuery(n,i){return this.lr.set(i.name,{name:(u=i).name,query:Ie(u.bundledQuery),readTime:Gr(u.readTime)}),ue.resolve();var u}}class Tc{constructor(){this.overlays=new ur(Wt.comparator),this.hr=new Map}getOverlay(n,i){return ue.resolve(this.overlays.get(i))}getOverlays(n,i){const s=ei();return ue.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)}),ue.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)),ue.resolve()}getOverlaysForCollection(n,i,s){const u=ei(),f=i.length+1,_=new Wt(i.child("")),w=this.overlays.getIteratorFrom(_);for(;w.hasNext();){const O=w.getNext().value,W=O.getKey();if(!i.isPrefixOf(W.path))break;W.path.length===f&&O.largestBatchId>s&&u.set(O.getKey(),O)}return ue.resolve(u)}getOverlaysForCollectionGroup(n,i,s,u){let f=new ur((W,de)=>W-de);const _=this.overlays.getIterator();for(;_.hasNext();){const W=_.getNext().value;if(W.getKey().getCollectionGroup()===i&&W.largestBatchId>s){let de=f.get(W.largestBatchId);null===de&&(de=ei(),f=f.insert(W.largestBatchId,de)),de.set(W.getKey(),W)}}const w=ei(),O=f.getIterator();for(;O.hasNext()&&(O.getNext().value.forEach((W,de)=>w.set(W,de)),!(w.size()>=u)););return ue.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 ke(i,s));let f=this.hr.get(i);void 0===f&&(f=Dr(),this.hr.set(i,f)),this.hr.set(i,f.add(s.key))}}class Md{constructor(){this.Pr=new kn(Eo.Ir),this.Tr=new kn(Eo.Er)}isEmpty(){return this.Pr.isEmpty()}addReference(n,i){const s=new Eo(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 Eo(n,i))}Rr(n,i){n.forEach(s=>this.removeReference(s,i))}Vr(n){const i=new Wt(new _n([])),s=new Eo(i,n),u=new Eo(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 _n([])),s=new Eo(i,n),u=new Eo(i,n+1);let f=Dr();return this.Tr.forEachInRange([s,u],_=>{f=f.add(_.key)}),f}containsKey(n){const i=new Eo(n,0),s=this.Pr.firstAfterOrEqual(i);return null!==s&&n.isEqual(s.key)}}class Eo{constructor(n,i){this.key=n,this.pr=i}static Ir(n,i){return Wt.comparator(n.key,i.key)||$e(n.pr,i.pr)}static Er(n,i){return $e(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(Eo.Ir)}checkEmpty(n){return ue.resolve(0===this.mutationQueue.length)}addMutationBatch(n,i,s,u){const f=this.yr;this.yr++;const _=new k(f,i,s,u);this.mutationQueue.push(_);for(const w of u)this.wr=this.wr.add(new Eo(w.key,f)),this.indexManager.addToCollectionParentIndex(n,w.key.path.popLast());return ue.resolve(_)}lookupMutationBatch(n,i){return ue.resolve(this.Sr(i))}getNextMutationBatchAfterBatchId(n,i){const u=this.br(i+1),f=u<0?0:u;return ue.resolve(this.mutationQueue.length>f?this.mutationQueue[f]:null)}getHighestUnacknowledgedBatchId(){return ue.resolve(0===this.mutationQueue.length?-1:this.yr-1)}getAllMutationBatches(n){return ue.resolve(this.mutationQueue.slice())}getAllMutationBatchesAffectingDocumentKey(n,i){const s=new Eo(i,0),u=new Eo(i,Number.POSITIVE_INFINITY),f=[];return this.wr.forEachInRange([s,u],_=>{const w=this.Sr(_.pr);f.push(w)}),ue.resolve(f)}getAllMutationBatchesAffectingDocumentKeys(n,i){let s=new kn($e);return i.forEach(u=>{const f=new Eo(u,0),_=new Eo(u,Number.POSITIVE_INFINITY);this.wr.forEachInRange([f,_],w=>{s=s.add(w.pr)})}),ue.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 Eo(new Wt(f),0);let w=new kn($e);return this.wr.forEachWhile(O=>{const W=O.key.path;return!!s.isPrefixOf(W)&&(W.length===u&&(w=w.add(O.pr)),!0)},_),ue.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){K(0===this.Cr(i.batchId,"removed")),this.mutationQueue.shift();let s=this.wr;return ue.forEach(i.mutations,u=>{const f=new Eo(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 Eo(i,0),u=this.wr.firstAfterOrEqual(s);return ue.resolve(i.isEqual(u&&u.key))}performConsistencyCheck(n){return ue.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 ur(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 ue.resolve(s?s.document.mutableCopy():vr.newInvalidDocument(i))}getEntries(n,i){let s=or();return i.forEach(u=>{const f=this.docs.get(u);s=s.insert(u,f?f.document.mutableCopy():vr.newInvalidDocument(u))}),ue.resolve(s)}getDocumentsMatchingQuery(n,i,s,u){let f=or();const _=i.path,w=new Wt(_.child("")),O=this.docs.getIteratorFrom(w);for(;O.hasNext();){const{key:W,value:{document:de}}=O.getNext();if(!_.isPrefixOf(W.path))break;W.path.length>_.length+1||rr(new Rr((l=de).readTime,l.key,-1),s)<=0||(u.has(de.key)||Bs(i,de))&&(f=f.insert(de.key,de.mutableCopy()))}var l;return ue.resolve(f)}getAllFromCollectionGroup(n,i,s,u){B()}Fr(n,i){return ue.forEach(this.docs,s=>i(s))}newChangeBuffer(n){return new xd(this)}getSize(n){return ue.resolve(this.size)}}class xd extends Zs{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)}),ue.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 ls(i=>bs(i),Yo),this.lastRemoteSnapshotVersion=sn.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)),ue.resolve()}getLastRemoteSnapshotVersion(n){return ue.resolve(this.lastRemoteSnapshotVersion)}getHighestSequenceNumber(n){return ue.resolve(this.Or)}allocateTargetId(n){return this.highestTargetId=this.Lr.next(),ue.resolve(this.highestTargetId)}setTargetsMetadata(n,i,s){return s&&(this.lastRemoteSnapshotVersion=s),i>this.Or&&(this.Or=i),ue.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,ue.resolve()}updateTargetData(n,i){return this.qn(i),ue.resolve()}removeTargetData(n,i){return this.Mr.delete(i.target),this.Nr.Vr(i.targetId),this.targetCount-=1,ue.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++)}),ue.waitFor(f).next(()=>u)}getTargetCount(n){return ue.resolve(this.targetCount)}getTargetData(n,i){const s=this.Mr.get(i)||null;return ue.resolve(s)}addMatchingKeys(n,i,s){return this.Nr.dr(i,s),ue.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,_))}),ue.waitFor(f)}removeMatchingKeysForTargetId(n,i){return this.Nr.Vr(i),ue.resolve()}getMatchingKeysForTargetId(n,i){const s=this.Nr.gr(i);return ue.resolve(s)}containsKey(n,i){return ue.resolve(this.Nr.containsKey(i))}}class bc{constructor(n,i){this.Br={},this.overlays={},this.kr=new cr(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){je("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 ue.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 B()}addReference(n,i,s){return this.zr.addReference(s,i),this.Jr.delete(s.toString()),ue.resolve()}removeReference(n,i,s){return this.zr.removeReference(s,i),this.Jr.add(s.toString()),ue.resolve()}markPotentiallyOrphaned(n,i){return this.Jr.add(i.toString()),ue.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 ue.forEach(this.Jr,s=>{const u=Wt.fromPath(s);return this.Yr(n,u).next(f=>{f||i.removeEntry(u,sn.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 ue.or([()=>ue.resolve(this.zr.containsKey(i)),()=>this.persistence.getTargetCache().containsKey(n,i),()=>this.persistence.Gr(n,i)])}}class wi{constructor(n,i,s,u){this.targetId=n,this.fromCache=i,this.qi=s,this.Qi=u}static Ki(n,i){let s=Dr(),u=Dr();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 wi(n,i.fromCache,s,u)}}class rg{constructor(){this._documentReadCount=0}get documentReadCount(){return this._documentReadCount}incrementDocumentReadCount(n){this._documentReadCount+=n}}class Zh{constructor(){this.$i=!1,this.Ui=!1,this.Wi=100,this.Gi=(0,be.nr)()?8:function Qe(l){const n=l.match(/Android ([\d.]+)/i),i=n?n[1].split(".").slice(0,2).join("."):"-1";return Number(i)}((0,be.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()<=et.$b.DEBUG&&je("QueryEngine","The SDK decides to create cache indexes for query:",vs(i),"as using cache indexes may help improve performance."),this.indexManager.createTargetIndexes(n,Fn(i))):ue.resolve())}ji(n,i){if(G(i))return ue.resolve(null);let s=Fn(i);return this.indexManager.getIndexType(n,s).next(u=>0===u?null:(null!==i.limit&&1===u&&(i=eo(i,null,"F"),s=Fn(i)),this.indexManager.getDocumentsMatchingTarget(n,s).next(f=>{const _=Dr(...f);return this.zi.getDocuments(n,_).next(w=>this.indexManager.getMinOffset(n,s).next(O=>{const W=this.Zi(i,w);return this.Xi(i,W,_,O.readTime)?this.ji(n,eo(i,null,"F")):this.es(n,W,i,O)}))})))}Hi(n,i,s,u){return G(i)||u.isEqual(sn.min())?ue.resolve(null):this.zi.getDocuments(n,s).next(f=>{const _=this.Zi(i,f);return this.Xi(i,_,s,u)?ue.resolve(null):(Zt()<=et.$b.DEBUG&&je("QueryEngine","Re-using previous result from %s to execute query: %s",u.toString(),vs(i)),this.es(n,_,i,function Yn(l,n){const i=l.toTimestamp().seconds,s=l.toTimestamp().nanoseconds+1,u=sn.fromTimestamp(1e9===s?new Jt(i+1,0):new Jt(i,s));return new Rr(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 Zt()<=et.$b.DEBUG&&je("QueryEngine","Using full collection scan to execute query:",vs(i)),this.zi.getDocumentsMatchingQuery(n,i,Rr.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 ur($e),this.rs=new ls(f=>bs(f),Yo),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 Vu.apply(this,arguments)}function Vu(){return(Vu=(0,Ae.A)(function*(l,n){const i=oe(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 O=Dr();for(const W of u){_.push(W.batchId);for(const de of W.mutations)O=O.add(de.key)}for(const W of f){w.push(W.batchId);for(const de of W.mutations)O=O.add(de.key)}return i.localDocuments.getDocuments(s,O).next(W=>({us:W,removedBatchIds:_,addedBatchIds:w}))})})})).apply(this,arguments)}function Ns(l){const n=oe(l);return n.persistence.runTransaction("Get last remote snapshot version","readonly",i=>n.Qr.getLastRemoteSnapshotVersion(i))}function Sc(l,n){const i=oe(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,Ae.A)(function*(l,n,i){const s=oe(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(!xe(_))throw _;je("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=oe(l);let u=sn.min(),f=Dr();return s.persistence.runTransaction("Execute query","readwrite",_=>function(O,W,de){const Me=oe(O),qe=Me.rs.get(de);return void 0!==qe?ue.resolve(Me.ns.get(qe)):Me.Qr.getTargetData(W,de)}(s,_,Fn(n)).next(w=>{if(w)return u=w.lastLimboFreeSnapshotVersion,s.Qr.getMatchingKeysForTargetId(_,w.targetId).next(O=>{f=O})}).next(()=>s.ts.getDocumentsMatchingQuery(_,n,i?u:sn.min(),i?f:Dr())).next(w=>(function yl(l,n,i){let s=l.ss.get(n)||sn.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 Ld{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(){je("ConnectivityMonitor","Network connectivity changed: AVAILABLE");for(const n of this.uo)n(0)}ao(){je("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 Po="WebChannelConnection";class Vd 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(),O=this.vo(i,s.toUriEncodedString());je("RestConnection",`Sending RPC '${i}' ${w}:`,O,u);const W={"google-cloud-resource-prefix":this.So,"x-goog-request-params":this.bo};return this.Fo(W,f,_),this.Mo(i,O,W,u).then(de=>(je("RestConnection",`Received RPC '${i}' ${w}: `,de),de),de=>{throw ht("RestConnection",`RPC '${i}' ${w} failed with error: `,de,"url: ",O,"request:",u),de})}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/"+bt,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 O=new ct;O.setWithCredentials(!0),O.listenOnce(yt.COMPLETE,()=>{try{switch(O.getLastErrorCode()){case vt.NO_ERROR:const de=O.getResponseJson();je(Po,`XHR for RPC '${n}' ${f} received:`,JSON.stringify(de)),_(de);break;case vt.TIMEOUT:je(Po,`RPC '${n}' ${f} timed out`),w(new ye(ae.DEADLINE_EXCEEDED,"Request time out"));break;case vt.HTTP_ERROR:const Me=O.getStatus();if(je(Po,`RPC '${n}' ${f} failed with status:`,Me,"response text:",O.getResponseText()),Me>0){let qe=O.getResponseJson();Array.isArray(qe)&&(qe=qe[0]);const xt=null==qe?void 0:qe.error;if(xt&&xt.status&&xt.message){const an=function(hn){const Wn=hn.toLowerCase().replace(/_/g,"-");return Object.values(ae).indexOf(Wn)>=0?Wn:ae.UNKNOWN}(xt.status);w(new ye(an,xt.message))}else w(new ye(ae.UNKNOWN,"Server responded with status "+O.getStatus()))}else w(new ye(ae.UNAVAILABLE,"Connection failed."));break;default:B()}}finally{je(Po,`RPC '${n}' ${f} completed.`)}});const W=JSON.stringify(u);je(Po,`RPC '${n}' ${f} sending request:`,u),O.send(i,"POST",W,s,15)})}Oo(n,i,s){const u=Ds(),f=[this.wo,"/","google.firestore.v1.Firestore","/",n,"/channel"],_=Dt(),w=Xe(),O={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},W=this.longPollingOptions.timeoutSeconds;void 0!==W&&(O.longPollingTimeout=Math.round(1e3*W)),this.useFetchStreams&&(O.xmlHttpFactory=new lt({})),this.Fo(O.initMessageHeaders,i,s),O.encodeInitMessageHeaders=!0;const de=f.join("");je(Po,`Creating RPC '${n}' stream ${u}: ${de}`,O);const Me=_.createWebChannel(de,O);let qe=!1,xt=!1;const an=new zu({lo:hn=>{xt?je(Po,`Not sending because RPC '${n}' stream ${u} is closed:`,hn):(qe||(je(Po,`Opening RPC '${n}' stream ${u} transport.`),Me.open(),qe=!0),je(Po,`RPC '${n}' stream ${u} sending:`,hn),Me.send(hn))},ho:()=>Me.close()}),In=(hn,Wn,fr)=>{hn.listen(Wn,tr=>{try{fr(tr)}catch(Fr){setTimeout(()=>{throw Fr},0)}})};return In(Me,Pt.EventType.OPEN,()=>{xt||(je(Po,`RPC '${n}' stream ${u} transport opened.`),an.mo())}),In(Me,Pt.EventType.CLOSE,()=>{xt||(xt=!0,je(Po,`RPC '${n}' stream ${u} transport closed`),an.po())}),In(Me,Pt.EventType.ERROR,hn=>{xt||(xt=!0,ht(Po,`RPC '${n}' stream ${u} transport errored:`,hn),an.po(new ye(ae.UNAVAILABLE,"The operation could not be completed")))}),In(Me,Pt.EventType.MESSAGE,hn=>{var Wn;if(!xt){const fr=hn.data[0];K(!!fr);const Fr=fr.error||(null===(Wn=fr[0])||void 0===Wn?void 0:Wn.error);if(Fr){je(Po,`RPC '${n}' stream ${u} received error:`,Fr);const Si=Fr.status;let Yr=function(it){const _t=Hn[it];if(void 0!==_t)return Mr(_t)}(Si),mt=Fr.message;void 0===Yr&&(Yr=ae.INTERNAL,mt="Unknown error status: "+Si+" with message "+Fr.message),xt=!0,an.po(new ye(Yr,mt)),Me.close()}else je(Po,`RPC '${n}' stream ${u} received:`,fr),an.yo(fr)}}),In(w,Ge.STAT_EVENT,hn=>{hn.stat===Re.PROXY?je(Po,`RPC '${n}' stream ${u} detected buffering proxy`):hn.stat===Re.NOPROXY&&je(Po,`RPC '${n}' stream ${u} detected no buffering proxy`)}),setTimeout(()=>{an.fo()},0),an}}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&&je("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,O){this.oi=n,this.Go=s,this.zo=u,this.connection=f,this.authCredentialsProvider=_,this.appCheckCredentialsProvider=w,this.listener=O,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,Ae.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,Ae.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,Ae.A)(function*(){s.s_(),s.o_(),s.Yo.cancel(),s.jo++,4!==n?s.Yo.reset():i&&i.code===ae.RESOURCE_EXHAUSTED?(nn(i.toString()),nn("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 ye(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,Ae.A)(function*(){n.state=0,n.start()}))}c_(n){return je("PersistentStream",`close with error: ${n}`),this.stream=null,this.close(4,n)}a_(n){return i=>{this.oi.enqueueAndForget(()=>this.jo===n?i():(je("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"===(W=n.targetChange.targetChangeType||"NO_CHANGE")?0:"ADD"===W?1:"REMOVE"===W?2:"CURRENT"===W?3:"RESET"===W?4:B(),u=n.targetChange.targetIds||[],f=function(W,de){return W.useProto3Json?(K(void 0===de||"string"==typeof de),ri.fromBase64String(de||"")):(K(void 0===de||de instanceof Buffer||de instanceof Uint8Array),ri.fromUint8Array(de||new Uint8Array))}(l,n.targetChange.resumeToken),_=n.targetChange.cause,w=_&&function(W){const de=void 0===W.code?ae.UNKNOWN:Mr(W.code);return new ye(de,W.message||"")}(_);i=new di(s,u,f,w||null)}else if("documentChange"in n){const s=n.documentChange,u=ko(l,s.document.name),f=Gr(s.document.updateTime),_=s.document.createTime?Gr(s.document.createTime):sn.min(),w=new Cn({mapValue:{fields:s.document.fields}}),O=vr.newFoundDocument(u,f,_,w);i=new Wi(s.targetIds||[],s.removedTargetIds||[],O.key,O)}else if("documentDelete"in n){const s=n.documentDelete,u=ko(l,s.document),f=s.readTime?Gr(s.readTime):sn.min(),_=vr.newNoDocument(u,f);i=new Wi([],s.removedTargetIds||[],_.key,_)}else if("documentRemove"in n){const s=n.documentRemove,u=ko(l,s.document);i=new Wi([],s.removedTargetIds||[],u,null)}else{if(!("filter"in n))return B();{const s=n.filter,{count:u=0,unchangedNames:f}=s,_=new dn(u,f);i=new $i(s.targetId,_)}}var W;return i}(this.serializer,n),s=function(f){if(!("targetChange"in f))return sn.min();const _=f.targetChange;return _.targetIds&&_.targetIds.length?sn.min():_.readTime?Gr(_.readTime):sn.min()}(n);return this.listener.h_(i,s)}P_(n){const i={};i.database=Ks(this.serializer),i.addTarget=function(f,_){let w;const O=_.target;if(w=So(O)?{documents:Hl(f,O)}:{query:Gl(f,O)._t},w.targetId=_.targetId,_.resumeToken.approximateByteSize()>0){w.resumeToken=Gs(f,_.resumeToken);const W=ns(f,_.expectedCount);null!==W&&(w.expectedCount=W)}else if(_.snapshotVersion.compareTo(sn.min())>0){w.readTime=Ro(f,_.snapshotVersion.toTimestamp());const W=ns(f,_.expectedCount);null!==W&&(w.expectedCount=W)}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(K(!!n.streamToken),this.lastStreamToken=n.streamToken,this.T_){this.Yo.reset();const i=function cs(l,n){return l&&l.length>0?(K(void 0!==n),l.map(i=>function(u,f){let _=Gr(u.updateTime?u.updateTime:f);return _.isEqual(sn.min())&&(_=Gr(f)),new Rs(_,u.transformResults||[])}(i,n))):[]}(n.writeResults,n.commitTime),s=Gr(n.commitTime);return this.listener.A_(s,i)}return K(!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 $)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 Se))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 es)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 ye(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 ye(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 ye(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_?(nn(i),this.y_=!1):je("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,Ae.A)(function*(){var O;Qa(_)&&(je("RemoteStore","Restarting streams for network reachability change."),yield(O=(0,Ae.A)(function*(de){const Me=oe(de);Me.M_.add(4),yield tu(Me),Me.N_.set("Unknown"),Me.M_.delete(4),yield kc(Me)}),function W(de){return O.apply(this,arguments)})(_))}))}),this.N_=new $d(s,u)}}function kc(l){return Fc.apply(this,arguments)}function Fc(){return(Fc=(0,Ae.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,Ae.A)(function*(l){for(const n of l.x_)yield n(!1)})).apply(this,arguments)}function Xa(l,n){const i=oe(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=oe(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(sn.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 $o({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===oe(l).M_.size}function Lc(l){l.L_=void 0}function ag(l){return Bd.apply(this,arguments)}function Bd(){return(Bd=(0,Ae.A)(function*(l){l.N_.set("Online")})).apply(this,arguments)}function hf(l){return Gu.apply(this,arguments)}function Gu(){return(Gu=(0,Ae.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,Ae.A)(function*(l,n){Lc(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,Ae.A)(function*(l,n,i){if(l.N_.set("Online"),n instanceof di&&2===n.state&&n.cause)try{yield(s=(0,Ae.A)(function*(f,_){const w=_.cause;for(const O of _.targetIds)f.F_.has(O)&&(yield f.remoteSyncer.rejectListen(O,w),f.F_.delete(O),f.L_.removeTarget(O))}),function u(f,_){return s.apply(this,arguments)})(l,n)}catch(s){je("RemoteStore","Failed to remove targets %s: %s ",n.targetIds.join(","),s),yield Vc(l,s)}else if(n instanceof Wi?l.L_.Ke(n):n instanceof $i?l.L_.He(n):l.L_.We(n),!i.isEqual(sn.min()))try{const s=yield Ns(l.localStore);i.compareTo(s)>=0&&(yield function(f,_){const w=f.L_.rt(_);return w.targetChanges.forEach((O,W)=>{if(O.resumeToken.approximateByteSize()>0){const de=f.F_.get(W);de&&f.F_.set(W,de.withResumeToken(O.resumeToken,_))}}),w.targetMismatches.forEach((O,W)=>{const de=f.F_.get(O);if(!de)return;f.F_.set(O,de.withResumeToken(ri.EMPTY_BYTE_STRING,de.snapshotVersion)),cf(f,O);const Me=new Aa(de.target,O,W,de.sequenceNumber);uf(f,Me)}),f.remoteSyncer.applyRemoteEvent(w)}(l,i))}catch(s){je("RemoteStore","Failed to raise snapshot:",s),yield Vc(l,s)}var s}),pf.apply(this,arguments)}function Vc(l,n,i){return gf.apply(this,arguments)}function gf(){return(gf=(0,Ae.A)(function*(l,n,i){if(!xe(n))throw n;l.M_.add(1),yield tu(l),l.N_.set("Offline"),i||(i=()=>Ns(l.localStore)),l.asyncQueue.enqueueRetryable((0,Ae.A)(function*(){je("RemoteStore","Retrying IndexedDB access"),yield i(),l.M_.delete(1),yield kc(l)}))})).apply(this,arguments)}function mf(l,n){return n().catch(i=>Vc(l,i,n))}function Wu(l){return vf.apply(this,arguments)}function vf(){return(vf=(0,Ae.A)(function*(l){const n=oe(l),i=nu(n);let s=n.v_.length>0?n.v_[n.v_.length-1].batchId:-1;for(;py(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 Vc(n,u)}_f(n)&&hs(n)})).apply(this,arguments)}function py(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 hs(l){nu(l).start()}function gy(l){return jd.apply(this,arguments)}function jd(){return(jd=(0,Ae.A)(function*(l){nu(l).V_()})).apply(this,arguments)}function my(l){return Uc.apply(this,arguments)}function Uc(){return(Uc=(0,Ae.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,Ae.A)(function*(l,n,i){const s=l.v_.shift(),u=he.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,Ae.A)(function*(l,n){var i;n&&nu(l).E_&&(yield(i=(0,Ae.A)(function*(u,f){if(function zr(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)&&hs(l)}),yf.apply(this,arguments)}function cg(l,n){return Hd.apply(this,arguments)}function Hd(){return(Hd=(0,Ae.A)(function*(l,n){const i=oe(l);i.asyncQueue.verifyOperationInProgress(),je("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,Ae.A)(function*(l,n){const i=oe(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=oe(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,Ae.A)(function*(i){i?(l.B_.t_(),df(l)?Hu(l):l.N_.set("Unknown")):(yield l.B_.stop(),Lc(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=oe(i);return f.f_(),new lf(s,f.connection,f.authCredentials,f.appCheckCredentials,f.serializer,u)}(l.datastore,l.asyncQueue,{Po:()=>Promise.resolve(),To:gy.bind(null,l),Ao:Ku.bind(null,l),R_:my.bind(null,l),A_:Ya.bind(null,l)}),l.x_.push(function(){var n=(0,Ae.A)(function*(i){i?(l.k_.t_(),yield Wu(l)):(yield l.k_.stop(),l.v_.length>0&&(je("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 Te,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 ye(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(nn("AsyncQueue",`${n}: ${l}`),xe(l))return new ye(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=xi(),this.sortedSet=new ur(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 ur(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}):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,O,W){this.query=n,this.docs=i,this.oldDocs=s,this.docChanges=u,this.mutatedKeys=f,this.fromCache=_,this.syncStateChanged=w,this.excludesMetadataChanges=O,this.hasCachedResults=W}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)&&Jo(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 ls(n=>Na(n),Jo),this.onlineState="Unknown",this.z_=new Set}}function Os(l,n){return Ef.apply(this,arguments)}function Ef(){return(Ef=(0,Ae.A)(function*(l,n){const i=oe(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 $c(l,n){return iu.apply(this,arguments)}function iu(){return(iu=(0,Ae.A)(function*(l,n){const i=oe(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=oe(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=oe(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 Ft{constructor(n){this.key=n}}class un{constructor(n){this.key=n}}class Mn{constructor(n,i){this.query=n,this.la=i,this.ha=null,this.hasCachedResults=!1,this.current=!1,this.Pa=Dr(),this.mutatedKeys=Dr(),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 O="F"===this.query.limitType&&u.size===this.query.limit?u.last():null,W="L"===this.query.limitType&&u.size===this.query.limit?u.first():null;if(n.inorderTraversal((de,Me)=>{const qe=u.get(de),xt=Bs(this.query,Me)?Me:null,an=!!qe&&this.mutatedKeys.has(qe.key),In=!!xt&&(xt.hasLocalMutations||this.mutatedKeys.has(xt.key)&&xt.hasCommittedMutations);let hn=!1;qe&&xt?qe.data.isEqual(xt.data)?an!==In&&(s.track({type:3,doc:xt}),hn=!0):this.Ra(qe,xt)||(s.track({type:2,doc:xt}),hn=!0,(O&&this.Ia(xt,O)>0||W&&this.Ia(xt,W)<0)&&(w=!0)):!qe&&xt?(s.track({type:0,doc:xt}),hn=!0):qe&&!xt&&(s.track({type:1,doc:qe}),hn=!0,(O||W)&&(w=!0)),hn&&(xt?(_=_.add(xt),f=In?f.add(de):f.delete(de)):(_=_.delete(de),f=f.delete(de)))}),null!==this.query.limit)for(;_.size>this.query.limit;){const de="F"===this.query.limitType?_.last():_.first();_=_.delete(de.key),f=f.delete(de.key),s.track({type:1,doc:de})}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((de,Me)=>function(xt,an){const In=hn=>{switch(hn){case 0:return 1;case 2:case 3:return 2;case 1:return 0;default:return B()}};return In(xt)-In(an)}(de.type,Me.type)||this.Ia(de.doc,Me.doc)),this.Va(s),u=null!=u&&u;const w=i&&!u?this.ma():[],O=0===this.Pa.size&&this.current&&!u?1:0,W=O!==this.ha;return this.ha=O,0!==_.length||W?{snapshot:new ru(this.query,n.Ta,f,_,n.mutatedKeys,0===O,W,!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=Dr(),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 un(s))}),this.Pa.forEach(s=>{n.has(s)||i.push(new Ft(s))}),i}pa(n){this.la=n.hs,this.Pa=Dr();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 er{constructor(n,i,s){this.query=n,this.targetId=i,this.view=s}}class Qr{constructor(n){this.key=n,this.wa=!1}}class Fo{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 ls(w=>Na(w),Jo),this.Da=new Map,this.Ca=new Set,this.va=new ur(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 Ji(l,n){return sa.apply(this,arguments)}function sa(){return(sa=(0,Ae.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,Ae.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,Ae.A)(function*(l,n,i,s){const u=yield function ra(l,n){const i=oe(l);return i.persistence.runTransaction("Allocate target","readwrite",s=>{let u;return i.Qr.getTargetData(s,n).next(f=>f?(u=f,ue.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,Fn(n)),f=u.targetId,_=i?l.sharedClientState.addLocalQueryTarget(f):"not-current";let w;return s&&(w=yield function Ju(l,n,i,s,u){return Zu.apply(this,arguments)}(l,n,f,"current"===_,u.resumeToken)),l.isPrimaryClient&&i&&Xa(l.remoteStore,u),w})).apply(this,arguments)}function Zu(){return Zu=(0,Ae.A)(function*(l,n,i,s,u){l.Ba=(Me,qe,xt)=>{return(an=(0,Ae.A)(function*(hn,Wn,fr,tr){let Fr=Wn.view.da(fr);Fr.Xi&&(Fr=yield vl(hn.localStore,Wn.query,!1).then(({documents:He})=>Wn.view.da(He,Fr)));const Si=tr&&tr.targetChanges.get(Wn.targetId),Yr=tr&&null!=tr.targetMismatches.get(Wn.targetId),mt=Wn.view.applyChanges(Fr,hn.isPrimaryClient,Si,Yr);return Eg(hn,Wn.targetId,mt.fa),mt.snapshot}),function In(hn,Wn,fr,tr){return an.apply(this,arguments)})(l,Me,qe,xt);var an};const f=yield vl(l.localStore,n,!0),_=new Mn(n,f.hs),w=_.da(f.documents),O=bi.createSynthesizedTargetChangeForCurrentChange(i,s&&"Offline"!==l.onlineState,u),W=_.applyChanges(w,l.isPrimaryClient,O);Eg(l,i,W.fa);const de=new er(n,i,_);return l.ba.set(n,de),l.Da.has(i)?l.Da.get(i).push(n):l.Da.set(i,[n]),W.snapshot}),Zu.apply(this,arguments)}function Af(l,n,i){return su.apply(this,arguments)}function su(){return(su=(0,Ae.A)(function*(l,n,i){const s=oe(l),u=s.ba.get(n),f=s.Da.get(u.targetId);if(f.length>1)return s.Da.set(u.targetId,f.filter(_=>!Jo(_,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(Jr))):(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,Ae.A)(function*(l,n){const i=oe(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,Ae.A)(function*(l,n,i){const s=function Bc(l){const n=oe(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 O=oe(_),W=Jt.now(),de=w.reduce((xt,an)=>xt.add(an.key),Dr());let Me,qe;return O.persistence.runTransaction("Locally write mutations","readwrite",xt=>{let an=or(),In=Dr();return O.os.getEntries(xt,de).next(hn=>{an=hn,an.forEach((Wn,fr)=>{fr.isValidDocument()||(In=In.add(Wn))})}).next(()=>O.localDocuments.getOverlayedDocuments(xt,an)).next(hn=>{Me=hn;const Wn=[];for(const fr of w){const tr=pc(fr,Me.get(fr.key).overlayedDocument);null!=tr&&Wn.push(new lo(fr.key,tr,Nr(tr.value.mapValue),Ni.exists(!0)))}return O.mutationQueue.addMutationBatch(xt,W,Wn,w)}).next(hn=>{qe=hn;const Wn=hn.applyToLocalDocumentSet(Me,In);return O.documentOverlayCache.saveOverlays(xt,hn.batchId,Wn)})}).then(()=>({batchId:qe.batchId,changes:ro(Me)}))}(s.localStore,n);s.sharedClientState.addPendingMutation(u.batchId),function(_,w,O){let W=_.xa[_.currentUser.toKey()];W||(W=new ur($e)),W=W.insert(w,O),_.xa[_.currentUser.toKey()]=W}(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,Ae.A)(function*(l,n){const i=oe(l);try{const s=yield function og(l,n){const i=oe(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((de,Me)=>{const qe=u.get(Me);if(!qe)return;w.push(i.Qr.removeMatchingKeys(f,de.removedDocuments,Me).next(()=>i.Qr.addMatchingKeys(f,de.addedDocuments,Me)));let xt=qe.withSequenceNumber(f.currentSequenceNumber);var In,hn,Wn;null!==n.targetMismatches.get(Me)?xt=xt.withResumeToken(ri.EMPTY_BYTE_STRING,sn.min()).withLastLimboFreeSnapshotVersion(sn.min()):de.resumeToken.approximateByteSize()>0&&(xt=xt.withResumeToken(de.resumeToken,s)),u=u.insert(Me,xt),hn=xt,Wn=de,(0===(In=qe).resumeToken.approximateByteSize()||hn.snapshotVersion.toMicroseconds()-In.snapshotVersion.toMicroseconds()>=3e8||Wn.addedDocuments.size+Wn.modifiedDocuments.size+Wn.removedDocuments.size>0)&&w.push(i.Qr.updateTargetData(f,xt))});let O=or(),W=Dr();if(n.documentUpdates.forEach(de=>{n.resolvedLimboDocuments.has(de)&&w.push(i.persistence.referenceDelegate.updateLimboDocument(f,de))}),w.push(function $u(l,n,i){let s=Dr(),u=Dr();return i.forEach(f=>s=s.add(f)),n.getEntries(l,s).next(f=>{let _=or();return i.forEach((w,O)=>{const W=f.get(w);O.isFoundDocument()!==W.isFoundDocument()&&(u=u.add(w)),O.isNoDocument()&&O.version.isEqual(sn.min())?(n.removeEntry(w,O.readTime),_=_.insert(w,O)):!W.isValidDocument()||O.version.compareTo(W.version)>0||0===O.version.compareTo(W.version)&&W.hasPendingWrites?(n.addEntry(O),_=_.insert(w,O)):je("LocalStore","Ignoring outdated watch update for ",w,". Current version:",W.version," Watch version:",O.version)}),{cs:_,ls:u}})}(f,_,n.documentUpdates).next(de=>{O=de.cs,W=de.ls})),!s.isEqual(sn.min())){const de=i.Qr.getLastRemoteSnapshotVersion(f).next(Me=>i.Qr.setTargetsMetadata(f,f.currentSequenceNumber,s));w.push(de)}return ue.waitFor(w).next(()=>_.apply(f)).next(()=>i.localDocuments.getLocalViewOfDocuments(f,O,W)).next(()=>O)}).then(f=>(i.ns=u,f))}(i.localStore,n);n.targetChanges.forEach((u,f)=>{const _=i.Fa.get(f);_&&(K(u.addedDocuments.size+u.modifiedDocuments.size+u.removedDocuments.size<=1),u.addedDocuments.size>0?_.wa=!0:u.modifiedDocuments.size>0?K(_.wa):u.removedDocuments.size>0&&(K(_.wa),_.wa=!1))}),yield Dl(i,s,n)}catch(s){yield Jr(s)}})).apply(this,arguments)}function mg(l,n,i){const s=oe(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 O=oe(_);O.onlineState=w;let W=!1;O.queries.forEach((de,Me)=>{for(const qe of Me.U_)qe.j_(w)&&(W=!0)}),W&&Gd(O)}(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,Ae.A)(function*(l,n,i){const s=oe(l);s.sharedClientState.updateQueryState(n,"rejected",i);const u=s.Fa.get(n),f=u&&u.key;if(f){let _=new ur(Wt.comparator);_=_.insert(f,vr.newNoDocument(f,sn.min()));const w=Dr().add(f),O=new Gi(sn.min(),new Map,new ur($e),_,w);yield gg(s,O),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(Jr)})).apply(this,arguments)}function pv(l,n){return wf.apply(this,arguments)}function wf(){return(wf=(0,Ae.A)(function*(l,n){const i=oe(l),s=n.batch.batchId;try{const u=yield function Uu(l,n){const i=oe(l);return i.persistence.runTransaction("Acknowledge batch","readwrite-primary",s=>{const u=n.batch.keys(),f=i.os.newChangeBuffer({trackRemovals:!0});return function(w,O,W,de){const Me=W.batch,qe=Me.keys();let xt=ue.resolve();return qe.forEach(an=>{xt=xt.next(()=>de.getEntry(O,an)).next(In=>{const hn=W.docVersions.get(an);K(null!==hn),In.version.compareTo(hn)<0&&(Me.applyToRemoteDocument(In,W),In.isValidDocument()&&(In.setReadTime(W.commitVersion),de.addEntry(In)))})}),xt.next(()=>w.mutationQueue.removeMutationBatch(O,Me))}(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 O=Dr();for(let W=0;W0&&(O=O.add(w.batch.mutations[W].key));return O}(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 Jr(u)}})).apply(this,arguments)}function gv(l,n,i){return vg.apply(this,arguments)}function vg(){return(vg=(0,Ae.A)(function*(l,n,i){const s=oe(l);try{const u=yield function(_,w){const O=oe(_);return O.persistence.runTransaction("Reject batch","readwrite-primary",W=>{let de;return O.mutationQueue.lookupMutationBatch(W,w).next(Me=>(K(null!==Me),de=Me.keys(),O.mutationQueue.removeMutationBatch(W,Me))).next(()=>O.mutationQueue.performConsistencyCheck(W)).next(()=>O.documentOverlayCache.removeOverlaysForBatchId(W,de,w)).next(()=>O.localDocuments.recalculateAndSaveOverlaysForDocumentKeys(W,de)).next(()=>O.localDocuments.getDocuments(W,de))})}(s.localStore,n);Sf(s,n,i),yg(s,n),s.sharedClientState.updateMutationState(n,"rejected",i),yield Dl(s,u)}catch(u){yield Jr(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=oe(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 Ft?(l.Ma.addReference(s.key,n),_y(l,s)):s instanceof un?(je("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 _y(l,n){const i=n.key,s=i.path.canonicalString();l.va.get(i)||l.Ca.has(s)||(je("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(O,n,i).then(W=>{if((W||i)&&s.isPrimaryClient&&s.sharedClientState.updateQueryState(O.targetId,W&&!W.fromCache?"current":"not-current"),W){u.push(W);const de=wi.Ki(O.targetId,W);f.push(de)}}))}),yield Promise.all(_),s.Sa.h_(u),yield(w=(0,Ae.A)(function*(W,de){const Me=oe(W);try{yield Me.persistence.runTransaction("notifyLocalViewChanges","readwrite",qe=>ue.forEach(de,xt=>ue.forEach(xt.qi,an=>Me.persistence.referenceDelegate.addReference(qe,xt.targetId,an)).next(()=>ue.forEach(xt.Qi,an=>Me.persistence.referenceDelegate.removeReference(qe,xt.targetId,an)))))}catch(qe){if(!xe(qe))throw qe;je("LocalStore","Failed to update sequence numbers: "+qe)}for(const qe of de){const xt=qe.targetId;if(!qe.fromCache){const an=Me.ns.get(xt),hn=an.withLastLimboFreeSnapshotVersion(an.snapshotVersion);Me.ns=Me.ns.insert(xt,hn)}}}),function O(W,de){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,Ae.A)(function*(l,n){const i=oe(l);if(!i.currentUser.isEqual(n)){je("SyncEngine","User change. New user:",n.toKey());const s=yield Od(i.localStore,n);i.currentUser=n,(f=i).Oa.forEach(w=>{w.forEach(O=>{O.reject(new ye(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=oe(l),s=i.Fa.get(n);if(s&&s.wa)return Dr().add(s.key);{let u=Dr();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=oe(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 Ja{constructor(){this.synchronizeTabs=!1}initialize(n){var i=this;return(0,Ae.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 Zh,n.initialUser,this.serializer)}createPersistence(n){return new bc(Da.Hr,this.serializer)}createSharedClientState(n){return new rf}terminate(){var n=this;return(0,Ae.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 Za{initialize(n,i){var s=this;return(0,Ae.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 Vd(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=Ld.D()?new Ld:new sf,new Cl(s,u,f,_,w);var s,u,f,_,w}createSyncEngine(n,i){return function(u,f,_,w,O,W,de){const Me=new Fo(u,f,_,w,O,W);return de&&(Me.La=!0),Me}(this.localStore,this.remoteStore,this.eventManager,this.sharedClientState,n.initialUser,n.maxConcurrentLimboResolutions,i)}terminate(){var n=this;return(0,Ae.A)(function*(){var i,s;yield(s=(0,Ae.A)(function*(f){const _=oe(f);je("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):nn("Uncaught Error in snapshot listener:",n.toString())}$a(){this.muted=!0}Ka(n,i){this.muted||setTimeout(()=>{this.muted||n(i)},0)}}class Ty{constructor(n,i,s,u){var f=this;this.authCredentials=n,this.appCheckCredentials=i,this.asyncQueue=s,this.databaseInfo=u,this.user=We.UNAUTHENTICATED,this.clientId=Jn.newId(),this.authCredentialListener=()=>Promise.resolve(),this.appCheckCredentialListener=()=>Promise.resolve(),this.authCredentials.start(s,function(){var _=(0,Ae.A)(function*(w){je("FirestoreClient","Received user=",w.uid),yield f.authCredentialListener(w),f.user=w});return function(w){return _.apply(this,arguments)}}()),this.appCheckCredentials.start(s,_=>(je("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 ye(ae.FAILED_PRECONDITION,"The client has already been terminated.")}terminate(){var n=this;this.asyncQueue.enterRestrictedMode();const i=new Te;return this.asyncQueue.enqueueAndForgetEvenWhileRestricted((0,Ae.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,Ae.A)(function*(l,n){l.asyncQueue.verifyOperationInProgress(),je("FirestoreClient","Initializing OfflineComponentProvider");const i=l.configuration;yield n.initialize(i);let s=i.initialUser;l.setCredentialChangeListener(function(){var u=(0,Ae.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,Ae.A)(function*(l,n){l.asyncQueue.verifyOperationInProgress();const i=yield function tc(l){return Nf.apply(this,arguments)}(l);je("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,Ae.A)(function*(l){if(!l._offlineComponents)if(l._uninitializedComponentsProvider){je("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;ht("Error using user provided cache. Falling back to memory cache: "+i),yield Pf(l,new Ja)}}else je("FirestoreClient","Using default OfflineComponentProvider"),yield Pf(l,new Ja);return l._offlineComponents})).apply(this,arguments)}function Gc(l){return Sg.apply(this,arguments)}function Sg(){return(Sg=(0,Ae.A)(function*(l){return l._onlineComponents||(l._uninitializedComponentsProvider?(je("FirestoreClient","Using user provided OnlineComponentProvider"),yield xf(l,l._uninitializedComponentsProvider._online)):(je("FirestoreClient","Using default OnlineComponentProvider"),yield xf(l,new Za))),l._onlineComponents})).apply(this,arguments)}function uu(l){return Mg.apply(this,arguments)}function Mg(){return(Mg=(0,Ae.A)(function*(l){const n=yield Gc(l),i=n.eventManager;return i.onListen=Ji.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 ah(l){const n={};return void 0!==l.timeoutSeconds&&(n.timeoutSeconds=l.timeoutSeconds),n}const Ff=new Map;function Lf(l,n,i){if(!i)throw new ye(ae.INVALID_ARGUMENT,`Function ${l}() cannot be called with an empty ${n}.`)}function Og(l){if(!Wt.isDocumentKey(l))throw new ye(ae.INVALID_ARGUMENT,`Invalid document reference. Document references must have an even number of segments, but ${l} has ${l.length}.`)}function kg(l){if(Wt.isDocumentKey(l))throw new ye(ae.INVALID_ARGUMENT,`Invalid collection reference. Collection references must have an odd number of segments, but ${l} has ${l.length}.`)}function Vf(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 ai(l,n){if("_delegate"in l&&(l=l._delegate),!(l instanceof n)){if(n.name===l.constructor.name)throw new ye(ae.INVALID_ARGUMENT,"Type does not match the expected instance. Did you pass a reference from a different Firestore SDK?");{const i=Vf(l);throw new ye(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 ye(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 ye(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 ye(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 ye(ae.INVALID_ARGUMENT,`invalid long polling timeout: ${f.timeoutSeconds} (must not be NaN)`);if(f.timeoutSeconds<5)throw new ye(ae.INVALID_ARGUMENT,`invalid long polling timeout: ${f.timeoutSeconds} (minimum allowed value is 5)`);if(f.timeoutSeconds>30)throw new ye(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 ye(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 ye(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 Nt;switch(s.type){case"firstParty":return new jn(s.sessionIndex||"0",s.iamToken||null,s.authTokenFactory||null);case"provider":return s.client;default:throw new ye(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&&(je("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,ge(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 rE(l,n,...i){if(l=(0,be.Ku)(l),Lf("collection","path",n),l instanceof lh){const s=_n.fromString(n,...i);return kg(s),new bl(l,null,s)}{if(!(l instanceof go||l instanceof bl))throw new ye(ae.INVALID_ARGUMENT,"Expected first argument to collection() to be a CollectionReference, a DocumentReference or FirebaseFirestore");const s=l._path.child(_n.fromString(n,...i));return kg(s),new bl(l.firestore,null,s)}}function Sy(l,n,...i){if(l=(0,be.Ku)(l),1===arguments.length&&(n=Jn.newId()),Lf("doc","path",n),l instanceof lh){const s=_n.fromString(n,...i);return Og(s),new go(l,null,new Wt(s))}{if(!(l instanceof go||l instanceof bl))throw new ye(ae.INVALID_ARGUMENT,"Expected first argument to collection() to be a CollectionReference, a DocumentReference or FirebaseFirestore");const s=l._path.child(_n.fromString(n,...i));return Og(s),new go(l.firestore,l instanceof bl?l.converter:null,new Wt(s))}}class Ry{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&&je("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 Te;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,Ae.A)(function*(){if(0!==n.su.length){try{yield n.su[0](),n.su.shift(),n.Yo.reset()}catch(i){if(!xe(i))throw i;je("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,nn("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,Ae.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 Oi extends lh{constructor(n,i,s,u){super(n,i,s,u),this.type="firestore",this._queue=new Ry,this._persistenceKey=(null==u?void 0:u.name)||"[DEFAULT]"}_terminate(){return this._firestoreClient||Vg(this),this._firestoreClient.terminate()}}function uh(l,n){const i="object"==typeof l?l:(0,se.Sx)(),s="string"==typeof l?l:n||"(default)",u=(0,se.j6)(i,"firestore").getImmediate({identifier:s});if(!u._initialized){const f=(0,be.yU)("firestore");f&&function cu(l,n,i,s={}){var u;const f=(l=ai(l,lh))._getSettings(),_=`${n}:${i}`;if("firestore.googleapis.com"!==f.host&&f.host!==_&&ht("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,O;if("string"==typeof s.mockUserToken)w=s.mockUserToken,O=We.MOCK_USER;else{w=(0,be.Fy)(s.mockUserToken,null===(u=l._app)||void 0===u?void 0:u.options.projectId);const W=s.mockUserToken.sub||s.mockUserToken.user_id;if(!W)throw new ye(ae.INVALID_ARGUMENT,"mockUserToken must contain 'sub' or 'user_id' field!");O=new We(W)}l._authCredentials=new jt(new ft(w,O))}}(u,...f)}return u}function to(l){return l._firestoreClient||Vg(l),l._firestoreClient.verifyNotTerminated(),l._firestoreClient}function Vg(l){var n,i,s;const u=l._freezeSettings(),f=(O=(null===(n=l._app)||void 0===n?void 0:n.options.appId)||"",new co(l._databaseId,O,l._persistenceKey,(de=u).host,de.ssl,de.experimentalForceLongPolling,de.experimentalAutoDetectLongPolling,ah(de.experimentalLongPollingOptions),de.useFetchStreams));var O,de;l._firestoreClient=new Ty(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(ri.fromBase64String(n))}catch(i){throw new ye(ae.INVALID_ARGUMENT,"Failed to construct data from Base64 string: "+i)}}static fromUint8Array(n){return new nc(ri.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 ye(ae.INVALID_ARGUMENT,"Latitude must be a number between -90 and 90, but was: "+n);if(!isFinite(i)||i<-180||i>180)throw new ye(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 $e(this._lat,n._lat)||$e(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)}}class Ov{constructor(n,i,s){this.data=n,this.fieldMask=i,this.fieldTransforms=s}toMutation(n,i){return new lo(n,this.data,this.fieldMask,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;nO.covers(Me.field))}else O=null,W=_.fieldTransforms;return new Uf(new Cn(w),O,W)}class Qc extends qc{_toFieldTransform(n){if(2!==n.fu)throw n.Du(1===n.fu?`${this._methodName}() can only appear at the top level of your update data`:`${this._methodName}() cannot be used with set() unless you pass {merge:true}`);return n.fieldMask.push(n.path),null}isEqual(n){return n instanceof Qc}}function Sa(l,n){if(Lv(l=(0,be.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 O=Sa(w,u.bu(_));null==O&&(O={nullValue:"NULL_VALUE"}),f.push(O),_++}return{arrayValue:{values:f}}}(l,n)}return function(s,u){if(null===(s=(0,be.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=Jt.fromDate(s);return{timestampValue:Ro(u.serializer,f)}}if(s instanceof Jt){const f=new Jt(s.seconds,1e3*Math.floor(s.nanoseconds/1e3));return{timestampValue:Ro(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: ${Vf(s)}`)}(l,n)}function Fv(l,n){const i={};return gr(l)?n.path&&n.path.length>0&&n.fieldMask.push(n.path):Br(l,(s,u)=>{const f=Sa(u,n.pu(s));null!=f&&(i[s]=f)}),{mapValue:{fields:i}}}function Lv(l){return!("object"!=typeof l||null===l||l instanceof Array||l instanceof Date||l instanceof Jt||l instanceof Ug||l instanceof nc||l instanceof go||l instanceof qc)}function Gg(l,n,i){if(!Lv(i)||"object"!=typeof(u=i)||null===u||Object.getPrototypeOf(u)!==Object.prototype&&null!==Object.getPrototypeOf(u)){const s=Vf(i);throw n.Du("an object"===s?l+" a custom object":l+" "+s)}var u}function Yc(l,n,i){if((n=(0,be.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 Ly=new RegExp("[~\\*/\\[\\]]");function Hf(l,n,i){if(n.search(Ly)>=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 O="";return(f||_)&&(O+=" (found",f&&(O+=` in field ${s}`),_&&(O+=` in document ${u}`),O+=")"),new ye(ae.INVALID_ARGUMENT,w+l+O)}function Vv(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 Vy(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(Jc("DocumentSnapshot.get",n));if(null!==i)return this._userDataWriter.convertValue(i)}}}class Vy extends dh{data(){return super.data()}}function Jc(l,n){return"string"==typeof n?Hf(l,n):n instanceof hu?n._internalPath:n._delegate._internalPath}class qg{convertValue(n,i="none"){switch(q(n)){case 0:return null;case 1:return n.booleanValue;case 2:return vi(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(Gn(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 Br(n,(u,f)=>{s[u]=this.convertValue(f,i)}),s}convertGeoPoint(n){return new Ug(vi(n.latitude),vi(n.longitude))}convertArray(n,i){return(n.values||[]).map(s=>this.convertValue(s,i))}convertServerTimestamp(n,i){switch(i){case"previous":const s=To(n);return null==s?null:this.convertValue(s,i);case"estimate":return this.convertTimestamp(Do(n));default:return null}}convertTimestamp(n){const i=jr(n);return new Jt(i.seconds,i.nanos)}convertDocumentKey(n,i){const s=_n.fromString(n);K(Td(s));const u=new bo(s.get(1),s.get(3)),f=new Wt(s.popFirst(5));return u.isEqual(i)||nn(`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(Jc("DocumentSnapshot.get",n));if(null!==s)return this._userDataWriter.convertValue(s,i.serverTimestamps)}}}class td extends oc{data(n={}){return super.data(n)}}class Rl{constructor(n,i,s,u){this._firestore=n,this._userDataWriter=i,this._snapshot=u,this.metadata=new Sl(u.hasPendingWrites,u.fromCache),this.query=s}get docs(){const n=[];return this.forEach(i=>n.push(i)),n}get size(){return this._snapshot.docs.size}get empty(){return 0===this.size}forEach(n,i){this._snapshot.docs.forEach(s=>{n.call(i,new td(this._firestore,this._userDataWriter,s.key,s,new Sl(this._snapshot.mutatedKeys.has(s.key),this._snapshot.fromCache),this.query.converter))})}docChanges(n={}){const i=!!n.includeMetadataChanges;if(i&&this._snapshot.excludesMetadataChanges)throw new ye(ae.INVALID_ARGUMENT,"To include metadata changes with your document changes, you must also pass { includeMetadataChanges:true } to onSnapshot().");return this._cachedChanges&&this._cachedChangesIncludeMetadataChanges===i||(this._cachedChanges=function(u,f){if(u._snapshot.oldDocs.isEmpty()){let _=0;return u._snapshot.docChanges.map(w=>({type:"added",doc:new td(u._firestore,u._userDataWriter,w.doc.key,w.doc,new Sl(u._snapshot.mutatedKeys.has(w.doc.key),u._snapshot.fromCache),u.query.converter),oldIndex:-1,newIndex:_++}))}{let _=u._snapshot.oldDocs;return u._snapshot.docChanges.filter(w=>f||3!==w.type).map(w=>{const O=new td(u._firestore,u._userDataWriter,w.doc.key,w.doc,new Sl(u._snapshot.mutatedKeys.has(w.doc.key),u._snapshot.fromCache),u.query.converter);let W=-1,de=-1;return 0!==w.type&&(W=_.indexOf(w.doc.key),_=_.delete(w.doc.key)),1!==w.type&&(_=_.add(w.doc),de=_.indexOf(w.doc.key)),{type:Wy(w.type),doc:O,oldIndex:W,newIndex:de}})}}(this,i),this._cachedChangesIncludeMetadataChanges=i),this._cachedChanges}}function Wy(l){switch(l){case 0:return"added";case 2:case 3:return"modified";case 1:return"removed";default:return B()}}function jv(l){l=ai(l,go);const n=ai(l.firestore,Oi);return function sh(l,n,i={}){const s=new Te;return l.asyncQueue.enqueueAndForget((0,Ae.A)(function*(){return function(f,_,w,O,W){const de=new Hc({next:qe=>{_.enqueueAndForget(()=>$c(f,Me));const xt=qe.docs.has(w);!xt&&qe.fromCache?W.reject(new ye(ae.UNAVAILABLE,"Failed to get document because the client is offline.")):xt&&qe.fromCache&&O&&"server"===O.source?W.reject(new ye(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.)')):W.resolve(qe)},error:qe=>W.reject(qe)}),Me=new v(ge(w.path),de,{includeMetadataChanges:!0,ra:!0});return Os(f,Me)}(yield uu(l),l.asyncQueue,n,i,s)})),s.promise}(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 zv(l){l=ai(l,po);const n=ai(l.firestore,Oi),i=to(n),s=new fu(n);return function Uy(l){if("L"===l.limitType&&0===l.explicitOrderBy.length)throw new ye(ae.UNIMPLEMENTED,"limitToLast() queries require specifying at least one orderBy() clause")}(l._query),function xg(l,n,i={}){const s=new Te;return l.asyncQueue.enqueueAndForget((0,Ae.A)(function*(){return function(f,_,w,O,W){const de=new Hc({next:qe=>{_.enqueueAndForget(()=>$c(f,Me)),qe.fromCache&&"server"===O.source?W.reject(new ye(ae.UNAVAILABLE,'Failed to get documents from server. (However, these documents may exist in the local cache. Run again without setting source to "server" to retrieve the cached documents.)')):W.resolve(qe)},error:qe=>W.reject(qe)}),Me=new v(w,de,{includeMetadataChanges:!0,ra:!0});return Os(f,Me)}(yield uu(l),l.asyncQueue,n,i,s)})),s.promise}(i,l._query).then(u=>new Rl(n,s,l,u))}function Jg(l,n,i){l=ai(l,go);const s=ai(l.firestore,Oi),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 rd(s,[jf(rc(s),"setDoc",l._key,u,null!==l.converter,i).toMutation(l._key,Ni.none())])}function Ky(l,n,i,...s){l=ai(l,go);const u=ai(l.firestore,Oi),f=rc(u);let _;return _="string"==typeof(n=(0,be.Ku)(n))||n instanceof hu?function kv(l,n,i,s,u,f){const _=l.Fu(1,n,i),w=[Yc(n,s,i)],O=[u];if(f.length%2!=0)throw new ye(ae.INVALID_ARGUMENT,`Function ${n}() needs to be called with an even number of arguments that alternate between field names and values.`);for(let qe=0;qe=0;--qe)if(!Vv(W,w[qe])){const xt=w[qe];let an=O[qe];an=(0,be.Ku)(an);const In=_.Su(xt);if(an instanceof Qc)W.push(xt);else{const hn=Sa(an,In);null!=hn&&(W.push(xt),de.set(xt,hn))}}const Me=new gi(W);return new Ov(de,Me,_.fieldTransforms)}(f,"updateDoc",l._key,n,i,s):function zf(l,n,i,s){const u=l.Fu(1,n,i);Gg("Data must be an object, but it was:",u,s);const f=[],_=Cn.empty();Br(s,(O,W)=>{const de=Hf(n,O,i);W=(0,be.Ku)(W);const Me=u.Su(de);if(W instanceof Qc)f.push(de);else{const qe=Sa(W,Me);null!=qe&&(f.push(de),_.set(de,qe))}});const w=new gi(f);return new Ov(_,w,u.fieldTransforms)}(f,"updateDoc",l._key,n),rd(u,[_.toMutation(l._key,Ni.exists(!0))])}function qy(l){return rd(ai(l.firestore,Oi),[new $(l._key,Ni.none())])}function rd(l,n){return function(s,u){const f=new Te;return s.asyncQueue.enqueueAndForget((0,Ae.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)}!function(n,i=!0){bt=se.MF,(0,se.om)(new Je.uA("firestore",(s,{instanceIdentifier:u,options:f})=>{const _=s.getProvider("app").getImmediate(),w=new Oi(new vn(s.getProvider("auth-internal")),new Qn(s.getProvider("app-check-internal")),function(W,de){if(!Object.prototype.hasOwnProperty.apply(W.options,["projectId"]))throw new ye(ae.INVALID_ARGUMENT,'"projectId" not provided in firebase.initializeApp.');return new bo(W.options.projectId,de)}(_,u),_);return f=Object.assign({useFetchStreams:i},f),w._setSettings(f),w},"PUBLIC").setMultipleInstances(!0)),(0,se.KO)(Ot,"4.6.3",n),(0,se.KO)(Ot,"4.6.3","esm2017")}();class vh{constructor(n){return n}}const ep="firestore",im=new c.nKC("angularfire2.firestore-instances");function u0(l){return(n,i)=>{const s=n.runOutsideAngular(()=>l(i));return new vh(s)}}const c0={provide:class l0{constructor(){return(0,g.CA)(ep)}},deps:[[new c.Xx1,im]]},d0={provide:vh,useFactory:function Yv(l,n){const i=(0,g.lR)(ep,l,n);return i&&new vh(i)},deps:[[new c.Xx1,im],ve.XU]};function Jv(l,...n){return(0,Y.KO)("angularfire",g.xv.full,"fst"),(0,c.EmA)([d0,c0,{provide:im,useFactory:u0(l),multi:!0,deps:[c.SKi,c.zZn,g.u0,ve.gL,[new c.Xx1,Fe.DF],[new c.Xx1,g.Jv],...n]}])}const g0=(0,g.S3)(rE,!0),m0=(0,g.S3)(qy,!0),sm=(0,g.S3)(Sy,!0),lm=(0,g.S3)(jv,!0),r_=(0,g.S3)(zv,!0),um=(0,g.S3)(uh,!0),S0=(0,g.S3)(Jg,!0),R0=(0,g.S3)(Ky,!0)},3586:(Tn,Tt,j)=>{"use strict";j.d(Tt,{xv:()=>Re,u0:()=>It,Jv:()=>Ot,CA:()=>Dt,lR:()=>Xe,S3:()=>ae});var g=j(9842),c=j(4438),ve=j(2214),Fe=j(8359);class Y extends Fe.yU{constructor(Te,ft){super()}schedule(Te,ft=0){return this}}const Ae={setInterval(ye,Te,...ft){const{delegate:Nt}=Ae;return null!=Nt&&Nt.setInterval?Nt.setInterval(ye,Te,...ft):setInterval(ye,Te,...ft)},clearInterval(ye){const{delegate:Te}=Ae;return((null==Te?void 0:Te.clearInterval)||clearInterval)(ye)},delegate:void 0};var se=j(7908);class Je extends Y{constructor(Te,ft){super(Te,ft),this.scheduler=Te,this.work=ft,this.pending=!1}schedule(Te,ft=0){var Nt;if(this.closed)return this;this.state=Te;const jt=this.id,vn=this.scheduler;return null!=jt&&(this.id=this.recycleAsyncId(vn,jt,ft)),this.pending=!0,this.delay=ft,this.id=null!==(Nt=this.id)&&void 0!==Nt?Nt:this.requestAsyncId(vn,this.id,ft),this}requestAsyncId(Te,ft,Nt=0){return Ae.setInterval(Te.flush.bind(Te,this),Nt)}recycleAsyncId(Te,ft,Nt=0){if(null!=Nt&&this.delay===Nt&&!1===this.pending)return ft;null!=ft&&Ae.clearInterval(ft)}execute(Te,ft){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const Nt=this._execute(Te,ft);if(Nt)return Nt;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(Te,ft){let jt,Nt=!1;try{this.work(Te)}catch(vn){Nt=!0,jt=vn||new Error("Scheduled action threw falsy error")}if(Nt)return this.unsubscribe(),jt}unsubscribe(){if(!this.closed){const{id:Te,scheduler:ft}=this,{actions:Nt}=ft;this.work=this.state=this.scheduler=null,this.pending=!1,(0,se.o)(Nt,this),null!=Te&&(this.id=this.recycleAsyncId(ft,Te,null)),this.delay=null,super.unsubscribe()}}}const be={now:()=>(be.delegate||Date).now(),delegate:void 0};class Ee{constructor(Te,ft=Ee.now){this.schedulerActionCtor=Te,this.now=ft}schedule(Te,ft=0,Nt){return new this.schedulerActionCtor(this,Te).schedule(Nt,ft)}}Ee.now=be.now;class Ve extends Ee{constructor(Te,ft=Ee.now){super(Te,ft),this.actions=[],this._active=!1}flush(Te){const{actions:ft}=this;if(this._active)return void ft.push(Te);let Nt;this._active=!0;do{if(Nt=Te.execute(Te.state,Te.delay))break}while(Te=ft.shift());if(this._active=!1,Nt){for(;Te=ft.shift();)Te.unsubscribe();throw Nt}}}const Le=new class Be extends Ve{}(class et extends Je{constructor(Te,ft){super(Te,ft),this.scheduler=Te,this.work=ft}schedule(Te,ft=0){return ft>0?super.schedule(Te,ft):(this.delay=ft,this.state=Te,this.scheduler.flush(this),this)}execute(Te,ft){return ft>0||this.closed?super.execute(Te,ft):this._execute(Te,ft)}requestAsyncId(Te,ft,Nt=0){return null!=Nt&&Nt>0||null==Nt&&this.delay>0?super.requestAsyncId(Te,ft,Nt):(Te.flush(this),0)}}),pt=new Ve(Je);var lt=j(1985),Pt=j(8141),yt=j(6745),vt=j(941);const Re=new c.RxE("ANGULARFIRE2_VERSION");function Xe(ye,Te,ft){if(Te){if(1===Te.length)return Te[0];const vn=Te.filter(Sn=>Sn.app===ft);if(1===vn.length)return vn[0]}return ft.container.getProvider(ye).getImmediate({optional:!0})}const Dt=(ye,Te)=>{const ft=Te?[Te]:(0,ve.Dk)(),Nt=[];return ft.forEach(jt=>{jt.container.getProvider(ye).instances.forEach(Sn=>{Nt.includes(Sn)||Nt.push(Sn)})}),Nt};class Ot{constructor(){return Dt(We)}}const We="app-check";function bt(){}class Ut{constructor(Te,ft=Le){(0,g.A)(this,"zone",void 0),(0,g.A)(this,"delegate",void 0),this.zone=Te,this.delegate=ft}now(){return this.delegate.now()}schedule(Te,ft,Nt){const jt=this.zone;return this.delegate.schedule(function(Sn){jt.runGuarded(()=>{Te.apply(this,[Sn])})},ft,Nt)}}class Zt{constructor(Te){(0,g.A)(this,"zone",void 0),(0,g.A)(this,"task",null),this.zone=Te}call(Te,ft){const Nt=this.unscheduleTask.bind(this);return this.task=this.zone.run(()=>Zone.current.scheduleMacroTask("firebaseZoneBlock",bt,{},bt,bt)),ft.pipe((0,Pt.M)({next:Nt,complete:Nt,error:Nt})).subscribe(Te).add(Nt)}unscheduleTask(){setTimeout(()=>{null!=this.task&&"scheduled"===this.task.state&&(this.task.invoke(),this.task=null)},10)}}let It=(()=>{var ye;class Te{constructor(Nt){(0,g.A)(this,"ngZone",void 0),(0,g.A)(this,"outsideAngular",void 0),(0,g.A)(this,"insideAngular",void 0),this.ngZone=Nt,this.outsideAngular=Nt.runOutsideAngular(()=>new Ut(Zone.current)),this.insideAngular=Nt.run(()=>new Ut(Zone.current,pt)),globalThis.\u0275AngularFireScheduler||(globalThis.\u0275AngularFireScheduler=this)}}return ye=Te,(0,g.A)(Te,"\u0275fac",function(Nt){return new(Nt||ye)(c.KVO(c.SKi))}),(0,g.A)(Te,"\u0275prov",c.jDH({token:ye,factory:ye.\u0275fac,providedIn:"root"})),Te})();function je(){const ye=globalThis.\u0275AngularFireScheduler;if(!ye)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 ye}function ht(ye){return je().ngZone.run(()=>ye())}function K(ye){return function ne(ye){return function(ft){return(ft=ft.lift(new Zt(ye.ngZone))).pipe((0,yt._)(ye.outsideAngular),(0,vt.Q)(ye.insideAngular))}}(je())(ye)}const oe=(ye,Te)=>function(){const Nt=arguments;return Te&&setTimeout(()=>{"scheduled"===Te.state&&Te.invoke()},10),ht(()=>ye.apply(void 0,Nt))},ae=(ye,Te)=>function(){let ft;const Nt=arguments;for(let vn=0;vnZone.current.scheduleMacroTask("firebaseZoneBlock",bt,{},bt,bt)))),Nt[vn]=oe(Nt[vn],ft));const jt=function nn(ye){return je().ngZone.runOutsideAngular(()=>ye())}(()=>ye.apply(this,Nt));if(!Te){if(jt instanceof lt.c){const vn=je();return jt.pipe((0,yt._)(vn.outsideAngular),(0,vt.Q)(vn.insideAngular))}return ht(()=>jt)}return jt instanceof lt.c?jt.pipe(K):jt instanceof Promise?ht(()=>new Promise((vn,Sn)=>jt.then(jn=>ht(()=>vn(jn)),jn=>ht(()=>Sn(jn))))):"function"==typeof jt&&ft?function(){return setTimeout(()=>{ft&&"scheduled"===ft.state&&ft.invoke()},10),jt.apply(this,arguments)}:ht(()=>jt)}},4341:(Tn,Tt,j)=>{"use strict";j.d(Tt,{YN:()=>da,zX:()=>Ii,VZ:()=>Ko,cz:()=>Xe,kq:()=>Ze,vO:()=>kt,BC:()=>_n,vS:()=>ir});var g=j(4438),c=j(177),ve=j(8455),Fe=j(1985),Y=j(3073),Ae=j(8750),se=j(3794),Je=j(4360),et=j(6450),be=j(8496),Ve=j(6354);let Be=(()=>{var z;class x{constructor(G,we){this._renderer=G,this._elementRef=we,this.onChange=ln=>{},this.onTouched=()=>{}}setProperty(G,we){this._renderer.setProperty(this._elementRef.nativeElement,G,we)}registerOnTouched(G){this.onTouched=G}registerOnChange(G){this.onChange=G}setDisabledState(G){this.setProperty("disabled",G)}}return(z=x).\u0275fac=function(G){return new(G||z)(g.rXU(g.sFG),g.rXU(g.aKT))},z.\u0275dir=g.FsC({type:z}),x})(),Le=(()=>{var z;class x extends Be{}return(z=x).\u0275fac=(()=>{let ge;return function(we){return(ge||(ge=g.xGo(z)))(we||z)}})(),z.\u0275dir=g.FsC({type:z,features:[g.Vt3]}),x})();const Ze=new g.nKC(""),lt={provide:Ze,useExisting:(0,g.Rfq)(()=>vt),multi:!0},yt=new g.nKC("");let vt=(()=>{var z;class x extends Be{constructor(G,we,ln){super(G,we),this._compositionMode=ln,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function Pt(){const z=(0,c.QT)()?(0,c.QT)().getUserAgent():"";return/android (\d+)/.test(z.toLowerCase())}())}writeValue(G){this.setProperty("value",null==G?"":G)}_handleInput(G){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(G)}_compositionStart(){this._composing=!0}_compositionEnd(G){this._composing=!1,this._compositionMode&&this.onChange(G)}}return(z=x).\u0275fac=function(G){return new(G||z)(g.rXU(g.sFG),g.rXU(g.aKT),g.rXU(yt,8))},z.\u0275dir=g.FsC({type:z,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(G,we){1&G&&g.bIt("input",function(Fn){return we._handleInput(Fn.target.value)})("blur",function(){return we.onTouched()})("compositionstart",function(){return we._compositionStart()})("compositionend",function(Fn){return we._compositionEnd(Fn.target.value)})},features:[g.Jv_([lt]),g.Vt3]}),x})();function Re(z){return null==z||("string"==typeof z||Array.isArray(z))&&0===z.length}const Xe=new g.nKC(""),Dt=new g.nKC("");function B(z){return null}function K(z){return null!=z}function ne(z){return(0,g.jNT)(z)?(0,ve.H)(z):z}function oe(z){let x={};return z.forEach(ge=>{x=null!=ge?{...x,...ge}:x}),0===Object.keys(x).length?null:x}function ae(z,x){return x.map(ge=>ge(z))}function Te(z){return z.map(x=>function ye(z){return!z.validate}(x)?x:ge=>x.validate(ge))}function Nt(z){return null!=z?function ft(z){if(!z)return null;const x=z.filter(K);return 0==x.length?null:function(ge){return oe(ae(ge,x))}}(Te(z)):null}function vn(z){return null!=z?function jt(z){if(!z)return null;const x=z.filter(K);return 0==x.length?null:function(ge){return function Ee(...z){const x=(0,se.ms)(z),{args:ge,keys:G}=(0,Y.D)(z),we=new Fe.c(ln=>{const{length:Fn}=ge;if(!Fn)return void ln.complete();const lr=new Array(Fn);let Zi=Fn,ao=Fn;for(let eo=0;eo{Jo||(Jo=!0,ao--),lr[eo]=Na},()=>Zi--,void 0,()=>{(!Zi||!Jo)&&(ao||ln.next(G?(0,be.e)(G,lr):lr),ln.complete())}))}});return x?we.pipe((0,et.I)(x)):we}(ae(ge,x).map(ne)).pipe((0,Ve.T)(oe))}}(Te(z)):null}function Sn(z,x){return null===z?[x]:Array.isArray(z)?[...z,x]:[z,x]}function Qn(z){return z?Array.isArray(z)?z:[z]:[]}function En(z,x){return Array.isArray(z)?z.includes(x):z===x}function nr(z,x){const ge=Qn(x);return Qn(z).forEach(we=>{En(ge,we)||ge.push(we)}),ge}function Jn(z,x){return Qn(x).filter(ge=>!En(z,ge))}class $e{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(x){this._rawValidators=x||[],this._composedValidatorFn=Nt(this._rawValidators)}_setAsyncValidators(x){this._rawAsyncValidators=x||[],this._composedAsyncValidatorFn=vn(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(x){this._onDestroyCallbacks.push(x)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(x=>x()),this._onDestroyCallbacks=[]}reset(x=void 0){this.control&&this.control.reset(x)}hasError(x,ge){return!!this.control&&this.control.hasError(x,ge)}getError(x,ge){return this.control?this.control.getError(x,ge):null}}class At extends $e{get formDirective(){return null}get path(){return null}}class kt extends $e{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Jt{constructor(x){this._cd=x}get isTouched(){var x;return!(null===(x=this._cd)||void 0===x||null===(x=x.control)||void 0===x||!x.touched)}get isUntouched(){var x;return!(null===(x=this._cd)||void 0===x||null===(x=x.control)||void 0===x||!x.untouched)}get isPristine(){var x;return!(null===(x=this._cd)||void 0===x||null===(x=x.control)||void 0===x||!x.pristine)}get isDirty(){var x;return!(null===(x=this._cd)||void 0===x||null===(x=x.control)||void 0===x||!x.dirty)}get isValid(){var x;return!(null===(x=this._cd)||void 0===x||null===(x=x.control)||void 0===x||!x.valid)}get isInvalid(){var x;return!(null===(x=this._cd)||void 0===x||null===(x=x.control)||void 0===x||!x.invalid)}get isPending(){var x;return!(null===(x=this._cd)||void 0===x||null===(x=x.control)||void 0===x||!x.pending)}get isSubmitted(){var x;return!(null===(x=this._cd)||void 0===x||!x.submitted)}}let _n=(()=>{var z;class x extends Jt{constructor(G){super(G)}}return(z=x).\u0275fac=function(G){return new(G||z)(g.rXU(kt,2))},z.\u0275dir=g.FsC({type:z,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(G,we){2&G&&g.AVh("ng-untouched",we.isUntouched)("ng-touched",we.isTouched)("ng-pristine",we.isPristine)("ng-dirty",we.isDirty)("ng-valid",we.isValid)("ng-invalid",we.isInvalid)("ng-pending",we.isPending)},features:[g.Vt3]}),x})();const ue="VALID",ze="INVALID",dt="PENDING",Qe="DISABLED";function st(z){return null!=z&&!Array.isArray(z)&&"object"==typeof z}class Kn{constructor(x,ge){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(x),this._assignAsyncValidators(ge)}get validator(){return this._composedValidatorFn}set validator(x){this._rawValidators=this._composedValidatorFn=x}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(x){this._rawAsyncValidators=this._composedAsyncValidatorFn=x}get parent(){return this._parent}get valid(){return this.status===ue}get invalid(){return this.status===ze}get pending(){return this.status==dt}get disabled(){return this.status===Qe}get enabled(){return this.status!==Qe}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(x){this._assignValidators(x)}setAsyncValidators(x){this._assignAsyncValidators(x)}addValidators(x){this.setValidators(nr(x,this._rawValidators))}addAsyncValidators(x){this.setAsyncValidators(nr(x,this._rawAsyncValidators))}removeValidators(x){this.setValidators(Jn(x,this._rawValidators))}removeAsyncValidators(x){this.setAsyncValidators(Jn(x,this._rawAsyncValidators))}hasValidator(x){return En(this._rawValidators,x)}hasAsyncValidator(x){return En(this._rawAsyncValidators,x)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(x={}){this.touched=!0,this._parent&&!x.onlySelf&&this._parent.markAsTouched(x)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(x=>x.markAllAsTouched())}markAsUntouched(x={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(ge=>{ge.markAsUntouched({onlySelf:!0})}),this._parent&&!x.onlySelf&&this._parent._updateTouched(x)}markAsDirty(x={}){this.pristine=!1,this._parent&&!x.onlySelf&&this._parent.markAsDirty(x)}markAsPristine(x={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(ge=>{ge.markAsPristine({onlySelf:!0})}),this._parent&&!x.onlySelf&&this._parent._updatePristine(x)}markAsPending(x={}){this.status=dt,!1!==x.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!x.onlySelf&&this._parent.markAsPending(x)}disable(x={}){const ge=this._parentMarkedDirty(x.onlySelf);this.status=Qe,this.errors=null,this._forEachChild(G=>{G.disable({...x,onlySelf:!0})}),this._updateValue(),!1!==x.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...x,skipPristineCheck:ge}),this._onDisabledChange.forEach(G=>G(!0))}enable(x={}){const ge=this._parentMarkedDirty(x.onlySelf);this.status=ue,this._forEachChild(G=>{G.enable({...x,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:x.emitEvent}),this._updateAncestors({...x,skipPristineCheck:ge}),this._onDisabledChange.forEach(G=>G(!1))}_updateAncestors(x){this._parent&&!x.onlySelf&&(this._parent.updateValueAndValidity(x),x.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(x){this._parent=x}getRawValue(){return this.value}updateValueAndValidity(x={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===ue||this.status===dt)&&this._runAsyncValidator(x.emitEvent)),!1!==x.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!x.onlySelf&&this._parent.updateValueAndValidity(x)}_updateTreeValidity(x={emitEvent:!0}){this._forEachChild(ge=>ge._updateTreeValidity(x)),this.updateValueAndValidity({onlySelf:!0,emitEvent:x.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Qe:ue}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(x){if(this.asyncValidator){this.status=dt,this._hasOwnPendingAsyncValidator=!0;const ge=ne(this.asyncValidator(this));this._asyncValidationSubscription=ge.subscribe(G=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(G,{emitEvent:x})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(x,ge={}){this.errors=x,this._updateControlsErrors(!1!==ge.emitEvent)}get(x){let ge=x;return null==ge||(Array.isArray(ge)||(ge=ge.split(".")),0===ge.length)?null:ge.reduce((G,we)=>G&&G._find(we),this)}getError(x,ge){const G=ge?this.get(ge):this;return G&&G.errors?G.errors[x]:null}hasError(x,ge){return!!this.getError(x,ge)}get root(){let x=this;for(;x._parent;)x=x._parent;return x}_updateControlsErrors(x){this.status=this._calculateStatus(),x&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(x)}_initObservables(){this.valueChanges=new g.bkB,this.statusChanges=new g.bkB}_calculateStatus(){return this._allControlsDisabled()?Qe:this.errors?ze:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(dt)?dt:this._anyControlsHaveStatus(ze)?ze:ue}_anyControlsHaveStatus(x){return this._anyControls(ge=>ge.status===x)}_anyControlsDirty(){return this._anyControls(x=>x.dirty)}_anyControlsTouched(){return this._anyControls(x=>x.touched)}_updatePristine(x={}){this.pristine=!this._anyControlsDirty(),this._parent&&!x.onlySelf&&this._parent._updatePristine(x)}_updateTouched(x={}){this.touched=this._anyControlsTouched(),this._parent&&!x.onlySelf&&this._parent._updateTouched(x)}_registerOnCollectionChange(x){this._onCollectionChange=x}_setUpdateStrategy(x){st(x)&&null!=x.updateOn&&(this._updateOn=x.updateOn)}_parentMarkedDirty(x){return!x&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(x){return null}_assignValidators(x){this._rawValidators=Array.isArray(x)?x.slice():x,this._composedValidatorFn=function pe(z){return Array.isArray(z)?Nt(z):z||null}(this._rawValidators)}_assignAsyncValidators(x){this._rawAsyncValidators=Array.isArray(x)?x.slice():x,this._composedAsyncValidatorFn=function wt(z){return Array.isArray(z)?vn(z):z||null}(this._rawAsyncValidators)}}const mi=new g.nKC("CallSetDisabledState",{providedIn:"root",factory:()=>ui}),ui="always";function Ti(z,x,ge=ui){var G,we;(function pi(z,x){const ge=function jn(z){return z._rawValidators}(z);null!==x.validator?z.setValidators(Sn(ge,x.validator)):"function"==typeof ge&&z.setValidators([ge]);const G=function Xn(z){return z._rawAsyncValidators}(z);null!==x.asyncValidator?z.setAsyncValidators(Sn(G,x.asyncValidator)):"function"==typeof G&&z.setAsyncValidators([G]);const we=()=>z.updateValueAndValidity();Fi(x._rawValidators,we),Fi(x._rawAsyncValidators,we)})(z,x),x.valueAccessor.writeValue(z.value),(z.disabled||"always"===ge)&&(null===(G=(we=x.valueAccessor).setDisabledState)||void 0===G||G.call(we,z.disabled)),function ut(z,x){x.valueAccessor.registerOnChange(ge=>{z._pendingValue=ge,z._pendingChange=!0,z._pendingDirty=!0,"change"===z.updateOn&&mn(z,x)})}(z,x),function ce(z,x){const ge=(G,we)=>{x.valueAccessor.writeValue(G),we&&x.viewToModelUpdate(G)};z.registerOnChange(ge),x._registerOnDestroy(()=>{z._unregisterOnChange(ge)})}(z,x),function Bt(z,x){x.valueAccessor.registerOnTouched(()=>{z._pendingTouched=!0,"blur"===z.updateOn&&z._pendingChange&&mn(z,x),"submit"!==z.updateOn&&z.markAsTouched()})}(z,x),function Mi(z,x){if(x.valueAccessor.setDisabledState){const ge=G=>{x.valueAccessor.setDisabledState(G)};z.registerOnDisabledChange(ge),x._registerOnDestroy(()=>{z._unregisterOnDisabledChange(ge)})}}(z,x)}function Fi(z,x){z.forEach(ge=>{ge.registerOnValidatorChange&&ge.registerOnValidatorChange(x)})}function mn(z,x){z._pendingDirty&&z.markAsDirty(),z.setValue(z._pendingValue,{emitModelToViewChange:!1}),x.viewToModelUpdate(z._pendingValue),z._pendingChange=!1}function Zn(z,x){const ge=z.indexOf(x);ge>-1&&z.splice(ge,1)}function Br(z){return"object"==typeof z&&null!==z&&2===Object.keys(z).length&&"value"in z&&"disabled"in z}Promise.resolve();const xr=class extends Kn{constructor(x=null,ge,G){super(function le(z){return(st(z)?z.validators:z)||null}(ge),function xe(z,x){return(st(x)?x.asyncValidators:z)||null}(G,ge)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(x),this._setUpdateStrategy(ge),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),st(ge)&&(ge.nonNullable||ge.initialValueIsDefault)&&(this.defaultValue=Br(x)?x.value:x)}setValue(x,ge={}){this.value=this._pendingValue=x,this._onChange.length&&!1!==ge.emitModelToViewChange&&this._onChange.forEach(G=>G(this.value,!1!==ge.emitViewToModelChange)),this.updateValueAndValidity(ge)}patchValue(x,ge={}){this.setValue(x,ge)}reset(x=this.defaultValue,ge={}){this._applyFormState(x),this.markAsPristine(ge),this.markAsUntouched(ge),this.setValue(this.value,ge),this._pendingChange=!1}_updateValue(){}_anyControls(x){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(x){this._onChange.push(x)}_unregisterOnChange(x){Zn(this._onChange,x)}registerOnDisabledChange(x){this._onDisabledChange.push(x)}_unregisterOnDisabledChange(x){Zn(this._onDisabledChange,x)}_forEachChild(x){}_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(x){Br(x)?(this.value=this._pendingValue=x.value,x.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=x}},Wo={provide:kt,useExisting:(0,g.Rfq)(()=>ir)},ri=Promise.resolve();let ir=(()=>{var z;class x extends kt{constructor(G,we,ln,Fn,lr,Zi){super(),this._changeDetectorRef=lr,this.callSetDisabledState=Zi,this.control=new xr,this._registered=!1,this.name="",this.update=new g.bkB,this._parent=G,this._setValidators(we),this._setAsyncValidators(ln),this.valueAccessor=function Ln(z,x){if(!x)return null;let ge,G,we;return Array.isArray(x),x.forEach(ln=>{ln.constructor===vt?ge=ln:function Kt(z){return Object.getPrototypeOf(z.constructor)===Le}(ln)?G=ln:we=ln}),we||G||ge||null}(0,Fn)}ngOnChanges(G){if(this._checkForErrors(),!this._registered||"name"in G){if(this._registered&&(this._checkName(),this.formDirective)){const we=G.name.previousValue;this.formDirective.removeControl({name:we,path:this._getPath(we)})}this._setUpControl()}"isDisabled"in G&&this._updateDisabled(G),function Ht(z,x){if(!z.hasOwnProperty("model"))return!1;const ge=z.model;return!!ge.isFirstChange()||!Object.is(x,ge.currentValue)}(G,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(G){this.viewModel=G,this.update.emit(G)}_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(){Ti(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(G){ri.then(()=>{var we;this.control.setValue(G,{emitViewToModelChange:!1}),null===(we=this._changeDetectorRef)||void 0===we||we.markForCheck()})}_updateDisabled(G){const we=G.isDisabled.currentValue,ln=0!==we&&(0,g.L39)(we);ri.then(()=>{var Fn;ln&&!this.control.disabled?this.control.disable():!ln&&this.control.disabled&&this.control.enable(),null===(Fn=this._changeDetectorRef)||void 0===Fn||Fn.markForCheck()})}_getPath(G){return this._parent?function fi(z,x){return[...x.path,z]}(G,this._parent):[G]}}return(z=x).\u0275fac=function(G){return new(G||z)(g.rXU(At,9),g.rXU(Xe,10),g.rXU(Dt,10),g.rXU(Ze,10),g.rXU(g.gRc,8),g.rXU(mi,8))},z.\u0275dir=g.FsC({type:z,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_([Wo]),g.Vt3,g.OA$]}),x})();function ar(z){return"number"==typeof z?z:parseFloat(z)}let _i=(()=>{var z;class x{constructor(){this._validator=B}ngOnChanges(G){if(this.inputName in G){const we=this.normalizeInput(G[this.inputName].currentValue);this._enabled=this.enabled(we),this._validator=this._enabled?this.createValidator(we):B,this._onChange&&this._onChange()}}validate(G){return this._validator(G)}registerOnValidatorChange(G){this._onChange=G}enabled(G){return null!=G}}return(z=x).\u0275fac=function(G){return new(G||z)},z.\u0275dir=g.FsC({type:z,features:[g.OA$]}),x})();const Di={provide:Xe,useExisting:(0,g.Rfq)(()=>Ii),multi:!0};let Ii=(()=>{var z;class x extends _i{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=G=>ar(G),this.createValidator=G=>function Ut(z){return x=>{if(Re(x.value)||Re(z))return null;const ge=parseFloat(x.value);return!isNaN(ge)&&ge>z?{max:{max:z,actual:x.value}}:null}}(G)}}return(z=x).\u0275fac=(()=>{let ge;return function(we){return(ge||(ge=g.xGo(z)))(we||z)}})(),z.\u0275dir=g.FsC({type:z,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(G,we){2&G&&g.BMQ("max",we._enabled?we.max:null)},inputs:{max:"max"},features:[g.Jv_([Di]),g.Vt3]}),x})();const no={provide:Xe,useExisting:(0,g.Rfq)(()=>Ko),multi:!0};let Ko=(()=>{var z;class x extends _i{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=G=>ar(G),this.createValidator=G=>function bt(z){return x=>{if(Re(x.value)||Re(z))return null;const ge=parseFloat(x.value);return!isNaN(ge)&&ge{let ge;return function(we){return(ge||(ge=g.xGo(z)))(we||z)}})(),z.\u0275dir=g.FsC({type:z,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(G,we){2&G&&g.BMQ("min",we._enabled?we.min:null)},inputs:{min:"min"},features:[g.Jv_([no]),g.Vt3]}),x})(),ms=(()=>{var z;class x{}return(z=x).\u0275fac=function(G){return new(G||z)},z.\u0275mod=g.$C({type:z}),z.\u0275inj=g.G2t({}),x})(),da=(()=>{var z;class x{static withConfig(G){var we;return{ngModule:x,providers:[{provide:mi,useValue:null!==(we=G.callSetDisabledState)&&void 0!==we?we:ui}]}}}return(z=x).\u0275fac=function(G){return new(G||z)},z.\u0275mod=g.$C({type:z}),z.\u0275inj=g.G2t({imports:[ms]}),x})()},345:(Tn,Tt,j)=>{"use strict";j.d(Tt,{Bb:()=>Qn,hE:()=>Jn,sG:()=>vn});var g=j(4438),c=j(177);class ve extends c.VF{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class Fe extends ve{static makeCurrent(){(0,c.ZD)(new Fe)}onAndCancel(ze,dt,Qe){return ze.addEventListener(dt,Qe),()=>{ze.removeEventListener(dt,Qe)}}dispatchEvent(ze,dt){ze.dispatchEvent(dt)}remove(ze){ze.parentNode&&ze.parentNode.removeChild(ze)}createElement(ze,dt){return(dt=dt||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,dt){return"window"===dt?window:"document"===dt?ze:"body"===dt?ze.body:null}getBaseHref(ze){const dt=function Ae(){return Y=Y||document.querySelector("base"),Y?Y.getAttribute("href"):null}();return null==dt?null:function se(ue){return new URL(ue,document.baseURI).pathname}(dt)}resetBaseElement(){Y=null}getUserAgent(){return window.navigator.userAgent}getCookie(ze){return(0,c._b)(document.cookie,ze)}}let Y=null,et=(()=>{var ue;class ze{build(){return new XMLHttpRequest}}return(ue=ze).\u0275fac=function(Qe){return new(Qe||ue)},ue.\u0275prov=g.jDH({token:ue,factory:ue.\u0275fac}),ze})();const be=new g.nKC("");let Ee=(()=>{var ue;class ze{constructor(Qe,le){this._zone=le,this._eventNameToPlugin=new Map,Qe.forEach(pe=>{pe.manager=this}),this._plugins=Qe.slice().reverse()}addEventListener(Qe,le,pe){return this._findPluginFor(le).addEventListener(Qe,le,pe)}getZone(){return this._zone}_findPluginFor(Qe){let le=this._eventNameToPlugin.get(Qe);if(le)return le;if(le=this._plugins.find(xe=>xe.supports(Qe)),!le)throw new g.wOt(5101,!1);return this._eventNameToPlugin.set(Qe,le),le}}return(ue=ze).\u0275fac=function(Qe){return new(Qe||ue)(g.KVO(be),g.KVO(g.SKi))},ue.\u0275prov=g.jDH({token:ue,factory:ue.\u0275fac}),ze})();class Ve{constructor(ze){this._doc=ze}}const Be="ng-app-id";let Le=(()=>{var ue;class ze{constructor(Qe,le,pe,xe={}){this.doc=Qe,this.appId=le,this.nonce=pe,this.platformId=xe,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=(0,c.Vy)(xe),this.resetHostNodes()}addStyles(Qe){for(const le of Qe)1===this.changeUsageCount(le,1)&&this.onStyleAdded(le)}removeStyles(Qe){for(const le of Qe)this.changeUsageCount(le,-1)<=0&&this.onStyleRemoved(le)}ngOnDestroy(){const Qe=this.styleNodesInDOM;Qe&&(Qe.forEach(le=>le.remove()),Qe.clear());for(const le of this.getAllStyles())this.onStyleRemoved(le);this.resetHostNodes()}addHost(Qe){this.hostNodes.add(Qe);for(const le of this.getAllStyles())this.addStyleToHost(Qe,le)}removeHost(Qe){this.hostNodes.delete(Qe)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(Qe){for(const le of this.hostNodes)this.addStyleToHost(le,Qe)}onStyleRemoved(Qe){var le;const pe=this.styleRef;null===(le=pe.get(Qe))||void 0===le||null===(le=le.elements)||void 0===le||le.forEach(xe=>xe.remove()),pe.delete(Qe)}collectServerRenderedStyles(){var Qe;const le=null===(Qe=this.doc.head)||void 0===Qe?void 0:Qe.querySelectorAll(`style[${Be}="${this.appId}"]`);if(null!=le&&le.length){const pe=new Map;return le.forEach(xe=>{null!=xe.textContent&&pe.set(xe.textContent,xe)}),pe}return null}changeUsageCount(Qe,le){const pe=this.styleRef;if(pe.has(Qe)){const xe=pe.get(Qe);return xe.usage+=le,xe.usage}return pe.set(Qe,{usage:le,elements:[]}),le}getStyleElement(Qe,le){const pe=this.styleNodesInDOM,xe=null==pe?void 0:pe.get(le);if((null==xe?void 0:xe.parentNode)===Qe)return pe.delete(le),xe.removeAttribute(Be),xe;{const wt=this.doc.createElement("style");return this.nonce&&wt.setAttribute("nonce",this.nonce),wt.textContent=le,this.platformIsServer&&wt.setAttribute(Be,this.appId),Qe.appendChild(wt),wt}}addStyleToHost(Qe,le){var pe;const xe=this.getStyleElement(Qe,le),wt=this.styleRef,st=null===(pe=wt.get(le))||void 0===pe?void 0:pe.elements;st?st.push(xe):wt.set(le,{elements:[xe],usage:1})}resetHostNodes(){const Qe=this.hostNodes;Qe.clear(),Qe.add(this.doc.head)}}return(ue=ze).\u0275fac=function(Qe){return new(Qe||ue)(g.KVO(c.qQ),g.KVO(g.sZ2),g.KVO(g.BIS,8),g.KVO(g.Agw))},ue.\u0275prov=g.jDH({token:ue,factory:ue.\u0275fac}),ze})();const Ze={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},pt=/%COMP%/g,vt=new g.nKC("",{providedIn:"root",factory:()=>!0});function Xe(ue,ze){return ze.map(dt=>dt.replace(pt,ue))}let Dt=(()=>{var ue;class ze{constructor(Qe,le,pe,xe,wt,st,pn,Pn=null){this.eventManager=Qe,this.sharedStylesHost=le,this.appId=pe,this.removeStylesOnCompDestroy=xe,this.doc=wt,this.platformId=st,this.ngZone=pn,this.nonce=Pn,this.rendererByCompId=new Map,this.platformIsServer=(0,c.Vy)(st),this.defaultRenderer=new Ot(Qe,wt,pn,this.platformIsServer)}createRenderer(Qe,le){if(!Qe||!le)return this.defaultRenderer;this.platformIsServer&&le.encapsulation===g.gXe.ShadowDom&&(le={...le,encapsulation:g.gXe.Emulated});const pe=this.getOrCreateRenderer(Qe,le);return pe instanceof je?pe.applyToHost(Qe):pe instanceof It&&pe.applyStyles(),pe}getOrCreateRenderer(Qe,le){const pe=this.rendererByCompId;let xe=pe.get(le.id);if(!xe){const wt=this.doc,st=this.ngZone,pn=this.eventManager,Pn=this.sharedStylesHost,Kn=this.removeStylesOnCompDestroy,Ir=this.platformIsServer;switch(le.encapsulation){case g.gXe.Emulated:xe=new je(pn,Pn,le,this.appId,Kn,wt,st,Ir);break;case g.gXe.ShadowDom:return new Zt(pn,Pn,Qe,le,wt,st,this.nonce,Ir);default:xe=new It(pn,Pn,le,Kn,wt,st,Ir)}pe.set(le.id,xe)}return xe}ngOnDestroy(){this.rendererByCompId.clear()}}return(ue=ze).\u0275fac=function(Qe){return new(Qe||ue)(g.KVO(Ee),g.KVO(Le),g.KVO(g.sZ2),g.KVO(vt),g.KVO(c.qQ),g.KVO(g.Agw),g.KVO(g.SKi),g.KVO(g.BIS))},ue.\u0275prov=g.jDH({token:ue,factory:ue.\u0275fac}),ze})();class Ot{constructor(ze,dt,Qe,le){this.eventManager=ze,this.doc=dt,this.ngZone=Qe,this.platformIsServer=le,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(ze,dt){return dt?this.doc.createElementNS(Ze[dt]||dt,ze):this.doc.createElement(ze)}createComment(ze){return this.doc.createComment(ze)}createText(ze){return this.doc.createTextNode(ze)}appendChild(ze,dt){(Ut(ze)?ze.content:ze).appendChild(dt)}insertBefore(ze,dt,Qe){ze&&(Ut(ze)?ze.content:ze).insertBefore(dt,Qe)}removeChild(ze,dt){ze&&ze.removeChild(dt)}selectRootElement(ze,dt){let Qe="string"==typeof ze?this.doc.querySelector(ze):ze;if(!Qe)throw new g.wOt(-5104,!1);return dt||(Qe.textContent=""),Qe}parentNode(ze){return ze.parentNode}nextSibling(ze){return ze.nextSibling}setAttribute(ze,dt,Qe,le){if(le){dt=le+":"+dt;const pe=Ze[le];pe?ze.setAttributeNS(pe,dt,Qe):ze.setAttribute(dt,Qe)}else ze.setAttribute(dt,Qe)}removeAttribute(ze,dt,Qe){if(Qe){const le=Ze[Qe];le?ze.removeAttributeNS(le,dt):ze.removeAttribute(`${Qe}:${dt}`)}else ze.removeAttribute(dt)}addClass(ze,dt){ze.classList.add(dt)}removeClass(ze,dt){ze.classList.remove(dt)}setStyle(ze,dt,Qe,le){le&(g.czy.DashCase|g.czy.Important)?ze.style.setProperty(dt,Qe,le&g.czy.Important?"important":""):ze.style[dt]=Qe}removeStyle(ze,dt,Qe){Qe&g.czy.DashCase?ze.style.removeProperty(dt):ze.style[dt]=""}setProperty(ze,dt,Qe){null!=ze&&(ze[dt]=Qe)}setValue(ze,dt){ze.nodeValue=dt}listen(ze,dt,Qe){if("string"==typeof ze&&!(ze=(0,c.QT)().getGlobalEventTarget(this.doc,ze)))throw new Error(`Unsupported event target ${ze} for event ${dt}`);return this.eventManager.addEventListener(ze,dt,this.decoratePreventDefault(Qe))}decoratePreventDefault(ze){return dt=>{if("__ngUnwrap__"===dt)return ze;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>ze(dt)):ze(dt))&&dt.preventDefault()}}}function Ut(ue){return"TEMPLATE"===ue.tagName&&void 0!==ue.content}class Zt extends Ot{constructor(ze,dt,Qe,le,pe,xe,wt,st){super(ze,pe,xe,st),this.sharedStylesHost=dt,this.hostEl=Qe,this.shadowRoot=Qe.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const pn=Xe(le.id,le.styles);for(const Pn of pn){const Kn=document.createElement("style");wt&&Kn.setAttribute("nonce",wt),Kn.textContent=Pn,this.shadowRoot.appendChild(Kn)}}nodeOrShadowRoot(ze){return ze===this.hostEl?this.shadowRoot:ze}appendChild(ze,dt){return super.appendChild(this.nodeOrShadowRoot(ze),dt)}insertBefore(ze,dt,Qe){return super.insertBefore(this.nodeOrShadowRoot(ze),dt,Qe)}removeChild(ze,dt){return super.removeChild(this.nodeOrShadowRoot(ze),dt)}parentNode(ze){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(ze)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class It extends Ot{constructor(ze,dt,Qe,le,pe,xe,wt,st){super(ze,pe,xe,wt),this.sharedStylesHost=dt,this.removeStylesOnCompDestroy=le,this.styles=st?Xe(st,Qe.styles):Qe.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class je extends It{constructor(ze,dt,Qe,le,pe,xe,wt,st){const pn=le+"-"+Qe.id;super(ze,dt,Qe,pe,xe,wt,st,pn),this.contentAttr=function Re(ue){return"_ngcontent-%COMP%".replace(pt,ue)}(pn),this.hostAttr=function Ge(ue){return"_nghost-%COMP%".replace(pt,ue)}(pn)}applyToHost(ze){this.applyStyles(),this.setAttribute(ze,this.hostAttr,"")}createElement(ze,dt){const Qe=super.createElement(ze,dt);return super.setAttribute(Qe,this.contentAttr,""),Qe}}let nn=(()=>{var ue;class ze extends Ve{constructor(Qe){super(Qe)}supports(Qe){return!0}addEventListener(Qe,le,pe){return Qe.addEventListener(le,pe,!1),()=>this.removeEventListener(Qe,le,pe)}removeEventListener(Qe,le,pe){return Qe.removeEventListener(le,pe)}}return(ue=ze).\u0275fac=function(Qe){return new(Qe||ue)(g.KVO(c.qQ))},ue.\u0275prov=g.jDH({token:ue,factory:ue.\u0275fac}),ze})();const ht=["alt","control","meta","shift"],Ne={"\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:ue=>ue.altKey,control:ue=>ue.ctrlKey,meta:ue=>ue.metaKey,shift:ue=>ue.shiftKey};let K=(()=>{var ue;class ze extends Ve{constructor(Qe){super(Qe)}supports(Qe){return null!=ze.parseEventName(Qe)}addEventListener(Qe,le,pe){const xe=ze.parseEventName(le),wt=ze.eventCallback(xe.fullKey,pe,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,c.QT)().onAndCancel(Qe,xe.domEventName,wt))}static parseEventName(Qe){const le=Qe.toLowerCase().split("."),pe=le.shift();if(0===le.length||"keydown"!==pe&&"keyup"!==pe)return null;const xe=ze._normalizeKey(le.pop());let wt="",st=le.indexOf("code");if(st>-1&&(le.splice(st,1),wt="code."),ht.forEach(Pn=>{const Kn=le.indexOf(Pn);Kn>-1&&(le.splice(Kn,1),wt+=Pn+".")}),wt+=xe,0!=le.length||0===xe.length)return null;const pn={};return pn.domEventName=pe,pn.fullKey=wt,pn}static matchEventFullKeyCode(Qe,le){let pe=Ne[Qe.key]||Qe.key,xe="";return le.indexOf("code.")>-1&&(pe=Qe.code,xe="code."),!(null==pe||!pe)&&(pe=pe.toLowerCase()," "===pe?pe="space":"."===pe&&(pe="dot"),ht.forEach(wt=>{wt!==pe&&(0,B[wt])(Qe)&&(xe+=wt+".")}),xe+=pe,xe===le)}static eventCallback(Qe,le,pe){return xe=>{ze.matchEventFullKeyCode(xe,Qe)&&pe.runGuarded(()=>le(xe))}}static _normalizeKey(Qe){return"esc"===Qe?"escape":Qe}}return(ue=ze).\u0275fac=function(Qe){return new(Qe||ue)(g.KVO(c.qQ))},ue.\u0275prov=g.jDH({token:ue,factory:ue.\u0275fac}),ze})();const vn=(0,g.oH4)(g.fpN,"browser",[{provide:g.Agw,useValue:c.AJ},{provide:g.PLl,useValue:function Te(){Fe.makeCurrent()},multi:!0},{provide:c.qQ,useFactory:function Nt(){return(0,g.TL$)(document),document},deps:[]}]),Sn=new g.nKC(""),jn=[{provide:g.e01,useClass:class Je{addToWindow(ze){g.JZv.getAngularTestability=(Qe,le=!0)=>{const pe=ze.findTestabilityInTree(Qe,le);if(null==pe)throw new g.wOt(5103,!1);return pe},g.JZv.getAllAngularTestabilities=()=>ze.getAllTestabilities(),g.JZv.getAllAngularRootElements=()=>ze.getAllRootElements(),g.JZv.frameworkStabilizers||(g.JZv.frameworkStabilizers=[]),g.JZv.frameworkStabilizers.push(Qe=>{const le=g.JZv.getAllAngularTestabilities();let pe=le.length;const xe=function(){pe--,0==pe&&Qe()};le.forEach(wt=>{wt.whenStable(xe)})})}findTestabilityInTree(ze,dt,Qe){if(null==dt)return null;const le=ze.getTestability(dt);return null!=le?le:Qe?(0,c.QT)().isShadowRoot(dt)?this.findTestabilityInTree(ze,dt.host,!0):this.findTestabilityInTree(ze,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]}],Xn=[{provide:g.H8p,useValue:"root"},{provide:g.zcH,useFactory:function ft(){return new g.zcH},deps:[]},{provide:be,useClass:nn,multi:!0,deps:[c.qQ,g.SKi,g.Agw]},{provide:be,useClass:K,multi:!0,deps:[c.qQ]},Dt,Le,Ee,{provide:g._9s,useExisting:Dt},{provide:c.N0,useClass:et,deps:[]},[]];let Qn=(()=>{var ue;class ze{constructor(Qe){}static withServerTransition(Qe){return{ngModule:ze,providers:[{provide:g.sZ2,useValue:Qe.appId}]}}}return(ue=ze).\u0275fac=function(Qe){return new(Qe||ue)(g.KVO(Sn,12))},ue.\u0275mod=g.$C({type:ue}),ue.\u0275inj=g.G2t({providers:[...Xn,...jn],imports:[c.MD,g.Hbi]}),ze})(),Jn=(()=>{var ue;class ze{constructor(Qe){this._doc=Qe}getTitle(){return this._doc.title}setTitle(Qe){this._doc.title=Qe||""}}return(ue=ze).\u0275fac=function(Qe){return new(Qe||ue)(g.KVO(c.qQ))},ue.\u0275prov=g.jDH({token:ue,factory:ue.\u0275fac,providedIn:"root"}),ze})()},305:(Tn,Tt,j)=>{"use strict";j.d(Tt,{nX:()=>ie,Zp:()=>S,wF:()=>xr,Z:()=>Br,Xk:()=>En,Kp:()=>Ua,b:()=>ci,Ix:()=>$i,Wk:()=>$o,iI:()=>Mu,Sd:()=>Jr});var g=j(467),c=j(4438),ve=j(1985),Fe=j(8071),Ae=j(8455),se=j(7673),Je=j(4412),et=j(4572);const Ee=(0,j(1853).L)(I=>function(){I(this),this.name="EmptyError",this.message="no elements in sequence"});var Ve=j(1397),Be=j(3669);function Le(I=1/0){return(0,Ve.Z)(Be.D,I)}var pt=j(3794);function ct(...I){return function Ze(){return Le(1)}()((0,Ae.H)(I,(0,pt.lI)(I)))}var lt=j(8750);function Pt(I){return new ve.c(D=>{(0,lt.Tg)(I()).subscribe(D)})}var yt=j(1203);function vt(I,D){const M=(0,Fe.T)(I)?I:()=>I,C=N=>N.error(M());return new ve.c(D?N=>D.schedule(C,0,N):C)}var Re=j(983),Ge=j(8359),Xe=j(9974),Dt=j(4360);function Ot(){return(0,Xe.N)((I,D)=>{let M=null;I._refCount++;const C=(0,Dt._)(D,void 0,void 0,void 0,()=>{if(!I||I._refCount<=0||0<--I._refCount)return void(M=null);const N=I._connection,ee=M;M=null,N&&(!ee||N===ee)&&N.unsubscribe(),D.unsubscribe()});I.subscribe(C),C.closed||(M=I.connect())})}class We extends ve.c{constructor(D,M){super(),this.source=D,this.subjectFactory=M,this._subject=null,this._refCount=0,this._connection=null,(0,Xe.S)(D)&&(this.lift=D.lift)}_subscribe(D){return this.getSubject().subscribe(D)}getSubject(){const D=this._subject;return(!D||D.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:D}=this;this._subject=this._connection=null,null==D||D.unsubscribe()}connect(){let D=this._connection;if(!D){D=this._connection=new Ge.yU;const M=this.getSubject();D.add(this.source.subscribe((0,Dt._)(M,void 0,()=>{this._teardown(),M.complete()},C=>{this._teardown(),M.error(C)},()=>this._teardown()))),D.closed&&(this._connection=null,D=Ge.yU.EMPTY)}return D}refCount(){return Ot()(this)}}var bt=j(1413),Ut=j(177),Zt=j(6354),It=j(5558),je=j(6697),ht=j(5964);function Ne(I){return(0,Xe.N)((D,M)=>{let C=!1;D.subscribe((0,Dt._)(M,N=>{C=!0,M.next(N)},()=>{C||M.next(I),M.complete()}))})}function B(I=K){return(0,Xe.N)((D,M)=>{let C=!1;D.subscribe((0,Dt._)(M,N=>{C=!0,M.next(N)},()=>C?M.complete():M.error(I())))})}function K(){return new Ee}function ne(I,D){const M=arguments.length>=2;return C=>C.pipe(I?(0,ht.p)((N,ee)=>I(N,ee,C)):Be.D,(0,je.s)(1),M?Ne(D):B(()=>new Ee))}var oe=j(274),ae=j(8141);function ye(I){return(0,Xe.N)((D,M)=>{let ee,C=null,N=!1;C=D.subscribe((0,Dt._)(M,void 0,void 0,Ie=>{ee=(0,lt.Tg)(I(Ie,ye(I)(D))),C?(C.unsubscribe(),C=null,ee.subscribe(M)):N=!0})),N&&(C.unsubscribe(),C=null,ee.subscribe(M))})}function Nt(I){return I<=0?()=>Re.w:(0,Xe.N)((D,M)=>{let C=[];D.subscribe((0,Dt._)(M,N=>{C.push(N),I{for(const N of C)M.next(N);M.complete()},void 0,()=>{C=null}))})}var Sn=j(980),jn=j(5343),Qn=j(345);const En="primary",nr=Symbol("RouteTitle");class Jn{constructor(D){this.params=D||{}}has(D){return Object.prototype.hasOwnProperty.call(this.params,D)}get(D){if(this.has(D)){const M=this.params[D];return Array.isArray(M)?M[0]:M}return null}getAll(D){if(this.has(D)){const M=this.params[D];return Array.isArray(M)?M:[M]}return[]}get keys(){return Object.keys(this.params)}}function $e(I){return new Jn(I)}function At(I,D,M){const C=M.path.split("/");if(C.length>I.length||"full"===M.pathMatch&&(D.hasChildren()||C.lengthC[ee]===N)}return I===D}function _n(I){return I.length>0?I[I.length-1]:null}function yn(I){return function Y(I){return!!I&&(I instanceof ve.c||(0,Fe.T)(I.lift)&&(0,Fe.T)(I.subscribe))}(I)?I:(0,c.jNT)(I)?(0,Ae.H)(Promise.resolve(I)):(0,se.of)(I)}const rn={exact:function Vr(I,D,M){if(!Tr(I.segments,D.segments)||!li(I.segments,D.segments,M)||I.numberOfChildren!==D.numberOfChildren)return!1;for(const C in D.children)if(!I.children[C]||!Vr(I.children[C],D.children[C],M))return!1;return!0},subset:Cr},Wt={exact:function Sr(I,D){return Jt(I,D)},subset:function Or(I,D){return Object.keys(D).length<=Object.keys(I).length&&Object.keys(D).every(M=>br(I[M],D[M]))},ignored:()=>!0};function mr(I,D,M){return rn[M.paths](I.root,D.root,M.matrixParams)&&Wt[M.queryParams](I.queryParams,D.queryParams)&&!("exact"===M.fragment&&I.fragment!==D.fragment)}function Cr(I,D,M){return zn(I,D,D.segments,M)}function zn(I,D,M,C){if(I.segments.length>M.length){const N=I.segments.slice(0,M.length);return!(!Tr(N,M)||D.hasChildren()||!li(N,M,C))}if(I.segments.length===M.length){if(!Tr(I.segments,M)||!li(I.segments,M,C))return!1;for(const N in D.children)if(!I.children[N]||!Cr(I.children[N],D.children[N],C))return!1;return!0}{const N=M.slice(0,I.segments.length),ee=M.slice(I.segments.length);return!!(Tr(I.segments,N)&&li(I.segments,N,C)&&I.children[En])&&zn(I.children[En],D,ee,C)}}function li(I,D,M){return D.every((C,N)=>Wt[M](I[N].parameters,C.parameters))}class Yn{constructor(D=new Rn([],{}),M={},C=null){this.root=D,this.queryParams=M,this.fragment=C}get queryParamMap(){var D;return null!==(D=this._queryParamMap)&&void 0!==D||(this._queryParamMap=$e(this.queryParams)),this._queryParamMap}toString(){return ue.serialize(this)}}class Rn{constructor(D,M){this.segments=D,this.children=M,this.parent=null,Object.values(M).forEach(C=>C.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return ze(this)}}class Rr{constructor(D,M){this.path=D,this.parameters=M}get parameterMap(){var D;return null!==(D=this._parameterMap)&&void 0!==D||(this._parameterMap=$e(this.parameters)),this._parameterMap}toString(){return pn(this)}}function Tr(I,D){return I.length===D.length&&I.every((M,C)=>M.path===D[C].path)}let Jr=(()=>{var I;class D{}return(I=D).\u0275fac=function(C){return new(C||I)},I.\u0275prov=c.jDH({token:I,factory:()=>new Zr,providedIn:"root"}),D})();class Zr{parse(D){const M=new fi(D);return new Yn(M.parseRootSegment(),M.parseQueryParams(),M.parseFragment())}serialize(D){const M=`/${dt(D.root,!0)}`,C=function Kn(I){const D=Object.entries(I).map(([M,C])=>Array.isArray(C)?C.map(N=>`${le(M)}=${le(N)}`).join("&"):`${le(M)}=${le(C)}`).filter(M=>M);return D.length?`?${D.join("&")}`:""}(D.queryParams);return`${M}${C}${"string"==typeof D.fragment?`#${function pe(I){return encodeURI(I)}(D.fragment)}`:""}`}}const ue=new Zr;function ze(I){return I.segments.map(D=>pn(D)).join("/")}function dt(I,D){if(!I.hasChildren())return ze(I);if(D){const M=I.children[En]?dt(I.children[En],!1):"",C=[];return Object.entries(I.children).forEach(([N,ee])=>{N!==En&&C.push(`${N}:${dt(ee,!1)}`)}),C.length>0?`${M}(${C.join("//")})`:M}{const M=function Ri(I,D){let M=[];return Object.entries(I.children).forEach(([C,N])=>{C===En&&(M=M.concat(D(N,C)))}),Object.entries(I.children).forEach(([C,N])=>{C!==En&&(M=M.concat(D(N,C)))}),M}(I,(C,N)=>N===En?[dt(I.children[En],!1)]:[`${N}:${dt(C,!1)}`]);return 1===Object.keys(I.children).length&&null!=I.children[En]?`${ze(I)}/${M[0]}`:`${ze(I)}/(${M.join("//")})`}}function Qe(I){return encodeURIComponent(I).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function le(I){return Qe(I).replace(/%3B/gi,";")}function xe(I){return Qe(I).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function wt(I){return decodeURIComponent(I)}function st(I){return wt(I.replace(/\+/g,"%20"))}function pn(I){return`${xe(I.path)}${function Pn(I){return Object.entries(I).map(([D,M])=>`;${xe(D)}=${xe(M)}`).join("")}(I.parameters)}`}const Ir=/^[^\/()?;#]+/;function cr(I){const D=I.match(Ir);return D?D[0]:""}const hi=/^[^\/()?;=#]+/,Dn=/^[^=?&#]+/,mi=/^[^&#]+/;class fi{constructor(D){this.url=D,this.remaining=D}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Rn([],{}):new Rn([],this.parseChildren())}parseQueryParams(){const D={};if(this.consumeOptional("?"))do{this.parseQueryParam(D)}while(this.consumeOptional("&"));return D}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const D=[];for(this.peekStartsWith("(")||D.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),D.push(this.parseSegment());let M={};this.peekStartsWith("/(")&&(this.capture("/"),M=this.parseParens(!0));let C={};return this.peekStartsWith("(")&&(C=this.parseParens(!1)),(D.length>0||Object.keys(M).length>0)&&(C[En]=new Rn(D,M)),C}parseSegment(){const D=cr(this.remaining);if(""===D&&this.peekStartsWith(";"))throw new c.wOt(4009,!1);return this.capture(D),new Rr(wt(D),this.parseMatrixParams())}parseMatrixParams(){const D={};for(;this.consumeOptional(";");)this.parseParam(D);return D}parseParam(D){const M=function On(I){const D=I.match(hi);return D?D[0]:""}(this.remaining);if(!M)return;this.capture(M);let C="";if(this.consumeOptional("=")){const N=cr(this.remaining);N&&(C=N,this.capture(C))}D[wt(M)]=wt(C)}parseQueryParam(D){const M=function Er(I){const D=I.match(Dn);return D?D[0]:""}(this.remaining);if(!M)return;this.capture(M);let C="";if(this.consumeOptional("=")){const Ie=function ui(I){const D=I.match(mi);return D?D[0]:""}(this.remaining);Ie&&(C=Ie,this.capture(C))}const N=st(M),ee=st(C);if(D.hasOwnProperty(N)){let Ie=D[N];Array.isArray(Ie)||(Ie=[Ie],D[N]=Ie),Ie.push(ee)}else D[N]=ee}parseParens(D){const M={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const C=cr(this.remaining),N=this.remaining[C.length];if("/"!==N&&")"!==N&&";"!==N)throw new c.wOt(4010,!1);let ee;C.indexOf(":")>-1?(ee=C.slice(0,C.indexOf(":")),this.capture(ee),this.capture(":")):D&&(ee=En);const Ie=this.parseChildren();M[ee]=1===Object.keys(Ie).length?Ie[En]:new Rn([],Ie),this.consumeOptional("//")}return M}peekStartsWith(D){return this.remaining.startsWith(D)}consumeOptional(D){return!!this.peekStartsWith(D)&&(this.remaining=this.remaining.substring(D.length),!0)}capture(D){if(!this.consumeOptional(D))throw new c.wOt(4011,!1)}}function Ti(I){return I.segments.length>0?new Rn([],{[En]:I}):I}function sr(I){const D={};for(const[C,N]of Object.entries(I.children)){const ee=sr(N);if(C===En&&0===ee.segments.length&&ee.hasChildren())for(const[Ie,gt]of Object.entries(ee.children))D[Ie]=gt;else(ee.segments.length>0||ee.hasChildren())&&(D[C]=ee)}return function Fi(I){if(1===I.numberOfChildren&&I.children[En]){const D=I.children[En];return new Rn(I.segments.concat(D.segments),D.children)}return I}(new Rn(I.segments,D))}function Mi(I){return I instanceof Yn}function Rt(I){var D;let M;const ee=Ti(function C(Ie){const gt={};for(const St of Ie.children){const wn=C(St);gt[St.outlet]=wn}const en=new Rn(Ie.url,gt);return Ie===I&&(M=en),en}(I.root));return null!==(D=M)&&void 0!==D?D:ee}function ut(I,D,M,C){let N=I;for(;N.parent;)N=N.parent;if(0===D.length)return ce(N,N,N,M,C);const ee=function Z(I){if("string"==typeof I[0]&&1===I.length&&"/"===I[0])return new V(!0,0,I);let D=0,M=!1;const C=I.reduce((N,ee,Ie)=>{if("object"==typeof ee&&null!=ee){if(ee.outlets){const gt={};return Object.entries(ee.outlets).forEach(([en,St])=>{gt[en]="string"==typeof St?St.split("/"):St}),[...N,{outlets:gt}]}if(ee.segmentPath)return[...N,ee.segmentPath]}return"string"!=typeof ee?[...N,ee]:0===Ie?(ee.split("/").forEach((gt,en)=>{0==en&&"."===gt||(0==en&&""===gt?M=!0:".."===gt?D++:""!=gt&&N.push(gt))}),N):[...N,ee]},[]);return new V(M,D,C)}(D);if(ee.toRoot())return ce(N,N,new Rn([],{}),M,C);const Ie=function re(I,D,M){if(I.isAbsolute)return new U(D,!0,0);if(!M)return new U(D,!1,NaN);if(null===M.parent)return new U(M,!0,0);const C=Bt(I.commands[0])?0:1;return function Oe(I,D,M){let C=I,N=D,ee=M;for(;ee>N;){if(ee-=N,C=C.parent,!C)throw new c.wOt(4005,!1);N=C.segments.length}return new U(C,!1,N-ee)}(M,M.segments.length-1+C,I.numberOfDoubleDots)}(ee,N,I),gt=Ie.processChildren?Kt(Ie.segmentGroup,Ie.index,ee.commands):Ht(Ie.segmentGroup,Ie.index,ee.commands);return ce(N,Ie.segmentGroup,gt,M,C)}function Bt(I){return"object"==typeof I&&null!=I&&!I.outlets&&!I.segmentPath}function mn(I){return"object"==typeof I&&null!=I&&I.outlets}function ce(I,D,M,C,N){let Ie,ee={};C&&Object.entries(C).forEach(([en,St])=>{ee[en]=Array.isArray(St)?St.map(wn=>`${wn}`):`${St}`}),Ie=I===D?M:R(I,D,M);const gt=Ti(sr(Ie));return new Yn(gt,ee,N)}function R(I,D,M){const C={};return Object.entries(I.children).forEach(([N,ee])=>{C[N]=ee===D?M:R(ee,D,M)}),new Rn(I.segments,C)}class V{constructor(D,M,C){if(this.isAbsolute=D,this.numberOfDoubleDots=M,this.commands=C,D&&C.length>0&&Bt(C[0]))throw new c.wOt(4003,!1);const N=C.find(mn);if(N&&N!==_n(C))throw new c.wOt(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class U{constructor(D,M,C){this.segmentGroup=D,this.processChildren=M,this.index=C}}function Ht(I,D,M){var C;if(null!==(C=I)&&void 0!==C||(I=new Rn([],{})),0===I.segments.length&&I.hasChildren())return Kt(I,D,M);const N=function Bn(I,D,M){let C=0,N=D;const ee={match:!1,pathIndex:0,commandIndex:0};for(;N=M.length)return ee;const Ie=I.segments[N],gt=M[C];if(mn(gt))break;const en=`${gt}`,St=C0&&void 0===en)break;if(en&&St&&"object"==typeof St&&void 0===St.outlets){if(!kr(en,St,Ie))return ee;C+=2}else{if(!kr(en,{},Ie))return ee;C++}N++}return{match:!0,pathIndex:N,commandIndex:C}}(I,D,M),ee=M.slice(N.commandIndex);if(N.match&&N.pathIndexee!==En)&&I.children[En]&&1===I.numberOfChildren&&0===I.children[En].segments.length){const ee=Kt(I.children[En],D,M);return new Rn(I.segments,ee.children)}return Object.entries(C).forEach(([ee,Ie])=>{"string"==typeof Ie&&(Ie=[Ie]),null!==Ie&&(N[ee]=Ht(I.children[ee],D,Ie))}),Object.entries(I.children).forEach(([ee,Ie])=>{void 0===C[ee]&&(N[ee]=Ie)}),new Rn(I.segments,N)}}function Ln(I,D,M){const C=I.segments.slice(0,D);let N=0;for(;N{"string"==typeof C&&(C=[C]),null!==C&&(D[M]=Ln(new Rn([],{}),0,C))}),D}function dr(I){const D={};return Object.entries(I).forEach(([M,C])=>D[M]=`${C}`),D}function kr(I,D,M){return I==M.path&&Jt(D,M.parameters)}const pr="imperative";var on=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}(on||{});class Zn{constructor(D,M){this.id=D,this.url=M}}class Br extends Zn{constructor(D,M,C="imperative",N=null){super(D,M),this.type=on.NavigationStart,this.navigationTrigger=C,this.restoredState=N}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class xr extends Zn{constructor(D,M,C){super(D,M),this.urlAfterRedirects=C,this.type=on.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}var gr=function(I){return I[I.Redirect=0]="Redirect",I[I.SupersededByNewNavigation=1]="SupersededByNewNavigation",I[I.NoDataFromResolver=2]="NoDataFromResolver",I[I.GuardRejected=3]="GuardRejected",I}(gr||{}),ur=function(I){return I[I.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",I[I.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",I}(ur||{});class qr extends Zn{constructor(D,M,C,N){super(D,M),this.reason=C,this.code=N,this.type=on.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class xn extends Zn{constructor(D,M,C,N){super(D,M),this.reason=C,this.code=N,this.type=on.NavigationSkipped}}class kn extends Zn{constructor(D,M,C,N){super(D,M),this.error=C,this.target=N,this.type=on.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class _o extends Zn{constructor(D,M,C,N){super(D,M),this.urlAfterRedirects=C,this.state=N,this.type=on.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ni extends Zn{constructor(D,M,C,N){super(D,M),this.urlAfterRedirects=C,this.state=N,this.type=on.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class gi extends Zn{constructor(D,M,C,N,ee){super(D,M),this.urlAfterRedirects=C,this.state=N,this.shouldActivate=ee,this.type=on.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Co extends Zn{constructor(D,M,C,N){super(D,M),this.urlAfterRedirects=C,this.state=N,this.type=on.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Wo extends Zn{constructor(D,M,C,N){super(D,M),this.urlAfterRedirects=C,this.state=N,this.type=on.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ri{constructor(D){this.route=D,this.type=on.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class ir{constructor(D){this.route=D,this.type=on.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class jr{constructor(D){this.snapshot=D,this.type=on.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class vi{constructor(D){this.snapshot=D,this.type=on.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Gn{constructor(D){this.snapshot=D,this.type=on.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Lo{constructor(D){this.snapshot=D,this.type=on.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class To{constructor(D,M,C){this.routerEvent=D,this.position=M,this.anchor=C,this.type=on.Scroll}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class Do{}class co{constructor(D){this.url=D}}class Li{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new S,this.attachRef=null}}let S=(()=>{var I;class D{constructor(){this.contexts=new Map}onChildOutletCreated(C,N){const ee=this.getOrCreateContext(C);ee.outlet=N,this.contexts.set(C,ee)}onChildOutletDestroyed(C){const N=this.getContext(C);N&&(N.outlet=null,N.attachRef=null)}onOutletDeactivated(){const C=this.contexts;return this.contexts=new Map,C}onOutletReAttached(C){this.contexts=C}getOrCreateContext(C){let N=this.getContext(C);return N||(N=new Li,this.contexts.set(C,N)),N}getContext(C){return this.contexts.get(C)||null}}return(I=D).\u0275fac=function(C){return new(C||I)},I.\u0275prov=c.jDH({token:I,factory:I.\u0275fac,providedIn:"root"}),D})();class q{constructor(D){this._root=D}get root(){return this._root.value}parent(D){const M=this.pathFromRoot(D);return M.length>1?M[M.length-2]:null}children(D){const M=fe(D,this._root);return M?M.children.map(C=>C.value):[]}firstChild(D){const M=fe(D,this._root);return M&&M.children.length>0?M.children[0].value:null}siblings(D){const M=P(D,this._root);return M.length<2?[]:M[M.length-2].children.map(N=>N.value).filter(N=>N!==D)}pathFromRoot(D){return P(D,this._root).map(M=>M.value)}}function fe(I,D){if(I===D.value)return D;for(const M of D.children){const C=fe(I,M);if(C)return C}return null}function P(I,D){if(I===D.value)return[D];for(const M of D.children){const C=P(I,M);if(C.length)return C.unshift(D),C}return[]}class me{constructor(D,M){this.value=D,this.children=M}toString(){return`TreeNode(${this.value})`}}function Ye(I){const D={};return I&&I.children.forEach(M=>D[M.value.outlet]=M),D}class hr extends q{constructor(D,M){super(D),this.snapshot=M,nt(this,D)}toString(){return this.snapshot.toString()}}function yi(I){const D=function H(I){const ee=new Ue([],{},{},"",{},En,I,null,{});return new at("",new me(ee,[]))}(I),M=new Je.t([new Rr("",{})]),C=new Je.t({}),N=new Je.t({}),ee=new Je.t({}),Ie=new Je.t(""),gt=new ie(M,C,ee,Ie,N,En,I,D.root);return gt.snapshot=D.root,new hr(new me(gt,[]),D)}class ie{constructor(D,M,C,N,ee,Ie,gt,en){var St,wn;this.urlSubject=D,this.paramsSubject=M,this.queryParamsSubject=C,this.fragmentSubject=N,this.dataSubject=ee,this.outlet=Ie,this.component=gt,this._futureSnapshot=en,this.title=null!==(St=null===(wn=this.dataSubject)||void 0===wn?void 0:wn.pipe((0,Zt.T)(yr=>yr[nr])))&&void 0!==St?St:(0,se.of)(void 0),this.url=D,this.params=M,this.queryParams=C,this.fragment=N,this.data=ee}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 D;return null!==(D=this._paramMap)&&void 0!==D||(this._paramMap=this.params.pipe((0,Zt.T)(M=>$e(M)))),this._paramMap}get queryParamMap(){var D;return null!==(D=this._queryParamMap)&&void 0!==D||(this._queryParamMap=this.queryParams.pipe((0,Zt.T)(M=>$e(M)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function De(I,D,M="emptyOnly"){var C;let N;const{routeConfig:ee}=I;var Ie;return N=null===D||"always"!==M&&""!==(null==ee?void 0:ee.path)&&(D.component||null!==(C=D.routeConfig)&&void 0!==C&&C.loadComponent)?{params:{...I.params},data:{...I.data},resolve:{...I.data,...null!==(Ie=I._resolvedData)&&void 0!==Ie?Ie:{}}}:{params:{...D.params,...I.params},data:{...D.data,...I.data},resolve:{...I.data,...D.data,...null==ee?void 0:ee.data,...I._resolvedData}},ee&&tn(ee)&&(N.resolve[nr]=ee.title),N}class Ue{get title(){var D;return null===(D=this.data)||void 0===D?void 0:D[nr]}constructor(D,M,C,N,ee,Ie,gt,en,St){this.url=D,this.params=M,this.queryParams=C,this.fragment=N,this.data=ee,this.outlet=Ie,this.component=gt,this.routeConfig=en,this._resolve=St}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 D;return null!==(D=this._paramMap)&&void 0!==D||(this._paramMap=$e(this.params)),this._paramMap}get queryParamMap(){var D;return null!==(D=this._queryParamMap)&&void 0!==D||(this._queryParamMap=$e(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(C=>C.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class at extends q{constructor(D,M){super(M),this.url=D,nt(this,M)}toString(){return $t(this._root)}}function nt(I,D){D.value._routerState=I,D.children.forEach(M=>nt(I,M))}function $t(I){const D=I.children.length>0?` { ${I.children.map($t).join(", ")} } `:"";return`${I.value}${D}`}function qt(I){if(I.snapshot){const D=I.snapshot,M=I._futureSnapshot;I.snapshot=M,Jt(D.queryParams,M.queryParams)||I.queryParamsSubject.next(M.queryParams),D.fragment!==M.fragment&&I.fragmentSubject.next(M.fragment),Jt(D.params,M.params)||I.paramsSubject.next(M.params),function kt(I,D){if(I.length!==D.length)return!1;for(let M=0;MJt(M.parameters,D[C].parameters))}(I.url,D.url);return M&&!(!I.parent!=!D.parent)&&(!I.parent||Qt(I.parent,D.parent))}function tn(I){return"string"==typeof I.title||null===I.title}let An=(()=>{var I;class D{constructor(){this.activated=null,this._activatedRoute=null,this.name=En,this.activateEvents=new c.bkB,this.deactivateEvents=new c.bkB,this.attachEvents=new c.bkB,this.detachEvents=new c.bkB,this.parentContexts=(0,c.WQX)(S),this.location=(0,c.WQX)(c.c1b),this.changeDetector=(0,c.WQX)(c.gRc),this.environmentInjector=(0,c.WQX)(c.uvJ),this.inputBinder=(0,c.WQX)($n,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(C){if(C.name){const{firstChange:N,previousValue:ee}=C.name;if(N)return;this.isTrackedInParentContexts(ee)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(ee)),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 N;return(null===(N=this.parentContexts.getContext(C))||void 0===N?void 0:N.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 c.wOt(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new c.wOt(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new c.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,N){var ee;this.activated=C,this._activatedRoute=N,this.location.insert(C.hostView),null===(ee=this.inputBinder)||void 0===ee||ee.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,N){var ee;if(this.isActivated)throw new c.wOt(4013,!1);this._activatedRoute=C;const Ie=this.location,en=C.snapshot.component,St=this.parentContexts.getOrCreateContext(this.name).children,wn=new bn(C,St,Ie.injector);this.activated=Ie.createComponent(en,{index:Ie.length,injector:wn,environmentInjector:null!=N?N:this.environmentInjector}),this.changeDetector.markForCheck(),null===(ee=this.inputBinder)||void 0===ee||ee.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}}return(I=D).\u0275fac=function(C){return new(C||I)},I.\u0275dir=c.FsC({type:I,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[c.OA$]}),D})();class bn{__ngOutletInjector(D){return new bn(this.route,this.childContexts,D)}constructor(D,M,C){this.route=D,this.childContexts=M,this.parent=C}get(D,M){return D===ie?this.route:D===S?this.childContexts:this.parent.get(D,M)}}const $n=new c.nKC("");let Cn=(()=>{var I;class D{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(C){this.unsubscribeFromRouteData(C),this.subscribeToRouteData(C)}unsubscribeFromRouteData(C){var N;null===(N=this.outletDataSubscriptions.get(C))||void 0===N||N.unsubscribe(),this.outletDataSubscriptions.delete(C)}subscribeToRouteData(C){const{activatedRoute:N}=C,ee=(0,et.z)([N.queryParams,N.params,N.data]).pipe((0,It.n)(([Ie,gt,en],St)=>(en={...Ie,...gt,...en},0===St?(0,se.of)(en):Promise.resolve(en)))).subscribe(Ie=>{if(!C.isActivated||!C.activatedComponentRef||C.activatedRoute!==N||null===N.component)return void this.unsubscribeFromRouteData(C);const gt=(0,c.HJs)(N.component);if(gt)for(const{templateName:en}of gt.inputs)C.activatedComponentRef.setInput(en,Ie[en]);else this.unsubscribeFromRouteData(C)});this.outletDataSubscriptions.set(C,ee)}}return(I=D).\u0275fac=function(C){return new(C||I)},I.\u0275prov=c.jDH({token:I,factory:I.\u0275fac}),D})();function vr(I,D,M){if(M&&I.shouldReuseRoute(D.value,M.value.snapshot)){const C=M.value;C._futureSnapshot=D.value;const N=function ar(I,D,M){return D.children.map(C=>{for(const N of M.children)if(I.shouldReuseRoute(C.value,N.value.snapshot))return vr(I,C,N);return vr(I,C)})}(I,D,M);return new me(C,N)}{if(I.shouldAttach(D.value)){const ee=I.retrieve(D.value);if(null!==ee){const Ie=ee.route;return Ie.value._futureSnapshot=D.value,Ie.children=D.children.map(gt=>vr(I,gt)),Ie}}const C=function _i(I){return new ie(new Je.t(I.url),new Je.t(I.params),new Je.t(I.queryParams),new Je.t(I.fragment),new Je.t(I.data),I.outlet,I.component,I)}(D.value),N=D.children.map(ee=>vr(I,ee));return new me(C,N)}}const Di="ngNavigationCancelingError";function Ii(I,D){const{redirectTo:M,navigationBehaviorOptions:C}=Mi(D)?{redirectTo:D,navigationBehaviorOptions:void 0}:D,N=no(!1,gr.Redirect);return N.url=M,N.navigationBehaviorOptions=C,N}function no(I,D){const M=new Error(`NavigationCancelingError: ${I||""}`);return M[Di]=!0,M.cancellationCode=D,M}function _r(I){return!!I&&I[Di]}let ii=(()=>{var I;class D{}return(I=D).\u0275fac=function(C){return new(C||I)},I.\u0275cmp=c.VBU({type:I,selectors:[["ng-component"]],standalone:!0,features:[c.aNF],decls:1,vars:0,template:function(C,N){1&C&&c.nrm(0,"router-outlet")},dependencies:[An],encapsulation:2}),D})();function Us(I){const D=I.children&&I.children.map(Us),M=D?{...I,children:D}:{...I};return!M.component&&!M.loadComponent&&(D||M.loadChildren)&&M.outlet&&M.outlet!==En&&(M.component=ii),M}function so(I){return I.outlet||En}function gs(I){var D;if(!I)return null;if(null!==(D=I.routeConfig)&&void 0!==D&&D._injector)return I.routeConfig._injector;for(let M=I.parent;M;M=M.parent){const C=M.routeConfig;if(null!=C&&C._loadedInjector)return C._loadedInjector;if(null!=C&&C._injector)return C._injector}return null}class $s{constructor(D,M,C,N,ee){this.routeReuseStrategy=D,this.futureState=M,this.currState=C,this.forwardEvent=N,this.inputBindingEnabled=ee}activate(D){const M=this.futureState._root,C=this.currState?this.currState._root:null;this.deactivateChildRoutes(M,C,D),qt(this.futureState.root),this.activateChildRoutes(M,C,D)}deactivateChildRoutes(D,M,C){const N=Ye(M);D.children.forEach(ee=>{const Ie=ee.value.outlet;this.deactivateRoutes(ee,N[Ie],C),delete N[Ie]}),Object.values(N).forEach(ee=>{this.deactivateRouteAndItsChildren(ee,C)})}deactivateRoutes(D,M,C){const N=D.value,ee=M?M.value:null;if(N===ee)if(N.component){const Ie=C.getContext(N.outlet);Ie&&this.deactivateChildRoutes(D,M,Ie.children)}else this.deactivateChildRoutes(D,M,C);else ee&&this.deactivateRouteAndItsChildren(M,C)}deactivateRouteAndItsChildren(D,M){D.value.component&&this.routeReuseStrategy.shouldDetach(D.value.snapshot)?this.detachAndStoreRouteSubtree(D,M):this.deactivateRouteAndOutlet(D,M)}detachAndStoreRouteSubtree(D,M){const C=M.getContext(D.value.outlet),N=C&&D.value.component?C.children:M,ee=Ye(D);for(const Ie of Object.values(ee))this.deactivateRouteAndItsChildren(Ie,N);if(C&&C.outlet){const Ie=C.outlet.detach(),gt=C.children.onOutletDeactivated();this.routeReuseStrategy.store(D.value.snapshot,{componentRef:Ie,route:D,contexts:gt})}}deactivateRouteAndOutlet(D,M){const C=M.getContext(D.value.outlet),N=C&&D.value.component?C.children:M,ee=Ye(D);for(const Ie of Object.values(ee))this.deactivateRouteAndItsChildren(Ie,N);C&&(C.outlet&&(C.outlet.deactivate(),C.children.onOutletDeactivated()),C.attachRef=null,C.route=null)}activateChildRoutes(D,M,C){const N=Ye(M);D.children.forEach(ee=>{this.activateRoutes(ee,N[ee.value.outlet],C),this.forwardEvent(new Lo(ee.value.snapshot))}),D.children.length&&this.forwardEvent(new vi(D.value.snapshot))}activateRoutes(D,M,C){const N=D.value,ee=M?M.value:null;if(qt(N),N===ee)if(N.component){const Ie=C.getOrCreateContext(N.outlet);this.activateChildRoutes(D,M,Ie.children)}else this.activateChildRoutes(D,M,C);else if(N.component){const Ie=C.getOrCreateContext(N.outlet);if(this.routeReuseStrategy.shouldAttach(N.snapshot)){const gt=this.routeReuseStrategy.retrieve(N.snapshot);this.routeReuseStrategy.store(N.snapshot,null),Ie.children.onOutletReAttached(gt.contexts),Ie.attachRef=gt.componentRef,Ie.route=gt.route.value,Ie.outlet&&Ie.outlet.attach(gt.componentRef,gt.route.value),qt(gt.route.value),this.activateChildRoutes(D,null,Ie.children)}else{const gt=gs(N.snapshot);Ie.attachRef=null,Ie.route=N,Ie.injector=gt,Ie.outlet&&Ie.outlet.activateWith(N,Ie.injector),this.activateChildRoutes(D,null,Ie.children)}}else this.activateChildRoutes(D,null,C)}}class ca{constructor(D){this.path=D,this.route=this.path[this.path.length-1]}}class Qo{constructor(D,M){this.component=D,this.route=M}}function bs(I,D,M){const C=I._root;return zi(C,D?D._root:null,M,[C.value])}function So(I,D){const M=Symbol(),C=D.get(I,M);return C===M?"function"!=typeof I||(0,c.LfX)(I)?D.get(I):I:C}function zi(I,D,M,C,N={canDeactivateChecks:[],canActivateChecks:[]}){const ee=Ye(D);return I.children.forEach(Ie=>{(function da(I,D,M,C,N={canDeactivateChecks:[],canActivateChecks:[]}){const ee=I.value,Ie=D?D.value:null,gt=M?M.getContext(I.value.outlet):null;if(Ie&&ee.routeConfig===Ie.routeConfig){const en=function ol(I,D,M){if("function"==typeof M)return M(I,D);switch(M){case"pathParamsChange":return!Tr(I.url,D.url);case"pathParamsOrQueryParamsChange":return!Tr(I.url,D.url)||!Jt(I.queryParams,D.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Qt(I,D)||!Jt(I.queryParams,D.queryParams);default:return!Qt(I,D)}}(Ie,ee,ee.routeConfig.runGuardsAndResolvers);en?N.canActivateChecks.push(new ca(C)):(ee.data=Ie.data,ee._resolvedData=Ie._resolvedData),zi(I,D,ee.component?gt?gt.children:null:M,C,N),en&>&>.outlet&>.outlet.isActivated&&N.canDeactivateChecks.push(new Qo(gt.outlet.component,Ie))}else Ie&&z(D,gt,N),N.canActivateChecks.push(new ca(C)),zi(I,null,ee.component?gt?gt.children:null:M,C,N)})(Ie,ee[Ie.value.outlet],M,C.concat([Ie.value]),N),delete ee[Ie.value.outlet]}),Object.entries(ee).forEach(([Ie,gt])=>z(gt,M.getContext(Ie),N)),N}function z(I,D,M){const C=Ye(I),N=I.value;Object.entries(C).forEach(([ee,Ie])=>{z(Ie,N.component?D?D.children.getContext(ee):null:D,M)}),M.canDeactivateChecks.push(new Qo(N.component&&D&&D.outlet&&D.outlet.isActivated?D.outlet.component:null,N))}function x(I){return"function"==typeof I}function Zi(I){return I instanceof Ee||"EmptyError"===(null==I?void 0:I.name)}const ao=Symbol("INITIAL_VALUE");function eo(){return(0,It.n)(I=>(0,et.z)(I.map(D=>D.pipe((0,je.s)(1),function nn(...I){const D=(0,pt.lI)(I);return(0,Xe.N)((M,C)=>{(D?ct(I,M,D):ct(I,M)).subscribe(C)})}(ao)))).pipe((0,Zt.T)(D=>{for(const M of D)if(!0!==M){if(M===ao)return ao;if(!1===M||M instanceof Yn)return M}return!0}),(0,ht.p)(D=>D!==ao),(0,je.s)(1)))}function or(I){return(0,yt.F)((0,ae.M)(D=>{if(Mi(D))throw Ii(0,D)}),(0,Zt.T)(D=>!0===D))}class xi{constructor(D){this.segmentGroup=D||null}}class ro extends Error{constructor(D){super(),this.urlTree=D}}function ei(I){return vt(new xi(I))}class Ll{constructor(D,M){this.urlSerializer=D,this.urlTree=M}lineralizeSegments(D,M){let C=[],N=M.root;for(;;){if(C=C.concat(N.segments),0===N.numberOfChildren)return(0,se.of)(C);if(N.numberOfChildren>1||!N.children[En])return vt(new c.wOt(4e3,!1));N=N.children[En]}}applyRedirectCommands(D,M,C){const N=this.applyRedirectCreateUrlTree(M,this.urlSerializer.parse(M),D,C);if(M.startsWith("/"))throw new ro(N);return N}applyRedirectCreateUrlTree(D,M,C,N){const ee=this.createSegmentGroup(D,M.root,C,N);return new Yn(ee,this.createQueryParams(M.queryParams,this.urlTree.queryParams),M.fragment)}createQueryParams(D,M){const C={};return Object.entries(D).forEach(([N,ee])=>{if("string"==typeof ee&&ee.startsWith(":")){const gt=ee.substring(1);C[N]=M[gt]}else C[N]=ee}),C}createSegmentGroup(D,M,C,N){const ee=this.createSegments(D,M.segments,C,N);let Ie={};return Object.entries(M.children).forEach(([gt,en])=>{Ie[gt]=this.createSegmentGroup(D,en,C,N)}),new Rn(ee,Ie)}createSegments(D,M,C,N){return M.map(ee=>ee.path.startsWith(":")?this.findPosParam(D,ee,N):this.findOrReturn(ee,C))}findPosParam(D,M,C){const N=C[M.path.substring(1)];if(!N)throw new c.wOt(4001,!1);return N}findOrReturn(D,M){let C=0;for(const N of M){if(N.path===D.path)return M.splice(C),N;C++}return D}}const Dr={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function ul(I,D,M,C,N){const ee=ys(I,D,M);return ee.matched?(C=function qo(I,D){var M;return I.providers&&!I._injector&&(I._injector=(0,c.Ol2)(I.providers,D,`Route: ${I.path}`)),null!==(M=I._injector)&&void 0!==M?M:D}(D,C),function Vi(I,D,M,C){const N=D.canMatch;if(!N||0===N.length)return(0,se.of)(!0);const ee=N.map(Ie=>{const gt=So(Ie,I);return yn(function lr(I){return I&&x(I.canMatch)}(gt)?gt.canMatch(D,M):(0,c.N4e)(I,()=>gt(D,M)))});return(0,se.of)(ee).pipe(eo(),or())}(C,D,M).pipe((0,Zt.T)(Ie=>!0===Ie?ee:{...Dr}))):(0,se.of)(ee)}function ys(I,D,M){var C,N;if("**"===D.path)return function ka(I){return{matched:!0,parameters:I.length>0?_n(I).parameters:{},consumedSegments:I,remainingSegments:[],positionalParamSegments:{}}}(M);if(""===D.path)return"full"===D.pathMatch&&(I.hasChildren()||M.length>0)?{...Dr}:{matched:!0,consumedSegments:[],remainingSegments:M,parameters:{},positionalParamSegments:{}};const Ie=(D.matcher||At)(M,I,D);if(!Ie)return{...Dr};const gt={};Object.entries(null!==(C=Ie.posParams)&&void 0!==C?C:{}).forEach(([St,wn])=>{gt[St]=wn.path});const en=Ie.consumed.length>0?{...gt,...Ie.consumed[Ie.consumed.length-1].parameters}:gt;return{matched:!0,consumedSegments:Ie.consumed,remainingSegments:M.slice(Ie.consumed.length),parameters:en,positionalParamSegments:null!==(N=Ie.posParams)&&void 0!==N?N:{}}}function js(I,D,M,C){return M.length>0&&function Vl(I,D,M){return M.some(C=>fa(I,D,C)&&so(C)!==En)}(I,M,C)?{segmentGroup:new Rn(D,Fa(C,new Rn(M,I.children))),slicedSegments:[]}:0===M.length&&function Ul(I,D,M){return M.some(C=>fa(I,D,C))}(I,M,C)?{segmentGroup:new Rn(I.segments,cl(I,M,C,I.children)),slicedSegments:M}:{segmentGroup:new Rn(I.segments,I.children),slicedSegments:M}}function cl(I,D,M,C){const N={};for(const ee of M)if(fa(I,D,ee)&&!C[so(ee)]){const Ie=new Rn([],{});N[so(ee)]=Ie}return{...C,...N}}function Fa(I,D){const M={};M[En]=D;for(const C of I)if(""===C.path&&so(C)!==En){const N=new Rn([],{});M[so(C)]=N}return M}function fa(I,D,M){return(!(I.hasChildren()||D.length>0)||"full"!==M.pathMatch)&&""===M.path}class Zo{}class es{constructor(D,M,C,N,ee,Ie,gt){this.injector=D,this.configLoader=M,this.rootComponentType=C,this.config=N,this.urlTree=ee,this.paramsInheritanceStrategy=Ie,this.urlSerializer=gt,this.applyRedirects=new Ll(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(D){return new c.wOt(4002,`'${D.segmentGroup}'`)}recognize(){const D=js(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(D).pipe((0,Zt.T)(M=>{const C=new Ue([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},En,this.rootComponentType,null,{}),N=new me(C,M),ee=new at("",N),Ie=function pi(I,D,M=null,C=null){return ut(Rt(I),D,M,C)}(C,[],this.urlTree.queryParams,this.urlTree.fragment);return Ie.queryParams=this.urlTree.queryParams,ee.url=this.urlSerializer.serialize(Ie),this.inheritParamsAndData(ee._root,null),{state:ee,tree:Ie}}))}match(D){return this.processSegmentGroup(this.injector,this.config,D,En).pipe(ye(C=>{if(C instanceof ro)return this.urlTree=C.urlTree,this.match(C.urlTree.root);throw C instanceof xi?this.noMatchError(C):C}))}inheritParamsAndData(D,M){const C=D.value,N=De(C,M,this.paramsInheritanceStrategy);C.params=Object.freeze(N.params),C.data=Object.freeze(N.data),D.children.forEach(ee=>this.inheritParamsAndData(ee,C))}processSegmentGroup(D,M,C,N){return 0===C.segments.length&&C.hasChildren()?this.processChildren(D,M,C):this.processSegment(D,M,C,C.segments,N,!0).pipe((0,Zt.T)(ee=>ee instanceof me?[ee]:[]))}processChildren(D,M,C){const N=[];for(const ee of Object.keys(C.children))"primary"===ee?N.unshift(ee):N.push(ee);return(0,Ae.H)(N).pipe((0,oe.H)(ee=>{const Ie=C.children[ee],gt=function ua(I,D){const M=I.filter(C=>so(C)===D);return M.push(...I.filter(C=>so(C)!==D)),M}(M,ee);return this.processSegmentGroup(D,gt,Ie,ee)}),function ft(I,D){return(0,Xe.N)(function Te(I,D,M,C,N){return(ee,Ie)=>{let gt=M,en=D,St=0;ee.subscribe((0,Dt._)(Ie,wn=>{const yr=St++;en=gt?I(en,wn,yr):(gt=!0,wn),C&&Ie.next(en)},N&&(()=>{gt&&Ie.next(en),Ie.complete()})))}}(I,D,arguments.length>=2,!0))}((ee,Ie)=>(ee.push(...Ie),ee)),Ne(null),function jt(I,D){const M=arguments.length>=2;return C=>C.pipe(I?(0,ht.p)((N,ee)=>I(N,ee,C)):Be.D,Nt(1),M?Ne(D):B(()=>new Ee))}(),(0,Ve.Z)(ee=>{if(null===ee)return ei(C);const Ie=Uo(ee);return function wu(I){I.sort((D,M)=>D.value.outlet===En?-1:M.value.outlet===En?1:D.value.outlet.localeCompare(M.value.outlet))}(Ie),(0,se.of)(Ie)}))}processSegment(D,M,C,N,ee,Ie){return(0,Ae.H)(M).pipe((0,oe.H)(gt=>{var en;return this.processSegmentAgainstRoute(null!==(en=gt._injector)&&void 0!==en?en:D,M,gt,C,N,ee,Ie).pipe(ye(St=>{if(St instanceof xi)return(0,se.of)(null);throw St}))}),ne(gt=>!!gt),ye(gt=>{if(Zi(gt))return function ws(I,D,M){return 0===D.length&&!I.children[M]}(C,N,ee)?(0,se.of)(new Zo):ei(C);throw gt}))}processSegmentAgainstRoute(D,M,C,N,ee,Ie,gt){return function Is(I,D,M,C){return!!(so(I)===C||C!==En&&fa(D,M,I))&&ys(D,I,M).matched}(C,N,ee,Ie)?void 0===C.redirectTo?this.matchSegmentAgainstRoute(D,N,C,ee,Ie):this.allowRedirects&>?this.expandSegmentAgainstRouteUsingRedirect(D,N,M,C,ee,Ie):ei(N):ei(N)}expandSegmentAgainstRouteUsingRedirect(D,M,C,N,ee,Ie){const{matched:gt,consumedSegments:en,positionalParamSegments:St,remainingSegments:wn}=ys(M,N,ee);if(!gt)return ei(M);N.redirectTo.startsWith("/")&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>31&&(this.allowRedirects=!1));const yr=this.applyRedirects.applyRedirectCommands(en,N.redirectTo,St);return this.applyRedirects.lineralizeSegments(N,yr).pipe((0,Ve.Z)(ki=>this.processSegment(D,C,M,ki.concat(wn),Ie,!1)))}matchSegmentAgainstRoute(D,M,C,N,ee){const Ie=ul(M,C,N,D);return"**"===C.path&&(M.children={}),Ie.pipe((0,It.n)(gt=>{var en;return gt.matched?(D=null!==(en=C._injector)&&void 0!==en?en:D,this.getChildConfig(D,C,N).pipe((0,It.n)(({routes:St})=>{var wn,yr,ki;const Xr=null!==(wn=C._loadedInjector)&&void 0!==wn?wn:D,{consumedSegments:qi,remainingSegments:jo,parameters:za}=gt,Ha=new Ue(qi,za,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,function Rs(I){return I.data||{}}(C),so(C),null!==(yr=null!==(ki=C.component)&&void 0!==ki?ki:C._loadedComponent)&&void 0!==yr?yr:null,C,function Ni(I){return I.resolve||{}}(C)),{segmentGroup:Io,slicedSegments:hl}=js(M,qi,jo,St);if(0===hl.length&&Io.hasChildren())return this.processChildren(Xr,St,Io).pipe((0,Zt.T)(Ps=>null===Ps?null:new me(Ha,Ps)));if(0===St.length&&0===hl.length)return(0,se.of)(new me(Ha,[]));const Wl=so(C)===ee;return this.processSegment(Xr,St,Io,hl,Wl?En:ee,!0).pipe((0,Zt.T)(Ps=>new me(Ha,Ps instanceof me?[Ps]:[])))}))):ei(M)}))}getChildConfig(D,M,C){return M.children?(0,se.of)({routes:M.children,injector:D}):M.loadChildren?void 0!==M._loadedRoutes?(0,se.of)({routes:M._loadedRoutes,injector:M._loadedInjector}):function ha(I,D,M,C){const N=D.canLoad;if(void 0===N||0===N.length)return(0,se.of)(!0);const ee=N.map(Ie=>{const gt=So(Ie,I);return yn(function G(I){return I&&x(I.canLoad)}(gt)?gt.canLoad(D,M):(0,c.N4e)(I,()=>gt(D,M)))});return(0,se.of)(ee).pipe(eo(),or())}(D,M,C).pipe((0,Ve.Z)(N=>N?this.configLoader.loadChildren(D,M).pipe((0,ae.M)(ee=>{M._loadedRoutes=ee.routes,M._loadedInjector=ee.injector})):function _s(I){return vt(no(!1,gr.GuardRejected))}())):(0,se.of)({routes:[],injector:D})}}function $l(I){const D=I.value.routeConfig;return D&&""===D.path}function Uo(I){const D=[],M=new Set;for(const C of I){if(!$l(C)){D.push(C);continue}const N=D.find(ee=>C.value.routeConfig===ee.value.routeConfig);void 0!==N?(N.children.push(...C.children),M.add(N)):D.push(C)}for(const C of M){const N=Uo(C.children);D.push(new me(C.value,N))}return D.filter(C=>!M.has(C))}function ga(I){const D=I.children.map(M=>ga(M)).flat();return[I,...D]}function ma(I){return(0,It.n)(D=>{const M=I(D);return M?(0,Ae.H)(M).pipe((0,Zt.T)(()=>D)):(0,se.of)(D)})}let Ms=(()=>{var I;class D{buildTitle(C){let N,ee=C.root;for(;void 0!==ee;){var Ie;N=null!==(Ie=this.getResolvedTitleForRoute(ee))&&void 0!==Ie?Ie:N,ee=ee.children.find(gt=>gt.outlet===En)}return N}getResolvedTitleForRoute(C){return C.data[nr]}}return(I=D).\u0275fac=function(C){return new(C||I)},I.\u0275prov=c.jDH({token:I,factory:()=>(0,c.WQX)(lo),providedIn:"root"}),D})(),lo=(()=>{var I;class D extends Ms{constructor(C){super(),this.title=C}updateTitle(C){const N=this.buildTitle(C);void 0!==N&&this.title.setTitle(N)}}return(I=D).\u0275fac=function(C){return new(C||I)(c.KVO(Qn.hE))},I.\u0275prov=c.jDH({token:I,factory:I.\u0275fac,providedIn:"root"}),D})();const Hs=new c.nKC("",{providedIn:"root",factory:()=>({})}),Es=new c.nKC("");let T=(()=>{var I;class D{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=(0,c.WQX)(c.Ql9)}loadComponent(C){if(this.componentLoaders.get(C))return this.componentLoaders.get(C);if(C._loadedComponent)return(0,se.of)(C._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(C);const N=yn(C.loadComponent()).pipe((0,Zt.T)(k),(0,ae.M)(Ie=>{this.onLoadEndListener&&this.onLoadEndListener(C),C._loadedComponent=Ie}),(0,Sn.j)(()=>{this.componentLoaders.delete(C)})),ee=new We(N,()=>new bt.B).pipe(Ot());return this.componentLoaders.set(C,ee),ee}loadChildren(C,N){if(this.childrenLoaders.get(N))return this.childrenLoaders.get(N);if(N._loadedRoutes)return(0,se.of)({routes:N._loadedRoutes,injector:N._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(N);const Ie=function $(I,D,M,C){return yn(I.loadChildren()).pipe((0,Zt.T)(k),(0,Ve.Z)(N=>N instanceof c.Co$||Array.isArray(N)?(0,se.of)(N):(0,Ae.H)(D.compileModuleAsync(N))),(0,Zt.T)(N=>{C&&C(I);let ee,Ie,gt=!1;return Array.isArray(N)?(Ie=N,!0):(ee=N.create(M).injector,Ie=ee.get(Es,[],{optional:!0,self:!0}).flat()),{routes:Ie.map(Us),injector:ee}}))}(N,this.compiler,C,this.onLoadEndListener).pipe((0,Sn.j)(()=>{this.childrenLoaders.delete(N)})),gt=new We(Ie,()=>new bt.B).pipe(Ot());return this.childrenLoaders.set(N,gt),gt}}return(I=D).\u0275fac=function(C){return new(C||I)},I.\u0275prov=c.jDH({token:I,factory:I.\u0275fac,providedIn:"root"}),D})();function k(I){return function Se(I){return I&&"object"==typeof I&&"default"in I}(I)?I.default:I}let he=(()=>{var I;class D{}return(I=D).\u0275fac=function(C){return new(C||I)},I.\u0275prov=c.jDH({token:I,factory:()=>(0,c.WQX)(ke),providedIn:"root"}),D})(),ke=(()=>{var I;class D{shouldProcessUrl(C){return!0}extract(C){return C}merge(C,N){return C}}return(I=D).\u0275fac=function(C){return new(C||I)},I.\u0275prov=c.jDH({token:I,factory:I.\u0275fac,providedIn:"root"}),D})();const Vt=new c.nKC(""),dn=new c.nKC("");function Hn(I,D,M){const C=I.get(dn),N=I.get(Ut.qQ);return I.get(c.SKi).runOutsideAngular(()=>{if(!N.startViewTransition||C.skipNextTransition)return C.skipNextTransition=!1,new Promise(St=>setTimeout(St));let ee;const Ie=new Promise(St=>{ee=St}),gt=N.startViewTransition(()=>(ee(),function Vn(I){return new Promise(D=>{(0,c.mal)(D,{injector:I})})}(I))),{onViewTransitionCreated:en}=C;return en&&(0,c.N4e)(I,()=>en({transition:gt,from:D,to:M})),Ie})}let zr=(()=>{var I;class D{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new bt.B,this.transitionAbortSubject=new bt.B,this.configLoader=(0,c.WQX)(T),this.environmentInjector=(0,c.WQX)(c.uvJ),this.urlSerializer=(0,c.WQX)(Jr),this.rootContexts=(0,c.WQX)(S),this.location=(0,c.WQX)(Ut.aZ),this.inputBindingEnabled=null!==(0,c.WQX)($n,{optional:!0}),this.titleStrategy=(0,c.WQX)(Ms),this.options=(0,c.WQX)(Hs,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=(0,c.WQX)(he),this.createViewTransition=(0,c.WQX)(Vt,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>(0,se.of)(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=ee=>this.events.next(new ir(ee)),this.configLoader.onLoadStartListener=ee=>this.events.next(new ri(ee))}complete(){var C;null===(C=this.transitions)||void 0===C||C.complete()}handleNavigationRequest(C){var N;const ee=++this.navigationId;null===(N=this.transitions)||void 0===N||N.next({...this.transitions.value,...C,id:ee})}setupNavigations(C,N,ee){return this.transitions=new Je.t({id:0,currentUrlTree:N,currentRawUrl:N,extractedUrl:this.urlHandlingStrategy.extract(N),urlAfterRedirects:this.urlHandlingStrategy.extract(N),rawUrl:N,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:pr,restoredState:null,currentSnapshot:ee.snapshot,targetSnapshot:null,currentRouterState:ee,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe((0,ht.p)(Ie=>0!==Ie.id),(0,Zt.T)(Ie=>({...Ie,extractedUrl:this.urlHandlingStrategy.extract(Ie.rawUrl)})),(0,It.n)(Ie=>{let gt=!1,en=!1;return(0,se.of)(Ie).pipe((0,It.n)(St=>{var wn;if(this.navigationId>Ie.id)return this.cancelNavigationTransition(Ie,"",gr.SupersededByNewNavigation),Re.w;this.currentTransition=Ie,this.currentNavigation={id:St.id,initialUrl:St.rawUrl,extractedUrl:St.extractedUrl,trigger:St.source,extras:St.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null};const yr=!C.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),ki=null!==(wn=St.extras.onSameUrlNavigation)&&void 0!==wn?wn:C.onSameUrlNavigation;if(!yr&&"reload"!==ki){const Xr="";return this.events.next(new xn(St.id,this.urlSerializer.serialize(St.rawUrl),Xr,ur.IgnoredSameUrlNavigation)),St.resolve(null),Re.w}if(this.urlHandlingStrategy.shouldProcessUrl(St.rawUrl))return(0,se.of)(St).pipe((0,It.n)(Xr=>{var qi,jo;const za=null===(qi=this.transitions)||void 0===qi?void 0:qi.getValue();return this.events.next(new Br(Xr.id,this.urlSerializer.serialize(Xr.extractedUrl),Xr.source,Xr.restoredState)),za!==(null===(jo=this.transitions)||void 0===jo?void 0:jo.getValue())?Re.w:Promise.resolve(Xr)}),function pa(I,D,M,C,N,ee){return(0,Ve.Z)(Ie=>function Ss(I,D,M,C,N,ee,Ie="emptyOnly"){return new es(I,D,M,C,N,Ie,ee).recognize()}(I,D,M,C,Ie.extractedUrl,N,ee).pipe((0,Zt.T)(({state:gt,tree:en})=>({...Ie,targetSnapshot:gt,urlAfterRedirects:en}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,C.config,this.urlSerializer,this.paramsInheritanceStrategy),(0,ae.M)(Xr=>{Ie.targetSnapshot=Xr.targetSnapshot,Ie.urlAfterRedirects=Xr.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:Xr.urlAfterRedirects};const qi=new _o(Xr.id,this.urlSerializer.serialize(Xr.extractedUrl),this.urlSerializer.serialize(Xr.urlAfterRedirects),Xr.targetSnapshot);this.events.next(qi)}));if(yr&&this.urlHandlingStrategy.shouldProcessUrl(St.currentRawUrl)){const{id:Xr,extractedUrl:qi,source:jo,restoredState:za,extras:Ha}=St,Io=new Br(Xr,this.urlSerializer.serialize(qi),jo,za);this.events.next(Io);const hl=yi(this.rootComponentType).snapshot;return this.currentTransition=Ie={...St,targetSnapshot:hl,urlAfterRedirects:qi,extras:{...Ha,skipLocationChange:!1,replaceUrl:!1}},this.currentNavigation.finalUrl=qi,(0,se.of)(Ie)}{const Xr="";return this.events.next(new xn(St.id,this.urlSerializer.serialize(St.extractedUrl),Xr,ur.IgnoredByUrlHandlingStrategy)),St.resolve(null),Re.w}}),(0,ae.M)(St=>{const wn=new ni(St.id,this.urlSerializer.serialize(St.extractedUrl),this.urlSerializer.serialize(St.urlAfterRedirects),St.targetSnapshot);this.events.next(wn)}),(0,Zt.T)(St=>(this.currentTransition=Ie={...St,guards:bs(St.targetSnapshot,St.currentSnapshot,this.rootContexts)},Ie)),function Jo(I,D){return(0,Ve.Z)(M=>{const{targetSnapshot:C,currentSnapshot:N,guards:{canActivateChecks:ee,canDeactivateChecks:Ie}}=M;return 0===Ie.length&&0===ee.length?(0,se.of)({...M,guardsResult:!0}):function Na(I,D,M,C){return(0,Ae.H)(I).pipe((0,Ve.Z)(N=>function ls(I,D,M,C,N){const ee=D&&D.routeConfig?D.routeConfig.canDeactivate:null;if(!ee||0===ee.length)return(0,se.of)(!0);const Ie=ee.map(gt=>{var en;const St=null!==(en=gs(D))&&void 0!==en?en:N,wn=So(gt,St);return yn(function Fn(I){return I&&x(I.canDeactivate)}(wn)?wn.canDeactivate(I,D,M,C):(0,c.N4e)(St,()=>wn(I,D,M,C))).pipe(ne())});return(0,se.of)(Ie).pipe(eo())}(N.component,N.route,M,D,C)),ne(N=>!0!==N,!0))}(Ie,C,N,I).pipe((0,Ve.Z)(gt=>gt&&function ge(I){return"boolean"==typeof I}(gt)?function vs(I,D,M,C){return(0,Ae.H)(D).pipe((0,oe.H)(N=>ct(function Oa(I,D){return null!==I&&D&&D(new jr(I)),(0,se.of)(!0)}(N.route.parent,C),function Bs(I,D){return null!==I&&D&&D(new Gn(I)),(0,se.of)(!0)}(N.route,C),function al(I,D,M){const C=D[D.length-1],ee=D.slice(0,D.length-1).reverse().map(Ie=>function Yo(I){const D=I.routeConfig?I.routeConfig.canActivateChild:null;return D&&0!==D.length?{node:I,guards:D}:null}(Ie)).filter(Ie=>null!==Ie).map(Ie=>Pt(()=>{const gt=Ie.guards.map(en=>{var St;const wn=null!==(St=gs(Ie.node))&&void 0!==St?St:M,yr=So(en,wn);return yn(function ln(I){return I&&x(I.canActivateChild)}(yr)?yr.canActivateChild(C,I):(0,c.N4e)(wn,()=>yr(C,I))).pipe(ne())});return(0,se.of)(gt).pipe(eo())}));return(0,se.of)(ee).pipe(eo())}(I,N.path,M),function sl(I,D,M){const C=D.routeConfig?D.routeConfig.canActivate:null;if(!C||0===C.length)return(0,se.of)(!0);const N=C.map(ee=>Pt(()=>{var Ie;const gt=null!==(Ie=gs(D))&&void 0!==Ie?Ie:M,en=So(ee,gt);return yn(function we(I){return I&&x(I.canActivate)}(en)?en.canActivate(D,I):(0,c.N4e)(gt,()=>en(D,I))).pipe(ne())}));return(0,se.of)(N).pipe(eo())}(I,N.route,M))),ne(N=>!0!==N,!0))}(C,ee,I,D):(0,se.of)(gt)),(0,Zt.T)(gt=>({...M,guardsResult:gt})))})}(this.environmentInjector,St=>this.events.next(St)),(0,ae.M)(St=>{if(Ie.guardsResult=St.guardsResult,Mi(St.guardsResult))throw Ii(0,St.guardsResult);const wn=new gi(St.id,this.urlSerializer.serialize(St.extractedUrl),this.urlSerializer.serialize(St.urlAfterRedirects),St.targetSnapshot,!!St.guardsResult);this.events.next(wn)}),(0,ht.p)(St=>!!St.guardsResult||(this.cancelNavigationTransition(St,"",gr.GuardRejected),!1)),ma(St=>{if(St.guards.canActivateChecks.length)return(0,se.of)(St).pipe((0,ae.M)(wn=>{const yr=new Co(wn.id,this.urlSerializer.serialize(wn.extractedUrl),this.urlSerializer.serialize(wn.urlAfterRedirects),wn.targetSnapshot);this.events.next(yr)}),(0,It.n)(wn=>{let yr=!1;return(0,se.of)(wn).pipe(function Bl(I,D){return(0,Ve.Z)(M=>{const{targetSnapshot:C,guards:{canActivateChecks:N}}=M;if(!N.length)return(0,se.of)(M);const ee=new Set(N.map(en=>en.route)),Ie=new Set;for(const en of ee)if(!Ie.has(en))for(const St of ga(en))Ie.add(St);let gt=0;return(0,Ae.H)(Ie).pipe((0,oe.H)(en=>ee.has(en)?function La(I,D,M,C){const N=I.routeConfig,ee=I._resolve;return void 0!==(null==N?void 0:N.title)&&!tn(N)&&(ee[nr]=N.title),function zs(I,D,M,C){const N=sn(I);if(0===N.length)return(0,se.of)({});const ee={};return(0,Ae.H)(N).pipe((0,Ve.Z)(Ie=>function pc(I,D,M,C){var N;const ee=null!==(N=gs(D))&&void 0!==N?N:C,Ie=So(I,ee);return yn(Ie.resolve?Ie.resolve(D,M):(0,c.N4e)(ee,()=>Ie(D,M)))}(I[Ie],D,M,C).pipe(ne(),(0,ae.M)(gt=>{ee[Ie]=gt}))),Nt(1),function vn(I){return(0,Zt.T)(()=>I)}(ee),ye(Ie=>Zi(Ie)?Re.w:vt(Ie)))}(ee,I,D,C).pipe((0,Zt.T)(Ie=>(I._resolvedData=Ie,I.data=De(I,I.parent,M).resolve,null)))}(en,C,I,D):(en.data=De(en,en.parent,I).resolve,(0,se.of)(void 0))),(0,ae.M)(()=>gt++),Nt(1),(0,Ve.Z)(en=>gt===Ie.size?(0,se.of)(M):Re.w))})}(this.paramsInheritanceStrategy,this.environmentInjector),(0,ae.M)({next:()=>yr=!0,complete:()=>{yr||this.cancelNavigationTransition(wn,"",gr.NoDataFromResolver)}}))}),(0,ae.M)(wn=>{const yr=new Wo(wn.id,this.urlSerializer.serialize(wn.extractedUrl),this.urlSerializer.serialize(wn.urlAfterRedirects),wn.targetSnapshot);this.events.next(yr)}))}),ma(St=>{const wn=yr=>{var ki;const Xr=[];null!==(ki=yr.routeConfig)&&void 0!==ki&&ki.loadComponent&&!yr.routeConfig._loadedComponent&&Xr.push(this.configLoader.loadComponent(yr.routeConfig).pipe((0,ae.M)(qi=>{yr.component=qi}),(0,Zt.T)(()=>{})));for(const qi of yr.children)Xr.push(...wn(qi));return Xr};return(0,et.z)(wn(St.targetSnapshot.root)).pipe(Ne(null),(0,je.s)(1))}),ma(()=>this.afterPreactivation()),(0,It.n)(()=>{var St;const{currentSnapshot:wn,targetSnapshot:yr}=Ie,ki=null===(St=this.createViewTransition)||void 0===St?void 0:St.call(this,this.environmentInjector,wn.root,yr.root);return ki?(0,Ae.H)(ki).pipe((0,Zt.T)(()=>Ie)):(0,se.of)(Ie)}),(0,Zt.T)(St=>{const wn=function Nr(I,D,M){const C=vr(I,D._root,M?M._root:void 0);return new hr(C,D)}(C.routeReuseStrategy,St.targetSnapshot,St.currentRouterState);return this.currentTransition=Ie={...St,targetRouterState:wn},this.currentNavigation.targetRouterState=wn,Ie}),(0,ae.M)(()=>{this.events.next(new Do)}),((I,D,M,C)=>(0,Zt.T)(N=>(new $s(D,N.targetRouterState,N.currentRouterState,M,C).activate(I),N)))(this.rootContexts,C.routeReuseStrategy,St=>this.events.next(St),this.inputBindingEnabled),(0,je.s)(1),(0,ae.M)({next:St=>{var wn;gt=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new xr(St.id,this.urlSerializer.serialize(St.extractedUrl),this.urlSerializer.serialize(St.urlAfterRedirects))),null===(wn=this.titleStrategy)||void 0===wn||wn.updateTitle(St.targetRouterState.snapshot),St.resolve(!0)},complete:()=>{gt=!0}}),function Xn(I){return(0,Xe.N)((D,M)=>{(0,lt.Tg)(I).subscribe((0,Dt._)(M,()=>M.complete(),jn.l)),!M.closed&&D.subscribe(M)})}(this.transitionAbortSubject.pipe((0,ae.M)(St=>{throw St}))),(0,Sn.j)(()=>{var St;!gt&&!en&&this.cancelNavigationTransition(Ie,"",gr.SupersededByNewNavigation),(null===(St=this.currentTransition)||void 0===St?void 0:St.id)===Ie.id&&(this.currentNavigation=null,this.currentTransition=null)}),ye(St=>{if(en=!0,_r(St))this.events.next(new qr(Ie.id,this.urlSerializer.serialize(Ie.extractedUrl),St.message,St.cancellationCode)),function Ko(I){return _r(I)&&Mi(I.url)}(St)?this.events.next(new co(St.url)):Ie.resolve(!1);else{var wn;this.events.next(new kn(Ie.id,this.urlSerializer.serialize(Ie.extractedUrl),St,null!==(wn=Ie.targetSnapshot)&&void 0!==wn?wn:void 0));try{Ie.resolve(C.errorHandler(St))}catch(yr){this.options.resolveNavigationPromiseOnError?Ie.resolve(!1):Ie.reject(yr)}}return Re.w}))}))}cancelNavigationTransition(C,N,ee){const Ie=new qr(C.id,this.urlSerializer.serialize(C.extractedUrl),N,ee);this.events.next(Ie),C.resolve(!1)}isUpdatingInternalState(){var C,N;return(null===(C=this.currentTransition)||void 0===C?void 0:C.extractedUrl.toString())!==(null===(N=this.currentTransition)||void 0===N?void 0:N.currentUrlTree.toString())}isUpdatedBrowserUrl(){var C,N;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!==(N=this.currentTransition)&&void 0!==N&&N.extras.skipLocationChange)}}return(I=D).\u0275fac=function(C){return new(C||I)},I.\u0275prov=c.jDH({token:I,factory:I.\u0275fac,providedIn:"root"}),D})();function Mr(I){return I!==pr}let ci=(()=>{var I;class D{}return(I=D).\u0275fac=function(C){return new(C||I)},I.\u0275prov=c.jDH({token:I,factory:()=>(0,c.WQX)(Ui),providedIn:"root"}),D})();class Hr{shouldDetach(D){return!1}store(D,M){}shouldAttach(D){return!1}retrieve(D){return null}shouldReuseRoute(D,M){return D.routeConfig===M.routeConfig}}let Ui=(()=>{var I;class D extends Hr{}return(I=D).\u0275fac=(()=>{let M;return function(N){return(M||(M=c.xGo(I)))(N||I)}})(),I.\u0275prov=c.jDH({token:I,factory:I.\u0275fac,providedIn:"root"}),D})(),ti=(()=>{var I;class D{}return(I=D).\u0275fac=function(C){return new(C||I)},I.\u0275prov=c.jDH({token:I,factory:()=>(0,c.WQX)(fn),providedIn:"root"}),D})(),fn=(()=>{var I;class D extends ti{constructor(){super(...arguments),this.location=(0,c.WQX)(Ut.aZ),this.urlSerializer=(0,c.WQX)(Jr),this.options=(0,c.WQX)(Hs,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=(0,c.WQX)(he),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new Yn,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=yi(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){var C,N;return"computed"!==this.canceledNavigationResolution?this.currentPageId:null!==(C=null===(N=this.restoredState())||void 0===N?void 0:N.\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(N=>{"popstate"===N.type&&C(N.url,N.state)})}handleRouterEvent(C,N){if(C instanceof Br)this.stateMemento=this.createStateMemento();else if(C instanceof xn)this.rawUrlTree=N.initialUrl;else if(C instanceof _o){if("eager"===this.urlUpdateStrategy&&!N.extras.skipLocationChange){const ee=this.urlHandlingStrategy.merge(N.finalUrl,N.initialUrl);this.setBrowserUrl(ee,N)}}else C instanceof Do?(this.currentUrlTree=N.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(N.finalUrl,N.initialUrl),this.routerState=N.targetRouterState,"deferred"===this.urlUpdateStrategy&&(N.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,N))):C instanceof qr&&(C.code===gr.GuardRejected||C.code===gr.NoDataFromResolver)?this.restoreHistory(N):C instanceof kn?this.restoreHistory(N,!0):C instanceof xr&&(this.lastSuccessfulId=C.id,this.currentPageId=this.browserPageId)}setBrowserUrl(C,N){const ee=this.urlSerializer.serialize(C);if(this.location.isCurrentPathEqualTo(ee)||N.extras.replaceUrl){const gt={...N.extras.state,...this.generateNgRouterState(N.id,this.browserPageId)};this.location.replaceState(ee,"",gt)}else{const Ie={...N.extras.state,...this.generateNgRouterState(N.id,this.browserPageId+1)};this.location.go(ee,"",Ie)}}restoreHistory(C,N=!1){if("computed"===this.canceledNavigationResolution){const Ie=this.currentPageId-this.browserPageId;0!==Ie?this.location.historyGo(Ie):this.currentUrlTree===C.finalUrl&&0===Ie&&(this.resetState(C),this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(N&&this.resetState(C),this.resetUrlToCurrentUrlTree())}resetState(C){var N;this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,null!==(N=C.finalUrl)&&void 0!==N?N:this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(C,N){return"computed"===this.canceledNavigationResolution?{navigationId:C,\u0275routerPageId:N}:{navigationId:C}}}return(I=D).\u0275fac=(()=>{let M;return function(N){return(M||(M=c.xGo(I)))(N||I)}})(),I.\u0275prov=c.jDH({token:I,factory:I.\u0275fac,providedIn:"root"}),D})();var Un=function(I){return I[I.COMPLETE=0]="COMPLETE",I[I.FAILED=1]="FAILED",I[I.REDIRECTING=2]="REDIRECTING",I}(Un||{});function oi(I,D){I.events.pipe((0,ht.p)(M=>M instanceof xr||M instanceof qr||M instanceof kn||M instanceof xn),(0,Zt.T)(M=>M instanceof xr||M instanceof xn?Un.COMPLETE:M instanceof qr&&(M.code===gr.Redirect||M.code===gr.SupersededByNewNavigation)?Un.REDIRECTING:Un.FAILED),(0,ht.p)(M=>M!==Un.REDIRECTING),(0,je.s)(1)).subscribe(()=>{D()})}function Gi(I){throw I}const bi={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Wi={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let $i=(()=>{var I;class D{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,N;this.disposed=!1,this.isNgZoneEnabled=!1,this.console=(0,c.WQX)(c.H3F),this.stateManager=(0,c.WQX)(ti),this.options=(0,c.WQX)(Hs,{optional:!0})||{},this.pendingTasks=(0,c.WQX)(c.TgB),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=(0,c.WQX)(zr),this.urlSerializer=(0,c.WQX)(Jr),this.location=(0,c.WQX)(Ut.aZ),this.urlHandlingStrategy=(0,c.WQX)(he),this._events=new bt.B,this.errorHandler=this.options.errorHandler||Gi,this.navigated=!1,this.routeReuseStrategy=(0,c.WQX)(ci),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=null!==(C=null===(N=(0,c.WQX)(Es,{optional:!0}))||void 0===N?void 0:N.flat())&&void 0!==C?C:[],this.componentInputBindingEnabled=!!(0,c.WQX)($n,{optional:!0}),this.eventsSubscription=new Ge.yU,this.isNgZoneEnabled=(0,c.WQX)(c.SKi)instanceof c.SKi&&c.SKi.isInAngularZone(),this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:ee=>{this.console.warn(ee)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){const C=this.navigationTransitions.events.subscribe(N=>{try{const ee=this.navigationTransitions.currentTransition,Ie=this.navigationTransitions.currentNavigation;if(null!==ee&&null!==Ie)if(this.stateManager.handleRouterEvent(N,Ie),N instanceof qr&&N.code!==gr.Redirect&&N.code!==gr.SupersededByNewNavigation)this.navigated=!0;else if(N instanceof xr)this.navigated=!0;else if(N instanceof co){const gt=this.urlHandlingStrategy.merge(N.url,ee.currentRawUrl),en={info:ee.extras.info,skipLocationChange:ee.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||Mr(ee.source)};this.scheduleNavigation(gt,pr,null,en,{resolve:ee.resolve,reject:ee.reject,promise:ee.promise})}(function Hi(I){return!(I instanceof Do||I instanceof co)})(N)&&this._events.next(N)}catch(ee){this.navigationTransitions.transitionAbortSubject.next(ee)}});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),pr,this.stateManager.restoredState())}setUpLocationChangeListener(){var C;null!==(C=this.nonRouterCurrentEntryChangeSubscription)&&void 0!==C||(this.nonRouterCurrentEntryChangeSubscription=this.stateManager.registerNonRouterCurrentEntryChangeListener((N,ee)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(N,"popstate",ee)},0)}))}navigateToSyncWithBrowser(C,N,ee){const Ie={replaceUrl:!0},gt=null!=ee&&ee.navigationId?ee:null;if(ee){const St={...ee};delete St.navigationId,delete St.\u0275routerPageId,0!==Object.keys(St).length&&(Ie.state=St)}const en=this.parseUrl(C);this.scheduleNavigation(en,N,gt,Ie)}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,N={}){const{relativeTo:ee,queryParams:Ie,fragment:gt,queryParamsHandling:en,preserveFragment:St}=N,wn=St?this.currentUrlTree.fragment:gt;let ki,yr=null;switch(en){case"merge":yr={...this.currentUrlTree.queryParams,...Ie};break;case"preserve":yr=this.currentUrlTree.queryParams;break;default:yr=Ie||null}null!==yr&&(yr=this.removeEmptyProps(yr));try{ki=Rt(ee?ee.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof C[0]||!C[0].startsWith("/"))&&(C=[]),ki=this.currentUrlTree.root}return ut(ki,C,yr,null!=wn?wn:null)}navigateByUrl(C,N={skipLocationChange:!1}){const ee=Mi(C)?C:this.parseUrl(C),Ie=this.urlHandlingStrategy.merge(ee,this.rawUrlTree);return this.scheduleNavigation(Ie,pr,null,N)}navigate(C,N={skipLocationChange:!1}){return function di(I){for(let D=0;D(null!=Ie&&(N[ee]=Ie),N),{})}scheduleNavigation(C,N,ee,Ie,gt){if(this.disposed)return Promise.resolve(!1);let en,St,wn;gt?(en=gt.resolve,St=gt.reject,wn=gt.promise):wn=new Promise((ki,Xr)=>{en=ki,St=Xr});const yr=this.pendingTasks.add();return oi(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(yr))}),this.navigationTransitions.handleNavigationRequest({source:N,restoredState:ee,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:C,extras:Ie,resolve:en,reject:St,promise:wn,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),wn.catch(ki=>Promise.reject(ki))}}return(I=D).\u0275fac=function(C){return new(C||I)},I.\u0275prov=c.jDH({token:I,factory:I.\u0275fac,providedIn:"root"}),D})(),$o=(()=>{var I;class D{constructor(C,N,ee,Ie,gt,en){var St;this.router=C,this.route=N,this.tabIndexAttribute=ee,this.renderer=Ie,this.el=gt,this.locationStrategy=en,this.href=null,this.commands=null,this.onChanges=new bt.B,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;const wn=null===(St=gt.nativeElement.tagName)||void 0===St?void 0:St.toLowerCase();this.isAnchorElement="a"===wn||"area"===wn,this.isAnchorElement?this.subscription=C.events.subscribe(yr=>{yr instanceof xr&&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,N,ee,Ie,gt){const en=this.urlTree;return!!(null===en||this.isAnchorElement&&(0!==C||N||ee||Ie||gt||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(en,{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 N=this.urlTree;this.href=null!==N&&this.locationStrategy?null===(C=this.locationStrategy)||void 0===C?void 0:C.prepareExternalUrl(this.router.serializeUrl(N)):null;const ee=null===this.href?null:(0,c.n$t)(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",ee)}applyAttributeValue(C,N){const ee=this.renderer,Ie=this.el.nativeElement;null!==N?ee.setAttribute(Ie,C,N):ee.removeAttribute(Ie,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=D).\u0275fac=function(C){return new(C||I)(c.rXU($i),c.rXU(ie),c.kS0("tabindex"),c.rXU(c.sFG),c.rXU(c.aKT),c.rXU(Ut.hb))},I.\u0275dir=c.FsC({type:I,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(C,N){1&C&&c.bIt("click",function(Ie){return N.onClick(Ie.button,Ie.ctrlKey,Ie.shiftKey,Ie.altKey,Ie.metaKey)}),2&C&&c.BMQ("target",N.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[c.Mj6.HasDecoratorInputTransform,"preserveFragment","preserveFragment",c.L39],skipLocationChange:[c.Mj6.HasDecoratorInputTransform,"skipLocationChange","skipLocationChange",c.L39],replaceUrl:[c.Mj6.HasDecoratorInputTransform,"replaceUrl","replaceUrl",c.L39],routerLink:"routerLink"},standalone:!0,features:[c.GFd,c.OA$]}),D})();class gc{}let Ua=(()=>{var I;class D{preload(C,N){return N().pipe(ye(()=>(0,se.of)(null)))}}return(I=D).\u0275fac=function(C){return new(C||I)},I.\u0275prov=c.jDH({token:I,factory:I.\u0275fac,providedIn:"root"}),D})(),va=(()=>{var I;class D{constructor(C,N,ee,Ie,gt){this.router=C,this.injector=ee,this.preloadingStrategy=Ie,this.loader=gt}setUpPreloading(){this.subscription=this.router.events.pipe((0,ht.p)(C=>C instanceof xr),(0,oe.H)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(C,N){const ee=[];for(const St of N){var Ie,gt;St.providers&&!St._injector&&(St._injector=(0,c.Ol2)(St.providers,C,`Route: ${St.path}`));const wn=null!==(Ie=St._injector)&&void 0!==Ie?Ie:C,yr=null!==(gt=St._loadedInjector)&&void 0!==gt?gt:wn;var en;(St.loadChildren&&!St._loadedRoutes&&void 0===St.canLoad||St.loadComponent&&!St._loadedComponent)&&ee.push(this.preloadConfig(wn,St)),(St.children||St._loadedRoutes)&&ee.push(this.processRoutes(yr,null!==(en=St.children)&&void 0!==en?en:St._loadedRoutes))}return(0,Ae.H)(ee).pipe(Le())}preloadConfig(C,N){return this.preloadingStrategy.preload(N,()=>{let ee;ee=N.loadChildren&&void 0===N.canLoad?this.loader.loadChildren(C,N):(0,se.of)(null);const Ie=ee.pipe((0,Ve.Z)(gt=>{var en;return null===gt?(0,se.of)(void 0):(N._loadedRoutes=gt.routes,N._loadedInjector=gt.injector,this.processRoutes(null!==(en=gt.injector)&&void 0!==en?en:C,gt.routes))}));if(N.loadComponent&&!N._loadedComponent){const gt=this.loader.loadComponent(N);return(0,Ae.H)([Ie,gt]).pipe(Le())}return Ie})}}return(I=D).\u0275fac=function(C){return new(C||I)(c.KVO($i),c.KVO(c.Ql9),c.KVO(c.uvJ),c.KVO(gc),c.KVO(T))},I.\u0275prov=c.jDH({token:I,factory:I.\u0275fac,providedIn:"root"}),D})();const ns=new c.nKC("");let Ro=(()=>{var I;class D{constructor(C,N,ee,Ie,gt={}){this.urlSerializer=C,this.transitions=N,this.viewportScroller=ee,this.zone=Ie,this.options=gt,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},this.environmentInjector=(0,c.WQX)(c.uvJ),gt.scrollPositionRestoration||(gt.scrollPositionRestoration="disabled"),gt.anchorScrolling||(gt.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 Br?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=C.navigationTrigger,this.restoredId=C.restoredState?C.restoredState.navigationId:0):C instanceof xr?(this.lastId=C.id,this.scheduleScrollEvent(C,this.urlSerializer.parse(C.urlAfterRedirects).fragment)):C instanceof xn&&C.code===ur.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 To&&(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,N){var ee=this;this.zone.runOutsideAngular((0,g.A)(function*(){yield new Promise(Ie=>{setTimeout(()=>{Ie()}),(0,c.mal)(()=>{Ie()},{injector:ee.environmentInjector})}),ee.zone.run(()=>{ee.transitions.events.next(new To(C,"popstate"===ee.lastSource?ee.store[ee.restoredId]:null,N))})}))}ngOnDestroy(){var C,N;null===(C=this.routerEventsSubscription)||void 0===C||C.unsubscribe(),null===(N=this.scrollEventsSubscription)||void 0===N||N.unsubscribe()}}return(I=D).\u0275fac=function(C){c.QTQ()},I.\u0275prov=c.jDH({token:I,factory:I.\u0275fac}),D})();function Gr(I,D){return{\u0275kind:I,\u0275providers:D}}function ko(){const I=(0,c.WQX)(c.zZn);return D=>{var M,C;const N=I.get(c.o8S);if(D!==N.components[0])return;const ee=I.get($i),Ie=I.get(Bo);1===I.get(ya)&&ee.initialNavigation(),null===(M=I.get(Wr,null,c.$GK.Optional))||void 0===M||M.setUpPreloading(),null===(C=I.get(ns,null,c.$GK.Optional))||void 0===C||C.init(),ee.resetRootComponentType(N.componentTypes[0]),Ie.closed||(Ie.next(),Ie.complete(),Ie.unsubscribe())}}const Bo=new c.nKC("",{factory:()=>new bt.B}),ya=new c.nKC("",{providedIn:"root",factory:()=>1}),Wr=new c.nKC("");function yo(I){return Gr(0,[{provide:Wr,useExisting:va},{provide:gc,useExisting:I}])}function Hl(I){return Gr(9,[{provide:Vt,useValue:Hn},{provide:dn,useValue:{skipNextTransition:!(null==I||!I.skipInitialTransition),...I}}])}const Ru=new c.nKC("ROUTER_FORROOT_GUARD"),Ea=[Ut.aZ,{provide:Jr,useClass:Zr},$i,S,{provide:ie,useFactory:function jl(I){return I.routerState.root},deps:[$i]},T,[]];let Mu=(()=>{var I;class D{constructor(C){}static forRoot(C,N){return{ngModule:D,providers:[Ea,[],{provide:Es,multi:!0,useValue:C},{provide:Ru,useFactory:mc,deps:[[$i,new c.Xx1,new c.kdw]]},{provide:Hs,useValue:N||{}},null!=N&&N.useHash?{provide:Ut.hb,useClass:Ut.fw}:{provide:Ut.hb,useClass:Ut.Sm},{provide:ns,useFactory:()=>{const I=(0,c.WQX)(Ut.Xr),D=(0,c.WQX)(c.SKi),M=(0,c.WQX)(Hs),C=(0,c.WQX)(zr),N=(0,c.WQX)(Jr);return M.scrollOffset&&I.setOffset(M.scrollOffset),new Ro(N,C,I,D,M)}},null!=N&&N.preloadingStrategy?yo(N.preloadingStrategy).\u0275providers:[],null!=N&&N.initialNavigation?qs(N):[],null!=N&&N.bindToComponentInputs?Gr(8,[Cn,{provide:$n,useExisting:Cn}]).\u0275providers:[],null!=N&&N.enableViewTransitions?Hl().\u0275providers:[],[{provide:Xs,useFactory:ko},{provide:c.iLQ,multi:!0,useExisting:Xs}]]}}static forChild(C){return{ngModule:D,providers:[{provide:Es,multi:!0,useValue:C}]}}}return(I=D).\u0275fac=function(C){return new(C||I)(c.KVO(Ru,8))},I.\u0275mod=c.$C({type:I}),I.\u0275inj=c.G2t({}),D})();function mc(I){return"guarded"}function qs(I){return["disabled"===I.initialNavigation?Gr(3,[{provide:c.hnV,multi:!0,useFactory:()=>{const D=(0,c.WQX)($i);return()=>{D.setUpLocationChangeListener()}}},{provide:ya,useValue:2}]).\u0275providers:[],"enabledBlocking"===I.initialNavigation?Gr(2,[{provide:ya,useValue:0},{provide:c.hnV,multi:!0,deps:[c.zZn],useFactory:D=>{const M=D.get(Ut.hj,Promise.resolve());return()=>M.then(()=>new Promise(C=>{const N=D.get($i),ee=D.get(Bo);oi(N,()=>{C(!0)}),D.get(zr).afterPreactivation=()=>(C(!0),ee.closed?(0,se.of)(void 0):ee),N.initialNavigation()}))}}]).\u0275providers:[]]}const Xs=new c.nKC("")},7852:(Tn,Tt,j)=>{"use strict";j.d(Tt,{MF:()=>Jr,j6:()=>Cr,xZ:()=>Yn,om:()=>Or,Sx:()=>ze,Dk:()=>dt,Wp:()=>Zr,KO:()=>pe});var g=j(467),c=j(1362),ve=j(8041),Fe=j(1076);const Y=(Rt,ut)=>ut.some(Bt=>Rt instanceof Bt);let Ae,se;const be=new WeakMap,Ee=new WeakMap,Ve=new WeakMap,Be=new WeakMap,Le=new WeakMap;let ct={get(Rt,ut,Bt){if(Rt instanceof IDBTransaction){if("done"===ut)return Ee.get(Rt);if("objectStoreNames"===ut)return Rt.objectStoreNames||Ve.get(Rt);if("store"===ut)return Bt.objectStoreNames[1]?void 0:Bt.objectStore(Bt.objectStoreNames[0])}return vt(Rt[ut])},set:(Rt,ut,Bt)=>(Rt[ut]=Bt,!0),has:(Rt,ut)=>Rt instanceof IDBTransaction&&("done"===ut||"store"===ut)||ut in Rt};function yt(Rt){return"function"==typeof Rt?function Pt(Rt){return Rt!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?function et(){return se||(se=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}().includes(Rt)?function(...ut){return Rt.apply(Re(this),ut),vt(be.get(this))}:function(...ut){return vt(Rt.apply(Re(this),ut))}:function(ut,...Bt){const mn=Rt.call(Re(this),ut,...Bt);return Ve.set(mn,ut.sort?ut.sort():[ut]),vt(mn)}}(Rt):(Rt instanceof IDBTransaction&&function pt(Rt){if(Ee.has(Rt))return;const ut=new Promise((Bt,mn)=>{const ce=()=>{Rt.removeEventListener("complete",R),Rt.removeEventListener("error",V),Rt.removeEventListener("abort",V)},R=()=>{Bt(),ce()},V=()=>{mn(Rt.error||new DOMException("AbortError","AbortError")),ce()};Rt.addEventListener("complete",R),Rt.addEventListener("error",V),Rt.addEventListener("abort",V)});Ee.set(Rt,ut)}(Rt),Y(Rt,function Je(){return Ae||(Ae=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}())?new Proxy(Rt,ct):Rt)}function vt(Rt){if(Rt instanceof IDBRequest)return function Ze(Rt){const ut=new Promise((Bt,mn)=>{const ce=()=>{Rt.removeEventListener("success",R),Rt.removeEventListener("error",V)},R=()=>{Bt(vt(Rt.result)),ce()},V=()=>{mn(Rt.error),ce()};Rt.addEventListener("success",R),Rt.addEventListener("error",V)});return ut.then(Bt=>{Bt instanceof IDBCursor&&be.set(Bt,Rt)}).catch(()=>{}),Le.set(ut,Rt),ut}(Rt);if(Be.has(Rt))return Be.get(Rt);const ut=yt(Rt);return ut!==Rt&&(Be.set(Rt,ut),Le.set(ut,Rt)),ut}const Re=Rt=>Le.get(Rt),Dt=["get","getKey","getAll","getAllKeys","count"],Ot=["put","add","delete","clear"],We=new Map;function bt(Rt,ut){if(!(Rt instanceof IDBDatabase)||ut in Rt||"string"!=typeof ut)return;if(We.get(ut))return We.get(ut);const Bt=ut.replace(/FromIndex$/,""),mn=ut!==Bt,ce=Ot.includes(Bt);if(!(Bt in(mn?IDBIndex:IDBObjectStore).prototype)||!ce&&!Dt.includes(Bt))return;const R=function(){var V=(0,g.A)(function*(Z,...U){const re=this.transaction(Z,ce?"readwrite":"readonly");let Oe=re.store;return mn&&(Oe=Oe.index(U.shift())),(yield Promise.all([Oe[Bt](...U),ce&&re.done]))[0]});return function(U){return V.apply(this,arguments)}}();return We.set(ut,R),R}!function lt(Rt){ct=Rt(ct)}(Rt=>({...Rt,get:(ut,Bt,mn)=>bt(ut,Bt)||Rt.get(ut,Bt,mn),has:(ut,Bt)=>!!bt(ut,Bt)||Rt.has(ut,Bt)}));class Ut{constructor(ut){this.container=ut}getPlatformInfoString(){return this.container.getProviders().map(Bt=>{if(function Zt(Rt){const ut=Rt.getComponent();return"VERSION"===(null==ut?void 0:ut.type)}(Bt)){const mn=Bt.getImmediate();return`${mn.library}/${mn.version}`}return null}).filter(Bt=>Bt).join(" ")}}const It="@firebase/app",nn=new ve.Vy("@firebase/app"),_n="[DEFAULT]",yn={[It]:"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"},rn=new Map,Wt=new Map,mr=new Map;function Sr(Rt,ut){try{Rt.container.addComponent(ut)}catch(Bt){nn.debug(`Component ${ut.name} failed to register with FirebaseApp ${Rt.name}`,Bt)}}function Or(Rt){const ut=Rt.name;if(mr.has(ut))return nn.debug(`There were multiple attempts to register component ${ut}.`),!1;mr.set(ut,Rt);for(const Bt of rn.values())Sr(Bt,Rt);for(const Bt of Wt.values())Sr(Bt,Rt);return!0}function Cr(Rt,ut){const Bt=Rt.container.getProvider("heartbeat").getImmediate({optional:!0});return Bt&&Bt.triggerHeartbeat(),Rt.container.getProvider(ut)}function Yn(Rt){return void 0!==Rt.settings}const rr=new Fe.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 Tr{constructor(ut,Bt,mn){this._isDeleted=!1,this._options=Object.assign({},ut),this._config=Object.assign({},Bt),this._name=Bt.name,this._automaticDataCollectionEnabled=Bt.automaticDataCollectionEnabled,this._container=mn,this.container.addComponent(new c.uA("app",()=>this,"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(ut){this.checkDestroyed(),this._automaticDataCollectionEnabled=ut}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(ut){this._isDeleted=ut}checkDestroyed(){if(this.isDeleted)throw rr.create("app-deleted",{appName:this._name})}}const Jr="10.12.2";function Zr(Rt,ut={}){let Bt=Rt;"object"!=typeof ut&&(ut={name:ut});const mn=Object.assign({name:_n,automaticDataCollectionEnabled:!1},ut),ce=mn.name;if("string"!=typeof ce||!ce)throw rr.create("bad-app-name",{appName:String(ce)});if(Bt||(Bt=(0,Fe.T9)()),!Bt)throw rr.create("no-options");const R=rn.get(ce);if(R){if((0,Fe.bD)(Bt,R.options)&&(0,Fe.bD)(mn,R.config))return R;throw rr.create("duplicate-app",{appName:ce})}const V=new c.h1(ce);for(const U of mr.values())V.addComponent(U);const Z=new Tr(Bt,mn,V);return rn.set(ce,Z),Z}function ze(Rt=_n){const ut=rn.get(Rt);if(!ut&&Rt===_n&&(0,Fe.T9)())return Zr();if(!ut)throw rr.create("no-app",{appName:Rt});return ut}function dt(){return Array.from(rn.values())}function pe(Rt,ut,Bt){var mn;let ce=null!==(mn=yn[Rt])&&void 0!==mn?mn:Rt;Bt&&(ce+=`-${Bt}`);const R=ce.match(/\s|\//),V=ut.match(/\s|\//);if(R||V){const Z=[`Unable to register library "${ce}" with version "${ut}":`];return R&&Z.push(`library name "${ce}" contains illegal characters (whitespace or "/")`),R&&V&&Z.push("and"),V&&Z.push(`version name "${ut}" contains illegal characters (whitespace or "/")`),void nn.warn(Z.join(" "))}Or(new c.uA(`${ce}-version`,()=>({library:ce,version:ut}),"VERSION"))}const st="firebase-heartbeat-database",pn=1,Pn="firebase-heartbeat-store";let Kn=null;function Ir(){return Kn||(Kn=function Ge(Rt,ut,{blocked:Bt,upgrade:mn,blocking:ce,terminated:R}={}){const V=indexedDB.open(Rt,ut),Z=vt(V);return mn&&V.addEventListener("upgradeneeded",U=>{mn(vt(V.result),U.oldVersion,U.newVersion,vt(V.transaction),U)}),Bt&&V.addEventListener("blocked",U=>Bt(U.oldVersion,U.newVersion,U)),Z.then(U=>{R&&U.addEventListener("close",()=>R()),ce&&U.addEventListener("versionchange",re=>ce(re.oldVersion,re.newVersion,re))}).catch(()=>{}),Z}(st,pn,{upgrade:(Rt,ut)=>{if(0===ut)try{Rt.createObjectStore(Pn)}catch(Bt){console.warn(Bt)}}}).catch(Rt=>{throw rr.create("idb-open",{originalErrorMessage:Rt.message})})),Kn}function hi(){return(hi=(0,g.A)(function*(Rt){try{const Bt=(yield Ir()).transaction(Pn),mn=yield Bt.objectStore(Pn).get(Er(Rt));return yield Bt.done,mn}catch(ut){if(ut instanceof Fe.g)nn.warn(ut.message);else{const Bt=rr.create("idb-get",{originalErrorMessage:null==ut?void 0:ut.message});nn.warn(Bt.message)}}})).apply(this,arguments)}function On(Rt,ut){return Dn.apply(this,arguments)}function Dn(){return(Dn=(0,g.A)(function*(Rt,ut){try{const mn=(yield Ir()).transaction(Pn,"readwrite");yield mn.objectStore(Pn).put(ut,Er(Rt)),yield mn.done}catch(Bt){if(Bt instanceof Fe.g)nn.warn(Bt.message);else{const mn=rr.create("idb-set",{originalErrorMessage:null==Bt?void 0:Bt.message});nn.warn(mn.message)}}})).apply(this,arguments)}function Er(Rt){return`${Rt.name}!${Rt.options.appId}`}class fi{constructor(ut){this.container=ut,this._heartbeatsCache=null;const Bt=this.container.getProvider("app").getImmediate();this._storage=new Fi(Bt),this._heartbeatsCachePromise=this._storage.read().then(mn=>(this._heartbeatsCache=mn,mn))}triggerHeartbeat(){var ut=this;return(0,g.A)(function*(){var Bt,mn;const R=ut.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),V=Ti();if((null!=(null===(Bt=ut._heartbeatsCache)||void 0===Bt?void 0:Bt.heartbeats)||(ut._heartbeatsCache=yield ut._heartbeatsCachePromise,null!=(null===(mn=ut._heartbeatsCache)||void 0===mn?void 0:mn.heartbeats)))&&ut._heartbeatsCache.lastSentHeartbeatDate!==V&&!ut._heartbeatsCache.heartbeats.some(Z=>Z.date===V))return ut._heartbeatsCache.heartbeats.push({date:V,agent:R}),ut._heartbeatsCache.heartbeats=ut._heartbeatsCache.heartbeats.filter(Z=>{const U=new Date(Z.date).valueOf();return Date.now()-U<=2592e6}),ut._storage.overwrite(ut._heartbeatsCache)})()}getHeartbeatsHeader(){var ut=this;return(0,g.A)(function*(){var Bt;if(null===ut._heartbeatsCache&&(yield ut._heartbeatsCachePromise),null==(null===(Bt=ut._heartbeatsCache)||void 0===Bt?void 0:Bt.heartbeats)||0===ut._heartbeatsCache.heartbeats.length)return"";const mn=Ti(),{heartbeatsToSend:ce,unsentEntries:R}=function sr(Rt,ut=1024){const Bt=[];let mn=Rt.slice();for(const ce of Rt){const R=Bt.find(V=>V.agent===ce.agent);if(R){if(R.dates.push(ce.date),Mi(Bt)>ut){R.dates.pop();break}}else if(Bt.push({agent:ce.agent,dates:[ce.date]}),Mi(Bt)>ut){Bt.pop();break}mn=mn.slice(1)}return{heartbeatsToSend:Bt,unsentEntries:mn}}(ut._heartbeatsCache.heartbeats),V=(0,Fe.Uj)(JSON.stringify({version:2,heartbeats:ce}));return ut._heartbeatsCache.lastSentHeartbeatDate=mn,R.length>0?(ut._heartbeatsCache.heartbeats=R,yield ut._storage.overwrite(ut._heartbeatsCache)):(ut._heartbeatsCache.heartbeats=[],ut._storage.overwrite(ut._heartbeatsCache)),V})()}}function Ti(){return(new Date).toISOString().substring(0,10)}class Fi{constructor(ut){this.app=ut,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}runIndexedDBEnvironmentCheck(){return(0,g.A)(function*(){return!!(0,Fe.zW)()&&(0,Fe.eX)().then(()=>!0).catch(()=>!1)})()}read(){var ut=this;return(0,g.A)(function*(){if(yield ut._canUseIndexedDBPromise){const mn=yield function cr(Rt){return hi.apply(this,arguments)}(ut.app);return null!=mn&&mn.heartbeats?mn:{heartbeats:[]}}return{heartbeats:[]}})()}overwrite(ut){var Bt=this;return(0,g.A)(function*(){var mn;if(yield Bt._canUseIndexedDBPromise){const R=yield Bt.read();return On(Bt.app,{lastSentHeartbeatDate:null!==(mn=ut.lastSentHeartbeatDate)&&void 0!==mn?mn:R.lastSentHeartbeatDate,heartbeats:ut.heartbeats})}})()}add(ut){var Bt=this;return(0,g.A)(function*(){var mn;if(yield Bt._canUseIndexedDBPromise){const R=yield Bt.read();return On(Bt.app,{lastSentHeartbeatDate:null!==(mn=ut.lastSentHeartbeatDate)&&void 0!==mn?mn:R.lastSentHeartbeatDate,heartbeats:[...R.heartbeats,...ut.heartbeats]})}})()}}function Mi(Rt){return(0,Fe.Uj)(JSON.stringify({version:2,heartbeats:Rt})).length}!function pi(Rt){Or(new c.uA("platform-logger",ut=>new Ut(ut),"PRIVATE")),Or(new c.uA("heartbeat",ut=>new fi(ut),"PRIVATE")),pe(It,"0.10.5",Rt),pe(It,"0.10.5","esm2017"),pe("fire-js","")}("")},1362:(Tn,Tt,j)=>{"use strict";j.d(Tt,{h1:()=>Je,uA:()=>ve});var g=j(467),c=j(1076);class ve{constructor(be,Ee,Ve){this.name=be,this.instanceFactory=Ee,this.type=Ve,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(be){return this.instantiationMode=be,this}setMultipleInstances(be){return this.multipleInstances=be,this}setServiceProps(be){return this.serviceProps=be,this}setInstanceCreatedCallback(be){return this.onInstanceCreated=be,this}}const Fe="[DEFAULT]";class Y{constructor(be,Ee){this.name=be,this.container=Ee,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(be){const Ee=this.normalizeInstanceIdentifier(be);if(!this.instancesDeferred.has(Ee)){const Ve=new c.cY;if(this.instancesDeferred.set(Ee,Ve),this.isInitialized(Ee)||this.shouldAutoInitialize())try{const Be=this.getOrInitializeService({instanceIdentifier:Ee});Be&&Ve.resolve(Be)}catch{}}return this.instancesDeferred.get(Ee).promise}getImmediate(be){var Ee;const Ve=this.normalizeInstanceIdentifier(null==be?void 0:be.identifier),Be=null!==(Ee=null==be?void 0:be.optional)&&void 0!==Ee&&Ee;if(!this.isInitialized(Ve)&&!this.shouldAutoInitialize()){if(Be)return null;throw Error(`Service ${this.name} is not available`)}try{return this.getOrInitializeService({instanceIdentifier:Ve})}catch(Le){if(Be)return null;throw Le}}getComponent(){return this.component}setComponent(be){if(be.name!==this.name)throw Error(`Mismatching Component ${be.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=be,this.shouldAutoInitialize()){if(function se(et){return"EAGER"===et.instantiationMode}(be))try{this.getOrInitializeService({instanceIdentifier:Fe})}catch{}for(const[Ee,Ve]of this.instancesDeferred.entries()){const Be=this.normalizeInstanceIdentifier(Ee);try{const Le=this.getOrInitializeService({instanceIdentifier:Be});Ve.resolve(Le)}catch{}}}}clearInstance(be=Fe){this.instancesDeferred.delete(be),this.instancesOptions.delete(be),this.instances.delete(be)}delete(){var be=this;return(0,g.A)(function*(){const Ee=Array.from(be.instances.values());yield Promise.all([...Ee.filter(Ve=>"INTERNAL"in Ve).map(Ve=>Ve.INTERNAL.delete()),...Ee.filter(Ve=>"_delete"in Ve).map(Ve=>Ve._delete())])})()}isComponentSet(){return null!=this.component}isInitialized(be=Fe){return this.instances.has(be)}getOptions(be=Fe){return this.instancesOptions.get(be)||{}}initialize(be={}){const{options:Ee={}}=be,Ve=this.normalizeInstanceIdentifier(be.instanceIdentifier);if(this.isInitialized(Ve))throw Error(`${this.name}(${Ve}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);const Be=this.getOrInitializeService({instanceIdentifier:Ve,options:Ee});for(const[Le,Ze]of this.instancesDeferred.entries())Ve===this.normalizeInstanceIdentifier(Le)&&Ze.resolve(Be);return Be}onInit(be,Ee){var Ve;const Be=this.normalizeInstanceIdentifier(Ee),Le=null!==(Ve=this.onInitCallbacks.get(Be))&&void 0!==Ve?Ve:new Set;Le.add(be),this.onInitCallbacks.set(Be,Le);const Ze=this.instances.get(Be);return Ze&&be(Ze,Be),()=>{Le.delete(be)}}invokeOnInitCallbacks(be,Ee){const Ve=this.onInitCallbacks.get(Ee);if(Ve)for(const Be of Ve)try{Be(be,Ee)}catch{}}getOrInitializeService({instanceIdentifier:be,options:Ee={}}){let Ve=this.instances.get(be);if(!Ve&&this.component&&(Ve=this.component.instanceFactory(this.container,{instanceIdentifier:(et=be,et===Fe?void 0:et),options:Ee}),this.instances.set(be,Ve),this.instancesOptions.set(be,Ee),this.invokeOnInitCallbacks(Ve,be),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,be,Ve)}catch{}var et;return Ve||null}normalizeInstanceIdentifier(be=Fe){return this.component?this.component.multipleInstances?be:Fe:be}shouldAutoInitialize(){return!!this.component&&"EXPLICIT"!==this.component.instantiationMode}}class Je{constructor(be){this.name=be,this.providers=new Map}addComponent(be){const Ee=this.getProvider(be.name);if(Ee.isComponentSet())throw new Error(`Component ${be.name} has already been registered with ${this.name}`);Ee.setComponent(be)}addOrOverwriteComponent(be){this.getProvider(be.name).isComponentSet()&&this.providers.delete(be.name),this.addComponent(be)}getProvider(be){if(this.providers.has(be))return this.providers.get(be);const Ee=new Y(be,this);return this.providers.set(be,Ee),Ee}getProviders(){return Array.from(this.providers.values())}}},8041:(Tn,Tt,j)=>{"use strict";j.d(Tt,{$b:()=>c,Vy:()=>se});const g=[];var c=function(be){return be[be.DEBUG=0]="DEBUG",be[be.VERBOSE=1]="VERBOSE",be[be.INFO=2]="INFO",be[be.WARN=3]="WARN",be[be.ERROR=4]="ERROR",be[be.SILENT=5]="SILENT",be}(c||{});const ve={debug:c.DEBUG,verbose:c.VERBOSE,info:c.INFO,warn:c.WARN,error:c.ERROR,silent:c.SILENT},Fe=c.INFO,Y={[c.DEBUG]:"log",[c.VERBOSE]:"log",[c.INFO]:"info",[c.WARN]:"warn",[c.ERROR]:"error"},Ae=(be,Ee,...Ve)=>{if(Ee{"use strict";j.d(Tt,{Yq:()=>sn,TS:()=>$e,sR:()=>At,el:()=>Dn,Sb:()=>Tr,QE:()=>Ti,CF:()=>Rn,Rg:()=>pn,p4:()=>sr,jM:()=>mn,_t:()=>Nt,q9:()=>Qn,Kb:()=>ce,CE:()=>Er,pF:()=>mi,fL:()=>Mi,YV:()=>cr,er:()=>Fi,z3:()=>pi});var g=j(467),c=j(9842),ve=j(4438),Fe=j(305),Y=j(177),Ae=j(5531),se=j(4442);var Ut=j(1413),Zt=j(3726),It=j(4412),je=j(4572),nn=j(7673),ht=j(1635),Ne=j(5964),B=j(5558),K=j(3669),ne=j(9974),oe=j(4360);function ye(R,V){return R===V}var Te=j(4341);const ft=["tabsInner"];class Nt{constructor(V){(0,c.A)(this,"menuController",void 0),this.menuController=V}open(V){return this.menuController.open(V)}close(V){return this.menuController.close(V)}toggle(V){return this.menuController.toggle(V)}enable(V,Z){return this.menuController.enable(V,Z)}swipeGesture(V,Z){return this.menuController.swipeGesture(V,Z)}isOpen(V){return this.menuController.isOpen(V)}isEnabled(V){return this.menuController.isEnabled(V)}get(V){return this.menuController.get(V)}getOpen(){return this.menuController.getOpen()}getMenus(){return this.menuController.getMenus()}registerAnimation(V,Z){return this.menuController.registerAnimation(V,Z)}isAnimating(){return this.menuController.isAnimating()}_getOpenSync(){return this.menuController._getOpenSync()}_createAnimation(V,Z){return this.menuController._createAnimation(V,Z)}_register(V){return this.menuController._register(V)}_unregister(V){return this.menuController._unregister(V)}_setOpen(V,Z,U){return this.menuController._setOpen(V,Z,U)}}let Sn=(()=>{var R;class V{constructor(U,re){(0,c.A)(this,"doc",void 0),(0,c.A)(this,"_readyPromise",void 0),(0,c.A)(this,"win",void 0),(0,c.A)(this,"backButton",new Ut.B),(0,c.A)(this,"keyboardDidShow",new Ut.B),(0,c.A)(this,"keyboardDidHide",new Ut.B),(0,c.A)(this,"pause",new Ut.B),(0,c.A)(this,"resume",new Ut.B),(0,c.A)(this,"resize",new Ut.B),this.doc=U,re.run(()=>{var Oe;let rt;this.win=U.defaultView,this.backButton.subscribeWithPriority=function(Ht,Kt){return this.subscribe(Bn=>Bn.register(Ht,Ln=>re.run(()=>Kt(Ln))))},Xn(this.pause,U,"pause",re),Xn(this.resume,U,"resume",re),Xn(this.backButton,U,"ionBackButton",re),Xn(this.resize,this.win,"resize",re),Xn(this.keyboardDidShow,this.win,"ionKeyboardDidShow",re),Xn(this.keyboardDidHide,this.win,"ionKeyboardDidHide",re),this._readyPromise=new Promise(Ht=>{rt=Ht}),null!==(Oe=this.win)&&void 0!==Oe&&Oe.cordova?U.addEventListener("deviceready",()=>{rt("cordova")},{once:!0}):rt("dom")})}is(U){return(0,Ae.a)(this.win,U)}platforms(){return(0,Ae.g)(this.win)}ready(){return this._readyPromise}get isRTL(){return"rtl"===this.doc.dir}getQueryParam(U){return jn(this.win.location.href,U)}isLandscape(){return!this.isPortrait()}isPortrait(){var U,re;return null===(U=(re=this.win).matchMedia)||void 0===U?void 0:U.call(re,"(orientation: portrait)").matches}testUserAgent(U){const re=this.win.navigator;return!!(null!=re&&re.userAgent&&re.userAgent.indexOf(U)>=0)}url(){return this.win.location.href}width(){return this.win.innerWidth}height(){return this.win.innerHeight}}return R=V,(0,c.A)(V,"\u0275fac",function(U){return new(U||R)(ve.KVO(Y.qQ),ve.KVO(ve.SKi))}),(0,c.A)(V,"\u0275prov",ve.jDH({token:R,factory:R.\u0275fac,providedIn:"root"})),V})();const jn=(R,V)=>{V=V.replace(/[[\]\\]/g,"\\$&");const U=new RegExp("[\\?&]"+V+"=([^&#]*)").exec(R);return U?decodeURIComponent(U[1].replace(/\+/g," ")):null},Xn=(R,V,Z,U)=>{V&&V.addEventListener(Z,re=>{U.run(()=>{R.next(null!=re?re.detail:void 0)})})};let Qn=(()=>{var R;class V{constructor(U,re,Oe,rt){(0,c.A)(this,"location",void 0),(0,c.A)(this,"serializer",void 0),(0,c.A)(this,"router",void 0),(0,c.A)(this,"topOutlet",void 0),(0,c.A)(this,"direction",nr),(0,c.A)(this,"animated",Jn),(0,c.A)(this,"animationBuilder",void 0),(0,c.A)(this,"guessDirection","forward"),(0,c.A)(this,"guessAnimation",void 0),(0,c.A)(this,"lastNavId",-1),this.location=re,this.serializer=Oe,this.router=rt,rt&&rt.events.subscribe(Ht=>{if(Ht instanceof Fe.Z){const Kt=Ht.restoredState?Ht.restoredState.navigationId:Ht.id;this.guessDirection=this.guessAnimation=Kt{this.pop(),Ht()})}navigateForward(U,re={}){return this.setDirection("forward",re.animated,re.animationDirection,re.animation),this.navigate(U,re)}navigateBack(U,re={}){return this.setDirection("back",re.animated,re.animationDirection,re.animation),this.navigate(U,re)}navigateRoot(U,re={}){return this.setDirection("root",re.animated,re.animationDirection,re.animation),this.navigate(U,re)}back(U={animated:!0,animationDirection:"back"}){return this.setDirection("back",U.animated,U.animationDirection,U.animation),this.location.back()}pop(){var U=this;return(0,g.A)(function*(){let re=U.topOutlet;for(;re;){if(yield re.pop())return!0;re=re.parentOutlet}return!1})()}setDirection(U,re,Oe,rt){this.direction=U,this.animated=En(U,re,Oe),this.animationBuilder=rt}setTopOutlet(U){this.topOutlet=U}consumeTransition(){let re,U="root";const Oe=this.animationBuilder;return"auto"===this.direction?(U=this.guessDirection,re=this.guessAnimation):(re=this.animated,U=this.direction),this.direction=nr,this.animated=Jn,this.animationBuilder=void 0,{direction:U,animation:re,animationBuilder:Oe}}navigate(U,re){if(Array.isArray(U))return this.router.navigate(U,re);{const Oe=this.serializer.parse(U.toString());return void 0!==re.queryParams&&(Oe.queryParams={...re.queryParams}),void 0!==re.fragment&&(Oe.fragment=re.fragment),this.router.navigateByUrl(Oe,re)}}}return R=V,(0,c.A)(V,"\u0275fac",function(U){return new(U||R)(ve.KVO(Sn),ve.KVO(Y.aZ),ve.KVO(Fe.Sd),ve.KVO(Fe.Ix,8))}),(0,c.A)(V,"\u0275prov",ve.jDH({token:R,factory:R.\u0275fac,providedIn:"root"})),V})();const En=(R,V,Z)=>{if(!1!==V){if(void 0!==Z)return Z;if("forward"===R||"back"===R)return R;if("root"===R&&!0===V)return"forward"}},nr="auto",Jn=void 0;let $e=(()=>{var R;class V{get(U,re){const Oe=kt();return Oe?Oe.get(U,re):null}getBoolean(U,re){const Oe=kt();return!!Oe&&Oe.getBoolean(U,re)}getNumber(U,re){const Oe=kt();return Oe?Oe.getNumber(U,re):0}}return R=V,(0,c.A)(V,"\u0275fac",function(U){return new(U||R)}),(0,c.A)(V,"\u0275prov",ve.jDH({token:R,factory:R.\u0275fac,providedIn:"root"})),V})();const At=new ve.nKC("USERCONFIG"),kt=()=>{if(typeof window<"u"){const R=window.Ionic;if(null!=R&&R.config)return R.config}return null};class Jt{constructor(V={}){(0,c.A)(this,"data",void 0),this.data=V,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(V){return this.data[V]}}let sn=(()=>{var R;class V{constructor(){(0,c.A)(this,"zone",(0,ve.WQX)(ve.SKi)),(0,c.A)(this,"applicationRef",(0,ve.WQX)(ve.o8S)),(0,c.A)(this,"config",(0,ve.WQX)(At))}create(U,re,Oe){var rt;return new br(U,re,this.applicationRef,this.zone,Oe,null!==(rt=this.config.useSetInputAPI)&&void 0!==rt&&rt)}}return R=V,(0,c.A)(V,"\u0275fac",function(U){return new(U||R)}),(0,c.A)(V,"\u0275prov",ve.jDH({token:R,factory:R.\u0275fac})),V})();class br{constructor(V,Z,U,re,Oe,rt){(0,c.A)(this,"environmentInjector",void 0),(0,c.A)(this,"injector",void 0),(0,c.A)(this,"applicationRef",void 0),(0,c.A)(this,"zone",void 0),(0,c.A)(this,"elementReferenceKey",void 0),(0,c.A)(this,"enableSignalsSupport",void 0),(0,c.A)(this,"elRefMap",new WeakMap),(0,c.A)(this,"elEventsMap",new WeakMap),this.environmentInjector=V,this.injector=Z,this.applicationRef=U,this.zone=re,this.elementReferenceKey=Oe,this.enableSignalsSupport=rt}attachViewToDom(V,Z,U,re){return this.zone.run(()=>new Promise(Oe=>{const rt={...U};void 0!==this.elementReferenceKey&&(rt[this.elementReferenceKey]=V),Oe(_n(this.zone,this.environmentInjector,this.injector,this.applicationRef,this.elRefMap,this.elEventsMap,V,Z,rt,re,this.elementReferenceKey,this.enableSignalsSupport))}))}removeViewFromDom(V,Z){return this.zone.run(()=>new Promise(U=>{const re=this.elRefMap.get(Z);if(re){re.destroy(),this.elRefMap.delete(Z);const Oe=this.elEventsMap.get(Z);Oe&&(Oe(),this.elEventsMap.delete(Z))}U()}))}}const _n=(R,V,Z,U,re,Oe,rt,Ht,Kt,Bn,Ln,Ur)=>{const dr=ve.zZn.create({providers:mr(Kt),parent:Z}),kr=(0,ve.a0P)(Ht,{environmentInjector:V,elementInjector:dr}),pr=kr.instance,on=kr.location.nativeElement;if(Kt)if(Ln&&void 0!==pr[Ln]&&console.error(`[Ionic Error]: ${Ln} is a reserved property when using ${rt.tagName.toLowerCase()}. Rename or remove the "${Ln}" property from ${Ht.name}.`),!0===Ur&&void 0!==kr.setInput){const{modal:Br,popover:xr,...gr}=Kt;for(const ur in gr)kr.setInput(ur,gr[ur]);void 0!==Br&&Object.assign(pr,{modal:Br}),void 0!==xr&&Object.assign(pr,{popover:xr})}else Object.assign(pr,Kt);if(Bn)for(const Br of Bn)on.classList.add(Br);const Zn=rn(R,pr,on);return rt.appendChild(on),U.attachView(kr.hostView),re.set(on,kr),Oe.set(on,Zn),on},yn=[se.L,se.a,se.b,se.c,se.d],rn=(R,V,Z)=>R.run(()=>{const U=yn.filter(re=>"function"==typeof V[re]).map(re=>{const Oe=rt=>V[re](rt.detail);return Z.addEventListener(re,Oe),()=>Z.removeEventListener(re,Oe)});return()=>U.forEach(re=>re())}),Wt=new ve.nKC("NavParamsToken"),mr=R=>[{provide:Wt,useValue:R},{provide:Jt,useFactory:Sr,deps:[Wt]}],Sr=R=>new Jt(R),Vr=(R,V)=>{const Z=R.prototype;V.forEach(U=>{Object.defineProperty(Z,U,{get(){return this.el[U]},set(re){this.z.runOutsideAngular(()=>this.el[U]=re)}})})},Or=(R,V)=>{const Z=R.prototype;V.forEach(U=>{Z[U]=function(){const re=arguments;return this.z.runOutsideAngular(()=>this.el[U].apply(this.el,re))}})},Cr=(R,V,Z)=>{Z.forEach(U=>R[U]=(0,Zt.R)(V,U))};function zn(R){return function(Z){const{defineCustomElementFn:U,inputs:re,methods:Oe}=R;return void 0!==U&&U(),re&&Vr(Z,re),Oe&&Or(Z,Oe),Z}}const li=["alignment","animated","arrow","keepContentsMounted","backdropDismiss","cssClass","dismissOnSelect","enterAnimation","event","isOpen","keyboardClose","leaveAnimation","mode","showBackdrop","translucent","trigger","triggerAction","reference","size","side"],Yn=["present","dismiss","onDidDismiss","onWillDismiss"];let Rn=(()=>{var R;let V=((0,c.A)(R=class{constructor(U,re,Oe){(0,c.A)(this,"z",void 0),(0,c.A)(this,"template",void 0),(0,c.A)(this,"isCmpOpen",!1),(0,c.A)(this,"el",void 0),this.z=Oe,this.el=re.nativeElement,this.el.addEventListener("ionMount",()=>{this.isCmpOpen=!0,U.detectChanges()}),this.el.addEventListener("didDismiss",()=>{this.isCmpOpen=!1,U.detectChanges()}),Cr(this,this.el,["ionPopoverDidPresent","ionPopoverWillPresent","ionPopoverWillDismiss","ionPopoverDidDismiss","didPresent","willPresent","willDismiss","didDismiss"])}},"\u0275fac",function(U){return new(U||R)(ve.rXU(ve.gRc),ve.rXU(ve.aKT),ve.rXU(ve.SKi))}),(0,c.A)(R,"\u0275dir",ve.FsC({type:R,selectors:[["ion-popover"]],contentQueries:function(U,re,Oe){if(1&U&&ve.wni(Oe,ve.C4Q,5),2&U){let rt;ve.mGM(rt=ve.lsd())&&(re.template=rt.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"}})),R);return V=(0,ht.Cg)([zn({inputs:li,methods:Yn})],V),V})();const Rr=["animated","keepContentsMounted","backdropBreakpoint","backdropDismiss","breakpoints","canDismiss","cssClass","enterAnimation","event","handle","handleBehavior","initialBreakpoint","isOpen","keyboardClose","leaveAnimation","mode","presentingElement","showBackdrop","translucent","trigger"],rr=["present","dismiss","onDidDismiss","onWillDismiss","setCurrentBreakpoint","getCurrentBreakpoint"];let Tr=(()=>{var R;let V=((0,c.A)(R=class{constructor(U,re,Oe){(0,c.A)(this,"z",void 0),(0,c.A)(this,"template",void 0),(0,c.A)(this,"isCmpOpen",!1),(0,c.A)(this,"el",void 0),this.z=Oe,this.el=re.nativeElement,this.el.addEventListener("ionMount",()=>{this.isCmpOpen=!0,U.detectChanges()}),this.el.addEventListener("didDismiss",()=>{this.isCmpOpen=!1,U.detectChanges()}),Cr(this,this.el,["ionModalDidPresent","ionModalWillPresent","ionModalWillDismiss","ionModalDidDismiss","ionBreakpointDidChange","didPresent","willPresent","willDismiss","didDismiss"])}},"\u0275fac",function(U){return new(U||R)(ve.rXU(ve.gRc),ve.rXU(ve.aKT),ve.rXU(ve.SKi))}),(0,c.A)(R,"\u0275dir",ve.FsC({type:R,selectors:[["ion-modal"]],contentQueries:function(U,re,Oe){if(1&U&&ve.wni(Oe,ve.C4Q,5),2&U){let rt;ve.mGM(rt=ve.lsd())&&(re.template=rt.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"}})),R);return V=(0,ht.Cg)([zn({inputs:Rr,methods:rr})],V),V})();const Jr=(R,V)=>((R=R.filter(Z=>Z.stackId!==V.stackId)).push(V),R),ze=(R,V)=>{const Z=R.createUrlTree(["."],{relativeTo:V});return R.serializeUrl(Z)},dt=(R,V)=>!V||R.stackId!==V.stackId,Qe=(R,V)=>{if(!R)return;const Z=le(V);for(let U=0;U=R.length)return Z[U];if(Z[U]!==R[U])return}},le=R=>R.split("/").map(V=>V.trim()).filter(V=>""!==V),pe=R=>{R&&(R.ref.destroy(),R.unlistenEvents())};class xe{constructor(V,Z,U,re,Oe,rt){(0,c.A)(this,"containerEl",void 0),(0,c.A)(this,"router",void 0),(0,c.A)(this,"navCtrl",void 0),(0,c.A)(this,"zone",void 0),(0,c.A)(this,"location",void 0),(0,c.A)(this,"views",[]),(0,c.A)(this,"runningTask",void 0),(0,c.A)(this,"skipTransition",!1),(0,c.A)(this,"tabsPrefix",void 0),(0,c.A)(this,"activeView",void 0),(0,c.A)(this,"nextId",0),this.containerEl=Z,this.router=U,this.navCtrl=re,this.zone=Oe,this.location=rt,this.tabsPrefix=void 0!==V?le(V):void 0}createView(V,Z){var U;const re=ze(this.router,Z),Oe=null==V||null===(U=V.location)||void 0===U?void 0:U.nativeElement,rt=rn(this.zone,V.instance,Oe);return{id:this.nextId++,stackId:Qe(this.tabsPrefix,re),unlistenEvents:rt,element:Oe,ref:V,url:re}}getExistingView(V){const Z=ze(this.router,V),U=this.views.find(re=>re.url===Z);return U&&U.ref.changeDetectorRef.reattach(),U}setActive(V){var Z,U;const re=this.navCtrl.consumeTransition();let{direction:Oe,animation:rt,animationBuilder:Ht}=re;const Kt=this.activeView,Bn=dt(V,Kt);Bn&&(Oe="back",rt=void 0);const Ln=this.views.slice();let Ur;const dr=this.router;dr.getCurrentNavigation?Ur=dr.getCurrentNavigation():null!==(Z=dr.navigations)&&void 0!==Z&&Z.value&&(Ur=dr.navigations.value),null!==(U=Ur)&&void 0!==U&&null!==(U=U.extras)&&void 0!==U&&U.replaceUrl&&this.views.length>0&&this.views.splice(-1,1);const kr=this.views.includes(V),pr=this.insertView(V,Oe);kr||V.ref.changeDetectorRef.detectChanges();const on=V.animationBuilder;return void 0===Ht&&"back"===Oe&&!Bn&&void 0!==on&&(Ht=on),Kt&&(Kt.animationBuilder=Ht),this.zone.runOutsideAngular(()=>this.wait(()=>(Kt&&Kt.ref.changeDetectorRef.detach(),V.ref.changeDetectorRef.reattach(),this.transition(V,Kt,rt,this.canGoBack(1),!1,Ht).then(()=>wt(V,pr,Ln,this.location,this.zone)).then(()=>({enteringView:V,direction:Oe,animation:rt,tabSwitch:Bn})))))}canGoBack(V,Z=this.getActiveStackId()){return this.getStack(Z).length>V}pop(V,Z=this.getActiveStackId()){return this.zone.run(()=>{const U=this.getStack(Z);if(U.length<=V)return Promise.resolve(!1);const re=U[U.length-V-1];let Oe=re.url;const rt=re.savedData;if(rt){var Ht;const Bn=rt.get("primary");null!=Bn&&null!==(Ht=Bn.route)&&void 0!==Ht&&null!==(Ht=Ht._routerState)&&void 0!==Ht&&Ht.snapshot.url&&(Oe=Bn.route._routerState.snapshot.url)}const{animationBuilder:Kt}=this.navCtrl.consumeTransition();return this.navCtrl.navigateBack(Oe,{...re.savedExtras,animation:Kt}).then(()=>!0)})}startBackTransition(){const V=this.activeView;if(V){const Z=this.getStack(V.stackId),U=Z[Z.length-2],re=U.animationBuilder;return this.wait(()=>this.transition(U,V,"back",this.canGoBack(2),!0,re))}return Promise.resolve()}endBackTransition(V){V?(this.skipTransition=!0,this.pop(1)):this.activeView&&st(this.activeView,this.views,this.views,this.location,this.zone)}getLastUrl(V){const Z=this.getStack(V);return Z.length>0?Z[Z.length-1]:void 0}getRootUrl(V){const Z=this.getStack(V);return Z.length>0?Z[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(pe),this.activeView=void 0,this.views=[]}getStack(V){return this.views.filter(Z=>Z.stackId===V)}insertView(V,Z){return this.activeView=V,this.views=((R,V,Z)=>"root"===Z?Jr(R,V):"forward"===Z?((R,V)=>(R.indexOf(V)>=0?R=R.filter(U=>U.stackId!==V.stackId||U.id<=V.id):R.push(V),R))(R,V):((R,V)=>R.indexOf(V)>=0?R.filter(U=>U.stackId!==V.stackId||U.id<=V.id):Jr(R,V))(R,V))(this.views,V,Z),this.views.slice()}transition(V,Z,U,re,Oe,rt){if(this.skipTransition)return this.skipTransition=!1,Promise.resolve(!1);if(Z===V)return Promise.resolve(!1);const Ht=V?V.element:void 0,Kt=Z?Z.element:void 0,Bn=this.containerEl;return Ht&&Ht!==Kt&&(Ht.classList.add("ion-page"),Ht.classList.add("ion-page-invisible"),Bn.commit)?Bn.commit(Ht,Kt,{duration:void 0===U?0:void 0,direction:U,showGoBack:re,progressAnimation:Oe,animationBuilder:rt}):Promise.resolve(!1)}wait(V){var Z=this;return(0,g.A)(function*(){void 0!==Z.runningTask&&(yield Z.runningTask,Z.runningTask=void 0);const U=Z.runningTask=V();return U.finally(()=>Z.runningTask=void 0),U})()}}const wt=(R,V,Z,U,re)=>"function"==typeof requestAnimationFrame?new Promise(Oe=>{requestAnimationFrame(()=>{st(R,V,Z,U,re),Oe()})}):Promise.resolve(),st=(R,V,Z,U,re)=>{re.run(()=>Z.filter(Oe=>!V.includes(Oe)).forEach(pe)),V.forEach(Oe=>{const Ht=U.path().split("?")[0].split("#")[0];if(Oe!==R&&Oe.url!==Ht){const Kt=Oe.element;Kt.setAttribute("aria-hidden","true"),Kt.classList.add("ion-page-hidden"),Oe.ref.changeDetectorRef.detach()}})};let pn=(()=>{var R;class V{get activatedComponentRef(){return this.activated}set animation(U){this.nativeEl.animation=U}set animated(U){this.nativeEl.animated=U}set swipeGesture(U){this._swipeGesture=U,this.nativeEl.swipeHandler=U?{canStart:()=>this.stackCtrl.canGoBack(1)&&!this.stackCtrl.hasRunningTask(),onStart:()=>this.stackCtrl.startBackTransition(),onEnd:re=>this.stackCtrl.endBackTransition(re)}:void 0}constructor(U,re,Oe,rt,Ht,Kt,Bn,Ln){(0,c.A)(this,"parentOutlet",void 0),(0,c.A)(this,"nativeEl",void 0),(0,c.A)(this,"activatedView",null),(0,c.A)(this,"tabsPrefix",void 0),(0,c.A)(this,"_swipeGesture",void 0),(0,c.A)(this,"stackCtrl",void 0),(0,c.A)(this,"proxyMap",new WeakMap),(0,c.A)(this,"currentActivatedRoute$",new It.t(null)),(0,c.A)(this,"activated",null),(0,c.A)(this,"_activatedRoute",null),(0,c.A)(this,"name",Fe.Xk),(0,c.A)(this,"stackWillChange",new ve.bkB),(0,c.A)(this,"stackDidChange",new ve.bkB),(0,c.A)(this,"activateEvents",new ve.bkB),(0,c.A)(this,"deactivateEvents",new ve.bkB),(0,c.A)(this,"parentContexts",(0,ve.WQX)(Fe.Zp)),(0,c.A)(this,"location",(0,ve.WQX)(ve.c1b)),(0,c.A)(this,"environmentInjector",(0,ve.WQX)(ve.uvJ)),(0,c.A)(this,"inputBinder",(0,ve.WQX)(Kn,{optional:!0})),(0,c.A)(this,"supportsBindingToComponentInputs",!0),(0,c.A)(this,"config",(0,ve.WQX)($e)),(0,c.A)(this,"navCtrl",(0,ve.WQX)(Qn)),this.parentOutlet=Ln,this.nativeEl=rt.nativeElement,this.name=U||Fe.Xk,this.tabsPrefix="true"===re?ze(Ht,Bn):void 0,this.stackCtrl=new xe(this.tabsPrefix,this.nativeEl,Ht,this.navCtrl,Kt,Oe),this.parentContexts.onChildOutletCreated(this.name,this)}ngOnDestroy(){var U;this.stackCtrl.destroy(),null===(U=this.inputBinder)||void 0===U||U.unsubscribeFromRouteData(this)}getContext(){return this.parentContexts.getContext(this.name)}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(!this.activated){const U=this.getContext();null!=U&&U.route&&this.activateWith(U.route,U.injector)}new Promise(U=>((R,V)=>{R.componentOnReady?R.componentOnReady().then(Z=>V(Z)):(R=>{"function"==typeof __zone_symbol__requestAnimationFrame?__zone_symbol__requestAnimationFrame(R):"function"==typeof requestAnimationFrame?requestAnimationFrame(R):setTimeout(R)})(()=>V(R))})(this.nativeEl,U)).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(U,re){throw new Error("incompatible reuse strategy")}deactivate(){if(this.activated){if(this.activatedView){const re=this.getContext();this.activatedView.savedData=new Map(re.children.contexts);const Oe=this.activatedView.savedData.get("primary");if(Oe&&re.route&&(Oe.route={...re.route}),this.activatedView.savedExtras={},re.route){const rt=re.route.snapshot;this.activatedView.savedExtras.queryParams=rt.queryParams,this.activatedView.savedExtras.fragment=rt.fragment}}const U=this.component;this.activatedView=null,this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(U)}}activateWith(U,re){var Oe;if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=U;let rt,Ht=this.stackCtrl.getExistingView(U);if(Ht){rt=this.activated=Ht.ref;const Ln=Ht.savedData;Ln&&(this.getContext().children.contexts=Ln),this.updateActivatedRouteProxy(rt.instance,U)}else{var Kt;const Ln=U._futureSnapshot,Ur=this.parentContexts.getOrCreateContext(this.name).children,dr=new It.t(null),kr=this.createActivatedRouteProxy(dr,U),pr=new Pn(kr,Ur,this.location.injector),on=null!==(Kt=Ln.routeConfig.component)&&void 0!==Kt?Kt:Ln.component;rt=this.activated=this.outletContent.createComponent(on,{index:this.outletContent.length,injector:pr,environmentInjector:null!=re?re:this.environmentInjector}),dr.next(rt.instance),Ht=this.stackCtrl.createView(this.activated,U),this.proxyMap.set(rt.instance,kr),this.currentActivatedRoute$.next({component:rt.instance,activatedRoute:U})}null===(Oe=this.inputBinder)||void 0===Oe||Oe.bindActivatedRouteToOutletComponent(this),this.activatedView=Ht,this.navCtrl.setTopOutlet(this);const Bn=this.stackCtrl.getActiveView();this.stackWillChange.emit({enteringView:Ht,tabSwitch:dt(Ht,Bn)}),this.stackCtrl.setActive(Ht).then(Ln=>{this.activateEvents.emit(rt.instance),this.stackDidChange.emit(Ln)})}canGoBack(U=1,re){return this.stackCtrl.canGoBack(U,re)}pop(U=1,re){return this.stackCtrl.pop(U,re)}getLastUrl(U){const re=this.stackCtrl.getLastUrl(U);return re?re.url:void 0}getLastRouteView(U){return this.stackCtrl.getLastUrl(U)}getRootView(U){return this.stackCtrl.getRootUrl(U)}getActiveStackId(){return this.stackCtrl.getActiveStackId()}createActivatedRouteProxy(U,re){const Oe=new Fe.nX;return Oe._futureSnapshot=re._futureSnapshot,Oe._routerState=re._routerState,Oe.snapshot=re.snapshot,Oe.outlet=re.outlet,Oe.component=re.component,Oe._paramMap=this.proxyObservable(U,"paramMap"),Oe._queryParamMap=this.proxyObservable(U,"queryParamMap"),Oe.url=this.proxyObservable(U,"url"),Oe.params=this.proxyObservable(U,"params"),Oe.queryParams=this.proxyObservable(U,"queryParams"),Oe.fragment=this.proxyObservable(U,"fragment"),Oe.data=this.proxyObservable(U,"data"),Oe}proxyObservable(U,re){return U.pipe((0,Ne.p)(Oe=>!!Oe),(0,B.n)(Oe=>this.currentActivatedRoute$.pipe((0,Ne.p)(rt=>null!==rt&&rt.component===Oe),(0,B.n)(rt=>rt&&rt.activatedRoute[re]),function ae(R,V=K.D){return R=null!=R?R:ye,(0,ne.N)((Z,U)=>{let re,Oe=!0;Z.subscribe((0,oe._)(U,rt=>{const Ht=V(rt);(Oe||!R(re,Ht))&&(Oe=!1,re=Ht,U.next(rt))}))})}())))}updateActivatedRouteProxy(U,re){const Oe=this.proxyMap.get(U);if(!Oe)throw new Error("Could not find activated route proxy for view");Oe._futureSnapshot=re._futureSnapshot,Oe._routerState=re._routerState,Oe.snapshot=re.snapshot,Oe.outlet=re.outlet,Oe.component=re.component,this.currentActivatedRoute$.next({component:U,activatedRoute:re})}}return R=V,(0,c.A)(V,"\u0275fac",function(U){return new(U||R)(ve.kS0("name"),ve.kS0("tabs"),ve.rXU(Y.aZ),ve.rXU(ve.aKT),ve.rXU(Fe.Ix),ve.rXU(ve.SKi),ve.rXU(Fe.nX),ve.rXU(R,12))}),(0,c.A)(V,"\u0275dir",ve.FsC({type:R,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"]})),V})();class Pn{constructor(V,Z,U){(0,c.A)(this,"route",void 0),(0,c.A)(this,"childContexts",void 0),(0,c.A)(this,"parent",void 0),this.route=V,this.childContexts=Z,this.parent=U}get(V,Z){return V===Fe.nX?this.route:V===Fe.Zp?this.childContexts:this.parent.get(V,Z)}}const Kn=new ve.nKC("");let Ir=(()=>{var R;class V{constructor(){(0,c.A)(this,"outletDataSubscriptions",new Map)}bindActivatedRouteToOutletComponent(U){this.unsubscribeFromRouteData(U),this.subscribeToRouteData(U)}unsubscribeFromRouteData(U){var re;null===(re=this.outletDataSubscriptions.get(U))||void 0===re||re.unsubscribe(),this.outletDataSubscriptions.delete(U)}subscribeToRouteData(U){const{activatedRoute:re}=U,Oe=(0,je.z)([re.queryParams,re.params,re.data]).pipe((0,B.n)(([rt,Ht,Kt],Bn)=>(Kt={...rt,...Ht,...Kt},0===Bn?(0,nn.of)(Kt):Promise.resolve(Kt)))).subscribe(rt=>{if(!U.isActivated||!U.activatedComponentRef||U.activatedRoute!==re||null===re.component)return void this.unsubscribeFromRouteData(U);const Ht=(0,ve.HJs)(re.component);if(Ht)for(const{templateName:Kt}of Ht.inputs)U.activatedComponentRef.setInput(Kt,rt[Kt]);else this.unsubscribeFromRouteData(U)});this.outletDataSubscriptions.set(U,Oe)}}return R=V,(0,c.A)(V,"\u0275fac",function(U){return new(U||R)}),(0,c.A)(V,"\u0275prov",ve.jDH({token:R,factory:R.\u0275fac})),V})();const cr=()=>({provide:Kn,useFactory:hi,deps:[Fe.Ix]});function hi(R){return null!=R&&R.componentInputBindingEnabled?new Ir:null}const On=["color","defaultHref","disabled","icon","mode","routerAnimation","text","type"];let Dn=(()=>{var R;let V=((0,c.A)(R=class{constructor(U,re,Oe,rt,Ht,Kt){(0,c.A)(this,"routerOutlet",void 0),(0,c.A)(this,"navCtrl",void 0),(0,c.A)(this,"config",void 0),(0,c.A)(this,"r",void 0),(0,c.A)(this,"z",void 0),(0,c.A)(this,"el",void 0),this.routerOutlet=U,this.navCtrl=re,this.config=Oe,this.r=rt,this.z=Ht,Kt.detach(),this.el=this.r.nativeElement}onClick(U){var re;const Oe=this.defaultHref||this.config.get("backButtonDefaultHref");null!==(re=this.routerOutlet)&&void 0!==re&&re.canGoBack()?(this.navCtrl.setDirection("back",void 0,void 0,this.routerAnimation),this.routerOutlet.pop(),U.preventDefault()):null!=Oe&&(this.navCtrl.navigateBack(Oe,{animation:this.routerAnimation}),U.preventDefault())}},"\u0275fac",function(U){return new(U||R)(ve.rXU(pn,8),ve.rXU(Qn),ve.rXU($e),ve.rXU(ve.aKT),ve.rXU(ve.SKi),ve.rXU(ve.gRc))}),(0,c.A)(R,"\u0275dir",ve.FsC({type:R,hostBindings:function(U,re){1&U&&ve.bIt("click",function(rt){return re.onClick(rt)})},inputs:{color:"color",defaultHref:"defaultHref",disabled:"disabled",icon:"icon",mode:"mode",routerAnimation:"routerAnimation",text:"text",type:"type"}})),R);return V=(0,ht.Cg)([zn({inputs:On})],V),V})(),Er=(()=>{var R;class V{constructor(U,re,Oe,rt,Ht){(0,c.A)(this,"locationStrategy",void 0),(0,c.A)(this,"navCtrl",void 0),(0,c.A)(this,"elementRef",void 0),(0,c.A)(this,"router",void 0),(0,c.A)(this,"routerLink",void 0),(0,c.A)(this,"routerDirection","forward"),(0,c.A)(this,"routerAnimation",void 0),this.locationStrategy=U,this.navCtrl=re,this.elementRef=Oe,this.router=rt,this.routerLink=Ht}ngOnInit(){this.updateTargetUrlAndHref()}ngOnChanges(){this.updateTargetUrlAndHref()}updateTargetUrlAndHref(){var U;if(null!==(U=this.routerLink)&&void 0!==U&&U.urlTree){const re=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.routerLink.urlTree));this.elementRef.nativeElement.href=re}}onClick(U){this.navCtrl.setDirection(this.routerDirection,void 0,void 0,this.routerAnimation),U.preventDefault()}}return R=V,(0,c.A)(V,"\u0275fac",function(U){return new(U||R)(ve.rXU(Y.hb),ve.rXU(Qn),ve.rXU(ve.aKT),ve.rXU(Fe.Ix),ve.rXU(Fe.Wk,8))}),(0,c.A)(V,"\u0275dir",ve.FsC({type:R,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(U,re){1&U&&ve.bIt("click",function(rt){return re.onClick(rt)})},inputs:{routerDirection:"routerDirection",routerAnimation:"routerAnimation"},features:[ve.OA$]})),V})(),mi=(()=>{var R;class V{constructor(U,re,Oe,rt,Ht){(0,c.A)(this,"locationStrategy",void 0),(0,c.A)(this,"navCtrl",void 0),(0,c.A)(this,"elementRef",void 0),(0,c.A)(this,"router",void 0),(0,c.A)(this,"routerLink",void 0),(0,c.A)(this,"routerDirection","forward"),(0,c.A)(this,"routerAnimation",void 0),this.locationStrategy=U,this.navCtrl=re,this.elementRef=Oe,this.router=rt,this.routerLink=Ht}ngOnInit(){this.updateTargetUrlAndHref()}ngOnChanges(){this.updateTargetUrlAndHref()}updateTargetUrlAndHref(){var U;if(null!==(U=this.routerLink)&&void 0!==U&&U.urlTree){const re=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.routerLink.urlTree));this.elementRef.nativeElement.href=re}}onClick(){this.navCtrl.setDirection(this.routerDirection,void 0,void 0,this.routerAnimation)}}return R=V,(0,c.A)(V,"\u0275fac",function(U){return new(U||R)(ve.rXU(Y.hb),ve.rXU(Qn),ve.rXU(ve.aKT),ve.rXU(Fe.Ix),ve.rXU(Fe.Wk,8))}),(0,c.A)(V,"\u0275dir",ve.FsC({type:R,selectors:[["a","routerLink",""],["area","routerLink",""]],hostBindings:function(U,re){1&U&&ve.bIt("click",function(){return re.onClick()})},inputs:{routerDirection:"routerDirection",routerAnimation:"routerAnimation"},features:[ve.OA$]})),V})();const ui=["animated","animation","root","rootParams","swipeGesture"],fi=["push","insert","insertPages","pop","popTo","popToRoot","removeIndex","setRoot","setPages","getActive","getByIndex","canGoBack","getPrevious"];let Ti=(()=>{var R;let V=((0,c.A)(R=class{constructor(U,re,Oe,rt,Ht,Kt){(0,c.A)(this,"z",void 0),(0,c.A)(this,"el",void 0),this.z=Ht,Kt.detach(),this.el=U.nativeElement,U.nativeElement.delegate=rt.create(re,Oe),Cr(this,this.el,["ionNavDidChange","ionNavWillChange"])}},"\u0275fac",function(U){return new(U||R)(ve.rXU(ve.aKT),ve.rXU(ve.uvJ),ve.rXU(ve.zZn),ve.rXU(sn),ve.rXU(ve.SKi),ve.rXU(ve.gRc))}),(0,c.A)(R,"\u0275dir",ve.FsC({type:R,inputs:{animated:"animated",animation:"animation",root:"root",rootParams:"rootParams",swipeGesture:"swipeGesture"}})),R);return V=(0,ht.Cg)([zn({inputs:ui,methods:fi})],V),V})(),sr=(()=>{var R;class V{constructor(U){(0,c.A)(this,"navCtrl",void 0),(0,c.A)(this,"tabsInner",void 0),(0,c.A)(this,"ionTabsWillChange",new ve.bkB),(0,c.A)(this,"ionTabsDidChange",new ve.bkB),(0,c.A)(this,"tabBarSlot","bottom"),this.navCtrl=U}ngAfterContentInit(){this.detectSlotChanges()}ngAfterContentChecked(){this.detectSlotChanges()}onStackWillChange({enteringView:U,tabSwitch:re}){const Oe=U.stackId;re&&void 0!==Oe&&this.ionTabsWillChange.emit({tab:Oe})}onStackDidChange({enteringView:U,tabSwitch:re}){const Oe=U.stackId;re&&void 0!==Oe&&(this.tabBar&&(this.tabBar.selectedTab=Oe),this.ionTabsDidChange.emit({tab:Oe}))}select(U){const re="string"==typeof U,Oe=re?U:U.detail.tab,rt=this.outlet.getActiveStackId()===Oe,Ht=`${this.outlet.tabsPrefix}/${Oe}`;if(re||U.stopPropagation(),rt){const Kt=this.outlet.getActiveStackId(),Bn=this.outlet.getLastRouteView(Kt);if((null==Bn?void 0:Bn.url)===Ht)return;const Ln=this.outlet.getRootView(Oe);return this.navCtrl.navigateRoot(Ht,{...Ln&&Ht===Ln.url&&Ln.savedExtras,animated:!0,animationDirection:"back"})}{const Kt=this.outlet.getLastRouteView(Oe);return this.navCtrl.navigateRoot((null==Kt?void 0:Kt.url)||Ht,{...null==Kt?void 0:Kt.savedExtras,animated:!0,animationDirection:"back"})}}getSelected(){return this.outlet.getActiveStackId()}detectSlotChanges(){this.tabBars.forEach(U=>{const re=U.el.getAttribute("slot");re!==this.tabBarSlot&&(this.tabBarSlot=re,this.relocateTabBar())})}relocateTabBar(){const U=this.tabBar.el;"top"===this.tabBarSlot?this.tabsInner.nativeElement.before(U):this.tabsInner.nativeElement.after(U)}}return R=V,(0,c.A)(V,"\u0275fac",function(U){return new(U||R)(ve.rXU(Qn))}),(0,c.A)(V,"\u0275dir",ve.FsC({type:R,selectors:[["ion-tabs"]],viewQuery:function(U,re){if(1&U&&ve.GBs(ft,7,ve.aKT),2&U){let Oe;ve.mGM(Oe=ve.lsd())&&(re.tabsInner=Oe.first)}},hostBindings:function(U,re){1&U&&ve.bIt("ionTabButtonClick",function(rt){return re.select(rt)})},outputs:{ionTabsWillChange:"ionTabsWillChange",ionTabsDidChange:"ionTabsDidChange"}})),V})();const Fi=R=>"function"==typeof __zone_symbol__requestAnimationFrame?__zone_symbol__requestAnimationFrame(R):"function"==typeof requestAnimationFrame?requestAnimationFrame(R):setTimeout(R);let Mi=(()=>{var R;class V{constructor(U,re){(0,c.A)(this,"injector",void 0),(0,c.A)(this,"elementRef",void 0),(0,c.A)(this,"onChange",()=>{}),(0,c.A)(this,"onTouched",()=>{}),(0,c.A)(this,"lastValue",void 0),(0,c.A)(this,"statusChanges",void 0),this.injector=U,this.elementRef=re}writeValue(U){this.elementRef.nativeElement.value=this.lastValue=U,pi(this.elementRef)}handleValueChange(U,re){U===this.elementRef.nativeElement&&(re!==this.lastValue&&(this.lastValue=re,this.onChange(re)),pi(this.elementRef))}_handleBlurEvent(U){U===this.elementRef.nativeElement&&(this.onTouched(),pi(this.elementRef))}registerOnChange(U){this.onChange=U}registerOnTouched(U){this.onTouched=U}setDisabledState(U){this.elementRef.nativeElement.disabled=U}ngOnDestroy(){this.statusChanges&&this.statusChanges.unsubscribe()}ngAfterViewInit(){let U;try{U=this.injector.get(Te.vO)}catch{}if(!U)return;U.statusChanges&&(this.statusChanges=U.statusChanges.subscribe(()=>pi(this.elementRef)));const re=U.control;re&&["markAsTouched","markAllAsTouched","markAsUntouched","markAsDirty","markAsPristine"].forEach(rt=>{if(typeof re[rt]<"u"){const Ht=re[rt].bind(re);re[rt]=(...Kt)=>{Ht(...Kt),pi(this.elementRef)}}})}}return R=V,(0,c.A)(V,"\u0275fac",function(U){return new(U||R)(ve.rXU(ve.zZn),ve.rXU(ve.aKT))}),(0,c.A)(V,"\u0275dir",ve.FsC({type:R,hostBindings:function(U,re){1&U&&ve.bIt("ionBlur",function(rt){return re._handleBlurEvent(rt.target)})}})),V})();const pi=R=>{Fi(()=>{const V=R.nativeElement,Z=null!=V.value&&V.value.toString().length>0,U=Rt(V);ut(V,U);const re=V.closest("ion-item");re&&ut(re,Z?[...U,"item-has-value"]:U)})},Rt=R=>{const V=R.classList,Z=[];for(let U=0;U{const Z=R.classList;Z.remove("ion-valid","ion-invalid","ion-touched","ion-untouched","ion-dirty","ion-pristine"),Z.add(...V)},Bt=(R,V)=>R.substring(0,V.length)===V;class mn{shouldDetach(V){return!1}shouldAttach(V){return!1}store(V,Z){}retrieve(V){return null}shouldReuseRoute(V,Z){if(V.routeConfig!==Z.routeConfig)return!1;const U=V.params,re=Z.params,Oe=Object.keys(U),rt=Object.keys(re);if(Oe.length!==rt.length)return!1;for(const Ht of Oe)if(re[Ht]!==U[Ht])return!1;return!0}}class ce{constructor(V){(0,c.A)(this,"ctrl",void 0),this.ctrl=V}create(V){return this.ctrl.create(V||{})}dismiss(V,Z,U){return this.ctrl.dismiss(V,Z,U)}getTop(){return this.ctrl.getTop()}}},7863:(Tn,Tt,j)=>{"use strict";j.d(Tt,{hG:()=>gi,U1:()=>Sn,Jm:()=>Jn,b_:()=>At,I9:()=>kt,ME:()=>Jt,tN:()=>br,hU:()=>rn,W9:()=>Wt,lO:()=>li,eU:()=>Yn,iq:()=>Rn,$w:()=>Ri,uz:()=>Zr,Dg:()=>ue,he:()=>pe,nf:()=>xe,oS:()=>pn,MC:()=>Pn,cA:()=>Kn,To:()=>sr,Ki:()=>Fi,Rg:()=>pr,ln:()=>ut,Nm:()=>R,Ip:()=>V,HP:()=>re,BC:()=>Ln,ai:()=>kr,bv:()=>Li,Xi:()=>ir,_t:()=>jr,N7:()=>xr,oY:()=>gr,Je:()=>B,Gw:()=>K});var g=j(9842),c=j(4438),ve=j(4341),Fe=j(3656),Y=j(1635),Ae=j(3726),se=j(177),Je=j(305),Le=(j(9986),j(2725),j(8454),j(3314),j(8607),j(3664)),Ze=j(464),pt=j(5465),ct=j(6002),Pt=(j(8476),j(9672));j(1970),j(6411);var Xe=j(467);const Dt=Le.i,Ot=function(){var S=(0,Xe.A)(function*(q,fe){if(!(typeof window>"u"))return yield Dt(),(0,Pt.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]}]]]]'),fe)});return function(fe,P){return S.apply(this,arguments)}}(),We=["*"],bt=["outletContent"];let B=(()=>{var S;class q extends Fe.fL{constructor(P,me){super(P,me)}_handleChangeEvent(P){this.handleValueChange(P,P.value)}}return S=q,(0,g.A)(q,"\u0275fac",function(P){return new(P||S)(c.rXU(c.zZn),c.rXU(c.aKT))}),(0,g.A)(q,"\u0275dir",c.FsC({type:S,selectors:[["ion-select"],["ion-radio-group"],["ion-segment"],["ion-datetime"]],hostBindings:function(P,me){1&P&&c.bIt("ionChange",function(hr){return me._handleChangeEvent(hr.target)})},features:[c.Jv_([{provide:ve.kq,useExisting:S,multi:!0}]),c.Vt3]})),q})(),K=(()=>{var S;class q extends Fe.fL{constructor(P,me){super(P,me)}_handleInputEvent(P){this.handleValueChange(P,P.value)}}return S=q,(0,g.A)(q,"\u0275fac",function(P){return new(P||S)(c.rXU(c.zZn),c.rXU(c.aKT))}),(0,g.A)(q,"\u0275dir",c.FsC({type:S,selectors:[["ion-input",3,"type","number"],["ion-textarea"],["ion-searchbar"]],hostBindings:function(P,me){1&P&&c.bIt("ionInput",function(hr){return me._handleInputEvent(hr.target)})},features:[c.Jv_([{provide:ve.kq,useExisting:S,multi:!0}]),c.Vt3]})),q})();const ne=(S,q)=>{const fe=S.prototype;q.forEach(P=>{Object.defineProperty(fe,P,{get(){return this.el[P]},set(me){this.z.runOutsideAngular(()=>this.el[P]=me)},configurable:!0})})},oe=(S,q)=>{const fe=S.prototype;q.forEach(P=>{fe[P]=function(){const me=arguments;return this.z.runOutsideAngular(()=>this.el[P].apply(this.el,me))}})},ae=(S,q,fe)=>{fe.forEach(P=>S[P]=(0,Ae.R)(q,P))};function Te(S){return function(fe){const{defineCustomElementFn:P,inputs:me,methods:Ye}=S;return void 0!==P&&P(),me&&ne(fe,me),Ye&&oe(fe,Ye),fe}}let Sn=(()=>{var S;let q=((0,g.A)(S=class{constructor(P,me,Ye){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=Ye,P.detach(),this.el=me.nativeElement}},"\u0275fac",function(P){return new(P||S)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,g.A)(S,"\u0275cmp",c.VBU({type:S,selectors:[["ion-app"]],ngContentSelectors:We,decls:1,vars:0,template:function(P,me){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),S);return q=(0,Y.Cg)([Te({})],q),q})(),Jn=(()=>{var S;let q=((0,g.A)(S=class{constructor(P,me,Ye){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=Ye,P.detach(),this.el=me.nativeElement,ae(this,this.el,["ionFocus","ionBlur"])}},"\u0275fac",function(P){return new(P||S)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,g.A)(S,"\u0275cmp",c.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:We,decls:1,vars:0,template:function(P,me){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),S);return q=(0,Y.Cg)([Te({inputs:["buttonType","color","disabled","download","expand","fill","form","href","mode","rel","routerAnimation","routerDirection","shape","size","strong","target","type"]})],q),q})(),At=(()=>{var S;let q=((0,g.A)(S=class{constructor(P,me,Ye){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=Ye,P.detach(),this.el=me.nativeElement}},"\u0275fac",function(P){return new(P||S)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,g.A)(S,"\u0275cmp",c.VBU({type:S,selectors:[["ion-card"]],inputs:{button:"button",color:"color",disabled:"disabled",download:"download",href:"href",mode:"mode",rel:"rel",routerAnimation:"routerAnimation",routerDirection:"routerDirection",target:"target",type:"type"},ngContentSelectors:We,decls:1,vars:0,template:function(P,me){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),S);return q=(0,Y.Cg)([Te({inputs:["button","color","disabled","download","href","mode","rel","routerAnimation","routerDirection","target","type"]})],q),q})(),kt=(()=>{var S;let q=((0,g.A)(S=class{constructor(P,me,Ye){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=Ye,P.detach(),this.el=me.nativeElement}},"\u0275fac",function(P){return new(P||S)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,g.A)(S,"\u0275cmp",c.VBU({type:S,selectors:[["ion-card-content"]],inputs:{mode:"mode"},ngContentSelectors:We,decls:1,vars:0,template:function(P,me){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),S);return q=(0,Y.Cg)([Te({inputs:["mode"]})],q),q})(),Jt=(()=>{var S;let q=((0,g.A)(S=class{constructor(P,me,Ye){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=Ye,P.detach(),this.el=me.nativeElement}},"\u0275fac",function(P){return new(P||S)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,g.A)(S,"\u0275cmp",c.VBU({type:S,selectors:[["ion-card-header"]],inputs:{color:"color",mode:"mode",translucent:"translucent"},ngContentSelectors:We,decls:1,vars:0,template:function(P,me){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),S);return q=(0,Y.Cg)([Te({inputs:["color","mode","translucent"]})],q),q})(),br=(()=>{var S;let q=((0,g.A)(S=class{constructor(P,me,Ye){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=Ye,P.detach(),this.el=me.nativeElement}},"\u0275fac",function(P){return new(P||S)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,g.A)(S,"\u0275cmp",c.VBU({type:S,selectors:[["ion-card-title"]],inputs:{color:"color",mode:"mode"},ngContentSelectors:We,decls:1,vars:0,template:function(P,me){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),S);return q=(0,Y.Cg)([Te({inputs:["color","mode"]})],q),q})(),rn=(()=>{var S;let q=((0,g.A)(S=class{constructor(P,me,Ye){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=Ye,P.detach(),this.el=me.nativeElement}},"\u0275fac",function(P){return new(P||S)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,g.A)(S,"\u0275cmp",c.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:We,decls:1,vars:0,template:function(P,me){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),S);return q=(0,Y.Cg)([Te({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"]})],q),q})(),Wt=(()=>{var S;let q=((0,g.A)(S=class{constructor(P,me,Ye){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=Ye,P.detach(),this.el=me.nativeElement,ae(this,this.el,["ionScrollStart","ionScroll","ionScrollEnd"])}},"\u0275fac",function(P){return new(P||S)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,g.A)(S,"\u0275cmp",c.VBU({type:S,selectors:[["ion-content"]],inputs:{color:"color",fixedSlotPlacement:"fixedSlotPlacement",forceOverscroll:"forceOverscroll",fullscreen:"fullscreen",scrollEvents:"scrollEvents",scrollX:"scrollX",scrollY:"scrollY"},ngContentSelectors:We,decls:1,vars:0,template:function(P,me){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),S);return q=(0,Y.Cg)([Te({inputs:["color","fixedSlotPlacement","forceOverscroll","fullscreen","scrollEvents","scrollX","scrollY"],methods:["getScrollElement","scrollToTop","scrollToBottom","scrollByPoint","scrollToPoint"]})],q),q})(),li=(()=>{var S;let q=((0,g.A)(S=class{constructor(P,me,Ye){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=Ye,P.detach(),this.el=me.nativeElement}},"\u0275fac",function(P){return new(P||S)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,g.A)(S,"\u0275cmp",c.VBU({type:S,selectors:[["ion-grid"]],inputs:{fixed:"fixed"},ngContentSelectors:We,decls:1,vars:0,template:function(P,me){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),S);return q=(0,Y.Cg)([Te({inputs:["fixed"]})],q),q})(),Yn=(()=>{var S;let q=((0,g.A)(S=class{constructor(P,me,Ye){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=Ye,P.detach(),this.el=me.nativeElement}},"\u0275fac",function(P){return new(P||S)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,g.A)(S,"\u0275cmp",c.VBU({type:S,selectors:[["ion-header"]],inputs:{collapse:"collapse",mode:"mode",translucent:"translucent"},ngContentSelectors:We,decls:1,vars:0,template:function(P,me){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),S);return q=(0,Y.Cg)([Te({inputs:["collapse","mode","translucent"]})],q),q})(),Rn=(()=>{var S;let q=((0,g.A)(S=class{constructor(P,me,Ye){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=Ye,P.detach(),this.el=me.nativeElement}},"\u0275fac",function(P){return new(P||S)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,g.A)(S,"\u0275cmp",c.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:We,decls:1,vars:0,template:function(P,me){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),S);return q=(0,Y.Cg)([Te({inputs:["color","flipRtl","icon","ios","lazy","md","mode","name","sanitize","size","src"]})],q),q})(),Ri=(()=>{var S;let q=((0,g.A)(S=class{constructor(P,me,Ye){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=Ye,P.detach(),this.el=me.nativeElement,ae(this,this.el,["ionInput","ionChange","ionBlur","ionFocus"])}},"\u0275fac",function(P){return new(P||S)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,g.A)(S,"\u0275cmp",c.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:We,decls:1,vars:0,template:function(P,me){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),S);return q=(0,Y.Cg)([Te({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"]})],q),q})(),Zr=(()=>{var S;let q=((0,g.A)(S=class{constructor(P,me,Ye){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=Ye,P.detach(),this.el=me.nativeElement}},"\u0275fac",function(P){return new(P||S)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,g.A)(S,"\u0275cmp",c.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:We,decls:1,vars:0,template:function(P,me){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),S);return q=(0,Y.Cg)([Te({inputs:["button","color","detail","detailIcon","disabled","download","href","lines","mode","rel","routerAnimation","routerDirection","target","type"]})],q),q})(),ue=(()=>{var S;let q=((0,g.A)(S=class{constructor(P,me,Ye){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=Ye,P.detach(),this.el=me.nativeElement}},"\u0275fac",function(P){return new(P||S)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,g.A)(S,"\u0275cmp",c.VBU({type:S,selectors:[["ion-item-divider"]],inputs:{color:"color",mode:"mode",sticky:"sticky"},ngContentSelectors:We,decls:1,vars:0,template:function(P,me){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),S);return q=(0,Y.Cg)([Te({inputs:["color","mode","sticky"]})],q),q})(),pe=(()=>{var S;let q=((0,g.A)(S=class{constructor(P,me,Ye){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=Ye,P.detach(),this.el=me.nativeElement}},"\u0275fac",function(P){return new(P||S)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,g.A)(S,"\u0275cmp",c.VBU({type:S,selectors:[["ion-label"]],inputs:{color:"color",mode:"mode",position:"position"},ngContentSelectors:We,decls:1,vars:0,template:function(P,me){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),S);return q=(0,Y.Cg)([Te({inputs:["color","mode","position"]})],q),q})(),xe=(()=>{var S;let q=((0,g.A)(S=class{constructor(P,me,Ye){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=Ye,P.detach(),this.el=me.nativeElement}},"\u0275fac",function(P){return new(P||S)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,g.A)(S,"\u0275cmp",c.VBU({type:S,selectors:[["ion-list"]],inputs:{inset:"inset",lines:"lines",mode:"mode"},ngContentSelectors:We,decls:1,vars:0,template:function(P,me){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),S);return q=(0,Y.Cg)([Te({inputs:["inset","lines","mode"],methods:["closeSlidingItems"]})],q),q})(),pn=(()=>{var S;let q=((0,g.A)(S=class{constructor(P,me,Ye){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=Ye,P.detach(),this.el=me.nativeElement,ae(this,this.el,["ionWillOpen","ionWillClose","ionDidOpen","ionDidClose"])}},"\u0275fac",function(P){return new(P||S)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,g.A)(S,"\u0275cmp",c.VBU({type:S,selectors:[["ion-menu"]],inputs:{contentId:"contentId",disabled:"disabled",maxEdgeStart:"maxEdgeStart",menuId:"menuId",side:"side",swipeGesture:"swipeGesture",type:"type"},ngContentSelectors:We,decls:1,vars:0,template:function(P,me){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),S);return q=(0,Y.Cg)([Te({inputs:["contentId","disabled","maxEdgeStart","menuId","side","swipeGesture","type"],methods:["isOpen","isActive","open","close","toggle","setOpen"]})],q),q})(),Pn=(()=>{var S;let q=((0,g.A)(S=class{constructor(P,me,Ye){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=Ye,P.detach(),this.el=me.nativeElement}},"\u0275fac",function(P){return new(P||S)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,g.A)(S,"\u0275cmp",c.VBU({type:S,selectors:[["ion-menu-button"]],inputs:{autoHide:"autoHide",color:"color",disabled:"disabled",menu:"menu",mode:"mode",type:"type"},ngContentSelectors:We,decls:1,vars:0,template:function(P,me){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),S);return q=(0,Y.Cg)([Te({inputs:["autoHide","color","disabled","menu","mode","type"]})],q),q})(),Kn=(()=>{var S;let q=((0,g.A)(S=class{constructor(P,me,Ye){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=Ye,P.detach(),this.el=me.nativeElement}},"\u0275fac",function(P){return new(P||S)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,g.A)(S,"\u0275cmp",c.VBU({type:S,selectors:[["ion-menu-toggle"]],inputs:{autoHide:"autoHide",menu:"menu"},ngContentSelectors:We,decls:1,vars:0,template:function(P,me){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),S);return q=(0,Y.Cg)([Te({inputs:["autoHide","menu"]})],q),q})(),sr=(()=>{var S;let q=((0,g.A)(S=class{constructor(P,me,Ye){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=Ye,P.detach(),this.el=me.nativeElement,ae(this,this.el,["ionRefresh","ionPull","ionStart"])}},"\u0275fac",function(P){return new(P||S)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,g.A)(S,"\u0275cmp",c.VBU({type:S,selectors:[["ion-refresher"]],inputs:{closeDuration:"closeDuration",disabled:"disabled",mode:"mode",pullFactor:"pullFactor",pullMax:"pullMax",pullMin:"pullMin",snapbackDuration:"snapbackDuration"},ngContentSelectors:We,decls:1,vars:0,template:function(P,me){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),S);return q=(0,Y.Cg)([Te({inputs:["closeDuration","disabled","mode","pullFactor","pullMax","pullMin","snapbackDuration"],methods:["complete","cancel","getProgress"]})],q),q})(),Fi=(()=>{var S;let q=((0,g.A)(S=class{constructor(P,me,Ye){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=Ye,P.detach(),this.el=me.nativeElement}},"\u0275fac",function(P){return new(P||S)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,g.A)(S,"\u0275cmp",c.VBU({type:S,selectors:[["ion-refresher-content"]],inputs:{pullingIcon:"pullingIcon",pullingText:"pullingText",refreshingSpinner:"refreshingSpinner",refreshingText:"refreshingText"},ngContentSelectors:We,decls:1,vars:0,template:function(P,me){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),S);return q=(0,Y.Cg)([Te({inputs:["pullingIcon","pullingText","refreshingSpinner","refreshingText"]})],q),q})(),ut=(()=>{var S;let q=((0,g.A)(S=class{constructor(P,me,Ye){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=Ye,P.detach(),this.el=me.nativeElement}},"\u0275fac",function(P){return new(P||S)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,g.A)(S,"\u0275cmp",c.VBU({type:S,selectors:[["ion-row"]],ngContentSelectors:We,decls:1,vars:0,template:function(P,me){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),S);return q=(0,Y.Cg)([Te({})],q),q})(),R=(()=>{var S;let q=((0,g.A)(S=class{constructor(P,me,Ye){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=Ye,P.detach(),this.el=me.nativeElement,ae(this,this.el,["ionChange","ionCancel","ionDismiss","ionFocus","ionBlur"])}},"\u0275fac",function(P){return new(P||S)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,g.A)(S,"\u0275cmp",c.VBU({type:S,selectors:[["ion-select"]],inputs:{cancelText:"cancelText",color:"color",compareWith:"compareWith",disabled:"disabled",expandedIcon:"expandedIcon",fill:"fill",interface:"interface",interfaceOptions:"interfaceOptions",justify:"justify",label:"label",labelPlacement:"labelPlacement",mode:"mode",multiple:"multiple",name:"name",okText:"okText",placeholder:"placeholder",selectedText:"selectedText",shape:"shape",toggleIcon:"toggleIcon",value:"value"},ngContentSelectors:We,decls:1,vars:0,template:function(P,me){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),S);return q=(0,Y.Cg)([Te({inputs:["cancelText","color","compareWith","disabled","expandedIcon","fill","interface","interfaceOptions","justify","label","labelPlacement","mode","multiple","name","okText","placeholder","selectedText","shape","toggleIcon","value"],methods:["open"]})],q),q})(),V=(()=>{var S;let q=((0,g.A)(S=class{constructor(P,me,Ye){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=Ye,P.detach(),this.el=me.nativeElement}},"\u0275fac",function(P){return new(P||S)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,g.A)(S,"\u0275cmp",c.VBU({type:S,selectors:[["ion-select-option"]],inputs:{disabled:"disabled",value:"value"},ngContentSelectors:We,decls:1,vars:0,template:function(P,me){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),S);return q=(0,Y.Cg)([Te({inputs:["disabled","value"]})],q),q})(),re=(()=>{var S;let q=((0,g.A)(S=class{constructor(P,me,Ye){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=Ye,P.detach(),this.el=me.nativeElement,ae(this,this.el,["ionSplitPaneVisible"])}},"\u0275fac",function(P){return new(P||S)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,g.A)(S,"\u0275cmp",c.VBU({type:S,selectors:[["ion-split-pane"]],inputs:{contentId:"contentId",disabled:"disabled",when:"when"},ngContentSelectors:We,decls:1,vars:0,template:function(P,me){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),S);return q=(0,Y.Cg)([Te({inputs:["contentId","disabled","when"]})],q),q})(),Ln=(()=>{var S;let q=((0,g.A)(S=class{constructor(P,me,Ye){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=Ye,P.detach(),this.el=me.nativeElement}},"\u0275fac",function(P){return new(P||S)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,g.A)(S,"\u0275cmp",c.VBU({type:S,selectors:[["ion-title"]],inputs:{color:"color",size:"size"},ngContentSelectors:We,decls:1,vars:0,template:function(P,me){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),S);return q=(0,Y.Cg)([Te({inputs:["color","size"]})],q),q})(),kr=(()=>{var S;let q=((0,g.A)(S=class{constructor(P,me,Ye){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=Ye,P.detach(),this.el=me.nativeElement}},"\u0275fac",function(P){return new(P||S)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,g.A)(S,"\u0275cmp",c.VBU({type:S,selectors:[["ion-toolbar"]],inputs:{color:"color",mode:"mode"},ngContentSelectors:We,decls:1,vars:0,template:function(P,me){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),S);return q=(0,Y.Cg)([Te({inputs:["color","mode"]})],q),q})(),pr=(()=>{var S;class q extends Fe.Rg{constructor(P,me,Ye,hr,yi,H,ie,De){super(P,me,Ye,hr,yi,H,ie,De),(0,g.A)(this,"parentOutlet",void 0),(0,g.A)(this,"outletContent",void 0),this.parentOutlet=De}}return S=q,(0,g.A)(q,"\u0275fac",function(P){return new(P||S)(c.kS0("name"),c.kS0("tabs"),c.rXU(se.aZ),c.rXU(c.aKT),c.rXU(Je.Ix),c.rXU(c.SKi),c.rXU(Je.nX),c.rXU(S,12))}),(0,g.A)(q,"\u0275cmp",c.VBU({type:S,selectors:[["ion-router-outlet"]],viewQuery:function(P,me){if(1&P&&c.GBs(bt,7,c.c1b),2&P){let Ye;c.mGM(Ye=c.lsd())&&(me.outletContent=Ye.first)}},features:[c.Vt3],ngContentSelectors:We,decls:3,vars:0,consts:[["outletContent",""]],template:function(P,me){1&P&&(c.NAR(),c.qex(0,null,0),c.SdG(2),c.bVm())},encapsulation:2})),q})(),xr=(()=>{var S;class q extends Fe.CE{}return S=q,(0,g.A)(q,"\u0275fac",(()=>{let fe;return function(me){return(fe||(fe=c.xGo(S)))(me||S)}})()),(0,g.A)(q,"\u0275dir",c.FsC({type:S,selectors:[["","routerLink","",5,"a",5,"area"]],features:[c.Vt3]})),q})(),gr=(()=>{var S;class q extends Fe.pF{}return S=q,(0,g.A)(q,"\u0275fac",(()=>{let fe;return function(me){return(fe||(fe=c.xGo(S)))(me||S)}})()),(0,g.A)(q,"\u0275dir",c.FsC({type:S,selectors:[["a","routerLink",""],["area","routerLink",""]],features:[c.Vt3]})),q})();const xn={provide:ve.cz,useExisting:(0,c.Rfq)(()=>kn),multi:!0};let kn=(()=>{var S;class q extends ve.zX{}return S=q,(0,g.A)(q,"\u0275fac",(()=>{let fe;return function(me){return(fe||(fe=c.xGo(S)))(me||S)}})()),(0,g.A)(q,"\u0275dir",c.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(P,me){2&P&&c.BMQ("max",me._enabled?me.max:null)},features:[c.Jv_([xn]),c.Vt3]})),q})();const _o={provide:ve.cz,useExisting:(0,c.Rfq)(()=>ni),multi:!0};let ni=(()=>{var S;class q extends ve.VZ{}return S=q,(0,g.A)(q,"\u0275fac",(()=>{let fe;return function(me){return(fe||(fe=c.xGo(S)))(me||S)}})()),(0,g.A)(q,"\u0275dir",c.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(P,me){2&P&&c.BMQ("min",me._enabled?me.min:null)},features:[c.Jv_([_o]),c.Vt3]})),q})(),gi=(()=>{var S;class q extends Fe.Kb{constructor(){super(ct.a)}}return S=q,(0,g.A)(q,"\u0275fac",function(P){return new(P||S)}),(0,g.A)(q,"\u0275prov",c.jDH({token:S,factory:S.\u0275fac,providedIn:"root"})),q})(),ir=(()=>{var S;class q extends Fe.Kb{constructor(){super(ct.l)}}return S=q,(0,g.A)(q,"\u0275fac",function(P){return new(P||S)}),(0,g.A)(q,"\u0275prov",c.jDH({token:S,factory:S.\u0275fac,providedIn:"root"})),q})(),jr=(()=>{var S;class q extends Fe._t{constructor(){super(pt.m)}}return S=q,(0,g.A)(q,"\u0275fac",function(P){return new(P||S)}),(0,g.A)(q,"\u0275prov",c.jDH({token:S,factory:S.\u0275fac,providedIn:"root"})),q})(),vi=(()=>{var S;class q extends Fe.Kb{constructor(){super(ct.m),(0,g.A)(this,"angularDelegate",(0,c.WQX)(Fe.Yq)),(0,g.A)(this,"injector",(0,c.WQX)(c.zZn)),(0,g.A)(this,"environmentInjector",(0,c.WQX)(c.uvJ))}create(P){return super.create({...P,delegate:this.angularDelegate.create(this.environmentInjector,this.injector,"modal")})}}return S=q,(0,g.A)(q,"\u0275fac",function(P){return new(P||S)}),(0,g.A)(q,"\u0275prov",c.jDH({token:S,factory:S.\u0275fac})),q})();class Lo extends Fe.Kb{constructor(){super(ct.c),(0,g.A)(this,"angularDelegate",(0,c.WQX)(Fe.Yq)),(0,g.A)(this,"injector",(0,c.WQX)(c.zZn)),(0,g.A)(this,"environmentInjector",(0,c.WQX)(c.uvJ))}create(q){return super.create({...q,delegate:this.angularDelegate.create(this.environmentInjector,this.injector,"popover")})}}const Do=(S,q,fe)=>()=>{const P=q.defaultView;if(P&&typeof window<"u"){(0,Ze.s)({...S,_zoneGate:Ye=>fe.run(Ye)});const me="__zone_symbol__addEventListener"in q.body?"__zone_symbol__addEventListener":"addEventListener";return function Ge(){var S=[];if(typeof window<"u"){var q=window;(!q.customElements||q.Element&&(!q.Element.prototype.closest||!q.Element.prototype.matches||!q.Element.prototype.remove||!q.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||q.NodeList&&!q.NodeList.prototype.forEach||!q.fetch||!function(){try{var P=new URL("b","http://a");return P.pathname="c%20d","http://a/c%20d"===P.href&&P.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(P,{exclude:["ion-tabs","ion-tab"],syncQueue:!0,raf:Fe.er,jmp:Ye=>fe.runOutsideAngular(Ye),ael(Ye,hr,yi,H){Ye[me](hr,yi,H)},rel(Ye,hr,yi,H){Ye.removeEventListener(hr,yi,H)}}))}};let Li=(()=>{var S;class q{static forRoot(P={}){return{ngModule:q,providers:[{provide:Fe.sR,useValue:P},{provide:c.hnV,useFactory:Do,multi:!0,deps:[Fe.sR,se.qQ,c.SKi]},Fe.Yq,(0,Fe.YV)()]}}}return S=q,(0,g.A)(q,"\u0275fac",function(P){return new(P||S)}),(0,g.A)(q,"\u0275mod",c.$C({type:S})),(0,g.A)(q,"\u0275inj",c.G2t({providers:[vi,Lo],imports:[se.MD]})),q})()},2214:(Tn,Tt,j)=>{"use strict";j.d(Tt,{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:(Tn,Tt,j)=>{"use strict";function g(ve,Fe,Y,Ae,se,Je,et){try{var be=ve[Je](et),Ee=be.value}catch(Ve){return void Y(Ve)}be.done?Fe(Ee):Promise.resolve(Ee).then(Ae,se)}function c(ve){return function(){var Fe=this,Y=arguments;return new Promise(function(Ae,se){var Je=ve.apply(Fe,Y);function et(Ee){g(Je,Ae,se,et,be,"next",Ee)}function be(Ee){g(Je,Ae,se,et,be,"throw",Ee)}et(void 0)})}}j.d(Tt,{A:()=>c})},9842:(Tn,Tt,j)=>{"use strict";function g(Y){return(g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(Ae){return typeof Ae}:function(Ae){return Ae&&"function"==typeof Symbol&&Ae.constructor===Symbol&&Ae!==Symbol.prototype?"symbol":typeof Ae})(Y)}function Fe(Y,Ae,se){return(Ae=function ve(Y){var Ae=function c(Y,Ae){if("object"!=g(Y)||!Y)return Y;var se=Y[Symbol.toPrimitive];if(void 0!==se){var Je=se.call(Y,Ae||"default");if("object"!=g(Je))return Je;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===Ae?String:Number)(Y)}(Y,"string");return"symbol"==g(Ae)?Ae:String(Ae)}(Ae))in Y?Object.defineProperty(Y,Ae,{value:se,enumerable:!0,configurable:!0,writable:!0}):Y[Ae]=se,Y}j.d(Tt,{A:()=>Fe})},1635:(Tn,Tt,j)=>{"use strict";function Fe(B,K){var ne={};for(var oe in B)Object.prototype.hasOwnProperty.call(B,oe)&&K.indexOf(oe)<0&&(ne[oe]=B[oe]);if(null!=B&&"function"==typeof Object.getOwnPropertySymbols){var ae=0;for(oe=Object.getOwnPropertySymbols(B);ae=0;ft--)(Te=B[ft])&&(ye=(ae<3?Te(ye):ae>3?Te(K,ne,ye):Te(K,ne))||ye);return ae>3&&ye&&Object.defineProperty(K,ne,ye),ye}function Ve(B,K,ne,oe){return new(ne||(ne=Promise))(function(ye,Te){function ft(vn){try{jt(oe.next(vn))}catch(Sn){Te(Sn)}}function Nt(vn){try{jt(oe.throw(vn))}catch(Sn){Te(Sn)}}function jt(vn){vn.done?ye(vn.value):function ae(ye){return ye instanceof ne?ye:new ne(function(Te){Te(ye)})}(vn.value).then(ft,Nt)}jt((oe=oe.apply(B,K||[])).next())})}function vt(B){return this instanceof vt?(this.v=B,this):new vt(B)}function Re(B,K,ne){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var ae,oe=ne.apply(B,K||[]),ye=[];return ae={},Te("next"),Te("throw"),Te("return"),ae[Symbol.asyncIterator]=function(){return this},ae;function Te(jn){oe[jn]&&(ae[jn]=function(Xn){return new Promise(function(Qn,En){ye.push([jn,Xn,Qn,En])>1||ft(jn,Xn)})})}function ft(jn,Xn){try{!function Nt(jn){jn.value instanceof vt?Promise.resolve(jn.value.v).then(jt,vn):Sn(ye[0][2],jn)}(oe[jn](Xn))}catch(Qn){Sn(ye[0][3],Qn)}}function jt(jn){ft("next",jn)}function vn(jn){ft("throw",jn)}function Sn(jn,Xn){jn(Xn),ye.shift(),ye.length&&ft(ye[0][0],ye[0][1])}}function Xe(B){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var ne,K=B[Symbol.asyncIterator];return K?K.call(B):(B=function pt(B){var K="function"==typeof Symbol&&Symbol.iterator,ne=K&&B[K],oe=0;if(ne)return ne.call(B);if(B&&"number"==typeof B.length)return{next:function(){return B&&oe>=B.length&&(B=void 0),{value:B&&B[oe++],done:!B}}};throw new TypeError(K?"Object is not iterable.":"Symbol.iterator is not defined.")}(B),ne={},oe("next"),oe("throw"),oe("return"),ne[Symbol.asyncIterator]=function(){return this},ne);function oe(ye){ne[ye]=B[ye]&&function(Te){return new Promise(function(ft,Nt){!function ae(ye,Te,ft,Nt){Promise.resolve(Nt).then(function(jt){ye({value:jt,done:ft})},Te)}(ft,Nt,(Te=B[ye](Te)).done,Te.value)})}}}j.d(Tt,{AQ:()=>Re,Cg:()=>Y,N3:()=>vt,Tt:()=>Fe,sH:()=>Ve,xN:()=>Xe}),"function"==typeof SuppressedError&&SuppressedError}},Tn=>{Tn(Tn.s=63)}]); \ No newline at end of file diff --git a/www/runtime.05bfb1e8a5b05f1e.js b/www/runtime.05bfb1e8a5b05f1e.js deleted file mode 100644 index 2a744d5..0000000 --- a/www/runtime.05bfb1e8a5b05f1e.js +++ /dev/null @@ -1 +0,0 @@ -(()=>{"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].call(a.exports,a,a.exports,f),a.exports}f.m=v,e=[],f.O=(r,a,c,b)=>{if(!a){var t=1/0;for(d=0;d=b)&&Object.keys(f.O).every(p=>f.O[p](a[n]))?a.splice(n--,1):(l=!1,b0&&e[d-1][2]>b;d--)e[d]=e[d-1];e[d]=[a,c,b]},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,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 b=Object.create(null);f.r(b);var d={};r=r||[null,e({}),e([]),e(e)];for(var t=2&c&&a;"object"==typeof t&&!~r.indexOf(t);t=e(t))Object.getOwnPropertyNames(t).forEach(l=>d[l]=()=>a[l]);return d.default=()=>a,f.d(b,d),b}})(),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)+"."+{246:"40c5b07bd0aaa622",441:"c8d135e5d56e5723",839:"bc5a14a8b82682d9",964:"466b88054b5c618c",1049:"7ef232095c56e4df",1102:"010dfe13f6ca7e15",1293:"ee80f2d33790618d",1459:"32c41a59c0fd4cf1",1577:"f6f558490ff910b3",1956:"bf40c06794b2530b",2075:"1971ba880d06cc30",2076:"12c32b694becf860",2144:"5d46fa3641b801f2",2348:"12b471577685ffbe",2375:"efb0d99d1467ed67",2415:"dddee43f1c9b92e7",2560:"f34ba2c5e85b55c8",2885:"d64fa10bd441cbc8",3118:"0ec5c24326aec8ca",3162:"825364e1635b086f",3506:"899dcc5e5d913023",3511:"16739e7034875331",3814:"4f667f072e44b4e7",3825:"24edfec633e52faa",3998:"f4d3bcdbaf38f0e8",4171:"f5bc55c1acb0f5c1",4183:"0d54a4cc8cbc3a61",4406:"03b087c2d77cb960",4463:"ce74c63a27a7a872",4591:"7a48c0cf9464e62b",4699:"01733b3942afbe92",4867:"17817bc208c2836c",5100:"659224ed1f94442c",5197:"cfc60de4c5213fec",5222:"9cbea5f62b0fb679",5712:"a9a2db8da6f1a8cd",5887:"708ea3877f30ffcd",5949:"2ed93c457aa1e9fb",6024:"3c02ab7fe82fedfe",6433:"26eeba8bb230b119",6521:"3c5b756783b6739a",6688:"617c2a0e9b68bddb",6840:"fd32dada9c8ec44e",6927:"bf1f05e74d90a79e",7030:"f2a9bf080bedfc5b",7076:"2b7ea8b1f54f4458",7179:"80391eb100990080",7240:"680a87741a5535b1",7278:"bf542500b6fca113",7356:"911eacb1ce959b5e",7372:"4ea07cfe7eb821be",7428:"cb325b96b92ea4c2",7444:"e86874e705e7f74c",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,c,b,d)=>{if(e[a])e[a].push(c);else{var t,l;if(void 0!==b)for(var n=document.getElementsByTagName("script"),i=0;i{t.onerror=t.onload=null,clearTimeout(u);var y=e[a];if(delete e[a],t.parentNode&&t.parentNode.removeChild(t),y&&y.forEach(_=>_(p)),m)return m(p)},u=setTimeout(s.bind(null,void 0,{type:"timeout",target:t}),12e4);t.onerror=s.bind(null,t.onerror),t.onload=s.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=(c,b)=>{var d=f.o(e,c)?e[c]:void 0;if(0!==d)if(d)b.push(d[2]);else if(9121!=c){var t=new Promise((o,s)=>d=e[c]=[o,s]);b.push(d[2]=t);var l=f.p+f.u(c),n=new Error;f.l(l,o=>{if(f.o(e,c)&&(0!==(d=e[c])&&(e[c]=void 0),d)){var s=o&&("load"===o.type?"missing":o.type),u=o&&o.target&&o.target.src;n.message="Loading chunk "+c+" failed.\n("+s+": "+u+")",n.name="ChunkLoadError",n.type=s,n.request=u,d[1](n)}},"chunk-"+c,c)}else e[c]=0},f.O.j=c=>0===e[c];var r=(c,b)=>{var n,i,[d,t,l]=b,o=0;if(d.some(u=>0!==e[u])){for(n in t)f.o(t,n)&&(f.m[n]=t[n]);if(l)var s=l(f)}for(c&&c(b);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}.leaflet-pane,.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-tile-container,.leaflet-pane>svg,.leaflet-pane>canvas,.leaflet-zoom-box,.leaflet-image-layer,.leaflet-layer{position:absolute;left:0;top:0}.leaflet-container{overflow:hidden}.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow{-webkit-user-select:none;user-select:none;-webkit-user-drag:none}.leaflet-tile::selection{background:transparent}.leaflet-safari .leaflet-tile{image-rendering:-webkit-optimize-contrast}.leaflet-safari .leaflet-tile-container{width:1600px;height:1600px;-webkit-transform-origin:0 0}.leaflet-marker-icon,.leaflet-marker-shadow{display:block}.leaflet-container .leaflet-overlay-pane svg{max-width:none!important;max-height:none!important}.leaflet-container .leaflet-marker-pane img,.leaflet-container .leaflet-shadow-pane img,.leaflet-container .leaflet-tile-pane img,.leaflet-container img.leaflet-image-layer,.leaflet-container .leaflet-tile{max-width:none!important;max-height:none!important;width:auto;padding:0}.leaflet-container img.leaflet-tile{mix-blend-mode:plus-lighter}.leaflet-container.leaflet-touch-zoom{touch-action:pan-x pan-y}.leaflet-container.leaflet-touch-drag{touch-action:none;touch-action:pinch-zoom}.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom{touch-action:none}.leaflet-container{-webkit-tap-highlight-color:transparent}.leaflet-container a{-webkit-tap-highlight-color:rgba(51,181,229,.4)}.leaflet-tile{filter:inherit;visibility:hidden}.leaflet-tile-loaded{visibility:inherit}.leaflet-zoom-box{width:0;height:0;box-sizing:border-box;z-index:800}.leaflet-overlay-pane svg{-moz-user-select:none}.leaflet-pane{z-index:400}.leaflet-tile-pane{z-index:200}.leaflet-overlay-pane{z-index:400}.leaflet-shadow-pane{z-index:500}.leaflet-marker-pane{z-index:600}.leaflet-tooltip-pane{z-index:650}.leaflet-popup-pane{z-index:700}.leaflet-map-pane canvas{z-index:100}.leaflet-map-pane svg{z-index:200}.leaflet-vml-shape{width:1px;height:1px}.lvml{behavior:url(#default#VML);display:inline-block;position:absolute}.leaflet-control{position:relative;z-index:800;pointer-events:visiblePainted;pointer-events:auto}.leaflet-top,.leaflet-bottom{position:absolute;z-index:1000;pointer-events:none}.leaflet-top{top:0}.leaflet-right{right:0}.leaflet-bottom{bottom:0}.leaflet-left{left:0}.leaflet-control{float:left;clear:both}.leaflet-right .leaflet-control{float:right}.leaflet-top .leaflet-control{margin-top:10px}.leaflet-bottom .leaflet-control{margin-bottom:10px}.leaflet-left .leaflet-control{margin-left:10px}.leaflet-right .leaflet-control{margin-right:10px}.leaflet-fade-anim .leaflet-popup{opacity:0;transition:opacity .2s linear}.leaflet-fade-anim .leaflet-map-pane .leaflet-popup{opacity:1}.leaflet-zoom-animated{transform-origin:0 0}svg.leaflet-zoom-animated{will-change:transform}.leaflet-zoom-anim .leaflet-zoom-animated{transition:transform .25s cubic-bezier(0,0,.25,1)}.leaflet-zoom-anim .leaflet-tile,.leaflet-pan-anim .leaflet-tile{transition:none}.leaflet-zoom-anim .leaflet-zoom-hide{visibility:hidden}.leaflet-interactive{cursor:pointer}.leaflet-grab{cursor:grab}.leaflet-crosshair,.leaflet-crosshair .leaflet-interactive{cursor:crosshair}.leaflet-popup-pane,.leaflet-control{cursor:auto}.leaflet-dragging .leaflet-grab,.leaflet-dragging .leaflet-grab .leaflet-interactive,.leaflet-dragging .leaflet-marker-draggable{cursor:move;cursor:grabbing}.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-image-layer,.leaflet-pane>svg path,.leaflet-tile-container{pointer-events:none}.leaflet-marker-icon.leaflet-interactive,.leaflet-image-layer.leaflet-interactive,.leaflet-pane>svg path.leaflet-interactive,svg.leaflet-image-layer.leaflet-interactive path{pointer-events:visiblePainted;pointer-events:auto}.leaflet-container{background:#ddd;outline-offset:1px}.leaflet-container a{color:#0078a8}.leaflet-zoom-box{border:2px dotted #38f;background:#ffffff80}.leaflet-container{font-family:Helvetica Neue,Arial,Helvetica,sans-serif;font-size:12px;font-size:.75rem;line-height:1.5}.leaflet-bar{box-shadow:0 1px 5px #000000a6;border-radius:4px}.leaflet-bar a{background-color:#fff;border-bottom:1px solid #ccc;width:26px;height:26px;line-height:26px;display:block;text-align:center;text-decoration:none;color:#000}.leaflet-bar a,.leaflet-control-layers-toggle{background-position:50% 50%;background-repeat:no-repeat;display:block}.leaflet-bar a:hover,.leaflet-bar a:focus{background-color:#f4f4f4}.leaflet-bar a:first-child{border-top-left-radius:4px;border-top-right-radius:4px}.leaflet-bar a:last-child{border-bottom-left-radius:4px;border-bottom-right-radius:4px;border-bottom:none}.leaflet-bar a.leaflet-disabled{cursor:default;background-color:#f4f4f4;color:#bbb}.leaflet-touch .leaflet-bar a{width:30px;height:30px;line-height:30px}.leaflet-touch .leaflet-bar a:first-child{border-top-left-radius:2px;border-top-right-radius:2px}.leaflet-touch .leaflet-bar a:last-child{border-bottom-left-radius:2px;border-bottom-right-radius:2px}.leaflet-control-zoom-in,.leaflet-control-zoom-out{font:700 18px Lucida Console,Monaco,monospace;text-indent:1px}.leaflet-touch .leaflet-control-zoom-in,.leaflet-touch .leaflet-control-zoom-out{font-size:22px}.leaflet-control-layers{box-shadow:0 1px 5px #0006;background:#fff;border-radius:5px}.leaflet-control-layers-toggle{background-image:url(layers.ef6db8722c2c3f9a.png);width:36px;height:36px}.leaflet-retina .leaflet-control-layers-toggle{background-image:url(layers-2x.9859cd1231006a4a.png);background-size:26px 26px}.leaflet-touch .leaflet-control-layers-toggle{width:44px;height:44px}.leaflet-control-layers .leaflet-control-layers-list,.leaflet-control-layers-expanded .leaflet-control-layers-toggle{display:none}.leaflet-control-layers-expanded .leaflet-control-layers-list{display:block;position:relative}.leaflet-control-layers-expanded{padding:6px 10px 6px 6px;color:#333;background:#fff}.leaflet-control-layers-scrollbar{overflow-y:scroll;overflow-x:hidden;padding-right:5px}.leaflet-control-layers-selector{margin-top:2px;position:relative;top:1px}.leaflet-control-layers label{display:block;font-size:13px;font-size:1.08333em}.leaflet-control-layers-separator{height:0;border-top:1px solid #ddd;margin:5px -10px 5px -6px}.leaflet-default-icon-path{background-image:url(marker-icon.d577052aa271e13f.png)}.leaflet-container .leaflet-control-attribution{background:#fff;background:#fffc;margin:0}.leaflet-control-attribution,.leaflet-control-scale-line{padding:0 5px;color:#333;line-height:1.4}.leaflet-control-attribution a{text-decoration:none}.leaflet-control-attribution a:hover,.leaflet-control-attribution a:focus{text-decoration:underline}.leaflet-attribution-flag{display:inline!important;vertical-align:baseline!important;width:1em;height:.6669em}.leaflet-left .leaflet-control-scale{margin-left:5px}.leaflet-bottom .leaflet-control-scale{margin-bottom:5px}.leaflet-control-scale-line{border:2px solid #777;border-top:none;line-height:1.1;padding:2px 5px 1px;white-space:nowrap;box-sizing:border-box;background:#fffc;text-shadow:1px 1px #fff}.leaflet-control-scale-line:not(:first-child){border-top:2px solid #777;border-bottom:none;margin-top:-2px}.leaflet-control-scale-line:not(:first-child):not(:last-child){border-bottom:2px solid #777}.leaflet-touch .leaflet-control-attribution,.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{box-shadow:none}.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{border:2px solid rgba(0,0,0,.2);background-clip:padding-box}.leaflet-popup{position:absolute;text-align:center;margin-bottom:20px}.leaflet-popup-content-wrapper{padding:1px;text-align:left;border-radius:12px}.leaflet-popup-content{margin:13px 24px 13px 20px;line-height:1.3;font-size:13px;font-size:1.08333em;min-height:1px}.leaflet-popup-content p{margin:1.3em 0}.leaflet-popup-tip-container{width:40px;height:20px;position:absolute;left:50%;margin-top:-1px;margin-left:-20px;overflow:hidden;pointer-events:none}.leaflet-popup-tip{width:17px;height:17px;padding:1px;margin:-10px auto 0;pointer-events:auto;transform:rotate(45deg)}.leaflet-popup-content-wrapper,.leaflet-popup-tip{background:#fff;color:#333;box-shadow:0 3px 14px #0006}.leaflet-container a.leaflet-popup-close-button{position:absolute;top:0;right:0;border:none;text-align:center;width:24px;height:24px;font:16px/24px Tahoma,Verdana,sans-serif;color:#757575;text-decoration:none;background:transparent}.leaflet-container a.leaflet-popup-close-button:hover,.leaflet-container a.leaflet-popup-close-button:focus{color:#585858}.leaflet-popup-scrolled{overflow:auto}.leaflet-oldie .leaflet-popup-content-wrapper{-ms-zoom:1}.leaflet-oldie .leaflet-popup-tip{width:24px;margin:0 auto;-ms-filter:"progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";filter:progid:DXImageTransform.Microsoft.Matrix(M11=.70710678,M12=.70710678,M21=-.70710678,M22=.70710678)}.leaflet-oldie .leaflet-control-zoom,.leaflet-oldie .leaflet-control-layers,.leaflet-oldie .leaflet-popup-content-wrapper,.leaflet-oldie .leaflet-popup-tip{border:1px solid #999}.leaflet-div-icon{background:#fff;border:1px solid #666}.leaflet-tooltip{position:absolute;padding:6px;background-color:#fff;border:1px solid #fff;border-radius:3px;color:#222;white-space:nowrap;-webkit-user-select:none;user-select:none;pointer-events:none;box-shadow:0 1px 3px #0006}.leaflet-tooltip.leaflet-interactive{cursor:pointer;pointer-events:auto}.leaflet-tooltip-top:before,.leaflet-tooltip-bottom:before,.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{position:absolute;pointer-events:none;border:6px solid transparent;background:transparent;content:""}.leaflet-tooltip-bottom{margin-top:6px}.leaflet-tooltip-top{margin-top:-6px}.leaflet-tooltip-bottom:before,.leaflet-tooltip-top:before{left:50%;margin-left:-6px}.leaflet-tooltip-top:before{bottom:0;margin-bottom:-12px;border-top-color:#fff}.leaflet-tooltip-bottom:before{top:0;margin-top:-12px;margin-left:-6px;border-bottom-color:#fff}.leaflet-tooltip-left{margin-left:-6px}.leaflet-tooltip-right{margin-left:6px}.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{top:50%;margin-top:-6px}.leaflet-tooltip-left:before{right:0;margin-right:-12px;border-left-color:#fff}.leaflet-tooltip-right:before{left:0;margin-left:-12px;border-right-color:#fff}@media print{.leaflet-control{-webkit-print-color-adjust:exact;color-adjust:exact;print-color-adjust:exact}}*,: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}}.visible{visibility:visible}.fixed{position:fixed}.m-2{margin:.5rem}.m-4{margin:1rem}.m-6{margin:1.5rem}.mb-6{margin-bottom:1.5rem}.mt-auto{margin-top:auto}.flex{display:flex}.grid{display:grid}.h-48{height:12rem}.h-full{height:100%}.min-w-full{min-width:100%}.flex-grow{flex-grow:1}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.rounded-2xl{border-radius:1rem}.bg-gray-600{--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity))}.bg-gray-800{--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}.bg-red-600{--tw-bg-opacity: 1;background-color:rgb(220 38 38 / var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.p-1{padding:.25rem}.p-10{padding:2.5rem}.p-2{padding:.5rem}.p-4{padding:1rem}.pl-10{padding-left:2.5rem}.pr-10{padding-right:2.5rem}.text-2xl{font-size:1.5rem;line-height:2rem}.text-4xl{font-size:2.25rem;line-height: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))}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}@media (min-width: 768px){.md\:m-10{margin:2.5rem}.md\:h-full{height:100%}.md\:flex-row{flex-direction:row}.md\:justify-end{justify-content:flex-end}}@media (min-width: 1024px){.lg\:m-10{margin:2.5rem}.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\:pl-32{padding-left:8rem}.lg\:pr-32{padding-right:8rem}.lg\:text-6xl{font-size:3.75rem;line-height:1}.lg\:text-lg{font-size:1.125rem;line-height:1.75rem}}