From 96e1dda6a77057685c6752bc905e1a1f010ea9b1 Mon Sep 17 00:00:00 2001 From: Juan Cisneros Date: Thu, 6 Jun 2024 22:43:50 -0500 Subject: [PATCH] New Features: 1. CORS and Request to Ripe Atlas New Pages: 1. Latency Test Bugs Corrected: To Be Corrected: --- capacitor.config.ts | 10 +++- package-lock.json | 48 +++++++++++++++++-- package.json | 2 + src/app/app-routing.module.ts | 4 ++ src/app/app.component.ts | 5 ++ src/app/app.module.ts | 3 +- .../latency-test-routing.module.ts | 17 +++++++ .../pages/latency-test/latency-test.module.ts | 22 +++++++++ .../pages/latency-test/latency-test.page.html | 35 ++++++++++++++ .../pages/latency-test/latency-test.page.scss | 0 .../latency-test/latency-test.page.spec.ts | 17 +++++++ .../pages/latency-test/latency-test.page.ts | 36 ++++++++++++++ src/app/pages/show-map/show-map.page.ts | 6 +-- src/app/services/ripe.service.ts | 44 ++++++++++------- www/1956.f6619777d30c7813.js | 1 + www/246.c15d38b2d882140a.js | 1 + www/246.e5e99d85bb4428f5.js | 1 - ...9f14a20980.js => 3118.0ec5c24326aec8ca.js} | 2 +- ...ace22f6baa.js => 3825.24edfec633e52faa.js} | 2 +- ...ece7636b7e.js => 3998.f4d3bcdbaf38f0e8.js} | 2 +- ...014e68a27e.js => 6688.617c2a0e9b68bddb.js} | 2 +- ...c204b64792.js => 6927.bf1f05e74d90a79e.js} | 2 +- ...cd13edb71d.js => 7444.e86874e705e7f74c.js} | 2 +- ...61ae51a2154.js => 839.bc5a14a8b82682d9.js} | 2 +- www/index.html | 2 +- www/main.5acc7d3bb4e9fc03.js | 1 + www/main.79fc140df64c989e.js | 1 - www/runtime.8bad42db667896fb.js | 1 + www/runtime.a3d5bc8807aab63d.js | 1 - 29 files changed, 235 insertions(+), 37 deletions(-) create mode 100644 src/app/pages/latency-test/latency-test-routing.module.ts create mode 100644 src/app/pages/latency-test/latency-test.module.ts create mode 100644 src/app/pages/latency-test/latency-test.page.html create mode 100644 src/app/pages/latency-test/latency-test.page.scss create mode 100644 src/app/pages/latency-test/latency-test.page.spec.ts create mode 100644 src/app/pages/latency-test/latency-test.page.ts create mode 100644 www/1956.f6619777d30c7813.js create mode 100644 www/246.c15d38b2d882140a.js delete mode 100644 www/246.e5e99d85bb4428f5.js rename www/{3118.d242359f14a20980.js => 3118.0ec5c24326aec8ca.js} (97%) rename www/{3825.7bb8c0ace22f6baa.js => 3825.24edfec633e52faa.js} (98%) rename www/{3998.5ecf1aece7636b7e.js => 3998.f4d3bcdbaf38f0e8.js} (98%) rename www/{6688.a7b3b7014e68a27e.js => 6688.617c2a0e9b68bddb.js} (98%) rename www/{6927.965bbdc204b64792.js => 6927.bf1f05e74d90a79e.js} (98%) rename www/{7444.3798b1cd13edb71d.js => 7444.e86874e705e7f74c.js} (99%) rename www/{839.fb5de61ae51a2154.js => 839.bc5a14a8b82682d9.js} (98%) create mode 100644 www/main.5acc7d3bb4e9fc03.js delete mode 100644 www/main.79fc140df64c989e.js create mode 100644 www/runtime.8bad42db667896fb.js delete mode 100644 www/runtime.a3d5bc8807aab63d.js diff --git a/capacitor.config.ts b/capacitor.config.ts index 87c96d4..0592a50 100644 --- a/capacitor.config.ts +++ b/capacitor.config.ts @@ -6,7 +6,15 @@ const config: CapacitorConfig = { webDir: 'www', server: { url: 'http://localhost:8100', - } + }, + plugins: { + CapacitorHttp: { + enabled: true, + }, + }, + + + }; export default config; diff --git a/package-lock.json b/package-lock.json index 1ae914b..2a0a5f9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -17,6 +17,7 @@ "@angular/platform-browser": "^17.0.2", "@angular/platform-browser-dynamic": "^17.0.2", "@angular/router": "^17.0.2", + "@capacitor-community/http": "^1.4.1", "@capacitor/android": "6.0.0", "@capacitor/app": "6.0.0", "@capacitor/core": "6.0.0", @@ -25,6 +26,7 @@ "@capacitor/keyboard": "6.0.0", "@capacitor/status-bar": "6.0.0", "@ionic/angular": "^8.0.0", + "cors": "^2.8.5", "ionicons": "^7.0.0", "leaflet": "^1.9.4", "leaflet-ant-path": "^1.3.0", @@ -2713,6 +2715,49 @@ "node": ">=6.9.0" } }, + "node_modules/@capacitor-community/http": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/@capacitor-community/http/-/http-1.4.1.tgz", + "integrity": "sha512-+pCkBXrwfm97UfjOgjV950H/qZ8SE36Mrcb46BlL1ps3VIsGuIO+AulL8GqTC6LewheRVtGJpRspNtneXQotNA==", + "dependencies": { + "@capacitor/android": "^3.0.0", + "@capacitor/core": "^3.0.0", + "@capacitor/filesystem": "^1.0.0", + "@capacitor/ios": "^3.0.0" + } + }, + "node_modules/@capacitor-community/http/node_modules/@capacitor/android": { + "version": "3.9.0", + "resolved": "https://registry.npmjs.org/@capacitor/android/-/android-3.9.0.tgz", + "integrity": "sha512-YTPyrh1NozEuYXWGtfqN27TLXUrLbZX9fggyd4JQ1yMaUZTmLPm5dCuznONhQ49aPkJnUJB02JfpHy/qGwa2Lw==", + "peerDependencies": { + "@capacitor/core": "^3.9.0" + } + }, + "node_modules/@capacitor-community/http/node_modules/@capacitor/core": { + "version": "3.9.0", + "resolved": "https://registry.npmjs.org/@capacitor/core/-/core-3.9.0.tgz", + "integrity": "sha512-j1lL0+/7stY8YhIq1Lm6xixvUqIn89vtyH5ZpJNNmcZ0kwz6K9eLkcG6fvq1UWMDgSVZg9JrRGSFhb4LLoYOsw==", + "dependencies": { + "tslib": "^2.1.0" + } + }, + "node_modules/@capacitor-community/http/node_modules/@capacitor/filesystem": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@capacitor/filesystem/-/filesystem-1.1.0.tgz", + "integrity": "sha512-8O3UuvL8HNUEJvZnmn8yUmvgB1evtXfcF0oxIo3YbSlylqywJwS3JTiuhKmsvSxCdpbTy8IaTsutVh3gZgWbKg==", + "peerDependencies": { + "@capacitor/core": "^3.0.0" + } + }, + "node_modules/@capacitor-community/http/node_modules/@capacitor/ios": { + "version": "3.9.0", + "resolved": "https://registry.npmjs.org/@capacitor/ios/-/ios-3.9.0.tgz", + "integrity": "sha512-GezPCJIujRHnF4wbrKJx6Q/mgFz0f9rmh/steTTXQZI+nEl6mHk6NWh8235p7YbhonYi5WD0rFNirrjGg1EaGw==", + "peerDependencies": { + "@capacitor/core": "^3.9.0" + } + }, "node_modules/@capacitor/android": { "version": "6.0.0", "resolved": "https://registry.npmjs.org/@capacitor/android/-/android-6.0.0.tgz", @@ -8043,7 +8088,6 @@ "version": "2.8.5", "resolved": "https://registry.npmjs.org/cors/-/cors-2.8.5.tgz", "integrity": "sha512-KIHbLJqu73RGr/hnbrO9uBeixNGuvSQjul/jdFvS/KFSIH1hWVd1ng7zOHx+YrEfInLG7q4n6GHQ9cDtxv/P6g==", - "dev": true, "dependencies": { "object-assign": "^4", "vary": "^1" @@ -13895,7 +13939,6 @@ "version": "4.1.1", "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==", - "dev": true, "engines": { "node": ">=0.10.0" } @@ -17520,7 +17563,6 @@ "version": "1.1.2", "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", "integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==", - "dev": true, "engines": { "node": ">= 0.8" } diff --git a/package.json b/package.json index c3ad850..b594579 100644 --- a/package.json +++ b/package.json @@ -22,6 +22,7 @@ "@angular/platform-browser": "^17.0.2", "@angular/platform-browser-dynamic": "^17.0.2", "@angular/router": "^17.0.2", + "@capacitor-community/http": "^1.4.1", "@capacitor/android": "6.0.0", "@capacitor/app": "6.0.0", "@capacitor/core": "6.0.0", @@ -30,6 +31,7 @@ "@capacitor/keyboard": "6.0.0", "@capacitor/status-bar": "6.0.0", "@ionic/angular": "^8.0.0", + "cors": "^2.8.5", "ionicons": "^7.0.0", "leaflet": "^1.9.4", "leaflet-ant-path": "^1.3.0", diff --git a/src/app/app-routing.module.ts b/src/app/app-routing.module.ts index 0bb712b..a66cd93 100644 --- a/src/app/app-routing.module.ts +++ b/src/app/app-routing.module.ts @@ -50,6 +50,10 @@ const routes: Routes = [ path: 'show-map', loadChildren: () => import('./pages/show-map/show-map.module').then( m => m.ShowMapPageModule) }, + { + path: 'latency-test', + loadChildren: () => import('./pages/latency-test/latency-test.module').then( m => m.LatencyTestPageModule) + }, ]; @NgModule({ diff --git a/src/app/app.component.ts b/src/app/app.component.ts index 845bc56..85ea560 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -34,6 +34,11 @@ export class AppComponent implements OnInit { url: '/myteam', icon: 'people' }, + { + title:'Latency Test', + url:'/latency-test', + icon:'pulse' + } ]; /** diff --git a/src/app/app.module.ts b/src/app/app.module.ts index 617934b..49f3d93 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -19,7 +19,8 @@ import {HttpClientModule} from "@angular/common/http"; { provide: RouteReuseStrategy, useClass: IonicRouteStrategy }, provideFirebaseApp(() => initializeApp(environment.firebase)), provideFirestore(() => getFirestore()), - provideAuth(() => getAuth()) + provideAuth(() => getAuth()), + HttpClientModule ], bootstrap: [AppComponent], }) diff --git a/src/app/pages/latency-test/latency-test-routing.module.ts b/src/app/pages/latency-test/latency-test-routing.module.ts new file mode 100644 index 0000000..906f723 --- /dev/null +++ b/src/app/pages/latency-test/latency-test-routing.module.ts @@ -0,0 +1,17 @@ +import { NgModule } from '@angular/core'; +import { Routes, RouterModule } from '@angular/router'; + +import { LatencyTestPage } from './latency-test.page'; + +const routes: Routes = [ + { + path: '', + component: LatencyTestPage + } +]; + +@NgModule({ + imports: [RouterModule.forChild(routes)], + exports: [RouterModule], +}) +export class LatencyTestPageRoutingModule {} diff --git a/src/app/pages/latency-test/latency-test.module.ts b/src/app/pages/latency-test/latency-test.module.ts new file mode 100644 index 0000000..4ed0e55 --- /dev/null +++ b/src/app/pages/latency-test/latency-test.module.ts @@ -0,0 +1,22 @@ +import { NgModule } from '@angular/core'; +import { CommonModule } from '@angular/common'; +import { FormsModule } from '@angular/forms'; + +import { IonicModule } from '@ionic/angular'; + +import { LatencyTestPageRoutingModule } from './latency-test-routing.module'; + +import { LatencyTestPage } from './latency-test.page'; +import {ComponentsModule} from "../../components/components.module"; + +@NgModule({ + imports: [ + CommonModule, + FormsModule, + IonicModule, + LatencyTestPageRoutingModule, + ComponentsModule + ], + declarations: [LatencyTestPage] +}) +export class LatencyTestPageModule {} diff --git a/src/app/pages/latency-test/latency-test.page.html b/src/app/pages/latency-test/latency-test.page.html new file mode 100644 index 0000000..bd5a726 --- /dev/null +++ b/src/app/pages/latency-test/latency-test.page.html @@ -0,0 +1,35 @@ + + + + + + + + + + + + + + + + +
Select a Type (Required)
+ Ping + Traceroute +
+
+
+
+
+ + + Add Test + Get Test Results + + +
+
diff --git a/src/app/pages/latency-test/latency-test.page.scss b/src/app/pages/latency-test/latency-test.page.scss new file mode 100644 index 0000000..e69de29 diff --git a/src/app/pages/latency-test/latency-test.page.spec.ts b/src/app/pages/latency-test/latency-test.page.spec.ts new file mode 100644 index 0000000..ae40af6 --- /dev/null +++ b/src/app/pages/latency-test/latency-test.page.spec.ts @@ -0,0 +1,17 @@ +import { ComponentFixture, TestBed } from '@angular/core/testing'; +import { LatencyTestPage } from './latency-test.page'; + +describe('LatencyTestPage', () => { + let component: LatencyTestPage; + let fixture: ComponentFixture; + + beforeEach(() => { + fixture = TestBed.createComponent(LatencyTestPage); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/src/app/pages/latency-test/latency-test.page.ts b/src/app/pages/latency-test/latency-test.page.ts new file mode 100644 index 0000000..f034adc --- /dev/null +++ b/src/app/pages/latency-test/latency-test.page.ts @@ -0,0 +1,36 @@ +import {Component, Input, OnInit} from '@angular/core'; +import {RipeService} from "../../services/ripe.service"; + +@Component({ + selector: 'app-latency-test', + templateUrl: './latency-test.page.html', + styleUrls: ['./latency-test.page.scss'], +}) +export class LatencyTestPage implements OnInit { + + @Input() target: string = 'portfoliojuanfranciscocisneros.web.app'; + @Input() description: string = 'IONIC-TEST'; + @Input() type: string = 'ping'; + + + constructor( + private ripeService: RipeService + ) { } + + ngOnInit() { + } + + async sendMeasurementRequest() { + console.log(this.target, this.description, this.type); + await this.ripeService.sendMeasurementRequest(this.target, this.description, this.type); + } + + async getMeasurementResults() { + let response = await this.ripeService.getMeasurementResults(); + console.log(response); + } + + changeType($event: any) { + this.type = $event.detail.value; + } +} diff --git a/src/app/pages/show-map/show-map.page.ts b/src/app/pages/show-map/show-map.page.ts index 9fe07a1..d535267 100644 --- a/src/app/pages/show-map/show-map.page.ts +++ b/src/app/pages/show-map/show-map.page.ts @@ -15,11 +15,9 @@ export class ShowMapPage implements OnInit, OnDestroy{ map: Leaflet.Map|undefined; constructor( - private ripeService: RipeService ) { } ngOnInit() { - this.ripeService.sendMeasurementRequest(); } ionViewDidEnter() { this.leafletMap(); } @@ -29,8 +27,6 @@ export class ShowMapPage implements OnInit, OnDestroy{ attribution: 'edupala.com © Angular LeafLet', }).addTo(this.map); - Leaflet.marker([28.6, 77]).addTo(this.map).bindPopup('Delhi').openPopup(); - Leaflet.marker([34, 77]).addTo(this.map).bindPopup('Leh').openPopup(); antPath([[28.644800, 77.216721], [34.1526, 77.5771]], { color: '#FF0000', weight: 5, opacity: 0.6 }) @@ -38,7 +34,7 @@ export class ShowMapPage implements OnInit, OnDestroy{ setTimeout(() => { this.map!.invalidateSize(); - },10); + },100); } diff --git a/src/app/services/ripe.service.ts b/src/app/services/ripe.service.ts index e7097a2..1251296 100644 --- a/src/app/services/ripe.service.ts +++ b/src/app/services/ripe.service.ts @@ -1,48 +1,60 @@ import { Injectable } from '@angular/core'; import {HttpClient} from "@angular/common/http"; + @Injectable({ providedIn: 'root' }) export class RipeService { - private measurementsUrl = 'https://cors-anywhere.herokuapp.com/https://atlas.ripe.net/api/v2/measurements/'; + private measurementsUrl = 'https://cors-ea3m.onrender.com/https://atlas.ripe.net/api/v2/measurements/'; + private measurementID: string = ''; constructor( private http: HttpClient ) { } - sendMeasurementRequest() { + async sendMeasurementRequest(target: string, description: string, type: string) { let body = { - "definitions": [ + "definitions": [ { - "target": "portfoliojuanfranciscocisneros.web.app", - "description": "My First Measurement, A mi portfolio 5", + "target": target, + "description": description, "type": "ping", "af": 4, - "is_oneoff":true + "is_oneoff": true } ], - "probes": [ + "probes": [ { "requested": 1, "type": "area", "value": "WW" } ] - } + } - // Send the request with a header Authorization - this.http.post(this.measurementsUrl, body, { - headers: { - 'Authorization': 'Key 92530695-134f-4cbc-b7c3-ec130f3719b0' - } - }).subscribe((response) => { - console.log("response", response); - }); + let headers = { + "Authorization":"Key 92530695-134f-4cbc-b7c3-ec130f3719b0" + } + + console.log(body); + let response:any = await this.http.post(this.measurementsUrl, body, {headers: headers}).toPromise(); + console.log(response); + this.measurementID = response['measurements'][0]; + console.log(this.measurementID); } + async getMeasurementResults() { + let headers = { + "Authorization": "Key 92530695-134f-4cbc-b7c3-ec130f3719b0" + } + let response: any = await this.http.get(this.measurementsUrl + this.measurementID + '/results/', {headers: headers}).toPromise(); + return response; + } + + diff --git a/www/1956.f6619777d30c7813.js b/www/1956.f6619777d30c7813.js new file mode 100644 index 0000000..7919ce4 --- /dev/null +++ b/www/1956.f6619777d30c7813.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[1956],{1956:(F,g,r)=>{r.r(g),r.d(g,{LatencyTestPageModule:()=>C});var h=r(177),p=r(4341),a=r(7863),d=r(305),u=r(467),e=r(4438),f=r(1626);let T=(()=>{var n;class i{constructor(t){this.http=t,this.measurementsUrl="https://cors-ea3m.onrender.com/https://atlas.ripe.net/api/v2/measurements/",this.measurementID=""}sendMeasurementRequest(t,s,c){var o=this;return(0,u.A)(function*(){let m={definitions:[{target:t,description:s,type:"ping",af:4,is_oneoff:!0}],probes:[{requested:1,type:"area",value:"WW"}]};console.log(m);let y=yield o.http.post(o.measurementsUrl,m,{headers:{Authorization:"Key 92530695-134f-4cbc-b7c3-ec130f3719b0"}}).toPromise();console.log(y),o.measurementID=y.measurements[0],console.log(o.measurementID)})()}getMeasurementResults(){var t=this;return(0,u.A)(function*(){return yield t.http.get(t.measurementsUrl+t.measurementID+"/results/",{headers:{Authorization:"Key 92530695-134f-4cbc-b7c3-ec130f3719b0"}}).toPromise()})()}}return(n=i).\u0275fac=function(t){return new(t||n)(e.KVO(f.Qq))},n.\u0275prov=e.jDH({token:n,factory:n.\u0275fac,providedIn:"root"}),i})();var M=r(385),v=r(8453);const R=[{path:"",component:(()=>{var n;class i{constructor(t){this.ripeService=t,this.target="portfoliojuanfranciscocisneros.web.app",this.description="IONIC-TEST",this.type="ping"}ngOnInit(){}sendMeasurementRequest(){var t=this;return(0,u.A)(function*(){console.log(t.target,t.description,t.type),yield t.ripeService.sendMeasurementRequest(t.target,t.description,t.type)})()}getMeasurementResults(){var t=this;return(0,u.A)(function*(){let s=yield t.ripeService.getMeasurementResults();console.log(s)})()}changeType(t){this.type=t.detail.value}}return(n=i).\u0275fac=function(t){return new(t||n)(e.rXU(T))},n.\u0275cmp=e.VBU({type:n,selectors:[["app-latency-test"]],inputs:{target:"target",description:"description",type:"type"},decls:27,vars:7,consts:[[3,"title"],[3,"fullscreen"],[1,"lg:m-10","md:m-10"],["size","12","size-md","4","size-lg","4",1,""],["label","Target","placeholder","Enter a url target","type","text","labelPlacement","stacked",1,"",3,"ngModelChange","ngModel"],["size","12","size-md","4","size-lg","4"],["label","Description","placeholder","Enter a description","type","text","labelPlacement","stacked",1,"",3,"ngModelChange","ngModel"],["placeholder","Select a Type",3,"ionChange"],["slot","label"],["color","danger"],["value","ping",3,"ngModelChange","ngModel"],["value","traceroute",3,"ngModelChange","ngModel"],["size","12","size-md","12","size-lg","12",1,"flex","flex-row","justify-end"],["color","primary",1,"",3,"click"]],template:function(t,s){1&t&&(e.nrm(0,"app-header",0),e.j41(1,"ion-content",1)(2,"ion-grid"),e.nrm(3,"app-title",0),e.j41(4,"ion-row",2)(5,"ion-col",3)(6,"ion-input",4),e.mxI("ngModelChange",function(o){return e.DH7(s.target,o)||(s.target=o),o}),e.k0s()(),e.j41(7,"ion-col",5)(8,"ion-input",6),e.mxI("ngModelChange",function(o){return e.DH7(s.description,o)||(s.description=o),o}),e.k0s()(),e.j41(9,"ion-col",5)(10,"ion-list")(11,"ion-item")(12,"ion-select",7),e.bIt("ionChange",function(o){return s.changeType(o)}),e.j41(13,"div",8),e.EFF(14,"Select a Type "),e.j41(15,"ion-text",9),e.EFF(16,"(Required)"),e.k0s()(),e.j41(17,"ion-select-option",10),e.mxI("ngModelChange",function(o){return e.DH7(s.type,o)||(s.type=o),o}),e.EFF(18,"Ping"),e.k0s(),e.j41(19,"ion-select-option",11),e.mxI("ngModelChange",function(o){return e.DH7(s.type,o)||(s.type=o),o}),e.EFF(20,"Traceroute"),e.k0s()()()()()(),e.j41(21,"ion-row",2)(22,"ion-col",12)(23,"ion-button",13),e.bIt("click",function(){return s.sendMeasurementRequest()}),e.EFF(24,"Add Test"),e.k0s(),e.j41(25,"ion-button",13),e.bIt("click",function(){return s.getMeasurementResults()}),e.EFF(26,"Get Test Results"),e.k0s()()()()()),2&t&&(e.Y8G("title","Latency Test"),e.R7$(),e.Y8G("fullscreen",!0),e.R7$(2),e.Y8G("title","Latency Test"),e.R7$(3),e.R50("ngModel",s.target),e.R7$(2),e.R50("ngModel",s.description),e.R7$(9),e.R50("ngModel",s.type),e.R7$(2),e.R50("ngModel",s.type))},dependencies:[p.BC,p.vS,a.Jm,a.hU,a.W9,a.lO,a.$w,a.uz,a.nf,a.ln,a.Nm,a.Ip,a.IO,a.Je,a.Gw,M.l,v.W]}),i})()}];let P=(()=>{var n;class i{}return(n=i).\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.$C({type:n}),n.\u0275inj=e.G2t({imports:[d.iI.forChild(R),d.iI]}),i})();var L=r(5553);let C=(()=>{var n;class i{}return(n=i).\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.$C({type:n}),n.\u0275inj=e.G2t({imports:[h.MD,p.YN,a.bv,P,L.h]}),i})()}}]); \ No newline at end of file diff --git a/www/246.c15d38b2d882140a.js b/www/246.c15d38b2d882140a.js new file mode 100644 index 0000000..98ce270 --- /dev/null +++ b/www/246.c15d38b2d882140a.js @@ -0,0 +1 @@ +(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(){}ngOnInit(){}ionViewDidEnter(){this.leafletMap()}leafletMap(){this.map=h.map("mapId").setView([28.6448,77.216721],5),h.tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",{attribution:"edupala.com \xa9 Angular LeafLet"}).addTo(this.map),(0,a.antPath)([[28.6448,77.216721],[34.1526,77.5771]],{color:"#FF0000",weight:5,opacity:.6}).addTo(this.map),setTimeout(()=>{this.map.invalidateSize()},100)}ngOnDestroy(){this.map.remove()}}return(g=y).\u0275fac=function(b){return new(b||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(b,E){1&b&&(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&b&&c.Y8G("translucent",!0)},dependencies:[v.W9,v.eU,v.BC,v.ai]}),y})()}];let _=(()=>{var g;class y{}return(g=y).\u0275fac=function(b){return new(b||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(b){return new(b||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 x,b,E,H,G,J=g.target,$=g.global,et=g.stat;if(x=$?h:et?h[J]||d(J,{}):(h[J]||{}).prototype)for(b in y){if(H=y[b],E=g.noTargetGet?(G=a(x,b))&&G.value:x[b],!T($?b:J+(et?".":"#")+b,g.forced)&&void 0!==E){if(typeof H==typeof E)continue;_(H,E)}(g.sham||E&&E.sham)&&c(H,"sham",!0),f(x,b,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,x){if(y=f(y),x=d(x,!0),T)try{return g(y,x)}catch{}if(_(y,x))return c(!a.f.call(y,x),y[x])}},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 x="suspendedStart",b="suspendedYield",E="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);k.prototype=ct.constructor=I,I.constructor=k,I[T]=k.displayName="GeneratorFunction",y.isGeneratorFunction=function(S){var w="function"==typeof S&&S.constructor;return!!w&&(w===k||"GeneratorFunction"===(w.displayName||w.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,w,B,N){var M=new W(pt(S,w,B,N));return y.isGeneratorFunction(w)?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 w=[];for(var B in S)w.push(B);return w.reverse(),function N(){for(;w.length;){var M=w.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 w in this)"t"===w.charAt(0)&&c.call(this,w)&&!isNaN(+w.slice(1))&&(this[w]=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 w=this;function B(Et,nt){return at.type="throw",at.arg=S,w.next=Et,nt&&(w.method="next",w.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;--w){var B=this.tryEntries[w];if(B.finallyLoc===S)return this.complete(B.completion,B.afterLoc),P(B),G}},catch:function(S){for(var w=this.tryEntries.length-1;w>=0;--w){var B=this.tryEntries[w];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,w,B){return this.delegate={iterator:Z(S),resultName:w,nextLoc:B},"next"===this.method&&(this.arg=h),G}}}function pt(S,w,B,N){var at=Object.create((w&&w.prototype instanceof A?w:A).prototype),vt=new X(N||[]);return at._invoke=function(St,Et,nt){var ht=x;return function(xt,Zt){if(ht===E)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 bt=K(_t,nt);if(bt){if(bt===G)continue;return bt}}if("next"===nt.method)nt.sent=nt._sent=nt.arg;else if("throw"===nt.method){if(ht===x)throw ht=H,nt.arg;nt.dispatchException(nt.arg)}else"return"===nt.method&&nt.abrupt("return",nt.arg);ht=E;var ut=D(St,Et,nt);if("normal"===ut.type){if(ht=nt.done?H:b,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,w,B){try{return{type:"normal",arg:S.call(w,B)}}catch(N){return{type:"throw",arg:N}}}function A(){}function k(){}function I(){}function j(S){["next","throw","return"].forEach(function(w){S[w]=function(B){return this._invoke(w,B)}})}function W(S){var w;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,bt=_t.value;return bt&&"object"==typeof bt&&c.call(bt,"__await")?Promise.resolve(bt.__await).then(function(ut){St("next",ut,ht,xt)},function(ut){St("throw",ut,ht,xt)}):Promise.resolve(bt).then(function(ut){_t.value=ut,ht(_t)},function(ut){return St("throw",ut,ht,xt)})}xt(Zt.arg)}(B,N,at,vt)})}return w=w?w.then(M,M):M()}}function K(S,w){var B=S.iterator[w.method];if(B===h){if(w.delegate=null,"throw"===w.method){if(S.iterator.return&&(w.method="return",w.arg=h,K(S,w),"throw"===w.method))return G;w.method="throw",w.arg=new TypeError("The iterator does not provide a 'throw' method")}return G}var N=D(B,S.iterator,w.arg);if("throw"===N.type)return w.method="throw",w.arg=N.arg,w.delegate=null,G;var M=N.arg;return M?M.done?(w[S.resultName]=M.value,w.next=S.nextLoc,"return"!==w.method&&(w.method="next",w.arg=h),w.delegate=null,G):M:(w.method="throw",w.arg=new TypeError("iterator result is not an object"),w.delegate=null,G)}function C(S){var w={tryLoc:S[0]};1 in S&&(w.catchLoc=S[1]),2 in S&&(w.finallyLoc=S[2],w.afterLoc=S[3]),this.tryEntries.push(w)}function P(S){var w=S.completion||{};w.type="normal",delete w.arg,S.completion=w}function X(S){this.tryEntries=[{tryLoc:"root"}],S.forEach(C,this),this.reset(!0)}function Z(S){if(S){var w=S[d];if(w)return w.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 k=r.nc;k&&(D.attrs.nonce=k)}return J(A,D.attrs),E(D,A),A}function J(D,A){Object.keys(A).forEach(function(k){D.setAttribute(k,A[k])})}function $(D,A){var k,I,j,W,C,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++;k=_||(_=G(A)),I=pt.bind(null,k,K,!1),j=pt.bind(null,k,K,!0)}else D.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(C=A,P=document.createElement("link"),void 0===C.attrs.type&&(C.attrs.type="text/css"),C.attrs.rel="stylesheet",J(P,C.attrs),E(C,P),I=function(C,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 w=new Blob([Z],{type:"text/css"}),B=C.href;C.href=URL.createObjectURL(w),B&&URL.revokeObjectURL(B)}.bind(null,k=P,A),j=function(){H(k),k.href&&URL.revokeObjectURL(k.href)}):(k=G(A),I=function(C,P){var X=P.css,Z=P.media;if(Z&&C.setAttribute("media",Z),C.styleSheet)C.styleSheet.cssText=X;else{for(;C.firstChild;)C.removeChild(C.firstChild);C.appendChild(document.createTextNode(X))}}.bind(null,k),j=function(){H(k)});return I(D),function(C){if(C){if(C.css===D.css&&C.media===D.media&&C.sourceMap===D.sourceMap)return;I(D=C)}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 k=b(D,A);return x(k,A),function(I){for(var j=[],W=0;W1&&void 0!==arguments[1]?arguments[1]:{};return function(S,w){if(!(S instanceof w))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?x(this):Z,b(x(x(P)),H,null),b(x(x(P)),G,null),b(x(x(P)),"_map",null),b(x(x(P)),"_path",null),b(x(x(P)),"_animatedPathId",null),b(x(x(P)),"_animatedPathClass","leaflet-ant-path"),b(x(x(P)),"_reversePathClass","".concat(P._animatedPathClass,"__reverse")),b(x(x(P)),"_hardwareAccClass","hardware-acceleration"),b(x(x(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(x(x(P)),_({},P._defaultOptions,q)),P._path=C,P._animatedPathId="ant-path-".concat((new Date).getTime()),P._mount(),P}var j,W,K;return function(C,P){if("function"!=typeof P&&null!==P)throw new TypeError("Super expression must either be null or a function");C.prototype=Object.create(P&&P.prototype,{constructor:{value:C,writable:!0,configurable:!0}}),P&&y(C,P)}(I,h.FeatureGroup),j=I,K=[{key:J,get:function(){return this}}],(W=[{key:"map",value:function(C){return new this.constructor[Symbol.species](this._path.map(C),_({},this.options))}},{key:et,value:c.a.mark(function C(){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()}},C,this)})},{key:"_processOptions",value:function(){var C=this.options,P=this._animatedPathClass,X=this._reversePathClass,Z=this._hardwareAccClass,q=this._animatedPathId,S=C.reverse,w=C.hardwareAcceleration,B=_({},C),N=_({},C);return N.color=N.pulseColor||C.pulseColor,N.className=[P,q,S?X:"",w?"".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 C=this._processOptions(),X=C.pulseOpts,Z=this.options.use;this.addLayer(this[E.main]=Z(this._path,C.pathOpts)),this.addLayer(this[E.pulse]=Z(this._path,X))}},{key:"_calculateAnimationSpeed",value:function(){var C=this.options,P=this._map,X=this._animatedPathId;if(!C.paused&&P){var Z=P.getZoom(),q=document.getElementsByClassName(X),S=1+C.delay/3/Z+"s",w=["-webkit-","-moz-","-ms-","-o-",""].map(function(B){return"".concat(B,"animation-duration: ").concat(S)}).join(";");Array.from(q,function(B){B.style.cssText=w,B.setAttribute("data-animated","true")})}}},{key:"_pureReverse",value:function(){var C=this[E.pulse].getElement();C&&(this.options.reverse?C.classList.remove(this._reversePathClass):C.classList.add(this._reversePathClass))}},{key:"onAdd",value:function(C){return this._map=C,this._map.on("zoomend",this._calculateAnimationSpeed,this),this._mount(),this._calculateAnimationSpeed(),this}},{key:"onRemove",value:function(C){return this._map&&(this._map.off("zoomend",this._calculateAnimationSpeed,this),this._map=null),C&&C.removeLayer(this[E.main]).removeLayer(this[E.pulse]),this}},{key:"pause",value:function(){if(!this.options.paused){var C=this[E.pulse].getElement();return this.options.paused=!0,C&&(C.removeAttribute("style"),C.setAttribute("data-animated","true")),!0}return!1}},{key:"resume",value:function(){var C=this.options;return!!C.paused&&(C.paused=!1,this._calculateAnimationSpeed(),!0)}},{key:"bringToFront",value:function(){return this[E.main].bringToFront(),this[E.pulse].bringToFront(),this}},{key:"bringToBack",value:function(){return this[E.pulse].bringToBack(),this[E.main].bringToBack(),this}},{key:"removeFrom",value:function(C){return C&&C.hasLayer(this)&&C.removeLayer(this),this}},{key:"setStyle",value:function(C){var P=_({},this.options,C),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,C);var S=this._processOptions(),B=S.pulseOpts;return this[E.main].setStyle(S.pathOpts),this[E.pulse].setStyle(B),this}},{key:"reverse",value:function(){return this._pureReverse(),this.options.reverse=!this.options.reverse,this}},{key:"redraw",value:function(){return this[E.main].redraw(),this[E.pulse].redraw(),this}},{key:"addLatLng",value:function(){for(var C,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),x=r(0).WeakMap;if(f){var b=new x,E=b.get,H=b.has,G=b.set;h=function($,et){return G.call(b,$,et),et},a=function($){return E.call(b,$)||{}},c=function($){return H.call(b,$)}}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,x=0;xy;)h(g,T=_[y++])&&(~c(x,T)||x.push(T));return x}},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,x=d("iframe"),b=c.length;for(x.style.display="none",f.appendChild(x),x.src="javascript:",(y=x.contentWindow.document).open(),y.write(" + diff --git a/www/main.5acc7d3bb4e9fc03.js b/www/main.5acc7d3bb4e9fc03.js new file mode 100644 index 0000000..3343221 --- /dev/null +++ b/www/main.5acc7d3bb4e9fc03.js @@ -0,0 +1 @@ +(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)}},zt=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),zt(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:()=>zt,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 zt=(()=>{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))],zt=V.get(Oe)||[];zt.push(rt),V.set(Oe,zt)}),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 zt=this.params.toString();if(0===zt.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:zt,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 zt=rt.pipe((0,se.p)(Kt=>Kt instanceof ht));switch(re.observe||"body"){case"body":switch(Oe.responseType){case"arraybuffer":return zt.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 zt.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 zt.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 zt.pipe((0,Je.T)(Kt=>Kt.body))}case"response":return zt;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 zt=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!==zt&&rt.upload&&rt.upload.addEventListener("progress",pr)),rt.send(zt),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!==zt&&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(" "))}}(Ht,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),Ht=null!==(A=null==Et?void 0:Et.firstChild)&&void 0!==A?A:null,cn=te.create(Pe,a,Ht,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(),Ht=y?p.bind(Et[Ki][di]):p,cn=new Sw(Ke,Ht);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 Ht=rs(o,t),cn=p?p(Ht):Ht,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 Ht=Et.length;if(Ht)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 zt(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):zt(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 zt(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]=zt(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(zt,Kt){return this.subscribe(Bn=>Bn.register(zt,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(zt=>{rt=zt}),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(zt=>{if(zt instanceof Fe.Z){const Kt=zt.restoredState?zt.restoredState.navigationId:zt.id;this.guessDirection=this.guessAnimation=Kt{this.pop(),zt()})}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,zt,Kt,Bn,Ln,Ur)=>{const dr=ve.zZn.create({providers:mr(Kt),parent:Z}),kr=(0,ve.a0P)(zt,{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 ${zt.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:zt}=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===zt&&"back"===Oe&&!Bn&&void 0!==on&&(zt=on),Kt&&(Kt.animationBuilder=zt),this.zone.runOutsideAngular(()=>this.wait(()=>(Kt&&Kt.ref.changeDetectorRef.detach(),V.ref.changeDetectorRef.reattach(),this.transition(V,Kt,rt,this.canGoBack(1),!1,zt).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 zt;const Bn=rt.get("primary");null!=Bn&&null!==(zt=Bn.route)&&void 0!==zt&&null!==(zt=zt._routerState)&&void 0!==zt&&zt.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 zt=V?V.element:void 0,Kt=Z?Z.element:void 0,Bn=this.containerEl;return zt&&zt!==Kt&&(zt.classList.add("ion-page"),zt.classList.add("ion-page-invisible"),Bn.commit)?Bn.commit(zt,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 zt=U.path().split("?")[0].split("#")[0];if(Oe!==R&&Oe.url!==zt){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,zt,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(zt,Bn):void 0,this.stackCtrl=new xe(this.tabsPrefix,this.nativeEl,zt,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,zt=this.stackCtrl.getExistingView(U);if(zt){rt=this.activated=zt.ref;const Ln=zt.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),zt=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=zt,this.navCtrl.setTopOutlet(this);const Bn=this.stackCtrl.getActiveView();this.stackWillChange.emit({enteringView:zt,tabSwitch:dt(zt,Bn)}),this.stackCtrl.setActive(zt).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 zt=V(rt);(Oe||!R(re,zt))&&(Oe=!1,re=zt,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,zt,Kt],Bn)=>(Kt={...rt,...zt,...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 zt=(0,ve.HJs)(re.component);if(zt)for(const{templateName:Kt}of zt.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,zt,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=zt,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,zt){(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=zt}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,zt){(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=zt}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,zt,Kt){(0,c.A)(this,"z",void 0),(0,c.A)(this,"el",void 0),this.z=zt,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,zt=`${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)===zt)return;const Ln=this.outlet.getRootView(Oe);return this.navCtrl.navigateRoot(zt,{...Ln&&zt===Ln.url&&Ln.savedExtras,animated:!0,animationDirection:"back"})}{const Kt=this.outlet.getLastRouteView(Oe);return this.navCtrl.navigateRoot((null==Kt?void 0:Kt.url)||zt,{...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 zt=re[rt].bind(re);re[rt]=(...Kt)=>{zt(...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 zt of Oe)if(re[zt]!==U[zt])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,IO:()=>zt,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})(),zt=(()=>{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-text"]],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})(),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/main.79fc140df64c989e.js b/www/main.79fc140df64c989e.js deleted file mode 100644 index 00908a3..0000000 --- a/www/main.79fc140df64c989e.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkapp=self.webpackChunkapp||[]).push([[8792],{1076:(En,bt,B)=>{"use strict";B.d(bt,{Am:()=>en,FA:()=>me,Fy:()=>Ke,I9:()=>Ir,Im:()=>Yn,Ku:()=>Xe,T9:()=>vt,Tj:()=>Mt,Uj:()=>Je,XA:()=>Me,ZQ:()=>Ct,bD:()=>yt,cY:()=>je,eX:()=>W,g:()=>ae,hp:()=>gn,jZ:()=>xt,lT:()=>Be,lV:()=>Zt,nr:()=>_e,sr:()=>Vt,tD:()=>Jt,u:()=>De,yU:()=>mt,zW:()=>j});const Oe=function(ie){const he=[];let Pe=0;for(let Et=0;Et>6|192,he[Pe++]=63&rt|128):55296==(64512&rt)&&Et+1>18|240,he[Pe++]=rt>>12&63|128,he[Pe++]=rt>>6&63|128,he[Pe++]=63&rt|128):(he[Pe++]=rt>>12|224,he[Pe++]=rt>>6&63|128,he[Pe++]=63&rt|128)}return he},Ee={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:"function"==typeof atob,encodeByteArray(ie,he){if(!Array.isArray(ie))throw Error("encodeByteArray takes an array as a parameter");this.init_();const Pe=he?this.byteToCharMapWebSafe_:this.byteToCharMap_,Et=[];for(let rt=0;rt>6,yr=63&ur;gr||(yr=64,Sn||(Rn=64)),Et.push(Pe[dn>>2],Pe[(3&dn)<<4|Wn>>4],Pe[Rn],Pe[yr])}return Et.join("")},encodeString(ie,he){return this.HAS_NATIVE_SUPPORT&&!he?btoa(ie):this.encodeByteArray(Oe(ie),he)},decodeString(ie,he){return this.HAS_NATIVE_SUPPORT&&!he?atob(ie):function(ie){const he=[];let Pe=0,Et=0;for(;Pe191&&rt<224){const dn=ie[Pe++];he[Et++]=String.fromCharCode((31&rt)<<6|63&dn)}else if(rt>239&&rt<365){const gr=((7&rt)<<18|(63&ie[Pe++])<<12|(63&ie[Pe++])<<6|63&ie[Pe++])-65536;he[Et++]=String.fromCharCode(55296+(gr>>10)),he[Et++]=String.fromCharCode(56320+(1023&gr))}else{const dn=ie[Pe++],Sn=ie[Pe++];he[Et++]=String.fromCharCode((15&rt)<<12|(63&dn)<<6|63&Sn)}}return he.join("")}(this.decodeStringToByteArray(ie,he))},decodeStringToByteArray(ie,he){this.init_();const Pe=he?this.charToByteMapWebSafe_:this.charToByteMap_,Et=[];for(let rt=0;rt>4),64!==ur&&(Et.push(Wn<<4&240|ur>>2),64!==xn&&Et.push(ur<<6&192|xn))}return Et},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let ie=0;ie=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(ie)]=ie,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(ie)]=ie)}}};class re extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}const Je=function(ie){return function(ie){const he=Oe(ie);return Ee.encodeByteArray(he,!0)}(ie).replace(/\./g,"")},De=function(ie){try{return Ee.decodeString(ie,!0)}catch(he){console.error("base64Decode failed: ",he)}return null},st=()=>{try{return function Le(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("Unable to locate global object.")}().__FIREBASE_DEFAULTS__||(()=>{if(typeof process>"u"||typeof process.env>"u")return;const ie=process.env.__FIREBASE_DEFAULTS__;return ie?JSON.parse(ie):void 0})()||(()=>{if(typeof document>"u")return;let ie;try{ie=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch{return}const he=ie&&De(ie[1]);return he&&JSON.parse(he)})()}catch(ie){return void console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${ie}`)}},Mt=ie=>{var he,Pe;return null===(Pe=null===(he=st())||void 0===he?void 0:he.emulatorHosts)||void 0===Pe?void 0:Pe[ie]},mt=ie=>{const he=Mt(ie);if(!he)return;const Pe=he.lastIndexOf(":");if(Pe<=0||Pe+1===he.length)throw new Error(`Invalid host ${he} with no separate hostname and port!`);const Et=parseInt(he.substring(Pe+1),10);return"["===he[0]?[he.substring(1,Pe-1),Et]:[he.substring(0,Pe),Et]},vt=()=>{var ie;return null===(ie=st())||void 0===ie?void 0:ie.config},Me=ie=>{var he;return null===(he=st())||void 0===he?void 0:he[`_${ie}`]};class je{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((he,Pe)=>{this.resolve=he,this.reject=Pe})}wrapCallback(he){return(Pe,Et)=>{Pe?this.reject(Pe):this.resolve(Et),"function"==typeof he&&(this.promise.catch(()=>{}),1===he.length?he(Pe):he(Pe,Et))}}}function Ke(ie,he){if(ie.uid)throw new Error('The "uid" field is no longer supported by mockUserToken. Please use "sub" instead for Firebase Auth User ID.');const Et=he||"demo-project",rt=ie.iat||0,dn=ie.sub||ie.user_id;if(!dn)throw new Error("mockUserToken must contain 'sub' or 'user_id' field!");const Sn=Object.assign({iss:`https://securetoken.google.com/${Et}`,aud:Et,iat:rt,exp:rt+3600,auth_time:rt,sub:dn,user_id:dn,firebase:{sign_in_provider:"custom",identities:{}}},ie);return[Je(JSON.stringify({alg:"none",type:"JWT"})),Je(JSON.stringify(Sn)),""].join(".")}function Ct(){return typeof navigator<"u"&&"string"==typeof navigator.userAgent?navigator.userAgent:""}function xt(){return typeof window<"u"&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(Ct())}function Vt(){const ie="object"==typeof chrome?chrome.runtime:"object"==typeof browser?browser.runtime:void 0;return"object"==typeof ie&&void 0!==ie.id}function Zt(){return"object"==typeof navigator&&"ReactNative"===navigator.product}function Be(){const ie=Ct();return ie.indexOf("MSIE ")>=0||ie.indexOf("Trident/")>=0}function _e(){return!function ze(){var ie;const he=null===(ie=st())||void 0===ie?void 0:ie.forceEnvironment;if("node"===he)return!0;if("browser"===he)return!1;try{return"[object process]"===Object.prototype.toString.call(global.process)}catch{return!1}}()&&!!navigator.userAgent&&navigator.userAgent.includes("Safari")&&!navigator.userAgent.includes("Chrome")}function j(){try{return"object"==typeof indexedDB}catch{return!1}}function W(){return new Promise((ie,he)=>{try{let Pe=!0;const Et="validate-browser-context-for-indexeddb-analytics-module",rt=self.indexedDB.open(Et);rt.onsuccess=()=>{rt.result.close(),Pe||self.indexedDB.deleteDatabase(Et),ie(!0)},rt.onupgradeneeded=()=>{Pe=!1},rt.onerror=()=>{var dn;he((null===(dn=rt.error)||void 0===dn?void 0:dn.message)||"")}}catch(Pe){he(Pe)}})}class ae extends Error{constructor(he,Pe,Et){super(Pe),this.code=he,this.customData=Et,this.name="FirebaseError",Object.setPrototypeOf(this,ae.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,me.prototype.create)}}class me{constructor(he,Pe,Et){this.service=he,this.serviceName=Pe,this.errors=Et}create(he,...Pe){const Et=Pe[0]||{},rt=`${this.service}/${he}`,dn=this.errors[he],Sn=dn?function Ce(ie,he){return ie.replace(at,(Pe,Et)=>{const rt=he[Et];return null!=rt?String(rt):`<${Et}?>`})}(dn,Et):"Error";return new ae(rt,`${this.serviceName}: ${Sn} (${rt}).`,Et)}}const at=/\{\$([^}]+)}/g;function Yn(ie){for(const he in ie)if(Object.prototype.hasOwnProperty.call(ie,he))return!1;return!0}function yt(ie,he){if(ie===he)return!0;const Pe=Object.keys(ie),Et=Object.keys(he);for(const rt of Pe){if(!Et.includes(rt))return!1;const dn=ie[rt],Sn=he[rt];if(Ot(dn)&&Ot(Sn)){if(!yt(dn,Sn))return!1}else if(dn!==Sn)return!1}for(const rt of Et)if(!Pe.includes(rt))return!1;return!0}function Ot(ie){return null!==ie&&"object"==typeof ie}function en(ie){const he=[];for(const[Pe,Et]of Object.entries(ie))Array.isArray(Et)?Et.forEach(rt=>{he.push(encodeURIComponent(Pe)+"="+encodeURIComponent(rt))}):he.push(encodeURIComponent(Pe)+"="+encodeURIComponent(Et));return he.length?"&"+he.join("&"):""}function Ir(ie){const he={};return ie.replace(/^\?/,"").split("&").forEach(Et=>{if(Et){const[rt,dn]=Et.split("=");he[decodeURIComponent(rt)]=decodeURIComponent(dn)}}),he}function gn(ie){const he=ie.indexOf("?");if(!he)return"";const Pe=ie.indexOf("#",he);return ie.substring(he,Pe>0?Pe:void 0)}function Jt(ie,he){const Pe=new Gt(ie,he);return Pe.subscribe.bind(Pe)}class Gt{constructor(he,Pe){this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Promise.resolve(),this.finalized=!1,this.onNoObservers=Pe,this.task.then(()=>{he(this)}).catch(Et=>{this.error(Et)})}next(he){this.forEachObserver(Pe=>{Pe.next(he)})}error(he){this.forEachObserver(Pe=>{Pe.error(he)}),this.close(he)}complete(){this.forEachObserver(he=>{he.complete()}),this.close()}subscribe(he,Pe,Et){let rt;if(void 0===he&&void 0===Pe&&void 0===Et)throw new Error("Missing Observer.");rt=function wr(ie,he){if("object"!=typeof ie||null===ie)return!1;for(const Pe of he)if(Pe in ie&&"function"==typeof ie[Pe])return!0;return!1}(he,["next","error","complete"])?he:{next:he,error:Pe,complete:Et},void 0===rt.next&&(rt.next=kr),void 0===rt.error&&(rt.error=kr),void 0===rt.complete&&(rt.complete=kr);const dn=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then(()=>{try{this.finalError?rt.error(this.finalError):rt.complete()}catch{}}),this.observers.push(rt),dn}unsubscribeOne(he){void 0===this.observers||void 0===this.observers[he]||(delete this.observers[he],this.observerCount-=1,0===this.observerCount&&void 0!==this.onNoObservers&&this.onNoObservers(this))}forEachObserver(he){if(!this.finalized)for(let Pe=0;Pe{if(void 0!==this.observers&&void 0!==this.observers[he])try{Pe(this.observers[he])}catch(Et){typeof console<"u"&&console.error&&console.error(Et)}})}close(he){this.finalized||(this.finalized=!0,void 0!==he&&(this.finalError=he),this.task.then(()=>{this.observers=void 0,this.onNoObservers=void 0}))}}function kr(){}function Xe(ie){return ie&&ie._delegate?ie._delegate:ie}},4442:(En,bt,B)=>{"use strict";B.d(bt,{L:()=>X,a:()=>Ee,b:()=>re,c:()=>Ze,d:()=>Je,g:()=>pt}),B(5531);const X="ionViewWillEnter",Ee="ionViewDidEnter",re="ionViewWillLeave",Ze="ionViewDidLeave",Je="ionViewWillUnload",pt=_e=>_e.classList.contains("ion-page")?_e:_e.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")||_e},5531:(En,bt,B)=>{"use strict";B.d(bt,{a:()=>De,c:()=>d,g:()=>Je});class g{constructor(){this.m=new Map}reset(_e){this.m=new Map(Object.entries(_e))}get(_e,j){const W=this.m.get(_e);return void 0!==W?W:j}getBoolean(_e,j=!1){const W=this.m.get(_e);return void 0===W?j:"string"==typeof W?"true"===W:!!W}getNumber(_e,j){const W=parseFloat(this.m.get(_e));return isNaN(W)?void 0!==j?j:NaN:W}set(_e,j){this.m.set(_e,j)}}const d=new g,Je=pt=>ye(pt),De=(pt,_e)=>("string"==typeof pt&&(_e=pt,pt=void 0),Je(pt).includes(_e)),ye=(pt=window)=>{if(typeof pt>"u")return[];pt.Ionic=pt.Ionic||{};let _e=pt.Ionic.platforms;return null==_e&&(_e=pt.Ionic.platforms=Fe(pt),_e.forEach(j=>pt.document.documentElement.classList.add(`plt-${j}`))),_e},Fe=pt=>{const _e=d.get("platform");return Object.keys(Zt).filter(j=>{const W=null==_e?void 0:_e[j];return"function"==typeof W?W(pt):Zt[j](pt)})},Le=pt=>!!(Tt(pt,/iPad/i)||Tt(pt,/Macintosh/i)&&vt(pt)),ut=pt=>Tt(pt,/android|sink/i),vt=pt=>Vt(pt,"(any-pointer:coarse)"),je=pt=>Ke(pt)||Ct(pt),Ke=pt=>!!(pt.cordova||pt.phonegap||pt.PhoneGap),Ct=pt=>{const _e=pt.Capacitor;return!(null==_e||!_e.isNative)},Tt=(pt,_e)=>_e.test(pt.navigator.userAgent),Vt=(pt,_e)=>{var j;return null===(j=pt.matchMedia)||void 0===j?void 0:j.call(pt,_e).matches},Zt={ipad:Le,iphone:pt=>Tt(pt,/iPhone/i),ios:pt=>Tt(pt,/iPhone|iPod/i)||Le(pt),android:ut,phablet:pt=>{const _e=pt.innerWidth,j=pt.innerHeight,W=Math.min(_e,j),te=Math.max(_e,j);return W>390&&W<520&&te>620&&te<800},tablet:pt=>{const _e=pt.innerWidth,j=pt.innerHeight,W=Math.min(_e,j),te=Math.max(_e,j);return Le(pt)||(pt=>ut(pt)&&!Tt(pt,/mobile/i))(pt)||W>460&&W<820&&te>780&&te<1400},cordova:Ke,capacitor:Ct,electron:pt=>Tt(pt,/electron/i),pwa:pt=>{var _e;return!!(null!==(_e=pt.matchMedia)&&void 0!==_e&&_e.call(pt,"(display-mode: standalone)").matches||pt.navigator.standalone)},mobile:vt,mobileweb:pt=>vt(pt)&&!je(pt),desktop:pt=>!vt(pt),hybrid:je}},9986:(En,bt,B)=>{"use strict";B.d(bt,{c:()=>Ee});var g=B(8476);let d;const Oe=(re,Ze,Je)=>{const De=Ze.startsWith("animation")?(re=>(void 0===d&&(d=void 0===re.style.animationName&&void 0!==re.style.webkitAnimationName?"-webkit-":""),d))(re):"";re.style.setProperty(De+Ze,Je)},X=(re=[],Ze)=>{if(void 0!==Ze){const Je=Array.isArray(Ze)?Ze:[Ze];return[...re,...Je]}return re},Ee=re=>{let Ze,Je,De,ye,Fe,$e,st,xt,ze,Tt,Be,Le=[],Qe=[],ft=[],ut=!1,Mt={},mt=[],vt=[],Me={},je=0,Ke=!1,Ct=!1,Vt=!0,Zt=!1,Dt=!0,rn=!1;const pt=re,_e=[],j=[],W=[],te=[],de=[],ae=[],me=[],Ce=[],at=[],kt=[],Bt=[],vn="function"==typeof AnimationEffect||void 0!==g.w&&"function"==typeof g.w.AnimationEffect,bn="function"==typeof Element&&"function"==typeof Element.prototype.animate&&vn,$n=()=>Bt,Yn=(Y,Z)=>{const Ne=Z.findIndex(Q=>Q.c===Y);Ne>-1&&Z.splice(Ne,1)},yt=(Y,Z)=>((null!=Z&&Z.oneTimeCallback?j:_e).push({c:Y,o:Z}),Be),Xt=()=>{bn&&(Bt.forEach(Y=>{Y.cancel()}),Bt.length=0)},en=()=>{ae.forEach(Y=>{null!=Y&&Y.parentNode&&Y.parentNode.removeChild(Y)}),ae.length=0},Zn=()=>void 0!==Fe?Fe:st?st.getFill():"both",wn=()=>void 0!==xt?xt:void 0!==$e?$e:st?st.getDirection():"normal",Sr=()=>Ke?"linear":void 0!==De?De:st?st.getEasing():"linear",tr=()=>Ct?0:void 0!==ze?ze:void 0!==Je?Je:st?st.getDuration():0,Er=()=>void 0!==ye?ye:st?st.getIterations():1,Mi=()=>void 0!==Tt?Tt:void 0!==Ze?Ze:st?st.getDelay():0,gr=()=>{0!==je&&(je--,0===je&&((()=>{at.forEach(Se=>Se()),kt.forEach(Se=>Se());const Y=Vt?1:0,Z=mt,Ne=vt,Q=Me;te.forEach(Se=>{const it=Se.classList;Z.forEach(Wt=>it.add(Wt)),Ne.forEach(Wt=>it.remove(Wt));for(const Wt in Q)Q.hasOwnProperty(Wt)&&Oe(Se,Wt,Q[Wt])}),ze=void 0,xt=void 0,Tt=void 0,_e.forEach(Se=>Se.c(Y,Be)),j.forEach(Se=>Se.c(Y,Be)),j.length=0,Dt=!0,Vt&&(Zt=!0),Vt=!0})(),st&&st.animationFinish()))},ri=()=>{(()=>{me.forEach(Q=>Q()),Ce.forEach(Q=>Q());const Y=Qe,Z=ft,Ne=Mt;te.forEach(Q=>{const Se=Q.classList;Y.forEach(it=>Se.add(it)),Z.forEach(it=>Se.remove(it));for(const it in Ne)Ne.hasOwnProperty(it)&&Oe(Q,it,Ne[it])})})(),Le.length>0&&bn&&(te.forEach(Y=>{const Z=Y.animate(Le,{id:pt,delay:Mi(),duration:tr(),easing:Sr(),iterations:Er(),fill:Zn(),direction:wn()});Z.pause(),Bt.push(Z)}),Bt.length>0&&(Bt[0].onfinish=()=>{gr()})),ut=!0},xn=Y=>{Y=Math.min(Math.max(Y,0),.9999),bn&&Bt.forEach(Z=>{Z.currentTime=Z.effect.getComputedTiming().delay+tr()*Y,Z.pause()})},Rn=Y=>{Bt.forEach(Z=>{Z.effect.updateTiming({delay:Mi(),duration:tr(),easing:Sr(),iterations:Er(),fill:Zn(),direction:wn()})}),void 0!==Y&&xn(Y)},yr=(Y=!1,Z=!0,Ne)=>(Y&&de.forEach(Q=>{Q.update(Y,Z,Ne)}),bn&&Rn(Ne),Be),Ui=()=>{ut&&(bn?Bt.forEach(Y=>{Y.pause()}):te.forEach(Y=>{Oe(Y,"animation-play-state","paused")}),rn=!0)},St=Y=>new Promise(Z=>{null!=Y&&Y.sync&&(Ct=!0,yt(()=>Ct=!1,{oneTimeCallback:!0})),ut||ri(),Zt&&(bn&&(xn(0),Rn()),Zt=!1),Dt&&(je=de.length+1,Dt=!1);const Ne=()=>{Yn(Q,j),Z()},Q=()=>{Yn(Ne,W),Z()};yt(Q,{oneTimeCallback:!0}),((Y,Z)=>{W.push({c:Y,o:{oneTimeCallback:!0}})})(Ne),de.forEach(Se=>{Se.play()}),bn?(Bt.forEach(Y=>{Y.play()}),(0===Le.length||0===te.length)&&gr()):gr(),rn=!1}),Ut=(Y,Z)=>{const Ne=Le[0];return void 0===Ne||void 0!==Ne.offset&&0!==Ne.offset?Le=[{offset:0,[Y]:Z},...Le]:Ne[Y]=Z,Be};return Be={parentAnimation:st,elements:te,childAnimations:de,id:pt,animationFinish:gr,from:Ut,to:(Y,Z)=>{const Ne=Le[Le.length-1];return void 0===Ne||void 0!==Ne.offset&&1!==Ne.offset?Le=[...Le,{offset:1,[Y]:Z}]:Ne[Y]=Z,Be},fromTo:(Y,Z,Ne)=>Ut(Y,Z).to(Y,Ne),parent:Y=>(st=Y,Be),play:St,pause:()=>(de.forEach(Y=>{Y.pause()}),Ui(),Be),stop:()=>{de.forEach(Y=>{Y.stop()}),ut&&(Xt(),ut=!1),Ke=!1,Ct=!1,Dt=!0,xt=void 0,ze=void 0,Tt=void 0,je=0,Zt=!1,Vt=!0,rn=!1,W.forEach(Y=>Y.c(0,Be)),W.length=0},destroy:Y=>(de.forEach(Z=>{Z.destroy(Y)}),(Y=>{Xt(),Y&&en()})(Y),te.length=0,de.length=0,Le.length=0,_e.length=0,j.length=0,ut=!1,Dt=!0,Be),keyframes:Y=>{const Z=Le!==Y;return Le=Y,Z&&(Y=>{bn&&$n().forEach(Z=>{const Ne=Z.effect;if(Ne.setKeyframes)Ne.setKeyframes(Y);else{const Q=new KeyframeEffect(Ne.target,Y,Ne.getTiming());Z.effect=Q}})})(Le),Be},addAnimation:Y=>{if(null!=Y)if(Array.isArray(Y))for(const Z of Y)Z.parent(Be),de.push(Z);else Y.parent(Be),de.push(Y);return Be},addElement:Y=>{if(null!=Y)if(1===Y.nodeType)te.push(Y);else if(Y.length>=0)for(let Z=0;Z(Fe=Y,yr(!0),Be),direction:Y=>($e=Y,yr(!0),Be),iterations:Y=>(ye=Y,yr(!0),Be),duration:Y=>(!bn&&0===Y&&(Y=1),Je=Y,yr(!0),Be),easing:Y=>(De=Y,yr(!0),Be),delay:Y=>(Ze=Y,yr(!0),Be),getWebAnimations:$n,getKeyframes:()=>Le,getFill:Zn,getDirection:wn,getDelay:Mi,getIterations:Er,getEasing:Sr,getDuration:tr,afterAddRead:Y=>(at.push(Y),Be),afterAddWrite:Y=>(kt.push(Y),Be),afterClearStyles:(Y=[])=>{for(const Z of Y)Me[Z]="";return Be},afterStyles:(Y={})=>(Me=Y,Be),afterRemoveClass:Y=>(vt=X(vt,Y),Be),afterAddClass:Y=>(mt=X(mt,Y),Be),beforeAddRead:Y=>(me.push(Y),Be),beforeAddWrite:Y=>(Ce.push(Y),Be),beforeClearStyles:(Y=[])=>{for(const Z of Y)Mt[Z]="";return Be},beforeStyles:(Y={})=>(Mt=Y,Be),beforeRemoveClass:Y=>(ft=X(ft,Y),Be),beforeAddClass:Y=>(Qe=X(Qe,Y),Be),onFinish:yt,isRunning:()=>0!==je&&!rn,progressStart:(Y=!1,Z)=>(de.forEach(Ne=>{Ne.progressStart(Y,Z)}),Ui(),Ke=Y,ut||ri(),yr(!1,!0,Z),Be),progressStep:Y=>(de.forEach(Z=>{Z.progressStep(Y)}),xn(Y),Be),progressEnd:(Y,Z,Ne)=>(Ke=!1,de.forEach(Q=>{Q.progressEnd(Y,Z,Ne)}),void 0!==Ne&&(ze=Ne),Zt=!1,Vt=!0,0===Y?(xt="reverse"===wn()?"normal":"reverse","reverse"===xt&&(Vt=!1),bn?(yr(),xn(1-Z)):(Tt=(1-Z)*tr()*-1,yr(!1,!1))):1===Y&&(bn?(yr(),xn(Z)):(Tt=Z*tr()*-1,yr(!1,!1))),void 0!==Y&&!st&&St(),Be)}}},464:(En,bt,B)=>{"use strict";B.d(bt,{E:()=>De,a:()=>g,s:()=>Ze});const g=ye=>{try{if(ye instanceof re)return ye.value;if(!Oe()||"string"!=typeof ye||""===ye)return ye;if(ye.includes("onload="))return"";const Fe=document.createDocumentFragment(),$e=document.createElement("div");Fe.appendChild($e),$e.innerHTML=ye,Ee.forEach(ut=>{const st=Fe.querySelectorAll(ut);for(let Mt=st.length-1;Mt>=0;Mt--){const mt=st[Mt];mt.parentNode?mt.parentNode.removeChild(mt):Fe.removeChild(mt);const vt=ge(mt);for(let Me=0;Me{if(ye.nodeType&&1!==ye.nodeType)return;if(typeof NamedNodeMap<"u"&&!(ye.attributes instanceof NamedNodeMap))return void ye.remove();for(let $e=ye.attributes.length-1;$e>=0;$e--){const Le=ye.attributes.item($e),Qe=Le.name;if(!X.includes(Qe.toLowerCase())){ye.removeAttribute(Qe);continue}const ft=Le.value,ut=ye[Qe];(null!=ft&&ft.toLowerCase().includes("javascript:")||null!=ut&&ut.toLowerCase().includes("javascript:"))&&ye.removeAttribute(Qe)}const Fe=ge(ye);for(let $e=0;$enull!=ye.children?ye.children:ye.childNodes,Oe=()=>{var ye;const Fe=window,$e=null===(ye=null==Fe?void 0:Fe.Ionic)||void 0===ye?void 0:ye.config;return!$e||($e.get?$e.get("sanitizerEnabled",!0):!0===$e.sanitizerEnabled||void 0===$e.sanitizerEnabled)},X=["class","id","href","src","name","slot"],Ee=["script","style","iframe","meta","link","object","embed"];class re{constructor(Fe){this.value=Fe}}const Ze=ye=>{const Fe=window,$e=Fe.Ionic;if(!$e||!$e.config||"Object"===$e.config.constructor.name)return Fe.Ionic=Fe.Ionic||{},Fe.Ionic.config=Object.assign(Object.assign({},Fe.Ionic.config),ye),Fe.Ionic.config},De=!1},8621:(En,bt,B)=>{"use strict";B.d(bt,{C:()=>X,a:()=>ge,d:()=>Oe});var g=B(467),d=B(4920);const ge=function(){var Ee=(0,g.A)(function*(re,Ze,Je,De,ye,Fe){var $e;if(re)return re.attachViewToDom(Ze,Je,ye,De);if(!(Fe||"string"==typeof Je||Je instanceof HTMLElement))throw new Error("framework delegate is missing");const Le="string"==typeof Je?null===($e=Ze.ownerDocument)||void 0===$e?void 0:$e.createElement(Je):Je;return De&&De.forEach(Qe=>Le.classList.add(Qe)),ye&&Object.assign(Le,ye),Ze.appendChild(Le),yield new Promise(Qe=>(0,d.c)(Le,Qe)),Le});return function(Ze,Je,De,ye,Fe,$e){return Ee.apply(this,arguments)}}(),Oe=(Ee,re)=>{if(re){if(Ee)return Ee.removeViewFromDom(re.parentElement,re);re.remove()}return Promise.resolve()},X=()=>{let Ee,re;return{attachViewToDom:function(){var De=(0,g.A)(function*(ye,Fe,$e={},Le=[]){var Qe,ft;let ut;if(Ee=ye,Fe){const Mt="string"==typeof Fe?null===(Qe=Ee.ownerDocument)||void 0===Qe?void 0:Qe.createElement(Fe):Fe;Le.forEach(mt=>Mt.classList.add(mt)),Object.assign(Mt,$e),Ee.appendChild(Mt),ut=Mt,yield new Promise(mt=>(0,d.c)(Mt,mt))}else if(Ee.children.length>0&&("ION-MODAL"===Ee.tagName||"ION-POPOVER"===Ee.tagName)&&!(ut=Ee.children[0]).classList.contains("ion-delegate-host")){const mt=null===(ft=Ee.ownerDocument)||void 0===ft?void 0:ft.createElement("div");mt.classList.add("ion-delegate-host"),Le.forEach(vt=>mt.classList.add(vt)),mt.append(...Ee.children),Ee.appendChild(mt),ut=mt}const st=document.querySelector("ion-app")||document.body;return re=document.createComment("ionic teleport"),Ee.parentNode.insertBefore(re,Ee),st.appendChild(Ee),null!=ut?ut:Ee});return function(Fe,$e){return De.apply(this,arguments)}}(),removeViewFromDom:()=>(Ee&&re&&(re.parentNode.insertBefore(Ee,re),re.remove()),Promise.resolve())}}},1970:(En,bt,B)=>{"use strict";B.d(bt,{B:()=>Oe,G:()=>X});class d{constructor(re,Ze,Je,De,ye){this.id=Ze,this.name=Je,this.disableScroll=ye,this.priority=1e6*De+Ze,this.ctrl=re}canStart(){return!!this.ctrl&&this.ctrl.canStart(this.name)}start(){return!!this.ctrl&&this.ctrl.start(this.name,this.id,this.priority)}capture(){if(!this.ctrl)return!1;const re=this.ctrl.capture(this.name,this.id,this.priority);return re&&this.disableScroll&&this.ctrl.disableScroll(this.id),re}release(){this.ctrl&&(this.ctrl.release(this.id),this.disableScroll&&this.ctrl.enableScroll(this.id))}destroy(){this.release(),this.ctrl=void 0}}class ge{constructor(re,Ze,Je,De){this.id=Ze,this.disable=Je,this.disableScroll=De,this.ctrl=re}block(){if(this.ctrl){if(this.disable)for(const re of this.disable)this.ctrl.disableGesture(re,this.id);this.disableScroll&&this.ctrl.disableScroll(this.id)}}unblock(){if(this.ctrl){if(this.disable)for(const re of this.disable)this.ctrl.enableGesture(re,this.id);this.disableScroll&&this.ctrl.enableScroll(this.id)}}destroy(){this.unblock(),this.ctrl=void 0}}const Oe="backdrop-no-scroll",X=new class g{constructor(){this.gestureId=0,this.requestedStart=new Map,this.disabledGestures=new Map,this.disabledScroll=new Set}createGesture(re){var Ze;return new d(this,this.newID(),re.name,null!==(Ze=re.priority)&&void 0!==Ze?Ze:0,!!re.disableScroll)}createBlocker(re={}){return new ge(this,this.newID(),re.disable,!!re.disableScroll)}start(re,Ze,Je){return this.canStart(re)?(this.requestedStart.set(Ze,Je),!0):(this.requestedStart.delete(Ze),!1)}capture(re,Ze,Je){if(!this.start(re,Ze,Je))return!1;const De=this.requestedStart;let ye=-1e4;if(De.forEach(Fe=>{ye=Math.max(ye,Fe)}),ye===Je){this.capturedId=Ze,De.clear();const Fe=new CustomEvent("ionGestureCaptured",{detail:{gestureName:re}});return document.dispatchEvent(Fe),!0}return De.delete(Ze),!1}release(re){this.requestedStart.delete(re),this.capturedId===re&&(this.capturedId=void 0)}disableGesture(re,Ze){let Je=this.disabledGestures.get(re);void 0===Je&&(Je=new Set,this.disabledGestures.set(re,Je)),Je.add(Ze)}enableGesture(re,Ze){const Je=this.disabledGestures.get(re);void 0!==Je&&Je.delete(Ze)}disableScroll(re){this.disabledScroll.add(re),1===this.disabledScroll.size&&document.body.classList.add(Oe)}enableScroll(re){this.disabledScroll.delete(re),0===this.disabledScroll.size&&document.body.classList.remove(Oe)}canStart(re){return!(void 0!==this.capturedId||this.isDisabled(re))}isCaptured(){return void 0!==this.capturedId}isScrollDisabled(){return this.disabledScroll.size>0}isDisabled(re){const Ze=this.disabledGestures.get(re);return!!(Ze&&Ze.size>0)}newID(){return this.gestureId++,this.gestureId}}},6411:(En,bt,B)=>{"use strict";B.r(bt),B.d(bt,{MENU_BACK_BUTTON_PRIORITY:()=>Je,OVERLAY_BACK_BUTTON_PRIORITY:()=>Ze,blockHardwareBackButton:()=>Ee,shouldUseCloseWatcher:()=>X,startHardwareBackButton:()=>re});var g=B(467),d=B(8476),ge=B(3664);B(9672);const X=()=>ge.c.get("experimentalCloseWatcher",!1)&&void 0!==d.w&&"CloseWatcher"in d.w,Ee=()=>{document.addEventListener("backbutton",()=>{})},re=()=>{const De=document;let ye=!1;const Fe=()=>{if(ye)return;let $e=0,Le=[];const Qe=new CustomEvent("ionBackButton",{bubbles:!1,detail:{register(st,Mt){Le.push({priority:st,handler:Mt,id:$e++})}}});De.dispatchEvent(Qe);const ft=function(){var st=(0,g.A)(function*(Mt){try{if(null!=Mt&&Mt.handler){const mt=Mt.handler(ut);null!=mt&&(yield mt)}}catch(mt){console.error(mt)}});return function(mt){return st.apply(this,arguments)}}(),ut=()=>{if(Le.length>0){let st={priority:Number.MIN_SAFE_INTEGER,handler:()=>{},id:-1};Le.forEach(Mt=>{Mt.priority>=st.priority&&(st=Mt)}),ye=!0,Le=Le.filter(Mt=>Mt.id!==st.id),ft(st).then(()=>ye=!1)}};ut()};if(X()){let $e;const Le=()=>{null==$e||$e.destroy(),$e=new d.w.CloseWatcher,$e.onclose=()=>{Fe(),Le()}};Le()}else De.addEventListener("backbutton",Fe)},Ze=100,Je=99},4920:(En,bt,B)=>{"use strict";B.d(bt,{a:()=>Ze,b:()=>Je,c:()=>ge,d:()=>Le,e:()=>Mt,f:()=>$e,g:()=>De,h:()=>X,i:()=>re,j:()=>Qe,k:()=>Oe,l:()=>Fe,m:()=>ft,n:()=>st,o:()=>mt,p:()=>ut,r:()=>ye,s:()=>vt,t:()=>g});const g=(Me,je=0)=>new Promise(Ke=>{d(Me,je,Ke)}),d=(Me,je=0,Ke)=>{let Ct,xt;const ze={passive:!0},Vt=()=>{Ct&&Ct()},Zt=Dt=>{(void 0===Dt||Me===Dt.target)&&(Vt(),Ke(Dt))};return Me&&(Me.addEventListener("webkitTransitionEnd",Zt,ze),Me.addEventListener("transitionend",Zt,ze),xt=setTimeout(Zt,je+500),Ct=()=>{void 0!==xt&&(clearTimeout(xt),xt=void 0),Me.removeEventListener("webkitTransitionEnd",Zt,ze),Me.removeEventListener("transitionend",Zt,ze)}),Vt},ge=(Me,je)=>{Me.componentOnReady?Me.componentOnReady().then(Ke=>je(Ke)):ye(()=>je(Me))},Oe=Me=>void 0!==Me.componentOnReady,X=(Me,je=[])=>{const Ke={};return je.forEach(Ct=>{Me.hasAttribute(Ct)&&(null!==Me.getAttribute(Ct)&&(Ke[Ct]=Me.getAttribute(Ct)),Me.removeAttribute(Ct))}),Ke},Ee=["role","aria-activedescendant","aria-atomic","aria-autocomplete","aria-braillelabel","aria-brailleroledescription","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colindextext","aria-colspan","aria-controls","aria-current","aria-describedby","aria-description","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowindextext","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext"],re=(Me,je)=>{let Ke=Ee;return je&&je.length>0&&(Ke=Ke.filter(Ct=>!je.includes(Ct))),X(Me,Ke)},Ze=(Me,je,Ke,Ct)=>{var xt;if(typeof window<"u"){const ze=window,Tt=null===(xt=null==ze?void 0:ze.Ionic)||void 0===xt?void 0:xt.config;if(Tt){const Vt=Tt.get("_ael");if(Vt)return Vt(Me,je,Ke,Ct);if(Tt._ael)return Tt._ael(Me,je,Ke,Ct)}}return Me.addEventListener(je,Ke,Ct)},Je=(Me,je,Ke,Ct)=>{var xt;if(typeof window<"u"){const ze=window,Tt=null===(xt=null==ze?void 0:ze.Ionic)||void 0===xt?void 0:xt.config;if(Tt){const Vt=Tt.get("_rel");if(Vt)return Vt(Me,je,Ke,Ct);if(Tt._rel)return Tt._rel(Me,je,Ke,Ct)}}return Me.removeEventListener(je,Ke,Ct)},De=(Me,je=Me)=>Me.shadowRoot||je,ye=Me=>"function"==typeof __zone_symbol__requestAnimationFrame?__zone_symbol__requestAnimationFrame(Me):"function"==typeof requestAnimationFrame?requestAnimationFrame(Me):setTimeout(Me),Fe=Me=>!!Me.shadowRoot&&!!Me.attachShadow,$e=Me=>{if(Me.focus(),Me.classList.contains("ion-focusable")){const je=Me.closest("ion-app");je&&je.setFocus([Me])}},Le=(Me,je,Ke,Ct,xt)=>{if(Me||Fe(je)){let ze=je.querySelector("input.aux-input");ze||(ze=je.ownerDocument.createElement("input"),ze.type="hidden",ze.classList.add("aux-input"),je.appendChild(ze)),ze.disabled=xt,ze.name=Ke,ze.value=Ct||""}},Qe=(Me,je,Ke)=>Math.max(Me,Math.min(je,Ke)),ft=(Me,je)=>{if(!Me){const Ke="ASSERT: "+je;throw console.error(Ke),new Error(Ke)}},ut=Me=>{if(Me){const je=Me.changedTouches;if(je&&je.length>0){const Ke=je[0];return{x:Ke.clientX,y:Ke.clientY}}if(void 0!==Me.pageX)return{x:Me.pageX,y:Me.pageY}}return{x:0,y:0}},st=Me=>{const je="rtl"===document.dir;switch(Me){case"start":return je;case"end":return!je;default:throw new Error(`"${Me}" is not a valid value for [side]. Use "start" or "end" instead.`)}},Mt=(Me,je)=>{const Ke=Me._original||Me;return{_original:Me,emit:mt(Ke.emit.bind(Ke),je)}},mt=(Me,je=0)=>{let Ke;return(...Ct)=>{clearTimeout(Ke),Ke=setTimeout(Me,je,...Ct)}},vt=(Me,je)=>{if(null!=Me||(Me={}),null!=je||(je={}),Me===je)return!0;const Ke=Object.keys(Me);if(Ke.length!==Object.keys(je).length)return!1;for(const Ct of Ke)if(!(Ct in je)||Me[Ct]!==je[Ct])return!1;return!0}},5465:(En,bt,B)=>{"use strict";B.d(bt,{m:()=>$e});var g=B(467),d=B(8476),ge=B(6411),Oe=B(4929),X=B(4920),Ee=B(3664),re=B(9986);const Ze=Le=>(0,re.c)().duration(Le?400:300),Je=Le=>{let Qe,ft;const ut=Le.width+8,st=(0,re.c)(),Mt=(0,re.c)();Le.isEndSide?(Qe=ut+"px",ft="0px"):(Qe=-ut+"px",ft="0px"),st.addElement(Le.menuInnerEl).fromTo("transform",`translateX(${Qe})`,`translateX(${ft})`);const vt="ios"===(0,Ee.b)(Le),Me=vt?.2:.25;return Mt.addElement(Le.backdropEl).fromTo("opacity",.01,Me),Ze(vt).addAnimation([st,Mt])},De=Le=>{let Qe,ft;const ut=(0,Ee.b)(Le),st=Le.width;Le.isEndSide?(Qe=-st+"px",ft=st+"px"):(Qe=st+"px",ft=-st+"px");const Mt=(0,re.c)().addElement(Le.menuInnerEl).fromTo("transform",`translateX(${ft})`,"translateX(0px)"),mt=(0,re.c)().addElement(Le.contentEl).fromTo("transform","translateX(0px)",`translateX(${Qe})`),vt=(0,re.c)().addElement(Le.backdropEl).fromTo("opacity",.01,.32);return Ze("ios"===ut).addAnimation([Mt,mt,vt])},ye=Le=>{const Qe=(0,Ee.b)(Le),ft=Le.width*(Le.isEndSide?-1:1)+"px",ut=(0,re.c)().addElement(Le.contentEl).fromTo("transform","translateX(0px)",`translateX(${ft})`);return Ze("ios"===Qe).addAnimation(ut)},$e=(()=>{const Le=new Map,Qe=[],ft=function(){var W=(0,g.A)(function*(te){const de=yield je(te,!0);return!!de&&de.open()});return function(de){return W.apply(this,arguments)}}(),ut=function(){var W=(0,g.A)(function*(te){const de=yield void 0!==te?je(te,!0):Ke();return void 0!==de&&de.close()});return function(de){return W.apply(this,arguments)}}(),st=function(){var W=(0,g.A)(function*(te){const de=yield je(te,!0);return!!de&&de.toggle()});return function(de){return W.apply(this,arguments)}}(),Mt=function(){var W=(0,g.A)(function*(te,de){const ae=yield je(de);return ae&&(ae.disabled=!te),ae});return function(de,ae){return W.apply(this,arguments)}}(),mt=function(){var W=(0,g.A)(function*(te,de){const ae=yield je(de);return ae&&(ae.swipeGesture=te),ae});return function(de,ae){return W.apply(this,arguments)}}(),vt=function(){var W=(0,g.A)(function*(te){if(null!=te){const de=yield je(te);return void 0!==de&&de.isOpen()}return void 0!==(yield Ke())});return function(de){return W.apply(this,arguments)}}(),Me=function(){var W=(0,g.A)(function*(te){const de=yield je(te);return!!de&&!de.disabled});return function(de){return W.apply(this,arguments)}}(),je=function(){var W=(0,g.A)(function*(te,de=!1){if(yield j(),"start"===te||"end"===te){const me=Qe.filter(at=>at.side===te&&!at.disabled);if(me.length>=1)return me.length>1&&de&&(0,Oe.p)(`menuController queried for a menu on the "${te}" side, but ${me.length} menus were found. The first menu reference will be used. If this is not the behavior you want then pass the ID of the menu instead of its side.`,me.map(at=>at.el)),me[0].el;const Ce=Qe.filter(at=>at.side===te);if(Ce.length>=1)return Ce.length>1&&de&&(0,Oe.p)(`menuController queried for a menu on the "${te}" side, but ${Ce.length} menus were found. The first menu reference will be used. If this is not the behavior you want then pass the ID of the menu instead of its side.`,Ce.map(at=>at.el)),Ce[0].el}else if(null!=te)return _e(me=>me.menuId===te);return _e(me=>!me.disabled)||(Qe.length>0?Qe[0].el:void 0)});return function(de){return W.apply(this,arguments)}}(),Ke=function(){var W=(0,g.A)(function*(){return yield j(),Be()});return function(){return W.apply(this,arguments)}}(),Ct=function(){var W=(0,g.A)(function*(){return yield j(),rn()});return function(){return W.apply(this,arguments)}}(),xt=function(){var W=(0,g.A)(function*(){return yield j(),pt()});return function(){return W.apply(this,arguments)}}(),ze=(W,te)=>{Le.set(W,te)},Zt=function(){var W=(0,g.A)(function*(te,de,ae){if(pt())return!1;if(de){const me=yield Ke();me&&te.el!==me&&(yield me.setOpen(!1,!1))}return te._setOpen(de,ae)});return function(de,ae,me){return W.apply(this,arguments)}}(),Be=()=>_e(W=>W._isOpen),rn=()=>Qe.map(W=>W.el),pt=()=>Qe.some(W=>W.isAnimating),_e=W=>{const te=Qe.find(W);if(void 0!==te)return te.el},j=()=>Promise.all(Array.from(document.querySelectorAll("ion-menu")).map(W=>new Promise(te=>(0,X.c)(W,te))));return ze("reveal",ye),ze("push",De),ze("overlay",Je),null==d.d||d.d.addEventListener("ionBackButton",W=>{const te=Be();te&&W.detail.register(ge.MENU_BACK_BUTTON_PRIORITY,()=>te.close())}),{registerAnimation:ze,get:je,getMenus:Ct,getOpen:Ke,isEnabled:Me,swipeGesture:mt,isAnimating:xt,isOpen:vt,enable:Mt,toggle:st,close:ut,open:ft,_getOpenSync:Be,_createAnimation:(W,te)=>{const de=Le.get(W);if(!de)throw new Error("animation not registered");return de(te)},_register:W=>{Qe.indexOf(W)<0&&Qe.push(W)},_unregister:W=>{const te=Qe.indexOf(W);te>-1&&Qe.splice(te,1)},_setOpen:Zt}})()},8607:(En,bt,B)=>{"use strict";B.r(bt),B.d(bt,{GESTURE_CONTROLLER:()=>g.G,createGesture:()=>Je});var g=B(1970);const d=($e,Le,Qe,ft)=>{const ut=ge($e)?{capture:!!ft.capture,passive:!!ft.passive}:!!ft.capture;let st,Mt;return $e.__zone_symbol__addEventListener?(st="__zone_symbol__addEventListener",Mt="__zone_symbol__removeEventListener"):(st="addEventListener",Mt="removeEventListener"),$e[st](Le,Qe,ut),()=>{$e[Mt](Le,Qe,ut)}},ge=$e=>{if(void 0===Oe)try{const Le=Object.defineProperty({},"passive",{get:()=>{Oe=!0}});$e.addEventListener("optsTest",()=>{},Le)}catch{Oe=!1}return!!Oe};let Oe;const re=$e=>$e instanceof Document?$e:$e.ownerDocument,Je=$e=>{let Le=!1,Qe=!1,ft=!0,ut=!1;const st=Object.assign({disableScroll:!1,direction:"x",gesturePriority:0,passive:!0,maxAngle:40,threshold:10},$e),Mt=st.canStart,mt=st.onWillStart,vt=st.onStart,Me=st.onEnd,je=st.notCaptured,Ke=st.onMove,Ct=st.threshold,xt=st.passive,ze=st.blurOnStart,Tt={type:"pan",startX:0,startY:0,startTime:0,currentX:0,currentY:0,velocityX:0,velocityY:0,deltaX:0,deltaY:0,currentTime:0,event:void 0,data:void 0},Vt=(($e,Le,Qe)=>{const ft=Qe*(Math.PI/180),ut="x"===$e,st=Math.cos(ft),Mt=Le*Le;let mt=0,vt=0,Me=!1,je=0;return{start(Ke,Ct){mt=Ke,vt=Ct,je=0,Me=!0},detect(Ke,Ct){if(!Me)return!1;const xt=Ke-mt,ze=Ct-vt,Tt=xt*xt+ze*ze;if(Ttst?1:Zt<-st?-1:0,Me=!1,!0},isGesture:()=>0!==je,getDirection:()=>je}})(st.direction,st.threshold,st.maxAngle),Zt=g.G.createGesture({name:$e.gestureName,priority:$e.gesturePriority,disableScroll:$e.disableScroll}),rn=()=>{Le&&(ut=!1,Ke&&Ke(Tt))},pt=()=>!!Zt.capture()&&(Le=!0,ft=!1,Tt.startX=Tt.currentX,Tt.startY=Tt.currentY,Tt.startTime=Tt.currentTime,mt?mt(Tt).then(j):j(),!0),j=()=>{ze&&(()=>{if(typeof document<"u"){const me=document.activeElement;null!=me&&me.blur&&me.blur()}})(),vt&&vt(Tt),ft=!0},W=()=>{Le=!1,Qe=!1,ut=!1,ft=!0,Zt.release()},te=me=>{const Ce=Le,at=ft;if(W(),at){if(De(Tt,me),Ce)return void(Me&&Me(Tt));je&&je(Tt)}},de=(($e,Le,Qe,ft,ut)=>{let st,Mt,mt,vt,Me,je,Ke,Ct=0;const xt=_e=>{Ct=Date.now()+2e3,Le(_e)&&(!Mt&&Qe&&(Mt=d($e,"touchmove",Qe,ut)),mt||(mt=d(_e.target,"touchend",Tt,ut)),vt||(vt=d(_e.target,"touchcancel",Tt,ut)))},ze=_e=>{Ct>Date.now()||Le(_e)&&(!je&&Qe&&(je=d(re($e),"mousemove",Qe,ut)),Ke||(Ke=d(re($e),"mouseup",Vt,ut)))},Tt=_e=>{Zt(),ft&&ft(_e)},Vt=_e=>{Dt(),ft&&ft(_e)},Zt=()=>{Mt&&Mt(),mt&&mt(),vt&&vt(),Mt=mt=vt=void 0},Dt=()=>{je&&je(),Ke&&Ke(),je=Ke=void 0},Be=()=>{Zt(),Dt()},rn=(_e=!0)=>{_e?(st||(st=d($e,"touchstart",xt,ut)),Me||(Me=d($e,"mousedown",ze,ut))):(st&&st(),Me&&Me(),st=Me=void 0,Be())};return{enable:rn,stop:Be,destroy:()=>{rn(!1),ft=Qe=Le=void 0}}})(st.el,me=>{const Ce=Fe(me);return!(Qe||!ft||(ye(me,Tt),Tt.startX=Tt.currentX,Tt.startY=Tt.currentY,Tt.startTime=Tt.currentTime=Ce,Tt.velocityX=Tt.velocityY=Tt.deltaX=Tt.deltaY=0,Tt.event=me,Mt&&!1===Mt(Tt))||(Zt.release(),!Zt.start()))&&(Qe=!0,0===Ct?pt():(Vt.start(Tt.startX,Tt.startY),!0))},me=>{Le?!ut&&ft&&(ut=!0,De(Tt,me),requestAnimationFrame(rn)):(De(Tt,me),Vt.detect(Tt.currentX,Tt.currentY)&&(!Vt.isGesture()||!pt())&&ae())},te,{capture:!1,passive:xt}),ae=()=>{W(),de.stop(),je&&je(Tt)};return{enable(me=!0){me||(Le&&te(void 0),W()),de.enable(me)},destroy(){Zt.destroy(),de.destroy()}}},De=($e,Le)=>{if(!Le)return;const Qe=$e.currentX,ft=$e.currentY,ut=$e.currentTime;ye(Le,$e);const st=$e.currentX,Mt=$e.currentY,vt=($e.currentTime=Fe(Le))-ut;if(vt>0&&vt<100){const je=(Mt-ft)/vt;$e.velocityX=(st-Qe)/vt*.7+.3*$e.velocityX,$e.velocityY=.7*je+.3*$e.velocityY}$e.deltaX=st-$e.startX,$e.deltaY=Mt-$e.startY,$e.event=Le},ye=($e,Le)=>{let Qe=0,ft=0;if($e){const ut=$e.changedTouches;if(ut&&ut.length>0){const st=ut[0];Qe=st.clientX,ft=st.clientY}else void 0!==$e.pageX&&(Qe=$e.pageX,ft=$e.pageY)}Le.currentX=Qe,Le.currentY=ft},Fe=$e=>$e.timeStamp||Date.now()},9672:(En,bt,B)=>{"use strict";B.d(bt,{B:()=>Ee,a:()=>Fo,b:()=>xr,c:()=>at,d:()=>bn,e:()=>ar,f:()=>pt,g:()=>kt,h:()=>Be,i:()=>vn,j:()=>yr,k:()=>re,r:()=>Nn,w:()=>ui});var g=B(467);var Oe=Object.defineProperty,Ee={isDev:!1,isBrowser:!0,isServer:!1,isTesting:!1},re=U=>{const ne=new URL(U,jn.$resourcesUrl$);return ne.origin!==sr.location.origin?ne.href:ne.pathname},Ze={},Fe=U=>"object"==(U=typeof U)||"function"===U;function $e(U){var ne,Ae,ke;return null!=(ke=null==(Ae=null==(ne=U.head)?void 0:ne.querySelector('meta[name="csp-nonce"]'))?void 0:Ae.getAttribute("content"))?ke:void 0}((U,ne)=>{for(var Ae in ne)Oe(U,Ae,{get:ne[Ae],enumerable:!0})})({},{err:()=>ft,map:()=>ut,ok:()=>Qe,unwrap:()=>st,unwrapErr:()=>Mt});var Qe=U=>({isOk:!0,isErr:!1,value:U}),ft=U=>({isOk:!1,isErr:!0,value:U});function ut(U,ne){if(U.isOk){const Ae=ne(U.value);return Ae instanceof Promise?Ae.then(ke=>Qe(ke)):Qe(Ae)}if(U.isErr)return ft(U.value);throw"should never get here"}var st=U=>{if(U.isOk)return U.value;throw U.value},Mt=U=>{if(U.isErr)return U.value;throw U.value},xt="s-id",ze="sty-id",Zt="slot-fb{display:contents}slot-fb[hidden]{display:none}",Dt="http://www.w3.org/1999/xlink",Be=(U,ne,...Ae)=>{let ke=null,ot=null,et=null,Lt=!1,zt=!1;const Kt=[],Yt=Cn=>{for(let Ln=0;LnCn[Ln]).join(" "))}}if("function"==typeof U)return U(null===ne?{}:ne,Kt,j);const _n=rn(U,null);return _n.$attrs$=ne,Kt.length>0&&(_n.$children$=Kt),_n.$key$=ot,_n.$name$=et,_n},rn=(U,ne)=>({$flags$:0,$tag$:U,$text$:ne,$elm$:null,$children$:null,$attrs$:null,$key$:null,$name$:null}),pt={},j={forEach:(U,ne)=>U.map(W).forEach(ne),map:(U,ne)=>U.map(W).map(ne).map(te)},W=U=>({vattrs:U.$attrs$,vchildren:U.$children$,vkey:U.$key$,vname:U.$name$,vtag:U.$tag$,vtext:U.$text$}),te=U=>{if("function"==typeof U.vtag){const Ae={...U.vattrs};return U.vkey&&(Ae.key=U.vkey),U.vname&&(Ae.name=U.vname),Be(U.vtag,Ae,...U.vchildren||[])}const ne=rn(U.vtag,U.vtext);return ne.$attrs$=U.vattrs,ne.$children$=U.vchildren,ne.$key$=U.vkey,ne.$name$=U.vname,ne},ae=(U,ne,Ae,ke,ot,et,Lt)=>{let zt,Kt,Yt,_n;if(1===et.nodeType){for(zt=et.getAttribute("c-id"),zt&&(Kt=zt.split("."),(Kt[0]===Lt||"0"===Kt[0])&&(Yt={$flags$:0,$hostId$:Kt[0],$nodeId$:Kt[1],$depth$:Kt[2],$index$:Kt[3],$tag$:et.tagName.toLowerCase(),$elm$:et,$attrs$:null,$children$:null,$key$:null,$name$:null,$text$:null},ne.push(Yt),et.removeAttribute("c-id"),U.$children$||(U.$children$=[]),U.$children$[Yt.$index$]=Yt,U=Yt,ke&&"0"===Yt.$depth$&&(ke[Yt.$index$]=Yt.$elm$))),_n=et.childNodes.length-1;_n>=0;_n--)ae(U,ne,Ae,ke,ot,et.childNodes[_n],Lt);if(et.shadowRoot)for(_n=et.shadowRoot.childNodes.length-1;_n>=0;_n--)ae(U,ne,Ae,ke,ot,et.shadowRoot.childNodes[_n],Lt)}else if(8===et.nodeType)Kt=et.nodeValue.split("."),(Kt[1]===Lt||"0"===Kt[1])&&(zt=Kt[0],Yt={$flags$:0,$hostId$:Kt[1],$nodeId$:Kt[2],$depth$:Kt[3],$index$:Kt[4],$elm$:et,$attrs$:null,$children$:null,$key$:null,$name$:null,$tag$:null,$text$:null},"t"===zt?(Yt.$elm$=et.nextSibling,Yt.$elm$&&3===Yt.$elm$.nodeType&&(Yt.$text$=Yt.$elm$.textContent,ne.push(Yt),et.remove(),U.$children$||(U.$children$=[]),U.$children$[Yt.$index$]=Yt,ke&&"0"===Yt.$depth$&&(ke[Yt.$index$]=Yt.$elm$))):Yt.$hostId$===Lt&&("s"===zt?(Yt.$tag$="slot",et["s-sn"]=Kt[5]?Yt.$name$=Kt[5]:"",et["s-sr"]=!0,ke&&(Yt.$elm$=Or.createElement(Yt.$tag$),Yt.$name$&&Yt.$elm$.setAttribute("name",Yt.$name$),et.parentNode.insertBefore(Yt.$elm$,et),et.remove(),"0"===Yt.$depth$&&(ke[Yt.$index$]=Yt.$elm$)),Ae.push(Yt),U.$children$||(U.$children$=[]),U.$children$[Yt.$index$]=Yt):"r"===zt&&(ke?et.remove():(ot["s-cr"]=et,et["s-cn"]=!0))));else if(U&&"style"===U.$tag$){const Cn=rn(null,et.textContent);Cn.$elm$=et,Cn.$index$="0",U.$children$=[Cn]}},me=(U,ne)=>{if(1===U.nodeType){let Ae=0;for(;Aesi.push(U),kt=U=>oi(U).$modeName$,vn=U=>oi(U).$hostElement$,bn=(U,ne,Ae)=>{const ke=vn(U);return{emit:ot=>$n(ke,ne,{bubbles:!!(4&Ae),composed:!!(2&Ae),cancelable:!!(1&Ae),detail:ot})}},$n=(U,ne,Ae)=>{const ke=jn.ce(ne,Ae);return U.dispatchEvent(ke),ke},qn=new WeakMap,er=(U,ne,Ae)=>{let ke=ps.get(U);To&&Ae?(ke=ke||new CSSStyleSheet,"string"==typeof ke?ke=ne:ke.replaceSync(ne)):ke=ne,ps.set(U,ke)},yn=(U,ne,Ae)=>{var ke;const ot=Yn(ne,Ae),et=ps.get(ot);if(U=11===U.nodeType?U:Or,et)if("string"==typeof et){let zt,Lt=qn.get(U=U.head||U);if(Lt||qn.set(U,Lt=new Set),!Lt.has(ot)){if(U.host&&(zt=U.querySelector(`[${ze}="${ot}"]`)))zt.innerHTML=et;else{zt=Or.createElement("style"),zt.innerHTML=et;const Kt=null!=(ke=jn.$nonce$)?ke:$e(Or);null!=Kt&&zt.setAttribute("nonce",Kt),U.insertBefore(zt,U.querySelector("link"))}4&ne.$flags$&&(zt.innerHTML+=Zt),Lt&&Lt.add(ot)}}else U.adoptedStyleSheets.includes(et)||(U.adoptedStyleSheets=[...U.adoptedStyleSheets,et]);return ot},Yn=(U,ne)=>"sc-"+(ne&&32&U.$flags$?U.$tagName$+"-"+ne:U.$tagName$),Ve=U=>U.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g,"$1{"),yt=(U,ne,Ae,ke,ot,et)=>{if(Ae!==ke){let Lt=ko(U,ne),zt=ne.toLowerCase();if("class"===ne){const Kt=U.classList,Yt=Xt(Ae),_n=Xt(ke);Kt.remove(...Yt.filter(Cn=>Cn&&!_n.includes(Cn))),Kt.add(..._n.filter(Cn=>Cn&&!Yt.includes(Cn)))}else if("style"===ne){for(const Kt in Ae)(!ke||null==ke[Kt])&&(Kt.includes("-")?U.style.removeProperty(Kt):U.style[Kt]="");for(const Kt in ke)(!Ae||ke[Kt]!==Ae[Kt])&&(Kt.includes("-")?U.style.setProperty(Kt,ke[Kt]):U.style[Kt]=ke[Kt])}else if("key"!==ne)if("ref"===ne)ke&&ke(U);else if(Lt||"o"!==ne[0]||"n"!==ne[1]){const Kt=Fe(ke);if((Lt||Kt&&null!==ke)&&!ot)try{if(U.tagName.includes("-"))U[ne]=ke;else{const _n=null==ke?"":ke;"list"===ne?Lt=!1:(null==Ae||U[ne]!=_n)&&(U[ne]=_n)}}catch{}let Yt=!1;zt!==(zt=zt.replace(/^xlink\:?/,""))&&(ne=zt,Yt=!0),null==ke||!1===ke?(!1!==ke||""===U.getAttribute(ne))&&(Yt?U.removeAttributeNS(Dt,ne):U.removeAttribute(ne)):(!Lt||4&et||ot)&&!Kt&&(ke=!0===ke?"":ke,Yt?U.setAttributeNS(Dt,ne,ke):U.setAttribute(ne,ke))}else if(ne="-"===ne[2]?ne.slice(3):ko(sr,zt)?zt.slice(2):zt[2]+ne.slice(3),Ae||ke){const Kt=ne.endsWith(en);ne=ne.replace(Ir,""),Ae&&jn.rel(U,ne,Ae,Kt),ke&&jn.ael(U,ne,ke,Kt)}}},Ot=/\s/,Xt=U=>U?U.split(Ot):[],en="Capture",Ir=new RegExp(en+"$"),gn=(U,ne,Ae)=>{const ke=11===ne.$elm$.nodeType&&ne.$elm$.host?ne.$elm$.host:ne.$elm$,ot=U&&U.$attrs$||Ze,et=ne.$attrs$||Ze;for(const Lt of mn(Object.keys(ot)))Lt in et||yt(ke,Lt,ot[Lt],void 0,Ae,ne.$flags$);for(const Lt of mn(Object.keys(et)))yt(ke,Lt,ot[Lt],et[Lt],Ae,ne.$flags$)};function mn(U){return U.includes("ref")?[...U.filter(ne=>"ref"!==ne),"ref"]:U}var Jt,Gt,pr,wr=!1,kr=!1,Mr=!1,_r=!1,Bn=(U,ne,Ae,ke)=>{var ot;const et=ne.$children$[Ae];let zt,Kt,Yt,Lt=0;if(wr||(Mr=!0,"slot"===et.$tag$&&(Jt&&ke.classList.add(Jt+"-s"),et.$flags$|=et.$children$?2:1)),null!==et.$text$)zt=et.$elm$=Or.createTextNode(et.$text$);else if(1&et.$flags$)zt=et.$elm$=Or.createTextNode("");else{if(_r||(_r="svg"===et.$tag$),zt=et.$elm$=Or.createElementNS(_r?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",2&et.$flags$?"slot-fb":et.$tag$),_r&&"foreignObject"===et.$tag$&&(_r=!1),gn(null,et,_r),(U=>null!=U)(Jt)&&zt["s-si"]!==Jt&&zt.classList.add(zt["s-si"]=Jt),et.$children$)for(Lt=0;Lt{jn.$flags$|=1;const ne=U.closest(pr.toLowerCase());if(null!=ne){const Ae=Array.from(ne.childNodes).find(ot=>ot["s-cr"]),ke=Array.from(U.childNodes);for(const ot of Ae?ke.reverse():ke)null!=ot["s-sh"]&&(he(ne,ot,null!=Ae?Ae:null),ot["s-sh"]=void 0,Mr=!0)}jn.$flags$&=-2},Zn=(U,ne)=>{jn.$flags$|=1;const Ae=Array.from(U.childNodes);if(U["s-sr"]){let ke=U;for(;ke=ke.nextSibling;)ke&&ke["s-sn"]===U["s-sn"]&&ke["s-sh"]===pr&&Ae.push(ke)}for(let ke=Ae.length-1;ke>=0;ke--){const ot=Ae[ke];ot["s-hn"]!==pr&&ot["s-ol"]&&(he(Qr(ot),ot,Mi(ot)),ot["s-ol"].remove(),ot["s-ol"]=void 0,ot["s-sh"]=void 0,Mr=!0),ne&&Zn(ot,ne)}jn.$flags$&=-2},wn=(U,ne,Ae,ke,ot,et)=>{let zt,Lt=U["s-cr"]&&U["s-cr"].parentNode||U;for(Lt.shadowRoot&&Lt.tagName===pr&&(Lt=Lt.shadowRoot);ot<=et;++ot)ke[ot]&&(zt=Bn(null,Ae,ot,U),zt&&(ke[ot].$elm$=zt,he(Lt,zt,Mi(ne))))},Sr=(U,ne,Ae)=>{for(let ke=ne;ke<=Ae;++ke){const ot=U[ke];if(ot){const et=ot.$elm$;ie(ot),et&&(kr=!0,et["s-ol"]?et["s-ol"].remove():Zn(et,!0),et.remove())}}},Er=(U,ne,Ae=!1)=>U.$tag$===ne.$tag$&&("slot"===U.$tag$?U.$name$===ne.$name$:!!Ae||U.$key$===ne.$key$),Mi=U=>U&&U["s-ol"]||U,Qr=U=>(U["s-ol"]?U["s-ol"]:U).parentNode,Yr=(U,ne,Ae=!1)=>{const ke=ne.$elm$=U.$elm$,ot=U.$children$,et=ne.$children$,Lt=ne.$tag$,zt=ne.$text$;let Kt;null===zt?(_r="svg"===Lt||"foreignObject"!==Lt&&_r,"slot"!==Lt||wr?gn(U,ne,_r):U.$name$!==ne.$name$&&(ne.$elm$["s-sn"]=ne.$name$||"",ni(ne.$elm$.parentElement)),null!==ot&&null!==et?((U,ne,Ae,ke,ot=!1)=>{let cr,nr,et=0,Lt=0,zt=0,Kt=0,Yt=ne.length-1,_n=ne[0],Cn=ne[Yt],Ln=ke.length-1,In=ke[0],br=ke[Ln];for(;et<=Yt&&Lt<=Ln;)if(null==_n)_n=ne[++et];else if(null==Cn)Cn=ne[--Yt];else if(null==In)In=ke[++Lt];else if(null==br)br=ke[--Ln];else if(Er(_n,In,ot))Yr(_n,In,ot),_n=ne[++et],In=ke[++Lt];else if(Er(Cn,br,ot))Yr(Cn,br,ot),Cn=ne[--Yt],br=ke[--Ln];else if(Er(_n,br,ot))("slot"===_n.$tag$||"slot"===br.$tag$)&&Zn(_n.$elm$.parentNode,!1),Yr(_n,br,ot),he(U,_n.$elm$,Cn.$elm$.nextSibling),_n=ne[++et],br=ke[--Ln];else if(Er(Cn,In,ot))("slot"===_n.$tag$||"slot"===br.$tag$)&&Zn(Cn.$elm$.parentNode,!1),Yr(Cn,In,ot),he(U,Cn.$elm$,_n.$elm$),Cn=ne[--Yt],In=ke[++Lt];else{for(zt=-1,Kt=et;Kt<=Yt;++Kt)if(ne[Kt]&&null!==ne[Kt].$key$&&ne[Kt].$key$===In.$key$){zt=Kt;break}zt>=0?(nr=ne[zt],nr.$tag$!==In.$tag$?cr=Bn(ne&&ne[Lt],Ae,zt,U):(Yr(nr,In,ot),ne[zt]=void 0,cr=nr.$elm$),In=ke[++Lt]):(cr=Bn(ne&&ne[Lt],Ae,Lt,U),In=ke[++Lt]),cr&&he(Qr(_n.$elm$),cr,Mi(_n.$elm$))}et>Yt?wn(U,null==ke[Ln+1]?null:ke[Ln+1].$elm$,Ae,ke,Lt,Ln):Lt>Ln&&Sr(ne,et,Yt)})(ke,ot,ne,et,Ae):null!==et?(null!==U.$text$&&(ke.textContent=""),wn(ke,null,ne,et,0,et.length-1)):null!==ot&&Sr(ot,0,ot.length-1),_r&&"svg"===Lt&&(_r=!1)):(Kt=ke["s-cr"])?Kt.parentNode.textContent=zt:U.$text$!==zt&&(ke.data=zt)},oe=U=>{const ne=U.childNodes;for(const Ae of ne)if(1===Ae.nodeType){if(Ae["s-sr"]){const ke=Ae["s-sn"];Ae.hidden=!1;for(const ot of ne)if(ot!==Ae)if(ot["s-hn"]!==Ae["s-hn"]||""!==ke){if(1===ot.nodeType&&(ke===ot.getAttribute("slot")||ke===ot["s-sn"])||3===ot.nodeType&&ke===ot["s-sn"]){Ae.hidden=!0;break}}else if(1===ot.nodeType||3===ot.nodeType&&""!==ot.textContent.trim()){Ae.hidden=!0;break}}oe(Ae)}},He=[],ct=U=>{let ne,Ae,ke;for(const ot of U.childNodes){if(ot["s-sr"]&&(ne=ot["s-cr"])&&ne.parentNode){Ae=ne.parentNode.childNodes;const et=ot["s-sn"];for(ke=Ae.length-1;ke>=0;ke--)if(ne=Ae[ke],!(ne["s-cn"]||ne["s-nr"]||ne["s-hn"]===ot["s-hn"]||ne["s-sh"]&&ne["s-sh"]===ot["s-hn"]))if(Xe(ne,et)){let Lt=He.find(zt=>zt.$nodeToRelocate$===ne);kr=!0,ne["s-sn"]=ne["s-sn"]||et,Lt?(Lt.$nodeToRelocate$["s-sh"]=ot["s-hn"],Lt.$slotRefNode$=ot):(ne["s-sh"]=ot["s-hn"],He.push({$slotRefNode$:ot,$nodeToRelocate$:ne})),ne["s-sr"]&&He.map(zt=>{Xe(zt.$nodeToRelocate$,ne["s-sn"])&&(Lt=He.find(Kt=>Kt.$nodeToRelocate$===ne),Lt&&!zt.$slotRefNode$&&(zt.$slotRefNode$=Lt.$slotRefNode$))})}else He.some(Lt=>Lt.$nodeToRelocate$===ne)||He.push({$nodeToRelocate$:ne})}1===ot.nodeType&&ct(ot)}},Xe=(U,ne)=>1===U.nodeType?null===U.getAttribute("slot")&&""===ne||U.getAttribute("slot")===ne:U["s-sn"]===ne||""===ne,ie=U=>{U.$attrs$&&U.$attrs$.ref&&U.$attrs$.ref(null),U.$children$&&U.$children$.map(ie)},he=(U,ne,Ae)=>{const ke=null==U?void 0:U.insertBefore(ne,Ae);return Et(ne,U),ke},Pe=U=>U?U["s-rsc"]||U["s-si"]||U["s-sc"]||Pe(U.parentElement):void 0,Et=(U,ne)=>{var Ae,ke,ot;if(U&&ne){const et=U["s-rsc"],Lt=Pe(ne);et&&null!=(Ae=U.classList)&&Ae.contains(et)&&U.classList.remove(et),Lt&&(U["s-rsc"]=Lt,(null==(ke=U.classList)||!ke.contains(Lt))&&(null==(ot=U.classList)||ot.add(Lt)))}},dn=(U,ne)=>{ne&&!U.$onRenderResolve$&&ne["s-p"]&&ne["s-p"].push(new Promise(Ae=>U.$onRenderResolve$=Ae))},Sn=(U,ne)=>{if(U.$flags$|=16,!(4&U.$flags$))return dn(U,U.$ancestorComponent$),ui(()=>Wn(U,ne));U.$flags$|=512},Wn=(U,ne)=>{const ke=U.$lazyInstance$;let ot;return ne&&(U.$flags$|=256,U.$queuedListeners$&&(U.$queuedListeners$.map(([et,Lt])=>ii(ke,et,Lt)),U.$queuedListeners$=void 0),ot=ii(ke,"componentWillLoad")),ot=gr(ot,()=>ii(ke,"componentWillRender")),gr(ot,()=>ri(U,ke,ne))},gr=(U,ne)=>ur(U)?U.then(ne):ne(),ur=U=>U instanceof Promise||U&&U.then&&"function"==typeof U.then,ri=function(){var U=(0,g.A)(function*(ne,Ae,ke){var ot;const et=ne.$hostElement$,zt=et["s-rc"];ke&&(U=>{const ne=U.$cmpMeta$,Ae=U.$hostElement$,ke=ne.$flags$,et=yn(Ae.shadowRoot?Ae.shadowRoot:Ae.getRootNode(),ne,U.$modeName$);10&ke&&(Ae["s-sc"]=et,Ae.classList.add(et+"-h"),2&ke&&Ae.classList.add(et+"-s"))})(ne);xn(ne,Ae,et,ke),zt&&(zt.map(Yt=>Yt()),et["s-rc"]=void 0);{const Yt=null!=(ot=et["s-p"])?ot:[],_n=()=>Rn(ne);0===Yt.length?_n():(Promise.all(Yt).then(_n),ne.$flags$|=4,Yt.length=0)}});return function(Ae,ke,ot){return U.apply(this,arguments)}}(),xn=(U,ne,Ae,ke)=>{try{ne=ne.render&&ne.render(),U.$flags$&=-17,U.$flags$|=2,((U,ne,Ae=!1)=>{var ke,ot,et,Lt,zt;const Kt=U.$hostElement$,Yt=U.$cmpMeta$,_n=U.$vnode$||rn(null,null),Cn=(U=>U&&U.$tag$===pt)(ne)?ne:Be(null,null,ne);if(pr=Kt.tagName,Yt.$attrsToReflect$&&(Cn.$attrs$=Cn.$attrs$||{},Yt.$attrsToReflect$.map(([Ln,In])=>Cn.$attrs$[In]=Kt[Ln])),Ae&&Cn.$attrs$)for(const Ln of Object.keys(Cn.$attrs$))Kt.hasAttribute(Ln)&&!["key","ref","style","class"].includes(Ln)&&(Cn.$attrs$[Ln]=Kt[Ln]);if(Cn.$tag$=null,Cn.$flags$|=4,U.$vnode$=Cn,Cn.$elm$=_n.$elm$=Kt.shadowRoot||Kt,Jt=Kt["s-sc"],wr=!!(1&Yt.$flags$),Gt=Kt["s-cr"],kr=!1,Yr(_n,Cn,Ae),jn.$flags$|=1,Mr){ct(Cn.$elm$);for(const Ln of He){const In=Ln.$nodeToRelocate$;if(!In["s-ol"]){const br=Or.createTextNode("");br["s-nr"]=In,he(In.parentNode,In["s-ol"]=br,In)}}for(const Ln of He){const In=Ln.$nodeToRelocate$,br=Ln.$slotRefNode$;if(br){const cr=br.parentNode;let nr=br.nextSibling;if(nr&&1===nr.nodeType){let li=null==(ke=In["s-ol"])?void 0:ke.previousSibling;for(;li;){let vi=null!=(ot=li["s-nr"])?ot:null;if(vi&&vi["s-sn"]===In["s-sn"]&&cr===vi.parentNode){for(vi=vi.nextSibling;vi===In||null!=vi&&vi["s-sr"];)vi=null==vi?void 0:vi.nextSibling;if(!vi||!vi["s-nr"]){nr=vi;break}}li=li.previousSibling}}(!nr&&cr!==In.parentNode||In.nextSibling!==nr)&&In!==nr&&(he(cr,In,nr),1===In.nodeType&&(In.hidden=null!=(et=In["s-ih"])&&et)),In&&"function"==typeof br["s-rf"]&&br["s-rf"](In)}else 1===In.nodeType&&(Ae&&(In["s-ih"]=null!=(Lt=In.hidden)&&Lt),In.hidden=!0)}}if(kr&&oe(Cn.$elm$),jn.$flags$&=-2,He.length=0,2&Yt.$flags$)for(const Ln of Cn.$elm$.childNodes)Ln["s-hn"]!==pr&&!Ln["s-sh"]&&(Ae&&null==Ln["s-ih"]&&(Ln["s-ih"]=null!=(zt=Ln.hidden)&&zt),Ln.hidden=!0);Gt=void 0})(U,ne,ke)}catch(ot){ei(ot,U.$hostElement$)}return null},Rn=U=>{const Ae=U.$hostElement$,ot=U.$lazyInstance$,et=U.$ancestorComponent$;ii(ot,"componentDidRender"),64&U.$flags$?ii(ot,"componentDidUpdate"):(U.$flags$|=64,pi(Ae),ii(ot,"componentDidLoad"),U.$onReadyResolve$(Ae),et||Ei()),U.$onInstanceResolve$(Ae),U.$onRenderResolve$&&(U.$onRenderResolve$(),U.$onRenderResolve$=void 0),512&U.$flags$&&qe(()=>Sn(U,!1)),U.$flags$&=-517},yr=U=>{{const ne=oi(U),Ae=ne.$hostElement$.isConnected;return Ae&&2==(18&ne.$flags$)&&Sn(ne,!1),Ae}},Ei=U=>{pi(Or.documentElement),qe(()=>$n(sr,"appload",{detail:{namespace:"ionic"}}))},ii=(U,ne,Ae)=>{if(U&&U[ne])try{return U[ne](Ae)}catch(ke){ei(ke)}},pi=U=>U.classList.add("hydrated"),Hi=(U,ne,Ae)=>{var ke;const ot=U.prototype;if(ne.$members$){U.watchers&&(ne.$watchers$=U.watchers);const et=Object.entries(ne.$members$);if(et.map(([Lt,[zt]])=>{31&zt||2&Ae&&32&zt?Object.defineProperty(ot,Lt,{get(){return((U,ne)=>oi(this).$instanceValues$.get(ne))(0,Lt)},set(Kt){((U,ne,Ae,ke)=>{const ot=oi(U);if(!ot)throw new Error(`Couldn't find host element for "${ke.$tagName$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`);const et=ot.$hostElement$,Lt=ot.$instanceValues$.get(ne),zt=ot.$flags$,Kt=ot.$lazyInstance$;Ae=((U,ne)=>null==U||Fe(U)?U:4&ne?"false"!==U&&(""===U||!!U):2&ne?parseFloat(U):1&ne?String(U):U)(Ae,ke.$members$[ne][0]);const Yt=Number.isNaN(Lt)&&Number.isNaN(Ae);if((!(8&zt)||void 0===Lt)&&Ae!==Lt&&!Yt&&(ot.$instanceValues$.set(ne,Ae),Kt)){if(ke.$watchers$&&128&zt){const Cn=ke.$watchers$[ne];Cn&&Cn.map(Ln=>{try{Kt[Ln](Ae,Lt,ne)}catch(In){ei(In,et)}})}2==(18&zt)&&Sn(ot,!1)}})(this,Lt,Kt,ne)},configurable:!0,enumerable:!0}):1&Ae&&64&zt&&Object.defineProperty(ot,Lt,{value(...Kt){var Yt;const _n=oi(this);return null==(Yt=null==_n?void 0:_n.$onInstancePromise$)?void 0:Yt.then(()=>{var Cn;return null==(Cn=_n.$lazyInstance$)?void 0:Cn[Lt](...Kt)})}})}),1&Ae){const Lt=new Map;ot.attributeChangedCallback=function(zt,Kt,Yt){jn.jmp(()=>{var _n;const Cn=Lt.get(zt);if(this.hasOwnProperty(Cn))Yt=this[Cn],delete this[Cn];else{if(ot.hasOwnProperty(Cn)&&"number"==typeof this[Cn]&&this[Cn]==Yt)return;if(null==Cn){const Ln=oi(this),In=null==Ln?void 0:Ln.$flags$;if(In&&!(8&In)&&128&In&&Yt!==Kt){const br=Ln.$lazyInstance$,cr=null==(_n=ne.$watchers$)?void 0:_n[zt];null==cr||cr.forEach(nr=>{null!=br[nr]&&br[nr].call(br,Yt,Kt,zt)})}return}}this[Cn]=(null!==Yt||"boolean"!=typeof this[Cn])&&Yt})},U.observedAttributes=Array.from(new Set([...Object.keys(null!=(ke=ne.$watchers$)?ke:{}),...et.filter(([zt,Kt])=>15&Kt[0]).map(([zt,Kt])=>{var Yt;const _n=Kt[1]||zt;return Lt.set(_n,zt),512&Kt[0]&&(null==(Yt=ne.$attrsToReflect$)||Yt.push([zt,_n])),_n})]))}}return U},wi=function(){var U=(0,g.A)(function*(ne,Ae,ke,ot){let et;if(!(32&Ae.$flags$)){if(Ae.$flags$|=32,ke.$lazyBundleId$){if(et=is(ke),et.then){const _n=()=>{};et=yield et,_n()}et.isProxied||(ke.$watchers$=et.watchers,Hi(et,ke,2),et.isProxied=!0);const Yt=()=>{};Ae.$flags$|=8;try{new et(Ae)}catch(_n){ei(_n)}Ae.$flags$&=-9,Ae.$flags$|=128,Yt(),gi(Ae.$lazyInstance$)}else et=ne.constructor,customElements.whenDefined(ke.$tagName$).then(()=>Ae.$flags$|=128);if(et.style){let Yt=et.style;"string"!=typeof Yt&&(Yt=Yt[Ae.$modeName$=(U=>si.map(ne=>ne(U)).find(ne=>!!ne))(ne)]);const _n=Yn(ke,Ae.$modeName$);if(!ps.has(_n)){const Cn=()=>{};er(_n,Yt,!!(1&ke.$flags$)),Cn()}}}const Lt=Ae.$ancestorComponent$,zt=()=>Sn(Ae,!0);Lt&&Lt["s-rc"]?Lt["s-rc"].push(zt):zt()});return function(Ae,ke,ot,et){return U.apply(this,arguments)}}(),gi=U=>{ii(U,"connectedCallback")},lt=U=>{const ne=U["s-cr"]=Or.createComment("");ne["s-cn"]=!0,he(U,ne,U.firstChild)},Ut=U=>{ii(U,"disconnectedCallback")},fn=function(){var U=(0,g.A)(function*(ne){if(!(1&jn.$flags$)){const Ae=oi(ne);Ae.$rmListeners$&&(Ae.$rmListeners$.map(ke=>ke()),Ae.$rmListeners$=void 0),null!=Ae&&Ae.$lazyInstance$?Ut(Ae.$lazyInstance$):null!=Ae&&Ae.$onReadyPromise$&&Ae.$onReadyPromise$.then(()=>Ut(Ae.$lazyInstance$))}});return function(Ae){return U.apply(this,arguments)}}(),Y=U=>{const ne=U.cloneNode;U.cloneNode=function(Ae){const ke=this,ot=ke.shadowRoot&&Ao,et=ne.call(ke,!!ot&&Ae);if(!ot&&Ae){let zt,Kt,Lt=0;const Yt=["s-id","s-cr","s-lr","s-rc","s-sc","s-p","s-cn","s-sr","s-sn","s-hn","s-ol","s-nr","s-si","s-rf","s-rsc"];for(;Lt!ke.childNodes[Lt][_n]),zt&&(et.__appendChild?et.__appendChild(zt.cloneNode(!0)):et.appendChild(zt.cloneNode(!0))),Kt&&et.appendChild(ke.childNodes[Lt].cloneNode(!0))}return et}},Z=U=>{U.__appendChild=U.appendChild,U.appendChild=function(ne){const Ae=ne["s-sn"]=$i(ne),ke=Ai(this.childNodes,Ae,this.tagName);if(ke){const ot=Pi(ke,Ae),et=ot[ot.length-1],Lt=he(et.parentNode,ne,et.nextSibling);return oe(this),Lt}return this.__appendChild(ne)}},Ne=U=>{U.__removeChild=U.removeChild,U.removeChild=function(ne){if(ne&&typeof ne["s-sn"]<"u"){const Ae=Ai(this.childNodes,ne["s-sn"],this.tagName);if(Ae){const ot=Pi(Ae,ne["s-sn"]).find(et=>et===ne);if(ot)return ot.remove(),void oe(this)}}return this.__removeChild(ne)}},Q=U=>{const ne=U.prepend;U.prepend=function(...Ae){Ae.forEach(ke=>{"string"==typeof ke&&(ke=this.ownerDocument.createTextNode(ke));const ot=ke["s-sn"]=$i(ke),et=Ai(this.childNodes,ot,this.tagName);if(et){const Lt=document.createTextNode("");Lt["s-nr"]=ke,et["s-cr"].parentNode.__appendChild(Lt),ke["s-ol"]=Lt;const Kt=Pi(et,ot)[0];return he(Kt.parentNode,ke,Kt.nextSibling)}return 1===ke.nodeType&&ke.getAttribute("slot")&&(ke.hidden=!0),ne.call(this,ke)})}},Se=U=>{U.append=function(...ne){ne.forEach(Ae=>{"string"==typeof Ae&&(Ae=this.ownerDocument.createTextNode(Ae)),this.appendChild(Ae)})}},it=U=>{const ne=U.insertAdjacentHTML;U.insertAdjacentHTML=function(Ae,ke){if("afterbegin"!==Ae&&"beforeend"!==Ae)return ne.call(this,Ae,ke);const ot=this.ownerDocument.createElement("_");let et;if(ot.innerHTML=ke,"afterbegin"===Ae)for(;et=ot.firstChild;)this.prepend(et);else if("beforeend"===Ae)for(;et=ot.firstChild;)this.append(et)}},Wt=U=>{U.insertAdjacentText=function(ne,Ae){this.insertAdjacentHTML(ne,Ae)}},cn=U=>{const ne=U.insertAdjacentElement;U.insertAdjacentElement=function(Ae,ke){return"afterbegin"!==Ae&&"beforeend"!==Ae?ne.call(this,Ae,ke):"afterbegin"===Ae?(this.prepend(ke),ke):("beforeend"===Ae&&this.append(ke),ke)}},Pn=U=>{const ne=Object.getOwnPropertyDescriptor(Node.prototype,"textContent");Object.defineProperty(U,"__textContent",ne),Object.defineProperty(U,"textContent",{get(){return" "+Hn(this.childNodes).map(ot=>{var et,Lt;const zt=[];let Kt=ot.nextSibling;for(;Kt&&Kt["s-sn"]===ot["s-sn"];)(3===Kt.nodeType||1===Kt.nodeType)&&zt.push(null!=(Lt=null==(et=Kt.textContent)?void 0:et.trim())?Lt:""),Kt=Kt.nextSibling;return zt.filter(Yt=>""!==Yt).join(" ")}).filter(ot=>""!==ot).join(" ")+" "},set(Ae){Hn(this.childNodes).forEach(ot=>{let et=ot.nextSibling;for(;et&&et["s-sn"]===ot["s-sn"];){const Lt=et;et=et.nextSibling,Lt.remove()}if(""===ot["s-sn"]){const Lt=this.ownerDocument.createTextNode(Ae);Lt["s-sn"]="",he(ot.parentElement,Lt,ot.nextSibling)}else ot.remove()})}})},Cr=(U,ne)=>{class Ae extends Array{item(ot){return this[ot]}}if(8&ne.$flags$){const ke=U.__lookupGetter__("childNodes");Object.defineProperty(U,"children",{get(){return this.childNodes.map(ot=>1===ot.nodeType)}}),Object.defineProperty(U,"childElementCount",{get:()=>U.children.length}),Object.defineProperty(U,"childNodes",{get(){const ot=ke.call(this);if(!(1&jn.$flags$)&&2&oi(this).$flags$){const et=new Ae;for(let Lt=0;Lt{const ne=[];for(const Ae of Array.from(U))Ae["s-sr"]&&ne.push(Ae),ne.push(...Hn(Ae.childNodes));return ne},$i=U=>U["s-sn"]||1===U.nodeType&&U.getAttribute("slot")||"",Ai=(U,ne,Ae)=>{let ot,ke=0;for(;ke{const Ae=[U];for(;(U=U.nextSibling)&&U["s-sn"]===ne;)Ae.push(U);return Ae},xr=(U,ne={})=>{var Ae;const ot=[],et=ne.exclude||[],Lt=sr.customElements,zt=Or.head,Kt=zt.querySelector("meta[charset]"),Yt=Or.createElement("style"),_n=[],Cn=Or.querySelectorAll(`[${ze}]`);let Ln,In=!0,br=0;for(Object.assign(jn,ne),jn.$resourcesUrl$=new URL(ne.resourcesUrl||"./",Or.baseURI).href,jn.$flags$|=2;br{nr[1].map(li=>{var vi;const ci={$flags$:li[0],$tagName$:li[1],$members$:li[2],$listeners$:li[3]};4&ci.$flags$&&(cr=!0),ci.$members$=li[2],ci.$listeners$=li[3],ci.$attrsToReflect$=[],ci.$watchers$=null!=(vi=li[4])?vi:{};const no=ci.$tagName$,Go=class extends HTMLElement{constructor(dr){super(dr),kn(dr=this,ci),1&ci.$flags$&&dr.attachShadow({mode:"open",delegatesFocus:!!(16&ci.$flags$)})}connectedCallback(){Ln&&(clearTimeout(Ln),Ln=null),In?_n.push(this):jn.jmp(()=>(U=>{if(!(1&jn.$flags$)){const ne=oi(U),Ae=ne.$cmpMeta$,ke=()=>{};if(1&ne.$flags$)An(U,ne,Ae.$listeners$),null!=ne&&ne.$lazyInstance$?gi(ne.$lazyInstance$):null!=ne&&ne.$onReadyPromise$&&ne.$onReadyPromise$.then(()=>gi(ne.$lazyInstance$));else{let ot;if(ne.$flags$|=1,ot=U.getAttribute(xt),ot){if(1&Ae.$flags$){const et=yn(U.shadowRoot,Ae,U.getAttribute("s-mode"));U.classList.remove(et+"-h",et+"-s")}((U,ne,Ae,ke)=>{const et=U.shadowRoot,Lt=[],Kt=et?[]:null,Yt=ke.$vnode$=rn(ne,null);jn.$orgLocNodes$||me(Or.body,jn.$orgLocNodes$=new Map),U[xt]=Ae,U.removeAttribute(xt),ae(Yt,Lt,[],Kt,U,U,Ae),Lt.map(_n=>{const Cn=_n.$hostId$+"."+_n.$nodeId$,Ln=jn.$orgLocNodes$.get(Cn),In=_n.$elm$;Ln&&Ao&&""===Ln["s-en"]&&Ln.parentNode.insertBefore(In,Ln.nextSibling),et||(In["s-hn"]=ne,Ln&&(In["s-ol"]=Ln,In["s-ol"]["s-nr"]=In)),jn.$orgLocNodes$.delete(Cn)}),et&&Kt.map(_n=>{_n&&et.appendChild(_n)})})(U,Ae.$tagName$,ot,ne)}ot||12&Ae.$flags$&<(U);{let et=U;for(;et=et.parentNode||et.host;)if(1===et.nodeType&&et.hasAttribute("s-id")&&et["s-p"]||et["s-p"]){dn(ne,ne.$ancestorComponent$=et);break}}Ae.$members$&&Object.entries(Ae.$members$).map(([et,[Lt]])=>{if(31&Lt&&U.hasOwnProperty(et)){const zt=U[et];delete U[et],U[et]=zt}}),wi(U,ne,Ae)}ke()}})(this))}disconnectedCallback(){jn.jmp(()=>fn(this))}componentOnReady(){return oi(this).$onReadyPromise$}};2&ci.$flags$&&((U,ne)=>{Y(U),Z(U),Se(U),Q(U),cn(U),it(U),Wt(U),Pn(U),Cr(U,ne),Ne(U)})(Go.prototype,ci),ci.$lazyBundleId$=nr[0],!et.includes(no)&&!Lt.get(no)&&(ot.push(no),Lt.define(no,Hi(Go,ci,1)))})}),ot.length>0&&(cr&&(Yt.textContent+=Zt),Yt.textContent+=ot+"{visibility:hidden}.hydrated{visibility:inherit}",Yt.innerHTML.length)){Yt.setAttribute("data-styles","");const nr=null!=(Ae=jn.$nonce$)?Ae:$e(Or);null!=nr&&Yt.setAttribute("nonce",nr),zt.insertBefore(Yt,Kt?Kt.nextSibling:zt.firstChild)}In=!1,_n.length?_n.map(nr=>nr.connectedCallback()):jn.jmp(()=>Ln=setTimeout(Ei,30))},An=(U,ne,Ae,ke)=>{Ae&&Ae.map(([ot,et,Lt])=>{const zt=mi(U,ot),Kt=xi(ne,Lt),Yt=Si(ot);jn.ael(zt,et,Kt,Yt),(ne.$rmListeners$=ne.$rmListeners$||[]).push(()=>jn.rel(zt,et,Kt,Yt))})},xi=(U,ne)=>Ae=>{try{256&U.$flags$?U.$lazyInstance$[ne](Ae):(U.$queuedListeners$=U.$queuedListeners$||[]).push([ne,Ae])}catch(ke){ei(ke)}},mi=(U,ne)=>4&ne?Or:8&ne?sr:16&ne?Or.body:U,Si=U=>Co?{passive:!!(1&U),capture:!!(2&U)}:!!(2&U),mr=new WeakMap,oi=U=>mr.get(U),Nn=(U,ne)=>mr.set(ne.$lazyInstance$=U,ne),kn=(U,ne)=>{const Ae={$flags$:0,$hostElement$:U,$cmpMeta$:ne,$instanceValues$:new Map};return Ae.$onInstancePromise$=new Promise(ke=>Ae.$onInstanceResolve$=ke),Ae.$onReadyPromise$=new Promise(ke=>Ae.$onReadyResolve$=ke),U["s-p"]=[],U["s-rc"]=[],An(U,Ae,ne.$listeners$),mr.set(U,Ae)},ko=(U,ne)=>ne in U,ei=(U,ne)=>(0,console.error)(U,ne),Bi=new Map,is=(U,ne,Ae)=>{const ke=U.$tagName$.replace(/-/g,"_"),ot=U.$lazyBundleId$,et=Bi.get(ot);return et?et[ke]:B(8996)(`./${ot}.entry.js`).then(Lt=>(Bi.set(ot,Lt),Lt[ke]),ei)},ps=new Map,si=[],sr=typeof window<"u"?window:{},Or=sr.document||{head:{}},jn={$flags$:0,$resourcesUrl$:"",jmp:U=>U(),raf:U=>requestAnimationFrame(U),ael:(U,ne,Ae,ke)=>U.addEventListener(ne,Ae,ke),rel:(U,ne,Ae,ke)=>U.removeEventListener(ne,Ae,ke),ce:(U,ne)=>new CustomEvent(U,ne)},Fo=U=>{Object.assign(jn,U)},Ao=!0,Co=(()=>{let U=!1;try{Or.addEventListener("e",null,Object.defineProperty({},"passive",{get(){U=!0}}))}catch{}return U})(),To=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch{}return!1})(),Ni=!1,S=[],H=[],ue=(U,ne)=>Ae=>{U.push(Ae),Ni||(Ni=!0,ne&&4&jn.$flags$?qe(fe):jn.raf(fe))},M=U=>{for(let ne=0;ne{M(S),M(H),(Ni=S.length>0)&&jn.raf(fe)},qe=U=>Promise.resolve(void 0).then(U),ar=ue(S,!1),ui=ue(H,!0)},2725:(En,bt,B)=>{"use strict";B.d(bt,{b:()=>Ze,c:()=>Je,d:()=>De,e:()=>Be,g:()=>_e,l:()=>Zt,s:()=>rn,t:()=>st,w:()=>Dt});var g=B(467),d=B(3664),ge=B(9672),Oe=B(4929),X=B(4920);const Ze="ionViewWillLeave",Je="ionViewDidLeave",De="ionViewWillUnload",ye=j=>{j.tabIndex=-1,j.focus()},Fe=j=>null!==j.offsetParent,Le="ion-last-focus",ut_saveViewFocus=te=>{if(d.c.get("focusManagerPriority",!1)){const ae=document.activeElement;null!==ae&&null!=te&&te.contains(ae)&&ae.setAttribute(Le,"true")}},ut_setViewFocus=te=>{const de=d.c.get("focusManagerPriority",!1);if(Array.isArray(de)&&!te.contains(document.activeElement)){const ae=te.querySelector(`[${Le}]`);if(ae&&Fe(ae))return void ye(ae);for(const me of de)switch(me){case"content":const Ce=te.querySelector('main, [role="main"]');if(Ce&&Fe(Ce))return void ye(Ce);break;case"heading":const at=te.querySelector('h1, [role="heading"][aria-level="1"]');if(at&&Fe(at))return void ye(at);break;case"banner":const kt=te.querySelector('header, [role="banner"]');if(kt&&Fe(kt))return void ye(kt);break;default:(0,Oe.p)(`Unrecognized focus manager priority value ${me}`)}ye(te)}},st=j=>new Promise((W,te)=>{(0,ge.w)(()=>{Mt(j),mt(j).then(de=>{de.animation&&de.animation.destroy(),vt(j),W(de)},de=>{vt(j),te(de)})})}),Mt=j=>{const W=j.enteringEl,te=j.leavingEl;ut_saveViewFocus(te),pt(W,te,j.direction),j.showGoBack?W.classList.add("can-go-back"):W.classList.remove("can-go-back"),rn(W,!1),W.style.setProperty("pointer-events","none"),te&&(rn(te,!1),te.style.setProperty("pointer-events","none"))},mt=function(){var j=(0,g.A)(function*(W){const te=yield Me(W);return te&&ge.B.isBrowser?je(te,W):Ke(W)});return function(te){return j.apply(this,arguments)}}(),vt=j=>{const W=j.enteringEl,te=j.leavingEl;W.classList.remove("ion-page-invisible"),W.style.removeProperty("pointer-events"),void 0!==te&&(te.classList.remove("ion-page-invisible"),te.style.removeProperty("pointer-events")),ut_setViewFocus(W)},Me=function(){var j=(0,g.A)(function*(W){return W.leavingEl&&W.animated&&0!==W.duration?W.animationBuilder?W.animationBuilder:"ios"===W.mode?(yield Promise.resolve().then(B.bind(B,8454))).iosTransitionAnimation:(yield Promise.resolve().then(B.bind(B,3314))).mdTransitionAnimation:void 0});return function(te){return j.apply(this,arguments)}}(),je=function(){var j=(0,g.A)(function*(W,te){yield Ct(te,!0);const de=W(te.baseEl,te);Tt(te.enteringEl,te.leavingEl);const ae=yield ze(de,te);return te.progressCallback&&te.progressCallback(void 0),ae&&Vt(te.enteringEl,te.leavingEl),{hasCompleted:ae,animation:de}});return function(te,de){return j.apply(this,arguments)}}(),Ke=function(){var j=(0,g.A)(function*(W){const te=W.enteringEl,de=W.leavingEl,ae=d.c.get("focusManagerPriority",!1);return yield Ct(W,ae),Tt(te,de),Vt(te,de),{hasCompleted:!0}});return function(te){return j.apply(this,arguments)}}(),Ct=function(){var j=(0,g.A)(function*(W,te){(void 0!==W.deepWait?W.deepWait:te)&&(yield Promise.all([Be(W.enteringEl),Be(W.leavingEl)])),yield xt(W.viewIsReady,W.enteringEl)});return function(te,de){return j.apply(this,arguments)}}(),xt=function(){var j=(0,g.A)(function*(W,te){W&&(yield W(te))});return function(te,de){return j.apply(this,arguments)}}(),ze=(j,W)=>{const te=W.progressCallback,de=new Promise(ae=>{j.onFinish(me=>ae(1===me))});return te?(j.progressStart(!0),te(j)):j.play(),de},Tt=(j,W)=>{Zt(W,Ze),Zt(j,"ionViewWillEnter")},Vt=(j,W)=>{Zt(j,"ionViewDidEnter"),Zt(W,Je)},Zt=(j,W)=>{if(j){const te=new CustomEvent(W,{bubbles:!1,cancelable:!1});j.dispatchEvent(te)}},Dt=()=>new Promise(j=>(0,X.r)(()=>(0,X.r)(()=>j()))),Be=function(){var j=(0,g.A)(function*(W){const te=W;if(te){if(null!=te.componentOnReady){if(null!=(yield te.componentOnReady()))return}else if(null!=te.__registerHost)return void(yield new Promise(ae=>(0,X.r)(ae)));yield Promise.all(Array.from(te.children).map(Be))}});return function(te){return j.apply(this,arguments)}}(),rn=(j,W)=>{W?(j.setAttribute("aria-hidden","true"),j.classList.add("ion-page-hidden")):(j.hidden=!1,j.removeAttribute("aria-hidden"),j.classList.remove("ion-page-hidden"))},pt=(j,W,te)=>{void 0!==j&&(j.style.zIndex="back"===te?"99":"101"),void 0!==W&&(W.style.zIndex="100")},_e=j=>j.classList.contains("ion-page")?j:j.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")||j},4929:(En,bt,B)=>{"use strict";B.d(bt,{a:()=>d,b:()=>ge,p:()=>g});const g=(Oe,...X)=>console.warn(`[Ionic Warning]: ${Oe}`,...X),d=(Oe,...X)=>console.error(`[Ionic Error]: ${Oe}`,...X),ge=(Oe,...X)=>console.error(`<${Oe.tagName.toLowerCase()}> must be used inside ${X.join(" or ")}.`)},8476:(En,bt,B)=>{"use strict";B.d(bt,{d:()=>d,w:()=>g});const g=typeof window<"u"?window:void 0,d=typeof document<"u"?document:void 0},3664:(En,bt,B)=>{"use strict";B.d(bt,{a:()=>ye,b:()=>rn,c:()=>ge,i:()=>pt});var g=B(9672);class d{constructor(){this.m=new Map}reset(j){this.m=new Map(Object.entries(j))}get(j,W){const te=this.m.get(j);return void 0!==te?te:W}getBoolean(j,W=!1){const te=this.m.get(j);return void 0===te?W:"string"==typeof te?"true"===te:!!te}getNumber(j,W){const te=parseFloat(this.m.get(j));return isNaN(te)?void 0!==W?W:NaN:te}set(j,W){this.m.set(j,W)}}const ge=new d,Je="ionic-persist-config",ye=(_e,j)=>("string"==typeof _e&&(j=_e,_e=void 0),(_e=>Fe(_e))(_e).includes(j)),Fe=(_e=window)=>{if(typeof _e>"u")return[];_e.Ionic=_e.Ionic||{};let j=_e.Ionic.platforms;return null==j&&(j=_e.Ionic.platforms=$e(_e),j.forEach(W=>_e.document.documentElement.classList.add(`plt-${W}`))),j},$e=_e=>{const j=ge.get("platform");return Object.keys(Dt).filter(W=>{const te=null==j?void 0:j[W];return"function"==typeof te?te(_e):Dt[W](_e)})},Qe=_e=>!!(Vt(_e,/iPad/i)||Vt(_e,/Macintosh/i)&&Me(_e)),st=_e=>Vt(_e,/android|sink/i),Me=_e=>Zt(_e,"(any-pointer:coarse)"),Ke=_e=>Ct(_e)||xt(_e),Ct=_e=>!!(_e.cordova||_e.phonegap||_e.PhoneGap),xt=_e=>{const j=_e.Capacitor;return!(null==j||!j.isNative)},Vt=(_e,j)=>j.test(_e.navigator.userAgent),Zt=(_e,j)=>{var W;return null===(W=_e.matchMedia)||void 0===W?void 0:W.call(_e,j).matches},Dt={ipad:Qe,iphone:_e=>Vt(_e,/iPhone/i),ios:_e=>Vt(_e,/iPhone|iPod/i)||Qe(_e),android:st,phablet:_e=>{const j=_e.innerWidth,W=_e.innerHeight,te=Math.min(j,W),de=Math.max(j,W);return te>390&&te<520&&de>620&&de<800},tablet:_e=>{const j=_e.innerWidth,W=_e.innerHeight,te=Math.min(j,W),de=Math.max(j,W);return Qe(_e)||(_e=>st(_e)&&!Vt(_e,/mobile/i))(_e)||te>460&&te<820&&de>780&&de<1400},cordova:Ct,capacitor:xt,electron:_e=>Vt(_e,/electron/i),pwa:_e=>{var j;return!!(null!==(j=_e.matchMedia)&&void 0!==j&&j.call(_e,"(display-mode: standalone)").matches||_e.navigator.standalone)},mobile:Me,mobileweb:_e=>Me(_e)&&!Ke(_e),desktop:_e=>!Me(_e),hybrid:Ke};let Be;const rn=_e=>_e&&(0,g.g)(_e)||Be,pt=(_e={})=>{if(typeof window>"u")return;const j=window.document,W=window,te=W.Ionic=W.Ionic||{},de={};_e._ael&&(de.ael=_e._ael),_e._rel&&(de.rel=_e._rel),_e._ce&&(de.ce=_e._ce),(0,g.a)(de);const ae=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(_e=>{try{const j=_e.sessionStorage.getItem(Je);return null!==j?JSON.parse(j):{}}catch{return{}}})(W)),{persistConfig:!1}),te.config),(_e=>{const j={};return _e.location.search.slice(1).split("&").map(W=>W.split("=")).map(([W,te])=>{try{return[decodeURIComponent(W),decodeURIComponent(te)]}catch{return["",""]}}).filter(([W])=>((_e,j)=>_e.substr(0,j.length)===j)(W,"ionic:")).map(([W,te])=>[W.slice(6),te]).forEach(([W,te])=>{j[W]=te}),j})(W)),_e);ge.reset(ae),ge.getBoolean("persistConfig")&&((_e,j)=>{try{_e.sessionStorage.setItem(Je,JSON.stringify(j))}catch{return}})(W,ae),Fe(W),te.config=ge,te.mode=Be=ge.get("mode",j.documentElement.getAttribute("mode")||(ye(W,"ios")?"ios":"md")),ge.set("mode",Be),j.documentElement.setAttribute("mode",Be),j.documentElement.classList.add(Be),ge.getBoolean("_testing")&&ge.set("animated",!1);const me=at=>{var kt;return null===(kt=at.tagName)||void 0===kt?void 0:kt.startsWith("ION-")},Ce=at=>["ios","md"].includes(at);(0,g.c)(at=>{for(;at;){const kt=at.mode||at.getAttribute("mode");if(kt){if(Ce(kt))return kt;me(at)&&console.warn('Invalid ionic mode: "'+kt+'", expected: "ios" or "md"')}at=at.parentElement}return Be})}},8454:(En,bt,B)=>{"use strict";B.r(bt),B.d(bt,{iosTransitionAnimation:()=>Le,shadow:()=>Ze});var g=B(9986),d=B(2725);B(8476),B(3664),B(9672);const re=ft=>document.querySelector(`${ft}.ion-cloned-element`),Ze=ft=>ft.shadowRoot||ft,Je=ft=>{const ut="ION-TABS"===ft.tagName?ft:ft.querySelector("ion-tabs"),st="ion-content ion-header:not(.header-collapse-condense-inactive) ion-title.title-large";if(null!=ut){const Mt=ut.querySelector("ion-tab:not(.tab-hidden), .ion-page:not(.ion-page-hidden)");return null!=Mt?Mt.querySelector(st):null}return ft.querySelector(st)},De=(ft,ut)=>{const st="ION-TABS"===ft.tagName?ft:ft.querySelector("ion-tabs");let Mt=[];if(null!=st){const mt=st.querySelector("ion-tab:not(.tab-hidden), .ion-page:not(.ion-page-hidden)");null!=mt&&(Mt=mt.querySelectorAll("ion-buttons"))}else Mt=ft.querySelectorAll("ion-buttons");for(const mt of Mt){const vt=mt.closest("ion-header"),Me=vt&&!vt.classList.contains("header-collapse-condense-inactive"),je=mt.querySelector("ion-back-button"),Ke=mt.classList.contains("buttons-collapse");if(null!==je&&("start"===mt.slot||""===mt.slot)&&(Ke&&Me&&ut||!Ke))return je}return null},Fe=(ft,ut,st,Mt,mt,vt,Me,je,Ke)=>{var Ct,xt;const ze=ut?`calc(100% - ${mt.right+4}px)`:mt.left-4+"px",Tt=ut?"right":"left",Vt=ut?"left":"right",Zt=ut?"right":"left";let Dt=1,Be=1,rn=`scale(${Be})`;const pt="scale(1)";if(vt&&Me){const Ot=(null===(Ct=vt.textContent)||void 0===Ct?void 0:Ct.trim())===(null===(xt=je.textContent)||void 0===xt?void 0:xt.trim());Dt=Ke.width/Me.width,Be=(Ke.height-Qe)/Me.height,rn=Ot?`scale(${Dt}, ${Be})`:`scale(${Be})`}const j=Ze(Mt).querySelector("ion-icon").getBoundingClientRect(),W=ut?j.width/2-(j.right-mt.right)+"px":mt.left-j.width/2+"px",te=ut?`-${window.innerWidth-mt.right}px`:`${mt.left}px`,de=`${Ke.top}px`,ae=`${mt.top}px`,at=st?[{offset:0,transform:`translate3d(${te}, ${ae}, 0)`},{offset:1,transform:`translate3d(${W}, ${de}, 0)`}]:[{offset:0,transform:`translate3d(${W}, ${de}, 0)`},{offset:1,transform:`translate3d(${te}, ${ae}, 0)`}],vn=st?[{offset:0,opacity:1,transform:pt},{offset:1,opacity:0,transform:rn}]:[{offset:0,opacity:0,transform:rn},{offset:1,opacity:1,transform:pt}],qn=st?[{offset:0,opacity:1,transform:"scale(1)"},{offset:.2,opacity:0,transform:"scale(0.6)"},{offset:1,opacity:0,transform:"scale(0.6)"}]:[{offset:0,opacity:0,transform:"scale(0.6)"},{offset:.6,opacity:0,transform:"scale(0.6)"},{offset:1,opacity:1,transform:"scale(1)"}],er=(0,g.c)(),yn=(0,g.c)(),ir=(0,g.c)(),Yn=re("ion-back-button"),Ve=Ze(Yn).querySelector(".button-text"),yt=Ze(Yn).querySelector("ion-icon");Yn.text=Mt.text,Yn.mode=Mt.mode,Yn.icon=Mt.icon,Yn.color=Mt.color,Yn.disabled=Mt.disabled,Yn.style.setProperty("display","block"),Yn.style.setProperty("position","fixed"),yn.addElement(yt),er.addElement(Ve),ir.addElement(Yn),ir.beforeStyles({position:"absolute",top:"0px",[Zt]:"0px"}).beforeAddWrite(()=>{Mt.style.setProperty("display","none"),Yn.style.setProperty(Tt,ze)}).afterAddWrite(()=>{Mt.style.setProperty("display",""),Yn.style.setProperty("display","none"),Yn.style.removeProperty(Tt)}).keyframes(at),er.beforeStyles({"transform-origin":`${Tt} top`}).keyframes(vn),yn.beforeStyles({"transform-origin":`${Vt} center`}).keyframes(qn),ft.addAnimation([er,yn,ir])},$e=(ft,ut,st,Mt,mt,vt,Me,je,Ke)=>{var Ct,xt;const ze=ut?"right":"left",Tt=ut?`calc(100% - ${mt.right}px)`:`${mt.left}px`,Zt=`${mt.top}px`;let Be=ut?`-${window.innerWidth-Me.right-8}px`:`${Me.x+8}px`,rn=.5;const pt="scale(1)";let _e=`scale(${rn})`;if(je&&Ke){Be=ut?`-${window.innerWidth-Ke.right-8}px`:Ke.x-8+"px";const kt=(null===(Ct=je.textContent)||void 0===Ct?void 0:Ct.trim())===(null===(xt=Mt.textContent)||void 0===xt?void 0:xt.trim());rn=Ke.height/(vt.height-Qe),_e=kt?`scale(${Ke.width/vt.width}, ${rn})`:`scale(${rn})`}const te=Me.top+Me.height/2-mt.height*rn/2+"px",me=st?[{offset:0,opacity:0,transform:`translate3d(${Be}, ${te}, 0) ${_e}`},{offset:.1,opacity:0},{offset:1,opacity:1,transform:`translate3d(0px, ${Zt}, 0) ${pt}`}]:[{offset:0,opacity:.99,transform:`translate3d(0px, ${Zt}, 0) ${pt}`},{offset:.6,opacity:0},{offset:1,opacity:0,transform:`translate3d(${Be}, ${te}, 0) ${_e}`}],Ce=re("ion-title"),at=(0,g.c)();Ce.innerText=Mt.innerText,Ce.size=Mt.size,Ce.color=Mt.color,at.addElement(Ce),at.beforeStyles({"transform-origin":`${ze} top`,height:`${mt.height}px`,display:"",position:"relative",[ze]:Tt}).beforeAddWrite(()=>{Mt.style.setProperty("opacity","0")}).afterAddWrite(()=>{Mt.style.setProperty("opacity",""),Ce.style.setProperty("display","none")}).keyframes(me),ft.addAnimation(at)},Le=(ft,ut)=>{var st;try{const Mt="cubic-bezier(0.32,0.72,0,1)",mt="opacity",vt="transform",Me="0%",Ke="rtl"===ft.ownerDocument.dir,Ct=Ke?"-99.5%":"99.5%",xt=Ke?"33%":"-33%",ze=ut.enteringEl,Tt=ut.leavingEl,Vt="back"===ut.direction,Zt=ze.querySelector(":scope > ion-content"),Dt=ze.querySelectorAll(":scope > ion-header > *:not(ion-toolbar), :scope > ion-footer > *"),Be=ze.querySelectorAll(":scope > ion-header > ion-toolbar"),rn=(0,g.c)(),pt=(0,g.c)();if(rn.addElement(ze).duration((null!==(st=ut.duration)&&void 0!==st?st:0)||540).easing(ut.easing||Mt).fill("both").beforeRemoveClass("ion-page-invisible"),Tt&&null!=ft){const te=(0,g.c)();te.addElement(ft),rn.addAnimation(te)}if(Zt||0!==Be.length||0!==Dt.length?(pt.addElement(Zt),pt.addElement(Dt)):pt.addElement(ze.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")),rn.addAnimation(pt),Vt?pt.beforeClearStyles([mt]).fromTo("transform",`translateX(${xt})`,`translateX(${Me})`).fromTo(mt,.8,1):pt.beforeClearStyles([mt]).fromTo("transform",`translateX(${Ct})`,`translateX(${Me})`),Zt){const te=Ze(Zt).querySelector(".transition-effect");if(te){const de=te.querySelector(".transition-cover"),ae=te.querySelector(".transition-shadow"),me=(0,g.c)(),Ce=(0,g.c)(),at=(0,g.c)();me.addElement(te).beforeStyles({opacity:"1",display:"block"}).afterStyles({opacity:"",display:""}),Ce.addElement(de).beforeClearStyles([mt]).fromTo(mt,0,.1),at.addElement(ae).beforeClearStyles([mt]).fromTo(mt,.03,.7),me.addAnimation([Ce,at]),pt.addAnimation([me])}}const _e=ze.querySelector("ion-header.header-collapse-condense"),{forward:j,backward:W}=((ft,ut,st,Mt,mt)=>{const vt=De(Mt,st),Me=Je(mt),je=Je(Mt),Ke=De(mt,st),Ct=null!==vt&&null!==Me&&!st,xt=null!==je&&null!==Ke&&st;if(Ct){const ze=Me.getBoundingClientRect(),Tt=vt.getBoundingClientRect(),Vt=Ze(vt).querySelector(".button-text"),Zt=null==Vt?void 0:Vt.getBoundingClientRect(),Be=Ze(Me).querySelector(".toolbar-title").getBoundingClientRect();$e(ft,ut,st,Me,ze,Be,Tt,Vt,Zt),Fe(ft,ut,st,vt,Tt,Vt,Zt,Me,Be)}else if(xt){const ze=je.getBoundingClientRect(),Tt=Ke.getBoundingClientRect(),Vt=Ze(Ke).querySelector(".button-text"),Zt=null==Vt?void 0:Vt.getBoundingClientRect(),Be=Ze(je).querySelector(".toolbar-title").getBoundingClientRect();$e(ft,ut,st,je,ze,Be,Tt,Vt,Zt),Fe(ft,ut,st,Ke,Tt,Vt,Zt,je,Be)}return{forward:Ct,backward:xt}})(rn,Ke,Vt,ze,Tt);if(Be.forEach(te=>{const de=(0,g.c)();de.addElement(te),rn.addAnimation(de);const ae=(0,g.c)();ae.addElement(te.querySelector("ion-title"));const me=(0,g.c)(),Ce=Array.from(te.querySelectorAll("ion-buttons,[menuToggle]")),at=te.closest("ion-header"),kt=null==at?void 0:at.classList.contains("header-collapse-condense-inactive");let Bt;Bt=Ce.filter(Vt?er=>{const yn=er.classList.contains("buttons-collapse");return yn&&!kt||!yn}:er=>!er.classList.contains("buttons-collapse")),me.addElement(Bt);const vn=(0,g.c)();vn.addElement(te.querySelectorAll(":scope > *:not(ion-title):not(ion-buttons):not([menuToggle])"));const bn=(0,g.c)();bn.addElement(Ze(te).querySelector(".toolbar-background"));const $n=(0,g.c)(),qn=te.querySelector("ion-back-button");if(qn&&$n.addElement(qn),de.addAnimation([ae,me,vn,bn,$n]),me.fromTo(mt,.01,1),vn.fromTo(mt,.01,1),Vt)kt||ae.fromTo("transform",`translateX(${xt})`,`translateX(${Me})`).fromTo(mt,.01,1),vn.fromTo("transform",`translateX(${xt})`,`translateX(${Me})`),$n.fromTo(mt,.01,1);else if(_e||ae.fromTo("transform",`translateX(${Ct})`,`translateX(${Me})`).fromTo(mt,.01,1),vn.fromTo("transform",`translateX(${Ct})`,`translateX(${Me})`),bn.beforeClearStyles([mt,"transform"]),(null==at?void 0:at.translucent)?bn.fromTo("transform",Ke?"translateX(-100%)":"translateX(100%)","translateX(0px)"):bn.fromTo(mt,.01,"var(--opacity)"),j||$n.fromTo(mt,.01,1),qn&&!j){const yn=(0,g.c)();yn.addElement(Ze(qn).querySelector(".button-text")).fromTo("transform",Ke?"translateX(-100px)":"translateX(100px)","translateX(0px)"),de.addAnimation(yn)}}),Tt){const te=(0,g.c)(),de=Tt.querySelector(":scope > ion-content"),ae=Tt.querySelectorAll(":scope > ion-header > ion-toolbar"),me=Tt.querySelectorAll(":scope > ion-header > *:not(ion-toolbar), :scope > ion-footer > *");if(de||0!==ae.length||0!==me.length?(te.addElement(de),te.addElement(me)):te.addElement(Tt.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")),rn.addAnimation(te),Vt){te.beforeClearStyles([mt]).fromTo("transform",`translateX(${Me})`,Ke?"translateX(-100%)":"translateX(100%)");const Ce=(0,d.g)(Tt);rn.afterAddWrite(()=>{"normal"===rn.getDirection()&&Ce.style.setProperty("display","none")})}else te.fromTo("transform",`translateX(${Me})`,`translateX(${xt})`).fromTo(mt,1,.8);if(de){const Ce=Ze(de).querySelector(".transition-effect");if(Ce){const at=Ce.querySelector(".transition-cover"),kt=Ce.querySelector(".transition-shadow"),Bt=(0,g.c)(),vn=(0,g.c)(),bn=(0,g.c)();Bt.addElement(Ce).beforeStyles({opacity:"1",display:"block"}).afterStyles({opacity:"",display:""}),vn.addElement(at).beforeClearStyles([mt]).fromTo(mt,.1,0),bn.addElement(kt).beforeClearStyles([mt]).fromTo(mt,.7,.03),Bt.addAnimation([vn,bn]),te.addAnimation([Bt])}}ae.forEach(Ce=>{const at=(0,g.c)();at.addElement(Ce);const kt=(0,g.c)();kt.addElement(Ce.querySelector("ion-title"));const Bt=(0,g.c)(),vn=Ce.querySelectorAll("ion-buttons,[menuToggle]"),bn=Ce.closest("ion-header"),$n=null==bn?void 0:bn.classList.contains("header-collapse-condense-inactive"),qn=Array.from(vn).filter(yt=>{const Ot=yt.classList.contains("buttons-collapse");return Ot&&!$n||!Ot});Bt.addElement(qn);const er=(0,g.c)(),yn=Ce.querySelectorAll(":scope > *:not(ion-title):not(ion-buttons):not([menuToggle])");yn.length>0&&er.addElement(yn);const ir=(0,g.c)();ir.addElement(Ze(Ce).querySelector(".toolbar-background"));const Yn=(0,g.c)(),Ve=Ce.querySelector("ion-back-button");if(Ve&&Yn.addElement(Ve),at.addAnimation([kt,Bt,er,Yn,ir]),rn.addAnimation(at),Yn.fromTo(mt,.99,0),Bt.fromTo(mt,.99,0),er.fromTo(mt,.99,0),Vt){if($n||kt.fromTo("transform",`translateX(${Me})`,Ke?"translateX(-100%)":"translateX(100%)").fromTo(mt,.99,0),er.fromTo("transform",`translateX(${Me})`,Ke?"translateX(-100%)":"translateX(100%)"),ir.beforeClearStyles([mt,"transform"]),(null==bn?void 0:bn.translucent)?ir.fromTo("transform","translateX(0px)",Ke?"translateX(-100%)":"translateX(100%)"):ir.fromTo(mt,"var(--opacity)",0),Ve&&!W){const Ot=(0,g.c)();Ot.addElement(Ze(Ve).querySelector(".button-text")).fromTo("transform",`translateX(${Me})`,`translateX(${(Ke?-124:124)+"px"})`),at.addAnimation(Ot)}}else $n||kt.fromTo("transform",`translateX(${Me})`,`translateX(${xt})`).fromTo(mt,.99,0).afterClearStyles([vt,mt]),er.fromTo("transform",`translateX(${Me})`,`translateX(${xt})`).afterClearStyles([vt,mt]),Yn.afterClearStyles([mt]),kt.afterClearStyles([mt]),Bt.afterClearStyles([mt])})}return rn}catch(Mt){throw Mt}},Qe=10},3314:(En,bt,B)=>{"use strict";B.r(bt),B.d(bt,{mdTransitionAnimation:()=>Ee});var g=B(9986),d=B(2725);B(8476),B(3664),B(9672);const Ee=(re,Ze)=>{var Je,De,ye;const Le="back"===Ze.direction,ft=Ze.leavingEl,ut=(0,d.g)(Ze.enteringEl),st=ut.querySelector("ion-toolbar"),Mt=(0,g.c)();if(Mt.addElement(ut).fill("both").beforeRemoveClass("ion-page-invisible"),Le?Mt.duration((null!==(Je=Ze.duration)&&void 0!==Je?Je:0)||200).easing("cubic-bezier(0.47,0,0.745,0.715)"):Mt.duration((null!==(De=Ze.duration)&&void 0!==De?De:0)||280).easing("cubic-bezier(0.36,0.66,0.04,1)").fromTo("transform","translateY(40px)","translateY(0px)").fromTo("opacity",.01,1),st){const mt=(0,g.c)();mt.addElement(st),Mt.addAnimation(mt)}if(ft&&Le){Mt.duration((null!==(ye=Ze.duration)&&void 0!==ye?ye:0)||200).easing("cubic-bezier(0.47,0,0.745,0.715)");const mt=(0,g.c)();mt.addElement((0,d.g)(ft)).onFinish(vt=>{1===vt&&mt.elements.length>0&&mt.elements[0].style.setProperty("display","none")}).fromTo("transform","translateY(0px)","translateY(40px)").fromTo("opacity",1,0),Mt.addAnimation(mt)}return Mt}},6002:(En,bt,B)=>{"use strict";B.d(bt,{B:()=>vn,F:()=>Yn,G:()=>bn,O:()=>$n,a:()=>ut,b:()=>st,c:()=>Me,d:()=>qn,e:()=>er,f:()=>j,g:()=>te,h:()=>me,i:()=>at,j:()=>Ke,k:()=>Ct,l:()=>Mt,m:()=>mt,n:()=>De,o:()=>pt,q:()=>ye,s:()=>Bt});var g=B(467),d=B(8476),ge=B(4920),Oe=B(6411),X=B(3664),Ee=B(8621),re=B(1970),Ze=B(4929);const Je='[tabindex]:not([tabindex^="-"]):not([hidden]):not([disabled]), input:not([type=hidden]):not([tabindex^="-"]):not([hidden]):not([disabled]), textarea:not([tabindex^="-"]):not([hidden]):not([disabled]), button:not([tabindex^="-"]):not([hidden]):not([disabled]), select:not([tabindex^="-"]):not([hidden]):not([disabled]), .ion-focusable:not([tabindex^="-"]):not([hidden]):not([disabled]), .ion-focusable[disabled="false"]:not([tabindex^="-"]):not([hidden])',De=(Ve,yt)=>{const Ot=Ve.querySelector(Je);Fe(Ot,null!=yt?yt:Ve)},ye=(Ve,yt)=>{const Ot=Array.from(Ve.querySelectorAll(Je));Fe(Ot.length>0?Ot[Ot.length-1]:null,null!=yt?yt:Ve)},Fe=(Ve,yt)=>{let Ot=Ve;const Xt=null==Ve?void 0:Ve.shadowRoot;Xt&&(Ot=Xt.querySelector(Je)||Ve),Ot?(0,ge.f)(Ot):yt.focus()};let $e=0,Le=0;const Qe=new WeakMap,ft=Ve=>({create:yt=>xt(Ve,yt),dismiss:(yt,Ot,Xt)=>Dt(document,yt,Ot,Ve,Xt),getTop:()=>(0,g.A)(function*(){return pt(document,Ve)})()}),ut=ft("ion-alert"),st=ft("ion-action-sheet"),Mt=ft("ion-loading"),mt=ft("ion-modal"),Me=ft("ion-popover"),Ke=Ve=>{typeof document<"u"&&Zt(document);const yt=$e++;Ve.overlayIndex=yt},Ct=Ve=>(Ve.hasAttribute("id")||(Ve.id="ion-overlay-"+ ++Le),Ve.id),xt=(Ve,yt)=>typeof window<"u"&&typeof window.customElements<"u"?window.customElements.whenDefined(Ve).then(()=>{const Ot=document.createElement(Ve);return Ot.classList.add("overlay-hidden"),Object.assign(Ot,Object.assign(Object.assign({},yt),{hasController:!0})),de(document).appendChild(Ot),new Promise(Xt=>(0,ge.c)(Ot,Xt))}):Promise.resolve(),Tt=(Ve,yt)=>{let Ot=Ve;const Xt=null==Ve?void 0:Ve.shadowRoot;Xt&&(Ot=Xt.querySelector(Je)||Ve),Ot?(0,ge.f)(Ot):yt.focus()},Zt=Ve=>{0===$e&&($e=1,Ve.addEventListener("focus",yt=>{((Ve,yt)=>{const Ot=pt(yt,"ion-alert,ion-action-sheet,ion-loading,ion-modal,ion-picker-legacy,ion-popover"),Xt=Ve.target;Ot&&Xt&&!Ot.classList.contains(Yn)&&(Ot.shadowRoot?(()=>{if(Ot.contains(Xt))Ot.lastFocus=Xt;else if("ION-TOAST"===Xt.tagName)Tt(Ot.lastFocus,Ot);else{const gn=Ot.lastFocus;De(Ot),gn===yt.activeElement&&ye(Ot),Ot.lastFocus=yt.activeElement}})():(()=>{if(Ot===Xt)Ot.lastFocus=void 0;else if("ION-TOAST"===Xt.tagName)Tt(Ot.lastFocus,Ot);else{const gn=(0,ge.g)(Ot);if(!gn.contains(Xt))return;const mn=gn.querySelector(".ion-overlay-wrapper");if(!mn)return;if(mn.contains(Xt)||Xt===gn.querySelector("ion-backdrop"))Ot.lastFocus=Xt;else{const Jt=Ot.lastFocus;De(mn,Ot),Jt===yt.activeElement&&ye(mn,Ot),Ot.lastFocus=yt.activeElement}}})())})(yt,Ve)},!0),Ve.addEventListener("ionBackButton",yt=>{const Ot=pt(Ve);null!=Ot&&Ot.backdropDismiss&&yt.detail.register(Oe.OVERLAY_BACK_BUTTON_PRIORITY,()=>{Ot.dismiss(void 0,vn)})}),(0,Oe.shouldUseCloseWatcher)()||Ve.addEventListener("keydown",yt=>{if("Escape"===yt.key){const Ot=pt(Ve);null!=Ot&&Ot.backdropDismiss&&Ot.dismiss(void 0,vn)}}))},Dt=(Ve,yt,Ot,Xt,en)=>{const Ir=pt(Ve,Xt,en);return Ir?Ir.dismiss(yt,Ot):Promise.reject("overlay does not exist")},rn=(Ve,yt)=>((Ve,yt)=>(void 0===yt&&(yt="ion-alert,ion-action-sheet,ion-loading,ion-modal,ion-picker-legacy,ion-popover,ion-toast"),Array.from(Ve.querySelectorAll(yt)).filter(Ot=>Ot.overlayIndex>0)))(Ve,yt).filter(Ot=>!(Ve=>Ve.classList.contains("overlay-hidden"))(Ot)),pt=(Ve,yt,Ot)=>{const Xt=rn(Ve,yt);return void 0===Ot?Xt[Xt.length-1]:Xt.find(en=>en.id===Ot)},_e=(Ve=!1)=>{const Ot=de(document).querySelector("ion-router-outlet, ion-nav, #ion-view-container-root");Ot&&(Ve?Ot.setAttribute("aria-hidden","true"):Ot.removeAttribute("aria-hidden"))},j=function(){var Ve=(0,g.A)(function*(yt,Ot,Xt,en,Ir){var gn,mn;if(yt.presented)return;_e(!0),document.body.classList.add(re.B),yn(yt.el),yt.presented=!0,yt.willPresent.emit(),null===(gn=yt.willPresentShorthand)||void 0===gn||gn.emit();const Jt=(0,X.b)(yt),Gt=yt.enterAnimation?yt.enterAnimation:X.c.get(Ot,"ios"===Jt?Xt:en);(yield ae(yt,Gt,yt.el,Ir))&&(yt.didPresent.emit(),null===(mn=yt.didPresentShorthand)||void 0===mn||mn.emit()),"ION-TOAST"!==yt.el.tagName&&W(yt.el),yt.keyboardClose&&(null===document.activeElement||!yt.el.contains(document.activeElement))&&yt.el.focus(),yt.el.removeAttribute("aria-hidden")});return function(Ot,Xt,en,Ir,gn){return Ve.apply(this,arguments)}}(),W=function(){var Ve=(0,g.A)(function*(yt){let Ot=document.activeElement;if(!Ot)return;const Xt=null==Ot?void 0:Ot.shadowRoot;Xt&&(Ot=Xt.querySelector(Je)||Ot),yield yt.onDidDismiss(),(null===document.activeElement||document.activeElement===document.body)&&Ot.focus()});return function(Ot){return Ve.apply(this,arguments)}}(),te=function(){var Ve=(0,g.A)(function*(yt,Ot,Xt,en,Ir,gn,mn){var Jt,Gt;if(!yt.presented)return!1;void 0!==d.d&&1===rn(d.d).length&&(_e(!1),document.body.classList.remove(re.B)),yt.presented=!1;try{yt.el.style.setProperty("pointer-events","none"),yt.willDismiss.emit({data:Ot,role:Xt}),null===(Jt=yt.willDismissShorthand)||void 0===Jt||Jt.emit({data:Ot,role:Xt});const wr=(0,X.b)(yt),kr=yt.leaveAnimation?yt.leaveAnimation:X.c.get(en,"ios"===wr?Ir:gn);Xt!==bn&&(yield ae(yt,kr,yt.el,mn)),yt.didDismiss.emit({data:Ot,role:Xt}),null===(Gt=yt.didDismissShorthand)||void 0===Gt||Gt.emit({data:Ot,role:Xt}),(Qe.get(yt)||[]).forEach(_r=>_r.destroy()),Qe.delete(yt),yt.el.classList.add("overlay-hidden"),yt.el.style.removeProperty("pointer-events"),void 0!==yt.el.lastFocus&&(yt.el.lastFocus=void 0)}catch(wr){console.error(wr)}return yt.el.remove(),ir(),!0});return function(Ot,Xt,en,Ir,gn,mn,Jt){return Ve.apply(this,arguments)}}(),de=Ve=>Ve.querySelector("ion-app")||Ve.body,ae=function(){var Ve=(0,g.A)(function*(yt,Ot,Xt,en){Xt.classList.remove("overlay-hidden");const gn=Ot(yt.el,en);(!yt.animated||!X.c.getBoolean("animated",!0))&&gn.duration(0),yt.keyboardClose&&gn.beforeAddWrite(()=>{const Jt=Xt.ownerDocument.activeElement;null!=Jt&&Jt.matches("input,ion-input, ion-textarea")&&Jt.blur()});const mn=Qe.get(yt)||[];return Qe.set(yt,[...mn,gn]),yield gn.play(),!0});return function(Ot,Xt,en,Ir){return Ve.apply(this,arguments)}}(),me=(Ve,yt)=>{let Ot;const Xt=new Promise(en=>Ot=en);return Ce(Ve,yt,en=>{Ot(en.detail)}),Xt},Ce=(Ve,yt,Ot)=>{const Xt=en=>{(0,ge.b)(Ve,yt,Xt),Ot(en)};(0,ge.a)(Ve,yt,Xt)},at=Ve=>"cancel"===Ve||Ve===vn,kt=Ve=>Ve(),Bt=(Ve,yt)=>{if("function"==typeof Ve)return X.c.get("_zoneGate",kt)(()=>{try{return Ve(yt)}catch(Xt){throw Xt}})},vn="backdrop",bn="gesture",$n=39,qn=Ve=>{let Ot,yt=!1;const Xt=(0,Ee.C)(),en=(mn=!1)=>{if(Ot&&!mn)return{delegate:Ot,inline:yt};const{el:Jt,hasController:Gt,delegate:pr}=Ve;return yt=null!==Jt.parentNode&&!Gt,Ot=yt?pr||Xt:pr,{inline:yt,delegate:Ot}};return{attachViewToDom:function(){var mn=(0,g.A)(function*(Jt){const{delegate:Gt}=en(!0);if(Gt)return yield Gt.attachViewToDom(Ve.el,Jt);const{hasController:pr}=Ve;if(pr&&void 0!==Jt)throw new Error("framework delegate is missing");return null});return function(Gt){return mn.apply(this,arguments)}}(),removeViewFromDom:()=>{const{delegate:mn}=en();mn&&void 0!==Ve.el&&mn.removeViewFromDom(Ve.el.parentElement,Ve.el)}}},er=()=>{let Ve;const yt=()=>{Ve&&(Ve(),Ve=void 0)};return{addClickListener:(Xt,en)=>{yt();const Ir=void 0!==en?document.getElementById(en):null;Ir?Ve=((mn,Jt)=>{const Gt=()=>{Jt.present()};return mn.addEventListener("click",Gt),()=>{mn.removeEventListener("click",Gt)}})(Ir,Xt):(0,Ze.p)(`A trigger element with the ID "${en}" was not found in the DOM. The trigger element must be in the DOM when the "trigger" property is set on an overlay component.`,Xt)},removeClickListener:yt}},yn=Ve=>{var yt;if(void 0===d.d)return;const Ot=rn(d.d);for(let Xt=Ot.length-1;Xt>=0;Xt--){const en=Ot[Xt],Ir=null!==(yt=Ot[Xt+1])&&void 0!==yt?yt:Ve;(Ir.hasAttribute("aria-hidden")||"ION-TOAST"!==Ir.tagName)&&en.setAttribute("aria-hidden","true")}},ir=()=>{if(void 0===d.d)return;const Ve=rn(d.d);for(let yt=Ve.length-1;yt>=0;yt--){const Ot=Ve[yt];if(Ot.removeAttribute("aria-hidden"),"ION-TOAST"!==Ot.tagName)break}},Yn="ion-disable-focus-trap"},63:(En,bt,B)=>{"use strict";var g=B(345),d=B(4438),ge=B(845),Oe=B(3656),X=B(7863),Ee=B(177);function re(_e,j){if(1&_e&&(d.j41(0,"ion-menu-toggle",5)(1,"ion-item",6),d.nrm(2,"ion-icon",7),d.j41(3,"ion-label",8),d.EFF(4),d.k0s()()()),2&_e){const W=j.$implicit;d.R7$(),d.Y8G("routerLink",W.url),d.R7$(),d.Y8G("name",W.icon),d.R7$(2),d.JRh(W.title)}}let Ze=(()=>{var _e;class j{constructor(te,de){this.router=te,this.menuController=de,this.menuItems=[{title:"Home",url:"/home",icon:"home"},{title:"Model The Product",url:"/model-product",icon:"cube"},{title:"My Team",url:"/myteam",icon:"people"}]}ngOnInit(){this.router.events.subscribe(te=>{te instanceof ge.wF&&(te.urlAfterRedirects.includes("/login")||te.urlAfterRedirects.includes("/register")?this.menuController.enable(!1):this.menuController.enable(!0))})}}return(_e=j).\u0275fac=function(te){return new(te||_e)(d.rXU(ge.Ix),d.rXU(X._t))},_e.\u0275cmp=d.VBU({type:_e,selectors:[["app-root"]],decls:11,vars:1,consts:[["when","md","contentId","menu-content"],["content-id","menu-content","menu-id","menu-id","side","start","type","overlay"],[1,"h-full"],["auto-hide","false",4,"ngFor","ngForOf"],["id","menu-content"],["auto-hide","false"],[3,"routerLink"],["slot","start",3,"name"],["color","primary"]],template:function(te,de){1&te&&(d.j41(0,"ion-app")(1,"ion-split-pane",0)(2,"ion-menu",1)(3,"ion-header")(4,"ion-toolbar")(5,"ion-title"),d.EFF(6," Menu "),d.k0s()()(),d.j41(7,"ion-content")(8,"ion-list",2),d.DNE(9,re,5,3,"ion-menu-toggle",3),d.k0s()()(),d.nrm(10,"ion-router-outlet",4),d.k0s()()),2&te&&(d.R7$(9),d.Y8G("ngForOf",de.menuItems))},dependencies:[Ee.Sq,X.U1,X.W9,X.eU,X.iq,X.uz,X.he,X.nf,X.oS,X.cA,X.HP,X.BC,X.ai,X.Rg,X.N7,ge.Wk]}),j})();var Je=B(9842),De=B(8737),ye=B(1203),Fe=B(6354),$e=B(6697);B(2214);const Qe=(0,Fe.T)(_e=>!!_e);let ft=(()=>{var _e;class j{constructor(te,de){(0,Je.A)(this,"router",void 0),(0,Je.A)(this,"auth",void 0),(0,Je.A)(this,"canActivate",(ae,me)=>{const Ce=ae.data.authGuardPipe||(()=>Qe);return(0,De.kQ)(this.auth).pipe((0,$e.s)(1),Ce(ae,me),(0,Fe.T)(at=>"boolean"==typeof at?at:Array.isArray(at)?this.router.createUrlTree(at):this.router.parseUrl(at)))}),this.router=te,this.auth=de}}return _e=j,(0,Je.A)(j,"\u0275fac",function(te){return new(te||_e)(d.KVO(ge.Ix),d.KVO(De.Nj))}),(0,Je.A)(j,"\u0275prov",d.jDH({token:_e,factory:_e.\u0275fac,providedIn:"any"})),j})();const ut=_e=>({canActivate:[ft],data:{authGuardPipe:_e}}),xt=()=>{return _e=[""],(0,ye.F)(Qe,(0,Fe.T)(j=>j||_e));var _e},ze=()=>{return _e=["home"],(0,ye.F)(Qe,(0,Fe.T)(j=>j&&_e||!0));var _e},Tt=[{path:"",redirectTo:"login",pathMatch:"full"},{path:"home",loadChildren:()=>Promise.all([B.e(2076),B.e(3118)]).then(B.bind(B,3118)).then(_e=>_e.HomePageModule),...ut(xt)},{path:"register",loadChildren:()=>Promise.all([B.e(2076),B.e(3825)]).then(B.bind(B,3825)).then(_e=>_e.RegisterPageModule),...ut(ze)},{path:"login",loadChildren:()=>Promise.all([B.e(2076),B.e(6688)]).then(B.bind(B,6688)).then(_e=>_e.LoginPageModule),...ut(ze)},{path:"myteam",loadChildren:()=>Promise.all([B.e(2076),B.e(839)]).then(B.bind(B,839)).then(_e=>_e.MyteamPageModule),...ut(xt)},{path:"model-product",loadChildren:()=>Promise.all([B.e(2076),B.e(3998)]).then(B.bind(B,3998)).then(_e=>_e.ModelProductPageModule),...ut(xt)},{path:"new-product",loadChildren:()=>Promise.all([B.e(2076),B.e(7444)]).then(B.bind(B,7444)).then(_e=>_e.NewProductPageModule),...ut(xt)},{path:"view-product",loadChildren:()=>Promise.all([B.e(2076),B.e(6927)]).then(B.bind(B,6927)).then(_e=>_e.ViewProductPageModule)},{path:"show-map",loadChildren:()=>B.e(246).then(B.bind(B,246)).then(_e=>_e.ShowMapPageModule)}];let Vt=(()=>{var _e;class j{}return(_e=j).\u0275fac=function(te){return new(te||_e)},_e.\u0275mod=d.$C({type:_e}),_e.\u0275inj=d.G2t({imports:[ge.iI.forRoot(Tt,{preloadingStrategy:ge.Kp}),ge.iI]}),j})();var Zt=B(7440),Dt=B(4262);const Be_firebase={projectId:"devprobe-89481",appId:"1:405563293900:web:ba12c0bd15401fd708c269",storageBucket:"devprobe-89481.appspot.com",apiKey:"AIzaSyAORx8ZNhFZwo_uR4tPEcmF8pKm4GAqi5A",authDomain:"devprobe-89481.firebaseapp.com",messagingSenderId:"405563293900"};let rn=(()=>{var _e;class j{}return(_e=j).\u0275fac=function(te){return new(te||_e)},_e.\u0275mod=d.$C({type:_e,bootstrap:[Ze]}),_e.\u0275inj=d.G2t({providers:[{provide:ge.b,useClass:Oe.jM},(0,Zt.MW)(()=>(0,Zt.Wp)(Be_firebase)),(0,Dt.hV)(()=>(0,Dt.aU)()),(0,De._q)(()=>(0,De.xI)())],imports:[g.Bb,X.bv.forRoot(),Vt]}),j})();(0,d.SmG)(),g.sG().bootstrapModule(rn).catch(_e=>console.log(_e))},4412:(En,bt,B)=>{"use strict";B.d(bt,{t:()=>d});var g=B(1413);class d extends g.B{constructor(Oe){super(),this._value=Oe}get value(){return this.getValue()}_subscribe(Oe){const X=super._subscribe(Oe);return!X.closed&&Oe.next(this._value),X}getValue(){const{hasError:Oe,thrownError:X,_value:Ee}=this;if(Oe)throw X;return this._throwIfClosed(),Ee}next(Oe){super.next(this._value=Oe)}}},1985:(En,bt,B)=>{"use strict";B.d(bt,{c:()=>Ze});var g=B(7707),d=B(8359),ge=B(3494),Oe=B(1203),X=B(1026),Ee=B(8071),re=B(9786);let Ze=(()=>{class Fe{constructor(Le){Le&&(this._subscribe=Le)}lift(Le){const Qe=new Fe;return Qe.source=this,Qe.operator=Le,Qe}subscribe(Le,Qe,ft){const ut=function ye(Fe){return Fe&&Fe instanceof g.vU||function De(Fe){return Fe&&(0,Ee.T)(Fe.next)&&(0,Ee.T)(Fe.error)&&(0,Ee.T)(Fe.complete)}(Fe)&&(0,d.Uv)(Fe)}(Le)?Le:new g.Ms(Le,Qe,ft);return(0,re.Y)(()=>{const{operator:st,source:Mt}=this;ut.add(st?st.call(ut,Mt):Mt?this._subscribe(ut):this._trySubscribe(ut))}),ut}_trySubscribe(Le){try{return this._subscribe(Le)}catch(Qe){Le.error(Qe)}}forEach(Le,Qe){return new(Qe=Je(Qe))((ft,ut)=>{const st=new g.Ms({next:Mt=>{try{Le(Mt)}catch(mt){ut(mt),st.unsubscribe()}},error:ut,complete:ft});this.subscribe(st)})}_subscribe(Le){var Qe;return null===(Qe=this.source)||void 0===Qe?void 0:Qe.subscribe(Le)}[ge.s](){return this}pipe(...Le){return(0,Oe.m)(Le)(this)}toPromise(Le){return new(Le=Je(Le))((Qe,ft)=>{let ut;this.subscribe(st=>ut=st,st=>ft(st),()=>Qe(ut))})}}return Fe.create=$e=>new Fe($e),Fe})();function Je(Fe){var $e;return null!==($e=null!=Fe?Fe:X.$.Promise)&&void 0!==$e?$e:Promise}},1413:(En,bt,B)=>{"use strict";B.d(bt,{B:()=>re});var g=B(1985),d=B(8359);const Oe=(0,B(1853).L)(Je=>function(){Je(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var X=B(7908),Ee=B(9786);let re=(()=>{class Je extends g.c{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(ye){const Fe=new Ze(this,this);return Fe.operator=ye,Fe}_throwIfClosed(){if(this.closed)throw new Oe}next(ye){(0,Ee.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const Fe of this.currentObservers)Fe.next(ye)}})}error(ye){(0,Ee.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=ye;const{observers:Fe}=this;for(;Fe.length;)Fe.shift().error(ye)}})}complete(){(0,Ee.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:ye}=this;for(;ye.length;)ye.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var ye;return(null===(ye=this.observers)||void 0===ye?void 0:ye.length)>0}_trySubscribe(ye){return this._throwIfClosed(),super._trySubscribe(ye)}_subscribe(ye){return this._throwIfClosed(),this._checkFinalizedStatuses(ye),this._innerSubscribe(ye)}_innerSubscribe(ye){const{hasError:Fe,isStopped:$e,observers:Le}=this;return Fe||$e?d.Kn:(this.currentObservers=null,Le.push(ye),new d.yU(()=>{this.currentObservers=null,(0,X.o)(Le,ye)}))}_checkFinalizedStatuses(ye){const{hasError:Fe,thrownError:$e,isStopped:Le}=this;Fe?ye.error($e):Le&&ye.complete()}asObservable(){const ye=new g.c;return ye.source=this,ye}}return Je.create=(De,ye)=>new Ze(De,ye),Je})();class Ze extends re{constructor(De,ye){super(),this.destination=De,this.source=ye}next(De){var ye,Fe;null===(Fe=null===(ye=this.destination)||void 0===ye?void 0:ye.next)||void 0===Fe||Fe.call(ye,De)}error(De){var ye,Fe;null===(Fe=null===(ye=this.destination)||void 0===ye?void 0:ye.error)||void 0===Fe||Fe.call(ye,De)}complete(){var De,ye;null===(ye=null===(De=this.destination)||void 0===De?void 0:De.complete)||void 0===ye||ye.call(De)}_subscribe(De){var ye,Fe;return null!==(Fe=null===(ye=this.source)||void 0===ye?void 0:ye.subscribe(De))&&void 0!==Fe?Fe:d.Kn}}},7707:(En,bt,B)=>{"use strict";B.d(bt,{Ms:()=>ft,vU:()=>Fe});var g=B(8071),d=B(8359),ge=B(1026),Oe=B(5334),X=B(5343);const Ee=Je("C",void 0,void 0);function Je(vt,Me,je){return{kind:vt,value:Me,error:je}}var De=B(9270),ye=B(9786);class Fe extends d.yU{constructor(Me){super(),this.isStopped=!1,Me?(this.destination=Me,(0,d.Uv)(Me)&&Me.add(this)):this.destination=mt}static create(Me,je,Ke){return new ft(Me,je,Ke)}next(Me){this.isStopped?Mt(function Ze(vt){return Je("N",vt,void 0)}(Me),this):this._next(Me)}error(Me){this.isStopped?Mt(function re(vt){return Je("E",void 0,vt)}(Me),this):(this.isStopped=!0,this._error(Me))}complete(){this.isStopped?Mt(Ee,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(Me){this.destination.next(Me)}_error(Me){try{this.destination.error(Me)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const $e=Function.prototype.bind;function Le(vt,Me){return $e.call(vt,Me)}class Qe{constructor(Me){this.partialObserver=Me}next(Me){const{partialObserver:je}=this;if(je.next)try{je.next(Me)}catch(Ke){ut(Ke)}}error(Me){const{partialObserver:je}=this;if(je.error)try{je.error(Me)}catch(Ke){ut(Ke)}else ut(Me)}complete(){const{partialObserver:Me}=this;if(Me.complete)try{Me.complete()}catch(je){ut(je)}}}class ft extends Fe{constructor(Me,je,Ke){let Ct;if(super(),(0,g.T)(Me)||!Me)Ct={next:null!=Me?Me:void 0,error:null!=je?je:void 0,complete:null!=Ke?Ke:void 0};else{let xt;this&&ge.$.useDeprecatedNextContext?(xt=Object.create(Me),xt.unsubscribe=()=>this.unsubscribe(),Ct={next:Me.next&&Le(Me.next,xt),error:Me.error&&Le(Me.error,xt),complete:Me.complete&&Le(Me.complete,xt)}):Ct=Me}this.destination=new Qe(Ct)}}function ut(vt){ge.$.useDeprecatedSynchronousErrorHandling?(0,ye.l)(vt):(0,Oe.m)(vt)}function Mt(vt,Me){const{onStoppedNotification:je}=ge.$;je&&De.f.setTimeout(()=>je(vt,Me))}const mt={closed:!0,next:X.l,error:function st(vt){throw vt},complete:X.l}},8359:(En,bt,B)=>{"use strict";B.d(bt,{Kn:()=>Ee,yU:()=>X,Uv:()=>re});var g=B(8071);const ge=(0,B(1853).L)(Je=>function(ye){Je(this),this.message=ye?`${ye.length} errors occurred during unsubscription:\n${ye.map((Fe,$e)=>`${$e+1}) ${Fe.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=ye});var Oe=B(7908);class X{constructor(De){this.initialTeardown=De,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let De;if(!this.closed){this.closed=!0;const{_parentage:ye}=this;if(ye)if(this._parentage=null,Array.isArray(ye))for(const Le of ye)Le.remove(this);else ye.remove(this);const{initialTeardown:Fe}=this;if((0,g.T)(Fe))try{Fe()}catch(Le){De=Le instanceof ge?Le.errors:[Le]}const{_finalizers:$e}=this;if($e){this._finalizers=null;for(const Le of $e)try{Ze(Le)}catch(Qe){De=null!=De?De:[],Qe instanceof ge?De=[...De,...Qe.errors]:De.push(Qe)}}if(De)throw new ge(De)}}add(De){var ye;if(De&&De!==this)if(this.closed)Ze(De);else{if(De instanceof X){if(De.closed||De._hasParent(this))return;De._addParent(this)}(this._finalizers=null!==(ye=this._finalizers)&&void 0!==ye?ye:[]).push(De)}}_hasParent(De){const{_parentage:ye}=this;return ye===De||Array.isArray(ye)&&ye.includes(De)}_addParent(De){const{_parentage:ye}=this;this._parentage=Array.isArray(ye)?(ye.push(De),ye):ye?[ye,De]:De}_removeParent(De){const{_parentage:ye}=this;ye===De?this._parentage=null:Array.isArray(ye)&&(0,Oe.o)(ye,De)}remove(De){const{_finalizers:ye}=this;ye&&(0,Oe.o)(ye,De),De instanceof X&&De._removeParent(this)}}X.EMPTY=(()=>{const Je=new X;return Je.closed=!0,Je})();const Ee=X.EMPTY;function re(Je){return Je instanceof X||Je&&"closed"in Je&&(0,g.T)(Je.remove)&&(0,g.T)(Je.add)&&(0,g.T)(Je.unsubscribe)}function Ze(Je){(0,g.T)(Je)?Je():Je.unsubscribe()}},1026:(En,bt,B)=>{"use strict";B.d(bt,{$:()=>g});const g={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},4572:(En,bt,B)=>{"use strict";B.d(bt,{z:()=>De});var g=B(1985),d=B(3073),ge=B(8455),Oe=B(3669),X=B(6450),Ee=B(3794),re=B(8496),Ze=B(4360),Je=B(5225);function De(...$e){const Le=(0,Ee.lI)($e),Qe=(0,Ee.ms)($e),{args:ft,keys:ut}=(0,d.D)($e);if(0===ft.length)return(0,ge.H)([],Le);const st=new g.c(function ye($e,Le,Qe=Oe.D){return ft=>{Fe(Le,()=>{const{length:ut}=$e,st=new Array(ut);let Mt=ut,mt=ut;for(let vt=0;vt{const Me=(0,ge.H)($e[vt],Le);let je=!1;Me.subscribe((0,Ze._)(ft,Ke=>{st[vt]=Ke,je||(je=!0,mt--),mt||ft.next(Qe(st.slice()))},()=>{--Mt||ft.complete()}))},ft)},ft)}}(ft,Le,ut?Mt=>(0,re.e)(ut,Mt):Oe.D));return Qe?st.pipe((0,X.I)(Qe)):st}function Fe($e,Le,Qe){$e?(0,Je.N)(Qe,$e,Le):Le()}},983:(En,bt,B)=>{"use strict";B.d(bt,{w:()=>d});const d=new(B(1985).c)(X=>X.complete())},8455:(En,bt,B)=>{"use strict";B.d(bt,{H:()=>Me});var g=B(8750),d=B(941),ge=B(6745),Ee=B(1985),Ze=B(4761),Je=B(8071),De=B(5225);function Fe(je,Ke){if(!je)throw new Error("Iterable cannot be null");return new Ee.c(Ct=>{(0,De.N)(Ct,Ke,()=>{const xt=je[Symbol.asyncIterator]();(0,De.N)(Ct,Ke,()=>{xt.next().then(ze=>{ze.done?Ct.complete():Ct.next(ze.value)})},0,!0)})})}var $e=B(5055),Le=B(9858),Qe=B(7441),ft=B(5397),ut=B(7953),st=B(591),Mt=B(5196);function Me(je,Ke){return Ke?function vt(je,Ke){if(null!=je){if((0,$e.l)(je))return function Oe(je,Ke){return(0,g.Tg)(je).pipe((0,ge._)(Ke),(0,d.Q)(Ke))}(je,Ke);if((0,Qe.X)(je))return function re(je,Ke){return new Ee.c(Ct=>{let xt=0;return Ke.schedule(function(){xt===je.length?Ct.complete():(Ct.next(je[xt++]),Ct.closed||this.schedule())})})}(je,Ke);if((0,Le.y)(je))return function X(je,Ke){return(0,g.Tg)(je).pipe((0,ge._)(Ke),(0,d.Q)(Ke))}(je,Ke);if((0,ut.T)(je))return Fe(je,Ke);if((0,ft.x)(je))return function ye(je,Ke){return new Ee.c(Ct=>{let xt;return(0,De.N)(Ct,Ke,()=>{xt=je[Ze.l](),(0,De.N)(Ct,Ke,()=>{let ze,Tt;try{({value:ze,done:Tt}=xt.next())}catch(Vt){return void Ct.error(Vt)}Tt?Ct.complete():Ct.next(ze)},0,!0)}),()=>(0,Je.T)(null==xt?void 0:xt.return)&&xt.return()})}(je,Ke);if((0,Mt.U)(je))return function mt(je,Ke){return Fe((0,Mt.C)(je),Ke)}(je,Ke)}throw(0,st.L)(je)}(je,Ke):(0,g.Tg)(je)}},3726:(En,bt,B)=>{"use strict";B.d(bt,{R:()=>De});var g=B(8750),d=B(1985),ge=B(1397),Oe=B(7441),X=B(8071),Ee=B(6450);const re=["addListener","removeListener"],Ze=["addEventListener","removeEventListener"],Je=["on","off"];function De(Qe,ft,ut,st){if((0,X.T)(ut)&&(st=ut,ut=void 0),st)return De(Qe,ft,ut).pipe((0,Ee.I)(st));const[Mt,mt]=function Le(Qe){return(0,X.T)(Qe.addEventListener)&&(0,X.T)(Qe.removeEventListener)}(Qe)?Ze.map(vt=>Me=>Qe[vt](ft,Me,ut)):function Fe(Qe){return(0,X.T)(Qe.addListener)&&(0,X.T)(Qe.removeListener)}(Qe)?re.map(ye(Qe,ft)):function $e(Qe){return(0,X.T)(Qe.on)&&(0,X.T)(Qe.off)}(Qe)?Je.map(ye(Qe,ft)):[];if(!Mt&&(0,Oe.X)(Qe))return(0,ge.Z)(vt=>De(vt,ft,ut))((0,g.Tg)(Qe));if(!Mt)throw new TypeError("Invalid event target");return new d.c(vt=>{const Me=(...je)=>vt.next(1mt(Me)})}function ye(Qe,ft){return ut=>st=>Qe[ut](ft,st)}},8750:(En,bt,B)=>{"use strict";B.d(bt,{Tg:()=>$e});var g=B(1635),d=B(7441),ge=B(9858),Oe=B(1985),X=B(5055),Ee=B(7953),re=B(591),Ze=B(5397),Je=B(5196),De=B(8071),ye=B(5334),Fe=B(3494);function $e(vt){if(vt instanceof Oe.c)return vt;if(null!=vt){if((0,X.l)(vt))return function Le(vt){return new Oe.c(Me=>{const je=vt[Fe.s]();if((0,De.T)(je.subscribe))return je.subscribe(Me);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(vt);if((0,d.X)(vt))return function Qe(vt){return new Oe.c(Me=>{for(let je=0;je{vt.then(je=>{Me.closed||(Me.next(je),Me.complete())},je=>Me.error(je)).then(null,ye.m)})}(vt);if((0,Ee.T)(vt))return st(vt);if((0,Ze.x)(vt))return function ut(vt){return new Oe.c(Me=>{for(const je of vt)if(Me.next(je),Me.closed)return;Me.complete()})}(vt);if((0,Je.U)(vt))return function Mt(vt){return st((0,Je.C)(vt))}(vt)}throw(0,re.L)(vt)}function st(vt){return new Oe.c(Me=>{(function mt(vt,Me){var je,Ke,Ct,xt;return(0,g.sH)(this,void 0,void 0,function*(){try{for(je=(0,g.xN)(vt);!(Ke=yield je.next()).done;)if(Me.next(Ke.value),Me.closed)return}catch(ze){Ct={error:ze}}finally{try{Ke&&!Ke.done&&(xt=je.return)&&(yield xt.call(je))}finally{if(Ct)throw Ct.error}}Me.complete()})})(vt,Me).catch(je=>Me.error(je))})}},7673:(En,bt,B)=>{"use strict";B.d(bt,{of:()=>ge});var g=B(3794),d=B(8455);function ge(...Oe){const X=(0,g.lI)(Oe);return(0,d.H)(Oe,X)}},4360:(En,bt,B)=>{"use strict";B.d(bt,{_:()=>d});var g=B(7707);function d(Oe,X,Ee,re,Ze){return new ge(Oe,X,Ee,re,Ze)}class ge extends g.vU{constructor(X,Ee,re,Ze,Je,De){super(X),this.onFinalize=Je,this.shouldUnsubscribe=De,this._next=Ee?function(ye){try{Ee(ye)}catch(Fe){X.error(Fe)}}:super._next,this._error=Ze?function(ye){try{Ze(ye)}catch(Fe){X.error(Fe)}finally{this.unsubscribe()}}:super._error,this._complete=re?function(){try{re()}catch(ye){X.error(ye)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var X;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:Ee}=this;super.unsubscribe(),!Ee&&(null===(X=this.onFinalize)||void 0===X||X.call(this))}}}},5964:(En,bt,B)=>{"use strict";B.d(bt,{p:()=>ge});var g=B(9974),d=B(4360);function ge(Oe,X){return(0,g.N)((Ee,re)=>{let Ze=0;Ee.subscribe((0,d._)(re,Je=>Oe.call(X,Je,Ze++)&&re.next(Je)))})}},6354:(En,bt,B)=>{"use strict";B.d(bt,{T:()=>ge});var g=B(9974),d=B(4360);function ge(Oe,X){return(0,g.N)((Ee,re)=>{let Ze=0;Ee.subscribe((0,d._)(re,Je=>{re.next(Oe.call(X,Je,Ze++))}))})}},1397:(En,bt,B)=>{"use strict";B.d(bt,{Z:()=>Ze});var g=B(6354),d=B(8750),ge=B(9974),Oe=B(5225),X=B(4360),re=B(8071);function Ze(Je,De,ye=1/0){return(0,re.T)(De)?Ze((Fe,$e)=>(0,g.T)((Le,Qe)=>De(Fe,Le,$e,Qe))((0,d.Tg)(Je(Fe,$e))),ye):("number"==typeof De&&(ye=De),(0,ge.N)((Fe,$e)=>function Ee(Je,De,ye,Fe,$e,Le,Qe,ft){const ut=[];let st=0,Mt=0,mt=!1;const vt=()=>{mt&&!ut.length&&!st&&De.complete()},Me=Ke=>st{Le&&De.next(Ke),st++;let Ct=!1;(0,d.Tg)(ye(Ke,Mt++)).subscribe((0,X._)(De,xt=>{null==$e||$e(xt),Le?Me(xt):De.next(xt)},()=>{Ct=!0},void 0,()=>{if(Ct)try{for(st--;ut.length&&stje(xt)):je(xt)}vt()}catch(xt){De.error(xt)}}))};return Je.subscribe((0,X._)(De,Me,()=>{mt=!0,vt()})),()=>{null==ft||ft()}}(Fe,$e,Je,ye)))}},941:(En,bt,B)=>{"use strict";B.d(bt,{Q:()=>Oe});var g=B(5225),d=B(9974),ge=B(4360);function Oe(X,Ee=0){return(0,d.N)((re,Ze)=>{re.subscribe((0,ge._)(Ze,Je=>(0,g.N)(Ze,X,()=>Ze.next(Je),Ee),()=>(0,g.N)(Ze,X,()=>Ze.complete(),Ee),Je=>(0,g.N)(Ze,X,()=>Ze.error(Je),Ee)))})}},6745:(En,bt,B)=>{"use strict";B.d(bt,{_:()=>d});var g=B(9974);function d(ge,Oe=0){return(0,g.N)((X,Ee)=>{Ee.add(ge.schedule(()=>X.subscribe(Ee),Oe))})}},5558:(En,bt,B)=>{"use strict";B.d(bt,{n:()=>Oe});var g=B(8750),d=B(9974),ge=B(4360);function Oe(X,Ee){return(0,d.N)((re,Ze)=>{let Je=null,De=0,ye=!1;const Fe=()=>ye&&!Je&&Ze.complete();re.subscribe((0,ge._)(Ze,$e=>{null==Je||Je.unsubscribe();let Le=0;const Qe=De++;(0,g.Tg)(X($e,Qe)).subscribe(Je=(0,ge._)(Ze,ft=>Ze.next(Ee?Ee($e,ft,Qe,Le++):ft),()=>{Je=null,Fe()}))},()=>{ye=!0,Fe()}))})}},6697:(En,bt,B)=>{"use strict";B.d(bt,{s:()=>Oe});var g=B(983),d=B(9974),ge=B(4360);function Oe(X){return X<=0?()=>g.w:(0,d.N)((Ee,re)=>{let Ze=0;Ee.subscribe((0,ge._)(re,Je=>{++Ze<=X&&(re.next(Je),X<=Ze&&re.complete())}))})}},8141:(En,bt,B)=>{"use strict";B.d(bt,{M:()=>X});var g=B(8071),d=B(9974),ge=B(4360),Oe=B(3669);function X(Ee,re,Ze){const Je=(0,g.T)(Ee)||re||Ze?{next:Ee,error:re,complete:Ze}:Ee;return Je?(0,d.N)((De,ye)=>{var Fe;null===(Fe=Je.subscribe)||void 0===Fe||Fe.call(Je);let $e=!0;De.subscribe((0,ge._)(ye,Le=>{var Qe;null===(Qe=Je.next)||void 0===Qe||Qe.call(Je,Le),ye.next(Le)},()=>{var Le;$e=!1,null===(Le=Je.complete)||void 0===Le||Le.call(Je),ye.complete()},Le=>{var Qe;$e=!1,null===(Qe=Je.error)||void 0===Qe||Qe.call(Je,Le),ye.error(Le)},()=>{var Le,Qe;$e&&(null===(Le=Je.unsubscribe)||void 0===Le||Le.call(Je)),null===(Qe=Je.finalize)||void 0===Qe||Qe.call(Je)}))}):Oe.D}},9270:(En,bt,B)=>{"use strict";B.d(bt,{f:()=>g});const g={setTimeout(d,ge,...Oe){const{delegate:X}=g;return null!=X&&X.setTimeout?X.setTimeout(d,ge,...Oe):setTimeout(d,ge,...Oe)},clearTimeout(d){const{delegate:ge}=g;return((null==ge?void 0:ge.clearTimeout)||clearTimeout)(d)},delegate:void 0}},4761:(En,bt,B)=>{"use strict";B.d(bt,{l:()=>d});const d=function g(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},3494:(En,bt,B)=>{"use strict";B.d(bt,{s:()=>g});const g="function"==typeof Symbol&&Symbol.observable||"@@observable"},3794:(En,bt,B)=>{"use strict";B.d(bt,{ms:()=>Oe,lI:()=>X});var g=B(8071);function ge(re){return re[re.length-1]}function Oe(re){return(0,g.T)(ge(re))?re.pop():void 0}function X(re){return function d(re){return re&&(0,g.T)(re.schedule)}(ge(re))?re.pop():void 0}},3073:(En,bt,B)=>{"use strict";B.d(bt,{D:()=>X});const{isArray:g}=Array,{getPrototypeOf:d,prototype:ge,keys:Oe}=Object;function X(re){if(1===re.length){const Ze=re[0];if(g(Ze))return{args:Ze,keys:null};if(function Ee(re){return re&&"object"==typeof re&&d(re)===ge}(Ze)){const Je=Oe(Ze);return{args:Je.map(De=>Ze[De]),keys:Je}}}return{args:re,keys:null}}},7908:(En,bt,B)=>{"use strict";function g(d,ge){if(d){const Oe=d.indexOf(ge);0<=Oe&&d.splice(Oe,1)}}B.d(bt,{o:()=>g})},1853:(En,bt,B)=>{"use strict";function g(d){const Oe=d(X=>{Error.call(X),X.stack=(new Error).stack});return Oe.prototype=Object.create(Error.prototype),Oe.prototype.constructor=Oe,Oe}B.d(bt,{L:()=>g})},8496:(En,bt,B)=>{"use strict";function g(d,ge){return d.reduce((Oe,X,Ee)=>(Oe[X]=ge[Ee],Oe),{})}B.d(bt,{e:()=>g})},9786:(En,bt,B)=>{"use strict";B.d(bt,{Y:()=>ge,l:()=>Oe});var g=B(1026);let d=null;function ge(X){if(g.$.useDeprecatedSynchronousErrorHandling){const Ee=!d;if(Ee&&(d={errorThrown:!1,error:null}),X(),Ee){const{errorThrown:re,error:Ze}=d;if(d=null,re)throw Ze}}else X()}function Oe(X){g.$.useDeprecatedSynchronousErrorHandling&&d&&(d.errorThrown=!0,d.error=X)}},5225:(En,bt,B)=>{"use strict";function g(d,ge,Oe,X=0,Ee=!1){const re=ge.schedule(function(){Oe(),Ee?d.add(this.schedule(null,X)):this.unsubscribe()},X);if(d.add(re),!Ee)return re}B.d(bt,{N:()=>g})},3669:(En,bt,B)=>{"use strict";function g(d){return d}B.d(bt,{D:()=>g})},7441:(En,bt,B)=>{"use strict";B.d(bt,{X:()=>g});const g=d=>d&&"number"==typeof d.length&&"function"!=typeof d},7953:(En,bt,B)=>{"use strict";B.d(bt,{T:()=>d});var g=B(8071);function d(ge){return Symbol.asyncIterator&&(0,g.T)(null==ge?void 0:ge[Symbol.asyncIterator])}},8071:(En,bt,B)=>{"use strict";function g(d){return"function"==typeof d}B.d(bt,{T:()=>g})},5055:(En,bt,B)=>{"use strict";B.d(bt,{l:()=>ge});var g=B(3494),d=B(8071);function ge(Oe){return(0,d.T)(Oe[g.s])}},5397:(En,bt,B)=>{"use strict";B.d(bt,{x:()=>ge});var g=B(4761),d=B(8071);function ge(Oe){return(0,d.T)(null==Oe?void 0:Oe[g.l])}},9858:(En,bt,B)=>{"use strict";B.d(bt,{y:()=>d});var g=B(8071);function d(ge){return(0,g.T)(null==ge?void 0:ge.then)}},5196:(En,bt,B)=>{"use strict";B.d(bt,{C:()=>ge,U:()=>Oe});var g=B(1635),d=B(8071);function ge(X){return(0,g.AQ)(this,arguments,function*(){const re=X.getReader();try{for(;;){const{value:Ze,done:Je}=yield(0,g.N3)(re.read());if(Je)return yield(0,g.N3)(void 0);yield yield(0,g.N3)(Ze)}}finally{re.releaseLock()}})}function Oe(X){return(0,d.T)(null==X?void 0:X.getReader)}},9974:(En,bt,B)=>{"use strict";B.d(bt,{N:()=>ge,S:()=>d});var g=B(8071);function d(Oe){return(0,g.T)(null==Oe?void 0:Oe.lift)}function ge(Oe){return X=>{if(d(X))return X.lift(function(Ee){try{return Oe(Ee,this)}catch(re){this.error(re)}});throw new TypeError("Unable to lift unknown Observable type")}}},6450:(En,bt,B)=>{"use strict";B.d(bt,{I:()=>Oe});var g=B(6354);const{isArray:d}=Array;function Oe(X){return(0,g.T)(Ee=>function ge(X,Ee){return d(Ee)?X(...Ee):X(Ee)}(X,Ee))}},5343:(En,bt,B)=>{"use strict";function g(){}B.d(bt,{l:()=>g})},1203:(En,bt,B)=>{"use strict";B.d(bt,{F:()=>d,m:()=>ge});var g=B(3669);function d(...Oe){return ge(Oe)}function ge(Oe){return 0===Oe.length?g.D:1===Oe.length?Oe[0]:function(Ee){return Oe.reduce((re,Ze)=>Ze(re),Ee)}}},5334:(En,bt,B)=>{"use strict";B.d(bt,{m:()=>ge});var g=B(1026),d=B(9270);function ge(Oe){d.f.setTimeout(()=>{const{onUnhandledError:X}=g.$;if(!X)throw Oe;X(Oe)})}},591:(En,bt,B)=>{"use strict";function g(d){return new TypeError(`You provided ${null!==d&&"object"==typeof d?"an invalid object":`'${d}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}B.d(bt,{L:()=>g})},8996:(En,bt,B)=>{var g={"./ion-accordion_2.entry.js":[2375,2076,2375],"./ion-action-sheet.entry.js":[8814,2076,8814],"./ion-alert.entry.js":[5222,2076,5222],"./ion-app_8.entry.js":[7720,2076,7720],"./ion-avatar_3.entry.js":[1049,1049],"./ion-back-button.entry.js":[3162,2076,3162],"./ion-backdrop.entry.js":[7240,7240],"./ion-breadcrumb_2.entry.js":[8314,2076,8314],"./ion-button_2.entry.js":[4591,4591],"./ion-card_5.entry.js":[8584,8584],"./ion-checkbox.entry.js":[3511,3511],"./ion-chip.entry.js":[6024,6024],"./ion-col_3.entry.js":[5100,5100],"./ion-datetime-button.entry.js":[7428,1293,7428],"./ion-datetime_3.entry.js":[2885,1293,2076,2885],"./ion-fab_3.entry.js":[4463,2076,4463],"./ion-img.entry.js":[4183,4183],"./ion-infinite-scroll_2.entry.js":[4171,2076,4171],"./ion-input-password-toggle.entry.js":[6521,2076,6521],"./ion-input.entry.js":[9344,2076,9344],"./ion-item-option_3.entry.js":[5949,2076,5949],"./ion-item_8.entry.js":[3506,2076,3506],"./ion-loading.entry.js":[7372,2076,7372],"./ion-menu_3.entry.js":[2075,2076,2075],"./ion-modal.entry.js":[441,2076,441],"./ion-nav_2.entry.js":[5712,2076,5712],"./ion-picker-column-option.entry.js":[9013,9013],"./ion-picker-column.entry.js":[1459,2076,1459],"./ion-picker.entry.js":[6840,6840],"./ion-popover.entry.js":[6433,2076,6433],"./ion-progress-bar.entry.js":[9977,9977],"./ion-radio_2.entry.js":[8066,2076,8066],"./ion-range.entry.js":[8477,2076,8477],"./ion-refresher_2.entry.js":[5197,2076,5197],"./ion-reorder_2.entry.js":[7030,2076,7030],"./ion-ripple-effect.entry.js":[964,964],"./ion-route_4.entry.js":[8970,8970],"./ion-searchbar.entry.js":[8193,2076,8193],"./ion-segment_2.entry.js":[2560,2076,2560],"./ion-select_3.entry.js":[7076,2076,7076],"./ion-spinner.entry.js":[8805,2076,8805],"./ion-split-pane.entry.js":[5887,5887],"./ion-tab-bar_2.entry.js":[4406,2076,4406],"./ion-tab_2.entry.js":[1102,1102],"./ion-text.entry.js":[1577,1577],"./ion-textarea.entry.js":[2348,2076,2348],"./ion-toast.entry.js":[2415,2076,2415],"./ion-toggle.entry.js":[3814,2076,3814]};function d(ge){if(!B.o(g,ge))return Promise.resolve().then(()=>{var Ee=new Error("Cannot find module '"+ge+"'");throw Ee.code="MODULE_NOT_FOUND",Ee});var Oe=g[ge],X=Oe[0];return Promise.all(Oe.slice(1).map(B.e)).then(()=>B(X))}d.keys=()=>Object.keys(g),d.id=8996,En.exports=d},177:(En,bt,B)=>{"use strict";B.d(bt,{AJ:()=>Lt,MD:()=>et,N0:()=>ci,QT:()=>ge,Sm:()=>ft,Sq:()=>cn,T3:()=>kn,VF:()=>X,Vy:()=>Cn,Xr:()=>cr,ZD:()=>Oe,_b:()=>Y,aZ:()=>st,bT:()=>Hn,fw:()=>ut,hb:()=>Le,hj:()=>Je,qQ:()=>re});var g=B(4438);let d=null;function ge(){return d}function Oe(D){var V;null!==(V=d)&&void 0!==V||(d=D)}class X{}const re=new g.nKC("");let Ze=(()=>{var D;class V{historyGo(O){throw new Error("")}}return(D=V).\u0275fac=function(O){return new(O||D)},D.\u0275prov=g.jDH({token:D,factory:()=>(0,g.WQX)(De),providedIn:"platform"}),V})();const Je=new g.nKC("");let De=(()=>{var D;class V extends Ze{constructor(){super(),this._doc=(0,g.WQX)(re),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return ge().getBaseHref(this._doc)}onPopState(O){const le=ge().getGlobalEventTarget(this._doc,"window");return le.addEventListener("popstate",O,!1),()=>le.removeEventListener("popstate",O)}onHashChange(O){const le=ge().getGlobalEventTarget(this._doc,"window");return le.addEventListener("hashchange",O,!1),()=>le.removeEventListener("hashchange",O)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(O){this._location.pathname=O}pushState(O,le,xe){this._history.pushState(O,le,xe)}replaceState(O,le,xe){this._history.replaceState(O,le,xe)}forward(){this._history.forward()}back(){this._history.back()}historyGo(O=0){this._history.go(O)}getState(){return this._history.state}}return(D=V).\u0275fac=function(O){return new(O||D)},D.\u0275prov=g.jDH({token:D,factory:()=>new D,providedIn:"platform"}),V})();function ye(D,V){if(0==D.length)return V;if(0==V.length)return D;let be=0;return D.endsWith("/")&&be++,V.startsWith("/")&&be++,2==be?D+V.substring(1):1==be?D+V:D+"/"+V}function Fe(D){const V=D.match(/#|\?|$/),be=V&&V.index||D.length;return D.slice(0,be-("/"===D[be-1]?1:0))+D.slice(be)}function $e(D){return D&&"?"!==D[0]?"?"+D:D}let Le=(()=>{var D;class V{historyGo(O){throw new Error("")}}return(D=V).\u0275fac=function(O){return new(O||D)},D.\u0275prov=g.jDH({token:D,factory:()=>(0,g.WQX)(ft),providedIn:"root"}),V})();const Qe=new g.nKC("");let ft=(()=>{var D;class V extends Le{constructor(O,le){var xe,Ft,an;super(),this._platformLocation=O,this._removeListenerFns=[],this._baseHref=null!==(xe=null!==(Ft=null!=le?le:this._platformLocation.getBaseHrefFromDOM())&&void 0!==Ft?Ft:null===(an=(0,g.WQX)(re).location)||void 0===an?void 0:an.origin)&&void 0!==xe?xe:""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(O){this._removeListenerFns.push(this._platformLocation.onPopState(O),this._platformLocation.onHashChange(O))}getBaseHref(){return this._baseHref}prepareExternalUrl(O){return ye(this._baseHref,O)}path(O=!1){const le=this._platformLocation.pathname+$e(this._platformLocation.search),xe=this._platformLocation.hash;return xe&&O?`${le}${xe}`:le}pushState(O,le,xe,Ft){const an=this.prepareExternalUrl(xe+$e(Ft));this._platformLocation.pushState(O,le,an)}replaceState(O,le,xe,Ft){const an=this.prepareExternalUrl(xe+$e(Ft));this._platformLocation.replaceState(O,le,an)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(O=0){var le,xe;null===(le=(xe=this._platformLocation).historyGo)||void 0===le||le.call(xe,O)}}return(D=V).\u0275fac=function(O){return new(O||D)(g.KVO(Ze),g.KVO(Qe,8))},D.\u0275prov=g.jDH({token:D,factory:D.\u0275fac,providedIn:"root"}),V})(),ut=(()=>{var D;class V extends Le{constructor(O,le){super(),this._platformLocation=O,this._baseHref="",this._removeListenerFns=[],null!=le&&(this._baseHref=le)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(O){this._removeListenerFns.push(this._platformLocation.onPopState(O),this._platformLocation.onHashChange(O))}getBaseHref(){return this._baseHref}path(O=!1){var le;const xe=null!==(le=this._platformLocation.hash)&&void 0!==le?le:"#";return xe.length>0?xe.substring(1):xe}prepareExternalUrl(O){const le=ye(this._baseHref,O);return le.length>0?"#"+le:le}pushState(O,le,xe,Ft){let an=this.prepareExternalUrl(xe+$e(Ft));0==an.length&&(an=this._platformLocation.pathname),this._platformLocation.pushState(O,le,an)}replaceState(O,le,xe,Ft){let an=this.prepareExternalUrl(xe+$e(Ft));0==an.length&&(an=this._platformLocation.pathname),this._platformLocation.replaceState(O,le,an)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(O=0){var le,xe;null===(le=(xe=this._platformLocation).historyGo)||void 0===le||le.call(xe,O)}}return(D=V).\u0275fac=function(O){return new(O||D)(g.KVO(Ze),g.KVO(Qe,8))},D.\u0275prov=g.jDH({token:D,factory:D.\u0275fac}),V})(),st=(()=>{var D;class V{constructor(O){this._subject=new g.bkB,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=O;const le=this._locationStrategy.getBaseHref();this._basePath=function Me(D){if(new RegExp("^(https?:)?//").test(D)){const[,be]=D.split(/\/\/[^\/]+/);return be}return D}(Fe(vt(le))),this._locationStrategy.onPopState(xe=>{this._subject.emit({url:this.path(!0),pop:!0,state:xe.state,type:xe.type})})}ngOnDestroy(){var O;null===(O=this._urlChangeSubscription)||void 0===O||O.unsubscribe(),this._urlChangeListeners=[]}path(O=!1){return this.normalize(this._locationStrategy.path(O))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(O,le=""){return this.path()==this.normalize(O+$e(le))}normalize(O){return V.stripTrailingSlash(function mt(D,V){if(!D||!V.startsWith(D))return V;const be=V.substring(D.length);return""===be||["/",";","?","#"].includes(be[0])?be:V}(this._basePath,vt(O)))}prepareExternalUrl(O){return O&&"/"!==O[0]&&(O="/"+O),this._locationStrategy.prepareExternalUrl(O)}go(O,le="",xe=null){this._locationStrategy.pushState(xe,"",O,le),this._notifyUrlChangeListeners(this.prepareExternalUrl(O+$e(le)),xe)}replaceState(O,le="",xe=null){this._locationStrategy.replaceState(xe,"",O,le),this._notifyUrlChangeListeners(this.prepareExternalUrl(O+$e(le)),xe)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(O=0){var le,xe;null===(le=(xe=this._locationStrategy).historyGo)||void 0===le||le.call(xe,O)}onUrlChange(O){var le;return this._urlChangeListeners.push(O),null!==(le=this._urlChangeSubscription)&&void 0!==le||(this._urlChangeSubscription=this.subscribe(xe=>{this._notifyUrlChangeListeners(xe.url,xe.state)})),()=>{const xe=this._urlChangeListeners.indexOf(O);var Ft;this._urlChangeListeners.splice(xe,1),0===this._urlChangeListeners.length&&(null===(Ft=this._urlChangeSubscription)||void 0===Ft||Ft.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(O="",le){this._urlChangeListeners.forEach(xe=>xe(O,le))}subscribe(O,le,xe){return this._subject.subscribe({next:O,error:le,complete:xe})}}return(D=V).normalizeQueryParams=$e,D.joinWithSlash=ye,D.stripTrailingSlash=Fe,D.\u0275fac=function(O){return new(O||D)(g.KVO(Le))},D.\u0275prov=g.jDH({token:D,factory:()=>function Mt(){return new st((0,g.KVO)(Le))}(),providedIn:"root"}),V})();function vt(D){return D.replace(/\/index.html$/,"")}function Y(D,V){V=encodeURIComponent(V);for(const be of D.split(";")){const O=be.indexOf("="),[le,xe]=-1==O?[be,""]:[be.slice(0,O),be.slice(O+1)];if(le.trim()===V)return decodeURIComponent(xe)}return null}class Wt{constructor(V,be,O,le){this.$implicit=V,this.ngForOf=be,this.index=O,this.count=le}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let cn=(()=>{var D;class V{set ngForOf(O){this._ngForOf=O,this._ngForOfDirty=!0}set ngForTrackBy(O){this._trackByFn=O}get ngForTrackBy(){return this._trackByFn}constructor(O,le,xe){this._viewContainer=O,this._template=le,this._differs=xe,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(O){O&&(this._template=O)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const O=this._ngForOf;!this._differ&&O&&(this._differ=this._differs.find(O).create(this.ngForTrackBy))}if(this._differ){const O=this._differ.diff(this._ngForOf);O&&this._applyChanges(O)}}_applyChanges(O){const le=this._viewContainer;O.forEachOperation((xe,Ft,an)=>{if(null==xe.previousIndex)le.createEmbeddedView(this._template,new Wt(xe.item,this._ngForOf,-1,-1),null===an?void 0:an);else if(null==an)le.remove(null===Ft?void 0:Ft);else if(null!==Ft){const Un=le.get(Ft);le.move(Un,an),Pn(Un,xe)}});for(let xe=0,Ft=le.length;xe{Pn(le.get(xe.currentIndex),xe)})}static ngTemplateContextGuard(O,le){return!0}}return(D=V).\u0275fac=function(O){return new(O||D)(g.rXU(g.c1b),g.rXU(g.C4Q),g.rXU(g._q3))},D.\u0275dir=g.FsC({type:D,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),V})();function Pn(D,V){D.context.$implicit=V.item}let Hn=(()=>{var D;class V{constructor(O,le){this._viewContainer=O,this._context=new $i,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=le}set ngIf(O){this._context.$implicit=this._context.ngIf=O,this._updateView()}set ngIfThen(O){Ai("ngIfThen",O),this._thenTemplateRef=O,this._thenViewRef=null,this._updateView()}set ngIfElse(O){Ai("ngIfElse",O),this._elseTemplateRef=O,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(O,le){return!0}}return(D=V).\u0275fac=function(O){return new(O||D)(g.rXU(g.c1b),g.rXU(g.C4Q))},D.\u0275dir=g.FsC({type:D,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),V})();class $i{constructor(){this.$implicit=null,this.ngIf=null}}function Ai(D,V){if(V&&!V.createEmbeddedView)throw new Error(`${D} must be a TemplateRef, but received '${(0,g.Tbb)(V)}'.`)}let kn=(()=>{var D;class V{constructor(O){this._viewContainerRef=O,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(O){if(this._shouldRecreateView(O)){var le;const xe=this._viewContainerRef;if(this._viewRef&&xe.remove(xe.indexOf(this._viewRef)),!this.ngTemplateOutlet)return void(this._viewRef=null);const Ft=this._createContextForwardProxy();this._viewRef=xe.createEmbeddedView(this.ngTemplateOutlet,Ft,{injector:null!==(le=this.ngTemplateOutletInjector)&&void 0!==le?le:void 0})}}_shouldRecreateView(O){return!!O.ngTemplateOutlet||!!O.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(O,le,xe)=>!!this.ngTemplateOutletContext&&Reflect.set(this.ngTemplateOutletContext,le,xe),get:(O,le,xe)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,le,xe)}})}}return(D=V).\u0275fac=function(O){return new(O||D)(g.rXU(g.c1b))},D.\u0275dir=g.FsC({type:D,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[g.OA$]}),V})(),et=(()=>{var D;class V{}return(D=V).\u0275fac=function(O){return new(O||D)},D.\u0275mod=g.$C({type:D}),D.\u0275inj=g.G2t({}),V})();const Lt="browser",zt="server";function Cn(D){return D===zt}let cr=(()=>{var D;class V{}return(D=V).\u0275prov=(0,g.jDH)({token:D,providedIn:"root",factory:()=>function _n(D){return D===Lt}((0,g.WQX)(g.Agw))?new nr((0,g.WQX)(re),window):new vi}),V})();class nr{constructor(V,be){this.document=V,this.window=be,this.offset=()=>[0,0]}setOffset(V){this.offset=Array.isArray(V)?()=>V:V}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(V){this.window.scrollTo(V[0],V[1])}scrollToAnchor(V){const be=function li(D,V){const be=D.getElementById(V)||D.getElementsByName(V)[0];if(be)return be;if("function"==typeof D.createTreeWalker&&D.body&&"function"==typeof D.body.attachShadow){const O=D.createTreeWalker(D.body,NodeFilter.SHOW_ELEMENT);let le=O.currentNode;for(;le;){const xe=le.shadowRoot;if(xe){const Ft=xe.getElementById(V)||xe.querySelector(`[name="${V}"]`);if(Ft)return Ft}le=O.nextNode()}}return null}(this.document,V);be&&(this.scrollToElement(be),be.focus())}setHistoryScrollRestoration(V){this.window.history.scrollRestoration=V}scrollToElement(V){const be=V.getBoundingClientRect(),O=be.left+this.window.pageXOffset,le=be.top+this.window.pageYOffset,xe=this.offset();this.window.scrollTo(O-xe[0],le-xe[1])}}class vi{setOffset(V){}getScrollPosition(){return[0,0]}scrollToPosition(V){}scrollToAnchor(V){}setHistoryScrollRestoration(V){}}class ci{}},4438:(En,bt,B)=>{"use strict";B.d(bt,{iLQ:()=>jI,sZ2:()=>vv,hnV:()=>eD,Hbi:()=>ZM,o8S:()=>Id,BIS:()=>yy,gRc:()=>fD,Ql9:()=>TM,Ocv:()=>xM,Z63:()=>oo,aKT:()=>Qu,uvJ:()=>Jo,zcH:()=>Ya,bkB:()=>Os,$GK:()=>sr,nKC:()=>Q,zZn:()=>ds,_q3:()=>QI,MKu:()=>YI,xe9:()=>sy,Co$:()=>hi,Vns:()=>io,SKi:()=>Eo,Xx1:()=>_n,Agw:()=>Zd,PLl:()=>_v,sFG:()=>gm,_9s:()=>lp,czy:()=>Xg,kdw:()=>Ln,C4Q:()=>sp,NYb:()=>vM,giA:()=>ZT,xvI:()=>GR,RxE:()=>GT,c1b:()=>hd,gXe:()=>ms,mal:()=>u_,L39:()=>wP,a0P:()=>kP,Ol2:()=>K0,w6W:()=>rs,oH4:()=>uD,SmG:()=>VM,Rfq:()=>Yr,WQX:()=>Ae,QuC:()=>ro,EmA:()=>ul,fpN:()=>YM,HJs:()=>FP,N4e:()=>lo,O8t:()=>RP,H3F:()=>WT,H8p:()=>dl,KH2:()=>Xp,TgB:()=>Mp,wOt:()=>Ve,WHO:()=>QT,e01:()=>YT,H5H:()=>_I,Zy3:()=>yt,mq5:()=>lC,JZv:()=>Bn,LfX:()=>St,plB:()=>tl,jNT:()=>$I,zjR:()=>JT,TL$:()=>Cg,Tbb:()=>tr,Vt3:()=>bp,Mj6:()=>ss,GFd:()=>Li,OA$:()=>At,Jv_:()=>ET,aNF:()=>AT,R7$:()=>r0,BMQ:()=>iI,AVh:()=>cI,wni:()=>QC,VBU:()=>vs,FsC:()=>as,jDH:()=>or,G2t:()=>wi,$C:()=>sl,EJ8:()=>ha,rXU:()=>id,nrm:()=>mI,eu8:()=>vI,bVm:()=>Y_,qex:()=>Q_,k0s:()=>X_,j41:()=>q_,RV6:()=>oC,xGo:()=>cf,KVO:()=>U,kS0:()=>Vc,QTQ:()=>o0,bIt:()=>EI,lsd:()=>JC,XpG:()=>UC,SdG:()=>BC,NAR:()=>$C,Y8G:()=>lI,FS9:()=>CI,lJ4:()=>TT,mGM:()=>ZC,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}),B(467);let ge=null,X=1;const Ee=Symbol("SIGNAL");function re(e){const t=ge;return ge=e,t}function Le(e){if((!Ke(e)||e.dirty)&&(e.dirty||e.lastCleanEpoch!==X)){if(!e.producerMustRecompute(e)&&!mt(e))return e.dirty=!1,void(e.lastCleanEpoch=X);e.producerRecomputeValue(e),e.dirty=!1,e.lastCleanEpoch=X}}function mt(e){Ct(e);for(let t=0;t0}function Ct(e){var t,r,o;null!==(t=e.producerNode)&&void 0!==t||(e.producerNode=[]),null!==(r=e.producerIndexOfThis)&&void 0!==r||(e.producerIndexOfThis=[]),null!==(o=e.producerLastReadVersion)&&void 0!==o||(e.producerLastReadVersion=[])}let rn=null;var $n=B(1413),qn=B(8359),er=B(4412),yn=B(6354);const Yn="https://g.co/ng/security#xss";class Ve extends Error{constructor(t,r){super(yt(t,r)),this.code=t}}function yt(e,t){return`NG0${Math.abs(e)}${t?": "+t:""}`}function mn(e){return{toString:e}.toString()}const Gt="__parameters__";function Mr(e,t,r){return mn(()=>{const o=function kr(e){return function(...r){if(e){const o=e(...r);for(const a in o)this[a]=o[a]}}}(t);function a(...c){if(this instanceof a)return o.apply(this,c),this;const p=new a(...c);return y.annotation=p,y;function y(A,F,K){const ee=A.hasOwnProperty(Gt)?A[Gt]:Object.defineProperty(A,Gt,{value:[]})[Gt];for(;ee.length<=K;)ee.push(null);return(ee[K]=ee[K]||[]).push(p),A}}return r&&(a.prototype=Object.create(r.prototype)),a.prototype.ngMetadataName=e,a.annotationCls=a,a})}const Bn=globalThis;function wn(e){for(let t in e)if(e[t]===wn)return t;throw Error("Could not find renamed property on target object.")}function Sr(e,t){for(const r in t)t.hasOwnProperty(r)&&!e.hasOwnProperty(r)&&(e[r]=t[r])}function tr(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(tr).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const r=t.indexOf("\n");return-1===r?t:t.substring(0,r)}function Er(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const Qr=wn({__forward_ref__:wn});function Yr(e){return e.__forward_ref__=Yr,e.toString=function(){return tr(this())},e}function oe(e){return He(e)?e():e}function He(e){return"function"==typeof e&&e.hasOwnProperty(Qr)&&e.__forward_ref__===Yr}function or(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function wi(e){return{providers:e.providers||[],imports:e.imports||[]}}function gi(e){return lt(e,Kn)||lt(e,Z)}function St(e){return null!==gi(e)}function lt(e,t){return e.hasOwnProperty(t)?e[t]:null}function fn(e){return e&&(e.hasOwnProperty(Y)||e.hasOwnProperty(Ne))?e[Y]:null}const Kn=wn({\u0275prov:wn}),Y=wn({\u0275inj:wn}),Z=wn({ngInjectableDef:wn}),Ne=wn({ngInjectorDef:wn});class Q{constructor(t,r){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof r?this.__NG_ELEMENT_ID__=r:void 0!==r&&(this.\u0275prov=or({token:this,providedIn:r.providedIn||"root",factory:r.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function xr(e){return e&&!!e.\u0275providers}const An=wn({\u0275cmp:wn}),xi=wn({\u0275dir:wn}),mi=wn({\u0275pipe:wn}),Si=wn({\u0275mod:wn}),ti=wn({\u0275fac:wn}),mr=wn({__NG_ELEMENT_ID__:wn}),oi=wn({__NG_ENV_ID__:wn});function Nn(e){return"string"==typeof e?e:null==e?"":String(e)}function si(e,t){throw new Ve(-201,!1)}var sr=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}(sr||{});let Or;function ai(){return Or}function jn(e){const t=Or;return Or=e,t}function Fo(e,t,r){const o=gi(e);return o&&"root"==o.providedIn?void 0===o.value?o.value=o.factory():o.value:r&sr.Optional?null:void 0!==t?t:void si()}const co={},To="__NG_DI_FLAG__",Ni="ngTempTokenPath",H=/\n/gm,M="__source";let fe;function ar(e){const t=fe;return fe=e,t}function ui(e,t=sr.Default){if(void 0===fe)throw new Ve(-203,!1);return null===fe?Fo(e,void 0,t):fe.get(e,t&sr.Optional?null:void 0,t)}function U(e,t=sr.Default){return(ai()||ui)(oe(e),t)}function Ae(e,t=sr.Default){return U(e,ke(t))}function ke(e){return typeof e>"u"||"number"==typeof e?e:(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function ot(e){const t=[];for(let r=0;rArray.isArray(r)?li(r,t):t(r))}function vi(e,t,r){t>=e.length?e.push(r):e.splice(t,0,r)}function ci(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Qi(e,t,r){let o=Do(e,t);return o>=0?e[1|o]=r:(o=~o,function Wr(e,t,r,o){let a=e.length;if(a==t)e.push(r,o);else if(1===a)e.push(o,e[0]),e[0]=r;else{for(a--,e.push(e[a-1],e[a]);a>t;)e[a]=e[a-2],a--;e[t]=r,e[t+1]=o}}(e,o,t,r)),o}function Ko(e,t){const r=Do(e,t);if(r>=0)return e[1|r]}function Do(e,t){return function os(e,t,r){let o=0,a=e.length>>r;for(;a!==o;){const c=o+(a-o>>1),p=e[c<t?a=c:o=c+1}return~(a<t){p=c-1;break}}}for(;c-1){let c;for(;++ac?"":a[K+1].toLowerCase(),2&o&&F!==ee){if(ce(o))return!1;p=!0}}}}else{if(!p&&!ce(o)&&!ce(A))return!1;if(p&&ce(A))continue;p=!1,o=A|1&o}}return ce(o)||p}function ce(e){return!(1&e)}function $(e,t,r,o){if(null===t)return-1;let a=0;if(o||!r){let c=!1;for(;a-1)for(r++;r0?'="'+y+'"':"")+"]"}else 8&o?a+="."+p:4&o&&(a+=" "+p);else""!==a&&!ce(p)&&(t+=ao(c,a),a=""),o=p,c=c||!ce(o);r++}return""!==a&&(t+=ao(c,a)),t}function vs(e){return mn(()=>{var t;const r=ll(e),o={...r,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===gs.OnPush,directiveDefs:null,pipeDefs:null,dependencies:r.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:null!==(t=e.signals)&&void 0!==t&&t,data:e.data||{},encapsulation:e.encapsulation||ms.Emulated,styles:e.styles||Pr,_:null,schemas:e.schemas||null,tView:null,id:""};ls(o);const a=e.dependencies;return o.directiveDefs=_s(a,!1),o.pipeDefs=_s(a,!0),o.id=function vr(e){let t=0;const r=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery].join("|");for(const a of r)t=Math.imul(31,t)+a.charCodeAt(0)|0;return t+=2147483648,"c"+t}(o),o})}function Bs(e){return Jn(e)||Oi(e)}function Oa(e){return null!==e}function sl(e){return mn(()=>({type:e.type,bootstrap:e.bootstrap||Pr,declarations:e.declarations||Pr,imports:e.imports||Pr,exports:e.exports||Pr,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function al(e,t){if(null==e)return Vo;const r={};for(const a in e)if(e.hasOwnProperty(a)){const c=e[a];let p,y,A=ss.None;var o;Array.isArray(c)?(A=c[0],p=c[1],y=null!==(o=c[2])&&void 0!==o?o:p):(p=c,y=c),t?(r[p]=A!==ss.None?[a,A]:a,t[p]=y):r[p]=a}return r}function as(e){return mn(()=>{const t=ll(e);return ls(t),t})}function ha(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,standalone:!0===e.standalone,onDestroy:e.type.prototype.ngOnDestroy||null}}function Jn(e){return e[An]||null}function Oi(e){return e[xi]||null}function Ti(e){return e[mi]||null}function ro(e){const t=Jn(e)||Oi(e)||Ti(e);return null!==t&&t.standalone}function Hr(e,t){const r=e[Si]||null;if(!r&&!0===t)throw new Error(`Type ${tr(e)} does not have '\u0275mod' property.`);return r}function ll(e){const t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputTransforms:null,inputConfig:e.inputs||Vo,exportAs:e.exportAs||null,standalone:!0===e.standalone,signals:!0===e.signals,selectors:e.selectors||Pr,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:al(e.inputs,t),outputs:al(e.outputs),debugInfo:null}}function ls(e){var t;null===(t=e.features)||void 0===t||t.forEach(r=>r(e))}function _s(e,t){if(!e)return null;const r=t?Ti:Bs;return()=>("function"==typeof e?e():e).map(o=>r(o)).filter(Oa)}function ul(e){return{\u0275providers:e}}function ys(...e){return{\u0275providers:ka(0,e),\u0275fromNgModule:!0}}function ka(e,...t){const r=[],o=new Set;let a;const c=p=>{r.push(p)};return li(t,p=>{const y=p;cl(y,c,[],o)&&(a||(a=[]),a.push(y))}),void 0!==a&&js(a,c),r}function js(e,t){for(let r=0;r{t(c,o)})}}function cl(e,t,r,o){if(!(e=oe(e)))return!1;let a=null,c=fn(e);const p=!c&&Jn(e);if(c||p){if(p&&!p.standalone)return!1;a=e}else{const A=e.ngModule;if(c=fn(A),!c)return!1;a=A}const y=o.has(a);if(p){if(y)return!1;if(o.add(a),p.dependencies){const A="function"==typeof p.dependencies?p.dependencies():p.dependencies;for(const F of A)cl(F,t,r,o)}}else{if(!c)return!1;{if(null!=c.imports&&!y){let F;o.add(a);try{li(c.imports,K=>{cl(K,t,r,o)&&(F||(F=[]),F.push(K))})}finally{}void 0!==F&&js(F,t)}if(!y){const F=br(a)||(()=>new a);t({provide:a,useFactory:F,deps:Pr},a),t({provide:so,useValue:a,multi:!0},a),t({provide:oo,useValue:()=>U(a),multi:!0},a)}const A=c.providers;if(null!=A&&!y){const F=e;Ll(A,K=>{t(K,F)})}}}return a!==e&&void 0!==e.providers}function Ll(e,t){for(let r of e)xr(r)&&(r=r.\u0275providers),Array.isArray(r)?Ll(r,t):t(r)}const Ul=wn({provide:String,useValue:wn});function fa(e){return null!==e&&"object"==typeof e&&Ul in e}function Yo(e){return"function"==typeof e}const dl=new Q(""),Zo={},wu={};let $l;function Lo(){return void 0===$l&&($l=new ua),$l}class Jo{}class Rs extends Jo{get destroyed(){return this._destroyed}constructor(t,r,o,a){super(),this.parent=r,this.source=o,this.scopes=a,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Ms(t,p=>this.processProvider(p)),this.records.set(Us,Va(void 0,this)),a.has("environment")&&this.records.set(Jo,Va(void 0,this));const c=this.records.get(dl);null!=c&&"string"==typeof c.value&&this.scopes.add(c.value),this.injectorDefTypes=new Set(this.get(so,Pr,sr.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;const t=re(null);try{for(const o of this._ngOnDestroyHooks)o.ngOnDestroy();const r=this._onDestroyHooks;this._onDestroyHooks=[];for(const o of r)o()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),re(t)}}onDestroy(t){return this.assertNotDestroyed(),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){this.assertNotDestroyed();const r=ar(this),o=jn(void 0);try{return t()}finally{ar(r),jn(o)}}get(t,r=co,o=sr.Default){if(this.assertNotDestroyed(),t.hasOwnProperty(oi))return t[oi](this);o=ke(o);const c=ar(this),p=jn(void 0);try{if(!(o&sr.SkipSelf)){let A=this.records.get(t);if(void 0===A){const F=function ma(e){return"function"==typeof e||"object"==typeof e&&e instanceof Q}(t)&&gi(t);A=F&&this.injectableDefInScope(F)?Va(Di(t),Zo):null,this.records.set(t,A)}if(null!=A)return this.hydrate(t,A)}return(o&sr.Self?Lo():this.parent).get(t,r=o&sr.Optional&&r===co?null:r)}catch(y){if("NullInjectorError"===y.name){if((y[Ni]=y[Ni]||[]).unshift(tr(t)),c)throw y;return function zt(e,t,r,o){const a=e[Ni];throw t[M]&&a.unshift(t[M]),e.message=function Kt(e,t,r,o=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let a=tr(t);if(Array.isArray(t))a=t.map(tr).join(" -> ");else if("object"==typeof t){let c=[];for(let p in t)if(t.hasOwnProperty(p)){let y=t[p];c.push(p+":"+("string"==typeof y?JSON.stringify(y):tr(y)))}a=`{${c.join(", ")}}`}return`${r}${o?"("+o+")":""}[${a}]: ${e.replace(H,"\n ")}`}("\n"+e.message,a,r,o),e.ngTokenPath=a,e[Ni]=null,e}(y,t,"R3InjectorError",this.source)}throw y}finally{jn(p),ar(c)}}resolveInjectorInitializers(){const t=re(null),r=ar(this),o=jn(void 0);try{const c=this.get(oo,Pr,sr.Self);for(const p of c)p()}finally{ar(r),jn(o),re(t)}}toString(){const t=[],r=this.records;for(const o of r.keys())t.push(tr(o));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Ve(205,!1)}processProvider(t){let r=Yo(t=oe(t))?t:oe(t&&t.provide);const o=function Bl(e){return fa(e)?Va(void 0,e.useValue):Va(ga(e),Zo)}(t);if(!Yo(t)&&!0===t.multi){let a=this.records.get(r);a||(a=Va(void 0,Zo,!0),a.factory=()=>ot(a.multi),this.records.set(r,a)),r=t,a.multi.push(t)}this.records.set(r,o)}hydrate(t,r){const o=re(null);try{return r.value===Zo&&(r.value=wu,r.value=r.factory()),"object"==typeof r.value&&r.value&&function pc(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(r.value)&&this._ngOnDestroyHooks.add(r.value),r.value}finally{re(o)}}injectableDefInScope(t){if(!t.providedIn)return!1;const r=oe(t.providedIn);return"string"==typeof r?"any"===r||this.scopes.has(r):this.injectorDefTypes.has(r)}removeOnDestroy(t){const r=this._onDestroyHooks.indexOf(t);-1!==r&&this._onDestroyHooks.splice(r,1)}}function Di(e){const t=gi(e),r=null!==t?t.factory:br(e);if(null!==r)return r;if(e instanceof Q)throw new Ve(204,!1);if(e instanceof Function)return function pa(e){if(e.length>0)throw new Ve(204,!1);const r=function Ut(e){return e&&(e[Kn]||e[Z])||null}(e);return null!==r?()=>r.factory(e):()=>new e}(e);throw new Ve(204,!1)}function ga(e,t,r){let o;if(Yo(e)){const a=oe(e);return br(a)||Di(a)}if(fa(e))o=()=>oe(e.useValue);else if(function ws(e){return!(!e||!e.useFactory)}(e))o=()=>e.useFactory(...ot(e.deps||[]));else if(function Is(e){return!(!e||!e.useExisting)}(e))o=()=>U(oe(e.useExisting));else{const a=oe(e&&(e.useClass||e.provide));if(!function zs(e){return!!e.deps}(e))return br(a)||Di(a);o=()=>new a(...ot(e.deps))}return o}function Va(e,t,r=!1){return{factory:e,value:t,multi:r?[]:void 0}}function Ms(e,t){for(const r of e)Array.isArray(r)?Ms(r,t):r&&xr(r)?Ms(r.\u0275providers,t):t(r)}function lo(e,t){e instanceof Rs&&e.assertNotDestroyed();const o=ar(e),a=jn(void 0);try{return t()}finally{ar(o),jn(a)}}function Hs(){return void 0!==ai()||null!=function qe(){return fe}()}const Gr=0,un=1,Vn=2,Kr=3,Gi=4,_i=5,Wi=6,Fi=7,Jr=8,zi=9,Uo=10,fr=11,La=12,gc=13,Ua=14,Ki=15,va=16,es=17,wo=18,Gs=19,jl=20,Lr=21,_a=22,Ws=23,Dr=25,$a=1,$o=7,Ks=9,Vi=10;var Su=function(e){return e[e.None=0]="None",e[e.HasTransplantedViews=2]="HasTransplantedViews",e}(Su||{});function Ur(e){return Array.isArray(e)&&"object"==typeof e[$a]}function _o(e){return Array.isArray(e)&&!0===e[$a]}function zl(e){return!!(4&e.flags)}function As(e){return e.componentOffset>-1}function Ia(e){return!(1&~e.flags)}function us(e){return!!e.template}function Hl(e){return!!(512&e[Vn])}class dt{constructor(t,r,o){this.previousValue=t,this.currentValue=r,this.firstChange=o}isFirstChange(){return this.firstChange}}function Qt(e,t,r,o){null!==t?t.applyValueToInputSignal(t,o):e[r]=o}function At(){return Tn}function Tn(e){return e.type.prototype.ngOnChanges&&(e.setInput=Ri),hr}function hr(){const e=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 Ri(e,t,r,o,a){const c=this.declaredInputs[o],p=qi(e)||function Bo(e,t){return e[Br]=t}(e,{previous:Vo,current:null}),y=p.current||(p.current={}),A=p.previous,F=A[c];y[c]=new dt(F&&F.currentValue,r,A===Vo),Qt(e,t,a,r)}At.ngInherit=!0;const Br="__ngSimpleChanges__";function qi(e){return e[Br]||null}const yo=function(e,t,r){};let Ps=!1;function di(e){for(;Array.isArray(e);)e=e[Gr];return e}function Ga(e,t){return di(t[e])}function ts(e,t){return di(t[e.index])}function Xl(e,t){return e.data[t]}function So(e,t){const r=t[e];return Ur(r)?r:r[Gr]}function vc(e){return!(128&~e[Vn])}function Cs(e,t){return null==t?null:e[t]}function yc(e){e[es]=0}function bd(e){1024&e[Vn]||(e[Vn]|=1024,vc(e)&&xs(e))}function Ql(e){var t;return!!(9216&e[Vn]||null!==(t=e[Ws])&&void 0!==t&&t.dirty)}function fl(e){var t;if(null===(t=e[Uo].changeDetectionScheduler)||void 0===t||t.notify(1),Ql(e))xs(e);else if(64&e[Vn])if(function Ca(){return Ps}())e[Vn]|=1024,xs(e);else{var r;null===(r=e[Uo].changeDetectionScheduler)||void 0===r||r.notify()}}function xs(e){var t;null===(t=e[Uo].changeDetectionScheduler)||void 0===t||t.notify();let r=Qs(e);for(;null!==r&&!(8192&r[Vn])&&(r[Vn]|=8192,vc(r));)r=Qs(r)}function Wa(e,t){if(!(256&~e[Vn]))throw new Ve(911,!1);null===e[Lr]&&(e[Lr]=[]),e[Lr].push(t)}function Qs(e){const t=e[Kr];return _o(t)?t[Kr]:t}const Gn={lFrame:Zh(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function Ta(){return Gn.bindingsEnabled}function Zl(){return null!==Gn.skipHydrationRootTNode}function Ht(){return Gn.lFrame.lView}function qr(){return Gn.lFrame.tView}function Sd(e){return Gn.lFrame.contextLView=e,e[Jr]}function Ac(e){return Gn.lFrame.contextLView=null,e}function Ci(){let e=Xh();for(;null!==e&&64===e.type;)e=e.parent;return e}function Xh(){return Gn.lFrame.currentTNode}function Js(e,t){const r=Gn.lFrame;r.currentTNode=e,r.isParent=t}function xu(){return Gn.lFrame.isParent}function Nu(){Gn.lFrame.isParent=!1}function Ts(){return Gn.lFrame.bindingIndex++}function Md(e,t){const r=Gn.lFrame;r.bindingIndex=r.bindingRootIndex=e,Pd(t)}function Pd(e){Gn.lFrame.currentDirectiveIndex=e}function xd(){return Gn.lFrame.currentQueryIndex}function Dc(e){Gn.lFrame.currentQueryIndex=e}function bc(e){const t=e[un];return 2===t.type?t.declTNode:1===t.type?e[_i]:null}function Yh(e,t,r){if(r&sr.SkipSelf){let a=t,c=e;for(;!(a=a.parent,null!==a||r&sr.Host||(a=bc(c),null===a||(c=c[Ua],10&a.type))););if(null===a)return!1;t=a,e=c}const o=Gn.lFrame=ku();return o.currentTNode=t,o.lView=e,!0}function Da(e){const t=ku(),r=e[un];Gn.lFrame=t,t.currentTNode=r.firstChild,t.lView=e,t.tView=r,t.contextLView=e,t.bindingIndex=r.bindingStartIndex,t.inI18n=!1}function ku(){const e=Gn.lFrame,t=null===e?null:e.child;return null===t?Zh(e):t}function Zh(e){const t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function Nd(){const e=Gn.lFrame;return Gn.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const wc=Nd;function Fu(){const e=Nd();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function fo(){return Gn.lFrame.selectedIndex}function ba(e){Gn.lFrame.selectedIndex=e}function yi(){const e=Gn.lFrame;return Xl(e.tView,e.selectedIndex)}let Lu=!0;function Uu(){return Lu}function Ns(e){Lu=e}function $u(e,t){for(let F=t.directiveStart,K=t.directiveEnd;F=o)break}else t[A]<0&&(e[es]+=65536),(y>14>16&&(3&e[Vn])===t&&(e[Vn]+=16384,vl(y,c)):vl(y,c)}const _l=-1;class yl{constructor(t,r,o){this.factory=t,this.resolving=!1,this.canSeeViewProviders=r,this.injectImpl=o}}function Il(e){return e!==_l}function wa(e){return 32767&e}function El(e,t){let r=function xc(e){return e>>16}(e),o=t;for(;r>0;)o=o[Ua],r--;return o}let ju=!0;function Jl(e){const t=ju;return ju=e,t}const sf=255,Vd=5;let Nc=0;const Ds={};function zu(e,t){const r=Ld(e,t);if(-1!==r)return r;const o=t[un];o.firstCreatePass&&(e.injectorIndex=t.length,Ro(o.data,e),Ro(t,null),Ro(o.blueprint,null));const a=qa(e,t),c=e.injectorIndex;if(Il(a)){const p=wa(a),y=El(a,t),A=y[un].data;for(let F=0;F<8;F++)t[c+F]=y[p+F]|A[p+F]}return t[c+8]=a,c}function Ro(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Ld(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function qa(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let r=0,o=null,a=t;for(;null!==a;){if(o=Qa(a),null===o)return _l;if(r++,a=a[Ua],-1!==o.injectorIndex)return o.injectorIndex|r<<16}return _l}function Al(e,t,r){!function cv(e,t,r){let o;"string"==typeof r?o=r.charCodeAt(0)||0:r.hasOwnProperty(mr)&&(o=r[mr]),null==o&&(o=r[mr]=Nc++);const a=o&sf;t.data[e+(a>>Vd)]|=1<=0?t&sf:uf:t}(r);if("function"==typeof c){if(!Yh(t,e,o))return o&sr.Host?eu(a,0,o):Ud(t,r,o,a);try{let p;if(p=c(o),null!=p||o&sr.Optional)return p;si()}finally{wc()}}else if("number"==typeof c){let p=null,y=Ld(e,t),A=_l,F=o&sr.Host?t[Ki][_i]:null;for((-1===y||o&sr.SkipSelf)&&(A=-1===y?qa(e,t):t[y+8],A!==_l&&tu(o,!1)?(p=t[un],y=wa(A),t=El(A,t)):y=-1);-1!==y;){const K=t[un];if(Fc(c,y,K.data)){const ee=sg(y,t,r,p,o,F);if(ee!==Ds)return ee}A=t[y+8],A!==_l&&tu(o,t[un].data[y+8]===F)&&Fc(c,y,t)?(p=K,y=wa(A),t=El(A,t)):y=-1}}return a}function sg(e,t,r,o,a,c){const p=t[un],y=p.data[e+8],K=$d(y,p,r,null==o?As(y)&&ju:o!=p&&!!(3&y.type),a&sr.Host&&c===y);return null!==K?Cl(t,p,K,y):Ds}function $d(e,t,r,o,a){const c=e.providerIndexes,p=t.data,y=1048575&c,A=e.directiveStart,K=c>>20,Re=a?y+K:e.directiveEnd;for(let Ge=o?y:y+K;Ge=A&&_t.type===r)return Ge}if(a){const Ge=p[A];if(Ge&&us(Ge)&&Ge.type===r)return A}return null}function Cl(e,t,r,o){let a=e[r];const c=t.data;if(function nf(e){return e instanceof yl}(a)){const p=a;p.resolving&&function Bi(e,t){throw t&&t.join(" > "),new Ve(-200,e)}(function kn(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():Nn(e)}(c[r]));const y=Jl(p.canSeeViewProviders);p.resolving=!0;const F=p.injectImpl?jn(p.injectImpl):null;Yh(e,o,sr.Default);try{a=e[r]=p.factory(void 0,c,e,o),t.firstCreatePass&&r>=o.directiveStart&&function og(e,t,r){const{ngOnChanges:o,ngOnInit:a,ngDoCheck:c}=t.type.prototype;if(o){var p,y;const ee=Tn(t);(null!==(p=r.preOrderHooks)&&void 0!==p?p:r.preOrderHooks=[]).push(e,ee),(null!==(y=r.preOrderCheckHooks)&&void 0!==y?y:r.preOrderCheckHooks=[]).push(e,ee)}var A,F,K;a&&(null!==(A=r.preOrderHooks)&&void 0!==A?A:r.preOrderHooks=[]).push(0-e,a),c&&((null!==(F=r.preOrderHooks)&&void 0!==F?F:r.preOrderHooks=[]).push(e,c),(null!==(K=r.preOrderCheckHooks)&&void 0!==K?K:r.preOrderCheckHooks=[]).push(e,c))}(r,c[r],t)}finally{null!==F&&jn(F),Jl(y),p.resolving=!1,wc()}}return a}function Fc(e,t,r){return!!(r[t+(e>>Vd)]&1<{const t=e.prototype.constructor,r=t[ti]||Hu(t),o=Object.prototype;let a=Object.getPrototypeOf(e.prototype).constructor;for(;a&&a!==o;){const c=a[ti]||Hu(a);if(c&&c!==r)return c;a=Object.getPrototypeOf(a)}return c=>new c})}function Hu(e){return He(e)?()=>{const t=Hu(oe(e));return t&&t()}:br(e)}function Qa(e){const t=e[un],r=t.type;return 2===r?t.declTNode:1===r?e[_i]:null}function Vc(e){return function Oc(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;const r=e.attrs;if(r){const o=r.length;let a=0;for(;a{var e;class t{static create(o,a){if(Array.isArray(o))return ug({name:""},a,o,"");{var c;const p=null!==(c=o.name)&&void 0!==c?c:"";return ug({name:p},o.parent,o.providers,p)}}}return(e=t).THROW_IF_NOT_FOUND=co,e.NULL=new ua,e.\u0275prov=or({token:e,providedIn:"any",factory:()=>U(Us)}),e.__NG_ELEMENT_ID__=-1,t})();function Uc(e){return e.ngOriginalError}class Ya{constructor(){this._console=console}handleError(t){const r=this._findOriginalError(t);this._console.error("ERROR",t),r&&this._console.error("ORIGINAL ERROR",r)}_findOriginalError(t){let r=t&&Uc(t);for(;r&&Uc(r);)r=Uc(r);return r||null}}const zd=new Q("",{providedIn:"root",factory:()=>Ae(Ya).handleError.bind(void 0)});let Ku=(()=>{var e;class t{}return(e=t).__NG_ELEMENT_ID__=cg,e.__NG_ENV_ID__=r=>r,t})();class yf extends Ku{constructor(t){super(),this._lView=t}onDestroy(t){return Wa(this._lView,t),()=>function Yl(e,t){if(null===e[Lr])return;const r=e[Lr].indexOf(t);-1!==r&&e[Lr].splice(r,1)}(this._lView,t)}}function cg(){return new yf(Ht())}function Xu(){return oa(Ci(),Ht())}function oa(e,t){return new Qu(ts(e,t))}let Qu=(()=>{class t{constructor(o){this.nativeElement=o}}return t.__NG_ELEMENT_ID__=Xu,t})();function ru(e){return e instanceof Qu?e.nativeElement:e}function If(e){return t=>{setTimeout(e,void 0,t)}}const Os=class hv extends $n.B{constructor(t=!1){var r;super(),this.destroyRef=void 0,this.__isAsync=t,Hs()&&(this.destroyRef=null!==(r=Ae(Ku,{optional:!0}))&&void 0!==r?r:void 0)}emit(t){const r=re(null);try{super.next(t)}finally{re(r)}}subscribe(t,r,o){let a=t,c=r||(()=>null),p=o;if(t&&"object"==typeof t){var y,A,F;const ee=t;a=null===(y=ee.next)||void 0===y?void 0:y.bind(ee),c=null===(A=ee.error)||void 0===A?void 0:A.bind(ee),p=null===(F=ee.complete)||void 0===F?void 0:F.bind(ee)}this.__isAsync&&(c=If(c),a&&(a=If(a)),p&&(p=If(p)));const K=super.subscribe({next:a,error:c,complete:p});return t instanceof qn.yU&&t.add(K),K}};function Ef(){return this._results[Symbol.iterator]()}class $c{get changes(){var t;return null!==(t=this._changes)&&void 0!==t?t:this._changes=new Os}constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._onDirty=void 0,this._results=[],this._changesDetected=!1,this._changes=void 0,this.length=0,this.first=void 0,this.last=void 0;const r=$c.prototype;r[Symbol.iterator]||(r[Symbol.iterator]=Ef)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,r){return this._results.reduce(t,r)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,r){this.dirty=!1;const o=function nr(e){return e.flat(Number.POSITIVE_INFINITY)}(t);(this._changesDetected=!function cr(e,t,r){if(e.length!==t.length)return!1;for(let o=0;oTg}),Tg="ng",_v=new Q(""),Zd=new Q("",{providedIn:"platform",factory:()=>"unknown"}),yy=new Q("",{providedIn:"root",factory:()=>{var e;return(null===(e=function au(){if(void 0!==Ag)return Ag;if(typeof document<"u")return document;throw new Ve(210,!1)}().body)||void 0===e||null===(e=e.querySelector("[ngCspNonce]"))||void 0===e?void 0:e.getAttribute("ngCspNonce"))||null}});let Av=()=>null;function rh(e,t,r=!1){return Av(e,t,r)}const xg=new Q("",{providedIn:"root",factory:()=>!1});let ah;function Og(e){var t;return(null===(t=function Ff(){if(void 0===ah&&(ah=null,Bn.trustedTypes))try{ah=Bn.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return ah}())||void 0===t?void 0:t.createScriptURL(e))||e}class kg{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Yn})`}}function cu(e){return e instanceof kg?e.changingThisBreaksApplicationSecurity:e}function po(e,t){const r=function go(e){return e instanceof kg&&e.getTypeName()||null}(e);if(null!=r&&r!==t){if("ResourceURL"===r&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${r} (see ${Yn})`)}return r===t}const 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 bi(e){return(e=String(e)).match(iE)?e:"unsafe:"+e}(Nn(e))}function $g(e){const t=Sa();if(t)return Og(t.sanitize(Xc.RESOURCE_URL,e)||"");if(po(e,"ResourceURL"))return Og(cu(e));throw new Ve(904,!1)}function zf(e,t,r){return function Hg(e,t){return"src"===t&&("embed"===e||"frame"===e||"iframe"===e||"media"===e||"script"===e)||"href"===t&&("base"===e||"link"===e)?$g:Qc}(t,r)(e)}function Sa(){const e=Ht();return e&&e[Uo].sanitizer}const Fv=/^>|^->||--!>|)/g,Gg="\u200b$1\u200b";function aa(e){return e instanceof Function?e():e}var Xg=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(Xg||{});let Bv;function Qg(e,t){return Bv(e,t)}function ph(e,t,r,o,a){if(null!=o){let c,p=!1;_o(o)?c=o:Ur(o)&&(p=!0,o=o[Gr]);const y=di(o);0===e&&null!==r?null==a?rd(t,r,y):nd(t,r,y,a||null,!0):1===e&&null!==r?nd(t,r,y,a||null,!0):2===e?function Yf(e,t,r){const o=Qf(e,t);o&&function fE(e,t,r,o){e.removeChild(t,r,o)}(e,o,t,r)}(t,y,p):3===e&&t.destroyNode(y),null!=c&&function gE(e,t,r,o,a){const c=r[$o];c!==di(r)&&ph(t,e,o,c,a);for(let y=Vi;yt.replace(Vv,Gg))}(t))}function Rl(e,t,r){return e.createElement(t,r)}function jv(e,t){var r;null===(r=t[Uo].changeDetectionScheduler)||void 0===r||r.notify(1),Ra(e,t,t[fr],2,null,null)}function zv(e,t){const r=e[Ks],o=r.indexOf(t);r.splice(o,1)}function qf(e,t){if(e.length<=Vi)return;const r=Vi+t,o=e[r];if(o){const a=o[va];null!==a&&a!==e&&zv(a,o),t>0&&(e[r-1][Gi]=o[Gi]);const c=ci(e,Vi+t);!function Wy(e,t){jv(e,t),t[Gr]=null,t[_i]=null}(o[un],o);const p=c[wo];null!==p&&p.detachView(c[un]),o[Kr]=null,o[Gi]=null,o[Vn]&=-129}return o}function Yg(e,t){if(!(256&t[Vn])){const r=t[fr];r.destroyNode&&Ra(e,t,r,3,null,null),function fu(e){let t=e[La];if(!t)return Zg(e[un],e);for(;t;){let r=null;if(Ur(t))r=t[La];else{const o=t[Vi];o&&(r=o)}if(!r){for(;t&&!t[Gi]&&t!==e;)Ur(t)&&Zg(t[un],t),t=t[Kr];null===t&&(t=e),Ur(t)&&Zg(t[un],t),r=t&&t[Gi]}t=r}}(t)}}function Zg(e,t){if(256&t[Vn])return;const r=re(null);try{t[Vn]&=-129,t[Vn]|=256,t[Ws]&&function vt(e){if(Ct(e),Ke(e))for(let t=0;t=0?o[p]():o[-p].unsubscribe(),c+=2}else r[c].call(o[r[c+1]]);null!==o&&(t[Fi]=null);const a=t[Lr];if(null!==a){t[Lr]=null;for(let c=0;c-1){const{encapsulation:c}=e.data[o.directiveStart+a];if(c===ms.None||c===ms.Emulated)return null}return ts(o,r)}}(e,t.parent,r)}function nd(e,t,r,o,a){e.insertBefore(t,r,o,a)}function rd(e,t,r){e.appendChild(t,r)}function Xf(e,t,r,o,a){null!==o?nd(e,t,r,o,a):rd(e,t,r)}function Qf(e,t){return e.parentNode(t)}function Gv(e,t,r){return Yy(e,t,r)}let Kv,Yy=function Wv(e,t,r){return 40&e.type?ts(e,r):null};function Jg(e,t,r,o){const a=Hv(e,o,t),c=t[fr],y=Gv(o.parent||t[_i],o,t);if(null!=a)if(Array.isArray(r))for(let A=0;ADr&&nm(e,t,Dr,!1),yo(p?2:0,a),r(o,a)}finally{ba(c),yo(p?3:1,a)}}function Qv(e,t,r){if(zl(t)){const o=re(null);try{const c=t.directiveEnd;for(let p=t.directiveStart;pnull;function Zv(e,t,r,o,a){for(let p in t){var c;if(!t.hasOwnProperty(p))continue;const y=t[p];if(void 0===y)continue;null!==(c=o)&&void 0!==c||(o={});let A,F=ss.None;Array.isArray(y)?(A=y[0],F=y[1]):A=y;let K=p;if(null!==a){if(!a.hasOwnProperty(p))continue;K=a[p]}0===e?h0(o,r,K,A,F):h0(o,r,K,A)}return o}function h0(e,t,r,o,a){let c;e.hasOwnProperty(r)?(c=e[r]).push(t,o):c=e[r]=[t,o],void 0!==a&&c.push(a)}function ks(e,t,r,o,a,c,p,y){const A=ts(t,r);let K,F=t.inputs;!y&&null!=F&&(K=F[o])?(n_(e,r,K,o,a),As(t)&&function CE(e,t){const r=So(t,e);16&r[Vn]||(r[Vn]|=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,c.setProperty(A,o,a))}function Jv(e,t,r,o){if(Ta()){const a=null===o?null:{"":-1},c=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,c)}}(e,t,o,Jf(e,r,a.hostVars,Nr),a)}function Ml(e,t,r,o,a,c){const p=ts(e,t);!function t_(e,t,r,o,a,c,p){if(null==c)e.removeAttribute(t,a,r);else{const y=null==p?Nn(c):p(c,o||"",a);e.setAttribute(t,a,y,r)}}(t[fr],p,c,e.value,r,o,a)}function OE(e,t,r,o,a,c){const p=c[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[Uo],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 Ve(103,!1);r++,i_(e,1)}}(e,r)}catch(F){throw t&&am(e,F),F}finally{var y,A;null===(y=a.end)||void 0===y||y.call(a),null===(A=o.inlineEffectRunner)||void 0===A||A.flush()}}function zE(e,t,r,o){var a;const c=t[Vn];if(!(256&~c))return;null===(a=t[Uo].inlineEffectRunner)||void 0===a||a.flush(),Da(t);let y=null,A=null;(function HE(e){return 2!==e.type})(e)&&(A=function LE(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 st(e){return e&&(e.nextProducerIndex=0),re(e)}(A));try{yc(t),function Cc(e){return Gn.lFrame.bindingIndex=e}(e.bindingStartIndex),null!==r&&a0(e,t,r,2,o);const F=!(3&~c);if(F){const Re=e.preOrderCheckHooks;null!==Re&&Sc(t,Re,null)}else{const Re=e.preOrderHooks;null!==Re&&ra(t,Re,0,null),ia(t,0)}if(function GE(e){for(let t=gg(e);null!==t;t=Tf(t)){if(!(t[Vn]&Su.HasTransplantedViews))continue;const r=t[Ks];for(let o=0;oe.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}(A,y),function $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=Vi;o-1&&(qf(t,o),ci(r,o))}this._attachedToViewContainer=!1}Yg(this._lView[un],this._lView)}onDestroy(t){Wa(this._lView,t)}markForCheck(){ip(this._cdRefInjectingView||this._lView)}detach(){this._lView[Vn]&=-129}reattach(){fl(this._lView),this._lView[Vn]|=128}detectChanges(){this._lView[Vn]|=1024,cm(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new Ve(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,jv(this._lView[un],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new Ve(902,!1);this._appRef=t,fl(this._lView)}}let sp=(()=>{class t{}return t.__NG_ELEMENT_ID__=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(Ci(),Ht())}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 ${tr(e)}.`);return t.ngComponent=e,t}(t)}}let lc=(()=>{class t{}return t.NULL=new ap,t})();class lp{}let gm=(()=>{class t{constructor(){this.destroyNode=null}}return t.__NG_ELEMENT_ID__=()=>function mm(){const e=Ht(),r=So(Ci().index,e);return(Ur(r)?r:e)[fr]}(),t})(),vm=(()=>{var e;class t{}return(e=t).\u0275prov=or({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 Eo{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:o=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Os(!1),this.onMicrotaskEmpty=new Os(!1),this.onStable=new Os(!1),this.onError=new Os(!1),typeof Zone>"u")throw new Ve(908,!1);Zone.assertZonePatched();const a=this;a._nesting=0,a._outer=a._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(a._inner=a._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(a._inner=a._inner.fork(Zone.longStackTraceZoneSpec)),a.shouldCoalesceEventChangeDetection=!o&&r,a.shouldCoalesceRunChangeDetection=o,a.lastRequestAnimationFrameId=-1,a.nativeRequestAnimationFrame=function ym(){const e="function"==typeof Bn.requestAnimationFrame;let t=Bn[e?"requestAnimationFrame":"setTimeout"],r=Bn[e?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&t&&r){const o=t[Zone.__symbol__("OriginalDelegate")];o&&(t=o);const a=r[Zone.__symbol__("OriginalDelegate")];a&&(r=a)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:r}}().nativeRequestAnimationFrame,function ns(e){const t=()=>{!function Em(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(Bn,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,jo(e),e.isCheckStableRunning=!0,Ah(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),jo(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(r,o,a,c,p,y)=>{if(function 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,c,p,y);try{return Ch(e),r.invokeTask(a,c,p,y)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===c.type||e.shouldCoalesceRunChangeDetection)&&t(),Am(e)}},onInvoke:(r,o,a,c,p,y,A)=>{try{return Ch(e),r.invoke(a,c,p,y,A)}finally{e.shouldCoalesceRunChangeDetection&&t(),Am(e)}},onHasTask:(r,o,a,c)=>{r.hasTask(a,c),o===a&&("microTask"==c.change?(e._hasPendingMicrotasks=c.microTask,jo(e),Ah(e)):"macroTask"==c.change&&(e.hasPendingMacrotasks=c.macroTask))},onHandleError:(r,o,a,c)=>(r.handleError(a,c),e.runOutsideAngular(()=>e.onError.emit(c)),!1)})}(a)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Eo.isInAngularZone())throw new Ve(909,!1)}static assertNotInAngularZone(){if(Eo.isInAngularZone())throw new Ve(909,!1)}run(t,r,o){return this._inner.run(t,r,o)}runTask(t,r,o,a){const c=this._inner,p=c.scheduleEventTask("NgZoneEvent: "+a,t,Im,_m,_m);try{return c.runTask(p,r,o)}finally{c.cancelTask(p)}}runGuarded(t,r,o){return this._inner.runGuarded(t,r,o)}runOutsideAngular(t){return this._outer.run(t)}}const Im={};function Ah(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function jo(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function Ch(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Am(e){e._nesting--,Ah(e)}class Cm{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Os,this.onMicrotaskEmpty=new Os,this.onStable=new Os,this.onError=new Os}run(t,r,o){return t.apply(r,o)}runGuarded(t,r,o){return t.apply(r,o)}runOutsideAngular(t){return t()}runTask(t,r,o,a){return t.apply(r,o)}}var mu=function(e){return e[e.EarlyRead=0]="EarlyRead",e[e.Write=1]="Write",e[e.MixedReadWrite=2]="MixedReadWrite",e[e.Read=3]="Read",e}(mu||{});const Tm={destroy(){}};function u_(e,t){var r,o,a;!t&&function Es(e){if(!Hs())throw new Ve(-203,!1)}();const c=null!==(r=null==t?void 0:t.injector)&&void 0!==r?r:Ae(ds);if(!function el(e){return"browser"===(null!=e?e:Ae(ds)).get(Zd)}(c))return Tm;Ma("NgAfterNextRender");const p=c.get(ad),y=null!==(o=p.handler)&&void 0!==o?o:p.handler=new Dm,A=null!==(a=null==t?void 0:t.phase)&&void 0!==a?a:mu.MixedReadWrite,F=()=>{y.unregister(ee),K()},K=c.get(Ku).onDestroy(F),ee=lo(c,()=>new cp(A,()=>{F(),e()}));return y.register(ee),{destroy:F}}class cp{constructor(t,r){var o;this.phase=t,this.callbackFn=r,this.zone=Ae(Eo),this.errorHandler=Ae(Ya,{optional:!0}),null===(o=Ae(pm,{optional:!0}))||void 0===o||o.notify(1)}invoke(){try{this.zone.runOutsideAngular(this.callbackFn)}catch(r){var t;null===(t=this.errorHandler)||void 0===t||t.handleError(r)}}}class Dm{constructor(){this.executingCallbacks=!1,this.buckets={[mu.EarlyRead]:new Set,[mu.Write]:new Set,[mu.MixedReadWrite]:new Set,[mu.Read]:new Set},this.deferredCallbacks=new Set}register(t){(this.executingCallbacks?this.deferredCallbacks:this.buckets[t.phase]).add(t)}unregister(t){this.buckets[t.phase].delete(t),this.deferredCallbacks.delete(t)}execute(){this.executingCallbacks=!0;for(const t of Object.values(this.buckets))for(const r of t)r.invoke();this.executingCallbacks=!1;for(const t of this.deferredCallbacks)this.buckets[t.phase].add(t);this.deferredCallbacks.clear()}destroy(){for(const t of Object.values(this.buckets))t.clear();this.deferredCallbacks.clear()}}let ad=(()=>{var e;class t{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){var o;this.executeInternalCallbacks(),null===(o=this.handler)||void 0===o||o.execute()}executeInternalCallbacks(){const o=[...this.internalCallbacks];this.internalCallbacks.length=0;for(const a of o)a()}ngOnDestroy(){var o;null===(o=this.handler)||void 0===o||o.destroy(),this.handler=null,this.internalCallbacks.length=0}}return(e=t).\u0275prov=or({token:e,providedIn:"root",factory:()=>new e}),t})();function tl(e){return!!Hr(e)}function _u(e,t,r){let o=r?e.styles:null,a=r?e.classes:null,c=0;if(null!==t)for(let p=0;p0&&t0(e,r,c.join(" "))}}($t,Fl,hn,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(Ci(),Ht())}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[un].data[o+8],r)}return new Yi(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const r=wh(this._lContainer);return null!==r&&r[t]||null}get length(){return this._lContainer.length-Vi}createEmbeddedView(t,r,o){let a,c;"number"==typeof o?a=o:null!=o&&(a=o.index,c=o.injector);const p=mo(this._lContainer,t.ssrId),y=t.createEmbeddedViewImpl(r||{},c,p);return this.insertImpl(y,a,_h(this._hostTNode,p)),y}createComponent(t,r,o,a,c){var p,y,A;const F=t&&!function Ft(e){return"function"==typeof e}(t);let K;if(F)K=r;else{const hn=r||{};K=hn.index,o=hn.injector,a=hn.projectableNodes,c=hn.environmentInjector||hn.ngModuleRef}const ee=F?t:new bh(Jn(t)),Re=o||this.parentInjector;if(!c&&null==ee.ngModule){const qt=(F?Re:this.parentInjector).get(Jo,null);qt&&(c=qt)}const Ge=Jn(null!==(p=ee.componentType)&&void 0!==p?p:{}),_t=mo(this._lContainer,null!==(y=null==Ge?void 0:Ge.id)&&void 0!==y?y:null),$t=null!==(A=null==_t?void 0:_t.firstChild)&&void 0!==A?A:null,sn=ee.create(Re,a,$t,c);return this.insertImpl(sn.hostView,K,_h(this._hostTNode,_t)),sn}insert(t,r){return this.insertImpl(t,r,!0)}insertImpl(t,r,o){const a=t._lView;if(function _c(e){return _o(e[Kr])}(a)){const y=this.indexOf(t);if(-1!==y)this.detach(y);else{const A=a[Kr],F=new __(A,A[_i],A[Kr]);F.detach(F.indexOf(t))}}const c=this._adjustIndex(r),p=this._lContainer;return np(p,a,c,o),t.attachToViewContainerRef(),vi(mp(p),c,t),t}move(t,r){return this.insert(t,r)}indexOf(t){const r=wh(this._lContainer);return null!==r?r.indexOf(t):-1}remove(t){const r=this._adjustIndex(t,-1),o=qf(this._lContainer,r);o&&(ci(mp(this._lContainer),r),Yg(o[un],o))}detach(t){const r=this._adjustIndex(t,-1),o=qf(this._lContainer,r);return o&&null!=ci(mp(this._lContainer),r)?new op(o):null}_adjustIndex(t,r=0){return null==t?this.length+r:t}};function wh(e){return e[8]}function mp(e){return e[8]||(e[8]=[])}function vp(e,t){let r;const o=t[e.index];return _o(o)?r=o:(r=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[$o])return;let a;a=8&r.type?di(o):function Sh(e,t){const r=e[fr],o=r.createComment(""),a=ts(t,e);return nd(r,Qf(r,a),o,function Qy(e,t){return e.nextSibling(t)}(r,a),!1),o}(t,r),e[$o]=a},Rh=()=>!1;class Mh{constructor(t){this.queryList=t,this.matches=null}clone(){return new Mh(this.queryList)}setDirty(){this.queryList.setDirty()}}class _p{constructor(t=[]){this.queries=t}createEmbeddedView(t){const r=t.queries;if(null!==r){const o=null!==t.contentQueries?t.contentQueries[0]:r.length,a=[];for(let c=0;ct.trim())}(t):t}}class xm{constructor(t=[]){this.queries=t}elementStart(t,r){for(let o=0;o0)o.push(p[y/2]);else{const F=c[y+1],K=t[-A];for(let ee=Vi;ee=0;o--){const a=e[o];a.hostVars=t+=a.hostVars,a.hostAttrs=Xo(a.hostAttrs,r=Xo(r,a.hostAttrs))}}(o)}function 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 c=Array.isArray(a)?a[0]:a;if(!t.inputTransforms.hasOwnProperty(c))continue;null!==(r=e.inputTransforms)&&void 0!==r||(e.inputTransforms={}),e.inputTransforms[c]=t.inputTransforms[c]}}}function Lh(e){return e===Vo?{}:e===Pr?[]:e}function wp(e,t){const r=e.viewQuery;e.viewQuery=r?(o,a)=>{t(o,a),r(o,a)}:t}function Fs(e,t){const r=e.contentQueries;e.contentQueries=r?(o,a,c)=>{t(o,a,c),r(o,a,c)}:t}function F_(e,t){const r=e.hostBindings;e.hostBindings=r?(o,a)=>{t(o,a),r(o,a)}:t}function Li(e){const t=e.inputConfig,r={};for(const o in t)if(t.hasOwnProperty(o)){const a=t[o];Array.isArray(a)&&a[3]&&(r[o]=a[3])}e.inputTransforms=r}class io{}class hi{}function rs(e,t){return new Cu(e,null!=t?t:null,[])}class Cu extends io{constructor(t,r,o){super(),this._parent=r,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new d_(this);const a=Hr(t);this._bootstrapComponents=aa(a.bootstrap),this._r3Injector=_f(t,r,[{provide:io,useValue:this},{provide:lc,useValue:this.componentFactoryResolver},...o],tr(t),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(t)}get injector(){return this._r3Injector}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(r=>r()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class Vs extends hi{constructor(t){super(),this.moduleType=t}create(t){return new Cu(this.moduleType,t,[])}}class Rp extends io{constructor(t){super(),this.componentFactoryResolver=new d_(this),this.instance=null;const r=new Rs([...t.providers,{provide:io,useValue:this},{provide:lc,useValue:this.componentFactoryResolver}],t.parent||Lo(),t.debugName,new Set(["environment"]));this.injector=r,t.runEnvironmentInitializers&&r.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}}function 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 er.t(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);const o=this.taskId++;return this.pendingTasks.add(o),o}remove(o){this.pendingTasks.delete(o),0===this.pendingTasks.size&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}}return(e=t).\u0275fac=function(o){return new(o||e)},e.\u0275prov=or({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 Mo(e,t,r){return!Object.is(e[t],r)&&(e[t]=r,!0)}function Pp(e,t,r,o,a,c,p,y){const A=Ht(),F=qr(),K=e+Dr,ee=F.firstCreatePass?function cb(e,t,r,o,a,c,p,y,A){const F=t.consts,K=sc(t,e,4,p||null,Cs(F,y));Jv(t,r,K,Cs(F,A)),$u(t,K);const ee=K.tView=ep(2,K,o,a,c,t.directiveRegistry,t.pipeRegistry,null,t.schemas,F,null);return null!==t.queries&&(t.queries.template(t,K),ee.queries=t.queries.embeddedTView(K)),K}(K,F,A,t,r,o,a,c,p):F.data[K];Js(ee,!1);const Re=oA(F,A,ee,e);Uu()&&Jg(F,A,Re,ee),Zi(Re,A);const Ge=v0(Re,A,Re,ee);return A[K]=Ge,om(A,Ge),function y_(e,t,r){return Rh(e,t,r)}(Ge,ee,A),Ia(ee)&&mh(F,A,ee),null!=p&&od(A,ee,y),Pp}let oA=function sA(e,t,r,o){return Ns(!0),t[fr].createComment("")};function iI(e,t,r,o){const a=Ht();return Mo(a,Ts(),t)&&(qr(),Ml(yi(),a,e,t,r,o)),iI}function Up(e,t,r,o){return Mo(e,Ts(),r)?t+Nn(r)+o:Nr}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 VA(e,t,r,o){const a=e[r+1],c=null===t;let p=o?yd(a):Bh(a),y=!1;for(;0!==p&&(!1===y||c);){const F=e[p+1];Qb(e[p],t)&&(y=!0,e[p+1]=o?aI(F):oI(F)),p=o?yd(F):Bh(F)}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)&&Do(e,t)>=0}function lI(e,t,r){const o=Ht();return Mo(o,Ts(),t)&&ks(qr(),yi(),o,e,t,o[fr],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=Ht(),c=qr(),p=function na(e){const t=Gn.lFrame,r=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,r}(2);c.firstUpdatePass&&function WA(e,t,r,o){const a=e.data;if(null===a[r+1]){const c=a[fo()],p=function GA(e,t){return t>=e.expandoStartIndex}(e,r);(function QA(e,t){return!!(e.flags&(t?8:16))})(c,o)&&null===t&&!p&&(t=!1),t=function ow(e,t,r,o){const a=function Ou(e){const t=Gn.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}(e);let c=o?t.residualClasses:t.residualStyles;if(null===a)0===(o?t.classBindings:t.styleBindings)&&(r=qm(r=dI(null,e,t,r,o),t.attrs,o),c=null);else{const p=t.directiveStylingLast;if(-1===p||e[p]!==a)if(r=dI(a,e,t,r,o),null===c){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 c=function lw(e,t,r){let o;const a=t.directiveEnd;for(let c=1+t.directiveStylingLast;c0)&&(F=!0)):K=r,a)if(0!==A){const Re=yd(e[y+1]);e[o+1]=W_(Re,y),0!==Re&&(e[Re+1]=sI(e[Re+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;F&&(e[o+1]=oI(e[o+1])),VA(e,K,o,!0),VA(e,K,o,!1),function Xb(e,t,r,o,a){const c=a?e.residualClasses:e.residualStyles;null!=c&&"string"==typeof t&&Do(c,t)>=0&&(r[o+1]=aI(r[o+1]))}(t,K,e,o,c),p=W_(y,A),c?t.classBindings=p:t.styleBindings=p}(a,c,t,r,p,o)}}(c,e,p,o),t!==Nr&&Mo(a,p,t)&&function qA(e,t,r,o,a,c,p,y){if(!(3&t.type))return;const A=e.data,F=A[y+1],K=function Kb(e){return!(1&~e)}(F)?XA(A,t,r,a,Bh(F),p):void 0;K_(K)||(K_(c)||function Gb(e){return!(2&~e)}(F)&&(c=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 c=-1===o.indexOf("-")?void 0:Xg.DashCase;null==a?e.removeStyle(r,o,c):("string"==typeof a&&a.endsWith("!important")&&(a=a.slice(0,-10),c|=Xg.Important),e.setStyle(r,o,a,c))}}(o,p,Ga(fo(),r),a,c))}(c,c.data[fo()],a,a[fr],e,a[p+1]=function hw(e,t){return null==e||""===e||("string"==typeof t?e+=t:"object"==typeof e&&(e=tr(cu(e)))),e}(t,r),o,p)}(e,t,null,!0),cI}function dI(e,t,r,o,a){let c=null;const p=r.directiveEnd;let y=r.directiveStylingLast;for(-1===y?y=r.directiveStart:y++;y0;){const A=e[a],F=Array.isArray(A),K=F?A[1]:A,ee=null===K;let Re=r[a+1];Re===Nr&&(Re=ee?Pr:void 0);let Ge=ee?Ko(Re,o):K===o?Re:void 0;if(F&&!K_(Ge)&&(Ge=Ko(A,o)),K_(Ge)&&(y=Ge,p))return y;const _t=e[a+1];a=p?yd(_t):Bh(_t)}if(null!==t){let A=c?t.residualClasses:t.residualStyles;null!=A&&(y=Ko(A,o))}return y}function 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),c=this.detach(a);if(a-o>1){const p=this.detach(o);this.attach(o,c),this.attach(a,p)}else this.attach(o,c)}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 c=e.create(o,a);e.attach(o,c)}}function ZA(e,t,r,o){const a=new Set;for(let c=t;c<=r;c++)a.add(o(c,e.at(c)));return a}class JA{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-Vi}}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,c,p,y,A,F,K,ee,Re){Ma("NgControlFlow");const Ge=void 0!==A,_t=Ht(),$t=y?p.bind(_t[Ki][Jr]):p,sn=new Sw(Ge,$t);_t[Dr+e]=sn,Pp(e+1,t,r,o,a,c),Ge&&Pp(e+2,A,F,K,ee,Re)}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-Vi}at(t){return this.getLView(t)[Jr].$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[un],t)}updateValue(t,r){this.getLView(t)[Jr].$implicit=r}reset(){this.needsIndexUpdate=!1}updateIndexes(){if(this.needsIndexUpdate)for(let t=0;t{e.destroy(Re)})}(p,e,c.trackByFn),p.updateIndexes(),c.hasEmptyBlock){const y=Ts(),A=0===p.length;if(Mo(o,y,A)){const F=r+2,K=pI(o,F);if(A){const ee=gI(a,F),Re=mo(K,ee.tView.ssrId);np(K,tp(o,ee,void 0,{dehydratedView:Re}),0,_h(ee,Re))}else!function um(e,t){const r=qf(e,t);return void 0!==r&&Yg(r[un],r),r}(K,0)}}}finally{re(t)}}function pI(e,t){return e[t]}function gI(e,t){return Xl(e,t)}function q_(e,t,r,o){const a=Ht(),c=qr(),p=Dr+e,y=a[fr],A=c.firstCreatePass?function xw(e,t,r,o,a,c){const p=t.consts,A=sc(t,e,2,o,Cs(p,a));return Jv(t,r,A,Cs(p,c)),null!==A.attrs&&_u(A,A.attrs,!1),null!==A.mergedAttrs&&_u(A,A.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,A),A}(p,c,a,t,r,o):c.data[p],F=rC(c,a,A,y,t,e);a[p]=F;const K=Ia(A);return Js(A,!0),n0(y,F,A),!function Hm(e){return!(32&~e.flags)}(A)&&Uu()&&Jg(c,a,F,A),0===function Ic(){return Gn.lFrame.elementDepthCount}()&&Zi(F,a),function Ec(){Gn.lFrame.elementDepthCount++}(),K&&(mh(c,a,A),Qv(c,A,a)),null!==o&&od(a,A),q_}function X_(){let e=Ci();xu()?Nu():(e=e.parent,Js(e,!1));const t=e;(function gl(e){return Gn.skipHydrationRootTNode===e})(t)&&function Ka(){Gn.skipHydrationRootTNode=null}(),function Ys(){Gn.lFrame.elementDepthCount--}();const r=qr();return r.firstCreatePass&&($u(r,e),zl(e)&&r.queries.elementEnd(e)),null!=t.classesWithoutHost&&function Bu(e){return!!(8&e.flags)}(t)&&uI(r,t,Ht(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function kd(e){return!!(16&e.flags)}(t)&&uI(r,t,Ht(),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,c)=>(Ns(!0),Rl(o,a,function Od(){return Gn.lFrame.currentNamespace}()));function Q_(e,t,r){const o=Ht(),a=qr(),c=e+Dr,p=a.firstCreatePass?function kw(e,t,r,o,a){const c=t.consts,p=Cs(c,o),y=sc(t,e,8,"ng-container",p);return null!==p&&_u(y,p,!0),Jv(t,r,y,Cs(c,a)),null!==t.queries&&t.queries.elementStart(t,y),y}(c,a,o,t,r):a.data[c];Js(p,!0);const y=iC(a,o,p,e);return o[c]=y,Uu()&&Jg(a,o,y,p),Zi(y,o),Ia(p)&&(mh(a,o,p),Qv(a,p,o)),null!=r&&od(o,p),Q_}function Y_(){let e=Ci();const t=qr();return xu()?Nu():(e=e.parent,Js(e,!1)),t.firstCreatePass&&($u(t,e),zl(e)&&t.queries.elementEnd(e)),Y_}function vI(e,t,r){return Q_(e,t,r),Y_(),vI}let iC=(e,t,r,o)=>(Ns(!0),td(t[fr],""));function oC(){return Ht()}const jh=void 0;var Uw=["en",[["a","p"],["AM","PM"],jh],[["AM","PM"],jh,jh],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],jh,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],jh,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",jh,"{1} 'at' {0}",jh],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function Lw(e){const r=Math.floor(Math.abs(e)),o=e.toString().replace(/^[^.]*\.?/,"").length;return 1===r&&0===o?1:5}];let qp={};function _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 Ve(701,!1)}function lC(e){return _I(e)[Xp.PluralCase]}function uC(e){return e in qp||(qp[e]=Bn.ng&&Bn.ng.common&&Bn.ng.common.locales&&Bn.ng.common.locales[e]),qp[e]}var Xp=function(e){return e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencyCode=15]="CurrencyCode",e[e.CurrencySymbol=16]="CurrencySymbol",e[e.CurrencyName=17]="CurrencyName",e[e.Currencies=18]="Currencies",e[e.Directionality=19]="Directionality",e[e.PluralCase=20]="PluralCase",e[e.ExtraData=21]="ExtraData",e}(Xp||{});const Qp="en-US";let cC=Qp;function EI(e,t,r,o){const a=Ht(),c=qr(),p=Ci();return AI(c,a,a[fr],p,e,t,o),EI}function AI(e,t,r,o,a,c,p){const y=Ia(o),F=e.firstCreatePass&&I0(e),K=t[Jr],ee=y0(t);let Re=!0;if(3&o.type||p){const $t=ts(o,t),sn=p?p($t):$t,hn=ee.length,qt=p?$r=>p(di($r[o.index])):o.index;let Ar=null;if(!p&&y&&(Ar=function FS(e,t,r,o){const a=e.cleanup;if(null!=a)for(let c=0;cA?y[A]:null}"string"==typeof p&&(c+=2)}return null}(e,t,a,o.index)),null!==Ar)(Ar.__ngLastListenerFn__||Ar).__ngNextListenerFn__=c,Ar.__ngLastListenerFn__=c,Re=!1;else{c=LC(o,t,K,c,!1);const $r=r.listen(sn,a,c);ee.push(c,$r),F&&F.push(a,qt,hn,hn+1)}}else c=LC(o,t,K,c,!1);const Ge=o.outputs;let _t;if(Re&&null!==Ge&&(_t=Ge[a])){const $t=_t.length;if($t)for(let sn=0;sn<$t;sn+=2){const fi=t[_t[sn]][_t[sn+1]].subscribe(c),fs=ee.length;ee.push(c,fi),F&&F.push(a,o.index,fs,-(fs+1))}}}function VC(e,t,r,o){const a=re(null);try{return yo(6,t,r),!1!==r(o)}catch(c){return am(e,c),!1}finally{yo(7,t,r),re(a)}}function LC(e,t,r,o,a){return function c(p){if(p===Function)return o;ip(e.componentOffset>-1?So(e.index,t):t);let A=VC(t,r,o,p),F=c.__ngNextListenerFn__;for(;F;)A=VC(t,r,F,p)&&A,F=F.__ngNextListenerFn__;return a&&!1===A&&p.preventDefault(),A}}function UC(e=1){return function Vu(e){return(Gn.lFrame.contextLView=function eg(e,t){for(;e>0;)t=t[Ua],e--;return t}(e,Gn.lFrame.contextLView))[Jr]}(e)}function VS(e,t){let r=null;const o=function nn(e){const t=e.attrs;if(null!=t){const r=t.indexOf(5);if(!(1&r))return t[r+1]}return null}(e);for(let a=0;a(Ns(!0),function Sl(e,t){return e.createText(t)}(t[fr],o));function DI(e){return bI("",e,""),DI}function bI(e,t,r){const o=Ht(),a=Up(o,e,t,r);return a!==Nr&&function pu(e,t,r){const o=Ga(t,e);!function oc(e,t,r){e.setValue(t,r)}(e[fr],o,r)}(o,fo(),a),bI}function wI(e,t,r){km(t)&&(t=t());const o=Ht();return Mo(o,Ts(),t)&&ks(qr(),yi(),o,e,t,o[fr],r,!1),wI}function yT(e,t){const r=km(e);return r&&e.set(t),r}function SI(e,t){const r=Ht(),o=qr(),a=Ci();return AI(o,r,r[fr],a,e,t),SI}function RI(e,t,r,o,a){if(e=oe(e),Array.isArray(e))for(let c=0;c>20;if(Yo(e)||!e.multi){const Ge=new yl(F,a,id),_t=PI(A,t,a?K:K+Re,ee);-1===_t?(Al(zu(y,p),c,A),MI(c,e,t.length),t.push(A),y.directiveStart++,y.directiveEnd++,a&&(y.providerIndexes+=1048576),r.push(Ge),p.push(Ge)):(r[_t]=Ge,p[_t]=Ge)}else{const Ge=PI(A,t,K+Re,ee),_t=PI(A,t,K,K+Re),sn=_t>=0&&r[_t];if(a&&!sn||!a&&!(Ge>=0&&r[Ge])){Al(zu(y,p),c,A);const hn=function rR(e,t,r,o,a){const c=new yl(e,r,id);return c.multi=[],c.index=t,c.componentProviders=0,IT(c,a,o&&!r),c}(a?nR:tR,r.length,a,o,F);!a&&sn&&(r[_t].providerFactory=hn),MI(c,e,t.length,0),t.push(A),y.directiveStart++,y.directiveEnd++,a&&(y.providerIndexes+=1048576),r.push(hn),p.push(hn)}else MI(c,e,Ge>-1?Ge:_t,IT(r[a?_t:Ge],F,!a&&o));!a&&o&&sn&&r[_t].componentProviders++}}}function MI(e,t,r,o){const a=Yo(t),c=function Ss(e){return!!e.useClass}(t);if(a||c){const A=(c?oe(t.useClass):t).prototype.ngOnDestroy;if(A){const F=e.destroyHooks||(e.destroyHooks=[]);if(!a&&t.multi){const K=F.indexOf(r);-1===K?F.push(r,[o,A]):F[K+1].push(o,A)}else F.push(r,A)}}}function 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=qr();if(o.firstCreatePass){const a=us(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),c=a.length>0?K0([a],this._injector,`Standalone[${o.type.name}]`):null;this.cachedInjectors.set(o,c)}return this.cachedInjectors.get(o)}ngOnDestroy(){try{for(const o of this.cachedInjectors.values())null!==o&&o.destroy()}finally{this.cachedInjectors.clear()}}}return(e=t).\u0275prov=or({token:e,providedIn:"environment",factory:()=>new e(U(Jo))}),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=Gn.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}()+e,a=Ht();return a[o]===Nr?function Tu(e,t,r){return e[t]=r}(a,o,r?t.call(r):t()):function zm(e,t){return e[t]}(a,o)}class 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=or({token:e,factory:e.\u0275fac,providedIn:"platform"}),t})();const QT=new Q(""),YT=new Q("");let UI,vM=(()=>{var e;class t{constructor(o,a,c){this._ngZone=o,this.registry=a,this._pendingCount=0,this._isZoneStable=!0,this._callbacks=[],this.taskTrackingZone=null,UI||(function _M(e){UI=e}(c),c.addToWindow(a)),this._watchAngularEvents(),o.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Eo.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;0!==this._callbacks.length;){let o=this._callbacks.pop();clearTimeout(o.timeoutId),o.doneCb()}});else{let o=this.getPendingTasks();this._callbacks=this._callbacks.filter(a=>!a.updateCb||!a.updateCb(o)||(clearTimeout(a.timeoutId),!1))}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(o=>({source:o.source,creationLocation:o.creationLocation,data:o.data})):[]}addCallback(o,a,c){let p=-1;a&&a>0&&(p=setTimeout(()=>{this._callbacks=this._callbacks.filter(y=>y.timeoutId!==p),o()},a)),this._callbacks.push({doneCb:o,timeoutId:p,updateCb:c})}whenStable(o,a,c){if(c&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(o,a,c),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(o){this.registry.registerApplication(o,this)}unregisterApplication(o){this.registry.unregisterApplication(o)}findProviders(o,a,c){return[]}}return(e=t).\u0275fac=function(o){return new(o||e)(U(Eo),U(ZT),U(YT))},e.\u0275prov=or({token:e,factory:e.\u0275fac}),t})(),ZT=(()=>{var e;class t{constructor(){this._applications=new Map}registerApplication(o,a){this._applications.set(o,a)}unregisterApplication(o){this._applications.delete(o)}unregisterAllApplications(){this._applications.clear()}getTestability(o){return this._applications.get(o)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(o,a=!0){var c,p;return null!==(c=null===(p=UI)||void 0===p?void 0:p.findTestabilityInTree(this,o,a))&&void 0!==c?c:null}}return(e=t).\u0275fac=function(o){return new(o||e)},e.\u0275prov=or({token:e,factory:e.\u0275fac,providedIn:"platform"}),t})();function $I(e){return!!e&&"function"==typeof e.then}function JT(e){return!!e&&"function"==typeof e.subscribe}const eD=new Q("");let BI=(()=>{var e;class t{constructor(){var o;this.initialized=!1,this.done=!1,this.donePromise=new Promise((a,c)=>{this.resolve=a,this.reject=c}),this.appInits=null!==(o=Ae(eD,{optional:!0}))&&void 0!==o?o:[]}runInitializers(){if(this.initialized)return;const o=[];for(const c of this.appInits){const p=c();if($I(p))o.push(p);else if(JT(p)){const y=new Promise((A,F)=>{p.subscribe({complete:A,error:F})});o.push(y)}}const a=()=>{this.done=!0,this.resolve()};Promise.all(o).then(()=>{a()}).catch(c=>{this.reject(c)}),0===o.length&&a(),this.initialized=!0}}return(e=t).\u0275fac=function(o){return new(o||e)},e.\u0275prov=or({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();const jI=new Q("");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=Ae(zd),this.afterRenderEffectManager=Ae(ad),this.externalTestViews=new Set,this.beforeRender=new $n.B,this.afterTick=new $n.B,this.componentTypes=[],this.components=[],this.isStable=Ae(Mp).hasPendingTasks.pipe((0,yn.T)(o=>!o)),this._injector=Ae(Jo)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(o,a){const c=o instanceof s_;if(!this._injector.get(BI).done)throw!c&&ro(o),new Ve(405,!1);let y;y=c?o:this._injector.get(lc).resolveComponentFactory(o),this.componentTypes.push(y.componentType);const A=function yM(e){return e.isBoundToModule}(y)?void 0:this._injector.get(io),K=y.create(ds.NULL,[],a||y.selector,A),ee=K.location.nativeElement,Re=K.injector.get(QT,null);return null==Re||Re.registerApplication(ee),K.onDestroy(()=>{this.detachView(K.hostView),oy(this.components,K),null==Re||Re.unregisterApplication(ee)}),this._loadComponent(K),K}tick(){this._tick(!0)}_tick(o){if(this._runningTick)throw new Ve(101,!1);const a=re(null);try{this._runningTick=!0,this.detectChangesInAttachedViews(o)}catch(c){this.internalErrorHandler(c)}finally{this.afterTick.next(),this._runningTick=!1,re(a)}}detectChangesInAttachedViews(o){let a=0;const c=this.afterRenderEffectManager;for(;;){if(a===T0)throw new Ve(103,!1);if(o){const p=0===a;this.beforeRender.next(p);for(let{_lView:y,notifyErrorHandler:A}of this._views)EM(y,p,A)}if(a++,c.executeInternalCallbacks(),![...this.externalTestViews.keys(),...this._views].some(({_lView:p})=>zI(p))&&(c.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(c=>c(o))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(o=>o()),this._views.slice().forEach(o=>o.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(o){return this._destroyListeners.push(o),()=>oy(this._destroyListeners,o)}destroy(){if(this._destroyed)throw new Ve(406,!1);const o=this._injector;o.destroy&&!o.destroyed&&o.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return(e=t).\u0275fac=function(o){return new(o||e)},e.\u0275prov=or({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[Vn]|=1024):o=64&e[Vn]?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 Vs(o)}compileModuleAsync(o){return Promise.resolve(this.compileModuleSync(o))}compileModuleAndAllComponentsSync(o){const a=this.compileModuleSync(o),p=aa(Hr(o).declarations).reduce((y,A)=>{const F=Jn(A);return F&&y.push(new bh(F)),y},[]);return new CM(a,p)}compileModuleAndAllComponentsAsync(o){return Promise.resolve(this.compileModuleAndAllComponentsSync(o))}clearCache(){}clearCacheFor(o){}getModuleId(o){}}return(e=t).\u0275fac=function(o){return new(o||e)},e.\u0275prov=or({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),wM=(()=>{var e;class t{constructor(){this.zone=Ae(Eo),this.applicationRef=Ae(Id)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){var o;null===(o=this._onMicrotaskEmptySubscription)||void 0===o||o.unsubscribe()}}return(e=t).\u0275fac=function(o){return new(o||e)},e.\u0275prov=or({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();function SM(){const e=Ae(Eo),t=Ae(Ya);return r=>e.runOutsideAngular(()=>t.handleError(r))}let MM=(()=>{var e;class t{constructor(){this.subscription=new qn.yU,this.initialized=!1,this.zone=Ae(Eo),this.pendingTasks=Ae(Mp)}initialize(){if(this.initialized)return;this.initialized=!0;let o=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(o=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{Eo.assertNotInAngularZone(),queueMicrotask(()=>{null!==o&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(o),o=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{var a;Eo.assertInAngularZone(),null!==(a=o)&&void 0!==a||(o=this.pendingTasks.add())}))}ngOnDestroy(){this.subscription.unsubscribe()}}return(e=t).\u0275fac=function(o){return new(o||e)},e.\u0275prov=or({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();const sy=new Q("",{providedIn:"root",factory:()=>Ae(sy,sr.Optional|sr.SkipSelf)||function PM(){return typeof $localize<"u"&&$localize.locale||Qp}()}),xM=new Q("",{providedIn:"root",factory:()=>"USD"}),HI=new Q("");let aD=(()=>{var e;class t{constructor(o){this._injector=o,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(o,a){const c=function Th(e="zone.js",t){return"noop"===e?new Cm:"zone.js"===e?new Eo(t):e}(null==a?void 0:a.ngZone,function 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 c.run(()=>{const p=function Sp(e,t,r){return new Cu(e,t,r)}(o.moduleType,this.injector,function oD(e){return[{provide:Eo,useFactory:e},{provide:oo,multi:!0,useFactory:()=>{const t=Ae(wM,{optional:!0});return()=>t.initialize()}},{provide:oo,multi:!0,useFactory:()=>{const t=Ae(MM);return()=>{t.initialize()}}},{provide:zd,useFactory:SM}]}(()=>c)),y=p.injector.get(Ya,null);return c.runOutsideAngular(()=>{const A=c.onError.subscribe({next:F=>{y.handleError(F)}});p.onDestroy(()=>{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,c,()=>{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 c=rD({},a);return function bM(e,t,r){const o=new Vs(r);return Promise.resolve(o)}(0,0,o).then(p=>this.bootstrapModuleFactory(p,c))}_moduleDoBootstrap(o){const a=o.injector.get(Id);if(o._bootstrapComponents.length>0)o._bootstrapComponents.forEach(c=>a.bootstrap(c));else{if(!o.instance.ngDoBootstrap)throw new Ve(-403,!1);o.instance.ngDoBootstrap(a)}this._modules.push(o)}onDestroy(o){this._destroyListeners.push(o)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Ve(404,!1);this._modules.slice().forEach(a=>a.destroy()),this._destroyListeners.forEach(a=>a());const o=this._injector.get(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)(U(ds))},e.\u0275prov=or({token:e,factory:e.\u0275fac,providedIn:"platform"}),t})(),Ed=null;const lD=new Q("");function uD(e,t,r=[]){const o=`Platform: ${t}`,a=new Q(o);return(c=[])=>{let p=GI();if(!p||p.injector.get(lD,!1)){const y=[...r,...c,{provide:a,useValue:!0}];e?e(y):function OM(e){if(Ed&&!Ed.get(lD,!1))throw new Ve(400,!1);(function tD(){!function _e(e){rn=e}(()=>{throw new Ve(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 ds.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 Ve(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 VM(){}let fD=(()=>{class t{}return t.__NG_ELEMENT_ID__=LM,t})();function LM(e){return function UM(e,t,r){if(As(e)&&!r){const o=So(e.index,t);return new op(o,o)}return 47&e.type?new op(t[Ki],t):null}(Ci(),Ht(),!(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,c=null;for(;r||o;){const p=!o||r&&r.currentIndex{p=this._trackByFn(a,y),null!==r&&Object.is(r.trackById,p)?(o&&(r=this._verifyReinsertion(r,y,p,a)),Object.is(r.item,y)||this._addIdentityChange(r,y)):(r=this._mismatch(r,y,p,a),o=!0),r=r._next,a++}),this.length=a;return this._truncate(r),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,r,o,a){let c;return null===t?c=this._itTail:(c=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(o,null))?(Object.is(t.item,r)||this._addIdentityChange(t,r),this._reinsertAfter(t,c,a)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(o,a))?(Object.is(t.item,r)||this._addIdentityChange(t,r),this._moveAfter(t,c,a)):t=this._addAfter(new GM(r,o),c,a),t}_verifyReinsertion(t,r,o,a){let c=null===this._unlinkedRecords?null:this._unlinkedRecords.get(o,null);return null!==c?t=this._reinsertAfter(c,t._prev,a):t.currentIndex!=a&&(t.currentIndex=a,this._addToMoves(t,a)),t}_truncate(t){for(;null!==t;){const r=t._next;this._addToRemovals(this._unlink(t)),t=r}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,r,o){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const a=t._prevRemoved,c=t._nextRemoved;return null===a?this._removalsHead=c:a._nextRemoved=c,null===c?this._removalsTail=a:c._prevRemoved=a,this._insertAfter(t,r,o),this._addToMoves(t,o),t}_moveAfter(t,r,o){return this._unlink(t),this._insertAfter(t,r,o),this._addToMoves(t,o),t}_addAfter(t,r,o){return this._insertAfter(t,r,o),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,r,o){const a=null===r?this._itHead:r._next;return t._next=a,t._prev=r,null===a?this._itTail=t:a._prev=t,null===r?this._itHead=t:r._next=t,null===this._linkedRecords&&(this._linkedRecords=new _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 c=this._getOrCreateRecordForKey(a,o);r=this._insertBeforeOrAppend(r,c)}}),r){r._prev&&(r._prev._next=null),this._removalsHead=r;for(let o=r;null!==o;o=o._nextRemoved)o===this._mapHead&&(this._mapHead=null),this._records.delete(o.key),o._nextRemoved=o._next,o.previousValue=o.currentValue,o.currentValue=null,o._prev=null,o._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,r){if(t){const o=t._prev;return r._next=t,r._prev=o,t._prev=r,o&&(o._next=r),t===this._mapHead&&(this._mapHead=r),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=r,r._prev=this._appendAfter):this._mapHead=r,this._appendAfter=r,null}_getOrCreateRecordForKey(t,r){if(this._records.has(t)){const a=this._records.get(t);this._maybeAddToChanges(a,r);const c=a._prev,p=a._next;return c&&(c._next=p),p&&(p._prev=c),a._next=null,a._prev=null,a}const o=new qM(t);return this._records.set(t,o),o.currentValue=r,this._addToAdditions(o),o}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,r){Object.is(r,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=r,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,r){t instanceof Map?t.forEach(r):Object.keys(t).forEach(o=>r(t[o],o))}}class qM{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function 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 c=a.factories.slice();o=o.concat(c)}return new t(o)}static extend(o){return{provide:t,useFactory:a=>t.create(o,a||ED()),deps:[[t,new Ln,new _n]]}}find(o){const a=this.factories.find(c=>c.supports(o));if(null!=a)return a;throw new Ve(901,!1)}}return(e=t).\u0275prov=or({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 c=a.factories.slice();o=o.concat(c)}return new t(o)}static extend(o){return{provide:t,useFactory:a=>t.create(o,a||AD()),deps:[[t,new Ln,new _n]]}}find(o){const a=this.factories.find(c=>c.supports(o));if(a)return a;throw new Ve(901,!1)}}return(e=t).\u0275prov=or({token:e,providedIn:"root",factory:AD}),t})();const YM=uD(null,"core",[]);let ZM=(()=>{var e;class t{constructor(o){}}return(e=t).\u0275fac=function(o){return new(o||e)(U(Id))},e.\u0275mod=sl({type:e}),e.\u0275inj=wi({}),t})();function wP(e){return"boolean"==typeof e?e:null!=e&&"false"!==e}function RP(e){const t=re(null);try{return e()}finally{re(t)}}function kP(e,t){const r=Jn(e),o=t.elementInjector||Lo();return new bh(r).create(o,t.projectableNodes,t.hostElement,t.environmentInjector)}function FP(e){const t=Jn(e);if(!t)return null;const r=new bh(t);return{get selector(){return r.selector},get type(){return r.componentType},get inputs(){return r.inputs},get outputs(){return r.outputs},get ngContentSelectors(){return r.ngContentSelectors},get isStandalone(){return t.standalone},get isSignal(){return t.signals}}}},7440:(En,bt,B)=>{"use strict";B.d(bt,{MW:()=>$e,Wp:()=>ut,XU:()=>Oe,gL:()=>X});var g=B(2214),d=B(4438),ge=B(3586);class Oe{constructor(je){return je}}class X{constructor(){return(0,g.Dk)()}}const Ze=new d.nKC("angularfire2._apps"),Je={provide:Oe,useFactory:function re(Me){return Me&&1===Me.length?Me[0]:new Oe((0,g.Sx)())},deps:[[new d.Xx1,Ze]]},De={provide:X,deps:[[new d.Xx1,Ze]]};function ye(Me){return(je,Ke)=>{const Ct=Ke.get(d.Agw);(0,g.KO)("angularfire",ge.xv.full,"core"),(0,g.KO)("angularfire",ge.xv.full,"app"),(0,g.KO)("angular",d.xvI.full,Ct.toString());const xt=je.runOutsideAngular(()=>Me(Ke));return new Oe(xt)}}function $e(Me,...je){return(0,d.EmA)([Je,De,{provide:Ze,useFactory:ye(Me),multi:!0,deps:[d.SKi,d.zZn,ge.u0,...je]}])}const ut=(0,ge.S3)(g.Wp,!0)},8737:(En,bt,B)=>{"use strict";B.d(bt,{Nj:()=>qa,DF:()=>Al,eJ:()=>Hu,xI:()=>ag,_q:()=>Cl,x9:()=>qu,kQ:()=>Fc});var g=B(3586),d=B(4438),ge=B(7440),Oe=B(2214),X=B(467),Ee=B(7852),re=B(1076),Ze=B(8041),Je=B(1635),De=B(1362);const Mt=function ut(){return{"dependent-sdk-initialized-before-auth":"Another Firebase SDK was initialized and is trying to use Auth before Auth is initialized. Please be sure to call `initializeAuth` or `getAuth` before starting any other Firebase SDK."}},mt=new re.FA("auth","Firebase",{"dependent-sdk-initialized-before-auth":"Another Firebase SDK was initialized and is trying to use Auth before Auth is initialized. Please be sure to call `initializeAuth` or `getAuth` before starting any other Firebase SDK."}),Me=new Ze.Vy("@firebase/auth");function Ke(E,...h){Me.logLevel<=Ze.$b.ERROR&&Me.error(`Auth (${Ee.MF}): ${E}`,...h)}function Ct(E,...h){throw Zt(E,...h)}function xt(E,...h){return Zt(E,...h)}function ze(E,h,v){const b=Object.assign(Object.assign({},Mt()),{[h]:v});return new re.FA("auth","Firebase",b).create(h,{appName:E.name})}function Tt(E){return ze(E,"operation-not-supported-in-this-environment","Operations that alter the current user are not supported in conjunction with FirebaseServerApp")}function Zt(E,...h){if("string"!=typeof E){const v=h[0],b=[...h.slice(1)];return b[0]&&(b[0].appName=E.name),E._errorFactory.create(v,...b)}return mt.create(E,...h)}function Dt(E,h,...v){if(!E)throw Zt(h,...v)}function Be(E){const h="INTERNAL ASSERTION FAILED: "+E;throw Ke(h),new Error(h)}function rn(E,h){E||Be(h)}function pt(){var E;return typeof self<"u"&&(null===(E=self.location)||void 0===E?void 0:E.href)||""}function j(){var E;return typeof self<"u"&&(null===(E=self.location)||void 0===E?void 0:E.protocol)||null}class de{constructor(h,v){this.shortDelay=h,this.longDelay=v,rn(v>h,"Short delay should be less than long delay!"),this.isMobile=(0,re.jZ)()||(0,re.lV)()}get(){return function W(){return!(typeof navigator<"u"&&navigator&&"onLine"in navigator&&"boolean"==typeof navigator.onLine&&(function _e(){return"http:"===j()||"https:"===j()}()||(0,re.sr)()||"connection"in navigator))||navigator.onLine}()?this.isMobile?this.longDelay:this.shortDelay:Math.min(5e3,this.shortDelay)}}function ae(E,h){rn(E.emulator,"Emulator should always be set here");const{url:v}=E.emulator;return h?`${v}${h.startsWith("/")?h.slice(1):h}`:v}class me{static initialize(h,v,b){this.fetchImpl=h,v&&(this.headersImpl=v),b&&(this.responseImpl=b)}static fetch(){return this.fetchImpl?this.fetchImpl:typeof self<"u"&&"fetch"in self?self.fetch:typeof globalThis<"u"&&globalThis.fetch?globalThis.fetch:typeof fetch<"u"?fetch:void Be("Could not find fetch implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}static headers(){return this.headersImpl?this.headersImpl:typeof self<"u"&&"Headers"in self?self.Headers:typeof globalThis<"u"&&globalThis.Headers?globalThis.Headers:typeof Headers<"u"?Headers:void Be("Could not find Headers implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}static response(){return this.responseImpl?this.responseImpl:typeof self<"u"&&"Response"in self?self.Response:typeof globalThis<"u"&&globalThis.Response?globalThis.Response:typeof Response<"u"?Response:void Be("Could not find Response implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}}const Ce={CREDENTIAL_MISMATCH:"custom-token-mismatch",MISSING_CUSTOM_TOKEN:"internal-error",INVALID_IDENTIFIER:"invalid-email",MISSING_CONTINUE_URI:"internal-error",INVALID_PASSWORD:"wrong-password",MISSING_PASSWORD:"missing-password",INVALID_LOGIN_CREDENTIALS:"invalid-credential",EMAIL_EXISTS:"email-already-in-use",PASSWORD_LOGIN_DISABLED:"operation-not-allowed",INVALID_IDP_RESPONSE:"invalid-credential",INVALID_PENDING_TOKEN:"invalid-credential",FEDERATED_USER_ID_ALREADY_LINKED:"credential-already-in-use",MISSING_REQ_TYPE:"internal-error",EMAIL_NOT_FOUND:"user-not-found",RESET_PASSWORD_EXCEED_LIMIT:"too-many-requests",EXPIRED_OOB_CODE:"expired-action-code",INVALID_OOB_CODE:"invalid-action-code",MISSING_OOB_CODE:"internal-error",CREDENTIAL_TOO_OLD_LOGIN_AGAIN:"requires-recent-login",INVALID_ID_TOKEN:"invalid-user-token",TOKEN_EXPIRED:"user-token-expired",USER_NOT_FOUND:"user-token-expired",TOO_MANY_ATTEMPTS_TRY_LATER:"too-many-requests",PASSWORD_DOES_NOT_MEET_REQUIREMENTS:"password-does-not-meet-requirements",INVALID_CODE:"invalid-verification-code",INVALID_SESSION_INFO:"invalid-verification-id",INVALID_TEMPORARY_PROOF:"invalid-credential",MISSING_SESSION_INFO:"missing-verification-id",SESSION_EXPIRED:"code-expired",MISSING_ANDROID_PACKAGE_NAME:"missing-android-pkg-name",UNAUTHORIZED_DOMAIN:"unauthorized-continue-uri",INVALID_OAUTH_CLIENT_ID:"invalid-oauth-client-id",ADMIN_ONLY_OPERATION:"admin-restricted-operation",INVALID_MFA_PENDING_CREDENTIAL:"invalid-multi-factor-session",MFA_ENROLLMENT_NOT_FOUND:"multi-factor-info-not-found",MISSING_MFA_ENROLLMENT_ID:"missing-multi-factor-info",MISSING_MFA_PENDING_CREDENTIAL:"missing-multi-factor-session",SECOND_FACTOR_EXISTS:"second-factor-already-in-use",SECOND_FACTOR_LIMIT_EXCEEDED:"maximum-second-factor-count-exceeded",BLOCKING_FUNCTION_ERROR_RESPONSE:"internal-error",RECAPTCHA_NOT_ENABLED:"recaptcha-not-enabled",MISSING_RECAPTCHA_TOKEN:"missing-recaptcha-token",INVALID_RECAPTCHA_TOKEN:"invalid-recaptcha-token",INVALID_RECAPTCHA_ACTION:"invalid-recaptcha-action",MISSING_CLIENT_TYPE:"missing-client-type",MISSING_RECAPTCHA_VERSION:"missing-recaptcha-version",INVALID_RECAPTCHA_VERSION:"invalid-recaptcha-version",INVALID_REQ_TYPE:"invalid-req-type"},at=new de(3e4,6e4);function kt(E,h){return E.tenantId&&!h.tenantId?Object.assign(Object.assign({},h),{tenantId:E.tenantId}):h}function Bt(E,h,v,b){return vn.apply(this,arguments)}function vn(){return(vn=(0,X.A)(function*(E,h,v,b,q={}){return bn(E,q,(0,X.A)(function*(){let pe={},nt={};b&&("GET"===h?nt=b:pe={body:JSON.stringify(b)});const Pt=(0,re.Am)(Object.assign({key:E.config.apiKey},nt)).slice(1),on=yield E._getAdditionalHeaders();return on["Content-Type"]="application/json",E.languageCode&&(on["X-Firebase-Locale"]=E.languageCode),me.fetch()(yn(E,E.config.apiHost,v,Pt),Object.assign({method:h,headers:on,referrerPolicy:"no-referrer"},pe))}))})).apply(this,arguments)}function bn(E,h,v){return $n.apply(this,arguments)}function $n(){return($n=(0,X.A)(function*(E,h,v){E._canInitEmulator=!1;const b=Object.assign(Object.assign({},Ce),h);try{const q=new Yn(E),pe=yield Promise.race([v(),q.promise]);q.clearNetworkTimeout();const nt=yield pe.json();if("needConfirmation"in nt)throw Ve(E,"account-exists-with-different-credential",nt);if(pe.ok&&!("errorMessage"in nt))return nt;{const Pt=pe.ok?nt.errorMessage:nt.error.message,[on,Dn]=Pt.split(" : ");if("FEDERATED_USER_ID_ALREADY_LINKED"===on)throw Ve(E,"credential-already-in-use",nt);if("EMAIL_EXISTS"===on)throw Ve(E,"email-already-in-use",nt);if("USER_DISABLED"===on)throw Ve(E,"user-disabled",nt);const Xn=b[on]||on.toLowerCase().replace(/[_\s]+/g,"-");if(Dn)throw ze(E,Xn,Dn);Ct(E,Xn)}}catch(q){if(q instanceof re.g)throw q;Ct(E,"network-request-failed",{message:String(q)})}})).apply(this,arguments)}function qn(E,h,v,b){return er.apply(this,arguments)}function er(){return(er=(0,X.A)(function*(E,h,v,b,q={}){const pe=yield Bt(E,h,v,b,q);return"mfaPendingCredential"in pe&&Ct(E,"multi-factor-auth-required",{_serverResponse:pe}),pe})).apply(this,arguments)}function yn(E,h,v,b){const q=`${h}${v}?${b}`;return E.config.emulator?ae(E.config,q):`${E.config.apiScheme}://${q}`}function ir(E){switch(E){case"ENFORCE":return"ENFORCE";case"AUDIT":return"AUDIT";case"OFF":return"OFF";default:return"ENFORCEMENT_STATE_UNSPECIFIED"}}class Yn{constructor(h){this.auth=h,this.timer=null,this.promise=new Promise((v,b)=>{this.timer=setTimeout(()=>b(xt(this.auth,"network-request-failed")),at.get())})}clearNetworkTimeout(){clearTimeout(this.timer)}}function Ve(E,h,v){const b={appName:E.name};v.email&&(b.email=v.email),v.phoneNumber&&(b.phoneNumber=v.phoneNumber);const q=xt(E,h,b);return q.customData._tokenResponse=v,q}function Ot(E){return void 0!==E&&void 0!==E.enterprise}class Xt{constructor(h){if(this.siteKey="",this.recaptchaEnforcementState=[],void 0===h.recaptchaKey)throw new Error("recaptchaKey undefined");this.siteKey=h.recaptchaKey.split("/")[3],this.recaptchaEnforcementState=h.recaptchaEnforcementState}getProviderEnforcementState(h){if(!this.recaptchaEnforcementState||0===this.recaptchaEnforcementState.length)return null;for(const v of this.recaptchaEnforcementState)if(v.provider&&v.provider===h)return ir(v.enforcementState);return null}isProviderEnabled(h){return"ENFORCE"===this.getProviderEnforcementState(h)||"AUDIT"===this.getProviderEnforcementState(h)}}function gn(E,h){return mn.apply(this,arguments)}function mn(){return(mn=(0,X.A)(function*(E,h){return Bt(E,"GET","/v2/recaptchaConfig",kt(E,h))})).apply(this,arguments)}function Gt(){return(Gt=(0,X.A)(function*(E,h){return Bt(E,"POST","/v1/accounts:delete",h)})).apply(this,arguments)}function kr(E,h){return Mr.apply(this,arguments)}function Mr(){return(Mr=(0,X.A)(function*(E,h){return Bt(E,"POST","/v1/accounts:lookup",h)})).apply(this,arguments)}function _r(E){if(E)try{const h=new Date(Number(E));if(!isNaN(h.getTime()))return h.toUTCString()}catch{}}function Zn(){return(Zn=(0,X.A)(function*(E,h=!1){const v=(0,re.Ku)(E),b=yield v.getIdToken(h),q=Sr(b);Dt(q&&q.exp&&q.auth_time&&q.iat,v.auth,"internal-error");const pe="object"==typeof q.firebase?q.firebase:void 0,nt=null==pe?void 0:pe.sign_in_provider;return{claims:q,token:b,authTime:_r(wn(q.auth_time)),issuedAtTime:_r(wn(q.iat)),expirationTime:_r(wn(q.exp)),signInProvider:nt||null,signInSecondFactor:(null==pe?void 0:pe.sign_in_second_factor)||null}})).apply(this,arguments)}function wn(E){return 1e3*Number(E)}function Sr(E){const[h,v,b]=E.split(".");if(void 0===h||void 0===v||void 0===b)return Ke("JWT malformed, contained fewer than 3 sections"),null;try{const q=(0,re.u)(v);return q?JSON.parse(q):(Ke("Failed to decode base64 JWT payload"),null)}catch(q){return Ke("Caught error parsing JWT payload as JSON",null==q?void 0:q.toString()),null}}function tr(E){const h=Sr(E);return Dt(h,"internal-error"),Dt(typeof h.exp<"u","internal-error"),Dt(typeof h.iat<"u","internal-error"),Number(h.exp)-Number(h.iat)}function Er(E,h){return Mi.apply(this,arguments)}function Mi(){return(Mi=(0,X.A)(function*(E,h,v=!1){if(v)return h;try{return yield h}catch(b){throw b instanceof re.g&&function Qr({code:E}){return"auth/user-disabled"===E||"auth/user-token-expired"===E}(b)&&E.auth.currentUser===E&&(yield E.auth.signOut()),b}})).apply(this,arguments)}class Yr{constructor(h){this.user=h,this.isRunning=!1,this.timerId=null,this.errorBackoff=3e4}_start(){this.isRunning||(this.isRunning=!0,this.schedule())}_stop(){this.isRunning&&(this.isRunning=!1,null!==this.timerId&&clearTimeout(this.timerId))}getInterval(h){var v;if(h){const b=this.errorBackoff;return this.errorBackoff=Math.min(2*this.errorBackoff,96e4),b}{this.errorBackoff=3e4;const q=(null!==(v=this.user.stsTokenManager.expirationTime)&&void 0!==v?v:0)-Date.now()-3e5;return Math.max(0,q)}}schedule(h=!1){var v=this;if(!this.isRunning)return;const b=this.getInterval(h);this.timerId=setTimeout((0,X.A)(function*(){yield v.iteration()}),b)}iteration(){var h=this;return(0,X.A)(function*(){try{yield h.user.getIdToken(!0)}catch(v){return void("auth/network-request-failed"===(null==v?void 0:v.code)&&h.schedule(!0))}h.schedule()})()}}class oe{constructor(h,v){this.createdAt=h,this.lastLoginAt=v,this._initializeTime()}_initializeTime(){this.lastSignInTime=_r(this.lastLoginAt),this.creationTime=_r(this.createdAt)}_copy(h){this.createdAt=h.createdAt,this.lastLoginAt=h.lastLoginAt,this._initializeTime()}toJSON(){return{createdAt:this.createdAt,lastLoginAt:this.lastLoginAt}}}function He(E){return ct.apply(this,arguments)}function ct(){return(ct=(0,X.A)(function*(E){var h;const v=E.auth,b=yield E.getIdToken(),q=yield Er(E,kr(v,{idToken:b}));Dt(null==q?void 0:q.users.length,v,"internal-error");const pe=q.users[0];E._notifyReloadListener(pe);const nt=null!==(h=pe.providerUserInfo)&&void 0!==h&&h.length?Pe(pe.providerUserInfo):[],Pt=function he(E,h){return[...E.filter(b=>!h.some(q=>q.providerId===b.providerId)),...h]}(E.providerData,nt),Xn=!!E.isAnonymous&&!(E.email&&pe.passwordHash||null!=Pt&&Pt.length),jr={uid:pe.localId,displayName:pe.displayName||null,photoURL:pe.photoUrl||null,email:pe.email||null,emailVerified:pe.emailVerified||!1,phoneNumber:pe.phoneNumber||null,tenantId:pe.tenantId||null,providerData:Pt,metadata:new oe(pe.createdAt,pe.lastLoginAt),isAnonymous:Xn};Object.assign(E,jr)})).apply(this,arguments)}function ie(){return(ie=(0,X.A)(function*(E){const h=(0,re.Ku)(E);yield He(h),yield h.auth._persistUserIfCurrent(h),h.auth._notifyListenersIfCurrent(h)})).apply(this,arguments)}function Pe(E){return E.map(h=>{var{providerId:v}=h,b=(0,Je.Tt)(h,["providerId"]);return{providerId:v,uid:b.rawId||"",displayName:b.displayName||null,email:b.email||null,phoneNumber:b.phoneNumber||null,photoURL:b.photoUrl||null}})}function rt(){return(rt=(0,X.A)(function*(E,h){const v=yield bn(E,{},(0,X.A)(function*(){const b=(0,re.Am)({grant_type:"refresh_token",refresh_token:h}).slice(1),{tokenApiHost:q,apiKey:pe}=E.config,nt=yn(E,q,"/v1/token",`key=${pe}`),Pt=yield E._getAdditionalHeaders();return Pt["Content-Type"]="application/x-www-form-urlencoded",me.fetch()(nt,{method:"POST",headers:Pt,body:b})}));return{accessToken:v.access_token,expiresIn:v.expires_in,refreshToken:v.refresh_token}})).apply(this,arguments)}function Sn(){return(Sn=(0,X.A)(function*(E,h){return Bt(E,"POST","/v2/accounts:revokeToken",kt(E,h))})).apply(this,arguments)}class Wn{constructor(){this.refreshToken=null,this.accessToken=null,this.expirationTime=null}get isExpired(){return!this.expirationTime||Date.now()>this.expirationTime-3e4}updateFromServerResponse(h){Dt(h.idToken,"internal-error"),Dt(typeof h.idToken<"u","internal-error"),Dt(typeof h.refreshToken<"u","internal-error");const v="expiresIn"in h&&typeof h.expiresIn<"u"?Number(h.expiresIn):tr(h.idToken);this.updateTokensAndExpiration(h.idToken,h.refreshToken,v)}updateFromIdToken(h){Dt(0!==h.length,"internal-error");const v=tr(h);this.updateTokensAndExpiration(h,null,v)}getToken(h,v=!1){var b=this;return(0,X.A)(function*(){return v||!b.accessToken||b.isExpired?(Dt(b.refreshToken,h,"user-token-expired"),b.refreshToken?(yield b.refresh(h,b.refreshToken),b.accessToken):null):b.accessToken})()}clearRefreshToken(){this.refreshToken=null}refresh(h,v){var b=this;return(0,X.A)(function*(){const{accessToken:q,refreshToken:pe,expiresIn:nt}=yield function Et(E,h){return rt.apply(this,arguments)}(h,v);b.updateTokensAndExpiration(q,pe,Number(nt))})()}updateTokensAndExpiration(h,v,b){this.refreshToken=v||null,this.accessToken=h||null,this.expirationTime=Date.now()+1e3*b}static fromJSON(h,v){const{refreshToken:b,accessToken:q,expirationTime:pe}=v,nt=new Wn;return b&&(Dt("string"==typeof b,"internal-error",{appName:h}),nt.refreshToken=b),q&&(Dt("string"==typeof q,"internal-error",{appName:h}),nt.accessToken=q),pe&&(Dt("number"==typeof pe,"internal-error",{appName:h}),nt.expirationTime=pe),nt}toJSON(){return{refreshToken:this.refreshToken,accessToken:this.accessToken,expirationTime:this.expirationTime}}_assign(h){this.accessToken=h.accessToken,this.refreshToken=h.refreshToken,this.expirationTime=h.expirationTime}_clone(){return Object.assign(new Wn,this.toJSON())}_performRefresh(){return Be("not implemented")}}function gr(E,h){Dt("string"==typeof E||typeof E>"u","internal-error",{appName:h})}class ur{constructor(h){var{uid:v,auth:b,stsTokenManager:q}=h,pe=(0,Je.Tt)(h,["uid","auth","stsTokenManager"]);this.providerId="firebase",this.proactiveRefresh=new Yr(this),this.reloadUserInfo=null,this.reloadListener=null,this.uid=v,this.auth=b,this.stsTokenManager=q,this.accessToken=q.accessToken,this.displayName=pe.displayName||null,this.email=pe.email||null,this.emailVerified=pe.emailVerified||!1,this.phoneNumber=pe.phoneNumber||null,this.photoURL=pe.photoURL||null,this.isAnonymous=pe.isAnonymous||!1,this.tenantId=pe.tenantId||null,this.providerData=pe.providerData?[...pe.providerData]:[],this.metadata=new oe(pe.createdAt||void 0,pe.lastLoginAt||void 0)}getIdToken(h){var v=this;return(0,X.A)(function*(){const b=yield Er(v,v.stsTokenManager.getToken(v.auth,h));return Dt(b,v.auth,"internal-error"),v.accessToken!==b&&(v.accessToken=b,yield v.auth._persistUserIfCurrent(v),v.auth._notifyListenersIfCurrent(v)),b})()}getIdTokenResult(h){return function ni(E){return Zn.apply(this,arguments)}(this,h)}reload(){return function Xe(E){return ie.apply(this,arguments)}(this)}_assign(h){this!==h&&(Dt(this.uid===h.uid,this.auth,"internal-error"),this.displayName=h.displayName,this.photoURL=h.photoURL,this.email=h.email,this.emailVerified=h.emailVerified,this.phoneNumber=h.phoneNumber,this.isAnonymous=h.isAnonymous,this.tenantId=h.tenantId,this.providerData=h.providerData.map(v=>Object.assign({},v)),this.metadata._copy(h.metadata),this.stsTokenManager._assign(h.stsTokenManager))}_clone(h){const v=new ur(Object.assign(Object.assign({},this),{auth:h,stsTokenManager:this.stsTokenManager._clone()}));return v.metadata._copy(this.metadata),v}_onReload(h){Dt(!this.reloadListener,this.auth,"internal-error"),this.reloadListener=h,this.reloadUserInfo&&(this._notifyReloadListener(this.reloadUserInfo),this.reloadUserInfo=null)}_notifyReloadListener(h){this.reloadListener?this.reloadListener(h):this.reloadUserInfo=h}_startProactiveRefresh(){this.proactiveRefresh._start()}_stopProactiveRefresh(){this.proactiveRefresh._stop()}_updateTokensIfNecessary(h,v=!1){var b=this;return(0,X.A)(function*(){let q=!1;h.idToken&&h.idToken!==b.stsTokenManager.accessToken&&(b.stsTokenManager.updateFromServerResponse(h),q=!0),v&&(yield He(b)),yield b.auth._persistUserIfCurrent(b),q&&b.auth._notifyListenersIfCurrent(b)})()}delete(){var h=this;return(0,X.A)(function*(){if((0,Ee.xZ)(h.auth.app))return Promise.reject(Tt(h.auth));const v=yield h.getIdToken();return yield Er(h,function Jt(E,h){return Gt.apply(this,arguments)}(h.auth,{idToken:v})),h.stsTokenManager.clearRefreshToken(),h.auth.signOut()})()}toJSON(){return Object.assign(Object.assign({uid:this.uid,email:this.email||void 0,emailVerified:this.emailVerified,displayName:this.displayName||void 0,isAnonymous:this.isAnonymous,photoURL:this.photoURL||void 0,phoneNumber:this.phoneNumber||void 0,tenantId:this.tenantId||void 0,providerData:this.providerData.map(h=>Object.assign({},h)),stsTokenManager:this.stsTokenManager.toJSON(),_redirectEventId:this._redirectEventId},this.metadata.toJSON()),{apiKey:this.auth.config.apiKey,appName:this.auth.name})}get refreshToken(){return this.stsTokenManager.refreshToken||""}static _fromJSON(h,v){var b,q,pe,nt,Pt,on,Dn,Xn;const jr=null!==(b=v.displayName)&&void 0!==b?b:void 0,Oo=null!==(q=v.email)&&void 0!==q?q:void 0,Zi=null!==(pe=v.phoneNumber)&&void 0!==pe?pe:void 0,sa=null!==(nt=v.photoURL)&&void 0!==nt?nt:void 0,Wd=null!==(Pt=v.tenantId)&&void 0!==Pt?Pt:void 0,ou=null!==(on=v._redirectEventId)&&void 0!==on?on:void 0,Kd=null!==(Dn=v.createdAt)&&void 0!==Dn?Dn:void 0,Yu=null!==(Xn=v.lastLoginAt)&&void 0!==Xn?Xn:void 0,{uid:Zu,emailVerified:Ju,isAnonymous:Af,providerData:su,stsTokenManager:Cf}=v;Dt(Zu&&Cf,h,"internal-error");const qd=Wn.fromJSON(this.name,Cf);Dt("string"==typeof Zu,h,"internal-error"),gr(jr,h.name),gr(Oo,h.name),Dt("boolean"==typeof Ju,h,"internal-error"),Dt("boolean"==typeof Af,h,"internal-error"),gr(Zi,h.name),gr(sa,h.name),gr(Wd,h.name),gr(ou,h.name),gr(Kd,h.name),gr(Yu,h.name);const Xd=new ur({uid:Zu,auth:h,email:Oo,emailVerified:Ju,displayName:jr,isAnonymous:Af,photoURL:sa,phoneNumber:Zi,tenantId:Wd,stsTokenManager:qd,createdAt:Kd,lastLoginAt:Yu});return su&&Array.isArray(su)&&(Xd.providerData=su.map(Qd=>Object.assign({},Qd))),ou&&(Xd._redirectEventId=ou),Xd}static _fromIdTokenResponse(h,v,b=!1){return(0,X.A)(function*(){const q=new Wn;q.updateFromServerResponse(v);const pe=new ur({uid:v.localId,auth:h,stsTokenManager:q,isAnonymous:b});return yield He(pe),pe})()}static _fromGetAccountInfoResponse(h,v,b){return(0,X.A)(function*(){const q=v.users[0];Dt(void 0!==q.localId,"internal-error");const pe=void 0!==q.providerUserInfo?Pe(q.providerUserInfo):[],nt=!(q.email&&q.passwordHash||null!=pe&&pe.length),Pt=new Wn;Pt.updateFromIdToken(b);const on=new ur({uid:q.localId,auth:h,stsTokenManager:Pt,isAnonymous:nt}),Dn={uid:q.localId,displayName:q.displayName||null,photoURL:q.photoUrl||null,email:q.email||null,emailVerified:q.emailVerified||!1,phoneNumber:q.phoneNumber||null,tenantId:q.tenantId||null,providerData:pe,metadata:new oe(q.createdAt,q.lastLoginAt),isAnonymous:!(q.email&&q.passwordHash||null!=pe&&pe.length)};return Object.assign(on,Dn),on})()}}const ri=new Map;function xn(E){rn(E instanceof Function,"Expected a class definition");let h=ri.get(E);return h?(rn(h instanceof E,"Instance stored in cache mismatched with class"),h):(h=new E,ri.set(E,h),h)}const yr=(()=>{class E{constructor(){this.type="NONE",this.storage={}}_isAvailable(){return(0,X.A)(function*(){return!0})()}_set(v,b){var q=this;return(0,X.A)(function*(){q.storage[v]=b})()}_get(v){var b=this;return(0,X.A)(function*(){const q=b.storage[v];return void 0===q?null:q})()}_remove(v){var b=this;return(0,X.A)(function*(){delete b.storage[v]})()}_addListener(v,b){}_removeListener(v,b){}}return E.type="NONE",E})();function Ei(E,h,v){return`firebase:${E}:${h}:${v}`}class ii{constructor(h,v,b){this.persistence=h,this.auth=v,this.userKey=b;const{config:q,name:pe}=this.auth;this.fullUserKey=Ei(this.userKey,q.apiKey,pe),this.fullPersistenceKey=Ei("persistence",q.apiKey,pe),this.boundEventHandler=v._onStorageEvent.bind(v),this.persistence._addListener(this.fullUserKey,this.boundEventHandler)}setCurrentUser(h){return this.persistence._set(this.fullUserKey,h.toJSON())}getCurrentUser(){var h=this;return(0,X.A)(function*(){const v=yield h.persistence._get(h.fullUserKey);return v?ur._fromJSON(h.auth,v):null})()}removeCurrentUser(){return this.persistence._remove(this.fullUserKey)}savePersistenceForRedirect(){return this.persistence._set(this.fullPersistenceKey,this.persistence.type)}setPersistence(h){var v=this;return(0,X.A)(function*(){if(v.persistence===h)return;const b=yield v.getCurrentUser();return yield v.removeCurrentUser(),v.persistence=h,b?v.setCurrentUser(b):void 0})()}delete(){this.persistence._removeListener(this.fullUserKey,this.boundEventHandler)}static create(h,v,b="authUser"){return(0,X.A)(function*(){if(!v.length)return new ii(xn(yr),h,b);const q=(yield Promise.all(v.map(function(){var Dn=(0,X.A)(function*(Xn){if(yield Xn._isAvailable())return Xn});return function(Xn){return Dn.apply(this,arguments)}}()))).filter(Dn=>Dn);let pe=q[0]||xn(yr);const nt=Ei(b,h.config.apiKey,h.name);let Pt=null;for(const Dn of v)try{const Xn=yield Dn._get(nt);if(Xn){const jr=ur._fromJSON(h,Xn);Dn!==pe&&(Pt=jr),pe=Dn;break}}catch{}const on=q.filter(Dn=>Dn._shouldAllowMigration);return pe._shouldAllowMigration&&on.length?(pe=on[0],Pt&&(yield pe._set(nt,Pt.toJSON())),yield Promise.all(v.map(function(){var Dn=(0,X.A)(function*(Xn){if(Xn!==pe)try{yield Xn._remove(nt)}catch{}});return function(Xn){return Dn.apply(this,arguments)}}())),new ii(pe,h,b)):new ii(pe,h,b)})()}}function pi(E){const h=E.toLowerCase();if(h.includes("opera/")||h.includes("opr/")||h.includes("opios/"))return"Opera";if(wi(h))return"IEMobile";if(h.includes("msie")||h.includes("trident/"))return"IE";if(h.includes("edge/"))return"Edge";if(Ui(h))return"Firefox";if(h.includes("silk/"))return"Silk";if(St(h))return"Blackberry";if(lt(h))return"Webos";if(or(h))return"Safari";if((h.includes("chrome/")||Hi(h))&&!h.includes("edge/"))return"Chrome";if(gi(h))return"Android";{const b=E.match(/([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/);if(2===(null==b?void 0:b.length))return b[1]}return"Other"}function Ui(E=(0,re.ZQ)()){return/firefox\//i.test(E)}function or(E=(0,re.ZQ)()){const h=E.toLowerCase();return h.includes("safari/")&&!h.includes("chrome/")&&!h.includes("crios/")&&!h.includes("android")}function Hi(E=(0,re.ZQ)()){return/crios\//i.test(E)}function wi(E=(0,re.ZQ)()){return/iemobile/i.test(E)}function gi(E=(0,re.ZQ)()){return/android/i.test(E)}function St(E=(0,re.ZQ)()){return/blackberry/i.test(E)}function lt(E=(0,re.ZQ)()){return/webos/i.test(E)}function Ut(E=(0,re.ZQ)()){return/iphone|ipad|ipod/i.test(E)||/macintosh/i.test(E)&&/mobile/i.test(E)}function Z(E=(0,re.ZQ)()){return Ut(E)||gi(E)||lt(E)||St(E)||/windows phone/i.test(E)||wi(E)}function Q(E,h=[]){let v;switch(E){case"Browser":v=pi((0,re.ZQ)());break;case"Worker":v=`${pi((0,re.ZQ)())}-${E}`;break;default:v=E}const b=h.length?h.join(","):"FirebaseCore-web";return`${v}/JsCore/${Ee.MF}/${b}`}class Se{constructor(h){this.auth=h,this.queue=[]}pushCallback(h,v){const b=pe=>new Promise((nt,Pt)=>{try{nt(h(pe))}catch(on){Pt(on)}});b.onAbort=v,this.queue.push(b);const q=this.queue.length-1;return()=>{this.queue[q]=()=>Promise.resolve()}}runMiddleware(h){var v=this;return(0,X.A)(function*(){if(v.auth.currentUser===h)return;const b=[];try{for(const q of v.queue)yield q(h),q.onAbort&&b.push(q.onAbort)}catch(q){b.reverse();for(const pe of b)try{pe()}catch{}throw v.auth._errorFactory.create("login-blocked",{originalMessage:null==q?void 0:q.message})}})()}}function Wt(){return(Wt=(0,X.A)(function*(E,h={}){return Bt(E,"GET","/v2/passwordPolicy",kt(E,h))})).apply(this,arguments)}class Pn{constructor(h){var v,b,q,pe;const nt=h.customStrengthOptions;this.customStrengthOptions={},this.customStrengthOptions.minPasswordLength=null!==(v=nt.minPasswordLength)&&void 0!==v?v:6,nt.maxPasswordLength&&(this.customStrengthOptions.maxPasswordLength=nt.maxPasswordLength),void 0!==nt.containsLowercaseCharacter&&(this.customStrengthOptions.containsLowercaseLetter=nt.containsLowercaseCharacter),void 0!==nt.containsUppercaseCharacter&&(this.customStrengthOptions.containsUppercaseLetter=nt.containsUppercaseCharacter),void 0!==nt.containsNumericCharacter&&(this.customStrengthOptions.containsNumericCharacter=nt.containsNumericCharacter),void 0!==nt.containsNonAlphanumericCharacter&&(this.customStrengthOptions.containsNonAlphanumericCharacter=nt.containsNonAlphanumericCharacter),this.enforcementState=h.enforcementState,"ENFORCEMENT_STATE_UNSPECIFIED"===this.enforcementState&&(this.enforcementState="OFF"),this.allowedNonAlphanumericCharacters=null!==(q=null===(b=h.allowedNonAlphanumericCharacters)||void 0===b?void 0:b.join(""))&&void 0!==q?q:"",this.forceUpgradeOnSignin=null!==(pe=h.forceUpgradeOnSignin)&&void 0!==pe&&pe,this.schemaVersion=h.schemaVersion}validatePassword(h){var v,b,q,pe,nt,Pt;const on={isValid:!0,passwordPolicy:this};return this.validatePasswordLengthOptions(h,on),this.validatePasswordCharacterOptions(h,on),on.isValid&&(on.isValid=null===(v=on.meetsMinPasswordLength)||void 0===v||v),on.isValid&&(on.isValid=null===(b=on.meetsMaxPasswordLength)||void 0===b||b),on.isValid&&(on.isValid=null===(q=on.containsLowercaseLetter)||void 0===q||q),on.isValid&&(on.isValid=null===(pe=on.containsUppercaseLetter)||void 0===pe||pe),on.isValid&&(on.isValid=null===(nt=on.containsNumericCharacter)||void 0===nt||nt),on.isValid&&(on.isValid=null===(Pt=on.containsNonAlphanumericCharacter)||void 0===Pt||Pt),on}validatePasswordLengthOptions(h,v){const b=this.customStrengthOptions.minPasswordLength,q=this.customStrengthOptions.maxPasswordLength;b&&(v.meetsMinPasswordLength=h.length>=b),q&&(v.meetsMaxPasswordLength=h.length<=q)}validatePasswordCharacterOptions(h,v){let b;this.updatePasswordCharacterOptionsStatuses(v,!1,!1,!1,!1);for(let q=0;q="a"&&b<="z",b>="A"&&b<="Z",b>="0"&&b<="9",this.allowedNonAlphanumericCharacters.includes(b))}updatePasswordCharacterOptionsStatuses(h,v,b,q,pe){this.customStrengthOptions.containsLowercaseLetter&&(h.containsLowercaseLetter||(h.containsLowercaseLetter=v)),this.customStrengthOptions.containsUppercaseLetter&&(h.containsUppercaseLetter||(h.containsUppercaseLetter=b)),this.customStrengthOptions.containsNumericCharacter&&(h.containsNumericCharacter||(h.containsNumericCharacter=q)),this.customStrengthOptions.containsNonAlphanumericCharacter&&(h.containsNonAlphanumericCharacter||(h.containsNonAlphanumericCharacter=pe))}}class Cr{constructor(h,v,b,q){this.app=h,this.heartbeatServiceProvider=v,this.appCheckServiceProvider=b,this.config=q,this.currentUser=null,this.emulatorConfig=null,this.operations=Promise.resolve(),this.authStateSubscription=new $i(this),this.idTokenSubscription=new $i(this),this.beforeStateQueue=new Se(this),this.redirectUser=null,this.isProactiveRefreshEnabled=!1,this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION=1,this._canInitEmulator=!0,this._isInitialized=!1,this._deleted=!1,this._initializationPromise=null,this._popupRedirectResolver=null,this._errorFactory=mt,this._agentRecaptchaConfig=null,this._tenantRecaptchaConfigs={},this._projectPasswordPolicy=null,this._tenantPasswordPolicies={},this.lastNotifiedUid=void 0,this.languageCode=null,this.tenantId=null,this.settings={appVerificationDisabledForTesting:!1},this.frameworks=[],this.name=h.name,this.clientVersion=q.sdkClientVersion}_initializeWithPersistence(h,v){var b=this;return v&&(this._popupRedirectResolver=xn(v)),this._initializationPromise=this.queue((0,X.A)(function*(){var q,pe;if(!b._deleted&&(b.persistenceManager=yield ii.create(b,h),!b._deleted)){if(null!==(q=b._popupRedirectResolver)&&void 0!==q&&q._shouldInitProactively)try{yield b._popupRedirectResolver._initialize(b)}catch{}yield b.initializeCurrentUser(v),b.lastNotifiedUid=(null===(pe=b.currentUser)||void 0===pe?void 0:pe.uid)||null,!b._deleted&&(b._isInitialized=!0)}})),this._initializationPromise}_onStorageEvent(){var h=this;return(0,X.A)(function*(){if(h._deleted)return;const v=yield h.assertedPersistence.getCurrentUser();if(h.currentUser||v){if(h.currentUser&&v&&h.currentUser.uid===v.uid)return h._currentUser._assign(v),void(yield h.currentUser.getIdToken());yield h._updateCurrentUser(v,!0)}})()}initializeCurrentUserFromIdToken(h){var v=this;return(0,X.A)(function*(){try{const b=yield kr(v,{idToken:h}),q=yield ur._fromGetAccountInfoResponse(v,b,h);yield v.directlySetCurrentUser(q)}catch(b){console.warn("FirebaseServerApp could not login user with provided authIdToken: ",b),yield v.directlySetCurrentUser(null)}})()}initializeCurrentUser(h){var v=this;return(0,X.A)(function*(){var b;if((0,Ee.xZ)(v.app)){const Pt=v.app.settings.authIdToken;return Pt?new Promise(on=>{setTimeout(()=>v.initializeCurrentUserFromIdToken(Pt).then(on,on))}):v.directlySetCurrentUser(null)}const q=yield v.assertedPersistence.getCurrentUser();let pe=q,nt=!1;if(h&&v.config.authDomain){yield v.getOrInitRedirectPersistenceManager();const Pt=null===(b=v.redirectUser)||void 0===b?void 0:b._redirectEventId,on=null==pe?void 0:pe._redirectEventId,Dn=yield v.tryRedirectSignIn(h);(!Pt||Pt===on)&&null!=Dn&&Dn.user&&(pe=Dn.user,nt=!0)}if(!pe)return v.directlySetCurrentUser(null);if(!pe._redirectEventId){if(nt)try{yield v.beforeStateQueue.runMiddleware(pe)}catch(Pt){pe=q,v._popupRedirectResolver._overrideRedirectResult(v,()=>Promise.reject(Pt))}return pe?v.reloadAndSetCurrentUserOrClear(pe):v.directlySetCurrentUser(null)}return Dt(v._popupRedirectResolver,v,"argument-error"),yield v.getOrInitRedirectPersistenceManager(),v.redirectUser&&v.redirectUser._redirectEventId===pe._redirectEventId?v.directlySetCurrentUser(pe):v.reloadAndSetCurrentUserOrClear(pe)})()}tryRedirectSignIn(h){var v=this;return(0,X.A)(function*(){let b=null;try{b=yield v._popupRedirectResolver._completeRedirectFn(v,h,!0)}catch{yield v._setRedirectUser(null)}return b})()}reloadAndSetCurrentUserOrClear(h){var v=this;return(0,X.A)(function*(){try{yield He(h)}catch(b){if("auth/network-request-failed"!==(null==b?void 0:b.code))return v.directlySetCurrentUser(null)}return v.directlySetCurrentUser(h)})()}useDeviceLanguage(){this.languageCode=function te(){if(typeof navigator>"u")return null;const E=navigator;return E.languages&&E.languages[0]||E.language||null}()}_delete(){var h=this;return(0,X.A)(function*(){h._deleted=!0})()}updateCurrentUser(h){var v=this;return(0,X.A)(function*(){if((0,Ee.xZ)(v.app))return Promise.reject(Tt(v));const b=h?(0,re.Ku)(h):null;return b&&Dt(b.auth.config.apiKey===v.config.apiKey,v,"invalid-user-token"),v._updateCurrentUser(b&&b._clone(v))})()}_updateCurrentUser(h,v=!1){var b=this;return(0,X.A)(function*(){if(!b._deleted)return h&&Dt(b.tenantId===h.tenantId,b,"tenant-id-mismatch"),v||(yield b.beforeStateQueue.runMiddleware(h)),b.queue((0,X.A)(function*(){yield b.directlySetCurrentUser(h),b.notifyAuthListeners()}))})()}signOut(){var h=this;return(0,X.A)(function*(){return(0,Ee.xZ)(h.app)?Promise.reject(Tt(h)):(yield h.beforeStateQueue.runMiddleware(null),(h.redirectPersistenceManager||h._popupRedirectResolver)&&(yield h._setRedirectUser(null)),h._updateCurrentUser(null,!0))})()}setPersistence(h){var v=this;return(0,Ee.xZ)(this.app)?Promise.reject(Tt(this)):this.queue((0,X.A)(function*(){yield v.assertedPersistence.setPersistence(xn(h))}))}_getRecaptchaConfig(){return null==this.tenantId?this._agentRecaptchaConfig:this._tenantRecaptchaConfigs[this.tenantId]}validatePassword(h){var v=this;return(0,X.A)(function*(){v._getPasswordPolicyInternal()||(yield v._updatePasswordPolicy());const b=v._getPasswordPolicyInternal();return b.schemaVersion!==v.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION?Promise.reject(v._errorFactory.create("unsupported-password-policy-schema-version",{})):b.validatePassword(h)})()}_getPasswordPolicyInternal(){return null===this.tenantId?this._projectPasswordPolicy:this._tenantPasswordPolicies[this.tenantId]}_updatePasswordPolicy(){var h=this;return(0,X.A)(function*(){const v=yield function it(E){return Wt.apply(this,arguments)}(h),b=new Pn(v);null===h.tenantId?h._projectPasswordPolicy=b:h._tenantPasswordPolicies[h.tenantId]=b})()}_getPersistence(){return this.assertedPersistence.persistence.type}_updateErrorMap(h){this._errorFactory=new re.FA("auth","Firebase",h())}onAuthStateChanged(h,v,b){return this.registerStateListener(this.authStateSubscription,h,v,b)}beforeAuthStateChanged(h,v){return this.beforeStateQueue.pushCallback(h,v)}onIdTokenChanged(h,v,b){return this.registerStateListener(this.idTokenSubscription,h,v,b)}authStateReady(){return new Promise((h,v)=>{if(this.currentUser)h();else{const b=this.onAuthStateChanged(()=>{b(),h()},v)}})}revokeAccessToken(h){var v=this;return(0,X.A)(function*(){if(v.currentUser){const b=yield v.currentUser.getIdToken(),q={providerId:"apple.com",tokenType:"ACCESS_TOKEN",token:h,idToken:b};null!=v.tenantId&&(q.tenantId=v.tenantId),yield function dn(E,h){return Sn.apply(this,arguments)}(v,q)}})()}toJSON(){var h;return{apiKey:this.config.apiKey,authDomain:this.config.authDomain,appName:this.name,currentUser:null===(h=this._currentUser)||void 0===h?void 0:h.toJSON()}}_setRedirectUser(h,v){var b=this;return(0,X.A)(function*(){const q=yield b.getOrInitRedirectPersistenceManager(v);return null===h?q.removeCurrentUser():q.setCurrentUser(h)})()}getOrInitRedirectPersistenceManager(h){var v=this;return(0,X.A)(function*(){if(!v.redirectPersistenceManager){const b=h&&xn(h)||v._popupRedirectResolver;Dt(b,v,"argument-error"),v.redirectPersistenceManager=yield ii.create(v,[xn(b._redirectPersistence)],"redirectUser"),v.redirectUser=yield v.redirectPersistenceManager.getCurrentUser()}return v.redirectPersistenceManager})()}_redirectUserForId(h){var v=this;return(0,X.A)(function*(){var b,q;return v._isInitialized&&(yield v.queue((0,X.A)(function*(){}))),(null===(b=v._currentUser)||void 0===b?void 0:b._redirectEventId)===h?v._currentUser:(null===(q=v.redirectUser)||void 0===q?void 0:q._redirectEventId)===h?v.redirectUser:null})()}_persistUserIfCurrent(h){var v=this;return(0,X.A)(function*(){if(h===v.currentUser)return v.queue((0,X.A)(function*(){return v.directlySetCurrentUser(h)}))})()}_notifyListenersIfCurrent(h){h===this.currentUser&&this.notifyAuthListeners()}_key(){return`${this.config.authDomain}:${this.config.apiKey}:${this.name}`}_startProactiveRefresh(){this.isProactiveRefreshEnabled=!0,this.currentUser&&this._currentUser._startProactiveRefresh()}_stopProactiveRefresh(){this.isProactiveRefreshEnabled=!1,this.currentUser&&this._currentUser._stopProactiveRefresh()}get _currentUser(){return this.currentUser}notifyAuthListeners(){var h,v;if(!this._isInitialized)return;this.idTokenSubscription.next(this.currentUser);const b=null!==(v=null===(h=this.currentUser)||void 0===h?void 0:h.uid)&&void 0!==v?v:null;this.lastNotifiedUid!==b&&(this.lastNotifiedUid=b,this.authStateSubscription.next(this.currentUser))}registerStateListener(h,v,b,q){if(this._deleted)return()=>{};const pe="function"==typeof v?v:v.next.bind(v);let nt=!1;const Pt=this._isInitialized?Promise.resolve():this._initializationPromise;if(Dt(Pt,this,"internal-error"),Pt.then(()=>{nt||pe(this.currentUser)}),"function"==typeof v){const on=h.addObserver(v,b,q);return()=>{nt=!0,on()}}{const on=h.addObserver(v);return()=>{nt=!0,on()}}}directlySetCurrentUser(h){var v=this;return(0,X.A)(function*(){v.currentUser&&v.currentUser!==h&&v._currentUser._stopProactiveRefresh(),h&&v.isProactiveRefreshEnabled&&h._startProactiveRefresh(),v.currentUser=h,h?yield v.assertedPersistence.setCurrentUser(h):yield v.assertedPersistence.removeCurrentUser()})()}queue(h){return this.operations=this.operations.then(h,h),this.operations}get assertedPersistence(){return Dt(this.persistenceManager,this,"internal-error"),this.persistenceManager}_logFramework(h){!h||this.frameworks.includes(h)||(this.frameworks.push(h),this.frameworks.sort(),this.clientVersion=Q(this.config.clientPlatform,this._getFrameworks()))}_getFrameworks(){return this.frameworks}_getAdditionalHeaders(){var h=this;return(0,X.A)(function*(){var v;const b={"X-Client-Version":h.clientVersion};h.app.options.appId&&(b["X-Firebase-gmpid"]=h.app.options.appId);const q=yield null===(v=h.heartbeatServiceProvider.getImmediate({optional:!0}))||void 0===v?void 0:v.getHeartbeatsHeader();q&&(b["X-Firebase-Client"]=q);const pe=yield h._getAppCheckToken();return pe&&(b["X-Firebase-AppCheck"]=pe),b})()}_getAppCheckToken(){var h=this;return(0,X.A)(function*(){var v;const b=yield null===(v=h.appCheckServiceProvider.getImmediate({optional:!0}))||void 0===v?void 0:v.getToken();return null!=b&&b.error&&function je(E,...h){Me.logLevel<=Ze.$b.WARN&&Me.warn(`Auth (${Ee.MF}): ${E}`,...h)}(`Error while retrieving App Check token: ${b.error}`),null==b?void 0:b.token})()}}function Hn(E){return(0,re.Ku)(E)}class $i{constructor(h){this.auth=h,this.observer=null,this.addObserver=(0,re.tD)(v=>this.observer=v)}get next(){return Dt(this.observer,this.auth,"internal-error"),this.observer.next.bind(this.observer)}}let Ai={loadJS:()=>(0,X.A)(function*(){throw new Error("Unable to load external scripts")})(),recaptchaV2Script:"",recaptchaEnterpriseScript:"",gapiScript:""};function xr(E){return Ai.loadJS(E)}function Si(E){return`__${E}${Math.floor(1e6*Math.random())}`}class oi{constructor(h){this.type="recaptcha-enterprise",this.auth=Hn(h)}verify(h="verify",v=!1){var b=this;return(0,X.A)(function*(){function pe(){return pe=(0,X.A)(function*(Pt){if(!v){if(null==Pt.tenantId&&null!=Pt._agentRecaptchaConfig)return Pt._agentRecaptchaConfig.siteKey;if(null!=Pt.tenantId&&void 0!==Pt._tenantRecaptchaConfigs[Pt.tenantId])return Pt._tenantRecaptchaConfigs[Pt.tenantId].siteKey}return new Promise(function(){var on=(0,X.A)(function*(Dn,Xn){gn(Pt,{clientType:"CLIENT_TYPE_WEB",version:"RECAPTCHA_ENTERPRISE"}).then(jr=>{if(void 0!==jr.recaptchaKey){const Oo=new Xt(jr);return null==Pt.tenantId?Pt._agentRecaptchaConfig=Oo:Pt._tenantRecaptchaConfigs[Pt.tenantId]=Oo,Dn(Oo.siteKey)}Xn(new Error("recaptcha Enterprise site key undefined"))}).catch(jr=>{Xn(jr)})});return function(Dn,Xn){return on.apply(this,arguments)}}())}),pe.apply(this,arguments)}function nt(Pt,on,Dn){const Xn=window.grecaptcha;Ot(Xn)?Xn.enterprise.ready(()=>{Xn.enterprise.execute(Pt,{action:h}).then(jr=>{on(jr)}).catch(()=>{on("NO_RECAPTCHA")})}):Dn(Error("No reCAPTCHA enterprise script loaded."))}return new Promise((Pt,on)=>{(function q(Pt){return pe.apply(this,arguments)})(b.auth).then(Dn=>{if(!v&&Ot(window.grecaptcha))nt(Dn,Pt,on);else{if(typeof window>"u")return void on(new Error("RecaptchaVerifier is only supported in browser"));let Xn=function xi(){return Ai.recaptchaEnterpriseScript}();0!==Xn.length&&(Xn+=Dn),xr(Xn).then(()=>{nt(Dn,Pt,on)}).catch(jr=>{on(jr)})}}).catch(Dn=>{on(Dn)})})})()}}function Nn(E,h,v){return kn.apply(this,arguments)}function kn(){return(kn=(0,X.A)(function*(E,h,v,b=!1){const q=new oi(E);let pe;try{pe=yield q.verify(v)}catch{pe=yield q.verify(v,!0)}const nt=Object.assign({},h);return Object.assign(nt,b?{captchaResp:pe}:{captchaResponse:pe}),Object.assign(nt,{clientType:"CLIENT_TYPE_WEB"}),Object.assign(nt,{recaptchaVersion:"RECAPTCHA_ENTERPRISE"}),nt})).apply(this,arguments)}function ko(E,h,v,b){return ei.apply(this,arguments)}function ei(){return ei=(0,X.A)(function*(E,h,v,b){var q;if(null!==(q=E._getRecaptchaConfig())&&void 0!==q&&q.isProviderEnabled("EMAIL_PASSWORD_PROVIDER")){const pe=yield Nn(E,h,v,"getOobCode"===v);return b(E,pe)}return b(E,h).catch(function(){var pe=(0,X.A)(function*(nt){if("auth/missing-recaptcha-token"===nt.code){console.log(`${v} is protected by reCAPTCHA Enterprise for this project. Automatically triggering the reCAPTCHA flow and restarting the flow.`);const Pt=yield Nn(E,h,v,"getOobCode"===v);return b(E,Pt)}return Promise.reject(nt)});return function(nt){return pe.apply(this,arguments)}}())}),ei.apply(this,arguments)}function Or(E){const h=E.indexOf(":");return h<0?"":E.substr(0,h+1)}function jn(E){if(!E)return null;const h=Number(E);return isNaN(h)?null:h}class Ao{constructor(h,v){this.providerId=h,this.signInMethod=v}toJSON(){return Be("not implemented")}_getIdTokenResponse(h){return Be("not implemented")}_linkToIdToken(h,v){return Be("not implemented")}_getReauthenticationResolver(h){return Be("not implemented")}}function S(E,h){return H.apply(this,arguments)}function H(){return(H=(0,X.A)(function*(E,h){return Bt(E,"POST","/v1/accounts:signUp",h)})).apply(this,arguments)}function fe(E,h){return qe.apply(this,arguments)}function qe(){return(qe=(0,X.A)(function*(E,h){return qn(E,"POST","/v1/accounts:signInWithPassword",kt(E,h))})).apply(this,arguments)}function Yt(){return(Yt=(0,X.A)(function*(E,h){return qn(E,"POST","/v1/accounts:signInWithEmailLink",kt(E,h))})).apply(this,arguments)}function Cn(){return(Cn=(0,X.A)(function*(E,h){return qn(E,"POST","/v1/accounts:signInWithEmailLink",kt(E,h))})).apply(this,arguments)}class Ln extends Ao{constructor(h,v,b,q=null){super("password",b),this._email=h,this._password=v,this._tenantId=q}static _fromEmailAndPassword(h,v){return new Ln(h,v,"password")}static _fromEmailAndCode(h,v,b=null){return new Ln(h,v,"emailLink",b)}toJSON(){return{email:this._email,password:this._password,signInMethod:this.signInMethod,tenantId:this._tenantId}}static fromJSON(h){const v="string"==typeof h?JSON.parse(h):h;if(null!=v&&v.email&&null!=v&&v.password){if("password"===v.signInMethod)return this._fromEmailAndPassword(v.email,v.password);if("emailLink"===v.signInMethod)return this._fromEmailAndCode(v.email,v.password,v.tenantId)}return null}_getIdTokenResponse(h){var v=this;return(0,X.A)(function*(){switch(v.signInMethod){case"password":return ko(h,{returnSecureToken:!0,email:v._email,password:v._password,clientType:"CLIENT_TYPE_WEB"},"signInWithPassword",fe);case"emailLink":return function Kt(E,h){return Yt.apply(this,arguments)}(h,{email:v._email,oobCode:v._password});default:Ct(h,"internal-error")}})()}_linkToIdToken(h,v){var b=this;return(0,X.A)(function*(){switch(b.signInMethod){case"password":return ko(h,{idToken:v,returnSecureToken:!0,email:b._email,password:b._password,clientType:"CLIENT_TYPE_WEB"},"signUpPassword",S);case"emailLink":return function _n(E,h){return Cn.apply(this,arguments)}(h,{idToken:v,email:b._email,oobCode:b._password});default:Ct(h,"internal-error")}})()}_getReauthenticationResolver(h){return this._getIdTokenResponse(h)}}function In(E,h){return br.apply(this,arguments)}function br(){return(br=(0,X.A)(function*(E,h){return qn(E,"POST","/v1/accounts:signInWithIdp",kt(E,h))})).apply(this,arguments)}class os{constructor(h){var v,b,q,pe,nt,Pt;const on=(0,re.I9)((0,re.hp)(h)),Dn=null!==(v=on.apiKey)&&void 0!==v?v:null,Xn=null!==(b=on.oobCode)&&void 0!==b?b:null,jr=function Do(E){switch(E){case"recoverEmail":return"RECOVER_EMAIL";case"resetPassword":return"PASSWORD_RESET";case"signIn":return"EMAIL_SIGNIN";case"verifyEmail":return"VERIFY_EMAIL";case"verifyAndChangeEmail":return"VERIFY_AND_CHANGE_EMAIL";case"revertSecondFactorAddition":return"REVERT_SECOND_FACTOR_ADDITION";default:return null}}(null!==(q=on.mode)&&void 0!==q?q:null);Dt(Dn&&Xn&&jr,"argument-error"),this.apiKey=Dn,this.operation=jr,this.code=Xn,this.continueUrl=null!==(pe=on.continueUrl)&&void 0!==pe?pe:null,this.languageCode=null!==(nt=on.languageCode)&&void 0!==nt?nt:null,this.tenantId=null!==(Pt=on.tenantId)&&void 0!==Pt?Pt:null}static parseLink(h){const v=function xa(E){const h=(0,re.I9)((0,re.hp)(E)).link,v=h?(0,re.I9)((0,re.hp)(h)).deep_link_id:null,b=(0,re.I9)((0,re.hp)(E)).deep_link_id;return(b?(0,re.I9)((0,re.hp)(b)).link:null)||b||v||h||E}(h);try{return new os(v)}catch{return null}}}let Pr=(()=>{class E{constructor(){this.providerId=E.PROVIDER_ID}static credential(v,b){return Ln._fromEmailAndPassword(v,b)}static credentialWithLink(v,b){const q=os.parseLink(b);return Dt(q,"argument-error"),Ln._fromEmailAndCode(v,q.code,q.tenantId)}}return E.PROVIDER_ID="password",E.EMAIL_PASSWORD_SIGN_IN_METHOD="password",E.EMAIL_LINK_SIGN_IN_METHOD="emailLink",E})();class oo{constructor(h){this.providerId=h,this.defaultLanguageCode=null,this.customParameters={}}setDefaultLanguage(h){this.defaultLanguageCode=h}setCustomParameters(h){return this.customParameters=h,this}getCustomParameters(){return this.customParameters}}class Us extends oo{constructor(){super(...arguments),this.scopes=[]}addScope(h){return this.scopes.includes(h)||this.scopes.push(h),this}getScopes(){return[...this.scopes]}}function Xo(E,h){return bo.apply(this,arguments)}function bo(){return(bo=(0,X.A)(function*(E,h){return qn(E,"POST","/v1/accounts:signUp",kt(E,h))})).apply(this,arguments)}class ji{constructor(h){this.user=h.user,this.providerId=h.providerId,this._tokenResponse=h._tokenResponse,this.operationType=h.operationType}static _fromIdTokenResponse(h,v,b,q=!1){return(0,X.A)(function*(){const pe=yield ur._fromIdTokenResponse(h,b,q),nt=da(b);return new ji({user:pe,providerId:nt,_tokenResponse:b,operationType:v})})()}static _forOperation(h,v,b){return(0,X.A)(function*(){yield h._updateTokensIfNecessary(b,!0);const q=da(b);return new ji({user:h,providerId:q,_tokenResponse:b,operationType:v})})()}}function da(E){return E.providerId?E.providerId:"phoneNumber"in E?"phone":null}class P extends re.g{constructor(h,v,b,q){var pe;super(v.code,v.message),this.operationType=b,this.user=q,Object.setPrototypeOf(this,P.prototype),this.customData={appName:h.name,tenantId:null!==(pe=h.tenantId)&&void 0!==pe?pe:void 0,_serverResponse:v.customData._serverResponse,operationType:b}}static _fromErrorAndOperation(h,v,b,q){return new P(h,v,b,q)}}function ce(E,h,v,b){return("reauthenticate"===h?v._getReauthenticationResolver(E):v._getIdTokenResponse(E)).catch(pe=>{throw"auth/multi-factor-auth-required"===pe.code?P._fromErrorAndOperation(E,pe,h,b):pe})}function rr(){return(rr=(0,X.A)(function*(E,h,v=!1){const b=yield Er(E,h._linkToIdToken(E.auth,yield E.getIdToken()),v);return ji._forOperation(E,"link",b)})).apply(this,arguments)}function Qo(){return(Qo=(0,X.A)(function*(E,h,v=!1){const{auth:b}=E;if((0,Ee.xZ)(b.app))return Promise.reject(Tt(b));const q="reauthenticate";try{const pe=yield Er(E,ce(b,q,h,E),v);Dt(pe.idToken,b,"internal-error");const nt=Sr(pe.idToken);Dt(nt,b,"internal-error");const{sub:Pt}=nt;return Dt(E.uid===Pt,b,"user-mismatch"),ji._forOperation(E,q,pe)}catch(pe){throw"auth/user-not-found"===(null==pe?void 0:pe.code)&&Ct(b,"user-mismatch"),pe}})).apply(this,arguments)}function Na(E,h){return vs.apply(this,arguments)}function vs(){return(vs=(0,X.A)(function*(E,h,v=!1){if((0,Ee.xZ)(E.app))return Promise.reject(Tt(E));const b="signIn",q=yield ce(E,b,h),pe=yield ji._fromIdTokenResponse(E,b,q);return v||(yield E._updateCurrentUser(pe.user)),pe})).apply(this,arguments)}function Oa(){return(Oa=(0,X.A)(function*(E,h){return Na(Hn(E),h)})).apply(this,arguments)}function Vl(E){return vr.apply(this,arguments)}function vr(){return(vr=(0,X.A)(function*(E){const h=Hn(E);h._getPasswordPolicyInternal()&&(yield h._updatePasswordPolicy())})).apply(this,arguments)}function ws(E,h,v){return Yo.apply(this,arguments)}function Yo(){return(Yo=(0,X.A)(function*(E,h,v){if((0,Ee.xZ)(E.app))return Promise.reject(Tt(E));const b=Hn(E),nt=yield ko(b,{returnSecureToken:!0,email:h,password:v,clientType:"CLIENT_TYPE_WEB"},"signUpPassword",Xo).catch(on=>{throw"auth/password-does-not-meet-requirements"===on.code&&Vl(E),on}),Pt=yield ji._fromIdTokenResponse(b,"signIn",nt);return yield b._updateCurrentUser(Pt.user),Pt})).apply(this,arguments)}function Ss(E,h,v){return(0,Ee.xZ)(E.app)?Promise.reject(Tt(E)):function Bs(E,h){return Oa.apply(this,arguments)}((0,re.Ku)(E),Pr.credential(h,v)).catch(function(){var b=(0,X.A)(function*(q){throw"auth/password-does-not-meet-requirements"===q.code&&Vl(E),q});return function(q){return b.apply(this,arguments)}}())}function ki(E,h,v,b){return(0,re.Ku)(E).onIdTokenChanged(h,v,b)}const Gs="__sak";class jl{constructor(h,v){this.storageRetriever=h,this.type=v}_isAvailable(){try{return this.storage?(this.storage.setItem(Gs,"1"),this.storage.removeItem(Gs),Promise.resolve(!0)):Promise.resolve(!1)}catch{return Promise.resolve(!1)}}_set(h,v){return this.storage.setItem(h,JSON.stringify(v)),Promise.resolve()}_get(h){const v=this.storage.getItem(h);return Promise.resolve(v?JSON.parse(v):null)}_remove(h){return this.storage.removeItem(h),Promise.resolve()}get storage(){return this.storageRetriever()}}const $a=(()=>{class E extends jl{constructor(){super(()=>window.localStorage,"LOCAL"),this.boundEventHandler=(v,b)=>this.onStorageEvent(v,b),this.listeners={},this.localCache={},this.pollTimer=null,this.safariLocalStorageNotSynced=function Lr(){const E=(0,re.ZQ)();return or(E)||Ut(E)}()&&function Ne(){try{return!(!window||window===window.top)}catch{return!1}}(),this.fallbackToPolling=Z(),this._shouldAllowMigration=!0}forAllChangedKeys(v){for(const b of Object.keys(this.listeners)){const q=this.storage.getItem(b),pe=this.localCache[b];q!==pe&&v(b,pe,q)}}onStorageEvent(v,b=!1){if(!v.key)return void this.forAllChangedKeys((Pt,on,Dn)=>{this.notifyListeners(Pt,Dn)});const q=v.key;if(b?this.detachListener():this.stopPolling(),this.safariLocalStorageNotSynced){const Pt=this.storage.getItem(q);if(v.newValue!==Pt)null!==v.newValue?this.storage.setItem(q,v.newValue):this.storage.removeItem(q);else if(this.localCache[q]===v.newValue&&!b)return}const pe=()=>{const Pt=this.storage.getItem(q);!b&&this.localCache[q]===Pt||this.notifyListeners(q,Pt)},nt=this.storage.getItem(q);!function Y(){return(0,re.lT)()&&10===document.documentMode}()||nt===v.newValue||v.newValue===v.oldValue?pe():setTimeout(pe,10)}notifyListeners(v,b){this.localCache[v]=b;const q=this.listeners[v];if(q)for(const pe of Array.from(q))pe(b&&JSON.parse(b))}startPolling(){this.stopPolling(),this.pollTimer=setInterval(()=>{this.forAllChangedKeys((v,b,q)=>{this.onStorageEvent(new StorageEvent("storage",{key:v,oldValue:b,newValue:q}),!0)})},1e3)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}attachListener(){window.addEventListener("storage",this.boundEventHandler)}detachListener(){window.removeEventListener("storage",this.boundEventHandler)}_addListener(v,b){0===Object.keys(this.listeners).length&&(this.fallbackToPolling?this.startPolling():this.attachListener()),this.listeners[v]||(this.listeners[v]=new Set,this.localCache[v]=this.storage.getItem(v)),this.listeners[v].add(b)}_removeListener(v,b){this.listeners[v]&&(this.listeners[v].delete(b),0===this.listeners[v].size&&delete this.listeners[v]),0===Object.keys(this.listeners).length&&(this.detachListener(),this.stopPolling())}_set(v,b){var q=()=>super._set,pe=this;return(0,X.A)(function*(){yield q().call(pe,v,b),pe.localCache[v]=JSON.stringify(b)})()}_get(v){var b=()=>super._get,q=this;return(0,X.A)(function*(){const pe=yield b().call(q,v);return q.localCache[v]=JSON.stringify(pe),pe})()}_remove(v){var b=()=>super._remove,q=this;return(0,X.A)(function*(){yield b().call(q,v),delete q.localCache[v]})()}}return E.type="LOCAL",E})(),$o=(()=>{class E extends jl{constructor(){super(()=>window.sessionStorage,"SESSION")}_addListener(v,b){}_removeListener(v,b){}}return E.type="SESSION",E})();let Ks=(()=>{class E{constructor(v){this.eventTarget=v,this.handlersMap={},this.boundEventHandler=this.handleEvent.bind(this)}static _getInstance(v){const b=this.receivers.find(pe=>pe.isListeningto(v));if(b)return b;const q=new E(v);return this.receivers.push(q),q}isListeningto(v){return this.eventTarget===v}handleEvent(v){var b=this;return(0,X.A)(function*(){const q=v,{eventId:pe,eventType:nt,data:Pt}=q.data,on=b.handlersMap[nt];if(null==on||!on.size)return;q.ports[0].postMessage({status:"ack",eventId:pe,eventType:nt});const Dn=Array.from(on).map(function(){var jr=(0,X.A)(function*(Oo){return Oo(q.origin,Pt)});return function(Oo){return jr.apply(this,arguments)}}()),Xn=yield function ya(E){return Promise.all(E.map(function(){var h=(0,X.A)(function*(v){try{return{fulfilled:!0,value:yield v}}catch(b){return{fulfilled:!1,reason:b}}});return function(v){return h.apply(this,arguments)}}()))}(Dn);q.ports[0].postMessage({status:"done",eventId:pe,eventType:nt,response:Xn})})()}_subscribe(v,b){0===Object.keys(this.handlersMap).length&&this.eventTarget.addEventListener("message",this.boundEventHandler),this.handlersMap[v]||(this.handlersMap[v]=new Set),this.handlersMap[v].add(b)}_unsubscribe(v,b){this.handlersMap[v]&&b&&this.handlersMap[v].delete(b),(!b||0===this.handlersMap[v].size)&&delete this.handlersMap[v],0===Object.keys(this.handlersMap).length&&this.eventTarget.removeEventListener("message",this.boundEventHandler)}}return E.receivers=[],E})();function Vi(E="",h=10){let v="";for(let b=0;b{const Xn=Vi("",20);pe.port1.start();const jr=setTimeout(()=>{Dn(new Error("unsupported_event"))},b);Pt={messageChannel:pe,onMessage(Oo){const Zi=Oo;if(Zi.data.eventId===Xn)switch(Zi.data.status){case"ack":clearTimeout(jr),nt=setTimeout(()=>{Dn(new Error("timeout"))},3e3);break;case"done":clearTimeout(nt),on(Zi.data.response);break;default:clearTimeout(jr),clearTimeout(nt),Dn(new Error("invalid_response"))}}},q.handlers.add(Pt),pe.port1.addEventListener("message",Pt.onMessage),q.target.postMessage({eventType:h,eventId:Xn,data:v},[pe.port2])}).finally(()=>{Pt&&q.removeMessageHandler(Pt)})})()}}function Ur(){return window}function zl(){return typeof Ur().WorkerGlobalScope<"u"&&"function"==typeof Ur().importScripts}function Ia(){return(Ia=(0,X.A)(function*(){if(null==navigator||!navigator.serviceWorker)return null;try{return(yield navigator.serviceWorker.ready).active}catch{return null}})).apply(this,arguments)}const Gl="firebaseLocalStorageDb",Ea="firebaseLocalStorage",Mu="fbase_key";class Ba{constructor(h){this.request=h}toPromise(){return new Promise((h,v)=>{this.request.addEventListener("success",()=>{h(this.request.result)}),this.request.addEventListener("error",()=>{v(this.request.error)})})}}function ja(E,h){return E.transaction([Ea],h?"readwrite":"readonly").objectStore(Ea)}function mc(){const E=indexedDB.open(Gl,1);return new Promise((h,v)=>{E.addEventListener("error",()=>{v(E.error)}),E.addEventListener("upgradeneeded",()=>{const b=E.result;try{b.createObjectStore(Ea,{keyPath:Mu})}catch(q){v(q)}}),E.addEventListener("success",(0,X.A)(function*(){const b=E.result;b.objectStoreNames.contains(Ea)?h(b):(b.close(),yield function Gh(){const E=indexedDB.deleteDatabase(Gl);return new Ba(E).toPromise()}(),h(yield mc()))}))})}function qs(E,h,v){return Xs.apply(this,arguments)}function Xs(){return(Xs=(0,X.A)(function*(E,h,v){const b=ja(E,!0).put({[Mu]:h,value:v});return new Ba(b).toPromise()})).apply(this,arguments)}function Cd(){return(Cd=(0,X.A)(function*(E,h){const v=ja(E,!1).get(h),b=yield new Ba(v).toPromise();return void 0===b?null:b.value})).apply(this,arguments)}function Td(E,h){const v=ja(E,!0).delete(h);return new Ba(v).toPromise()}const Kh=(()=>{class E{constructor(){this.type="LOCAL",this._shouldAllowMigration=!0,this.listeners={},this.localCache={},this.pollTimer=null,this.pendingWrites=0,this.receiver=null,this.sender=null,this.serviceWorkerReceiverAvailable=!1,this.activeServiceWorker=null,this._workerInitializationPromise=this.initializeServiceWorkerMessaging().then(()=>{},()=>{})}_openDb(){var v=this;return(0,X.A)(function*(){return v.db||(v.db=yield mc()),v.db})()}_withRetries(v){var b=this;return(0,X.A)(function*(){let q=0;for(;;)try{const pe=yield b._openDb();return yield v(pe)}catch(pe){if(q++>3)throw pe;b.db&&(b.db.close(),b.db=void 0)}})()}initializeServiceWorkerMessaging(){var v=this;return(0,X.A)(function*(){return zl()?v.initializeReceiver():v.initializeSender()})()}initializeReceiver(){var v=this;return(0,X.A)(function*(){v.receiver=Ks._getInstance(function Hl(){return zl()?self:null}()),v.receiver._subscribe("keyChanged",function(){var b=(0,X.A)(function*(q,pe){return{keyProcessed:(yield v._poll()).includes(pe.key)}});return function(q,pe){return b.apply(this,arguments)}}()),v.receiver._subscribe("ping",function(){var b=(0,X.A)(function*(q,pe){return["keyChanged"]});return function(q,pe){return b.apply(this,arguments)}}())})()}initializeSender(){var v=this;return(0,X.A)(function*(){var b,q;if(v.activeServiceWorker=yield function As(){return Ia.apply(this,arguments)}(),!v.activeServiceWorker)return;v.sender=new Su(v.activeServiceWorker);const pe=yield v.sender._send("ping",{},800);pe&&null!==(b=pe[0])&&void 0!==b&&b.fulfilled&&null!==(q=pe[0])&&void 0!==q&&q.value.includes("keyChanged")&&(v.serviceWorkerReceiverAvailable=!0)})()}notifyServiceWorker(v){var b=this;return(0,X.A)(function*(){if(b.sender&&b.activeServiceWorker&&function us(){var E;return(null===(E=null==navigator?void 0:navigator.serviceWorker)||void 0===E?void 0:E.controller)||null}()===b.activeServiceWorker)try{yield b.sender._send("keyChanged",{key:v},b.serviceWorkerReceiverAvailable?800:50)}catch{}})()}_isAvailable(){return(0,X.A)(function*(){try{if(!indexedDB)return!1;const v=yield mc();return yield qs(v,Gs,"1"),yield Td(v,Gs),!0}catch{}return!1})()}_withPendingWrite(v){var b=this;return(0,X.A)(function*(){b.pendingWrites++;try{yield v()}finally{b.pendingWrites--}})()}_set(v,b){var q=this;return(0,X.A)(function*(){return q._withPendingWrite((0,X.A)(function*(){return yield q._withRetries(pe=>qs(pe,v,b)),q.localCache[v]=b,q.notifyServiceWorker(v)}))})()}_get(v){var b=this;return(0,X.A)(function*(){const q=yield b._withRetries(pe=>function Ad(E,h){return Cd.apply(this,arguments)}(pe,v));return b.localCache[v]=q,q})()}_remove(v){var b=this;return(0,X.A)(function*(){return b._withPendingWrite((0,X.A)(function*(){return yield b._withRetries(q=>Td(q,v)),delete b.localCache[v],b.notifyServiceWorker(v)}))})()}_poll(){var v=this;return(0,X.A)(function*(){const b=yield v._withRetries(nt=>{const Pt=ja(nt,!1).getAll();return new Ba(Pt).toPromise()});if(!b)return[];if(0!==v.pendingWrites)return[];const q=[],pe=new Set;if(0!==b.length)for(const{fbase_key:nt,value:Pt}of b)pe.add(nt),JSON.stringify(v.localCache[nt])!==JSON.stringify(Pt)&&(v.notifyListeners(nt,Pt),q.push(nt));for(const nt of Object.keys(v.localCache))v.localCache[nt]&&!pe.has(nt)&&(v.notifyListeners(nt,null),q.push(nt));return q})()}notifyListeners(v,b){this.localCache[v]=b;const q=this.listeners[v];if(q)for(const pe of Array.from(q))pe(b)}startPolling(){var v=this;this.stopPolling(),this.pollTimer=setInterval((0,X.A)(function*(){return v._poll()}),800)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}_addListener(v,b){0===Object.keys(this.listeners).length&&this.startPolling(),this.listeners[v]||(this.listeners[v]=new Set,this._get(v)),this.listeners[v].add(b)}_removeListener(v,b){this.listeners[v]&&(this.listeners[v].delete(b),0===this.listeners[v].size&&delete this.listeners[v]),0===Object.keys(this.listeners).length&&this.stopPolling()}}return E.type="LOCAL",E})();Si("rcb"),new de(3e4,6e4);class So extends Ao{constructor(h){super("custom","custom"),this.params=h}_getIdTokenResponse(h){return In(h,this._buildIdpRequest())}_linkToIdToken(h,v){return In(h,this._buildIdpRequest(v))}_getReauthenticationResolver(h){return In(h,this._buildIdpRequest())}_buildIdpRequest(h){const v={requestUri:this.params.requestUri,sessionId:this.params.sessionId,postBody:this.params.postBody,tenantId:this.params.tenantId,pendingToken:this.params.pendingToken,returnSecureToken:!0,returnIdpCredential:!0};return h&&(v.idToken=h),v}}function Dd(E){return Na(E.auth,new So(E),E.bypassAuthState)}function vc(E){const{auth:h,user:v}=E;return Dt(v,h,"internal-error"),function eo(E,h){return Qo.apply(this,arguments)}(v,new So(E),E.bypassAuthState)}function _c(E){return Cs.apply(this,arguments)}function Cs(){return(Cs=(0,X.A)(function*(E){const{auth:h,user:v}=E;return Dt(v,h,"internal-error"),function On(E,h){return rr.apply(this,arguments)}(v,new So(E),E.bypassAuthState)})).apply(this,arguments)}class yc{constructor(h,v,b,q,pe=!1){this.auth=h,this.resolver=b,this.user=q,this.bypassAuthState=pe,this.pendingPromise=null,this.eventManager=null,this.filter=Array.isArray(v)?v:[v]}execute(){var h=this;return new Promise(function(){var v=(0,X.A)(function*(b,q){h.pendingPromise={resolve:b,reject:q};try{h.eventManager=yield h.resolver._initialize(h.auth),yield h.onExecution(),h.eventManager.registerConsumer(h)}catch(pe){h.reject(pe)}});return function(b,q){return v.apply(this,arguments)}}())}onAuthEvent(h){var v=this;return(0,X.A)(function*(){const{urlResponse:b,sessionId:q,postBody:pe,tenantId:nt,error:Pt,type:on}=h;if(Pt)return void v.reject(Pt);const Dn={auth:v.auth,requestUri:b,sessionId:q,tenantId:nt||void 0,postBody:pe||void 0,user:v.user,bypassAuthState:v.bypassAuthState};try{v.resolve(yield v.getIdpTask(on)(Dn))}catch(Xn){v.reject(Xn)}})()}onError(h){this.reject(h)}getIdpTask(h){switch(h){case"signInViaPopup":case"signInViaRedirect":return Dd;case"linkViaPopup":case"linkViaRedirect":return _c;case"reauthViaPopup":case"reauthViaRedirect":return vc;default:Ct(this.auth,"internal-error")}}resolve(h){rn(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.resolve(h),this.unregisterAndCleanUp()}reject(h){rn(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.reject(h),this.unregisterAndCleanUp()}unregisterAndCleanUp(){this.eventManager&&this.eventManager.unregisterConsumer(this),this.pendingPromise=null,this.cleanUp()}}new de(2e3,1e4);const Gn="pendingRedirect",pl=new Map;class wd extends yc{constructor(h,v,b=!1){super(h,["signInViaRedirect","linkViaRedirect","reauthViaRedirect","unknown"],v,void 0,b),this.eventId=null}execute(){var h=()=>super.execute,v=this;return(0,X.A)(function*(){let b=pl.get(v.auth._key());if(!b){try{const pe=(yield function Ic(E,h){return Ec.apply(this,arguments)}(v.resolver,v.auth))?yield h().call(v):null;b=()=>Promise.resolve(pe)}catch(q){b=()=>Promise.reject(q)}pl.set(v.auth._key(),b)}return v.bypassAuthState||pl.set(v.auth._key(),()=>Promise.resolve(null)),b()})()}onAuthEvent(h){var v=()=>super.onAuthEvent,b=this;return(0,X.A)(function*(){if("signInViaRedirect"===h.type)return v().call(b,h);if("unknown"!==h.type){if(h.eventId){const q=yield b.auth._redirectUserForId(h.eventId);if(q)return b.user=q,v().call(b,h);b.resolve(null)}}else b.resolve(null)})()}onExecution(){return(0,X.A)(function*(){})()}cleanUp(){}}function Ec(){return(Ec=(0,X.A)(function*(E,h){const v=function ml(E){return Ei(Gn,E.config.apiKey,E.name)}(h),b=function qh(E){return xn(E._redirectPersistence)}(E);if(!(yield b._isAvailable()))return!1;const q="true"===(yield b._get(v));return yield b._remove(v),q})).apply(this,arguments)}function gl(E,h){pl.set(E._key(),h)}function Nu(E,h){return Rd.apply(this,arguments)}function Rd(){return(Rd=(0,X.A)(function*(E,h,v=!1){if((0,Ee.xZ)(E.app))return Promise.reject(Tt(E));const b=Hn(E),q=function cs(E,h){return h?xn(h):(Dt(E._popupRedirectResolver,E,"argument-error"),E._popupRedirectResolver)}(b,h),nt=yield new wd(b,q,v).execute();return nt&&!v&&(delete nt.user._redirectEventId,yield b._persistUserIfCurrent(nt.user),yield b._setRedirectUser(null,h)),nt})).apply(this,arguments)}class ta{constructor(h){this.auth=h,this.cachedEventUids=new Set,this.consumers=new Set,this.queuedRedirectEvent=null,this.hasHandledPotentialRedirect=!1,this.lastProcessedEventTime=Date.now()}registerConsumer(h){this.consumers.add(h),this.queuedRedirectEvent&&this.isEventForConsumer(this.queuedRedirectEvent,h)&&(this.sendToConsumer(this.queuedRedirectEvent,h),this.saveEventToCache(this.queuedRedirectEvent),this.queuedRedirectEvent=null)}unregisterConsumer(h){this.consumers.delete(h)}onEvent(h){if(this.hasEventBeenHandled(h))return!1;let v=!1;return this.consumers.forEach(b=>{this.isEventForConsumer(h,b)&&(v=!0,this.sendToConsumer(h,b),this.saveEventToCache(h))}),this.hasHandledPotentialRedirect||!function na(E){switch(E.type){case"signInViaRedirect":case"linkViaRedirect":case"reauthViaRedirect":return!0;case"unknown":return Ts(E);default:return!1}}(h)||(this.hasHandledPotentialRedirect=!0,v||(this.queuedRedirectEvent=h,v=!0)),v}sendToConsumer(h,v){var b;if(h.error&&!Ts(h)){const q=(null===(b=h.error.code)||void 0===b?void 0:b.split("auth/")[1])||"internal-error";v.onError(xt(this.auth,q))}else v.onAuthEvent(h)}isEventForConsumer(h,v){const b=null===v.eventId||!!h.eventId&&h.eventId===v.eventId;return v.filter.includes(h.type)&&b}hasEventBeenHandled(h){return Date.now()-this.lastProcessedEventTime>=6e5&&this.cachedEventUids.clear(),this.cachedEventUids.has(Cc(h))}saveEventToCache(h){this.cachedEventUids.add(Cc(h)),this.lastProcessedEventTime=Date.now()}}function Cc(E){return[E.type,E.eventId,E.sessionId,E.tenantId].filter(h=>h).join("-")}function Ts({type:E,error:h}){return"unknown"===E&&"auth/no-auth-event"===(null==h?void 0:h.code)}function Tc(){return(Tc=(0,X.A)(function*(E,h={}){return Bt(E,"GET","/v1/projects",h)})).apply(this,arguments)}const Md=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,Io=/^https?/;function Ou(){return Ou=(0,X.A)(function*(E){if(E.config.emulator)return;const{authorizedDomains:h}=yield function ng(E){return Tc.apply(this,arguments)}(E);for(const v of h)try{if(xd(v))return}catch{}Ct(E,"unauthorized-domain")}),Ou.apply(this,arguments)}function xd(E){const h=pt(),{protocol:v,hostname:b}=new URL(h);if(E.startsWith("chrome-extension://")){const nt=new URL(E);return""===nt.hostname&&""===b?"chrome-extension:"===v&&E.replace("chrome-extension://","")===h.replace("chrome-extension://",""):"chrome-extension:"===v&&nt.hostname===b}if(!Io.test(v))return!1;if(Md.test(E))return b===E;const q=E.replace(/\./g,"\\.");return new RegExp("^(.+\\."+q+"|"+q+")$","i").test(b)}const Dc=new de(3e4,6e4);function bc(){const E=Ur().___jsl;if(null!=E&&E.H)for(const h of Object.keys(E.H))if(E.H[h].r=E.H[h].r||[],E.H[h].L=E.H[h].L||[],E.H[h].r=[...E.H[h].L],E.CP)for(let v=0;v{var b,q,pe;function nt(){bc(),gapi.load("gapi.iframes",{callback:()=>{h(gapi.iframes.getContext())},ontimeout:()=>{bc(),v(xt(E,"network-request-failed"))},timeout:Dc.get()})}if(null!==(q=null===(b=Ur().gapi)||void 0===b?void 0:b.iframes)&&void 0!==q&&q.Iframe)h(gapi.iframes.getContext());else{if(null===(pe=Ur().gapi)||void 0===pe||!pe.load){const Pt=Si("iframefcb");return Ur()[Pt]=()=>{gapi.load?nt():v(xt(E,"network-request-failed"))},xr(`${function mi(){return Ai.gapiScript}()}?onload=${Pt}`).catch(on=>v(on))}nt()}}).catch(h=>{throw Da=null,h})}(E),Da}(E),v=Ur().gapi;return Dt(v,E,"internal-error"),h.open({where:document.body,url:fo(E),messageHandlersFilter:v.iframes.CROSS_ORIGIN_IFRAMES_FILTER,attributes:Fu,dontclear:!0},b=>new Promise(function(){var q=(0,X.A)(function*(pe,nt){yield b.restyle({setHideOnLeave:!1});const Pt=xt(E,"network-request-failed"),on=Ur().setTimeout(()=>{nt(Pt)},Zh.get());function Dn(){Ur().clearTimeout(on),pe(b)}b.ping(Dn).then(Dn,()=>{nt(Pt)})});return function(pe,nt){return q.apply(this,arguments)}}()))}),yi.apply(this,arguments)}const rg={location:"yes",resizable:"yes",statusbar:"yes",toolbar:"no"};class Lu{constructor(h){this.window=h,this.associatedEvent=null}close(){if(this.window)try{this.window.close()}catch{}}}const og="__/auth/handler",$u="emulator/auth/handler",Sc=encodeURIComponent("fac");function ra(E,h,v,b,q,pe){return ia.apply(this,arguments)}function ia(){return(ia=(0,X.A)(function*(E,h,v,b,q,pe){Dt(E.config.authDomain,E,"auth-domain-config-required"),Dt(E.config.apiKey,E,"invalid-api-key");const nt={apiKey:E.config.apiKey,appName:E.name,authType:v,redirectUrl:b,v:Ee.MF,eventId:q};if(h instanceof oo){h.setDefaultLanguage(E.languageCode),nt.providerId=h.providerId||"",(0,re.Im)(h.getCustomParameters())||(nt.customParameters=JSON.stringify(h.getCustomParameters()));for(const[Xn,jr]of Object.entries(pe||{}))nt[Xn]=jr}if(h instanceof Us){const Xn=h.getScopes().filter(jr=>""!==jr);Xn.length>0&&(nt.scopes=Xn.join(","))}E.tenantId&&(nt.tid=E.tenantId);const Pt=nt;for(const Xn of Object.keys(Pt))void 0===Pt[Xn]&&delete Pt[Xn];const on=yield E._getAppCheckToken(),Dn=on?`#${Sc}=${encodeURIComponent(on)}`:"";return`${function Rc({config:E}){return E.emulator?ae(E,$u):`https://${E.authDomain}/${og}`}(E)}?${(0,re.Am)(Pt).slice(1)}${Dn}`})).apply(this,arguments)}const vl="webStorageSupport",_l=class tf{constructor(){this.eventManagers={},this.iframes={},this.originValidationPromises={},this._redirectPersistence=$o,this._completeRedirectFn=Nu,this._overrideRedirectResult=gl}_openPopup(h,v,b,q){var pe=this;return(0,X.A)(function*(){var nt;rn(null===(nt=pe.eventManagers[h._key()])||void 0===nt?void 0:nt.manager,"_initialize() not called before _openPopup()");const Pt=yield ra(h,v,b,pt(),q);return function Uu(E,h,v,b=500,q=600){const pe=Math.max((window.screen.availHeight-q)/2,0).toString(),nt=Math.max((window.screen.availWidth-b)/2,0).toString();let Pt="";const on=Object.assign(Object.assign({},rg),{width:b.toString(),height:q.toString(),top:pe,left:nt}),Dn=(0,re.ZQ)().toLowerCase();v&&(Pt=Hi(Dn)?"_blank":v),Ui(Dn)&&(h=h||"http://localhost",on.scrollbars="yes");const Xn=Object.entries(on).reduce((Oo,[Zi,sa])=>`${Oo}${Zi}=${sa},`,"");if(function Kn(E=(0,re.ZQ)()){var h;return Ut(E)&&!(null===(h=window.navigator)||void 0===h||!h.standalone)}(Dn)&&"_self"!==Pt)return function Ns(E,h){const v=document.createElement("a");v.href=E,v.target=h;const b=document.createEvent("MouseEvent");b.initMouseEvent("click",!0,!0,window,1,0,0,0,0,!1,!1,!1,!1,1,null),v.dispatchEvent(b)}(h||"",Pt),new Lu(null);const jr=window.open(h||"",Pt,Xn);Dt(jr,E,"popup-blocked");try{jr.focus()}catch{}return new Lu(jr)}(h,Pt,Vi())})()}_openRedirect(h,v,b,q){var pe=this;return(0,X.A)(function*(){return yield pe._originValidation(h),function _o(E){Ur().location.href=E}(yield ra(h,v,b,pt(),q)),new Promise(()=>{})})()}_initialize(h){const v=h._key();if(this.eventManagers[v]){const{manager:q,promise:pe}=this.eventManagers[v];return q?Promise.resolve(q):(rn(pe,"If manager is not set, promise should be"),pe)}const b=this.initAndGetManager(h);return this.eventManagers[v]={promise:b},b.catch(()=>{delete this.eventManagers[v]}),b}initAndGetManager(h){var v=this;return(0,X.A)(function*(){const b=yield function ba(E){return yi.apply(this,arguments)}(h),q=new ta(h);return b.register("authEvent",pe=>(Dt(null==pe?void 0:pe.authEvent,h,"invalid-auth-event"),{status:q.onEvent(pe.authEvent)?"ACK":"ERROR"}),gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER),v.eventManagers[h._key()]={manager:q},v.iframes[h._key()]=b,q})()}_isIframeWebStorageSupported(h,v){this.iframes[h._key()].send(vl,{type:vl},q=>{var pe;const nt=null===(pe=null==q?void 0:q[0])||void 0===pe?void 0:pe[vl];void 0!==nt&&v(!!nt),Ct(h,"internal-error")},gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER)}_originValidation(h){const v=h._key();return this.originValidationPromises[v]||(this.originValidationPromises[v]=function Pd(E){return Ou.apply(this,arguments)}(h)),this.originValidationPromises[v]}get _shouldInitProactively(){return Z()||or()||Ut()}};var Fd="@firebase/auth";class wa{constructor(h){this.auth=h,this.internalListeners=new Map}getUid(){var h;return this.assertAuthConfigured(),(null===(h=this.auth.currentUser)||void 0===h?void 0:h.uid)||null}getToken(h){var v=this;return(0,X.A)(function*(){return v.assertAuthConfigured(),yield v.auth._initializationPromise,v.auth.currentUser?{accessToken:yield v.auth.currentUser.getIdToken(h)}:null})()}addAuthTokenListener(h){if(this.assertAuthConfigured(),this.internalListeners.has(h))return;const v=this.auth.onIdTokenChanged(b=>{h((null==b?void 0:b.stsTokenManager.accessToken)||null)});this.internalListeners.set(h,v),this.updateProactiveRefresh()}removeAuthTokenListener(h){this.assertAuthConfigured();const v=this.internalListeners.get(h);v&&(this.internalListeners.delete(h),v(),this.updateProactiveRefresh())}assertAuthConfigured(){Dt(this.auth._initializationPromise,"dependent-sdk-initialized-before-auth")}updateProactiveRefresh(){this.internalListeners.size>0?this.auth._startProactiveRefresh():this.auth._stopProactiveRefresh()}}const Jl=(0,re.XA)("authIdTokenMaxAge")||300;let rf=null;const sf=E=>function(){var h=(0,X.A)(function*(v){const b=v&&(yield v.getIdTokenResult()),q=b&&((new Date).getTime()-Date.parse(b.issuedAtTime))/1e3;if(q&&q>Jl)return;const pe=null==b?void 0:b.token;rf!==pe&&(rf=pe,yield fetch(E,{method:pe?"POST":"DELETE",headers:pe?{Authorization:`Bearer ${pe}`}:{}}))});return function(v){return h.apply(this,arguments)}}();function Vd(E=(0,Ee.Sx)()){const h=(0,Ee.j6)(E,"auth");if(h.isInitialized())return h.getImmediate();const v=function ps(E,h){const v=(0,Ee.j6)(E,"auth");if(v.isInitialized()){const q=v.getImmediate(),pe=v.getOptions();if((0,re.bD)(pe,null!=h?h:{}))return q;Ct(q,"already-initialized")}return v.initialize({options:h})}(E,{popupRedirectResolver:_l,persistence:[Kh,$a,$o]}),b=(0,re.XA)("authTokenSyncURL");if(b&&"boolean"==typeof isSecureContext&&isSecureContext){const pe=new URL(b,location.origin);if(location.origin===pe.origin){const nt=sf(pe.toString());(function Gr(E,h,v){(0,re.Ku)(E).beforeAuthStateChanged(h,v)})(v,nt,()=>nt(v.currentUser)),ki(v,Pt=>nt(Pt))}}const q=(0,re.Tj)("auth");return q&&function sr(E,h,v){const b=Hn(E);Dt(b._canInitEmulator,b,"emulator-config-failed"),Dt(/^https?:\/\//.test(h),b,"invalid-emulator-scheme");const q=!(null==v||!v.disableWarnings),pe=Or(h),{host:nt,port:Pt}=function ai(E){const h=Or(E),v=/(\/\/)?([^?#/]+)/.exec(E.substr(h.length));if(!v)return{host:"",port:null};const b=v[2].split("@").pop()||"",q=/^(\[[^\]]+\])(:|$)/.exec(b);if(q){const pe=q[1];return{host:pe,port:jn(b.substr(pe.length+1))}}{const[pe,nt]=b.split(":");return{host:pe,port:jn(nt)}}}(h);b.config.emulator={url:`${pe}//${nt}${null===Pt?"":`:${Pt}`}/`},b.settings.appVerificationDisabledForTesting=!0,b.emulatorConfig=Object.freeze({host:nt,port:Pt,protocol:pe.replace(":",""),options:Object.freeze({disableWarnings:q})}),q||function Fo(){function E(){const h=document.createElement("p"),v=h.style;h.innerText="Running in emulator mode. Do not use with production credentials.",v.position="fixed",v.width="100%",v.backgroundColor="#ffffff",v.border=".1em solid #000000",v.color="#b50000",v.bottom="0px",v.left="0px",v.margin="0px",v.zIndex="10000",v.textAlign="center",h.classList.add("firebase-emulator-warning"),document.body.appendChild(h)}typeof console<"u"&&"function"==typeof console.info&&console.info("WARNING: You are using the Auth Emulator, which is intended for local testing only. Do not use with production credentials."),typeof window<"u"&&typeof document<"u"&&("loading"===document.readyState?window.addEventListener("DOMContentLoaded",E):E())}()}(v,`http://${q}`),v}(function Pi(E){Ai=E})({loadJS:E=>new Promise((h,v)=>{const b=document.createElement("script");b.setAttribute("src",E),b.onload=h,b.onerror=q=>{const pe=xt("internal-error");pe.customData=q,v(pe)},b.type="text/javascript",b.charset="UTF-8",function Nc(){var E,h;return null!==(h=null===(E=document.getElementsByTagName("head"))||void 0===E?void 0:E[0])&&void 0!==h?h:document}().appendChild(b)}),gapiScript:"https://apis.google.com/js/api.js",recaptchaV2Script:"https://www.google.com/recaptcha/api.js",recaptchaEnterpriseScript:"https://www.google.com/recaptcha/enterprise.js?render="}),function El(E){(0,Ee.om)(new De.uA("auth",(h,{options:v})=>{const b=h.getProvider("app").getImmediate(),q=h.getProvider("heartbeat"),pe=h.getProvider("app-check-internal"),{apiKey:nt,authDomain:Pt}=b.options;Dt(nt&&!nt.includes(":"),"invalid-api-key",{appName:b.name});const on={apiKey:nt,authDomain:Pt,clientPlatform:E,apiHost:"identitytoolkit.googleapis.com",tokenApiHost:"securetoken.googleapis.com",apiScheme:"https",sdkClientVersion:Q(E)},Dn=new Cr(b,q,pe,on);return function si(E,h){const v=(null==h?void 0:h.persistence)||[],b=(Array.isArray(v)?v:[v]).map(xn);null!=h&&h.errorMap&&E._updateErrorMap(h.errorMap),E._initializeWithPersistence(b,null==h?void 0:h.popupRedirectResolver)}(Dn,v),Dn},"PUBLIC").setInstantiationMode("EXPLICIT").setInstanceCreatedCallback((h,v,b)=>{h.getProvider("auth-internal").initialize()})),(0,Ee.om)(new De.uA("auth-internal",h=>{const v=Hn(h.getProvider("auth").getImmediate());return new wa(v)},"PRIVATE").setInstantiationMode("EXPLICIT")),(0,Ee.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,Ee.KO)(Fd,"1.7.4","esm2017")}("Browser");var Ds=B(1985);function zu(E){return new Ds.c(function(h){return{unsubscribe:ki(E,h.next.bind(h),h.error.bind(h),h.complete.bind(h))}})}class qa{constructor(h){return h}}class Al{constructor(){return(0,g.CA)("auth")}}const eu=new d.nKC("angularfire2.auth-instances");function af(E){return(h,v)=>{const b=h.runOutsideAngular(()=>E(v));return new qa(b)}}const lf={provide:Al,deps:[[new d.Xx1,eu]]},sg={provide:qa,useFactory:function Ud(E,h){const v=(0,g.lR)("auth",E,h);return v&&new qa(v)},deps:[[new d.Xx1,eu],ge.XU]};function Cl(E,...h){return(0,Oe.KO)("angularfire",g.xv.full,"auth"),(0,d.EmA)([sg,lf,{provide:eu,useFactory:af(E),multi:!0,deps:[d.SKi,d.zZn,g.u0,ge.gL,[new d.Xx1,g.Jv],...h]}])}const Fc=(0,g.S3)(zu,!0),Hu=(0,g.S3)(ws,!0),ag=(0,g.S3)(Vd,!0),qu=(0,g.S3)(Ss,!0)},4262:(En,bt,B)=>{"use strict";B.d(bt,{_7:()=>vh,rJ:()=>g0,kd:()=>m0,H9:()=>sm,x7:()=>lm,GG:()=>r_,aU:()=>um,hV:()=>Zv,BN:()=>S0,mZ:()=>R0});var $e,Le,g=B(3586),d=B(4438),ge=B(7440),Oe=B(8737),X=B(2214),Ee=B(467),re=B(7852),Ze=B(1362),Je=B(8041),De=B(1076),ye=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Fe={};(function(){var l;function s(){this.blockSize=-1,this.blockSize=64,this.g=Array(4),this.B=Array(this.blockSize),this.o=this.h=0,this.s()}function u(ht,Ue,tt){tt||(tt=0);var gt=Array(16);if("string"==typeof Ue)for(var It=0;16>It;++It)gt[It]=Ue.charCodeAt(tt++)|Ue.charCodeAt(tt++)<<8|Ue.charCodeAt(tt++)<<16|Ue.charCodeAt(tt++)<<24;else for(It=0;16>It;++It)gt[It]=Ue[tt++]|Ue[tt++]<<8|Ue[tt++]<<16|Ue[tt++]<<24;var Nt=ht.g[3],Ye=(Ue=ht.g[0])+(Nt^(tt=ht.g[1])&((It=ht.g[2])^Nt))+gt[0]+3614090360&4294967295;Ye=(tt=(It=(Nt=(Ue=(tt=(It=(Nt=(Ue=(tt=(It=(Nt=(Ue=(tt=(It=(Nt=(Ue=(tt=(It=(Nt=(Ue=(tt=(It=(Nt=(Ue=(tt=(It=(Nt=(Ue=(tt=(It=(Nt=(Ue=(tt=(It=(Nt=(Ue=(tt=(It=(Nt=(Ue=(tt=(It=(Nt=(Ue=(tt=(It=(Nt=(Ue=(tt=(It=(Nt=(Ue=(tt=(It=(Nt=(Ue=(tt=(It=(Nt=(Ue=tt+(Ye<<7&4294967295|Ye>>>25))+((Ye=Nt+(It^Ue&(tt^It))+gt[1]+3905402710&4294967295)<<12&4294967295|Ye>>>20))+((Ye=It+(tt^Nt&(Ue^tt))+gt[2]+606105819&4294967295)<<17&4294967295|Ye>>>15))+((Ye=tt+(Ue^It&(Nt^Ue))+gt[3]+3250441966&4294967295)<<22&4294967295|Ye>>>10))+((Ye=Ue+(Nt^tt&(It^Nt))+gt[4]+4118548399&4294967295)<<7&4294967295|Ye>>>25))+((Ye=Nt+(It^Ue&(tt^It))+gt[5]+1200080426&4294967295)<<12&4294967295|Ye>>>20))+((Ye=It+(tt^Nt&(Ue^tt))+gt[6]+2821735955&4294967295)<<17&4294967295|Ye>>>15))+((Ye=tt+(Ue^It&(Nt^Ue))+gt[7]+4249261313&4294967295)<<22&4294967295|Ye>>>10))+((Ye=Ue+(Nt^tt&(It^Nt))+gt[8]+1770035416&4294967295)<<7&4294967295|Ye>>>25))+((Ye=Nt+(It^Ue&(tt^It))+gt[9]+2336552879&4294967295)<<12&4294967295|Ye>>>20))+((Ye=It+(tt^Nt&(Ue^tt))+gt[10]+4294925233&4294967295)<<17&4294967295|Ye>>>15))+((Ye=tt+(Ue^It&(Nt^Ue))+gt[11]+2304563134&4294967295)<<22&4294967295|Ye>>>10))+((Ye=Ue+(Nt^tt&(It^Nt))+gt[12]+1804603682&4294967295)<<7&4294967295|Ye>>>25))+((Ye=Nt+(It^Ue&(tt^It))+gt[13]+4254626195&4294967295)<<12&4294967295|Ye>>>20))+((Ye=It+(tt^Nt&(Ue^tt))+gt[14]+2792965006&4294967295)<<17&4294967295|Ye>>>15))+((Ye=tt+(Ue^It&(Nt^Ue))+gt[15]+1236535329&4294967295)<<22&4294967295|Ye>>>10))+((Ye=Ue+(It^Nt&(tt^It))+gt[1]+4129170786&4294967295)<<5&4294967295|Ye>>>27))+((Ye=Nt+(tt^It&(Ue^tt))+gt[6]+3225465664&4294967295)<<9&4294967295|Ye>>>23))+((Ye=It+(Ue^tt&(Nt^Ue))+gt[11]+643717713&4294967295)<<14&4294967295|Ye>>>18))+((Ye=tt+(Nt^Ue&(It^Nt))+gt[0]+3921069994&4294967295)<<20&4294967295|Ye>>>12))+((Ye=Ue+(It^Nt&(tt^It))+gt[5]+3593408605&4294967295)<<5&4294967295|Ye>>>27))+((Ye=Nt+(tt^It&(Ue^tt))+gt[10]+38016083&4294967295)<<9&4294967295|Ye>>>23))+((Ye=It+(Ue^tt&(Nt^Ue))+gt[15]+3634488961&4294967295)<<14&4294967295|Ye>>>18))+((Ye=tt+(Nt^Ue&(It^Nt))+gt[4]+3889429448&4294967295)<<20&4294967295|Ye>>>12))+((Ye=Ue+(It^Nt&(tt^It))+gt[9]+568446438&4294967295)<<5&4294967295|Ye>>>27))+((Ye=Nt+(tt^It&(Ue^tt))+gt[14]+3275163606&4294967295)<<9&4294967295|Ye>>>23))+((Ye=It+(Ue^tt&(Nt^Ue))+gt[3]+4107603335&4294967295)<<14&4294967295|Ye>>>18))+((Ye=tt+(Nt^Ue&(It^Nt))+gt[8]+1163531501&4294967295)<<20&4294967295|Ye>>>12))+((Ye=Ue+(It^Nt&(tt^It))+gt[13]+2850285829&4294967295)<<5&4294967295|Ye>>>27))+((Ye=Nt+(tt^It&(Ue^tt))+gt[2]+4243563512&4294967295)<<9&4294967295|Ye>>>23))+((Ye=It+(Ue^tt&(Nt^Ue))+gt[7]+1735328473&4294967295)<<14&4294967295|Ye>>>18))+((Ye=tt+(Nt^Ue&(It^Nt))+gt[12]+2368359562&4294967295)<<20&4294967295|Ye>>>12))+((Ye=Ue+(tt^It^Nt)+gt[5]+4294588738&4294967295)<<4&4294967295|Ye>>>28))+((Ye=Nt+(Ue^tt^It)+gt[8]+2272392833&4294967295)<<11&4294967295|Ye>>>21))+((Ye=It+(Nt^Ue^tt)+gt[11]+1839030562&4294967295)<<16&4294967295|Ye>>>16))+((Ye=tt+(It^Nt^Ue)+gt[14]+4259657740&4294967295)<<23&4294967295|Ye>>>9))+((Ye=Ue+(tt^It^Nt)+gt[1]+2763975236&4294967295)<<4&4294967295|Ye>>>28))+((Ye=Nt+(Ue^tt^It)+gt[4]+1272893353&4294967295)<<11&4294967295|Ye>>>21))+((Ye=It+(Nt^Ue^tt)+gt[7]+4139469664&4294967295)<<16&4294967295|Ye>>>16))+((Ye=tt+(It^Nt^Ue)+gt[10]+3200236656&4294967295)<<23&4294967295|Ye>>>9))+((Ye=Ue+(tt^It^Nt)+gt[13]+681279174&4294967295)<<4&4294967295|Ye>>>28))+((Ye=Nt+(Ue^tt^It)+gt[0]+3936430074&4294967295)<<11&4294967295|Ye>>>21))+((Ye=It+(Nt^Ue^tt)+gt[3]+3572445317&4294967295)<<16&4294967295|Ye>>>16))+((Ye=tt+(It^Nt^Ue)+gt[6]+76029189&4294967295)<<23&4294967295|Ye>>>9))+((Ye=Ue+(tt^It^Nt)+gt[9]+3654602809&4294967295)<<4&4294967295|Ye>>>28))+((Ye=Nt+(Ue^tt^It)+gt[12]+3873151461&4294967295)<<11&4294967295|Ye>>>21))+((Ye=It+(Nt^Ue^tt)+gt[15]+530742520&4294967295)<<16&4294967295|Ye>>>16))+((Ye=tt+(It^Nt^Ue)+gt[2]+3299628645&4294967295)<<23&4294967295|Ye>>>9))+((Ye=Ue+(It^(tt|~Nt))+gt[0]+4096336452&4294967295)<<6&4294967295|Ye>>>26))+((Ye=Nt+(tt^(Ue|~It))+gt[7]+1126891415&4294967295)<<10&4294967295|Ye>>>22))+((Ye=It+(Ue^(Nt|~tt))+gt[14]+2878612391&4294967295)<<15&4294967295|Ye>>>17))+((Ye=tt+(Nt^(It|~Ue))+gt[5]+4237533241&4294967295)<<21&4294967295|Ye>>>11))+((Ye=Ue+(It^(tt|~Nt))+gt[12]+1700485571&4294967295)<<6&4294967295|Ye>>>26))+((Ye=Nt+(tt^(Ue|~It))+gt[3]+2399980690&4294967295)<<10&4294967295|Ye>>>22))+((Ye=It+(Ue^(Nt|~tt))+gt[10]+4293915773&4294967295)<<15&4294967295|Ye>>>17))+((Ye=tt+(Nt^(It|~Ue))+gt[1]+2240044497&4294967295)<<21&4294967295|Ye>>>11))+((Ye=Ue+(It^(tt|~Nt))+gt[8]+1873313359&4294967295)<<6&4294967295|Ye>>>26))+((Ye=Nt+(tt^(Ue|~It))+gt[15]+4264355552&4294967295)<<10&4294967295|Ye>>>22))+((Ye=It+(Ue^(Nt|~tt))+gt[6]+2734768916&4294967295)<<15&4294967295|Ye>>>17))+((Ye=tt+(Nt^(It|~Ue))+gt[13]+1309151649&4294967295)<<21&4294967295|Ye>>>11))+((Nt=(Ue=tt+((Ye=Ue+(It^(tt|~Nt))+gt[4]+4149444226&4294967295)<<6&4294967295|Ye>>>26))+((Ye=Nt+(tt^(Ue|~It))+gt[11]+3174756917&4294967295)<<10&4294967295|Ye>>>22))^((It=Nt+((Ye=It+(Ue^(Nt|~tt))+gt[2]+718787259&4294967295)<<15&4294967295|Ye>>>17))|~Ue))+gt[9]+3951481745&4294967295,ht.g[0]=ht.g[0]+Ue&4294967295,ht.g[1]=ht.g[1]+(It+(Ye<<21&4294967295|Ye>>>11))&4294967295,ht.g[2]=ht.g[2]+It&4294967295,ht.g[3]=ht.g[3]+Nt&4294967295}function _(ht,Ue){this.h=Ue;for(var tt=[],gt=!0,It=ht.length-1;0<=It;It--){var Nt=0|ht[It];gt&&Nt==Ue||(tt[It]=Nt,gt=!1)}this.g=tt}(function n(ht,Ue){function tt(){}tt.prototype=Ue.prototype,ht.D=Ue.prototype,ht.prototype=new tt,ht.prototype.constructor=ht,ht.C=function(gt,It,Nt){for(var Ye=Array(arguments.length-2),Pl=2;Plthis.h?this.blockSize:2*this.blockSize)-this.h);ht[0]=128;for(var Ue=1;UeUe;++Ue)for(var gt=0;32>gt;gt+=8)ht[tt++]=this.g[Ue]>>>gt&255;return ht};var w={};function N(ht){return-128<=ht&&128>ht?function f(ht,Ue){var tt=w;return Object.prototype.hasOwnProperty.call(tt,ht)?tt[ht]:tt[ht]=Ue(ht)}(ht,function(Ue){return new _([0|Ue],0>Ue?-1:0)}):new _([0|ht],0>ht?-1:0)}function z(ht){if(isNaN(ht)||!isFinite(ht))return we;if(0>ht)return ln(z(-ht));for(var Ue=[],tt=1,gt=0;ht>=tt;gt++)Ue[gt]=ht/tt|0,tt*=4294967296;return new _(Ue,0)}var we=N(0),We=N(1),Rt=N(16777216);function tn(ht){if(0!=ht.h)return!1;for(var Ue=0;Ue>>16,ht[Ue]&=65535,Ue++}function Qn(ht,Ue){this.g=ht,this.h=Ue}function Rr(ht,Ue){if(tn(Ue))throw Error("division by zero");if(tn(ht))return new Qn(we,we);if(pn(ht))return Ue=Rr(ln(ht),Ue),new Qn(ln(Ue.g),ln(Ue.h));if(pn(Ue))return Ue=Rr(ht,ln(Ue)),new Qn(ln(Ue.g),Ue.h);if(30=gt.l(ht);)tt=Ii(tt),gt=Ii(gt);var It=zr(tt,1),Nt=zr(gt,1);for(gt=zr(gt,2),tt=zr(tt,2);!tn(gt);){var Ye=Nt.add(gt);0>=Ye.l(ht)&&(It=It.add(tt),Nt=Ye),gt=zr(gt,1),tt=zr(tt,1)}return Ue=zn(ht,It.j(Ue)),new Qn(It,Ue)}for(It=we;0<=ht.l(Ue);){for(tt=Math.max(1,Math.floor(ht.m()/Ue.m())),gt=48>=(gt=Math.ceil(Math.log(tt)/Math.LN2))?1:Math.pow(2,gt-48),Ye=(Nt=z(tt)).j(Ue);pn(Ye)||0>>31;return new _(tt,ht.h)}function zr(ht,Ue){var tt=Ue>>5;Ue%=32;for(var gt=ht.g.length-tt,It=[],Nt=0;Nt>>Ue|ht.i(Nt+tt+1)<<32-Ue:ht.i(Nt+tt);return new _(It,ht.h)}(l=_.prototype).m=function(){if(pn(this))return-ln(this).m();for(var ht=0,Ue=1,tt=0;tt(ht=ht||10)||36>>0).toString(ht);if(tn(tt=It))return Nt+gt;for(;6>Nt.length;)Nt="0"+Nt;gt=Nt+gt}},l.i=function(ht){return 0>ht?0:ht>>16)+(this.i(It)>>>16)+(ht.i(It)>>>16);gt=Ye>>>16,tt[It]=(Ye&=65535)<<16|(Nt&=65535)}return new _(tt,-2147483648&tt[tt.length-1]?-1:0)},l.j=function(ht){if(tn(this)||tn(ht))return we;if(pn(this))return pn(ht)?ln(this).j(ln(ht)):ln(ln(this).j(ht));if(pn(ht))return ln(this.j(ln(ht)));if(0>this.l(Rt)&&0>ht.l(Rt))return z(this.m()*ht.m());for(var Ue=this.g.length+ht.g.length,tt=[],gt=0;gt<2*Ue;gt++)tt[gt]=0;for(gt=0;gt>>16,Ye=65535&this.i(gt),Pl=ht.i(It)>>>16,ac=65535&ht.i(It);tt[2*gt+2*It]+=Ye*ac,lr(tt,2*gt+2*It),tt[2*gt+2*It+1]+=Nt*ac,lr(tt,2*gt+2*It+1),tt[2*gt+2*It+1]+=Ye*Pl,lr(tt,2*gt+2*It+1),tt[2*gt+2*It+2]+=Nt*Pl,lr(tt,2*gt+2*It+2)}for(gt=0;gt(Ue=Ue||10)||36Nt?(Nt=z(Math.pow(Ue,Nt)),gt=gt.j(Nt).add(z(Ye))):gt=(gt=gt.j(tt)).add(z(Ye))}return gt},$e=Fe.Integer=_}).apply(typeof ye<"u"?ye:typeof self<"u"?self:typeof window<"u"?window:{});var ut,st,Mt,mt,vt,Me,je,Ke,Ct,Qe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},ft={};(function(){var l,n="function"==typeof Object.defineProperties?Object.defineProperty:function(m,k,G){return m==Array.prototype||m==Object.prototype||(m[k]=G.value),m},s=function i(m){m=["object"==typeof globalThis&&globalThis,m,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof Qe&&Qe];for(var k=0;k{throw m},0)}function Ye(){var m=hm;let k=null;return m.g&&(k=m.g,m.g=m.g.next,m.g||(m.h=null),k.next=null),k}var ac=new class zn{constructor(k,G){this.i=k,this.j=G,this.h=0,this.g=null}get(){let k;return 0new M0,m=>m.reset());class M0{constructor(){this.next=this.g=this.h=null}set(k,G){this.h=k,this.g=G,this.next=null}reset(){this.next=this.g=this.h=null}}let sd,yh=!1,hm=new class Pl{constructor(){this.h=this.g=null}add(k,G){const Ie=ac.get();Ie.set(k,G),this.h?this.h.next=Ie:this.g=Ie,this.h=Ie}},fm=()=>{const m=w.Promise.resolve(void 0);sd=()=>{m.then(P0)}};var P0=()=>{for(var m;m=Ye();){try{m.h.call(m.g)}catch(G){Nt(G)}var k=ac;k.j(m),100>k.h&&(k.h++,m.next=k.g,k.g=m)}yh=!1};function gu(){this.s=this.s,this.C=this.C}function mo(m,k){this.type=m,this.g=this.target=k,this.defaultPrevented=!1}gu.prototype.s=!1,gu.prototype.ma=function(){this.s||(this.s=!0,this.N())},gu.prototype.N=function(){if(this.C)for(;this.C.length;)this.C.shift()()},mo.prototype.h=function(){this.defaultPrevented=!0};var pm=function(){if(!w.addEventListener||!Object.defineProperty)return!1;var m=!1,k=Object.defineProperty({},"passive",{get:function(){m=!0}});try{const G=()=>{};w.addEventListener("test",G,k),w.removeEventListener("test",G,k)}catch{}return m}();function Ih(m,k){if(mo.call(this,m?m.type:""),this.relatedTarget=this.g=this.target=null,this.button=this.screenY=this.screenX=this.clientY=this.clientX=0,this.key="",this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1,this.state=null,this.pointerId=0,this.pointerType="",this.i=null,m){var G=this.type=m.type,Ie=m.changedTouches&&m.changedTouches.length?m.changedTouches[0]:null;if(this.target=m.target||m.srcElement,this.g=k,k=m.relatedTarget){if(Ii){e:{try{Rr(k.nodeName);var wt=!0;break e}catch{}wt=!1}wt||(k=null)}}else"mouseover"==G?k=m.fromElement:"mouseout"==G&&(k=m.toElement);this.relatedTarget=k,Ie?(this.clientX=void 0!==Ie.clientX?Ie.clientX:Ie.pageX,this.clientY=void 0!==Ie.clientY?Ie.clientY:Ie.pageY,this.screenX=Ie.screenX||0,this.screenY=Ie.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)}}tn(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 ZE(m,k,G,Ie,wt){this.listener=m,this.proxy=null,this.src=k,this.type=G,this.capture=!!Ie,this.ha=wt,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,k){var G=k.type;if(G in m.g){var jt,Ie=m.g[G],wt=Array.prototype.indexOf.call(Ie,k,void 0);(jt=0<=wt)&&Array.prototype.splice.call(Ie,wt,1),jt&&(ap(k),0==m.g[G].length&&(delete m.g[G],m.h--))}}function gm(m,k,G,Ie){for(var wt=0;wt>>0);function Em(m){return"function"==typeof m?m:(m[Ah]||(m[Ah]=function(k){return m.handleEvent(k)}),m[Ah])}function ns(){gu.call(this),this.i=new lc(this),this.M=this,this.F=null}function jo(m,k){var G,Ie=m.F;if(Ie)for(G=[];Ie;Ie=Ie.F)G.push(Ie);if(m=m.M,Ie=k.type||k,"string"==typeof k)k=new mo(k,m);else if(k instanceof mo)k.target=k.target||m;else{var wt=k;gt(k=new mo(Ie,m),wt)}if(wt=!0,G)for(var jt=G.length-1;0<=jt;jt--){var Mn=k.g=G[jt];wt=Ch(Mn,Ie,!0,k)&&wt}if(wt=Ch(Mn=k.g=m,Ie,!0,k)&&wt,wt=Ch(Mn,Ie,!1,k)&&wt,G)for(jt=0;jt{m.g=null,m.i&&(m.i=!1,Cm(m))},m.l);const k=m.h;m.h=null,m.m.apply(null,k)}tn(ns,gu),ns.prototype[Eh]=!0,ns.prototype.removeEventListener=function(m,k,G,Ie){_m(this,m,k,G,Ie)},ns.prototype.N=function(){if(ns.aa.N.call(this),this.i){var k,m=this.i;for(k in m.g){for(var G=m.g[k],Ie=0;IeIe.length)){var wt=Ie[1];if(Array.isArray(wt)&&!(1>wt.length)){var jt=wt[0];if("noop"!=jt&&"stop"!=jt&&"close"!=jt)for(var Mn=1;Mnk.length?Sm:(k=k.slice(Ie,Ie+G),m.C=Ie+G,k))}function wh(m){m.S=Date.now()+m.I,mp(m,m.I)}function mp(m,k){if(null!=m.B)throw Error("WatchDog timer not null");m.B=hp(We(m.ba,m),k)}function vp(m){m.B&&(w.clearTimeout(m.B),m.B=null)}function Sh(m){0==m.j.G||m.J||W0(m.j,m)}function Iu(m){vp(m);var k=m.M;k&&"function"==typeof k.ma&&k.ma(),m.M=null,Tm(m.U),m.g&&(k=m.g,m.g=null,k.abort(),k.ma())}function Rh(m,k){try{var G=m.j;if(0!=G.G&&(G.g==m||Mm(G.h,m)))if(!m.K&&Mm(G.h,m)&&3==G.G){try{var Ie=G.Da.g.parse(k)}catch{Ie=null}if(Array.isArray(Ie)&&3==Ie.length){var wt=Ie;if(0==wt[0]){e:if(!G.u){if(G.g){if(!(G.g.F+3e3wt[2]&&G.F&&0==G.v&&!G.C&&(G.C=hp(We(G.Za,G),6e3));if(1>=E_(G.h)&&G.ca){try{G.ca()}catch{}G.ca=void 0}}else Au(G,11)}else if((m.K||G.g==m)&&Vh(G),!lr(k))for(wt=G.Da.g.parse(k),k=0;khs)&&(3!=hs||this.g&&(this.h.h||this.g.oa()||S_(this.g)))){this.J||4!=hs||7==k||cc(),vp(this);var G=this.g.Z();this.X=G;t:if(v_(this)){var Ie=S_(this.g);m="";var wt=Ie.length,jt=4==Eu(this.g);if(!this.h.i){if(typeof TextDecoder>"u"){Iu(this),Sh(this);var Mn="";break t}this.h.i=new w.TextDecoder}for(k=0;k=m.j}function E_(m){return m.h?1:m.g?m.g.size:0}function Mm(m,k){return m.h?m.h==k:!!m.g&&m.g.has(k)}function Mh(m,k){m.g?m.g.add(k):m.h=k}function _p(m,k){m.h&&m.h==k?m.h=null:m.g&&m.g.has(k)&&m.g.delete(k)}function Pm(m){if(null!=m.h)return m.i.concat(m.h.D);if(null!=m.g&&0!==m.g.size){let k=m.i;for(const G of m.g.values())k=k.concat(G.D);return k}return pn(m.i)}function A_(m,k){if(m.forEach&&"function"==typeof m.forEach)m.forEach(k,void 0);else if(N(m)||"string"==typeof m)Array.prototype.forEach.call(m,k,void 0);else for(var G=function Nm(m){if(m.na&&"function"==typeof m.na)return m.na();if(!m.V||"function"!=typeof m.V){if(typeof Map<"u"&&m instanceof Map)return Array.from(m.keys());if(!(typeof Set<"u"&&m instanceof Set)){if(N(m)||"string"==typeof m){var k=[];m=m.length;for(var G=0;Gk)throw Error("Bad port number "+k);m.s=k}else m.s=null}function Om(m,k,G){k instanceof Nh?(m.i=k,function b_(m,k){k&&!m.j&&(xl(m),m.i=null,m.g.forEach(function(G,Ie){var wt=Ie.toLowerCase();Ie!=wt&&(km(this,Ie),Fm(this,wt,G))},m)),m.j=k}(m.i,m.h)):(G||(k=gd(k,JE)),m.i=new Nh(k,m.h))}function Xi(m,k,G){m.i.set(k,G)}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,k){return m?k?decodeURI(m.replace(/%25/g,"%2525")):decodeURIComponent(m):""}function gd(m,k,G){return"string"==typeof m?(m=encodeURI(m).replace(k,V0),G&&(m=m.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),m):null}function V0(m){return"%"+((m=m.charCodeAt(0))>>4&15).toString(16)+(15&m).toString(16)}dc.prototype.toString=function(){var m=[],k=this.j;k&&m.push(gd(k,yp,!0),":");var G=this.g;return(G||"file"==k)&&(m.push("//"),(k=this.o)&&m.push(gd(k,yp,!0),"@"),m.push(encodeURIComponent(String(G)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),null!=(G=this.s)&&m.push(":",String(G))),(G=this.l)&&(this.g&&"/"!=G.charAt(0)&&m.push("/"),m.push(gd(G,"/"==G.charAt(0)?D_:T_,!0))),(G=this.i.toString())&&m.push("?",G),(G=this.m)&&m.push("#",gd(G,eA)),m.join("")};var yp=/[#\/\?@]/g,T_=/[#\?:]/g,D_=/[#\?]/g,JE=/[#\?@]/g,eA=/#/g;function Nh(m,k){this.h=this.g=null,this.i=m||null,this.j=!!k}function xl(m){m.g||(m.g=new Map,m.h=0,m.i&&function F0(m,k){if(m){m=m.split("&");for(var G=0;G{}),1<=this.readyState&&this.g&&4!=this.readyState&&(this.g=!1,Ap(this)),this.readyState=0},l.Sa=function(m){if(this.g&&(this.l=m,this.h||(this.status=this.l.status,this.statusText=this.l.statusText,this.h=m.headers,this.readyState=2,Cp(this)),this.g&&(this.readyState=3,Cp(this),this.g)))if("arraybuffer"===this.responseType)m.arrayBuffer().then(this.Qa.bind(this),this.ga.bind(this));else if(typeof w.ReadableStream<"u"&&"body"in m){if(this.j=m.body.getReader(),this.o){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');this.response=[]}else this.response=this.responseText="",this.v=new TextDecoder;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 k=m.value?m.value:new Uint8Array(0);(k=this.v.decode(k,{stream:!m.done}))&&(this.response=this.responseText+=k)}m.done?Ap(this):Cp(this),3==this.readyState&&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,k){this.u.append(m,k)},l.getResponseHeader=function(m){return this.h&&this.h.get(m.toLowerCase())||""},l.getAllResponseHeaders=function(){if(!this.h)return"";const m=[],k=this.h.entries();for(var G=k.next();!G.done;)m.push((G=G.value)[0]+": "+G[1]),G=k.next();return m.join("\r\n")},Object.defineProperty(Vm.prototype,"withCredentials",{get:function(){return"include"===this.m},set:function(m){this.m=m?"include":"same-origin"}}),tn(vo,ns);var rA=/^https?$/i,iA=["POST","PUT"];function $0(m,k){m.h=!1,m.g&&(m.j=!0,m.g.abort(),m.j=!1),m.l=k,m.m=5,B0(m),Um(m)}function B0(m){m.A||(m.A=!0,jo(m,"complete"),jo(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(jo(m,"readystatechange"),4==Eu(m)){m.h=!1;try{const Mn=m.Z();e:switch(Mn){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var k=!0;break e;default:k=!1}var G;if(!(G=k)){var Ie;if(Ie=0===Mn){var wt=String(m.D).match(C_)[1]||null;!wt&&w.self&&w.self.location&&(wt=w.self.location.protocol.slice(0,-1)),Ie=!rA.test(wt?wt.toLowerCase():"")}G=Ie}if(G)jo(m,"complete"),jo(m,"success");else{m.m=6;try{var jt=2{}:null;m.g=null,m.v=null,k||jo(m,"ready");try{G.onreadystatechange=Ie}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,k,G){return G&&G.internalChannelParams&&G.internalChannelParams[m]||k}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&&0hi)jt=Math.max(0,wt[io].g-100),Li=!1;else try{nA(rs,Mn,"req"+hi+"_")}catch{Ie&&Ie(rs)}}if(Li){Ie=Mn.join("&");break e}}}return m=m.i.splice(0,G),k.D=m,Ie}function Bm(m){if(!m.g&&!m.u){m.Y=1;var k=m.Fa;sd||fm(),yh||(sd(),yh=!0),hm.add(k,m),m.v=0}}function jm(m){return!(m.g||m.u||3<=m.v||(m.Y++,m.u=hp(We(m.Fa,m),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 k=nl(m.qa);Xi(k,"RID","rpc"),Xi(k,"SID",m.K),Xi(k,"AID",m.T),Xi(k,"CI",m.F?"0":"1"),!m.F&&m.ja&&Xi(k,"TO",m.ja),Xi(k,"TYPE","xmlhttp"),kh(m,k),m.m&&m.o&&Tp(k,m.m,m.o),m.L&&(m.g.I=m.L);var G=m.g;m=m.ia,G.L=1,G.v=Ph(nl(k)),G.m=null,G.P=!0,m_(G,m)}function Vh(m){null!=m.C&&(w.clearTimeout(m.C),m.C=null)}function W0(m,k){var G=null;if(m.g==k){Vh(m),Dp(m),m.g=null;var Ie=2}else{if(!Mm(m.h,k))return;G=k.D,_p(m.h,k),Ie=1}if(0!=m.G)if(k.o)if(1==Ie){G=k.m?k.m.length:0,k=Date.now()-k.F;var wt=m.B;jo(Ie=dp(),new cd(Ie,G)),$m(m)}else Bm(m);else if(3==(wt=k.s)||0==wt&&0=m.h.j-(m.s?1:0)||(m.s?(m.i=k.D.concat(m.i),0):1==m.G||2==m.G||m.B>=(m.Va?0:m.Wa)||(m.s=hp(We(m.Ga,m,k),N_(m,m.B)),m.B++,0)))}(m,k)||2==Ie&&jm(m)))switch(G&&0{Ie.abort(),fc(0,0,!1,k)},1e4);fetch(m,{signal:Ie.signal}).then(jt=>{clearTimeout(wt),fc(0,0,!!jt.ok,k)}).catch(()=>{clearTimeout(wt),fc(0,0,!1,k)})}(Ie.toString(),G)}else uo(2);m.G=0,m.l&&m.l.sa(k),bp(m),P_(m)}function bp(m){if(m.G=0,m.ka=[],m.l){const k=Pm(m.h);(0!=k.length||0!=m.i.length)&&(ln(m.ka,k),ln(m.ka,m.i),m.h.i.length=0,pn(m.i),m.i.length=0),m.l.ra()}}function O_(m,k,G){var Ie=G instanceof dc?nl(G):new dc(G);if(""!=Ie.g)k&&(Ie.g=k+"."+Ie.g),pd(Ie,Ie.s);else{var wt=w.location;Ie=wt.protocol,k=k?k+"."+wt.hostname:wt.hostname,wt=+wt.port;var jt=new dc(null);Ie&&fd(jt,Ie),k&&(jt.g=k),wt&&pd(jt,wt),G&&(jt.l=G),Ie=jt}return k=m.ya,(G=m.D)&&k&&Xi(Ie,G,k),Xi(Ie,"VER",m.la),kh(m,Ie),Ie}function k_(m,k,G){if(k&&!m.J)throw Error("Can't create secondary domain capable XhrIo object.");return(k=new vo(m.Ca&&!m.pa?new Ep({eb:G}):m.pa)).Ha(m.J),k}function Lh(){}function wp(){}function Fs(m,k){ns.call(this),this.g=new R_(k),this.l=m,this.h=k&&k.messageUrlParams||null,m=k&&k.messageHeaders||null,k&&k.clientProtocolHeaderRequired&&(m?m["X-Client-Protocol"]="webchannel":m={"X-Client-Protocol":"webchannel"}),this.g.o=m,m=k&&k.initMessageHeaders||null,k&&k.messageContentType&&(m?m["X-WebChannel-Content-Type"]=k.messageContentType:m={"X-WebChannel-Content-Type":k.messageContentType}),k&&k.va&&(m?m["X-WebChannel-Client-Profile"]=k.va:m={"X-WebChannel-Client-Profile":k.va}),this.g.S=m,(m=k&&k.Sb)&&!lr(m)&&(this.g.m=m),this.v=k&&k.supportsCrossDomainXhr||!1,this.u=k&&k.sendRawJson||!1,(k=k&&k.httpSessionIdParam)&&!lr(k)&&(this.g.D=k,null!==(m=this.h)&&k in m&&k in(m=this.h)&&delete m[k]),this.j=new vd(this)}function F_(m){tl.call(this),m.__headers__&&(this.headers=m.__headers__,this.statusCode=m.__status__,delete m.__headers__,delete m.__status__);var k=m.__sm__;if(k){e:{for(const G in k){m=G;break e}m=void 0}(this.i=m)&&(m=this.i,k=null!==k&&m in k?k[m]:void 0),this.data=k}else this.data=m}function V_(){ld.call(this),this.status=1}function vd(m){this.g=m}(l=vo.prototype).Ha=function(m){this.J=m},l.ea=function(m,k,G,Ie){if(this.g)throw Error("[goog.net.XhrIo] Object is active with another request="+this.D+"; newUri="+m);k=k?k.toUpperCase():"GET",this.D=m,this.l="",this.m=0,this.A=!1,this.h=!0,this.g=this.o?this.o.g():wm.g(),this.v=function Dm(m){return m.h||(m.h=m.i())}(this.o?this.o:wm),this.g.onreadystatechange=We(this.Ea,this);try{this.B=!0,this.g.open(k,String(m),!0),this.B=!1}catch(jt){return void $0(this,jt)}if(m=G||"",G=new Map(this.headers),Ie)if(Object.getPrototypeOf(Ie)===Object.prototype)for(var wt in Ie)G.set(wt,Ie[wt]);else{if("function"!=typeof Ie.keys||"function"!=typeof Ie.get)throw Error("Unknown input type for opt_headers: "+String(Ie));for(const jt of Ie.keys())G.set(jt,Ie.get(jt))}Ie=Array.from(G.keys()).find(jt=>"content-type"==jt.toLowerCase()),wt=w.FormData&&m instanceof w.FormData,!(0<=Array.prototype.indexOf.call(iA,k,void 0))||Ie||wt||G.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");for(const[jt,Mn]of G)this.g.setRequestHeader(jt,Mn);this.H&&(this.g.responseType=this.H),"withCredentials"in this.g&&this.g.withCredentials!==this.J&&(this.g.withCredentials=this.J);try{z0(this),this.u=!0,this.g.send(m),this.u=!1}catch(jt){$0(this,jt)}},l.abort=function(m){this.g&&this.h&&(this.h=!1,this.j=!0,this.g.abort(),this.j=!1,this.m=m||7,jo(this,"complete"),jo(this,"abort"),Um(this))},l.N=function(){this.g&&(this.h&&(this.h=!1,this.j=!0,this.g.abort(),this.j=!1),Um(this,!0)),vo.aa.N.call(this)},l.Ea=function(){this.s||(this.B||this.u||this.j?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(We(this.ab,this),m)}},l.ab=function(){this.A&&(this.A=null,this.j.info("BP detection timeout reached."),this.j.info("Buffering proxy detected and switch to long-polling!"),this.F=!1,this.M=!0,uo(10),Oh(this),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=Lh.prototype).ua=function(){},l.ta=function(){},l.sa=function(){},l.ra=function(){},l.isActive=function(){return!0},l.Na=function(){},wp.prototype.g=function(m,k){return new Fs(m,k)},tn(Fs,ns),Fs.prototype.m=function(){this.g.l=this.j,this.v&&(this.g.J=!0),this.g.connect(this.l,this.h||void 0)},Fs.prototype.close=function(){M_(this.g)},Fs.prototype.o=function(m){var k=this.g;if("string"==typeof m){var G={};G.__data__=m,m=G}else this.u&&((G={}).__data__=Dh(m),m=G);k.i.push(new y_(k.Ya++,m)),3==k.G&&$m(k)},Fs.prototype.N=function(){this.g.l=null,delete this.j,M_(this.g),delete this.g,Fs.aa.N.call(this)},tn(F_,tl),tn(V_,ld),tn(vd,Lh),vd.prototype.ua=function(){jo(this.g,"a")},vd.prototype.ta=function(m){jo(this.g,new F_(m))},vd.prototype.sa=function(m){jo(this.g,new V_)},vd.prototype.ra=function(){jo(this.g,"b")},wp.prototype.createWebChannel=wp.prototype.g,Fs.prototype.send=Fs.prototype.o,Fs.prototype.open=Fs.prototype.m,Fs.prototype.close=Fs.prototype.close,Ct=ft.createWebChannelTransport=function(){return new wp},Ke=ft.getStatEventTarget=function(){return dp()},je=ft.Event=vu,Me=ft.Stat={mb:0,pb:1,qb:2,Jb:3,Ob:4,Lb:5,Mb:6,Kb:7,Ib:8,Nb:9,PROXY:10,NOPROXY:11,Gb:12,Cb:13,Db:14,Bb:15,Eb:16,Fb:17,ib:18,hb:19,jb:20},pp.NO_ERROR=0,pp.TIMEOUT=8,pp.HTTP_ERROR=6,vt=ft.ErrorCode=pp,f_.COMPLETE="complete",mt=ft.EventType=f_,ad.EventType=uc,uc.OPEN="a",uc.CLOSE="b",uc.ERROR="c",uc.MESSAGE="d",ns.prototype.listen=ns.prototype.K,Mt=ft.WebChannel=ad,st=ft.FetchXmlHttpFactory=Ep,vo.prototype.listenOnce=vo.prototype.L,vo.prototype.getLastError=vo.prototype.Ka,vo.prototype.getLastErrorCode=vo.prototype.Ba,vo.prototype.getStatus=vo.prototype.Z,vo.prototype.getResponseJson=vo.prototype.Oa,vo.prototype.getResponseText=vo.prototype.oa,vo.prototype.send=vo.prototype.ea,vo.prototype.setWithCredentials=vo.prototype.Ha,ut=ft.XhrIo=vo}).apply(typeof Qe<"u"?Qe:typeof self<"u"?self:typeof window<"u"?window:{});const xt="@firebase/firestore";class ze{constructor(n){this.uid=n}isAuthenticated(){return null!=this.uid}toKey(){return this.isAuthenticated()?"uid:"+this.uid:"anonymous-user"}isEqual(n){return n.uid===this.uid}}ze.UNAUTHENTICATED=new ze(null),ze.GOOGLE_CREDENTIALS=new ze("google-credentials-uid"),ze.FIRST_PARTY=new ze("first-party-uid"),ze.MOCK_USER=new ze("mock-user");let Tt="10.12.1";const Vt=new Je.Vy("@firebase/firestore");function Zt(){return Vt.logLevel}function Be(l,...n){if(Vt.logLevel<=Je.$b.DEBUG){const i=n.map(_e);Vt.debug(`Firestore (${Tt}): ${l}`,...i)}}function rn(l,...n){if(Vt.logLevel<=Je.$b.ERROR){const i=n.map(_e);Vt.error(`Firestore (${Tt}): ${l}`,...i)}}function pt(l,...n){if(Vt.logLevel<=Je.$b.WARN){const i=n.map(_e);Vt.warn(`Firestore (${Tt}): ${l}`,...i)}}function _e(l){if("string"==typeof l)return l;try{return JSON.stringify(l)}catch{return l}}function j(l="Unexpected state"){const n=`FIRESTORE (${Tt}) INTERNAL ASSERTION FAILED: `+l;throw rn(n),new Error(n)}function W(l,n){l||j()}function de(l,n){return l}const ae={OK:"ok",CANCELLED:"cancelled",UNKNOWN:"unknown",INVALID_ARGUMENT:"invalid-argument",DEADLINE_EXCEEDED:"deadline-exceeded",NOT_FOUND:"not-found",ALREADY_EXISTS:"already-exists",PERMISSION_DENIED:"permission-denied",UNAUTHENTICATED:"unauthenticated",RESOURCE_EXHAUSTED:"resource-exhausted",FAILED_PRECONDITION:"failed-precondition",ABORTED:"aborted",OUT_OF_RANGE:"out-of-range",UNIMPLEMENTED:"unimplemented",INTERNAL:"internal",UNAVAILABLE:"unavailable",DATA_LOSS:"data-loss"};class me extends De.g{constructor(n,i){super(n,i),this.code=n,this.message=i,this.toString=()=>`${this.name}: [code=${this.code}]: ${this.message}`}}class Ce{constructor(){this.promise=new Promise((n,i)=>{this.resolve=n,this.reject=i})}}class at{constructor(n,i){this.user=i,this.type="OAuth",this.headers=new Map,this.headers.set("Authorization",`Bearer ${n}`)}}class kt{getToken(){return Promise.resolve(null)}invalidateToken(){}start(n,i){n.enqueueRetryable(()=>i(ze.UNAUTHENTICATED))}shutdown(){}}class Bt{constructor(n){this.token=n,this.changeListener=null}getToken(){return Promise.resolve(this.token)}invalidateToken(){}start(n,i){this.changeListener=i,n.enqueueRetryable(()=>i(this.token.user))}shutdown(){this.changeListener=null}}class vn{constructor(n){this.t=n,this.currentUser=ze.UNAUTHENTICATED,this.i=0,this.forceRefresh=!1,this.auth=null}start(n,i){var s=this;let u=this.i;const f=z=>this.i!==u?(u=this.i,i(z)):Promise.resolve();let _=new Ce;this.o=()=>{this.i++,this.currentUser=this.u(),_.resolve(),_=new Ce,n.enqueueRetryable(()=>f(this.currentUser))};const w=()=>{const z=_;n.enqueueRetryable((0,Ee.A)(function*(){yield z.promise,yield f(s.currentUser)}))},N=z=>{Be("FirebaseAuthCredentialsProvider","Auth detected"),this.auth=z,this.auth.addAuthTokenListener(this.o),w()};this.t.onInit(z=>N(z)),setTimeout(()=>{if(!this.auth){const z=this.t.getImmediate({optional:!0});z?N(z):(Be("FirebaseAuthCredentialsProvider","Auth not yet detected"),_.resolve(),_=new Ce)}},0),w()}getToken(){const n=this.i,i=this.forceRefresh;return this.forceRefresh=!1,this.auth?this.auth.getToken(i).then(s=>this.i!==n?(Be("FirebaseAuthCredentialsProvider","getToken aborted due to token change."),this.getToken()):s?(W("string"==typeof s.accessToken),new at(s.accessToken,this.currentUser)):null):Promise.resolve(null)}invalidateToken(){this.forceRefresh=!0}shutdown(){this.auth&&this.auth.removeAuthTokenListener(this.o)}u(){const n=this.auth&&this.auth.getUid();return W(null===n||"string"==typeof n),new ze(n)}}class bn{constructor(n,i,s){this.l=n,this.h=i,this.P=s,this.type="FirstParty",this.user=ze.FIRST_PARTY,this.I=new Map}T(){return this.P?this.P():null}get headers(){this.I.set("X-Goog-AuthUser",this.l);const n=this.T();return n&&this.I.set("Authorization",n),this.h&&this.I.set("X-Goog-Iam-Authorization-Token",this.h),this.I}}class $n{constructor(n,i,s){this.l=n,this.h=i,this.P=s}getToken(){return Promise.resolve(new bn(this.l,this.h,this.P))}start(n,i){n.enqueueRetryable(()=>i(ze.FIRST_PARTY))}shutdown(){}invalidateToken(){}}class qn{constructor(n){this.value=n,this.type="AppCheck",this.headers=new Map,n&&n.length>0&&this.headers.set("x-firebase-appcheck",this.value)}}class er{constructor(n){this.A=n,this.forceRefresh=!1,this.appCheck=null,this.R=null}start(n,i){const s=f=>{null!=f.error&&Be("FirebaseAppCheckTokenProvider",`Error getting App Check token; using placeholder token instead. Error: ${f.error.message}`);const _=f.token!==this.R;return this.R=f.token,Be("FirebaseAppCheckTokenProvider",`Received ${_?"new":"existing"} token.`),_?i(f.token):Promise.resolve()};this.o=f=>{n.enqueueRetryable(()=>s(f))};const u=f=>{Be("FirebaseAppCheckTokenProvider","AppCheck detected"),this.appCheck=f,this.appCheck.addTokenListener(this.o)};this.A.onInit(f=>u(f)),setTimeout(()=>{if(!this.appCheck){const f=this.A.getImmediate({optional:!0});f?u(f):Be("FirebaseAppCheckTokenProvider","AppCheck not yet detected")}},0)}getToken(){const n=this.forceRefresh;return this.forceRefresh=!1,this.appCheck?this.appCheck.getToken(n).then(i=>i?(W("string"==typeof i.token),this.R=i.token,new qn(i.token)):null):Promise.resolve(null)}invalidateToken(){this.forceRefresh=!0}shutdown(){this.appCheck&&this.appCheck.removeTokenListener(this.o)}}function ir(l){const n=typeof self<"u"&&(self.crypto||self.msCrypto),i=new Uint8Array(l);if(n&&"function"==typeof n.getRandomValues)n.getRandomValues(i);else for(let s=0;sn?1:0}function yt(l,n,i){return l.length===n.length&&l.every((s,u)=>i(s,n[u]))}class Xt{constructor(n,i){if(this.seconds=n,this.nanoseconds=i,i<0)throw new me(ae.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+i);if(i>=1e9)throw new me(ae.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+i);if(n<-62135596800)throw new me(ae.INVALID_ARGUMENT,"Timestamp seconds out of range: "+n);if(n>=253402300800)throw new me(ae.INVALID_ARGUMENT,"Timestamp seconds out of range: "+n)}static now(){return Xt.fromMillis(Date.now())}static fromDate(n){return Xt.fromMillis(n.getTime())}static fromMillis(n){const i=Math.floor(n/1e3),s=Math.floor(1e6*(n-1e3*i));return new Xt(i,s)}toDate(){return new Date(this.toMillis())}toMillis(){return 1e3*this.seconds+this.nanoseconds/1e6}_compareTo(n){return this.seconds===n.seconds?Ve(this.nanoseconds,n.nanoseconds):Ve(this.seconds,n.seconds)}isEqual(n){return n.seconds===this.seconds&&n.nanoseconds===this.nanoseconds}toString(){return"Timestamp(seconds="+this.seconds+", nanoseconds="+this.nanoseconds+")"}toJSON(){return{seconds:this.seconds,nanoseconds:this.nanoseconds}}valueOf(){return String(this.seconds- -62135596800).padStart(12,"0")+"."+String(this.nanoseconds).padStart(9,"0")}}class en{constructor(n){this.timestamp=n}static fromTimestamp(n){return new en(n)}static min(){return new en(new Xt(0,0))}static max(){return new en(new Xt(253402300799,999999999))}compareTo(n){return this.timestamp._compareTo(n.timestamp)}isEqual(n){return this.timestamp.isEqual(n.timestamp)}toMicroseconds(){return 1e6*this.timestamp.seconds+this.timestamp.nanoseconds/1e3}toString(){return"SnapshotVersion("+this.timestamp.toString()+")"}toTimestamp(){return this.timestamp}}class Ir{constructor(n,i,s){void 0===i?i=0:i>n.length&&j(),void 0===s?s=n.length-i:s>n.length-i&&j(),this.segments=n,this.offset=i,this.len=s}get length(){return this.len}isEqual(n){return 0===Ir.comparator(this,n)}child(n){const i=this.segments.slice(this.offset,this.limit());return n instanceof Ir?n.forEach(s=>{i.push(s)}):i.push(n),this.construct(i)}limit(){return this.offset+this.length}popFirst(n){return this.construct(this.segments,this.offset+(n=void 0===n?1:n),this.length-n)}popLast(){return this.construct(this.segments,this.offset,this.length-1)}firstSegment(){return this.segments[this.offset]}lastSegment(){return this.get(this.length-1)}get(n){return this.segments[this.offset+n]}isEmpty(){return 0===this.length}isPrefixOf(n){if(n.length_)return 1}return n.lengthi.length?1:0}}class gn extends Ir{construct(n,i,s){return new gn(n,i,s)}canonicalString(){return this.toArray().join("/")}toString(){return this.canonicalString()}toUriEncodedString(){return this.toArray().map(encodeURIComponent).join("/")}static fromString(...n){const i=[];for(const s of n){if(s.indexOf("//")>=0)throw new me(ae.INVALID_ARGUMENT,`Invalid segment (${s}). Paths must not contain // in them.`);i.push(...s.split("/").filter(u=>u.length>0))}return new gn(i)}static emptyPath(){return new gn([])}}const mn=/^[_a-zA-Z][_a-zA-Z0-9]*$/;class Jt extends Ir{construct(n,i,s){return new Jt(n,i,s)}static isValidIdentifier(n){return mn.test(n)}canonicalString(){return this.toArray().map(n=>(n=n.replace(/\\/g,"\\\\").replace(/`/g,"\\`"),Jt.isValidIdentifier(n)||(n="`"+n+"`"),n)).join(".")}toString(){return this.canonicalString()}isKeyField(){return 1===this.length&&"__name__"===this.get(0)}static keyField(){return new Jt(["__name__"])}static fromServerFormat(n){const i=[];let s="",u=0;const f=()=>{if(0===s.length)throw new me(ae.INVALID_ARGUMENT,`Invalid field path (${n}). Paths must not be empty, begin with '.', end with '.', or contain '..'`);i.push(s),s=""};let _=!1;for(;u=2&&this.path.get(this.path.length-2)===n}getCollectionGroup(){return this.path.get(this.path.length-2)}getCollectionPath(){return this.path.popLast()}isEqual(n){return null!==n&&0===gn.comparator(this.path,n.path)}toString(){return this.path.toString()}static comparator(n,i){return gn.comparator(n.path,i.path)}static isDocumentKey(n){return n.length%2==0}static fromSegments(n){return new Gt(new gn(n.slice()))}}class Sr{constructor(n,i,s){this.readTime=n,this.documentKey=i,this.largestBatchId=s}static min(){return new Sr(en.min(),Gt.empty(),-1)}static max(){return new Sr(en.max(),Gt.empty(),-1)}}function tr(l,n){let i=l.readTime.compareTo(n.readTime);return 0!==i?i:(i=Gt.comparator(l.documentKey,n.documentKey),0!==i?i:Ve(l.largestBatchId,n.largestBatchId))}const Er="The current tab is not in the required state to perform this operation. It might be necessary to refresh the browser tab.";class Mi{constructor(){this.onCommittedListeners=[]}addOnCommittedListener(n){this.onCommittedListeners.push(n)}raiseOnCommittedEvent(){this.onCommittedListeners.forEach(n=>n())}}function Qr(l){return Yr.apply(this,arguments)}function Yr(){return(Yr=(0,Ee.A)(function*(l){if(l.code!==ae.FAILED_PRECONDITION||l.message!==Er)throw l;Be("LocalStore","Unexpectedly lost primary lease")})).apply(this,arguments)}class oe{constructor(n){this.nextCallback=null,this.catchCallback=null,this.result=void 0,this.error=void 0,this.isDone=!1,this.callbackAttached=!1,n(i=>{this.isDone=!0,this.result=i,this.nextCallback&&this.nextCallback(i)},i=>{this.isDone=!0,this.error=i,this.catchCallback&&this.catchCallback(i)})}catch(n){return this.next(void 0,n)}next(n,i){return this.callbackAttached&&j(),this.callbackAttached=!0,this.isDone?this.error?this.wrapFailure(i,this.error):this.wrapSuccess(n,this.result):new oe((s,u)=>{this.nextCallback=f=>{this.wrapSuccess(n,f).next(s,u)},this.catchCallback=f=>{this.wrapFailure(i,f).next(s,u)}})}toPromise(){return new Promise((n,i)=>{this.next(n,i)})}wrapUserFunction(n){try{const i=n();return i instanceof oe?i:oe.resolve(i)}catch(i){return oe.reject(i)}}wrapSuccess(n,i){return n?this.wrapUserFunction(()=>n(i)):oe.resolve(i)}wrapFailure(n,i){return n?this.wrapUserFunction(()=>n(i)):oe.reject(i)}static resolve(n){return new oe((i,s)=>{i(n)})}static reject(n){return new oe((i,s)=>{s(n)})}static waitFor(n){return new oe((i,s)=>{let u=0,f=0,_=!1;n.forEach(w=>{++u,w.next(()=>{++f,_&&f===u&&i()},N=>s(N))}),_=!0,f===u&&i()})}static or(n){let i=oe.resolve(!1);for(const s of n)i=i.next(u=>u?oe.resolve(u):s());return i}static forEach(n,i){const s=[];return n.forEach((u,f)=>{s.push(i.call(this,u,f))}),this.waitFor(s)}static mapArray(n,i){return new oe((s,u)=>{const f=n.length,_=new Array(f);let w=0;for(let N=0;N{_[z]=se,++w,w===f&&s(_)},se=>u(se))}})}static doWhile(n,i){return new oe((s,u)=>{const f=()=>{!0===n()?i().next(()=>{f()},u):s()};f()})}}function Pe(l){return"IndexedDbTransactionError"===l.name}let ur=(()=>{class l{constructor(i,s){this.previousValue=i,s&&(s.sequenceNumberHandler=u=>this.ie(u),this.se=u=>s.writeSequenceNumber(u))}ie(i){return this.previousValue=Math.max(i,this.previousValue),this.previousValue}next(){const i=++this.previousValue;return this.se&&this.se(i),i}}return l.oe=-1,l})();function ri(l){return null==l}function xn(l){return 0===l&&1/l==-1/0}function xi(l){let n=0;for(const i in l)Object.prototype.hasOwnProperty.call(l,i)&&n++;return n}function mi(l,n){for(const i in l)Object.prototype.hasOwnProperty.call(l,i)&&n(i,l[i])}function ti(l){for(const n in l)if(Object.prototype.hasOwnProperty.call(l,n))return!1;return!0}class mr{constructor(n,i){this.comparator=n,this.root=i||Nn.EMPTY}insert(n,i){return new mr(this.comparator,this.root.insert(n,i,this.comparator).copy(null,null,Nn.BLACK,null,null))}remove(n){return new mr(this.comparator,this.root.remove(n,this.comparator).copy(null,null,Nn.BLACK,null,null))}get(n){let i=this.root;for(;!i.isEmpty();){const s=this.comparator(n,i.key);if(0===s)return i.value;s<0?i=i.left:s>0&&(i=i.right)}return null}indexOf(n){let i=0,s=this.root;for(;!s.isEmpty();){const u=this.comparator(n,s.key);if(0===u)return i+s.left.size;u<0?s=s.left:(i+=s.left.size+1,s=s.right)}return-1}isEmpty(){return this.root.isEmpty()}get size(){return this.root.size}minKey(){return this.root.minKey()}maxKey(){return this.root.maxKey()}inorderTraversal(n){return this.root.inorderTraversal(n)}forEach(n){this.inorderTraversal((i,s)=>(n(i,s),!1))}toString(){const n=[];return this.inorderTraversal((i,s)=>(n.push(`${i}:${s}`),!1)),`{${n.join(", ")}}`}reverseTraversal(n){return this.root.reverseTraversal(n)}getIterator(){return new oi(this.root,null,this.comparator,!1)}getIteratorFrom(n){return new oi(this.root,n,this.comparator,!1)}getReverseIterator(){return new oi(this.root,null,this.comparator,!0)}getReverseIteratorFrom(n){return new oi(this.root,n,this.comparator,!0)}}class oi{constructor(n,i,s,u){this.isReverse=u,this.nodeStack=[];let f=1;for(;!n.isEmpty();)if(f=i?s(n.key,i):1,i&&u&&(f*=-1),f<0)n=this.isReverse?n.left:n.right;else{if(0===f){this.nodeStack.push(n);break}this.nodeStack.push(n),n=this.isReverse?n.right:n.left}}getNext(){let n=this.nodeStack.pop();const i={key:n.key,value:n.value};if(this.isReverse)for(n=n.left;!n.isEmpty();)this.nodeStack.push(n),n=n.right;else for(n=n.right;!n.isEmpty();)this.nodeStack.push(n),n=n.left;return i}hasNext(){return this.nodeStack.length>0}peek(){if(0===this.nodeStack.length)return null;const n=this.nodeStack[this.nodeStack.length-1];return{key:n.key,value:n.value}}}class Nn{constructor(n,i,s,u,f){this.key=n,this.value=i,this.color=null!=s?s:Nn.RED,this.left=null!=u?u:Nn.EMPTY,this.right=null!=f?f:Nn.EMPTY,this.size=this.left.size+1+this.right.size}copy(n,i,s,u,f){return new Nn(null!=n?n:this.key,null!=i?i:this.value,null!=s?s:this.color,null!=u?u:this.left,null!=f?f:this.right)}isEmpty(){return!1}inorderTraversal(n){return this.left.inorderTraversal(n)||n(this.key,this.value)||this.right.inorderTraversal(n)}reverseTraversal(n){return this.right.reverseTraversal(n)||n(this.key,this.value)||this.left.reverseTraversal(n)}min(){return this.left.isEmpty()?this:this.left.min()}minKey(){return this.min().key}maxKey(){return this.right.isEmpty()?this.key:this.right.maxKey()}insert(n,i,s){let u=this;const f=s(n,u.key);return u=f<0?u.copy(null,null,null,u.left.insert(n,i,s),null):0===f?u.copy(null,i,null,null,null):u.copy(null,null,null,null,u.right.insert(n,i,s)),u.fixUp()}removeMin(){if(this.left.isEmpty())return Nn.EMPTY;let n=this;return n.left.isRed()||n.left.left.isRed()||(n=n.moveRedLeft()),n=n.copy(null,null,null,n.left.removeMin(),null),n.fixUp()}remove(n,i){let s,u=this;if(i(n,u.key)<0)u.left.isEmpty()||u.left.isRed()||u.left.left.isRed()||(u=u.moveRedLeft()),u=u.copy(null,null,null,u.left.remove(n,i),null);else{if(u.left.isRed()&&(u=u.rotateRight()),u.right.isEmpty()||u.right.isRed()||u.right.left.isRed()||(u=u.moveRedRight()),0===i(n,u.key)){if(u.right.isEmpty())return Nn.EMPTY;s=u.right.min(),u=u.copy(s.key,s.value,null,null,u.right.removeMin())}u=u.copy(null,null,null,null,u.right.remove(n,i))}return u.fixUp()}isRed(){return this.color}fixUp(){let n=this;return n.right.isRed()&&!n.left.isRed()&&(n=n.rotateLeft()),n.left.isRed()&&n.left.left.isRed()&&(n=n.rotateRight()),n.left.isRed()&&n.right.isRed()&&(n=n.colorFlip()),n}moveRedLeft(){let n=this.colorFlip();return n.right.left.isRed()&&(n=n.copy(null,null,null,null,n.right.rotateRight()),n=n.rotateLeft(),n=n.colorFlip()),n}moveRedRight(){let n=this.colorFlip();return n.left.left.isRed()&&(n=n.rotateRight(),n=n.colorFlip()),n}rotateLeft(){const n=this.copy(null,null,Nn.RED,null,this.right.left);return this.right.copy(null,null,this.color,n,null)}rotateRight(){const n=this.copy(null,null,Nn.RED,this.left.right,null);return this.left.copy(null,null,this.color,null,n)}colorFlip(){const n=this.left.copy(null,null,!this.left.color,null,null),i=this.right.copy(null,null,!this.right.color,null,null);return this.copy(null,null,!this.color,n,i)}checkMaxDepth(){const n=this.check();return Math.pow(2,n)<=this.size+1}check(){if(this.isRed()&&this.left.isRed()||this.right.isRed())throw j();const n=this.left.check();if(n!==this.right.check())throw j();return n+(this.isRed()?0:1)}}Nn.EMPTY=null,Nn.RED=!0,Nn.BLACK=!1,Nn.EMPTY=new class{constructor(){this.size=0}get key(){throw j()}get value(){throw j()}get color(){throw j()}get left(){throw j()}get right(){throw j()}copy(n,i,s,u,f){return this}insert(n,i,s){return new Nn(n,i)}remove(n,i){return this}isEmpty(){return!0}inorderTraversal(n){return!1}reverseTraversal(n){return!1}minKey(){return null}maxKey(){return null}isRed(){return!1}checkMaxDepth(){return!0}check(){return 0}};class kn{constructor(n){this.comparator=n,this.data=new mr(this.comparator)}has(n){return null!==this.data.get(n)}first(){return this.data.minKey()}last(){return this.data.maxKey()}get size(){return this.data.size}indexOf(n){return this.data.indexOf(n)}forEach(n){this.data.inorderTraversal((i,s)=>(n(i),!1))}forEachInRange(n,i){const s=this.data.getIteratorFrom(n[0]);for(;s.hasNext();){const u=s.getNext();if(this.comparator(u.key,n[1])>=0)return;i(u.key)}}forEachWhile(n,i){let s;for(s=void 0!==i?this.data.getIteratorFrom(i):this.data.getIterator();s.hasNext();)if(!n(s.getNext().key))return}firstAfterOrEqual(n){const i=this.data.getIteratorFrom(n);return i.hasNext()?i.getNext().key:null}getIterator(){return new ko(this.data.getIterator())}getIteratorFrom(n){return new ko(this.data.getIteratorFrom(n))}add(n){return this.copy(this.data.remove(n).insert(n,!0))}delete(n){return this.has(n)?this.copy(this.data.remove(n)):this}isEmpty(){return this.data.isEmpty()}unionWith(n){let i=this;return i.size{i=i.add(s)}),i}isEqual(n){if(!(n instanceof kn)||this.size!==n.size)return!1;const i=this.data.getIterator(),s=n.data.getIterator();for(;i.hasNext();){const u=i.getNext().key,f=s.getNext().key;if(0!==this.comparator(u,f))return!1}return!0}toArray(){const n=[];return this.forEach(i=>{n.push(i)}),n}toString(){const n=[];return this.forEach(i=>n.push(i)),"SortedSet("+n.toString()+")"}copy(n){const i=new kn(this.comparator);return i.data=n,i}}class ko{constructor(n){this.iter=n}getNext(){return this.iter.getNext().key}hasNext(){return this.iter.hasNext()}}class Bi{constructor(n){this.fields=n,n.sort(Jt.comparator)}static empty(){return new Bi([])}unionWith(n){let i=new kn(Jt.comparator);for(const s of this.fields)i=i.add(s);for(const s of n)i=i.add(s);return new Bi(i.toArray())}covers(n){for(const i of this.fields)if(i.isPrefixOf(n))return!0;return!1}isEqual(n){return yt(this.fields,n.fields,(i,s)=>i.isEqual(s))}}class is extends Error{constructor(){super(...arguments),this.name="Base64DecodeError"}}class si{constructor(n){this.binaryString=n}static fromBase64String(n){const i=function(u){try{return atob(u)}catch(f){throw typeof DOMException<"u"&&f instanceof DOMException?new is("Invalid base64 string: "+f):f}}(n);return new si(i)}static fromUint8Array(n){const i=function(u){let f="";for(let _=0;_nue(i,n))}function fe(l,n){if(l===n)return 0;const i=H(l),s=H(n);if(i!==s)return Ve(i,s);switch(i){case 0:case 9007199254740991:return 0;case 1:return Ve(l.booleanValue,n.booleanValue);case 2:return function(f,_){const w=ai(f.integerValue||f.doubleValue),N=ai(_.integerValue||_.doubleValue);return wN?1:w===N?0:isNaN(w)?isNaN(N)?0:-1:1}(l,n);case 3:return qe(l.timestampValue,n.timestampValue);case 4:return qe(Co(l),Co(n));case 5:return Ve(l.stringValue,n.stringValue);case 6:return function(f,_){const w=jn(f),N=jn(_);return w.compareTo(N)}(l.bytesValue,n.bytesValue);case 7:return function(f,_){const w=f.split("/"),N=_.split("/");for(let z=0;zn.mapValue.fields[i]=zt(s)),n}if(l.arrayValue){const n={arrayValue:{values:[]}};for(let i=0;i<(l.arrayValue.values||[]).length;++i)n.arrayValue.values[i]=zt(l.arrayValue.values[i]);return n}return Object.assign({},l)}function Kt(l){return"__max__"===(((l.mapValue||{}).fields||{}).__type__||{}).stringValue}class In{constructor(n){this.value=n}static empty(){return new In({mapValue:{}})}field(n){if(n.isEmpty())return this.value;{let i=this.value;for(let s=0;s{if(!i.isImmediateParentOf(w)){const N=this.getFieldsMap(i);this.applyChanges(N,s,u),s={},u=[],i=w.popLast()}_?s[w.lastSegment()]=zt(_):u.push(w.lastSegment())});const f=this.getFieldsMap(i);this.applyChanges(f,s,u)}delete(n){const i=this.field(n.popLast());Lt(i)&&i.mapValue.fields&&delete i.mapValue.fields[n.lastSegment()]}isEqual(n){return ue(this.value,n.value)}getFieldsMap(n){let i=this.value;i.mapValue.fields||(i.mapValue={fields:{}});for(let s=0;sn[u]=f);for(const u of s)delete n[u]}clone(){return new In(zt(this.value))}}function br(l){const n=[];return mi(l.fields,(i,s)=>{const u=new Jt([i]);if(Lt(s)){const f=br(s.mapValue).fields;if(0===f.length)n.push(u);else for(const _ of f)n.push(u.child(_))}else n.push(u)}),new Bi(n)}class cr{constructor(n,i,s,u,f,_,w){this.key=n,this.documentType=i,this.version=s,this.readTime=u,this.createTime=f,this.data=_,this.documentState=w}static newInvalidDocument(n){return new cr(n,0,en.min(),en.min(),en.min(),In.empty(),0)}static newFoundDocument(n,i,s,u){return new cr(n,1,i,en.min(),s,u,0)}static newNoDocument(n,i){return new cr(n,2,i,en.min(),en.min(),In.empty(),0)}static newUnknownDocument(n,i){return new cr(n,3,i,en.min(),en.min(),In.empty(),2)}convertToFoundDocument(n,i){return!this.createTime.isEqual(en.min())||2!==this.documentType&&0!==this.documentType||(this.createTime=n),this.version=n,this.documentType=1,this.data=i,this.documentState=0,this}convertToNoDocument(n){return this.version=n,this.documentType=2,this.data=In.empty(),this.documentState=0,this}convertToUnknownDocument(n){return this.version=n,this.documentType=3,this.data=In.empty(),this.documentState=2,this}setHasCommittedMutations(){return this.documentState=2,this}setHasLocalMutations(){return this.documentState=1,this.version=en.min(),this}setReadTime(n){return this.readTime=n,this}get hasLocalMutations(){return 1===this.documentState}get hasCommittedMutations(){return 2===this.documentState}get hasPendingWrites(){return this.hasLocalMutations||this.hasCommittedMutations}isValidDocument(){return 0!==this.documentType}isFoundDocument(){return 1===this.documentType}isNoDocument(){return 2===this.documentType}isUnknownDocument(){return 3===this.documentType}isEqual(n){return n instanceof cr&&this.key.isEqual(n.key)&&this.version.isEqual(n.version)&&this.documentType===n.documentType&&this.documentState===n.documentState&&this.data.isEqual(n.data)}mutableCopy(){return new cr(this.key,this.documentType,this.version,this.readTime,this.createTime,this.data.clone(),this.documentState)}toString(){return`Document(${this.key}, ${this.version}, ${JSON.stringify(this.data.value)}, {createTime: ${this.createTime}}), {documentType: ${this.documentType}}), {documentState: ${this.documentState}})`}}class nr{constructor(n,i){this.position=n,this.inclusive=i}}function li(l,n,i){let s=0;for(let u=0;u":return n>0;case">=":return n>=0;default:return j()}}isInequality(){return["<","<=",">",">=","!=","not-in"].indexOf(this.op)>=0}getFlattenedFilters(){return[this]}getFilters(){return[this]}}class Wr extends Go{constructor(n,i){super(),this.filters=n,this.op=i,this.ae=null}static create(n,i){return new Wr(n,i)}matches(n){return Wo(this)?void 0===this.filters.find(i=>!i.matches(n)):void 0!==this.filters.find(i=>i.matches(n))}getFlattenedFilters(){return null!==this.ae||(this.ae=this.filters.reduce((n,i)=>n.concat(i.getFlattenedFilters()),[])),this.ae}getFilters(){return Object.assign([],this.filters)}}function Wo(l){return"and"===l.op}function Ko(l){return function Do(l){for(const n of l.filters)if(n instanceof Wr)return!1;return!0}(l)&&Wo(l)}function xa(l){if(l instanceof dr)return l.field.canonicalString()+l.op.toString()+ar(l.value);if(Ko(l))return l.filters.map(n=>xa(n)).join(",");{const n=l.filters.map(i=>xa(i)).join(",");return`${l.op}(${n})`}}function os(l,n){return l instanceof dr?(s=l,(u=n)instanceof dr&&s.op===u.op&&s.field.isEqual(u.field)&&ue(s.value,u.value)):l instanceof Wr?function(s,u){return u instanceof Wr&&s.op===u.op&&s.filters.length===u.filters.length&&s.filters.reduce((f,_,w)=>f&&os(_,u.filters[w]),!0)}(l,n):void j();var s,u}function Pr(l){return l instanceof dr?`${(i=l).field.canonicalString()} ${i.op} ${ar(i.value)}`:l instanceof Wr?function(i){return i.op.toString()+" {"+i.getFilters().map(Pr).join(" ,")+"}"}(l):"Filter";var i}class oo extends dr{constructor(n,i,s){super(n,i,s),this.key=Gt.fromName(s.referenceValue)}matches(n){const i=Gt.comparator(n.key,this.key);return this.matchesComparison(i)}}class Us extends dr{constructor(n,i){super(n,"in",i),this.keys=ua(0,i)}matches(n){return this.keys.some(i=>i.isEqual(n.key))}}class so extends dr{constructor(n,i){super(n,"not-in",i),this.keys=ua(0,i)}matches(n){return!this.keys.some(i=>i.isEqual(n.key))}}function ua(l,n){var i;return((null===(i=n.arrayValue)||void 0===i?void 0:i.values)||[]).map(s=>Gt.fromName(s.referenceValue))}class gs extends dr{constructor(n,i){super(n,"array-contains",i)}matches(n){const i=n.data.field(this.field);return ke(i)&&M(i.arrayValue,this.value)}}class ms extends dr{constructor(n,i){super(n,"in",i)}matches(n){const i=n.data.field(this.field);return null!==i&&M(this.value.arrayValue,i)}}class ss extends dr{constructor(n,i){super(n,"not-in",i)}matches(n){if(M(this.value.arrayValue,{nullValue:"NULL_VALUE"}))return!1;const i=n.data.field(this.field);return null!==i&&!M(this.value.arrayValue,i)}}class $s extends dr{constructor(n,i){super(n,"array-contains-any",i)}matches(n){const i=n.data.field(this.field);return!(!ke(i)||!i.arrayValue.values)&&i.arrayValue.values.some(s=>M(this.value.arrayValue,s))}}class ca{constructor(n,i=null,s=[],u=[],f=null,_=null,w=null){this.path=n,this.collectionGroup=i,this.orderBy=s,this.filters=u,this.limit=f,this.startAt=_,this.endAt=w,this.ue=null}}function qo(l,n=null,i=[],s=[],u=null,f=null,_=null){return new ca(l,n,i,s,u,f,_)}function bs(l){const n=de(l);if(null===n.ue){let i=n.path.canonicalString();null!==n.collectionGroup&&(i+="|cg:"+n.collectionGroup),i+="|f:",i+=n.filters.map(s=>xa(s)).join(","),i+="|ob:",i+=n.orderBy.map(s=>{return(f=s).field.canonicalString()+f.dir;var f}).join(","),ri(n.limit)||(i+="|l:",i+=n.limit),n.startAt&&(i+="|lb:",i+=n.startAt.inclusive?"b:":"a:",i+=n.startAt.position.map(s=>ar(s)).join(",")),n.endAt&&(i+="|ub:",i+=n.endAt.inclusive?"a:":"b:",i+=n.endAt.position.map(s=>ar(s)).join(",")),n.ue=i}return n.ue}function Xo(l,n){if(l.limit!==n.limit||l.orderBy.length!==n.orderBy.length)return!1;for(let i=0;i0?n.explicitOrderBy[n.explicitOrderBy.length-1].dir:"asc";(function(_){let w=new kn(Jt.comparator);return _.filters.forEach(N=>{N.getFlattenedFilters().forEach(z=>{z.isInequality()&&(w=w.add(z.field))})}),w})(n).forEach(f=>{i.has(f.canonicalString())||f.isKeyField()||n.ce.push(new ci(f,s))}),i.has(Jt.keyField().canonicalString())||n.ce.push(new ci(Jt.keyField(),s))}return n.ce}function On(l){const n=de(l);return n.le||(n.le=function Ji(l,n){if("F"===l.limitType)return qo(l.path,l.collectionGroup,n,l.filters,l.limit,l.startAt,l.endAt);{n=n.map(u=>new ci(u.field,"desc"===u.dir?"asc":"desc"));const i=l.endAt?new nr(l.endAt.position,l.endAt.inclusive):null,s=l.startAt?new nr(l.startAt.position,l.startAt.inclusive):null;return qo(l.path,l.collectionGroup,n,l.filters,l.limit,i,s)}}(n,nn(l))),n.le}function eo(l,n,i){return new L(l.path,l.collectionGroup,l.explicitOrderBy.slice(),l.filters.slice(),n,i,l.startAt,l.endAt)}function Qo(l,n){return Xo(On(l),On(n))&&l.limitType===n.limitType}function Na(l){return`${bs(On(l))}|lt:${l.limitType}`}function vs(l){return`Query(target=${function(i){let s=i.path.canonicalString();return null!==i.collectionGroup&&(s+=" collectionGroup="+i.collectionGroup),i.filters.length>0&&(s+=`, filters: [${i.filters.map(u=>Pr(u)).join(", ")}]`),ri(i.limit)||(s+=", limit: "+i.limit),i.orderBy.length>0&&(s+=`, orderBy: [${i.orderBy.map(u=>{return`${(_=u).field.canonicalString()} (${_.dir})`;var _}).join(", ")}]`),i.startAt&&(s+=", startAt: ",s+=i.startAt.inclusive?"b:":"a:",s+=i.startAt.position.map(u=>ar(u)).join(",")),i.endAt&&(s+=", endAt: ",s+=i.endAt.inclusive?"a:":"b:",s+=i.endAt.position.map(u=>ar(u)).join(",")),`Target(${s})`}(On(l))}; limitType=${l.limitType})`}function Bs(l,n){return n.isFoundDocument()&&function(s,u){const f=u.key.path;return null!==s.collectionGroup?u.key.hasCollectionId(s.collectionGroup)&&s.path.isPrefixOf(f):Gt.isDocumentKey(s.path)?s.path.isEqual(f):s.path.isImmediateParentOf(f)}(l,n)&&function(s,u){for(const f of nn(s))if(!f.field.isKeyField()&&null===u.data.field(f.field))return!1;return!0}(l,n)&&function(s,u){for(const f of s.filters)if(!f.matches(u))return!1;return!0}(l,n)&&(u=n,!((s=l).startAt&&!function(_,w,N){const z=li(_,w,N);return _.inclusive?z<=0:z<0}(s.startAt,nn(s),u)||s.endAt&&!function(_,w,N){const z=li(_,w,N);return _.inclusive?z>=0:z>0}(s.endAt,nn(s),u)));var s,u}function sl(l){return(n,i)=>{let s=!1;for(const u of nn(l)){const f=al(u,n,i);if(0!==f)return f;s=s||u.field.isKeyField()}return 0}}function al(l,n,i){const s=l.field.isKeyField()?Gt.comparator(n.key,i.key):function(f,_,w){const N=_.data.field(f),z=w.data.field(f);return null!==N&&null!==z?fe(N,z):j()}(l.field,n,i);switch(l.dir){case"asc":return s;case"desc":return-1*s;default:return j()}}class as{constructor(n,i){this.mapKeyFn=n,this.equalsFn=i,this.inner={},this.innerSize=0}get(n){const i=this.mapKeyFn(n),s=this.inner[i];if(void 0!==s)for(const[u,f]of s)if(this.equalsFn(u,n))return f}has(n){return void 0!==this.get(n)}set(n,i){const s=this.mapKeyFn(n),u=this.inner[s];if(void 0===u)return this.inner[s]=[[n,i]],void this.innerSize++;for(let f=0;f{for(const[u,f]of s)n(u,f)})}isEmpty(){return ti(this.inner)}size(){return this.innerSize}}const ha=new mr(Gt.comparator);function Jn(){return ha}const Oi=new mr(Gt.comparator);function Ti(...l){let n=Oi;for(const i of l)n=n.insert(i.key,i);return n}function ro(l){let n=Oi;return l.forEach((i,s)=>n=n.insert(i,s.overlayedDocument)),n}function Hr(){return ls()}function ll(){return ls()}function ls(){return new as(l=>l.toString(),(l,n)=>l.isEqual(n))}const _s=new mr(Gt.comparator),Vl=new kn(Gt.comparator);function vr(...l){let n=Vl;for(const i of l)n=n.add(i);return n}const ul=new kn(Ve);function ka(l,n){if(l.useProto3Json){if(isNaN(n))return{doubleValue:"NaN"};if(n===1/0)return{doubleValue:"Infinity"};if(n===-1/0)return{doubleValue:"-Infinity"}}return{doubleValue:xn(n)?"-0":n}}function js(l){return{integerValue:""+l}}function cl(l,n){return function Rn(l){return"number"==typeof l&&Number.isInteger(l)&&!xn(l)&&l<=Number.MAX_SAFE_INTEGER&&l>=Number.MIN_SAFE_INTEGER}(n)?js(n):ka(l,n)}class Fa{constructor(){this._=void 0}}function Ll(l,n,i){return l instanceof Is?function(u,f){const _={fields:{__type__:{stringValue:"server_timestamp"},__local_write_time__:{timestampValue:{seconds:u.seconds,nanos:u.nanoseconds}}}};return f&&Fo(f)&&(f=Ao(f)),f&&(_.fields.__previous_value__=f),{mapValue:_}}(i,n):l instanceof ws?Yo(l,n):l instanceof Ss?dl(l,n):function(u,f){const _=fa(u,f),w=wu(_)+wu(u.Pe);return Ae(_)&&Ae(u.Pe)?js(w):ka(u.serializer,w)}(l,n)}function Ul(l,n,i){return l instanceof ws?Yo(l,n):l instanceof Ss?dl(l,n):i}function fa(l,n){return l instanceof Zo?Ae(s=n)||(f=s)&&"doubleValue"in f?n:{integerValue:0}:null;var s,f}class Is extends Fa{}class ws extends Fa{constructor(n){super(),this.elements=n}}function Yo(l,n){const i=$l(n);for(const s of l.elements)i.some(u=>ue(u,s))||i.push(s);return{arrayValue:{values:i}}}class Ss extends Fa{constructor(n){super(),this.elements=n}}function dl(l,n){let i=$l(n);for(const s of l.elements)i=i.filter(u=>!ue(u,s));return{arrayValue:{values:i}}}class Zo extends Fa{constructor(n,i){super(),this.serializer=n,this.Pe=i}}function wu(l){return ai(l.integerValue||l.doubleValue)}function $l(l){return ke(l)&&l.arrayValue.values?l.arrayValue.values.slice():[]}class Rs{constructor(n,i){this.version=n,this.transformResults=i}}class Di{constructor(n,i){this.updateTime=n,this.exists=i}static none(){return new Di}static exists(n){return new Di(void 0,n)}static updateTime(n){return new Di(n)}get isNone(){return void 0===this.updateTime&&void 0===this.exists}isEqual(n){return this.exists===n.exists&&(this.updateTime?!!n.updateTime&&this.updateTime.isEqual(n.updateTime):!n.updateTime)}}function pa(l,n){return void 0!==l.updateTime?n.isFoundDocument()&&n.version.isEqual(l.updateTime):void 0===l.exists||l.exists===n.isFoundDocument()}class Bl{}function ga(l,n){if(!l.hasLocalMutations||n&&0===n.fields.length)return null;if(null===n)return l.isNoDocument()?new V(l.key,Di.none()):new Ms(l.key,l.data,Di.none());{const i=l.data,s=In.empty();let u=new kn(Jt.comparator);for(let f of n.fields)if(!u.has(f)){let _=i.field(f);null===_&&f.length>1&&(f=f.popLast(),_=i.field(f)),null===_?s.delete(f):s.set(f,_),u=u.add(f)}return new lo(l.key,s,new Bi(u.toArray()),Di.none())}}function Va(l,n,i){l instanceof Ms?function(u,f,_){const w=u.value.clone(),N=Es(u.fieldTransforms,f,_.transformResults);w.setAll(N),f.convertToFoundDocument(_.version,w).setHasCommittedMutations()}(l,n,i):l instanceof lo?function(u,f,_){if(!pa(u.precondition,f))return void f.convertToUnknownDocument(_.version);const w=Es(u.fieldTransforms,f,_.transformResults),N=f.data;N.setAll(Hs(u)),N.setAll(w),f.convertToFoundDocument(_.version,N).setHasCommittedMutations()}(l,n,i):n.convertToNoDocument(i.version).setHasCommittedMutations()}function zs(l,n,i,s){return l instanceof Ms?function(f,_,w,N){if(!pa(f.precondition,_))return w;const z=f.value.clone(),se=D(f.fieldTransforms,N,_);return z.setAll(se),_.convertToFoundDocument(_.version,z).setHasLocalMutations(),null}(l,n,i,s):l instanceof lo?function(f,_,w,N){if(!pa(f.precondition,_))return w;const z=D(f.fieldTransforms,N,_),se=_.data;return se.setAll(Hs(f)),se.setAll(z),_.convertToFoundDocument(_.version,se).setHasLocalMutations(),null===w?null:w.unionWith(f.fieldMask.fields).unionWith(f.fieldTransforms.map(we=>we.field))}(l,n,i,s):(w=i,pa(l.precondition,_=n)?(_.convertToNoDocument(_.version).setHasLocalMutations(),null):w);var _,w}function pc(l,n){let i=null;for(const s of l.fieldTransforms){const u=n.data.field(s.field),f=fa(s.transform,u||null);null!=f&&(null===i&&(i=In.empty()),i.set(s.field,f))}return i||null}function ma(l,n){return l.type===n.type&&!!l.key.isEqual(n.key)&&!!l.precondition.isEqual(n.precondition)&&(u=n.fieldTransforms,!!(void 0===(s=l.fieldTransforms)&&void 0===u||s&&u&&yt(s,u,(f,_)=>function Jo(l,n){return l.field.isEqual(n.field)&&(u=n.transform,(s=l.transform)instanceof ws&&u instanceof ws||s instanceof Ss&&u instanceof Ss?yt(s.elements,u.elements,ue):s instanceof Zo&&u instanceof Zo?ue(s.Pe,u.Pe):s instanceof Is&&u instanceof Is);var s,u}(f,_))))&&(0===l.type?l.value.isEqual(n.value):1!==l.type||l.data.isEqual(n.data)&&l.fieldMask.isEqual(n.fieldMask));var s,u}class Ms extends Bl{constructor(n,i,s,u=[]){super(),this.key=n,this.value=i,this.precondition=s,this.fieldTransforms=u,this.type=0}getFieldMask(){return null}}class lo extends Bl{constructor(n,i,s,u,f=[]){super(),this.key=n,this.data=i,this.fieldMask=s,this.precondition=u,this.fieldTransforms=f,this.type=1}getFieldMask(){return this.fieldMask}}function Hs(l){const n=new Map;return l.fieldMask.fields.forEach(i=>{if(!i.isEmpty()){const s=l.data.field(i);n.set(i,s)}}),n}function Es(l,n,i){const s=new Map;W(l.length===i.length);for(let u=0;u{const f=n.get(u.key),_=f.overlayedDocument;let w=this.applyToLocalView(_,f.mutatedFields);w=i.has(u.key)?null:w;const N=ga(_,w);null!==N&&s.set(u.key,N),_.isValidDocument()||_.convertToNoDocument(en.min())}),s}keys(){return this.mutations.reduce((n,i)=>n.add(i.key),vr())}isEqual(n){return this.batchId===n.batchId&&yt(this.mutations,n.mutations,(i,s)=>ma(i,s))&&yt(this.baseMutations,n.baseMutations,(i,s)=>ma(i,s))}}class le{constructor(n,i,s,u){this.batch=n,this.commitVersion=i,this.mutationResults=s,this.docVersions=u}static from(n,i,s){W(n.mutations.length===s.length);let u=function(){return _s}();const f=n.mutations;for(let _=0;_=8)throw new Kr(`Invalid padding: ${i}`);if(s<0)throw new Kr(`Invalid hash count: ${s}`);if(n.length>0&&0===this.hashCount)throw new Kr(`Invalid hash count: ${s}`);if(0===n.length&&0!==i)throw new Kr(`Invalid padding when bitmap length is 0: ${i}`);this.Ie=8*n.length-i,this.Te=$e.fromNumber(this.Ie)}Ee(n,i,s){let u=n.add(i.multiply($e.fromNumber(s)));return 1===u.compare(ki)&&(u=new $e([u.getBits(0),u.getBits(1)],0)),u.modulo(this.Te).toNumber()}de(n){return!!(this.bitmap[Math.floor(n/8)]&1<_.insert(w)),_}insert(n){if(0===this.Ie)return;const i=Gr(n),[s,u]=un(i);for(let f=0;f0&&(this.we=!0,this.pe=n)}Ce(){let n=vr(),i=vr(),s=vr();return this.ge.forEach((u,f)=>{switch(f){case 0:n=n.add(u);break;case 2:i=i.add(u);break;case 1:s=s.add(u);break;default:j()}}),new _i(this.pe,this.ye,n,i,s)}ve(){this.we=!1,this.ge=La()}Fe(n,i){this.we=!0,this.ge=this.ge.insert(n,i)}Me(n){this.we=!0,this.ge=this.ge.remove(n)}xe(){this.fe+=1}Oe(){this.fe-=1,W(this.fe>=0)}Ne(){this.we=!0,this.ye=!0}}class Uo{constructor(n){this.Le=n,this.Be=new Map,this.ke=Jn(),this.qe=fr(),this.Qe=new mr(Ve)}Ke(n){for(const i of n.Re)n.Ve&&n.Ve.isFoundDocument()?this.$e(i,n.Ve):this.Ue(i,n.key,n.Ve);for(const i of n.removedTargetIds)this.Ue(i,n.key,n.Ve)}We(n){this.forEachTarget(n,i=>{const s=this.Ge(i);switch(n.state){case 0:this.ze(i)&&s.De(n.resumeToken);break;case 1:s.Oe(),s.Se||s.ve(),s.De(n.resumeToken);break;case 2:s.Oe(),s.Se||this.removeTarget(i);break;case 3:this.ze(i)&&(s.Ne(),s.De(n.resumeToken));break;case 4:this.ze(i)&&(this.je(i),s.De(n.resumeToken));break;default:j()}})}forEachTarget(n,i){n.targetIds.length>0?n.targetIds.forEach(i):this.Be.forEach((s,u)=>{this.ze(u)&&i(u)})}He(n){const i=n.targetId,s=n.me.count,u=this.Je(i);if(u){const f=u.target;if(bo(f))if(0===s){const _=new Gt(f.path);this.Ue(i,_,cr.newNoDocument(_,en.min()))}else W(1===s);else{const _=this.Ye(i);if(_!==s){const w=this.Ze(n),N=w?this.Xe(w,n,_):1;0!==N&&(this.je(i),this.Qe=this.Qe.insert(i,2===N?"TargetPurposeExistenceFilterMismatchBloom":"TargetPurposeExistenceFilterMismatch"))}}}}Ze(n){const i=n.me.unchangedNames;if(!i||!i.bits)return null;const{bits:{bitmap:s="",padding:u=0},hashCount:f=0}=i;let _,w;try{_=jn(s).toUint8Array()}catch(N){if(N instanceof is)return pt("Decoding the base64 bloom filter in existence filter failed ("+N.message+"); ignoring the bloom filter and falling back to full re-query."),null;throw N}try{w=new Vn(_,u,f)}catch(N){return pt(N instanceof Kr?"BloomFilter error: ":"Applying bloom filter failed: ",N),null}return 0===w.Ie?null:w}Xe(n,i,s){return i.me.count===s-this.nt(n,i.targetId)?0:2}nt(n,i){const s=this.Le.getRemoteKeysForTarget(i);let u=0;return s.forEach(f=>{const _=this.Le.tt(),w=`projects/${_.projectId}/databases/${_.database}/documents/${f.path.canonicalString()}`;n.mightContain(w)||(this.Ue(i,f,null),u++)}),u}rt(n){const i=new Map;this.Be.forEach((f,_)=>{const w=this.Je(_);if(w){if(f.current&&bo(w.target)){const N=new Gt(w.target.path);null!==this.ke.get(N)||this.it(_,N)||this.Ue(_,N,cr.newNoDocument(N,n))}f.be&&(i.set(_,f.Ce()),f.ve())}});let s=vr();this.qe.forEach((f,_)=>{let w=!0;_.forEachWhile(N=>{const z=this.Je(N);return!z||"TargetPurposeLimboResolution"===z.purpose||(w=!1,!1)}),w&&(s=s.add(f))}),this.ke.forEach((f,_)=>_.setReadTime(n));const u=new Gi(n,i,this.Qe,this.ke,s);return this.ke=Jn(),this.qe=fr(),this.Qe=new mr(Ve),u}$e(n,i){if(!this.ze(n))return;const s=this.it(n,i.key)?2:0;this.Ge(n).Fe(i.key,s),this.ke=this.ke.insert(i.key,i),this.qe=this.qe.insert(i.key,this.st(i.key).add(n))}Ue(n,i,s){if(!this.ze(n))return;const u=this.Ge(n);this.it(n,i)?u.Fe(i,1):u.Me(i),this.qe=this.qe.insert(i,this.st(i).delete(n)),s&&(this.ke=this.ke.insert(i,s))}removeTarget(n){this.Be.delete(n)}Ye(n){const i=this.Ge(n).Ce();return this.Le.getRemoteKeysForTarget(n).size+i.addedDocuments.size-i.removedDocuments.size}xe(n){this.Ge(n).xe()}Ge(n){let i=this.Be.get(n);return i||(i=new zi,this.Be.set(n,i)),i}st(n){let i=this.qe.get(n);return i||(i=new kn(Ve),this.qe=this.qe.insert(n,i)),i}ze(n){const i=null!==this.Je(n);return i||Be("WatchChangeAggregator","Detected inactive target",n),i}Je(n){const i=this.Be.get(n);return i&&i.Se?null:this.Le.ot(n)}je(n){this.Be.set(n,new zi),this.Le.getRemoteKeysForTarget(n).forEach(i=>{this.Ue(n,i,null)})}it(n,i){return this.Le.getRemoteKeysForTarget(n).has(i)}}function fr(){return new mr(Gt.comparator)}function La(){return new mr(Gt.comparator)}const gc={asc:"ASCENDING",desc:"DESCENDING"},Ua={"<":"LESS_THAN","<=":"LESS_THAN_OR_EQUAL",">":"GREATER_THAN",">=":"GREATER_THAN_OR_EQUAL","==":"EQUAL","!=":"NOT_EQUAL","array-contains":"ARRAY_CONTAINS",in:"IN","not-in":"NOT_IN","array-contains-any":"ARRAY_CONTAINS_ANY"},Ki={and:"AND",or:"OR"};class va{constructor(n,i){this.databaseId=n,this.useProto3Json=i}}function es(l,n){return l.useProto3Json||ri(n)?n:{value:n}}function wo(l,n){return l.useProto3Json?`${new Date(1e3*n.seconds).toISOString().replace(/\.\d*/,"").replace("Z","")}.${("000000000"+n.nanoseconds).slice(-9)}Z`:{seconds:""+n.seconds,nanos:n.nanoseconds}}function Gs(l,n){return l.useProto3Json?n.toBase64():n.toUint8Array()}function jl(l,n){return wo(l,n.toTimestamp())}function Lr(l){return W(!!l),en.fromTimestamp(function(i){const s=Or(i);return new Xt(s.seconds,s.nanos)}(l))}function _a(l,n){return Ws(l,n).canonicalString()}function Ws(l,n){const i=(u=l,new gn(["projects",u.projectId,"databases",u.database])).child("documents");var u;return void 0===n?i:i.child(n)}function Dr(l){const n=gn.fromString(l);return W(Td(n)),n}function $a(l,n){return _a(l.databaseId,n.path)}function No(l,n){const i=Dr(n);if(i.get(1)!==l.databaseId.projectId)throw new me(ae.INVALID_ARGUMENT,"Tried to deserialize key from different project: "+i.get(1)+" vs "+l.databaseId.projectId);if(i.get(3)!==l.databaseId.database)throw new me(ae.INVALID_ARGUMENT,"Tried to deserialize key from different database: "+i.get(3)+" vs "+l.databaseId.database);return new Gt(Vi(i))}function $o(l,n){return _a(l.databaseId,n)}function Ks(l){return new gn(["projects",l.databaseId.projectId,"databases",l.databaseId.database]).canonicalString()}function Vi(l){return W(l.length>4&&"documents"===l.get(4)),l.popFirst(5)}function Su(l,n,i){return{name:$a(l,n),fields:i.value.mapValue.fields}}function Hl(l,n){return{documents:[$o(l,n.path)]}}function Gl(l,n){const i={structuredQuery:{}},s=n.path;let u;null!==n.collectionGroup?(u=s,i.structuredQuery.from=[{collectionId:n.collectionGroup,allDescendants:!0}]):(u=s.popLast(),i.structuredQuery.from=[{collectionId:s.lastSegment()}]),i.parent=$o(l,u);const f=function(z){if(0!==z.length)return Ad(Wr.create(z,"and"))}(n.filters);f&&(i.structuredQuery.where=f);const _=function(z){if(0!==z.length)return z.map(se=>{return{field:qs((We=se).field),direction:ja(We.dir)};var We})}(n.orderBy);_&&(i.structuredQuery.orderBy=_);const w=es(l,n.limit);return null!==w&&(i.structuredQuery.limit=w),n.startAt&&(i.structuredQuery.startAt={before:(z=n.startAt).inclusive,values:z.position}),n.endAt&&(i.structuredQuery.endAt=function(z){return{before:!z.inclusive,values:z.position}}(n.endAt)),{_t:i,parent:u};var z}function Ea(l){let n=function ya(l){const n=Dr(l);return 4===n.length?gn.emptyPath():Vi(n)}(l.parent);const i=l.structuredQuery,s=i.from?i.from.length:0;let u=null;if(s>0){W(1===s);const se=i.from[0];se.allDescendants?u=se.collectionId:n=n.child(se.collectionId)}let f=[];i.where&&(f=function(we){const We=Ba(we);return We instanceof Wr&&Ko(We)?We.getFilters():[We]}(i.where));let _=[];i.orderBy&&(_=i.orderBy.map(We=>{return new ci(Xs((tn=We).field),function(ln){switch(ln){case"ASCENDING":return"asc";case"DESCENDING":return"desc";default:return}}(tn.direction));var tn}));let w=null;i.limit&&(w=function(we){let We;return We="object"==typeof we?we.value:we,ri(We)?null:We}(i.limit));let N=null;var we;i.startAt&&(N=new nr((we=i.startAt).values||[],!!we.before));let z=null;return i.endAt&&(z=function(we){return new nr(we.values||[],!we.before)}(i.endAt)),function P(l,n,i,s,u,f,_,w){return new L(l,n,i,s,u,f,_,w)}(n,u,_,f,w,"F",N,z)}function Ba(l){return void 0!==l.unaryFilter?function(i){switch(i.unaryFilter.op){case"IS_NAN":const s=Xs(i.unaryFilter.field);return dr.create(s,"==",{doubleValue:NaN});case"IS_NULL":const u=Xs(i.unaryFilter.field);return dr.create(u,"==",{nullValue:"NULL_VALUE"});case"IS_NOT_NAN":const f=Xs(i.unaryFilter.field);return dr.create(f,"!=",{doubleValue:NaN});case"IS_NOT_NULL":const _=Xs(i.unaryFilter.field);return dr.create(_,"!=",{nullValue:"NULL_VALUE"});default:return j()}}(l):void 0!==l.fieldFilter?dr.create(Xs((i=l).fieldFilter.field),function(u){switch(u){case"EQUAL":return"==";case"NOT_EQUAL":return"!=";case"GREATER_THAN":return">";case"GREATER_THAN_OR_EQUAL":return">=";case"LESS_THAN":return"<";case"LESS_THAN_OR_EQUAL":return"<=";case"ARRAY_CONTAINS":return"array-contains";case"IN":return"in";case"NOT_IN":return"not-in";case"ARRAY_CONTAINS_ANY":return"array-contains-any";default:return j()}}(i.fieldFilter.op),i.fieldFilter.value):void 0!==l.compositeFilter?function(i){return Wr.create(i.compositeFilter.filters.map(s=>Ba(s)),function(u){switch(u){case"AND":return"and";case"OR":return"or";default:return j()}}(i.compositeFilter.op))}(l):j();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 Jt.fromServerFormat(l.fieldPath)}function Ad(l){return l instanceof dr?function(i){if("=="===i.op){if(et(i.value))return{unaryFilter:{field:qs(i.field),op:"IS_NAN"}};if(ot(i.value))return{unaryFilter:{field:qs(i.field),op:"IS_NULL"}}}else if("!="===i.op){if(et(i.value))return{unaryFilter:{field:qs(i.field),op:"IS_NOT_NAN"}};if(ot(i.value))return{unaryFilter:{field:qs(i.field),op:"IS_NOT_NULL"}}}return{fieldFilter:{field:qs(i.field),op:Gh(i.op),value:i.value}}}(l):l instanceof Wr?function(i){const s=i.getFilters().map(u=>Ad(u));return 1===s.length?s[0]:{compositeFilter:{op:mc(i.op),filters:s}}}(l):j()}function Cd(l){const n=[];return l.fields.forEach(i=>n.push(i.canonicalString())),{fieldPaths:n}}function Td(l){return l.length>=4&&"projects"===l.get(0)&&"databases"===l.get(2)}class Aa{constructor(n,i,s,u,f=en.min(),_=en.min(),w=si.EMPTY_BYTE_STRING,N=null){this.target=n,this.targetId=i,this.purpose=s,this.sequenceNumber=u,this.snapshotVersion=f,this.lastLimboFreeSnapshotVersion=_,this.resumeToken=w,this.expectedCount=N}withSequenceNumber(n){return new Aa(this.target,this.targetId,this.purpose,n,this.snapshotVersion,this.lastLimboFreeSnapshotVersion,this.resumeToken,this.expectedCount)}withResumeToken(n,i){return new Aa(this.target,this.targetId,this.purpose,this.sequenceNumber,i,this.lastLimboFreeSnapshotVersion,n,null)}withExpectedCount(n){return new Aa(this.target,this.targetId,this.purpose,this.sequenceNumber,this.snapshotVersion,this.lastLimboFreeSnapshotVersion,this.resumeToken,n)}withLastLimboFreeSnapshotVersion(n){return new Aa(this.target,this.targetId,this.purpose,this.sequenceNumber,this.snapshotVersion,n,this.resumeToken,this.expectedCount)}}class Wh{constructor(n){this.ct=n}}function ve(l){const n=Ea({parent:l.parent,structuredQuery:l.structuredQuery});return"LAST"===l.limitType?eo(n,n.limit,"L"):n}class Bo{constructor(){}Pt(n,i){this.It(n,i),i.Tt()}It(n,i){if("nullValue"in n)this.Et(i,5);else if("booleanValue"in n)this.Et(i,10),i.dt(n.booleanValue?1:0);else if("integerValue"in n)this.Et(i,15),i.dt(ai(n.integerValue));else if("doubleValue"in n){const s=ai(n.doubleValue);isNaN(s)?this.Et(i,13):(this.Et(i,15),xn(s)?i.dt(0):i.dt(s))}else if("timestampValue"in n){let s=n.timestampValue;this.Et(i,20),"string"==typeof s&&(s=Or(s)),i.At(`${s.seconds||""}`),i.dt(s.nanos||0)}else if("stringValue"in n)this.Rt(n.stringValue,i),this.Vt(i);else if("bytesValue"in n)this.Et(i,30),i.ft(jn(n.bytesValue)),this.Vt(i);else if("referenceValue"in n)this.gt(n.referenceValue,i);else if("geoPointValue"in n){const s=n.geoPointValue;this.Et(i,45),i.dt(s.latitude||0),i.dt(s.longitude||0)}else"mapValue"in n?Kt(n)?this.Et(i,Number.MAX_SAFE_INTEGER):(this.yt(n.mapValue,i),this.Vt(i)):"arrayValue"in n?(this.wt(n.arrayValue,i),this.Vt(i)):j()}Rt(n,i){this.Et(i,25),this.St(n,i)}St(n,i){i.At(n)}yt(n,i){const s=n.fields||{};this.Et(i,55);for(const u of Object.keys(s))this.Rt(u,i),this.It(s[u],i)}wt(n,i){const s=n.values||[];this.Et(i,50);for(const u of s)this.It(u,i)}gt(n,i){this.Et(i,37),Gt.fromName(n).path.forEach(s=>{this.Et(i,60),this.St(s,i)})}Et(n,i){n.dt(i)}Vt(n){n.dt(2)}}Bo.bt=new Bo;class Cs{constructor(){this._n=new yc}addToCollectionParentIndex(n,i){return this._n.add(i),oe.resolve()}getCollectionParents(n,i){return oe.resolve(this._n.getEntries(i))}addFieldIndex(n,i){return oe.resolve()}deleteFieldIndex(n,i){return oe.resolve()}deleteAllFieldIndexes(n){return oe.resolve()}createTargetIndexes(n,i){return oe.resolve()}getDocumentsMatchingTarget(n,i){return oe.resolve(null)}getIndexType(n,i){return oe.resolve(0)}getFieldIndexes(n,i){return oe.resolve([])}getNextCollectionGroupToUpdate(n){return oe.resolve(null)}getMinOffset(n,i){return oe.resolve(Sr.min())}getMinOffsetFromCollectionGroup(n,i){return oe.resolve(Sr.min())}updateCollectionGroup(n,i,s){return oe.resolve()}updateIndexEntries(n,i){return oe.resolve()}}class yc{constructor(){this.index={}}add(n){const i=n.lastSegment(),s=n.popLast(),u=this.index[i]||new kn(gn.comparator),f=!u.has(s);return this.index[i]=u.add(s),f}has(n){const i=n.lastSegment(),s=n.popLast(),u=this.index[i];return u&&u.has(s)}getEntries(n){return(this.index[n]||new kn(gn.comparator)).toArray()}}new Uint8Array(0);class Gn{constructor(n,i,s){this.cacheSizeCollectionThreshold=n,this.percentileToCollect=i,this.maximumSequenceNumbersToCollect=s}static withCacheSize(n){return new Gn(n,Gn.DEFAULT_COLLECTION_PERCENTILE,Gn.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT)}}Gn.DEFAULT_COLLECTION_PERCENTILE=10,Gn.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT=1e3,Gn.DEFAULT=new Gn(41943040,Gn.DEFAULT_COLLECTION_PERCENTILE,Gn.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT),Gn.DISABLED=new Gn(-1,0,0);class gl{constructor(n){this.On=n}next(){return this.On+=2,this.On}static Nn(){return new gl(0)}static Ln(){return new gl(-1)}}class Js{constructor(){this.changes=new as(n=>n.toString(),(n,i)=>n.isEqual(i)),this.changesApplied=!1}addEntry(n){this.assertNotApplied(),this.changes.set(n.key,n)}removeEntry(n,i){this.assertNotApplied(),this.changes.set(n,cr.newInvalidDocument(n).setReadTime(i))}getEntry(n,i){this.assertNotApplied();const s=this.changes.get(i);return void 0!==s?oe.resolve(s):this.getFromCache(n,i)}getEntries(n,i){return this.getAllFromCache(n,i)}apply(n){return this.assertNotApplied(),this.changesApplied=!0,this.applyChanges(n)}assertNotApplied(){}}class Ts{constructor(n,i){this.overlayedDocument=n,this.mutatedFields=i}}class na{constructor(n,i,s,u){this.remoteDocumentCache=n,this.mutationQueue=i,this.documentOverlayCache=s,this.indexManager=u}getDocument(n,i){let s=null;return this.documentOverlayCache.getOverlay(n,i).next(u=>(s=u,this.remoteDocumentCache.getEntry(n,i))).next(u=>(null!==s&&zs(s.mutation,u,Bi.empty(),Xt.now()),u))}getDocuments(n,i){return this.remoteDocumentCache.getEntries(n,i).next(s=>this.getLocalViewOfDocuments(n,s,vr()).next(()=>s))}getLocalViewOfDocuments(n,i,s=vr()){const u=Hr();return this.populateOverlays(n,u,i).next(()=>this.computeViews(n,i,u,s).next(f=>{let _=Ti();return f.forEach((w,N)=>{_=_.insert(w,N.overlayedDocument)}),_}))}getOverlayedDocuments(n,i){const s=Hr();return this.populateOverlays(n,s,i).next(()=>this.computeViews(n,i,s,vr()))}populateOverlays(n,i,s){const u=[];return s.forEach(f=>{i.has(f)||u.push(f)}),this.documentOverlayCache.getOverlays(n,u).next(f=>{f.forEach((_,w)=>{i.set(_,w)})})}computeViews(n,i,s,u){let f=Jn();const _=ls(),w=ls();return i.forEach((N,z)=>{const se=s.get(z.key);u.has(z.key)&&(void 0===se||se.mutation instanceof lo)?f=f.insert(z.key,z):void 0!==se?(_.set(z.key,se.mutation.getFieldMask()),zs(se.mutation,z,se.mutation.getFieldMask(),Xt.now())):_.set(z.key,Bi.empty())}),this.recalculateAndSaveOverlays(n,f).next(N=>(N.forEach((z,se)=>_.set(z,se)),i.forEach((z,se)=>{var we;return w.set(z,new Ts(se,null!==(we=_.get(z))&&void 0!==we?we:null))}),w))}recalculateAndSaveOverlays(n,i){const s=ls();let u=new mr((_,w)=>_-w),f=vr();return this.mutationQueue.getAllMutationBatchesAffectingDocumentKeys(n,i).next(_=>{for(const w of _)w.keys().forEach(N=>{const z=i.get(N);if(null===z)return;let se=s.get(N)||Bi.empty();se=w.applyToLocalView(z,se),s.set(N,se);const we=(u.get(w.batchId)||vr()).add(N);u=u.insert(w.batchId,we)})}).next(()=>{const _=[],w=u.getReverseIterator();for(;w.hasNext();){const N=w.getNext(),z=N.key,se=N.value,we=ll();se.forEach(We=>{if(!f.has(We)){const Rt=ga(i.get(We),s.get(We));null!==Rt&&we.set(We,Rt),f=f.add(We)}}),_.push(this.documentOverlayCache.saveOverlays(n,z,we))}return oe.waitFor(_)}).next(()=>s)}recalculateAndSaveOverlaysForDocumentKeys(n,i){return this.remoteDocumentCache.getEntries(n,i).next(s=>this.recalculateAndSaveOverlays(n,s))}getDocumentsMatchingQuery(n,i,s,u){return Gt.isDocumentKey((_=i).path)&&null===_.collectionGroup&&0===_.filters.length?this.getDocumentsMatchingDocumentQuery(n,i.path):function Te(l){return null!==l.collectionGroup}(i)?this.getDocumentsMatchingCollectionGroupQuery(n,i,s,u):this.getDocumentsMatchingCollectionQuery(n,i,s,u);var _}getNextDocuments(n,i,s,u){return this.remoteDocumentCache.getAllFromCollectionGroup(n,i,s,u).next(f=>{const _=u-f.size>0?this.documentOverlayCache.getOverlaysForCollectionGroup(n,i,s.largestBatchId,u-f.size):oe.resolve(Hr());let w=-1,N=f;return _.next(z=>oe.forEach(z,(se,we)=>(w{N=N.insert(se,We)}))).next(()=>this.populateOverlays(n,z,f)).next(()=>this.computeViews(n,N,z,vr())).next(se=>({batchId:w,changes:ro(se)})))})}getDocumentsMatchingDocumentQuery(n,i){return this.getDocument(n,new Gt(i)).next(s=>{let u=Ti();return s.isFoundDocument()&&(u=u.insert(s.key,s)),u})}getDocumentsMatchingCollectionGroupQuery(n,i,s,u){const f=i.collectionGroup;let _=Ti();return this.indexManager.getCollectionParents(n,f).next(w=>oe.forEach(w,N=>{const z=(we=i,We=N.child(f),new L(We,null,we.explicitOrderBy.slice(),we.filters.slice(),we.limit,we.limitType,we.startAt,we.endAt));var we,We;return this.getDocumentsMatchingCollectionQuery(n,z,s,u).next(se=>{se.forEach((we,We)=>{_=_.insert(we,We)})})}).next(()=>_))}getDocumentsMatchingCollectionQuery(n,i,s,u){let f;return this.documentOverlayCache.getOverlaysForCollection(n,i.path,s.largestBatchId).next(_=>(f=_,this.remoteDocumentCache.getDocumentsMatchingQuery(n,i,s,f,u))).next(_=>{f.forEach((N,z)=>{const se=z.getKey();null===_.get(se)&&(_=_.insert(se,cr.newInvalidDocument(se)))});let w=Ti();return _.forEach((N,z)=>{const se=f.get(N);void 0!==se&&zs(se.mutation,z,Bi.empty(),Xt.now()),Bs(i,z)&&(w=w.insert(N,z))}),w})}}class ng{constructor(n){this.serializer=n,this.cr=new Map,this.lr=new Map}getBundleMetadata(n,i){return oe.resolve(this.cr.get(i))}saveBundleMetadata(n,i){return this.cr.set(i.id,{id:(u=i).id,version:u.version,createTime:Lr(u.createTime)}),oe.resolve();var u}getNamedQuery(n,i){return oe.resolve(this.lr.get(i))}saveNamedQuery(n,i){return this.lr.set(i.name,{name:(u=i).name,query:ve(u.bundledQuery),readTime:Lr(u.readTime)}),oe.resolve();var u}}class Tc{constructor(){this.overlays=new mr(Gt.comparator),this.hr=new Map}getOverlay(n,i){return oe.resolve(this.overlays.get(i))}getOverlays(n,i){const s=Hr();return oe.forEach(i,u=>this.getOverlay(n,u).next(f=>{null!==f&&s.set(u,f)})).next(()=>s)}saveOverlays(n,i,s){return s.forEach((u,f)=>{this.ht(n,i,f)}),oe.resolve()}removeOverlaysForBatchId(n,i,s){const u=this.hr.get(s);return void 0!==u&&(u.forEach(f=>this.overlays=this.overlays.remove(f)),this.hr.delete(s)),oe.resolve()}getOverlaysForCollection(n,i,s){const u=Hr(),f=i.length+1,_=new Gt(i.child("")),w=this.overlays.getIteratorFrom(_);for(;w.hasNext();){const N=w.getNext().value,z=N.getKey();if(!i.isPrefixOf(z.path))break;z.path.length===f&&N.largestBatchId>s&&u.set(N.getKey(),N)}return oe.resolve(u)}getOverlaysForCollectionGroup(n,i,s,u){let f=new mr((z,se)=>z-se);const _=this.overlays.getIterator();for(;_.hasNext();){const z=_.getNext().value;if(z.getKey().getCollectionGroup()===i&&z.largestBatchId>s){let se=f.get(z.largestBatchId);null===se&&(se=Hr(),f=f.insert(z.largestBatchId,se)),se.set(z.getKey(),z)}}const w=Hr(),N=f.getIterator();for(;N.hasNext()&&(N.getNext().value.forEach((z,se)=>w.set(z,se)),!(w.size()>=u)););return oe.resolve(w)}ht(n,i,s){const u=this.overlays.get(s.key);if(null!==u){const _=this.hr.get(u.largestBatchId).delete(s.key);this.hr.set(u.largestBatchId,_)}this.overlays=this.overlays.insert(s.key,new xe(i,s));let f=this.hr.get(i);void 0===f&&(f=vr(),this.hr.set(i,f)),this.hr.set(i,f.add(s.key))}}class Md{constructor(){this.Pr=new kn(Io.Ir),this.Tr=new kn(Io.Er)}isEmpty(){return this.Pr.isEmpty()}addReference(n,i){const s=new Io(n,i);this.Pr=this.Pr.add(s),this.Tr=this.Tr.add(s)}dr(n,i){n.forEach(s=>this.addReference(s,i))}removeReference(n,i){this.Ar(new Io(n,i))}Rr(n,i){n.forEach(s=>this.removeReference(s,i))}Vr(n){const i=new Gt(new gn([])),s=new Io(i,n),u=new Io(i,n+1),f=[];return this.Tr.forEachInRange([s,u],_=>{this.Ar(_),f.push(_.key)}),f}mr(){this.Pr.forEach(n=>this.Ar(n))}Ar(n){this.Pr=this.Pr.delete(n),this.Tr=this.Tr.delete(n)}gr(n){const i=new Gt(new gn([])),s=new Io(i,n),u=new Io(i,n+1);let f=vr();return this.Tr.forEachInRange([s,u],_=>{f=f.add(_.key)}),f}containsKey(n){const i=new Io(n,0),s=this.Pr.firstAfterOrEqual(i);return null!==s&&n.isEqual(s.key)}}class Io{constructor(n,i){this.key=n,this.pr=i}static Ir(n,i){return Gt.comparator(n.key,i.key)||Ve(n.pr,i.pr)}static Er(n,i){return Ve(n.pr,i.pr)||Gt.comparator(n.key,i.key)}}class Pd{constructor(n,i){this.indexManager=n,this.referenceDelegate=i,this.mutationQueue=[],this.yr=1,this.wr=new kn(Io.Ir)}checkEmpty(n){return oe.resolve(0===this.mutationQueue.length)}addMutationBatch(n,i,s,u){const f=this.yr;this.yr++;const _=new O(f,i,s,u);this.mutationQueue.push(_);for(const w of u)this.wr=this.wr.add(new Io(w.key,f)),this.indexManager.addToCollectionParentIndex(n,w.key.path.popLast());return oe.resolve(_)}lookupMutationBatch(n,i){return oe.resolve(this.Sr(i))}getNextMutationBatchAfterBatchId(n,i){const u=this.br(i+1),f=u<0?0:u;return oe.resolve(this.mutationQueue.length>f?this.mutationQueue[f]:null)}getHighestUnacknowledgedBatchId(){return oe.resolve(0===this.mutationQueue.length?-1:this.yr-1)}getAllMutationBatches(n){return oe.resolve(this.mutationQueue.slice())}getAllMutationBatchesAffectingDocumentKey(n,i){const s=new Io(i,0),u=new Io(i,Number.POSITIVE_INFINITY),f=[];return this.wr.forEachInRange([s,u],_=>{const w=this.Sr(_.pr);f.push(w)}),oe.resolve(f)}getAllMutationBatchesAffectingDocumentKeys(n,i){let s=new kn(Ve);return i.forEach(u=>{const f=new Io(u,0),_=new Io(u,Number.POSITIVE_INFINITY);this.wr.forEachInRange([f,_],w=>{s=s.add(w.pr)})}),oe.resolve(this.Dr(s))}getAllMutationBatchesAffectingQuery(n,i){const s=i.path,u=s.length+1;let f=s;Gt.isDocumentKey(f)||(f=f.child(""));const _=new Io(new Gt(f),0);let w=new kn(Ve);return this.wr.forEachWhile(N=>{const z=N.key.path;return!!s.isPrefixOf(z)&&(z.length===u&&(w=w.add(N.pr)),!0)},_),oe.resolve(this.Dr(w))}Dr(n){const i=[];return n.forEach(s=>{const u=this.Sr(s);null!==u&&i.push(u)}),i}removeMutationBatch(n,i){W(0===this.Cr(i.batchId,"removed")),this.mutationQueue.shift();let s=this.wr;return oe.forEach(i.mutations,u=>{const f=new Io(u.key,i.batchId);return s=s.delete(f),this.referenceDelegate.markPotentiallyOrphaned(n,u.key)}).next(()=>{this.wr=s})}Mn(n){}containsKey(n,i){const s=new Io(i,0),u=this.wr.firstAfterOrEqual(s);return oe.resolve(i.isEqual(u&&u.key))}performConsistencyCheck(n){return oe.resolve()}Cr(n,i){return this.br(n)}br(n){return 0===this.mutationQueue.length?0:n-this.mutationQueue[0].batchId}Sr(n){const i=this.br(n);return i<0||i>=this.mutationQueue.length?null:this.mutationQueue[i]}}class Ou{constructor(n){this.vr=n,this.docs=new mr(Gt.comparator),this.size=0}setIndexManager(n){this.indexManager=n}addEntry(n,i){const s=i.key,u=this.docs.get(s),f=u?u.size:0,_=this.vr(i);return this.docs=this.docs.insert(s,{document:i.mutableCopy(),size:_}),this.size+=_-f,this.indexManager.addToCollectionParentIndex(n,s.path.popLast())}removeEntry(n){const i=this.docs.get(n);i&&(this.docs=this.docs.remove(n),this.size-=i.size)}getEntry(n,i){const s=this.docs.get(i);return oe.resolve(s?s.document.mutableCopy():cr.newInvalidDocument(i))}getEntries(n,i){let s=Jn();return i.forEach(u=>{const f=this.docs.get(u);s=s.insert(u,f?f.document.mutableCopy():cr.newInvalidDocument(u))}),oe.resolve(s)}getDocumentsMatchingQuery(n,i,s,u){let f=Jn();const _=i.path,w=new Gt(_.child("")),N=this.docs.getIteratorFrom(w);for(;N.hasNext();){const{key:z,value:{document:se}}=N.getNext();if(!_.isPrefixOf(z.path))break;z.path.length>_.length+1||tr(new Sr((l=se).readTime,l.key,-1),s)<=0||(u.has(se.key)||Bs(i,se))&&(f=f.insert(se.key,se.mutableCopy()))}var l;return oe.resolve(f)}getAllFromCollectionGroup(n,i,s,u){j()}Fr(n,i){return oe.forEach(this.docs,s=>i(s))}newChangeBuffer(n){return new xd(this)}getSize(n){return oe.resolve(this.size)}}class xd extends Js{constructor(n){super(),this.ar=n}applyChanges(n){const i=[];return this.changes.forEach((s,u)=>{u.isValidDocument()?i.push(this.ar.addEntry(n,u)):this.ar.removeEntry(s)}),oe.waitFor(i)}getFromCache(n,i){return this.ar.getEntry(n,i)}getAllFromCache(n,i){return this.ar.getEntries(n,i)}}class Dc{constructor(n){this.persistence=n,this.Mr=new as(i=>bs(i),Xo),this.lastRemoteSnapshotVersion=en.min(),this.highestTargetId=0,this.Or=0,this.Nr=new Md,this.targetCount=0,this.Lr=gl.Nn()}forEachTarget(n,i){return this.Mr.forEach((s,u)=>i(u)),oe.resolve()}getLastRemoteSnapshotVersion(n){return oe.resolve(this.lastRemoteSnapshotVersion)}getHighestSequenceNumber(n){return oe.resolve(this.Or)}allocateTargetId(n){return this.highestTargetId=this.Lr.next(),oe.resolve(this.highestTargetId)}setTargetsMetadata(n,i,s){return s&&(this.lastRemoteSnapshotVersion=s),i>this.Or&&(this.Or=i),oe.resolve()}qn(n){this.Mr.set(n.target,n);const i=n.targetId;i>this.highestTargetId&&(this.Lr=new gl(i),this.highestTargetId=i),n.sequenceNumber>this.Or&&(this.Or=n.sequenceNumber)}addTargetData(n,i){return this.qn(i),this.targetCount+=1,oe.resolve()}updateTargetData(n,i){return this.qn(i),oe.resolve()}removeTargetData(n,i){return this.Mr.delete(i.target),this.Nr.Vr(i.targetId),this.targetCount-=1,oe.resolve()}removeTargets(n,i,s){let u=0;const f=[];return this.Mr.forEach((_,w)=>{w.sequenceNumber<=i&&null===s.get(w.targetId)&&(this.Mr.delete(_),f.push(this.removeMatchingKeysForTargetId(n,w.targetId)),u++)}),oe.waitFor(f).next(()=>u)}getTargetCount(n){return oe.resolve(this.targetCount)}getTargetData(n,i){const s=this.Mr.get(i)||null;return oe.resolve(s)}addMatchingKeys(n,i,s){return this.Nr.dr(i,s),oe.resolve()}removeMatchingKeys(n,i,s){this.Nr.Rr(i,s);const u=this.persistence.referenceDelegate,f=[];return u&&i.forEach(_=>{f.push(u.markPotentiallyOrphaned(n,_))}),oe.waitFor(f)}removeMatchingKeysForTargetId(n,i){return this.Nr.Vr(i),oe.resolve()}getMatchingKeysForTargetId(n,i){const s=this.Nr.gr(i);return oe.resolve(s)}containsKey(n,i){return oe.resolve(this.Nr.containsKey(i))}}class bc{constructor(n,i){this.Br={},this.overlays={},this.kr=new ur(0),this.qr=!1,this.qr=!0,this.referenceDelegate=n(this),this.Qr=new Dc(this),this.indexManager=new Cs,this.remoteDocumentCache=new Ou(s=>this.referenceDelegate.Kr(s)),this.serializer=new Wh(i),this.$r=new ng(this.serializer)}start(){return Promise.resolve()}shutdown(){return this.qr=!1,Promise.resolve()}get started(){return this.qr}setDatabaseDeletedListener(){}setNetworkEnabled(){}getIndexManager(n){return this.indexManager}getDocumentOverlayCache(n){let i=this.overlays[n.toKey()];return i||(i=new Tc,this.overlays[n.toKey()]=i),i}getMutationQueue(n,i){let s=this.Br[n.toKey()];return s||(s=new Pd(i,this.referenceDelegate),this.Br[n.toKey()]=s),s}getTargetCache(){return this.Qr}getRemoteDocumentCache(){return this.remoteDocumentCache}getBundleCache(){return this.$r}runTransaction(n,i,s){Be("MemoryPersistence","Starting transaction:",n);const u=new Yh(this.kr.next());return this.referenceDelegate.Ur(),s(u).next(f=>this.referenceDelegate.Wr(u).next(()=>f)).toPromise().then(f=>(u.raiseOnCommittedEvent(),f))}Gr(n,i){return oe.or(Object.values(this.Br).map(s=>()=>s.containsKey(n,i)))}}class Yh extends Mi{constructor(n){super(),this.currentSequenceNumber=n}}class Da{constructor(n){this.persistence=n,this.zr=new Md,this.jr=null}static Hr(n){return new Da(n)}get Jr(){if(this.jr)return this.jr;throw j()}addReference(n,i,s){return this.zr.addReference(s,i),this.Jr.delete(s.toString()),oe.resolve()}removeReference(n,i,s){return this.zr.removeReference(s,i),this.Jr.add(s.toString()),oe.resolve()}markPotentiallyOrphaned(n,i){return this.Jr.add(i.toString()),oe.resolve()}removeTarget(n,i){this.zr.Vr(i.targetId).forEach(u=>this.Jr.add(u.toString()));const s=this.persistence.getTargetCache();return s.getMatchingKeysForTargetId(n,i.targetId).next(u=>{u.forEach(f=>this.Jr.add(f.toString()))}).next(()=>s.removeTargetData(n,i))}Ur(){this.jr=new Set}Wr(n){const i=this.persistence.getRemoteDocumentCache().newChangeBuffer();return oe.forEach(this.Jr,s=>{const u=Gt.fromPath(s);return this.Yr(n,u).next(f=>{f||i.removeEntry(u,en.min())})}).next(()=>(this.jr=null,i.apply(n)))}updateLimboDocument(n,i){return this.Yr(n,i).next(s=>{s?this.Jr.delete(i.toString()):this.Jr.add(i.toString())})}Kr(n){return 0}Yr(n,i){return oe.or([()=>oe.resolve(this.zr.containsKey(i)),()=>this.persistence.getTargetCache().containsKey(n,i),()=>this.persistence.Gr(n,i)])}}class yi{constructor(n,i,s,u){this.targetId=n,this.fromCache=i,this.qi=s,this.Qi=u}static Ki(n,i){let s=vr(),u=vr();for(const f of i.docChanges)switch(f.type){case 0:s=s.add(f.doc.key);break;case 1:u=u.add(f.doc.key)}return new yi(n,i.fromCache,s,u)}}class rg{constructor(){this._documentReadCount=0}get documentReadCount(){return this._documentReadCount}incrementDocumentReadCount(n){this._documentReadCount+=n}}class Jh{constructor(){this.$i=!1,this.Ui=!1,this.Wi=100,this.Gi=(0,De.nr)()?8:function Xe(l){const n=l.match(/Android ([\d.]+)/i),i=n?n[1].split(".").slice(0,2).join("."):"-1";return Number(i)}((0,De.ZQ)())>0?6:4}initialize(n,i){this.zi=n,this.indexManager=i,this.$i=!0}getDocumentsMatchingQuery(n,i,s,u){const f={result:null};return this.ji(n,i).next(_=>{f.result=_}).next(()=>{if(!f.result)return this.Hi(n,i,u,s).next(_=>{f.result=_})}).next(()=>{if(f.result)return;const _=new rg;return this.Ji(n,i,_).next(w=>{if(f.result=w,this.Ui)return this.Yi(n,i,_,w.size)})}).next(()=>f.result)}Yi(n,i,s,u){return s.documentReadCountthis.Gi*u?(Zt()<=Je.$b.DEBUG&&Be("QueryEngine","The SDK decides to create cache indexes for query:",vs(i),"as using cache indexes may help improve performance."),this.indexManager.createTargetIndexes(n,On(i))):oe.resolve())}ji(n,i){if($(i))return oe.resolve(null);let s=On(i);return this.indexManager.getIndexType(n,s).next(u=>0===u?null:(null!==i.limit&&1===u&&(i=eo(i,null,"F"),s=On(i)),this.indexManager.getDocumentsMatchingTarget(n,s).next(f=>{const _=vr(...f);return this.zi.getDocuments(n,_).next(w=>this.indexManager.getMinOffset(n,s).next(N=>{const z=this.Zi(i,w);return this.Xi(i,z,_,N.readTime)?this.ji(n,eo(i,null,"F")):this.es(n,z,i,N)}))})))}Hi(n,i,s,u){return $(i)||u.isEqual(en.min())?oe.resolve(null):this.zi.getDocuments(n,s).next(f=>{const _=this.Zi(i,f);return this.Xi(i,_,s,u)?oe.resolve(null):(Zt()<=Je.$b.DEBUG&&Be("QueryEngine","Re-using previous result from %s to execute query: %s",u.toString(),vs(i)),this.es(n,_,i,function Zn(l,n){const i=l.toTimestamp().seconds,s=l.toTimestamp().nanoseconds+1,u=en.fromTimestamp(1e9===s?new Xt(i+1,0):new Xt(i,s));return new Sr(u,Gt.empty(),n)}(u,-1)).next(w=>w))})}Zi(n,i){let s=new kn(sl(n));return i.forEach((u,f)=>{Bs(n,f)&&(s=s.add(f))}),s}Xi(n,i,s,u){if(null===n.limit)return!1;if(s.size!==i.size)return!0;const f="F"===n.limitType?i.last():i.first();return!!f&&(f.hasPendingWrites||f.version.compareTo(u)>0)}Ji(n,i,s){return Zt()<=Je.$b.DEBUG&&Be("QueryEngine","Using full collection scan to execute query:",vs(i)),this.zi.getDocumentsMatchingQuery(n,i,Sr.min(),s)}es(n,i,s,u){return this.zi.getDocumentsMatchingQuery(n,s,u).next(f=>(i.forEach(_=>{f=f.insert(_.key,_)}),f))}}class ig{constructor(n,i,s,u){this.persistence=n,this.ts=i,this.serializer=u,this.ns=new mr(Ve),this.rs=new as(f=>bs(f),Xo),this.ss=new Map,this.os=n.getRemoteDocumentCache(),this.Qr=n.getTargetCache(),this.$r=n.getBundleCache(),this._s(s)}_s(n){this.documentOverlayCache=this.persistence.getDocumentOverlayCache(n),this.indexManager=this.persistence.getIndexManager(n),this.mutationQueue=this.persistence.getMutationQueue(n,this.indexManager),this.localDocuments=new na(this.os,this.mutationQueue,this.documentOverlayCache,this.indexManager),this.os.setIndexManager(this.indexManager),this.ts.initialize(this.localDocuments,this.indexManager)}collectGarbage(n){return this.persistence.runTransaction("Collect garbage","readwrite-primary",i=>n.collect(i,this.ns))}}function Od(l,n){return Lu.apply(this,arguments)}function Lu(){return(Lu=(0,Ee.A)(function*(l,n){const i=de(l);return yield i.persistence.runTransaction("Handle user change","readonly",s=>{let u;return i.mutationQueue.getAllMutationBatches(s).next(f=>(u=f,i._s(n),i.mutationQueue.getAllMutationBatches(s))).next(f=>{const _=[],w=[];let N=vr();for(const z of u){_.push(z.batchId);for(const se of z.mutations)N=N.add(se.key)}for(const z of f){w.push(z.batchId);for(const se of z.mutations)N=N.add(se.key)}return i.localDocuments.getDocuments(s,N).next(z=>({us:z,removedBatchIds:_,addedBatchIds:w}))})})})).apply(this,arguments)}function Ns(l){const n=de(l);return n.persistence.runTransaction("Get last remote snapshot version","readonly",i=>n.Qr.getLastRemoteSnapshotVersion(i))}function Sc(l,n){const i=de(l);return i.persistence.runTransaction("Get next mutation batch","readonly",s=>(void 0===n&&(n=-1),i.mutationQueue.getNextMutationBatchAfterBatchId(s,n)))}function ia(l,n,i){return Rc.apply(this,arguments)}function Rc(){return(Rc=(0,Ee.A)(function*(l,n,i){const s=de(l),u=s.ns.get(n),f=i?"readwrite":"readwrite-primary";try{i||(yield s.persistence.runTransaction("Release target",f,_=>s.persistence.referenceDelegate.removeTarget(_,u)))}catch(_){if(!Pe(_))throw _;Be("LocalStore",`Failed to update sequence numbers for target ${n}: ${_}`)}s.ns=s.ns.remove(n),s.rs.delete(u.target)})).apply(this,arguments)}function vl(l,n,i){const s=de(l);let u=en.min(),f=vr();return s.persistence.runTransaction("Execute query","readwrite",_=>function(N,z,se){const we=de(N),We=we.rs.get(se);return void 0!==We?oe.resolve(we.ns.get(We)):we.Qr.getTargetData(z,se)}(s,_,On(n)).next(w=>{if(w)return u=w.lastLimboFreeSnapshotVersion,s.Qr.getMatchingKeysForTargetId(_,w.targetId).next(N=>{f=N})}).next(()=>s.ts.getDocumentsMatchingQuery(_,n,i?u:en.min(),i?f:vr())).next(w=>(function yl(l,n,i){let s=l.ss.get(n)||en.min();i.forEach((u,f)=>{f.readTime.compareTo(s)>0&&(s=f.readTime)}),l.ss.set(n,s)}(s,function Oa(l){return l.collectionGroup||(l.path.length%2==1?l.path.lastSegment():l.path.get(l.path.length-2))}(n),w),{documents:w,hs:f})))}class ju{constructor(){this.activeTargetIds=function ys(){return ul}()}As(n){this.activeTargetIds=this.activeTargetIds.add(n)}Rs(n){this.activeTargetIds=this.activeTargetIds.delete(n)}ds(){const n={activeTargetIds:this.activeTargetIds.toArray(),updateTimeMs:Date.now()};return JSON.stringify(n)}}class rf{constructor(){this.no=new ju,this.ro={},this.onlineStateHandler=null,this.sequenceNumberHandler=null}addPendingMutation(n){}updateMutationState(n,i,s){}addLocalQueryTarget(n){return this.no.As(n),this.ro[n]||"not-current"}updateQueryState(n,i,s){this.ro[n]=i}removeLocalQueryTarget(n){this.no.Rs(n)}isLocalQueryTarget(n){return this.no.activeTargetIds.has(n)}clearQueryState(n){delete this.ro[n]}getAllActiveQueryTargets(){return this.no.activeTargetIds}isActiveQueryTarget(n){return this.no.activeTargetIds.has(n)}start(){return this.no=new ju,Promise.resolve()}handleUserChange(n,i,s){}setOnlineState(n){}shutdown(){}writeSequenceNumber(n){}notifyBundleLoaded(n){}}class sf{io(n){}shutdown(){}}class Vd{constructor(){this.so=()=>this.oo(),this._o=()=>this.ao(),this.uo=[],this.co()}io(n){this.uo.push(n)}shutdown(){window.removeEventListener("online",this.so),window.removeEventListener("offline",this._o)}co(){window.addEventListener("online",this.so),window.addEventListener("offline",this._o)}oo(){Be("ConnectivityMonitor","Network connectivity changed: AVAILABLE");for(const n of this.uo)n(0)}ao(){Be("ConnectivityMonitor","Network connectivity changed: UNAVAILABLE");for(const n of this.uo)n(1)}static D(){return typeof window<"u"&&void 0!==window.addEventListener&&void 0!==window.removeEventListener}}let Nc=null;function Ds(){return null===Nc?Nc=268435456+Math.round(2147483648*Math.random()):Nc++,"0x"+Nc.toString(16)}const cv={BatchGetDocuments:"batchGet",Commit:"commit",RunQuery:"runQuery",RunAggregationQuery:"runAggregationQuery"};class zu{constructor(n){this.lo=n.lo,this.ho=n.ho}Po(n){this.Io=n}To(n){this.Eo=n}Ao(n){this.Ro=n}onMessage(n){this.Vo=n}close(){this.ho()}send(n){this.lo(n)}mo(){this.Io()}fo(){this.Eo()}po(n){this.Ro(n)}yo(n){this.Vo(n)}}const Ro="WebChannelConnection";class Ld extends class{constructor(i){this.databaseInfo=i,this.databaseId=i.databaseId;const s=i.ssl?"https":"http",u=encodeURIComponent(this.databaseId.projectId),f=encodeURIComponent(this.databaseId.database);this.wo=s+"://"+i.host,this.So=`projects/${u}/databases/${f}`,this.bo="(default)"===this.databaseId.database?`project_id=${u}`:`project_id=${u}&database_id=${f}`}get Do(){return!1}Co(i,s,u,f,_){const w=Ds(),N=this.vo(i,s.toUriEncodedString());Be("RestConnection",`Sending RPC '${i}' ${w}:`,N,u);const z={"google-cloud-resource-prefix":this.So,"x-goog-request-params":this.bo};return this.Fo(z,f,_),this.Mo(i,N,z,u).then(se=>(Be("RestConnection",`Received RPC '${i}' ${w}: `,se),se),se=>{throw pt("RestConnection",`RPC '${i}' ${w} failed with error: `,se,"url: ",N,"request:",u),se})}xo(i,s,u,f,_,w){return this.Co(i,s,u,f,_)}Fo(i,s,u){i["X-Goog-Api-Client"]="gl-js/ fire/"+Tt,i["Content-Type"]="text/plain",this.databaseInfo.appId&&(i["X-Firebase-GMPID"]=this.databaseInfo.appId),s&&s.headers.forEach((f,_)=>i[_]=f),u&&u.headers.forEach((f,_)=>i[_]=f)}vo(i,s){return`${this.wo}/v1/${s}:${cv[i]}`}terminate(){}}{constructor(n){super(n),this.forceLongPolling=n.forceLongPolling,this.autoDetectLongPolling=n.autoDetectLongPolling,this.useFetchStreams=n.useFetchStreams,this.longPollingOptions=n.longPollingOptions}Mo(n,i,s,u){const f=Ds();return new Promise((_,w)=>{const N=new ut;N.setWithCredentials(!0),N.listenOnce(mt.COMPLETE,()=>{try{switch(N.getLastErrorCode()){case vt.NO_ERROR:const se=N.getResponseJson();Be(Ro,`XHR for RPC '${n}' ${f} received:`,JSON.stringify(se)),_(se);break;case vt.TIMEOUT:Be(Ro,`RPC '${n}' ${f} timed out`),w(new me(ae.DEADLINE_EXCEEDED,"Request time out"));break;case vt.HTTP_ERROR:const we=N.getStatus();if(Be(Ro,`RPC '${n}' ${f} failed with status:`,we,"response text:",N.getResponseText()),we>0){let We=N.getResponseJson();Array.isArray(We)&&(We=We[0]);const Rt=null==We?void 0:We.error;if(Rt&&Rt.status&&Rt.message){const tn=function(ln){const zn=ln.toLowerCase().replace(/_/g,"-");return Object.values(ae).indexOf(zn)>=0?zn:ae.UNKNOWN}(Rt.status);w(new me(tn,Rt.message))}else w(new me(ae.UNKNOWN,"Server responded with status "+N.getStatus()))}else w(new me(ae.UNAVAILABLE,"Connection failed."));break;default:j()}}finally{Be(Ro,`RPC '${n}' ${f} completed.`)}});const z=JSON.stringify(u);Be(Ro,`RPC '${n}' ${f} sending request:`,u),N.send(i,"POST",z,s,15)})}Oo(n,i,s){const u=Ds(),f=[this.wo,"/","google.firestore.v1.Firestore","/",n,"/channel"],_=Ct(),w=Ke(),N={httpSessionIdParam:"gsessionid",initMessageHeaders:{},messageUrlParams:{database:`projects/${this.databaseId.projectId}/databases/${this.databaseId.database}`},sendRawJson:!0,supportsCrossDomainXhr:!0,internalChannelParams:{forwardChannelRequestTimeoutMs:6e5},forceLongPolling:this.forceLongPolling,detectBufferingProxy:this.autoDetectLongPolling},z=this.longPollingOptions.timeoutSeconds;void 0!==z&&(N.longPollingTimeout=Math.round(1e3*z)),this.useFetchStreams&&(N.xmlHttpFactory=new st({})),this.Fo(N.initMessageHeaders,i,s),N.encodeInitMessageHeaders=!0;const se=f.join("");Be(Ro,`Creating RPC '${n}' stream ${u}: ${se}`,N);const we=_.createWebChannel(se,N);let We=!1,Rt=!1;const tn=new zu({lo:ln=>{Rt?Be(Ro,`Not sending because RPC '${n}' stream ${u} is closed:`,ln):(We||(Be(Ro,`Opening RPC '${n}' stream ${u} transport.`),we.open(),We=!0),Be(Ro,`RPC '${n}' stream ${u} sending:`,ln),we.send(ln))},ho:()=>we.close()}),pn=(ln,zn,lr)=>{ln.listen(zn,Qn=>{try{lr(Qn)}catch(Rr){setTimeout(()=>{throw Rr},0)}})};return pn(we,Mt.EventType.OPEN,()=>{Rt||(Be(Ro,`RPC '${n}' stream ${u} transport opened.`),tn.mo())}),pn(we,Mt.EventType.CLOSE,()=>{Rt||(Rt=!0,Be(Ro,`RPC '${n}' stream ${u} transport closed`),tn.po())}),pn(we,Mt.EventType.ERROR,ln=>{Rt||(Rt=!0,pt(Ro,`RPC '${n}' stream ${u} transport errored:`,ln),tn.po(new me(ae.UNAVAILABLE,"The operation could not be completed")))}),pn(we,Mt.EventType.MESSAGE,ln=>{var zn;if(!Rt){const lr=ln.data[0];W(!!lr);const Rr=lr.error||(null===(zn=lr[0])||void 0===zn?void 0:zn.error);if(Rr){Be(Ro,`RPC '${n}' stream ${u} received error:`,Rr);const Ii=Rr.status;let zr=function(tt){const gt=Un[tt];if(void 0!==gt)return Tr(gt)}(Ii),ht=Rr.message;void 0===zr&&(zr=ae.INTERNAL,ht="Unknown error status: "+Ii+" with message "+Rr.message),Rt=!0,tn.po(new me(zr,ht)),we.close()}else Be(Ro,`RPC '${n}' stream ${u} received:`,lr),tn.yo(lr)}}),pn(w,je.STAT_EVENT,ln=>{ln.stat===Me.PROXY?Be(Ro,`RPC '${n}' stream ${u} detected buffering proxy`):ln.stat===Me.NOPROXY&&Be(Ro,`RPC '${n}' stream ${u} detected no buffering proxy`)}),setTimeout(()=>{tn.fo()},0),tn}}function Al(){return typeof document<"u"?document:null}function Oc(l){return new va(l,!0)}class eu{constructor(n,i,s=1e3,u=1.5,f=6e4){this.oi=n,this.timerId=i,this.No=s,this.Lo=u,this.Bo=f,this.ko=0,this.qo=null,this.Qo=Date.now(),this.reset()}reset(){this.ko=0}Ko(){this.ko=this.Bo}$o(n){this.cancel();const i=Math.floor(this.ko+this.Uo()),s=Math.max(0,Date.now()-this.Qo),u=Math.max(0,i-s);u>0&&Be("ExponentialBackoff",`Backing off for ${u} ms (base delay: ${this.ko} ms, delay with jitter: ${i} ms, last attempt: ${s} ms ago)`),this.qo=this.oi.enqueueAfterDelay(this.timerId,u,()=>(this.Qo=Date.now(),n())),this.ko*=this.Lo,this.kothis.Bo&&(this.ko=this.Bo)}Wo(){null!==this.qo&&(this.qo.skipDelay(),this.qo=null)}cancel(){null!==this.qo&&(this.qo.cancel(),this.qo=null)}Uo(){return(Math.random()-.5)*this.ko}}class Ud{constructor(n,i,s,u,f,_,w,N){this.oi=n,this.Go=s,this.zo=u,this.connection=f,this.authCredentialsProvider=_,this.appCheckCredentialsProvider=w,this.listener=N,this.state=0,this.jo=0,this.Ho=null,this.Jo=null,this.stream=null,this.Yo=new eu(n,i)}Zo(){return 1===this.state||5===this.state||this.Xo()}Xo(){return 2===this.state||3===this.state}start(){4!==this.state?this.auth():this.e_()}stop(){var n=this;return(0,Ee.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,Ee.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,Ee.A)(function*(){s.s_(),s.o_(),s.Yo.cancel(),s.jo++,4!==n?s.Yo.reset():i&&i.code===ae.RESOURCE_EXHAUSTED?(rn(i.toString()),rn("Using maximum backoff delay to prevent overloading the backend."),s.Yo.Ko()):i&&i.code===ae.UNAUTHENTICATED&&3!==s.state&&(s.authCredentialsProvider.invalidateToken(),s.appCheckCredentialsProvider.invalidateToken()),null!==s.stream&&(s.__(),s.stream.close(),s.stream=null),s.state=n,yield s.listener.Ao(i)})()}__(){}auth(){this.state=1;const n=this.a_(this.jo),i=this.jo;Promise.all([this.authCredentialsProvider.getToken(),this.appCheckCredentialsProvider.getToken()]).then(([s,u])=>{this.jo===i&&this.u_(s,u)},s=>{n(()=>{const u=new me(ae.UNKNOWN,"Fetching auth token failed: "+s.message);return this.c_(u)})})}u_(n,i){const s=this.a_(this.jo);this.stream=this.l_(n,i),this.stream.Po(()=>{s(()=>this.listener.Po())}),this.stream.To(()=>{s(()=>(this.state=2,this.Jo=this.oi.enqueueAfterDelay(this.zo,1e4,()=>(this.Xo()&&(this.state=3),Promise.resolve())),this.listener.To()))}),this.stream.Ao(u=>{s(()=>this.c_(u))}),this.stream.onMessage(u=>{s(()=>this.onMessage(u))})}e_(){var n=this;this.state=5,this.Yo.$o((0,Ee.A)(function*(){n.state=0,n.start()}))}c_(n){return Be("PersistentStream",`close with error: ${n}`),this.stream=null,this.close(4,n)}a_(n){return i=>{this.oi.enqueueAndForget(()=>this.jo===n?i():(Be("PersistentStream","stream callback skipped by getCloseGuardedDispatcher."),Promise.resolve()))}}}class af extends Ud{constructor(n,i,s,u,f,_){super(n,"listen_stream_connection_backoff","listen_stream_idle","health_check_timeout",i,s,u,_),this.serializer=f}l_(n,i){return this.connection.Oo("Listen",n,i)}onMessage(n){this.Yo.reset();const i=function zl(l,n){let i;if("targetChange"in n){const s="NO_CHANGE"===(z=n.targetChange.targetChangeType||"NO_CHANGE")?0:"ADD"===z?1:"REMOVE"===z?2:"CURRENT"===z?3:"RESET"===z?4:j(),u=n.targetChange.targetIds||[],f=function(z,se){return z.useProto3Json?(W(void 0===se||"string"==typeof se),si.fromBase64String(se||"")):(W(void 0===se||se instanceof Buffer||se instanceof Uint8Array),si.fromUint8Array(se||new Uint8Array))}(l,n.targetChange.resumeToken),_=n.targetChange.cause,w=_&&function(z){const se=void 0===z.code?ae.UNKNOWN:Tr(z.code);return new me(se,z.message||"")}(_);i=new Jr(s,u,f,w||null)}else if("documentChange"in n){const s=n.documentChange,u=No(l,s.document.name),f=Lr(s.document.updateTime),_=s.document.createTime?Lr(s.document.createTime):en.min(),w=new In({mapValue:{fields:s.document.fields}}),N=cr.newFoundDocument(u,f,_,w);i=new Wi(s.targetIds||[],s.removedTargetIds||[],N.key,N)}else if("documentDelete"in n){const s=n.documentDelete,u=No(l,s.document),f=s.readTime?Lr(s.readTime):en.min(),_=cr.newNoDocument(u,f);i=new Wi([],s.removedTargetIds||[],_.key,_)}else if("documentRemove"in n){const s=n.documentRemove,u=No(l,s.document);i=new Wi([],s.removedTargetIds||[],u,null)}else{if(!("filter"in n))return j();{const s=n.filter,{count:u=0,unchangedNames:f}=s,_=new an(u,f);i=new Fi(s.targetId,_)}}var z;return i}(this.serializer,n),s=function(f){if(!("targetChange"in f))return en.min();const _=f.targetChange;return _.targetIds&&_.targetIds.length?en.min():_.readTime?Lr(_.readTime):en.min()}(n);return this.listener.h_(i,s)}P_(n){const i={};i.database=Ks(this.serializer),i.addTarget=function(f,_){let w;const N=_.target;if(w=bo(N)?{documents:Hl(f,N)}:{query:Gl(f,N)._t},w.targetId=_.targetId,_.resumeToken.approximateByteSize()>0){w.resumeToken=Gs(f,_.resumeToken);const z=es(f,_.expectedCount);null!==z&&(w.expectedCount=z)}else if(_.snapshotVersion.compareTo(en.min())>0){w.readTime=wo(f,_.snapshotVersion.toTimestamp());const z=es(f,_.expectedCount);null!==z&&(w.expectedCount=z)}return w}(this.serializer,n);const s=function Mu(l,n){const i=function(u){switch(u){case"TargetPurposeListen":return null;case"TargetPurposeExistenceFilterMismatch":return"existence-filter-mismatch";case"TargetPurposeExistenceFilterMismatchBloom":return"existence-filter-mismatch-bloom";case"TargetPurposeLimboResolution":return"limbo-document";default:return j()}}(n.purpose);return null==i?null:{"goog-listen-tags":i}}(0,n);s&&(i.labels=s),this.i_(i)}I_(n){const i={};i.database=Ks(this.serializer),i.removeTarget=n,this.i_(i)}}class lf extends Ud{constructor(n,i,s,u,f,_){super(n,"write_stream_connection_backoff","write_stream_idle","health_check_timeout",i,s,u,_),this.serializer=f,this.T_=!1}get E_(){return this.T_}start(){this.T_=!1,this.lastStreamToken=void 0,super.start()}__(){this.T_&&this.d_([])}l_(n,i){return this.connection.Oo("Write",n,i)}onMessage(n){if(W(!!n.streamToken),this.lastStreamToken=n.streamToken,this.T_){this.Yo.reset();const i=function us(l,n){return l&&l.length>0?(W(void 0!==n),l.map(i=>function(u,f){let _=Lr(u.updateTime?u.updateTime:f);return _.isEqual(en.min())&&(_=Lr(f)),new Rs(_,u.transformResults||[])}(i,n))):[]}(n.writeResults,n.commitTime),s=Lr(n.commitTime);return this.listener.A_(s,i)}return W(!n.writeResults||0===n.writeResults.length),this.T_=!0,this.listener.R_()}V_(){const n={};n.database=Ks(this.serializer),this.i_(n)}d_(n){const i={streamToken:this.lastStreamToken,writes:n.map(s=>function As(l,n){let i;if(n instanceof Ms)i={update:Su(l,n.key,n.value)};else if(n instanceof V)i={delete:$a(l,n.key)};else if(n instanceof lo)i={update:Su(l,n.key,n.data),updateMask:Cd(n.fieldMask)};else{if(!(n instanceof be))return j();i={verify:$a(l,n.key)}}return n.fieldTransforms.length>0&&(i.updateTransforms=n.fieldTransforms.map(s=>function(f,_){const w=_.transform;if(w instanceof Is)return{fieldPath:_.field.canonicalString(),setToServerValue:"REQUEST_TIME"};if(w instanceof ws)return{fieldPath:_.field.canonicalString(),appendMissingElements:{values:w.elements}};if(w instanceof Ss)return{fieldPath:_.field.canonicalString(),removeAllFromArray:{values:w.elements}};if(w instanceof Zo)return{fieldPath:_.field.canonicalString(),increment:w.Pe};throw j()}(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}:j()),i;var f}(this.serializer,s))};this.i_(i)}}class sg extends class{}{constructor(n,i,s,u){super(),this.authCredentials=n,this.appCheckCredentials=i,this.connection=s,this.serializer=u,this.m_=!1}f_(){if(this.m_)throw new me(ae.FAILED_PRECONDITION,"The client has already been terminated.")}Co(n,i,s,u){return this.f_(),Promise.all([this.authCredentials.getToken(),this.appCheckCredentials.getToken()]).then(([f,_])=>this.connection.Co(n,Ws(i,s),u,f,_)).catch(f=>{throw"FirebaseError"===f.name?(f.code===ae.UNAUTHENTICATED&&(this.authCredentials.invalidateToken(),this.appCheckCredentials.invalidateToken()),f):new me(ae.UNKNOWN,f.toString())})}xo(n,i,s,u,f){return this.f_(),Promise.all([this.authCredentials.getToken(),this.appCheckCredentials.getToken()]).then(([_,w])=>this.connection.xo(n,Ws(i,s),u,_,w,f)).catch(_=>{throw"FirebaseError"===_.name?(_.code===ae.UNAUTHENTICATED&&(this.authCredentials.invalidateToken(),this.appCheckCredentials.invalidateToken()),_):new me(ae.UNKNOWN,_.toString())})}terminate(){this.m_=!0,this.connection.terminate()}}class $d{constructor(n,i){this.asyncQueue=n,this.onlineStateHandler=i,this.state="Unknown",this.g_=0,this.p_=null,this.y_=!0}w_(){0===this.g_&&(this.S_("Unknown"),this.p_=this.asyncQueue.enqueueAfterDelay("online_state_timeout",1e4,()=>(this.p_=null,this.b_("Backend didn't respond within 10 seconds."),this.S_("Offline"),Promise.resolve())))}D_(n){"Online"===this.state?this.S_("Unknown"):(this.g_++,this.g_>=1&&(this.C_(),this.b_(`Connection failed 1 times. Most recent error: ${n.toString()}`),this.S_("Offline")))}set(n){this.C_(),this.g_=0,"Online"===n&&(this.y_=!1),this.S_(n)}S_(n){n!==this.state&&(this.state=n,this.onlineStateHandler(n))}b_(n){const i=`Could not reach Cloud Firestore backend. ${n}\nThis typically indicates that your device does not have a healthy Internet connection at the moment. The client will operate in offline mode until it is able to successfully connect to the backend.`;this.y_?(rn(i),this.y_=!1):Be("OnlineStateTracker",i)}C_(){null!==this.p_&&(this.p_.cancel(),this.p_=null)}}class Cl{constructor(n,i,s,u,f){var _=this;this.localStore=n,this.datastore=i,this.asyncQueue=s,this.remoteSyncer={},this.v_=[],this.F_=new Map,this.M_=new Set,this.x_=[],this.O_=f,this.O_.io(w=>{s.enqueueAndForget((0,Ee.A)(function*(){var N;Qa(_)&&(Be("RemoteStore","Restarting streams for network reachability change."),yield(N=(0,Ee.A)(function*(se){const we=de(se);we.M_.add(4),yield tu(we),we.N_.set("Unknown"),we.M_.delete(4),yield kc(we)}),function z(se){return N.apply(this,arguments)})(_))}))}),this.N_=new $d(s,u)}}function kc(l){return Fc.apply(this,arguments)}function Fc(){return(Fc=(0,Ee.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,Ee.A)(function*(l){for(const n of l.x_)yield n(!1)})).apply(this,arguments)}function Xa(l,n){const i=de(l);i.F_.has(n.targetId)||(i.F_.set(n.targetId,n),df(i)?Hu(i):qu(i).Xo()&&uf(i,n))}function Yi(l,n){const i=de(l),s=qu(i);i.F_.delete(n),s.Xo()&&cf(i,n),0===i.F_.size&&(s.Xo()?s.n_():Qa(i)&&i.N_.set("Unknown"))}function uf(l,n){if(l.L_.xe(n.targetId),n.resumeToken.approximateByteSize()>0||n.snapshotVersion.compareTo(en.min())>0){const i=l.remoteSyncer.getRemoteKeysForTarget(n.targetId).size;n=n.withExpectedCount(i)}qu(l).P_(n)}function cf(l,n){l.L_.xe(n),qu(l).I_(n)}function Hu(l){l.L_=new Uo({getRemoteKeysForTarget:n=>l.remoteSyncer.getRemoteKeysForTarget(n),ot:n=>l.F_.get(n)||null,tt:()=>l.datastore.serializer.databaseId}),qu(l).start(),l.N_.w_()}function df(l){return Qa(l)&&!qu(l).Zo()&&l.F_.size>0}function Qa(l){return 0===de(l).M_.size}function Vc(l){l.L_=void 0}function ag(l){return Bd.apply(this,arguments)}function Bd(){return(Bd=(0,Ee.A)(function*(l){l.N_.set("Online")})).apply(this,arguments)}function hf(l){return Gu.apply(this,arguments)}function Gu(){return(Gu=(0,Ee.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,Ee.A)(function*(l,n){Vc(l),df(l)?(l.N_.D_(n),Hu(l)):l.N_.set("Unknown")})).apply(this,arguments)}function dv(l,n,i){return pf.apply(this,arguments)}function pf(){return pf=(0,Ee.A)(function*(l,n,i){if(l.N_.set("Online"),n instanceof Jr&&2===n.state&&n.cause)try{yield(s=(0,Ee.A)(function*(f,_){const w=_.cause;for(const N of _.targetIds)f.F_.has(N)&&(yield f.remoteSyncer.rejectListen(N,w),f.F_.delete(N),f.L_.removeTarget(N))}),function u(f,_){return s.apply(this,arguments)})(l,n)}catch(s){Be("RemoteStore","Failed to remove targets %s: %s ",n.targetIds.join(","),s),yield Lc(l,s)}else if(n instanceof Wi?l.L_.Ke(n):n instanceof Fi?l.L_.He(n):l.L_.We(n),!i.isEqual(en.min()))try{const s=yield Ns(l.localStore);i.compareTo(s)>=0&&(yield function(f,_){const w=f.L_.rt(_);return w.targetChanges.forEach((N,z)=>{if(N.resumeToken.approximateByteSize()>0){const se=f.F_.get(z);se&&f.F_.set(z,se.withResumeToken(N.resumeToken,_))}}),w.targetMismatches.forEach((N,z)=>{const se=f.F_.get(N);if(!se)return;f.F_.set(N,se.withResumeToken(si.EMPTY_BYTE_STRING,se.snapshotVersion)),cf(f,N);const we=new Aa(se.target,N,z,se.sequenceNumber);uf(f,we)}),f.remoteSyncer.applyRemoteEvent(w)}(l,i))}catch(s){Be("RemoteStore","Failed to raise snapshot:",s),yield Lc(l,s)}var s}),pf.apply(this,arguments)}function Lc(l,n,i){return gf.apply(this,arguments)}function gf(){return(gf=(0,Ee.A)(function*(l,n,i){if(!Pe(n))throw n;l.M_.add(1),yield tu(l),l.N_.set("Offline"),i||(i=()=>Ns(l.localStore)),l.asyncQueue.enqueueRetryable((0,Ee.A)(function*(){Be("RemoteStore","Retrying IndexedDB access"),yield i(),l.M_.delete(1),yield kc(l)}))})).apply(this,arguments)}function mf(l,n){return n().catch(i=>Lc(l,i,n))}function Wu(l){return vf.apply(this,arguments)}function vf(){return(vf=(0,Ee.A)(function*(l){const n=de(l),i=nu(n);let s=n.v_.length>0?n.v_[n.v_.length-1].batchId:-1;for(;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 Lc(n,u)}_f(n)&&ds(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 ds(l){nu(l).start()}function gy(l){return jd.apply(this,arguments)}function jd(){return(jd=(0,Ee.A)(function*(l){nu(l).V_()})).apply(this,arguments)}function my(l){return Uc.apply(this,arguments)}function Uc(){return(Uc=(0,Ee.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,Ee.A)(function*(l,n,i){const s=l.v_.shift(),u=le.from(s,n,i);yield mf(l,()=>l.remoteSyncer.applySuccessfulWrite(u)),yield Wu(l)})).apply(this,arguments)}function Ku(l,n){return yf.apply(this,arguments)}function yf(){return yf=(0,Ee.A)(function*(l,n){var i;n&&nu(l).E_&&(yield(i=(0,Ee.A)(function*(u,f){if(function Fr(l){switch(l){default:return j();case ae.CANCELLED:case ae.UNKNOWN:case ae.DEADLINE_EXCEEDED:case ae.RESOURCE_EXHAUSTED:case ae.INTERNAL:case ae.UNAVAILABLE:case ae.UNAUTHENTICATED:return!1;case ae.INVALID_ARGUMENT:case ae.NOT_FOUND:case ae.ALREADY_EXISTS:case ae.PERMISSION_DENIED:case ae.FAILED_PRECONDITION:case ae.ABORTED:case ae.OUT_OF_RANGE:case ae.UNIMPLEMENTED:case ae.DATA_LOSS:return!0}}(w=f.code)&&w!==ae.ABORTED){const _=u.v_.shift();nu(u).t_(),yield mf(u,()=>u.remoteSyncer.rejectFailedWrite(_.batchId,f)),yield Wu(u)}var w}),function s(u,f){return i.apply(this,arguments)})(l,n)),_f(l)&&ds(l)}),yf.apply(this,arguments)}function cg(l,n){return Hd.apply(this,arguments)}function Hd(){return(Hd=(0,Ee.A)(function*(l,n){const i=de(l);i.asyncQueue.verifyOperationInProgress(),Be("RemoteStore","RemoteStore received new credentials");const s=Qa(i);i.M_.add(3),yield tu(i),s&&i.N_.set("Unknown"),yield i.remoteSyncer.handleCredentialChange(n),i.M_.delete(3),yield kc(i)})).apply(this,arguments)}function dg(l,n){return hg.apply(this,arguments)}function hg(){return(hg=(0,Ee.A)(function*(l,n){const i=de(l);n?(i.M_.delete(2),yield kc(i)):n||(i.M_.add(2),yield tu(i),i.N_.set("Unknown"))})).apply(this,arguments)}function qu(l){return l.B_||(l.B_=function(i,s,u){const f=de(i);return f.f_(),new af(s,f.connection,f.authCredentials,f.appCheckCredentials,f.serializer,u)}(l.datastore,l.asyncQueue,{Po:ag.bind(null,l),To:hf.bind(null,l),Ao:lg.bind(null,l),h_:dv.bind(null,l)}),l.x_.push(function(){var n=(0,Ee.A)(function*(i){i?(l.B_.t_(),df(l)?Hu(l):l.N_.set("Unknown")):(yield l.B_.stop(),Vc(l))});return function(i){return n.apply(this,arguments)}}())),l.B_}function nu(l){return l.k_||(l.k_=function(i,s,u){const f=de(i);return f.f_(),new lf(s,f.connection,f.authCredentials,f.appCheckCredentials,f.serializer,u)}(l.datastore,l.asyncQueue,{Po:()=>Promise.resolve(),To: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,Ee.A)(function*(i){i?(l.k_.t_(),yield Wu(l)):(yield l.k_.stop(),l.v_.length>0&&(Be("RemoteStore",`Stopping write stream with ${l.v_.length} pending writes`),l.v_=[]))});return function(i){return n.apply(this,arguments)}}())),l.k_}class fg{constructor(n,i,s,u,f){this.asyncQueue=n,this.timerId=i,this.targetTimeMs=s,this.op=u,this.removalCallback=f,this.deferred=new Ce,this.then=this.deferred.promise.then.bind(this.deferred.promise),this.deferred.promise.catch(_=>{})}get promise(){return this.deferred.promise}static createAndSchedule(n,i,s,u,f){const _=Date.now()+s,w=new fg(n,i,_,u,f);return w.start(s),w}start(n){this.timerHandle=setTimeout(()=>this.handleDelayElapsed(),n)}skipDelay(){return this.handleDelayElapsed()}cancel(n){null!==this.timerHandle&&(this.clearTimeout(),this.deferred.reject(new me(ae.CANCELLED,"Operation cancelled"+(n?": "+n:""))))}handleDelayElapsed(){this.asyncQueue.enqueueAndForget(()=>null!==this.timerHandle?(this.clearTimeout(),this.op().then(n=>this.deferred.resolve(n))):Promise.resolve())}clearTimeout(){null!==this.timerHandle&&(this.removalCallback(this),clearTimeout(this.timerHandle),this.timerHandle=null)}}function Xu(l,n){if(rn("AsyncQueue",`${n}: ${l}`),Pe(l))return new me(ae.UNAVAILABLE,`${n}: ${l}`);throw l}class oa{constructor(n){this.comparator=n?(i,s)=>n(i,s)||Gt.comparator(i.key,s.key):(i,s)=>Gt.comparator(i.key,s.key),this.keyedMap=Ti(),this.sortedSet=new mr(this.comparator)}static emptySet(n){return new oa(n.comparator)}has(n){return null!=this.keyedMap.get(n)}get(n){return this.keyedMap.get(n)}first(){return this.sortedSet.minKey()}last(){return this.sortedSet.maxKey()}isEmpty(){return this.sortedSet.isEmpty()}indexOf(n){const i=this.keyedMap.get(n);return i?this.sortedSet.indexOf(i):-1}get size(){return this.sortedSet.size}forEach(n){this.sortedSet.inorderTraversal((i,s)=>(n(i),!1))}add(n){const i=this.delete(n.key);return i.copy(i.keyedMap.insert(n.key,n),i.sortedSet.insert(n,null))}delete(n){const i=this.get(n);return i?this.copy(this.keyedMap.remove(n),this.sortedSet.remove(i)):this}isEqual(n){if(!(n instanceof oa)||this.size!==n.size)return!1;const i=this.sortedSet.getIterator(),s=n.sortedSet.getIterator();for(;i.hasNext();){const u=i.getNext().key,f=s.getNext().key;if(!u.isEqual(f))return!1}return!0}toString(){const n=[];return this.forEach(i=>{n.push(i.toString())}),0===n.length?"DocumentSet ()":"DocumentSet (\n "+n.join(" \n")+"\n)"}copy(n,i){const s=new oa;return s.comparator=this.comparator,s.keyedMap=n,s.sortedSet=i,s}}class Qu{constructor(){this.q_=new mr(Gt.comparator)}track(n){const i=n.doc.key,s=this.q_.get(i);s?0!==n.type&&3===s.type?this.q_=this.q_.insert(i,n):3===n.type&&1!==s.type?this.q_=this.q_.insert(i,{type:s.type,doc:n.doc}):2===n.type&&2===s.type?this.q_=this.q_.insert(i,{type:2,doc:n.doc}):2===n.type&&0===s.type?this.q_=this.q_.insert(i,{type:0,doc:n.doc}):1===n.type&&0===s.type?this.q_=this.q_.remove(i):1===n.type&&2===s.type?this.q_=this.q_.insert(i,{type:1,doc:s.doc}):0===n.type&&1===s.type?this.q_=this.q_.insert(i,{type:2,doc:n.doc}):j():this.q_=this.q_.insert(i,n)}Q_(){const n=[];return this.q_.inorderTraversal((i,s)=>{n.push(s)}),n}}class ru{constructor(n,i,s,u,f,_,w,N,z){this.query=n,this.docs=i,this.oldDocs=s,this.docChanges=u,this.mutatedKeys=f,this.fromCache=_,this.syncStateChanged=w,this.excludesMetadataChanges=N,this.hasCachedResults=z}static fromInitialDocuments(n,i,s,u,f){const _=[];return i.forEach(w=>{_.push({type:0,doc:w})}),new ru(n,i,oa.emptySet(i),_,s,u,!0,!1,f)}get hasPendingWrites(){return!this.mutatedKeys.isEmpty()}isEqual(n){if(!(this.fromCache===n.fromCache&&this.hasCachedResults===n.hasCachedResults&&this.syncStateChanged===n.syncStateChanged&&this.mutatedKeys.isEqual(n.mutatedKeys)&&Qo(this.query,n.query)&&this.docs.isEqual(n.docs)&&this.oldDocs.isEqual(n.oldDocs)))return!1;const i=this.docChanges,s=n.docChanges;if(i.length!==s.length)return!1;for(let u=0;un.G_())}}class If{constructor(){this.queries=new as(n=>Na(n),Qo),this.onlineState="Unknown",this.z_=new Set}}function Os(l,n){return Ef.apply(this,arguments)}function Ef(){return(Ef=(0,Ee.A)(function*(l,n){const i=de(l);let s=3;const u=n.query;let f=i.queries.get(u);f?!f.W_()&&n.G_()&&(s=2):(f=new hv,s=n.G_()?0:1);try{switch(s){case 0:f.K_=yield i.onListen(u,!0);break;case 1:f.K_=yield i.onListen(u,!1);break;case 2:yield i.onFirstRemoteStoreListen(u)}}catch(_){const w=Xu(_,`Initialization of query '${vs(n.query)}' failed`);return void n.onError(w)}i.queries.set(u,f),f.U_.push(n),n.j_(i.onlineState),f.K_&&n.H_(f.K_)&&Gd(i)})).apply(this,arguments)}function $c(l,n){return iu.apply(this,arguments)}function iu(){return(iu=(0,Ee.A)(function*(l,n){const i=de(l),s=n.query;let u=3;const f=i.queries.get(s);if(f){const _=f.U_.indexOf(n);_>=0&&(f.U_.splice(_,1),0===f.U_.length?u=n.G_()?0:1:!f.W_()&&n.G_()&&(u=2))}switch(u){case 0:return i.queries.delete(s),i.onUnlisten(s,!0);case 1:return i.queries.delete(s),i.onUnlisten(s,!1);case 2:return i.onLastRemoteStoreUnlisten(s);default:return}})).apply(this,arguments)}function fv(l,n){const i=de(l);let s=!1;for(const u of n){const _=i.queries.get(u.query);if(_){for(const w of _.U_)w.H_(u)&&(s=!0);_.K_=u}}s&&Gd(i)}function pg(l,n,i){const s=de(l),u=s.queries.get(n);if(u)for(const f of u.U_)f.onError(i);s.queries.delete(n)}function Gd(l){l.z_.forEach(n=>{n.next()})}var E,h;(h=E||(E={})).J_="default",h.Cache="cache";class v{constructor(n,i,s){this.query=n,this.Y_=i,this.Z_=!1,this.X_=null,this.onlineState="Unknown",this.options=s||{}}H_(n){if(!this.options.includeMetadataChanges){const s=[];for(const u of n.docChanges)3!==u.type&&s.push(u);n=new ru(n.query,n.docs,n.oldDocs,s,n.mutatedKeys,n.fromCache,n.syncStateChanged,!0,n.hasCachedResults)}let i=!1;return this.Z_?this.ea(n)&&(this.Y_.next(n),i=!0):this.ta(n,this.onlineState)&&(this.na(n),i=!0),this.X_=n,i}onError(n){this.Y_.error(n)}j_(n){this.onlineState=n;let i=!1;return this.X_&&!this.Z_&&this.ta(this.X_,n)&&(this.na(this.X_),i=!0),i}ta(n,i){return!n.fromCache||!this.G_()||(!this.options.ra||!("Offline"!==i))&&(!n.docs.isEmpty()||n.hasCachedResults||"Offline"===i)}ea(n){return n.docChanges.length>0||!!(n.syncStateChanged||this.X_&&this.X_.hasPendingWrites!==n.hasPendingWrites)&&!0===this.options.includeMetadataChanges}na(n){n=ru.fromInitialDocuments(n.query,n.docs,n.mutatedKeys,n.fromCache,n.hasCachedResults),this.Z_=!0,this.Y_.next(n)}G_(){return this.options.source!==E.Cache}}class Pt{constructor(n){this.key=n}}class on{constructor(n){this.key=n}}class Dn{constructor(n,i){this.query=n,this.la=i,this.ha=null,this.hasCachedResults=!1,this.current=!1,this.Pa=vr(),this.mutatedKeys=vr(),this.Ia=sl(n),this.Ta=new oa(this.Ia)}get Ea(){return this.la}da(n,i){const s=i?i.Aa:new Qu,u=i?i.Ta:this.Ta;let f=i?i.mutatedKeys:this.mutatedKeys,_=u,w=!1;const N="F"===this.query.limitType&&u.size===this.query.limit?u.last():null,z="L"===this.query.limitType&&u.size===this.query.limit?u.first():null;if(n.inorderTraversal((se,we)=>{const We=u.get(se),Rt=Bs(this.query,we)?we:null,tn=!!We&&this.mutatedKeys.has(We.key),pn=!!Rt&&(Rt.hasLocalMutations||this.mutatedKeys.has(Rt.key)&&Rt.hasCommittedMutations);let ln=!1;We&&Rt?We.data.isEqual(Rt.data)?tn!==pn&&(s.track({type:3,doc:Rt}),ln=!0):this.Ra(We,Rt)||(s.track({type:2,doc:Rt}),ln=!0,(N&&this.Ia(Rt,N)>0||z&&this.Ia(Rt,z)<0)&&(w=!0)):!We&&Rt?(s.track({type:0,doc:Rt}),ln=!0):We&&!Rt&&(s.track({type:1,doc:We}),ln=!0,(N||z)&&(w=!0)),ln&&(Rt?(_=_.add(Rt),f=pn?f.add(se):f.delete(se)):(_=_.delete(se),f=f.delete(se)))}),null!==this.query.limit)for(;_.size>this.query.limit;){const se="F"===this.query.limitType?_.last():_.first();_=_.delete(se.key),f=f.delete(se.key),s.track({type:1,doc:se})}return{Ta:_,Aa:s,Xi:w,mutatedKeys:f}}Ra(n,i){return n.hasLocalMutations&&i.hasCommittedMutations&&!i.hasLocalMutations}applyChanges(n,i,s,u){const f=this.Ta;this.Ta=n.Ta,this.mutatedKeys=n.mutatedKeys;const _=n.Aa.Q_();_.sort((se,we)=>function(Rt,tn){const pn=ln=>{switch(ln){case 0:return 1;case 2:case 3:return 2;case 1:return 0;default:return j()}};return pn(Rt)-pn(tn)}(se.type,we.type)||this.Ia(se.doc,we.doc)),this.Va(s),u=null!=u&&u;const w=i&&!u?this.ma():[],N=0===this.Pa.size&&this.current&&!u?1:0,z=N!==this.ha;return this.ha=N,0!==_.length||z?{snapshot:new ru(this.query,n.Ta,f,_,n.mutatedKeys,0===N,z,!1,!!s&&s.resumeToken.approximateByteSize()>0),fa:w}:{fa:w}}j_(n){return this.current&&"Offline"===n?(this.current=!1,this.applyChanges({Ta:this.Ta,Aa:new Qu,mutatedKeys:this.mutatedKeys,Xi:!1},!1)):{fa:[]}}ga(n){return!this.la.has(n)&&!!this.Ta.has(n)&&!this.Ta.get(n).hasLocalMutations}Va(n){n&&(n.addedDocuments.forEach(i=>this.la=this.la.add(i)),n.modifiedDocuments.forEach(i=>{}),n.removedDocuments.forEach(i=>this.la=this.la.delete(i)),this.current=n.current)}ma(){if(!this.current)return[];const n=this.Pa;this.Pa=vr(),this.Ta.forEach(s=>{this.ga(s.key)&&(this.Pa=this.Pa.add(s.key))});const i=[];return n.forEach(s=>{this.Pa.has(s)||i.push(new on(s))}),this.Pa.forEach(s=>{n.has(s)||i.push(new Pt(s))}),i}pa(n){this.la=n.hs,this.Pa=vr();const i=this.da(n.documents);return this.applyChanges(i,!0)}ya(){return ru.fromInitialDocuments(this.query,this.Ta,this.mutatedKeys,0===this.ha,this.hasCachedResults)}}class Xn{constructor(n,i,s){this.query=n,this.targetId=i,this.view=s}}class jr{constructor(n){this.key=n,this.wa=!1}}class Oo{constructor(n,i,s,u,f,_){this.localStore=n,this.remoteStore=i,this.eventManager=s,this.sharedClientState=u,this.currentUser=f,this.maxConcurrentLimboResolutions=_,this.Sa={},this.ba=new as(w=>Na(w),Qo),this.Da=new Map,this.Ca=new Set,this.va=new mr(Gt.comparator),this.Fa=new Map,this.Ma=new Md,this.xa={},this.Oa=new Map,this.Na=gl.Ln(),this.onlineState="Unknown",this.La=void 0}get isPrimaryClient(){return!0===this.La}}function Zi(l,n){return sa.apply(this,arguments)}function sa(){return(sa=(0,Ee.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,Ee.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,Ee.A)(function*(l,n,i,s){const u=yield function ra(l,n){const i=de(l);return i.persistence.runTransaction("Allocate target","readwrite",s=>{let u;return i.Qr.getTargetData(s,n).next(f=>f?(u=f,oe.resolve(u)):i.Qr.allocateTargetId(s).next(_=>(u=new Aa(n,_,"TargetPurposeListen",s.currentSequenceNumber),i.Qr.addTargetData(s,u).next(()=>u))))}).then(s=>{const u=i.ns.get(s.targetId);return(null===u||s.snapshotVersion.compareTo(u.snapshotVersion)>0)&&(i.ns=i.ns.insert(s.targetId,s),i.rs.set(n,s.targetId)),s})}(l.localStore,On(n)),f=u.targetId,_=i?l.sharedClientState.addLocalQueryTarget(f):"not-current";let w;return s&&(w=yield function Zu(l,n,i,s,u){return Ju.apply(this,arguments)}(l,n,f,"current"===_,u.resumeToken)),l.isPrimaryClient&&i&&Xa(l.remoteStore,u),w})).apply(this,arguments)}function Ju(){return Ju=(0,Ee.A)(function*(l,n,i,s,u){l.Ba=(we,We,Rt)=>{return(tn=(0,Ee.A)(function*(ln,zn,lr,Qn){let Rr=zn.view.da(lr);Rr.Xi&&(Rr=yield vl(ln.localStore,zn.query,!1).then(({documents:Ue})=>zn.view.da(Ue,Rr)));const Ii=Qn&&Qn.targetChanges.get(zn.targetId),zr=Qn&&null!=Qn.targetMismatches.get(zn.targetId),ht=zn.view.applyChanges(Rr,ln.isPrimaryClient,Ii,zr);return Eg(ln,zn.targetId,ht.fa),ht.snapshot}),function pn(ln,zn,lr,Qn){return tn.apply(this,arguments)})(l,we,We,Rt);var tn};const f=yield vl(l.localStore,n,!0),_=new Dn(n,f.hs),w=_.da(f.documents),N=_i.createSynthesizedTargetChangeForCurrentChange(i,s&&"Offline"!==l.onlineState,u),z=_.applyChanges(w,l.isPrimaryClient,N);Eg(l,i,z.fa);const se=new Xn(n,i,_);return l.ba.set(n,se),l.Da.has(i)?l.Da.get(i).push(n):l.Da.set(i,[n]),z.snapshot}),Ju.apply(this,arguments)}function Af(l,n,i){return su.apply(this,arguments)}function su(){return(su=(0,Ee.A)(function*(l,n,i){const s=de(l),u=s.ba.get(n),f=s.Da.get(u.targetId);if(f.length>1)return s.Da.set(u.targetId,f.filter(_=>!Qo(_,n))),void s.ba.delete(n);s.isPrimaryClient?(s.sharedClientState.removeLocalQueryTarget(u.targetId),s.sharedClientState.isActiveQueryTarget(u.targetId)||(yield ia(s.localStore,u.targetId,!1).then(()=>{s.sharedClientState.clearQueryState(u.targetId),i&&Yi(s.remoteStore,u.targetId),Yd(s,u.targetId)}).catch(Qr))):(Yd(s,u.targetId),yield ia(s.localStore,u.targetId,!0))})).apply(this,arguments)}function Cf(l,n){return qd.apply(this,arguments)}function qd(){return(qd=(0,Ee.A)(function*(l,n){const i=de(l),s=i.ba.get(n),u=i.Da.get(s.targetId);i.isPrimaryClient&&1===u.length&&(i.sharedClientState.removeLocalQueryTarget(s.targetId),Yi(i.remoteStore,s.targetId))})).apply(this,arguments)}function Qd(){return(Qd=(0,Ee.A)(function*(l,n,i){const s=function Bc(l){const n=de(l);return n.remoteStore.remoteSyncer.applySuccessfulWrite=pv.bind(null,n),n.remoteStore.remoteSyncer.rejectFailedWrite=gv.bind(null,n),n}(l);try{const u=yield function(_,w){const N=de(_),z=Xt.now(),se=w.reduce((Rt,tn)=>Rt.add(tn.key),vr());let we,We;return N.persistence.runTransaction("Locally write mutations","readwrite",Rt=>{let tn=Jn(),pn=vr();return N.os.getEntries(Rt,se).next(ln=>{tn=ln,tn.forEach((zn,lr)=>{lr.isValidDocument()||(pn=pn.add(zn))})}).next(()=>N.localDocuments.getOverlayedDocuments(Rt,tn)).next(ln=>{we=ln;const zn=[];for(const lr of w){const Qn=pc(lr,we.get(lr.key).overlayedDocument);null!=Qn&&zn.push(new lo(lr.key,Qn,br(Qn.value.mapValue),Di.exists(!0)))}return N.mutationQueue.addMutationBatch(Rt,z,zn,w)}).next(ln=>{We=ln;const zn=ln.applyToLocalDocumentSet(we,pn);return N.documentOverlayCache.saveOverlays(Rt,ln.batchId,zn)})}).then(()=>({batchId:We.batchId,changes:ro(we)}))}(s.localStore,n);s.sharedClientState.addPendingMutation(u.batchId),function(_,w,N){let z=_.xa[_.currentUser.toKey()];z||(z=new mr(Ve)),z=z.insert(w,N),_.xa[_.currentUser.toKey()]=z}(s,u.batchId,i),yield Dl(s,u.changes),yield Wu(s.remoteStore)}catch(u){const f=Xu(u,"Failed to persist write");i.reject(f)}})).apply(this,arguments)}function gg(l,n){return Tf.apply(this,arguments)}function Tf(){return(Tf=(0,Ee.A)(function*(l,n){const i=de(l);try{const s=yield function og(l,n){const i=de(l),s=n.snapshotVersion;let u=i.ns;return i.persistence.runTransaction("Apply remote event","readwrite-primary",f=>{const _=i.os.newChangeBuffer({trackRemovals:!0});u=i.ns;const w=[];n.targetChanges.forEach((se,we)=>{const We=u.get(we);if(!We)return;w.push(i.Qr.removeMatchingKeys(f,se.removedDocuments,we).next(()=>i.Qr.addMatchingKeys(f,se.addedDocuments,we)));let Rt=We.withSequenceNumber(f.currentSequenceNumber);var pn,ln,zn;null!==n.targetMismatches.get(we)?Rt=Rt.withResumeToken(si.EMPTY_BYTE_STRING,en.min()).withLastLimboFreeSnapshotVersion(en.min()):se.resumeToken.approximateByteSize()>0&&(Rt=Rt.withResumeToken(se.resumeToken,s)),u=u.insert(we,Rt),ln=Rt,zn=se,(0===(pn=We).resumeToken.approximateByteSize()||ln.snapshotVersion.toMicroseconds()-pn.snapshotVersion.toMicroseconds()>=3e8||zn.addedDocuments.size+zn.modifiedDocuments.size+zn.removedDocuments.size>0)&&w.push(i.Qr.updateTargetData(f,Rt))});let N=Jn(),z=vr();if(n.documentUpdates.forEach(se=>{n.resolvedLimboDocuments.has(se)&&w.push(i.persistence.referenceDelegate.updateLimboDocument(f,se))}),w.push(function $u(l,n,i){let s=vr(),u=vr();return i.forEach(f=>s=s.add(f)),n.getEntries(l,s).next(f=>{let _=Jn();return i.forEach((w,N)=>{const z=f.get(w);N.isFoundDocument()!==z.isFoundDocument()&&(u=u.add(w)),N.isNoDocument()&&N.version.isEqual(en.min())?(n.removeEntry(w,N.readTime),_=_.insert(w,N)):!z.isValidDocument()||N.version.compareTo(z.version)>0||0===N.version.compareTo(z.version)&&z.hasPendingWrites?(n.addEntry(N),_=_.insert(w,N)):Be("LocalStore","Ignoring outdated watch update for ",w,". Current version:",z.version," Watch version:",N.version)}),{cs:_,ls:u}})}(f,_,n.documentUpdates).next(se=>{N=se.cs,z=se.ls})),!s.isEqual(en.min())){const se=i.Qr.getLastRemoteSnapshotVersion(f).next(we=>i.Qr.setTargetsMetadata(f,f.currentSequenceNumber,s));w.push(se)}return oe.waitFor(w).next(()=>_.apply(f)).next(()=>i.localDocuments.getLocalViewOfDocuments(f,N,z)).next(()=>N)}).then(f=>(i.ns=u,f))}(i.localStore,n);n.targetChanges.forEach((u,f)=>{const _=i.Fa.get(f);_&&(W(u.addedDocuments.size+u.modifiedDocuments.size+u.removedDocuments.size<=1),u.addedDocuments.size>0?_.wa=!0:u.modifiedDocuments.size>0?W(_.wa):u.removedDocuments.size>0&&(W(_.wa),_.wa=!1))}),yield Dl(i,s,n)}catch(s){yield Qr(s)}})).apply(this,arguments)}function mg(l,n,i){const s=de(l);if(s.isPrimaryClient&&0===i||!s.isPrimaryClient&&1===i){const u=[];s.ba.forEach((f,_)=>{const w=_.view.j_(n);w.snapshot&&u.push(w.snapshot)}),function(_,w){const N=de(_);N.onlineState=w;let z=!1;N.queries.forEach((se,we)=>{for(const We of we.U_)We.j_(w)&&(z=!0)}),z&&Gd(N)}(s.eventManager,n),u.length&&s.Sa.h_(u),s.onlineState=n,s.isPrimaryClient&&s.sharedClientState.setOnlineState(n)}}function Df(l,n,i){return bf.apply(this,arguments)}function bf(){return(bf=(0,Ee.A)(function*(l,n,i){const s=de(l);s.sharedClientState.updateQueryState(n,"rejected",i);const u=s.Fa.get(n),f=u&&u.key;if(f){let _=new mr(Gt.comparator);_=_.insert(f,cr.newNoDocument(f,en.min()));const w=vr().add(f),N=new Gi(en.min(),new Map,new mr(Ve),_,w);yield gg(s,N),s.va=s.va.remove(f),s.Fa.delete(n),mv(s)}else yield ia(s.localStore,n,!1).then(()=>Yd(s,n,i)).catch(Qr)})).apply(this,arguments)}function pv(l,n){return wf.apply(this,arguments)}function wf(){return(wf=(0,Ee.A)(function*(l,n){const i=de(l),s=n.batch.batchId;try{const u=yield function Uu(l,n){const i=de(l);return i.persistence.runTransaction("Acknowledge batch","readwrite-primary",s=>{const u=n.batch.keys(),f=i.os.newChangeBuffer({trackRemovals:!0});return function(w,N,z,se){const we=z.batch,We=we.keys();let Rt=oe.resolve();return We.forEach(tn=>{Rt=Rt.next(()=>se.getEntry(N,tn)).next(pn=>{const ln=z.docVersions.get(tn);W(null!==ln),pn.version.compareTo(ln)<0&&(we.applyToRemoteDocument(pn,z),pn.isValidDocument()&&(pn.setReadTime(z.commitVersion),se.addEntry(pn)))})}),Rt.next(()=>w.mutationQueue.removeMutationBatch(N,we))}(i,s,n,f).next(()=>f.apply(s)).next(()=>i.mutationQueue.performConsistencyCheck(s)).next(()=>i.documentOverlayCache.removeOverlaysForBatchId(s,u,n.batch.batchId)).next(()=>i.localDocuments.recalculateAndSaveOverlaysForDocumentKeys(s,function(w){let N=vr();for(let z=0;z0&&(N=N.add(w.batch.mutations[z].key));return N}(n))).next(()=>i.localDocuments.getDocuments(s,u))})}(i.localStore,n);Sf(i,s,null),yg(i,s),i.sharedClientState.updateMutationState(s,"acknowledged"),yield Dl(i,u)}catch(u){yield Qr(u)}})).apply(this,arguments)}function gv(l,n,i){return vg.apply(this,arguments)}function vg(){return(vg=(0,Ee.A)(function*(l,n,i){const s=de(l);try{const u=yield function(_,w){const N=de(_);return N.persistence.runTransaction("Reject batch","readwrite-primary",z=>{let se;return N.mutationQueue.lookupMutationBatch(z,w).next(we=>(W(null!==we),se=we.keys(),N.mutationQueue.removeMutationBatch(z,we))).next(()=>N.mutationQueue.performConsistencyCheck(z)).next(()=>N.documentOverlayCache.removeOverlaysForBatchId(z,se,w)).next(()=>N.localDocuments.recalculateAndSaveOverlaysForDocumentKeys(z,se)).next(()=>N.localDocuments.getDocuments(z,se))})}(s.localStore,n);Sf(s,n,i),yg(s,n),s.sharedClientState.updateMutationState(n,"rejected",i),yield Dl(s,u)}catch(u){yield Qr(u)}})).apply(this,arguments)}function yg(l,n){(l.Oa.get(n)||[]).forEach(i=>{i.resolve()}),l.Oa.delete(n)}function Sf(l,n,i){const s=de(l);let u=s.xa[s.currentUser.toKey()];if(u){const f=u.get(n);f&&(i?f.reject(i):f.resolve(),u=u.remove(n)),s.xa[s.currentUser.toKey()]=u}}function Yd(l,n,i=null){l.sharedClientState.removeLocalQueryTarget(n);for(const s of l.Da.get(n))l.ba.delete(s),i&&l.Sa.ka(s,i);l.Da.delete(n),l.isPrimaryClient&&l.Ma.Vr(n).forEach(s=>{l.Ma.containsKey(s)||Ig(l,s)})}function Ig(l,n){l.Ca.delete(n.path.canonicalString());const i=l.va.get(n);null!==i&&(Yi(l.remoteStore,i),l.va=l.va.remove(n),l.Fa.delete(i),mv(l))}function Eg(l,n,i){for(const s of i)s instanceof Pt?(l.Ma.addReference(s.key,n),_y(l,s)):s instanceof on?(Be("SyncEngine","Document no longer in limbo: "+s.key),l.Ma.removeReference(s.key,n),l.Ma.containsKey(s.key)||Ig(l,s.key)):j()}function _y(l,n){const i=n.key,s=i.path.canonicalString();l.va.get(i)||l.Ca.has(s)||(Be("SyncEngine","New document in limbo: "+i),l.Ca.add(s),mv(l))}function mv(l){for(;l.Ca.size>0&&l.va.size{_.push(s.Ba(N,n,i).then(z=>{if((z||i)&&s.isPrimaryClient&&s.sharedClientState.updateQueryState(N.targetId,z&&!z.fromCache?"current":"not-current"),z){u.push(z);const se=yi.Ki(N.targetId,z);f.push(se)}}))}),yield Promise.all(_),s.Sa.h_(u),yield(w=(0,Ee.A)(function*(z,se){const we=de(z);try{yield we.persistence.runTransaction("notifyLocalViewChanges","readwrite",We=>oe.forEach(se,Rt=>oe.forEach(Rt.qi,tn=>we.persistence.referenceDelegate.addReference(We,Rt.targetId,tn)).next(()=>oe.forEach(Rt.Qi,tn=>we.persistence.referenceDelegate.removeReference(We,Rt.targetId,tn)))))}catch(We){if(!Pe(We))throw We;Be("LocalStore","Failed to update sequence numbers: "+We)}for(const We of se){const Rt=We.targetId;if(!We.fromCache){const tn=we.ns.get(Rt),ln=tn.withLastLimboFreeSnapshotVersion(tn.snapshotVersion);we.ns=we.ns.insert(Rt,ln)}}}),function N(z,se){return w.apply(this,arguments)})(s.localStore,f))}),Rf.apply(this,arguments)}function Ag(l,n){return Cg.apply(this,arguments)}function Cg(){return(Cg=(0,Ee.A)(function*(l,n){const i=de(l);if(!i.currentUser.isEqual(n)){Be("SyncEngine","User change. New user:",n.toKey());const s=yield Od(i.localStore,n);i.currentUser=n,(f=i).Oa.forEach(w=>{w.forEach(N=>{N.reject(new me(ae.CANCELLED,"'waitForPendingWrites' promise is rejected due to a user change."))})}),f.Oa.clear(),i.sharedClientState.handleUserChange(n,s.removedBatchIds,s.addedBatchIds),yield Dl(i,s.us)}var f})).apply(this,arguments)}function au(l,n){const i=de(l),s=i.Fa.get(n);if(s&&s.wa)return vr().add(s.key);{let u=vr();const f=i.Da.get(n);if(!f)return u;for(const _ of f){const w=i.ba.get(_);u=u.unionWith(w.view.Ea)}return u}}function ec(l){const n=de(l);return n.remoteStore.remoteSyncer.applyRemoteEvent=gg.bind(null,n),n.remoteStore.remoteSyncer.getRemoteKeysForTarget=au.bind(null,n),n.remoteStore.remoteSyncer.rejectListen=Df.bind(null,n),n.Sa.h_=fv.bind(null,n.eventManager),n.Sa.ka=pg.bind(null,n.eventManager),n}class Za{constructor(){this.synchronizeTabs=!1}initialize(n){var i=this;return(0,Ee.A)(function*(){i.serializer=Oc(n.databaseInfo.databaseId),i.sharedClientState=i.createSharedClientState(n),i.persistence=i.createPersistence(n),yield i.persistence.start(),i.localStore=i.createLocalStore(n),i.gcScheduler=i.createGarbageCollectionScheduler(n,i.localStore),i.indexBackfillerScheduler=i.createIndexBackfillerScheduler(n,i.localStore)})()}createGarbageCollectionScheduler(n,i){return null}createIndexBackfillerScheduler(n,i){return null}createLocalStore(n){return function ef(l,n,i,s){return new ig(l,n,i,s)}(this.persistence,new Jh,n.initialUser,this.serializer)}createPersistence(n){return new bc(Da.Hr,this.serializer)}createSharedClientState(n){return new rf}terminate(){var n=this;return(0,Ee.A)(function*(){var i,s;null===(i=n.gcScheduler)||void 0===i||i.stop(),null===(s=n.indexBackfillerScheduler)||void 0===s||s.stop(),n.sharedClientState.shutdown(),yield n.persistence.shutdown()})()}}class Ja{initialize(n,i){var s=this;return(0,Ee.A)(function*(){s.localStore||(s.localStore=n.localStore,s.sharedClientState=n.sharedClientState,s.datastore=s.createDatastore(i),s.remoteStore=s.createRemoteStore(i),s.eventManager=s.createEventManager(i),s.syncEngine=s.createSyncEngine(i,!n.synchronizeTabs),s.sharedClientState.onlineStateHandler=u=>mg(s.syncEngine,u,1),s.remoteStore.remoteSyncer.handleCredentialChange=Ag.bind(null,s.syncEngine),yield dg(s.remoteStore,s.syncEngine.isPrimaryClient))})()}createEventManager(n){return new If}createDatastore(n){const i=Oc(n.databaseInfo.databaseId),s=new Ld(n.databaseInfo);return new sg(n.authCredentials,n.appCheckCredentials,s,i)}createRemoteStore(n){return s=this.localStore,u=this.datastore,f=n.asyncQueue,_=i=>mg(this.syncEngine,i,0),w=Vd.D()?new Vd:new sf,new Cl(s,u,f,_,w);var s,u,f,_,w}createSyncEngine(n,i){return function(u,f,_,w,N,z,se){const we=new Oo(u,f,_,w,N,z);return se&&(we.La=!0),we}(this.localStore,this.remoteStore,this.eventManager,this.sharedClientState,n.initialUser,n.maxConcurrentLimboResolutions,i)}terminate(){var n=this;return(0,Ee.A)(function*(){var i,s;yield(s=(0,Ee.A)(function*(f){const _=de(f);Be("RemoteStore","RemoteStore shutting down."),_.M_.add(5),yield tu(_),_.O_.shutdown(),_.N_.set("Unknown")}),function u(f){return s.apply(this,arguments)})(n.remoteStore),null===(i=n.datastore)||void 0===i||i.terminate()})()}}class Hc{constructor(n){this.observer=n,this.muted=!1}next(n){this.observer.next&&this.Ka(this.observer.next,n)}error(n){this.observer.error?this.Ka(this.observer.error,n):rn("Uncaught Error in snapshot listener:",n.toString())}$a(){this.muted=!0}Ka(n,i){this.muted||setTimeout(()=>{this.muted||n(i)},0)}}class Ty{constructor(n,i,s,u){var f=this;this.authCredentials=n,this.appCheckCredentials=i,this.asyncQueue=s,this.databaseInfo=u,this.user=ze.UNAUTHENTICATED,this.clientId=Yn.newId(),this.authCredentialListener=()=>Promise.resolve(),this.appCheckCredentialListener=()=>Promise.resolve(),this.authCredentials.start(s,function(){var _=(0,Ee.A)(function*(w){Be("FirestoreClient","Received user=",w.uid),yield f.authCredentialListener(w),f.user=w});return function(w){return _.apply(this,arguments)}}()),this.appCheckCredentials.start(s,_=>(Be("FirestoreClient","Received new app check token=",_),this.appCheckCredentialListener(_,this.user)))}get configuration(){return{asyncQueue:this.asyncQueue,databaseInfo:this.databaseInfo,clientId:this.clientId,authCredentials:this.authCredentials,appCheckCredentials:this.appCheckCredentials,initialUser:this.user,maxConcurrentLimboResolutions:100}}setCredentialChangeListener(n){this.authCredentialListener=n}setAppCheckTokenChangeListener(n){this.appCheckCredentialListener=n}verifyNotTerminated(){if(this.asyncQueue.isShuttingDown)throw new me(ae.FAILED_PRECONDITION,"The client has already been terminated.")}terminate(){var n=this;this.asyncQueue.enterRestrictedMode();const i=new Ce;return this.asyncQueue.enqueueAndForgetEvenWhileRestricted((0,Ee.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,Ee.A)(function*(l,n){l.asyncQueue.verifyOperationInProgress(),Be("FirestoreClient","Initializing OfflineComponentProvider");const i=l.configuration;yield n.initialize(i);let s=i.initialUser;l.setCredentialChangeListener(function(){var u=(0,Ee.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,Ee.A)(function*(l,n){l.asyncQueue.verifyOperationInProgress();const i=yield function tc(l){return Nf.apply(this,arguments)}(l);Be("FirestoreClient","Initializing OnlineComponentProvider"),yield n.initialize(i,l.configuration),l.setCredentialChangeListener(s=>cg(n.remoteStore,s)),l.setAppCheckTokenChangeListener((s,u)=>cg(n.remoteStore,u)),l._onlineComponents=n})).apply(this,arguments)}function Nf(){return(Nf=(0,Ee.A)(function*(l){if(!l._offlineComponents)if(l._uninitializedComponentsProvider){Be("FirestoreClient","Using user provided OfflineComponentProvider");try{yield Pf(l,l._uninitializedComponentsProvider._offline)}catch(n){const i=n;if(!function Cv(l){return"FirebaseError"===l.name?l.code===ae.FAILED_PRECONDITION||l.code===ae.UNIMPLEMENTED:!(typeof DOMException<"u"&&l instanceof DOMException)||22===l.code||20===l.code||11===l.code}(i))throw i;pt("Error using user provided cache. Falling back to memory cache: "+i),yield Pf(l,new Za)}}else Be("FirestoreClient","Using default OfflineComponentProvider"),yield Pf(l,new Za);return l._offlineComponents})).apply(this,arguments)}function Gc(l){return Sg.apply(this,arguments)}function Sg(){return(Sg=(0,Ee.A)(function*(l){return l._onlineComponents||(l._uninitializedComponentsProvider?(Be("FirestoreClient","Using user provided OnlineComponentProvider"),yield xf(l,l._uninitializedComponentsProvider._online)):(Be("FirestoreClient","Using default OnlineComponentProvider"),yield xf(l,new Ja))),l._onlineComponents})).apply(this,arguments)}function uu(l){return Mg.apply(this,arguments)}function Mg(){return(Mg=(0,Ee.A)(function*(l){const n=yield Gc(l),i=n.eventManager;return i.onListen=Zi.bind(null,n.syncEngine),i.onUnlisten=Af.bind(null,n.syncEngine),i.onFirstRemoteStoreListen=Wd.bind(null,n.syncEngine),i.onLastRemoteStoreUnlisten=Cf.bind(null,n.syncEngine),i})).apply(this,arguments)}function ah(l){const n={};return void 0!==l.timeoutSeconds&&(n.timeoutSeconds=l.timeoutSeconds),n}const Ff=new Map;function Vf(l,n,i){if(!i)throw new me(ae.INVALID_ARGUMENT,`Function ${l}() cannot be called with an empty ${n}.`)}function Og(l){if(!Gt.isDocumentKey(l))throw new me(ae.INVALID_ARGUMENT,`Invalid document reference. Document references must have an even number of segments, but ${l} has ${l.length}.`)}function kg(l){if(Gt.isDocumentKey(l))throw new me(ae.INVALID_ARGUMENT,`Invalid collection reference. Collection references must have an odd number of segments, but ${l} has ${l.length}.`)}function Lf(l){if(void 0===l)return"undefined";if(null===l)return"null";if("string"==typeof l)return l.length>20&&(l=`${l.substring(0,20)}...`),JSON.stringify(l);if("number"==typeof l||"boolean"==typeof l)return""+l;if("object"==typeof l){if(l instanceof Array)return"an array";{const n=(s=l).constructor?s.constructor.name:null;return n?`a custom ${n} object`:"an object"}}var s;return"function"==typeof l?"a function":j()}function Xr(l,n){if("_delegate"in l&&(l=l._delegate),!(l instanceof n)){if(n.name===l.constructor.name)throw new me(ae.INVALID_ARGUMENT,"Type does not match the expected instance. Did you pass a reference from a different Firestore SDK?");{const i=Lf(l);throw new me(ae.INVALID_ARGUMENT,`Expected type '${n.name}', but it was: ${i}`)}}return l}class Rv{constructor(n){var i,s;if(void 0===n.host){if(void 0!==n.ssl)throw new me(ae.INVALID_ARGUMENT,"Can't provide ssl option if host option is not set");this.host="firestore.googleapis.com",this.ssl=!0}else this.host=n.host,this.ssl=null===(i=n.ssl)||void 0===i||i;if(this.credentials=n.credentials,this.ignoreUndefinedProperties=!!n.ignoreUndefinedProperties,this.localCache=n.localCache,void 0===n.cacheSizeBytes)this.cacheSizeBytes=41943040;else{if(-1!==n.cacheSizeBytes&&n.cacheSizeBytes<1048576)throw new me(ae.INVALID_ARGUMENT,"cacheSizeBytes must be at least 1048576");this.cacheSizeBytes=n.cacheSizeBytes}(function wv(l,n,i,s){if(!0===n&&!0===s)throw new me(ae.INVALID_ARGUMENT,`${l} and ${i} cannot be used together.`)})("experimentalForceLongPolling",n.experimentalForceLongPolling,"experimentalAutoDetectLongPolling",n.experimentalAutoDetectLongPolling),this.experimentalForceLongPolling=!!n.experimentalForceLongPolling,this.experimentalAutoDetectLongPolling=!(this.experimentalForceLongPolling||void 0!==n.experimentalAutoDetectLongPolling&&!n.experimentalAutoDetectLongPolling),this.experimentalLongPollingOptions=ah(null!==(s=n.experimentalLongPollingOptions)&&void 0!==s?s:{}),function(f){if(void 0!==f.timeoutSeconds){if(isNaN(f.timeoutSeconds))throw new me(ae.INVALID_ARGUMENT,`invalid long polling timeout: ${f.timeoutSeconds} (must not be NaN)`);if(f.timeoutSeconds<5)throw new me(ae.INVALID_ARGUMENT,`invalid long polling timeout: ${f.timeoutSeconds} (minimum allowed value is 5)`);if(f.timeoutSeconds>30)throw new me(ae.INVALID_ARGUMENT,`invalid long polling timeout: ${f.timeoutSeconds} (maximum allowed value is 30)`)}}(this.experimentalLongPollingOptions),this.useFetchStreams=!!n.useFetchStreams}isEqual(n){return this.host===n.host&&this.ssl===n.ssl&&this.credentials===n.credentials&&this.cacheSizeBytes===n.cacheSizeBytes&&this.experimentalForceLongPolling===n.experimentalForceLongPolling&&this.experimentalAutoDetectLongPolling===n.experimentalAutoDetectLongPolling&&this.experimentalLongPollingOptions.timeoutSeconds===n.experimentalLongPollingOptions.timeoutSeconds&&this.ignoreUndefinedProperties===n.ignoreUndefinedProperties&&this.useFetchStreams===n.useFetchStreams}}class lh{constructor(n,i,s,u){this._authCredentials=n,this._appCheckCredentials=i,this._databaseId=s,this._app=u,this.type="firestore-lite",this._persistenceKey="(lite)",this._settings=new Rv({}),this._settingsFrozen=!1}get app(){if(!this._app)throw new me(ae.FAILED_PRECONDITION,"Firestore was not initialized using the Firebase SDK. 'app' is not available");return this._app}get _initialized(){return this._settingsFrozen}get _terminated(){return void 0!==this._terminateTask}_setSettings(n){if(this._settingsFrozen)throw new me(ae.FAILED_PRECONDITION,"Firestore has already been started and its settings can no longer be changed. You can only modify settings before calling any other methods on a Firestore object.");this._settings=new Rv(n),void 0!==n.credentials&&(this._authCredentials=function(s){if(!s)return new kt;switch(s.type){case"firstParty":return new $n(s.sessionIndex||"0",s.iamToken||null,s.authTokenFactory||null);case"provider":return s.client;default:throw new me(ae.INVALID_ARGUMENT,"makeAuthCredentialsProvider failed due to invalid credential type")}}(n.credentials))}_getSettings(){return this._settings}_freezeSettings(){return this._settingsFrozen=!0,this._settings}_delete(){return this._terminateTask||(this._terminateTask=this._terminate()),this._terminateTask}toJSON(){return{app:this._app,databaseId:this._databaseId,settings:this._settings}}_terminate(){return function(i){const s=Ff.get(i);s&&(Be("ComponentProvider","Removing Datastore"),Ff.delete(i),s.terminate())}(this),Promise.resolve()}}class po{constructor(n,i,s){this.converter=i,this._query=s,this.type="query",this.firestore=n}withConverter(n){return new po(this.firestore,n,this._query)}}class go{constructor(n,i,s){this.converter=i,this._key=s,this.type="document",this.firestore=n}get _path(){return this._key.path}get id(){return this._key.path.lastSegment()}get path(){return this._key.path.canonicalString()}get parent(){return new bl(this.firestore,this.converter,this._key.path.popLast())}withConverter(n){return new go(this.firestore,n,this._key)}}class bl extends po{constructor(n,i,s){super(n,i,ce(s)),this._path=s,this.type="collection"}get id(){return this._query.path.lastSegment()}get path(){return this._query.path.canonicalString()}get parent(){const n=this._path.popLast();return n.isEmpty()?null:new go(this.firestore,null,new Gt(n))}withConverter(n){return new bl(this.firestore,n,this._path)}}function rE(l,n,...i){if(l=(0,De.Ku)(l),Vf("collection","path",n),l instanceof lh){const s=gn.fromString(n,...i);return kg(s),new bl(l,null,s)}{if(!(l instanceof go||l instanceof bl))throw new me(ae.INVALID_ARGUMENT,"Expected first argument to collection() to be a CollectionReference, a DocumentReference or FirebaseFirestore");const s=l._path.child(gn.fromString(n,...i));return kg(s),new bl(l.firestore,null,s)}}function Sy(l,n,...i){if(l=(0,De.Ku)(l),1===arguments.length&&(n=Yn.newId()),Vf("doc","path",n),l instanceof lh){const s=gn.fromString(n,...i);return Og(s),new go(l,null,new Gt(s))}{if(!(l instanceof go||l instanceof bl))throw new me(ae.INVALID_ARGUMENT,"Expected first argument to collection() to be a CollectionReference, a DocumentReference or FirebaseFirestore");const s=l._path.child(gn.fromString(n,...i));return Og(s),new go(l.firestore,l instanceof bl?l.converter:null,new Gt(s))}}class 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&&Be("AsyncQueue","Visibility state changed to "+i.visibilityState),this.Yo.Wo()};const n=Al();n&&"function"==typeof n.addEventListener&&n.addEventListener("visibilitychange",this.hu)}get isShuttingDown(){return this.ou}enqueueAndForget(n){this.enqueue(n)}enqueueAndForgetEvenWhileRestricted(n){this.Pu(),this.Iu(n)}enterRestrictedMode(n){if(!this.ou){this.ou=!0,this.cu=n||!1;const i=Al();i&&"function"==typeof i.removeEventListener&&i.removeEventListener("visibilitychange",this.hu)}}enqueue(n){if(this.Pu(),this.ou)return new Promise(()=>{});const i=new Ce;return this.Iu(()=>this.ou&&this.cu?Promise.resolve():(n().then(i.resolve,i.reject),i.promise)).then(()=>i.promise)}enqueueRetryable(n){this.enqueueAndForget(()=>(this.su.push(n),this.Tu()))}Tu(){var n=this;return(0,Ee.A)(function*(){if(0!==n.su.length){try{yield n.su[0](),n.su.shift(),n.Yo.reset()}catch(i){if(!Pe(i))throw i;Be("AsyncQueue","Operation failed with retryable error: "+i)}n.su.length>0&&n.Yo.$o(()=>n.Tu())}})()}Iu(n){const i=this.iu.then(()=>(this.uu=!0,n().catch(s=>{throw this.au=s,this.uu=!1,rn("INTERNAL UNHANDLED ERROR: ",function(_){let w=_.message||"";return _.stack&&(w=_.stack.includes(_.message)?_.stack:_.message+"\n"+_.stack),w}(s)),s}).then(s=>(this.uu=!1,s))));return this.iu=i,i}enqueueAfterDelay(n,i,s){this.Pu(),this.lu.indexOf(n)>-1&&(i=0);const u=fg.createAndSchedule(this,n,i,s,f=>this.Eu(f));return this._u.push(u),u}Pu(){this.au&&j()}verifyOperationInProgress(){}du(){var n=this;return(0,Ee.A)(function*(){let i;do{i=n.iu,yield i}while(i!==n.iu)})()}Au(n){for(const i of this._u)if(i.timerId===n)return!0;return!1}Ru(n){return this.du().then(()=>{this._u.sort((i,s)=>i.targetTimeMs-s.targetTimeMs);for(const i of this._u)if(i.skipDelay(),"all"!==n&&i.timerId===n)break;return this.du()})}Vu(n){this.lu.push(n)}Eu(n){const i=this._u.indexOf(n);this._u.splice(i,1)}}class bi extends lh{constructor(n,i,s,u){super(n,i,s,u),this.type="firestore",this._queue=new Ry,this._persistenceKey=(null==u?void 0:u.name)||"[DEFAULT]"}_terminate(){return this._firestoreClient||Lg(this),this._firestoreClient.terminate()}}function uh(l,n){const i="object"==typeof l?l:(0,re.Sx)(),s="string"==typeof l?l:n||"(default)",u=(0,re.j6)(i,"firestore").getImmediate({identifier:s});if(!u._initialized){const f=(0,De.yU)("firestore");f&&function cu(l,n,i,s={}){var u;const f=(l=Xr(l,lh))._getSettings(),_=`${n}:${i}`;if("firestore.googleapis.com"!==f.host&&f.host!==_&&pt("Host has been set in both settings() and connectFirestoreEmulator(), emulator host will be used."),l._setSettings(Object.assign(Object.assign({},f),{host:_,ssl:!1})),s.mockUserToken){let w,N;if("string"==typeof s.mockUserToken)w=s.mockUserToken,N=ze.MOCK_USER;else{w=(0,De.Fy)(s.mockUserToken,null===(u=l._app)||void 0===u?void 0:u.options.projectId);const z=s.mockUserToken.sub||s.mockUserToken.user_id;if(!z)throw new me(ae.INVALID_ARGUMENT,"mockUserToken must contain 'sub' or 'user_id' field!");N=new ze(z)}l._authCredentials=new Bt(new at(w,N))}}(u,...f)}return u}function to(l){return l._firestoreClient||Lg(l),l._firestoreClient.verifyNotTerminated(),l._firestoreClient}function Lg(l){var n,i,s;const u=l._freezeSettings(),f=(N=(null===(n=l._app)||void 0===n?void 0:n.options.appId)||"",new co(l._databaseId,N,l._persistenceKey,(se=u).host,se.ssl,se.experimentalForceLongPolling,se.experimentalAutoDetectLongPolling,ah(se.experimentalLongPollingOptions),se.useFetchStreams));var N,se;l._firestoreClient=new 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(si.fromBase64String(n))}catch(i){throw new me(ae.INVALID_ARGUMENT,"Failed to construct data from Base64 string: "+i)}}static fromUint8Array(n){return new nc(si.fromUint8Array(n))}toBase64(){return this._byteString.toBase64()}toUint8Array(){return this._byteString.toUint8Array()}toString(){return"Bytes(base64: "+this.toBase64()+")"}isEqual(n){return this._byteString.isEqual(n._byteString)}}class hu{constructor(...n){for(let i=0;i90)throw new me(ae.INVALID_ARGUMENT,"Latitude must be a number between -90 and 90, but was: "+n);if(!isFinite(i)||i<-180||i>180)throw new me(ae.INVALID_ARGUMENT,"Longitude must be a number between -180 and 180, but was: "+i);this._lat=n,this._long=i}get latitude(){return this._lat}get longitude(){return this._long}isEqual(n){return this._lat===n._lat&&this._long===n._long}toJSON(){return{latitude:this._lat,longitude:this._long}}_compareTo(n){return Ve(this._lat,n._lat)||Ve(this._long,n._long)}}const Nv=/^__.*__$/;class Uf{constructor(n,i,s){this.data=n,this.fieldMask=i,this.fieldTransforms=s}toMutation(n,i){return null!==this.fieldMask?new lo(n,this.data,this.fieldMask,i,this.fieldTransforms):new Ms(n,this.data,i,this.fieldTransforms)}}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 j()}}class Bf{constructor(n,i,s,u,f,_){this.settings=n,this.databaseId=i,this.serializer=s,this.ignoreUndefinedProperties=u,void 0===f&&this.mu(),this.fieldTransforms=f||[],this.fieldMask=_||[]}get path(){return this.settings.path}get fu(){return this.settings.fu}gu(n){return new Bf(Object.assign(Object.assign({},this.settings),n),this.databaseId,this.serializer,this.ignoreUndefinedProperties,this.fieldTransforms,this.fieldMask)}pu(n){var i;const s=null===(i=this.path)||void 0===i?void 0:i.child(n),u=this.gu({path:s,yu:!1});return u.wu(n),u}Su(n){var i;const s=null===(i=this.path)||void 0===i?void 0:i.child(n),u=this.gu({path:s,yu:!1});return u.mu(),u}bu(n){return this.gu({path:void 0,yu:!0})}Du(n){return Gf(n,this.settings.methodName,this.settings.Cu||!1,this.path,this.settings.vu)}contains(n){return void 0!==this.fieldMask.find(i=>n.isPrefixOf(i))||void 0!==this.fieldTransforms.find(i=>n.isPrefixOf(i.field))}mu(){if(this.path)for(let n=0;nN.covers(we.field))}else N=null,z=_.fieldTransforms;return new Uf(new In(w),N,z)}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(Vv(l=(0,De.Ku)(l)))return Gg("Unsupported field value:",n,l),Fv(l,n);if(l instanceof qc)return function(s,u){if(!$f(u.fu))throw u.Du(`${s._methodName}() can only be used with update() and set()`);if(!u.path)throw u.Du(`${s._methodName}() is not currently supported inside arrays`);const f=s._toFieldTransform(u);f&&u.fieldTransforms.push(f)}(l,n),null;if(void 0===l&&n.ignoreUndefinedProperties)return null;if(n.path&&n.fieldMask.push(n.path),l instanceof Array){if(n.settings.yu&&4!==n.fu)throw n.Du("Nested arrays are not supported");return function(s,u){const f=[];let _=0;for(const w of s){let N=Sa(w,u.bu(_));null==N&&(N={nullValue:"NULL_VALUE"}),f.push(N),_++}return{arrayValue:{values:f}}}(l,n)}return function(s,u){if(null===(s=(0,De.Ku)(s)))return{nullValue:"NULL_VALUE"};if("number"==typeof s)return cl(u.serializer,s);if("boolean"==typeof s)return{booleanValue:s};if("string"==typeof s)return{stringValue:s};if(s instanceof Date){const f=Xt.fromDate(s);return{timestampValue:wo(u.serializer,f)}}if(s instanceof Xt){const f=new Xt(s.seconds,1e3*Math.floor(s.nanoseconds/1e3));return{timestampValue:wo(u.serializer,f)}}if(s instanceof Ug)return{geoPointValue:{latitude:s.latitude,longitude:s.longitude}};if(s instanceof nc)return{bytesValue:Gs(u.serializer,s._byteString)};if(s instanceof go){const f=u.databaseId,_=s.firestore._databaseId;if(!_.isEqual(f))throw u.Du(`Document reference is for database ${_.projectId}/${_.database} but should be for database ${f.projectId}/${f.database}`);return{referenceValue:_a(s.firestore._databaseId||u.databaseId,s._key.path)}}throw u.Du(`Unsupported field value: ${Lf(s)}`)}(l,n)}function Fv(l,n){const i={};return ti(l)?n.path&&n.path.length>0&&n.fieldMask.push(n.path):mi(l,(s,u)=>{const f=Sa(u,n.pu(s));null!=f&&(i[s]=f)}),{mapValue:{fields:i}}}function Vv(l){return!("object"!=typeof l||null===l||l instanceof Array||l instanceof Date||l instanceof Xt||l instanceof Ug||l instanceof nc||l instanceof go||l instanceof qc)}function Gg(l,n,i){if(!Vv(i)||"object"!=typeof(u=i)||null===u||Object.getPrototypeOf(u)!==Object.prototype&&null!==Object.getPrototypeOf(u)){const s=Lf(i);throw n.Du("an object"===s?l+" a custom object":l+" "+s)}var u}function Yc(l,n,i){if((n=(0,De.Ku)(n))instanceof hu)return n._internalPath;if("string"==typeof n)return Hf(l,n);throw Gf("Field path arguments must be of type string or ",l,!1,void 0,i)}const Vy=new RegExp("[~\\*/\\[\\]]");function Hf(l,n,i){if(n.search(Vy)>=0)throw Gf(`Invalid field path (${n}). Paths must not contain '~', '*', '/', '[', or ']'`,l,!1,void 0,i);try{return new hu(...n.split("."))._internalPath}catch{throw Gf(`Invalid field path (${n}). Paths must not be empty, begin with '.', end with '.', or contain '..'`,l,!1,void 0,i)}}function Gf(l,n,i,s,u){const f=s&&!s.isEmpty(),_=void 0!==u;let w=`Function ${n}() called with invalid data`;i&&(w+=" (via `toFirestore()`)"),w+=". ";let N="";return(f||_)&&(N+=" (found",f&&(N+=` in field ${s}`),_&&(N+=` in document ${u}`),N+=")"),new me(ae.INVALID_ARGUMENT,w+l+N)}function Lv(l,n){return l.some(i=>i.isEqual(n))}class dh{constructor(n,i,s,u,f){this._firestore=n,this._userDataWriter=i,this._key=s,this._document=u,this._converter=f}get id(){return this._key.path.lastSegment()}get ref(){return new go(this._firestore,this._converter,this._key)}exists(){return null!==this._document}data(){if(this._document){if(this._converter){const n=new Ly(this._firestore,this._userDataWriter,this._key,this._document,null);return this._converter.fromFirestore(n)}return this._userDataWriter.convertValue(this._document.data.value)}}get(n){if(this._document){const i=this._document.data.field(Zc("DocumentSnapshot.get",n));if(null!==i)return this._userDataWriter.convertValue(i)}}}class Ly extends dh{data(){return super.data()}}function Zc(l,n){return"string"==typeof n?Hf(l,n):n instanceof hu?n._internalPath:n._delegate._internalPath}class qg{convertValue(n,i="none"){switch(H(n)){case 0:return null;case 1:return n.booleanValue;case 2:return ai(n.integerValue||n.doubleValue);case 3:return this.convertTimestamp(n.timestampValue);case 4:return this.convertServerTimestamp(n,i);case 5:return n.stringValue;case 6:return this.convertBytes(jn(n.bytesValue));case 7:return this.convertReference(n.referenceValue);case 8:return this.convertGeoPoint(n.geoPointValue);case 9:return this.convertArray(n.arrayValue,i);case 10:return this.convertObject(n.mapValue,i);default:throw j()}}convertObject(n,i){return this.convertObjectMap(n.fields,i)}convertObjectMap(n,i="none"){const s={};return mi(n,(u,f)=>{s[u]=this.convertValue(f,i)}),s}convertGeoPoint(n){return new Ug(ai(n.latitude),ai(n.longitude))}convertArray(n,i){return(n.values||[]).map(s=>this.convertValue(s,i))}convertServerTimestamp(n,i){switch(i){case"previous":const s=Ao(n);return null==s?null:this.convertValue(s,i);case"estimate":return this.convertTimestamp(Co(n));default:return null}}convertTimestamp(n){const i=Or(n);return new Xt(i.seconds,i.nanos)}convertDocumentKey(n,i){const s=gn.fromString(n);W(Td(s));const u=new To(s.get(1),s.get(3)),f=new Gt(s.popFirst(5));return u.isEqual(i)||rn(`Document ${f} contains a document reference within a different database (${u.projectId}/${u.database}) which is not supported. It will be treated as a reference in the current database (${i.projectId}/${i.database}) instead.`),f}}class Sl{constructor(n,i){this.hasPendingWrites=n,this.fromCache=i}isEqual(n){return this.hasPendingWrites===n.hasPendingWrites&&this.fromCache===n.fromCache}}class oc extends dh{constructor(n,i,s,u,f,_){super(n,i,s,u,_),this._firestore=n,this._firestoreImpl=n,this.metadata=f}exists(){return super.exists()}data(n={}){if(this._document){if(this._converter){const i=new td(this._firestore,this._userDataWriter,this._key,this._document,this.metadata,null);return this._converter.fromFirestore(i,n)}return this._userDataWriter.convertValue(this._document.data.value,n.serverTimestamps)}}get(n,i={}){if(this._document){const s=this._document.data.field(Zc("DocumentSnapshot.get",n));if(null!==s)return this._userDataWriter.convertValue(s,i.serverTimestamps)}}}class td extends oc{data(n={}){return super.data(n)}}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 me(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 N=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 z=-1,se=-1;return 0!==w.type&&(z=_.indexOf(w.doc.key),_=_.delete(w.doc.key)),1!==w.type&&(_=_.add(w.doc),se=_.indexOf(w.doc.key)),{type:Wy(w.type),doc:N,oldIndex:z,newIndex:se}})}}(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 j()}}function jv(l){l=Xr(l,go);const n=Xr(l.firestore,bi);return function sh(l,n,i={}){const s=new Ce;return l.asyncQueue.enqueueAndForget((0,Ee.A)(function*(){return function(f,_,w,N,z){const se=new Hc({next:We=>{_.enqueueAndForget(()=>$c(f,we));const Rt=We.docs.has(w);!Rt&&We.fromCache?z.reject(new me(ae.UNAVAILABLE,"Failed to get document because the client is offline.")):Rt&&We.fromCache&&N&&"server"===N.source?z.reject(new me(ae.UNAVAILABLE,'Failed to get document from server. (However, this document does exist in the local cache. Run again without setting source to "server" to retrieve the cached document.)')):z.resolve(We)},error:We=>z.reject(We)}),we=new v(ce(w.path),se,{includeMetadataChanges:!0,ra:!0});return Os(f,we)}(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=Xr(l,po);const n=Xr(l.firestore,bi),i=to(n),s=new fu(n);return function Uy(l){if("L"===l.limitType&&0===l.explicitOrderBy.length)throw new me(ae.UNIMPLEMENTED,"limitToLast() queries require specifying at least one orderBy() clause")}(l._query),function xg(l,n,i={}){const s=new Ce;return l.asyncQueue.enqueueAndForget((0,Ee.A)(function*(){return function(f,_,w,N,z){const se=new Hc({next:We=>{_.enqueueAndForget(()=>$c(f,we)),We.fromCache&&"server"===N.source?z.reject(new me(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.)')):z.resolve(We)},error:We=>z.reject(We)}),we=new v(w,se,{includeMetadataChanges:!0,ra:!0});return Os(f,we)}(yield uu(l),l.asyncQueue,n,i,s)})),s.promise}(i,l._query).then(u=>new Rl(n,s,l,u))}function Zg(l,n,i){l=Xr(l,go);const s=Xr(l.firestore,bi),u=function fh(l,n,i){let s;return s=l?i&&(i.merge||i.mergeFields)?l.toFirestore(n,i):l.toFirestore(n):n,s}(l.converter,n,i);return rd(s,[jf(rc(s),"setDoc",l._key,u,null!==l.converter,i).toMutation(l._key,Di.none())])}function Ky(l,n,i,...s){l=Xr(l,go);const u=Xr(l.firestore,bi),f=rc(u);let _;return _="string"==typeof(n=(0,De.Ku)(n))||n instanceof hu?function kv(l,n,i,s,u,f){const _=l.Fu(1,n,i),w=[Yc(n,s,i)],N=[u];if(f.length%2!=0)throw new me(ae.INVALID_ARGUMENT,`Function ${n}() needs to be called with an even number of arguments that alternate between field names and values.`);for(let We=0;We=0;--We)if(!Lv(z,w[We])){const Rt=w[We];let tn=N[We];tn=(0,De.Ku)(tn);const pn=_.Su(Rt);if(tn instanceof Qc)z.push(Rt);else{const ln=Sa(tn,pn);null!=ln&&(z.push(Rt),se.set(Rt,ln))}}const we=new Bi(z);return new Ov(se,we,_.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=[],_=In.empty();mi(s,(N,z)=>{const se=Hf(n,N,i);z=(0,De.Ku)(z);const we=u.Su(se);if(z instanceof Qc)f.push(se);else{const We=Sa(z,we);null!=We&&(f.push(se),_.set(se,We))}});const w=new Bi(f);return new Ov(_,w,u.fieldTransforms)}(f,"updateDoc",l._key,n),rd(u,[_.toMutation(l._key,Di.exists(!0))])}function qy(l){return rd(Xr(l.firestore,bi),[new V(l._key,Di.none())])}function rd(l,n){return function(s,u){const f=new Ce;return s.asyncQueue.enqueueAndForget((0,Ee.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){Tt=re.MF,(0,re.om)(new Ze.uA("firestore",(s,{instanceIdentifier:u,options:f})=>{const _=s.getProvider("app").getImmediate(),w=new bi(new vn(s.getProvider("auth-internal")),new er(s.getProvider("app-check-internal")),function(z,se){if(!Object.prototype.hasOwnProperty.apply(z.options,["projectId"]))throw new me(ae.INVALID_ARGUMENT,'"projectId" not provided in firebase.initializeApp.');return new To(z.options.projectId,se)}(_,u),_);return f=Object.assign({useFetchStreams:i},f),w._setSettings(f),w},"PUBLIC").setMultipleInstances(!0)),(0,re.KO)(xt,"4.6.3",n),(0,re.KO)(xt,"4.6.3","esm2017")}();class vh{constructor(n){return n}}const ep="firestore",im=new d.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 d.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 d.Xx1,im],ge.XU]};function Zv(l,...n){return(0,X.KO)("angularfire",g.xv.full,"fst"),(0,d.EmA)([d0,c0,{provide:im,useFactory:u0(l),multi:!0,deps:[d.SKi,d.zZn,g.u0,ge.gL,[new d.Xx1,Oe.DF],[new d.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)(Zg,!0),R0=(0,g.S3)(Ky,!0)},3586:(En,bt,B)=>{"use strict";B.d(bt,{xv:()=>Me,u0:()=>Dt,Jv:()=>xt,CA:()=>Ct,lR:()=>Ke,S3:()=>ae});var g=B(9842),d=B(4438),ge=B(2214),Oe=B(8359);class X extends Oe.yU{constructor(Ce,at){super()}schedule(Ce,at=0){return this}}const Ee={setInterval(me,Ce,...at){const{delegate:kt}=Ee;return null!=kt&&kt.setInterval?kt.setInterval(me,Ce,...at):setInterval(me,Ce,...at)},clearInterval(me){const{delegate:Ce}=Ee;return((null==Ce?void 0:Ce.clearInterval)||clearInterval)(me)},delegate:void 0};var re=B(7908);class Ze extends X{constructor(Ce,at){super(Ce,at),this.scheduler=Ce,this.work=at,this.pending=!1}schedule(Ce,at=0){var kt;if(this.closed)return this;this.state=Ce;const Bt=this.id,vn=this.scheduler;return null!=Bt&&(this.id=this.recycleAsyncId(vn,Bt,at)),this.pending=!0,this.delay=at,this.id=null!==(kt=this.id)&&void 0!==kt?kt:this.requestAsyncId(vn,this.id,at),this}requestAsyncId(Ce,at,kt=0){return Ee.setInterval(Ce.flush.bind(Ce,this),kt)}recycleAsyncId(Ce,at,kt=0){if(null!=kt&&this.delay===kt&&!1===this.pending)return at;null!=at&&Ee.clearInterval(at)}execute(Ce,at){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const kt=this._execute(Ce,at);if(kt)return kt;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(Ce,at){let Bt,kt=!1;try{this.work(Ce)}catch(vn){kt=!0,Bt=vn||new Error("Scheduled action threw falsy error")}if(kt)return this.unsubscribe(),Bt}unsubscribe(){if(!this.closed){const{id:Ce,scheduler:at}=this,{actions:kt}=at;this.work=this.state=this.scheduler=null,this.pending=!1,(0,re.o)(kt,this),null!=Ce&&(this.id=this.recycleAsyncId(at,Ce,null)),this.delay=null,super.unsubscribe()}}}const De={now:()=>(De.delegate||Date).now(),delegate:void 0};class ye{constructor(Ce,at=ye.now){this.schedulerActionCtor=Ce,this.now=at}schedule(Ce,at=0,kt){return new this.schedulerActionCtor(this,Ce).schedule(kt,at)}}ye.now=De.now;class Fe extends ye{constructor(Ce,at=ye.now){super(Ce,at),this.actions=[],this._active=!1}flush(Ce){const{actions:at}=this;if(this._active)return void at.push(Ce);let kt;this._active=!0;do{if(kt=Ce.execute(Ce.state,Ce.delay))break}while(Ce=at.shift());if(this._active=!1,kt){for(;Ce=at.shift();)Ce.unsubscribe();throw kt}}}const Le=new class $e extends Fe{}(class Je extends Ze{constructor(Ce,at){super(Ce,at),this.scheduler=Ce,this.work=at}schedule(Ce,at=0){return at>0?super.schedule(Ce,at):(this.delay=at,this.state=Ce,this.scheduler.flush(this),this)}execute(Ce,at){return at>0||this.closed?super.execute(Ce,at):this._execute(Ce,at)}requestAsyncId(Ce,at,kt=0){return null!=kt&&kt>0||null==kt&&this.delay>0?super.requestAsyncId(Ce,at,kt):(Ce.flush(this),0)}}),ft=new Fe(Ze);var st=B(1985),Mt=B(8141),mt=B(6745),vt=B(941);const Me=new d.RxE("ANGULARFIRE2_VERSION");function Ke(me,Ce,at){if(Ce){if(1===Ce.length)return Ce[0];const vn=Ce.filter(bn=>bn.app===at);if(1===vn.length)return vn[0]}return at.container.getProvider(me).getImmediate({optional:!0})}const Ct=(me,Ce)=>{const at=Ce?[Ce]:(0,ge.Dk)(),kt=[];return at.forEach(Bt=>{Bt.container.getProvider(me).instances.forEach(bn=>{kt.includes(bn)||kt.push(bn)})}),kt};class xt{constructor(){return Ct(ze)}}const ze="app-check";function Tt(){}class Vt{constructor(Ce,at=Le){(0,g.A)(this,"zone",void 0),(0,g.A)(this,"delegate",void 0),this.zone=Ce,this.delegate=at}now(){return this.delegate.now()}schedule(Ce,at,kt){const Bt=this.zone;return this.delegate.schedule(function(bn){Bt.runGuarded(()=>{Ce.apply(this,[bn])})},at,kt)}}class Zt{constructor(Ce){(0,g.A)(this,"zone",void 0),(0,g.A)(this,"task",null),this.zone=Ce}call(Ce,at){const kt=this.unscheduleTask.bind(this);return this.task=this.zone.run(()=>Zone.current.scheduleMacroTask("firebaseZoneBlock",Tt,{},Tt,Tt)),at.pipe((0,Mt.M)({next:kt,complete:kt,error:kt})).subscribe(Ce).add(kt)}unscheduleTask(){setTimeout(()=>{null!=this.task&&"scheduled"===this.task.state&&(this.task.invoke(),this.task=null)},10)}}let Dt=(()=>{var me;class Ce{constructor(kt){(0,g.A)(this,"ngZone",void 0),(0,g.A)(this,"outsideAngular",void 0),(0,g.A)(this,"insideAngular",void 0),this.ngZone=kt,this.outsideAngular=kt.runOutsideAngular(()=>new Vt(Zone.current)),this.insideAngular=kt.run(()=>new Vt(Zone.current,ft)),globalThis.\u0275AngularFireScheduler||(globalThis.\u0275AngularFireScheduler=this)}}return me=Ce,(0,g.A)(Ce,"\u0275fac",function(kt){return new(kt||me)(d.KVO(d.SKi))}),(0,g.A)(Ce,"\u0275prov",d.jDH({token:me,factory:me.\u0275fac,providedIn:"root"})),Ce})();function Be(){const me=globalThis.\u0275AngularFireScheduler;if(!me)throw new Error("Either AngularFireModule has not been provided in your AppModule (this can be done manually or implictly using\nprovideFirebaseApp) or you're calling an AngularFire method outside of an NgModule (which is not supported).");return me}function pt(me){return Be().ngZone.run(()=>me())}function W(me){return function te(me){return function(at){return(at=at.lift(new Zt(me.ngZone))).pipe((0,mt._)(me.outsideAngular),(0,vt.Q)(me.insideAngular))}}(Be())(me)}const de=(me,Ce)=>function(){const kt=arguments;return Ce&&setTimeout(()=>{"scheduled"===Ce.state&&Ce.invoke()},10),pt(()=>me.apply(void 0,kt))},ae=(me,Ce)=>function(){let at;const kt=arguments;for(let vn=0;vnZone.current.scheduleMacroTask("firebaseZoneBlock",Tt,{},Tt,Tt)))),kt[vn]=de(kt[vn],at));const Bt=function rn(me){return Be().ngZone.runOutsideAngular(()=>me())}(()=>me.apply(this,kt));if(!Ce){if(Bt instanceof st.c){const vn=Be();return Bt.pipe((0,mt._)(vn.outsideAngular),(0,vt.Q)(vn.insideAngular))}return pt(()=>Bt)}return Bt instanceof st.c?Bt.pipe(W):Bt instanceof Promise?pt(()=>new Promise((vn,bn)=>Bt.then($n=>pt(()=>vn($n)),$n=>pt(()=>bn($n))))):"function"==typeof Bt&&at?function(){return setTimeout(()=>{at&&"scheduled"===at.state&&at.invoke()},10),Bt.apply(this,arguments)}:pt(()=>Bt)}},4341:(En,bt,B)=>{"use strict";B.d(bt,{YN:()=>da,zX:()=>ci,VZ:()=>Go,cz:()=>Ke,kq:()=>Qe,vO:()=>Ot,BC:()=>gn,vS:()=>sr});var g=B(4438),d=B(177),ge=B(8455),Oe=B(1985),X=B(3073),Ee=B(8750),re=B(3794),Ze=B(4360),Je=B(6450),De=B(8496),Fe=B(6354);let $e=(()=>{var L;class P{constructor($,Te){this._renderer=$,this._elementRef=Te,this.onChange=nn=>{},this.onTouched=()=>{}}setProperty($,Te){this._renderer.setProperty(this._elementRef.nativeElement,$,Te)}registerOnTouched($){this.onTouched=$}registerOnChange($){this.onChange=$}setDisabledState($){this.setProperty("disabled",$)}}return(L=P).\u0275fac=function($){return new($||L)(g.rXU(g.sFG),g.rXU(g.aKT))},L.\u0275dir=g.FsC({type:L}),P})(),Le=(()=>{var L;class P extends $e{}return(L=P).\u0275fac=(()=>{let ce;return function(Te){return(ce||(ce=g.xGo(L)))(Te||L)}})(),L.\u0275dir=g.FsC({type:L,features:[g.Vt3]}),P})();const Qe=new g.nKC(""),st={provide:Qe,useExisting:(0,g.Rfq)(()=>vt),multi:!0},mt=new g.nKC("");let vt=(()=>{var L;class P extends $e{constructor($,Te,nn){super($,Te),this._compositionMode=nn,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function Mt(){const L=(0,d.QT)()?(0,d.QT)().getUserAgent():"";return/android (\d+)/.test(L.toLowerCase())}())}writeValue($){this.setProperty("value",null==$?"":$)}_handleInput($){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange($)}_compositionStart(){this._composing=!0}_compositionEnd($){this._composing=!1,this._compositionMode&&this.onChange($)}}return(L=P).\u0275fac=function($){return new($||L)(g.rXU(g.sFG),g.rXU(g.aKT),g.rXU(mt,8))},L.\u0275dir=g.FsC({type:L,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function($,Te){1&$&&g.bIt("input",function(On){return Te._handleInput(On.target.value)})("blur",function(){return Te.onTouched()})("compositionstart",function(){return Te._compositionStart()})("compositionend",function(On){return Te._compositionEnd(On.target.value)})},features:[g.Jv_([st]),g.Vt3]}),P})();function Me(L){return null==L||("string"==typeof L||Array.isArray(L))&&0===L.length}const Ke=new g.nKC(""),Ct=new g.nKC("");function j(L){return null}function W(L){return null!=L}function te(L){return(0,g.jNT)(L)?(0,ge.H)(L):L}function de(L){let P={};return L.forEach(ce=>{P=null!=ce?{...P,...ce}:P}),0===Object.keys(P).length?null:P}function ae(L,P){return P.map(ce=>ce(L))}function Ce(L){return L.map(P=>function me(L){return!L.validate}(P)?P:ce=>P.validate(ce))}function kt(L){return null!=L?function at(L){if(!L)return null;const P=L.filter(W);return 0==P.length?null:function(ce){return de(ae(ce,P))}}(Ce(L)):null}function vn(L){return null!=L?function Bt(L){if(!L)return null;const P=L.filter(W);return 0==P.length?null:function(ce){return function ye(...L){const P=(0,re.ms)(L),{args:ce,keys:$}=(0,X.D)(L),Te=new Oe.c(nn=>{const{length:On}=ce;if(!On)return void nn.complete();const rr=new Array(On);let Ji=On,ao=On;for(let eo=0;eo{Qo||(Qo=!0,ao--),rr[eo]=Na},()=>Ji--,void 0,()=>{(!Ji||!Qo)&&(ao||nn.next($?(0,De.e)($,rr):rr),nn.complete())}))}});return P?Te.pipe((0,Je.I)(P)):Te}(ae(ce,P).map(te)).pipe((0,Fe.T)(de))}}(Ce(L)):null}function bn(L,P){return null===L?[P]:Array.isArray(L)?[...L,P]:[L,P]}function er(L){return L?Array.isArray(L)?L:[L]:[]}function yn(L,P){return Array.isArray(L)?L.includes(P):L===P}function ir(L,P){const ce=er(P);return er(L).forEach(Te=>{yn(ce,Te)||ce.push(Te)}),ce}function Yn(L,P){return er(P).filter(ce=>!yn(L,ce))}class Ve{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(P){this._rawValidators=P||[],this._composedValidatorFn=kt(this._rawValidators)}_setAsyncValidators(P){this._rawAsyncValidators=P||[],this._composedAsyncValidatorFn=vn(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(P){this._onDestroyCallbacks.push(P)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(P=>P()),this._onDestroyCallbacks=[]}reset(P=void 0){this.control&&this.control.reset(P)}hasError(P,ce){return!!this.control&&this.control.hasError(P,ce)}getError(P,ce){return this.control?this.control.getError(P,ce):null}}class yt extends Ve{get formDirective(){return null}get path(){return null}}class Ot extends Ve{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Xt{constructor(P){this._cd=P}get isTouched(){var P;return!(null===(P=this._cd)||void 0===P||null===(P=P.control)||void 0===P||!P.touched)}get isUntouched(){var P;return!(null===(P=this._cd)||void 0===P||null===(P=P.control)||void 0===P||!P.untouched)}get isPristine(){var P;return!(null===(P=this._cd)||void 0===P||null===(P=P.control)||void 0===P||!P.pristine)}get isDirty(){var P;return!(null===(P=this._cd)||void 0===P||null===(P=P.control)||void 0===P||!P.dirty)}get isValid(){var P;return!(null===(P=this._cd)||void 0===P||null===(P=P.control)||void 0===P||!P.valid)}get isInvalid(){var P;return!(null===(P=this._cd)||void 0===P||null===(P=P.control)||void 0===P||!P.invalid)}get isPending(){var P;return!(null===(P=this._cd)||void 0===P||null===(P=P.control)||void 0===P||!P.pending)}get isSubmitted(){var P;return!(null===(P=this._cd)||void 0===P||!P.submitted)}}let gn=(()=>{var L;class P extends Xt{constructor($){super($)}}return(L=P).\u0275fac=function($){return new($||L)(g.rXU(Ot,2))},L.\u0275dir=g.FsC({type:L,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function($,Te){2&$&&g.AVh("ng-untouched",Te.isUntouched)("ng-touched",Te.isTouched)("ng-pristine",Te.isPristine)("ng-dirty",Te.isDirty)("ng-valid",Te.isValid)("ng-invalid",Te.isInvalid)("ng-pending",Te.isPending)},features:[g.Vt3]}),P})();const oe="VALID",He="INVALID",ct="PENDING",Xe="DISABLED";function rt(L){return null!=L&&!Array.isArray(L)&&"object"==typeof L}class Wn{constructor(P,ce){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(P),this._assignAsyncValidators(ce)}get validator(){return this._composedValidatorFn}set validator(P){this._rawValidators=this._composedValidatorFn=P}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(P){this._rawAsyncValidators=this._composedAsyncValidatorFn=P}get parent(){return this._parent}get valid(){return this.status===oe}get invalid(){return this.status===He}get pending(){return this.status==ct}get disabled(){return this.status===Xe}get enabled(){return this.status!==Xe}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(P){this._assignValidators(P)}setAsyncValidators(P){this._assignAsyncValidators(P)}addValidators(P){this.setValidators(ir(P,this._rawValidators))}addAsyncValidators(P){this.setAsyncValidators(ir(P,this._rawAsyncValidators))}removeValidators(P){this.setValidators(Yn(P,this._rawValidators))}removeAsyncValidators(P){this.setAsyncValidators(Yn(P,this._rawAsyncValidators))}hasValidator(P){return yn(this._rawValidators,P)}hasAsyncValidator(P){return yn(this._rawAsyncValidators,P)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(P={}){this.touched=!0,this._parent&&!P.onlySelf&&this._parent.markAsTouched(P)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(P=>P.markAllAsTouched())}markAsUntouched(P={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(ce=>{ce.markAsUntouched({onlySelf:!0})}),this._parent&&!P.onlySelf&&this._parent._updateTouched(P)}markAsDirty(P={}){this.pristine=!1,this._parent&&!P.onlySelf&&this._parent.markAsDirty(P)}markAsPristine(P={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(ce=>{ce.markAsPristine({onlySelf:!0})}),this._parent&&!P.onlySelf&&this._parent._updatePristine(P)}markAsPending(P={}){this.status=ct,!1!==P.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!P.onlySelf&&this._parent.markAsPending(P)}disable(P={}){const ce=this._parentMarkedDirty(P.onlySelf);this.status=Xe,this.errors=null,this._forEachChild($=>{$.disable({...P,onlySelf:!0})}),this._updateValue(),!1!==P.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...P,skipPristineCheck:ce}),this._onDisabledChange.forEach($=>$(!0))}enable(P={}){const ce=this._parentMarkedDirty(P.onlySelf);this.status=oe,this._forEachChild($=>{$.enable({...P,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:P.emitEvent}),this._updateAncestors({...P,skipPristineCheck:ce}),this._onDisabledChange.forEach($=>$(!1))}_updateAncestors(P){this._parent&&!P.onlySelf&&(this._parent.updateValueAndValidity(P),P.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(P){this._parent=P}getRawValue(){return this.value}updateValueAndValidity(P={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===oe||this.status===ct)&&this._runAsyncValidator(P.emitEvent)),!1!==P.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!P.onlySelf&&this._parent.updateValueAndValidity(P)}_updateTreeValidity(P={emitEvent:!0}){this._forEachChild(ce=>ce._updateTreeValidity(P)),this.updateValueAndValidity({onlySelf:!0,emitEvent:P.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Xe:oe}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(P){if(this.asyncValidator){this.status=ct,this._hasOwnPendingAsyncValidator=!0;const ce=te(this.asyncValidator(this));this._asyncValidationSubscription=ce.subscribe($=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors($,{emitEvent:P})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(P,ce={}){this.errors=P,this._updateControlsErrors(!1!==ce.emitEvent)}get(P){let ce=P;return null==ce||(Array.isArray(ce)||(ce=ce.split(".")),0===ce.length)?null:ce.reduce(($,Te)=>$&&$._find(Te),this)}getError(P,ce){const $=ce?this.get(ce):this;return $&&$.errors?$.errors[P]:null}hasError(P,ce){return!!this.getError(P,ce)}get root(){let P=this;for(;P._parent;)P=P._parent;return P}_updateControlsErrors(P){this.status=this._calculateStatus(),P&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(P)}_initObservables(){this.valueChanges=new g.bkB,this.statusChanges=new g.bkB}_calculateStatus(){return this._allControlsDisabled()?Xe:this.errors?He:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(ct)?ct:this._anyControlsHaveStatus(He)?He:oe}_anyControlsHaveStatus(P){return this._anyControls(ce=>ce.status===P)}_anyControlsDirty(){return this._anyControls(P=>P.dirty)}_anyControlsTouched(){return this._anyControls(P=>P.touched)}_updatePristine(P={}){this.pristine=!this._anyControlsDirty(),this._parent&&!P.onlySelf&&this._parent._updatePristine(P)}_updateTouched(P={}){this.touched=this._anyControlsTouched(),this._parent&&!P.onlySelf&&this._parent._updateTouched(P)}_registerOnCollectionChange(P){this._onCollectionChange=P}_setUpdateStrategy(P){rt(P)&&null!=P.updateOn&&(this._updateOn=P.updateOn)}_parentMarkedDirty(P){return!P&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(P){return null}_assignValidators(P){this._rawValidators=Array.isArray(P)?P.slice():P,this._composedValidatorFn=function he(L){return Array.isArray(L)?kt(L):L||null}(this._rawValidators)}_assignAsyncValidators(P){this._rawAsyncValidators=Array.isArray(P)?P.slice():P,this._composedAsyncValidatorFn=function Et(L){return Array.isArray(L)?vn(L):L||null}(this._rawAsyncValidators)}}const Ei=new g.nKC("CallSetDisabledState",{providedIn:"root",factory:()=>ii}),ii="always";function Ui(L,P,ce=ii){var $,Te;(function gi(L,P){const ce=function $n(L){return L._rawValidators}(L);null!==P.validator?L.setValidators(bn(ce,P.validator)):"function"==typeof ce&&L.setValidators([ce]);const $=function qn(L){return L._rawAsyncValidators}(L);null!==P.asyncValidator?L.setAsyncValidators(bn($,P.asyncValidator)):"function"==typeof $&&L.setAsyncValidators([$]);const Te=()=>L.updateValueAndValidity();Hi(P._rawValidators,Te),Hi(P._rawAsyncValidators,Te)})(L,P),P.valueAccessor.writeValue(L.value),(L.disabled||"always"===ce)&&(null===($=(Te=P.valueAccessor).setDisabledState)||void 0===$||$.call(Te,L.disabled)),function lt(L,P){P.valueAccessor.registerOnChange(ce=>{L._pendingValue=ce,L._pendingChange=!0,L._pendingDirty=!0,"change"===L.updateOn&&fn(L,P)})}(L,P),function Kn(L,P){const ce=($,Te)=>{P.valueAccessor.writeValue($),Te&&P.viewToModelUpdate($)};L.registerOnChange(ce),P._registerOnDestroy(()=>{L._unregisterOnChange(ce)})}(L,P),function Ut(L,P){P.valueAccessor.registerOnTouched(()=>{L._pendingTouched=!0,"blur"===L.updateOn&&L._pendingChange&&fn(L,P),"submit"!==L.updateOn&&L.markAsTouched()})}(L,P),function wi(L,P){if(P.valueAccessor.setDisabledState){const ce=$=>{P.valueAccessor.setDisabledState($)};L.registerOnDisabledChange(ce),P._registerOnDestroy(()=>{L._unregisterOnDisabledChange(ce)})}}(L,P)}function Hi(L,P){L.forEach(ce=>{ce.registerOnValidatorChange&&ce.registerOnValidatorChange(P)})}function fn(L,P){L._pendingDirty&&L.markAsDirty(),L.setValue(L._pendingValue,{emitModelToViewChange:!1}),P.viewToModelUpdate(L._pendingValue),L._pendingChange=!1}function xi(L,P){const ce=L.indexOf(P);ce>-1&&L.splice(ce,1)}function mi(L){return"object"==typeof L&&null!==L&&2===Object.keys(L).length&&"value"in L&&"disabled"in L}Promise.resolve();const Si=class extends Wn{constructor(P=null,ce,$){super(function ie(L){return(rt(L)?L.validators:L)||null}(ce),function Pe(L,P){return(rt(P)?P.asyncValidators:L)||null}($,ce)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(P),this._setUpdateStrategy(ce),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),rt(ce)&&(ce.nonNullable||ce.initialValueIsDefault)&&(this.defaultValue=mi(P)?P.value:P)}setValue(P,ce={}){this.value=this._pendingValue=P,this._onChange.length&&!1!==ce.emitModelToViewChange&&this._onChange.forEach($=>$(this.value,!1!==ce.emitViewToModelChange)),this.updateValueAndValidity(ce)}patchValue(P,ce={}){this.setValue(P,ce)}reset(P=this.defaultValue,ce={}){this._applyFormState(P),this.markAsPristine(ce),this.markAsUntouched(ce),this.setValue(this.value,ce),this._pendingChange=!1}_updateValue(){}_anyControls(P){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(P){this._onChange.push(P)}_unregisterOnChange(P){xi(this._onChange,P)}registerOnDisabledChange(P){this._onDisabledChange.push(P)}_unregisterOnDisabledChange(P){xi(this._onDisabledChange,P)}_forEachChild(P){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(P){mi(P)?(this.value=this._pendingValue=P.value,P.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=P}},ps={provide:Ot,useExisting:(0,g.Rfq)(()=>sr)},si=Promise.resolve();let sr=(()=>{var L;class P extends Ot{constructor($,Te,nn,On,rr,Ji){super(),this._changeDetectorRef=rr,this.callSetDisabledState=Ji,this.control=new Si,this._registered=!1,this.name="",this.update=new g.bkB,this._parent=$,this._setValidators(Te),this._setAsyncValidators(nn),this.valueAccessor=function Hn(L,P){if(!P)return null;let ce,$,Te;return Array.isArray(P),P.forEach(nn=>{nn.constructor===vt?ce=nn:function Pn(L){return Object.getPrototypeOf(L.constructor)===Le}(nn)?$=nn:Te=nn}),Te||$||ce||null}(0,On)}ngOnChanges($){if(this._checkForErrors(),!this._registered||"name"in $){if(this._registered&&(this._checkName(),this.formDirective)){const Te=$.name.previousValue;this.formDirective.removeControl({name:Te,path:this._getPath(Te)})}this._setUpControl()}"isDisabled"in $&&this._updateDisabled($),function cn(L,P){if(!L.hasOwnProperty("model"))return!1;const ce=L.model;return!!ce.isFirstChange()||!Object.is(P,ce.currentValue)}($,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate($){this.viewModel=$,this.update.emit($)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){Ui(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue($){si.then(()=>{var Te;this.control.setValue($,{emitViewToModelChange:!1}),null===(Te=this._changeDetectorRef)||void 0===Te||Te.markForCheck()})}_updateDisabled($){const Te=$.isDisabled.currentValue,nn=0!==Te&&(0,g.L39)(Te);si.then(()=>{var On;nn&&!this.control.disabled?this.control.disable():!nn&&this.control.disabled&&this.control.enable(),null===(On=this._changeDetectorRef)||void 0===On||On.markForCheck()})}_getPath($){return this._parent?function pi(L,P){return[...P.path,L]}($,this._parent):[$]}}return(L=P).\u0275fac=function($){return new($||L)(g.rXU(yt,9),g.rXU(Ke,10),g.rXU(Ct,10),g.rXU(Qe,10),g.rXU(g.gRc,8),g.rXU(Ei,8))},L.\u0275dir=g.FsC({type:L,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[g.Mj6.None,"disabled","isDisabled"],model:[g.Mj6.None,"ngModel","model"],options:[g.Mj6.None,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[g.Jv_([ps]),g.Vt3,g.OA$]}),P})();function nr(L){return"number"==typeof L?L:parseFloat(L)}let li=(()=>{var L;class P{constructor(){this._validator=j}ngOnChanges($){if(this.inputName in $){const Te=this.normalizeInput($[this.inputName].currentValue);this._enabled=this.enabled(Te),this._validator=this._enabled?this.createValidator(Te):j,this._onChange&&this._onChange()}}validate($){return this._validator($)}registerOnValidatorChange($){this._onChange=$}enabled($){return null!=$}}return(L=P).\u0275fac=function($){return new($||L)},L.\u0275dir=g.FsC({type:L,features:[g.OA$]}),P})();const vi={provide:Ke,useExisting:(0,g.Rfq)(()=>ci),multi:!0};let ci=(()=>{var L;class P extends li{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=$=>nr($),this.createValidator=$=>function Vt(L){return P=>{if(Me(P.value)||Me(L))return null;const ce=parseFloat(P.value);return!isNaN(ce)&&ce>L?{max:{max:L,actual:P.value}}:null}}($)}}return(L=P).\u0275fac=(()=>{let ce;return function(Te){return(ce||(ce=g.xGo(L)))(Te||L)}})(),L.\u0275dir=g.FsC({type:L,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function($,Te){2&$&&g.BMQ("max",Te._enabled?Te.max:null)},inputs:{max:"max"},features:[g.Jv_([vi]),g.Vt3]}),P})();const no={provide:Ke,useExisting:(0,g.Rfq)(()=>Go),multi:!0};let Go=(()=>{var L;class P extends li{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=$=>nr($),this.createValidator=$=>function Tt(L){return P=>{if(Me(P.value)||Me(L))return null;const ce=parseFloat(P.value);return!isNaN(ce)&&ce{let ce;return function(Te){return(ce||(ce=g.xGo(L)))(Te||L)}})(),L.\u0275dir=g.FsC({type:L,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function($,Te){2&$&&g.BMQ("min",Te._enabled?Te.min:null)},inputs:{min:"min"},features:[g.Jv_([no]),g.Vt3]}),P})(),ms=(()=>{var L;class P{}return(L=P).\u0275fac=function($){return new($||L)},L.\u0275mod=g.$C({type:L}),L.\u0275inj=g.G2t({}),P})(),da=(()=>{var L;class P{static withConfig($){var Te;return{ngModule:P,providers:[{provide:Ei,useValue:null!==(Te=$.callSetDisabledState)&&void 0!==Te?Te:ii}]}}}return(L=P).\u0275fac=function($){return new($||L)},L.\u0275mod=g.$C({type:L}),L.\u0275inj=g.G2t({imports:[ms]}),P})()},345:(En,bt,B)=>{"use strict";B.d(bt,{Bb:()=>er,hE:()=>Yn,sG:()=>vn});var g=B(4438),d=B(177);class ge extends d.VF{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class Oe extends ge{static makeCurrent(){(0,d.ZD)(new Oe)}onAndCancel(He,ct,Xe){return He.addEventListener(ct,Xe),()=>{He.removeEventListener(ct,Xe)}}dispatchEvent(He,ct){He.dispatchEvent(ct)}remove(He){He.parentNode&&He.parentNode.removeChild(He)}createElement(He,ct){return(ct=ct||this.getDefaultDocument()).createElement(He)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(He){return He.nodeType===Node.ELEMENT_NODE}isShadowRoot(He){return He instanceof DocumentFragment}getGlobalEventTarget(He,ct){return"window"===ct?window:"document"===ct?He:"body"===ct?He.body:null}getBaseHref(He){const ct=function Ee(){return X=X||document.querySelector("base"),X?X.getAttribute("href"):null}();return null==ct?null:function re(oe){return new URL(oe,document.baseURI).pathname}(ct)}resetBaseElement(){X=null}getUserAgent(){return window.navigator.userAgent}getCookie(He){return(0,d._b)(document.cookie,He)}}let X=null,Je=(()=>{var oe;class He{build(){return new XMLHttpRequest}}return(oe=He).\u0275fac=function(Xe){return new(Xe||oe)},oe.\u0275prov=g.jDH({token:oe,factory:oe.\u0275fac}),He})();const De=new g.nKC("");let ye=(()=>{var oe;class He{constructor(Xe,ie){this._zone=ie,this._eventNameToPlugin=new Map,Xe.forEach(he=>{he.manager=this}),this._plugins=Xe.slice().reverse()}addEventListener(Xe,ie,he){return this._findPluginFor(ie).addEventListener(Xe,ie,he)}getZone(){return this._zone}_findPluginFor(Xe){let ie=this._eventNameToPlugin.get(Xe);if(ie)return ie;if(ie=this._plugins.find(Pe=>Pe.supports(Xe)),!ie)throw new g.wOt(5101,!1);return this._eventNameToPlugin.set(Xe,ie),ie}}return(oe=He).\u0275fac=function(Xe){return new(Xe||oe)(g.KVO(De),g.KVO(g.SKi))},oe.\u0275prov=g.jDH({token:oe,factory:oe.\u0275fac}),He})();class Fe{constructor(He){this._doc=He}}const $e="ng-app-id";let Le=(()=>{var oe;class He{constructor(Xe,ie,he,Pe={}){this.doc=Xe,this.appId=ie,this.nonce=he,this.platformId=Pe,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=(0,d.Vy)(Pe),this.resetHostNodes()}addStyles(Xe){for(const ie of Xe)1===this.changeUsageCount(ie,1)&&this.onStyleAdded(ie)}removeStyles(Xe){for(const ie of Xe)this.changeUsageCount(ie,-1)<=0&&this.onStyleRemoved(ie)}ngOnDestroy(){const Xe=this.styleNodesInDOM;Xe&&(Xe.forEach(ie=>ie.remove()),Xe.clear());for(const ie of this.getAllStyles())this.onStyleRemoved(ie);this.resetHostNodes()}addHost(Xe){this.hostNodes.add(Xe);for(const ie of this.getAllStyles())this.addStyleToHost(Xe,ie)}removeHost(Xe){this.hostNodes.delete(Xe)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(Xe){for(const ie of this.hostNodes)this.addStyleToHost(ie,Xe)}onStyleRemoved(Xe){var ie;const he=this.styleRef;null===(ie=he.get(Xe))||void 0===ie||null===(ie=ie.elements)||void 0===ie||ie.forEach(Pe=>Pe.remove()),he.delete(Xe)}collectServerRenderedStyles(){var Xe;const ie=null===(Xe=this.doc.head)||void 0===Xe?void 0:Xe.querySelectorAll(`style[${$e}="${this.appId}"]`);if(null!=ie&&ie.length){const he=new Map;return ie.forEach(Pe=>{null!=Pe.textContent&&he.set(Pe.textContent,Pe)}),he}return null}changeUsageCount(Xe,ie){const he=this.styleRef;if(he.has(Xe)){const Pe=he.get(Xe);return Pe.usage+=ie,Pe.usage}return he.set(Xe,{usage:ie,elements:[]}),ie}getStyleElement(Xe,ie){const he=this.styleNodesInDOM,Pe=null==he?void 0:he.get(ie);if((null==Pe?void 0:Pe.parentNode)===Xe)return he.delete(ie),Pe.removeAttribute($e),Pe;{const Et=this.doc.createElement("style");return this.nonce&&Et.setAttribute("nonce",this.nonce),Et.textContent=ie,this.platformIsServer&&Et.setAttribute($e,this.appId),Xe.appendChild(Et),Et}}addStyleToHost(Xe,ie){var he;const Pe=this.getStyleElement(Xe,ie),Et=this.styleRef,rt=null===(he=Et.get(ie))||void 0===he?void 0:he.elements;rt?rt.push(Pe):Et.set(ie,{elements:[Pe],usage:1})}resetHostNodes(){const Xe=this.hostNodes;Xe.clear(),Xe.add(this.doc.head)}}return(oe=He).\u0275fac=function(Xe){return new(Xe||oe)(g.KVO(d.qQ),g.KVO(g.sZ2),g.KVO(g.BIS,8),g.KVO(g.Agw))},oe.\u0275prov=g.jDH({token:oe,factory:oe.\u0275fac}),He})();const Qe={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},ft=/%COMP%/g,vt=new g.nKC("",{providedIn:"root",factory:()=>!0});function Ke(oe,He){return He.map(ct=>ct.replace(ft,oe))}let Ct=(()=>{var oe;class He{constructor(Xe,ie,he,Pe,Et,rt,dn,Sn=null){this.eventManager=Xe,this.sharedStylesHost=ie,this.appId=he,this.removeStylesOnCompDestroy=Pe,this.doc=Et,this.platformId=rt,this.ngZone=dn,this.nonce=Sn,this.rendererByCompId=new Map,this.platformIsServer=(0,d.Vy)(rt),this.defaultRenderer=new xt(Xe,Et,dn,this.platformIsServer)}createRenderer(Xe,ie){if(!Xe||!ie)return this.defaultRenderer;this.platformIsServer&&ie.encapsulation===g.gXe.ShadowDom&&(ie={...ie,encapsulation:g.gXe.Emulated});const he=this.getOrCreateRenderer(Xe,ie);return he instanceof Be?he.applyToHost(Xe):he instanceof Dt&&he.applyStyles(),he}getOrCreateRenderer(Xe,ie){const he=this.rendererByCompId;let Pe=he.get(ie.id);if(!Pe){const Et=this.doc,rt=this.ngZone,dn=this.eventManager,Sn=this.sharedStylesHost,Wn=this.removeStylesOnCompDestroy,gr=this.platformIsServer;switch(ie.encapsulation){case g.gXe.Emulated:Pe=new Be(dn,Sn,ie,this.appId,Wn,Et,rt,gr);break;case g.gXe.ShadowDom:return new Zt(dn,Sn,Xe,ie,Et,rt,this.nonce,gr);default:Pe=new Dt(dn,Sn,ie,Wn,Et,rt,gr)}he.set(ie.id,Pe)}return Pe}ngOnDestroy(){this.rendererByCompId.clear()}}return(oe=He).\u0275fac=function(Xe){return new(Xe||oe)(g.KVO(ye),g.KVO(Le),g.KVO(g.sZ2),g.KVO(vt),g.KVO(d.qQ),g.KVO(g.Agw),g.KVO(g.SKi),g.KVO(g.BIS))},oe.\u0275prov=g.jDH({token:oe,factory:oe.\u0275fac}),He})();class xt{constructor(He,ct,Xe,ie){this.eventManager=He,this.doc=ct,this.ngZone=Xe,this.platformIsServer=ie,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(He,ct){return ct?this.doc.createElementNS(Qe[ct]||ct,He):this.doc.createElement(He)}createComment(He){return this.doc.createComment(He)}createText(He){return this.doc.createTextNode(He)}appendChild(He,ct){(Vt(He)?He.content:He).appendChild(ct)}insertBefore(He,ct,Xe){He&&(Vt(He)?He.content:He).insertBefore(ct,Xe)}removeChild(He,ct){He&&He.removeChild(ct)}selectRootElement(He,ct){let Xe="string"==typeof He?this.doc.querySelector(He):He;if(!Xe)throw new g.wOt(-5104,!1);return ct||(Xe.textContent=""),Xe}parentNode(He){return He.parentNode}nextSibling(He){return He.nextSibling}setAttribute(He,ct,Xe,ie){if(ie){ct=ie+":"+ct;const he=Qe[ie];he?He.setAttributeNS(he,ct,Xe):He.setAttribute(ct,Xe)}else He.setAttribute(ct,Xe)}removeAttribute(He,ct,Xe){if(Xe){const ie=Qe[Xe];ie?He.removeAttributeNS(ie,ct):He.removeAttribute(`${Xe}:${ct}`)}else He.removeAttribute(ct)}addClass(He,ct){He.classList.add(ct)}removeClass(He,ct){He.classList.remove(ct)}setStyle(He,ct,Xe,ie){ie&(g.czy.DashCase|g.czy.Important)?He.style.setProperty(ct,Xe,ie&g.czy.Important?"important":""):He.style[ct]=Xe}removeStyle(He,ct,Xe){Xe&g.czy.DashCase?He.style.removeProperty(ct):He.style[ct]=""}setProperty(He,ct,Xe){null!=He&&(He[ct]=Xe)}setValue(He,ct){He.nodeValue=ct}listen(He,ct,Xe){if("string"==typeof He&&!(He=(0,d.QT)().getGlobalEventTarget(this.doc,He)))throw new Error(`Unsupported event target ${He} for event ${ct}`);return this.eventManager.addEventListener(He,ct,this.decoratePreventDefault(Xe))}decoratePreventDefault(He){return ct=>{if("__ngUnwrap__"===ct)return He;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>He(ct)):He(ct))&&ct.preventDefault()}}}function Vt(oe){return"TEMPLATE"===oe.tagName&&void 0!==oe.content}class Zt extends xt{constructor(He,ct,Xe,ie,he,Pe,Et,rt){super(He,he,Pe,rt),this.sharedStylesHost=ct,this.hostEl=Xe,this.shadowRoot=Xe.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const dn=Ke(ie.id,ie.styles);for(const Sn of dn){const Wn=document.createElement("style");Et&&Wn.setAttribute("nonce",Et),Wn.textContent=Sn,this.shadowRoot.appendChild(Wn)}}nodeOrShadowRoot(He){return He===this.hostEl?this.shadowRoot:He}appendChild(He,ct){return super.appendChild(this.nodeOrShadowRoot(He),ct)}insertBefore(He,ct,Xe){return super.insertBefore(this.nodeOrShadowRoot(He),ct,Xe)}removeChild(He,ct){return super.removeChild(this.nodeOrShadowRoot(He),ct)}parentNode(He){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(He)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class Dt extends xt{constructor(He,ct,Xe,ie,he,Pe,Et,rt){super(He,he,Pe,Et),this.sharedStylesHost=ct,this.removeStylesOnCompDestroy=ie,this.styles=rt?Ke(rt,Xe.styles):Xe.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class Be extends Dt{constructor(He,ct,Xe,ie,he,Pe,Et,rt){const dn=ie+"-"+Xe.id;super(He,ct,Xe,he,Pe,Et,rt,dn),this.contentAttr=function Me(oe){return"_ngcontent-%COMP%".replace(ft,oe)}(dn),this.hostAttr=function je(oe){return"_nghost-%COMP%".replace(ft,oe)}(dn)}applyToHost(He){this.applyStyles(),this.setAttribute(He,this.hostAttr,"")}createElement(He,ct){const Xe=super.createElement(He,ct);return super.setAttribute(Xe,this.contentAttr,""),Xe}}let rn=(()=>{var oe;class He extends Fe{constructor(Xe){super(Xe)}supports(Xe){return!0}addEventListener(Xe,ie,he){return Xe.addEventListener(ie,he,!1),()=>this.removeEventListener(Xe,ie,he)}removeEventListener(Xe,ie,he){return Xe.removeEventListener(ie,he)}}return(oe=He).\u0275fac=function(Xe){return new(Xe||oe)(g.KVO(d.qQ))},oe.\u0275prov=g.jDH({token:oe,factory:oe.\u0275fac}),He})();const pt=["alt","control","meta","shift"],_e={"\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"},j={alt:oe=>oe.altKey,control:oe=>oe.ctrlKey,meta:oe=>oe.metaKey,shift:oe=>oe.shiftKey};let W=(()=>{var oe;class He extends Fe{constructor(Xe){super(Xe)}supports(Xe){return null!=He.parseEventName(Xe)}addEventListener(Xe,ie,he){const Pe=He.parseEventName(ie),Et=He.eventCallback(Pe.fullKey,he,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,d.QT)().onAndCancel(Xe,Pe.domEventName,Et))}static parseEventName(Xe){const ie=Xe.toLowerCase().split("."),he=ie.shift();if(0===ie.length||"keydown"!==he&&"keyup"!==he)return null;const Pe=He._normalizeKey(ie.pop());let Et="",rt=ie.indexOf("code");if(rt>-1&&(ie.splice(rt,1),Et="code."),pt.forEach(Sn=>{const Wn=ie.indexOf(Sn);Wn>-1&&(ie.splice(Wn,1),Et+=Sn+".")}),Et+=Pe,0!=ie.length||0===Pe.length)return null;const dn={};return dn.domEventName=he,dn.fullKey=Et,dn}static matchEventFullKeyCode(Xe,ie){let he=_e[Xe.key]||Xe.key,Pe="";return ie.indexOf("code.")>-1&&(he=Xe.code,Pe="code."),!(null==he||!he)&&(he=he.toLowerCase()," "===he?he="space":"."===he&&(he="dot"),pt.forEach(Et=>{Et!==he&&(0,j[Et])(Xe)&&(Pe+=Et+".")}),Pe+=he,Pe===ie)}static eventCallback(Xe,ie,he){return Pe=>{He.matchEventFullKeyCode(Pe,Xe)&&he.runGuarded(()=>ie(Pe))}}static _normalizeKey(Xe){return"esc"===Xe?"escape":Xe}}return(oe=He).\u0275fac=function(Xe){return new(Xe||oe)(g.KVO(d.qQ))},oe.\u0275prov=g.jDH({token:oe,factory:oe.\u0275fac}),He})();const vn=(0,g.oH4)(g.fpN,"browser",[{provide:g.Agw,useValue:d.AJ},{provide:g.PLl,useValue:function Ce(){Oe.makeCurrent()},multi:!0},{provide:d.qQ,useFactory:function kt(){return(0,g.TL$)(document),document},deps:[]}]),bn=new g.nKC(""),$n=[{provide:g.e01,useClass:class Ze{addToWindow(He){g.JZv.getAngularTestability=(Xe,ie=!0)=>{const he=He.findTestabilityInTree(Xe,ie);if(null==he)throw new g.wOt(5103,!1);return he},g.JZv.getAllAngularTestabilities=()=>He.getAllTestabilities(),g.JZv.getAllAngularRootElements=()=>He.getAllRootElements(),g.JZv.frameworkStabilizers||(g.JZv.frameworkStabilizers=[]),g.JZv.frameworkStabilizers.push(Xe=>{const ie=g.JZv.getAllAngularTestabilities();let he=ie.length;const Pe=function(){he--,0==he&&Xe()};ie.forEach(Et=>{Et.whenStable(Pe)})})}findTestabilityInTree(He,ct,Xe){if(null==ct)return null;const ie=He.getTestability(ct);return null!=ie?ie:Xe?(0,d.QT)().isShadowRoot(ct)?this.findTestabilityInTree(He,ct.host,!0):this.findTestabilityInTree(He,ct.parentElement,!0):null}},deps:[]},{provide:g.WHO,useClass:g.NYb,deps:[g.SKi,g.giA,g.e01]},{provide:g.NYb,useClass:g.NYb,deps:[g.SKi,g.giA,g.e01]}],qn=[{provide:g.H8p,useValue:"root"},{provide:g.zcH,useFactory:function at(){return new g.zcH},deps:[]},{provide:De,useClass:rn,multi:!0,deps:[d.qQ,g.SKi,g.Agw]},{provide:De,useClass:W,multi:!0,deps:[d.qQ]},Ct,Le,ye,{provide:g._9s,useExisting:Ct},{provide:d.N0,useClass:Je,deps:[]},[]];let er=(()=>{var oe;class He{constructor(Xe){}static withServerTransition(Xe){return{ngModule:He,providers:[{provide:g.sZ2,useValue:Xe.appId}]}}}return(oe=He).\u0275fac=function(Xe){return new(Xe||oe)(g.KVO(bn,12))},oe.\u0275mod=g.$C({type:oe}),oe.\u0275inj=g.G2t({providers:[...qn,...$n],imports:[d.MD,g.Hbi]}),He})(),Yn=(()=>{var oe;class He{constructor(Xe){this._doc=Xe}getTitle(){return this._doc.title}setTitle(Xe){this._doc.title=Xe||""}}return(oe=He).\u0275fac=function(Xe){return new(Xe||oe)(g.KVO(d.qQ))},oe.\u0275prov=g.jDH({token:oe,factory:oe.\u0275fac,providedIn:"root"}),He})()},845:(En,bt,B)=>{"use strict";B.d(bt,{nX:()=>ne,Zp:()=>S,wF:()=>Si,Z:()=>mi,Xk:()=>yn,Kp:()=>Ua,b:()=>Zr,Ix:()=>Fi,Wk:()=>Uo,iI:()=>Mu,Sd:()=>Qr});var g=B(467),d=B(4438),ge=B(1985),Oe=B(8071),Ee=B(8455),re=B(7673),Ze=B(4412),Je=B(4572);const ye=(0,B(1853).L)(I=>function(){I(this),this.name="EmptyError",this.message="no elements in sequence"});var Fe=B(1397),$e=B(3669);function Le(I=1/0){return(0,Fe.Z)($e.D,I)}var ft=B(3794);function ut(...I){return function Qe(){return Le(1)}()((0,Ee.H)(I,(0,ft.lI)(I)))}var st=B(8750);function Mt(I){return new ge.c(T=>{(0,st.Tg)(I()).subscribe(T)})}var mt=B(1203);function vt(I,T){const R=(0,Oe.T)(I)?I:()=>I,C=x=>x.error(R());return new ge.c(T?x=>T.schedule(C,0,x):C)}var Me=B(983),je=B(8359),Ke=B(9974),Ct=B(4360);function xt(){return(0,Ke.N)((I,T)=>{let R=null;I._refCount++;const C=(0,Ct._)(T,void 0,void 0,void 0,()=>{if(!I||I._refCount<=0||0<--I._refCount)return void(R=null);const x=I._connection,J=R;R=null,x&&(!J||x===J)&&x.unsubscribe(),T.unsubscribe()});I.subscribe(C),C.closed||(R=I.connect())})}class ze extends ge.c{constructor(T,R){super(),this.source=T,this.subjectFactory=R,this._subject=null,this._refCount=0,this._connection=null,(0,Ke.S)(T)&&(this.lift=T.lift)}_subscribe(T){return this.getSubject().subscribe(T)}getSubject(){const T=this._subject;return(!T||T.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:T}=this;this._subject=this._connection=null,null==T||T.unsubscribe()}connect(){let T=this._connection;if(!T){T=this._connection=new je.yU;const R=this.getSubject();T.add(this.source.subscribe((0,Ct._)(R,void 0,()=>{this._teardown(),R.complete()},C=>{this._teardown(),R.error(C)},()=>this._teardown()))),T.closed&&(this._connection=null,T=je.yU.EMPTY)}return T}refCount(){return xt()(this)}}var Tt=B(1413),Vt=B(177),Zt=B(6354),Dt=B(5558),Be=B(6697),pt=B(5964);function _e(I){return(0,Ke.N)((T,R)=>{let C=!1;T.subscribe((0,Ct._)(R,x=>{C=!0,R.next(x)},()=>{C||R.next(I),R.complete()}))})}function j(I=W){return(0,Ke.N)((T,R)=>{let C=!1;T.subscribe((0,Ct._)(R,x=>{C=!0,R.next(x)},()=>C?R.complete():R.error(I())))})}function W(){return new ye}function te(I,T){const R=arguments.length>=2;return C=>C.pipe(I?(0,pt.p)((x,J)=>I(x,J,C)):$e.D,(0,Be.s)(1),R?_e(T):j(()=>new ye))}function de(I,T){return(0,Oe.T)(T)?(0,Fe.Z)(I,T,1):(0,Fe.Z)(I,1)}var ae=B(8141);function me(I){return(0,Ke.N)((T,R)=>{let J,C=null,x=!1;C=T.subscribe((0,Ct._)(R,void 0,void 0,ve=>{J=(0,st.Tg)(I(ve,me(I)(T))),C?(C.unsubscribe(),C=null,J.subscribe(R)):x=!0})),x&&(C.unsubscribe(),C=null,J.subscribe(R))})}function kt(I){return I<=0?()=>Me.w:(0,Ke.N)((T,R)=>{let C=[];T.subscribe((0,Ct._)(R,x=>{C.push(x),I{for(const x of C)R.next(x);R.complete()},void 0,()=>{C=null}))})}function bn(I){return(0,Ke.N)((T,R)=>{try{T.subscribe(R)}finally{R.add(I)}})}var $n=B(5343),er=B(345);const yn="primary",ir=Symbol("RouteTitle");class Yn{constructor(T){this.params=T||{}}has(T){return Object.prototype.hasOwnProperty.call(this.params,T)}get(T){if(this.has(T)){const R=this.params[T];return Array.isArray(R)?R[0]:R}return null}getAll(T){if(this.has(T)){const R=this.params[T];return Array.isArray(R)?R:[R]}return[]}get keys(){return Object.keys(this.params)}}function Ve(I){return new Yn(I)}function yt(I,T,R){const C=R.path.split("/");if(C.length>I.length||"full"===R.pathMatch&&(T.hasChildren()||C.lengthC[J]===x)}return I===T}function gn(I){return I.length>0?I[I.length-1]:null}function mn(I){return function X(I){return!!I&&(I instanceof ge.c||(0,Oe.T)(I.lift)&&(0,Oe.T)(I.subscribe))}(I)?I:(0,d.jNT)(I)?(0,Ee.H)(Promise.resolve(I)):(0,re.of)(I)}const Jt={exact:function kr(I,T,R){if(!Er(I.segments,T.segments)||!ni(I.segments,T.segments,R)||I.numberOfChildren!==T.numberOfChildren)return!1;for(const C in T.children)if(!I.children[C]||!kr(I.children[C],T.children[C],R))return!1;return!0},subset:_r},Gt={exact:function wr(I,T){return Xt(I,T)},subset:function Mr(I,T){return Object.keys(T).length<=Object.keys(I).length&&Object.keys(T).every(R=>Ir(I[R],T[R]))},ignored:()=>!0};function pr(I,T,R){return Jt[R.paths](I.root,T.root,R.matrixParams)&&Gt[R.queryParams](I.queryParams,T.queryParams)&&!("exact"===R.fragment&&I.fragment!==T.fragment)}function _r(I,T,R){return Bn(I,T,T.segments,R)}function Bn(I,T,R,C){if(I.segments.length>R.length){const x=I.segments.slice(0,R.length);return!(!Er(x,R)||T.hasChildren()||!ni(x,R,C))}if(I.segments.length===R.length){if(!Er(I.segments,R)||!ni(I.segments,R,C))return!1;for(const x in T.children)if(!I.children[x]||!_r(I.children[x],T.children[x],C))return!1;return!0}{const x=R.slice(0,I.segments.length),J=R.slice(I.segments.length);return!!(Er(I.segments,x)&&ni(I.segments,x,C)&&I.children[yn])&&Bn(I.children[yn],T,J,C)}}function ni(I,T,R){return T.every((C,x)=>Gt[R](I[x].parameters,C.parameters))}class Zn{constructor(T=new wn([],{}),R={},C=null){this.root=T,this.queryParams=R,this.fragment=C}get queryParamMap(){var T;return null!==(T=this._queryParamMap)&&void 0!==T||(this._queryParamMap=Ve(this.queryParams)),this._queryParamMap}toString(){return oe.serialize(this)}}class wn{constructor(T,R){this.segments=T,this.children=R,this.parent=null,Object.values(R).forEach(C=>C.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return He(this)}}class Sr{constructor(T,R){this.path=T,this.parameters=R}get parameterMap(){var T;return null!==(T=this._parameterMap)&&void 0!==T||(this._parameterMap=Ve(this.parameters)),this._parameterMap}toString(){return dn(this)}}function Er(I,T){return I.length===T.length&&I.every((R,C)=>R.path===T[C].path)}let Qr=(()=>{var I;class T{}return(I=T).\u0275fac=function(C){return new(C||I)},I.\u0275prov=d.jDH({token:I,factory:()=>new Yr,providedIn:"root"}),T})();class Yr{parse(T){const R=new pi(T);return new Zn(R.parseRootSegment(),R.parseQueryParams(),R.parseFragment())}serialize(T){const R=`/${ct(T.root,!0)}`,C=function Wn(I){const T=Object.entries(I).map(([R,C])=>Array.isArray(C)?C.map(x=>`${ie(R)}=${ie(x)}`).join("&"):`${ie(R)}=${ie(C)}`).filter(R=>R);return T.length?`?${T.join("&")}`:""}(T.queryParams);return`${R}${C}${"string"==typeof T.fragment?`#${function he(I){return encodeURI(I)}(T.fragment)}`:""}`}}const oe=new Yr;function He(I){return I.segments.map(T=>dn(T)).join("/")}function ct(I,T){if(!I.hasChildren())return He(I);if(T){const R=I.children[yn]?ct(I.children[yn],!1):"",C=[];return Object.entries(I.children).forEach(([x,J])=>{x!==yn&&C.push(`${x}:${ct(J,!1)}`)}),C.length>0?`${R}(${C.join("//")})`:R}{const R=function Mi(I,T){let R=[];return Object.entries(I.children).forEach(([C,x])=>{C===yn&&(R=R.concat(T(x,C)))}),Object.entries(I.children).forEach(([C,x])=>{C!==yn&&(R=R.concat(T(x,C)))}),R}(I,(C,x)=>x===yn?[ct(I.children[yn],!1)]:[`${x}:${ct(C,!1)}`]);return 1===Object.keys(I.children).length&&null!=I.children[yn]?`${He(I)}/${R[0]}`:`${He(I)}/(${R.join("//")})`}}function Xe(I){return encodeURIComponent(I).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function ie(I){return Xe(I).replace(/%3B/gi,";")}function Pe(I){return Xe(I).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Et(I){return decodeURIComponent(I)}function rt(I){return Et(I.replace(/\+/g,"%20"))}function dn(I){return`${Pe(I.path)}${function Sn(I){return Object.entries(I).map(([T,R])=>`;${Pe(T)}=${Pe(R)}`).join("")}(I.parameters)}`}const gr=/^[^\/()?;#]+/;function ur(I){const T=I.match(gr);return T?T[0]:""}const ri=/^[^\/()?;=#]+/,Rn=/^[^=?&#]+/,Ei=/^[^&#]+/;class pi{constructor(T){this.url=T,this.remaining=T}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new wn([],{}):new wn([],this.parseChildren())}parseQueryParams(){const T={};if(this.consumeOptional("?"))do{this.parseQueryParam(T)}while(this.consumeOptional("&"));return T}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const T=[];for(this.peekStartsWith("(")||T.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),T.push(this.parseSegment());let R={};this.peekStartsWith("/(")&&(this.capture("/"),R=this.parseParens(!0));let C={};return this.peekStartsWith("(")&&(C=this.parseParens(!1)),(T.length>0||Object.keys(R).length>0)&&(C[yn]=new wn(T,R)),C}parseSegment(){const T=ur(this.remaining);if(""===T&&this.peekStartsWith(";"))throw new d.wOt(4009,!1);return this.capture(T),new Sr(Et(T),this.parseMatrixParams())}parseMatrixParams(){const T={};for(;this.consumeOptional(";");)this.parseParam(T);return T}parseParam(T){const R=function xn(I){const T=I.match(ri);return T?T[0]:""}(this.remaining);if(!R)return;this.capture(R);let C="";if(this.consumeOptional("=")){const x=ur(this.remaining);x&&(C=x,this.capture(C))}T[Et(R)]=Et(C)}parseQueryParam(T){const R=function yr(I){const T=I.match(Rn);return T?T[0]:""}(this.remaining);if(!R)return;this.capture(R);let C="";if(this.consumeOptional("=")){const ve=function ii(I){const T=I.match(Ei);return T?T[0]:""}(this.remaining);ve&&(C=ve,this.capture(C))}const x=rt(R),J=rt(C);if(T.hasOwnProperty(x)){let ve=T[x];Array.isArray(ve)||(ve=[ve],T[x]=ve),ve.push(J)}else T[x]=J}parseParens(T){const R={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const C=ur(this.remaining),x=this.remaining[C.length];if("/"!==x&&")"!==x&&";"!==x)throw new d.wOt(4010,!1);let J;C.indexOf(":")>-1?(J=C.slice(0,C.indexOf(":")),this.capture(J),this.capture(":")):T&&(J=yn);const ve=this.parseChildren();R[J]=1===Object.keys(ve).length?ve[yn]:new wn([],ve),this.consumeOptional("//")}return R}peekStartsWith(T){return this.remaining.startsWith(T)}consumeOptional(T){return!!this.peekStartsWith(T)&&(this.remaining=this.remaining.substring(T.length),!0)}capture(T){if(!this.consumeOptional(T))throw new d.wOt(4011,!1)}}function Ui(I){return I.segments.length>0?new wn([],{[yn]:I}):I}function or(I){const T={};for(const[C,x]of Object.entries(I.children)){const J=or(x);if(C===yn&&0===J.segments.length&&J.hasChildren())for(const[ve,dt]of Object.entries(J.children))T[ve]=dt;else(J.segments.length>0||J.hasChildren())&&(T[C]=J)}return function Hi(I){if(1===I.numberOfChildren&&I.children[yn]){const T=I.children[yn];return new wn(I.segments.concat(T.segments),T.children)}return I}(new wn(I.segments,T))}function wi(I){return I instanceof Zn}function St(I){var T;let R;const J=Ui(function C(ve){const dt={};for(const At of ve.children){const Tn=C(At);dt[At.outlet]=Tn}const Qt=new wn(ve.url,dt);return ve===I&&(R=Qt),Qt}(I.root));return null!==(T=R)&&void 0!==T?T:J}function lt(I,T,R,C){let x=I;for(;x.parent;)x=x.parent;if(0===T.length)return Kn(x,x,x,R,C);const J=function Ne(I){if("string"==typeof I[0]&&1===I.length&&"/"===I[0])return new Z(!0,0,I);let T=0,R=!1;const C=I.reduce((x,J,ve)=>{if("object"==typeof J&&null!=J){if(J.outlets){const dt={};return Object.entries(J.outlets).forEach(([Qt,At])=>{dt[Qt]="string"==typeof At?At.split("/"):At}),[...x,{outlets:dt}]}if(J.segmentPath)return[...x,J.segmentPath]}return"string"!=typeof J?[...x,J]:0===ve?(J.split("/").forEach((dt,Qt)=>{0==Qt&&"."===dt||(0==Qt&&""===dt?R=!0:".."===dt?T++:""!=dt&&x.push(dt))}),x):[...x,J]},[]);return new Z(R,T,C)}(T);if(J.toRoot())return Kn(x,x,new wn([],{}),R,C);const ve=function Se(I,T,R){if(I.isAbsolute)return new Q(T,!0,0);if(!R)return new Q(T,!1,NaN);if(null===R.parent)return new Q(R,!0,0);const C=Ut(I.commands[0])?0:1;return function it(I,T,R){let C=I,x=T,J=R;for(;J>x;){if(J-=x,C=C.parent,!C)throw new d.wOt(4005,!1);x=C.segments.length}return new Q(C,!1,x-J)}(R,R.segments.length-1+C,I.numberOfDoubleDots)}(J,x,I),dt=ve.processChildren?Pn(ve.segmentGroup,ve.index,J.commands):cn(ve.segmentGroup,ve.index,J.commands);return Kn(x,ve.segmentGroup,dt,R,C)}function Ut(I){return"object"==typeof I&&null!=I&&!I.outlets&&!I.segmentPath}function fn(I){return"object"==typeof I&&null!=I&&I.outlets}function Kn(I,T,R,C,x){let ve,J={};C&&Object.entries(C).forEach(([Qt,At])=>{J[Qt]=Array.isArray(At)?At.map(Tn=>`${Tn}`):`${At}`}),ve=I===T?R:Y(I,T,R);const dt=Ui(or(ve));return new Zn(dt,J,x)}function Y(I,T,R){const C={};return Object.entries(I.children).forEach(([x,J])=>{C[x]=J===T?R:Y(J,T,R)}),new wn(I.segments,C)}class Z{constructor(T,R,C){if(this.isAbsolute=T,this.numberOfDoubleDots=R,this.commands=C,T&&C.length>0&&Ut(C[0]))throw new d.wOt(4003,!1);const x=C.find(fn);if(x&&x!==gn(C))throw new d.wOt(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Q{constructor(T,R,C){this.segmentGroup=T,this.processChildren=R,this.index=C}}function cn(I,T,R){var C;if(null!==(C=I)&&void 0!==C||(I=new wn([],{})),0===I.segments.length&&I.hasChildren())return Pn(I,T,R);const x=function Cr(I,T,R){let C=0,x=T;const J={match:!1,pathIndex:0,commandIndex:0};for(;x=R.length)return J;const ve=I.segments[x],dt=R[C];if(fn(dt))break;const Qt=`${dt}`,At=C0&&void 0===Qt)break;if(Qt&&At&&"object"==typeof At&&void 0===At.outlets){if(!Pi(Qt,At,ve))return J;C+=2}else{if(!Pi(Qt,{},ve))return J;C++}x++}return{match:!0,pathIndex:x,commandIndex:C}}(I,T,R),J=R.slice(x.commandIndex);if(x.match&&x.pathIndexJ!==yn)&&I.children[yn]&&1===I.numberOfChildren&&0===I.children[yn].segments.length){const J=Pn(I.children[yn],T,R);return new wn(I.segments,J.children)}return Object.entries(C).forEach(([J,ve])=>{"string"==typeof ve&&(ve=[ve]),null!==ve&&(x[J]=cn(I.children[J],T,ve))}),Object.entries(I.children).forEach(([J,ve])=>{void 0===C[J]&&(x[J]=ve)}),new wn(I.segments,x)}}function Hn(I,T,R){const C=I.segments.slice(0,T);let x=0;for(;x{"string"==typeof C&&(C=[C]),null!==C&&(T[R]=Hn(new wn([],{}),0,C))}),T}function Ai(I){const T={};return Object.entries(I).forEach(([R,C])=>T[R]=`${C}`),T}function Pi(I,T,R){return I==R.path&&Xt(T,R.parameters)}const xr="imperative";var An=function(I){return I[I.NavigationStart=0]="NavigationStart",I[I.NavigationEnd=1]="NavigationEnd",I[I.NavigationCancel=2]="NavigationCancel",I[I.NavigationError=3]="NavigationError",I[I.RoutesRecognized=4]="RoutesRecognized",I[I.ResolveStart=5]="ResolveStart",I[I.ResolveEnd=6]="ResolveEnd",I[I.GuardsCheckStart=7]="GuardsCheckStart",I[I.GuardsCheckEnd=8]="GuardsCheckEnd",I[I.RouteConfigLoadStart=9]="RouteConfigLoadStart",I[I.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",I[I.ChildActivationStart=11]="ChildActivationStart",I[I.ChildActivationEnd=12]="ChildActivationEnd",I[I.ActivationStart=13]="ActivationStart",I[I.ActivationEnd=14]="ActivationEnd",I[I.Scroll=15]="Scroll",I[I.NavigationSkipped=16]="NavigationSkipped",I}(An||{});class xi{constructor(T,R){this.id=T,this.url=R}}class mi extends xi{constructor(T,R,C="imperative",x=null){super(T,R),this.type=An.NavigationStart,this.navigationTrigger=C,this.restoredState=x}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Si extends xi{constructor(T,R,C){super(T,R),this.urlAfterRedirects=C,this.type=An.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}var ti=function(I){return I[I.Redirect=0]="Redirect",I[I.SupersededByNewNavigation=1]="SupersededByNewNavigation",I[I.NoDataFromResolver=2]="NoDataFromResolver",I[I.GuardRejected=3]="GuardRejected",I}(ti||{}),mr=function(I){return I[I.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",I[I.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",I}(mr||{});class oi extends xi{constructor(T,R,C,x){super(T,R),this.reason=C,this.code=x,this.type=An.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Nn extends xi{constructor(T,R,C,x){super(T,R),this.reason=C,this.code=x,this.type=An.NavigationSkipped}}class kn extends xi{constructor(T,R,C,x){super(T,R),this.error=C,this.target=x,this.type=An.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class ko extends xi{constructor(T,R,C,x){super(T,R),this.urlAfterRedirects=C,this.state=x,this.type=An.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ei extends xi{constructor(T,R,C,x){super(T,R),this.urlAfterRedirects=C,this.state=x,this.type=An.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Bi extends xi{constructor(T,R,C,x,J){super(T,R),this.urlAfterRedirects=C,this.state=x,this.shouldActivate=J,this.type=An.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class is extends xi{constructor(T,R,C,x){super(T,R),this.urlAfterRedirects=C,this.state=x,this.type=An.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ps extends xi{constructor(T,R,C,x){super(T,R),this.urlAfterRedirects=C,this.state=x,this.type=An.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class si{constructor(T){this.route=T,this.type=An.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class sr{constructor(T){this.route=T,this.type=An.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Or{constructor(T){this.snapshot=T,this.type=An.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ai{constructor(T){this.snapshot=T,this.type=An.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class jn{constructor(T){this.snapshot=T,this.type=An.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Fo{constructor(T){this.snapshot=T,this.type=An.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Ao{constructor(T,R,C){this.routerEvent=T,this.position=R,this.anchor=C,this.type=An.Scroll}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class Co{}class co{constructor(T){this.url=T}}class Ni{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new S,this.attachRef=null}}let S=(()=>{var I;class T{constructor(){this.contexts=new Map}onChildOutletCreated(C,x){const J=this.getOrCreateContext(C);J.outlet=x,this.contexts.set(C,J)}onChildOutletDestroyed(C){const x=this.getContext(C);x&&(x.outlet=null,x.attachRef=null)}onOutletDeactivated(){const C=this.contexts;return this.contexts=new Map,C}onOutletReAttached(C){this.contexts=C}getOrCreateContext(C){let x=this.getContext(C);return x||(x=new Ni,this.contexts.set(C,x)),x}getContext(C){return this.contexts.get(C)||null}}return(I=T).\u0275fac=function(C){return new(C||I)},I.\u0275prov=d.jDH({token:I,factory:I.\u0275fac,providedIn:"root"}),T})();class H{constructor(T){this._root=T}get root(){return this._root.value}parent(T){const R=this.pathFromRoot(T);return R.length>1?R[R.length-2]:null}children(T){const R=ue(T,this._root);return R?R.children.map(C=>C.value):[]}firstChild(T){const R=ue(T,this._root);return R&&R.children.length>0?R.children[0].value:null}siblings(T){const R=M(T,this._root);return R.length<2?[]:R[R.length-2].children.map(x=>x.value).filter(x=>x!==T)}pathFromRoot(T){return M(T,this._root).map(R=>R.value)}}function ue(I,T){if(I===T.value)return T;for(const R of T.children){const C=ue(I,R);if(C)return C}return null}function M(I,T){if(I===T.value)return[T];for(const R of T.children){const C=M(I,R);if(C.length)return C.unshift(T),C}return[]}class fe{constructor(T,R){this.value=T,this.children=R}toString(){return`TreeNode(${this.value})`}}function qe(I){const T={};return I&&I.children.forEach(R=>T[R.value.outlet]=R),T}class ar extends H{constructor(T,R){super(T),this.snapshot=R,et(this,T)}toString(){return this.snapshot.toString()}}function ui(I){const T=function U(I){const J=new ke([],{},{},"",{},yn,I,null,{});return new ot("",new fe(J,[]))}(I),R=new Ze.t([new Sr("",{})]),C=new Ze.t({}),x=new Ze.t({}),J=new Ze.t({}),ve=new Ze.t(""),dt=new ne(R,C,J,ve,x,yn,I,T.root);return dt.snapshot=T.root,new ar(new fe(dt,[]),T)}class ne{constructor(T,R,C,x,J,ve,dt,Qt){var At,Tn;this.urlSubject=T,this.paramsSubject=R,this.queryParamsSubject=C,this.fragmentSubject=x,this.dataSubject=J,this.outlet=ve,this.component=dt,this._futureSnapshot=Qt,this.title=null!==(At=null===(Tn=this.dataSubject)||void 0===Tn?void 0:Tn.pipe((0,Zt.T)(hr=>hr[ir])))&&void 0!==At?At:(0,re.of)(void 0),this.url=T,this.params=R,this.queryParams=C,this.fragment=x,this.data=J}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){var T;return null!==(T=this._paramMap)&&void 0!==T||(this._paramMap=this.params.pipe((0,Zt.T)(R=>Ve(R)))),this._paramMap}get queryParamMap(){var T;return null!==(T=this._queryParamMap)&&void 0!==T||(this._queryParamMap=this.queryParams.pipe((0,Zt.T)(R=>Ve(R)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Ae(I,T,R="emptyOnly"){var C;let x;const{routeConfig:J}=I;var ve;return x=null===T||"always"!==R&&""!==(null==J?void 0:J.path)&&(T.component||null!==(C=T.routeConfig)&&void 0!==C&&C.loadComponent)?{params:{...I.params},data:{...I.data},resolve:{...I.data,...null!==(ve=I._resolvedData)&&void 0!==ve?ve:{}}}:{params:{...T.params,...I.params},data:{...T.data,...I.data},resolve:{...I.data,...T.data,...null==J?void 0:J.data,...I._resolvedData}},J&&Yt(J)&&(x.resolve[ir]=J.title),x}class ke{get title(){var T;return null===(T=this.data)||void 0===T?void 0:T[ir]}constructor(T,R,C,x,J,ve,dt,Qt,At){this.url=T,this.params=R,this.queryParams=C,this.fragment=x,this.data=J,this.outlet=ve,this.component=dt,this.routeConfig=Qt,this._resolve=At}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){var T;return null!==(T=this._paramMap)&&void 0!==T||(this._paramMap=Ve(this.params)),this._paramMap}get queryParamMap(){var T;return null!==(T=this._queryParamMap)&&void 0!==T||(this._queryParamMap=Ve(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(C=>C.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class ot extends H{constructor(T,R){super(R),this.url=T,et(this,R)}toString(){return Lt(this._root)}}function et(I,T){T.value._routerState=I,T.children.forEach(R=>et(I,R))}function Lt(I){const T=I.children.length>0?` { ${I.children.map(Lt).join(", ")} } `:"";return`${I.value}${T}`}function zt(I){if(I.snapshot){const T=I.snapshot,R=I._futureSnapshot;I.snapshot=R,Xt(T.queryParams,R.queryParams)||I.queryParamsSubject.next(R.queryParams),T.fragment!==R.fragment&&I.fragmentSubject.next(R.fragment),Xt(T.params,R.params)||I.paramsSubject.next(R.params),function Ot(I,T){if(I.length!==T.length)return!1;for(let R=0;RXt(R.parameters,T[C].parameters))}(I.url,T.url);return R&&!(!I.parent!=!T.parent)&&(!I.parent||Kt(I.parent,T.parent))}function Yt(I){return"string"==typeof I.title||null===I.title}let _n=(()=>{var I;class T{constructor(){this.activated=null,this._activatedRoute=null,this.name=yn,this.activateEvents=new d.bkB,this.deactivateEvents=new d.bkB,this.attachEvents=new d.bkB,this.detachEvents=new d.bkB,this.parentContexts=(0,d.WQX)(S),this.location=(0,d.WQX)(d.c1b),this.changeDetector=(0,d.WQX)(d.gRc),this.environmentInjector=(0,d.WQX)(d.uvJ),this.inputBinder=(0,d.WQX)(Ln,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(C){if(C.name){const{firstChange:x,previousValue:J}=C.name;if(x)return;this.isTrackedInParentContexts(J)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(J)),this.initializeOutletWithName()}}ngOnDestroy(){var C;this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),null===(C=this.inputBinder)||void 0===C||C.unsubscribeFromRouteData(this)}isTrackedInParentContexts(C){var x;return(null===(x=this.parentContexts.getContext(C))||void 0===x?void 0:x.outlet)===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const C=this.parentContexts.getContext(this.name);null!=C&&C.route&&(C.attachRef?this.attach(C.attachRef,C.route):this.activateWith(C.route,C.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new d.wOt(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new d.wOt(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new d.wOt(4012,!1);this.location.detach();const C=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(C.instance),C}attach(C,x){var J;this.activated=C,this._activatedRoute=x,this.location.insert(C.hostView),null===(J=this.inputBinder)||void 0===J||J.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(C.instance)}deactivate(){if(this.activated){const C=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(C)}}activateWith(C,x){var J;if(this.isActivated)throw new d.wOt(4013,!1);this._activatedRoute=C;const ve=this.location,Qt=C.snapshot.component,At=this.parentContexts.getOrCreateContext(this.name).children,Tn=new Cn(C,At,ve.injector);this.activated=ve.createComponent(Qt,{index:ve.length,injector:Tn,environmentInjector:null!=x?x:this.environmentInjector}),this.changeDetector.markForCheck(),null===(J=this.inputBinder)||void 0===J||J.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}}return(I=T).\u0275fac=function(C){return new(C||I)},I.\u0275dir=d.FsC({type:I,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[d.OA$]}),T})();class Cn{__ngOutletInjector(T){return new Cn(this.route,this.childContexts,T)}constructor(T,R,C){this.route=T,this.childContexts=R,this.parent=C}get(T,R){return T===ne?this.route:T===S?this.childContexts:this.parent.get(T,R)}}const Ln=new d.nKC("");let In=(()=>{var I;class T{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(C){this.unsubscribeFromRouteData(C),this.subscribeToRouteData(C)}unsubscribeFromRouteData(C){var x;null===(x=this.outletDataSubscriptions.get(C))||void 0===x||x.unsubscribe(),this.outletDataSubscriptions.delete(C)}subscribeToRouteData(C){const{activatedRoute:x}=C,J=(0,Je.z)([x.queryParams,x.params,x.data]).pipe((0,Dt.n)(([ve,dt,Qt],At)=>(Qt={...ve,...dt,...Qt},0===At?(0,re.of)(Qt):Promise.resolve(Qt)))).subscribe(ve=>{if(!C.isActivated||!C.activatedComponentRef||C.activatedRoute!==x||null===x.component)return void this.unsubscribeFromRouteData(C);const dt=(0,d.HJs)(x.component);if(dt)for(const{templateName:Qt}of dt.inputs)C.activatedComponentRef.setInput(Qt,ve[Qt]);else this.unsubscribeFromRouteData(C)});this.outletDataSubscriptions.set(C,J)}}return(I=T).\u0275fac=function(C){return new(C||I)},I.\u0275prov=d.jDH({token:I,factory:I.\u0275fac}),T})();function cr(I,T,R){if(R&&I.shouldReuseRoute(T.value,R.value.snapshot)){const C=R.value;C._futureSnapshot=T.value;const x=function nr(I,T,R){return T.children.map(C=>{for(const x of R.children)if(I.shouldReuseRoute(C.value,x.value.snapshot))return cr(I,C,x);return cr(I,C)})}(I,T,R);return new fe(C,x)}{if(I.shouldAttach(T.value)){const J=I.retrieve(T.value);if(null!==J){const ve=J.route;return ve.value._futureSnapshot=T.value,ve.children=T.children.map(dt=>cr(I,dt)),ve}}const C=function li(I){return new ne(new Ze.t(I.url),new Ze.t(I.params),new Ze.t(I.queryParams),new Ze.t(I.fragment),new Ze.t(I.data),I.outlet,I.component,I)}(T.value),x=T.children.map(J=>cr(I,J));return new fe(C,x)}}const vi="ngNavigationCancelingError";function ci(I,T){const{redirectTo:R,navigationBehaviorOptions:C}=wi(T)?{redirectTo:T,navigationBehaviorOptions:void 0}:T,x=no(!1,ti.Redirect);return x.url=R,x.navigationBehaviorOptions=C,x}function no(I,T){const R=new Error(`NavigationCancelingError: ${I||""}`);return R[vi]=!0,R.cancellationCode=T,R}function dr(I){return!!I&&I[vi]}let Wr=(()=>{var I;class T{}return(I=T).\u0275fac=function(C){return new(C||I)},I.\u0275cmp=d.VBU({type:I,selectors:[["ng-component"]],standalone:!0,features:[d.aNF],decls:1,vars:0,template:function(C,x){1&C&&d.nrm(0,"router-outlet")},dependencies:[_n],encapsulation:2}),T})();function Us(I){const T=I.children&&I.children.map(Us),R=T?{...I,children:T}:{...I};return!R.component&&!R.loadComponent&&(T||R.loadChildren)&&R.outlet&&R.outlet!==yn&&(R.component=Wr),R}function so(I){return I.outlet||yn}function gs(I){var T;if(!I)return null;if(null!==(T=I.routeConfig)&&void 0!==T&&T._injector)return I.routeConfig._injector;for(let R=I.parent;R;R=R.parent){const C=R.routeConfig;if(null!=C&&C._loadedInjector)return C._loadedInjector;if(null!=C&&C._injector)return C._injector}return null}class $s{constructor(T,R,C,x,J){this.routeReuseStrategy=T,this.futureState=R,this.currState=C,this.forwardEvent=x,this.inputBindingEnabled=J}activate(T){const R=this.futureState._root,C=this.currState?this.currState._root:null;this.deactivateChildRoutes(R,C,T),zt(this.futureState.root),this.activateChildRoutes(R,C,T)}deactivateChildRoutes(T,R,C){const x=qe(R);T.children.forEach(J=>{const ve=J.value.outlet;this.deactivateRoutes(J,x[ve],C),delete x[ve]}),Object.values(x).forEach(J=>{this.deactivateRouteAndItsChildren(J,C)})}deactivateRoutes(T,R,C){const x=T.value,J=R?R.value:null;if(x===J)if(x.component){const ve=C.getContext(x.outlet);ve&&this.deactivateChildRoutes(T,R,ve.children)}else this.deactivateChildRoutes(T,R,C);else J&&this.deactivateRouteAndItsChildren(R,C)}deactivateRouteAndItsChildren(T,R){T.value.component&&this.routeReuseStrategy.shouldDetach(T.value.snapshot)?this.detachAndStoreRouteSubtree(T,R):this.deactivateRouteAndOutlet(T,R)}detachAndStoreRouteSubtree(T,R){const C=R.getContext(T.value.outlet),x=C&&T.value.component?C.children:R,J=qe(T);for(const ve of Object.values(J))this.deactivateRouteAndItsChildren(ve,x);if(C&&C.outlet){const ve=C.outlet.detach(),dt=C.children.onOutletDeactivated();this.routeReuseStrategy.store(T.value.snapshot,{componentRef:ve,route:T,contexts:dt})}}deactivateRouteAndOutlet(T,R){const C=R.getContext(T.value.outlet),x=C&&T.value.component?C.children:R,J=qe(T);for(const ve of Object.values(J))this.deactivateRouteAndItsChildren(ve,x);C&&(C.outlet&&(C.outlet.deactivate(),C.children.onOutletDeactivated()),C.attachRef=null,C.route=null)}activateChildRoutes(T,R,C){const x=qe(R);T.children.forEach(J=>{this.activateRoutes(J,x[J.value.outlet],C),this.forwardEvent(new Fo(J.value.snapshot))}),T.children.length&&this.forwardEvent(new ai(T.value.snapshot))}activateRoutes(T,R,C){const x=T.value,J=R?R.value:null;if(zt(x),x===J)if(x.component){const ve=C.getOrCreateContext(x.outlet);this.activateChildRoutes(T,R,ve.children)}else this.activateChildRoutes(T,R,C);else if(x.component){const ve=C.getOrCreateContext(x.outlet);if(this.routeReuseStrategy.shouldAttach(x.snapshot)){const dt=this.routeReuseStrategy.retrieve(x.snapshot);this.routeReuseStrategy.store(x.snapshot,null),ve.children.onOutletReAttached(dt.contexts),ve.attachRef=dt.componentRef,ve.route=dt.route.value,ve.outlet&&ve.outlet.attach(dt.componentRef,dt.route.value),zt(dt.route.value),this.activateChildRoutes(T,null,ve.children)}else{const dt=gs(x.snapshot);ve.attachRef=null,ve.route=x,ve.injector=dt,ve.outlet&&ve.outlet.activateWith(x,ve.injector),this.activateChildRoutes(T,null,ve.children)}}else this.activateChildRoutes(T,null,C)}}class ca{constructor(T){this.path=T,this.route=this.path[this.path.length-1]}}class qo{constructor(T,R){this.component=T,this.route=R}}function bs(I,T,R){const C=I._root;return ji(C,T?T._root:null,R,[C.value])}function bo(I,T){const R=Symbol(),C=T.get(I,R);return C===R?"function"!=typeof I||(0,d.LfX)(I)?T.get(I):I:C}function ji(I,T,R,C,x={canDeactivateChecks:[],canActivateChecks:[]}){const J=qe(T);return I.children.forEach(ve=>{(function da(I,T,R,C,x={canDeactivateChecks:[],canActivateChecks:[]}){const J=I.value,ve=T?T.value:null,dt=R?R.getContext(I.value.outlet):null;if(ve&&J.routeConfig===ve.routeConfig){const Qt=function ol(I,T,R){if("function"==typeof R)return R(I,T);switch(R){case"pathParamsChange":return!Er(I.url,T.url);case"pathParamsOrQueryParamsChange":return!Er(I.url,T.url)||!Xt(I.queryParams,T.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Kt(I,T)||!Xt(I.queryParams,T.queryParams);default:return!Kt(I,T)}}(ve,J,J.routeConfig.runGuardsAndResolvers);Qt?x.canActivateChecks.push(new ca(C)):(J.data=ve.data,J._resolvedData=ve._resolvedData),ji(I,T,J.component?dt?dt.children:null:R,C,x),Qt&&dt&&dt.outlet&&dt.outlet.isActivated&&x.canDeactivateChecks.push(new qo(dt.outlet.component,ve))}else ve&&L(T,dt,x),x.canActivateChecks.push(new ca(C)),ji(I,null,J.component?dt?dt.children:null:R,C,x)})(ve,J[ve.value.outlet],R,C.concat([ve.value]),x),delete J[ve.value.outlet]}),Object.entries(J).forEach(([ve,dt])=>L(dt,R.getContext(ve),x)),x}function L(I,T,R){const C=qe(I),x=I.value;Object.entries(C).forEach(([J,ve])=>{L(ve,x.component?T?T.children.getContext(J):null:T,R)}),R.canDeactivateChecks.push(new qo(x.component&&T&&T.outlet&&T.outlet.isActivated?T.outlet.component:null,x))}function P(I){return"function"==typeof I}function Ji(I){return I instanceof ye||"EmptyError"===(null==I?void 0:I.name)}const ao=Symbol("INITIAL_VALUE");function eo(){return(0,Dt.n)(I=>(0,Je.z)(I.map(T=>T.pipe((0,Be.s)(1),function rn(...I){const T=(0,ft.lI)(I);return(0,Ke.N)((R,C)=>{(T?ut(I,R,T):ut(I,R)).subscribe(C)})}(ao)))).pipe((0,Zt.T)(T=>{for(const R of T)if(!0!==R){if(R===ao)return ao;if(!1===R||R instanceof Zn)return R}return!0}),(0,pt.p)(T=>T!==ao),(0,Be.s)(1)))}function Jn(I){return(0,mt.F)((0,ae.M)(T=>{if(wi(T))throw ci(0,T)}),(0,Zt.T)(T=>!0===T))}class Ti{constructor(T){this.segmentGroup=T||null}}class ro extends Error{constructor(T){super(),this.urlTree=T}}function Hr(I){return vt(new Ti(I))}class Vl{constructor(T,R){this.urlSerializer=T,this.urlTree=R}lineralizeSegments(T,R){let C=[],x=R.root;for(;;){if(C=C.concat(x.segments),0===x.numberOfChildren)return(0,re.of)(C);if(x.numberOfChildren>1||!x.children[yn])return vt(new d.wOt(4e3,!1));x=x.children[yn]}}applyRedirectCommands(T,R,C){const x=this.applyRedirectCreateUrlTree(R,this.urlSerializer.parse(R),T,C);if(R.startsWith("/"))throw new ro(x);return x}applyRedirectCreateUrlTree(T,R,C,x){const J=this.createSegmentGroup(T,R.root,C,x);return new Zn(J,this.createQueryParams(R.queryParams,this.urlTree.queryParams),R.fragment)}createQueryParams(T,R){const C={};return Object.entries(T).forEach(([x,J])=>{if("string"==typeof J&&J.startsWith(":")){const dt=J.substring(1);C[x]=R[dt]}else C[x]=J}),C}createSegmentGroup(T,R,C,x){const J=this.createSegments(T,R.segments,C,x);let ve={};return Object.entries(R.children).forEach(([dt,Qt])=>{ve[dt]=this.createSegmentGroup(T,Qt,C,x)}),new wn(J,ve)}createSegments(T,R,C,x){return R.map(J=>J.path.startsWith(":")?this.findPosParam(T,J,x):this.findOrReturn(J,C))}findPosParam(T,R,C){const x=C[R.path.substring(1)];if(!x)throw new d.wOt(4001,!1);return x}findOrReturn(T,R){let C=0;for(const x of R){if(x.path===T.path)return R.splice(C),x;C++}return T}}const vr={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function ul(I,T,R,C,x){const J=ys(I,T,R);return J.matched?(C=function Wo(I,T){var R;return I.providers&&!I._injector&&(I._injector=(0,d.Ol2)(I.providers,T,`Route: ${I.path}`)),null!==(R=I._injector)&&void 0!==R?R:T}(T,C),function Oi(I,T,R,C){const x=T.canMatch;if(!x||0===x.length)return(0,re.of)(!0);const J=x.map(ve=>{const dt=bo(ve,I);return mn(function rr(I){return I&&P(I.canMatch)}(dt)?dt.canMatch(T,R):(0,d.N4e)(I,()=>dt(T,R)))});return(0,re.of)(J).pipe(eo(),Jn())}(C,T,R).pipe((0,Zt.T)(ve=>!0===ve?J:{...vr}))):(0,re.of)(J)}function ys(I,T,R){var C,x;if("**"===T.path)return function ka(I){return{matched:!0,parameters:I.length>0?gn(I).parameters:{},consumedSegments:I,remainingSegments:[],positionalParamSegments:{}}}(R);if(""===T.path)return"full"===T.pathMatch&&(I.hasChildren()||R.length>0)?{...vr}:{matched:!0,consumedSegments:[],remainingSegments:R,parameters:{},positionalParamSegments:{}};const ve=(T.matcher||yt)(R,I,T);if(!ve)return{...vr};const dt={};Object.entries(null!==(C=ve.posParams)&&void 0!==C?C:{}).forEach(([At,Tn])=>{dt[At]=Tn.path});const Qt=ve.consumed.length>0?{...dt,...ve.consumed[ve.consumed.length-1].parameters}:dt;return{matched:!0,consumedSegments:ve.consumed,remainingSegments:R.slice(ve.consumed.length),parameters:Qt,positionalParamSegments:null!==(x=ve.posParams)&&void 0!==x?x:{}}}function js(I,T,R,C){return R.length>0&&function Ll(I,T,R){return R.some(C=>fa(I,T,C)&&so(C)!==yn)}(I,R,C)?{segmentGroup:new wn(T,Fa(C,new wn(R,I.children))),slicedSegments:[]}:0===R.length&&function Ul(I,T,R){return R.some(C=>fa(I,T,C))}(I,R,C)?{segmentGroup:new wn(I.segments,cl(I,R,C,I.children)),slicedSegments:R}:{segmentGroup:new wn(I.segments,I.children),slicedSegments:R}}function cl(I,T,R,C){const x={};for(const J of R)if(fa(I,T,J)&&!C[so(J)]){const ve=new wn([],{});x[so(J)]=ve}return{...C,...x}}function Fa(I,T){const R={};R[yn]=T;for(const C of I)if(""===C.path&&so(C)!==yn){const x=new wn([],{});R[so(C)]=x}return R}function fa(I,T,R){return(!(I.hasChildren()||T.length>0)||"full"!==R.pathMatch)&&""===R.path}class Yo{}class Zo{constructor(T,R,C,x,J,ve,dt){this.injector=T,this.configLoader=R,this.rootComponentType=C,this.config=x,this.urlTree=J,this.paramsInheritanceStrategy=ve,this.urlSerializer=dt,this.applyRedirects=new Vl(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(T){return new d.wOt(4002,`'${T.segmentGroup}'`)}recognize(){const T=js(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(T).pipe((0,Zt.T)(R=>{const C=new ke([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},yn,this.rootComponentType,null,{}),x=new fe(C,R),J=new ot("",x),ve=function gi(I,T,R=null,C=null){return lt(St(I),T,R,C)}(C,[],this.urlTree.queryParams,this.urlTree.fragment);return ve.queryParams=this.urlTree.queryParams,J.url=this.urlSerializer.serialize(ve),this.inheritParamsAndData(J._root,null),{state:J,tree:ve}}))}match(T){return this.processSegmentGroup(this.injector,this.config,T,yn).pipe(me(C=>{if(C instanceof ro)return this.urlTree=C.urlTree,this.match(C.urlTree.root);throw C instanceof Ti?this.noMatchError(C):C}))}inheritParamsAndData(T,R){const C=T.value,x=Ae(C,R,this.paramsInheritanceStrategy);C.params=Object.freeze(x.params),C.data=Object.freeze(x.data),T.children.forEach(J=>this.inheritParamsAndData(J,C))}processSegmentGroup(T,R,C,x){return 0===C.segments.length&&C.hasChildren()?this.processChildren(T,R,C):this.processSegment(T,R,C,C.segments,x,!0).pipe((0,Zt.T)(J=>J instanceof fe?[J]:[]))}processChildren(T,R,C){const x=[];for(const J of Object.keys(C.children))"primary"===J?x.unshift(J):x.push(J);return(0,Ee.H)(x).pipe(de(J=>{const ve=C.children[J],dt=function ua(I,T){const R=I.filter(C=>so(C)===T);return R.push(...I.filter(C=>so(C)!==T)),R}(R,J);return this.processSegmentGroup(T,dt,ve,J)}),function at(I,T){return(0,Ke.N)(function Ce(I,T,R,C,x){return(J,ve)=>{let dt=R,Qt=T,At=0;J.subscribe((0,Ct._)(ve,Tn=>{const hr=At++;Qt=dt?I(Qt,Tn,hr):(dt=!0,Tn),C&&ve.next(Qt)},x&&(()=>{dt&&ve.next(Qt),ve.complete()})))}}(I,T,arguments.length>=2,!0))}((J,ve)=>(J.push(...ve),J)),_e(null),function Bt(I,T){const R=arguments.length>=2;return C=>C.pipe(I?(0,pt.p)((x,J)=>I(x,J,C)):$e.D,kt(1),R?_e(T):j(()=>new ye))}(),(0,Fe.Z)(J=>{if(null===J)return Hr(C);const ve=Lo(J);return function wu(I){I.sort((T,R)=>T.value.outlet===yn?-1:R.value.outlet===yn?1:T.value.outlet.localeCompare(R.value.outlet))}(ve),(0,re.of)(ve)}))}processSegment(T,R,C,x,J,ve){return(0,Ee.H)(R).pipe(de(dt=>{var Qt;return this.processSegmentAgainstRoute(null!==(Qt=dt._injector)&&void 0!==Qt?Qt:T,R,dt,C,x,J,ve).pipe(me(At=>{if(At instanceof Ti)return(0,re.of)(null);throw At}))}),te(dt=>!!dt),me(dt=>{if(Ji(dt))return function ws(I,T,R){return 0===T.length&&!I.children[R]}(C,x,J)?(0,re.of)(new Yo):Hr(C);throw dt}))}processSegmentAgainstRoute(T,R,C,x,J,ve,dt){return function Is(I,T,R,C){return!!(so(I)===C||C!==yn&&fa(T,R,I))&&ys(T,I,R).matched}(C,x,J,ve)?void 0===C.redirectTo?this.matchSegmentAgainstRoute(T,x,C,J,ve):this.allowRedirects&&dt?this.expandSegmentAgainstRouteUsingRedirect(T,x,R,C,J,ve):Hr(x):Hr(x)}expandSegmentAgainstRouteUsingRedirect(T,R,C,x,J,ve){const{matched:dt,consumedSegments:Qt,positionalParamSegments:At,remainingSegments:Tn}=ys(R,x,J);if(!dt)return Hr(R);x.redirectTo.startsWith("/")&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>31&&(this.allowRedirects=!1));const hr=this.applyRedirects.applyRedirectCommands(Qt,x.redirectTo,At);return this.applyRedirects.lineralizeSegments(x,hr).pipe((0,Fe.Z)(Ri=>this.processSegment(T,C,R,Ri.concat(Tn),ve,!1)))}matchSegmentAgainstRoute(T,R,C,x,J){const ve=ul(R,C,x,T);return"**"===C.path&&(R.children={}),ve.pipe((0,Dt.n)(dt=>{var Qt;return dt.matched?(T=null!==(Qt=C._injector)&&void 0!==Qt?Qt:T,this.getChildConfig(T,C,x).pipe((0,Dt.n)(({routes:At})=>{var Tn,hr,Ri;const Br=null!==(Tn=C._loadedInjector)&&void 0!==Tn?Tn:T,{consumedSegments:qi,remainingSegments:Bo,parameters:za}=dt,Ha=new ke(qi,za,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,function Rs(I){return I.data||{}}(C),so(C),null!==(hr=null!==(Ri=C.component)&&void 0!==Ri?Ri:C._loadedComponent)&&void 0!==hr?hr:null,C,function Di(I){return I.resolve||{}}(C)),{segmentGroup:yo,slicedSegments:hl}=js(R,qi,Bo,At);if(0===hl.length&&yo.hasChildren())return this.processChildren(Br,At,yo).pipe((0,Zt.T)(Ps=>null===Ps?null:new fe(Ha,Ps)));if(0===At.length&&0===hl.length)return(0,re.of)(new fe(Ha,[]));const Wl=so(C)===J;return this.processSegment(Br,At,yo,hl,Wl?yn:J,!0).pipe((0,Zt.T)(Ps=>new fe(Ha,Ps instanceof fe?[Ps]:[])))}))):Hr(R)}))}getChildConfig(T,R,C){return R.children?(0,re.of)({routes:R.children,injector:T}):R.loadChildren?void 0!==R._loadedRoutes?(0,re.of)({routes:R._loadedRoutes,injector:R._loadedInjector}):function ha(I,T,R,C){const x=T.canLoad;if(void 0===x||0===x.length)return(0,re.of)(!0);const J=x.map(ve=>{const dt=bo(ve,I);return mn(function $(I){return I&&P(I.canLoad)}(dt)?dt.canLoad(T,R):(0,d.N4e)(I,()=>dt(T,R)))});return(0,re.of)(J).pipe(eo(),Jn())}(T,R,C).pipe((0,Fe.Z)(x=>x?this.configLoader.loadChildren(T,R).pipe((0,ae.M)(J=>{R._loadedRoutes=J.routes,R._loadedInjector=J.injector})):function _s(I){return vt(no(!1,ti.GuardRejected))}())):(0,re.of)({routes:[],injector:T})}}function $l(I){const T=I.value.routeConfig;return T&&""===T.path}function Lo(I){const T=[],R=new Set;for(const C of I){if(!$l(C)){T.push(C);continue}const x=T.find(J=>C.value.routeConfig===J.value.routeConfig);void 0!==x?(x.children.push(...C.children),R.add(x)):T.push(C)}for(const C of R){const x=Lo(C.children);T.push(new fe(C.value,x))}return T.filter(C=>!R.has(C))}function ga(I){const T=I.children.map(R=>ga(R)).flat();return[I,...T]}function ma(I){return(0,Dt.n)(T=>{const R=I(T);return R?(0,Ee.H)(R).pipe((0,Zt.T)(()=>T)):(0,re.of)(T)})}let Ms=(()=>{var I;class T{buildTitle(C){let x,J=C.root;for(;void 0!==J;){var ve;x=null!==(ve=this.getResolvedTitleForRoute(J))&&void 0!==ve?ve:x,J=J.children.find(dt=>dt.outlet===yn)}return x}getResolvedTitleForRoute(C){return C.data[ir]}}return(I=T).\u0275fac=function(C){return new(C||I)},I.\u0275prov=d.jDH({token:I,factory:()=>(0,d.WQX)(lo),providedIn:"root"}),T})(),lo=(()=>{var I;class T extends Ms{constructor(C){super(),this.title=C}updateTitle(C){const x=this.buildTitle(C);void 0!==x&&this.title.setTitle(x)}}return(I=T).\u0275fac=function(C){return new(C||I)(d.KVO(er.hE))},I.\u0275prov=d.jDH({token:I,factory:I.\u0275fac,providedIn:"root"}),T})();const Hs=new d.nKC("",{providedIn:"root",factory:()=>({})}),Es=new d.nKC("");let D=(()=>{var I;class T{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=(0,d.WQX)(d.Ql9)}loadComponent(C){if(this.componentLoaders.get(C))return this.componentLoaders.get(C);if(C._loadedComponent)return(0,re.of)(C._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(C);const x=mn(C.loadComponent()).pipe((0,Zt.T)(O),(0,ae.M)(ve=>{this.onLoadEndListener&&this.onLoadEndListener(C),C._loadedComponent=ve}),bn(()=>{this.componentLoaders.delete(C)})),J=new ze(x,()=>new Tt.B).pipe(xt());return this.componentLoaders.set(C,J),J}loadChildren(C,x){if(this.childrenLoaders.get(x))return this.childrenLoaders.get(x);if(x._loadedRoutes)return(0,re.of)({routes:x._loadedRoutes,injector:x._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(x);const ve=function V(I,T,R,C){return mn(I.loadChildren()).pipe((0,Zt.T)(O),(0,Fe.Z)(x=>x instanceof d.Co$||Array.isArray(x)?(0,re.of)(x):(0,Ee.H)(T.compileModuleAsync(x))),(0,Zt.T)(x=>{C&&C(I);let J,ve,dt=!1;return Array.isArray(x)?(ve=x,!0):(J=x.create(R).injector,ve=J.get(Es,[],{optional:!0,self:!0}).flat()),{routes:ve.map(Us),injector:J}}))}(x,this.compiler,C,this.onLoadEndListener).pipe(bn(()=>{this.childrenLoaders.delete(x)})),dt=new ze(ve,()=>new Tt.B).pipe(xt());return this.childrenLoaders.set(x,dt),dt}}return(I=T).\u0275fac=function(C){return new(C||I)},I.\u0275prov=d.jDH({token:I,factory:I.\u0275fac,providedIn:"root"}),T})();function O(I){return function be(I){return I&&"object"==typeof I&&"default"in I}(I)?I.default:I}let le=(()=>{var I;class T{}return(I=T).\u0275fac=function(C){return new(C||I)},I.\u0275prov=d.jDH({token:I,factory:()=>(0,d.WQX)(xe),providedIn:"root"}),T})(),xe=(()=>{var I;class T{shouldProcessUrl(C){return!0}extract(C){return C}merge(C,x){return C}}return(I=T).\u0275fac=function(C){return new(C||I)},I.\u0275prov=d.jDH({token:I,factory:I.\u0275fac,providedIn:"root"}),T})();const Ft=new d.nKC(""),an=new d.nKC("");function Un(I,T,R){const C=I.get(an),x=I.get(Vt.qQ);return I.get(d.SKi).runOutsideAngular(()=>{if(!x.startViewTransition||C.skipNextTransition)return C.skipNextTransition=!1,new Promise(At=>setTimeout(At));let J;const ve=new Promise(At=>{J=At}),dt=x.startViewTransition(()=>(J(),function Fn(I){return new Promise(T=>{(0,d.mal)(T,{injector:I})})}(I))),{onViewTransitionCreated:Qt}=C;return Qt&&(0,d.N4e)(I,()=>Qt({transition:dt,from:T,to:R})),ve})}let Fr=(()=>{var I;class T{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new Tt.B,this.transitionAbortSubject=new Tt.B,this.configLoader=(0,d.WQX)(D),this.environmentInjector=(0,d.WQX)(d.uvJ),this.urlSerializer=(0,d.WQX)(Qr),this.rootContexts=(0,d.WQX)(S),this.location=(0,d.WQX)(Vt.aZ),this.inputBindingEnabled=null!==(0,d.WQX)(Ln,{optional:!0}),this.titleStrategy=(0,d.WQX)(Ms),this.options=(0,d.WQX)(Hs,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=(0,d.WQX)(le),this.createViewTransition=(0,d.WQX)(Ft,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>(0,re.of)(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=J=>this.events.next(new sr(J)),this.configLoader.onLoadStartListener=J=>this.events.next(new si(J))}complete(){var C;null===(C=this.transitions)||void 0===C||C.complete()}handleNavigationRequest(C){var x;const J=++this.navigationId;null===(x=this.transitions)||void 0===x||x.next({...this.transitions.value,...C,id:J})}setupNavigations(C,x,J){return this.transitions=new Ze.t({id:0,currentUrlTree:x,currentRawUrl:x,extractedUrl:this.urlHandlingStrategy.extract(x),urlAfterRedirects:this.urlHandlingStrategy.extract(x),rawUrl:x,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:xr,restoredState:null,currentSnapshot:J.snapshot,targetSnapshot:null,currentRouterState:J,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe((0,pt.p)(ve=>0!==ve.id),(0,Zt.T)(ve=>({...ve,extractedUrl:this.urlHandlingStrategy.extract(ve.rawUrl)})),(0,Dt.n)(ve=>{let dt=!1,Qt=!1;return(0,re.of)(ve).pipe((0,Dt.n)(At=>{var Tn;if(this.navigationId>ve.id)return this.cancelNavigationTransition(ve,"",ti.SupersededByNewNavigation),Me.w;this.currentTransition=ve,this.currentNavigation={id:At.id,initialUrl:At.rawUrl,extractedUrl:At.extractedUrl,trigger:At.source,extras:At.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null};const hr=!C.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),Ri=null!==(Tn=At.extras.onSameUrlNavigation)&&void 0!==Tn?Tn:C.onSameUrlNavigation;if(!hr&&"reload"!==Ri){const Br="";return this.events.next(new Nn(At.id,this.urlSerializer.serialize(At.rawUrl),Br,mr.IgnoredSameUrlNavigation)),At.resolve(null),Me.w}if(this.urlHandlingStrategy.shouldProcessUrl(At.rawUrl))return(0,re.of)(At).pipe((0,Dt.n)(Br=>{var qi,Bo;const za=null===(qi=this.transitions)||void 0===qi?void 0:qi.getValue();return this.events.next(new mi(Br.id,this.urlSerializer.serialize(Br.extractedUrl),Br.source,Br.restoredState)),za!==(null===(Bo=this.transitions)||void 0===Bo?void 0:Bo.getValue())?Me.w:Promise.resolve(Br)}),function pa(I,T,R,C,x,J){return(0,Fe.Z)(ve=>function Ss(I,T,R,C,x,J,ve="emptyOnly"){return new Zo(I,T,R,C,x,ve,J).recognize()}(I,T,R,C,ve.extractedUrl,x,J).pipe((0,Zt.T)(({state:dt,tree:Qt})=>({...ve,targetSnapshot:dt,urlAfterRedirects:Qt}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,C.config,this.urlSerializer,this.paramsInheritanceStrategy),(0,ae.M)(Br=>{ve.targetSnapshot=Br.targetSnapshot,ve.urlAfterRedirects=Br.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:Br.urlAfterRedirects};const qi=new ko(Br.id,this.urlSerializer.serialize(Br.extractedUrl),this.urlSerializer.serialize(Br.urlAfterRedirects),Br.targetSnapshot);this.events.next(qi)}));if(hr&&this.urlHandlingStrategy.shouldProcessUrl(At.currentRawUrl)){const{id:Br,extractedUrl:qi,source:Bo,restoredState:za,extras:Ha}=At,yo=new mi(Br,this.urlSerializer.serialize(qi),Bo,za);this.events.next(yo);const hl=ui(this.rootComponentType).snapshot;return this.currentTransition=ve={...At,targetSnapshot:hl,urlAfterRedirects:qi,extras:{...Ha,skipLocationChange:!1,replaceUrl:!1}},this.currentNavigation.finalUrl=qi,(0,re.of)(ve)}{const Br="";return this.events.next(new Nn(At.id,this.urlSerializer.serialize(At.extractedUrl),Br,mr.IgnoredByUrlHandlingStrategy)),At.resolve(null),Me.w}}),(0,ae.M)(At=>{const Tn=new ei(At.id,this.urlSerializer.serialize(At.extractedUrl),this.urlSerializer.serialize(At.urlAfterRedirects),At.targetSnapshot);this.events.next(Tn)}),(0,Zt.T)(At=>(this.currentTransition=ve={...At,guards:bs(At.targetSnapshot,At.currentSnapshot,this.rootContexts)},ve)),function Qo(I,T){return(0,Fe.Z)(R=>{const{targetSnapshot:C,currentSnapshot:x,guards:{canActivateChecks:J,canDeactivateChecks:ve}}=R;return 0===ve.length&&0===J.length?(0,re.of)({...R,guardsResult:!0}):function Na(I,T,R,C){return(0,Ee.H)(I).pipe((0,Fe.Z)(x=>function as(I,T,R,C,x){const J=T&&T.routeConfig?T.routeConfig.canDeactivate:null;if(!J||0===J.length)return(0,re.of)(!0);const ve=J.map(dt=>{var Qt;const At=null!==(Qt=gs(T))&&void 0!==Qt?Qt:x,Tn=bo(dt,At);return mn(function On(I){return I&&P(I.canDeactivate)}(Tn)?Tn.canDeactivate(I,T,R,C):(0,d.N4e)(At,()=>Tn(I,T,R,C))).pipe(te())});return(0,re.of)(ve).pipe(eo())}(x.component,x.route,R,T,C)),te(x=>!0!==x,!0))}(ve,C,x,I).pipe((0,Fe.Z)(dt=>dt&&function ce(I){return"boolean"==typeof I}(dt)?function vs(I,T,R,C){return(0,Ee.H)(T).pipe(de(x=>ut(function Oa(I,T){return null!==I&&T&&T(new Or(I)),(0,re.of)(!0)}(x.route.parent,C),function Bs(I,T){return null!==I&&T&&T(new jn(I)),(0,re.of)(!0)}(x.route,C),function al(I,T,R){const C=T[T.length-1],J=T.slice(0,T.length-1).reverse().map(ve=>function Xo(I){const T=I.routeConfig?I.routeConfig.canActivateChild:null;return T&&0!==T.length?{node:I,guards:T}:null}(ve)).filter(ve=>null!==ve).map(ve=>Mt(()=>{const dt=ve.guards.map(Qt=>{var At;const Tn=null!==(At=gs(ve.node))&&void 0!==At?At:R,hr=bo(Qt,Tn);return mn(function nn(I){return I&&P(I.canActivateChild)}(hr)?hr.canActivateChild(C,I):(0,d.N4e)(Tn,()=>hr(C,I))).pipe(te())});return(0,re.of)(dt).pipe(eo())}));return(0,re.of)(J).pipe(eo())}(I,x.path,R),function sl(I,T,R){const C=T.routeConfig?T.routeConfig.canActivate:null;if(!C||0===C.length)return(0,re.of)(!0);const x=C.map(J=>Mt(()=>{var ve;const dt=null!==(ve=gs(T))&&void 0!==ve?ve:R,Qt=bo(J,dt);return mn(function Te(I){return I&&P(I.canActivate)}(Qt)?Qt.canActivate(T,I):(0,d.N4e)(dt,()=>Qt(T,I))).pipe(te())}));return(0,re.of)(x).pipe(eo())}(I,x.route,R))),te(x=>!0!==x,!0))}(C,J,I,T):(0,re.of)(dt)),(0,Zt.T)(dt=>({...R,guardsResult:dt})))})}(this.environmentInjector,At=>this.events.next(At)),(0,ae.M)(At=>{if(ve.guardsResult=At.guardsResult,wi(At.guardsResult))throw ci(0,At.guardsResult);const Tn=new Bi(At.id,this.urlSerializer.serialize(At.extractedUrl),this.urlSerializer.serialize(At.urlAfterRedirects),At.targetSnapshot,!!At.guardsResult);this.events.next(Tn)}),(0,pt.p)(At=>!!At.guardsResult||(this.cancelNavigationTransition(At,"",ti.GuardRejected),!1)),ma(At=>{if(At.guards.canActivateChecks.length)return(0,re.of)(At).pipe((0,ae.M)(Tn=>{const hr=new is(Tn.id,this.urlSerializer.serialize(Tn.extractedUrl),this.urlSerializer.serialize(Tn.urlAfterRedirects),Tn.targetSnapshot);this.events.next(hr)}),(0,Dt.n)(Tn=>{let hr=!1;return(0,re.of)(Tn).pipe(function Bl(I,T){return(0,Fe.Z)(R=>{const{targetSnapshot:C,guards:{canActivateChecks:x}}=R;if(!x.length)return(0,re.of)(R);const J=new Set(x.map(Qt=>Qt.route)),ve=new Set;for(const Qt of J)if(!ve.has(Qt))for(const At of ga(Qt))ve.add(At);let dt=0;return(0,Ee.H)(ve).pipe(de(Qt=>J.has(Qt)?function Va(I,T,R,C){const x=I.routeConfig,J=I._resolve;return void 0!==(null==x?void 0:x.title)&&!Yt(x)&&(J[ir]=x.title),function zs(I,T,R,C){const x=en(I);if(0===x.length)return(0,re.of)({});const J={};return(0,Ee.H)(x).pipe((0,Fe.Z)(ve=>function pc(I,T,R,C){var x;const J=null!==(x=gs(T))&&void 0!==x?x:C,ve=bo(I,J);return mn(ve.resolve?ve.resolve(T,R):(0,d.N4e)(J,()=>ve(T,R)))}(I[ve],T,R,C).pipe(te(),(0,ae.M)(dt=>{J[ve]=dt}))),kt(1),function vn(I){return(0,Zt.T)(()=>I)}(J),me(ve=>Ji(ve)?Me.w:vt(ve)))}(J,I,T,C).pipe((0,Zt.T)(ve=>(I._resolvedData=ve,I.data=Ae(I,I.parent,R).resolve,null)))}(Qt,C,I,T):(Qt.data=Ae(Qt,Qt.parent,I).resolve,(0,re.of)(void 0))),(0,ae.M)(()=>dt++),kt(1),(0,Fe.Z)(Qt=>dt===ve.size?(0,re.of)(R):Me.w))})}(this.paramsInheritanceStrategy,this.environmentInjector),(0,ae.M)({next:()=>hr=!0,complete:()=>{hr||this.cancelNavigationTransition(Tn,"",ti.NoDataFromResolver)}}))}),(0,ae.M)(Tn=>{const hr=new ps(Tn.id,this.urlSerializer.serialize(Tn.extractedUrl),this.urlSerializer.serialize(Tn.urlAfterRedirects),Tn.targetSnapshot);this.events.next(hr)}))}),ma(At=>{const Tn=hr=>{var Ri;const Br=[];null!==(Ri=hr.routeConfig)&&void 0!==Ri&&Ri.loadComponent&&!hr.routeConfig._loadedComponent&&Br.push(this.configLoader.loadComponent(hr.routeConfig).pipe((0,ae.M)(qi=>{hr.component=qi}),(0,Zt.T)(()=>{})));for(const qi of hr.children)Br.push(...Tn(qi));return Br};return(0,Je.z)(Tn(At.targetSnapshot.root)).pipe(_e(null),(0,Be.s)(1))}),ma(()=>this.afterPreactivation()),(0,Dt.n)(()=>{var At;const{currentSnapshot:Tn,targetSnapshot:hr}=ve,Ri=null===(At=this.createViewTransition)||void 0===At?void 0:At.call(this,this.environmentInjector,Tn.root,hr.root);return Ri?(0,Ee.H)(Ri).pipe((0,Zt.T)(()=>ve)):(0,re.of)(ve)}),(0,Zt.T)(At=>{const Tn=function br(I,T,R){const C=cr(I,T._root,R?R._root:void 0);return new ar(C,T)}(C.routeReuseStrategy,At.targetSnapshot,At.currentRouterState);return this.currentTransition=ve={...At,targetRouterState:Tn},this.currentNavigation.targetRouterState=Tn,ve}),(0,ae.M)(()=>{this.events.next(new Co)}),((I,T,R,C)=>(0,Zt.T)(x=>(new $s(T,x.targetRouterState,x.currentRouterState,R,C).activate(I),x)))(this.rootContexts,C.routeReuseStrategy,At=>this.events.next(At),this.inputBindingEnabled),(0,Be.s)(1),(0,ae.M)({next:At=>{var Tn;dt=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new Si(At.id,this.urlSerializer.serialize(At.extractedUrl),this.urlSerializer.serialize(At.urlAfterRedirects))),null===(Tn=this.titleStrategy)||void 0===Tn||Tn.updateTitle(At.targetRouterState.snapshot),At.resolve(!0)},complete:()=>{dt=!0}}),function qn(I){return(0,Ke.N)((T,R)=>{(0,st.Tg)(I).subscribe((0,Ct._)(R,()=>R.complete(),$n.l)),!R.closed&&T.subscribe(R)})}(this.transitionAbortSubject.pipe((0,ae.M)(At=>{throw At}))),bn(()=>{var At;!dt&&!Qt&&this.cancelNavigationTransition(ve,"",ti.SupersededByNewNavigation),(null===(At=this.currentTransition)||void 0===At?void 0:At.id)===ve.id&&(this.currentNavigation=null,this.currentTransition=null)}),me(At=>{if(Qt=!0,dr(At))this.events.next(new oi(ve.id,this.urlSerializer.serialize(ve.extractedUrl),At.message,At.cancellationCode)),function Go(I){return dr(I)&&wi(I.url)}(At)?this.events.next(new co(At.url)):ve.resolve(!1);else{var Tn;this.events.next(new kn(ve.id,this.urlSerializer.serialize(ve.extractedUrl),At,null!==(Tn=ve.targetSnapshot)&&void 0!==Tn?Tn:void 0));try{ve.resolve(C.errorHandler(At))}catch(hr){this.options.resolveNavigationPromiseOnError?ve.resolve(!1):ve.reject(hr)}}return Me.w}))}))}cancelNavigationTransition(C,x,J){const ve=new oi(C.id,this.urlSerializer.serialize(C.extractedUrl),x,J);this.events.next(ve),C.resolve(!1)}isUpdatingInternalState(){var C,x;return(null===(C=this.currentTransition)||void 0===C?void 0:C.extractedUrl.toString())!==(null===(x=this.currentTransition)||void 0===x?void 0:x.currentUrlTree.toString())}isUpdatedBrowserUrl(){var C,x;return this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))).toString()!==(null===(C=this.currentTransition)||void 0===C?void 0:C.extractedUrl.toString())&&!(null!==(x=this.currentTransition)&&void 0!==x&&x.extras.skipLocationChange)}}return(I=T).\u0275fac=function(C){return new(C||I)},I.\u0275prov=d.jDH({token:I,factory:I.\u0275fac,providedIn:"root"}),T})();function Tr(I){return I!==xr}let Zr=(()=>{var I;class T{}return(I=T).\u0275fac=function(C){return new(C||I)},I.\u0275prov=d.jDH({token:I,factory:()=>(0,d.WQX)(ki),providedIn:"root"}),T})();class Vr{shouldDetach(T){return!1}store(T,R){}shouldAttach(T){return!1}retrieve(T){return null}shouldReuseRoute(T,R){return T.routeConfig===R.routeConfig}}let ki=(()=>{var I;class T extends Vr{}return(I=T).\u0275fac=(()=>{let R;return function(x){return(R||(R=d.xGo(I)))(x||I)}})(),I.\u0275prov=d.jDH({token:I,factory:I.\u0275fac,providedIn:"root"}),T})(),Gr=(()=>{var I;class T{}return(I=T).\u0275fac=function(C){return new(C||I)},I.\u0275prov=d.jDH({token:I,factory:()=>(0,d.WQX)(un),providedIn:"root"}),T})(),un=(()=>{var I;class T extends Gr{constructor(){super(...arguments),this.location=(0,d.WQX)(Vt.aZ),this.urlSerializer=(0,d.WQX)(Qr),this.options=(0,d.WQX)(Hs,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=(0,d.WQX)(le),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new Zn,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=ui(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){var C,x;return"computed"!==this.canceledNavigationResolution?this.currentPageId:null!==(C=null===(x=this.restoredState())||void 0===x?void 0:x.\u0275routerPageId)&&void 0!==C?C:this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(C){return this.location.subscribe(x=>{"popstate"===x.type&&C(x.url,x.state)})}handleRouterEvent(C,x){if(C instanceof mi)this.stateMemento=this.createStateMemento();else if(C instanceof Nn)this.rawUrlTree=x.initialUrl;else if(C instanceof ko){if("eager"===this.urlUpdateStrategy&&!x.extras.skipLocationChange){const J=this.urlHandlingStrategy.merge(x.finalUrl,x.initialUrl);this.setBrowserUrl(J,x)}}else C instanceof Co?(this.currentUrlTree=x.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(x.finalUrl,x.initialUrl),this.routerState=x.targetRouterState,"deferred"===this.urlUpdateStrategy&&(x.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,x))):C instanceof oi&&(C.code===ti.GuardRejected||C.code===ti.NoDataFromResolver)?this.restoreHistory(x):C instanceof kn?this.restoreHistory(x,!0):C instanceof Si&&(this.lastSuccessfulId=C.id,this.currentPageId=this.browserPageId)}setBrowserUrl(C,x){const J=this.urlSerializer.serialize(C);if(this.location.isCurrentPathEqualTo(J)||x.extras.replaceUrl){const dt={...x.extras.state,...this.generateNgRouterState(x.id,this.browserPageId)};this.location.replaceState(J,"",dt)}else{const ve={...x.extras.state,...this.generateNgRouterState(x.id,this.browserPageId+1)};this.location.go(J,"",ve)}}restoreHistory(C,x=!1){if("computed"===this.canceledNavigationResolution){const ve=this.currentPageId-this.browserPageId;0!==ve?this.location.historyGo(ve):this.currentUrlTree===C.finalUrl&&0===ve&&(this.resetState(C),this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(x&&this.resetState(C),this.resetUrlToCurrentUrlTree())}resetState(C){var x;this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,null!==(x=C.finalUrl)&&void 0!==x?x:this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(C,x){return"computed"===this.canceledNavigationResolution?{navigationId:C,\u0275routerPageId:x}:{navigationId:C}}}return(I=T).\u0275fac=(()=>{let R;return function(x){return(R||(R=d.xGo(I)))(x||I)}})(),I.\u0275prov=d.jDH({token:I,factory:I.\u0275fac,providedIn:"root"}),T})();var Vn=function(I){return I[I.COMPLETE=0]="COMPLETE",I[I.FAILED=1]="FAILED",I[I.REDIRECTING=2]="REDIRECTING",I}(Vn||{});function Kr(I,T){I.events.pipe((0,pt.p)(R=>R instanceof Si||R instanceof oi||R instanceof kn||R instanceof Nn),(0,Zt.T)(R=>R instanceof Si||R instanceof Nn?Vn.COMPLETE:R instanceof oi&&(R.code===ti.Redirect||R.code===ti.SupersededByNewNavigation)?Vn.REDIRECTING:Vn.FAILED),(0,pt.p)(R=>R!==Vn.REDIRECTING),(0,Be.s)(1)).subscribe(()=>{T()})}function Gi(I){throw I}const _i={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Wi={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Fi=(()=>{var I;class T{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){var C,x;this.disposed=!1,this.isNgZoneEnabled=!1,this.console=(0,d.WQX)(d.H3F),this.stateManager=(0,d.WQX)(Gr),this.options=(0,d.WQX)(Hs,{optional:!0})||{},this.pendingTasks=(0,d.WQX)(d.TgB),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=(0,d.WQX)(Fr),this.urlSerializer=(0,d.WQX)(Qr),this.location=(0,d.WQX)(Vt.aZ),this.urlHandlingStrategy=(0,d.WQX)(le),this._events=new Tt.B,this.errorHandler=this.options.errorHandler||Gi,this.navigated=!1,this.routeReuseStrategy=(0,d.WQX)(Zr),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=null!==(C=null===(x=(0,d.WQX)(Es,{optional:!0}))||void 0===x?void 0:x.flat())&&void 0!==C?C:[],this.componentInputBindingEnabled=!!(0,d.WQX)(Ln,{optional:!0}),this.eventsSubscription=new je.yU,this.isNgZoneEnabled=(0,d.WQX)(d.SKi)instanceof d.SKi&&d.SKi.isInAngularZone(),this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:J=>{this.console.warn(J)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){const C=this.navigationTransitions.events.subscribe(x=>{try{const J=this.navigationTransitions.currentTransition,ve=this.navigationTransitions.currentNavigation;if(null!==J&&null!==ve)if(this.stateManager.handleRouterEvent(x,ve),x instanceof oi&&x.code!==ti.Redirect&&x.code!==ti.SupersededByNewNavigation)this.navigated=!0;else if(x instanceof Si)this.navigated=!0;else if(x instanceof co){const dt=this.urlHandlingStrategy.merge(x.url,J.currentRawUrl),Qt={info:J.extras.info,skipLocationChange:J.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||Tr(J.source)};this.scheduleNavigation(dt,xr,null,Qt,{resolve:J.resolve,reject:J.reject,promise:J.promise})}(function zi(I){return!(I instanceof Co||I instanceof co)})(x)&&this._events.next(x)}catch(J){this.navigationTransitions.transitionAbortSubject.next(J)}});this.eventsSubscription.add(C)}resetRootComponentType(C){this.routerState.root.component=C,this.navigationTransitions.rootComponentType=C}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),xr,this.stateManager.restoredState())}setUpLocationChangeListener(){var C;null!==(C=this.nonRouterCurrentEntryChangeSubscription)&&void 0!==C||(this.nonRouterCurrentEntryChangeSubscription=this.stateManager.registerNonRouterCurrentEntryChangeListener((x,J)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(x,"popstate",J)},0)}))}navigateToSyncWithBrowser(C,x,J){const ve={replaceUrl:!0},dt=null!=J&&J.navigationId?J:null;if(J){const At={...J};delete At.navigationId,delete At.\u0275routerPageId,0!==Object.keys(At).length&&(ve.state=At)}const Qt=this.parseUrl(C);this.scheduleNavigation(Qt,x,dt,ve)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(C){this.config=C.map(Us),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(C,x={}){const{relativeTo:J,queryParams:ve,fragment:dt,queryParamsHandling:Qt,preserveFragment:At}=x,Tn=At?this.currentUrlTree.fragment:dt;let Ri,hr=null;switch(Qt){case"merge":hr={...this.currentUrlTree.queryParams,...ve};break;case"preserve":hr=this.currentUrlTree.queryParams;break;default:hr=ve||null}null!==hr&&(hr=this.removeEmptyProps(hr));try{Ri=St(J?J.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof C[0]||!C[0].startsWith("/"))&&(C=[]),Ri=this.currentUrlTree.root}return lt(Ri,C,hr,null!=Tn?Tn:null)}navigateByUrl(C,x={skipLocationChange:!1}){const J=wi(C)?C:this.parseUrl(C),ve=this.urlHandlingStrategy.merge(J,this.rawUrlTree);return this.scheduleNavigation(ve,xr,null,x)}navigate(C,x={skipLocationChange:!1}){return function Jr(I){for(let T=0;T(null!=ve&&(x[J]=ve),x),{})}scheduleNavigation(C,x,J,ve,dt){if(this.disposed)return Promise.resolve(!1);let Qt,At,Tn;dt?(Qt=dt.resolve,At=dt.reject,Tn=dt.promise):Tn=new Promise((Ri,Br)=>{Qt=Ri,At=Br});const hr=this.pendingTasks.add();return Kr(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(hr))}),this.navigationTransitions.handleNavigationRequest({source:x,restoredState:J,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:C,extras:ve,resolve:Qt,reject:At,promise:Tn,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),Tn.catch(Ri=>Promise.reject(Ri))}}return(I=T).\u0275fac=function(C){return new(C||I)},I.\u0275prov=d.jDH({token:I,factory:I.\u0275fac,providedIn:"root"}),T})(),Uo=(()=>{var I;class T{constructor(C,x,J,ve,dt,Qt){var At;this.router=C,this.route=x,this.tabIndexAttribute=J,this.renderer=ve,this.el=dt,this.locationStrategy=Qt,this.href=null,this.commands=null,this.onChanges=new Tt.B,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;const Tn=null===(At=dt.nativeElement.tagName)||void 0===At?void 0:At.toLowerCase();this.isAnchorElement="a"===Tn||"area"===Tn,this.isAnchorElement?this.subscription=C.events.subscribe(hr=>{hr instanceof Si&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(C){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",C)}ngOnChanges(C){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(C){null!=C?(this.commands=Array.isArray(C)?C:[C],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(C,x,J,ve,dt){const Qt=this.urlTree;return!!(null===Qt||this.isAnchorElement&&(0!==C||x||J||ve||dt||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(Qt,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info}),!this.isAnchorElement)}ngOnDestroy(){var C;null===(C=this.subscription)||void 0===C||C.unsubscribe()}updateHref(){var C;const x=this.urlTree;this.href=null!==x&&this.locationStrategy?null===(C=this.locationStrategy)||void 0===C?void 0:C.prepareExternalUrl(this.router.serializeUrl(x)):null;const J=null===this.href?null:(0,d.n$t)(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",J)}applyAttributeValue(C,x){const J=this.renderer,ve=this.el.nativeElement;null!==x?J.setAttribute(ve,C,x):J.removeAttribute(ve,C)}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}}return(I=T).\u0275fac=function(C){return new(C||I)(d.rXU(Fi),d.rXU(ne),d.kS0("tabindex"),d.rXU(d.sFG),d.rXU(d.aKT),d.rXU(Vt.hb))},I.\u0275dir=d.FsC({type:I,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(C,x){1&C&&d.bIt("click",function(ve){return x.onClick(ve.button,ve.ctrlKey,ve.shiftKey,ve.altKey,ve.metaKey)}),2&C&&d.BMQ("target",x.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[d.Mj6.HasDecoratorInputTransform,"preserveFragment","preserveFragment",d.L39],skipLocationChange:[d.Mj6.HasDecoratorInputTransform,"skipLocationChange","skipLocationChange",d.L39],replaceUrl:[d.Mj6.HasDecoratorInputTransform,"replaceUrl","replaceUrl",d.L39],routerLink:"routerLink"},standalone:!0,features:[d.GFd,d.OA$]}),T})();class gc{}let Ua=(()=>{var I;class T{preload(C,x){return x().pipe(me(()=>(0,re.of)(null)))}}return(I=T).\u0275fac=function(C){return new(C||I)},I.\u0275prov=d.jDH({token:I,factory:I.\u0275fac,providedIn:"root"}),T})(),va=(()=>{var I;class T{constructor(C,x,J,ve,dt){this.router=C,this.injector=J,this.preloadingStrategy=ve,this.loader=dt}setUpPreloading(){this.subscription=this.router.events.pipe((0,pt.p)(C=>C instanceof Si),de(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(C,x){const J=[];for(const At of x){var ve,dt;At.providers&&!At._injector&&(At._injector=(0,d.Ol2)(At.providers,C,`Route: ${At.path}`));const Tn=null!==(ve=At._injector)&&void 0!==ve?ve:C,hr=null!==(dt=At._loadedInjector)&&void 0!==dt?dt:Tn;var Qt;(At.loadChildren&&!At._loadedRoutes&&void 0===At.canLoad||At.loadComponent&&!At._loadedComponent)&&J.push(this.preloadConfig(Tn,At)),(At.children||At._loadedRoutes)&&J.push(this.processRoutes(hr,null!==(Qt=At.children)&&void 0!==Qt?Qt:At._loadedRoutes))}return(0,Ee.H)(J).pipe(Le())}preloadConfig(C,x){return this.preloadingStrategy.preload(x,()=>{let J;J=x.loadChildren&&void 0===x.canLoad?this.loader.loadChildren(C,x):(0,re.of)(null);const ve=J.pipe((0,Fe.Z)(dt=>{var Qt;return null===dt?(0,re.of)(void 0):(x._loadedRoutes=dt.routes,x._loadedInjector=dt.injector,this.processRoutes(null!==(Qt=dt.injector)&&void 0!==Qt?Qt:C,dt.routes))}));if(x.loadComponent&&!x._loadedComponent){const dt=this.loader.loadComponent(x);return(0,Ee.H)([ve,dt]).pipe(Le())}return ve})}}return(I=T).\u0275fac=function(C){return new(C||I)(d.KVO(Fi),d.KVO(d.Ql9),d.KVO(d.uvJ),d.KVO(gc),d.KVO(D))},I.\u0275prov=d.jDH({token:I,factory:I.\u0275fac,providedIn:"root"}),T})();const es=new d.nKC("");let wo=(()=>{var I;class T{constructor(C,x,J,ve,dt={}){this.urlSerializer=C,this.transitions=x,this.viewportScroller=J,this.zone=ve,this.options=dt,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},this.environmentInjector=(0,d.WQX)(d.uvJ),dt.scrollPositionRestoration||(dt.scrollPositionRestoration="disabled"),dt.anchorScrolling||(dt.anchorScrolling="disabled")}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(C=>{C instanceof mi?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=C.navigationTrigger,this.restoredId=C.restoredState?C.restoredState.navigationId:0):C instanceof Si?(this.lastId=C.id,this.scheduleScrollEvent(C,this.urlSerializer.parse(C.urlAfterRedirects).fragment)):C instanceof Nn&&C.code===mr.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(C,this.urlSerializer.parse(C.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(C=>{C instanceof Ao&&(C.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(C.position):C.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(C.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(C,x){var J=this;this.zone.runOutsideAngular((0,g.A)(function*(){yield new Promise(ve=>{setTimeout(()=>{ve()}),(0,d.mal)(()=>{ve()},{injector:J.environmentInjector})}),J.zone.run(()=>{J.transitions.events.next(new Ao(C,"popstate"===J.lastSource?J.store[J.restoredId]:null,x))})}))}ngOnDestroy(){var C,x;null===(C=this.routerEventsSubscription)||void 0===C||C.unsubscribe(),null===(x=this.scrollEventsSubscription)||void 0===x||x.unsubscribe()}}return(I=T).\u0275fac=function(C){d.QTQ()},I.\u0275prov=d.jDH({token:I,factory:I.\u0275fac}),T})();function Lr(I,T){return{\u0275kind:I,\u0275providers:T}}function No(){const I=(0,d.WQX)(d.zZn);return T=>{var R,C;const x=I.get(d.o8S);if(T!==x.components[0])return;const J=I.get(Fi),ve=I.get($o);1===I.get(ya)&&J.initialNavigation(),null===(R=I.get(Ur,null,d.$GK.Optional))||void 0===R||R.setUpPreloading(),null===(C=I.get(es,null,d.$GK.Optional))||void 0===C||C.init(),J.resetRootComponentType(x.componentTypes[0]),ve.closed||(ve.next(),ve.complete(),ve.unsubscribe())}}const $o=new d.nKC("",{factory:()=>new Tt.B}),ya=new d.nKC("",{providedIn:"root",factory:()=>1}),Ur=new d.nKC("");function _o(I){return Lr(0,[{provide:Ur,useExisting:va},{provide:gc,useExisting:I}])}function Hl(I){return Lr(9,[{provide:Ft,useValue:Un},{provide:an,useValue:{skipNextTransition:!(null==I||!I.skipInitialTransition),...I}}])}const Ru=new d.nKC("ROUTER_FORROOT_GUARD"),Ea=[Vt.aZ,{provide:Qr,useClass:Yr},Fi,S,{provide:ne,useFactory:function jl(I){return I.routerState.root},deps:[Fi]},D,[]];let Mu=(()=>{var I;class T{constructor(C){}static forRoot(C,x){return{ngModule:T,providers:[Ea,[],{provide:Es,multi:!0,useValue:C},{provide:Ru,useFactory:mc,deps:[[Fi,new d.Xx1,new d.kdw]]},{provide:Hs,useValue:x||{}},null!=x&&x.useHash?{provide:Vt.hb,useClass:Vt.fw}:{provide:Vt.hb,useClass:Vt.Sm},{provide:es,useFactory:()=>{const I=(0,d.WQX)(Vt.Xr),T=(0,d.WQX)(d.SKi),R=(0,d.WQX)(Hs),C=(0,d.WQX)(Fr),x=(0,d.WQX)(Qr);return R.scrollOffset&&I.setOffset(R.scrollOffset),new wo(x,C,I,T,R)}},null!=x&&x.preloadingStrategy?_o(x.preloadingStrategy).\u0275providers:[],null!=x&&x.initialNavigation?qs(x):[],null!=x&&x.bindToComponentInputs?Lr(8,[In,{provide:Ln,useExisting:In}]).\u0275providers:[],null!=x&&x.enableViewTransitions?Hl().\u0275providers:[],[{provide:Xs,useFactory:No},{provide:d.iLQ,multi:!0,useExisting:Xs}]]}}static forChild(C){return{ngModule:T,providers:[{provide:Es,multi:!0,useValue:C}]}}}return(I=T).\u0275fac=function(C){return new(C||I)(d.KVO(Ru,8))},I.\u0275mod=d.$C({type:I}),I.\u0275inj=d.G2t({}),T})();function mc(I){return"guarded"}function qs(I){return["disabled"===I.initialNavigation?Lr(3,[{provide:d.hnV,multi:!0,useFactory:()=>{const T=(0,d.WQX)(Fi);return()=>{T.setUpLocationChangeListener()}}},{provide:ya,useValue:2}]).\u0275providers:[],"enabledBlocking"===I.initialNavigation?Lr(2,[{provide:ya,useValue:0},{provide:d.hnV,multi:!0,deps:[d.zZn],useFactory:T=>{const R=T.get(Vt.hj,Promise.resolve());return()=>R.then(()=>new Promise(C=>{const x=T.get(Fi),J=T.get($o);Kr(x,()=>{C(!0)}),T.get(Fr).afterPreactivation=()=>(C(!0),J.closed?(0,re.of)(void 0):J),x.initialNavigation()}))}}]).\u0275providers:[]]}const Xs=new d.nKC("")},7852:(En,bt,B)=>{"use strict";B.d(bt,{MF:()=>Qr,j6:()=>_r,xZ:()=>Zn,om:()=>Mr,Sx:()=>He,Dk:()=>ct,Wp:()=>Yr,KO:()=>he});var g=B(467),d=B(1362),ge=B(8041),Oe=B(1076);const X=(St,lt)=>lt.some(Ut=>St instanceof Ut);let Ee,re;const De=new WeakMap,ye=new WeakMap,Fe=new WeakMap,$e=new WeakMap,Le=new WeakMap;let ut={get(St,lt,Ut){if(St instanceof IDBTransaction){if("done"===lt)return ye.get(St);if("objectStoreNames"===lt)return St.objectStoreNames||Fe.get(St);if("store"===lt)return Ut.objectStoreNames[1]?void 0:Ut.objectStore(Ut.objectStoreNames[0])}return vt(St[lt])},set:(St,lt,Ut)=>(St[lt]=Ut,!0),has:(St,lt)=>St instanceof IDBTransaction&&("done"===lt||"store"===lt)||lt in St};function mt(St){return"function"==typeof St?function Mt(St){return St!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?function Je(){return re||(re=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}().includes(St)?function(...lt){return St.apply(Me(this),lt),vt(De.get(this))}:function(...lt){return vt(St.apply(Me(this),lt))}:function(lt,...Ut){const fn=St.call(Me(this),lt,...Ut);return Fe.set(fn,lt.sort?lt.sort():[lt]),vt(fn)}}(St):(St instanceof IDBTransaction&&function ft(St){if(ye.has(St))return;const lt=new Promise((Ut,fn)=>{const Kn=()=>{St.removeEventListener("complete",Y),St.removeEventListener("error",Z),St.removeEventListener("abort",Z)},Y=()=>{Ut(),Kn()},Z=()=>{fn(St.error||new DOMException("AbortError","AbortError")),Kn()};St.addEventListener("complete",Y),St.addEventListener("error",Z),St.addEventListener("abort",Z)});ye.set(St,lt)}(St),X(St,function Ze(){return Ee||(Ee=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}())?new Proxy(St,ut):St)}function vt(St){if(St instanceof IDBRequest)return function Qe(St){const lt=new Promise((Ut,fn)=>{const Kn=()=>{St.removeEventListener("success",Y),St.removeEventListener("error",Z)},Y=()=>{Ut(vt(St.result)),Kn()},Z=()=>{fn(St.error),Kn()};St.addEventListener("success",Y),St.addEventListener("error",Z)});return lt.then(Ut=>{Ut instanceof IDBCursor&&De.set(Ut,St)}).catch(()=>{}),Le.set(lt,St),lt}(St);if($e.has(St))return $e.get(St);const lt=mt(St);return lt!==St&&($e.set(St,lt),Le.set(lt,St)),lt}const Me=St=>Le.get(St),Ct=["get","getKey","getAll","getAllKeys","count"],xt=["put","add","delete","clear"],ze=new Map;function Tt(St,lt){if(!(St instanceof IDBDatabase)||lt in St||"string"!=typeof lt)return;if(ze.get(lt))return ze.get(lt);const Ut=lt.replace(/FromIndex$/,""),fn=lt!==Ut,Kn=xt.includes(Ut);if(!(Ut in(fn?IDBIndex:IDBObjectStore).prototype)||!Kn&&!Ct.includes(Ut))return;const Y=function(){var Z=(0,g.A)(function*(Ne,...Q){const Se=this.transaction(Ne,Kn?"readwrite":"readonly");let it=Se.store;return fn&&(it=it.index(Q.shift())),(yield Promise.all([it[Ut](...Q),Kn&&Se.done]))[0]});return function(Q){return Z.apply(this,arguments)}}();return ze.set(lt,Y),Y}!function st(St){ut=St(ut)}(St=>({...St,get:(lt,Ut,fn)=>Tt(lt,Ut)||St.get(lt,Ut,fn),has:(lt,Ut)=>!!Tt(lt,Ut)||St.has(lt,Ut)}));class Vt{constructor(lt){this.container=lt}getPlatformInfoString(){return this.container.getProviders().map(Ut=>{if(function Zt(St){const lt=St.getComponent();return"VERSION"===(null==lt?void 0:lt.type)}(Ut)){const fn=Ut.getImmediate();return`${fn.library}/${fn.version}`}return null}).filter(Ut=>Ut).join(" ")}}const Dt="@firebase/app",rn=new ge.Vy("@firebase/app"),gn="[DEFAULT]",mn={[Dt]:"fire-core","@firebase/app-compat":"fire-core-compat","@firebase/analytics":"fire-analytics","@firebase/analytics-compat":"fire-analytics-compat","@firebase/app-check":"fire-app-check","@firebase/app-check-compat":"fire-app-check-compat","@firebase/auth":"fire-auth","@firebase/auth-compat":"fire-auth-compat","@firebase/database":"fire-rtdb","@firebase/database-compat":"fire-rtdb-compat","@firebase/functions":"fire-fn","@firebase/functions-compat":"fire-fn-compat","@firebase/installations":"fire-iid","@firebase/installations-compat":"fire-iid-compat","@firebase/messaging":"fire-fcm","@firebase/messaging-compat":"fire-fcm-compat","@firebase/performance":"fire-perf","@firebase/performance-compat":"fire-perf-compat","@firebase/remote-config":"fire-rc","@firebase/remote-config-compat":"fire-rc-compat","@firebase/storage":"fire-gcs","@firebase/storage-compat":"fire-gcs-compat","@firebase/firestore":"fire-fst","@firebase/firestore-compat":"fire-fst-compat","@firebase/vertexai-preview":"fire-vertex","fire-js":"fire-js",firebase:"fire-js-all"},Jt=new Map,Gt=new Map,pr=new Map;function wr(St,lt){try{St.container.addComponent(lt)}catch(Ut){rn.debug(`Component ${lt.name} failed to register with FirebaseApp ${St.name}`,Ut)}}function Mr(St){const lt=St.name;if(pr.has(lt))return rn.debug(`There were multiple attempts to register component ${lt}.`),!1;pr.set(lt,St);for(const Ut of Jt.values())wr(Ut,St);for(const Ut of Gt.values())wr(Ut,St);return!0}function _r(St,lt){const Ut=St.container.getProvider("heartbeat").getImmediate({optional:!0});return Ut&&Ut.triggerHeartbeat(),St.container.getProvider(lt)}function Zn(St){return void 0!==St.settings}const tr=new Oe.FA("app","Firebase",{"no-app":"No Firebase App '{$appName}' has been created - call initializeApp() first","bad-app-name":"Illegal App name: '{$appName}'","duplicate-app":"Firebase App named '{$appName}' already exists with different options or config","app-deleted":"Firebase App named '{$appName}' already deleted","server-app-deleted":"Firebase Server App has been deleted","no-options":"Need to provide options, when not being deployed to hosting via source.","invalid-app-argument":"firebase.{$appName}() takes either no argument or a Firebase App instance.","invalid-log-argument":"First argument to `onLog` must be null or a function.","idb-open":"Error thrown when opening IndexedDB. Original error: {$originalErrorMessage}.","idb-get":"Error thrown when reading from IndexedDB. Original error: {$originalErrorMessage}.","idb-set":"Error thrown when writing to IndexedDB. Original error: {$originalErrorMessage}.","idb-delete":"Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}.","finalization-registry-not-supported":"FirebaseServerApp deleteOnDeref field defined but the JS runtime does not support FinalizationRegistry.","invalid-server-app-environment":"FirebaseServerApp is not for use in browser environments."});class Er{constructor(lt,Ut,fn){this._isDeleted=!1,this._options=Object.assign({},lt),this._config=Object.assign({},Ut),this._name=Ut.name,this._automaticDataCollectionEnabled=Ut.automaticDataCollectionEnabled,this._container=fn,this.container.addComponent(new d.uA("app",()=>this,"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(lt){this.checkDestroyed(),this._automaticDataCollectionEnabled=lt}get name(){return this.checkDestroyed(),this._name}get options(){return this.checkDestroyed(),this._options}get config(){return this.checkDestroyed(),this._config}get container(){return this._container}get isDeleted(){return this._isDeleted}set isDeleted(lt){this._isDeleted=lt}checkDestroyed(){if(this.isDeleted)throw tr.create("app-deleted",{appName:this._name})}}const Qr="10.12.2";function Yr(St,lt={}){let Ut=St;"object"!=typeof lt&&(lt={name:lt});const fn=Object.assign({name:gn,automaticDataCollectionEnabled:!1},lt),Kn=fn.name;if("string"!=typeof Kn||!Kn)throw tr.create("bad-app-name",{appName:String(Kn)});if(Ut||(Ut=(0,Oe.T9)()),!Ut)throw tr.create("no-options");const Y=Jt.get(Kn);if(Y){if((0,Oe.bD)(Ut,Y.options)&&(0,Oe.bD)(fn,Y.config))return Y;throw tr.create("duplicate-app",{appName:Kn})}const Z=new d.h1(Kn);for(const Q of pr.values())Z.addComponent(Q);const Ne=new Er(Ut,fn,Z);return Jt.set(Kn,Ne),Ne}function He(St=gn){const lt=Jt.get(St);if(!lt&&St===gn&&(0,Oe.T9)())return Yr();if(!lt)throw tr.create("no-app",{appName:St});return lt}function ct(){return Array.from(Jt.values())}function he(St,lt,Ut){var fn;let Kn=null!==(fn=mn[St])&&void 0!==fn?fn:St;Ut&&(Kn+=`-${Ut}`);const Y=Kn.match(/\s|\//),Z=lt.match(/\s|\//);if(Y||Z){const Ne=[`Unable to register library "${Kn}" with version "${lt}":`];return Y&&Ne.push(`library name "${Kn}" contains illegal characters (whitespace or "/")`),Y&&Z&&Ne.push("and"),Z&&Ne.push(`version name "${lt}" contains illegal characters (whitespace or "/")`),void rn.warn(Ne.join(" "))}Mr(new d.uA(`${Kn}-version`,()=>({library:Kn,version:lt}),"VERSION"))}const rt="firebase-heartbeat-database",dn=1,Sn="firebase-heartbeat-store";let Wn=null;function gr(){return Wn||(Wn=function je(St,lt,{blocked:Ut,upgrade:fn,blocking:Kn,terminated:Y}={}){const Z=indexedDB.open(St,lt),Ne=vt(Z);return fn&&Z.addEventListener("upgradeneeded",Q=>{fn(vt(Z.result),Q.oldVersion,Q.newVersion,vt(Z.transaction),Q)}),Ut&&Z.addEventListener("blocked",Q=>Ut(Q.oldVersion,Q.newVersion,Q)),Ne.then(Q=>{Y&&Q.addEventListener("close",()=>Y()),Kn&&Q.addEventListener("versionchange",Se=>Kn(Se.oldVersion,Se.newVersion,Se))}).catch(()=>{}),Ne}(rt,dn,{upgrade:(St,lt)=>{if(0===lt)try{St.createObjectStore(Sn)}catch(Ut){console.warn(Ut)}}}).catch(St=>{throw tr.create("idb-open",{originalErrorMessage:St.message})})),Wn}function ri(){return(ri=(0,g.A)(function*(St){try{const Ut=(yield gr()).transaction(Sn),fn=yield Ut.objectStore(Sn).get(yr(St));return yield Ut.done,fn}catch(lt){if(lt instanceof Oe.g)rn.warn(lt.message);else{const Ut=tr.create("idb-get",{originalErrorMessage:null==lt?void 0:lt.message});rn.warn(Ut.message)}}})).apply(this,arguments)}function xn(St,lt){return Rn.apply(this,arguments)}function Rn(){return(Rn=(0,g.A)(function*(St,lt){try{const fn=(yield gr()).transaction(Sn,"readwrite");yield fn.objectStore(Sn).put(lt,yr(St)),yield fn.done}catch(Ut){if(Ut instanceof Oe.g)rn.warn(Ut.message);else{const fn=tr.create("idb-set",{originalErrorMessage:null==Ut?void 0:Ut.message});rn.warn(fn.message)}}})).apply(this,arguments)}function yr(St){return`${St.name}!${St.options.appId}`}class pi{constructor(lt){this.container=lt,this._heartbeatsCache=null;const Ut=this.container.getProvider("app").getImmediate();this._storage=new Hi(Ut),this._heartbeatsCachePromise=this._storage.read().then(fn=>(this._heartbeatsCache=fn,fn))}triggerHeartbeat(){var lt=this;return(0,g.A)(function*(){var Ut,fn;const Y=lt.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),Z=Ui();if((null!=(null===(Ut=lt._heartbeatsCache)||void 0===Ut?void 0:Ut.heartbeats)||(lt._heartbeatsCache=yield lt._heartbeatsCachePromise,null!=(null===(fn=lt._heartbeatsCache)||void 0===fn?void 0:fn.heartbeats)))&<._heartbeatsCache.lastSentHeartbeatDate!==Z&&!lt._heartbeatsCache.heartbeats.some(Ne=>Ne.date===Z))return lt._heartbeatsCache.heartbeats.push({date:Z,agent:Y}),lt._heartbeatsCache.heartbeats=lt._heartbeatsCache.heartbeats.filter(Ne=>{const Q=new Date(Ne.date).valueOf();return Date.now()-Q<=2592e6}),lt._storage.overwrite(lt._heartbeatsCache)})()}getHeartbeatsHeader(){var lt=this;return(0,g.A)(function*(){var Ut;if(null===lt._heartbeatsCache&&(yield lt._heartbeatsCachePromise),null==(null===(Ut=lt._heartbeatsCache)||void 0===Ut?void 0:Ut.heartbeats)||0===lt._heartbeatsCache.heartbeats.length)return"";const fn=Ui(),{heartbeatsToSend:Kn,unsentEntries:Y}=function or(St,lt=1024){const Ut=[];let fn=St.slice();for(const Kn of St){const Y=Ut.find(Z=>Z.agent===Kn.agent);if(Y){if(Y.dates.push(Kn.date),wi(Ut)>lt){Y.dates.pop();break}}else if(Ut.push({agent:Kn.agent,dates:[Kn.date]}),wi(Ut)>lt){Ut.pop();break}fn=fn.slice(1)}return{heartbeatsToSend:Ut,unsentEntries:fn}}(lt._heartbeatsCache.heartbeats),Z=(0,Oe.Uj)(JSON.stringify({version:2,heartbeats:Kn}));return lt._heartbeatsCache.lastSentHeartbeatDate=fn,Y.length>0?(lt._heartbeatsCache.heartbeats=Y,yield lt._storage.overwrite(lt._heartbeatsCache)):(lt._heartbeatsCache.heartbeats=[],lt._storage.overwrite(lt._heartbeatsCache)),Z})()}}function Ui(){return(new Date).toISOString().substring(0,10)}class Hi{constructor(lt){this.app=lt,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}runIndexedDBEnvironmentCheck(){return(0,g.A)(function*(){return!!(0,Oe.zW)()&&(0,Oe.eX)().then(()=>!0).catch(()=>!1)})()}read(){var lt=this;return(0,g.A)(function*(){if(yield lt._canUseIndexedDBPromise){const fn=yield function ur(St){return ri.apply(this,arguments)}(lt.app);return null!=fn&&fn.heartbeats?fn:{heartbeats:[]}}return{heartbeats:[]}})()}overwrite(lt){var Ut=this;return(0,g.A)(function*(){var fn;if(yield Ut._canUseIndexedDBPromise){const Y=yield Ut.read();return xn(Ut.app,{lastSentHeartbeatDate:null!==(fn=lt.lastSentHeartbeatDate)&&void 0!==fn?fn:Y.lastSentHeartbeatDate,heartbeats:lt.heartbeats})}})()}add(lt){var Ut=this;return(0,g.A)(function*(){var fn;if(yield Ut._canUseIndexedDBPromise){const Y=yield Ut.read();return xn(Ut.app,{lastSentHeartbeatDate:null!==(fn=lt.lastSentHeartbeatDate)&&void 0!==fn?fn:Y.lastSentHeartbeatDate,heartbeats:[...Y.heartbeats,...lt.heartbeats]})}})()}}function wi(St){return(0,Oe.Uj)(JSON.stringify({version:2,heartbeats:St})).length}!function gi(St){Mr(new d.uA("platform-logger",lt=>new Vt(lt),"PRIVATE")),Mr(new d.uA("heartbeat",lt=>new pi(lt),"PRIVATE")),he(Dt,"0.10.5",St),he(Dt,"0.10.5","esm2017"),he("fire-js","")}("")},1362:(En,bt,B)=>{"use strict";B.d(bt,{h1:()=>Ze,uA:()=>ge});var g=B(467),d=B(1076);class ge{constructor(De,ye,Fe){this.name=De,this.instanceFactory=ye,this.type=Fe,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(De){return this.instantiationMode=De,this}setMultipleInstances(De){return this.multipleInstances=De,this}setServiceProps(De){return this.serviceProps=De,this}setInstanceCreatedCallback(De){return this.onInstanceCreated=De,this}}const Oe="[DEFAULT]";class X{constructor(De,ye){this.name=De,this.container=ye,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(De){const ye=this.normalizeInstanceIdentifier(De);if(!this.instancesDeferred.has(ye)){const Fe=new d.cY;if(this.instancesDeferred.set(ye,Fe),this.isInitialized(ye)||this.shouldAutoInitialize())try{const $e=this.getOrInitializeService({instanceIdentifier:ye});$e&&Fe.resolve($e)}catch{}}return this.instancesDeferred.get(ye).promise}getImmediate(De){var ye;const Fe=this.normalizeInstanceIdentifier(null==De?void 0:De.identifier),$e=null!==(ye=null==De?void 0:De.optional)&&void 0!==ye&&ye;if(!this.isInitialized(Fe)&&!this.shouldAutoInitialize()){if($e)return null;throw Error(`Service ${this.name} is not available`)}try{return this.getOrInitializeService({instanceIdentifier:Fe})}catch(Le){if($e)return null;throw Le}}getComponent(){return this.component}setComponent(De){if(De.name!==this.name)throw Error(`Mismatching Component ${De.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=De,this.shouldAutoInitialize()){if(function re(Je){return"EAGER"===Je.instantiationMode}(De))try{this.getOrInitializeService({instanceIdentifier:Oe})}catch{}for(const[ye,Fe]of this.instancesDeferred.entries()){const $e=this.normalizeInstanceIdentifier(ye);try{const Le=this.getOrInitializeService({instanceIdentifier:$e});Fe.resolve(Le)}catch{}}}}clearInstance(De=Oe){this.instancesDeferred.delete(De),this.instancesOptions.delete(De),this.instances.delete(De)}delete(){var De=this;return(0,g.A)(function*(){const ye=Array.from(De.instances.values());yield Promise.all([...ye.filter(Fe=>"INTERNAL"in Fe).map(Fe=>Fe.INTERNAL.delete()),...ye.filter(Fe=>"_delete"in Fe).map(Fe=>Fe._delete())])})()}isComponentSet(){return null!=this.component}isInitialized(De=Oe){return this.instances.has(De)}getOptions(De=Oe){return this.instancesOptions.get(De)||{}}initialize(De={}){const{options:ye={}}=De,Fe=this.normalizeInstanceIdentifier(De.instanceIdentifier);if(this.isInitialized(Fe))throw Error(`${this.name}(${Fe}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);const $e=this.getOrInitializeService({instanceIdentifier:Fe,options:ye});for(const[Le,Qe]of this.instancesDeferred.entries())Fe===this.normalizeInstanceIdentifier(Le)&&Qe.resolve($e);return $e}onInit(De,ye){var Fe;const $e=this.normalizeInstanceIdentifier(ye),Le=null!==(Fe=this.onInitCallbacks.get($e))&&void 0!==Fe?Fe:new Set;Le.add(De),this.onInitCallbacks.set($e,Le);const Qe=this.instances.get($e);return Qe&&De(Qe,$e),()=>{Le.delete(De)}}invokeOnInitCallbacks(De,ye){const Fe=this.onInitCallbacks.get(ye);if(Fe)for(const $e of Fe)try{$e(De,ye)}catch{}}getOrInitializeService({instanceIdentifier:De,options:ye={}}){let Fe=this.instances.get(De);if(!Fe&&this.component&&(Fe=this.component.instanceFactory(this.container,{instanceIdentifier:(Je=De,Je===Oe?void 0:Je),options:ye}),this.instances.set(De,Fe),this.instancesOptions.set(De,ye),this.invokeOnInitCallbacks(Fe,De),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,De,Fe)}catch{}var Je;return Fe||null}normalizeInstanceIdentifier(De=Oe){return this.component?this.component.multipleInstances?De:Oe:De}shouldAutoInitialize(){return!!this.component&&"EXPLICIT"!==this.component.instantiationMode}}class Ze{constructor(De){this.name=De,this.providers=new Map}addComponent(De){const ye=this.getProvider(De.name);if(ye.isComponentSet())throw new Error(`Component ${De.name} has already been registered with ${this.name}`);ye.setComponent(De)}addOrOverwriteComponent(De){this.getProvider(De.name).isComponentSet()&&this.providers.delete(De.name),this.addComponent(De)}getProvider(De){if(this.providers.has(De))return this.providers.get(De);const ye=new X(De,this);return this.providers.set(De,ye),ye}getProviders(){return Array.from(this.providers.values())}}},8041:(En,bt,B)=>{"use strict";B.d(bt,{$b:()=>d,Vy:()=>re});const g=[];var d=function(De){return De[De.DEBUG=0]="DEBUG",De[De.VERBOSE=1]="VERBOSE",De[De.INFO=2]="INFO",De[De.WARN=3]="WARN",De[De.ERROR=4]="ERROR",De[De.SILENT=5]="SILENT",De}(d||{});const ge={debug:d.DEBUG,verbose:d.VERBOSE,info:d.INFO,warn:d.WARN,error:d.ERROR,silent:d.SILENT},Oe=d.INFO,X={[d.DEBUG]:"log",[d.VERBOSE]:"log",[d.INFO]:"info",[d.WARN]:"warn",[d.ERROR]:"error"},Ee=(De,ye,...Fe)=>{if(ye{"use strict";B.d(bt,{Yq:()=>en,TS:()=>Ve,sR:()=>yt,el:()=>Rn,Sb:()=>Er,QE:()=>Ui,CF:()=>wn,Rg:()=>dn,p4:()=>or,jM:()=>fn,_t:()=>kt,q9:()=>er,Kb:()=>Kn,CE:()=>yr,pF:()=>Ei,fL:()=>wi,YV:()=>ur,er:()=>Hi,z3:()=>gi});var g=B(467),d=B(9842),ge=B(4438),Oe=B(845),X=B(177),Ee=B(5531),re=B(4442);var Vt=B(1413),Zt=B(3726),Dt=B(4412),Be=B(4572),rn=B(7673),pt=B(1635),_e=B(5964),j=B(5558),W=B(3669),te=B(9974),de=B(4360);function me(Y,Z){return Y===Z}var Ce=B(4341);const at=["tabsInner"];class kt{constructor(Z){(0,d.A)(this,"menuController",void 0),this.menuController=Z}open(Z){return this.menuController.open(Z)}close(Z){return this.menuController.close(Z)}toggle(Z){return this.menuController.toggle(Z)}enable(Z,Ne){return this.menuController.enable(Z,Ne)}swipeGesture(Z,Ne){return this.menuController.swipeGesture(Z,Ne)}isOpen(Z){return this.menuController.isOpen(Z)}isEnabled(Z){return this.menuController.isEnabled(Z)}get(Z){return this.menuController.get(Z)}getOpen(){return this.menuController.getOpen()}getMenus(){return this.menuController.getMenus()}registerAnimation(Z,Ne){return this.menuController.registerAnimation(Z,Ne)}isAnimating(){return this.menuController.isAnimating()}_getOpenSync(){return this.menuController._getOpenSync()}_createAnimation(Z,Ne){return this.menuController._createAnimation(Z,Ne)}_register(Z){return this.menuController._register(Z)}_unregister(Z){return this.menuController._unregister(Z)}_setOpen(Z,Ne,Q){return this.menuController._setOpen(Z,Ne,Q)}}let bn=(()=>{var Y;class Z{constructor(Q,Se){(0,d.A)(this,"doc",void 0),(0,d.A)(this,"_readyPromise",void 0),(0,d.A)(this,"win",void 0),(0,d.A)(this,"backButton",new Vt.B),(0,d.A)(this,"keyboardDidShow",new Vt.B),(0,d.A)(this,"keyboardDidHide",new Vt.B),(0,d.A)(this,"pause",new Vt.B),(0,d.A)(this,"resume",new Vt.B),(0,d.A)(this,"resize",new Vt.B),this.doc=Q,Se.run(()=>{var it;let Wt;this.win=Q.defaultView,this.backButton.subscribeWithPriority=function(cn,Pn){return this.subscribe(Cr=>Cr.register(cn,Hn=>Se.run(()=>Pn(Hn))))},qn(this.pause,Q,"pause",Se),qn(this.resume,Q,"resume",Se),qn(this.backButton,Q,"ionBackButton",Se),qn(this.resize,this.win,"resize",Se),qn(this.keyboardDidShow,this.win,"ionKeyboardDidShow",Se),qn(this.keyboardDidHide,this.win,"ionKeyboardDidHide",Se),this._readyPromise=new Promise(cn=>{Wt=cn}),null!==(it=this.win)&&void 0!==it&&it.cordova?Q.addEventListener("deviceready",()=>{Wt("cordova")},{once:!0}):Wt("dom")})}is(Q){return(0,Ee.a)(this.win,Q)}platforms(){return(0,Ee.g)(this.win)}ready(){return this._readyPromise}get isRTL(){return"rtl"===this.doc.dir}getQueryParam(Q){return $n(this.win.location.href,Q)}isLandscape(){return!this.isPortrait()}isPortrait(){var Q,Se;return null===(Q=(Se=this.win).matchMedia)||void 0===Q?void 0:Q.call(Se,"(orientation: portrait)").matches}testUserAgent(Q){const Se=this.win.navigator;return!!(null!=Se&&Se.userAgent&&Se.userAgent.indexOf(Q)>=0)}url(){return this.win.location.href}width(){return this.win.innerWidth}height(){return this.win.innerHeight}}return Y=Z,(0,d.A)(Z,"\u0275fac",function(Q){return new(Q||Y)(ge.KVO(X.qQ),ge.KVO(ge.SKi))}),(0,d.A)(Z,"\u0275prov",ge.jDH({token:Y,factory:Y.\u0275fac,providedIn:"root"})),Z})();const $n=(Y,Z)=>{Z=Z.replace(/[[\]\\]/g,"\\$&");const Q=new RegExp("[\\?&]"+Z+"=([^&#]*)").exec(Y);return Q?decodeURIComponent(Q[1].replace(/\+/g," ")):null},qn=(Y,Z,Ne,Q)=>{Z&&Z.addEventListener(Ne,Se=>{Q.run(()=>{Y.next(null!=Se?Se.detail:void 0)})})};let er=(()=>{var Y;class Z{constructor(Q,Se,it,Wt){(0,d.A)(this,"location",void 0),(0,d.A)(this,"serializer",void 0),(0,d.A)(this,"router",void 0),(0,d.A)(this,"topOutlet",void 0),(0,d.A)(this,"direction",ir),(0,d.A)(this,"animated",Yn),(0,d.A)(this,"animationBuilder",void 0),(0,d.A)(this,"guessDirection","forward"),(0,d.A)(this,"guessAnimation",void 0),(0,d.A)(this,"lastNavId",-1),this.location=Se,this.serializer=it,this.router=Wt,Wt&&Wt.events.subscribe(cn=>{if(cn instanceof Oe.Z){const Pn=cn.restoredState?cn.restoredState.navigationId:cn.id;this.guessDirection=this.guessAnimation=Pn{this.pop(),cn()})}navigateForward(Q,Se={}){return this.setDirection("forward",Se.animated,Se.animationDirection,Se.animation),this.navigate(Q,Se)}navigateBack(Q,Se={}){return this.setDirection("back",Se.animated,Se.animationDirection,Se.animation),this.navigate(Q,Se)}navigateRoot(Q,Se={}){return this.setDirection("root",Se.animated,Se.animationDirection,Se.animation),this.navigate(Q,Se)}back(Q={animated:!0,animationDirection:"back"}){return this.setDirection("back",Q.animated,Q.animationDirection,Q.animation),this.location.back()}pop(){var Q=this;return(0,g.A)(function*(){let Se=Q.topOutlet;for(;Se;){if(yield Se.pop())return!0;Se=Se.parentOutlet}return!1})()}setDirection(Q,Se,it,Wt){this.direction=Q,this.animated=yn(Q,Se,it),this.animationBuilder=Wt}setTopOutlet(Q){this.topOutlet=Q}consumeTransition(){let Se,Q="root";const it=this.animationBuilder;return"auto"===this.direction?(Q=this.guessDirection,Se=this.guessAnimation):(Se=this.animated,Q=this.direction),this.direction=ir,this.animated=Yn,this.animationBuilder=void 0,{direction:Q,animation:Se,animationBuilder:it}}navigate(Q,Se){if(Array.isArray(Q))return this.router.navigate(Q,Se);{const it=this.serializer.parse(Q.toString());return void 0!==Se.queryParams&&(it.queryParams={...Se.queryParams}),void 0!==Se.fragment&&(it.fragment=Se.fragment),this.router.navigateByUrl(it,Se)}}}return Y=Z,(0,d.A)(Z,"\u0275fac",function(Q){return new(Q||Y)(ge.KVO(bn),ge.KVO(X.aZ),ge.KVO(Oe.Sd),ge.KVO(Oe.Ix,8))}),(0,d.A)(Z,"\u0275prov",ge.jDH({token:Y,factory:Y.\u0275fac,providedIn:"root"})),Z})();const yn=(Y,Z,Ne)=>{if(!1!==Z){if(void 0!==Ne)return Ne;if("forward"===Y||"back"===Y)return Y;if("root"===Y&&!0===Z)return"forward"}},ir="auto",Yn=void 0;let Ve=(()=>{var Y;class Z{get(Q,Se){const it=Ot();return it?it.get(Q,Se):null}getBoolean(Q,Se){const it=Ot();return!!it&&it.getBoolean(Q,Se)}getNumber(Q,Se){const it=Ot();return it?it.getNumber(Q,Se):0}}return Y=Z,(0,d.A)(Z,"\u0275fac",function(Q){return new(Q||Y)}),(0,d.A)(Z,"\u0275prov",ge.jDH({token:Y,factory:Y.\u0275fac,providedIn:"root"})),Z})();const yt=new ge.nKC("USERCONFIG"),Ot=()=>{if(typeof window<"u"){const Y=window.Ionic;if(null!=Y&&Y.config)return Y.config}return null};class Xt{constructor(Z={}){(0,d.A)(this,"data",void 0),this.data=Z,console.warn("[Ionic Warning]: NavParams has been deprecated in favor of using Angular's input API. Developers should migrate to either the @Input decorator or the Signals-based input API.")}get(Z){return this.data[Z]}}let en=(()=>{var Y;class Z{constructor(){(0,d.A)(this,"zone",(0,ge.WQX)(ge.SKi)),(0,d.A)(this,"applicationRef",(0,ge.WQX)(ge.o8S)),(0,d.A)(this,"config",(0,ge.WQX)(yt))}create(Q,Se,it){var Wt;return new Ir(Q,Se,this.applicationRef,this.zone,it,null!==(Wt=this.config.useSetInputAPI)&&void 0!==Wt&&Wt)}}return Y=Z,(0,d.A)(Z,"\u0275fac",function(Q){return new(Q||Y)}),(0,d.A)(Z,"\u0275prov",ge.jDH({token:Y,factory:Y.\u0275fac})),Z})();class Ir{constructor(Z,Ne,Q,Se,it,Wt){(0,d.A)(this,"environmentInjector",void 0),(0,d.A)(this,"injector",void 0),(0,d.A)(this,"applicationRef",void 0),(0,d.A)(this,"zone",void 0),(0,d.A)(this,"elementReferenceKey",void 0),(0,d.A)(this,"enableSignalsSupport",void 0),(0,d.A)(this,"elRefMap",new WeakMap),(0,d.A)(this,"elEventsMap",new WeakMap),this.environmentInjector=Z,this.injector=Ne,this.applicationRef=Q,this.zone=Se,this.elementReferenceKey=it,this.enableSignalsSupport=Wt}attachViewToDom(Z,Ne,Q,Se){return this.zone.run(()=>new Promise(it=>{const Wt={...Q};void 0!==this.elementReferenceKey&&(Wt[this.elementReferenceKey]=Z),it(gn(this.zone,this.environmentInjector,this.injector,this.applicationRef,this.elRefMap,this.elEventsMap,Z,Ne,Wt,Se,this.elementReferenceKey,this.enableSignalsSupport))}))}removeViewFromDom(Z,Ne){return this.zone.run(()=>new Promise(Q=>{const Se=this.elRefMap.get(Ne);if(Se){Se.destroy(),this.elRefMap.delete(Ne);const it=this.elEventsMap.get(Ne);it&&(it(),this.elEventsMap.delete(Ne))}Q()}))}}const gn=(Y,Z,Ne,Q,Se,it,Wt,cn,Pn,Cr,Hn,$i)=>{const Ai=ge.zZn.create({providers:pr(Pn),parent:Ne}),Pi=(0,ge.a0P)(cn,{environmentInjector:Z,elementInjector:Ai}),xr=Pi.instance,An=Pi.location.nativeElement;if(Pn)if(Hn&&void 0!==xr[Hn]&&console.error(`[Ionic Error]: ${Hn} is a reserved property when using ${Wt.tagName.toLowerCase()}. Rename or remove the "${Hn}" property from ${cn.name}.`),!0===$i&&void 0!==Pi.setInput){const{modal:mi,popover:Si,...ti}=Pn;for(const mr in ti)Pi.setInput(mr,ti[mr]);void 0!==mi&&Object.assign(xr,{modal:mi}),void 0!==Si&&Object.assign(xr,{popover:Si})}else Object.assign(xr,Pn);if(Cr)for(const mi of Cr)An.classList.add(mi);const xi=Jt(Y,xr,An);return Wt.appendChild(An),Q.attachView(Pi.hostView),Se.set(An,Pi),it.set(An,xi),An},mn=[re.L,re.a,re.b,re.c,re.d],Jt=(Y,Z,Ne)=>Y.run(()=>{const Q=mn.filter(Se=>"function"==typeof Z[Se]).map(Se=>{const it=Wt=>Z[Se](Wt.detail);return Ne.addEventListener(Se,it),()=>Ne.removeEventListener(Se,it)});return()=>Q.forEach(Se=>Se())}),Gt=new ge.nKC("NavParamsToken"),pr=Y=>[{provide:Gt,useValue:Y},{provide:Xt,useFactory:wr,deps:[Gt]}],wr=Y=>new Xt(Y),kr=(Y,Z)=>{const Ne=Y.prototype;Z.forEach(Q=>{Object.defineProperty(Ne,Q,{get(){return this.el[Q]},set(Se){this.z.runOutsideAngular(()=>this.el[Q]=Se)}})})},Mr=(Y,Z)=>{const Ne=Y.prototype;Z.forEach(Q=>{Ne[Q]=function(){const Se=arguments;return this.z.runOutsideAngular(()=>this.el[Q].apply(this.el,Se))}})},_r=(Y,Z,Ne)=>{Ne.forEach(Q=>Y[Q]=(0,Zt.R)(Z,Q))};function Bn(Y){return function(Ne){const{defineCustomElementFn:Q,inputs:Se,methods:it}=Y;return void 0!==Q&&Q(),Se&&kr(Ne,Se),it&&Mr(Ne,it),Ne}}const ni=["alignment","animated","arrow","keepContentsMounted","backdropDismiss","cssClass","dismissOnSelect","enterAnimation","event","isOpen","keyboardClose","leaveAnimation","mode","showBackdrop","translucent","trigger","triggerAction","reference","size","side"],Zn=["present","dismiss","onDidDismiss","onWillDismiss"];let wn=(()=>{var Y;let Z=((0,d.A)(Y=class{constructor(Q,Se,it){(0,d.A)(this,"z",void 0),(0,d.A)(this,"template",void 0),(0,d.A)(this,"isCmpOpen",!1),(0,d.A)(this,"el",void 0),this.z=it,this.el=Se.nativeElement,this.el.addEventListener("ionMount",()=>{this.isCmpOpen=!0,Q.detectChanges()}),this.el.addEventListener("didDismiss",()=>{this.isCmpOpen=!1,Q.detectChanges()}),_r(this,this.el,["ionPopoverDidPresent","ionPopoverWillPresent","ionPopoverWillDismiss","ionPopoverDidDismiss","didPresent","willPresent","willDismiss","didDismiss"])}},"\u0275fac",function(Q){return new(Q||Y)(ge.rXU(ge.gRc),ge.rXU(ge.aKT),ge.rXU(ge.SKi))}),(0,d.A)(Y,"\u0275dir",ge.FsC({type:Y,selectors:[["ion-popover"]],contentQueries:function(Q,Se,it){if(1&Q&&ge.wni(it,ge.C4Q,5),2&Q){let Wt;ge.mGM(Wt=ge.lsd())&&(Se.template=Wt.first)}},inputs:{alignment:"alignment",animated:"animated",arrow:"arrow",keepContentsMounted:"keepContentsMounted",backdropDismiss:"backdropDismiss",cssClass:"cssClass",dismissOnSelect:"dismissOnSelect",enterAnimation:"enterAnimation",event:"event",isOpen:"isOpen",keyboardClose:"keyboardClose",leaveAnimation:"leaveAnimation",mode:"mode",showBackdrop:"showBackdrop",translucent:"translucent",trigger:"trigger",triggerAction:"triggerAction",reference:"reference",size:"size",side:"side"}})),Y);return Z=(0,pt.Cg)([Bn({inputs:ni,methods:Zn})],Z),Z})();const Sr=["animated","keepContentsMounted","backdropBreakpoint","backdropDismiss","breakpoints","canDismiss","cssClass","enterAnimation","event","handle","handleBehavior","initialBreakpoint","isOpen","keyboardClose","leaveAnimation","mode","presentingElement","showBackdrop","translucent","trigger"],tr=["present","dismiss","onDidDismiss","onWillDismiss","setCurrentBreakpoint","getCurrentBreakpoint"];let Er=(()=>{var Y;let Z=((0,d.A)(Y=class{constructor(Q,Se,it){(0,d.A)(this,"z",void 0),(0,d.A)(this,"template",void 0),(0,d.A)(this,"isCmpOpen",!1),(0,d.A)(this,"el",void 0),this.z=it,this.el=Se.nativeElement,this.el.addEventListener("ionMount",()=>{this.isCmpOpen=!0,Q.detectChanges()}),this.el.addEventListener("didDismiss",()=>{this.isCmpOpen=!1,Q.detectChanges()}),_r(this,this.el,["ionModalDidPresent","ionModalWillPresent","ionModalWillDismiss","ionModalDidDismiss","ionBreakpointDidChange","didPresent","willPresent","willDismiss","didDismiss"])}},"\u0275fac",function(Q){return new(Q||Y)(ge.rXU(ge.gRc),ge.rXU(ge.aKT),ge.rXU(ge.SKi))}),(0,d.A)(Y,"\u0275dir",ge.FsC({type:Y,selectors:[["ion-modal"]],contentQueries:function(Q,Se,it){if(1&Q&&ge.wni(it,ge.C4Q,5),2&Q){let Wt;ge.mGM(Wt=ge.lsd())&&(Se.template=Wt.first)}},inputs:{animated:"animated",keepContentsMounted:"keepContentsMounted",backdropBreakpoint:"backdropBreakpoint",backdropDismiss:"backdropDismiss",breakpoints:"breakpoints",canDismiss:"canDismiss",cssClass:"cssClass",enterAnimation:"enterAnimation",event:"event",handle:"handle",handleBehavior:"handleBehavior",initialBreakpoint:"initialBreakpoint",isOpen:"isOpen",keyboardClose:"keyboardClose",leaveAnimation:"leaveAnimation",mode:"mode",presentingElement:"presentingElement",showBackdrop:"showBackdrop",translucent:"translucent",trigger:"trigger"}})),Y);return Z=(0,pt.Cg)([Bn({inputs:Sr,methods:tr})],Z),Z})();const Qr=(Y,Z)=>((Y=Y.filter(Ne=>Ne.stackId!==Z.stackId)).push(Z),Y),He=(Y,Z)=>{const Ne=Y.createUrlTree(["."],{relativeTo:Z});return Y.serializeUrl(Ne)},ct=(Y,Z)=>!Z||Y.stackId!==Z.stackId,Xe=(Y,Z)=>{if(!Y)return;const Ne=ie(Z);for(let Q=0;Q=Y.length)return Ne[Q];if(Ne[Q]!==Y[Q])return}},ie=Y=>Y.split("/").map(Z=>Z.trim()).filter(Z=>""!==Z),he=Y=>{Y&&(Y.ref.destroy(),Y.unlistenEvents())};class Pe{constructor(Z,Ne,Q,Se,it,Wt){(0,d.A)(this,"containerEl",void 0),(0,d.A)(this,"router",void 0),(0,d.A)(this,"navCtrl",void 0),(0,d.A)(this,"zone",void 0),(0,d.A)(this,"location",void 0),(0,d.A)(this,"views",[]),(0,d.A)(this,"runningTask",void 0),(0,d.A)(this,"skipTransition",!1),(0,d.A)(this,"tabsPrefix",void 0),(0,d.A)(this,"activeView",void 0),(0,d.A)(this,"nextId",0),this.containerEl=Ne,this.router=Q,this.navCtrl=Se,this.zone=it,this.location=Wt,this.tabsPrefix=void 0!==Z?ie(Z):void 0}createView(Z,Ne){var Q;const Se=He(this.router,Ne),it=null==Z||null===(Q=Z.location)||void 0===Q?void 0:Q.nativeElement,Wt=Jt(this.zone,Z.instance,it);return{id:this.nextId++,stackId:Xe(this.tabsPrefix,Se),unlistenEvents:Wt,element:it,ref:Z,url:Se}}getExistingView(Z){const Ne=He(this.router,Z),Q=this.views.find(Se=>Se.url===Ne);return Q&&Q.ref.changeDetectorRef.reattach(),Q}setActive(Z){var Ne,Q;const Se=this.navCtrl.consumeTransition();let{direction:it,animation:Wt,animationBuilder:cn}=Se;const Pn=this.activeView,Cr=ct(Z,Pn);Cr&&(it="back",Wt=void 0);const Hn=this.views.slice();let $i;const Ai=this.router;Ai.getCurrentNavigation?$i=Ai.getCurrentNavigation():null!==(Ne=Ai.navigations)&&void 0!==Ne&&Ne.value&&($i=Ai.navigations.value),null!==(Q=$i)&&void 0!==Q&&null!==(Q=Q.extras)&&void 0!==Q&&Q.replaceUrl&&this.views.length>0&&this.views.splice(-1,1);const Pi=this.views.includes(Z),xr=this.insertView(Z,it);Pi||Z.ref.changeDetectorRef.detectChanges();const An=Z.animationBuilder;return void 0===cn&&"back"===it&&!Cr&&void 0!==An&&(cn=An),Pn&&(Pn.animationBuilder=cn),this.zone.runOutsideAngular(()=>this.wait(()=>(Pn&&Pn.ref.changeDetectorRef.detach(),Z.ref.changeDetectorRef.reattach(),this.transition(Z,Pn,Wt,this.canGoBack(1),!1,cn).then(()=>Et(Z,xr,Hn,this.location,this.zone)).then(()=>({enteringView:Z,direction:it,animation:Wt,tabSwitch:Cr})))))}canGoBack(Z,Ne=this.getActiveStackId()){return this.getStack(Ne).length>Z}pop(Z,Ne=this.getActiveStackId()){return this.zone.run(()=>{const Q=this.getStack(Ne);if(Q.length<=Z)return Promise.resolve(!1);const Se=Q[Q.length-Z-1];let it=Se.url;const Wt=Se.savedData;if(Wt){var cn;const Cr=Wt.get("primary");null!=Cr&&null!==(cn=Cr.route)&&void 0!==cn&&null!==(cn=cn._routerState)&&void 0!==cn&&cn.snapshot.url&&(it=Cr.route._routerState.snapshot.url)}const{animationBuilder:Pn}=this.navCtrl.consumeTransition();return this.navCtrl.navigateBack(it,{...Se.savedExtras,animation:Pn}).then(()=>!0)})}startBackTransition(){const Z=this.activeView;if(Z){const Ne=this.getStack(Z.stackId),Q=Ne[Ne.length-2],Se=Q.animationBuilder;return this.wait(()=>this.transition(Q,Z,"back",this.canGoBack(2),!0,Se))}return Promise.resolve()}endBackTransition(Z){Z?(this.skipTransition=!0,this.pop(1)):this.activeView&&rt(this.activeView,this.views,this.views,this.location,this.zone)}getLastUrl(Z){const Ne=this.getStack(Z);return Ne.length>0?Ne[Ne.length-1]:void 0}getRootUrl(Z){const Ne=this.getStack(Z);return Ne.length>0?Ne[0]:void 0}getActiveStackId(){return this.activeView?this.activeView.stackId:void 0}getActiveView(){return this.activeView}hasRunningTask(){return void 0!==this.runningTask}destroy(){this.containerEl=void 0,this.views.forEach(he),this.activeView=void 0,this.views=[]}getStack(Z){return this.views.filter(Ne=>Ne.stackId===Z)}insertView(Z,Ne){return this.activeView=Z,this.views=((Y,Z,Ne)=>"root"===Ne?Qr(Y,Z):"forward"===Ne?((Y,Z)=>(Y.indexOf(Z)>=0?Y=Y.filter(Q=>Q.stackId!==Z.stackId||Q.id<=Z.id):Y.push(Z),Y))(Y,Z):((Y,Z)=>Y.indexOf(Z)>=0?Y.filter(Q=>Q.stackId!==Z.stackId||Q.id<=Z.id):Qr(Y,Z))(Y,Z))(this.views,Z,Ne),this.views.slice()}transition(Z,Ne,Q,Se,it,Wt){if(this.skipTransition)return this.skipTransition=!1,Promise.resolve(!1);if(Ne===Z)return Promise.resolve(!1);const cn=Z?Z.element:void 0,Pn=Ne?Ne.element:void 0,Cr=this.containerEl;return cn&&cn!==Pn&&(cn.classList.add("ion-page"),cn.classList.add("ion-page-invisible"),Cr.commit)?Cr.commit(cn,Pn,{duration:void 0===Q?0:void 0,direction:Q,showGoBack:Se,progressAnimation:it,animationBuilder:Wt}):Promise.resolve(!1)}wait(Z){var Ne=this;return(0,g.A)(function*(){void 0!==Ne.runningTask&&(yield Ne.runningTask,Ne.runningTask=void 0);const Q=Ne.runningTask=Z();return Q.finally(()=>Ne.runningTask=void 0),Q})()}}const Et=(Y,Z,Ne,Q,Se)=>"function"==typeof requestAnimationFrame?new Promise(it=>{requestAnimationFrame(()=>{rt(Y,Z,Ne,Q,Se),it()})}):Promise.resolve(),rt=(Y,Z,Ne,Q,Se)=>{Se.run(()=>Ne.filter(it=>!Z.includes(it)).forEach(he)),Z.forEach(it=>{const cn=Q.path().split("?")[0].split("#")[0];if(it!==Y&&it.url!==cn){const Pn=it.element;Pn.setAttribute("aria-hidden","true"),Pn.classList.add("ion-page-hidden"),it.ref.changeDetectorRef.detach()}})};let dn=(()=>{var Y;class Z{get activatedComponentRef(){return this.activated}set animation(Q){this.nativeEl.animation=Q}set animated(Q){this.nativeEl.animated=Q}set swipeGesture(Q){this._swipeGesture=Q,this.nativeEl.swipeHandler=Q?{canStart:()=>this.stackCtrl.canGoBack(1)&&!this.stackCtrl.hasRunningTask(),onStart:()=>this.stackCtrl.startBackTransition(),onEnd:Se=>this.stackCtrl.endBackTransition(Se)}:void 0}constructor(Q,Se,it,Wt,cn,Pn,Cr,Hn){(0,d.A)(this,"parentOutlet",void 0),(0,d.A)(this,"nativeEl",void 0),(0,d.A)(this,"activatedView",null),(0,d.A)(this,"tabsPrefix",void 0),(0,d.A)(this,"_swipeGesture",void 0),(0,d.A)(this,"stackCtrl",void 0),(0,d.A)(this,"proxyMap",new WeakMap),(0,d.A)(this,"currentActivatedRoute$",new Dt.t(null)),(0,d.A)(this,"activated",null),(0,d.A)(this,"_activatedRoute",null),(0,d.A)(this,"name",Oe.Xk),(0,d.A)(this,"stackWillChange",new ge.bkB),(0,d.A)(this,"stackDidChange",new ge.bkB),(0,d.A)(this,"activateEvents",new ge.bkB),(0,d.A)(this,"deactivateEvents",new ge.bkB),(0,d.A)(this,"parentContexts",(0,ge.WQX)(Oe.Zp)),(0,d.A)(this,"location",(0,ge.WQX)(ge.c1b)),(0,d.A)(this,"environmentInjector",(0,ge.WQX)(ge.uvJ)),(0,d.A)(this,"inputBinder",(0,ge.WQX)(Wn,{optional:!0})),(0,d.A)(this,"supportsBindingToComponentInputs",!0),(0,d.A)(this,"config",(0,ge.WQX)(Ve)),(0,d.A)(this,"navCtrl",(0,ge.WQX)(er)),this.parentOutlet=Hn,this.nativeEl=Wt.nativeElement,this.name=Q||Oe.Xk,this.tabsPrefix="true"===Se?He(cn,Cr):void 0,this.stackCtrl=new Pe(this.tabsPrefix,this.nativeEl,cn,this.navCtrl,Pn,it),this.parentContexts.onChildOutletCreated(this.name,this)}ngOnDestroy(){var Q;this.stackCtrl.destroy(),null===(Q=this.inputBinder)||void 0===Q||Q.unsubscribeFromRouteData(this)}getContext(){return this.parentContexts.getContext(this.name)}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(!this.activated){const Q=this.getContext();null!=Q&&Q.route&&this.activateWith(Q.route,Q.injector)}new Promise(Q=>((Y,Z)=>{Y.componentOnReady?Y.componentOnReady().then(Ne=>Z(Ne)):(Y=>{"function"==typeof __zone_symbol__requestAnimationFrame?__zone_symbol__requestAnimationFrame(Y):"function"==typeof requestAnimationFrame?requestAnimationFrame(Y):setTimeout(Y)})(()=>Z(Y))})(this.nativeEl,Q)).then(()=>{void 0===this._swipeGesture&&(this.swipeGesture=this.config.getBoolean("swipeBackEnabled","ios"===this.nativeEl.mode))})}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){throw new Error("incompatible reuse strategy")}attach(Q,Se){throw new Error("incompatible reuse strategy")}deactivate(){if(this.activated){if(this.activatedView){const Se=this.getContext();this.activatedView.savedData=new Map(Se.children.contexts);const it=this.activatedView.savedData.get("primary");if(it&&Se.route&&(it.route={...Se.route}),this.activatedView.savedExtras={},Se.route){const Wt=Se.route.snapshot;this.activatedView.savedExtras.queryParams=Wt.queryParams,this.activatedView.savedExtras.fragment=Wt.fragment}}const Q=this.component;this.activatedView=null,this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(Q)}}activateWith(Q,Se){var it;if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=Q;let Wt,cn=this.stackCtrl.getExistingView(Q);if(cn){Wt=this.activated=cn.ref;const Hn=cn.savedData;Hn&&(this.getContext().children.contexts=Hn),this.updateActivatedRouteProxy(Wt.instance,Q)}else{var Pn;const Hn=Q._futureSnapshot,$i=this.parentContexts.getOrCreateContext(this.name).children,Ai=new Dt.t(null),Pi=this.createActivatedRouteProxy(Ai,Q),xr=new Sn(Pi,$i,this.location.injector),An=null!==(Pn=Hn.routeConfig.component)&&void 0!==Pn?Pn:Hn.component;Wt=this.activated=this.outletContent.createComponent(An,{index:this.outletContent.length,injector:xr,environmentInjector:null!=Se?Se:this.environmentInjector}),Ai.next(Wt.instance),cn=this.stackCtrl.createView(this.activated,Q),this.proxyMap.set(Wt.instance,Pi),this.currentActivatedRoute$.next({component:Wt.instance,activatedRoute:Q})}null===(it=this.inputBinder)||void 0===it||it.bindActivatedRouteToOutletComponent(this),this.activatedView=cn,this.navCtrl.setTopOutlet(this);const Cr=this.stackCtrl.getActiveView();this.stackWillChange.emit({enteringView:cn,tabSwitch:ct(cn,Cr)}),this.stackCtrl.setActive(cn).then(Hn=>{this.activateEvents.emit(Wt.instance),this.stackDidChange.emit(Hn)})}canGoBack(Q=1,Se){return this.stackCtrl.canGoBack(Q,Se)}pop(Q=1,Se){return this.stackCtrl.pop(Q,Se)}getLastUrl(Q){const Se=this.stackCtrl.getLastUrl(Q);return Se?Se.url:void 0}getLastRouteView(Q){return this.stackCtrl.getLastUrl(Q)}getRootView(Q){return this.stackCtrl.getRootUrl(Q)}getActiveStackId(){return this.stackCtrl.getActiveStackId()}createActivatedRouteProxy(Q,Se){const it=new Oe.nX;return it._futureSnapshot=Se._futureSnapshot,it._routerState=Se._routerState,it.snapshot=Se.snapshot,it.outlet=Se.outlet,it.component=Se.component,it._paramMap=this.proxyObservable(Q,"paramMap"),it._queryParamMap=this.proxyObservable(Q,"queryParamMap"),it.url=this.proxyObservable(Q,"url"),it.params=this.proxyObservable(Q,"params"),it.queryParams=this.proxyObservable(Q,"queryParams"),it.fragment=this.proxyObservable(Q,"fragment"),it.data=this.proxyObservable(Q,"data"),it}proxyObservable(Q,Se){return Q.pipe((0,_e.p)(it=>!!it),(0,j.n)(it=>this.currentActivatedRoute$.pipe((0,_e.p)(Wt=>null!==Wt&&Wt.component===it),(0,j.n)(Wt=>Wt&&Wt.activatedRoute[Se]),function ae(Y,Z=W.D){return Y=null!=Y?Y:me,(0,te.N)((Ne,Q)=>{let Se,it=!0;Ne.subscribe((0,de._)(Q,Wt=>{const cn=Z(Wt);(it||!Y(Se,cn))&&(it=!1,Se=cn,Q.next(Wt))}))})}())))}updateActivatedRouteProxy(Q,Se){const it=this.proxyMap.get(Q);if(!it)throw new Error("Could not find activated route proxy for view");it._futureSnapshot=Se._futureSnapshot,it._routerState=Se._routerState,it.snapshot=Se.snapshot,it.outlet=Se.outlet,it.component=Se.component,this.currentActivatedRoute$.next({component:Q,activatedRoute:Se})}}return Y=Z,(0,d.A)(Z,"\u0275fac",function(Q){return new(Q||Y)(ge.kS0("name"),ge.kS0("tabs"),ge.rXU(X.aZ),ge.rXU(ge.aKT),ge.rXU(Oe.Ix),ge.rXU(ge.SKi),ge.rXU(Oe.nX),ge.rXU(Y,12))}),(0,d.A)(Z,"\u0275dir",ge.FsC({type:Y,selectors:[["ion-router-outlet"]],inputs:{animated:"animated",animation:"animation",mode:"mode",swipeGesture:"swipeGesture",name:"name"},outputs:{stackWillChange:"stackWillChange",stackDidChange:"stackDidChange",activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]})),Z})();class Sn{constructor(Z,Ne,Q){(0,d.A)(this,"route",void 0),(0,d.A)(this,"childContexts",void 0),(0,d.A)(this,"parent",void 0),this.route=Z,this.childContexts=Ne,this.parent=Q}get(Z,Ne){return Z===Oe.nX?this.route:Z===Oe.Zp?this.childContexts:this.parent.get(Z,Ne)}}const Wn=new ge.nKC("");let gr=(()=>{var Y;class Z{constructor(){(0,d.A)(this,"outletDataSubscriptions",new Map)}bindActivatedRouteToOutletComponent(Q){this.unsubscribeFromRouteData(Q),this.subscribeToRouteData(Q)}unsubscribeFromRouteData(Q){var Se;null===(Se=this.outletDataSubscriptions.get(Q))||void 0===Se||Se.unsubscribe(),this.outletDataSubscriptions.delete(Q)}subscribeToRouteData(Q){const{activatedRoute:Se}=Q,it=(0,Be.z)([Se.queryParams,Se.params,Se.data]).pipe((0,j.n)(([Wt,cn,Pn],Cr)=>(Pn={...Wt,...cn,...Pn},0===Cr?(0,rn.of)(Pn):Promise.resolve(Pn)))).subscribe(Wt=>{if(!Q.isActivated||!Q.activatedComponentRef||Q.activatedRoute!==Se||null===Se.component)return void this.unsubscribeFromRouteData(Q);const cn=(0,ge.HJs)(Se.component);if(cn)for(const{templateName:Pn}of cn.inputs)Q.activatedComponentRef.setInput(Pn,Wt[Pn]);else this.unsubscribeFromRouteData(Q)});this.outletDataSubscriptions.set(Q,it)}}return Y=Z,(0,d.A)(Z,"\u0275fac",function(Q){return new(Q||Y)}),(0,d.A)(Z,"\u0275prov",ge.jDH({token:Y,factory:Y.\u0275fac})),Z})();const ur=()=>({provide:Wn,useFactory:ri,deps:[Oe.Ix]});function ri(Y){return null!=Y&&Y.componentInputBindingEnabled?new gr:null}const xn=["color","defaultHref","disabled","icon","mode","routerAnimation","text","type"];let Rn=(()=>{var Y;let Z=((0,d.A)(Y=class{constructor(Q,Se,it,Wt,cn,Pn){(0,d.A)(this,"routerOutlet",void 0),(0,d.A)(this,"navCtrl",void 0),(0,d.A)(this,"config",void 0),(0,d.A)(this,"r",void 0),(0,d.A)(this,"z",void 0),(0,d.A)(this,"el",void 0),this.routerOutlet=Q,this.navCtrl=Se,this.config=it,this.r=Wt,this.z=cn,Pn.detach(),this.el=this.r.nativeElement}onClick(Q){var Se;const it=this.defaultHref||this.config.get("backButtonDefaultHref");null!==(Se=this.routerOutlet)&&void 0!==Se&&Se.canGoBack()?(this.navCtrl.setDirection("back",void 0,void 0,this.routerAnimation),this.routerOutlet.pop(),Q.preventDefault()):null!=it&&(this.navCtrl.navigateBack(it,{animation:this.routerAnimation}),Q.preventDefault())}},"\u0275fac",function(Q){return new(Q||Y)(ge.rXU(dn,8),ge.rXU(er),ge.rXU(Ve),ge.rXU(ge.aKT),ge.rXU(ge.SKi),ge.rXU(ge.gRc))}),(0,d.A)(Y,"\u0275dir",ge.FsC({type:Y,hostBindings:function(Q,Se){1&Q&&ge.bIt("click",function(Wt){return Se.onClick(Wt)})},inputs:{color:"color",defaultHref:"defaultHref",disabled:"disabled",icon:"icon",mode:"mode",routerAnimation:"routerAnimation",text:"text",type:"type"}})),Y);return Z=(0,pt.Cg)([Bn({inputs:xn})],Z),Z})(),yr=(()=>{var Y;class Z{constructor(Q,Se,it,Wt,cn){(0,d.A)(this,"locationStrategy",void 0),(0,d.A)(this,"navCtrl",void 0),(0,d.A)(this,"elementRef",void 0),(0,d.A)(this,"router",void 0),(0,d.A)(this,"routerLink",void 0),(0,d.A)(this,"routerDirection","forward"),(0,d.A)(this,"routerAnimation",void 0),this.locationStrategy=Q,this.navCtrl=Se,this.elementRef=it,this.router=Wt,this.routerLink=cn}ngOnInit(){this.updateTargetUrlAndHref()}ngOnChanges(){this.updateTargetUrlAndHref()}updateTargetUrlAndHref(){var Q;if(null!==(Q=this.routerLink)&&void 0!==Q&&Q.urlTree){const Se=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.routerLink.urlTree));this.elementRef.nativeElement.href=Se}}onClick(Q){this.navCtrl.setDirection(this.routerDirection,void 0,void 0,this.routerAnimation),Q.preventDefault()}}return Y=Z,(0,d.A)(Z,"\u0275fac",function(Q){return new(Q||Y)(ge.rXU(X.hb),ge.rXU(er),ge.rXU(ge.aKT),ge.rXU(Oe.Ix),ge.rXU(Oe.Wk,8))}),(0,d.A)(Z,"\u0275dir",ge.FsC({type:Y,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(Q,Se){1&Q&&ge.bIt("click",function(Wt){return Se.onClick(Wt)})},inputs:{routerDirection:"routerDirection",routerAnimation:"routerAnimation"},features:[ge.OA$]})),Z})(),Ei=(()=>{var Y;class Z{constructor(Q,Se,it,Wt,cn){(0,d.A)(this,"locationStrategy",void 0),(0,d.A)(this,"navCtrl",void 0),(0,d.A)(this,"elementRef",void 0),(0,d.A)(this,"router",void 0),(0,d.A)(this,"routerLink",void 0),(0,d.A)(this,"routerDirection","forward"),(0,d.A)(this,"routerAnimation",void 0),this.locationStrategy=Q,this.navCtrl=Se,this.elementRef=it,this.router=Wt,this.routerLink=cn}ngOnInit(){this.updateTargetUrlAndHref()}ngOnChanges(){this.updateTargetUrlAndHref()}updateTargetUrlAndHref(){var Q;if(null!==(Q=this.routerLink)&&void 0!==Q&&Q.urlTree){const Se=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.routerLink.urlTree));this.elementRef.nativeElement.href=Se}}onClick(){this.navCtrl.setDirection(this.routerDirection,void 0,void 0,this.routerAnimation)}}return Y=Z,(0,d.A)(Z,"\u0275fac",function(Q){return new(Q||Y)(ge.rXU(X.hb),ge.rXU(er),ge.rXU(ge.aKT),ge.rXU(Oe.Ix),ge.rXU(Oe.Wk,8))}),(0,d.A)(Z,"\u0275dir",ge.FsC({type:Y,selectors:[["a","routerLink",""],["area","routerLink",""]],hostBindings:function(Q,Se){1&Q&&ge.bIt("click",function(){return Se.onClick()})},inputs:{routerDirection:"routerDirection",routerAnimation:"routerAnimation"},features:[ge.OA$]})),Z})();const ii=["animated","animation","root","rootParams","swipeGesture"],pi=["push","insert","insertPages","pop","popTo","popToRoot","removeIndex","setRoot","setPages","getActive","getByIndex","canGoBack","getPrevious"];let Ui=(()=>{var Y;let Z=((0,d.A)(Y=class{constructor(Q,Se,it,Wt,cn,Pn){(0,d.A)(this,"z",void 0),(0,d.A)(this,"el",void 0),this.z=cn,Pn.detach(),this.el=Q.nativeElement,Q.nativeElement.delegate=Wt.create(Se,it),_r(this,this.el,["ionNavDidChange","ionNavWillChange"])}},"\u0275fac",function(Q){return new(Q||Y)(ge.rXU(ge.aKT),ge.rXU(ge.uvJ),ge.rXU(ge.zZn),ge.rXU(en),ge.rXU(ge.SKi),ge.rXU(ge.gRc))}),(0,d.A)(Y,"\u0275dir",ge.FsC({type:Y,inputs:{animated:"animated",animation:"animation",root:"root",rootParams:"rootParams",swipeGesture:"swipeGesture"}})),Y);return Z=(0,pt.Cg)([Bn({inputs:ii,methods:pi})],Z),Z})(),or=(()=>{var Y;class Z{constructor(Q){(0,d.A)(this,"navCtrl",void 0),(0,d.A)(this,"tabsInner",void 0),(0,d.A)(this,"ionTabsWillChange",new ge.bkB),(0,d.A)(this,"ionTabsDidChange",new ge.bkB),(0,d.A)(this,"tabBarSlot","bottom"),this.navCtrl=Q}ngAfterContentInit(){this.detectSlotChanges()}ngAfterContentChecked(){this.detectSlotChanges()}onStackWillChange({enteringView:Q,tabSwitch:Se}){const it=Q.stackId;Se&&void 0!==it&&this.ionTabsWillChange.emit({tab:it})}onStackDidChange({enteringView:Q,tabSwitch:Se}){const it=Q.stackId;Se&&void 0!==it&&(this.tabBar&&(this.tabBar.selectedTab=it),this.ionTabsDidChange.emit({tab:it}))}select(Q){const Se="string"==typeof Q,it=Se?Q:Q.detail.tab,Wt=this.outlet.getActiveStackId()===it,cn=`${this.outlet.tabsPrefix}/${it}`;if(Se||Q.stopPropagation(),Wt){const Pn=this.outlet.getActiveStackId(),Cr=this.outlet.getLastRouteView(Pn);if((null==Cr?void 0:Cr.url)===cn)return;const Hn=this.outlet.getRootView(it);return this.navCtrl.navigateRoot(cn,{...Hn&&cn===Hn.url&&Hn.savedExtras,animated:!0,animationDirection:"back"})}{const Pn=this.outlet.getLastRouteView(it);return this.navCtrl.navigateRoot((null==Pn?void 0:Pn.url)||cn,{...null==Pn?void 0:Pn.savedExtras,animated:!0,animationDirection:"back"})}}getSelected(){return this.outlet.getActiveStackId()}detectSlotChanges(){this.tabBars.forEach(Q=>{const Se=Q.el.getAttribute("slot");Se!==this.tabBarSlot&&(this.tabBarSlot=Se,this.relocateTabBar())})}relocateTabBar(){const Q=this.tabBar.el;"top"===this.tabBarSlot?this.tabsInner.nativeElement.before(Q):this.tabsInner.nativeElement.after(Q)}}return Y=Z,(0,d.A)(Z,"\u0275fac",function(Q){return new(Q||Y)(ge.rXU(er))}),(0,d.A)(Z,"\u0275dir",ge.FsC({type:Y,selectors:[["ion-tabs"]],viewQuery:function(Q,Se){if(1&Q&&ge.GBs(at,7,ge.aKT),2&Q){let it;ge.mGM(it=ge.lsd())&&(Se.tabsInner=it.first)}},hostBindings:function(Q,Se){1&Q&&ge.bIt("ionTabButtonClick",function(Wt){return Se.select(Wt)})},outputs:{ionTabsWillChange:"ionTabsWillChange",ionTabsDidChange:"ionTabsDidChange"}})),Z})();const Hi=Y=>"function"==typeof __zone_symbol__requestAnimationFrame?__zone_symbol__requestAnimationFrame(Y):"function"==typeof requestAnimationFrame?requestAnimationFrame(Y):setTimeout(Y);let wi=(()=>{var Y;class Z{constructor(Q,Se){(0,d.A)(this,"injector",void 0),(0,d.A)(this,"elementRef",void 0),(0,d.A)(this,"onChange",()=>{}),(0,d.A)(this,"onTouched",()=>{}),(0,d.A)(this,"lastValue",void 0),(0,d.A)(this,"statusChanges",void 0),this.injector=Q,this.elementRef=Se}writeValue(Q){this.elementRef.nativeElement.value=this.lastValue=Q,gi(this.elementRef)}handleValueChange(Q,Se){Q===this.elementRef.nativeElement&&(Se!==this.lastValue&&(this.lastValue=Se,this.onChange(Se)),gi(this.elementRef))}_handleBlurEvent(Q){Q===this.elementRef.nativeElement&&(this.onTouched(),gi(this.elementRef))}registerOnChange(Q){this.onChange=Q}registerOnTouched(Q){this.onTouched=Q}setDisabledState(Q){this.elementRef.nativeElement.disabled=Q}ngOnDestroy(){this.statusChanges&&this.statusChanges.unsubscribe()}ngAfterViewInit(){let Q;try{Q=this.injector.get(Ce.vO)}catch{}if(!Q)return;Q.statusChanges&&(this.statusChanges=Q.statusChanges.subscribe(()=>gi(this.elementRef)));const Se=Q.control;Se&&["markAsTouched","markAllAsTouched","markAsUntouched","markAsDirty","markAsPristine"].forEach(Wt=>{if(typeof Se[Wt]<"u"){const cn=Se[Wt].bind(Se);Se[Wt]=(...Pn)=>{cn(...Pn),gi(this.elementRef)}}})}}return Y=Z,(0,d.A)(Z,"\u0275fac",function(Q){return new(Q||Y)(ge.rXU(ge.zZn),ge.rXU(ge.aKT))}),(0,d.A)(Z,"\u0275dir",ge.FsC({type:Y,hostBindings:function(Q,Se){1&Q&&ge.bIt("ionBlur",function(Wt){return Se._handleBlurEvent(Wt.target)})}})),Z})();const gi=Y=>{Hi(()=>{const Z=Y.nativeElement,Ne=null!=Z.value&&Z.value.toString().length>0,Q=St(Z);lt(Z,Q);const Se=Z.closest("ion-item");Se&<(Se,Ne?[...Q,"item-has-value"]:Q)})},St=Y=>{const Z=Y.classList,Ne=[];for(let Q=0;Q{const Ne=Y.classList;Ne.remove("ion-valid","ion-invalid","ion-touched","ion-untouched","ion-dirty","ion-pristine"),Ne.add(...Z)},Ut=(Y,Z)=>Y.substring(0,Z.length)===Z;class fn{shouldDetach(Z){return!1}shouldAttach(Z){return!1}store(Z,Ne){}retrieve(Z){return null}shouldReuseRoute(Z,Ne){if(Z.routeConfig!==Ne.routeConfig)return!1;const Q=Z.params,Se=Ne.params,it=Object.keys(Q),Wt=Object.keys(Se);if(it.length!==Wt.length)return!1;for(const cn of it)if(Se[cn]!==Q[cn])return!1;return!0}}class Kn{constructor(Z){(0,d.A)(this,"ctrl",void 0),this.ctrl=Z}create(Z){return this.ctrl.create(Z||{})}dismiss(Z,Ne,Q){return this.ctrl.dismiss(Z,Ne,Q)}getTop(){return this.ctrl.getTop()}}},7863:(En,bt,B)=>{"use strict";B.d(bt,{hG:()=>Bi,U1:()=>bn,Jm:()=>Yn,b_:()=>yt,I9:()=>Ot,ME:()=>Xt,tN:()=>Ir,hU:()=>Jt,W9:()=>Gt,lO:()=>ni,eU:()=>Zn,iq:()=>wn,$w:()=>Mi,uz:()=>Yr,Dg:()=>oe,he:()=>he,nf:()=>Pe,oS:()=>dn,MC:()=>Sn,cA:()=>Wn,To:()=>or,Ki:()=>Hi,Rg:()=>xr,ln:()=>lt,HP:()=>Se,BC:()=>Hn,ai:()=>Pi,bv:()=>Ni,Xi:()=>sr,_t:()=>Or,N7:()=>Si,oY:()=>ti,Gw:()=>W});var g=B(9842),d=B(4438),ge=B(4341),Oe=B(3656),X=B(1635),Ee=B(3726),re=B(177),Ze=B(845),Le=(B(9986),B(2725),B(8454),B(3314),B(8607),B(3664)),Qe=B(464),ft=B(5465),ut=B(6002),Mt=(B(8476),B(9672));B(1970),B(6411);var Ke=B(467);const Ct=Le.i,xt=function(){var S=(0,Ke.A)(function*(H,ue){if(!(typeof window>"u"))return yield Ct(),(0,Mt.b)(JSON.parse('[["ion-menu_3",[[33,"ion-menu-button",{"color":[513],"disabled":[4],"menu":[1],"autoHide":[4,"auto-hide"],"type":[1],"visible":[32]},[[16,"ionMenuChange","visibilityChanged"],[16,"ionSplitPaneVisible","visibilityChanged"]]],[33,"ion-menu",{"contentId":[513,"content-id"],"menuId":[513,"menu-id"],"type":[1025],"disabled":[1028],"side":[513],"swipeGesture":[4,"swipe-gesture"],"maxEdgeStart":[2,"max-edge-start"],"isPaneVisible":[32],"isEndSide":[32],"isOpen":[64],"isActive":[64],"open":[64],"close":[64],"toggle":[64],"setOpen":[64]},[[16,"ionSplitPaneVisible","onSplitPaneChanged"],[2,"click","onBackdropClick"]],{"type":["typeChanged"],"disabled":["disabledChanged"],"side":["sideChanged"],"swipeGesture":["swipeGestureChanged"]}],[1,"ion-menu-toggle",{"menu":[1],"autoHide":[4,"auto-hide"],"visible":[32]},[[16,"ionMenuChange","visibilityChanged"],[16,"ionSplitPaneVisible","visibilityChanged"]]]]],["ion-input-password-toggle",[[33,"ion-input-password-toggle",{"color":[513],"showIcon":[1,"show-icon"],"hideIcon":[1,"hide-icon"],"type":[1025]},null,{"type":["onTypeChange"]}]]],["ion-fab_3",[[33,"ion-fab-button",{"color":[513],"activated":[4],"disabled":[4],"download":[1],"href":[1],"rel":[1],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"target":[1],"show":[4],"translucent":[4],"type":[1],"size":[1],"closeIcon":[1,"close-icon"]}],[1,"ion-fab",{"horizontal":[1],"vertical":[1],"edge":[4],"activated":[1028],"close":[64],"toggle":[64]},null,{"activated":["activatedChanged"]}],[1,"ion-fab-list",{"activated":[4],"side":[1]},null,{"activated":["activatedChanged"]}]]],["ion-refresher_2",[[0,"ion-refresher-content",{"pullingIcon":[1025,"pulling-icon"],"pullingText":[1,"pulling-text"],"refreshingSpinner":[1025,"refreshing-spinner"],"refreshingText":[1,"refreshing-text"]}],[32,"ion-refresher",{"pullMin":[2,"pull-min"],"pullMax":[2,"pull-max"],"closeDuration":[1,"close-duration"],"snapbackDuration":[1,"snapback-duration"],"pullFactor":[2,"pull-factor"],"disabled":[4],"nativeRefresher":[32],"state":[32],"complete":[64],"cancel":[64],"getProgress":[64]},null,{"disabled":["disabledChanged"]}]]],["ion-back-button",[[33,"ion-back-button",{"color":[513],"defaultHref":[1025,"default-href"],"disabled":[516],"icon":[1],"text":[1],"type":[1],"routerAnimation":[16]}]]],["ion-toast",[[33,"ion-toast",{"overlayIndex":[2,"overlay-index"],"delegate":[16],"hasController":[4,"has-controller"],"color":[513],"enterAnimation":[16],"leaveAnimation":[16],"cssClass":[1,"css-class"],"duration":[2],"header":[1],"layout":[1],"message":[1],"keyboardClose":[4,"keyboard-close"],"position":[1],"positionAnchor":[1,"position-anchor"],"buttons":[16],"translucent":[4],"animated":[4],"icon":[1],"htmlAttributes":[16],"swipeGesture":[1,"swipe-gesture"],"isOpen":[4,"is-open"],"trigger":[1],"revealContentToScreenReader":[32],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]},null,{"swipeGesture":["swipeGestureChanged"],"isOpen":["onIsOpenChange"],"trigger":["triggerChanged"]}]]],["ion-card_5",[[33,"ion-card",{"color":[513],"button":[4],"type":[1],"disabled":[4],"download":[1],"href":[1],"rel":[1],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"target":[1]}],[32,"ion-card-content"],[33,"ion-card-header",{"color":[513],"translucent":[4]}],[33,"ion-card-subtitle",{"color":[513]}],[33,"ion-card-title",{"color":[513]}]]],["ion-item-option_3",[[33,"ion-item-option",{"color":[513],"disabled":[4],"download":[1],"expandable":[4],"href":[1],"rel":[1],"target":[1],"type":[1]}],[32,"ion-item-options",{"side":[1],"fireSwipeEvent":[64]}],[0,"ion-item-sliding",{"disabled":[4],"state":[32],"getOpenAmount":[64],"getSlidingRatio":[64],"open":[64],"close":[64],"closeOpened":[64]},null,{"disabled":["disabledChanged"]}]]],["ion-accordion_2",[[49,"ion-accordion",{"value":[1],"disabled":[4],"readonly":[4],"toggleIcon":[1,"toggle-icon"],"toggleIconSlot":[1,"toggle-icon-slot"],"state":[32],"isNext":[32],"isPrevious":[32]},null,{"value":["valueChanged"]}],[33,"ion-accordion-group",{"animated":[4],"multiple":[4],"value":[1025],"disabled":[4],"readonly":[4],"expand":[1],"requestAccordionToggle":[64],"getAccordions":[64]},[[0,"keydown","onKeydown"]],{"value":["valueChanged"],"disabled":["disabledChanged"],"readonly":["readonlyChanged"]}]]],["ion-infinite-scroll_2",[[32,"ion-infinite-scroll-content",{"loadingSpinner":[1025,"loading-spinner"],"loadingText":[1,"loading-text"]}],[0,"ion-infinite-scroll",{"threshold":[1],"disabled":[4],"position":[1],"isLoading":[32],"complete":[64]},null,{"threshold":["thresholdChanged"],"disabled":["disabledChanged"]}]]],["ion-reorder_2",[[33,"ion-reorder",null,[[2,"click","onClick"]]],[0,"ion-reorder-group",{"disabled":[4],"state":[32],"complete":[64]},null,{"disabled":["disabledChanged"]}]]],["ion-segment_2",[[33,"ion-segment-button",{"disabled":[1028],"layout":[1],"type":[1],"value":[8],"checked":[32],"setFocus":[64]},null,{"value":["valueChanged"]}],[33,"ion-segment",{"color":[513],"disabled":[4],"scrollable":[4],"swipeGesture":[4,"swipe-gesture"],"value":[1032],"selectOnFocus":[4,"select-on-focus"],"activated":[32]},[[0,"keydown","onKeyDown"]],{"color":["colorChanged"],"swipeGesture":["swipeGestureChanged"],"value":["valueChanged"],"disabled":["disabledChanged"]}]]],["ion-tab-bar_2",[[33,"ion-tab-button",{"disabled":[4],"download":[1],"href":[1],"rel":[1],"layout":[1025],"selected":[1028],"tab":[1],"target":[1]},[[8,"ionTabBarChanged","onTabBarChanged"]]],[33,"ion-tab-bar",{"color":[513],"selectedTab":[1,"selected-tab"],"translucent":[4],"keyboardVisible":[32]},null,{"selectedTab":["selectedTabChanged"]}]]],["ion-chip",[[33,"ion-chip",{"color":[513],"outline":[4],"disabled":[4]}]]],["ion-datetime-button",[[33,"ion-datetime-button",{"color":[513],"disabled":[516],"datetime":[1],"datetimePresentation":[32],"dateText":[32],"timeText":[32],"datetimeActive":[32],"selectedButton":[32]}]]],["ion-input",[[38,"ion-input",{"color":[513],"autocapitalize":[1],"autocomplete":[1],"autocorrect":[1],"autofocus":[4],"clearInput":[4,"clear-input"],"clearInputIcon":[1,"clear-input-icon"],"clearOnEdit":[4,"clear-on-edit"],"counter":[4],"counterFormatter":[16],"debounce":[2],"disabled":[516],"enterkeyhint":[1],"errorText":[1,"error-text"],"fill":[1],"inputmode":[1],"helperText":[1,"helper-text"],"label":[1],"labelPlacement":[1,"label-placement"],"max":[8],"maxlength":[2],"min":[8],"minlength":[2],"multiple":[4],"name":[1],"pattern":[1],"placeholder":[1],"readonly":[516],"required":[4],"shape":[1],"spellcheck":[4],"step":[1],"type":[1],"value":[1032],"hasFocus":[32],"setFocus":[64],"getInputElement":[64]},null,{"debounce":["debounceChanged"],"type":["onTypeChange"],"value":["valueChanged"]}]]],["ion-searchbar",[[34,"ion-searchbar",{"color":[513],"animated":[4],"autocapitalize":[1],"autocomplete":[1],"autocorrect":[1],"cancelButtonIcon":[1,"cancel-button-icon"],"cancelButtonText":[1,"cancel-button-text"],"clearIcon":[1,"clear-icon"],"debounce":[2],"disabled":[4],"inputmode":[1],"enterkeyhint":[1],"maxlength":[2],"minlength":[2],"name":[1],"placeholder":[1],"searchIcon":[1,"search-icon"],"showCancelButton":[1,"show-cancel-button"],"showClearButton":[1,"show-clear-button"],"spellcheck":[4],"type":[1],"value":[1025],"focused":[32],"noAnimate":[32],"setFocus":[64],"getInputElement":[64]},null,{"lang":["onLangChanged"],"dir":["onDirChanged"],"debounce":["debounceChanged"],"value":["valueChanged"],"showCancelButton":["showCancelButtonChanged"]}]]],["ion-toggle",[[33,"ion-toggle",{"color":[513],"name":[1],"checked":[1028],"disabled":[4],"value":[1],"enableOnOffLabels":[4,"enable-on-off-labels"],"labelPlacement":[1,"label-placement"],"justify":[1],"alignment":[1],"activated":[32]},null,{"disabled":["disabledChanged"]}]]],["ion-nav_2",[[1,"ion-nav",{"delegate":[16],"swipeGesture":[1028,"swipe-gesture"],"animated":[4],"animation":[16],"rootParams":[16],"root":[1],"push":[64],"insert":[64],"insertPages":[64],"pop":[64],"popTo":[64],"popToRoot":[64],"removeIndex":[64],"setRoot":[64],"setPages":[64],"setRouteId":[64],"getRouteId":[64],"getActive":[64],"getByIndex":[64],"canGoBack":[64],"getPrevious":[64],"getLength":[64]},null,{"swipeGesture":["swipeGestureChanged"],"root":["rootChanged"]}],[0,"ion-nav-link",{"component":[1],"componentProps":[16],"routerDirection":[1,"router-direction"],"routerAnimation":[16]}]]],["ion-textarea",[[38,"ion-textarea",{"color":[513],"autocapitalize":[1],"autofocus":[4],"clearOnEdit":[4,"clear-on-edit"],"debounce":[2],"disabled":[4],"fill":[1],"inputmode":[1],"enterkeyhint":[1],"maxlength":[2],"minlength":[2],"name":[1],"placeholder":[1],"readonly":[4],"required":[4],"spellcheck":[4],"cols":[514],"rows":[2],"wrap":[1],"autoGrow":[516,"auto-grow"],"value":[1025],"counter":[4],"counterFormatter":[16],"errorText":[1,"error-text"],"helperText":[1,"helper-text"],"label":[1],"labelPlacement":[1,"label-placement"],"shape":[1],"hasFocus":[32],"setFocus":[64],"getInputElement":[64]},null,{"debounce":["debounceChanged"],"value":["valueChanged"]}]]],["ion-backdrop",[[33,"ion-backdrop",{"visible":[4],"tappable":[4],"stopPropagation":[4,"stop-propagation"]},[[2,"click","onMouseDown"]]]]],["ion-loading",[[34,"ion-loading",{"overlayIndex":[2,"overlay-index"],"delegate":[16],"hasController":[4,"has-controller"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"message":[1],"cssClass":[1,"css-class"],"duration":[2],"backdropDismiss":[4,"backdrop-dismiss"],"showBackdrop":[4,"show-backdrop"],"spinner":[1025],"translucent":[4],"animated":[4],"htmlAttributes":[16],"isOpen":[4,"is-open"],"trigger":[1],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]},null,{"isOpen":["onIsOpenChange"],"trigger":["triggerChanged"]}]]],["ion-breadcrumb_2",[[33,"ion-breadcrumb",{"collapsed":[4],"last":[4],"showCollapsedIndicator":[4,"show-collapsed-indicator"],"color":[1],"active":[4],"disabled":[4],"download":[1],"href":[1],"rel":[1],"separator":[4],"target":[1],"routerDirection":[1,"router-direction"],"routerAnimation":[16]}],[33,"ion-breadcrumbs",{"color":[513],"maxItems":[2,"max-items"],"itemsBeforeCollapse":[2,"items-before-collapse"],"itemsAfterCollapse":[2,"items-after-collapse"],"collapsed":[32],"activeChanged":[32]},[[0,"collapsedClick","onCollapsedClick"]],{"maxItems":["maxItemsChanged"],"itemsBeforeCollapse":["maxItemsChanged"],"itemsAfterCollapse":["maxItemsChanged"]}]]],["ion-modal",[[33,"ion-modal",{"hasController":[4,"has-controller"],"overlayIndex":[2,"overlay-index"],"delegate":[16],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"breakpoints":[16],"initialBreakpoint":[2,"initial-breakpoint"],"backdropBreakpoint":[2,"backdrop-breakpoint"],"handle":[4],"handleBehavior":[1,"handle-behavior"],"component":[1],"componentProps":[16],"cssClass":[1,"css-class"],"backdropDismiss":[4,"backdrop-dismiss"],"showBackdrop":[4,"show-backdrop"],"animated":[4],"presentingElement":[16],"htmlAttributes":[16],"isOpen":[4,"is-open"],"trigger":[1],"keepContentsMounted":[4,"keep-contents-mounted"],"focusTrap":[4,"focus-trap"],"canDismiss":[4,"can-dismiss"],"presented":[32],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64],"setCurrentBreakpoint":[64],"getCurrentBreakpoint":[64]},null,{"isOpen":["onIsOpenChange"],"trigger":["triggerChanged"]}]]],["ion-route_4",[[0,"ion-route",{"url":[1],"component":[1],"componentProps":[16],"beforeLeave":[16],"beforeEnter":[16]},null,{"url":["onUpdate"],"component":["onUpdate"],"componentProps":["onComponentProps"]}],[0,"ion-route-redirect",{"from":[1],"to":[1]},null,{"from":["propDidChange"],"to":["propDidChange"]}],[0,"ion-router",{"root":[1],"useHash":[4,"use-hash"],"canTransition":[64],"push":[64],"back":[64],"printDebug":[64],"navChanged":[64]},[[8,"popstate","onPopState"],[4,"ionBackButton","onBackButton"]]],[1,"ion-router-link",{"color":[513],"href":[1],"rel":[1],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"target":[1]}]]],["ion-avatar_3",[[33,"ion-avatar"],[33,"ion-badge",{"color":[513]}],[1,"ion-thumbnail"]]],["ion-col_3",[[1,"ion-col",{"offset":[1],"offsetXs":[1,"offset-xs"],"offsetSm":[1,"offset-sm"],"offsetMd":[1,"offset-md"],"offsetLg":[1,"offset-lg"],"offsetXl":[1,"offset-xl"],"pull":[1],"pullXs":[1,"pull-xs"],"pullSm":[1,"pull-sm"],"pullMd":[1,"pull-md"],"pullLg":[1,"pull-lg"],"pullXl":[1,"pull-xl"],"push":[1],"pushXs":[1,"push-xs"],"pushSm":[1,"push-sm"],"pushMd":[1,"push-md"],"pushLg":[1,"push-lg"],"pushXl":[1,"push-xl"],"size":[1],"sizeXs":[1,"size-xs"],"sizeSm":[1,"size-sm"],"sizeMd":[1,"size-md"],"sizeLg":[1,"size-lg"],"sizeXl":[1,"size-xl"]},[[9,"resize","onResize"]]],[1,"ion-grid",{"fixed":[4]}],[1,"ion-row"]]],["ion-tab_2",[[1,"ion-tab",{"active":[1028],"delegate":[16],"tab":[1],"component":[1],"setActive":[64]},null,{"active":["changeActive"]}],[1,"ion-tabs",{"useRouter":[1028,"use-router"],"selectedTab":[32],"select":[64],"getTab":[64],"getSelected":[64],"setRouteId":[64],"getRouteId":[64]}]]],["ion-img",[[1,"ion-img",{"alt":[1],"src":[1],"loadSrc":[32],"loadError":[32]},null,{"src":["srcChanged"]}]]],["ion-progress-bar",[[33,"ion-progress-bar",{"type":[1],"reversed":[4],"value":[2],"buffer":[2],"color":[513]}]]],["ion-range",[[33,"ion-range",{"color":[513],"debounce":[2],"name":[1],"label":[1],"dualKnobs":[4,"dual-knobs"],"min":[2],"max":[2],"pin":[4],"pinFormatter":[16],"snaps":[4],"step":[2],"ticks":[4],"activeBarStart":[1026,"active-bar-start"],"disabled":[4],"value":[1026],"labelPlacement":[1,"label-placement"],"ratioA":[32],"ratioB":[32],"pressedKnob":[32]},null,{"debounce":["debounceChanged"],"min":["minChanged"],"max":["maxChanged"],"activeBarStart":["activeBarStartChanged"],"disabled":["disabledChanged"],"value":["valueChanged"]}]]],["ion-split-pane",[[33,"ion-split-pane",{"contentId":[513,"content-id"],"disabled":[4],"when":[8],"visible":[32],"isVisible":[64]},null,{"visible":["visibleChanged"],"disabled":["updateState"],"when":["updateState"]}]]],["ion-text",[[1,"ion-text",{"color":[513]}]]],["ion-select_3",[[33,"ion-select",{"cancelText":[1,"cancel-text"],"color":[513],"compareWith":[1,"compare-with"],"disabled":[4],"fill":[1],"interface":[1],"interfaceOptions":[8,"interface-options"],"justify":[1],"label":[1],"labelPlacement":[1,"label-placement"],"multiple":[4],"name":[1],"okText":[1,"ok-text"],"placeholder":[1],"selectedText":[1,"selected-text"],"toggleIcon":[1,"toggle-icon"],"expandedIcon":[1,"expanded-icon"],"shape":[1],"value":[1032],"isExpanded":[32],"open":[64]},null,{"disabled":["styleChanged"],"isExpanded":["styleChanged"],"placeholder":["styleChanged"],"value":["styleChanged"]}],[1,"ion-select-option",{"disabled":[4],"value":[8]}],[34,"ion-select-popover",{"header":[1],"subHeader":[1,"sub-header"],"message":[1],"multiple":[4],"options":[16]}]]],["ion-picker",[[33,"ion-picker",{"exitInputMode":[64]},[[1,"touchstart","preventTouchStartPropagation"]]]]],["ion-picker-column",[[1,"ion-picker-column",{"disabled":[4],"value":[1032],"color":[513],"numericInput":[4,"numeric-input"],"ariaLabel":[32],"isActive":[32],"scrollActiveItemIntoView":[64],"setValue":[64],"setFocus":[64]},null,{"aria-label":["ariaLabelChanged"],"value":["valueChange"]}]]],["ion-datetime_3",[[33,"ion-datetime",{"color":[1],"name":[1],"disabled":[4],"formatOptions":[16],"readonly":[4],"isDateEnabled":[16],"min":[1025],"max":[1025],"presentation":[1],"cancelText":[1,"cancel-text"],"doneText":[1,"done-text"],"clearText":[1,"clear-text"],"yearValues":[8,"year-values"],"monthValues":[8,"month-values"],"dayValues":[8,"day-values"],"hourValues":[8,"hour-values"],"minuteValues":[8,"minute-values"],"locale":[1],"firstDayOfWeek":[2,"first-day-of-week"],"titleSelectedDatesFormatter":[16],"multiple":[4],"highlightedDates":[16],"value":[1025],"showDefaultTitle":[4,"show-default-title"],"showDefaultButtons":[4,"show-default-buttons"],"showClearButton":[4,"show-clear-button"],"showDefaultTimeLabel":[4,"show-default-time-label"],"hourCycle":[1,"hour-cycle"],"size":[1],"preferWheel":[4,"prefer-wheel"],"showMonthAndYear":[32],"activeParts":[32],"workingParts":[32],"isTimePopoverOpen":[32],"forceRenderDate":[32],"confirm":[64],"reset":[64],"cancel":[64]},null,{"formatOptions":["formatOptionsChanged"],"disabled":["disabledChanged"],"min":["minChanged"],"max":["maxChanged"],"presentation":["presentationChanged"],"yearValues":["yearValuesChanged"],"monthValues":["monthValuesChanged"],"dayValues":["dayValuesChanged"],"hourValues":["hourValuesChanged"],"minuteValues":["minuteValuesChanged"],"value":["valueChanged"]}],[34,"ion-picker-legacy",{"overlayIndex":[2,"overlay-index"],"delegate":[16],"hasController":[4,"has-controller"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"buttons":[16],"columns":[16],"cssClass":[1,"css-class"],"duration":[2],"showBackdrop":[4,"show-backdrop"],"backdropDismiss":[4,"backdrop-dismiss"],"animated":[4],"htmlAttributes":[16],"isOpen":[4,"is-open"],"trigger":[1],"presented":[32],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64],"getColumn":[64]},null,{"isOpen":["onIsOpenChange"],"trigger":["triggerChanged"]}],[32,"ion-picker-legacy-column",{"col":[16]},null,{"col":["colChanged"]}]]],["ion-radio_2",[[33,"ion-radio",{"color":[513],"name":[1],"disabled":[4],"value":[8],"labelPlacement":[1,"label-placement"],"justify":[1],"alignment":[1],"checked":[32],"buttonTabindex":[32],"setFocus":[64],"setButtonTabindex":[64]},null,{"value":["valueChanged"]}],[0,"ion-radio-group",{"allowEmptySelection":[4,"allow-empty-selection"],"compareWith":[1,"compare-with"],"name":[1],"value":[1032]},[[4,"keydown","onKeydown"]],{"value":["valueChanged"]}]]],["ion-ripple-effect",[[1,"ion-ripple-effect",{"type":[1],"addRipple":[64]}]]],["ion-button_2",[[33,"ion-button",{"color":[513],"buttonType":[1025,"button-type"],"disabled":[516],"expand":[513],"fill":[1537],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"download":[1],"href":[1],"rel":[1],"shape":[513],"size":[513],"strong":[4],"target":[1],"type":[1],"form":[1],"isCircle":[32]},null,{"disabled":["disabledChanged"]}],[1,"ion-icon",{"mode":[1025],"color":[1],"ios":[1],"md":[1],"flipRtl":[4,"flip-rtl"],"name":[513],"src":[1],"icon":[8],"size":[1],"lazy":[4],"sanitize":[4],"svgContent":[32],"isVisible":[32]},null,{"name":["loadIcon"],"src":["loadIcon"],"icon":["loadIcon"],"ios":["loadIcon"],"md":["loadIcon"]}]]],["ion-action-sheet",[[34,"ion-action-sheet",{"overlayIndex":[2,"overlay-index"],"delegate":[16],"hasController":[4,"has-controller"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"buttons":[16],"cssClass":[1,"css-class"],"backdropDismiss":[4,"backdrop-dismiss"],"header":[1],"subHeader":[1,"sub-header"],"translucent":[4],"animated":[4],"htmlAttributes":[16],"isOpen":[4,"is-open"],"trigger":[1],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]},null,{"isOpen":["onIsOpenChange"],"trigger":["triggerChanged"]}]]],["ion-alert",[[34,"ion-alert",{"overlayIndex":[2,"overlay-index"],"delegate":[16],"hasController":[4,"has-controller"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"cssClass":[1,"css-class"],"header":[1],"subHeader":[1,"sub-header"],"message":[1],"buttons":[16],"inputs":[1040],"backdropDismiss":[4,"backdrop-dismiss"],"translucent":[4],"animated":[4],"htmlAttributes":[16],"isOpen":[4,"is-open"],"trigger":[1],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]},[[4,"keydown","onKeydown"]],{"isOpen":["onIsOpenChange"],"trigger":["triggerChanged"],"buttons":["buttonsChanged"],"inputs":["inputsChanged"]}]]],["ion-app_8",[[0,"ion-app",{"setFocus":[64]}],[1,"ion-content",{"color":[513],"fullscreen":[4],"fixedSlotPlacement":[1,"fixed-slot-placement"],"forceOverscroll":[1028,"force-overscroll"],"scrollX":[4,"scroll-x"],"scrollY":[4,"scroll-y"],"scrollEvents":[4,"scroll-events"],"getScrollElement":[64],"getBackgroundElement":[64],"scrollToTop":[64],"scrollToBottom":[64],"scrollByPoint":[64],"scrollToPoint":[64]},[[9,"resize","onResize"]]],[36,"ion-footer",{"collapse":[1],"translucent":[4],"keyboardVisible":[32]}],[36,"ion-header",{"collapse":[1],"translucent":[4]}],[1,"ion-router-outlet",{"mode":[1025],"delegate":[16],"animated":[4],"animation":[16],"swipeHandler":[16],"commit":[64],"setRouteId":[64],"getRouteId":[64]},null,{"swipeHandler":["swipeHandlerChanged"]}],[33,"ion-title",{"color":[513],"size":[1]},null,{"size":["sizeChanged"]}],[33,"ion-toolbar",{"color":[513]},[[0,"ionStyle","childrenStyle"]]],[38,"ion-buttons",{"collapse":[4]}]]],["ion-picker-column-option",[[33,"ion-picker-column-option",{"disabled":[4],"value":[8],"color":[513],"ariaLabel":[32]},null,{"aria-label":["onAriaLabelChange"]}]]],["ion-popover",[[33,"ion-popover",{"hasController":[4,"has-controller"],"delegate":[16],"overlayIndex":[2,"overlay-index"],"enterAnimation":[16],"leaveAnimation":[16],"component":[1],"componentProps":[16],"keyboardClose":[4,"keyboard-close"],"cssClass":[1,"css-class"],"backdropDismiss":[4,"backdrop-dismiss"],"event":[8],"showBackdrop":[4,"show-backdrop"],"translucent":[4],"animated":[4],"htmlAttributes":[16],"triggerAction":[1,"trigger-action"],"trigger":[1],"size":[1],"dismissOnSelect":[4,"dismiss-on-select"],"reference":[1],"side":[1],"alignment":[1025],"arrow":[4],"isOpen":[4,"is-open"],"keyboardEvents":[4,"keyboard-events"],"focusTrap":[4,"focus-trap"],"keepContentsMounted":[4,"keep-contents-mounted"],"presented":[32],"presentFromTrigger":[64],"present":[64],"dismiss":[64],"getParentPopover":[64],"onDidDismiss":[64],"onWillDismiss":[64]},null,{"trigger":["onTriggerChange"],"triggerAction":["onTriggerChange"],"isOpen":["onIsOpenChange"]}]]],["ion-checkbox",[[33,"ion-checkbox",{"color":[513],"name":[1],"checked":[1028],"indeterminate":[1028],"disabled":[4],"value":[8],"labelPlacement":[1,"label-placement"],"justify":[1],"alignment":[1]}]]],["ion-spinner",[[1,"ion-spinner",{"color":[513],"duration":[2],"name":[1],"paused":[4]}]]],["ion-item_8",[[33,"ion-item-divider",{"color":[513],"sticky":[4]}],[32,"ion-item-group"],[33,"ion-note",{"color":[513]}],[1,"ion-skeleton-text",{"animated":[4]}],[33,"ion-item",{"color":[513],"button":[4],"detail":[4],"detailIcon":[1,"detail-icon"],"disabled":[4],"download":[1],"href":[1],"rel":[1],"lines":[1],"routerAnimation":[16],"routerDirection":[1,"router-direction"],"target":[1],"type":[1],"multipleInputs":[32],"focusable":[32]},[[0,"ionColor","labelColorChanged"],[0,"ionStyle","itemStyle"]],{"button":["buttonChanged"]}],[38,"ion-label",{"color":[513],"position":[1],"noAnimate":[32]},null,{"color":["colorChanged"],"position":["positionChanged"]}],[32,"ion-list",{"lines":[1],"inset":[4],"closeSlidingItems":[64]}],[33,"ion-list-header",{"color":[513],"lines":[1]}]]]]'),ue)});return function(ue,M){return S.apply(this,arguments)}}(),ze=["*"],Tt=["outletContent"];let W=(()=>{var S;class H extends Oe.fL{constructor(M,fe){super(M,fe)}_handleInputEvent(M){this.handleValueChange(M,M.value)}}return S=H,(0,g.A)(H,"\u0275fac",function(M){return new(M||S)(d.rXU(d.zZn),d.rXU(d.aKT))}),(0,g.A)(H,"\u0275dir",d.FsC({type:S,selectors:[["ion-input",3,"type","number"],["ion-textarea"],["ion-searchbar"]],hostBindings:function(M,fe){1&M&&d.bIt("ionInput",function(ar){return fe._handleInputEvent(ar.target)})},features:[d.Jv_([{provide:ge.kq,useExisting:S,multi:!0}]),d.Vt3]})),H})();const te=(S,H)=>{const ue=S.prototype;H.forEach(M=>{Object.defineProperty(ue,M,{get(){return this.el[M]},set(fe){this.z.runOutsideAngular(()=>this.el[M]=fe)},configurable:!0})})},de=(S,H)=>{const ue=S.prototype;H.forEach(M=>{ue[M]=function(){const fe=arguments;return this.z.runOutsideAngular(()=>this.el[M].apply(this.el,fe))}})},ae=(S,H,ue)=>{ue.forEach(M=>S[M]=(0,Ee.R)(H,M))};function Ce(S){return function(ue){const{defineCustomElementFn:M,inputs:fe,methods:qe}=S;return void 0!==M&&M(),fe&&te(ue,fe),qe&&de(ue,qe),ue}}let bn=(()=>{var S;let H=((0,g.A)(S=class{constructor(M,fe,qe){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=qe,M.detach(),this.el=fe.nativeElement}},"\u0275fac",function(M){return new(M||S)(d.rXU(d.gRc),d.rXU(d.aKT),d.rXU(d.SKi))}),(0,g.A)(S,"\u0275cmp",d.VBU({type:S,selectors:[["ion-app"]],ngContentSelectors:ze,decls:1,vars:0,template:function(M,fe){1&M&&(d.NAR(),d.SdG(0))},encapsulation:2,changeDetection:0})),S);return H=(0,X.Cg)([Ce({})],H),H})(),Yn=(()=>{var S;let H=((0,g.A)(S=class{constructor(M,fe,qe){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=qe,M.detach(),this.el=fe.nativeElement,ae(this,this.el,["ionFocus","ionBlur"])}},"\u0275fac",function(M){return new(M||S)(d.rXU(d.gRc),d.rXU(d.aKT),d.rXU(d.SKi))}),(0,g.A)(S,"\u0275cmp",d.VBU({type:S,selectors:[["ion-button"]],inputs:{buttonType:"buttonType",color:"color",disabled:"disabled",download:"download",expand:"expand",fill:"fill",form:"form",href:"href",mode:"mode",rel:"rel",routerAnimation:"routerAnimation",routerDirection:"routerDirection",shape:"shape",size:"size",strong:"strong",target:"target",type:"type"},ngContentSelectors:ze,decls:1,vars:0,template:function(M,fe){1&M&&(d.NAR(),d.SdG(0))},encapsulation:2,changeDetection:0})),S);return H=(0,X.Cg)([Ce({inputs:["buttonType","color","disabled","download","expand","fill","form","href","mode","rel","routerAnimation","routerDirection","shape","size","strong","target","type"]})],H),H})(),yt=(()=>{var S;let H=((0,g.A)(S=class{constructor(M,fe,qe){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=qe,M.detach(),this.el=fe.nativeElement}},"\u0275fac",function(M){return new(M||S)(d.rXU(d.gRc),d.rXU(d.aKT),d.rXU(d.SKi))}),(0,g.A)(S,"\u0275cmp",d.VBU({type:S,selectors:[["ion-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:ze,decls:1,vars:0,template:function(M,fe){1&M&&(d.NAR(),d.SdG(0))},encapsulation:2,changeDetection:0})),S);return H=(0,X.Cg)([Ce({inputs:["button","color","disabled","download","href","mode","rel","routerAnimation","routerDirection","target","type"]})],H),H})(),Ot=(()=>{var S;let H=((0,g.A)(S=class{constructor(M,fe,qe){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=qe,M.detach(),this.el=fe.nativeElement}},"\u0275fac",function(M){return new(M||S)(d.rXU(d.gRc),d.rXU(d.aKT),d.rXU(d.SKi))}),(0,g.A)(S,"\u0275cmp",d.VBU({type:S,selectors:[["ion-card-content"]],inputs:{mode:"mode"},ngContentSelectors:ze,decls:1,vars:0,template:function(M,fe){1&M&&(d.NAR(),d.SdG(0))},encapsulation:2,changeDetection:0})),S);return H=(0,X.Cg)([Ce({inputs:["mode"]})],H),H})(),Xt=(()=>{var S;let H=((0,g.A)(S=class{constructor(M,fe,qe){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=qe,M.detach(),this.el=fe.nativeElement}},"\u0275fac",function(M){return new(M||S)(d.rXU(d.gRc),d.rXU(d.aKT),d.rXU(d.SKi))}),(0,g.A)(S,"\u0275cmp",d.VBU({type:S,selectors:[["ion-card-header"]],inputs:{color:"color",mode:"mode",translucent:"translucent"},ngContentSelectors:ze,decls:1,vars:0,template:function(M,fe){1&M&&(d.NAR(),d.SdG(0))},encapsulation:2,changeDetection:0})),S);return H=(0,X.Cg)([Ce({inputs:["color","mode","translucent"]})],H),H})(),Ir=(()=>{var S;let H=((0,g.A)(S=class{constructor(M,fe,qe){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=qe,M.detach(),this.el=fe.nativeElement}},"\u0275fac",function(M){return new(M||S)(d.rXU(d.gRc),d.rXU(d.aKT),d.rXU(d.SKi))}),(0,g.A)(S,"\u0275cmp",d.VBU({type:S,selectors:[["ion-card-title"]],inputs:{color:"color",mode:"mode"},ngContentSelectors:ze,decls:1,vars:0,template:function(M,fe){1&M&&(d.NAR(),d.SdG(0))},encapsulation:2,changeDetection:0})),S);return H=(0,X.Cg)([Ce({inputs:["color","mode"]})],H),H})(),Jt=(()=>{var S;let H=((0,g.A)(S=class{constructor(M,fe,qe){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=qe,M.detach(),this.el=fe.nativeElement}},"\u0275fac",function(M){return new(M||S)(d.rXU(d.gRc),d.rXU(d.aKT),d.rXU(d.SKi))}),(0,g.A)(S,"\u0275cmp",d.VBU({type:S,selectors:[["ion-col"]],inputs:{offset:"offset",offsetLg:"offsetLg",offsetMd:"offsetMd",offsetSm:"offsetSm",offsetXl:"offsetXl",offsetXs:"offsetXs",pull:"pull",pullLg:"pullLg",pullMd:"pullMd",pullSm:"pullSm",pullXl:"pullXl",pullXs:"pullXs",push:"push",pushLg:"pushLg",pushMd:"pushMd",pushSm:"pushSm",pushXl:"pushXl",pushXs:"pushXs",size:"size",sizeLg:"sizeLg",sizeMd:"sizeMd",sizeSm:"sizeSm",sizeXl:"sizeXl",sizeXs:"sizeXs"},ngContentSelectors:ze,decls:1,vars:0,template:function(M,fe){1&M&&(d.NAR(),d.SdG(0))},encapsulation:2,changeDetection:0})),S);return H=(0,X.Cg)([Ce({inputs:["offset","offsetLg","offsetMd","offsetSm","offsetXl","offsetXs","pull","pullLg","pullMd","pullSm","pullXl","pullXs","push","pushLg","pushMd","pushSm","pushXl","pushXs","size","sizeLg","sizeMd","sizeSm","sizeXl","sizeXs"]})],H),H})(),Gt=(()=>{var S;let H=((0,g.A)(S=class{constructor(M,fe,qe){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=qe,M.detach(),this.el=fe.nativeElement,ae(this,this.el,["ionScrollStart","ionScroll","ionScrollEnd"])}},"\u0275fac",function(M){return new(M||S)(d.rXU(d.gRc),d.rXU(d.aKT),d.rXU(d.SKi))}),(0,g.A)(S,"\u0275cmp",d.VBU({type:S,selectors:[["ion-content"]],inputs:{color:"color",fixedSlotPlacement:"fixedSlotPlacement",forceOverscroll:"forceOverscroll",fullscreen:"fullscreen",scrollEvents:"scrollEvents",scrollX:"scrollX",scrollY:"scrollY"},ngContentSelectors:ze,decls:1,vars:0,template:function(M,fe){1&M&&(d.NAR(),d.SdG(0))},encapsulation:2,changeDetection:0})),S);return H=(0,X.Cg)([Ce({inputs:["color","fixedSlotPlacement","forceOverscroll","fullscreen","scrollEvents","scrollX","scrollY"],methods:["getScrollElement","scrollToTop","scrollToBottom","scrollByPoint","scrollToPoint"]})],H),H})(),ni=(()=>{var S;let H=((0,g.A)(S=class{constructor(M,fe,qe){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=qe,M.detach(),this.el=fe.nativeElement}},"\u0275fac",function(M){return new(M||S)(d.rXU(d.gRc),d.rXU(d.aKT),d.rXU(d.SKi))}),(0,g.A)(S,"\u0275cmp",d.VBU({type:S,selectors:[["ion-grid"]],inputs:{fixed:"fixed"},ngContentSelectors:ze,decls:1,vars:0,template:function(M,fe){1&M&&(d.NAR(),d.SdG(0))},encapsulation:2,changeDetection:0})),S);return H=(0,X.Cg)([Ce({inputs:["fixed"]})],H),H})(),Zn=(()=>{var S;let H=((0,g.A)(S=class{constructor(M,fe,qe){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=qe,M.detach(),this.el=fe.nativeElement}},"\u0275fac",function(M){return new(M||S)(d.rXU(d.gRc),d.rXU(d.aKT),d.rXU(d.SKi))}),(0,g.A)(S,"\u0275cmp",d.VBU({type:S,selectors:[["ion-header"]],inputs:{collapse:"collapse",mode:"mode",translucent:"translucent"},ngContentSelectors:ze,decls:1,vars:0,template:function(M,fe){1&M&&(d.NAR(),d.SdG(0))},encapsulation:2,changeDetection:0})),S);return H=(0,X.Cg)([Ce({inputs:["collapse","mode","translucent"]})],H),H})(),wn=(()=>{var S;let H=((0,g.A)(S=class{constructor(M,fe,qe){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=qe,M.detach(),this.el=fe.nativeElement}},"\u0275fac",function(M){return new(M||S)(d.rXU(d.gRc),d.rXU(d.aKT),d.rXU(d.SKi))}),(0,g.A)(S,"\u0275cmp",d.VBU({type:S,selectors:[["ion-icon"]],inputs:{color:"color",flipRtl:"flipRtl",icon:"icon",ios:"ios",lazy:"lazy",md:"md",mode:"mode",name:"name",sanitize:"sanitize",size:"size",src:"src"},ngContentSelectors:ze,decls:1,vars:0,template:function(M,fe){1&M&&(d.NAR(),d.SdG(0))},encapsulation:2,changeDetection:0})),S);return H=(0,X.Cg)([Ce({inputs:["color","flipRtl","icon","ios","lazy","md","mode","name","sanitize","size","src"]})],H),H})(),Mi=(()=>{var S;let H=((0,g.A)(S=class{constructor(M,fe,qe){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=qe,M.detach(),this.el=fe.nativeElement,ae(this,this.el,["ionInput","ionChange","ionBlur","ionFocus"])}},"\u0275fac",function(M){return new(M||S)(d.rXU(d.gRc),d.rXU(d.aKT),d.rXU(d.SKi))}),(0,g.A)(S,"\u0275cmp",d.VBU({type:S,selectors:[["ion-input"]],inputs:{autocapitalize:"autocapitalize",autocomplete:"autocomplete",autocorrect:"autocorrect",autofocus:"autofocus",clearInput:"clearInput",clearInputIcon:"clearInputIcon",clearOnEdit:"clearOnEdit",color:"color",counter:"counter",counterFormatter:"counterFormatter",debounce:"debounce",disabled:"disabled",enterkeyhint:"enterkeyhint",errorText:"errorText",fill:"fill",helperText:"helperText",inputmode:"inputmode",label:"label",labelPlacement:"labelPlacement",max:"max",maxlength:"maxlength",min:"min",minlength:"minlength",mode:"mode",multiple:"multiple",name:"name",pattern:"pattern",placeholder:"placeholder",readonly:"readonly",required:"required",shape:"shape",spellcheck:"spellcheck",step:"step",type:"type",value:"value"},ngContentSelectors:ze,decls:1,vars:0,template:function(M,fe){1&M&&(d.NAR(),d.SdG(0))},encapsulation:2,changeDetection:0})),S);return H=(0,X.Cg)([Ce({inputs:["autocapitalize","autocomplete","autocorrect","autofocus","clearInput","clearInputIcon","clearOnEdit","color","counter","counterFormatter","debounce","disabled","enterkeyhint","errorText","fill","helperText","inputmode","label","labelPlacement","max","maxlength","min","minlength","mode","multiple","name","pattern","placeholder","readonly","required","shape","spellcheck","step","type","value"],methods:["setFocus","getInputElement"]})],H),H})(),Yr=(()=>{var S;let H=((0,g.A)(S=class{constructor(M,fe,qe){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=qe,M.detach(),this.el=fe.nativeElement}},"\u0275fac",function(M){return new(M||S)(d.rXU(d.gRc),d.rXU(d.aKT),d.rXU(d.SKi))}),(0,g.A)(S,"\u0275cmp",d.VBU({type:S,selectors:[["ion-item"]],inputs:{button:"button",color:"color",detail:"detail",detailIcon:"detailIcon",disabled:"disabled",download:"download",href:"href",lines:"lines",mode:"mode",rel:"rel",routerAnimation:"routerAnimation",routerDirection:"routerDirection",target:"target",type:"type"},ngContentSelectors:ze,decls:1,vars:0,template:function(M,fe){1&M&&(d.NAR(),d.SdG(0))},encapsulation:2,changeDetection:0})),S);return H=(0,X.Cg)([Ce({inputs:["button","color","detail","detailIcon","disabled","download","href","lines","mode","rel","routerAnimation","routerDirection","target","type"]})],H),H})(),oe=(()=>{var S;let H=((0,g.A)(S=class{constructor(M,fe,qe){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=qe,M.detach(),this.el=fe.nativeElement}},"\u0275fac",function(M){return new(M||S)(d.rXU(d.gRc),d.rXU(d.aKT),d.rXU(d.SKi))}),(0,g.A)(S,"\u0275cmp",d.VBU({type:S,selectors:[["ion-item-divider"]],inputs:{color:"color",mode:"mode",sticky:"sticky"},ngContentSelectors:ze,decls:1,vars:0,template:function(M,fe){1&M&&(d.NAR(),d.SdG(0))},encapsulation:2,changeDetection:0})),S);return H=(0,X.Cg)([Ce({inputs:["color","mode","sticky"]})],H),H})(),he=(()=>{var S;let H=((0,g.A)(S=class{constructor(M,fe,qe){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=qe,M.detach(),this.el=fe.nativeElement}},"\u0275fac",function(M){return new(M||S)(d.rXU(d.gRc),d.rXU(d.aKT),d.rXU(d.SKi))}),(0,g.A)(S,"\u0275cmp",d.VBU({type:S,selectors:[["ion-label"]],inputs:{color:"color",mode:"mode",position:"position"},ngContentSelectors:ze,decls:1,vars:0,template:function(M,fe){1&M&&(d.NAR(),d.SdG(0))},encapsulation:2,changeDetection:0})),S);return H=(0,X.Cg)([Ce({inputs:["color","mode","position"]})],H),H})(),Pe=(()=>{var S;let H=((0,g.A)(S=class{constructor(M,fe,qe){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=qe,M.detach(),this.el=fe.nativeElement}},"\u0275fac",function(M){return new(M||S)(d.rXU(d.gRc),d.rXU(d.aKT),d.rXU(d.SKi))}),(0,g.A)(S,"\u0275cmp",d.VBU({type:S,selectors:[["ion-list"]],inputs:{inset:"inset",lines:"lines",mode:"mode"},ngContentSelectors:ze,decls:1,vars:0,template:function(M,fe){1&M&&(d.NAR(),d.SdG(0))},encapsulation:2,changeDetection:0})),S);return H=(0,X.Cg)([Ce({inputs:["inset","lines","mode"],methods:["closeSlidingItems"]})],H),H})(),dn=(()=>{var S;let H=((0,g.A)(S=class{constructor(M,fe,qe){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=qe,M.detach(),this.el=fe.nativeElement,ae(this,this.el,["ionWillOpen","ionWillClose","ionDidOpen","ionDidClose"])}},"\u0275fac",function(M){return new(M||S)(d.rXU(d.gRc),d.rXU(d.aKT),d.rXU(d.SKi))}),(0,g.A)(S,"\u0275cmp",d.VBU({type:S,selectors:[["ion-menu"]],inputs:{contentId:"contentId",disabled:"disabled",maxEdgeStart:"maxEdgeStart",menuId:"menuId",side:"side",swipeGesture:"swipeGesture",type:"type"},ngContentSelectors:ze,decls:1,vars:0,template:function(M,fe){1&M&&(d.NAR(),d.SdG(0))},encapsulation:2,changeDetection:0})),S);return H=(0,X.Cg)([Ce({inputs:["contentId","disabled","maxEdgeStart","menuId","side","swipeGesture","type"],methods:["isOpen","isActive","open","close","toggle","setOpen"]})],H),H})(),Sn=(()=>{var S;let H=((0,g.A)(S=class{constructor(M,fe,qe){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=qe,M.detach(),this.el=fe.nativeElement}},"\u0275fac",function(M){return new(M||S)(d.rXU(d.gRc),d.rXU(d.aKT),d.rXU(d.SKi))}),(0,g.A)(S,"\u0275cmp",d.VBU({type:S,selectors:[["ion-menu-button"]],inputs:{autoHide:"autoHide",color:"color",disabled:"disabled",menu:"menu",mode:"mode",type:"type"},ngContentSelectors:ze,decls:1,vars:0,template:function(M,fe){1&M&&(d.NAR(),d.SdG(0))},encapsulation:2,changeDetection:0})),S);return H=(0,X.Cg)([Ce({inputs:["autoHide","color","disabled","menu","mode","type"]})],H),H})(),Wn=(()=>{var S;let H=((0,g.A)(S=class{constructor(M,fe,qe){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=qe,M.detach(),this.el=fe.nativeElement}},"\u0275fac",function(M){return new(M||S)(d.rXU(d.gRc),d.rXU(d.aKT),d.rXU(d.SKi))}),(0,g.A)(S,"\u0275cmp",d.VBU({type:S,selectors:[["ion-menu-toggle"]],inputs:{autoHide:"autoHide",menu:"menu"},ngContentSelectors:ze,decls:1,vars:0,template:function(M,fe){1&M&&(d.NAR(),d.SdG(0))},encapsulation:2,changeDetection:0})),S);return H=(0,X.Cg)([Ce({inputs:["autoHide","menu"]})],H),H})(),or=(()=>{var S;let H=((0,g.A)(S=class{constructor(M,fe,qe){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=qe,M.detach(),this.el=fe.nativeElement,ae(this,this.el,["ionRefresh","ionPull","ionStart"])}},"\u0275fac",function(M){return new(M||S)(d.rXU(d.gRc),d.rXU(d.aKT),d.rXU(d.SKi))}),(0,g.A)(S,"\u0275cmp",d.VBU({type:S,selectors:[["ion-refresher"]],inputs:{closeDuration:"closeDuration",disabled:"disabled",mode:"mode",pullFactor:"pullFactor",pullMax:"pullMax",pullMin:"pullMin",snapbackDuration:"snapbackDuration"},ngContentSelectors:ze,decls:1,vars:0,template:function(M,fe){1&M&&(d.NAR(),d.SdG(0))},encapsulation:2,changeDetection:0})),S);return H=(0,X.Cg)([Ce({inputs:["closeDuration","disabled","mode","pullFactor","pullMax","pullMin","snapbackDuration"],methods:["complete","cancel","getProgress"]})],H),H})(),Hi=(()=>{var S;let H=((0,g.A)(S=class{constructor(M,fe,qe){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=qe,M.detach(),this.el=fe.nativeElement}},"\u0275fac",function(M){return new(M||S)(d.rXU(d.gRc),d.rXU(d.aKT),d.rXU(d.SKi))}),(0,g.A)(S,"\u0275cmp",d.VBU({type:S,selectors:[["ion-refresher-content"]],inputs:{pullingIcon:"pullingIcon",pullingText:"pullingText",refreshingSpinner:"refreshingSpinner",refreshingText:"refreshingText"},ngContentSelectors:ze,decls:1,vars:0,template:function(M,fe){1&M&&(d.NAR(),d.SdG(0))},encapsulation:2,changeDetection:0})),S);return H=(0,X.Cg)([Ce({inputs:["pullingIcon","pullingText","refreshingSpinner","refreshingText"]})],H),H})(),lt=(()=>{var S;let H=((0,g.A)(S=class{constructor(M,fe,qe){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=qe,M.detach(),this.el=fe.nativeElement}},"\u0275fac",function(M){return new(M||S)(d.rXU(d.gRc),d.rXU(d.aKT),d.rXU(d.SKi))}),(0,g.A)(S,"\u0275cmp",d.VBU({type:S,selectors:[["ion-row"]],ngContentSelectors:ze,decls:1,vars:0,template:function(M,fe){1&M&&(d.NAR(),d.SdG(0))},encapsulation:2,changeDetection:0})),S);return H=(0,X.Cg)([Ce({})],H),H})(),Se=(()=>{var S;let H=((0,g.A)(S=class{constructor(M,fe,qe){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=qe,M.detach(),this.el=fe.nativeElement,ae(this,this.el,["ionSplitPaneVisible"])}},"\u0275fac",function(M){return new(M||S)(d.rXU(d.gRc),d.rXU(d.aKT),d.rXU(d.SKi))}),(0,g.A)(S,"\u0275cmp",d.VBU({type:S,selectors:[["ion-split-pane"]],inputs:{contentId:"contentId",disabled:"disabled",when:"when"},ngContentSelectors:ze,decls:1,vars:0,template:function(M,fe){1&M&&(d.NAR(),d.SdG(0))},encapsulation:2,changeDetection:0})),S);return H=(0,X.Cg)([Ce({inputs:["contentId","disabled","when"]})],H),H})(),Hn=(()=>{var S;let H=((0,g.A)(S=class{constructor(M,fe,qe){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=qe,M.detach(),this.el=fe.nativeElement}},"\u0275fac",function(M){return new(M||S)(d.rXU(d.gRc),d.rXU(d.aKT),d.rXU(d.SKi))}),(0,g.A)(S,"\u0275cmp",d.VBU({type:S,selectors:[["ion-title"]],inputs:{color:"color",size:"size"},ngContentSelectors:ze,decls:1,vars:0,template:function(M,fe){1&M&&(d.NAR(),d.SdG(0))},encapsulation:2,changeDetection:0})),S);return H=(0,X.Cg)([Ce({inputs:["color","size"]})],H),H})(),Pi=(()=>{var S;let H=((0,g.A)(S=class{constructor(M,fe,qe){(0,g.A)(this,"z",void 0),(0,g.A)(this,"el",void 0),this.z=qe,M.detach(),this.el=fe.nativeElement}},"\u0275fac",function(M){return new(M||S)(d.rXU(d.gRc),d.rXU(d.aKT),d.rXU(d.SKi))}),(0,g.A)(S,"\u0275cmp",d.VBU({type:S,selectors:[["ion-toolbar"]],inputs:{color:"color",mode:"mode"},ngContentSelectors:ze,decls:1,vars:0,template:function(M,fe){1&M&&(d.NAR(),d.SdG(0))},encapsulation:2,changeDetection:0})),S);return H=(0,X.Cg)([Ce({inputs:["color","mode"]})],H),H})(),xr=(()=>{var S;class H extends Oe.Rg{constructor(M,fe,qe,ar,ui,U,ne,Ae){super(M,fe,qe,ar,ui,U,ne,Ae),(0,g.A)(this,"parentOutlet",void 0),(0,g.A)(this,"outletContent",void 0),this.parentOutlet=Ae}}return S=H,(0,g.A)(H,"\u0275fac",function(M){return new(M||S)(d.kS0("name"),d.kS0("tabs"),d.rXU(re.aZ),d.rXU(d.aKT),d.rXU(Ze.Ix),d.rXU(d.SKi),d.rXU(Ze.nX),d.rXU(S,12))}),(0,g.A)(H,"\u0275cmp",d.VBU({type:S,selectors:[["ion-router-outlet"]],viewQuery:function(M,fe){if(1&M&&d.GBs(Tt,7,d.c1b),2&M){let qe;d.mGM(qe=d.lsd())&&(fe.outletContent=qe.first)}},features:[d.Vt3],ngContentSelectors:ze,decls:3,vars:0,consts:[["outletContent",""]],template:function(M,fe){1&M&&(d.NAR(),d.qex(0,null,0),d.SdG(2),d.bVm())},encapsulation:2})),H})(),Si=(()=>{var S;class H extends Oe.CE{}return S=H,(0,g.A)(H,"\u0275fac",(()=>{let ue;return function(fe){return(ue||(ue=d.xGo(S)))(fe||S)}})()),(0,g.A)(H,"\u0275dir",d.FsC({type:S,selectors:[["","routerLink","",5,"a",5,"area"]],features:[d.Vt3]})),H})(),ti=(()=>{var S;class H extends Oe.pF{}return S=H,(0,g.A)(H,"\u0275fac",(()=>{let ue;return function(fe){return(ue||(ue=d.xGo(S)))(fe||S)}})()),(0,g.A)(H,"\u0275dir",d.FsC({type:S,selectors:[["a","routerLink",""],["area","routerLink",""]],features:[d.Vt3]})),H})();const Nn={provide:ge.cz,useExisting:(0,d.Rfq)(()=>kn),multi:!0};let kn=(()=>{var S;class H extends ge.zX{}return S=H,(0,g.A)(H,"\u0275fac",(()=>{let ue;return function(fe){return(ue||(ue=d.xGo(S)))(fe||S)}})()),(0,g.A)(H,"\u0275dir",d.FsC({type:S,selectors:[["ion-input","type","number","max","","formControlName",""],["ion-input","type","number","max","","formControl",""],["ion-input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(M,fe){2&M&&d.BMQ("max",fe._enabled?fe.max:null)},features:[d.Jv_([Nn]),d.Vt3]})),H})();const ko={provide:ge.cz,useExisting:(0,d.Rfq)(()=>ei),multi:!0};let ei=(()=>{var S;class H extends ge.VZ{}return S=H,(0,g.A)(H,"\u0275fac",(()=>{let ue;return function(fe){return(ue||(ue=d.xGo(S)))(fe||S)}})()),(0,g.A)(H,"\u0275dir",d.FsC({type:S,selectors:[["ion-input","type","number","min","","formControlName",""],["ion-input","type","number","min","","formControl",""],["ion-input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(M,fe){2&M&&d.BMQ("min",fe._enabled?fe.min:null)},features:[d.Jv_([ko]),d.Vt3]})),H})(),Bi=(()=>{var S;class H extends Oe.Kb{constructor(){super(ut.a)}}return S=H,(0,g.A)(H,"\u0275fac",function(M){return new(M||S)}),(0,g.A)(H,"\u0275prov",d.jDH({token:S,factory:S.\u0275fac,providedIn:"root"})),H})(),sr=(()=>{var S;class H extends Oe.Kb{constructor(){super(ut.l)}}return S=H,(0,g.A)(H,"\u0275fac",function(M){return new(M||S)}),(0,g.A)(H,"\u0275prov",d.jDH({token:S,factory:S.\u0275fac,providedIn:"root"})),H})(),Or=(()=>{var S;class H extends Oe._t{constructor(){super(ft.m)}}return S=H,(0,g.A)(H,"\u0275fac",function(M){return new(M||S)}),(0,g.A)(H,"\u0275prov",d.jDH({token:S,factory:S.\u0275fac,providedIn:"root"})),H})(),ai=(()=>{var S;class H extends Oe.Kb{constructor(){super(ut.m),(0,g.A)(this,"angularDelegate",(0,d.WQX)(Oe.Yq)),(0,g.A)(this,"injector",(0,d.WQX)(d.zZn)),(0,g.A)(this,"environmentInjector",(0,d.WQX)(d.uvJ))}create(M){return super.create({...M,delegate:this.angularDelegate.create(this.environmentInjector,this.injector,"modal")})}}return S=H,(0,g.A)(H,"\u0275fac",function(M){return new(M||S)}),(0,g.A)(H,"\u0275prov",d.jDH({token:S,factory:S.\u0275fac})),H})();class Fo extends Oe.Kb{constructor(){super(ut.c),(0,g.A)(this,"angularDelegate",(0,d.WQX)(Oe.Yq)),(0,g.A)(this,"injector",(0,d.WQX)(d.zZn)),(0,g.A)(this,"environmentInjector",(0,d.WQX)(d.uvJ))}create(H){return super.create({...H,delegate:this.angularDelegate.create(this.environmentInjector,this.injector,"popover")})}}const Co=(S,H,ue)=>()=>{const M=H.defaultView;if(M&&typeof window<"u"){(0,Qe.s)({...S,_zoneGate:qe=>ue.run(qe)});const fe="__zone_symbol__addEventListener"in H.body?"__zone_symbol__addEventListener":"addEventListener";return function je(){var S=[];if(typeof window<"u"){var H=window;(!H.customElements||H.Element&&(!H.Element.prototype.closest||!H.Element.prototype.matches||!H.Element.prototype.remove||!H.Element.prototype.getRootNode))&&S.push(B.e(7278).then(B.t.bind(B,2190,23))),("function"!=typeof Object.assign||!Object.entries||!Array.prototype.find||!Array.prototype.includes||!String.prototype.startsWith||!String.prototype.endsWith||H.NodeList&&!H.NodeList.prototype.forEach||!H.fetch||!function(){try{var M=new URL("b","http://a");return M.pathname="c%20d","http://a/c%20d"===M.href&&M.searchParams}catch{return!1}}()||typeof WeakMap>"u")&&S.push(B.e(9329).then(B.t.bind(B,7783,23)))}return Promise.all(S)}().then(()=>xt(M,{exclude:["ion-tabs","ion-tab"],syncQueue:!0,raf:Oe.er,jmp:qe=>ue.runOutsideAngular(qe),ael(qe,ar,ui,U){qe[fe](ar,ui,U)},rel(qe,ar,ui,U){qe.removeEventListener(ar,ui,U)}}))}};let Ni=(()=>{var S;class H{static forRoot(M={}){return{ngModule:H,providers:[{provide:Oe.sR,useValue:M},{provide:d.hnV,useFactory:Co,multi:!0,deps:[Oe.sR,re.qQ,d.SKi]},Oe.Yq,(0,Oe.YV)()]}}}return S=H,(0,g.A)(H,"\u0275fac",function(M){return new(M||S)}),(0,g.A)(H,"\u0275mod",d.$C({type:S})),(0,g.A)(H,"\u0275inj",d.G2t({providers:[ai,Fo],imports:[re.MD]})),H})()},2214:(En,bt,B)=>{"use strict";B.d(bt,{Dk:()=>g.Dk,KO:()=>g.KO,Sx:()=>g.Sx,Wp:()=>g.Wp});var g=B(7852);(0,g.KO)("firebase","10.12.2","app")},467:(En,bt,B)=>{"use strict";function g(ge,Oe,X,Ee,re,Ze,Je){try{var De=ge[Ze](Je),ye=De.value}catch(Fe){return void X(Fe)}De.done?Oe(ye):Promise.resolve(ye).then(Ee,re)}function d(ge){return function(){var Oe=this,X=arguments;return new Promise(function(Ee,re){var Ze=ge.apply(Oe,X);function Je(ye){g(Ze,Ee,re,Je,De,"next",ye)}function De(ye){g(Ze,Ee,re,Je,De,"throw",ye)}Je(void 0)})}}B.d(bt,{A:()=>d})},9842:(En,bt,B)=>{"use strict";function g(X){return(g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(Ee){return typeof Ee}:function(Ee){return Ee&&"function"==typeof Symbol&&Ee.constructor===Symbol&&Ee!==Symbol.prototype?"symbol":typeof Ee})(X)}function Oe(X,Ee,re){return(Ee=function ge(X){var Ee=function d(X,Ee){if("object"!=g(X)||!X)return X;var re=X[Symbol.toPrimitive];if(void 0!==re){var Ze=re.call(X,Ee||"default");if("object"!=g(Ze))return Ze;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===Ee?String:Number)(X)}(X,"string");return"symbol"==g(Ee)?Ee:String(Ee)}(Ee))in X?Object.defineProperty(X,Ee,{value:re,enumerable:!0,configurable:!0,writable:!0}):X[Ee]=re,X}B.d(bt,{A:()=>Oe})},1635:(En,bt,B)=>{"use strict";function Oe(j,W){var te={};for(var de in j)Object.prototype.hasOwnProperty.call(j,de)&&W.indexOf(de)<0&&(te[de]=j[de]);if(null!=j&&"function"==typeof Object.getOwnPropertySymbols){var ae=0;for(de=Object.getOwnPropertySymbols(j);ae=0;at--)(Ce=j[at])&&(me=(ae<3?Ce(me):ae>3?Ce(W,te,me):Ce(W,te))||me);return ae>3&&me&&Object.defineProperty(W,te,me),me}function Fe(j,W,te,de){return new(te||(te=Promise))(function(me,Ce){function at(vn){try{Bt(de.next(vn))}catch(bn){Ce(bn)}}function kt(vn){try{Bt(de.throw(vn))}catch(bn){Ce(bn)}}function Bt(vn){vn.done?me(vn.value):function ae(me){return me instanceof te?me:new te(function(Ce){Ce(me)})}(vn.value).then(at,kt)}Bt((de=de.apply(j,W||[])).next())})}function vt(j){return this instanceof vt?(this.v=j,this):new vt(j)}function Me(j,W,te){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var ae,de=te.apply(j,W||[]),me=[];return ae={},Ce("next"),Ce("throw"),Ce("return"),ae[Symbol.asyncIterator]=function(){return this},ae;function Ce($n){de[$n]&&(ae[$n]=function(qn){return new Promise(function(er,yn){me.push([$n,qn,er,yn])>1||at($n,qn)})})}function at($n,qn){try{!function kt($n){$n.value instanceof vt?Promise.resolve($n.value.v).then(Bt,vn):bn(me[0][2],$n)}(de[$n](qn))}catch(er){bn(me[0][3],er)}}function Bt($n){at("next",$n)}function vn($n){at("throw",$n)}function bn($n,qn){$n(qn),me.shift(),me.length&&at(me[0][0],me[0][1])}}function Ke(j){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var te,W=j[Symbol.asyncIterator];return W?W.call(j):(j=function ft(j){var W="function"==typeof Symbol&&Symbol.iterator,te=W&&j[W],de=0;if(te)return te.call(j);if(j&&"number"==typeof j.length)return{next:function(){return j&&de>=j.length&&(j=void 0),{value:j&&j[de++],done:!j}}};throw new TypeError(W?"Object is not iterable.":"Symbol.iterator is not defined.")}(j),te={},de("next"),de("throw"),de("return"),te[Symbol.asyncIterator]=function(){return this},te);function de(me){te[me]=j[me]&&function(Ce){return new Promise(function(at,kt){!function ae(me,Ce,at,kt){Promise.resolve(kt).then(function(Bt){me({value:Bt,done:at})},Ce)}(at,kt,(Ce=j[me](Ce)).done,Ce.value)})}}}B.d(bt,{AQ:()=>Me,Cg:()=>X,N3:()=>vt,Tt:()=>Oe,sH:()=>Fe,xN:()=>Ke}),"function"==typeof SuppressedError&&SuppressedError}},En=>{En(En.s=63)}]); \ No newline at end of file diff --git a/www/runtime.8bad42db667896fb.js b/www/runtime.8bad42db667896fb.js new file mode 100644 index 0000000..5b22031 --- /dev/null +++ b/www/runtime.8bad42db667896fb.js @@ -0,0 +1 @@ +(()=>{"use strict";var e,v={},g={};function t(e){var r=g[e];if(void 0!==r)return r.exports;var a=g[e]={exports:{}};return v[e].call(a.exports,a,a.exports,t),a.exports}t.m=v,e=[],t.O=(r,a,d,b)=>{if(!a){var f=1/0;for(c=0;c=b)&&Object.keys(t.O).every(p=>t.O[p](a[n]))?a.splice(n--,1):(l=!1,b0&&e[c-1][2]>b;c--)e[c]=e[c-1];e[c]=[a,d,b]},t.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return t.d(r,{a:r}),r},(()=>{var r,e=Object.getPrototypeOf?a=>Object.getPrototypeOf(a):a=>a.__proto__;t.t=function(a,d){if(1&d&&(a=this(a)),8&d||"object"==typeof a&&a&&(4&d&&a.__esModule||16&d&&"function"==typeof a.then))return a;var b=Object.create(null);t.r(b);var c={};r=r||[null,e({}),e([]),e(e)];for(var f=2&d&&a;"object"==typeof f&&!~r.indexOf(f);f=e(f))Object.getOwnPropertyNames(f).forEach(l=>c[l]=()=>a[l]);return c.default=()=>a,t.d(b,c),b}})(),t.d=(e,r)=>{for(var a in r)t.o(r,a)&&!t.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:r[a]})},t.f={},t.e=e=>Promise.all(Object.keys(t.f).reduce((r,a)=>(t.f[a](e,r),r),[])),t.u=e=>(({2076:"common",7278:"polyfills-dom",9329:"polyfills-core-js"}[e]||e)+"."+{246:"c15d38b2d882140a",441:"c8d135e5d56e5723",839:"bc5a14a8b82682d9",964:"466b88054b5c618c",1049:"7ef232095c56e4df",1102:"010dfe13f6ca7e15",1293:"ee80f2d33790618d",1459:"32c41a59c0fd4cf1",1577:"f6f558490ff910b3",1956:"f6619777d30c7813",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"),t.miniCssF=e=>{},t.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),(()=>{var e={},r="app:";t.l=(a,d,b,c)=>{if(e[a])e[a].push(d);else{var f,l;if(void 0!==b)for(var n=document.getElementsByTagName("script"),i=0;i{f.onerror=f.onload=null,clearTimeout(u);var y=e[a];if(delete e[a],f.parentNode&&f.parentNode.removeChild(f),y&&y.forEach(_=>_(p)),m)return m(p)},u=setTimeout(s.bind(null,void 0,{type:"timeout",target:f}),12e4);f.onerror=s.bind(null,f.onerror),f.onload=s.bind(null,f.onload),l&&document.head.appendChild(f)}}})(),t.r=e=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;t.tt=()=>(void 0===e&&(e={createScriptURL:r=>r},typeof trustedTypes<"u"&&trustedTypes.createPolicy&&(e=trustedTypes.createPolicy("angular#bundler",e))),e)})(),t.tu=e=>t.tt().createScriptURL(e),t.p="",(()=>{var e={9121:0};t.f.j=(d,b)=>{var c=t.o(e,d)?e[d]:void 0;if(0!==c)if(c)b.push(c[2]);else if(9121!=d){var f=new Promise((o,s)=>c=e[d]=[o,s]);b.push(c[2]=f);var l=t.p+t.u(d),n=new Error;t.l(l,o=>{if(t.o(e,d)&&(0!==(c=e[d])&&(e[d]=void 0),c)){var s=o&&("load"===o.type?"missing":o.type),u=o&&o.target&&o.target.src;n.message="Loading chunk "+d+" failed.\n("+s+": "+u+")",n.name="ChunkLoadError",n.type=s,n.request=u,c[1](n)}},"chunk-"+d,d)}else e[d]=0},t.O.j=d=>0===e[d];var r=(d,b)=>{var n,i,[c,f,l]=b,o=0;if(c.some(u=>0!==e[u])){for(n in f)t.o(f,n)&&(t.m[n]=f[n]);if(l)var s=l(t)}for(d&&d(b);o{"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:"e5e99d85bb4428f5",441:"c8d135e5d56e5723",839:"fb5de61ae51a2154",964:"466b88054b5c618c",1049:"7ef232095c56e4df",1102:"010dfe13f6ca7e15",1293:"ee80f2d33790618d",1459:"32c41a59c0fd4cf1",1577:"f6f558490ff910b3",2075:"1971ba880d06cc30",2076:"12c32b694becf860",2144:"5d46fa3641b801f2",2348:"12b471577685ffbe",2375:"efb0d99d1467ed67",2415:"dddee43f1c9b92e7",2560:"f34ba2c5e85b55c8",2885:"d64fa10bd441cbc8",3118:"d242359f14a20980",3162:"825364e1635b086f",3506:"899dcc5e5d913023",3511:"16739e7034875331",3814:"4f667f072e44b4e7",3825:"7bb8c0ace22f6baa",3998:"5ecf1aece7636b7e",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:"a7b3b7014e68a27e",6840:"fd32dada9c8ec44e",6927:"965bbdc204b64792",7030:"f2a9bf080bedfc5b",7076:"2b7ea8b1f54f4458",7179:"80391eb100990080",7240:"680a87741a5535b1",7278:"bf542500b6fca113",7356:"911eacb1ce959b5e",7372:"4ea07cfe7eb821be",7428:"cb325b96b92ea4c2",7444:"3798b1cd13edb71d",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