diff --git a/src/app/app-routing.module.ts b/src/app/app-routing.module.ts index 9bb083b..a031322 100644 --- a/src/app/app-routing.module.ts +++ b/src/app/app-routing.module.ts @@ -13,17 +13,17 @@ const routes: Routes = [ }, { path: 'home', - loadChildren: () => import('./pages/home/home.module').then(m => m.HomePageModule), + loadChildren: () => import('./pages/main_graphs/home/home.module').then(m => m.HomePageModule), ...canActivate(redirectUnauthorizedToLogin), }, { path: 'register', - loadChildren: () => import('./pages/register/register.module').then( m => m.RegisterPageModule), + loadChildren: () => import('./pages/login_register/register/register.module').then(m => m.RegisterPageModule), ...canActivate(redirectLoggedInToHome) }, { path: 'login', - loadChildren: () => import('./pages/login/login.module').then( m => m.LoginPageModule), + loadChildren: () => import('./pages/login_register/login/login.module').then(m => m.LoginPageModule), ...canActivate(redirectLoggedInToHome) }, @@ -34,72 +34,72 @@ const routes: Routes = [ }, { path: 'model-product', - loadChildren: () => import('./pages/model-product/model-product.module').then( m => m.ModelProductPageModule), + loadChildren: () => import('./pages/model_the_product/model-product/model-product.module').then(m => m.ModelProductPageModule), ...canActivate(redirectUnauthorizedToLogin), }, { path: 'new-product', - loadChildren: () => import('./pages/new-product/new-product.module').then( m => m.NewProductPageModule), + loadChildren: () => import('./pages/model_the_product/new-product/new-product.module').then(m => m.NewProductPageModule), ...canActivate(redirectUnauthorizedToLogin), }, { path: 'view-product', - loadChildren: () => import('./pages/view-product/view-product.module').then( m => m.ViewProductPageModule), + loadChildren: () => import('./pages/model_the_product/view-product/view-product.module').then(m => m.ViewProductPageModule), ...canActivate(redirectUnauthorizedToLogin), }, { path: 'show-map', - loadChildren: () => import('./pages/show-map/show-map.module').then( m => m.ShowMapPageModule), + loadChildren: () => import('./pages/latency_test/show-map/show-map.module').then(m => m.ShowMapPageModule), ...canActivate(redirectUnauthorizedToLogin), }, { path: 'latency-test', - loadChildren: () => import('./pages/latency-test/latency-test.module').then( m => m.LatencyTestPageModule), + loadChildren: () => import('./pages/latency_test/latency-test/latency-test.module').then(m => m.LatencyTestPageModule), ...canActivate(redirectUnauthorizedToLogin), }, { path: 'latency-chooser', - loadChildren: () => import('./pages/latency-chooser/latency-chooser.module').then( m => m.LatencyChooserPageModule), + loadChildren: () => import('./pages/latency_test/latency-chooser/latency-chooser.module').then(m => m.LatencyChooserPageModule), ...canActivate(redirectUnauthorizedToLogin), }, { path: 'latency-results', - loadChildren: () => import('./pages/latency-results/latency-results.module').then( m => m.LatencyResultsPageModule), + loadChildren: () => import('./pages/latency_test/latency-results/latency-results.module').then(m => m.LatencyResultsPageModule), ...canActivate(redirectUnauthorizedToLogin), }, { path: 'graph-latency', - loadChildren: () => import('./pages/graph-latency/graph-latency.module').then(m => m.GraphPageModule), + loadChildren: () => import('./pages/main_graphs/latency_graph/graph-latency/graph-latency.module').then(m => m.GraphPageModule), ...canActivate(redirectUnauthorizedToLogin), }, { path: 'trace-chooser', - loadChildren: () => import('./pages/trace-chooser/trace-chooser.module').then( m => m.TraceChooserPageModule), + loadChildren: () => import('./pages/trace_test/trace-chooser/trace-chooser.module').then(m => m.TraceChooserPageModule), ...canActivate(redirectUnauthorizedToLogin), }, { path: 'trace-test', - loadChildren: () => import('./pages/trace-test/trace-test.module').then( m => m.TraceTestPageModule), + loadChildren: () => import('./pages/trace_test/trace-test/trace-test.module').then(m => m.TraceTestPageModule), ...canActivate(redirectUnauthorizedToLogin), }, { path: 'trace-results', - loadChildren: () => import('./pages/trace-results/trace-results.module').then( m => m.TraceResultsPageModule), + loadChildren: () => import('./pages/trace_test/trace-results/trace-results.module').then(m => m.TraceResultsPageModule), ...canActivate(redirectUnauthorizedToLogin), }, { path: 'show-map-trace', - loadChildren: () => import('./pages/show-map-trace/show-map-trace.module').then( m => m.ShowMapTracePageModule), + loadChildren: () => import('./pages/trace_test/show-map-trace/show-map-trace.module').then(m => m.ShowMapTracePageModule), ...canActivate(redirectUnauthorizedToLogin), }, { path: 'graph-data-for', - loadChildren: () => import('./pages/graph-data-for/graph-data-for.module').then( m => m.GraphDataForPageModule), + loadChildren: () => import('./pages/main_graphs/graph-data-for/graph-data-for.module').then(m => m.GraphDataForPageModule), ...canActivate(redirectUnauthorizedToLogin), }, { path: 'graph-trace', - loadChildren: () => import('./pages/graph-trace/graph-trace.module').then( m => m.GraphTracePageModule), + loadChildren: () => import('./pages/main_graphs/traceroute_graph/graph-trace/graph-trace.module').then(m => m.GraphTracePageModule), ...canActivate(redirectUnauthorizedToLogin), }, { @@ -109,42 +109,42 @@ const routes: Routes = [ }, { path: 'flame-graph', - loadChildren: () => import('./pages/flame-graph/flame-graph.module').then( m => m.FlameGraphPageModule), + loadChildren: () => import('./pages/flame_graph/flame-graph/flame-graph.module').then(m => m.FlameGraphPageModule), ...canActivate(redirectUnauthorizedToLogin), }, { path: 'flame-graph-for', - loadChildren: () => import('./pages/flame-graph-for/flame-graph-for.module').then( m => m.FlameGraphForPageModule), + loadChildren: () => import('./pages/flame_graph/flame-graph-for/flame-graph-for.module').then(m => m.FlameGraphForPageModule), ...canActivate(redirectUnauthorizedToLogin), }, { path: 'flame-graph-date', - loadChildren: () => import('./pages/flame-graph-date/flame-graph-date.module').then( m => m.FlameGraphDatePageModule), + loadChildren: () => import('./pages/flame_graph/flame-graph-date/flame-graph-date.module').then(m => m.FlameGraphDatePageModule), ...canActivate(redirectUnauthorizedToLogin), }, { path: 'flame-graph-compare', - loadChildren: () => import('./pages/flame-graph-compare/flame-graph-compare.module').then( m => m.FlameGraphComparePageModule), + loadChildren: () => import('./pages/flame_graph/flame-graph-compare/flame-graph-compare.module').then(m => m.FlameGraphComparePageModule), ...canActivate(redirectUnauthorizedToLogin), }, { path: 'software-testing', - loadChildren: () => import('./pages/software-testing/software-testing.module').then( m => m.SoftwareTestingPageModule), + loadChildren: () => import('./pages/software_testing/software-testing/software-testing.module').then(m => m.SoftwareTestingPageModule), ...canActivate(redirectUnauthorizedToLogin), }, { path: 'software-testing-chooser', - loadChildren: () => import('./pages/software-testing-chooser/software-testing-chooser.module').then( m => m.SoftwareTestingChooserPageModule), + loadChildren: () => import('./pages/software_testing/software-testing-chooser/software-testing-chooser.module').then(m => m.SoftwareTestingChooserPageModule), ...canActivate(redirectUnauthorizedToLogin), }, { path: 'create-system-test', - loadChildren: () => import('./pages/create-system-test/create-system-test.module').then( m => m.CreateSystemTestPageModule), + loadChildren: () => import('./pages/software_testing/system_tests/create-system-test/create-system-test.module').then(m => m.CreateSystemTestPageModule), ...canActivate(redirectUnauthorizedToLogin), }, { path: 'execute-system-test', - loadChildren: () => import('./pages/execute-system-test/execute-system-test.module').then( m => m.ExecuteSystemTestPageModule), + loadChildren: () => import('./pages/software_testing/system_tests/execute-system-test/execute-system-test.module').then(m => m.ExecuteSystemTestPageModule), ...canActivate(redirectUnauthorizedToLogin), }, @@ -166,11 +166,11 @@ const routes: Routes = [ }, { path: 'view-history-system-test', - loadChildren: () => import('./pages/view-history-system-test/view-history-system-test.module').then( m => m.ViewHistorySystemTestPageModule) + loadChildren: () => import('./pages/software_testing/system_tests/view-history-system-test/view-history-system-test.module').then(m => m.ViewHistorySystemTestPageModule) }, { path: 'view-system-test', - loadChildren: () => import('./pages/view-system-test/view-system-test.module').then( m => m.ViewSystemTestPageModule) + loadChildren: () => import('./pages/software_testing/system_tests/view-system-test/view-system-test.module').then(m => m.ViewSystemTestPageModule) }, ]; diff --git a/src/app/pages/flame-graph-compare/flame-graph-compare-routing.module.ts b/src/app/pages/flame_graph/flame-graph-compare/flame-graph-compare-routing.module.ts similarity index 100% rename from src/app/pages/flame-graph-compare/flame-graph-compare-routing.module.ts rename to src/app/pages/flame_graph/flame-graph-compare/flame-graph-compare-routing.module.ts diff --git a/src/app/pages/flame-graph-compare/flame-graph-compare.module.ts b/src/app/pages/flame_graph/flame-graph-compare/flame-graph-compare.module.ts similarity index 91% rename from src/app/pages/flame-graph-compare/flame-graph-compare.module.ts rename to src/app/pages/flame_graph/flame-graph-compare/flame-graph-compare.module.ts index 81c7b62..8bdeeda 100644 --- a/src/app/pages/flame-graph-compare/flame-graph-compare.module.ts +++ b/src/app/pages/flame_graph/flame-graph-compare/flame-graph-compare.module.ts @@ -7,7 +7,7 @@ import { IonicModule } from '@ionic/angular'; import { FlameGraphComparePageRoutingModule } from './flame-graph-compare-routing.module'; import { FlameGraphComparePage } from './flame-graph-compare.page'; -import {ComponentsModule} from "../../components/components.module"; +import {ComponentsModule} from "../../../components/components.module"; import {NgxFlamegraphModule} from "ngx-flamegraph"; import {MarkdownComponent} from "ngx-markdown"; diff --git a/src/app/pages/flame-graph-compare/flame-graph-compare.page.html b/src/app/pages/flame_graph/flame-graph-compare/flame-graph-compare.page.html similarity index 100% rename from src/app/pages/flame-graph-compare/flame-graph-compare.page.html rename to src/app/pages/flame_graph/flame-graph-compare/flame-graph-compare.page.html diff --git a/src/app/pages/flame-graph-compare/flame-graph-compare.page.scss b/src/app/pages/flame_graph/flame-graph-compare/flame-graph-compare.page.scss similarity index 100% rename from src/app/pages/flame-graph-compare/flame-graph-compare.page.scss rename to src/app/pages/flame_graph/flame-graph-compare/flame-graph-compare.page.scss diff --git a/src/app/pages/flame-graph-compare/flame-graph-compare.page.spec.ts b/src/app/pages/flame_graph/flame-graph-compare/flame-graph-compare.page.spec.ts similarity index 100% rename from src/app/pages/flame-graph-compare/flame-graph-compare.page.spec.ts rename to src/app/pages/flame_graph/flame-graph-compare/flame-graph-compare.page.spec.ts diff --git a/src/app/pages/flame-graph-compare/flame-graph-compare.page.ts b/src/app/pages/flame_graph/flame-graph-compare/flame-graph-compare.page.ts similarity index 98% rename from src/app/pages/flame-graph-compare/flame-graph-compare.page.ts rename to src/app/pages/flame_graph/flame-graph-compare/flame-graph-compare.page.ts index 89c0100..ce7ae8d 100644 --- a/src/app/pages/flame-graph-compare/flame-graph-compare.page.ts +++ b/src/app/pages/flame_graph/flame-graph-compare/flame-graph-compare.page.ts @@ -1,12 +1,12 @@ import {Component, ElementRef, inject, OnInit, ViewChild} from '@angular/core'; import {FlamegraphColor, RawData} from "ngx-flamegraph/lib/utils"; -import { Product } from "../../interfaces/product"; -import { FlameGraphService } from "../../services/flame-graph.service"; +import { Product } from "../../../interfaces/product"; +import { FlameGraphService } from "../../../services/flame-graph.service"; import { LoadingController } from "@ionic/angular"; import { ActivatedRoute } from "@angular/router"; -import { User } from "../../interfaces/user"; +import { User } from "../../../interfaces/user"; import {getGenerativeModel, VertexAI} from "@angular/fire/vertexai-preview"; -import {AiMessage} from "../../interfaces/ai-message"; +import {AiMessage} from "../../../interfaces/ai-message"; @Component({ selector: 'app-flame-graph-compare', diff --git a/src/app/pages/flame-graph-date/flame-graph-date-routing.module.ts b/src/app/pages/flame_graph/flame-graph-date/flame-graph-date-routing.module.ts similarity index 100% rename from src/app/pages/flame-graph-date/flame-graph-date-routing.module.ts rename to src/app/pages/flame_graph/flame-graph-date/flame-graph-date-routing.module.ts diff --git a/src/app/pages/flame-graph-date/flame-graph-date.module.ts b/src/app/pages/flame_graph/flame-graph-date/flame-graph-date.module.ts similarity index 88% rename from src/app/pages/flame-graph-date/flame-graph-date.module.ts rename to src/app/pages/flame_graph/flame-graph-date/flame-graph-date.module.ts index eb8a990..c4a4e55 100644 --- a/src/app/pages/flame-graph-date/flame-graph-date.module.ts +++ b/src/app/pages/flame_graph/flame-graph-date/flame-graph-date.module.ts @@ -7,7 +7,7 @@ import { IonicModule } from '@ionic/angular'; import { FlameGraphDatePageRoutingModule } from './flame-graph-date-routing.module'; import { FlameGraphDatePage } from './flame-graph-date.page'; -import {ComponentsModule} from "../../components/components.module"; +import {ComponentsModule} from "../../../components/components.module"; @NgModule({ imports: [ diff --git a/src/app/pages/flame-graph-date/flame-graph-date.page.html b/src/app/pages/flame_graph/flame-graph-date/flame-graph-date.page.html similarity index 100% rename from src/app/pages/flame-graph-date/flame-graph-date.page.html rename to src/app/pages/flame_graph/flame-graph-date/flame-graph-date.page.html diff --git a/src/app/pages/flame-graph-date/flame-graph-date.page.scss b/src/app/pages/flame_graph/flame-graph-date/flame-graph-date.page.scss similarity index 100% rename from src/app/pages/flame-graph-date/flame-graph-date.page.scss rename to src/app/pages/flame_graph/flame-graph-date/flame-graph-date.page.scss diff --git a/src/app/pages/flame-graph-date/flame-graph-date.page.spec.ts b/src/app/pages/flame_graph/flame-graph-date/flame-graph-date.page.spec.ts similarity index 100% rename from src/app/pages/flame-graph-date/flame-graph-date.page.spec.ts rename to src/app/pages/flame_graph/flame-graph-date/flame-graph-date.page.spec.ts diff --git a/src/app/pages/flame-graph-date/flame-graph-date.page.ts b/src/app/pages/flame_graph/flame-graph-date/flame-graph-date.page.ts similarity index 94% rename from src/app/pages/flame-graph-date/flame-graph-date.page.ts rename to src/app/pages/flame_graph/flame-graph-date/flame-graph-date.page.ts index e97961f..63410c6 100644 --- a/src/app/pages/flame-graph-date/flame-graph-date.page.ts +++ b/src/app/pages/flame_graph/flame-graph-date/flame-graph-date.page.ts @@ -1,9 +1,9 @@ import { Component, OnInit } from '@angular/core'; -import {FlameGraphService} from "../../services/flame-graph.service"; +import {FlameGraphService} from "../../../services/flame-graph.service"; import {LoadingController} from "@ionic/angular"; import {ActivatedRoute, Router} from "@angular/router"; -import {User} from "../../interfaces/user"; -import {Product} from "../../interfaces/product"; +import {User} from "../../../interfaces/user"; +import {Product} from "../../../interfaces/product"; @Component({ diff --git a/src/app/pages/flame-graph-for/flame-graph-for-routing.module.ts b/src/app/pages/flame_graph/flame-graph-for/flame-graph-for-routing.module.ts similarity index 100% rename from src/app/pages/flame-graph-for/flame-graph-for-routing.module.ts rename to src/app/pages/flame_graph/flame-graph-for/flame-graph-for-routing.module.ts diff --git a/src/app/pages/flame-graph-for/flame-graph-for.module.ts b/src/app/pages/flame_graph/flame-graph-for/flame-graph-for.module.ts similarity index 88% rename from src/app/pages/flame-graph-for/flame-graph-for.module.ts rename to src/app/pages/flame_graph/flame-graph-for/flame-graph-for.module.ts index d8f4450..8acf8ff 100644 --- a/src/app/pages/flame-graph-for/flame-graph-for.module.ts +++ b/src/app/pages/flame_graph/flame-graph-for/flame-graph-for.module.ts @@ -7,7 +7,7 @@ import { IonicModule } from '@ionic/angular'; import { FlameGraphForPageRoutingModule } from './flame-graph-for-routing.module'; import { FlameGraphForPage } from './flame-graph-for.page'; -import {ComponentsModule} from "../../components/components.module"; +import {ComponentsModule} from "../../../components/components.module"; @NgModule({ imports: [ diff --git a/src/app/pages/flame-graph-for/flame-graph-for.page.html b/src/app/pages/flame_graph/flame-graph-for/flame-graph-for.page.html similarity index 100% rename from src/app/pages/flame-graph-for/flame-graph-for.page.html rename to src/app/pages/flame_graph/flame-graph-for/flame-graph-for.page.html diff --git a/src/app/pages/flame-graph-for/flame-graph-for.page.scss b/src/app/pages/flame_graph/flame-graph-for/flame-graph-for.page.scss similarity index 100% rename from src/app/pages/flame-graph-for/flame-graph-for.page.scss rename to src/app/pages/flame_graph/flame-graph-for/flame-graph-for.page.scss diff --git a/src/app/pages/flame-graph-for/flame-graph-for.page.spec.ts b/src/app/pages/flame_graph/flame-graph-for/flame-graph-for.page.spec.ts similarity index 100% rename from src/app/pages/flame-graph-for/flame-graph-for.page.spec.ts rename to src/app/pages/flame_graph/flame-graph-for/flame-graph-for.page.spec.ts diff --git a/src/app/pages/flame-graph-for/flame-graph-for.page.ts b/src/app/pages/flame_graph/flame-graph-for/flame-graph-for.page.ts similarity index 88% rename from src/app/pages/flame-graph-for/flame-graph-for.page.ts rename to src/app/pages/flame_graph/flame-graph-for/flame-graph-for.page.ts index 5089cb6..9941e54 100644 --- a/src/app/pages/flame-graph-for/flame-graph-for.page.ts +++ b/src/app/pages/flame_graph/flame-graph-for/flame-graph-for.page.ts @@ -1,10 +1,10 @@ import { Component, OnInit } from '@angular/core'; -import {Product} from "../../interfaces/product"; -import {ProductService} from "../../services/product.service"; +import {Product} from "../../../interfaces/product"; +import {ProductService} from "../../../services/product.service"; import {AlertController, LoadingController} from "@ionic/angular"; import {ActivatedRoute, Router} from "@angular/router"; -import {User} from "../../interfaces/user"; -import {FlameGraphService} from "../../services/flame-graph.service"; +import {User} from "../../../interfaces/user"; +import {FlameGraphService} from "../../../services/flame-graph.service"; @Component({ diff --git a/src/app/pages/flame-graph/flame-graph-routing.module.ts b/src/app/pages/flame_graph/flame-graph/flame-graph-routing.module.ts similarity index 100% rename from src/app/pages/flame-graph/flame-graph-routing.module.ts rename to src/app/pages/flame_graph/flame-graph/flame-graph-routing.module.ts diff --git a/src/app/pages/flame-graph/flame-graph.module.ts b/src/app/pages/flame_graph/flame-graph/flame-graph.module.ts similarity index 89% rename from src/app/pages/flame-graph/flame-graph.module.ts rename to src/app/pages/flame_graph/flame-graph/flame-graph.module.ts index b797383..7b8c0d0 100644 --- a/src/app/pages/flame-graph/flame-graph.module.ts +++ b/src/app/pages/flame_graph/flame-graph/flame-graph.module.ts @@ -8,7 +8,7 @@ import { FlameGraphPageRoutingModule } from './flame-graph-routing.module'; import { FlameGraphPage } from './flame-graph.page'; import {NgxFlamegraphModule} from "ngx-flamegraph"; -import {ComponentsModule} from "../../components/components.module"; +import {ComponentsModule} from "../../../components/components.module"; @NgModule({ imports: [ diff --git a/src/app/pages/flame-graph/flame-graph.page.html b/src/app/pages/flame_graph/flame-graph/flame-graph.page.html similarity index 100% rename from src/app/pages/flame-graph/flame-graph.page.html rename to src/app/pages/flame_graph/flame-graph/flame-graph.page.html diff --git a/src/app/pages/flame-graph/flame-graph.page.scss b/src/app/pages/flame_graph/flame-graph/flame-graph.page.scss similarity index 100% rename from src/app/pages/flame-graph/flame-graph.page.scss rename to src/app/pages/flame_graph/flame-graph/flame-graph.page.scss diff --git a/src/app/pages/flame-graph/flame-graph.page.spec.ts b/src/app/pages/flame_graph/flame-graph/flame-graph.page.spec.ts similarity index 100% rename from src/app/pages/flame-graph/flame-graph.page.spec.ts rename to src/app/pages/flame_graph/flame-graph/flame-graph.page.spec.ts diff --git a/src/app/pages/flame-graph/flame-graph.page.ts b/src/app/pages/flame_graph/flame-graph/flame-graph.page.ts similarity index 97% rename from src/app/pages/flame-graph/flame-graph.page.ts rename to src/app/pages/flame_graph/flame-graph/flame-graph.page.ts index ea8a04b..b5e40ef 100644 --- a/src/app/pages/flame-graph/flame-graph.page.ts +++ b/src/app/pages/flame_graph/flame-graph/flame-graph.page.ts @@ -1,11 +1,11 @@ import { Component, OnInit } from '@angular/core'; import {FlameGraphConfig} from "ngx-flamegraph"; import {FlamegraphColor, RawData} from "ngx-flamegraph/lib/utils"; -import {FlameGraphService} from "../../services/flame-graph.service"; +import {FlameGraphService} from "../../../services/flame-graph.service"; import {LoadingController} from "@ionic/angular"; import {ActivatedRoute, Router} from "@angular/router"; -import {Product} from "../../interfaces/product"; -import {User} from "../../interfaces/user"; +import {Product} from "../../../interfaces/product"; +import {User} from "../../../interfaces/user"; diff --git a/src/app/pages/latency-chooser/latency-chooser-routing.module.ts b/src/app/pages/latency_test/latency-chooser/latency-chooser-routing.module.ts similarity index 100% rename from src/app/pages/latency-chooser/latency-chooser-routing.module.ts rename to src/app/pages/latency_test/latency-chooser/latency-chooser-routing.module.ts diff --git a/src/app/pages/latency-chooser/latency-chooser.module.ts b/src/app/pages/latency_test/latency-chooser/latency-chooser.module.ts similarity index 88% rename from src/app/pages/latency-chooser/latency-chooser.module.ts rename to src/app/pages/latency_test/latency-chooser/latency-chooser.module.ts index af3bad9..397c8db 100644 --- a/src/app/pages/latency-chooser/latency-chooser.module.ts +++ b/src/app/pages/latency_test/latency-chooser/latency-chooser.module.ts @@ -7,7 +7,7 @@ import { IonicModule } from '@ionic/angular'; import { LatencyChooserPageRoutingModule } from './latency-chooser-routing.module'; import { LatencyChooserPage } from './latency-chooser.page'; -import {ComponentsModule} from "../../components/components.module"; +import {ComponentsModule} from "../../../components/components.module"; @NgModule({ imports: [ diff --git a/src/app/pages/latency-chooser/latency-chooser.page.html b/src/app/pages/latency_test/latency-chooser/latency-chooser.page.html similarity index 100% rename from src/app/pages/latency-chooser/latency-chooser.page.html rename to src/app/pages/latency_test/latency-chooser/latency-chooser.page.html diff --git a/src/app/pages/latency-chooser/latency-chooser.page.scss b/src/app/pages/latency_test/latency-chooser/latency-chooser.page.scss similarity index 100% rename from src/app/pages/latency-chooser/latency-chooser.page.scss rename to src/app/pages/latency_test/latency-chooser/latency-chooser.page.scss diff --git a/src/app/pages/latency-chooser/latency-chooser.page.spec.ts b/src/app/pages/latency_test/latency-chooser/latency-chooser.page.spec.ts similarity index 100% rename from src/app/pages/latency-chooser/latency-chooser.page.spec.ts rename to src/app/pages/latency_test/latency-chooser/latency-chooser.page.spec.ts diff --git a/src/app/pages/latency-chooser/latency-chooser.page.ts b/src/app/pages/latency_test/latency-chooser/latency-chooser.page.ts similarity index 94% rename from src/app/pages/latency-chooser/latency-chooser.page.ts rename to src/app/pages/latency_test/latency-chooser/latency-chooser.page.ts index 38b9fa1..366c7eb 100644 --- a/src/app/pages/latency-chooser/latency-chooser.page.ts +++ b/src/app/pages/latency_test/latency-chooser/latency-chooser.page.ts @@ -3,9 +3,9 @@ */ import { Component, OnInit } from '@angular/core'; -import {ProductService} from "../../services/product.service"; -import {User} from "../../interfaces/user"; -import {Product} from "../../interfaces/product"; +import {ProductService} from "../../../services/product.service"; +import {User} from "../../../interfaces/user"; +import {Product} from "../../../interfaces/product"; import {Router} from "@angular/router"; import {LoadingController} from "@ionic/angular"; diff --git a/src/app/pages/latency-results/latency-results-routing.module.ts b/src/app/pages/latency_test/latency-results/latency-results-routing.module.ts similarity index 100% rename from src/app/pages/latency-results/latency-results-routing.module.ts rename to src/app/pages/latency_test/latency-results/latency-results-routing.module.ts diff --git a/src/app/pages/latency-results/latency-results.module.ts b/src/app/pages/latency_test/latency-results/latency-results.module.ts similarity index 88% rename from src/app/pages/latency-results/latency-results.module.ts rename to src/app/pages/latency_test/latency-results/latency-results.module.ts index d0b3357..1ceef61 100644 --- a/src/app/pages/latency-results/latency-results.module.ts +++ b/src/app/pages/latency_test/latency-results/latency-results.module.ts @@ -7,7 +7,7 @@ import { IonicModule } from '@ionic/angular'; import { LatencyResultsPageRoutingModule } from './latency-results-routing.module'; import { LatencyResultsPage } from './latency-results.page'; -import {ComponentsModule} from "../../components/components.module"; +import {ComponentsModule} from "../../../components/components.module"; @NgModule({ imports: [ diff --git a/src/app/pages/latency-results/latency-results.page.html b/src/app/pages/latency_test/latency-results/latency-results.page.html similarity index 100% rename from src/app/pages/latency-results/latency-results.page.html rename to src/app/pages/latency_test/latency-results/latency-results.page.html diff --git a/src/app/pages/latency-results/latency-results.page.scss b/src/app/pages/latency_test/latency-results/latency-results.page.scss similarity index 100% rename from src/app/pages/latency-results/latency-results.page.scss rename to src/app/pages/latency_test/latency-results/latency-results.page.scss diff --git a/src/app/pages/latency-results/latency-results.page.spec.ts b/src/app/pages/latency_test/latency-results/latency-results.page.spec.ts similarity index 100% rename from src/app/pages/latency-results/latency-results.page.spec.ts rename to src/app/pages/latency_test/latency-results/latency-results.page.spec.ts diff --git a/src/app/pages/latency-results/latency-results.page.ts b/src/app/pages/latency_test/latency-results/latency-results.page.ts similarity index 93% rename from src/app/pages/latency-results/latency-results.page.ts rename to src/app/pages/latency_test/latency-results/latency-results.page.ts index 2c8729d..b9fa916 100644 --- a/src/app/pages/latency-results/latency-results.page.ts +++ b/src/app/pages/latency_test/latency-results/latency-results.page.ts @@ -1,11 +1,11 @@ import {Component, Input, OnInit} from '@angular/core'; import {ActivatedRoute, Router} from "@angular/router"; -import {RipeService} from "../../services/ripe.service"; -import {User} from "../../interfaces/user"; -import {Ripe} from "../../interfaces/ripe"; +import {RipeService} from "../../../services/ripe.service"; +import {User} from "../../../interfaces/user"; +import {Ripe} from "../../../interfaces/ripe"; import {AlertController, LoadingController} from "@ionic/angular"; -import {LocationService} from "../../services/location.service"; -import {Countries} from "../../interfaces/countries"; +import {LocationService} from "../../../services/location.service"; +import {Countries} from "../../../interfaces/countries"; @Component({ selector: 'app-latency-results', diff --git a/src/app/pages/latency-test/latency-test-routing.module.ts b/src/app/pages/latency_test/latency-test/latency-test-routing.module.ts similarity index 100% rename from src/app/pages/latency-test/latency-test-routing.module.ts rename to src/app/pages/latency_test/latency-test/latency-test-routing.module.ts diff --git a/src/app/pages/latency-test/latency-test.module.ts b/src/app/pages/latency_test/latency-test/latency-test.module.ts similarity index 88% rename from src/app/pages/latency-test/latency-test.module.ts rename to src/app/pages/latency_test/latency-test/latency-test.module.ts index 510114f..ac6f2bc 100644 --- a/src/app/pages/latency-test/latency-test.module.ts +++ b/src/app/pages/latency_test/latency-test/latency-test.module.ts @@ -7,7 +7,7 @@ import { IonicModule } from '@ionic/angular'; import { LatencyTestPageRoutingModule } from './latency-test-routing.module'; import { LatencyTestPage } from './latency-test.page'; -import {ComponentsModule} from "../../components/components.module"; +import {ComponentsModule} from "../../../components/components.module"; @NgModule({ imports: [ diff --git a/src/app/pages/latency-test/latency-test.page.html b/src/app/pages/latency_test/latency-test/latency-test.page.html similarity index 100% rename from src/app/pages/latency-test/latency-test.page.html rename to src/app/pages/latency_test/latency-test/latency-test.page.html diff --git a/src/app/pages/latency-test/latency-test.page.scss b/src/app/pages/latency_test/latency-test/latency-test.page.scss similarity index 100% rename from src/app/pages/latency-test/latency-test.page.scss rename to src/app/pages/latency_test/latency-test/latency-test.page.scss diff --git a/src/app/pages/latency-test/latency-test.page.spec.ts b/src/app/pages/latency_test/latency-test/latency-test.page.spec.ts similarity index 100% rename from src/app/pages/latency-test/latency-test.page.spec.ts rename to src/app/pages/latency_test/latency-test/latency-test.page.spec.ts diff --git a/src/app/pages/latency-test/latency-test.page.ts b/src/app/pages/latency_test/latency-test/latency-test.page.ts similarity index 97% rename from src/app/pages/latency-test/latency-test.page.ts rename to src/app/pages/latency_test/latency-test/latency-test.page.ts index c1c6080..5d47ffd 100644 --- a/src/app/pages/latency-test/latency-test.page.ts +++ b/src/app/pages/latency_test/latency-test/latency-test.page.ts @@ -1,11 +1,11 @@ import {Component, Input, OnInit} from '@angular/core'; -import {RipeService} from "../../services/ripe.service"; -import {Ripe} from "../../interfaces/ripe"; -import {User} from "../../interfaces/user"; +import {RipeService} from "../../../services/ripe.service"; +import {Ripe} from "../../../interfaces/ripe"; +import {User} from "../../../interfaces/user"; import {AlertController, LoadingController} from "@ionic/angular"; -import {LocationService} from "../../services/location.service"; +import {LocationService} from "../../../services/location.service"; import {ActivatedRoute, Router} from "@angular/router"; -import {Countries} from "../../interfaces/countries"; +import {Countries} from "../../../interfaces/countries"; import {compass} from "ionicons/icons"; /** diff --git a/src/app/pages/show-map/show-map-routing.module.ts b/src/app/pages/latency_test/show-map/show-map-routing.module.ts similarity index 100% rename from src/app/pages/show-map/show-map-routing.module.ts rename to src/app/pages/latency_test/show-map/show-map-routing.module.ts diff --git a/src/app/pages/show-map/show-map.module.ts b/src/app/pages/latency_test/show-map/show-map.module.ts similarity index 87% rename from src/app/pages/show-map/show-map.module.ts rename to src/app/pages/latency_test/show-map/show-map.module.ts index 332b8ee..3150950 100644 --- a/src/app/pages/show-map/show-map.module.ts +++ b/src/app/pages/latency_test/show-map/show-map.module.ts @@ -7,7 +7,7 @@ import { IonicModule } from '@ionic/angular'; import { ShowMapPageRoutingModule } from './show-map-routing.module'; import { ShowMapPage } from './show-map.page'; -import {ComponentsModule} from "../../components/components.module"; +import {ComponentsModule} from "../../../components/components.module"; @NgModule({ imports: [ diff --git a/src/app/pages/show-map/show-map.page.html b/src/app/pages/latency_test/show-map/show-map.page.html similarity index 100% rename from src/app/pages/show-map/show-map.page.html rename to src/app/pages/latency_test/show-map/show-map.page.html diff --git a/src/app/pages/show-map/show-map.page.scss b/src/app/pages/latency_test/show-map/show-map.page.scss similarity index 100% rename from src/app/pages/show-map/show-map.page.scss rename to src/app/pages/latency_test/show-map/show-map.page.scss diff --git a/src/app/pages/show-map/show-map.page.spec.ts b/src/app/pages/latency_test/show-map/show-map.page.spec.ts similarity index 100% rename from src/app/pages/show-map/show-map.page.spec.ts rename to src/app/pages/latency_test/show-map/show-map.page.spec.ts diff --git a/src/app/pages/show-map/show-map.page.ts b/src/app/pages/latency_test/show-map/show-map.page.ts similarity index 96% rename from src/app/pages/show-map/show-map.page.ts rename to src/app/pages/latency_test/show-map/show-map.page.ts index 9e06e27..73b6c9a 100644 --- a/src/app/pages/show-map/show-map.page.ts +++ b/src/app/pages/latency_test/show-map/show-map.page.ts @@ -3,9 +3,9 @@ import {Component, OnDestroy, OnInit} from '@angular/core'; import * as Leaflet from 'leaflet'; // @ts-ignore import { antPath } from 'leaflet-ant-path'; -import {RipeService} from "../../services/ripe.service"; +import {RipeService} from "../../../services/ripe.service"; import {LatLngExpression} from "leaflet"; -import {Ripe} from "../../interfaces/ripe"; +import {Ripe} from "../../../interfaces/ripe"; import {LoadingController} from "@ionic/angular"; import {ActivatedRoute} from "@angular/router"; diff --git a/src/app/pages/login/login-routing.module.ts b/src/app/pages/login_register/login/login-routing.module.ts similarity index 100% rename from src/app/pages/login/login-routing.module.ts rename to src/app/pages/login_register/login/login-routing.module.ts diff --git a/src/app/pages/login/login.module.ts b/src/app/pages/login_register/login/login.module.ts similarity index 100% rename from src/app/pages/login/login.module.ts rename to src/app/pages/login_register/login/login.module.ts diff --git a/src/app/pages/login/login.page.html b/src/app/pages/login_register/login/login.page.html similarity index 100% rename from src/app/pages/login/login.page.html rename to src/app/pages/login_register/login/login.page.html diff --git a/src/app/pages/login/login.page.scss b/src/app/pages/login_register/login/login.page.scss similarity index 100% rename from src/app/pages/login/login.page.scss rename to src/app/pages/login_register/login/login.page.scss diff --git a/src/app/pages/login/login.page.spec.ts b/src/app/pages/login_register/login/login.page.spec.ts similarity index 100% rename from src/app/pages/login/login.page.spec.ts rename to src/app/pages/login_register/login/login.page.spec.ts diff --git a/src/app/pages/login/login.page.ts b/src/app/pages/login_register/login/login.page.ts similarity index 95% rename from src/app/pages/login/login.page.ts rename to src/app/pages/login_register/login/login.page.ts index 885a784..c1e7991 100644 --- a/src/app/pages/login/login.page.ts +++ b/src/app/pages/login_register/login/login.page.ts @@ -1,6 +1,6 @@ import {Component, Input, OnInit} from '@angular/core'; -import {AuthService} from "../../services/auth.service"; -import {User} from "../../interfaces/user"; +import {AuthService} from "../../../services/auth.service"; +import {User} from "../../../interfaces/user"; import {AlertController, LoadingController, NavController} from "@ionic/angular"; @Component({ diff --git a/src/app/pages/register/register-routing.module.ts b/src/app/pages/login_register/register/register-routing.module.ts similarity index 100% rename from src/app/pages/register/register-routing.module.ts rename to src/app/pages/login_register/register/register-routing.module.ts diff --git a/src/app/pages/register/register.module.ts b/src/app/pages/login_register/register/register.module.ts similarity index 100% rename from src/app/pages/register/register.module.ts rename to src/app/pages/login_register/register/register.module.ts diff --git a/src/app/pages/register/register.page.html b/src/app/pages/login_register/register/register.page.html similarity index 100% rename from src/app/pages/register/register.page.html rename to src/app/pages/login_register/register/register.page.html diff --git a/src/app/pages/register/register.page.scss b/src/app/pages/login_register/register/register.page.scss similarity index 100% rename from src/app/pages/register/register.page.scss rename to src/app/pages/login_register/register/register.page.scss diff --git a/src/app/pages/register/register.page.spec.ts b/src/app/pages/login_register/register/register.page.spec.ts similarity index 100% rename from src/app/pages/register/register.page.spec.ts rename to src/app/pages/login_register/register/register.page.spec.ts diff --git a/src/app/pages/register/register.page.ts b/src/app/pages/login_register/register/register.page.ts similarity index 96% rename from src/app/pages/register/register.page.ts rename to src/app/pages/login_register/register/register.page.ts index adeccc7..1c446af 100644 --- a/src/app/pages/register/register.page.ts +++ b/src/app/pages/login_register/register/register.page.ts @@ -1,6 +1,6 @@ import {Component, Input, OnInit} from '@angular/core'; -import {User} from "../../interfaces/user"; -import {AuthService} from "../../services/auth.service"; +import {User} from "../../../interfaces/user"; +import {AuthService} from "../../../services/auth.service"; import {AlertController, LoadingController, NavController} from "@ionic/angular"; /** diff --git a/src/app/pages/graph-data-for/graph-data-for-routing.module.ts b/src/app/pages/main_graphs/graph-data-for/graph-data-for-routing.module.ts similarity index 100% rename from src/app/pages/graph-data-for/graph-data-for-routing.module.ts rename to src/app/pages/main_graphs/graph-data-for/graph-data-for-routing.module.ts diff --git a/src/app/pages/graph-data-for/graph-data-for.module.ts b/src/app/pages/main_graphs/graph-data-for/graph-data-for.module.ts similarity index 88% rename from src/app/pages/graph-data-for/graph-data-for.module.ts rename to src/app/pages/main_graphs/graph-data-for/graph-data-for.module.ts index 6e38581..3478a99 100644 --- a/src/app/pages/graph-data-for/graph-data-for.module.ts +++ b/src/app/pages/main_graphs/graph-data-for/graph-data-for.module.ts @@ -7,7 +7,7 @@ import { IonicModule } from '@ionic/angular'; import { GraphDataForPageRoutingModule } from './graph-data-for-routing.module'; import { GraphDataForPage } from './graph-data-for.page'; -import {ComponentsModule} from "../../components/components.module"; +import {ComponentsModule} from "../../../components/components.module"; @NgModule({ imports: [ diff --git a/src/app/pages/graph-data-for/graph-data-for.page.html b/src/app/pages/main_graphs/graph-data-for/graph-data-for.page.html similarity index 100% rename from src/app/pages/graph-data-for/graph-data-for.page.html rename to src/app/pages/main_graphs/graph-data-for/graph-data-for.page.html diff --git a/src/app/pages/graph-data-for/graph-data-for.page.scss b/src/app/pages/main_graphs/graph-data-for/graph-data-for.page.scss similarity index 100% rename from src/app/pages/graph-data-for/graph-data-for.page.scss rename to src/app/pages/main_graphs/graph-data-for/graph-data-for.page.scss diff --git a/src/app/pages/graph-data-for/graph-data-for.page.spec.ts b/src/app/pages/main_graphs/graph-data-for/graph-data-for.page.spec.ts similarity index 100% rename from src/app/pages/graph-data-for/graph-data-for.page.spec.ts rename to src/app/pages/main_graphs/graph-data-for/graph-data-for.page.spec.ts diff --git a/src/app/pages/graph-data-for/graph-data-for.page.ts b/src/app/pages/main_graphs/graph-data-for/graph-data-for.page.ts similarity index 100% rename from src/app/pages/graph-data-for/graph-data-for.page.ts rename to src/app/pages/main_graphs/graph-data-for/graph-data-for.page.ts diff --git a/src/app/pages/home/home-routing.module.ts b/src/app/pages/main_graphs/home/home-routing.module.ts similarity index 100% rename from src/app/pages/home/home-routing.module.ts rename to src/app/pages/main_graphs/home/home-routing.module.ts diff --git a/src/app/pages/home/home.module.ts b/src/app/pages/main_graphs/home/home.module.ts similarity index 87% rename from src/app/pages/home/home.module.ts rename to src/app/pages/main_graphs/home/home.module.ts index 887803a..e9ff5bf 100644 --- a/src/app/pages/home/home.module.ts +++ b/src/app/pages/main_graphs/home/home.module.ts @@ -5,7 +5,7 @@ import { FormsModule } from '@angular/forms'; import { HomePage } from './home.page'; import { HomePageRoutingModule } from './home-routing.module'; -import {ComponentsModule} from "../../components/components.module"; +import {ComponentsModule} from "../../../components/components.module"; @NgModule({ diff --git a/src/app/pages/home/home.page.html b/src/app/pages/main_graphs/home/home.page.html similarity index 100% rename from src/app/pages/home/home.page.html rename to src/app/pages/main_graphs/home/home.page.html diff --git a/src/app/pages/home/home.page.scss b/src/app/pages/main_graphs/home/home.page.scss similarity index 100% rename from src/app/pages/home/home.page.scss rename to src/app/pages/main_graphs/home/home.page.scss diff --git a/src/app/pages/home/home.page.spec.ts b/src/app/pages/main_graphs/home/home.page.spec.ts similarity index 100% rename from src/app/pages/home/home.page.spec.ts rename to src/app/pages/main_graphs/home/home.page.spec.ts diff --git a/src/app/pages/home/home.page.ts b/src/app/pages/main_graphs/home/home.page.ts similarity index 88% rename from src/app/pages/home/home.page.ts rename to src/app/pages/main_graphs/home/home.page.ts index b3bcda3..4a02871 100644 --- a/src/app/pages/home/home.page.ts +++ b/src/app/pages/main_graphs/home/home.page.ts @@ -1,10 +1,10 @@ import { Component } from '@angular/core'; import {logOut} from "ionicons/icons"; -import {AuthService} from "../../services/auth.service"; +import {AuthService} from "../../../services/auth.service"; import {Router} from "@angular/router"; -import {User} from "../../interfaces/user"; -import {Product} from "../../interfaces/product"; -import {ProductService} from "../../services/product.service"; +import {User} from "../../../interfaces/user"; +import {Product} from "../../../interfaces/product"; +import {ProductService} from "../../../services/product.service"; import {LoadingController} from "@ionic/angular"; @Component({ diff --git a/src/app/pages/graph-latency/graph-latency-routing.module.ts b/src/app/pages/main_graphs/latency_graph/graph-latency/graph-latency-routing.module.ts similarity index 100% rename from src/app/pages/graph-latency/graph-latency-routing.module.ts rename to src/app/pages/main_graphs/latency_graph/graph-latency/graph-latency-routing.module.ts diff --git a/src/app/pages/graph-latency/graph-latency.module.ts b/src/app/pages/main_graphs/latency_graph/graph-latency/graph-latency.module.ts similarity index 90% rename from src/app/pages/graph-latency/graph-latency.module.ts rename to src/app/pages/main_graphs/latency_graph/graph-latency/graph-latency.module.ts index 8f1337a..075de32 100644 --- a/src/app/pages/graph-latency/graph-latency.module.ts +++ b/src/app/pages/main_graphs/latency_graph/graph-latency/graph-latency.module.ts @@ -8,7 +8,7 @@ import { GraphPageRoutingModule } from './graph-latency-routing.module'; import { GraphLatencyPage } from './graph-latency.page'; import {NgxEchartsDirective} from "ngx-echarts"; -import {ComponentsModule} from "../../components/components.module"; +import {ComponentsModule} from "../../../../components/components.module"; import {MarkdownComponent} from "ngx-markdown"; @NgModule({ diff --git a/src/app/pages/graph-latency/graph-latency.page.html b/src/app/pages/main_graphs/latency_graph/graph-latency/graph-latency.page.html similarity index 100% rename from src/app/pages/graph-latency/graph-latency.page.html rename to src/app/pages/main_graphs/latency_graph/graph-latency/graph-latency.page.html diff --git a/src/app/pages/graph-latency/graph-latency.page.scss b/src/app/pages/main_graphs/latency_graph/graph-latency/graph-latency.page.scss similarity index 100% rename from src/app/pages/graph-latency/graph-latency.page.scss rename to src/app/pages/main_graphs/latency_graph/graph-latency/graph-latency.page.scss diff --git a/src/app/pages/graph-latency/graph-latency.page.ts b/src/app/pages/main_graphs/latency_graph/graph-latency/graph-latency.page.ts similarity index 97% rename from src/app/pages/graph-latency/graph-latency.page.ts rename to src/app/pages/main_graphs/latency_graph/graph-latency/graph-latency.page.ts index aebf6a9..4eb79d0 100644 --- a/src/app/pages/graph-latency/graph-latency.page.ts +++ b/src/app/pages/main_graphs/latency_graph/graph-latency/graph-latency.page.ts @@ -1,13 +1,13 @@ import {Component, ElementRef, inject, OnInit, ViewChild} from '@angular/core'; import type { EChartsOption } from 'echarts'; -import { RipeService } from "../../services/ripe.service"; +import { RipeService } from "../../../../services/ripe.service"; import { ActivatedRoute } from "@angular/router"; -import { User } from "../../interfaces/user"; +import { User } from "../../../../interfaces/user"; import {Browser} from "leaflet"; import win = Browser.win; import {getGenerativeModel, VertexAI} from "@angular/fire/vertexai-preview"; -import {AiMessage} from "../../interfaces/ai-message"; -import {CountryAi} from "../../interfaces/country-ai"; +import {AiMessage} from "../../../../interfaces/ai-message"; +import {CountryAi} from "../../../../interfaces/country-ai"; import {LoadingController} from "@ionic/angular"; @Component({ diff --git a/src/app/pages/graph-trace/graph-trace-routing.module.ts b/src/app/pages/main_graphs/traceroute_graph/graph-trace/graph-trace-routing.module.ts similarity index 100% rename from src/app/pages/graph-trace/graph-trace-routing.module.ts rename to src/app/pages/main_graphs/traceroute_graph/graph-trace/graph-trace-routing.module.ts diff --git a/src/app/pages/graph-trace/graph-trace.module.ts b/src/app/pages/main_graphs/traceroute_graph/graph-trace/graph-trace.module.ts similarity index 89% rename from src/app/pages/graph-trace/graph-trace.module.ts rename to src/app/pages/main_graphs/traceroute_graph/graph-trace/graph-trace.module.ts index e40eb01..93c69e4 100644 --- a/src/app/pages/graph-trace/graph-trace.module.ts +++ b/src/app/pages/main_graphs/traceroute_graph/graph-trace/graph-trace.module.ts @@ -7,7 +7,7 @@ import { IonicModule } from '@ionic/angular'; import { GraphTracePageRoutingModule } from './graph-trace-routing.module'; import { GraphTracePage } from './graph-trace.page'; -import {ComponentsModule} from "../../components/components.module"; +import {ComponentsModule} from "../../../../components/components.module"; import {NgxEchartsDirective} from "ngx-echarts"; import {MarkdownComponent} from "ngx-markdown"; diff --git a/src/app/pages/graph-trace/graph-trace.page.html b/src/app/pages/main_graphs/traceroute_graph/graph-trace/graph-trace.page.html similarity index 100% rename from src/app/pages/graph-trace/graph-trace.page.html rename to src/app/pages/main_graphs/traceroute_graph/graph-trace/graph-trace.page.html diff --git a/src/app/pages/graph-trace/graph-trace.page.scss b/src/app/pages/main_graphs/traceroute_graph/graph-trace/graph-trace.page.scss similarity index 100% rename from src/app/pages/graph-trace/graph-trace.page.scss rename to src/app/pages/main_graphs/traceroute_graph/graph-trace/graph-trace.page.scss diff --git a/src/app/pages/graph-trace/graph-trace.page.spec.ts b/src/app/pages/main_graphs/traceroute_graph/graph-trace/graph-trace.page.spec.ts similarity index 100% rename from src/app/pages/graph-trace/graph-trace.page.spec.ts rename to src/app/pages/main_graphs/traceroute_graph/graph-trace/graph-trace.page.spec.ts diff --git a/src/app/pages/graph-trace/graph-trace.page.ts b/src/app/pages/main_graphs/traceroute_graph/graph-trace/graph-trace.page.ts similarity index 97% rename from src/app/pages/graph-trace/graph-trace.page.ts rename to src/app/pages/main_graphs/traceroute_graph/graph-trace/graph-trace.page.ts index d53c837..152fda4 100644 --- a/src/app/pages/graph-trace/graph-trace.page.ts +++ b/src/app/pages/main_graphs/traceroute_graph/graph-trace/graph-trace.page.ts @@ -1,13 +1,13 @@ import {Component, ElementRef, inject, OnInit, ViewChild} from '@angular/core'; import type { EChartsOption } from "echarts"; -import { User } from "../../interfaces/user"; -import { RipeService } from "../../services/ripe.service"; +import { User } from "../../../../interfaces/user"; +import { RipeService } from "../../../../services/ripe.service"; import { ActivatedRoute } from "@angular/router"; -import { RipeTraceService } from "../../services/ripe-trace.service"; +import { RipeTraceService } from "../../../../services/ripe-trace.service"; import { refresh } from "ionicons/icons"; import {getGenerativeModel, VertexAI} from "@angular/fire/vertexai-preview"; -import {AiMessage} from "../../interfaces/ai-message"; -import {CountryAi} from "../../interfaces/country-ai"; +import {AiMessage} from "../../../../interfaces/ai-message"; +import {CountryAi} from "../../../../interfaces/country-ai"; import {LoadingController} from "@ionic/angular"; /** diff --git a/src/app/pages/model-product/model-product-routing.module.ts b/src/app/pages/model_the_product/model-product/model-product-routing.module.ts similarity index 100% rename from src/app/pages/model-product/model-product-routing.module.ts rename to src/app/pages/model_the_product/model-product/model-product-routing.module.ts diff --git a/src/app/pages/model-product/model-product.module.ts b/src/app/pages/model_the_product/model-product/model-product.module.ts similarity index 88% rename from src/app/pages/model-product/model-product.module.ts rename to src/app/pages/model_the_product/model-product/model-product.module.ts index 6c901d4..ef25b08 100644 --- a/src/app/pages/model-product/model-product.module.ts +++ b/src/app/pages/model_the_product/model-product/model-product.module.ts @@ -7,7 +7,7 @@ import { IonicModule } from '@ionic/angular'; import { ModelProductPageRoutingModule } from './model-product-routing.module'; import { ModelProductPage } from './model-product.page'; -import {ComponentsModule} from "../../components/components.module"; +import {ComponentsModule} from "../../../components/components.module"; @NgModule({ imports: [ diff --git a/src/app/pages/model-product/model-product.page.html b/src/app/pages/model_the_product/model-product/model-product.page.html similarity index 100% rename from src/app/pages/model-product/model-product.page.html rename to src/app/pages/model_the_product/model-product/model-product.page.html diff --git a/src/app/pages/model-product/model-product.page.scss b/src/app/pages/model_the_product/model-product/model-product.page.scss similarity index 100% rename from src/app/pages/model-product/model-product.page.scss rename to src/app/pages/model_the_product/model-product/model-product.page.scss diff --git a/src/app/pages/model-product/model-product.page.spec.ts b/src/app/pages/model_the_product/model-product/model-product.page.spec.ts similarity index 100% rename from src/app/pages/model-product/model-product.page.spec.ts rename to src/app/pages/model_the_product/model-product/model-product.page.spec.ts diff --git a/src/app/pages/model-product/model-product.page.ts b/src/app/pages/model_the_product/model-product/model-product.page.ts similarity index 92% rename from src/app/pages/model-product/model-product.page.ts rename to src/app/pages/model_the_product/model-product/model-product.page.ts index 3d5d43a..6abaaa8 100644 --- a/src/app/pages/model-product/model-product.page.ts +++ b/src/app/pages/model_the_product/model-product/model-product.page.ts @@ -1,7 +1,7 @@ import { Component, OnInit } from '@angular/core'; -import {ProductService} from "../../services/product.service"; -import {Product} from "../../interfaces/product"; -import {User} from "../../interfaces/user"; +import {ProductService} from "../../../services/product.service"; +import {Product} from "../../../interfaces/product"; +import {User} from "../../../interfaces/user"; import {AlertController, LoadingController} from "@ionic/angular"; import {Router} from "@angular/router"; diff --git a/src/app/pages/new-product/new-product-routing.module.ts b/src/app/pages/model_the_product/new-product/new-product-routing.module.ts similarity index 100% rename from src/app/pages/new-product/new-product-routing.module.ts rename to src/app/pages/model_the_product/new-product/new-product-routing.module.ts diff --git a/src/app/pages/new-product/new-product.module.ts b/src/app/pages/model_the_product/new-product/new-product.module.ts similarity index 88% rename from src/app/pages/new-product/new-product.module.ts rename to src/app/pages/model_the_product/new-product/new-product.module.ts index 5638924..d98bb65 100644 --- a/src/app/pages/new-product/new-product.module.ts +++ b/src/app/pages/model_the_product/new-product/new-product.module.ts @@ -7,7 +7,7 @@ import { IonicModule } from '@ionic/angular'; import { NewProductPageRoutingModule } from './new-product-routing.module'; import { NewProductPage } from './new-product.page'; -import {ComponentsModule} from "../../components/components.module"; +import {ComponentsModule} from "../../../components/components.module"; @NgModule({ imports: [ diff --git a/src/app/pages/new-product/new-product.page.html b/src/app/pages/model_the_product/new-product/new-product.page.html similarity index 100% rename from src/app/pages/new-product/new-product.page.html rename to src/app/pages/model_the_product/new-product/new-product.page.html diff --git a/src/app/pages/new-product/new-product.page.scss b/src/app/pages/model_the_product/new-product/new-product.page.scss similarity index 100% rename from src/app/pages/new-product/new-product.page.scss rename to src/app/pages/model_the_product/new-product/new-product.page.scss diff --git a/src/app/pages/new-product/new-product.page.spec.ts b/src/app/pages/model_the_product/new-product/new-product.page.spec.ts similarity index 100% rename from src/app/pages/new-product/new-product.page.spec.ts rename to src/app/pages/model_the_product/new-product/new-product.page.spec.ts diff --git a/src/app/pages/new-product/new-product.page.ts b/src/app/pages/model_the_product/new-product/new-product.page.ts similarity index 95% rename from src/app/pages/new-product/new-product.page.ts rename to src/app/pages/model_the_product/new-product/new-product.page.ts index 14649b6..6d272b9 100644 --- a/src/app/pages/new-product/new-product.page.ts +++ b/src/app/pages/model_the_product/new-product/new-product.page.ts @@ -1,7 +1,7 @@ import {Component, Input, OnInit} from '@angular/core'; -import {Product} from "../../interfaces/product"; -import {User} from "../../interfaces/user"; -import {ProductService} from "../../services/product.service"; +import {Product} from "../../../interfaces/product"; +import {User} from "../../../interfaces/user"; +import {ProductService} from "../../../services/product.service"; import {AlertController, LoadingController} from "@ionic/angular"; import {Router} from "@angular/router"; diff --git a/src/app/pages/view-product/view-product-routing.module.ts b/src/app/pages/model_the_product/view-product/view-product-routing.module.ts similarity index 100% rename from src/app/pages/view-product/view-product-routing.module.ts rename to src/app/pages/model_the_product/view-product/view-product-routing.module.ts diff --git a/src/app/pages/view-product/view-product.module.ts b/src/app/pages/model_the_product/view-product/view-product.module.ts similarity index 88% rename from src/app/pages/view-product/view-product.module.ts rename to src/app/pages/model_the_product/view-product/view-product.module.ts index c29531b..f967ffc 100644 --- a/src/app/pages/view-product/view-product.module.ts +++ b/src/app/pages/model_the_product/view-product/view-product.module.ts @@ -7,7 +7,7 @@ import { IonicModule } from '@ionic/angular'; import { ViewProductPageRoutingModule } from './view-product-routing.module'; import { ViewProductPage } from './view-product.page'; -import {ComponentsModule} from "../../components/components.module"; +import {ComponentsModule} from "../../../components/components.module"; @NgModule({ imports: [ diff --git a/src/app/pages/view-product/view-product.page.html b/src/app/pages/model_the_product/view-product/view-product.page.html similarity index 100% rename from src/app/pages/view-product/view-product.page.html rename to src/app/pages/model_the_product/view-product/view-product.page.html diff --git a/src/app/pages/view-product/view-product.page.scss b/src/app/pages/model_the_product/view-product/view-product.page.scss similarity index 100% rename from src/app/pages/view-product/view-product.page.scss rename to src/app/pages/model_the_product/view-product/view-product.page.scss diff --git a/src/app/pages/view-product/view-product.page.spec.ts b/src/app/pages/model_the_product/view-product/view-product.page.spec.ts similarity index 100% rename from src/app/pages/view-product/view-product.page.spec.ts rename to src/app/pages/model_the_product/view-product/view-product.page.spec.ts diff --git a/src/app/pages/view-product/view-product.page.ts b/src/app/pages/model_the_product/view-product/view-product.page.ts similarity index 97% rename from src/app/pages/view-product/view-product.page.ts rename to src/app/pages/model_the_product/view-product/view-product.page.ts index fbfc821..ede0ce2 100644 --- a/src/app/pages/view-product/view-product.page.ts +++ b/src/app/pages/model_the_product/view-product/view-product.page.ts @@ -1,10 +1,10 @@ import {Component, OnInit, QueryList, ViewChild, ViewChildren} from '@angular/core'; -import {Product} from "../../interfaces/product"; +import {Product} from "../../../interfaces/product"; import {ActivatedRoute, Router} from "@angular/router"; import {AlertController, IonInput, IonList, LoadingController} from "@ionic/angular"; -import {ProductService} from "../../services/product.service"; -import {RipeService} from "../../services/ripe.service"; -import {Ripe} from "../../interfaces/ripe"; +import {ProductService} from "../../../services/product.service"; +import {RipeService} from "../../../services/ripe.service"; +import {Ripe} from "../../../interfaces/ripe"; /** * ViewProductPage is a component that manages the view product page of the application. diff --git a/src/app/pages/software-testing-chooser/software-testing-chooser-routing.module.ts b/src/app/pages/software_testing/software-testing-chooser/software-testing-chooser-routing.module.ts similarity index 100% rename from src/app/pages/software-testing-chooser/software-testing-chooser-routing.module.ts rename to src/app/pages/software_testing/software-testing-chooser/software-testing-chooser-routing.module.ts diff --git a/src/app/pages/software-testing-chooser/software-testing-chooser.module.ts b/src/app/pages/software_testing/software-testing-chooser/software-testing-chooser.module.ts similarity index 79% rename from src/app/pages/software-testing-chooser/software-testing-chooser.module.ts rename to src/app/pages/software_testing/software-testing-chooser/software-testing-chooser.module.ts index db45691..e411d2e 100644 --- a/src/app/pages/software-testing-chooser/software-testing-chooser.module.ts +++ b/src/app/pages/software_testing/software-testing-chooser/software-testing-chooser.module.ts @@ -7,9 +7,9 @@ import { IonicModule } from '@ionic/angular'; import { SoftwareTestingChooserPageRoutingModule } from './software-testing-chooser-routing.module'; import { SoftwareTestingChooserPage } from './software-testing-chooser.page'; -import {ComponentsModule} from "../../components/components.module"; +import {ComponentsModule} from "../../../components/components.module"; import {NgxEchartsDirective} from "ngx-echarts"; -import {GraphPageRoutingModule} from "../graph-latency/graph-latency-routing.module"; +import {GraphPageRoutingModule} from "../../main_graphs/latency_graph/graph-latency/graph-latency-routing.module"; @NgModule({ imports: [ diff --git a/src/app/pages/software-testing-chooser/software-testing-chooser.page.html b/src/app/pages/software_testing/software-testing-chooser/software-testing-chooser.page.html similarity index 100% rename from src/app/pages/software-testing-chooser/software-testing-chooser.page.html rename to src/app/pages/software_testing/software-testing-chooser/software-testing-chooser.page.html diff --git a/src/app/pages/software-testing-chooser/software-testing-chooser.page.scss b/src/app/pages/software_testing/software-testing-chooser/software-testing-chooser.page.scss similarity index 100% rename from src/app/pages/software-testing-chooser/software-testing-chooser.page.scss rename to src/app/pages/software_testing/software-testing-chooser/software-testing-chooser.page.scss diff --git a/src/app/pages/software-testing-chooser/software-testing-chooser.page.spec.ts b/src/app/pages/software_testing/software-testing-chooser/software-testing-chooser.page.spec.ts similarity index 100% rename from src/app/pages/software-testing-chooser/software-testing-chooser.page.spec.ts rename to src/app/pages/software_testing/software-testing-chooser/software-testing-chooser.page.spec.ts diff --git a/src/app/pages/software-testing-chooser/software-testing-chooser.page.ts b/src/app/pages/software_testing/software-testing-chooser/software-testing-chooser.page.ts similarity index 96% rename from src/app/pages/software-testing-chooser/software-testing-chooser.page.ts rename to src/app/pages/software_testing/software-testing-chooser/software-testing-chooser.page.ts index c67d915..7eefc9c 100644 --- a/src/app/pages/software-testing-chooser/software-testing-chooser.page.ts +++ b/src/app/pages/software_testing/software-testing-chooser/software-testing-chooser.page.ts @@ -1,9 +1,9 @@ import { Component, OnInit } from '@angular/core'; import {ActivatedRoute, Router} from "@angular/router"; -import {Product} from "../../interfaces/product"; -import {SystemTestService} from "../../services/system-test.service"; -import {SystemTest} from "../../interfaces/system-test"; -import {User} from "../../interfaces/user"; +import {Product} from "../../../interfaces/product"; +import {SystemTestService} from "../../../services/system-test.service"; +import {SystemTest} from "../../../interfaces/system-test"; +import {User} from "../../../interfaces/user"; import {LoadingController} from "@ionic/angular"; import {EChartsOption} from "echarts"; diff --git a/src/app/pages/software-testing/software-testing-routing.module.ts b/src/app/pages/software_testing/software-testing/software-testing-routing.module.ts similarity index 100% rename from src/app/pages/software-testing/software-testing-routing.module.ts rename to src/app/pages/software_testing/software-testing/software-testing-routing.module.ts diff --git a/src/app/pages/software-testing/software-testing.module.ts b/src/app/pages/software_testing/software-testing/software-testing.module.ts similarity index 89% rename from src/app/pages/software-testing/software-testing.module.ts rename to src/app/pages/software_testing/software-testing/software-testing.module.ts index edf8e1a..6ab8565 100644 --- a/src/app/pages/software-testing/software-testing.module.ts +++ b/src/app/pages/software_testing/software-testing/software-testing.module.ts @@ -7,7 +7,7 @@ import { IonicModule } from '@ionic/angular'; import { SoftwareTestingPageRoutingModule } from './software-testing-routing.module'; import { SoftwareTestingPage } from './software-testing.page'; -import {ComponentsModule} from "../../components/components.module"; +import {ComponentsModule} from "../../../components/components.module"; @NgModule({ imports: [ diff --git a/src/app/pages/software-testing/software-testing.page.html b/src/app/pages/software_testing/software-testing/software-testing.page.html similarity index 100% rename from src/app/pages/software-testing/software-testing.page.html rename to src/app/pages/software_testing/software-testing/software-testing.page.html diff --git a/src/app/pages/software-testing/software-testing.page.scss b/src/app/pages/software_testing/software-testing/software-testing.page.scss similarity index 100% rename from src/app/pages/software-testing/software-testing.page.scss rename to src/app/pages/software_testing/software-testing/software-testing.page.scss diff --git a/src/app/pages/software-testing/software-testing.page.spec.ts b/src/app/pages/software_testing/software-testing/software-testing.page.spec.ts similarity index 100% rename from src/app/pages/software-testing/software-testing.page.spec.ts rename to src/app/pages/software_testing/software-testing/software-testing.page.spec.ts diff --git a/src/app/pages/software-testing/software-testing.page.ts b/src/app/pages/software_testing/software-testing/software-testing.page.ts similarity index 93% rename from src/app/pages/software-testing/software-testing.page.ts rename to src/app/pages/software_testing/software-testing/software-testing.page.ts index 777250e..4c60b43 100644 --- a/src/app/pages/software-testing/software-testing.page.ts +++ b/src/app/pages/software_testing/software-testing/software-testing.page.ts @@ -1,9 +1,9 @@ import { Component, OnInit } from '@angular/core'; import {Router} from "@angular/router"; -import {Product} from "../../interfaces/product"; -import {ProductService} from "../../services/product.service"; +import {Product} from "../../../interfaces/product"; +import {ProductService} from "../../../services/product.service"; import {LoadingController} from "@ionic/angular"; -import {User} from "../../interfaces/user"; +import {User} from "../../../interfaces/user"; @Component({ selector: 'app-software-testing', diff --git a/src/app/pages/create-system-test/create-system-test-routing.module.ts b/src/app/pages/software_testing/system_tests/create-system-test/create-system-test-routing.module.ts similarity index 100% rename from src/app/pages/create-system-test/create-system-test-routing.module.ts rename to src/app/pages/software_testing/system_tests/create-system-test/create-system-test-routing.module.ts diff --git a/src/app/pages/create-system-test/create-system-test.module.ts b/src/app/pages/software_testing/system_tests/create-system-test/create-system-test.module.ts similarity index 88% rename from src/app/pages/create-system-test/create-system-test.module.ts rename to src/app/pages/software_testing/system_tests/create-system-test/create-system-test.module.ts index fd4ec4c..747cc52 100644 --- a/src/app/pages/create-system-test/create-system-test.module.ts +++ b/src/app/pages/software_testing/system_tests/create-system-test/create-system-test.module.ts @@ -7,7 +7,7 @@ import { IonicModule } from '@ionic/angular'; import { CreateSystemTestPageRoutingModule } from './create-system-test-routing.module'; import { CreateSystemTestPage } from './create-system-test.page'; -import {ComponentsModule} from "../../components/components.module"; +import {ComponentsModule} from "../../../../components/components.module"; @NgModule({ imports: [ diff --git a/src/app/pages/create-system-test/create-system-test.page.html b/src/app/pages/software_testing/system_tests/create-system-test/create-system-test.page.html similarity index 100% rename from src/app/pages/create-system-test/create-system-test.page.html rename to src/app/pages/software_testing/system_tests/create-system-test/create-system-test.page.html diff --git a/src/app/pages/create-system-test/create-system-test.page.scss b/src/app/pages/software_testing/system_tests/create-system-test/create-system-test.page.scss similarity index 100% rename from src/app/pages/create-system-test/create-system-test.page.scss rename to src/app/pages/software_testing/system_tests/create-system-test/create-system-test.page.scss diff --git a/src/app/pages/create-system-test/create-system-test.page.spec.ts b/src/app/pages/software_testing/system_tests/create-system-test/create-system-test.page.spec.ts similarity index 100% rename from src/app/pages/create-system-test/create-system-test.page.spec.ts rename to src/app/pages/software_testing/system_tests/create-system-test/create-system-test.page.spec.ts diff --git a/src/app/pages/create-system-test/create-system-test.page.ts b/src/app/pages/software_testing/system_tests/create-system-test/create-system-test.page.ts similarity index 95% rename from src/app/pages/create-system-test/create-system-test.page.ts rename to src/app/pages/software_testing/system_tests/create-system-test/create-system-test.page.ts index ab61fee..1766b2d 100644 --- a/src/app/pages/create-system-test/create-system-test.page.ts +++ b/src/app/pages/software_testing/system_tests/create-system-test/create-system-test.page.ts @@ -1,9 +1,9 @@ import {Component, OnInit, ViewChild} from '@angular/core'; import {ActivatedRoute} from "@angular/router"; -import {SystemTest} from "../../interfaces/system-test"; +import {SystemTest} from "../../../../interfaces/system-test"; import {AlertController, IonModal, LoadingController} from "@ionic/angular"; -import {SystemTestService} from "../../services/system-test.service"; -import {User} from "../../interfaces/user"; +import {SystemTestService} from "../../../../services/system-test.service"; +import {User} from "../../../../interfaces/user"; @Component({ selector: 'app-create-system-test', diff --git a/src/app/pages/execute-system-test/execute-system-test-routing.module.ts b/src/app/pages/software_testing/system_tests/execute-system-test/execute-system-test-routing.module.ts similarity index 100% rename from src/app/pages/execute-system-test/execute-system-test-routing.module.ts rename to src/app/pages/software_testing/system_tests/execute-system-test/execute-system-test-routing.module.ts diff --git a/src/app/pages/execute-system-test/execute-system-test.module.ts b/src/app/pages/software_testing/system_tests/execute-system-test/execute-system-test.module.ts similarity index 88% rename from src/app/pages/execute-system-test/execute-system-test.module.ts rename to src/app/pages/software_testing/system_tests/execute-system-test/execute-system-test.module.ts index 4fb538f..1423d7a 100644 --- a/src/app/pages/execute-system-test/execute-system-test.module.ts +++ b/src/app/pages/software_testing/system_tests/execute-system-test/execute-system-test.module.ts @@ -7,7 +7,7 @@ import { IonicModule } from '@ionic/angular'; import { ExecuteSystemTestPageRoutingModule } from './execute-system-test-routing.module'; import { ExecuteSystemTestPage } from './execute-system-test.page'; -import {ComponentsModule} from "../../components/components.module"; +import {ComponentsModule} from "../../../../components/components.module"; @NgModule({ imports: [ diff --git a/src/app/pages/execute-system-test/execute-system-test.page.html b/src/app/pages/software_testing/system_tests/execute-system-test/execute-system-test.page.html similarity index 100% rename from src/app/pages/execute-system-test/execute-system-test.page.html rename to src/app/pages/software_testing/system_tests/execute-system-test/execute-system-test.page.html diff --git a/src/app/pages/execute-system-test/execute-system-test.page.scss b/src/app/pages/software_testing/system_tests/execute-system-test/execute-system-test.page.scss similarity index 100% rename from src/app/pages/execute-system-test/execute-system-test.page.scss rename to src/app/pages/software_testing/system_tests/execute-system-test/execute-system-test.page.scss diff --git a/src/app/pages/execute-system-test/execute-system-test.page.spec.ts b/src/app/pages/software_testing/system_tests/execute-system-test/execute-system-test.page.spec.ts similarity index 100% rename from src/app/pages/execute-system-test/execute-system-test.page.spec.ts rename to src/app/pages/software_testing/system_tests/execute-system-test/execute-system-test.page.spec.ts diff --git a/src/app/pages/execute-system-test/execute-system-test.page.ts b/src/app/pages/software_testing/system_tests/execute-system-test/execute-system-test.page.ts similarity index 94% rename from src/app/pages/execute-system-test/execute-system-test.page.ts rename to src/app/pages/software_testing/system_tests/execute-system-test/execute-system-test.page.ts index 832df9d..afcfad9 100644 --- a/src/app/pages/execute-system-test/execute-system-test.page.ts +++ b/src/app/pages/software_testing/system_tests/execute-system-test/execute-system-test.page.ts @@ -1,8 +1,8 @@ import { Component, OnInit } from '@angular/core'; import {ActivatedRoute} from "@angular/router"; -import {SystemTest} from "../../interfaces/system-test"; -import {User} from "../../interfaces/user"; -import {SystemTestService} from "../../services/system-test.service"; +import {SystemTest} from "../../../../interfaces/system-test"; +import {User} from "../../../../interfaces/user"; +import {SystemTestService} from "../../../../services/system-test.service"; import {LoadingController} from "@ionic/angular"; @Component({ diff --git a/src/app/pages/view-history-system-test/view-history-system-test-routing.module.ts b/src/app/pages/software_testing/system_tests/view-history-system-test/view-history-system-test-routing.module.ts similarity index 100% rename from src/app/pages/view-history-system-test/view-history-system-test-routing.module.ts rename to src/app/pages/software_testing/system_tests/view-history-system-test/view-history-system-test-routing.module.ts diff --git a/src/app/pages/view-history-system-test/view-history-system-test.module.ts b/src/app/pages/software_testing/system_tests/view-history-system-test/view-history-system-test.module.ts similarity index 89% rename from src/app/pages/view-history-system-test/view-history-system-test.module.ts rename to src/app/pages/software_testing/system_tests/view-history-system-test/view-history-system-test.module.ts index 8215a91..1339098 100644 --- a/src/app/pages/view-history-system-test/view-history-system-test.module.ts +++ b/src/app/pages/software_testing/system_tests/view-history-system-test/view-history-system-test.module.ts @@ -7,7 +7,7 @@ import { IonicModule } from '@ionic/angular'; import { ViewHistorySystemTestPageRoutingModule } from './view-history-system-test-routing.module'; import { ViewHistorySystemTestPage } from './view-history-system-test.page'; -import {ComponentsModule} from "../../components/components.module"; +import {ComponentsModule} from "../../../../components/components.module"; @NgModule({ imports: [ diff --git a/src/app/pages/view-history-system-test/view-history-system-test.page.html b/src/app/pages/software_testing/system_tests/view-history-system-test/view-history-system-test.page.html similarity index 100% rename from src/app/pages/view-history-system-test/view-history-system-test.page.html rename to src/app/pages/software_testing/system_tests/view-history-system-test/view-history-system-test.page.html diff --git a/src/app/pages/view-history-system-test/view-history-system-test.page.scss b/src/app/pages/software_testing/system_tests/view-history-system-test/view-history-system-test.page.scss similarity index 100% rename from src/app/pages/view-history-system-test/view-history-system-test.page.scss rename to src/app/pages/software_testing/system_tests/view-history-system-test/view-history-system-test.page.scss diff --git a/src/app/pages/view-history-system-test/view-history-system-test.page.spec.ts b/src/app/pages/software_testing/system_tests/view-history-system-test/view-history-system-test.page.spec.ts similarity index 100% rename from src/app/pages/view-history-system-test/view-history-system-test.page.spec.ts rename to src/app/pages/software_testing/system_tests/view-history-system-test/view-history-system-test.page.spec.ts diff --git a/src/app/pages/view-history-system-test/view-history-system-test.page.ts b/src/app/pages/software_testing/system_tests/view-history-system-test/view-history-system-test.page.ts similarity index 94% rename from src/app/pages/view-history-system-test/view-history-system-test.page.ts rename to src/app/pages/software_testing/system_tests/view-history-system-test/view-history-system-test.page.ts index caceaef..301b4bb 100644 --- a/src/app/pages/view-history-system-test/view-history-system-test.page.ts +++ b/src/app/pages/software_testing/system_tests/view-history-system-test/view-history-system-test.page.ts @@ -1,8 +1,8 @@ import { Component, OnInit } from '@angular/core'; import {ActivatedRoute, Router} from "@angular/router"; -import {SystemTestService} from "../../services/system-test.service"; -import {User} from "../../interfaces/user"; -import {SystemTest} from "../../interfaces/system-test"; +import {SystemTestService} from "../../../../services/system-test.service"; +import {User} from "../../../../interfaces/user"; +import {SystemTest} from "../../../../interfaces/system-test"; import {LoadingController} from "@ionic/angular"; @Component({ diff --git a/src/app/pages/view-system-test/view-system-test-routing.module.ts b/src/app/pages/software_testing/system_tests/view-system-test/view-system-test-routing.module.ts similarity index 100% rename from src/app/pages/view-system-test/view-system-test-routing.module.ts rename to src/app/pages/software_testing/system_tests/view-system-test/view-system-test-routing.module.ts diff --git a/src/app/pages/view-system-test/view-system-test.module.ts b/src/app/pages/software_testing/system_tests/view-system-test/view-system-test.module.ts similarity index 88% rename from src/app/pages/view-system-test/view-system-test.module.ts rename to src/app/pages/software_testing/system_tests/view-system-test/view-system-test.module.ts index 333b713..5722615 100644 --- a/src/app/pages/view-system-test/view-system-test.module.ts +++ b/src/app/pages/software_testing/system_tests/view-system-test/view-system-test.module.ts @@ -7,7 +7,7 @@ import { IonicModule } from '@ionic/angular'; import { ViewSystemTestPageRoutingModule } from './view-system-test-routing.module'; import { ViewSystemTestPage } from './view-system-test.page'; -import {ComponentsModule} from "../../components/components.module"; +import {ComponentsModule} from "../../../../components/components.module"; @NgModule({ imports: [ diff --git a/src/app/pages/view-system-test/view-system-test.page.html b/src/app/pages/software_testing/system_tests/view-system-test/view-system-test.page.html similarity index 100% rename from src/app/pages/view-system-test/view-system-test.page.html rename to src/app/pages/software_testing/system_tests/view-system-test/view-system-test.page.html diff --git a/src/app/pages/view-system-test/view-system-test.page.scss b/src/app/pages/software_testing/system_tests/view-system-test/view-system-test.page.scss similarity index 100% rename from src/app/pages/view-system-test/view-system-test.page.scss rename to src/app/pages/software_testing/system_tests/view-system-test/view-system-test.page.scss diff --git a/src/app/pages/view-system-test/view-system-test.page.spec.ts b/src/app/pages/software_testing/system_tests/view-system-test/view-system-test.page.spec.ts similarity index 100% rename from src/app/pages/view-system-test/view-system-test.page.spec.ts rename to src/app/pages/software_testing/system_tests/view-system-test/view-system-test.page.spec.ts diff --git a/src/app/pages/view-system-test/view-system-test.page.ts b/src/app/pages/software_testing/system_tests/view-system-test/view-system-test.page.ts similarity index 89% rename from src/app/pages/view-system-test/view-system-test.page.ts rename to src/app/pages/software_testing/system_tests/view-system-test/view-system-test.page.ts index 1c8a082..7372fdc 100644 --- a/src/app/pages/view-system-test/view-system-test.page.ts +++ b/src/app/pages/software_testing/system_tests/view-system-test/view-system-test.page.ts @@ -1,7 +1,7 @@ import { Component, OnInit } from '@angular/core'; -import {SystemTest} from "../../interfaces/system-test"; -import {SystemTestService} from "../../services/system-test.service"; -import {User} from "../../interfaces/user"; +import {SystemTest} from "../../../../interfaces/system-test"; +import {SystemTestService} from "../../../../services/system-test.service"; +import {User} from "../../../../interfaces/user"; import {ActivatedRoute} from "@angular/router"; @Component({ diff --git a/src/app/pages/show-map-trace/show-map-trace-routing.module.ts b/src/app/pages/trace_test/show-map-trace/show-map-trace-routing.module.ts similarity index 100% rename from src/app/pages/show-map-trace/show-map-trace-routing.module.ts rename to src/app/pages/trace_test/show-map-trace/show-map-trace-routing.module.ts diff --git a/src/app/pages/show-map-trace/show-map-trace.module.ts b/src/app/pages/trace_test/show-map-trace/show-map-trace.module.ts similarity index 88% rename from src/app/pages/show-map-trace/show-map-trace.module.ts rename to src/app/pages/trace_test/show-map-trace/show-map-trace.module.ts index 8d1d0ea..5641561 100644 --- a/src/app/pages/show-map-trace/show-map-trace.module.ts +++ b/src/app/pages/trace_test/show-map-trace/show-map-trace.module.ts @@ -7,7 +7,7 @@ import { IonicModule } from '@ionic/angular'; import { ShowMapTracePageRoutingModule } from './show-map-trace-routing.module'; import { ShowMapTracePage } from './show-map-trace.page'; -import {ComponentsModule} from "../../components/components.module"; +import {ComponentsModule} from "../../../components/components.module"; @NgModule({ imports: [ diff --git a/src/app/pages/show-map-trace/show-map-trace.page.html b/src/app/pages/trace_test/show-map-trace/show-map-trace.page.html similarity index 100% rename from src/app/pages/show-map-trace/show-map-trace.page.html rename to src/app/pages/trace_test/show-map-trace/show-map-trace.page.html diff --git a/src/app/pages/show-map-trace/show-map-trace.page.scss b/src/app/pages/trace_test/show-map-trace/show-map-trace.page.scss similarity index 100% rename from src/app/pages/show-map-trace/show-map-trace.page.scss rename to src/app/pages/trace_test/show-map-trace/show-map-trace.page.scss diff --git a/src/app/pages/show-map-trace/show-map-trace.page.spec.ts b/src/app/pages/trace_test/show-map-trace/show-map-trace.page.spec.ts similarity index 100% rename from src/app/pages/show-map-trace/show-map-trace.page.spec.ts rename to src/app/pages/trace_test/show-map-trace/show-map-trace.page.spec.ts diff --git a/src/app/pages/show-map-trace/show-map-trace.page.ts b/src/app/pages/trace_test/show-map-trace/show-map-trace.page.ts similarity index 94% rename from src/app/pages/show-map-trace/show-map-trace.page.ts rename to src/app/pages/trace_test/show-map-trace/show-map-trace.page.ts index c8ec254..ba7ad2f 100644 --- a/src/app/pages/show-map-trace/show-map-trace.page.ts +++ b/src/app/pages/trace_test/show-map-trace/show-map-trace.page.ts @@ -1,13 +1,13 @@ import { Component, OnInit } from '@angular/core'; -import {Traceroute, TracerouteResult} from "../../classes/traceroute"; +import {Traceroute, TracerouteResult} from "../../../classes/traceroute"; import * as Leaflet from 'leaflet'; // @ts-ignore import { antPath } from 'leaflet-ant-path'; -import {RipeService} from "../../services/ripe.service"; +import {RipeService} from "../../../services/ripe.service"; import {LoadingController} from "@ionic/angular"; import {ActivatedRoute} from "@angular/router"; import {LatLngExpression} from "leaflet"; -import {RipeTraceService} from "../../services/ripe-trace.service"; +import {RipeTraceService} from "../../../services/ripe-trace.service"; diff --git a/src/app/pages/trace-chooser/trace-chooser-routing.module.ts b/src/app/pages/trace_test/trace-chooser/trace-chooser-routing.module.ts similarity index 100% rename from src/app/pages/trace-chooser/trace-chooser-routing.module.ts rename to src/app/pages/trace_test/trace-chooser/trace-chooser-routing.module.ts diff --git a/src/app/pages/trace-chooser/trace-chooser.module.ts b/src/app/pages/trace_test/trace-chooser/trace-chooser.module.ts similarity index 88% rename from src/app/pages/trace-chooser/trace-chooser.module.ts rename to src/app/pages/trace_test/trace-chooser/trace-chooser.module.ts index 1c8641c..34bc628 100644 --- a/src/app/pages/trace-chooser/trace-chooser.module.ts +++ b/src/app/pages/trace_test/trace-chooser/trace-chooser.module.ts @@ -7,7 +7,7 @@ import { IonicModule } from '@ionic/angular'; import { TraceChooserPageRoutingModule } from './trace-chooser-routing.module'; import { TraceChooserPage } from './trace-chooser.page'; -import {ComponentsModule} from "../../components/components.module"; +import {ComponentsModule} from "../../../components/components.module"; @NgModule({ imports: [ diff --git a/src/app/pages/trace-chooser/trace-chooser.page.html b/src/app/pages/trace_test/trace-chooser/trace-chooser.page.html similarity index 100% rename from src/app/pages/trace-chooser/trace-chooser.page.html rename to src/app/pages/trace_test/trace-chooser/trace-chooser.page.html diff --git a/src/app/pages/trace-chooser/trace-chooser.page.scss b/src/app/pages/trace_test/trace-chooser/trace-chooser.page.scss similarity index 100% rename from src/app/pages/trace-chooser/trace-chooser.page.scss rename to src/app/pages/trace_test/trace-chooser/trace-chooser.page.scss diff --git a/src/app/pages/trace-chooser/trace-chooser.page.spec.ts b/src/app/pages/trace_test/trace-chooser/trace-chooser.page.spec.ts similarity index 100% rename from src/app/pages/trace-chooser/trace-chooser.page.spec.ts rename to src/app/pages/trace_test/trace-chooser/trace-chooser.page.spec.ts diff --git a/src/app/pages/trace-chooser/trace-chooser.page.ts b/src/app/pages/trace_test/trace-chooser/trace-chooser.page.ts similarity index 93% rename from src/app/pages/trace-chooser/trace-chooser.page.ts rename to src/app/pages/trace_test/trace-chooser/trace-chooser.page.ts index 3bacb36..9df4db5 100644 --- a/src/app/pages/trace-chooser/trace-chooser.page.ts +++ b/src/app/pages/trace_test/trace-chooser/trace-chooser.page.ts @@ -1,9 +1,9 @@ import { Component, OnInit } from '@angular/core'; -import {Product} from "../../interfaces/product"; -import {ProductService} from "../../services/product.service"; +import {Product} from "../../../interfaces/product"; +import {ProductService} from "../../../services/product.service"; import {Router} from "@angular/router"; import {LoadingController} from "@ionic/angular"; -import {User} from "../../interfaces/user"; +import {User} from "../../../interfaces/user"; @Component({ selector: 'app-trace-chooser', diff --git a/src/app/pages/trace-results/trace-results-routing.module.ts b/src/app/pages/trace_test/trace-results/trace-results-routing.module.ts similarity index 100% rename from src/app/pages/trace-results/trace-results-routing.module.ts rename to src/app/pages/trace_test/trace-results/trace-results-routing.module.ts diff --git a/src/app/pages/trace-results/trace-results.module.ts b/src/app/pages/trace_test/trace-results/trace-results.module.ts similarity index 88% rename from src/app/pages/trace-results/trace-results.module.ts rename to src/app/pages/trace_test/trace-results/trace-results.module.ts index 4500044..dc28319 100644 --- a/src/app/pages/trace-results/trace-results.module.ts +++ b/src/app/pages/trace_test/trace-results/trace-results.module.ts @@ -7,7 +7,7 @@ import { IonicModule } from '@ionic/angular'; import { TraceResultsPageRoutingModule } from './trace-results-routing.module'; import { TraceResultsPage } from './trace-results.page'; -import {ComponentsModule} from "../../components/components.module"; +import {ComponentsModule} from "../../../components/components.module"; @NgModule({ imports: [ diff --git a/src/app/pages/trace-results/trace-results.page.html b/src/app/pages/trace_test/trace-results/trace-results.page.html similarity index 100% rename from src/app/pages/trace-results/trace-results.page.html rename to src/app/pages/trace_test/trace-results/trace-results.page.html diff --git a/src/app/pages/trace-results/trace-results.page.scss b/src/app/pages/trace_test/trace-results/trace-results.page.scss similarity index 100% rename from src/app/pages/trace-results/trace-results.page.scss rename to src/app/pages/trace_test/trace-results/trace-results.page.scss diff --git a/src/app/pages/trace-results/trace-results.page.spec.ts b/src/app/pages/trace_test/trace-results/trace-results.page.spec.ts similarity index 100% rename from src/app/pages/trace-results/trace-results.page.spec.ts rename to src/app/pages/trace_test/trace-results/trace-results.page.spec.ts diff --git a/src/app/pages/trace-results/trace-results.page.ts b/src/app/pages/trace_test/trace-results/trace-results.page.ts similarity index 93% rename from src/app/pages/trace-results/trace-results.page.ts rename to src/app/pages/trace_test/trace-results/trace-results.page.ts index 8488de6..3a6aff6 100644 --- a/src/app/pages/trace-results/trace-results.page.ts +++ b/src/app/pages/trace_test/trace-results/trace-results.page.ts @@ -1,9 +1,9 @@ import { Component, OnInit } from '@angular/core'; -import {Traceroute} from "../../classes/traceroute"; -import {RipeTraceService} from "../../services/ripe-trace.service"; -import {User} from "../../interfaces/user"; +import {Traceroute} from "../../../classes/traceroute"; +import {RipeTraceService} from "../../../services/ripe-trace.service"; +import {User} from "../../../interfaces/user"; import {ActivatedRoute, Router} from "@angular/router"; -import {LocationTraceService} from "../../services/location-trace.service"; +import {LocationTraceService} from "../../../services/location-trace.service"; import {AlertController, LoadingController} from "@ionic/angular"; @Component({ diff --git a/src/app/pages/trace-test/trace-test-routing.module.ts b/src/app/pages/trace_test/trace-test/trace-test-routing.module.ts similarity index 100% rename from src/app/pages/trace-test/trace-test-routing.module.ts rename to src/app/pages/trace_test/trace-test/trace-test-routing.module.ts diff --git a/src/app/pages/trace-test/trace-test.module.ts b/src/app/pages/trace_test/trace-test/trace-test.module.ts similarity index 88% rename from src/app/pages/trace-test/trace-test.module.ts rename to src/app/pages/trace_test/trace-test/trace-test.module.ts index b16b0ec..f14d13c 100644 --- a/src/app/pages/trace-test/trace-test.module.ts +++ b/src/app/pages/trace_test/trace-test/trace-test.module.ts @@ -7,7 +7,7 @@ import { IonicModule } from '@ionic/angular'; import { TraceTestPageRoutingModule } from './trace-test-routing.module'; import { TraceTestPage } from './trace-test.page'; -import {ComponentsModule} from "../../components/components.module"; +import {ComponentsModule} from "../../../components/components.module"; @NgModule({ imports: [ diff --git a/src/app/pages/trace-test/trace-test.page.html b/src/app/pages/trace_test/trace-test/trace-test.page.html similarity index 100% rename from src/app/pages/trace-test/trace-test.page.html rename to src/app/pages/trace_test/trace-test/trace-test.page.html diff --git a/src/app/pages/trace-test/trace-test.page.scss b/src/app/pages/trace_test/trace-test/trace-test.page.scss similarity index 100% rename from src/app/pages/trace-test/trace-test.page.scss rename to src/app/pages/trace_test/trace-test/trace-test.page.scss diff --git a/src/app/pages/trace-test/trace-test.page.spec.ts b/src/app/pages/trace_test/trace-test/trace-test.page.spec.ts similarity index 100% rename from src/app/pages/trace-test/trace-test.page.spec.ts rename to src/app/pages/trace_test/trace-test/trace-test.page.spec.ts diff --git a/src/app/pages/trace-test/trace-test.page.ts b/src/app/pages/trace_test/trace-test/trace-test.page.ts similarity index 96% rename from src/app/pages/trace-test/trace-test.page.ts rename to src/app/pages/trace_test/trace-test/trace-test.page.ts index 64bc122..a8262ce 100644 --- a/src/app/pages/trace-test/trace-test.page.ts +++ b/src/app/pages/trace_test/trace-test/trace-test.page.ts @@ -1,10 +1,10 @@ import {Component, Input, OnInit} from '@angular/core'; -import {RipeTraceService} from "../../services/ripe-trace.service"; -import {User} from "../../interfaces/user"; +import {RipeTraceService} from "../../../services/ripe-trace.service"; +import {User} from "../../../interfaces/user"; import {ActivatedRoute, Router} from "@angular/router"; import {AlertController, LoadingController} from "@ionic/angular"; -import {Traceroute} from "../../classes/traceroute"; -import {LocationTraceService} from "../../services/location-trace.service"; +import {Traceroute} from "../../../classes/traceroute"; +import {LocationTraceService} from "../../../services/location-trace.service"; import {data} from "autoprefixer"; @Component({ diff --git a/www/1062.dc4664f035384c33.js b/www/1010.2bace76a66f84131.js similarity index 97% rename from www/1062.dc4664f035384c33.js rename to www/1010.2bace76a66f84131.js index add8d03..d71c051 100644 --- a/www/1062.dc4664f035384c33.js +++ b/www/1010.2bace76a66f84131.js @@ -1 +1 @@ -"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[1062],{5553:(y,p,i)=>{i.d(p,{h:()=>d});var c=i(177),T=i(7863),o=i(4438);let d=(()=>{var l;class t{}return(l=t).\u0275fac=function(m){return new(m||l)},l.\u0275mod=o.$C({type:l}),l.\u0275inj=o.G2t({imports:[c.MD,T.bv]}),t})()},3241:(y,p,i)=>{i.d(p,{p:()=>d});var c=i(4438),T=i(177),o=i(7863);let d=(()=>{var l;class t{constructor(m){this.location=m,this.title="Header Title"}ngOnInit(){}goBack(){this.location.back()}}return(l=t).\u0275fac=function(m){return new(m||l)(c.rXU(T.aZ))},l.\u0275cmp=c.VBU({type:l,selectors:[["app-header-return"]],inputs:{title:"title"},decls:6,vars:2,consts:[[3,"translucent"],["slot","start","menu","menu-id"],["name","arrow-back","slot","start",1,"p-4","bigger-icon",3,"click"]],template:function(m,g){1&m&&(c.j41(0,"ion-header",0)(1,"ion-toolbar"),c.nrm(2,"ion-menu-button",1),c.j41(3,"ion-icon",2),c.bIt("click",function(){return g.goBack()}),c.k0s(),c.j41(4,"ion-title"),c.EFF(5),c.k0s()()()),2&m&&(c.Y8G("translucent",!0),c.R7$(5),c.JRh(g.title))},dependencies:[o.eU,o.iq,o.MC,o.BC,o.ai],styles:[".bigger-icon[_ngcontent-%COMP%]{font-size:1.5em}"]}),t})()},1062:(y,p,i)=>{i.r(p),i.d(p,{ExecuteSystemTestPageModule:()=>k});var c=i(177),T=i(4341),o=i(7863),d=i(7650),l=i(467),t=i(4438),_=i(9274),m=i(8453),g=i(3241);function h(s,u){return this.systemTest.title}function f(s,u){if(1&s){const r=t.RV6();t.j41(0,"ion-icon",9),t.bIt("click",function(){t.eBV(r);const n=t.XpG().$implicit,a=t.XpG();return t.Njj(a.okClick(n.stepTitle))}),t.k0s(),t.j41(1,"ion-icon",10),t.bIt("click",function(){t.eBV(r);const n=t.XpG().$implicit,a=t.XpG();return t.Njj(a.badClick(n.stepTitle))}),t.k0s()}}function E(s,u){if(1&s){const r=t.RV6();t.j41(0,"ion-icon",11),t.bIt("click",function(){t.eBV(r);const n=t.XpG().$implicit,a=t.XpG();return t.Njj(a.okClick(n.stepTitle))}),t.k0s(),t.j41(1,"ion-icon",12),t.bIt("click",function(){t.eBV(r);const n=t.XpG().$implicit,a=t.XpG();return t.Njj(a.badClick(n.stepTitle))}),t.k0s()}}function v(s,u){if(1&s&&(t.j41(0,"ion-item")(1,"ion-label")(2,"h1"),t.EFF(3),t.k0s(),t.j41(4,"p"),t.EFF(5),t.k0s()(),t.DNE(6,f,2,0)(7,E,2,0),t.k0s()),2&s){const r=u.$implicit;t.R7$(3),t.JRh(r.stepTitle),t.R7$(2),t.JRh(r.expectedResults),t.R7$(),t.vxM(6,r.isComplete?6:-1),t.R7$(),t.vxM(7,r.isComplete?-1:7)}}const C=[{path:"",component:(()=>{var s;class u{constructor(e,n,a){this.activatedRoute=e,this.systemTestService=n,this.loadingCtrl=a,this.productObjective="",this.productStep="",this.testTitle="",this.systemTest={title:"",description:"",steps:[],type:"system-test",state:!1},this.orgName=""}ngOnInit(){this.getProductFromParams(),this.getSystemTest()}ionViewWillEnter(){this.getProductFromParams(),this.getSystemTest()}getProductFromParams(){this.activatedRoute.params.subscribe(e=>{this.productObjective=e.productObjective,this.productStep=e.step,this.testTitle=e.testTitle}),console.log(this.productObjective),console.log(this.productStep),console.log(this.testTitle)}getSystemTest(){var e=this;return(0,l.A)(function*(){const n=localStorage.getItem("user");if(!n)return;const a=JSON.parse(n);e.orgName=a.orgName,yield e.systemTestService.getSystemTest(e.orgName,e.productObjective,e.productStep).then(x=>{e.systemTest=x.find(R=>R.title===e.testTitle)})})()}okClick(e){this.systemTest.steps.find(n=>n.stepTitle===e).isComplete=!0,console.log(this.systemTest)}badClick(e){this.systemTest.steps.find(n=>n.stepTitle===e).isComplete=!1,console.log(this.systemTest)}save(){var e=this;return(0,l.A)(function*(){yield e.showLoading();let n=!0;e.systemTest.steps.forEach(a=>{a.isComplete||(n=!1)}),e.systemTest.state=n,yield e.systemTestService.saveSystemTest(e.orgName,e.productObjective,e.productStep,e.systemTest),yield e.hideLoading(),window.history.back()})()}showLoading(){var e=this;return(0,l.A)(function*(){yield(yield e.loadingCtrl.create({})).present()})()}hideLoading(){var e=this;return(0,l.A)(function*(){yield e.loadingCtrl.dismiss()})()}}return(s=u).\u0275fac=function(e){return new(e||s)(t.rXU(d.nX),t.rXU(_.h),t.rXU(o.Xi))},s.\u0275cmp=t.VBU({type:s,selectors:[["app-execute-system-test"]],decls:21,vars:5,consts:[[3,"title"],[3,"fullscreen"],[1,"lg:m-10","md:m-10"],["size","12","size-md","12","size-lg","12",1,""],[1,"min-h-full","flex","flex-col","p-8"],[1,"p-2"],[1,"text-4xl","text-white","font-bold"],[1,"text-xl"],["color","primary","expand","block","fill","outline",3,"click"],["aria-hidden","true","name","checkmark-circle","slot","end","color","success",3,"click"],["aria-hidden","true","name","close-circle","slot","end",3,"click"],["aria-hidden","true","name","checkmark-circle","slot","end",3,"click"],["aria-hidden","true","name","close-circle","slot","end","color","danger",3,"click"]],template:function(e,n){1&e&&(t.nrm(0,"app-header-return",0),t.j41(1,"ion-content",1)(2,"ion-grid"),t.nrm(3,"app-title",0),t.j41(4,"ion-row",2)(5,"ion-col",3)(6,"ion-card",4)(7,"ion-card-title",5)(8,"ion-label",6),t.EFF(9),t.k0s()(),t.nrm(10,"br"),t.j41(11,"ion-card-title",5)(12,"ion-label",7),t.EFF(13),t.k0s()(),t.nrm(14,"br"),t.j41(15,"ion-list"),t.Z7z(16,v,8,4,"ion-item",null,h,!0),t.k0s(),t.nrm(18,"br"),t.j41(19,"ion-button",8),t.bIt("click",function(){return n.save()}),t.EFF(20,"Save"),t.k0s()()()()()()),2&e&&(t.Y8G("title","Execute System Test"),t.R7$(),t.Y8G("fullscreen",!0),t.R7$(2),t.Y8G("title","Execute System Test"),t.R7$(6),t.JRh(n.systemTest.title),t.R7$(4),t.JRh(n.systemTest.description),t.R7$(3),t.Dyx(n.systemTest.steps))},dependencies:[o.Jm,o.b_,o.tN,o.hU,o.W9,o.lO,o.iq,o.uz,o.he,o.nf,o.ln,m.W,g.p]}),u})()}];let P=(()=>{var s;class u{}return(s=u).\u0275fac=function(e){return new(e||s)},s.\u0275mod=t.$C({type:s}),s.\u0275inj=t.G2t({imports:[d.iI.forChild(C),d.iI]}),u})();var S=i(5553);let k=(()=>{var s;class u{}return(s=u).\u0275fac=function(e){return new(e||s)},s.\u0275mod=t.$C({type:s}),s.\u0275inj=t.G2t({imports:[c.MD,T.YN,o.bv,P,S.h]}),u})()}}]); \ No newline at end of file +"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[1010],{5553:(y,p,i)=>{i.d(p,{h:()=>d});var c=i(177),T=i(7863),o=i(4438);let d=(()=>{var l;class t{}return(l=t).\u0275fac=function(m){return new(m||l)},l.\u0275mod=o.$C({type:l}),l.\u0275inj=o.G2t({imports:[c.MD,T.bv]}),t})()},3241:(y,p,i)=>{i.d(p,{p:()=>d});var c=i(4438),T=i(177),o=i(7863);let d=(()=>{var l;class t{constructor(m){this.location=m,this.title="Header Title"}ngOnInit(){}goBack(){this.location.back()}}return(l=t).\u0275fac=function(m){return new(m||l)(c.rXU(T.aZ))},l.\u0275cmp=c.VBU({type:l,selectors:[["app-header-return"]],inputs:{title:"title"},decls:6,vars:2,consts:[[3,"translucent"],["slot","start","menu","menu-id"],["name","arrow-back","slot","start",1,"p-4","bigger-icon",3,"click"]],template:function(m,g){1&m&&(c.j41(0,"ion-header",0)(1,"ion-toolbar"),c.nrm(2,"ion-menu-button",1),c.j41(3,"ion-icon",2),c.bIt("click",function(){return g.goBack()}),c.k0s(),c.j41(4,"ion-title"),c.EFF(5),c.k0s()()()),2&m&&(c.Y8G("translucent",!0),c.R7$(5),c.JRh(g.title))},dependencies:[o.eU,o.iq,o.MC,o.BC,o.ai],styles:[".bigger-icon[_ngcontent-%COMP%]{font-size:1.5em}"]}),t})()},1010:(y,p,i)=>{i.r(p),i.d(p,{ExecuteSystemTestPageModule:()=>k});var c=i(177),T=i(4341),o=i(7863),d=i(7650),l=i(467),t=i(4438),_=i(9274),m=i(8453),g=i(3241);function h(s,u){return this.systemTest.title}function f(s,u){if(1&s){const r=t.RV6();t.j41(0,"ion-icon",9),t.bIt("click",function(){t.eBV(r);const n=t.XpG().$implicit,a=t.XpG();return t.Njj(a.okClick(n.stepTitle))}),t.k0s(),t.j41(1,"ion-icon",10),t.bIt("click",function(){t.eBV(r);const n=t.XpG().$implicit,a=t.XpG();return t.Njj(a.badClick(n.stepTitle))}),t.k0s()}}function E(s,u){if(1&s){const r=t.RV6();t.j41(0,"ion-icon",11),t.bIt("click",function(){t.eBV(r);const n=t.XpG().$implicit,a=t.XpG();return t.Njj(a.okClick(n.stepTitle))}),t.k0s(),t.j41(1,"ion-icon",12),t.bIt("click",function(){t.eBV(r);const n=t.XpG().$implicit,a=t.XpG();return t.Njj(a.badClick(n.stepTitle))}),t.k0s()}}function v(s,u){if(1&s&&(t.j41(0,"ion-item")(1,"ion-label")(2,"h1"),t.EFF(3),t.k0s(),t.j41(4,"p"),t.EFF(5),t.k0s()(),t.DNE(6,f,2,0)(7,E,2,0),t.k0s()),2&s){const r=u.$implicit;t.R7$(3),t.JRh(r.stepTitle),t.R7$(2),t.JRh(r.expectedResults),t.R7$(),t.vxM(6,r.isComplete?6:-1),t.R7$(),t.vxM(7,r.isComplete?-1:7)}}const C=[{path:"",component:(()=>{var s;class u{constructor(e,n,a){this.activatedRoute=e,this.systemTestService=n,this.loadingCtrl=a,this.productObjective="",this.productStep="",this.testTitle="",this.systemTest={title:"",description:"",steps:[],type:"system-test",state:!1},this.orgName=""}ngOnInit(){this.getProductFromParams(),this.getSystemTest()}ionViewWillEnter(){this.getProductFromParams(),this.getSystemTest()}getProductFromParams(){this.activatedRoute.params.subscribe(e=>{this.productObjective=e.productObjective,this.productStep=e.step,this.testTitle=e.testTitle}),console.log(this.productObjective),console.log(this.productStep),console.log(this.testTitle)}getSystemTest(){var e=this;return(0,l.A)(function*(){const n=localStorage.getItem("user");if(!n)return;const a=JSON.parse(n);e.orgName=a.orgName,yield e.systemTestService.getSystemTest(e.orgName,e.productObjective,e.productStep).then(x=>{e.systemTest=x.find(R=>R.title===e.testTitle)})})()}okClick(e){this.systemTest.steps.find(n=>n.stepTitle===e).isComplete=!0,console.log(this.systemTest)}badClick(e){this.systemTest.steps.find(n=>n.stepTitle===e).isComplete=!1,console.log(this.systemTest)}save(){var e=this;return(0,l.A)(function*(){yield e.showLoading();let n=!0;e.systemTest.steps.forEach(a=>{a.isComplete||(n=!1)}),e.systemTest.state=n,yield e.systemTestService.saveSystemTest(e.orgName,e.productObjective,e.productStep,e.systemTest),yield e.hideLoading(),window.history.back()})()}showLoading(){var e=this;return(0,l.A)(function*(){yield(yield e.loadingCtrl.create({})).present()})()}hideLoading(){var e=this;return(0,l.A)(function*(){yield e.loadingCtrl.dismiss()})()}}return(s=u).\u0275fac=function(e){return new(e||s)(t.rXU(d.nX),t.rXU(_.h),t.rXU(o.Xi))},s.\u0275cmp=t.VBU({type:s,selectors:[["app-execute-system-test"]],decls:21,vars:5,consts:[[3,"title"],[3,"fullscreen"],[1,"lg:m-10","md:m-10"],["size","12","size-md","12","size-lg","12",1,""],[1,"min-h-full","flex","flex-col","p-8"],[1,"p-2"],[1,"text-4xl","text-white","font-bold"],[1,"text-xl"],["color","primary","expand","block","fill","outline",3,"click"],["aria-hidden","true","name","checkmark-circle","slot","end","color","success",3,"click"],["aria-hidden","true","name","close-circle","slot","end",3,"click"],["aria-hidden","true","name","checkmark-circle","slot","end",3,"click"],["aria-hidden","true","name","close-circle","slot","end","color","danger",3,"click"]],template:function(e,n){1&e&&(t.nrm(0,"app-header-return",0),t.j41(1,"ion-content",1)(2,"ion-grid"),t.nrm(3,"app-title",0),t.j41(4,"ion-row",2)(5,"ion-col",3)(6,"ion-card",4)(7,"ion-card-title",5)(8,"ion-label",6),t.EFF(9),t.k0s()(),t.nrm(10,"br"),t.j41(11,"ion-card-title",5)(12,"ion-label",7),t.EFF(13),t.k0s()(),t.nrm(14,"br"),t.j41(15,"ion-list"),t.Z7z(16,v,8,4,"ion-item",null,h,!0),t.k0s(),t.nrm(18,"br"),t.j41(19,"ion-button",8),t.bIt("click",function(){return n.save()}),t.EFF(20,"Save"),t.k0s()()()()()()),2&e&&(t.Y8G("title","Execute System Test"),t.R7$(),t.Y8G("fullscreen",!0),t.R7$(2),t.Y8G("title","Execute System Test"),t.R7$(6),t.JRh(n.systemTest.title),t.R7$(4),t.JRh(n.systemTest.description),t.R7$(3),t.Dyx(n.systemTest.steps))},dependencies:[o.Jm,o.b_,o.tN,o.hU,o.W9,o.lO,o.iq,o.uz,o.he,o.nf,o.ln,m.W,g.p]}),u})()}];let P=(()=>{var s;class u{}return(s=u).\u0275fac=function(e){return new(e||s)},s.\u0275mod=t.$C({type:s}),s.\u0275inj=t.G2t({imports:[d.iI.forChild(C),d.iI]}),u})();var S=i(5553);let k=(()=>{var s;class u{}return(s=u).\u0275fac=function(e){return new(e||s)},s.\u0275mod=t.$C({type:s}),s.\u0275inj=t.G2t({imports:[c.MD,T.YN,o.bv,P,S.h]}),u})()}}]); \ No newline at end of file diff --git a/www/1699.3ef910ea4e2a5d0e.js b/www/1015.3d449385ac057e7f.js similarity index 96% rename from www/1699.3ef910ea4e2a5d0e.js rename to www/1015.3d449385ac057e7f.js index 496aa38..3427825 100644 --- a/www/1699.3ef910ea4e2a5d0e.js +++ b/www/1015.3d449385ac057e7f.js @@ -1 +1 @@ -"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[1699],{5553:(v,u,r)=>{r.d(u,{h:()=>g});var f=r(177),m=r(7863),n=r(4438);let g=(()=>{var s;class t{}return(s=t).\u0275fac=function(h){return new(h||s)},s.\u0275mod=n.$C({type:s}),s.\u0275inj=n.G2t({imports:[f.MD,m.bv]}),t})()},1699:(v,u,r)=>{r.r(u),r.d(u,{SoftwareTestingPageModule:()=>y});var f=r(177),m=r(4341),n=r(7863),g=r(7650),s=r(467),t=r(4438),p=r(6241),h=r(385),T=r(8453);function P(o,c){if(1&o){const a=t.RV6();t.j41(0,"ion-item",7),t.bIt("click",function(){const i=t.eBV(a).$implicit,l=t.XpG().$implicit,d=t.XpG();return t.Njj(d.navigateToLatencyTest(l,i))}),t.j41(1,"ion-label"),t.EFF(2),t.k0s(),t.nrm(3,"ion-icon",8),t.k0s()}if(2&o){const a=c.$implicit;t.R7$(2),t.JRh(a)}}function S(o,c){if(1&o&&(t.j41(0,"ion-col",4)(1,"ion-card")(2,"ion-card-header")(3,"ion-card-title"),t.EFF(4),t.k0s()(),t.j41(5,"ion-card-content")(6,"ion-list"),t.DNE(7,P,4,1,"ion-item",6),t.k0s()()()()),2&o){const a=c.$implicit;t.R7$(4),t.JRh(a.productObjective),t.R7$(3),t.Y8G("ngForOf",a.productSteps)}}const w=[{path:"",component:(()=>{var o;class c{constructor(e,i,l){this.productService=e,this.router=i,this.loadingCtrl=l,this.products=[]}ngOnInit(){}ionViewWillEnter(){var e=this;return(0,s.A)(function*(){yield e.showLoading(),e.getAllProducts(),yield e.hideLoading()})()}getAllProducts(){var e=this;return(0,s.A)(function*(){const i=localStorage.getItem("user");if(!i)return;const d=JSON.parse(i).orgName;e.products=yield e.productService.getProducts(d)})()}doRefresh(e){var i=this;return(0,s.A)(function*(){i.getAllProducts().then(()=>{e.target.complete()})})()}navigateToLatencyTest(e,i){var l=this;return(0,s.A)(function*(){yield l.router.navigate(["/software-testing-chooser",{productObjective:e.productObjective,step:i}])})()}showLoading(){var e=this;return(0,s.A)(function*(){yield(yield e.loadingCtrl.create({})).present()})()}hideLoading(){var e=this;return(0,s.A)(function*(){yield e.loadingCtrl.dismiss()})()}}return(o=c).\u0275fac=function(e){return new(e||o)(t.rXU(p.b),t.rXU(g.Ix),t.rXU(n.Xi))},o.\u0275cmp=t.VBU({type:o,selectors:[["app-software-testing"]],decls:12,vars:4,consts:[[3,"title"],[3,"fullscreen"],["slot","fixed",3,"ionRefresh"],[1,"lg:m-10","md:m-10"],["size","12","size-md","4","size-lg","4",1,""],["size","12","size-md","4","size-lg","4","class","",4,"ngFor","ngForOf"],[3,"click",4,"ngFor","ngForOf"],[3,"click"],["name","arrow-forward","color","primary"]],template:function(e,i){1&e&&(t.nrm(0,"app-header",0),t.j41(1,"ion-content",1)(2,"ion-refresher",2),t.bIt("ionRefresh",function(d){return i.doRefresh(d)}),t.nrm(3,"ion-refresher-content"),t.k0s(),t.j41(4,"ion-grid"),t.nrm(5,"app-title",0),t.j41(6,"ion-row",3)(7,"ion-col",4)(8,"p"),t.EFF(9,"Choose a product and a product step to add a software test."),t.k0s()()(),t.j41(10,"ion-row",3),t.DNE(11,S,8,2,"ion-col",5),t.k0s()()()),2&e&&(t.Y8G("title","Software Testing"),t.R7$(),t.Y8G("fullscreen",!0),t.R7$(4),t.Y8G("title","Software Testing"),t.R7$(6),t.Y8G("ngForOf",i.products))},dependencies:[f.Sq,n.b_,n.I9,n.ME,n.tN,n.hU,n.W9,n.lO,n.iq,n.uz,n.he,n.nf,n.To,n.Ki,n.ln,h.l,T.W]}),c})()}];let M=(()=>{var o;class c{}return(o=c).\u0275fac=function(e){return new(e||o)},o.\u0275mod=t.$C({type:o}),o.\u0275inj=t.G2t({imports:[g.iI.forChild(w),g.iI]}),c})();var R=r(5553);let y=(()=>{var o;class c{}return(o=c).\u0275fac=function(e){return new(e||o)},o.\u0275mod=t.$C({type:o}),o.\u0275inj=t.G2t({imports:[f.MD,m.YN,n.bv,M,R.h]}),c})()}}]); \ No newline at end of file +"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[1015],{5553:(v,u,r)=>{r.d(u,{h:()=>g});var f=r(177),m=r(7863),n=r(4438);let g=(()=>{var s;class t{}return(s=t).\u0275fac=function(h){return new(h||s)},s.\u0275mod=n.$C({type:s}),s.\u0275inj=n.G2t({imports:[f.MD,m.bv]}),t})()},1015:(v,u,r)=>{r.r(u),r.d(u,{SoftwareTestingPageModule:()=>y});var f=r(177),m=r(4341),n=r(7863),g=r(7650),s=r(467),t=r(4438),p=r(6241),h=r(385),T=r(8453);function P(o,c){if(1&o){const a=t.RV6();t.j41(0,"ion-item",7),t.bIt("click",function(){const i=t.eBV(a).$implicit,l=t.XpG().$implicit,d=t.XpG();return t.Njj(d.navigateToLatencyTest(l,i))}),t.j41(1,"ion-label"),t.EFF(2),t.k0s(),t.nrm(3,"ion-icon",8),t.k0s()}if(2&o){const a=c.$implicit;t.R7$(2),t.JRh(a)}}function S(o,c){if(1&o&&(t.j41(0,"ion-col",4)(1,"ion-card")(2,"ion-card-header")(3,"ion-card-title"),t.EFF(4),t.k0s()(),t.j41(5,"ion-card-content")(6,"ion-list"),t.DNE(7,P,4,1,"ion-item",6),t.k0s()()()()),2&o){const a=c.$implicit;t.R7$(4),t.JRh(a.productObjective),t.R7$(3),t.Y8G("ngForOf",a.productSteps)}}const w=[{path:"",component:(()=>{var o;class c{constructor(e,i,l){this.productService=e,this.router=i,this.loadingCtrl=l,this.products=[]}ngOnInit(){}ionViewWillEnter(){var e=this;return(0,s.A)(function*(){yield e.showLoading(),e.getAllProducts(),yield e.hideLoading()})()}getAllProducts(){var e=this;return(0,s.A)(function*(){const i=localStorage.getItem("user");if(!i)return;const d=JSON.parse(i).orgName;e.products=yield e.productService.getProducts(d)})()}doRefresh(e){var i=this;return(0,s.A)(function*(){i.getAllProducts().then(()=>{e.target.complete()})})()}navigateToLatencyTest(e,i){var l=this;return(0,s.A)(function*(){yield l.router.navigate(["/software-testing-chooser",{productObjective:e.productObjective,step:i}])})()}showLoading(){var e=this;return(0,s.A)(function*(){yield(yield e.loadingCtrl.create({})).present()})()}hideLoading(){var e=this;return(0,s.A)(function*(){yield e.loadingCtrl.dismiss()})()}}return(o=c).\u0275fac=function(e){return new(e||o)(t.rXU(p.b),t.rXU(g.Ix),t.rXU(n.Xi))},o.\u0275cmp=t.VBU({type:o,selectors:[["app-software-testing"]],decls:12,vars:4,consts:[[3,"title"],[3,"fullscreen"],["slot","fixed",3,"ionRefresh"],[1,"lg:m-10","md:m-10"],["size","12","size-md","4","size-lg","4",1,""],["size","12","size-md","4","size-lg","4","class","",4,"ngFor","ngForOf"],[3,"click",4,"ngFor","ngForOf"],[3,"click"],["name","arrow-forward","color","primary"]],template:function(e,i){1&e&&(t.nrm(0,"app-header",0),t.j41(1,"ion-content",1)(2,"ion-refresher",2),t.bIt("ionRefresh",function(d){return i.doRefresh(d)}),t.nrm(3,"ion-refresher-content"),t.k0s(),t.j41(4,"ion-grid"),t.nrm(5,"app-title",0),t.j41(6,"ion-row",3)(7,"ion-col",4)(8,"p"),t.EFF(9,"Choose a product and a product step to add a software test."),t.k0s()()(),t.j41(10,"ion-row",3),t.DNE(11,S,8,2,"ion-col",5),t.k0s()()()),2&e&&(t.Y8G("title","Software Testing"),t.R7$(),t.Y8G("fullscreen",!0),t.R7$(4),t.Y8G("title","Software Testing"),t.R7$(6),t.Y8G("ngForOf",i.products))},dependencies:[f.Sq,n.b_,n.I9,n.ME,n.tN,n.hU,n.W9,n.lO,n.iq,n.uz,n.he,n.nf,n.To,n.Ki,n.ln,h.l,T.W]}),c})()}];let M=(()=>{var o;class c{}return(o=c).\u0275fac=function(e){return new(e||o)},o.\u0275mod=t.$C({type:o}),o.\u0275inj=t.G2t({imports:[g.iI.forChild(w),g.iI]}),c})();var R=r(5553);let y=(()=>{var o;class c{}return(o=c).\u0275fac=function(e){return new(e||o)},o.\u0275mod=t.$C({type:o}),o.\u0275inj=t.G2t({imports:[f.MD,m.YN,n.bv,M,R.h]}),c})()}}]); \ No newline at end of file diff --git a/www/1205.5bfd81c3b6ceffc4.js b/www/1081.724852e553670d61.js similarity index 95% rename from www/1205.5bfd81c3b6ceffc4.js rename to www/1081.724852e553670d61.js index d892b44..0b983b3 100644 --- a/www/1205.5bfd81c3b6ceffc4.js +++ b/www/1081.724852e553670d61.js @@ -1 +1 @@ -"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[1205],{5553:(f,s,e)=>{e.d(s,{h:()=>i});var o=e(177),m=e(7863),n=e(4438);let i=(()=>{var t;class u{}return(t=u).\u0275fac=function(c){return new(c||t)},t.\u0275mod=n.$C({type:t}),t.\u0275inj=n.G2t({imports:[o.MD,m.bv]}),u})()},3241:(f,s,e)=>{e.d(s,{p:()=>i});var o=e(4438),m=e(177),n=e(7863);let i=(()=>{var t;class u{constructor(c){this.location=c,this.title="Header Title"}ngOnInit(){}goBack(){this.location.back()}}return(t=u).\u0275fac=function(c){return new(c||t)(o.rXU(m.aZ))},t.\u0275cmp=o.VBU({type:t,selectors:[["app-header-return"]],inputs:{title:"title"},decls:6,vars:2,consts:[[3,"translucent"],["slot","start","menu","menu-id"],["name","arrow-back","slot","start",1,"p-4","bigger-icon",3,"click"]],template:function(c,h){1&c&&(o.j41(0,"ion-header",0)(1,"ion-toolbar"),o.nrm(2,"ion-menu-button",1),o.j41(3,"ion-icon",2),o.bIt("click",function(){return h.goBack()}),o.k0s(),o.j41(4,"ion-title"),o.EFF(5),o.k0s()()()),2&c&&(o.Y8G("translucent",!0),o.R7$(5),o.JRh(h.title))},dependencies:[n.eU,n.iq,n.MC,n.BC,n.ai],styles:[".bigger-icon[_ngcontent-%COMP%]{font-size:1.5em}"]}),u})()},1205:(f,s,e)=>{e.r(s),e.d(s,{GraphDataForPageModule:()=>F});var o=e(177),m=e(4341),n=e(7863),i=e(7650),t=e(4438),u=e(8453),p=e(3241);const h=[{path:"",component:(()=>{var a;class l{constructor(r,g){this.route=r,this.router=g,this.productObjective=""}ngOnInit(){this.route.queryParams.subscribe(r=>{this.productObjective=r.product})}goToLatencyGraph(){this.router.navigate(["/graph-latency"],{queryParams:{product:this.productObjective}})}goToTraceGraph(){this.router.navigate(["/graph-trace"],{queryParams:{product:this.productObjective}})}}return(a=l).\u0275fac=function(r){return new(r||a)(t.rXU(i.nX),t.rXU(i.Ix))},a.\u0275cmp=t.VBU({type:a,selectors:[["app-graph-data-for"]],decls:13,vars:3,consts:[[3,"title"],[3,"fullscreen"],[1,"lg:m-10","md:m-10"],["size","12","size-md","6","size-lg","6",1,"flex","flex-row","justify-center"],[1,"w-full","h-60","p-6","flex","flex-col","justify-center","items-center",3,"click"],[1,"text-6xl","font-bold","text-blue-500"]],template:function(r,g){1&r&&(t.nrm(0,"app-header-return",0),t.j41(1,"ion-content",1)(2,"ion-grid"),t.nrm(3,"app-title",0),t.j41(4,"ion-row",2)(5,"ion-col",3)(6,"ion-card",4),t.bIt("click",function(){return g.goToLatencyGraph()}),t.j41(7,"h1",5),t.EFF(8,"Latency"),t.k0s()()(),t.j41(9,"ion-col",3)(10,"ion-card",4),t.bIt("click",function(){return g.goToTraceGraph()}),t.j41(11,"h1",5),t.EFF(12,"Trace"),t.k0s()()()()()()),2&r&&(t.Y8G("title","Graph Data For"),t.R7$(),t.Y8G("fullscreen",!0),t.R7$(2),t.Y8G("title","Graph Data For"))},dependencies:[n.b_,n.hU,n.W9,n.lO,n.ln,u.W,p.p]}),l})()}];let D=(()=>{var a;class l{}return(a=l).\u0275fac=function(r){return new(r||a)},a.\u0275mod=t.$C({type:a}),a.\u0275inj=t.G2t({imports:[i.iI.forChild(h),i.iI]}),l})();var P=e(5553);let F=(()=>{var a;class l{}return(a=l).\u0275fac=function(r){return new(r||a)},a.\u0275mod=t.$C({type:a}),a.\u0275inj=t.G2t({imports:[o.MD,m.YN,n.bv,D,P.h]}),l})()}}]); \ No newline at end of file +"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[1081],{5553:(f,s,e)=>{e.d(s,{h:()=>i});var o=e(177),m=e(7863),n=e(4438);let i=(()=>{var t;class u{}return(t=u).\u0275fac=function(c){return new(c||t)},t.\u0275mod=n.$C({type:t}),t.\u0275inj=n.G2t({imports:[o.MD,m.bv]}),u})()},3241:(f,s,e)=>{e.d(s,{p:()=>i});var o=e(4438),m=e(177),n=e(7863);let i=(()=>{var t;class u{constructor(c){this.location=c,this.title="Header Title"}ngOnInit(){}goBack(){this.location.back()}}return(t=u).\u0275fac=function(c){return new(c||t)(o.rXU(m.aZ))},t.\u0275cmp=o.VBU({type:t,selectors:[["app-header-return"]],inputs:{title:"title"},decls:6,vars:2,consts:[[3,"translucent"],["slot","start","menu","menu-id"],["name","arrow-back","slot","start",1,"p-4","bigger-icon",3,"click"]],template:function(c,h){1&c&&(o.j41(0,"ion-header",0)(1,"ion-toolbar"),o.nrm(2,"ion-menu-button",1),o.j41(3,"ion-icon",2),o.bIt("click",function(){return h.goBack()}),o.k0s(),o.j41(4,"ion-title"),o.EFF(5),o.k0s()()()),2&c&&(o.Y8G("translucent",!0),o.R7$(5),o.JRh(h.title))},dependencies:[n.eU,n.iq,n.MC,n.BC,n.ai],styles:[".bigger-icon[_ngcontent-%COMP%]{font-size:1.5em}"]}),u})()},1081:(f,s,e)=>{e.r(s),e.d(s,{GraphDataForPageModule:()=>F});var o=e(177),m=e(4341),n=e(7863),i=e(7650),t=e(4438),u=e(8453),p=e(3241);const h=[{path:"",component:(()=>{var a;class l{constructor(r,g){this.route=r,this.router=g,this.productObjective=""}ngOnInit(){this.route.queryParams.subscribe(r=>{this.productObjective=r.product})}goToLatencyGraph(){this.router.navigate(["/graph-latency"],{queryParams:{product:this.productObjective}})}goToTraceGraph(){this.router.navigate(["/graph-trace"],{queryParams:{product:this.productObjective}})}}return(a=l).\u0275fac=function(r){return new(r||a)(t.rXU(i.nX),t.rXU(i.Ix))},a.\u0275cmp=t.VBU({type:a,selectors:[["app-graph-data-for"]],decls:13,vars:3,consts:[[3,"title"],[3,"fullscreen"],[1,"lg:m-10","md:m-10"],["size","12","size-md","6","size-lg","6",1,"flex","flex-row","justify-center"],[1,"w-full","h-60","p-6","flex","flex-col","justify-center","items-center",3,"click"],[1,"text-6xl","font-bold","text-blue-500"]],template:function(r,g){1&r&&(t.nrm(0,"app-header-return",0),t.j41(1,"ion-content",1)(2,"ion-grid"),t.nrm(3,"app-title",0),t.j41(4,"ion-row",2)(5,"ion-col",3)(6,"ion-card",4),t.bIt("click",function(){return g.goToLatencyGraph()}),t.j41(7,"h1",5),t.EFF(8,"Latency"),t.k0s()()(),t.j41(9,"ion-col",3)(10,"ion-card",4),t.bIt("click",function(){return g.goToTraceGraph()}),t.j41(11,"h1",5),t.EFF(12,"Trace"),t.k0s()()()()()()),2&r&&(t.Y8G("title","Graph Data For"),t.R7$(),t.Y8G("fullscreen",!0),t.R7$(2),t.Y8G("title","Graph Data For"))},dependencies:[n.b_,n.hU,n.W9,n.lO,n.ln,u.W,p.p]}),l})()}];let D=(()=>{var a;class l{}return(a=l).\u0275fac=function(r){return new(r||a)},a.\u0275mod=t.$C({type:a}),a.\u0275inj=t.G2t({imports:[i.iI.forChild(h),i.iI]}),l})();var P=e(5553);let F=(()=>{var a;class l{}return(a=l).\u0275fac=function(r){return new(r||a)},a.\u0275mod=t.$C({type:a}),a.\u0275inj=t.G2t({imports:[o.MD,m.YN,n.bv,D,P.h]}),l})()}}]); \ No newline at end of file diff --git a/www/5088.adac93e88cce9318.js b/www/1143.9c0992c986c3ab31.js similarity index 98% rename from www/5088.adac93e88cce9318.js rename to www/1143.9c0992c986c3ab31.js index d6211e3..01783a2 100644 --- a/www/5088.adac93e88cce9318.js +++ b/www/1143.9c0992c986c3ab31.js @@ -1 +1 @@ -"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[5088],{5553:(y,h,i)=>{i.d(h,{h:()=>g});var a=i(177),p=i(7863),n=i(4438);let g=(()=>{var c;class e{}return(c=e).\u0275fac=function(u){return new(u||c)},c.\u0275mod=n.$C({type:c}),c.\u0275inj=n.G2t({imports:[a.MD,p.bv]}),e})()},3241:(y,h,i)=>{i.d(h,{p:()=>g});var a=i(4438),p=i(177),n=i(7863);let g=(()=>{var c;class e{constructor(u){this.location=u,this.title="Header Title"}ngOnInit(){}goBack(){this.location.back()}}return(c=e).\u0275fac=function(u){return new(u||c)(a.rXU(p.aZ))},c.\u0275cmp=a.VBU({type:c,selectors:[["app-header-return"]],inputs:{title:"title"},decls:6,vars:2,consts:[[3,"translucent"],["slot","start","menu","menu-id"],["name","arrow-back","slot","start",1,"p-4","bigger-icon",3,"click"]],template:function(u,T){1&u&&(a.j41(0,"ion-header",0)(1,"ion-toolbar"),a.nrm(2,"ion-menu-button",1),a.j41(3,"ion-icon",2),a.bIt("click",function(){return T.goBack()}),a.k0s(),a.j41(4,"ion-title"),a.EFF(5),a.k0s()()()),2&u&&(a.Y8G("translucent",!0),a.R7$(5),a.JRh(T.title))},dependencies:[n.eU,n.iq,n.MC,n.BC,n.ai],styles:[".bigger-icon[_ngcontent-%COMP%]{font-size:1.5em}"]}),e})()},5088:(y,h,i)=>{i.r(h),i.d(h,{CreateSystemTestPageModule:()=>v});var a=i(177),p=i(4341),n=i(7863),g=i(7650),c=i(467),e=i(4438),_=i(9274),u=i(8453),T=i(3241);function C(o,m){return this.testStepTitle}function f(o,m){if(1&o){const r=e.RV6();e.j41(0,"ion-item")(1,"ion-label")(2,"h1"),e.EFF(3),e.k0s(),e.j41(4,"p"),e.EFF(5),e.k0s()(),e.j41(6,"ion-icon",17),e.bIt("click",function(){const s=e.eBV(r).$implicit,l=e.XpG();return e.Njj(l.delete(s.stepTitle))}),e.k0s()()}if(2&o){const r=m.$implicit;e.R7$(3),e.JRh(r.stepTitle),e.R7$(2),e.JRh(r.expectedResults)}}function S(o,m){if(1&o){const r=e.RV6();e.j41(0,"ion-header")(1,"ion-toolbar")(2,"ion-buttons",18)(3,"ion-button",19),e.bIt("click",function(){e.eBV(r);const s=e.XpG();return e.Njj(s.cancel())}),e.EFF(4,"Cancel"),e.k0s()(),e.j41(5,"ion-title"),e.EFF(6,"Add Test Step"),e.k0s(),e.j41(7,"ion-buttons",20)(8,"ion-button",19),e.bIt("click",function(){e.eBV(r);const s=e.XpG();return e.Njj(s.save())}),e.EFF(9,"Save"),e.k0s()()()(),e.j41(10,"ion-content",21)(11,"ion-card",22)(12,"ion-label"),e.EFF(13,"Step"),e.k0s(),e.j41(14,"ion-input",23),e.mxI("ngModelChange",function(s){e.eBV(r);const l=e.XpG();return e.DH7(l.testStepTitle,s)||(l.testStepTitle=s),e.Njj(s)}),e.k0s(),e.nrm(15,"br"),e.j41(16,"ion-label"),e.EFF(17,"Expected"),e.k0s(),e.j41(18,"ion-input",23),e.mxI("ngModelChange",function(s){e.eBV(r);const l=e.XpG();return e.DH7(l.testExpectedResults,s)||(l.testExpectedResults=s),e.Njj(s)}),e.k0s()()()}if(2&o){const r=e.XpG();e.R7$(14),e.R50("ngModel",r.testStepTitle),e.R7$(4),e.R50("ngModel",r.testExpectedResults)}}const M=[{path:"",component:(()=>{var o;class m{constructor(t,s,l,d){this.activatedRoute=t,this.alertCtrl=s,this.systemTestService=l,this.loadingCtrl=d,this.productObjective="",this.productStep="",this.systemTest={title:"",description:"",steps:[],type:"system-test",state:!1},this.testStepTitle="",this.testExpectedResults="",this.user={},this.orgName=""}ngOnInit(){this.getProductFromParams()}getProductFromParams(){this.activatedRoute.params.subscribe(t=>{this.productObjective=t.productObjective,this.productStep=t.step}),console.log(this.productObjective),console.log(this.productStep)}onWillDismiss(t){}cancel(){var t;null===(t=this.modal)||void 0===t||t.dismiss()}save(){var t;this.testStepTitle&&this.testExpectedResults?(this.systemTest.steps.push({stepTitle:this.testStepTitle,expectedResults:this.testExpectedResults,isComplete:!1}),this.testStepTitle="",this.testExpectedResults="",null===(t=this.modal)||void 0===t||t.dismiss()):this.showAlert("Please fill out the Step Title and the Expected Result fields.","Error").then(s=>console.log("Alert shown"))}delete(t){this.systemTest.steps=this.systemTest.steps.filter(s=>s.stepTitle!==t)}showAlert(t,s){var l=this;return(0,c.A)(function*(){yield(yield l.alertCtrl.create({header:s,message:t,buttons:["OK"]})).present()})()}createSystemTest(){var t=this;return(0,c.A)(function*(){if(yield t.showLoading(),console.log(t.systemTest),!t.systemTest.title||!t.systemTest.description||0===t.systemTest.steps.length)return yield t.hideLoading(),void t.showAlert("Please fill out the title, description, and at least one step.","Error").then(l=>console.log("Alert shown"));const s=localStorage.getItem("user");s&&(t.user=JSON.parse(s),t.orgName=t.user.orgName,console.log(t.orgName),t.systemTestService.addSystemTest(t.orgName,t.productObjective,t.productStep,t.systemTest),t.systemTest={title:"",description:"",steps:[],type:"system-test",state:!1},yield t.hideLoading(),window.history.back())})()}showLoading(){var t=this;return(0,c.A)(function*(){yield(yield t.loadingCtrl.create({})).present()})()}hideLoading(){var t=this;return(0,c.A)(function*(){yield t.loadingCtrl.dismiss()})()}doRefresh(t){}}return(o=m).\u0275fac=function(t){return new(t||o)(e.rXU(g.nX),e.rXU(n.hG),e.rXU(_.h),e.rXU(n.Xi))},o.\u0275cmp=e.VBU({type:o,selectors:[["app-create-system-test"]],viewQuery:function(t,s){if(1&t&&e.GBs(n.Sb,5),2&t){let l;e.mGM(l=e.lsd())&&(s.modal=l.first)}},decls:33,vars:5,consts:[[3,"title"],[3,"fullscreen"],[1,"lg:m-10","md:m-10"],["size","12","size-md","4","size-lg","4",1,""],["size","12","size-md","12","size-lg","12",1,""],[1,"min-h-full","flex","flex-col","p-8"],[1,"bg-gray-600","p-2"],["placeholder","Test Title","type","text",1,"text-3xl",3,"ngModelChange","ngModel"],["placeholder","Test Description","type","text",1,"text-sm",3,"ngModelChange","ngModel"],[1,""],[1,"flex","flex-row","items-center"],[1,"text-4xl"],["id","open-modal",1,"flex","flex-row","items-center","bg-cyan-800","m-4","p-1"],["name","add"],[1,"bg-gray-600"],["color","primary","expand","block","fill","outline",3,"click"],["trigger","open-modal",3,"willDismiss"],["aria-hidden","true","name","trash","slot","end",3,"click"],["slot","start"],[3,"click"],["slot","end"],[1,"flex","flex-col","justify-center","items-center"],[1,"m-2","p-2"],["type","text",3,"ngModelChange","ngModel"]],template:function(t,s){1&t&&(e.nrm(0,"app-header-return",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,"p"),e.EFF(7,"Fill the test from to create a system test."),e.k0s(),e.nrm(8,"p"),e.k0s()(),e.j41(9,"ion-row",2)(10,"ion-col",4)(11,"ion-card",5)(12,"ion-card-title",6)(13,"ion-input",7),e.mxI("ngModelChange",function(d){return e.DH7(s.systemTest.title,d)||(s.systemTest.title=d),d}),e.k0s()(),e.nrm(14,"br"),e.j41(15,"ion-card-title",6)(16,"ion-textarea",8),e.mxI("ngModelChange",function(d){return e.DH7(s.systemTest.description,d)||(s.systemTest.description=d),d}),e.k0s()(),e.nrm(17,"br"),e.j41(18,"ion-card-title",9)(19,"div",10)(20,"h1",11),e.EFF(21,"Test Steps..."),e.k0s(),e.j41(22,"div",12),e.nrm(23,"ion-icon",13),e.k0s()()(),e.j41(24,"ion-card-content",14)(25,"ion-list"),e.Z7z(26,f,7,2,"ion-item",null,C,!0),e.k0s()(),e.nrm(28,"br"),e.j41(29,"ion-button",15),e.bIt("click",function(){return s.createSystemTest()}),e.EFF(30,"Create System Test"),e.k0s()()()()(),e.j41(31,"ion-modal",16),e.bIt("willDismiss",function(d){return s.onWillDismiss(d)}),e.DNE(32,S,19,2,"ng-template"),e.k0s()()),2&t&&(e.Y8G("title","Create System Test"),e.R7$(),e.Y8G("fullscreen",!0),e.R7$(2),e.Y8G("title","Create System Test"),e.R7$(10),e.R50("ngModel",s.systemTest.title),e.R7$(3),e.R50("ngModel",s.systemTest.description),e.R7$(10),e.Dyx(s.systemTest.steps))},dependencies:[p.BC,p.vS,n.Jm,n.QW,n.b_,n.I9,n.tN,n.hU,n.W9,n.lO,n.eU,n.iq,n.$w,n.uz,n.he,n.nf,n.ln,n.nc,n.BC,n.ai,n.Sb,n.Gw,u.W,T.p]}),m})()}];let R=(()=>{var o;class m{}return(o=m).\u0275fac=function(t){return new(t||o)},o.\u0275mod=e.$C({type:o}),o.\u0275inj=e.G2t({imports:[g.iI.forChild(M),g.iI]}),m})();var P=i(5553);let v=(()=>{var o;class m{}return(o=m).\u0275fac=function(t){return new(t||o)},o.\u0275mod=e.$C({type:o}),o.\u0275inj=e.G2t({imports:[a.MD,p.YN,n.bv,R,P.h]}),m})()}}]); \ No newline at end of file +"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[1143],{5553:(y,h,i)=>{i.d(h,{h:()=>g});var a=i(177),p=i(7863),n=i(4438);let g=(()=>{var c;class e{}return(c=e).\u0275fac=function(u){return new(u||c)},c.\u0275mod=n.$C({type:c}),c.\u0275inj=n.G2t({imports:[a.MD,p.bv]}),e})()},3241:(y,h,i)=>{i.d(h,{p:()=>g});var a=i(4438),p=i(177),n=i(7863);let g=(()=>{var c;class e{constructor(u){this.location=u,this.title="Header Title"}ngOnInit(){}goBack(){this.location.back()}}return(c=e).\u0275fac=function(u){return new(u||c)(a.rXU(p.aZ))},c.\u0275cmp=a.VBU({type:c,selectors:[["app-header-return"]],inputs:{title:"title"},decls:6,vars:2,consts:[[3,"translucent"],["slot","start","menu","menu-id"],["name","arrow-back","slot","start",1,"p-4","bigger-icon",3,"click"]],template:function(u,T){1&u&&(a.j41(0,"ion-header",0)(1,"ion-toolbar"),a.nrm(2,"ion-menu-button",1),a.j41(3,"ion-icon",2),a.bIt("click",function(){return T.goBack()}),a.k0s(),a.j41(4,"ion-title"),a.EFF(5),a.k0s()()()),2&u&&(a.Y8G("translucent",!0),a.R7$(5),a.JRh(T.title))},dependencies:[n.eU,n.iq,n.MC,n.BC,n.ai],styles:[".bigger-icon[_ngcontent-%COMP%]{font-size:1.5em}"]}),e})()},1143:(y,h,i)=>{i.r(h),i.d(h,{CreateSystemTestPageModule:()=>v});var a=i(177),p=i(4341),n=i(7863),g=i(7650),c=i(467),e=i(4438),_=i(9274),u=i(8453),T=i(3241);function C(o,m){return this.testStepTitle}function f(o,m){if(1&o){const r=e.RV6();e.j41(0,"ion-item")(1,"ion-label")(2,"h1"),e.EFF(3),e.k0s(),e.j41(4,"p"),e.EFF(5),e.k0s()(),e.j41(6,"ion-icon",17),e.bIt("click",function(){const s=e.eBV(r).$implicit,l=e.XpG();return e.Njj(l.delete(s.stepTitle))}),e.k0s()()}if(2&o){const r=m.$implicit;e.R7$(3),e.JRh(r.stepTitle),e.R7$(2),e.JRh(r.expectedResults)}}function S(o,m){if(1&o){const r=e.RV6();e.j41(0,"ion-header")(1,"ion-toolbar")(2,"ion-buttons",18)(3,"ion-button",19),e.bIt("click",function(){e.eBV(r);const s=e.XpG();return e.Njj(s.cancel())}),e.EFF(4,"Cancel"),e.k0s()(),e.j41(5,"ion-title"),e.EFF(6,"Add Test Step"),e.k0s(),e.j41(7,"ion-buttons",20)(8,"ion-button",19),e.bIt("click",function(){e.eBV(r);const s=e.XpG();return e.Njj(s.save())}),e.EFF(9,"Save"),e.k0s()()()(),e.j41(10,"ion-content",21)(11,"ion-card",22)(12,"ion-label"),e.EFF(13,"Step"),e.k0s(),e.j41(14,"ion-input",23),e.mxI("ngModelChange",function(s){e.eBV(r);const l=e.XpG();return e.DH7(l.testStepTitle,s)||(l.testStepTitle=s),e.Njj(s)}),e.k0s(),e.nrm(15,"br"),e.j41(16,"ion-label"),e.EFF(17,"Expected"),e.k0s(),e.j41(18,"ion-input",23),e.mxI("ngModelChange",function(s){e.eBV(r);const l=e.XpG();return e.DH7(l.testExpectedResults,s)||(l.testExpectedResults=s),e.Njj(s)}),e.k0s()()()}if(2&o){const r=e.XpG();e.R7$(14),e.R50("ngModel",r.testStepTitle),e.R7$(4),e.R50("ngModel",r.testExpectedResults)}}const M=[{path:"",component:(()=>{var o;class m{constructor(t,s,l,d){this.activatedRoute=t,this.alertCtrl=s,this.systemTestService=l,this.loadingCtrl=d,this.productObjective="",this.productStep="",this.systemTest={title:"",description:"",steps:[],type:"system-test",state:!1},this.testStepTitle="",this.testExpectedResults="",this.user={},this.orgName=""}ngOnInit(){this.getProductFromParams()}getProductFromParams(){this.activatedRoute.params.subscribe(t=>{this.productObjective=t.productObjective,this.productStep=t.step}),console.log(this.productObjective),console.log(this.productStep)}onWillDismiss(t){}cancel(){var t;null===(t=this.modal)||void 0===t||t.dismiss()}save(){var t;this.testStepTitle&&this.testExpectedResults?(this.systemTest.steps.push({stepTitle:this.testStepTitle,expectedResults:this.testExpectedResults,isComplete:!1}),this.testStepTitle="",this.testExpectedResults="",null===(t=this.modal)||void 0===t||t.dismiss()):this.showAlert("Please fill out the Step Title and the Expected Result fields.","Error").then(s=>console.log("Alert shown"))}delete(t){this.systemTest.steps=this.systemTest.steps.filter(s=>s.stepTitle!==t)}showAlert(t,s){var l=this;return(0,c.A)(function*(){yield(yield l.alertCtrl.create({header:s,message:t,buttons:["OK"]})).present()})()}createSystemTest(){var t=this;return(0,c.A)(function*(){if(yield t.showLoading(),console.log(t.systemTest),!t.systemTest.title||!t.systemTest.description||0===t.systemTest.steps.length)return yield t.hideLoading(),void t.showAlert("Please fill out the title, description, and at least one step.","Error").then(l=>console.log("Alert shown"));const s=localStorage.getItem("user");s&&(t.user=JSON.parse(s),t.orgName=t.user.orgName,console.log(t.orgName),t.systemTestService.addSystemTest(t.orgName,t.productObjective,t.productStep,t.systemTest),t.systemTest={title:"",description:"",steps:[],type:"system-test",state:!1},yield t.hideLoading(),window.history.back())})()}showLoading(){var t=this;return(0,c.A)(function*(){yield(yield t.loadingCtrl.create({})).present()})()}hideLoading(){var t=this;return(0,c.A)(function*(){yield t.loadingCtrl.dismiss()})()}doRefresh(t){}}return(o=m).\u0275fac=function(t){return new(t||o)(e.rXU(g.nX),e.rXU(n.hG),e.rXU(_.h),e.rXU(n.Xi))},o.\u0275cmp=e.VBU({type:o,selectors:[["app-create-system-test"]],viewQuery:function(t,s){if(1&t&&e.GBs(n.Sb,5),2&t){let l;e.mGM(l=e.lsd())&&(s.modal=l.first)}},decls:33,vars:5,consts:[[3,"title"],[3,"fullscreen"],[1,"lg:m-10","md:m-10"],["size","12","size-md","4","size-lg","4",1,""],["size","12","size-md","12","size-lg","12",1,""],[1,"min-h-full","flex","flex-col","p-8"],[1,"bg-gray-600","p-2"],["placeholder","Test Title","type","text",1,"text-3xl",3,"ngModelChange","ngModel"],["placeholder","Test Description","type","text",1,"text-sm",3,"ngModelChange","ngModel"],[1,""],[1,"flex","flex-row","items-center"],[1,"text-4xl"],["id","open-modal",1,"flex","flex-row","items-center","bg-cyan-800","m-4","p-1"],["name","add"],[1,"bg-gray-600"],["color","primary","expand","block","fill","outline",3,"click"],["trigger","open-modal",3,"willDismiss"],["aria-hidden","true","name","trash","slot","end",3,"click"],["slot","start"],[3,"click"],["slot","end"],[1,"flex","flex-col","justify-center","items-center"],[1,"m-2","p-2"],["type","text",3,"ngModelChange","ngModel"]],template:function(t,s){1&t&&(e.nrm(0,"app-header-return",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,"p"),e.EFF(7,"Fill the test from to create a system test."),e.k0s(),e.nrm(8,"p"),e.k0s()(),e.j41(9,"ion-row",2)(10,"ion-col",4)(11,"ion-card",5)(12,"ion-card-title",6)(13,"ion-input",7),e.mxI("ngModelChange",function(d){return e.DH7(s.systemTest.title,d)||(s.systemTest.title=d),d}),e.k0s()(),e.nrm(14,"br"),e.j41(15,"ion-card-title",6)(16,"ion-textarea",8),e.mxI("ngModelChange",function(d){return e.DH7(s.systemTest.description,d)||(s.systemTest.description=d),d}),e.k0s()(),e.nrm(17,"br"),e.j41(18,"ion-card-title",9)(19,"div",10)(20,"h1",11),e.EFF(21,"Test Steps..."),e.k0s(),e.j41(22,"div",12),e.nrm(23,"ion-icon",13),e.k0s()()(),e.j41(24,"ion-card-content",14)(25,"ion-list"),e.Z7z(26,f,7,2,"ion-item",null,C,!0),e.k0s()(),e.nrm(28,"br"),e.j41(29,"ion-button",15),e.bIt("click",function(){return s.createSystemTest()}),e.EFF(30,"Create System Test"),e.k0s()()()()(),e.j41(31,"ion-modal",16),e.bIt("willDismiss",function(d){return s.onWillDismiss(d)}),e.DNE(32,S,19,2,"ng-template"),e.k0s()()),2&t&&(e.Y8G("title","Create System Test"),e.R7$(),e.Y8G("fullscreen",!0),e.R7$(2),e.Y8G("title","Create System Test"),e.R7$(10),e.R50("ngModel",s.systemTest.title),e.R7$(3),e.R50("ngModel",s.systemTest.description),e.R7$(10),e.Dyx(s.systemTest.steps))},dependencies:[p.BC,p.vS,n.Jm,n.QW,n.b_,n.I9,n.tN,n.hU,n.W9,n.lO,n.eU,n.iq,n.$w,n.uz,n.he,n.nf,n.ln,n.nc,n.BC,n.ai,n.Sb,n.Gw,u.W,T.p]}),m})()}];let R=(()=>{var o;class m{}return(o=m).\u0275fac=function(t){return new(t||o)},o.\u0275mod=e.$C({type:o}),o.\u0275inj=e.G2t({imports:[g.iI.forChild(M),g.iI]}),m})();var P=i(5553);let v=(()=>{var o;class m{}return(o=m).\u0275fac=function(t){return new(t||o)},o.\u0275mod=e.$C({type:o}),o.\u0275inj=e.G2t({imports:[a.MD,p.YN,n.bv,R,P.h]}),m})()}}]); \ No newline at end of file diff --git a/www/6927.71b59311cb8c71c7.js b/www/1313.46ae0a0d0e94f2f8.js similarity index 98% rename from www/6927.71b59311cb8c71c7.js rename to www/1313.46ae0a0d0e94f2f8.js index 716ff20..75d1fc0 100644 --- a/www/6927.71b59311cb8c71c7.js +++ b/www/1313.46ae0a0d0e94f2f8.js @@ -1 +1 @@ -"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[6927],{5553:(_,P,n)=>{n.d(P,{h:()=>g});var l=n(177),v=n(7863),i=n(4438);let g=(()=>{var c;class e{}return(c=e).\u0275fac=function(m){return new(m||c)},c.\u0275mod=i.$C({type:c}),c.\u0275inj=i.G2t({imports:[l.MD,v.bv]}),e})()},3241:(_,P,n)=>{n.d(P,{p:()=>g});var l=n(4438),v=n(177),i=n(7863);let g=(()=>{var c;class e{constructor(m){this.location=m,this.title="Header Title"}ngOnInit(){}goBack(){this.location.back()}}return(c=e).\u0275fac=function(m){return new(m||c)(l.rXU(v.aZ))},c.\u0275cmp=l.VBU({type:c,selectors:[["app-header-return"]],inputs:{title:"title"},decls:6,vars:2,consts:[[3,"translucent"],["slot","start","menu","menu-id"],["name","arrow-back","slot","start",1,"p-4","bigger-icon",3,"click"]],template:function(m,y){1&m&&(l.j41(0,"ion-header",0)(1,"ion-toolbar"),l.nrm(2,"ion-menu-button",1),l.j41(3,"ion-icon",2),l.bIt("click",function(){return y.goBack()}),l.k0s(),l.j41(4,"ion-title"),l.EFF(5),l.k0s()()()),2&m&&(l.Y8G("translucent",!0),l.R7$(5),l.JRh(y.title))},dependencies:[i.eU,i.iq,i.MC,i.BC,i.ai],styles:[".bigger-icon[_ngcontent-%COMP%]{font-size:1.5em}"]}),e})()},6927:(_,P,n)=>{n.r(P),n.d(P,{ViewProductPageModule:()=>E});var l=n(177),v=n(4341),i=n(7863),g=n(7650),c=n(467),e=n(4438),f=n(6241),m=n(9640),y=n(3241);function S(r,s){if(1&r){const u=e.RV6();e.j41(0,"ion-item"),e.nrm(1,"ion-input",13),e.j41(2,"ion-icon",14),e.bIt("click",function(){const o=e.eBV(u).$implicit,d=e.XpG();return e.Njj(d.deleteStep(o))}),e.k0s()()}if(2&r){const u=s.$implicit;e.R7$(),e.FS9("value",u)}}function C(r,s){if(1&r&&(e.j41(0,"ion-item"),e.nrm(1,"ion-input",13),e.k0s()),2&r){const u=s.$implicit;e.R7$(),e.FS9("value",u)}}function M(r,s){if(1&r&&(e.j41(0,"ion-item"),e.nrm(1,"ion-input",13),e.k0s()),2&r){const u=s.$implicit;e.R7$(),e.FS9("value",u)}}const F=[{path:"",component:(()=>{var r;class s{constructor(t,o,d,a,h,p){this.route=t,this.productService=o,this.alertCtrl=d,this.loadingCtrl=a,this.router=h,this.ripeService=p,this.product={productObjective:"",productSteps:[],productServices:[],productSLOs:[]},this.orgName="orgName"}ngOnInit(){var t=this;return(0,c.A)(function*(){t.getProductFromParams(),t.getOrgName()})()}getOrgName(){const t=localStorage.getItem("user");if(!t)return;const o=JSON.parse(t);this.orgName=o.orgName}getProductFromParams(){this.route.queryParams.subscribe(t=>{this.product=JSON.parse(t.product)}),console.log(this.product)}upDateFields(){var t=this;return(0,c.A)(function*(){yield t.showLoading();const o=t.inputs.map(w=>w.value),d=t.product.productSteps.length,a=o.slice(0,d),h=o.slice(d,2*d),p=o.slice(2*d,3*d);t.product.productSteps=a,t.product.productServices=h,t.product.productSLOs=p,yield t.productService.addProduct(t.product,t.orgName),yield t.hideLoading(),yield t.showAlert("Product updated successfully")})()}deleteProduct(){var t=this;return(0,c.A)(function*(){yield t.showLoading(),yield t.productService.removeProduct(t.orgName,t.product.productObjective),yield t.hideLoading(),yield t.showAlert("Product deleted successfully"),yield t.router.navigate(["/model-product"])})()}deleteStep(t){var o=this;return(0,c.A)(function*(){yield o.showLoading();const d=o.product.productSteps.indexOf(t);o.product.productSteps.splice(d,1),o.product.productServices.splice(d,1),o.product.productSLOs.splice(d,1),yield o.productService.addProduct(o.product,o.orgName);let a=[];o.ripeService.getHistoryResults(o.orgName,o.product.productObjective).then(h=>{console.log(t);for(let p=0;p{var r;class s{}return(r=s).\u0275fac=function(t){return new(t||r)},r.\u0275mod=e.$C({type:r}),r.\u0275inj=e.G2t({imports:[g.iI.forChild(F),g.iI]}),s})();var V=n(5553);let E=(()=>{var r;class s{}return(r=s).\u0275fac=function(t){return new(t||r)},r.\u0275mod=e.$C({type:r}),r.\u0275inj=e.G2t({imports:[l.MD,v.YN,i.bv,j,V.h]}),s})()}}]); \ No newline at end of file +"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[1313],{5553:(_,P,n)=>{n.d(P,{h:()=>g});var l=n(177),v=n(7863),i=n(4438);let g=(()=>{var c;class e{}return(c=e).\u0275fac=function(m){return new(m||c)},c.\u0275mod=i.$C({type:c}),c.\u0275inj=i.G2t({imports:[l.MD,v.bv]}),e})()},3241:(_,P,n)=>{n.d(P,{p:()=>g});var l=n(4438),v=n(177),i=n(7863);let g=(()=>{var c;class e{constructor(m){this.location=m,this.title="Header Title"}ngOnInit(){}goBack(){this.location.back()}}return(c=e).\u0275fac=function(m){return new(m||c)(l.rXU(v.aZ))},c.\u0275cmp=l.VBU({type:c,selectors:[["app-header-return"]],inputs:{title:"title"},decls:6,vars:2,consts:[[3,"translucent"],["slot","start","menu","menu-id"],["name","arrow-back","slot","start",1,"p-4","bigger-icon",3,"click"]],template:function(m,y){1&m&&(l.j41(0,"ion-header",0)(1,"ion-toolbar"),l.nrm(2,"ion-menu-button",1),l.j41(3,"ion-icon",2),l.bIt("click",function(){return y.goBack()}),l.k0s(),l.j41(4,"ion-title"),l.EFF(5),l.k0s()()()),2&m&&(l.Y8G("translucent",!0),l.R7$(5),l.JRh(y.title))},dependencies:[i.eU,i.iq,i.MC,i.BC,i.ai],styles:[".bigger-icon[_ngcontent-%COMP%]{font-size:1.5em}"]}),e})()},1313:(_,P,n)=>{n.r(P),n.d(P,{ViewProductPageModule:()=>E});var l=n(177),v=n(4341),i=n(7863),g=n(7650),c=n(467),e=n(4438),f=n(6241),m=n(9640),y=n(3241);function S(r,s){if(1&r){const u=e.RV6();e.j41(0,"ion-item"),e.nrm(1,"ion-input",13),e.j41(2,"ion-icon",14),e.bIt("click",function(){const o=e.eBV(u).$implicit,d=e.XpG();return e.Njj(d.deleteStep(o))}),e.k0s()()}if(2&r){const u=s.$implicit;e.R7$(),e.FS9("value",u)}}function C(r,s){if(1&r&&(e.j41(0,"ion-item"),e.nrm(1,"ion-input",13),e.k0s()),2&r){const u=s.$implicit;e.R7$(),e.FS9("value",u)}}function M(r,s){if(1&r&&(e.j41(0,"ion-item"),e.nrm(1,"ion-input",13),e.k0s()),2&r){const u=s.$implicit;e.R7$(),e.FS9("value",u)}}const F=[{path:"",component:(()=>{var r;class s{constructor(t,o,d,a,h,p){this.route=t,this.productService=o,this.alertCtrl=d,this.loadingCtrl=a,this.router=h,this.ripeService=p,this.product={productObjective:"",productSteps:[],productServices:[],productSLOs:[]},this.orgName="orgName"}ngOnInit(){var t=this;return(0,c.A)(function*(){t.getProductFromParams(),t.getOrgName()})()}getOrgName(){const t=localStorage.getItem("user");if(!t)return;const o=JSON.parse(t);this.orgName=o.orgName}getProductFromParams(){this.route.queryParams.subscribe(t=>{this.product=JSON.parse(t.product)}),console.log(this.product)}upDateFields(){var t=this;return(0,c.A)(function*(){yield t.showLoading();const o=t.inputs.map(w=>w.value),d=t.product.productSteps.length,a=o.slice(0,d),h=o.slice(d,2*d),p=o.slice(2*d,3*d);t.product.productSteps=a,t.product.productServices=h,t.product.productSLOs=p,yield t.productService.addProduct(t.product,t.orgName),yield t.hideLoading(),yield t.showAlert("Product updated successfully")})()}deleteProduct(){var t=this;return(0,c.A)(function*(){yield t.showLoading(),yield t.productService.removeProduct(t.orgName,t.product.productObjective),yield t.hideLoading(),yield t.showAlert("Product deleted successfully"),yield t.router.navigate(["/model-product"])})()}deleteStep(t){var o=this;return(0,c.A)(function*(){yield o.showLoading();const d=o.product.productSteps.indexOf(t);o.product.productSteps.splice(d,1),o.product.productServices.splice(d,1),o.product.productSLOs.splice(d,1),yield o.productService.addProduct(o.product,o.orgName);let a=[];o.ripeService.getHistoryResults(o.orgName,o.product.productObjective).then(h=>{console.log(t);for(let p=0;p{var r;class s{}return(r=s).\u0275fac=function(t){return new(t||r)},r.\u0275mod=e.$C({type:r}),r.\u0275inj=e.G2t({imports:[g.iI.forChild(F),g.iI]}),s})();var V=n(5553);let E=(()=>{var r;class s{}return(r=s).\u0275fac=function(t){return new(t||r)},r.\u0275mod=e.$C({type:r}),r.\u0275inj=e.G2t({imports:[l.MD,v.YN,i.bv,j,V.h]}),s})()}}]); \ No newline at end of file diff --git a/www/246.feca7d34fa21624f.js b/www/246.feca7d34fa21624f.js deleted file mode 100644 index 7de4fa5..0000000 --- a/www/246.feca7d34fa21624f.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[246],{246:(F,h,n)=>{n.r(h),n.d(h,{ShowMapPageModule:()=>L});var g=n(177),m=n(4341),l=n(7863),p=n(7650),s=n(467),c=n(8244),f=n(5841),o=n(4438),v=n(9640),y=n(3241);function M(e,i){if(1&e&&(o.j41(0,"p"),o.EFF(1),o.k0s()),2&e){const d=i.$implicit;o.R7$(),o.Lme("",d.countryFrom," : ",d.latency,"ms")}}const S=[{path:"",component:(()=>{var e;class i{constructor(t,a,r){this.ripeService=t,this.loadingCtrl=a,this.route=r,this.ripeData=[],this.orgName="",this.productObjective="",this.description=""}ngOnInit(){}ionViewDidEnter(){var t=this;return(0,s.A)(function*(){yield t.showLoading(),t.route.queryParams.subscribe(function(){var a=(0,s.A)(function*(r){t.description=r.description,t.productObjective=r.productObjective,t.orgName=r.orgName,console.log(t.orgName),console.log(t.productObjective),console.log(t.description),yield t.ripeService.getAllResultsByDescription(t.orgName,t.productObjective,t.description).then(u=>{t.ripeData=u}).then(()=>{t.leafletMap()})});return function(r){return a.apply(this,arguments)}}())})()}leafletMap(){var t=this;return(0,s.A)(function*(){t.map=c.map("mapId").setView([0,0],2.5),c.tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",{attribution:"edupala.com \xa9 Angular LeafLet",minZoom:2.5,maxZoom:8}).addTo(t.map),setTimeout(()=>{t.map.invalidateSize(),t.addPaths()},1e3)})()}ngOnDestroy(){this.map.remove()}addPaths(){var t=this;return(0,s.A)(function*(){t.ripeData=t.ripeData.data,t.ripeData.sort((a,r)=>a.latency

Latency: ${a.latency} ms

`,iconSize:[200,20]});c.marker([(a.fromLatitude+a.toLatitude)/2,(a.fromLongitude+a.toLongitude)/2],{icon:u}).addTo(t.map)}yield t.hideLoading()})()}showLoading(){var t=this;return(0,s.A)(function*(){yield(yield t.loadingCtrl.create({})).present()})()}hideLoading(){var t=this;return(0,s.A)(function*(){yield t.loadingCtrl.dismiss()})()}}return(e=i).\u0275fac=function(t){return new(t||e)(o.rXU(v.Q),o.rXU(l.Xi),o.rXU(p.nX))},e.\u0275cmp=o.VBU({type:e,selectors:[["app-show-map"]],decls:10,vars:1,consts:[[3,"title"],[1,"relative"],["color","dark",1,"fixed-card","hidden","lg:block"],["color","black"],["id","mapId",2,"width","100%","height","100%"]],template:function(t,a){1&t&&(o.nrm(0,"app-header-return",0),o.j41(1,"ion-content",1)(2,"ion-card",2)(3,"ion-card-header")(4,"ion-card-title",3),o.EFF(5,"Latency Higher to Lower"),o.k0s()(),o.j41(6,"ion-card-content"),o.Z7z(7,M,2,2,"p",null,o.fX1),o.k0s()(),o.nrm(9,"div",4),o.k0s()),2&t&&(o.Y8G("title","Show Map"),o.R7$(7),o.Dyx(a.ripeData))},dependencies:[l.b_,l.I9,l.ME,l.tN,l.W9,y.p],styles:[".fixed-card[_ngcontent-%COMP%]{position:absolute;top:10px;left:50px;z-index:1000;background-color:#fff;border-radius:10px;box-shadow:0 2px 10px #0003}"]}),i})()}];let w=(()=>{var e;class i{}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275mod=o.$C({type:e}),e.\u0275inj=o.G2t({imports:[p.iI.forChild(S),p.iI]}),i})();var P=n(5553);let L=(()=>{var e;class i{}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275mod=o.$C({type:e}),e.\u0275inj=o.G2t({imports:[g.MD,m.YN,l.bv,w,P.h]}),i})()}}]); \ No newline at end of file diff --git a/www/2069.2eb29319cb425843.js b/www/2757.3abded5cb12716d3.js similarity index 96% rename from www/2069.2eb29319cb425843.js rename to www/2757.3abded5cb12716d3.js index acccc6f..e7f8b2f 100644 --- a/www/2069.2eb29319cb425843.js +++ b/www/2757.3abded5cb12716d3.js @@ -1 +1 @@ -"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[2069],{5553:(v,d,n)=>{n.d(d,{h:()=>a});var g=n(177),s=n(7863),m=n(4438);let a=(()=>{var i;class t{}return(i=t).\u0275fac=function(f){return new(f||i)},i.\u0275mod=m.$C({type:i}),i.\u0275inj=m.G2t({imports:[g.MD,s.bv]}),t})()},2069:(v,d,n)=>{n.r(d),n.d(d,{HomePageModule:()=>x});var g=n(177),s=n(7863),m=n(4341),a=n(7650),i=n(467),t=n(4438),p=n(4796),f=n(6241),P=n(385),M=n(8453);function y(e,c){if(1&e){const l=t.RV6();t.j41(0,"ion-col",6)(1,"ion-card",7),t.bIt("click",function(){const r=t.eBV(l).$implicit,u=t.XpG();return t.Njj(u.goToProduct(r.productObjective))}),t.j41(2,"h1",8),t.EFF(3),t.k0s()()()}if(2&e){const l=c.$implicit;t.R7$(3),t.JRh(l.productObjective)}}const C=[{path:"",component:(()=>{var e;class c{constructor(o,r,u,h){this.authService=o,this.router=r,this.productService=u,this.loadingCtrl=h,this.products=[]}ionViewWillEnter(){var o=this;return(0,i.A)(function*(){try{yield o.showLoading();const r=localStorage.getItem("user");if(!r)return;const h=JSON.parse(r).orgName;o.products=yield o.productService.getProducts(h),0===o.products.length&&o.products.push({productObjective:"No products found"}),console.log(o.products),yield o.hideLoading()}catch(r){console.log(r)}})()}logout(){var o=this;return(0,i.A)(function*(){yield o.authService.logoutUser(),yield o.router.navigate(["/login"])})()}showLoading(){var o=this;return(0,i.A)(function*(){yield(yield o.loadingCtrl.create({})).present()})()}hideLoading(){var o=this;return(0,i.A)(function*(){yield o.loadingCtrl.dismiss()})()}goToProduct(o){this.router.navigate(["/graph-data-for"],{queryParams:{product:o}})}}return(e=c).\u0275fac=function(o){return new(o||e)(t.rXU(p.u),t.rXU(a.Ix),t.rXU(f.b),t.rXU(s.Xi))},e.\u0275cmp=t.VBU({type:e,selectors:[["app-home"]],decls:10,vars:4,consts:[[3,"title"],[3,"fullscreen"],[1,"lg:m-10","md:m-10"],["size","12","size-md","4","size-lg","4","class","flex flex-row justify-center",4,"ngFor","ngForOf"],["size","12","size-md","12","size-lg","12",1,"flex","flex-row","justify-center"],[1,"min-w-full","bg-red-600","p-2","m-2","rounded-2xl",3,"click"],["size","12","size-md","4","size-lg","4",1,"flex","flex-row","justify-center"],[1,"w-full","h-60","p-6","flex","flex-col","justify-center","items-center",3,"click"],[1,"text-6xl","font-bold","text-blue-500"]],template:function(o,r){1&o&&(t.nrm(0,"app-header",0),t.j41(1,"ion-content",1)(2,"ion-grid"),t.nrm(3,"app-title",0),t.j41(4,"ion-row",2),t.DNE(5,y,4,1,"ion-col",3),t.k0s(),t.j41(6,"ion-row",2)(7,"ion-col",4)(8,"button",5),t.bIt("click",function(){return r.logout()}),t.EFF(9,"Logout"),t.k0s()()()()()),2&o&&(t.Y8G("title","Home"),t.R7$(),t.Y8G("fullscreen",!0),t.R7$(2),t.Y8G("title","View Analytics Of Product ..."),t.R7$(2),t.Y8G("ngForOf",r.products))},dependencies:[g.Sq,s.b_,s.hU,s.W9,s.lO,s.ln,P.l,M.W],styles:["#container[_ngcontent-%COMP%]{text-align:center;position:absolute;left:0;right:0;top:50%;transform:translateY(-50%)}#container[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{font-size:20px;line-height:26px}#container[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:16px;line-height:22px;color:#8c8c8c;margin:0}#container[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{text-decoration:none}"]}),c})()}];let O=(()=>{var e;class c{}return(e=c).\u0275fac=function(o){return new(o||e)},e.\u0275mod=t.$C({type:e}),e.\u0275inj=t.G2t({imports:[a.iI.forChild(C),a.iI]}),c})();var H=n(5553);let x=(()=>{var e;class c{}return(e=c).\u0275fac=function(o){return new(o||e)},e.\u0275mod=t.$C({type:e}),e.\u0275inj=t.G2t({imports:[g.MD,m.YN,s.bv,O,H.h]}),c})()}}]); \ No newline at end of file +"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[2757],{5553:(v,d,n)=>{n.d(d,{h:()=>a});var g=n(177),s=n(7863),m=n(4438);let a=(()=>{var i;class t{}return(i=t).\u0275fac=function(f){return new(f||i)},i.\u0275mod=m.$C({type:i}),i.\u0275inj=m.G2t({imports:[g.MD,s.bv]}),t})()},2757:(v,d,n)=>{n.r(d),n.d(d,{HomePageModule:()=>x});var g=n(177),s=n(7863),m=n(4341),a=n(7650),i=n(467),t=n(4438),p=n(4796),f=n(6241),P=n(385),M=n(8453);function y(e,c){if(1&e){const l=t.RV6();t.j41(0,"ion-col",6)(1,"ion-card",7),t.bIt("click",function(){const r=t.eBV(l).$implicit,u=t.XpG();return t.Njj(u.goToProduct(r.productObjective))}),t.j41(2,"h1",8),t.EFF(3),t.k0s()()()}if(2&e){const l=c.$implicit;t.R7$(3),t.JRh(l.productObjective)}}const C=[{path:"",component:(()=>{var e;class c{constructor(o,r,u,h){this.authService=o,this.router=r,this.productService=u,this.loadingCtrl=h,this.products=[]}ionViewWillEnter(){var o=this;return(0,i.A)(function*(){try{yield o.showLoading();const r=localStorage.getItem("user");if(!r)return;const h=JSON.parse(r).orgName;o.products=yield o.productService.getProducts(h),0===o.products.length&&o.products.push({productObjective:"No products found"}),console.log(o.products),yield o.hideLoading()}catch(r){console.log(r)}})()}logout(){var o=this;return(0,i.A)(function*(){yield o.authService.logoutUser(),yield o.router.navigate(["/login"])})()}showLoading(){var o=this;return(0,i.A)(function*(){yield(yield o.loadingCtrl.create({})).present()})()}hideLoading(){var o=this;return(0,i.A)(function*(){yield o.loadingCtrl.dismiss()})()}goToProduct(o){this.router.navigate(["/graph-data-for"],{queryParams:{product:o}})}}return(e=c).\u0275fac=function(o){return new(o||e)(t.rXU(p.u),t.rXU(a.Ix),t.rXU(f.b),t.rXU(s.Xi))},e.\u0275cmp=t.VBU({type:e,selectors:[["app-home"]],decls:10,vars:4,consts:[[3,"title"],[3,"fullscreen"],[1,"lg:m-10","md:m-10"],["size","12","size-md","4","size-lg","4","class","flex flex-row justify-center",4,"ngFor","ngForOf"],["size","12","size-md","12","size-lg","12",1,"flex","flex-row","justify-center"],[1,"min-w-full","bg-red-600","p-2","m-2","rounded-2xl",3,"click"],["size","12","size-md","4","size-lg","4",1,"flex","flex-row","justify-center"],[1,"w-full","h-60","p-6","flex","flex-col","justify-center","items-center",3,"click"],[1,"text-6xl","font-bold","text-blue-500"]],template:function(o,r){1&o&&(t.nrm(0,"app-header",0),t.j41(1,"ion-content",1)(2,"ion-grid"),t.nrm(3,"app-title",0),t.j41(4,"ion-row",2),t.DNE(5,y,4,1,"ion-col",3),t.k0s(),t.j41(6,"ion-row",2)(7,"ion-col",4)(8,"button",5),t.bIt("click",function(){return r.logout()}),t.EFF(9,"Logout"),t.k0s()()()()()),2&o&&(t.Y8G("title","Home"),t.R7$(),t.Y8G("fullscreen",!0),t.R7$(2),t.Y8G("title","View Analytics Of Product ..."),t.R7$(2),t.Y8G("ngForOf",r.products))},dependencies:[g.Sq,s.b_,s.hU,s.W9,s.lO,s.ln,P.l,M.W],styles:["#container[_ngcontent-%COMP%]{text-align:center;position:absolute;left:0;right:0;top:50%;transform:translateY(-50%)}#container[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{font-size:20px;line-height:26px}#container[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:16px;line-height:22px;color:#8c8c8c;margin:0}#container[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{text-decoration:none}"]}),c})()}];let O=(()=>{var e;class c{}return(e=c).\u0275fac=function(o){return new(o||e)},e.\u0275mod=t.$C({type:e}),e.\u0275inj=t.G2t({imports:[a.iI.forChild(C),a.iI]}),c})();var H=n(5553);let x=(()=>{var e;class c{}return(e=c).\u0275fac=function(o){return new(o||e)},e.\u0275mod=t.$C({type:e}),e.\u0275inj=t.G2t({imports:[g.MD,m.YN,s.bv,O,H.h]}),c})()}}]); \ No newline at end of file diff --git a/www/3151.3e501609e759853a.js b/www/3100.be59eccfa5c9316f.js similarity index 99% rename from www/3151.3e501609e759853a.js rename to www/3100.be59eccfa5c9316f.js index 01307c7..8cc184d 100644 --- a/www/3151.3e501609e759853a.js +++ b/www/3100.be59eccfa5c9316f.js @@ -1 +1 @@ -"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[3151],{5553:(R,F,c)=>{c.d(F,{h:()=>_});var g=c(177),v=c(7863),i=c(4438);let _=(()=>{var h;class e{}return(h=e).\u0275fac=function(y){return new(y||h)},h.\u0275mod=i.$C({type:h}),h.\u0275inj=i.G2t({imports:[g.MD,v.bv]}),e})()},3241:(R,F,c)=>{c.d(F,{p:()=>_});var g=c(4438),v=c(177),i=c(7863);let _=(()=>{var h;class e{constructor(y){this.location=y,this.title="Header Title"}ngOnInit(){}goBack(){this.location.back()}}return(h=e).\u0275fac=function(y){return new(y||h)(g.rXU(v.aZ))},h.\u0275cmp=g.VBU({type:h,selectors:[["app-header-return"]],inputs:{title:"title"},decls:6,vars:2,consts:[[3,"translucent"],["slot","start","menu","menu-id"],["name","arrow-back","slot","start",1,"p-4","bigger-icon",3,"click"]],template:function(y,M){1&y&&(g.j41(0,"ion-header",0)(1,"ion-toolbar"),g.nrm(2,"ion-menu-button",1),g.j41(3,"ion-icon",2),g.bIt("click",function(){return M.goBack()}),g.k0s(),g.j41(4,"ion-title"),g.EFF(5),g.k0s()()()),2&y&&(g.Y8G("translucent",!0),g.R7$(5),g.JRh(M.title))},dependencies:[i.eU,i.iq,i.MC,i.BC,i.ai],styles:[".bigger-icon[_ngcontent-%COMP%]{font-size:1.5em}"]}),e})()},3151:(R,F,c)=>{c.r(F),c.d(F,{FlameGraphComparePageModule:()=>L});var g=c(177),v=c(4341),i=c(7863),_=c(7650),h=c(467),e=c(4438),C=c(9032),y=c(6560),M=c(8453),w=c(3241),j=c(7616),E=c(9549);const D=["messagesContainer2"];function A(t,d){if(1&t&&(e.j41(0,"ion-col",32)(1,"ion-card",33)(2,"ion-card-header")(3,"ion-card-title")(4,"h1"),e.EFF(5),e.k0s()()(),e.nrm(6,"ngx-flamegraph",34),e.k0s()()),2&t){const l=d.$implicit,a=e.XpG(2);e.R7$(5),e.SpI("Data for: ",l,""),e.R7$(),e.Y8G("config",a.configurations[l])}}function k(t,d){if(1&t&&(e.j41(0,"ion-row",4),e.DNE(1,A,7,2,"ion-col",31),e.k0s()),2&t){const l=e.XpG();e.R7$(),e.Y8G("ngForOf",l.datesForComparison)}}function T(t,d){if(1&t&&(e.j41(0,"ion-col",36)(1,"ion-card",33),e.qex(2),e.j41(3,"ion-card")(4,"ion-card-header")(5,"ion-card-title"),e.EFF(6),e.k0s()(),e.nrm(7,"ngx-flamegraph",34),e.k0s(),e.bVm(),e.k0s()()),2&t){const l=d.$implicit,a=e.XpG(2);e.R7$(6),e.SpI("Data for: ",l,""),e.R7$(),e.Y8G("config",a.configurations[l])}}function I(t,d){if(1&t&&(e.j41(0,"ion-row",4),e.DNE(1,T,8,2,"ion-col",35),e.k0s()),2&t){const l=e.XpG();e.R7$(),e.Y8G("ngForOf",l.datesForComparison)}}function O(t,d){if(1&t&&(e.j41(0,"markdown",8),e.EFF(1),e.k0s()),2&t){const l=d.$implicit;e.R7$(),e.JRh(l.message)}}function B(t,d){if(1&t&&(e.j41(0,"div",40)(1,"markdown",41),e.EFF(2),e.k0s()()),2&t){const l=e.XpG().$implicit;e.R7$(2),e.JRh(l.message)}}function S(t,d){if(1&t&&(e.j41(0,"div",42)(1,"markdown",43),e.EFF(2),e.k0s()()),2&t){const l=e.XpG().$implicit;e.R7$(),e.Mz_("id","mk-",l.id,""),e.R7$(),e.JRh(l.message)}}function z(t,d){if(1&t&&(e.j41(0,"div",37),e.DNE(1,B,3,1,"div",38)(2,S,3,3,"div",39),e.k0s()),2&t){const l=d.$implicit;e.R7$(),e.Y8G("ngIf","User"===l.from),e.R7$(),e.Y8G("ngIf","AI"===l.from)}}const N=[{path:"",component:(()=>{var t;class d{constructor(a,o,s){this.flameGraphService=a,this.loadingCtrl=o,this.route=s,this.product={},this.datesForComparison=[],this.lenDates=0,this.configurations={},this.color={hue:[50,0],saturation:[80,80],lightness:[55,60]},this.aiAnalytic=[],this.aiModal=!1,this.message="",this.vertexAI=(0,e.WQX)(C.L9),this.model=(0,C.oc)(this.vertexAI,{model:"gemini-1.5-flash"}),this.chatCPU=this.model.startChat({history:[{role:"user",parts:[{text:"Hola, desde ahora en adelante quiero que seas un modelo experto en Software Quality Assurance y analista de datos, tu nombre es DevProbeAI, nunca lo puedes olvidar"}]},{role:"model",parts:[{text:"Soy un modelo experto en Software Quality Assurance, de igual forma tengo un masterado en anla\xedtica de datos \xbfEn qu\xe9 puedo ayudarte?"}]},{role:"user",parts:[{text:"Gracias, te voy a entregar un json con datos en unos minutos, necesito que lo analices y me des un resumen de los datos, este json contiene datos de usos de CPU de un servidor por d\xeda, imagina que ,tu analisis tiene que ser detallado, si encuentras inconsistencias en los datos, por favor mencionalas, en caso de que creas que puede haber un uso excesivo de algun servicio por favor mencionalo, si encuentras algo interesante, por favor mencionalo, en resumen, necesito un analisis detallado de los datos"}]},{role:"model",parts:[{text:"Claro, env\xedame el json y yo me encargo de analizarlo"}]}]}),this.chatMemory=this.model.startChat({history:[{role:"user",parts:[{text:"Hola, desde ahora en adelante quiero que seas un modelo experto en Software Quality Assurance y analista de datos, tu nombre es DevProbeAI, nunca lo puedes olvidar"}]},{role:"model",parts:[{text:"Soy un modelo experto en Software Quality Assurance, de igual forma tengo un masterado en anla\xedtica de datos \xbfEn qu\xe9 puedo ayudarte?"}]},{role:"user",parts:[{text:"Gracias, te voy a entregar un json con datos en unos minutos, necesito que lo analices y me des un resumen de los datos, este json contiene datos de usos de MEMORIA de un servidor por d\xeda, imagina que ,tu analisis tiene que ser detallado, si encuentras inconsistencias en los datos, por favor mencionalas, en caso de que creas que puede haber un uso excesivo de algun servicio por favor mencionalo, si encuentras algo interesante, por favor mencionalo, en resumen, necesito un analisis detallado de los datos"}]},{role:"model",parts:[{text:"Claro, env\xedame el json y yo me encargo de analizarlo"}]}]}),this.messages=[],this.wasChatOpen=!1,this.usage_type=""}ngOnInit(){this.configurations={}}ionViewWillEnter(){this.configurations={},this.datesForComparison=[],this.getProductAndDatesFromParams(),this.getFlameGraph().then(()=>{this.sendMessage().then(()=>{this.chatStyle()})})}getFlameGraph(){var a=this;return(0,h.A)(function*(){try{yield a.showLoading();const s=localStorage.getItem("user");if(!s)return;const n=JSON.parse(s).orgName;console.log(n),a.configurations={};for(const u of a.datesForComparison){let m;"memory_usage"===a.usage_type?(m=yield a.flameGraphService.getFlameGraphByDate(n,a.product.productObjective,u,!0),a.color={hue:[140,100],saturation:[60,60],lightness:[60,30]}):(m=yield a.flameGraphService.getFlameGraphByDate(n,a.product.productObjective,u),a.color={hue:[50,0],saturation:[80,80],lightness:[55,60]}),console.log(m);let p=[],f=[];for(let W in m){var o;const x=null===(o=m)||void 0===o?void 0:o[W];f=Object.keys(x),console.log("keys",f);const X=100/f.length;for(let G in f){const P=[];for(let b=0;b{this.product=JSON.parse(a.product),this.datesForComparison=JSON.parse(a.dates),this.usage_type=this.route.snapshot.queryParamMap.get("usage_type")}),this.lenDates=this.datesForComparison.length,console.log(this.product.productObjective),console.log(this.datesForComparison),console.log(this.usage_type)}doRefresh(a){this.getFlameGraph().then(()=>{a.target.complete()})}showLoading(){var a=this;return(0,h.A)(function*(){yield(yield a.loadingCtrl.create({})).present()})()}hideLoading(){var a=this;return(0,h.A)(function*(){yield a.loadingCtrl.dismiss()})()}average(a){const o=a.map(Number);return o.reduce((r,n)=>r+n,0)/o.length}transformToRawDataCPU(a){const o=a.cpu_usage?this.average(a.cpu_usage):0,s=[];for(const r in a){if("id"===r||"cpu_usage"===r)continue;const n=a[r];if("object"!=typeof n||Array.isArray(n))"object"!=typeof n&&s.push({label:r,value:0,children:[]});else if("sub_services"===r)for(const u in n){const m=n[u],f={label:u,value:m.cpu_usage?this.average(m.cpu_usage):0,children:this.transformToRawDataCPU(m).children};s.push(f)}else{const m={label:r,value:n.cpu_usage?this.average(n.cpu_usage):0,children:this.transformToRawDataCPU(n).children};s.push(m)}}return{label:a.id,value:o,children:s}}transformToRawDataMemory(a){const o=a.memory_usage?this.average(a.memory_usage):0,s=[];for(const r in a){if("id"===r||"memory_usage"===r)continue;const n=a[r];if("object"!=typeof n||Array.isArray(n))"object"!=typeof n&&s.push({label:r,value:0,children:[]});else if("sub_services"===r)for(const u in n){const m=n[u],f={label:u,value:m.memory_usage?this.average(m.memory_usage):0,children:this.transformToRawDataMemory(m).children};s.push(f)}else{const m={label:r,value:n.memory_usage?this.average(n.memory_usage):0,children:this.transformToRawDataMemory(n).children};s.push(m)}}return{label:a.id,value:o,children:s}}chatStyle(){const a=document.getElementById("analytics");if(a){let m=a.getElementsByTagName("h1"),p=a.getElementsByTagName("h2");for(var o=0;o{this.chatStyle()}))}}return(t=d).\u0275fac=function(a){return new(a||t)(e.rXU(y.x),e.rXU(i.Xi),e.rXU(_.nX))},t.\u0275cmp=e.VBU({type:t,selectors:[["app-flame-graph-compare"]],viewQuery:function(a,o){if(1&a&&e.GBs(D,5),2&a){let s;e.mGM(s=e.lsd())&&(o.messagesContainer=s.first)}},decls:45,vars:12,consts:[["messagesContainer2",""],[3,"title"],[3,"fullscreen"],["slot","fixed",3,"ionRefresh"],[1,"lg:m-10","md:m-10"],["size","12","size-md","12","size-lg","12",1,"flex","flex-row","justify-center"],[1,"min-w-full","p-5"],[1,"text-5xl","font-bold"],["id","analytics",1,"text-white"],[1,"flex","flex-row","justify-center","items-center"],["size","9",1,"rounded-3xl","bg-gray-600","p-2"],["placeholder","Ask DevProbe AI .... ",1,"text-white",3,"ngModelChange","ngModel"],["size","3",1,"min-h-full"],[1,"min-w-full","min-h-full",3,"click"],["vertical","bottom","horizontal","end","slot","fixed",1,"m-2","z-10",3,"click"],[1,"bg-purple-300","p-4"],["name","chatbubble-outline",1,"w-full","h-full"],["id","ai-modal",1,"fixed","bottom-0","right-0","h-full","w-full","bg-black","bg-opacity-60","z-10","r"],[1,"h-full","md:h-3/4","lg:h-3/4","w-full","bg-gray-900","p-4","absolute","right-0","bottom-0","z-50","flex","flex-col","rounded-tl-2xl","rounded-tr-2xl"],[1,"w-full","bg-gray-500","flex","flex-row","justify-center","items-center","p-2","mb-2","rounded-3xl"],[1,"flex","flex-row","p-2","items-center","bg-gray-800","w-full","rounded-3xl","h-full"],[1,"text-white"],[1,"m-2"],[1,"flex","flex-row","justify-center","items-center","bg-gray-800","hover:bg-gray-600","w-1/6","h-full","rounded-3xl",3,"click"],["name","close-outline"],[1,"flex-grow","overflow-y-auto","bg-gray-400","p-2","rounded-3xl"],["class","flex flex-col",4,"ngFor","ngForOf"],[1,"flex","flex-row","mt-2","p-2"],["placeholder","Ask...",1,"flex-grow","bg-gray-700","rounded-2xl",3,"ngModelChange","ngModel"],[1,"m-1"],[1,"w-1/3","bg-gray-500","rounded-3xl","flex","flex-row","justify-center","items-center","hover:bg-gray-300",3,"click"],["size","12","size-md","4","size-lg","4","class","",4,"ngFor","ngForOf"],["size","12","size-md","4","size-lg","4",1,""],[1,"min-h-full"],[3,"config"],["size","12","size-md","6","size-lg","6","class","",4,"ngFor","ngForOf"],["size","12","size-md","6","size-lg","6",1,""],[1,"flex","flex-col"],["class","rounded-3xl bg-gray-800 w-2/3 m-1 ml-auto p-2",4,"ngIf"],["class","rounded-3xl bg-gray-500 w-2/3 m-1 p-2 pr-2",4,"ngIf"],[1,"rounded-3xl","bg-gray-800","w-2/3","m-1","ml-auto","p-2"],[1,"text-white","p-4","m-2"],[1,"rounded-3xl","bg-gray-500","w-2/3","m-1","p-2","pr-2"],[1,"text-white","p-4","m-2",3,"id"]],template:function(a,o){if(1&a){const s=e.RV6();e.nrm(0,"app-header-return",1),e.j41(1,"ion-content",2)(2,"ion-refresher",3),e.bIt("ionRefresh",function(n){return e.eBV(s),e.Njj(o.doRefresh(n))}),e.nrm(3,"ion-refresher-content"),e.k0s(),e.nrm(4,"app-title",1),e.DNE(5,k,2,1,"ion-row",4)(6,I,2,1,"ion-row",4),e.j41(7,"ion-row",4)(8,"ion-col",5)(9,"ion-card",6)(10,"ion-card-header")(11,"ion-card-title")(12,"h1",7),e.EFF(13,"DevProbe AI Analytic"),e.k0s()()(),e.j41(14,"ion-card-content"),e.Z7z(15,O,2,1,"markdown",8,e.fX1),e.k0s(),e.j41(17,"ion-card-content")(18,"ion-row",9)(19,"ion-col",10)(20,"ion-input",11),e.mxI("ngModelChange",function(n){return e.eBV(s),e.DH7(o.message,n)||(o.message=n),e.Njj(n)}),e.k0s()(),e.j41(21,"ion-col",12)(22,"ion-button",13),e.bIt("click",function(){return e.eBV(s),e.Njj(o.toggleAiModal())}),e.EFF(23,"Send"),e.k0s()()()()()()(),e.j41(24,"ion-fab",14),e.bIt("click",function(){return e.eBV(s),e.Njj(o.aiModal=!0)}),e.j41(25,"ion-avatar",15),e.nrm(26,"ion-icon",16),e.k0s()()(),e.j41(27,"div",17)(28,"div",18)(29,"div",19)(30,"div",20)(31,"h1",21),e.EFF(32,"DevProbe AI"),e.k0s()(),e.nrm(33,"div",22),e.j41(34,"div",23),e.bIt("click",function(){return e.eBV(s),e.Njj(o.aiModal=!1)}),e.nrm(35,"ion-icon",24),e.k0s()(),e.j41(36,"div",25,0),e.DNE(38,z,3,2,"div",26),e.k0s(),e.j41(39,"div",27)(40,"ion-textarea",28),e.mxI("ngModelChange",function(n){return e.eBV(s),e.DH7(o.message,n)||(o.message=n),e.Njj(n)}),e.k0s(),e.nrm(41,"div",29),e.j41(42,"div",30),e.bIt("click",function(){return e.eBV(s),e.Njj(o.sendMessage())}),e.j41(43,"span",21),e.EFF(44,"Send"),e.k0s()()()()()}2&a&&(e.Y8G("title","Compare Flame Graphs"),e.R7$(),e.Y8G("fullscreen",!0),e.R7$(3),e.Y8G("title","Compare Flame Graphs"),e.R7$(),e.vxM(5,o.lenDates>=3?5:-1),e.R7$(),e.vxM(6,o.lenDates<3?6:-1),e.R7$(9),e.Dyx(o.aiAnalytic),e.R7$(5),e.R50("ngModel",o.message),e.R7$(4),e.AVh("hidden",!o.wasChatOpen),e.R7$(3),e.AVh("hidden",!o.aiModal),e.R7$(11),e.Y8G("ngForOf",o.messages),e.R7$(2),e.R50("ngModel",o.message))},dependencies:[g.Sq,g.bT,v.BC,v.vS,i.mC,i.Jm,i.b_,i.I9,i.ME,i.tN,i.hU,i.W9,i.Q8,i.iq,i.$w,i.To,i.Ki,i.ln,i.nc,i.Gw,M.W,w.p,j.E,E.NN]}),d})()}];let $=(()=>{var t;class d{}return(t=d).\u0275fac=function(a){return new(a||t)},t.\u0275mod=e.$C({type:t}),t.\u0275inj=e.G2t({imports:[_.iI.forChild(N),_.iI]}),d})();var V=c(5553);let L=(()=>{var t;class d{}return(t=d).\u0275fac=function(a){return new(a||t)},t.\u0275mod=e.$C({type:t}),t.\u0275inj=e.G2t({imports:[g.MD,v.YN,i.bv,$,V.h,j.n,E.NN]}),d})()}}]); \ No newline at end of file +"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[3100],{5553:(R,F,c)=>{c.d(F,{h:()=>_});var g=c(177),v=c(7863),i=c(4438);let _=(()=>{var h;class e{}return(h=e).\u0275fac=function(y){return new(y||h)},h.\u0275mod=i.$C({type:h}),h.\u0275inj=i.G2t({imports:[g.MD,v.bv]}),e})()},3241:(R,F,c)=>{c.d(F,{p:()=>_});var g=c(4438),v=c(177),i=c(7863);let _=(()=>{var h;class e{constructor(y){this.location=y,this.title="Header Title"}ngOnInit(){}goBack(){this.location.back()}}return(h=e).\u0275fac=function(y){return new(y||h)(g.rXU(v.aZ))},h.\u0275cmp=g.VBU({type:h,selectors:[["app-header-return"]],inputs:{title:"title"},decls:6,vars:2,consts:[[3,"translucent"],["slot","start","menu","menu-id"],["name","arrow-back","slot","start",1,"p-4","bigger-icon",3,"click"]],template:function(y,M){1&y&&(g.j41(0,"ion-header",0)(1,"ion-toolbar"),g.nrm(2,"ion-menu-button",1),g.j41(3,"ion-icon",2),g.bIt("click",function(){return M.goBack()}),g.k0s(),g.j41(4,"ion-title"),g.EFF(5),g.k0s()()()),2&y&&(g.Y8G("translucent",!0),g.R7$(5),g.JRh(M.title))},dependencies:[i.eU,i.iq,i.MC,i.BC,i.ai],styles:[".bigger-icon[_ngcontent-%COMP%]{font-size:1.5em}"]}),e})()},3100:(R,F,c)=>{c.r(F),c.d(F,{FlameGraphComparePageModule:()=>L});var g=c(177),v=c(4341),i=c(7863),_=c(7650),h=c(467),e=c(4438),C=c(9032),y=c(6560),M=c(8453),w=c(3241),j=c(7616),E=c(9549);const D=["messagesContainer2"];function A(t,d){if(1&t&&(e.j41(0,"ion-col",32)(1,"ion-card",33)(2,"ion-card-header")(3,"ion-card-title")(4,"h1"),e.EFF(5),e.k0s()()(),e.nrm(6,"ngx-flamegraph",34),e.k0s()()),2&t){const l=d.$implicit,a=e.XpG(2);e.R7$(5),e.SpI("Data for: ",l,""),e.R7$(),e.Y8G("config",a.configurations[l])}}function k(t,d){if(1&t&&(e.j41(0,"ion-row",4),e.DNE(1,A,7,2,"ion-col",31),e.k0s()),2&t){const l=e.XpG();e.R7$(),e.Y8G("ngForOf",l.datesForComparison)}}function T(t,d){if(1&t&&(e.j41(0,"ion-col",36)(1,"ion-card",33),e.qex(2),e.j41(3,"ion-card")(4,"ion-card-header")(5,"ion-card-title"),e.EFF(6),e.k0s()(),e.nrm(7,"ngx-flamegraph",34),e.k0s(),e.bVm(),e.k0s()()),2&t){const l=d.$implicit,a=e.XpG(2);e.R7$(6),e.SpI("Data for: ",l,""),e.R7$(),e.Y8G("config",a.configurations[l])}}function I(t,d){if(1&t&&(e.j41(0,"ion-row",4),e.DNE(1,T,8,2,"ion-col",35),e.k0s()),2&t){const l=e.XpG();e.R7$(),e.Y8G("ngForOf",l.datesForComparison)}}function O(t,d){if(1&t&&(e.j41(0,"markdown",8),e.EFF(1),e.k0s()),2&t){const l=d.$implicit;e.R7$(),e.JRh(l.message)}}function B(t,d){if(1&t&&(e.j41(0,"div",40)(1,"markdown",41),e.EFF(2),e.k0s()()),2&t){const l=e.XpG().$implicit;e.R7$(2),e.JRh(l.message)}}function S(t,d){if(1&t&&(e.j41(0,"div",42)(1,"markdown",43),e.EFF(2),e.k0s()()),2&t){const l=e.XpG().$implicit;e.R7$(),e.Mz_("id","mk-",l.id,""),e.R7$(),e.JRh(l.message)}}function z(t,d){if(1&t&&(e.j41(0,"div",37),e.DNE(1,B,3,1,"div",38)(2,S,3,3,"div",39),e.k0s()),2&t){const l=d.$implicit;e.R7$(),e.Y8G("ngIf","User"===l.from),e.R7$(),e.Y8G("ngIf","AI"===l.from)}}const N=[{path:"",component:(()=>{var t;class d{constructor(a,o,s){this.flameGraphService=a,this.loadingCtrl=o,this.route=s,this.product={},this.datesForComparison=[],this.lenDates=0,this.configurations={},this.color={hue:[50,0],saturation:[80,80],lightness:[55,60]},this.aiAnalytic=[],this.aiModal=!1,this.message="",this.vertexAI=(0,e.WQX)(C.L9),this.model=(0,C.oc)(this.vertexAI,{model:"gemini-1.5-flash"}),this.chatCPU=this.model.startChat({history:[{role:"user",parts:[{text:"Hola, desde ahora en adelante quiero que seas un modelo experto en Software Quality Assurance y analista de datos, tu nombre es DevProbeAI, nunca lo puedes olvidar"}]},{role:"model",parts:[{text:"Soy un modelo experto en Software Quality Assurance, de igual forma tengo un masterado en anla\xedtica de datos \xbfEn qu\xe9 puedo ayudarte?"}]},{role:"user",parts:[{text:"Gracias, te voy a entregar un json con datos en unos minutos, necesito que lo analices y me des un resumen de los datos, este json contiene datos de usos de CPU de un servidor por d\xeda, imagina que ,tu analisis tiene que ser detallado, si encuentras inconsistencias en los datos, por favor mencionalas, en caso de que creas que puede haber un uso excesivo de algun servicio por favor mencionalo, si encuentras algo interesante, por favor mencionalo, en resumen, necesito un analisis detallado de los datos"}]},{role:"model",parts:[{text:"Claro, env\xedame el json y yo me encargo de analizarlo"}]}]}),this.chatMemory=this.model.startChat({history:[{role:"user",parts:[{text:"Hola, desde ahora en adelante quiero que seas un modelo experto en Software Quality Assurance y analista de datos, tu nombre es DevProbeAI, nunca lo puedes olvidar"}]},{role:"model",parts:[{text:"Soy un modelo experto en Software Quality Assurance, de igual forma tengo un masterado en anla\xedtica de datos \xbfEn qu\xe9 puedo ayudarte?"}]},{role:"user",parts:[{text:"Gracias, te voy a entregar un json con datos en unos minutos, necesito que lo analices y me des un resumen de los datos, este json contiene datos de usos de MEMORIA de un servidor por d\xeda, imagina que ,tu analisis tiene que ser detallado, si encuentras inconsistencias en los datos, por favor mencionalas, en caso de que creas que puede haber un uso excesivo de algun servicio por favor mencionalo, si encuentras algo interesante, por favor mencionalo, en resumen, necesito un analisis detallado de los datos"}]},{role:"model",parts:[{text:"Claro, env\xedame el json y yo me encargo de analizarlo"}]}]}),this.messages=[],this.wasChatOpen=!1,this.usage_type=""}ngOnInit(){this.configurations={}}ionViewWillEnter(){this.configurations={},this.datesForComparison=[],this.getProductAndDatesFromParams(),this.getFlameGraph().then(()=>{this.sendMessage().then(()=>{this.chatStyle()})})}getFlameGraph(){var a=this;return(0,h.A)(function*(){try{yield a.showLoading();const s=localStorage.getItem("user");if(!s)return;const n=JSON.parse(s).orgName;console.log(n),a.configurations={};for(const u of a.datesForComparison){let m;"memory_usage"===a.usage_type?(m=yield a.flameGraphService.getFlameGraphByDate(n,a.product.productObjective,u,!0),a.color={hue:[140,100],saturation:[60,60],lightness:[60,30]}):(m=yield a.flameGraphService.getFlameGraphByDate(n,a.product.productObjective,u),a.color={hue:[50,0],saturation:[80,80],lightness:[55,60]}),console.log(m);let p=[],f=[];for(let W in m){var o;const x=null===(o=m)||void 0===o?void 0:o[W];f=Object.keys(x),console.log("keys",f);const X=100/f.length;for(let G in f){const P=[];for(let b=0;b{this.product=JSON.parse(a.product),this.datesForComparison=JSON.parse(a.dates),this.usage_type=this.route.snapshot.queryParamMap.get("usage_type")}),this.lenDates=this.datesForComparison.length,console.log(this.product.productObjective),console.log(this.datesForComparison),console.log(this.usage_type)}doRefresh(a){this.getFlameGraph().then(()=>{a.target.complete()})}showLoading(){var a=this;return(0,h.A)(function*(){yield(yield a.loadingCtrl.create({})).present()})()}hideLoading(){var a=this;return(0,h.A)(function*(){yield a.loadingCtrl.dismiss()})()}average(a){const o=a.map(Number);return o.reduce((r,n)=>r+n,0)/o.length}transformToRawDataCPU(a){const o=a.cpu_usage?this.average(a.cpu_usage):0,s=[];for(const r in a){if("id"===r||"cpu_usage"===r)continue;const n=a[r];if("object"!=typeof n||Array.isArray(n))"object"!=typeof n&&s.push({label:r,value:0,children:[]});else if("sub_services"===r)for(const u in n){const m=n[u],f={label:u,value:m.cpu_usage?this.average(m.cpu_usage):0,children:this.transformToRawDataCPU(m).children};s.push(f)}else{const m={label:r,value:n.cpu_usage?this.average(n.cpu_usage):0,children:this.transformToRawDataCPU(n).children};s.push(m)}}return{label:a.id,value:o,children:s}}transformToRawDataMemory(a){const o=a.memory_usage?this.average(a.memory_usage):0,s=[];for(const r in a){if("id"===r||"memory_usage"===r)continue;const n=a[r];if("object"!=typeof n||Array.isArray(n))"object"!=typeof n&&s.push({label:r,value:0,children:[]});else if("sub_services"===r)for(const u in n){const m=n[u],f={label:u,value:m.memory_usage?this.average(m.memory_usage):0,children:this.transformToRawDataMemory(m).children};s.push(f)}else{const m={label:r,value:n.memory_usage?this.average(n.memory_usage):0,children:this.transformToRawDataMemory(n).children};s.push(m)}}return{label:a.id,value:o,children:s}}chatStyle(){const a=document.getElementById("analytics");if(a){let m=a.getElementsByTagName("h1"),p=a.getElementsByTagName("h2");for(var o=0;o{this.chatStyle()}))}}return(t=d).\u0275fac=function(a){return new(a||t)(e.rXU(y.x),e.rXU(i.Xi),e.rXU(_.nX))},t.\u0275cmp=e.VBU({type:t,selectors:[["app-flame-graph-compare"]],viewQuery:function(a,o){if(1&a&&e.GBs(D,5),2&a){let s;e.mGM(s=e.lsd())&&(o.messagesContainer=s.first)}},decls:45,vars:12,consts:[["messagesContainer2",""],[3,"title"],[3,"fullscreen"],["slot","fixed",3,"ionRefresh"],[1,"lg:m-10","md:m-10"],["size","12","size-md","12","size-lg","12",1,"flex","flex-row","justify-center"],[1,"min-w-full","p-5"],[1,"text-5xl","font-bold"],["id","analytics",1,"text-white"],[1,"flex","flex-row","justify-center","items-center"],["size","9",1,"rounded-3xl","bg-gray-600","p-2"],["placeholder","Ask DevProbe AI .... ",1,"text-white",3,"ngModelChange","ngModel"],["size","3",1,"min-h-full"],[1,"min-w-full","min-h-full",3,"click"],["vertical","bottom","horizontal","end","slot","fixed",1,"m-2","z-10",3,"click"],[1,"bg-purple-300","p-4"],["name","chatbubble-outline",1,"w-full","h-full"],["id","ai-modal",1,"fixed","bottom-0","right-0","h-full","w-full","bg-black","bg-opacity-60","z-10","r"],[1,"h-full","md:h-3/4","lg:h-3/4","w-full","bg-gray-900","p-4","absolute","right-0","bottom-0","z-50","flex","flex-col","rounded-tl-2xl","rounded-tr-2xl"],[1,"w-full","bg-gray-500","flex","flex-row","justify-center","items-center","p-2","mb-2","rounded-3xl"],[1,"flex","flex-row","p-2","items-center","bg-gray-800","w-full","rounded-3xl","h-full"],[1,"text-white"],[1,"m-2"],[1,"flex","flex-row","justify-center","items-center","bg-gray-800","hover:bg-gray-600","w-1/6","h-full","rounded-3xl",3,"click"],["name","close-outline"],[1,"flex-grow","overflow-y-auto","bg-gray-400","p-2","rounded-3xl"],["class","flex flex-col",4,"ngFor","ngForOf"],[1,"flex","flex-row","mt-2","p-2"],["placeholder","Ask...",1,"flex-grow","bg-gray-700","rounded-2xl",3,"ngModelChange","ngModel"],[1,"m-1"],[1,"w-1/3","bg-gray-500","rounded-3xl","flex","flex-row","justify-center","items-center","hover:bg-gray-300",3,"click"],["size","12","size-md","4","size-lg","4","class","",4,"ngFor","ngForOf"],["size","12","size-md","4","size-lg","4",1,""],[1,"min-h-full"],[3,"config"],["size","12","size-md","6","size-lg","6","class","",4,"ngFor","ngForOf"],["size","12","size-md","6","size-lg","6",1,""],[1,"flex","flex-col"],["class","rounded-3xl bg-gray-800 w-2/3 m-1 ml-auto p-2",4,"ngIf"],["class","rounded-3xl bg-gray-500 w-2/3 m-1 p-2 pr-2",4,"ngIf"],[1,"rounded-3xl","bg-gray-800","w-2/3","m-1","ml-auto","p-2"],[1,"text-white","p-4","m-2"],[1,"rounded-3xl","bg-gray-500","w-2/3","m-1","p-2","pr-2"],[1,"text-white","p-4","m-2",3,"id"]],template:function(a,o){if(1&a){const s=e.RV6();e.nrm(0,"app-header-return",1),e.j41(1,"ion-content",2)(2,"ion-refresher",3),e.bIt("ionRefresh",function(n){return e.eBV(s),e.Njj(o.doRefresh(n))}),e.nrm(3,"ion-refresher-content"),e.k0s(),e.nrm(4,"app-title",1),e.DNE(5,k,2,1,"ion-row",4)(6,I,2,1,"ion-row",4),e.j41(7,"ion-row",4)(8,"ion-col",5)(9,"ion-card",6)(10,"ion-card-header")(11,"ion-card-title")(12,"h1",7),e.EFF(13,"DevProbe AI Analytic"),e.k0s()()(),e.j41(14,"ion-card-content"),e.Z7z(15,O,2,1,"markdown",8,e.fX1),e.k0s(),e.j41(17,"ion-card-content")(18,"ion-row",9)(19,"ion-col",10)(20,"ion-input",11),e.mxI("ngModelChange",function(n){return e.eBV(s),e.DH7(o.message,n)||(o.message=n),e.Njj(n)}),e.k0s()(),e.j41(21,"ion-col",12)(22,"ion-button",13),e.bIt("click",function(){return e.eBV(s),e.Njj(o.toggleAiModal())}),e.EFF(23,"Send"),e.k0s()()()()()()(),e.j41(24,"ion-fab",14),e.bIt("click",function(){return e.eBV(s),e.Njj(o.aiModal=!0)}),e.j41(25,"ion-avatar",15),e.nrm(26,"ion-icon",16),e.k0s()()(),e.j41(27,"div",17)(28,"div",18)(29,"div",19)(30,"div",20)(31,"h1",21),e.EFF(32,"DevProbe AI"),e.k0s()(),e.nrm(33,"div",22),e.j41(34,"div",23),e.bIt("click",function(){return e.eBV(s),e.Njj(o.aiModal=!1)}),e.nrm(35,"ion-icon",24),e.k0s()(),e.j41(36,"div",25,0),e.DNE(38,z,3,2,"div",26),e.k0s(),e.j41(39,"div",27)(40,"ion-textarea",28),e.mxI("ngModelChange",function(n){return e.eBV(s),e.DH7(o.message,n)||(o.message=n),e.Njj(n)}),e.k0s(),e.nrm(41,"div",29),e.j41(42,"div",30),e.bIt("click",function(){return e.eBV(s),e.Njj(o.sendMessage())}),e.j41(43,"span",21),e.EFF(44,"Send"),e.k0s()()()()()}2&a&&(e.Y8G("title","Compare Flame Graphs"),e.R7$(),e.Y8G("fullscreen",!0),e.R7$(3),e.Y8G("title","Compare Flame Graphs"),e.R7$(),e.vxM(5,o.lenDates>=3?5:-1),e.R7$(),e.vxM(6,o.lenDates<3?6:-1),e.R7$(9),e.Dyx(o.aiAnalytic),e.R7$(5),e.R50("ngModel",o.message),e.R7$(4),e.AVh("hidden",!o.wasChatOpen),e.R7$(3),e.AVh("hidden",!o.aiModal),e.R7$(11),e.Y8G("ngForOf",o.messages),e.R7$(2),e.R50("ngModel",o.message))},dependencies:[g.Sq,g.bT,v.BC,v.vS,i.mC,i.Jm,i.b_,i.I9,i.ME,i.tN,i.hU,i.W9,i.Q8,i.iq,i.$w,i.To,i.Ki,i.ln,i.nc,i.Gw,M.W,w.p,j.E,E.NN]}),d})()}];let $=(()=>{var t;class d{}return(t=d).\u0275fac=function(a){return new(a||t)},t.\u0275mod=e.$C({type:t}),t.\u0275inj=e.G2t({imports:[_.iI.forChild(N),_.iI]}),d})();var V=c(5553);let L=(()=>{var t;class d{}return(t=d).\u0275fac=function(a){return new(a||t)},t.\u0275mod=e.$C({type:t}),t.\u0275inj=e.G2t({imports:[g.MD,v.YN,i.bv,$,V.h,j.n,E.NN]}),d})()}}]); \ No newline at end of file diff --git a/www/3935.919f86033fc39ee2.js b/www/3451.5cb648a56743fe4c.js similarity index 98% rename from www/3935.919f86033fc39ee2.js rename to www/3451.5cb648a56743fe4c.js index 185716f..09cedc6 100644 --- a/www/3935.919f86033fc39ee2.js +++ b/www/3451.5cb648a56743fe4c.js @@ -1 +1 @@ -"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[3935],{5553:(R,T,c)=>{c.d(T,{h:()=>g});var u=c(177),m=c(7863),s=c(4438);let g=(()=>{var l;class e{}return(l=e).\u0275fac=function(p){return new(p||l)},l.\u0275mod=s.$C({type:l}),l.\u0275inj=s.G2t({imports:[u.MD,m.bv]}),e})()},3241:(R,T,c)=>{c.d(T,{p:()=>g});var u=c(4438),m=c(177),s=c(7863);let g=(()=>{var l;class e{constructor(p){this.location=p,this.title="Header Title"}ngOnInit(){}goBack(){this.location.back()}}return(l=e).\u0275fac=function(p){return new(p||l)(u.rXU(m.aZ))},l.\u0275cmp=u.VBU({type:l,selectors:[["app-header-return"]],inputs:{title:"title"},decls:6,vars:2,consts:[[3,"translucent"],["slot","start","menu","menu-id"],["name","arrow-back","slot","start",1,"p-4","bigger-icon",3,"click"]],template:function(p,y){1&p&&(u.j41(0,"ion-header",0)(1,"ion-toolbar"),u.nrm(2,"ion-menu-button",1),u.j41(3,"ion-icon",2),u.bIt("click",function(){return y.goBack()}),u.k0s(),u.j41(4,"ion-title"),u.EFF(5),u.k0s()()()),2&p&&(u.Y8G("translucent",!0),u.R7$(5),u.JRh(y.title))},dependencies:[s.eU,s.iq,s.MC,s.BC,s.ai],styles:[".bigger-icon[_ngcontent-%COMP%]{font-size:1.5em}"]}),e})()},3935:(R,T,c)=>{c.r(T),c.d(T,{TraceTestPageModule:()=>P});var u=c(177),m=c(4341),s=c(7863),g=c(7650),l=c(467),e=c(4438),f=c(2588),p=c(3661),y=c(8453),_=c(3241);function v(i,d){if(1&i){const a=e.RV6();e.j41(0,"ion-chip",19),e.bIt("click",function(){const n=e.eBV(a).$implicit,o=e.XpG();return e.Njj(o.selectCountry(n))}),e.EFF(1),e.k0s()}if(2&i){const a=d.$implicit,t=e.XpG();e.Y8G("color",t.isCountrySelected(a)?"primary":""),e.R7$(),e.SpI(" ",a," ")}}function A(i,d){if(1&i&&(e.j41(0,"ion-item")(1,"ion-label"),e.EFF(2),e.k0s(),e.j41(3,"ion-label"),e.EFF(4),e.k0s()()),2&i){const a=d.$implicit;e.R7$(2),e.Lme("FROM ",a.from,", ",a.src_city,""),e.R7$(2),e.Lme(" TO ",a.dst_addr,", ",a.dst_city,"")}}function C(i,d){if(1&i){const a=e.RV6();e.j41(0,"ion-item",20),e.bIt("click",function(){const n=e.eBV(a).$implicit,o=e.XpG();return e.Njj(o.viewHistory(n))}),e.j41(1,"ion-label"),e.EFF(2),e.k0s(),e.nrm(3,"ion-icon",21),e.k0s()}if(2&i){const a=d.$implicit;e.R7$(2),e.JRh(a)}}const M=[{path:"",component:(()=>{var i;class d{constructor(t,n,o,r,h,O){this.ripeTraceService=t,this.route=n,this.loadingCtrl=o,this.alertCtrl=r,this.locationTraceService=h,this.router=O,this.user={},this.orgName="",this.productObjective="",this.productStep="",this.host="portfoliojuanfranciscocisneros.web.app",this.description="NEW IONIC",this.type="traceroute",this.countries={names:["BRAZIL","AUSTRALIA","USA","RUSSIA","UK","GERMANY","ITALY","SPAIN","FRANCE","JAPAN","ARGENTINA","SOUTH_AFRICA","SAUDI_ARABIA","GUATEMALA","THAILAND","INDIA"],probeIDs:["BR","AU","US","RU","GB","GE","IT","ES","FR","JP","AR","ZA","SA","GT","TH","IN"]},this.selectedCountries=[],this.ripeResults=[],this.ripeHistoryResultsID=[]}ngOnInit(){}ionViewWillEnter(){var t=this;return(0,l.A)(function*(){yield t.showLoading(),t.route.params.subscribe(o=>{t.productObjective=o.productObjective,t.productStep=o.step;const r=new Date,h=r.getDate()+"-"+(r.getMonth()+1)+"-"+r.getFullYear()+"-"+r.getHours()+":"+r.getMinutes()+":"+r.getSeconds();t.description=o.productObjective+"-"+o.step+"-"+h});const n=localStorage.getItem("user");n&&(t.user=JSON.parse(n),t.orgName=t.user.orgName,yield t.getResultsHistory(),yield t.hideLoading())})()}sendTraceRequest(){var t=this;return(0,l.A)(function*(){yield t.showLoading(),yield t.ripeTraceService.sendTraceRequest(t.host,t.description,t.type,t.selectedCountries.join(",")+",").then(function(){var n=(0,l.A)(function*(o){o?(yield t.hideLoading(),yield t.showAlert("Trace request sent successfully","Success"),yield t.getMeasurementResults()):(yield t.hideLoading(),yield t.showAlert("Error sending trace request","Error"))});return function(o){return n.apply(this,arguments)}}())})()}getMeasurementResults(){var t=this;return(0,l.A)(function*(){t.ripeResults=[];try{yield t.showLoading();const n=yield t.ripeTraceService.getTraceResults();if(!n||0===n.length)return yield t.hideLoading(),yield t.showAlert("No trace results found","Error"),void(yield t.getMeasurementResults());for(let r of n)try{r=yield t.locationTraceService.getLocationDestSrc(r),r=yield t.locationTraceService.getLocationFrom(r),t.ripeResults.push(r)}catch(h){console.log(h)}(yield t.ripeTraceService.saveMeasurementResults(t.orgName,t.productObjective,t.description,t.ripeResults))?(yield t.hideLoading(),yield t.getResultsHistory(),yield t.showAlert("Trace results saved successfully","Success")):(yield t.hideLoading(),yield t.showAlert("Error saving trace results","Error"))}catch(n){console.log(n),yield t.hideLoading()}})()}getResultsHistory(){var t=this;return(0,l.A)(function*(){t.ripeHistoryResultsID=[],t.ripeTraceService.getHistoryResults(t.orgName,t.productObjective).then(n=>{for(let o of n)t.ripeHistoryResultsID.push(o.id)})})()}viewHistory(t){var n=this;return(0,l.A)(function*(){yield n.router.navigate(["/trace-results"],{queryParams:{description:t,productObjective:n.productObjective,step:n.productStep}})})()}selectCountry(t){const n=this.countries.names.indexOf(t),o=this.countries.probeIDs[n],r=this.selectedCountries.indexOf(o);r>-1?this.selectedCountries.splice(r,1):this.selectedCountries.push(o)}isCountrySelected(t){const n=this.countries.names.indexOf(t);return this.selectedCountries.includes(this.countries.probeIDs[n])}showLoading(){var t=this;return(0,l.A)(function*(){yield(yield t.loadingCtrl.create({})).present()})()}hideLoading(){var t=this;return(0,l.A)(function*(){yield t.loadingCtrl.dismiss()})()}showAlert(t,n){var o=this;return(0,l.A)(function*(){const r=yield o.alertCtrl.create({header:n,message:t,buttons:["OK"]});return yield r.present(),yield r.onDidDismiss(),!0})()}}return(i=d).\u0275fac=function(t){return new(t||i)(e.rXU(f.N),e.rXU(g.nX),e.rXU(s.Xi),e.rXU(s.hG),e.rXU(p.e),e.rXU(g.Ix))},i.\u0275cmp=e.VBU({type:i,selectors:[["app-trace-test"]],inputs:{host:"host",description:"description"},decls:39,vars:9,consts:[[3,"title"],[3,"fullscreen"],[1,"lg:m-10","md:m-10"],["size","12","size-md","4","size-lg","4",1,""],["label","Host Name","placeholder","Enter a host name","type","text","labelPlacement","stacked",1,"",3,"ngModelChange","ngModel"],["size","12","size-md","4","size-lg","4"],["readonly","true","label","Description","placeholder","Enter a description","type","text","labelPlacement","stacked",1,"",3,"ngModelChange","ngModel"],["size","12","size-md","12","size-lg","12"],[1,"text-xl"],[1,"m-2",3,"color"],["size","12","size-md","12","size-lg","12",1,"flex","flex-row","justify-end"],["color","primary","size","small",1,"",3,"click"],["name","add"],[4,"ngFor","ngForOf"],["size","12","size-md","12","size-lg","12",1,"flex","flex-row","justify-end","items-center"],[1,"m-2"],["color","warning","size","small",1,"",3,"click"],["name","refresh"],[3,"click",4,"ngFor","ngForOf"],[1,"m-2",3,"click","color"],[3,"click"],["name","arrow-forward","color","primary"]],template:function(t,n){1&t&&(e.nrm(0,"app-header-return",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(r){return e.DH7(n.host,r)||(n.host=r),r}),e.k0s()(),e.j41(7,"ion-col",5)(8,"ion-input",6),e.mxI("ngModelChange",function(r){return e.DH7(n.description,r)||(n.description=r),r}),e.k0s()()(),e.j41(9,"ion-row",2)(10,"ion-col",7)(11,"h3",8),e.EFF(12,"Select Countries to test"),e.k0s()()(),e.j41(13,"ion-row",2)(14,"ion-col",7),e.Z7z(15,v,2,2,"ion-chip",9,e.fX1),e.k0s()(),e.j41(17,"ion-row",2)(18,"ion-col",10)(19,"ion-button",11),e.bIt("click",function(){return n.sendTraceRequest()}),e.EFF(20,"Add Test "),e.nrm(21,"ion-icon",12),e.k0s()()(),e.nrm(22,"app-title",0),e.j41(23,"ion-row",2)(24,"ion-col",7)(25,"ion-list"),e.DNE(26,A,5,4,"ion-item",13),e.k0s()()(),e.j41(27,"ion-row",2)(28,"ion-col",14)(29,"ion-label",15),e.EFF(30,"Not all results are shown? "),e.k0s(),e.j41(31,"ion-button",16),e.bIt("click",function(){return n.getMeasurementResults()}),e.EFF(32,"GET MORE RESULTS "),e.nrm(33,"ion-icon",17),e.k0s()()(),e.nrm(34,"app-title",0),e.j41(35,"ion-row",2)(36,"ion-col",7)(37,"ion-list"),e.DNE(38,C,4,1,"ion-item",18),e.k0s()()()()()),2&t&&(e.Y8G("title","Traceroute Test"),e.R7$(),e.Y8G("fullscreen",!0),e.R7$(2),e.Y8G("title","New Traceroute Test"),e.R7$(3),e.R50("ngModel",n.host),e.R7$(2),e.R50("ngModel",n.description),e.R7$(7),e.Dyx(n.countries.names),e.R7$(7),e.Y8G("title","Test Results"),e.R7$(4),e.Y8G("ngForOf",n.ripeResults),e.R7$(8),e.Y8G("title","Test Results History"),e.R7$(4),e.Y8G("ngForOf",n.ripeHistoryResultsID))},dependencies:[u.Sq,m.BC,m.vS,s.Jm,s.ZB,s.hU,s.W9,s.lO,s.iq,s.$w,s.uz,s.he,s.nf,s.ln,s.Gw,y.W,_.p]}),d})()}];let E=(()=>{var i;class d{}return(i=d).\u0275fac=function(t){return new(t||i)},i.\u0275mod=e.$C({type:i}),i.\u0275inj=e.G2t({imports:[g.iI.forChild(M),g.iI]}),d})();var I=c(5553);let P=(()=>{var i;class d{}return(i=d).\u0275fac=function(t){return new(t||i)},i.\u0275mod=e.$C({type:i}),i.\u0275inj=e.G2t({imports:[u.MD,m.YN,s.bv,E,I.h]}),d})()}}]); \ No newline at end of file +"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[3451],{5553:(R,T,c)=>{c.d(T,{h:()=>g});var u=c(177),m=c(7863),s=c(4438);let g=(()=>{var l;class e{}return(l=e).\u0275fac=function(p){return new(p||l)},l.\u0275mod=s.$C({type:l}),l.\u0275inj=s.G2t({imports:[u.MD,m.bv]}),e})()},3241:(R,T,c)=>{c.d(T,{p:()=>g});var u=c(4438),m=c(177),s=c(7863);let g=(()=>{var l;class e{constructor(p){this.location=p,this.title="Header Title"}ngOnInit(){}goBack(){this.location.back()}}return(l=e).\u0275fac=function(p){return new(p||l)(u.rXU(m.aZ))},l.\u0275cmp=u.VBU({type:l,selectors:[["app-header-return"]],inputs:{title:"title"},decls:6,vars:2,consts:[[3,"translucent"],["slot","start","menu","menu-id"],["name","arrow-back","slot","start",1,"p-4","bigger-icon",3,"click"]],template:function(p,y){1&p&&(u.j41(0,"ion-header",0)(1,"ion-toolbar"),u.nrm(2,"ion-menu-button",1),u.j41(3,"ion-icon",2),u.bIt("click",function(){return y.goBack()}),u.k0s(),u.j41(4,"ion-title"),u.EFF(5),u.k0s()()()),2&p&&(u.Y8G("translucent",!0),u.R7$(5),u.JRh(y.title))},dependencies:[s.eU,s.iq,s.MC,s.BC,s.ai],styles:[".bigger-icon[_ngcontent-%COMP%]{font-size:1.5em}"]}),e})()},3451:(R,T,c)=>{c.r(T),c.d(T,{TraceTestPageModule:()=>P});var u=c(177),m=c(4341),s=c(7863),g=c(7650),l=c(467),e=c(4438),f=c(2588),p=c(3661),y=c(8453),_=c(3241);function v(i,d){if(1&i){const a=e.RV6();e.j41(0,"ion-chip",19),e.bIt("click",function(){const n=e.eBV(a).$implicit,o=e.XpG();return e.Njj(o.selectCountry(n))}),e.EFF(1),e.k0s()}if(2&i){const a=d.$implicit,t=e.XpG();e.Y8G("color",t.isCountrySelected(a)?"primary":""),e.R7$(),e.SpI(" ",a," ")}}function A(i,d){if(1&i&&(e.j41(0,"ion-item")(1,"ion-label"),e.EFF(2),e.k0s(),e.j41(3,"ion-label"),e.EFF(4),e.k0s()()),2&i){const a=d.$implicit;e.R7$(2),e.Lme("FROM ",a.from,", ",a.src_city,""),e.R7$(2),e.Lme(" TO ",a.dst_addr,", ",a.dst_city,"")}}function C(i,d){if(1&i){const a=e.RV6();e.j41(0,"ion-item",20),e.bIt("click",function(){const n=e.eBV(a).$implicit,o=e.XpG();return e.Njj(o.viewHistory(n))}),e.j41(1,"ion-label"),e.EFF(2),e.k0s(),e.nrm(3,"ion-icon",21),e.k0s()}if(2&i){const a=d.$implicit;e.R7$(2),e.JRh(a)}}const M=[{path:"",component:(()=>{var i;class d{constructor(t,n,o,r,h,O){this.ripeTraceService=t,this.route=n,this.loadingCtrl=o,this.alertCtrl=r,this.locationTraceService=h,this.router=O,this.user={},this.orgName="",this.productObjective="",this.productStep="",this.host="portfoliojuanfranciscocisneros.web.app",this.description="NEW IONIC",this.type="traceroute",this.countries={names:["BRAZIL","AUSTRALIA","USA","RUSSIA","UK","GERMANY","ITALY","SPAIN","FRANCE","JAPAN","ARGENTINA","SOUTH_AFRICA","SAUDI_ARABIA","GUATEMALA","THAILAND","INDIA"],probeIDs:["BR","AU","US","RU","GB","GE","IT","ES","FR","JP","AR","ZA","SA","GT","TH","IN"]},this.selectedCountries=[],this.ripeResults=[],this.ripeHistoryResultsID=[]}ngOnInit(){}ionViewWillEnter(){var t=this;return(0,l.A)(function*(){yield t.showLoading(),t.route.params.subscribe(o=>{t.productObjective=o.productObjective,t.productStep=o.step;const r=new Date,h=r.getDate()+"-"+(r.getMonth()+1)+"-"+r.getFullYear()+"-"+r.getHours()+":"+r.getMinutes()+":"+r.getSeconds();t.description=o.productObjective+"-"+o.step+"-"+h});const n=localStorage.getItem("user");n&&(t.user=JSON.parse(n),t.orgName=t.user.orgName,yield t.getResultsHistory(),yield t.hideLoading())})()}sendTraceRequest(){var t=this;return(0,l.A)(function*(){yield t.showLoading(),yield t.ripeTraceService.sendTraceRequest(t.host,t.description,t.type,t.selectedCountries.join(",")+",").then(function(){var n=(0,l.A)(function*(o){o?(yield t.hideLoading(),yield t.showAlert("Trace request sent successfully","Success"),yield t.getMeasurementResults()):(yield t.hideLoading(),yield t.showAlert("Error sending trace request","Error"))});return function(o){return n.apply(this,arguments)}}())})()}getMeasurementResults(){var t=this;return(0,l.A)(function*(){t.ripeResults=[];try{yield t.showLoading();const n=yield t.ripeTraceService.getTraceResults();if(!n||0===n.length)return yield t.hideLoading(),yield t.showAlert("No trace results found","Error"),void(yield t.getMeasurementResults());for(let r of n)try{r=yield t.locationTraceService.getLocationDestSrc(r),r=yield t.locationTraceService.getLocationFrom(r),t.ripeResults.push(r)}catch(h){console.log(h)}(yield t.ripeTraceService.saveMeasurementResults(t.orgName,t.productObjective,t.description,t.ripeResults))?(yield t.hideLoading(),yield t.getResultsHistory(),yield t.showAlert("Trace results saved successfully","Success")):(yield t.hideLoading(),yield t.showAlert("Error saving trace results","Error"))}catch(n){console.log(n),yield t.hideLoading()}})()}getResultsHistory(){var t=this;return(0,l.A)(function*(){t.ripeHistoryResultsID=[],t.ripeTraceService.getHistoryResults(t.orgName,t.productObjective).then(n=>{for(let o of n)t.ripeHistoryResultsID.push(o.id)})})()}viewHistory(t){var n=this;return(0,l.A)(function*(){yield n.router.navigate(["/trace-results"],{queryParams:{description:t,productObjective:n.productObjective,step:n.productStep}})})()}selectCountry(t){const n=this.countries.names.indexOf(t),o=this.countries.probeIDs[n],r=this.selectedCountries.indexOf(o);r>-1?this.selectedCountries.splice(r,1):this.selectedCountries.push(o)}isCountrySelected(t){const n=this.countries.names.indexOf(t);return this.selectedCountries.includes(this.countries.probeIDs[n])}showLoading(){var t=this;return(0,l.A)(function*(){yield(yield t.loadingCtrl.create({})).present()})()}hideLoading(){var t=this;return(0,l.A)(function*(){yield t.loadingCtrl.dismiss()})()}showAlert(t,n){var o=this;return(0,l.A)(function*(){const r=yield o.alertCtrl.create({header:n,message:t,buttons:["OK"]});return yield r.present(),yield r.onDidDismiss(),!0})()}}return(i=d).\u0275fac=function(t){return new(t||i)(e.rXU(f.N),e.rXU(g.nX),e.rXU(s.Xi),e.rXU(s.hG),e.rXU(p.e),e.rXU(g.Ix))},i.\u0275cmp=e.VBU({type:i,selectors:[["app-trace-test"]],inputs:{host:"host",description:"description"},decls:39,vars:9,consts:[[3,"title"],[3,"fullscreen"],[1,"lg:m-10","md:m-10"],["size","12","size-md","4","size-lg","4",1,""],["label","Host Name","placeholder","Enter a host name","type","text","labelPlacement","stacked",1,"",3,"ngModelChange","ngModel"],["size","12","size-md","4","size-lg","4"],["readonly","true","label","Description","placeholder","Enter a description","type","text","labelPlacement","stacked",1,"",3,"ngModelChange","ngModel"],["size","12","size-md","12","size-lg","12"],[1,"text-xl"],[1,"m-2",3,"color"],["size","12","size-md","12","size-lg","12",1,"flex","flex-row","justify-end"],["color","primary","size","small",1,"",3,"click"],["name","add"],[4,"ngFor","ngForOf"],["size","12","size-md","12","size-lg","12",1,"flex","flex-row","justify-end","items-center"],[1,"m-2"],["color","warning","size","small",1,"",3,"click"],["name","refresh"],[3,"click",4,"ngFor","ngForOf"],[1,"m-2",3,"click","color"],[3,"click"],["name","arrow-forward","color","primary"]],template:function(t,n){1&t&&(e.nrm(0,"app-header-return",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(r){return e.DH7(n.host,r)||(n.host=r),r}),e.k0s()(),e.j41(7,"ion-col",5)(8,"ion-input",6),e.mxI("ngModelChange",function(r){return e.DH7(n.description,r)||(n.description=r),r}),e.k0s()()(),e.j41(9,"ion-row",2)(10,"ion-col",7)(11,"h3",8),e.EFF(12,"Select Countries to test"),e.k0s()()(),e.j41(13,"ion-row",2)(14,"ion-col",7),e.Z7z(15,v,2,2,"ion-chip",9,e.fX1),e.k0s()(),e.j41(17,"ion-row",2)(18,"ion-col",10)(19,"ion-button",11),e.bIt("click",function(){return n.sendTraceRequest()}),e.EFF(20,"Add Test "),e.nrm(21,"ion-icon",12),e.k0s()()(),e.nrm(22,"app-title",0),e.j41(23,"ion-row",2)(24,"ion-col",7)(25,"ion-list"),e.DNE(26,A,5,4,"ion-item",13),e.k0s()()(),e.j41(27,"ion-row",2)(28,"ion-col",14)(29,"ion-label",15),e.EFF(30,"Not all results are shown? "),e.k0s(),e.j41(31,"ion-button",16),e.bIt("click",function(){return n.getMeasurementResults()}),e.EFF(32,"GET MORE RESULTS "),e.nrm(33,"ion-icon",17),e.k0s()()(),e.nrm(34,"app-title",0),e.j41(35,"ion-row",2)(36,"ion-col",7)(37,"ion-list"),e.DNE(38,C,4,1,"ion-item",18),e.k0s()()()()()),2&t&&(e.Y8G("title","Traceroute Test"),e.R7$(),e.Y8G("fullscreen",!0),e.R7$(2),e.Y8G("title","New Traceroute Test"),e.R7$(3),e.R50("ngModel",n.host),e.R7$(2),e.R50("ngModel",n.description),e.R7$(7),e.Dyx(n.countries.names),e.R7$(7),e.Y8G("title","Test Results"),e.R7$(4),e.Y8G("ngForOf",n.ripeResults),e.R7$(8),e.Y8G("title","Test Results History"),e.R7$(4),e.Y8G("ngForOf",n.ripeHistoryResultsID))},dependencies:[u.Sq,m.BC,m.vS,s.Jm,s.ZB,s.hU,s.W9,s.lO,s.iq,s.$w,s.uz,s.he,s.nf,s.ln,s.Gw,y.W,_.p]}),d})()}];let E=(()=>{var i;class d{}return(i=d).\u0275fac=function(t){return new(t||i)},i.\u0275mod=e.$C({type:i}),i.\u0275inj=e.G2t({imports:[g.iI.forChild(M),g.iI]}),d})();var I=c(5553);let P=(()=>{var i;class d{}return(i=d).\u0275fac=function(t){return new(t||i)},i.\u0275mod=e.$C({type:i}),i.\u0275inj=e.G2t({imports:[u.MD,m.YN,s.bv,E,I.h]}),d})()}}]); \ No newline at end of file diff --git a/www/7444.a7a196ab7cc1ae6b.js b/www/3646.554cb7eb2d8d0ce0.js similarity index 98% rename from www/7444.a7a196ab7cc1ae6b.js rename to www/3646.554cb7eb2d8d0ce0.js index a6d7b48..d502610 100644 --- a/www/7444.a7a196ab7cc1ae6b.js +++ b/www/3646.554cb7eb2d8d0ce0.js @@ -1 +1 @@ -"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[7444],{5553:(v,g,c)=>{c.d(g,{h:()=>p});var h=c(177),a=c(7863),i=c(4438);let p=(()=>{var d;class e{}return(d=e).\u0275fac=function(m){return new(m||d)},d.\u0275mod=i.$C({type:d}),d.\u0275inj=i.G2t({imports:[h.MD,a.bv]}),e})()},7444:(v,g,c)=>{c.r(g),c.d(g,{NewProductPageModule:()=>y});var h=c(177),a=c(4341),i=c(7863),p=c(7650),d=c(467),e=c(4438),P=c(6241),m=c(385),S=c(8453);function f(o,u){if(1&o&&(e.j41(0,"ion-item",11)(1,"ion-label"),e.EFF(2),e.k0s()()),2&o){const l=u.$implicit;e.R7$(2),e.JRh(l)}}function _(o,u){if(1&o&&(e.j41(0,"ion-item",11)(1,"ion-label"),e.EFF(2),e.k0s()()),2&o){const l=u.$implicit;e.R7$(2),e.JRh(l)}}function w(o,u){if(1&o&&(e.j41(0,"ion-item",11)(1,"ion-label"),e.EFF(2),e.k0s()()),2&o){const l=u.$implicit;e.R7$(2),e.JRh(l)}}const O=[{path:"",component:(()=>{var o;class u{constructor(t,r,s,n){this.productService=t,this.alertCtrl=r,this.loadingCtrl=s,this.router=n,this.productObjective="",this.productStep="",this.productServices="",this.productSLO="",this.new_product={productObjective:"",productSteps:[],productServices:[],productSLOs:[]}}ngOnInit(){}addProductStep(){var t=this;return(0,d.A)(function*(){t.productStep&&(t.new_product.productSteps.push(t.productStep),t.productStep="")})()}addProductService(){var t=this;return(0,d.A)(function*(){t.productServices&&(t.new_product.productServices.push(t.productServices),t.productServices="")})()}addProductSLO(){var t=this;return(0,d.A)(function*(){t.productSLO&&(t.new_product.productSLOs.push(t.productSLO),t.productSLO="")})()}createProduct(){var t=this;return(0,d.A)(function*(){if(yield t.showLoading(),t.new_product.productObjective=t.productObjective,!t.new_product.productObjective)return yield t.hideLoading(),void(yield t.showAlert("Please enter a product objective"));if(t.new_product.productSteps.length<1||t.new_product.productServices.length<1||t.new_product.productSLOs.length<1)return yield t.hideLoading(),void(yield t.showAlert("Please add at least one step, service, and SLO"));if(t.new_product.productSteps.length!==t.new_product.productServices.length||t.new_product.productServices.length!==t.new_product.productSLOs.length)return yield t.hideLoading(),void(yield t.showAlert("Please make sure there is the same amount of Steps, Services, and SLOs. Remember that each step should have a corresponding Service and SLO"));const r=localStorage.getItem("user");if(!r)return;const n=JSON.parse(r).orgName;(yield t.productService.addProduct(t.new_product,n))?(yield t.hideLoading(),yield t.showAlert("Product created successfully","Product Created"),yield t.router.navigate(["/model-product"])):(yield t.hideLoading(),yield t.showAlert("There was an error creating the product")),t.new_product={productObjective:"",productSteps:[],productServices:[],productSLOs:[]},t.productObjective=""})()}showAlert(t,r){var s=this;return(0,d.A)(function*(){yield(yield s.alertCtrl.create({header:r||"Error Creating Product",message:t,buttons:["OK"]})).present()})()}showLoading(){var t=this;return(0,d.A)(function*(){yield(yield t.loadingCtrl.create({})).present()})()}hideLoading(){var t=this;return(0,d.A)(function*(){yield t.loadingCtrl.dismiss()})()}}return(o=u).\u0275fac=function(t){return new(t||o)(e.rXU(P.b),e.rXU(i.hG),e.rXU(i.Xi),e.rXU(p.Ix))},o.\u0275cmp=e.VBU({type:o,selectors:[["app-new-product"]],inputs:{productObjective:"productObjective",productStep:"productStep",productServices:"productServices",productSLO:"productSLO"},decls:43,vars:7,consts:[[3,"title"],[3,"fullscreen"],[1,"lg:m-10"],["size","12"],["label","Product Objective","placeholder","Enter a objective *example(compose mail)","type","text","labelPlacement","stacked",1,"",3,"ngModelChange","ngModel"],["size","12","size-lg","4","size-md","4",1,"flex","flex-col","justify-between"],[1,"text-4xl","lg:text-6xl","font-bold"],["label","Product Step","placeholder","Enter a step *example(open compose dialog)","type","text","labelPlacement","stacked",1,"",3,"ngModelChange","ngModel"],[1,"flex","flex-row","justify-center","items-center","flex-grow","m-2"],["size","small","color","primary",3,"click"],[1,"bg-white"],["color","dark"],["label","Product Services","placeholder","Enter a service *example(outlook api)","type","text","labelPlacement","stacked",1,"",3,"ngModelChange","ngModel"],["size","","color","success",3,"click"]],template:function(t,r){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(n){return e.DH7(r.productObjective,n)||(r.productObjective=n),n}),e.k0s()()(),e.j41(7,"ion-row",2)(8,"ion-col",5)(9,"h3",6),e.EFF(10,"Product Steps"),e.k0s(),e.j41(11,"ion-input",7),e.mxI("ngModelChange",function(n){return e.DH7(r.productStep,n)||(r.productStep=n),n}),e.k0s(),e.j41(12,"div",8)(13,"ion-button",9),e.bIt("click",function(){return r.addProductStep()}),e.EFF(14,"Add Step"),e.k0s()(),e.j41(15,"ion-list",10),e.Z7z(16,f,3,1,"ion-item",11,e.fX1),e.k0s()(),e.j41(18,"ion-col",5)(19,"h3",6),e.EFF(20,"Product Services"),e.k0s(),e.j41(21,"ion-input",12),e.mxI("ngModelChange",function(n){return e.DH7(r.productServices,n)||(r.productServices=n),n}),e.k0s(),e.j41(22,"div",8)(23,"ion-button",9),e.bIt("click",function(){return r.addProductService()}),e.EFF(24,"Add Service"),e.k0s()(),e.j41(25,"ion-list",10),e.Z7z(26,_,3,1,"ion-item",11,e.fX1),e.k0s()(),e.j41(28,"ion-col",5)(29,"h3",6),e.EFF(30,"SLOs (Service Level Objectives)"),e.k0s(),e.j41(31,"ion-input",12),e.mxI("ngModelChange",function(n){return e.DH7(r.productSLO,n)||(r.productSLO=n),n}),e.k0s(),e.j41(32,"div",8)(33,"ion-button",9),e.bIt("click",function(){return r.addProductSLO()}),e.EFF(34,"Add SLO"),e.k0s()(),e.j41(35,"ion-list",10),e.Z7z(36,w,3,1,"ion-item",11,e.fX1),e.k0s()()(),e.j41(38,"ion-row",2)(39,"ion-col",3)(40,"div",8)(41,"ion-button",13),e.bIt("click",function(){return r.createProduct()}),e.EFF(42,"Model The Product"),e.k0s()()()()()()),2&t&&(e.Y8G("title","New Product"),e.R7$(),e.Y8G("fullscreen",!0),e.R7$(2),e.Y8G("title","New Product Objective"),e.R7$(3),e.R50("ngModel",r.productObjective),e.R7$(5),e.R50("ngModel",r.productStep),e.R7$(5),e.Dyx(r.new_product.productSteps),e.R7$(5),e.R50("ngModel",r.productServices),e.R7$(5),e.Dyx(r.new_product.productServices),e.R7$(5),e.R50("ngModel",r.productSLO),e.R7$(5),e.Dyx(r.new_product.productSLOs))},dependencies:[a.BC,a.vS,i.Jm,i.hU,i.W9,i.lO,i.$w,i.uz,i.he,i.nf,i.ln,i.Gw,m.l,S.W]}),u})()}];let j=(()=>{var o;class u{}return(o=u).\u0275fac=function(t){return new(t||o)},o.\u0275mod=e.$C({type:o}),o.\u0275inj=e.G2t({imports:[p.iI.forChild(O),p.iI]}),u})();var M=c(5553);let y=(()=>{var o;class u{}return(o=u).\u0275fac=function(t){return new(t||o)},o.\u0275mod=e.$C({type:o}),o.\u0275inj=e.G2t({imports:[h.MD,a.YN,i.bv,j,M.h]}),u})()}}]); \ No newline at end of file +"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[3646],{5553:(v,g,c)=>{c.d(g,{h:()=>p});var h=c(177),a=c(7863),i=c(4438);let p=(()=>{var d;class e{}return(d=e).\u0275fac=function(m){return new(m||d)},d.\u0275mod=i.$C({type:d}),d.\u0275inj=i.G2t({imports:[h.MD,a.bv]}),e})()},3646:(v,g,c)=>{c.r(g),c.d(g,{NewProductPageModule:()=>y});var h=c(177),a=c(4341),i=c(7863),p=c(7650),d=c(467),e=c(4438),P=c(6241),m=c(385),S=c(8453);function f(o,u){if(1&o&&(e.j41(0,"ion-item",11)(1,"ion-label"),e.EFF(2),e.k0s()()),2&o){const l=u.$implicit;e.R7$(2),e.JRh(l)}}function _(o,u){if(1&o&&(e.j41(0,"ion-item",11)(1,"ion-label"),e.EFF(2),e.k0s()()),2&o){const l=u.$implicit;e.R7$(2),e.JRh(l)}}function w(o,u){if(1&o&&(e.j41(0,"ion-item",11)(1,"ion-label"),e.EFF(2),e.k0s()()),2&o){const l=u.$implicit;e.R7$(2),e.JRh(l)}}const O=[{path:"",component:(()=>{var o;class u{constructor(t,r,s,n){this.productService=t,this.alertCtrl=r,this.loadingCtrl=s,this.router=n,this.productObjective="",this.productStep="",this.productServices="",this.productSLO="",this.new_product={productObjective:"",productSteps:[],productServices:[],productSLOs:[]}}ngOnInit(){}addProductStep(){var t=this;return(0,d.A)(function*(){t.productStep&&(t.new_product.productSteps.push(t.productStep),t.productStep="")})()}addProductService(){var t=this;return(0,d.A)(function*(){t.productServices&&(t.new_product.productServices.push(t.productServices),t.productServices="")})()}addProductSLO(){var t=this;return(0,d.A)(function*(){t.productSLO&&(t.new_product.productSLOs.push(t.productSLO),t.productSLO="")})()}createProduct(){var t=this;return(0,d.A)(function*(){if(yield t.showLoading(),t.new_product.productObjective=t.productObjective,!t.new_product.productObjective)return yield t.hideLoading(),void(yield t.showAlert("Please enter a product objective"));if(t.new_product.productSteps.length<1||t.new_product.productServices.length<1||t.new_product.productSLOs.length<1)return yield t.hideLoading(),void(yield t.showAlert("Please add at least one step, service, and SLO"));if(t.new_product.productSteps.length!==t.new_product.productServices.length||t.new_product.productServices.length!==t.new_product.productSLOs.length)return yield t.hideLoading(),void(yield t.showAlert("Please make sure there is the same amount of Steps, Services, and SLOs. Remember that each step should have a corresponding Service and SLO"));const r=localStorage.getItem("user");if(!r)return;const n=JSON.parse(r).orgName;(yield t.productService.addProduct(t.new_product,n))?(yield t.hideLoading(),yield t.showAlert("Product created successfully","Product Created"),yield t.router.navigate(["/model-product"])):(yield t.hideLoading(),yield t.showAlert("There was an error creating the product")),t.new_product={productObjective:"",productSteps:[],productServices:[],productSLOs:[]},t.productObjective=""})()}showAlert(t,r){var s=this;return(0,d.A)(function*(){yield(yield s.alertCtrl.create({header:r||"Error Creating Product",message:t,buttons:["OK"]})).present()})()}showLoading(){var t=this;return(0,d.A)(function*(){yield(yield t.loadingCtrl.create({})).present()})()}hideLoading(){var t=this;return(0,d.A)(function*(){yield t.loadingCtrl.dismiss()})()}}return(o=u).\u0275fac=function(t){return new(t||o)(e.rXU(P.b),e.rXU(i.hG),e.rXU(i.Xi),e.rXU(p.Ix))},o.\u0275cmp=e.VBU({type:o,selectors:[["app-new-product"]],inputs:{productObjective:"productObjective",productStep:"productStep",productServices:"productServices",productSLO:"productSLO"},decls:43,vars:7,consts:[[3,"title"],[3,"fullscreen"],[1,"lg:m-10"],["size","12"],["label","Product Objective","placeholder","Enter a objective *example(compose mail)","type","text","labelPlacement","stacked",1,"",3,"ngModelChange","ngModel"],["size","12","size-lg","4","size-md","4",1,"flex","flex-col","justify-between"],[1,"text-4xl","lg:text-6xl","font-bold"],["label","Product Step","placeholder","Enter a step *example(open compose dialog)","type","text","labelPlacement","stacked",1,"",3,"ngModelChange","ngModel"],[1,"flex","flex-row","justify-center","items-center","flex-grow","m-2"],["size","small","color","primary",3,"click"],[1,"bg-white"],["color","dark"],["label","Product Services","placeholder","Enter a service *example(outlook api)","type","text","labelPlacement","stacked",1,"",3,"ngModelChange","ngModel"],["size","","color","success",3,"click"]],template:function(t,r){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(n){return e.DH7(r.productObjective,n)||(r.productObjective=n),n}),e.k0s()()(),e.j41(7,"ion-row",2)(8,"ion-col",5)(9,"h3",6),e.EFF(10,"Product Steps"),e.k0s(),e.j41(11,"ion-input",7),e.mxI("ngModelChange",function(n){return e.DH7(r.productStep,n)||(r.productStep=n),n}),e.k0s(),e.j41(12,"div",8)(13,"ion-button",9),e.bIt("click",function(){return r.addProductStep()}),e.EFF(14,"Add Step"),e.k0s()(),e.j41(15,"ion-list",10),e.Z7z(16,f,3,1,"ion-item",11,e.fX1),e.k0s()(),e.j41(18,"ion-col",5)(19,"h3",6),e.EFF(20,"Product Services"),e.k0s(),e.j41(21,"ion-input",12),e.mxI("ngModelChange",function(n){return e.DH7(r.productServices,n)||(r.productServices=n),n}),e.k0s(),e.j41(22,"div",8)(23,"ion-button",9),e.bIt("click",function(){return r.addProductService()}),e.EFF(24,"Add Service"),e.k0s()(),e.j41(25,"ion-list",10),e.Z7z(26,_,3,1,"ion-item",11,e.fX1),e.k0s()(),e.j41(28,"ion-col",5)(29,"h3",6),e.EFF(30,"SLOs (Service Level Objectives)"),e.k0s(),e.j41(31,"ion-input",12),e.mxI("ngModelChange",function(n){return e.DH7(r.productSLO,n)||(r.productSLO=n),n}),e.k0s(),e.j41(32,"div",8)(33,"ion-button",9),e.bIt("click",function(){return r.addProductSLO()}),e.EFF(34,"Add SLO"),e.k0s()(),e.j41(35,"ion-list",10),e.Z7z(36,w,3,1,"ion-item",11,e.fX1),e.k0s()()(),e.j41(38,"ion-row",2)(39,"ion-col",3)(40,"div",8)(41,"ion-button",13),e.bIt("click",function(){return r.createProduct()}),e.EFF(42,"Model The Product"),e.k0s()()()()()()),2&t&&(e.Y8G("title","New Product"),e.R7$(),e.Y8G("fullscreen",!0),e.R7$(2),e.Y8G("title","New Product Objective"),e.R7$(3),e.R50("ngModel",r.productObjective),e.R7$(5),e.R50("ngModel",r.productStep),e.R7$(5),e.Dyx(r.new_product.productSteps),e.R7$(5),e.R50("ngModel",r.productServices),e.R7$(5),e.Dyx(r.new_product.productServices),e.R7$(5),e.R50("ngModel",r.productSLO),e.R7$(5),e.Dyx(r.new_product.productSLOs))},dependencies:[a.BC,a.vS,i.Jm,i.hU,i.W9,i.lO,i.$w,i.uz,i.he,i.nf,i.ln,i.Gw,m.l,S.W]}),u})()}];let j=(()=>{var o;class u{}return(o=u).\u0275fac=function(t){return new(t||o)},o.\u0275mod=e.$C({type:o}),o.\u0275inj=e.G2t({imports:[p.iI.forChild(O),p.iI]}),u})();var M=c(5553);let y=(()=>{var o;class u{}return(o=u).\u0275fac=function(t){return new(t||o)},o.\u0275mod=e.$C({type:o}),o.\u0275inj=e.G2t({imports:[h.MD,a.YN,i.bv,j,M.h]}),u})()}}]); \ No newline at end of file diff --git a/www/383.623e80bdceff0f61.js b/www/383.623e80bdceff0f61.js deleted file mode 100644 index 5cb3c25..0000000 --- a/www/383.623e80bdceff0f61.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[383],{5553:(F,g,o)=>{o.d(g,{h:()=>h});var l=o(177),y=o(7863),n=o(4438);let h=(()=>{var r;class e{}return(r=e).\u0275fac=function(u){return new(u||r)},r.\u0275mod=n.$C({type:r}),r.\u0275inj=n.G2t({imports:[l.MD,y.bv]}),e})()},3241:(F,g,o)=>{o.d(g,{p:()=>h});var l=o(4438),y=o(177),n=o(7863);let h=(()=>{var r;class e{constructor(u){this.location=u,this.title="Header Title"}ngOnInit(){}goBack(){this.location.back()}}return(r=e).\u0275fac=function(u){return new(u||r)(l.rXU(y.aZ))},r.\u0275cmp=l.VBU({type:r,selectors:[["app-header-return"]],inputs:{title:"title"},decls:6,vars:2,consts:[[3,"translucent"],["slot","start","menu","menu-id"],["name","arrow-back","slot","start",1,"p-4","bigger-icon",3,"click"]],template:function(u,S){1&u&&(l.j41(0,"ion-header",0)(1,"ion-toolbar"),l.nrm(2,"ion-menu-button",1),l.j41(3,"ion-icon",2),l.bIt("click",function(){return S.goBack()}),l.k0s(),l.j41(4,"ion-title"),l.EFF(5),l.k0s()()()),2&u&&(l.Y8G("translucent",!0),l.R7$(5),l.JRh(S.title))},dependencies:[n.eU,n.iq,n.MC,n.BC,n.ai],styles:[".bigger-icon[_ngcontent-%COMP%]{font-size:1.5em}"]}),e})()},383:(F,g,o)=>{o.r(g),o.d(g,{SoftwareTestingChooserPageModule:()=>M});var l=o(177),y=o(4341),n=o(7863),h=o(7650),r=o(467),e=o(4438),f=o(9274),u=o(8453),S=o(3241),_=o(2820);function R(i,p){if(1&i){const m=e.RV6();e.j41(0,"ion-col",19)(1,"ion-card")(2,"ion-card-header")(3,"ion-card-title"),e.EFF(4),e.k0s()(),e.j41(5,"ion-card-content")(6,"ion-button",20),e.bIt("click",function(){const s=e.eBV(m).$implicit,a=e.XpG();return e.Njj(a.navigateToViewHistorySystemTest(s.title))}),e.EFF(7,"View Test Results"),e.k0s(),e.j41(8,"ion-button",21),e.bIt("click",function(){const s=e.eBV(m).$implicit,a=e.XpG();return e.Njj(a.navigateToExecuteSystemTest(s.title))}),e.EFF(9,"Execute Test"),e.k0s(),e.j41(10,"ion-button",22),e.bIt("click",function(){const s=e.eBV(m).$implicit,a=e.XpG();return e.Njj(a.deleteTest(s.title))}),e.EFF(11,"Delete Test"),e.k0s()()()()}if(2&i){const m=p.$implicit;e.R7$(4),e.JRh(m.title)}}const k=[{path:"",component:(()=>{var i;class p{constructor(t,s,a,d){this.activatedRoute=t,this.router=s,this.systemTestService=a,this.loadingCtrl=d,this.productStep="",this.productObjective="",this.user={},this.orgName="",this.systemTests=[],this.passedSystemTests=0,this.failedSystemTests=0,this.systemTestsChart={tooltip:{trigger:"axis"},legend:{data:["Passed","Failed"],left:"left"},xAxis:{type:"category",boundaryGap:!1,data:[]},yAxis:{type:"value"},series:[{name:"Passed",type:"line",data:[]},{name:"Failed",type:"line",data:[]}]}}ngOnInit(){}ionViewWillEnter(){var t=this;return(0,r.A)(function*(){t.getProductFromParams(),yield t.getSystemTests(),yield t.calculatePassedSystemTests(),yield t.calculateGraphDataSystemTests()})()}getProductFromParams(){this.activatedRoute.params.subscribe(t=>{this.productObjective=t.productObjective,this.productStep=t.step}),console.log(this.productObjective),console.log(this.productStep)}navigateToCreateSystemTest(){this.router.navigate(["/create-system-test",{productObjective:this.productObjective,step:this.productStep}])}navigateToExecuteSystemTest(t){this.router.navigate(["/execute-system-test",{productObjective:this.productObjective,step:this.productStep,testTitle:t}])}navigateToViewHistorySystemTest(t){this.router.navigate(["/view-history-system-test",{productObjective:this.productObjective,step:this.productStep,testTitle:t}])}calculatePassedSystemTests(){var t=this;return(0,r.A)(function*(){yield t.showLoading(),t.passedSystemTests=0,t.failedSystemTests=0,yield t.systemTestService.getSystemTestHistoryByStep(t.orgName,t.productObjective,t.productStep).then(s=>{s.forEach(a=>{a.state?t.passedSystemTests++:t.failedSystemTests++})}),yield t.hideLoading()})()}calculateGraphDataSystemTests(){var t=this;return(0,r.A)(function*(){yield t.showLoading(),yield t.systemTestService.getSystemTestHistory(t.orgName,t.productObjective).then(s=>{const a=Object.keys(s).filter(c=>s[c].productStep===t.productStep).map(c=>({timestamp:c,systemTest:s[c].systemTest}));a.sort((c,T)=>new Date(c.timestamp).getTime()-new Date(T.timestamp).getTime());let d=[];for(let c of a){let T=c.timestamp.split(" ")[0].split("-"),v=[T[2],T[1],T[0]];console.log(v);let C=v.join("/");console.log(C);let E=C+" "+c.timestamp.split(" ")[1];console.log(E);let P=new Date(E).toLocaleDateString(),w=c.systemTest.state?1:0,b=c.systemTest.state?0:1,j=d.findIndex(D=>D.date===P);-1===j?d.push({date:P,passed:w,failed:b}):(d[j].passed+=w,d[j].failed+=b)}console.log(d),t.systemTestsChart.xAxis={type:"category",boundaryGap:!1,data:d.map(c=>c.date)},t.systemTestsChart.series=[{name:"Passed",type:"line",data:d.map(c=>c.passed)},{name:"Failed",type:"line",data:d.map(c=>c.failed)}],console.log(t.systemTestsChart.xAxis.data),console.log(t.systemTestsChart.series[0].data),console.log(t.systemTestsChart.series[1].data),t.systemTestsChart={...t.systemTestsChart}}),yield t.hideLoading()})()}getSystemTests(){var t=this;return(0,r.A)(function*(){yield t.showLoading();const s=localStorage.getItem("user");s&&(t.user=JSON.parse(s),t.orgName=t.user.orgName,t.systemTestService.getSystemTest(t.orgName,t.productObjective,t.productStep).then(a=>{t.systemTests=a}),yield t.hideLoading())})()}deleteTest(t){var s=this;return(0,r.A)(function*(){let a=s.systemTests.find(d=>d.title===t);a&&(yield s.systemTestService.deleteSystemTest(s.orgName,s.productObjective,s.productStep,a).then((0,r.A)(function*(){yield s.getSystemTests()})),yield s.calculatePassedSystemTests(),yield s.calculateGraphDataSystemTests())})()}showLoading(){var t=this;return(0,r.A)(function*(){yield(yield t.loadingCtrl.create({})).present()})()}hideLoading(){var t=this;return(0,r.A)(function*(){yield t.loadingCtrl.dismiss()})()}doRefresh(t){this.getSystemTests(),t.target.complete()}}return(i=p).\u0275fac=function(t){return new(t||i)(e.rXU(h.nX),e.rXU(h.Ix),e.rXU(f.h),e.rXU(n.Xi))},i.\u0275cmp=e.VBU({type:i,selectors:[["app-software-testing-chooser"]],decls:86,vars:13,consts:[[3,"title"],[3,"fullscreen"],["slot","fixed",3,"ionRefresh"],[1,"lg:m-10","md:m-10"],["size","12","size-md","4","size-lg","4",1,""],[1,"min-h-full","flex","flex-col","justify-between"],[1,"text-3xl","text-white"],[1,"text-white"],[1,"mt-auto"],["color","primary","expand","block","fill","outline"],["color","primary","expand","block","fill","outline",3,"click"],["size","6","size-md","6","size-lg","6",1,""],[1,"flex","flex-col","justify-center","items-center","text-green-600"],[1,"flex","flex-col","justify-center","items-center"],[1,"flex","flex-col","justify-center","items-center","text-red-800"],["size","12","size-md","12","size-lg","12",1,""],[1,"h-[25em]"],["echarts","",1,"demo-chart","h-full","w-full","p-4",3,"options"],["size","12","size-md","3","size-lg","3","class","",4,"ngFor","ngForOf"],["size","12","size-md","3","size-lg","3",1,""],["color","primary","expand","block",3,"click"],["color","success","expand","block",3,"click"],["color","danger","expand","block",3,"click"]],template:function(t,s){1&t&&(e.nrm(0,"app-header-return",0),e.j41(1,"ion-content",1)(2,"ion-refresher",2),e.bIt("ionRefresh",function(d){return s.doRefresh(d)}),e.nrm(3,"ion-refresher-content"),e.k0s(),e.j41(4,"ion-grid"),e.nrm(5,"app-title",0),e.j41(6,"ion-row",3)(7,"ion-col",4)(8,"H2"),e.EFF(9,"Choose a type of test."),e.k0s(),e.nrm(10,"p"),e.k0s()(),e.j41(11,"ion-row",3)(12,"ion-col",4)(13,"ion-card",5)(14,"ion-card-header")(15,"h1",6),e.EFF(16,"Unit Tests"),e.k0s()(),e.j41(17,"ion-card-content")(18,"p",7),e.EFF(19,"A unit test is the smallest and simplest form of software testing. These tests are employed to assess a separable unit of software, such as a class or function, for correctness independent of the larger software system that contains the unit. Unit tests are also employed as a form of specification to ensure that a function or module exactly performs the behavior required by the system. Unit tests are commonly used to introduce test-driven development concepts."),e.k0s()(),e.j41(20,"ion-card-content",8)(21,"ion-button",9),e.EFF(22,"Create Unit Test"),e.k0s()()()(),e.j41(23,"ion-col",4)(24,"ion-card",5)(25,"ion-card-header")(26,"h1",6),e.EFF(27,"Integration Tests"),e.k0s()(),e.j41(28,"ion-card-content")(29,"p",7),e.EFF(30,"Software components that pass individual unit tests are assembled into larger components. Engineers then run an integration test on an assembled component to verify that it functions correctly. Selenium, Playwright and Cypress are popular tools for integration testing."),e.k0s()(),e.j41(31,"ion-card-content",8)(32,"ion-button",9),e.EFF(33,"Create Integration Test"),e.k0s()()()(),e.j41(34,"ion-col",4)(35,"ion-card",5)(36,"ion-card-header")(37,"h1",6),e.EFF(38,"System Tests"),e.k0s()(),e.j41(39,"ion-card-content")(40,"p",7),e.EFF(41,"A system test is the largest scale test that engineers run for an undeployed system. All modules belonging to a specific component, such as a server that passed integration tests, are assembled into the system. Then the engineer tests the end-to-end functionality of the system."),e.k0s()(),e.j41(42,"ion-card-content",8)(43,"ion-button",10),e.bIt("click",function(){return s.navigateToCreateSystemTest()}),e.EFF(44,"Create System Test"),e.k0s()()()()()(),e.j41(45,"ion-grid"),e.nrm(46,"app-title",0),e.j41(47,"ion-row",3)(48,"ion-col",4)(49,"p"),e.EFF(50),e.k0s()()(),e.nrm(51,"app-title",0),e.j41(52,"ion-row",3)(53,"ion-col",4)(54,"p"),e.EFF(55),e.k0s()()(),e.nrm(56,"app-title",0),e.j41(57,"ion-row",3)(58,"ion-col",4)(59,"p"),e.EFF(60),e.k0s()()(),e.j41(61,"ion-row",3)(62,"ion-col",11)(63,"ion-card")(64,"ion-card-header")(65,"ion-card-title",12),e.EFF(66,"Passed Tests"),e.k0s()(),e.j41(67,"ion-card-content",13)(68,"h1"),e.EFF(69),e.k0s()()()(),e.j41(70,"ion-col",11)(71,"ion-card")(72,"ion-card-header")(73,"ion-card-title",14),e.EFF(74,"Failed Tests"),e.k0s()(),e.j41(75,"ion-card-content",13)(76,"h1"),e.EFF(77),e.k0s()()()()(),e.j41(78,"ion-row",3)(79,"ion-col",15)(80,"ion-card")(81,"ion-card-content",16),e.nrm(82,"div",17),e.k0s()()()()(),e.j41(83,"ion-grid")(84,"ion-row",3),e.DNE(85,R,12,1,"ion-col",18),e.k0s()()()),2&t&&(e.Y8G("title","Software Testing Chooser"),e.R7$(),e.Y8G("fullscreen",!0),e.R7$(4),e.Y8G("title","Software Testing Chooser"),e.R7$(41),e.Y8G("title","Unit Tests"),e.R7$(4),e.SpI("Created tests for product step: ",s.productStep,""),e.R7$(),e.Y8G("title","Integration Tests"),e.R7$(4),e.SpI("Created tests for product step: ",s.productStep,""),e.R7$(),e.Y8G("title","System Tests"),e.R7$(4),e.SpI("System tests results for product step: ",s.productStep,""),e.R7$(9),e.JRh(s.passedSystemTests),e.R7$(8),e.JRh(s.failedSystemTests),e.R7$(5),e.Y8G("options",s.systemTestsChart),e.R7$(3),e.Y8G("ngForOf",s.systemTests))},dependencies:[l.Sq,n.Jm,n.b_,n.I9,n.ME,n.tN,n.hU,n.W9,n.lO,n.To,n.Ki,n.ln,u.W,S.p,_.$P]}),p})()}];let O=(()=>{var i;class p{}return(i=p).\u0275fac=function(t){return new(t||i)},i.\u0275mod=e.$C({type:i}),i.\u0275inj=e.G2t({imports:[h.iI.forChild(k),h.iI]}),p})();var x=o(5553);let M=(()=>{var i;class p{}return(i=p).\u0275fac=function(t){return new(t||i)},i.\u0275mod=e.$C({type:i}),i.\u0275inj=e.G2t({imports:[l.MD,y.YN,n.bv,O,x.h]}),p})()}}]); \ No newline at end of file diff --git a/www/9906.7831fb32a0a705fa.js b/www/4839.1358f2425ffb5332.js similarity index 96% rename from www/9906.7831fb32a0a705fa.js rename to www/4839.1358f2425ffb5332.js index b8d01b1..fd16a8a 100644 --- a/www/9906.7831fb32a0a705fa.js +++ b/www/4839.1358f2425ffb5332.js @@ -1 +1 @@ -"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[9906],{5553:(T,h,n)=>{n.d(h,{h:()=>u});var g=n(177),m=n(7863),r=n(4438);let u=(()=>{var s;class e{}return(s=e).\u0275fac=function(f){return new(f||s)},s.\u0275mod=r.$C({type:s}),s.\u0275inj=r.G2t({imports:[g.MD,m.bv]}),e})()},9906:(T,h,n)=>{n.r(h),n.d(h,{TraceChooserPageModule:()=>_});var g=n(177),m=n(4341),r=n(7863),u=n(7650),s=n(467),e=n(4438),p=n(6241),f=n(385),C=n(8453);function v(t,c){if(1&t){const a=e.RV6();e.j41(0,"ion-item",7),e.bIt("click",function(){const i=e.eBV(a).$implicit,l=e.XpG().$implicit,d=e.XpG();return e.Njj(d.navigateToTraceTest(l,i))}),e.j41(1,"ion-label"),e.EFF(2),e.k0s(),e.nrm(3,"ion-icon",8),e.k0s()}if(2&t){const a=c.$implicit;e.R7$(2),e.JRh(a)}}function P(t,c){if(1&t&&(e.j41(0,"ion-col",4)(1,"ion-card")(2,"ion-card-header")(3,"ion-card-title"),e.EFF(4),e.k0s()(),e.j41(5,"ion-card-content")(6,"ion-list"),e.DNE(7,v,4,1,"ion-item",6),e.k0s()()()()),2&t){const a=c.$implicit;e.R7$(4),e.JRh(a.productObjective),e.R7$(3),e.Y8G("ngForOf",a.productSteps)}}const M=[{path:"",component:(()=>{var t;class c{constructor(o,i,l){this.productService=o,this.router=i,this.loadingCtrl=l,this.products=[]}ngOnInit(){}ionViewWillEnter(){var o=this;return(0,s.A)(function*(){yield o.showLoading(),o.getAllProducts(),yield o.hideLoading()})()}getAllProducts(){var o=this;return(0,s.A)(function*(){const i=localStorage.getItem("user");if(!i)return;const d=JSON.parse(i).orgName;o.products=yield o.productService.getProducts(d)})()}doRefresh(o){var i=this;return(0,s.A)(function*(){i.getAllProducts().then(()=>{o.target.complete()})})()}navigateToTraceTest(o,i){var l=this;return(0,s.A)(function*(){yield l.router.navigate(["/trace-test",{productObjective:o.productObjective,step:i}])})()}showLoading(){var o=this;return(0,s.A)(function*(){yield(yield o.loadingCtrl.create({})).present()})()}hideLoading(){var o=this;return(0,s.A)(function*(){yield o.loadingCtrl.dismiss()})()}}return(t=c).\u0275fac=function(o){return new(o||t)(e.rXU(p.b),e.rXU(u.Ix),e.rXU(r.Xi))},t.\u0275cmp=e.VBU({type:t,selectors:[["app-trace-chooser"]],decls:12,vars:4,consts:[[3,"title"],[3,"fullscreen"],["slot","fixed",3,"ionRefresh"],[1,"lg:m-10","md:m-10"],["size","12","size-md","4","size-lg","4",1,""],["size","12","size-md","4","size-lg","4","class","",4,"ngFor","ngForOf"],[3,"click",4,"ngFor","ngForOf"],[3,"click"],["name","arrow-forward","color","primary"]],template:function(o,i){1&o&&(e.nrm(0,"app-header",0),e.j41(1,"ion-content",1)(2,"ion-refresher",2),e.bIt("ionRefresh",function(d){return i.doRefresh(d)}),e.nrm(3,"ion-refresher-content"),e.k0s(),e.j41(4,"ion-grid"),e.nrm(5,"app-title",0),e.j41(6,"ion-row",3)(7,"ion-col",4)(8,"p"),e.EFF(9,"Choose a product and a product step to make a traceroute test to the product step."),e.k0s()()(),e.j41(10,"ion-row",3),e.DNE(11,P,8,2,"ion-col",5),e.k0s()()()),2&o&&(e.Y8G("title","Trace Test Chooser"),e.R7$(),e.Y8G("fullscreen",!0),e.R7$(4),e.Y8G("title","Trace Test Chooser"),e.R7$(6),e.Y8G("ngForOf",i.products))},dependencies:[g.Sq,r.b_,r.I9,r.ME,r.tN,r.hU,r.W9,r.lO,r.iq,r.uz,r.he,r.nf,r.To,r.Ki,r.ln,f.l,C.W]}),c})()}];let R=(()=>{var t;class c{}return(t=c).\u0275fac=function(o){return new(o||t)},t.\u0275mod=e.$C({type:t}),t.\u0275inj=e.G2t({imports:[u.iI.forChild(M),u.iI]}),c})();var y=n(5553);let _=(()=>{var t;class c{}return(t=c).\u0275fac=function(o){return new(o||t)},t.\u0275mod=e.$C({type:t}),t.\u0275inj=e.G2t({imports:[g.MD,m.YN,r.bv,R,y.h]}),c})()}}]); \ No newline at end of file +"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[4839],{5553:(T,h,n)=>{n.d(h,{h:()=>u});var g=n(177),m=n(7863),r=n(4438);let u=(()=>{var s;class e{}return(s=e).\u0275fac=function(f){return new(f||s)},s.\u0275mod=r.$C({type:s}),s.\u0275inj=r.G2t({imports:[g.MD,m.bv]}),e})()},4839:(T,h,n)=>{n.r(h),n.d(h,{TraceChooserPageModule:()=>_});var g=n(177),m=n(4341),r=n(7863),u=n(7650),s=n(467),e=n(4438),p=n(6241),f=n(385),C=n(8453);function v(t,c){if(1&t){const a=e.RV6();e.j41(0,"ion-item",7),e.bIt("click",function(){const i=e.eBV(a).$implicit,l=e.XpG().$implicit,d=e.XpG();return e.Njj(d.navigateToTraceTest(l,i))}),e.j41(1,"ion-label"),e.EFF(2),e.k0s(),e.nrm(3,"ion-icon",8),e.k0s()}if(2&t){const a=c.$implicit;e.R7$(2),e.JRh(a)}}function P(t,c){if(1&t&&(e.j41(0,"ion-col",4)(1,"ion-card")(2,"ion-card-header")(3,"ion-card-title"),e.EFF(4),e.k0s()(),e.j41(5,"ion-card-content")(6,"ion-list"),e.DNE(7,v,4,1,"ion-item",6),e.k0s()()()()),2&t){const a=c.$implicit;e.R7$(4),e.JRh(a.productObjective),e.R7$(3),e.Y8G("ngForOf",a.productSteps)}}const M=[{path:"",component:(()=>{var t;class c{constructor(o,i,l){this.productService=o,this.router=i,this.loadingCtrl=l,this.products=[]}ngOnInit(){}ionViewWillEnter(){var o=this;return(0,s.A)(function*(){yield o.showLoading(),o.getAllProducts(),yield o.hideLoading()})()}getAllProducts(){var o=this;return(0,s.A)(function*(){const i=localStorage.getItem("user");if(!i)return;const d=JSON.parse(i).orgName;o.products=yield o.productService.getProducts(d)})()}doRefresh(o){var i=this;return(0,s.A)(function*(){i.getAllProducts().then(()=>{o.target.complete()})})()}navigateToTraceTest(o,i){var l=this;return(0,s.A)(function*(){yield l.router.navigate(["/trace-test",{productObjective:o.productObjective,step:i}])})()}showLoading(){var o=this;return(0,s.A)(function*(){yield(yield o.loadingCtrl.create({})).present()})()}hideLoading(){var o=this;return(0,s.A)(function*(){yield o.loadingCtrl.dismiss()})()}}return(t=c).\u0275fac=function(o){return new(o||t)(e.rXU(p.b),e.rXU(u.Ix),e.rXU(r.Xi))},t.\u0275cmp=e.VBU({type:t,selectors:[["app-trace-chooser"]],decls:12,vars:4,consts:[[3,"title"],[3,"fullscreen"],["slot","fixed",3,"ionRefresh"],[1,"lg:m-10","md:m-10"],["size","12","size-md","4","size-lg","4",1,""],["size","12","size-md","4","size-lg","4","class","",4,"ngFor","ngForOf"],[3,"click",4,"ngFor","ngForOf"],[3,"click"],["name","arrow-forward","color","primary"]],template:function(o,i){1&o&&(e.nrm(0,"app-header",0),e.j41(1,"ion-content",1)(2,"ion-refresher",2),e.bIt("ionRefresh",function(d){return i.doRefresh(d)}),e.nrm(3,"ion-refresher-content"),e.k0s(),e.j41(4,"ion-grid"),e.nrm(5,"app-title",0),e.j41(6,"ion-row",3)(7,"ion-col",4)(8,"p"),e.EFF(9,"Choose a product and a product step to make a traceroute test to the product step."),e.k0s()()(),e.j41(10,"ion-row",3),e.DNE(11,P,8,2,"ion-col",5),e.k0s()()()),2&o&&(e.Y8G("title","Trace Test Chooser"),e.R7$(),e.Y8G("fullscreen",!0),e.R7$(4),e.Y8G("title","Trace Test Chooser"),e.R7$(6),e.Y8G("ngForOf",i.products))},dependencies:[g.Sq,r.b_,r.I9,r.ME,r.tN,r.hU,r.W9,r.lO,r.iq,r.uz,r.he,r.nf,r.To,r.Ki,r.ln,f.l,C.W]}),c})()}];let R=(()=>{var t;class c{}return(t=c).\u0275fac=function(o){return new(o||t)},t.\u0275mod=e.$C({type:t}),t.\u0275inj=e.G2t({imports:[u.iI.forChild(M),u.iI]}),c})();var y=n(5553);let _=(()=>{var t;class c{}return(t=c).\u0275fac=function(o){return new(o||t)},t.\u0275mod=e.$C({type:t}),t.\u0275inj=e.G2t({imports:[g.MD,m.YN,r.bv,R,y.h]}),c})()}}]); \ No newline at end of file diff --git a/www/3998.ffd547c928c28334.js b/www/4914.52404a177d9d7dd4.js similarity index 96% rename from www/3998.ffd547c928c28334.js rename to www/4914.52404a177d9d7dd4.js index c9509eb..475a6b0 100644 --- a/www/3998.ffd547c928c28334.js +++ b/www/4914.52404a177d9d7dd4.js @@ -1 +1 @@ -"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[3998],{5553:(f,g,n)=>{n.d(g,{h:()=>s});var p=n(177),h=n(7863),i=n(4438);let s=(()=>{var d;class t{}return(d=t).\u0275fac=function(P){return new(P||d)},d.\u0275mod=i.$C({type:d}),d.\u0275inj=i.G2t({imports:[p.MD,h.bv]}),t})()},3998:(f,g,n)=>{n.r(g),n.d(g,{ModelProductPageModule:()=>j});var p=n(177),h=n(4341),i=n(7863),s=n(7650),d=n(467),t=n(4438),m=n(6241),P=n(385),M=n(8453);function v(o,l){if(1&o){const c=t.RV6();t.j41(0,"ion-item",10),t.bIt("click",function(){const r=t.eBV(c).$implicit,u=t.XpG();return t.Njj(u.viewProduct(r))}),t.j41(1,"ion-label"),t.EFF(2),t.k0s()()}if(2&o){const c=l.$implicit;t.R7$(2),t.JRh(c.productObjective)}}const y=[{path:"",component:(()=>{var o;class l{constructor(e,r,u,a){this.productService=e,this.alertCtrl=r,this.loadingCtrl=u,this.router=a,this.products=[]}ngOnInit(){return(0,d.A)(function*(){})()}ionViewWillEnter(){var e=this;return(0,d.A)(function*(){yield e.getProducts()})()}getProducts(){var e=this;return(0,d.A)(function*(){try{yield e.showLoading();const r=localStorage.getItem("user");if(!r)return;const a=JSON.parse(r).orgName;e.products=yield e.productService.getProducts(a),0===e.products.length&&e.products.push({productObjective:"No products found"}),yield e.hideLoading()}catch(r){console.log(r)}})()}viewProduct(e){var r=this;return(0,d.A)(function*(){yield r.router.navigate(["/view-product"],{queryParams:{product:JSON.stringify(e)}})})()}showAlert(e){var r=this;return(0,d.A)(function*(){yield(yield r.alertCtrl.create({header:"Login Failed!",message:e,buttons:["OK"]})).present()})()}showLoading(){var e=this;return(0,d.A)(function*(){yield(yield e.loadingCtrl.create({})).present()})()}hideLoading(){var e=this;return(0,d.A)(function*(){yield e.loadingCtrl.dismiss()})()}doRefresh(e){var r=this;return(0,d.A)(function*(){yield r.getProducts(),e.target.complete()})()}}return(o=l).\u0275fac=function(e){return new(e||o)(t.rXU(m.b),t.rXU(i.hG),t.rXU(i.Xi),t.rXU(s.Ix))},o.\u0275cmp=t.VBU({type:o,selectors:[["app-model-product"]],decls:18,vars:5,consts:[[3,"title"],[3,"fullscreen"],["slot","fixed",3,"ionRefresh"],[1,"lg:m-10"],["size","12"],[1,"bg-white",3,"inset"],["color","dark"],[1,"m-6","lg:m-10","md:m-10"],[1,"flex","flex-row","justify-center","items-center","flex-grow","m-2"],["size","","color","primary","routerLink","/new-product"],["color","dark",3,"click"]],template:function(e,r){1&e&&(t.nrm(0,"app-header",0),t.j41(1,"ion-content",1)(2,"ion-refresher",2),t.bIt("ionRefresh",function(a){return r.doRefresh(a)}),t.nrm(3,"ion-refresher-content"),t.k0s(),t.j41(4,"ion-grid"),t.nrm(5,"app-title",0),t.j41(6,"ion-row",3)(7,"ion-col",4)(8,"ion-list",5),t.Z7z(9,v,3,1,"ion-item",6,t.fX1),t.k0s()()(),t.nrm(11,"app-title",0),t.j41(12,"ion-row",7)(13,"p"),t.EFF(14,'"People use a product to achieve a real-world objective. To help product teams build products and services that facilitate user goals, you need to understand what the product\'s users are trying to accomplish." (Google SRE Workbook,2023)'),t.k0s(),t.j41(15,"div",8)(16,"ion-button",9),t.EFF(17,"Model A New Product"),t.k0s()()()()()),2&e&&(t.Y8G("title","Model The Product"),t.R7$(),t.Y8G("fullscreen",!0),t.R7$(4),t.Y8G("title","Products"),t.R7$(3),t.Y8G("inset",!0),t.R7$(),t.Dyx(r.products),t.R7$(2),t.Y8G("title","Model A New Product"))},dependencies:[i.Jm,i.hU,i.W9,i.lO,i.uz,i.he,i.nf,i.To,i.Ki,i.ln,i.N7,s.Wk,P.l,M.W]}),l})()}];let R=(()=>{var o;class l{}return(o=l).\u0275fac=function(e){return new(e||o)},o.\u0275mod=t.$C({type:o}),o.\u0275inj=t.G2t({imports:[s.iI.forChild(y),s.iI]}),l})();var C=n(5553);let j=(()=>{var o;class l{}return(o=l).\u0275fac=function(e){return new(e||o)},o.\u0275mod=t.$C({type:o}),o.\u0275inj=t.G2t({imports:[p.MD,h.YN,i.bv,R,C.h]}),l})()}}]); \ No newline at end of file +"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[4914],{5553:(f,g,n)=>{n.d(g,{h:()=>s});var p=n(177),h=n(7863),i=n(4438);let s=(()=>{var d;class t{}return(d=t).\u0275fac=function(P){return new(P||d)},d.\u0275mod=i.$C({type:d}),d.\u0275inj=i.G2t({imports:[p.MD,h.bv]}),t})()},4914:(f,g,n)=>{n.r(g),n.d(g,{ModelProductPageModule:()=>j});var p=n(177),h=n(4341),i=n(7863),s=n(7650),d=n(467),t=n(4438),m=n(6241),P=n(385),M=n(8453);function v(o,l){if(1&o){const c=t.RV6();t.j41(0,"ion-item",10),t.bIt("click",function(){const r=t.eBV(c).$implicit,u=t.XpG();return t.Njj(u.viewProduct(r))}),t.j41(1,"ion-label"),t.EFF(2),t.k0s()()}if(2&o){const c=l.$implicit;t.R7$(2),t.JRh(c.productObjective)}}const y=[{path:"",component:(()=>{var o;class l{constructor(e,r,u,a){this.productService=e,this.alertCtrl=r,this.loadingCtrl=u,this.router=a,this.products=[]}ngOnInit(){return(0,d.A)(function*(){})()}ionViewWillEnter(){var e=this;return(0,d.A)(function*(){yield e.getProducts()})()}getProducts(){var e=this;return(0,d.A)(function*(){try{yield e.showLoading();const r=localStorage.getItem("user");if(!r)return;const a=JSON.parse(r).orgName;e.products=yield e.productService.getProducts(a),0===e.products.length&&e.products.push({productObjective:"No products found"}),yield e.hideLoading()}catch(r){console.log(r)}})()}viewProduct(e){var r=this;return(0,d.A)(function*(){yield r.router.navigate(["/view-product"],{queryParams:{product:JSON.stringify(e)}})})()}showAlert(e){var r=this;return(0,d.A)(function*(){yield(yield r.alertCtrl.create({header:"Login Failed!",message:e,buttons:["OK"]})).present()})()}showLoading(){var e=this;return(0,d.A)(function*(){yield(yield e.loadingCtrl.create({})).present()})()}hideLoading(){var e=this;return(0,d.A)(function*(){yield e.loadingCtrl.dismiss()})()}doRefresh(e){var r=this;return(0,d.A)(function*(){yield r.getProducts(),e.target.complete()})()}}return(o=l).\u0275fac=function(e){return new(e||o)(t.rXU(m.b),t.rXU(i.hG),t.rXU(i.Xi),t.rXU(s.Ix))},o.\u0275cmp=t.VBU({type:o,selectors:[["app-model-product"]],decls:18,vars:5,consts:[[3,"title"],[3,"fullscreen"],["slot","fixed",3,"ionRefresh"],[1,"lg:m-10"],["size","12"],[1,"bg-white",3,"inset"],["color","dark"],[1,"m-6","lg:m-10","md:m-10"],[1,"flex","flex-row","justify-center","items-center","flex-grow","m-2"],["size","","color","primary","routerLink","/new-product"],["color","dark",3,"click"]],template:function(e,r){1&e&&(t.nrm(0,"app-header",0),t.j41(1,"ion-content",1)(2,"ion-refresher",2),t.bIt("ionRefresh",function(a){return r.doRefresh(a)}),t.nrm(3,"ion-refresher-content"),t.k0s(),t.j41(4,"ion-grid"),t.nrm(5,"app-title",0),t.j41(6,"ion-row",3)(7,"ion-col",4)(8,"ion-list",5),t.Z7z(9,v,3,1,"ion-item",6,t.fX1),t.k0s()()(),t.nrm(11,"app-title",0),t.j41(12,"ion-row",7)(13,"p"),t.EFF(14,'"People use a product to achieve a real-world objective. To help product teams build products and services that facilitate user goals, you need to understand what the product\'s users are trying to accomplish." (Google SRE Workbook,2023)'),t.k0s(),t.j41(15,"div",8)(16,"ion-button",9),t.EFF(17,"Model A New Product"),t.k0s()()()()()),2&e&&(t.Y8G("title","Model The Product"),t.R7$(),t.Y8G("fullscreen",!0),t.R7$(4),t.Y8G("title","Products"),t.R7$(3),t.Y8G("inset",!0),t.R7$(),t.Dyx(r.products),t.R7$(2),t.Y8G("title","Model A New Product"))},dependencies:[i.Jm,i.hU,i.W9,i.lO,i.uz,i.he,i.nf,i.To,i.Ki,i.ln,i.N7,s.Wk,P.l,M.W]}),l})()}];let R=(()=>{var o;class l{}return(o=l).\u0275fac=function(e){return new(e||o)},o.\u0275mod=t.$C({type:o}),o.\u0275inj=t.G2t({imports:[s.iI.forChild(y),s.iI]}),l})();var C=n(5553);let j=(()=>{var o;class l{}return(o=l).\u0275fac=function(e){return new(e||o)},o.\u0275mod=t.$C({type:o}),o.\u0275inj=t.G2t({imports:[p.MD,h.YN,i.bv,R,C.h]}),l})()}}]); \ No newline at end of file diff --git a/www/1101.83532fd95b1e4cb4.js b/www/5054.a36f0725f93c0766.js similarity index 98% rename from www/1101.83532fd95b1e4cb4.js rename to www/5054.a36f0725f93c0766.js index 1871c85..5e94f58 100644 --- a/www/1101.83532fd95b1e4cb4.js +++ b/www/5054.a36f0725f93c0766.js @@ -1 +1 @@ -"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[1101],{5553:(D,y,o)=>{o.d(y,{h:()=>v});var c=o(177),M=o(7863),u=o(4438);let v=(()=>{var h;class t{}return(h=t).\u0275fac=function(g){return new(g||h)},h.\u0275mod=u.$C({type:h}),h.\u0275inj=u.G2t({imports:[c.MD,M.bv]}),t})()},3241:(D,y,o)=>{o.d(y,{p:()=>v});var c=o(4438),M=o(177),u=o(7863);let v=(()=>{var h;class t{constructor(g){this.location=g,this.title="Header Title"}ngOnInit(){}goBack(){this.location.back()}}return(h=t).\u0275fac=function(g){return new(g||h)(c.rXU(M.aZ))},h.\u0275cmp=c.VBU({type:h,selectors:[["app-header-return"]],inputs:{title:"title"},decls:6,vars:2,consts:[[3,"translucent"],["slot","start","menu","menu-id"],["name","arrow-back","slot","start",1,"p-4","bigger-icon",3,"click"]],template:function(g,G){1&g&&(c.j41(0,"ion-header",0)(1,"ion-toolbar"),c.nrm(2,"ion-menu-button",1),c.j41(3,"ion-icon",2),c.bIt("click",function(){return G.goBack()}),c.k0s(),c.j41(4,"ion-title"),c.EFF(5),c.k0s()()()),2&g&&(c.Y8G("translucent",!0),c.R7$(5),c.JRh(G.title))},dependencies:[u.eU,u.iq,u.MC,u.BC,u.ai],styles:[".bigger-icon[_ngcontent-%COMP%]{font-size:1.5em}"]}),t})()},1101:(D,y,o)=>{o.r(y),o.d(y,{FlameGraphPageModule:()=>j});var c=o(177),M=o(4341),u=o(7863),v=o(7650),h=o(467),t=o(4438),_=o(6560),g=o(7616),G=o(8453),O=o(3241);function U(a,p){if(1&a&&(t.j41(0,"div",9),t.nrm(1,"ngx-flamegraph",10),t.k0s()),2&a){const f=t.XpG();t.R7$(),t.Y8G("config",f.data)}}function E(a,p){if(1&a&&(t.j41(0,"div",9),t.nrm(1,"ngx-flamegraph",10),t.k0s()),2&a){const f=t.XpG();t.R7$(),t.Y8G("config",f.data)}}let T=(()=>{var a;class p{constructor(e,s,l,r){this.flameGraphService=e,this.loadingCtrl=s,this.router=l,this.route=r,this.product={},this.date="",this.data={data:A},this.color={hue:[50,0],saturation:[80,80],lightness:[55,60]},this.usage_type=""}ionViewWillEnter(){this.getProductAndDateFromParams(),this.getFlameGraph()}getProductAndDateFromParams(){this.route.queryParams.subscribe(e=>{this.product=JSON.parse(e.product),this.date=e.date,this.usage_type=this.route.snapshot.queryParamMap.get("usage_type")}),console.log(this.product.productObjective),console.log(this.date),console.log(this.usage_type)}getFlameGraph(){var e=this;return(0,h.A)(function*(){try{yield e.showLoading();const l=localStorage.getItem("user");if(!l)return;const n=JSON.parse(l).orgName;let d;console.log(n),"memory_usage"===e.usage_type?(d=yield e.flameGraphService.getFlameGraphByDate(n,e.product.productObjective,e.date,!0),e.color={hue:[140,100],saturation:[60,60],lightness:[60,30]}):(d=yield e.flameGraphService.getFlameGraphByDate(n,e.product.productObjective,e.date),e.color={hue:[50,0],saturation:[80,80],lightness:[55,60]}),console.log("flame graph",d);let i=[],m=[];for(let C in d){var s;const R=null===(s=d)||void 0===s?void 0:s[C];m=Object.keys(R),console.log("keys",m);const K=100/m.length;for(let F in m){const b=[];for(let P=0;Pr+n,0)/s.length}transformToRawDataCPU(e){const s=e.cpu_usage?this.average(e.cpu_usage):0,l=[];for(const r in e){if("id"===r||"cpu_usage"===r)continue;const n=e[r];if("object"!=typeof n||Array.isArray(n))"object"!=typeof n&&l.push({label:r,value:0,children:[]});else if("sub_services"===r)for(const d in n){const i=n[d],C={label:d,value:i.cpu_usage?this.average(i.cpu_usage):0,children:this.transformToRawDataCPU(i).children};l.push(C)}else{const i={label:r,value:n.cpu_usage?this.average(n.cpu_usage):0,children:this.transformToRawDataCPU(n).children};l.push(i)}}return{label:e.id,value:s,children:l}}transformToRawDataMemory(e){const s=e.memory_usage?this.average(e.memory_usage):0,l=[];for(const r in e){if("id"===r||"memory_usage"===r)continue;const n=e[r];if("object"!=typeof n||Array.isArray(n))"object"!=typeof n&&l.push({label:r,value:0,children:[]});else if("sub_services"===r)for(const d in n){const i=n[d],C={label:d,value:i.memory_usage?this.average(i.memory_usage):0,children:this.transformToRawDataMemory(i).children};l.push(C)}else{const i={label:r,value:n.memory_usage?this.average(n.memory_usage):0,children:this.transformToRawDataMemory(n).children};l.push(i)}}return{label:e.id,value:s,children:l}}doRefresh(e){var s=this;return(0,h.A)(function*(){yield s.getFlameGraph(),e.target.complete()})()}}return(a=p).\u0275fac=function(e){return new(e||a)(t.rXU(_.x),t.rXU(u.Xi),t.rXU(v.Ix),t.rXU(v.nX))},a.\u0275cmp=t.VBU({type:a,selectors:[["app-flame-graph"]],decls:15,vars:5,consts:[[3,"title"],[3,"fullscreen"],["slot","fixed",3,"ionRefresh"],[1,"lg:m-10","md:m-10"],["size","12","size-md","4","size-lg","4",1,""],[1,"lg:m-10"],["size","12"],[1,"p-5"],[1,"bg-transparent"],[1,"wrapper-responsive"],[3,"config"]],template:function(e,s){1&e&&(t.nrm(0,"app-header-return",0),t.j41(1,"ion-content",1)(2,"ion-refresher",2),t.bIt("ionRefresh",function(r){return s.doRefresh(r)}),t.nrm(3,"ion-refresher-content"),t.k0s(),t.nrm(4,"app-title",0),t.j41(5,"ion-row",3)(6,"ion-col",4)(7,"p"),t.EFF(8),t.k0s()()(),t.j41(9,"ion-row",5)(10,"ion-col",6)(11,"ion-card",7)(12,"ion-card",8),t.DNE(13,U,2,1,"div",9)(14,E,2,1),t.k0s()()()()()),2&e&&(t.Y8G("title","Flame Graph"),t.R7$(),t.Y8G("fullscreen",!0),t.R7$(3),t.Y8G("title","Flame Graph"),t.R7$(4),t.SpI("Showing data for : ",s.date,""),t.R7$(5),t.vxM(13,"cpu"===s.usage_type?13:14))},dependencies:[u.b_,u.hU,u.W9,u.To,u.Ki,u.ln,g.E,G.W,O.p],styles:[".wrapper-fixed-width[_ngcontent-%COMP%]{width:900px;margin:auto}.wrapper-responsive[_ngcontent-%COMP%]{width:100%;margin:auto}h2[_ngcontent-%COMP%], h3[_ngcontent-%COMP%]{text-align:center;-webkit-user-select:none;user-select:none}"]}),p})();const A=[{label:"root",value:100,children:[]}],w=[{path:"",component:T}];let I=(()=>{var a;class p{}return(a=p).\u0275fac=function(e){return new(e||a)},a.\u0275mod=t.$C({type:a}),a.\u0275inj=t.G2t({imports:[v.iI.forChild(w),v.iI]}),p})();var B=o(5553);let j=(()=>{var a;class p{}return(a=p).\u0275fac=function(e){return new(e||a)},a.\u0275mod=t.$C({type:a}),a.\u0275inj=t.G2t({imports:[c.MD,M.YN,u.bv,I,g.n,B.h]}),p})()}}]); \ No newline at end of file +"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[5054],{5553:(D,y,o)=>{o.d(y,{h:()=>v});var c=o(177),M=o(7863),u=o(4438);let v=(()=>{var h;class t{}return(h=t).\u0275fac=function(g){return new(g||h)},h.\u0275mod=u.$C({type:h}),h.\u0275inj=u.G2t({imports:[c.MD,M.bv]}),t})()},3241:(D,y,o)=>{o.d(y,{p:()=>v});var c=o(4438),M=o(177),u=o(7863);let v=(()=>{var h;class t{constructor(g){this.location=g,this.title="Header Title"}ngOnInit(){}goBack(){this.location.back()}}return(h=t).\u0275fac=function(g){return new(g||h)(c.rXU(M.aZ))},h.\u0275cmp=c.VBU({type:h,selectors:[["app-header-return"]],inputs:{title:"title"},decls:6,vars:2,consts:[[3,"translucent"],["slot","start","menu","menu-id"],["name","arrow-back","slot","start",1,"p-4","bigger-icon",3,"click"]],template:function(g,G){1&g&&(c.j41(0,"ion-header",0)(1,"ion-toolbar"),c.nrm(2,"ion-menu-button",1),c.j41(3,"ion-icon",2),c.bIt("click",function(){return G.goBack()}),c.k0s(),c.j41(4,"ion-title"),c.EFF(5),c.k0s()()()),2&g&&(c.Y8G("translucent",!0),c.R7$(5),c.JRh(G.title))},dependencies:[u.eU,u.iq,u.MC,u.BC,u.ai],styles:[".bigger-icon[_ngcontent-%COMP%]{font-size:1.5em}"]}),t})()},5054:(D,y,o)=>{o.r(y),o.d(y,{FlameGraphPageModule:()=>j});var c=o(177),M=o(4341),u=o(7863),v=o(7650),h=o(467),t=o(4438),_=o(6560),g=o(7616),G=o(8453),O=o(3241);function U(a,p){if(1&a&&(t.j41(0,"div",9),t.nrm(1,"ngx-flamegraph",10),t.k0s()),2&a){const f=t.XpG();t.R7$(),t.Y8G("config",f.data)}}function E(a,p){if(1&a&&(t.j41(0,"div",9),t.nrm(1,"ngx-flamegraph",10),t.k0s()),2&a){const f=t.XpG();t.R7$(),t.Y8G("config",f.data)}}let T=(()=>{var a;class p{constructor(e,s,l,r){this.flameGraphService=e,this.loadingCtrl=s,this.router=l,this.route=r,this.product={},this.date="",this.data={data:A},this.color={hue:[50,0],saturation:[80,80],lightness:[55,60]},this.usage_type=""}ionViewWillEnter(){this.getProductAndDateFromParams(),this.getFlameGraph()}getProductAndDateFromParams(){this.route.queryParams.subscribe(e=>{this.product=JSON.parse(e.product),this.date=e.date,this.usage_type=this.route.snapshot.queryParamMap.get("usage_type")}),console.log(this.product.productObjective),console.log(this.date),console.log(this.usage_type)}getFlameGraph(){var e=this;return(0,h.A)(function*(){try{yield e.showLoading();const l=localStorage.getItem("user");if(!l)return;const n=JSON.parse(l).orgName;let d;console.log(n),"memory_usage"===e.usage_type?(d=yield e.flameGraphService.getFlameGraphByDate(n,e.product.productObjective,e.date,!0),e.color={hue:[140,100],saturation:[60,60],lightness:[60,30]}):(d=yield e.flameGraphService.getFlameGraphByDate(n,e.product.productObjective,e.date),e.color={hue:[50,0],saturation:[80,80],lightness:[55,60]}),console.log("flame graph",d);let i=[],m=[];for(let C in d){var s;const R=null===(s=d)||void 0===s?void 0:s[C];m=Object.keys(R),console.log("keys",m);const K=100/m.length;for(let F in m){const b=[];for(let P=0;Pr+n,0)/s.length}transformToRawDataCPU(e){const s=e.cpu_usage?this.average(e.cpu_usage):0,l=[];for(const r in e){if("id"===r||"cpu_usage"===r)continue;const n=e[r];if("object"!=typeof n||Array.isArray(n))"object"!=typeof n&&l.push({label:r,value:0,children:[]});else if("sub_services"===r)for(const d in n){const i=n[d],C={label:d,value:i.cpu_usage?this.average(i.cpu_usage):0,children:this.transformToRawDataCPU(i).children};l.push(C)}else{const i={label:r,value:n.cpu_usage?this.average(n.cpu_usage):0,children:this.transformToRawDataCPU(n).children};l.push(i)}}return{label:e.id,value:s,children:l}}transformToRawDataMemory(e){const s=e.memory_usage?this.average(e.memory_usage):0,l=[];for(const r in e){if("id"===r||"memory_usage"===r)continue;const n=e[r];if("object"!=typeof n||Array.isArray(n))"object"!=typeof n&&l.push({label:r,value:0,children:[]});else if("sub_services"===r)for(const d in n){const i=n[d],C={label:d,value:i.memory_usage?this.average(i.memory_usage):0,children:this.transformToRawDataMemory(i).children};l.push(C)}else{const i={label:r,value:n.memory_usage?this.average(n.memory_usage):0,children:this.transformToRawDataMemory(n).children};l.push(i)}}return{label:e.id,value:s,children:l}}doRefresh(e){var s=this;return(0,h.A)(function*(){yield s.getFlameGraph(),e.target.complete()})()}}return(a=p).\u0275fac=function(e){return new(e||a)(t.rXU(_.x),t.rXU(u.Xi),t.rXU(v.Ix),t.rXU(v.nX))},a.\u0275cmp=t.VBU({type:a,selectors:[["app-flame-graph"]],decls:15,vars:5,consts:[[3,"title"],[3,"fullscreen"],["slot","fixed",3,"ionRefresh"],[1,"lg:m-10","md:m-10"],["size","12","size-md","4","size-lg","4",1,""],[1,"lg:m-10"],["size","12"],[1,"p-5"],[1,"bg-transparent"],[1,"wrapper-responsive"],[3,"config"]],template:function(e,s){1&e&&(t.nrm(0,"app-header-return",0),t.j41(1,"ion-content",1)(2,"ion-refresher",2),t.bIt("ionRefresh",function(r){return s.doRefresh(r)}),t.nrm(3,"ion-refresher-content"),t.k0s(),t.nrm(4,"app-title",0),t.j41(5,"ion-row",3)(6,"ion-col",4)(7,"p"),t.EFF(8),t.k0s()()(),t.j41(9,"ion-row",5)(10,"ion-col",6)(11,"ion-card",7)(12,"ion-card",8),t.DNE(13,U,2,1,"div",9)(14,E,2,1),t.k0s()()()()()),2&e&&(t.Y8G("title","Flame Graph"),t.R7$(),t.Y8G("fullscreen",!0),t.R7$(3),t.Y8G("title","Flame Graph"),t.R7$(4),t.SpI("Showing data for : ",s.date,""),t.R7$(5),t.vxM(13,"cpu"===s.usage_type?13:14))},dependencies:[u.b_,u.hU,u.W9,u.To,u.Ki,u.ln,g.E,G.W,O.p],styles:[".wrapper-fixed-width[_ngcontent-%COMP%]{width:900px;margin:auto}.wrapper-responsive[_ngcontent-%COMP%]{width:100%;margin:auto}h2[_ngcontent-%COMP%], h3[_ngcontent-%COMP%]{text-align:center;-webkit-user-select:none;user-select:none}"]}),p})();const A=[{label:"root",value:100,children:[]}],w=[{path:"",component:T}];let I=(()=>{var a;class p{}return(a=p).\u0275fac=function(e){return new(e||a)},a.\u0275mod=t.$C({type:a}),a.\u0275inj=t.G2t({imports:[v.iI.forChild(w),v.iI]}),p})();var B=o(5553);let j=(()=>{var a;class p{}return(a=p).\u0275fac=function(e){return new(e||a)},a.\u0275mod=t.$C({type:a}),a.\u0275inj=t.G2t({imports:[c.MD,M.YN,u.bv,I,g.n,B.h]}),p})()}}]); \ No newline at end of file diff --git a/www/1207.a3010e283fee40c9.js b/www/5399.0706ad352f9b7c14.js similarity index 95% rename from www/1207.a3010e283fee40c9.js rename to www/5399.0706ad352f9b7c14.js index 4029e87..4595948 100644 --- a/www/1207.a3010e283fee40c9.js +++ b/www/5399.0706ad352f9b7c14.js @@ -1 +1 @@ -"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[1207],{5553:(F,m,o)=>{o.d(m,{h:()=>u});var d=o(177),h=o(7863),n=o(4438);let u=(()=>{var s;class e{}return(s=e).\u0275fac=function(f){return new(f||s)},s.\u0275mod=n.$C({type:s}),s.\u0275inj=n.G2t({imports:[d.MD,h.bv]}),e})()},1207:(F,m,o)=>{o.r(m),o.d(m,{FlameGraphForPageModule:()=>R});var d=o(177),h=o(4341),n=o(7863),u=o(7650),s=o(467),e=o(4438),g=o(6560),f=o(385),v=o(8453);function P(r,i){if(1&r){const l=e.RV6();e.j41(0,"ion-item",9),e.bIt("click",function(){const a=e.eBV(l).$implicit,c=e.XpG();return e.Njj(c.viewDatesForProduct(a))}),e.j41(1,"ion-label"),e.EFF(2),e.k0s()()}if(2&r){const l=i.$implicit;e.R7$(2),e.JRh(l.productObjective)}}const G=[{path:"",component:(()=>{var r;class i{constructor(t,a,c,p){this.flameGraphService=t,this.loadingCtrl=a,this.router=c,this.activatedRoute=p,this.products=[],this.usage_type=""}ionViewWillEnter(){var t=this;return(0,s.A)(function*(){yield t.getProducts()})()}getProducts(){var t=this;return(0,s.A)(function*(){try{const a=localStorage.getItem("user");if(!a)return;const p=JSON.parse(a).orgName;t.usage_type=t.activatedRoute.snapshot.queryParamMap.get("usage_type"),null===t.usage_type&&(t.usage_type=""),console.log(t.usage_type),t.products=yield t.flameGraphService.getProducts(p),0===t.products.length&&t.products.push({productObjective:"No products found"})}catch(a){console.log(a)}})()}viewDatesForProduct(t){var a=this;return(0,s.A)(function*(){yield a.router.navigate(["/flame-graph-date"],{queryParams:{product:JSON.stringify(t),usage_type:a.usage_type}})})()}doRefresh(t){var a=this;return(0,s.A)(function*(){yield a.getProducts(),t.target.complete()})()}viewProduct(t){}ngOnInit(){}}return(r=i).\u0275fac=function(t){return new(t||r)(e.rXU(g.x),e.rXU(n.Xi),e.rXU(u.Ix),e.rXU(u.nX))},r.\u0275cmp=e.VBU({type:r,selectors:[["app-flame-graph-for"]],decls:15,vars:4,consts:[[3,"title"],[3,"fullscreen"],["slot","fixed",3,"ionRefresh"],[1,"lg:m-10","md:m-10"],["size","12","size-md","4","size-lg","4",1,""],[1,"lg:m-10"],["size","12"],[1,"bg-white",3,"inset"],["color","dark"],["color","dark",3,"click"]],template:function(t,a){1&t&&(e.nrm(0,"app-header",0),e.j41(1,"ion-content",1)(2,"ion-refresher",2),e.bIt("ionRefresh",function(p){return a.doRefresh(p)}),e.nrm(3,"ion-refresher-content"),e.k0s(),e.j41(4,"ion-grid"),e.nrm(5,"app-title",0),e.j41(6,"ion-row",3)(7,"ion-col",4)(8,"p"),e.EFF(9,"Choose a product to see the server usage."),e.k0s()()(),e.j41(10,"ion-row",5)(11,"ion-col",6)(12,"ion-list",7),e.Z7z(13,P,3,1,"ion-item",8,e.fX1),e.k0s()()()()()),2&t&&(e.Y8G("title","Server Usage"),e.R7$(),e.Y8G("fullscreen",!0),e.R7$(4),e.Y8G("title","Server usage for"),e.R7$(7),e.Y8G("inset",!0),e.R7$(),e.Dyx(a.products))},dependencies:[n.hU,n.W9,n.lO,n.uz,n.he,n.nf,n.To,n.Ki,n.ln,f.l,v.W]}),i})()}];let y=(()=>{var r;class i{}return(r=i).\u0275fac=function(t){return new(t||r)},r.\u0275mod=e.$C({type:r}),r.\u0275inj=e.G2t({imports:[u.iI.forChild(G),u.iI]}),i})();var M=o(5553);let R=(()=>{var r;class i{}return(r=i).\u0275fac=function(t){return new(t||r)},r.\u0275mod=e.$C({type:r}),r.\u0275inj=e.G2t({imports:[d.MD,h.YN,n.bv,y,M.h]}),i})()}}]); \ No newline at end of file +"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[5399],{5553:(F,m,o)=>{o.d(m,{h:()=>u});var d=o(177),h=o(7863),n=o(4438);let u=(()=>{var s;class e{}return(s=e).\u0275fac=function(f){return new(f||s)},s.\u0275mod=n.$C({type:s}),s.\u0275inj=n.G2t({imports:[d.MD,h.bv]}),e})()},5399:(F,m,o)=>{o.r(m),o.d(m,{FlameGraphForPageModule:()=>R});var d=o(177),h=o(4341),n=o(7863),u=o(7650),s=o(467),e=o(4438),g=o(6560),f=o(385),v=o(8453);function P(r,i){if(1&r){const l=e.RV6();e.j41(0,"ion-item",9),e.bIt("click",function(){const a=e.eBV(l).$implicit,c=e.XpG();return e.Njj(c.viewDatesForProduct(a))}),e.j41(1,"ion-label"),e.EFF(2),e.k0s()()}if(2&r){const l=i.$implicit;e.R7$(2),e.JRh(l.productObjective)}}const G=[{path:"",component:(()=>{var r;class i{constructor(t,a,c,p){this.flameGraphService=t,this.loadingCtrl=a,this.router=c,this.activatedRoute=p,this.products=[],this.usage_type=""}ionViewWillEnter(){var t=this;return(0,s.A)(function*(){yield t.getProducts()})()}getProducts(){var t=this;return(0,s.A)(function*(){try{const a=localStorage.getItem("user");if(!a)return;const p=JSON.parse(a).orgName;t.usage_type=t.activatedRoute.snapshot.queryParamMap.get("usage_type"),null===t.usage_type&&(t.usage_type=""),console.log(t.usage_type),t.products=yield t.flameGraphService.getProducts(p),0===t.products.length&&t.products.push({productObjective:"No products found"})}catch(a){console.log(a)}})()}viewDatesForProduct(t){var a=this;return(0,s.A)(function*(){yield a.router.navigate(["/flame-graph-date"],{queryParams:{product:JSON.stringify(t),usage_type:a.usage_type}})})()}doRefresh(t){var a=this;return(0,s.A)(function*(){yield a.getProducts(),t.target.complete()})()}viewProduct(t){}ngOnInit(){}}return(r=i).\u0275fac=function(t){return new(t||r)(e.rXU(g.x),e.rXU(n.Xi),e.rXU(u.Ix),e.rXU(u.nX))},r.\u0275cmp=e.VBU({type:r,selectors:[["app-flame-graph-for"]],decls:15,vars:4,consts:[[3,"title"],[3,"fullscreen"],["slot","fixed",3,"ionRefresh"],[1,"lg:m-10","md:m-10"],["size","12","size-md","4","size-lg","4",1,""],[1,"lg:m-10"],["size","12"],[1,"bg-white",3,"inset"],["color","dark"],["color","dark",3,"click"]],template:function(t,a){1&t&&(e.nrm(0,"app-header",0),e.j41(1,"ion-content",1)(2,"ion-refresher",2),e.bIt("ionRefresh",function(p){return a.doRefresh(p)}),e.nrm(3,"ion-refresher-content"),e.k0s(),e.j41(4,"ion-grid"),e.nrm(5,"app-title",0),e.j41(6,"ion-row",3)(7,"ion-col",4)(8,"p"),e.EFF(9,"Choose a product to see the server usage."),e.k0s()()(),e.j41(10,"ion-row",5)(11,"ion-col",6)(12,"ion-list",7),e.Z7z(13,P,3,1,"ion-item",8,e.fX1),e.k0s()()()()()),2&t&&(e.Y8G("title","Server Usage"),e.R7$(),e.Y8G("fullscreen",!0),e.R7$(4),e.Y8G("title","Server usage for"),e.R7$(7),e.Y8G("inset",!0),e.R7$(),e.Dyx(a.products))},dependencies:[n.hU,n.W9,n.lO,n.uz,n.he,n.nf,n.To,n.Ki,n.ln,f.l,v.W]}),i})()}];let y=(()=>{var r;class i{}return(r=i).\u0275fac=function(t){return new(t||r)},r.\u0275mod=e.$C({type:r}),r.\u0275inj=e.G2t({imports:[u.iI.forChild(G),u.iI]}),i})();var M=o(5553);let R=(()=>{var r;class i{}return(r=i).\u0275fac=function(t){return new(t||r)},r.\u0275mod=e.$C({type:r}),r.\u0275inj=e.G2t({imports:[d.MD,h.YN,n.bv,y,M.h]}),i})()}}]); \ No newline at end of file diff --git a/www/3825.331f98cf89b934e3.js b/www/5995.2de4ee42f61961e5.js similarity index 98% rename from www/3825.331f98cf89b934e3.js rename to www/5995.2de4ee42f61961e5.js index 0c5b4ae..8715033 100644 --- a/www/3825.331f98cf89b934e3.js +++ b/www/5995.2de4ee42f61961e5.js @@ -1 +1 @@ -"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[3825],{3825:(w,h,o)=>{o.r(h),o.d(h,{RegisterPageModule:()=>C});var p=o(177),u=o(4341),r=o(7863),c=o(7650),m=o(467),e=o(4438),f=o(4796),R=o(2872);const y=()=>["/login"],M=[{path:"",component:(()=>{var t;class s{constructor(i,n,g,l){var a=this;this.authService=i,this.alertCtrl=n,this.navCtrl=g,this.loadingCtrl=l,this.name="",this.orgName="",this.email="",this.password="",this.registerUser=(0,m.A)(function*(){if(yield a.showLoading(),a.email&&a.password&&a.name&&a.orgName){const v={name:a.name,orgName:a.orgName,email:a.email,password:a.password};(yield a.authService.registerUser(v))?(yield a.hideLoading(),yield a.navCtrl.navigateRoot("/login")):(yield a.hideLoading(),yield a.showAlert("Registration failed. Please check the form data."))}else yield a.hideLoading(),yield a.showAlert("Please enter all the required fields.")})}ngOnInit(){}showAlert(i,n){var g=this;return(0,m.A)(function*(){yield(yield g.alertCtrl.create({header:n||"Registration Failed!",message:i,buttons:["OK"]})).present()})()}showLoading(){var i=this;return(0,m.A)(function*(){yield(yield i.loadingCtrl.create({})).present()})()}hideLoading(){var i=this;return(0,m.A)(function*(){yield i.loadingCtrl.dismiss()})()}}return(t=s).\u0275fac=function(i){return new(i||t)(e.rXU(f.u),e.rXU(r.hG),e.rXU(R.q9),e.rXU(r.Xi))},t.\u0275cmp=e.VBU({type:t,selectors:[["app-register"]],inputs:{name:"name",orgName:"orgName",email:"email",password:"password"},decls:22,vars:7,consts:[[1,"",3,"fullscreen"],[1,"h-full"],["size","12","size-sm","12","size-md","12","size-lg","6","size-xl","6",1,""],[1,"flex","flex-col","items-center","h-full","justify-end","lg:justify-center","md:justify-end"],["src","https://firebasestorage.googleapis.com/v0/b/devprobe-89481.appspot.com/o/Login-Register%2Fregister.avif?alt=media&token=4576bc4b-1400-4f42-9b0b-fe829e0b02b2","alt","register-ios-logo",1,"h-48","lg:h-96"],[1,"flex","flex-col","justify-center","items-center","lg:h-full","md:h-full"],[1,"flex","flex-col","justify-center","items-center","lg:min-w-20","bg-gray-800","p-10","lg:p-32","rounded-2xl"],[1,"font-bold","text-6xl","text-white","mb-6"],["label","Name","placeholder","Enter your name","type","text","labelPlacement","stacked",1,"",3,"ngModelChange","ngModel"],["label","Team Name","placeholder","Enter the org name","type","text","labelPlacement","stacked",1,"",3,"ngModelChange","ngModel"],["label","Email","placeholder","Enter your email","type","email","labelPlacement","stacked",1,"",3,"ngModelChange","ngModel"],["label","Password","placeholder","Enter your password","type","password","labelPlacement","stacked",1,"",3,"ngModelChange","ngModel"],[1,"m-4",3,"click"],[1,"flex","flex-col","lg:flex-row","md:flex-row","justify-center","items-center"],[1,"text-white","text-xs","lg:text-lg"],[1,"text-sm","lg:text-lg","text-blue-500","lg:ml-2",3,"routerLink"]],template:function(i,n){1&i&&(e.j41(0,"ion-content",0)(1,"ion-grid",1)(2,"ion-row",1)(3,"ion-col",2)(4,"div",3),e.nrm(5,"img",4),e.k0s()(),e.j41(6,"ion-col",2)(7,"div",5)(8,"div",6)(9,"h1",7),e.EFF(10,"Sign Up"),e.k0s(),e.j41(11,"ion-input",8),e.mxI("ngModelChange",function(l){return e.DH7(n.name,l)||(n.name=l),l}),e.k0s(),e.j41(12,"ion-input",9),e.mxI("ngModelChange",function(l){return e.DH7(n.orgName,l)||(n.orgName=l),l}),e.k0s(),e.j41(13,"ion-input",10),e.mxI("ngModelChange",function(l){return e.DH7(n.email,l)||(n.email=l),l}),e.k0s(),e.j41(14,"ion-input",11),e.mxI("ngModelChange",function(l){return e.DH7(n.password,l)||(n.password=l),l}),e.k0s(),e.j41(15,"ion-button",12),e.bIt("click",function(){return n.registerUser()}),e.EFF(16,"Register"),e.k0s(),e.j41(17,"div",13)(18,"p",14),e.EFF(19,"Already have an account?"),e.k0s(),e.j41(20,"a",15),e.EFF(21,"Login"),e.k0s()()()()()()()()),2&i&&(e.Y8G("fullscreen",!0),e.R7$(11),e.R50("ngModel",n.name),e.R7$(),e.R50("ngModel",n.orgName),e.R7$(),e.R50("ngModel",n.email),e.R7$(),e.R50("ngModel",n.password),e.R7$(6),e.Y8G("routerLink",e.lJ4(6,y)))},dependencies:[u.BC,u.vS,r.Jm,r.hU,r.W9,r.lO,r.$w,r.ln,r.Gw,r.oY,c.Wk]}),s})()}];let P=(()=>{var t;class s{}return(t=s).\u0275fac=function(i){return new(i||t)},t.\u0275mod=e.$C({type:t}),t.\u0275inj=e.G2t({imports:[c.iI.forChild(M),c.iI]}),s})(),C=(()=>{var t;class s{}return(t=s).\u0275fac=function(i){return new(i||t)},t.\u0275mod=e.$C({type:t}),t.\u0275inj=e.G2t({imports:[p.MD,u.YN,r.bv,P]}),s})()}}]); \ No newline at end of file +"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[5995],{5995:(w,h,o)=>{o.r(h),o.d(h,{RegisterPageModule:()=>C});var p=o(177),u=o(4341),r=o(7863),c=o(7650),m=o(467),e=o(4438),f=o(4796),R=o(2872);const y=()=>["/login"],M=[{path:"",component:(()=>{var t;class s{constructor(i,n,g,l){var a=this;this.authService=i,this.alertCtrl=n,this.navCtrl=g,this.loadingCtrl=l,this.name="",this.orgName="",this.email="",this.password="",this.registerUser=(0,m.A)(function*(){if(yield a.showLoading(),a.email&&a.password&&a.name&&a.orgName){const v={name:a.name,orgName:a.orgName,email:a.email,password:a.password};(yield a.authService.registerUser(v))?(yield a.hideLoading(),yield a.navCtrl.navigateRoot("/login")):(yield a.hideLoading(),yield a.showAlert("Registration failed. Please check the form data."))}else yield a.hideLoading(),yield a.showAlert("Please enter all the required fields.")})}ngOnInit(){}showAlert(i,n){var g=this;return(0,m.A)(function*(){yield(yield g.alertCtrl.create({header:n||"Registration Failed!",message:i,buttons:["OK"]})).present()})()}showLoading(){var i=this;return(0,m.A)(function*(){yield(yield i.loadingCtrl.create({})).present()})()}hideLoading(){var i=this;return(0,m.A)(function*(){yield i.loadingCtrl.dismiss()})()}}return(t=s).\u0275fac=function(i){return new(i||t)(e.rXU(f.u),e.rXU(r.hG),e.rXU(R.q9),e.rXU(r.Xi))},t.\u0275cmp=e.VBU({type:t,selectors:[["app-register"]],inputs:{name:"name",orgName:"orgName",email:"email",password:"password"},decls:22,vars:7,consts:[[1,"",3,"fullscreen"],[1,"h-full"],["size","12","size-sm","12","size-md","12","size-lg","6","size-xl","6",1,""],[1,"flex","flex-col","items-center","h-full","justify-end","lg:justify-center","md:justify-end"],["src","https://firebasestorage.googleapis.com/v0/b/devprobe-89481.appspot.com/o/Login-Register%2Fregister.avif?alt=media&token=4576bc4b-1400-4f42-9b0b-fe829e0b02b2","alt","register-ios-logo",1,"h-48","lg:h-96"],[1,"flex","flex-col","justify-center","items-center","lg:h-full","md:h-full"],[1,"flex","flex-col","justify-center","items-center","lg:min-w-20","bg-gray-800","p-10","lg:p-32","rounded-2xl"],[1,"font-bold","text-6xl","text-white","mb-6"],["label","Name","placeholder","Enter your name","type","text","labelPlacement","stacked",1,"",3,"ngModelChange","ngModel"],["label","Team Name","placeholder","Enter the org name","type","text","labelPlacement","stacked",1,"",3,"ngModelChange","ngModel"],["label","Email","placeholder","Enter your email","type","email","labelPlacement","stacked",1,"",3,"ngModelChange","ngModel"],["label","Password","placeholder","Enter your password","type","password","labelPlacement","stacked",1,"",3,"ngModelChange","ngModel"],[1,"m-4",3,"click"],[1,"flex","flex-col","lg:flex-row","md:flex-row","justify-center","items-center"],[1,"text-white","text-xs","lg:text-lg"],[1,"text-sm","lg:text-lg","text-blue-500","lg:ml-2",3,"routerLink"]],template:function(i,n){1&i&&(e.j41(0,"ion-content",0)(1,"ion-grid",1)(2,"ion-row",1)(3,"ion-col",2)(4,"div",3),e.nrm(5,"img",4),e.k0s()(),e.j41(6,"ion-col",2)(7,"div",5)(8,"div",6)(9,"h1",7),e.EFF(10,"Sign Up"),e.k0s(),e.j41(11,"ion-input",8),e.mxI("ngModelChange",function(l){return e.DH7(n.name,l)||(n.name=l),l}),e.k0s(),e.j41(12,"ion-input",9),e.mxI("ngModelChange",function(l){return e.DH7(n.orgName,l)||(n.orgName=l),l}),e.k0s(),e.j41(13,"ion-input",10),e.mxI("ngModelChange",function(l){return e.DH7(n.email,l)||(n.email=l),l}),e.k0s(),e.j41(14,"ion-input",11),e.mxI("ngModelChange",function(l){return e.DH7(n.password,l)||(n.password=l),l}),e.k0s(),e.j41(15,"ion-button",12),e.bIt("click",function(){return n.registerUser()}),e.EFF(16,"Register"),e.k0s(),e.j41(17,"div",13)(18,"p",14),e.EFF(19,"Already have an account?"),e.k0s(),e.j41(20,"a",15),e.EFF(21,"Login"),e.k0s()()()()()()()()),2&i&&(e.Y8G("fullscreen",!0),e.R7$(11),e.R50("ngModel",n.name),e.R7$(),e.R50("ngModel",n.orgName),e.R7$(),e.R50("ngModel",n.email),e.R7$(),e.R50("ngModel",n.password),e.R7$(6),e.Y8G("routerLink",e.lJ4(6,y)))},dependencies:[u.BC,u.vS,r.Jm,r.hU,r.W9,r.lO,r.$w,r.ln,r.Gw,r.oY,c.Wk]}),s})()}];let P=(()=>{var t;class s{}return(t=s).\u0275fac=function(i){return new(i||t)},t.\u0275mod=e.$C({type:t}),t.\u0275inj=e.G2t({imports:[c.iI.forChild(M),c.iI]}),s})(),C=(()=>{var t;class s{}return(t=s).\u0275fac=function(i){return new(i||t)},t.\u0275mod=e.$C({type:t}),t.\u0275inj=e.G2t({imports:[p.MD,u.YN,r.bv,P]}),s})()}}]); \ No newline at end of file diff --git a/www/7907.ef61612b4bf3b859.js b/www/6303.1f016d3c5e585274.js similarity index 98% rename from www/7907.ef61612b4bf3b859.js rename to www/6303.1f016d3c5e585274.js index e36f230..60de52b 100644 --- a/www/7907.ef61612b4bf3b859.js +++ b/www/6303.1f016d3c5e585274.js @@ -1 +1 @@ -"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[7907],{5553:(b,_,i)=>{i.d(_,{h:()=>p});var u=i(177),f=i(7863),c=i(4438);let p=(()=>{var d;class e{}return(d=e).\u0275fac=function(h){return new(h||d)},d.\u0275mod=c.$C({type:d}),d.\u0275inj=c.G2t({imports:[u.MD,f.bv]}),e})()},3241:(b,_,i)=>{i.d(_,{p:()=>p});var u=i(4438),f=i(177),c=i(7863);let p=(()=>{var d;class e{constructor(h){this.location=h,this.title="Header Title"}ngOnInit(){}goBack(){this.location.back()}}return(d=e).\u0275fac=function(h){return new(h||d)(u.rXU(f.aZ))},d.\u0275cmp=u.VBU({type:d,selectors:[["app-header-return"]],inputs:{title:"title"},decls:6,vars:2,consts:[[3,"translucent"],["slot","start","menu","menu-id"],["name","arrow-back","slot","start",1,"p-4","bigger-icon",3,"click"]],template:function(h,C){1&h&&(u.j41(0,"ion-header",0)(1,"ion-toolbar"),u.nrm(2,"ion-menu-button",1),u.j41(3,"ion-icon",2),u.bIt("click",function(){return C.goBack()}),u.k0s(),u.j41(4,"ion-title"),u.EFF(5),u.k0s()()()),2&h&&(u.Y8G("translucent",!0),u.R7$(5),u.JRh(C.title))},dependencies:[c.eU,c.iq,c.MC,c.BC,c.ai],styles:[".bigger-icon[_ngcontent-%COMP%]{font-size:1.5em}"]}),e})()},7907:(b,_,i)=>{i.r(_),i.d(_,{GraphTracePageModule:()=>I});var u=i(177),f=i(4341),c=i(7863),p=i(7650),d=i(467),e=i(4438),y=i(9032),h=i(2588),C=i(3241),j=i(2820),G=i(9549);const w=["messagesContainer"];function P(r,m){if(1&r){const l=e.RV6();e.j41(0,"ion-col",27)(1,"div",28)(2,"ion-avatar",29)(3,"ion-icon",30),e.bIt("click",function(){const o=e.eBV(l).$implicit,n=e.XpG();return e.Njj(n.toggleAiModal(o,!0))}),e.k0s()(),e.nrm(4,"div",25),e.j41(5,"ion-avatar",31)(6,"ion-icon",32),e.bIt("click",function(){const o=e.eBV(l).$implicit,n=e.XpG();return e.Njj(n.toggleAiModal(o))}),e.k0s()()(),e.j41(7,"ion-card",33)(8,"ion-card-title",34)(9,"h1",35),e.EFF(10),e.k0s()(),e.nrm(11,"br")(12,"div",36),e.k0s()()}if(2&r){const l=m.$implicit,t=e.XpG();e.R7$(2),e.Mz_("id","hover-trigger-",l,"-danger"),e.R7$(3),e.Mz_("id","hover-trigger-",l,""),e.R7$(5),e.JRh(l),e.R7$(2),e.Y8G("options",t.countryOptions[l])}}function R(r,m){if(1&r&&(e.j41(0,"div",40)(1,"markdown",41),e.EFF(2),e.k0s()()),2&r){const l=e.XpG().$implicit;e.R7$(2),e.JRh(l.message)}}function k(r,m){if(1&r&&(e.j41(0,"div",42)(1,"markdown",43),e.EFF(2),e.k0s()()),2&r){const l=e.XpG().$implicit;e.R7$(),e.Mz_("id","mk-",l.id,""),e.R7$(),e.JRh(l.message)}}function A(r,m){if(1&r&&(e.j41(0,"div",37),e.DNE(1,R,3,1,"div",38)(2,k,3,3,"div",39),e.k0s()),2&r){const l=m.$implicit;e.R7$(),e.Y8G("ngIf","User"===l.from),e.R7$(),e.Y8G("ngIf","AI"===l.from)}}const E=[{path:"",component:(()=>{var r;class m{constructor(t,o,n){this.ripeService=t,this.route=o,this.loadingCtrl=n,this.orgName="",this.productObjective="",this.user={},this.data=[],this.countries=[],this.countryOptions={},this.aiModal=!1,this.message="",this.vertexAI=(0,e.WQX)(y.L9),this.model=(0,y.oc)(this.vertexAI,{model:"gemini-1.5-flash"}),this.chat=this.model.startChat({history:[{role:"user",parts:[{text:"Hola, desde ahora en adelante quiero que seas un modelo experto en Software Quality Assurance y analista de datos, tu nombre es DevProbeAI, nunca lo puedes olvidar"}]},{role:"model",parts:[{text:"Soy un modelo experto en Software Quality Assurance, de igual forma tengo un masterado en anla\xedtica de datos \xbfEn qu\xe9 puedo ayudarte?"}]},{role:"user",parts:[{text:"Gracias, te voy a entregar un json con datos en unos minutos, necesito que lo analices y me des un resumen de los datos, este json contiene datos de varios traceroutes por un pais especifico, imagina que ,tu analisis tiene que ser detallado, si encuentras inconsistencias en los datos, por favor mencionalas, en caso de que creas que puede haber un error de ruteo por favor mencionalo, si encuentras algo interesante, por favor mencionalo, en resumen, necesito un analisis detallado de los datos"}]},{role:"model",parts:[{text:"Claro, env\xedame el json y yo me encargo de analizarlo"}]}]}),this.messages=[]}ionViewWillEnter(){var t=this;return(0,d.A)(function*(){t.route.queryParams.subscribe(n=>{t.productObjective=n.product});const o=localStorage.getItem("user");o&&(t.user=JSON.parse(o),t.orgName=t.user.orgName,t.data=[],t.getResultsHistoryforRtt().then(()=>{t.groupByDate().then(()=>{t.groupByCountry().then(()=>{t.populateCountries(),t.generateCountryOptions()})})}))})()}getResultsHistoryforRtt(){var t=this;return(0,d.A)(function*(){yield t.ripeService.getHistoryResults(t.orgName,t.productObjective).then(o=>{for(let n=0;nnew Date(a).getTime()-new Date(g).getTime());let s={};for(let a of n)s[a]=o[a];t.data=s,console.log(t.data)})()}groupByCountry(){var t=this;return(0,d.A)(function*(){let o={};for(let n in t.data){let s=t.data[n];o[n]||(o[n]={});for(let a=0;a0&&(o.push(a),n.push(g/v))}}const s=this.getRandomColor();this.countryOptions[t]={legend:{data:[t],align:"left",backgroundColor:"rgba(255, 255, 255, 0.9)"},tooltip:{},xAxis:{data:o,silent:!1,splitLine:{show:!1}},yAxis:{},series:[{name:t,type:"bar",data:n,itemStyle:{color:s},animationDelay:a=>10*a}],animationEasing:"elasticOut",animationDelayUpdate:a=>5*a}}}refresh(){window.location.reload()}ngOnInit(){}toggleAiModal(t,o){var n=this;return(0,d.A)(function*(){if(n.aiModal=!n.aiModal,t){console.log("Country: "+t);const s=n.countryOptions[t].series[0].data,a=n.countryOptions[t].xAxis.data;console.log(s),console.log(a);const g={country:t,data:{date:a,data:s}};yield n.sendMessage(g).then(()=>{n.chatStyle()})}})()}ngAfterViewChecked(){this.scrollToBottom()}scrollToBottom(){if(this.messagesContainer)try{this.messagesContainer.nativeElement.scrollTop=this.messagesContainer.nativeElement.scrollHeight}catch(t){console.error("Error al hacer scroll:",t)}}sendMessage(t){var o=this;return(0,d.A)(function*(){if(t){yield o.showLoading(),console.log("Country data:",t);const a=JSON.stringify(t),g=yield o.chat.sendMessage(a),v=o.messages.length;return o.messages.push({message:g.response.text(),from:"AI",id:v.toString()}),console.log("Message:",o.message),o.message="",void(yield o.hideLoading())}if(""===o.message)return void console.log("Message is empty");let n=o.messages.length;o.messages.push({message:o.message,from:"User",id:n.toString()});const s=yield o.chat.sendMessage(o.message);n=o.messages.length,o.messages.push({message:s.response.text(),from:"AI",id:n.toString()}),o.message=""})()}chatStyle(){const o=document.getElementById("mk-"+(this.messages.length-1));if(console.log(o),!o)return;let n=o.getElementsByTagName("h1"),s=o.getElementsByTagName("h2");for(var a=0;a{var r;class m{}return(r=m).\u0275fac=function(t){return new(t||r)},r.\u0275mod=e.$C({type:r}),r.\u0275inj=e.G2t({imports:[p.iI.forChild(E),p.iI]}),m})();var D=i(5553);let I=(()=>{var r;class m{}return(r=m).\u0275fac=function(t){return new(t||r)},r.\u0275mod=e.$C({type:r}),r.\u0275inj=e.G2t({imports:[u.MD,f.YN,c.bv,O,D.h,G.NN]}),m})()}}]); \ No newline at end of file +"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[6303],{5553:(b,_,i)=>{i.d(_,{h:()=>p});var u=i(177),f=i(7863),c=i(4438);let p=(()=>{var d;class e{}return(d=e).\u0275fac=function(h){return new(h||d)},d.\u0275mod=c.$C({type:d}),d.\u0275inj=c.G2t({imports:[u.MD,f.bv]}),e})()},3241:(b,_,i)=>{i.d(_,{p:()=>p});var u=i(4438),f=i(177),c=i(7863);let p=(()=>{var d;class e{constructor(h){this.location=h,this.title="Header Title"}ngOnInit(){}goBack(){this.location.back()}}return(d=e).\u0275fac=function(h){return new(h||d)(u.rXU(f.aZ))},d.\u0275cmp=u.VBU({type:d,selectors:[["app-header-return"]],inputs:{title:"title"},decls:6,vars:2,consts:[[3,"translucent"],["slot","start","menu","menu-id"],["name","arrow-back","slot","start",1,"p-4","bigger-icon",3,"click"]],template:function(h,C){1&h&&(u.j41(0,"ion-header",0)(1,"ion-toolbar"),u.nrm(2,"ion-menu-button",1),u.j41(3,"ion-icon",2),u.bIt("click",function(){return C.goBack()}),u.k0s(),u.j41(4,"ion-title"),u.EFF(5),u.k0s()()()),2&h&&(u.Y8G("translucent",!0),u.R7$(5),u.JRh(C.title))},dependencies:[c.eU,c.iq,c.MC,c.BC,c.ai],styles:[".bigger-icon[_ngcontent-%COMP%]{font-size:1.5em}"]}),e})()},6303:(b,_,i)=>{i.r(_),i.d(_,{GraphTracePageModule:()=>I});var u=i(177),f=i(4341),c=i(7863),p=i(7650),d=i(467),e=i(4438),y=i(9032),h=i(2588),C=i(3241),j=i(2820),G=i(9549);const w=["messagesContainer"];function P(r,m){if(1&r){const l=e.RV6();e.j41(0,"ion-col",27)(1,"div",28)(2,"ion-avatar",29)(3,"ion-icon",30),e.bIt("click",function(){const o=e.eBV(l).$implicit,n=e.XpG();return e.Njj(n.toggleAiModal(o,!0))}),e.k0s()(),e.nrm(4,"div",25),e.j41(5,"ion-avatar",31)(6,"ion-icon",32),e.bIt("click",function(){const o=e.eBV(l).$implicit,n=e.XpG();return e.Njj(n.toggleAiModal(o))}),e.k0s()()(),e.j41(7,"ion-card",33)(8,"ion-card-title",34)(9,"h1",35),e.EFF(10),e.k0s()(),e.nrm(11,"br")(12,"div",36),e.k0s()()}if(2&r){const l=m.$implicit,t=e.XpG();e.R7$(2),e.Mz_("id","hover-trigger-",l,"-danger"),e.R7$(3),e.Mz_("id","hover-trigger-",l,""),e.R7$(5),e.JRh(l),e.R7$(2),e.Y8G("options",t.countryOptions[l])}}function R(r,m){if(1&r&&(e.j41(0,"div",40)(1,"markdown",41),e.EFF(2),e.k0s()()),2&r){const l=e.XpG().$implicit;e.R7$(2),e.JRh(l.message)}}function k(r,m){if(1&r&&(e.j41(0,"div",42)(1,"markdown",43),e.EFF(2),e.k0s()()),2&r){const l=e.XpG().$implicit;e.R7$(),e.Mz_("id","mk-",l.id,""),e.R7$(),e.JRh(l.message)}}function A(r,m){if(1&r&&(e.j41(0,"div",37),e.DNE(1,R,3,1,"div",38)(2,k,3,3,"div",39),e.k0s()),2&r){const l=m.$implicit;e.R7$(),e.Y8G("ngIf","User"===l.from),e.R7$(),e.Y8G("ngIf","AI"===l.from)}}const E=[{path:"",component:(()=>{var r;class m{constructor(t,o,n){this.ripeService=t,this.route=o,this.loadingCtrl=n,this.orgName="",this.productObjective="",this.user={},this.data=[],this.countries=[],this.countryOptions={},this.aiModal=!1,this.message="",this.vertexAI=(0,e.WQX)(y.L9),this.model=(0,y.oc)(this.vertexAI,{model:"gemini-1.5-flash"}),this.chat=this.model.startChat({history:[{role:"user",parts:[{text:"Hola, desde ahora en adelante quiero que seas un modelo experto en Software Quality Assurance y analista de datos, tu nombre es DevProbeAI, nunca lo puedes olvidar"}]},{role:"model",parts:[{text:"Soy un modelo experto en Software Quality Assurance, de igual forma tengo un masterado en anla\xedtica de datos \xbfEn qu\xe9 puedo ayudarte?"}]},{role:"user",parts:[{text:"Gracias, te voy a entregar un json con datos en unos minutos, necesito que lo analices y me des un resumen de los datos, este json contiene datos de varios traceroutes por un pais especifico, imagina que ,tu analisis tiene que ser detallado, si encuentras inconsistencias en los datos, por favor mencionalas, en caso de que creas que puede haber un error de ruteo por favor mencionalo, si encuentras algo interesante, por favor mencionalo, en resumen, necesito un analisis detallado de los datos"}]},{role:"model",parts:[{text:"Claro, env\xedame el json y yo me encargo de analizarlo"}]}]}),this.messages=[]}ionViewWillEnter(){var t=this;return(0,d.A)(function*(){t.route.queryParams.subscribe(n=>{t.productObjective=n.product});const o=localStorage.getItem("user");o&&(t.user=JSON.parse(o),t.orgName=t.user.orgName,t.data=[],t.getResultsHistoryforRtt().then(()=>{t.groupByDate().then(()=>{t.groupByCountry().then(()=>{t.populateCountries(),t.generateCountryOptions()})})}))})()}getResultsHistoryforRtt(){var t=this;return(0,d.A)(function*(){yield t.ripeService.getHistoryResults(t.orgName,t.productObjective).then(o=>{for(let n=0;nnew Date(a).getTime()-new Date(g).getTime());let s={};for(let a of n)s[a]=o[a];t.data=s,console.log(t.data)})()}groupByCountry(){var t=this;return(0,d.A)(function*(){let o={};for(let n in t.data){let s=t.data[n];o[n]||(o[n]={});for(let a=0;a0&&(o.push(a),n.push(g/v))}}const s=this.getRandomColor();this.countryOptions[t]={legend:{data:[t],align:"left",backgroundColor:"rgba(255, 255, 255, 0.9)"},tooltip:{},xAxis:{data:o,silent:!1,splitLine:{show:!1}},yAxis:{},series:[{name:t,type:"bar",data:n,itemStyle:{color:s},animationDelay:a=>10*a}],animationEasing:"elasticOut",animationDelayUpdate:a=>5*a}}}refresh(){window.location.reload()}ngOnInit(){}toggleAiModal(t,o){var n=this;return(0,d.A)(function*(){if(n.aiModal=!n.aiModal,t){console.log("Country: "+t);const s=n.countryOptions[t].series[0].data,a=n.countryOptions[t].xAxis.data;console.log(s),console.log(a);const g={country:t,data:{date:a,data:s}};yield n.sendMessage(g).then(()=>{n.chatStyle()})}})()}ngAfterViewChecked(){this.scrollToBottom()}scrollToBottom(){if(this.messagesContainer)try{this.messagesContainer.nativeElement.scrollTop=this.messagesContainer.nativeElement.scrollHeight}catch(t){console.error("Error al hacer scroll:",t)}}sendMessage(t){var o=this;return(0,d.A)(function*(){if(t){yield o.showLoading(),console.log("Country data:",t);const a=JSON.stringify(t),g=yield o.chat.sendMessage(a),v=o.messages.length;return o.messages.push({message:g.response.text(),from:"AI",id:v.toString()}),console.log("Message:",o.message),o.message="",void(yield o.hideLoading())}if(""===o.message)return void console.log("Message is empty");let n=o.messages.length;o.messages.push({message:o.message,from:"User",id:n.toString()});const s=yield o.chat.sendMessage(o.message);n=o.messages.length,o.messages.push({message:s.response.text(),from:"AI",id:n.toString()}),o.message=""})()}chatStyle(){const o=document.getElementById("mk-"+(this.messages.length-1));if(console.log(o),!o)return;let n=o.getElementsByTagName("h1"),s=o.getElementsByTagName("h2");for(var a=0;a{var r;class m{}return(r=m).\u0275fac=function(t){return new(t||r)},r.\u0275mod=e.$C({type:r}),r.\u0275inj=e.G2t({imports:[p.iI.forChild(E),p.iI]}),m})();var D=i(5553);let I=(()=>{var r;class m{}return(r=m).\u0275fac=function(t){return new(t||r)},r.\u0275mod=e.$C({type:r}),r.\u0275inj=e.G2t({imports:[u.MD,f.YN,c.bv,O,D.h,G.NN]}),m})()}}]); \ No newline at end of file diff --git a/www/2839.45a84ab42dbf5be1.js b/www/6480.2d3c5432c242ecc0.js similarity index 97% rename from www/2839.45a84ab42dbf5be1.js rename to www/6480.2d3c5432c242ecc0.js index adc0e22..24f7a97 100644 --- a/www/2839.45a84ab42dbf5be1.js +++ b/www/6480.2d3c5432c242ecc0.js @@ -1 +1 @@ -"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[2839],{5553:(F,h,r)=>{r.d(h,{h:()=>p});var s=r(177),f=r(7863),n=r(4438);let p=(()=>{var i;class e{}return(i=e).\u0275fac=function(u){return new(u||i)},i.\u0275mod=n.$C({type:i}),i.\u0275inj=n.G2t({imports:[s.MD,f.bv]}),e})()},3241:(F,h,r)=>{r.d(h,{p:()=>p});var s=r(4438),f=r(177),n=r(7863);let p=(()=>{var i;class e{constructor(u){this.location=u,this.title="Header Title"}ngOnInit(){}goBack(){this.location.back()}}return(i=e).\u0275fac=function(u){return new(u||i)(s.rXU(f.aZ))},i.\u0275cmp=s.VBU({type:i,selectors:[["app-header-return"]],inputs:{title:"title"},decls:6,vars:2,consts:[[3,"translucent"],["slot","start","menu","menu-id"],["name","arrow-back","slot","start",1,"p-4","bigger-icon",3,"click"]],template:function(u,_){1&u&&(s.j41(0,"ion-header",0)(1,"ion-toolbar"),s.nrm(2,"ion-menu-button",1),s.j41(3,"ion-icon",2),s.bIt("click",function(){return _.goBack()}),s.k0s(),s.j41(4,"ion-title"),s.EFF(5),s.k0s()()()),2&u&&(s.Y8G("translucent",!0),s.R7$(5),s.JRh(_.title))},dependencies:[n.eU,n.iq,n.MC,n.BC,n.ai],styles:[".bigger-icon[_ngcontent-%COMP%]{font-size:1.5em}"]}),e})()},2839:(F,h,r)=>{r.r(h),r.d(h,{FlameGraphDatePageModule:()=>G});var s=r(177),f=r(4341),n=r(7863),p=r(7650),i=r(467),e=r(4438),g=r(6560),u=r(8453),_=r(3241);function C(a,c){if(1&a){const l=e.RV6();e.j41(0,"ion-item",11),e.bIt("click",function(){const o=e.eBV(l).$implicit,m=e.XpG();return e.Njj(m.viewUsageForDate(o))}),e.j41(1,"ion-label"),e.EFF(2),e.k0s()()}if(2&a){const l=c.$implicit;e.R7$(2),e.JRh(l)}}function D(a,c){if(1&a){const l=e.RV6();e.j41(0,"ion-item",8)(1,"ion-checkbox",12),e.bIt("ionChange",function(o){const m=e.eBV(l).$implicit,d=e.XpG();return e.Njj(d.onCheckBoxChange(o,m))}),e.EFF(2),e.k0s()()}if(2&a){const l=c.$implicit;e.R7$(2),e.JRh(l)}}const y=[{path:"",component:(()=>{var a;class c{constructor(t,o,m,d){this.flameGraphService=t,this.loadingCtrl=o,this.router=m,this.route=d,this.dates=[],this.product={},this.usage_type="",this.checkedForComparison=[],this.isCompareButtonEnabled=!1}ionViewWillEnter(){var t=this;return(0,i.A)(function*(){t.getProductFromParams(),yield t.getDates()})()}getProductFromParams(){this.route.queryParams.subscribe(t=>{this.product=JSON.parse(t.product),this.usage_type=this.route.snapshot.queryParamMap.get("usage_type")}),console.log(this.product.productObjective),console.log(this.usage_type)}getDates(){var t=this;return(0,i.A)(function*(){try{yield t.showLoading();const o=localStorage.getItem("user");if(!o)return;const d=JSON.parse(o).orgName;console.log(d),"cpu"===t.usage_type&&(t.usage_type=void 0),t.dates=yield t.flameGraphService.getDates(d,t.product.productObjective,t.usage_type),console.log(t.dates),yield t.hideLoading(),0===t.dates.length&&t.dates.push("No dates found")}catch(o){console.log(o)}})()}viewUsageForDate(t){var o=this;return(0,i.A)(function*(){yield o.router.navigate(["/flame-graph"],{queryParams:{product:JSON.stringify(o.product),date:t,usage_type:o.usage_type}})})()}doRefresh(t){var o=this;return(0,i.A)(function*(){yield o.getDates(),t.target.complete()})()}showLoading(){var t=this;return(0,i.A)(function*(){yield(yield t.loadingCtrl.create({})).present()})()}hideLoading(){var t=this;return(0,i.A)(function*(){yield t.loadingCtrl.dismiss()})()}ngOnInit(){}onCheckBoxChange(t,o){t.detail.checked?this.checkedForComparison.push(o):this.checkedForComparison=this.checkedForComparison.filter(m=>m!==o),this.isCompareButtonEnabled=this.checkedForComparison.length>1}compareDates(){this.router.navigate(["/flame-graph-compare"],{queryParams:{product:JSON.stringify(this.product),dates:JSON.stringify(this.checkedForComparison),usage_type:this.usage_type}})}}return(a=c).\u0275fac=function(t){return new(t||a)(e.rXU(g.x),e.rXU(n.Xi),e.rXU(p.Ix),e.rXU(p.nX))},a.\u0275cmp=e.VBU({type:a,selectors:[["app-flame-graph-date"]],decls:28,vars:7,consts:[[3,"title"],[3,"fullscreen"],["slot","fixed",3,"ionRefresh"],[1,"lg:m-10","md:m-10"],["size","12","size-md","4","size-lg","4",1,""],[1,"lg:m-10"],["size","12"],[1,"bg-white",3,"inset"],["color","dark"],["size","12",1,"ion-text-center"],[3,"click","disabled"],["color","dark",3,"click"],["justify","space-between",3,"ionChange"]],template:function(t,o){1&t&&(e.nrm(0,"app-header-return",0),e.j41(1,"ion-content",1)(2,"ion-refresher",2),e.bIt("ionRefresh",function(d){return o.doRefresh(d)}),e.nrm(3,"ion-refresher-content"),e.k0s(),e.j41(4,"ion-grid"),e.nrm(5,"app-title",0),e.j41(6,"ion-row",3)(7,"ion-col",4)(8,"p"),e.EFF(9,"Choose a date to see the server usage."),e.k0s()()(),e.j41(10,"ion-row",5)(11,"ion-col",6)(12,"ion-list",7),e.Z7z(13,C,3,1,"ion-item",8,e.fX1),e.k0s()()(),e.nrm(15,"app-title",0),e.j41(16,"ion-row",3)(17,"ion-col",4)(18,"p"),e.EFF(19,"Choose two dates to compare the server usage."),e.k0s()()(),e.j41(20,"ion-row",5)(21,"ion-col",6)(22,"ion-list",7),e.Z7z(23,D,3,1,"ion-item",8,e.fX1),e.k0s()(),e.j41(25,"ion-col",9)(26,"ion-button",10),e.bIt("click",function(){return o.compareDates()}),e.EFF(27,"Compare"),e.k0s()()()()()),2&t&&(e.Y8G("title","Usage for date"),e.R7$(),e.Y8G("fullscreen",!0),e.R7$(4),e.Y8G("title","Usage for date"),e.R7$(7),e.Y8G("inset",!0),e.R7$(),e.Dyx(o.dates),e.R7$(2),e.Y8G("title","Compare two dates"),e.R7$(7),e.Y8G("inset",!0),e.R7$(),e.Dyx(o.dates),e.R7$(3),e.Y8G("disabled",!o.isCompareButtonEnabled))},dependencies:[n.Jm,n.eY,n.hU,n.W9,n.lO,n.uz,n.he,n.nf,n.To,n.Ki,n.ln,n.hB,u.W,_.p]}),c})()}];let v=(()=>{var a;class c{}return(a=c).\u0275fac=function(t){return new(t||a)},a.\u0275mod=e.$C({type:a}),a.\u0275inj=e.G2t({imports:[p.iI.forChild(y),p.iI]}),c})();var P=r(5553);let G=(()=>{var a;class c{}return(a=c).\u0275fac=function(t){return new(t||a)},a.\u0275mod=e.$C({type:a}),a.\u0275inj=e.G2t({imports:[s.MD,f.YN,n.bv,v,P.h]}),c})()}}]); \ No newline at end of file +"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[6480],{5553:(F,h,r)=>{r.d(h,{h:()=>p});var s=r(177),f=r(7863),n=r(4438);let p=(()=>{var i;class e{}return(i=e).\u0275fac=function(u){return new(u||i)},i.\u0275mod=n.$C({type:i}),i.\u0275inj=n.G2t({imports:[s.MD,f.bv]}),e})()},3241:(F,h,r)=>{r.d(h,{p:()=>p});var s=r(4438),f=r(177),n=r(7863);let p=(()=>{var i;class e{constructor(u){this.location=u,this.title="Header Title"}ngOnInit(){}goBack(){this.location.back()}}return(i=e).\u0275fac=function(u){return new(u||i)(s.rXU(f.aZ))},i.\u0275cmp=s.VBU({type:i,selectors:[["app-header-return"]],inputs:{title:"title"},decls:6,vars:2,consts:[[3,"translucent"],["slot","start","menu","menu-id"],["name","arrow-back","slot","start",1,"p-4","bigger-icon",3,"click"]],template:function(u,_){1&u&&(s.j41(0,"ion-header",0)(1,"ion-toolbar"),s.nrm(2,"ion-menu-button",1),s.j41(3,"ion-icon",2),s.bIt("click",function(){return _.goBack()}),s.k0s(),s.j41(4,"ion-title"),s.EFF(5),s.k0s()()()),2&u&&(s.Y8G("translucent",!0),s.R7$(5),s.JRh(_.title))},dependencies:[n.eU,n.iq,n.MC,n.BC,n.ai],styles:[".bigger-icon[_ngcontent-%COMP%]{font-size:1.5em}"]}),e})()},6480:(F,h,r)=>{r.r(h),r.d(h,{FlameGraphDatePageModule:()=>G});var s=r(177),f=r(4341),n=r(7863),p=r(7650),i=r(467),e=r(4438),g=r(6560),u=r(8453),_=r(3241);function C(a,c){if(1&a){const l=e.RV6();e.j41(0,"ion-item",11),e.bIt("click",function(){const o=e.eBV(l).$implicit,m=e.XpG();return e.Njj(m.viewUsageForDate(o))}),e.j41(1,"ion-label"),e.EFF(2),e.k0s()()}if(2&a){const l=c.$implicit;e.R7$(2),e.JRh(l)}}function D(a,c){if(1&a){const l=e.RV6();e.j41(0,"ion-item",8)(1,"ion-checkbox",12),e.bIt("ionChange",function(o){const m=e.eBV(l).$implicit,d=e.XpG();return e.Njj(d.onCheckBoxChange(o,m))}),e.EFF(2),e.k0s()()}if(2&a){const l=c.$implicit;e.R7$(2),e.JRh(l)}}const y=[{path:"",component:(()=>{var a;class c{constructor(t,o,m,d){this.flameGraphService=t,this.loadingCtrl=o,this.router=m,this.route=d,this.dates=[],this.product={},this.usage_type="",this.checkedForComparison=[],this.isCompareButtonEnabled=!1}ionViewWillEnter(){var t=this;return(0,i.A)(function*(){t.getProductFromParams(),yield t.getDates()})()}getProductFromParams(){this.route.queryParams.subscribe(t=>{this.product=JSON.parse(t.product),this.usage_type=this.route.snapshot.queryParamMap.get("usage_type")}),console.log(this.product.productObjective),console.log(this.usage_type)}getDates(){var t=this;return(0,i.A)(function*(){try{yield t.showLoading();const o=localStorage.getItem("user");if(!o)return;const d=JSON.parse(o).orgName;console.log(d),"cpu"===t.usage_type&&(t.usage_type=void 0),t.dates=yield t.flameGraphService.getDates(d,t.product.productObjective,t.usage_type),console.log(t.dates),yield t.hideLoading(),0===t.dates.length&&t.dates.push("No dates found")}catch(o){console.log(o)}})()}viewUsageForDate(t){var o=this;return(0,i.A)(function*(){yield o.router.navigate(["/flame-graph"],{queryParams:{product:JSON.stringify(o.product),date:t,usage_type:o.usage_type}})})()}doRefresh(t){var o=this;return(0,i.A)(function*(){yield o.getDates(),t.target.complete()})()}showLoading(){var t=this;return(0,i.A)(function*(){yield(yield t.loadingCtrl.create({})).present()})()}hideLoading(){var t=this;return(0,i.A)(function*(){yield t.loadingCtrl.dismiss()})()}ngOnInit(){}onCheckBoxChange(t,o){t.detail.checked?this.checkedForComparison.push(o):this.checkedForComparison=this.checkedForComparison.filter(m=>m!==o),this.isCompareButtonEnabled=this.checkedForComparison.length>1}compareDates(){this.router.navigate(["/flame-graph-compare"],{queryParams:{product:JSON.stringify(this.product),dates:JSON.stringify(this.checkedForComparison),usage_type:this.usage_type}})}}return(a=c).\u0275fac=function(t){return new(t||a)(e.rXU(g.x),e.rXU(n.Xi),e.rXU(p.Ix),e.rXU(p.nX))},a.\u0275cmp=e.VBU({type:a,selectors:[["app-flame-graph-date"]],decls:28,vars:7,consts:[[3,"title"],[3,"fullscreen"],["slot","fixed",3,"ionRefresh"],[1,"lg:m-10","md:m-10"],["size","12","size-md","4","size-lg","4",1,""],[1,"lg:m-10"],["size","12"],[1,"bg-white",3,"inset"],["color","dark"],["size","12",1,"ion-text-center"],[3,"click","disabled"],["color","dark",3,"click"],["justify","space-between",3,"ionChange"]],template:function(t,o){1&t&&(e.nrm(0,"app-header-return",0),e.j41(1,"ion-content",1)(2,"ion-refresher",2),e.bIt("ionRefresh",function(d){return o.doRefresh(d)}),e.nrm(3,"ion-refresher-content"),e.k0s(),e.j41(4,"ion-grid"),e.nrm(5,"app-title",0),e.j41(6,"ion-row",3)(7,"ion-col",4)(8,"p"),e.EFF(9,"Choose a date to see the server usage."),e.k0s()()(),e.j41(10,"ion-row",5)(11,"ion-col",6)(12,"ion-list",7),e.Z7z(13,C,3,1,"ion-item",8,e.fX1),e.k0s()()(),e.nrm(15,"app-title",0),e.j41(16,"ion-row",3)(17,"ion-col",4)(18,"p"),e.EFF(19,"Choose two dates to compare the server usage."),e.k0s()()(),e.j41(20,"ion-row",5)(21,"ion-col",6)(22,"ion-list",7),e.Z7z(23,D,3,1,"ion-item",8,e.fX1),e.k0s()(),e.j41(25,"ion-col",9)(26,"ion-button",10),e.bIt("click",function(){return o.compareDates()}),e.EFF(27,"Compare"),e.k0s()()()()()),2&t&&(e.Y8G("title","Usage for date"),e.R7$(),e.Y8G("fullscreen",!0),e.R7$(4),e.Y8G("title","Usage for date"),e.R7$(7),e.Y8G("inset",!0),e.R7$(),e.Dyx(o.dates),e.R7$(2),e.Y8G("title","Compare two dates"),e.R7$(7),e.Y8G("inset",!0),e.R7$(),e.Dyx(o.dates),e.R7$(3),e.Y8G("disabled",!o.isCompareButtonEnabled))},dependencies:[n.Jm,n.eY,n.hU,n.W9,n.lO,n.uz,n.he,n.nf,n.To,n.Ki,n.ln,n.hB,u.W,_.p]}),c})()}];let v=(()=>{var a;class c{}return(a=c).\u0275fac=function(t){return new(t||a)},a.\u0275mod=e.$C({type:a}),a.\u0275inj=e.G2t({imports:[p.iI.forChild(y),p.iI]}),c})();var P=r(5553);let G=(()=>{var a;class c{}return(a=c).\u0275fac=function(t){return new(t||a)},a.\u0275mod=e.$C({type:a}),a.\u0275inj=e.G2t({imports:[s.MD,f.YN,n.bv,v,P.h]}),c})()}}]); \ No newline at end of file diff --git a/www/6688.11584b254a031d91.js b/www/6536.a4f178f939f2d134.js similarity index 98% rename from www/6688.11584b254a031d91.js rename to www/6536.a4f178f939f2d134.js index 689ab91..5a13c37 100644 --- a/www/6688.11584b254a031d91.js +++ b/www/6536.a4f178f939f2d134.js @@ -1 +1 @@ -"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[6688],{6688:(M,h,a)=>{a.r(h),a.d(h,{LoginPageModule:()=>P});var f=a(177),c=a(4341),t=a(7863),m=a(7650),u=a(467),e=a(4438),p=a(4796),y=a(2872);const L=()=>["/register"],v=[{path:"",component:(()=>{var n;class r{constructor(i,o,d,s){var l=this;this.authService=i,this.alertCtrl=o,this.navCtrl=d,this.loadingCtrl=s,this.email="",this.password="",this.loginUser=(0,u.A)(function*(){if(yield l.showLoading(),l.email&&l.password){const C={email:l.email,password:l.password};(yield l.authService.loginUser(C))?(yield l.hideLoading(),yield l.navCtrl.navigateRoot("/home")):(yield l.hideLoading(),yield l.showAlert("Login failed. Please check your email and password."))}else yield l.hideLoading(),yield l.showAlert("Please enter your email and password.")})}ngOnInit(){}showAlert(i){var o=this;return(0,u.A)(function*(){yield(yield o.alertCtrl.create({header:"Login Failed!",message:i,buttons:["OK"]})).present()})()}showLoading(){var i=this;return(0,u.A)(function*(){yield(yield i.loadingCtrl.create({})).present()})()}hideLoading(){var i=this;return(0,u.A)(function*(){yield i.loadingCtrl.dismiss()})()}}return(n=r).\u0275fac=function(i){return new(i||n)(e.rXU(p.u),e.rXU(t.hG),e.rXU(y.q9),e.rXU(t.Xi))},n.\u0275cmp=e.VBU({type:n,selectors:[["app-login"]],inputs:{email:"email",password:"password"},decls:20,vars:5,consts:[[1,"",3,"fullscreen"],[1,"h-full"],["size","12","size-sm","12","size-md","12","size-lg","6","size-xl","6",1,""],[1,"flex","flex-col","items-center","h-full","justify-end","lg:justify-center","md:justify-end"],["src","https://firebasestorage.googleapis.com/v0/b/devprobe-89481.appspot.com/o/Login-Register%2Flogin.avif?alt=media&token=392ce685-399e-4a20-ae9d-2053d1368535","alt","login-ios-logo",1,"h-48","lg:h-96"],[1,"flex","flex-col","justify-center","items-center","lg:h-full","md:h-full"],[1,"flex","flex-col","justify-center","items-center","lg:min-w-20","bg-gray-800","p-10","lg:p-32","rounded-2xl"],[1,"font-bold","text-6xl","text-white","mb-6"],["label","Email","placeholder","Enter your email","type","email","labelPlacement","stacked",1,"",3,"ngModelChange","ngModel"],["label","Password","placeholder","Enter your password","type","password","labelPlacement","stacked",1,"",3,"ngModelChange","ngModel"],[1,"m-4",3,"click"],[1,"flex","flex-col","lg:flex-row","md:flex-row","justify-center","items-center"],[1,"text-white","text-xs","lg:text-lg"],[1,"text-sm","lg:text-lg","text-blue-500","lg:ml-2",3,"routerLink"]],template:function(i,o){1&i&&(e.j41(0,"ion-content",0)(1,"ion-grid",1)(2,"ion-row",1)(3,"ion-col",2)(4,"div",3),e.nrm(5,"img",4),e.k0s()(),e.j41(6,"ion-col",2)(7,"div",5)(8,"div",6)(9,"h1",7),e.EFF(10,"Sign In"),e.k0s(),e.j41(11,"ion-input",8),e.mxI("ngModelChange",function(s){return e.DH7(o.email,s)||(o.email=s),s}),e.k0s(),e.j41(12,"ion-input",9),e.mxI("ngModelChange",function(s){return e.DH7(o.password,s)||(o.password=s),s}),e.k0s(),e.j41(13,"ion-button",10),e.bIt("click",function(){return o.loginUser()}),e.EFF(14,"Login"),e.k0s(),e.j41(15,"div",11)(16,"p",12),e.EFF(17,"Don't have an account?"),e.k0s(),e.j41(18,"a",13),e.EFF(19,"Register"),e.k0s()()()()()()()()),2&i&&(e.Y8G("fullscreen",!0),e.R7$(11),e.R50("ngModel",o.email),e.R7$(),e.R50("ngModel",o.password),e.R7$(6),e.Y8G("routerLink",e.lJ4(4,L)))},dependencies:[c.BC,c.vS,t.Jm,t.hU,t.W9,t.lO,t.$w,t.ln,t.Gw,t.oY,m.Wk]}),r})()}];let w=(()=>{var n;class r{}return(n=r).\u0275fac=function(i){return new(i||n)},n.\u0275mod=e.$C({type:n}),n.\u0275inj=e.G2t({imports:[m.iI.forChild(v),m.iI]}),r})(),P=(()=>{var n;class r{}return(n=r).\u0275fac=function(i){return new(i||n)},n.\u0275mod=e.$C({type:n}),n.\u0275inj=e.G2t({imports:[f.MD,c.YN,t.bv,w]}),r})()}}]); \ No newline at end of file +"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[6536],{6536:(M,h,a)=>{a.r(h),a.d(h,{LoginPageModule:()=>P});var f=a(177),c=a(4341),t=a(7863),m=a(7650),u=a(467),e=a(4438),p=a(4796),y=a(2872);const L=()=>["/register"],v=[{path:"",component:(()=>{var n;class r{constructor(i,o,d,s){var l=this;this.authService=i,this.alertCtrl=o,this.navCtrl=d,this.loadingCtrl=s,this.email="",this.password="",this.loginUser=(0,u.A)(function*(){if(yield l.showLoading(),l.email&&l.password){const C={email:l.email,password:l.password};(yield l.authService.loginUser(C))?(yield l.hideLoading(),yield l.navCtrl.navigateRoot("/home")):(yield l.hideLoading(),yield l.showAlert("Login failed. Please check your email and password."))}else yield l.hideLoading(),yield l.showAlert("Please enter your email and password.")})}ngOnInit(){}showAlert(i){var o=this;return(0,u.A)(function*(){yield(yield o.alertCtrl.create({header:"Login Failed!",message:i,buttons:["OK"]})).present()})()}showLoading(){var i=this;return(0,u.A)(function*(){yield(yield i.loadingCtrl.create({})).present()})()}hideLoading(){var i=this;return(0,u.A)(function*(){yield i.loadingCtrl.dismiss()})()}}return(n=r).\u0275fac=function(i){return new(i||n)(e.rXU(p.u),e.rXU(t.hG),e.rXU(y.q9),e.rXU(t.Xi))},n.\u0275cmp=e.VBU({type:n,selectors:[["app-login"]],inputs:{email:"email",password:"password"},decls:20,vars:5,consts:[[1,"",3,"fullscreen"],[1,"h-full"],["size","12","size-sm","12","size-md","12","size-lg","6","size-xl","6",1,""],[1,"flex","flex-col","items-center","h-full","justify-end","lg:justify-center","md:justify-end"],["src","https://firebasestorage.googleapis.com/v0/b/devprobe-89481.appspot.com/o/Login-Register%2Flogin.avif?alt=media&token=392ce685-399e-4a20-ae9d-2053d1368535","alt","login-ios-logo",1,"h-48","lg:h-96"],[1,"flex","flex-col","justify-center","items-center","lg:h-full","md:h-full"],[1,"flex","flex-col","justify-center","items-center","lg:min-w-20","bg-gray-800","p-10","lg:p-32","rounded-2xl"],[1,"font-bold","text-6xl","text-white","mb-6"],["label","Email","placeholder","Enter your email","type","email","labelPlacement","stacked",1,"",3,"ngModelChange","ngModel"],["label","Password","placeholder","Enter your password","type","password","labelPlacement","stacked",1,"",3,"ngModelChange","ngModel"],[1,"m-4",3,"click"],[1,"flex","flex-col","lg:flex-row","md:flex-row","justify-center","items-center"],[1,"text-white","text-xs","lg:text-lg"],[1,"text-sm","lg:text-lg","text-blue-500","lg:ml-2",3,"routerLink"]],template:function(i,o){1&i&&(e.j41(0,"ion-content",0)(1,"ion-grid",1)(2,"ion-row",1)(3,"ion-col",2)(4,"div",3),e.nrm(5,"img",4),e.k0s()(),e.j41(6,"ion-col",2)(7,"div",5)(8,"div",6)(9,"h1",7),e.EFF(10,"Sign In"),e.k0s(),e.j41(11,"ion-input",8),e.mxI("ngModelChange",function(s){return e.DH7(o.email,s)||(o.email=s),s}),e.k0s(),e.j41(12,"ion-input",9),e.mxI("ngModelChange",function(s){return e.DH7(o.password,s)||(o.password=s),s}),e.k0s(),e.j41(13,"ion-button",10),e.bIt("click",function(){return o.loginUser()}),e.EFF(14,"Login"),e.k0s(),e.j41(15,"div",11)(16,"p",12),e.EFF(17,"Don't have an account?"),e.k0s(),e.j41(18,"a",13),e.EFF(19,"Register"),e.k0s()()()()()()()()),2&i&&(e.Y8G("fullscreen",!0),e.R7$(11),e.R50("ngModel",o.email),e.R7$(),e.R50("ngModel",o.password),e.R7$(6),e.Y8G("routerLink",e.lJ4(4,L)))},dependencies:[c.BC,c.vS,t.Jm,t.hU,t.W9,t.lO,t.$w,t.ln,t.Gw,t.oY,m.Wk]}),r})()}];let w=(()=>{var n;class r{}return(n=r).\u0275fac=function(i){return new(i||n)},n.\u0275mod=e.$C({type:n}),n.\u0275inj=e.G2t({imports:[m.iI.forChild(v),m.iI]}),r})(),P=(()=>{var n;class r{}return(n=r).\u0275fac=function(i){return new(i||n)},n.\u0275mod=e.$C({type:n}),n.\u0275inj=e.G2t({imports:[f.MD,c.YN,t.bv,w]}),r})()}}]); \ No newline at end of file diff --git a/www/7923.a53b6d582c6506e1.js b/www/6975.6d2e5de0574c6402.js similarity index 98% rename from www/7923.a53b6d582c6506e1.js rename to www/6975.6d2e5de0574c6402.js index 6e22ce7..05e45ce 100644 --- a/www/7923.a53b6d582c6506e1.js +++ b/www/6975.6d2e5de0574c6402.js @@ -1 +1 @@ -"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[7923],{5553:(M,_,i)=>{i.d(_,{h:()=>p});var g=i(177),f=i(7863),d=i(4438);let p=(()=>{var c;class e{}return(c=e).\u0275fac=function(h){return new(h||c)},c.\u0275mod=d.$C({type:c}),c.\u0275inj=d.G2t({imports:[g.MD,f.bv]}),e})()},3241:(M,_,i)=>{i.d(_,{p:()=>p});var g=i(4438),f=i(177),d=i(7863);let p=(()=>{var c;class e{constructor(h){this.location=h,this.title="Header Title"}ngOnInit(){}goBack(){this.location.back()}}return(c=e).\u0275fac=function(h){return new(h||c)(g.rXU(f.aZ))},c.\u0275cmp=g.VBU({type:c,selectors:[["app-header-return"]],inputs:{title:"title"},decls:6,vars:2,consts:[[3,"translucent"],["slot","start","menu","menu-id"],["name","arrow-back","slot","start",1,"p-4","bigger-icon",3,"click"]],template:function(h,x){1&h&&(g.j41(0,"ion-header",0)(1,"ion-toolbar"),g.nrm(2,"ion-menu-button",1),g.j41(3,"ion-icon",2),g.bIt("click",function(){return x.goBack()}),g.k0s(),g.j41(4,"ion-title"),g.EFF(5),g.k0s()()()),2&h&&(g.Y8G("translucent",!0),g.R7$(5),g.JRh(x.title))},dependencies:[d.eU,d.iq,d.MC,d.BC,d.ai],styles:[".bigger-icon[_ngcontent-%COMP%]{font-size:1.5em}"]}),e})()},7923:(M,_,i)=>{i.r(_),i.d(_,{GraphPageModule:()=>O});var g=i(177),f=i(4341),d=i(7863),p=i(7650),c=i(467),e=i(4438),y=i(9032),h=i(9640),x=i(2820),C=i(3241),b=i(9549);const j=["messagesContainer"];function G(s,m){if(1&s){const l=e.RV6();e.j41(0,"ion-col",27)(1,"div",28)(2,"ion-avatar",29)(3,"ion-icon",30),e.bIt("click",function(){const n=e.eBV(l).$implicit,o=e.XpG();return e.Njj(o.toggleAiModal(n,!0))}),e.k0s()(),e.nrm(4,"div",25),e.j41(5,"ion-avatar",31)(6,"ion-icon",32),e.bIt("click",function(){const n=e.eBV(l).$implicit,o=e.XpG();return e.Njj(o.toggleAiModal(n))}),e.k0s()()(),e.j41(7,"ion-card",33)(8,"h1",34),e.EFF(9),e.k0s(),e.nrm(10,"br")(11,"div",35),e.k0s()()}if(2&s){const l=m.$implicit,t=e.XpG();e.R7$(2),e.Mz_("id","hover-trigger-",l,"-danger"),e.R7$(3),e.Mz_("id","hover-trigger-",l,""),e.R7$(4),e.JRh(l),e.R7$(2),e.Y8G("options",t.countryOptions[l])}}function P(s,m){if(1&s&&(e.j41(0,"div",39)(1,"markdown",40),e.EFF(2),e.k0s()()),2&s){const l=e.XpG().$implicit;e.R7$(2),e.JRh(l.message)}}function w(s,m){if(1&s&&(e.j41(0,"div",41)(1,"markdown",42),e.EFF(2),e.k0s()()),2&s){const l=e.XpG().$implicit;e.R7$(),e.Mz_("id","mk-",l.id,""),e.R7$(),e.JRh(l.message)}}function R(s,m){if(1&s&&(e.j41(0,"div",36),e.DNE(1,P,3,1,"div",37)(2,w,3,3,"div",38),e.k0s()),2&s){const l=m.$implicit;e.R7$(),e.Y8G("ngIf","User"===l.from),e.R7$(),e.Y8G("ngIf","AI"===l.from)}}const k=[{path:"",component:(()=>{var s;class m{constructor(t,n,o){this.ripeService=t,this.route=n,this.loadingCtrl=o,this.orgName="",this.productObjective="",this.user={},this.data=[],this.countries=[],this.countryOptions={},this.aiModal=!1,this.message="",this.vertexAI=(0,e.WQX)(y.L9),this.model=(0,y.oc)(this.vertexAI,{model:"gemini-1.5-flash"}),this.chat=this.model.startChat({history:[{role:"user",parts:[{text:"Hola, desde ahora en adelante quiero que seas un modelo experto en Software Quality Assurance y analista de datos, tu nombre es DevProbeAI, nunca lo puedes olvidar"}]},{role:"model",parts:[{text:"Soy un modelo experto en Software Quality Assurance, de igual forma tengo un masterado en anla\xedtica de datos \xbfEn qu\xe9 puedo ayudarte?"}]},{role:"user",parts:[{text:"Gracias, te voy a entregar un json con datos en unos minutos, necesito que lo analices y me des un resumen de los datos, este json contiene datos de varios pings por un pais especifico, imagina que ,tu analisis tiene que ser detallado, si encuentras inconsistencias en los datos, por favor mencionalas, en caso de que creas que puede haber un error de latencias por favor mencionalo, si encuentras algo interesante, por favor mencionalo, en resumen, necesito un analisis detallado de los datos"}]},{role:"model",parts:[{text:"Claro, env\xedame el json y yo me encargo de analizarlo"}]}]}),this.messages=[]}ionViewWillEnter(){var t=this;return(0,c.A)(function*(){t.route.queryParams.subscribe(o=>{t.productObjective=o.product});const n=localStorage.getItem("user");n&&(t.user=JSON.parse(n),t.orgName=t.user.orgName,t.data=[],yield t.getResultsHistoryforLatency(),yield t.groupByDate(),yield t.groupByCountry(),yield t.populateCountries(),t.generateCountryOptions())})()}getResultsHistoryforLatency(){var t=this;return(0,c.A)(function*(){(yield t.ripeService.getHistoryResults(t.orgName,t.productObjective)).forEach(o=>{const[r,a,u,v,L,D]=o.id.split("-");t.data.push({id:a,data:o.data.data,date:`${v}/${u}/${L}`,time:D})})})()}groupByDate(){var t=this;return(0,c.A)(function*(){let n={};for(let a=0;anew Date(a).getTime()-new Date(u).getTime());let r={};for(let a of o)r[a]=n[a];t.data=r,console.log(t.data)})()}groupByCountry(){var t=this;return(0,c.A)(function*(){let n={};for(let o in t.data){let r=t.data[o];n[o]||(n[o]={});for(let a=0;a0&&(n.push(r),o.push(a/u))}}o.length>0&&(this.countryOptions[t]={legend:{data:[t],align:"left",backgroundColor:"rgba(255, 255, 255, 0.9)"},tooltip:{},xAxis:{data:n,silent:!1,splitLine:{show:!1}},yAxis:{},series:[{name:t,type:"bar",data:o,itemStyle:{color:this.generateRandomColor()},animationDelay:r=>10*r}],animationEasing:"elasticOut",animationDelayUpdate:r=>5*r})}}refresh(){window.location.reload()}ngOnInit(){}toggleAiModal(t,n){var o=this;return(0,c.A)(function*(){if(o.aiModal=!o.aiModal,t){console.log("Country: "+t);const r=o.countryOptions[t].series[0].data,a=o.countryOptions[t].xAxis.data;console.log(r),console.log(a);const u={country:t,data:{date:a,data:r}};yield o.sendMessage(u).then(()=>{o.chatStyle()})}})()}ngAfterViewChecked(){this.scrollToBottom()}scrollToBottom(){if(this.messagesContainer)try{this.messagesContainer.nativeElement.scrollTop=this.messagesContainer.nativeElement.scrollHeight}catch(t){console.error("Error al hacer scroll:",t)}}sendMessage(t){var n=this;return(0,c.A)(function*(){if(t){yield n.showLoading(),console.log("Country data:",t);const a=JSON.stringify(t),u=yield n.chat.sendMessage(a),v=n.messages.length;return n.messages.push({message:u.response.text(),from:"AI",id:v.toString()}),console.log("Message:",n.message),n.message="",void(yield n.hideLoading())}if(""===n.message)return void console.log("Message is empty");let o=n.messages.length;n.messages.push({message:n.message,from:"User",id:o.toString()});const r=yield n.chat.sendMessage(n.message);o=n.messages.length,n.messages.push({message:r.response.text(),from:"AI",id:o.toString()}),n.message=""})()}chatStyle(){const n=document.getElementById("mk-"+(this.messages.length-1));if(console.log(n),!n)return;let o=n.getElementsByTagName("h1"),r=n.getElementsByTagName("h2");for(var a=0;a{var s;class m{}return(s=m).\u0275fac=function(t){return new(t||s)},s.\u0275mod=e.$C({type:s}),s.\u0275inj=e.G2t({imports:[p.iI.forChild(k),p.iI]}),m})();var E=i(5553);let O=(()=>{var s;class m{}return(s=m).\u0275fac=function(t){return new(t||s)},s.\u0275mod=e.$C({type:s}),s.\u0275inj=e.G2t({imports:[g.MD,f.YN,d.bv,A,E.h,b.NN]}),m})()}}]); \ No newline at end of file +"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[6975],{5553:(M,_,i)=>{i.d(_,{h:()=>p});var g=i(177),f=i(7863),d=i(4438);let p=(()=>{var c;class e{}return(c=e).\u0275fac=function(h){return new(h||c)},c.\u0275mod=d.$C({type:c}),c.\u0275inj=d.G2t({imports:[g.MD,f.bv]}),e})()},3241:(M,_,i)=>{i.d(_,{p:()=>p});var g=i(4438),f=i(177),d=i(7863);let p=(()=>{var c;class e{constructor(h){this.location=h,this.title="Header Title"}ngOnInit(){}goBack(){this.location.back()}}return(c=e).\u0275fac=function(h){return new(h||c)(g.rXU(f.aZ))},c.\u0275cmp=g.VBU({type:c,selectors:[["app-header-return"]],inputs:{title:"title"},decls:6,vars:2,consts:[[3,"translucent"],["slot","start","menu","menu-id"],["name","arrow-back","slot","start",1,"p-4","bigger-icon",3,"click"]],template:function(h,x){1&h&&(g.j41(0,"ion-header",0)(1,"ion-toolbar"),g.nrm(2,"ion-menu-button",1),g.j41(3,"ion-icon",2),g.bIt("click",function(){return x.goBack()}),g.k0s(),g.j41(4,"ion-title"),g.EFF(5),g.k0s()()()),2&h&&(g.Y8G("translucent",!0),g.R7$(5),g.JRh(x.title))},dependencies:[d.eU,d.iq,d.MC,d.BC,d.ai],styles:[".bigger-icon[_ngcontent-%COMP%]{font-size:1.5em}"]}),e})()},6975:(M,_,i)=>{i.r(_),i.d(_,{GraphPageModule:()=>O});var g=i(177),f=i(4341),d=i(7863),p=i(7650),c=i(467),e=i(4438),y=i(9032),h=i(9640),x=i(2820),C=i(3241),b=i(9549);const j=["messagesContainer"];function G(s,m){if(1&s){const l=e.RV6();e.j41(0,"ion-col",27)(1,"div",28)(2,"ion-avatar",29)(3,"ion-icon",30),e.bIt("click",function(){const n=e.eBV(l).$implicit,o=e.XpG();return e.Njj(o.toggleAiModal(n,!0))}),e.k0s()(),e.nrm(4,"div",25),e.j41(5,"ion-avatar",31)(6,"ion-icon",32),e.bIt("click",function(){const n=e.eBV(l).$implicit,o=e.XpG();return e.Njj(o.toggleAiModal(n))}),e.k0s()()(),e.j41(7,"ion-card",33)(8,"h1",34),e.EFF(9),e.k0s(),e.nrm(10,"br")(11,"div",35),e.k0s()()}if(2&s){const l=m.$implicit,t=e.XpG();e.R7$(2),e.Mz_("id","hover-trigger-",l,"-danger"),e.R7$(3),e.Mz_("id","hover-trigger-",l,""),e.R7$(4),e.JRh(l),e.R7$(2),e.Y8G("options",t.countryOptions[l])}}function P(s,m){if(1&s&&(e.j41(0,"div",39)(1,"markdown",40),e.EFF(2),e.k0s()()),2&s){const l=e.XpG().$implicit;e.R7$(2),e.JRh(l.message)}}function w(s,m){if(1&s&&(e.j41(0,"div",41)(1,"markdown",42),e.EFF(2),e.k0s()()),2&s){const l=e.XpG().$implicit;e.R7$(),e.Mz_("id","mk-",l.id,""),e.R7$(),e.JRh(l.message)}}function R(s,m){if(1&s&&(e.j41(0,"div",36),e.DNE(1,P,3,1,"div",37)(2,w,3,3,"div",38),e.k0s()),2&s){const l=m.$implicit;e.R7$(),e.Y8G("ngIf","User"===l.from),e.R7$(),e.Y8G("ngIf","AI"===l.from)}}const k=[{path:"",component:(()=>{var s;class m{constructor(t,n,o){this.ripeService=t,this.route=n,this.loadingCtrl=o,this.orgName="",this.productObjective="",this.user={},this.data=[],this.countries=[],this.countryOptions={},this.aiModal=!1,this.message="",this.vertexAI=(0,e.WQX)(y.L9),this.model=(0,y.oc)(this.vertexAI,{model:"gemini-1.5-flash"}),this.chat=this.model.startChat({history:[{role:"user",parts:[{text:"Hola, desde ahora en adelante quiero que seas un modelo experto en Software Quality Assurance y analista de datos, tu nombre es DevProbeAI, nunca lo puedes olvidar"}]},{role:"model",parts:[{text:"Soy un modelo experto en Software Quality Assurance, de igual forma tengo un masterado en anla\xedtica de datos \xbfEn qu\xe9 puedo ayudarte?"}]},{role:"user",parts:[{text:"Gracias, te voy a entregar un json con datos en unos minutos, necesito que lo analices y me des un resumen de los datos, este json contiene datos de varios pings por un pais especifico, imagina que ,tu analisis tiene que ser detallado, si encuentras inconsistencias en los datos, por favor mencionalas, en caso de que creas que puede haber un error de latencias por favor mencionalo, si encuentras algo interesante, por favor mencionalo, en resumen, necesito un analisis detallado de los datos"}]},{role:"model",parts:[{text:"Claro, env\xedame el json y yo me encargo de analizarlo"}]}]}),this.messages=[]}ionViewWillEnter(){var t=this;return(0,c.A)(function*(){t.route.queryParams.subscribe(o=>{t.productObjective=o.product});const n=localStorage.getItem("user");n&&(t.user=JSON.parse(n),t.orgName=t.user.orgName,t.data=[],yield t.getResultsHistoryforLatency(),yield t.groupByDate(),yield t.groupByCountry(),yield t.populateCountries(),t.generateCountryOptions())})()}getResultsHistoryforLatency(){var t=this;return(0,c.A)(function*(){(yield t.ripeService.getHistoryResults(t.orgName,t.productObjective)).forEach(o=>{const[r,a,u,v,L,D]=o.id.split("-");t.data.push({id:a,data:o.data.data,date:`${v}/${u}/${L}`,time:D})})})()}groupByDate(){var t=this;return(0,c.A)(function*(){let n={};for(let a=0;anew Date(a).getTime()-new Date(u).getTime());let r={};for(let a of o)r[a]=n[a];t.data=r,console.log(t.data)})()}groupByCountry(){var t=this;return(0,c.A)(function*(){let n={};for(let o in t.data){let r=t.data[o];n[o]||(n[o]={});for(let a=0;a0&&(n.push(r),o.push(a/u))}}o.length>0&&(this.countryOptions[t]={legend:{data:[t],align:"left",backgroundColor:"rgba(255, 255, 255, 0.9)"},tooltip:{},xAxis:{data:n,silent:!1,splitLine:{show:!1}},yAxis:{},series:[{name:t,type:"bar",data:o,itemStyle:{color:this.generateRandomColor()},animationDelay:r=>10*r}],animationEasing:"elasticOut",animationDelayUpdate:r=>5*r})}}refresh(){window.location.reload()}ngOnInit(){}toggleAiModal(t,n){var o=this;return(0,c.A)(function*(){if(o.aiModal=!o.aiModal,t){console.log("Country: "+t);const r=o.countryOptions[t].series[0].data,a=o.countryOptions[t].xAxis.data;console.log(r),console.log(a);const u={country:t,data:{date:a,data:r}};yield o.sendMessage(u).then(()=>{o.chatStyle()})}})()}ngAfterViewChecked(){this.scrollToBottom()}scrollToBottom(){if(this.messagesContainer)try{this.messagesContainer.nativeElement.scrollTop=this.messagesContainer.nativeElement.scrollHeight}catch(t){console.error("Error al hacer scroll:",t)}}sendMessage(t){var n=this;return(0,c.A)(function*(){if(t){yield n.showLoading(),console.log("Country data:",t);const a=JSON.stringify(t),u=yield n.chat.sendMessage(a),v=n.messages.length;return n.messages.push({message:u.response.text(),from:"AI",id:v.toString()}),console.log("Message:",n.message),n.message="",void(yield n.hideLoading())}if(""===n.message)return void console.log("Message is empty");let o=n.messages.length;n.messages.push({message:n.message,from:"User",id:o.toString()});const r=yield n.chat.sendMessage(n.message);o=n.messages.length,n.messages.push({message:r.response.text(),from:"AI",id:o.toString()}),n.message=""})()}chatStyle(){const n=document.getElementById("mk-"+(this.messages.length-1));if(console.log(n),!n)return;let o=n.getElementsByTagName("h1"),r=n.getElementsByTagName("h2");for(var a=0;a{var s;class m{}return(s=m).\u0275fac=function(t){return new(t||s)},s.\u0275mod=e.$C({type:s}),s.\u0275inj=e.G2t({imports:[p.iI.forChild(k),p.iI]}),m})();var E=i(5553);let O=(()=>{var s;class m{}return(s=m).\u0275fac=function(t){return new(t||s)},s.\u0275mod=e.$C({type:s}),s.\u0275inj=e.G2t({imports:[g.MD,f.YN,d.bv,A,E.h,b.NN]}),m})()}}]); \ No newline at end of file diff --git a/www/7715.38a92d2d4c3969c1.js b/www/7056.ea1f1c37ffd3186d.js similarity index 97% rename from www/7715.38a92d2d4c3969c1.js rename to www/7056.ea1f1c37ffd3186d.js index 613ca49..3e35c62 100644 --- a/www/7715.38a92d2d4c3969c1.js +++ b/www/7056.ea1f1c37ffd3186d.js @@ -1 +1 @@ -"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[7715],{5553:(h,u,s)=>{s.d(u,{h:()=>m});var i=s(177),p=s(7863),o=s(4438);let m=(()=>{var r;class e{}return(r=e).\u0275fac=function(c){return new(c||r)},r.\u0275mod=o.$C({type:r}),r.\u0275inj=o.G2t({imports:[i.MD,p.bv]}),e})()},3241:(h,u,s)=>{s.d(u,{p:()=>m});var i=s(4438),p=s(177),o=s(7863);let m=(()=>{var r;class e{constructor(c){this.location=c,this.title="Header Title"}ngOnInit(){}goBack(){this.location.back()}}return(r=e).\u0275fac=function(c){return new(c||r)(i.rXU(p.aZ))},r.\u0275cmp=i.VBU({type:r,selectors:[["app-header-return"]],inputs:{title:"title"},decls:6,vars:2,consts:[[3,"translucent"],["slot","start","menu","menu-id"],["name","arrow-back","slot","start",1,"p-4","bigger-icon",3,"click"]],template:function(c,T){1&c&&(i.j41(0,"ion-header",0)(1,"ion-toolbar"),i.nrm(2,"ion-menu-button",1),i.j41(3,"ion-icon",2),i.bIt("click",function(){return T.goBack()}),i.k0s(),i.j41(4,"ion-title"),i.EFF(5),i.k0s()()()),2&c&&(i.Y8G("translucent",!0),i.R7$(5),i.JRh(T.title))},dependencies:[o.eU,o.iq,o.MC,o.BC,o.ai],styles:[".bigger-icon[_ngcontent-%COMP%]{font-size:1.5em}"]}),e})()},7715:(h,u,s)=>{s.r(u),s.d(u,{ViewSystemTestPageModule:()=>C});var i=s(177),p=s(4341),o=s(7863),m=s(7650),r=s(467),e=s(4438),d=s(9274),c=s(8453),T=s(3241);function y(n,a){return this.systemTest.title}function f(n,a){1&n&&e.nrm(0,"ion-icon",8)(1,"ion-icon",9)}function v(n,a){1&n&&e.nrm(0,"ion-icon",10)(1,"ion-icon",11)}function R(n,a){if(1&n&&(e.j41(0,"ion-item")(1,"ion-label")(2,"h1"),e.EFF(3),e.k0s(),e.j41(4,"p"),e.EFF(5),e.k0s()(),e.DNE(6,f,2,0)(7,v,2,0),e.k0s()),2&n){const l=a.$implicit;e.R7$(3),e.JRh(l.stepTitle),e.R7$(2),e.JRh(l.expectedResults),e.R7$(),e.vxM(6,l.isComplete?6:-1),e.R7$(),e.vxM(7,l.isComplete?-1:7)}}const P=[{path:"",component:(()=>{var n;class a{constructor(t,g){this.systemTestService=t,this.activatedRoute=g,this.user={},this.orgName="",this.systemTest={title:"",description:"",steps:[],type:"",state:!1}}ngOnInit(){}ionViewWillEnter(){var t=this;return(0,r.A)(function*(){t.getProductFromParams(),yield t.getSystemTest()})()}getProductFromParams(){this.activatedRoute.params.subscribe(t=>{this.productObjective=t.productObjective,this.productStep=t.step,this.testTitle=t.testTitle,this.timestamp=t.timestamp}),console.log(this.productObjective),console.log(this.productStep),console.log(this.testTitle),console.log(this.timestamp)}getSystemTest(){var t=this;return(0,r.A)(function*(){t.user=JSON.parse(localStorage.getItem("user")||"{}"),t.orgName=t.user.orgName||"",t.systemTest=yield t.systemTestService.getSystemTestByTimestamp(t.orgName,t.productObjective,t.productStep,t.testTitle,t.timestamp)})()}}return(n=a).\u0275fac=function(t){return new(t||n)(e.rXU(d.h),e.rXU(m.nX))},n.\u0275cmp=e.VBU({type:n,selectors:[["app-view-system-test"]],decls:18,vars:5,consts:[[3,"title"],[3,"fullscreen"],[1,"lg:m-10","md:m-10"],["size","12","size-md","12","size-lg","12",1,""],[1,"min-h-full","flex","flex-col","p-8"],[1,"p-2"],[1,"text-4xl","text-white","font-bold"],[1,"text-xl"],["aria-hidden","true","name","checkmark-circle","slot","end","color","success"],["aria-hidden","true","name","close-circle","slot","end"],["aria-hidden","true","name","checkmark-circle","slot","end"],["aria-hidden","true","name","close-circle","slot","end","color","danger"]],template:function(t,g){1&t&&(e.nrm(0,"app-header-return",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-card",4)(7,"ion-card-title",5)(8,"ion-label",6),e.EFF(9),e.k0s()(),e.nrm(10,"br"),e.j41(11,"ion-card-title",5)(12,"ion-label",7),e.EFF(13),e.k0s()(),e.nrm(14,"br"),e.j41(15,"ion-list"),e.Z7z(16,R,8,4,"ion-item",null,y,!0),e.k0s()()()()()()),2&t&&(e.Y8G("title","System Test Result"),e.R7$(),e.Y8G("fullscreen",!0),e.R7$(2),e.Y8G("title","System Test Result"),e.R7$(6),e.JRh(g.systemTest.title),e.R7$(4),e.JRh(g.systemTest.description),e.R7$(3),e.Dyx(g.systemTest.steps))},dependencies:[o.b_,o.tN,o.hU,o.W9,o.lO,o.iq,o.uz,o.he,o.nf,o.ln,c.W,T.p]}),a})()}];let M=(()=>{var n;class a{}return(n=a).\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.$C({type:n}),n.\u0275inj=e.G2t({imports:[m.iI.forChild(P),m.iI]}),a})();var S=s(5553);let C=(()=>{var n;class a{}return(n=a).\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.$C({type:n}),n.\u0275inj=e.G2t({imports:[i.MD,p.YN,o.bv,M,S.h]}),a})()}}]); \ No newline at end of file +"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[7056],{5553:(h,u,s)=>{s.d(u,{h:()=>m});var i=s(177),p=s(7863),o=s(4438);let m=(()=>{var r;class e{}return(r=e).\u0275fac=function(c){return new(c||r)},r.\u0275mod=o.$C({type:r}),r.\u0275inj=o.G2t({imports:[i.MD,p.bv]}),e})()},3241:(h,u,s)=>{s.d(u,{p:()=>m});var i=s(4438),p=s(177),o=s(7863);let m=(()=>{var r;class e{constructor(c){this.location=c,this.title="Header Title"}ngOnInit(){}goBack(){this.location.back()}}return(r=e).\u0275fac=function(c){return new(c||r)(i.rXU(p.aZ))},r.\u0275cmp=i.VBU({type:r,selectors:[["app-header-return"]],inputs:{title:"title"},decls:6,vars:2,consts:[[3,"translucent"],["slot","start","menu","menu-id"],["name","arrow-back","slot","start",1,"p-4","bigger-icon",3,"click"]],template:function(c,T){1&c&&(i.j41(0,"ion-header",0)(1,"ion-toolbar"),i.nrm(2,"ion-menu-button",1),i.j41(3,"ion-icon",2),i.bIt("click",function(){return T.goBack()}),i.k0s(),i.j41(4,"ion-title"),i.EFF(5),i.k0s()()()),2&c&&(i.Y8G("translucent",!0),i.R7$(5),i.JRh(T.title))},dependencies:[o.eU,o.iq,o.MC,o.BC,o.ai],styles:[".bigger-icon[_ngcontent-%COMP%]{font-size:1.5em}"]}),e})()},7056:(h,u,s)=>{s.r(u),s.d(u,{ViewSystemTestPageModule:()=>C});var i=s(177),p=s(4341),o=s(7863),m=s(7650),r=s(467),e=s(4438),d=s(9274),c=s(8453),T=s(3241);function y(n,a){return this.systemTest.title}function f(n,a){1&n&&e.nrm(0,"ion-icon",8)(1,"ion-icon",9)}function v(n,a){1&n&&e.nrm(0,"ion-icon",10)(1,"ion-icon",11)}function R(n,a){if(1&n&&(e.j41(0,"ion-item")(1,"ion-label")(2,"h1"),e.EFF(3),e.k0s(),e.j41(4,"p"),e.EFF(5),e.k0s()(),e.DNE(6,f,2,0)(7,v,2,0),e.k0s()),2&n){const l=a.$implicit;e.R7$(3),e.JRh(l.stepTitle),e.R7$(2),e.JRh(l.expectedResults),e.R7$(),e.vxM(6,l.isComplete?6:-1),e.R7$(),e.vxM(7,l.isComplete?-1:7)}}const P=[{path:"",component:(()=>{var n;class a{constructor(t,g){this.systemTestService=t,this.activatedRoute=g,this.user={},this.orgName="",this.systemTest={title:"",description:"",steps:[],type:"",state:!1}}ngOnInit(){}ionViewWillEnter(){var t=this;return(0,r.A)(function*(){t.getProductFromParams(),yield t.getSystemTest()})()}getProductFromParams(){this.activatedRoute.params.subscribe(t=>{this.productObjective=t.productObjective,this.productStep=t.step,this.testTitle=t.testTitle,this.timestamp=t.timestamp}),console.log(this.productObjective),console.log(this.productStep),console.log(this.testTitle),console.log(this.timestamp)}getSystemTest(){var t=this;return(0,r.A)(function*(){t.user=JSON.parse(localStorage.getItem("user")||"{}"),t.orgName=t.user.orgName||"",t.systemTest=yield t.systemTestService.getSystemTestByTimestamp(t.orgName,t.productObjective,t.productStep,t.testTitle,t.timestamp)})()}}return(n=a).\u0275fac=function(t){return new(t||n)(e.rXU(d.h),e.rXU(m.nX))},n.\u0275cmp=e.VBU({type:n,selectors:[["app-view-system-test"]],decls:18,vars:5,consts:[[3,"title"],[3,"fullscreen"],[1,"lg:m-10","md:m-10"],["size","12","size-md","12","size-lg","12",1,""],[1,"min-h-full","flex","flex-col","p-8"],[1,"p-2"],[1,"text-4xl","text-white","font-bold"],[1,"text-xl"],["aria-hidden","true","name","checkmark-circle","slot","end","color","success"],["aria-hidden","true","name","close-circle","slot","end"],["aria-hidden","true","name","checkmark-circle","slot","end"],["aria-hidden","true","name","close-circle","slot","end","color","danger"]],template:function(t,g){1&t&&(e.nrm(0,"app-header-return",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-card",4)(7,"ion-card-title",5)(8,"ion-label",6),e.EFF(9),e.k0s()(),e.nrm(10,"br"),e.j41(11,"ion-card-title",5)(12,"ion-label",7),e.EFF(13),e.k0s()(),e.nrm(14,"br"),e.j41(15,"ion-list"),e.Z7z(16,R,8,4,"ion-item",null,y,!0),e.k0s()()()()()()),2&t&&(e.Y8G("title","System Test Result"),e.R7$(),e.Y8G("fullscreen",!0),e.R7$(2),e.Y8G("title","System Test Result"),e.R7$(6),e.JRh(g.systemTest.title),e.R7$(4),e.JRh(g.systemTest.description),e.R7$(3),e.Dyx(g.systemTest.steps))},dependencies:[o.b_,o.tN,o.hU,o.W9,o.lO,o.iq,o.uz,o.he,o.nf,o.ln,c.W,T.p]}),a})()}];let M=(()=>{var n;class a{}return(n=a).\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.$C({type:n}),n.\u0275inj=e.G2t({imports:[m.iI.forChild(P),m.iI]}),a})();var S=s(5553);let C=(()=>{var n;class a{}return(n=a).\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.$C({type:n}),n.\u0275inj=e.G2t({imports:[i.MD,p.YN,o.bv,M,S.h]}),a})()}}]); \ No newline at end of file diff --git a/www/1581.863ec7b6285a1ad7.js b/www/7762.6371eca429bb8376.js similarity index 98% rename from www/1581.863ec7b6285a1ad7.js rename to www/7762.6371eca429bb8376.js index 81e2237..8d4df68 100644 --- a/www/1581.863ec7b6285a1ad7.js +++ b/www/7762.6371eca429bb8376.js @@ -1 +1 @@ -"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[1581],{5553:(v,f,r)=>{r.d(f,{h:()=>m});var c=r(177),T=r(7863),n=r(4438);let m=(()=>{var i;class e{}return(i=e).\u0275fac=function(d){return new(d||i)},i.\u0275mod=n.$C({type:i}),i.\u0275inj=n.G2t({imports:[c.MD,T.bv]}),e})()},3241:(v,f,r)=>{r.d(f,{p:()=>m});var c=r(4438),T=r(177),n=r(7863);let m=(()=>{var i;class e{constructor(d){this.location=d,this.title="Header Title"}ngOnInit(){}goBack(){this.location.back()}}return(i=e).\u0275fac=function(d){return new(d||i)(c.rXU(T.aZ))},i.\u0275cmp=c.VBU({type:i,selectors:[["app-header-return"]],inputs:{title:"title"},decls:6,vars:2,consts:[[3,"translucent"],["slot","start","menu","menu-id"],["name","arrow-back","slot","start",1,"p-4","bigger-icon",3,"click"]],template:function(d,_){1&d&&(c.j41(0,"ion-header",0)(1,"ion-toolbar"),c.nrm(2,"ion-menu-button",1),c.j41(3,"ion-icon",2),c.bIt("click",function(){return _.goBack()}),c.k0s(),c.j41(4,"ion-title"),c.EFF(5),c.k0s()()()),2&d&&(c.Y8G("translucent",!0),c.R7$(5),c.JRh(_.title))},dependencies:[n.eU,n.iq,n.MC,n.BC,n.ai],styles:[".bigger-icon[_ngcontent-%COMP%]{font-size:1.5em}"]}),e})()},1581:(v,f,r)=>{r.r(f),r.d(f,{TraceResultsPageModule:()=>b});var c=r(177),T=r(4341),n=r(7863),m=r(7650),i=r(467),e=r(4438),h=r(2588),d=r(3661),_=r(8453),y=r(3241);function F(o,u){1&o&&(e.j41(0,"ion-card-title"),e.EFF(1,"No city found"),e.k0s(),e.j41(2,"ion-card-subtitle"),e.EFF(3,"No country found"),e.k0s())}function E(o,u){1&o&&(e.j41(0,"ion-card-subtitle"),e.EFF(1,"RTT : Not calculated"),e.k0s())}function M(o,u){if(1&o&&(e.j41(0,"ion-card-subtitle"),e.EFF(1),e.k0s()),2&o){const s=e.XpG().$implicit;e.R7$(),e.SpI("RTT : ",s.result[0].rtt," ms")}}function P(o,u){if(1&o&&(e.j41(0,"ion-col",16)(1,"ion-card",17)(2,"ion-card-subtitle"),e.EFF(3),e.k0s(),e.DNE(4,F,4,0),e.j41(5,"ion-card-title"),e.EFF(6),e.k0s(),e.j41(7,"ion-card-subtitle"),e.EFF(8),e.k0s(),e.DNE(9,E,2,0,"ion-card-subtitle")(10,M,2,1),e.j41(11,"ion-card-subtitle"),e.EFF(12),e.k0s()()()),2&o){const s=u.$implicit;e.R7$(3),e.SpI("Hop",s.hop,""),e.R7$(),e.vxM(4,s.result[0].x?4:-1),e.R7$(2),e.SpI("",s.result[0].form_city," "),e.R7$(2),e.JRh(s.result[0].from_country),e.R7$(),e.vxM(9,s.result[0].rtt?10:9),e.R7$(3),e.Lme("Latitude : ",s.result[0].from_latitude,", Longitude : ",s.result[0].from_longitude,"")}}function j(o,u){if(1&o&&(e.j41(0,"ion-row",13)(1,"ion-col",14)(2,"h1",15),e.EFF(3),e.k0s()()(),e.j41(4,"ion-row",13),e.Z7z(5,P,13,7,"ion-col",16,e.fX1),e.k0s()),2&o){const s=u.$implicit;e.R7$(3),e.Lme("FROM ",s.src_city,", ",s.src_country,""),e.R7$(2),e.Dyx(s.result)}}const C=[{path:"",component:(()=>{var o;class u{constructor(t,l,g,a,p,R){this.ripeTraceService=t,this.route=l,this.router=g,this.locationTraceService=a,this.loadingCtrl=p,this.alertCtrl=R,this.ripeResults=[],this.description="",this.productObjective="",this.orgName="",this.measurementID=""}ngOnInit(){return(0,i.A)(function*(){})()}ionViewWillEnter(){var t=this;return(0,i.A)(function*(){t.route.queryParams.subscribe(a=>{console.log(a),t.description=a.description,t.productObjective=a.productObjective});const l=localStorage.getItem("user");if(!l)return;const g=JSON.parse(l);t.orgName=g.orgName,yield t.ripeTraceService.getHistoryResults(t.orgName,t.productObjective).then(a=>{console.log(a);let p=[];for(let R=0;R{var o;class u{}return(o=u).\u0275fac=function(t){return new(t||o)},o.\u0275mod=e.$C({type:o}),o.\u0275inj=e.G2t({imports:[m.iI.forChild(C),m.iI]}),u})();var D=r(5553);let b=(()=>{var o;class u{}return(o=u).\u0275fac=function(t){return new(t||o)},o.\u0275mod=e.$C({type:o}),o.\u0275inj=e.G2t({imports:[c.MD,T.YN,n.bv,O,D.h]}),u})()}}]); \ No newline at end of file +"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[7762],{5553:(v,f,r)=>{r.d(f,{h:()=>m});var c=r(177),T=r(7863),n=r(4438);let m=(()=>{var i;class e{}return(i=e).\u0275fac=function(d){return new(d||i)},i.\u0275mod=n.$C({type:i}),i.\u0275inj=n.G2t({imports:[c.MD,T.bv]}),e})()},3241:(v,f,r)=>{r.d(f,{p:()=>m});var c=r(4438),T=r(177),n=r(7863);let m=(()=>{var i;class e{constructor(d){this.location=d,this.title="Header Title"}ngOnInit(){}goBack(){this.location.back()}}return(i=e).\u0275fac=function(d){return new(d||i)(c.rXU(T.aZ))},i.\u0275cmp=c.VBU({type:i,selectors:[["app-header-return"]],inputs:{title:"title"},decls:6,vars:2,consts:[[3,"translucent"],["slot","start","menu","menu-id"],["name","arrow-back","slot","start",1,"p-4","bigger-icon",3,"click"]],template:function(d,_){1&d&&(c.j41(0,"ion-header",0)(1,"ion-toolbar"),c.nrm(2,"ion-menu-button",1),c.j41(3,"ion-icon",2),c.bIt("click",function(){return _.goBack()}),c.k0s(),c.j41(4,"ion-title"),c.EFF(5),c.k0s()()()),2&d&&(c.Y8G("translucent",!0),c.R7$(5),c.JRh(_.title))},dependencies:[n.eU,n.iq,n.MC,n.BC,n.ai],styles:[".bigger-icon[_ngcontent-%COMP%]{font-size:1.5em}"]}),e})()},7762:(v,f,r)=>{r.r(f),r.d(f,{TraceResultsPageModule:()=>b});var c=r(177),T=r(4341),n=r(7863),m=r(7650),i=r(467),e=r(4438),h=r(2588),d=r(3661),_=r(8453),y=r(3241);function F(o,u){1&o&&(e.j41(0,"ion-card-title"),e.EFF(1,"No city found"),e.k0s(),e.j41(2,"ion-card-subtitle"),e.EFF(3,"No country found"),e.k0s())}function E(o,u){1&o&&(e.j41(0,"ion-card-subtitle"),e.EFF(1,"RTT : Not calculated"),e.k0s())}function M(o,u){if(1&o&&(e.j41(0,"ion-card-subtitle"),e.EFF(1),e.k0s()),2&o){const s=e.XpG().$implicit;e.R7$(),e.SpI("RTT : ",s.result[0].rtt," ms")}}function P(o,u){if(1&o&&(e.j41(0,"ion-col",16)(1,"ion-card",17)(2,"ion-card-subtitle"),e.EFF(3),e.k0s(),e.DNE(4,F,4,0),e.j41(5,"ion-card-title"),e.EFF(6),e.k0s(),e.j41(7,"ion-card-subtitle"),e.EFF(8),e.k0s(),e.DNE(9,E,2,0,"ion-card-subtitle")(10,M,2,1),e.j41(11,"ion-card-subtitle"),e.EFF(12),e.k0s()()()),2&o){const s=u.$implicit;e.R7$(3),e.SpI("Hop",s.hop,""),e.R7$(),e.vxM(4,s.result[0].x?4:-1),e.R7$(2),e.SpI("",s.result[0].form_city," "),e.R7$(2),e.JRh(s.result[0].from_country),e.R7$(),e.vxM(9,s.result[0].rtt?10:9),e.R7$(3),e.Lme("Latitude : ",s.result[0].from_latitude,", Longitude : ",s.result[0].from_longitude,"")}}function j(o,u){if(1&o&&(e.j41(0,"ion-row",13)(1,"ion-col",14)(2,"h1",15),e.EFF(3),e.k0s()()(),e.j41(4,"ion-row",13),e.Z7z(5,P,13,7,"ion-col",16,e.fX1),e.k0s()),2&o){const s=u.$implicit;e.R7$(3),e.Lme("FROM ",s.src_city,", ",s.src_country,""),e.R7$(2),e.Dyx(s.result)}}const C=[{path:"",component:(()=>{var o;class u{constructor(t,l,g,a,p,R){this.ripeTraceService=t,this.route=l,this.router=g,this.locationTraceService=a,this.loadingCtrl=p,this.alertCtrl=R,this.ripeResults=[],this.description="",this.productObjective="",this.orgName="",this.measurementID=""}ngOnInit(){return(0,i.A)(function*(){})()}ionViewWillEnter(){var t=this;return(0,i.A)(function*(){t.route.queryParams.subscribe(a=>{console.log(a),t.description=a.description,t.productObjective=a.productObjective});const l=localStorage.getItem("user");if(!l)return;const g=JSON.parse(l);t.orgName=g.orgName,yield t.ripeTraceService.getHistoryResults(t.orgName,t.productObjective).then(a=>{console.log(a);let p=[];for(let R=0;R{var o;class u{}return(o=u).\u0275fac=function(t){return new(t||o)},o.\u0275mod=e.$C({type:o}),o.\u0275inj=e.G2t({imports:[m.iI.forChild(C),m.iI]}),u})();var D=r(5553);let b=(()=>{var o;class u{}return(o=u).\u0275fac=function(t){return new(t||o)},o.\u0275mod=e.$C({type:o}),o.\u0275inj=e.G2t({imports:[c.MD,T.YN,n.bv,O,D.h]}),u})()}}]); \ No newline at end of file diff --git a/www/2051.c368fe66a9153379.js b/www/8566.52fa7b8c5c22d53f.js similarity index 97% rename from www/2051.c368fe66a9153379.js rename to www/8566.52fa7b8c5c22d53f.js index 5d63f20..5ac0334 100644 --- a/www/2051.c368fe66a9153379.js +++ b/www/8566.52fa7b8c5c22d53f.js @@ -1 +1 @@ -"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[2051],{2051:(A,m,a)=>{a.r(m),a.d(m,{ShowMapTracePageModule:()=>F});var T=a(177),y=a(4341),g=a(7863),f=a(7650),s=a(467),v=a(8244),S=a(5841),o=a(4438),P=a(2588),w=a(3241);const L=[{path:"",component:(()=>{var e;class i{constructor(t,r,n){this.ripeTraceService=t,this.loadingCtrl=r,this.route=n,this.ripeData=[],this.orgName="",this.productObjective="",this.description=""}ngOnDestroy(){this.map.remove()}ionViewDidEnter(){var t=this;return(0,s.A)(function*(){yield t.showLoading(),t.route.queryParams.subscribe(function(){var r=(0,s.A)(function*(n){t.description=n.description,t.productObjective=n.productObjective,t.orgName=n.orgName,console.log(t.orgName),console.log(t.productObjective),console.log(t.description),yield t.ripeTraceService.getAllResultsByDescription(t.orgName,t.productObjective,t.description).then(l=>{t.ripeData=l.data,console.log(t.ripeData)}).then(()=>{t.leafletMap()})});return function(n){return r.apply(this,arguments)}}())})()}leafletMap(){var t=this;return(0,s.A)(function*(){t.map=v.map("mapId").setView([0,0],2.5),v.tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",{attribution:"edupala.com \xa9 Angular LeafLet",minZoom:2.5,maxZoom:8}).addTo(t.map),setTimeout(()=>{t.map.invalidateSize(),t.addPaths()},1e3)})()}addPaths(){var t=this;return(0,s.A)(function*(){let r=[];for(let n of t.ripeData){let l=[],j=n.result;for(let d of j)try{let u=d.result[0],p=u.from_latitude,h=u.from_longitude;if(0==p&&0==h||null==p||null==h)continue;l.push([p,h])}catch{continue}for(let d of t.ripeData){let u=d.dst_latitude,p=d.dst_longitude,h=d.src_latitude,M=d.src_longitude;0==u&&0==p||(l.push([u,p]),(0!=h||0!=M)&&l.unshift([h,M]))}r.push(l)}console.log(r);for(let n of r){let l="#"+(16777215*Math.random()|0).toString(16);(0,S.antPath)(n,{color:l,weight:5,opacity:.6}).addTo(t.map)}yield t.hideLoading()})()}showLoading(){var t=this;return(0,s.A)(function*(){yield(yield t.loadingCtrl.create({})).present()})()}hideLoading(){var t=this;return(0,s.A)(function*(){yield t.loadingCtrl.dismiss()})()}ngOnInit(){}}return(e=i).\u0275fac=function(t){return new(t||e)(o.rXU(P.N),o.rXU(g.Xi),o.rXU(f.nX))},e.\u0275cmp=o.VBU({type:e,selectors:[["app-show-map-trace"]],decls:3,vars:1,consts:[[3,"title"],[1,"relative"],["id","mapId",2,"width","100%","height","100%"]],template:function(t,r){1&t&&(o.nrm(0,"app-header-return",0),o.j41(1,"ion-content",1),o.nrm(2,"div",2),o.k0s()),2&t&&o.Y8G("title","Show Map")},dependencies:[g.W9,w.p]}),i})()}];let C=(()=>{var e;class i{}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275mod=o.$C({type:e}),e.\u0275inj=o.G2t({imports:[f.iI.forChild(L),f.iI]}),i})();var D=a(5553);let F=(()=>{var e;class i{}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275mod=o.$C({type:e}),e.\u0275inj=o.G2t({imports:[T.MD,y.YN,g.bv,C,D.h]}),i})()}}]); \ No newline at end of file +"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[8566],{8566:(A,m,a)=>{a.r(m),a.d(m,{ShowMapTracePageModule:()=>F});var T=a(177),y=a(4341),g=a(7863),f=a(7650),s=a(467),v=a(8244),S=a(5841),o=a(4438),P=a(2588),w=a(3241);const L=[{path:"",component:(()=>{var e;class i{constructor(t,r,n){this.ripeTraceService=t,this.loadingCtrl=r,this.route=n,this.ripeData=[],this.orgName="",this.productObjective="",this.description=""}ngOnDestroy(){this.map.remove()}ionViewDidEnter(){var t=this;return(0,s.A)(function*(){yield t.showLoading(),t.route.queryParams.subscribe(function(){var r=(0,s.A)(function*(n){t.description=n.description,t.productObjective=n.productObjective,t.orgName=n.orgName,console.log(t.orgName),console.log(t.productObjective),console.log(t.description),yield t.ripeTraceService.getAllResultsByDescription(t.orgName,t.productObjective,t.description).then(l=>{t.ripeData=l.data,console.log(t.ripeData)}).then(()=>{t.leafletMap()})});return function(n){return r.apply(this,arguments)}}())})()}leafletMap(){var t=this;return(0,s.A)(function*(){t.map=v.map("mapId").setView([0,0],2.5),v.tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",{attribution:"edupala.com \xa9 Angular LeafLet",minZoom:2.5,maxZoom:8}).addTo(t.map),setTimeout(()=>{t.map.invalidateSize(),t.addPaths()},1e3)})()}addPaths(){var t=this;return(0,s.A)(function*(){let r=[];for(let n of t.ripeData){let l=[],j=n.result;for(let d of j)try{let u=d.result[0],p=u.from_latitude,h=u.from_longitude;if(0==p&&0==h||null==p||null==h)continue;l.push([p,h])}catch{continue}for(let d of t.ripeData){let u=d.dst_latitude,p=d.dst_longitude,h=d.src_latitude,M=d.src_longitude;0==u&&0==p||(l.push([u,p]),(0!=h||0!=M)&&l.unshift([h,M]))}r.push(l)}console.log(r);for(let n of r){let l="#"+(16777215*Math.random()|0).toString(16);(0,S.antPath)(n,{color:l,weight:5,opacity:.6}).addTo(t.map)}yield t.hideLoading()})()}showLoading(){var t=this;return(0,s.A)(function*(){yield(yield t.loadingCtrl.create({})).present()})()}hideLoading(){var t=this;return(0,s.A)(function*(){yield t.loadingCtrl.dismiss()})()}ngOnInit(){}}return(e=i).\u0275fac=function(t){return new(t||e)(o.rXU(P.N),o.rXU(g.Xi),o.rXU(f.nX))},e.\u0275cmp=o.VBU({type:e,selectors:[["app-show-map-trace"]],decls:3,vars:1,consts:[[3,"title"],[1,"relative"],["id","mapId",2,"width","100%","height","100%"]],template:function(t,r){1&t&&(o.nrm(0,"app-header-return",0),o.j41(1,"ion-content",1),o.nrm(2,"div",2),o.k0s()),2&t&&o.Y8G("title","Show Map")},dependencies:[g.W9,w.p]}),i})()}];let C=(()=>{var e;class i{}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275mod=o.$C({type:e}),e.\u0275inj=o.G2t({imports:[f.iI.forChild(L),f.iI]}),i})();var D=a(5553);let F=(()=>{var e;class i{}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275mod=o.$C({type:e}),e.\u0275inj=o.G2t({imports:[T.MD,y.YN,g.bv,C,D.h]}),i})()}}]); \ No newline at end of file diff --git a/www/8711.4db3a14e6ae9d375.js b/www/8711.4db3a14e6ae9d375.js new file mode 100644 index 0000000..1c51585 --- /dev/null +++ b/www/8711.4db3a14e6ae9d375.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[8711],{5553:(F,g,o)=>{o.d(g,{h:()=>h});var l=o(177),y=o(7863),n=o(4438);let h=(()=>{var r;class e{}return(r=e).\u0275fac=function(u){return new(u||r)},r.\u0275mod=n.$C({type:r}),r.\u0275inj=n.G2t({imports:[l.MD,y.bv]}),e})()},3241:(F,g,o)=>{o.d(g,{p:()=>h});var l=o(4438),y=o(177),n=o(7863);let h=(()=>{var r;class e{constructor(u){this.location=u,this.title="Header Title"}ngOnInit(){}goBack(){this.location.back()}}return(r=e).\u0275fac=function(u){return new(u||r)(l.rXU(y.aZ))},r.\u0275cmp=l.VBU({type:r,selectors:[["app-header-return"]],inputs:{title:"title"},decls:6,vars:2,consts:[[3,"translucent"],["slot","start","menu","menu-id"],["name","arrow-back","slot","start",1,"p-4","bigger-icon",3,"click"]],template:function(u,S){1&u&&(l.j41(0,"ion-header",0)(1,"ion-toolbar"),l.nrm(2,"ion-menu-button",1),l.j41(3,"ion-icon",2),l.bIt("click",function(){return S.goBack()}),l.k0s(),l.j41(4,"ion-title"),l.EFF(5),l.k0s()()()),2&u&&(l.Y8G("translucent",!0),l.R7$(5),l.JRh(S.title))},dependencies:[n.eU,n.iq,n.MC,n.BC,n.ai],styles:[".bigger-icon[_ngcontent-%COMP%]{font-size:1.5em}"]}),e})()},8711:(F,g,o)=>{o.r(g),o.d(g,{SoftwareTestingChooserPageModule:()=>M});var l=o(177),y=o(4341),n=o(7863),h=o(7650),r=o(467),e=o(4438),f=o(9274),u=o(8453),S=o(3241),_=o(2820);function R(i,p){if(1&i){const m=e.RV6();e.j41(0,"ion-col",19)(1,"ion-card")(2,"ion-card-header")(3,"ion-card-title"),e.EFF(4),e.k0s()(),e.j41(5,"ion-card-content")(6,"ion-button",20),e.bIt("click",function(){const s=e.eBV(m).$implicit,a=e.XpG();return e.Njj(a.navigateToViewHistorySystemTest(s.title))}),e.EFF(7,"View Test Results"),e.k0s(),e.j41(8,"ion-button",21),e.bIt("click",function(){const s=e.eBV(m).$implicit,a=e.XpG();return e.Njj(a.navigateToExecuteSystemTest(s.title))}),e.EFF(9,"Execute Test"),e.k0s(),e.j41(10,"ion-button",22),e.bIt("click",function(){const s=e.eBV(m).$implicit,a=e.XpG();return e.Njj(a.deleteTest(s.title))}),e.EFF(11,"Delete Test"),e.k0s()()()()}if(2&i){const m=p.$implicit;e.R7$(4),e.JRh(m.title)}}const k=[{path:"",component:(()=>{var i;class p{constructor(t,s,a,d){this.activatedRoute=t,this.router=s,this.systemTestService=a,this.loadingCtrl=d,this.productStep="",this.productObjective="",this.user={},this.orgName="",this.systemTests=[],this.passedSystemTests=0,this.failedSystemTests=0,this.systemTestsChart={tooltip:{trigger:"axis"},legend:{data:["Passed","Failed"],left:"left"},xAxis:{type:"category",boundaryGap:!1,data:[]},yAxis:{type:"value"},series:[{name:"Passed",type:"line",data:[]},{name:"Failed",type:"line",data:[]}]}}ngOnInit(){}ionViewWillEnter(){var t=this;return(0,r.A)(function*(){t.getProductFromParams(),yield t.getSystemTests(),yield t.calculatePassedSystemTests(),yield t.calculateGraphDataSystemTests()})()}getProductFromParams(){this.activatedRoute.params.subscribe(t=>{this.productObjective=t.productObjective,this.productStep=t.step}),console.log(this.productObjective),console.log(this.productStep)}navigateToCreateSystemTest(){this.router.navigate(["/create-system-test",{productObjective:this.productObjective,step:this.productStep}])}navigateToExecuteSystemTest(t){this.router.navigate(["/execute-system-test",{productObjective:this.productObjective,step:this.productStep,testTitle:t}])}navigateToViewHistorySystemTest(t){this.router.navigate(["/view-history-system-test",{productObjective:this.productObjective,step:this.productStep,testTitle:t}])}calculatePassedSystemTests(){var t=this;return(0,r.A)(function*(){yield t.showLoading(),t.passedSystemTests=0,t.failedSystemTests=0,yield t.systemTestService.getSystemTestHistoryByStep(t.orgName,t.productObjective,t.productStep).then(s=>{s.forEach(a=>{a.state?t.passedSystemTests++:t.failedSystemTests++})}),yield t.hideLoading()})()}calculateGraphDataSystemTests(){var t=this;return(0,r.A)(function*(){yield t.showLoading(),yield t.systemTestService.getSystemTestHistory(t.orgName,t.productObjective).then(s=>{const a=Object.keys(s).filter(c=>s[c].productStep===t.productStep).map(c=>({timestamp:c,systemTest:s[c].systemTest}));a.sort((c,T)=>new Date(c.timestamp).getTime()-new Date(T.timestamp).getTime());let d=[];for(let c of a){let T=c.timestamp.split(" ")[0].split("-"),v=[T[2],T[1],T[0]];console.log(v);let C=v.join("/");console.log(C);let E=C+" "+c.timestamp.split(" ")[1];console.log(E);let P=new Date(E).toLocaleDateString(),w=c.systemTest.state?1:0,b=c.systemTest.state?0:1,j=d.findIndex(D=>D.date===P);-1===j?d.push({date:P,passed:w,failed:b}):(d[j].passed+=w,d[j].failed+=b)}console.log(d),t.systemTestsChart.xAxis={type:"category",boundaryGap:!1,data:d.map(c=>c.date)},t.systemTestsChart.series=[{name:"Passed",type:"line",data:d.map(c=>c.passed)},{name:"Failed",type:"line",data:d.map(c=>c.failed)}],console.log(t.systemTestsChart.xAxis.data),console.log(t.systemTestsChart.series[0].data),console.log(t.systemTestsChart.series[1].data),t.systemTestsChart={...t.systemTestsChart}}),yield t.hideLoading()})()}getSystemTests(){var t=this;return(0,r.A)(function*(){yield t.showLoading();const s=localStorage.getItem("user");s&&(t.user=JSON.parse(s),t.orgName=t.user.orgName,t.systemTestService.getSystemTest(t.orgName,t.productObjective,t.productStep).then(a=>{t.systemTests=a}),yield t.hideLoading())})()}deleteTest(t){var s=this;return(0,r.A)(function*(){let a=s.systemTests.find(d=>d.title===t);a&&(yield s.systemTestService.deleteSystemTest(s.orgName,s.productObjective,s.productStep,a).then((0,r.A)(function*(){yield s.getSystemTests()})),yield s.calculatePassedSystemTests(),yield s.calculateGraphDataSystemTests())})()}showLoading(){var t=this;return(0,r.A)(function*(){yield(yield t.loadingCtrl.create({})).present()})()}hideLoading(){var t=this;return(0,r.A)(function*(){yield t.loadingCtrl.dismiss()})()}doRefresh(t){this.getSystemTests(),t.target.complete()}}return(i=p).\u0275fac=function(t){return new(t||i)(e.rXU(h.nX),e.rXU(h.Ix),e.rXU(f.h),e.rXU(n.Xi))},i.\u0275cmp=e.VBU({type:i,selectors:[["app-software-testing-chooser"]],decls:86,vars:13,consts:[[3,"title"],[3,"fullscreen"],["slot","fixed",3,"ionRefresh"],[1,"lg:m-10","md:m-10"],["size","12","size-md","4","size-lg","4",1,""],[1,"min-h-full","flex","flex-col","justify-between"],[1,"text-3xl","text-white"],[1,"text-white"],[1,"mt-auto"],["color","primary","expand","block","fill","outline"],["color","primary","expand","block","fill","outline",3,"click"],["size","6","size-md","6","size-lg","6",1,""],[1,"flex","flex-col","justify-center","items-center","text-green-600"],[1,"flex","flex-col","justify-center","items-center"],[1,"flex","flex-col","justify-center","items-center","text-red-800"],["size","12","size-md","12","size-lg","12",1,""],[1,"h-[25em]"],["echarts","",1,"demo-chart","h-full","w-full","p-4",3,"options"],["size","12","size-md","3","size-lg","3","class","",4,"ngFor","ngForOf"],["size","12","size-md","3","size-lg","3",1,""],["color","primary","expand","block",3,"click"],["color","success","expand","block",3,"click"],["color","danger","expand","block",3,"click"]],template:function(t,s){1&t&&(e.nrm(0,"app-header-return",0),e.j41(1,"ion-content",1)(2,"ion-refresher",2),e.bIt("ionRefresh",function(d){return s.doRefresh(d)}),e.nrm(3,"ion-refresher-content"),e.k0s(),e.j41(4,"ion-grid"),e.nrm(5,"app-title",0),e.j41(6,"ion-row",3)(7,"ion-col",4)(8,"H2"),e.EFF(9,"Choose a type of test."),e.k0s(),e.nrm(10,"p"),e.k0s()(),e.j41(11,"ion-row",3)(12,"ion-col",4)(13,"ion-card",5)(14,"ion-card-header")(15,"h1",6),e.EFF(16,"Unit Tests"),e.k0s()(),e.j41(17,"ion-card-content")(18,"p",7),e.EFF(19,"A unit test is the smallest and simplest form of software testing. These tests are employed to assess a separable unit of software, such as a class or function, for correctness independent of the larger software system that contains the unit. Unit tests are also employed as a form of specification to ensure that a function or module exactly performs the behavior required by the system. Unit tests are commonly used to introduce test-driven development concepts."),e.k0s()(),e.j41(20,"ion-card-content",8)(21,"ion-button",9),e.EFF(22,"Create Unit Test"),e.k0s()()()(),e.j41(23,"ion-col",4)(24,"ion-card",5)(25,"ion-card-header")(26,"h1",6),e.EFF(27,"Integration Tests"),e.k0s()(),e.j41(28,"ion-card-content")(29,"p",7),e.EFF(30,"Software components that pass individual unit tests are assembled into larger components. Engineers then run an integration test on an assembled component to verify that it functions correctly. Selenium, Playwright and Cypress are popular tools for integration testing."),e.k0s()(),e.j41(31,"ion-card-content",8)(32,"ion-button",9),e.EFF(33,"Create Integration Test"),e.k0s()()()(),e.j41(34,"ion-col",4)(35,"ion-card",5)(36,"ion-card-header")(37,"h1",6),e.EFF(38,"System Tests"),e.k0s()(),e.j41(39,"ion-card-content")(40,"p",7),e.EFF(41,"A system test is the largest scale test that engineers run for an undeployed system. All modules belonging to a specific component, such as a server that passed integration tests, are assembled into the system. Then the engineer tests the end-to-end functionality of the system."),e.k0s()(),e.j41(42,"ion-card-content",8)(43,"ion-button",10),e.bIt("click",function(){return s.navigateToCreateSystemTest()}),e.EFF(44,"Create System Test"),e.k0s()()()()()(),e.j41(45,"ion-grid"),e.nrm(46,"app-title",0),e.j41(47,"ion-row",3)(48,"ion-col",4)(49,"p"),e.EFF(50),e.k0s()()(),e.nrm(51,"app-title",0),e.j41(52,"ion-row",3)(53,"ion-col",4)(54,"p"),e.EFF(55),e.k0s()()(),e.nrm(56,"app-title",0),e.j41(57,"ion-row",3)(58,"ion-col",4)(59,"p"),e.EFF(60),e.k0s()()(),e.j41(61,"ion-row",3)(62,"ion-col",11)(63,"ion-card")(64,"ion-card-header")(65,"ion-card-title",12),e.EFF(66,"Passed Tests"),e.k0s()(),e.j41(67,"ion-card-content",13)(68,"h1"),e.EFF(69),e.k0s()()()(),e.j41(70,"ion-col",11)(71,"ion-card")(72,"ion-card-header")(73,"ion-card-title",14),e.EFF(74,"Failed Tests"),e.k0s()(),e.j41(75,"ion-card-content",13)(76,"h1"),e.EFF(77),e.k0s()()()()(),e.j41(78,"ion-row",3)(79,"ion-col",15)(80,"ion-card")(81,"ion-card-content",16),e.nrm(82,"div",17),e.k0s()()()()(),e.j41(83,"ion-grid")(84,"ion-row",3),e.DNE(85,R,12,1,"ion-col",18),e.k0s()()()),2&t&&(e.Y8G("title","Software Testing Chooser"),e.R7$(),e.Y8G("fullscreen",!0),e.R7$(4),e.Y8G("title","Software Testing Chooser"),e.R7$(41),e.Y8G("title","Unit Tests"),e.R7$(4),e.SpI("Created tests for product step: ",s.productStep,""),e.R7$(),e.Y8G("title","Integration Tests"),e.R7$(4),e.SpI("Created tests for product step: ",s.productStep,""),e.R7$(),e.Y8G("title","System Tests"),e.R7$(4),e.SpI("System tests results for product step: ",s.productStep,""),e.R7$(9),e.JRh(s.passedSystemTests),e.R7$(8),e.JRh(s.failedSystemTests),e.R7$(5),e.Y8G("options",s.systemTestsChart),e.R7$(3),e.Y8G("ngForOf",s.systemTests))},dependencies:[l.Sq,n.Jm,n.b_,n.I9,n.ME,n.tN,n.hU,n.W9,n.lO,n.To,n.Ki,n.ln,u.W,S.p,_.$P]}),p})()}];let O=(()=>{var i;class p{}return(i=p).\u0275fac=function(t){return new(t||i)},i.\u0275mod=e.$C({type:i}),i.\u0275inj=e.G2t({imports:[h.iI.forChild(k),h.iI]}),p})();var x=o(5553);let M=(()=>{var i;class p{}return(i=p).\u0275fac=function(t){return new(t||i)},i.\u0275mod=e.$C({type:i}),i.\u0275inj=e.G2t({imports:[l.MD,y.YN,n.bv,O,x.h]}),p})()}}]); \ No newline at end of file diff --git a/www/5722.626381443c213363.js b/www/8886.87f743bcbe3c6802.js similarity index 96% rename from www/5722.626381443c213363.js rename to www/8886.87f743bcbe3c6802.js index 3eb8a70..26ce206 100644 --- a/www/5722.626381443c213363.js +++ b/www/8886.87f743bcbe3c6802.js @@ -1 +1 @@ -"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[5722],{5553:(y,h,r)=>{r.d(h,{h:()=>u});var g=r(177),m=r(7863),n=r(4438);let u=(()=>{var s;class e{}return(s=e).\u0275fac=function(f){return new(f||s)},s.\u0275mod=n.$C({type:s}),s.\u0275inj=n.G2t({imports:[g.MD,m.bv]}),e})()},5722:(y,h,r)=>{r.r(h),r.d(h,{LatencyChooserPageModule:()=>_});var g=r(177),m=r(4341),n=r(7863),u=r(7650),s=r(467),e=r(4438),p=r(6241),f=r(385),C=r(8453);function v(t,a){if(1&t){const c=e.RV6();e.j41(0,"ion-item",7),e.bIt("click",function(){const i=e.eBV(c).$implicit,l=e.XpG().$implicit,d=e.XpG();return e.Njj(d.navigateToLatencyTest(l,i))}),e.j41(1,"ion-label"),e.EFF(2),e.k0s(),e.nrm(3,"ion-icon",8),e.k0s()}if(2&t){const c=a.$implicit;e.R7$(2),e.JRh(c)}}function L(t,a){if(1&t&&(e.j41(0,"ion-col",4)(1,"ion-card")(2,"ion-card-header")(3,"ion-card-title"),e.EFF(4),e.k0s()(),e.j41(5,"ion-card-content")(6,"ion-list"),e.DNE(7,v,4,1,"ion-item",6),e.k0s()()()()),2&t){const c=a.$implicit;e.R7$(4),e.JRh(c.productObjective),e.R7$(3),e.Y8G("ngForOf",c.productSteps)}}const P=[{path:"",component:(()=>{var t;class a{constructor(o,i,l){this.productService=o,this.router=i,this.loadingCtrl=l,this.products=[]}ngOnInit(){}ionViewWillEnter(){var o=this;return(0,s.A)(function*(){yield o.showLoading(),o.getAllProducts(),yield o.hideLoading()})()}getAllProducts(){var o=this;return(0,s.A)(function*(){const i=localStorage.getItem("user");if(!i)return;const d=JSON.parse(i).orgName;o.products=yield o.productService.getProducts(d)})()}doRefresh(o){var i=this;return(0,s.A)(function*(){i.getAllProducts().then(()=>{o.target.complete()})})()}navigateToLatencyTest(o,i){var l=this;return(0,s.A)(function*(){yield l.router.navigate(["/latency-test",{productObjective:o.productObjective,step:i}])})()}showLoading(){var o=this;return(0,s.A)(function*(){yield(yield o.loadingCtrl.create({})).present()})()}hideLoading(){var o=this;return(0,s.A)(function*(){yield o.loadingCtrl.dismiss()})()}}return(t=a).\u0275fac=function(o){return new(o||t)(e.rXU(p.b),e.rXU(u.Ix),e.rXU(n.Xi))},t.\u0275cmp=e.VBU({type:t,selectors:[["app-latency-chooser"]],decls:12,vars:4,consts:[[3,"title"],[3,"fullscreen"],["slot","fixed",3,"ionRefresh"],[1,"lg:m-10","md:m-10"],["size","12","size-md","4","size-lg","4",1,""],["size","12","size-md","4","size-lg","4","class","",4,"ngFor","ngForOf"],[3,"click",4,"ngFor","ngForOf"],[3,"click"],["name","arrow-forward","color","primary"]],template:function(o,i){1&o&&(e.nrm(0,"app-header",0),e.j41(1,"ion-content",1)(2,"ion-refresher",2),e.bIt("ionRefresh",function(d){return i.doRefresh(d)}),e.nrm(3,"ion-refresher-content"),e.k0s(),e.j41(4,"ion-grid"),e.nrm(5,"app-title",0),e.j41(6,"ion-row",3)(7,"ion-col",4)(8,"p"),e.EFF(9,"Choose a product and a product step to test the latency of the product step."),e.k0s()()(),e.j41(10,"ion-row",3),e.DNE(11,L,8,2,"ion-col",5),e.k0s()()()),2&o&&(e.Y8G("title","Latency Test Chooser"),e.R7$(),e.Y8G("fullscreen",!0),e.R7$(4),e.Y8G("title","Latency Test Chooser"),e.R7$(6),e.Y8G("ngForOf",i.products))},dependencies:[g.Sq,n.b_,n.I9,n.ME,n.tN,n.hU,n.W9,n.lO,n.iq,n.uz,n.he,n.nf,n.To,n.Ki,n.ln,f.l,C.W]}),a})()}];let M=(()=>{var t;class a{}return(t=a).\u0275fac=function(o){return new(o||t)},t.\u0275mod=e.$C({type:t}),t.\u0275inj=e.G2t({imports:[u.iI.forChild(P),u.iI]}),a})();var R=r(5553);let _=(()=>{var t;class a{}return(t=a).\u0275fac=function(o){return new(o||t)},t.\u0275mod=e.$C({type:t}),t.\u0275inj=e.G2t({imports:[g.MD,m.YN,n.bv,M,R.h]}),a})()}}]); \ No newline at end of file +"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[8886],{5553:(y,h,r)=>{r.d(h,{h:()=>u});var g=r(177),m=r(7863),n=r(4438);let u=(()=>{var s;class e{}return(s=e).\u0275fac=function(f){return new(f||s)},s.\u0275mod=n.$C({type:s}),s.\u0275inj=n.G2t({imports:[g.MD,m.bv]}),e})()},8886:(y,h,r)=>{r.r(h),r.d(h,{LatencyChooserPageModule:()=>_});var g=r(177),m=r(4341),n=r(7863),u=r(7650),s=r(467),e=r(4438),p=r(6241),f=r(385),C=r(8453);function v(t,a){if(1&t){const c=e.RV6();e.j41(0,"ion-item",7),e.bIt("click",function(){const i=e.eBV(c).$implicit,l=e.XpG().$implicit,d=e.XpG();return e.Njj(d.navigateToLatencyTest(l,i))}),e.j41(1,"ion-label"),e.EFF(2),e.k0s(),e.nrm(3,"ion-icon",8),e.k0s()}if(2&t){const c=a.$implicit;e.R7$(2),e.JRh(c)}}function L(t,a){if(1&t&&(e.j41(0,"ion-col",4)(1,"ion-card")(2,"ion-card-header")(3,"ion-card-title"),e.EFF(4),e.k0s()(),e.j41(5,"ion-card-content")(6,"ion-list"),e.DNE(7,v,4,1,"ion-item",6),e.k0s()()()()),2&t){const c=a.$implicit;e.R7$(4),e.JRh(c.productObjective),e.R7$(3),e.Y8G("ngForOf",c.productSteps)}}const P=[{path:"",component:(()=>{var t;class a{constructor(o,i,l){this.productService=o,this.router=i,this.loadingCtrl=l,this.products=[]}ngOnInit(){}ionViewWillEnter(){var o=this;return(0,s.A)(function*(){yield o.showLoading(),o.getAllProducts(),yield o.hideLoading()})()}getAllProducts(){var o=this;return(0,s.A)(function*(){const i=localStorage.getItem("user");if(!i)return;const d=JSON.parse(i).orgName;o.products=yield o.productService.getProducts(d)})()}doRefresh(o){var i=this;return(0,s.A)(function*(){i.getAllProducts().then(()=>{o.target.complete()})})()}navigateToLatencyTest(o,i){var l=this;return(0,s.A)(function*(){yield l.router.navigate(["/latency-test",{productObjective:o.productObjective,step:i}])})()}showLoading(){var o=this;return(0,s.A)(function*(){yield(yield o.loadingCtrl.create({})).present()})()}hideLoading(){var o=this;return(0,s.A)(function*(){yield o.loadingCtrl.dismiss()})()}}return(t=a).\u0275fac=function(o){return new(o||t)(e.rXU(p.b),e.rXU(u.Ix),e.rXU(n.Xi))},t.\u0275cmp=e.VBU({type:t,selectors:[["app-latency-chooser"]],decls:12,vars:4,consts:[[3,"title"],[3,"fullscreen"],["slot","fixed",3,"ionRefresh"],[1,"lg:m-10","md:m-10"],["size","12","size-md","4","size-lg","4",1,""],["size","12","size-md","4","size-lg","4","class","",4,"ngFor","ngForOf"],[3,"click",4,"ngFor","ngForOf"],[3,"click"],["name","arrow-forward","color","primary"]],template:function(o,i){1&o&&(e.nrm(0,"app-header",0),e.j41(1,"ion-content",1)(2,"ion-refresher",2),e.bIt("ionRefresh",function(d){return i.doRefresh(d)}),e.nrm(3,"ion-refresher-content"),e.k0s(),e.j41(4,"ion-grid"),e.nrm(5,"app-title",0),e.j41(6,"ion-row",3)(7,"ion-col",4)(8,"p"),e.EFF(9,"Choose a product and a product step to test the latency of the product step."),e.k0s()()(),e.j41(10,"ion-row",3),e.DNE(11,L,8,2,"ion-col",5),e.k0s()()()),2&o&&(e.Y8G("title","Latency Test Chooser"),e.R7$(),e.Y8G("fullscreen",!0),e.R7$(4),e.Y8G("title","Latency Test Chooser"),e.R7$(6),e.Y8G("ngForOf",i.products))},dependencies:[g.Sq,n.b_,n.I9,n.ME,n.tN,n.hU,n.W9,n.lO,n.iq,n.uz,n.he,n.nf,n.To,n.Ki,n.ln,f.l,C.W]}),a})()}];let M=(()=>{var t;class a{}return(t=a).\u0275fac=function(o){return new(o||t)},t.\u0275mod=e.$C({type:t}),t.\u0275inj=e.G2t({imports:[u.iI.forChild(P),u.iI]}),a})();var R=r(5553);let _=(()=>{var t;class a{}return(t=a).\u0275fac=function(o){return new(o||t)},t.\u0275mod=e.$C({type:t}),t.\u0275inj=e.G2t({imports:[g.MD,m.YN,n.bv,M,R.h]}),a})()}}]); \ No newline at end of file diff --git a/www/6656.bd1aa2cc43128309.js b/www/8984.d28cf89bc8592645.js similarity index 98% rename from www/6656.bd1aa2cc43128309.js rename to www/8984.d28cf89bc8592645.js index 16b9edd..6bc986e 100644 --- a/www/6656.bd1aa2cc43128309.js +++ b/www/8984.d28cf89bc8592645.js @@ -1 +1 @@ -"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[6656],{5553:(L,h,n)=>{n.d(h,{h:()=>p});var r=n(177),f=n(7863),o=n(4438);let p=(()=>{var s;class e{}return(s=e).\u0275fac=function(d){return new(d||s)},s.\u0275mod=o.$C({type:s}),s.\u0275inj=o.G2t({imports:[r.MD,f.bv]}),e})()},3241:(L,h,n)=>{n.d(h,{p:()=>p});var r=n(4438),f=n(177),o=n(7863);let p=(()=>{var s;class e{constructor(d){this.location=d,this.title="Header Title"}ngOnInit(){}goBack(){this.location.back()}}return(s=e).\u0275fac=function(d){return new(d||s)(r.rXU(f.aZ))},s.\u0275cmp=r.VBU({type:s,selectors:[["app-header-return"]],inputs:{title:"title"},decls:6,vars:2,consts:[[3,"translucent"],["slot","start","menu","menu-id"],["name","arrow-back","slot","start",1,"p-4","bigger-icon",3,"click"]],template:function(d,v){1&d&&(r.j41(0,"ion-header",0)(1,"ion-toolbar"),r.nrm(2,"ion-menu-button",1),r.j41(3,"ion-icon",2),r.bIt("click",function(){return v.goBack()}),r.k0s(),r.j41(4,"ion-title"),r.EFF(5),r.k0s()()()),2&d&&(r.Y8G("translucent",!0),r.R7$(5),r.JRh(v.title))},dependencies:[o.eU,o.iq,o.MC,o.BC,o.ai],styles:[".bigger-icon[_ngcontent-%COMP%]{font-size:1.5em}"]}),e})()},6656:(L,h,n)=>{n.r(h),n.d(h,{LatencyResultsPageModule:()=>j});var r=n(177),f=n(4341),o=n(7863),p=n(7650),s=n(467),e=n(4438),y=n(9640),d=n(1681),v=n(8453),M=n(3241);function P(i,m){if(1&i&&(e.j41(0,"ion-item")(1,"ion-label"),e.EFF(2),e.k0s(),e.j41(3,"ion-label"),e.EFF(4),e.k0s(),e.j41(5,"ion-label"),e.EFF(6),e.k0s()()),2&i){const u=m.$implicit;e.R7$(2),e.Lme("",u.cityFrom,",",u.countryFrom,""),e.R7$(2),e.SpI("",u.latency," ms"),e.R7$(2),e.Lme(" ",u.cityTo,",",u.countryTo,"")}}const F=[{path:"",component:(()=>{var i;class m{constructor(t,l,a,c,g,R){this.route=t,this.ripeService=l,this.router=a,this.loadingCtrl=c,this.locationService=g,this.alertCtrl=R,this.description="",this.orgName="",this.productObjective="",this.user={},this.ripeResults=[],this.testID=""}ngOnInit(){this.route.queryParams.subscribe(a=>{console.log(a),this.description=a.description,this.productObjective=a.productObjective});const t=localStorage.getItem("user");if(!t)return;const l=JSON.parse(t);this.orgName=l.orgName,this.ripeService.getAllResultsByDescription(this.orgName,this.productObjective,this.description).then(a=>{for(let c=0;c{t.ripeResults=g,t.locationService.saveLocationResults(t.orgName,t.productObjective,t.description,g).then(function(){var R=(0,s.A)(function*(E){E&&(yield t.hideLoading(),yield t.showAlert("Data saved and Showing Results","Success"))});return function(E){return R.apply(this,arguments)}}())})}))});return function(c){return a.apply(this,arguments)}}())}catch{yield t.hideLoading(),yield t.showAlert("Error getting results","Error")}})()}showLoading(){var t=this;return(0,s.A)(function*(){yield(yield t.loadingCtrl.create({})).present()})()}hideLoading(){var t=this;return(0,s.A)(function*(){yield t.loadingCtrl.dismiss()})()}showAlert(t,l){var a=this;return(0,s.A)(function*(){yield(yield a.alertCtrl.create({header:l,message:t,buttons:["OK"]})).present()})()}}return(i=m).\u0275fac=function(t){return new(t||i)(e.rXU(p.nX),e.rXU(y.Q),e.rXU(p.Ix),e.rXU(o.Xi),e.rXU(d.N),e.rXU(o.hG))},i.\u0275cmp=e.VBU({type:i,selectors:[["app-latency-results"]],inputs:{description:"description"},decls:33,vars:6,consts:[[3,"title"],[3,"fullscreen"],[1,"text-xs","m-2","lg:m-10","lg:text-2xl","md:text-2xl","md:m-10"],[1,"lg:m-10","md:m-10"],["size","4","size-md","4","size-lg","4",1,"flex","flex-row","justify-center"],[1,"text-2xl"],["size","12","size-md","12","size-lg","12"],[4,"ngFor","ngForOf"],[3,"translucent"],["size","4"],["size","8",1,"flex","flex-row","justify-end"],["size","small","color","light",3,"click"],["name","refresh",1,"m-2"],["size","small","color","primary",3,"click"],["name","arrow-forward",1,"m-2"]],template:function(t,l){1&t&&(e.nrm(0,"app-header-return",0),e.j41(1,"ion-content",1)(2,"ion-grid"),e.nrm(3,"app-title",0),e.j41(4,"h2",2),e.EFF(5),e.k0s(),e.nrm(6,"br"),e.j41(7,"ion-row",3)(8,"ion-col",4)(9,"h1",5),e.EFF(10,"FROM"),e.k0s()(),e.j41(11,"ion-col",4)(12,"h1",5),e.EFF(13,"LATENCY"),e.k0s()(),e.j41(14,"ion-col",4)(15,"h1",5),e.EFF(16,"TO"),e.k0s()()(),e.j41(17,"ion-row",3)(18,"ion-col",6)(19,"ion-list"),e.DNE(20,P,7,5,"ion-item",7),e.k0s()()()()(),e.j41(21,"ion-footer",8)(22,"ion-toolbar")(23,"ion-grid")(24,"ion-row"),e.nrm(25,"ion-col",9),e.j41(26,"ion-col",10)(27,"ion-button",11),e.bIt("click",function(){return l.getMoreResults()}),e.EFF(28,"GET MORE RESULTS "),e.nrm(29,"ion-icon",12),e.k0s(),e.j41(30,"ion-button",13),e.bIt("click",function(){return l.goToMap()}),e.EFF(31,"GO TO MAP "),e.nrm(32,"ion-icon",14),e.k0s()()()()()()),2&t&&(e.Y8G("title","Latency Results for "+l.description),e.R7$(),e.Y8G("fullscreen",!0),e.R7$(2),e.Y8G("title","Test Results"),e.R7$(2),e.SpI("Results for ",l.description,""),e.R7$(15),e.Y8G("ngForOf",l.ripeResults),e.R7$(),e.Y8G("translucent",!0))},dependencies:[r.Sq,o.Jm,o.hU,o.W9,o.M0,o.lO,o.iq,o.uz,o.he,o.nf,o.ln,o.ai,v.W,M.p]}),m})()}];let O=(()=>{var i;class m{}return(i=m).\u0275fac=function(t){return new(t||i)},i.\u0275mod=e.$C({type:i}),i.\u0275inj=e.G2t({imports:[p.iI.forChild(F),p.iI]}),m})();var C=n(5553);let j=(()=>{var i;class m{}return(i=m).\u0275fac=function(t){return new(t||i)},i.\u0275mod=e.$C({type:i}),i.\u0275inj=e.G2t({imports:[r.MD,f.YN,o.bv,O,C.h]}),m})()}}]); \ No newline at end of file +"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[8984],{5553:(L,h,n)=>{n.d(h,{h:()=>p});var r=n(177),f=n(7863),o=n(4438);let p=(()=>{var s;class e{}return(s=e).\u0275fac=function(d){return new(d||s)},s.\u0275mod=o.$C({type:s}),s.\u0275inj=o.G2t({imports:[r.MD,f.bv]}),e})()},3241:(L,h,n)=>{n.d(h,{p:()=>p});var r=n(4438),f=n(177),o=n(7863);let p=(()=>{var s;class e{constructor(d){this.location=d,this.title="Header Title"}ngOnInit(){}goBack(){this.location.back()}}return(s=e).\u0275fac=function(d){return new(d||s)(r.rXU(f.aZ))},s.\u0275cmp=r.VBU({type:s,selectors:[["app-header-return"]],inputs:{title:"title"},decls:6,vars:2,consts:[[3,"translucent"],["slot","start","menu","menu-id"],["name","arrow-back","slot","start",1,"p-4","bigger-icon",3,"click"]],template:function(d,v){1&d&&(r.j41(0,"ion-header",0)(1,"ion-toolbar"),r.nrm(2,"ion-menu-button",1),r.j41(3,"ion-icon",2),r.bIt("click",function(){return v.goBack()}),r.k0s(),r.j41(4,"ion-title"),r.EFF(5),r.k0s()()()),2&d&&(r.Y8G("translucent",!0),r.R7$(5),r.JRh(v.title))},dependencies:[o.eU,o.iq,o.MC,o.BC,o.ai],styles:[".bigger-icon[_ngcontent-%COMP%]{font-size:1.5em}"]}),e})()},8984:(L,h,n)=>{n.r(h),n.d(h,{LatencyResultsPageModule:()=>j});var r=n(177),f=n(4341),o=n(7863),p=n(7650),s=n(467),e=n(4438),y=n(9640),d=n(1681),v=n(8453),M=n(3241);function P(i,m){if(1&i&&(e.j41(0,"ion-item")(1,"ion-label"),e.EFF(2),e.k0s(),e.j41(3,"ion-label"),e.EFF(4),e.k0s(),e.j41(5,"ion-label"),e.EFF(6),e.k0s()()),2&i){const u=m.$implicit;e.R7$(2),e.Lme("",u.cityFrom,",",u.countryFrom,""),e.R7$(2),e.SpI("",u.latency," ms"),e.R7$(2),e.Lme(" ",u.cityTo,",",u.countryTo,"")}}const F=[{path:"",component:(()=>{var i;class m{constructor(t,l,a,c,g,R){this.route=t,this.ripeService=l,this.router=a,this.loadingCtrl=c,this.locationService=g,this.alertCtrl=R,this.description="",this.orgName="",this.productObjective="",this.user={},this.ripeResults=[],this.testID=""}ngOnInit(){this.route.queryParams.subscribe(a=>{console.log(a),this.description=a.description,this.productObjective=a.productObjective});const t=localStorage.getItem("user");if(!t)return;const l=JSON.parse(t);this.orgName=l.orgName,this.ripeService.getAllResultsByDescription(this.orgName,this.productObjective,this.description).then(a=>{for(let c=0;c{t.ripeResults=g,t.locationService.saveLocationResults(t.orgName,t.productObjective,t.description,g).then(function(){var R=(0,s.A)(function*(E){E&&(yield t.hideLoading(),yield t.showAlert("Data saved and Showing Results","Success"))});return function(E){return R.apply(this,arguments)}}())})}))});return function(c){return a.apply(this,arguments)}}())}catch{yield t.hideLoading(),yield t.showAlert("Error getting results","Error")}})()}showLoading(){var t=this;return(0,s.A)(function*(){yield(yield t.loadingCtrl.create({})).present()})()}hideLoading(){var t=this;return(0,s.A)(function*(){yield t.loadingCtrl.dismiss()})()}showAlert(t,l){var a=this;return(0,s.A)(function*(){yield(yield a.alertCtrl.create({header:l,message:t,buttons:["OK"]})).present()})()}}return(i=m).\u0275fac=function(t){return new(t||i)(e.rXU(p.nX),e.rXU(y.Q),e.rXU(p.Ix),e.rXU(o.Xi),e.rXU(d.N),e.rXU(o.hG))},i.\u0275cmp=e.VBU({type:i,selectors:[["app-latency-results"]],inputs:{description:"description"},decls:33,vars:6,consts:[[3,"title"],[3,"fullscreen"],[1,"text-xs","m-2","lg:m-10","lg:text-2xl","md:text-2xl","md:m-10"],[1,"lg:m-10","md:m-10"],["size","4","size-md","4","size-lg","4",1,"flex","flex-row","justify-center"],[1,"text-2xl"],["size","12","size-md","12","size-lg","12"],[4,"ngFor","ngForOf"],[3,"translucent"],["size","4"],["size","8",1,"flex","flex-row","justify-end"],["size","small","color","light",3,"click"],["name","refresh",1,"m-2"],["size","small","color","primary",3,"click"],["name","arrow-forward",1,"m-2"]],template:function(t,l){1&t&&(e.nrm(0,"app-header-return",0),e.j41(1,"ion-content",1)(2,"ion-grid"),e.nrm(3,"app-title",0),e.j41(4,"h2",2),e.EFF(5),e.k0s(),e.nrm(6,"br"),e.j41(7,"ion-row",3)(8,"ion-col",4)(9,"h1",5),e.EFF(10,"FROM"),e.k0s()(),e.j41(11,"ion-col",4)(12,"h1",5),e.EFF(13,"LATENCY"),e.k0s()(),e.j41(14,"ion-col",4)(15,"h1",5),e.EFF(16,"TO"),e.k0s()()(),e.j41(17,"ion-row",3)(18,"ion-col",6)(19,"ion-list"),e.DNE(20,P,7,5,"ion-item",7),e.k0s()()()()(),e.j41(21,"ion-footer",8)(22,"ion-toolbar")(23,"ion-grid")(24,"ion-row"),e.nrm(25,"ion-col",9),e.j41(26,"ion-col",10)(27,"ion-button",11),e.bIt("click",function(){return l.getMoreResults()}),e.EFF(28,"GET MORE RESULTS "),e.nrm(29,"ion-icon",12),e.k0s(),e.j41(30,"ion-button",13),e.bIt("click",function(){return l.goToMap()}),e.EFF(31,"GO TO MAP "),e.nrm(32,"ion-icon",14),e.k0s()()()()()()),2&t&&(e.Y8G("title","Latency Results for "+l.description),e.R7$(),e.Y8G("fullscreen",!0),e.R7$(2),e.Y8G("title","Test Results"),e.R7$(2),e.SpI("Results for ",l.description,""),e.R7$(15),e.Y8G("ngForOf",l.ripeResults),e.R7$(),e.Y8G("translucent",!0))},dependencies:[r.Sq,o.Jm,o.hU,o.W9,o.M0,o.lO,o.iq,o.uz,o.he,o.nf,o.ln,o.ai,v.W,M.p]}),m})()}];let O=(()=>{var i;class m{}return(i=m).\u0275fac=function(t){return new(t||i)},i.\u0275mod=e.$C({type:i}),i.\u0275inj=e.G2t({imports:[p.iI.forChild(F),p.iI]}),m})();var C=n(5553);let j=(()=>{var i;class m{}return(i=m).\u0275fac=function(t){return new(t||i)},i.\u0275mod=e.$C({type:i}),i.\u0275inj=e.G2t({imports:[r.MD,f.YN,o.bv,O,C.h]}),m})()}}]); \ No newline at end of file diff --git a/www/9070.29b18cc91c088f3f.js b/www/9070.29b18cc91c088f3f.js new file mode 100644 index 0000000..2ba6225 --- /dev/null +++ b/www/9070.29b18cc91c088f3f.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[9070],{9070:(F,h,n)=>{n.r(h),n.d(h,{ShowMapPageModule:()=>L});var g=n(177),m=n(4341),l=n(7863),p=n(7650),s=n(467),c=n(8244),f=n(5841),o=n(4438),v=n(9640),y=n(3241);function M(e,i){if(1&e&&(o.j41(0,"p"),o.EFF(1),o.k0s()),2&e){const d=i.$implicit;o.R7$(),o.Lme("",d.countryFrom," : ",d.latency,"ms")}}const S=[{path:"",component:(()=>{var e;class i{constructor(t,a,r){this.ripeService=t,this.loadingCtrl=a,this.route=r,this.ripeData=[],this.orgName="",this.productObjective="",this.description=""}ngOnInit(){}ionViewDidEnter(){var t=this;return(0,s.A)(function*(){yield t.showLoading(),t.route.queryParams.subscribe(function(){var a=(0,s.A)(function*(r){t.description=r.description,t.productObjective=r.productObjective,t.orgName=r.orgName,console.log(t.orgName),console.log(t.productObjective),console.log(t.description),yield t.ripeService.getAllResultsByDescription(t.orgName,t.productObjective,t.description).then(u=>{t.ripeData=u}).then(()=>{t.leafletMap()})});return function(r){return a.apply(this,arguments)}}())})()}leafletMap(){var t=this;return(0,s.A)(function*(){t.map=c.map("mapId").setView([0,0],2.5),c.tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",{attribution:"edupala.com \xa9 Angular LeafLet",minZoom:2.5,maxZoom:8}).addTo(t.map),setTimeout(()=>{t.map.invalidateSize(),t.addPaths()},1e3)})()}ngOnDestroy(){this.map.remove()}addPaths(){var t=this;return(0,s.A)(function*(){t.ripeData=t.ripeData.data,t.ripeData.sort((a,r)=>a.latency

Latency: ${a.latency} ms

`,iconSize:[200,20]});c.marker([(a.fromLatitude+a.toLatitude)/2,(a.fromLongitude+a.toLongitude)/2],{icon:u}).addTo(t.map)}yield t.hideLoading()})()}showLoading(){var t=this;return(0,s.A)(function*(){yield(yield t.loadingCtrl.create({})).present()})()}hideLoading(){var t=this;return(0,s.A)(function*(){yield t.loadingCtrl.dismiss()})()}}return(e=i).\u0275fac=function(t){return new(t||e)(o.rXU(v.Q),o.rXU(l.Xi),o.rXU(p.nX))},e.\u0275cmp=o.VBU({type:e,selectors:[["app-show-map"]],decls:10,vars:1,consts:[[3,"title"],[1,"relative"],["color","dark",1,"fixed-card","hidden","lg:block"],["color","black"],["id","mapId",2,"width","100%","height","100%"]],template:function(t,a){1&t&&(o.nrm(0,"app-header-return",0),o.j41(1,"ion-content",1)(2,"ion-card",2)(3,"ion-card-header")(4,"ion-card-title",3),o.EFF(5,"Latency Higher to Lower"),o.k0s()(),o.j41(6,"ion-card-content"),o.Z7z(7,M,2,2,"p",null,o.fX1),o.k0s()(),o.nrm(9,"div",4),o.k0s()),2&t&&(o.Y8G("title","Show Map"),o.R7$(7),o.Dyx(a.ripeData))},dependencies:[l.b_,l.I9,l.ME,l.tN,l.W9,y.p],styles:[".fixed-card[_ngcontent-%COMP%]{position:absolute;top:10px;left:50px;z-index:1000;background-color:#fff;border-radius:10px;box-shadow:0 2px 10px #0003}"]}),i})()}];let w=(()=>{var e;class i{}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275mod=o.$C({type:e}),e.\u0275inj=o.G2t({imports:[p.iI.forChild(S),p.iI]}),i})();var P=n(5553);let L=(()=>{var e;class i{}return(e=i).\u0275fac=function(t){return new(t||e)},e.\u0275mod=o.$C({type:e}),e.\u0275inj=o.G2t({imports:[g.MD,m.YN,l.bv,w,P.h]}),i})()}}]); \ No newline at end of file diff --git a/www/8533.b6a5800de88c91e2.js b/www/9456.0b4cbaf1cbe8b46a.js similarity index 98% rename from www/8533.b6a5800de88c91e2.js rename to www/9456.0b4cbaf1cbe8b46a.js index d5d5c95..c0b8fac 100644 --- a/www/8533.b6a5800de88c91e2.js +++ b/www/9456.0b4cbaf1cbe8b46a.js @@ -1 +1 @@ -"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[8533],{5553:(v,R,c)=>{c.d(R,{h:()=>m});var d=c(177),f=c(7863),r=c(4438);let m=(()=>{var l;class e{}return(l=e).\u0275fac=function(g){return new(g||l)},l.\u0275mod=r.$C({type:l}),l.\u0275inj=r.G2t({imports:[d.MD,f.bv]}),e})()},3241:(v,R,c)=>{c.d(R,{p:()=>m});var d=c(4438),f=c(177),r=c(7863);let m=(()=>{var l;class e{constructor(g){this.location=g,this.title="Header Title"}ngOnInit(){}goBack(){this.location.back()}}return(l=e).\u0275fac=function(g){return new(g||l)(d.rXU(f.aZ))},l.\u0275cmp=d.VBU({type:l,selectors:[["app-header-return"]],inputs:{title:"title"},decls:6,vars:2,consts:[[3,"translucent"],["slot","start","menu","menu-id"],["name","arrow-back","slot","start",1,"p-4","bigger-icon",3,"click"]],template:function(g,T){1&g&&(d.j41(0,"ion-header",0)(1,"ion-toolbar"),d.nrm(2,"ion-menu-button",1),d.j41(3,"ion-icon",2),d.bIt("click",function(){return T.goBack()}),d.k0s(),d.j41(4,"ion-title"),d.EFF(5),d.k0s()()()),2&g&&(d.Y8G("translucent",!0),d.R7$(5),d.JRh(T.title))},dependencies:[r.eU,r.iq,r.MC,r.BC,r.ai],styles:[".bigger-icon[_ngcontent-%COMP%]{font-size:1.5em}"]}),e})()},8533:(v,R,c)=>{c.r(R),c.d(R,{LatencyTestPageModule:()=>F});var d=c(177),f=c(4341),r=c(7863),m=c(7650),l=c(467),e=c(4438),_=c(9640),g=c(1681),T=c(8453),L=c(3241);function C(s,p){if(1&s){const u=e.RV6();e.j41(0,"ion-chip",19),e.bIt("click",function(){const n=e.eBV(u).$implicit,o=e.XpG();return e.Njj(o.selectCountry(n))}),e.EFF(1),e.k0s()}if(2&s){const u=p.$implicit,t=e.XpG();e.Y8G("color",t.isCountrySelected(u)?"primary":""),e.R7$(),e.SpI(" ",u," ")}}function A(s,p){if(1&s&&(e.j41(0,"ion-item")(1,"ion-label"),e.EFF(2),e.k0s(),e.j41(3,"ion-label"),e.EFF(4),e.k0s(),e.j41(5,"ion-label"),e.EFF(6),e.k0s()()),2&s){const u=p.$implicit;e.R7$(2),e.Lme("FROM ",u.cityFrom,",",u.countryFrom,""),e.R7$(2),e.SpI("",u.latency," ms"),e.R7$(2),e.Lme(" TO ",u.cityTo,",",u.countryTo,"")}}function E(s,p){if(1&s){const u=e.RV6();e.j41(0,"ion-item",20),e.bIt("click",function(){const n=e.eBV(u).$implicit,o=e.XpG();return e.Njj(o.viewHistory(n))}),e.j41(1,"ion-label"),e.EFF(2),e.k0s(),e.nrm(3,"ion-icon",21),e.k0s()}if(2&s){const u=p.$implicit;e.R7$(2),e.JRh(u)}}const M=[{path:"",component:(()=>{var s;class p{constructor(t,n,o,i,a,h){this.ripeService=t,this.loadingCtrl=n,this.locationService=o,this.route=i,this.alertCtrl=a,this.router=h,this.user={},this.orgName="",this.productObjective="",this.productStep="",this.host="portfoliojuanfranciscocisneros.web.app",this.description="NEW IONIC",this.type="ping",this.ripeResults=[],this.ripeHistoryResultsID=[],this.selectedCountries=[],this.countries={names:["BRAZIL","AUSTRALIA","USA","RUSSIA","UK","GERMANY","ITALY","SPAIN","FRANCE","JAPAN","ARGENTINA","SOUTH_AFRICA","SAUDI_ARABIA","GUATEMALA","THAILAND","INDIA"],probeIDs:[1003561,1007336,1008100,1000053,1002575,1005576,1006903,1004167,1004967,61328,62589,62590,62643,51757,1004373,1007631]}}ngOnInit(){}ionViewWillEnter(){var t=this;return(0,l.A)(function*(){yield t.showLoading(),t.route.params.subscribe(o=>{t.productObjective=o.productObjective,t.productStep=o.step;const i=new Date,a=i.getDate()+"-"+(i.getMonth()+1)+"-"+i.getFullYear()+"-"+i.getHours()+":"+i.getMinutes()+":"+i.getSeconds();t.description=o.productObjective+"-"+o.step+"-"+a});const n=localStorage.getItem("user");n&&(t.user=JSON.parse(n),t.orgName=t.user.orgName,yield t.getHistoryResults(t.orgName,t.productObjective),yield t.hideLoading())})()}sendRequest(){var t=this;return(0,l.A)(function*(){if(yield t.showLoading(),t.host.startsWith("http://")||t.host.startsWith("https://")||t.host.endsWith("/"))return yield t.hideLoading(),void(yield t.showAlert("No http or https is needed, check for slashes at the end of the domain","Please enter a valid host"));if(0===t.selectedCountries.length)return yield t.hideLoading(),void(yield t.showAlert("Please select at least one country","Error"));let n="";for(let y=0;ysetTimeout(y,5e3)),yield t.hideLoading(),yield t.getResults()):yield t.showAlert(i,a)})()}getResults(){var t=this;return(0,l.A)(function*(){yield t.showLoading(),t.ripeResults=[];try{let n=yield t.ripeService.getMeasurementResults();if(!n)return yield t.hideLoading(),void(yield t.showAlert("Please send a test first","Error"));n.subscribe(function(){var o=(0,l.A)(function*(i){if(0===i.length)return yield t.hideLoading(),yield t.showAlert("No data found yet","Trying again"),void(yield t.getResults());for(let a=0;a{t.ripeResults=a,t.locationService.saveLocationResults(t.orgName,t.productObjective,t.description,a).then(function(){var h=(0,l.A)(function*(y){y&&(yield t.getHistoryResults(t.orgName,t.productObjective),yield t.hideLoading(),yield t.showAlert("Data saved and Showing Results, you can get more results in the test history","Success"))});return function(y){return h.apply(this,arguments)}}())})}))});return function(i){return o.apply(this,arguments)}}())}catch{yield t.hideLoading(),yield t.showAlert("Error getting results","Error")}})()}handleChange(t){this.type=t.detail.value}getHistoryResults(t,n){var o=this;return(0,l.A)(function*(){o.ripeHistoryResultsID=[];const i=yield o.ripeService.getHistoryResults(t,n);for(let a=0;anew Date(h.split("-")[2])-new Date(a.split("-")[2]))})()}selectCountry(t){const n=this.selectedCountries.indexOf(t);n>-1?this.selectedCountries.splice(n,1):this.selectedCountries.push(t)}isCountrySelected(t){return this.selectedCountries.includes(t)}showLoading(){var t=this;return(0,l.A)(function*(){yield(yield t.loadingCtrl.create({})).present()})()}hideLoading(){var t=this;return(0,l.A)(function*(){yield t.loadingCtrl.dismiss()})()}showAlert(t,n){var o=this;return(0,l.A)(function*(){const i=yield o.alertCtrl.create({header:n,message:t,buttons:["OK"]});return yield i.present(),yield i.onDidDismiss(),!0})()}viewHistory(t){var n=this;return(0,l.A)(function*(){yield n.router.navigate(["/latency-results"],{queryParams:{description:t,productObjective:n.productObjective,step:n.productStep}})})()}}return(s=p).\u0275fac=function(t){return new(t||s)(e.rXU(_.Q),e.rXU(r.Xi),e.rXU(g.N),e.rXU(m.nX),e.rXU(r.hG),e.rXU(m.Ix))},s.\u0275cmp=e.VBU({type:s,selectors:[["app-latency-test"]],inputs:{host:"host",description:"description"},decls:39,vars:9,consts:[[3,"title"],[3,"fullscreen"],[1,"lg:m-10","md:m-10"],["size","12","size-md","4","size-lg","4",1,""],["label","Host Name","placeholder","Enter a host name","type","text","labelPlacement","stacked",1,"",3,"ngModelChange","ngModel"],["size","12","size-md","4","size-lg","4"],["readonly","true","label","Description","placeholder","Enter a description","type","text","labelPlacement","stacked",1,"",3,"ngModelChange","ngModel"],["size","12","size-md","12","size-lg","12"],[1,"text-xl"],[1,"m-2",3,"color"],["size","12","size-md","12","size-lg","12",1,"flex","flex-row","justify-end"],["color","primary","size","small",1,"",3,"click"],["name","add"],[4,"ngFor","ngForOf"],["size","12","size-md","12","size-lg","12",1,"flex","flex-row","justify-end","items-center"],[1,"m-2"],["color","warning","size","small",1,"",3,"click"],["name","refresh"],[3,"click",4,"ngFor","ngForOf"],[1,"m-2",3,"click","color"],[3,"click"],["name","arrow-forward","color","primary"]],template:function(t,n){1&t&&(e.nrm(0,"app-header-return",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(i){return e.DH7(n.host,i)||(n.host=i),i}),e.k0s()(),e.j41(7,"ion-col",5)(8,"ion-input",6),e.mxI("ngModelChange",function(i){return e.DH7(n.description,i)||(n.description=i),i}),e.k0s()()(),e.j41(9,"ion-row",2)(10,"ion-col",7)(11,"h3",8),e.EFF(12,"Select Countries to test"),e.k0s()()(),e.j41(13,"ion-row",2)(14,"ion-col",7),e.Z7z(15,C,2,2,"ion-chip",9,e.fX1),e.k0s()(),e.j41(17,"ion-row",2)(18,"ion-col",10)(19,"ion-button",11),e.bIt("click",function(){return n.sendRequest()}),e.EFF(20,"Add Test "),e.nrm(21,"ion-icon",12),e.k0s()()(),e.nrm(22,"app-title",0),e.j41(23,"ion-row",2)(24,"ion-col",7)(25,"ion-list"),e.DNE(26,A,7,5,"ion-item",13),e.k0s()()(),e.j41(27,"ion-row",2)(28,"ion-col",14)(29,"ion-label",15),e.EFF(30,"Not all results are shown? "),e.k0s(),e.j41(31,"ion-button",16),e.bIt("click",function(){return n.getResults()}),e.EFF(32,"GET MORE RESULTS "),e.nrm(33,"ion-icon",17),e.k0s()()(),e.nrm(34,"app-title",0),e.j41(35,"ion-row",2)(36,"ion-col",7)(37,"ion-list"),e.DNE(38,E,4,1,"ion-item",18),e.k0s()()()()()),2&t&&(e.Y8G("title","Latency Test"),e.R7$(),e.Y8G("fullscreen",!0),e.R7$(2),e.Y8G("title","New Latency Test"),e.R7$(3),e.R50("ngModel",n.host),e.R7$(2),e.R50("ngModel",n.description),e.R7$(7),e.Dyx(n.countries.names),e.R7$(7),e.Y8G("title","Test Results"),e.R7$(4),e.Y8G("ngForOf",n.ripeResults),e.R7$(8),e.Y8G("title","Test Results History"),e.R7$(4),e.Y8G("ngForOf",n.ripeHistoryResultsID))},dependencies:[d.Sq,f.BC,f.vS,r.Jm,r.ZB,r.hU,r.W9,r.lO,r.iq,r.$w,r.uz,r.he,r.nf,r.ln,r.Gw,T.W,L.p]}),p})()}];let P=(()=>{var s;class p{}return(s=p).\u0275fac=function(t){return new(t||s)},s.\u0275mod=e.$C({type:s}),s.\u0275inj=e.G2t({imports:[m.iI.forChild(M),m.iI]}),p})();var I=c(5553);let F=(()=>{var s;class p{}return(s=p).\u0275fac=function(t){return new(t||s)},s.\u0275mod=e.$C({type:s}),s.\u0275inj=e.G2t({imports:[d.MD,f.YN,r.bv,P,I.h]}),p})()}}]); \ No newline at end of file +"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[9456],{5553:(v,R,c)=>{c.d(R,{h:()=>m});var d=c(177),f=c(7863),r=c(4438);let m=(()=>{var l;class e{}return(l=e).\u0275fac=function(g){return new(g||l)},l.\u0275mod=r.$C({type:l}),l.\u0275inj=r.G2t({imports:[d.MD,f.bv]}),e})()},3241:(v,R,c)=>{c.d(R,{p:()=>m});var d=c(4438),f=c(177),r=c(7863);let m=(()=>{var l;class e{constructor(g){this.location=g,this.title="Header Title"}ngOnInit(){}goBack(){this.location.back()}}return(l=e).\u0275fac=function(g){return new(g||l)(d.rXU(f.aZ))},l.\u0275cmp=d.VBU({type:l,selectors:[["app-header-return"]],inputs:{title:"title"},decls:6,vars:2,consts:[[3,"translucent"],["slot","start","menu","menu-id"],["name","arrow-back","slot","start",1,"p-4","bigger-icon",3,"click"]],template:function(g,T){1&g&&(d.j41(0,"ion-header",0)(1,"ion-toolbar"),d.nrm(2,"ion-menu-button",1),d.j41(3,"ion-icon",2),d.bIt("click",function(){return T.goBack()}),d.k0s(),d.j41(4,"ion-title"),d.EFF(5),d.k0s()()()),2&g&&(d.Y8G("translucent",!0),d.R7$(5),d.JRh(T.title))},dependencies:[r.eU,r.iq,r.MC,r.BC,r.ai],styles:[".bigger-icon[_ngcontent-%COMP%]{font-size:1.5em}"]}),e})()},9456:(v,R,c)=>{c.r(R),c.d(R,{LatencyTestPageModule:()=>F});var d=c(177),f=c(4341),r=c(7863),m=c(7650),l=c(467),e=c(4438),_=c(9640),g=c(1681),T=c(8453),L=c(3241);function C(s,p){if(1&s){const u=e.RV6();e.j41(0,"ion-chip",19),e.bIt("click",function(){const n=e.eBV(u).$implicit,o=e.XpG();return e.Njj(o.selectCountry(n))}),e.EFF(1),e.k0s()}if(2&s){const u=p.$implicit,t=e.XpG();e.Y8G("color",t.isCountrySelected(u)?"primary":""),e.R7$(),e.SpI(" ",u," ")}}function A(s,p){if(1&s&&(e.j41(0,"ion-item")(1,"ion-label"),e.EFF(2),e.k0s(),e.j41(3,"ion-label"),e.EFF(4),e.k0s(),e.j41(5,"ion-label"),e.EFF(6),e.k0s()()),2&s){const u=p.$implicit;e.R7$(2),e.Lme("FROM ",u.cityFrom,",",u.countryFrom,""),e.R7$(2),e.SpI("",u.latency," ms"),e.R7$(2),e.Lme(" TO ",u.cityTo,",",u.countryTo,"")}}function E(s,p){if(1&s){const u=e.RV6();e.j41(0,"ion-item",20),e.bIt("click",function(){const n=e.eBV(u).$implicit,o=e.XpG();return e.Njj(o.viewHistory(n))}),e.j41(1,"ion-label"),e.EFF(2),e.k0s(),e.nrm(3,"ion-icon",21),e.k0s()}if(2&s){const u=p.$implicit;e.R7$(2),e.JRh(u)}}const M=[{path:"",component:(()=>{var s;class p{constructor(t,n,o,i,a,h){this.ripeService=t,this.loadingCtrl=n,this.locationService=o,this.route=i,this.alertCtrl=a,this.router=h,this.user={},this.orgName="",this.productObjective="",this.productStep="",this.host="portfoliojuanfranciscocisneros.web.app",this.description="NEW IONIC",this.type="ping",this.ripeResults=[],this.ripeHistoryResultsID=[],this.selectedCountries=[],this.countries={names:["BRAZIL","AUSTRALIA","USA","RUSSIA","UK","GERMANY","ITALY","SPAIN","FRANCE","JAPAN","ARGENTINA","SOUTH_AFRICA","SAUDI_ARABIA","GUATEMALA","THAILAND","INDIA"],probeIDs:[1003561,1007336,1008100,1000053,1002575,1005576,1006903,1004167,1004967,61328,62589,62590,62643,51757,1004373,1007631]}}ngOnInit(){}ionViewWillEnter(){var t=this;return(0,l.A)(function*(){yield t.showLoading(),t.route.params.subscribe(o=>{t.productObjective=o.productObjective,t.productStep=o.step;const i=new Date,a=i.getDate()+"-"+(i.getMonth()+1)+"-"+i.getFullYear()+"-"+i.getHours()+":"+i.getMinutes()+":"+i.getSeconds();t.description=o.productObjective+"-"+o.step+"-"+a});const n=localStorage.getItem("user");n&&(t.user=JSON.parse(n),t.orgName=t.user.orgName,yield t.getHistoryResults(t.orgName,t.productObjective),yield t.hideLoading())})()}sendRequest(){var t=this;return(0,l.A)(function*(){if(yield t.showLoading(),t.host.startsWith("http://")||t.host.startsWith("https://")||t.host.endsWith("/"))return yield t.hideLoading(),void(yield t.showAlert("No http or https is needed, check for slashes at the end of the domain","Please enter a valid host"));if(0===t.selectedCountries.length)return yield t.hideLoading(),void(yield t.showAlert("Please select at least one country","Error"));let n="";for(let y=0;ysetTimeout(y,5e3)),yield t.hideLoading(),yield t.getResults()):yield t.showAlert(i,a)})()}getResults(){var t=this;return(0,l.A)(function*(){yield t.showLoading(),t.ripeResults=[];try{let n=yield t.ripeService.getMeasurementResults();if(!n)return yield t.hideLoading(),void(yield t.showAlert("Please send a test first","Error"));n.subscribe(function(){var o=(0,l.A)(function*(i){if(0===i.length)return yield t.hideLoading(),yield t.showAlert("No data found yet","Trying again"),void(yield t.getResults());for(let a=0;a{t.ripeResults=a,t.locationService.saveLocationResults(t.orgName,t.productObjective,t.description,a).then(function(){var h=(0,l.A)(function*(y){y&&(yield t.getHistoryResults(t.orgName,t.productObjective),yield t.hideLoading(),yield t.showAlert("Data saved and Showing Results, you can get more results in the test history","Success"))});return function(y){return h.apply(this,arguments)}}())})}))});return function(i){return o.apply(this,arguments)}}())}catch{yield t.hideLoading(),yield t.showAlert("Error getting results","Error")}})()}handleChange(t){this.type=t.detail.value}getHistoryResults(t,n){var o=this;return(0,l.A)(function*(){o.ripeHistoryResultsID=[];const i=yield o.ripeService.getHistoryResults(t,n);for(let a=0;anew Date(h.split("-")[2])-new Date(a.split("-")[2]))})()}selectCountry(t){const n=this.selectedCountries.indexOf(t);n>-1?this.selectedCountries.splice(n,1):this.selectedCountries.push(t)}isCountrySelected(t){return this.selectedCountries.includes(t)}showLoading(){var t=this;return(0,l.A)(function*(){yield(yield t.loadingCtrl.create({})).present()})()}hideLoading(){var t=this;return(0,l.A)(function*(){yield t.loadingCtrl.dismiss()})()}showAlert(t,n){var o=this;return(0,l.A)(function*(){const i=yield o.alertCtrl.create({header:n,message:t,buttons:["OK"]});return yield i.present(),yield i.onDidDismiss(),!0})()}viewHistory(t){var n=this;return(0,l.A)(function*(){yield n.router.navigate(["/latency-results"],{queryParams:{description:t,productObjective:n.productObjective,step:n.productStep}})})()}}return(s=p).\u0275fac=function(t){return new(t||s)(e.rXU(_.Q),e.rXU(r.Xi),e.rXU(g.N),e.rXU(m.nX),e.rXU(r.hG),e.rXU(m.Ix))},s.\u0275cmp=e.VBU({type:s,selectors:[["app-latency-test"]],inputs:{host:"host",description:"description"},decls:39,vars:9,consts:[[3,"title"],[3,"fullscreen"],[1,"lg:m-10","md:m-10"],["size","12","size-md","4","size-lg","4",1,""],["label","Host Name","placeholder","Enter a host name","type","text","labelPlacement","stacked",1,"",3,"ngModelChange","ngModel"],["size","12","size-md","4","size-lg","4"],["readonly","true","label","Description","placeholder","Enter a description","type","text","labelPlacement","stacked",1,"",3,"ngModelChange","ngModel"],["size","12","size-md","12","size-lg","12"],[1,"text-xl"],[1,"m-2",3,"color"],["size","12","size-md","12","size-lg","12",1,"flex","flex-row","justify-end"],["color","primary","size","small",1,"",3,"click"],["name","add"],[4,"ngFor","ngForOf"],["size","12","size-md","12","size-lg","12",1,"flex","flex-row","justify-end","items-center"],[1,"m-2"],["color","warning","size","small",1,"",3,"click"],["name","refresh"],[3,"click",4,"ngFor","ngForOf"],[1,"m-2",3,"click","color"],[3,"click"],["name","arrow-forward","color","primary"]],template:function(t,n){1&t&&(e.nrm(0,"app-header-return",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(i){return e.DH7(n.host,i)||(n.host=i),i}),e.k0s()(),e.j41(7,"ion-col",5)(8,"ion-input",6),e.mxI("ngModelChange",function(i){return e.DH7(n.description,i)||(n.description=i),i}),e.k0s()()(),e.j41(9,"ion-row",2)(10,"ion-col",7)(11,"h3",8),e.EFF(12,"Select Countries to test"),e.k0s()()(),e.j41(13,"ion-row",2)(14,"ion-col",7),e.Z7z(15,C,2,2,"ion-chip",9,e.fX1),e.k0s()(),e.j41(17,"ion-row",2)(18,"ion-col",10)(19,"ion-button",11),e.bIt("click",function(){return n.sendRequest()}),e.EFF(20,"Add Test "),e.nrm(21,"ion-icon",12),e.k0s()()(),e.nrm(22,"app-title",0),e.j41(23,"ion-row",2)(24,"ion-col",7)(25,"ion-list"),e.DNE(26,A,7,5,"ion-item",13),e.k0s()()(),e.j41(27,"ion-row",2)(28,"ion-col",14)(29,"ion-label",15),e.EFF(30,"Not all results are shown? "),e.k0s(),e.j41(31,"ion-button",16),e.bIt("click",function(){return n.getResults()}),e.EFF(32,"GET MORE RESULTS "),e.nrm(33,"ion-icon",17),e.k0s()()(),e.nrm(34,"app-title",0),e.j41(35,"ion-row",2)(36,"ion-col",7)(37,"ion-list"),e.DNE(38,E,4,1,"ion-item",18),e.k0s()()()()()),2&t&&(e.Y8G("title","Latency Test"),e.R7$(),e.Y8G("fullscreen",!0),e.R7$(2),e.Y8G("title","New Latency Test"),e.R7$(3),e.R50("ngModel",n.host),e.R7$(2),e.R50("ngModel",n.description),e.R7$(7),e.Dyx(n.countries.names),e.R7$(7),e.Y8G("title","Test Results"),e.R7$(4),e.Y8G("ngForOf",n.ripeResults),e.R7$(8),e.Y8G("title","Test Results History"),e.R7$(4),e.Y8G("ngForOf",n.ripeHistoryResultsID))},dependencies:[d.Sq,f.BC,f.vS,r.Jm,r.ZB,r.hU,r.W9,r.lO,r.iq,r.$w,r.uz,r.he,r.nf,r.ln,r.Gw,T.W,L.p]}),p})()}];let P=(()=>{var s;class p{}return(s=p).\u0275fac=function(t){return new(t||s)},s.\u0275mod=e.$C({type:s}),s.\u0275inj=e.G2t({imports:[m.iI.forChild(M),m.iI]}),p})();var I=c(5553);let F=(()=>{var s;class p{}return(s=p).\u0275fac=function(t){return new(t||s)},s.\u0275mod=e.$C({type:s}),s.\u0275inj=e.G2t({imports:[d.MD,f.YN,r.bv,P,I.h]}),p})()}}]); \ No newline at end of file diff --git a/www/4940.87fd705e6ac35516.js b/www/9546.52a073ad6dd48f2b.js similarity index 98% rename from www/4940.87fd705e6ac35516.js rename to www/9546.52a073ad6dd48f2b.js index 263057a..aa43922 100644 --- a/www/4940.87fd705e6ac35516.js +++ b/www/9546.52a073ad6dd48f2b.js @@ -1 +1 @@ -"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[4940],{5553:(_,y,n)=>{n.d(y,{h:()=>u});var a=n(177),T=n(7863),o=n(4438);let u=(()=>{var r;class t{}return(r=t).\u0275fac=function(d){return new(d||r)},r.\u0275mod=o.$C({type:r}),r.\u0275inj=o.G2t({imports:[a.MD,T.bv]}),t})()},3241:(_,y,n)=>{n.d(y,{p:()=>u});var a=n(4438),T=n(177),o=n(7863);let u=(()=>{var r;class t{constructor(d){this.location=d,this.title="Header Title"}ngOnInit(){}goBack(){this.location.back()}}return(r=t).\u0275fac=function(d){return new(d||r)(a.rXU(T.aZ))},r.\u0275cmp=a.VBU({type:r,selectors:[["app-header-return"]],inputs:{title:"title"},decls:6,vars:2,consts:[[3,"translucent"],["slot","start","menu","menu-id"],["name","arrow-back","slot","start",1,"p-4","bigger-icon",3,"click"]],template:function(d,g){1&d&&(a.j41(0,"ion-header",0)(1,"ion-toolbar"),a.nrm(2,"ion-menu-button",1),a.j41(3,"ion-icon",2),a.bIt("click",function(){return g.goBack()}),a.k0s(),a.j41(4,"ion-title"),a.EFF(5),a.k0s()()()),2&d&&(a.Y8G("translucent",!0),a.R7$(5),a.JRh(g.title))},dependencies:[o.eU,o.iq,o.MC,o.BC,o.ai],styles:[".bigger-icon[_ngcontent-%COMP%]{font-size:1.5em}"]}),t})()},4940:(_,y,n)=>{n.r(y),n.d(y,{ViewHistorySystemTestPageModule:()=>V});var a=n(177),T=n(4341),o=n(7863),u=n(7650),r=n(467),t=n(4438),p=n(9274),d=n(8453),g=n(3241);function f(i,l){return this.systemTestHistory}function v(i,l){if(1&i){const c=t.RV6();t.nrm(0,"ion-icon",10)(1,"ion-icon",11),t.j41(2,"ion-icon",12),t.bIt("click",function(){t.eBV(c);const s=t.XpG().$implicit,m=t.XpG();return t.Njj(m.delete(s.timestamp))}),t.k0s(),t.j41(3,"ion-icon",13),t.bIt("click",function(){t.eBV(c);const s=t.XpG().$implicit,m=t.XpG();return t.Njj(m.navigateToViewHistorySystemTest(s))}),t.k0s()}}function H(i,l){if(1&i){const c=t.RV6();t.nrm(0,"ion-icon",14)(1,"ion-icon",15),t.j41(2,"ion-icon",12),t.bIt("click",function(){t.eBV(c);const s=t.XpG().$implicit,m=t.XpG();return t.Njj(m.delete(s.timestamp))}),t.k0s(),t.j41(3,"ion-icon",13),t.bIt("click",function(){t.eBV(c);const s=t.XpG().$implicit,m=t.XpG();return t.Njj(m.navigateToViewHistorySystemTest(s))}),t.k0s()}}function S(i,l){if(1&i&&(t.j41(0,"ion-item")(1,"ion-label")(2,"h1",9),t.EFF(3),t.k0s()(),t.DNE(4,v,4,0)(5,H,4,0),t.k0s()),2&i){const c=l.$implicit;t.R7$(3),t.Lme("",c.systemTest.title," - ",c.timestamp,""),t.R7$(),t.vxM(4,c.systemTest.state?4:-1),t.R7$(),t.vxM(5,c.systemTest.state?-1:5)}}const P=[{path:"",component:(()=>{var i;class l{constructor(e,s,m,h){this.activatedRoute=e,this.systemTestService=s,this.loadingCtrl=m,this.router=h,this.user={},this.orgName="",this.productObjective="",this.productStep="",this.testTitle="",this.systemTestHistory=[],this.passed=0,this.failed=0}ngOnInit(){}ionViewWillEnter(){var e=this;return(0,r.A)(function*(){e.getProductFromParams(),yield e.getHistorySystemTest(),yield e.passedTests()})()}getProductFromParams(){this.activatedRoute.params.subscribe(e=>{this.productObjective=e.productObjective,this.productStep=e.step,this.testTitle=e.testTitle}),console.log(this.productObjective),console.log(this.productStep),console.log(this.testTitle)}getHistorySystemTest(){var e=this;return(0,r.A)(function*(){yield e.showLoading(),e.user=JSON.parse(localStorage.getItem("user")||"{}"),e.orgName=e.user.orgName||"",yield e.systemTestService.getSystemTestHistoryByTitle(e.orgName,e.productObjective,e.productStep,e.testTitle).then(s=>{e.systemTestHistory=s,e.systemTestHistory.sort((m,h)=>{const R=new Date(m.timestamp).getTime();return new Date(h.timestamp).getTime()-R})}),yield e.hideLoading()})()}delete(e){var s=this;return(0,r.A)(function*(){yield s.showLoading(),yield s.systemTestService.deleteSystemTestHistoryByKey(s.orgName,s.productObjective,s.productStep,s.testTitle,e).then((0,r.A)(function*(){yield s.getHistorySystemTest()})),yield s.hideLoading()})()}passedTests(){var e=this;return(0,r.A)(function*(){e.passed=e.systemTestHistory.filter(s=>s.systemTest.state).length,e.failed=e.systemTestHistory.length-e.passed})()}showLoading(){var e=this;return(0,r.A)(function*(){yield(yield e.loadingCtrl.create({})).present()})()}hideLoading(){var e=this;return(0,r.A)(function*(){yield e.loadingCtrl.dismiss()})()}navigateToViewHistorySystemTest(e){var s=this;return(0,r.A)(function*(){yield s.router.navigate(["/view-system-test",{productObjective:s.productObjective,step:s.productStep,testTitle:s.testTitle,timestamp:e.timestamp}])})()}}return(i=l).\u0275fac=function(e){return new(e||i)(t.rXU(u.nX),t.rXU(p.h),t.rXU(o.Xi),t.rXU(u.Ix))},i.\u0275cmp=t.VBU({type:i,selectors:[["app-view-history-system-test"]],decls:33,vars:7,consts:[[3,"title"],[3,"fullscreen"],[1,"lg:m-10","md:m-10"],["size","12","size-md","4","size-lg","4",1,""],["size","6","size-md","6","size-lg","6",1,""],[1,"flex","flex-col","justify-center","items-center","text-green-600"],[1,"flex","flex-col","justify-center","items-center"],[1,"flex","flex-col","justify-center","items-center","text-red-800"],["size","12","size-md","12","size-lg","12",1,""],[1,"text-white"],["aria-hidden","true","name","checkmark-circle","slot","end","color","success"],["aria-hidden","true","name","close-circle","slot","end","color",""],["aria-hidden","true","name","trash","slot","end","color","",3,"click"],["aria-hidden","true","name","eye","slot","start","color","",3,"click"],["aria-hidden","true","name","checkmark-circle","slot","end","color",""],["aria-hidden","true","name","close-circle","slot","end","color","danger"]],template:function(e,s){1&e&&(t.nrm(0,"app-header-return",0),t.j41(1,"ion-content",1)(2,"ion-grid"),t.nrm(3,"app-title",0),t.j41(4,"ion-row",2)(5,"ion-col",3)(6,"p"),t.EFF(7),t.k0s()()(),t.j41(8,"ion-row",2)(9,"ion-col",4)(10,"ion-card")(11,"ion-card-header")(12,"ion-card-title",5),t.EFF(13,"Passed Tests"),t.k0s()(),t.j41(14,"ion-card-content",6)(15,"h1"),t.EFF(16),t.k0s()()()(),t.j41(17,"ion-col",4)(18,"ion-card")(19,"ion-card-header")(20,"ion-card-title",7),t.EFF(21,"Failed Tests"),t.k0s()(),t.j41(22,"ion-card-content",6)(23,"h1"),t.EFF(24),t.k0s()()()()()(),t.j41(25,"ion-grid")(26,"ion-row",2)(27,"ion-col",8)(28,"ion-card")(29,"ion-card-content")(30,"ion-list"),t.Z7z(31,S,6,4,"ion-item",null,f,!0),t.k0s()()()()()()()),2&e&&(t.Y8G("title","History System Tests: "+s.testTitle),t.R7$(),t.Y8G("fullscreen",!0),t.R7$(2),t.Y8G("title","History System Tests: "+s.testTitle),t.R7$(4),t.Lme("System tests results for product step: ",s.productStep,". Test title: ",s.testTitle,""),t.R7$(9),t.JRh(s.passed),t.R7$(8),t.JRh(s.failed),t.R7$(7),t.Dyx(s.systemTestHistory))},dependencies:[o.b_,o.I9,o.ME,o.tN,o.hU,o.W9,o.lO,o.iq,o.uz,o.he,o.nf,o.ln,d.W,g.p]}),l})()}];let j=(()=>{var i;class l{}return(i=l).\u0275fac=function(e){return new(e||i)},i.\u0275mod=t.$C({type:i}),i.\u0275inj=t.G2t({imports:[u.iI.forChild(P),u.iI]}),l})();var C=n(5553);let V=(()=>{var i;class l{}return(i=l).\u0275fac=function(e){return new(e||i)},i.\u0275mod=t.$C({type:i}),i.\u0275inj=t.G2t({imports:[a.MD,T.YN,o.bv,j,C.h]}),l})()}}]); \ No newline at end of file +"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[9546],{5553:(_,y,n)=>{n.d(y,{h:()=>u});var a=n(177),T=n(7863),o=n(4438);let u=(()=>{var r;class t{}return(r=t).\u0275fac=function(d){return new(d||r)},r.\u0275mod=o.$C({type:r}),r.\u0275inj=o.G2t({imports:[a.MD,T.bv]}),t})()},3241:(_,y,n)=>{n.d(y,{p:()=>u});var a=n(4438),T=n(177),o=n(7863);let u=(()=>{var r;class t{constructor(d){this.location=d,this.title="Header Title"}ngOnInit(){}goBack(){this.location.back()}}return(r=t).\u0275fac=function(d){return new(d||r)(a.rXU(T.aZ))},r.\u0275cmp=a.VBU({type:r,selectors:[["app-header-return"]],inputs:{title:"title"},decls:6,vars:2,consts:[[3,"translucent"],["slot","start","menu","menu-id"],["name","arrow-back","slot","start",1,"p-4","bigger-icon",3,"click"]],template:function(d,g){1&d&&(a.j41(0,"ion-header",0)(1,"ion-toolbar"),a.nrm(2,"ion-menu-button",1),a.j41(3,"ion-icon",2),a.bIt("click",function(){return g.goBack()}),a.k0s(),a.j41(4,"ion-title"),a.EFF(5),a.k0s()()()),2&d&&(a.Y8G("translucent",!0),a.R7$(5),a.JRh(g.title))},dependencies:[o.eU,o.iq,o.MC,o.BC,o.ai],styles:[".bigger-icon[_ngcontent-%COMP%]{font-size:1.5em}"]}),t})()},9546:(_,y,n)=>{n.r(y),n.d(y,{ViewHistorySystemTestPageModule:()=>V});var a=n(177),T=n(4341),o=n(7863),u=n(7650),r=n(467),t=n(4438),p=n(9274),d=n(8453),g=n(3241);function f(i,l){return this.systemTestHistory}function v(i,l){if(1&i){const c=t.RV6();t.nrm(0,"ion-icon",10)(1,"ion-icon",11),t.j41(2,"ion-icon",12),t.bIt("click",function(){t.eBV(c);const s=t.XpG().$implicit,m=t.XpG();return t.Njj(m.delete(s.timestamp))}),t.k0s(),t.j41(3,"ion-icon",13),t.bIt("click",function(){t.eBV(c);const s=t.XpG().$implicit,m=t.XpG();return t.Njj(m.navigateToViewHistorySystemTest(s))}),t.k0s()}}function H(i,l){if(1&i){const c=t.RV6();t.nrm(0,"ion-icon",14)(1,"ion-icon",15),t.j41(2,"ion-icon",12),t.bIt("click",function(){t.eBV(c);const s=t.XpG().$implicit,m=t.XpG();return t.Njj(m.delete(s.timestamp))}),t.k0s(),t.j41(3,"ion-icon",13),t.bIt("click",function(){t.eBV(c);const s=t.XpG().$implicit,m=t.XpG();return t.Njj(m.navigateToViewHistorySystemTest(s))}),t.k0s()}}function S(i,l){if(1&i&&(t.j41(0,"ion-item")(1,"ion-label")(2,"h1",9),t.EFF(3),t.k0s()(),t.DNE(4,v,4,0)(5,H,4,0),t.k0s()),2&i){const c=l.$implicit;t.R7$(3),t.Lme("",c.systemTest.title," - ",c.timestamp,""),t.R7$(),t.vxM(4,c.systemTest.state?4:-1),t.R7$(),t.vxM(5,c.systemTest.state?-1:5)}}const P=[{path:"",component:(()=>{var i;class l{constructor(e,s,m,h){this.activatedRoute=e,this.systemTestService=s,this.loadingCtrl=m,this.router=h,this.user={},this.orgName="",this.productObjective="",this.productStep="",this.testTitle="",this.systemTestHistory=[],this.passed=0,this.failed=0}ngOnInit(){}ionViewWillEnter(){var e=this;return(0,r.A)(function*(){e.getProductFromParams(),yield e.getHistorySystemTest(),yield e.passedTests()})()}getProductFromParams(){this.activatedRoute.params.subscribe(e=>{this.productObjective=e.productObjective,this.productStep=e.step,this.testTitle=e.testTitle}),console.log(this.productObjective),console.log(this.productStep),console.log(this.testTitle)}getHistorySystemTest(){var e=this;return(0,r.A)(function*(){yield e.showLoading(),e.user=JSON.parse(localStorage.getItem("user")||"{}"),e.orgName=e.user.orgName||"",yield e.systemTestService.getSystemTestHistoryByTitle(e.orgName,e.productObjective,e.productStep,e.testTitle).then(s=>{e.systemTestHistory=s,e.systemTestHistory.sort((m,h)=>{const R=new Date(m.timestamp).getTime();return new Date(h.timestamp).getTime()-R})}),yield e.hideLoading()})()}delete(e){var s=this;return(0,r.A)(function*(){yield s.showLoading(),yield s.systemTestService.deleteSystemTestHistoryByKey(s.orgName,s.productObjective,s.productStep,s.testTitle,e).then((0,r.A)(function*(){yield s.getHistorySystemTest()})),yield s.hideLoading()})()}passedTests(){var e=this;return(0,r.A)(function*(){e.passed=e.systemTestHistory.filter(s=>s.systemTest.state).length,e.failed=e.systemTestHistory.length-e.passed})()}showLoading(){var e=this;return(0,r.A)(function*(){yield(yield e.loadingCtrl.create({})).present()})()}hideLoading(){var e=this;return(0,r.A)(function*(){yield e.loadingCtrl.dismiss()})()}navigateToViewHistorySystemTest(e){var s=this;return(0,r.A)(function*(){yield s.router.navigate(["/view-system-test",{productObjective:s.productObjective,step:s.productStep,testTitle:s.testTitle,timestamp:e.timestamp}])})()}}return(i=l).\u0275fac=function(e){return new(e||i)(t.rXU(u.nX),t.rXU(p.h),t.rXU(o.Xi),t.rXU(u.Ix))},i.\u0275cmp=t.VBU({type:i,selectors:[["app-view-history-system-test"]],decls:33,vars:7,consts:[[3,"title"],[3,"fullscreen"],[1,"lg:m-10","md:m-10"],["size","12","size-md","4","size-lg","4",1,""],["size","6","size-md","6","size-lg","6",1,""],[1,"flex","flex-col","justify-center","items-center","text-green-600"],[1,"flex","flex-col","justify-center","items-center"],[1,"flex","flex-col","justify-center","items-center","text-red-800"],["size","12","size-md","12","size-lg","12",1,""],[1,"text-white"],["aria-hidden","true","name","checkmark-circle","slot","end","color","success"],["aria-hidden","true","name","close-circle","slot","end","color",""],["aria-hidden","true","name","trash","slot","end","color","",3,"click"],["aria-hidden","true","name","eye","slot","start","color","",3,"click"],["aria-hidden","true","name","checkmark-circle","slot","end","color",""],["aria-hidden","true","name","close-circle","slot","end","color","danger"]],template:function(e,s){1&e&&(t.nrm(0,"app-header-return",0),t.j41(1,"ion-content",1)(2,"ion-grid"),t.nrm(3,"app-title",0),t.j41(4,"ion-row",2)(5,"ion-col",3)(6,"p"),t.EFF(7),t.k0s()()(),t.j41(8,"ion-row",2)(9,"ion-col",4)(10,"ion-card")(11,"ion-card-header")(12,"ion-card-title",5),t.EFF(13,"Passed Tests"),t.k0s()(),t.j41(14,"ion-card-content",6)(15,"h1"),t.EFF(16),t.k0s()()()(),t.j41(17,"ion-col",4)(18,"ion-card")(19,"ion-card-header")(20,"ion-card-title",7),t.EFF(21,"Failed Tests"),t.k0s()(),t.j41(22,"ion-card-content",6)(23,"h1"),t.EFF(24),t.k0s()()()()()(),t.j41(25,"ion-grid")(26,"ion-row",2)(27,"ion-col",8)(28,"ion-card")(29,"ion-card-content")(30,"ion-list"),t.Z7z(31,S,6,4,"ion-item",null,f,!0),t.k0s()()()()()()()),2&e&&(t.Y8G("title","History System Tests: "+s.testTitle),t.R7$(),t.Y8G("fullscreen",!0),t.R7$(2),t.Y8G("title","History System Tests: "+s.testTitle),t.R7$(4),t.Lme("System tests results for product step: ",s.productStep,". Test title: ",s.testTitle,""),t.R7$(9),t.JRh(s.passed),t.R7$(8),t.JRh(s.failed),t.R7$(7),t.Dyx(s.systemTestHistory))},dependencies:[o.b_,o.I9,o.ME,o.tN,o.hU,o.W9,o.lO,o.iq,o.uz,o.he,o.nf,o.ln,d.W,g.p]}),l})()}];let j=(()=>{var i;class l{}return(i=l).\u0275fac=function(e){return new(e||i)},i.\u0275mod=t.$C({type:i}),i.\u0275inj=t.G2t({imports:[u.iI.forChild(P),u.iI]}),l})();var C=n(5553);let V=(()=>{var i;class l{}return(i=l).\u0275fac=function(e){return new(e||i)},i.\u0275mod=t.$C({type:i}),i.\u0275inj=t.G2t({imports:[a.MD,T.YN,o.bv,j,C.h]}),l})()}}]); \ No newline at end of file diff --git a/www/index.html b/www/index.html index d26e33d..93fd6ac 100644 --- a/www/index.html +++ b/www/index.html @@ -21,6 +21,6 @@ - + diff --git a/www/main.4e457c4911a8b489.js b/www/main.4e457c4911a8b489.js new file mode 100644 index 0000000..d7be459 --- /dev/null +++ b/www/main.4e457c4911a8b489.js @@ -0,0 +1 @@ +(self.webpackChunkapp=self.webpackChunkapp||[]).push([[8792],{1076:(Tn,gt,S)=>{"use strict";S.d(gt,{Am:()=>gn,FA:()=>Le,Fy:()=>ge,I9:()=>Sr,Im:()=>ir,Ku:()=>ut,T9:()=>mt,Tj:()=>Tt,Uj:()=>Je,XA:()=>Me,ZQ:()=>Ue,bD:()=>Ot,cY:()=>Ye,eX:()=>X,g:()=>ve,hp:()=>Mn,jZ:()=>Fe,lT:()=>tt,lV:()=>vn,nr:()=>we,sr:()=>Rt,tD:()=>mn,u:()=>Se,yU:()=>yt,zW:()=>H});const Oe=function(ce){const ye=[];let He=0;for(let Lt=0;Lt>6|192,ye[He++]=63&ie|128):55296==(64512&ie)&&Lt+1>18|240,ye[He++]=ie>>12&63|128,ye[He++]=ie>>6&63|128,ye[He++]=63&ie|128):(ye[He++]=ie>>12|224,ye[He++]=ie>>6&63|128,ye[He++]=63&ie|128)}return ye},ue={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(ce,ye){if(!Array.isArray(ce))throw Error("encodeByteArray takes an array as a parameter");this.init_();const He=ye?this.byteToCharMapWebSafe_:this.byteToCharMap_,Lt=[];for(let ie=0;ie>6,tr=63&_n;tn||(tr=64,lt||(Cn=64)),Lt.push(He[ct>>2],He[(3&ct)<<4|Gt>>4],He[Cn],He[tr])}return Lt.join("")},encodeString(ce,ye){return this.HAS_NATIVE_SUPPORT&&!ye?btoa(ce):this.encodeByteArray(Oe(ce),ye)},decodeString(ce,ye){return this.HAS_NATIVE_SUPPORT&&!ye?atob(ce):function(ce){const ye=[];let He=0,Lt=0;for(;He191&&ie<224){const ct=ce[He++];ye[Lt++]=String.fromCharCode((31&ie)<<6|63&ct)}else if(ie>239&&ie<365){const tn=((7&ie)<<18|(63&ce[He++])<<12|(63&ce[He++])<<6|63&ce[He++])-65536;ye[Lt++]=String.fromCharCode(55296+(tn>>10)),ye[Lt++]=String.fromCharCode(56320+(1023&tn))}else{const ct=ce[He++],lt=ce[He++];ye[Lt++]=String.fromCharCode((15&ie)<<12|(63&ct)<<6|63<)}}return ye.join("")}(this.decodeStringToByteArray(ce,ye))},decodeStringToByteArray(ce,ye){this.init_();const He=ye?this.charToByteMapWebSafe_:this.charToByteMap_,Lt=[];for(let ie=0;ie>4),64!==_n&&(Lt.push(Gt<<4&240|_n>>2),64!==hn&&Lt.push(_n<<6&192|hn))}return Lt},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let ce=0;ce=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(ce)]=ce,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(ce)]=ce)}}};class oe extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}const Je=function(ce){return function(ce){const ye=Oe(ce);return ue.encodeByteArray(ye,!0)}(ce).replace(/\./g,"")},Se=function(ce){try{return ue.decodeString(ce,!0)}catch(ye){console.error("base64Decode failed: ",ye)}return null},_t=()=>{try{return function qe(){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 ce=process.env.__FIREBASE_DEFAULTS__;return ce?JSON.parse(ce):void 0})()||(()=>{if(typeof document>"u")return;let ce;try{ce=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch{return}const ye=ce&&Se(ce[1]);return ye&&JSON.parse(ye)})()}catch(ce){return void console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${ce}`)}},Tt=ce=>{var ye,He;return null===(He=null===(ye=_t())||void 0===ye?void 0:ye.emulatorHosts)||void 0===He?void 0:He[ce]},yt=ce=>{const ye=Tt(ce);if(!ye)return;const He=ye.lastIndexOf(":");if(He<=0||He+1===ye.length)throw new Error(`Invalid host ${ye} with no separate hostname and port!`);const Lt=parseInt(ye.substring(He+1),10);return"["===ye[0]?[ye.substring(1,He-1),Lt]:[ye.substring(0,He),Lt]},mt=()=>{var ce;return null===(ce=_t())||void 0===ce?void 0:ce.config},Me=ce=>{var ye;return null===(ye=_t())||void 0===ye?void 0:ye[`_${ce}`]};class Ye{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((ye,He)=>{this.resolve=ye,this.reject=He})}wrapCallback(ye){return(He,Lt)=>{He?this.reject(He):this.resolve(Lt),"function"==typeof ye&&(this.promise.catch(()=>{}),1===ye.length?ye(He):ye(He,Lt))}}}function ge(ce,ye){if(ce.uid)throw new Error('The "uid" field is no longer supported by mockUserToken. Please use "sub" instead for Firebase Auth User ID.');const Lt=ye||"demo-project",ie=ce.iat||0,ct=ce.sub||ce.user_id;if(!ct)throw new Error("mockUserToken must contain 'sub' or 'user_id' field!");const lt=Object.assign({iss:`https://securetoken.google.com/${Lt}`,aud:Lt,iat:ie,exp:ie+3600,auth_time:ie,sub:ct,user_id:ct,firebase:{sign_in_provider:"custom",identities:{}}},ce);return[Je(JSON.stringify({alg:"none",type:"JWT"})),Je(JSON.stringify(lt)),""].join(".")}function Ue(){return typeof navigator<"u"&&"string"==typeof navigator.userAgent?navigator.userAgent:""}function Fe(){return typeof window<"u"&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(Ue())}function Rt(){const ce="object"==typeof chrome?chrome.runtime:"object"==typeof browser?browser.runtime:void 0;return"object"==typeof ce&&void 0!==ce.id}function vn(){return"object"==typeof navigator&&"ReactNative"===navigator.product}function tt(){const ce=Ue();return ce.indexOf("MSIE ")>=0||ce.indexOf("Trident/")>=0}function we(){return!function xe(){var ce;const ye=null===(ce=_t())||void 0===ce?void 0:ce.forceEnvironment;if("node"===ye)return!0;if("browser"===ye)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 H(){try{return"object"==typeof indexedDB}catch{return!1}}function X(){return new Promise((ce,ye)=>{try{let He=!0;const Lt="validate-browser-context-for-indexeddb-analytics-module",ie=self.indexedDB.open(Lt);ie.onsuccess=()=>{ie.result.close(),He||self.indexedDB.deleteDatabase(Lt),ce(!0)},ie.onupgradeneeded=()=>{He=!1},ie.onerror=()=>{var ct;ye((null===(ct=ie.error)||void 0===ct?void 0:ct.message)||"")}}catch(He){ye(He)}})}class ve extends Error{constructor(ye,He,Lt){super(He),this.code=ye,this.customData=Lt,this.name="FirebaseError",Object.setPrototypeOf(this,ve.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,Le.prototype.create)}}class Le{constructor(ye,He,Lt){this.service=ye,this.serviceName=He,this.errors=Lt}create(ye,...He){const Lt=He[0]||{},ie=`${this.service}/${ye}`,ct=this.errors[ye],lt=ct?function De(ce,ye){return ce.replace(Wt,(He,Lt)=>{const ie=ye[Lt];return null!=ie?String(ie):`<${Lt}?>`})}(ct,Lt):"Error";return new ve(ie,`${this.serviceName}: ${lt} (${ie}).`,Lt)}}const Wt=/\{\$([^}]+)}/g;function ir(ce){for(const ye in ce)if(Object.prototype.hasOwnProperty.call(ce,ye))return!1;return!0}function Ot(ce,ye){if(ce===ye)return!0;const He=Object.keys(ce),Lt=Object.keys(ye);for(const ie of He){if(!Lt.includes(ie))return!1;const ct=ce[ie],lt=ye[ie];if(zt(ct)&&zt(lt)){if(!Ot(ct,lt))return!1}else if(ct!==lt)return!1}for(const ie of Lt)if(!He.includes(ie))return!1;return!0}function zt(ce){return null!==ce&&"object"==typeof ce}function gn(ce){const ye=[];for(const[He,Lt]of Object.entries(ce))Array.isArray(Lt)?Lt.forEach(ie=>{ye.push(encodeURIComponent(He)+"="+encodeURIComponent(ie))}):ye.push(encodeURIComponent(He)+"="+encodeURIComponent(Lt));return ye.length?"&"+ye.join("&"):""}function Sr(ce){const ye={};return ce.replace(/^\?/,"").split("&").forEach(Lt=>{if(Lt){const[ie,ct]=Lt.split("=");ye[decodeURIComponent(ie)]=decodeURIComponent(ct)}}),ye}function Mn(ce){const ye=ce.indexOf("?");if(!ye)return"";const He=ce.indexOf("#",ye);return ce.substring(ye,He>0?He:void 0)}function mn(ce,ye){const He=new en(ce,ye);return He.subscribe.bind(He)}class en{constructor(ye,He){this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Promise.resolve(),this.finalized=!1,this.onNoObservers=He,this.task.then(()=>{ye(this)}).catch(Lt=>{this.error(Lt)})}next(ye){this.forEachObserver(He=>{He.next(ye)})}error(ye){this.forEachObserver(He=>{He.error(ye)}),this.close(ye)}complete(){this.forEachObserver(ye=>{ye.complete()}),this.close()}subscribe(ye,He,Lt){let ie;if(void 0===ye&&void 0===He&&void 0===Lt)throw new Error("Missing Observer.");ie=function Ir(ce,ye){if("object"!=typeof ce||null===ce)return!1;for(const He of ye)if(He in ce&&"function"==typeof ce[He])return!0;return!1}(ye,["next","error","complete"])?ye:{next:ye,error:He,complete:Lt},void 0===ie.next&&(ie.next=Nr),void 0===ie.error&&(ie.error=Nr),void 0===ie.complete&&(ie.complete=Nr);const ct=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then(()=>{try{this.finalError?ie.error(this.finalError):ie.complete()}catch{}}),this.observers.push(ie),ct}unsubscribeOne(ye){void 0===this.observers||void 0===this.observers[ye]||(delete this.observers[ye],this.observerCount-=1,0===this.observerCount&&void 0!==this.onNoObservers&&this.onNoObservers(this))}forEachObserver(ye){if(!this.finalized)for(let He=0;He{if(void 0!==this.observers&&void 0!==this.observers[ye])try{He(this.observers[ye])}catch(Lt){typeof console<"u"&&console.error&&console.error(Lt)}})}close(ye){this.finalized||(this.finalized=!0,void 0!==ye&&(this.finalError=ye),this.task.then(()=>{this.observers=void 0,this.onNoObservers=void 0}))}}function Nr(){}function ut(ce){return ce&&ce._delegate?ce._delegate:ce}},4442:(Tn,gt,S)=>{"use strict";S.d(gt,{L:()=>U,a:()=>ue,b:()=>oe,c:()=>Xe,d:()=>Je,g:()=>dt}),S(5531);const U="ionViewWillEnter",ue="ionViewDidEnter",oe="ionViewWillLeave",Xe="ionViewDidLeave",Je="ionViewWillUnload",dt=we=>we.classList.contains("ion-page")?we:we.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")||we},5531:(Tn,gt,S)=>{"use strict";S.d(gt,{a:()=>Se,c:()=>c,g:()=>Je});class h{constructor(){this.m=new Map}reset(we){this.m=new Map(Object.entries(we))}get(we,H){const X=this.m.get(we);return void 0!==X?X:H}getBoolean(we,H=!1){const X=this.m.get(we);return void 0===X?H:"string"==typeof X?"true"===X:!!X}getNumber(we,H){const X=parseFloat(this.m.get(we));return isNaN(X)?void 0!==H?H:NaN:X}set(we,H){this.m.set(we,H)}}const c=new h,Je=dt=>Ce(dt),Se=(dt,we)=>("string"==typeof dt&&(we=dt,dt=void 0),Je(dt).includes(we)),Ce=(dt=window)=>{if(typeof dt>"u")return[];dt.Ionic=dt.Ionic||{};let we=dt.Ionic.platforms;return null==we&&(we=dt.Ionic.platforms=Qe(dt),we.forEach(H=>dt.document.documentElement.classList.add(`plt-${H}`))),we},Qe=dt=>{const we=c.get("platform");return Object.keys(vn).filter(H=>{const X=null==we?void 0:we[H];return"function"==typeof X?X(dt):vn[H](dt)})},qe=dt=>!!(at(dt,/iPad/i)||at(dt,/Macintosh/i)&&mt(dt)),St=dt=>at(dt,/android|sink/i),mt=dt=>Rt(dt,"(any-pointer:coarse)"),Ye=dt=>ge(dt)||Ue(dt),ge=dt=>!!(dt.cordova||dt.phonegap||dt.PhoneGap),Ue=dt=>{const we=dt.Capacitor;return!(null==we||!we.isNative)},at=(dt,we)=>we.test(dt.navigator.userAgent),Rt=(dt,we)=>{var H;return null===(H=dt.matchMedia)||void 0===H?void 0:H.call(dt,we).matches},vn={ipad:qe,iphone:dt=>at(dt,/iPhone/i),ios:dt=>at(dt,/iPhone|iPod/i)||qe(dt),android:St,phablet:dt=>{const we=dt.innerWidth,H=dt.innerHeight,X=Math.min(we,H),fe=Math.max(we,H);return X>390&&X<520&&fe>620&&fe<800},tablet:dt=>{const we=dt.innerWidth,H=dt.innerHeight,X=Math.min(we,H),fe=Math.max(we,H);return qe(dt)||(dt=>St(dt)&&!at(dt,/mobile/i))(dt)||X>460&&X<820&&fe>780&&fe<1400},cordova:ge,capacitor:Ue,electron:dt=>at(dt,/electron/i),pwa:dt=>{var we;return!!(null!==(we=dt.matchMedia)&&void 0!==we&&we.call(dt,"(display-mode: standalone)").matches||dt.navigator.standalone)},mobile:mt,mobileweb:dt=>mt(dt)&&!Ye(dt),desktop:dt=>!mt(dt),hybrid:Ye}},9986:(Tn,gt,S)=>{"use strict";S.d(gt,{c:()=>ue});var h=S(8476);let c;const Oe=(oe,Xe,Je)=>{const Se=Xe.startsWith("animation")?(oe=>(void 0===c&&(c=void 0===oe.style.animationName&&void 0!==oe.style.webkitAnimationName?"-webkit-":""),c))(oe):"";oe.style.setProperty(Se+Xe,Je)},U=(oe=[],Xe)=>{if(void 0!==Xe){const Je=Array.isArray(Xe)?Xe:[Xe];return[...oe,...Je]}return oe},ue=oe=>{let Xe,Je,Se,Ce,Qe,Ze,_t,Fe,xe,at,tt,qe=[],ht=[],Dt=[],St=!1,Tt={},yt=[],mt=[],Me={},Ye=0,ge=!1,Ue=!1,Rt=!0,vn=!1,Nt=!0,on=!1;const dt=oe,we=[],H=[],X=[],fe=[],se=[],ve=[],Le=[],De=[],Wt=[],dn=[],Kt=[],rn="function"==typeof AnimationEffect||void 0!==h.w&&"function"==typeof h.w.AnimationEffect,Ln="function"==typeof Element&&"function"==typeof Element.prototype.animate&&rn,Zn=()=>Kt,ir=(x,ne)=>{const Te=ne.findIndex(Ge=>Ge.c===x);Te>-1&&ne.splice(Te,1)},Ot=(x,ne)=>((null!=ne&&ne.oneTimeCallback?H:we).push({c:x,o:ne}),tt),pn=()=>{Ln&&(Kt.forEach(x=>{x.cancel()}),Kt.length=0)},gn=()=>{ve.forEach(x=>{null!=x&&x.parentNode&&x.parentNode.removeChild(x)}),ve.length=0},mr=()=>void 0!==Qe?Qe:_t?_t.getFill():"both",ur=()=>void 0!==Fe?Fe:void 0!==Ze?Ze:_t?_t.getDirection():"normal",Pr=()=>ge?"linear":void 0!==Se?Se:_t?_t.getEasing():"linear",cr=()=>Ue?0:void 0!==xe?xe:void 0!==Je?Je:_t?_t.getDuration():0,kr=()=>void 0!==Ce?Ce:_t?_t.getIterations():1,ii=()=>void 0!==at?at:void 0!==Xe?Xe:_t?_t.getDelay():0,tn=()=>{0!==Ye&&(Ye--,0===Ye&&((()=>{Wt.forEach(At=>At()),dn.forEach(At=>At());const x=Rt?1:0,ne=yt,Te=mt,Ge=Me;fe.forEach(At=>{const Jt=At.classList;ne.forEach(ln=>Jt.add(ln)),Te.forEach(ln=>Jt.remove(ln));for(const ln in Ge)Ge.hasOwnProperty(ln)&&Oe(At,ln,Ge[ln])}),xe=void 0,Fe=void 0,at=void 0,we.forEach(At=>At.c(x,tt)),H.forEach(At=>At.c(x,tt)),H.length=0,Nt=!0,Rt&&(vn=!0),Rt=!0})(),_t&&_t.animationFinish()))},qn=()=>{(()=>{Le.forEach(Ge=>Ge()),De.forEach(Ge=>Ge());const x=ht,ne=Dt,Te=Tt;fe.forEach(Ge=>{const At=Ge.classList;x.forEach(Jt=>At.add(Jt)),ne.forEach(Jt=>At.remove(Jt));for(const Jt in Te)Te.hasOwnProperty(Jt)&&Oe(Ge,Jt,Te[Jt])})})(),qe.length>0&&Ln&&(fe.forEach(x=>{const ne=x.animate(qe,{id:dt,delay:ii(),duration:cr(),easing:Pr(),iterations:kr(),fill:mr(),direction:ur()});ne.pause(),Kt.push(ne)}),Kt.length>0&&(Kt[0].onfinish=()=>{tn()})),St=!0},hn=x=>{x=Math.min(Math.max(x,0),.9999),Ln&&Kt.forEach(ne=>{ne.currentTime=ne.effect.getComputedTiming().delay+cr()*x,ne.pause()})},Cn=x=>{Kt.forEach(ne=>{ne.effect.updateTiming({delay:ii(),duration:cr(),easing:Pr(),iterations:kr(),fill:mr(),direction:ur()})}),void 0!==x&&hn(x)},tr=(x=!1,ne=!0,Te)=>(x&&se.forEach(Ge=>{Ge.update(x,ne,Te)}),Ln&&Cn(Te),tt),Zr=()=>{St&&(Ln?Kt.forEach(x=>{x.pause()}):fe.forEach(x=>{Oe(x,"animation-play-state","paused")}),on=!0)},Ut=x=>new Promise(ne=>{null!=x&&x.sync&&(Ue=!0,Ot(()=>Ue=!1,{oneTimeCallback:!0})),St||qn(),vn&&(Ln&&(hn(0),Cn()),vn=!1),Nt&&(Ye=se.length+1,Nt=!1);const Te=()=>{ir(Ge,H),ne()},Ge=()=>{ir(Te,X),ne()};Ot(Ge,{oneTimeCallback:!0}),((x,ne)=>{X.push({c:x,o:{oneTimeCallback:!0}})})(Te),se.forEach(At=>{At.play()}),Ln?(Kt.forEach(x=>{x.play()}),(0===qe.length||0===fe.length)&&tn()):tn(),on=!1}),ee=(x,ne)=>{const Te=qe[0];return void 0===Te||void 0!==Te.offset&&0!==Te.offset?qe=[{offset:0,[x]:ne},...qe]:Te[x]=ne,tt};return tt={parentAnimation:_t,elements:fe,childAnimations:se,id:dt,animationFinish:tn,from:ee,to:(x,ne)=>{const Te=qe[qe.length-1];return void 0===Te||void 0!==Te.offset&&1!==Te.offset?qe=[...qe,{offset:1,[x]:ne}]:Te[x]=ne,tt},fromTo:(x,ne,Te)=>ee(x,ne).to(x,Te),parent:x=>(_t=x,tt),play:Ut,pause:()=>(se.forEach(x=>{x.pause()}),Zr(),tt),stop:()=>{se.forEach(x=>{x.stop()}),St&&(pn(),St=!1),ge=!1,Ue=!1,Nt=!0,Fe=void 0,xe=void 0,at=void 0,Ye=0,vn=!1,Rt=!0,on=!1,X.forEach(x=>x.c(0,tt)),X.length=0},destroy:x=>(se.forEach(ne=>{ne.destroy(x)}),(x=>{pn(),x&&gn()})(x),fe.length=0,se.length=0,qe.length=0,we.length=0,H.length=0,St=!1,Nt=!0,tt),keyframes:x=>{const ne=qe!==x;return qe=x,ne&&(x=>{Ln&&Zn().forEach(ne=>{const Te=ne.effect;if(Te.setKeyframes)Te.setKeyframes(x);else{const Ge=new KeyframeEffect(Te.target,x,Te.getTiming());ne.effect=Ge}})})(qe),tt},addAnimation:x=>{if(null!=x)if(Array.isArray(x))for(const ne of x)ne.parent(tt),se.push(ne);else x.parent(tt),se.push(x);return tt},addElement:x=>{if(null!=x)if(1===x.nodeType)fe.push(x);else if(x.length>=0)for(let ne=0;ne(Qe=x,tr(!0),tt),direction:x=>(Ze=x,tr(!0),tt),iterations:x=>(Ce=x,tr(!0),tt),duration:x=>(!Ln&&0===x&&(x=1),Je=x,tr(!0),tt),easing:x=>(Se=x,tr(!0),tt),delay:x=>(Xe=x,tr(!0),tt),getWebAnimations:Zn,getKeyframes:()=>qe,getFill:mr,getDirection:ur,getDelay:ii,getIterations:kr,getEasing:Pr,getDuration:cr,afterAddRead:x=>(Wt.push(x),tt),afterAddWrite:x=>(dn.push(x),tt),afterClearStyles:(x=[])=>{for(const ne of x)Me[ne]="";return tt},afterStyles:(x={})=>(Me=x,tt),afterRemoveClass:x=>(mt=U(mt,x),tt),afterAddClass:x=>(yt=U(yt,x),tt),beforeAddRead:x=>(Le.push(x),tt),beforeAddWrite:x=>(De.push(x),tt),beforeClearStyles:(x=[])=>{for(const ne of x)Tt[ne]="";return tt},beforeStyles:(x={})=>(Tt=x,tt),beforeRemoveClass:x=>(Dt=U(Dt,x),tt),beforeAddClass:x=>(ht=U(ht,x),tt),onFinish:Ot,isRunning:()=>0!==Ye&&!on,progressStart:(x=!1,ne)=>(se.forEach(Te=>{Te.progressStart(x,ne)}),Zr(),ge=x,St||qn(),tr(!1,!0,ne),tt),progressStep:x=>(se.forEach(ne=>{ne.progressStep(x)}),hn(x),tt),progressEnd:(x,ne,Te)=>(ge=!1,se.forEach(Ge=>{Ge.progressEnd(x,ne,Te)}),void 0!==Te&&(xe=Te),vn=!1,Rt=!0,0===x?(Fe="reverse"===ur()?"normal":"reverse","reverse"===Fe&&(Rt=!1),Ln?(tr(),hn(1-ne)):(at=(1-ne)*cr()*-1,tr(!1,!1))):1===x&&(Ln?(tr(),hn(ne)):(at=ne*cr()*-1,tr(!1,!1))),void 0!==x&&!_t&&Ut(),tt)}}},464:(Tn,gt,S)=>{"use strict";S.d(gt,{E:()=>Se,a:()=>h,s:()=>Xe});const h=Ce=>{try{if(Ce instanceof oe)return Ce.value;if(!Oe()||"string"!=typeof Ce||""===Ce)return Ce;if(Ce.includes("onload="))return"";const Qe=document.createDocumentFragment(),Ze=document.createElement("div");Qe.appendChild(Ze),Ze.innerHTML=Ce,ue.forEach(St=>{const _t=Qe.querySelectorAll(St);for(let Tt=_t.length-1;Tt>=0;Tt--){const yt=_t[Tt];yt.parentNode?yt.parentNode.removeChild(yt):Qe.removeChild(yt);const mt=Z(yt);for(let Me=0;Me{if(Ce.nodeType&&1!==Ce.nodeType)return;if(typeof NamedNodeMap<"u"&&!(Ce.attributes instanceof NamedNodeMap))return void Ce.remove();for(let Ze=Ce.attributes.length-1;Ze>=0;Ze--){const qe=Ce.attributes.item(Ze),ht=qe.name;if(!U.includes(ht.toLowerCase())){Ce.removeAttribute(ht);continue}const Dt=qe.value,St=Ce[ht];(null!=Dt&&Dt.toLowerCase().includes("javascript:")||null!=St&&St.toLowerCase().includes("javascript:"))&&Ce.removeAttribute(ht)}const Qe=Z(Ce);for(let Ze=0;Zenull!=Ce.children?Ce.children:Ce.childNodes,Oe=()=>{var Ce;const Qe=window,Ze=null===(Ce=null==Qe?void 0:Qe.Ionic)||void 0===Ce?void 0:Ce.config;return!Ze||(Ze.get?Ze.get("sanitizerEnabled",!0):!0===Ze.sanitizerEnabled||void 0===Ze.sanitizerEnabled)},U=["class","id","href","src","name","slot"],ue=["script","style","iframe","meta","link","object","embed"];class oe{constructor(Qe){this.value=Qe}}const Xe=Ce=>{const Qe=window,Ze=Qe.Ionic;if(!Ze||!Ze.config||"Object"===Ze.config.constructor.name)return Qe.Ionic=Qe.Ionic||{},Qe.Ionic.config=Object.assign(Object.assign({},Qe.Ionic.config),Ce),Qe.Ionic.config},Se=!1},8621:(Tn,gt,S)=>{"use strict";S.d(gt,{C:()=>U,a:()=>Z,d:()=>Oe});var h=S(467),c=S(4920);const Z=function(){var ue=(0,h.A)(function*(oe,Xe,Je,Se,Ce,Qe){var Ze;if(oe)return oe.attachViewToDom(Xe,Je,Ce,Se);if(!(Qe||"string"==typeof Je||Je instanceof HTMLElement))throw new Error("framework delegate is missing");const qe="string"==typeof Je?null===(Ze=Xe.ownerDocument)||void 0===Ze?void 0:Ze.createElement(Je):Je;return Se&&Se.forEach(ht=>qe.classList.add(ht)),Ce&&Object.assign(qe,Ce),Xe.appendChild(qe),yield new Promise(ht=>(0,c.c)(qe,ht)),qe});return function(Xe,Je,Se,Ce,Qe,Ze){return ue.apply(this,arguments)}}(),Oe=(ue,oe)=>{if(oe){if(ue)return ue.removeViewFromDom(oe.parentElement,oe);oe.remove()}return Promise.resolve()},U=()=>{let ue,oe;return{attachViewToDom:function(){var Se=(0,h.A)(function*(Ce,Qe,Ze={},qe=[]){var ht,Dt;let St;if(ue=Ce,Qe){const Tt="string"==typeof Qe?null===(ht=ue.ownerDocument)||void 0===ht?void 0:ht.createElement(Qe):Qe;qe.forEach(yt=>Tt.classList.add(yt)),Object.assign(Tt,Ze),ue.appendChild(Tt),St=Tt,yield new Promise(yt=>(0,c.c)(Tt,yt))}else if(ue.children.length>0&&("ION-MODAL"===ue.tagName||"ION-POPOVER"===ue.tagName)&&!(St=ue.children[0]).classList.contains("ion-delegate-host")){const yt=null===(Dt=ue.ownerDocument)||void 0===Dt?void 0:Dt.createElement("div");yt.classList.add("ion-delegate-host"),qe.forEach(mt=>yt.classList.add(mt)),yt.append(...ue.children),ue.appendChild(yt),St=yt}const _t=document.querySelector("ion-app")||document.body;return oe=document.createComment("ionic teleport"),ue.parentNode.insertBefore(oe,ue),_t.appendChild(ue),null!=St?St:ue});return function(Qe,Ze){return Se.apply(this,arguments)}}(),removeViewFromDom:()=>(ue&&oe&&(oe.parentNode.insertBefore(ue,oe),oe.remove()),Promise.resolve())}}},1970:(Tn,gt,S)=>{"use strict";S.d(gt,{B:()=>Oe,G:()=>U});class c{constructor(oe,Xe,Je,Se,Ce){this.id=Xe,this.name=Je,this.disableScroll=Ce,this.priority=1e6*Se+Xe,this.ctrl=oe}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 oe=this.ctrl.capture(this.name,this.id,this.priority);return oe&&this.disableScroll&&this.ctrl.disableScroll(this.id),oe}release(){this.ctrl&&(this.ctrl.release(this.id),this.disableScroll&&this.ctrl.enableScroll(this.id))}destroy(){this.release(),this.ctrl=void 0}}class Z{constructor(oe,Xe,Je,Se){this.id=Xe,this.disable=Je,this.disableScroll=Se,this.ctrl=oe}block(){if(this.ctrl){if(this.disable)for(const oe of this.disable)this.ctrl.disableGesture(oe,this.id);this.disableScroll&&this.ctrl.disableScroll(this.id)}}unblock(){if(this.ctrl){if(this.disable)for(const oe of this.disable)this.ctrl.enableGesture(oe,this.id);this.disableScroll&&this.ctrl.enableScroll(this.id)}}destroy(){this.unblock(),this.ctrl=void 0}}const Oe="backdrop-no-scroll",U=new class h{constructor(){this.gestureId=0,this.requestedStart=new Map,this.disabledGestures=new Map,this.disabledScroll=new Set}createGesture(oe){var Xe;return new c(this,this.newID(),oe.name,null!==(Xe=oe.priority)&&void 0!==Xe?Xe:0,!!oe.disableScroll)}createBlocker(oe={}){return new Z(this,this.newID(),oe.disable,!!oe.disableScroll)}start(oe,Xe,Je){return this.canStart(oe)?(this.requestedStart.set(Xe,Je),!0):(this.requestedStart.delete(Xe),!1)}capture(oe,Xe,Je){if(!this.start(oe,Xe,Je))return!1;const Se=this.requestedStart;let Ce=-1e4;if(Se.forEach(Qe=>{Ce=Math.max(Ce,Qe)}),Ce===Je){this.capturedId=Xe,Se.clear();const Qe=new CustomEvent("ionGestureCaptured",{detail:{gestureName:oe}});return document.dispatchEvent(Qe),!0}return Se.delete(Xe),!1}release(oe){this.requestedStart.delete(oe),this.capturedId===oe&&(this.capturedId=void 0)}disableGesture(oe,Xe){let Je=this.disabledGestures.get(oe);void 0===Je&&(Je=new Set,this.disabledGestures.set(oe,Je)),Je.add(Xe)}enableGesture(oe,Xe){const Je=this.disabledGestures.get(oe);void 0!==Je&&Je.delete(Xe)}disableScroll(oe){this.disabledScroll.add(oe),1===this.disabledScroll.size&&document.body.classList.add(Oe)}enableScroll(oe){this.disabledScroll.delete(oe),0===this.disabledScroll.size&&document.body.classList.remove(Oe)}canStart(oe){return!(void 0!==this.capturedId||this.isDisabled(oe))}isCaptured(){return void 0!==this.capturedId}isScrollDisabled(){return this.disabledScroll.size>0}isDisabled(oe){const Xe=this.disabledGestures.get(oe);return!!(Xe&&Xe.size>0)}newID(){return this.gestureId++,this.gestureId}}},6411:(Tn,gt,S)=>{"use strict";S.r(gt),S.d(gt,{MENU_BACK_BUTTON_PRIORITY:()=>Je,OVERLAY_BACK_BUTTON_PRIORITY:()=>Xe,blockHardwareBackButton:()=>ue,shouldUseCloseWatcher:()=>U,startHardwareBackButton:()=>oe});var h=S(467),c=S(8476),Z=S(3664);S(9672);const U=()=>Z.c.get("experimentalCloseWatcher",!1)&&void 0!==c.w&&"CloseWatcher"in c.w,ue=()=>{document.addEventListener("backbutton",()=>{})},oe=()=>{const Se=document;let Ce=!1;const Qe=()=>{if(Ce)return;let Ze=0,qe=[];const ht=new CustomEvent("ionBackButton",{bubbles:!1,detail:{register(_t,Tt){qe.push({priority:_t,handler:Tt,id:Ze++})}}});Se.dispatchEvent(ht);const Dt=function(){var _t=(0,h.A)(function*(Tt){try{if(null!=Tt&&Tt.handler){const yt=Tt.handler(St);null!=yt&&(yield yt)}}catch(yt){console.error(yt)}});return function(yt){return _t.apply(this,arguments)}}(),St=()=>{if(qe.length>0){let _t={priority:Number.MIN_SAFE_INTEGER,handler:()=>{},id:-1};qe.forEach(Tt=>{Tt.priority>=_t.priority&&(_t=Tt)}),Ce=!0,qe=qe.filter(Tt=>Tt.id!==_t.id),Dt(_t).then(()=>Ce=!1)}};St()};if(U()){let Ze;const qe=()=>{null==Ze||Ze.destroy(),Ze=new c.w.CloseWatcher,Ze.onclose=()=>{Qe(),qe()}};qe()}else Se.addEventListener("backbutton",Qe)},Xe=100,Je=99},4920:(Tn,gt,S)=>{"use strict";S.d(gt,{a:()=>Xe,b:()=>Je,c:()=>Z,d:()=>qe,e:()=>Tt,f:()=>Ze,g:()=>Se,h:()=>U,i:()=>oe,j:()=>ht,k:()=>Oe,l:()=>Qe,m:()=>Dt,n:()=>_t,o:()=>yt,p:()=>St,r:()=>Ce,s:()=>mt,t:()=>h});const h=(Me,Ye=0)=>new Promise(ge=>{c(Me,Ye,ge)}),c=(Me,Ye=0,ge)=>{let Ue,Fe;const xe={passive:!0},Rt=()=>{Ue&&Ue()},vn=Nt=>{(void 0===Nt||Me===Nt.target)&&(Rt(),ge(Nt))};return Me&&(Me.addEventListener("webkitTransitionEnd",vn,xe),Me.addEventListener("transitionend",vn,xe),Fe=setTimeout(vn,Ye+500),Ue=()=>{void 0!==Fe&&(clearTimeout(Fe),Fe=void 0),Me.removeEventListener("webkitTransitionEnd",vn,xe),Me.removeEventListener("transitionend",vn,xe)}),Rt},Z=(Me,Ye)=>{Me.componentOnReady?Me.componentOnReady().then(ge=>Ye(ge)):Ce(()=>Ye(Me))},Oe=Me=>void 0!==Me.componentOnReady,U=(Me,Ye=[])=>{const ge={};return Ye.forEach(Ue=>{Me.hasAttribute(Ue)&&(null!==Me.getAttribute(Ue)&&(ge[Ue]=Me.getAttribute(Ue)),Me.removeAttribute(Ue))}),ge},ue=["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"],oe=(Me,Ye)=>{let ge=ue;return Ye&&Ye.length>0&&(ge=ge.filter(Ue=>!Ye.includes(Ue))),U(Me,ge)},Xe=(Me,Ye,ge,Ue)=>{var Fe;if(typeof window<"u"){const xe=window,at=null===(Fe=null==xe?void 0:xe.Ionic)||void 0===Fe?void 0:Fe.config;if(at){const Rt=at.get("_ael");if(Rt)return Rt(Me,Ye,ge,Ue);if(at._ael)return at._ael(Me,Ye,ge,Ue)}}return Me.addEventListener(Ye,ge,Ue)},Je=(Me,Ye,ge,Ue)=>{var Fe;if(typeof window<"u"){const xe=window,at=null===(Fe=null==xe?void 0:xe.Ionic)||void 0===Fe?void 0:Fe.config;if(at){const Rt=at.get("_rel");if(Rt)return Rt(Me,Ye,ge,Ue);if(at._rel)return at._rel(Me,Ye,ge,Ue)}}return Me.removeEventListener(Ye,ge,Ue)},Se=(Me,Ye=Me)=>Me.shadowRoot||Ye,Ce=Me=>"function"==typeof __zone_symbol__requestAnimationFrame?__zone_symbol__requestAnimationFrame(Me):"function"==typeof requestAnimationFrame?requestAnimationFrame(Me):setTimeout(Me),Qe=Me=>!!Me.shadowRoot&&!!Me.attachShadow,Ze=Me=>{if(Me.focus(),Me.classList.contains("ion-focusable")){const Ye=Me.closest("ion-app");Ye&&Ye.setFocus([Me])}},qe=(Me,Ye,ge,Ue,Fe)=>{if(Me||Qe(Ye)){let xe=Ye.querySelector("input.aux-input");xe||(xe=Ye.ownerDocument.createElement("input"),xe.type="hidden",xe.classList.add("aux-input"),Ye.appendChild(xe)),xe.disabled=Fe,xe.name=ge,xe.value=Ue||""}},ht=(Me,Ye,ge)=>Math.max(Me,Math.min(Ye,ge)),Dt=(Me,Ye)=>{if(!Me){const ge="ASSERT: "+Ye;throw console.error(ge),new Error(ge)}},St=Me=>{if(Me){const Ye=Me.changedTouches;if(Ye&&Ye.length>0){const ge=Ye[0];return{x:ge.clientX,y:ge.clientY}}if(void 0!==Me.pageX)return{x:Me.pageX,y:Me.pageY}}return{x:0,y:0}},_t=Me=>{const Ye="rtl"===document.dir;switch(Me){case"start":return Ye;case"end":return!Ye;default:throw new Error(`"${Me}" is not a valid value for [side]. Use "start" or "end" instead.`)}},Tt=(Me,Ye)=>{const ge=Me._original||Me;return{_original:Me,emit:yt(ge.emit.bind(ge),Ye)}},yt=(Me,Ye=0)=>{let ge;return(...Ue)=>{clearTimeout(ge),ge=setTimeout(Me,Ye,...Ue)}},mt=(Me,Ye)=>{if(null!=Me||(Me={}),null!=Ye||(Ye={}),Me===Ye)return!0;const ge=Object.keys(Me);if(ge.length!==Object.keys(Ye).length)return!1;for(const Ue of ge)if(!(Ue in Ye)||Me[Ue]!==Ye[Ue])return!1;return!0}},5465:(Tn,gt,S)=>{"use strict";S.d(gt,{m:()=>Ze});var h=S(467),c=S(8476),Z=S(6411),Oe=S(4929),U=S(4920),ue=S(3664),oe=S(9986);const Xe=qe=>(0,oe.c)().duration(qe?400:300),Je=qe=>{let ht,Dt;const St=qe.width+8,_t=(0,oe.c)(),Tt=(0,oe.c)();qe.isEndSide?(ht=St+"px",Dt="0px"):(ht=-St+"px",Dt="0px"),_t.addElement(qe.menuInnerEl).fromTo("transform",`translateX(${ht})`,`translateX(${Dt})`);const mt="ios"===(0,ue.b)(qe),Me=mt?.2:.25;return Tt.addElement(qe.backdropEl).fromTo("opacity",.01,Me),Xe(mt).addAnimation([_t,Tt])},Se=qe=>{let ht,Dt;const St=(0,ue.b)(qe),_t=qe.width;qe.isEndSide?(ht=-_t+"px",Dt=_t+"px"):(ht=_t+"px",Dt=-_t+"px");const Tt=(0,oe.c)().addElement(qe.menuInnerEl).fromTo("transform",`translateX(${Dt})`,"translateX(0px)"),yt=(0,oe.c)().addElement(qe.contentEl).fromTo("transform","translateX(0px)",`translateX(${ht})`),mt=(0,oe.c)().addElement(qe.backdropEl).fromTo("opacity",.01,.32);return Xe("ios"===St).addAnimation([Tt,yt,mt])},Ce=qe=>{const ht=(0,ue.b)(qe),Dt=qe.width*(qe.isEndSide?-1:1)+"px",St=(0,oe.c)().addElement(qe.contentEl).fromTo("transform","translateX(0px)",`translateX(${Dt})`);return Xe("ios"===ht).addAnimation(St)},Ze=(()=>{const qe=new Map,ht=[],Dt=function(){var X=(0,h.A)(function*(fe){const se=yield Ye(fe,!0);return!!se&&se.open()});return function(se){return X.apply(this,arguments)}}(),St=function(){var X=(0,h.A)(function*(fe){const se=yield void 0!==fe?Ye(fe,!0):ge();return void 0!==se&&se.close()});return function(se){return X.apply(this,arguments)}}(),_t=function(){var X=(0,h.A)(function*(fe){const se=yield Ye(fe,!0);return!!se&&se.toggle()});return function(se){return X.apply(this,arguments)}}(),Tt=function(){var X=(0,h.A)(function*(fe,se){const ve=yield Ye(se);return ve&&(ve.disabled=!fe),ve});return function(se,ve){return X.apply(this,arguments)}}(),yt=function(){var X=(0,h.A)(function*(fe,se){const ve=yield Ye(se);return ve&&(ve.swipeGesture=fe),ve});return function(se,ve){return X.apply(this,arguments)}}(),mt=function(){var X=(0,h.A)(function*(fe){if(null!=fe){const se=yield Ye(fe);return void 0!==se&&se.isOpen()}return void 0!==(yield ge())});return function(se){return X.apply(this,arguments)}}(),Me=function(){var X=(0,h.A)(function*(fe){const se=yield Ye(fe);return!!se&&!se.disabled});return function(se){return X.apply(this,arguments)}}(),Ye=function(){var X=(0,h.A)(function*(fe,se=!1){if(yield H(),"start"===fe||"end"===fe){const Le=ht.filter(Wt=>Wt.side===fe&&!Wt.disabled);if(Le.length>=1)return Le.length>1&&se&&(0,Oe.p)(`menuController queried for a menu on the "${fe}" side, but ${Le.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.`,Le.map(Wt=>Wt.el)),Le[0].el;const De=ht.filter(Wt=>Wt.side===fe);if(De.length>=1)return De.length>1&&se&&(0,Oe.p)(`menuController queried for a menu on the "${fe}" side, but ${De.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.`,De.map(Wt=>Wt.el)),De[0].el}else if(null!=fe)return we(Le=>Le.menuId===fe);return we(Le=>!Le.disabled)||(ht.length>0?ht[0].el:void 0)});return function(se){return X.apply(this,arguments)}}(),ge=function(){var X=(0,h.A)(function*(){return yield H(),tt()});return function(){return X.apply(this,arguments)}}(),Ue=function(){var X=(0,h.A)(function*(){return yield H(),on()});return function(){return X.apply(this,arguments)}}(),Fe=function(){var X=(0,h.A)(function*(){return yield H(),dt()});return function(){return X.apply(this,arguments)}}(),xe=(X,fe)=>{qe.set(X,fe)},vn=function(){var X=(0,h.A)(function*(fe,se,ve){if(dt())return!1;if(se){const Le=yield ge();Le&&fe.el!==Le&&(yield Le.setOpen(!1,!1))}return fe._setOpen(se,ve)});return function(se,ve,Le){return X.apply(this,arguments)}}(),tt=()=>we(X=>X._isOpen),on=()=>ht.map(X=>X.el),dt=()=>ht.some(X=>X.isAnimating),we=X=>{const fe=ht.find(X);if(void 0!==fe)return fe.el},H=()=>Promise.all(Array.from(document.querySelectorAll("ion-menu")).map(X=>new Promise(fe=>(0,U.c)(X,fe))));return xe("reveal",Ce),xe("push",Se),xe("overlay",Je),null==c.d||c.d.addEventListener("ionBackButton",X=>{const fe=tt();fe&&X.detail.register(Z.MENU_BACK_BUTTON_PRIORITY,()=>fe.close())}),{registerAnimation:xe,get:Ye,getMenus:Ue,getOpen:ge,isEnabled:Me,swipeGesture:yt,isAnimating:Fe,isOpen:mt,enable:Tt,toggle:_t,close:St,open:Dt,_getOpenSync:tt,_createAnimation:(X,fe)=>{const se=qe.get(X);if(!se)throw new Error("animation not registered");return se(fe)},_register:X=>{ht.indexOf(X)<0&&ht.push(X)},_unregister:X=>{const fe=ht.indexOf(X);fe>-1&&ht.splice(fe,1)},_setOpen:vn}})()},8607:(Tn,gt,S)=>{"use strict";S.r(gt),S.d(gt,{GESTURE_CONTROLLER:()=>h.G,createGesture:()=>Je});var h=S(1970);const c=(Ze,qe,ht,Dt)=>{const St=Z(Ze)?{capture:!!Dt.capture,passive:!!Dt.passive}:!!Dt.capture;let _t,Tt;return Ze.__zone_symbol__addEventListener?(_t="__zone_symbol__addEventListener",Tt="__zone_symbol__removeEventListener"):(_t="addEventListener",Tt="removeEventListener"),Ze[_t](qe,ht,St),()=>{Ze[Tt](qe,ht,St)}},Z=Ze=>{if(void 0===Oe)try{const qe=Object.defineProperty({},"passive",{get:()=>{Oe=!0}});Ze.addEventListener("optsTest",()=>{},qe)}catch{Oe=!1}return!!Oe};let Oe;const oe=Ze=>Ze instanceof Document?Ze:Ze.ownerDocument,Je=Ze=>{let qe=!1,ht=!1,Dt=!0,St=!1;const _t=Object.assign({disableScroll:!1,direction:"x",gesturePriority:0,passive:!0,maxAngle:40,threshold:10},Ze),Tt=_t.canStart,yt=_t.onWillStart,mt=_t.onStart,Me=_t.onEnd,Ye=_t.notCaptured,ge=_t.onMove,Ue=_t.threshold,Fe=_t.passive,xe=_t.blurOnStart,at={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},Rt=((Ze,qe,ht)=>{const Dt=ht*(Math.PI/180),St="x"===Ze,_t=Math.cos(Dt),Tt=qe*qe;let yt=0,mt=0,Me=!1,Ye=0;return{start(ge,Ue){yt=ge,mt=Ue,Ye=0,Me=!0},detect(ge,Ue){if(!Me)return!1;const Fe=ge-yt,xe=Ue-mt,at=Fe*Fe+xe*xe;if(at_t?1:vn<-_t?-1:0,Me=!1,!0},isGesture:()=>0!==Ye,getDirection:()=>Ye}})(_t.direction,_t.threshold,_t.maxAngle),vn=h.G.createGesture({name:Ze.gestureName,priority:Ze.gesturePriority,disableScroll:Ze.disableScroll}),on=()=>{qe&&(St=!1,ge&&ge(at))},dt=()=>!!vn.capture()&&(qe=!0,Dt=!1,at.startX=at.currentX,at.startY=at.currentY,at.startTime=at.currentTime,yt?yt(at).then(H):H(),!0),H=()=>{xe&&(()=>{if(typeof document<"u"){const Le=document.activeElement;null!=Le&&Le.blur&&Le.blur()}})(),mt&&mt(at),Dt=!0},X=()=>{qe=!1,ht=!1,St=!1,Dt=!0,vn.release()},fe=Le=>{const De=qe,Wt=Dt;if(X(),Wt){if(Se(at,Le),De)return void(Me&&Me(at));Ye&&Ye(at)}},se=((Ze,qe,ht,Dt,St)=>{let _t,Tt,yt,mt,Me,Ye,ge,Ue=0;const Fe=we=>{Ue=Date.now()+2e3,qe(we)&&(!Tt&&ht&&(Tt=c(Ze,"touchmove",ht,St)),yt||(yt=c(we.target,"touchend",at,St)),mt||(mt=c(we.target,"touchcancel",at,St)))},xe=we=>{Ue>Date.now()||qe(we)&&(!Ye&&ht&&(Ye=c(oe(Ze),"mousemove",ht,St)),ge||(ge=c(oe(Ze),"mouseup",Rt,St)))},at=we=>{vn(),Dt&&Dt(we)},Rt=we=>{Nt(),Dt&&Dt(we)},vn=()=>{Tt&&Tt(),yt&&yt(),mt&&mt(),Tt=yt=mt=void 0},Nt=()=>{Ye&&Ye(),ge&&ge(),Ye=ge=void 0},tt=()=>{vn(),Nt()},on=(we=!0)=>{we?(_t||(_t=c(Ze,"touchstart",Fe,St)),Me||(Me=c(Ze,"mousedown",xe,St))):(_t&&_t(),Me&&Me(),_t=Me=void 0,tt())};return{enable:on,stop:tt,destroy:()=>{on(!1),Dt=ht=qe=void 0}}})(_t.el,Le=>{const De=Qe(Le);return!(ht||!Dt||(Ce(Le,at),at.startX=at.currentX,at.startY=at.currentY,at.startTime=at.currentTime=De,at.velocityX=at.velocityY=at.deltaX=at.deltaY=0,at.event=Le,Tt&&!1===Tt(at))||(vn.release(),!vn.start()))&&(ht=!0,0===Ue?dt():(Rt.start(at.startX,at.startY),!0))},Le=>{qe?!St&&Dt&&(St=!0,Se(at,Le),requestAnimationFrame(on)):(Se(at,Le),Rt.detect(at.currentX,at.currentY)&&(!Rt.isGesture()||!dt())&&ve())},fe,{capture:!1,passive:Fe}),ve=()=>{X(),se.stop(),Ye&&Ye(at)};return{enable(Le=!0){Le||(qe&&fe(void 0),X()),se.enable(Le)},destroy(){vn.destroy(),se.destroy()}}},Se=(Ze,qe)=>{if(!qe)return;const ht=Ze.currentX,Dt=Ze.currentY,St=Ze.currentTime;Ce(qe,Ze);const _t=Ze.currentX,Tt=Ze.currentY,mt=(Ze.currentTime=Qe(qe))-St;if(mt>0&&mt<100){const Ye=(Tt-Dt)/mt;Ze.velocityX=(_t-ht)/mt*.7+.3*Ze.velocityX,Ze.velocityY=.7*Ye+.3*Ze.velocityY}Ze.deltaX=_t-Ze.startX,Ze.deltaY=Tt-Ze.startY,Ze.event=qe},Ce=(Ze,qe)=>{let ht=0,Dt=0;if(Ze){const St=Ze.changedTouches;if(St&&St.length>0){const _t=St[0];ht=_t.clientX,Dt=_t.clientY}else void 0!==Ze.pageX&&(ht=Ze.pageX,Dt=Ze.pageY)}qe.currentX=ht,qe.currentY=Dt},Qe=Ze=>Ze.timeStamp||Date.now()},9672:(Tn,gt,S)=>{"use strict";S.d(gt,{B:()=>ue,a:()=>$e,b:()=>Tr,c:()=>Wt,d:()=>Ln,e:()=>sr,f:()=>dt,g:()=>dn,h:()=>tt,i:()=>rn,j:()=>tr,k:()=>oe,r:()=>Wn,w:()=>ni});var h=S(467);var Oe=Object.defineProperty,ue={isDev:!1,isBrowser:!0,isServer:!1,isTesting:!1},oe=z=>{const me=new URL(z,W.$resourcesUrl$);return me.origin!==bt.location.origin?me.href:me.pathname},Xe={},Qe=z=>"object"==(z=typeof z)||"function"===z;function Ze(z){var me,Ne,et;return null!=(et=null==(Ne=null==(me=z.head)?void 0:me.querySelector('meta[name="csp-nonce"]'))?void 0:Ne.getAttribute("content"))?et:void 0}((z,me)=>{for(var Ne in me)Oe(z,Ne,{get:me[Ne],enumerable:!0})})({},{err:()=>Dt,map:()=>St,ok:()=>ht,unwrap:()=>_t,unwrapErr:()=>Tt});var ht=z=>({isOk:!0,isErr:!1,value:z}),Dt=z=>({isOk:!1,isErr:!0,value:z});function St(z,me){if(z.isOk){const Ne=me(z.value);return Ne instanceof Promise?Ne.then(et=>ht(et)):ht(Ne)}if(z.isErr)return Dt(z.value);throw"should never get here"}var _t=z=>{if(z.isOk)return z.value;throw z.value},Tt=z=>{if(z.isErr)return z.value;throw z.value},Fe="s-id",xe="sty-id",vn="slot-fb{display:contents}slot-fb[hidden]{display:none}",Nt="http://www.w3.org/1999/xlink",tt=(z,me,...Ne)=>{let et=null,wt=null,Et=null,Yt=!1,sn=!1;const cn=[],En=jn=>{for(let lr=0;lrjn[lr]).join(" "))}}if("function"==typeof z)return z(null===me?{}:me,cn,H);const Nn=on(z,null);return Nn.$attrs$=me,cn.length>0&&(Nn.$children$=cn),Nn.$key$=wt,Nn.$name$=Et,Nn},on=(z,me)=>({$flags$:0,$tag$:z,$text$:me,$elm$:null,$children$:null,$attrs$:null,$key$:null,$name$:null}),dt={},H={forEach:(z,me)=>z.map(X).forEach(me),map:(z,me)=>z.map(X).map(me).map(fe)},X=z=>({vattrs:z.$attrs$,vchildren:z.$children$,vkey:z.$key$,vname:z.$name$,vtag:z.$tag$,vtext:z.$text$}),fe=z=>{if("function"==typeof z.vtag){const Ne={...z.vattrs};return z.vkey&&(Ne.key=z.vkey),z.vname&&(Ne.name=z.vname),tt(z.vtag,Ne,...z.vchildren||[])}const me=on(z.vtag,z.vtext);return me.$attrs$=z.vattrs,me.$children$=z.vchildren,me.$key$=z.vkey,me.$name$=z.vname,me},ve=(z,me,Ne,et,wt,Et,Yt)=>{let sn,cn,En,Nn;if(1===Et.nodeType){for(sn=Et.getAttribute("c-id"),sn&&(cn=sn.split("."),(cn[0]===Yt||"0"===cn[0])&&(En={$flags$:0,$hostId$:cn[0],$nodeId$:cn[1],$depth$:cn[2],$index$:cn[3],$tag$:Et.tagName.toLowerCase(),$elm$:Et,$attrs$:null,$children$:null,$key$:null,$name$:null,$text$:null},me.push(En),Et.removeAttribute("c-id"),z.$children$||(z.$children$=[]),z.$children$[En.$index$]=En,z=En,et&&"0"===En.$depth$&&(et[En.$index$]=En.$elm$))),Nn=Et.childNodes.length-1;Nn>=0;Nn--)ve(z,me,Ne,et,wt,Et.childNodes[Nn],Yt);if(Et.shadowRoot)for(Nn=Et.shadowRoot.childNodes.length-1;Nn>=0;Nn--)ve(z,me,Ne,et,wt,Et.shadowRoot.childNodes[Nn],Yt)}else if(8===Et.nodeType)cn=Et.nodeValue.split("."),(cn[1]===Yt||"0"===cn[1])&&(sn=cn[0],En={$flags$:0,$hostId$:cn[1],$nodeId$:cn[2],$depth$:cn[3],$index$:cn[4],$elm$:Et,$attrs$:null,$children$:null,$key$:null,$name$:null,$tag$:null,$text$:null},"t"===sn?(En.$elm$=Et.nextSibling,En.$elm$&&3===En.$elm$.nodeType&&(En.$text$=En.$elm$.textContent,me.push(En),Et.remove(),z.$children$||(z.$children$=[]),z.$children$[En.$index$]=En,et&&"0"===En.$depth$&&(et[En.$index$]=En.$elm$))):En.$hostId$===Yt&&("s"===sn?(En.$tag$="slot",Et["s-sn"]=cn[5]?En.$name$=cn[5]:"",Et["s-sr"]=!0,et&&(En.$elm$=he.createElement(En.$tag$),En.$name$&&En.$elm$.setAttribute("name",En.$name$),Et.parentNode.insertBefore(En.$elm$,Et),Et.remove(),"0"===En.$depth$&&(et[En.$index$]=En.$elm$)),Ne.push(En),z.$children$||(z.$children$=[]),z.$children$[En.$index$]=En):"r"===sn&&(et?Et.remove():(wt["s-cr"]=Et,Et["s-cn"]=!0))));else if(z&&"style"===z.$tag$){const jn=on(null,Et.textContent);jn.$elm$=Et,jn.$index$="0",z.$children$=[jn]}},Le=(z,me)=>{if(1===z.nodeType){let Ne=0;for(;Neoi.push(z),dn=z=>mi(z).$modeName$,rn=z=>mi(z).$hostElement$,Ln=(z,me,Ne)=>{const et=rn(z);return{emit:wt=>Zn(et,me,{bubbles:!!(4&Ne),composed:!!(2&Ne),cancelable:!!(1&Ne),detail:wt})}},Zn=(z,me,Ne)=>{const et=W.ce(me,Ne);return z.dispatchEvent(et),et},nr=new WeakMap,er=(z,me,Ne)=>{let et=No.get(z);In&&Ne?(et=et||new CSSStyleSheet,"string"==typeof et?et=me:et.replaceSync(me)):et=me,No.set(z,et)},yr=(z,me,Ne)=>{var et;const wt=ir(me,Ne),Et=No.get(wt);if(z=11===z.nodeType?z:he,Et)if("string"==typeof Et){let sn,Yt=nr.get(z=z.head||z);if(Yt||nr.set(z,Yt=new Set),!Yt.has(wt)){if(z.host&&(sn=z.querySelector(`[${xe}="${wt}"]`)))sn.innerHTML=Et;else{sn=he.createElement("style"),sn.innerHTML=Et;const cn=null!=(et=W.$nonce$)?et:Ze(he);null!=cn&&sn.setAttribute("nonce",cn),z.insertBefore(sn,z.querySelector("link"))}4&me.$flags$&&(sn.innerHTML+=vn),Yt&&Yt.add(wt)}}else z.adoptedStyleSheets.includes(Et)||(z.adoptedStyleSheets=[...z.adoptedStyleSheets,Et]);return wt},ir=(z,me)=>"sc-"+(me&&32&z.$flags$?z.$tagName$+"-"+me:z.$tagName$),nt=z=>z.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g,"$1{"),Ot=(z,me,Ne,et,wt,Et)=>{if(Ne!==et){let Yt=ao(z,me),sn=me.toLowerCase();if("class"===me){const cn=z.classList,En=pn(Ne),Nn=pn(et);cn.remove(...En.filter(jn=>jn&&!Nn.includes(jn))),cn.add(...Nn.filter(jn=>jn&&!En.includes(jn)))}else if("style"===me){for(const cn in Ne)(!et||null==et[cn])&&(cn.includes("-")?z.style.removeProperty(cn):z.style[cn]="");for(const cn in et)(!Ne||et[cn]!==Ne[cn])&&(cn.includes("-")?z.style.setProperty(cn,et[cn]):z.style[cn]=et[cn])}else if("key"!==me)if("ref"===me)et&&et(z);else if(Yt||"o"!==me[0]||"n"!==me[1]){const cn=Qe(et);if((Yt||cn&&null!==et)&&!wt)try{if(z.tagName.includes("-"))z[me]=et;else{const Nn=null==et?"":et;"list"===me?Yt=!1:(null==Ne||z[me]!=Nn)&&(z[me]=Nn)}}catch{}let En=!1;sn!==(sn=sn.replace(/^xlink\:?/,""))&&(me=sn,En=!0),null==et||!1===et?(!1!==et||""===z.getAttribute(me))&&(En?z.removeAttributeNS(Nt,me):z.removeAttribute(me)):(!Yt||4&Et||wt)&&!cn&&(et=!0===et?"":et,En?z.setAttributeNS(Nt,me,et):z.setAttribute(me,et))}else if(me="-"===me[2]?me.slice(3):ao(bt,sn)?sn.slice(2):sn[2]+me.slice(3),Ne||et){const cn=me.endsWith(gn);me=me.replace(Sr,""),Ne&&W.rel(z,me,Ne,cn),et&&W.ael(z,me,et,cn)}}},zt=/\s/,pn=z=>z?z.split(zt):[],gn="Capture",Sr=new RegExp(gn+"$"),Mn=(z,me,Ne)=>{const et=11===me.$elm$.nodeType&&me.$elm$.host?me.$elm$.host:me.$elm$,wt=z&&z.$attrs$||Xe,Et=me.$attrs$||Xe;for(const Yt of xn(Object.keys(wt)))Yt in Et||Ot(et,Yt,wt[Yt],void 0,Ne,me.$flags$);for(const Yt of xn(Object.keys(Et)))Ot(et,Yt,wt[Yt],Et[Yt],Ne,me.$flags$)};function xn(z){return z.includes("ref")?[...z.filter(me=>"ref"!==me),"ref"]:z}var mn,en,Er,Ir=!1,Nr=!1,Qn=!1,Dr=!1,Jn=(z,me,Ne,et)=>{var wt;const Et=me.$children$[Ne];let sn,cn,En,Yt=0;if(Ir||(Qn=!0,"slot"===Et.$tag$&&(mn&&et.classList.add(mn+"-s"),Et.$flags$|=Et.$children$?2:1)),null!==Et.$text$)sn=Et.$elm$=he.createTextNode(Et.$text$);else if(1&Et.$flags$)sn=Et.$elm$=he.createTextNode("");else{if(Dr||(Dr="svg"===Et.$tag$),sn=Et.$elm$=he.createElementNS(Dr?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",2&Et.$flags$?"slot-fb":Et.$tag$),Dr&&"foreignObject"===Et.$tag$&&(Dr=!1),Mn(null,Et,Dr),(z=>null!=z)(mn)&&sn["s-si"]!==mn&&sn.classList.add(sn["s-si"]=mn),Et.$children$)for(Yt=0;Yt{W.$flags$|=1;const me=z.closest(Er.toLowerCase());if(null!=me){const Ne=Array.from(me.childNodes).find(wt=>wt["s-cr"]),et=Array.from(z.childNodes);for(const wt of Ne?et.reverse():et)null!=wt["s-sh"]&&(ye(me,wt,null!=Ne?Ne:null),wt["s-sh"]=void 0,Qn=!0)}W.$flags$&=-2},mr=(z,me)=>{W.$flags$|=1;const Ne=Array.from(z.childNodes);if(z["s-sr"]){let et=z;for(;et=et.nextSibling;)et&&et["s-sn"]===z["s-sn"]&&et["s-sh"]===Er&&Ne.push(et)}for(let et=Ne.length-1;et>=0;et--){const wt=Ne[et];wt["s-hn"]!==Er&&wt["s-ol"]&&(ye(Ai(wt),wt,ii(wt)),wt["s-ol"].remove(),wt["s-ol"]=void 0,wt["s-sh"]=void 0,Qn=!0),me&&mr(wt,me)}W.$flags$&=-2},ur=(z,me,Ne,et,wt,Et)=>{let sn,Yt=z["s-cr"]&&z["s-cr"].parentNode||z;for(Yt.shadowRoot&&Yt.tagName===Er&&(Yt=Yt.shadowRoot);wt<=Et;++wt)et[wt]&&(sn=Jn(null,Ne,wt,z),sn&&(et[wt].$elm$=sn,ye(Yt,sn,ii(me))))},Pr=(z,me,Ne)=>{for(let et=me;et<=Ne;++et){const wt=z[et];if(wt){const Et=wt.$elm$;ce(wt),Et&&(Nr=!0,Et["s-ol"]?Et["s-ol"].remove():mr(Et,!0),Et.remove())}}},kr=(z,me,Ne=!1)=>z.$tag$===me.$tag$&&("slot"===z.$tag$?z.$name$===me.$name$:!!Ne||z.$key$===me.$key$),ii=z=>z&&z["s-ol"]||z,Ai=z=>(z["s-ol"]?z["s-ol"]:z).parentNode,Qr=(z,me,Ne=!1)=>{const et=me.$elm$=z.$elm$,wt=z.$children$,Et=me.$children$,Yt=me.$tag$,sn=me.$text$;let cn;null===sn?(Dr="svg"===Yt||"foreignObject"!==Yt&&Dr,"slot"!==Yt||Ir?Mn(z,me,Dr):z.$name$!==me.$name$&&(me.$elm$["s-sn"]=me.$name$||"",Jr(me.$elm$.parentElement)),null!==wt&&null!==Et?((z,me,Ne,et,wt=!1)=>{let jr,br,Et=0,Yt=0,sn=0,cn=0,En=me.length-1,Nn=me[0],jn=me[En],lr=et.length-1,Vn=et[0],qr=et[lr];for(;Et<=En&&Yt<=lr;)if(null==Nn)Nn=me[++Et];else if(null==jn)jn=me[--En];else if(null==Vn)Vn=et[++Yt];else if(null==qr)qr=et[--lr];else if(kr(Nn,Vn,wt))Qr(Nn,Vn,wt),Nn=me[++Et],Vn=et[++Yt];else if(kr(jn,qr,wt))Qr(jn,qr,wt),jn=me[--En],qr=et[--lr];else if(kr(Nn,qr,wt))("slot"===Nn.$tag$||"slot"===qr.$tag$)&&mr(Nn.$elm$.parentNode,!1),Qr(Nn,qr,wt),ye(z,Nn.$elm$,jn.$elm$.nextSibling),Nn=me[++Et],qr=et[--lr];else if(kr(jn,Vn,wt))("slot"===Nn.$tag$||"slot"===qr.$tag$)&&mr(jn.$elm$.parentNode,!1),Qr(jn,Vn,wt),ye(z,jn.$elm$,Nn.$elm$),jn=me[--En],Vn=et[++Yt];else{for(sn=-1,cn=Et;cn<=En;++cn)if(me[cn]&&null!==me[cn].$key$&&me[cn].$key$===Vn.$key$){sn=cn;break}sn>=0?(br=me[sn],br.$tag$!==Vn.$tag$?jr=Jn(me&&me[Yt],Ne,sn,z):(Qr(br,Vn,wt),me[sn]=void 0,jr=br.$elm$),Vn=et[++Yt]):(jr=Jn(me&&me[Yt],Ne,Yt,z),Vn=et[++Yt]),jr&&ye(Ai(Nn.$elm$),jr,ii(Nn.$elm$))}Et>En?ur(z,null==et[lr+1]?null:et[lr+1].$elm$,Ne,et,Yt,lr):Yt>lr&&Pr(me,Et,En)})(et,wt,me,Et,Ne):null!==Et?(null!==z.$text$&&(et.textContent=""),ur(et,null,me,Et,0,Et.length-1)):null!==wt&&Pr(wt,0,wt.length-1),Dr&&"svg"===Yt&&(Dr=!1)):(cn=et["s-cr"])?cn.parentNode.textContent=sn:z.$text$!==sn&&(et.data=sn)},pe=z=>{const me=z.childNodes;for(const Ne of me)if(1===Ne.nodeType){if(Ne["s-sr"]){const et=Ne["s-sn"];Ne.hidden=!1;for(const wt of me)if(wt!==Ne)if(wt["s-hn"]!==Ne["s-hn"]||""!==et){if(1===wt.nodeType&&(et===wt.getAttribute("slot")||et===wt["s-sn"])||3===wt.nodeType&&et===wt["s-sn"]){Ne.hidden=!0;break}}else if(1===wt.nodeType||3===wt.nodeType&&""!==wt.textContent.trim()){Ne.hidden=!0;break}}pe(Ne)}},rt=[],Mt=z=>{let me,Ne,et;for(const wt of z.childNodes){if(wt["s-sr"]&&(me=wt["s-cr"])&&me.parentNode){Ne=me.parentNode.childNodes;const Et=wt["s-sn"];for(et=Ne.length-1;et>=0;et--)if(me=Ne[et],!(me["s-cn"]||me["s-nr"]||me["s-hn"]===wt["s-hn"]||me["s-sh"]&&me["s-sh"]===wt["s-hn"]))if(ut(me,Et)){let Yt=rt.find(sn=>sn.$nodeToRelocate$===me);Nr=!0,me["s-sn"]=me["s-sn"]||Et,Yt?(Yt.$nodeToRelocate$["s-sh"]=wt["s-hn"],Yt.$slotRefNode$=wt):(me["s-sh"]=wt["s-hn"],rt.push({$slotRefNode$:wt,$nodeToRelocate$:me})),me["s-sr"]&&rt.map(sn=>{ut(sn.$nodeToRelocate$,me["s-sn"])&&(Yt=rt.find(cn=>cn.$nodeToRelocate$===me),Yt&&!sn.$slotRefNode$&&(sn.$slotRefNode$=Yt.$slotRefNode$))})}else rt.some(Yt=>Yt.$nodeToRelocate$===me)||rt.push({$nodeToRelocate$:me})}1===wt.nodeType&&Mt(wt)}},ut=(z,me)=>1===z.nodeType?null===z.getAttribute("slot")&&""===me||z.getAttribute("slot")===me:z["s-sn"]===me||""===me,ce=z=>{z.$attrs$&&z.$attrs$.ref&&z.$attrs$.ref(null),z.$children$&&z.$children$.map(ce)},ye=(z,me,Ne)=>{const et=null==z?void 0:z.insertBefore(me,Ne);return Lt(me,z),et},He=z=>z?z["s-rsc"]||z["s-si"]||z["s-sc"]||He(z.parentElement):void 0,Lt=(z,me)=>{var Ne,et,wt;if(z&&me){const Et=z["s-rsc"],Yt=He(me);Et&&null!=(Ne=z.classList)&&Ne.contains(Et)&&z.classList.remove(Et),Yt&&(z["s-rsc"]=Yt,(null==(et=z.classList)||!et.contains(Yt))&&(null==(wt=z.classList)||wt.add(Yt)))}},ct=(z,me)=>{me&&!z.$onRenderResolve$&&me["s-p"]&&me["s-p"].push(new Promise(Ne=>z.$onRenderResolve$=Ne))},lt=(z,me)=>{if(z.$flags$|=16,!(4&z.$flags$))return ct(z,z.$ancestorComponent$),ni(()=>Gt(z,me));z.$flags$|=512},Gt=(z,me)=>{const et=z.$lazyInstance$;let wt;return me&&(z.$flags$|=256,z.$queuedListeners$&&(z.$queuedListeners$.map(([Et,Yt])=>dr(et,Et,Yt)),z.$queuedListeners$=void 0),wt=dr(et,"componentWillLoad")),wt=tn(wt,()=>dr(et,"componentWillRender")),tn(wt,()=>qn(z,et,me))},tn=(z,me)=>_n(z)?z.then(me):me(),_n=z=>z instanceof Promise||z&&z.then&&"function"==typeof z.then,qn=function(){var z=(0,h.A)(function*(me,Ne,et){var wt;const Et=me.$hostElement$,sn=Et["s-rc"];et&&(z=>{const me=z.$cmpMeta$,Ne=z.$hostElement$,et=me.$flags$,Et=yr(Ne.shadowRoot?Ne.shadowRoot:Ne.getRootNode(),me,z.$modeName$);10&et&&(Ne["s-sc"]=Et,Ne.classList.add(Et+"-h"),2&et&&Ne.classList.add(Et+"-s"))})(me);hn(me,Ne,Et,et),sn&&(sn.map(En=>En()),Et["s-rc"]=void 0);{const En=null!=(wt=Et["s-p"])?wt:[],Nn=()=>Cn(me);0===En.length?Nn():(Promise.all(En).then(Nn),me.$flags$|=4,En.length=0)}});return function(Ne,et,wt){return z.apply(this,arguments)}}(),hn=(z,me,Ne,et)=>{try{me=me.render&&me.render(),z.$flags$&=-17,z.$flags$|=2,((z,me,Ne=!1)=>{var et,wt,Et,Yt,sn;const cn=z.$hostElement$,En=z.$cmpMeta$,Nn=z.$vnode$||on(null,null),jn=(z=>z&&z.$tag$===dt)(me)?me:tt(null,null,me);if(Er=cn.tagName,En.$attrsToReflect$&&(jn.$attrs$=jn.$attrs$||{},En.$attrsToReflect$.map(([lr,Vn])=>jn.$attrs$[Vn]=cn[lr])),Ne&&jn.$attrs$)for(const lr of Object.keys(jn.$attrs$))cn.hasAttribute(lr)&&!["key","ref","style","class"].includes(lr)&&(jn.$attrs$[lr]=cn[lr]);if(jn.$tag$=null,jn.$flags$|=4,z.$vnode$=jn,jn.$elm$=Nn.$elm$=cn.shadowRoot||cn,mn=cn["s-sc"],Ir=!!(1&En.$flags$),en=cn["s-cr"],Nr=!1,Qr(Nn,jn,Ne),W.$flags$|=1,Qn){Mt(jn.$elm$);for(const lr of rt){const Vn=lr.$nodeToRelocate$;if(!Vn["s-ol"]){const qr=he.createTextNode("");qr["s-nr"]=Vn,ye(Vn.parentNode,Vn["s-ol"]=qr,Vn)}}for(const lr of rt){const Vn=lr.$nodeToRelocate$,qr=lr.$slotRefNode$;if(qr){const jr=qr.parentNode;let br=qr.nextSibling;if(br&&1===br.nodeType){let wi=null==(et=Vn["s-ol"])?void 0:et.previousSibling;for(;wi;){let Ni=null!=(wt=wi["s-nr"])?wt:null;if(Ni&&Ni["s-sn"]===Vn["s-sn"]&&jr===Ni.parentNode){for(Ni=Ni.nextSibling;Ni===Vn||null!=Ni&&Ni["s-sr"];)Ni=null==Ni?void 0:Ni.nextSibling;if(!Ni||!Ni["s-nr"]){br=Ni;break}}wi=wi.previousSibling}}(!br&&jr!==Vn.parentNode||Vn.nextSibling!==br)&&Vn!==br&&(ye(jr,Vn,br),1===Vn.nodeType&&(Vn.hidden=null!=(Et=Vn["s-ih"])&&Et)),Vn&&"function"==typeof qr["s-rf"]&&qr["s-rf"](Vn)}else 1===Vn.nodeType&&(Ne&&(Vn["s-ih"]=null!=(Yt=Vn.hidden)&&Yt),Vn.hidden=!0)}}if(Nr&&pe(jn.$elm$),W.$flags$&=-2,rt.length=0,2&En.$flags$)for(const lr of jn.$elm$.childNodes)lr["s-hn"]!==Er&&!lr["s-sh"]&&(Ne&&null==lr["s-ih"]&&(lr["s-ih"]=null!=(sn=lr.hidden)&&sn),lr.hidden=!0);en=void 0})(z,me,et)}catch(wt){ui(wt,z.$hostElement$)}return null},Cn=z=>{const Ne=z.$hostElement$,wt=z.$lazyInstance$,Et=z.$ancestorComponent$;dr(wt,"componentDidRender"),64&z.$flags$?dr(wt,"componentDidUpdate"):(z.$flags$|=64,$r(Ne),dr(wt,"componentDidLoad"),z.$onReadyResolve$(Ne),Et||Ar()),z.$onInstanceResolve$(Ne),z.$onRenderResolve$&&(z.$onRenderResolve$(),z.$onRenderResolve$=void 0),512&z.$flags$&&it(()=>lt(z,!1)),z.$flags$&=-517},tr=z=>{{const me=mi(z),Ne=me.$hostElement$.isConnected;return Ne&&2==(18&me.$flags$)&<(me,!1),Ne}},Ar=z=>{$r(he.documentElement),it(()=>Zn(bt,"appload",{detail:{namespace:"ionic"}}))},dr=(z,me,Ne)=>{if(z&&z[me])try{return z[me](Ne)}catch(et){ui(et)}},$r=z=>z.classList.add("hydrated"),Ri=(z,me,Ne)=>{var et;const wt=z.prototype;if(me.$members$){z.watchers&&(me.$watchers$=z.watchers);const Et=Object.entries(me.$members$);if(Et.map(([Yt,[sn]])=>{31&sn||2&Ne&&32&sn?Object.defineProperty(wt,Yt,{get(){return((z,me)=>mi(this).$instanceValues$.get(me))(0,Yt)},set(cn){((z,me,Ne,et)=>{const wt=mi(z);if(!wt)throw new Error(`Couldn't find host element for "${et.$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=wt.$hostElement$,Yt=wt.$instanceValues$.get(me),sn=wt.$flags$,cn=wt.$lazyInstance$;Ne=((z,me)=>null==z||Qe(z)?z:4&me?"false"!==z&&(""===z||!!z):2&me?parseFloat(z):1&me?String(z):z)(Ne,et.$members$[me][0]);const En=Number.isNaN(Yt)&&Number.isNaN(Ne);if((!(8&sn)||void 0===Yt)&&Ne!==Yt&&!En&&(wt.$instanceValues$.set(me,Ne),cn)){if(et.$watchers$&&128&sn){const jn=et.$watchers$[me];jn&&jn.map(lr=>{try{cn[lr](Ne,Yt,me)}catch(Vn){ui(Vn,Et)}})}2==(18&sn)&<(wt,!1)}})(this,Yt,cn,me)},configurable:!0,enumerable:!0}):1&Ne&&64&sn&&Object.defineProperty(wt,Yt,{value(...cn){var En;const Nn=mi(this);return null==(En=null==Nn?void 0:Nn.$onInstancePromise$)?void 0:En.then(()=>{var jn;return null==(jn=Nn.$lazyInstance$)?void 0:jn[Yt](...cn)})}})}),1&Ne){const Yt=new Map;wt.attributeChangedCallback=function(sn,cn,En){W.jmp(()=>{var Nn;const jn=Yt.get(sn);if(this.hasOwnProperty(jn))En=this[jn],delete this[jn];else{if(wt.hasOwnProperty(jn)&&"number"==typeof this[jn]&&this[jn]==En)return;if(null==jn){const lr=mi(this),Vn=null==lr?void 0:lr.$flags$;if(Vn&&!(8&Vn)&&128&Vn&&En!==cn){const qr=lr.$lazyInstance$,jr=null==(Nn=me.$watchers$)?void 0:Nn[sn];null==jr||jr.forEach(br=>{null!=qr[br]&&qr[br].call(qr,En,cn,sn)})}return}}this[jn]=(null!==En||"boolean"!=typeof this[jn])&&En})},z.observedAttributes=Array.from(new Set([...Object.keys(null!=(et=me.$watchers$)?et:{}),...Et.filter(([sn,cn])=>15&cn[0]).map(([sn,cn])=>{var En;const Nn=cn[1]||sn;return Yt.set(Nn,sn),512&cn[0]&&(null==(En=me.$attrsToReflect$)||En.push([sn,Nn])),Nn})]))}}return z},gi=function(){var z=(0,h.A)(function*(me,Ne,et,wt){let Et;if(!(32&Ne.$flags$)){if(Ne.$flags$|=32,et.$lazyBundleId$){if(Et=Eo(et),Et.then){const Nn=()=>{};Et=yield Et,Nn()}Et.isProxied||(et.$watchers$=Et.watchers,Ri(Et,et,2),Et.isProxied=!0);const En=()=>{};Ne.$flags$|=8;try{new Et(Ne)}catch(Nn){ui(Nn)}Ne.$flags$&=-9,Ne.$flags$|=128,En(),pr(Ne.$lazyInstance$)}else Et=me.constructor,customElements.whenDefined(et.$tagName$).then(()=>Ne.$flags$|=128);if(Et.style){let En=Et.style;"string"!=typeof En&&(En=En[Ne.$modeName$=(z=>oi.map(me=>me(z)).find(me=>!!me))(me)]);const Nn=ir(et,Ne.$modeName$);if(!No.has(Nn)){const jn=()=>{};er(Nn,En,!!(1&et.$flags$)),jn()}}}const Yt=Ne.$ancestorComponent$,sn=()=>lt(Ne,!0);Yt&&Yt["s-rc"]?Yt["s-rc"].push(sn):sn()});return function(Ne,et,wt,Et){return z.apply(this,arguments)}}(),pr=z=>{dr(z,"connectedCallback")},te=z=>{const me=z["s-cr"]=he.createComment("");me["s-cn"]=!0,ye(z,me,z.firstChild)},ee=z=>{dr(z,"disconnectedCallback")},ze=function(){var z=(0,h.A)(function*(me){if(!(1&W.$flags$)){const Ne=mi(me);Ne.$rmListeners$&&(Ne.$rmListeners$.map(et=>et()),Ne.$rmListeners$=void 0),null!=Ne&&Ne.$lazyInstance$?ee(Ne.$lazyInstance$):null!=Ne&&Ne.$onReadyPromise$&&Ne.$onReadyPromise$.then(()=>ee(Ne.$lazyInstance$))}});return function(Ne){return z.apply(this,arguments)}}(),x=z=>{const me=z.cloneNode;z.cloneNode=function(Ne){const et=this,wt=et.shadowRoot&&Ve,Et=me.call(et,!!wt&&Ne);if(!wt&&Ne){let sn,cn,Yt=0;const En=["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(;Yt!et.childNodes[Yt][Nn]),sn&&(Et.__appendChild?Et.__appendChild(sn.cloneNode(!0)):Et.appendChild(sn.cloneNode(!0))),cn&&Et.appendChild(et.childNodes[Yt].cloneNode(!0))}return Et}},ne=z=>{z.__appendChild=z.appendChild,z.appendChild=function(me){const Ne=me["s-sn"]=Fr(me),et=Or(this.childNodes,Ne,this.tagName);if(et){const wt=zr(et,Ne),Et=wt[wt.length-1],Yt=ye(Et.parentNode,me,Et.nextSibling);return pe(this),Yt}return this.__appendChild(me)}},Te=z=>{z.__removeChild=z.removeChild,z.removeChild=function(me){if(me&&typeof me["s-sn"]<"u"){const Ne=Or(this.childNodes,me["s-sn"],this.tagName);if(Ne){const wt=zr(Ne,me["s-sn"]).find(Et=>Et===me);if(wt)return wt.remove(),void pe(this)}}return this.__removeChild(me)}},Ge=z=>{const me=z.prepend;z.prepend=function(...Ne){Ne.forEach(et=>{"string"==typeof et&&(et=this.ownerDocument.createTextNode(et));const wt=et["s-sn"]=Fr(et),Et=Or(this.childNodes,wt,this.tagName);if(Et){const Yt=document.createTextNode("");Yt["s-nr"]=et,Et["s-cr"].parentNode.__appendChild(Yt),et["s-ol"]=Yt;const cn=zr(Et,wt)[0];return ye(cn.parentNode,et,cn.nextSibling)}return 1===et.nodeType&&et.getAttribute("slot")&&(et.hidden=!0),me.call(this,et)})}},At=z=>{z.append=function(...me){me.forEach(Ne=>{"string"==typeof Ne&&(Ne=this.ownerDocument.createTextNode(Ne)),this.appendChild(Ne)})}},Jt=z=>{const me=z.insertAdjacentHTML;z.insertAdjacentHTML=function(Ne,et){if("afterbegin"!==Ne&&"beforeend"!==Ne)return me.call(this,Ne,et);const wt=this.ownerDocument.createElement("_");let Et;if(wt.innerHTML=et,"afterbegin"===Ne)for(;Et=wt.firstChild;)this.prepend(Et);else if("beforeend"===Ne)for(;Et=wt.firstChild;)this.append(Et)}},ln=z=>{z.insertAdjacentText=function(me,Ne){this.insertAdjacentHTML(me,Ne)}},or=z=>{const me=z.insertAdjacentElement;z.insertAdjacentElement=function(Ne,et){return"afterbegin"!==Ne&&"beforeend"!==Ne?me.call(this,Ne,et):"afterbegin"===Ne?(this.prepend(et),et):("beforeend"===Ne&&this.append(et),et)}},Un=z=>{const me=Object.getOwnPropertyDescriptor(Node.prototype,"textContent");Object.defineProperty(z,"__textContent",me),Object.defineProperty(z,"textContent",{get(){return" "+On(this.childNodes).map(wt=>{var Et,Yt;const sn=[];let cn=wt.nextSibling;for(;cn&&cn["s-sn"]===wt["s-sn"];)(3===cn.nodeType||1===cn.nodeType)&&sn.push(null!=(Yt=null==(Et=cn.textContent)?void 0:Et.trim())?Yt:""),cn=cn.nextSibling;return sn.filter(En=>""!==En).join(" ")}).filter(wt=>""!==wt).join(" ")+" "},set(Ne){On(this.childNodes).forEach(wt=>{let Et=wt.nextSibling;for(;Et&&Et["s-sn"]===wt["s-sn"];){const Yt=Et;Et=Et.nextSibling,Yt.remove()}if(""===wt["s-sn"]){const Yt=this.ownerDocument.createTextNode(Ne);Yt["s-sn"]="",ye(wt.parentElement,Yt,wt.nextSibling)}else wt.remove()})}})},xr=(z,me)=>{class Ne extends Array{item(wt){return this[wt]}}if(8&me.$flags$){const et=z.__lookupGetter__("childNodes");Object.defineProperty(z,"children",{get(){return this.childNodes.map(wt=>1===wt.nodeType)}}),Object.defineProperty(z,"childElementCount",{get:()=>z.children.length}),Object.defineProperty(z,"childNodes",{get(){const wt=et.call(this);if(!(1&W.$flags$)&&2&mi(this).$flags$){const Et=new Ne;for(let Yt=0;Yt{const me=[];for(const Ne of Array.from(z))Ne["s-sr"]&&me.push(Ne),me.push(...On(Ne.childNodes));return me},Fr=z=>z["s-sn"]||1===z.nodeType&&z.getAttribute("slot")||"",Or=(z,me,Ne)=>{let wt,et=0;for(;et{const Ne=[z];for(;(z=z.nextSibling)&&z["s-sn"]===me;)Ne.push(z);return Ne},Tr=(z,me={})=>{var Ne;const wt=[],Et=me.exclude||[],Yt=bt.customElements,sn=he.head,cn=sn.querySelector("meta[charset]"),En=he.createElement("style"),Nn=[],jn=he.querySelectorAll(`[${xe}]`);let lr,Vn=!0,qr=0;for(Object.assign(W,me),W.$resourcesUrl$=new URL(me.resourcesUrl||"./",he.baseURI).href,W.$flags$|=2;qr{br[1].map(wi=>{var Ni;const ki={$flags$:wi[0],$tagName$:wi[1],$members$:wi[2],$listeners$:wi[3]};4&ki.$flags$&&(jr=!0),ki.$members$=wi[2],ki.$listeners$=wi[3],ki.$attrsToReflect$=[],ki.$watchers$=null!=(Ni=wi[4])?Ni:{};const ho=ki.$tagName$,as=class extends HTMLElement{constructor(Ur){super(Ur),Hn(Ur=this,ki),1&ki.$flags$&&Ur.attachShadow({mode:"open",delegatesFocus:!!(16&ki.$flags$)})}connectedCallback(){lr&&(clearTimeout(lr),lr=null),Vn?Nn.push(this):W.jmp(()=>(z=>{if(!(1&W.$flags$)){const me=mi(z),Ne=me.$cmpMeta$,et=()=>{};if(1&me.$flags$)Gn(z,me,Ne.$listeners$),null!=me&&me.$lazyInstance$?pr(me.$lazyInstance$):null!=me&&me.$onReadyPromise$&&me.$onReadyPromise$.then(()=>pr(me.$lazyInstance$));else{let wt;if(me.$flags$|=1,wt=z.getAttribute(Fe),wt){if(1&Ne.$flags$){const Et=yr(z.shadowRoot,Ne,z.getAttribute("s-mode"));z.classList.remove(Et+"-h",Et+"-s")}((z,me,Ne,et)=>{const Et=z.shadowRoot,Yt=[],cn=Et?[]:null,En=et.$vnode$=on(me,null);W.$orgLocNodes$||Le(he.body,W.$orgLocNodes$=new Map),z[Fe]=Ne,z.removeAttribute(Fe),ve(En,Yt,[],cn,z,z,Ne),Yt.map(Nn=>{const jn=Nn.$hostId$+"."+Nn.$nodeId$,lr=W.$orgLocNodes$.get(jn),Vn=Nn.$elm$;lr&&Ve&&""===lr["s-en"]&&lr.parentNode.insertBefore(Vn,lr.nextSibling),Et||(Vn["s-hn"]=me,lr&&(Vn["s-ol"]=lr,Vn["s-ol"]["s-nr"]=Vn)),W.$orgLocNodes$.delete(jn)}),Et&&cn.map(Nn=>{Nn&&Et.appendChild(Nn)})})(z,Ne.$tagName$,wt,me)}wt||12&Ne.$flags$&&te(z);{let Et=z;for(;Et=Et.parentNode||Et.host;)if(1===Et.nodeType&&Et.hasAttribute("s-id")&&Et["s-p"]||Et["s-p"]){ct(me,me.$ancestorComponent$=Et);break}}Ne.$members$&&Object.entries(Ne.$members$).map(([Et,[Yt]])=>{if(31&Yt&&z.hasOwnProperty(Et)){const sn=z[Et];delete z[Et],z[Et]=sn}}),gi(z,me,Ne)}et()}})(this))}disconnectedCallback(){W.jmp(()=>ze(this))}componentOnReady(){return mi(this).$onReadyPromise$}};2&ki.$flags$&&((z,me)=>{x(z),ne(z),At(z),Ge(z),or(z),Jt(z),ln(z),Un(z),xr(z,me),Te(z)})(as.prototype,ki),ki.$lazyBundleId$=br[0],!Et.includes(ho)&&!Yt.get(ho)&&(wt.push(ho),Yt.define(ho,Ri(as,ki,1)))})}),wt.length>0&&(jr&&(En.textContent+=vn),En.textContent+=wt+"{visibility:hidden}.hydrated{visibility:inherit}",En.innerHTML.length)){En.setAttribute("data-styles","");const br=null!=(Ne=W.$nonce$)?Ne:Ze(he);null!=br&&En.setAttribute("nonce",br),sn.insertBefore(En,cn?cn.nextSibling:sn.firstChild)}Vn=!1,Nn.length?Nn.map(br=>br.connectedCallback()):W.jmp(()=>lr=setTimeout(Ar,30))},Gn=(z,me,Ne,et)=>{Ne&&Ne.map(([wt,Et,Yt])=>{const sn=ai(z,wt),cn=Cr(me,Yt),En=li(wt);W.ael(sn,Et,cn,En),(me.$rmListeners$=me.$rmListeners$||[]).push(()=>W.rel(sn,Et,cn,En))})},Cr=(z,me)=>Ne=>{try{256&z.$flags$?z.$lazyInstance$[me](Ne):(z.$queuedListeners$=z.$queuedListeners$||[]).push([me,Ne])}catch(et){ui(et)}},ai=(z,me)=>4&me?he:8&me?bt:16&me?he.body:z,li=z=>ot?{passive:!!(1&z),capture:!!(2&z)}:!!(2&z),Lr=new WeakMap,mi=z=>Lr.get(z),Wn=(z,me)=>Lr.set(me.$lazyInstance$=z,me),Hn=(z,me)=>{const Ne={$flags$:0,$hostElement$:z,$cmpMeta$:me,$instanceValues$:new Map};return Ne.$onInstancePromise$=new Promise(et=>Ne.$onInstanceResolve$=et),Ne.$onReadyPromise$=new Promise(et=>Ne.$onReadyResolve$=et),z["s-p"]=[],z["s-rc"]=[],Gn(z,Ne,me.$listeners$),Lr.set(z,Ne)},ao=(z,me)=>me in z,ui=(z,me)=>(0,console.error)(z,me),Ci=new Map,Eo=(z,me,Ne)=>{const et=z.$tagName$.replace(/-/g,"_"),wt=z.$lazyBundleId$,Et=Ci.get(wt);return Et?Et[et]:S(8996)(`./${wt}.entry.js`).then(Yt=>(Ci.set(wt,Yt),Yt[et]),ui)},No=new Map,oi=[],bt=typeof window<"u"?window:{},he=bt.document||{head:{}},W={$flags$:0,$resourcesUrl$:"",jmp:z=>z(),raf:z=>requestAnimationFrame(z),ael:(z,me,Ne,et)=>z.addEventListener(me,Ne,et),rel:(z,me,Ne,et)=>z.removeEventListener(me,Ne,et),ce:(z,me)=>new CustomEvent(z,me)},$e=z=>{Object.assign(W,z)},Ve=!0,ot=(()=>{let z=!1;try{he.addEventListener("e",null,Object.defineProperty({},"passive",{get(){z=!0}}))}catch{}return z})(),In=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch{}return!1})(),Fn=!1,b=[],j=[],re=(z,me)=>Ne=>{z.push(Ne),Fn||(Fn=!0,me&&4&W.$flags$?it(Ee):W.raf(Ee))},P=z=>{for(let me=0;me{P(b),P(j),(Fn=b.length>0)&&W.raf(Ee)},it=z=>Promise.resolve(void 0).then(z),sr=re(b,!1),ni=re(j,!0)},2725:(Tn,gt,S)=>{"use strict";S.d(gt,{b:()=>Xe,c:()=>Je,d:()=>Se,e:()=>tt,g:()=>we,l:()=>vn,s:()=>on,t:()=>_t,w:()=>Nt});var h=S(467),c=S(3664),Z=S(9672),Oe=S(4929),U=S(4920);const Xe="ionViewWillLeave",Je="ionViewDidLeave",Se="ionViewWillUnload",Ce=H=>{H.tabIndex=-1,H.focus()},Qe=H=>null!==H.offsetParent,qe="ion-last-focus",St_saveViewFocus=fe=>{if(c.c.get("focusManagerPriority",!1)){const ve=document.activeElement;null!==ve&&null!=fe&&fe.contains(ve)&&ve.setAttribute(qe,"true")}},St_setViewFocus=fe=>{const se=c.c.get("focusManagerPriority",!1);if(Array.isArray(se)&&!fe.contains(document.activeElement)){const ve=fe.querySelector(`[${qe}]`);if(ve&&Qe(ve))return void Ce(ve);for(const Le of se)switch(Le){case"content":const De=fe.querySelector('main, [role="main"]');if(De&&Qe(De))return void Ce(De);break;case"heading":const Wt=fe.querySelector('h1, [role="heading"][aria-level="1"]');if(Wt&&Qe(Wt))return void Ce(Wt);break;case"banner":const dn=fe.querySelector('header, [role="banner"]');if(dn&&Qe(dn))return void Ce(dn);break;default:(0,Oe.p)(`Unrecognized focus manager priority value ${Le}`)}Ce(fe)}},_t=H=>new Promise((X,fe)=>{(0,Z.w)(()=>{Tt(H),yt(H).then(se=>{se.animation&&se.animation.destroy(),mt(H),X(se)},se=>{mt(H),fe(se)})})}),Tt=H=>{const X=H.enteringEl,fe=H.leavingEl;St_saveViewFocus(fe),dt(X,fe,H.direction),H.showGoBack?X.classList.add("can-go-back"):X.classList.remove("can-go-back"),on(X,!1),X.style.setProperty("pointer-events","none"),fe&&(on(fe,!1),fe.style.setProperty("pointer-events","none"))},yt=function(){var H=(0,h.A)(function*(X){const fe=yield Me(X);return fe&&Z.B.isBrowser?Ye(fe,X):ge(X)});return function(fe){return H.apply(this,arguments)}}(),mt=H=>{const X=H.enteringEl,fe=H.leavingEl;X.classList.remove("ion-page-invisible"),X.style.removeProperty("pointer-events"),void 0!==fe&&(fe.classList.remove("ion-page-invisible"),fe.style.removeProperty("pointer-events")),St_setViewFocus(X)},Me=function(){var H=(0,h.A)(function*(X){return X.leavingEl&&X.animated&&0!==X.duration?X.animationBuilder?X.animationBuilder:"ios"===X.mode?(yield Promise.resolve().then(S.bind(S,8454))).iosTransitionAnimation:(yield Promise.resolve().then(S.bind(S,3314))).mdTransitionAnimation:void 0});return function(fe){return H.apply(this,arguments)}}(),Ye=function(){var H=(0,h.A)(function*(X,fe){yield Ue(fe,!0);const se=X(fe.baseEl,fe);at(fe.enteringEl,fe.leavingEl);const ve=yield xe(se,fe);return fe.progressCallback&&fe.progressCallback(void 0),ve&&Rt(fe.enteringEl,fe.leavingEl),{hasCompleted:ve,animation:se}});return function(fe,se){return H.apply(this,arguments)}}(),ge=function(){var H=(0,h.A)(function*(X){const fe=X.enteringEl,se=X.leavingEl,ve=c.c.get("focusManagerPriority",!1);return yield Ue(X,ve),at(fe,se),Rt(fe,se),{hasCompleted:!0}});return function(fe){return H.apply(this,arguments)}}(),Ue=function(){var H=(0,h.A)(function*(X,fe){(void 0!==X.deepWait?X.deepWait:fe)&&(yield Promise.all([tt(X.enteringEl),tt(X.leavingEl)])),yield Fe(X.viewIsReady,X.enteringEl)});return function(fe,se){return H.apply(this,arguments)}}(),Fe=function(){var H=(0,h.A)(function*(X,fe){X&&(yield X(fe))});return function(fe,se){return H.apply(this,arguments)}}(),xe=(H,X)=>{const fe=X.progressCallback,se=new Promise(ve=>{H.onFinish(Le=>ve(1===Le))});return fe?(H.progressStart(!0),fe(H)):H.play(),se},at=(H,X)=>{vn(X,Xe),vn(H,"ionViewWillEnter")},Rt=(H,X)=>{vn(H,"ionViewDidEnter"),vn(X,Je)},vn=(H,X)=>{if(H){const fe=new CustomEvent(X,{bubbles:!1,cancelable:!1});H.dispatchEvent(fe)}},Nt=()=>new Promise(H=>(0,U.r)(()=>(0,U.r)(()=>H()))),tt=function(){var H=(0,h.A)(function*(X){const fe=X;if(fe){if(null!=fe.componentOnReady){if(null!=(yield fe.componentOnReady()))return}else if(null!=fe.__registerHost)return void(yield new Promise(ve=>(0,U.r)(ve)));yield Promise.all(Array.from(fe.children).map(tt))}});return function(fe){return H.apply(this,arguments)}}(),on=(H,X)=>{X?(H.setAttribute("aria-hidden","true"),H.classList.add("ion-page-hidden")):(H.hidden=!1,H.removeAttribute("aria-hidden"),H.classList.remove("ion-page-hidden"))},dt=(H,X,fe)=>{void 0!==H&&(H.style.zIndex="back"===fe?"99":"101"),void 0!==X&&(X.style.zIndex="100")},we=H=>H.classList.contains("ion-page")?H:H.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")||H},4929:(Tn,gt,S)=>{"use strict";S.d(gt,{a:()=>c,b:()=>Z,p:()=>h});const h=(Oe,...U)=>console.warn(`[Ionic Warning]: ${Oe}`,...U),c=(Oe,...U)=>console.error(`[Ionic Error]: ${Oe}`,...U),Z=(Oe,...U)=>console.error(`<${Oe.tagName.toLowerCase()}> must be used inside ${U.join(" or ")}.`)},8476:(Tn,gt,S)=>{"use strict";S.d(gt,{d:()=>c,w:()=>h});const h=typeof window<"u"?window:void 0,c=typeof document<"u"?document:void 0},3664:(Tn,gt,S)=>{"use strict";S.d(gt,{a:()=>Ce,b:()=>on,c:()=>Z,i:()=>dt});var h=S(9672);class c{constructor(){this.m=new Map}reset(H){this.m=new Map(Object.entries(H))}get(H,X){const fe=this.m.get(H);return void 0!==fe?fe:X}getBoolean(H,X=!1){const fe=this.m.get(H);return void 0===fe?X:"string"==typeof fe?"true"===fe:!!fe}getNumber(H,X){const fe=parseFloat(this.m.get(H));return isNaN(fe)?void 0!==X?X:NaN:fe}set(H,X){this.m.set(H,X)}}const Z=new c,Je="ionic-persist-config",Ce=(we,H)=>("string"==typeof we&&(H=we,we=void 0),(we=>Qe(we))(we).includes(H)),Qe=(we=window)=>{if(typeof we>"u")return[];we.Ionic=we.Ionic||{};let H=we.Ionic.platforms;return null==H&&(H=we.Ionic.platforms=Ze(we),H.forEach(X=>we.document.documentElement.classList.add(`plt-${X}`))),H},Ze=we=>{const H=Z.get("platform");return Object.keys(Nt).filter(X=>{const fe=null==H?void 0:H[X];return"function"==typeof fe?fe(we):Nt[X](we)})},ht=we=>!!(Rt(we,/iPad/i)||Rt(we,/Macintosh/i)&&Me(we)),_t=we=>Rt(we,/android|sink/i),Me=we=>vn(we,"(any-pointer:coarse)"),ge=we=>Ue(we)||Fe(we),Ue=we=>!!(we.cordova||we.phonegap||we.PhoneGap),Fe=we=>{const H=we.Capacitor;return!(null==H||!H.isNative)},Rt=(we,H)=>H.test(we.navigator.userAgent),vn=(we,H)=>{var X;return null===(X=we.matchMedia)||void 0===X?void 0:X.call(we,H).matches},Nt={ipad:ht,iphone:we=>Rt(we,/iPhone/i),ios:we=>Rt(we,/iPhone|iPod/i)||ht(we),android:_t,phablet:we=>{const H=we.innerWidth,X=we.innerHeight,fe=Math.min(H,X),se=Math.max(H,X);return fe>390&&fe<520&&se>620&&se<800},tablet:we=>{const H=we.innerWidth,X=we.innerHeight,fe=Math.min(H,X),se=Math.max(H,X);return ht(we)||(we=>_t(we)&&!Rt(we,/mobile/i))(we)||fe>460&&fe<820&&se>780&&se<1400},cordova:Ue,capacitor:Fe,electron:we=>Rt(we,/electron/i),pwa:we=>{var H;return!!(null!==(H=we.matchMedia)&&void 0!==H&&H.call(we,"(display-mode: standalone)").matches||we.navigator.standalone)},mobile:Me,mobileweb:we=>Me(we)&&!ge(we),desktop:we=>!Me(we),hybrid:ge};let tt;const on=we=>we&&(0,h.g)(we)||tt,dt=(we={})=>{if(typeof window>"u")return;const H=window.document,X=window,fe=X.Ionic=X.Ionic||{},se={};we._ael&&(se.ael=we._ael),we._rel&&(se.rel=we._rel),we._ce&&(se.ce=we._ce),(0,h.a)(se);const ve=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(we=>{try{const H=we.sessionStorage.getItem(Je);return null!==H?JSON.parse(H):{}}catch{return{}}})(X)),{persistConfig:!1}),fe.config),(we=>{const H={};return we.location.search.slice(1).split("&").map(X=>X.split("=")).map(([X,fe])=>{try{return[decodeURIComponent(X),decodeURIComponent(fe)]}catch{return["",""]}}).filter(([X])=>((we,H)=>we.substr(0,H.length)===H)(X,"ionic:")).map(([X,fe])=>[X.slice(6),fe]).forEach(([X,fe])=>{H[X]=fe}),H})(X)),we);Z.reset(ve),Z.getBoolean("persistConfig")&&((we,H)=>{try{we.sessionStorage.setItem(Je,JSON.stringify(H))}catch{return}})(X,ve),Qe(X),fe.config=Z,fe.mode=tt=Z.get("mode",H.documentElement.getAttribute("mode")||(Ce(X,"ios")?"ios":"md")),Z.set("mode",tt),H.documentElement.setAttribute("mode",tt),H.documentElement.classList.add(tt),Z.getBoolean("_testing")&&Z.set("animated",!1);const Le=Wt=>{var dn;return null===(dn=Wt.tagName)||void 0===dn?void 0:dn.startsWith("ION-")},De=Wt=>["ios","md"].includes(Wt);(0,h.c)(Wt=>{for(;Wt;){const dn=Wt.mode||Wt.getAttribute("mode");if(dn){if(De(dn))return dn;Le(Wt)&&console.warn('Invalid ionic mode: "'+dn+'", expected: "ios" or "md"')}Wt=Wt.parentElement}return tt})}},8454:(Tn,gt,S)=>{"use strict";S.r(gt),S.d(gt,{iosTransitionAnimation:()=>qe,shadow:()=>Xe});var h=S(9986),c=S(2725);S(8476),S(3664),S(9672);const oe=Dt=>document.querySelector(`${Dt}.ion-cloned-element`),Xe=Dt=>Dt.shadowRoot||Dt,Je=Dt=>{const St="ION-TABS"===Dt.tagName?Dt:Dt.querySelector("ion-tabs"),_t="ion-content ion-header:not(.header-collapse-condense-inactive) ion-title.title-large";if(null!=St){const Tt=St.querySelector("ion-tab:not(.tab-hidden), .ion-page:not(.ion-page-hidden)");return null!=Tt?Tt.querySelector(_t):null}return Dt.querySelector(_t)},Se=(Dt,St)=>{const _t="ION-TABS"===Dt.tagName?Dt:Dt.querySelector("ion-tabs");let Tt=[];if(null!=_t){const yt=_t.querySelector("ion-tab:not(.tab-hidden), .ion-page:not(.ion-page-hidden)");null!=yt&&(Tt=yt.querySelectorAll("ion-buttons"))}else Tt=Dt.querySelectorAll("ion-buttons");for(const yt of Tt){const mt=yt.closest("ion-header"),Me=mt&&!mt.classList.contains("header-collapse-condense-inactive"),Ye=yt.querySelector("ion-back-button"),ge=yt.classList.contains("buttons-collapse");if(null!==Ye&&("start"===yt.slot||""===yt.slot)&&(ge&&Me&&St||!ge))return Ye}return null},Qe=(Dt,St,_t,Tt,yt,mt,Me,Ye,ge)=>{var Ue,Fe;const xe=St?`calc(100% - ${yt.right+4}px)`:yt.left-4+"px",at=St?"right":"left",Rt=St?"left":"right",vn=St?"right":"left";let Nt=1,tt=1,on=`scale(${tt})`;const dt="scale(1)";if(mt&&Me){const zt=(null===(Ue=mt.textContent)||void 0===Ue?void 0:Ue.trim())===(null===(Fe=Ye.textContent)||void 0===Fe?void 0:Fe.trim());Nt=ge.width/Me.width,tt=(ge.height-ht)/Me.height,on=zt?`scale(${Nt}, ${tt})`:`scale(${tt})`}const H=Xe(Tt).querySelector("ion-icon").getBoundingClientRect(),X=St?H.width/2-(H.right-yt.right)+"px":yt.left-H.width/2+"px",fe=St?`-${window.innerWidth-yt.right}px`:`${yt.left}px`,se=`${ge.top}px`,ve=`${yt.top}px`,Wt=_t?[{offset:0,transform:`translate3d(${fe}, ${ve}, 0)`},{offset:1,transform:`translate3d(${X}, ${se}, 0)`}]:[{offset:0,transform:`translate3d(${X}, ${se}, 0)`},{offset:1,transform:`translate3d(${fe}, ${ve}, 0)`}],rn=_t?[{offset:0,opacity:1,transform:dt},{offset:1,opacity:0,transform:on}]:[{offset:0,opacity:0,transform:on},{offset:1,opacity:1,transform:dt}],nr=_t?[{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,h.c)(),yr=(0,h.c)(),rr=(0,h.c)(),ir=oe("ion-back-button"),nt=Xe(ir).querySelector(".button-text"),Ot=Xe(ir).querySelector("ion-icon");ir.text=Tt.text,ir.mode=Tt.mode,ir.icon=Tt.icon,ir.color=Tt.color,ir.disabled=Tt.disabled,ir.style.setProperty("display","block"),ir.style.setProperty("position","fixed"),yr.addElement(Ot),er.addElement(nt),rr.addElement(ir),rr.beforeStyles({position:"absolute",top:"0px",[vn]:"0px"}).beforeAddWrite(()=>{Tt.style.setProperty("display","none"),ir.style.setProperty(at,xe)}).afterAddWrite(()=>{Tt.style.setProperty("display",""),ir.style.setProperty("display","none"),ir.style.removeProperty(at)}).keyframes(Wt),er.beforeStyles({"transform-origin":`${at} top`}).keyframes(rn),yr.beforeStyles({"transform-origin":`${Rt} center`}).keyframes(nr),Dt.addAnimation([er,yr,rr])},Ze=(Dt,St,_t,Tt,yt,mt,Me,Ye,ge)=>{var Ue,Fe;const xe=St?"right":"left",at=St?`calc(100% - ${yt.right}px)`:`${yt.left}px`,vn=`${yt.top}px`;let tt=St?`-${window.innerWidth-Me.right-8}px`:`${Me.x+8}px`,on=.5;const dt="scale(1)";let we=`scale(${on})`;if(Ye&&ge){tt=St?`-${window.innerWidth-ge.right-8}px`:ge.x-8+"px";const dn=(null===(Ue=Ye.textContent)||void 0===Ue?void 0:Ue.trim())===(null===(Fe=Tt.textContent)||void 0===Fe?void 0:Fe.trim());on=ge.height/(mt.height-ht),we=dn?`scale(${ge.width/mt.width}, ${on})`:`scale(${on})`}const fe=Me.top+Me.height/2-yt.height*on/2+"px",Le=_t?[{offset:0,opacity:0,transform:`translate3d(${tt}, ${fe}, 0) ${we}`},{offset:.1,opacity:0},{offset:1,opacity:1,transform:`translate3d(0px, ${vn}, 0) ${dt}`}]:[{offset:0,opacity:.99,transform:`translate3d(0px, ${vn}, 0) ${dt}`},{offset:.6,opacity:0},{offset:1,opacity:0,transform:`translate3d(${tt}, ${fe}, 0) ${we}`}],De=oe("ion-title"),Wt=(0,h.c)();De.innerText=Tt.innerText,De.size=Tt.size,De.color=Tt.color,Wt.addElement(De),Wt.beforeStyles({"transform-origin":`${xe} top`,height:`${yt.height}px`,display:"",position:"relative",[xe]:at}).beforeAddWrite(()=>{Tt.style.setProperty("opacity","0")}).afterAddWrite(()=>{Tt.style.setProperty("opacity",""),De.style.setProperty("display","none")}).keyframes(Le),Dt.addAnimation(Wt)},qe=(Dt,St)=>{var _t;try{const Tt="cubic-bezier(0.32,0.72,0,1)",yt="opacity",mt="transform",Me="0%",ge="rtl"===Dt.ownerDocument.dir,Ue=ge?"-99.5%":"99.5%",Fe=ge?"33%":"-33%",xe=St.enteringEl,at=St.leavingEl,Rt="back"===St.direction,vn=xe.querySelector(":scope > ion-content"),Nt=xe.querySelectorAll(":scope > ion-header > *:not(ion-toolbar), :scope > ion-footer > *"),tt=xe.querySelectorAll(":scope > ion-header > ion-toolbar"),on=(0,h.c)(),dt=(0,h.c)();if(on.addElement(xe).duration((null!==(_t=St.duration)&&void 0!==_t?_t:0)||540).easing(St.easing||Tt).fill("both").beforeRemoveClass("ion-page-invisible"),at&&null!=Dt){const fe=(0,h.c)();fe.addElement(Dt),on.addAnimation(fe)}if(vn||0!==tt.length||0!==Nt.length?(dt.addElement(vn),dt.addElement(Nt)):dt.addElement(xe.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")),on.addAnimation(dt),Rt?dt.beforeClearStyles([yt]).fromTo("transform",`translateX(${Fe})`,`translateX(${Me})`).fromTo(yt,.8,1):dt.beforeClearStyles([yt]).fromTo("transform",`translateX(${Ue})`,`translateX(${Me})`),vn){const fe=Xe(vn).querySelector(".transition-effect");if(fe){const se=fe.querySelector(".transition-cover"),ve=fe.querySelector(".transition-shadow"),Le=(0,h.c)(),De=(0,h.c)(),Wt=(0,h.c)();Le.addElement(fe).beforeStyles({opacity:"1",display:"block"}).afterStyles({opacity:"",display:""}),De.addElement(se).beforeClearStyles([yt]).fromTo(yt,0,.1),Wt.addElement(ve).beforeClearStyles([yt]).fromTo(yt,.03,.7),Le.addAnimation([De,Wt]),dt.addAnimation([Le])}}const we=xe.querySelector("ion-header.header-collapse-condense"),{forward:H,backward:X}=((Dt,St,_t,Tt,yt)=>{const mt=Se(Tt,_t),Me=Je(yt),Ye=Je(Tt),ge=Se(yt,_t),Ue=null!==mt&&null!==Me&&!_t,Fe=null!==Ye&&null!==ge&&_t;if(Ue){const xe=Me.getBoundingClientRect(),at=mt.getBoundingClientRect(),Rt=Xe(mt).querySelector(".button-text"),vn=null==Rt?void 0:Rt.getBoundingClientRect(),tt=Xe(Me).querySelector(".toolbar-title").getBoundingClientRect();Ze(Dt,St,_t,Me,xe,tt,at,Rt,vn),Qe(Dt,St,_t,mt,at,Rt,vn,Me,tt)}else if(Fe){const xe=Ye.getBoundingClientRect(),at=ge.getBoundingClientRect(),Rt=Xe(ge).querySelector(".button-text"),vn=null==Rt?void 0:Rt.getBoundingClientRect(),tt=Xe(Ye).querySelector(".toolbar-title").getBoundingClientRect();Ze(Dt,St,_t,Ye,xe,tt,at,Rt,vn),Qe(Dt,St,_t,ge,at,Rt,vn,Ye,tt)}return{forward:Ue,backward:Fe}})(on,ge,Rt,xe,at);if(tt.forEach(fe=>{const se=(0,h.c)();se.addElement(fe),on.addAnimation(se);const ve=(0,h.c)();ve.addElement(fe.querySelector("ion-title"));const Le=(0,h.c)(),De=Array.from(fe.querySelectorAll("ion-buttons,[menuToggle]")),Wt=fe.closest("ion-header"),dn=null==Wt?void 0:Wt.classList.contains("header-collapse-condense-inactive");let Kt;Kt=De.filter(Rt?er=>{const yr=er.classList.contains("buttons-collapse");return yr&&!dn||!yr}:er=>!er.classList.contains("buttons-collapse")),Le.addElement(Kt);const rn=(0,h.c)();rn.addElement(fe.querySelectorAll(":scope > *:not(ion-title):not(ion-buttons):not([menuToggle])"));const Ln=(0,h.c)();Ln.addElement(Xe(fe).querySelector(".toolbar-background"));const Zn=(0,h.c)(),nr=fe.querySelector("ion-back-button");if(nr&&Zn.addElement(nr),se.addAnimation([ve,Le,rn,Ln,Zn]),Le.fromTo(yt,.01,1),rn.fromTo(yt,.01,1),Rt)dn||ve.fromTo("transform",`translateX(${Fe})`,`translateX(${Me})`).fromTo(yt,.01,1),rn.fromTo("transform",`translateX(${Fe})`,`translateX(${Me})`),Zn.fromTo(yt,.01,1);else if(we||ve.fromTo("transform",`translateX(${Ue})`,`translateX(${Me})`).fromTo(yt,.01,1),rn.fromTo("transform",`translateX(${Ue})`,`translateX(${Me})`),Ln.beforeClearStyles([yt,"transform"]),(null==Wt?void 0:Wt.translucent)?Ln.fromTo("transform",ge?"translateX(-100%)":"translateX(100%)","translateX(0px)"):Ln.fromTo(yt,.01,"var(--opacity)"),H||Zn.fromTo(yt,.01,1),nr&&!H){const yr=(0,h.c)();yr.addElement(Xe(nr).querySelector(".button-text")).fromTo("transform",ge?"translateX(-100px)":"translateX(100px)","translateX(0px)"),se.addAnimation(yr)}}),at){const fe=(0,h.c)(),se=at.querySelector(":scope > ion-content"),ve=at.querySelectorAll(":scope > ion-header > ion-toolbar"),Le=at.querySelectorAll(":scope > ion-header > *:not(ion-toolbar), :scope > ion-footer > *");if(se||0!==ve.length||0!==Le.length?(fe.addElement(se),fe.addElement(Le)):fe.addElement(at.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")),on.addAnimation(fe),Rt){fe.beforeClearStyles([yt]).fromTo("transform",`translateX(${Me})`,ge?"translateX(-100%)":"translateX(100%)");const De=(0,c.g)(at);on.afterAddWrite(()=>{"normal"===on.getDirection()&&De.style.setProperty("display","none")})}else fe.fromTo("transform",`translateX(${Me})`,`translateX(${Fe})`).fromTo(yt,1,.8);if(se){const De=Xe(se).querySelector(".transition-effect");if(De){const Wt=De.querySelector(".transition-cover"),dn=De.querySelector(".transition-shadow"),Kt=(0,h.c)(),rn=(0,h.c)(),Ln=(0,h.c)();Kt.addElement(De).beforeStyles({opacity:"1",display:"block"}).afterStyles({opacity:"",display:""}),rn.addElement(Wt).beforeClearStyles([yt]).fromTo(yt,.1,0),Ln.addElement(dn).beforeClearStyles([yt]).fromTo(yt,.7,.03),Kt.addAnimation([rn,Ln]),fe.addAnimation([Kt])}}ve.forEach(De=>{const Wt=(0,h.c)();Wt.addElement(De);const dn=(0,h.c)();dn.addElement(De.querySelector("ion-title"));const Kt=(0,h.c)(),rn=De.querySelectorAll("ion-buttons,[menuToggle]"),Ln=De.closest("ion-header"),Zn=null==Ln?void 0:Ln.classList.contains("header-collapse-condense-inactive"),nr=Array.from(rn).filter(Ot=>{const zt=Ot.classList.contains("buttons-collapse");return zt&&!Zn||!zt});Kt.addElement(nr);const er=(0,h.c)(),yr=De.querySelectorAll(":scope > *:not(ion-title):not(ion-buttons):not([menuToggle])");yr.length>0&&er.addElement(yr);const rr=(0,h.c)();rr.addElement(Xe(De).querySelector(".toolbar-background"));const ir=(0,h.c)(),nt=De.querySelector("ion-back-button");if(nt&&ir.addElement(nt),Wt.addAnimation([dn,Kt,er,ir,rr]),on.addAnimation(Wt),ir.fromTo(yt,.99,0),Kt.fromTo(yt,.99,0),er.fromTo(yt,.99,0),Rt){if(Zn||dn.fromTo("transform",`translateX(${Me})`,ge?"translateX(-100%)":"translateX(100%)").fromTo(yt,.99,0),er.fromTo("transform",`translateX(${Me})`,ge?"translateX(-100%)":"translateX(100%)"),rr.beforeClearStyles([yt,"transform"]),(null==Ln?void 0:Ln.translucent)?rr.fromTo("transform","translateX(0px)",ge?"translateX(-100%)":"translateX(100%)"):rr.fromTo(yt,"var(--opacity)",0),nt&&!X){const zt=(0,h.c)();zt.addElement(Xe(nt).querySelector(".button-text")).fromTo("transform",`translateX(${Me})`,`translateX(${(ge?-124:124)+"px"})`),Wt.addAnimation(zt)}}else Zn||dn.fromTo("transform",`translateX(${Me})`,`translateX(${Fe})`).fromTo(yt,.99,0).afterClearStyles([mt,yt]),er.fromTo("transform",`translateX(${Me})`,`translateX(${Fe})`).afterClearStyles([mt,yt]),ir.afterClearStyles([yt]),dn.afterClearStyles([yt]),Kt.afterClearStyles([yt])})}return on}catch(Tt){throw Tt}},ht=10},3314:(Tn,gt,S)=>{"use strict";S.r(gt),S.d(gt,{mdTransitionAnimation:()=>ue});var h=S(9986),c=S(2725);S(8476),S(3664),S(9672);const ue=(oe,Xe)=>{var Je,Se,Ce;const qe="back"===Xe.direction,Dt=Xe.leavingEl,St=(0,c.g)(Xe.enteringEl),_t=St.querySelector("ion-toolbar"),Tt=(0,h.c)();if(Tt.addElement(St).fill("both").beforeRemoveClass("ion-page-invisible"),qe?Tt.duration((null!==(Je=Xe.duration)&&void 0!==Je?Je:0)||200).easing("cubic-bezier(0.47,0,0.745,0.715)"):Tt.duration((null!==(Se=Xe.duration)&&void 0!==Se?Se:0)||280).easing("cubic-bezier(0.36,0.66,0.04,1)").fromTo("transform","translateY(40px)","translateY(0px)").fromTo("opacity",.01,1),_t){const yt=(0,h.c)();yt.addElement(_t),Tt.addAnimation(yt)}if(Dt&&qe){Tt.duration((null!==(Ce=Xe.duration)&&void 0!==Ce?Ce:0)||200).easing("cubic-bezier(0.47,0,0.745,0.715)");const yt=(0,h.c)();yt.addElement((0,c.g)(Dt)).onFinish(mt=>{1===mt&&yt.elements.length>0&&yt.elements[0].style.setProperty("display","none")}).fromTo("transform","translateY(0px)","translateY(40px)").fromTo("opacity",1,0),Tt.addAnimation(yt)}return Tt}},6002:(Tn,gt,S)=>{"use strict";S.d(gt,{B:()=>rn,F:()=>ir,G:()=>Ln,O:()=>Zn,a:()=>St,b:()=>_t,c:()=>Me,d:()=>nr,e:()=>er,f:()=>H,g:()=>fe,h:()=>Le,i:()=>Wt,j:()=>ge,k:()=>Ue,l:()=>Tt,m:()=>yt,n:()=>Se,o:()=>dt,q:()=>Ce,s:()=>Kt});var h=S(467),c=S(8476),Z=S(4920),Oe=S(6411),U=S(3664),ue=S(8621),oe=S(1970),Xe=S(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])',Se=(nt,Ot)=>{const zt=nt.querySelector(Je);Qe(zt,null!=Ot?Ot:nt)},Ce=(nt,Ot)=>{const zt=Array.from(nt.querySelectorAll(Je));Qe(zt.length>0?zt[zt.length-1]:null,null!=Ot?Ot:nt)},Qe=(nt,Ot)=>{let zt=nt;const pn=null==nt?void 0:nt.shadowRoot;pn&&(zt=pn.querySelector(Je)||nt),zt?(0,Z.f)(zt):Ot.focus()};let Ze=0,qe=0;const ht=new WeakMap,Dt=nt=>({create:Ot=>Fe(nt,Ot),dismiss:(Ot,zt,pn)=>Nt(document,Ot,zt,nt,pn),getTop:()=>(0,h.A)(function*(){return dt(document,nt)})()}),St=Dt("ion-alert"),_t=Dt("ion-action-sheet"),Tt=Dt("ion-loading"),yt=Dt("ion-modal"),Me=Dt("ion-popover"),ge=nt=>{typeof document<"u"&&vn(document);const Ot=Ze++;nt.overlayIndex=Ot},Ue=nt=>(nt.hasAttribute("id")||(nt.id="ion-overlay-"+ ++qe),nt.id),Fe=(nt,Ot)=>typeof window<"u"&&typeof window.customElements<"u"?window.customElements.whenDefined(nt).then(()=>{const zt=document.createElement(nt);return zt.classList.add("overlay-hidden"),Object.assign(zt,Object.assign(Object.assign({},Ot),{hasController:!0})),se(document).appendChild(zt),new Promise(pn=>(0,Z.c)(zt,pn))}):Promise.resolve(),at=(nt,Ot)=>{let zt=nt;const pn=null==nt?void 0:nt.shadowRoot;pn&&(zt=pn.querySelector(Je)||nt),zt?(0,Z.f)(zt):Ot.focus()},vn=nt=>{0===Ze&&(Ze=1,nt.addEventListener("focus",Ot=>{((nt,Ot)=>{const zt=dt(Ot,"ion-alert,ion-action-sheet,ion-loading,ion-modal,ion-picker-legacy,ion-popover"),pn=nt.target;zt&&pn&&!zt.classList.contains(ir)&&(zt.shadowRoot?(()=>{if(zt.contains(pn))zt.lastFocus=pn;else if("ION-TOAST"===pn.tagName)at(zt.lastFocus,zt);else{const Mn=zt.lastFocus;Se(zt),Mn===Ot.activeElement&&Ce(zt),zt.lastFocus=Ot.activeElement}})():(()=>{if(zt===pn)zt.lastFocus=void 0;else if("ION-TOAST"===pn.tagName)at(zt.lastFocus,zt);else{const Mn=(0,Z.g)(zt);if(!Mn.contains(pn))return;const xn=Mn.querySelector(".ion-overlay-wrapper");if(!xn)return;if(xn.contains(pn)||pn===Mn.querySelector("ion-backdrop"))zt.lastFocus=pn;else{const mn=zt.lastFocus;Se(xn,zt),mn===Ot.activeElement&&Ce(xn,zt),zt.lastFocus=Ot.activeElement}}})())})(Ot,nt)},!0),nt.addEventListener("ionBackButton",Ot=>{const zt=dt(nt);null!=zt&&zt.backdropDismiss&&Ot.detail.register(Oe.OVERLAY_BACK_BUTTON_PRIORITY,()=>{zt.dismiss(void 0,rn)})}),(0,Oe.shouldUseCloseWatcher)()||nt.addEventListener("keydown",Ot=>{if("Escape"===Ot.key){const zt=dt(nt);null!=zt&&zt.backdropDismiss&&zt.dismiss(void 0,rn)}}))},Nt=(nt,Ot,zt,pn,gn)=>{const Sr=dt(nt,pn,gn);return Sr?Sr.dismiss(Ot,zt):Promise.reject("overlay does not exist")},on=(nt,Ot)=>((nt,Ot)=>(void 0===Ot&&(Ot="ion-alert,ion-action-sheet,ion-loading,ion-modal,ion-picker-legacy,ion-popover,ion-toast"),Array.from(nt.querySelectorAll(Ot)).filter(zt=>zt.overlayIndex>0)))(nt,Ot).filter(zt=>!(nt=>nt.classList.contains("overlay-hidden"))(zt)),dt=(nt,Ot,zt)=>{const pn=on(nt,Ot);return void 0===zt?pn[pn.length-1]:pn.find(gn=>gn.id===zt)},we=(nt=!1)=>{const zt=se(document).querySelector("ion-router-outlet, ion-nav, #ion-view-container-root");zt&&(nt?zt.setAttribute("aria-hidden","true"):zt.removeAttribute("aria-hidden"))},H=function(){var nt=(0,h.A)(function*(Ot,zt,pn,gn,Sr){var Mn,xn;if(Ot.presented)return;we(!0),document.body.classList.add(oe.B),yr(Ot.el),Ot.presented=!0,Ot.willPresent.emit(),null===(Mn=Ot.willPresentShorthand)||void 0===Mn||Mn.emit();const mn=(0,U.b)(Ot),en=Ot.enterAnimation?Ot.enterAnimation:U.c.get(zt,"ios"===mn?pn:gn);(yield ve(Ot,en,Ot.el,Sr))&&(Ot.didPresent.emit(),null===(xn=Ot.didPresentShorthand)||void 0===xn||xn.emit()),"ION-TOAST"!==Ot.el.tagName&&X(Ot.el),Ot.keyboardClose&&(null===document.activeElement||!Ot.el.contains(document.activeElement))&&Ot.el.focus(),Ot.el.removeAttribute("aria-hidden")});return function(zt,pn,gn,Sr,Mn){return nt.apply(this,arguments)}}(),X=function(){var nt=(0,h.A)(function*(Ot){let zt=document.activeElement;if(!zt)return;const pn=null==zt?void 0:zt.shadowRoot;pn&&(zt=pn.querySelector(Je)||zt),yield Ot.onDidDismiss(),(null===document.activeElement||document.activeElement===document.body)&&zt.focus()});return function(zt){return nt.apply(this,arguments)}}(),fe=function(){var nt=(0,h.A)(function*(Ot,zt,pn,gn,Sr,Mn,xn){var mn,en;if(!Ot.presented)return!1;void 0!==c.d&&1===on(c.d).length&&(we(!1),document.body.classList.remove(oe.B)),Ot.presented=!1;try{Ot.el.style.setProperty("pointer-events","none"),Ot.willDismiss.emit({data:zt,role:pn}),null===(mn=Ot.willDismissShorthand)||void 0===mn||mn.emit({data:zt,role:pn});const Ir=(0,U.b)(Ot),Nr=Ot.leaveAnimation?Ot.leaveAnimation:U.c.get(gn,"ios"===Ir?Sr:Mn);pn!==Ln&&(yield ve(Ot,Nr,Ot.el,xn)),Ot.didDismiss.emit({data:zt,role:pn}),null===(en=Ot.didDismissShorthand)||void 0===en||en.emit({data:zt,role:pn}),(ht.get(Ot)||[]).forEach(Dr=>Dr.destroy()),ht.delete(Ot),Ot.el.classList.add("overlay-hidden"),Ot.el.style.removeProperty("pointer-events"),void 0!==Ot.el.lastFocus&&(Ot.el.lastFocus=void 0)}catch(Ir){console.error(Ir)}return Ot.el.remove(),rr(),!0});return function(zt,pn,gn,Sr,Mn,xn,mn){return nt.apply(this,arguments)}}(),se=nt=>nt.querySelector("ion-app")||nt.body,ve=function(){var nt=(0,h.A)(function*(Ot,zt,pn,gn){pn.classList.remove("overlay-hidden");const Mn=zt(Ot.el,gn);(!Ot.animated||!U.c.getBoolean("animated",!0))&&Mn.duration(0),Ot.keyboardClose&&Mn.beforeAddWrite(()=>{const mn=pn.ownerDocument.activeElement;null!=mn&&mn.matches("input,ion-input, ion-textarea")&&mn.blur()});const xn=ht.get(Ot)||[];return ht.set(Ot,[...xn,Mn]),yield Mn.play(),!0});return function(zt,pn,gn,Sr){return nt.apply(this,arguments)}}(),Le=(nt,Ot)=>{let zt;const pn=new Promise(gn=>zt=gn);return De(nt,Ot,gn=>{zt(gn.detail)}),pn},De=(nt,Ot,zt)=>{const pn=gn=>{(0,Z.b)(nt,Ot,pn),zt(gn)};(0,Z.a)(nt,Ot,pn)},Wt=nt=>"cancel"===nt||nt===rn,dn=nt=>nt(),Kt=(nt,Ot)=>{if("function"==typeof nt)return U.c.get("_zoneGate",dn)(()=>{try{return nt(Ot)}catch(pn){throw pn}})},rn="backdrop",Ln="gesture",Zn=39,nr=nt=>{let zt,Ot=!1;const pn=(0,ue.C)(),gn=(xn=!1)=>{if(zt&&!xn)return{delegate:zt,inline:Ot};const{el:mn,hasController:en,delegate:Er}=nt;return Ot=null!==mn.parentNode&&!en,zt=Ot?Er||pn:Er,{inline:Ot,delegate:zt}};return{attachViewToDom:function(){var xn=(0,h.A)(function*(mn){const{delegate:en}=gn(!0);if(en)return yield en.attachViewToDom(nt.el,mn);const{hasController:Er}=nt;if(Er&&void 0!==mn)throw new Error("framework delegate is missing");return null});return function(en){return xn.apply(this,arguments)}}(),removeViewFromDom:()=>{const{delegate:xn}=gn();xn&&void 0!==nt.el&&xn.removeViewFromDom(nt.el.parentElement,nt.el)}}},er=()=>{let nt;const Ot=()=>{nt&&(nt(),nt=void 0)};return{addClickListener:(pn,gn)=>{Ot();const Sr=void 0!==gn?document.getElementById(gn):null;Sr?nt=((xn,mn)=>{const en=()=>{mn.present()};return xn.addEventListener("click",en),()=>{xn.removeEventListener("click",en)}})(Sr,pn):(0,Xe.p)(`A trigger element with the ID "${gn}" was not found in the DOM. The trigger element must be in the DOM when the "trigger" property is set on an overlay component.`,pn)},removeClickListener:Ot}},yr=nt=>{var Ot;if(void 0===c.d)return;const zt=on(c.d);for(let pn=zt.length-1;pn>=0;pn--){const gn=zt[pn],Sr=null!==(Ot=zt[pn+1])&&void 0!==Ot?Ot:nt;(Sr.hasAttribute("aria-hidden")||"ION-TOAST"!==Sr.tagName)&&gn.setAttribute("aria-hidden","true")}},rr=()=>{if(void 0===c.d)return;const nt=on(c.d);for(let Ot=nt.length-1;Ot>=0;Ot--){const zt=nt[Ot];if(zt.removeAttribute("aria-hidden"),"ION-TOAST"!==zt.tagName)break}},ir="ion-disable-focus-trap"},63:(Tn,gt,S)=>{"use strict";var h=S(345),c=S(4438),Z=S(7650),Oe=S(2872),U=S(7863),ue=S(177);function oe(De,Wt){if(1&De){const dn=c.RV6();c.j41(0,"ion-item",6),c.bIt("click",function(){c.eBV(dn);const rn=c.XpG().$implicit,Ln=c.XpG();return c.Njj(Ln.navigate(rn))}),c.nrm(1,"ion-icon",7),c.j41(2,"ion-label",8),c.EFF(3),c.k0s()()}if(2&De){const dn=c.XpG().$implicit;c.R7$(),c.Y8G("name",dn.icon),c.R7$(2),c.JRh(dn.title)}}function Xe(De,Wt){if(1&De&&(c.j41(0,"ion-item",9),c.nrm(1,"ion-icon",7),c.j41(2,"ion-label",8),c.EFF(3),c.k0s()()),2&De){const dn=c.XpG().$implicit;c.Y8G("routerLink",dn.url),c.R7$(),c.Y8G("name",dn.icon),c.R7$(2),c.JRh(dn.title)}}function Je(De,Wt){if(1&De&&(c.j41(0,"ion-menu-toggle",5),c.DNE(1,oe,4,2,"ion-item")(2,Xe,4,3),c.k0s()),2&De){const dn=Wt.$implicit;c.R7$(),c.vxM(1,dn.params?1:2)}}let Se=(()=>{var De;class Wt{constructor(Kt,rn){this.router=Kt,this.menuController=rn,this.menuItems=[{title:"Home",url:"/home",icon:"home"},{title:"Model The Product",url:"/model-product",icon:"cube"},{title:"Latency Test",url:"/latency-chooser",icon:"pulse"},{title:"Trace Test",url:"/trace-chooser",icon:"globe"},{title:"CPU Usage",url:"/flame-graph-for",params:{usage_type:"cpu"},icon:"stats-chart"},{title:"Memory Usage",url:"/flame-graph-for",params:{usage_type:"memory_usage"},icon:"swap-horizontal"},{title:"Software Testing",url:"/software-testing",icon:"flask"},{title:"My Team",url:"/myteam",icon:"people"}]}ngOnInit(){this.router.events.subscribe(Kt=>{Kt instanceof Z.wF&&(Kt.urlAfterRedirects.includes("/login")||Kt.urlAfterRedirects.includes("/register")?this.menuController.enable(!1):this.menuController.enable(!0))})}navigate(Kt){this.router.navigateByUrl("/",{skipLocationChange:!0}).then(()=>{this.router.navigate([Kt.url],{queryParams:Kt.params||{}})})}}return(De=Wt).\u0275fac=function(Kt){return new(Kt||De)(c.rXU(Z.Ix),c.rXU(U._t))},De.\u0275cmp=c.VBU({type:De,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,"click"],["slot","start",3,"name"],["color","primary"],[3,"routerLink"]],template:function(Kt,rn){1&Kt&&(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,Je,3,1,"ion-menu-toggle",3),c.k0s()()(),c.nrm(10,"ion-router-outlet",4),c.k0s()()),2&Kt&&(c.R7$(9),c.Y8G("ngForOf",rn.menuItems))},dependencies:[ue.Sq,U.U1,U.W9,U.eU,U.iq,U.uz,U.he,U.nf,U.oS,U.cA,U.HP,U.BC,U.ai,U.Rg,U.N7,Z.Wk]}),Wt})();var Ce=S(9842),Qe=S(8737),Ze=S(1203),qe=S(6354),ht=S(6697);S(2214);const St=(0,qe.T)(De=>!!De);let _t=(()=>{var De;class Wt{constructor(Kt,rn){(0,Ce.A)(this,"router",void 0),(0,Ce.A)(this,"auth",void 0),(0,Ce.A)(this,"canActivate",(Ln,Zn)=>{const nr=Ln.data.authGuardPipe||(()=>St);return(0,Qe.kQ)(this.auth).pipe((0,ht.s)(1),nr(Ln,Zn),(0,qe.T)(er=>"boolean"==typeof er?er:Array.isArray(er)?this.router.createUrlTree(er):this.router.parseUrl(er)))}),this.router=Kt,this.auth=rn}}return De=Wt,(0,Ce.A)(Wt,"\u0275fac",function(Kt){return new(Kt||De)(c.KVO(Z.Ix),c.KVO(Qe.Nj))}),(0,Ce.A)(Wt,"\u0275prov",c.jDH({token:De,factory:De.\u0275fac,providedIn:"any"})),Wt})();const Tt=De=>({canActivate:[_t],data:{authGuardPipe:De}}),at=()=>{return De=[""],(0,Ze.F)(St,(0,qe.T)(Wt=>Wt||De));var De},Rt=()=>{return De=["home"],(0,Ze.F)(St,(0,qe.T)(Wt=>Wt&&De||!0));var De},vn=[{path:"",redirectTo:"login",pathMatch:"full"},{path:"home",loadChildren:()=>Promise.all([S.e(2076),S.e(2757)]).then(S.bind(S,2757)).then(De=>De.HomePageModule),...Tt(at)},{path:"register",loadChildren:()=>Promise.all([S.e(2076),S.e(5995)]).then(S.bind(S,5995)).then(De=>De.RegisterPageModule),...Tt(Rt)},{path:"login",loadChildren:()=>Promise.all([S.e(2076),S.e(6536)]).then(S.bind(S,6536)).then(De=>De.LoginPageModule),...Tt(Rt)},{path:"myteam",loadChildren:()=>Promise.all([S.e(2076),S.e(839)]).then(S.bind(S,839)).then(De=>De.MyteamPageModule),...Tt(at)},{path:"model-product",loadChildren:()=>Promise.all([S.e(2076),S.e(4914)]).then(S.bind(S,4914)).then(De=>De.ModelProductPageModule),...Tt(at)},{path:"new-product",loadChildren:()=>Promise.all([S.e(2076),S.e(3646)]).then(S.bind(S,3646)).then(De=>De.NewProductPageModule),...Tt(at)},{path:"view-product",loadChildren:()=>Promise.all([S.e(2076),S.e(1313)]).then(S.bind(S,1313)).then(De=>De.ViewProductPageModule),...Tt(at)},{path:"show-map",loadChildren:()=>Promise.all([S.e(9273),S.e(2076),S.e(9070)]).then(S.bind(S,9070)).then(De=>De.ShowMapPageModule),...Tt(at)},{path:"latency-test",loadChildren:()=>Promise.all([S.e(2076),S.e(9456)]).then(S.bind(S,9456)).then(De=>De.LatencyTestPageModule),...Tt(at)},{path:"latency-chooser",loadChildren:()=>Promise.all([S.e(2076),S.e(8886)]).then(S.bind(S,8886)).then(De=>De.LatencyChooserPageModule),...Tt(at)},{path:"latency-results",loadChildren:()=>Promise.all([S.e(2076),S.e(8984)]).then(S.bind(S,8984)).then(De=>De.LatencyResultsPageModule),...Tt(at)},{path:"graph-latency",loadChildren:()=>Promise.all([S.e(2076),S.e(6975)]).then(S.bind(S,6975)).then(De=>De.GraphPageModule),...Tt(at)},{path:"trace-chooser",loadChildren:()=>Promise.all([S.e(2076),S.e(4839)]).then(S.bind(S,4839)).then(De=>De.TraceChooserPageModule),...Tt(at)},{path:"trace-test",loadChildren:()=>Promise.all([S.e(2076),S.e(3451)]).then(S.bind(S,3451)).then(De=>De.TraceTestPageModule),...Tt(at)},{path:"trace-results",loadChildren:()=>Promise.all([S.e(2076),S.e(7762)]).then(S.bind(S,7762)).then(De=>De.TraceResultsPageModule),...Tt(at)},{path:"show-map-trace",loadChildren:()=>Promise.all([S.e(9273),S.e(2076),S.e(8566)]).then(S.bind(S,8566)).then(De=>De.ShowMapTracePageModule),...Tt(at)},{path:"graph-data-for",loadChildren:()=>Promise.all([S.e(2076),S.e(1081)]).then(S.bind(S,1081)).then(De=>De.GraphDataForPageModule),...Tt(at)},{path:"graph-trace",loadChildren:()=>Promise.all([S.e(2076),S.e(6303)]).then(S.bind(S,6303)).then(De=>De.GraphTracePageModule),...Tt(at)},{path:"ai",loadChildren:()=>S.e(4348).then(S.bind(S,4348)).then(De=>De.AiPageModule),...Tt(at)},{path:"flame-graph",loadChildren:()=>Promise.all([S.e(2076),S.e(5054)]).then(S.bind(S,5054)).then(De=>De.FlameGraphPageModule),...Tt(at)},{path:"flame-graph-for",loadChildren:()=>Promise.all([S.e(2076),S.e(5399)]).then(S.bind(S,5399)).then(De=>De.FlameGraphForPageModule),...Tt(at)},{path:"flame-graph-date",loadChildren:()=>Promise.all([S.e(2076),S.e(6480)]).then(S.bind(S,6480)).then(De=>De.FlameGraphDatePageModule),...Tt(at)},{path:"flame-graph-compare",loadChildren:()=>Promise.all([S.e(2076),S.e(3100)]).then(S.bind(S,3100)).then(De=>De.FlameGraphComparePageModule),...Tt(at)},{path:"software-testing",loadChildren:()=>Promise.all([S.e(2076),S.e(1015)]).then(S.bind(S,1015)).then(De=>De.SoftwareTestingPageModule),...Tt(at)},{path:"software-testing-chooser",loadChildren:()=>Promise.all([S.e(2076),S.e(8711)]).then(S.bind(S,8711)).then(De=>De.SoftwareTestingChooserPageModule),...Tt(at)},{path:"create-system-test",loadChildren:()=>Promise.all([S.e(2076),S.e(1143)]).then(S.bind(S,1143)).then(De=>De.CreateSystemTestPageModule),...Tt(at)},{path:"execute-system-test",loadChildren:()=>Promise.all([S.e(2076),S.e(1010)]).then(S.bind(S,1010)).then(De=>De.ExecuteSystemTestPageModule),...Tt(at)},{path:"board",loadChildren:()=>Promise.all([S.e(2076),S.e(4443)]).then(S.bind(S,4443)).then(De=>De.BoardPageModule),...Tt(at)},{path:"render-restart",loadChildren:()=>S.e(2580).then(S.bind(S,2580)).then(De=>De.RenderRestartPageModule),...Tt(at)},{path:"view-history-system-test",loadChildren:()=>Promise.all([S.e(2076),S.e(9546)]).then(S.bind(S,9546)).then(De=>De.ViewHistorySystemTestPageModule)},{path:"view-system-test",loadChildren:()=>Promise.all([S.e(2076),S.e(7056)]).then(S.bind(S,7056)).then(De=>De.ViewSystemTestPageModule)}];let Nt=(()=>{var De;class Wt{}return(De=Wt).\u0275fac=function(Kt){return new(Kt||De)},De.\u0275mod=c.$C({type:De}),De.\u0275inj=c.G2t({imports:[Z.iI.forRoot(vn,{preloadingStrategy:Z.Kp}),Z.iI]}),Wt})();var tt=S(7440),on=S(4262);const dt_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 we=S(1626),H=S(2820),X=S(9032),fe=S(7616),se=S(9549);let ve=(()=>{var De;class Wt{}return(De=Wt).\u0275fac=function(Kt){return new(Kt||De)},De.\u0275mod=c.$C({type:De,bootstrap:[Se]}),De.\u0275inj=c.G2t({providers:[{provide:Z.b,useClass:Oe.jM},(0,tt.MW)(()=>(0,tt.Wp)(dt_firebase)),(0,on.hV)(()=>(0,on.aU)()),(0,Qe._q)(()=>(0,Qe.xI)()),(0,X.cw)(()=>(0,X.v_)()),we.q1,(0,H.eS)()],imports:[h.Bb,U.bv.forRoot(),Nt,we.q1,H.sN.forRoot({echarts:()=>S.e(9697).then(S.bind(S,9697))}),fe.n,se.y2.forRoot()]}),Wt})();(0,c.SmG)(),h.sG().bootstrapModule(ve).catch(De=>console.log(De))},4412:(Tn,gt,S)=>{"use strict";S.d(gt,{t:()=>c});var h=S(1413);class c extends h.B{constructor(Oe){super(),this._value=Oe}get value(){return this.getValue()}_subscribe(Oe){const U=super._subscribe(Oe);return!U.closed&&Oe.next(this._value),U}getValue(){const{hasError:Oe,thrownError:U,_value:ue}=this;if(Oe)throw U;return this._throwIfClosed(),ue}next(Oe){super.next(this._value=Oe)}}},1985:(Tn,gt,S)=>{"use strict";S.d(gt,{c:()=>Xe});var h=S(7707),c=S(8359),Z=S(3494),Oe=S(1203),U=S(1026),ue=S(8071),oe=S(9786);let Xe=(()=>{class Qe{constructor(qe){qe&&(this._subscribe=qe)}lift(qe){const ht=new Qe;return ht.source=this,ht.operator=qe,ht}subscribe(qe,ht,Dt){const St=function Ce(Qe){return Qe&&Qe instanceof h.vU||function Se(Qe){return Qe&&(0,ue.T)(Qe.next)&&(0,ue.T)(Qe.error)&&(0,ue.T)(Qe.complete)}(Qe)&&(0,c.Uv)(Qe)}(qe)?qe:new h.Ms(qe,ht,Dt);return(0,oe.Y)(()=>{const{operator:_t,source:Tt}=this;St.add(_t?_t.call(St,Tt):Tt?this._subscribe(St):this._trySubscribe(St))}),St}_trySubscribe(qe){try{return this._subscribe(qe)}catch(ht){qe.error(ht)}}forEach(qe,ht){return new(ht=Je(ht))((Dt,St)=>{const _t=new h.Ms({next:Tt=>{try{qe(Tt)}catch(yt){St(yt),_t.unsubscribe()}},error:St,complete:Dt});this.subscribe(_t)})}_subscribe(qe){var ht;return null===(ht=this.source)||void 0===ht?void 0:ht.subscribe(qe)}[Z.s](){return this}pipe(...qe){return(0,Oe.m)(qe)(this)}toPromise(qe){return new(qe=Je(qe))((ht,Dt)=>{let St;this.subscribe(_t=>St=_t,_t=>Dt(_t),()=>ht(St))})}}return Qe.create=Ze=>new Qe(Ze),Qe})();function Je(Qe){var Ze;return null!==(Ze=null!=Qe?Qe:U.$.Promise)&&void 0!==Ze?Ze:Promise}},2771:(Tn,gt,S)=>{"use strict";S.d(gt,{m:()=>Z});var h=S(1413),c=S(6129);class Z extends h.B{constructor(U=1/0,ue=1/0,oe=c.U){super(),this._bufferSize=U,this._windowTime=ue,this._timestampProvider=oe,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=ue===1/0,this._bufferSize=Math.max(1,U),this._windowTime=Math.max(1,ue)}next(U){const{isStopped:ue,_buffer:oe,_infiniteTimeWindow:Xe,_timestampProvider:Je,_windowTime:Se}=this;ue||(oe.push(U),!Xe&&oe.push(Je.now()+Se)),this._trimBuffer(),super.next(U)}_subscribe(U){this._throwIfClosed(),this._trimBuffer();const ue=this._innerSubscribe(U),{_infiniteTimeWindow:oe,_buffer:Xe}=this,Je=Xe.slice();for(let Se=0;Se{"use strict";S.d(gt,{B:()=>oe});var h=S(1985),c=S(8359);const Oe=(0,S(1853).L)(Je=>function(){Je(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var U=S(7908),ue=S(9786);let oe=(()=>{class Je extends h.c{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(Ce){const Qe=new Xe(this,this);return Qe.operator=Ce,Qe}_throwIfClosed(){if(this.closed)throw new Oe}next(Ce){(0,ue.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const Qe of this.currentObservers)Qe.next(Ce)}})}error(Ce){(0,ue.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=Ce;const{observers:Qe}=this;for(;Qe.length;)Qe.shift().error(Ce)}})}complete(){(0,ue.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:Ce}=this;for(;Ce.length;)Ce.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var Ce;return(null===(Ce=this.observers)||void 0===Ce?void 0:Ce.length)>0}_trySubscribe(Ce){return this._throwIfClosed(),super._trySubscribe(Ce)}_subscribe(Ce){return this._throwIfClosed(),this._checkFinalizedStatuses(Ce),this._innerSubscribe(Ce)}_innerSubscribe(Ce){const{hasError:Qe,isStopped:Ze,observers:qe}=this;return Qe||Ze?c.Kn:(this.currentObservers=null,qe.push(Ce),new c.yU(()=>{this.currentObservers=null,(0,U.o)(qe,Ce)}))}_checkFinalizedStatuses(Ce){const{hasError:Qe,thrownError:Ze,isStopped:qe}=this;Qe?Ce.error(Ze):qe&&Ce.complete()}asObservable(){const Ce=new h.c;return Ce.source=this,Ce}}return Je.create=(Se,Ce)=>new Xe(Se,Ce),Je})();class Xe extends oe{constructor(Se,Ce){super(),this.destination=Se,this.source=Ce}next(Se){var Ce,Qe;null===(Qe=null===(Ce=this.destination)||void 0===Ce?void 0:Ce.next)||void 0===Qe||Qe.call(Ce,Se)}error(Se){var Ce,Qe;null===(Qe=null===(Ce=this.destination)||void 0===Ce?void 0:Ce.error)||void 0===Qe||Qe.call(Ce,Se)}complete(){var Se,Ce;null===(Ce=null===(Se=this.destination)||void 0===Se?void 0:Se.complete)||void 0===Ce||Ce.call(Se)}_subscribe(Se){var Ce,Qe;return null!==(Qe=null===(Ce=this.source)||void 0===Ce?void 0:Ce.subscribe(Se))&&void 0!==Qe?Qe:c.Kn}}},7707:(Tn,gt,S)=>{"use strict";S.d(gt,{Ms:()=>Dt,vU:()=>Qe});var h=S(8071),c=S(8359),Z=S(1026),Oe=S(5334),U=S(5343);const ue=Je("C",void 0,void 0);function Je(mt,Me,Ye){return{kind:mt,value:Me,error:Ye}}var Se=S(9270),Ce=S(9786);class Qe extends c.yU{constructor(Me){super(),this.isStopped=!1,Me?(this.destination=Me,(0,c.Uv)(Me)&&Me.add(this)):this.destination=yt}static create(Me,Ye,ge){return new Dt(Me,Ye,ge)}next(Me){this.isStopped?Tt(function Xe(mt){return Je("N",mt,void 0)}(Me),this):this._next(Me)}error(Me){this.isStopped?Tt(function oe(mt){return Je("E",void 0,mt)}(Me),this):(this.isStopped=!0,this._error(Me))}complete(){this.isStopped?Tt(ue,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 Ze=Function.prototype.bind;function qe(mt,Me){return Ze.call(mt,Me)}class ht{constructor(Me){this.partialObserver=Me}next(Me){const{partialObserver:Ye}=this;if(Ye.next)try{Ye.next(Me)}catch(ge){St(ge)}}error(Me){const{partialObserver:Ye}=this;if(Ye.error)try{Ye.error(Me)}catch(ge){St(ge)}else St(Me)}complete(){const{partialObserver:Me}=this;if(Me.complete)try{Me.complete()}catch(Ye){St(Ye)}}}class Dt extends Qe{constructor(Me,Ye,ge){let Ue;if(super(),(0,h.T)(Me)||!Me)Ue={next:null!=Me?Me:void 0,error:null!=Ye?Ye:void 0,complete:null!=ge?ge:void 0};else{let Fe;this&&Z.$.useDeprecatedNextContext?(Fe=Object.create(Me),Fe.unsubscribe=()=>this.unsubscribe(),Ue={next:Me.next&&qe(Me.next,Fe),error:Me.error&&qe(Me.error,Fe),complete:Me.complete&&qe(Me.complete,Fe)}):Ue=Me}this.destination=new ht(Ue)}}function St(mt){Z.$.useDeprecatedSynchronousErrorHandling?(0,Ce.l)(mt):(0,Oe.m)(mt)}function Tt(mt,Me){const{onStoppedNotification:Ye}=Z.$;Ye&&Se.f.setTimeout(()=>Ye(mt,Me))}const yt={closed:!0,next:U.l,error:function _t(mt){throw mt},complete:U.l}},8359:(Tn,gt,S)=>{"use strict";S.d(gt,{Kn:()=>ue,yU:()=>U,Uv:()=>oe});var h=S(8071);const Z=(0,S(1853).L)(Je=>function(Ce){Je(this),this.message=Ce?`${Ce.length} errors occurred during unsubscription:\n${Ce.map((Qe,Ze)=>`${Ze+1}) ${Qe.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=Ce});var Oe=S(7908);class U{constructor(Se){this.initialTeardown=Se,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let Se;if(!this.closed){this.closed=!0;const{_parentage:Ce}=this;if(Ce)if(this._parentage=null,Array.isArray(Ce))for(const qe of Ce)qe.remove(this);else Ce.remove(this);const{initialTeardown:Qe}=this;if((0,h.T)(Qe))try{Qe()}catch(qe){Se=qe instanceof Z?qe.errors:[qe]}const{_finalizers:Ze}=this;if(Ze){this._finalizers=null;for(const qe of Ze)try{Xe(qe)}catch(ht){Se=null!=Se?Se:[],ht instanceof Z?Se=[...Se,...ht.errors]:Se.push(ht)}}if(Se)throw new Z(Se)}}add(Se){var Ce;if(Se&&Se!==this)if(this.closed)Xe(Se);else{if(Se instanceof U){if(Se.closed||Se._hasParent(this))return;Se._addParent(this)}(this._finalizers=null!==(Ce=this._finalizers)&&void 0!==Ce?Ce:[]).push(Se)}}_hasParent(Se){const{_parentage:Ce}=this;return Ce===Se||Array.isArray(Ce)&&Ce.includes(Se)}_addParent(Se){const{_parentage:Ce}=this;this._parentage=Array.isArray(Ce)?(Ce.push(Se),Ce):Ce?[Ce,Se]:Se}_removeParent(Se){const{_parentage:Ce}=this;Ce===Se?this._parentage=null:Array.isArray(Ce)&&(0,Oe.o)(Ce,Se)}remove(Se){const{_finalizers:Ce}=this;Ce&&(0,Oe.o)(Ce,Se),Se instanceof U&&Se._removeParent(this)}}U.EMPTY=(()=>{const Je=new U;return Je.closed=!0,Je})();const ue=U.EMPTY;function oe(Je){return Je instanceof U||Je&&"closed"in Je&&(0,h.T)(Je.remove)&&(0,h.T)(Je.add)&&(0,h.T)(Je.unsubscribe)}function Xe(Je){(0,h.T)(Je)?Je():Je.unsubscribe()}},1026:(Tn,gt,S)=>{"use strict";S.d(gt,{$:()=>h});const h={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},4572:(Tn,gt,S)=>{"use strict";S.d(gt,{z:()=>Se});var h=S(1985),c=S(3073),Z=S(8455),Oe=S(3669),U=S(6450),ue=S(9326),oe=S(8496),Xe=S(4360),Je=S(5225);function Se(...Ze){const qe=(0,ue.lI)(Ze),ht=(0,ue.ms)(Ze),{args:Dt,keys:St}=(0,c.D)(Ze);if(0===Dt.length)return(0,Z.H)([],qe);const _t=new h.c(function Ce(Ze,qe,ht=Oe.D){return Dt=>{Qe(qe,()=>{const{length:St}=Ze,_t=new Array(St);let Tt=St,yt=St;for(let mt=0;mt{const Me=(0,Z.H)(Ze[mt],qe);let Ye=!1;Me.subscribe((0,Xe._)(Dt,ge=>{_t[mt]=ge,Ye||(Ye=!0,yt--),yt||Dt.next(ht(_t.slice()))},()=>{--Tt||Dt.complete()}))},Dt)},Dt)}}(Dt,qe,St?Tt=>(0,oe.e)(St,Tt):Oe.D));return ht?_t.pipe((0,U.I)(ht)):_t}function Qe(Ze,qe,ht){Ze?(0,Je.N)(ht,Ze,qe):qe()}},8793:(Tn,gt,S)=>{"use strict";S.d(gt,{x:()=>U});var h=S(6365),Z=S(9326),Oe=S(8455);function U(...ue){return function c(){return(0,h.U)(1)}()((0,Oe.H)(ue,(0,Z.lI)(ue)))}},983:(Tn,gt,S)=>{"use strict";S.d(gt,{w:()=>c});const c=new(S(1985).c)(U=>U.complete())},8455:(Tn,gt,S)=>{"use strict";S.d(gt,{H:()=>Me});var h=S(8750),c=S(941),Z=S(6745),ue=S(1985),Xe=S(4761),Je=S(8071),Se=S(5225);function Qe(Ye,ge){if(!Ye)throw new Error("Iterable cannot be null");return new ue.c(Ue=>{(0,Se.N)(Ue,ge,()=>{const Fe=Ye[Symbol.asyncIterator]();(0,Se.N)(Ue,ge,()=>{Fe.next().then(xe=>{xe.done?Ue.complete():Ue.next(xe.value)})},0,!0)})})}var Ze=S(5055),qe=S(9858),ht=S(7441),Dt=S(5397),St=S(7953),_t=S(591),Tt=S(5196);function Me(Ye,ge){return ge?function mt(Ye,ge){if(null!=Ye){if((0,Ze.l)(Ye))return function Oe(Ye,ge){return(0,h.Tg)(Ye).pipe((0,Z._)(ge),(0,c.Q)(ge))}(Ye,ge);if((0,ht.X)(Ye))return function oe(Ye,ge){return new ue.c(Ue=>{let Fe=0;return ge.schedule(function(){Fe===Ye.length?Ue.complete():(Ue.next(Ye[Fe++]),Ue.closed||this.schedule())})})}(Ye,ge);if((0,qe.y)(Ye))return function U(Ye,ge){return(0,h.Tg)(Ye).pipe((0,Z._)(ge),(0,c.Q)(ge))}(Ye,ge);if((0,St.T)(Ye))return Qe(Ye,ge);if((0,Dt.x)(Ye))return function Ce(Ye,ge){return new ue.c(Ue=>{let Fe;return(0,Se.N)(Ue,ge,()=>{Fe=Ye[Xe.l](),(0,Se.N)(Ue,ge,()=>{let xe,at;try{({value:xe,done:at}=Fe.next())}catch(Rt){return void Ue.error(Rt)}at?Ue.complete():Ue.next(xe)},0,!0)}),()=>(0,Je.T)(null==Fe?void 0:Fe.return)&&Fe.return()})}(Ye,ge);if((0,Tt.U)(Ye))return function yt(Ye,ge){return Qe((0,Tt.C)(Ye),ge)}(Ye,ge)}throw(0,_t.L)(Ye)}(Ye,ge):(0,h.Tg)(Ye)}},3726:(Tn,gt,S)=>{"use strict";S.d(gt,{R:()=>Se});var h=S(8750),c=S(1985),Z=S(1397),Oe=S(7441),U=S(8071),ue=S(6450);const oe=["addListener","removeListener"],Xe=["addEventListener","removeEventListener"],Je=["on","off"];function Se(ht,Dt,St,_t){if((0,U.T)(St)&&(_t=St,St=void 0),_t)return Se(ht,Dt,St).pipe((0,ue.I)(_t));const[Tt,yt]=function qe(ht){return(0,U.T)(ht.addEventListener)&&(0,U.T)(ht.removeEventListener)}(ht)?Xe.map(mt=>Me=>ht[mt](Dt,Me,St)):function Qe(ht){return(0,U.T)(ht.addListener)&&(0,U.T)(ht.removeListener)}(ht)?oe.map(Ce(ht,Dt)):function Ze(ht){return(0,U.T)(ht.on)&&(0,U.T)(ht.off)}(ht)?Je.map(Ce(ht,Dt)):[];if(!Tt&&(0,Oe.X)(ht))return(0,Z.Z)(mt=>Se(mt,Dt,St))((0,h.Tg)(ht));if(!Tt)throw new TypeError("Invalid event target");return new c.c(mt=>{const Me=(...Ye)=>mt.next(1yt(Me)})}function Ce(ht,Dt){return St=>_t=>ht[St](Dt,_t)}},8750:(Tn,gt,S)=>{"use strict";S.d(gt,{Tg:()=>Ze});var h=S(1635),c=S(7441),Z=S(9858),Oe=S(1985),U=S(5055),ue=S(7953),oe=S(591),Xe=S(5397),Je=S(5196),Se=S(8071),Ce=S(5334),Qe=S(3494);function Ze(mt){if(mt instanceof Oe.c)return mt;if(null!=mt){if((0,U.l)(mt))return function qe(mt){return new Oe.c(Me=>{const Ye=mt[Qe.s]();if((0,Se.T)(Ye.subscribe))return Ye.subscribe(Me);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(mt);if((0,c.X)(mt))return function ht(mt){return new Oe.c(Me=>{for(let Ye=0;Ye{mt.then(Ye=>{Me.closed||(Me.next(Ye),Me.complete())},Ye=>Me.error(Ye)).then(null,Ce.m)})}(mt);if((0,ue.T)(mt))return _t(mt);if((0,Xe.x)(mt))return function St(mt){return new Oe.c(Me=>{for(const Ye of mt)if(Me.next(Ye),Me.closed)return;Me.complete()})}(mt);if((0,Je.U)(mt))return function Tt(mt){return _t((0,Je.C)(mt))}(mt)}throw(0,oe.L)(mt)}function _t(mt){return new Oe.c(Me=>{(function yt(mt,Me){var Ye,ge,Ue,Fe;return(0,h.sH)(this,void 0,void 0,function*(){try{for(Ye=(0,h.xN)(mt);!(ge=yield Ye.next()).done;)if(Me.next(ge.value),Me.closed)return}catch(xe){Ue={error:xe}}finally{try{ge&&!ge.done&&(Fe=Ye.return)&&(yield Fe.call(Ye))}finally{if(Ue)throw Ue.error}}Me.complete()})})(mt,Me).catch(Ye=>Me.error(Ye))})}},7786:(Tn,gt,S)=>{"use strict";S.d(gt,{h:()=>ue});var h=S(6365),c=S(8750),Z=S(983),Oe=S(9326),U=S(8455);function ue(...oe){const Xe=(0,Oe.lI)(oe),Je=(0,Oe.R0)(oe,1/0),Se=oe;return Se.length?1===Se.length?(0,c.Tg)(Se[0]):(0,h.U)(Je)((0,U.H)(Se,Xe)):Z.w}},7673:(Tn,gt,S)=>{"use strict";S.d(gt,{of:()=>Z});var h=S(9326),c=S(8455);function Z(...Oe){const U=(0,h.lI)(Oe);return(0,c.H)(Oe,U)}},1584:(Tn,gt,S)=>{"use strict";S.d(gt,{O:()=>U});var h=S(1985),c=S(3236),Z=S(9470);function U(ue=0,oe,Xe=c.b){let Je=-1;return null!=oe&&((0,Z.m)(oe)?Xe=oe:Je=oe),new h.c(Se=>{let Ce=function Oe(ue){return ue instanceof Date&&!isNaN(ue)}(ue)?+ue-Xe.now():ue;Ce<0&&(Ce=0);let Qe=0;return Xe.schedule(function(){Se.closed||(Se.next(Qe++),0<=Je?this.schedule(void 0,Je):Se.complete())},Ce)})}},4360:(Tn,gt,S)=>{"use strict";S.d(gt,{_:()=>c});var h=S(7707);function c(Oe,U,ue,oe,Xe){return new Z(Oe,U,ue,oe,Xe)}class Z extends h.vU{constructor(U,ue,oe,Xe,Je,Se){super(U),this.onFinalize=Je,this.shouldUnsubscribe=Se,this._next=ue?function(Ce){try{ue(Ce)}catch(Qe){U.error(Qe)}}:super._next,this._error=Xe?function(Ce){try{Xe(Ce)}catch(Qe){U.error(Qe)}finally{this.unsubscribe()}}:super._error,this._complete=oe?function(){try{oe()}catch(Ce){U.error(Ce)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var U;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:ue}=this;super.unsubscribe(),!ue&&(null===(U=this.onFinalize)||void 0===U||U.call(this))}}}},274:(Tn,gt,S)=>{"use strict";S.d(gt,{H:()=>Z});var h=S(1397),c=S(8071);function Z(Oe,U){return(0,c.T)(U)?(0,h.Z)(Oe,U,1):(0,h.Z)(Oe,1)}},9901:(Tn,gt,S)=>{"use strict";S.d(gt,{U:()=>Z});var h=S(9974),c=S(4360);function Z(Oe){return(0,h.N)((U,ue)=>{let oe=!1;U.subscribe((0,c._)(ue,Xe=>{oe=!0,ue.next(Xe)},()=>{oe||ue.next(Oe),ue.complete()}))})}},3294:(Tn,gt,S)=>{"use strict";S.d(gt,{F:()=>Oe});var h=S(3669),c=S(9974),Z=S(4360);function Oe(ue,oe=h.D){return ue=null!=ue?ue:U,(0,c.N)((Xe,Je)=>{let Se,Ce=!0;Xe.subscribe((0,Z._)(Je,Qe=>{const Ze=oe(Qe);(Ce||!ue(Se,Ze))&&(Ce=!1,Se=Ze,Je.next(Qe))}))})}function U(ue,oe){return ue===oe}},5964:(Tn,gt,S)=>{"use strict";S.d(gt,{p:()=>Z});var h=S(9974),c=S(4360);function Z(Oe,U){return(0,h.N)((ue,oe)=>{let Xe=0;ue.subscribe((0,c._)(oe,Je=>Oe.call(U,Je,Xe++)&&oe.next(Je)))})}},980:(Tn,gt,S)=>{"use strict";S.d(gt,{j:()=>c});var h=S(9974);function c(Z){return(0,h.N)((Oe,U)=>{try{Oe.subscribe(U)}finally{U.add(Z)}})}},1594:(Tn,gt,S)=>{"use strict";S.d(gt,{$:()=>oe});var h=S(9350),c=S(5964),Z=S(6697),Oe=S(9901),U=S(3774),ue=S(3669);function oe(Xe,Je){const Se=arguments.length>=2;return Ce=>Ce.pipe(Xe?(0,c.p)((Qe,Ze)=>Xe(Qe,Ze,Ce)):ue.D,(0,Z.s)(1),Se?(0,Oe.U)(Je):(0,U.v)(()=>new h.G))}},6354:(Tn,gt,S)=>{"use strict";S.d(gt,{T:()=>Z});var h=S(9974),c=S(4360);function Z(Oe,U){return(0,h.N)((ue,oe)=>{let Xe=0;ue.subscribe((0,c._)(oe,Je=>{oe.next(Oe.call(U,Je,Xe++))}))})}},3703:(Tn,gt,S)=>{"use strict";S.d(gt,{u:()=>c});var h=S(6354);function c(Z){return(0,h.T)(()=>Z)}},6365:(Tn,gt,S)=>{"use strict";S.d(gt,{U:()=>Z});var h=S(1397),c=S(3669);function Z(Oe=1/0){return(0,h.Z)(c.D,Oe)}},1397:(Tn,gt,S)=>{"use strict";S.d(gt,{Z:()=>Xe});var h=S(6354),c=S(8750),Z=S(9974),Oe=S(5225),U=S(4360),oe=S(8071);function Xe(Je,Se,Ce=1/0){return(0,oe.T)(Se)?Xe((Qe,Ze)=>(0,h.T)((qe,ht)=>Se(Qe,qe,Ze,ht))((0,c.Tg)(Je(Qe,Ze))),Ce):("number"==typeof Se&&(Ce=Se),(0,Z.N)((Qe,Ze)=>function ue(Je,Se,Ce,Qe,Ze,qe,ht,Dt){const St=[];let _t=0,Tt=0,yt=!1;const mt=()=>{yt&&!St.length&&!_t&&Se.complete()},Me=ge=>_t{qe&&Se.next(ge),_t++;let Ue=!1;(0,c.Tg)(Ce(ge,Tt++)).subscribe((0,U._)(Se,Fe=>{null==Ze||Ze(Fe),qe?Me(Fe):Se.next(Fe)},()=>{Ue=!0},void 0,()=>{if(Ue)try{for(_t--;St.length&&_tYe(Fe)):Ye(Fe)}mt()}catch(Fe){Se.error(Fe)}}))};return Je.subscribe((0,U._)(Se,Me,()=>{yt=!0,mt()})),()=>{null==Dt||Dt()}}(Qe,Ze,Je,Ce)))}},941:(Tn,gt,S)=>{"use strict";S.d(gt,{Q:()=>Oe});var h=S(5225),c=S(9974),Z=S(4360);function Oe(U,ue=0){return(0,c.N)((oe,Xe)=>{oe.subscribe((0,Z._)(Xe,Je=>(0,h.N)(Xe,U,()=>Xe.next(Je),ue),()=>(0,h.N)(Xe,U,()=>Xe.complete(),ue),Je=>(0,h.N)(Xe,U,()=>Xe.error(Je),ue)))})}},9172:(Tn,gt,S)=>{"use strict";S.d(gt,{Z:()=>Oe});var h=S(8793),c=S(9326),Z=S(9974);function Oe(...U){const ue=(0,c.lI)(U);return(0,Z.N)((oe,Xe)=>{(ue?(0,h.x)(U,oe,ue):(0,h.x)(U,oe)).subscribe(Xe)})}},6745:(Tn,gt,S)=>{"use strict";S.d(gt,{_:()=>c});var h=S(9974);function c(Z,Oe=0){return(0,h.N)((U,ue)=>{ue.add(Z.schedule(()=>U.subscribe(ue),Oe))})}},5558:(Tn,gt,S)=>{"use strict";S.d(gt,{n:()=>Oe});var h=S(8750),c=S(9974),Z=S(4360);function Oe(U,ue){return(0,c.N)((oe,Xe)=>{let Je=null,Se=0,Ce=!1;const Qe=()=>Ce&&!Je&&Xe.complete();oe.subscribe((0,Z._)(Xe,Ze=>{null==Je||Je.unsubscribe();let qe=0;const ht=Se++;(0,h.Tg)(U(Ze,ht)).subscribe(Je=(0,Z._)(Xe,Dt=>Xe.next(ue?ue(Ze,Dt,ht,qe++):Dt),()=>{Je=null,Qe()}))},()=>{Ce=!0,Qe()}))})}},6697:(Tn,gt,S)=>{"use strict";S.d(gt,{s:()=>Oe});var h=S(983),c=S(9974),Z=S(4360);function Oe(U){return U<=0?()=>h.w:(0,c.N)((ue,oe)=>{let Xe=0;ue.subscribe((0,Z._)(oe,Je=>{++Xe<=U&&(oe.next(Je),U<=Xe&&oe.complete())}))})}},6977:(Tn,gt,S)=>{"use strict";S.d(gt,{Q:()=>U});var h=S(9974),c=S(4360),Z=S(8750),Oe=S(5343);function U(ue){return(0,h.N)((oe,Xe)=>{(0,Z.Tg)(ue).subscribe((0,c._)(Xe,()=>Xe.complete(),Oe.l)),!Xe.closed&&oe.subscribe(Xe)})}},8141:(Tn,gt,S)=>{"use strict";S.d(gt,{M:()=>U});var h=S(8071),c=S(9974),Z=S(4360),Oe=S(3669);function U(ue,oe,Xe){const Je=(0,h.T)(ue)||oe||Xe?{next:ue,error:oe,complete:Xe}:ue;return Je?(0,c.N)((Se,Ce)=>{var Qe;null===(Qe=Je.subscribe)||void 0===Qe||Qe.call(Je);let Ze=!0;Se.subscribe((0,Z._)(Ce,qe=>{var ht;null===(ht=Je.next)||void 0===ht||ht.call(Je,qe),Ce.next(qe)},()=>{var qe;Ze=!1,null===(qe=Je.complete)||void 0===qe||qe.call(Je),Ce.complete()},qe=>{var ht;Ze=!1,null===(ht=Je.error)||void 0===ht||ht.call(Je,qe),Ce.error(qe)},()=>{var qe,ht;Ze&&(null===(qe=Je.unsubscribe)||void 0===qe||qe.call(Je)),null===(ht=Je.finalize)||void 0===ht||ht.call(Je)}))}):Oe.D}},3774:(Tn,gt,S)=>{"use strict";S.d(gt,{v:()=>Oe});var h=S(9350),c=S(9974),Z=S(4360);function Oe(ue=U){return(0,c.N)((oe,Xe)=>{let Je=!1;oe.subscribe((0,Z._)(Xe,Se=>{Je=!0,Xe.next(Se)},()=>Je?Xe.complete():Xe.error(ue())))})}function U(){return new h.G}},6780:(Tn,gt,S)=>{"use strict";S.d(gt,{R:()=>U});var h=S(8359);class c extends h.yU{constructor(oe,Xe){super()}schedule(oe,Xe=0){return this}}const Z={setInterval(ue,oe,...Xe){const{delegate:Je}=Z;return null!=Je&&Je.setInterval?Je.setInterval(ue,oe,...Xe):setInterval(ue,oe,...Xe)},clearInterval(ue){const{delegate:oe}=Z;return((null==oe?void 0:oe.clearInterval)||clearInterval)(ue)},delegate:void 0};var Oe=S(7908);class U extends c{constructor(oe,Xe){super(oe,Xe),this.scheduler=oe,this.work=Xe,this.pending=!1}schedule(oe,Xe=0){var Je;if(this.closed)return this;this.state=oe;const Se=this.id,Ce=this.scheduler;return null!=Se&&(this.id=this.recycleAsyncId(Ce,Se,Xe)),this.pending=!0,this.delay=Xe,this.id=null!==(Je=this.id)&&void 0!==Je?Je:this.requestAsyncId(Ce,this.id,Xe),this}requestAsyncId(oe,Xe,Je=0){return Z.setInterval(oe.flush.bind(oe,this),Je)}recycleAsyncId(oe,Xe,Je=0){if(null!=Je&&this.delay===Je&&!1===this.pending)return Xe;null!=Xe&&Z.clearInterval(Xe)}execute(oe,Xe){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const Je=this._execute(oe,Xe);if(Je)return Je;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(oe,Xe){let Se,Je=!1;try{this.work(oe)}catch(Ce){Je=!0,Se=Ce||new Error("Scheduled action threw falsy error")}if(Je)return this.unsubscribe(),Se}unsubscribe(){if(!this.closed){const{id:oe,scheduler:Xe}=this,{actions:Je}=Xe;this.work=this.state=this.scheduler=null,this.pending=!1,(0,Oe.o)(Je,this),null!=oe&&(this.id=this.recycleAsyncId(Xe,oe,null)),this.delay=null,super.unsubscribe()}}}},9687:(Tn,gt,S)=>{"use strict";S.d(gt,{q:()=>Z});var h=S(6129);class c{constructor(U,ue=c.now){this.schedulerActionCtor=U,this.now=ue}schedule(U,ue=0,oe){return new this.schedulerActionCtor(this,U).schedule(oe,ue)}}c.now=h.U.now;class Z extends c{constructor(U,ue=c.now){super(U,ue),this.actions=[],this._active=!1}flush(U){const{actions:ue}=this;if(this._active)return void ue.push(U);let oe;this._active=!0;do{if(oe=U.execute(U.state,U.delay))break}while(U=ue.shift());if(this._active=!1,oe){for(;U=ue.shift();)U.unsubscribe();throw oe}}}},3236:(Tn,gt,S)=>{"use strict";S.d(gt,{E:()=>Z,b:()=>Oe});var h=S(6780);const Z=new(S(9687).q)(h.R),Oe=Z},6129:(Tn,gt,S)=>{"use strict";S.d(gt,{U:()=>h});const h={now:()=>(h.delegate||Date).now(),delegate:void 0}},9270:(Tn,gt,S)=>{"use strict";S.d(gt,{f:()=>h});const h={setTimeout(c,Z,...Oe){const{delegate:U}=h;return null!=U&&U.setTimeout?U.setTimeout(c,Z,...Oe):setTimeout(c,Z,...Oe)},clearTimeout(c){const{delegate:Z}=h;return((null==Z?void 0:Z.clearTimeout)||clearTimeout)(c)},delegate:void 0}},4761:(Tn,gt,S)=>{"use strict";S.d(gt,{l:()=>c});const c=function h(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},3494:(Tn,gt,S)=>{"use strict";S.d(gt,{s:()=>h});const h="function"==typeof Symbol&&Symbol.observable||"@@observable"},9350:(Tn,gt,S)=>{"use strict";S.d(gt,{G:()=>c});const c=(0,S(1853).L)(Z=>function(){Z(this),this.name="EmptyError",this.message="no elements in sequence"})},9326:(Tn,gt,S)=>{"use strict";S.d(gt,{R0:()=>ue,lI:()=>U,ms:()=>Oe});var h=S(8071),c=S(9470);function Z(oe){return oe[oe.length-1]}function Oe(oe){return(0,h.T)(Z(oe))?oe.pop():void 0}function U(oe){return(0,c.m)(Z(oe))?oe.pop():void 0}function ue(oe,Xe){return"number"==typeof Z(oe)?oe.pop():Xe}},3073:(Tn,gt,S)=>{"use strict";S.d(gt,{D:()=>U});const{isArray:h}=Array,{getPrototypeOf:c,prototype:Z,keys:Oe}=Object;function U(oe){if(1===oe.length){const Xe=oe[0];if(h(Xe))return{args:Xe,keys:null};if(function ue(oe){return oe&&"object"==typeof oe&&c(oe)===Z}(Xe)){const Je=Oe(Xe);return{args:Je.map(Se=>Xe[Se]),keys:Je}}}return{args:oe,keys:null}}},7908:(Tn,gt,S)=>{"use strict";function h(c,Z){if(c){const Oe=c.indexOf(Z);0<=Oe&&c.splice(Oe,1)}}S.d(gt,{o:()=>h})},1853:(Tn,gt,S)=>{"use strict";function h(c){const Oe=c(U=>{Error.call(U),U.stack=(new Error).stack});return Oe.prototype=Object.create(Error.prototype),Oe.prototype.constructor=Oe,Oe}S.d(gt,{L:()=>h})},8496:(Tn,gt,S)=>{"use strict";function h(c,Z){return c.reduce((Oe,U,ue)=>(Oe[U]=Z[ue],Oe),{})}S.d(gt,{e:()=>h})},9786:(Tn,gt,S)=>{"use strict";S.d(gt,{Y:()=>Z,l:()=>Oe});var h=S(1026);let c=null;function Z(U){if(h.$.useDeprecatedSynchronousErrorHandling){const ue=!c;if(ue&&(c={errorThrown:!1,error:null}),U(),ue){const{errorThrown:oe,error:Xe}=c;if(c=null,oe)throw Xe}}else U()}function Oe(U){h.$.useDeprecatedSynchronousErrorHandling&&c&&(c.errorThrown=!0,c.error=U)}},5225:(Tn,gt,S)=>{"use strict";function h(c,Z,Oe,U=0,ue=!1){const oe=Z.schedule(function(){Oe(),ue?c.add(this.schedule(null,U)):this.unsubscribe()},U);if(c.add(oe),!ue)return oe}S.d(gt,{N:()=>h})},3669:(Tn,gt,S)=>{"use strict";function h(c){return c}S.d(gt,{D:()=>h})},7441:(Tn,gt,S)=>{"use strict";S.d(gt,{X:()=>h});const h=c=>c&&"number"==typeof c.length&&"function"!=typeof c},7953:(Tn,gt,S)=>{"use strict";S.d(gt,{T:()=>c});var h=S(8071);function c(Z){return Symbol.asyncIterator&&(0,h.T)(null==Z?void 0:Z[Symbol.asyncIterator])}},8071:(Tn,gt,S)=>{"use strict";function h(c){return"function"==typeof c}S.d(gt,{T:()=>h})},5055:(Tn,gt,S)=>{"use strict";S.d(gt,{l:()=>Z});var h=S(3494),c=S(8071);function Z(Oe){return(0,c.T)(Oe[h.s])}},5397:(Tn,gt,S)=>{"use strict";S.d(gt,{x:()=>Z});var h=S(4761),c=S(8071);function Z(Oe){return(0,c.T)(null==Oe?void 0:Oe[h.l])}},4402:(Tn,gt,S)=>{"use strict";S.d(gt,{A:()=>Z});var h=S(1985),c=S(8071);function Z(Oe){return!!Oe&&(Oe instanceof h.c||(0,c.T)(Oe.lift)&&(0,c.T)(Oe.subscribe))}},9858:(Tn,gt,S)=>{"use strict";S.d(gt,{y:()=>c});var h=S(8071);function c(Z){return(0,h.T)(null==Z?void 0:Z.then)}},5196:(Tn,gt,S)=>{"use strict";S.d(gt,{C:()=>Z,U:()=>Oe});var h=S(1635),c=S(8071);function Z(U){return(0,h.AQ)(this,arguments,function*(){const oe=U.getReader();try{for(;;){const{value:Xe,done:Je}=yield(0,h.N3)(oe.read());if(Je)return yield(0,h.N3)(void 0);yield yield(0,h.N3)(Xe)}}finally{oe.releaseLock()}})}function Oe(U){return(0,c.T)(null==U?void 0:U.getReader)}},9470:(Tn,gt,S)=>{"use strict";S.d(gt,{m:()=>c});var h=S(8071);function c(Z){return Z&&(0,h.T)(Z.schedule)}},9974:(Tn,gt,S)=>{"use strict";S.d(gt,{N:()=>Z,S:()=>c});var h=S(8071);function c(Oe){return(0,h.T)(null==Oe?void 0:Oe.lift)}function Z(Oe){return U=>{if(c(U))return U.lift(function(ue){try{return Oe(ue,this)}catch(oe){this.error(oe)}});throw new TypeError("Unable to lift unknown Observable type")}}},6450:(Tn,gt,S)=>{"use strict";S.d(gt,{I:()=>Oe});var h=S(6354);const{isArray:c}=Array;function Oe(U){return(0,h.T)(ue=>function Z(U,ue){return c(ue)?U(...ue):U(ue)}(U,ue))}},5343:(Tn,gt,S)=>{"use strict";function h(){}S.d(gt,{l:()=>h})},1203:(Tn,gt,S)=>{"use strict";S.d(gt,{F:()=>c,m:()=>Z});var h=S(3669);function c(...Oe){return Z(Oe)}function Z(Oe){return 0===Oe.length?h.D:1===Oe.length?Oe[0]:function(ue){return Oe.reduce((oe,Xe)=>Xe(oe),ue)}}},5334:(Tn,gt,S)=>{"use strict";S.d(gt,{m:()=>Z});var h=S(1026),c=S(9270);function Z(Oe){c.f.setTimeout(()=>{const{onUnhandledError:U}=h.$;if(!U)throw Oe;U(Oe)})}},591:(Tn,gt,S)=>{"use strict";function h(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.`)}S.d(gt,{L:()=>h})},8996:(Tn,gt,S)=>{var h={"./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(Z){if(!S.o(h,Z))return Promise.resolve().then(()=>{var ue=new Error("Cannot find module '"+Z+"'");throw ue.code="MODULE_NOT_FOUND",ue});var Oe=h[Z],U=Oe[0];return Promise.all(Oe.slice(1).map(S.e)).then(()=>S(U))}c.keys=()=>Object.keys(h),c.id=8996,Tn.exports=c},177:(Tn,gt,S)=>{"use strict";S.d(gt,{AJ:()=>Yt,Jj:()=>bt,MD:()=>Et,N0:()=>ki,QT:()=>Z,Sm:()=>Dt,Sq:()=>or,T3:()=>Hn,UE:()=>Nn,VF:()=>U,Vy:()=>jn,Xr:()=>jr,ZD:()=>Oe,_b:()=>x,aZ:()=>_t,bT:()=>On,fw:()=>St,hb:()=>qe,hj:()=>Je,qQ:()=>oe});var h=S(4438);let c=null;function Z(){return c}function Oe(C){var $;null!==($=c)&&void 0!==$||(c=C)}class U{}const oe=new h.nKC("");let Xe=(()=>{var C;class ${historyGo(F){throw new Error("")}}return(C=$).\u0275fac=function(F){return new(F||C)},C.\u0275prov=h.jDH({token:C,factory:()=>(0,h.WQX)(Se),providedIn:"platform"}),$})();const Je=new h.nKC("");let Se=(()=>{var C;class $ extends Xe{constructor(){super(),this._doc=(0,h.WQX)(oe),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Z().getBaseHref(this._doc)}onPopState(F){const Ie=Z().getGlobalEventTarget(this._doc,"window");return Ie.addEventListener("popstate",F,!1),()=>Ie.removeEventListener("popstate",F)}onHashChange(F){const Ie=Z().getGlobalEventTarget(this._doc,"window");return Ie.addEventListener("hashchange",F,!1),()=>Ie.removeEventListener("hashchange",F)}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(F){this._location.pathname=F}pushState(F,Ie,Ke){this._history.pushState(F,Ie,Ke)}replaceState(F,Ie,Ke){this._history.replaceState(F,Ie,Ke)}forward(){this._history.forward()}back(){this._history.back()}historyGo(F=0){this._history.go(F)}getState(){return this._history.state}}return(C=$).\u0275fac=function(F){return new(F||C)},C.\u0275prov=h.jDH({token:C,factory:()=>new C,providedIn:"platform"}),$})();function Ce(C,$){if(0==C.length)return $;if(0==$.length)return C;let Be=0;return C.endsWith("/")&&Be++,$.startsWith("/")&&Be++,2==Be?C+$.substring(1):1==Be?C+$:C+"/"+$}function Qe(C){const $=C.match(/#|\?|$/),Be=$&&$.index||C.length;return C.slice(0,Be-("/"===C[Be-1]?1:0))+C.slice(Be)}function Ze(C){return C&&"?"!==C[0]?"?"+C:C}let qe=(()=>{var C;class ${historyGo(F){throw new Error("")}}return(C=$).\u0275fac=function(F){return new(F||C)},C.\u0275prov=h.jDH({token:C,factory:()=>(0,h.WQX)(Dt),providedIn:"root"}),$})();const ht=new h.nKC("");let Dt=(()=>{var C;class $ extends qe{constructor(F,Ie){var Ke,Qt,wn;super(),this._platformLocation=F,this._removeListenerFns=[],this._baseHref=null!==(Ke=null!==(Qt=null!=Ie?Ie:this._platformLocation.getBaseHrefFromDOM())&&void 0!==Qt?Qt:null===(wn=(0,h.WQX)(oe).location)||void 0===wn?void 0:wn.origin)&&void 0!==Ke?Ke:""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(F){this._removeListenerFns.push(this._platformLocation.onPopState(F),this._platformLocation.onHashChange(F))}getBaseHref(){return this._baseHref}prepareExternalUrl(F){return Ce(this._baseHref,F)}path(F=!1){const Ie=this._platformLocation.pathname+Ze(this._platformLocation.search),Ke=this._platformLocation.hash;return Ke&&F?`${Ie}${Ke}`:Ie}pushState(F,Ie,Ke,Qt){const wn=this.prepareExternalUrl(Ke+Ze(Qt));this._platformLocation.pushState(F,Ie,wn)}replaceState(F,Ie,Ke,Qt){const wn=this.prepareExternalUrl(Ke+Ze(Qt));this._platformLocation.replaceState(F,Ie,wn)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(F=0){var Ie,Ke;null===(Ie=(Ke=this._platformLocation).historyGo)||void 0===Ie||Ie.call(Ke,F)}}return(C=$).\u0275fac=function(F){return new(F||C)(h.KVO(Xe),h.KVO(ht,8))},C.\u0275prov=h.jDH({token:C,factory:C.\u0275fac,providedIn:"root"}),$})(),St=(()=>{var C;class $ extends qe{constructor(F,Ie){super(),this._platformLocation=F,this._baseHref="",this._removeListenerFns=[],null!=Ie&&(this._baseHref=Ie)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(F){this._removeListenerFns.push(this._platformLocation.onPopState(F),this._platformLocation.onHashChange(F))}getBaseHref(){return this._baseHref}path(F=!1){var Ie;const Ke=null!==(Ie=this._platformLocation.hash)&&void 0!==Ie?Ie:"#";return Ke.length>0?Ke.substring(1):Ke}prepareExternalUrl(F){const Ie=Ce(this._baseHref,F);return Ie.length>0?"#"+Ie:Ie}pushState(F,Ie,Ke,Qt){let wn=this.prepareExternalUrl(Ke+Ze(Qt));0==wn.length&&(wn=this._platformLocation.pathname),this._platformLocation.pushState(F,Ie,wn)}replaceState(F,Ie,Ke,Qt){let wn=this.prepareExternalUrl(Ke+Ze(Qt));0==wn.length&&(wn=this._platformLocation.pathname),this._platformLocation.replaceState(F,Ie,wn)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(F=0){var Ie,Ke;null===(Ie=(Ke=this._platformLocation).historyGo)||void 0===Ie||Ie.call(Ke,F)}}return(C=$).\u0275fac=function(F){return new(F||C)(h.KVO(Xe),h.KVO(ht,8))},C.\u0275prov=h.jDH({token:C,factory:C.\u0275fac}),$})(),_t=(()=>{var C;class ${constructor(F){this._subject=new h.bkB,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=F;const Ie=this._locationStrategy.getBaseHref();this._basePath=function Me(C){if(new RegExp("^(https?:)?//").test(C)){const[,Be]=C.split(/\/\/[^\/]+/);return Be}return C}(Qe(mt(Ie))),this._locationStrategy.onPopState(Ke=>{this._subject.emit({url:this.path(!0),pop:!0,state:Ke.state,type:Ke.type})})}ngOnDestroy(){var F;null===(F=this._urlChangeSubscription)||void 0===F||F.unsubscribe(),this._urlChangeListeners=[]}path(F=!1){return this.normalize(this._locationStrategy.path(F))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(F,Ie=""){return this.path()==this.normalize(F+Ze(Ie))}normalize(F){return $.stripTrailingSlash(function yt(C,$){if(!C||!$.startsWith(C))return $;const Be=$.substring(C.length);return""===Be||["/",";","?","#"].includes(Be[0])?Be:$}(this._basePath,mt(F)))}prepareExternalUrl(F){return F&&"/"!==F[0]&&(F="/"+F),this._locationStrategy.prepareExternalUrl(F)}go(F,Ie="",Ke=null){this._locationStrategy.pushState(Ke,"",F,Ie),this._notifyUrlChangeListeners(this.prepareExternalUrl(F+Ze(Ie)),Ke)}replaceState(F,Ie="",Ke=null){this._locationStrategy.replaceState(Ke,"",F,Ie),this._notifyUrlChangeListeners(this.prepareExternalUrl(F+Ze(Ie)),Ke)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(F=0){var Ie,Ke;null===(Ie=(Ke=this._locationStrategy).historyGo)||void 0===Ie||Ie.call(Ke,F)}onUrlChange(F){var Ie;return this._urlChangeListeners.push(F),null!==(Ie=this._urlChangeSubscription)&&void 0!==Ie||(this._urlChangeSubscription=this.subscribe(Ke=>{this._notifyUrlChangeListeners(Ke.url,Ke.state)})),()=>{const Ke=this._urlChangeListeners.indexOf(F);var Qt;this._urlChangeListeners.splice(Ke,1),0===this._urlChangeListeners.length&&(null===(Qt=this._urlChangeSubscription)||void 0===Qt||Qt.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(F="",Ie){this._urlChangeListeners.forEach(Ke=>Ke(F,Ie))}subscribe(F,Ie,Ke){return this._subject.subscribe({next:F,error:Ie,complete:Ke})}}return(C=$).normalizeQueryParams=Ze,C.joinWithSlash=Ce,C.stripTrailingSlash=Qe,C.\u0275fac=function(F){return new(F||C)(h.KVO(qe))},C.\u0275prov=h.jDH({token:C,factory:()=>function Tt(){return new _t((0,h.KVO)(qe))}(),providedIn:"root"}),$})();function mt(C){return C.replace(/\/index.html$/,"")}function x(C,$){$=encodeURIComponent($);for(const Be of C.split(";")){const F=Be.indexOf("="),[Ie,Ke]=-1==F?[Be,""]:[Be.slice(0,F),Be.slice(F+1)];if(Ie.trim()===$)return decodeURIComponent(Ke)}return null}class ln{constructor($,Be,F,Ie){this.$implicit=$,this.ngForOf=Be,this.index=F,this.count=Ie}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 or=(()=>{var C;class ${set ngForOf(F){this._ngForOf=F,this._ngForOfDirty=!0}set ngForTrackBy(F){this._trackByFn=F}get ngForTrackBy(){return this._trackByFn}constructor(F,Ie,Ke){this._viewContainer=F,this._template=Ie,this._differs=Ke,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(F){F&&(this._template=F)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const F=this._ngForOf;!this._differ&&F&&(this._differ=this._differs.find(F).create(this.ngForTrackBy))}if(this._differ){const F=this._differ.diff(this._ngForOf);F&&this._applyChanges(F)}}_applyChanges(F){const Ie=this._viewContainer;F.forEachOperation((Ke,Qt,wn)=>{if(null==Ke.previousIndex)Ie.createEmbeddedView(this._template,new ln(Ke.item,this._ngForOf,-1,-1),null===wn?void 0:wn);else if(null==wn)Ie.remove(null===Qt?void 0:Qt);else if(null!==Qt){const ar=Ie.get(Qt);Ie.move(ar,wn),Un(ar,Ke)}});for(let Ke=0,Qt=Ie.length;Ke{Un(Ie.get(Ke.currentIndex),Ke)})}static ngTemplateContextGuard(F,Ie){return!0}}return(C=$).\u0275fac=function(F){return new(F||C)(h.rXU(h.c1b),h.rXU(h.C4Q),h.rXU(h._q3))},C.\u0275dir=h.FsC({type:C,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),$})();function Un(C,$){C.context.$implicit=$.item}let On=(()=>{var C;class ${constructor(F,Ie){this._viewContainer=F,this._context=new Fr,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=Ie}set ngIf(F){this._context.$implicit=this._context.ngIf=F,this._updateView()}set ngIfThen(F){Or("ngIfThen",F),this._thenTemplateRef=F,this._thenViewRef=null,this._updateView()}set ngIfElse(F){Or("ngIfElse",F),this._elseTemplateRef=F,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(F,Ie){return!0}}return(C=$).\u0275fac=function(F){return new(F||C)(h.rXU(h.c1b),h.rXU(h.C4Q))},C.\u0275dir=h.FsC({type:C,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),$})();class Fr{constructor(){this.$implicit=null,this.ngIf=null}}function Or(C,$){if($&&!$.createEmbeddedView)throw new Error(`${C} must be a TemplateRef, but received '${(0,h.Tbb)($)}'.`)}let Hn=(()=>{var C;class ${constructor(F){this._viewContainerRef=F,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(F){if(this._shouldRecreateView(F)){var Ie;const Ke=this._viewContainerRef;if(this._viewRef&&Ke.remove(Ke.indexOf(this._viewRef)),!this.ngTemplateOutlet)return void(this._viewRef=null);const Qt=this._createContextForwardProxy();this._viewRef=Ke.createEmbeddedView(this.ngTemplateOutlet,Qt,{injector:null!==(Ie=this.ngTemplateOutletInjector)&&void 0!==Ie?Ie:void 0})}}_shouldRecreateView(F){return!!F.ngTemplateOutlet||!!F.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(F,Ie,Ke)=>!!this.ngTemplateOutletContext&&Reflect.set(this.ngTemplateOutletContext,Ie,Ke),get:(F,Ie,Ke)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,Ie,Ke)}})}}return(C=$).\u0275fac=function(F){return new(F||C)(h.rXU(h.c1b))},C.\u0275dir=h.FsC({type:C,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[h.OA$]}),$})();class Ci{createSubscription($,Be){return(0,h.O8t)(()=>$.subscribe({next:Be,error:F=>{throw F}}))}dispose($){(0,h.O8t)(()=>$.unsubscribe())}}class Eo{createSubscription($,Be){return $.then(Be,F=>{throw F})}dispose($){}}const No=new Eo,oi=new Ci;let bt=(()=>{var C;class ${constructor(F){this._latestValue=null,this.markForCheckOnValueUpdate=!0,this._subscription=null,this._obj=null,this._strategy=null,this._ref=F}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(F){if(!this._obj){if(F)try{this.markForCheckOnValueUpdate=!1,this._subscribe(F)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return F!==this._obj?(this._dispose(),this.transform(F)):this._latestValue}_subscribe(F){this._obj=F,this._strategy=this._selectStrategy(F),this._subscription=this._strategy.createSubscription(F,Ie=>this._updateLatestValue(F,Ie))}_selectStrategy(F){if((0,h.jNT)(F))return No;if((0,h.zjR)(F))return oi;throw function ui(C,$){return new h.wOt(2100,!1)}()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(F,Ie){var Ke;F===this._obj&&(this._latestValue=Ie,this.markForCheckOnValueUpdate)&&(null===(Ke=this._ref)||void 0===Ke||Ke.markForCheck())}}return(C=$).\u0275fac=function(F){return new(F||C)(h.rXU(h.gRc,16))},C.\u0275pipe=h.EJ8({name:"async",type:C,pure:!1,standalone:!0}),$})(),Et=(()=>{var C;class ${}return(C=$).\u0275fac=function(F){return new(F||C)},C.\u0275mod=h.$C({type:C}),C.\u0275inj=h.G2t({}),$})();const Yt="browser",sn="server";function Nn(C){return C===Yt}function jn(C){return C===sn}let jr=(()=>{var C;class ${}return(C=$).\u0275prov=(0,h.jDH)({token:C,providedIn:"root",factory:()=>Nn((0,h.WQX)(h.Agw))?new br((0,h.WQX)(oe),window):new Ni}),$})();class br{constructor($,Be){this.document=$,this.window=Be,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 Be=function wi(C,$){const Be=C.getElementById($)||C.getElementsByName($)[0];if(Be)return Be;if("function"==typeof C.createTreeWalker&&C.body&&"function"==typeof C.body.attachShadow){const F=C.createTreeWalker(C.body,NodeFilter.SHOW_ELEMENT);let Ie=F.currentNode;for(;Ie;){const Ke=Ie.shadowRoot;if(Ke){const Qt=Ke.getElementById($)||Ke.querySelector(`[name="${$}"]`);if(Qt)return Qt}Ie=F.nextNode()}}return null}(this.document,$);Be&&(this.scrollToElement(Be),Be.focus())}setHistoryScrollRestoration($){this.window.history.scrollRestoration=$}scrollToElement($){const Be=$.getBoundingClientRect(),F=Be.left+this.window.pageXOffset,Ie=Be.top+this.window.pageYOffset,Ke=this.offset();this.window.scrollTo(F-Ke[0],Ie-Ke[1])}}class Ni{setOffset($){}getScrollPosition(){return[0,0]}scrollToPosition($){}scrollToAnchor($){}setHistoryScrollRestoration($){}}class ki{}},1626:(Tn,gt,S)=>{"use strict";S.d(gt,{Qq:()=>fe,q1:()=>_n}),S(467);var c=S(4438),Z=S(7673),Oe=S(1985),U=S(8455),ue=S(274),oe=S(5964),Xe=S(6354),Je=S(980),Se=S(5558),Ce=S(177);class Qe{}class Ze{}class qe{constructor(x){this.normalizedNames=new Map,this.lazyUpdate=null,x?"string"==typeof x?this.lazyInit=()=>{this.headers=new Map,x.split("\n").forEach(ne=>{const Te=ne.indexOf(":");if(Te>0){const Ge=ne.slice(0,Te),At=Ge.toLowerCase(),Jt=ne.slice(Te+1).trim();this.maybeSetNormalizedName(Ge,At),this.headers.has(At)?this.headers.get(At).push(Jt):this.headers.set(At,[Jt])}})}:typeof Headers<"u"&&x instanceof Headers?(this.headers=new Map,x.forEach((ne,Te)=>{this.setHeaderEntries(Te,ne)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(x).forEach(([ne,Te])=>{this.setHeaderEntries(ne,Te)})}:this.headers=new Map}has(x){return this.init(),this.headers.has(x.toLowerCase())}get(x){this.init();const ne=this.headers.get(x.toLowerCase());return ne&&ne.length>0?ne[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(x){return this.init(),this.headers.get(x.toLowerCase())||null}append(x,ne){return this.clone({name:x,value:ne,op:"a"})}set(x,ne){return this.clone({name:x,value:ne,op:"s"})}delete(x,ne){return this.clone({name:x,value:ne,op:"d"})}maybeSetNormalizedName(x,ne){this.normalizedNames.has(ne)||this.normalizedNames.set(ne,x)}init(){this.lazyInit&&(this.lazyInit instanceof qe?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(x=>this.applyUpdate(x)),this.lazyUpdate=null))}copyFrom(x){x.init(),Array.from(x.headers.keys()).forEach(ne=>{this.headers.set(ne,x.headers.get(ne)),this.normalizedNames.set(ne,x.normalizedNames.get(ne))})}clone(x){const ne=new qe;return ne.lazyInit=this.lazyInit&&this.lazyInit instanceof qe?this.lazyInit:this,ne.lazyUpdate=(this.lazyUpdate||[]).concat([x]),ne}applyUpdate(x){const ne=x.name.toLowerCase();switch(x.op){case"a":case"s":let Te=x.value;if("string"==typeof Te&&(Te=[Te]),0===Te.length)return;this.maybeSetNormalizedName(x.name,ne);const Ge=("a"===x.op?this.headers.get(ne):void 0)||[];Ge.push(...Te),this.headers.set(ne,Ge);break;case"d":const At=x.value;if(At){let Jt=this.headers.get(ne);if(!Jt)return;Jt=Jt.filter(ln=>-1===At.indexOf(ln)),0===Jt.length?(this.headers.delete(ne),this.normalizedNames.delete(ne)):this.headers.set(ne,Jt)}else this.headers.delete(ne),this.normalizedNames.delete(ne)}}setHeaderEntries(x,ne){const Te=(Array.isArray(ne)?ne:[ne]).map(At=>At.toString()),Ge=x.toLowerCase();this.headers.set(Ge,Te),this.maybeSetNormalizedName(x,Ge)}forEach(x){this.init(),Array.from(this.normalizedNames.keys()).forEach(ne=>x(this.normalizedNames.get(ne),this.headers.get(ne)))}}class Dt{encodeKey(x){return yt(x)}encodeValue(x){return yt(x)}decodeKey(x){return decodeURIComponent(x)}decodeValue(x){return decodeURIComponent(x)}}const _t=/%(\d[a-f0-9])/gi,Tt={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function yt(M){return encodeURIComponent(M).replace(_t,(x,ne)=>{var Te;return null!==(Te=Tt[ne])&&void 0!==Te?Te:x})}function mt(M){return`${M}`}class Me{constructor(x={}){if(this.updates=null,this.cloneFrom=null,this.encoder=x.encoder||new Dt,x.fromString){if(x.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function St(M,x){const ne=new Map;return M.length>0&&M.replace(/^\?/,"").split("&").forEach(Ge=>{const At=Ge.indexOf("="),[Jt,ln]=-1==At?[x.decodeKey(Ge),""]:[x.decodeKey(Ge.slice(0,At)),x.decodeValue(Ge.slice(At+1))],or=ne.get(Jt)||[];or.push(ln),ne.set(Jt,or)}),ne}(x.fromString,this.encoder)}else x.fromObject?(this.map=new Map,Object.keys(x.fromObject).forEach(ne=>{const Te=x.fromObject[ne],Ge=Array.isArray(Te)?Te.map(mt):[mt(Te)];this.map.set(ne,Ge)})):this.map=null}has(x){return this.init(),this.map.has(x)}get(x){this.init();const ne=this.map.get(x);return ne?ne[0]:null}getAll(x){return this.init(),this.map.get(x)||null}keys(){return this.init(),Array.from(this.map.keys())}append(x,ne){return this.clone({param:x,value:ne,op:"a"})}appendAll(x){const ne=[];return Object.keys(x).forEach(Te=>{const Ge=x[Te];Array.isArray(Ge)?Ge.forEach(At=>{ne.push({param:Te,value:At,op:"a"})}):ne.push({param:Te,value:Ge,op:"a"})}),this.clone(ne)}set(x,ne){return this.clone({param:x,value:ne,op:"s"})}delete(x,ne){return this.clone({param:x,value:ne,op:"d"})}toString(){return this.init(),this.keys().map(x=>{const ne=this.encoder.encodeKey(x);return this.map.get(x).map(Te=>ne+"="+this.encoder.encodeValue(Te)).join("&")}).filter(x=>""!==x).join("&")}clone(x){const ne=new Me({encoder:this.encoder});return ne.cloneFrom=this.cloneFrom||this,ne.updates=(this.updates||[]).concat(x),ne}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(x=>this.map.set(x,this.cloneFrom.map.get(x))),this.updates.forEach(x=>{switch(x.op){case"a":case"s":const ne=("a"===x.op?this.map.get(x.param):void 0)||[];ne.push(mt(x.value)),this.map.set(x.param,ne);break;case"d":if(void 0===x.value){this.map.delete(x.param);break}{let Te=this.map.get(x.param)||[];const Ge=Te.indexOf(mt(x.value));-1!==Ge&&Te.splice(Ge,1),Te.length>0?this.map.set(x.param,Te):this.map.delete(x.param)}}}),this.cloneFrom=this.updates=null)}}class ge{constructor(){this.map=new Map}set(x,ne){return this.map.set(x,ne),this}get(x){return this.map.has(x)||this.map.set(x,x.defaultValue()),this.map.get(x)}delete(x){return this.map.delete(x),this}has(x){return this.map.has(x)}keys(){return this.map.keys()}}function Fe(M){return typeof ArrayBuffer<"u"&&M instanceof ArrayBuffer}function xe(M){return typeof Blob<"u"&&M instanceof Blob}function at(M){return typeof FormData<"u"&&M instanceof FormData}class vn{constructor(x,ne,Te,Ge){var At,Jt;let ln;if(this.url=ne,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=x.toUpperCase(),function Ue(M){switch(M){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||Ge?(this.body=void 0!==Te?Te:null,ln=Ge):ln=Te,ln&&(this.reportProgress=!!ln.reportProgress,this.withCredentials=!!ln.withCredentials,ln.responseType&&(this.responseType=ln.responseType),ln.headers&&(this.headers=ln.headers),ln.context&&(this.context=ln.context),ln.params&&(this.params=ln.params),this.transferCache=ln.transferCache),null!==(At=this.headers)&&void 0!==At||(this.headers=new qe),null!==(Jt=this.context)&&void 0!==Jt||(this.context=new ge),this.params){const or=this.params.toString();if(0===or.length)this.urlWithParams=ne;else{const Un=ne.indexOf("?");this.urlWithParams=ne+(-1===Un?"?":UnGn.set(Cr,x.setHeaders[Cr]),Or)),x.setParams&&(zr=Object.keys(x.setParams).reduce((Gn,Cr)=>Gn.set(Cr,x.setParams[Cr]),zr)),new vn(Jt,ln,xr,{params:zr,headers:Or,context:Tr,reportProgress:Fr,responseType:or,withCredentials:On,transferCache:Un})}}var Nt=function(M){return M[M.Sent=0]="Sent",M[M.UploadProgress=1]="UploadProgress",M[M.ResponseHeader=2]="ResponseHeader",M[M.DownloadProgress=3]="DownloadProgress",M[M.Response=4]="Response",M[M.User=5]="User",M}(Nt||{});class tt{constructor(x,ne=H.Ok,Te="OK"){this.headers=x.headers||new qe,this.status=void 0!==x.status?x.status:ne,this.statusText=x.statusText||Te,this.url=x.url||null,this.ok=this.status>=200&&this.status<300}}class on extends tt{constructor(x={}){super(x),this.type=Nt.ResponseHeader}clone(x={}){return new on({headers:x.headers||this.headers,status:void 0!==x.status?x.status:this.status,statusText:x.statusText||this.statusText,url:x.url||this.url||void 0})}}class dt extends tt{constructor(x={}){super(x),this.type=Nt.Response,this.body=void 0!==x.body?x.body:null}clone(x={}){return new dt({body:void 0!==x.body?x.body:this.body,headers:x.headers||this.headers,status:void 0!==x.status?x.status:this.status,statusText:x.statusText||this.statusText,url:x.url||this.url||void 0})}}class we extends tt{constructor(x){super(x,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${x.url||"(unknown url)"}`:`Http failure response for ${x.url||"(unknown url)"}: ${x.status} ${x.statusText}`,this.error=x.error||null}}var H=function(M){return M[M.Continue=100]="Continue",M[M.SwitchingProtocols=101]="SwitchingProtocols",M[M.Processing=102]="Processing",M[M.EarlyHints=103]="EarlyHints",M[M.Ok=200]="Ok",M[M.Created=201]="Created",M[M.Accepted=202]="Accepted",M[M.NonAuthoritativeInformation=203]="NonAuthoritativeInformation",M[M.NoContent=204]="NoContent",M[M.ResetContent=205]="ResetContent",M[M.PartialContent=206]="PartialContent",M[M.MultiStatus=207]="MultiStatus",M[M.AlreadyReported=208]="AlreadyReported",M[M.ImUsed=226]="ImUsed",M[M.MultipleChoices=300]="MultipleChoices",M[M.MovedPermanently=301]="MovedPermanently",M[M.Found=302]="Found",M[M.SeeOther=303]="SeeOther",M[M.NotModified=304]="NotModified",M[M.UseProxy=305]="UseProxy",M[M.Unused=306]="Unused",M[M.TemporaryRedirect=307]="TemporaryRedirect",M[M.PermanentRedirect=308]="PermanentRedirect",M[M.BadRequest=400]="BadRequest",M[M.Unauthorized=401]="Unauthorized",M[M.PaymentRequired=402]="PaymentRequired",M[M.Forbidden=403]="Forbidden",M[M.NotFound=404]="NotFound",M[M.MethodNotAllowed=405]="MethodNotAllowed",M[M.NotAcceptable=406]="NotAcceptable",M[M.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",M[M.RequestTimeout=408]="RequestTimeout",M[M.Conflict=409]="Conflict",M[M.Gone=410]="Gone",M[M.LengthRequired=411]="LengthRequired",M[M.PreconditionFailed=412]="PreconditionFailed",M[M.PayloadTooLarge=413]="PayloadTooLarge",M[M.UriTooLong=414]="UriTooLong",M[M.UnsupportedMediaType=415]="UnsupportedMediaType",M[M.RangeNotSatisfiable=416]="RangeNotSatisfiable",M[M.ExpectationFailed=417]="ExpectationFailed",M[M.ImATeapot=418]="ImATeapot",M[M.MisdirectedRequest=421]="MisdirectedRequest",M[M.UnprocessableEntity=422]="UnprocessableEntity",M[M.Locked=423]="Locked",M[M.FailedDependency=424]="FailedDependency",M[M.TooEarly=425]="TooEarly",M[M.UpgradeRequired=426]="UpgradeRequired",M[M.PreconditionRequired=428]="PreconditionRequired",M[M.TooManyRequests=429]="TooManyRequests",M[M.RequestHeaderFieldsTooLarge=431]="RequestHeaderFieldsTooLarge",M[M.UnavailableForLegalReasons=451]="UnavailableForLegalReasons",M[M.InternalServerError=500]="InternalServerError",M[M.NotImplemented=501]="NotImplemented",M[M.BadGateway=502]="BadGateway",M[M.ServiceUnavailable=503]="ServiceUnavailable",M[M.GatewayTimeout=504]="GatewayTimeout",M[M.HttpVersionNotSupported=505]="HttpVersionNotSupported",M[M.VariantAlsoNegotiates=506]="VariantAlsoNegotiates",M[M.InsufficientStorage=507]="InsufficientStorage",M[M.LoopDetected=508]="LoopDetected",M[M.NotExtended=510]="NotExtended",M[M.NetworkAuthenticationRequired=511]="NetworkAuthenticationRequired",M}(H||{});function X(M,x){return{body:x,headers:M.headers,context:M.context,observe:M.observe,params:M.params,reportProgress:M.reportProgress,responseType:M.responseType,withCredentials:M.withCredentials,transferCache:M.transferCache}}let fe=(()=>{var M;class x{constructor(Te){this.handler=Te}request(Te,Ge,At={}){let Jt;if(Te instanceof vn)Jt=Te;else{let Un,xr;Un=At.headers instanceof qe?At.headers:new qe(At.headers),At.params&&(xr=At.params instanceof Me?At.params:new Me({fromObject:At.params})),Jt=new vn(Te,Ge,void 0!==At.body?At.body:null,{headers:Un,context:At.context,params:xr,reportProgress:At.reportProgress,responseType:At.responseType||"json",withCredentials:At.withCredentials,transferCache:At.transferCache})}const ln=(0,Z.of)(Jt).pipe((0,ue.H)(Un=>this.handler.handle(Un)));if(Te instanceof vn||"events"===At.observe)return ln;const or=ln.pipe((0,oe.p)(Un=>Un instanceof dt));switch(At.observe||"body"){case"body":switch(Jt.responseType){case"arraybuffer":return or.pipe((0,Xe.T)(Un=>{if(null!==Un.body&&!(Un.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return Un.body}));case"blob":return or.pipe((0,Xe.T)(Un=>{if(null!==Un.body&&!(Un.body instanceof Blob))throw new Error("Response is not a Blob.");return Un.body}));case"text":return or.pipe((0,Xe.T)(Un=>{if(null!==Un.body&&"string"!=typeof Un.body)throw new Error("Response is not a string.");return Un.body}));default:return or.pipe((0,Xe.T)(Un=>Un.body))}case"response":return or;default:throw new Error(`Unreachable: unhandled observe type ${At.observe}}`)}}delete(Te,Ge={}){return this.request("DELETE",Te,Ge)}get(Te,Ge={}){return this.request("GET",Te,Ge)}head(Te,Ge={}){return this.request("HEAD",Te,Ge)}jsonp(Te,Ge){return this.request("JSONP",Te,{params:(new Me).append(Ge,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(Te,Ge={}){return this.request("OPTIONS",Te,Ge)}patch(Te,Ge,At={}){return this.request("PATCH",Te,X(At,Ge))}post(Te,Ge,At={}){return this.request("POST",Te,X(At,Ge))}put(Te,Ge,At={}){return this.request("PUT",Te,X(At,Ge))}}return(M=x).\u0275fac=function(Te){return new(Te||M)(c.KVO(Qe))},M.\u0275prov=c.jDH({token:M,factory:M.\u0275fac}),x})();function rn(M,x){return x(M)}function Ln(M,x){return(ne,Te)=>x.intercept(ne,{handle:Ge=>M(Ge,Te)})}const nr=new c.nKC(""),er=new c.nKC(""),yr=new c.nKC(""),rr=new c.nKC("");function ir(){let M=null;return(x,ne)=>{var Te;null===M&&(M=(null!==(Te=(0,c.WQX)(nr,{optional:!0}))&&void 0!==Te?Te:[]).reduceRight(Ln,rn));const Ge=(0,c.WQX)(c.TgB),At=Ge.add();return M(x,ne).pipe((0,Je.j)(()=>Ge.remove(At)))}}let zt=(()=>{var M;class x extends Qe{constructor(Te,Ge){super(),this.backend=Te,this.injector=Ge,this.chain=null,this.pendingTasks=(0,c.WQX)(c.TgB);const At=(0,c.WQX)(rr,{optional:!0});this.backend=null!=At?At:Te}handle(Te){if(null===this.chain){const At=Array.from(new Set([...this.injector.get(er),...this.injector.get(yr,[])]));this.chain=At.reduceRight((Jt,ln)=>function Zn(M,x,ne){return(Te,Ge)=>(0,c.N4e)(ne,()=>x(Te,At=>M(At,Ge)))}(Jt,ln,this.injector),rn)}const Ge=this.pendingTasks.add();return this.chain(Te,At=>this.backend.handle(At)).pipe((0,Je.j)(()=>this.pendingTasks.remove(Ge)))}}return(M=x).\u0275fac=function(Te){return new(Te||M)(c.KVO(Ze),c.KVO(c.uvJ))},M.\u0275prov=c.jDH({token:M,factory:M.\u0275fac}),x})();const Dr=/^\)\]\}',?\n/;let Jr=(()=>{var M;class x{constructor(Te){this.xhrFactory=Te}handle(Te){if("JSONP"===Te.method)throw new c.wOt(-2800,!1);const Ge=this.xhrFactory;return(Ge.\u0275loadImpl?(0,U.H)(Ge.\u0275loadImpl()):(0,Z.of)(null)).pipe((0,Se.n)(()=>new Oe.c(Jt=>{const ln=Ge.build();if(ln.open(Te.method,Te.urlWithParams),Te.withCredentials&&(ln.withCredentials=!0),Te.headers.forEach((Gn,Cr)=>ln.setRequestHeader(Gn,Cr.join(","))),Te.headers.has("Accept")||ln.setRequestHeader("Accept","application/json, text/plain, */*"),!Te.headers.has("Content-Type")){const Gn=Te.detectContentTypeHeader();null!==Gn&&ln.setRequestHeader("Content-Type",Gn)}if(Te.responseType){const Gn=Te.responseType.toLowerCase();ln.responseType="json"!==Gn?Gn:"text"}const or=Te.serializeBody();let Un=null;const xr=()=>{if(null!==Un)return Un;const Gn=ln.statusText||"OK",Cr=new qe(ln.getAllResponseHeaders()),ai=function Jn(M){return"responseURL"in M&&M.responseURL?M.responseURL:/^X-Request-URL:/m.test(M.getAllResponseHeaders())?M.getResponseHeader("X-Request-URL"):null}(ln)||Te.url;return Un=new on({headers:Cr,status:ln.status,statusText:Gn,url:ai}),Un},On=()=>{let{headers:Gn,status:Cr,statusText:ai,url:li}=xr(),ei=null;Cr!==H.NoContent&&(ei=typeof ln.response>"u"?ln.responseText:ln.response),0===Cr&&(Cr=ei?H.Ok:0);let Lr=Cr>=200&&Cr<300;if("json"===Te.responseType&&"string"==typeof ei){const mi=ei;ei=ei.replace(Dr,"");try{ei=""!==ei?JSON.parse(ei):null}catch(Wn){ei=mi,Lr&&(Lr=!1,ei={error:Wn,text:ei})}}Lr?(Jt.next(new dt({body:ei,headers:Gn,status:Cr,statusText:ai,url:li||void 0})),Jt.complete()):Jt.error(new we({error:ei,headers:Gn,status:Cr,statusText:ai,url:li||void 0}))},Fr=Gn=>{const{url:Cr}=xr(),ai=new we({error:Gn,status:ln.status||0,statusText:ln.statusText||"Unknown Error",url:Cr||void 0});Jt.error(ai)};let Or=!1;const zr=Gn=>{Or||(Jt.next(xr()),Or=!0);let Cr={type:Nt.DownloadProgress,loaded:Gn.loaded};Gn.lengthComputable&&(Cr.total=Gn.total),"text"===Te.responseType&&ln.responseText&&(Cr.partialText=ln.responseText),Jt.next(Cr)},Tr=Gn=>{let Cr={type:Nt.UploadProgress,loaded:Gn.loaded};Gn.lengthComputable&&(Cr.total=Gn.total),Jt.next(Cr)};return ln.addEventListener("load",On),ln.addEventListener("error",Fr),ln.addEventListener("timeout",Fr),ln.addEventListener("abort",Fr),Te.reportProgress&&(ln.addEventListener("progress",zr),null!==or&&ln.upload&&ln.upload.addEventListener("progress",Tr)),ln.send(or),Jt.next({type:Nt.Sent}),()=>{ln.removeEventListener("error",Fr),ln.removeEventListener("abort",Fr),ln.removeEventListener("load",On),ln.removeEventListener("timeout",Fr),Te.reportProgress&&(ln.removeEventListener("progress",zr),null!==or&&ln.upload&&ln.upload.removeEventListener("progress",Tr)),ln.readyState!==ln.DONE&&ln.abort()}})))}}return(M=x).\u0275fac=function(Te){return new(Te||M)(c.KVO(Ce.N0))},M.\u0275prov=c.jDH({token:M,factory:M.\u0275fac}),x})();const mr=new c.nKC(""),Pr=new c.nKC("",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),kr=new c.nKC("",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class ii{}let Ai=(()=>{var M;class x{constructor(Te,Ge,At){this.doc=Te,this.platform=Ge,this.cookieName=At,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const Te=this.doc.cookie||"";return Te!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,Ce._b)(Te,this.cookieName),this.lastCookieString=Te),this.lastToken}}return(M=x).\u0275fac=function(Te){return new(Te||M)(c.KVO(Ce.qQ),c.KVO(c.Agw),c.KVO(Pr))},M.\u0275prov=c.jDH({token:M,factory:M.\u0275fac}),x})();function Qr(M,x){const ne=M.url.toLowerCase();if(!(0,c.WQX)(mr)||"GET"===M.method||"HEAD"===M.method||ne.startsWith("http://")||ne.startsWith("https://"))return x(M);const Te=(0,c.WQX)(ii).getToken(),Ge=(0,c.WQX)(kr);return null!=Te&&!M.headers.has(Ge)&&(M=M.clone({headers:M.headers.set(Ge,Te)})),x(M)}var rt=function(M){return M[M.Interceptors=0]="Interceptors",M[M.LegacyInterceptors=1]="LegacyInterceptors",M[M.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",M[M.NoXsrfProtection=3]="NoXsrfProtection",M[M.JsonpSupport=4]="JsonpSupport",M[M.RequestsMadeViaParent=5]="RequestsMadeViaParent",M[M.Fetch=6]="Fetch",M}(rt||{});function Mt(M,x){return{\u0275kind:M,\u0275providers:x}}function ut(...M){const x=[fe,Jr,zt,{provide:Qe,useExisting:zt},{provide:Ze,useExisting:Jr},{provide:er,useValue:Qr,multi:!0},{provide:mr,useValue:!0},{provide:ii,useClass:Ai}];for(const ne of M)x.push(...ne.\u0275providers);return(0,c.EmA)(x)}const ye=new c.nKC("");let _n=(()=>{var M;class x{}return(M=x).\u0275fac=function(Te){return new(Te||M)},M.\u0275mod=c.$C({type:M}),M.\u0275inj=c.G2t({providers:[ut(Mt(rt.LegacyInterceptors,[{provide:ye,useFactory:ir},{provide:er,useExisting:ye,multi:!0}]))]}),x})()},4438:(Tn,gt,S)=>{"use strict";S.d(gt,{iLQ:()=>GE,sZ2:()=>yv,hnV:()=>oT,Hbi:()=>Z1,o8S:()=>Cd,BIS:()=>Ay,gRc:()=>_T,Ql9:()=>T1,Ocv:()=>O1,Z63:()=>fo,aKT:()=>Yu,uvJ:()=>Lo,zcH:()=>Za,bkB:()=>Bs,$GK:()=>bt,nKC:()=>Ge,zZn:()=>ps,_q3:()=>ZE,MKu:()=>eI,xe9:()=>uy,Co$:()=>xi,Vns:()=>so,SKi:()=>bo,Xx1:()=>Nn,Agw:()=>eh,PLl:()=>Ev,rOR:()=>Ju,sFG:()=>vm,_9s:()=>up,czy:()=>Yg,WPN:()=>oc,kdw:()=>lr,C4Q:()=>ap,NYb:()=>_1,giA:()=>rT,xvI:()=>WR,RxE:()=>QD,c1b:()=>pd,gXe:()=>ls,mal:()=>d_,L39:()=>SM,a0P:()=>FM,Ol2:()=>Q0,w6W:()=>ss,oH4:()=>pT,QZP:()=>qT,SmG:()=>V1,Rfq:()=>Qr,WQX:()=>Ne,Hps:()=>Lm,QuC:()=>po,EmA:()=>dl,Udg:()=>RM,fpN:()=>J1,HJs:()=>LM,N4e:()=>lo,vPA:()=>_d,O8t:()=>PM,H3F:()=>YD,H8p:()=>zl,KH2:()=>Qp,TgB:()=>Pp,wOt:()=>nt,WHO:()=>tT,e01:()=>nT,lNU:()=>ir,h9k:()=>$g,$MX:()=>Bi,ZF7:()=>uo,Kcf:()=>nl,e5t:()=>aI,UyX:()=>sI,cWb:()=>Py,osQ:()=>xv,H5H:()=>AE,Zy3:()=>Ot,mq5:()=>hC,JZv:()=>Jn,LfX:()=>Ut,plB:()=>il,jNT:()=>zE,zjR:()=>iT,TL$:()=>Tg,Tbb:()=>cr,rcV:()=>Rl,Vt3:()=>wp,Mj6:()=>us,GFd:()=>Wi,OA$:()=>Zi,Jv_:()=>DD,aNF:()=>TD,R7$:()=>a0,BMQ:()=>aE,AVh:()=>pE,vxM:()=>rC,wni:()=>eD,VBU:()=>_s,FsC:()=>$o,jDH:()=>fr,G2t:()=>gi,$C:()=>ul,EJ8:()=>Jo,rXU:()=>sd,nrm:()=>EE,eu8:()=>IE,bVm:()=>J_,qex:()=>Y_,k0s:()=>Q_,j41:()=>q_,RV6:()=>uC,xGo:()=>hf,KVO:()=>z,kS0:()=>$c,QTQ:()=>l0,bIt:()=>TE,lsd:()=>rD,qSk:()=>ef,XpG:()=>zC,nI1:()=>OD,bMT:()=>ND,SdG:()=>GC,NAR:()=>HC,Y8G:()=>dE,FS9:()=>wE,Mz_:()=>ry,lJ4:()=>wD,mGM:()=>nD,Dyx:()=>sC,Z7z:()=>oC,fX1:()=>iC,Njj:()=>bc,eBV:()=>Md,$dS:()=>fh,n$t:()=>Hf,xc7:()=>fE,DNE:()=>xp,EFF:()=>fD,JRh:()=>SE,SpI:()=>iy,Lme:()=>RE,DH7:()=>AD,mxI:()=>PE,R50:()=>ME,GBs:()=>tD}),S(467);let Z=null,Oe=!1,U=1;const ue=Symbol("SIGNAL");function oe(e){const t=Z;return Z=e,t}const Ce={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function Qe(e){if(Oe)throw new Error("");if(null===Z)return;Z.consumerOnSignalRead(e);const t=Z.nextProducerIndex++;Ue(Z),te.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function yt(e){Ue(e);for(let t=0;t0}function Ue(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=[])}function Fe(e){var t,r;null!==(t=e.liveConsumerNode)&&void 0!==t||(e.liveConsumerNode=[]),null!==(r=e.liveConsumerIndexOfThis)&&void 0!==r||(e.liveConsumerIndexOfThis=[])}let on=function tt(){throw new Error};function dt(){on()}let H=null;function ve(e,t){Dt()||dt(),e.equal(e.value,t)||(e.value=t,function Wt(e){var t;e.version++,function Ze(){U++}(),ht(e),null===(t=H)||void 0===t||t()}(e))}const De={...Ce,equal:function c(e,t){return Object.is(e,t)},value:void 0};const Kt=()=>{},rn={...Ce,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:e=>{null!==e.schedule&&e.schedule(e.ref)},hasRun:!1,cleanupFn:Kt};var Zn=S(1413),nr=S(8359),er=S(4412),yr=S(6354);const ir="https://g.co/ng/security#xss";class nt extends Error{constructor(t,r){super(Ot(t,r)),this.code=t}}function Ot(e,t){return`NG0${Math.abs(e)}${t?": "+t:""}`}function xn(e){return{toString:e}.toString()}const en="__parameters__";function Qn(e,t,r){return xn(()=>{const o=function Nr(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 g=new a(...d);return y.annotation=g,y;function y(A,B,Y){const de=A.hasOwnProperty(en)?A[en]:Object.defineProperty(A,en,{value:[]})[en];for(;de.length<=Y;)de.push(null);return(de[Y]=de[Y]||[]).push(g),A}}return r&&(a.prototype=Object.create(r.prototype)),a.prototype.ngMetadataName=e,a.annotationCls=a,a})}const Jn=globalThis;function ur(e){for(let t in e)if(e[t]===ur)return t;throw Error("Could not find renamed property on target object.")}function Pr(e,t){for(const r in t)t.hasOwnProperty(r)&&!e.hasOwnProperty(r)&&(e[r]=t[r])}function cr(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(cr).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 kr(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const Ai=ur({__forward_ref__:ur});function Qr(e){return e.__forward_ref__=Qr,e.toString=function(){return cr(this())},e}function pe(e){return rt(e)?e():e}function rt(e){return"function"==typeof e&&e.hasOwnProperty(Ai)&&e.__forward_ref__===Qr}function fr(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function gi(e){return{providers:e.providers||[],imports:e.imports||[]}}function pr(e){return te(e,M)||te(e,ne)}function Ut(e){return null!==pr(e)}function te(e,t){return e.hasOwnProperty(t)?e[t]:null}function ze(e){return e&&(e.hasOwnProperty(x)||e.hasOwnProperty(Te))?e[x]:null}const M=ur({\u0275prov:ur}),x=ur({\u0275inj:ur}),ne=ur({ngInjectableDef:ur}),Te=ur({ngInjectorDef:ur});class Ge{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=fr({token:this,providedIn:r.providedIn||"root",factory:r.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function Tr(e){return e&&!!e.\u0275providers}const Gn=ur({\u0275cmp:ur}),Cr=ur({\u0275dir:ur}),ai=ur({\u0275pipe:ur}),li=ur({\u0275mod:ur}),ei=ur({\u0275fac:ur}),Lr=ur({__NG_ELEMENT_ID__:ur}),mi=ur({__NG_ENV_ID__:ur});function Wn(e){return"string"==typeof e?e:null==e?"":String(e)}function oi(e,t){throw new nt(-201,!1)}var bt=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}(bt||{});let he;function le(){return he}function W(e){const t=he;return he=e,t}function $e(e,t,r){const o=pr(e);return o&&"root"==o.providedIn?void 0===o.value?o.value=o.factory():o.value:r&bt.Optional?null:void 0!==t?t:void oi()}const jt={},In="__NG_DI_FLAG__",Fn="ngTempTokenPath",j=/\n/gm,P="__source";let Ee;function sr(e){const t=Ee;return Ee=e,t}function ni(e,t=bt.Default){if(void 0===Ee)throw new nt(-203,!1);return null===Ee?$e(e,void 0,t):Ee.get(e,t&bt.Optional?null:void 0,t)}function z(e,t=bt.Default){return(le()||ni)(pe(e),t)}function Ne(e,t=bt.Default){return z(e,et(t))}function et(e){return typeof e>"u"||"number"==typeof e?e:(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function wt(e){const t=[];for(let r=0;rArray.isArray(r)?wi(r,t):t(r))}function Ni(e,t,r){t>=e.length?e.push(r):e.splice(t,0,r)}function ki(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Ji(e,t,r){let o=Io(e,t);return o>=0?e[1|o]=r:(o=~o,function Ti(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 Bo(e,t){const r=Io(e,t);if(r>=0)return e[1|r]}function Io(e,t){return function no(e,t,r){let o=0,a=e.length>>r;for(;a!==o;){const d=o+(a-o>>1),g=e[d<t?a=d:o=d+1}return~(a<t){g=d-1;break}}}for(;d-1){let d;for(;++ad?"":a[Y+1].toLowerCase(),2&o&&B!==de){if(Ae(o))return!1;g=!0}}}}else{if(!g&&!Ae(o)&&!Ae(A))return!1;if(g&&Ae(A))continue;g=!1,o=A|1&o}}return Ae(o)||g}function Ae(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+="."+g:4&o&&(a+=" "+g);else""!==a&&!Ae(g)&&(t+=wo(d,a),a=""),o=g,d=d||!Ae(o);r++}return""!==a&&(t+=wo(d,a)),t}function _s(e){return xn(()=>{var t;const r=La(e),o={...r,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===Ms.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||ls.Emulated,styles:e.styles||Kr,_:null,schemas:e.schemas||null,tView:null,id:""};jo(o);const a=e.dependencies;return o.directiveDefs=ys(a,!1),o.pipeDefs=ys(a,!0),o.id=function Hr(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 Gs(e){return Rr(e)||ji(e)}function fa(e){return null!==e}function ul(e){return xn(()=>({type:e.type,bootstrap:e.bootstrap||Kr,declarations:e.declarations||Kr,imports:e.imports||Kr,exports:e.exports||Kr,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function pa(e,t){if(null==e)return ko;const r={};for(const a in e)if(e.hasOwnProperty(a)){const d=e[a];let g,y,A=us.None;var o;Array.isArray(d)?(A=d[0],g=d[1],y=null!==(o=d[2])&&void 0!==o?o:g):(g=d,y=d),t?(r[g]=A!==us.None?[a,A]:a,t[g]=y):r[g]=a}return r}function $o(e){return xn(()=>{const t=La(e);return jo(t),t})}function Jo(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 Rr(e){return e[Gn]||null}function ji(e){return e[Cr]||null}function zi(e){return e[ai]||null}function po(e){const t=Rr(e)||ji(e)||zi(e);return null!==t&&t.standalone}function bi(e,t){const r=e[li]||null;if(!r&&!0===t)throw new Error(`Type ${cr(e)} does not have '\u0275mod' property.`);return r}function La(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||ko,exportAs:e.exportAs||null,standalone:!0===e.standalone,signals:!0===e.signals,selectors:e.selectors||Kr,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:pa(e.inputs,t),outputs:pa(e.outputs),debugInfo:null}}function jo(e){var t;null===(t=e.features)||void 0===t||t.forEach(r=>r(e))}function ys(e,t){if(!e)return null;const r=t?zi:Gs;return()=>("function"==typeof e?e():e).map(o=>r(o)).filter(fa)}function dl(e){return{\u0275providers:e}}function Ws(...e){return{\u0275providers:Va(0,e),\u0275fromNgModule:!0}}function Va(e,...t){const r=[],o=new Set;let a;const d=g=>{r.push(g)};return wi(t,g=>{const y=g;hl(y,d,[],o)&&(a||(a=[]),a.push(y))}),void 0!==a&&Es(a,d),r}function Es(e,t){for(let r=0;r{t(d,o)})}}function hl(e,t,r,o){if(!(e=pe(e)))return!1;let a=null,d=ze(e);const g=!d&&Rr(e);if(d||g){if(g&&!g.standalone)return!1;a=e}else{const A=e.ngModule;if(d=ze(A),!d)return!1;a=A}const y=o.has(a);if(g){if(y)return!1;if(o.add(a),g.dependencies){const A="function"==typeof g.dependencies?g.dependencies():g.dependencies;for(const B of A)hl(B,t,r,o)}}else{if(!d)return!1;{if(null!=d.imports&&!y){let B;o.add(a);try{wi(d.imports,Y=>{hl(Y,t,r,o)&&(B||(B=[]),B.push(Y))})}finally{}void 0!==B&&Es(B,t)}if(!y){const B=qr(a)||(()=>new a);t({provide:a,useFactory:B,deps:Kr},a),t({provide:Rs,useValue:a,multi:!0},a),t({provide:fo,useValue:()=>z(a),multi:!0},a)}const A=d.providers;if(null!=A&&!y){const B=e;Ul(A,Y=>{t(Y,B)})}}}return a!==e&&void 0!==e.providers}function Ul(e,t){for(let r of e)Tr(r)&&(r=r.\u0275providers),Array.isArray(r)?Ul(r,t):t(r)}const $l=ur({provide:String,useValue:ur});function jl(e){return null!==e&&"object"==typeof e&&$l in e}function Zo(e){return"function"==typeof e}const zl=new Ge(""),es={},Su={};let Hl;function ts(){return void 0===Hl&&(Hl=new Hs),Hl}class Lo{}class Ns extends Lo{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,Ks(t,g=>this.processProvider(g)),this.records.set(ka,$a(void 0,this)),a.has("environment")&&this.records.set(Lo,$a(void 0,this));const d=this.records.get(zl);null!=d&&"string"==typeof d.value&&this.scopes.add(d.value),this.injectorDefTypes=new Set(this.get(Rs,Kr,bt.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;const t=oe(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(),oe(t)}}onDestroy(t){return this.assertNotDestroyed(),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){this.assertNotDestroyed();const r=sr(this),o=W(void 0);try{return t()}finally{sr(r),W(o)}}get(t,r=jt,o=bt.Default){if(this.assertNotDestroyed(),t.hasOwnProperty(mi))return t[mi](this);o=et(o);const d=sr(this),g=W(void 0);try{if(!(o&bt.SkipSelf)){let A=this.records.get(t);if(void 0===A){const B=function _a(e){return"function"==typeof e||"object"==typeof e&&e instanceof Ge}(t)&&pr(t);A=B&&this.injectableDefInScope(B)?$a(Ui(t),es):null,this.records.set(t,A)}if(null!=A)return this.hydrate(t,A)}return(o&bt.Self?ts():this.parent).get(t,r=o&bt.Optional&&r===jt?null:r)}catch(y){if("NullInjectorError"===y.name){if((y[Fn]=y[Fn]||[]).unshift(cr(t)),d)throw y;return function sn(e,t,r,o){const a=e[Fn];throw t[P]&&a.unshift(t[P]),e.message=function cn(e,t,r,o=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let a=cr(t);if(Array.isArray(t))a=t.map(cr).join(" -> ");else if("object"==typeof t){let d=[];for(let g in t)if(t.hasOwnProperty(g)){let y=t[g];d.push(g+":"+("string"==typeof y?JSON.stringify(y):cr(y)))}a=`{${d.join(", ")}}`}return`${r}${o?"("+o+")":""}[${a}]: ${e.replace(j,"\n ")}`}("\n"+e.message,a,r,o),e.ngTokenPath=a,e[Fn]=null,e}(y,t,"R3InjectorError",this.source)}throw y}finally{W(g),sr(d)}}resolveInjectorInitializers(){const t=oe(null),r=sr(this),o=W(void 0);try{const d=this.get(fo,Kr,bt.Self);for(const g of d)g()}finally{sr(r),W(o),oe(t)}}toString(){const t=[],r=this.records;for(const o of r.keys())t.push(cr(o));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new nt(205,!1)}processProvider(t){let r=Zo(t=pe(t))?t:pe(t&&t.provide);const o=function Ua(e){return jl(e)?$a(void 0,e.useValue):$a(ma(e),es)}(t);if(!Zo(t)&&!0===t.multi){let a=this.records.get(r);a||(a=$a(void 0,es,!0),a.factory=()=>wt(a.multi),this.records.set(r,a)),r=t,a.multi.push(t)}this.records.set(r,o)}hydrate(t,r){const o=oe(null);try{return r.value===es&&(r.value=Su,r.value=r.factory()),"object"==typeof r.value&&r.value&&function va(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(r.value)&&this._ngOnDestroyHooks.add(r.value),r.value}finally{oe(o)}}injectableDefInScope(t){if(!t.providedIn)return!1;const r=pe(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 Ui(e){const t=pr(e),r=null!==t?t.factory:qr(e);if(null!==r)return r;if(e instanceof Ge)throw new nt(204,!1);if(e instanceof Function)return function ga(e){if(e.length>0)throw new nt(204,!1);const r=function ee(e){return e&&(e[M]||e[ne])||null}(e);return null!==r?()=>r.factory(e):()=>new e}(e);throw new nt(204,!1)}function ma(e,t,r){let o;if(Zo(e)){const a=pe(e);return qr(a)||Ui(a)}if(jl(e))o=()=>pe(e.useValue);else if(function Os(e){return!(!e||!e.useFactory)}(e))o=()=>e.useFactory(...wt(e.deps||[]));else if(function Is(e){return!(!e||!e.useExisting)}(e))o=()=>z(pe(e.useExisting));else{const a=pe(e&&(e.useClass||e.provide));if(!function zo(e){return!!e.deps}(e))return qr(a)||Ui(a);o=()=>new a(...wt(e.deps))}return o}function $a(e,t,r=!1){return{factory:e,value:t,multi:r?[]:void 0}}function Ks(e,t){for(const r of e)Array.isArray(r)?Ks(r,t):r&&Tr(r)?Ks(r.\u0275providers,t):t(r)}function lo(e,t){e instanceof Ns&&e.assertNotDestroyed();const o=sr(e),a=W(void 0);try{return t()}finally{sr(o),W(a)}}function Gl(){return void 0!==le()||null!=function it(){return Ee}()}function ya(e){if(!Gl())throw new nt(-203,!1)}const vi=0,Rn=1,Kn=2,Di=3,qi=4,Si=5,Qi=6,Ho=7,_i=8,Ki=9,ks=10,Br=11,Xs=12,vc=13,fl=14,Gi=15,Co=16,Cs=17,Go=18,qs=19,_c=20,Mi=21,Qs=22,cs=23,Gr=25,Ea=1,Wo=7,Ia=9,Xi=10;var Ru=function(e){return e[e.None=0]="None",e[e.HasTransplantedViews=2]="HasTransplantedViews",e}(Ru||{});function di(e){return Array.isArray(e)&&"object"==typeof e[Ea]}function Do(e){return Array.isArray(e)&&!0===e[Ea]}function Wl(e){return!!(4&e.flags)}function rs(e){return e.componentOffset>-1}function Ys(e){return!(1&~e.flags)}function ds(e){return!!e.template}function Kl(e){return!!(512&e[Kn])}class $i{constructor(t,r,o){this.previousValue=t,this.currentValue=r,this.firstChange=o}isFirstChange(){return this.firstChange}}function yi(e,t,r,o){null!==t?t.applyValueToInputSignal(t,o):e[r]=o}function Zi(){return Js}function Js(e){return e.type.prototype.ngOnChanges&&(e.setInput=Ga),Ha}function Ha(){const e=hs(this),t=null==e?void 0:e.current;if(t){const r=e.previous;if(r===ko)e.previous=t;else for(let o in t)r[o]=t[o];e.current=null,this.ngOnChanges(t)}}function Ga(e,t,r,o,a){const d=this.declaredInputs[o],g=hs(e)||function Ta(e,t){return e[Fs]=t}(e,{previous:ko,current:null}),y=g.current||(g.current={}),A=g.previous,B=A[d];y[d]=new $i(B&&B.currentValue,r,A===ko),yi(e,t,a,r)}Zi.ngInherit=!0;const Fs="__ngSimpleChanges__";function hs(e){return e[Fs]||null}const Ds=function(e,t,r){},ng="svg";let Pu=!1;function Pi(e){for(;Array.isArray(e);)e=e[vi];return e}function Ka(e,t){return Pi(t[e])}function is(e,t){return Pi(t[e.index])}function Ql(e,t){return e.data[t]}function Ro(e,t){const r=t[e];return di(r)?r:r[vi]}function Ic(e){return!(128&~e[Kn])}function Ts(e,t){return null==t?null:e[t]}function Cc(e){e[Cs]=0}function Sd(e){1024&e[Kn]||(e[Kn]|=1024,Ic(e)&&Ls(e))}function Yl(e){var t;return!!(9216&e[Kn]||null!==(t=e[cs])&&void 0!==t&&t.dirty)}function ml(e){var t;if(null===(t=e[ks].changeDetectionScheduler)||void 0===t||t.notify(1),Yl(e))Ls(e);else if(64&e[Kn])if(function ba(){return Pu}())e[Kn]|=1024,Ls(e);else{var r;null===(r=e[ks].changeDetectionScheduler)||void 0===r||r.notify()}}function Ls(e){var t;null===(t=e[ks].changeDetectionScheduler)||void 0===t||t.notify();let r=Zs(e);for(;null!==r&&!(8192&r[Kn])&&(r[Kn]|=8192,Ic(r));)r=Zs(r)}function Xa(e,t){if(!(256&~e[Kn]))throw new nt(911,!1);null===e[Mi]&&(e[Mi]=[]),e[Mi].push(t)}function Zs(e){const t=e[Di];return Do(t)?t[Di]:t}const gr={lFrame:Zh(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function wa(){return gr.bindingsEnabled}function Zl(){return null!==gr.skipHydrationRootTNode}function an(){return gr.lFrame.lView}function Ei(){return gr.lFrame.tView}function Md(e){return gr.lFrame.contextLView=e,e[_i]}function bc(e){return gr.lFrame.contextLView=null,e}function Vi(){let e=Qh();for(;null!==e&&64===e.type;)e=e.parent;return e}function Qh(){return gr.lFrame.currentTNode}function na(e,t){const r=gr.lFrame;r.currentTNode=e,r.isParent=t}function Ou(){return gr.lFrame.isParent}function Nu(){gr.lFrame.isParent=!1}function go(){const e=gr.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function bs(){return gr.lFrame.bindingIndex++}function oa(e){const t=gr.lFrame,r=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,r}function xd(e,t){const r=gr.lFrame;r.bindingIndex=r.bindingRootIndex=e,Od(t)}function Od(e){gr.lFrame.currentDirectiveIndex=e}function Nd(){return gr.lFrame.currentQueryIndex}function Rc(e){gr.lFrame.currentQueryIndex=e}function Mc(e){const t=e[Rn];return 2===t.type?t.declTNode:1===t.type?e[Si]:null}function Jh(e,t,r){if(r&bt.SkipSelf){let a=t,d=e;for(;!(a=a.parent,null!==a||r&bt.Host||(a=Mc(d),null===a||(d=d[fl],10&a.type))););if(null===a)return!1;t=a,e=d}const o=gr.lFrame=Fu();return o.currentTNode=t,o.lView=e,!0}function Sa(e){const t=Fu(),r=e[Rn];gr.lFrame=t,t.currentTNode=r.firstChild,t.lView=e,t.tView=r,t.contextLView=e,t.bindingIndex=r.bindingStartIndex,t.inI18n=!1}function Fu(){const e=gr.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 kd(){const e=gr.lFrame;return gr.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const Pc=kd;function Lu(){const e=kd();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 mo(){return gr.lFrame.selectedIndex}function Ra(e){gr.lFrame.selectedIndex=e}function Fi(){const e=gr.lFrame;return Ql(e.tView,e.selectedIndex)}function ef(){gr.lFrame.currentNamespace=ng}let Bu=!0;function Uu(){return Bu}function Vs(e){Bu=e}function $u(e,t){for(let B=t.directiveStart,Y=t.directiveEnd;B=o)break}else t[A]<0&&(e[Cs]+=65536),(y>14>16&&(3&e[Kn])===t&&(e[Kn]+=16384,El(y,d)):El(y,d)}const Il=-1;class Al{constructor(t,r,o){this.factory=t,this.resolving=!1,this.canSeeViewProviders=r,this.injectImpl=o}}function Cl(e){return e!==Il}function Ma(e){return 32767&e}function Dl(e,t){let r=function Fc(e){return e>>16}(e),o=t;for(;r>0;)o=o[fl],r--;return o}let zu=!0;function eu(e){const t=zu;return zu=e,t}const lf=255,Bd=5;let Lc=0;const ws={};function Hu(e,t){const r=Ud(e,t);if(-1!==r)return r;const o=t[Rn];o.firstCreatePass&&(e.injectorIndex=t.length,Mo(o.data,e),Mo(t,null),Mo(o.blueprint,null));const a=Qa(e,t),d=e.injectorIndex;if(Cl(a)){const g=Ma(a),y=Dl(a,t),A=y[Rn].data;for(let B=0;B<8;B++)t[d+B]=y[g+B]|A[g+B]}return t[d+8]=a,d}function Mo(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Ud(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=Ja(a),null===o)return Il;if(r++,a=a[fl],-1!==o.injectorIndex)return o.injectorIndex|r<<16}return Il}function Tl(e,t,r){!function hv(e,t,r){let o;"string"==typeof r?o=r.charCodeAt(0)||0:r.hasOwnProperty(Lr)&&(o=r[Lr]),null==o&&(o=r[Lr]=Lc++);const a=o&lf;t.data[e+(a>>Bd)]|=1<=0?t&lf:df:t}(r);if("function"==typeof d){if(!Jh(t,e,o))return o&bt.Host?tu(a,0,o):$d(t,r,o,a);try{let g;if(g=d(o),null!=g||o&bt.Optional)return g;oi()}finally{Pc()}}else if("number"==typeof d){let g=null,y=Ud(e,t),A=Il,B=o&bt.Host?t[Gi][Si]:null;for((-1===y||o&bt.SkipSelf)&&(A=-1===y?Qa(e,t):t[y+8],A!==Il&&nu(o,!1)?(g=t[Rn],y=Ma(A),t=Dl(A,t)):y=-1);-1!==y;){const Y=t[Rn];if(Uc(d,y,Y.data)){const de=lg(y,t,r,g,o,B);if(de!==ws)return de}A=t[y+8],A!==Il&&nu(o,t[Rn].data[y+8]===B)&&Uc(d,y,t)?(g=Y,y=Ma(A),t=Dl(A,t)):y=-1}}return a}function lg(e,t,r,o,a,d){const g=t[Rn],y=g.data[e+8],Y=jd(y,g,r,null==o?rs(y)&&zu:o!=g&&!!(3&y.type),a&bt.Host&&d===y);return null!==Y?bl(t,g,Y,y):ws}function jd(e,t,r,o,a){const d=e.providerIndexes,g=t.data,y=1048575&d,A=e.directiveStart,Y=d>>20,We=a?y+Y:e.directiveEnd;for(let ft=o?y:y+Y;ft=A&&Ft.type===r)return ft}if(a){const ft=g[A];if(ft&&ds(ft)&&ft.type===r)return A}return null}function bl(e,t,r,o){let a=e[r];const d=t.data;if(function sf(e){return e instanceof Al}(a)){const g=a;g.resolving&&function Ci(e,t){throw t&&t.join(" > "),new nt(-200,e)}(function Hn(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():Wn(e)}(d[r]));const y=eu(g.canSeeViewProviders);g.resolving=!0;const B=g.injectImpl?W(g.injectImpl):null;Jh(e,o,bt.Default);try{a=e[r]=g.factory(void 0,d,e,o),t.firstCreatePass&&r>=o.directiveStart&&function ag(e,t,r){const{ngOnChanges:o,ngOnInit:a,ngDoCheck:d}=t.type.prototype;if(o){var g,y;const de=Js(t);(null!==(g=r.preOrderHooks)&&void 0!==g?g:r.preOrderHooks=[]).push(e,de),(null!==(y=r.preOrderCheckHooks)&&void 0!==y?y:r.preOrderCheckHooks=[]).push(e,de)}var A,B,Y;a&&(null!==(A=r.preOrderHooks)&&void 0!==A?A:r.preOrderHooks=[]).push(0-e,a),d&&((null!==(B=r.preOrderHooks)&&void 0!==B?B:r.preOrderHooks=[]).push(e,d),(null!==(Y=r.preOrderCheckHooks)&&void 0!==Y?Y:r.preOrderCheckHooks=[]).push(e,d))}(r,d[r],t)}finally{null!==B&&W(B),eu(y),g.resolving=!1,Pc()}}return a}function Uc(e,t,r){return!!(r[t+(e>>Bd)]&1<{const t=e.prototype.constructor,r=t[ei]||Gu(t),o=Object.prototype;let a=Object.getPrototypeOf(e.prototype).constructor;for(;a&&a!==o;){const d=a[ei]||Gu(a);if(d&&d!==r)return d;a=Object.getPrototypeOf(a)}return d=>new d})}function Gu(e){return rt(e)?()=>{const t=Gu(pe(e));return t&&t()}:qr(e)}function Ja(e){const t=e[Rn],r=t.type;return 2===r?t.declTNode:1===r?e[Si]:null}function $c(e){return function Vc(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 dg({name:""},a,o,"");{var d;const g=null!==(d=o.name)&&void 0!==d?d:"";return dg({name:g},o.parent,o.providers,g)}}}return(e=t).THROW_IF_NOT_FOUND=jt,e.NULL=new Hs,e.\u0275prov=fr({token:e,providedIn:"any",factory:()=>z(ka)}),e.__NG_ELEMENT_ID__=-1,t})();function zc(e){return e.ngOriginalError}class Za{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&&zc(t);for(;r&&zc(r);)r=zc(r);return r||null}}const Gd=new Ge("",{providedIn:"root",factory:()=>Ne(Za).handleError.bind(void 0)});let Xu=(()=>{var e;class t{}return(e=t).__NG_ELEMENT_ID__=hg,e.__NG_ENV_ID__=r=>r,t})();class If extends Xu{constructor(t){super(),this._lView=t}onDestroy(t){return Xa(this._lView,t),()=>function Jl(e,t){if(null===e[Mi])return;const r=e[Mi].indexOf(t);-1!==r&&e[Mi].splice(r,1)}(this._lView,t)}}function hg(){return new If(an())}function Qu(){return la(Vi(),an())}function la(e,t){return new Yu(is(e,t))}let Yu=(()=>{class t{constructor(o){this.nativeElement=o}}return t.__NG_ELEMENT_ID__=Qu,t})();function iu(e){return e instanceof Yu?e.nativeElement:e}function Af(e){return t=>{setTimeout(e,void 0,t)}}const Bs=class pv extends Zn.B{constructor(t=!1){var r;super(),this.destroyRef=void 0,this.__isAsync=t,Gl()&&(this.destroyRef=null!==(r=Ne(Xu,{optional:!0}))&&void 0!==r?r:void 0)}emit(t){const r=oe(null);try{super.next(t)}finally{oe(r)}}subscribe(t,r,o){let a=t,d=r||(()=>null),g=o;if(t&&"object"==typeof t){var y,A,B;const de=t;a=null===(y=de.next)||void 0===y?void 0:y.bind(de),d=null===(A=de.error)||void 0===A?void 0:A.bind(de),g=null===(B=de.complete)||void 0===B?void 0:B.bind(de)}this.__isAsync&&(d=Af(d),a&&(a=Af(a)),g&&(g=Af(g)));const Y=super.subscribe({next:a,error:d,complete:g});return t instanceof nr.yU&&t.add(Y),Y}};function Cf(){return this._results[Symbol.iterator]()}class Ju{get changes(){var t;return null!==(t=this._changes)&&void 0!==t?t:this._changes=new Bs}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=Ju.prototype;r[Symbol.iterator]||(r[Symbol.iterator]=Cf)}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 br(e){return e.flat(Number.POSITIVE_INFINITY)}(t);(this._changesDetected=!function jr(e,t,r){if(e.length!==t.length)return!1;for(let o=0;obg}),bg="ng",Ev=new Ge(""),eh=new Ge("",{providedIn:"platform",factory:()=>"unknown"}),Ay=new Ge("",{providedIn:"root",factory:()=>{var e;return(null===(e=function lu(){if(void 0!==Dg)return Dg;if(typeof document<"u")return document;throw new nt(210,!1)}().body)||void 0===e||null===(e=e.querySelector("[ngCspNonce]"))||void 0===e?void 0:e.getAttribute("ngCspNonce"))||null}});let Dv=()=>null;function oh(e,t,r=!1){return Dv(e,t,r)}const Ng=new Ge("",{providedIn:"root",factory:()=>!1});let Lf,uh;function Qc(e){var t;return(null===(t=function kg(){if(void 0===Lf&&(Lf=null,Jn.trustedTypes))try{Lf=Jn.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Lf}())||void 0===t?void 0:t.createHTML(e))||e}function Fg(e){var t;return(null===(t=function Vf(){if(void 0===uh&&(uh=null,Jn.trustedTypes))try{uh=Jn.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return uh}())||void 0===t?void 0:t.createScriptURL(e))||e}class du{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${ir})`}}class Uf extends du{getTypeName(){return"HTML"}}class Ii extends du{getTypeName(){return"Style"}}class Mv extends du{getTypeName(){return"Script"}}class Pv extends du{getTypeName(){return"URL"}}class ch extends du{getTypeName(){return"ResourceURL"}}function Rl(e){return e instanceof du?e.changingThisBreaksApplicationSecurity:e}function uo(e,t){const r=function vo(e){return e instanceof du&&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 ${ir})`)}return r===t}function nl(e){return new Uf(e)}function Py(e){return new Ii(e)}function sI(e){return new Mv(e)}function xv(e){return new Pv(e)}function aI(e){return new ch(e)}class xy{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{const r=(new window.DOMParser).parseFromString(Qc(t),"text/html").body;return null===r?this.inertDocumentHelper.getInertBodyElement(t):(r.removeChild(r.firstChild),r)}catch{return null}}}class Vg{constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(t){const r=this.inertDocument.createElement("template");return r.innerHTML=Qc(t),r}}const lI=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Bi(e){return(e=String(e)).match(lI)?e:"unsafe:"+e}function hu(e){const t={};for(const r of e.split(","))t[r]=!0;return t}function dh(...e){const t={};for(const r of e)for(const o in r)r.hasOwnProperty(o)&&(t[o]=!0);return t}const ro=hu("area,br,col,hr,img,wbr"),Bg=hu("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Ny=hu("rp,rt"),Ov=dh(ro,dh(Bg,hu("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),dh(Ny,hu("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),dh(Ny,Bg)),Nv=hu("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Fy=dh(Nv,hu("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),hu("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),uI=hu("script,style,template");class kv{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let r=t.firstChild,o=!0,a=[];for(;r;)if(r.nodeType===Node.ELEMENT_NODE?o=this.startElement(r):r.nodeType===Node.TEXT_NODE?this.chars(r.nodeValue):this.sanitizedSomething=!0,o&&r.firstChild)a.push(r),r=ic(r);else for(;r;){r.nodeType===Node.ELEMENT_NODE&&this.endElement(r);let d=Ly(r);if(d){r=d;break}r=a.pop()}return this.buf.join("")}startElement(t){const r=fu(t).toLowerCase();if(!Ov.hasOwnProperty(r))return this.sanitizedSomething=!0,!uI.hasOwnProperty(r);this.buf.push("<"),this.buf.push(r);const o=t.attributes;for(let a=0;a"),!0}endElement(t){const r=fu(t).toLowerCase();Ov.hasOwnProperty(r)&&!ro.hasOwnProperty(r)&&(this.buf.push(""))}chars(t){this.buf.push(Fv(t))}}function Ly(e){const t=e.nextSibling;if(t&&e!==t.previousSibling)throw Vy(t);return t}function ic(e){const t=e.firstChild;if(t&&function hh(e,t){return(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}(e,t))throw Vy(t);return t}function fu(e){const t=e.nodeName;return"string"==typeof t?t:"FORM"}function Vy(e){return new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`)}const Yc=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Ug=/([^\#-~ |!])/g;function Fv(e){return e.replace(/&/g,"&").replace(Yc,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(Ug,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}let $f;function $g(e,t){let r=null;try{$f=$f||function Lg(e){const t=new Vg(e);return function Oy(){try{return!!(new window.DOMParser).parseFromString(Qc(""),"text/html")}catch{return!1}}()?new xy(t):t}(e);let o=t?String(t):"";r=$f.getInertBodyElement(o);let a=5,d=o;do{if(0===a)throw new Error("Failed to sanitize html because the input is unstable");a--,o=d,d=r.innerHTML,r=$f.getInertBodyElement(o)}while(o!==d);return Qc((new kv).sanitizeChildren(jf(r)||r))}finally{if(r){const o=jf(r)||r;for(;o.firstChild;)o.removeChild(o.firstChild)}}}function jf(e){return"content"in e&&function zf(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var oc=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}(oc||{});function fh(e){const t=Pa();return t?t.sanitize(oc.STYLE,e)||"":uo(e,"Style")?Rl(e):Wn(e)}function Jc(e){const t=Pa();return t?t.sanitize(oc.URL,e)||"":uo(e,"URL")?Rl(e):Bi(Wn(e))}function jg(e){const t=Pa();if(t)return Fg(t.sanitize(oc.RESOURCE_URL,e)||"");if(uo(e,"ResourceURL"))return Fg(Rl(e));throw new nt(904,!1)}function Hf(e,t,r){return function Wg(e,t){return"src"===t&&("embed"===e||"frame"===e||"iframe"===e||"media"===e||"script"===e)||"href"===t&&("base"===e||"link"===e)?jg:Jc}(t,r)(e)}function Pa(){const e=an();return e&&e[ks].sanitizer}const Vv=/^>|^->||--!>|)/g,Kg="\u200b$1\u200b";function ca(e){return e instanceof Function?e():e}var Yg=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(Yg||{});let zv;function Jg(e,t){return zv(e,t)}function vh(e,t,r,o,a){if(null!=o){let d,g=!1;Do(o)?d=o:di(o)&&(g=!0,o=o[vi]);const y=Pi(o);0===e&&null!==r?null==a?od(t,r,y):id(t,r,y,a||null,!0):1===e&&null!==r?id(t,r,y,a||null,!0):2===e?function Jf(e,t,r){const o=Yf(e,t);o&&function vI(e,t,r,o){e.removeChild(t,r,o)}(e,o,t,r)}(t,y,g):3===e&&t.destroyNode(y),null!=d&&function yI(e,t,r,o,a){const d=r[Wo];d!==Pi(r)&&vh(t,e,o,d,a);for(let y=Xi;yt.replace(Bv,Kg))}(t))}function xl(e,t,r){return e.createElement(t,r)}function Hv(e,t){var r;null===(r=t[ks].changeDetectionScheduler)||void 0===r||r.notify(1),xa(e,t,t[Br],2,null,null)}function Gv(e,t){const r=e[Ia],o=r.indexOf(t);r.splice(o,1)}function qf(e,t){if(e.length<=Xi)return;const r=Xi+t,o=e[r];if(o){const a=o[Co];null!==a&&a!==e&&Gv(a,o),t>0&&(e[r-1][qi]=o[qi]);const d=ki(e,Xi+t);!function qy(e,t){Hv(e,t),t[vi]=null,t[Si]=null}(o[Rn],o);const g=d[Go];null!==g&&g.detachView(d[Rn]),o[Di]=null,o[qi]=null,o[Kn]&=-129}return o}function Zg(e,t){if(!(256&t[Kn])){const r=t[Br];r.destroyNode&&xa(e,t,r,3,null,null),function pu(e){let t=e[Xs];if(!t)return em(e[Rn],e);for(;t;){let r=null;if(di(t))r=t[Xs];else{const o=t[Xi];o&&(r=o)}if(!r){for(;t&&!t[qi]&&t!==e;)di(t)&&em(t[Rn],t),t=t[Di];null===t&&(t=e),di(t)&&em(t[Rn],t),r=t&&t[qi]}t=r}}(t)}}function em(e,t){if(256&t[Kn])return;const r=oe(null);try{t[Kn]&=-129,t[Kn]|=256,t[cs]&&mt(t[cs]),function Yy(e,t){let r;if(null!=e&&null!=(r=e.destroyHooks))for(let o=0;o=0?o[g]():o[-g].unsubscribe(),d+=2}else r[d].call(o[r[d+1]]);null!==o&&(t[Ho]=null);const a=t[Mi];if(null!==a){t[Mi]=null;for(let d=0;d-1){const{encapsulation:d}=e.data[o.directiveStart+a];if(d===ls.None||d===ls.Emulated)return null}return is(o,r)}}(e,t.parent,r)}function id(e,t,r,o,a){e.insertBefore(t,r,o,a)}function od(e,t,r){e.appendChild(t,r)}function Qf(e,t,r,o,a){null!==o?id(e,t,r,o,a):od(e,t,r)}function Yf(e,t){return e.parentNode(t)}function Kv(e,t,r){return e0(e,t,r)}let qv,e0=function Xv(e,t,r){return 40&e.type?is(e,r):null};function tm(e,t,r,o){const a=Wv(e,o,t),d=t[Br],y=Kv(o.parent||t[Si],o,t);if(null!=a)if(Array.isArray(r))for(let A=0;AGr&&im(e,t,Gr,!1),Ds(g?2:0,a),r(o,a)}finally{Ra(d),Ds(g?3:1,a)}}function Jv(e,t,r){if(Wl(t)){const o=oe(null);try{const d=t.directiveEnd;for(let g=t.directiveStart;gnull;function e_(e,t,r,o,a){for(let g in t){var d;if(!t.hasOwnProperty(g))continue;const y=t[g];if(void 0===y)continue;null!==(d=o)&&void 0!==d||(o={});let A,B=us.None;Array.isArray(y)?(A=y[0],B=y[1]):A=y;let Y=g;if(null!==a){if(!a.hasOwnProperty(g))continue;Y=a[g]}0===e?g0(o,r,Y,A,B):g0(o,r,Y,A)}return o}function g0(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 Us(e,t,r,o,a,d,g,y){const A=is(t,r);let Y,B=t.inputs;!y&&null!=B&&(Y=B[o])?(i_(e,r,Y,o,a),rs(t)&&function wI(e,t){const r=Ro(t,e);16&r[Kn]||(r[Kn]|=64)}(r,t.index)):3&t.type&&(o=function bI(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(o),a=null!=g?g(a,t.value||"",o):a,d.setProperty(A,o,a))}function t_(e,t,r,o){if(wa()){const a=null===o?null:{"":-1},d=function OI(e,t){const r=e.directiveRegistry;let o=null,a=null;if(r)for(let g=0;g0;){const r=e[--t];if("number"==typeof r&&r<0)return r}return 0})(g)!=y&&g.push(y),g.push(r,o,d)}}(e,t,o,ep(e,r,a.hostVars,ti),a)}function Ol(e,t,r,o,a,d){const g=is(e,t);!function r_(e,t,r,o,a,d,g){if(null==d)e.removeAttribute(t,a,r);else{const y=null==g?Wn(d):g(d,o||"",a);e.setAttribute(t,a,y,r)}}(t[Br],g,d,e.value,r,o,a)}function VI(e,t,r,o,a,d){const g=d[t];if(null!==g)for(let y=0;y0&&(r[a-1][qi]=t),o{Ls(e.lView)},consumerOnSignalRead(){this.lView[cs]=this}},w0=100;function hm(e,t=!0,r=0){const o=e[ks],a=o.rendererFactory;var g;null===(g=a.begin)||void 0===g||g.call(a);try{!function WI(e,t){s_(e,t);let r=0;for(;Yl(e);){if(r===w0)throw new nt(103,!1);r++,s_(e,1)}}(e,r)}catch(B){throw t&&um(e,B),B}finally{var y,A;null===(y=a.end)||void 0===y||y.call(a),null===(A=o.inlineEffectRunner)||void 0===A||A.flush()}}function KI(e,t,r,o){var a;const d=t[Kn];if(!(256&~d))return;null===(a=t[ks].inlineEffectRunner)||void 0===a||a.flush(),Sa(t);let y=null,A=null;(function XI(e){return 2!==e.type})(e)&&(A=function jI(e){var t;return null!==(t=e[cs])&&void 0!==t?t:function zI(e){var t;const r=null!==(t=b0.pop())&&void 0!==t?t:Object.create(GI);return r.lView=e,r}(e)}(t),y=_t(A));try{Cc(t),function wc(e){return gr.lFrame.bindingIndex=e}(e.bindingStartIndex),null!==r&&c0(e,t,r,2,o);const B=!(3&~d);if(B){const We=e.preOrderCheckHooks;null!==We&&xc(t,We,null)}else{const We=e.preOrderHooks;null!==We&&sa(t,We,0,null),aa(t,0)}if(function qI(e){for(let t=vg(e);null!==t;t=bf(t)){if(!(t[Kn]&Ru.HasTransplantedViews))continue;const r=t[Ia];for(let o=0;o-1&&(qf(t,o),ki(r,o))}this._attachedToViewContainer=!1}Zg(this._lView[Rn],this._lView)}onDestroy(t){Xa(this._lView,t)}markForCheck(){op(this._cdRefInjectingView||this._lView)}detach(){this._lView[Kn]&=-129}reattach(){ml(this._lView),this._lView[Kn]|=128}detectChanges(){this._lView[Kn]|=1024,hm(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new nt(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,Hv(this._lView[Rn],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new nt(902,!1);this._appRef=t,ml(this._lView)}}let ap=(()=>{class t{}return t.__NG_ELEMENT_ID__=JI,t})();const P0=ap,YI=class extends P0{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=np(this._declarationLView,this._declarationTContainer,t,{embeddedViewInjector:r,dehydratedView:o});return new sp(a)}};function JI(){return fm(Vi(),an())}function fm(e,t){return 4&e.type?new YI(t,e,la(e,t)):null}let gm=()=>null;function _o(e,t){return gm(e,t)}class mm{}class Ch{}class l_{}class lp{resolveComponentFactory(t){throw function Dh(e){const t=Error(`No component factory found for ${cr(e)}.`);return t.ngComponent=e,t}(t)}}let dc=(()=>{class t{}return t.NULL=new lp,t})();class up{}let vm=(()=>{class t{constructor(){this.destroyNode=null}}return t.__NG_ELEMENT_ID__=()=>function _m(){const e=an(),r=Ro(Vi().index,e);return(di(r)?r:e)[Br]}(),t})(),ym=(()=>{var e;class t{}return(e=t).\u0275prov=fr({token:e,providedIn:"root",factory:()=>null}),t})();const cp={},c_=new Set;function Oa(e){var t,r;c_.has(e)||(c_.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 Em(...e){}class bo{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:o=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Bs(!1),this.onMicrotaskEmpty=new Bs(!1),this.onStable=new Bs(!1),this.onError=new Bs(!1),typeof Zone>"u")throw new nt(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 Im(){const e="function"==typeof Jn.requestAnimationFrame;let t=Jn[e?"requestAnimationFrame":"setTimeout"],r=Jn[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 os(e){const t=()=>{!function Cm(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(Jn,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,Ko(e),e.isCheckStableRunning=!0,Th(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),Ko(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(r,o,a,d,g,y)=>{if(function L0(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,g,y);try{return bh(e),r.invokeTask(a,d,g,y)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===d.type||e.shouldCoalesceRunChangeDetection)&&t(),Dm(e)}},onInvoke:(r,o,a,d,g,y,A)=>{try{return bh(e),r.invoke(a,d,g,y,A)}finally{e.shouldCoalesceRunChangeDetection&&t(),Dm(e)}},onHasTask:(r,o,a,d)=>{r.hasTask(a,d),o===a&&("microTask"==d.change?(e._hasPendingMicrotasks=d.microTask,Ko(e),Th(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(!bo.isInAngularZone())throw new nt(909,!1)}static assertNotInAngularZone(){if(bo.isInAngularZone())throw new nt(909,!1)}run(t,r,o){return this._inner.run(t,r,o)}runTask(t,r,o,a){const d=this._inner,g=d.scheduleEventTask("NgZoneEvent: "+a,t,Am,Em,Em);try{return d.runTask(g,r,o)}finally{d.cancelTask(g)}}runGuarded(t,r,o){return this._inner.runGuarded(t,r,o)}runOutsideAngular(t){return this._outer.run(t)}}const Am={};function Th(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 Ko(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function bh(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Dm(e){e._nesting--,Th(e)}class Tm{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Bs,this.onMicrotaskEmpty=new Bs,this.onStable=new Bs,this.onError=new Bs}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 vu=function(e){return e[e.EarlyRead=0]="EarlyRead",e[e.Write=1]="Write",e[e.MixedReadWrite=2]="MixedReadWrite",e[e.Read=3]="Read",e}(vu||{});const bm={destroy(){}};function d_(e,t){var r,o,a;!t&&ya();const d=null!==(r=null==t?void 0:t.injector)&&void 0!==r?r:Ne(ps);if(!function rl(e){return"browser"===(null!=e?e:Ne(ps)).get(eh)}(d))return bm;Oa("NgAfterNextRender");const g=d.get(ud),y=null!==(o=g.handler)&&void 0!==o?o:g.handler=new wm,A=null!==(a=null==t?void 0:t.phase)&&void 0!==a?a:vu.MixedReadWrite,B=()=>{y.unregister(de),Y()},Y=d.get(Xu).onDestroy(B),de=lo(d,()=>new dp(A,()=>{B(),e()}));return y.register(de),{destroy:B}}class dp{constructor(t,r){var o;this.phase=t,this.callbackFn=r,this.zone=Ne(bo),this.errorHandler=Ne(Za,{optional:!0}),null===(o=Ne(mm,{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 wm{constructor(){this.executingCallbacks=!1,this.buckets={[vu.EarlyRead]:new Set,[vu.Write]:new Set,[vu.MixedReadWrite]:new Set,[vu.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 ud=(()=>{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=fr({token:e,providedIn:"root",factory:()=>new e}),t})();function il(e){return!!bi(e)}function yu(e,t,r){let o=r?e.styles:null,a=r?e.classes:null,d=0;if(null!==t)for(let g=0;g0&&o0(e,r,d.join(" "))}}(Zt,Bl,Pn,o),void 0!==r&&function v_(e,t,r){const o=e.projection=[];for(let a=0;a{class t{}return t.__NG_ELEMENT_ID__=__,t})();function __(){return _p(Vi(),an())}const y_=pd,E_=class extends y_{constructor(t,r,o){super(),this._lContainer=t,this._hostTNode=r,this._hostLView=o}get element(){return la(this._hostTNode,this._hostLView)}get injector(){return new eo(this._hostTNode,this._hostLView)}get parentInjector(){const t=Qa(this._hostTNode,this._hostLView);if(Cl(t)){const r=Dl(t,this._hostLView),o=Ma(t);return new eo(r[Rn].data[o+8],r)}return new eo(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const r=Mh(this._lContainer);return null!==r&&r[t]||null}get length(){return this._lContainer.length-Xi}createEmbeddedView(t,r,o){let a,d;"number"==typeof o?a=o:null!=o&&(a=o.index,d=o.injector);const g=_o(this._lContainer,t.ssrId),y=t.createEmbeddedViewImpl(r||{},d,g);return this.insertImpl(y,a,Ih(this._hostTNode,g)),y}createComponent(t,r,o,a,d){var g,y,A;const B=t&&!function Qt(e){return"function"==typeof e}(t);let Y;if(B)Y=r;else{const Pn=r||{};Y=Pn.index,o=Pn.injector,a=Pn.projectableNodes,d=Pn.environmentInjector||Pn.ngModuleRef}const de=B?t:new Rh(Rr(t)),We=o||this.parentInjector;if(!d&&null==de.ngModule){const un=(B?We:this.parentInjector).get(Lo,null);un&&(d=un)}const ft=Rr(null!==(g=de.componentType)&&void 0!==g?g:{}),Ft=_o(this._lContainer,null!==(y=null==ft?void 0:ft.id)&&void 0!==y?y:null),Zt=null!==(A=null==Ft?void 0:Ft.firstChild)&&void 0!==A?A:null,bn=de.create(We,a,Zt,d);return this.insertImpl(bn.hostView,Y,Ih(this._hostTNode,Ft)),bn}insert(t,r){return this.insertImpl(t,r,!0)}insertImpl(t,r,o){const a=t._lView;if(function Ac(e){return Do(e[Di])}(a)){const y=this.indexOf(t);if(-1!==y)this.detach(y);else{const A=a[Di],B=new E_(A,A[Si],A[Di]);B.detach(B.indexOf(t))}}const d=this._adjustIndex(r),g=this._lContainer;return rp(g,a,d,o),t.attachToViewContainerRef(),Ni(vp(g),d,t),t}move(t,r){return this.insert(t,r)}indexOf(t){const r=Mh(this._lContainer);return null!==r?r.indexOf(t):-1}remove(t){const r=this._adjustIndex(t,-1),o=qf(this._lContainer,r);o&&(ki(vp(this._lContainer),r),Zg(o[Rn],o))}detach(t){const r=this._adjustIndex(t,-1),o=qf(this._lContainer,r);return o&&null!=ki(vp(this._lContainer),r)?new sp(o):null}_adjustIndex(t,r=0){return null==t?this.length+r:t}};function Mh(e){return e[8]}function vp(e){return e[8]||(e[8]=[])}function _p(e,t){let r;const o=t[e.index];return Do(o)?r=o:(r=E0(o,t,null,e),t[e.index]=r,am(t,r)),Iu(r,t,e,o),new E_(r,e,t)}let Iu=function Pm(e,t,r,o){if(e[Wo])return;let a;a=8&r.type?Pi(o):function Ph(e,t){const r=e[Br],o=r.createComment(""),a=is(t,e);return id(r,Yf(r,a),o,function Zy(e,t){return e.nextSibling(t)}(r,a),!1),o}(t,r),e[Wo]=a},xh=()=>!1;class Oh{constructor(t){this.queryList=t,this.matches=null}clone(){return new Oh(this.queryList)}setDirty(){this.queryList.setDirty()}}class yp{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 Nm{constructor(t=[]){this.queries=t}elementStart(t,r){for(let o=0;o0)o.push(g[y/2]);else{const B=d[y+1],Y=t[-A];for(let de=Xi;de(Qe(t),t.value);return r[ue]=t,r}(e),o=r[ue];return null!=t&&t.equal&&(o.equal=t.equal),r.set=a=>ve(o,a),r.update=a=>function Le(e,t){Dt()||dt(),ve(e,t(e.value))}(o,a),r.asReadonly=kl.bind(r),r}function kl(){const e=this[ue];if(void 0===e.readonlyFn){const t=()=>this();t[ue]=e,e.readonlyFn=t}return e.readonlyFn}function Vm(e){return Lm(e)&&"function"==typeof e.set}function wp(e){let t=function Cu(e){return Object.getPrototypeOf(e.prototype).constructor}(e.type),r=!0;const o=[e];for(;t;){let a;if(ds(e))a=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new nt(903,!1);a=t.\u0275dir}if(a){if(r){o.push(a);const g=e;g.inputs=Uh(e.inputs),g.inputTransforms=Uh(e.inputTransforms),g.declaredInputs=Uh(e.declaredInputs),g.outputs=Uh(e.outputs);const y=a.hostBindings;y&&L_(e,y);const A=a.viewQuery,B=a.contentQueries;if(A&&Sp(e,A),B&&$s(e,B),k_(e,a),Pr(e.outputs,a.outputs),ds(a)&&a.data.animation){const Y=e.data;Y.animation=(Y.animation||[]).concat(a.data.animation)}}const d=a.features;if(d)for(let g=0;g=0;o--){const a=e[o];a.hostVars=t+=a.hostVars,a.hostAttrs=Ao(a.hostAttrs,r=Ao(r,a.hostAttrs))}}(o)}function k_(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 Uh(e){return e===ko?{}:e===Kr?[]:e}function Sp(e,t){const r=e.viewQuery;e.viewQuery=r?(o,a)=>{t(o,a),r(o,a)}:t}function $s(e,t){const r=e.contentQueries;e.contentQueries=r?(o,a,d)=>{t(o,a,d),r(o,a,d)}:t}function L_(e,t){const r=e.hostBindings;e.hostBindings=r?(o,a)=>{t(o,a),r(o,a)}:t}function Wi(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 so{}class xi{}function ss(e,t){return new Du(e,null!=t?t:null,[])}class Du extends so{constructor(t,r,o){super(),this._parent=r,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new f_(this);const a=bi(t);this._bootstrapComponents=ca(a.bootstrap),this._r3Injector=Ef(t,r,[{provide:so,useValue:this},{provide:dc,useValue:this.componentFactoryResolver},...o],cr(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 js extends xi{constructor(t){super(),this.moduleType=t}create(t){return new Du(this.moduleType,t,[])}}class Mp extends so{constructor(t){super(),this.componentFactoryResolver=new f_(this),this.instance=null;const r=new Ns([...t.providers,{provide:so,useValue:this},{provide:dc,useValue:this.componentFactoryResolver}],t.parent||ts(),t.debugName,new Set(["environment"]));this.injector=r,t.runEnvironmentInitializers&&r.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}}function Q0(e,t,r=null){return new Mp({providers:e,parent:t,debugName:r,runEnvironmentInitializers:!0}).injector}let Pp=(()=>{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=fr({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();function U_(e){return!!Y0(e)&&(Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e)}function Y0(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function Tu(e,t,r){return e[t]=r}function Po(e,t,r){return!Object.is(e[t],r)&&(e[t]=r,!0)}function xp(e,t,r,o,a,d,g,y){const A=an(),B=Ei(),Y=e+Gr,de=B.firstCreatePass?function pb(e,t,r,o,a,d,g,y,A){const B=t.consts,Y=uc(t,e,4,g||null,Ts(B,y));t_(t,r,Y,Ts(B,A)),$u(t,Y);const de=Y.tView=tp(2,Y,o,a,d,t.directiveRegistry,t.pipeRegistry,null,t.schemas,B,null);return null!==t.queries&&(t.queries.template(t,Y),de.queries=t.queries.embeddedTView(Y)),Y}(Y,B,A,t,r,o,a,d,g):B.data[Y];na(de,!1);const We=uA(B,A,de,e);Uu()&&tm(B,A,We,de),to(We,A);const ft=E0(We,A,We,de);return A[Y]=ft,am(A,ft),function I_(e,t,r){return xh(e,t,r)}(ft,de,A),Ys(de)&&yh(B,A,de),null!=g&&ad(A,de,y),xp}let uA=function cA(e,t,r,o){return Vs(!0),t[Br].createComment("")};function aE(e,t,r,o){const a=an();return Po(a,bs(),t)&&(Ei(),Ol(Fi(),a,e,t,r,o)),aE}function Up(e,t,r,o){return Po(e,bs(),r)?t+Wn(r)+o:ti}function $p(e,t,r,o,a,d){const y=function $h(e,t,r,o){const a=Po(e,t,r);return Po(e,t+1,o)||a}(e,function ia(){return gr.lFrame.bindingIndex}(),r,a);return oa(2),y?t+Wn(r)+o+Wn(a)+d:ti}function K_(e,t){return e<<17|t<<2}function Ad(e){return e>>17&32767}function lE(e){return 2|e}function zh(e){return(131068&e)>>2}function uE(e,t){return-131069&e|t<<2}function cE(e){return 1|e}function $A(e,t,r,o){const a=e[r+1],d=null===t;let g=o?Ad(a):zh(a),y=!1;for(;0!==g&&(!1===y||d);){const B=e[g+1];ew(e[g],t)&&(y=!0,e[g+1]=o?cE(B):lE(B)),g=o?Ad(B):zh(B)}y&&(e[r+1]=o?lE(a):cE(a))}function ew(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&Io(e,t)>=0}function dE(e,t,r){const o=an();return Po(o,bs(),t)&&Us(Ei(),Fi(),o,e,t,o[Br],r,!1),dE}function hE(e,t,r,o,a){const g=a?"class":"style";i_(e,r,t.inputs[g],g,o)}function fE(e,t,r){return Ll(e,t,r,!1),fE}function pE(e,t){return Ll(e,t,null,!0),pE}function Ll(e,t,r,o){const a=an(),d=Ei(),g=oa(2);d.firstUpdatePass&&function qA(e,t,r,o){const a=e.data;if(null===a[r+1]){const d=a[mo()],g=function XA(e,t){return t>=e.expandoStartIndex}(e,r);(function ZA(e,t){return!!(e.flags&(t?8:16))})(d,o)&&null===t&&!g&&(t=!1),t=function uw(e,t,r,o){const a=function ku(e){const t=gr.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=Ym(r=gE(null,e,t,r,o),t.attrs,o),d=null);else{const g=t.directiveStylingLast;if(-1===g||e[g]!==a)if(r=gE(a,e,t,r,o),null===d){let A=function cw(e,t,r){const o=r?t.classBindings:t.styleBindings;if(0!==zh(o))return e[Ad(o)]}(e,t,o);void 0!==A&&Array.isArray(A)&&(A=gE(null,e,t,A[1],o),A=Ym(A,t.attrs,o),function dw(e,t,r,o){e[Ad(r?t.classBindings:t.styleBindings)]=o}(e,t,o,A))}else d=function hw(e,t,r){let o;const a=t.directiveEnd;for(let d=1+t.directiveStylingLast;d0)&&(B=!0)):Y=r,a)if(0!==A){const We=Ad(e[y+1]);e[o+1]=K_(We,y),0!==We&&(e[We+1]=uE(e[We+1],o)),e[y+1]=function Qb(e,t){return 131071&e|t<<17}(e[y+1],o)}else e[o+1]=K_(y,0),0!==y&&(e[y+1]=uE(e[y+1],o)),y=o;else e[o+1]=K_(A,0),0===y?y=o:e[A+1]=uE(e[A+1],o),A=o;B&&(e[o+1]=lE(e[o+1])),$A(e,Y,o,!0),$A(e,Y,o,!1),function Zb(e,t,r,o,a){const d=a?e.residualClasses:e.residualStyles;null!=d&&"string"==typeof t&&Io(d,t)>=0&&(r[o+1]=cE(r[o+1]))}(t,Y,e,o,d),g=K_(y,A),d?t.classBindings=g:t.styleBindings=g}(a,d,t,r,g,o)}}(d,e,g,o),t!==ti&&Po(a,g,t)&&function YA(e,t,r,o,a,d,g,y){if(!(3&t.type))return;const A=e.data,B=A[y+1],Y=function Yb(e){return!(1&~e)}(B)?JA(A,t,r,a,zh(B),g):void 0;X_(Y)||(X_(d)||function qb(e){return!(2&~e)}(B)&&(d=JA(A,null,r,a,y,g)),function EI(e,t,r,o,a){if(t)a?e.addClass(r,o):e.removeClass(r,o);else{let d=-1===o.indexOf("-")?void 0:Yg.DashCase;null==a?e.removeStyle(r,o,d):("string"==typeof a&&a.endsWith("!important")&&(a=a.slice(0,-10),d|=Yg.Important),e.setStyle(r,o,a,d))}}(o,g,Ka(mo(),r),a,d))}(d,d.data[mo()],a,a[Br],e,a[g+1]=function mw(e,t){return null==e||""===e||("string"==typeof t?e+=t:"object"==typeof e&&(e=cr(Rl(e)))),e}(t,r),o,g)}function gE(e,t,r,o,a){let d=null;const g=r.directiveEnd;let y=r.directiveStylingLast;for(-1===y?y=r.directiveStart:y++;y0;){const A=e[a],B=Array.isArray(A),Y=B?A[1]:A,de=null===Y;let We=r[a+1];We===ti&&(We=de?Kr:void 0);let ft=de?Bo(We,o):Y===o?We:void 0;if(B&&!X_(ft)&&(ft=Bo(A,o)),X_(ft)&&(y=ft,g))return y;const Ft=e[a+1];a=g?Ad(Ft):zh(Ft)}if(null!==t){let A=d?t.residualClasses:t.residualStyles;null!=A&&(y=Bo(A,o))}return y}function X_(e){return void 0!==e}class ww{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 g=this.detach(o);this.attach(o,d),this.attach(a,g)}else this.attach(o,d)}move(t,r){this.attach(r,this.detach(t))}}function mE(e,t,r,o,a){return e===r&&Object.is(t,o)?1:Object.is(a(e,t),a(r,o))?-1:0}function vE(e,t,r,o){return!(void 0===t||!t.has(o)||(e.attach(r,t.get(o)),t.delete(o),0))}function eC(e,t,r,o,a){if(vE(e,t,o,r(o,a)))e.updateValue(o,a);else{const d=e.create(o,a);e.attach(o,d)}}function tC(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 nC{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)}}}function rC(e,t,r){Oa("NgControlFlow");const o=an(),a=bs(),d=_E(o,Gr+e);if(Po(o,a,t)){const y=oe(null);try{if(dm(d,0),-1!==t){const A=yE(o[Rn],Gr+t),B=_o(d,A.tView.ssrId);rp(d,np(o,A,r,{dehydratedView:B}),0,Ih(A,B))}}finally{oe(y)}}else{const y=o_(d,0);void 0!==y&&(y[_i]=r)}}class Rw{constructor(t,r,o){this.lContainer=t,this.$implicit=r,this.$index=o}get $count(){return this.lContainer.length-Xi}}function iC(e,t){return t}class Pw{constructor(t,r,o){this.hasEmptyBlock=t,this.trackByFn=r,this.liveCollection=o}}function oC(e,t,r,o,a,d,g,y,A,B,Y,de,We){Oa("NgControlFlow");const ft=void 0!==A,Ft=an(),Zt=y?g.bind(Ft[Gi][_i]):g,bn=new Pw(ft,Zt);Ft[Gr+e]=bn,xp(e+1,t,r,o,a,d),ft&&xp(e+2,A,B,Y,de,We)}class xw extends ww{constructor(t,r,o){super(),this.lContainer=t,this.hostLView=r,this.templateTNode=o,this.needsIndexUpdate=!1}get length(){return this.lContainer.length-Xi}at(t){return this.getLView(t)[_i].$implicit}attach(t,r){const o=r[Qi];this.needsIndexUpdate||(this.needsIndexUpdate=t!==this.length),rp(this.lContainer,r,t,Ih(this.templateTNode,o))}detach(t){return this.needsIndexUpdate||(this.needsIndexUpdate=t!==this.length-1),function Ow(e,t){return qf(e,t)}(this.lContainer,t)}create(t,r){const o=_o(this.lContainer,this.templateTNode.tView.ssrId);return np(this.hostLView,this.templateTNode,new Rw(this.lContainer,r,t),{dehydratedView:o})}destroy(t){Zg(t[Rn],t)}updateValue(t,r){this.getLView(t)[_i].$implicit=r}reset(){this.needsIndexUpdate=!1}updateIndexes(){if(this.needsIndexUpdate)for(let t=0;t{e.destroy(We)})}(g,e,d.trackByFn),g.updateIndexes(),d.hasEmptyBlock){const y=bs(),A=0===g.length;if(Po(o,y,A)){const B=r+2,Y=_E(o,B);if(A){const de=yE(a,B),We=_o(Y,de.tView.ssrId);rp(Y,np(o,de,void 0,{dehydratedView:We}),0,Ih(de,We))}else dm(Y,0)}}}finally{oe(t)}}function _E(e,t){return e[t]}function yE(e,t){return Ql(e,t)}function q_(e,t,r,o){const a=an(),d=Ei(),g=Gr+e,y=a[Br],A=d.firstCreatePass?function kw(e,t,r,o,a,d){const g=t.consts,A=uc(t,e,2,o,Ts(g,a));return t_(t,r,A,Ts(g,d)),null!==A.attrs&&yu(A,A.attrs,!1),null!==A.mergedAttrs&&yu(A,A.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,A),A}(g,d,a,t,r,o):d.data[g],B=aC(d,a,A,y,t,e);a[g]=B;const Y=Ys(A);return na(A,!0),s0(y,B,A),!function Km(e){return!(32&~e.flags)}(A)&&Uu()&&tm(d,a,B,A),0===function Dc(){return gr.lFrame.elementDepthCount}()&&to(B,a),function Tc(){gr.lFrame.elementDepthCount++}(),Y&&(yh(d,a,A),Jv(d,A,a)),null!==o&&ad(a,A),q_}function Q_(){let e=Vi();Ou()?Nu():(e=e.parent,na(e,!1));const t=e;(function _l(e){return gr.skipHydrationRootTNode===e})(t)&&function qa(){gr.skipHydrationRootTNode=null}(),function ea(){gr.lFrame.elementDepthCount--}();const r=Ei();return r.firstCreatePass&&($u(r,e),Wl(e)&&r.queries.elementEnd(e)),null!=t.classesWithoutHost&&function ju(e){return!!(8&e.flags)}(t)&&hE(r,t,an(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function Ld(e){return!!(16&e.flags)}(t)&&hE(r,t,an(),t.stylesWithoutHost,!1),Q_}function EE(e,t,r,o){return q_(e,t,r,o),Q_(),EE}let aC=(e,t,r,o,a,d)=>(Vs(!0),xl(o,a,function Fd(){return gr.lFrame.currentNamespace}()));function Y_(e,t,r){const o=an(),a=Ei(),d=e+Gr,g=a.firstCreatePass?function Vw(e,t,r,o,a){const d=t.consts,g=Ts(d,o),y=uc(t,e,8,"ng-container",g);return null!==g&&yu(y,g,!0),t_(t,r,y,Ts(d,a)),null!==t.queries&&t.queries.elementStart(t,y),y}(d,a,o,t,r):a.data[d];na(g,!0);const y=lC(a,o,g,e);return o[d]=y,Uu()&&tm(a,o,y,g),to(y,o),Ys(g)&&(yh(a,o,g),Jv(a,g,o)),null!=r&&ad(o,g),Y_}function J_(){let e=Vi();const t=Ei();return Ou()?Nu():(e=e.parent,na(e,!1)),t.firstCreatePass&&($u(t,e),Wl(e)&&t.queries.elementEnd(e)),J_}function IE(e,t,r){return Y_(e,t,r),J_(),IE}let lC=(e,t,r,o)=>(Vs(!0),rd(t[Br],""));function uC(){return an()}const Hh=void 0;var jw=["en",[["a","p"],["AM","PM"],Hh],[["AM","PM"],Hh,Hh],[["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"]],Hh,[["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"]],Hh,[["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}",Hh,"{1} 'at' {0}",Hh],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function $w(e){const r=Math.floor(Math.abs(e)),o=e.toString().replace(/^[^.]*\.?/,"").length;return 1===r&&0===o?1:5}];let qp={};function AE(e){const t=function zw(e){return e.toLowerCase().replace(/_/g,"-")}(e);let r=fC(t);if(r)return r;const o=t.split("-")[0];if(r=fC(o),r)return r;if("en"===o)return jw;throw new nt(701,!1)}function hC(e){return AE(e)[Qp.PluralCase]}function fC(e){return e in qp||(qp[e]=Jn.ng&&Jn.ng.common&&Jn.ng.common.locales&&Jn.ng.common.locales[e]),qp[e]}var Qp=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}(Qp||{});const Yp="en-US";let pC=Yp;function TE(e,t,r,o){const a=an(),d=Ei(),g=Vi();return bE(d,a,a[Br],g,e,t,o),TE}function bE(e,t,r,o,a,d,g){const y=Ys(o),B=e.firstCreatePass&&C0(e),Y=t[_i],de=A0(t);let We=!0;if(3&o.type||g){const Zt=is(o,t),bn=g?g(Zt):Zt,Pn=de.length,un=g?si=>g(Pi(si[o.index])):o.index;let Wr=null;if(!g&&y&&(Wr=function BS(e,t,r,o){const a=e.cleanup;if(null!=a)for(let d=0;dA?y[A]:null}"string"==typeof g&&(d+=2)}return null}(e,t,a,o.index)),null!==Wr)(Wr.__ngLastListenerFn__||Wr).__ngNextListenerFn__=d,Wr.__ngLastListenerFn__=d,We=!1;else{d=jC(o,t,Y,d,!1);const si=r.listen(bn,a,d);de.push(d,si),B&&B.push(a,un,Pn,Pn+1)}}else d=jC(o,t,Y,d,!1);const ft=o.outputs;let Ft;if(We&&null!==ft&&(Ft=ft[a])){const Zt=Ft.length;if(Zt)for(let bn=0;bn-1?Ro(e.index,t):t);let A=$C(t,r,o,g),B=d.__ngNextListenerFn__;for(;B;)A=$C(t,r,B,g)&&A,B=B.__ngNextListenerFn__;return a&&!1===A&&g.preventDefault(),A}}function zC(e=1){return function Vu(e){return(gr.lFrame.contextLView=function rg(e,t){for(;e>0;)t=t[fl],e--;return t}(e,gr.lFrame.contextLView))[_i]}(e)}function US(e,t){let r=null;const o=function yn(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(Vs(!0),function Pl(e,t){return e.createText(t)}(t[Br],o));function SE(e){return iy("",e,""),SE}function iy(e,t,r){const o=an(),a=Up(o,e,t,r);return a!==ti&&gu(o,mo(),a),iy}function RE(e,t,r,o,a){const d=an(),g=$p(d,e,t,r,o,a);return g!==ti&&gu(d,mo(),g),RE}function ME(e,t,r){Vm(t)&&(t=t());const o=an();return Po(o,bs(),t)&&Us(Ei(),Fi(),o,e,t,o[Br],r,!1),ME}function AD(e,t){const r=Vm(e);return r&&e.set(t),r}function PE(e,t){const r=an(),o=Ei(),a=Vi();return bE(o,r,r[Br],a,e,t),PE}function xE(e,t,r,o,a){if(e=pe(e),Array.isArray(e))for(let d=0;d>20;if(Zo(e)||!e.multi){const ft=new Al(B,a,sd),Ft=NE(A,t,a?Y:Y+We,de);-1===Ft?(Tl(Hu(y,g),d,A),OE(d,e,t.length),t.push(A),y.directiveStart++,y.directiveEnd++,a&&(y.providerIndexes+=1048576),r.push(ft),g.push(ft)):(r[Ft]=ft,g[Ft]=ft)}else{const ft=NE(A,t,Y+We,de),Ft=NE(A,t,Y,Y+We),bn=Ft>=0&&r[Ft];if(a&&!bn||!a&&!(ft>=0&&r[ft])){Tl(Hu(y,g),d,A);const Pn=function sR(e,t,r,o,a){const d=new Al(e,r,sd);return d.multi=[],d.index=t,d.componentProviders=0,CD(d,a,o&&!r),d}(a?oR:iR,r.length,a,o,B);!a&&bn&&(r[Ft].providerFactory=Pn),OE(d,e,t.length,0),t.push(A),y.directiveStart++,y.directiveEnd++,a&&(y.providerIndexes+=1048576),r.push(Pn),g.push(Pn)}else OE(d,e,ft>-1?ft:Ft,CD(r[a?Ft:ft],B,!a&&o));!a&&o&&bn&&r[Ft].componentProviders++}}}function OE(e,t,r,o){const a=Zo(t),d=function As(e){return!!e.useClass}(t);if(a||d){const A=(d?pe(t.useClass):t).prototype.ngOnDestroy;if(A){const B=e.destroyHooks||(e.destroyHooks=[]);if(!a&&t.multi){const Y=B.indexOf(r);-1===Y?B.push(r,[o,A]):B[Y+1].push(o,A)}else B.push(r,A)}}}function CD(e,t,r){return r&&e.componentProviders++,e.multi.push(t)-1}function NE(e,t,r,o){for(let a=r;a{r.providersResolver=(o,a)=>function rR(e,t,r){const o=Ei();if(o.firstCreatePass){const a=ds(e);xE(r,o.data,o.blueprint,a,!0),xE(t,o.data,o.blueprint,a,!1)}}(o,a?a(e):e,t)}}let aR=(()=>{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=Va(0,o.type),d=a.length>0?Q0([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=fr({token:e,providedIn:"environment",factory:()=>new e(z(Lo))}),t})();function TD(e){Oa("NgStandalone"),e.getStandaloneInjector=t=>t.get(aR).getOrCreateStandaloneInjector(e)}function wD(e,t,r){const o=go()+e,a=an();return a[o]===ti?Tu(a,o,r?t.call(r):t()):function Wm(e,t){return e[t]}(a,o)}function SD(e,t,r,o,a,d){const g=t+r;return Po(e,g,a)?Tu(e,g+1,d?o.call(d,a):o(a)):function iv(e,t){const r=e[t];return r===ti?void 0:r}(e,g+1)}function OD(e,t){const r=Ei();let o;const a=e+Gr;var d;r.firstCreatePass?(o=function yR(e,t){if(t)for(let r=t.length-1;r>=0;r--){const o=t[r];if(e===o.name)return o}}(t,r.pipeRegistry),r.data[a]=o,o.onDestroy&&(null!==(d=r.destroyHooks)&&void 0!==d?d:r.destroyHooks=[]).push(a,o.onDestroy)):o=r.data[a];const g=o.factory||(o.factory=qr(o.type)),A=W(sd);try{const B=eu(!1),Y=g();return eu(B),function HS(e,t,r,o){r>=e.data.length&&(e.data[r]=null,e.blueprint[r]=null),t[r]=o}(r,an(),a,Y),Y}finally{W(A)}}function ND(e,t,r){const o=e+Gr,a=an(),d=function fs(e,t){return e[t]}(a,o);return function ov(e,t){return e[Rn].data[t].pure}(a,o)?SD(a,go(),t,d.transform,r,d):d.transform(r)}class QD{constructor(t){this.full=t;const r=t.split(".");this.major=r[0],this.minor=r[1],this.patch=r.slice(2).join(".")}}const WR=new QD("17.3.10");let YD=(()=>{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=fr({token:e,factory:e.\u0275fac,providedIn:"platform"}),t})();const tT=new Ge(""),nT=new Ge("");let jE,_1=(()=>{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,jE||(function y1(e){jE=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:()=>{bo.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 g=-1;a&&a>0&&(g=setTimeout(()=>{this._callbacks=this._callbacks.filter(y=>y.timeoutId!==g),o()},a)),this._callbacks.push({doneCb:o,timeoutId:g,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)(z(bo),z(rT),z(nT))},e.\u0275prov=fr({token:e,factory:e.\u0275fac}),t})(),rT=(()=>{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,g;return null!==(d=null===(g=jE)||void 0===g?void 0:g.findTestabilityInTree(this,o,a))&&void 0!==d?d:null}}return(e=t).\u0275fac=function(o){return new(o||e)},e.\u0275prov=fr({token:e,factory:e.\u0275fac,providedIn:"platform"}),t})();function zE(e){return!!e&&"function"==typeof e.then}function iT(e){return!!e&&"function"==typeof e.subscribe}const oT=new Ge("");let HE=(()=>{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=Ne(oT,{optional:!0}))&&void 0!==o?o:[]}runInitializers(){if(this.initialized)return;const o=[];for(const d of this.appInits){const g=d();if(zE(g))o.push(g);else if(iT(g)){const y=new Promise((A,B)=>{g.subscribe({complete:A,error:B})});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=fr({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();const GE=new Ge("");function lT(e,t){return Array.isArray(t)?t.reduce(lT,e):{...e,...t}}let Cd=(()=>{var e;class t{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=Ne(Gd),this.afterRenderEffectManager=Ne(ud),this.externalTestViews=new Set,this.beforeRender=new Zn.B,this.afterTick=new Zn.B,this.componentTypes=[],this.components=[],this.isStable=Ne(Pp).hasPendingTasks.pipe((0,yr.T)(o=>!o)),this._injector=Ne(Lo)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(o,a){const d=o instanceof l_;if(!this._injector.get(HE).done)throw!d&&po(o),new nt(405,!1);let y;y=d?o:this._injector.get(dc).resolveComponentFactory(o),this.componentTypes.push(y.componentType);const A=function E1(e){return e.isBoundToModule}(y)?void 0:this._injector.get(so),Y=y.create(ps.NULL,[],a||y.selector,A),de=Y.location.nativeElement,We=Y.injector.get(tT,null);return null==We||We.registerApplication(de),Y.onDestroy(()=>{this.detachView(Y.hostView),ly(this.components,Y),null==We||We.unregisterApplication(de)}),this._loadComponent(Y),Y}tick(){this._tick(!0)}_tick(o){if(this._runningTick)throw new nt(101,!1);const a=oe(null);try{this._runningTick=!0,this.detectChangesInAttachedViews(o)}catch(d){this.internalErrorHandler(d)}finally{this.afterTick.next(),this._runningTick=!1,oe(a)}}detectChangesInAttachedViews(o){let a=0;const d=this.afterRenderEffectManager;for(;;){if(a===w0)throw new nt(103,!1);if(o){const g=0===a;this.beforeRender.next(g);for(let{_lView:y,notifyErrorHandler:A}of this._views)A1(y,g,A)}if(a++,d.executeInternalCallbacks(),![...this.externalTestViews.keys(),...this._views].some(({_lView:g})=>WE(g))&&(d.execute(),![...this.externalTestViews.keys(),...this._views].some(({_lView:g})=>WE(g))))break}}attachView(o){const a=o;this._views.push(a),a.attachToAppRef(this)}detachView(o){const a=o;ly(this._views,a),a.detachFromAppRef()}_loadComponent(o){this.attachView(o.hostView),this.tick(),this.components.push(o);const a=this._injector.get(GE,[]);[...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),()=>ly(this._destroyListeners,o)}destroy(){if(this._destroyed)throw new nt(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=fr({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();function ly(e,t){const r=e.indexOf(t);r>-1&&e.splice(r,1)}function A1(e,t,r){!t&&!WE(e)||function C1(e,t,r){let o;r?(o=0,e[Kn]|=1024):o=64&e[Kn]?0:1,hm(e,t,o)}(e,r,t)}function WE(e){return Yl(e)}class D1{constructor(t,r){this.ngModuleFactory=t,this.componentFactories=r}}let T1=(()=>{var e;class t{compileModuleSync(o){return new js(o)}compileModuleAsync(o){return Promise.resolve(this.compileModuleSync(o))}compileModuleAndAllComponentsSync(o){const a=this.compileModuleSync(o),g=ca(bi(o).declarations).reduce((y,A)=>{const B=Rr(A);return B&&y.push(new Rh(B)),y},[]);return new D1(a,g)}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=fr({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),S1=(()=>{var e;class t{constructor(){this.zone=Ne(bo),this.applicationRef=Ne(Cd)}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=fr({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();function R1(){const e=Ne(bo),t=Ne(Za);return r=>e.runOutsideAngular(()=>t.handleError(r))}let P1=(()=>{var e;class t{constructor(){this.subscription=new nr.yU,this.initialized=!1,this.zone=Ne(bo),this.pendingTasks=Ne(Pp)}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(()=>{bo.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;bo.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=fr({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();const uy=new Ge("",{providedIn:"root",factory:()=>Ne(uy,bt.Optional|bt.SkipSelf)||function x1(){return typeof $localize<"u"&&$localize.locale||Yp}()}),O1=new Ge("",{providedIn:"root",factory:()=>"USD"}),KE=new Ge("");let hT=(()=>{var e;class t{constructor(o){this._injector=o,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(o,a){const d=function wh(e="zone.js",t){return"noop"===e?new Tm:"zone.js"===e?new bo(t):e}(null==a?void 0:a.ngZone,function dT(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 g=function Rp(e,t,r){return new Du(e,t,r)}(o.moduleType,this.injector,function cT(e){return[{provide:bo,useFactory:e},{provide:fo,multi:!0,useFactory:()=>{const t=Ne(S1,{optional:!0});return()=>t.initialize()}},{provide:fo,multi:!0,useFactory:()=>{const t=Ne(P1);return()=>{t.initialize()}}},{provide:Gd,useFactory:R1}]}(()=>d)),y=g.injector.get(Za,null);return d.runOutsideAngular(()=>{const A=d.onError.subscribe({next:B=>{y.handleError(B)}});g.onDestroy(()=>{ly(this._modules,g),A.unsubscribe()})}),function aT(e,t,r){try{const o=r();return zE(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=g.injector.get(HE);return A.runInitializers(),A.donePromise.then(()=>(function gC(e){"string"==typeof e&&(pC=e.toLowerCase().replace(/_/g,"-"))}(g.injector.get(uy,Yp)||Yp),this._moduleDoBootstrap(g),g))})})}bootstrapModule(o,a=[]){const d=lT({},a);return function w1(e,t,r){const o=new js(r);return Promise.resolve(o)}(0,0,o).then(g=>this.bootstrapModuleFactory(g,d))}_moduleDoBootstrap(o){const a=o.injector.get(Cd);if(o._bootstrapComponents.length>0)o._bootstrapComponents.forEach(d=>a.bootstrap(d));else{if(!o.instance.ngDoBootstrap)throw new nt(-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 nt(404,!1);this._modules.slice().forEach(a=>a.destroy()),this._destroyListeners.forEach(a=>a());const o=this._injector.get(KE,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)(z(ps))},e.\u0275prov=fr({token:e,factory:e.\u0275fac,providedIn:"platform"}),t})(),Dd=null;const fT=new Ge("");function pT(e,t,r=[]){const o=`Platform: ${t}`,a=new Ge(o);return(d=[])=>{let g=XE();if(!g||g.injector.get(fT,!1)){const y=[...r,...d,{provide:a,useValue:!0}];e?e(y):function k1(e){if(Dd&&!Dd.get(fT,!1))throw new nt(400,!1);(function sT(){!function we(e){on=e}(()=>{throw new nt(600,!1)})})(),Dd=e;const t=e.get(hT);(function mT(e){const t=e.get(Ev,null);null==t||t.forEach(r=>r())})(e)}(function gT(e=[],t){return ps.create({name:t,providers:[{provide:zl,useValue:"platform"},{provide:KE,useValue:new Set([()=>Dd=null])},...e]})}(y,o))}return function F1(e){const t=XE();if(!t)throw new nt(401,!1);return t}()}}function XE(){var e,t;return null!==(e=null===(t=Dd)||void 0===t?void 0:t.get(hT))&&void 0!==e?e:null}function V1(){}let _T=(()=>{class t{}return t.__NG_ELEMENT_ID__=B1,t})();function B1(e){return function U1(e,t,r){if(rs(e)&&!r){const o=Ro(e.index,t);return new sp(o,o)}return 47&e.type?new sp(t[Gi],t):null}(Vi(),an(),!(16&~e))}class AT{constructor(){}supports(t){return U_(t)}create(t){return new G1(t)}}const H1=(e,t)=>t;class G1{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||H1}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 g=!o||r&&r.currentIndex{g=this._trackByFn(a,y),null!==r&&Object.is(r.trackById,g)?(o&&(r=this._verifyReinsertion(r,y,g,a)),Object.is(r.item,y)||this._addIdentityChange(r,y)):(r=this._mismatch(r,y,g,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 W1(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 CT),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 CT),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 W1{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 K1{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 CT{constructor(){this.map=new Map}put(t){const r=t.trackById;let o=this.map.get(r);o||(o=new K1,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 DT(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,g=a._next;return d&&(d._next=g),g&&(g._prev=d),a._next=null,a._prev=null,a}const o=new q1(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 q1{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 bT(){return new ZE([new AT])}let ZE=(()=>{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||bT()),deps:[[t,new lr,new Nn]]}}find(o){const a=this.factories.find(d=>d.supports(o));if(null!=a)return a;throw new nt(901,!1)}}return(e=t).\u0275prov=fr({token:e,providedIn:"root",factory:bT}),t})();function wT(){return new eI([new TT])}let eI=(()=>{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||wT()),deps:[[t,new lr,new Nn]]}}find(o){const a=this.factories.find(d=>d.supports(o));if(a)return a;throw new nt(901,!1)}}return(e=t).\u0275prov=fr({token:e,providedIn:"root",factory:wT}),t})();const J1=pT(null,"core",[]);let Z1=(()=>{var e;class t{constructor(o){}}return(e=t).\u0275fac=function(o){return new(o||e)(z(Cd))},e.\u0275mod=ul({type:e}),e.\u0275inj=gi({}),t})();function SM(e){return"boolean"==typeof e?e:null!=e&&"false"!==e}function RM(e,t=NaN){return isNaN(parseFloat(e))||isNaN(Number(e))?t:Number(e)}function PM(e){const t=oe(null);try{return e()}finally{oe(t)}}const xM=new Ge("",{providedIn:"root",factory:()=>Ne(OM)});let OM=(()=>{var e;class t{}return(e=t).\u0275prov=fr({token:e,providedIn:"root",factory:()=>new NM}),t})();class NM{constructor(){this.queuedEffectCount=0,this.queues=new Map,this.pendingTasks=Ne(Pp),this.taskId=null}scheduleEffect(t){if(this.enqueue(t),null===this.taskId){const r=this.taskId=this.pendingTasks.add();queueMicrotask(()=>{this.flush(),this.pendingTasks.remove(r),this.taskId=null})}}enqueue(t){const r=t.creationZone;this.queues.has(r)||this.queues.set(r,new Set);const o=this.queues.get(r);o.has(t)||(this.queuedEffectCount++,o.add(t))}flush(){for(;this.queuedEffectCount>0;)for(const[t,r]of this.queues)null===t?this.flushQueue(r):t.run(()=>this.flushQueue(r))}flushQueue(t){for(const r of t)t.delete(r),this.queuedEffectCount--,r.run()}}class kM{constructor(t,r,o,a,d,g){this.scheduler=t,this.effectFn=r,this.creationZone=o,this.injector=d,this.watcher=function dn(e,t,r){const o=Object.create(rn);r&&(o.consumerAllowSignalWrites=!0),o.fn=e,o.schedule=t;const a=A=>{o.cleanupFn=A};return o.ref={notify:()=>St(o),run:()=>{if(null===o.fn)return;if(function Je(){return Oe}())throw new Error("Schedulers cannot synchronously execute watches while scheduling.");if(o.dirty=!1,o.hasRun&&!yt(o))return;o.hasRun=!0;const A=_t(o);try{o.cleanupFn(),o.cleanupFn=Kt,o.fn(a)}finally{Tt(o,A)}},cleanup:()=>o.cleanupFn(),destroy:()=>function g(A){(function d(A){return null===A.fn&&null===A.schedule})(A)||(mt(A),A.cleanupFn(),A.fn=null,A.schedule=null,A.cleanupFn=Kt)}(o),[ue]:o},o.ref}(y=>this.runEffect(y),()=>this.schedule(),g),this.unregisterOnDestroy=null==a?void 0:a.onDestroy(()=>this.destroy())}runEffect(t){try{this.effectFn(t)}catch(r){const o=this.injector.get(Za,null,{optional:!0});null==o||o.handleError(r)}}run(){this.watcher.run()}schedule(){this.scheduler.scheduleEffect(this)}destroy(){var t;this.watcher.destroy(),null===(t=this.unregisterOnDestroy)||void 0===t||t.call(this)}}function qT(e,t){var r,o;Oa("NgSignals"),(null==t||!t.injector)&&ya();const a=null!==(r=null==t?void 0:t.injector)&&void 0!==r?r:Ne(ps),d=!0!==(null==t?void 0:t.manualCleanup)?a.get(Xu):null,g=new kM(a.get(xM),e,typeof Zone>"u"?null:Zone.current,d,a,null!==(o=null==t?void 0:t.allowSignalWrites)&&void 0!==o&&o),y=a.get(_T,null,{optional:!0});var A,B;return y&&8&y._lView[Kn]?(null!==(B=(A=y._lView)[Qs])&&void 0!==B?B:A[Qs]=[]).push(g.watcher.notify):g.watcher.notify(),g}function FM(e,t){const r=Rr(e),o=t.elementInjector||ts();return new Rh(r).create(o,t.projectableNodes,t.hostElement,t.environmentInjector)}function LM(e){const t=Rr(e);if(!t)return null;const r=new Rh(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,gt,S)=>{"use strict";S.d(gt,{MW:()=>Ze,Wp:()=>St,XU:()=>Oe,gL:()=>U});var h=S(2214),c=S(4438),Z=S(5407);class Oe{constructor(Ye){return Ye}}class U{constructor(){return(0,h.Dk)()}}const Xe=new c.nKC("angularfire2._apps"),Je={provide:Oe,useFactory:function oe(Me){return Me&&1===Me.length?Me[0]:new Oe((0,h.Sx)())},deps:[[new c.Xx1,Xe]]},Se={provide:U,deps:[[new c.Xx1,Xe]]};function Ce(Me){return(Ye,ge)=>{const Ue=ge.get(c.Agw);(0,h.KO)("angularfire",Z.xv.full,"core"),(0,h.KO)("angularfire",Z.xv.full,"app"),(0,h.KO)("angular",c.xvI.full,Ue.toString());const Fe=Ye.runOutsideAngular(()=>Me(ge));return new Oe(Fe)}}function Ze(Me,...Ye){return(0,c.EmA)([Je,Se,{provide:Xe,useFactory:Ce(Me),multi:!0,deps:[c.SKi,c.zZn,Z.u0,...Ye]}])}const St=(0,Z.S3)(h.Wp,!0)},8737:(Tn,gt,S)=>{"use strict";S.d(gt,{Nj:()=>Qa,DF:()=>Tl,eJ:()=>Gu,xI:()=>ug,_q:()=>bl,x9:()=>qu,kQ:()=>Uc});var h=S(5407),c=S(4438),Z=S(7440),Oe=S(2214),U=S(467),ue=S(7852),oe=S(1076),Xe=S(8041),Je=S(1635),Se=S(1362);const Tt=function St(){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 oe.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 Xe.Vy("@firebase/auth");function ge(I,...f){Me.logLevel<=Xe.$b.ERROR&&Me.error(`Auth (${ue.MF}): ${I}`,...f)}function Ue(I,...f){throw vn(I,...f)}function Fe(I,...f){return vn(I,...f)}function xe(I,f,v){const w=Object.assign(Object.assign({},Tt()),{[f]:v});return new oe.FA("auth","Firebase",w).create(f,{appName:I.name})}function at(I){return xe(I,"operation-not-supported-in-this-environment","Operations that alter the current user are not supported in conjunction with FirebaseServerApp")}function vn(I,...f){if("string"!=typeof I){const v=f[0],w=[...f.slice(1)];return w[0]&&(w[0].appName=I.name),I._errorFactory.create(v,...w)}return yt.create(I,...f)}function Nt(I,f,...v){if(!I)throw vn(f,...v)}function tt(I){const f="INTERNAL ASSERTION FAILED: "+I;throw ge(f),new Error(f)}function on(I,f){I||tt(f)}function dt(){var I;return typeof self<"u"&&(null===(I=self.location)||void 0===I?void 0:I.href)||""}function H(){var I;return typeof self<"u"&&(null===(I=self.location)||void 0===I?void 0:I.protocol)||null}class se{constructor(f,v){this.shortDelay=f,this.longDelay=v,on(v>f,"Short delay should be less than long delay!"),this.isMobile=(0,oe.jZ)()||(0,oe.lV)()}get(){return function X(){return!(typeof navigator<"u"&&navigator&&"onLine"in navigator&&"boolean"==typeof navigator.onLine&&(function we(){return"http:"===H()||"https:"===H()}()||(0,oe.sr)()||"connection"in navigator))||navigator.onLine}()?this.isMobile?this.longDelay:this.shortDelay:Math.min(5e3,this.shortDelay)}}function ve(I,f){on(I.emulator,"Emulator should always be set here");const{url:v}=I.emulator;return f?`${v}${f.startsWith("/")?f.slice(1):f}`:v}class Le{static initialize(f,v,w){this.fetchImpl=f,v&&(this.headersImpl=v),w&&(this.responseImpl=w)}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 tt("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 tt("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 tt("Could not find Response implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}}const De={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"},Wt=new se(3e4,6e4);function dn(I,f){return I.tenantId&&!f.tenantId?Object.assign(Object.assign({},f),{tenantId:I.tenantId}):f}function Kt(I,f,v,w){return rn.apply(this,arguments)}function rn(){return(rn=(0,U.A)(function*(I,f,v,w,J={}){return Ln(I,J,(0,U.A)(function*(){let be={},Ct={};w&&("GET"===f?Ct=w:be={body:JSON.stringify(w)});const Xt=(0,oe.Am)(Object.assign({key:I.config.apiKey},Ct)).slice(1),Dn=yield I._getAdditionalHeaders();return Dn["Content-Type"]="application/json",I.languageCode&&(Dn["X-Firebase-Locale"]=I.languageCode),Le.fetch()(yr(I,I.config.apiHost,v,Xt),Object.assign({method:f,headers:Dn,referrerPolicy:"no-referrer"},be))}))})).apply(this,arguments)}function Ln(I,f,v){return Zn.apply(this,arguments)}function Zn(){return(Zn=(0,U.A)(function*(I,f,v){I._canInitEmulator=!1;const w=Object.assign(Object.assign({},De),f);try{const J=new ir(I),be=yield Promise.race([v(),J.promise]);J.clearNetworkTimeout();const Ct=yield be.json();if("needConfirmation"in Ct)throw nt(I,"account-exists-with-different-credential",Ct);if(be.ok&&!("errorMessage"in Ct))return Ct;{const Xt=be.ok?Ct.errorMessage:Ct.error.message,[Dn,$n]=Xt.split(" : ");if("FEDERATED_USER_ID_ALREADY_LINKED"===Dn)throw nt(I,"credential-already-in-use",Ct);if("EMAIL_EXISTS"===Dn)throw nt(I,"email-already-in-use",Ct);if("USER_DISABLED"===Dn)throw nt(I,"user-disabled",Ct);const vr=w[Dn]||Dn.toLowerCase().replace(/[_\s]+/g,"-");if($n)throw xe(I,vr,$n);Ue(I,vr)}}catch(J){if(J instanceof oe.g)throw J;Ue(I,"network-request-failed",{message:String(J)})}})).apply(this,arguments)}function nr(I,f,v,w){return er.apply(this,arguments)}function er(){return(er=(0,U.A)(function*(I,f,v,w,J={}){const be=yield Kt(I,f,v,w,J);return"mfaPendingCredential"in be&&Ue(I,"multi-factor-auth-required",{_serverResponse:be}),be})).apply(this,arguments)}function yr(I,f,v,w){const J=`${f}${v}?${w}`;return I.config.emulator?ve(I.config,J):`${I.config.apiScheme}://${J}`}function rr(I){switch(I){case"ENFORCE":return"ENFORCE";case"AUDIT":return"AUDIT";case"OFF":return"OFF";default:return"ENFORCEMENT_STATE_UNSPECIFIED"}}class ir{constructor(f){this.auth=f,this.timer=null,this.promise=new Promise((v,w)=>{this.timer=setTimeout(()=>w(Fe(this.auth,"network-request-failed")),Wt.get())})}clearNetworkTimeout(){clearTimeout(this.timer)}}function nt(I,f,v){const w={appName:I.name};v.email&&(w.email=v.email),v.phoneNumber&&(w.phoneNumber=v.phoneNumber);const J=Fe(I,f,w);return J.customData._tokenResponse=v,J}function zt(I){return void 0!==I&&void 0!==I.enterprise}class pn{constructor(f){if(this.siteKey="",this.recaptchaEnforcementState=[],void 0===f.recaptchaKey)throw new Error("recaptchaKey undefined");this.siteKey=f.recaptchaKey.split("/")[3],this.recaptchaEnforcementState=f.recaptchaEnforcementState}getProviderEnforcementState(f){if(!this.recaptchaEnforcementState||0===this.recaptchaEnforcementState.length)return null;for(const v of this.recaptchaEnforcementState)if(v.provider&&v.provider===f)return rr(v.enforcementState);return null}isProviderEnabled(f){return"ENFORCE"===this.getProviderEnforcementState(f)||"AUDIT"===this.getProviderEnforcementState(f)}}function Mn(I,f){return xn.apply(this,arguments)}function xn(){return(xn=(0,U.A)(function*(I,f){return Kt(I,"GET","/v2/recaptchaConfig",dn(I,f))})).apply(this,arguments)}function en(){return(en=(0,U.A)(function*(I,f){return Kt(I,"POST","/v1/accounts:delete",f)})).apply(this,arguments)}function Nr(I,f){return Qn.apply(this,arguments)}function Qn(){return(Qn=(0,U.A)(function*(I,f){return Kt(I,"POST","/v1/accounts:lookup",f)})).apply(this,arguments)}function Dr(I){if(I)try{const f=new Date(Number(I));if(!isNaN(f.getTime()))return f.toUTCString()}catch{}}function mr(){return(mr=(0,U.A)(function*(I,f=!1){const v=(0,oe.Ku)(I),w=yield v.getIdToken(f),J=Pr(w);Nt(J&&J.exp&&J.auth_time&&J.iat,v.auth,"internal-error");const be="object"==typeof J.firebase?J.firebase:void 0,Ct=null==be?void 0:be.sign_in_provider;return{claims:J,token:w,authTime:Dr(ur(J.auth_time)),issuedAtTime:Dr(ur(J.iat)),expirationTime:Dr(ur(J.exp)),signInProvider:Ct||null,signInSecondFactor:(null==be?void 0:be.sign_in_second_factor)||null}})).apply(this,arguments)}function ur(I){return 1e3*Number(I)}function Pr(I){const[f,v,w]=I.split(".");if(void 0===f||void 0===v||void 0===w)return ge("JWT malformed, contained fewer than 3 sections"),null;try{const J=(0,oe.u)(v);return J?JSON.parse(J):(ge("Failed to decode base64 JWT payload"),null)}catch(J){return ge("Caught error parsing JWT payload as JSON",null==J?void 0:J.toString()),null}}function cr(I){const f=Pr(I);return Nt(f,"internal-error"),Nt(typeof f.exp<"u","internal-error"),Nt(typeof f.iat<"u","internal-error"),Number(f.exp)-Number(f.iat)}function kr(I,f){return ii.apply(this,arguments)}function ii(){return(ii=(0,U.A)(function*(I,f,v=!1){if(v)return f;try{return yield f}catch(w){throw w instanceof oe.g&&function Ai({code:I}){return"auth/user-disabled"===I||"auth/user-token-expired"===I}(w)&&I.auth.currentUser===I&&(yield I.auth.signOut()),w}})).apply(this,arguments)}class Qr{constructor(f){this.user=f,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(f){var v;if(f){const w=this.errorBackoff;return this.errorBackoff=Math.min(2*this.errorBackoff,96e4),w}{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(f=!1){var v=this;if(!this.isRunning)return;const w=this.getInterval(f);this.timerId=setTimeout((0,U.A)(function*(){yield v.iteration()}),w)}iteration(){var f=this;return(0,U.A)(function*(){try{yield f.user.getIdToken(!0)}catch(v){return void("auth/network-request-failed"===(null==v?void 0:v.code)&&f.schedule(!0))}f.schedule()})()}}class pe{constructor(f,v){this.createdAt=f,this.lastLoginAt=v,this._initializeTime()}_initializeTime(){this.lastSignInTime=Dr(this.lastLoginAt),this.creationTime=Dr(this.createdAt)}_copy(f){this.createdAt=f.createdAt,this.lastLoginAt=f.lastLoginAt,this._initializeTime()}toJSON(){return{createdAt:this.createdAt,lastLoginAt:this.lastLoginAt}}}function rt(I){return Mt.apply(this,arguments)}function Mt(){return(Mt=(0,U.A)(function*(I){var f;const v=I.auth,w=yield I.getIdToken(),J=yield kr(I,Nr(v,{idToken:w}));Nt(null==J?void 0:J.users.length,v,"internal-error");const be=J.users[0];I._notifyReloadListener(be);const Ct=null!==(f=be.providerUserInfo)&&void 0!==f&&f.length?He(be.providerUserInfo):[],Xt=function ye(I,f){return[...I.filter(w=>!f.some(J=>J.providerId===w.providerId)),...f]}(I.providerData,Ct),vr=!!I.isAnonymous&&!(I.email&&be.passwordHash||null!=Xt&&Xt.length),hi={uid:be.localId,displayName:be.displayName||null,photoURL:be.photoUrl||null,email:be.email||null,emailVerified:be.emailVerified||!1,phoneNumber:be.phoneNumber||null,tenantId:be.tenantId||null,providerData:Xt,metadata:new pe(be.createdAt,be.lastLoginAt),isAnonymous:vr};Object.assign(I,hi)})).apply(this,arguments)}function ce(){return(ce=(0,U.A)(function*(I){const f=(0,oe.Ku)(I);yield rt(f),yield f.auth._persistUserIfCurrent(f),f.auth._notifyListenersIfCurrent(f)})).apply(this,arguments)}function He(I){return I.map(f=>{var{providerId:v}=f,w=(0,Je.Tt)(f,["providerId"]);return{providerId:v,uid:w.rawId||"",displayName:w.displayName||null,email:w.email||null,phoneNumber:w.phoneNumber||null,photoURL:w.photoUrl||null}})}function ie(){return(ie=(0,U.A)(function*(I,f){const v=yield Ln(I,{},(0,U.A)(function*(){const w=(0,oe.Am)({grant_type:"refresh_token",refresh_token:f}).slice(1),{tokenApiHost:J,apiKey:be}=I.config,Ct=yr(I,J,"/v1/token",`key=${be}`),Xt=yield I._getAdditionalHeaders();return Xt["Content-Type"]="application/x-www-form-urlencoded",Le.fetch()(Ct,{method:"POST",headers:Xt,body:w})}));return{accessToken:v.access_token,expiresIn:v.expires_in,refreshToken:v.refresh_token}})).apply(this,arguments)}function lt(){return(lt=(0,U.A)(function*(I,f){return Kt(I,"POST","/v2/accounts:revokeToken",dn(I,f))})).apply(this,arguments)}class Gt{constructor(){this.refreshToken=null,this.accessToken=null,this.expirationTime=null}get isExpired(){return!this.expirationTime||Date.now()>this.expirationTime-3e4}updateFromServerResponse(f){Nt(f.idToken,"internal-error"),Nt(typeof f.idToken<"u","internal-error"),Nt(typeof f.refreshToken<"u","internal-error");const v="expiresIn"in f&&typeof f.expiresIn<"u"?Number(f.expiresIn):cr(f.idToken);this.updateTokensAndExpiration(f.idToken,f.refreshToken,v)}updateFromIdToken(f){Nt(0!==f.length,"internal-error");const v=cr(f);this.updateTokensAndExpiration(f,null,v)}getToken(f,v=!1){var w=this;return(0,U.A)(function*(){return v||!w.accessToken||w.isExpired?(Nt(w.refreshToken,f,"user-token-expired"),w.refreshToken?(yield w.refresh(f,w.refreshToken),w.accessToken):null):w.accessToken})()}clearRefreshToken(){this.refreshToken=null}refresh(f,v){var w=this;return(0,U.A)(function*(){const{accessToken:J,refreshToken:be,expiresIn:Ct}=yield function Lt(I,f){return ie.apply(this,arguments)}(f,v);w.updateTokensAndExpiration(J,be,Number(Ct))})()}updateTokensAndExpiration(f,v,w){this.refreshToken=v||null,this.accessToken=f||null,this.expirationTime=Date.now()+1e3*w}static fromJSON(f,v){const{refreshToken:w,accessToken:J,expirationTime:be}=v,Ct=new Gt;return w&&(Nt("string"==typeof w,"internal-error",{appName:f}),Ct.refreshToken=w),J&&(Nt("string"==typeof J,"internal-error",{appName:f}),Ct.accessToken=J),be&&(Nt("number"==typeof be,"internal-error",{appName:f}),Ct.expirationTime=be),Ct}toJSON(){return{refreshToken:this.refreshToken,accessToken:this.accessToken,expirationTime:this.expirationTime}}_assign(f){this.accessToken=f.accessToken,this.refreshToken=f.refreshToken,this.expirationTime=f.expirationTime}_clone(){return Object.assign(new Gt,this.toJSON())}_performRefresh(){return tt("not implemented")}}function tn(I,f){Nt("string"==typeof I||typeof I>"u","internal-error",{appName:f})}class _n{constructor(f){var{uid:v,auth:w,stsTokenManager:J}=f,be=(0,Je.Tt)(f,["uid","auth","stsTokenManager"]);this.providerId="firebase",this.proactiveRefresh=new Qr(this),this.reloadUserInfo=null,this.reloadListener=null,this.uid=v,this.auth=w,this.stsTokenManager=J,this.accessToken=J.accessToken,this.displayName=be.displayName||null,this.email=be.email||null,this.emailVerified=be.emailVerified||!1,this.phoneNumber=be.phoneNumber||null,this.photoURL=be.photoURL||null,this.isAnonymous=be.isAnonymous||!1,this.tenantId=be.tenantId||null,this.providerData=be.providerData?[...be.providerData]:[],this.metadata=new pe(be.createdAt||void 0,be.lastLoginAt||void 0)}getIdToken(f){var v=this;return(0,U.A)(function*(){const w=yield kr(v,v.stsTokenManager.getToken(v.auth,f));return Nt(w,v.auth,"internal-error"),v.accessToken!==w&&(v.accessToken=w,yield v.auth._persistUserIfCurrent(v),v.auth._notifyListenersIfCurrent(v)),w})()}getIdTokenResult(f){return function Jr(I){return mr.apply(this,arguments)}(this,f)}reload(){return function ut(I){return ce.apply(this,arguments)}(this)}_assign(f){this!==f&&(Nt(this.uid===f.uid,this.auth,"internal-error"),this.displayName=f.displayName,this.photoURL=f.photoURL,this.email=f.email,this.emailVerified=f.emailVerified,this.phoneNumber=f.phoneNumber,this.isAnonymous=f.isAnonymous,this.tenantId=f.tenantId,this.providerData=f.providerData.map(v=>Object.assign({},v)),this.metadata._copy(f.metadata),this.stsTokenManager._assign(f.stsTokenManager))}_clone(f){const v=new _n(Object.assign(Object.assign({},this),{auth:f,stsTokenManager:this.stsTokenManager._clone()}));return v.metadata._copy(this.metadata),v}_onReload(f){Nt(!this.reloadListener,this.auth,"internal-error"),this.reloadListener=f,this.reloadUserInfo&&(this._notifyReloadListener(this.reloadUserInfo),this.reloadUserInfo=null)}_notifyReloadListener(f){this.reloadListener?this.reloadListener(f):this.reloadUserInfo=f}_startProactiveRefresh(){this.proactiveRefresh._start()}_stopProactiveRefresh(){this.proactiveRefresh._stop()}_updateTokensIfNecessary(f,v=!1){var w=this;return(0,U.A)(function*(){let J=!1;f.idToken&&f.idToken!==w.stsTokenManager.accessToken&&(w.stsTokenManager.updateFromServerResponse(f),J=!0),v&&(yield rt(w)),yield w.auth._persistUserIfCurrent(w),J&&w.auth._notifyListenersIfCurrent(w)})()}delete(){var f=this;return(0,U.A)(function*(){if((0,ue.xZ)(f.auth.app))return Promise.reject(at(f.auth));const v=yield f.getIdToken();return yield kr(f,function mn(I,f){return en.apply(this,arguments)}(f.auth,{idToken:v})),f.stsTokenManager.clearRefreshToken(),f.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(f=>Object.assign({},f)),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(f,v){var w,J,be,Ct,Xt,Dn,$n,vr;const hi=null!==(w=v.displayName)&&void 0!==w?w:void 0,Vo=null!==(J=v.email)&&void 0!==J?J:void 0,to=null!==(be=v.phoneNumber)&&void 0!==be?be:void 0,ua=null!==(Ct=v.photoURL)&&void 0!==Ct?Ct:void 0,Xd=null!==(Xt=v.tenantId)&&void 0!==Xt?Xt:void 0,su=null!==(Dn=v._redirectEventId)&&void 0!==Dn?Dn:void 0,qd=null!==($n=v.createdAt)&&void 0!==$n?$n:void 0,Zu=null!==(vr=v.lastLoginAt)&&void 0!==vr?vr:void 0,{uid:ec,emailVerified:tc,isAnonymous:Df,providerData:au,stsTokenManager:Tf}=v;Nt(ec&&Tf,f,"internal-error");const Qd=Gt.fromJSON(this.name,Tf);Nt("string"==typeof ec,f,"internal-error"),tn(hi,f.name),tn(Vo,f.name),Nt("boolean"==typeof tc,f,"internal-error"),Nt("boolean"==typeof Df,f,"internal-error"),tn(to,f.name),tn(ua,f.name),tn(Xd,f.name),tn(su,f.name),tn(qd,f.name),tn(Zu,f.name);const Yd=new _n({uid:ec,auth:f,email:Vo,emailVerified:tc,displayName:hi,isAnonymous:Df,photoURL:ua,phoneNumber:to,tenantId:Xd,stsTokenManager:Qd,createdAt:qd,lastLoginAt:Zu});return au&&Array.isArray(au)&&(Yd.providerData=au.map(Jd=>Object.assign({},Jd))),su&&(Yd._redirectEventId=su),Yd}static _fromIdTokenResponse(f,v,w=!1){return(0,U.A)(function*(){const J=new Gt;J.updateFromServerResponse(v);const be=new _n({uid:v.localId,auth:f,stsTokenManager:J,isAnonymous:w});return yield rt(be),be})()}static _fromGetAccountInfoResponse(f,v,w){return(0,U.A)(function*(){const J=v.users[0];Nt(void 0!==J.localId,"internal-error");const be=void 0!==J.providerUserInfo?He(J.providerUserInfo):[],Ct=!(J.email&&J.passwordHash||null!=be&&be.length),Xt=new Gt;Xt.updateFromIdToken(w);const Dn=new _n({uid:J.localId,auth:f,stsTokenManager:Xt,isAnonymous:Ct}),$n={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:be,metadata:new pe(J.createdAt,J.lastLoginAt),isAnonymous:!(J.email&&J.passwordHash||null!=be&&be.length)};return Object.assign(Dn,$n),Dn})()}}const qn=new Map;function hn(I){on(I instanceof Function,"Expected a class definition");let f=qn.get(I);return f?(on(f instanceof I,"Instance stored in cache mismatched with class"),f):(f=new I,qn.set(I,f),f)}const tr=(()=>{class I{constructor(){this.type="NONE",this.storage={}}_isAvailable(){return(0,U.A)(function*(){return!0})()}_set(v,w){var J=this;return(0,U.A)(function*(){J.storage[v]=w})()}_get(v){var w=this;return(0,U.A)(function*(){const J=w.storage[v];return void 0===J?null:J})()}_remove(v){var w=this;return(0,U.A)(function*(){delete w.storage[v]})()}_addListener(v,w){}_removeListener(v,w){}}return I.type="NONE",I})();function Ar(I,f,v){return`firebase:${I}:${f}:${v}`}class dr{constructor(f,v,w){this.persistence=f,this.auth=v,this.userKey=w;const{config:J,name:be}=this.auth;this.fullUserKey=Ar(this.userKey,J.apiKey,be),this.fullPersistenceKey=Ar("persistence",J.apiKey,be),this.boundEventHandler=v._onStorageEvent.bind(v),this.persistence._addListener(this.fullUserKey,this.boundEventHandler)}setCurrentUser(f){return this.persistence._set(this.fullUserKey,f.toJSON())}getCurrentUser(){var f=this;return(0,U.A)(function*(){const v=yield f.persistence._get(f.fullUserKey);return v?_n._fromJSON(f.auth,v):null})()}removeCurrentUser(){return this.persistence._remove(this.fullUserKey)}savePersistenceForRedirect(){return this.persistence._set(this.fullPersistenceKey,this.persistence.type)}setPersistence(f){var v=this;return(0,U.A)(function*(){if(v.persistence===f)return;const w=yield v.getCurrentUser();return yield v.removeCurrentUser(),v.persistence=f,w?v.setCurrentUser(w):void 0})()}delete(){this.persistence._removeListener(this.fullUserKey,this.boundEventHandler)}static create(f,v,w="authUser"){return(0,U.A)(function*(){if(!v.length)return new dr(hn(tr),f,w);const J=(yield Promise.all(v.map(function(){var $n=(0,U.A)(function*(vr){if(yield vr._isAvailable())return vr});return function(vr){return $n.apply(this,arguments)}}()))).filter($n=>$n);let be=J[0]||hn(tr);const Ct=Ar(w,f.config.apiKey,f.name);let Xt=null;for(const $n of v)try{const vr=yield $n._get(Ct);if(vr){const hi=_n._fromJSON(f,vr);$n!==be&&(Xt=hi),be=$n;break}}catch{}const Dn=J.filter($n=>$n._shouldAllowMigration);return be._shouldAllowMigration&&Dn.length?(be=Dn[0],Xt&&(yield be._set(Ct,Xt.toJSON())),yield Promise.all(v.map(function(){var $n=(0,U.A)(function*(vr){if(vr!==be)try{yield vr._remove(Ct)}catch{}});return function(vr){return $n.apply(this,arguments)}}())),new dr(be,f,w)):new dr(be,f,w)})()}}function $r(I){const f=I.toLowerCase();if(f.includes("opera/")||f.includes("opr/")||f.includes("opios/"))return"Opera";if(gi(f))return"IEMobile";if(f.includes("msie")||f.includes("trident/"))return"IE";if(f.includes("edge/"))return"Edge";if(Zr(f))return"Firefox";if(f.includes("silk/"))return"Silk";if(Ut(f))return"Blackberry";if(te(f))return"Webos";if(fr(f))return"Safari";if((f.includes("chrome/")||Ri(f))&&!f.includes("edge/"))return"Chrome";if(pr(f))return"Android";{const w=I.match(/([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/);if(2===(null==w?void 0:w.length))return w[1]}return"Other"}function Zr(I=(0,oe.ZQ)()){return/firefox\//i.test(I)}function fr(I=(0,oe.ZQ)()){const f=I.toLowerCase();return f.includes("safari/")&&!f.includes("chrome/")&&!f.includes("crios/")&&!f.includes("android")}function Ri(I=(0,oe.ZQ)()){return/crios\//i.test(I)}function gi(I=(0,oe.ZQ)()){return/iemobile/i.test(I)}function pr(I=(0,oe.ZQ)()){return/android/i.test(I)}function Ut(I=(0,oe.ZQ)()){return/blackberry/i.test(I)}function te(I=(0,oe.ZQ)()){return/webos/i.test(I)}function ee(I=(0,oe.ZQ)()){return/iphone|ipad|ipod/i.test(I)||/macintosh/i.test(I)&&/mobile/i.test(I)}function ne(I=(0,oe.ZQ)()){return ee(I)||pr(I)||te(I)||Ut(I)||/windows phone/i.test(I)||gi(I)}function Ge(I,f=[]){let v;switch(I){case"Browser":v=$r((0,oe.ZQ)());break;case"Worker":v=`${$r((0,oe.ZQ)())}-${I}`;break;default:v=I}const w=f.length?f.join(","):"FirebaseCore-web";return`${v}/JsCore/${ue.MF}/${w}`}class At{constructor(f){this.auth=f,this.queue=[]}pushCallback(f,v){const w=be=>new Promise((Ct,Xt)=>{try{Ct(f(be))}catch(Dn){Xt(Dn)}});w.onAbort=v,this.queue.push(w);const J=this.queue.length-1;return()=>{this.queue[J]=()=>Promise.resolve()}}runMiddleware(f){var v=this;return(0,U.A)(function*(){if(v.auth.currentUser===f)return;const w=[];try{for(const J of v.queue)yield J(f),J.onAbort&&w.push(J.onAbort)}catch(J){w.reverse();for(const be of w)try{be()}catch{}throw v.auth._errorFactory.create("login-blocked",{originalMessage:null==J?void 0:J.message})}})()}}function ln(){return(ln=(0,U.A)(function*(I,f={}){return Kt(I,"GET","/v2/passwordPolicy",dn(I,f))})).apply(this,arguments)}class Un{constructor(f){var v,w,J,be;const Ct=f.customStrengthOptions;this.customStrengthOptions={},this.customStrengthOptions.minPasswordLength=null!==(v=Ct.minPasswordLength)&&void 0!==v?v:6,Ct.maxPasswordLength&&(this.customStrengthOptions.maxPasswordLength=Ct.maxPasswordLength),void 0!==Ct.containsLowercaseCharacter&&(this.customStrengthOptions.containsLowercaseLetter=Ct.containsLowercaseCharacter),void 0!==Ct.containsUppercaseCharacter&&(this.customStrengthOptions.containsUppercaseLetter=Ct.containsUppercaseCharacter),void 0!==Ct.containsNumericCharacter&&(this.customStrengthOptions.containsNumericCharacter=Ct.containsNumericCharacter),void 0!==Ct.containsNonAlphanumericCharacter&&(this.customStrengthOptions.containsNonAlphanumericCharacter=Ct.containsNonAlphanumericCharacter),this.enforcementState=f.enforcementState,"ENFORCEMENT_STATE_UNSPECIFIED"===this.enforcementState&&(this.enforcementState="OFF"),this.allowedNonAlphanumericCharacters=null!==(J=null===(w=f.allowedNonAlphanumericCharacters)||void 0===w?void 0:w.join(""))&&void 0!==J?J:"",this.forceUpgradeOnSignin=null!==(be=f.forceUpgradeOnSignin)&&void 0!==be&&be,this.schemaVersion=f.schemaVersion}validatePassword(f){var v,w,J,be,Ct,Xt;const Dn={isValid:!0,passwordPolicy:this};return this.validatePasswordLengthOptions(f,Dn),this.validatePasswordCharacterOptions(f,Dn),Dn.isValid&&(Dn.isValid=null===(v=Dn.meetsMinPasswordLength)||void 0===v||v),Dn.isValid&&(Dn.isValid=null===(w=Dn.meetsMaxPasswordLength)||void 0===w||w),Dn.isValid&&(Dn.isValid=null===(J=Dn.containsLowercaseLetter)||void 0===J||J),Dn.isValid&&(Dn.isValid=null===(be=Dn.containsUppercaseLetter)||void 0===be||be),Dn.isValid&&(Dn.isValid=null===(Ct=Dn.containsNumericCharacter)||void 0===Ct||Ct),Dn.isValid&&(Dn.isValid=null===(Xt=Dn.containsNonAlphanumericCharacter)||void 0===Xt||Xt),Dn}validatePasswordLengthOptions(f,v){const w=this.customStrengthOptions.minPasswordLength,J=this.customStrengthOptions.maxPasswordLength;w&&(v.meetsMinPasswordLength=f.length>=w),J&&(v.meetsMaxPasswordLength=f.length<=J)}validatePasswordCharacterOptions(f,v){let w;this.updatePasswordCharacterOptionsStatuses(v,!1,!1,!1,!1);for(let J=0;J="a"&&w<="z",w>="A"&&w<="Z",w>="0"&&w<="9",this.allowedNonAlphanumericCharacters.includes(w))}updatePasswordCharacterOptionsStatuses(f,v,w,J,be){this.customStrengthOptions.containsLowercaseLetter&&(f.containsLowercaseLetter||(f.containsLowercaseLetter=v)),this.customStrengthOptions.containsUppercaseLetter&&(f.containsUppercaseLetter||(f.containsUppercaseLetter=w)),this.customStrengthOptions.containsNumericCharacter&&(f.containsNumericCharacter||(f.containsNumericCharacter=J)),this.customStrengthOptions.containsNonAlphanumericCharacter&&(f.containsNonAlphanumericCharacter||(f.containsNonAlphanumericCharacter=be))}}class xr{constructor(f,v,w,J){this.app=f,this.heartbeatServiceProvider=v,this.appCheckServiceProvider=w,this.config=J,this.currentUser=null,this.emulatorConfig=null,this.operations=Promise.resolve(),this.authStateSubscription=new Fr(this),this.idTokenSubscription=new Fr(this),this.beforeStateQueue=new At(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=f.name,this.clientVersion=J.sdkClientVersion}_initializeWithPersistence(f,v){var w=this;return v&&(this._popupRedirectResolver=hn(v)),this._initializationPromise=this.queue((0,U.A)(function*(){var J,be;if(!w._deleted&&(w.persistenceManager=yield dr.create(w,f),!w._deleted)){if(null!==(J=w._popupRedirectResolver)&&void 0!==J&&J._shouldInitProactively)try{yield w._popupRedirectResolver._initialize(w)}catch{}yield w.initializeCurrentUser(v),w.lastNotifiedUid=(null===(be=w.currentUser)||void 0===be?void 0:be.uid)||null,!w._deleted&&(w._isInitialized=!0)}})),this._initializationPromise}_onStorageEvent(){var f=this;return(0,U.A)(function*(){if(f._deleted)return;const v=yield f.assertedPersistence.getCurrentUser();if(f.currentUser||v){if(f.currentUser&&v&&f.currentUser.uid===v.uid)return f._currentUser._assign(v),void(yield f.currentUser.getIdToken());yield f._updateCurrentUser(v,!0)}})()}initializeCurrentUserFromIdToken(f){var v=this;return(0,U.A)(function*(){try{const w=yield Nr(v,{idToken:f}),J=yield _n._fromGetAccountInfoResponse(v,w,f);yield v.directlySetCurrentUser(J)}catch(w){console.warn("FirebaseServerApp could not login user with provided authIdToken: ",w),yield v.directlySetCurrentUser(null)}})()}initializeCurrentUser(f){var v=this;return(0,U.A)(function*(){var w;if((0,ue.xZ)(v.app)){const Xt=v.app.settings.authIdToken;return Xt?new Promise(Dn=>{setTimeout(()=>v.initializeCurrentUserFromIdToken(Xt).then(Dn,Dn))}):v.directlySetCurrentUser(null)}const J=yield v.assertedPersistence.getCurrentUser();let be=J,Ct=!1;if(f&&v.config.authDomain){yield v.getOrInitRedirectPersistenceManager();const Xt=null===(w=v.redirectUser)||void 0===w?void 0:w._redirectEventId,Dn=null==be?void 0:be._redirectEventId,$n=yield v.tryRedirectSignIn(f);(!Xt||Xt===Dn)&&null!=$n&&$n.user&&(be=$n.user,Ct=!0)}if(!be)return v.directlySetCurrentUser(null);if(!be._redirectEventId){if(Ct)try{yield v.beforeStateQueue.runMiddleware(be)}catch(Xt){be=J,v._popupRedirectResolver._overrideRedirectResult(v,()=>Promise.reject(Xt))}return be?v.reloadAndSetCurrentUserOrClear(be):v.directlySetCurrentUser(null)}return Nt(v._popupRedirectResolver,v,"argument-error"),yield v.getOrInitRedirectPersistenceManager(),v.redirectUser&&v.redirectUser._redirectEventId===be._redirectEventId?v.directlySetCurrentUser(be):v.reloadAndSetCurrentUserOrClear(be)})()}tryRedirectSignIn(f){var v=this;return(0,U.A)(function*(){let w=null;try{w=yield v._popupRedirectResolver._completeRedirectFn(v,f,!0)}catch{yield v._setRedirectUser(null)}return w})()}reloadAndSetCurrentUserOrClear(f){var v=this;return(0,U.A)(function*(){try{yield rt(f)}catch(w){if("auth/network-request-failed"!==(null==w?void 0:w.code))return v.directlySetCurrentUser(null)}return v.directlySetCurrentUser(f)})()}useDeviceLanguage(){this.languageCode=function fe(){if(typeof navigator>"u")return null;const I=navigator;return I.languages&&I.languages[0]||I.language||null}()}_delete(){var f=this;return(0,U.A)(function*(){f._deleted=!0})()}updateCurrentUser(f){var v=this;return(0,U.A)(function*(){if((0,ue.xZ)(v.app))return Promise.reject(at(v));const w=f?(0,oe.Ku)(f):null;return w&&Nt(w.auth.config.apiKey===v.config.apiKey,v,"invalid-user-token"),v._updateCurrentUser(w&&w._clone(v))})()}_updateCurrentUser(f,v=!1){var w=this;return(0,U.A)(function*(){if(!w._deleted)return f&&Nt(w.tenantId===f.tenantId,w,"tenant-id-mismatch"),v||(yield w.beforeStateQueue.runMiddleware(f)),w.queue((0,U.A)(function*(){yield w.directlySetCurrentUser(f),w.notifyAuthListeners()}))})()}signOut(){var f=this;return(0,U.A)(function*(){return(0,ue.xZ)(f.app)?Promise.reject(at(f)):(yield f.beforeStateQueue.runMiddleware(null),(f.redirectPersistenceManager||f._popupRedirectResolver)&&(yield f._setRedirectUser(null)),f._updateCurrentUser(null,!0))})()}setPersistence(f){var v=this;return(0,ue.xZ)(this.app)?Promise.reject(at(this)):this.queue((0,U.A)(function*(){yield v.assertedPersistence.setPersistence(hn(f))}))}_getRecaptchaConfig(){return null==this.tenantId?this._agentRecaptchaConfig:this._tenantRecaptchaConfigs[this.tenantId]}validatePassword(f){var v=this;return(0,U.A)(function*(){v._getPasswordPolicyInternal()||(yield v._updatePasswordPolicy());const w=v._getPasswordPolicyInternal();return w.schemaVersion!==v.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION?Promise.reject(v._errorFactory.create("unsupported-password-policy-schema-version",{})):w.validatePassword(f)})()}_getPasswordPolicyInternal(){return null===this.tenantId?this._projectPasswordPolicy:this._tenantPasswordPolicies[this.tenantId]}_updatePasswordPolicy(){var f=this;return(0,U.A)(function*(){const v=yield function Jt(I){return ln.apply(this,arguments)}(f),w=new Un(v);null===f.tenantId?f._projectPasswordPolicy=w:f._tenantPasswordPolicies[f.tenantId]=w})()}_getPersistence(){return this.assertedPersistence.persistence.type}_updateErrorMap(f){this._errorFactory=new oe.FA("auth","Firebase",f())}onAuthStateChanged(f,v,w){return this.registerStateListener(this.authStateSubscription,f,v,w)}beforeAuthStateChanged(f,v){return this.beforeStateQueue.pushCallback(f,v)}onIdTokenChanged(f,v,w){return this.registerStateListener(this.idTokenSubscription,f,v,w)}authStateReady(){return new Promise((f,v)=>{if(this.currentUser)f();else{const w=this.onAuthStateChanged(()=>{w(),f()},v)}})}revokeAccessToken(f){var v=this;return(0,U.A)(function*(){if(v.currentUser){const w=yield v.currentUser.getIdToken(),J={providerId:"apple.com",tokenType:"ACCESS_TOKEN",token:f,idToken:w};null!=v.tenantId&&(J.tenantId=v.tenantId),yield function ct(I,f){return lt.apply(this,arguments)}(v,J)}})()}toJSON(){var f;return{apiKey:this.config.apiKey,authDomain:this.config.authDomain,appName:this.name,currentUser:null===(f=this._currentUser)||void 0===f?void 0:f.toJSON()}}_setRedirectUser(f,v){var w=this;return(0,U.A)(function*(){const J=yield w.getOrInitRedirectPersistenceManager(v);return null===f?J.removeCurrentUser():J.setCurrentUser(f)})()}getOrInitRedirectPersistenceManager(f){var v=this;return(0,U.A)(function*(){if(!v.redirectPersistenceManager){const w=f&&hn(f)||v._popupRedirectResolver;Nt(w,v,"argument-error"),v.redirectPersistenceManager=yield dr.create(v,[hn(w._redirectPersistence)],"redirectUser"),v.redirectUser=yield v.redirectPersistenceManager.getCurrentUser()}return v.redirectPersistenceManager})()}_redirectUserForId(f){var v=this;return(0,U.A)(function*(){var w,J;return v._isInitialized&&(yield v.queue((0,U.A)(function*(){}))),(null===(w=v._currentUser)||void 0===w?void 0:w._redirectEventId)===f?v._currentUser:(null===(J=v.redirectUser)||void 0===J?void 0:J._redirectEventId)===f?v.redirectUser:null})()}_persistUserIfCurrent(f){var v=this;return(0,U.A)(function*(){if(f===v.currentUser)return v.queue((0,U.A)(function*(){return v.directlySetCurrentUser(f)}))})()}_notifyListenersIfCurrent(f){f===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 f,v;if(!this._isInitialized)return;this.idTokenSubscription.next(this.currentUser);const w=null!==(v=null===(f=this.currentUser)||void 0===f?void 0:f.uid)&&void 0!==v?v:null;this.lastNotifiedUid!==w&&(this.lastNotifiedUid=w,this.authStateSubscription.next(this.currentUser))}registerStateListener(f,v,w,J){if(this._deleted)return()=>{};const be="function"==typeof v?v:v.next.bind(v);let Ct=!1;const Xt=this._isInitialized?Promise.resolve():this._initializationPromise;if(Nt(Xt,this,"internal-error"),Xt.then(()=>{Ct||be(this.currentUser)}),"function"==typeof v){const Dn=f.addObserver(v,w,J);return()=>{Ct=!0,Dn()}}{const Dn=f.addObserver(v);return()=>{Ct=!0,Dn()}}}directlySetCurrentUser(f){var v=this;return(0,U.A)(function*(){v.currentUser&&v.currentUser!==f&&v._currentUser._stopProactiveRefresh(),f&&v.isProactiveRefreshEnabled&&f._startProactiveRefresh(),v.currentUser=f,f?yield v.assertedPersistence.setCurrentUser(f):yield v.assertedPersistence.removeCurrentUser()})()}queue(f){return this.operations=this.operations.then(f,f),this.operations}get assertedPersistence(){return Nt(this.persistenceManager,this,"internal-error"),this.persistenceManager}_logFramework(f){!f||this.frameworks.includes(f)||(this.frameworks.push(f),this.frameworks.sort(),this.clientVersion=Ge(this.config.clientPlatform,this._getFrameworks()))}_getFrameworks(){return this.frameworks}_getAdditionalHeaders(){var f=this;return(0,U.A)(function*(){var v;const w={"X-Client-Version":f.clientVersion};f.app.options.appId&&(w["X-Firebase-gmpid"]=f.app.options.appId);const J=yield null===(v=f.heartbeatServiceProvider.getImmediate({optional:!0}))||void 0===v?void 0:v.getHeartbeatsHeader();J&&(w["X-Firebase-Client"]=J);const be=yield f._getAppCheckToken();return be&&(w["X-Firebase-AppCheck"]=be),w})()}_getAppCheckToken(){var f=this;return(0,U.A)(function*(){var v;const w=yield null===(v=f.appCheckServiceProvider.getImmediate({optional:!0}))||void 0===v?void 0:v.getToken();return null!=w&&w.error&&function Ye(I,...f){Me.logLevel<=Xe.$b.WARN&&Me.warn(`Auth (${ue.MF}): ${I}`,...f)}(`Error while retrieving App Check token: ${w.error}`),null==w?void 0:w.token})()}}function On(I){return(0,oe.Ku)(I)}class Fr{constructor(f){this.auth=f,this.observer=null,this.addObserver=(0,oe.tD)(v=>this.observer=v)}get next(){return Nt(this.observer,this.auth,"internal-error"),this.observer.next.bind(this.observer)}}let Or={loadJS:()=>(0,U.A)(function*(){throw new Error("Unable to load external scripts")})(),recaptchaV2Script:"",recaptchaEnterpriseScript:"",gapiScript:""};function Tr(I){return Or.loadJS(I)}function li(I){return`__${I}${Math.floor(1e6*Math.random())}`}class mi{constructor(f){this.type="recaptcha-enterprise",this.auth=On(f)}verify(f="verify",v=!1){var w=this;return(0,U.A)(function*(){function be(){return be=(0,U.A)(function*(Xt){if(!v){if(null==Xt.tenantId&&null!=Xt._agentRecaptchaConfig)return Xt._agentRecaptchaConfig.siteKey;if(null!=Xt.tenantId&&void 0!==Xt._tenantRecaptchaConfigs[Xt.tenantId])return Xt._tenantRecaptchaConfigs[Xt.tenantId].siteKey}return new Promise(function(){var Dn=(0,U.A)(function*($n,vr){Mn(Xt,{clientType:"CLIENT_TYPE_WEB",version:"RECAPTCHA_ENTERPRISE"}).then(hi=>{if(void 0!==hi.recaptchaKey){const Vo=new pn(hi);return null==Xt.tenantId?Xt._agentRecaptchaConfig=Vo:Xt._tenantRecaptchaConfigs[Xt.tenantId]=Vo,$n(Vo.siteKey)}vr(new Error("recaptcha Enterprise site key undefined"))}).catch(hi=>{vr(hi)})});return function($n,vr){return Dn.apply(this,arguments)}}())}),be.apply(this,arguments)}function Ct(Xt,Dn,$n){const vr=window.grecaptcha;zt(vr)?vr.enterprise.ready(()=>{vr.enterprise.execute(Xt,{action:f}).then(hi=>{Dn(hi)}).catch(()=>{Dn("NO_RECAPTCHA")})}):$n(Error("No reCAPTCHA enterprise script loaded."))}return new Promise((Xt,Dn)=>{(function J(Xt){return be.apply(this,arguments)})(w.auth).then($n=>{if(!v&&zt(window.grecaptcha))Ct($n,Xt,Dn);else{if(typeof window>"u")return void Dn(new Error("RecaptchaVerifier is only supported in browser"));let vr=function Cr(){return Or.recaptchaEnterpriseScript}();0!==vr.length&&(vr+=$n),Tr(vr).then(()=>{Ct($n,Xt,Dn)}).catch(hi=>{Dn(hi)})}}).catch($n=>{Dn($n)})})})()}}function Wn(I,f,v){return Hn.apply(this,arguments)}function Hn(){return(Hn=(0,U.A)(function*(I,f,v,w=!1){const J=new mi(I);let be;try{be=yield J.verify(v)}catch{be=yield J.verify(v,!0)}const Ct=Object.assign({},f);return Object.assign(Ct,w?{captchaResp:be}:{captchaResponse:be}),Object.assign(Ct,{clientType:"CLIENT_TYPE_WEB"}),Object.assign(Ct,{recaptchaVersion:"RECAPTCHA_ENTERPRISE"}),Ct})).apply(this,arguments)}function ao(I,f,v,w){return ui.apply(this,arguments)}function ui(){return ui=(0,U.A)(function*(I,f,v,w){var J;if(null!==(J=I._getRecaptchaConfig())&&void 0!==J&&J.isProviderEnabled("EMAIL_PASSWORD_PROVIDER")){const be=yield Wn(I,f,v,"getOobCode"===v);return w(I,be)}return w(I,f).catch(function(){var be=(0,U.A)(function*(Ct){if("auth/missing-recaptcha-token"===Ct.code){console.log(`${v} is protected by reCAPTCHA Enterprise for this project. Automatically triggering the reCAPTCHA flow and restarting the flow.`);const Xt=yield Wn(I,f,v,"getOobCode"===v);return w(I,Xt)}return Promise.reject(Ct)});return function(Ct){return be.apply(this,arguments)}}())}),ui.apply(this,arguments)}function he(I){const f=I.indexOf(":");return f<0?"":I.substr(0,f+1)}function W(I){if(!I)return null;const f=Number(I);return isNaN(f)?null:f}class Ve{constructor(f,v){this.providerId=f,this.signInMethod=v}toJSON(){return tt("not implemented")}_getIdTokenResponse(f){return tt("not implemented")}_linkToIdToken(f,v){return tt("not implemented")}_getReauthenticationResolver(f){return tt("not implemented")}}function b(I,f){return j.apply(this,arguments)}function j(){return(j=(0,U.A)(function*(I,f){return Kt(I,"POST","/v1/accounts:signUp",f)})).apply(this,arguments)}function Ee(I,f){return it.apply(this,arguments)}function it(){return(it=(0,U.A)(function*(I,f){return nr(I,"POST","/v1/accounts:signInWithPassword",dn(I,f))})).apply(this,arguments)}function En(){return(En=(0,U.A)(function*(I,f){return nr(I,"POST","/v1/accounts:signInWithEmailLink",dn(I,f))})).apply(this,arguments)}function jn(){return(jn=(0,U.A)(function*(I,f){return nr(I,"POST","/v1/accounts:signInWithEmailLink",dn(I,f))})).apply(this,arguments)}class lr extends Ve{constructor(f,v,w,J=null){super("password",w),this._email=f,this._password=v,this._tenantId=J}static _fromEmailAndPassword(f,v){return new lr(f,v,"password")}static _fromEmailAndCode(f,v,w=null){return new lr(f,v,"emailLink",w)}toJSON(){return{email:this._email,password:this._password,signInMethod:this.signInMethod,tenantId:this._tenantId}}static fromJSON(f){const v="string"==typeof f?JSON.parse(f):f;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(f){var v=this;return(0,U.A)(function*(){switch(v.signInMethod){case"password":return ao(f,{returnSecureToken:!0,email:v._email,password:v._password,clientType:"CLIENT_TYPE_WEB"},"signInWithPassword",Ee);case"emailLink":return function cn(I,f){return En.apply(this,arguments)}(f,{email:v._email,oobCode:v._password});default:Ue(f,"internal-error")}})()}_linkToIdToken(f,v){var w=this;return(0,U.A)(function*(){switch(w.signInMethod){case"password":return ao(f,{idToken:v,returnSecureToken:!0,email:w._email,password:w._password,clientType:"CLIENT_TYPE_WEB"},"signUpPassword",b);case"emailLink":return function Nn(I,f){return jn.apply(this,arguments)}(f,{idToken:v,email:w._email,oobCode:w._password});default:Ue(f,"internal-error")}})()}_getReauthenticationResolver(f){return this._getIdTokenResponse(f)}}function Vn(I,f){return qr.apply(this,arguments)}function qr(){return(qr=(0,U.A)(function*(I,f){return nr(I,"POST","/v1/accounts:signInWithIdp",dn(I,f))})).apply(this,arguments)}class no{constructor(f){var v,w,J,be,Ct,Xt;const Dn=(0,oe.I9)((0,oe.hp)(f)),$n=null!==(v=Dn.apiKey)&&void 0!==v?v:null,vr=null!==(w=Dn.oobCode)&&void 0!==w?w:null,hi=function Io(I){switch(I){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=Dn.mode)&&void 0!==J?J:null);Nt($n&&vr&&hi,"argument-error"),this.apiKey=$n,this.operation=hi,this.code=vr,this.continueUrl=null!==(be=Dn.continueUrl)&&void 0!==be?be:null,this.languageCode=null!==(Ct=Dn.languageCode)&&void 0!==Ct?Ct:null,this.tenantId=null!==(Xt=Dn.tenantId)&&void 0!==Xt?Xt:null}static parseLink(f){const v=function Ss(I){const f=(0,oe.I9)((0,oe.hp)(I)).link,v=f?(0,oe.I9)((0,oe.hp)(f)).deep_link_id:null,w=(0,oe.I9)((0,oe.hp)(I)).deep_link_id;return(w?(0,oe.I9)((0,oe.hp)(w)).link:null)||w||v||f||I}(f);try{return new no(v)}catch{return null}}}let Kr=(()=>{class I{constructor(){this.providerId=I.PROVIDER_ID}static credential(v,w){return lr._fromEmailAndPassword(v,w)}static credentialWithLink(v,w){const J=no.parseLink(w);return Nt(J,"argument-error"),lr._fromEmailAndCode(v,J.code,J.tenantId)}}return I.PROVIDER_ID="password",I.EMAIL_PASSWORD_SIGN_IN_METHOD="password",I.EMAIL_LINK_SIGN_IN_METHOD="emailLink",I})();class fo{constructor(f){this.providerId=f,this.defaultLanguageCode=null,this.customParameters={}}setDefaultLanguage(f){this.defaultLanguageCode=f}setCustomParameters(f){return this.customParameters=f,this}getCustomParameters(){return this.customParameters}}class ka extends fo{constructor(){super(...arguments),this.scopes=[]}addScope(f){return this.scopes.includes(f)||this.scopes.push(f),this}getScopes(){return[...this.scopes]}}function Ao(I,f){return Fo.apply(this,arguments)}function Fo(){return(Fo=(0,U.A)(function*(I,f){return nr(I,"POST","/v1/accounts:signUp",dn(I,f))})).apply(this,arguments)}class io{constructor(f){this.user=f.user,this.providerId=f.providerId,this._tokenResponse=f._tokenResponse,this.operationType=f.operationType}static _fromIdTokenResponse(f,v,w,J=!1){return(0,U.A)(function*(){const be=yield _n._fromIdTokenResponse(f,w,J),Ct=ha(w);return new io({user:be,providerId:Ct,_tokenResponse:w,operationType:v})})()}static _forOperation(f,v,w){return(0,U.A)(function*(){yield f._updateTokensIfNecessary(w,!0);const J=ha(w);return new io({user:f,providerId:J,_tokenResponse:w,operationType:v})})()}}function ha(I){return I.providerId?I.providerId:"phoneNumber"in I?"phone":null}class N extends oe.g{constructor(f,v,w,J){var be;super(v.code,v.message),this.operationType=w,this.user=J,Object.setPrototypeOf(this,N.prototype),this.customData={appName:f.name,tenantId:null!==(be=f.tenantId)&&void 0!==be?be:void 0,_serverResponse:v.customData._serverResponse,operationType:w}}static _fromErrorAndOperation(f,v,w,J){return new N(f,v,w,J)}}function Ae(I,f,v,w){return("reauthenticate"===f?v._getReauthenticationResolver(I):v._getIdTokenResponse(I)).catch(be=>{throw"auth/multi-factor-auth-required"===be.code?N._fromErrorAndOperation(I,be,f,w):be})}function wr(){return(wr=(0,U.A)(function*(I,f,v=!1){const w=yield kr(I,f._linkToIdToken(I.auth,yield I.getIdToken()),v);return io._forOperation(I,"link",w)})).apply(this,arguments)}function Yo(){return(Yo=(0,U.A)(function*(I,f,v=!1){const{auth:w}=I;if((0,ue.xZ)(w.app))return Promise.reject(at(w));const J="reauthenticate";try{const be=yield kr(I,Ae(w,J,f,I),v);Nt(be.idToken,w,"internal-error");const Ct=Pr(be.idToken);Nt(Ct,w,"internal-error");const{sub:Xt}=Ct;return Nt(I.uid===Xt,w,"user-mismatch"),io._forOperation(I,J,be)}catch(be){throw"auth/user-not-found"===(null==be?void 0:be.code)&&Ue(w,"user-mismatch"),be}})).apply(this,arguments)}function Fa(I,f){return _s.apply(this,arguments)}function _s(){return(_s=(0,U.A)(function*(I,f,v=!1){if((0,ue.xZ)(I.app))return Promise.reject(at(I));const w="signIn",J=yield Ae(I,w,f),be=yield io._fromIdTokenResponse(I,w,J);return v||(yield I._updateCurrentUser(be.user)),be})).apply(this,arguments)}function fa(){return(fa=(0,U.A)(function*(I,f){return Fa(On(I),f)})).apply(this,arguments)}function cl(I){return Hr.apply(this,arguments)}function Hr(){return(Hr=(0,U.A)(function*(I){const f=On(I);f._getPasswordPolicyInternal()&&(yield f._updatePasswordPolicy())})).apply(this,arguments)}function Os(I,f,v){return Zo.apply(this,arguments)}function Zo(){return(Zo=(0,U.A)(function*(I,f,v){if((0,ue.xZ)(I.app))return Promise.reject(at(I));const w=On(I),Ct=yield ao(w,{returnSecureToken:!0,email:f,password:v,clientType:"CLIENT_TYPE_WEB"},"signUpPassword",Ao).catch(Dn=>{throw"auth/password-does-not-meet-requirements"===Dn.code&&cl(I),Dn}),Xt=yield io._fromIdTokenResponse(w,"signIn",Ct);return yield w._updateCurrentUser(Xt.user),Xt})).apply(this,arguments)}function As(I,f,v){return(0,ue.xZ)(I.app)?Promise.reject(at(I)):function Gs(I,f){return fa.apply(this,arguments)}((0,oe.Ku)(I),Kr.credential(f,v)).catch(function(){var w=(0,U.A)(function*(J){throw"auth/password-does-not-meet-requirements"===J.code&&cl(I),J});return function(J){return w.apply(this,arguments)}}())}function Hi(I,f,v,w){return(0,oe.Ku)(I).onIdTokenChanged(f,v,w)}const qs="__sak";class _c{constructor(f,v){this.storageRetriever=f,this.type=v}_isAvailable(){try{return this.storage?(this.storage.setItem(qs,"1"),this.storage.removeItem(qs),Promise.resolve(!0)):Promise.resolve(!1)}catch{return Promise.resolve(!1)}}_set(f,v){return this.storage.setItem(f,JSON.stringify(v)),Promise.resolve()}_get(f){const v=this.storage.getItem(f);return Promise.resolve(v?JSON.parse(v):null)}_remove(f){return this.storage.removeItem(f),Promise.resolve()}get storage(){return this.storageRetriever()}}const Ea=(()=>{class I extends _c{constructor(){super(()=>window.localStorage,"LOCAL"),this.boundEventHandler=(v,w)=>this.onStorageEvent(v,w),this.listeners={},this.localCache={},this.pollTimer=null,this.safariLocalStorageNotSynced=function Mi(){const I=(0,oe.ZQ)();return fr(I)||ee(I)}()&&function Te(){try{return!(!window||window===window.top)}catch{return!1}}(),this.fallbackToPolling=ne(),this._shouldAllowMigration=!0}forAllChangedKeys(v){for(const w of Object.keys(this.listeners)){const J=this.storage.getItem(w),be=this.localCache[w];J!==be&&v(w,be,J)}}onStorageEvent(v,w=!1){if(!v.key)return void this.forAllChangedKeys((Xt,Dn,$n)=>{this.notifyListeners(Xt,$n)});const J=v.key;if(w?this.detachListener():this.stopPolling(),this.safariLocalStorageNotSynced){const Xt=this.storage.getItem(J);if(v.newValue!==Xt)null!==v.newValue?this.storage.setItem(J,v.newValue):this.storage.removeItem(J);else if(this.localCache[J]===v.newValue&&!w)return}const be=()=>{const Xt=this.storage.getItem(J);!w&&this.localCache[J]===Xt||this.notifyListeners(J,Xt)},Ct=this.storage.getItem(J);!function x(){return(0,oe.lT)()&&10===document.documentMode}()||Ct===v.newValue||v.newValue===v.oldValue?be():setTimeout(be,10)}notifyListeners(v,w){this.localCache[v]=w;const J=this.listeners[v];if(J)for(const be of Array.from(J))be(w&&JSON.parse(w))}startPolling(){this.stopPolling(),this.pollTimer=setInterval(()=>{this.forAllChangedKeys((v,w,J)=>{this.onStorageEvent(new StorageEvent("storage",{key:v,oldValue:w,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,w){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(w)}_removeListener(v,w){this.listeners[v]&&(this.listeners[v].delete(w),0===this.listeners[v].size&&delete this.listeners[v]),0===Object.keys(this.listeners).length&&(this.detachListener(),this.stopPolling())}_set(v,w){var J=()=>super._set,be=this;return(0,U.A)(function*(){yield J().call(be,v,w),be.localCache[v]=JSON.stringify(w)})()}_get(v){var w=()=>super._get,J=this;return(0,U.A)(function*(){const be=yield w().call(J,v);return J.localCache[v]=JSON.stringify(be),be})()}_remove(v){var w=()=>super._remove,J=this;return(0,U.A)(function*(){yield w().call(J,v),delete J.localCache[v]})()}}return I.type="LOCAL",I})(),Wo=(()=>{class I extends _c{constructor(){super(()=>window.sessionStorage,"SESSION")}_addListener(v,w){}_removeListener(v,w){}}return I.type="SESSION",I})();let Ia=(()=>{class I{constructor(v){this.eventTarget=v,this.handlersMap={},this.boundEventHandler=this.handleEvent.bind(this)}static _getInstance(v){const w=this.receivers.find(be=>be.isListeningto(v));if(w)return w;const J=new I(v);return this.receivers.push(J),J}isListeningto(v){return this.eventTarget===v}handleEvent(v){var w=this;return(0,U.A)(function*(){const J=v,{eventId:be,eventType:Ct,data:Xt}=J.data,Dn=w.handlersMap[Ct];if(null==Dn||!Dn.size)return;J.ports[0].postMessage({status:"ack",eventId:be,eventType:Ct});const $n=Array.from(Dn).map(function(){var hi=(0,U.A)(function*(Vo){return Vo(J.origin,Xt)});return function(Vo){return hi.apply(this,arguments)}}()),vr=yield function pl(I){return Promise.all(I.map(function(){var f=(0,U.A)(function*(v){try{return{fulfilled:!0,value:yield v}}catch(w){return{fulfilled:!1,reason:w}}});return function(v){return f.apply(this,arguments)}}()))}($n);J.ports[0].postMessage({status:"done",eventId:be,eventType:Ct,response:vr})})()}_subscribe(v,w){0===Object.keys(this.handlersMap).length&&this.eventTarget.addEventListener("message",this.boundEventHandler),this.handlersMap[v]||(this.handlersMap[v]=new Set),this.handlersMap[v].add(w)}_unsubscribe(v,w){this.handlersMap[v]&&w&&this.handlersMap[v].delete(w),(!w||0===this.handlersMap[v].size)&&delete this.handlersMap[v],0===Object.keys(this.handlersMap).length&&this.eventTarget.removeEventListener("message",this.boundEventHandler)}}return I.receivers=[],I})();function Xi(I="",f=10){let v="";for(let w=0;w{const vr=Xi("",20);be.port1.start();const hi=setTimeout(()=>{$n(new Error("unsupported_event"))},w);Xt={messageChannel:be,onMessage(Vo){const to=Vo;if(to.data.eventId===vr)switch(to.data.status){case"ack":clearTimeout(hi),Ct=setTimeout(()=>{$n(new Error("timeout"))},3e3);break;case"done":clearTimeout(Ct),Dn(to.data.response);break;default:clearTimeout(hi),clearTimeout(Ct),$n(new Error("invalid_response"))}}},J.handlers.add(Xt),be.port1.addEventListener("message",Xt.onMessage),J.target.postMessage({eventType:f,eventId:vr,data:v},[be.port2])}).finally(()=>{Xt&&J.removeMessageHandler(Xt)})})()}}function di(){return window}function Wl(){return typeof di().WorkerGlobalScope<"u"&&"function"==typeof di().importScripts}function Ys(){return(Ys=(0,U.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",Aa="firebaseLocalStorage",Mu="fbase_key";class Ca{constructor(f){this.request=f}toPromise(){return new Promise((f,v)=>{this.request.addEventListener("success",()=>{f(this.request.result)}),this.request.addEventListener("error",()=>{v(this.request.error)})})}}function ja(I,f){return I.transaction([Aa],f?"readwrite":"readonly").objectStore(Aa)}function Td(){const I=indexedDB.open(gl,1);return new Promise((f,v)=>{I.addEventListener("error",()=>{v(I.error)}),I.addEventListener("upgradeneeded",()=>{const w=I.result;try{w.createObjectStore(Aa,{keyPath:Mu})}catch(J){v(J)}}),I.addEventListener("success",(0,U.A)(function*(){const w=I.result;w.objectStoreNames.contains(Aa)?f(w):(w.close(),yield function tg(){const I=indexedDB.deleteDatabase(gl);return new Ca(I).toPromise()}(),f(yield Td()))}))})}function Da(I,f,v){return za.apply(this,arguments)}function za(){return(za=(0,U.A)(function*(I,f,v){const w=ja(I,!0).put({[Mu]:f,value:v});return new Ca(w).toPromise()})).apply(this,arguments)}function bd(){return(bd=(0,U.A)(function*(I,f){const v=ja(I,!1).get(f),w=yield new Ca(v).toPromise();return void 0===w?null:w.value})).apply(this,arguments)}function E(I,f){const v=ja(I,!0).delete(f);return new Ca(v).toPromise()}const L=(()=>{class I{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,U.A)(function*(){return v.db||(v.db=yield Td()),v.db})()}_withRetries(v){var w=this;return(0,U.A)(function*(){let J=0;for(;;)try{const be=yield w._openDb();return yield v(be)}catch(be){if(J++>3)throw be;w.db&&(w.db.close(),w.db=void 0)}})()}initializeServiceWorkerMessaging(){var v=this;return(0,U.A)(function*(){return Wl()?v.initializeReceiver():v.initializeSender()})()}initializeReceiver(){var v=this;return(0,U.A)(function*(){v.receiver=Ia._getInstance(function Kl(){return Wl()?self:null}()),v.receiver._subscribe("keyChanged",function(){var w=(0,U.A)(function*(J,be){return{keyProcessed:(yield v._poll()).includes(be.key)}});return function(J,be){return w.apply(this,arguments)}}()),v.receiver._subscribe("ping",function(){var w=(0,U.A)(function*(J,be){return["keyChanged"]});return function(J,be){return w.apply(this,arguments)}}())})()}initializeSender(){var v=this;return(0,U.A)(function*(){var w,J;if(v.activeServiceWorker=yield function rs(){return Ys.apply(this,arguments)}(),!v.activeServiceWorker)return;v.sender=new Ru(v.activeServiceWorker);const be=yield v.sender._send("ping",{},800);be&&null!==(w=be[0])&&void 0!==w&&w.fulfilled&&null!==(J=be[0])&&void 0!==J&&J.value.includes("keyChanged")&&(v.serviceWorkerReceiverAvailable=!0)})()}notifyServiceWorker(v){var w=this;return(0,U.A)(function*(){if(w.sender&&w.activeServiceWorker&&function ds(){var I;return(null===(I=null==navigator?void 0:navigator.serviceWorker)||void 0===I?void 0:I.controller)||null}()===w.activeServiceWorker)try{yield w.sender._send("keyChanged",{key:v},w.serviceWorkerReceiverAvailable?800:50)}catch{}})()}_isAvailable(){return(0,U.A)(function*(){try{if(!indexedDB)return!1;const v=yield Td();return yield Da(v,qs,"1"),yield E(v,qs),!0}catch{}return!1})()}_withPendingWrite(v){var w=this;return(0,U.A)(function*(){w.pendingWrites++;try{yield v()}finally{w.pendingWrites--}})()}_set(v,w){var J=this;return(0,U.A)(function*(){return J._withPendingWrite((0,U.A)(function*(){return yield J._withRetries(be=>Da(be,v,w)),J.localCache[v]=w,J.notifyServiceWorker(v)}))})()}_get(v){var w=this;return(0,U.A)(function*(){const J=yield w._withRetries(be=>function Kh(I,f){return bd.apply(this,arguments)}(be,v));return w.localCache[v]=J,J})()}_remove(v){var w=this;return(0,U.A)(function*(){return w._withPendingWrite((0,U.A)(function*(){return yield w._withRetries(J=>E(J,v)),delete w.localCache[v],w.notifyServiceWorker(v)}))})()}_poll(){var v=this;return(0,U.A)(function*(){const w=yield v._withRetries(Ct=>{const Xt=ja(Ct,!1).getAll();return new Ca(Xt).toPromise()});if(!w)return[];if(0!==v.pendingWrites)return[];const J=[],be=new Set;if(0!==w.length)for(const{fbase_key:Ct,value:Xt}of w)be.add(Ct),JSON.stringify(v.localCache[Ct])!==JSON.stringify(Xt)&&(v.notifyListeners(Ct,Xt),J.push(Ct));for(const Ct of Object.keys(v.localCache))v.localCache[Ct]&&!be.has(Ct)&&(v.notifyListeners(Ct,null),J.push(Ct));return J})()}notifyListeners(v,w){this.localCache[v]=w;const J=this.listeners[v];if(J)for(const be of Array.from(J))be(w)}startPolling(){var v=this;this.stopPolling(),this.pollTimer=setInterval((0,U.A)(function*(){return v._poll()}),800)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}_addListener(v,w){0===Object.keys(this.listeners).length&&this.startPolling(),this.listeners[v]||(this.listeners[v]=new Set,this._get(v)),this.listeners[v].add(w)}_removeListener(v,w){this.listeners[v]&&(this.listeners[v].delete(w),0===this.listeners[v].size&&delete this.listeners[v]),0===Object.keys(this.listeners).length&&this.stopPolling()}}return I.type="LOCAL",I})();li("rcb"),new se(3e4,6e4);class Ro extends Ve{constructor(f){super("custom","custom"),this.params=f}_getIdTokenResponse(f){return Vn(f,this._buildIdpRequest())}_linkToIdToken(f,v){return Vn(f,this._buildIdpRequest(v))}_getReauthenticationResolver(f){return Vn(f,this._buildIdpRequest())}_buildIdpRequest(f){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 f&&(v.idToken=f),v}}function wd(I){return Fa(I.auth,new Ro(I),I.bypassAuthState)}function Ic(I){const{auth:f,user:v}=I;return Nt(v,f,"internal-error"),function So(I,f){return Yo.apply(this,arguments)}(v,new Ro(I),I.bypassAuthState)}function Ac(I){return Ts.apply(this,arguments)}function Ts(){return(Ts=(0,U.A)(function*(I){const{auth:f,user:v}=I;return Nt(v,f,"internal-error"),function Xn(I,f){return wr.apply(this,arguments)}(v,new Ro(I),I.bypassAuthState)})).apply(this,arguments)}class Cc{constructor(f,v,w,J,be=!1){this.auth=f,this.resolver=w,this.user=J,this.bypassAuthState=be,this.pendingPromise=null,this.eventManager=null,this.filter=Array.isArray(v)?v:[v]}execute(){var f=this;return new Promise(function(){var v=(0,U.A)(function*(w,J){f.pendingPromise={resolve:w,reject:J};try{f.eventManager=yield f.resolver._initialize(f.auth),yield f.onExecution(),f.eventManager.registerConsumer(f)}catch(be){f.reject(be)}});return function(w,J){return v.apply(this,arguments)}}())}onAuthEvent(f){var v=this;return(0,U.A)(function*(){const{urlResponse:w,sessionId:J,postBody:be,tenantId:Ct,error:Xt,type:Dn}=f;if(Xt)return void v.reject(Xt);const $n={auth:v.auth,requestUri:w,sessionId:J,tenantId:Ct||void 0,postBody:be||void 0,user:v.user,bypassAuthState:v.bypassAuthState};try{v.resolve(yield v.getIdpTask(Dn)($n))}catch(vr){v.reject(vr)}})()}onError(f){this.reject(f)}getIdpTask(f){switch(f){case"signInViaPopup":case"signInViaRedirect":return wd;case"linkViaPopup":case"linkViaRedirect":return Ac;case"reauthViaPopup":case"reauthViaRedirect":return Ic;default:Ue(this.auth,"internal-error")}}resolve(f){on(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.resolve(f),this.unregisterAndCleanUp()}reject(f){on(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.reject(f),this.unregisterAndCleanUp()}unregisterAndCleanUp(){this.eventManager&&this.eventManager.unregisterConsumer(this),this.pendingPromise=null,this.cleanUp()}}new se(2e3,1e4);const gr="pendingRedirect",vl=new Map;class Rd extends Cc{constructor(f,v,w=!1){super(f,["signInViaRedirect","linkViaRedirect","reauthViaRedirect","unknown"],v,void 0,w),this.eventId=null}execute(){var f=()=>super.execute,v=this;return(0,U.A)(function*(){let w=vl.get(v.auth._key());if(!w){try{const be=(yield function Dc(I,f){return Tc.apply(this,arguments)}(v.resolver,v.auth))?yield f().call(v):null;w=()=>Promise.resolve(be)}catch(J){w=()=>Promise.reject(J)}vl.set(v.auth._key(),w)}return v.bypassAuthState||vl.set(v.auth._key(),()=>Promise.resolve(null)),w()})()}onAuthEvent(f){var v=()=>super.onAuthEvent,w=this;return(0,U.A)(function*(){if("signInViaRedirect"===f.type)return v().call(w,f);if("unknown"!==f.type){if(f.eventId){const J=yield w.auth._redirectUserForId(f.eventId);if(J)return w.user=J,v().call(w,f);w.resolve(null)}}else w.resolve(null)})()}onExecution(){return(0,U.A)(function*(){})()}cleanUp(){}}function Tc(){return(Tc=(0,U.A)(function*(I,f){const v=function yl(I){return Ar(gr,I.config.apiKey,I.name)}(f),w=function qh(I){return hn(I._redirectPersistence)}(I);if(!(yield w._isAvailable()))return!1;const J="true"===(yield w._get(v));return yield w._remove(v),J})).apply(this,arguments)}function _l(I,f){vl.set(I._key(),f)}function Nu(I,f){return Pd.apply(this,arguments)}function Pd(){return(Pd=(0,U.A)(function*(I,f,v=!1){if((0,ue.xZ)(I.app))return Promise.reject(at(I));const w=On(I),J=function fs(I,f){return f?hn(f):(Nt(I._popupRedirectResolver,I,"argument-error"),I._popupRedirectResolver)}(w,f),Ct=yield new Rd(w,J,v).execute();return Ct&&!v&&(delete Ct.user._redirectEventId,yield w._persistUserIfCurrent(Ct.user),yield w._setRedirectUser(null,f)),Ct})).apply(this,arguments)}class ia{constructor(f){this.auth=f,this.cachedEventUids=new Set,this.consumers=new Set,this.queuedRedirectEvent=null,this.hasHandledPotentialRedirect=!1,this.lastProcessedEventTime=Date.now()}registerConsumer(f){this.consumers.add(f),this.queuedRedirectEvent&&this.isEventForConsumer(this.queuedRedirectEvent,f)&&(this.sendToConsumer(this.queuedRedirectEvent,f),this.saveEventToCache(this.queuedRedirectEvent),this.queuedRedirectEvent=null)}unregisterConsumer(f){this.consumers.delete(f)}onEvent(f){if(this.hasEventBeenHandled(f))return!1;let v=!1;return this.consumers.forEach(w=>{this.isEventForConsumer(f,w)&&(v=!0,this.sendToConsumer(f,w),this.saveEventToCache(f))}),this.hasHandledPotentialRedirect||!function oa(I){switch(I.type){case"signInViaRedirect":case"linkViaRedirect":case"reauthViaRedirect":return!0;case"unknown":return bs(I);default:return!1}}(f)||(this.hasHandledPotentialRedirect=!0,v||(this.queuedRedirectEvent=f,v=!0)),v}sendToConsumer(f,v){var w;if(f.error&&!bs(f)){const J=(null===(w=f.error.code)||void 0===w?void 0:w.split("auth/")[1])||"internal-error";v.onError(Fe(this.auth,J))}else v.onAuthEvent(f)}isEventForConsumer(f,v){const w=null===v.eventId||!!f.eventId&&f.eventId===v.eventId;return v.filter.includes(f.type)&&w}hasEventBeenHandled(f){return Date.now()-this.lastProcessedEventTime>=6e5&&this.cachedEventUids.clear(),this.cachedEventUids.has(wc(f))}saveEventToCache(f){this.cachedEventUids.add(wc(f)),this.lastProcessedEventTime=Date.now()}}function wc(I){return[I.type,I.eventId,I.sessionId,I.tenantId].filter(f=>f).join("-")}function bs({type:I,error:f}){return"unknown"===I&&"auth/no-auth-event"===(null==f?void 0:f.code)}function Sc(){return(Sc=(0,U.A)(function*(I,f={}){return Kt(I,"GET","/v1/projects",f)})).apply(this,arguments)}const xd=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,To=/^https?/;function ku(){return ku=(0,U.A)(function*(I){if(I.config.emulator)return;const{authorizedDomains:f}=yield function og(I){return Sc.apply(this,arguments)}(I);for(const v of f)try{if(Nd(v))return}catch{}Ue(I,"unauthorized-domain")}),ku.apply(this,arguments)}function Nd(I){const f=dt(),{protocol:v,hostname:w}=new URL(f);if(I.startsWith("chrome-extension://")){const Ct=new URL(I);return""===Ct.hostname&&""===w?"chrome-extension:"===v&&I.replace("chrome-extension://","")===f.replace("chrome-extension://",""):"chrome-extension:"===v&&Ct.hostname===w}if(!To.test(v))return!1;if(xd.test(I))return w===I;const J=I.replace(/\./g,"\\.");return new RegExp("^(.+\\."+J+"|"+J+")$","i").test(w)}const Rc=new se(3e4,6e4);function Mc(){const I=di().___jsl;if(null!=I&&I.H)for(const f of Object.keys(I.H))if(I.H[f].r=I.H[f].r||[],I.H[f].L=I.H[f].L||[],I.H[f].r=[...I.H[f].L],I.CP)for(let v=0;v{var w,J,be;function Ct(){Mc(),gapi.load("gapi.iframes",{callback:()=>{f(gapi.iframes.getContext())},ontimeout:()=>{Mc(),v(Fe(I,"network-request-failed"))},timeout:Rc.get()})}if(null!==(J=null===(w=di().gapi)||void 0===w?void 0:w.iframes)&&void 0!==J&&J.Iframe)f(gapi.iframes.getContext());else{if(null===(be=di().gapi)||void 0===be||!be.load){const Xt=li("iframefcb");return di()[Xt]=()=>{gapi.load?Ct():v(Fe(I,"network-request-failed"))},Tr(`${function ai(){return Or.gapiScript}()}?onload=${Xt}`).catch(Dn=>v(Dn))}Ct()}}).catch(f=>{throw Sa=null,f})}(I),Sa}(I),v=di().gapi;return Nt(v,I,"internal-error"),f.open({where:document.body,url:mo(I),messageHandlersFilter:v.iframes.CROSS_ORIGIN_IFRAMES_FILTER,attributes:Lu,dontclear:!0},w=>new Promise(function(){var J=(0,U.A)(function*(be,Ct){yield w.restyle({setHideOnLeave:!1});const Xt=Fe(I,"network-request-failed"),Dn=di().setTimeout(()=>{Ct(Xt)},Zh.get());function $n(){di().clearTimeout(Dn),be(w)}w.ping($n).then($n,()=>{Ct(Xt)})});return function(be,Ct){return J.apply(this,arguments)}}()))}),Fi.apply(this,arguments)}const ef={location:"yes",resizable:"yes",statusbar:"yes",toolbar:"no"};class Bu{constructor(f){this.window=f,this.associatedEvent=null}close(){if(this.window)try{this.window.close()}catch{}}}const ag="__/auth/handler",$u="emulator/auth/handler",xc=encodeURIComponent("fac");function sa(I,f,v,w,J,be){return aa.apply(this,arguments)}function aa(){return(aa=(0,U.A)(function*(I,f,v,w,J,be){Nt(I.config.authDomain,I,"auth-domain-config-required"),Nt(I.config.apiKey,I,"invalid-api-key");const Ct={apiKey:I.config.apiKey,appName:I.name,authType:v,redirectUrl:w,v:ue.MF,eventId:J};if(f instanceof fo){f.setDefaultLanguage(I.languageCode),Ct.providerId=f.providerId||"",(0,oe.Im)(f.getCustomParameters())||(Ct.customParameters=JSON.stringify(f.getCustomParameters()));for(const[vr,hi]of Object.entries(be||{}))Ct[vr]=hi}if(f instanceof ka){const vr=f.getScopes().filter(hi=>""!==hi);vr.length>0&&(Ct.scopes=vr.join(","))}I.tenantId&&(Ct.tid=I.tenantId);const Xt=Ct;for(const vr of Object.keys(Xt))void 0===Xt[vr]&&delete Xt[vr];const Dn=yield I._getAppCheckToken(),$n=Dn?`#${xc}=${encodeURIComponent(Dn)}`:"";return`${function Oc({config:I}){return I.emulator?ve(I,$u):`https://${I.authDomain}/${ag}`}(I)}?${(0,oe.Am)(Xt).slice(1)}${$n}`})).apply(this,arguments)}const El="webStorageSupport",Il=class rf{constructor(){this.eventManagers={},this.iframes={},this.originValidationPromises={},this._redirectPersistence=Wo,this._completeRedirectFn=Nu,this._overrideRedirectResult=_l}_openPopup(f,v,w,J){var be=this;return(0,U.A)(function*(){var Ct;on(null===(Ct=be.eventManagers[f._key()])||void 0===Ct?void 0:Ct.manager,"_initialize() not called before _openPopup()");const Xt=yield sa(f,v,w,dt(),J);return function Uu(I,f,v,w=500,J=600){const be=Math.max((window.screen.availHeight-J)/2,0).toString(),Ct=Math.max((window.screen.availWidth-w)/2,0).toString();let Xt="";const Dn=Object.assign(Object.assign({},ef),{width:w.toString(),height:J.toString(),top:be,left:Ct}),$n=(0,oe.ZQ)().toLowerCase();v&&(Xt=Ri($n)?"_blank":v),Zr($n)&&(f=f||"http://localhost",Dn.scrollbars="yes");const vr=Object.entries(Dn).reduce((Vo,[to,ua])=>`${Vo}${to}=${ua},`,"");if(function M(I=(0,oe.ZQ)()){var f;return ee(I)&&!(null===(f=window.navigator)||void 0===f||!f.standalone)}($n)&&"_self"!==Xt)return function Vs(I,f){const v=document.createElement("a");v.href=I,v.target=f;const w=document.createEvent("MouseEvent");w.initMouseEvent("click",!0,!0,window,1,0,0,0,0,!1,!1,!1,!1,1,null),v.dispatchEvent(w)}(f||"",Xt),new Bu(null);const hi=window.open(f||"",Xt,vr);Nt(hi,I,"popup-blocked");try{hi.focus()}catch{}return new Bu(hi)}(f,Xt,Xi())})()}_openRedirect(f,v,w,J){var be=this;return(0,U.A)(function*(){return yield be._originValidation(f),function Do(I){di().location.href=I}(yield sa(f,v,w,dt(),J)),new Promise(()=>{})})()}_initialize(f){const v=f._key();if(this.eventManagers[v]){const{manager:J,promise:be}=this.eventManagers[v];return J?Promise.resolve(J):(on(be,"If manager is not set, promise should be"),be)}const w=this.initAndGetManager(f);return this.eventManagers[v]={promise:w},w.catch(()=>{delete this.eventManagers[v]}),w}initAndGetManager(f){var v=this;return(0,U.A)(function*(){const w=yield function Ra(I){return Fi.apply(this,arguments)}(f),J=new ia(f);return w.register("authEvent",be=>(Nt(null==be?void 0:be.authEvent,f,"invalid-auth-event"),{status:J.onEvent(be.authEvent)?"ACK":"ERROR"}),gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER),v.eventManagers[f._key()]={manager:J},v.iframes[f._key()]=w,J})()}_isIframeWebStorageSupported(f,v){this.iframes[f._key()].send(El,{type:El},J=>{var be;const Ct=null===(be=null==J?void 0:J[0])||void 0===be?void 0:be[El];void 0!==Ct&&v(!!Ct),Ue(f,"internal-error")},gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER)}_originValidation(f){const v=f._key();return this.originValidationPromises[v]||(this.originValidationPromises[v]=function Od(I){return ku.apply(this,arguments)}(f)),this.originValidationPromises[v]}get _shouldInitProactively(){return ne()||fr()||ee()}};var Vd="@firebase/auth";class Ma{constructor(f){this.auth=f,this.internalListeners=new Map}getUid(){var f;return this.assertAuthConfigured(),(null===(f=this.auth.currentUser)||void 0===f?void 0:f.uid)||null}getToken(f){var v=this;return(0,U.A)(function*(){return v.assertAuthConfigured(),yield v.auth._initializationPromise,v.auth.currentUser?{accessToken:yield v.auth.currentUser.getIdToken(f)}:null})()}addAuthTokenListener(f){if(this.assertAuthConfigured(),this.internalListeners.has(f))return;const v=this.auth.onIdTokenChanged(w=>{f((null==w?void 0:w.stsTokenManager.accessToken)||null)});this.internalListeners.set(f,v),this.updateProactiveRefresh()}removeAuthTokenListener(f){this.assertAuthConfigured();const v=this.internalListeners.get(f);v&&(this.internalListeners.delete(f),v(),this.updateProactiveRefresh())}assertAuthConfigured(){Nt(this.auth._initializationPromise,"dependent-sdk-initialized-before-auth")}updateProactiveRefresh(){this.internalListeners.size>0?this.auth._startProactiveRefresh():this.auth._stopProactiveRefresh()}}const eu=(0,oe.XA)("authIdTokenMaxAge")||300;let af=null;const lf=I=>function(){var f=(0,U.A)(function*(v){const w=v&&(yield v.getIdTokenResult()),J=w&&((new Date).getTime()-Date.parse(w.issuedAtTime))/1e3;if(J&&J>eu)return;const be=null==w?void 0:w.token;af!==be&&(af=be,yield fetch(I,{method:be?"POST":"DELETE",headers:be?{Authorization:`Bearer ${be}`}:{}}))});return function(v){return f.apply(this,arguments)}}();function Bd(I=(0,ue.Sx)()){const f=(0,ue.j6)(I,"auth");if(f.isInitialized())return f.getImmediate();const v=function No(I,f){const v=(0,ue.j6)(I,"auth");if(v.isInitialized()){const J=v.getImmediate(),be=v.getOptions();if((0,oe.bD)(be,null!=f?f:{}))return J;Ue(J,"already-initialized")}return v.initialize({options:f})}(I,{popupRedirectResolver:Il,persistence:[L,Ea,Wo]}),w=(0,oe.XA)("authTokenSyncURL");if(w&&"boolean"==typeof isSecureContext&&isSecureContext){const be=new URL(w,location.origin);if(location.origin===be.origin){const Ct=lf(be.toString());(function vi(I,f,v){(0,oe.Ku)(I).beforeAuthStateChanged(f,v)})(v,Ct,()=>Ct(v.currentUser)),Hi(v,Xt=>Ct(Xt))}}const J=(0,oe.Tj)("auth");return J&&function bt(I,f,v){const w=On(I);Nt(w._canInitEmulator,w,"emulator-config-failed"),Nt(/^https?:\/\//.test(f),w,"invalid-emulator-scheme");const J=!(null==v||!v.disableWarnings),be=he(f),{host:Ct,port:Xt}=function le(I){const f=he(I),v=/(\/\/)?([^?#/]+)/.exec(I.substr(f.length));if(!v)return{host:"",port:null};const w=v[2].split("@").pop()||"",J=/^(\[[^\]]+\])(:|$)/.exec(w);if(J){const be=J[1];return{host:be,port:W(w.substr(be.length+1))}}{const[be,Ct]=w.split(":");return{host:be,port:W(Ct)}}}(f);w.config.emulator={url:`${be}//${Ct}${null===Xt?"":`:${Xt}`}/`},w.settings.appVerificationDisabledForTesting=!0,w.emulatorConfig=Object.freeze({host:Ct,port:Xt,protocol:be.replace(":",""),options:Object.freeze({disableWarnings:J})}),J||function $e(){function I(){const f=document.createElement("p"),v=f.style;f.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",f.classList.add("firebase-emulator-warning"),document.body.appendChild(f)}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",I):I())}()}(v,`http://${J}`),v}(function zr(I){Or=I})({loadJS:I=>new Promise((f,v)=>{const w=document.createElement("script");w.setAttribute("src",I),w.onload=f,w.onerror=J=>{const be=Fe("internal-error");be.customData=J,v(be)},w.type="text/javascript",w.charset="UTF-8",function Lc(){var I,f;return null!==(f=null===(I=document.getElementsByTagName("head"))||void 0===I?void 0:I[0])&&void 0!==f?f:document}().appendChild(w)}),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 Dl(I){(0,ue.om)(new Se.uA("auth",(f,{options:v})=>{const w=f.getProvider("app").getImmediate(),J=f.getProvider("heartbeat"),be=f.getProvider("app-check-internal"),{apiKey:Ct,authDomain:Xt}=w.options;Nt(Ct&&!Ct.includes(":"),"invalid-api-key",{appName:w.name});const Dn={apiKey:Ct,authDomain:Xt,clientPlatform:I,apiHost:"identitytoolkit.googleapis.com",tokenApiHost:"securetoken.googleapis.com",apiScheme:"https",sdkClientVersion:Ge(I)},$n=new xr(w,J,be,Dn);return function oi(I,f){const v=(null==f?void 0:f.persistence)||[],w=(Array.isArray(v)?v:[v]).map(hn);null!=f&&f.errorMap&&I._updateErrorMap(f.errorMap),I._initializeWithPersistence(w,null==f?void 0:f.popupRedirectResolver)}($n,v),$n},"PUBLIC").setInstantiationMode("EXPLICIT").setInstanceCreatedCallback((f,v,w)=>{f.getProvider("auth-internal").initialize()})),(0,ue.om)(new Se.uA("auth-internal",f=>{const v=On(f.getProvider("auth").getImmediate());return new Ma(v)},"PRIVATE").setInstantiationMode("EXPLICIT")),(0,ue.KO)(Vd,"1.7.4",function Fc(I){switch(I){case"Node":return"node";case"ReactNative":return"rn";case"Worker":return"webworker";case"Cordova":return"cordova";case"WebExtension":return"web-extension";default:return}}(I)),(0,ue.KO)(Vd,"1.7.4","esm2017")}("Browser");var ws=S(1985);function Hu(I){return new ws.c(function(f){return{unsubscribe:Hi(I,f.next.bind(f),f.error.bind(f),f.complete.bind(f))}})}class Qa{constructor(f){return f}}class Tl{constructor(){return(0,h.CA)("auth")}}const tu=new c.nKC("angularfire2.auth-instances");function uf(I){return(f,v)=>{const w=f.runOutsideAngular(()=>I(v));return new Qa(w)}}const cf={provide:Tl,deps:[[new c.Xx1,tu]]},lg={provide:Qa,useFactory:function $d(I,f){const v=(0,h.lR)("auth",I,f);return v&&new Qa(v)},deps:[[new c.Xx1,tu],Z.XU]};function bl(I,...f){return(0,Oe.KO)("angularfire",h.xv.full,"auth"),(0,c.EmA)([lg,cf,{provide:tu,useFactory:uf(I),multi:!0,deps:[c.SKi,c.zZn,h.u0,Z.gL,[new c.Xx1,h.Jv],...f]}])}const Uc=(0,h.S3)(Hu,!0),Gu=(0,h.S3)(Os,!0),ug=(0,h.S3)(Bd,!0),qu=(0,h.S3)(As,!0)},4262:(Tn,gt,S)=>{"use strict";S.d(gt,{_7:()=>Eh,rJ:()=>_0,kd:()=>y0,H9:()=>lm,x7:()=>cm,GG:()=>o_,aU:()=>dm,hV:()=>e_,BN:()=>P0,mZ:()=>x0});var Ze,qe,h=S(5407),c=S(4438),Z=S(7440),Oe=S(8737),U=S(2214),ue=S(467),oe=S(7852),Xe=S(1362),Je=S(8041),Se=S(1076),Ce=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Qe={};(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(xt,st,It){It||(It=0);var kt=Array(16);if("string"==typeof st)for(var Vt=0;16>Vt;++Vt)kt[Vt]=st.charCodeAt(It++)|st.charCodeAt(It++)<<8|st.charCodeAt(It++)<<16|st.charCodeAt(It++)<<24;else for(Vt=0;16>Vt;++Vt)kt[Vt]=st[It++]|st[It++]<<8|st[It++]<<16|st[It++]<<24;var qt=xt.g[3],vt=(st=xt.g[0])+(qt^(It=xt.g[1])&((Vt=xt.g[2])^qt))+kt[0]+3614090360&4294967295;vt=(It=(Vt=(qt=(st=(It=(Vt=(qt=(st=(It=(Vt=(qt=(st=(It=(Vt=(qt=(st=(It=(Vt=(qt=(st=(It=(Vt=(qt=(st=(It=(Vt=(qt=(st=(It=(Vt=(qt=(st=(It=(Vt=(qt=(st=(It=(Vt=(qt=(st=(It=(Vt=(qt=(st=(It=(Vt=(qt=(st=(It=(Vt=(qt=(st=(It=(Vt=(qt=(st=(It=(Vt=(qt=(st=It+(vt<<7&4294967295|vt>>>25))+((vt=qt+(Vt^st&(It^Vt))+kt[1]+3905402710&4294967295)<<12&4294967295|vt>>>20))+((vt=Vt+(It^qt&(st^It))+kt[2]+606105819&4294967295)<<17&4294967295|vt>>>15))+((vt=It+(st^Vt&(qt^st))+kt[3]+3250441966&4294967295)<<22&4294967295|vt>>>10))+((vt=st+(qt^It&(Vt^qt))+kt[4]+4118548399&4294967295)<<7&4294967295|vt>>>25))+((vt=qt+(Vt^st&(It^Vt))+kt[5]+1200080426&4294967295)<<12&4294967295|vt>>>20))+((vt=Vt+(It^qt&(st^It))+kt[6]+2821735955&4294967295)<<17&4294967295|vt>>>15))+((vt=It+(st^Vt&(qt^st))+kt[7]+4249261313&4294967295)<<22&4294967295|vt>>>10))+((vt=st+(qt^It&(Vt^qt))+kt[8]+1770035416&4294967295)<<7&4294967295|vt>>>25))+((vt=qt+(Vt^st&(It^Vt))+kt[9]+2336552879&4294967295)<<12&4294967295|vt>>>20))+((vt=Vt+(It^qt&(st^It))+kt[10]+4294925233&4294967295)<<17&4294967295|vt>>>15))+((vt=It+(st^Vt&(qt^st))+kt[11]+2304563134&4294967295)<<22&4294967295|vt>>>10))+((vt=st+(qt^It&(Vt^qt))+kt[12]+1804603682&4294967295)<<7&4294967295|vt>>>25))+((vt=qt+(Vt^st&(It^Vt))+kt[13]+4254626195&4294967295)<<12&4294967295|vt>>>20))+((vt=Vt+(It^qt&(st^It))+kt[14]+2792965006&4294967295)<<17&4294967295|vt>>>15))+((vt=It+(st^Vt&(qt^st))+kt[15]+1236535329&4294967295)<<22&4294967295|vt>>>10))+((vt=st+(Vt^qt&(It^Vt))+kt[1]+4129170786&4294967295)<<5&4294967295|vt>>>27))+((vt=qt+(It^Vt&(st^It))+kt[6]+3225465664&4294967295)<<9&4294967295|vt>>>23))+((vt=Vt+(st^It&(qt^st))+kt[11]+643717713&4294967295)<<14&4294967295|vt>>>18))+((vt=It+(qt^st&(Vt^qt))+kt[0]+3921069994&4294967295)<<20&4294967295|vt>>>12))+((vt=st+(Vt^qt&(It^Vt))+kt[5]+3593408605&4294967295)<<5&4294967295|vt>>>27))+((vt=qt+(It^Vt&(st^It))+kt[10]+38016083&4294967295)<<9&4294967295|vt>>>23))+((vt=Vt+(st^It&(qt^st))+kt[15]+3634488961&4294967295)<<14&4294967295|vt>>>18))+((vt=It+(qt^st&(Vt^qt))+kt[4]+3889429448&4294967295)<<20&4294967295|vt>>>12))+((vt=st+(Vt^qt&(It^Vt))+kt[9]+568446438&4294967295)<<5&4294967295|vt>>>27))+((vt=qt+(It^Vt&(st^It))+kt[14]+3275163606&4294967295)<<9&4294967295|vt>>>23))+((vt=Vt+(st^It&(qt^st))+kt[3]+4107603335&4294967295)<<14&4294967295|vt>>>18))+((vt=It+(qt^st&(Vt^qt))+kt[8]+1163531501&4294967295)<<20&4294967295|vt>>>12))+((vt=st+(Vt^qt&(It^Vt))+kt[13]+2850285829&4294967295)<<5&4294967295|vt>>>27))+((vt=qt+(It^Vt&(st^It))+kt[2]+4243563512&4294967295)<<9&4294967295|vt>>>23))+((vt=Vt+(st^It&(qt^st))+kt[7]+1735328473&4294967295)<<14&4294967295|vt>>>18))+((vt=It+(qt^st&(Vt^qt))+kt[12]+2368359562&4294967295)<<20&4294967295|vt>>>12))+((vt=st+(It^Vt^qt)+kt[5]+4294588738&4294967295)<<4&4294967295|vt>>>28))+((vt=qt+(st^It^Vt)+kt[8]+2272392833&4294967295)<<11&4294967295|vt>>>21))+((vt=Vt+(qt^st^It)+kt[11]+1839030562&4294967295)<<16&4294967295|vt>>>16))+((vt=It+(Vt^qt^st)+kt[14]+4259657740&4294967295)<<23&4294967295|vt>>>9))+((vt=st+(It^Vt^qt)+kt[1]+2763975236&4294967295)<<4&4294967295|vt>>>28))+((vt=qt+(st^It^Vt)+kt[4]+1272893353&4294967295)<<11&4294967295|vt>>>21))+((vt=Vt+(qt^st^It)+kt[7]+4139469664&4294967295)<<16&4294967295|vt>>>16))+((vt=It+(Vt^qt^st)+kt[10]+3200236656&4294967295)<<23&4294967295|vt>>>9))+((vt=st+(It^Vt^qt)+kt[13]+681279174&4294967295)<<4&4294967295|vt>>>28))+((vt=qt+(st^It^Vt)+kt[0]+3936430074&4294967295)<<11&4294967295|vt>>>21))+((vt=Vt+(qt^st^It)+kt[3]+3572445317&4294967295)<<16&4294967295|vt>>>16))+((vt=It+(Vt^qt^st)+kt[6]+76029189&4294967295)<<23&4294967295|vt>>>9))+((vt=st+(It^Vt^qt)+kt[9]+3654602809&4294967295)<<4&4294967295|vt>>>28))+((vt=qt+(st^It^Vt)+kt[12]+3873151461&4294967295)<<11&4294967295|vt>>>21))+((vt=Vt+(qt^st^It)+kt[15]+530742520&4294967295)<<16&4294967295|vt>>>16))+((vt=It+(Vt^qt^st)+kt[2]+3299628645&4294967295)<<23&4294967295|vt>>>9))+((vt=st+(Vt^(It|~qt))+kt[0]+4096336452&4294967295)<<6&4294967295|vt>>>26))+((vt=qt+(It^(st|~Vt))+kt[7]+1126891415&4294967295)<<10&4294967295|vt>>>22))+((vt=Vt+(st^(qt|~It))+kt[14]+2878612391&4294967295)<<15&4294967295|vt>>>17))+((vt=It+(qt^(Vt|~st))+kt[5]+4237533241&4294967295)<<21&4294967295|vt>>>11))+((vt=st+(Vt^(It|~qt))+kt[12]+1700485571&4294967295)<<6&4294967295|vt>>>26))+((vt=qt+(It^(st|~Vt))+kt[3]+2399980690&4294967295)<<10&4294967295|vt>>>22))+((vt=Vt+(st^(qt|~It))+kt[10]+4293915773&4294967295)<<15&4294967295|vt>>>17))+((vt=It+(qt^(Vt|~st))+kt[1]+2240044497&4294967295)<<21&4294967295|vt>>>11))+((vt=st+(Vt^(It|~qt))+kt[8]+1873313359&4294967295)<<6&4294967295|vt>>>26))+((vt=qt+(It^(st|~Vt))+kt[15]+4264355552&4294967295)<<10&4294967295|vt>>>22))+((vt=Vt+(st^(qt|~It))+kt[6]+2734768916&4294967295)<<15&4294967295|vt>>>17))+((vt=It+(qt^(Vt|~st))+kt[13]+1309151649&4294967295)<<21&4294967295|vt>>>11))+((qt=(st=It+((vt=st+(Vt^(It|~qt))+kt[4]+4149444226&4294967295)<<6&4294967295|vt>>>26))+((vt=qt+(It^(st|~Vt))+kt[11]+3174756917&4294967295)<<10&4294967295|vt>>>22))^((Vt=qt+((vt=Vt+(st^(qt|~It))+kt[2]+718787259&4294967295)<<15&4294967295|vt>>>17))|~st))+kt[9]+3951481745&4294967295,xt.g[0]=xt.g[0]+st&4294967295,xt.g[1]=xt.g[1]+(Vt+(vt<<21&4294967295|vt>>>11))&4294967295,xt.g[2]=xt.g[2]+Vt&4294967295,xt.g[3]=xt.g[3]+qt&4294967295}function _(xt,st){this.h=st;for(var It=[],kt=!0,Vt=xt.length-1;0<=Vt;Vt--){var qt=0|xt[Vt];kt&&qt==st||(It[Vt]=qt,kt=!1)}this.g=It}(function n(xt,st){function It(){}It.prototype=st.prototype,xt.D=st.prototype,xt.prototype=new It,xt.prototype.constructor=xt,xt.C=function(kt,Vt,qt){for(var vt=Array(arguments.length-2),Nl=2;Nlthis.h?this.blockSize:2*this.blockSize)-this.h);xt[0]=128;for(var st=1;stst;++st)for(var kt=0;32>kt;kt+=8)xt[It++]=this.g[st]>>>kt&255;return xt};var R={};function k(xt){return-128<=xt&&128>xt?function p(xt,st){var It=R;return Object.prototype.hasOwnProperty.call(It,xt)?It[xt]:It[xt]=st(xt)}(xt,function(st){return new _([0|st],0>st?-1:0)}):new _([0|xt],0>xt?-1:0)}function q(xt){if(isNaN(xt)||!isFinite(xt))return je;if(0>xt)return Sn(q(-xt));for(var st=[],It=1,kt=0;xt>=It;kt++)st[kt]=xt/It|0,It*=4294967296;return new _(st,0)}var je=k(0),pt=k(1),Ht=k(16777216);function An(xt){if(0!=xt.h)return!1;for(var st=0;st>>16,xt[st]&=65535,st++}function _r(xt,st){this.g=xt,this.h=st}function Yr(xt,st){if(An(st))throw Error("division by zero");if(An(xt))return new _r(je,je);if(kn(xt))return st=Yr(Sn(xt),st),new _r(Sn(st.g),Sn(st.h));if(kn(st))return st=Yr(xt,Sn(st)),new _r(Sn(st.g),st.h);if(30=kt.l(xt);)It=Li(It),kt=Li(kt);var Vt=fi(It,1),qt=fi(kt,1);for(kt=fi(kt,2),It=fi(It,2);!An(kt);){var vt=qt.add(kt);0>=vt.l(xt)&&(Vt=Vt.add(It),qt=vt),kt=fi(kt,1),It=fi(It,1)}return st=hr(xt,Vt.j(st)),new _r(Vt,st)}for(Vt=je;0<=xt.l(st);){for(It=Math.max(1,Math.floor(xt.m()/st.m())),kt=48>=(kt=Math.ceil(Math.log(It)/Math.LN2))?1:Math.pow(2,kt-48),vt=(qt=q(It)).j(st);kn(vt)||0>>31;return new _(It,xt.h)}function fi(xt,st){var It=st>>5;st%=32;for(var kt=xt.g.length-It,Vt=[],qt=0;qt>>st|xt.i(qt+It+1)<<32-st:xt.i(qt+It);return new _(Vt,xt.h)}(l=_.prototype).m=function(){if(kn(this))return-Sn(this).m();for(var xt=0,st=1,It=0;It(xt=xt||10)||36>>0).toString(xt);if(An(It=Vt))return qt+kt;for(;6>qt.length;)qt="0"+qt;kt=qt+kt}},l.i=function(xt){return 0>xt?0:xt>>16)+(this.i(Vt)>>>16)+(xt.i(Vt)>>>16);kt=vt>>>16,It[Vt]=(vt&=65535)<<16|(qt&=65535)}return new _(It,-2147483648&It[It.length-1]?-1:0)},l.j=function(xt){if(An(this)||An(xt))return je;if(kn(this))return kn(xt)?Sn(this).j(Sn(xt)):Sn(Sn(this).j(xt));if(kn(xt))return Sn(this.j(Sn(xt)));if(0>this.l(Ht)&&0>xt.l(Ht))return q(this.m()*xt.m());for(var st=this.g.length+xt.g.length,It=[],kt=0;kt<2*st;kt++)It[kt]=0;for(kt=0;kt>>16,vt=65535&this.i(kt),Nl=xt.i(Vt)>>>16,cc=65535&xt.i(Vt);It[2*kt+2*Vt]+=vt*cc,Mr(It,2*kt+2*Vt),It[2*kt+2*Vt+1]+=qt*cc,Mr(It,2*kt+2*Vt+1),It[2*kt+2*Vt+1]+=vt*Nl,Mr(It,2*kt+2*Vt+1),It[2*kt+2*Vt+2]+=qt*Nl,Mr(It,2*kt+2*Vt+2)}for(kt=0;kt(st=st||10)||36qt?(qt=q(Math.pow(st,qt)),kt=kt.j(qt).add(q(vt))):kt=(kt=kt.j(It)).add(q(vt))}return kt},Ze=Qe.Integer=_}).apply(typeof Ce<"u"?Ce:typeof self<"u"?self:typeof window<"u"?window:{});var St,_t,Tt,yt,mt,Me,Ye,ge,Ue,ht=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Dt={};(function(){var l,n="function"==typeof Object.defineProperties?Object.defineProperty:function(m,V,Q){return m==Array.prototype||m==Object.prototype||(m[V]=Q.value),m},s=function i(m){m=["object"==typeof globalThis&&globalThis,m,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof ht&&ht];for(var V=0;V{throw m},0)}function vt(){var m=pm;let V=null;return m.g&&(V=m.g,m.g=m.g.next,m.g||(m.h=null),V.next=null),V}var cc=new class hr{constructor(V,Q){this.i=V,this.j=Q,this.h=0,this.g=null}get(){let V;return 0new O0,m=>m.reset());class O0{constructor(){this.next=this.g=this.h=null}set(V,Q){this.h=V,this.g=Q,this.next=null}reset(){this.next=this.g=this.h=null}}let ld,Ah=!1,pm=new class Nl{constructor(){this.h=this.g=null}add(V,Q){const Pe=cc.get();Pe.set(V,Q),this.h?this.h.next=Pe:this.g=Pe,this.h=Pe}},gm=()=>{const m=R.Promise.resolve(void 0);ld=()=>{m.then(N0)}};var N0=()=>{for(var m;m=vt();){try{m.h.call(m.g)}catch(Q){qt(Q)}var V=cc;V.j(m),100>V.h&&(V.h++,m.next=V.g,V.g=m)}Ah=!1};function mu(){this.s=this.s,this.C=this.C}function _o(m,V){this.type=m,this.g=this.target=V,this.defaultPrevented=!1}mu.prototype.s=!1,mu.prototype.ma=function(){this.s||(this.s=!0,this.N())},mu.prototype.N=function(){if(this.C)for(;this.C.length;)this.C.shift()()},_o.prototype.h=function(){this.defaultPrevented=!0};var mm=function(){if(!R.addEventListener||!Object.defineProperty)return!1;var m=!1,V=Object.defineProperty({},"passive",{get:function(){m=!0}});try{const Q=()=>{};R.addEventListener("test",Q,V),R.removeEventListener("test",Q,V)}catch{}return m}();function Ch(m,V){if(_o.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 Q=this.type=m.type,Pe=m.changedTouches&&m.changedTouches.length?m.changedTouches[0]:null;if(this.target=m.target||m.srcElement,this.g=V,V=m.relatedTarget){if(Li){e:{try{Yr(V.nodeName);var $t=!0;break e}catch{}$t=!1}$t||(V=null)}}else"mouseover"==Q?V=m.fromElement:"mouseout"==Q&&(V=m.toElement);this.relatedTarget=V,Pe?(this.clientX=void 0!==Pe.clientX?Pe.clientX:Pe.pageX,this.clientY=void 0!==Pe.clientY?Pe.clientY:Pe.pageY,this.screenX=Pe.screenX||0,this.screenY=Pe.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:l_[m.pointerType]||"",this.state=m.state,this.i=m,m.defaultPrevented&&Ch.aa.h.call(this)}}An(Ch,_o);var l_={2:"touch",3:"pen",4:"mouse"};Ch.prototype.h=function(){Ch.aa.h.call(this);var m=this.i;m.preventDefault?m.preventDefault():m.returnValue=!1};var Dh="closure_listenable_"+(1e6*Math.random()|0),u_=0;function nA(m,V,Q,Pe,$t){this.listener=m,this.proxy=null,this.src=V,this.type=Q,this.capture=!!Pe,this.ha=$t,this.key=++u_,this.da=this.fa=!1}function lp(m){m.da=!0,m.listener=null,m.proxy=null,m.src=null,m.ha=null}function dc(m){this.src=m,this.g={},this.h=0}function up(m,V){var Q=V.type;if(Q in m.g){var nn,Pe=m.g[Q],$t=Array.prototype.indexOf.call(Pe,V,void 0);(nn=0<=$t)&&Array.prototype.splice.call(Pe,$t,1),nn&&(lp(V),0==m.g[Q].length&&(delete m.g[Q],m.h--))}}function vm(m,V,Q,Pe){for(var $t=0;$t>>0);function Cm(m){return"function"==typeof m?m:(m[Th]||(m[Th]=function(V){return m.handleEvent(V)}),m[Th])}function os(){mu.call(this),this.i=new dc(this),this.M=this,this.F=null}function Ko(m,V){var Q,Pe=m.F;if(Pe)for(Q=[];Pe;Pe=Pe.F)Q.push(Pe);if(m=m.M,Pe=V.type||V,"string"==typeof V)V=new _o(V,m);else if(V instanceof _o)V.target=V.target||m;else{var $t=V;kt(V=new _o(Pe,m),$t)}if($t=!0,Q)for(var nn=Q.length-1;0<=nn;nn--){var zn=V.g=Q[nn];$t=bh(zn,Pe,!0,V)&&$t}if($t=bh(zn=V.g=m,Pe,!0,V)&&$t,$t=bh(zn,Pe,!1,V)&&$t,Q)for(nn=0;nn{m.g=null,m.i&&(m.i=!1,Tm(m))},m.l);const V=m.h;m.h=null,m.m.apply(null,V)}An(os,mu),os.prototype[Dh]=!0,os.prototype.removeEventListener=function(m,V,Q,Pe){Em(this,m,V,Q,Pe)},os.prototype.N=function(){if(os.aa.N.call(this),this.i){var V,m=this.i;for(V in m.g){for(var Q=m.g[V],Pe=0;PePe.length)){var $t=Pe[1];if(Array.isArray($t)&&!(1>$t.length)){var nn=$t[0];if("noop"!=nn&&"stop"!=nn&&"close"!=nn)for(var zn=1;zn<$t.length;zn++)$t[zn]=""}}}return Sh(Q)}catch{return V}}(m,Q)+(Pe?" "+Pe:"")})}_u.La="serverreachability",An(h_,_o),_u.STAT_EVENT="statevent",An(Sm,_o),_u.Ma="timingevent",An(hd,_o),yu.prototype.xa=function(){this.g=!1},yu.prototype.info=function(){};var Rm,gp={NO_ERROR:0,gb:1,tb:2,sb:3,nb:4,rb:5,ub:6,Ia:7,TIMEOUT:8,xb:9},g_={lb:"complete",Hb:"success",Ja:"error",Ia:"abort",zb:"ready",Ab:"readystatechange",TIMEOUT:"timeout",vb:"incrementaldata",yb:"progress",ob:"downloadprogress",Pb:"uploadprogress"};function mp(){}function Eu(m,V,Q,Pe){this.j=m,this.i=V,this.l=Q,this.R=Pe||1,this.U=new wh(this),this.I=45e3,this.H=null,this.o=!1,this.m=this.A=this.v=this.L=this.F=this.S=this.B=null,this.D=[],this.g=null,this.C=0,this.s=this.u=null,this.X=-1,this.J=!1,this.O=0,this.M=null,this.W=this.K=this.T=this.P=!1,this.h=new m_}function m_(){this.i=null,this.g="",this.h=!1}An(mp,dp),mp.prototype.g=function(){return new XMLHttpRequest},mp.prototype.i=function(){return{}},Rm=new mp;var v_={},Mm={};function pd(m,V,Q){m.L=1,m.v=Nh(ol(V)),m.m=Q,m.P=!0,__(m,null)}function __(m,V){m.F=Date.now(),Mh(m),m.A=ol(m.v);var Q=m.A,Pe=m.R;Array.isArray(Pe)||(Pe=[String(Pe)]),Bm(Q.i,"t",Pe),m.C=0,Q=m.j.J,m.h=new m_,m.g=F_(m.j,Q?V:null,!m.m),0V.length?Mm:(V=V.slice(Pe,Pe+Q),m.C=Pe+Q,V))}function Mh(m){m.S=Date.now()+m.I,vp(m,m.I)}function vp(m,V){if(null!=m.B)throw Error("WatchDog timer not null");m.B=fp(pt(m.ba,m),V)}function _p(m){m.B&&(R.clearTimeout(m.B),m.B=null)}function Ph(m){0==m.j.G||m.J||q0(m.j,m)}function Iu(m){_p(m);var V=m.M;V&&"function"==typeof V.ma&&V.ma(),m.M=null,bm(m.U),m.g&&(V=m.g,m.g=null,V.abort(),V.ma())}function xh(m,V){try{var Q=m.j;if(0!=Q.G&&(Q.g==m||xm(Q.h,m)))if(!m.K&&xm(Q.h,m)&&3==Q.G){try{var Pe=Q.Da.g.parse(V)}catch{Pe=null}if(Array.isArray(Pe)&&3==Pe.length){var $t=Pe;if(0==$t[0]){e:if(!Q.u){if(Q.g){if(!(Q.g.F+3e3$t[2]&&Q.F&&0==Q.v&&!Q.C&&(Q.C=fp(pt(Q.Za,Q),6e3));if(1>=C_(Q.h)&&Q.ca){try{Q.ca()}catch{}Q.ca=void 0}}else Cu(Q,11)}else if((m.K||Q.g==m)&&Bh(Q),!Mr(V))for($t=Q.Da.g.parse(V),V=0;V<$t.length;V++){let xi=$t[V];if(Q.T=xi[0],xi=xi[1],2==Q.G)if("c"==xi[0]){Q.K=xi[1],Q.ia=xi[2];const ss=xi[3];null!=ss&&(Q.la=ss,Q.j.info("VER="+Q.la));const gs=xi[4];null!=gs&&(Q.Aa=gs,Q.j.info("SVER="+Q.Aa));const Du=xi[5];null!=Du&&"number"==typeof Du&&0gs)&&(3!=gs||this.g&&(this.h.h||this.g.oa()||R_(this.g)))){this.J||4!=gs||7==V||fc(),_p(this);var Q=this.g.Z();this.X=Q;t:if(y_(this)){var Pe=R_(this.g);m="";var $t=Pe.length,nn=4==Au(this.g);if(!this.h.i){if(typeof TextDecoder>"u"){Iu(this),Ph(this);var zn="";break t}this.h.i=new R.TextDecoder}for(V=0;V<$t;V++)this.h.h=!0,m+=this.h.i.decode(Pe[V],{stream:!(nn&&V==$t-1)});Pe.length=0,this.h.g+=m,this.C=0,zn=this.h.g}else zn=this.g.oa();if(this.o=200==Q,function p_(m,V,Q,Pe,$t,nn,zn){m.info(function(){return"XMLHTTP RESP ("+Pe+") [ attempt "+$t+"]: "+V+"\n"+Q+"\n"+nn+" "+zn})}(this.i,this.u,this.A,this.l,this.R,gs,Q),this.o){if(this.T&&!this.K){t:{if(this.g){var Wi,so=this.g;if((Wi=so.g?so.g.getResponseHeader("X-HTTP-Initial-Response"):null)&&!Mr(Wi)){var xi=Wi;break t}}xi=null}if(!(Q=xi)){this.o=!1,this.s=3,co(12),Iu(this),Ph(this);break e}fd(this.i,this.l,Q,"Initial handshake response via X-HTTP-Initial-Response"),this.K=!0,xh(this,Q)}if(this.P){let js;for(Q=!0;!this.J&&this.C=m.j}function C_(m){return m.h?1:m.g?m.g.size:0}function xm(m,V){return m.h?m.h==V:!!m.g&&m.g.has(V)}function Oh(m,V){m.g?m.g.add(V):m.h=V}function yp(m,V){m.h&&m.h==V?m.h=null:m.g&&m.g.has(V)&&m.g.delete(V)}function Om(m){if(null!=m.h)return m.i.concat(m.h.D);if(null!=m.g&&0!==m.g.size){let V=m.i;for(const Q of m.g.values())V=V.concat(Q.D);return V}return kn(m.i)}function D_(m,V){if(m.forEach&&"function"==typeof m.forEach)m.forEach(V,void 0);else if(k(m)||"string"==typeof m)Array.prototype.forEach.call(m,V,void 0);else for(var Q=function km(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(k(m)||"string"==typeof m){var V=[];m=m.length;for(var Q=0;QV)throw Error("Bad port number "+V);m.s=V}else m.s=null}function Fm(m,V,Q){V instanceof _d?(m.i=V,function w_(m,V){V&&!m.j&&(kl(m),m.i=null,m.g.forEach(function(Q,Pe){var $t=Pe.toLowerCase();Pe!=$t&&(Vm(this,Pe),Bm(this,$t,Q))},m)),m.j=V}(m.i,m.h)):(Q||(V=vd(V,rA)),m.i=new _d(V,m.h))}function Yi(m,V,Q){m.i.set(V,Q)}function Nh(m){return Yi(m,"zx",Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^Date.now()).toString(36)),m}function kh(m,V){return m?V?decodeURI(m.replace(/%25/g,"%2525")):decodeURIComponent(m):""}function vd(m,V,Q){return"string"==typeof m?(m=encodeURI(m).replace(V,U0),Q&&(m=m.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),m):null}function U0(m){return"%"+((m=m.charCodeAt(0))>>4&15).toString(16)+(15&m).toString(16)}pc.prototype.toString=function(){var m=[],V=this.j;V&&m.push(vd(V,Ep,!0),":");var Q=this.g;return(Q||"file"==V)&&(m.push("//"),(V=this.o)&&m.push(vd(V,Ep,!0),"@"),m.push(encodeURIComponent(String(Q)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),null!=(Q=this.s)&&m.push(":",String(Q))),(Q=this.l)&&(this.g&&"/"!=Q.charAt(0)&&m.push("/"),m.push(vd(Q,"/"==Q.charAt(0)?Lm:b_,!0))),(Q=this.i.toString())&&m.push("?",Q),(Q=this.m)&&m.push("#",vd(Q,iA)),m.join("")};var Ep=/[#\/\?@]/g,b_=/[#\?:]/g,Lm=/[#\?]/g,rA=/[#\?@]/g,iA=/#/g;function _d(m,V){this.h=this.g=null,this.i=m||null,this.j=!!V}function kl(m){m.g||(m.g=new Map,m.h=0,m.i&&function B0(m,V){if(m){m=m.split("&");for(var Q=0;Q{}),1<=this.readyState&&this.g&&4!=this.readyState&&(this.g=!1,Cp(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,Dp(this)),this.g&&(this.readyState=3,Dp(this),this.g)))if("arraybuffer"===this.responseType)m.arrayBuffer().then(this.Qa.bind(this),this.ga.bind(this));else if(typeof R.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;j0(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 V=m.value?m.value:new Uint8Array(0);(V=this.v.decode(V,{stream:!m.done}))&&(this.response=this.responseText+=V)}m.done?Cp(this):Dp(this),3==this.readyState&&j0(this)}},l.Ra=function(m){this.g&&(this.response=this.responseText=m,Cp(this))},l.Qa=function(m){this.g&&(this.response=m,Cp(this))},l.ga=function(){this.g&&Cp(this)},l.setRequestHeader=function(m,V){this.u.append(m,V)},l.getResponseHeader=function(m){return this.h&&this.h.get(m.toLowerCase())||""},l.getAllResponseHeaders=function(){if(!this.h)return"";const m=[],V=this.h.entries();for(var Q=V.next();!Q.done;)m.push((Q=Q.value)[0]+": "+Q[1]),Q=V.next();return m.join("\r\n")},Object.defineProperty(Um.prototype,"withCredentials",{get:function(){return"include"===this.m},set:function(m){this.m=m?"include":"same-origin"}}),An(yo,os);var aA=/^https?$/i,lA=["POST","PUT"];function z0(m,V){m.h=!1,m.g&&(m.j=!0,m.g.abort(),m.j=!1),m.l=V,m.m=5,H0(m),jm(m)}function H0(m){m.A||(m.A=!0,Ko(m,"complete"),Ko(m,"error"))}function G0(m){if(m.h&&typeof _<"u"&&(!m.v[1]||4!=Au(m)||2!=m.Z()))if(m.u&&4==Au(m))Dm(m.Ea,0,m);else if(Ko(m,"readystatechange"),4==Au(m)){m.h=!1;try{const zn=m.Z();e:switch(zn){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var V=!0;break e;default:V=!1}var Q;if(!(Q=V)){var Pe;if(Pe=0===zn){var $t=String(m.D).match(T_)[1]||null;!$t&&R.self&&R.self.location&&($t=R.self.location.protocol.slice(0,-1)),Pe=!aA.test($t?$t.toLowerCase():"")}Q=Pe}if(Q)Ko(m,"complete"),Ko(m,"success");else{m.m=6;try{var nn=2{}:null;m.g=null,m.v=null,V||Ko(m,"ready");try{Q.onreadystatechange=Pe}catch{}}}function W0(m){m.I&&(R.clearTimeout(m.I),m.I=null)}function Au(m){return m.g?m.g.readyState:0}function R_(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 Fl(m,V,Q){return Q&&Q.internalChannelParams&&Q.internalChannelParams[m]||V}function M_(m){this.Aa=0,this.i=[],this.j=new yu,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=Fl("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=Fl("baseRetryDelayMs",5e3,m),this.cb=Fl("retryDelaySeedMs",1e4,m),this.Wa=Fl("forwardChannelMaxRetries",2,m),this.wa=Fl("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 Pm(m&&m.concurrentRequestLimit),this.Da=new oA,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&&0xi)nn=Math.max(0,$t[so].g-100),Wi=!1;else try{sA(ss,zn,"req"+xi+"_")}catch{Pe&&Pe(ss)}}if(Wi){Pe=zn.join("&");break e}}}return m=m.i.splice(0,Q),V.D=m,Pe}function Hm(m){if(!m.g&&!m.u){m.Y=1;var V=m.Fa;ld||gm(),Ah||(ld(),Ah=!0),pm.add(V,m),m.v=0}}function Gm(m){return!(m.g||m.u||3<=m.v||(m.Y++,m.u=fp(pt(m.Fa,m),N_(m,m.v)),m.v++,0))}function bp(m){null!=m.A&&(R.clearTimeout(m.A),m.A=null)}function X0(m){m.g=new Eu(m,m.j,"rpc",m.Y),null===m.m&&(m.g.H=m.o),m.g.O=0;var V=ol(m.qa);Yi(V,"RID","rpc"),Yi(V,"SID",m.K),Yi(V,"AID",m.T),Yi(V,"CI",m.F?"0":"1"),!m.F&&m.ja&&Yi(V,"TO",m.ja),Yi(V,"TYPE","xmlhttp"),Lh(m,V),m.m&&m.o&&Tp(V,m.m,m.o),m.L&&(m.g.I=m.L);var Q=m.g;m=m.ia,Q.L=1,Q.v=Nh(ol(V)),Q.m=null,Q.P=!0,__(Q,m)}function Bh(m){null!=m.C&&(R.clearTimeout(m.C),m.C=null)}function q0(m,V){var Q=null;if(m.g==V){Bh(m),bp(m),m.g=null;var Pe=2}else{if(!xm(m.h,V))return;Q=V.D,yp(m.h,V),Pe=1}if(0!=m.G)if(V.o)if(1==Pe){Q=V.m?V.m.length:0,V=Date.now()-V.F;var $t=m.B;Ko(Pe=hp(),new hd(Pe,Q)),zm(m)}else Hm(m);else if(3==($t=V.s)||0==$t&&0=m.h.j-(m.s?1:0)||(m.s?(m.i=V.D.concat(m.i),0):1==m.G||2==m.G||m.B>=(m.Va?0:m.Wa)||(m.s=fp(pt(m.Ga,m,V),N_(m,m.B)),m.B++,0)))}(m,V)||2==Pe&&Gm(m)))switch(Q&&0{Pe.abort(),mc(0,0,!1,V)},1e4);fetch(m,{signal:Pe.signal}).then(nn=>{clearTimeout($t),mc(0,0,!!nn.ok,V)}).catch(()=>{clearTimeout($t),mc(0,0,!1,V)})}(Pe.toString(),Q)}else co(2);m.G=0,m.l&&m.l.sa(V),wp(m),x_(m)}function wp(m){if(m.G=0,m.ka=[],m.l){const V=Om(m.h);(0!=V.length||0!=m.i.length)&&(Sn(m.ka,V),Sn(m.ka,m.i),m.h.i.length=0,kn(m.i),m.i.length=0),m.l.ra()}}function k_(m,V,Q){var Pe=Q instanceof pc?ol(Q):new pc(Q);if(""!=Pe.g)V&&(Pe.g=V+"."+Pe.g),md(Pe,Pe.s);else{var $t=R.location;Pe=$t.protocol,V=V?V+"."+$t.hostname:$t.hostname,$t=+$t.port;var nn=new pc(null);Pe&&gd(nn,Pe),V&&(nn.g=V),$t&&md(nn,$t),Q&&(nn.l=Q),Pe=nn}return V=m.ya,(Q=m.D)&&V&&Yi(Pe,Q,V),Yi(Pe,"VER",m.la),Lh(m,Pe),Pe}function F_(m,V,Q){if(V&&!m.J)throw Error("Can't create secondary domain capable XhrIo object.");return(V=new yo(m.Ca&&!m.pa?new Ap({eb:Q}):m.pa)).Ha(m.J),V}function Uh(){}function Sp(){}function $s(m,V){os.call(this),this.g=new M_(V),this.l=m,this.h=V&&V.messageUrlParams||null,m=V&&V.messageHeaders||null,V&&V.clientProtocolHeaderRequired&&(m?m["X-Client-Protocol"]="webchannel":m={"X-Client-Protocol":"webchannel"}),this.g.o=m,m=V&&V.initMessageHeaders||null,V&&V.messageContentType&&(m?m["X-WebChannel-Content-Type"]=V.messageContentType:m={"X-WebChannel-Content-Type":V.messageContentType}),V&&V.va&&(m?m["X-WebChannel-Client-Profile"]=V.va:m={"X-WebChannel-Client-Profile":V.va}),this.g.S=m,(m=V&&V.Sb)&&!Mr(m)&&(this.g.m=m),this.v=V&&V.supportsCrossDomainXhr||!1,this.u=V&&V.sendRawJson||!1,(V=V&&V.httpSessionIdParam)&&!Mr(V)&&(this.g.D=V,null!==(m=this.h)&&V in m&&V in(m=this.h)&&delete m[V]),this.j=new Ed(this)}function L_(m){il.call(this),m.__headers__&&(this.headers=m.__headers__,this.statusCode=m.__status__,delete m.__headers__,delete m.__status__);var V=m.__sm__;if(V){e:{for(const Q in V){m=Q;break e}m=void 0}(this.i=m)&&(m=this.i,V=null!==V&&m in V?V[m]:void 0),this.data=V}else this.data=m}function V_(){cd.call(this),this.status=1}function Ed(m){this.g=m}(l=yo.prototype).Ha=function(m){this.J=m},l.ea=function(m,V,Q,Pe){if(this.g)throw Error("[goog.net.XhrIo] Object is active with another request="+this.D+"; newUri="+m);V=V?V.toUpperCase():"GET",this.D=m,this.l="",this.m=0,this.A=!1,this.h=!0,this.g=this.o?this.o.g():Rm.g(),this.v=function wm(m){return m.h||(m.h=m.i())}(this.o?this.o:Rm),this.g.onreadystatechange=pt(this.Ea,this);try{this.B=!0,this.g.open(V,String(m),!0),this.B=!1}catch(nn){return void z0(this,nn)}if(m=Q||"",Q=new Map(this.headers),Pe)if(Object.getPrototypeOf(Pe)===Object.prototype)for(var $t in Pe)Q.set($t,Pe[$t]);else{if("function"!=typeof Pe.keys||"function"!=typeof Pe.get)throw Error("Unknown input type for opt_headers: "+String(Pe));for(const nn of Pe.keys())Q.set(nn,Pe.get(nn))}Pe=Array.from(Q.keys()).find(nn=>"content-type"==nn.toLowerCase()),$t=R.FormData&&m instanceof R.FormData,!(0<=Array.prototype.indexOf.call(lA,V,void 0))||Pe||$t||Q.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");for(const[nn,zn]of Q)this.g.setRequestHeader(nn,zn);this.H&&(this.g.responseType=this.H),"withCredentials"in this.g&&this.g.withCredentials!==this.J&&(this.g.withCredentials=this.J);try{W0(this),this.u=!0,this.g.send(m),this.u=!1}catch(nn){z0(this,nn)}},l.abort=function(m){this.g&&this.h&&(this.h=!1,this.j=!0,this.g.abort(),this.j=!1,this.m=m||7,Ko(this,"complete"),Ko(this,"abort"),jm(this))},l.N=function(){this.g&&(this.h&&(this.h=!1,this.j=!0,this.g.abort(),this.j=!1),jm(this,!0)),yo.aa.N.call(this)},l.Ea=function(){this.s||(this.B||this.u||this.j?G0(this):this.bb())},l.bb=function(){G0(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=fp(pt(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,co(10),Fh(this),X0(this))},l.Za=function(){null!=this.C&&(this.C=null,Fh(this),Gm(this),co(19))},l.fb=function(m){m?(this.j.info("Successfully pinged google.com"),co(2)):(this.j.info("Failed to ping google.com"),co(1))},l.isActive=function(){return!!this.l&&this.l.isActive(this)},(l=Uh.prototype).ua=function(){},l.ta=function(){},l.sa=function(){},l.ra=function(){},l.isActive=function(){return!0},l.Na=function(){},Sp.prototype.g=function(m,V){return new $s(m,V)},An($s,os),$s.prototype.m=function(){this.g.l=this.j,this.v&&(this.g.J=!0),this.g.connect(this.l,this.h||void 0)},$s.prototype.close=function(){P_(this.g)},$s.prototype.o=function(m){var V=this.g;if("string"==typeof m){var Q={};Q.__data__=m,m=Q}else this.u&&((Q={}).__data__=Sh(m),m=Q);V.i.push(new I_(V.Ya++,m)),3==V.G&&zm(V)},$s.prototype.N=function(){this.g.l=null,delete this.j,P_(this.g),delete this.g,$s.aa.N.call(this)},An(L_,il),An(V_,cd),An(Ed,Uh),Ed.prototype.ua=function(){Ko(this.g,"a")},Ed.prototype.ta=function(m){Ko(this.g,new L_(m))},Ed.prototype.sa=function(m){Ko(this.g,new V_)},Ed.prototype.ra=function(){Ko(this.g,"b")},Sp.prototype.createWebChannel=Sp.prototype.g,$s.prototype.send=$s.prototype.o,$s.prototype.open=$s.prototype.m,$s.prototype.close=$s.prototype.close,Ue=Dt.createWebChannelTransport=function(){return new Sp},ge=Dt.getStatEventTarget=function(){return hp()},Ye=Dt.Event=_u,Me=Dt.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},gp.NO_ERROR=0,gp.TIMEOUT=8,gp.HTTP_ERROR=6,mt=Dt.ErrorCode=gp,g_.COMPLETE="complete",yt=Dt.EventType=g_,ud.EventType=hc,hc.OPEN="a",hc.CLOSE="b",hc.ERROR="c",hc.MESSAGE="d",os.prototype.listen=os.prototype.K,Tt=Dt.WebChannel=ud,_t=Dt.FetchXmlHttpFactory=Ap,yo.prototype.listenOnce=yo.prototype.L,yo.prototype.getLastError=yo.prototype.Ka,yo.prototype.getLastErrorCode=yo.prototype.Ba,yo.prototype.getStatus=yo.prototype.Z,yo.prototype.getResponseJson=yo.prototype.Oa,yo.prototype.getResponseText=yo.prototype.oa,yo.prototype.send=yo.prototype.ea,yo.prototype.setWithCredentials=yo.prototype.Ha,St=Dt.XhrIo=yo}).apply(typeof ht<"u"?ht:typeof self<"u"?self:typeof window<"u"?window:{});const Fe="@firebase/firestore";class xe{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}}xe.UNAUTHENTICATED=new xe(null),xe.GOOGLE_CREDENTIALS=new xe("google-credentials-uid"),xe.FIRST_PARTY=new xe("first-party-uid"),xe.MOCK_USER=new xe("mock-user");let at="10.12.1";const Rt=new Je.Vy("@firebase/firestore");function vn(){return Rt.logLevel}function tt(l,...n){if(Rt.logLevel<=Je.$b.DEBUG){const i=n.map(we);Rt.debug(`Firestore (${at}): ${l}`,...i)}}function on(l,...n){if(Rt.logLevel<=Je.$b.ERROR){const i=n.map(we);Rt.error(`Firestore (${at}): ${l}`,...i)}}function dt(l,...n){if(Rt.logLevel<=Je.$b.WARN){const i=n.map(we);Rt.warn(`Firestore (${at}): ${l}`,...i)}}function we(l){if("string"==typeof l)return l;try{return JSON.stringify(l)}catch{return l}}function H(l="Unexpected state"){const n=`FIRESTORE (${at}) INTERNAL ASSERTION FAILED: `+l;throw on(n),new Error(n)}function X(l,n){l||H()}function se(l,n){return l}const ve={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 Le extends Se.g{constructor(n,i){super(n,i),this.code=n,this.message=i,this.toString=()=>`${this.name}: [code=${this.code}]: ${this.message}`}}class De{constructor(){this.promise=new Promise((n,i)=>{this.resolve=n,this.reject=i})}}class Wt{constructor(n,i){this.user=i,this.type="OAuth",this.headers=new Map,this.headers.set("Authorization",`Bearer ${n}`)}}class dn{getToken(){return Promise.resolve(null)}invalidateToken(){}start(n,i){n.enqueueRetryable(()=>i(xe.UNAUTHENTICATED))}shutdown(){}}class Kt{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 rn{constructor(n){this.t=n,this.currentUser=xe.UNAUTHENTICATED,this.i=0,this.forceRefresh=!1,this.auth=null}start(n,i){var s=this;let u=this.i;const p=q=>this.i!==u?(u=this.i,i(q)):Promise.resolve();let _=new De;this.o=()=>{this.i++,this.currentUser=this.u(),_.resolve(),_=new De,n.enqueueRetryable(()=>p(this.currentUser))};const R=()=>{const q=_;n.enqueueRetryable((0,ue.A)(function*(){yield q.promise,yield p(s.currentUser)}))},k=q=>{tt("FirebaseAuthCredentialsProvider","Auth detected"),this.auth=q,this.auth.addAuthTokenListener(this.o),R()};this.t.onInit(q=>k(q)),setTimeout(()=>{if(!this.auth){const q=this.t.getImmediate({optional:!0});q?k(q):(tt("FirebaseAuthCredentialsProvider","Auth not yet detected"),_.resolve(),_=new De)}},0),R()}getToken(){const n=this.i,i=this.forceRefresh;return this.forceRefresh=!1,this.auth?this.auth.getToken(i).then(s=>this.i!==n?(tt("FirebaseAuthCredentialsProvider","getToken aborted due to token change."),this.getToken()):s?(X("string"==typeof s.accessToken),new Wt(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 X(null===n||"string"==typeof n),new xe(n)}}class Ln{constructor(n,i,s){this.l=n,this.h=i,this.P=s,this.type="FirstParty",this.user=xe.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 Zn{constructor(n,i,s){this.l=n,this.h=i,this.P=s}getToken(){return Promise.resolve(new Ln(this.l,this.h,this.P))}start(n,i){n.enqueueRetryable(()=>i(xe.FIRST_PARTY))}shutdown(){}invalidateToken(){}}class nr{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=p=>{null!=p.error&&tt("FirebaseAppCheckTokenProvider",`Error getting App Check token; using placeholder token instead. Error: ${p.error.message}`);const _=p.token!==this.R;return this.R=p.token,tt("FirebaseAppCheckTokenProvider",`Received ${_?"new":"existing"} token.`),_?i(p.token):Promise.resolve()};this.o=p=>{n.enqueueRetryable(()=>s(p))};const u=p=>{tt("FirebaseAppCheckTokenProvider","AppCheck detected"),this.appCheck=p,this.appCheck.addTokenListener(this.o)};this.A.onInit(p=>u(p)),setTimeout(()=>{if(!this.appCheck){const p=this.A.getImmediate({optional:!0});p?u(p):tt("FirebaseAppCheckTokenProvider","AppCheck not yet detected")}},0)}getToken(){const n=this.forceRefresh;return this.forceRefresh=!1,this.appCheck?this.appCheck.getToken(n).then(i=>i?(X("string"==typeof i.token),this.R=i.token,new nr(i.token)):null):Promise.resolve(null)}invalidateToken(){this.forceRefresh=!0}shutdown(){this.appCheck&&this.appCheck.removeTokenListener(this.o)}}function rr(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 Ot(l,n,i){return l.length===n.length&&l.every((s,u)=>i(s,n[u]))}class pn{constructor(n,i){if(this.seconds=n,this.nanoseconds=i,i<0)throw new Le(ve.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+i);if(i>=1e9)throw new Le(ve.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+i);if(n<-62135596800)throw new Le(ve.INVALID_ARGUMENT,"Timestamp seconds out of range: "+n);if(n>=253402300800)throw new Le(ve.INVALID_ARGUMENT,"Timestamp seconds out of range: "+n)}static now(){return pn.fromMillis(Date.now())}static fromDate(n){return pn.fromMillis(n.getTime())}static fromMillis(n){const i=Math.floor(n/1e3),s=Math.floor(1e6*(n-1e3*i));return new pn(i,s)}toDate(){return new Date(this.toMillis())}toMillis(){return 1e3*this.seconds+this.nanoseconds/1e6}_compareTo(n){return this.seconds===n.seconds?nt(this.nanoseconds,n.nanoseconds):nt(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 gn{constructor(n){this.timestamp=n}static fromTimestamp(n){return new gn(n)}static min(){return new gn(new pn(0,0))}static max(){return new gn(new pn(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 Sr{constructor(n,i,s){void 0===i?i=0:i>n.length&&H(),void 0===s?s=n.length-i:s>n.length-i&&H(),this.segments=n,this.offset=i,this.len=s}get length(){return this.len}isEqual(n){return 0===Sr.comparator(this,n)}child(n){const i=this.segments.slice(this.offset,this.limit());return n instanceof Sr?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 Mn extends Sr{construct(n,i,s){return new Mn(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 Le(ve.INVALID_ARGUMENT,`Invalid segment (${s}). Paths must not contain // in them.`);i.push(...s.split("/").filter(u=>u.length>0))}return new Mn(i)}static emptyPath(){return new Mn([])}}const xn=/^[_a-zA-Z][_a-zA-Z0-9]*$/;class mn extends Sr{construct(n,i,s){return new mn(n,i,s)}static isValidIdentifier(n){return xn.test(n)}canonicalString(){return this.toArray().map(n=>(n=n.replace(/\\/g,"\\\\").replace(/`/g,"\\`"),mn.isValidIdentifier(n)||(n="`"+n+"`"),n)).join(".")}toString(){return this.canonicalString()}isKeyField(){return 1===this.length&&"__name__"===this.get(0)}static keyField(){return new mn(["__name__"])}static fromServerFormat(n){const i=[];let s="",u=0;const p=()=>{if(0===s.length)throw new Le(ve.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===Mn.comparator(this.path,n.path)}toString(){return this.path.toString()}static comparator(n,i){return Mn.comparator(n.path,i.path)}static isDocumentKey(n){return n.length%2==0}static fromSegments(n){return new en(new Mn(n.slice()))}}class Pr{constructor(n,i,s){this.readTime=n,this.documentKey=i,this.largestBatchId=s}static min(){return new Pr(gn.min(),en.empty(),-1)}static max(){return new Pr(gn.max(),en.empty(),-1)}}function cr(l,n){let i=l.readTime.compareTo(n.readTime);return 0!==i?i:(i=en.comparator(l.documentKey,n.documentKey),0!==i?i:nt(l.largestBatchId,n.largestBatchId))}const kr="The current tab is not in the required state to perform this operation. It might be necessary to refresh the browser tab.";class ii{constructor(){this.onCommittedListeners=[]}addOnCommittedListener(n){this.onCommittedListeners.push(n)}raiseOnCommittedEvent(){this.onCommittedListeners.forEach(n=>n())}}function Ai(l){return Qr.apply(this,arguments)}function Qr(){return(Qr=(0,ue.A)(function*(l){if(l.code!==ve.FAILED_PRECONDITION||l.message!==kr)throw l;tt("LocalStore","Unexpectedly lost primary lease")})).apply(this,arguments)}class pe{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&&H(),this.callbackAttached=!0,this.isDone?this.error?this.wrapFailure(i,this.error):this.wrapSuccess(n,this.result):new pe((s,u)=>{this.nextCallback=p=>{this.wrapSuccess(n,p).next(s,u)},this.catchCallback=p=>{this.wrapFailure(i,p).next(s,u)}})}toPromise(){return new Promise((n,i)=>{this.next(n,i)})}wrapUserFunction(n){try{const i=n();return i instanceof pe?i:pe.resolve(i)}catch(i){return pe.reject(i)}}wrapSuccess(n,i){return n?this.wrapUserFunction(()=>n(i)):pe.resolve(i)}wrapFailure(n,i){return n?this.wrapUserFunction(()=>n(i)):pe.reject(i)}static resolve(n){return new pe((i,s)=>{i(n)})}static reject(n){return new pe((i,s)=>{s(n)})}static waitFor(n){return new pe((i,s)=>{let u=0,p=0,_=!1;n.forEach(R=>{++u,R.next(()=>{++p,_&&p===u&&i()},k=>s(k))}),_=!0,p===u&&i()})}static or(n){let i=pe.resolve(!1);for(const s of n)i=i.next(u=>u?pe.resolve(u):s());return i}static forEach(n,i){const s=[];return n.forEach((u,p)=>{s.push(i.call(this,u,p))}),this.waitFor(s)}static mapArray(n,i){return new pe((s,u)=>{const p=n.length,_=new Array(p);let R=0;for(let k=0;k{_[q]=_e,++R,R===p&&s(_)},_e=>u(_e))}})}static doWhile(n,i){return new pe((s,u)=>{const p=()=>{!0===n()?i().next(()=>{p()},u):s()};p()})}}function He(l){return"IndexedDbTransactionError"===l.name}let _n=(()=>{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 qn(l){return null==l}function hn(l){return 0===l&&1/l==-1/0}function Cr(l){let n=0;for(const i in l)Object.prototype.hasOwnProperty.call(l,i)&&n++;return n}function ai(l,n){for(const i in l)Object.prototype.hasOwnProperty.call(l,i)&&n(i,l[i])}function ei(l){for(const n in l)if(Object.prototype.hasOwnProperty.call(l,n))return!1;return!0}class Lr{constructor(n,i){this.comparator=n,this.root=i||Wn.EMPTY}insert(n,i){return new Lr(this.comparator,this.root.insert(n,i,this.comparator).copy(null,null,Wn.BLACK,null,null))}remove(n){return new Lr(this.comparator,this.root.remove(n,this.comparator).copy(null,null,Wn.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 mi(this.root,null,this.comparator,!1)}getIteratorFrom(n){return new mi(this.root,n,this.comparator,!1)}getReverseIterator(){return new mi(this.root,null,this.comparator,!0)}getReverseIteratorFrom(n){return new mi(this.root,n,this.comparator,!0)}}class mi{constructor(n,i,s,u){this.isReverse=u,this.nodeStack=[];let p=1;for(;!n.isEmpty();)if(p=i?s(n.key,i):1,i&&u&&(p*=-1),p<0)n=this.isReverse?n.left:n.right;else{if(0===p){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 Wn{constructor(n,i,s,u,p){this.key=n,this.value=i,this.color=null!=s?s:Wn.RED,this.left=null!=u?u:Wn.EMPTY,this.right=null!=p?p:Wn.EMPTY,this.size=this.left.size+1+this.right.size}copy(n,i,s,u,p){return new Wn(null!=n?n:this.key,null!=i?i:this.value,null!=s?s:this.color,null!=u?u:this.left,null!=p?p: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 p=s(n,u.key);return u=p<0?u.copy(null,null,null,u.left.insert(n,i,s),null):0===p?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 Wn.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 Wn.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,Wn.RED,null,this.right.left);return this.right.copy(null,null,this.color,n,null)}rotateRight(){const n=this.copy(null,null,Wn.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 H();const n=this.left.check();if(n!==this.right.check())throw H();return n+(this.isRed()?0:1)}}Wn.EMPTY=null,Wn.RED=!0,Wn.BLACK=!1,Wn.EMPTY=new class{constructor(){this.size=0}get key(){throw H()}get value(){throw H()}get color(){throw H()}get left(){throw H()}get right(){throw H()}copy(n,i,s,u,p){return this}insert(n,i,s){return new Wn(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 Hn{constructor(n){this.comparator=n,this.data=new Lr(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 ao(this.data.getIterator())}getIteratorFrom(n){return new ao(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 Hn)||this.size!==n.size)return!1;const i=this.data.getIterator(),s=n.data.getIterator();for(;i.hasNext();){const u=i.getNext().key,p=s.getNext().key;if(0!==this.comparator(u,p))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 Hn(this.comparator);return i.data=n,i}}class ao{constructor(n){this.iter=n}getNext(){return this.iter.getNext().key}hasNext(){return this.iter.hasNext()}}class Ci{constructor(n){this.fields=n,n.sort(mn.comparator)}static empty(){return new Ci([])}unionWith(n){let i=new Hn(mn.comparator);for(const s of this.fields)i=i.add(s);for(const s of n)i=i.add(s);return new Ci(i.toArray())}covers(n){for(const i of this.fields)if(i.isPrefixOf(n))return!0;return!1}isEqual(n){return Ot(this.fields,n.fields,(i,s)=>i.isEqual(s))}}class Eo extends Error{constructor(){super(...arguments),this.name="Base64DecodeError"}}class oi{constructor(n){this.binaryString=n}static fromBase64String(n){const i=function(u){try{return atob(u)}catch(p){throw typeof DOMException<"u"&&p instanceof DOMException?new Eo("Invalid base64 string: "+p):p}}(n);return new oi(i)}static fromUint8Array(n){const i=function(u){let p="";for(let _=0;_nre(i,n))}function Ee(l,n){if(l===n)return 0;const i=j(l),s=j(n);if(i!==s)return nt(i,s);switch(i){case 0:case 9007199254740991:return 0;case 1:return nt(l.booleanValue,n.booleanValue);case 2:return function(p,_){const R=le(p.integerValue||p.doubleValue),k=le(_.integerValue||_.doubleValue);return Rk?1:R===k?0:isNaN(R)?isNaN(k)?0:-1:1}(l,n);case 3:return it(l.timestampValue,n.timestampValue);case 4:return it(ot(l),ot(n));case 5:return nt(l.stringValue,n.stringValue);case 6:return function(p,_){const R=W(p),k=W(_);return R.compareTo(k)}(l.bytesValue,n.bytesValue);case 7:return function(p,_){const R=p.split("/"),k=_.split("/");for(let q=0;qn.mapValue.fields[i]=sn(s)),n}if(l.arrayValue){const n={arrayValue:{values:[]}};for(let i=0;i<(l.arrayValue.values||[]).length;++i)n.arrayValue.values[i]=sn(l.arrayValue.values[i]);return n}return Object.assign({},l)}function cn(l){return"__max__"===(((l.mapValue||{}).fields||{}).__type__||{}).stringValue}class Vn{constructor(n){this.value=n}static empty(){return new Vn({mapValue:{}})}field(n){if(n.isEmpty())return this.value;{let i=this.value;for(let s=0;s{if(!i.isImmediateParentOf(R)){const k=this.getFieldsMap(i);this.applyChanges(k,s,u),s={},u=[],i=R.popLast()}_?s[R.lastSegment()]=sn(_):u.push(R.lastSegment())});const p=this.getFieldsMap(i);this.applyChanges(p,s,u)}delete(n){const i=this.field(n.popLast());Yt(i)&&i.mapValue.fields&&delete i.mapValue.fields[n.lastSegment()]}isEqual(n){return re(this.value,n.value)}getFieldsMap(n){let i=this.value;i.mapValue.fields||(i.mapValue={fields:{}});for(let s=0;sn[u]=p);for(const u of s)delete n[u]}clone(){return new Vn(sn(this.value))}}function qr(l){const n=[];return ai(l.fields,(i,s)=>{const u=new mn([i]);if(Yt(s)){const p=qr(s.mapValue).fields;if(0===p.length)n.push(u);else for(const _ of p)n.push(u.child(_))}else n.push(u)}),new Ci(n)}class jr{constructor(n,i,s,u,p,_,R){this.key=n,this.documentType=i,this.version=s,this.readTime=u,this.createTime=p,this.data=_,this.documentState=R}static newInvalidDocument(n){return new jr(n,0,gn.min(),gn.min(),gn.min(),Vn.empty(),0)}static newFoundDocument(n,i,s,u){return new jr(n,1,i,gn.min(),s,u,0)}static newNoDocument(n,i){return new jr(n,2,i,gn.min(),gn.min(),Vn.empty(),0)}static newUnknownDocument(n,i){return new jr(n,3,i,gn.min(),gn.min(),Vn.empty(),2)}convertToFoundDocument(n,i){return!this.createTime.isEqual(gn.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=Vn.empty(),this.documentState=0,this}convertToUnknownDocument(n){return this.version=n,this.documentType=3,this.data=Vn.empty(),this.documentState=2,this}setHasCommittedMutations(){return this.documentState=2,this}setHasLocalMutations(){return this.documentState=1,this.version=gn.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 jr&&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 jr(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 br{constructor(n,i){this.position=n,this.inclusive=i}}function wi(l,n,i){let s=0;for(let u=0;u":return n>0;case">=":return n>=0;default:return H()}}isInequality(){return["<","<=",">",">=","!=","not-in"].indexOf(this.op)>=0}getFlattenedFilters(){return[this]}getFilters(){return[this]}}class Ti extends as{constructor(n,i){super(),this.filters=n,this.op=i,this.ae=null}static create(n,i){return new Ti(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 Bo(l){return function Io(l){for(const n of l.filters)if(n instanceof Ti)return!1;return!0}(l)&&Qo(l)}function Ss(l){if(l instanceof Ur)return l.field.canonicalString()+l.op.toString()+sr(l.value);if(Bo(l))return l.filters.map(n=>Ss(n)).join(",");{const n=l.filters.map(i=>Ss(i)).join(",");return`${l.op}(${n})`}}function no(l,n){return l instanceof Ur?(s=l,(u=n)instanceof Ur&&s.op===u.op&&s.field.isEqual(u.field)&&re(s.value,u.value)):l instanceof Ti?function(s,u){return u instanceof Ti&&s.op===u.op&&s.filters.length===u.filters.length&&s.filters.reduce((p,_,R)=>p&&no(_,u.filters[R]),!0)}(l,n):void H();var s,u}function Kr(l){return l instanceof Ur?`${(i=l).field.canonicalString()} ${i.op} ${sr(i.value)}`:l instanceof Ti?function(i){return i.op.toString()+" {"+i.getFilters().map(Kr).join(" ,")+"}"}(l):"Filter";var i}class fo extends Ur{constructor(n,i,s){super(n,i,s),this.key=en.fromName(s.referenceValue)}matches(n){const i=en.comparator(n.key,this.key);return this.matchesComparison(i)}}class ka extends Ur{constructor(n,i){super(n,"in",i),this.keys=Hs(0,i)}matches(n){return this.keys.some(i=>i.isEqual(n.key))}}class Rs extends Ur{constructor(n,i){super(n,"not-in",i),this.keys=Hs(0,i)}matches(n){return!this.keys.some(i=>i.isEqual(n.key))}}function Hs(l,n){var i;return((null===(i=n.arrayValue)||void 0===i?void 0:i.values)||[]).map(s=>en.fromName(s.referenceValue))}class Ms extends Ur{constructor(n,i){super(n,"array-contains",i)}matches(n){const i=n.data.field(this.field);return et(i)&&P(i.arrayValue,this.value)}}class ls extends Ur{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 us extends Ur{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 Uo extends Ur{constructor(n,i){super(n,"array-contains-any",i)}matches(n){const i=n.data.field(this.field);return!(!et(i)||!i.arrayValue.values)&&i.arrayValue.values.some(s=>P(this.value.arrayValue,s))}}class vs{constructor(n,i=null,s=[],u=[],p=null,_=null,R=null){this.path=n,this.collectionGroup=i,this.orderBy=s,this.filters=u,this.limit=p,this.startAt=_,this.endAt=R,this.ue=null}}function Ps(l,n=null,i=[],s=[],u=null,p=null,_=null){return new vs(l,n,i,s,u,p,_)}function xs(l){const n=se(l);if(null===n.ue){let i=n.path.canonicalString();null!==n.collectionGroup&&(i+="|cg:"+n.collectionGroup),i+="|f:",i+=n.filters.map(s=>Ss(s)).join(","),i+="|ob:",i+=n.orderBy.map(s=>{return(p=s).field.canonicalString()+p.dir;var p}).join(","),qn(n.limit)||(i+="|l:",i+=n.limit),n.startAt&&(i+="|lb:",i+=n.startAt.inclusive?"b:":"a:",i+=n.startAt.position.map(s=>sr(s)).join(",")),n.endAt&&(i+="|ub:",i+=n.endAt.inclusive?"a:":"b:",i+=n.endAt.position.map(s=>sr(s)).join(",")),n.ue=i}return n.ue}function Ao(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 R=new Hn(mn.comparator);return _.filters.forEach(k=>{k.getFlattenedFilters().forEach(q=>{q.isInequality()&&(R=R.add(q.field))})}),R})(n).forEach(p=>{i.has(p.canonicalString())||p.isKeyField()||n.ce.push(new ki(p,s))}),i.has(mn.keyField().canonicalString())||n.ce.push(new ki(mn.keyField(),s))}return n.ce}function Xn(l){const n=se(l);return n.le||(n.le=function oo(l,n){if("F"===l.limitType)return Ps(l.path,l.collectionGroup,n,l.filters,l.limit,l.startAt,l.endAt);{n=n.map(u=>new ki(u.field,"desc"===u.dir?"asc":"desc"));const i=l.endAt?new br(l.endAt.position,l.endAt.inclusive):null,s=l.startAt?new br(l.startAt.position,l.startAt.inclusive):null;return Ps(l.path,l.collectionGroup,n,l.filters,l.limit,i,s)}}(n,yn(l))),n.le}function So(l,n,i){return new K(l.path,l.collectionGroup,l.explicitOrderBy.slice(),l.filters.slice(),n,i,l.startAt,l.endAt)}function Yo(l,n){return Ao(Xn(l),Xn(n))&&l.limitType===n.limitType}function Fa(l){return`${xs(Xn(l))}|lt:${l.limitType}`}function _s(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=>Kr(u)).join(", ")}]`),qn(i.limit)||(s+=", limit: "+i.limit),i.orderBy.length>0&&(s+=`, orderBy: [${i.orderBy.map(u=>{return`${(_=u).field.canonicalString()} (${_.dir})`;var _}).join(", ")}]`),i.startAt&&(s+=", startAt: ",s+=i.startAt.inclusive?"b:":"a:",s+=i.startAt.position.map(u=>sr(u)).join(",")),i.endAt&&(s+=", endAt: ",s+=i.endAt.inclusive?"a:":"b:",s+=i.endAt.position.map(u=>sr(u)).join(",")),`Target(${s})`}(Xn(l))}; limitType=${l.limitType})`}function Gs(l,n){return n.isFoundDocument()&&function(s,u){const p=u.key.path;return null!==s.collectionGroup?u.key.hasCollectionId(s.collectionGroup)&&s.path.isPrefixOf(p):en.isDocumentKey(s.path)?s.path.isEqual(p):s.path.isImmediateParentOf(p)}(l,n)&&function(s,u){for(const p of yn(s))if(!p.field.isKeyField()&&null===u.data.field(p.field))return!1;return!0}(l,n)&&function(s,u){for(const p of s.filters)if(!p.matches(u))return!1;return!0}(l,n)&&(u=n,!((s=l).startAt&&!function(_,R,k){const q=wi(_,R,k);return _.inclusive?q<=0:q<0}(s.startAt,yn(s),u)||s.endAt&&!function(_,R,k){const q=wi(_,R,k);return _.inclusive?q>=0:q>0}(s.endAt,yn(s),u)));var s,u}function ul(l){return(n,i)=>{let s=!1;for(const u of yn(l)){const p=pa(u,n,i);if(0!==p)return p;s=s||u.field.isKeyField()}return 0}}function pa(l,n,i){const s=l.field.isKeyField()?en.comparator(n.key,i.key):function(p,_,R){const k=_.data.field(p),q=R.data.field(p);return null!==k&&null!==q?Ee(k,q):H()}(l.field,n,i);switch(l.dir){case"asc":return s;case"desc":return-1*s;default:return H()}}class $o{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,p]of s)if(this.equalsFn(u,n))return p}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 p=0;p{for(const[u,p]of s)n(u,p)})}isEmpty(){return ei(this.inner)}size(){return this.innerSize}}const Jo=new Lr(en.comparator);function Rr(){return Jo}const ji=new Lr(en.comparator);function zi(...l){let n=ji;for(const i of l)n=n.insert(i.key,i);return n}function po(l){let n=ji;return l.forEach((i,s)=>n=n.insert(i,s.overlayedDocument)),n}function bi(){return jo()}function La(){return jo()}function jo(){return new $o(l=>l.toString(),(l,n)=>l.isEqual(n))}const ys=new Lr(en.comparator),cl=new Hn(en.comparator);function Hr(...l){let n=cl;for(const i of l)n=n.add(i);return n}const dl=new Hn(nt);function Va(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:hn(n)?"-0":n}}function Es(l){return{integerValue:""+l}}function hl(l,n){return function Cn(l){return"number"==typeof l&&Number.isInteger(l)&&!hn(l)&&l<=Number.MAX_SAFE_INTEGER&&l>=Number.MIN_SAFE_INTEGER}(n)?Es(n):Va(l,n)}class Ba{constructor(){this._=void 0}}function Ul(l,n,i){return l instanceof Is?function(u,p){const _={fields:{__type__:{stringValue:"server_timestamp"},__local_write_time__:{timestampValue:{seconds:u.seconds,nanos:u.nanoseconds}}}};return p&&$e(p)&&(p=Ve(p)),p&&(_.fields.__previous_value__=p),{mapValue:_}}(i,n):l instanceof Os?Zo(l,n):l instanceof As?zl(l,n):function(u,p){const _=jl(u,p),R=Su(_)+Su(u.Pe);return Ne(_)&&Ne(u.Pe)?Es(R):Va(u.serializer,R)}(l,n)}function $l(l,n,i){return l instanceof Os?Zo(l,n):l instanceof As?zl(l,n):i}function jl(l,n){return l instanceof es?Ne(s=n)||(p=s)&&"doubleValue"in p?n:{integerValue:0}:null;var s,p}class Is extends Ba{}class Os extends Ba{constructor(n){super(),this.elements=n}}function Zo(l,n){const i=Hl(n);for(const s of l.elements)i.some(u=>re(u,s))||i.push(s);return{arrayValue:{values:i}}}class As extends Ba{constructor(n){super(),this.elements=n}}function zl(l,n){let i=Hl(n);for(const s of l.elements)i=i.filter(u=>!re(u,s));return{arrayValue:{values:i}}}class es extends Ba{constructor(n,i){super(),this.serializer=n,this.Pe=i}}function Su(l){return le(l.integerValue||l.doubleValue)}function Hl(l){return et(l)&&l.arrayValue.values?l.arrayValue.values.slice():[]}class Ns{constructor(n,i){this.version=n,this.transformResults=i}}class Ui{constructor(n,i){this.updateTime=n,this.exists=i}static none(){return new Ui}static exists(n){return new Ui(void 0,n)}static updateTime(n){return new Ui(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 ga(l,n){return void 0!==l.updateTime?n.isFoundDocument()&&n.version.isEqual(l.updateTime):void 0===l.exists||l.exists===n.isFoundDocument()}class Ua{}function ma(l,n){if(!l.hasLocalMutations||n&&0===n.fields.length)return null;if(null===n)return l.isNoDocument()?new $(l.key,Ui.none()):new Ks(l.key,l.data,Ui.none());{const i=l.data,s=Vn.empty();let u=new Hn(mn.comparator);for(let p of n.fields)if(!u.has(p)){let _=i.field(p);null===_&&p.length>1&&(p=p.popLast(),_=i.field(p)),null===_?s.delete(p):s.set(p,_),u=u.add(p)}return new lo(l.key,s,new Ci(u.toArray()),Ui.none())}}function $a(l,n,i){l instanceof Ks?function(u,p,_){const R=u.value.clone(),k=ya(u.fieldTransforms,p,_.transformResults);R.setAll(k),p.convertToFoundDocument(_.version,R).setHasCommittedMutations()}(l,n,i):l instanceof lo?function(u,p,_){if(!ga(u.precondition,p))return void p.convertToUnknownDocument(_.version);const R=ya(u.fieldTransforms,p,_.transformResults),k=p.data;k.setAll(Gl(u)),k.setAll(R),p.convertToFoundDocument(_.version,k).setHasCommittedMutations()}(l,n,i):n.convertToNoDocument(i.version).setHasCommittedMutations()}function zo(l,n,i,s){return l instanceof Ks?function(p,_,R,k){if(!ga(p.precondition,_))return R;const q=p.value.clone(),_e=C(p.fieldTransforms,k,_);return q.setAll(_e),_.convertToFoundDocument(_.version,q).setHasLocalMutations(),null}(l,n,i,s):l instanceof lo?function(p,_,R,k){if(!ga(p.precondition,_))return R;const q=C(p.fieldTransforms,k,_),_e=_.data;return _e.setAll(Gl(p)),_e.setAll(q),_.convertToFoundDocument(_.version,_e).setHasLocalMutations(),null===R?null:R.unionWith(p.fieldMask.fields).unionWith(p.fieldTransforms.map(je=>je.field))}(l,n,i,s):(R=i,ga(l.precondition,_=n)?(_.convertToNoDocument(_.version).setHasLocalMutations(),null):R);var _,R}function va(l,n){let i=null;for(const s of l.fieldTransforms){const u=n.data.field(s.field),p=jl(s.transform,u||null);null!=p&&(null===i&&(i=Vn.empty()),i.set(s.field,p))}return i||null}function _a(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&&Ot(s,u,(p,_)=>function Lo(l,n){return l.field.isEqual(n.field)&&(u=n.transform,(s=l.transform)instanceof Os&&u instanceof Os||s instanceof As&&u instanceof As?Ot(s.elements,u.elements,re):s instanceof es&&u instanceof es?re(s.Pe,u.Pe):s instanceof Is&&u instanceof Is);var s,u}(p,_))))&&(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 Ks extends Ua{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 Ua{constructor(n,i,s,u,p=[]){super(),this.key=n,this.data=i,this.fieldMask=s,this.precondition=u,this.fieldTransforms=p,this.type=1}getFieldMask(){return this.fieldMask}}function Gl(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 ya(l,n,i){const s=new Map;X(l.length===i.length);for(let u=0;u{const p=n.get(u.key),_=p.overlayedDocument;let R=this.applyToLocalView(_,p.mutatedFields);R=i.has(u.key)?null:R;const k=ma(_,R);null!==k&&s.set(u.key,k),_.isValidDocument()||_.convertToNoDocument(gn.min())}),s}keys(){return this.mutations.reduce((n,i)=>n.add(i.key),Hr())}isEqual(n){return this.batchId===n.batchId&&Ot(this.mutations,n.mutations,(i,s)=>_a(i,s))&&Ot(this.baseMutations,n.baseMutations,(i,s)=>_a(i,s))}}class Ie{constructor(n,i,s,u){this.batch=n,this.commitVersion=i,this.mutationResults=s,this.docVersions=u}static from(n,i,s){X(n.mutations.length===s.length);let u=function(){return ys}();const p=n.mutations;for(let _=0;_=8)throw new Di(`Invalid padding: ${i}`);if(s<0)throw new Di(`Invalid hash count: ${s}`);if(n.length>0&&0===this.hashCount)throw new Di(`Invalid hash count: ${s}`);if(0===n.length&&0!==i)throw new Di(`Invalid padding when bitmap length is 0: ${i}`);this.Ie=8*n.length-i,this.Te=Ze.fromNumber(this.Ie)}Ee(n,i,s){let u=n.add(i.multiply(Ze.fromNumber(s)));return 1===u.compare(Hi)&&(u=new Ze([u.getBits(0),u.getBits(1)],0)),u.modulo(this.Te).toNumber()}de(n){return!!(this.bitmap[Math.floor(n/8)]&1<_.insert(R)),_}insert(n){if(0===this.Ie)return;const i=vi(n),[s,u]=Rn(i);for(let p=0;p0&&(this.we=!0,this.pe=n)}Ce(){let n=Hr(),i=Hr(),s=Hr();return this.ge.forEach((u,p)=>{switch(p){case 0:n=n.add(u);break;case 2:i=i.add(u);break;case 1:s=s.add(u);break;default:H()}}),new Si(this.pe,this.ye,n,i,s)}ve(){this.we=!1,this.ge=Xs()}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,X(this.fe>=0)}Ne(){this.we=!0,this.ye=!0}}class ks{constructor(n){this.Le=n,this.Be=new Map,this.ke=Rr(),this.qe=Br(),this.Qe=new Lr(nt)}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:H()}})}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 p=u.target;if(Fo(p))if(0===s){const _=new en(p.path);this.Ue(i,_,jr.newNoDocument(_,gn.min()))}else X(1===s);else{const _=this.Ye(i);if(_!==s){const R=this.Ze(n),k=R?this.Xe(R,n,_):1;0!==k&&(this.je(i),this.Qe=this.Qe.insert(i,2===k?"TargetPurposeExistenceFilterMismatchBloom":"TargetPurposeExistenceFilterMismatch"))}}}}Ze(n){const i=n.me.unchangedNames;if(!i||!i.bits)return null;const{bits:{bitmap:s="",padding:u=0},hashCount:p=0}=i;let _,R;try{_=W(s).toUint8Array()}catch(k){if(k instanceof Eo)return dt("Decoding the base64 bloom filter in existence filter failed ("+k.message+"); ignoring the bloom filter and falling back to full re-query."),null;throw k}try{R=new Kn(_,u,p)}catch(k){return dt(k instanceof Di?"BloomFilter error: ":"Applying bloom filter failed: ",k),null}return 0===R.Ie?null:R}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(p=>{const _=this.Le.tt(),R=`projects/${_.projectId}/databases/${_.database}/documents/${p.path.canonicalString()}`;n.mightContain(R)||(this.Ue(i,p,null),u++)}),u}rt(n){const i=new Map;this.Be.forEach((p,_)=>{const R=this.Je(_);if(R){if(p.current&&Fo(R.target)){const k=new en(R.target.path);null!==this.ke.get(k)||this.it(_,k)||this.Ue(_,k,jr.newNoDocument(k,n))}p.be&&(i.set(_,p.Ce()),p.ve())}});let s=Hr();this.qe.forEach((p,_)=>{let R=!0;_.forEachWhile(k=>{const q=this.Je(k);return!q||"TargetPurposeLimboResolution"===q.purpose||(R=!1,!1)}),R&&(s=s.add(p))}),this.ke.forEach((p,_)=>_.setReadTime(n));const u=new qi(n,i,this.Qe,this.ke,s);return this.ke=Rr(),this.qe=Br(),this.Qe=new Lr(nt),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 Ki,this.Be.set(n,i)),i}st(n){let i=this.qe.get(n);return i||(i=new Hn(nt),this.qe=this.qe.insert(n,i)),i}ze(n){const i=null!==this.Je(n);return i||tt("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 Ki),this.Le.getRemoteKeysForTarget(n).forEach(i=>{this.Ue(n,i,null)})}it(n,i){return this.Le.getRemoteKeysForTarget(n).has(i)}}function Br(){return new Lr(en.comparator)}function Xs(){return new Lr(en.comparator)}const vc={asc:"ASCENDING",desc:"DESCENDING"},fl={"<":"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"},Gi={and:"AND",or:"OR"};class Co{constructor(n,i){this.databaseId=n,this.useProto3Json=i}}function Cs(l,n){return l.useProto3Json||qn(n)?n:{value:n}}function Go(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 qs(l,n){return l.useProto3Json?n.toBase64():n.toUint8Array()}function _c(l,n){return Go(l,n.toTimestamp())}function Mi(l){return X(!!l),gn.fromTimestamp(function(i){const s=he(i);return new pn(s.seconds,s.nanos)}(l))}function Qs(l,n){return cs(l,n).canonicalString()}function cs(l,n){const i=(u=l,new Mn(["projects",u.projectId,"databases",u.database])).child("documents");var u;return void 0===n?i:i.child(n)}function Gr(l){const n=Mn.fromString(l);return X(E(n)),n}function Ea(l,n){return Qs(l.databaseId,n.path)}function ns(l,n){const i=Gr(n);if(i.get(1)!==l.databaseId.projectId)throw new Le(ve.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 Le(ve.INVALID_ARGUMENT,"Tried to deserialize key from different database: "+i.get(3)+" vs "+l.databaseId.database);return new en(Xi(i))}function Wo(l,n){return Qs(l.databaseId,n)}function Ia(l){return new Mn(["projects",l.databaseId.projectId,"databases",l.databaseId.database]).canonicalString()}function Xi(l){return X(l.length>4&&"documents"===l.get(4)),l.popFirst(5)}function Ru(l,n,i){return{name:Ea(l,n),fields:i.value.mapValue.fields}}function Kl(l,n){return{documents:[Wo(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=Wo(l,u);const p=function(q){if(0!==q.length)return Kh(Ti.create(q,"and"))}(n.filters);p&&(i.structuredQuery.where=p);const _=function(q){if(0!==q.length)return q.map(_e=>{return{field:Da((pt=_e).field),direction:ja(pt.dir)};var pt})}(n.orderBy);_&&(i.structuredQuery.orderBy=_);const R=Cs(l,n.limit);return null!==R&&(i.structuredQuery.limit=R),n.startAt&&(i.structuredQuery.startAt={before:(q=n.startAt).inclusive,values:q.position}),n.endAt&&(i.structuredQuery.endAt=function(q){return{before:!q.inclusive,values:q.position}}(n.endAt)),{_t:i,parent:u};var q}function Aa(l){let n=function pl(l){const n=Gr(l);return 4===n.length?Mn.emptyPath():Xi(n)}(l.parent);const i=l.structuredQuery,s=i.from?i.from.length:0;let u=null;if(s>0){X(1===s);const _e=i.from[0];_e.allDescendants?u=_e.collectionId:n=n.child(_e.collectionId)}let p=[];i.where&&(p=function(je){const pt=Ca(je);return pt instanceof Ti&&Bo(pt)?pt.getFilters():[pt]}(i.where));let _=[];i.orderBy&&(_=i.orderBy.map(pt=>{return new ki(za((An=pt).field),function(Sn){switch(Sn){case"ASCENDING":return"asc";case"DESCENDING":return"desc";default:return}}(An.direction));var An}));let R=null;i.limit&&(R=function(je){let pt;return pt="object"==typeof je?je.value:je,qn(pt)?null:pt}(i.limit));let k=null;var je;i.startAt&&(k=new br((je=i.startAt).values||[],!!je.before));let q=null;return i.endAt&&(q=function(je){return new br(je.values||[],!je.before)}(i.endAt)),function N(l,n,i,s,u,p,_,R){return new K(l,n,i,s,u,p,_,R)}(n,u,_,p,R,"F",k,q)}function Ca(l){return void 0!==l.unaryFilter?function(i){switch(i.unaryFilter.op){case"IS_NAN":const s=za(i.unaryFilter.field);return Ur.create(s,"==",{doubleValue:NaN});case"IS_NULL":const u=za(i.unaryFilter.field);return Ur.create(u,"==",{nullValue:"NULL_VALUE"});case"IS_NOT_NAN":const p=za(i.unaryFilter.field);return Ur.create(p,"!=",{doubleValue:NaN});case"IS_NOT_NULL":const _=za(i.unaryFilter.field);return Ur.create(_,"!=",{nullValue:"NULL_VALUE"});default:return H()}}(l):void 0!==l.fieldFilter?Ur.create(za((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 H()}}(i.fieldFilter.op),i.fieldFilter.value):void 0!==l.compositeFilter?function(i){return Ti.create(i.compositeFilter.filters.map(s=>Ca(s)),function(u){switch(u){case"AND":return"and";case"OR":return"or";default:return H()}}(i.compositeFilter.op))}(l):H();var i}function ja(l){return vc[l]}function tg(l){return fl[l]}function Td(l){return Gi[l]}function Da(l){return{fieldPath:l.canonicalString()}}function za(l){return mn.fromServerFormat(l.fieldPath)}function Kh(l){return l instanceof Ur?function(i){if("=="===i.op){if(Et(i.value))return{unaryFilter:{field:Da(i.field),op:"IS_NAN"}};if(wt(i.value))return{unaryFilter:{field:Da(i.field),op:"IS_NULL"}}}else if("!="===i.op){if(Et(i.value))return{unaryFilter:{field:Da(i.field),op:"IS_NOT_NAN"}};if(wt(i.value))return{unaryFilter:{field:Da(i.field),op:"IS_NOT_NULL"}}}return{fieldFilter:{field:Da(i.field),op:tg(i.op),value:i.value}}}(l):l instanceof Ti?function(i){const s=i.getFilters().map(u=>Kh(u));return 1===s.length?s[0]:{compositeFilter:{op:Td(i.op),filters:s}}}(l):H()}function bd(l){const n=[];return l.fields.forEach(i=>n.push(i.canonicalString())),{fieldPaths:n}}function E(l){return l.length>=4&&"projects"===l.get(0)&&"databases"===l.get(2)}class T{constructor(n,i,s,u,p=gn.min(),_=gn.min(),R=oi.EMPTY_BYTE_STRING,k=null){this.target=n,this.targetId=i,this.purpose=s,this.sequenceNumber=u,this.snapshotVersion=p,this.lastLimboFreeSnapshotVersion=_,this.resumeToken=R,this.expectedCount=k}withSequenceNumber(n){return new T(this.target,this.targetId,this.purpose,n,this.snapshotVersion,this.lastLimboFreeSnapshotVersion,this.resumeToken,this.expectedCount)}withResumeToken(n,i){return new T(this.target,this.targetId,this.purpose,this.sequenceNumber,i,this.lastLimboFreeSnapshotVersion,n,null)}withExpectedCount(n){return new T(this.target,this.targetId,this.purpose,this.sequenceNumber,this.snapshotVersion,this.lastLimboFreeSnapshotVersion,this.resumeToken,n)}withLastLimboFreeSnapshotVersion(n){return new T(this.target,this.targetId,this.purpose,this.sequenceNumber,this.snapshotVersion,n,this.resumeToken,this.expectedCount)}}class O{constructor(n){this.ct=n}}function Vr(l){const n=Aa({parent:l.parent,structuredQuery:l.structuredQuery});return"LAST"===l.limitType?So(n,n.limit,"L"):n}class Ta{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(le(n.integerValue));else if("doubleValue"in n){const s=le(n.doubleValue);isNaN(s)?this.Et(i,13):(this.Et(i,15),hn(s)?i.dt(0):i.dt(s))}else if("timestampValue"in n){let s=n.timestampValue;this.Et(i,20),"string"==typeof s&&(s=he(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(W(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?cn(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)):H()}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),en.fromName(n).path.forEach(s=>{this.Et(i,60),this.St(s,i)})}Et(n,i){n.dt(i)}Vt(n){n.dt(2)}}Ta.bt=new Ta;class Ts{constructor(){this._n=new Cc}addToCollectionParentIndex(n,i){return this._n.add(i),pe.resolve()}getCollectionParents(n,i){return pe.resolve(this._n.getEntries(i))}addFieldIndex(n,i){return pe.resolve()}deleteFieldIndex(n,i){return pe.resolve()}deleteAllFieldIndexes(n){return pe.resolve()}createTargetIndexes(n,i){return pe.resolve()}getDocumentsMatchingTarget(n,i){return pe.resolve(null)}getIndexType(n,i){return pe.resolve(0)}getFieldIndexes(n,i){return pe.resolve([])}getNextCollectionGroupToUpdate(n){return pe.resolve(null)}getMinOffset(n,i){return pe.resolve(Pr.min())}getMinOffsetFromCollectionGroup(n,i){return pe.resolve(Pr.min())}updateCollectionGroup(n,i,s){return pe.resolve()}updateIndexEntries(n,i){return pe.resolve()}}class Cc{constructor(){this.index={}}add(n){const i=n.lastSegment(),s=n.popLast(),u=this.index[i]||new Hn(Mn.comparator),p=!u.has(s);return this.index[i]=u.add(s),p}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 Hn(Mn.comparator)).toArray()}}new Uint8Array(0);class gr{constructor(n,i,s){this.cacheSizeCollectionThreshold=n,this.percentileToCollect=i,this.maximumSequenceNumbersToCollect=s}static withCacheSize(n){return new gr(n,gr.DEFAULT_COLLECTION_PERCENTILE,gr.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT)}}gr.DEFAULT_COLLECTION_PERCENTILE=10,gr.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT=1e3,gr.DEFAULT=new gr(41943040,gr.DEFAULT_COLLECTION_PERCENTILE,gr.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT),gr.DISABLED=new gr(-1,0,0);class _l{constructor(n){this.On=n}next(){return this.On+=2,this.On}static Nn(){return new _l(0)}static Ln(){return new _l(-1)}}class na{constructor(){this.changes=new $o(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,jr.newInvalidDocument(n).setReadTime(i))}getEntry(n,i){this.assertNotApplied();const s=this.changes.get(i);return void 0!==s?pe.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 bs{constructor(n,i){this.overlayedDocument=n,this.mutatedFields=i}}class oa{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&&zo(s.mutation,u,Ci.empty(),pn.now()),u))}getDocuments(n,i){return this.remoteDocumentCache.getEntries(n,i).next(s=>this.getLocalViewOfDocuments(n,s,Hr()).next(()=>s))}getLocalViewOfDocuments(n,i,s=Hr()){const u=bi();return this.populateOverlays(n,u,i).next(()=>this.computeViews(n,i,u,s).next(p=>{let _=zi();return p.forEach((R,k)=>{_=_.insert(R,k.overlayedDocument)}),_}))}getOverlayedDocuments(n,i){const s=bi();return this.populateOverlays(n,s,i).next(()=>this.computeViews(n,i,s,Hr()))}populateOverlays(n,i,s){const u=[];return s.forEach(p=>{i.has(p)||u.push(p)}),this.documentOverlayCache.getOverlays(n,u).next(p=>{p.forEach((_,R)=>{i.set(_,R)})})}computeViews(n,i,s,u){let p=Rr();const _=jo(),R=jo();return i.forEach((k,q)=>{const _e=s.get(q.key);u.has(q.key)&&(void 0===_e||_e.mutation instanceof lo)?p=p.insert(q.key,q):void 0!==_e?(_.set(q.key,_e.mutation.getFieldMask()),zo(_e.mutation,q,_e.mutation.getFieldMask(),pn.now())):_.set(q.key,Ci.empty())}),this.recalculateAndSaveOverlays(n,p).next(k=>(k.forEach((q,_e)=>_.set(q,_e)),i.forEach((q,_e)=>{var je;return R.set(q,new bs(_e,null!==(je=_.get(q))&&void 0!==je?je:null))}),R))}recalculateAndSaveOverlays(n,i){const s=jo();let u=new Lr((_,R)=>_-R),p=Hr();return this.mutationQueue.getAllMutationBatchesAffectingDocumentKeys(n,i).next(_=>{for(const R of _)R.keys().forEach(k=>{const q=i.get(k);if(null===q)return;let _e=s.get(k)||Ci.empty();_e=R.applyToLocalView(q,_e),s.set(k,_e);const je=(u.get(R.batchId)||Hr()).add(k);u=u.insert(R.batchId,je)})}).next(()=>{const _=[],R=u.getReverseIterator();for(;R.hasNext();){const k=R.getNext(),q=k.key,_e=k.value,je=La();_e.forEach(pt=>{if(!p.has(pt)){const Ht=ma(i.get(pt),s.get(pt));null!==Ht&&je.set(pt,Ht),p=p.add(pt)}}),_.push(this.documentOverlayCache.saveOverlays(n,q,je))}return pe.waitFor(_)}).next(()=>s)}recalculateAndSaveOverlaysForDocumentKeys(n,i){return this.remoteDocumentCache.getEntries(n,i).next(s=>this.recalculateAndSaveOverlays(n,s))}getDocumentsMatchingQuery(n,i,s,u){return en.isDocumentKey((_=i).path)&&null===_.collectionGroup&&0===_.filters.length?this.getDocumentsMatchingDocumentQuery(n,i.path):function ke(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(p=>{const _=u-p.size>0?this.documentOverlayCache.getOverlaysForCollectionGroup(n,i,s.largestBatchId,u-p.size):pe.resolve(bi());let R=-1,k=p;return _.next(q=>pe.forEach(q,(_e,je)=>(R{k=k.insert(_e,pt)}))).next(()=>this.populateOverlays(n,q,p)).next(()=>this.computeViews(n,k,q,Hr())).next(_e=>({batchId:R,changes:po(_e)})))})}getDocumentsMatchingDocumentQuery(n,i){return this.getDocument(n,new en(i)).next(s=>{let u=zi();return s.isFoundDocument()&&(u=u.insert(s.key,s)),u})}getDocumentsMatchingCollectionGroupQuery(n,i,s,u){const p=i.collectionGroup;let _=zi();return this.indexManager.getCollectionParents(n,p).next(R=>pe.forEach(R,k=>{const q=(je=i,pt=k.child(p),new K(pt,null,je.explicitOrderBy.slice(),je.filters.slice(),je.limit,je.limitType,je.startAt,je.endAt));var je,pt;return this.getDocumentsMatchingCollectionQuery(n,q,s,u).next(_e=>{_e.forEach((je,pt)=>{_=_.insert(je,pt)})})}).next(()=>_))}getDocumentsMatchingCollectionQuery(n,i,s,u){let p;return this.documentOverlayCache.getOverlaysForCollection(n,i.path,s.largestBatchId).next(_=>(p=_,this.remoteDocumentCache.getDocumentsMatchingQuery(n,i,s,p,u))).next(_=>{p.forEach((k,q)=>{const _e=q.getKey();null===_.get(_e)&&(_=_.insert(_e,jr.newInvalidDocument(_e)))});let R=zi();return _.forEach((k,q)=>{const _e=p.get(k);void 0!==_e&&zo(_e.mutation,q,Ci.empty(),pn.now()),Gs(i,q)&&(R=R.insert(k,q))}),R})}}class og{constructor(n){this.serializer=n,this.cr=new Map,this.lr=new Map}getBundleMetadata(n,i){return pe.resolve(this.cr.get(i))}saveBundleMetadata(n,i){return this.cr.set(i.id,{id:(u=i).id,version:u.version,createTime:Mi(u.createTime)}),pe.resolve();var u}getNamedQuery(n,i){return pe.resolve(this.lr.get(i))}saveNamedQuery(n,i){return this.lr.set(i.name,{name:(u=i).name,query:Vr(u.bundledQuery),readTime:Mi(u.readTime)}),pe.resolve();var u}}class Sc{constructor(){this.overlays=new Lr(en.comparator),this.hr=new Map}getOverlay(n,i){return pe.resolve(this.overlays.get(i))}getOverlays(n,i){const s=bi();return pe.forEach(i,u=>this.getOverlay(n,u).next(p=>{null!==p&&s.set(u,p)})).next(()=>s)}saveOverlays(n,i,s){return s.forEach((u,p)=>{this.ht(n,i,p)}),pe.resolve()}removeOverlaysForBatchId(n,i,s){const u=this.hr.get(s);return void 0!==u&&(u.forEach(p=>this.overlays=this.overlays.remove(p)),this.hr.delete(s)),pe.resolve()}getOverlaysForCollection(n,i,s){const u=bi(),p=i.length+1,_=new en(i.child("")),R=this.overlays.getIteratorFrom(_);for(;R.hasNext();){const k=R.getNext().value,q=k.getKey();if(!i.isPrefixOf(q.path))break;q.path.length===p&&k.largestBatchId>s&&u.set(k.getKey(),k)}return pe.resolve(u)}getOverlaysForCollectionGroup(n,i,s,u){let p=new Lr((q,_e)=>q-_e);const _=this.overlays.getIterator();for(;_.hasNext();){const q=_.getNext().value;if(q.getKey().getCollectionGroup()===i&&q.largestBatchId>s){let _e=p.get(q.largestBatchId);null===_e&&(_e=bi(),p=p.insert(q.largestBatchId,_e)),_e.set(q.getKey(),q)}}const R=bi(),k=p.getIterator();for(;k.hasNext()&&(k.getNext().value.forEach((q,_e)=>R.set(q,_e)),!(R.size()>=u)););return pe.resolve(R)}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 p=this.hr.get(i);void 0===p&&(p=Hr(),this.hr.set(i,p)),this.hr.set(i,p.add(s.key))}}class xd{constructor(){this.Pr=new Hn(To.Ir),this.Tr=new Hn(To.Er)}isEmpty(){return this.Pr.isEmpty()}addReference(n,i){const s=new To(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 To(n,i))}Rr(n,i){n.forEach(s=>this.removeReference(s,i))}Vr(n){const i=new en(new Mn([])),s=new To(i,n),u=new To(i,n+1),p=[];return this.Tr.forEachInRange([s,u],_=>{this.Ar(_),p.push(_.key)}),p}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 en(new Mn([])),s=new To(i,n),u=new To(i,n+1);let p=Hr();return this.Tr.forEachInRange([s,u],_=>{p=p.add(_.key)}),p}containsKey(n){const i=new To(n,0),s=this.Pr.firstAfterOrEqual(i);return null!==s&&n.isEqual(s.key)}}class To{constructor(n,i){this.key=n,this.pr=i}static Ir(n,i){return en.comparator(n.key,i.key)||nt(n.pr,i.pr)}static Er(n,i){return nt(n.pr,i.pr)||en.comparator(n.key,i.key)}}class Od{constructor(n,i){this.indexManager=n,this.referenceDelegate=i,this.mutationQueue=[],this.yr=1,this.wr=new Hn(To.Ir)}checkEmpty(n){return pe.resolve(0===this.mutationQueue.length)}addMutationBatch(n,i,s,u){const p=this.yr;this.yr++;const _=new F(p,i,s,u);this.mutationQueue.push(_);for(const R of u)this.wr=this.wr.add(new To(R.key,p)),this.indexManager.addToCollectionParentIndex(n,R.key.path.popLast());return pe.resolve(_)}lookupMutationBatch(n,i){return pe.resolve(this.Sr(i))}getNextMutationBatchAfterBatchId(n,i){const u=this.br(i+1),p=u<0?0:u;return pe.resolve(this.mutationQueue.length>p?this.mutationQueue[p]:null)}getHighestUnacknowledgedBatchId(){return pe.resolve(0===this.mutationQueue.length?-1:this.yr-1)}getAllMutationBatches(n){return pe.resolve(this.mutationQueue.slice())}getAllMutationBatchesAffectingDocumentKey(n,i){const s=new To(i,0),u=new To(i,Number.POSITIVE_INFINITY),p=[];return this.wr.forEachInRange([s,u],_=>{const R=this.Sr(_.pr);p.push(R)}),pe.resolve(p)}getAllMutationBatchesAffectingDocumentKeys(n,i){let s=new Hn(nt);return i.forEach(u=>{const p=new To(u,0),_=new To(u,Number.POSITIVE_INFINITY);this.wr.forEachInRange([p,_],R=>{s=s.add(R.pr)})}),pe.resolve(this.Dr(s))}getAllMutationBatchesAffectingQuery(n,i){const s=i.path,u=s.length+1;let p=s;en.isDocumentKey(p)||(p=p.child(""));const _=new To(new en(p),0);let R=new Hn(nt);return this.wr.forEachWhile(k=>{const q=k.key.path;return!!s.isPrefixOf(q)&&(q.length===u&&(R=R.add(k.pr)),!0)},_),pe.resolve(this.Dr(R))}Dr(n){const i=[];return n.forEach(s=>{const u=this.Sr(s);null!==u&&i.push(u)}),i}removeMutationBatch(n,i){X(0===this.Cr(i.batchId,"removed")),this.mutationQueue.shift();let s=this.wr;return pe.forEach(i.mutations,u=>{const p=new To(u.key,i.batchId);return s=s.delete(p),this.referenceDelegate.markPotentiallyOrphaned(n,u.key)}).next(()=>{this.wr=s})}Mn(n){}containsKey(n,i){const s=new To(i,0),u=this.wr.firstAfterOrEqual(s);return pe.resolve(i.isEqual(u&&u.key))}performConsistencyCheck(n){return pe.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 ku{constructor(n){this.vr=n,this.docs=new Lr(en.comparator),this.size=0}setIndexManager(n){this.indexManager=n}addEntry(n,i){const s=i.key,u=this.docs.get(s),p=u?u.size:0,_=this.vr(i);return this.docs=this.docs.insert(s,{document:i.mutableCopy(),size:_}),this.size+=_-p,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 pe.resolve(s?s.document.mutableCopy():jr.newInvalidDocument(i))}getEntries(n,i){let s=Rr();return i.forEach(u=>{const p=this.docs.get(u);s=s.insert(u,p?p.document.mutableCopy():jr.newInvalidDocument(u))}),pe.resolve(s)}getDocumentsMatchingQuery(n,i,s,u){let p=Rr();const _=i.path,R=new en(_.child("")),k=this.docs.getIteratorFrom(R);for(;k.hasNext();){const{key:q,value:{document:_e}}=k.getNext();if(!_.isPrefixOf(q.path))break;q.path.length>_.length+1||cr(new Pr((l=_e).readTime,l.key,-1),s)<=0||(u.has(_e.key)||Gs(i,_e))&&(p=p.insert(_e.key,_e.mutableCopy()))}var l;return pe.resolve(p)}getAllFromCollectionGroup(n,i,s,u){H()}Fr(n,i){return pe.forEach(this.docs,s=>i(s))}newChangeBuffer(n){return new Nd(this)}getSize(n){return pe.resolve(this.size)}}class Nd extends na{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)}),pe.waitFor(i)}getFromCache(n,i){return this.ar.getEntry(n,i)}getAllFromCache(n,i){return this.ar.getEntries(n,i)}}class Rc{constructor(n){this.persistence=n,this.Mr=new $o(i=>xs(i),Ao),this.lastRemoteSnapshotVersion=gn.min(),this.highestTargetId=0,this.Or=0,this.Nr=new xd,this.targetCount=0,this.Lr=_l.Nn()}forEachTarget(n,i){return this.Mr.forEach((s,u)=>i(u)),pe.resolve()}getLastRemoteSnapshotVersion(n){return pe.resolve(this.lastRemoteSnapshotVersion)}getHighestSequenceNumber(n){return pe.resolve(this.Or)}allocateTargetId(n){return this.highestTargetId=this.Lr.next(),pe.resolve(this.highestTargetId)}setTargetsMetadata(n,i,s){return s&&(this.lastRemoteSnapshotVersion=s),i>this.Or&&(this.Or=i),pe.resolve()}qn(n){this.Mr.set(n.target,n);const i=n.targetId;i>this.highestTargetId&&(this.Lr=new _l(i),this.highestTargetId=i),n.sequenceNumber>this.Or&&(this.Or=n.sequenceNumber)}addTargetData(n,i){return this.qn(i),this.targetCount+=1,pe.resolve()}updateTargetData(n,i){return this.qn(i),pe.resolve()}removeTargetData(n,i){return this.Mr.delete(i.target),this.Nr.Vr(i.targetId),this.targetCount-=1,pe.resolve()}removeTargets(n,i,s){let u=0;const p=[];return this.Mr.forEach((_,R)=>{R.sequenceNumber<=i&&null===s.get(R.targetId)&&(this.Mr.delete(_),p.push(this.removeMatchingKeysForTargetId(n,R.targetId)),u++)}),pe.waitFor(p).next(()=>u)}getTargetCount(n){return pe.resolve(this.targetCount)}getTargetData(n,i){const s=this.Mr.get(i)||null;return pe.resolve(s)}addMatchingKeys(n,i,s){return this.Nr.dr(i,s),pe.resolve()}removeMatchingKeys(n,i,s){this.Nr.Rr(i,s);const u=this.persistence.referenceDelegate,p=[];return u&&i.forEach(_=>{p.push(u.markPotentiallyOrphaned(n,_))}),pe.waitFor(p)}removeMatchingKeysForTargetId(n,i){return this.Nr.Vr(i),pe.resolve()}getMatchingKeysForTargetId(n,i){const s=this.Nr.gr(i);return pe.resolve(s)}containsKey(n,i){return pe.resolve(this.Nr.containsKey(i))}}class Mc{constructor(n,i){this.Br={},this.overlays={},this.kr=new _n(0),this.qr=!1,this.qr=!0,this.referenceDelegate=n(this),this.Qr=new Rc(this),this.indexManager=new Ts,this.remoteDocumentCache=new ku(s=>this.referenceDelegate.Kr(s)),this.serializer=new O(i),this.$r=new og(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 Sc,this.overlays[n.toKey()]=i),i}getMutationQueue(n,i){let s=this.Br[n.toKey()];return s||(s=new Od(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){tt("MemoryPersistence","Starting transaction:",n);const u=new Jh(this.kr.next());return this.referenceDelegate.Ur(),s(u).next(p=>this.referenceDelegate.Wr(u).next(()=>p)).toPromise().then(p=>(u.raiseOnCommittedEvent(),p))}Gr(n,i){return pe.or(Object.values(this.Br).map(s=>()=>s.containsKey(n,i)))}}class Jh extends ii{constructor(n){super(),this.currentSequenceNumber=n}}class Sa{constructor(n){this.persistence=n,this.zr=new xd,this.jr=null}static Hr(n){return new Sa(n)}get Jr(){if(this.jr)return this.jr;throw H()}addReference(n,i,s){return this.zr.addReference(s,i),this.Jr.delete(s.toString()),pe.resolve()}removeReference(n,i,s){return this.zr.removeReference(s,i),this.Jr.add(s.toString()),pe.resolve()}markPotentiallyOrphaned(n,i){return this.Jr.add(i.toString()),pe.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(p=>this.Jr.add(p.toString()))}).next(()=>s.removeTargetData(n,i))}Ur(){this.jr=new Set}Wr(n){const i=this.persistence.getRemoteDocumentCache().newChangeBuffer();return pe.forEach(this.Jr,s=>{const u=en.fromPath(s);return this.Yr(n,u).next(p=>{p||i.removeEntry(u,gn.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 pe.or([()=>pe.resolve(this.zr.containsKey(i)),()=>this.persistence.getTargetCache().containsKey(n,i),()=>this.persistence.Gr(n,i)])}}class Fi{constructor(n,i,s,u){this.targetId=n,this.fromCache=i,this.qi=s,this.Qi=u}static Ki(n,i){let s=Hr(),u=Hr();for(const p of i.docChanges)switch(p.type){case 0:s=s.add(p.doc.key);break;case 1:u=u.add(p.doc.key)}return new Fi(n,i.fromCache,s,u)}}class ef{constructor(){this._documentReadCount=0}get documentReadCount(){return this._documentReadCount}incrementDocumentReadCount(n){this._documentReadCount+=n}}class tf{constructor(){this.$i=!1,this.Ui=!1,this.Wi=100,this.Gi=(0,Se.nr)()?8:function ut(l){const n=l.match(/Android ([\d.]+)/i),i=n?n[1].split(".").slice(0,2).join("."):"-1";return Number(i)}((0,Se.ZQ)())>0?6:4}initialize(n,i){this.zi=n,this.indexManager=i,this.$i=!0}getDocumentsMatchingQuery(n,i,s,u){const p={result:null};return this.ji(n,i).next(_=>{p.result=_}).next(()=>{if(!p.result)return this.Hi(n,i,u,s).next(_=>{p.result=_})}).next(()=>{if(p.result)return;const _=new ef;return this.Ji(n,i,_).next(R=>{if(p.result=R,this.Ui)return this.Yi(n,i,_,R.size)})}).next(()=>p.result)}Yi(n,i,s,u){return s.documentReadCountthis.Gi*u?(vn()<=Je.$b.DEBUG&&tt("QueryEngine","The SDK decides to create cache indexes for query:",_s(i),"as using cache indexes may help improve performance."),this.indexManager.createTargetIndexes(n,Xn(i))):pe.resolve())}ji(n,i){if(G(i))return pe.resolve(null);let s=Xn(i);return this.indexManager.getIndexType(n,s).next(u=>0===u?null:(null!==i.limit&&1===u&&(i=So(i,null,"F"),s=Xn(i)),this.indexManager.getDocumentsMatchingTarget(n,s).next(p=>{const _=Hr(...p);return this.zi.getDocuments(n,_).next(R=>this.indexManager.getMinOffset(n,s).next(k=>{const q=this.Zi(i,R);return this.Xi(i,q,_,k.readTime)?this.ji(n,So(i,null,"F")):this.es(n,q,i,k)}))})))}Hi(n,i,s,u){return G(i)||u.isEqual(gn.min())?pe.resolve(null):this.zi.getDocuments(n,s).next(p=>{const _=this.Zi(i,p);return this.Xi(i,_,s,u)?pe.resolve(null):(vn()<=Je.$b.DEBUG&&tt("QueryEngine","Re-using previous result from %s to execute query: %s",u.toString(),_s(i)),this.es(n,_,i,function mr(l,n){const i=l.toTimestamp().seconds,s=l.toTimestamp().nanoseconds+1,u=gn.fromTimestamp(1e9===s?new pn(i+1,0):new pn(i,s));return new Pr(u,en.empty(),n)}(u,-1)).next(R=>R))})}Zi(n,i){let s=new Hn(ul(n));return i.forEach((u,p)=>{Gs(n,p)&&(s=s.add(p))}),s}Xi(n,i,s,u){if(null===n.limit)return!1;if(s.size!==i.size)return!0;const p="F"===n.limitType?i.last():i.first();return!!p&&(p.hasPendingWrites||p.version.compareTo(u)>0)}Ji(n,i,s){return vn()<=Je.$b.DEBUG&&tt("QueryEngine","Using full collection scan to execute query:",_s(i)),this.zi.getDocumentsMatchingQuery(n,i,Pr.min(),s)}es(n,i,s,u){return this.zi.getDocumentsMatchingQuery(n,s,u).next(p=>(i.forEach(_=>{p=p.insert(_.key,_)}),p))}}class sg{constructor(n,i,s,u){this.persistence=n,this.ts=i,this.serializer=u,this.ns=new Lr(nt),this.rs=new $o(p=>xs(p),Ao),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 oa(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 Fd(l,n){return Bu.apply(this,arguments)}function Bu(){return(Bu=(0,ue.A)(function*(l,n){const i=se(l);return yield i.persistence.runTransaction("Handle user change","readonly",s=>{let u;return i.mutationQueue.getAllMutationBatches(s).next(p=>(u=p,i._s(n),i.mutationQueue.getAllMutationBatches(s))).next(p=>{const _=[],R=[];let k=Hr();for(const q of u){_.push(q.batchId);for(const _e of q.mutations)k=k.add(_e.key)}for(const q of p){R.push(q.batchId);for(const _e of q.mutations)k=k.add(_e.key)}return i.localDocuments.getDocuments(s,k).next(q=>({us:q,removedBatchIds:_,addedBatchIds:R}))})})})).apply(this,arguments)}function Vs(l){const n=se(l);return n.persistence.runTransaction("Get last remote snapshot version","readonly",i=>n.Qr.getLastRemoteSnapshotVersion(i))}function xc(l,n){const i=se(l);return i.persistence.runTransaction("Get next mutation batch","readonly",s=>(void 0===n&&(n=-1),i.mutationQueue.getNextMutationBatchAfterBatchId(s,n)))}function aa(l,n,i){return Oc.apply(this,arguments)}function Oc(){return(Oc=(0,ue.A)(function*(l,n,i){const s=se(l),u=s.ns.get(n),p=i?"readwrite":"readwrite-primary";try{i||(yield s.persistence.runTransaction("Release target",p,_=>s.persistence.referenceDelegate.removeTarget(_,u)))}catch(_){if(!He(_))throw _;tt("LocalStore",`Failed to update sequence numbers for target ${n}: ${_}`)}s.ns=s.ns.remove(n),s.rs.delete(u.target)})).apply(this,arguments)}function El(l,n,i){const s=se(l);let u=gn.min(),p=Hr();return s.persistence.runTransaction("Execute query","readwrite",_=>function(k,q,_e){const je=se(k),pt=je.rs.get(_e);return void 0!==pt?pe.resolve(je.ns.get(pt)):je.Qr.getTargetData(q,_e)}(s,_,Xn(n)).next(R=>{if(R)return u=R.lastLimboFreeSnapshotVersion,s.Qr.getMatchingKeysForTargetId(_,R.targetId).next(k=>{p=k})}).next(()=>s.ts.getDocumentsMatchingQuery(_,n,i?u:gn.min(),i?p:Hr())).next(R=>(function Al(l,n,i){let s=l.ss.get(n)||gn.min();i.forEach((u,p)=>{p.readTime.compareTo(s)>0&&(s=p.readTime)}),l.ss.set(n,s)}(s,function fa(l){return l.collectionGroup||(l.path.length%2==1?l.path.lastSegment():l.path.get(l.path.length-2))}(n),R),{documents:R,hs:p})))}class zu{constructor(){this.activeTargetIds=function Ws(){return dl}()}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 af{constructor(){this.no=new zu,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 zu,Promise.resolve()}handleUserChange(n,i,s){}setOnlineState(n){}shutdown(){}writeSequenceNumber(n){}notifyBundleLoaded(n){}}class lf{io(n){}shutdown(){}}class Bd{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(){tt("ConnectivityMonitor","Network connectivity changed: AVAILABLE");for(const n of this.uo)n(0)}ao(){tt("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 Lc=null;function ws(){return null===Lc?Lc=268435456+Math.round(2147483648*Math.random()):Lc++,"0x"+Lc.toString(16)}const hv={BatchGetDocuments:"batchGet",Commit:"commit",RunQuery:"runQuery",RunAggregationQuery:"runAggregationQuery"};class Hu{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 Mo="WebChannelConnection";class Ud extends class{constructor(i){this.databaseInfo=i,this.databaseId=i.databaseId;const s=i.ssl?"https":"http",u=encodeURIComponent(this.databaseId.projectId),p=encodeURIComponent(this.databaseId.database);this.wo=s+"://"+i.host,this.So=`projects/${u}/databases/${p}`,this.bo="(default)"===this.databaseId.database?`project_id=${u}`:`project_id=${u}&database_id=${p}`}get Do(){return!1}Co(i,s,u,p,_){const R=ws(),k=this.vo(i,s.toUriEncodedString());tt("RestConnection",`Sending RPC '${i}' ${R}:`,k,u);const q={"google-cloud-resource-prefix":this.So,"x-goog-request-params":this.bo};return this.Fo(q,p,_),this.Mo(i,k,q,u).then(_e=>(tt("RestConnection",`Received RPC '${i}' ${R}: `,_e),_e),_e=>{throw dt("RestConnection",`RPC '${i}' ${R} failed with error: `,_e,"url: ",k,"request:",u),_e})}xo(i,s,u,p,_,R){return this.Co(i,s,u,p,_)}Fo(i,s,u){i["X-Goog-Api-Client"]="gl-js/ fire/"+at,i["Content-Type"]="text/plain",this.databaseInfo.appId&&(i["X-Firebase-GMPID"]=this.databaseInfo.appId),s&&s.headers.forEach((p,_)=>i[_]=p),u&&u.headers.forEach((p,_)=>i[_]=p)}vo(i,s){return`${this.wo}/v1/${s}:${hv[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 p=ws();return new Promise((_,R)=>{const k=new St;k.setWithCredentials(!0),k.listenOnce(yt.COMPLETE,()=>{try{switch(k.getLastErrorCode()){case mt.NO_ERROR:const _e=k.getResponseJson();tt(Mo,`XHR for RPC '${n}' ${p} received:`,JSON.stringify(_e)),_(_e);break;case mt.TIMEOUT:tt(Mo,`RPC '${n}' ${p} timed out`),R(new Le(ve.DEADLINE_EXCEEDED,"Request time out"));break;case mt.HTTP_ERROR:const je=k.getStatus();if(tt(Mo,`RPC '${n}' ${p} failed with status:`,je,"response text:",k.getResponseText()),je>0){let pt=k.getResponseJson();Array.isArray(pt)&&(pt=pt[0]);const Ht=null==pt?void 0:pt.error;if(Ht&&Ht.status&&Ht.message){const An=function(Sn){const hr=Sn.toLowerCase().replace(/_/g,"-");return Object.values(ve).indexOf(hr)>=0?hr:ve.UNKNOWN}(Ht.status);R(new Le(An,Ht.message))}else R(new Le(ve.UNKNOWN,"Server responded with status "+k.getStatus()))}else R(new Le(ve.UNAVAILABLE,"Connection failed."));break;default:H()}}finally{tt(Mo,`RPC '${n}' ${p} completed.`)}});const q=JSON.stringify(u);tt(Mo,`RPC '${n}' ${p} sending request:`,u),k.send(i,"POST",q,s,15)})}Oo(n,i,s){const u=ws(),p=[this.wo,"/","google.firestore.v1.Firestore","/",n,"/channel"],_=Ue(),R=ge(),k={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},q=this.longPollingOptions.timeoutSeconds;void 0!==q&&(k.longPollingTimeout=Math.round(1e3*q)),this.useFetchStreams&&(k.xmlHttpFactory=new _t({})),this.Fo(k.initMessageHeaders,i,s),k.encodeInitMessageHeaders=!0;const _e=p.join("");tt(Mo,`Creating RPC '${n}' stream ${u}: ${_e}`,k);const je=_.createWebChannel(_e,k);let pt=!1,Ht=!1;const An=new Hu({lo:Sn=>{Ht?tt(Mo,`Not sending because RPC '${n}' stream ${u} is closed:`,Sn):(pt||(tt(Mo,`Opening RPC '${n}' stream ${u} transport.`),je.open(),pt=!0),tt(Mo,`RPC '${n}' stream ${u} sending:`,Sn),je.send(Sn))},ho:()=>je.close()}),kn=(Sn,hr,Mr)=>{Sn.listen(hr,_r=>{try{Mr(_r)}catch(Yr){setTimeout(()=>{throw Yr},0)}})};return kn(je,Tt.EventType.OPEN,()=>{Ht||(tt(Mo,`RPC '${n}' stream ${u} transport opened.`),An.mo())}),kn(je,Tt.EventType.CLOSE,()=>{Ht||(Ht=!0,tt(Mo,`RPC '${n}' stream ${u} transport closed`),An.po())}),kn(je,Tt.EventType.ERROR,Sn=>{Ht||(Ht=!0,dt(Mo,`RPC '${n}' stream ${u} transport errored:`,Sn),An.po(new Le(ve.UNAVAILABLE,"The operation could not be completed")))}),kn(je,Tt.EventType.MESSAGE,Sn=>{var hr;if(!Ht){const Mr=Sn.data[0];X(!!Mr);const Yr=Mr.error||(null===(hr=Mr[0])||void 0===hr?void 0:hr.error);if(Yr){tt(Mo,`RPC '${n}' stream ${u} received error:`,Yr);const Li=Yr.status;let fi=function(It){const kt=ar[It];if(void 0!==kt)return Xr(kt)}(Li),xt=Yr.message;void 0===fi&&(fi=ve.INTERNAL,xt="Unknown error status: "+Li+" with message "+Yr.message),Ht=!0,An.po(new Le(fi,xt)),je.close()}else tt(Mo,`RPC '${n}' stream ${u} received:`,Mr),An.yo(Mr)}}),kn(R,Ye.STAT_EVENT,Sn=>{Sn.stat===Me.PROXY?tt(Mo,`RPC '${n}' stream ${u} detected buffering proxy`):Sn.stat===Me.NOPROXY&&tt(Mo,`RPC '${n}' stream ${u} detected no buffering proxy`)}),setTimeout(()=>{An.fo()},0),An}}function Tl(){return typeof document<"u"?document:null}function Vc(l){return new Co(l,!0)}class tu{constructor(n,i,s=1e3,u=1.5,p=6e4){this.oi=n,this.timerId=i,this.No=s,this.Lo=u,this.Bo=p,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&&tt("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 $d{constructor(n,i,s,u,p,_,R,k){this.oi=n,this.Go=s,this.zo=u,this.connection=p,this.authCredentialsProvider=_,this.appCheckCredentialsProvider=R,this.listener=k,this.state=0,this.jo=0,this.Ho=null,this.Jo=null,this.stream=null,this.Yo=new tu(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,ue.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,ue.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,ue.A)(function*(){s.s_(),s.o_(),s.Yo.cancel(),s.jo++,4!==n?s.Yo.reset():i&&i.code===ve.RESOURCE_EXHAUSTED?(on(i.toString()),on("Using maximum backoff delay to prevent overloading the backend."),s.Yo.Ko()):i&&i.code===ve.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 Le(ve.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,ue.A)(function*(){n.state=0,n.start()}))}c_(n){return tt("PersistentStream",`close with error: ${n}`),this.stream=null,this.close(4,n)}a_(n){return i=>{this.oi.enqueueAndForget(()=>this.jo===n?i():(tt("PersistentStream","stream callback skipped by getCloseGuardedDispatcher."),Promise.resolve()))}}}class uf extends $d{constructor(n,i,s,u,p,_){super(n,"listen_stream_connection_backoff","listen_stream_idle","health_check_timeout",i,s,u,_),this.serializer=p}l_(n,i){return this.connection.Oo("Listen",n,i)}onMessage(n){this.Yo.reset();const i=function Wl(l,n){let i;if("targetChange"in n){const s="NO_CHANGE"===(q=n.targetChange.targetChangeType||"NO_CHANGE")?0:"ADD"===q?1:"REMOVE"===q?2:"CURRENT"===q?3:"RESET"===q?4:H(),u=n.targetChange.targetIds||[],p=function(q,_e){return q.useProto3Json?(X(void 0===_e||"string"==typeof _e),oi.fromBase64String(_e||"")):(X(void 0===_e||_e instanceof Buffer||_e instanceof Uint8Array),oi.fromUint8Array(_e||new Uint8Array))}(l,n.targetChange.resumeToken),_=n.targetChange.cause,R=_&&function(q){const _e=void 0===q.code?ve.UNKNOWN:Xr(q.code);return new Le(_e,q.message||"")}(_);i=new _i(s,u,p,R||null)}else if("documentChange"in n){const s=n.documentChange,u=ns(l,s.document.name),p=Mi(s.document.updateTime),_=s.document.createTime?Mi(s.document.createTime):gn.min(),R=new Vn({mapValue:{fields:s.document.fields}}),k=jr.newFoundDocument(u,p,_,R);i=new Qi(s.targetIds||[],s.removedTargetIds||[],k.key,k)}else if("documentDelete"in n){const s=n.documentDelete,u=ns(l,s.document),p=s.readTime?Mi(s.readTime):gn.min(),_=jr.newNoDocument(u,p);i=new Qi([],s.removedTargetIds||[],_.key,_)}else if("documentRemove"in n){const s=n.documentRemove,u=ns(l,s.document);i=new Qi([],s.removedTargetIds||[],u,null)}else{if(!("filter"in n))return H();{const s=n.filter,{count:u=0,unchangedNames:p}=s,_=new wn(u,p);i=new Ho(s.targetId,_)}}var q;return i}(this.serializer,n),s=function(p){if(!("targetChange"in p))return gn.min();const _=p.targetChange;return _.targetIds&&_.targetIds.length?gn.min():_.readTime?Mi(_.readTime):gn.min()}(n);return this.listener.h_(i,s)}P_(n){const i={};i.database=Ia(this.serializer),i.addTarget=function(p,_){let R;const k=_.target;if(R=Fo(k)?{documents:Kl(p,k)}:{query:gl(p,k)._t},R.targetId=_.targetId,_.resumeToken.approximateByteSize()>0){R.resumeToken=qs(p,_.resumeToken);const q=Cs(p,_.expectedCount);null!==q&&(R.expectedCount=q)}else if(_.snapshotVersion.compareTo(gn.min())>0){R.readTime=Go(p,_.snapshotVersion.toTimestamp());const q=Cs(p,_.expectedCount);null!==q&&(R.expectedCount=q)}return R}(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 H()}}(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=Ia(this.serializer),i.removeTarget=n,this.i_(i)}}class cf extends $d{constructor(n,i,s,u,p,_){super(n,"write_stream_connection_backoff","write_stream_idle","health_check_timeout",i,s,u,_),this.serializer=p,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(X(!!n.streamToken),this.lastStreamToken=n.streamToken,this.T_){this.Yo.reset();const i=function ds(l,n){return l&&l.length>0?(X(void 0!==n),l.map(i=>function(u,p){let _=Mi(u.updateTime?u.updateTime:p);return _.isEqual(gn.min())&&(_=Mi(p)),new Ns(_,u.transformResults||[])}(i,n))):[]}(n.writeResults,n.commitTime),s=Mi(n.commitTime);return this.listener.A_(s,i)}return X(!n.writeResults||0===n.writeResults.length),this.T_=!0,this.listener.R_()}V_(){const n={};n.database=Ia(this.serializer),this.i_(n)}d_(n){const i={streamToken:this.lastStreamToken,writes:n.map(s=>function rs(l,n){let i;if(n instanceof Ks)i={update:Ru(l,n.key,n.value)};else if(n instanceof $)i={delete:Ea(l,n.key)};else if(n instanceof lo)i={update:Ru(l,n.key,n.data),updateMask:bd(n.fieldMask)};else{if(!(n instanceof Be))return H();i={verify:Ea(l,n.key)}}return n.fieldTransforms.length>0&&(i.updateTransforms=n.fieldTransforms.map(s=>function(p,_){const R=_.transform;if(R instanceof Is)return{fieldPath:_.field.canonicalString(),setToServerValue:"REQUEST_TIME"};if(R instanceof Os)return{fieldPath:_.field.canonicalString(),appendMissingElements:{values:R.elements}};if(R instanceof As)return{fieldPath:_.field.canonicalString(),removeAllFromArray:{values:R.elements}};if(R instanceof es)return{fieldPath:_.field.canonicalString(),increment:R.Pe};throw H()}(0,s))),n.precondition.isNone||(i.currentDocument=void 0!==(p=n.precondition).updateTime?{updateTime:_c(l,p.updateTime)}:void 0!==p.exists?{exists:p.exists}:H()),i;var p}(this.serializer,s))};this.i_(i)}}class lg 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 Le(ve.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(([p,_])=>this.connection.Co(n,cs(i,s),u,p,_)).catch(p=>{throw"FirebaseError"===p.name?(p.code===ve.UNAUTHENTICATED&&(this.authCredentials.invalidateToken(),this.appCheckCredentials.invalidateToken()),p):new Le(ve.UNKNOWN,p.toString())})}xo(n,i,s,u,p){return this.f_(),Promise.all([this.authCredentials.getToken(),this.appCheckCredentials.getToken()]).then(([_,R])=>this.connection.xo(n,cs(i,s),u,_,R,p)).catch(_=>{throw"FirebaseError"===_.name?(_.code===ve.UNAUTHENTICATED&&(this.authCredentials.invalidateToken(),this.appCheckCredentials.invalidateToken()),_):new Le(ve.UNKNOWN,_.toString())})}terminate(){this.m_=!0,this.connection.terminate()}}class jd{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_?(on(i),this.y_=!1):tt("OnlineStateTracker",i)}C_(){null!==this.p_&&(this.p_.cancel(),this.p_=null)}}class bl{constructor(n,i,s,u,p){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_=p,this.O_.io(R=>{s.enqueueAndForget((0,ue.A)(function*(){var k;Ja(_)&&(tt("RemoteStore","Restarting streams for network reachability change."),yield(k=(0,ue.A)(function*(_e){const je=se(_e);je.M_.add(4),yield nu(je),je.N_.set("Unknown"),je.M_.delete(4),yield Bc(je)}),function q(_e){return k.apply(this,arguments)})(_))}))}),this.N_=new jd(s,u)}}function Bc(l){return Uc.apply(this,arguments)}function Uc(){return(Uc=(0,ue.A)(function*(l){if(Ja(l))for(const n of l.x_)yield n(!0)})).apply(this,arguments)}function nu(l){return wl.apply(this,arguments)}function wl(){return(wl=(0,ue.A)(function*(l){for(const n of l.x_)yield n(!1)})).apply(this,arguments)}function Ya(l,n){const i=se(l);i.F_.has(n.targetId)||(i.F_.set(n.targetId,n),ff(i)?Gu(i):qu(i).Xo()&&df(i,n))}function eo(l,n){const i=se(l),s=qu(i);i.F_.delete(n),s.Xo()&&hf(i,n),0===i.F_.size&&(s.Xo()?s.n_():Ja(i)&&i.N_.set("Unknown"))}function df(l,n){if(l.L_.xe(n.targetId),n.resumeToken.approximateByteSize()>0||n.snapshotVersion.compareTo(gn.min())>0){const i=l.remoteSyncer.getRemoteKeysForTarget(n.targetId).size;n=n.withExpectedCount(i)}qu(l).P_(n)}function hf(l,n){l.L_.xe(n),qu(l).I_(n)}function Gu(l){l.L_=new ks({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 ff(l){return Ja(l)&&!qu(l).Zo()&&l.F_.size>0}function Ja(l){return 0===se(l).M_.size}function $c(l){l.L_=void 0}function ug(l){return zd.apply(this,arguments)}function zd(){return(zd=(0,ue.A)(function*(l){l.N_.set("Online")})).apply(this,arguments)}function pf(l){return Wu.apply(this,arguments)}function Wu(){return(Wu=(0,ue.A)(function*(l){l.F_.forEach((n,i)=>{df(l,n)})})).apply(this,arguments)}function cg(l,n){return gf.apply(this,arguments)}function gf(){return(gf=(0,ue.A)(function*(l,n){$c(l),ff(l)?(l.N_.D_(n),Gu(l)):l.N_.set("Unknown")})).apply(this,arguments)}function fv(l,n,i){return mf.apply(this,arguments)}function mf(){return mf=(0,ue.A)(function*(l,n,i){if(l.N_.set("Online"),n instanceof _i&&2===n.state&&n.cause)try{yield(s=(0,ue.A)(function*(p,_){const R=_.cause;for(const k of _.targetIds)p.F_.has(k)&&(yield p.remoteSyncer.rejectListen(k,R),p.F_.delete(k),p.L_.removeTarget(k))}),function u(p,_){return s.apply(this,arguments)})(l,n)}catch(s){tt("RemoteStore","Failed to remove targets %s: %s ",n.targetIds.join(","),s),yield jc(l,s)}else if(n instanceof Qi?l.L_.Ke(n):n instanceof Ho?l.L_.He(n):l.L_.We(n),!i.isEqual(gn.min()))try{const s=yield Vs(l.localStore);i.compareTo(s)>=0&&(yield function(p,_){const R=p.L_.rt(_);return R.targetChanges.forEach((k,q)=>{if(k.resumeToken.approximateByteSize()>0){const _e=p.F_.get(q);_e&&p.F_.set(q,_e.withResumeToken(k.resumeToken,_))}}),R.targetMismatches.forEach((k,q)=>{const _e=p.F_.get(k);if(!_e)return;p.F_.set(k,_e.withResumeToken(oi.EMPTY_BYTE_STRING,_e.snapshotVersion)),hf(p,k);const je=new T(_e.target,k,q,_e.sequenceNumber);df(p,je)}),p.remoteSyncer.applyRemoteEvent(R)}(l,i))}catch(s){tt("RemoteStore","Failed to raise snapshot:",s),yield jc(l,s)}var s}),mf.apply(this,arguments)}function jc(l,n,i){return vf.apply(this,arguments)}function vf(){return(vf=(0,ue.A)(function*(l,n,i){if(!He(n))throw n;l.M_.add(1),yield nu(l),l.N_.set("Offline"),i||(i=()=>Vs(l.localStore)),l.asyncQueue.enqueueRetryable((0,ue.A)(function*(){tt("RemoteStore","Retrying IndexedDB access"),yield i(),l.M_.delete(1),yield Bc(l)}))})).apply(this,arguments)}function _f(l,n){return n().catch(i=>jc(l,i,n))}function Ku(l){return yf.apply(this,arguments)}function yf(){return(yf=(0,ue.A)(function*(l){const n=se(l),i=ru(n);let s=n.v_.length>0?n.v_[n.v_.length-1].batchId:-1;for(;vy(n);)try{const u=yield xc(n.localStore,s);if(null===u){0===n.v_.length&&i.n_();break}s=u.batchId,dg(n,u)}catch(u){yield jc(n,u)}Ef(n)&&ps(n)})).apply(this,arguments)}function vy(l){return Ja(l)&&l.v_.length<10}function dg(l,n){l.v_.push(n);const i=ru(l);i.Xo()&&i.E_&&i.d_(n.mutations)}function Ef(l){return Ja(l)&&!ru(l).Zo()&&l.v_.length>0}function ps(l){ru(l).start()}function _y(l){return Hd.apply(this,arguments)}function Hd(){return(Hd=(0,ue.A)(function*(l){ru(l).V_()})).apply(this,arguments)}function yy(l){return zc.apply(this,arguments)}function zc(){return(zc=(0,ue.A)(function*(l){const n=ru(l);for(const i of l.v_)n.d_(i.mutations)})).apply(this,arguments)}function Za(l,n,i){return Gd.apply(this,arguments)}function Gd(){return(Gd=(0,ue.A)(function*(l,n,i){const s=l.v_.shift(),u=Ie.from(s,n,i);yield _f(l,()=>l.remoteSyncer.applySuccessfulWrite(u)),yield Ku(l)})).apply(this,arguments)}function Xu(l,n){return If.apply(this,arguments)}function If(){return If=(0,ue.A)(function*(l,n){var i;n&&ru(l).E_&&(yield(i=(0,ue.A)(function*(u,p){if(function pi(l){switch(l){default:return H();case ve.CANCELLED:case ve.UNKNOWN:case ve.DEADLINE_EXCEEDED:case ve.RESOURCE_EXHAUSTED:case ve.INTERNAL:case ve.UNAVAILABLE:case ve.UNAUTHENTICATED:return!1;case ve.INVALID_ARGUMENT:case ve.NOT_FOUND:case ve.ALREADY_EXISTS:case ve.PERMISSION_DENIED:case ve.FAILED_PRECONDITION:case ve.ABORTED:case ve.OUT_OF_RANGE:case ve.UNIMPLEMENTED:case ve.DATA_LOSS:return!0}}(R=p.code)&&R!==ve.ABORTED){const _=u.v_.shift();ru(u).t_(),yield _f(u,()=>u.remoteSyncer.rejectFailedWrite(_.batchId,p)),yield Ku(u)}var R}),function s(u,p){return i.apply(this,arguments)})(l,n)),Ef(l)&&ps(l)}),If.apply(this,arguments)}function hg(l,n){return Wd.apply(this,arguments)}function Wd(){return(Wd=(0,ue.A)(function*(l,n){const i=se(l);i.asyncQueue.verifyOperationInProgress(),tt("RemoteStore","RemoteStore received new credentials");const s=Ja(i);i.M_.add(3),yield nu(i),s&&i.N_.set("Unknown"),yield i.remoteSyncer.handleCredentialChange(n),i.M_.delete(3),yield Bc(i)})).apply(this,arguments)}function fg(l,n){return pg.apply(this,arguments)}function pg(){return(pg=(0,ue.A)(function*(l,n){const i=se(l);n?(i.M_.delete(2),yield Bc(i)):n||(i.M_.add(2),yield nu(i),i.N_.set("Unknown"))})).apply(this,arguments)}function qu(l){return l.B_||(l.B_=function(i,s,u){const p=se(i);return p.f_(),new uf(s,p.connection,p.authCredentials,p.appCheckCredentials,p.serializer,u)}(l.datastore,l.asyncQueue,{Po:ug.bind(null,l),To:pf.bind(null,l),Ao:cg.bind(null,l),h_:fv.bind(null,l)}),l.x_.push(function(){var n=(0,ue.A)(function*(i){i?(l.B_.t_(),ff(l)?Gu(l):l.N_.set("Unknown")):(yield l.B_.stop(),$c(l))});return function(i){return n.apply(this,arguments)}}())),l.B_}function ru(l){return l.k_||(l.k_=function(i,s,u){const p=se(i);return p.f_(),new cf(s,p.connection,p.authCredentials,p.appCheckCredentials,p.serializer,u)}(l.datastore,l.asyncQueue,{Po:()=>Promise.resolve(),To:_y.bind(null,l),Ao:Xu.bind(null,l),R_:yy.bind(null,l),A_:Za.bind(null,l)}),l.x_.push(function(){var n=(0,ue.A)(function*(i){i?(l.k_.t_(),yield Ku(l)):(yield l.k_.stop(),l.v_.length>0&&(tt("RemoteStore",`Stopping write stream with ${l.v_.length} pending writes`),l.v_=[]))});return function(i){return n.apply(this,arguments)}}())),l.k_}class gg{constructor(n,i,s,u,p){this.asyncQueue=n,this.timerId=i,this.targetTimeMs=s,this.op=u,this.removalCallback=p,this.deferred=new De,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,p){const _=Date.now()+s,R=new gg(n,i,_,u,p);return R.start(s),R}start(n){this.timerHandle=setTimeout(()=>this.handleDelayElapsed(),n)}skipDelay(){return this.handleDelayElapsed()}cancel(n){null!==this.timerHandle&&(this.clearTimeout(),this.deferred.reject(new Le(ve.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 Qu(l,n){if(on("AsyncQueue",`${n}: ${l}`),He(l))return new Le(ve.UNAVAILABLE,`${n}: ${l}`);throw l}class la{constructor(n){this.comparator=n?(i,s)=>n(i,s)||en.comparator(i.key,s.key):(i,s)=>en.comparator(i.key,s.key),this.keyedMap=zi(),this.sortedSet=new Lr(this.comparator)}static emptySet(n){return new la(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 la)||this.size!==n.size)return!1;const i=this.sortedSet.getIterator(),s=n.sortedSet.getIterator();for(;i.hasNext();){const u=i.getNext().key,p=s.getNext().key;if(!u.isEqual(p))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 la;return s.comparator=this.comparator,s.keyedMap=n,s.sortedSet=i,s}}class Yu{constructor(){this.q_=new Lr(en.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}):H():this.q_=this.q_.insert(i,n)}Q_(){const n=[];return this.q_.inorderTraversal((i,s)=>{n.push(s)}),n}}class iu{constructor(n,i,s,u,p,_,R,k,q){this.query=n,this.docs=i,this.oldDocs=s,this.docChanges=u,this.mutatedKeys=p,this.fromCache=_,this.syncStateChanged=R,this.excludesMetadataChanges=k,this.hasCachedResults=q}static fromInitialDocuments(n,i,s,u,p){const _=[];return i.forEach(R=>{_.push({type:0,doc:R})}),new iu(n,i,la.emptySet(i),_,s,u,!0,!1,p)}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)&&Yo(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 Af{constructor(){this.queries=new $o(n=>Fa(n),Yo),this.onlineState="Unknown",this.z_=new Set}}function Bs(l,n){return Cf.apply(this,arguments)}function Cf(){return(Cf=(0,ue.A)(function*(l,n){const i=se(l);let s=3;const u=n.query;let p=i.queries.get(u);p?!p.W_()&&n.G_()&&(s=2):(p=new pv,s=n.G_()?0:1);try{switch(s){case 0:p.K_=yield i.onListen(u,!0);break;case 1:p.K_=yield i.onListen(u,!1);break;case 2:yield i.onFirstRemoteStoreListen(u)}}catch(_){const R=Qu(_,`Initialization of query '${_s(n.query)}' failed`);return void n.onError(R)}i.queries.set(u,p),p.U_.push(n),n.j_(i.onlineState),p.K_&&n.H_(p.K_)&&Kd(i)})).apply(this,arguments)}function Ju(l,n){return ou.apply(this,arguments)}function ou(){return(ou=(0,ue.A)(function*(l,n){const i=se(l),s=n.query;let u=3;const p=i.queries.get(s);if(p){const _=p.U_.indexOf(n);_>=0&&(p.U_.splice(_,1),0===p.U_.length?u=n.G_()?0:1:!p.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 gv(l,n){const i=se(l);let s=!1;for(const u of n){const _=i.queries.get(u.query);if(_){for(const R of _.U_)R.H_(u)&&(s=!0);_.K_=u}}s&&Kd(i)}function mg(l,n,i){const s=se(l),u=s.queries.get(n);if(u)for(const p of u.U_)p.onError(i);s.queries.delete(n)}function Kd(l){l.z_.forEach(n=>{n.next()})}var I,f;(f=I||(I={})).J_="default",f.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 iu(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=iu.fromInitialDocuments(n.query,n.docs,n.mutatedKeys,n.fromCache,n.hasCachedResults),this.Z_=!0,this.Y_.next(n)}G_(){return this.options.source!==I.Cache}}class Xt{constructor(n){this.key=n}}class Dn{constructor(n){this.key=n}}class $n{constructor(n,i){this.query=n,this.la=i,this.ha=null,this.hasCachedResults=!1,this.current=!1,this.Pa=Hr(),this.mutatedKeys=Hr(),this.Ia=ul(n),this.Ta=new la(this.Ia)}get Ea(){return this.la}da(n,i){const s=i?i.Aa:new Yu,u=i?i.Ta:this.Ta;let p=i?i.mutatedKeys:this.mutatedKeys,_=u,R=!1;const k="F"===this.query.limitType&&u.size===this.query.limit?u.last():null,q="L"===this.query.limitType&&u.size===this.query.limit?u.first():null;if(n.inorderTraversal((_e,je)=>{const pt=u.get(_e),Ht=Gs(this.query,je)?je:null,An=!!pt&&this.mutatedKeys.has(pt.key),kn=!!Ht&&(Ht.hasLocalMutations||this.mutatedKeys.has(Ht.key)&&Ht.hasCommittedMutations);let Sn=!1;pt&&Ht?pt.data.isEqual(Ht.data)?An!==kn&&(s.track({type:3,doc:Ht}),Sn=!0):this.Ra(pt,Ht)||(s.track({type:2,doc:Ht}),Sn=!0,(k&&this.Ia(Ht,k)>0||q&&this.Ia(Ht,q)<0)&&(R=!0)):!pt&&Ht?(s.track({type:0,doc:Ht}),Sn=!0):pt&&!Ht&&(s.track({type:1,doc:pt}),Sn=!0,(k||q)&&(R=!0)),Sn&&(Ht?(_=_.add(Ht),p=kn?p.add(_e):p.delete(_e)):(_=_.delete(_e),p=p.delete(_e)))}),null!==this.query.limit)for(;_.size>this.query.limit;){const _e="F"===this.query.limitType?_.last():_.first();_=_.delete(_e.key),p=p.delete(_e.key),s.track({type:1,doc:_e})}return{Ta:_,Aa:s,Xi:R,mutatedKeys:p}}Ra(n,i){return n.hasLocalMutations&&i.hasCommittedMutations&&!i.hasLocalMutations}applyChanges(n,i,s,u){const p=this.Ta;this.Ta=n.Ta,this.mutatedKeys=n.mutatedKeys;const _=n.Aa.Q_();_.sort((_e,je)=>function(Ht,An){const kn=Sn=>{switch(Sn){case 0:return 1;case 2:case 3:return 2;case 1:return 0;default:return H()}};return kn(Ht)-kn(An)}(_e.type,je.type)||this.Ia(_e.doc,je.doc)),this.Va(s),u=null!=u&&u;const R=i&&!u?this.ma():[],k=0===this.Pa.size&&this.current&&!u?1:0,q=k!==this.ha;return this.ha=k,0!==_.length||q?{snapshot:new iu(this.query,n.Ta,p,_,n.mutatedKeys,0===k,q,!1,!!s&&s.resumeToken.approximateByteSize()>0),fa:R}:{fa:R}}j_(n){return this.current&&"Offline"===n?(this.current=!1,this.applyChanges({Ta:this.Ta,Aa:new Yu,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=Hr(),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 Dn(s))}),this.Pa.forEach(s=>{n.has(s)||i.push(new Xt(s))}),i}pa(n){this.la=n.hs,this.Pa=Hr();const i=this.da(n.documents);return this.applyChanges(i,!0)}ya(){return iu.fromInitialDocuments(this.query,this.Ta,this.mutatedKeys,0===this.ha,this.hasCachedResults)}}class vr{constructor(n,i,s){this.query=n,this.targetId=i,this.view=s}}class hi{constructor(n){this.key=n,this.wa=!1}}class Vo{constructor(n,i,s,u,p,_){this.localStore=n,this.remoteStore=i,this.eventManager=s,this.sharedClientState=u,this.currentUser=p,this.maxConcurrentLimboResolutions=_,this.Sa={},this.ba=new $o(R=>Fa(R),Yo),this.Da=new Map,this.Ca=new Set,this.va=new Lr(en.comparator),this.Fa=new Map,this.Ma=new xd,this.xa={},this.Oa=new Map,this.Na=_l.Ln(),this.onlineState="Unknown",this.La=void 0}get isPrimaryClient(){return!0===this.La}}function to(l,n){return ua.apply(this,arguments)}function ua(){return(ua=(0,ue.A)(function*(l,n,i=!0){const s=nc(l);let u;const p=s.ba.get(n);return p?(s.sharedClientState.addLocalQueryTarget(p.targetId),u=p.view.ya()):u=yield qd(s,n,i,!0),u})).apply(this,arguments)}function Xd(l,n){return su.apply(this,arguments)}function su(){return(su=(0,ue.A)(function*(l,n){const i=nc(l);yield qd(i,n,!0,!1)})).apply(this,arguments)}function qd(l,n,i,s){return Zu.apply(this,arguments)}function Zu(){return(Zu=(0,ue.A)(function*(l,n,i,s){const u=yield function sa(l,n){const i=se(l);return i.persistence.runTransaction("Allocate target","readwrite",s=>{let u;return i.Qr.getTargetData(s,n).next(p=>p?(u=p,pe.resolve(u)):i.Qr.allocateTargetId(s).next(_=>(u=new T(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,Xn(n)),p=u.targetId,_=i?l.sharedClientState.addLocalQueryTarget(p):"not-current";let R;return s&&(R=yield function ec(l,n,i,s,u){return tc.apply(this,arguments)}(l,n,p,"current"===_,u.resumeToken)),l.isPrimaryClient&&i&&Ya(l.remoteStore,u),R})).apply(this,arguments)}function tc(){return tc=(0,ue.A)(function*(l,n,i,s,u){l.Ba=(je,pt,Ht)=>{return(An=(0,ue.A)(function*(Sn,hr,Mr,_r){let Yr=hr.view.da(Mr);Yr.Xi&&(Yr=yield El(Sn.localStore,hr.query,!1).then(({documents:st})=>hr.view.da(st,Yr)));const Li=_r&&_r.targetChanges.get(hr.targetId),fi=_r&&null!=_r.targetMismatches.get(hr.targetId),xt=hr.view.applyChanges(Yr,Sn.isPrimaryClient,Li,fi);return Cg(Sn,hr.targetId,xt.fa),xt.snapshot}),function kn(Sn,hr,Mr,_r){return An.apply(this,arguments)})(l,je,pt,Ht);var An};const p=yield El(l.localStore,n,!0),_=new $n(n,p.hs),R=_.da(p.documents),k=Si.createSynthesizedTargetChangeForCurrentChange(i,s&&"Offline"!==l.onlineState,u),q=_.applyChanges(R,l.isPrimaryClient,k);Cg(l,i,q.fa);const _e=new vr(n,i,_);return l.ba.set(n,_e),l.Da.has(i)?l.Da.get(i).push(n):l.Da.set(i,[n]),q.snapshot}),tc.apply(this,arguments)}function Df(l,n,i){return au.apply(this,arguments)}function au(){return(au=(0,ue.A)(function*(l,n,i){const s=se(l),u=s.ba.get(n),p=s.Da.get(u.targetId);if(p.length>1)return s.Da.set(u.targetId,p.filter(_=>!Yo(_,n))),void s.ba.delete(n);s.isPrimaryClient?(s.sharedClientState.removeLocalQueryTarget(u.targetId),s.sharedClientState.isActiveQueryTarget(u.targetId)||(yield aa(s.localStore,u.targetId,!1).then(()=>{s.sharedClientState.clearQueryState(u.targetId),i&&eo(s.remoteStore,u.targetId),Zd(s,u.targetId)}).catch(Ai))):(Zd(s,u.targetId),yield aa(s.localStore,u.targetId,!0))})).apply(this,arguments)}function Tf(l,n){return Qd.apply(this,arguments)}function Qd(){return(Qd=(0,ue.A)(function*(l,n){const i=se(l),s=i.ba.get(n),u=i.Da.get(s.targetId);i.isPrimaryClient&&1===u.length&&(i.sharedClientState.removeLocalQueryTarget(s.targetId),eo(i.remoteStore,s.targetId))})).apply(this,arguments)}function Jd(){return(Jd=(0,ue.A)(function*(l,n,i){const s=function Hc(l){const n=se(l);return n.remoteStore.remoteSyncer.applySuccessfulWrite=mv.bind(null,n),n.remoteStore.remoteSyncer.rejectFailedWrite=vv.bind(null,n),n}(l);try{const u=yield function(_,R){const k=se(_),q=pn.now(),_e=R.reduce((Ht,An)=>Ht.add(An.key),Hr());let je,pt;return k.persistence.runTransaction("Locally write mutations","readwrite",Ht=>{let An=Rr(),kn=Hr();return k.os.getEntries(Ht,_e).next(Sn=>{An=Sn,An.forEach((hr,Mr)=>{Mr.isValidDocument()||(kn=kn.add(hr))})}).next(()=>k.localDocuments.getOverlayedDocuments(Ht,An)).next(Sn=>{je=Sn;const hr=[];for(const Mr of R){const _r=va(Mr,je.get(Mr.key).overlayedDocument);null!=_r&&hr.push(new lo(Mr.key,_r,qr(_r.value.mapValue),Ui.exists(!0)))}return k.mutationQueue.addMutationBatch(Ht,q,hr,R)}).next(Sn=>{pt=Sn;const hr=Sn.applyToLocalDocumentSet(je,kn);return k.documentOverlayCache.saveOverlays(Ht,Sn.batchId,hr)})}).then(()=>({batchId:pt.batchId,changes:po(je)}))}(s.localStore,n);s.sharedClientState.addPendingMutation(u.batchId),function(_,R,k){let q=_.xa[_.currentUser.toKey()];q||(q=new Lr(nt)),q=q.insert(R,k),_.xa[_.currentUser.toKey()]=q}(s,u.batchId,i),yield Sl(s,u.changes),yield Ku(s.remoteStore)}catch(u){const p=Qu(u,"Failed to persist write");i.reject(p)}})).apply(this,arguments)}function vg(l,n){return bf.apply(this,arguments)}function bf(){return(bf=(0,ue.A)(function*(l,n){const i=se(l);try{const s=yield function ag(l,n){const i=se(l),s=n.snapshotVersion;let u=i.ns;return i.persistence.runTransaction("Apply remote event","readwrite-primary",p=>{const _=i.os.newChangeBuffer({trackRemovals:!0});u=i.ns;const R=[];n.targetChanges.forEach((_e,je)=>{const pt=u.get(je);if(!pt)return;R.push(i.Qr.removeMatchingKeys(p,_e.removedDocuments,je).next(()=>i.Qr.addMatchingKeys(p,_e.addedDocuments,je)));let Ht=pt.withSequenceNumber(p.currentSequenceNumber);var kn,Sn,hr;null!==n.targetMismatches.get(je)?Ht=Ht.withResumeToken(oi.EMPTY_BYTE_STRING,gn.min()).withLastLimboFreeSnapshotVersion(gn.min()):_e.resumeToken.approximateByteSize()>0&&(Ht=Ht.withResumeToken(_e.resumeToken,s)),u=u.insert(je,Ht),Sn=Ht,hr=_e,(0===(kn=pt).resumeToken.approximateByteSize()||Sn.snapshotVersion.toMicroseconds()-kn.snapshotVersion.toMicroseconds()>=3e8||hr.addedDocuments.size+hr.modifiedDocuments.size+hr.removedDocuments.size>0)&&R.push(i.Qr.updateTargetData(p,Ht))});let k=Rr(),q=Hr();if(n.documentUpdates.forEach(_e=>{n.resolvedLimboDocuments.has(_e)&&R.push(i.persistence.referenceDelegate.updateLimboDocument(p,_e))}),R.push(function $u(l,n,i){let s=Hr(),u=Hr();return i.forEach(p=>s=s.add(p)),n.getEntries(l,s).next(p=>{let _=Rr();return i.forEach((R,k)=>{const q=p.get(R);k.isFoundDocument()!==q.isFoundDocument()&&(u=u.add(R)),k.isNoDocument()&&k.version.isEqual(gn.min())?(n.removeEntry(R,k.readTime),_=_.insert(R,k)):!q.isValidDocument()||k.version.compareTo(q.version)>0||0===k.version.compareTo(q.version)&&q.hasPendingWrites?(n.addEntry(k),_=_.insert(R,k)):tt("LocalStore","Ignoring outdated watch update for ",R,". Current version:",q.version," Watch version:",k.version)}),{cs:_,ls:u}})}(p,_,n.documentUpdates).next(_e=>{k=_e.cs,q=_e.ls})),!s.isEqual(gn.min())){const _e=i.Qr.getLastRemoteSnapshotVersion(p).next(je=>i.Qr.setTargetsMetadata(p,p.currentSequenceNumber,s));R.push(_e)}return pe.waitFor(R).next(()=>_.apply(p)).next(()=>i.localDocuments.getLocalViewOfDocuments(p,k,q)).next(()=>k)}).then(p=>(i.ns=u,p))}(i.localStore,n);n.targetChanges.forEach((u,p)=>{const _=i.Fa.get(p);_&&(X(u.addedDocuments.size+u.modifiedDocuments.size+u.removedDocuments.size<=1),u.addedDocuments.size>0?_.wa=!0:u.modifiedDocuments.size>0?X(_.wa):u.removedDocuments.size>0&&(X(_.wa),_.wa=!1))}),yield Sl(i,s,n)}catch(s){yield Ai(s)}})).apply(this,arguments)}function _g(l,n,i){const s=se(l);if(s.isPrimaryClient&&0===i||!s.isPrimaryClient&&1===i){const u=[];s.ba.forEach((p,_)=>{const R=_.view.j_(n);R.snapshot&&u.push(R.snapshot)}),function(_,R){const k=se(_);k.onlineState=R;let q=!1;k.queries.forEach((_e,je)=>{for(const pt of je.U_)pt.j_(R)&&(q=!0)}),q&&Kd(k)}(s.eventManager,n),u.length&&s.Sa.h_(u),s.onlineState=n,s.isPrimaryClient&&s.sharedClientState.setOnlineState(n)}}function wf(l,n,i){return Sf.apply(this,arguments)}function Sf(){return(Sf=(0,ue.A)(function*(l,n,i){const s=se(l);s.sharedClientState.updateQueryState(n,"rejected",i);const u=s.Fa.get(n),p=u&&u.key;if(p){let _=new Lr(en.comparator);_=_.insert(p,jr.newNoDocument(p,gn.min()));const R=Hr().add(p),k=new qi(gn.min(),new Map,new Lr(nt),_,R);yield vg(s,k),s.va=s.va.remove(p),s.Fa.delete(n),_v(s)}else yield aa(s.localStore,n,!1).then(()=>Zd(s,n,i)).catch(Ai)})).apply(this,arguments)}function mv(l,n){return Rf.apply(this,arguments)}function Rf(){return(Rf=(0,ue.A)(function*(l,n){const i=se(l),s=n.batch.batchId;try{const u=yield function Uu(l,n){const i=se(l);return i.persistence.runTransaction("Acknowledge batch","readwrite-primary",s=>{const u=n.batch.keys(),p=i.os.newChangeBuffer({trackRemovals:!0});return function(R,k,q,_e){const je=q.batch,pt=je.keys();let Ht=pe.resolve();return pt.forEach(An=>{Ht=Ht.next(()=>_e.getEntry(k,An)).next(kn=>{const Sn=q.docVersions.get(An);X(null!==Sn),kn.version.compareTo(Sn)<0&&(je.applyToRemoteDocument(kn,q),kn.isValidDocument()&&(kn.setReadTime(q.commitVersion),_e.addEntry(kn)))})}),Ht.next(()=>R.mutationQueue.removeMutationBatch(k,je))}(i,s,n,p).next(()=>p.apply(s)).next(()=>i.mutationQueue.performConsistencyCheck(s)).next(()=>i.documentOverlayCache.removeOverlaysForBatchId(s,u,n.batch.batchId)).next(()=>i.localDocuments.recalculateAndSaveOverlaysForDocumentKeys(s,function(R){let k=Hr();for(let q=0;q0&&(k=k.add(R.batch.mutations[q].key));return k}(n))).next(()=>i.localDocuments.getDocuments(s,u))})}(i.localStore,n);Mf(i,s,null),Ig(i,s),i.sharedClientState.updateMutationState(s,"acknowledged"),yield Sl(i,u)}catch(u){yield Ai(u)}})).apply(this,arguments)}function vv(l,n,i){return yg.apply(this,arguments)}function yg(){return(yg=(0,ue.A)(function*(l,n,i){const s=se(l);try{const u=yield function(_,R){const k=se(_);return k.persistence.runTransaction("Reject batch","readwrite-primary",q=>{let _e;return k.mutationQueue.lookupMutationBatch(q,R).next(je=>(X(null!==je),_e=je.keys(),k.mutationQueue.removeMutationBatch(q,je))).next(()=>k.mutationQueue.performConsistencyCheck(q)).next(()=>k.documentOverlayCache.removeOverlaysForBatchId(q,_e,R)).next(()=>k.localDocuments.recalculateAndSaveOverlaysForDocumentKeys(q,_e)).next(()=>k.localDocuments.getDocuments(q,_e))})}(s.localStore,n);Mf(s,n,i),Ig(s,n),s.sharedClientState.updateMutationState(n,"rejected",i),yield Sl(s,u)}catch(u){yield Ai(u)}})).apply(this,arguments)}function Ig(l,n){(l.Oa.get(n)||[]).forEach(i=>{i.resolve()}),l.Oa.delete(n)}function Mf(l,n,i){const s=se(l);let u=s.xa[s.currentUser.toKey()];if(u){const p=u.get(n);p&&(i?p.reject(i):p.resolve(),u=u.remove(n)),s.xa[s.currentUser.toKey()]=u}}function Zd(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)||Ag(l,s)})}function Ag(l,n){l.Ca.delete(n.path.canonicalString());const i=l.va.get(n);null!==i&&(eo(l.remoteStore,i),l.va=l.va.remove(n),l.Fa.delete(i),_v(l))}function Cg(l,n,i){for(const s of i)s instanceof Xt?(l.Ma.addReference(s.key,n),Iy(l,s)):s instanceof Dn?(tt("SyncEngine","Document no longer in limbo: "+s.key),l.Ma.removeReference(s.key,n),l.Ma.containsKey(s.key)||Ag(l,s.key)):H()}function Iy(l,n){const i=n.key,s=i.path.canonicalString();l.va.get(i)||l.Ca.has(s)||(tt("SyncEngine","New document in limbo: "+i),l.Ca.add(s),_v(l))}function _v(l){for(;l.Ca.size>0&&l.va.size{_.push(s.Ba(k,n,i).then(q=>{if((q||i)&&s.isPrimaryClient&&s.sharedClientState.updateQueryState(k.targetId,q&&!q.fromCache?"current":"not-current"),q){u.push(q);const _e=Fi.Ki(k.targetId,q);p.push(_e)}}))}),yield Promise.all(_),s.Sa.h_(u),yield(R=(0,ue.A)(function*(q,_e){const je=se(q);try{yield je.persistence.runTransaction("notifyLocalViewChanges","readwrite",pt=>pe.forEach(_e,Ht=>pe.forEach(Ht.qi,An=>je.persistence.referenceDelegate.addReference(pt,Ht.targetId,An)).next(()=>pe.forEach(Ht.Qi,An=>je.persistence.referenceDelegate.removeReference(pt,Ht.targetId,An)))))}catch(pt){if(!He(pt))throw pt;tt("LocalStore","Failed to update sequence numbers: "+pt)}for(const pt of _e){const Ht=pt.targetId;if(!pt.fromCache){const An=je.ns.get(Ht),Sn=An.withLastLimboFreeSnapshotVersion(An.snapshotVersion);je.ns=je.ns.insert(Ht,Sn)}}}),function k(q,_e){return R.apply(this,arguments)})(s.localStore,p))}),Pf.apply(this,arguments)}function Dg(l,n){return Tg.apply(this,arguments)}function Tg(){return(Tg=(0,ue.A)(function*(l,n){const i=se(l);if(!i.currentUser.isEqual(n)){tt("SyncEngine","User change. New user:",n.toKey());const s=yield Fd(i.localStore,n);i.currentUser=n,(p=i).Oa.forEach(R=>{R.forEach(k=>{k.reject(new Le(ve.CANCELLED,"'waitForPendingWrites' promise is rejected due to a user change."))})}),p.Oa.clear(),i.sharedClientState.handleUserChange(n,s.removedBatchIds,s.addedBatchIds),yield Sl(i,s.us)}var p})).apply(this,arguments)}function lu(l,n){const i=se(l),s=i.Fa.get(n);if(s&&s.wa)return Hr().add(s.key);{let u=Hr();const p=i.Da.get(n);if(!p)return u;for(const _ of p){const R=i.ba.get(_);u=u.unionWith(R.view.Ea)}return u}}function nc(l){const n=se(l);return n.remoteStore.remoteSyncer.applyRemoteEvent=vg.bind(null,n),n.remoteStore.remoteSyncer.getRemoteKeysForTarget=lu.bind(null,n),n.remoteStore.remoteSyncer.rejectListen=wf.bind(null,n),n.Sa.h_=gv.bind(null,n.eventManager),n.Sa.ka=mg.bind(null,n.eventManager),n}class el{constructor(){this.synchronizeTabs=!1}initialize(n){var i=this;return(0,ue.A)(function*(){i.serializer=Vc(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 nf(l,n,i,s){return new sg(l,n,i,s)}(this.persistence,new tf,n.initialUser,this.serializer)}createPersistence(n){return new Mc(Sa.Hr,this.serializer)}createSharedClientState(n){return new af}terminate(){var n=this;return(0,ue.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 tl{initialize(n,i){var s=this;return(0,ue.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=>_g(s.syncEngine,u,1),s.remoteStore.remoteSyncer.handleCredentialChange=Dg.bind(null,s.syncEngine),yield fg(s.remoteStore,s.syncEngine.isPrimaryClient))})()}createEventManager(n){return new Af}createDatastore(n){const i=Vc(n.databaseInfo.databaseId),s=new Ud(n.databaseInfo);return new lg(n.authCredentials,n.appCheckCredentials,s,i)}createRemoteStore(n){return s=this.localStore,u=this.datastore,p=n.asyncQueue,_=i=>_g(this.syncEngine,i,0),R=Bd.D()?new Bd:new lf,new bl(s,u,p,_,R);var s,u,p,_,R}createSyncEngine(n,i){return function(u,p,_,R,k,q,_e){const je=new Vo(u,p,_,R,k,q);return _e&&(je.La=!0),je}(this.localStore,this.remoteStore,this.eventManager,this.sharedClientState,n.initialUser,n.maxConcurrentLimboResolutions,i)}terminate(){var n=this;return(0,ue.A)(function*(){var i,s;yield(s=(0,ue.A)(function*(p){const _=se(p);tt("RemoteStore","RemoteStore shutting down."),_.M_.add(5),yield nu(_),_.O_.shutdown(),_.N_.set("Unknown")}),function u(p){return s.apply(this,arguments)})(n.remoteStore),null===(i=n.datastore)||void 0===i||i.terminate()})()}}class Kc{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):on("Uncaught Error in snapshot listener:",n.toString())}$a(){this.muted=!0}Ka(n,i){this.muted||setTimeout(()=>{this.muted||n(i)},0)}}class wy{constructor(n,i,s,u){var p=this;this.authCredentials=n,this.appCheckCredentials=i,this.asyncQueue=s,this.databaseInfo=u,this.user=xe.UNAUTHENTICATED,this.clientId=ir.newId(),this.authCredentialListener=()=>Promise.resolve(),this.appCheckCredentialListener=()=>Promise.resolve(),this.authCredentials.start(s,function(){var _=(0,ue.A)(function*(R){tt("FirestoreClient","Received user=",R.uid),yield p.authCredentialListener(R),p.user=R});return function(R){return _.apply(this,arguments)}}()),this.appCheckCredentials.start(s,_=>(tt("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 Le(ve.FAILED_PRECONDITION,"The client has already been terminated.")}terminate(){var n=this;this.asyncQueue.enterRestrictedMode();const i=new De;return this.asyncQueue.enqueueAndForgetEvenWhileRestricted((0,ue.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=Qu(s,"Failed to shutdown persistence");i.reject(u)}})),i.promise}}function Of(l,n){return oh.apply(this,arguments)}function oh(){return oh=(0,ue.A)(function*(l,n){l.asyncQueue.verifyOperationInProgress(),tt("FirestoreClient","Initializing OfflineComponentProvider");const i=l.configuration;yield n.initialize(i);let s=i.initialUser;l.setCredentialChangeListener(function(){var u=(0,ue.A)(function*(p){s.isEqual(p)||(yield Fd(n.localStore,p),s=p)});return function(p){return u.apply(this,arguments)}}()),n.persistence.setDatabaseDeletedListener(()=>l.terminate()),l._offlineComponents=n}),oh.apply(this,arguments)}function Nf(l,n){return Rg.apply(this,arguments)}function Rg(){return(Rg=(0,ue.A)(function*(l,n){l.asyncQueue.verifyOperationInProgress();const i=yield function rc(l){return kf.apply(this,arguments)}(l);tt("FirestoreClient","Initializing OnlineComponentProvider"),yield n.initialize(i,l.configuration),l.setCredentialChangeListener(s=>hg(n.remoteStore,s)),l.setAppCheckTokenChangeListener((s,u)=>hg(n.remoteStore,u)),l._onlineComponents=n})).apply(this,arguments)}function kf(){return(kf=(0,ue.A)(function*(l){if(!l._offlineComponents)if(l._uninitializedComponentsProvider){tt("FirestoreClient","Using user provided OfflineComponentProvider");try{yield Of(l,l._uninitializedComponentsProvider._offline)}catch(n){const i=n;if(!function Tv(l){return"FirebaseError"===l.name?l.code===ve.FAILED_PRECONDITION||l.code===ve.UNIMPLEMENTED:!(typeof DOMException<"u"&&l instanceof DOMException)||22===l.code||20===l.code||11===l.code}(i))throw i;dt("Error using user provided cache. Falling back to memory cache: "+i),yield Of(l,new el)}}else tt("FirestoreClient","Using default OfflineComponentProvider"),yield Of(l,new el);return l._offlineComponents})).apply(this,arguments)}function Xc(l){return Mg.apply(this,arguments)}function Mg(){return(Mg=(0,ue.A)(function*(l){return l._onlineComponents||(l._uninitializedComponentsProvider?(tt("FirestoreClient","Using user provided OnlineComponentProvider"),yield Nf(l,l._uninitializedComponentsProvider._online)):(tt("FirestoreClient","Using default OnlineComponentProvider"),yield Nf(l,new tl))),l._onlineComponents})).apply(this,arguments)}function cu(l){return xg.apply(this,arguments)}function xg(){return(xg=(0,ue.A)(function*(l){const n=yield Xc(l),i=n.eventManager;return i.onListen=to.bind(null,n.syncEngine),i.onUnlisten=Df.bind(null,n.syncEngine),i.onFirstRemoteStoreListen=Xd.bind(null,n.syncEngine),i.onLastRemoteStoreUnlisten=Tf.bind(null,n.syncEngine),i})).apply(this,arguments)}function uh(l){const n={};return void 0!==l.timeoutSeconds&&(n.timeoutSeconds=l.timeoutSeconds),n}const Vf=new Map;function Bf(l,n,i){if(!i)throw new Le(ve.INVALID_ARGUMENT,`Function ${l}() cannot be called with an empty ${n}.`)}function Fg(l){if(!en.isDocumentKey(l))throw new Le(ve.INVALID_ARGUMENT,`Invalid document reference. Document references must have an even number of segments, but ${l} has ${l.length}.`)}function du(l){if(en.isDocumentKey(l))throw new Le(ve.INVALID_ARGUMENT,`Invalid collection reference. Collection references must have an odd number of segments, but ${l} has ${l.length}.`)}function Uf(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":H()}function Ii(l,n){if("_delegate"in l&&(l=l._delegate),!(l instanceof n)){if(n.name===l.constructor.name)throw new Le(ve.INVALID_ARGUMENT,"Type does not match the expected instance. Did you pass a reference from a different Firestore SDK?");{const i=Uf(l);throw new Le(ve.INVALID_ARGUMENT,`Expected type '${n.name}', but it was: ${i}`)}}return l}class Pv{constructor(n){var i,s;if(void 0===n.host){if(void 0!==n.ssl)throw new Le(ve.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 Le(ve.INVALID_ARGUMENT,"cacheSizeBytes must be at least 1048576");this.cacheSizeBytes=n.cacheSizeBytes}(function Rv(l,n,i,s){if(!0===n&&!0===s)throw new Le(ve.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=uh(null!==(s=n.experimentalLongPollingOptions)&&void 0!==s?s:{}),function(p){if(void 0!==p.timeoutSeconds){if(isNaN(p.timeoutSeconds))throw new Le(ve.INVALID_ARGUMENT,`invalid long polling timeout: ${p.timeoutSeconds} (must not be NaN)`);if(p.timeoutSeconds<5)throw new Le(ve.INVALID_ARGUMENT,`invalid long polling timeout: ${p.timeoutSeconds} (minimum allowed value is 5)`);if(p.timeoutSeconds>30)throw new Le(ve.INVALID_ARGUMENT,`invalid long polling timeout: ${p.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 ch{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 Pv({}),this._settingsFrozen=!1}get app(){if(!this._app)throw new Le(ve.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 Le(ve.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 Pv(n),void 0!==n.credentials&&(this._authCredentials=function(s){if(!s)return new dn;switch(s.type){case"firstParty":return new Zn(s.sessionIndex||"0",s.iamToken||null,s.authTokenFactory||null);case"provider":return s.client;default:throw new Le(ve.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=Vf.get(i);s&&(tt("ComponentProvider","Removing Datastore"),Vf.delete(i),s.terminate())}(this),Promise.resolve()}}class uo{constructor(n,i,s){this.converter=i,this._query=s,this.type="query",this.firestore=n}withConverter(n){return new uo(this.firestore,n,this._query)}}class vo{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 nl(this.firestore,this.converter,this._key.path.popLast())}withConverter(n){return new vo(this.firestore,n,this._key)}}class nl extends uo{constructor(n,i,s){super(n,i,Ae(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 vo(this.firestore,null,new en(n))}withConverter(n){return new nl(this.firestore,n,this._path)}}function Py(l,n,...i){if(l=(0,Se.Ku)(l),Bf("collection","path",n),l instanceof ch){const s=Mn.fromString(n,...i);return du(s),new nl(l,null,s)}{if(!(l instanceof vo||l instanceof nl))throw new Le(ve.INVALID_ARGUMENT,"Expected first argument to collection() to be a CollectionReference, a DocumentReference or FirebaseFirestore");const s=l._path.child(Mn.fromString(n,...i));return du(s),new nl(l.firestore,null,s)}}function xv(l,n,...i){if(l=(0,Se.Ku)(l),1===arguments.length&&(n=ir.newId()),Bf("doc","path",n),l instanceof ch){const s=Mn.fromString(n,...i);return Fg(s),new vo(l,null,new en(s))}{if(!(l instanceof vo||l instanceof nl))throw new Le(ve.INVALID_ARGUMENT,"Expected first argument to collection() to be a CollectionReference, a DocumentReference or FirebaseFirestore");const s=l._path.child(Mn.fromString(n,...i));return Fg(s),new vo(l.firestore,l instanceof nl?l.converter:null,new en(s))}}class xy{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 tu(this,"async_queue_retry"),this.hu=()=>{const i=Tl();i&&tt("AsyncQueue","Visibility state changed to "+i.visibilityState),this.Yo.Wo()};const n=Tl();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=Tl();i&&"function"==typeof i.removeEventListener&&i.removeEventListener("visibilitychange",this.hu)}}enqueue(n){if(this.Pu(),this.ou)return new Promise(()=>{});const i=new De;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,ue.A)(function*(){if(0!==n.su.length){try{yield n.su[0](),n.su.shift(),n.Yo.reset()}catch(i){if(!He(i))throw i;tt("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,on("INTERNAL UNHANDLED ERROR: ",function(_){let R=_.message||"";return _.stack&&(R=_.stack.includes(_.message)?_.stack:_.message+"\n"+_.stack),R}(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=gg.createAndSchedule(this,n,i,s,p=>this.Eu(p));return this._u.push(u),u}Pu(){this.au&&H()}verifyOperationInProgress(){}du(){var n=this;return(0,ue.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 ch{constructor(n,i,s,u){super(n,i,s,u),this.type="firestore",this._queue=new xy,this._persistenceKey=(null==u?void 0:u.name)||"[DEFAULT]"}_terminate(){return this._firestoreClient||Bg(this),this._firestoreClient.terminate()}}function dh(l,n){const i="object"==typeof l?l:(0,oe.Sx)(),s="string"==typeof l?l:n||"(default)",u=(0,oe.j6)(i,"firestore").getImmediate({identifier:s});if(!u._initialized){const p=(0,Se.yU)("firestore");p&&function Rl(l,n,i,s={}){var u;const p=(l=Ii(l,ch))._getSettings(),_=`${n}:${i}`;if("firestore.googleapis.com"!==p.host&&p.host!==_&&dt("Host has been set in both settings() and connectFirestoreEmulator(), emulator host will be used."),l._setSettings(Object.assign(Object.assign({},p),{host:_,ssl:!1})),s.mockUserToken){let R,k;if("string"==typeof s.mockUserToken)R=s.mockUserToken,k=xe.MOCK_USER;else{R=(0,Se.Fy)(s.mockUserToken,null===(u=l._app)||void 0===u?void 0:u.options.projectId);const q=s.mockUserToken.sub||s.mockUserToken.user_id;if(!q)throw new Le(ve.INVALID_ARGUMENT,"mockUserToken must contain 'sub' or 'user_id' field!");k=new xe(q)}l._authCredentials=new Kt(new Wt(R,k))}}(u,...p)}return u}function ro(l){return l._firestoreClient||Bg(l),l._firestoreClient.verifyNotTerminated(),l._firestoreClient}function Bg(l){var n,i,s;const u=l._freezeSettings(),p=(k=(null===(n=l._app)||void 0===n?void 0:n.options.appId)||"",new jt(l._databaseId,k,l._persistenceKey,(_e=u).host,_e.ssl,_e.experimentalForceLongPolling,_e.experimentalAutoDetectLongPolling,uh(_e.experimentalLongPollingOptions),_e.useFetchStreams));var k,_e;l._firestoreClient=new wy(l._authCredentials,l._appCheckCredentials,l._queue,p),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 ic{constructor(n){this._byteString=n}static fromBase64String(n){try{return new ic(oi.fromBase64String(n))}catch(i){throw new Le(ve.INVALID_ARGUMENT,"Failed to construct data from Base64 string: "+i)}}static fromUint8Array(n){return new ic(oi.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 fu{constructor(...n){for(let i=0;i90)throw new Le(ve.INVALID_ARGUMENT,"Latitude must be a number between -90 and 90, but was: "+n);if(!isFinite(i)||i<-180||i>180)throw new Le(ve.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 nt(this._lat,n._lat)||nt(this._long,n._long)}}const Fv=/^__.*__$/;class $f{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 Ks(n,this.data,i,this.fieldTransforms)}}class $g{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 jf(l){switch(l){case 0:case 2:case 1:return!0;case 3:case 4:return!1;default:throw H()}}class zf{constructor(n,i,s,u,p,_){this.settings=n,this.databaseId=i,this.serializer=s,this.ignoreUndefinedProperties=u,void 0===p&&this.mu(),this.fieldTransforms=p||[],this.fieldMask=_||[]}get path(){return this.settings.path}get fu(){return this.settings.fu}gu(n){return new zf(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 Wf(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;nk.covers(je.field))}else k=null,q=_.fieldTransforms;return new $f(new Vn(R),k,q)}class Jc extends Yc{_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 Jc}}function Pa(l,n){if(Bv(l=(0,Se.Ku)(l)))return Kg("Unsupported field value:",n,l),Vv(l,n);if(l instanceof Yc)return function(s,u){if(!jf(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 p=s._toFieldTransform(u);p&&u.fieldTransforms.push(p)}(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 p=[];let _=0;for(const R of s){let k=Pa(R,u.bu(_));null==k&&(k={nullValue:"NULL_VALUE"}),p.push(k),_++}return{arrayValue:{values:p}}}(l,n)}return function(s,u){if(null===(s=(0,Se.Ku)(s)))return{nullValue:"NULL_VALUE"};if("number"==typeof s)return hl(u.serializer,s);if("boolean"==typeof s)return{booleanValue:s};if("string"==typeof s)return{stringValue:s};if(s instanceof Date){const p=pn.fromDate(s);return{timestampValue:Go(u.serializer,p)}}if(s instanceof pn){const p=new pn(s.seconds,1e3*Math.floor(s.nanoseconds/1e3));return{timestampValue:Go(u.serializer,p)}}if(s instanceof Ug)return{geoPointValue:{latitude:s.latitude,longitude:s.longitude}};if(s instanceof ic)return{bytesValue:qs(u.serializer,s._byteString)};if(s instanceof vo){const p=u.databaseId,_=s.firestore._databaseId;if(!_.isEqual(p))throw u.Du(`Document reference is for database ${_.projectId}/${_.database} but should be for database ${p.projectId}/${p.database}`);return{referenceValue:Qs(s.firestore._databaseId||u.databaseId,s._key.path)}}throw u.Du(`Unsupported field value: ${Uf(s)}`)}(l,n)}function Vv(l,n){const i={};return ei(l)?n.path&&n.path.length>0&&n.fieldMask.push(n.path):ai(l,(s,u)=>{const p=Pa(u,n.pu(s));null!=p&&(i[s]=p)}),{mapValue:{fields:i}}}function Bv(l){return!("object"!=typeof l||null===l||l instanceof Array||l instanceof Date||l instanceof pn||l instanceof Ug||l instanceof ic||l instanceof vo||l instanceof Yc)}function Kg(l,n,i){if(!Bv(i)||"object"!=typeof(u=i)||null===u||Object.getPrototypeOf(u)!==Object.prototype&&null!==Object.getPrototypeOf(u)){const s=Uf(i);throw n.Du("an object"===s?l+" a custom object":l+" "+s)}var u}function Zc(l,n,i){if((n=(0,Se.Ku)(n))instanceof fu)return n._internalPath;if("string"==typeof n)return Gf(l,n);throw Wf("Field path arguments must be of type string or ",l,!1,void 0,i)}const Uy=new RegExp("[~\\*/\\[\\]]");function Gf(l,n,i){if(n.search(Uy)>=0)throw Wf(`Invalid field path (${n}). Paths must not contain '~', '*', '/', '[', or ']'`,l,!1,void 0,i);try{return new fu(...n.split("."))._internalPath}catch{throw Wf(`Invalid field path (${n}). Paths must not be empty, begin with '.', end with '.', or contain '..'`,l,!1,void 0,i)}}function Wf(l,n,i,s,u){const p=s&&!s.isEmpty(),_=void 0!==u;let R=`Function ${n}() called with invalid data`;i&&(R+=" (via `toFirestore()`)"),R+=". ";let k="";return(p||_)&&(k+=" (found",p&&(k+=` in field ${s}`),_&&(k+=` in document ${u}`),k+=")"),new Le(ve.INVALID_ARGUMENT,R+l+k)}function Uv(l,n){return l.some(i=>i.isEqual(n))}class ph{constructor(n,i,s,u,p){this._firestore=n,this._userDataWriter=i,this._key=s,this._document=u,this._converter=p}get id(){return this._key.path.lastSegment()}get ref(){return new vo(this._firestore,this._converter,this._key)}exists(){return null!==this._document}data(){if(this._document){if(this._converter){const n=new $y(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(ed("DocumentSnapshot.get",n));if(null!==i)return this._userDataWriter.convertValue(i)}}}class $y extends ph{data(){return super.data()}}function ed(l,n){return"string"==typeof n?Gf(l,n):n instanceof fu?n._internalPath:n._delegate._internalPath}class Qg{convertValue(n,i="none"){switch(j(n)){case 0:return null;case 1:return n.booleanValue;case 2:return le(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(W(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 H()}}convertObject(n,i){return this.convertObjectMap(n.fields,i)}convertObjectMap(n,i="none"){const s={};return ai(n,(u,p)=>{s[u]=this.convertValue(p,i)}),s}convertGeoPoint(n){return new Ug(le(n.latitude),le(n.longitude))}convertArray(n,i){return(n.values||[]).map(s=>this.convertValue(s,i))}convertServerTimestamp(n,i){switch(i){case"previous":const s=Ve(n);return null==s?null:this.convertValue(s,i);case"estimate":return this.convertTimestamp(ot(n));default:return null}}convertTimestamp(n){const i=he(n);return new pn(i.seconds,i.nanos)}convertDocumentKey(n,i){const s=Mn.fromString(n);X(E(s));const u=new In(s.get(1),s.get(3)),p=new en(s.popFirst(5));return u.isEqual(i)||on(`Document ${p} 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.`),p}}class Pl{constructor(n,i){this.hasPendingWrites=n,this.fromCache=i}isEqual(n){return this.hasPendingWrites===n.hasPendingWrites&&this.fromCache===n.fromCache}}class lc extends ph{constructor(n,i,s,u,p,_){super(n,i,s,u,_),this._firestore=n,this._firestoreImpl=n,this.metadata=p}exists(){return super.exists()}data(n={}){if(this._document){if(this._converter){const i=new rd(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(ed("DocumentSnapshot.get",n));if(null!==s)return this._userDataWriter.convertValue(s,i.serverTimestamps)}}}class rd extends lc{data(n={}){return super.data(n)}}class xl{constructor(n,i,s,u){this._firestore=n,this._userDataWriter=i,this._snapshot=u,this.metadata=new Pl(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 rd(this._firestore,this._userDataWriter,s.key,s,new Pl(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 Le(ve.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,p){if(u._snapshot.oldDocs.isEmpty()){let _=0;return u._snapshot.docChanges.map(R=>({type:"added",doc:new rd(u._firestore,u._userDataWriter,R.doc.key,R.doc,new Pl(u._snapshot.mutatedKeys.has(R.doc.key),u._snapshot.fromCache),u.query.converter),oldIndex:-1,newIndex:_++}))}{let _=u._snapshot.oldDocs;return u._snapshot.docChanges.filter(R=>p||3!==R.type).map(R=>{const k=new rd(u._firestore,u._userDataWriter,R.doc.key,R.doc,new Pl(u._snapshot.mutatedKeys.has(R.doc.key),u._snapshot.fromCache),u.query.converter);let q=-1,_e=-1;return 0!==R.type&&(q=_.indexOf(R.doc.key),_=_.delete(R.doc.key)),1!==R.type&&(_=_.add(R.doc),_e=_.indexOf(R.doc.key)),{type:qy(R.type),doc:k,oldIndex:q,newIndex:_e}})}}(this,i),this._cachedChangesIncludeMetadataChanges=i),this._cachedChanges}}function qy(l){switch(l){case 0:return"added";case 2:case 3:return"modified";case 1:return"removed";default:return H()}}function Hv(l){l=Ii(l,vo);const n=Ii(l.firestore,Bi);return function lh(l,n,i={}){const s=new De;return l.asyncQueue.enqueueAndForget((0,ue.A)(function*(){return function(p,_,R,k,q){const _e=new Kc({next:pt=>{_.enqueueAndForget(()=>Ju(p,je));const Ht=pt.docs.has(R);!Ht&&pt.fromCache?q.reject(new Le(ve.UNAVAILABLE,"Failed to get document because the client is offline.")):Ht&&pt.fromCache&&k&&"server"===k.source?q.reject(new Le(ve.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.)')):q.resolve(pt)},error:pt=>q.reject(pt)}),je=new v(Ae(R.path),_e,{includeMetadataChanges:!0,ra:!0});return Bs(p,je)}(yield cu(l),l.asyncQueue,n,i,s)})),s.promise}(ro(n),l._key).then(i=>function Qf(l,n,i){const s=i.docs.get(n._key),u=new pu(l);return new lc(l,u,n._key,s,new Pl(i.hasPendingWrites,i.fromCache),n.converter)}(n,l,i))}class pu extends Qg{constructor(n){super(),this.firestore=n}convertBytes(n){return new ic(n)}convertReference(n){const i=this.convertDocumentKey(n,this.firestore._databaseId);return new vo(this.firestore,null,i)}}function Gv(l){l=Ii(l,uo);const n=Ii(l.firestore,Bi),i=ro(n),s=new pu(n);return function jy(l){if("L"===l.limitType&&0===l.explicitOrderBy.length)throw new Le(ve.UNIMPLEMENTED,"limitToLast() queries require specifying at least one orderBy() clause")}(l._query),function Ng(l,n,i={}){const s=new De;return l.asyncQueue.enqueueAndForget((0,ue.A)(function*(){return function(p,_,R,k,q){const _e=new Kc({next:pt=>{_.enqueueAndForget(()=>Ju(p,je)),pt.fromCache&&"server"===k.source?q.reject(new Le(ve.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.)')):q.resolve(pt)},error:pt=>q.reject(pt)}),je=new v(R,_e,{includeMetadataChanges:!0,ra:!0});return Bs(p,je)}(yield cu(l),l.asyncQueue,n,i,s)})),s.promise}(i,l._query).then(u=>new xl(n,s,l,u))}function em(l,n,i){l=Ii(l,vo);const s=Ii(l.firestore,Bi),u=function mh(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 od(s,[fh(sc(s),"setDoc",l._key,u,null!==l.converter,i).toMutation(l._key,Ui.none())])}function Qy(l,n,i,...s){l=Ii(l,vo);const u=Ii(l.firestore,Bi),p=sc(u);let _;return _="string"==typeof(n=(0,Se.Ku)(n))||n instanceof fu?function Lv(l,n,i,s,u,p){const _=l.Fu(1,n,i),R=[Zc(n,s,i)],k=[u];if(p.length%2!=0)throw new Le(ve.INVALID_ARGUMENT,`Function ${n}() needs to be called with an even number of arguments that alternate between field names and values.`);for(let pt=0;pt=0;--pt)if(!Uv(q,R[pt])){const Ht=R[pt];let An=k[pt];An=(0,Se.Ku)(An);const kn=_.Su(Ht);if(An instanceof Jc)q.push(Ht);else{const Sn=Pa(An,kn);null!=Sn&&(q.push(Ht),_e.set(Ht,Sn))}}const je=new Ci(q);return new $g(_e,je,_.fieldTransforms)}(p,"updateDoc",l._key,n,i,s):function Hf(l,n,i,s){const u=l.Fu(1,n,i);Kg("Data must be an object, but it was:",u,s);const p=[],_=Vn.empty();ai(s,(k,q)=>{const _e=Gf(n,k,i);q=(0,Se.Ku)(q);const je=u.Su(_e);if(q instanceof Jc)p.push(_e);else{const pt=Pa(q,je);null!=pt&&(p.push(_e),_.set(_e,pt))}});const R=new Ci(p);return new $g(_,R,u.fieldTransforms)}(p,"updateDoc",l._key,n),od(u,[_.toMutation(l._key,Ui.exists(!0))])}function Yy(l){return od(Ii(l.firestore,Bi),[new $(l._key,Ui.none())])}function od(l,n){return function(s,u){const p=new De;return s.asyncQueue.enqueueAndForget((0,ue.A)(function*(){return function Yd(l,n,i){return Jd.apply(this,arguments)}(yield function Pg(l){return Xc(l).then(n=>n.syncEngine)}(s),u,p)})),p.promise}(ro(l),n)}!function(n,i=!0){at=oe.MF,(0,oe.om)(new Xe.uA("firestore",(s,{instanceIdentifier:u,options:p})=>{const _=s.getProvider("app").getImmediate(),R=new Bi(new rn(s.getProvider("auth-internal")),new er(s.getProvider("app-check-internal")),function(q,_e){if(!Object.prototype.hasOwnProperty.apply(q.options,["projectId"]))throw new Le(ve.INVALID_ARGUMENT,'"projectId" not provided in firebase.initializeApp.');return new In(q.options.projectId,_e)}(_,u),_);return p=Object.assign({useFetchStreams:i},p),R._setSettings(p),R},"PUBLIC").setMultipleInstances(!0)),(0,oe.KO)(Fe,"4.6.3",n),(0,oe.KO)(Fe,"4.6.3","esm2017")}();class Eh{constructor(n){return n}}const tp="firestore",sm=new c.nKC("angularfire2.firestore-instances");function h0(l){return(n,i)=>{const s=n.runOutsideAngular(()=>l(i));return new Eh(s)}}const f0={provide:class d0{constructor(){return(0,h.CA)(tp)}},deps:[[new c.Xx1,sm]]},p0={provide:Eh,useFactory:function Zv(l,n){const i=(0,h.lR)(tp,l,n);return i&&new Eh(i)},deps:[[new c.Xx1,sm],Z.XU]};function e_(l,...n){return(0,U.KO)("angularfire",h.xv.full,"fst"),(0,c.EmA)([p0,f0,{provide:sm,useFactory:h0(l),multi:!0,deps:[c.SKi,c.zZn,h.u0,Z.gL,[new c.Xx1,Oe.DF],[new c.Xx1,h.Jv],...n]}])}const _0=(0,h.S3)(Py,!0),y0=(0,h.S3)(Yy,!0),lm=(0,h.S3)(xv,!0),cm=(0,h.S3)(Hv,!0),o_=(0,h.S3)(Gv,!0),dm=(0,h.S3)(dh,!0),P0=(0,h.S3)(em,!0),x0=(0,h.S3)(Qy,!0)},9032:(Tn,gt,S)=>{"use strict";S.d(gt,{L9:()=>cr,oc:()=>Lt,v_:()=>He,cw:()=>ye});var h=S(5407),c=S(4438),Z=S(7440),Oe=S(2214),U=S(467),ue=S(7852),oe=S(1362),Xe=S(1076),Je=S(1635),Se="@firebase/vertexai-preview",Ce="0.0.2";const Qe="vertexAI",Ze="us-central1",Dt=Ce,St="gl-js";class _t{constructor(ct,lt,Gt,tn){var _n;this.app=ct,this.options=tn;const qn=null==Gt?void 0:Gt.getImmediate({optional:!0}),hn=null==lt?void 0:lt.getImmediate({optional:!0});this.auth=hn||null,this.appCheck=qn||null,this.location=(null===(_n=this.options)||void 0===_n?void 0:_n.location)||Ze}_delete(){return Promise.resolve()}}const yt=new Xe.FA("vertexAI","VertexAI",{"fetch-error":"Error fetching from {$url}: {$message}","invalid-content":"Content formatting error: {$message}","no-api-key":'The "apiKey" field is empty in the local Firebase config. Firebase VertexAI requires this field tocontain a valid API key.',"no-project-id":'The "projectId" field is empty in the local Firebase config. Firebase VertexAI requires this field tocontain a valid project ID.',"no-model":"Must provide a model name. Example: getGenerativeModel({ model: 'my-model-name' })","parse-failed":"Parsing failed: {$message}","response-error":"Response error: {$message}. Response body stored in error.customData.response"});var mt=function(ie){return ie.GENERATE_CONTENT="generateContent",ie.STREAM_GENERATE_CONTENT="streamGenerateContent",ie.COUNT_TOKENS="countTokens",ie}(mt||{});class Me{constructor(ct,lt,Gt,tn,_n){this.model=ct,this.task=lt,this.apiSettings=Gt,this.stream=tn,this.requestOptions=_n}toString(){var ct;let tn=`${(null===(ct=this.requestOptions)||void 0===ct?void 0:ct.baseUrl)||"https://firebaseml.googleapis.com"}/v2beta`;return tn+=`/projects/${this.apiSettings.project}`,tn+=`/locations/${this.apiSettings.location}`,tn+=`/${this.model}`,tn+=`:${this.task}`,this.stream&&(tn+="?alt=sse"),tn}get fullModelString(){let ct=`projects/${this.apiSettings.project}`;return ct+=`/locations/${this.apiSettings.location}`,ct+=`/${this.model}`,ct}}function ge(ie){return Ue.apply(this,arguments)}function Ue(){return(Ue=(0,U.A)(function*(ie){const ct=new Headers;if(ct.append("Content-Type","application/json"),ct.append("x-goog-api-client",function Ye(){const ie=[];return ie.push(`${St}/${Dt}`),ie.push(`fire/${Dt}`),ie.join(" ")}()),ct.append("x-goog-api-key",ie.apiSettings.apiKey),ie.apiSettings.getAppCheckToken){const lt=yield ie.apiSettings.getAppCheckToken();lt&&!lt.error&&ct.append("X-Firebase-AppCheck",lt.token)}if(ie.apiSettings.getAuthToken){const lt=yield ie.apiSettings.getAuthToken();lt&&ct.append("Authorization",`Firebase ${lt.accessToken}`)}return ct})).apply(this,arguments)}function xe(){return(xe=(0,U.A)(function*(ie,ct,lt,Gt,tn,_n){const qn=new Me(ie,ct,lt,Gt,_n);return{url:qn.toString(),fetchOptions:Object.assign(Object.assign({},vn(_n)),{method:"POST",headers:yield ge(qn),body:tn})}})).apply(this,arguments)}function at(ie,ct,lt,Gt,tn,_n){return Rt.apply(this,arguments)}function Rt(){return Rt=(0,U.A)(function*(ie,ct,lt,Gt,tn,_n){const qn=new Me(ie,ct,lt,Gt,_n);let hn;try{const Cn=yield function Fe(ie,ct,lt,Gt,tn,_n){return xe.apply(this,arguments)}(ie,ct,lt,Gt,tn,_n);if(hn=yield fetch(Cn.url,Cn.fetchOptions),!hn.ok){let tr="";try{const Ar=yield hn.json();tr=Ar.error.message,Ar.error.details&&(tr+=` ${JSON.stringify(Ar.error.details)}`)}catch{}throw new Error(`[${hn.status} ${hn.statusText}] ${tr}`)}}catch(Cn){const tr=Cn,Ar=yt.create("fetch-error",{url:qn.toString(),message:tr.message});throw Ar.stack=tr.stack,Ar}return hn}),Rt.apply(this,arguments)}function vn(ie){const ct={};if(null!=ie&&ie.timeout&&(null==ie?void 0:ie.timeout)>=0){const lt=new AbortController,Gt=lt.signal;setTimeout(()=>lt.abort(),ie.timeout),ct.signal=Gt}return ct}const Nt=["user","model","function","system"];var fe=function(ie){return ie.FINISH_REASON_UNSPECIFIED="FINISH_REASON_UNSPECIFIED",ie.STOP="STOP",ie.MAX_TOKENS="MAX_TOKENS",ie.SAFETY="SAFETY",ie.RECITATION="RECITATION",ie.OTHER="OTHER",ie}(fe||{});function Le(ie){return ie.text=()=>{if(ie.candidates&&ie.candidates.length>0){if(ie.candidates.length>1&&console.warn(`This response had ${ie.candidates.length} candidates. Returning text from the first candidate only. Access response.candidates directly to use the other candidates.`),Kt(ie.candidates[0]))throw yt.create("response-error",{message:`${rn(ie)}`,response:ie});return function De(ie){var ct,lt,Gt,tn;const _n=[];if(null!==(lt=null===(ct=ie.candidates)||void 0===ct?void 0:ct[0].content)&&void 0!==lt&<.parts)for(const qn of null===(tn=null===(Gt=ie.candidates)||void 0===Gt?void 0:Gt[0].content)||void 0===tn?void 0:tn.parts)qn.text&&_n.push(qn.text);return _n.length>0?_n.join(""):""}(ie)}if(ie.promptFeedback)throw yt.create("response-error",{message:`Text not available. ${rn(ie)}`,response:ie});return""},ie.functionCalls=()=>{if(ie.candidates&&ie.candidates.length>0){if(ie.candidates.length>1&&console.warn(`This response had ${ie.candidates.length} candidates. Returning function calls from the first candidate only. Access response.candidates directly to use the other candidates.`),Kt(ie.candidates[0]))throw yt.create("response-error",{message:`${rn(ie)}`,response:ie});return function Wt(ie){var ct,lt,Gt,tn;const _n=[];if(null!==(lt=null===(ct=ie.candidates)||void 0===ct?void 0:ct[0].content)&&void 0!==lt&<.parts)for(const qn of null===(tn=null===(Gt=ie.candidates)||void 0===Gt?void 0:Gt[0].content)||void 0===tn?void 0:tn.parts)qn.functionCall&&_n.push(qn.functionCall);if(_n.length>0)return _n}(ie)}if(ie.promptFeedback)throw yt.create("response-error",{message:`Function call not available. ${rn(ie)}`,response:ie})},ie}const dn=[fe.RECITATION,fe.SAFETY];function Kt(ie){return!!ie.finishReason&&dn.includes(ie.finishReason)}function rn(ie){var ct,lt,Gt;let tn="";if(ie.candidates&&0!==ie.candidates.length||!ie.promptFeedback){if(null!==(Gt=ie.candidates)&&void 0!==Gt&&Gt[0]){const _n=ie.candidates[0];Kt(_n)&&(tn+=`Candidate was blocked due to ${_n.finishReason}`,_n.finishMessage&&(tn+=`: ${_n.finishMessage}`))}}else tn+="Response was blocked",!(null===(ct=ie.promptFeedback)||void 0===ct)&&ct.blockReason&&(tn+=` due to ${ie.promptFeedback.blockReason}`),null!==(lt=ie.promptFeedback)&&void 0!==lt&<.blockReasonMessage&&(tn+=`: ${ie.promptFeedback.blockReasonMessage}`);return tn}const Ln=/^data\: (.*)(?:\n\n|\r\r|\r\n\r\n)/;function nr(ie){return er.apply(this,arguments)}function er(){return(er=(0,U.A)(function*(ie){const ct=[],lt=ie.getReader();for(;;){const{done:Gt,value:tn}=yield lt.read();if(Gt)return Le(ir(ct));ct.push(tn)}})).apply(this,arguments)}function yr(ie){return(0,Je.AQ)(this,arguments,function*(){const lt=ie.getReader();for(;;){const{value:Gt,done:tn}=yield(0,Je.N3)(lt.read());if(tn)break;yield yield(0,Je.N3)(Le(Gt))}})}function ir(ie){const ct=ie[ie.length-1],lt={promptFeedback:null==ct?void 0:ct.promptFeedback};for(const Gt of ie)if(Gt.candidates)for(const tn of Gt.candidates){const _n=tn.index;if(lt.candidates||(lt.candidates=[]),lt.candidates[_n]||(lt.candidates[_n]={index:tn.index}),lt.candidates[_n].citationMetadata=tn.citationMetadata,lt.candidates[_n].finishReason=tn.finishReason,lt.candidates[_n].finishMessage=tn.finishMessage,lt.candidates[_n].safetyRatings=tn.safetyRatings,tn.content&&tn.content.parts){lt.candidates[_n].content||(lt.candidates[_n].content={role:tn.content.role||"user",parts:[]});const qn={};for(const hn of tn.content.parts)hn.text&&(qn.text=hn.text),hn.functionCall&&(qn.functionCall=hn.functionCall),0===Object.keys(qn).length&&(qn.text=""),lt.candidates[_n].content.parts.push(qn)}}return lt}function nt(ie,ct,lt,Gt){return Ot.apply(this,arguments)}function Ot(){return(Ot=(0,U.A)(function*(ie,ct,lt,Gt){return function Zn(ie){const lt=function rr(ie){const ct=ie.getReader();return new ReadableStream({start(Gt){let tn="";return function _n(){return ct.read().then(({value:qn,done:hn})=>{if(hn)return tn.trim()?void Gt.error(yt.create("parse-failed",{message:"Failed to parse stream"})):void Gt.close();tn+=qn;let tr,Cn=tn.match(Ln);for(;Cn;){try{tr=JSON.parse(Cn[1])}catch{return void Gt.error(yt.create("parse-failed",{message:`Error parsing JSON response: "${Cn[1]}"`}))}Gt.enqueue(tr),tn=tn.substring(Cn[0].length),Cn=tn.match(Ln)}return _n()})}()}})}(ie.body.pipeThrough(new TextDecoderStream("utf8",{fatal:!0}))),[Gt,tn]=lt.tee();return{stream:yr(Gt),response:nr(tn)}}(yield at(ct,mt.STREAM_GENERATE_CONTENT,ie,!0,JSON.stringify(lt),Gt))})).apply(this,arguments)}function zt(ie,ct,lt,Gt){return pn.apply(this,arguments)}function pn(){return(pn=(0,U.A)(function*(ie,ct,lt,Gt){return{response:Le(yield(yield at(ct,mt.GENERATE_CONTENT,ie,!1,JSON.stringify(lt),Gt)).json())}})).apply(this,arguments)}function gn(ie){if(null!=ie){if("string"==typeof ie)return{role:"system",parts:[{text:ie}]};if(ie.text)return{role:"system",parts:[ie]};if(ie.parts)return ie.role?ie:{role:"system",parts:ie.parts}}}function Sr(ie){let ct=[];if("string"==typeof ie)ct=[{text:ie}];else for(const lt of ie)ct.push("string"==typeof lt?{text:lt}:lt);return function Mn(ie){const ct={role:"user",parts:[]},lt={role:"function",parts:[]};let Gt=!1,tn=!1;for(const _n of ie)"functionResponse"in _n?(lt.parts.push(_n),tn=!0):(ct.parts.push(_n),Gt=!0);if(Gt&&tn)throw yt.create("invalid-content",{message:"Within a single message, FunctionResponse cannot be mixed with other type of part in the request for sending chat message."});if(!Gt&&!tn)throw yt.create("invalid-content",{message:"No content is provided for sending chat message."});return Gt?ct:lt}(ct)}function xn(ie){let ct;return ct=ie.contents?ie:{contents:[Sr(ie)]},ie.systemInstruction&&(ct.systemInstruction=gn(ie.systemInstruction)),ct}const mn=["text","inlineData","functionCall","functionResponse"],en={user:["text","inlineData"],function:["functionResponse"],model:["text","functionCall"],system:["text"]},Er={user:["model"],function:["model"],model:["user","function"],system:[]},Nr="SILENT_ERROR";class Qn{constructor(ct,lt,Gt,tn){this.model=lt,this.params=Gt,this.requestOptions=tn,this._history=[],this._sendPromise=Promise.resolve(),this._apiSettings=ct,null!=Gt&&Gt.history&&(function Ir(ie){let ct=null;for(const lt of ie){const{role:Gt,parts:tn}=lt;if(!ct&&"user"!==Gt)throw yt.create("invalid-content",{message:`First content should be with role 'user', got ${Gt}`});if(!Nt.includes(Gt))throw yt.create("invalid-content",{message:`Each item should include role field. Got ${Gt} but valid roles are: ${JSON.stringify(Nt)}`});if(!Array.isArray(tn))throw yt.create("invalid-content",{message:"Content should have 'parts' property with an array of Parts"});if(0===tn.length)throw yt.create("invalid-content",{message:"Each Content should have at least one part"});const _n={text:0,inlineData:0,functionCall:0,functionResponse:0};for(const hn of tn)for(const Cn of mn)Cn in hn&&(_n[Cn]+=1);const qn=en[Gt];for(const hn of mn)if(!qn.includes(hn)&&_n[hn]>0)throw yt.create("invalid-content",{message:`Content with role '${Gt}' can't contain '${hn}' part`});if(ct&&!Er[Gt].includes(ct.role))throw yt.create("invalid-content",{message:`Content with role '${Gt}' can't follow '${ct.role}'. Valid previous roles: ${JSON.stringify(Er)}`});ct=lt}}(Gt.history),this._history=Gt.history)}getHistory(){var ct=this;return(0,U.A)(function*(){return yield ct._sendPromise,ct._history})()}sendMessage(ct){var lt=this;return(0,U.A)(function*(){var Gt,tn,_n,qn,hn;yield lt._sendPromise;const Cn=Sr(ct),tr={safetySettings:null===(Gt=lt.params)||void 0===Gt?void 0:Gt.safetySettings,generationConfig:null===(tn=lt.params)||void 0===tn?void 0:tn.generationConfig,tools:null===(_n=lt.params)||void 0===_n?void 0:_n.tools,toolConfig:null===(qn=lt.params)||void 0===qn?void 0:qn.toolConfig,systemInstruction:null===(hn=lt.params)||void 0===hn?void 0:hn.systemInstruction,contents:[...lt._history,Cn]};let Ar={};return lt._sendPromise=lt._sendPromise.then(()=>zt(lt._apiSettings,lt.model,tr,lt.requestOptions)).then(dr=>{var $r,Zr;if(dr.response.candidates&&dr.response.candidates.length>0){lt._history.push(Cn);const fr={parts:(null===($r=dr.response.candidates)||void 0===$r?void 0:$r[0].content.parts)||[],role:(null===(Zr=dr.response.candidates)||void 0===Zr?void 0:Zr[0].content.role)||"model"};lt._history.push(fr)}else{const fr=rn(dr.response);fr&&console.warn(`sendMessage() was unsuccessful. ${fr}. Inspect response object for details.`)}Ar=dr}),yield lt._sendPromise,Ar})()}sendMessageStream(ct){var lt=this;return(0,U.A)(function*(){var Gt,tn,_n,qn,hn;yield lt._sendPromise;const Cn=Sr(ct),tr={safetySettings:null===(Gt=lt.params)||void 0===Gt?void 0:Gt.safetySettings,generationConfig:null===(tn=lt.params)||void 0===tn?void 0:tn.generationConfig,tools:null===(_n=lt.params)||void 0===_n?void 0:_n.tools,toolConfig:null===(qn=lt.params)||void 0===qn?void 0:qn.toolConfig,systemInstruction:null===(hn=lt.params)||void 0===hn?void 0:hn.systemInstruction,contents:[...lt._history,Cn]},Ar=nt(lt._apiSettings,lt.model,tr,lt.requestOptions);return lt._sendPromise=lt._sendPromise.then(()=>Ar).catch(dr=>{throw new Error(Nr)}).then(dr=>dr.response).then(dr=>{if(dr.candidates&&dr.candidates.length>0){lt._history.push(Cn);const $r=Object.assign({},dr.candidates[0].content);$r.role||($r.role="model"),lt._history.push($r)}else{const $r=rn(dr);$r&&console.warn(`sendMessageStream() was unsuccessful. ${$r}. Inspect response object for details.`)}}).catch(dr=>{dr.message!==Nr&&console.error(dr)}),Ar})()}}function Jn(){return(Jn=(0,U.A)(function*(ie,ct,lt,Gt){return(yield at(ct,mt.COUNT_TOKENS,ie,!1,JSON.stringify(lt),Gt)).json()})).apply(this,arguments)}class Jr{constructor(ct,lt,Gt){var tn,_n,qn,hn;if(null===(_n=null===(tn=ct.app)||void 0===tn?void 0:tn.options)||void 0===_n||!_n.apiKey)throw yt.create("no-api-key");if(null===(hn=null===(qn=ct.app)||void 0===qn?void 0:qn.options)||void 0===hn||!hn.projectId)throw yt.create("no-project-id");this._apiSettings={apiKey:ct.app.options.apiKey,project:ct.app.options.projectId,location:ct.location},ct.appCheck&&(this._apiSettings.getAppCheckToken=()=>ct.appCheck.getToken()),ct.auth&&(this._apiSettings.getAuthToken=()=>ct.auth.getToken()),this.model=lt.model.includes("/")?lt.model.startsWith("models/")?`publishers/google/${lt.model}`:lt.model:`publishers/google/models/${lt.model}`,this.generationConfig=lt.generationConfig||{},this.safetySettings=lt.safetySettings||[],this.tools=lt.tools,this.toolConfig=lt.toolConfig,this.systemInstruction=gn(lt.systemInstruction),this.requestOptions=Gt||{}}generateContent(ct){var lt=this;return(0,U.A)(function*(){const Gt=xn(ct);return zt(lt._apiSettings,lt.model,Object.assign({generationConfig:lt.generationConfig,safetySettings:lt.safetySettings,tools:lt.tools,toolConfig:lt.toolConfig,systemInstruction:lt.systemInstruction},Gt),lt.requestOptions)})()}generateContentStream(ct){var lt=this;return(0,U.A)(function*(){const Gt=xn(ct);return nt(lt._apiSettings,lt.model,Object.assign({generationConfig:lt.generationConfig,safetySettings:lt.safetySettings,tools:lt.tools,toolConfig:lt.toolConfig,systemInstruction:lt.systemInstruction},Gt),lt.requestOptions)})()}startChat(ct){return new Qn(this._apiSettings,this.model,Object.assign({tools:this.tools,toolConfig:this.toolConfig,systemInstruction:this.systemInstruction},ct),this.requestOptions)}countTokens(ct){var lt=this;return(0,U.A)(function*(){const Gt=xn(ct);return function Dr(ie,ct,lt,Gt){return Jn.apply(this,arguments)}(lt._apiSettings,lt.model,Gt)})()}}function mr(ie=(0,ue.Sx)(),ct){return ie=(0,Xe.Ku)(ie),(0,ue.j6)(ie,Qe).getImmediate({identifier:(null==ct?void 0:ct.location)||Ze})}function ur(ie,ct,lt){if(!ct.model)throw yt.create("no-model");return new Jr(ie,ct,lt)}!function Pr(){(0,ue.om)(new oe.uA(Qe,(ie,{instanceIdentifier:ct})=>{const lt=ie.getProvider("app").getImmediate(),Gt=ie.getProvider("auth-internal"),tn=ie.getProvider("app-check-internal");return new _t(lt,Gt,tn,{location:ct})},"PUBLIC").setMultipleInstances(!0)),(0,ue.KO)(Se,Ce),(0,ue.KO)(Se,Ce,"esm2017")}();class cr{constructor(ct){return ct}}const kr="vertexai",Qr=new c.nKC("angularfire2.vertexai-instances");function rt(ie){return(ct,lt)=>{const Gt=ct.runOutsideAngular(()=>ie(lt));return new cr(Gt)}}const Mt={provide:class ii{constructor(){return(0,h.CA)(kr)}},deps:[[new c.Xx1,Qr]]},ut={provide:cr,useFactory:function pe(ie,ct){const lt=(0,h.lR)(kr,ie,ct);return lt&&new cr(lt)},deps:[[new c.Xx1,Qr],Z.XU]};function ye(ie,...ct){return(0,Oe.KO)("angularfire",h.xv.full,"vertexai"),(0,c.EmA)([ut,Mt,{provide:Qr,useFactory:rt(ie),multi:!0,deps:[c.SKi,c.zZn,h.u0,Z.gL,[new c.Xx1,h.Jv],...ct]}])}const He=(0,h.S3)(mr,!0),Lt=(0,h.S3)(ur,!0)},5407:(Tn,gt,S)=>{"use strict";S.d(gt,{xv:()=>ht,u0:()=>ge,Jv:()=>Tt,CA:()=>_t,lR:()=>St,S3:()=>on});var h=S(9842),c=S(4438),Z=S(2214),Oe=S(6780),ue=S(9687);const Xe=new class oe extends ue.q{}(class U extends Oe.R{constructor(we,H){super(we,H),this.scheduler=we,this.work=H}schedule(we,H=0){return H>0?super.schedule(we,H):(this.delay=H,this.state=we,this.scheduler.flush(this),this)}execute(we,H){return H>0||this.closed?super.execute(we,H):this._execute(we,H)}requestAsyncId(we,H,X=0){return null!=X&&X>0||null==X&&this.delay>0?super.requestAsyncId(we,H,X):(we.flush(this),0)}});var Se=S(3236),Ce=S(1985),Qe=S(8141),Ze=S(6745),qe=S(941);const ht=new c.RxE("ANGULARFIRE2_VERSION");function St(dt,we,H){if(we){if(1===we.length)return we[0];const se=we.filter(ve=>ve.app===H);if(1===se.length)return se[0]}return H.container.getProvider(dt).getImmediate({optional:!0})}const _t=(dt,we)=>{const H=we?[we]:(0,Z.Dk)(),X=[];return H.forEach(fe=>{fe.container.getProvider(dt).instances.forEach(ve=>{X.includes(ve)||X.push(ve)})}),X};class Tt{constructor(){return _t(yt)}}const yt="app-check";function mt(){}class Me{constructor(we,H=Xe){(0,h.A)(this,"zone",void 0),(0,h.A)(this,"delegate",void 0),this.zone=we,this.delegate=H}now(){return this.delegate.now()}schedule(we,H,X){const fe=this.zone;return this.delegate.schedule(function(ve){fe.runGuarded(()=>{we.apply(this,[ve])})},H,X)}}class Ye{constructor(we){(0,h.A)(this,"zone",void 0),(0,h.A)(this,"task",null),this.zone=we}call(we,H){const X=this.unscheduleTask.bind(this);return this.task=this.zone.run(()=>Zone.current.scheduleMacroTask("firebaseZoneBlock",mt,{},mt,mt)),H.pipe((0,Qe.M)({next:X,complete:X,error:X})).subscribe(we).add(X)}unscheduleTask(){setTimeout(()=>{null!=this.task&&"scheduled"===this.task.state&&(this.task.invoke(),this.task=null)},10)}}let ge=(()=>{var dt;class we{constructor(X){(0,h.A)(this,"ngZone",void 0),(0,h.A)(this,"outsideAngular",void 0),(0,h.A)(this,"insideAngular",void 0),this.ngZone=X,this.outsideAngular=X.runOutsideAngular(()=>new Me(Zone.current)),this.insideAngular=X.run(()=>new Me(Zone.current,Se.E)),globalThis.\u0275AngularFireScheduler||(globalThis.\u0275AngularFireScheduler=this)}}return dt=we,(0,h.A)(we,"\u0275fac",function(X){return new(X||dt)(c.KVO(c.SKi))}),(0,h.A)(we,"\u0275prov",c.jDH({token:dt,factory:dt.\u0275fac,providedIn:"root"})),we})();function Ue(){const dt=globalThis.\u0275AngularFireScheduler;if(!dt)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 dt}function xe(dt){return Ue().ngZone.run(()=>dt())}function vn(dt){return function Nt(dt){return function(H){return(H=H.lift(new Ye(dt.ngZone))).pipe((0,Ze._)(dt.outsideAngular),(0,qe.Q)(dt.insideAngular))}}(Ue())(dt)}const tt=(dt,we)=>function(){const X=arguments;return we&&setTimeout(()=>{"scheduled"===we.state&&we.invoke()},10),xe(()=>dt.apply(void 0,X))},on=(dt,we)=>function(){let H;const X=arguments;for(let se=0;seZone.current.scheduleMacroTask("firebaseZoneBlock",mt,{},mt,mt)))),X[se]=tt(X[se],H));const fe=function Fe(dt){return Ue().ngZone.runOutsideAngular(()=>dt())}(()=>dt.apply(this,X));if(!we){if(fe instanceof Ce.c){const se=Ue();return fe.pipe((0,Ze._)(se.outsideAngular),(0,qe.Q)(se.insideAngular))}return xe(()=>fe)}return fe instanceof Ce.c?fe.pipe(vn):fe instanceof Promise?xe(()=>new Promise((se,ve)=>fe.then(Le=>xe(()=>se(Le)),Le=>xe(()=>ve(Le))))):"function"==typeof fe&&H?function(){return setTimeout(()=>{H&&"scheduled"===H.state&&H.invoke()},10),fe.apply(this,arguments)}:xe(()=>fe)}},4341:(Tn,gt,S)=>{"use strict";S.d(gt,{YN:()=>ha,zX:()=>ki,VZ:()=>as,cz:()=>ge,kq:()=>ht,vO:()=>zt,BC:()=>Mn,vS:()=>bt});var h=S(4438),c=S(177),Z=S(8455),Oe=S(1985),U=S(3073),ue=S(8750),oe=S(9326),Xe=S(4360),Je=S(6450),Se=S(8496),Qe=S(6354);let Ze=(()=>{var K;class N{constructor(G,ke){this._renderer=G,this._elementRef=ke,this.onChange=yn=>{},this.onTouched=()=>{}}setProperty(G,ke){this._renderer.setProperty(this._elementRef.nativeElement,G,ke)}registerOnTouched(G){this.onTouched=G}registerOnChange(G){this.onChange=G}setDisabledState(G){this.setProperty("disabled",G)}}return(K=N).\u0275fac=function(G){return new(G||K)(h.rXU(h.sFG),h.rXU(h.aKT))},K.\u0275dir=h.FsC({type:K}),N})(),qe=(()=>{var K;class N extends Ze{}return(K=N).\u0275fac=(()=>{let Ae;return function(ke){return(Ae||(Ae=h.xGo(K)))(ke||K)}})(),K.\u0275dir=h.FsC({type:K,features:[h.Vt3]}),N})();const ht=new h.nKC(""),_t={provide:ht,useExisting:(0,h.Rfq)(()=>mt),multi:!0},yt=new h.nKC("");let mt=(()=>{var K;class N extends Ze{constructor(G,ke,yn){super(G,ke),this._compositionMode=yn,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function Tt(){const K=(0,c.QT)()?(0,c.QT)().getUserAgent():"";return/android (\d+)/.test(K.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(K=N).\u0275fac=function(G){return new(G||K)(h.rXU(h.sFG),h.rXU(h.aKT),h.rXU(yt,8))},K.\u0275dir=h.FsC({type:K,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,ke){1&G&&h.bIt("input",function(Xn){return ke._handleInput(Xn.target.value)})("blur",function(){return ke.onTouched()})("compositionstart",function(){return ke._compositionStart()})("compositionend",function(Xn){return ke._compositionEnd(Xn.target.value)})},features:[h.Jv_([_t]),h.Vt3]}),N})();function Me(K){return null==K||("string"==typeof K||Array.isArray(K))&&0===K.length}const ge=new h.nKC(""),Ue=new h.nKC("");function H(K){return null}function X(K){return null!=K}function fe(K){return(0,h.jNT)(K)?(0,Z.H)(K):K}function se(K){let N={};return K.forEach(Ae=>{N=null!=Ae?{...N,...Ae}:N}),0===Object.keys(N).length?null:N}function ve(K,N){return N.map(Ae=>Ae(K))}function De(K){return K.map(N=>function Le(K){return!K.validate}(N)?N:Ae=>N.validate(Ae))}function dn(K){return null!=K?function Wt(K){if(!K)return null;const N=K.filter(X);return 0==N.length?null:function(Ae){return se(ve(Ae,N))}}(De(K)):null}function rn(K){return null!=K?function Kt(K){if(!K)return null;const N=K.filter(X);return 0==N.length?null:function(Ae){return function Ce(...K){const N=(0,oe.ms)(K),{args:Ae,keys:G}=(0,U.D)(K),ke=new Oe.c(yn=>{const{length:Xn}=Ae;if(!Xn)return void yn.complete();const wr=new Array(Xn);let oo=Xn,wo=Xn;for(let So=0;So{Yo||(Yo=!0,wo--),wr[So]=Fa},()=>oo--,void 0,()=>{(!oo||!Yo)&&(wo||yn.next(G?(0,Se.e)(G,wr):wr),yn.complete())}))}});return N?ke.pipe((0,Je.I)(N)):ke}(ve(Ae,N).map(fe)).pipe((0,Qe.T)(se))}}(De(K)):null}function Ln(K,N){return null===K?[N]:Array.isArray(K)?[...K,N]:[K,N]}function er(K){return K?Array.isArray(K)?K:[K]:[]}function yr(K,N){return Array.isArray(K)?K.includes(N):K===N}function rr(K,N){const Ae=er(N);return er(K).forEach(ke=>{yr(Ae,ke)||Ae.push(ke)}),Ae}function ir(K,N){return er(N).filter(Ae=>!yr(K,Ae))}class nt{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(N){this._rawValidators=N||[],this._composedValidatorFn=dn(this._rawValidators)}_setAsyncValidators(N){this._rawAsyncValidators=N||[],this._composedAsyncValidatorFn=rn(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(N){this._onDestroyCallbacks.push(N)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(N=>N()),this._onDestroyCallbacks=[]}reset(N=void 0){this.control&&this.control.reset(N)}hasError(N,Ae){return!!this.control&&this.control.hasError(N,Ae)}getError(N,Ae){return this.control?this.control.getError(N,Ae):null}}class Ot extends nt{get formDirective(){return null}get path(){return null}}class zt extends nt{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class pn{constructor(N){this._cd=N}get isTouched(){var N;return!(null===(N=this._cd)||void 0===N||null===(N=N.control)||void 0===N||!N.touched)}get isUntouched(){var N;return!(null===(N=this._cd)||void 0===N||null===(N=N.control)||void 0===N||!N.untouched)}get isPristine(){var N;return!(null===(N=this._cd)||void 0===N||null===(N=N.control)||void 0===N||!N.pristine)}get isDirty(){var N;return!(null===(N=this._cd)||void 0===N||null===(N=N.control)||void 0===N||!N.dirty)}get isValid(){var N;return!(null===(N=this._cd)||void 0===N||null===(N=N.control)||void 0===N||!N.valid)}get isInvalid(){var N;return!(null===(N=this._cd)||void 0===N||null===(N=N.control)||void 0===N||!N.invalid)}get isPending(){var N;return!(null===(N=this._cd)||void 0===N||null===(N=N.control)||void 0===N||!N.pending)}get isSubmitted(){var N;return!(null===(N=this._cd)||void 0===N||!N.submitted)}}let Mn=(()=>{var K;class N extends pn{constructor(G){super(G)}}return(K=N).\u0275fac=function(G){return new(G||K)(h.rXU(zt,2))},K.\u0275dir=h.FsC({type:K,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(G,ke){2&G&&h.AVh("ng-untouched",ke.isUntouched)("ng-touched",ke.isTouched)("ng-pristine",ke.isPristine)("ng-dirty",ke.isDirty)("ng-valid",ke.isValid)("ng-invalid",ke.isInvalid)("ng-pending",ke.isPending)},features:[h.Vt3]}),N})();const pe="VALID",rt="INVALID",Mt="PENDING",ut="DISABLED";function ie(K){return null!=K&&!Array.isArray(K)&&"object"==typeof K}class Gt{constructor(N,Ae){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(N),this._assignAsyncValidators(Ae)}get validator(){return this._composedValidatorFn}set validator(N){this._rawValidators=this._composedValidatorFn=N}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(N){this._rawAsyncValidators=this._composedAsyncValidatorFn=N}get parent(){return this._parent}get valid(){return this.status===pe}get invalid(){return this.status===rt}get pending(){return this.status==Mt}get disabled(){return this.status===ut}get enabled(){return this.status!==ut}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(N){this._assignValidators(N)}setAsyncValidators(N){this._assignAsyncValidators(N)}addValidators(N){this.setValidators(rr(N,this._rawValidators))}addAsyncValidators(N){this.setAsyncValidators(rr(N,this._rawAsyncValidators))}removeValidators(N){this.setValidators(ir(N,this._rawValidators))}removeAsyncValidators(N){this.setAsyncValidators(ir(N,this._rawAsyncValidators))}hasValidator(N){return yr(this._rawValidators,N)}hasAsyncValidator(N){return yr(this._rawAsyncValidators,N)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(N={}){this.touched=!0,this._parent&&!N.onlySelf&&this._parent.markAsTouched(N)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(N=>N.markAllAsTouched())}markAsUntouched(N={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(Ae=>{Ae.markAsUntouched({onlySelf:!0})}),this._parent&&!N.onlySelf&&this._parent._updateTouched(N)}markAsDirty(N={}){this.pristine=!1,this._parent&&!N.onlySelf&&this._parent.markAsDirty(N)}markAsPristine(N={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(Ae=>{Ae.markAsPristine({onlySelf:!0})}),this._parent&&!N.onlySelf&&this._parent._updatePristine(N)}markAsPending(N={}){this.status=Mt,!1!==N.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!N.onlySelf&&this._parent.markAsPending(N)}disable(N={}){const Ae=this._parentMarkedDirty(N.onlySelf);this.status=ut,this.errors=null,this._forEachChild(G=>{G.disable({...N,onlySelf:!0})}),this._updateValue(),!1!==N.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...N,skipPristineCheck:Ae}),this._onDisabledChange.forEach(G=>G(!0))}enable(N={}){const Ae=this._parentMarkedDirty(N.onlySelf);this.status=pe,this._forEachChild(G=>{G.enable({...N,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:N.emitEvent}),this._updateAncestors({...N,skipPristineCheck:Ae}),this._onDisabledChange.forEach(G=>G(!1))}_updateAncestors(N){this._parent&&!N.onlySelf&&(this._parent.updateValueAndValidity(N),N.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(N){this._parent=N}getRawValue(){return this.value}updateValueAndValidity(N={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===pe||this.status===Mt)&&this._runAsyncValidator(N.emitEvent)),!1!==N.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!N.onlySelf&&this._parent.updateValueAndValidity(N)}_updateTreeValidity(N={emitEvent:!0}){this._forEachChild(Ae=>Ae._updateTreeValidity(N)),this.updateValueAndValidity({onlySelf:!0,emitEvent:N.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?ut:pe}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(N){if(this.asyncValidator){this.status=Mt,this._hasOwnPendingAsyncValidator=!0;const Ae=fe(this.asyncValidator(this));this._asyncValidationSubscription=Ae.subscribe(G=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(G,{emitEvent:N})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(N,Ae={}){this.errors=N,this._updateControlsErrors(!1!==Ae.emitEvent)}get(N){let Ae=N;return null==Ae||(Array.isArray(Ae)||(Ae=Ae.split(".")),0===Ae.length)?null:Ae.reduce((G,ke)=>G&&G._find(ke),this)}getError(N,Ae){const G=Ae?this.get(Ae):this;return G&&G.errors?G.errors[N]:null}hasError(N,Ae){return!!this.getError(N,Ae)}get root(){let N=this;for(;N._parent;)N=N._parent;return N}_updateControlsErrors(N){this.status=this._calculateStatus(),N&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(N)}_initObservables(){this.valueChanges=new h.bkB,this.statusChanges=new h.bkB}_calculateStatus(){return this._allControlsDisabled()?ut:this.errors?rt:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Mt)?Mt:this._anyControlsHaveStatus(rt)?rt:pe}_anyControlsHaveStatus(N){return this._anyControls(Ae=>Ae.status===N)}_anyControlsDirty(){return this._anyControls(N=>N.dirty)}_anyControlsTouched(){return this._anyControls(N=>N.touched)}_updatePristine(N={}){this.pristine=!this._anyControlsDirty(),this._parent&&!N.onlySelf&&this._parent._updatePristine(N)}_updateTouched(N={}){this.touched=this._anyControlsTouched(),this._parent&&!N.onlySelf&&this._parent._updateTouched(N)}_registerOnCollectionChange(N){this._onCollectionChange=N}_setUpdateStrategy(N){ie(N)&&null!=N.updateOn&&(this._updateOn=N.updateOn)}_parentMarkedDirty(N){return!N&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(N){return null}_assignValidators(N){this._rawValidators=Array.isArray(N)?N.slice():N,this._composedValidatorFn=function ye(K){return Array.isArray(K)?dn(K):K||null}(this._rawValidators)}_assignAsyncValidators(N){this._rawAsyncValidators=Array.isArray(N)?N.slice():N,this._composedAsyncValidatorFn=function Lt(K){return Array.isArray(K)?rn(K):K||null}(this._rawAsyncValidators)}}const Ar=new h.nKC("CallSetDisabledState",{providedIn:"root",factory:()=>dr}),dr="always";function Zr(K,N,Ae=dr){var G,ke;(function pr(K,N){const Ae=function Zn(K){return K._rawValidators}(K);null!==N.validator?K.setValidators(Ln(Ae,N.validator)):"function"==typeof Ae&&K.setValidators([Ae]);const G=function nr(K){return K._rawAsyncValidators}(K);null!==N.asyncValidator?K.setAsyncValidators(Ln(G,N.asyncValidator)):"function"==typeof G&&K.setAsyncValidators([G]);const ke=()=>K.updateValueAndValidity();Ri(N._rawValidators,ke),Ri(N._rawAsyncValidators,ke)})(K,N),N.valueAccessor.writeValue(K.value),(K.disabled||"always"===Ae)&&(null===(G=(ke=N.valueAccessor).setDisabledState)||void 0===G||G.call(ke,K.disabled)),function te(K,N){N.valueAccessor.registerOnChange(Ae=>{K._pendingValue=Ae,K._pendingChange=!0,K._pendingDirty=!0,"change"===K.updateOn&&ze(K,N)})}(K,N),function M(K,N){const Ae=(G,ke)=>{N.valueAccessor.writeValue(G),ke&&N.viewToModelUpdate(G)};K.registerOnChange(Ae),N._registerOnDestroy(()=>{K._unregisterOnChange(Ae)})}(K,N),function ee(K,N){N.valueAccessor.registerOnTouched(()=>{K._pendingTouched=!0,"blur"===K.updateOn&&K._pendingChange&&ze(K,N),"submit"!==K.updateOn&&K.markAsTouched()})}(K,N),function gi(K,N){if(N.valueAccessor.setDisabledState){const Ae=G=>{N.valueAccessor.setDisabledState(G)};K.registerOnDisabledChange(Ae),N._registerOnDestroy(()=>{K._unregisterOnDisabledChange(Ae)})}}(K,N)}function Ri(K,N){K.forEach(Ae=>{Ae.registerOnValidatorChange&&Ae.registerOnValidatorChange(N)})}function ze(K,N){K._pendingDirty&&K.markAsDirty(),K.setValue(K._pendingValue,{emitModelToViewChange:!1}),N.viewToModelUpdate(K._pendingValue),K._pendingChange=!1}function Cr(K,N){const Ae=K.indexOf(N);Ae>-1&&K.splice(Ae,1)}function ai(K){return"object"==typeof K&&null!==K&&2===Object.keys(K).length&&"value"in K&&"disabled"in K}Promise.resolve();const li=class extends Gt{constructor(N=null,Ae,G){super(function ce(K){return(ie(K)?K.validators:K)||null}(Ae),function He(K,N){return(ie(N)?N.asyncValidators:K)||null}(G,Ae)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(N),this._setUpdateStrategy(Ae),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),ie(Ae)&&(Ae.nonNullable||Ae.initialValueIsDefault)&&(this.defaultValue=ai(N)?N.value:N)}setValue(N,Ae={}){this.value=this._pendingValue=N,this._onChange.length&&!1!==Ae.emitModelToViewChange&&this._onChange.forEach(G=>G(this.value,!1!==Ae.emitViewToModelChange)),this.updateValueAndValidity(Ae)}patchValue(N,Ae={}){this.setValue(N,Ae)}reset(N=this.defaultValue,Ae={}){this._applyFormState(N),this.markAsPristine(Ae),this.markAsUntouched(Ae),this.setValue(this.value,Ae),this._pendingChange=!1}_updateValue(){}_anyControls(N){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(N){this._onChange.push(N)}_unregisterOnChange(N){Cr(this._onChange,N)}registerOnDisabledChange(N){this._onDisabledChange.push(N)}_unregisterOnDisabledChange(N){Cr(this._onDisabledChange,N)}_forEachChild(N){}_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(N){ai(N)?(this.value=this._pendingValue=N.value,N.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=N}},No={provide:zt,useExisting:(0,h.Rfq)(()=>bt)},oi=Promise.resolve();let bt=(()=>{var K;class N extends zt{constructor(G,ke,yn,Xn,wr,oo){super(),this._changeDetectorRef=wr,this.callSetDisabledState=oo,this.control=new li,this._registered=!1,this.name="",this.update=new h.bkB,this._parent=G,this._setValidators(ke),this._setAsyncValidators(yn),this.valueAccessor=function On(K,N){if(!N)return null;let Ae,G,ke;return Array.isArray(N),N.forEach(yn=>{yn.constructor===mt?Ae=yn:function Un(K){return Object.getPrototypeOf(K.constructor)===qe}(yn)?G=yn:ke=yn}),ke||G||Ae||null}(0,Xn)}ngOnChanges(G){if(this._checkForErrors(),!this._registered||"name"in G){if(this._registered&&(this._checkName(),this.formDirective)){const ke=G.name.previousValue;this.formDirective.removeControl({name:ke,path:this._getPath(ke)})}this._setUpControl()}"isDisabled"in G&&this._updateDisabled(G),function or(K,N){if(!K.hasOwnProperty("model"))return!1;const Ae=K.model;return!!Ae.isFirstChange()||!Object.is(N,Ae.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(){Zr(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){oi.then(()=>{var ke;this.control.setValue(G,{emitViewToModelChange:!1}),null===(ke=this._changeDetectorRef)||void 0===ke||ke.markForCheck()})}_updateDisabled(G){const ke=G.isDisabled.currentValue,yn=0!==ke&&(0,h.L39)(ke);oi.then(()=>{var Xn;yn&&!this.control.disabled?this.control.disable():!yn&&this.control.disabled&&this.control.enable(),null===(Xn=this._changeDetectorRef)||void 0===Xn||Xn.markForCheck()})}_getPath(G){return this._parent?function $r(K,N){return[...N.path,K]}(G,this._parent):[G]}}return(K=N).\u0275fac=function(G){return new(G||K)(h.rXU(Ot,9),h.rXU(ge,10),h.rXU(Ue,10),h.rXU(ht,10),h.rXU(h.gRc,8),h.rXU(Ar,8))},K.\u0275dir=h.FsC({type:K,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[h.Mj6.None,"disabled","isDisabled"],model:[h.Mj6.None,"ngModel","model"],options:[h.Mj6.None,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[h.Jv_([No]),h.Vt3,h.OA$]}),N})();function br(K){return"number"==typeof K?K:parseFloat(K)}let wi=(()=>{var K;class N{constructor(){this._validator=H}ngOnChanges(G){if(this.inputName in G){const ke=this.normalizeInput(G[this.inputName].currentValue);this._enabled=this.enabled(ke),this._validator=this._enabled?this.createValidator(ke):H,this._onChange&&this._onChange()}}validate(G){return this._validator(G)}registerOnValidatorChange(G){this._onChange=G}enabled(G){return null!=G}}return(K=N).\u0275fac=function(G){return new(G||K)},K.\u0275dir=h.FsC({type:K,features:[h.OA$]}),N})();const Ni={provide:ge,useExisting:(0,h.Rfq)(()=>ki),multi:!0};let ki=(()=>{var K;class N extends wi{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=G=>br(G),this.createValidator=G=>function Rt(K){return N=>{if(Me(N.value)||Me(K))return null;const Ae=parseFloat(N.value);return!isNaN(Ae)&&Ae>K?{max:{max:K,actual:N.value}}:null}}(G)}}return(K=N).\u0275fac=(()=>{let Ae;return function(ke){return(Ae||(Ae=h.xGo(K)))(ke||K)}})(),K.\u0275dir=h.FsC({type:K,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(G,ke){2&G&&h.BMQ("max",ke._enabled?ke.max:null)},inputs:{max:"max"},features:[h.Jv_([Ni]),h.Vt3]}),N})();const ho={provide:ge,useExisting:(0,h.Rfq)(()=>as),multi:!0};let as=(()=>{var K;class N extends wi{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=G=>br(G),this.createValidator=G=>function at(K){return N=>{if(Me(N.value)||Me(K))return null;const Ae=parseFloat(N.value);return!isNaN(Ae)&&Ae{let Ae;return function(ke){return(Ae||(Ae=h.xGo(K)))(ke||K)}})(),K.\u0275dir=h.FsC({type:K,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(G,ke){2&G&&h.BMQ("min",ke._enabled?ke.min:null)},inputs:{min:"min"},features:[h.Jv_([ho]),h.Vt3]}),N})(),ls=(()=>{var K;class N{}return(K=N).\u0275fac=function(G){return new(G||K)},K.\u0275mod=h.$C({type:K}),K.\u0275inj=h.G2t({}),N})(),ha=(()=>{var K;class N{static withConfig(G){var ke;return{ngModule:N,providers:[{provide:Ar,useValue:null!==(ke=G.callSetDisabledState)&&void 0!==ke?ke:dr}]}}}return(K=N).\u0275fac=function(G){return new(G||K)},K.\u0275mod=h.$C({type:K}),K.\u0275inj=h.G2t({imports:[ls]}),N})()},345:(Tn,gt,S)=>{"use strict";S.d(gt,{Bb:()=>er,hE:()=>ir,sG:()=>rn,up:()=>Dr});var h=S(4438),c=S(177);class Z extends c.VF{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class Oe extends Z{static makeCurrent(){(0,c.ZD)(new Oe)}onAndCancel(rt,Mt,ut){return rt.addEventListener(Mt,ut),()=>{rt.removeEventListener(Mt,ut)}}dispatchEvent(rt,Mt){rt.dispatchEvent(Mt)}remove(rt){rt.parentNode&&rt.parentNode.removeChild(rt)}createElement(rt,Mt){return(Mt=Mt||this.getDefaultDocument()).createElement(rt)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(rt){return rt.nodeType===Node.ELEMENT_NODE}isShadowRoot(rt){return rt instanceof DocumentFragment}getGlobalEventTarget(rt,Mt){return"window"===Mt?window:"document"===Mt?rt:"body"===Mt?rt.body:null}getBaseHref(rt){const Mt=function ue(){return U=U||document.querySelector("base"),U?U.getAttribute("href"):null}();return null==Mt?null:function oe(pe){return new URL(pe,document.baseURI).pathname}(Mt)}resetBaseElement(){U=null}getUserAgent(){return window.navigator.userAgent}getCookie(rt){return(0,c._b)(document.cookie,rt)}}let U=null,Je=(()=>{var pe;class rt{build(){return new XMLHttpRequest}}return(pe=rt).\u0275fac=function(ut){return new(ut||pe)},pe.\u0275prov=h.jDH({token:pe,factory:pe.\u0275fac}),rt})();const Se=new h.nKC("");let Ce=(()=>{var pe;class rt{constructor(ut,ce){this._zone=ce,this._eventNameToPlugin=new Map,ut.forEach(ye=>{ye.manager=this}),this._plugins=ut.slice().reverse()}addEventListener(ut,ce,ye){return this._findPluginFor(ce).addEventListener(ut,ce,ye)}getZone(){return this._zone}_findPluginFor(ut){let ce=this._eventNameToPlugin.get(ut);if(ce)return ce;if(ce=this._plugins.find(He=>He.supports(ut)),!ce)throw new h.wOt(5101,!1);return this._eventNameToPlugin.set(ut,ce),ce}}return(pe=rt).\u0275fac=function(ut){return new(ut||pe)(h.KVO(Se),h.KVO(h.SKi))},pe.\u0275prov=h.jDH({token:pe,factory:pe.\u0275fac}),rt})();class Qe{constructor(rt){this._doc=rt}}const Ze="ng-app-id";let qe=(()=>{var pe;class rt{constructor(ut,ce,ye,He={}){this.doc=ut,this.appId=ce,this.nonce=ye,this.platformId=He,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=(0,c.Vy)(He),this.resetHostNodes()}addStyles(ut){for(const ce of ut)1===this.changeUsageCount(ce,1)&&this.onStyleAdded(ce)}removeStyles(ut){for(const ce of ut)this.changeUsageCount(ce,-1)<=0&&this.onStyleRemoved(ce)}ngOnDestroy(){const ut=this.styleNodesInDOM;ut&&(ut.forEach(ce=>ce.remove()),ut.clear());for(const ce of this.getAllStyles())this.onStyleRemoved(ce);this.resetHostNodes()}addHost(ut){this.hostNodes.add(ut);for(const ce of this.getAllStyles())this.addStyleToHost(ut,ce)}removeHost(ut){this.hostNodes.delete(ut)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(ut){for(const ce of this.hostNodes)this.addStyleToHost(ce,ut)}onStyleRemoved(ut){var ce;const ye=this.styleRef;null===(ce=ye.get(ut))||void 0===ce||null===(ce=ce.elements)||void 0===ce||ce.forEach(He=>He.remove()),ye.delete(ut)}collectServerRenderedStyles(){var ut;const ce=null===(ut=this.doc.head)||void 0===ut?void 0:ut.querySelectorAll(`style[${Ze}="${this.appId}"]`);if(null!=ce&&ce.length){const ye=new Map;return ce.forEach(He=>{null!=He.textContent&&ye.set(He.textContent,He)}),ye}return null}changeUsageCount(ut,ce){const ye=this.styleRef;if(ye.has(ut)){const He=ye.get(ut);return He.usage+=ce,He.usage}return ye.set(ut,{usage:ce,elements:[]}),ce}getStyleElement(ut,ce){const ye=this.styleNodesInDOM,He=null==ye?void 0:ye.get(ce);if((null==He?void 0:He.parentNode)===ut)return ye.delete(ce),He.removeAttribute(Ze),He;{const Lt=this.doc.createElement("style");return this.nonce&&Lt.setAttribute("nonce",this.nonce),Lt.textContent=ce,this.platformIsServer&&Lt.setAttribute(Ze,this.appId),ut.appendChild(Lt),Lt}}addStyleToHost(ut,ce){var ye;const He=this.getStyleElement(ut,ce),Lt=this.styleRef,ie=null===(ye=Lt.get(ce))||void 0===ye?void 0:ye.elements;ie?ie.push(He):Lt.set(ce,{elements:[He],usage:1})}resetHostNodes(){const ut=this.hostNodes;ut.clear(),ut.add(this.doc.head)}}return(pe=rt).\u0275fac=function(ut){return new(ut||pe)(h.KVO(c.qQ),h.KVO(h.sZ2),h.KVO(h.BIS,8),h.KVO(h.Agw))},pe.\u0275prov=h.jDH({token:pe,factory:pe.\u0275fac}),rt})();const ht={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/"},Dt=/%COMP%/g,mt=new h.nKC("",{providedIn:"root",factory:()=>!0});function ge(pe,rt){return rt.map(Mt=>Mt.replace(Dt,pe))}let Ue=(()=>{var pe;class rt{constructor(ut,ce,ye,He,Lt,ie,ct,lt=null){this.eventManager=ut,this.sharedStylesHost=ce,this.appId=ye,this.removeStylesOnCompDestroy=He,this.doc=Lt,this.platformId=ie,this.ngZone=ct,this.nonce=lt,this.rendererByCompId=new Map,this.platformIsServer=(0,c.Vy)(ie),this.defaultRenderer=new Fe(ut,Lt,ct,this.platformIsServer)}createRenderer(ut,ce){if(!ut||!ce)return this.defaultRenderer;this.platformIsServer&&ce.encapsulation===h.gXe.ShadowDom&&(ce={...ce,encapsulation:h.gXe.Emulated});const ye=this.getOrCreateRenderer(ut,ce);return ye instanceof tt?ye.applyToHost(ut):ye instanceof Nt&&ye.applyStyles(),ye}getOrCreateRenderer(ut,ce){const ye=this.rendererByCompId;let He=ye.get(ce.id);if(!He){const Lt=this.doc,ie=this.ngZone,ct=this.eventManager,lt=this.sharedStylesHost,Gt=this.removeStylesOnCompDestroy,tn=this.platformIsServer;switch(ce.encapsulation){case h.gXe.Emulated:He=new tt(ct,lt,ce,this.appId,Gt,Lt,ie,tn);break;case h.gXe.ShadowDom:return new vn(ct,lt,ut,ce,Lt,ie,this.nonce,tn);default:He=new Nt(ct,lt,ce,Gt,Lt,ie,tn)}ye.set(ce.id,He)}return He}ngOnDestroy(){this.rendererByCompId.clear()}}return(pe=rt).\u0275fac=function(ut){return new(ut||pe)(h.KVO(Ce),h.KVO(qe),h.KVO(h.sZ2),h.KVO(mt),h.KVO(c.qQ),h.KVO(h.Agw),h.KVO(h.SKi),h.KVO(h.BIS))},pe.\u0275prov=h.jDH({token:pe,factory:pe.\u0275fac}),rt})();class Fe{constructor(rt,Mt,ut,ce){this.eventManager=rt,this.doc=Mt,this.ngZone=ut,this.platformIsServer=ce,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(rt,Mt){return Mt?this.doc.createElementNS(ht[Mt]||Mt,rt):this.doc.createElement(rt)}createComment(rt){return this.doc.createComment(rt)}createText(rt){return this.doc.createTextNode(rt)}appendChild(rt,Mt){(Rt(rt)?rt.content:rt).appendChild(Mt)}insertBefore(rt,Mt,ut){rt&&(Rt(rt)?rt.content:rt).insertBefore(Mt,ut)}removeChild(rt,Mt){rt&&rt.removeChild(Mt)}selectRootElement(rt,Mt){let ut="string"==typeof rt?this.doc.querySelector(rt):rt;if(!ut)throw new h.wOt(-5104,!1);return Mt||(ut.textContent=""),ut}parentNode(rt){return rt.parentNode}nextSibling(rt){return rt.nextSibling}setAttribute(rt,Mt,ut,ce){if(ce){Mt=ce+":"+Mt;const ye=ht[ce];ye?rt.setAttributeNS(ye,Mt,ut):rt.setAttribute(Mt,ut)}else rt.setAttribute(Mt,ut)}removeAttribute(rt,Mt,ut){if(ut){const ce=ht[ut];ce?rt.removeAttributeNS(ce,Mt):rt.removeAttribute(`${ut}:${Mt}`)}else rt.removeAttribute(Mt)}addClass(rt,Mt){rt.classList.add(Mt)}removeClass(rt,Mt){rt.classList.remove(Mt)}setStyle(rt,Mt,ut,ce){ce&(h.czy.DashCase|h.czy.Important)?rt.style.setProperty(Mt,ut,ce&h.czy.Important?"important":""):rt.style[Mt]=ut}removeStyle(rt,Mt,ut){ut&h.czy.DashCase?rt.style.removeProperty(Mt):rt.style[Mt]=""}setProperty(rt,Mt,ut){null!=rt&&(rt[Mt]=ut)}setValue(rt,Mt){rt.nodeValue=Mt}listen(rt,Mt,ut){if("string"==typeof rt&&!(rt=(0,c.QT)().getGlobalEventTarget(this.doc,rt)))throw new Error(`Unsupported event target ${rt} for event ${Mt}`);return this.eventManager.addEventListener(rt,Mt,this.decoratePreventDefault(ut))}decoratePreventDefault(rt){return Mt=>{if("__ngUnwrap__"===Mt)return rt;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>rt(Mt)):rt(Mt))&&Mt.preventDefault()}}}function Rt(pe){return"TEMPLATE"===pe.tagName&&void 0!==pe.content}class vn extends Fe{constructor(rt,Mt,ut,ce,ye,He,Lt,ie){super(rt,ye,He,ie),this.sharedStylesHost=Mt,this.hostEl=ut,this.shadowRoot=ut.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const ct=ge(ce.id,ce.styles);for(const lt of ct){const Gt=document.createElement("style");Lt&&Gt.setAttribute("nonce",Lt),Gt.textContent=lt,this.shadowRoot.appendChild(Gt)}}nodeOrShadowRoot(rt){return rt===this.hostEl?this.shadowRoot:rt}appendChild(rt,Mt){return super.appendChild(this.nodeOrShadowRoot(rt),Mt)}insertBefore(rt,Mt,ut){return super.insertBefore(this.nodeOrShadowRoot(rt),Mt,ut)}removeChild(rt,Mt){return super.removeChild(this.nodeOrShadowRoot(rt),Mt)}parentNode(rt){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(rt)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class Nt extends Fe{constructor(rt,Mt,ut,ce,ye,He,Lt,ie){super(rt,ye,He,Lt),this.sharedStylesHost=Mt,this.removeStylesOnCompDestroy=ce,this.styles=ie?ge(ie,ut.styles):ut.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class tt extends Nt{constructor(rt,Mt,ut,ce,ye,He,Lt,ie){const ct=ce+"-"+ut.id;super(rt,Mt,ut,ye,He,Lt,ie,ct),this.contentAttr=function Me(pe){return"_ngcontent-%COMP%".replace(Dt,pe)}(ct),this.hostAttr=function Ye(pe){return"_nghost-%COMP%".replace(Dt,pe)}(ct)}applyToHost(rt){this.applyStyles(),this.setAttribute(rt,this.hostAttr,"")}createElement(rt,Mt){const ut=super.createElement(rt,Mt);return super.setAttribute(ut,this.contentAttr,""),ut}}let on=(()=>{var pe;class rt extends Qe{constructor(ut){super(ut)}supports(ut){return!0}addEventListener(ut,ce,ye){return ut.addEventListener(ce,ye,!1),()=>this.removeEventListener(ut,ce,ye)}removeEventListener(ut,ce,ye){return ut.removeEventListener(ce,ye)}}return(pe=rt).\u0275fac=function(ut){return new(ut||pe)(h.KVO(c.qQ))},pe.\u0275prov=h.jDH({token:pe,factory:pe.\u0275fac}),rt})();const dt=["alt","control","meta","shift"],we={"\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"},H={alt:pe=>pe.altKey,control:pe=>pe.ctrlKey,meta:pe=>pe.metaKey,shift:pe=>pe.shiftKey};let X=(()=>{var pe;class rt extends Qe{constructor(ut){super(ut)}supports(ut){return null!=rt.parseEventName(ut)}addEventListener(ut,ce,ye){const He=rt.parseEventName(ce),Lt=rt.eventCallback(He.fullKey,ye,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,c.QT)().onAndCancel(ut,He.domEventName,Lt))}static parseEventName(ut){const ce=ut.toLowerCase().split("."),ye=ce.shift();if(0===ce.length||"keydown"!==ye&&"keyup"!==ye)return null;const He=rt._normalizeKey(ce.pop());let Lt="",ie=ce.indexOf("code");if(ie>-1&&(ce.splice(ie,1),Lt="code."),dt.forEach(lt=>{const Gt=ce.indexOf(lt);Gt>-1&&(ce.splice(Gt,1),Lt+=lt+".")}),Lt+=He,0!=ce.length||0===He.length)return null;const ct={};return ct.domEventName=ye,ct.fullKey=Lt,ct}static matchEventFullKeyCode(ut,ce){let ye=we[ut.key]||ut.key,He="";return ce.indexOf("code.")>-1&&(ye=ut.code,He="code."),!(null==ye||!ye)&&(ye=ye.toLowerCase()," "===ye?ye="space":"."===ye&&(ye="dot"),dt.forEach(Lt=>{Lt!==ye&&(0,H[Lt])(ut)&&(He+=Lt+".")}),He+=ye,He===ce)}static eventCallback(ut,ce,ye){return He=>{rt.matchEventFullKeyCode(He,ut)&&ye.runGuarded(()=>ce(He))}}static _normalizeKey(ut){return"esc"===ut?"escape":ut}}return(pe=rt).\u0275fac=function(ut){return new(ut||pe)(h.KVO(c.qQ))},pe.\u0275prov=h.jDH({token:pe,factory:pe.\u0275fac}),rt})();const rn=(0,h.oH4)(h.fpN,"browser",[{provide:h.Agw,useValue:c.AJ},{provide:h.PLl,useValue:function De(){Oe.makeCurrent()},multi:!0},{provide:c.qQ,useFactory:function dn(){return(0,h.TL$)(document),document},deps:[]}]),Ln=new h.nKC(""),Zn=[{provide:h.e01,useClass:class Xe{addToWindow(rt){h.JZv.getAngularTestability=(ut,ce=!0)=>{const ye=rt.findTestabilityInTree(ut,ce);if(null==ye)throw new h.wOt(5103,!1);return ye},h.JZv.getAllAngularTestabilities=()=>rt.getAllTestabilities(),h.JZv.getAllAngularRootElements=()=>rt.getAllRootElements(),h.JZv.frameworkStabilizers||(h.JZv.frameworkStabilizers=[]),h.JZv.frameworkStabilizers.push(ut=>{const ce=h.JZv.getAllAngularTestabilities();let ye=ce.length;const He=function(){ye--,0==ye&&ut()};ce.forEach(Lt=>{Lt.whenStable(He)})})}findTestabilityInTree(rt,Mt,ut){if(null==Mt)return null;const ce=rt.getTestability(Mt);return null!=ce?ce:ut?(0,c.QT)().isShadowRoot(Mt)?this.findTestabilityInTree(rt,Mt.host,!0):this.findTestabilityInTree(rt,Mt.parentElement,!0):null}},deps:[]},{provide:h.WHO,useClass:h.NYb,deps:[h.SKi,h.giA,h.e01]},{provide:h.NYb,useClass:h.NYb,deps:[h.SKi,h.giA,h.e01]}],nr=[{provide:h.H8p,useValue:"root"},{provide:h.zcH,useFactory:function Wt(){return new h.zcH},deps:[]},{provide:Se,useClass:on,multi:!0,deps:[c.qQ,h.SKi,h.Agw]},{provide:Se,useClass:X,multi:!0,deps:[c.qQ]},Ue,qe,Ce,{provide:h._9s,useExisting:Ue},{provide:c.N0,useClass:Je,deps:[]},[]];let er=(()=>{var pe;class rt{constructor(ut){}static withServerTransition(ut){return{ngModule:rt,providers:[{provide:h.sZ2,useValue:ut.appId}]}}}return(pe=rt).\u0275fac=function(ut){return new(ut||pe)(h.KVO(Ln,12))},pe.\u0275mod=h.$C({type:pe}),pe.\u0275inj=h.G2t({providers:[...nr,...Zn],imports:[c.MD,h.Hbi]}),rt})(),ir=(()=>{var pe;class rt{constructor(ut){this._doc=ut}getTitle(){return this._doc.title}setTitle(ut){this._doc.title=ut||""}}return(pe=rt).\u0275fac=function(ut){return new(ut||pe)(h.KVO(c.qQ))},pe.\u0275prov=h.jDH({token:pe,factory:pe.\u0275fac,providedIn:"root"}),rt})(),Dr=(()=>{var pe;class rt{}return(pe=rt).\u0275fac=function(ut){return new(ut||pe)},pe.\u0275prov=h.jDH({token:pe,factory:function(ut){let ce=null;return ce=ut?new(ut||pe):h.KVO(Jn),ce},providedIn:"root"}),rt})(),Jn=(()=>{var pe;class rt extends Dr{constructor(ut){super(),this._doc=ut}sanitize(ut,ce){if(null==ce)return null;switch(ut){case h.WPN.NONE:return ce;case h.WPN.HTML:return(0,h.ZF7)(ce,"HTML")?(0,h.rcV)(ce):(0,h.h9k)(this._doc,String(ce)).toString();case h.WPN.STYLE:return(0,h.ZF7)(ce,"Style")?(0,h.rcV)(ce):ce;case h.WPN.SCRIPT:if((0,h.ZF7)(ce,"Script"))return(0,h.rcV)(ce);throw new h.wOt(5200,!1);case h.WPN.URL:return(0,h.ZF7)(ce,"URL")?(0,h.rcV)(ce):(0,h.$MX)(String(ce));case h.WPN.RESOURCE_URL:if((0,h.ZF7)(ce,"ResourceURL"))return(0,h.rcV)(ce);throw new h.wOt(5201,!1);default:throw new h.wOt(5202,!1)}}bypassSecurityTrustHtml(ut){return(0,h.Kcf)(ut)}bypassSecurityTrustStyle(ut){return(0,h.cWb)(ut)}bypassSecurityTrustScript(ut){return(0,h.UyX)(ut)}bypassSecurityTrustUrl(ut){return(0,h.osQ)(ut)}bypassSecurityTrustResourceUrl(ut){return(0,h.e5t)(ut)}}return(pe=rt).\u0275fac=function(ut){return new(ut||pe)(h.KVO(c.qQ))},pe.\u0275prov=h.jDH({token:pe,factory:pe.\u0275fac,providedIn:"root"}),rt})()},7650:(Tn,gt,S)=>{"use strict";S.d(gt,{nX:()=>Ee,Zp:()=>Ve,wF:()=>zr,Z:()=>Or,Xk:()=>rn,Kp:()=>Ki,b:()=>wn,Ix:()=>Kn,Wk:()=>Si,iI:()=>ds,Sd:()=>ur});var h=S(467),c=S(4438),Z=S(4402),Oe=S(8455),U=S(7673),ue=S(4412),oe=S(4572),Xe=S(9350),Je=S(8793),Se=S(1985),Ce=S(8750);function Qe(E){return new Se.c(T=>{(0,Ce.Tg)(E()).subscribe(T)})}var Ze=S(1203),qe=S(8071);function ht(E,T){const O=(0,qe.T)(E)?E:()=>E,D=L=>L.error(O());return new Se.c(T?L=>T.schedule(D,0,L):D)}var Dt=S(983),St=S(8359),_t=S(9974),Tt=S(4360);function yt(){return(0,_t.N)((E,T)=>{let O=null;E._refCount++;const D=(0,Tt._)(T,void 0,void 0,void 0,()=>{if(!E||E._refCount<=0||0<--E._refCount)return void(O=null);const L=E._connection,ae=O;O=null,L&&(!ae||L===ae)&&L.unsubscribe(),T.unsubscribe()});E.subscribe(D),D.closed||(O=E.connect())})}class mt extends Se.c{constructor(T,O){super(),this.source=T,this.subjectFactory=O,this._subject=null,this._refCount=0,this._connection=null,(0,_t.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 St.yU;const O=this.getSubject();T.add(this.source.subscribe((0,Tt._)(O,void 0,()=>{this._teardown(),O.complete()},D=>{this._teardown(),O.error(D)},()=>this._teardown()))),T.closed&&(this._connection=null,T=St.yU.EMPTY)}return T}refCount(){return yt()(this)}}var Me=S(1413),Ye=S(177),ge=S(6354),Ue=S(5558),Fe=S(6697),xe=S(9172),at=S(5964),Rt=S(1397),vn=S(1594),Nt=S(274),tt=S(8141);function on(E){return(0,_t.N)((T,O)=>{let ae,D=null,L=!1;D=T.subscribe((0,Tt._)(O,void 0,void 0,Re=>{ae=(0,Ce.Tg)(E(Re,on(E)(T))),D?(D.unsubscribe(),D=null,ae.subscribe(O)):L=!0})),L&&(D.unsubscribe(),D=null,ae.subscribe(O))})}var H=S(9901);function X(E){return E<=0?()=>Dt.w:(0,_t.N)((T,O)=>{let D=[];T.subscribe((0,Tt._)(O,L=>{D.push(L),E{for(const L of D)O.next(L);O.complete()},void 0,()=>{D=null}))})}var fe=S(3774),se=S(3669),Le=S(3703),De=S(980),Wt=S(6977),dn=S(6365),Kt=S(345);const rn="primary",Ln=Symbol("RouteTitle");class Zn{constructor(T){this.params=T||{}}has(T){return Object.prototype.hasOwnProperty.call(this.params,T)}get(T){if(this.has(T)){const O=this.params[T];return Array.isArray(O)?O[0]:O}return null}getAll(T){if(this.has(T)){const O=this.params[T];return Array.isArray(O)?O:[O]}return[]}get keys(){return Object.keys(this.params)}}function nr(E){return new Zn(E)}function er(E,T,O){const D=O.path.split("/");if(D.length>E.length||"full"===O.pathMatch&&(T.hasChildren()||D.lengthD[ae]===L)}return E===T}function Ot(E){return E.length>0?E[E.length-1]:null}function zt(E){return(0,Z.A)(E)?E:(0,c.jNT)(E)?(0,Oe.H)(Promise.resolve(E)):(0,U.of)(E)}const pn={exact:function xn(E,T,O){if(!Jr(E.segments,T.segments)||!Ir(E.segments,T.segments,O)||E.numberOfChildren!==T.numberOfChildren)return!1;for(const D in T.children)if(!E.children[D]||!xn(E.children[D],T.children[D],O))return!1;return!0},subset:en},gn={exact:function Mn(E,T){return rr(E,T)},subset:function mn(E,T){return Object.keys(T).length<=Object.keys(E).length&&Object.keys(T).every(O=>nt(E[O],T[O]))},ignored:()=>!0};function Sr(E,T,O){return pn[O.paths](E.root,T.root,O.matrixParams)&&gn[O.queryParams](E.queryParams,T.queryParams)&&!("exact"===O.fragment&&E.fragment!==T.fragment)}function en(E,T,O){return Er(E,T,T.segments,O)}function Er(E,T,O,D){if(E.segments.length>O.length){const L=E.segments.slice(0,O.length);return!(!Jr(L,O)||T.hasChildren()||!Ir(L,O,D))}if(E.segments.length===O.length){if(!Jr(E.segments,O)||!Ir(E.segments,O,D))return!1;for(const L in T.children)if(!E.children[L]||!en(E.children[L],T.children[L],D))return!1;return!0}{const L=O.slice(0,E.segments.length),ae=O.slice(E.segments.length);return!!(Jr(E.segments,L)&&Ir(E.segments,L,D)&&E.children[rn])&&Er(E.children[rn],T,ae,D)}}function Ir(E,T,O){return T.every((D,L)=>gn[O](E[L].parameters,D.parameters))}class Nr{constructor(T=new Qn([],{}),O={},D=null){this.root=T,this.queryParams=O,this.fragment=D}get queryParamMap(){var T;return null!==(T=this._queryParamMap)&&void 0!==T||(this._queryParamMap=nr(this.queryParams)),this._queryParamMap}toString(){return cr.serialize(this)}}class Qn{constructor(T,O){this.segments=T,this.children=O,this.parent=null,Object.values(O).forEach(D=>D.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return kr(this)}}class Dr{constructor(T,O){this.path=T,this.parameters=O}get parameterMap(){var T;return null!==(T=this._parameterMap)&&void 0!==T||(this._parameterMap=nr(this.parameters)),this._parameterMap}toString(){return ce(this)}}function Jr(E,T){return E.length===T.length&&E.every((O,D)=>O.path===T[D].path)}let ur=(()=>{var E;class T{}return(E=T).\u0275fac=function(D){return new(D||E)},E.\u0275prov=c.jDH({token:E,factory:()=>new Pr,providedIn:"root"}),T})();class Pr{parse(T){const O=new hn(T);return new Nr(O.parseRootSegment(),O.parseQueryParams(),O.parseFragment())}serialize(T){const O=`/${ii(T.root,!0)}`,D=function He(E){const T=Object.entries(E).map(([O,D])=>Array.isArray(D)?D.map(L=>`${Qr(O)}=${Qr(L)}`).join("&"):`${Qr(O)}=${Qr(D)}`).filter(O=>O);return T.length?`?${T.join("&")}`:""}(T.queryParams);return`${O}${D}${"string"==typeof T.fragment?`#${function pe(E){return encodeURI(E)}(T.fragment)}`:""}`}}const cr=new Pr;function kr(E){return E.segments.map(T=>ce(T)).join("/")}function ii(E,T){if(!E.hasChildren())return kr(E);if(T){const O=E.children[rn]?ii(E.children[rn],!1):"",D=[];return Object.entries(E.children).forEach(([L,ae])=>{L!==rn&&D.push(`${L}:${ii(ae,!1)}`)}),D.length>0?`${O}(${D.join("//")})`:O}{const O=function mr(E,T){let O=[];return Object.entries(E.children).forEach(([D,L])=>{D===rn&&(O=O.concat(T(L,D)))}),Object.entries(E.children).forEach(([D,L])=>{D!==rn&&(O=O.concat(T(L,D)))}),O}(E,(D,L)=>L===rn?[ii(E.children[rn],!1)]:[`${L}:${ii(D,!1)}`]);return 1===Object.keys(E.children).length&&null!=E.children[rn]?`${kr(E)}/${O[0]}`:`${kr(E)}/(${O.join("//")})`}}function Ai(E){return encodeURIComponent(E).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Qr(E){return Ai(E).replace(/%3B/gi,";")}function rt(E){return Ai(E).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Mt(E){return decodeURIComponent(E)}function ut(E){return Mt(E.replace(/\+/g,"%20"))}function ce(E){return`${rt(E.path)}${function ye(E){return Object.entries(E).map(([T,O])=>`;${rt(T)}=${rt(O)}`).join("")}(E.parameters)}`}const Lt=/^[^\/()?;#]+/;function ie(E){const T=E.match(Lt);return T?T[0]:""}const ct=/^[^\/()?;=#]+/,Gt=/^[^=?&#]+/,_n=/^[^&#]+/;class hn{constructor(T){this.url=T,this.remaining=T}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Qn([],{}):new Qn([],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 O={};this.peekStartsWith("/(")&&(this.capture("/"),O=this.parseParens(!0));let D={};return this.peekStartsWith("(")&&(D=this.parseParens(!1)),(T.length>0||Object.keys(O).length>0)&&(D[rn]=new Qn(T,O)),D}parseSegment(){const T=ie(this.remaining);if(""===T&&this.peekStartsWith(";"))throw new c.wOt(4009,!1);return this.capture(T),new Dr(Mt(T),this.parseMatrixParams())}parseMatrixParams(){const T={};for(;this.consumeOptional(";");)this.parseParam(T);return T}parseParam(T){const O=function lt(E){const T=E.match(ct);return T?T[0]:""}(this.remaining);if(!O)return;this.capture(O);let D="";if(this.consumeOptional("=")){const L=ie(this.remaining);L&&(D=L,this.capture(D))}T[Mt(O)]=Mt(D)}parseQueryParam(T){const O=function tn(E){const T=E.match(Gt);return T?T[0]:""}(this.remaining);if(!O)return;this.capture(O);let D="";if(this.consumeOptional("=")){const Re=function qn(E){const T=E.match(_n);return T?T[0]:""}(this.remaining);Re&&(D=Re,this.capture(D))}const L=ut(O),ae=ut(D);if(T.hasOwnProperty(L)){let Re=T[L];Array.isArray(Re)||(Re=[Re],T[L]=Re),Re.push(ae)}else T[L]=ae}parseParens(T){const O={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const D=ie(this.remaining),L=this.remaining[D.length];if("/"!==L&&")"!==L&&";"!==L)throw new c.wOt(4010,!1);let ae;D.indexOf(":")>-1?(ae=D.slice(0,D.indexOf(":")),this.capture(ae),this.capture(":")):T&&(ae=rn);const Re=this.parseChildren();O[ae]=1===Object.keys(Re).length?Re[rn]:new Qn([],Re),this.consumeOptional("//")}return O}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 c.wOt(4011,!1)}}function Cn(E){return E.segments.length>0?new Qn([],{[rn]:E}):E}function tr(E){const T={};for(const[D,L]of Object.entries(E.children)){const ae=tr(L);if(D===rn&&0===ae.segments.length&&ae.hasChildren())for(const[Re,Pt]of Object.entries(ae.children))T[Re]=Pt;else(ae.segments.length>0||ae.hasChildren())&&(T[D]=ae)}return function Ar(E){if(1===E.numberOfChildren&&E.children[rn]){const T=E.children[rn];return new Qn(E.segments.concat(T.segments),T.children)}return E}(new Qn(E.segments,T))}function dr(E){return E instanceof Nr}function Zr(E){var T;let O;const ae=Cn(function D(Re){const Pt={};for(const Bt of Re.children){const Bn=D(Bt);Pt[Bt.outlet]=Bn}const fn=new Qn(Re.url,Pt);return Re===E&&(O=fn),fn}(E.root));return null!==(T=O)&&void 0!==T?T:ae}function fr(E,T,O,D){let L=E;for(;L.parent;)L=L.parent;if(0===T.length)return pr(L,L,L,O,D);const ae=function ee(E){if("string"==typeof E[0]&&1===E.length&&"/"===E[0])return new te(!0,0,E);let T=0,O=!1;const D=E.reduce((L,ae,Re)=>{if("object"==typeof ae&&null!=ae){if(ae.outlets){const Pt={};return Object.entries(ae.outlets).forEach(([fn,Bt])=>{Pt[fn]="string"==typeof Bt?Bt.split("/"):Bt}),[...L,{outlets:Pt}]}if(ae.segmentPath)return[...L,ae.segmentPath]}return"string"!=typeof ae?[...L,ae]:0===Re?(ae.split("/").forEach((Pt,fn)=>{0==fn&&"."===Pt||(0==fn&&""===Pt?O=!0:".."===Pt?T++:""!=Pt&&L.push(Pt))}),L):[...L,ae]},[]);return new te(O,T,D)}(T);if(ae.toRoot())return pr(L,L,new Qn([],{}),O,D);const Re=function M(E,T,O){if(E.isAbsolute)return new ze(T,!0,0);if(!O)return new ze(T,!1,NaN);if(null===O.parent)return new ze(O,!0,0);const D=Ri(E.commands[0])?0:1;return function x(E,T,O){let D=E,L=T,ae=O;for(;ae>L;){if(ae-=L,D=D.parent,!D)throw new c.wOt(4005,!1);L=D.segments.length}return new ze(D,!1,L-ae)}(O,O.segments.length-1+D,E.numberOfDoubleDots)}(ae,L,E),Pt=Re.processChildren?Ge(Re.segmentGroup,Re.index,ae.commands):Te(Re.segmentGroup,Re.index,ae.commands);return pr(L,Re.segmentGroup,Pt,O,D)}function Ri(E){return"object"==typeof E&&null!=E&&!E.outlets&&!E.segmentPath}function gi(E){return"object"==typeof E&&null!=E&&E.outlets}function pr(E,T,O,D,L){let Re,ae={};D&&Object.entries(D).forEach(([fn,Bt])=>{ae[fn]=Array.isArray(Bt)?Bt.map(Bn=>`${Bn}`):`${Bt}`}),Re=E===T?O:Ut(E,T,O);const Pt=Cn(tr(Re));return new Nr(Pt,ae,L)}function Ut(E,T,O){const D={};return Object.entries(E.children).forEach(([L,ae])=>{D[L]=ae===T?O:Ut(ae,T,O)}),new Qn(E.segments,D)}class te{constructor(T,O,D){if(this.isAbsolute=T,this.numberOfDoubleDots=O,this.commands=D,T&&D.length>0&&Ri(D[0]))throw new c.wOt(4003,!1);const L=D.find(gi);if(L&&L!==Ot(D))throw new c.wOt(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class ze{constructor(T,O,D){this.segmentGroup=T,this.processChildren=O,this.index=D}}function Te(E,T,O){var D;if(null!==(D=E)&&void 0!==D||(E=new Qn([],{})),0===E.segments.length&&E.hasChildren())return Ge(E,T,O);const L=function At(E,T,O){let D=0,L=T;const ae={match:!1,pathIndex:0,commandIndex:0};for(;L=O.length)return ae;const Re=E.segments[L],Pt=O[D];if(gi(Pt))break;const fn=`${Pt}`,Bt=D0&&void 0===fn)break;if(fn&&Bt&&"object"==typeof Bt&&void 0===Bt.outlets){if(!Un(fn,Bt,Re))return ae;D+=2}else{if(!Un(fn,{},Re))return ae;D++}L++}return{match:!0,pathIndex:L,commandIndex:D}}(E,T,O),ae=O.slice(L.commandIndex);if(L.match&&L.pathIndexae!==rn)&&E.children[rn]&&1===E.numberOfChildren&&0===E.children[rn].segments.length){const ae=Ge(E.children[rn],T,O);return new Qn(E.segments,ae.children)}return Object.entries(D).forEach(([ae,Re])=>{"string"==typeof Re&&(Re=[Re]),null!==Re&&(L[ae]=Te(E.children[ae],T,Re))}),Object.entries(E.children).forEach(([ae,Re])=>{void 0===D[ae]&&(L[ae]=Re)}),new Qn(E.segments,L)}}function Jt(E,T,O){const D=E.segments.slice(0,T);let L=0;for(;L{"string"==typeof D&&(D=[D]),null!==D&&(T[O]=Jt(new Qn([],{}),0,D))}),T}function or(E){const T={};return Object.entries(E).forEach(([O,D])=>T[O]=`${D}`),T}function Un(E,T,O){return E==O.path&&rr(T,O.parameters)}const xr="imperative";var On=function(E){return E[E.NavigationStart=0]="NavigationStart",E[E.NavigationEnd=1]="NavigationEnd",E[E.NavigationCancel=2]="NavigationCancel",E[E.NavigationError=3]="NavigationError",E[E.RoutesRecognized=4]="RoutesRecognized",E[E.ResolveStart=5]="ResolveStart",E[E.ResolveEnd=6]="ResolveEnd",E[E.GuardsCheckStart=7]="GuardsCheckStart",E[E.GuardsCheckEnd=8]="GuardsCheckEnd",E[E.RouteConfigLoadStart=9]="RouteConfigLoadStart",E[E.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",E[E.ChildActivationStart=11]="ChildActivationStart",E[E.ChildActivationEnd=12]="ChildActivationEnd",E[E.ActivationStart=13]="ActivationStart",E[E.ActivationEnd=14]="ActivationEnd",E[E.Scroll=15]="Scroll",E[E.NavigationSkipped=16]="NavigationSkipped",E}(On||{});class Fr{constructor(T,O){this.id=T,this.url=O}}class Or extends Fr{constructor(T,O,D="imperative",L=null){super(T,O),this.type=On.NavigationStart,this.navigationTrigger=D,this.restoredState=L}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class zr extends Fr{constructor(T,O,D){super(T,O),this.urlAfterRedirects=D,this.type=On.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}var Tr=function(E){return E[E.Redirect=0]="Redirect",E[E.SupersededByNewNavigation=1]="SupersededByNewNavigation",E[E.NoDataFromResolver=2]="NoDataFromResolver",E[E.GuardRejected=3]="GuardRejected",E}(Tr||{}),Gn=function(E){return E[E.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",E[E.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",E}(Gn||{});class Cr extends Fr{constructor(T,O,D,L){super(T,O),this.reason=D,this.code=L,this.type=On.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class ai extends Fr{constructor(T,O,D,L){super(T,O),this.reason=D,this.code=L,this.type=On.NavigationSkipped}}class li extends Fr{constructor(T,O,D,L){super(T,O),this.error=D,this.target=L,this.type=On.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class ei extends Fr{constructor(T,O,D,L){super(T,O),this.urlAfterRedirects=D,this.state=L,this.type=On.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Lr extends Fr{constructor(T,O,D,L){super(T,O),this.urlAfterRedirects=D,this.state=L,this.type=On.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class mi extends Fr{constructor(T,O,D,L,ae){super(T,O),this.urlAfterRedirects=D,this.state=L,this.shouldActivate=ae,this.type=On.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Wn extends Fr{constructor(T,O,D,L){super(T,O),this.urlAfterRedirects=D,this.state=L,this.type=On.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Hn extends Fr{constructor(T,O,D,L){super(T,O),this.urlAfterRedirects=D,this.state=L,this.type=On.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ao{constructor(T){this.route=T,this.type=On.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class ui{constructor(T){this.route=T,this.type=On.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Ci{constructor(T){this.snapshot=T,this.type=On.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Eo{constructor(T){this.snapshot=T,this.type=On.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class No{constructor(T){this.snapshot=T,this.type=On.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class oi{constructor(T){this.snapshot=T,this.type=On.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class bt{constructor(T,O,D){this.routerEvent=T,this.position=O,this.anchor=D,this.type=On.Scroll}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class he{}class le{constructor(T){this.url=T}}class $e{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new Ve,this.attachRef=null}}let Ve=(()=>{var E;class T{constructor(){this.contexts=new Map}onChildOutletCreated(D,L){const ae=this.getOrCreateContext(D);ae.outlet=L,this.contexts.set(D,ae)}onChildOutletDestroyed(D){const L=this.getContext(D);L&&(L.outlet=null,L.attachRef=null)}onOutletDeactivated(){const D=this.contexts;return this.contexts=new Map,D}onOutletReAttached(D){this.contexts=D}getOrCreateContext(D){let L=this.getContext(D);return L||(L=new $e,this.contexts.set(D,L)),L}getContext(D){return this.contexts.get(D)||null}}return(E=T).\u0275fac=function(D){return new(D||E)},E.\u0275prov=c.jDH({token:E,factory:E.\u0275fac,providedIn:"root"}),T})();class ot{constructor(T){this._root=T}get root(){return this._root.value}parent(T){const O=this.pathFromRoot(T);return O.length>1?O[O.length-2]:null}children(T){const O=jt(T,this._root);return O?O.children.map(D=>D.value):[]}firstChild(T){const O=jt(T,this._root);return O&&O.children.length>0?O.children[0].value:null}siblings(T){const O=In(T,this._root);return O.length<2?[]:O[O.length-2].children.map(L=>L.value).filter(L=>L!==T)}pathFromRoot(T){return In(T,this._root).map(O=>O.value)}}function jt(E,T){if(E===T.value)return T;for(const O of T.children){const D=jt(E,O);if(D)return D}return null}function In(E,T){if(E===T.value)return[T];for(const O of T.children){const D=In(E,O);if(D.length)return D.unshift(T),D}return[]}class Fn{constructor(T,O){this.value=T,this.children=O}toString(){return`TreeNode(${this.value})`}}function b(E){const T={};return E&&E.children.forEach(O=>T[O.value.outlet]=O),T}class j extends ot{constructor(T,O){super(T),this.snapshot=O,z(this,T)}toString(){return this.snapshot.toString()}}function re(E){const T=function P(E){const ae=new sr([],{},{},"",{},rn,E,null,{});return new ni("",new Fn(ae,[]))}(E),O=new ue.t([new Dr("",{})]),D=new ue.t({}),L=new ue.t({}),ae=new ue.t({}),Re=new ue.t(""),Pt=new Ee(O,D,ae,Re,L,rn,E,T.root);return Pt.snapshot=T.root,new j(new Fn(Pt,[]),T)}class Ee{constructor(T,O,D,L,ae,Re,Pt,fn){var Bt,Bn;this.urlSubject=T,this.paramsSubject=O,this.queryParamsSubject=D,this.fragmentSubject=L,this.dataSubject=ae,this.outlet=Re,this.component=Pt,this._futureSnapshot=fn,this.title=null!==(Bt=null===(Bn=this.dataSubject)||void 0===Bn?void 0:Bn.pipe((0,ge.T)(Vr=>Vr[Ln])))&&void 0!==Bt?Bt:(0,U.of)(void 0),this.url=T,this.params=O,this.queryParams=D,this.fragment=L,this.data=ae}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,ge.T)(O=>nr(O)))),this._paramMap}get queryParamMap(){var T;return null!==(T=this._queryParamMap)&&void 0!==T||(this._queryParamMap=this.queryParams.pipe((0,ge.T)(O=>nr(O)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function it(E,T,O="emptyOnly"){var D;let L;const{routeConfig:ae}=E;var Re;return L=null===T||"always"!==O&&""!==(null==ae?void 0:ae.path)&&(T.component||null!==(D=T.routeConfig)&&void 0!==D&&D.loadComponent)?{params:{...E.params},data:{...E.data},resolve:{...E.data,...null!==(Re=E._resolvedData)&&void 0!==Re?Re:{}}}:{params:{...T.params,...E.params},data:{...T.data,...E.data},resolve:{...E.data,...T.data,...null==ae?void 0:ae.data,...E._resolvedData}},ae&&wt(ae)&&(L.resolve[Ln]=ae.title),L}class sr{get title(){var T;return null===(T=this.data)||void 0===T?void 0:T[Ln]}constructor(T,O,D,L,ae,Re,Pt,fn,Bt){this.url=T,this.params=O,this.queryParams=D,this.fragment=L,this.data=ae,this.outlet=Re,this.component=Pt,this.routeConfig=fn,this._resolve=Bt}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=nr(this.params)),this._paramMap}get queryParamMap(){var T;return null!==(T=this._queryParamMap)&&void 0!==T||(this._queryParamMap=nr(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(D=>D.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class ni extends ot{constructor(T,O){super(O),this.url=T,z(this,O)}toString(){return me(this._root)}}function z(E,T){T.value._routerState=E,T.children.forEach(O=>z(E,O))}function me(E){const T=E.children.length>0?` { ${E.children.map(me).join(", ")} } `:"";return`${E.value}${T}`}function Ne(E){if(E.snapshot){const T=E.snapshot,O=E._futureSnapshot;E.snapshot=O,rr(T.queryParams,O.queryParams)||E.queryParamsSubject.next(O.queryParams),T.fragment!==O.fragment&&E.fragmentSubject.next(O.fragment),rr(T.params,O.params)||E.paramsSubject.next(O.params),function yr(E,T){if(E.length!==T.length)return!1;for(let O=0;Orr(O.parameters,T[D].parameters))}(E.url,T.url);return O&&!(!E.parent!=!T.parent)&&(!E.parent||et(E.parent,T.parent))}function wt(E){return"string"==typeof E.title||null===E.title}let Et=(()=>{var E;class T{constructor(){this.activated=null,this._activatedRoute=null,this.name=rn,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)(Ve),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)(sn,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(D){if(D.name){const{firstChange:L,previousValue:ae}=D.name;if(L)return;this.isTrackedInParentContexts(ae)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(ae)),this.initializeOutletWithName()}}ngOnDestroy(){var D;this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),null===(D=this.inputBinder)||void 0===D||D.unsubscribeFromRouteData(this)}isTrackedInParentContexts(D){var L;return(null===(L=this.parentContexts.getContext(D))||void 0===L?void 0:L.outlet)===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const D=this.parentContexts.getContext(this.name);null!=D&&D.route&&(D.attachRef?this.attach(D.attachRef,D.route):this.activateWith(D.route,D.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 D=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(D.instance),D}attach(D,L){var ae;this.activated=D,this._activatedRoute=L,this.location.insert(D.hostView),null===(ae=this.inputBinder)||void 0===ae||ae.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(D.instance)}deactivate(){if(this.activated){const D=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(D)}}activateWith(D,L){var ae;if(this.isActivated)throw new c.wOt(4013,!1);this._activatedRoute=D;const Re=this.location,fn=D.snapshot.component,Bt=this.parentContexts.getOrCreateContext(this.name).children,Bn=new Yt(D,Bt,Re.injector);this.activated=Re.createComponent(fn,{index:Re.length,injector:Bn,environmentInjector:null!=L?L:this.environmentInjector}),this.changeDetector.markForCheck(),null===(ae=this.inputBinder)||void 0===ae||ae.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}}return(E=T).\u0275fac=function(D){return new(D||E)},E.\u0275dir=c.FsC({type:E,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[c.OA$]}),T})();class Yt{__ngOutletInjector(T){return new Yt(this.route,this.childContexts,T)}constructor(T,O,D){this.route=T,this.childContexts=O,this.parent=D}get(T,O){return T===Ee?this.route:T===Ve?this.childContexts:this.parent.get(T,O)}}const sn=new c.nKC("");let cn=(()=>{var E;class T{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(D){this.unsubscribeFromRouteData(D),this.subscribeToRouteData(D)}unsubscribeFromRouteData(D){var L;null===(L=this.outletDataSubscriptions.get(D))||void 0===L||L.unsubscribe(),this.outletDataSubscriptions.delete(D)}subscribeToRouteData(D){const{activatedRoute:L}=D,ae=(0,oe.z)([L.queryParams,L.params,L.data]).pipe((0,Ue.n)(([Re,Pt,fn],Bt)=>(fn={...Re,...Pt,...fn},0===Bt?(0,U.of)(fn):Promise.resolve(fn)))).subscribe(Re=>{if(!D.isActivated||!D.activatedComponentRef||D.activatedRoute!==L||null===L.component)return void this.unsubscribeFromRouteData(D);const Pt=(0,c.HJs)(L.component);if(Pt)for(const{templateName:fn}of Pt.inputs)D.activatedComponentRef.setInput(fn,Re[fn]);else this.unsubscribeFromRouteData(D)});this.outletDataSubscriptions.set(D,ae)}}return(E=T).\u0275fac=function(D){return new(D||E)},E.\u0275prov=c.jDH({token:E,factory:E.\u0275fac}),T})();function Nn(E,T,O){if(O&&E.shouldReuseRoute(T.value,O.value.snapshot)){const D=O.value;D._futureSnapshot=T.value;const L=function jn(E,T,O){return T.children.map(D=>{for(const L of O.children)if(E.shouldReuseRoute(D.value,L.value.snapshot))return Nn(E,D,L);return Nn(E,D)})}(E,T,O);return new Fn(D,L)}{if(E.shouldAttach(T.value)){const ae=E.retrieve(T.value);if(null!==ae){const Re=ae.route;return Re.value._futureSnapshot=T.value,Re.children=T.children.map(Pt=>Nn(E,Pt)),Re}}const D=function lr(E){return new Ee(new ue.t(E.url),new ue.t(E.params),new ue.t(E.queryParams),new ue.t(E.fragment),new ue.t(E.data),E.outlet,E.component,E)}(T.value),L=T.children.map(ae=>Nn(E,ae));return new Fn(D,L)}}const Vn="ngNavigationCancelingError";function qr(E,T){const{redirectTo:O,navigationBehaviorOptions:D}=dr(T)?{redirectTo:T,navigationBehaviorOptions:void 0}:T,L=jr(!1,Tr.Redirect);return L.url=O,L.navigationBehaviorOptions=D,L}function jr(E,T){const O=new Error(`NavigationCancelingError: ${E||""}`);return O[Vn]=!0,O.cancellationCode=T,O}function wi(E){return!!E&&E[Vn]}let Ni=(()=>{var E;class T{}return(E=T).\u0275fac=function(D){return new(D||E)},E.\u0275cmp=c.VBU({type:E,selectors:[["ng-component"]],standalone:!0,features:[c.aNF],decls:1,vars:0,template:function(D,L){1&D&&c.nrm(0,"router-outlet")},dependencies:[Et],encapsulation:2}),T})();function Ss(E){const T=E.children&&E.children.map(Ss),O=T?{...E,children:T}:{...E};return!O.component&&!O.loadComponent&&(T||O.loadChildren)&&O.outlet&&O.outlet!==rn&&(O.component=Ni),O}function no(E){return E.outlet||rn}function Kr(E){var T;if(!E)return null;if(null!==(T=E.routeConfig)&&void 0!==T&&T._injector)return E.routeConfig._injector;for(let O=E.parent;O;O=O.parent){const D=O.routeConfig;if(null!=D&&D._loadedInjector)return D._loadedInjector;if(null!=D&&D._injector)return D._injector}return null}class Rs{constructor(T,O,D,L,ae){this.routeReuseStrategy=T,this.futureState=O,this.currState=D,this.forwardEvent=L,this.inputBindingEnabled=ae}activate(T){const O=this.futureState._root,D=this.currState?this.currState._root:null;this.deactivateChildRoutes(O,D,T),Ne(this.futureState.root),this.activateChildRoutes(O,D,T)}deactivateChildRoutes(T,O,D){const L=b(O);T.children.forEach(ae=>{const Re=ae.value.outlet;this.deactivateRoutes(ae,L[Re],D),delete L[Re]}),Object.values(L).forEach(ae=>{this.deactivateRouteAndItsChildren(ae,D)})}deactivateRoutes(T,O,D){const L=T.value,ae=O?O.value:null;if(L===ae)if(L.component){const Re=D.getContext(L.outlet);Re&&this.deactivateChildRoutes(T,O,Re.children)}else this.deactivateChildRoutes(T,O,D);else ae&&this.deactivateRouteAndItsChildren(O,D)}deactivateRouteAndItsChildren(T,O){T.value.component&&this.routeReuseStrategy.shouldDetach(T.value.snapshot)?this.detachAndStoreRouteSubtree(T,O):this.deactivateRouteAndOutlet(T,O)}detachAndStoreRouteSubtree(T,O){const D=O.getContext(T.value.outlet),L=D&&T.value.component?D.children:O,ae=b(T);for(const Re of Object.values(ae))this.deactivateRouteAndItsChildren(Re,L);if(D&&D.outlet){const Re=D.outlet.detach(),Pt=D.children.onOutletDeactivated();this.routeReuseStrategy.store(T.value.snapshot,{componentRef:Re,route:T,contexts:Pt})}}deactivateRouteAndOutlet(T,O){const D=O.getContext(T.value.outlet),L=D&&T.value.component?D.children:O,ae=b(T);for(const Re of Object.values(ae))this.deactivateRouteAndItsChildren(Re,L);D&&(D.outlet&&(D.outlet.deactivate(),D.children.onOutletDeactivated()),D.attachRef=null,D.route=null)}activateChildRoutes(T,O,D){const L=b(O);T.children.forEach(ae=>{this.activateRoutes(ae,L[ae.value.outlet],D),this.forwardEvent(new oi(ae.value.snapshot))}),T.children.length&&this.forwardEvent(new Eo(T.value.snapshot))}activateRoutes(T,O,D){const L=T.value,ae=O?O.value:null;if(Ne(L),L===ae)if(L.component){const Re=D.getOrCreateContext(L.outlet);this.activateChildRoutes(T,O,Re.children)}else this.activateChildRoutes(T,O,D);else if(L.component){const Re=D.getOrCreateContext(L.outlet);if(this.routeReuseStrategy.shouldAttach(L.snapshot)){const Pt=this.routeReuseStrategy.retrieve(L.snapshot);this.routeReuseStrategy.store(L.snapshot,null),Re.children.onOutletReAttached(Pt.contexts),Re.attachRef=Pt.componentRef,Re.route=Pt.route.value,Re.outlet&&Re.outlet.attach(Pt.componentRef,Pt.route.value),Ne(Pt.route.value),this.activateChildRoutes(T,null,Re.children)}else{const Pt=Kr(L.snapshot);Re.attachRef=null,Re.route=L,Re.injector=Pt,Re.outlet&&Re.outlet.activateWith(L,Re.injector),this.activateChildRoutes(T,null,Re.children)}}else this.activateChildRoutes(T,null,D)}}class Hs{constructor(T){this.path=T,this.route=this.path[this.path.length-1]}}class Ms{constructor(T,O){this.component=T,this.route=O}}function ls(E,T,O){const D=E._root;return vs(D,T?T._root:null,O,[D.value])}function Uo(E,T){const O=Symbol(),D=T.get(E,O);return D===O?"function"!=typeof E||(0,c.LfX)(E)?T.get(E):E:D}function vs(E,T,O,D,L={canDeactivateChecks:[],canActivateChecks:[]}){const ae=b(T);return E.children.forEach(Re=>{(function Ps(E,T,O,D,L={canDeactivateChecks:[],canActivateChecks:[]}){const ae=E.value,Re=T?T.value:null,Pt=O?O.getContext(E.value.outlet):null;if(Re&&ae.routeConfig===Re.routeConfig){const fn=function xs(E,T,O){if("function"==typeof O)return O(E,T);switch(O){case"pathParamsChange":return!Jr(E.url,T.url);case"pathParamsOrQueryParamsChange":return!Jr(E.url,T.url)||!rr(E.queryParams,T.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!et(E,T)||!rr(E.queryParams,T.queryParams);default:return!et(E,T)}}(Re,ae,ae.routeConfig.runGuardsAndResolvers);fn?L.canActivateChecks.push(new Hs(D)):(ae.data=Re.data,ae._resolvedData=Re._resolvedData),vs(E,T,ae.component?Pt?Pt.children:null:O,D,L),fn&&Pt&&Pt.outlet&&Pt.outlet.isActivated&&L.canDeactivateChecks.push(new Ms(Pt.outlet.component,Re))}else Re&&Ao(T,Pt,L),L.canActivateChecks.push(new Hs(D)),vs(E,null,ae.component?Pt?Pt.children:null:O,D,L)})(Re,ae[Re.value.outlet],O,D.concat([Re.value]),L),delete ae[Re.value.outlet]}),Object.entries(ae).forEach(([Re,Pt])=>Ao(Pt,O.getContext(Re),L)),L}function Ao(E,T,O){const D=b(E),L=E.value;Object.entries(D).forEach(([ae,Re])=>{Ao(Re,L.component?T?T.children.getContext(ae):null:T,O)}),O.canDeactivateChecks.push(new Ms(L.component&&T&&T.outlet&&T.outlet.isActivated?T.outlet.component:null,L))}function Fo(E){return"function"==typeof E}function G(E){return E instanceof Xe.G||"EmptyError"===(null==E?void 0:E.name)}const ke=Symbol("INITIAL_VALUE");function yn(){return(0,Ue.n)(E=>(0,oe.z)(E.map(T=>T.pipe((0,Fe.s)(1),(0,xe.Z)(ke)))).pipe((0,ge.T)(T=>{for(const O of T)if(!0!==O){if(O===ke)return ke;if(!1===O||O instanceof Nr)return O}return!0}),(0,at.p)(T=>T!==ke),(0,Fe.s)(1)))}function fa(E){return(0,Ze.F)((0,tt.M)(T=>{if(dr(T))throw qr(0,T)}),(0,ge.T)(T=>!0===T))}class pa{constructor(T){this.segmentGroup=T||null}}class $o extends Error{constructor(T){super(),this.urlTree=T}}function Jo(E){return ht(new pa(E))}class po{constructor(T,O){this.urlSerializer=T,this.urlTree=O}lineralizeSegments(T,O){let D=[],L=O.root;for(;;){if(D=D.concat(L.segments),0===L.numberOfChildren)return(0,U.of)(D);if(L.numberOfChildren>1||!L.children[rn])return ht(new c.wOt(4e3,!1));L=L.children[rn]}}applyRedirectCommands(T,O,D){const L=this.applyRedirectCreateUrlTree(O,this.urlSerializer.parse(O),T,D);if(O.startsWith("/"))throw new $o(L);return L}applyRedirectCreateUrlTree(T,O,D,L){const ae=this.createSegmentGroup(T,O.root,D,L);return new Nr(ae,this.createQueryParams(O.queryParams,this.urlTree.queryParams),O.fragment)}createQueryParams(T,O){const D={};return Object.entries(T).forEach(([L,ae])=>{if("string"==typeof ae&&ae.startsWith(":")){const Pt=ae.substring(1);D[L]=O[Pt]}else D[L]=ae}),D}createSegmentGroup(T,O,D,L){const ae=this.createSegments(T,O.segments,D,L);let Re={};return Object.entries(O.children).forEach(([Pt,fn])=>{Re[Pt]=this.createSegmentGroup(T,fn,D,L)}),new Qn(ae,Re)}createSegments(T,O,D,L){return O.map(ae=>ae.path.startsWith(":")?this.findPosParam(T,ae,L):this.findOrReturn(ae,D))}findPosParam(T,O,D){const L=D[O.path.substring(1)];if(!L)throw new c.wOt(4001,!1);return L}findOrReturn(T,O){let D=0;for(const L of O){if(L.path===T.path)return O.splice(D),L;D++}return T}}const bi={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function La(E,T,O,D,L){const ae=jo(E,T,O);return ae.matched?(D=function ki(E,T){var O;return E.providers&&!E._injector&&(E._injector=(0,c.Ol2)(E.providers,T,`Route: ${E.path}`)),null!==(O=E._injector)&&void 0!==O?O:T}(T,D),function ul(E,T,O,D){const L=T.canMatch;if(!L||0===L.length)return(0,U.of)(!0);const ae=L.map(Re=>{const Pt=Uo(Re,E);return zt(function Ae(E){return E&&Fo(E.canMatch)}(Pt)?Pt.canMatch(T,O):(0,c.N4e)(E,()=>Pt(T,O)))});return(0,U.of)(ae).pipe(yn(),fa())}(D,T,O).pipe((0,ge.T)(Re=>!0===Re?ae:{...bi}))):(0,U.of)(ae)}function jo(E,T,O){var D,L;if("**"===T.path)return function ys(E){return{matched:!0,parameters:E.length>0?Ot(E).parameters:{},consumedSegments:E,remainingSegments:[],positionalParamSegments:{}}}(O);if(""===T.path)return"full"===T.pathMatch&&(E.hasChildren()||O.length>0)?{...bi}:{matched:!0,consumedSegments:[],remainingSegments:O,parameters:{},positionalParamSegments:{}};const Re=(T.matcher||er)(O,E,T);if(!Re)return{...bi};const Pt={};Object.entries(null!==(D=Re.posParams)&&void 0!==D?D:{}).forEach(([Bt,Bn])=>{Pt[Bt]=Bn.path});const fn=Re.consumed.length>0?{...Pt,...Re.consumed[Re.consumed.length-1].parameters}:Pt;return{matched:!0,consumedSegments:Re.consumed,remainingSegments:O.slice(Re.consumed.length),parameters:fn,positionalParamSegments:null!==(L=Re.posParams)&&void 0!==L?L:{}}}function cl(E,T,O,D){return O.length>0&&function Ws(E,T,O){return O.some(D=>Es(E,T,D)&&no(D)!==rn)}(E,O,D)?{segmentGroup:new Qn(T,dl(D,new Qn(O,E.children))),slicedSegments:[]}:0===O.length&&function Va(E,T,O){return O.some(D=>Es(E,T,D))}(E,O,D)?{segmentGroup:new Qn(E.segments,Hr(E,O,D,E.children)),slicedSegments:O}:{segmentGroup:new Qn(E.segments,E.children),slicedSegments:O}}function Hr(E,T,O,D){const L={};for(const ae of O)if(Es(E,T,ae)&&!D[no(ae)]){const Re=new Qn([],{});L[no(ae)]=Re}return{...D,...L}}function dl(E,T){const O={};O[rn]=T;for(const D of E)if(""===D.path&&no(D)!==rn){const L=new Qn([],{});O[no(D)]=L}return O}function Es(E,T,O){return(!(E.hasChildren()||T.length>0)||"full"!==O.pathMatch)&&""===O.path}class Ul{}class Is{constructor(T,O,D,L,ae,Re,Pt){this.injector=T,this.configLoader=O,this.rootComponentType=D,this.config=L,this.urlTree=ae,this.paramsInheritanceStrategy=Re,this.urlSerializer=Pt,this.applyRedirects=new po(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(T){return new c.wOt(4002,`'${T.segmentGroup}'`)}recognize(){const T=cl(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(T).pipe((0,ge.T)(O=>{const D=new sr([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},rn,this.rootComponentType,null,{}),L=new Fn(D,O),ae=new ni("",L),Re=function $r(E,T,O=null,D=null){return fr(Zr(E),T,O,D)}(D,[],this.urlTree.queryParams,this.urlTree.fragment);return Re.queryParams=this.urlTree.queryParams,ae.url=this.urlSerializer.serialize(Re),this.inheritParamsAndData(ae._root,null),{state:ae,tree:Re}}))}match(T){return this.processSegmentGroup(this.injector,this.config,T,rn).pipe(on(D=>{if(D instanceof $o)return this.urlTree=D.urlTree,this.match(D.urlTree.root);throw D instanceof pa?this.noMatchError(D):D}))}inheritParamsAndData(T,O){const D=T.value,L=it(D,O,this.paramsInheritanceStrategy);D.params=Object.freeze(L.params),D.data=Object.freeze(L.data),T.children.forEach(ae=>this.inheritParamsAndData(ae,D))}processSegmentGroup(T,O,D,L){return 0===D.segments.length&&D.hasChildren()?this.processChildren(T,O,D):this.processSegment(T,O,D,D.segments,L,!0).pipe((0,ge.T)(ae=>ae instanceof Fn?[ae]:[]))}processChildren(T,O,D){const L=[];for(const ae of Object.keys(D.children))"primary"===ae?L.unshift(ae):L.push(ae);return(0,Oe.H)(L).pipe((0,Nt.H)(ae=>{const Re=D.children[ae],Pt=function ko(E,T){const O=E.filter(D=>no(D)===T);return O.push(...E.filter(D=>no(D)!==T)),O}(O,ae);return this.processSegmentGroup(T,Pt,Re,ae)}),function we(E,T){return(0,_t.N)(function dt(E,T,O,D,L){return(ae,Re)=>{let Pt=O,fn=T,Bt=0;ae.subscribe((0,Tt._)(Re,Bn=>{const Vr=Bt++;fn=Pt?E(fn,Bn,Vr):(Pt=!0,Bn),D&&Re.next(fn)},L&&(()=>{Pt&&Re.next(fn),Re.complete()})))}}(E,T,arguments.length>=2,!0))}((ae,Re)=>(ae.push(...Re),ae)),(0,H.U)(null),function ve(E,T){const O=arguments.length>=2;return D=>D.pipe(E?(0,at.p)((L,ae)=>E(L,ae,D)):se.D,X(1),O?(0,H.U)(T):(0,fe.v)(()=>new Xe.G))}(),(0,Rt.Z)(ae=>{if(null===ae)return Jo(D);const Re=As(ae);return function Os(E){E.sort((T,O)=>T.value.outlet===rn?-1:O.value.outlet===rn?1:T.value.outlet.localeCompare(O.value.outlet))}(Re),(0,U.of)(Re)}))}processSegment(T,O,D,L,ae,Re){return(0,Oe.H)(O).pipe((0,Nt.H)(Pt=>{var fn;return this.processSegmentAgainstRoute(null!==(fn=Pt._injector)&&void 0!==fn?fn:T,O,Pt,D,L,ae,Re).pipe(on(Bt=>{if(Bt instanceof pa)return(0,U.of)(null);throw Bt}))}),(0,vn.$)(Pt=>!!Pt),on(Pt=>{if(G(Pt))return function Ba(E,T,O){return 0===T.length&&!E.children[O]}(D,L,ae)?(0,U.of)(new Ul):Jo(D);throw Pt}))}processSegmentAgainstRoute(T,O,D,L,ae,Re,Pt){return function hl(E,T,O,D){return!!(no(E)===D||D!==rn&&Es(T,O,E))&&jo(T,E,O).matched}(D,L,ae,Re)?void 0===D.redirectTo?this.matchSegmentAgainstRoute(T,L,D,ae,Re):this.allowRedirects&&Pt?this.expandSegmentAgainstRouteUsingRedirect(T,L,O,D,ae,Re):Jo(L):Jo(L)}expandSegmentAgainstRouteUsingRedirect(T,O,D,L,ae,Re){const{matched:Pt,consumedSegments:fn,positionalParamSegments:Bt,remainingSegments:Bn}=jo(O,L,ae);if(!Pt)return Jo(O);L.redirectTo.startsWith("/")&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>31&&(this.allowRedirects=!1));const Vr=this.applyRedirects.applyRedirectCommands(fn,L.redirectTo,Bt);return this.applyRedirects.lineralizeSegments(L,Vr).pipe((0,Rt.Z)($i=>this.processSegment(T,D,O,$i.concat(Bn),Re,!1)))}matchSegmentAgainstRoute(T,O,D,L,ae){const Re=La(O,D,L,T);return"**"===D.path&&(O.children={}),Re.pipe((0,Ue.n)(Pt=>{var fn;return Pt.matched?(T=null!==(fn=D._injector)&&void 0!==fn?fn:T,this.getChildConfig(T,D,L).pipe((0,Ue.n)(({routes:Bt})=>{var Bn,Vr,$i;const yi=null!==(Bn=D._loadedInjector)&&void 0!==Bn?Bn:T,{consumedSegments:Zi,remainingSegments:Js,parameters:Ha}=Pt,Ga=new sr(Zi,Ha,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,function es(E){return E.data||{}}(D),no(D),null!==(Vr=null!==($i=D.component)&&void 0!==$i?$i:D._loadedComponent)&&void 0!==Vr?Vr:null,D,function Su(E){return E.resolve||{}}(D)),{segmentGroup:Fs,slicedSegments:hs}=cl(O,Zi,Js,Bt);if(0===hs.length&&Fs.hasChildren())return this.processChildren(yi,Bt,Fs).pipe((0,ge.T)(Wa=>null===Wa?null:new Fn(Ga,Wa)));if(0===Bt.length&&0===hs.length)return(0,U.of)(new Fn(Ga,[]));const Ta=no(D)===ae;return this.processSegment(yi,Bt,Fs,hs,Ta?rn:ae,!0).pipe((0,ge.T)(Wa=>new Fn(Ga,Wa instanceof Fn?[Wa]:[])))}))):Jo(O)}))}getChildConfig(T,O,D){return O.children?(0,U.of)({routes:O.children,injector:T}):O.loadChildren?void 0!==O._loadedRoutes?(0,U.of)({routes:O._loadedRoutes,injector:O._loadedInjector}):function Gs(E,T,O,D){const L=T.canLoad;if(void 0===L||0===L.length)return(0,U.of)(!0);const ae=L.map(Re=>{const Pt=Uo(Re,E);return zt(function ha(E){return E&&Fo(E.canLoad)}(Pt)?Pt.canLoad(T,O):(0,c.N4e)(E,()=>Pt(T,O)))});return(0,U.of)(ae).pipe(yn(),fa())}(T,O,D).pipe((0,Rt.Z)(L=>L?this.configLoader.loadChildren(T,O).pipe((0,tt.M)(ae=>{O._loadedRoutes=ae.routes,O._loadedInjector=ae.injector})):function zi(E){return ht(jr(!1,Tr.GuardRejected))}())):(0,U.of)({routes:[],injector:T})}}function Zo(E){const T=E.value.routeConfig;return T&&""===T.path}function As(E){const T=[],O=new Set;for(const D of E){if(!Zo(D)){T.push(D);continue}const L=T.find(ae=>D.value.routeConfig===ae.value.routeConfig);void 0!==L?(L.children.push(...D.children),O.add(L)):T.push(D)}for(const D of O){const L=As(D.children);T.push(new Fn(D.value,L))}return T.filter(D=>!O.has(D))}function Lo(E){const T=E.children.map(O=>Lo(O)).flat();return[E,...T]}function Ua(E){return(0,Ue.n)(T=>{const O=E(T);return O?(0,Oe.H)(O).pipe((0,ge.T)(()=>T)):(0,U.of)(T)})}let ma=(()=>{var E;class T{buildTitle(D){let L,ae=D.root;for(;void 0!==ae;){var Re;L=null!==(Re=this.getResolvedTitleForRoute(ae))&&void 0!==Re?Re:L,ae=ae.children.find(Pt=>Pt.outlet===rn)}return L}getResolvedTitleForRoute(D){return D.data[Ln]}}return(E=T).\u0275fac=function(D){return new(D||E)},E.\u0275prov=c.jDH({token:E,factory:()=>(0,c.WQX)($a),providedIn:"root"}),T})(),$a=(()=>{var E;class T extends ma{constructor(D){super(),this.title=D}updateTitle(D){const L=this.buildTitle(D);void 0!==L&&this.title.setTitle(L)}}return(E=T).\u0275fac=function(D){return new(D||E)(c.KVO(Kt.hE))},E.\u0275prov=c.jDH({token:E,factory:E.\u0275fac,providedIn:"root"}),T})();const zo=new c.nKC("",{providedIn:"root",factory:()=>({})}),va=new c.nKC("");let _a=(()=>{var E;class T{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=(0,c.WQX)(c.Ql9)}loadComponent(D){if(this.componentLoaders.get(D))return this.componentLoaders.get(D);if(D._loadedComponent)return(0,U.of)(D._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(D);const L=zt(D.loadComponent()).pipe((0,ge.T)(Gl),(0,tt.M)(Re=>{this.onLoadEndListener&&this.onLoadEndListener(D),D._loadedComponent=Re}),(0,De.j)(()=>{this.componentLoaders.delete(D)})),ae=new mt(L,()=>new Me.B).pipe(yt());return this.componentLoaders.set(D,ae),ae}loadChildren(D,L){if(this.childrenLoaders.get(L))return this.childrenLoaders.get(L);if(L._loadedRoutes)return(0,U.of)({routes:L._loadedRoutes,injector:L._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(L);const Re=function Ks(E,T,O,D){return zt(E.loadChildren()).pipe((0,ge.T)(Gl),(0,Rt.Z)(L=>L instanceof c.Co$||Array.isArray(L)?(0,U.of)(L):(0,Oe.H)(T.compileModuleAsync(L))),(0,ge.T)(L=>{D&&D(E);let ae,Re,Pt=!1;return Array.isArray(L)?(Re=L,!0):(ae=L.create(O).injector,Re=ae.get(va,[],{optional:!0,self:!0}).flat()),{routes:Re.map(Ss),injector:ae}}))}(L,this.compiler,D,this.onLoadEndListener).pipe((0,De.j)(()=>{this.childrenLoaders.delete(L)})),Pt=new mt(Re,()=>new Me.B).pipe(yt());return this.childrenLoaders.set(L,Pt),Pt}}return(E=T).\u0275fac=function(D){return new(D||E)},E.\u0275prov=c.jDH({token:E,factory:E.\u0275fac,providedIn:"root"}),T})();function Gl(E){return function lo(E){return E&&"object"==typeof E&&"default"in E}(E)?E.default:E}let ya=(()=>{var E;class T{}return(E=T).\u0275fac=function(D){return new(D||E)},E.\u0275prov=c.jDH({token:E,factory:()=>(0,c.WQX)(C),providedIn:"root"}),T})(),C=(()=>{var E;class T{shouldProcessUrl(D){return!0}extract(D){return D}merge(D,L){return D}}return(E=T).\u0275fac=function(D){return new(D||E)},E.\u0275prov=c.jDH({token:E,factory:E.\u0275fac,providedIn:"root"}),T})();const $=new c.nKC(""),Be=new c.nKC("");function F(E,T,O){const D=E.get(Be),L=E.get(Ye.qQ);return E.get(c.SKi).runOutsideAngular(()=>{if(!L.startViewTransition||D.skipNextTransition)return D.skipNextTransition=!1,new Promise(Bt=>setTimeout(Bt));let ae;const Re=new Promise(Bt=>{ae=Bt}),Pt=L.startViewTransition(()=>(ae(),function Ie(E){return new Promise(T=>{(0,c.mal)(T,{injector:E})})}(E))),{onViewTransitionCreated:fn}=D;return fn&&(0,c.N4e)(E,()=>fn({transition:Pt,from:T,to:O})),Re})}let Ke=(()=>{var E;class T{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new Me.B,this.transitionAbortSubject=new Me.B,this.configLoader=(0,c.WQX)(_a),this.environmentInjector=(0,c.WQX)(c.uvJ),this.urlSerializer=(0,c.WQX)(ur),this.rootContexts=(0,c.WQX)(Ve),this.location=(0,c.WQX)(Ye.aZ),this.inputBindingEnabled=null!==(0,c.WQX)(sn,{optional:!0}),this.titleStrategy=(0,c.WQX)(ma),this.options=(0,c.WQX)(zo,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=(0,c.WQX)(ya),this.createViewTransition=(0,c.WQX)($,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>(0,U.of)(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=ae=>this.events.next(new ui(ae)),this.configLoader.onLoadStartListener=ae=>this.events.next(new ao(ae))}complete(){var D;null===(D=this.transitions)||void 0===D||D.complete()}handleNavigationRequest(D){var L;const ae=++this.navigationId;null===(L=this.transitions)||void 0===L||L.next({...this.transitions.value,...D,id:ae})}setupNavigations(D,L,ae){return this.transitions=new ue.t({id:0,currentUrlTree:L,currentRawUrl:L,extractedUrl:this.urlHandlingStrategy.extract(L),urlAfterRedirects:this.urlHandlingStrategy.extract(L),rawUrl:L,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:xr,restoredState:null,currentSnapshot:ae.snapshot,targetSnapshot:null,currentRouterState:ae,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe((0,at.p)(Re=>0!==Re.id),(0,ge.T)(Re=>({...Re,extractedUrl:this.urlHandlingStrategy.extract(Re.rawUrl)})),(0,Ue.n)(Re=>{let Pt=!1,fn=!1;return(0,U.of)(Re).pipe((0,Ue.n)(Bt=>{var Bn;if(this.navigationId>Re.id)return this.cancelNavigationTransition(Re,"",Tr.SupersededByNewNavigation),Dt.w;this.currentTransition=Re,this.currentNavigation={id:Bt.id,initialUrl:Bt.rawUrl,extractedUrl:Bt.extractedUrl,trigger:Bt.source,extras:Bt.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null};const Vr=!D.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),$i=null!==(Bn=Bt.extras.onSameUrlNavigation)&&void 0!==Bn?Bn:D.onSameUrlNavigation;if(!Vr&&"reload"!==$i){const yi="";return this.events.next(new ai(Bt.id,this.urlSerializer.serialize(Bt.rawUrl),yi,Gn.IgnoredSameUrlNavigation)),Bt.resolve(null),Dt.w}if(this.urlHandlingStrategy.shouldProcessUrl(Bt.rawUrl))return(0,U.of)(Bt).pipe((0,Ue.n)(yi=>{var Zi,Js;const Ha=null===(Zi=this.transitions)||void 0===Zi?void 0:Zi.getValue();return this.events.next(new Or(yi.id,this.urlSerializer.serialize(yi.extractedUrl),yi.source,yi.restoredState)),Ha!==(null===(Js=this.transitions)||void 0===Js?void 0:Js.getValue())?Dt.w:Promise.resolve(yi)}),function Hl(E,T,O,D,L,ae){return(0,Rt.Z)(Re=>function $l(E,T,O,D,L,ae,Re="emptyOnly"){return new Is(E,T,O,D,L,Re,ae).recognize()}(E,T,O,D,Re.extractedUrl,L,ae).pipe((0,ge.T)(({state:Pt,tree:fn})=>({...Re,targetSnapshot:Pt,urlAfterRedirects:fn}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,D.config,this.urlSerializer,this.paramsInheritanceStrategy),(0,tt.M)(yi=>{Re.targetSnapshot=yi.targetSnapshot,Re.urlAfterRedirects=yi.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:yi.urlAfterRedirects};const Zi=new ei(yi.id,this.urlSerializer.serialize(yi.extractedUrl),this.urlSerializer.serialize(yi.urlAfterRedirects),yi.targetSnapshot);this.events.next(Zi)}));if(Vr&&this.urlHandlingStrategy.shouldProcessUrl(Bt.currentRawUrl)){const{id:yi,extractedUrl:Zi,source:Js,restoredState:Ha,extras:Ga}=Bt,Fs=new Or(yi,this.urlSerializer.serialize(Zi),Js,Ha);this.events.next(Fs);const hs=re(this.rootComponentType).snapshot;return this.currentTransition=Re={...Bt,targetSnapshot:hs,urlAfterRedirects:Zi,extras:{...Ga,skipLocationChange:!1,replaceUrl:!1}},this.currentNavigation.finalUrl=Zi,(0,U.of)(Re)}{const yi="";return this.events.next(new ai(Bt.id,this.urlSerializer.serialize(Bt.extractedUrl),yi,Gn.IgnoredByUrlHandlingStrategy)),Bt.resolve(null),Dt.w}}),(0,tt.M)(Bt=>{const Bn=new Lr(Bt.id,this.urlSerializer.serialize(Bt.extractedUrl),this.urlSerializer.serialize(Bt.urlAfterRedirects),Bt.targetSnapshot);this.events.next(Bn)}),(0,ge.T)(Bt=>(this.currentTransition=Re={...Bt,guards:ls(Bt.targetSnapshot,Bt.currentSnapshot,this.rootContexts)},Re)),function Xn(E,T){return(0,Rt.Z)(O=>{const{targetSnapshot:D,currentSnapshot:L,guards:{canActivateChecks:ae,canDeactivateChecks:Re}}=O;return 0===Re.length&&0===ae.length?(0,U.of)({...O,guardsResult:!0}):function wr(E,T,O,D){return(0,Oe.H)(E).pipe((0,Rt.Z)(L=>function _s(E,T,O,D,L){const ae=T&&T.routeConfig?T.routeConfig.canDeactivate:null;if(!ae||0===ae.length)return(0,U.of)(!0);const Re=ae.map(Pt=>{var fn;const Bt=null!==(fn=Kr(T))&&void 0!==fn?fn:L,Bn=Uo(Pt,Bt);return zt(function N(E){return E&&Fo(E.canDeactivate)}(Bn)?Bn.canDeactivate(E,T,O,D):(0,c.N4e)(Bt,()=>Bn(E,T,O,D))).pipe((0,vn.$)())});return(0,U.of)(Re).pipe(yn())}(L.component,L.route,O,T,D)),(0,vn.$)(L=>!0!==L,!0))}(Re,D,L,E).pipe((0,Rt.Z)(Pt=>Pt&&function io(E){return"boolean"==typeof E}(Pt)?function oo(E,T,O,D){return(0,Oe.H)(T).pipe((0,Nt.H)(L=>(0,Je.x)(function So(E,T){return null!==E&&T&&T(new Ci(E)),(0,U.of)(!0)}(L.route.parent,D),function wo(E,T){return null!==E&&T&&T(new No(E)),(0,U.of)(!0)}(L.route,D),function Fa(E,T,O){const D=T[T.length-1],ae=T.slice(0,T.length-1).reverse().map(Re=>function us(E){const T=E.routeConfig?E.routeConfig.canActivateChild:null;return T&&0!==T.length?{node:E,guards:T}:null}(Re)).filter(Re=>null!==Re).map(Re=>Qe(()=>{const Pt=Re.guards.map(fn=>{var Bt;const Bn=null!==(Bt=Kr(Re.node))&&void 0!==Bt?Bt:O,Vr=Uo(fn,Bn);return zt(function K(E){return E&&Fo(E.canActivateChild)}(Vr)?Vr.canActivateChild(D,E):(0,c.N4e)(Bn,()=>Vr(D,E))).pipe((0,vn.$)())});return(0,U.of)(Pt).pipe(yn())}));return(0,U.of)(ae).pipe(yn())}(E,L.path,O),function Yo(E,T,O){const D=T.routeConfig?T.routeConfig.canActivate:null;if(!D||0===D.length)return(0,U.of)(!0);const L=D.map(ae=>Qe(()=>{var Re;const Pt=null!==(Re=Kr(T))&&void 0!==Re?Re:O,fn=Uo(ae,Pt);return zt(function ll(E){return E&&Fo(E.canActivate)}(fn)?fn.canActivate(T,E):(0,c.N4e)(Pt,()=>fn(T,E))).pipe((0,vn.$)())}));return(0,U.of)(L).pipe(yn())}(E,L.route,O))),(0,vn.$)(L=>!0!==L,!0))}(D,ae,E,T):(0,U.of)(Pt)),(0,ge.T)(Pt=>({...O,guardsResult:Pt})))})}(this.environmentInjector,Bt=>this.events.next(Bt)),(0,tt.M)(Bt=>{if(Re.guardsResult=Bt.guardsResult,dr(Bt.guardsResult))throw qr(0,Bt.guardsResult);const Bn=new mi(Bt.id,this.urlSerializer.serialize(Bt.extractedUrl),this.urlSerializer.serialize(Bt.urlAfterRedirects),Bt.targetSnapshot,!!Bt.guardsResult);this.events.next(Bn)}),(0,at.p)(Bt=>!!Bt.guardsResult||(this.cancelNavigationTransition(Bt,"",Tr.GuardRejected),!1)),Ua(Bt=>{if(Bt.guards.canActivateChecks.length)return(0,U.of)(Bt).pipe((0,tt.M)(Bn=>{const Vr=new Wn(Bn.id,this.urlSerializer.serialize(Bn.extractedUrl),this.urlSerializer.serialize(Bn.urlAfterRedirects),Bn.targetSnapshot);this.events.next(Vr)}),(0,Ue.n)(Bn=>{let Vr=!1;return(0,U.of)(Bn).pipe(function ts(E,T){return(0,Rt.Z)(O=>{const{targetSnapshot:D,guards:{canActivateChecks:L}}=O;if(!L.length)return(0,U.of)(O);const ae=new Set(L.map(fn=>fn.route)),Re=new Set;for(const fn of ae)if(!Re.has(fn))for(const Bt of Lo(fn))Re.add(Bt);let Pt=0;return(0,Oe.H)(Re).pipe((0,Nt.H)(fn=>ae.has(fn)?function Ns(E,T,O,D){const L=E.routeConfig,ae=E._resolve;return void 0!==(null==L?void 0:L.title)&&!wt(L)&&(ae[Ln]=L.title),function Ui(E,T,O,D){const L=ir(E);if(0===L.length)return(0,U.of)({});const ae={};return(0,Oe.H)(L).pipe((0,Rt.Z)(Re=>function ga(E,T,O,D){var L;const ae=null!==(L=Kr(T))&&void 0!==L?L:D,Re=Uo(E,ae);return zt(Re.resolve?Re.resolve(T,O):(0,c.N4e)(ae,()=>Re(T,O)))}(E[Re],T,O,D).pipe((0,vn.$)(),(0,tt.M)(Pt=>{ae[Re]=Pt}))),X(1),(0,Le.u)(ae),on(Re=>G(Re)?Dt.w:ht(Re)))}(ae,E,T,D).pipe((0,ge.T)(Re=>(E._resolvedData=Re,E.data=it(E,E.parent,O).resolve,null)))}(fn,D,E,T):(fn.data=it(fn,fn.parent,E).resolve,(0,U.of)(void 0))),(0,tt.M)(()=>Pt++),X(1),(0,Rt.Z)(fn=>Pt===Re.size?(0,U.of)(O):Dt.w))})}(this.paramsInheritanceStrategy,this.environmentInjector),(0,tt.M)({next:()=>Vr=!0,complete:()=>{Vr||this.cancelNavigationTransition(Bn,"",Tr.NoDataFromResolver)}}))}),(0,tt.M)(Bn=>{const Vr=new Hn(Bn.id,this.urlSerializer.serialize(Bn.extractedUrl),this.urlSerializer.serialize(Bn.urlAfterRedirects),Bn.targetSnapshot);this.events.next(Vr)}))}),Ua(Bt=>{const Bn=Vr=>{var $i;const yi=[];null!==($i=Vr.routeConfig)&&void 0!==$i&&$i.loadComponent&&!Vr.routeConfig._loadedComponent&&yi.push(this.configLoader.loadComponent(Vr.routeConfig).pipe((0,tt.M)(Zi=>{Vr.component=Zi}),(0,ge.T)(()=>{})));for(const Zi of Vr.children)yi.push(...Bn(Zi));return yi};return(0,oe.z)(Bn(Bt.targetSnapshot.root)).pipe((0,H.U)(null),(0,Fe.s)(1))}),Ua(()=>this.afterPreactivation()),(0,Ue.n)(()=>{var Bt;const{currentSnapshot:Bn,targetSnapshot:Vr}=Re,$i=null===(Bt=this.createViewTransition)||void 0===Bt?void 0:Bt.call(this,this.environmentInjector,Bn.root,Vr.root);return $i?(0,Oe.H)($i).pipe((0,ge.T)(()=>Re)):(0,U.of)(Re)}),(0,ge.T)(Bt=>{const Bn=function En(E,T,O){const D=Nn(E,T._root,O?O._root:void 0);return new j(D,T)}(D.routeReuseStrategy,Bt.targetSnapshot,Bt.currentRouterState);return this.currentTransition=Re={...Bt,targetRouterState:Bn},this.currentNavigation.targetRouterState=Bn,Re}),(0,tt.M)(()=>{this.events.next(new he)}),((E,T,O,D)=>(0,ge.T)(L=>(new Rs(T,L.targetRouterState,L.currentRouterState,O,D).activate(E),L)))(this.rootContexts,D.routeReuseStrategy,Bt=>this.events.next(Bt),this.inputBindingEnabled),(0,Fe.s)(1),(0,tt.M)({next:Bt=>{var Bn;Pt=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new zr(Bt.id,this.urlSerializer.serialize(Bt.extractedUrl),this.urlSerializer.serialize(Bt.urlAfterRedirects))),null===(Bn=this.titleStrategy)||void 0===Bn||Bn.updateTitle(Bt.targetRouterState.snapshot),Bt.resolve(!0)},complete:()=>{Pt=!0}}),(0,Wt.Q)(this.transitionAbortSubject.pipe((0,tt.M)(Bt=>{throw Bt}))),(0,De.j)(()=>{var Bt;!Pt&&!fn&&this.cancelNavigationTransition(Re,"",Tr.SupersededByNewNavigation),(null===(Bt=this.currentTransition)||void 0===Bt?void 0:Bt.id)===Re.id&&(this.currentNavigation=null,this.currentTransition=null)}),on(Bt=>{if(fn=!0,wi(Bt))this.events.next(new Cr(Re.id,this.urlSerializer.serialize(Re.extractedUrl),Bt.message,Bt.cancellationCode)),function br(E){return wi(E)&&dr(E.url)}(Bt)?this.events.next(new le(Bt.url)):Re.resolve(!1);else{var Bn;this.events.next(new li(Re.id,this.urlSerializer.serialize(Re.extractedUrl),Bt,null!==(Bn=Re.targetSnapshot)&&void 0!==Bn?Bn:void 0));try{Re.resolve(D.errorHandler(Bt))}catch(Vr){this.options.resolveNavigationPromiseOnError?Re.resolve(!1):Re.reject(Vr)}}return Dt.w}))}))}cancelNavigationTransition(D,L,ae){const Re=new Cr(D.id,this.urlSerializer.serialize(D.extractedUrl),L,ae);this.events.next(Re),D.resolve(!1)}isUpdatingInternalState(){var D,L;return(null===(D=this.currentTransition)||void 0===D?void 0:D.extractedUrl.toString())!==(null===(L=this.currentTransition)||void 0===L?void 0:L.currentUrlTree.toString())}isUpdatedBrowserUrl(){var D,L;return this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))).toString()!==(null===(D=this.currentTransition)||void 0===D?void 0:D.extractedUrl.toString())&&!(null!==(L=this.currentTransition)&&void 0!==L&&L.extras.skipLocationChange)}}return(E=T).\u0275fac=function(D){return new(D||E)},E.\u0275prov=c.jDH({token:E,factory:E.\u0275fac,providedIn:"root"}),T})();function Qt(E){return E!==xr}let wn=(()=>{var E;class T{}return(E=T).\u0275fac=function(D){return new(D||E)},E.\u0275prov=c.jDH({token:E,factory:()=>(0,c.WQX)(Yn),providedIn:"root"}),T})();class ar{shouldDetach(T){return!1}store(T,O){}shouldAttach(T){return!1}retrieve(T){return null}shouldReuseRoute(T,O){return T.routeConfig===O.routeConfig}}let Yn=(()=>{var E;class T extends ar{}return(E=T).\u0275fac=(()=>{let O;return function(L){return(O||(O=c.xGo(E)))(L||E)}})(),E.\u0275prov=c.jDH({token:E,factory:E.\u0275fac,providedIn:"root"}),T})(),pi=(()=>{var E;class T{}return(E=T).\u0275fac=function(D){return new(D||E)},E.\u0275prov=c.jDH({token:E,factory:()=>(0,c.WQX)(Xr),providedIn:"root"}),T})(),Xr=(()=>{var E;class T extends pi{constructor(){super(...arguments),this.location=(0,c.WQX)(Ye.aZ),this.urlSerializer=(0,c.WQX)(ur),this.options=(0,c.WQX)(zo,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=(0,c.WQX)(ya),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new Nr,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=re(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){var D,L;return"computed"!==this.canceledNavigationResolution?this.currentPageId:null!==(D=null===(L=this.restoredState())||void 0===L?void 0:L.\u0275routerPageId)&&void 0!==D?D:this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(D){return this.location.subscribe(L=>{"popstate"===L.type&&D(L.url,L.state)})}handleRouterEvent(D,L){if(D instanceof Or)this.stateMemento=this.createStateMemento();else if(D instanceof ai)this.rawUrlTree=L.initialUrl;else if(D instanceof ei){if("eager"===this.urlUpdateStrategy&&!L.extras.skipLocationChange){const ae=this.urlHandlingStrategy.merge(L.finalUrl,L.initialUrl);this.setBrowserUrl(ae,L)}}else D instanceof he?(this.currentUrlTree=L.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(L.finalUrl,L.initialUrl),this.routerState=L.targetRouterState,"deferred"===this.urlUpdateStrategy&&(L.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,L))):D instanceof Cr&&(D.code===Tr.GuardRejected||D.code===Tr.NoDataFromResolver)?this.restoreHistory(L):D instanceof li?this.restoreHistory(L,!0):D instanceof zr&&(this.lastSuccessfulId=D.id,this.currentPageId=this.browserPageId)}setBrowserUrl(D,L){const ae=this.urlSerializer.serialize(D);if(this.location.isCurrentPathEqualTo(ae)||L.extras.replaceUrl){const Pt={...L.extras.state,...this.generateNgRouterState(L.id,this.browserPageId)};this.location.replaceState(ae,"",Pt)}else{const Re={...L.extras.state,...this.generateNgRouterState(L.id,this.browserPageId+1)};this.location.go(ae,"",Re)}}restoreHistory(D,L=!1){if("computed"===this.canceledNavigationResolution){const Re=this.currentPageId-this.browserPageId;0!==Re?this.location.historyGo(Re):this.currentUrlTree===D.finalUrl&&0===Re&&(this.resetState(D),this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(L&&this.resetState(D),this.resetUrlToCurrentUrlTree())}resetState(D){var L;this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,null!==(L=D.finalUrl)&&void 0!==L?L:this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(D,L){return"computed"===this.canceledNavigationResolution?{navigationId:D,\u0275routerPageId:L}:{navigationId:D}}}return(E=T).\u0275fac=(()=>{let O;return function(L){return(O||(O=c.xGo(E)))(L||E)}})(),E.\u0275prov=c.jDH({token:E,factory:E.\u0275fac,providedIn:"root"}),T})();var ci=function(E){return E[E.COMPLETE=0]="COMPLETE",E[E.FAILED=1]="FAILED",E[E.REDIRECTING=2]="REDIRECTING",E}(ci||{});function ri(E,T){E.events.pipe((0,at.p)(O=>O instanceof zr||O instanceof Cr||O instanceof li||O instanceof ai),(0,ge.T)(O=>O instanceof zr||O instanceof ai?ci.COMPLETE:O instanceof Cr&&(O.code===Tr.Redirect||O.code===Tr.SupersededByNewNavigation)?ci.REDIRECTING:ci.FAILED),(0,at.p)(O=>O!==ci.REDIRECTING),(0,Fe.s)(1)).subscribe(()=>{T()})}function Hi(E){throw E}const vi={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Rn={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Kn=(()=>{var E;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 D,L;this.disposed=!1,this.isNgZoneEnabled=!1,this.console=(0,c.WQX)(c.H3F),this.stateManager=(0,c.WQX)(pi),this.options=(0,c.WQX)(zo,{optional:!0})||{},this.pendingTasks=(0,c.WQX)(c.TgB),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=(0,c.WQX)(Ke),this.urlSerializer=(0,c.WQX)(ur),this.location=(0,c.WQX)(Ye.aZ),this.urlHandlingStrategy=(0,c.WQX)(ya),this._events=new Me.B,this.errorHandler=this.options.errorHandler||Hi,this.navigated=!1,this.routeReuseStrategy=(0,c.WQX)(wn),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=null!==(D=null===(L=(0,c.WQX)(va,{optional:!0}))||void 0===L?void 0:L.flat())&&void 0!==D?D:[],this.componentInputBindingEnabled=!!(0,c.WQX)(sn,{optional:!0}),this.eventsSubscription=new St.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:ae=>{this.console.warn(ae)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){const D=this.navigationTransitions.events.subscribe(L=>{try{const ae=this.navigationTransitions.currentTransition,Re=this.navigationTransitions.currentNavigation;if(null!==ae&&null!==Re)if(this.stateManager.handleRouterEvent(L,Re),L instanceof Cr&&L.code!==Tr.Redirect&&L.code!==Tr.SupersededByNewNavigation)this.navigated=!0;else if(L instanceof zr)this.navigated=!0;else if(L instanceof le){const Pt=this.urlHandlingStrategy.merge(L.url,ae.currentRawUrl),fn={info:ae.extras.info,skipLocationChange:ae.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||Qt(ae.source)};this.scheduleNavigation(Pt,xr,null,fn,{resolve:ae.resolve,reject:ae.reject,promise:ae.promise})}(function qi(E){return!(E instanceof he||E instanceof le)})(L)&&this._events.next(L)}catch(ae){this.navigationTransitions.transitionAbortSubject.next(ae)}});this.eventsSubscription.add(D)}resetRootComponentType(D){this.routerState.root.component=D,this.navigationTransitions.rootComponentType=D}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),xr,this.stateManager.restoredState())}setUpLocationChangeListener(){var D;null!==(D=this.nonRouterCurrentEntryChangeSubscription)&&void 0!==D||(this.nonRouterCurrentEntryChangeSubscription=this.stateManager.registerNonRouterCurrentEntryChangeListener((L,ae)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(L,"popstate",ae)},0)}))}navigateToSyncWithBrowser(D,L,ae){const Re={replaceUrl:!0},Pt=null!=ae&&ae.navigationId?ae:null;if(ae){const Bt={...ae};delete Bt.navigationId,delete Bt.\u0275routerPageId,0!==Object.keys(Bt).length&&(Re.state=Bt)}const fn=this.parseUrl(D);this.scheduleNavigation(fn,L,Pt,Re)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(D){this.config=D.map(Ss),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(D,L={}){const{relativeTo:ae,queryParams:Re,fragment:Pt,queryParamsHandling:fn,preserveFragment:Bt}=L,Bn=Bt?this.currentUrlTree.fragment:Pt;let $i,Vr=null;switch(fn){case"merge":Vr={...this.currentUrlTree.queryParams,...Re};break;case"preserve":Vr=this.currentUrlTree.queryParams;break;default:Vr=Re||null}null!==Vr&&(Vr=this.removeEmptyProps(Vr));try{$i=Zr(ae?ae.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof D[0]||!D[0].startsWith("/"))&&(D=[]),$i=this.currentUrlTree.root}return fr($i,D,Vr,null!=Bn?Bn:null)}navigateByUrl(D,L={skipLocationChange:!1}){const ae=dr(D)?D:this.parseUrl(D),Re=this.urlHandlingStrategy.merge(ae,this.rawUrlTree);return this.scheduleNavigation(Re,xr,null,L)}navigate(D,L={skipLocationChange:!1}){return function Di(E){for(let T=0;T(null!=Re&&(L[ae]=Re),L),{})}scheduleNavigation(D,L,ae,Re,Pt){if(this.disposed)return Promise.resolve(!1);let fn,Bt,Bn;Pt?(fn=Pt.resolve,Bt=Pt.reject,Bn=Pt.promise):Bn=new Promise(($i,yi)=>{fn=$i,Bt=yi});const Vr=this.pendingTasks.add();return ri(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(Vr))}),this.navigationTransitions.handleNavigationRequest({source:L,restoredState:ae,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:D,extras:Re,resolve:fn,reject:Bt,promise:Bn,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),Bn.catch($i=>Promise.reject($i))}}return(E=T).\u0275fac=function(D){return new(D||E)},E.\u0275prov=c.jDH({token:E,factory:E.\u0275fac,providedIn:"root"}),T})(),Si=(()=>{var E;class T{constructor(D,L,ae,Re,Pt,fn){var Bt;this.router=D,this.route=L,this.tabIndexAttribute=ae,this.renderer=Re,this.el=Pt,this.locationStrategy=fn,this.href=null,this.commands=null,this.onChanges=new Me.B,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;const Bn=null===(Bt=Pt.nativeElement.tagName)||void 0===Bt?void 0:Bt.toLowerCase();this.isAnchorElement="a"===Bn||"area"===Bn,this.isAnchorElement?this.subscription=D.events.subscribe(Vr=>{Vr instanceof zr&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(D){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",D)}ngOnChanges(D){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(D){null!=D?(this.commands=Array.isArray(D)?D:[D],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(D,L,ae,Re,Pt){const fn=this.urlTree;return!!(null===fn||this.isAnchorElement&&(0!==D||L||ae||Re||Pt||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(fn,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info}),!this.isAnchorElement)}ngOnDestroy(){var D;null===(D=this.subscription)||void 0===D||D.unsubscribe()}updateHref(){var D;const L=this.urlTree;this.href=null!==L&&this.locationStrategy?null===(D=this.locationStrategy)||void 0===D?void 0:D.prepareExternalUrl(this.router.serializeUrl(L)):null;const ae=null===this.href?null:(0,c.n$t)(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",ae)}applyAttributeValue(D,L){const ae=this.renderer,Re=this.el.nativeElement;null!==L?ae.setAttribute(Re,D,L):ae.removeAttribute(Re,D)}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(E=T).\u0275fac=function(D){return new(D||E)(c.rXU(Kn),c.rXU(Ee),c.kS0("tabindex"),c.rXU(c.sFG),c.rXU(c.aKT),c.rXU(Ye.hb))},E.\u0275dir=c.FsC({type:E,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(D,L){1&D&&c.bIt("click",function(Re){return L.onClick(Re.button,Re.ctrlKey,Re.shiftKey,Re.altKey,Re.metaKey)}),2&D&&c.BMQ("target",L.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$]}),T})();class _i{}let Ki=(()=>{var E;class T{preload(D,L){return L().pipe(on(()=>(0,U.of)(null)))}}return(E=T).\u0275fac=function(D){return new(D||E)},E.\u0275prov=c.jDH({token:E,factory:E.\u0275fac,providedIn:"root"}),T})(),Br=(()=>{var E;class T{constructor(D,L,ae,Re,Pt){this.router=D,this.injector=ae,this.preloadingStrategy=Re,this.loader=Pt}setUpPreloading(){this.subscription=this.router.events.pipe((0,at.p)(D=>D instanceof zr),(0,Nt.H)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(D,L){const ae=[];for(const Bt of L){var Re,Pt;Bt.providers&&!Bt._injector&&(Bt._injector=(0,c.Ol2)(Bt.providers,D,`Route: ${Bt.path}`));const Bn=null!==(Re=Bt._injector)&&void 0!==Re?Re:D,Vr=null!==(Pt=Bt._loadedInjector)&&void 0!==Pt?Pt:Bn;var fn;(Bt.loadChildren&&!Bt._loadedRoutes&&void 0===Bt.canLoad||Bt.loadComponent&&!Bt._loadedComponent)&&ae.push(this.preloadConfig(Bn,Bt)),(Bt.children||Bt._loadedRoutes)&&ae.push(this.processRoutes(Vr,null!==(fn=Bt.children)&&void 0!==fn?fn:Bt._loadedRoutes))}return(0,Oe.H)(ae).pipe((0,dn.U)())}preloadConfig(D,L){return this.preloadingStrategy.preload(L,()=>{let ae;ae=L.loadChildren&&void 0===L.canLoad?this.loader.loadChildren(D,L):(0,U.of)(null);const Re=ae.pipe((0,Rt.Z)(Pt=>{var fn;return null===Pt?(0,U.of)(void 0):(L._loadedRoutes=Pt.routes,L._loadedInjector=Pt.injector,this.processRoutes(null!==(fn=Pt.injector)&&void 0!==fn?fn:D,Pt.routes))}));if(L.loadComponent&&!L._loadedComponent){const Pt=this.loader.loadComponent(L);return(0,Oe.H)([Re,Pt]).pipe((0,dn.U)())}return Re})}}return(E=T).\u0275fac=function(D){return new(D||E)(c.KVO(Kn),c.KVO(c.Ql9),c.KVO(c.uvJ),c.KVO(_i),c.KVO(_a))},E.\u0275prov=c.jDH({token:E,factory:E.\u0275fac,providedIn:"root"}),T})();const Xs=new c.nKC("");let vc=(()=>{var E;class T{constructor(D,L,ae,Re,Pt={}){this.urlSerializer=D,this.transitions=L,this.viewportScroller=ae,this.zone=Re,this.options=Pt,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},this.environmentInjector=(0,c.WQX)(c.uvJ),Pt.scrollPositionRestoration||(Pt.scrollPositionRestoration="disabled"),Pt.anchorScrolling||(Pt.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(D=>{D instanceof Or?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=D.navigationTrigger,this.restoredId=D.restoredState?D.restoredState.navigationId:0):D instanceof zr?(this.lastId=D.id,this.scheduleScrollEvent(D,this.urlSerializer.parse(D.urlAfterRedirects).fragment)):D instanceof ai&&D.code===Gn.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(D,this.urlSerializer.parse(D.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(D=>{D instanceof bt&&(D.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(D.position):D.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(D.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(D,L){var ae=this;this.zone.runOutsideAngular((0,h.A)(function*(){yield new Promise(Re=>{setTimeout(()=>{Re()}),(0,c.mal)(()=>{Re()},{injector:ae.environmentInjector})}),ae.zone.run(()=>{ae.transitions.events.next(new bt(D,"popstate"===ae.lastSource?ae.store[ae.restoredId]:null,L))})}))}ngOnDestroy(){var D,L;null===(D=this.routerEventsSubscription)||void 0===D||D.unsubscribe(),null===(L=this.scrollEventsSubscription)||void 0===L||L.unsubscribe()}}return(E=T).\u0275fac=function(D){c.QTQ()},E.\u0275prov=c.jDH({token:E,factory:E.\u0275fac}),T})();function Co(E,T){return{\u0275kind:E,\u0275providers:T}}function Mi(){const E=(0,c.WQX)(c.zZn);return T=>{var O,D;const L=E.get(c.o8S);if(T!==L.components[0])return;const ae=E.get(Kn),Re=E.get(Qs);1===E.get(cs)&&ae.initialNavigation(),null===(O=E.get(Wo,null,c.$GK.Optional))||void 0===O||O.setUpPreloading(),null===(D=E.get(Xs,null,c.$GK.Optional))||void 0===D||D.init(),ae.resetRootComponentType(L.componentTypes[0]),Re.closed||(Re.next(),Re.complete(),Re.unsubscribe())}}const Qs=new c.nKC("",{factory:()=>new Me.B}),cs=new c.nKC("",{providedIn:"root",factory:()=>1}),Wo=new c.nKC("");function pl(E){return Co(0,[{provide:Wo,useExisting:Br},{provide:_i,useExisting:E}])}function Do(E){return Co(9,[{provide:$,useValue:F},{provide:Be,useValue:{skipNextTransition:!(null==E||!E.skipInitialTransition),...E}}])}const rs=new c.nKC("ROUTER_FORROOT_GUARD"),Ys=[Ye.aZ,{provide:ur,useClass:Pr},Kn,Ve,{provide:Ee,useFactory:function Gi(E){return E.routerState.root},deps:[Kn]},_a,[]];let ds=(()=>{var E;class T{constructor(D){}static forRoot(D,L){return{ngModule:T,providers:[Ys,[],{provide:va,multi:!0,useValue:D},{provide:rs,useFactory:Aa,deps:[[Kn,new c.Xx1,new c.kdw]]},{provide:zo,useValue:L||{}},null!=L&&L.useHash?{provide:Ye.hb,useClass:Ye.fw}:{provide:Ye.hb,useClass:Ye.Sm},{provide:Xs,useFactory:()=>{const E=(0,c.WQX)(Ye.Xr),T=(0,c.WQX)(c.SKi),O=(0,c.WQX)(zo),D=(0,c.WQX)(Ke),L=(0,c.WQX)(ur);return O.scrollOffset&&E.setOffset(O.scrollOffset),new vc(L,D,E,T,O)}},null!=L&&L.preloadingStrategy?pl(L.preloadingStrategy).\u0275providers:[],null!=L&&L.initialNavigation?Mu(L):[],null!=L&&L.bindToComponentInputs?Co(8,[cn,{provide:sn,useExisting:cn}]).\u0275providers:[],null!=L&&L.enableViewTransitions?Do().\u0275providers:[],[{provide:Ca,useFactory:Mi},{provide:c.iLQ,multi:!0,useExisting:Ca}]]}}static forChild(D){return{ngModule:T,providers:[{provide:va,multi:!0,useValue:D}]}}}return(E=T).\u0275fac=function(D){return new(D||E)(c.KVO(rs,8))},E.\u0275mod=c.$C({type:E}),E.\u0275inj=c.G2t({}),T})();function Aa(E){return"guarded"}function Mu(E){return["disabled"===E.initialNavigation?Co(3,[{provide:c.hnV,multi:!0,useFactory:()=>{const T=(0,c.WQX)(Kn);return()=>{T.setUpLocationChangeListener()}}},{provide:cs,useValue:2}]).\u0275providers:[],"enabledBlocking"===E.initialNavigation?Co(2,[{provide:cs,useValue:0},{provide:c.hnV,multi:!0,deps:[c.zZn],useFactory:T=>{const O=T.get(Ye.hj,Promise.resolve());return()=>O.then(()=>new Promise(D=>{const L=T.get(Kn),ae=T.get(Qs);ri(L,()=>{D(!0)}),T.get(Ke).afterPreactivation=()=>(D(!0),ae.closed?(0,U.of)(void 0):ae),L.initialNavigation()}))}}]).\u0275providers:[]]}const Ca=new c.nKC("")},7852:(Tn,gt,S)=>{"use strict";S.d(gt,{MF:()=>Ai,j6:()=>Dr,xZ:()=>mr,om:()=>Qn,Sx:()=>rt,Dk:()=>Mt,Wp:()=>Qr,KO:()=>ye});var h=S(467),c=S(1362),Z=S(8041),Oe=S(1076);const U=(Ut,te)=>te.some(ee=>Ut instanceof ee);let ue,oe;const Se=new WeakMap,Ce=new WeakMap,Qe=new WeakMap,Ze=new WeakMap,qe=new WeakMap;let St={get(Ut,te,ee){if(Ut instanceof IDBTransaction){if("done"===te)return Ce.get(Ut);if("objectStoreNames"===te)return Ut.objectStoreNames||Qe.get(Ut);if("store"===te)return ee.objectStoreNames[1]?void 0:ee.objectStore(ee.objectStoreNames[0])}return mt(Ut[te])},set:(Ut,te,ee)=>(Ut[te]=ee,!0),has:(Ut,te)=>Ut instanceof IDBTransaction&&("done"===te||"store"===te)||te in Ut};function yt(Ut){return"function"==typeof Ut?function Tt(Ut){return Ut!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?function Je(){return oe||(oe=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}().includes(Ut)?function(...te){return Ut.apply(Me(this),te),mt(Se.get(this))}:function(...te){return mt(Ut.apply(Me(this),te))}:function(te,...ee){const ze=Ut.call(Me(this),te,...ee);return Qe.set(ze,te.sort?te.sort():[te]),mt(ze)}}(Ut):(Ut instanceof IDBTransaction&&function Dt(Ut){if(Ce.has(Ut))return;const te=new Promise((ee,ze)=>{const M=()=>{Ut.removeEventListener("complete",x),Ut.removeEventListener("error",ne),Ut.removeEventListener("abort",ne)},x=()=>{ee(),M()},ne=()=>{ze(Ut.error||new DOMException("AbortError","AbortError")),M()};Ut.addEventListener("complete",x),Ut.addEventListener("error",ne),Ut.addEventListener("abort",ne)});Ce.set(Ut,te)}(Ut),U(Ut,function Xe(){return ue||(ue=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}())?new Proxy(Ut,St):Ut)}function mt(Ut){if(Ut instanceof IDBRequest)return function ht(Ut){const te=new Promise((ee,ze)=>{const M=()=>{Ut.removeEventListener("success",x),Ut.removeEventListener("error",ne)},x=()=>{ee(mt(Ut.result)),M()},ne=()=>{ze(Ut.error),M()};Ut.addEventListener("success",x),Ut.addEventListener("error",ne)});return te.then(ee=>{ee instanceof IDBCursor&&Se.set(ee,Ut)}).catch(()=>{}),qe.set(te,Ut),te}(Ut);if(Ze.has(Ut))return Ze.get(Ut);const te=yt(Ut);return te!==Ut&&(Ze.set(Ut,te),qe.set(te,Ut)),te}const Me=Ut=>qe.get(Ut),Ue=["get","getKey","getAll","getAllKeys","count"],Fe=["put","add","delete","clear"],xe=new Map;function at(Ut,te){if(!(Ut instanceof IDBDatabase)||te in Ut||"string"!=typeof te)return;if(xe.get(te))return xe.get(te);const ee=te.replace(/FromIndex$/,""),ze=te!==ee,M=Fe.includes(ee);if(!(ee in(ze?IDBIndex:IDBObjectStore).prototype)||!M&&!Ue.includes(ee))return;const x=function(){var ne=(0,h.A)(function*(Te,...Ge){const At=this.transaction(Te,M?"readwrite":"readonly");let Jt=At.store;return ze&&(Jt=Jt.index(Ge.shift())),(yield Promise.all([Jt[ee](...Ge),M&&At.done]))[0]});return function(Ge){return ne.apply(this,arguments)}}();return xe.set(te,x),x}!function _t(Ut){St=Ut(St)}(Ut=>({...Ut,get:(te,ee,ze)=>at(te,ee)||Ut.get(te,ee,ze),has:(te,ee)=>!!at(te,ee)||Ut.has(te,ee)}));class Rt{constructor(te){this.container=te}getPlatformInfoString(){return this.container.getProviders().map(ee=>{if(function vn(Ut){const te=Ut.getComponent();return"VERSION"===(null==te?void 0:te.type)}(ee)){const ze=ee.getImmediate();return`${ze.library}/${ze.version}`}return null}).filter(ee=>ee).join(" ")}}const Nt="@firebase/app",on=new Z.Vy("@firebase/app"),Mn="[DEFAULT]",xn={[Nt]:"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"},mn=new Map,en=new Map,Er=new Map;function Ir(Ut,te){try{Ut.container.addComponent(te)}catch(ee){on.debug(`Component ${te.name} failed to register with FirebaseApp ${Ut.name}`,ee)}}function Qn(Ut){const te=Ut.name;if(Er.has(te))return on.debug(`There were multiple attempts to register component ${te}.`),!1;Er.set(te,Ut);for(const ee of mn.values())Ir(ee,Ut);for(const ee of en.values())Ir(ee,Ut);return!0}function Dr(Ut,te){const ee=Ut.container.getProvider("heartbeat").getImmediate({optional:!0});return ee&&ee.triggerHeartbeat(),Ut.container.getProvider(te)}function mr(Ut){return void 0!==Ut.settings}const cr=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 kr{constructor(te,ee,ze){this._isDeleted=!1,this._options=Object.assign({},te),this._config=Object.assign({},ee),this._name=ee.name,this._automaticDataCollectionEnabled=ee.automaticDataCollectionEnabled,this._container=ze,this.container.addComponent(new c.uA("app",()=>this,"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(te){this.checkDestroyed(),this._automaticDataCollectionEnabled=te}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(te){this._isDeleted=te}checkDestroyed(){if(this.isDeleted)throw cr.create("app-deleted",{appName:this._name})}}const Ai="10.12.2";function Qr(Ut,te={}){let ee=Ut;"object"!=typeof te&&(te={name:te});const ze=Object.assign({name:Mn,automaticDataCollectionEnabled:!1},te),M=ze.name;if("string"!=typeof M||!M)throw cr.create("bad-app-name",{appName:String(M)});if(ee||(ee=(0,Oe.T9)()),!ee)throw cr.create("no-options");const x=mn.get(M);if(x){if((0,Oe.bD)(ee,x.options)&&(0,Oe.bD)(ze,x.config))return x;throw cr.create("duplicate-app",{appName:M})}const ne=new c.h1(M);for(const Ge of Er.values())ne.addComponent(Ge);const Te=new kr(ee,ze,ne);return mn.set(M,Te),Te}function rt(Ut=Mn){const te=mn.get(Ut);if(!te&&Ut===Mn&&(0,Oe.T9)())return Qr();if(!te)throw cr.create("no-app",{appName:Ut});return te}function Mt(){return Array.from(mn.values())}function ye(Ut,te,ee){var ze;let M=null!==(ze=xn[Ut])&&void 0!==ze?ze:Ut;ee&&(M+=`-${ee}`);const x=M.match(/\s|\//),ne=te.match(/\s|\//);if(x||ne){const Te=[`Unable to register library "${M}" with version "${te}":`];return x&&Te.push(`library name "${M}" contains illegal characters (whitespace or "/")`),x&&ne&&Te.push("and"),ne&&Te.push(`version name "${te}" contains illegal characters (whitespace or "/")`),void on.warn(Te.join(" "))}Qn(new c.uA(`${M}-version`,()=>({library:M,version:te}),"VERSION"))}const ie="firebase-heartbeat-database",ct=1,lt="firebase-heartbeat-store";let Gt=null;function tn(){return Gt||(Gt=function Ye(Ut,te,{blocked:ee,upgrade:ze,blocking:M,terminated:x}={}){const ne=indexedDB.open(Ut,te),Te=mt(ne);return ze&&ne.addEventListener("upgradeneeded",Ge=>{ze(mt(ne.result),Ge.oldVersion,Ge.newVersion,mt(ne.transaction),Ge)}),ee&&ne.addEventListener("blocked",Ge=>ee(Ge.oldVersion,Ge.newVersion,Ge)),Te.then(Ge=>{x&&Ge.addEventListener("close",()=>x()),M&&Ge.addEventListener("versionchange",At=>M(At.oldVersion,At.newVersion,At))}).catch(()=>{}),Te}(ie,ct,{upgrade:(Ut,te)=>{if(0===te)try{Ut.createObjectStore(lt)}catch(ee){console.warn(ee)}}}).catch(Ut=>{throw cr.create("idb-open",{originalErrorMessage:Ut.message})})),Gt}function qn(){return(qn=(0,h.A)(function*(Ut){try{const ee=(yield tn()).transaction(lt),ze=yield ee.objectStore(lt).get(tr(Ut));return yield ee.done,ze}catch(te){if(te instanceof Oe.g)on.warn(te.message);else{const ee=cr.create("idb-get",{originalErrorMessage:null==te?void 0:te.message});on.warn(ee.message)}}})).apply(this,arguments)}function hn(Ut,te){return Cn.apply(this,arguments)}function Cn(){return(Cn=(0,h.A)(function*(Ut,te){try{const ze=(yield tn()).transaction(lt,"readwrite");yield ze.objectStore(lt).put(te,tr(Ut)),yield ze.done}catch(ee){if(ee instanceof Oe.g)on.warn(ee.message);else{const ze=cr.create("idb-set",{originalErrorMessage:null==ee?void 0:ee.message});on.warn(ze.message)}}})).apply(this,arguments)}function tr(Ut){return`${Ut.name}!${Ut.options.appId}`}class $r{constructor(te){this.container=te,this._heartbeatsCache=null;const ee=this.container.getProvider("app").getImmediate();this._storage=new Ri(ee),this._heartbeatsCachePromise=this._storage.read().then(ze=>(this._heartbeatsCache=ze,ze))}triggerHeartbeat(){var te=this;return(0,h.A)(function*(){var ee,ze;const x=te.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),ne=Zr();if((null!=(null===(ee=te._heartbeatsCache)||void 0===ee?void 0:ee.heartbeats)||(te._heartbeatsCache=yield te._heartbeatsCachePromise,null!=(null===(ze=te._heartbeatsCache)||void 0===ze?void 0:ze.heartbeats)))&&te._heartbeatsCache.lastSentHeartbeatDate!==ne&&!te._heartbeatsCache.heartbeats.some(Te=>Te.date===ne))return te._heartbeatsCache.heartbeats.push({date:ne,agent:x}),te._heartbeatsCache.heartbeats=te._heartbeatsCache.heartbeats.filter(Te=>{const Ge=new Date(Te.date).valueOf();return Date.now()-Ge<=2592e6}),te._storage.overwrite(te._heartbeatsCache)})()}getHeartbeatsHeader(){var te=this;return(0,h.A)(function*(){var ee;if(null===te._heartbeatsCache&&(yield te._heartbeatsCachePromise),null==(null===(ee=te._heartbeatsCache)||void 0===ee?void 0:ee.heartbeats)||0===te._heartbeatsCache.heartbeats.length)return"";const ze=Zr(),{heartbeatsToSend:M,unsentEntries:x}=function fr(Ut,te=1024){const ee=[];let ze=Ut.slice();for(const M of Ut){const x=ee.find(ne=>ne.agent===M.agent);if(x){if(x.dates.push(M.date),gi(ee)>te){x.dates.pop();break}}else if(ee.push({agent:M.agent,dates:[M.date]}),gi(ee)>te){ee.pop();break}ze=ze.slice(1)}return{heartbeatsToSend:ee,unsentEntries:ze}}(te._heartbeatsCache.heartbeats),ne=(0,Oe.Uj)(JSON.stringify({version:2,heartbeats:M}));return te._heartbeatsCache.lastSentHeartbeatDate=ze,x.length>0?(te._heartbeatsCache.heartbeats=x,yield te._storage.overwrite(te._heartbeatsCache)):(te._heartbeatsCache.heartbeats=[],te._storage.overwrite(te._heartbeatsCache)),ne})()}}function Zr(){return(new Date).toISOString().substring(0,10)}class Ri{constructor(te){this.app=te,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}runIndexedDBEnvironmentCheck(){return(0,h.A)(function*(){return!!(0,Oe.zW)()&&(0,Oe.eX)().then(()=>!0).catch(()=>!1)})()}read(){var te=this;return(0,h.A)(function*(){if(yield te._canUseIndexedDBPromise){const ze=yield function _n(Ut){return qn.apply(this,arguments)}(te.app);return null!=ze&&ze.heartbeats?ze:{heartbeats:[]}}return{heartbeats:[]}})()}overwrite(te){var ee=this;return(0,h.A)(function*(){var ze;if(yield ee._canUseIndexedDBPromise){const x=yield ee.read();return hn(ee.app,{lastSentHeartbeatDate:null!==(ze=te.lastSentHeartbeatDate)&&void 0!==ze?ze:x.lastSentHeartbeatDate,heartbeats:te.heartbeats})}})()}add(te){var ee=this;return(0,h.A)(function*(){var ze;if(yield ee._canUseIndexedDBPromise){const x=yield ee.read();return hn(ee.app,{lastSentHeartbeatDate:null!==(ze=te.lastSentHeartbeatDate)&&void 0!==ze?ze:x.lastSentHeartbeatDate,heartbeats:[...x.heartbeats,...te.heartbeats]})}})()}}function gi(Ut){return(0,Oe.Uj)(JSON.stringify({version:2,heartbeats:Ut})).length}!function pr(Ut){Qn(new c.uA("platform-logger",te=>new Rt(te),"PRIVATE")),Qn(new c.uA("heartbeat",te=>new $r(te),"PRIVATE")),ye(Nt,"0.10.5",Ut),ye(Nt,"0.10.5","esm2017"),ye("fire-js","")}("")},1362:(Tn,gt,S)=>{"use strict";S.d(gt,{h1:()=>Xe,uA:()=>Z});var h=S(467),c=S(1076);class Z{constructor(Se,Ce,Qe){this.name=Se,this.instanceFactory=Ce,this.type=Qe,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(Se){return this.instantiationMode=Se,this}setMultipleInstances(Se){return this.multipleInstances=Se,this}setServiceProps(Se){return this.serviceProps=Se,this}setInstanceCreatedCallback(Se){return this.onInstanceCreated=Se,this}}const Oe="[DEFAULT]";class U{constructor(Se,Ce){this.name=Se,this.container=Ce,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(Se){const Ce=this.normalizeInstanceIdentifier(Se);if(!this.instancesDeferred.has(Ce)){const Qe=new c.cY;if(this.instancesDeferred.set(Ce,Qe),this.isInitialized(Ce)||this.shouldAutoInitialize())try{const Ze=this.getOrInitializeService({instanceIdentifier:Ce});Ze&&Qe.resolve(Ze)}catch{}}return this.instancesDeferred.get(Ce).promise}getImmediate(Se){var Ce;const Qe=this.normalizeInstanceIdentifier(null==Se?void 0:Se.identifier),Ze=null!==(Ce=null==Se?void 0:Se.optional)&&void 0!==Ce&&Ce;if(!this.isInitialized(Qe)&&!this.shouldAutoInitialize()){if(Ze)return null;throw Error(`Service ${this.name} is not available`)}try{return this.getOrInitializeService({instanceIdentifier:Qe})}catch(qe){if(Ze)return null;throw qe}}getComponent(){return this.component}setComponent(Se){if(Se.name!==this.name)throw Error(`Mismatching Component ${Se.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=Se,this.shouldAutoInitialize()){if(function oe(Je){return"EAGER"===Je.instantiationMode}(Se))try{this.getOrInitializeService({instanceIdentifier:Oe})}catch{}for(const[Ce,Qe]of this.instancesDeferred.entries()){const Ze=this.normalizeInstanceIdentifier(Ce);try{const qe=this.getOrInitializeService({instanceIdentifier:Ze});Qe.resolve(qe)}catch{}}}}clearInstance(Se=Oe){this.instancesDeferred.delete(Se),this.instancesOptions.delete(Se),this.instances.delete(Se)}delete(){var Se=this;return(0,h.A)(function*(){const Ce=Array.from(Se.instances.values());yield Promise.all([...Ce.filter(Qe=>"INTERNAL"in Qe).map(Qe=>Qe.INTERNAL.delete()),...Ce.filter(Qe=>"_delete"in Qe).map(Qe=>Qe._delete())])})()}isComponentSet(){return null!=this.component}isInitialized(Se=Oe){return this.instances.has(Se)}getOptions(Se=Oe){return this.instancesOptions.get(Se)||{}}initialize(Se={}){const{options:Ce={}}=Se,Qe=this.normalizeInstanceIdentifier(Se.instanceIdentifier);if(this.isInitialized(Qe))throw Error(`${this.name}(${Qe}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);const Ze=this.getOrInitializeService({instanceIdentifier:Qe,options:Ce});for(const[qe,ht]of this.instancesDeferred.entries())Qe===this.normalizeInstanceIdentifier(qe)&&ht.resolve(Ze);return Ze}onInit(Se,Ce){var Qe;const Ze=this.normalizeInstanceIdentifier(Ce),qe=null!==(Qe=this.onInitCallbacks.get(Ze))&&void 0!==Qe?Qe:new Set;qe.add(Se),this.onInitCallbacks.set(Ze,qe);const ht=this.instances.get(Ze);return ht&&Se(ht,Ze),()=>{qe.delete(Se)}}invokeOnInitCallbacks(Se,Ce){const Qe=this.onInitCallbacks.get(Ce);if(Qe)for(const Ze of Qe)try{Ze(Se,Ce)}catch{}}getOrInitializeService({instanceIdentifier:Se,options:Ce={}}){let Qe=this.instances.get(Se);if(!Qe&&this.component&&(Qe=this.component.instanceFactory(this.container,{instanceIdentifier:(Je=Se,Je===Oe?void 0:Je),options:Ce}),this.instances.set(Se,Qe),this.instancesOptions.set(Se,Ce),this.invokeOnInitCallbacks(Qe,Se),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,Se,Qe)}catch{}var Je;return Qe||null}normalizeInstanceIdentifier(Se=Oe){return this.component?this.component.multipleInstances?Se:Oe:Se}shouldAutoInitialize(){return!!this.component&&"EXPLICIT"!==this.component.instantiationMode}}class Xe{constructor(Se){this.name=Se,this.providers=new Map}addComponent(Se){const Ce=this.getProvider(Se.name);if(Ce.isComponentSet())throw new Error(`Component ${Se.name} has already been registered with ${this.name}`);Ce.setComponent(Se)}addOrOverwriteComponent(Se){this.getProvider(Se.name).isComponentSet()&&this.providers.delete(Se.name),this.addComponent(Se)}getProvider(Se){if(this.providers.has(Se))return this.providers.get(Se);const Ce=new U(Se,this);return this.providers.set(Se,Ce),Ce}getProviders(){return Array.from(this.providers.values())}}},8041:(Tn,gt,S)=>{"use strict";S.d(gt,{$b:()=>c,Vy:()=>oe});const h=[];var c=function(Se){return Se[Se.DEBUG=0]="DEBUG",Se[Se.VERBOSE=1]="VERBOSE",Se[Se.INFO=2]="INFO",Se[Se.WARN=3]="WARN",Se[Se.ERROR=4]="ERROR",Se[Se.SILENT=5]="SILENT",Se}(c||{});const Z={debug:c.DEBUG,verbose:c.VERBOSE,info:c.INFO,warn:c.WARN,error:c.ERROR,silent:c.SILENT},Oe=c.INFO,U={[c.DEBUG]:"log",[c.VERBOSE]:"log",[c.INFO]:"info",[c.WARN]:"warn",[c.ERROR]:"error"},ue=(Se,Ce,...Qe)=>{if(Ce{"use strict";S.d(gt,{Yq:()=>nt,TS:()=>er,sR:()=>yr,el:()=>tn,Sb:()=>mr,QE:()=>tr,CF:()=>Dr,Rg:()=>ye,p4:()=>Ar,jM:()=>pr,_t:()=>ve,q9:()=>rn,Kb:()=>Ut,CE:()=>_n,pF:()=>qn,fL:()=>$r,YV:()=>ct,er:()=>dr,z3:()=>Zr});var h=S(467),c=S(9842),Z=S(4438),Oe=S(7650),U=S(177),ue=S(5531),oe=S(4442);var Rt=S(1413),vn=S(3726),Nt=S(4412),tt=S(4572),on=S(7673),dt=S(1635),we=S(5964),H=S(5558),X=S(3294),fe=S(4341);const se=["tabsInner"];class ve{constructor(ee){(0,c.A)(this,"menuController",void 0),this.menuController=ee}open(ee){return this.menuController.open(ee)}close(ee){return this.menuController.close(ee)}toggle(ee){return this.menuController.toggle(ee)}enable(ee,ze){return this.menuController.enable(ee,ze)}swipeGesture(ee,ze){return this.menuController.swipeGesture(ee,ze)}isOpen(ee){return this.menuController.isOpen(ee)}isEnabled(ee){return this.menuController.isEnabled(ee)}get(ee){return this.menuController.get(ee)}getOpen(){return this.menuController.getOpen()}getMenus(){return this.menuController.getMenus()}registerAnimation(ee,ze){return this.menuController.registerAnimation(ee,ze)}isAnimating(){return this.menuController.isAnimating()}_getOpenSync(){return this.menuController._getOpenSync()}_createAnimation(ee,ze){return this.menuController._createAnimation(ee,ze)}_register(ee){return this.menuController._register(ee)}_unregister(ee){return this.menuController._unregister(ee)}_setOpen(ee,ze,M){return this.menuController._setOpen(ee,ze,M)}}let Wt=(()=>{var te;class ee{constructor(M,x){(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 Rt.B),(0,c.A)(this,"keyboardDidShow",new Rt.B),(0,c.A)(this,"keyboardDidHide",new Rt.B),(0,c.A)(this,"pause",new Rt.B),(0,c.A)(this,"resume",new Rt.B),(0,c.A)(this,"resize",new Rt.B),this.doc=M,x.run(()=>{var ne;let Te;this.win=M.defaultView,this.backButton.subscribeWithPriority=function(Ge,At){return this.subscribe(Jt=>Jt.register(Ge,ln=>x.run(()=>At(ln))))},Kt(this.pause,M,"pause",x),Kt(this.resume,M,"resume",x),Kt(this.backButton,M,"ionBackButton",x),Kt(this.resize,this.win,"resize",x),Kt(this.keyboardDidShow,this.win,"ionKeyboardDidShow",x),Kt(this.keyboardDidHide,this.win,"ionKeyboardDidHide",x),this._readyPromise=new Promise(Ge=>{Te=Ge}),null!==(ne=this.win)&&void 0!==ne&&ne.cordova?M.addEventListener("deviceready",()=>{Te("cordova")},{once:!0}):Te("dom")})}is(M){return(0,ue.a)(this.win,M)}platforms(){return(0,ue.g)(this.win)}ready(){return this._readyPromise}get isRTL(){return"rtl"===this.doc.dir}getQueryParam(M){return dn(this.win.location.href,M)}isLandscape(){return!this.isPortrait()}isPortrait(){var M,x;return null===(M=(x=this.win).matchMedia)||void 0===M?void 0:M.call(x,"(orientation: portrait)").matches}testUserAgent(M){const x=this.win.navigator;return!!(null!=x&&x.userAgent&&x.userAgent.indexOf(M)>=0)}url(){return this.win.location.href}width(){return this.win.innerWidth}height(){return this.win.innerHeight}}return te=ee,(0,c.A)(ee,"\u0275fac",function(M){return new(M||te)(Z.KVO(U.qQ),Z.KVO(Z.SKi))}),(0,c.A)(ee,"\u0275prov",Z.jDH({token:te,factory:te.\u0275fac,providedIn:"root"})),ee})();const dn=(te,ee)=>{ee=ee.replace(/[[\]\\]/g,"\\$&");const M=new RegExp("[\\?&]"+ee+"=([^&#]*)").exec(te);return M?decodeURIComponent(M[1].replace(/\+/g," ")):null},Kt=(te,ee,ze,M)=>{ee&&ee.addEventListener(ze,x=>{M.run(()=>{te.next(null!=x?x.detail:void 0)})})};let rn=(()=>{var te;class ee{constructor(M,x,ne,Te){(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",Zn),(0,c.A)(this,"animated",nr),(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=x,this.serializer=ne,this.router=Te,Te&&Te.events.subscribe(Ge=>{if(Ge instanceof Oe.Z){const At=Ge.restoredState?Ge.restoredState.navigationId:Ge.id;this.guessDirection=this.guessAnimation=At{this.pop(),Ge()})}navigateForward(M,x={}){return this.setDirection("forward",x.animated,x.animationDirection,x.animation),this.navigate(M,x)}navigateBack(M,x={}){return this.setDirection("back",x.animated,x.animationDirection,x.animation),this.navigate(M,x)}navigateRoot(M,x={}){return this.setDirection("root",x.animated,x.animationDirection,x.animation),this.navigate(M,x)}back(M={animated:!0,animationDirection:"back"}){return this.setDirection("back",M.animated,M.animationDirection,M.animation),this.location.back()}pop(){var M=this;return(0,h.A)(function*(){let x=M.topOutlet;for(;x;){if(yield x.pop())return!0;x=x.parentOutlet}return!1})()}setDirection(M,x,ne,Te){this.direction=M,this.animated=Ln(M,x,ne),this.animationBuilder=Te}setTopOutlet(M){this.topOutlet=M}consumeTransition(){let x,M="root";const ne=this.animationBuilder;return"auto"===this.direction?(M=this.guessDirection,x=this.guessAnimation):(x=this.animated,M=this.direction),this.direction=Zn,this.animated=nr,this.animationBuilder=void 0,{direction:M,animation:x,animationBuilder:ne}}navigate(M,x){if(Array.isArray(M))return this.router.navigate(M,x);{const ne=this.serializer.parse(M.toString());return void 0!==x.queryParams&&(ne.queryParams={...x.queryParams}),void 0!==x.fragment&&(ne.fragment=x.fragment),this.router.navigateByUrl(ne,x)}}}return te=ee,(0,c.A)(ee,"\u0275fac",function(M){return new(M||te)(Z.KVO(Wt),Z.KVO(U.aZ),Z.KVO(Oe.Sd),Z.KVO(Oe.Ix,8))}),(0,c.A)(ee,"\u0275prov",Z.jDH({token:te,factory:te.\u0275fac,providedIn:"root"})),ee})();const Ln=(te,ee,ze)=>{if(!1!==ee){if(void 0!==ze)return ze;if("forward"===te||"back"===te)return te;if("root"===te&&!0===ee)return"forward"}},Zn="auto",nr=void 0;let er=(()=>{var te;class ee{get(M,x){const ne=rr();return ne?ne.get(M,x):null}getBoolean(M,x){const ne=rr();return!!ne&&ne.getBoolean(M,x)}getNumber(M,x){const ne=rr();return ne?ne.getNumber(M,x):0}}return te=ee,(0,c.A)(ee,"\u0275fac",function(M){return new(M||te)}),(0,c.A)(ee,"\u0275prov",Z.jDH({token:te,factory:te.\u0275fac,providedIn:"root"})),ee})();const yr=new Z.nKC("USERCONFIG"),rr=()=>{if(typeof window<"u"){const te=window.Ionic;if(null!=te&&te.config)return te.config}return null};class ir{constructor(ee={}){(0,c.A)(this,"data",void 0),this.data=ee,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(ee){return this.data[ee]}}let nt=(()=>{var te;class ee{constructor(){(0,c.A)(this,"zone",(0,Z.WQX)(Z.SKi)),(0,c.A)(this,"applicationRef",(0,Z.WQX)(Z.o8S)),(0,c.A)(this,"config",(0,Z.WQX)(yr))}create(M,x,ne){var Te;return new Ot(M,x,this.applicationRef,this.zone,ne,null!==(Te=this.config.useSetInputAPI)&&void 0!==Te&&Te)}}return te=ee,(0,c.A)(ee,"\u0275fac",function(M){return new(M||te)}),(0,c.A)(ee,"\u0275prov",Z.jDH({token:te,factory:te.\u0275fac})),ee})();class Ot{constructor(ee,ze,M,x,ne,Te){(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=ee,this.injector=ze,this.applicationRef=M,this.zone=x,this.elementReferenceKey=ne,this.enableSignalsSupport=Te}attachViewToDom(ee,ze,M,x){return this.zone.run(()=>new Promise(ne=>{const Te={...M};void 0!==this.elementReferenceKey&&(Te[this.elementReferenceKey]=ee),ne(zt(this.zone,this.environmentInjector,this.injector,this.applicationRef,this.elRefMap,this.elEventsMap,ee,ze,Te,x,this.elementReferenceKey,this.enableSignalsSupport))}))}removeViewFromDom(ee,ze){return this.zone.run(()=>new Promise(M=>{const x=this.elRefMap.get(ze);if(x){x.destroy(),this.elRefMap.delete(ze);const ne=this.elEventsMap.get(ze);ne&&(ne(),this.elEventsMap.delete(ze))}M()}))}}const zt=(te,ee,ze,M,x,ne,Te,Ge,At,Jt,ln,or)=>{const Un=Z.zZn.create({providers:Mn(At),parent:ze}),xr=(0,Z.a0P)(Ge,{environmentInjector:ee,elementInjector:Un}),On=xr.instance,Fr=xr.location.nativeElement;if(At)if(ln&&void 0!==On[ln]&&console.error(`[Ionic Error]: ${ln} is a reserved property when using ${Te.tagName.toLowerCase()}. Rename or remove the "${ln}" property from ${Ge.name}.`),!0===or&&void 0!==xr.setInput){const{modal:zr,popover:Tr,...Gn}=At;for(const Cr in Gn)xr.setInput(Cr,Gn[Cr]);void 0!==zr&&Object.assign(On,{modal:zr}),void 0!==Tr&&Object.assign(On,{popover:Tr})}else Object.assign(On,At);if(Jt)for(const zr of Jt)Fr.classList.add(zr);const Or=gn(te,On,Fr);return Te.appendChild(Fr),M.attachView(xr.hostView),x.set(Fr,xr),ne.set(Fr,Or),Fr},pn=[oe.L,oe.a,oe.b,oe.c,oe.d],gn=(te,ee,ze)=>te.run(()=>{const M=pn.filter(x=>"function"==typeof ee[x]).map(x=>{const ne=Te=>ee[x](Te.detail);return ze.addEventListener(x,ne),()=>ze.removeEventListener(x,ne)});return()=>M.forEach(x=>x())}),Sr=new Z.nKC("NavParamsToken"),Mn=te=>[{provide:Sr,useValue:te},{provide:ir,useFactory:xn,deps:[Sr]}],xn=te=>new ir(te),mn=(te,ee)=>{const ze=te.prototype;ee.forEach(M=>{Object.defineProperty(ze,M,{get(){return this.el[M]},set(x){this.z.runOutsideAngular(()=>this.el[M]=x)}})})},en=(te,ee)=>{const ze=te.prototype;ee.forEach(M=>{ze[M]=function(){const x=arguments;return this.z.runOutsideAngular(()=>this.el[M].apply(this.el,x))}})},Er=(te,ee,ze)=>{ze.forEach(M=>te[M]=(0,vn.R)(ee,M))};function Ir(te){return function(ze){const{defineCustomElementFn:M,inputs:x,methods:ne}=te;return void 0!==M&&M(),x&&mn(ze,x),ne&&en(ze,ne),ze}}const Nr=["alignment","animated","arrow","keepContentsMounted","backdropDismiss","cssClass","dismissOnSelect","enterAnimation","event","isOpen","keyboardClose","leaveAnimation","mode","showBackdrop","translucent","trigger","triggerAction","reference","size","side"],Qn=["present","dismiss","onDidDismiss","onWillDismiss"];let Dr=(()=>{var te;let ee=((0,c.A)(te=class{constructor(M,x,ne){(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=ne,this.el=x.nativeElement,this.el.addEventListener("ionMount",()=>{this.isCmpOpen=!0,M.detectChanges()}),this.el.addEventListener("didDismiss",()=>{this.isCmpOpen=!1,M.detectChanges()}),Er(this,this.el,["ionPopoverDidPresent","ionPopoverWillPresent","ionPopoverWillDismiss","ionPopoverDidDismiss","didPresent","willPresent","willDismiss","didDismiss"])}},"\u0275fac",function(M){return new(M||te)(Z.rXU(Z.gRc),Z.rXU(Z.aKT),Z.rXU(Z.SKi))}),(0,c.A)(te,"\u0275dir",Z.FsC({type:te,selectors:[["ion-popover"]],contentQueries:function(M,x,ne){if(1&M&&Z.wni(ne,Z.C4Q,5),2&M){let Te;Z.mGM(Te=Z.lsd())&&(x.template=Te.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"}})),te);return ee=(0,dt.Cg)([Ir({inputs:Nr,methods:Qn})],ee),ee})();const Jn=["animated","keepContentsMounted","backdropBreakpoint","backdropDismiss","breakpoints","canDismiss","cssClass","enterAnimation","event","handle","handleBehavior","initialBreakpoint","isOpen","keyboardClose","leaveAnimation","mode","presentingElement","showBackdrop","translucent","trigger"],Jr=["present","dismiss","onDidDismiss","onWillDismiss","setCurrentBreakpoint","getCurrentBreakpoint"];let mr=(()=>{var te;let ee=((0,c.A)(te=class{constructor(M,x,ne){(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=ne,this.el=x.nativeElement,this.el.addEventListener("ionMount",()=>{this.isCmpOpen=!0,M.detectChanges()}),this.el.addEventListener("didDismiss",()=>{this.isCmpOpen=!1,M.detectChanges()}),Er(this,this.el,["ionModalDidPresent","ionModalWillPresent","ionModalWillDismiss","ionModalDidDismiss","ionBreakpointDidChange","didPresent","willPresent","willDismiss","didDismiss"])}},"\u0275fac",function(M){return new(M||te)(Z.rXU(Z.gRc),Z.rXU(Z.aKT),Z.rXU(Z.SKi))}),(0,c.A)(te,"\u0275dir",Z.FsC({type:te,selectors:[["ion-modal"]],contentQueries:function(M,x,ne){if(1&M&&Z.wni(ne,Z.C4Q,5),2&M){let Te;Z.mGM(Te=Z.lsd())&&(x.template=Te.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"}})),te);return ee=(0,dt.Cg)([Ir({inputs:Jn,methods:Jr})],ee),ee})();const Pr=(te,ee)=>((te=te.filter(ze=>ze.stackId!==ee.stackId)).push(ee),te),ii=(te,ee)=>{const ze=te.createUrlTree(["."],{relativeTo:ee});return te.serializeUrl(ze)},Ai=(te,ee)=>!ee||te.stackId!==ee.stackId,Qr=(te,ee)=>{if(!te)return;const ze=pe(ee);for(let M=0;M=te.length)return ze[M];if(ze[M]!==te[M])return}},pe=te=>te.split("/").map(ee=>ee.trim()).filter(ee=>""!==ee),rt=te=>{te&&(te.ref.destroy(),te.unlistenEvents())};class Mt{constructor(ee,ze,M,x,ne,Te){(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=ze,this.router=M,this.navCtrl=x,this.zone=ne,this.location=Te,this.tabsPrefix=void 0!==ee?pe(ee):void 0}createView(ee,ze){var M;const x=ii(this.router,ze),ne=null==ee||null===(M=ee.location)||void 0===M?void 0:M.nativeElement,Te=gn(this.zone,ee.instance,ne);return{id:this.nextId++,stackId:Qr(this.tabsPrefix,x),unlistenEvents:Te,element:ne,ref:ee,url:x}}getExistingView(ee){const ze=ii(this.router,ee),M=this.views.find(x=>x.url===ze);return M&&M.ref.changeDetectorRef.reattach(),M}setActive(ee){var ze,M;const x=this.navCtrl.consumeTransition();let{direction:ne,animation:Te,animationBuilder:Ge}=x;const At=this.activeView,Jt=Ai(ee,At);Jt&&(ne="back",Te=void 0);const ln=this.views.slice();let or;const Un=this.router;Un.getCurrentNavigation?or=Un.getCurrentNavigation():null!==(ze=Un.navigations)&&void 0!==ze&&ze.value&&(or=Un.navigations.value),null!==(M=or)&&void 0!==M&&null!==(M=M.extras)&&void 0!==M&&M.replaceUrl&&this.views.length>0&&this.views.splice(-1,1);const xr=this.views.includes(ee),On=this.insertView(ee,ne);xr||ee.ref.changeDetectorRef.detectChanges();const Fr=ee.animationBuilder;return void 0===Ge&&"back"===ne&&!Jt&&void 0!==Fr&&(Ge=Fr),At&&(At.animationBuilder=Ge),this.zone.runOutsideAngular(()=>this.wait(()=>(At&&At.ref.changeDetectorRef.detach(),ee.ref.changeDetectorRef.reattach(),this.transition(ee,At,Te,this.canGoBack(1),!1,Ge).then(()=>ut(ee,On,ln,this.location,this.zone)).then(()=>({enteringView:ee,direction:ne,animation:Te,tabSwitch:Jt})))))}canGoBack(ee,ze=this.getActiveStackId()){return this.getStack(ze).length>ee}pop(ee,ze=this.getActiveStackId()){return this.zone.run(()=>{const M=this.getStack(ze);if(M.length<=ee)return Promise.resolve(!1);const x=M[M.length-ee-1];let ne=x.url;const Te=x.savedData;if(Te){var Ge;const Jt=Te.get("primary");null!=Jt&&null!==(Ge=Jt.route)&&void 0!==Ge&&null!==(Ge=Ge._routerState)&&void 0!==Ge&&Ge.snapshot.url&&(ne=Jt.route._routerState.snapshot.url)}const{animationBuilder:At}=this.navCtrl.consumeTransition();return this.navCtrl.navigateBack(ne,{...x.savedExtras,animation:At}).then(()=>!0)})}startBackTransition(){const ee=this.activeView;if(ee){const ze=this.getStack(ee.stackId),M=ze[ze.length-2],x=M.animationBuilder;return this.wait(()=>this.transition(M,ee,"back",this.canGoBack(2),!0,x))}return Promise.resolve()}endBackTransition(ee){ee?(this.skipTransition=!0,this.pop(1)):this.activeView&&ce(this.activeView,this.views,this.views,this.location,this.zone)}getLastUrl(ee){const ze=this.getStack(ee);return ze.length>0?ze[ze.length-1]:void 0}getRootUrl(ee){const ze=this.getStack(ee);return ze.length>0?ze[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(rt),this.activeView=void 0,this.views=[]}getStack(ee){return this.views.filter(ze=>ze.stackId===ee)}insertView(ee,ze){return this.activeView=ee,this.views=((te,ee,ze)=>"root"===ze?Pr(te,ee):"forward"===ze?((te,ee)=>(te.indexOf(ee)>=0?te=te.filter(M=>M.stackId!==ee.stackId||M.id<=ee.id):te.push(ee),te))(te,ee):((te,ee)=>te.indexOf(ee)>=0?te.filter(M=>M.stackId!==ee.stackId||M.id<=ee.id):Pr(te,ee))(te,ee))(this.views,ee,ze),this.views.slice()}transition(ee,ze,M,x,ne,Te){if(this.skipTransition)return this.skipTransition=!1,Promise.resolve(!1);if(ze===ee)return Promise.resolve(!1);const Ge=ee?ee.element:void 0,At=ze?ze.element:void 0,Jt=this.containerEl;return Ge&&Ge!==At&&(Ge.classList.add("ion-page"),Ge.classList.add("ion-page-invisible"),Jt.commit)?Jt.commit(Ge,At,{duration:void 0===M?0:void 0,direction:M,showGoBack:x,progressAnimation:ne,animationBuilder:Te}):Promise.resolve(!1)}wait(ee){var ze=this;return(0,h.A)(function*(){void 0!==ze.runningTask&&(yield ze.runningTask,ze.runningTask=void 0);const M=ze.runningTask=ee();return M.finally(()=>ze.runningTask=void 0),M})()}}const ut=(te,ee,ze,M,x)=>"function"==typeof requestAnimationFrame?new Promise(ne=>{requestAnimationFrame(()=>{ce(te,ee,ze,M,x),ne()})}):Promise.resolve(),ce=(te,ee,ze,M,x)=>{x.run(()=>ze.filter(ne=>!ee.includes(ne)).forEach(rt)),ee.forEach(ne=>{const Ge=M.path().split("?")[0].split("#")[0];if(ne!==te&&ne.url!==Ge){const At=ne.element;At.setAttribute("aria-hidden","true"),At.classList.add("ion-page-hidden"),ne.ref.changeDetectorRef.detach()}})};let ye=(()=>{var te;class ee{get activatedComponentRef(){return this.activated}set animation(M){this.nativeEl.animation=M}set animated(M){this.nativeEl.animated=M}set swipeGesture(M){this._swipeGesture=M,this.nativeEl.swipeHandler=M?{canStart:()=>this.stackCtrl.canGoBack(1)&&!this.stackCtrl.hasRunningTask(),onStart:()=>this.stackCtrl.startBackTransition(),onEnd:x=>this.stackCtrl.endBackTransition(x)}:void 0}constructor(M,x,ne,Te,Ge,At,Jt,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 Nt.t(null)),(0,c.A)(this,"activated",null),(0,c.A)(this,"_activatedRoute",null),(0,c.A)(this,"name",Oe.Xk),(0,c.A)(this,"stackWillChange",new Z.bkB),(0,c.A)(this,"stackDidChange",new Z.bkB),(0,c.A)(this,"activateEvents",new Z.bkB),(0,c.A)(this,"deactivateEvents",new Z.bkB),(0,c.A)(this,"parentContexts",(0,Z.WQX)(Oe.Zp)),(0,c.A)(this,"location",(0,Z.WQX)(Z.c1b)),(0,c.A)(this,"environmentInjector",(0,Z.WQX)(Z.uvJ)),(0,c.A)(this,"inputBinder",(0,Z.WQX)(Lt,{optional:!0})),(0,c.A)(this,"supportsBindingToComponentInputs",!0),(0,c.A)(this,"config",(0,Z.WQX)(er)),(0,c.A)(this,"navCtrl",(0,Z.WQX)(rn)),this.parentOutlet=ln,this.nativeEl=Te.nativeElement,this.name=M||Oe.Xk,this.tabsPrefix="true"===x?ii(Ge,Jt):void 0,this.stackCtrl=new Mt(this.tabsPrefix,this.nativeEl,Ge,this.navCtrl,At,ne),this.parentContexts.onChildOutletCreated(this.name,this)}ngOnDestroy(){var M;this.stackCtrl.destroy(),null===(M=this.inputBinder)||void 0===M||M.unsubscribeFromRouteData(this)}getContext(){return this.parentContexts.getContext(this.name)}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(!this.activated){const M=this.getContext();null!=M&&M.route&&this.activateWith(M.route,M.injector)}new Promise(M=>((te,ee)=>{te.componentOnReady?te.componentOnReady().then(ze=>ee(ze)):(te=>{"function"==typeof __zone_symbol__requestAnimationFrame?__zone_symbol__requestAnimationFrame(te):"function"==typeof requestAnimationFrame?requestAnimationFrame(te):setTimeout(te)})(()=>ee(te))})(this.nativeEl,M)).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(M,x){throw new Error("incompatible reuse strategy")}deactivate(){if(this.activated){if(this.activatedView){const x=this.getContext();this.activatedView.savedData=new Map(x.children.contexts);const ne=this.activatedView.savedData.get("primary");if(ne&&x.route&&(ne.route={...x.route}),this.activatedView.savedExtras={},x.route){const Te=x.route.snapshot;this.activatedView.savedExtras.queryParams=Te.queryParams,this.activatedView.savedExtras.fragment=Te.fragment}}const M=this.component;this.activatedView=null,this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(M)}}activateWith(M,x){var ne;if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=M;let Te,Ge=this.stackCtrl.getExistingView(M);if(Ge){Te=this.activated=Ge.ref;const ln=Ge.savedData;ln&&(this.getContext().children.contexts=ln),this.updateActivatedRouteProxy(Te.instance,M)}else{var At;const ln=M._futureSnapshot,or=this.parentContexts.getOrCreateContext(this.name).children,Un=new Nt.t(null),xr=this.createActivatedRouteProxy(Un,M),On=new He(xr,or,this.location.injector),Fr=null!==(At=ln.routeConfig.component)&&void 0!==At?At:ln.component;Te=this.activated=this.outletContent.createComponent(Fr,{index:this.outletContent.length,injector:On,environmentInjector:null!=x?x:this.environmentInjector}),Un.next(Te.instance),Ge=this.stackCtrl.createView(this.activated,M),this.proxyMap.set(Te.instance,xr),this.currentActivatedRoute$.next({component:Te.instance,activatedRoute:M})}null===(ne=this.inputBinder)||void 0===ne||ne.bindActivatedRouteToOutletComponent(this),this.activatedView=Ge,this.navCtrl.setTopOutlet(this);const Jt=this.stackCtrl.getActiveView();this.stackWillChange.emit({enteringView:Ge,tabSwitch:Ai(Ge,Jt)}),this.stackCtrl.setActive(Ge).then(ln=>{this.activateEvents.emit(Te.instance),this.stackDidChange.emit(ln)})}canGoBack(M=1,x){return this.stackCtrl.canGoBack(M,x)}pop(M=1,x){return this.stackCtrl.pop(M,x)}getLastUrl(M){const x=this.stackCtrl.getLastUrl(M);return x?x.url:void 0}getLastRouteView(M){return this.stackCtrl.getLastUrl(M)}getRootView(M){return this.stackCtrl.getRootUrl(M)}getActiveStackId(){return this.stackCtrl.getActiveStackId()}createActivatedRouteProxy(M,x){const ne=new Oe.nX;return ne._futureSnapshot=x._futureSnapshot,ne._routerState=x._routerState,ne.snapshot=x.snapshot,ne.outlet=x.outlet,ne.component=x.component,ne._paramMap=this.proxyObservable(M,"paramMap"),ne._queryParamMap=this.proxyObservable(M,"queryParamMap"),ne.url=this.proxyObservable(M,"url"),ne.params=this.proxyObservable(M,"params"),ne.queryParams=this.proxyObservable(M,"queryParams"),ne.fragment=this.proxyObservable(M,"fragment"),ne.data=this.proxyObservable(M,"data"),ne}proxyObservable(M,x){return M.pipe((0,we.p)(ne=>!!ne),(0,H.n)(ne=>this.currentActivatedRoute$.pipe((0,we.p)(Te=>null!==Te&&Te.component===ne),(0,H.n)(Te=>Te&&Te.activatedRoute[x]),(0,X.F)())))}updateActivatedRouteProxy(M,x){const ne=this.proxyMap.get(M);if(!ne)throw new Error("Could not find activated route proxy for view");ne._futureSnapshot=x._futureSnapshot,ne._routerState=x._routerState,ne.snapshot=x.snapshot,ne.outlet=x.outlet,ne.component=x.component,this.currentActivatedRoute$.next({component:M,activatedRoute:x})}}return te=ee,(0,c.A)(ee,"\u0275fac",function(M){return new(M||te)(Z.kS0("name"),Z.kS0("tabs"),Z.rXU(U.aZ),Z.rXU(Z.aKT),Z.rXU(Oe.Ix),Z.rXU(Z.SKi),Z.rXU(Oe.nX),Z.rXU(te,12))}),(0,c.A)(ee,"\u0275dir",Z.FsC({type:te,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"]})),ee})();class He{constructor(ee,ze,M){(0,c.A)(this,"route",void 0),(0,c.A)(this,"childContexts",void 0),(0,c.A)(this,"parent",void 0),this.route=ee,this.childContexts=ze,this.parent=M}get(ee,ze){return ee===Oe.nX?this.route:ee===Oe.Zp?this.childContexts:this.parent.get(ee,ze)}}const Lt=new Z.nKC("");let ie=(()=>{var te;class ee{constructor(){(0,c.A)(this,"outletDataSubscriptions",new Map)}bindActivatedRouteToOutletComponent(M){this.unsubscribeFromRouteData(M),this.subscribeToRouteData(M)}unsubscribeFromRouteData(M){var x;null===(x=this.outletDataSubscriptions.get(M))||void 0===x||x.unsubscribe(),this.outletDataSubscriptions.delete(M)}subscribeToRouteData(M){const{activatedRoute:x}=M,ne=(0,tt.z)([x.queryParams,x.params,x.data]).pipe((0,H.n)(([Te,Ge,At],Jt)=>(At={...Te,...Ge,...At},0===Jt?(0,on.of)(At):Promise.resolve(At)))).subscribe(Te=>{if(!M.isActivated||!M.activatedComponentRef||M.activatedRoute!==x||null===x.component)return void this.unsubscribeFromRouteData(M);const Ge=(0,Z.HJs)(x.component);if(Ge)for(const{templateName:At}of Ge.inputs)M.activatedComponentRef.setInput(At,Te[At]);else this.unsubscribeFromRouteData(M)});this.outletDataSubscriptions.set(M,ne)}}return te=ee,(0,c.A)(ee,"\u0275fac",function(M){return new(M||te)}),(0,c.A)(ee,"\u0275prov",Z.jDH({token:te,factory:te.\u0275fac})),ee})();const ct=()=>({provide:Lt,useFactory:lt,deps:[Oe.Ix]});function lt(te){return null!=te&&te.componentInputBindingEnabled?new ie:null}const Gt=["color","defaultHref","disabled","icon","mode","routerAnimation","text","type"];let tn=(()=>{var te;let ee=((0,c.A)(te=class{constructor(M,x,ne,Te,Ge,At){(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=M,this.navCtrl=x,this.config=ne,this.r=Te,this.z=Ge,At.detach(),this.el=this.r.nativeElement}onClick(M){var x;const ne=this.defaultHref||this.config.get("backButtonDefaultHref");null!==(x=this.routerOutlet)&&void 0!==x&&x.canGoBack()?(this.navCtrl.setDirection("back",void 0,void 0,this.routerAnimation),this.routerOutlet.pop(),M.preventDefault()):null!=ne&&(this.navCtrl.navigateBack(ne,{animation:this.routerAnimation}),M.preventDefault())}},"\u0275fac",function(M){return new(M||te)(Z.rXU(ye,8),Z.rXU(rn),Z.rXU(er),Z.rXU(Z.aKT),Z.rXU(Z.SKi),Z.rXU(Z.gRc))}),(0,c.A)(te,"\u0275dir",Z.FsC({type:te,hostBindings:function(M,x){1&M&&Z.bIt("click",function(Te){return x.onClick(Te)})},inputs:{color:"color",defaultHref:"defaultHref",disabled:"disabled",icon:"icon",mode:"mode",routerAnimation:"routerAnimation",text:"text",type:"type"}})),te);return ee=(0,dt.Cg)([Ir({inputs:Gt})],ee),ee})(),_n=(()=>{var te;class ee{constructor(M,x,ne,Te,Ge){(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=M,this.navCtrl=x,this.elementRef=ne,this.router=Te,this.routerLink=Ge}ngOnInit(){this.updateTargetUrlAndHref()}ngOnChanges(){this.updateTargetUrlAndHref()}updateTargetUrlAndHref(){var M;if(null!==(M=this.routerLink)&&void 0!==M&&M.urlTree){const x=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.routerLink.urlTree));this.elementRef.nativeElement.href=x}}onClick(M){this.navCtrl.setDirection(this.routerDirection,void 0,void 0,this.routerAnimation),M.preventDefault()}}return te=ee,(0,c.A)(ee,"\u0275fac",function(M){return new(M||te)(Z.rXU(U.hb),Z.rXU(rn),Z.rXU(Z.aKT),Z.rXU(Oe.Ix),Z.rXU(Oe.Wk,8))}),(0,c.A)(ee,"\u0275dir",Z.FsC({type:te,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(M,x){1&M&&Z.bIt("click",function(Te){return x.onClick(Te)})},inputs:{routerDirection:"routerDirection",routerAnimation:"routerAnimation"},features:[Z.OA$]})),ee})(),qn=(()=>{var te;class ee{constructor(M,x,ne,Te,Ge){(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=M,this.navCtrl=x,this.elementRef=ne,this.router=Te,this.routerLink=Ge}ngOnInit(){this.updateTargetUrlAndHref()}ngOnChanges(){this.updateTargetUrlAndHref()}updateTargetUrlAndHref(){var M;if(null!==(M=this.routerLink)&&void 0!==M&&M.urlTree){const x=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.routerLink.urlTree));this.elementRef.nativeElement.href=x}}onClick(){this.navCtrl.setDirection(this.routerDirection,void 0,void 0,this.routerAnimation)}}return te=ee,(0,c.A)(ee,"\u0275fac",function(M){return new(M||te)(Z.rXU(U.hb),Z.rXU(rn),Z.rXU(Z.aKT),Z.rXU(Oe.Ix),Z.rXU(Oe.Wk,8))}),(0,c.A)(ee,"\u0275dir",Z.FsC({type:te,selectors:[["a","routerLink",""],["area","routerLink",""]],hostBindings:function(M,x){1&M&&Z.bIt("click",function(){return x.onClick()})},inputs:{routerDirection:"routerDirection",routerAnimation:"routerAnimation"},features:[Z.OA$]})),ee})();const hn=["animated","animation","root","rootParams","swipeGesture"],Cn=["push","insert","insertPages","pop","popTo","popToRoot","removeIndex","setRoot","setPages","getActive","getByIndex","canGoBack","getPrevious"];let tr=(()=>{var te;let ee=((0,c.A)(te=class{constructor(M,x,ne,Te,Ge,At){(0,c.A)(this,"z",void 0),(0,c.A)(this,"el",void 0),this.z=Ge,At.detach(),this.el=M.nativeElement,M.nativeElement.delegate=Te.create(x,ne),Er(this,this.el,["ionNavDidChange","ionNavWillChange"])}},"\u0275fac",function(M){return new(M||te)(Z.rXU(Z.aKT),Z.rXU(Z.uvJ),Z.rXU(Z.zZn),Z.rXU(nt),Z.rXU(Z.SKi),Z.rXU(Z.gRc))}),(0,c.A)(te,"\u0275dir",Z.FsC({type:te,inputs:{animated:"animated",animation:"animation",root:"root",rootParams:"rootParams",swipeGesture:"swipeGesture"}})),te);return ee=(0,dt.Cg)([Ir({inputs:hn,methods:Cn})],ee),ee})(),Ar=(()=>{var te;class ee{constructor(M){(0,c.A)(this,"navCtrl",void 0),(0,c.A)(this,"tabsInner",void 0),(0,c.A)(this,"ionTabsWillChange",new Z.bkB),(0,c.A)(this,"ionTabsDidChange",new Z.bkB),(0,c.A)(this,"tabBarSlot","bottom"),this.navCtrl=M}ngAfterContentInit(){this.detectSlotChanges()}ngAfterContentChecked(){this.detectSlotChanges()}onStackWillChange({enteringView:M,tabSwitch:x}){const ne=M.stackId;x&&void 0!==ne&&this.ionTabsWillChange.emit({tab:ne})}onStackDidChange({enteringView:M,tabSwitch:x}){const ne=M.stackId;x&&void 0!==ne&&(this.tabBar&&(this.tabBar.selectedTab=ne),this.ionTabsDidChange.emit({tab:ne}))}select(M){const x="string"==typeof M,ne=x?M:M.detail.tab,Te=this.outlet.getActiveStackId()===ne,Ge=`${this.outlet.tabsPrefix}/${ne}`;if(x||M.stopPropagation(),Te){const At=this.outlet.getActiveStackId(),Jt=this.outlet.getLastRouteView(At);if((null==Jt?void 0:Jt.url)===Ge)return;const ln=this.outlet.getRootView(ne);return this.navCtrl.navigateRoot(Ge,{...ln&&Ge===ln.url&&ln.savedExtras,animated:!0,animationDirection:"back"})}{const At=this.outlet.getLastRouteView(ne);return this.navCtrl.navigateRoot((null==At?void 0:At.url)||Ge,{...null==At?void 0:At.savedExtras,animated:!0,animationDirection:"back"})}}getSelected(){return this.outlet.getActiveStackId()}detectSlotChanges(){this.tabBars.forEach(M=>{const x=M.el.getAttribute("slot");x!==this.tabBarSlot&&(this.tabBarSlot=x,this.relocateTabBar())})}relocateTabBar(){const M=this.tabBar.el;"top"===this.tabBarSlot?this.tabsInner.nativeElement.before(M):this.tabsInner.nativeElement.after(M)}}return te=ee,(0,c.A)(ee,"\u0275fac",function(M){return new(M||te)(Z.rXU(rn))}),(0,c.A)(ee,"\u0275dir",Z.FsC({type:te,selectors:[["ion-tabs"]],viewQuery:function(M,x){if(1&M&&Z.GBs(se,7,Z.aKT),2&M){let ne;Z.mGM(ne=Z.lsd())&&(x.tabsInner=ne.first)}},hostBindings:function(M,x){1&M&&Z.bIt("ionTabButtonClick",function(Te){return x.select(Te)})},outputs:{ionTabsWillChange:"ionTabsWillChange",ionTabsDidChange:"ionTabsDidChange"}})),ee})();const dr=te=>"function"==typeof __zone_symbol__requestAnimationFrame?__zone_symbol__requestAnimationFrame(te):"function"==typeof requestAnimationFrame?requestAnimationFrame(te):setTimeout(te);let $r=(()=>{var te;class ee{constructor(M,x){(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=M,this.elementRef=x}writeValue(M){this.elementRef.nativeElement.value=this.lastValue=M,Zr(this.elementRef)}handleValueChange(M,x){M===this.elementRef.nativeElement&&(x!==this.lastValue&&(this.lastValue=x,this.onChange(x)),Zr(this.elementRef))}_handleBlurEvent(M){M===this.elementRef.nativeElement&&(this.onTouched(),Zr(this.elementRef))}registerOnChange(M){this.onChange=M}registerOnTouched(M){this.onTouched=M}setDisabledState(M){this.elementRef.nativeElement.disabled=M}ngOnDestroy(){this.statusChanges&&this.statusChanges.unsubscribe()}ngAfterViewInit(){let M;try{M=this.injector.get(fe.vO)}catch{}if(!M)return;M.statusChanges&&(this.statusChanges=M.statusChanges.subscribe(()=>Zr(this.elementRef)));const x=M.control;x&&["markAsTouched","markAllAsTouched","markAsUntouched","markAsDirty","markAsPristine"].forEach(Te=>{if(typeof x[Te]<"u"){const Ge=x[Te].bind(x);x[Te]=(...At)=>{Ge(...At),Zr(this.elementRef)}}})}}return te=ee,(0,c.A)(ee,"\u0275fac",function(M){return new(M||te)(Z.rXU(Z.zZn),Z.rXU(Z.aKT))}),(0,c.A)(ee,"\u0275dir",Z.FsC({type:te,hostBindings:function(M,x){1&M&&Z.bIt("ionBlur",function(Te){return x._handleBlurEvent(Te.target)})}})),ee})();const Zr=te=>{dr(()=>{const ee=te.nativeElement,ze=null!=ee.value&&ee.value.toString().length>0,M=fr(ee);Ri(ee,M);const x=ee.closest("ion-item");x&&Ri(x,ze?[...M,"item-has-value"]:M)})},fr=te=>{const ee=te.classList,ze=[];for(let M=0;M{const ze=te.classList;ze.remove("ion-valid","ion-invalid","ion-touched","ion-untouched","ion-dirty","ion-pristine"),ze.add(...ee)},gi=(te,ee)=>te.substring(0,ee.length)===ee;class pr{shouldDetach(ee){return!1}shouldAttach(ee){return!1}store(ee,ze){}retrieve(ee){return null}shouldReuseRoute(ee,ze){if(ee.routeConfig!==ze.routeConfig)return!1;const M=ee.params,x=ze.params,ne=Object.keys(M),Te=Object.keys(x);if(ne.length!==Te.length)return!1;for(const Ge of ne)if(x[Ge]!==M[Ge])return!1;return!0}}class Ut{constructor(ee){(0,c.A)(this,"ctrl",void 0),this.ctrl=ee}create(ee){return this.ctrl.create(ee||{})}dismiss(ee,ze,M){return this.ctrl.dismiss(ee,ze,M)}getTop(){return this.ctrl.getTop()}}},7863:(Tn,gt,S)=>{"use strict";S.d(gt,{hG:()=>Ci,hB:()=>dt,U1:()=>Ln,mC:()=>Zn,Jm:()=>ir,QW:()=>nt,b_:()=>Ot,I9:()=>zt,ME:()=>pn,HW:()=>gn,tN:()=>Sr,eY:()=>Mn,ZB:()=>xn,hU:()=>mn,W9:()=>en,Q8:()=>Nr,M0:()=>Jn,lO:()=>Jr,eU:()=>mr,iq:()=>ur,$w:()=>ii,uz:()=>Qr,Dg:()=>pe,he:()=>ye,nf:()=>He,oS:()=>ct,MC:()=>lt,cA:()=>Gt,Sb:()=>Lr,To:()=>fr,Ki:()=>Ri,Rg:()=>Tr,ln:()=>te,HP:()=>At,nc:()=>Un,BC:()=>On,ai:()=>zr,bv:()=>Fn,Xi:()=>bt,_t:()=>he,N7:()=>li,oY:()=>ei,Gw:()=>X});var h=S(9842),c=S(4438),Z=S(4341),Oe=S(2872),U=S(1635),ue=S(3726),oe=S(177),Xe=S(7650),qe=(S(9986),S(2725),S(8454),S(3314),S(8607),S(3664)),ht=S(464),Dt=S(5465),St=S(6002),Tt=(S(8476),S(9672));S(1970),S(6411);var ge=S(467);const Ue=qe.i,Fe=function(){var b=(0,ge.A)(function*(j,re){if(!(typeof window>"u"))return yield Ue(),(0,Tt.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]}]]]]'),re)});return function(re,P){return b.apply(this,arguments)}}(),xe=["*"],at=["outletContent"];function tt(b,j){if(1&b&&(c.j41(0,"div",1),c.eu8(1,2),c.k0s()),2&b){const re=c.XpG();c.R7$(),c.Y8G("ngTemplateOutlet",re.template)}}let dt=(()=>{var b;class j extends Oe.fL{constructor(P,Ee){super(P,Ee)}writeValue(P){this.elementRef.nativeElement.checked=this.lastValue=P,(0,Oe.z3)(this.elementRef)}_handleIonChange(P){this.handleValueChange(P,P.checked)}}return b=j,(0,h.A)(j,"\u0275fac",function(P){return new(P||b)(c.rXU(c.zZn),c.rXU(c.aKT))}),(0,h.A)(j,"\u0275dir",c.FsC({type:b,selectors:[["ion-checkbox"],["ion-toggle"]],hostBindings:function(P,Ee){1&P&&c.bIt("ionChange",function(sr){return Ee._handleIonChange(sr.target)})},features:[c.Jv_([{provide:Z.kq,useExisting:b,multi:!0}]),c.Vt3]})),j})(),X=(()=>{var b;class j extends Oe.fL{constructor(P,Ee){super(P,Ee)}_handleInputEvent(P){this.handleValueChange(P,P.value)}}return b=j,(0,h.A)(j,"\u0275fac",function(P){return new(P||b)(c.rXU(c.zZn),c.rXU(c.aKT))}),(0,h.A)(j,"\u0275dir",c.FsC({type:b,selectors:[["ion-input",3,"type","number"],["ion-textarea"],["ion-searchbar"]],hostBindings:function(P,Ee){1&P&&c.bIt("ionInput",function(sr){return Ee._handleInputEvent(sr.target)})},features:[c.Jv_([{provide:Z.kq,useExisting:b,multi:!0}]),c.Vt3]})),j})();const fe=(b,j)=>{const re=b.prototype;j.forEach(P=>{Object.defineProperty(re,P,{get(){return this.el[P]},set(Ee){this.z.runOutsideAngular(()=>this.el[P]=Ee)},configurable:!0})})},se=(b,j)=>{const re=b.prototype;j.forEach(P=>{re[P]=function(){const Ee=arguments;return this.z.runOutsideAngular(()=>this.el[P].apply(this.el,Ee))}})},ve=(b,j,re)=>{re.forEach(P=>b[P]=(0,ue.R)(j,P))};function De(b){return function(re){const{defineCustomElementFn:P,inputs:Ee,methods:it}=b;return void 0!==P&&P(),Ee&&fe(re,Ee),it&&se(re,it),re}}let Ln=(()=>{var b;let j=((0,h.A)(b=class{constructor(P,Ee,it){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=it,P.detach(),this.el=Ee.nativeElement}},"\u0275fac",function(P){return new(P||b)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(b,"\u0275cmp",c.VBU({type:b,selectors:[["ion-app"]],ngContentSelectors:xe,decls:1,vars:0,template:function(P,Ee){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),b);return j=(0,U.Cg)([De({})],j),j})(),Zn=(()=>{var b;let j=((0,h.A)(b=class{constructor(P,Ee,it){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=it,P.detach(),this.el=Ee.nativeElement}},"\u0275fac",function(P){return new(P||b)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(b,"\u0275cmp",c.VBU({type:b,selectors:[["ion-avatar"]],ngContentSelectors:xe,decls:1,vars:0,template:function(P,Ee){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),b);return j=(0,U.Cg)([De({})],j),j})(),ir=(()=>{var b;let j=((0,h.A)(b=class{constructor(P,Ee,it){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=it,P.detach(),this.el=Ee.nativeElement,ve(this,this.el,["ionFocus","ionBlur"])}},"\u0275fac",function(P){return new(P||b)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(b,"\u0275cmp",c.VBU({type:b,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:xe,decls:1,vars:0,template:function(P,Ee){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),b);return j=(0,U.Cg)([De({inputs:["buttonType","color","disabled","download","expand","fill","form","href","mode","rel","routerAnimation","routerDirection","shape","size","strong","target","type"]})],j),j})(),nt=(()=>{var b;let j=((0,h.A)(b=class{constructor(P,Ee,it){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=it,P.detach(),this.el=Ee.nativeElement}},"\u0275fac",function(P){return new(P||b)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(b,"\u0275cmp",c.VBU({type:b,selectors:[["ion-buttons"]],inputs:{collapse:"collapse"},ngContentSelectors:xe,decls:1,vars:0,template:function(P,Ee){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),b);return j=(0,U.Cg)([De({inputs:["collapse"]})],j),j})(),Ot=(()=>{var b;let j=((0,h.A)(b=class{constructor(P,Ee,it){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=it,P.detach(),this.el=Ee.nativeElement}},"\u0275fac",function(P){return new(P||b)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(b,"\u0275cmp",c.VBU({type:b,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:xe,decls:1,vars:0,template:function(P,Ee){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),b);return j=(0,U.Cg)([De({inputs:["button","color","disabled","download","href","mode","rel","routerAnimation","routerDirection","target","type"]})],j),j})(),zt=(()=>{var b;let j=((0,h.A)(b=class{constructor(P,Ee,it){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=it,P.detach(),this.el=Ee.nativeElement}},"\u0275fac",function(P){return new(P||b)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(b,"\u0275cmp",c.VBU({type:b,selectors:[["ion-card-content"]],inputs:{mode:"mode"},ngContentSelectors:xe,decls:1,vars:0,template:function(P,Ee){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),b);return j=(0,U.Cg)([De({inputs:["mode"]})],j),j})(),pn=(()=>{var b;let j=((0,h.A)(b=class{constructor(P,Ee,it){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=it,P.detach(),this.el=Ee.nativeElement}},"\u0275fac",function(P){return new(P||b)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(b,"\u0275cmp",c.VBU({type:b,selectors:[["ion-card-header"]],inputs:{color:"color",mode:"mode",translucent:"translucent"},ngContentSelectors:xe,decls:1,vars:0,template:function(P,Ee){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),b);return j=(0,U.Cg)([De({inputs:["color","mode","translucent"]})],j),j})(),gn=(()=>{var b;let j=((0,h.A)(b=class{constructor(P,Ee,it){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=it,P.detach(),this.el=Ee.nativeElement}},"\u0275fac",function(P){return new(P||b)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(b,"\u0275cmp",c.VBU({type:b,selectors:[["ion-card-subtitle"]],inputs:{color:"color",mode:"mode"},ngContentSelectors:xe,decls:1,vars:0,template:function(P,Ee){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),b);return j=(0,U.Cg)([De({inputs:["color","mode"]})],j),j})(),Sr=(()=>{var b;let j=((0,h.A)(b=class{constructor(P,Ee,it){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=it,P.detach(),this.el=Ee.nativeElement}},"\u0275fac",function(P){return new(P||b)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(b,"\u0275cmp",c.VBU({type:b,selectors:[["ion-card-title"]],inputs:{color:"color",mode:"mode"},ngContentSelectors:xe,decls:1,vars:0,template:function(P,Ee){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),b);return j=(0,U.Cg)([De({inputs:["color","mode"]})],j),j})(),Mn=(()=>{var b;let j=((0,h.A)(b=class{constructor(P,Ee,it){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=it,P.detach(),this.el=Ee.nativeElement,ve(this,this.el,["ionChange","ionFocus","ionBlur"])}},"\u0275fac",function(P){return new(P||b)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(b,"\u0275cmp",c.VBU({type:b,selectors:[["ion-checkbox"]],inputs:{alignment:"alignment",checked:"checked",color:"color",disabled:"disabled",indeterminate:"indeterminate",justify:"justify",labelPlacement:"labelPlacement",mode:"mode",name:"name",value:"value"},ngContentSelectors:xe,decls:1,vars:0,template:function(P,Ee){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),b);return j=(0,U.Cg)([De({inputs:["alignment","checked","color","disabled","indeterminate","justify","labelPlacement","mode","name","value"]})],j),j})(),xn=(()=>{var b;let j=((0,h.A)(b=class{constructor(P,Ee,it){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=it,P.detach(),this.el=Ee.nativeElement}},"\u0275fac",function(P){return new(P||b)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(b,"\u0275cmp",c.VBU({type:b,selectors:[["ion-chip"]],inputs:{color:"color",disabled:"disabled",mode:"mode",outline:"outline"},ngContentSelectors:xe,decls:1,vars:0,template:function(P,Ee){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),b);return j=(0,U.Cg)([De({inputs:["color","disabled","mode","outline"]})],j),j})(),mn=(()=>{var b;let j=((0,h.A)(b=class{constructor(P,Ee,it){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=it,P.detach(),this.el=Ee.nativeElement}},"\u0275fac",function(P){return new(P||b)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(b,"\u0275cmp",c.VBU({type:b,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:xe,decls:1,vars:0,template:function(P,Ee){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),b);return j=(0,U.Cg)([De({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"]})],j),j})(),en=(()=>{var b;let j=((0,h.A)(b=class{constructor(P,Ee,it){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=it,P.detach(),this.el=Ee.nativeElement,ve(this,this.el,["ionScrollStart","ionScroll","ionScrollEnd"])}},"\u0275fac",function(P){return new(P||b)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(b,"\u0275cmp",c.VBU({type:b,selectors:[["ion-content"]],inputs:{color:"color",fixedSlotPlacement:"fixedSlotPlacement",forceOverscroll:"forceOverscroll",fullscreen:"fullscreen",scrollEvents:"scrollEvents",scrollX:"scrollX",scrollY:"scrollY"},ngContentSelectors:xe,decls:1,vars:0,template:function(P,Ee){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),b);return j=(0,U.Cg)([De({inputs:["color","fixedSlotPlacement","forceOverscroll","fullscreen","scrollEvents","scrollX","scrollY"],methods:["getScrollElement","scrollToTop","scrollToBottom","scrollByPoint","scrollToPoint"]})],j),j})(),Nr=(()=>{var b;let j=((0,h.A)(b=class{constructor(P,Ee,it){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=it,P.detach(),this.el=Ee.nativeElement}},"\u0275fac",function(P){return new(P||b)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(b,"\u0275cmp",c.VBU({type:b,selectors:[["ion-fab"]],inputs:{activated:"activated",edge:"edge",horizontal:"horizontal",vertical:"vertical"},ngContentSelectors:xe,decls:1,vars:0,template:function(P,Ee){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),b);return j=(0,U.Cg)([De({inputs:["activated","edge","horizontal","vertical"],methods:["close"]})],j),j})(),Jn=(()=>{var b;let j=((0,h.A)(b=class{constructor(P,Ee,it){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=it,P.detach(),this.el=Ee.nativeElement}},"\u0275fac",function(P){return new(P||b)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(b,"\u0275cmp",c.VBU({type:b,selectors:[["ion-footer"]],inputs:{collapse:"collapse",mode:"mode",translucent:"translucent"},ngContentSelectors:xe,decls:1,vars:0,template:function(P,Ee){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),b);return j=(0,U.Cg)([De({inputs:["collapse","mode","translucent"]})],j),j})(),Jr=(()=>{var b;let j=((0,h.A)(b=class{constructor(P,Ee,it){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=it,P.detach(),this.el=Ee.nativeElement}},"\u0275fac",function(P){return new(P||b)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(b,"\u0275cmp",c.VBU({type:b,selectors:[["ion-grid"]],inputs:{fixed:"fixed"},ngContentSelectors:xe,decls:1,vars:0,template:function(P,Ee){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),b);return j=(0,U.Cg)([De({inputs:["fixed"]})],j),j})(),mr=(()=>{var b;let j=((0,h.A)(b=class{constructor(P,Ee,it){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=it,P.detach(),this.el=Ee.nativeElement}},"\u0275fac",function(P){return new(P||b)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(b,"\u0275cmp",c.VBU({type:b,selectors:[["ion-header"]],inputs:{collapse:"collapse",mode:"mode",translucent:"translucent"},ngContentSelectors:xe,decls:1,vars:0,template:function(P,Ee){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),b);return j=(0,U.Cg)([De({inputs:["collapse","mode","translucent"]})],j),j})(),ur=(()=>{var b;let j=((0,h.A)(b=class{constructor(P,Ee,it){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=it,P.detach(),this.el=Ee.nativeElement}},"\u0275fac",function(P){return new(P||b)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(b,"\u0275cmp",c.VBU({type:b,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:xe,decls:1,vars:0,template:function(P,Ee){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),b);return j=(0,U.Cg)([De({inputs:["color","flipRtl","icon","ios","lazy","md","mode","name","sanitize","size","src"]})],j),j})(),ii=(()=>{var b;let j=((0,h.A)(b=class{constructor(P,Ee,it){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=it,P.detach(),this.el=Ee.nativeElement,ve(this,this.el,["ionInput","ionChange","ionBlur","ionFocus"])}},"\u0275fac",function(P){return new(P||b)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(b,"\u0275cmp",c.VBU({type:b,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:xe,decls:1,vars:0,template:function(P,Ee){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),b);return j=(0,U.Cg)([De({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"]})],j),j})(),Qr=(()=>{var b;let j=((0,h.A)(b=class{constructor(P,Ee,it){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=it,P.detach(),this.el=Ee.nativeElement}},"\u0275fac",function(P){return new(P||b)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(b,"\u0275cmp",c.VBU({type:b,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:xe,decls:1,vars:0,template:function(P,Ee){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),b);return j=(0,U.Cg)([De({inputs:["button","color","detail","detailIcon","disabled","download","href","lines","mode","rel","routerAnimation","routerDirection","target","type"]})],j),j})(),pe=(()=>{var b;let j=((0,h.A)(b=class{constructor(P,Ee,it){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=it,P.detach(),this.el=Ee.nativeElement}},"\u0275fac",function(P){return new(P||b)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(b,"\u0275cmp",c.VBU({type:b,selectors:[["ion-item-divider"]],inputs:{color:"color",mode:"mode",sticky:"sticky"},ngContentSelectors:xe,decls:1,vars:0,template:function(P,Ee){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),b);return j=(0,U.Cg)([De({inputs:["color","mode","sticky"]})],j),j})(),ye=(()=>{var b;let j=((0,h.A)(b=class{constructor(P,Ee,it){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=it,P.detach(),this.el=Ee.nativeElement}},"\u0275fac",function(P){return new(P||b)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(b,"\u0275cmp",c.VBU({type:b,selectors:[["ion-label"]],inputs:{color:"color",mode:"mode",position:"position"},ngContentSelectors:xe,decls:1,vars:0,template:function(P,Ee){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),b);return j=(0,U.Cg)([De({inputs:["color","mode","position"]})],j),j})(),He=(()=>{var b;let j=((0,h.A)(b=class{constructor(P,Ee,it){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=it,P.detach(),this.el=Ee.nativeElement}},"\u0275fac",function(P){return new(P||b)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(b,"\u0275cmp",c.VBU({type:b,selectors:[["ion-list"]],inputs:{inset:"inset",lines:"lines",mode:"mode"},ngContentSelectors:xe,decls:1,vars:0,template:function(P,Ee){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),b);return j=(0,U.Cg)([De({inputs:["inset","lines","mode"],methods:["closeSlidingItems"]})],j),j})(),ct=(()=>{var b;let j=((0,h.A)(b=class{constructor(P,Ee,it){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=it,P.detach(),this.el=Ee.nativeElement,ve(this,this.el,["ionWillOpen","ionWillClose","ionDidOpen","ionDidClose"])}},"\u0275fac",function(P){return new(P||b)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(b,"\u0275cmp",c.VBU({type:b,selectors:[["ion-menu"]],inputs:{contentId:"contentId",disabled:"disabled",maxEdgeStart:"maxEdgeStart",menuId:"menuId",side:"side",swipeGesture:"swipeGesture",type:"type"},ngContentSelectors:xe,decls:1,vars:0,template:function(P,Ee){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),b);return j=(0,U.Cg)([De({inputs:["contentId","disabled","maxEdgeStart","menuId","side","swipeGesture","type"],methods:["isOpen","isActive","open","close","toggle","setOpen"]})],j),j})(),lt=(()=>{var b;let j=((0,h.A)(b=class{constructor(P,Ee,it){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=it,P.detach(),this.el=Ee.nativeElement}},"\u0275fac",function(P){return new(P||b)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(b,"\u0275cmp",c.VBU({type:b,selectors:[["ion-menu-button"]],inputs:{autoHide:"autoHide",color:"color",disabled:"disabled",menu:"menu",mode:"mode",type:"type"},ngContentSelectors:xe,decls:1,vars:0,template:function(P,Ee){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),b);return j=(0,U.Cg)([De({inputs:["autoHide","color","disabled","menu","mode","type"]})],j),j})(),Gt=(()=>{var b;let j=((0,h.A)(b=class{constructor(P,Ee,it){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=it,P.detach(),this.el=Ee.nativeElement}},"\u0275fac",function(P){return new(P||b)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(b,"\u0275cmp",c.VBU({type:b,selectors:[["ion-menu-toggle"]],inputs:{autoHide:"autoHide",menu:"menu"},ngContentSelectors:xe,decls:1,vars:0,template:function(P,Ee){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),b);return j=(0,U.Cg)([De({inputs:["autoHide","menu"]})],j),j})(),fr=(()=>{var b;let j=((0,h.A)(b=class{constructor(P,Ee,it){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=it,P.detach(),this.el=Ee.nativeElement,ve(this,this.el,["ionRefresh","ionPull","ionStart"])}},"\u0275fac",function(P){return new(P||b)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(b,"\u0275cmp",c.VBU({type:b,selectors:[["ion-refresher"]],inputs:{closeDuration:"closeDuration",disabled:"disabled",mode:"mode",pullFactor:"pullFactor",pullMax:"pullMax",pullMin:"pullMin",snapbackDuration:"snapbackDuration"},ngContentSelectors:xe,decls:1,vars:0,template:function(P,Ee){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),b);return j=(0,U.Cg)([De({inputs:["closeDuration","disabled","mode","pullFactor","pullMax","pullMin","snapbackDuration"],methods:["complete","cancel","getProgress"]})],j),j})(),Ri=(()=>{var b;let j=((0,h.A)(b=class{constructor(P,Ee,it){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=it,P.detach(),this.el=Ee.nativeElement}},"\u0275fac",function(P){return new(P||b)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(b,"\u0275cmp",c.VBU({type:b,selectors:[["ion-refresher-content"]],inputs:{pullingIcon:"pullingIcon",pullingText:"pullingText",refreshingSpinner:"refreshingSpinner",refreshingText:"refreshingText"},ngContentSelectors:xe,decls:1,vars:0,template:function(P,Ee){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),b);return j=(0,U.Cg)([De({inputs:["pullingIcon","pullingText","refreshingSpinner","refreshingText"]})],j),j})(),te=(()=>{var b;let j=((0,h.A)(b=class{constructor(P,Ee,it){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=it,P.detach(),this.el=Ee.nativeElement}},"\u0275fac",function(P){return new(P||b)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(b,"\u0275cmp",c.VBU({type:b,selectors:[["ion-row"]],ngContentSelectors:xe,decls:1,vars:0,template:function(P,Ee){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),b);return j=(0,U.Cg)([De({})],j),j})(),At=(()=>{var b;let j=((0,h.A)(b=class{constructor(P,Ee,it){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=it,P.detach(),this.el=Ee.nativeElement,ve(this,this.el,["ionSplitPaneVisible"])}},"\u0275fac",function(P){return new(P||b)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(b,"\u0275cmp",c.VBU({type:b,selectors:[["ion-split-pane"]],inputs:{contentId:"contentId",disabled:"disabled",when:"when"},ngContentSelectors:xe,decls:1,vars:0,template:function(P,Ee){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),b);return j=(0,U.Cg)([De({inputs:["contentId","disabled","when"]})],j),j})(),Un=(()=>{var b;let j=((0,h.A)(b=class{constructor(P,Ee,it){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=it,P.detach(),this.el=Ee.nativeElement,ve(this,this.el,["ionChange","ionInput","ionBlur","ionFocus"])}},"\u0275fac",function(P){return new(P||b)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(b,"\u0275cmp",c.VBU({type:b,selectors:[["ion-textarea"]],inputs:{autoGrow:"autoGrow",autocapitalize:"autocapitalize",autofocus:"autofocus",clearOnEdit:"clearOnEdit",color:"color",cols:"cols",counter:"counter",counterFormatter:"counterFormatter",debounce:"debounce",disabled:"disabled",enterkeyhint:"enterkeyhint",errorText:"errorText",fill:"fill",helperText:"helperText",inputmode:"inputmode",label:"label",labelPlacement:"labelPlacement",maxlength:"maxlength",minlength:"minlength",mode:"mode",name:"name",placeholder:"placeholder",readonly:"readonly",required:"required",rows:"rows",shape:"shape",spellcheck:"spellcheck",value:"value",wrap:"wrap"},ngContentSelectors:xe,decls:1,vars:0,template:function(P,Ee){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),b);return j=(0,U.Cg)([De({inputs:["autoGrow","autocapitalize","autofocus","clearOnEdit","color","cols","counter","counterFormatter","debounce","disabled","enterkeyhint","errorText","fill","helperText","inputmode","label","labelPlacement","maxlength","minlength","mode","name","placeholder","readonly","required","rows","shape","spellcheck","value","wrap"],methods:["setFocus","getInputElement"]})],j),j})(),On=(()=>{var b;let j=((0,h.A)(b=class{constructor(P,Ee,it){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=it,P.detach(),this.el=Ee.nativeElement}},"\u0275fac",function(P){return new(P||b)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(b,"\u0275cmp",c.VBU({type:b,selectors:[["ion-title"]],inputs:{color:"color",size:"size"},ngContentSelectors:xe,decls:1,vars:0,template:function(P,Ee){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),b);return j=(0,U.Cg)([De({inputs:["color","size"]})],j),j})(),zr=(()=>{var b;let j=((0,h.A)(b=class{constructor(P,Ee,it){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=it,P.detach(),this.el=Ee.nativeElement}},"\u0275fac",function(P){return new(P||b)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(b,"\u0275cmp",c.VBU({type:b,selectors:[["ion-toolbar"]],inputs:{color:"color",mode:"mode"},ngContentSelectors:xe,decls:1,vars:0,template:function(P,Ee){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),b);return j=(0,U.Cg)([De({inputs:["color","mode"]})],j),j})(),Tr=(()=>{var b;class j extends Oe.Rg{constructor(P,Ee,it,sr,ni,z,me,Ne){super(P,Ee,it,sr,ni,z,me,Ne),(0,h.A)(this,"parentOutlet",void 0),(0,h.A)(this,"outletContent",void 0),this.parentOutlet=Ne}}return b=j,(0,h.A)(j,"\u0275fac",function(P){return new(P||b)(c.kS0("name"),c.kS0("tabs"),c.rXU(oe.aZ),c.rXU(c.aKT),c.rXU(Xe.Ix),c.rXU(c.SKi),c.rXU(Xe.nX),c.rXU(b,12))}),(0,h.A)(j,"\u0275cmp",c.VBU({type:b,selectors:[["ion-router-outlet"]],viewQuery:function(P,Ee){if(1&P&&c.GBs(at,7,c.c1b),2&P){let it;c.mGM(it=c.lsd())&&(Ee.outletContent=it.first)}},features:[c.Vt3],ngContentSelectors:xe,decls:3,vars:0,consts:[["outletContent",""]],template:function(P,Ee){1&P&&(c.NAR(),c.qex(0,null,0),c.SdG(2),c.bVm())},encapsulation:2})),j})(),li=(()=>{var b;class j extends Oe.CE{}return b=j,(0,h.A)(j,"\u0275fac",(()=>{let re;return function(Ee){return(re||(re=c.xGo(b)))(Ee||b)}})()),(0,h.A)(j,"\u0275dir",c.FsC({type:b,selectors:[["","routerLink","",5,"a",5,"area"]],features:[c.Vt3]})),j})(),ei=(()=>{var b;class j extends Oe.pF{}return b=j,(0,h.A)(j,"\u0275fac",(()=>{let re;return function(Ee){return(re||(re=c.xGo(b)))(Ee||b)}})()),(0,h.A)(j,"\u0275dir",c.FsC({type:b,selectors:[["a","routerLink",""],["area","routerLink",""]],features:[c.Vt3]})),j})(),Lr=(()=>{var b;class j extends Oe.Sb{}return b=j,(0,h.A)(j,"\u0275fac",(()=>{let re;return function(Ee){return(re||(re=c.xGo(b)))(Ee||b)}})()),(0,h.A)(j,"\u0275cmp",c.VBU({type:b,selectors:[["ion-modal"]],features:[c.Vt3],decls:1,vars:1,consts:[["class","ion-delegate-host ion-page",4,"ngIf"],[1,"ion-delegate-host","ion-page"],[3,"ngTemplateOutlet"]],template:function(P,Ee){1&P&&c.DNE(0,tt,2,1,"div",0),2&P&&c.Y8G("ngIf",Ee.isCmpOpen||Ee.keepContentsMounted)},dependencies:[oe.bT,oe.T3],encapsulation:2,changeDetection:0})),j})();const Wn={provide:Z.cz,useExisting:(0,c.Rfq)(()=>Hn),multi:!0};let Hn=(()=>{var b;class j extends Z.zX{}return b=j,(0,h.A)(j,"\u0275fac",(()=>{let re;return function(Ee){return(re||(re=c.xGo(b)))(Ee||b)}})()),(0,h.A)(j,"\u0275dir",c.FsC({type:b,selectors:[["ion-input","type","number","max","","formControlName",""],["ion-input","type","number","max","","formControl",""],["ion-input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(P,Ee){2&P&&c.BMQ("max",Ee._enabled?Ee.max:null)},features:[c.Jv_([Wn]),c.Vt3]})),j})();const ao={provide:Z.cz,useExisting:(0,c.Rfq)(()=>ui),multi:!0};let ui=(()=>{var b;class j extends Z.VZ{}return b=j,(0,h.A)(j,"\u0275fac",(()=>{let re;return function(Ee){return(re||(re=c.xGo(b)))(Ee||b)}})()),(0,h.A)(j,"\u0275dir",c.FsC({type:b,selectors:[["ion-input","type","number","min","","formControlName",""],["ion-input","type","number","min","","formControl",""],["ion-input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(P,Ee){2&P&&c.BMQ("min",Ee._enabled?Ee.min:null)},features:[c.Jv_([ao]),c.Vt3]})),j})(),Ci=(()=>{var b;class j extends Oe.Kb{constructor(){super(St.a)}}return b=j,(0,h.A)(j,"\u0275fac",function(P){return new(P||b)}),(0,h.A)(j,"\u0275prov",c.jDH({token:b,factory:b.\u0275fac,providedIn:"root"})),j})(),bt=(()=>{var b;class j extends Oe.Kb{constructor(){super(St.l)}}return b=j,(0,h.A)(j,"\u0275fac",function(P){return new(P||b)}),(0,h.A)(j,"\u0275prov",c.jDH({token:b,factory:b.\u0275fac,providedIn:"root"})),j})(),he=(()=>{var b;class j extends Oe._t{constructor(){super(Dt.m)}}return b=j,(0,h.A)(j,"\u0275fac",function(P){return new(P||b)}),(0,h.A)(j,"\u0275prov",c.jDH({token:b,factory:b.\u0275fac,providedIn:"root"})),j})(),le=(()=>{var b;class j extends Oe.Kb{constructor(){super(St.m),(0,h.A)(this,"angularDelegate",(0,c.WQX)(Oe.Yq)),(0,h.A)(this,"injector",(0,c.WQX)(c.zZn)),(0,h.A)(this,"environmentInjector",(0,c.WQX)(c.uvJ))}create(P){return super.create({...P,delegate:this.angularDelegate.create(this.environmentInjector,this.injector,"modal")})}}return b=j,(0,h.A)(j,"\u0275fac",function(P){return new(P||b)}),(0,h.A)(j,"\u0275prov",c.jDH({token:b,factory:b.\u0275fac})),j})();class $e extends Oe.Kb{constructor(){super(St.c),(0,h.A)(this,"angularDelegate",(0,c.WQX)(Oe.Yq)),(0,h.A)(this,"injector",(0,c.WQX)(c.zZn)),(0,h.A)(this,"environmentInjector",(0,c.WQX)(c.uvJ))}create(j){return super.create({...j,delegate:this.angularDelegate.create(this.environmentInjector,this.injector,"popover")})}}const ot=(b,j,re)=>()=>{const P=j.defaultView;if(P&&typeof window<"u"){(0,ht.s)({...b,_zoneGate:it=>re.run(it)});const Ee="__zone_symbol__addEventListener"in j.body?"__zone_symbol__addEventListener":"addEventListener";return function Ye(){var b=[];if(typeof window<"u"){var j=window;(!j.customElements||j.Element&&(!j.Element.prototype.closest||!j.Element.prototype.matches||!j.Element.prototype.remove||!j.Element.prototype.getRootNode))&&b.push(S.e(7278).then(S.t.bind(S,2190,23))),("function"!=typeof Object.assign||!Object.entries||!Array.prototype.find||!Array.prototype.includes||!String.prototype.startsWith||!String.prototype.endsWith||j.NodeList&&!j.NodeList.prototype.forEach||!j.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")&&b.push(S.e(9329).then(S.t.bind(S,7783,23)))}return Promise.all(b)}().then(()=>Fe(P,{exclude:["ion-tabs","ion-tab"],syncQueue:!0,raf:Oe.er,jmp:it=>re.runOutsideAngular(it),ael(it,sr,ni,z){it[Ee](sr,ni,z)},rel(it,sr,ni,z){it.removeEventListener(sr,ni,z)}}))}};let Fn=(()=>{var b;class j{static forRoot(P={}){return{ngModule:j,providers:[{provide:Oe.sR,useValue:P},{provide:c.hnV,useFactory:ot,multi:!0,deps:[Oe.sR,oe.qQ,c.SKi]},Oe.Yq,(0,Oe.YV)()]}}}return b=j,(0,h.A)(j,"\u0275fac",function(P){return new(P||b)}),(0,h.A)(j,"\u0275mod",c.$C({type:b})),(0,h.A)(j,"\u0275inj",c.G2t({providers:[le,$e],imports:[oe.MD]})),j})()},2214:(Tn,gt,S)=>{"use strict";S.d(gt,{Dk:()=>h.Dk,KO:()=>h.KO,Sx:()=>h.Sx,Wp:()=>h.Wp});var h=S(7852);(0,h.KO)("firebase","10.12.2","app")},2820:(Tn,gt,S)=>{"use strict";S.d(gt,{$P:()=>St,sN:()=>yt,eS:()=>_t});var h=S(467),c=S(4438),Z=S(2771),Oe=S(8359),U=S(1413),ue=S(3236),oe=S(1985),Xe=S(9974),Je=S(4360),Se=S(8750),Qe=S(1584);var qe=S(5558);class ht{constructor(){this.subject=new Z.m(1),this.subscriptions=new Oe.yU}doFilter(Me){this.subject.next(Me)}dispose(){this.subscriptions.unsubscribe()}notEmpty(Me,Ye){this.subscriptions.add(this.subject.subscribe(ge=>{if(ge[Me]){const Ue=ge[Me].currentValue;null!=Ue&&Ye(Ue)}}))}has(Me,Ye){this.subscriptions.add(this.subject.subscribe(ge=>{ge[Me]&&Ye(ge[Me].currentValue)}))}notFirst(Me,Ye){this.subscriptions.add(this.subject.subscribe(ge=>{ge[Me]&&!ge[Me].isFirstChange()&&Ye(ge[Me].currentValue)}))}notFirstAndEmpty(Me,Ye){this.subscriptions.add(this.subject.subscribe(ge=>{if(ge[Me]&&!ge[Me].isFirstChange()){const Ue=ge[Me].currentValue;null!=Ue&&Ye(Ue)}}))}}const Dt=new c.nKC("NGX_ECHARTS_CONFIG");let St=(()=>{var mt;class Me{constructor(ge,Ue,Fe){this.el=Ue,this.ngZone=Fe,this.options=null,this.theme=null,this.initOpts=null,this.merge=null,this.autoResize=!0,this.loading=!1,this.loadingType="default",this.loadingOpts=null,this.chartInit=new c.bkB,this.optionsError=new c.bkB,this.chartClick=this.createLazyEvent("click"),this.chartDblClick=this.createLazyEvent("dblclick"),this.chartMouseDown=this.createLazyEvent("mousedown"),this.chartMouseMove=this.createLazyEvent("mousemove"),this.chartMouseUp=this.createLazyEvent("mouseup"),this.chartMouseOver=this.createLazyEvent("mouseover"),this.chartMouseOut=this.createLazyEvent("mouseout"),this.chartGlobalOut=this.createLazyEvent("globalout"),this.chartContextMenu=this.createLazyEvent("contextmenu"),this.chartHighlight=this.createLazyEvent("highlight"),this.chartDownplay=this.createLazyEvent("downplay"),this.chartSelectChanged=this.createLazyEvent("selectchanged"),this.chartLegendSelectChanged=this.createLazyEvent("legendselectchanged"),this.chartLegendSelected=this.createLazyEvent("legendselected"),this.chartLegendUnselected=this.createLazyEvent("legendunselected"),this.chartLegendLegendSelectAll=this.createLazyEvent("legendselectall"),this.chartLegendLegendInverseSelect=this.createLazyEvent("legendinverseselect"),this.chartLegendScroll=this.createLazyEvent("legendscroll"),this.chartDataZoom=this.createLazyEvent("datazoom"),this.chartDataRangeSelected=this.createLazyEvent("datarangeselected"),this.chartGraphRoam=this.createLazyEvent("graphroam"),this.chartGeoRoam=this.createLazyEvent("georoam"),this.chartTreeRoam=this.createLazyEvent("treeroam"),this.chartTimelineChanged=this.createLazyEvent("timelinechanged"),this.chartTimelinePlayChanged=this.createLazyEvent("timelineplaychanged"),this.chartRestore=this.createLazyEvent("restore"),this.chartDataViewChanged=this.createLazyEvent("dataviewchanged"),this.chartMagicTypeChanged=this.createLazyEvent("magictypechanged"),this.chartGeoSelectChanged=this.createLazyEvent("geoselectchanged"),this.chartGeoSelected=this.createLazyEvent("geoselected"),this.chartGeoUnselected=this.createLazyEvent("geounselected"),this.chartAxisAreaSelected=this.createLazyEvent("axisareaselected"),this.chartBrush=this.createLazyEvent("brush"),this.chartBrushEnd=this.createLazyEvent("brushend"),this.chartBrushSelected=this.createLazyEvent("brushselected"),this.chartGlobalCursorTaken=this.createLazyEvent("globalcursortaken"),this.chartRendered=this.createLazyEvent("rendered"),this.chartFinished=this.createLazyEvent("finished"),this.animationFrameID=null,this.chart$=new Z.m(1),this.resize$=new U.B,this.changeFilter=new ht,this.resizeObFired=!1,this.echarts=ge.echarts,this.theme=ge.theme||null}ngOnChanges(ge){this.changeFilter.doFilter(ge)}ngOnInit(){if(!window.ResizeObserver)throw new Error("please install a polyfill for ResizeObserver");this.resizeSub=this.resize$.pipe(function Ze(mt,Me=ue.E,Ye){const ge=(0,Qe.O)(mt,Me);return function Ce(mt,Me){return(0,Xe.N)((Ye,ge)=>{const{leading:Ue=!0,trailing:Fe=!1}=null!=Me?Me:{};let xe=!1,at=null,Rt=null,vn=!1;const Nt=()=>{null==Rt||Rt.unsubscribe(),Rt=null,Fe&&(dt(),vn&&ge.complete())},tt=()=>{Rt=null,vn&&ge.complete()},on=we=>Rt=(0,Se.Tg)(mt(we)).subscribe((0,Je._)(ge,Nt,tt)),dt=()=>{if(xe){xe=!1;const we=at;at=null,ge.next(we),!vn&&on(we)}};Ye.subscribe((0,Je._)(ge,we=>{xe=!0,at=we,(!Rt||Rt.closed)&&(Ue?dt():on(we))},()=>{vn=!0,(!(Fe&&xe&&Rt)||Rt.closed)&&ge.complete()}))})}(()=>ge,Ye)}(100,ue.E,{leading:!1,trailing:!0})).subscribe(()=>this.resize()),this.autoResize&&(this.resizeOb=this.ngZone.runOutsideAngular(()=>new window.ResizeObserver(ge=>{for(const Ue of ge)Ue.target===this.el.nativeElement&&(this.resizeObFired?this.animationFrameID=window.requestAnimationFrame(()=>{this.resize$.next()}):this.resizeObFired=!0)})),this.resizeOb.observe(this.el.nativeElement)),this.changeFilter.notFirstAndEmpty("options",ge=>this.onOptionsChange(ge)),this.changeFilter.notFirstAndEmpty("merge",ge=>this.setOption(ge)),this.changeFilter.has("loading",ge=>this.toggleLoading(!!ge)),this.changeFilter.notFirst("theme",()=>this.refreshChart())}ngOnDestroy(){window.clearTimeout(this.initChartTimer),this.resizeSub&&this.resizeSub.unsubscribe(),this.animationFrameID&&window.cancelAnimationFrame(this.animationFrameID),this.resizeOb&&this.resizeOb.unobserve(this.el.nativeElement),this.loadingSub&&this.loadingSub.unsubscribe(),this.changeFilter.dispose(),this.dispose()}ngAfterViewInit(){this.initChartTimer=window.setTimeout(()=>this.initChart())}dispose(){this.chart&&(this.chart.isDisposed()||this.chart.dispose(),this.chart=null)}resize(){this.chart&&this.chart.resize()}toggleLoading(ge){this.chart?ge?this.chart.showLoading(this.loadingType,this.loadingOpts):this.chart.hideLoading():this.loadingSub=this.chart$.subscribe(Ue=>ge?Ue.showLoading(this.loadingType,this.loadingOpts):Ue.hideLoading())}setOption(ge,Ue){if(this.chart)try{this.chart.setOption(ge,Ue)}catch(Fe){console.error(Fe),this.optionsError.emit(Fe)}}refreshChart(){var ge=this;return(0,h.A)(function*(){ge.dispose(),yield ge.initChart()})()}createChart(){const ge=this.el.nativeElement;if(window&&window.getComputedStyle){const Ue=window.getComputedStyle(ge,null).getPropertyValue("height");(!Ue||"0px"===Ue)&&(!ge.style.height||"0px"===ge.style.height)&&(ge.style.height="400px")}return this.ngZone.runOutsideAngular(()=>("function"==typeof this.echarts?this.echarts:()=>Promise.resolve(this.echarts))().then(({init:Fe})=>Fe(ge,this.theme,this.initOpts)))}initChart(){var ge=this;return(0,h.A)(function*(){yield ge.onOptionsChange(ge.options),ge.merge&&ge.chart&&ge.setOption(ge.merge)})()}onOptionsChange(ge){var Ue=this;return(0,h.A)(function*(){ge&&(Ue.chart||(Ue.chart=yield Ue.createChart(),Ue.chart$.next(Ue.chart),Ue.chartInit.emit(Ue.chart)),Ue.setOption(Ue.options,!0))})()}createLazyEvent(ge){return this.chartInit.pipe((0,qe.n)(Ue=>new oe.c(Fe=>(Ue.on(ge,xe=>this.ngZone.run(()=>Fe.next(xe))),()=>{this.chart&&(this.chart.isDisposed()||Ue.off(ge))}))))}}return(mt=Me).\u0275fac=function(ge){return new(ge||mt)(c.rXU(Dt),c.rXU(c.aKT),c.rXU(c.SKi))},mt.\u0275dir=c.FsC({type:mt,selectors:[["echarts"],["","echarts",""]],inputs:{options:"options",theme:"theme",initOpts:"initOpts",merge:"merge",autoResize:"autoResize",loading:"loading",loadingType:"loadingType",loadingOpts:"loadingOpts"},outputs:{chartInit:"chartInit",optionsError:"optionsError",chartClick:"chartClick",chartDblClick:"chartDblClick",chartMouseDown:"chartMouseDown",chartMouseMove:"chartMouseMove",chartMouseUp:"chartMouseUp",chartMouseOver:"chartMouseOver",chartMouseOut:"chartMouseOut",chartGlobalOut:"chartGlobalOut",chartContextMenu:"chartContextMenu",chartHighlight:"chartHighlight",chartDownplay:"chartDownplay",chartSelectChanged:"chartSelectChanged",chartLegendSelectChanged:"chartLegendSelectChanged",chartLegendSelected:"chartLegendSelected",chartLegendUnselected:"chartLegendUnselected",chartLegendLegendSelectAll:"chartLegendLegendSelectAll",chartLegendLegendInverseSelect:"chartLegendLegendInverseSelect",chartLegendScroll:"chartLegendScroll",chartDataZoom:"chartDataZoom",chartDataRangeSelected:"chartDataRangeSelected",chartGraphRoam:"chartGraphRoam",chartGeoRoam:"chartGeoRoam",chartTreeRoam:"chartTreeRoam",chartTimelineChanged:"chartTimelineChanged",chartTimelinePlayChanged:"chartTimelinePlayChanged",chartRestore:"chartRestore",chartDataViewChanged:"chartDataViewChanged",chartMagicTypeChanged:"chartMagicTypeChanged",chartGeoSelectChanged:"chartGeoSelectChanged",chartGeoSelected:"chartGeoSelected",chartGeoUnselected:"chartGeoUnselected",chartAxisAreaSelected:"chartAxisAreaSelected",chartBrush:"chartBrush",chartBrushEnd:"chartBrushEnd",chartBrushSelected:"chartBrushSelected",chartGlobalCursorTaken:"chartGlobalCursorTaken",chartRendered:"chartRendered",chartFinished:"chartFinished"},exportAs:["echarts"],standalone:!0,features:[c.OA$]}),Me})();const _t=(mt={})=>({provide:Dt,useFactory:()=>({...mt,echarts:()=>S.e(9697).then(S.bind(S,9697))})}),Tt=mt=>({provide:Dt,useValue:mt});let yt=(()=>{var mt;class Me{static forRoot(ge){return{ngModule:Me,providers:[Tt(ge)]}}static forChild(){return{ngModule:Me}}}return(mt=Me).\u0275fac=function(ge){return new(ge||mt)},mt.\u0275mod=c.$C({type:mt}),mt.\u0275inj=c.G2t({}),Me})()},7616:(Tn,gt,S)=>{"use strict";S.d(gt,{E:()=>Me,n:()=>Ye});var h=S(4438),c=S(177);const Z=["flamegraph-node",""];function Oe(ge,Ue){if(1&ge){const Fe=h.RV6();h.j41(0,"div",2)(1,"div",3),h.EFF(2),h.k0s(),h.j41(3,"div",2),h.qSk(),h.j41(4,"svg",4)(5,"g",5),h.bIt("click",function(){const at=h.eBV(Fe).$implicit,Rt=h.XpG();return h.Njj(Rt.frameClick.emit(at.original))})("mouseOverZoneless",function(){const at=h.eBV(Fe).$implicit,Rt=h.XpG();return h.Njj(Rt.frameMouseEnter.emit(at.original))})("mouseLeaveZoneless",function(){const at=h.eBV(Fe).$implicit,Rt=h.XpG();return h.Njj(Rt.frameMouseLeave.emit(at.original))})("zoom",function(){const at=h.eBV(Fe).$implicit,Rt=h.XpG();return h.Njj(Rt.zoom.emit(at))}),h.k0s()()()()}if(2&ge){const Fe=Ue.$implicit,xe=h.XpG();h.xc7("position","absolute")("transform","translate("+xe.getLeft(Fe)+"px,"+xe.getTop(Fe)+"px)")("height",xe.levelHeight,"px"),h.AVh("hide-bar",!(void 0===xe.minimumBarSize||xe.getWidth(Fe)>xe.minimumBarSize)),h.R7$(),h.xc7("width",xe.getWidth(Fe),"px"),h.R7$(),h.SpI(" ",Fe.label," "),h.R7$(),h.xc7("transform","scaleX("+xe.getWidth(Fe)/xe.width+")")("height",xe.levelHeight,"px"),h.R7$(2),h.Y8G("height",xe.levelHeight)("navigable",Fe.navigable)("color",Fe.color)}}function U(ge,Ue){if(1&ge){const Fe=h.RV6();h.j41(0,"ngx-flamegraph-graph",1),h.bIt("frameClick",function(at){h.eBV(Fe);const Rt=h.XpG();return h.Njj(Rt.frameClick.emit(at))})("frameMouseEnter",function(at){h.eBV(Fe);const Rt=h.XpG();return h.Njj(Rt.onFrameMouseEnter(at))})("frameMouseLeave",function(at){h.eBV(Fe);const Rt=h.XpG();return h.Njj(Rt.onFrameMouseLeave(at))})("zoom",function(at){h.eBV(Fe);const Rt=h.XpG();return h.Njj(Rt.onZoom(at))}),h.k0s()}if(2&ge){const Fe=h.XpG();h.xc7("height",Fe.depth*Fe.levelHeight,"px")("width",Fe.width,"px"),h.Y8G("layout",Fe.siblingLayout)("data",Fe.entries)("depth",Fe.depth)("levelHeight",Fe.levelHeight)("width",Fe.width)("minimumBarSize",Fe.minimumBarSize)}}const ue=ge=>ge.reduce((Ue,Fe)=>Math.max(Ue,Fe.value,ue(Fe.children||[])),-1/0),oe=([ge,Ue],Fe)=>ge+(Ue-ge)*Fe,Xe=(ge,Ue,Fe,xe,at=null,Rt=0,vn=1,Nt=0)=>{const tt=[];let on=0;ge.forEach(we=>{on+=we.value});const dt=[];return ge.forEach(we=>{var H,X,fe;let se=vn/ge.length;"relative"===Ue&&(se=we.value/on*vn||0);const ve=Math.min(we.value/Fe,1),Le=we.color||`hsl(${null!==(H=oe(xe.hue,ve))&&void 0!==H?H:0}, ${null!==(X=oe(xe.saturation,ve))&&void 0!==X?X:80}%, ${null!==(fe=oe(xe.lightness,ve))&&void 0!==fe?fe:0}%)`,Wt={label:we.label,value:we.value,siblings:dt,color:Le,widthRatio:se,originalWidthRatio:se,originalLeftRatio:Rt,leftRatio:Rt,navigable:!1,rowNumber:Nt,original:we,children:[],parent:at};at&&at.children.push(Wt);const dn=Xe(we.children||[],Ue,Fe,xe,Wt,Rt,se,Nt+1);dt.push(Wt),tt.push(Wt,...dn),Rt+=se}),tt},Je=ge=>{if(!ge||!ge.length)return 0;let Ue=0;for(const Fe of ge)Ue=Math.max(1+Je(Fe.children),Ue);return Ue},Qe=(ge,Ue)=>{Ue.widthRatio=0,Ue.leftRatio=ge,Ue.children.forEach(Fe=>Qe(ge,Fe))},Ze=ge=>{const Ue=ge.siblings.indexOf(ge);for(let Fe=0;Fe{let at=0;ge.forEach(Rt=>{at+=Rt.value}),ge.forEach(Rt=>{let vn=Rt.value/at*xe;"equal"===Ue&&(vn=xe/ge.length),Rt.widthRatio=vn,Rt.leftRatio=Fe,ht(Rt.children,Ue,Fe,vn),Fe+=vn})},Dt=ge=>{ge.navigable=!1,ge.leftRatio=ge.originalLeftRatio,ge.widthRatio=ge.originalWidthRatio,ge.children.forEach(Dt)},_t={hue:[50,0],saturation:[80,80],lightness:[55,60]};let Tt=(()=>{class ge{constructor(Fe,xe,at){this._ngZone=Fe,this._element=xe,this._renderer=at,this.navigable=!1,this.zoom=new h.bkB,this.mouseOverZoneless=new h.bkB,this.mouseLeaveZoneless=new h.bkB}ngOnInit(){this._ngZone.runOutsideAngular(()=>{this.mouseOverTeardownFn=this._renderer.listen(this._element.nativeElement,"mouseover",Fe=>this.mouseOverZoneless.emit(Fe)),this.mouseLeaveTeardownFn=this._renderer.listen(this._element.nativeElement,"mouseleave",Fe=>this.mouseLeaveZoneless.emit(Fe))})}ngOnDestroy(){this.mouseOverTeardownFn(),this.mouseLeaveTeardownFn()}}return ge.\u0275fac=function(Fe){return new(Fe||ge)(h.rXU(h.SKi),h.rXU(h.aKT),h.rXU(h.sFG))},ge.\u0275cmp=h.VBU({type:ge,selectors:[["","flamegraph-node",""]],inputs:{height:"height",navigable:"navigable",color:"color"},outputs:{zoom:"zoom",mouseOverZoneless:"mouseOverZoneless",mouseLeaveZoneless:"mouseLeaveZoneless"},attrs:Z,decls:1,vars:4,consts:[["stroke","white","stroke-width","1px","pointer-events","all","width","100%","rx","1","ry","1",1,"ngx-fg-rect",3,"dblclick"]],template:function(Fe,xe){1&Fe&&(h.qSk(),h.j41(0,"rect",0),h.bIt("dblclick",function(){return xe.zoom.emit()}),h.k0s()),2&Fe&&(h.AVh("ngx-fg-navigable",xe.navigable),h.BMQ("height",xe.height)("fill",xe.color))},styles:[".ngx-fg-navigable{opacity:.5}\n"],encapsulation:2,changeDetection:0}),ge})(),yt=(()=>{class ge{constructor(){this.selectedData=[],this.entries=[],this.frameClick=new h.bkB,this.frameMouseEnter=new h.bkB,this.frameMouseLeave=new h.bkB,this.zoom=new h.bkB}set data(Fe){this.entries=Fe}get height(){return this.levelHeight*this.depth}getTop(Fe){return Fe.rowNumber*this.levelHeight}getLeft(Fe){return Fe.leftRatio*this.width}getWidth(Fe){return Fe.widthRatio*this.width||0}}return ge.\u0275fac=function(Fe){return new(Fe||ge)},ge.\u0275cmp=h.VBU({type:ge,selectors:[["ngx-flamegraph-graph"]],inputs:{width:"width",levelHeight:"levelHeight",layout:"layout",depth:"depth",minimumBarSize:"minimumBarSize",data:"data"},outputs:{frameClick:"frameClick",frameMouseEnter:"frameMouseEnter",frameMouseLeave:"frameMouseLeave",zoom:"zoom"},decls:2,vars:3,consts:[[1,"ngx-fg-chart-wrapper"],["class","svg-wrapper",3,"hide-bar","position","transform","height",4,"ngFor","ngForOf"],[1,"svg-wrapper"],[1,"bar-text"],["width","100%","height","100%",1,"ngx-fg-svg"],["flamegraph-node","",1,"ngx-fg-svg-g",3,"click","mouseOverZoneless","mouseLeaveZoneless","zoom","height","navigable","color"]],template:function(Fe,xe){1&Fe&&(h.j41(0,"div",0),h.DNE(1,Oe,6,18,"div",1),h.k0s()),2&Fe&&(h.AVh("ngx-fg-grayscale",xe.selectedData&&xe.selectedData.length),h.R7$(),h.Y8G("ngForOf",xe.entries))},dependencies:[c.Sq,Tt],styles:[".ngx-fg-svg{pointer-events:none}ngx-flamegraph-graph{position:absolute;display:block;overflow:hidden}.svg-wrapper{width:100%;transform-origin:left}.svg-wrapper{transition:transform .333s ease-in-out,opacity .333s ease-in-out}.bar-text{position:absolute;z-index:1;overflow:hidden;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;color:#fff;padding:5px;font-family:sans-serif;font-size:80%}.hide-bar{opacity:0;pointer-events:none}\n"],encapsulation:2,changeDetection:0}),ge})();const mt=typeof ResizeObserver<"u";let Me=(()=>{class ge{constructor(Fe,xe,at){this._el=Fe,this.cdr=xe,this._ngZone=at,this.entries=[],this.depth=0,this.frameClick=new h.bkB,this.frameMouseEnter=new h.bkB,this.frameMouseLeave=new h.bkB,this.siblingLayout="relative",this.width=null,this.levelHeight=25}set config(Fe){var xe,at;this._data=Fe.data,this._colors=null!==(xe=Fe.color)&&void 0!==xe?xe:_t,this.minimumBarSize=null!==(at=Fe.minimumBarSize)&&void 0!==at?at:2,this._refresh()}get hostStyles(){return`height: ${this.depth*this.levelHeight}px `}ngOnInit(){var Fe;const xe=null===(Fe=this._el.nativeElement)||void 0===Fe?void 0:Fe.parentElement;xe&&null===this.width&&mt&&(this._resizeObserver=new ResizeObserver(()=>this._ngZone.run(()=>this._onParentResize())),this._resizeObserver.observe(xe))}ngOnDestroy(){var Fe;const xe=null===(Fe=this._el.nativeElement)||void 0===Fe?void 0:Fe.parentElement;xe&&this._resizeObserver&&mt&&this._resizeObserver.unobserve(xe)}_onParentResize(){var Fe;const xe=null===(Fe=this._el.nativeElement)||void 0===Fe?void 0:Fe.parentElement;xe&&(this.width=xe.clientWidth,this.cdr.markForCheck())}_refresh(){const{hue:Fe,saturation:xe,lightness:at}=this._colors,Rt={hue:Array.isArray(Fe)?Fe:[Fe,Fe],saturation:Array.isArray(xe)?xe:[xe,xe],lightness:Array.isArray(at)?at:[at,at]};this.entries=Xe(this._data,this.siblingLayout,ue(this._data),Rt),this.depth=Je(this._data)}onZoom(Fe){Fe.navigable&&Dt(Fe),((ge,Ue)=>{let Fe=ge;for(;Fe;)Fe.widthRatio=1,Fe.leftRatio=0,Ze(Fe),Fe=Fe.parent,Fe&&(Fe.navigable=!0);ht(ge.children,Ue)})(Fe,this.siblingLayout)}onFrameMouseEnter(Fe){0!==this.frameMouseEnter.observers.length&&this._ngZone.run(()=>this.frameMouseEnter.emit(Fe))}onFrameMouseLeave(Fe){0!==this.frameMouseLeave.observers.length&&this._ngZone.run(()=>this.frameMouseLeave.emit(Fe))}}return ge.\u0275fac=function(Fe){return new(Fe||ge)(h.rXU(h.aKT),h.rXU(h.gRc),h.rXU(h.SKi))},ge.\u0275cmp=h.VBU({type:ge,selectors:[["ngx-flamegraph"]],hostVars:1,hostBindings:function(Fe,xe){2&Fe&&h.BMQ("style",xe.hostStyles,h.$dS)},inputs:{siblingLayout:"siblingLayout",width:"width",levelHeight:"levelHeight",config:"config"},outputs:{frameClick:"frameClick",frameMouseEnter:"frameMouseEnter",frameMouseLeave:"frameMouseLeave"},decls:1,vars:1,consts:[[3,"layout","data","depth","levelHeight","width","height","minimumBarSize","frameClick","frameMouseEnter","frameMouseLeave","zoom",4,"ngIf"],[3,"frameClick","frameMouseEnter","frameMouseLeave","zoom","layout","data","depth","levelHeight","width","minimumBarSize"]],template:function(Fe,xe){1&Fe&&h.DNE(0,U,1,10,"ngx-flamegraph-graph",0),2&Fe&&h.Y8G("ngIf",null!==xe.width)},dependencies:[c.bT,yt],styles:["ngx-flamegraph{display:block}\n"],encapsulation:2,changeDetection:0}),ge})(),Ye=(()=>{class ge{}return ge.\u0275fac=function(Fe){return new(Fe||ge)},ge.\u0275mod=h.$C({type:ge}),ge.\u0275inj=h.G2t({imports:[c.MD]}),ge})()},9549:(Tn,gt,S)=>{"use strict";S.d(gt,{NN:()=>ao,y2:()=>No});var h=S(467),c=S(177),Z=S(4438),Oe=S(1413),U=S(7786),ue=S(7673),oe=S(1584),Xe=S(5558),Je=S(3703),Se=S(3294),Ce=S(2771),Qe=S(8750),Ze=S(7707),qe=S(9974);function Dt(bt,he,...le){if(!0===he)return void bt();if(!1===he)return;const W=new Ze.Ms({next:()=>{W.unsubscribe(),bt()}});return(0,Qe.Tg)(he(...le)).subscribe(W)}var _t=S(9172),Tt=S(6354),yt=S(6977);function ge(bt,he,le){if("function"==typeof bt?bt===he:bt.has(he))return arguments.length<3?he:le;throw new TypeError("Private element is not present on this object")}S(1594);var Ue=S(9842);let xe={async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null};function at(bt){xe=bt}const Rt=/[&<>"']/,vn=new RegExp(Rt.source,"g"),Nt=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,tt=new RegExp(Nt.source,"g"),on={"&":"&","<":"<",">":">",'"':""","'":"'"},dt=bt=>on[bt];function we(bt,he){if(he){if(Rt.test(bt))return bt.replace(vn,dt)}else if(Nt.test(bt))return bt.replace(tt,dt);return bt}const H=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi,fe=/(^|[^\[])\^/g;function se(bt,he){let le="string"==typeof bt?bt:bt.source;he=he||"";const W={replace:($e,Ve)=>{let ot="string"==typeof Ve?Ve:Ve.source;return ot=ot.replace(fe,"$1"),le=le.replace($e,ot),W},getRegex:()=>new RegExp(le,he)};return W}function ve(bt){try{bt=encodeURI(bt).replace(/%25/g,"%")}catch{return null}return bt}const Le={exec:()=>null};function De(bt,he){const W=bt.replace(/\|/g,(Ve,ot,jt)=>{let In=!1,Fn=ot;for(;--Fn>=0&&"\\"===jt[Fn];)In=!In;return In?"|":" |"}).split(/ \|/);let $e=0;if(W[0].trim()||W.shift(),W.length>0&&!W[W.length-1].trim()&&W.pop(),he)if(W.length>he)W.splice(he);else for(;W.length0)return{type:"space",raw:le[0]}}code(he){const le=this.rules.block.code.exec(he);if(le){const W=le[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:le[0],codeBlockStyle:"indented",text:this.options.pedantic?W:Wt(W,"\n")}}}fences(he){const le=this.rules.block.fences.exec(he);if(le){const W=le[0],$e=function rn(bt,he){const le=bt.match(/^(\s+)(?:```)/);if(null===le)return he;const W=le[1];return he.split("\n").map($e=>{const Ve=$e.match(/^\s+/);if(null===Ve)return $e;const[ot]=Ve;return ot.length>=W.length?$e.slice(W.length):$e}).join("\n")}(W,le[3]||"");return{type:"code",raw:W,lang:le[2]?le[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):le[2],text:$e}}}heading(he){const le=this.rules.block.heading.exec(he);if(le){let W=le[2].trim();if(/#$/.test(W)){const $e=Wt(W,"#");(this.options.pedantic||!$e||/ $/.test($e))&&(W=$e.trim())}return{type:"heading",raw:le[0],depth:le[1].length,text:W,tokens:this.lexer.inline(W)}}}hr(he){const le=this.rules.block.hr.exec(he);if(le)return{type:"hr",raw:le[0]}}blockquote(he){const le=this.rules.block.blockquote.exec(he);if(le){let W=le[0].replace(/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,"\n $1");W=Wt(W.replace(/^ *>[ \t]?/gm,""),"\n");const $e=this.lexer.state.top;this.lexer.state.top=!0;const Ve=this.lexer.blockTokens(W);return this.lexer.state.top=$e,{type:"blockquote",raw:le[0],tokens:Ve,text:W}}}list(he){let le=this.rules.block.list.exec(he);if(le){let W=le[1].trim();const $e=W.length>1,Ve={type:"list",raw:"",ordered:$e,start:$e?+W.slice(0,-1):"",loose:!1,items:[]};W=$e?`\\d{1,9}\\${W.slice(-1)}`:`\\${W}`,this.options.pedantic&&(W=$e?W:"[*+-]");const ot=new RegExp(`^( {0,3}${W})((?:[\t ][^\\n]*)?(?:\\n|$))`);let jt="",In="",Fn=!1;for(;he;){let b=!1;if(!(le=ot.exec(he))||this.rules.block.hr.test(he))break;jt=le[0],he=he.substring(jt.length);let j=le[2].split("\n",1)[0].replace(/^\t+/,ni=>" ".repeat(3*ni.length)),re=he.split("\n",1)[0],P=0;this.options.pedantic?(P=2,In=j.trimStart()):(P=le[2].search(/[^ ]/),P=P>4?1:P,In=j.slice(P),P+=le[1].length);let Ee=!1;if(!j&&/^ *$/.test(re)&&(jt+=re+"\n",he=he.substring(re.length+1),b=!0),!b){const ni=new RegExp(`^ {0,${Math.min(3,P-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\n]*)?(?:\\n|$))`),z=new RegExp(`^ {0,${Math.min(3,P-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),me=new RegExp(`^ {0,${Math.min(3,P-1)}}(?:\`\`\`|~~~)`),Ne=new RegExp(`^ {0,${Math.min(3,P-1)}}#`);for(;he;){const et=he.split("\n",1)[0];if(re=et,this.options.pedantic&&(re=re.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),me.test(re)||Ne.test(re)||ni.test(re)||z.test(he))break;if(re.search(/[^ ]/)>=P||!re.trim())In+="\n"+re.slice(P);else{if(Ee||j.search(/[^ ]/)>=4||me.test(j)||Ne.test(j)||z.test(j))break;In+="\n"+re}!Ee&&!re.trim()&&(Ee=!0),jt+=et+"\n",he=he.substring(et.length+1),j=re.slice(P)}}Ve.loose||(Fn?Ve.loose=!0:/\n *\n *$/.test(jt)&&(Fn=!0));let sr,it=null;this.options.gfm&&(it=/^\[[ xX]\] /.exec(In),it&&(sr="[ ] "!==it[0],In=In.replace(/^\[[ xX]\] +/,""))),Ve.items.push({type:"list_item",raw:jt,task:!!it,checked:sr,loose:!1,text:In,tokens:[]}),Ve.raw+=jt}Ve.items[Ve.items.length-1].raw=jt.trimEnd(),Ve.items[Ve.items.length-1].text=In.trimEnd(),Ve.raw=Ve.raw.trimEnd();for(let b=0;b"space"===P.type),re=j.length>0&&j.some(P=>/\n.*\n/.test(P.raw));Ve.loose=re}if(Ve.loose)for(let b=0;b$/,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",Ve=le[3]?le[3].substring(1,le[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):le[3];return{type:"def",tag:W,raw:le[0],href:$e,title:Ve}}}table(he){const le=this.rules.block.table.exec(he);if(!le||!/[:|]/.test(le[2]))return;const W=De(le[1]),$e=le[2].replace(/^\||\| *$/g,"").split("|"),Ve=le[3]&&le[3].trim()?le[3].replace(/\n[ \t]*$/,"").split("\n"):[],ot={type:"table",raw:le[0],header:[],align:[],rows:[]};if(W.length===$e.length){for(const jt of $e)/^ *-+: *$/.test(jt)?ot.align.push("right"):/^ *:-+: *$/.test(jt)?ot.align.push("center"):/^ *:-+ *$/.test(jt)?ot.align.push("left"):ot.align.push(null);for(const jt of W)ot.header.push({text:jt,tokens:this.lexer.inline(jt)});for(const jt of Ve)ot.rows.push(De(jt,ot.header.length).map(In=>({text:In,tokens:this.lexer.inline(In)})));return ot}}lheading(he){const le=this.rules.block.lheading.exec(he);if(le)return{type:"heading",raw:le[0],depth:"="===le[2].charAt(0)?1:2,text:le[1],tokens:this.lexer.inline(le[1])}}paragraph(he){const le=this.rules.block.paragraph.exec(he);if(le){const W="\n"===le[1].charAt(le[1].length-1)?le[1].slice(0,-1):le[1];return{type:"paragraph",raw:le[0],text:W,tokens:this.lexer.inline(W)}}}text(he){const le=this.rules.block.text.exec(he);if(le)return{type:"text",raw:le[0],text:le[0],tokens:this.lexer.inline(le[0])}}escape(he){const le=this.rules.inline.escape.exec(he);if(le)return{type:"escape",raw:le[0],text:we(le[1])}}tag(he){const le=this.rules.inline.tag.exec(he);if(le)return!this.lexer.state.inLink&&/^/i.test(le[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(le[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(le[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:le[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:le[0]}}link(he){const le=this.rules.inline.link.exec(he);if(le){const W=le[2].trim();if(!this.options.pedantic&&/^$/.test(W))return;const ot=Wt(W.slice(0,-1),"\\");if((W.length-ot.length)%2==0)return}else{const ot=function dn(bt,he){if(-1===bt.indexOf(he[1]))return-1;let le=0;for(let W=0;W-1){const In=(0===le[0].indexOf("!")?5:4)+le[1].length+ot;le[2]=le[2].substring(0,ot),le[0]=le[0].substring(0,In).trim(),le[3]=""}}let $e=le[2],Ve="";if(this.options.pedantic){const ot=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec($e);ot&&($e=ot[1],Ve=ot[3])}else Ve=le[3]?le[3].slice(1,-1):"";return $e=$e.trim(),/^$/.test(W)?$e.slice(1):$e.slice(1,-1)),Kt(le,{href:$e&&$e.replace(this.rules.inline.anyPunctuation,"$1"),title:Ve&&Ve.replace(this.rules.inline.anyPunctuation,"$1")},le[0],this.lexer)}}reflink(he,le){let W;if((W=this.rules.inline.reflink.exec(he))||(W=this.rules.inline.nolink.exec(he))){const Ve=le[(W[2]||W[1]).replace(/\s+/g," ").toLowerCase()];if(!Ve){const ot=W[0].charAt(0);return{type:"text",raw:ot,text:ot}}return Kt(W,Ve,W[0],this.lexer)}}emStrong(he,le,W=""){let $e=this.rules.inline.emStrongLDelim.exec(he);if(!(!$e||$e[3]&&W.match(/[0-9A-Za-z\xAA\xB2\xB3\xB5\xB9\xBA\xBC-\xBE\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u0660-\u0669\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0966-\u096F\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09F9\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AE6-\u0AEF\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B6F\u0B71-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0BE6-\u0BF2\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C66-\u0C6F\u0C78-\u0C7E\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D58-\u0D61\u0D66-\u0D78\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DE6-\u0DEF\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F20-\u0F33\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F-\u1049\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u1090-\u1099\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1369-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A20-\u1A54\u1A80-\u1A89\u1A90-\u1A99\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B50-\u1B59\u1B83-\u1BA0\u1BAE-\u1BE5\u1C00-\u1C23\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2070\u2071\u2074-\u2079\u207F-\u2089\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2150-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2CFD\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3192-\u3195\u31A0-\u31BF\u31F0-\u31FF\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA830-\uA835\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uA9E0-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC\u{10000}-\u{1000B}\u{1000D}-\u{10026}\u{10028}-\u{1003A}\u{1003C}\u{1003D}\u{1003F}-\u{1004D}\u{10050}-\u{1005D}\u{10080}-\u{100FA}\u{10107}-\u{10133}\u{10140}-\u{10178}\u{1018A}\u{1018B}\u{10280}-\u{1029C}\u{102A0}-\u{102D0}\u{102E1}-\u{102FB}\u{10300}-\u{10323}\u{1032D}-\u{1034A}\u{10350}-\u{10375}\u{10380}-\u{1039D}\u{103A0}-\u{103C3}\u{103C8}-\u{103CF}\u{103D1}-\u{103D5}\u{10400}-\u{1049D}\u{104A0}-\u{104A9}\u{104B0}-\u{104D3}\u{104D8}-\u{104FB}\u{10500}-\u{10527}\u{10530}-\u{10563}\u{10570}-\u{1057A}\u{1057C}-\u{1058A}\u{1058C}-\u{10592}\u{10594}\u{10595}\u{10597}-\u{105A1}\u{105A3}-\u{105B1}\u{105B3}-\u{105B9}\u{105BB}\u{105BC}\u{10600}-\u{10736}\u{10740}-\u{10755}\u{10760}-\u{10767}\u{10780}-\u{10785}\u{10787}-\u{107B0}\u{107B2}-\u{107BA}\u{10800}-\u{10805}\u{10808}\u{1080A}-\u{10835}\u{10837}\u{10838}\u{1083C}\u{1083F}-\u{10855}\u{10858}-\u{10876}\u{10879}-\u{1089E}\u{108A7}-\u{108AF}\u{108E0}-\u{108F2}\u{108F4}\u{108F5}\u{108FB}-\u{1091B}\u{10920}-\u{10939}\u{10980}-\u{109B7}\u{109BC}-\u{109CF}\u{109D2}-\u{10A00}\u{10A10}-\u{10A13}\u{10A15}-\u{10A17}\u{10A19}-\u{10A35}\u{10A40}-\u{10A48}\u{10A60}-\u{10A7E}\u{10A80}-\u{10A9F}\u{10AC0}-\u{10AC7}\u{10AC9}-\u{10AE4}\u{10AEB}-\u{10AEF}\u{10B00}-\u{10B35}\u{10B40}-\u{10B55}\u{10B58}-\u{10B72}\u{10B78}-\u{10B91}\u{10BA9}-\u{10BAF}\u{10C00}-\u{10C48}\u{10C80}-\u{10CB2}\u{10CC0}-\u{10CF2}\u{10CFA}-\u{10D23}\u{10D30}-\u{10D39}\u{10E60}-\u{10E7E}\u{10E80}-\u{10EA9}\u{10EB0}\u{10EB1}\u{10F00}-\u{10F27}\u{10F30}-\u{10F45}\u{10F51}-\u{10F54}\u{10F70}-\u{10F81}\u{10FB0}-\u{10FCB}\u{10FE0}-\u{10FF6}\u{11003}-\u{11037}\u{11052}-\u{1106F}\u{11071}\u{11072}\u{11075}\u{11083}-\u{110AF}\u{110D0}-\u{110E8}\u{110F0}-\u{110F9}\u{11103}-\u{11126}\u{11136}-\u{1113F}\u{11144}\u{11147}\u{11150}-\u{11172}\u{11176}\u{11183}-\u{111B2}\u{111C1}-\u{111C4}\u{111D0}-\u{111DA}\u{111DC}\u{111E1}-\u{111F4}\u{11200}-\u{11211}\u{11213}-\u{1122B}\u{1123F}\u{11240}\u{11280}-\u{11286}\u{11288}\u{1128A}-\u{1128D}\u{1128F}-\u{1129D}\u{1129F}-\u{112A8}\u{112B0}-\u{112DE}\u{112F0}-\u{112F9}\u{11305}-\u{1130C}\u{1130F}\u{11310}\u{11313}-\u{11328}\u{1132A}-\u{11330}\u{11332}\u{11333}\u{11335}-\u{11339}\u{1133D}\u{11350}\u{1135D}-\u{11361}\u{11400}-\u{11434}\u{11447}-\u{1144A}\u{11450}-\u{11459}\u{1145F}-\u{11461}\u{11480}-\u{114AF}\u{114C4}\u{114C5}\u{114C7}\u{114D0}-\u{114D9}\u{11580}-\u{115AE}\u{115D8}-\u{115DB}\u{11600}-\u{1162F}\u{11644}\u{11650}-\u{11659}\u{11680}-\u{116AA}\u{116B8}\u{116C0}-\u{116C9}\u{11700}-\u{1171A}\u{11730}-\u{1173B}\u{11740}-\u{11746}\u{11800}-\u{1182B}\u{118A0}-\u{118F2}\u{118FF}-\u{11906}\u{11909}\u{1190C}-\u{11913}\u{11915}\u{11916}\u{11918}-\u{1192F}\u{1193F}\u{11941}\u{11950}-\u{11959}\u{119A0}-\u{119A7}\u{119AA}-\u{119D0}\u{119E1}\u{119E3}\u{11A00}\u{11A0B}-\u{11A32}\u{11A3A}\u{11A50}\u{11A5C}-\u{11A89}\u{11A9D}\u{11AB0}-\u{11AF8}\u{11C00}-\u{11C08}\u{11C0A}-\u{11C2E}\u{11C40}\u{11C50}-\u{11C6C}\u{11C72}-\u{11C8F}\u{11D00}-\u{11D06}\u{11D08}\u{11D09}\u{11D0B}-\u{11D30}\u{11D46}\u{11D50}-\u{11D59}\u{11D60}-\u{11D65}\u{11D67}\u{11D68}\u{11D6A}-\u{11D89}\u{11D98}\u{11DA0}-\u{11DA9}\u{11EE0}-\u{11EF2}\u{11F02}\u{11F04}-\u{11F10}\u{11F12}-\u{11F33}\u{11F50}-\u{11F59}\u{11FB0}\u{11FC0}-\u{11FD4}\u{12000}-\u{12399}\u{12400}-\u{1246E}\u{12480}-\u{12543}\u{12F90}-\u{12FF0}\u{13000}-\u{1342F}\u{13441}-\u{13446}\u{14400}-\u{14646}\u{16800}-\u{16A38}\u{16A40}-\u{16A5E}\u{16A60}-\u{16A69}\u{16A70}-\u{16ABE}\u{16AC0}-\u{16AC9}\u{16AD0}-\u{16AED}\u{16B00}-\u{16B2F}\u{16B40}-\u{16B43}\u{16B50}-\u{16B59}\u{16B5B}-\u{16B61}\u{16B63}-\u{16B77}\u{16B7D}-\u{16B8F}\u{16E40}-\u{16E96}\u{16F00}-\u{16F4A}\u{16F50}\u{16F93}-\u{16F9F}\u{16FE0}\u{16FE1}\u{16FE3}\u{17000}-\u{187F7}\u{18800}-\u{18CD5}\u{18D00}-\u{18D08}\u{1AFF0}-\u{1AFF3}\u{1AFF5}-\u{1AFFB}\u{1AFFD}\u{1AFFE}\u{1B000}-\u{1B122}\u{1B132}\u{1B150}-\u{1B152}\u{1B155}\u{1B164}-\u{1B167}\u{1B170}-\u{1B2FB}\u{1BC00}-\u{1BC6A}\u{1BC70}-\u{1BC7C}\u{1BC80}-\u{1BC88}\u{1BC90}-\u{1BC99}\u{1D2C0}-\u{1D2D3}\u{1D2E0}-\u{1D2F3}\u{1D360}-\u{1D378}\u{1D400}-\u{1D454}\u{1D456}-\u{1D49C}\u{1D49E}\u{1D49F}\u{1D4A2}\u{1D4A5}\u{1D4A6}\u{1D4A9}-\u{1D4AC}\u{1D4AE}-\u{1D4B9}\u{1D4BB}\u{1D4BD}-\u{1D4C3}\u{1D4C5}-\u{1D505}\u{1D507}-\u{1D50A}\u{1D50D}-\u{1D514}\u{1D516}-\u{1D51C}\u{1D51E}-\u{1D539}\u{1D53B}-\u{1D53E}\u{1D540}-\u{1D544}\u{1D546}\u{1D54A}-\u{1D550}\u{1D552}-\u{1D6A5}\u{1D6A8}-\u{1D6C0}\u{1D6C2}-\u{1D6DA}\u{1D6DC}-\u{1D6FA}\u{1D6FC}-\u{1D714}\u{1D716}-\u{1D734}\u{1D736}-\u{1D74E}\u{1D750}-\u{1D76E}\u{1D770}-\u{1D788}\u{1D78A}-\u{1D7A8}\u{1D7AA}-\u{1D7C2}\u{1D7C4}-\u{1D7CB}\u{1D7CE}-\u{1D7FF}\u{1DF00}-\u{1DF1E}\u{1DF25}-\u{1DF2A}\u{1E030}-\u{1E06D}\u{1E100}-\u{1E12C}\u{1E137}-\u{1E13D}\u{1E140}-\u{1E149}\u{1E14E}\u{1E290}-\u{1E2AD}\u{1E2C0}-\u{1E2EB}\u{1E2F0}-\u{1E2F9}\u{1E4D0}-\u{1E4EB}\u{1E4F0}-\u{1E4F9}\u{1E7E0}-\u{1E7E6}\u{1E7E8}-\u{1E7EB}\u{1E7ED}\u{1E7EE}\u{1E7F0}-\u{1E7FE}\u{1E800}-\u{1E8C4}\u{1E8C7}-\u{1E8CF}\u{1E900}-\u{1E943}\u{1E94B}\u{1E950}-\u{1E959}\u{1EC71}-\u{1ECAB}\u{1ECAD}-\u{1ECAF}\u{1ECB1}-\u{1ECB4}\u{1ED01}-\u{1ED2D}\u{1ED2F}-\u{1ED3D}\u{1EE00}-\u{1EE03}\u{1EE05}-\u{1EE1F}\u{1EE21}\u{1EE22}\u{1EE24}\u{1EE27}\u{1EE29}-\u{1EE32}\u{1EE34}-\u{1EE37}\u{1EE39}\u{1EE3B}\u{1EE42}\u{1EE47}\u{1EE49}\u{1EE4B}\u{1EE4D}-\u{1EE4F}\u{1EE51}\u{1EE52}\u{1EE54}\u{1EE57}\u{1EE59}\u{1EE5B}\u{1EE5D}\u{1EE5F}\u{1EE61}\u{1EE62}\u{1EE64}\u{1EE67}-\u{1EE6A}\u{1EE6C}-\u{1EE72}\u{1EE74}-\u{1EE77}\u{1EE79}-\u{1EE7C}\u{1EE7E}\u{1EE80}-\u{1EE89}\u{1EE8B}-\u{1EE9B}\u{1EEA1}-\u{1EEA3}\u{1EEA5}-\u{1EEA9}\u{1EEAB}-\u{1EEBB}\u{1F100}-\u{1F10C}\u{1FBF0}-\u{1FBF9}\u{20000}-\u{2A6DF}\u{2A700}-\u{2B739}\u{2B740}-\u{2B81D}\u{2B820}-\u{2CEA1}\u{2CEB0}-\u{2EBE0}\u{2EBF0}-\u{2EE5D}\u{2F800}-\u{2FA1D}\u{30000}-\u{3134A}\u{31350}-\u{323AF}]/u))&&(!$e[1]&&!$e[2]||!W||this.rules.inline.punctuation.exec(W))){const ot=[...$e[0]].length-1;let jt,In,Fn=ot,b=0;const j="*"===$e[0][0]?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(j.lastIndex=0,le=le.slice(-1*he.length+ot);null!=($e=j.exec(le));){if(jt=$e[1]||$e[2]||$e[3]||$e[4]||$e[5]||$e[6],!jt)continue;if(In=[...jt].length,$e[3]||$e[4]){Fn+=In;continue}if(($e[5]||$e[6])&&ot%3&&!((ot+In)%3)){b+=In;continue}if(Fn-=In,Fn>0)continue;In=Math.min(In,In+Fn+b);const re=[...$e[0]][0].length,P=he.slice(0,ot+$e.index+re+In);if(Math.min(ot,In)%2){const it=P.slice(1,-1);return{type:"em",raw:P,text:it,tokens:this.lexer.inlineTokens(it)}}const Ee=P.slice(2,-2);return{type:"strong",raw:P,text:Ee,tokens:this.lexer.inlineTokens(Ee)}}}}codespan(he){const le=this.rules.inline.code.exec(he);if(le){let W=le[2].replace(/\n/g," ");const $e=/[^ ]/.test(W),Ve=/^ /.test(W)&&/ $/.test(W);return $e&&Ve&&(W=W.substring(1,W.length-1)),W=we(W,!0),{type:"codespan",raw:le[0],text:W}}}br(he){const le=this.rules.inline.br.exec(he);if(le)return{type:"br",raw:le[0]}}del(he){const le=this.rules.inline.del.exec(he);if(le)return{type:"del",raw:le[0],text:le[2],tokens:this.lexer.inlineTokens(le[2])}}autolink(he){const le=this.rules.inline.autolink.exec(he);if(le){let W,$e;return"@"===le[2]?(W=we(le[1]),$e="mailto:"+W):(W=we(le[1]),$e=W),{type:"link",raw:le[0],text:W,href:$e,tokens:[{type:"text",raw:W,text:W}]}}}url(he){let le;if(le=this.rules.inline.url.exec(he)){let Ve,ot;if("@"===le[2])Ve=we(le[0]),ot="mailto:"+Ve;else{let jt;do{var W,$e;jt=le[0],le[0]=null!==(W=null===($e=this.rules.inline._backpedal.exec(le[0]))||void 0===$e?void 0:$e[0])&&void 0!==W?W:""}while(jt!==le[0]);Ve=we(le[0]),ot="www."===le[1]?"http://"+le[0]:le[0]}return{type:"link",raw:le[0],text:Ve,href:ot,tokens:[{type:"text",raw:Ve,text:Ve}]}}}inlineText(he){const le=this.rules.inline.text.exec(he);if(le){let W;return W=this.lexer.state.inRawBlock?le[0]:we(le[0]),{type:"text",raw:le[0],text:W}}}}const yr=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,ir=/(?:[*+-]|\d{1,9}[.)])/,nt=se(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,ir).replace(/blockCode/g,/ {4}/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).getRegex(),Ot=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,pn=/(?!\s*\])(?:\\.|[^\[\]\\])+/,gn=se(/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/).replace("label",pn).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Sr=se(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,ir).getRegex(),Mn="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",xn=/|$))/,mn=se("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))","i").replace("comment",xn).replace("tag",Mn).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),en=se(Ot).replace("hr",yr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",Mn).getRegex(),Ir={blockquote:se(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",en).getRegex(),code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,def:gn,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:yr,html:mn,lheading:nt,list:Sr,newline:/^(?: *(?:\n|$))+/,paragraph:en,table:Le,text:/^[^\n]+/},Nr=se("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",yr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",Mn).getRegex(),Qn={...Ir,table:Nr,paragraph:se(Ot).replace("hr",yr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Nr).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",Mn).getRegex()},Dr={...Ir,html:se("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",xn).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Le,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:se(Ot).replace("hr",yr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",nt).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Jn=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,mr=/^( {2,}|\\)\n(?!\s*$)/,Pr="\\p{P}\\p{S}",cr=se(/^((?![*_])[\spunctuation])/,"u").replace(/punctuation/g,Pr).getRegex(),ii=se(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,"u").replace(/punct/g,Pr).getRegex(),Ai=se("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])","gu").replace(/punct/g,Pr).getRegex(),Qr=se("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])","gu").replace(/punct/g,Pr).getRegex(),pe=se(/\\([punct])/,"gu").replace(/punct/g,Pr).getRegex(),rt=se(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),Mt=se(xn).replace("(?:--\x3e|$)","--\x3e").getRegex(),ut=se("^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^").replace("comment",Mt).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),ce=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,ye=se(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",ce).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),He=se(/^!?\[(label)\]\[(ref)\]/).replace("label",ce).replace("ref",pn).getRegex(),Lt=se(/^!?\[(ref)\](?:\[\])?/).replace("ref",pn).getRegex(),ct={_backpedal:Le,anyPunctuation:pe,autolink:rt,blockSkip:/\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g,br:mr,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:Le,emStrongLDelim:ii,emStrongRDelimAst:Ai,emStrongRDelimUnd:Qr,escape:Jn,link:ye,nolink:Lt,punctuation:cr,reflink:He,reflinkSearch:se("reflink|nolink(?!\\()","g").replace("reflink",He).replace("nolink",Lt).getRegex(),tag:ut,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\In+" ".repeat(Fn.length));he;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(jt=>!!(W=jt.call({lexer:this},he,le))&&(he=he.substring(W.raw.length),le.push(W),!0)))){if(W=this.tokenizer.space(he)){he=he.substring(W.raw.length),1===W.raw.length&&le.length>0?le[le.length-1].raw+="\n":le.push(W);continue}if(W=this.tokenizer.code(he)){he=he.substring(W.raw.length),$e=le[le.length-1],!$e||"paragraph"!==$e.type&&"text"!==$e.type?le.push(W):($e.raw+="\n"+W.raw,$e.text+="\n"+W.text,this.inlineQueue[this.inlineQueue.length-1].src=$e.text);continue}if(W=this.tokenizer.fences(he)){he=he.substring(W.raw.length),le.push(W);continue}if(W=this.tokenizer.heading(he)){he=he.substring(W.raw.length),le.push(W);continue}if(W=this.tokenizer.hr(he)){he=he.substring(W.raw.length),le.push(W);continue}if(W=this.tokenizer.blockquote(he)){he=he.substring(W.raw.length),le.push(W);continue}if(W=this.tokenizer.list(he)){he=he.substring(W.raw.length),le.push(W);continue}if(W=this.tokenizer.html(he)){he=he.substring(W.raw.length),le.push(W);continue}if(W=this.tokenizer.def(he)){he=he.substring(W.raw.length),$e=le[le.length-1],!$e||"paragraph"!==$e.type&&"text"!==$e.type?this.tokens.links[W.tag]||(this.tokens.links[W.tag]={href:W.href,title:W.title}):($e.raw+="\n"+W.raw,$e.text+="\n"+W.raw,this.inlineQueue[this.inlineQueue.length-1].src=$e.text);continue}if(W=this.tokenizer.table(he)){he=he.substring(W.raw.length),le.push(W);continue}if(W=this.tokenizer.lheading(he)){he=he.substring(W.raw.length),le.push(W);continue}if(Ve=he,this.options.extensions&&this.options.extensions.startBlock){let jt=1/0;const In=he.slice(1);let Fn;this.options.extensions.startBlock.forEach(b=>{Fn=b.call({lexer:this},In),"number"==typeof Fn&&Fn>=0&&(jt=Math.min(jt,Fn))}),jt<1/0&&jt>=0&&(Ve=he.substring(0,jt+1))}if(this.state.top&&(W=this.tokenizer.paragraph(Ve))){$e=le[le.length-1],ot&&"paragraph"===$e.type?($e.raw+="\n"+W.raw,$e.text+="\n"+W.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=$e.text):le.push(W),ot=Ve.length!==he.length,he=he.substring(W.raw.length);continue}if(W=this.tokenizer.text(he)){he=he.substring(W.raw.length),$e=le[le.length-1],$e&&"text"===$e.type?($e.raw+="\n"+W.raw,$e.text+="\n"+W.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=$e.text):le.push(W);continue}if(he){const jt="Infinite loop on byte: "+he.charCodeAt(0);if(this.options.silent){console.error(jt);break}throw new Error(jt)}}return this.state.top=!0,le}inline(he,le=[]){return this.inlineQueue.push({src:he,tokens:le}),le}inlineTokens(he,le=[]){let W,$e,Ve,jt,In,Fn,ot=he;if(this.tokens.links){const b=Object.keys(this.tokens.links);if(b.length>0)for(;null!=(jt=this.tokenizer.rules.inline.reflinkSearch.exec(ot));)b.includes(jt[0].slice(jt[0].lastIndexOf("[")+1,-1))&&(ot=ot.slice(0,jt.index)+"["+"a".repeat(jt[0].length-2)+"]"+ot.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(jt=this.tokenizer.rules.inline.blockSkip.exec(ot));)ot=ot.slice(0,jt.index)+"["+"a".repeat(jt[0].length-2)+"]"+ot.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(jt=this.tokenizer.rules.inline.anyPunctuation.exec(ot));)ot=ot.slice(0,jt.index)+"++"+ot.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;he;)if(In||(Fn=""),In=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(b=>!!(W=b.call({lexer:this},he,le))&&(he=he.substring(W.raw.length),le.push(W),!0)))){if(W=this.tokenizer.escape(he)){he=he.substring(W.raw.length),le.push(W);continue}if(W=this.tokenizer.tag(he)){he=he.substring(W.raw.length),$e=le[le.length-1],$e&&"text"===W.type&&"text"===$e.type?($e.raw+=W.raw,$e.text+=W.text):le.push(W);continue}if(W=this.tokenizer.link(he)){he=he.substring(W.raw.length),le.push(W);continue}if(W=this.tokenizer.reflink(he,this.tokens.links)){he=he.substring(W.raw.length),$e=le[le.length-1],$e&&"text"===W.type&&"text"===$e.type?($e.raw+=W.raw,$e.text+=W.text):le.push(W);continue}if(W=this.tokenizer.emStrong(he,ot,Fn)){he=he.substring(W.raw.length),le.push(W);continue}if(W=this.tokenizer.codespan(he)){he=he.substring(W.raw.length),le.push(W);continue}if(W=this.tokenizer.br(he)){he=he.substring(W.raw.length),le.push(W);continue}if(W=this.tokenizer.del(he)){he=he.substring(W.raw.length),le.push(W);continue}if(W=this.tokenizer.autolink(he)){he=he.substring(W.raw.length),le.push(W);continue}if(!this.state.inLink&&(W=this.tokenizer.url(he))){he=he.substring(W.raw.length),le.push(W);continue}if(Ve=he,this.options.extensions&&this.options.extensions.startInline){let b=1/0;const j=he.slice(1);let re;this.options.extensions.startInline.forEach(P=>{re=P.call({lexer:this},j),"number"==typeof re&&re>=0&&(b=Math.min(b,re))}),b<1/0&&b>=0&&(Ve=he.substring(0,b+1))}if(W=this.tokenizer.inlineText(Ve)){he=he.substring(W.raw.length),"_"!==W.raw.slice(-1)&&(Fn=W.raw.slice(-1)),In=!0,$e=le[le.length-1],$e&&"text"===$e.type?($e.raw+=W.raw,$e.text+=W.text):le.push(W);continue}if(he){const b="Infinite loop on byte: "+he.charCodeAt(0);if(this.options.silent){console.error(b);break}throw new Error(b)}}return le}}class Cn{constructor(he){(0,Ue.A)(this,"options",void 0),this.options=he||xe}code(he,le,W){var $e;const Ve=null===($e=(le||"").match(/^\S*/))||void 0===$e?void 0:$e[0];return he=he.replace(/\n$/,"")+"\n",Ve?'
'+(W?he:we(he,!0))+"
\n":"
"+(W?he:we(he,!0))+"
\n"}blockquote(he){return`
\n${he}
\n`}html(he,le){return he}heading(he,le,W){return`${he}\n`}hr(){return"
\n"}list(he,le,W){const $e=le?"ol":"ul";return"<"+$e+(le&&1!==W?' start="'+W+'"':"")+">\n"+he+"\n"}listitem(he,le,W){return`
  • ${he}
  • \n`}checkbox(he){return"'}paragraph(he){return`

    ${he}

    \n`}table(he,le){return le&&(le=`${le}`),"\n\n"+he+"\n"+le+"
    \n"}tablerow(he){return`\n${he}\n`}tablecell(he,le){const W=le.header?"th":"td";return(le.align?`<${W} align="${le.align}">`:`<${W}>`)+he+`\n`}strong(he){return`${he}`}em(he){return`${he}`}codespan(he){return`${he}`}br(){return"
    "}del(he){return`${he}`}link(he,le,W){const $e=ve(he);if(null===$e)return W;let Ve='
    ",Ve}image(he,le,W){const $e=ve(he);if(null===$e)return W;let Ve=`${W}"colon"===(le=le.toLowerCase())?":":"#"===le.charAt(0)?"x"===le.charAt(1)?String.fromCharCode(parseInt(le.substring(2),16)):String.fromCharCode(+le.substring(1)):""));continue}case"code":W+=this.renderer.code(Ve.text,Ve.lang,!!Ve.escaped);continue;case"table":{const ot=Ve;let jt="",In="";for(let b=0;b0&&"paragraph"===re.tokens[0].type?(re.tokens[0].text=sr+" "+re.tokens[0].text,re.tokens[0].tokens&&re.tokens[0].tokens.length>0&&"text"===re.tokens[0].tokens[0].type&&(re.tokens[0].tokens[0].text=sr+" "+re.tokens[0].tokens[0].text)):re.tokens.unshift({type:"text",text:sr+" "}):it+=sr+" "}it+=this.parse(re.tokens,Fn),b+=this.renderer.listitem(it,Ee,!!P)}W+=this.renderer.list(b,jt,In);continue}case"html":W+=this.renderer.html(Ve.text,Ve.block);continue;case"paragraph":W+=this.renderer.paragraph(this.parseInline(Ve.tokens));continue;case"text":{let ot=Ve,jt=ot.tokens?this.parseInline(ot.tokens):ot.text;for(;$e+1{const $e={...W},Ve={...this.defaults,...$e};!0===this.defaults.async&&!1===$e.async&&(Ve.silent||console.warn("marked(): The async option was set to true by an extension. The async: false option sent to parse will be ignored."),Ve.async=!0);const ot=ge($r,this,Ri).call(this,!!Ve.silent,!!Ve.async);if(typeof le>"u"||null===le)return ot(new Error("marked(): input parameter is undefined or null"));if("string"!=typeof le)return ot(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(le)+", string expected"));if(Ve.hooks&&(Ve.hooks.options=Ve),Ve.async)return Promise.resolve(Ve.hooks?Ve.hooks.preprocess(le):le).then(jt=>bt(jt,Ve)).then(jt=>Ve.hooks?Ve.hooks.processAllTokens(jt):jt).then(jt=>Ve.walkTokens?Promise.all(this.walkTokens(jt,Ve.walkTokens)).then(()=>jt):jt).then(jt=>he(jt,Ve)).then(jt=>Ve.hooks?Ve.hooks.postprocess(jt):jt).catch(ot);try{Ve.hooks&&(le=Ve.hooks.preprocess(le));let jt=bt(le,Ve);Ve.hooks&&(jt=Ve.hooks.processAllTokens(jt)),Ve.walkTokens&&this.walkTokens(jt,Ve.walkTokens);let In=he(jt,Ve);return Ve.hooks&&(In=Ve.hooks.postprocess(In)),In}catch(jt){return ot(jt)}}}function Ri(bt,he){return le=>{if(le.message+="\nPlease report this to https://github.com/markedjs/marked.",bt){const W="

    An error occurred:

    "+we(le.message+"",!0)+"
    ";return he?Promise.resolve(W):W}if(he)return Promise.reject(le);throw le}}const gi=new class Zr{constructor(...he){(function Ye(bt,he){(function Me(bt,he){if(he.has(bt))throw new TypeError("Cannot initialize the same private elements twice on an object")})(bt,he),he.add(bt)})(this,$r),(0,Ue.A)(this,"defaults",{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}),(0,Ue.A)(this,"options",this.setOptions),(0,Ue.A)(this,"parse",ge($r,this,fr).call(this,hn.lex,Ar.parse)),(0,Ue.A)(this,"parseInline",ge($r,this,fr).call(this,hn.lexInline,Ar.parseInline)),(0,Ue.A)(this,"Parser",Ar),(0,Ue.A)(this,"Renderer",Cn),(0,Ue.A)(this,"TextRenderer",tr),(0,Ue.A)(this,"Lexer",hn),(0,Ue.A)(this,"Tokenizer",Ln),(0,Ue.A)(this,"Hooks",dr),this.use(...he)}walkTokens(he,le){let W=[];for(const Ve of he)switch(W=W.concat(le.call(this,Ve)),Ve.type){case"table":{const ot=Ve;for(const jt of ot.header)W=W.concat(this.walkTokens(jt.tokens,le));for(const jt of ot.rows)for(const In of jt)W=W.concat(this.walkTokens(In.tokens,le));break}case"list":W=W.concat(this.walkTokens(Ve.items,le));break;default:{var $e;const ot=Ve;null!==($e=this.defaults.extensions)&&void 0!==$e&&null!==($e=$e.childTokens)&&void 0!==$e&&$e[ot.type]?this.defaults.extensions.childTokens[ot.type].forEach(jt=>{const In=ot[jt].flat(1/0);W=W.concat(this.walkTokens(In,le))}):ot.tokens&&(W=W.concat(this.walkTokens(ot.tokens,le)))}}return W}use(...he){const le=this.defaults.extensions||{renderers:{},childTokens:{}};return he.forEach(W=>{const $e={...W};if($e.async=this.defaults.async||$e.async||!1,W.extensions&&(W.extensions.forEach(Ve=>{if(!Ve.name)throw new Error("extension name required");if("renderer"in Ve){const ot=le.renderers[Ve.name];le.renderers[Ve.name]=ot?function(...jt){let In=Ve.renderer.apply(this,jt);return!1===In&&(In=ot.apply(this,jt)),In}:Ve.renderer}if("tokenizer"in Ve){if(!Ve.level||"block"!==Ve.level&&"inline"!==Ve.level)throw new Error("extension level must be 'block' or 'inline'");const ot=le[Ve.level];ot?ot.unshift(Ve.tokenizer):le[Ve.level]=[Ve.tokenizer],Ve.start&&("block"===Ve.level?le.startBlock?le.startBlock.push(Ve.start):le.startBlock=[Ve.start]:"inline"===Ve.level&&(le.startInline?le.startInline.push(Ve.start):le.startInline=[Ve.start]))}"childTokens"in Ve&&Ve.childTokens&&(le.childTokens[Ve.name]=Ve.childTokens)}),$e.extensions=le),W.renderer){const Ve=this.defaults.renderer||new Cn(this.defaults);for(const ot in W.renderer){if(!(ot in Ve))throw new Error(`renderer '${ot}' does not exist`);if("options"===ot)continue;const In=W.renderer[ot],Fn=Ve[ot];Ve[ot]=(...b)=>{let j=In.apply(Ve,b);return!1===j&&(j=Fn.apply(Ve,b)),j||""}}$e.renderer=Ve}if(W.tokenizer){const Ve=this.defaults.tokenizer||new Ln(this.defaults);for(const ot in W.tokenizer){if(!(ot in Ve))throw new Error(`tokenizer '${ot}' does not exist`);if(["options","rules","lexer"].includes(ot))continue;const In=W.tokenizer[ot],Fn=Ve[ot];Ve[ot]=(...b)=>{let j=In.apply(Ve,b);return!1===j&&(j=Fn.apply(Ve,b)),j}}$e.tokenizer=Ve}if(W.hooks){const Ve=this.defaults.hooks||new dr;for(const ot in W.hooks){if(!(ot in Ve))throw new Error(`hook '${ot}' does not exist`);if("options"===ot)continue;const In=W.hooks[ot],Fn=Ve[ot];Ve[ot]=dr.passThroughHooks.has(ot)?b=>{if(this.defaults.async)return Promise.resolve(In.call(Ve,b)).then(re=>Fn.call(Ve,re));const j=In.call(Ve,b);return Fn.call(Ve,j)}:(...b)=>{let j=In.apply(Ve,b);return!1===j&&(j=Fn.apply(Ve,b)),j}}$e.hooks=Ve}if(W.walkTokens){const Ve=this.defaults.walkTokens,ot=W.walkTokens;$e.walkTokens=function(jt){let In=[];return In.push(ot.call(this,jt)),Ve&&(In=In.concat(Ve.call(this,jt))),In}}this.defaults={...this.defaults,...$e}}),this}setOptions(he){return this.defaults={...this.defaults,...he},this}lexer(he,le){return hn.lex(he,null!=le?le:this.defaults)}parser(he,le){return Ar.parse(he,null!=le?le:this.defaults)}};function pr(bt,he){return gi.parse(bt,he)}pr.options=pr.setOptions=function(bt){return gi.setOptions(bt),at(pr.defaults=gi.defaults),pr},pr.getDefaults=function Fe(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}},pr.defaults=xe,pr.use=function(...bt){return gi.use(...bt),at(pr.defaults=gi.defaults),pr},pr.walkTokens=function(bt,he){return gi.walkTokens(bt,he)},pr.parseInline=gi.parseInline,pr.Parser=Ar,pr.parser=Ar.parse,pr.Renderer=Cn,pr.TextRenderer=tr,pr.Lexer=hn,pr.lexer=hn.lex,pr.Tokenizer=Ln,pr.Hooks=dr,pr.parse=pr;var Ge=S(1626),At=S(345);const Jt=["*"];let Un=(()=>{var bt;class he{constructor(){this._buttonClick$=new Oe.B,this.copied$=this._buttonClick$.pipe((0,Xe.n)(()=>(0,U.h)((0,ue.of)(!0),(0,oe.O)(3e3).pipe((0,Je.u)(!1)))),(0,Se.F)(),function St(bt,he,le){let W,$e=!1;return bt&&"object"==typeof bt?({bufferSize:W=1/0,windowTime:he=1/0,refCount:$e=!1,scheduler:le}=bt):W=null!=bt?bt:1/0,function ht(bt={}){const{connector:he=(()=>new Oe.B),resetOnError:le=!0,resetOnComplete:W=!0,resetOnRefCountZero:$e=!0}=bt;return Ve=>{let ot,jt,In,Fn=0,b=!1,j=!1;const re=()=>{null==jt||jt.unsubscribe(),jt=void 0},P=()=>{re(),ot=In=void 0,b=j=!1},Ee=()=>{const it=ot;P(),null==it||it.unsubscribe()};return(0,qe.N)((it,sr)=>{Fn++,!j&&!b&&re();const ni=In=null!=In?In:he();sr.add(()=>{Fn--,0===Fn&&!j&&!b&&(jt=Dt(Ee,$e))}),ni.subscribe(sr),!ot&&Fn>0&&(ot=new Ze.Ms({next:z=>ni.next(z),error:z=>{j=!0,re(),jt=Dt(P,le,z),ni.error(z)},complete:()=>{b=!0,re(),jt=Dt(P,W),ni.complete()}}),(0,Qe.Tg)(it).subscribe(ot))})(Ve)}}({connector:()=>new Ce.m(W,he,le),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:$e})}(1)),this.copiedText$=this.copied$.pipe((0,_t.Z)(!1),(0,Tt.T)(W=>W?"Copied":"Copy"))}onCopyToClipboardClick(){this._buttonClick$.next()}}return(bt=he).\u0275fac=function(W){return new(W||bt)},bt.\u0275cmp=Z.VBU({type:bt,selectors:[["markdown-clipboard"]],standalone:!0,features:[Z.aNF],decls:4,vars:7,consts:[[1,"markdown-clipboard-button",3,"click"]],template:function(W,$e){1&W&&(Z.j41(0,"button",0),Z.nI1(1,"async"),Z.bIt("click",function(){return $e.onCopyToClipboardClick()}),Z.EFF(2),Z.nI1(3,"async"),Z.k0s()),2&W&&(Z.AVh("copied",Z.bMT(1,3,$e.copied$)),Z.R7$(2),Z.JRh(Z.bMT(3,5,$e.copiedText$)))},dependencies:[c.Jj],encapsulation:2,changeDetection:0}),he})();const xr=new Z.nKC("CLIPBOARD_OPTIONS");var Or=function(bt){return bt.CommandLine="command-line",bt.LineHighlight="line-highlight",bt.LineNumbers="line-numbers",bt}(Or||{});const zr=new Z.nKC("MARKED_EXTENSIONS"),Tr=new Z.nKC("MARKED_OPTIONS"),mi=new Z.nKC("SECURITY_CONTEXT");let Hn=(()=>{var bt;class he{get options(){return this._options}set options(W){this._options={...this.DEFAULT_MARKED_OPTIONS,...W}}get renderer(){return this.options.renderer}set renderer(W){this.options.renderer=W}constructor(W,$e,Ve,ot,jt,In,Fn){this.clipboardOptions=W,this.extensions=$e,this.platform=ot,this.securityContext=jt,this.http=In,this.sanitizer=Fn,this.DEFAULT_MARKED_OPTIONS={renderer:new Cn},this.DEFAULT_KATEX_OPTIONS={delimiters:[{left:"$$",right:"$$",display:!0},{left:"$",right:"$",display:!1},{left:"\\(",right:"\\)",display:!1},{left:"\\begin{equation}",right:"\\end{equation}",display:!0},{left:"\\begin{align}",right:"\\end{align}",display:!0},{left:"\\begin{alignat}",right:"\\end{alignat}",display:!0},{left:"\\begin{gather}",right:"\\end{gather}",display:!0},{left:"\\begin{CD}",right:"\\end{CD}",display:!0},{left:"\\[",right:"\\]",display:!0}]},this.DEFAULT_MERMAID_OPTIONS={startOnLoad:!1},this.DEFAULT_CLIPBOARD_OPTIONS={buttonComponent:void 0},this.DEFAULT_PARSE_OPTIONS={decodeHtml:!1,inline:!1,emoji:!1,mermaid:!1,markedOptions:void 0,disableSanitizer:!1},this.DEFAULT_RENDER_OPTIONS={clipboard:!1,clipboardOptions:void 0,katex:!1,katexOptions:void 0,mermaid:!1,mermaidOptions:void 0},this._reload$=new Oe.B,this.reload$=this._reload$.asObservable(),this.options=Ve}parse(W,$e=this.DEFAULT_PARSE_OPTIONS){const{decodeHtml:Ve,inline:ot,emoji:jt,mermaid:In,disableSanitizer:Fn}=$e,b={...this.options,...$e.markedOptions},j=b.renderer||this.renderer||new Cn;this.extensions&&(this.renderer=this.extendsRendererForExtensions(j)),In&&(this.renderer=this.extendsRendererForMermaid(j));const re=this.trimIndentation(W),P=Ve?this.decodeHtml(re):re,Ee=jt?this.parseEmoji(P):P,it=this.parseMarked(Ee,b,ot);return(Fn?it:this.sanitizer.sanitize(this.securityContext,it))||""}render(W,$e=this.DEFAULT_RENDER_OPTIONS,Ve){const{clipboard:ot,clipboardOptions:jt,katex:In,katexOptions:Fn,mermaid:b,mermaidOptions:j}=$e;In&&this.renderKatex(W,{...this.DEFAULT_KATEX_OPTIONS,...Fn}),b&&this.renderMermaid(W,{...this.DEFAULT_MERMAID_OPTIONS,...j}),ot&&this.renderClipboard(W,Ve,{...this.DEFAULT_CLIPBOARD_OPTIONS,...this.clipboardOptions,...jt}),this.highlight(W)}reload(){this._reload$.next()}getSource(W){if(!this.http)throw new Error("[ngx-markdown] When using the `src` attribute you *have to* pass the `HttpClient` as a parameter of the `forRoot` method. See README for more information");return this.http.get(W,{responseType:"text"}).pipe((0,Tt.T)($e=>this.handleExtension(W,$e)))}highlight(W){if(!(0,c.UE)(this.platform)||typeof Prism>"u"||typeof Prism.highlightAllUnder>"u")return;W||(W=document);const $e=W.querySelectorAll('pre code:not([class*="language-"])');Array.prototype.forEach.call($e,Ve=>Ve.classList.add("language-none")),Prism.highlightAllUnder(W)}decodeHtml(W){if(!(0,c.UE)(this.platform))return W;const $e=document.createElement("textarea");return $e.innerHTML=W,$e.value}extendsRendererForExtensions(W){var $e;const Ve=W;return!0===Ve.\u0275NgxMarkdownRendererExtendedForExtensions||((null===($e=this.extensions)||void 0===$e?void 0:$e.length)>0&&pr.use(...this.extensions),Ve.\u0275NgxMarkdownRendererExtendedForExtensions=!0),W}extendsRendererForMermaid(W){const $e=W;if(!0===$e.\u0275NgxMarkdownRendererExtendedForMermaid)return W;const Ve=W.code;return W.code=function(ot,jt,In){return"mermaid"===jt?`
    ${ot}
    `:Ve.call(this,ot,jt,In)},$e.\u0275NgxMarkdownRendererExtendedForMermaid=!0,W}handleExtension(W,$e){const Ve=W.lastIndexOf("://"),ot=Ve>-1?W.substring(Ve+4):W,jt=ot.lastIndexOf("/"),In=jt>-1?ot.substring(jt+1).split("?")[0]:"",Fn=In.lastIndexOf("."),b=Fn>-1?In.substring(Fn+1):"";return b&&"md"!==b?"```"+b+"\n"+$e+"\n```":$e}parseMarked(W,$e,Ve=!1){if($e.renderer){const ot={...$e.renderer};delete ot.\u0275NgxMarkdownRendererExtendedForExtensions,delete ot.\u0275NgxMarkdownRendererExtendedForMermaid,delete $e.renderer,pr.use({renderer:ot})}return Ve?pr.parseInline(W,$e):pr.parse(W,$e)}parseEmoji(W){if(!(0,c.UE)(this.platform))return W;if(typeof joypixels>"u"||typeof joypixels.shortnameToUnicode>"u")throw new Error("[ngx-markdown] When using the `emoji` attribute you *have to* include Emoji-Toolkit files to `angular.json` or use imports. See README for more information");return joypixels.shortnameToUnicode(W)}renderKatex(W,$e){if((0,c.UE)(this.platform)){if(typeof katex>"u"||typeof renderMathInElement>"u")throw new Error("[ngx-markdown] When using the `katex` attribute you *have to* include KaTeX files to `angular.json` or use imports. See README for more information");renderMathInElement(W,$e)}}renderClipboard(W,$e,Ve){if(!(0,c.UE)(this.platform))return;if(typeof ClipboardJS>"u")throw new Error("[ngx-markdown] When using the `clipboard` attribute you *have to* include Clipboard files to `angular.json` or use imports. See README for more information");if(!$e)throw new Error("[ngx-markdown] When using the `clipboard` attribute you *have to* provide the `viewContainerRef` parameter to `MarkdownService.render()` function");const{buttonComponent:ot,buttonTemplate:jt}=Ve,In=W.querySelectorAll("pre");for(let Fn=0;Fnre.classList.add("hover"),j.onmouseleave=()=>re.classList.remove("hover"),ot){const it=$e.createComponent(ot);P=it.hostView,it.changeDetectorRef.markForCheck()}else if(jt)P=$e.createEmbeddedView(jt);else{const it=$e.createComponent(Un);P=it.hostView,it.changeDetectorRef.markForCheck()}P.rootNodes.forEach(it=>{re.appendChild(it),Ee=new ClipboardJS(it,{text:()=>b.innerText})}),P.onDestroy(()=>Ee.destroy())}}renderMermaid(W,$e=this.DEFAULT_MERMAID_OPTIONS){if(!(0,c.UE)(this.platform))return;if(typeof mermaid>"u"||typeof mermaid.initialize>"u")throw new Error("[ngx-markdown] When using the `mermaid` attribute you *have to* include Mermaid files to `angular.json` or use imports. See README for more information");const Ve=W.querySelectorAll(".mermaid");0!==Ve.length&&(mermaid.initialize($e),mermaid.run({nodes:Ve}))}trimIndentation(W){if(!W)return"";let $e;return W.split("\n").map(Ve=>{let ot=$e;return Ve.length>0&&(ot=isNaN(ot)?Ve.search(/\S|$/):Math.min(Ve.search(/\S|$/),ot)),isNaN($e)&&($e=ot),ot?Ve.substring(ot):Ve}).join("\n")}}return(bt=he).\u0275fac=function(W){return new(W||bt)(Z.KVO(xr,8),Z.KVO(zr,8),Z.KVO(Tr,8),Z.KVO(Z.Agw),Z.KVO(mi),Z.KVO(Ge.Qq,8),Z.KVO(At.up))},bt.\u0275prov=Z.jDH({token:bt,factory:bt.\u0275fac}),he})(),ao=(()=>{var bt;class he{get disableSanitizer(){return this._disableSanitizer}set disableSanitizer(W){this._disableSanitizer=this.coerceBooleanProperty(W)}get inline(){return this._inline}set inline(W){this._inline=this.coerceBooleanProperty(W)}get clipboard(){return this._clipboard}set clipboard(W){this._clipboard=this.coerceBooleanProperty(W)}get emoji(){return this._emoji}set emoji(W){this._emoji=this.coerceBooleanProperty(W)}get katex(){return this._katex}set katex(W){this._katex=this.coerceBooleanProperty(W)}get mermaid(){return this._mermaid}set mermaid(W){this._mermaid=this.coerceBooleanProperty(W)}get lineHighlight(){return this._lineHighlight}set lineHighlight(W){this._lineHighlight=this.coerceBooleanProperty(W)}get lineNumbers(){return this._lineNumbers}set lineNumbers(W){this._lineNumbers=this.coerceBooleanProperty(W)}get commandLine(){return this._commandLine}set commandLine(W){this._commandLine=this.coerceBooleanProperty(W)}constructor(W,$e,Ve){this.element=W,this.markdownService=$e,this.viewContainerRef=Ve,this.error=new Z.bkB,this.load=new Z.bkB,this.ready=new Z.bkB,this._clipboard=!1,this._commandLine=!1,this._disableSanitizer=!1,this._emoji=!1,this._inline=!1,this._katex=!1,this._lineHighlight=!1,this._lineNumbers=!1,this._mermaid=!1,this.destroyed$=new Oe.B}ngOnChanges(){this.loadContent()}loadContent(){null==this.data?null==this.src||this.handleSrc():this.handleData()}ngAfterViewInit(){!this.data&&!this.src&&this.handleTransclusion(),this.markdownService.reload$.pipe((0,yt.Q)(this.destroyed$)).subscribe(()=>this.loadContent())}ngOnDestroy(){this.destroyed$.next(),this.destroyed$.complete()}render(W,$e=!1){var Ve=this;return(0,h.A)(function*(){const ot={decodeHtml:$e,inline:Ve.inline,emoji:Ve.emoji,mermaid:Ve.mermaid,disableSanitizer:Ve.disableSanitizer},jt={clipboard:Ve.clipboard,clipboardOptions:{buttonComponent:Ve.clipboardButtonComponent,buttonTemplate:Ve.clipboardButtonTemplate},katex:Ve.katex,katexOptions:Ve.katexOptions,mermaid:Ve.mermaid,mermaidOptions:Ve.mermaidOptions},In=yield Ve.markdownService.parse(W,ot);Ve.element.nativeElement.innerHTML=In,Ve.handlePlugins(),Ve.markdownService.render(Ve.element.nativeElement,jt,Ve.viewContainerRef),Ve.ready.emit()})()}coerceBooleanProperty(W){return null!=W&&"false"!=`${String(W)}`}handleData(){this.render(this.data)}handleSrc(){this.markdownService.getSource(this.src).subscribe({next:W=>{this.render(W).then(()=>{this.load.emit(W)})},error:W=>this.error.emit(W)})}handleTransclusion(){this.render(this.element.nativeElement.innerHTML,!0)}handlePlugins(){this.commandLine&&(this.setPluginClass(this.element.nativeElement,Or.CommandLine),this.setPluginOptions(this.element.nativeElement,{dataFilterOutput:this.filterOutput,dataHost:this.host,dataPrompt:this.prompt,dataOutput:this.output,dataUser:this.user})),this.lineHighlight&&this.setPluginOptions(this.element.nativeElement,{dataLine:this.line,dataLineOffset:this.lineOffset}),this.lineNumbers&&(this.setPluginClass(this.element.nativeElement,Or.LineNumbers),this.setPluginOptions(this.element.nativeElement,{dataStart:this.start}))}setPluginClass(W,$e){const Ve=W.querySelectorAll("pre");for(let ot=0;ot{const In=$e[jt];if(In){const Fn=this.toLispCase(jt);Ve.item(ot).setAttribute(Fn,In.toString())}})}toLispCase(W){const $e=W.match(/([A-Z])/g);if(!$e)return W;let Ve=W.toString();for(let ot=0,jt=$e.length;ot{var bt;class he{static forRoot(W){return{ngModule:he,providers:[Ci(W)]}}static forChild(){return{ngModule:he}}}return(bt=he).\u0275fac=function(W){return new(W||bt)},bt.\u0275mod=Z.$C({type:bt}),bt.\u0275inj=Z.G2t({imports:[c.MD]}),he})();var oi;!function(bt){let he;var $e;let le,W;($e=he=bt.SecurityLevel||(bt.SecurityLevel={})).Strict="strict",$e.Loose="loose",$e.Antiscript="antiscript",$e.Sandbox="sandbox",function($e){$e.Base="base",$e.Forest="forest",$e.Dark="dark",$e.Default="default",$e.Neutral="neutral"}(le=bt.Theme||(bt.Theme={})),function($e){$e[$e.Debug=1]="Debug",$e[$e.Info=2]="Info",$e[$e.Warn=3]="Warn",$e[$e.Error=4]="Error",$e[$e.Fatal=5]="Fatal"}(W=bt.LogLevel||(bt.LogLevel={}))}(oi||(oi={}))},467:(Tn,gt,S)=>{"use strict";function h(Z,Oe,U,ue,oe,Xe,Je){try{var Se=Z[Xe](Je),Ce=Se.value}catch(Qe){return void U(Qe)}Se.done?Oe(Ce):Promise.resolve(Ce).then(ue,oe)}function c(Z){return function(){var Oe=this,U=arguments;return new Promise(function(ue,oe){var Xe=Z.apply(Oe,U);function Je(Ce){h(Xe,ue,oe,Je,Se,"next",Ce)}function Se(Ce){h(Xe,ue,oe,Je,Se,"throw",Ce)}Je(void 0)})}}S.d(gt,{A:()=>c})},9842:(Tn,gt,S)=>{"use strict";function h(U){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(ue){return typeof ue}:function(ue){return ue&&"function"==typeof Symbol&&ue.constructor===Symbol&&ue!==Symbol.prototype?"symbol":typeof ue})(U)}function Oe(U,ue,oe){return(ue=function Z(U){var ue=function c(U,ue){if("object"!=h(U)||!U)return U;var oe=U[Symbol.toPrimitive];if(void 0!==oe){var Xe=oe.call(U,ue||"default");if("object"!=h(Xe))return Xe;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===ue?String:Number)(U)}(U,"string");return"symbol"==h(ue)?ue:String(ue)}(ue))in U?Object.defineProperty(U,ue,{value:oe,enumerable:!0,configurable:!0,writable:!0}):U[ue]=oe,U}S.d(gt,{A:()=>Oe})},1635:(Tn,gt,S)=>{"use strict";function Oe(H,X){var fe={};for(var se in H)Object.prototype.hasOwnProperty.call(H,se)&&X.indexOf(se)<0&&(fe[se]=H[se]);if(null!=H&&"function"==typeof Object.getOwnPropertySymbols){var ve=0;for(se=Object.getOwnPropertySymbols(H);ve=0;Wt--)(De=H[Wt])&&(Le=(ve<3?De(Le):ve>3?De(X,fe,Le):De(X,fe))||Le);return ve>3&&Le&&Object.defineProperty(X,fe,Le),Le}function Qe(H,X,fe,se){return new(fe||(fe=Promise))(function(Le,De){function Wt(rn){try{Kt(se.next(rn))}catch(Ln){De(Ln)}}function dn(rn){try{Kt(se.throw(rn))}catch(Ln){De(Ln)}}function Kt(rn){rn.done?Le(rn.value):function ve(Le){return Le instanceof fe?Le:new fe(function(De){De(Le)})}(rn.value).then(Wt,dn)}Kt((se=se.apply(H,X||[])).next())})}function mt(H){return this instanceof mt?(this.v=H,this):new mt(H)}function Me(H,X,fe){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var ve,se=fe.apply(H,X||[]),Le=[];return ve={},De("next"),De("throw"),De("return"),ve[Symbol.asyncIterator]=function(){return this},ve;function De(Zn){se[Zn]&&(ve[Zn]=function(nr){return new Promise(function(er,yr){Le.push([Zn,nr,er,yr])>1||Wt(Zn,nr)})})}function Wt(Zn,nr){try{!function dn(Zn){Zn.value instanceof mt?Promise.resolve(Zn.value.v).then(Kt,rn):Ln(Le[0][2],Zn)}(se[Zn](nr))}catch(er){Ln(Le[0][3],er)}}function Kt(Zn){Wt("next",Zn)}function rn(Zn){Wt("throw",Zn)}function Ln(Zn,nr){Zn(nr),Le.shift(),Le.length&&Wt(Le[0][0],Le[0][1])}}function ge(H){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var fe,X=H[Symbol.asyncIterator];return X?X.call(H):(H=function Dt(H){var X="function"==typeof Symbol&&Symbol.iterator,fe=X&&H[X],se=0;if(fe)return fe.call(H);if(H&&"number"==typeof H.length)return{next:function(){return H&&se>=H.length&&(H=void 0),{value:H&&H[se++],done:!H}}};throw new TypeError(X?"Object is not iterable.":"Symbol.iterator is not defined.")}(H),fe={},se("next"),se("throw"),se("return"),fe[Symbol.asyncIterator]=function(){return this},fe);function se(Le){fe[Le]=H[Le]&&function(De){return new Promise(function(Wt,dn){!function ve(Le,De,Wt,dn){Promise.resolve(dn).then(function(Kt){Le({value:Kt,done:Wt})},De)}(Wt,dn,(De=H[Le](De)).done,De.value)})}}}S.d(gt,{AQ:()=>Me,Cg:()=>U,N3:()=>mt,Tt:()=>Oe,sH:()=>Qe,xN:()=>ge}),"function"==typeof SuppressedError&&SuppressedError}},Tn=>{Tn(Tn.s=63)}]); \ No newline at end of file diff --git a/www/main.b83ac64f5579f4fb.js b/www/main.b83ac64f5579f4fb.js deleted file mode 100644 index eafd572..0000000 --- a/www/main.b83ac64f5579f4fb.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkapp=self.webpackChunkapp||[]).push([[8792],{1076:(Tn,gt,S)=>{"use strict";S.d(gt,{Am:()=>gn,FA:()=>Le,Fy:()=>ge,I9:()=>Sr,Im:()=>ir,Ku:()=>ut,T9:()=>mt,Tj:()=>Tt,Uj:()=>Je,XA:()=>Me,ZQ:()=>Ue,bD:()=>Ot,cY:()=>Ye,eX:()=>X,g:()=>ve,hp:()=>Mn,jZ:()=>Fe,lT:()=>tt,lV:()=>vn,nr:()=>we,sr:()=>Rt,tD:()=>mn,u:()=>Se,yU:()=>yt,zW:()=>H});const Oe=function(ce){const ye=[];let He=0;for(let Lt=0;Lt>6|192,ye[He++]=63&ie|128):55296==(64512&ie)&&Lt+1>18|240,ye[He++]=ie>>12&63|128,ye[He++]=ie>>6&63|128,ye[He++]=63&ie|128):(ye[He++]=ie>>12|224,ye[He++]=ie>>6&63|128,ye[He++]=63&ie|128)}return ye},ue={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(ce,ye){if(!Array.isArray(ce))throw Error("encodeByteArray takes an array as a parameter");this.init_();const He=ye?this.byteToCharMapWebSafe_:this.byteToCharMap_,Lt=[];for(let ie=0;ie>6,tr=63&_n;tn||(tr=64,lt||(Cn=64)),Lt.push(He[ct>>2],He[(3&ct)<<4|Gt>>4],He[Cn],He[tr])}return Lt.join("")},encodeString(ce,ye){return this.HAS_NATIVE_SUPPORT&&!ye?btoa(ce):this.encodeByteArray(Oe(ce),ye)},decodeString(ce,ye){return this.HAS_NATIVE_SUPPORT&&!ye?atob(ce):function(ce){const ye=[];let He=0,Lt=0;for(;He191&&ie<224){const ct=ce[He++];ye[Lt++]=String.fromCharCode((31&ie)<<6|63&ct)}else if(ie>239&&ie<365){const tn=((7&ie)<<18|(63&ce[He++])<<12|(63&ce[He++])<<6|63&ce[He++])-65536;ye[Lt++]=String.fromCharCode(55296+(tn>>10)),ye[Lt++]=String.fromCharCode(56320+(1023&tn))}else{const ct=ce[He++],lt=ce[He++];ye[Lt++]=String.fromCharCode((15&ie)<<12|(63&ct)<<6|63<)}}return ye.join("")}(this.decodeStringToByteArray(ce,ye))},decodeStringToByteArray(ce,ye){this.init_();const He=ye?this.charToByteMapWebSafe_:this.charToByteMap_,Lt=[];for(let ie=0;ie>4),64!==_n&&(Lt.push(Gt<<4&240|_n>>2),64!==hn&&Lt.push(_n<<6&192|hn))}return Lt},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let ce=0;ce=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(ce)]=ce,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(ce)]=ce)}}};class oe extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}const Je=function(ce){return function(ce){const ye=Oe(ce);return ue.encodeByteArray(ye,!0)}(ce).replace(/\./g,"")},Se=function(ce){try{return ue.decodeString(ce,!0)}catch(ye){console.error("base64Decode failed: ",ye)}return null},_t=()=>{try{return function qe(){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 ce=process.env.__FIREBASE_DEFAULTS__;return ce?JSON.parse(ce):void 0})()||(()=>{if(typeof document>"u")return;let ce;try{ce=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch{return}const ye=ce&&Se(ce[1]);return ye&&JSON.parse(ye)})()}catch(ce){return void console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${ce}`)}},Tt=ce=>{var ye,He;return null===(He=null===(ye=_t())||void 0===ye?void 0:ye.emulatorHosts)||void 0===He?void 0:He[ce]},yt=ce=>{const ye=Tt(ce);if(!ye)return;const He=ye.lastIndexOf(":");if(He<=0||He+1===ye.length)throw new Error(`Invalid host ${ye} with no separate hostname and port!`);const Lt=parseInt(ye.substring(He+1),10);return"["===ye[0]?[ye.substring(1,He-1),Lt]:[ye.substring(0,He),Lt]},mt=()=>{var ce;return null===(ce=_t())||void 0===ce?void 0:ce.config},Me=ce=>{var ye;return null===(ye=_t())||void 0===ye?void 0:ye[`_${ce}`]};class Ye{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((ye,He)=>{this.resolve=ye,this.reject=He})}wrapCallback(ye){return(He,Lt)=>{He?this.reject(He):this.resolve(Lt),"function"==typeof ye&&(this.promise.catch(()=>{}),1===ye.length?ye(He):ye(He,Lt))}}}function ge(ce,ye){if(ce.uid)throw new Error('The "uid" field is no longer supported by mockUserToken. Please use "sub" instead for Firebase Auth User ID.');const Lt=ye||"demo-project",ie=ce.iat||0,ct=ce.sub||ce.user_id;if(!ct)throw new Error("mockUserToken must contain 'sub' or 'user_id' field!");const lt=Object.assign({iss:`https://securetoken.google.com/${Lt}`,aud:Lt,iat:ie,exp:ie+3600,auth_time:ie,sub:ct,user_id:ct,firebase:{sign_in_provider:"custom",identities:{}}},ce);return[Je(JSON.stringify({alg:"none",type:"JWT"})),Je(JSON.stringify(lt)),""].join(".")}function Ue(){return typeof navigator<"u"&&"string"==typeof navigator.userAgent?navigator.userAgent:""}function Fe(){return typeof window<"u"&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(Ue())}function Rt(){const ce="object"==typeof chrome?chrome.runtime:"object"==typeof browser?browser.runtime:void 0;return"object"==typeof ce&&void 0!==ce.id}function vn(){return"object"==typeof navigator&&"ReactNative"===navigator.product}function tt(){const ce=Ue();return ce.indexOf("MSIE ")>=0||ce.indexOf("Trident/")>=0}function we(){return!function xe(){var ce;const ye=null===(ce=_t())||void 0===ce?void 0:ce.forceEnvironment;if("node"===ye)return!0;if("browser"===ye)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 H(){try{return"object"==typeof indexedDB}catch{return!1}}function X(){return new Promise((ce,ye)=>{try{let He=!0;const Lt="validate-browser-context-for-indexeddb-analytics-module",ie=self.indexedDB.open(Lt);ie.onsuccess=()=>{ie.result.close(),He||self.indexedDB.deleteDatabase(Lt),ce(!0)},ie.onupgradeneeded=()=>{He=!1},ie.onerror=()=>{var ct;ye((null===(ct=ie.error)||void 0===ct?void 0:ct.message)||"")}}catch(He){ye(He)}})}class ve extends Error{constructor(ye,He,Lt){super(He),this.code=ye,this.customData=Lt,this.name="FirebaseError",Object.setPrototypeOf(this,ve.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,Le.prototype.create)}}class Le{constructor(ye,He,Lt){this.service=ye,this.serviceName=He,this.errors=Lt}create(ye,...He){const Lt=He[0]||{},ie=`${this.service}/${ye}`,ct=this.errors[ye],lt=ct?function De(ce,ye){return ce.replace(Wt,(He,Lt)=>{const ie=ye[Lt];return null!=ie?String(ie):`<${Lt}?>`})}(ct,Lt):"Error";return new ve(ie,`${this.serviceName}: ${lt} (${ie}).`,Lt)}}const Wt=/\{\$([^}]+)}/g;function ir(ce){for(const ye in ce)if(Object.prototype.hasOwnProperty.call(ce,ye))return!1;return!0}function Ot(ce,ye){if(ce===ye)return!0;const He=Object.keys(ce),Lt=Object.keys(ye);for(const ie of He){if(!Lt.includes(ie))return!1;const ct=ce[ie],lt=ye[ie];if(zt(ct)&&zt(lt)){if(!Ot(ct,lt))return!1}else if(ct!==lt)return!1}for(const ie of Lt)if(!He.includes(ie))return!1;return!0}function zt(ce){return null!==ce&&"object"==typeof ce}function gn(ce){const ye=[];for(const[He,Lt]of Object.entries(ce))Array.isArray(Lt)?Lt.forEach(ie=>{ye.push(encodeURIComponent(He)+"="+encodeURIComponent(ie))}):ye.push(encodeURIComponent(He)+"="+encodeURIComponent(Lt));return ye.length?"&"+ye.join("&"):""}function Sr(ce){const ye={};return ce.replace(/^\?/,"").split("&").forEach(Lt=>{if(Lt){const[ie,ct]=Lt.split("=");ye[decodeURIComponent(ie)]=decodeURIComponent(ct)}}),ye}function Mn(ce){const ye=ce.indexOf("?");if(!ye)return"";const He=ce.indexOf("#",ye);return ce.substring(ye,He>0?He:void 0)}function mn(ce,ye){const He=new en(ce,ye);return He.subscribe.bind(He)}class en{constructor(ye,He){this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Promise.resolve(),this.finalized=!1,this.onNoObservers=He,this.task.then(()=>{ye(this)}).catch(Lt=>{this.error(Lt)})}next(ye){this.forEachObserver(He=>{He.next(ye)})}error(ye){this.forEachObserver(He=>{He.error(ye)}),this.close(ye)}complete(){this.forEachObserver(ye=>{ye.complete()}),this.close()}subscribe(ye,He,Lt){let ie;if(void 0===ye&&void 0===He&&void 0===Lt)throw new Error("Missing Observer.");ie=function Ir(ce,ye){if("object"!=typeof ce||null===ce)return!1;for(const He of ye)if(He in ce&&"function"==typeof ce[He])return!0;return!1}(ye,["next","error","complete"])?ye:{next:ye,error:He,complete:Lt},void 0===ie.next&&(ie.next=Nr),void 0===ie.error&&(ie.error=Nr),void 0===ie.complete&&(ie.complete=Nr);const ct=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then(()=>{try{this.finalError?ie.error(this.finalError):ie.complete()}catch{}}),this.observers.push(ie),ct}unsubscribeOne(ye){void 0===this.observers||void 0===this.observers[ye]||(delete this.observers[ye],this.observerCount-=1,0===this.observerCount&&void 0!==this.onNoObservers&&this.onNoObservers(this))}forEachObserver(ye){if(!this.finalized)for(let He=0;He{if(void 0!==this.observers&&void 0!==this.observers[ye])try{He(this.observers[ye])}catch(Lt){typeof console<"u"&&console.error&&console.error(Lt)}})}close(ye){this.finalized||(this.finalized=!0,void 0!==ye&&(this.finalError=ye),this.task.then(()=>{this.observers=void 0,this.onNoObservers=void 0}))}}function Nr(){}function ut(ce){return ce&&ce._delegate?ce._delegate:ce}},4442:(Tn,gt,S)=>{"use strict";S.d(gt,{L:()=>U,a:()=>ue,b:()=>oe,c:()=>Xe,d:()=>Je,g:()=>dt}),S(5531);const U="ionViewWillEnter",ue="ionViewDidEnter",oe="ionViewWillLeave",Xe="ionViewDidLeave",Je="ionViewWillUnload",dt=we=>we.classList.contains("ion-page")?we:we.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")||we},5531:(Tn,gt,S)=>{"use strict";S.d(gt,{a:()=>Se,c:()=>c,g:()=>Je});class h{constructor(){this.m=new Map}reset(we){this.m=new Map(Object.entries(we))}get(we,H){const X=this.m.get(we);return void 0!==X?X:H}getBoolean(we,H=!1){const X=this.m.get(we);return void 0===X?H:"string"==typeof X?"true"===X:!!X}getNumber(we,H){const X=parseFloat(this.m.get(we));return isNaN(X)?void 0!==H?H:NaN:X}set(we,H){this.m.set(we,H)}}const c=new h,Je=dt=>Ce(dt),Se=(dt,we)=>("string"==typeof dt&&(we=dt,dt=void 0),Je(dt).includes(we)),Ce=(dt=window)=>{if(typeof dt>"u")return[];dt.Ionic=dt.Ionic||{};let we=dt.Ionic.platforms;return null==we&&(we=dt.Ionic.platforms=Qe(dt),we.forEach(H=>dt.document.documentElement.classList.add(`plt-${H}`))),we},Qe=dt=>{const we=c.get("platform");return Object.keys(vn).filter(H=>{const X=null==we?void 0:we[H];return"function"==typeof X?X(dt):vn[H](dt)})},qe=dt=>!!(at(dt,/iPad/i)||at(dt,/Macintosh/i)&&mt(dt)),St=dt=>at(dt,/android|sink/i),mt=dt=>Rt(dt,"(any-pointer:coarse)"),Ye=dt=>ge(dt)||Ue(dt),ge=dt=>!!(dt.cordova||dt.phonegap||dt.PhoneGap),Ue=dt=>{const we=dt.Capacitor;return!(null==we||!we.isNative)},at=(dt,we)=>we.test(dt.navigator.userAgent),Rt=(dt,we)=>{var H;return null===(H=dt.matchMedia)||void 0===H?void 0:H.call(dt,we).matches},vn={ipad:qe,iphone:dt=>at(dt,/iPhone/i),ios:dt=>at(dt,/iPhone|iPod/i)||qe(dt),android:St,phablet:dt=>{const we=dt.innerWidth,H=dt.innerHeight,X=Math.min(we,H),fe=Math.max(we,H);return X>390&&X<520&&fe>620&&fe<800},tablet:dt=>{const we=dt.innerWidth,H=dt.innerHeight,X=Math.min(we,H),fe=Math.max(we,H);return qe(dt)||(dt=>St(dt)&&!at(dt,/mobile/i))(dt)||X>460&&X<820&&fe>780&&fe<1400},cordova:ge,capacitor:Ue,electron:dt=>at(dt,/electron/i),pwa:dt=>{var we;return!!(null!==(we=dt.matchMedia)&&void 0!==we&&we.call(dt,"(display-mode: standalone)").matches||dt.navigator.standalone)},mobile:mt,mobileweb:dt=>mt(dt)&&!Ye(dt),desktop:dt=>!mt(dt),hybrid:Ye}},9986:(Tn,gt,S)=>{"use strict";S.d(gt,{c:()=>ue});var h=S(8476);let c;const Oe=(oe,Xe,Je)=>{const Se=Xe.startsWith("animation")?(oe=>(void 0===c&&(c=void 0===oe.style.animationName&&void 0!==oe.style.webkitAnimationName?"-webkit-":""),c))(oe):"";oe.style.setProperty(Se+Xe,Je)},U=(oe=[],Xe)=>{if(void 0!==Xe){const Je=Array.isArray(Xe)?Xe:[Xe];return[...oe,...Je]}return oe},ue=oe=>{let Xe,Je,Se,Ce,Qe,Ze,_t,Fe,xe,at,tt,qe=[],ht=[],Dt=[],St=!1,Tt={},yt=[],mt=[],Me={},Ye=0,ge=!1,Ue=!1,Rt=!0,vn=!1,Nt=!0,on=!1;const dt=oe,we=[],H=[],X=[],fe=[],se=[],ve=[],Le=[],De=[],Wt=[],dn=[],Kt=[],rn="function"==typeof AnimationEffect||void 0!==h.w&&"function"==typeof h.w.AnimationEffect,Ln="function"==typeof Element&&"function"==typeof Element.prototype.animate&&rn,Zn=()=>Kt,ir=(x,ne)=>{const Te=ne.findIndex(Ge=>Ge.c===x);Te>-1&&ne.splice(Te,1)},Ot=(x,ne)=>((null!=ne&&ne.oneTimeCallback?H:we).push({c:x,o:ne}),tt),pn=()=>{Ln&&(Kt.forEach(x=>{x.cancel()}),Kt.length=0)},gn=()=>{ve.forEach(x=>{null!=x&&x.parentNode&&x.parentNode.removeChild(x)}),ve.length=0},mr=()=>void 0!==Qe?Qe:_t?_t.getFill():"both",ur=()=>void 0!==Fe?Fe:void 0!==Ze?Ze:_t?_t.getDirection():"normal",Pr=()=>ge?"linear":void 0!==Se?Se:_t?_t.getEasing():"linear",cr=()=>Ue?0:void 0!==xe?xe:void 0!==Je?Je:_t?_t.getDuration():0,kr=()=>void 0!==Ce?Ce:_t?_t.getIterations():1,ii=()=>void 0!==at?at:void 0!==Xe?Xe:_t?_t.getDelay():0,tn=()=>{0!==Ye&&(Ye--,0===Ye&&((()=>{Wt.forEach(At=>At()),dn.forEach(At=>At());const x=Rt?1:0,ne=yt,Te=mt,Ge=Me;fe.forEach(At=>{const Jt=At.classList;ne.forEach(ln=>Jt.add(ln)),Te.forEach(ln=>Jt.remove(ln));for(const ln in Ge)Ge.hasOwnProperty(ln)&&Oe(At,ln,Ge[ln])}),xe=void 0,Fe=void 0,at=void 0,we.forEach(At=>At.c(x,tt)),H.forEach(At=>At.c(x,tt)),H.length=0,Nt=!0,Rt&&(vn=!0),Rt=!0})(),_t&&_t.animationFinish()))},qn=()=>{(()=>{Le.forEach(Ge=>Ge()),De.forEach(Ge=>Ge());const x=ht,ne=Dt,Te=Tt;fe.forEach(Ge=>{const At=Ge.classList;x.forEach(Jt=>At.add(Jt)),ne.forEach(Jt=>At.remove(Jt));for(const Jt in Te)Te.hasOwnProperty(Jt)&&Oe(Ge,Jt,Te[Jt])})})(),qe.length>0&&Ln&&(fe.forEach(x=>{const ne=x.animate(qe,{id:dt,delay:ii(),duration:cr(),easing:Pr(),iterations:kr(),fill:mr(),direction:ur()});ne.pause(),Kt.push(ne)}),Kt.length>0&&(Kt[0].onfinish=()=>{tn()})),St=!0},hn=x=>{x=Math.min(Math.max(x,0),.9999),Ln&&Kt.forEach(ne=>{ne.currentTime=ne.effect.getComputedTiming().delay+cr()*x,ne.pause()})},Cn=x=>{Kt.forEach(ne=>{ne.effect.updateTiming({delay:ii(),duration:cr(),easing:Pr(),iterations:kr(),fill:mr(),direction:ur()})}),void 0!==x&&hn(x)},tr=(x=!1,ne=!0,Te)=>(x&&se.forEach(Ge=>{Ge.update(x,ne,Te)}),Ln&&Cn(Te),tt),Zr=()=>{St&&(Ln?Kt.forEach(x=>{x.pause()}):fe.forEach(x=>{Oe(x,"animation-play-state","paused")}),on=!0)},Ut=x=>new Promise(ne=>{null!=x&&x.sync&&(Ue=!0,Ot(()=>Ue=!1,{oneTimeCallback:!0})),St||qn(),vn&&(Ln&&(hn(0),Cn()),vn=!1),Nt&&(Ye=se.length+1,Nt=!1);const Te=()=>{ir(Ge,H),ne()},Ge=()=>{ir(Te,X),ne()};Ot(Ge,{oneTimeCallback:!0}),((x,ne)=>{X.push({c:x,o:{oneTimeCallback:!0}})})(Te),se.forEach(At=>{At.play()}),Ln?(Kt.forEach(x=>{x.play()}),(0===qe.length||0===fe.length)&&tn()):tn(),on=!1}),ee=(x,ne)=>{const Te=qe[0];return void 0===Te||void 0!==Te.offset&&0!==Te.offset?qe=[{offset:0,[x]:ne},...qe]:Te[x]=ne,tt};return tt={parentAnimation:_t,elements:fe,childAnimations:se,id:dt,animationFinish:tn,from:ee,to:(x,ne)=>{const Te=qe[qe.length-1];return void 0===Te||void 0!==Te.offset&&1!==Te.offset?qe=[...qe,{offset:1,[x]:ne}]:Te[x]=ne,tt},fromTo:(x,ne,Te)=>ee(x,ne).to(x,Te),parent:x=>(_t=x,tt),play:Ut,pause:()=>(se.forEach(x=>{x.pause()}),Zr(),tt),stop:()=>{se.forEach(x=>{x.stop()}),St&&(pn(),St=!1),ge=!1,Ue=!1,Nt=!0,Fe=void 0,xe=void 0,at=void 0,Ye=0,vn=!1,Rt=!0,on=!1,X.forEach(x=>x.c(0,tt)),X.length=0},destroy:x=>(se.forEach(ne=>{ne.destroy(x)}),(x=>{pn(),x&&gn()})(x),fe.length=0,se.length=0,qe.length=0,we.length=0,H.length=0,St=!1,Nt=!0,tt),keyframes:x=>{const ne=qe!==x;return qe=x,ne&&(x=>{Ln&&Zn().forEach(ne=>{const Te=ne.effect;if(Te.setKeyframes)Te.setKeyframes(x);else{const Ge=new KeyframeEffect(Te.target,x,Te.getTiming());ne.effect=Ge}})})(qe),tt},addAnimation:x=>{if(null!=x)if(Array.isArray(x))for(const ne of x)ne.parent(tt),se.push(ne);else x.parent(tt),se.push(x);return tt},addElement:x=>{if(null!=x)if(1===x.nodeType)fe.push(x);else if(x.length>=0)for(let ne=0;ne(Qe=x,tr(!0),tt),direction:x=>(Ze=x,tr(!0),tt),iterations:x=>(Ce=x,tr(!0),tt),duration:x=>(!Ln&&0===x&&(x=1),Je=x,tr(!0),tt),easing:x=>(Se=x,tr(!0),tt),delay:x=>(Xe=x,tr(!0),tt),getWebAnimations:Zn,getKeyframes:()=>qe,getFill:mr,getDirection:ur,getDelay:ii,getIterations:kr,getEasing:Pr,getDuration:cr,afterAddRead:x=>(Wt.push(x),tt),afterAddWrite:x=>(dn.push(x),tt),afterClearStyles:(x=[])=>{for(const ne of x)Me[ne]="";return tt},afterStyles:(x={})=>(Me=x,tt),afterRemoveClass:x=>(mt=U(mt,x),tt),afterAddClass:x=>(yt=U(yt,x),tt),beforeAddRead:x=>(Le.push(x),tt),beforeAddWrite:x=>(De.push(x),tt),beforeClearStyles:(x=[])=>{for(const ne of x)Tt[ne]="";return tt},beforeStyles:(x={})=>(Tt=x,tt),beforeRemoveClass:x=>(Dt=U(Dt,x),tt),beforeAddClass:x=>(ht=U(ht,x),tt),onFinish:Ot,isRunning:()=>0!==Ye&&!on,progressStart:(x=!1,ne)=>(se.forEach(Te=>{Te.progressStart(x,ne)}),Zr(),ge=x,St||qn(),tr(!1,!0,ne),tt),progressStep:x=>(se.forEach(ne=>{ne.progressStep(x)}),hn(x),tt),progressEnd:(x,ne,Te)=>(ge=!1,se.forEach(Ge=>{Ge.progressEnd(x,ne,Te)}),void 0!==Te&&(xe=Te),vn=!1,Rt=!0,0===x?(Fe="reverse"===ur()?"normal":"reverse","reverse"===Fe&&(Rt=!1),Ln?(tr(),hn(1-ne)):(at=(1-ne)*cr()*-1,tr(!1,!1))):1===x&&(Ln?(tr(),hn(ne)):(at=ne*cr()*-1,tr(!1,!1))),void 0!==x&&!_t&&Ut(),tt)}}},464:(Tn,gt,S)=>{"use strict";S.d(gt,{E:()=>Se,a:()=>h,s:()=>Xe});const h=Ce=>{try{if(Ce instanceof oe)return Ce.value;if(!Oe()||"string"!=typeof Ce||""===Ce)return Ce;if(Ce.includes("onload="))return"";const Qe=document.createDocumentFragment(),Ze=document.createElement("div");Qe.appendChild(Ze),Ze.innerHTML=Ce,ue.forEach(St=>{const _t=Qe.querySelectorAll(St);for(let Tt=_t.length-1;Tt>=0;Tt--){const yt=_t[Tt];yt.parentNode?yt.parentNode.removeChild(yt):Qe.removeChild(yt);const mt=Z(yt);for(let Me=0;Me{if(Ce.nodeType&&1!==Ce.nodeType)return;if(typeof NamedNodeMap<"u"&&!(Ce.attributes instanceof NamedNodeMap))return void Ce.remove();for(let Ze=Ce.attributes.length-1;Ze>=0;Ze--){const qe=Ce.attributes.item(Ze),ht=qe.name;if(!U.includes(ht.toLowerCase())){Ce.removeAttribute(ht);continue}const Dt=qe.value,St=Ce[ht];(null!=Dt&&Dt.toLowerCase().includes("javascript:")||null!=St&&St.toLowerCase().includes("javascript:"))&&Ce.removeAttribute(ht)}const Qe=Z(Ce);for(let Ze=0;Zenull!=Ce.children?Ce.children:Ce.childNodes,Oe=()=>{var Ce;const Qe=window,Ze=null===(Ce=null==Qe?void 0:Qe.Ionic)||void 0===Ce?void 0:Ce.config;return!Ze||(Ze.get?Ze.get("sanitizerEnabled",!0):!0===Ze.sanitizerEnabled||void 0===Ze.sanitizerEnabled)},U=["class","id","href","src","name","slot"],ue=["script","style","iframe","meta","link","object","embed"];class oe{constructor(Qe){this.value=Qe}}const Xe=Ce=>{const Qe=window,Ze=Qe.Ionic;if(!Ze||!Ze.config||"Object"===Ze.config.constructor.name)return Qe.Ionic=Qe.Ionic||{},Qe.Ionic.config=Object.assign(Object.assign({},Qe.Ionic.config),Ce),Qe.Ionic.config},Se=!1},8621:(Tn,gt,S)=>{"use strict";S.d(gt,{C:()=>U,a:()=>Z,d:()=>Oe});var h=S(467),c=S(4920);const Z=function(){var ue=(0,h.A)(function*(oe,Xe,Je,Se,Ce,Qe){var Ze;if(oe)return oe.attachViewToDom(Xe,Je,Ce,Se);if(!(Qe||"string"==typeof Je||Je instanceof HTMLElement))throw new Error("framework delegate is missing");const qe="string"==typeof Je?null===(Ze=Xe.ownerDocument)||void 0===Ze?void 0:Ze.createElement(Je):Je;return Se&&Se.forEach(ht=>qe.classList.add(ht)),Ce&&Object.assign(qe,Ce),Xe.appendChild(qe),yield new Promise(ht=>(0,c.c)(qe,ht)),qe});return function(Xe,Je,Se,Ce,Qe,Ze){return ue.apply(this,arguments)}}(),Oe=(ue,oe)=>{if(oe){if(ue)return ue.removeViewFromDom(oe.parentElement,oe);oe.remove()}return Promise.resolve()},U=()=>{let ue,oe;return{attachViewToDom:function(){var Se=(0,h.A)(function*(Ce,Qe,Ze={},qe=[]){var ht,Dt;let St;if(ue=Ce,Qe){const Tt="string"==typeof Qe?null===(ht=ue.ownerDocument)||void 0===ht?void 0:ht.createElement(Qe):Qe;qe.forEach(yt=>Tt.classList.add(yt)),Object.assign(Tt,Ze),ue.appendChild(Tt),St=Tt,yield new Promise(yt=>(0,c.c)(Tt,yt))}else if(ue.children.length>0&&("ION-MODAL"===ue.tagName||"ION-POPOVER"===ue.tagName)&&!(St=ue.children[0]).classList.contains("ion-delegate-host")){const yt=null===(Dt=ue.ownerDocument)||void 0===Dt?void 0:Dt.createElement("div");yt.classList.add("ion-delegate-host"),qe.forEach(mt=>yt.classList.add(mt)),yt.append(...ue.children),ue.appendChild(yt),St=yt}const _t=document.querySelector("ion-app")||document.body;return oe=document.createComment("ionic teleport"),ue.parentNode.insertBefore(oe,ue),_t.appendChild(ue),null!=St?St:ue});return function(Qe,Ze){return Se.apply(this,arguments)}}(),removeViewFromDom:()=>(ue&&oe&&(oe.parentNode.insertBefore(ue,oe),oe.remove()),Promise.resolve())}}},1970:(Tn,gt,S)=>{"use strict";S.d(gt,{B:()=>Oe,G:()=>U});class c{constructor(oe,Xe,Je,Se,Ce){this.id=Xe,this.name=Je,this.disableScroll=Ce,this.priority=1e6*Se+Xe,this.ctrl=oe}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 oe=this.ctrl.capture(this.name,this.id,this.priority);return oe&&this.disableScroll&&this.ctrl.disableScroll(this.id),oe}release(){this.ctrl&&(this.ctrl.release(this.id),this.disableScroll&&this.ctrl.enableScroll(this.id))}destroy(){this.release(),this.ctrl=void 0}}class Z{constructor(oe,Xe,Je,Se){this.id=Xe,this.disable=Je,this.disableScroll=Se,this.ctrl=oe}block(){if(this.ctrl){if(this.disable)for(const oe of this.disable)this.ctrl.disableGesture(oe,this.id);this.disableScroll&&this.ctrl.disableScroll(this.id)}}unblock(){if(this.ctrl){if(this.disable)for(const oe of this.disable)this.ctrl.enableGesture(oe,this.id);this.disableScroll&&this.ctrl.enableScroll(this.id)}}destroy(){this.unblock(),this.ctrl=void 0}}const Oe="backdrop-no-scroll",U=new class h{constructor(){this.gestureId=0,this.requestedStart=new Map,this.disabledGestures=new Map,this.disabledScroll=new Set}createGesture(oe){var Xe;return new c(this,this.newID(),oe.name,null!==(Xe=oe.priority)&&void 0!==Xe?Xe:0,!!oe.disableScroll)}createBlocker(oe={}){return new Z(this,this.newID(),oe.disable,!!oe.disableScroll)}start(oe,Xe,Je){return this.canStart(oe)?(this.requestedStart.set(Xe,Je),!0):(this.requestedStart.delete(Xe),!1)}capture(oe,Xe,Je){if(!this.start(oe,Xe,Je))return!1;const Se=this.requestedStart;let Ce=-1e4;if(Se.forEach(Qe=>{Ce=Math.max(Ce,Qe)}),Ce===Je){this.capturedId=Xe,Se.clear();const Qe=new CustomEvent("ionGestureCaptured",{detail:{gestureName:oe}});return document.dispatchEvent(Qe),!0}return Se.delete(Xe),!1}release(oe){this.requestedStart.delete(oe),this.capturedId===oe&&(this.capturedId=void 0)}disableGesture(oe,Xe){let Je=this.disabledGestures.get(oe);void 0===Je&&(Je=new Set,this.disabledGestures.set(oe,Je)),Je.add(Xe)}enableGesture(oe,Xe){const Je=this.disabledGestures.get(oe);void 0!==Je&&Je.delete(Xe)}disableScroll(oe){this.disabledScroll.add(oe),1===this.disabledScroll.size&&document.body.classList.add(Oe)}enableScroll(oe){this.disabledScroll.delete(oe),0===this.disabledScroll.size&&document.body.classList.remove(Oe)}canStart(oe){return!(void 0!==this.capturedId||this.isDisabled(oe))}isCaptured(){return void 0!==this.capturedId}isScrollDisabled(){return this.disabledScroll.size>0}isDisabled(oe){const Xe=this.disabledGestures.get(oe);return!!(Xe&&Xe.size>0)}newID(){return this.gestureId++,this.gestureId}}},6411:(Tn,gt,S)=>{"use strict";S.r(gt),S.d(gt,{MENU_BACK_BUTTON_PRIORITY:()=>Je,OVERLAY_BACK_BUTTON_PRIORITY:()=>Xe,blockHardwareBackButton:()=>ue,shouldUseCloseWatcher:()=>U,startHardwareBackButton:()=>oe});var h=S(467),c=S(8476),Z=S(3664);S(9672);const U=()=>Z.c.get("experimentalCloseWatcher",!1)&&void 0!==c.w&&"CloseWatcher"in c.w,ue=()=>{document.addEventListener("backbutton",()=>{})},oe=()=>{const Se=document;let Ce=!1;const Qe=()=>{if(Ce)return;let Ze=0,qe=[];const ht=new CustomEvent("ionBackButton",{bubbles:!1,detail:{register(_t,Tt){qe.push({priority:_t,handler:Tt,id:Ze++})}}});Se.dispatchEvent(ht);const Dt=function(){var _t=(0,h.A)(function*(Tt){try{if(null!=Tt&&Tt.handler){const yt=Tt.handler(St);null!=yt&&(yield yt)}}catch(yt){console.error(yt)}});return function(yt){return _t.apply(this,arguments)}}(),St=()=>{if(qe.length>0){let _t={priority:Number.MIN_SAFE_INTEGER,handler:()=>{},id:-1};qe.forEach(Tt=>{Tt.priority>=_t.priority&&(_t=Tt)}),Ce=!0,qe=qe.filter(Tt=>Tt.id!==_t.id),Dt(_t).then(()=>Ce=!1)}};St()};if(U()){let Ze;const qe=()=>{null==Ze||Ze.destroy(),Ze=new c.w.CloseWatcher,Ze.onclose=()=>{Qe(),qe()}};qe()}else Se.addEventListener("backbutton",Qe)},Xe=100,Je=99},4920:(Tn,gt,S)=>{"use strict";S.d(gt,{a:()=>Xe,b:()=>Je,c:()=>Z,d:()=>qe,e:()=>Tt,f:()=>Ze,g:()=>Se,h:()=>U,i:()=>oe,j:()=>ht,k:()=>Oe,l:()=>Qe,m:()=>Dt,n:()=>_t,o:()=>yt,p:()=>St,r:()=>Ce,s:()=>mt,t:()=>h});const h=(Me,Ye=0)=>new Promise(ge=>{c(Me,Ye,ge)}),c=(Me,Ye=0,ge)=>{let Ue,Fe;const xe={passive:!0},Rt=()=>{Ue&&Ue()},vn=Nt=>{(void 0===Nt||Me===Nt.target)&&(Rt(),ge(Nt))};return Me&&(Me.addEventListener("webkitTransitionEnd",vn,xe),Me.addEventListener("transitionend",vn,xe),Fe=setTimeout(vn,Ye+500),Ue=()=>{void 0!==Fe&&(clearTimeout(Fe),Fe=void 0),Me.removeEventListener("webkitTransitionEnd",vn,xe),Me.removeEventListener("transitionend",vn,xe)}),Rt},Z=(Me,Ye)=>{Me.componentOnReady?Me.componentOnReady().then(ge=>Ye(ge)):Ce(()=>Ye(Me))},Oe=Me=>void 0!==Me.componentOnReady,U=(Me,Ye=[])=>{const ge={};return Ye.forEach(Ue=>{Me.hasAttribute(Ue)&&(null!==Me.getAttribute(Ue)&&(ge[Ue]=Me.getAttribute(Ue)),Me.removeAttribute(Ue))}),ge},ue=["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"],oe=(Me,Ye)=>{let ge=ue;return Ye&&Ye.length>0&&(ge=ge.filter(Ue=>!Ye.includes(Ue))),U(Me,ge)},Xe=(Me,Ye,ge,Ue)=>{var Fe;if(typeof window<"u"){const xe=window,at=null===(Fe=null==xe?void 0:xe.Ionic)||void 0===Fe?void 0:Fe.config;if(at){const Rt=at.get("_ael");if(Rt)return Rt(Me,Ye,ge,Ue);if(at._ael)return at._ael(Me,Ye,ge,Ue)}}return Me.addEventListener(Ye,ge,Ue)},Je=(Me,Ye,ge,Ue)=>{var Fe;if(typeof window<"u"){const xe=window,at=null===(Fe=null==xe?void 0:xe.Ionic)||void 0===Fe?void 0:Fe.config;if(at){const Rt=at.get("_rel");if(Rt)return Rt(Me,Ye,ge,Ue);if(at._rel)return at._rel(Me,Ye,ge,Ue)}}return Me.removeEventListener(Ye,ge,Ue)},Se=(Me,Ye=Me)=>Me.shadowRoot||Ye,Ce=Me=>"function"==typeof __zone_symbol__requestAnimationFrame?__zone_symbol__requestAnimationFrame(Me):"function"==typeof requestAnimationFrame?requestAnimationFrame(Me):setTimeout(Me),Qe=Me=>!!Me.shadowRoot&&!!Me.attachShadow,Ze=Me=>{if(Me.focus(),Me.classList.contains("ion-focusable")){const Ye=Me.closest("ion-app");Ye&&Ye.setFocus([Me])}},qe=(Me,Ye,ge,Ue,Fe)=>{if(Me||Qe(Ye)){let xe=Ye.querySelector("input.aux-input");xe||(xe=Ye.ownerDocument.createElement("input"),xe.type="hidden",xe.classList.add("aux-input"),Ye.appendChild(xe)),xe.disabled=Fe,xe.name=ge,xe.value=Ue||""}},ht=(Me,Ye,ge)=>Math.max(Me,Math.min(Ye,ge)),Dt=(Me,Ye)=>{if(!Me){const ge="ASSERT: "+Ye;throw console.error(ge),new Error(ge)}},St=Me=>{if(Me){const Ye=Me.changedTouches;if(Ye&&Ye.length>0){const ge=Ye[0];return{x:ge.clientX,y:ge.clientY}}if(void 0!==Me.pageX)return{x:Me.pageX,y:Me.pageY}}return{x:0,y:0}},_t=Me=>{const Ye="rtl"===document.dir;switch(Me){case"start":return Ye;case"end":return!Ye;default:throw new Error(`"${Me}" is not a valid value for [side]. Use "start" or "end" instead.`)}},Tt=(Me,Ye)=>{const ge=Me._original||Me;return{_original:Me,emit:yt(ge.emit.bind(ge),Ye)}},yt=(Me,Ye=0)=>{let ge;return(...Ue)=>{clearTimeout(ge),ge=setTimeout(Me,Ye,...Ue)}},mt=(Me,Ye)=>{if(null!=Me||(Me={}),null!=Ye||(Ye={}),Me===Ye)return!0;const ge=Object.keys(Me);if(ge.length!==Object.keys(Ye).length)return!1;for(const Ue of ge)if(!(Ue in Ye)||Me[Ue]!==Ye[Ue])return!1;return!0}},5465:(Tn,gt,S)=>{"use strict";S.d(gt,{m:()=>Ze});var h=S(467),c=S(8476),Z=S(6411),Oe=S(4929),U=S(4920),ue=S(3664),oe=S(9986);const Xe=qe=>(0,oe.c)().duration(qe?400:300),Je=qe=>{let ht,Dt;const St=qe.width+8,_t=(0,oe.c)(),Tt=(0,oe.c)();qe.isEndSide?(ht=St+"px",Dt="0px"):(ht=-St+"px",Dt="0px"),_t.addElement(qe.menuInnerEl).fromTo("transform",`translateX(${ht})`,`translateX(${Dt})`);const mt="ios"===(0,ue.b)(qe),Me=mt?.2:.25;return Tt.addElement(qe.backdropEl).fromTo("opacity",.01,Me),Xe(mt).addAnimation([_t,Tt])},Se=qe=>{let ht,Dt;const St=(0,ue.b)(qe),_t=qe.width;qe.isEndSide?(ht=-_t+"px",Dt=_t+"px"):(ht=_t+"px",Dt=-_t+"px");const Tt=(0,oe.c)().addElement(qe.menuInnerEl).fromTo("transform",`translateX(${Dt})`,"translateX(0px)"),yt=(0,oe.c)().addElement(qe.contentEl).fromTo("transform","translateX(0px)",`translateX(${ht})`),mt=(0,oe.c)().addElement(qe.backdropEl).fromTo("opacity",.01,.32);return Xe("ios"===St).addAnimation([Tt,yt,mt])},Ce=qe=>{const ht=(0,ue.b)(qe),Dt=qe.width*(qe.isEndSide?-1:1)+"px",St=(0,oe.c)().addElement(qe.contentEl).fromTo("transform","translateX(0px)",`translateX(${Dt})`);return Xe("ios"===ht).addAnimation(St)},Ze=(()=>{const qe=new Map,ht=[],Dt=function(){var X=(0,h.A)(function*(fe){const se=yield Ye(fe,!0);return!!se&&se.open()});return function(se){return X.apply(this,arguments)}}(),St=function(){var X=(0,h.A)(function*(fe){const se=yield void 0!==fe?Ye(fe,!0):ge();return void 0!==se&&se.close()});return function(se){return X.apply(this,arguments)}}(),_t=function(){var X=(0,h.A)(function*(fe){const se=yield Ye(fe,!0);return!!se&&se.toggle()});return function(se){return X.apply(this,arguments)}}(),Tt=function(){var X=(0,h.A)(function*(fe,se){const ve=yield Ye(se);return ve&&(ve.disabled=!fe),ve});return function(se,ve){return X.apply(this,arguments)}}(),yt=function(){var X=(0,h.A)(function*(fe,se){const ve=yield Ye(se);return ve&&(ve.swipeGesture=fe),ve});return function(se,ve){return X.apply(this,arguments)}}(),mt=function(){var X=(0,h.A)(function*(fe){if(null!=fe){const se=yield Ye(fe);return void 0!==se&&se.isOpen()}return void 0!==(yield ge())});return function(se){return X.apply(this,arguments)}}(),Me=function(){var X=(0,h.A)(function*(fe){const se=yield Ye(fe);return!!se&&!se.disabled});return function(se){return X.apply(this,arguments)}}(),Ye=function(){var X=(0,h.A)(function*(fe,se=!1){if(yield H(),"start"===fe||"end"===fe){const Le=ht.filter(Wt=>Wt.side===fe&&!Wt.disabled);if(Le.length>=1)return Le.length>1&&se&&(0,Oe.p)(`menuController queried for a menu on the "${fe}" side, but ${Le.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.`,Le.map(Wt=>Wt.el)),Le[0].el;const De=ht.filter(Wt=>Wt.side===fe);if(De.length>=1)return De.length>1&&se&&(0,Oe.p)(`menuController queried for a menu on the "${fe}" side, but ${De.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.`,De.map(Wt=>Wt.el)),De[0].el}else if(null!=fe)return we(Le=>Le.menuId===fe);return we(Le=>!Le.disabled)||(ht.length>0?ht[0].el:void 0)});return function(se){return X.apply(this,arguments)}}(),ge=function(){var X=(0,h.A)(function*(){return yield H(),tt()});return function(){return X.apply(this,arguments)}}(),Ue=function(){var X=(0,h.A)(function*(){return yield H(),on()});return function(){return X.apply(this,arguments)}}(),Fe=function(){var X=(0,h.A)(function*(){return yield H(),dt()});return function(){return X.apply(this,arguments)}}(),xe=(X,fe)=>{qe.set(X,fe)},vn=function(){var X=(0,h.A)(function*(fe,se,ve){if(dt())return!1;if(se){const Le=yield ge();Le&&fe.el!==Le&&(yield Le.setOpen(!1,!1))}return fe._setOpen(se,ve)});return function(se,ve,Le){return X.apply(this,arguments)}}(),tt=()=>we(X=>X._isOpen),on=()=>ht.map(X=>X.el),dt=()=>ht.some(X=>X.isAnimating),we=X=>{const fe=ht.find(X);if(void 0!==fe)return fe.el},H=()=>Promise.all(Array.from(document.querySelectorAll("ion-menu")).map(X=>new Promise(fe=>(0,U.c)(X,fe))));return xe("reveal",Ce),xe("push",Se),xe("overlay",Je),null==c.d||c.d.addEventListener("ionBackButton",X=>{const fe=tt();fe&&X.detail.register(Z.MENU_BACK_BUTTON_PRIORITY,()=>fe.close())}),{registerAnimation:xe,get:Ye,getMenus:Ue,getOpen:ge,isEnabled:Me,swipeGesture:yt,isAnimating:Fe,isOpen:mt,enable:Tt,toggle:_t,close:St,open:Dt,_getOpenSync:tt,_createAnimation:(X,fe)=>{const se=qe.get(X);if(!se)throw new Error("animation not registered");return se(fe)},_register:X=>{ht.indexOf(X)<0&&ht.push(X)},_unregister:X=>{const fe=ht.indexOf(X);fe>-1&&ht.splice(fe,1)},_setOpen:vn}})()},8607:(Tn,gt,S)=>{"use strict";S.r(gt),S.d(gt,{GESTURE_CONTROLLER:()=>h.G,createGesture:()=>Je});var h=S(1970);const c=(Ze,qe,ht,Dt)=>{const St=Z(Ze)?{capture:!!Dt.capture,passive:!!Dt.passive}:!!Dt.capture;let _t,Tt;return Ze.__zone_symbol__addEventListener?(_t="__zone_symbol__addEventListener",Tt="__zone_symbol__removeEventListener"):(_t="addEventListener",Tt="removeEventListener"),Ze[_t](qe,ht,St),()=>{Ze[Tt](qe,ht,St)}},Z=Ze=>{if(void 0===Oe)try{const qe=Object.defineProperty({},"passive",{get:()=>{Oe=!0}});Ze.addEventListener("optsTest",()=>{},qe)}catch{Oe=!1}return!!Oe};let Oe;const oe=Ze=>Ze instanceof Document?Ze:Ze.ownerDocument,Je=Ze=>{let qe=!1,ht=!1,Dt=!0,St=!1;const _t=Object.assign({disableScroll:!1,direction:"x",gesturePriority:0,passive:!0,maxAngle:40,threshold:10},Ze),Tt=_t.canStart,yt=_t.onWillStart,mt=_t.onStart,Me=_t.onEnd,Ye=_t.notCaptured,ge=_t.onMove,Ue=_t.threshold,Fe=_t.passive,xe=_t.blurOnStart,at={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},Rt=((Ze,qe,ht)=>{const Dt=ht*(Math.PI/180),St="x"===Ze,_t=Math.cos(Dt),Tt=qe*qe;let yt=0,mt=0,Me=!1,Ye=0;return{start(ge,Ue){yt=ge,mt=Ue,Ye=0,Me=!0},detect(ge,Ue){if(!Me)return!1;const Fe=ge-yt,xe=Ue-mt,at=Fe*Fe+xe*xe;if(at_t?1:vn<-_t?-1:0,Me=!1,!0},isGesture:()=>0!==Ye,getDirection:()=>Ye}})(_t.direction,_t.threshold,_t.maxAngle),vn=h.G.createGesture({name:Ze.gestureName,priority:Ze.gesturePriority,disableScroll:Ze.disableScroll}),on=()=>{qe&&(St=!1,ge&&ge(at))},dt=()=>!!vn.capture()&&(qe=!0,Dt=!1,at.startX=at.currentX,at.startY=at.currentY,at.startTime=at.currentTime,yt?yt(at).then(H):H(),!0),H=()=>{xe&&(()=>{if(typeof document<"u"){const Le=document.activeElement;null!=Le&&Le.blur&&Le.blur()}})(),mt&&mt(at),Dt=!0},X=()=>{qe=!1,ht=!1,St=!1,Dt=!0,vn.release()},fe=Le=>{const De=qe,Wt=Dt;if(X(),Wt){if(Se(at,Le),De)return void(Me&&Me(at));Ye&&Ye(at)}},se=((Ze,qe,ht,Dt,St)=>{let _t,Tt,yt,mt,Me,Ye,ge,Ue=0;const Fe=we=>{Ue=Date.now()+2e3,qe(we)&&(!Tt&&ht&&(Tt=c(Ze,"touchmove",ht,St)),yt||(yt=c(we.target,"touchend",at,St)),mt||(mt=c(we.target,"touchcancel",at,St)))},xe=we=>{Ue>Date.now()||qe(we)&&(!Ye&&ht&&(Ye=c(oe(Ze),"mousemove",ht,St)),ge||(ge=c(oe(Ze),"mouseup",Rt,St)))},at=we=>{vn(),Dt&&Dt(we)},Rt=we=>{Nt(),Dt&&Dt(we)},vn=()=>{Tt&&Tt(),yt&&yt(),mt&&mt(),Tt=yt=mt=void 0},Nt=()=>{Ye&&Ye(),ge&&ge(),Ye=ge=void 0},tt=()=>{vn(),Nt()},on=(we=!0)=>{we?(_t||(_t=c(Ze,"touchstart",Fe,St)),Me||(Me=c(Ze,"mousedown",xe,St))):(_t&&_t(),Me&&Me(),_t=Me=void 0,tt())};return{enable:on,stop:tt,destroy:()=>{on(!1),Dt=ht=qe=void 0}}})(_t.el,Le=>{const De=Qe(Le);return!(ht||!Dt||(Ce(Le,at),at.startX=at.currentX,at.startY=at.currentY,at.startTime=at.currentTime=De,at.velocityX=at.velocityY=at.deltaX=at.deltaY=0,at.event=Le,Tt&&!1===Tt(at))||(vn.release(),!vn.start()))&&(ht=!0,0===Ue?dt():(Rt.start(at.startX,at.startY),!0))},Le=>{qe?!St&&Dt&&(St=!0,Se(at,Le),requestAnimationFrame(on)):(Se(at,Le),Rt.detect(at.currentX,at.currentY)&&(!Rt.isGesture()||!dt())&&ve())},fe,{capture:!1,passive:Fe}),ve=()=>{X(),se.stop(),Ye&&Ye(at)};return{enable(Le=!0){Le||(qe&&fe(void 0),X()),se.enable(Le)},destroy(){vn.destroy(),se.destroy()}}},Se=(Ze,qe)=>{if(!qe)return;const ht=Ze.currentX,Dt=Ze.currentY,St=Ze.currentTime;Ce(qe,Ze);const _t=Ze.currentX,Tt=Ze.currentY,mt=(Ze.currentTime=Qe(qe))-St;if(mt>0&&mt<100){const Ye=(Tt-Dt)/mt;Ze.velocityX=(_t-ht)/mt*.7+.3*Ze.velocityX,Ze.velocityY=.7*Ye+.3*Ze.velocityY}Ze.deltaX=_t-Ze.startX,Ze.deltaY=Tt-Ze.startY,Ze.event=qe},Ce=(Ze,qe)=>{let ht=0,Dt=0;if(Ze){const St=Ze.changedTouches;if(St&&St.length>0){const _t=St[0];ht=_t.clientX,Dt=_t.clientY}else void 0!==Ze.pageX&&(ht=Ze.pageX,Dt=Ze.pageY)}qe.currentX=ht,qe.currentY=Dt},Qe=Ze=>Ze.timeStamp||Date.now()},9672:(Tn,gt,S)=>{"use strict";S.d(gt,{B:()=>ue,a:()=>$e,b:()=>Tr,c:()=>Wt,d:()=>Ln,e:()=>sr,f:()=>dt,g:()=>dn,h:()=>tt,i:()=>rn,j:()=>tr,k:()=>oe,r:()=>Wn,w:()=>ni});var h=S(467);var Oe=Object.defineProperty,ue={isDev:!1,isBrowser:!0,isServer:!1,isTesting:!1},oe=z=>{const me=new URL(z,W.$resourcesUrl$);return me.origin!==bt.location.origin?me.href:me.pathname},Xe={},Qe=z=>"object"==(z=typeof z)||"function"===z;function Ze(z){var me,Ne,et;return null!=(et=null==(Ne=null==(me=z.head)?void 0:me.querySelector('meta[name="csp-nonce"]'))?void 0:Ne.getAttribute("content"))?et:void 0}((z,me)=>{for(var Ne in me)Oe(z,Ne,{get:me[Ne],enumerable:!0})})({},{err:()=>Dt,map:()=>St,ok:()=>ht,unwrap:()=>_t,unwrapErr:()=>Tt});var ht=z=>({isOk:!0,isErr:!1,value:z}),Dt=z=>({isOk:!1,isErr:!0,value:z});function St(z,me){if(z.isOk){const Ne=me(z.value);return Ne instanceof Promise?Ne.then(et=>ht(et)):ht(Ne)}if(z.isErr)return Dt(z.value);throw"should never get here"}var _t=z=>{if(z.isOk)return z.value;throw z.value},Tt=z=>{if(z.isErr)return z.value;throw z.value},Fe="s-id",xe="sty-id",vn="slot-fb{display:contents}slot-fb[hidden]{display:none}",Nt="http://www.w3.org/1999/xlink",tt=(z,me,...Ne)=>{let et=null,wt=null,Et=null,Yt=!1,sn=!1;const cn=[],En=jn=>{for(let lr=0;lrjn[lr]).join(" "))}}if("function"==typeof z)return z(null===me?{}:me,cn,H);const Nn=on(z,null);return Nn.$attrs$=me,cn.length>0&&(Nn.$children$=cn),Nn.$key$=wt,Nn.$name$=Et,Nn},on=(z,me)=>({$flags$:0,$tag$:z,$text$:me,$elm$:null,$children$:null,$attrs$:null,$key$:null,$name$:null}),dt={},H={forEach:(z,me)=>z.map(X).forEach(me),map:(z,me)=>z.map(X).map(me).map(fe)},X=z=>({vattrs:z.$attrs$,vchildren:z.$children$,vkey:z.$key$,vname:z.$name$,vtag:z.$tag$,vtext:z.$text$}),fe=z=>{if("function"==typeof z.vtag){const Ne={...z.vattrs};return z.vkey&&(Ne.key=z.vkey),z.vname&&(Ne.name=z.vname),tt(z.vtag,Ne,...z.vchildren||[])}const me=on(z.vtag,z.vtext);return me.$attrs$=z.vattrs,me.$children$=z.vchildren,me.$key$=z.vkey,me.$name$=z.vname,me},ve=(z,me,Ne,et,wt,Et,Yt)=>{let sn,cn,En,Nn;if(1===Et.nodeType){for(sn=Et.getAttribute("c-id"),sn&&(cn=sn.split("."),(cn[0]===Yt||"0"===cn[0])&&(En={$flags$:0,$hostId$:cn[0],$nodeId$:cn[1],$depth$:cn[2],$index$:cn[3],$tag$:Et.tagName.toLowerCase(),$elm$:Et,$attrs$:null,$children$:null,$key$:null,$name$:null,$text$:null},me.push(En),Et.removeAttribute("c-id"),z.$children$||(z.$children$=[]),z.$children$[En.$index$]=En,z=En,et&&"0"===En.$depth$&&(et[En.$index$]=En.$elm$))),Nn=Et.childNodes.length-1;Nn>=0;Nn--)ve(z,me,Ne,et,wt,Et.childNodes[Nn],Yt);if(Et.shadowRoot)for(Nn=Et.shadowRoot.childNodes.length-1;Nn>=0;Nn--)ve(z,me,Ne,et,wt,Et.shadowRoot.childNodes[Nn],Yt)}else if(8===Et.nodeType)cn=Et.nodeValue.split("."),(cn[1]===Yt||"0"===cn[1])&&(sn=cn[0],En={$flags$:0,$hostId$:cn[1],$nodeId$:cn[2],$depth$:cn[3],$index$:cn[4],$elm$:Et,$attrs$:null,$children$:null,$key$:null,$name$:null,$tag$:null,$text$:null},"t"===sn?(En.$elm$=Et.nextSibling,En.$elm$&&3===En.$elm$.nodeType&&(En.$text$=En.$elm$.textContent,me.push(En),Et.remove(),z.$children$||(z.$children$=[]),z.$children$[En.$index$]=En,et&&"0"===En.$depth$&&(et[En.$index$]=En.$elm$))):En.$hostId$===Yt&&("s"===sn?(En.$tag$="slot",Et["s-sn"]=cn[5]?En.$name$=cn[5]:"",Et["s-sr"]=!0,et&&(En.$elm$=he.createElement(En.$tag$),En.$name$&&En.$elm$.setAttribute("name",En.$name$),Et.parentNode.insertBefore(En.$elm$,Et),Et.remove(),"0"===En.$depth$&&(et[En.$index$]=En.$elm$)),Ne.push(En),z.$children$||(z.$children$=[]),z.$children$[En.$index$]=En):"r"===sn&&(et?Et.remove():(wt["s-cr"]=Et,Et["s-cn"]=!0))));else if(z&&"style"===z.$tag$){const jn=on(null,Et.textContent);jn.$elm$=Et,jn.$index$="0",z.$children$=[jn]}},Le=(z,me)=>{if(1===z.nodeType){let Ne=0;for(;Neoi.push(z),dn=z=>mi(z).$modeName$,rn=z=>mi(z).$hostElement$,Ln=(z,me,Ne)=>{const et=rn(z);return{emit:wt=>Zn(et,me,{bubbles:!!(4&Ne),composed:!!(2&Ne),cancelable:!!(1&Ne),detail:wt})}},Zn=(z,me,Ne)=>{const et=W.ce(me,Ne);return z.dispatchEvent(et),et},nr=new WeakMap,er=(z,me,Ne)=>{let et=No.get(z);In&&Ne?(et=et||new CSSStyleSheet,"string"==typeof et?et=me:et.replaceSync(me)):et=me,No.set(z,et)},yr=(z,me,Ne)=>{var et;const wt=ir(me,Ne),Et=No.get(wt);if(z=11===z.nodeType?z:he,Et)if("string"==typeof Et){let sn,Yt=nr.get(z=z.head||z);if(Yt||nr.set(z,Yt=new Set),!Yt.has(wt)){if(z.host&&(sn=z.querySelector(`[${xe}="${wt}"]`)))sn.innerHTML=Et;else{sn=he.createElement("style"),sn.innerHTML=Et;const cn=null!=(et=W.$nonce$)?et:Ze(he);null!=cn&&sn.setAttribute("nonce",cn),z.insertBefore(sn,z.querySelector("link"))}4&me.$flags$&&(sn.innerHTML+=vn),Yt&&Yt.add(wt)}}else z.adoptedStyleSheets.includes(Et)||(z.adoptedStyleSheets=[...z.adoptedStyleSheets,Et]);return wt},ir=(z,me)=>"sc-"+(me&&32&z.$flags$?z.$tagName$+"-"+me:z.$tagName$),nt=z=>z.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g,"$1{"),Ot=(z,me,Ne,et,wt,Et)=>{if(Ne!==et){let Yt=ao(z,me),sn=me.toLowerCase();if("class"===me){const cn=z.classList,En=pn(Ne),Nn=pn(et);cn.remove(...En.filter(jn=>jn&&!Nn.includes(jn))),cn.add(...Nn.filter(jn=>jn&&!En.includes(jn)))}else if("style"===me){for(const cn in Ne)(!et||null==et[cn])&&(cn.includes("-")?z.style.removeProperty(cn):z.style[cn]="");for(const cn in et)(!Ne||et[cn]!==Ne[cn])&&(cn.includes("-")?z.style.setProperty(cn,et[cn]):z.style[cn]=et[cn])}else if("key"!==me)if("ref"===me)et&&et(z);else if(Yt||"o"!==me[0]||"n"!==me[1]){const cn=Qe(et);if((Yt||cn&&null!==et)&&!wt)try{if(z.tagName.includes("-"))z[me]=et;else{const Nn=null==et?"":et;"list"===me?Yt=!1:(null==Ne||z[me]!=Nn)&&(z[me]=Nn)}}catch{}let En=!1;sn!==(sn=sn.replace(/^xlink\:?/,""))&&(me=sn,En=!0),null==et||!1===et?(!1!==et||""===z.getAttribute(me))&&(En?z.removeAttributeNS(Nt,me):z.removeAttribute(me)):(!Yt||4&Et||wt)&&!cn&&(et=!0===et?"":et,En?z.setAttributeNS(Nt,me,et):z.setAttribute(me,et))}else if(me="-"===me[2]?me.slice(3):ao(bt,sn)?sn.slice(2):sn[2]+me.slice(3),Ne||et){const cn=me.endsWith(gn);me=me.replace(Sr,""),Ne&&W.rel(z,me,Ne,cn),et&&W.ael(z,me,et,cn)}}},zt=/\s/,pn=z=>z?z.split(zt):[],gn="Capture",Sr=new RegExp(gn+"$"),Mn=(z,me,Ne)=>{const et=11===me.$elm$.nodeType&&me.$elm$.host?me.$elm$.host:me.$elm$,wt=z&&z.$attrs$||Xe,Et=me.$attrs$||Xe;for(const Yt of xn(Object.keys(wt)))Yt in Et||Ot(et,Yt,wt[Yt],void 0,Ne,me.$flags$);for(const Yt of xn(Object.keys(Et)))Ot(et,Yt,wt[Yt],Et[Yt],Ne,me.$flags$)};function xn(z){return z.includes("ref")?[...z.filter(me=>"ref"!==me),"ref"]:z}var mn,en,Er,Ir=!1,Nr=!1,Qn=!1,Dr=!1,Jn=(z,me,Ne,et)=>{var wt;const Et=me.$children$[Ne];let sn,cn,En,Yt=0;if(Ir||(Qn=!0,"slot"===Et.$tag$&&(mn&&et.classList.add(mn+"-s"),Et.$flags$|=Et.$children$?2:1)),null!==Et.$text$)sn=Et.$elm$=he.createTextNode(Et.$text$);else if(1&Et.$flags$)sn=Et.$elm$=he.createTextNode("");else{if(Dr||(Dr="svg"===Et.$tag$),sn=Et.$elm$=he.createElementNS(Dr?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",2&Et.$flags$?"slot-fb":Et.$tag$),Dr&&"foreignObject"===Et.$tag$&&(Dr=!1),Mn(null,Et,Dr),(z=>null!=z)(mn)&&sn["s-si"]!==mn&&sn.classList.add(sn["s-si"]=mn),Et.$children$)for(Yt=0;Yt{W.$flags$|=1;const me=z.closest(Er.toLowerCase());if(null!=me){const Ne=Array.from(me.childNodes).find(wt=>wt["s-cr"]),et=Array.from(z.childNodes);for(const wt of Ne?et.reverse():et)null!=wt["s-sh"]&&(ye(me,wt,null!=Ne?Ne:null),wt["s-sh"]=void 0,Qn=!0)}W.$flags$&=-2},mr=(z,me)=>{W.$flags$|=1;const Ne=Array.from(z.childNodes);if(z["s-sr"]){let et=z;for(;et=et.nextSibling;)et&&et["s-sn"]===z["s-sn"]&&et["s-sh"]===Er&&Ne.push(et)}for(let et=Ne.length-1;et>=0;et--){const wt=Ne[et];wt["s-hn"]!==Er&&wt["s-ol"]&&(ye(Ai(wt),wt,ii(wt)),wt["s-ol"].remove(),wt["s-ol"]=void 0,wt["s-sh"]=void 0,Qn=!0),me&&mr(wt,me)}W.$flags$&=-2},ur=(z,me,Ne,et,wt,Et)=>{let sn,Yt=z["s-cr"]&&z["s-cr"].parentNode||z;for(Yt.shadowRoot&&Yt.tagName===Er&&(Yt=Yt.shadowRoot);wt<=Et;++wt)et[wt]&&(sn=Jn(null,Ne,wt,z),sn&&(et[wt].$elm$=sn,ye(Yt,sn,ii(me))))},Pr=(z,me,Ne)=>{for(let et=me;et<=Ne;++et){const wt=z[et];if(wt){const Et=wt.$elm$;ce(wt),Et&&(Nr=!0,Et["s-ol"]?Et["s-ol"].remove():mr(Et,!0),Et.remove())}}},kr=(z,me,Ne=!1)=>z.$tag$===me.$tag$&&("slot"===z.$tag$?z.$name$===me.$name$:!!Ne||z.$key$===me.$key$),ii=z=>z&&z["s-ol"]||z,Ai=z=>(z["s-ol"]?z["s-ol"]:z).parentNode,Qr=(z,me,Ne=!1)=>{const et=me.$elm$=z.$elm$,wt=z.$children$,Et=me.$children$,Yt=me.$tag$,sn=me.$text$;let cn;null===sn?(Dr="svg"===Yt||"foreignObject"!==Yt&&Dr,"slot"!==Yt||Ir?Mn(z,me,Dr):z.$name$!==me.$name$&&(me.$elm$["s-sn"]=me.$name$||"",Jr(me.$elm$.parentElement)),null!==wt&&null!==Et?((z,me,Ne,et,wt=!1)=>{let jr,br,Et=0,Yt=0,sn=0,cn=0,En=me.length-1,Nn=me[0],jn=me[En],lr=et.length-1,Vn=et[0],qr=et[lr];for(;Et<=En&&Yt<=lr;)if(null==Nn)Nn=me[++Et];else if(null==jn)jn=me[--En];else if(null==Vn)Vn=et[++Yt];else if(null==qr)qr=et[--lr];else if(kr(Nn,Vn,wt))Qr(Nn,Vn,wt),Nn=me[++Et],Vn=et[++Yt];else if(kr(jn,qr,wt))Qr(jn,qr,wt),jn=me[--En],qr=et[--lr];else if(kr(Nn,qr,wt))("slot"===Nn.$tag$||"slot"===qr.$tag$)&&mr(Nn.$elm$.parentNode,!1),Qr(Nn,qr,wt),ye(z,Nn.$elm$,jn.$elm$.nextSibling),Nn=me[++Et],qr=et[--lr];else if(kr(jn,Vn,wt))("slot"===Nn.$tag$||"slot"===qr.$tag$)&&mr(jn.$elm$.parentNode,!1),Qr(jn,Vn,wt),ye(z,jn.$elm$,Nn.$elm$),jn=me[--En],Vn=et[++Yt];else{for(sn=-1,cn=Et;cn<=En;++cn)if(me[cn]&&null!==me[cn].$key$&&me[cn].$key$===Vn.$key$){sn=cn;break}sn>=0?(br=me[sn],br.$tag$!==Vn.$tag$?jr=Jn(me&&me[Yt],Ne,sn,z):(Qr(br,Vn,wt),me[sn]=void 0,jr=br.$elm$),Vn=et[++Yt]):(jr=Jn(me&&me[Yt],Ne,Yt,z),Vn=et[++Yt]),jr&&ye(Ai(Nn.$elm$),jr,ii(Nn.$elm$))}Et>En?ur(z,null==et[lr+1]?null:et[lr+1].$elm$,Ne,et,Yt,lr):Yt>lr&&Pr(me,Et,En)})(et,wt,me,Et,Ne):null!==Et?(null!==z.$text$&&(et.textContent=""),ur(et,null,me,Et,0,Et.length-1)):null!==wt&&Pr(wt,0,wt.length-1),Dr&&"svg"===Yt&&(Dr=!1)):(cn=et["s-cr"])?cn.parentNode.textContent=sn:z.$text$!==sn&&(et.data=sn)},pe=z=>{const me=z.childNodes;for(const Ne of me)if(1===Ne.nodeType){if(Ne["s-sr"]){const et=Ne["s-sn"];Ne.hidden=!1;for(const wt of me)if(wt!==Ne)if(wt["s-hn"]!==Ne["s-hn"]||""!==et){if(1===wt.nodeType&&(et===wt.getAttribute("slot")||et===wt["s-sn"])||3===wt.nodeType&&et===wt["s-sn"]){Ne.hidden=!0;break}}else if(1===wt.nodeType||3===wt.nodeType&&""!==wt.textContent.trim()){Ne.hidden=!0;break}}pe(Ne)}},rt=[],Mt=z=>{let me,Ne,et;for(const wt of z.childNodes){if(wt["s-sr"]&&(me=wt["s-cr"])&&me.parentNode){Ne=me.parentNode.childNodes;const Et=wt["s-sn"];for(et=Ne.length-1;et>=0;et--)if(me=Ne[et],!(me["s-cn"]||me["s-nr"]||me["s-hn"]===wt["s-hn"]||me["s-sh"]&&me["s-sh"]===wt["s-hn"]))if(ut(me,Et)){let Yt=rt.find(sn=>sn.$nodeToRelocate$===me);Nr=!0,me["s-sn"]=me["s-sn"]||Et,Yt?(Yt.$nodeToRelocate$["s-sh"]=wt["s-hn"],Yt.$slotRefNode$=wt):(me["s-sh"]=wt["s-hn"],rt.push({$slotRefNode$:wt,$nodeToRelocate$:me})),me["s-sr"]&&rt.map(sn=>{ut(sn.$nodeToRelocate$,me["s-sn"])&&(Yt=rt.find(cn=>cn.$nodeToRelocate$===me),Yt&&!sn.$slotRefNode$&&(sn.$slotRefNode$=Yt.$slotRefNode$))})}else rt.some(Yt=>Yt.$nodeToRelocate$===me)||rt.push({$nodeToRelocate$:me})}1===wt.nodeType&&Mt(wt)}},ut=(z,me)=>1===z.nodeType?null===z.getAttribute("slot")&&""===me||z.getAttribute("slot")===me:z["s-sn"]===me||""===me,ce=z=>{z.$attrs$&&z.$attrs$.ref&&z.$attrs$.ref(null),z.$children$&&z.$children$.map(ce)},ye=(z,me,Ne)=>{const et=null==z?void 0:z.insertBefore(me,Ne);return Lt(me,z),et},He=z=>z?z["s-rsc"]||z["s-si"]||z["s-sc"]||He(z.parentElement):void 0,Lt=(z,me)=>{var Ne,et,wt;if(z&&me){const Et=z["s-rsc"],Yt=He(me);Et&&null!=(Ne=z.classList)&&Ne.contains(Et)&&z.classList.remove(Et),Yt&&(z["s-rsc"]=Yt,(null==(et=z.classList)||!et.contains(Yt))&&(null==(wt=z.classList)||wt.add(Yt)))}},ct=(z,me)=>{me&&!z.$onRenderResolve$&&me["s-p"]&&me["s-p"].push(new Promise(Ne=>z.$onRenderResolve$=Ne))},lt=(z,me)=>{if(z.$flags$|=16,!(4&z.$flags$))return ct(z,z.$ancestorComponent$),ni(()=>Gt(z,me));z.$flags$|=512},Gt=(z,me)=>{const et=z.$lazyInstance$;let wt;return me&&(z.$flags$|=256,z.$queuedListeners$&&(z.$queuedListeners$.map(([Et,Yt])=>dr(et,Et,Yt)),z.$queuedListeners$=void 0),wt=dr(et,"componentWillLoad")),wt=tn(wt,()=>dr(et,"componentWillRender")),tn(wt,()=>qn(z,et,me))},tn=(z,me)=>_n(z)?z.then(me):me(),_n=z=>z instanceof Promise||z&&z.then&&"function"==typeof z.then,qn=function(){var z=(0,h.A)(function*(me,Ne,et){var wt;const Et=me.$hostElement$,sn=Et["s-rc"];et&&(z=>{const me=z.$cmpMeta$,Ne=z.$hostElement$,et=me.$flags$,Et=yr(Ne.shadowRoot?Ne.shadowRoot:Ne.getRootNode(),me,z.$modeName$);10&et&&(Ne["s-sc"]=Et,Ne.classList.add(Et+"-h"),2&et&&Ne.classList.add(Et+"-s"))})(me);hn(me,Ne,Et,et),sn&&(sn.map(En=>En()),Et["s-rc"]=void 0);{const En=null!=(wt=Et["s-p"])?wt:[],Nn=()=>Cn(me);0===En.length?Nn():(Promise.all(En).then(Nn),me.$flags$|=4,En.length=0)}});return function(Ne,et,wt){return z.apply(this,arguments)}}(),hn=(z,me,Ne,et)=>{try{me=me.render&&me.render(),z.$flags$&=-17,z.$flags$|=2,((z,me,Ne=!1)=>{var et,wt,Et,Yt,sn;const cn=z.$hostElement$,En=z.$cmpMeta$,Nn=z.$vnode$||on(null,null),jn=(z=>z&&z.$tag$===dt)(me)?me:tt(null,null,me);if(Er=cn.tagName,En.$attrsToReflect$&&(jn.$attrs$=jn.$attrs$||{},En.$attrsToReflect$.map(([lr,Vn])=>jn.$attrs$[Vn]=cn[lr])),Ne&&jn.$attrs$)for(const lr of Object.keys(jn.$attrs$))cn.hasAttribute(lr)&&!["key","ref","style","class"].includes(lr)&&(jn.$attrs$[lr]=cn[lr]);if(jn.$tag$=null,jn.$flags$|=4,z.$vnode$=jn,jn.$elm$=Nn.$elm$=cn.shadowRoot||cn,mn=cn["s-sc"],Ir=!!(1&En.$flags$),en=cn["s-cr"],Nr=!1,Qr(Nn,jn,Ne),W.$flags$|=1,Qn){Mt(jn.$elm$);for(const lr of rt){const Vn=lr.$nodeToRelocate$;if(!Vn["s-ol"]){const qr=he.createTextNode("");qr["s-nr"]=Vn,ye(Vn.parentNode,Vn["s-ol"]=qr,Vn)}}for(const lr of rt){const Vn=lr.$nodeToRelocate$,qr=lr.$slotRefNode$;if(qr){const jr=qr.parentNode;let br=qr.nextSibling;if(br&&1===br.nodeType){let wi=null==(et=Vn["s-ol"])?void 0:et.previousSibling;for(;wi;){let Ni=null!=(wt=wi["s-nr"])?wt:null;if(Ni&&Ni["s-sn"]===Vn["s-sn"]&&jr===Ni.parentNode){for(Ni=Ni.nextSibling;Ni===Vn||null!=Ni&&Ni["s-sr"];)Ni=null==Ni?void 0:Ni.nextSibling;if(!Ni||!Ni["s-nr"]){br=Ni;break}}wi=wi.previousSibling}}(!br&&jr!==Vn.parentNode||Vn.nextSibling!==br)&&Vn!==br&&(ye(jr,Vn,br),1===Vn.nodeType&&(Vn.hidden=null!=(Et=Vn["s-ih"])&&Et)),Vn&&"function"==typeof qr["s-rf"]&&qr["s-rf"](Vn)}else 1===Vn.nodeType&&(Ne&&(Vn["s-ih"]=null!=(Yt=Vn.hidden)&&Yt),Vn.hidden=!0)}}if(Nr&&pe(jn.$elm$),W.$flags$&=-2,rt.length=0,2&En.$flags$)for(const lr of jn.$elm$.childNodes)lr["s-hn"]!==Er&&!lr["s-sh"]&&(Ne&&null==lr["s-ih"]&&(lr["s-ih"]=null!=(sn=lr.hidden)&&sn),lr.hidden=!0);en=void 0})(z,me,et)}catch(wt){ui(wt,z.$hostElement$)}return null},Cn=z=>{const Ne=z.$hostElement$,wt=z.$lazyInstance$,Et=z.$ancestorComponent$;dr(wt,"componentDidRender"),64&z.$flags$?dr(wt,"componentDidUpdate"):(z.$flags$|=64,$r(Ne),dr(wt,"componentDidLoad"),z.$onReadyResolve$(Ne),Et||Ar()),z.$onInstanceResolve$(Ne),z.$onRenderResolve$&&(z.$onRenderResolve$(),z.$onRenderResolve$=void 0),512&z.$flags$&&it(()=>lt(z,!1)),z.$flags$&=-517},tr=z=>{{const me=mi(z),Ne=me.$hostElement$.isConnected;return Ne&&2==(18&me.$flags$)&<(me,!1),Ne}},Ar=z=>{$r(he.documentElement),it(()=>Zn(bt,"appload",{detail:{namespace:"ionic"}}))},dr=(z,me,Ne)=>{if(z&&z[me])try{return z[me](Ne)}catch(et){ui(et)}},$r=z=>z.classList.add("hydrated"),Ri=(z,me,Ne)=>{var et;const wt=z.prototype;if(me.$members$){z.watchers&&(me.$watchers$=z.watchers);const Et=Object.entries(me.$members$);if(Et.map(([Yt,[sn]])=>{31&sn||2&Ne&&32&sn?Object.defineProperty(wt,Yt,{get(){return((z,me)=>mi(this).$instanceValues$.get(me))(0,Yt)},set(cn){((z,me,Ne,et)=>{const wt=mi(z);if(!wt)throw new Error(`Couldn't find host element for "${et.$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=wt.$hostElement$,Yt=wt.$instanceValues$.get(me),sn=wt.$flags$,cn=wt.$lazyInstance$;Ne=((z,me)=>null==z||Qe(z)?z:4&me?"false"!==z&&(""===z||!!z):2&me?parseFloat(z):1&me?String(z):z)(Ne,et.$members$[me][0]);const En=Number.isNaN(Yt)&&Number.isNaN(Ne);if((!(8&sn)||void 0===Yt)&&Ne!==Yt&&!En&&(wt.$instanceValues$.set(me,Ne),cn)){if(et.$watchers$&&128&sn){const jn=et.$watchers$[me];jn&&jn.map(lr=>{try{cn[lr](Ne,Yt,me)}catch(Vn){ui(Vn,Et)}})}2==(18&sn)&<(wt,!1)}})(this,Yt,cn,me)},configurable:!0,enumerable:!0}):1&Ne&&64&sn&&Object.defineProperty(wt,Yt,{value(...cn){var En;const Nn=mi(this);return null==(En=null==Nn?void 0:Nn.$onInstancePromise$)?void 0:En.then(()=>{var jn;return null==(jn=Nn.$lazyInstance$)?void 0:jn[Yt](...cn)})}})}),1&Ne){const Yt=new Map;wt.attributeChangedCallback=function(sn,cn,En){W.jmp(()=>{var Nn;const jn=Yt.get(sn);if(this.hasOwnProperty(jn))En=this[jn],delete this[jn];else{if(wt.hasOwnProperty(jn)&&"number"==typeof this[jn]&&this[jn]==En)return;if(null==jn){const lr=mi(this),Vn=null==lr?void 0:lr.$flags$;if(Vn&&!(8&Vn)&&128&Vn&&En!==cn){const qr=lr.$lazyInstance$,jr=null==(Nn=me.$watchers$)?void 0:Nn[sn];null==jr||jr.forEach(br=>{null!=qr[br]&&qr[br].call(qr,En,cn,sn)})}return}}this[jn]=(null!==En||"boolean"!=typeof this[jn])&&En})},z.observedAttributes=Array.from(new Set([...Object.keys(null!=(et=me.$watchers$)?et:{}),...Et.filter(([sn,cn])=>15&cn[0]).map(([sn,cn])=>{var En;const Nn=cn[1]||sn;return Yt.set(Nn,sn),512&cn[0]&&(null==(En=me.$attrsToReflect$)||En.push([sn,Nn])),Nn})]))}}return z},gi=function(){var z=(0,h.A)(function*(me,Ne,et,wt){let Et;if(!(32&Ne.$flags$)){if(Ne.$flags$|=32,et.$lazyBundleId$){if(Et=Eo(et),Et.then){const Nn=()=>{};Et=yield Et,Nn()}Et.isProxied||(et.$watchers$=Et.watchers,Ri(Et,et,2),Et.isProxied=!0);const En=()=>{};Ne.$flags$|=8;try{new Et(Ne)}catch(Nn){ui(Nn)}Ne.$flags$&=-9,Ne.$flags$|=128,En(),pr(Ne.$lazyInstance$)}else Et=me.constructor,customElements.whenDefined(et.$tagName$).then(()=>Ne.$flags$|=128);if(Et.style){let En=Et.style;"string"!=typeof En&&(En=En[Ne.$modeName$=(z=>oi.map(me=>me(z)).find(me=>!!me))(me)]);const Nn=ir(et,Ne.$modeName$);if(!No.has(Nn)){const jn=()=>{};er(Nn,En,!!(1&et.$flags$)),jn()}}}const Yt=Ne.$ancestorComponent$,sn=()=>lt(Ne,!0);Yt&&Yt["s-rc"]?Yt["s-rc"].push(sn):sn()});return function(Ne,et,wt,Et){return z.apply(this,arguments)}}(),pr=z=>{dr(z,"connectedCallback")},te=z=>{const me=z["s-cr"]=he.createComment("");me["s-cn"]=!0,ye(z,me,z.firstChild)},ee=z=>{dr(z,"disconnectedCallback")},ze=function(){var z=(0,h.A)(function*(me){if(!(1&W.$flags$)){const Ne=mi(me);Ne.$rmListeners$&&(Ne.$rmListeners$.map(et=>et()),Ne.$rmListeners$=void 0),null!=Ne&&Ne.$lazyInstance$?ee(Ne.$lazyInstance$):null!=Ne&&Ne.$onReadyPromise$&&Ne.$onReadyPromise$.then(()=>ee(Ne.$lazyInstance$))}});return function(Ne){return z.apply(this,arguments)}}(),x=z=>{const me=z.cloneNode;z.cloneNode=function(Ne){const et=this,wt=et.shadowRoot&&Ve,Et=me.call(et,!!wt&&Ne);if(!wt&&Ne){let sn,cn,Yt=0;const En=["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(;Yt!et.childNodes[Yt][Nn]),sn&&(Et.__appendChild?Et.__appendChild(sn.cloneNode(!0)):Et.appendChild(sn.cloneNode(!0))),cn&&Et.appendChild(et.childNodes[Yt].cloneNode(!0))}return Et}},ne=z=>{z.__appendChild=z.appendChild,z.appendChild=function(me){const Ne=me["s-sn"]=Fr(me),et=Or(this.childNodes,Ne,this.tagName);if(et){const wt=zr(et,Ne),Et=wt[wt.length-1],Yt=ye(Et.parentNode,me,Et.nextSibling);return pe(this),Yt}return this.__appendChild(me)}},Te=z=>{z.__removeChild=z.removeChild,z.removeChild=function(me){if(me&&typeof me["s-sn"]<"u"){const Ne=Or(this.childNodes,me["s-sn"],this.tagName);if(Ne){const wt=zr(Ne,me["s-sn"]).find(Et=>Et===me);if(wt)return wt.remove(),void pe(this)}}return this.__removeChild(me)}},Ge=z=>{const me=z.prepend;z.prepend=function(...Ne){Ne.forEach(et=>{"string"==typeof et&&(et=this.ownerDocument.createTextNode(et));const wt=et["s-sn"]=Fr(et),Et=Or(this.childNodes,wt,this.tagName);if(Et){const Yt=document.createTextNode("");Yt["s-nr"]=et,Et["s-cr"].parentNode.__appendChild(Yt),et["s-ol"]=Yt;const cn=zr(Et,wt)[0];return ye(cn.parentNode,et,cn.nextSibling)}return 1===et.nodeType&&et.getAttribute("slot")&&(et.hidden=!0),me.call(this,et)})}},At=z=>{z.append=function(...me){me.forEach(Ne=>{"string"==typeof Ne&&(Ne=this.ownerDocument.createTextNode(Ne)),this.appendChild(Ne)})}},Jt=z=>{const me=z.insertAdjacentHTML;z.insertAdjacentHTML=function(Ne,et){if("afterbegin"!==Ne&&"beforeend"!==Ne)return me.call(this,Ne,et);const wt=this.ownerDocument.createElement("_");let Et;if(wt.innerHTML=et,"afterbegin"===Ne)for(;Et=wt.firstChild;)this.prepend(Et);else if("beforeend"===Ne)for(;Et=wt.firstChild;)this.append(Et)}},ln=z=>{z.insertAdjacentText=function(me,Ne){this.insertAdjacentHTML(me,Ne)}},or=z=>{const me=z.insertAdjacentElement;z.insertAdjacentElement=function(Ne,et){return"afterbegin"!==Ne&&"beforeend"!==Ne?me.call(this,Ne,et):"afterbegin"===Ne?(this.prepend(et),et):("beforeend"===Ne&&this.append(et),et)}},Un=z=>{const me=Object.getOwnPropertyDescriptor(Node.prototype,"textContent");Object.defineProperty(z,"__textContent",me),Object.defineProperty(z,"textContent",{get(){return" "+On(this.childNodes).map(wt=>{var Et,Yt;const sn=[];let cn=wt.nextSibling;for(;cn&&cn["s-sn"]===wt["s-sn"];)(3===cn.nodeType||1===cn.nodeType)&&sn.push(null!=(Yt=null==(Et=cn.textContent)?void 0:Et.trim())?Yt:""),cn=cn.nextSibling;return sn.filter(En=>""!==En).join(" ")}).filter(wt=>""!==wt).join(" ")+" "},set(Ne){On(this.childNodes).forEach(wt=>{let Et=wt.nextSibling;for(;Et&&Et["s-sn"]===wt["s-sn"];){const Yt=Et;Et=Et.nextSibling,Yt.remove()}if(""===wt["s-sn"]){const Yt=this.ownerDocument.createTextNode(Ne);Yt["s-sn"]="",ye(wt.parentElement,Yt,wt.nextSibling)}else wt.remove()})}})},xr=(z,me)=>{class Ne extends Array{item(wt){return this[wt]}}if(8&me.$flags$){const et=z.__lookupGetter__("childNodes");Object.defineProperty(z,"children",{get(){return this.childNodes.map(wt=>1===wt.nodeType)}}),Object.defineProperty(z,"childElementCount",{get:()=>z.children.length}),Object.defineProperty(z,"childNodes",{get(){const wt=et.call(this);if(!(1&W.$flags$)&&2&mi(this).$flags$){const Et=new Ne;for(let Yt=0;Yt{const me=[];for(const Ne of Array.from(z))Ne["s-sr"]&&me.push(Ne),me.push(...On(Ne.childNodes));return me},Fr=z=>z["s-sn"]||1===z.nodeType&&z.getAttribute("slot")||"",Or=(z,me,Ne)=>{let wt,et=0;for(;et{const Ne=[z];for(;(z=z.nextSibling)&&z["s-sn"]===me;)Ne.push(z);return Ne},Tr=(z,me={})=>{var Ne;const wt=[],Et=me.exclude||[],Yt=bt.customElements,sn=he.head,cn=sn.querySelector("meta[charset]"),En=he.createElement("style"),Nn=[],jn=he.querySelectorAll(`[${xe}]`);let lr,Vn=!0,qr=0;for(Object.assign(W,me),W.$resourcesUrl$=new URL(me.resourcesUrl||"./",he.baseURI).href,W.$flags$|=2;qr{br[1].map(wi=>{var Ni;const ki={$flags$:wi[0],$tagName$:wi[1],$members$:wi[2],$listeners$:wi[3]};4&ki.$flags$&&(jr=!0),ki.$members$=wi[2],ki.$listeners$=wi[3],ki.$attrsToReflect$=[],ki.$watchers$=null!=(Ni=wi[4])?Ni:{};const ho=ki.$tagName$,as=class extends HTMLElement{constructor(Ur){super(Ur),Hn(Ur=this,ki),1&ki.$flags$&&Ur.attachShadow({mode:"open",delegatesFocus:!!(16&ki.$flags$)})}connectedCallback(){lr&&(clearTimeout(lr),lr=null),Vn?Nn.push(this):W.jmp(()=>(z=>{if(!(1&W.$flags$)){const me=mi(z),Ne=me.$cmpMeta$,et=()=>{};if(1&me.$flags$)Gn(z,me,Ne.$listeners$),null!=me&&me.$lazyInstance$?pr(me.$lazyInstance$):null!=me&&me.$onReadyPromise$&&me.$onReadyPromise$.then(()=>pr(me.$lazyInstance$));else{let wt;if(me.$flags$|=1,wt=z.getAttribute(Fe),wt){if(1&Ne.$flags$){const Et=yr(z.shadowRoot,Ne,z.getAttribute("s-mode"));z.classList.remove(Et+"-h",Et+"-s")}((z,me,Ne,et)=>{const Et=z.shadowRoot,Yt=[],cn=Et?[]:null,En=et.$vnode$=on(me,null);W.$orgLocNodes$||Le(he.body,W.$orgLocNodes$=new Map),z[Fe]=Ne,z.removeAttribute(Fe),ve(En,Yt,[],cn,z,z,Ne),Yt.map(Nn=>{const jn=Nn.$hostId$+"."+Nn.$nodeId$,lr=W.$orgLocNodes$.get(jn),Vn=Nn.$elm$;lr&&Ve&&""===lr["s-en"]&&lr.parentNode.insertBefore(Vn,lr.nextSibling),Et||(Vn["s-hn"]=me,lr&&(Vn["s-ol"]=lr,Vn["s-ol"]["s-nr"]=Vn)),W.$orgLocNodes$.delete(jn)}),Et&&cn.map(Nn=>{Nn&&Et.appendChild(Nn)})})(z,Ne.$tagName$,wt,me)}wt||12&Ne.$flags$&&te(z);{let Et=z;for(;Et=Et.parentNode||Et.host;)if(1===Et.nodeType&&Et.hasAttribute("s-id")&&Et["s-p"]||Et["s-p"]){ct(me,me.$ancestorComponent$=Et);break}}Ne.$members$&&Object.entries(Ne.$members$).map(([Et,[Yt]])=>{if(31&Yt&&z.hasOwnProperty(Et)){const sn=z[Et];delete z[Et],z[Et]=sn}}),gi(z,me,Ne)}et()}})(this))}disconnectedCallback(){W.jmp(()=>ze(this))}componentOnReady(){return mi(this).$onReadyPromise$}};2&ki.$flags$&&((z,me)=>{x(z),ne(z),At(z),Ge(z),or(z),Jt(z),ln(z),Un(z),xr(z,me),Te(z)})(as.prototype,ki),ki.$lazyBundleId$=br[0],!Et.includes(ho)&&!Yt.get(ho)&&(wt.push(ho),Yt.define(ho,Ri(as,ki,1)))})}),wt.length>0&&(jr&&(En.textContent+=vn),En.textContent+=wt+"{visibility:hidden}.hydrated{visibility:inherit}",En.innerHTML.length)){En.setAttribute("data-styles","");const br=null!=(Ne=W.$nonce$)?Ne:Ze(he);null!=br&&En.setAttribute("nonce",br),sn.insertBefore(En,cn?cn.nextSibling:sn.firstChild)}Vn=!1,Nn.length?Nn.map(br=>br.connectedCallback()):W.jmp(()=>lr=setTimeout(Ar,30))},Gn=(z,me,Ne,et)=>{Ne&&Ne.map(([wt,Et,Yt])=>{const sn=ai(z,wt),cn=Cr(me,Yt),En=li(wt);W.ael(sn,Et,cn,En),(me.$rmListeners$=me.$rmListeners$||[]).push(()=>W.rel(sn,Et,cn,En))})},Cr=(z,me)=>Ne=>{try{256&z.$flags$?z.$lazyInstance$[me](Ne):(z.$queuedListeners$=z.$queuedListeners$||[]).push([me,Ne])}catch(et){ui(et)}},ai=(z,me)=>4&me?he:8&me?bt:16&me?he.body:z,li=z=>ot?{passive:!!(1&z),capture:!!(2&z)}:!!(2&z),Lr=new WeakMap,mi=z=>Lr.get(z),Wn=(z,me)=>Lr.set(me.$lazyInstance$=z,me),Hn=(z,me)=>{const Ne={$flags$:0,$hostElement$:z,$cmpMeta$:me,$instanceValues$:new Map};return Ne.$onInstancePromise$=new Promise(et=>Ne.$onInstanceResolve$=et),Ne.$onReadyPromise$=new Promise(et=>Ne.$onReadyResolve$=et),z["s-p"]=[],z["s-rc"]=[],Gn(z,Ne,me.$listeners$),Lr.set(z,Ne)},ao=(z,me)=>me in z,ui=(z,me)=>(0,console.error)(z,me),Ci=new Map,Eo=(z,me,Ne)=>{const et=z.$tagName$.replace(/-/g,"_"),wt=z.$lazyBundleId$,Et=Ci.get(wt);return Et?Et[et]:S(8996)(`./${wt}.entry.js`).then(Yt=>(Ci.set(wt,Yt),Yt[et]),ui)},No=new Map,oi=[],bt=typeof window<"u"?window:{},he=bt.document||{head:{}},W={$flags$:0,$resourcesUrl$:"",jmp:z=>z(),raf:z=>requestAnimationFrame(z),ael:(z,me,Ne,et)=>z.addEventListener(me,Ne,et),rel:(z,me,Ne,et)=>z.removeEventListener(me,Ne,et),ce:(z,me)=>new CustomEvent(z,me)},$e=z=>{Object.assign(W,z)},Ve=!0,ot=(()=>{let z=!1;try{he.addEventListener("e",null,Object.defineProperty({},"passive",{get(){z=!0}}))}catch{}return z})(),In=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch{}return!1})(),Fn=!1,b=[],j=[],re=(z,me)=>Ne=>{z.push(Ne),Fn||(Fn=!0,me&&4&W.$flags$?it(Ee):W.raf(Ee))},P=z=>{for(let me=0;me{P(b),P(j),(Fn=b.length>0)&&W.raf(Ee)},it=z=>Promise.resolve(void 0).then(z),sr=re(b,!1),ni=re(j,!0)},2725:(Tn,gt,S)=>{"use strict";S.d(gt,{b:()=>Xe,c:()=>Je,d:()=>Se,e:()=>tt,g:()=>we,l:()=>vn,s:()=>on,t:()=>_t,w:()=>Nt});var h=S(467),c=S(3664),Z=S(9672),Oe=S(4929),U=S(4920);const Xe="ionViewWillLeave",Je="ionViewDidLeave",Se="ionViewWillUnload",Ce=H=>{H.tabIndex=-1,H.focus()},Qe=H=>null!==H.offsetParent,qe="ion-last-focus",St_saveViewFocus=fe=>{if(c.c.get("focusManagerPriority",!1)){const ve=document.activeElement;null!==ve&&null!=fe&&fe.contains(ve)&&ve.setAttribute(qe,"true")}},St_setViewFocus=fe=>{const se=c.c.get("focusManagerPriority",!1);if(Array.isArray(se)&&!fe.contains(document.activeElement)){const ve=fe.querySelector(`[${qe}]`);if(ve&&Qe(ve))return void Ce(ve);for(const Le of se)switch(Le){case"content":const De=fe.querySelector('main, [role="main"]');if(De&&Qe(De))return void Ce(De);break;case"heading":const Wt=fe.querySelector('h1, [role="heading"][aria-level="1"]');if(Wt&&Qe(Wt))return void Ce(Wt);break;case"banner":const dn=fe.querySelector('header, [role="banner"]');if(dn&&Qe(dn))return void Ce(dn);break;default:(0,Oe.p)(`Unrecognized focus manager priority value ${Le}`)}Ce(fe)}},_t=H=>new Promise((X,fe)=>{(0,Z.w)(()=>{Tt(H),yt(H).then(se=>{se.animation&&se.animation.destroy(),mt(H),X(se)},se=>{mt(H),fe(se)})})}),Tt=H=>{const X=H.enteringEl,fe=H.leavingEl;St_saveViewFocus(fe),dt(X,fe,H.direction),H.showGoBack?X.classList.add("can-go-back"):X.classList.remove("can-go-back"),on(X,!1),X.style.setProperty("pointer-events","none"),fe&&(on(fe,!1),fe.style.setProperty("pointer-events","none"))},yt=function(){var H=(0,h.A)(function*(X){const fe=yield Me(X);return fe&&Z.B.isBrowser?Ye(fe,X):ge(X)});return function(fe){return H.apply(this,arguments)}}(),mt=H=>{const X=H.enteringEl,fe=H.leavingEl;X.classList.remove("ion-page-invisible"),X.style.removeProperty("pointer-events"),void 0!==fe&&(fe.classList.remove("ion-page-invisible"),fe.style.removeProperty("pointer-events")),St_setViewFocus(X)},Me=function(){var H=(0,h.A)(function*(X){return X.leavingEl&&X.animated&&0!==X.duration?X.animationBuilder?X.animationBuilder:"ios"===X.mode?(yield Promise.resolve().then(S.bind(S,8454))).iosTransitionAnimation:(yield Promise.resolve().then(S.bind(S,3314))).mdTransitionAnimation:void 0});return function(fe){return H.apply(this,arguments)}}(),Ye=function(){var H=(0,h.A)(function*(X,fe){yield Ue(fe,!0);const se=X(fe.baseEl,fe);at(fe.enteringEl,fe.leavingEl);const ve=yield xe(se,fe);return fe.progressCallback&&fe.progressCallback(void 0),ve&&Rt(fe.enteringEl,fe.leavingEl),{hasCompleted:ve,animation:se}});return function(fe,se){return H.apply(this,arguments)}}(),ge=function(){var H=(0,h.A)(function*(X){const fe=X.enteringEl,se=X.leavingEl,ve=c.c.get("focusManagerPriority",!1);return yield Ue(X,ve),at(fe,se),Rt(fe,se),{hasCompleted:!0}});return function(fe){return H.apply(this,arguments)}}(),Ue=function(){var H=(0,h.A)(function*(X,fe){(void 0!==X.deepWait?X.deepWait:fe)&&(yield Promise.all([tt(X.enteringEl),tt(X.leavingEl)])),yield Fe(X.viewIsReady,X.enteringEl)});return function(fe,se){return H.apply(this,arguments)}}(),Fe=function(){var H=(0,h.A)(function*(X,fe){X&&(yield X(fe))});return function(fe,se){return H.apply(this,arguments)}}(),xe=(H,X)=>{const fe=X.progressCallback,se=new Promise(ve=>{H.onFinish(Le=>ve(1===Le))});return fe?(H.progressStart(!0),fe(H)):H.play(),se},at=(H,X)=>{vn(X,Xe),vn(H,"ionViewWillEnter")},Rt=(H,X)=>{vn(H,"ionViewDidEnter"),vn(X,Je)},vn=(H,X)=>{if(H){const fe=new CustomEvent(X,{bubbles:!1,cancelable:!1});H.dispatchEvent(fe)}},Nt=()=>new Promise(H=>(0,U.r)(()=>(0,U.r)(()=>H()))),tt=function(){var H=(0,h.A)(function*(X){const fe=X;if(fe){if(null!=fe.componentOnReady){if(null!=(yield fe.componentOnReady()))return}else if(null!=fe.__registerHost)return void(yield new Promise(ve=>(0,U.r)(ve)));yield Promise.all(Array.from(fe.children).map(tt))}});return function(fe){return H.apply(this,arguments)}}(),on=(H,X)=>{X?(H.setAttribute("aria-hidden","true"),H.classList.add("ion-page-hidden")):(H.hidden=!1,H.removeAttribute("aria-hidden"),H.classList.remove("ion-page-hidden"))},dt=(H,X,fe)=>{void 0!==H&&(H.style.zIndex="back"===fe?"99":"101"),void 0!==X&&(X.style.zIndex="100")},we=H=>H.classList.contains("ion-page")?H:H.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")||H},4929:(Tn,gt,S)=>{"use strict";S.d(gt,{a:()=>c,b:()=>Z,p:()=>h});const h=(Oe,...U)=>console.warn(`[Ionic Warning]: ${Oe}`,...U),c=(Oe,...U)=>console.error(`[Ionic Error]: ${Oe}`,...U),Z=(Oe,...U)=>console.error(`<${Oe.tagName.toLowerCase()}> must be used inside ${U.join(" or ")}.`)},8476:(Tn,gt,S)=>{"use strict";S.d(gt,{d:()=>c,w:()=>h});const h=typeof window<"u"?window:void 0,c=typeof document<"u"?document:void 0},3664:(Tn,gt,S)=>{"use strict";S.d(gt,{a:()=>Ce,b:()=>on,c:()=>Z,i:()=>dt});var h=S(9672);class c{constructor(){this.m=new Map}reset(H){this.m=new Map(Object.entries(H))}get(H,X){const fe=this.m.get(H);return void 0!==fe?fe:X}getBoolean(H,X=!1){const fe=this.m.get(H);return void 0===fe?X:"string"==typeof fe?"true"===fe:!!fe}getNumber(H,X){const fe=parseFloat(this.m.get(H));return isNaN(fe)?void 0!==X?X:NaN:fe}set(H,X){this.m.set(H,X)}}const Z=new c,Je="ionic-persist-config",Ce=(we,H)=>("string"==typeof we&&(H=we,we=void 0),(we=>Qe(we))(we).includes(H)),Qe=(we=window)=>{if(typeof we>"u")return[];we.Ionic=we.Ionic||{};let H=we.Ionic.platforms;return null==H&&(H=we.Ionic.platforms=Ze(we),H.forEach(X=>we.document.documentElement.classList.add(`plt-${X}`))),H},Ze=we=>{const H=Z.get("platform");return Object.keys(Nt).filter(X=>{const fe=null==H?void 0:H[X];return"function"==typeof fe?fe(we):Nt[X](we)})},ht=we=>!!(Rt(we,/iPad/i)||Rt(we,/Macintosh/i)&&Me(we)),_t=we=>Rt(we,/android|sink/i),Me=we=>vn(we,"(any-pointer:coarse)"),ge=we=>Ue(we)||Fe(we),Ue=we=>!!(we.cordova||we.phonegap||we.PhoneGap),Fe=we=>{const H=we.Capacitor;return!(null==H||!H.isNative)},Rt=(we,H)=>H.test(we.navigator.userAgent),vn=(we,H)=>{var X;return null===(X=we.matchMedia)||void 0===X?void 0:X.call(we,H).matches},Nt={ipad:ht,iphone:we=>Rt(we,/iPhone/i),ios:we=>Rt(we,/iPhone|iPod/i)||ht(we),android:_t,phablet:we=>{const H=we.innerWidth,X=we.innerHeight,fe=Math.min(H,X),se=Math.max(H,X);return fe>390&&fe<520&&se>620&&se<800},tablet:we=>{const H=we.innerWidth,X=we.innerHeight,fe=Math.min(H,X),se=Math.max(H,X);return ht(we)||(we=>_t(we)&&!Rt(we,/mobile/i))(we)||fe>460&&fe<820&&se>780&&se<1400},cordova:Ue,capacitor:Fe,electron:we=>Rt(we,/electron/i),pwa:we=>{var H;return!!(null!==(H=we.matchMedia)&&void 0!==H&&H.call(we,"(display-mode: standalone)").matches||we.navigator.standalone)},mobile:Me,mobileweb:we=>Me(we)&&!ge(we),desktop:we=>!Me(we),hybrid:ge};let tt;const on=we=>we&&(0,h.g)(we)||tt,dt=(we={})=>{if(typeof window>"u")return;const H=window.document,X=window,fe=X.Ionic=X.Ionic||{},se={};we._ael&&(se.ael=we._ael),we._rel&&(se.rel=we._rel),we._ce&&(se.ce=we._ce),(0,h.a)(se);const ve=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(we=>{try{const H=we.sessionStorage.getItem(Je);return null!==H?JSON.parse(H):{}}catch{return{}}})(X)),{persistConfig:!1}),fe.config),(we=>{const H={};return we.location.search.slice(1).split("&").map(X=>X.split("=")).map(([X,fe])=>{try{return[decodeURIComponent(X),decodeURIComponent(fe)]}catch{return["",""]}}).filter(([X])=>((we,H)=>we.substr(0,H.length)===H)(X,"ionic:")).map(([X,fe])=>[X.slice(6),fe]).forEach(([X,fe])=>{H[X]=fe}),H})(X)),we);Z.reset(ve),Z.getBoolean("persistConfig")&&((we,H)=>{try{we.sessionStorage.setItem(Je,JSON.stringify(H))}catch{return}})(X,ve),Qe(X),fe.config=Z,fe.mode=tt=Z.get("mode",H.documentElement.getAttribute("mode")||(Ce(X,"ios")?"ios":"md")),Z.set("mode",tt),H.documentElement.setAttribute("mode",tt),H.documentElement.classList.add(tt),Z.getBoolean("_testing")&&Z.set("animated",!1);const Le=Wt=>{var dn;return null===(dn=Wt.tagName)||void 0===dn?void 0:dn.startsWith("ION-")},De=Wt=>["ios","md"].includes(Wt);(0,h.c)(Wt=>{for(;Wt;){const dn=Wt.mode||Wt.getAttribute("mode");if(dn){if(De(dn))return dn;Le(Wt)&&console.warn('Invalid ionic mode: "'+dn+'", expected: "ios" or "md"')}Wt=Wt.parentElement}return tt})}},8454:(Tn,gt,S)=>{"use strict";S.r(gt),S.d(gt,{iosTransitionAnimation:()=>qe,shadow:()=>Xe});var h=S(9986),c=S(2725);S(8476),S(3664),S(9672);const oe=Dt=>document.querySelector(`${Dt}.ion-cloned-element`),Xe=Dt=>Dt.shadowRoot||Dt,Je=Dt=>{const St="ION-TABS"===Dt.tagName?Dt:Dt.querySelector("ion-tabs"),_t="ion-content ion-header:not(.header-collapse-condense-inactive) ion-title.title-large";if(null!=St){const Tt=St.querySelector("ion-tab:not(.tab-hidden), .ion-page:not(.ion-page-hidden)");return null!=Tt?Tt.querySelector(_t):null}return Dt.querySelector(_t)},Se=(Dt,St)=>{const _t="ION-TABS"===Dt.tagName?Dt:Dt.querySelector("ion-tabs");let Tt=[];if(null!=_t){const yt=_t.querySelector("ion-tab:not(.tab-hidden), .ion-page:not(.ion-page-hidden)");null!=yt&&(Tt=yt.querySelectorAll("ion-buttons"))}else Tt=Dt.querySelectorAll("ion-buttons");for(const yt of Tt){const mt=yt.closest("ion-header"),Me=mt&&!mt.classList.contains("header-collapse-condense-inactive"),Ye=yt.querySelector("ion-back-button"),ge=yt.classList.contains("buttons-collapse");if(null!==Ye&&("start"===yt.slot||""===yt.slot)&&(ge&&Me&&St||!ge))return Ye}return null},Qe=(Dt,St,_t,Tt,yt,mt,Me,Ye,ge)=>{var Ue,Fe;const xe=St?`calc(100% - ${yt.right+4}px)`:yt.left-4+"px",at=St?"right":"left",Rt=St?"left":"right",vn=St?"right":"left";let Nt=1,tt=1,on=`scale(${tt})`;const dt="scale(1)";if(mt&&Me){const zt=(null===(Ue=mt.textContent)||void 0===Ue?void 0:Ue.trim())===(null===(Fe=Ye.textContent)||void 0===Fe?void 0:Fe.trim());Nt=ge.width/Me.width,tt=(ge.height-ht)/Me.height,on=zt?`scale(${Nt}, ${tt})`:`scale(${tt})`}const H=Xe(Tt).querySelector("ion-icon").getBoundingClientRect(),X=St?H.width/2-(H.right-yt.right)+"px":yt.left-H.width/2+"px",fe=St?`-${window.innerWidth-yt.right}px`:`${yt.left}px`,se=`${ge.top}px`,ve=`${yt.top}px`,Wt=_t?[{offset:0,transform:`translate3d(${fe}, ${ve}, 0)`},{offset:1,transform:`translate3d(${X}, ${se}, 0)`}]:[{offset:0,transform:`translate3d(${X}, ${se}, 0)`},{offset:1,transform:`translate3d(${fe}, ${ve}, 0)`}],rn=_t?[{offset:0,opacity:1,transform:dt},{offset:1,opacity:0,transform:on}]:[{offset:0,opacity:0,transform:on},{offset:1,opacity:1,transform:dt}],nr=_t?[{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,h.c)(),yr=(0,h.c)(),rr=(0,h.c)(),ir=oe("ion-back-button"),nt=Xe(ir).querySelector(".button-text"),Ot=Xe(ir).querySelector("ion-icon");ir.text=Tt.text,ir.mode=Tt.mode,ir.icon=Tt.icon,ir.color=Tt.color,ir.disabled=Tt.disabled,ir.style.setProperty("display","block"),ir.style.setProperty("position","fixed"),yr.addElement(Ot),er.addElement(nt),rr.addElement(ir),rr.beforeStyles({position:"absolute",top:"0px",[vn]:"0px"}).beforeAddWrite(()=>{Tt.style.setProperty("display","none"),ir.style.setProperty(at,xe)}).afterAddWrite(()=>{Tt.style.setProperty("display",""),ir.style.setProperty("display","none"),ir.style.removeProperty(at)}).keyframes(Wt),er.beforeStyles({"transform-origin":`${at} top`}).keyframes(rn),yr.beforeStyles({"transform-origin":`${Rt} center`}).keyframes(nr),Dt.addAnimation([er,yr,rr])},Ze=(Dt,St,_t,Tt,yt,mt,Me,Ye,ge)=>{var Ue,Fe;const xe=St?"right":"left",at=St?`calc(100% - ${yt.right}px)`:`${yt.left}px`,vn=`${yt.top}px`;let tt=St?`-${window.innerWidth-Me.right-8}px`:`${Me.x+8}px`,on=.5;const dt="scale(1)";let we=`scale(${on})`;if(Ye&&ge){tt=St?`-${window.innerWidth-ge.right-8}px`:ge.x-8+"px";const dn=(null===(Ue=Ye.textContent)||void 0===Ue?void 0:Ue.trim())===(null===(Fe=Tt.textContent)||void 0===Fe?void 0:Fe.trim());on=ge.height/(mt.height-ht),we=dn?`scale(${ge.width/mt.width}, ${on})`:`scale(${on})`}const fe=Me.top+Me.height/2-yt.height*on/2+"px",Le=_t?[{offset:0,opacity:0,transform:`translate3d(${tt}, ${fe}, 0) ${we}`},{offset:.1,opacity:0},{offset:1,opacity:1,transform:`translate3d(0px, ${vn}, 0) ${dt}`}]:[{offset:0,opacity:.99,transform:`translate3d(0px, ${vn}, 0) ${dt}`},{offset:.6,opacity:0},{offset:1,opacity:0,transform:`translate3d(${tt}, ${fe}, 0) ${we}`}],De=oe("ion-title"),Wt=(0,h.c)();De.innerText=Tt.innerText,De.size=Tt.size,De.color=Tt.color,Wt.addElement(De),Wt.beforeStyles({"transform-origin":`${xe} top`,height:`${yt.height}px`,display:"",position:"relative",[xe]:at}).beforeAddWrite(()=>{Tt.style.setProperty("opacity","0")}).afterAddWrite(()=>{Tt.style.setProperty("opacity",""),De.style.setProperty("display","none")}).keyframes(Le),Dt.addAnimation(Wt)},qe=(Dt,St)=>{var _t;try{const Tt="cubic-bezier(0.32,0.72,0,1)",yt="opacity",mt="transform",Me="0%",ge="rtl"===Dt.ownerDocument.dir,Ue=ge?"-99.5%":"99.5%",Fe=ge?"33%":"-33%",xe=St.enteringEl,at=St.leavingEl,Rt="back"===St.direction,vn=xe.querySelector(":scope > ion-content"),Nt=xe.querySelectorAll(":scope > ion-header > *:not(ion-toolbar), :scope > ion-footer > *"),tt=xe.querySelectorAll(":scope > ion-header > ion-toolbar"),on=(0,h.c)(),dt=(0,h.c)();if(on.addElement(xe).duration((null!==(_t=St.duration)&&void 0!==_t?_t:0)||540).easing(St.easing||Tt).fill("both").beforeRemoveClass("ion-page-invisible"),at&&null!=Dt){const fe=(0,h.c)();fe.addElement(Dt),on.addAnimation(fe)}if(vn||0!==tt.length||0!==Nt.length?(dt.addElement(vn),dt.addElement(Nt)):dt.addElement(xe.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")),on.addAnimation(dt),Rt?dt.beforeClearStyles([yt]).fromTo("transform",`translateX(${Fe})`,`translateX(${Me})`).fromTo(yt,.8,1):dt.beforeClearStyles([yt]).fromTo("transform",`translateX(${Ue})`,`translateX(${Me})`),vn){const fe=Xe(vn).querySelector(".transition-effect");if(fe){const se=fe.querySelector(".transition-cover"),ve=fe.querySelector(".transition-shadow"),Le=(0,h.c)(),De=(0,h.c)(),Wt=(0,h.c)();Le.addElement(fe).beforeStyles({opacity:"1",display:"block"}).afterStyles({opacity:"",display:""}),De.addElement(se).beforeClearStyles([yt]).fromTo(yt,0,.1),Wt.addElement(ve).beforeClearStyles([yt]).fromTo(yt,.03,.7),Le.addAnimation([De,Wt]),dt.addAnimation([Le])}}const we=xe.querySelector("ion-header.header-collapse-condense"),{forward:H,backward:X}=((Dt,St,_t,Tt,yt)=>{const mt=Se(Tt,_t),Me=Je(yt),Ye=Je(Tt),ge=Se(yt,_t),Ue=null!==mt&&null!==Me&&!_t,Fe=null!==Ye&&null!==ge&&_t;if(Ue){const xe=Me.getBoundingClientRect(),at=mt.getBoundingClientRect(),Rt=Xe(mt).querySelector(".button-text"),vn=null==Rt?void 0:Rt.getBoundingClientRect(),tt=Xe(Me).querySelector(".toolbar-title").getBoundingClientRect();Ze(Dt,St,_t,Me,xe,tt,at,Rt,vn),Qe(Dt,St,_t,mt,at,Rt,vn,Me,tt)}else if(Fe){const xe=Ye.getBoundingClientRect(),at=ge.getBoundingClientRect(),Rt=Xe(ge).querySelector(".button-text"),vn=null==Rt?void 0:Rt.getBoundingClientRect(),tt=Xe(Ye).querySelector(".toolbar-title").getBoundingClientRect();Ze(Dt,St,_t,Ye,xe,tt,at,Rt,vn),Qe(Dt,St,_t,ge,at,Rt,vn,Ye,tt)}return{forward:Ue,backward:Fe}})(on,ge,Rt,xe,at);if(tt.forEach(fe=>{const se=(0,h.c)();se.addElement(fe),on.addAnimation(se);const ve=(0,h.c)();ve.addElement(fe.querySelector("ion-title"));const Le=(0,h.c)(),De=Array.from(fe.querySelectorAll("ion-buttons,[menuToggle]")),Wt=fe.closest("ion-header"),dn=null==Wt?void 0:Wt.classList.contains("header-collapse-condense-inactive");let Kt;Kt=De.filter(Rt?er=>{const yr=er.classList.contains("buttons-collapse");return yr&&!dn||!yr}:er=>!er.classList.contains("buttons-collapse")),Le.addElement(Kt);const rn=(0,h.c)();rn.addElement(fe.querySelectorAll(":scope > *:not(ion-title):not(ion-buttons):not([menuToggle])"));const Ln=(0,h.c)();Ln.addElement(Xe(fe).querySelector(".toolbar-background"));const Zn=(0,h.c)(),nr=fe.querySelector("ion-back-button");if(nr&&Zn.addElement(nr),se.addAnimation([ve,Le,rn,Ln,Zn]),Le.fromTo(yt,.01,1),rn.fromTo(yt,.01,1),Rt)dn||ve.fromTo("transform",`translateX(${Fe})`,`translateX(${Me})`).fromTo(yt,.01,1),rn.fromTo("transform",`translateX(${Fe})`,`translateX(${Me})`),Zn.fromTo(yt,.01,1);else if(we||ve.fromTo("transform",`translateX(${Ue})`,`translateX(${Me})`).fromTo(yt,.01,1),rn.fromTo("transform",`translateX(${Ue})`,`translateX(${Me})`),Ln.beforeClearStyles([yt,"transform"]),(null==Wt?void 0:Wt.translucent)?Ln.fromTo("transform",ge?"translateX(-100%)":"translateX(100%)","translateX(0px)"):Ln.fromTo(yt,.01,"var(--opacity)"),H||Zn.fromTo(yt,.01,1),nr&&!H){const yr=(0,h.c)();yr.addElement(Xe(nr).querySelector(".button-text")).fromTo("transform",ge?"translateX(-100px)":"translateX(100px)","translateX(0px)"),se.addAnimation(yr)}}),at){const fe=(0,h.c)(),se=at.querySelector(":scope > ion-content"),ve=at.querySelectorAll(":scope > ion-header > ion-toolbar"),Le=at.querySelectorAll(":scope > ion-header > *:not(ion-toolbar), :scope > ion-footer > *");if(se||0!==ve.length||0!==Le.length?(fe.addElement(se),fe.addElement(Le)):fe.addElement(at.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")),on.addAnimation(fe),Rt){fe.beforeClearStyles([yt]).fromTo("transform",`translateX(${Me})`,ge?"translateX(-100%)":"translateX(100%)");const De=(0,c.g)(at);on.afterAddWrite(()=>{"normal"===on.getDirection()&&De.style.setProperty("display","none")})}else fe.fromTo("transform",`translateX(${Me})`,`translateX(${Fe})`).fromTo(yt,1,.8);if(se){const De=Xe(se).querySelector(".transition-effect");if(De){const Wt=De.querySelector(".transition-cover"),dn=De.querySelector(".transition-shadow"),Kt=(0,h.c)(),rn=(0,h.c)(),Ln=(0,h.c)();Kt.addElement(De).beforeStyles({opacity:"1",display:"block"}).afterStyles({opacity:"",display:""}),rn.addElement(Wt).beforeClearStyles([yt]).fromTo(yt,.1,0),Ln.addElement(dn).beforeClearStyles([yt]).fromTo(yt,.7,.03),Kt.addAnimation([rn,Ln]),fe.addAnimation([Kt])}}ve.forEach(De=>{const Wt=(0,h.c)();Wt.addElement(De);const dn=(0,h.c)();dn.addElement(De.querySelector("ion-title"));const Kt=(0,h.c)(),rn=De.querySelectorAll("ion-buttons,[menuToggle]"),Ln=De.closest("ion-header"),Zn=null==Ln?void 0:Ln.classList.contains("header-collapse-condense-inactive"),nr=Array.from(rn).filter(Ot=>{const zt=Ot.classList.contains("buttons-collapse");return zt&&!Zn||!zt});Kt.addElement(nr);const er=(0,h.c)(),yr=De.querySelectorAll(":scope > *:not(ion-title):not(ion-buttons):not([menuToggle])");yr.length>0&&er.addElement(yr);const rr=(0,h.c)();rr.addElement(Xe(De).querySelector(".toolbar-background"));const ir=(0,h.c)(),nt=De.querySelector("ion-back-button");if(nt&&ir.addElement(nt),Wt.addAnimation([dn,Kt,er,ir,rr]),on.addAnimation(Wt),ir.fromTo(yt,.99,0),Kt.fromTo(yt,.99,0),er.fromTo(yt,.99,0),Rt){if(Zn||dn.fromTo("transform",`translateX(${Me})`,ge?"translateX(-100%)":"translateX(100%)").fromTo(yt,.99,0),er.fromTo("transform",`translateX(${Me})`,ge?"translateX(-100%)":"translateX(100%)"),rr.beforeClearStyles([yt,"transform"]),(null==Ln?void 0:Ln.translucent)?rr.fromTo("transform","translateX(0px)",ge?"translateX(-100%)":"translateX(100%)"):rr.fromTo(yt,"var(--opacity)",0),nt&&!X){const zt=(0,h.c)();zt.addElement(Xe(nt).querySelector(".button-text")).fromTo("transform",`translateX(${Me})`,`translateX(${(ge?-124:124)+"px"})`),Wt.addAnimation(zt)}}else Zn||dn.fromTo("transform",`translateX(${Me})`,`translateX(${Fe})`).fromTo(yt,.99,0).afterClearStyles([mt,yt]),er.fromTo("transform",`translateX(${Me})`,`translateX(${Fe})`).afterClearStyles([mt,yt]),ir.afterClearStyles([yt]),dn.afterClearStyles([yt]),Kt.afterClearStyles([yt])})}return on}catch(Tt){throw Tt}},ht=10},3314:(Tn,gt,S)=>{"use strict";S.r(gt),S.d(gt,{mdTransitionAnimation:()=>ue});var h=S(9986),c=S(2725);S(8476),S(3664),S(9672);const ue=(oe,Xe)=>{var Je,Se,Ce;const qe="back"===Xe.direction,Dt=Xe.leavingEl,St=(0,c.g)(Xe.enteringEl),_t=St.querySelector("ion-toolbar"),Tt=(0,h.c)();if(Tt.addElement(St).fill("both").beforeRemoveClass("ion-page-invisible"),qe?Tt.duration((null!==(Je=Xe.duration)&&void 0!==Je?Je:0)||200).easing("cubic-bezier(0.47,0,0.745,0.715)"):Tt.duration((null!==(Se=Xe.duration)&&void 0!==Se?Se:0)||280).easing("cubic-bezier(0.36,0.66,0.04,1)").fromTo("transform","translateY(40px)","translateY(0px)").fromTo("opacity",.01,1),_t){const yt=(0,h.c)();yt.addElement(_t),Tt.addAnimation(yt)}if(Dt&&qe){Tt.duration((null!==(Ce=Xe.duration)&&void 0!==Ce?Ce:0)||200).easing("cubic-bezier(0.47,0,0.745,0.715)");const yt=(0,h.c)();yt.addElement((0,c.g)(Dt)).onFinish(mt=>{1===mt&&yt.elements.length>0&&yt.elements[0].style.setProperty("display","none")}).fromTo("transform","translateY(0px)","translateY(40px)").fromTo("opacity",1,0),Tt.addAnimation(yt)}return Tt}},6002:(Tn,gt,S)=>{"use strict";S.d(gt,{B:()=>rn,F:()=>ir,G:()=>Ln,O:()=>Zn,a:()=>St,b:()=>_t,c:()=>Me,d:()=>nr,e:()=>er,f:()=>H,g:()=>fe,h:()=>Le,i:()=>Wt,j:()=>ge,k:()=>Ue,l:()=>Tt,m:()=>yt,n:()=>Se,o:()=>dt,q:()=>Ce,s:()=>Kt});var h=S(467),c=S(8476),Z=S(4920),Oe=S(6411),U=S(3664),ue=S(8621),oe=S(1970),Xe=S(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])',Se=(nt,Ot)=>{const zt=nt.querySelector(Je);Qe(zt,null!=Ot?Ot:nt)},Ce=(nt,Ot)=>{const zt=Array.from(nt.querySelectorAll(Je));Qe(zt.length>0?zt[zt.length-1]:null,null!=Ot?Ot:nt)},Qe=(nt,Ot)=>{let zt=nt;const pn=null==nt?void 0:nt.shadowRoot;pn&&(zt=pn.querySelector(Je)||nt),zt?(0,Z.f)(zt):Ot.focus()};let Ze=0,qe=0;const ht=new WeakMap,Dt=nt=>({create:Ot=>Fe(nt,Ot),dismiss:(Ot,zt,pn)=>Nt(document,Ot,zt,nt,pn),getTop:()=>(0,h.A)(function*(){return dt(document,nt)})()}),St=Dt("ion-alert"),_t=Dt("ion-action-sheet"),Tt=Dt("ion-loading"),yt=Dt("ion-modal"),Me=Dt("ion-popover"),ge=nt=>{typeof document<"u"&&vn(document);const Ot=Ze++;nt.overlayIndex=Ot},Ue=nt=>(nt.hasAttribute("id")||(nt.id="ion-overlay-"+ ++qe),nt.id),Fe=(nt,Ot)=>typeof window<"u"&&typeof window.customElements<"u"?window.customElements.whenDefined(nt).then(()=>{const zt=document.createElement(nt);return zt.classList.add("overlay-hidden"),Object.assign(zt,Object.assign(Object.assign({},Ot),{hasController:!0})),se(document).appendChild(zt),new Promise(pn=>(0,Z.c)(zt,pn))}):Promise.resolve(),at=(nt,Ot)=>{let zt=nt;const pn=null==nt?void 0:nt.shadowRoot;pn&&(zt=pn.querySelector(Je)||nt),zt?(0,Z.f)(zt):Ot.focus()},vn=nt=>{0===Ze&&(Ze=1,nt.addEventListener("focus",Ot=>{((nt,Ot)=>{const zt=dt(Ot,"ion-alert,ion-action-sheet,ion-loading,ion-modal,ion-picker-legacy,ion-popover"),pn=nt.target;zt&&pn&&!zt.classList.contains(ir)&&(zt.shadowRoot?(()=>{if(zt.contains(pn))zt.lastFocus=pn;else if("ION-TOAST"===pn.tagName)at(zt.lastFocus,zt);else{const Mn=zt.lastFocus;Se(zt),Mn===Ot.activeElement&&Ce(zt),zt.lastFocus=Ot.activeElement}})():(()=>{if(zt===pn)zt.lastFocus=void 0;else if("ION-TOAST"===pn.tagName)at(zt.lastFocus,zt);else{const Mn=(0,Z.g)(zt);if(!Mn.contains(pn))return;const xn=Mn.querySelector(".ion-overlay-wrapper");if(!xn)return;if(xn.contains(pn)||pn===Mn.querySelector("ion-backdrop"))zt.lastFocus=pn;else{const mn=zt.lastFocus;Se(xn,zt),mn===Ot.activeElement&&Ce(xn,zt),zt.lastFocus=Ot.activeElement}}})())})(Ot,nt)},!0),nt.addEventListener("ionBackButton",Ot=>{const zt=dt(nt);null!=zt&&zt.backdropDismiss&&Ot.detail.register(Oe.OVERLAY_BACK_BUTTON_PRIORITY,()=>{zt.dismiss(void 0,rn)})}),(0,Oe.shouldUseCloseWatcher)()||nt.addEventListener("keydown",Ot=>{if("Escape"===Ot.key){const zt=dt(nt);null!=zt&&zt.backdropDismiss&&zt.dismiss(void 0,rn)}}))},Nt=(nt,Ot,zt,pn,gn)=>{const Sr=dt(nt,pn,gn);return Sr?Sr.dismiss(Ot,zt):Promise.reject("overlay does not exist")},on=(nt,Ot)=>((nt,Ot)=>(void 0===Ot&&(Ot="ion-alert,ion-action-sheet,ion-loading,ion-modal,ion-picker-legacy,ion-popover,ion-toast"),Array.from(nt.querySelectorAll(Ot)).filter(zt=>zt.overlayIndex>0)))(nt,Ot).filter(zt=>!(nt=>nt.classList.contains("overlay-hidden"))(zt)),dt=(nt,Ot,zt)=>{const pn=on(nt,Ot);return void 0===zt?pn[pn.length-1]:pn.find(gn=>gn.id===zt)},we=(nt=!1)=>{const zt=se(document).querySelector("ion-router-outlet, ion-nav, #ion-view-container-root");zt&&(nt?zt.setAttribute("aria-hidden","true"):zt.removeAttribute("aria-hidden"))},H=function(){var nt=(0,h.A)(function*(Ot,zt,pn,gn,Sr){var Mn,xn;if(Ot.presented)return;we(!0),document.body.classList.add(oe.B),yr(Ot.el),Ot.presented=!0,Ot.willPresent.emit(),null===(Mn=Ot.willPresentShorthand)||void 0===Mn||Mn.emit();const mn=(0,U.b)(Ot),en=Ot.enterAnimation?Ot.enterAnimation:U.c.get(zt,"ios"===mn?pn:gn);(yield ve(Ot,en,Ot.el,Sr))&&(Ot.didPresent.emit(),null===(xn=Ot.didPresentShorthand)||void 0===xn||xn.emit()),"ION-TOAST"!==Ot.el.tagName&&X(Ot.el),Ot.keyboardClose&&(null===document.activeElement||!Ot.el.contains(document.activeElement))&&Ot.el.focus(),Ot.el.removeAttribute("aria-hidden")});return function(zt,pn,gn,Sr,Mn){return nt.apply(this,arguments)}}(),X=function(){var nt=(0,h.A)(function*(Ot){let zt=document.activeElement;if(!zt)return;const pn=null==zt?void 0:zt.shadowRoot;pn&&(zt=pn.querySelector(Je)||zt),yield Ot.onDidDismiss(),(null===document.activeElement||document.activeElement===document.body)&&zt.focus()});return function(zt){return nt.apply(this,arguments)}}(),fe=function(){var nt=(0,h.A)(function*(Ot,zt,pn,gn,Sr,Mn,xn){var mn,en;if(!Ot.presented)return!1;void 0!==c.d&&1===on(c.d).length&&(we(!1),document.body.classList.remove(oe.B)),Ot.presented=!1;try{Ot.el.style.setProperty("pointer-events","none"),Ot.willDismiss.emit({data:zt,role:pn}),null===(mn=Ot.willDismissShorthand)||void 0===mn||mn.emit({data:zt,role:pn});const Ir=(0,U.b)(Ot),Nr=Ot.leaveAnimation?Ot.leaveAnimation:U.c.get(gn,"ios"===Ir?Sr:Mn);pn!==Ln&&(yield ve(Ot,Nr,Ot.el,xn)),Ot.didDismiss.emit({data:zt,role:pn}),null===(en=Ot.didDismissShorthand)||void 0===en||en.emit({data:zt,role:pn}),(ht.get(Ot)||[]).forEach(Dr=>Dr.destroy()),ht.delete(Ot),Ot.el.classList.add("overlay-hidden"),Ot.el.style.removeProperty("pointer-events"),void 0!==Ot.el.lastFocus&&(Ot.el.lastFocus=void 0)}catch(Ir){console.error(Ir)}return Ot.el.remove(),rr(),!0});return function(zt,pn,gn,Sr,Mn,xn,mn){return nt.apply(this,arguments)}}(),se=nt=>nt.querySelector("ion-app")||nt.body,ve=function(){var nt=(0,h.A)(function*(Ot,zt,pn,gn){pn.classList.remove("overlay-hidden");const Mn=zt(Ot.el,gn);(!Ot.animated||!U.c.getBoolean("animated",!0))&&Mn.duration(0),Ot.keyboardClose&&Mn.beforeAddWrite(()=>{const mn=pn.ownerDocument.activeElement;null!=mn&&mn.matches("input,ion-input, ion-textarea")&&mn.blur()});const xn=ht.get(Ot)||[];return ht.set(Ot,[...xn,Mn]),yield Mn.play(),!0});return function(zt,pn,gn,Sr){return nt.apply(this,arguments)}}(),Le=(nt,Ot)=>{let zt;const pn=new Promise(gn=>zt=gn);return De(nt,Ot,gn=>{zt(gn.detail)}),pn},De=(nt,Ot,zt)=>{const pn=gn=>{(0,Z.b)(nt,Ot,pn),zt(gn)};(0,Z.a)(nt,Ot,pn)},Wt=nt=>"cancel"===nt||nt===rn,dn=nt=>nt(),Kt=(nt,Ot)=>{if("function"==typeof nt)return U.c.get("_zoneGate",dn)(()=>{try{return nt(Ot)}catch(pn){throw pn}})},rn="backdrop",Ln="gesture",Zn=39,nr=nt=>{let zt,Ot=!1;const pn=(0,ue.C)(),gn=(xn=!1)=>{if(zt&&!xn)return{delegate:zt,inline:Ot};const{el:mn,hasController:en,delegate:Er}=nt;return Ot=null!==mn.parentNode&&!en,zt=Ot?Er||pn:Er,{inline:Ot,delegate:zt}};return{attachViewToDom:function(){var xn=(0,h.A)(function*(mn){const{delegate:en}=gn(!0);if(en)return yield en.attachViewToDom(nt.el,mn);const{hasController:Er}=nt;if(Er&&void 0!==mn)throw new Error("framework delegate is missing");return null});return function(en){return xn.apply(this,arguments)}}(),removeViewFromDom:()=>{const{delegate:xn}=gn();xn&&void 0!==nt.el&&xn.removeViewFromDom(nt.el.parentElement,nt.el)}}},er=()=>{let nt;const Ot=()=>{nt&&(nt(),nt=void 0)};return{addClickListener:(pn,gn)=>{Ot();const Sr=void 0!==gn?document.getElementById(gn):null;Sr?nt=((xn,mn)=>{const en=()=>{mn.present()};return xn.addEventListener("click",en),()=>{xn.removeEventListener("click",en)}})(Sr,pn):(0,Xe.p)(`A trigger element with the ID "${gn}" was not found in the DOM. The trigger element must be in the DOM when the "trigger" property is set on an overlay component.`,pn)},removeClickListener:Ot}},yr=nt=>{var Ot;if(void 0===c.d)return;const zt=on(c.d);for(let pn=zt.length-1;pn>=0;pn--){const gn=zt[pn],Sr=null!==(Ot=zt[pn+1])&&void 0!==Ot?Ot:nt;(Sr.hasAttribute("aria-hidden")||"ION-TOAST"!==Sr.tagName)&&gn.setAttribute("aria-hidden","true")}},rr=()=>{if(void 0===c.d)return;const nt=on(c.d);for(let Ot=nt.length-1;Ot>=0;Ot--){const zt=nt[Ot];if(zt.removeAttribute("aria-hidden"),"ION-TOAST"!==zt.tagName)break}},ir="ion-disable-focus-trap"},63:(Tn,gt,S)=>{"use strict";var h=S(345),c=S(4438),Z=S(7650),Oe=S(2872),U=S(7863),ue=S(177);function oe(De,Wt){if(1&De){const dn=c.RV6();c.j41(0,"ion-item",6),c.bIt("click",function(){c.eBV(dn);const rn=c.XpG().$implicit,Ln=c.XpG();return c.Njj(Ln.navigate(rn))}),c.nrm(1,"ion-icon",7),c.j41(2,"ion-label",8),c.EFF(3),c.k0s()()}if(2&De){const dn=c.XpG().$implicit;c.R7$(),c.Y8G("name",dn.icon),c.R7$(2),c.JRh(dn.title)}}function Xe(De,Wt){if(1&De&&(c.j41(0,"ion-item",9),c.nrm(1,"ion-icon",7),c.j41(2,"ion-label",8),c.EFF(3),c.k0s()()),2&De){const dn=c.XpG().$implicit;c.Y8G("routerLink",dn.url),c.R7$(),c.Y8G("name",dn.icon),c.R7$(2),c.JRh(dn.title)}}function Je(De,Wt){if(1&De&&(c.j41(0,"ion-menu-toggle",5),c.DNE(1,oe,4,2,"ion-item")(2,Xe,4,3),c.k0s()),2&De){const dn=Wt.$implicit;c.R7$(),c.vxM(1,dn.params?1:2)}}let Se=(()=>{var De;class Wt{constructor(Kt,rn){this.router=Kt,this.menuController=rn,this.menuItems=[{title:"Home",url:"/home",icon:"home"},{title:"Model The Product",url:"/model-product",icon:"cube"},{title:"Latency Test",url:"/latency-chooser",icon:"pulse"},{title:"Trace Test",url:"/trace-chooser",icon:"globe"},{title:"CPU Usage",url:"/flame-graph-for",params:{usage_type:"cpu"},icon:"stats-chart"},{title:"Memory Usage",url:"/flame-graph-for",params:{usage_type:"memory_usage"},icon:"swap-horizontal"},{title:"Software Testing",url:"/software-testing",icon:"flask"},{title:"My Team",url:"/myteam",icon:"people"}]}ngOnInit(){this.router.events.subscribe(Kt=>{Kt instanceof Z.wF&&(Kt.urlAfterRedirects.includes("/login")||Kt.urlAfterRedirects.includes("/register")?this.menuController.enable(!1):this.menuController.enable(!0))})}navigate(Kt){this.router.navigateByUrl("/",{skipLocationChange:!0}).then(()=>{this.router.navigate([Kt.url],{queryParams:Kt.params||{}})})}}return(De=Wt).\u0275fac=function(Kt){return new(Kt||De)(c.rXU(Z.Ix),c.rXU(U._t))},De.\u0275cmp=c.VBU({type:De,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,"click"],["slot","start",3,"name"],["color","primary"],[3,"routerLink"]],template:function(Kt,rn){1&Kt&&(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,Je,3,1,"ion-menu-toggle",3),c.k0s()()(),c.nrm(10,"ion-router-outlet",4),c.k0s()()),2&Kt&&(c.R7$(9),c.Y8G("ngForOf",rn.menuItems))},dependencies:[ue.Sq,U.U1,U.W9,U.eU,U.iq,U.uz,U.he,U.nf,U.oS,U.cA,U.HP,U.BC,U.ai,U.Rg,U.N7,Z.Wk]}),Wt})();var Ce=S(9842),Qe=S(8737),Ze=S(1203),qe=S(6354),ht=S(6697);S(2214);const St=(0,qe.T)(De=>!!De);let _t=(()=>{var De;class Wt{constructor(Kt,rn){(0,Ce.A)(this,"router",void 0),(0,Ce.A)(this,"auth",void 0),(0,Ce.A)(this,"canActivate",(Ln,Zn)=>{const nr=Ln.data.authGuardPipe||(()=>St);return(0,Qe.kQ)(this.auth).pipe((0,ht.s)(1),nr(Ln,Zn),(0,qe.T)(er=>"boolean"==typeof er?er:Array.isArray(er)?this.router.createUrlTree(er):this.router.parseUrl(er)))}),this.router=Kt,this.auth=rn}}return De=Wt,(0,Ce.A)(Wt,"\u0275fac",function(Kt){return new(Kt||De)(c.KVO(Z.Ix),c.KVO(Qe.Nj))}),(0,Ce.A)(Wt,"\u0275prov",c.jDH({token:De,factory:De.\u0275fac,providedIn:"any"})),Wt})();const Tt=De=>({canActivate:[_t],data:{authGuardPipe:De}}),at=()=>{return De=[""],(0,Ze.F)(St,(0,qe.T)(Wt=>Wt||De));var De},Rt=()=>{return De=["home"],(0,Ze.F)(St,(0,qe.T)(Wt=>Wt&&De||!0));var De},vn=[{path:"",redirectTo:"login",pathMatch:"full"},{path:"home",loadChildren:()=>Promise.all([S.e(2076),S.e(2069)]).then(S.bind(S,2069)).then(De=>De.HomePageModule),...Tt(at)},{path:"register",loadChildren:()=>Promise.all([S.e(2076),S.e(3825)]).then(S.bind(S,3825)).then(De=>De.RegisterPageModule),...Tt(Rt)},{path:"login",loadChildren:()=>Promise.all([S.e(2076),S.e(6688)]).then(S.bind(S,6688)).then(De=>De.LoginPageModule),...Tt(Rt)},{path:"myteam",loadChildren:()=>Promise.all([S.e(2076),S.e(839)]).then(S.bind(S,839)).then(De=>De.MyteamPageModule),...Tt(at)},{path:"model-product",loadChildren:()=>Promise.all([S.e(2076),S.e(3998)]).then(S.bind(S,3998)).then(De=>De.ModelProductPageModule),...Tt(at)},{path:"new-product",loadChildren:()=>Promise.all([S.e(2076),S.e(7444)]).then(S.bind(S,7444)).then(De=>De.NewProductPageModule),...Tt(at)},{path:"view-product",loadChildren:()=>Promise.all([S.e(2076),S.e(6927)]).then(S.bind(S,6927)).then(De=>De.ViewProductPageModule),...Tt(at)},{path:"show-map",loadChildren:()=>Promise.all([S.e(9273),S.e(2076),S.e(246)]).then(S.bind(S,246)).then(De=>De.ShowMapPageModule),...Tt(at)},{path:"latency-test",loadChildren:()=>Promise.all([S.e(2076),S.e(8533)]).then(S.bind(S,8533)).then(De=>De.LatencyTestPageModule),...Tt(at)},{path:"latency-chooser",loadChildren:()=>Promise.all([S.e(2076),S.e(5722)]).then(S.bind(S,5722)).then(De=>De.LatencyChooserPageModule),...Tt(at)},{path:"latency-results",loadChildren:()=>Promise.all([S.e(2076),S.e(6656)]).then(S.bind(S,6656)).then(De=>De.LatencyResultsPageModule),...Tt(at)},{path:"graph-latency",loadChildren:()=>Promise.all([S.e(2076),S.e(7923)]).then(S.bind(S,7923)).then(De=>De.GraphPageModule),...Tt(at)},{path:"trace-chooser",loadChildren:()=>Promise.all([S.e(2076),S.e(9906)]).then(S.bind(S,9906)).then(De=>De.TraceChooserPageModule),...Tt(at)},{path:"trace-test",loadChildren:()=>Promise.all([S.e(2076),S.e(3935)]).then(S.bind(S,3935)).then(De=>De.TraceTestPageModule),...Tt(at)},{path:"trace-results",loadChildren:()=>Promise.all([S.e(2076),S.e(1581)]).then(S.bind(S,1581)).then(De=>De.TraceResultsPageModule),...Tt(at)},{path:"show-map-trace",loadChildren:()=>Promise.all([S.e(9273),S.e(2076),S.e(2051)]).then(S.bind(S,2051)).then(De=>De.ShowMapTracePageModule),...Tt(at)},{path:"graph-data-for",loadChildren:()=>Promise.all([S.e(2076),S.e(1205)]).then(S.bind(S,1205)).then(De=>De.GraphDataForPageModule),...Tt(at)},{path:"graph-trace",loadChildren:()=>Promise.all([S.e(2076),S.e(7907)]).then(S.bind(S,7907)).then(De=>De.GraphTracePageModule),...Tt(at)},{path:"ai",loadChildren:()=>S.e(4348).then(S.bind(S,4348)).then(De=>De.AiPageModule),...Tt(at)},{path:"flame-graph",loadChildren:()=>Promise.all([S.e(2076),S.e(1101)]).then(S.bind(S,1101)).then(De=>De.FlameGraphPageModule),...Tt(at)},{path:"flame-graph-for",loadChildren:()=>Promise.all([S.e(2076),S.e(1207)]).then(S.bind(S,1207)).then(De=>De.FlameGraphForPageModule),...Tt(at)},{path:"flame-graph-date",loadChildren:()=>Promise.all([S.e(2076),S.e(2839)]).then(S.bind(S,2839)).then(De=>De.FlameGraphDatePageModule),...Tt(at)},{path:"flame-graph-compare",loadChildren:()=>Promise.all([S.e(2076),S.e(3151)]).then(S.bind(S,3151)).then(De=>De.FlameGraphComparePageModule),...Tt(at)},{path:"software-testing",loadChildren:()=>Promise.all([S.e(2076),S.e(1699)]).then(S.bind(S,1699)).then(De=>De.SoftwareTestingPageModule),...Tt(at)},{path:"software-testing-chooser",loadChildren:()=>Promise.all([S.e(2076),S.e(383)]).then(S.bind(S,383)).then(De=>De.SoftwareTestingChooserPageModule),...Tt(at)},{path:"create-system-test",loadChildren:()=>Promise.all([S.e(2076),S.e(5088)]).then(S.bind(S,5088)).then(De=>De.CreateSystemTestPageModule),...Tt(at)},{path:"execute-system-test",loadChildren:()=>Promise.all([S.e(2076),S.e(1062)]).then(S.bind(S,1062)).then(De=>De.ExecuteSystemTestPageModule),...Tt(at)},{path:"board",loadChildren:()=>Promise.all([S.e(2076),S.e(4443)]).then(S.bind(S,4443)).then(De=>De.BoardPageModule),...Tt(at)},{path:"render-restart",loadChildren:()=>S.e(2580).then(S.bind(S,2580)).then(De=>De.RenderRestartPageModule),...Tt(at)},{path:"view-history-system-test",loadChildren:()=>Promise.all([S.e(2076),S.e(4940)]).then(S.bind(S,4940)).then(De=>De.ViewHistorySystemTestPageModule)},{path:"view-system-test",loadChildren:()=>Promise.all([S.e(2076),S.e(7715)]).then(S.bind(S,7715)).then(De=>De.ViewSystemTestPageModule)}];let Nt=(()=>{var De;class Wt{}return(De=Wt).\u0275fac=function(Kt){return new(Kt||De)},De.\u0275mod=c.$C({type:De}),De.\u0275inj=c.G2t({imports:[Z.iI.forRoot(vn,{preloadingStrategy:Z.Kp}),Z.iI]}),Wt})();var tt=S(7440),on=S(4262);const dt_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 we=S(1626),H=S(2820),X=S(9032),fe=S(7616),se=S(9549);let ve=(()=>{var De;class Wt{}return(De=Wt).\u0275fac=function(Kt){return new(Kt||De)},De.\u0275mod=c.$C({type:De,bootstrap:[Se]}),De.\u0275inj=c.G2t({providers:[{provide:Z.b,useClass:Oe.jM},(0,tt.MW)(()=>(0,tt.Wp)(dt_firebase)),(0,on.hV)(()=>(0,on.aU)()),(0,Qe._q)(()=>(0,Qe.xI)()),(0,X.cw)(()=>(0,X.v_)()),we.q1,(0,H.eS)()],imports:[h.Bb,U.bv.forRoot(),Nt,we.q1,H.sN.forRoot({echarts:()=>S.e(9697).then(S.bind(S,9697))}),fe.n,se.y2.forRoot()]}),Wt})();(0,c.SmG)(),h.sG().bootstrapModule(ve).catch(De=>console.log(De))},4412:(Tn,gt,S)=>{"use strict";S.d(gt,{t:()=>c});var h=S(1413);class c extends h.B{constructor(Oe){super(),this._value=Oe}get value(){return this.getValue()}_subscribe(Oe){const U=super._subscribe(Oe);return!U.closed&&Oe.next(this._value),U}getValue(){const{hasError:Oe,thrownError:U,_value:ue}=this;if(Oe)throw U;return this._throwIfClosed(),ue}next(Oe){super.next(this._value=Oe)}}},1985:(Tn,gt,S)=>{"use strict";S.d(gt,{c:()=>Xe});var h=S(7707),c=S(8359),Z=S(3494),Oe=S(1203),U=S(1026),ue=S(8071),oe=S(9786);let Xe=(()=>{class Qe{constructor(qe){qe&&(this._subscribe=qe)}lift(qe){const ht=new Qe;return ht.source=this,ht.operator=qe,ht}subscribe(qe,ht,Dt){const St=function Ce(Qe){return Qe&&Qe instanceof h.vU||function Se(Qe){return Qe&&(0,ue.T)(Qe.next)&&(0,ue.T)(Qe.error)&&(0,ue.T)(Qe.complete)}(Qe)&&(0,c.Uv)(Qe)}(qe)?qe:new h.Ms(qe,ht,Dt);return(0,oe.Y)(()=>{const{operator:_t,source:Tt}=this;St.add(_t?_t.call(St,Tt):Tt?this._subscribe(St):this._trySubscribe(St))}),St}_trySubscribe(qe){try{return this._subscribe(qe)}catch(ht){qe.error(ht)}}forEach(qe,ht){return new(ht=Je(ht))((Dt,St)=>{const _t=new h.Ms({next:Tt=>{try{qe(Tt)}catch(yt){St(yt),_t.unsubscribe()}},error:St,complete:Dt});this.subscribe(_t)})}_subscribe(qe){var ht;return null===(ht=this.source)||void 0===ht?void 0:ht.subscribe(qe)}[Z.s](){return this}pipe(...qe){return(0,Oe.m)(qe)(this)}toPromise(qe){return new(qe=Je(qe))((ht,Dt)=>{let St;this.subscribe(_t=>St=_t,_t=>Dt(_t),()=>ht(St))})}}return Qe.create=Ze=>new Qe(Ze),Qe})();function Je(Qe){var Ze;return null!==(Ze=null!=Qe?Qe:U.$.Promise)&&void 0!==Ze?Ze:Promise}},2771:(Tn,gt,S)=>{"use strict";S.d(gt,{m:()=>Z});var h=S(1413),c=S(6129);class Z extends h.B{constructor(U=1/0,ue=1/0,oe=c.U){super(),this._bufferSize=U,this._windowTime=ue,this._timestampProvider=oe,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=ue===1/0,this._bufferSize=Math.max(1,U),this._windowTime=Math.max(1,ue)}next(U){const{isStopped:ue,_buffer:oe,_infiniteTimeWindow:Xe,_timestampProvider:Je,_windowTime:Se}=this;ue||(oe.push(U),!Xe&&oe.push(Je.now()+Se)),this._trimBuffer(),super.next(U)}_subscribe(U){this._throwIfClosed(),this._trimBuffer();const ue=this._innerSubscribe(U),{_infiniteTimeWindow:oe,_buffer:Xe}=this,Je=Xe.slice();for(let Se=0;Se{"use strict";S.d(gt,{B:()=>oe});var h=S(1985),c=S(8359);const Oe=(0,S(1853).L)(Je=>function(){Je(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var U=S(7908),ue=S(9786);let oe=(()=>{class Je extends h.c{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(Ce){const Qe=new Xe(this,this);return Qe.operator=Ce,Qe}_throwIfClosed(){if(this.closed)throw new Oe}next(Ce){(0,ue.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const Qe of this.currentObservers)Qe.next(Ce)}})}error(Ce){(0,ue.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=Ce;const{observers:Qe}=this;for(;Qe.length;)Qe.shift().error(Ce)}})}complete(){(0,ue.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:Ce}=this;for(;Ce.length;)Ce.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var Ce;return(null===(Ce=this.observers)||void 0===Ce?void 0:Ce.length)>0}_trySubscribe(Ce){return this._throwIfClosed(),super._trySubscribe(Ce)}_subscribe(Ce){return this._throwIfClosed(),this._checkFinalizedStatuses(Ce),this._innerSubscribe(Ce)}_innerSubscribe(Ce){const{hasError:Qe,isStopped:Ze,observers:qe}=this;return Qe||Ze?c.Kn:(this.currentObservers=null,qe.push(Ce),new c.yU(()=>{this.currentObservers=null,(0,U.o)(qe,Ce)}))}_checkFinalizedStatuses(Ce){const{hasError:Qe,thrownError:Ze,isStopped:qe}=this;Qe?Ce.error(Ze):qe&&Ce.complete()}asObservable(){const Ce=new h.c;return Ce.source=this,Ce}}return Je.create=(Se,Ce)=>new Xe(Se,Ce),Je})();class Xe extends oe{constructor(Se,Ce){super(),this.destination=Se,this.source=Ce}next(Se){var Ce,Qe;null===(Qe=null===(Ce=this.destination)||void 0===Ce?void 0:Ce.next)||void 0===Qe||Qe.call(Ce,Se)}error(Se){var Ce,Qe;null===(Qe=null===(Ce=this.destination)||void 0===Ce?void 0:Ce.error)||void 0===Qe||Qe.call(Ce,Se)}complete(){var Se,Ce;null===(Ce=null===(Se=this.destination)||void 0===Se?void 0:Se.complete)||void 0===Ce||Ce.call(Se)}_subscribe(Se){var Ce,Qe;return null!==(Qe=null===(Ce=this.source)||void 0===Ce?void 0:Ce.subscribe(Se))&&void 0!==Qe?Qe:c.Kn}}},7707:(Tn,gt,S)=>{"use strict";S.d(gt,{Ms:()=>Dt,vU:()=>Qe});var h=S(8071),c=S(8359),Z=S(1026),Oe=S(5334),U=S(5343);const ue=Je("C",void 0,void 0);function Je(mt,Me,Ye){return{kind:mt,value:Me,error:Ye}}var Se=S(9270),Ce=S(9786);class Qe extends c.yU{constructor(Me){super(),this.isStopped=!1,Me?(this.destination=Me,(0,c.Uv)(Me)&&Me.add(this)):this.destination=yt}static create(Me,Ye,ge){return new Dt(Me,Ye,ge)}next(Me){this.isStopped?Tt(function Xe(mt){return Je("N",mt,void 0)}(Me),this):this._next(Me)}error(Me){this.isStopped?Tt(function oe(mt){return Je("E",void 0,mt)}(Me),this):(this.isStopped=!0,this._error(Me))}complete(){this.isStopped?Tt(ue,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 Ze=Function.prototype.bind;function qe(mt,Me){return Ze.call(mt,Me)}class ht{constructor(Me){this.partialObserver=Me}next(Me){const{partialObserver:Ye}=this;if(Ye.next)try{Ye.next(Me)}catch(ge){St(ge)}}error(Me){const{partialObserver:Ye}=this;if(Ye.error)try{Ye.error(Me)}catch(ge){St(ge)}else St(Me)}complete(){const{partialObserver:Me}=this;if(Me.complete)try{Me.complete()}catch(Ye){St(Ye)}}}class Dt extends Qe{constructor(Me,Ye,ge){let Ue;if(super(),(0,h.T)(Me)||!Me)Ue={next:null!=Me?Me:void 0,error:null!=Ye?Ye:void 0,complete:null!=ge?ge:void 0};else{let Fe;this&&Z.$.useDeprecatedNextContext?(Fe=Object.create(Me),Fe.unsubscribe=()=>this.unsubscribe(),Ue={next:Me.next&&qe(Me.next,Fe),error:Me.error&&qe(Me.error,Fe),complete:Me.complete&&qe(Me.complete,Fe)}):Ue=Me}this.destination=new ht(Ue)}}function St(mt){Z.$.useDeprecatedSynchronousErrorHandling?(0,Ce.l)(mt):(0,Oe.m)(mt)}function Tt(mt,Me){const{onStoppedNotification:Ye}=Z.$;Ye&&Se.f.setTimeout(()=>Ye(mt,Me))}const yt={closed:!0,next:U.l,error:function _t(mt){throw mt},complete:U.l}},8359:(Tn,gt,S)=>{"use strict";S.d(gt,{Kn:()=>ue,yU:()=>U,Uv:()=>oe});var h=S(8071);const Z=(0,S(1853).L)(Je=>function(Ce){Je(this),this.message=Ce?`${Ce.length} errors occurred during unsubscription:\n${Ce.map((Qe,Ze)=>`${Ze+1}) ${Qe.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=Ce});var Oe=S(7908);class U{constructor(Se){this.initialTeardown=Se,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let Se;if(!this.closed){this.closed=!0;const{_parentage:Ce}=this;if(Ce)if(this._parentage=null,Array.isArray(Ce))for(const qe of Ce)qe.remove(this);else Ce.remove(this);const{initialTeardown:Qe}=this;if((0,h.T)(Qe))try{Qe()}catch(qe){Se=qe instanceof Z?qe.errors:[qe]}const{_finalizers:Ze}=this;if(Ze){this._finalizers=null;for(const qe of Ze)try{Xe(qe)}catch(ht){Se=null!=Se?Se:[],ht instanceof Z?Se=[...Se,...ht.errors]:Se.push(ht)}}if(Se)throw new Z(Se)}}add(Se){var Ce;if(Se&&Se!==this)if(this.closed)Xe(Se);else{if(Se instanceof U){if(Se.closed||Se._hasParent(this))return;Se._addParent(this)}(this._finalizers=null!==(Ce=this._finalizers)&&void 0!==Ce?Ce:[]).push(Se)}}_hasParent(Se){const{_parentage:Ce}=this;return Ce===Se||Array.isArray(Ce)&&Ce.includes(Se)}_addParent(Se){const{_parentage:Ce}=this;this._parentage=Array.isArray(Ce)?(Ce.push(Se),Ce):Ce?[Ce,Se]:Se}_removeParent(Se){const{_parentage:Ce}=this;Ce===Se?this._parentage=null:Array.isArray(Ce)&&(0,Oe.o)(Ce,Se)}remove(Se){const{_finalizers:Ce}=this;Ce&&(0,Oe.o)(Ce,Se),Se instanceof U&&Se._removeParent(this)}}U.EMPTY=(()=>{const Je=new U;return Je.closed=!0,Je})();const ue=U.EMPTY;function oe(Je){return Je instanceof U||Je&&"closed"in Je&&(0,h.T)(Je.remove)&&(0,h.T)(Je.add)&&(0,h.T)(Je.unsubscribe)}function Xe(Je){(0,h.T)(Je)?Je():Je.unsubscribe()}},1026:(Tn,gt,S)=>{"use strict";S.d(gt,{$:()=>h});const h={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},4572:(Tn,gt,S)=>{"use strict";S.d(gt,{z:()=>Se});var h=S(1985),c=S(3073),Z=S(8455),Oe=S(3669),U=S(6450),ue=S(9326),oe=S(8496),Xe=S(4360),Je=S(5225);function Se(...Ze){const qe=(0,ue.lI)(Ze),ht=(0,ue.ms)(Ze),{args:Dt,keys:St}=(0,c.D)(Ze);if(0===Dt.length)return(0,Z.H)([],qe);const _t=new h.c(function Ce(Ze,qe,ht=Oe.D){return Dt=>{Qe(qe,()=>{const{length:St}=Ze,_t=new Array(St);let Tt=St,yt=St;for(let mt=0;mt{const Me=(0,Z.H)(Ze[mt],qe);let Ye=!1;Me.subscribe((0,Xe._)(Dt,ge=>{_t[mt]=ge,Ye||(Ye=!0,yt--),yt||Dt.next(ht(_t.slice()))},()=>{--Tt||Dt.complete()}))},Dt)},Dt)}}(Dt,qe,St?Tt=>(0,oe.e)(St,Tt):Oe.D));return ht?_t.pipe((0,U.I)(ht)):_t}function Qe(Ze,qe,ht){Ze?(0,Je.N)(ht,Ze,qe):qe()}},8793:(Tn,gt,S)=>{"use strict";S.d(gt,{x:()=>U});var h=S(6365),Z=S(9326),Oe=S(8455);function U(...ue){return function c(){return(0,h.U)(1)}()((0,Oe.H)(ue,(0,Z.lI)(ue)))}},983:(Tn,gt,S)=>{"use strict";S.d(gt,{w:()=>c});const c=new(S(1985).c)(U=>U.complete())},8455:(Tn,gt,S)=>{"use strict";S.d(gt,{H:()=>Me});var h=S(8750),c=S(941),Z=S(6745),ue=S(1985),Xe=S(4761),Je=S(8071),Se=S(5225);function Qe(Ye,ge){if(!Ye)throw new Error("Iterable cannot be null");return new ue.c(Ue=>{(0,Se.N)(Ue,ge,()=>{const Fe=Ye[Symbol.asyncIterator]();(0,Se.N)(Ue,ge,()=>{Fe.next().then(xe=>{xe.done?Ue.complete():Ue.next(xe.value)})},0,!0)})})}var Ze=S(5055),qe=S(9858),ht=S(7441),Dt=S(5397),St=S(7953),_t=S(591),Tt=S(5196);function Me(Ye,ge){return ge?function mt(Ye,ge){if(null!=Ye){if((0,Ze.l)(Ye))return function Oe(Ye,ge){return(0,h.Tg)(Ye).pipe((0,Z._)(ge),(0,c.Q)(ge))}(Ye,ge);if((0,ht.X)(Ye))return function oe(Ye,ge){return new ue.c(Ue=>{let Fe=0;return ge.schedule(function(){Fe===Ye.length?Ue.complete():(Ue.next(Ye[Fe++]),Ue.closed||this.schedule())})})}(Ye,ge);if((0,qe.y)(Ye))return function U(Ye,ge){return(0,h.Tg)(Ye).pipe((0,Z._)(ge),(0,c.Q)(ge))}(Ye,ge);if((0,St.T)(Ye))return Qe(Ye,ge);if((0,Dt.x)(Ye))return function Ce(Ye,ge){return new ue.c(Ue=>{let Fe;return(0,Se.N)(Ue,ge,()=>{Fe=Ye[Xe.l](),(0,Se.N)(Ue,ge,()=>{let xe,at;try{({value:xe,done:at}=Fe.next())}catch(Rt){return void Ue.error(Rt)}at?Ue.complete():Ue.next(xe)},0,!0)}),()=>(0,Je.T)(null==Fe?void 0:Fe.return)&&Fe.return()})}(Ye,ge);if((0,Tt.U)(Ye))return function yt(Ye,ge){return Qe((0,Tt.C)(Ye),ge)}(Ye,ge)}throw(0,_t.L)(Ye)}(Ye,ge):(0,h.Tg)(Ye)}},3726:(Tn,gt,S)=>{"use strict";S.d(gt,{R:()=>Se});var h=S(8750),c=S(1985),Z=S(1397),Oe=S(7441),U=S(8071),ue=S(6450);const oe=["addListener","removeListener"],Xe=["addEventListener","removeEventListener"],Je=["on","off"];function Se(ht,Dt,St,_t){if((0,U.T)(St)&&(_t=St,St=void 0),_t)return Se(ht,Dt,St).pipe((0,ue.I)(_t));const[Tt,yt]=function qe(ht){return(0,U.T)(ht.addEventListener)&&(0,U.T)(ht.removeEventListener)}(ht)?Xe.map(mt=>Me=>ht[mt](Dt,Me,St)):function Qe(ht){return(0,U.T)(ht.addListener)&&(0,U.T)(ht.removeListener)}(ht)?oe.map(Ce(ht,Dt)):function Ze(ht){return(0,U.T)(ht.on)&&(0,U.T)(ht.off)}(ht)?Je.map(Ce(ht,Dt)):[];if(!Tt&&(0,Oe.X)(ht))return(0,Z.Z)(mt=>Se(mt,Dt,St))((0,h.Tg)(ht));if(!Tt)throw new TypeError("Invalid event target");return new c.c(mt=>{const Me=(...Ye)=>mt.next(1yt(Me)})}function Ce(ht,Dt){return St=>_t=>ht[St](Dt,_t)}},8750:(Tn,gt,S)=>{"use strict";S.d(gt,{Tg:()=>Ze});var h=S(1635),c=S(7441),Z=S(9858),Oe=S(1985),U=S(5055),ue=S(7953),oe=S(591),Xe=S(5397),Je=S(5196),Se=S(8071),Ce=S(5334),Qe=S(3494);function Ze(mt){if(mt instanceof Oe.c)return mt;if(null!=mt){if((0,U.l)(mt))return function qe(mt){return new Oe.c(Me=>{const Ye=mt[Qe.s]();if((0,Se.T)(Ye.subscribe))return Ye.subscribe(Me);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(mt);if((0,c.X)(mt))return function ht(mt){return new Oe.c(Me=>{for(let Ye=0;Ye{mt.then(Ye=>{Me.closed||(Me.next(Ye),Me.complete())},Ye=>Me.error(Ye)).then(null,Ce.m)})}(mt);if((0,ue.T)(mt))return _t(mt);if((0,Xe.x)(mt))return function St(mt){return new Oe.c(Me=>{for(const Ye of mt)if(Me.next(Ye),Me.closed)return;Me.complete()})}(mt);if((0,Je.U)(mt))return function Tt(mt){return _t((0,Je.C)(mt))}(mt)}throw(0,oe.L)(mt)}function _t(mt){return new Oe.c(Me=>{(function yt(mt,Me){var Ye,ge,Ue,Fe;return(0,h.sH)(this,void 0,void 0,function*(){try{for(Ye=(0,h.xN)(mt);!(ge=yield Ye.next()).done;)if(Me.next(ge.value),Me.closed)return}catch(xe){Ue={error:xe}}finally{try{ge&&!ge.done&&(Fe=Ye.return)&&(yield Fe.call(Ye))}finally{if(Ue)throw Ue.error}}Me.complete()})})(mt,Me).catch(Ye=>Me.error(Ye))})}},7786:(Tn,gt,S)=>{"use strict";S.d(gt,{h:()=>ue});var h=S(6365),c=S(8750),Z=S(983),Oe=S(9326),U=S(8455);function ue(...oe){const Xe=(0,Oe.lI)(oe),Je=(0,Oe.R0)(oe,1/0),Se=oe;return Se.length?1===Se.length?(0,c.Tg)(Se[0]):(0,h.U)(Je)((0,U.H)(Se,Xe)):Z.w}},7673:(Tn,gt,S)=>{"use strict";S.d(gt,{of:()=>Z});var h=S(9326),c=S(8455);function Z(...Oe){const U=(0,h.lI)(Oe);return(0,c.H)(Oe,U)}},1584:(Tn,gt,S)=>{"use strict";S.d(gt,{O:()=>U});var h=S(1985),c=S(3236),Z=S(9470);function U(ue=0,oe,Xe=c.b){let Je=-1;return null!=oe&&((0,Z.m)(oe)?Xe=oe:Je=oe),new h.c(Se=>{let Ce=function Oe(ue){return ue instanceof Date&&!isNaN(ue)}(ue)?+ue-Xe.now():ue;Ce<0&&(Ce=0);let Qe=0;return Xe.schedule(function(){Se.closed||(Se.next(Qe++),0<=Je?this.schedule(void 0,Je):Se.complete())},Ce)})}},4360:(Tn,gt,S)=>{"use strict";S.d(gt,{_:()=>c});var h=S(7707);function c(Oe,U,ue,oe,Xe){return new Z(Oe,U,ue,oe,Xe)}class Z extends h.vU{constructor(U,ue,oe,Xe,Je,Se){super(U),this.onFinalize=Je,this.shouldUnsubscribe=Se,this._next=ue?function(Ce){try{ue(Ce)}catch(Qe){U.error(Qe)}}:super._next,this._error=Xe?function(Ce){try{Xe(Ce)}catch(Qe){U.error(Qe)}finally{this.unsubscribe()}}:super._error,this._complete=oe?function(){try{oe()}catch(Ce){U.error(Ce)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var U;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:ue}=this;super.unsubscribe(),!ue&&(null===(U=this.onFinalize)||void 0===U||U.call(this))}}}},274:(Tn,gt,S)=>{"use strict";S.d(gt,{H:()=>Z});var h=S(1397),c=S(8071);function Z(Oe,U){return(0,c.T)(U)?(0,h.Z)(Oe,U,1):(0,h.Z)(Oe,1)}},9901:(Tn,gt,S)=>{"use strict";S.d(gt,{U:()=>Z});var h=S(9974),c=S(4360);function Z(Oe){return(0,h.N)((U,ue)=>{let oe=!1;U.subscribe((0,c._)(ue,Xe=>{oe=!0,ue.next(Xe)},()=>{oe||ue.next(Oe),ue.complete()}))})}},3294:(Tn,gt,S)=>{"use strict";S.d(gt,{F:()=>Oe});var h=S(3669),c=S(9974),Z=S(4360);function Oe(ue,oe=h.D){return ue=null!=ue?ue:U,(0,c.N)((Xe,Je)=>{let Se,Ce=!0;Xe.subscribe((0,Z._)(Je,Qe=>{const Ze=oe(Qe);(Ce||!ue(Se,Ze))&&(Ce=!1,Se=Ze,Je.next(Qe))}))})}function U(ue,oe){return ue===oe}},5964:(Tn,gt,S)=>{"use strict";S.d(gt,{p:()=>Z});var h=S(9974),c=S(4360);function Z(Oe,U){return(0,h.N)((ue,oe)=>{let Xe=0;ue.subscribe((0,c._)(oe,Je=>Oe.call(U,Je,Xe++)&&oe.next(Je)))})}},980:(Tn,gt,S)=>{"use strict";S.d(gt,{j:()=>c});var h=S(9974);function c(Z){return(0,h.N)((Oe,U)=>{try{Oe.subscribe(U)}finally{U.add(Z)}})}},1594:(Tn,gt,S)=>{"use strict";S.d(gt,{$:()=>oe});var h=S(9350),c=S(5964),Z=S(6697),Oe=S(9901),U=S(3774),ue=S(3669);function oe(Xe,Je){const Se=arguments.length>=2;return Ce=>Ce.pipe(Xe?(0,c.p)((Qe,Ze)=>Xe(Qe,Ze,Ce)):ue.D,(0,Z.s)(1),Se?(0,Oe.U)(Je):(0,U.v)(()=>new h.G))}},6354:(Tn,gt,S)=>{"use strict";S.d(gt,{T:()=>Z});var h=S(9974),c=S(4360);function Z(Oe,U){return(0,h.N)((ue,oe)=>{let Xe=0;ue.subscribe((0,c._)(oe,Je=>{oe.next(Oe.call(U,Je,Xe++))}))})}},3703:(Tn,gt,S)=>{"use strict";S.d(gt,{u:()=>c});var h=S(6354);function c(Z){return(0,h.T)(()=>Z)}},6365:(Tn,gt,S)=>{"use strict";S.d(gt,{U:()=>Z});var h=S(1397),c=S(3669);function Z(Oe=1/0){return(0,h.Z)(c.D,Oe)}},1397:(Tn,gt,S)=>{"use strict";S.d(gt,{Z:()=>Xe});var h=S(6354),c=S(8750),Z=S(9974),Oe=S(5225),U=S(4360),oe=S(8071);function Xe(Je,Se,Ce=1/0){return(0,oe.T)(Se)?Xe((Qe,Ze)=>(0,h.T)((qe,ht)=>Se(Qe,qe,Ze,ht))((0,c.Tg)(Je(Qe,Ze))),Ce):("number"==typeof Se&&(Ce=Se),(0,Z.N)((Qe,Ze)=>function ue(Je,Se,Ce,Qe,Ze,qe,ht,Dt){const St=[];let _t=0,Tt=0,yt=!1;const mt=()=>{yt&&!St.length&&!_t&&Se.complete()},Me=ge=>_t{qe&&Se.next(ge),_t++;let Ue=!1;(0,c.Tg)(Ce(ge,Tt++)).subscribe((0,U._)(Se,Fe=>{null==Ze||Ze(Fe),qe?Me(Fe):Se.next(Fe)},()=>{Ue=!0},void 0,()=>{if(Ue)try{for(_t--;St.length&&_tYe(Fe)):Ye(Fe)}mt()}catch(Fe){Se.error(Fe)}}))};return Je.subscribe((0,U._)(Se,Me,()=>{yt=!0,mt()})),()=>{null==Dt||Dt()}}(Qe,Ze,Je,Ce)))}},941:(Tn,gt,S)=>{"use strict";S.d(gt,{Q:()=>Oe});var h=S(5225),c=S(9974),Z=S(4360);function Oe(U,ue=0){return(0,c.N)((oe,Xe)=>{oe.subscribe((0,Z._)(Xe,Je=>(0,h.N)(Xe,U,()=>Xe.next(Je),ue),()=>(0,h.N)(Xe,U,()=>Xe.complete(),ue),Je=>(0,h.N)(Xe,U,()=>Xe.error(Je),ue)))})}},9172:(Tn,gt,S)=>{"use strict";S.d(gt,{Z:()=>Oe});var h=S(8793),c=S(9326),Z=S(9974);function Oe(...U){const ue=(0,c.lI)(U);return(0,Z.N)((oe,Xe)=>{(ue?(0,h.x)(U,oe,ue):(0,h.x)(U,oe)).subscribe(Xe)})}},6745:(Tn,gt,S)=>{"use strict";S.d(gt,{_:()=>c});var h=S(9974);function c(Z,Oe=0){return(0,h.N)((U,ue)=>{ue.add(Z.schedule(()=>U.subscribe(ue),Oe))})}},5558:(Tn,gt,S)=>{"use strict";S.d(gt,{n:()=>Oe});var h=S(8750),c=S(9974),Z=S(4360);function Oe(U,ue){return(0,c.N)((oe,Xe)=>{let Je=null,Se=0,Ce=!1;const Qe=()=>Ce&&!Je&&Xe.complete();oe.subscribe((0,Z._)(Xe,Ze=>{null==Je||Je.unsubscribe();let qe=0;const ht=Se++;(0,h.Tg)(U(Ze,ht)).subscribe(Je=(0,Z._)(Xe,Dt=>Xe.next(ue?ue(Ze,Dt,ht,qe++):Dt),()=>{Je=null,Qe()}))},()=>{Ce=!0,Qe()}))})}},6697:(Tn,gt,S)=>{"use strict";S.d(gt,{s:()=>Oe});var h=S(983),c=S(9974),Z=S(4360);function Oe(U){return U<=0?()=>h.w:(0,c.N)((ue,oe)=>{let Xe=0;ue.subscribe((0,Z._)(oe,Je=>{++Xe<=U&&(oe.next(Je),U<=Xe&&oe.complete())}))})}},6977:(Tn,gt,S)=>{"use strict";S.d(gt,{Q:()=>U});var h=S(9974),c=S(4360),Z=S(8750),Oe=S(5343);function U(ue){return(0,h.N)((oe,Xe)=>{(0,Z.Tg)(ue).subscribe((0,c._)(Xe,()=>Xe.complete(),Oe.l)),!Xe.closed&&oe.subscribe(Xe)})}},8141:(Tn,gt,S)=>{"use strict";S.d(gt,{M:()=>U});var h=S(8071),c=S(9974),Z=S(4360),Oe=S(3669);function U(ue,oe,Xe){const Je=(0,h.T)(ue)||oe||Xe?{next:ue,error:oe,complete:Xe}:ue;return Je?(0,c.N)((Se,Ce)=>{var Qe;null===(Qe=Je.subscribe)||void 0===Qe||Qe.call(Je);let Ze=!0;Se.subscribe((0,Z._)(Ce,qe=>{var ht;null===(ht=Je.next)||void 0===ht||ht.call(Je,qe),Ce.next(qe)},()=>{var qe;Ze=!1,null===(qe=Je.complete)||void 0===qe||qe.call(Je),Ce.complete()},qe=>{var ht;Ze=!1,null===(ht=Je.error)||void 0===ht||ht.call(Je,qe),Ce.error(qe)},()=>{var qe,ht;Ze&&(null===(qe=Je.unsubscribe)||void 0===qe||qe.call(Je)),null===(ht=Je.finalize)||void 0===ht||ht.call(Je)}))}):Oe.D}},3774:(Tn,gt,S)=>{"use strict";S.d(gt,{v:()=>Oe});var h=S(9350),c=S(9974),Z=S(4360);function Oe(ue=U){return(0,c.N)((oe,Xe)=>{let Je=!1;oe.subscribe((0,Z._)(Xe,Se=>{Je=!0,Xe.next(Se)},()=>Je?Xe.complete():Xe.error(ue())))})}function U(){return new h.G}},6780:(Tn,gt,S)=>{"use strict";S.d(gt,{R:()=>U});var h=S(8359);class c extends h.yU{constructor(oe,Xe){super()}schedule(oe,Xe=0){return this}}const Z={setInterval(ue,oe,...Xe){const{delegate:Je}=Z;return null!=Je&&Je.setInterval?Je.setInterval(ue,oe,...Xe):setInterval(ue,oe,...Xe)},clearInterval(ue){const{delegate:oe}=Z;return((null==oe?void 0:oe.clearInterval)||clearInterval)(ue)},delegate:void 0};var Oe=S(7908);class U extends c{constructor(oe,Xe){super(oe,Xe),this.scheduler=oe,this.work=Xe,this.pending=!1}schedule(oe,Xe=0){var Je;if(this.closed)return this;this.state=oe;const Se=this.id,Ce=this.scheduler;return null!=Se&&(this.id=this.recycleAsyncId(Ce,Se,Xe)),this.pending=!0,this.delay=Xe,this.id=null!==(Je=this.id)&&void 0!==Je?Je:this.requestAsyncId(Ce,this.id,Xe),this}requestAsyncId(oe,Xe,Je=0){return Z.setInterval(oe.flush.bind(oe,this),Je)}recycleAsyncId(oe,Xe,Je=0){if(null!=Je&&this.delay===Je&&!1===this.pending)return Xe;null!=Xe&&Z.clearInterval(Xe)}execute(oe,Xe){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const Je=this._execute(oe,Xe);if(Je)return Je;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(oe,Xe){let Se,Je=!1;try{this.work(oe)}catch(Ce){Je=!0,Se=Ce||new Error("Scheduled action threw falsy error")}if(Je)return this.unsubscribe(),Se}unsubscribe(){if(!this.closed){const{id:oe,scheduler:Xe}=this,{actions:Je}=Xe;this.work=this.state=this.scheduler=null,this.pending=!1,(0,Oe.o)(Je,this),null!=oe&&(this.id=this.recycleAsyncId(Xe,oe,null)),this.delay=null,super.unsubscribe()}}}},9687:(Tn,gt,S)=>{"use strict";S.d(gt,{q:()=>Z});var h=S(6129);class c{constructor(U,ue=c.now){this.schedulerActionCtor=U,this.now=ue}schedule(U,ue=0,oe){return new this.schedulerActionCtor(this,U).schedule(oe,ue)}}c.now=h.U.now;class Z extends c{constructor(U,ue=c.now){super(U,ue),this.actions=[],this._active=!1}flush(U){const{actions:ue}=this;if(this._active)return void ue.push(U);let oe;this._active=!0;do{if(oe=U.execute(U.state,U.delay))break}while(U=ue.shift());if(this._active=!1,oe){for(;U=ue.shift();)U.unsubscribe();throw oe}}}},3236:(Tn,gt,S)=>{"use strict";S.d(gt,{E:()=>Z,b:()=>Oe});var h=S(6780);const Z=new(S(9687).q)(h.R),Oe=Z},6129:(Tn,gt,S)=>{"use strict";S.d(gt,{U:()=>h});const h={now:()=>(h.delegate||Date).now(),delegate:void 0}},9270:(Tn,gt,S)=>{"use strict";S.d(gt,{f:()=>h});const h={setTimeout(c,Z,...Oe){const{delegate:U}=h;return null!=U&&U.setTimeout?U.setTimeout(c,Z,...Oe):setTimeout(c,Z,...Oe)},clearTimeout(c){const{delegate:Z}=h;return((null==Z?void 0:Z.clearTimeout)||clearTimeout)(c)},delegate:void 0}},4761:(Tn,gt,S)=>{"use strict";S.d(gt,{l:()=>c});const c=function h(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},3494:(Tn,gt,S)=>{"use strict";S.d(gt,{s:()=>h});const h="function"==typeof Symbol&&Symbol.observable||"@@observable"},9350:(Tn,gt,S)=>{"use strict";S.d(gt,{G:()=>c});const c=(0,S(1853).L)(Z=>function(){Z(this),this.name="EmptyError",this.message="no elements in sequence"})},9326:(Tn,gt,S)=>{"use strict";S.d(gt,{R0:()=>ue,lI:()=>U,ms:()=>Oe});var h=S(8071),c=S(9470);function Z(oe){return oe[oe.length-1]}function Oe(oe){return(0,h.T)(Z(oe))?oe.pop():void 0}function U(oe){return(0,c.m)(Z(oe))?oe.pop():void 0}function ue(oe,Xe){return"number"==typeof Z(oe)?oe.pop():Xe}},3073:(Tn,gt,S)=>{"use strict";S.d(gt,{D:()=>U});const{isArray:h}=Array,{getPrototypeOf:c,prototype:Z,keys:Oe}=Object;function U(oe){if(1===oe.length){const Xe=oe[0];if(h(Xe))return{args:Xe,keys:null};if(function ue(oe){return oe&&"object"==typeof oe&&c(oe)===Z}(Xe)){const Je=Oe(Xe);return{args:Je.map(Se=>Xe[Se]),keys:Je}}}return{args:oe,keys:null}}},7908:(Tn,gt,S)=>{"use strict";function h(c,Z){if(c){const Oe=c.indexOf(Z);0<=Oe&&c.splice(Oe,1)}}S.d(gt,{o:()=>h})},1853:(Tn,gt,S)=>{"use strict";function h(c){const Oe=c(U=>{Error.call(U),U.stack=(new Error).stack});return Oe.prototype=Object.create(Error.prototype),Oe.prototype.constructor=Oe,Oe}S.d(gt,{L:()=>h})},8496:(Tn,gt,S)=>{"use strict";function h(c,Z){return c.reduce((Oe,U,ue)=>(Oe[U]=Z[ue],Oe),{})}S.d(gt,{e:()=>h})},9786:(Tn,gt,S)=>{"use strict";S.d(gt,{Y:()=>Z,l:()=>Oe});var h=S(1026);let c=null;function Z(U){if(h.$.useDeprecatedSynchronousErrorHandling){const ue=!c;if(ue&&(c={errorThrown:!1,error:null}),U(),ue){const{errorThrown:oe,error:Xe}=c;if(c=null,oe)throw Xe}}else U()}function Oe(U){h.$.useDeprecatedSynchronousErrorHandling&&c&&(c.errorThrown=!0,c.error=U)}},5225:(Tn,gt,S)=>{"use strict";function h(c,Z,Oe,U=0,ue=!1){const oe=Z.schedule(function(){Oe(),ue?c.add(this.schedule(null,U)):this.unsubscribe()},U);if(c.add(oe),!ue)return oe}S.d(gt,{N:()=>h})},3669:(Tn,gt,S)=>{"use strict";function h(c){return c}S.d(gt,{D:()=>h})},7441:(Tn,gt,S)=>{"use strict";S.d(gt,{X:()=>h});const h=c=>c&&"number"==typeof c.length&&"function"!=typeof c},7953:(Tn,gt,S)=>{"use strict";S.d(gt,{T:()=>c});var h=S(8071);function c(Z){return Symbol.asyncIterator&&(0,h.T)(null==Z?void 0:Z[Symbol.asyncIterator])}},8071:(Tn,gt,S)=>{"use strict";function h(c){return"function"==typeof c}S.d(gt,{T:()=>h})},5055:(Tn,gt,S)=>{"use strict";S.d(gt,{l:()=>Z});var h=S(3494),c=S(8071);function Z(Oe){return(0,c.T)(Oe[h.s])}},5397:(Tn,gt,S)=>{"use strict";S.d(gt,{x:()=>Z});var h=S(4761),c=S(8071);function Z(Oe){return(0,c.T)(null==Oe?void 0:Oe[h.l])}},4402:(Tn,gt,S)=>{"use strict";S.d(gt,{A:()=>Z});var h=S(1985),c=S(8071);function Z(Oe){return!!Oe&&(Oe instanceof h.c||(0,c.T)(Oe.lift)&&(0,c.T)(Oe.subscribe))}},9858:(Tn,gt,S)=>{"use strict";S.d(gt,{y:()=>c});var h=S(8071);function c(Z){return(0,h.T)(null==Z?void 0:Z.then)}},5196:(Tn,gt,S)=>{"use strict";S.d(gt,{C:()=>Z,U:()=>Oe});var h=S(1635),c=S(8071);function Z(U){return(0,h.AQ)(this,arguments,function*(){const oe=U.getReader();try{for(;;){const{value:Xe,done:Je}=yield(0,h.N3)(oe.read());if(Je)return yield(0,h.N3)(void 0);yield yield(0,h.N3)(Xe)}}finally{oe.releaseLock()}})}function Oe(U){return(0,c.T)(null==U?void 0:U.getReader)}},9470:(Tn,gt,S)=>{"use strict";S.d(gt,{m:()=>c});var h=S(8071);function c(Z){return Z&&(0,h.T)(Z.schedule)}},9974:(Tn,gt,S)=>{"use strict";S.d(gt,{N:()=>Z,S:()=>c});var h=S(8071);function c(Oe){return(0,h.T)(null==Oe?void 0:Oe.lift)}function Z(Oe){return U=>{if(c(U))return U.lift(function(ue){try{return Oe(ue,this)}catch(oe){this.error(oe)}});throw new TypeError("Unable to lift unknown Observable type")}}},6450:(Tn,gt,S)=>{"use strict";S.d(gt,{I:()=>Oe});var h=S(6354);const{isArray:c}=Array;function Oe(U){return(0,h.T)(ue=>function Z(U,ue){return c(ue)?U(...ue):U(ue)}(U,ue))}},5343:(Tn,gt,S)=>{"use strict";function h(){}S.d(gt,{l:()=>h})},1203:(Tn,gt,S)=>{"use strict";S.d(gt,{F:()=>c,m:()=>Z});var h=S(3669);function c(...Oe){return Z(Oe)}function Z(Oe){return 0===Oe.length?h.D:1===Oe.length?Oe[0]:function(ue){return Oe.reduce((oe,Xe)=>Xe(oe),ue)}}},5334:(Tn,gt,S)=>{"use strict";S.d(gt,{m:()=>Z});var h=S(1026),c=S(9270);function Z(Oe){c.f.setTimeout(()=>{const{onUnhandledError:U}=h.$;if(!U)throw Oe;U(Oe)})}},591:(Tn,gt,S)=>{"use strict";function h(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.`)}S.d(gt,{L:()=>h})},8996:(Tn,gt,S)=>{var h={"./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(Z){if(!S.o(h,Z))return Promise.resolve().then(()=>{var ue=new Error("Cannot find module '"+Z+"'");throw ue.code="MODULE_NOT_FOUND",ue});var Oe=h[Z],U=Oe[0];return Promise.all(Oe.slice(1).map(S.e)).then(()=>S(U))}c.keys=()=>Object.keys(h),c.id=8996,Tn.exports=c},177:(Tn,gt,S)=>{"use strict";S.d(gt,{AJ:()=>Yt,Jj:()=>bt,MD:()=>Et,N0:()=>ki,QT:()=>Z,Sm:()=>Dt,Sq:()=>or,T3:()=>Hn,UE:()=>Nn,VF:()=>U,Vy:()=>jn,Xr:()=>jr,ZD:()=>Oe,_b:()=>x,aZ:()=>_t,bT:()=>On,fw:()=>St,hb:()=>qe,hj:()=>Je,qQ:()=>oe});var h=S(4438);let c=null;function Z(){return c}function Oe(C){var $;null!==($=c)&&void 0!==$||(c=C)}class U{}const oe=new h.nKC("");let Xe=(()=>{var C;class ${historyGo(F){throw new Error("")}}return(C=$).\u0275fac=function(F){return new(F||C)},C.\u0275prov=h.jDH({token:C,factory:()=>(0,h.WQX)(Se),providedIn:"platform"}),$})();const Je=new h.nKC("");let Se=(()=>{var C;class $ extends Xe{constructor(){super(),this._doc=(0,h.WQX)(oe),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Z().getBaseHref(this._doc)}onPopState(F){const Ie=Z().getGlobalEventTarget(this._doc,"window");return Ie.addEventListener("popstate",F,!1),()=>Ie.removeEventListener("popstate",F)}onHashChange(F){const Ie=Z().getGlobalEventTarget(this._doc,"window");return Ie.addEventListener("hashchange",F,!1),()=>Ie.removeEventListener("hashchange",F)}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(F){this._location.pathname=F}pushState(F,Ie,Ke){this._history.pushState(F,Ie,Ke)}replaceState(F,Ie,Ke){this._history.replaceState(F,Ie,Ke)}forward(){this._history.forward()}back(){this._history.back()}historyGo(F=0){this._history.go(F)}getState(){return this._history.state}}return(C=$).\u0275fac=function(F){return new(F||C)},C.\u0275prov=h.jDH({token:C,factory:()=>new C,providedIn:"platform"}),$})();function Ce(C,$){if(0==C.length)return $;if(0==$.length)return C;let Be=0;return C.endsWith("/")&&Be++,$.startsWith("/")&&Be++,2==Be?C+$.substring(1):1==Be?C+$:C+"/"+$}function Qe(C){const $=C.match(/#|\?|$/),Be=$&&$.index||C.length;return C.slice(0,Be-("/"===C[Be-1]?1:0))+C.slice(Be)}function Ze(C){return C&&"?"!==C[0]?"?"+C:C}let qe=(()=>{var C;class ${historyGo(F){throw new Error("")}}return(C=$).\u0275fac=function(F){return new(F||C)},C.\u0275prov=h.jDH({token:C,factory:()=>(0,h.WQX)(Dt),providedIn:"root"}),$})();const ht=new h.nKC("");let Dt=(()=>{var C;class $ extends qe{constructor(F,Ie){var Ke,Qt,wn;super(),this._platformLocation=F,this._removeListenerFns=[],this._baseHref=null!==(Ke=null!==(Qt=null!=Ie?Ie:this._platformLocation.getBaseHrefFromDOM())&&void 0!==Qt?Qt:null===(wn=(0,h.WQX)(oe).location)||void 0===wn?void 0:wn.origin)&&void 0!==Ke?Ke:""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(F){this._removeListenerFns.push(this._platformLocation.onPopState(F),this._platformLocation.onHashChange(F))}getBaseHref(){return this._baseHref}prepareExternalUrl(F){return Ce(this._baseHref,F)}path(F=!1){const Ie=this._platformLocation.pathname+Ze(this._platformLocation.search),Ke=this._platformLocation.hash;return Ke&&F?`${Ie}${Ke}`:Ie}pushState(F,Ie,Ke,Qt){const wn=this.prepareExternalUrl(Ke+Ze(Qt));this._platformLocation.pushState(F,Ie,wn)}replaceState(F,Ie,Ke,Qt){const wn=this.prepareExternalUrl(Ke+Ze(Qt));this._platformLocation.replaceState(F,Ie,wn)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(F=0){var Ie,Ke;null===(Ie=(Ke=this._platformLocation).historyGo)||void 0===Ie||Ie.call(Ke,F)}}return(C=$).\u0275fac=function(F){return new(F||C)(h.KVO(Xe),h.KVO(ht,8))},C.\u0275prov=h.jDH({token:C,factory:C.\u0275fac,providedIn:"root"}),$})(),St=(()=>{var C;class $ extends qe{constructor(F,Ie){super(),this._platformLocation=F,this._baseHref="",this._removeListenerFns=[],null!=Ie&&(this._baseHref=Ie)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(F){this._removeListenerFns.push(this._platformLocation.onPopState(F),this._platformLocation.onHashChange(F))}getBaseHref(){return this._baseHref}path(F=!1){var Ie;const Ke=null!==(Ie=this._platformLocation.hash)&&void 0!==Ie?Ie:"#";return Ke.length>0?Ke.substring(1):Ke}prepareExternalUrl(F){const Ie=Ce(this._baseHref,F);return Ie.length>0?"#"+Ie:Ie}pushState(F,Ie,Ke,Qt){let wn=this.prepareExternalUrl(Ke+Ze(Qt));0==wn.length&&(wn=this._platformLocation.pathname),this._platformLocation.pushState(F,Ie,wn)}replaceState(F,Ie,Ke,Qt){let wn=this.prepareExternalUrl(Ke+Ze(Qt));0==wn.length&&(wn=this._platformLocation.pathname),this._platformLocation.replaceState(F,Ie,wn)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(F=0){var Ie,Ke;null===(Ie=(Ke=this._platformLocation).historyGo)||void 0===Ie||Ie.call(Ke,F)}}return(C=$).\u0275fac=function(F){return new(F||C)(h.KVO(Xe),h.KVO(ht,8))},C.\u0275prov=h.jDH({token:C,factory:C.\u0275fac}),$})(),_t=(()=>{var C;class ${constructor(F){this._subject=new h.bkB,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=F;const Ie=this._locationStrategy.getBaseHref();this._basePath=function Me(C){if(new RegExp("^(https?:)?//").test(C)){const[,Be]=C.split(/\/\/[^\/]+/);return Be}return C}(Qe(mt(Ie))),this._locationStrategy.onPopState(Ke=>{this._subject.emit({url:this.path(!0),pop:!0,state:Ke.state,type:Ke.type})})}ngOnDestroy(){var F;null===(F=this._urlChangeSubscription)||void 0===F||F.unsubscribe(),this._urlChangeListeners=[]}path(F=!1){return this.normalize(this._locationStrategy.path(F))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(F,Ie=""){return this.path()==this.normalize(F+Ze(Ie))}normalize(F){return $.stripTrailingSlash(function yt(C,$){if(!C||!$.startsWith(C))return $;const Be=$.substring(C.length);return""===Be||["/",";","?","#"].includes(Be[0])?Be:$}(this._basePath,mt(F)))}prepareExternalUrl(F){return F&&"/"!==F[0]&&(F="/"+F),this._locationStrategy.prepareExternalUrl(F)}go(F,Ie="",Ke=null){this._locationStrategy.pushState(Ke,"",F,Ie),this._notifyUrlChangeListeners(this.prepareExternalUrl(F+Ze(Ie)),Ke)}replaceState(F,Ie="",Ke=null){this._locationStrategy.replaceState(Ke,"",F,Ie),this._notifyUrlChangeListeners(this.prepareExternalUrl(F+Ze(Ie)),Ke)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(F=0){var Ie,Ke;null===(Ie=(Ke=this._locationStrategy).historyGo)||void 0===Ie||Ie.call(Ke,F)}onUrlChange(F){var Ie;return this._urlChangeListeners.push(F),null!==(Ie=this._urlChangeSubscription)&&void 0!==Ie||(this._urlChangeSubscription=this.subscribe(Ke=>{this._notifyUrlChangeListeners(Ke.url,Ke.state)})),()=>{const Ke=this._urlChangeListeners.indexOf(F);var Qt;this._urlChangeListeners.splice(Ke,1),0===this._urlChangeListeners.length&&(null===(Qt=this._urlChangeSubscription)||void 0===Qt||Qt.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(F="",Ie){this._urlChangeListeners.forEach(Ke=>Ke(F,Ie))}subscribe(F,Ie,Ke){return this._subject.subscribe({next:F,error:Ie,complete:Ke})}}return(C=$).normalizeQueryParams=Ze,C.joinWithSlash=Ce,C.stripTrailingSlash=Qe,C.\u0275fac=function(F){return new(F||C)(h.KVO(qe))},C.\u0275prov=h.jDH({token:C,factory:()=>function Tt(){return new _t((0,h.KVO)(qe))}(),providedIn:"root"}),$})();function mt(C){return C.replace(/\/index.html$/,"")}function x(C,$){$=encodeURIComponent($);for(const Be of C.split(";")){const F=Be.indexOf("="),[Ie,Ke]=-1==F?[Be,""]:[Be.slice(0,F),Be.slice(F+1)];if(Ie.trim()===$)return decodeURIComponent(Ke)}return null}class ln{constructor($,Be,F,Ie){this.$implicit=$,this.ngForOf=Be,this.index=F,this.count=Ie}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 or=(()=>{var C;class ${set ngForOf(F){this._ngForOf=F,this._ngForOfDirty=!0}set ngForTrackBy(F){this._trackByFn=F}get ngForTrackBy(){return this._trackByFn}constructor(F,Ie,Ke){this._viewContainer=F,this._template=Ie,this._differs=Ke,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(F){F&&(this._template=F)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const F=this._ngForOf;!this._differ&&F&&(this._differ=this._differs.find(F).create(this.ngForTrackBy))}if(this._differ){const F=this._differ.diff(this._ngForOf);F&&this._applyChanges(F)}}_applyChanges(F){const Ie=this._viewContainer;F.forEachOperation((Ke,Qt,wn)=>{if(null==Ke.previousIndex)Ie.createEmbeddedView(this._template,new ln(Ke.item,this._ngForOf,-1,-1),null===wn?void 0:wn);else if(null==wn)Ie.remove(null===Qt?void 0:Qt);else if(null!==Qt){const ar=Ie.get(Qt);Ie.move(ar,wn),Un(ar,Ke)}});for(let Ke=0,Qt=Ie.length;Ke{Un(Ie.get(Ke.currentIndex),Ke)})}static ngTemplateContextGuard(F,Ie){return!0}}return(C=$).\u0275fac=function(F){return new(F||C)(h.rXU(h.c1b),h.rXU(h.C4Q),h.rXU(h._q3))},C.\u0275dir=h.FsC({type:C,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),$})();function Un(C,$){C.context.$implicit=$.item}let On=(()=>{var C;class ${constructor(F,Ie){this._viewContainer=F,this._context=new Fr,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=Ie}set ngIf(F){this._context.$implicit=this._context.ngIf=F,this._updateView()}set ngIfThen(F){Or("ngIfThen",F),this._thenTemplateRef=F,this._thenViewRef=null,this._updateView()}set ngIfElse(F){Or("ngIfElse",F),this._elseTemplateRef=F,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(F,Ie){return!0}}return(C=$).\u0275fac=function(F){return new(F||C)(h.rXU(h.c1b),h.rXU(h.C4Q))},C.\u0275dir=h.FsC({type:C,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),$})();class Fr{constructor(){this.$implicit=null,this.ngIf=null}}function Or(C,$){if($&&!$.createEmbeddedView)throw new Error(`${C} must be a TemplateRef, but received '${(0,h.Tbb)($)}'.`)}let Hn=(()=>{var C;class ${constructor(F){this._viewContainerRef=F,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(F){if(this._shouldRecreateView(F)){var Ie;const Ke=this._viewContainerRef;if(this._viewRef&&Ke.remove(Ke.indexOf(this._viewRef)),!this.ngTemplateOutlet)return void(this._viewRef=null);const Qt=this._createContextForwardProxy();this._viewRef=Ke.createEmbeddedView(this.ngTemplateOutlet,Qt,{injector:null!==(Ie=this.ngTemplateOutletInjector)&&void 0!==Ie?Ie:void 0})}}_shouldRecreateView(F){return!!F.ngTemplateOutlet||!!F.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(F,Ie,Ke)=>!!this.ngTemplateOutletContext&&Reflect.set(this.ngTemplateOutletContext,Ie,Ke),get:(F,Ie,Ke)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,Ie,Ke)}})}}return(C=$).\u0275fac=function(F){return new(F||C)(h.rXU(h.c1b))},C.\u0275dir=h.FsC({type:C,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[h.OA$]}),$})();class Ci{createSubscription($,Be){return(0,h.O8t)(()=>$.subscribe({next:Be,error:F=>{throw F}}))}dispose($){(0,h.O8t)(()=>$.unsubscribe())}}class Eo{createSubscription($,Be){return $.then(Be,F=>{throw F})}dispose($){}}const No=new Eo,oi=new Ci;let bt=(()=>{var C;class ${constructor(F){this._latestValue=null,this.markForCheckOnValueUpdate=!0,this._subscription=null,this._obj=null,this._strategy=null,this._ref=F}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(F){if(!this._obj){if(F)try{this.markForCheckOnValueUpdate=!1,this._subscribe(F)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return F!==this._obj?(this._dispose(),this.transform(F)):this._latestValue}_subscribe(F){this._obj=F,this._strategy=this._selectStrategy(F),this._subscription=this._strategy.createSubscription(F,Ie=>this._updateLatestValue(F,Ie))}_selectStrategy(F){if((0,h.jNT)(F))return No;if((0,h.zjR)(F))return oi;throw function ui(C,$){return new h.wOt(2100,!1)}()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(F,Ie){var Ke;F===this._obj&&(this._latestValue=Ie,this.markForCheckOnValueUpdate)&&(null===(Ke=this._ref)||void 0===Ke||Ke.markForCheck())}}return(C=$).\u0275fac=function(F){return new(F||C)(h.rXU(h.gRc,16))},C.\u0275pipe=h.EJ8({name:"async",type:C,pure:!1,standalone:!0}),$})(),Et=(()=>{var C;class ${}return(C=$).\u0275fac=function(F){return new(F||C)},C.\u0275mod=h.$C({type:C}),C.\u0275inj=h.G2t({}),$})();const Yt="browser",sn="server";function Nn(C){return C===Yt}function jn(C){return C===sn}let jr=(()=>{var C;class ${}return(C=$).\u0275prov=(0,h.jDH)({token:C,providedIn:"root",factory:()=>Nn((0,h.WQX)(h.Agw))?new br((0,h.WQX)(oe),window):new Ni}),$})();class br{constructor($,Be){this.document=$,this.window=Be,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 Be=function wi(C,$){const Be=C.getElementById($)||C.getElementsByName($)[0];if(Be)return Be;if("function"==typeof C.createTreeWalker&&C.body&&"function"==typeof C.body.attachShadow){const F=C.createTreeWalker(C.body,NodeFilter.SHOW_ELEMENT);let Ie=F.currentNode;for(;Ie;){const Ke=Ie.shadowRoot;if(Ke){const Qt=Ke.getElementById($)||Ke.querySelector(`[name="${$}"]`);if(Qt)return Qt}Ie=F.nextNode()}}return null}(this.document,$);Be&&(this.scrollToElement(Be),Be.focus())}setHistoryScrollRestoration($){this.window.history.scrollRestoration=$}scrollToElement($){const Be=$.getBoundingClientRect(),F=Be.left+this.window.pageXOffset,Ie=Be.top+this.window.pageYOffset,Ke=this.offset();this.window.scrollTo(F-Ke[0],Ie-Ke[1])}}class Ni{setOffset($){}getScrollPosition(){return[0,0]}scrollToPosition($){}scrollToAnchor($){}setHistoryScrollRestoration($){}}class ki{}},1626:(Tn,gt,S)=>{"use strict";S.d(gt,{Qq:()=>fe,q1:()=>_n}),S(467);var c=S(4438),Z=S(7673),Oe=S(1985),U=S(8455),ue=S(274),oe=S(5964),Xe=S(6354),Je=S(980),Se=S(5558),Ce=S(177);class Qe{}class Ze{}class qe{constructor(x){this.normalizedNames=new Map,this.lazyUpdate=null,x?"string"==typeof x?this.lazyInit=()=>{this.headers=new Map,x.split("\n").forEach(ne=>{const Te=ne.indexOf(":");if(Te>0){const Ge=ne.slice(0,Te),At=Ge.toLowerCase(),Jt=ne.slice(Te+1).trim();this.maybeSetNormalizedName(Ge,At),this.headers.has(At)?this.headers.get(At).push(Jt):this.headers.set(At,[Jt])}})}:typeof Headers<"u"&&x instanceof Headers?(this.headers=new Map,x.forEach((ne,Te)=>{this.setHeaderEntries(Te,ne)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(x).forEach(([ne,Te])=>{this.setHeaderEntries(ne,Te)})}:this.headers=new Map}has(x){return this.init(),this.headers.has(x.toLowerCase())}get(x){this.init();const ne=this.headers.get(x.toLowerCase());return ne&&ne.length>0?ne[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(x){return this.init(),this.headers.get(x.toLowerCase())||null}append(x,ne){return this.clone({name:x,value:ne,op:"a"})}set(x,ne){return this.clone({name:x,value:ne,op:"s"})}delete(x,ne){return this.clone({name:x,value:ne,op:"d"})}maybeSetNormalizedName(x,ne){this.normalizedNames.has(ne)||this.normalizedNames.set(ne,x)}init(){this.lazyInit&&(this.lazyInit instanceof qe?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(x=>this.applyUpdate(x)),this.lazyUpdate=null))}copyFrom(x){x.init(),Array.from(x.headers.keys()).forEach(ne=>{this.headers.set(ne,x.headers.get(ne)),this.normalizedNames.set(ne,x.normalizedNames.get(ne))})}clone(x){const ne=new qe;return ne.lazyInit=this.lazyInit&&this.lazyInit instanceof qe?this.lazyInit:this,ne.lazyUpdate=(this.lazyUpdate||[]).concat([x]),ne}applyUpdate(x){const ne=x.name.toLowerCase();switch(x.op){case"a":case"s":let Te=x.value;if("string"==typeof Te&&(Te=[Te]),0===Te.length)return;this.maybeSetNormalizedName(x.name,ne);const Ge=("a"===x.op?this.headers.get(ne):void 0)||[];Ge.push(...Te),this.headers.set(ne,Ge);break;case"d":const At=x.value;if(At){let Jt=this.headers.get(ne);if(!Jt)return;Jt=Jt.filter(ln=>-1===At.indexOf(ln)),0===Jt.length?(this.headers.delete(ne),this.normalizedNames.delete(ne)):this.headers.set(ne,Jt)}else this.headers.delete(ne),this.normalizedNames.delete(ne)}}setHeaderEntries(x,ne){const Te=(Array.isArray(ne)?ne:[ne]).map(At=>At.toString()),Ge=x.toLowerCase();this.headers.set(Ge,Te),this.maybeSetNormalizedName(x,Ge)}forEach(x){this.init(),Array.from(this.normalizedNames.keys()).forEach(ne=>x(this.normalizedNames.get(ne),this.headers.get(ne)))}}class Dt{encodeKey(x){return yt(x)}encodeValue(x){return yt(x)}decodeKey(x){return decodeURIComponent(x)}decodeValue(x){return decodeURIComponent(x)}}const _t=/%(\d[a-f0-9])/gi,Tt={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function yt(M){return encodeURIComponent(M).replace(_t,(x,ne)=>{var Te;return null!==(Te=Tt[ne])&&void 0!==Te?Te:x})}function mt(M){return`${M}`}class Me{constructor(x={}){if(this.updates=null,this.cloneFrom=null,this.encoder=x.encoder||new Dt,x.fromString){if(x.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function St(M,x){const ne=new Map;return M.length>0&&M.replace(/^\?/,"").split("&").forEach(Ge=>{const At=Ge.indexOf("="),[Jt,ln]=-1==At?[x.decodeKey(Ge),""]:[x.decodeKey(Ge.slice(0,At)),x.decodeValue(Ge.slice(At+1))],or=ne.get(Jt)||[];or.push(ln),ne.set(Jt,or)}),ne}(x.fromString,this.encoder)}else x.fromObject?(this.map=new Map,Object.keys(x.fromObject).forEach(ne=>{const Te=x.fromObject[ne],Ge=Array.isArray(Te)?Te.map(mt):[mt(Te)];this.map.set(ne,Ge)})):this.map=null}has(x){return this.init(),this.map.has(x)}get(x){this.init();const ne=this.map.get(x);return ne?ne[0]:null}getAll(x){return this.init(),this.map.get(x)||null}keys(){return this.init(),Array.from(this.map.keys())}append(x,ne){return this.clone({param:x,value:ne,op:"a"})}appendAll(x){const ne=[];return Object.keys(x).forEach(Te=>{const Ge=x[Te];Array.isArray(Ge)?Ge.forEach(At=>{ne.push({param:Te,value:At,op:"a"})}):ne.push({param:Te,value:Ge,op:"a"})}),this.clone(ne)}set(x,ne){return this.clone({param:x,value:ne,op:"s"})}delete(x,ne){return this.clone({param:x,value:ne,op:"d"})}toString(){return this.init(),this.keys().map(x=>{const ne=this.encoder.encodeKey(x);return this.map.get(x).map(Te=>ne+"="+this.encoder.encodeValue(Te)).join("&")}).filter(x=>""!==x).join("&")}clone(x){const ne=new Me({encoder:this.encoder});return ne.cloneFrom=this.cloneFrom||this,ne.updates=(this.updates||[]).concat(x),ne}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(x=>this.map.set(x,this.cloneFrom.map.get(x))),this.updates.forEach(x=>{switch(x.op){case"a":case"s":const ne=("a"===x.op?this.map.get(x.param):void 0)||[];ne.push(mt(x.value)),this.map.set(x.param,ne);break;case"d":if(void 0===x.value){this.map.delete(x.param);break}{let Te=this.map.get(x.param)||[];const Ge=Te.indexOf(mt(x.value));-1!==Ge&&Te.splice(Ge,1),Te.length>0?this.map.set(x.param,Te):this.map.delete(x.param)}}}),this.cloneFrom=this.updates=null)}}class ge{constructor(){this.map=new Map}set(x,ne){return this.map.set(x,ne),this}get(x){return this.map.has(x)||this.map.set(x,x.defaultValue()),this.map.get(x)}delete(x){return this.map.delete(x),this}has(x){return this.map.has(x)}keys(){return this.map.keys()}}function Fe(M){return typeof ArrayBuffer<"u"&&M instanceof ArrayBuffer}function xe(M){return typeof Blob<"u"&&M instanceof Blob}function at(M){return typeof FormData<"u"&&M instanceof FormData}class vn{constructor(x,ne,Te,Ge){var At,Jt;let ln;if(this.url=ne,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=x.toUpperCase(),function Ue(M){switch(M){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||Ge?(this.body=void 0!==Te?Te:null,ln=Ge):ln=Te,ln&&(this.reportProgress=!!ln.reportProgress,this.withCredentials=!!ln.withCredentials,ln.responseType&&(this.responseType=ln.responseType),ln.headers&&(this.headers=ln.headers),ln.context&&(this.context=ln.context),ln.params&&(this.params=ln.params),this.transferCache=ln.transferCache),null!==(At=this.headers)&&void 0!==At||(this.headers=new qe),null!==(Jt=this.context)&&void 0!==Jt||(this.context=new ge),this.params){const or=this.params.toString();if(0===or.length)this.urlWithParams=ne;else{const Un=ne.indexOf("?");this.urlWithParams=ne+(-1===Un?"?":UnGn.set(Cr,x.setHeaders[Cr]),Or)),x.setParams&&(zr=Object.keys(x.setParams).reduce((Gn,Cr)=>Gn.set(Cr,x.setParams[Cr]),zr)),new vn(Jt,ln,xr,{params:zr,headers:Or,context:Tr,reportProgress:Fr,responseType:or,withCredentials:On,transferCache:Un})}}var Nt=function(M){return M[M.Sent=0]="Sent",M[M.UploadProgress=1]="UploadProgress",M[M.ResponseHeader=2]="ResponseHeader",M[M.DownloadProgress=3]="DownloadProgress",M[M.Response=4]="Response",M[M.User=5]="User",M}(Nt||{});class tt{constructor(x,ne=H.Ok,Te="OK"){this.headers=x.headers||new qe,this.status=void 0!==x.status?x.status:ne,this.statusText=x.statusText||Te,this.url=x.url||null,this.ok=this.status>=200&&this.status<300}}class on extends tt{constructor(x={}){super(x),this.type=Nt.ResponseHeader}clone(x={}){return new on({headers:x.headers||this.headers,status:void 0!==x.status?x.status:this.status,statusText:x.statusText||this.statusText,url:x.url||this.url||void 0})}}class dt extends tt{constructor(x={}){super(x),this.type=Nt.Response,this.body=void 0!==x.body?x.body:null}clone(x={}){return new dt({body:void 0!==x.body?x.body:this.body,headers:x.headers||this.headers,status:void 0!==x.status?x.status:this.status,statusText:x.statusText||this.statusText,url:x.url||this.url||void 0})}}class we extends tt{constructor(x){super(x,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${x.url||"(unknown url)"}`:`Http failure response for ${x.url||"(unknown url)"}: ${x.status} ${x.statusText}`,this.error=x.error||null}}var H=function(M){return M[M.Continue=100]="Continue",M[M.SwitchingProtocols=101]="SwitchingProtocols",M[M.Processing=102]="Processing",M[M.EarlyHints=103]="EarlyHints",M[M.Ok=200]="Ok",M[M.Created=201]="Created",M[M.Accepted=202]="Accepted",M[M.NonAuthoritativeInformation=203]="NonAuthoritativeInformation",M[M.NoContent=204]="NoContent",M[M.ResetContent=205]="ResetContent",M[M.PartialContent=206]="PartialContent",M[M.MultiStatus=207]="MultiStatus",M[M.AlreadyReported=208]="AlreadyReported",M[M.ImUsed=226]="ImUsed",M[M.MultipleChoices=300]="MultipleChoices",M[M.MovedPermanently=301]="MovedPermanently",M[M.Found=302]="Found",M[M.SeeOther=303]="SeeOther",M[M.NotModified=304]="NotModified",M[M.UseProxy=305]="UseProxy",M[M.Unused=306]="Unused",M[M.TemporaryRedirect=307]="TemporaryRedirect",M[M.PermanentRedirect=308]="PermanentRedirect",M[M.BadRequest=400]="BadRequest",M[M.Unauthorized=401]="Unauthorized",M[M.PaymentRequired=402]="PaymentRequired",M[M.Forbidden=403]="Forbidden",M[M.NotFound=404]="NotFound",M[M.MethodNotAllowed=405]="MethodNotAllowed",M[M.NotAcceptable=406]="NotAcceptable",M[M.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",M[M.RequestTimeout=408]="RequestTimeout",M[M.Conflict=409]="Conflict",M[M.Gone=410]="Gone",M[M.LengthRequired=411]="LengthRequired",M[M.PreconditionFailed=412]="PreconditionFailed",M[M.PayloadTooLarge=413]="PayloadTooLarge",M[M.UriTooLong=414]="UriTooLong",M[M.UnsupportedMediaType=415]="UnsupportedMediaType",M[M.RangeNotSatisfiable=416]="RangeNotSatisfiable",M[M.ExpectationFailed=417]="ExpectationFailed",M[M.ImATeapot=418]="ImATeapot",M[M.MisdirectedRequest=421]="MisdirectedRequest",M[M.UnprocessableEntity=422]="UnprocessableEntity",M[M.Locked=423]="Locked",M[M.FailedDependency=424]="FailedDependency",M[M.TooEarly=425]="TooEarly",M[M.UpgradeRequired=426]="UpgradeRequired",M[M.PreconditionRequired=428]="PreconditionRequired",M[M.TooManyRequests=429]="TooManyRequests",M[M.RequestHeaderFieldsTooLarge=431]="RequestHeaderFieldsTooLarge",M[M.UnavailableForLegalReasons=451]="UnavailableForLegalReasons",M[M.InternalServerError=500]="InternalServerError",M[M.NotImplemented=501]="NotImplemented",M[M.BadGateway=502]="BadGateway",M[M.ServiceUnavailable=503]="ServiceUnavailable",M[M.GatewayTimeout=504]="GatewayTimeout",M[M.HttpVersionNotSupported=505]="HttpVersionNotSupported",M[M.VariantAlsoNegotiates=506]="VariantAlsoNegotiates",M[M.InsufficientStorage=507]="InsufficientStorage",M[M.LoopDetected=508]="LoopDetected",M[M.NotExtended=510]="NotExtended",M[M.NetworkAuthenticationRequired=511]="NetworkAuthenticationRequired",M}(H||{});function X(M,x){return{body:x,headers:M.headers,context:M.context,observe:M.observe,params:M.params,reportProgress:M.reportProgress,responseType:M.responseType,withCredentials:M.withCredentials,transferCache:M.transferCache}}let fe=(()=>{var M;class x{constructor(Te){this.handler=Te}request(Te,Ge,At={}){let Jt;if(Te instanceof vn)Jt=Te;else{let Un,xr;Un=At.headers instanceof qe?At.headers:new qe(At.headers),At.params&&(xr=At.params instanceof Me?At.params:new Me({fromObject:At.params})),Jt=new vn(Te,Ge,void 0!==At.body?At.body:null,{headers:Un,context:At.context,params:xr,reportProgress:At.reportProgress,responseType:At.responseType||"json",withCredentials:At.withCredentials,transferCache:At.transferCache})}const ln=(0,Z.of)(Jt).pipe((0,ue.H)(Un=>this.handler.handle(Un)));if(Te instanceof vn||"events"===At.observe)return ln;const or=ln.pipe((0,oe.p)(Un=>Un instanceof dt));switch(At.observe||"body"){case"body":switch(Jt.responseType){case"arraybuffer":return or.pipe((0,Xe.T)(Un=>{if(null!==Un.body&&!(Un.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return Un.body}));case"blob":return or.pipe((0,Xe.T)(Un=>{if(null!==Un.body&&!(Un.body instanceof Blob))throw new Error("Response is not a Blob.");return Un.body}));case"text":return or.pipe((0,Xe.T)(Un=>{if(null!==Un.body&&"string"!=typeof Un.body)throw new Error("Response is not a string.");return Un.body}));default:return or.pipe((0,Xe.T)(Un=>Un.body))}case"response":return or;default:throw new Error(`Unreachable: unhandled observe type ${At.observe}}`)}}delete(Te,Ge={}){return this.request("DELETE",Te,Ge)}get(Te,Ge={}){return this.request("GET",Te,Ge)}head(Te,Ge={}){return this.request("HEAD",Te,Ge)}jsonp(Te,Ge){return this.request("JSONP",Te,{params:(new Me).append(Ge,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(Te,Ge={}){return this.request("OPTIONS",Te,Ge)}patch(Te,Ge,At={}){return this.request("PATCH",Te,X(At,Ge))}post(Te,Ge,At={}){return this.request("POST",Te,X(At,Ge))}put(Te,Ge,At={}){return this.request("PUT",Te,X(At,Ge))}}return(M=x).\u0275fac=function(Te){return new(Te||M)(c.KVO(Qe))},M.\u0275prov=c.jDH({token:M,factory:M.\u0275fac}),x})();function rn(M,x){return x(M)}function Ln(M,x){return(ne,Te)=>x.intercept(ne,{handle:Ge=>M(Ge,Te)})}const nr=new c.nKC(""),er=new c.nKC(""),yr=new c.nKC(""),rr=new c.nKC("");function ir(){let M=null;return(x,ne)=>{var Te;null===M&&(M=(null!==(Te=(0,c.WQX)(nr,{optional:!0}))&&void 0!==Te?Te:[]).reduceRight(Ln,rn));const Ge=(0,c.WQX)(c.TgB),At=Ge.add();return M(x,ne).pipe((0,Je.j)(()=>Ge.remove(At)))}}let zt=(()=>{var M;class x extends Qe{constructor(Te,Ge){super(),this.backend=Te,this.injector=Ge,this.chain=null,this.pendingTasks=(0,c.WQX)(c.TgB);const At=(0,c.WQX)(rr,{optional:!0});this.backend=null!=At?At:Te}handle(Te){if(null===this.chain){const At=Array.from(new Set([...this.injector.get(er),...this.injector.get(yr,[])]));this.chain=At.reduceRight((Jt,ln)=>function Zn(M,x,ne){return(Te,Ge)=>(0,c.N4e)(ne,()=>x(Te,At=>M(At,Ge)))}(Jt,ln,this.injector),rn)}const Ge=this.pendingTasks.add();return this.chain(Te,At=>this.backend.handle(At)).pipe((0,Je.j)(()=>this.pendingTasks.remove(Ge)))}}return(M=x).\u0275fac=function(Te){return new(Te||M)(c.KVO(Ze),c.KVO(c.uvJ))},M.\u0275prov=c.jDH({token:M,factory:M.\u0275fac}),x})();const Dr=/^\)\]\}',?\n/;let Jr=(()=>{var M;class x{constructor(Te){this.xhrFactory=Te}handle(Te){if("JSONP"===Te.method)throw new c.wOt(-2800,!1);const Ge=this.xhrFactory;return(Ge.\u0275loadImpl?(0,U.H)(Ge.\u0275loadImpl()):(0,Z.of)(null)).pipe((0,Se.n)(()=>new Oe.c(Jt=>{const ln=Ge.build();if(ln.open(Te.method,Te.urlWithParams),Te.withCredentials&&(ln.withCredentials=!0),Te.headers.forEach((Gn,Cr)=>ln.setRequestHeader(Gn,Cr.join(","))),Te.headers.has("Accept")||ln.setRequestHeader("Accept","application/json, text/plain, */*"),!Te.headers.has("Content-Type")){const Gn=Te.detectContentTypeHeader();null!==Gn&&ln.setRequestHeader("Content-Type",Gn)}if(Te.responseType){const Gn=Te.responseType.toLowerCase();ln.responseType="json"!==Gn?Gn:"text"}const or=Te.serializeBody();let Un=null;const xr=()=>{if(null!==Un)return Un;const Gn=ln.statusText||"OK",Cr=new qe(ln.getAllResponseHeaders()),ai=function Jn(M){return"responseURL"in M&&M.responseURL?M.responseURL:/^X-Request-URL:/m.test(M.getAllResponseHeaders())?M.getResponseHeader("X-Request-URL"):null}(ln)||Te.url;return Un=new on({headers:Cr,status:ln.status,statusText:Gn,url:ai}),Un},On=()=>{let{headers:Gn,status:Cr,statusText:ai,url:li}=xr(),ei=null;Cr!==H.NoContent&&(ei=typeof ln.response>"u"?ln.responseText:ln.response),0===Cr&&(Cr=ei?H.Ok:0);let Lr=Cr>=200&&Cr<300;if("json"===Te.responseType&&"string"==typeof ei){const mi=ei;ei=ei.replace(Dr,"");try{ei=""!==ei?JSON.parse(ei):null}catch(Wn){ei=mi,Lr&&(Lr=!1,ei={error:Wn,text:ei})}}Lr?(Jt.next(new dt({body:ei,headers:Gn,status:Cr,statusText:ai,url:li||void 0})),Jt.complete()):Jt.error(new we({error:ei,headers:Gn,status:Cr,statusText:ai,url:li||void 0}))},Fr=Gn=>{const{url:Cr}=xr(),ai=new we({error:Gn,status:ln.status||0,statusText:ln.statusText||"Unknown Error",url:Cr||void 0});Jt.error(ai)};let Or=!1;const zr=Gn=>{Or||(Jt.next(xr()),Or=!0);let Cr={type:Nt.DownloadProgress,loaded:Gn.loaded};Gn.lengthComputable&&(Cr.total=Gn.total),"text"===Te.responseType&&ln.responseText&&(Cr.partialText=ln.responseText),Jt.next(Cr)},Tr=Gn=>{let Cr={type:Nt.UploadProgress,loaded:Gn.loaded};Gn.lengthComputable&&(Cr.total=Gn.total),Jt.next(Cr)};return ln.addEventListener("load",On),ln.addEventListener("error",Fr),ln.addEventListener("timeout",Fr),ln.addEventListener("abort",Fr),Te.reportProgress&&(ln.addEventListener("progress",zr),null!==or&&ln.upload&&ln.upload.addEventListener("progress",Tr)),ln.send(or),Jt.next({type:Nt.Sent}),()=>{ln.removeEventListener("error",Fr),ln.removeEventListener("abort",Fr),ln.removeEventListener("load",On),ln.removeEventListener("timeout",Fr),Te.reportProgress&&(ln.removeEventListener("progress",zr),null!==or&&ln.upload&&ln.upload.removeEventListener("progress",Tr)),ln.readyState!==ln.DONE&&ln.abort()}})))}}return(M=x).\u0275fac=function(Te){return new(Te||M)(c.KVO(Ce.N0))},M.\u0275prov=c.jDH({token:M,factory:M.\u0275fac}),x})();const mr=new c.nKC(""),Pr=new c.nKC("",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),kr=new c.nKC("",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class ii{}let Ai=(()=>{var M;class x{constructor(Te,Ge,At){this.doc=Te,this.platform=Ge,this.cookieName=At,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const Te=this.doc.cookie||"";return Te!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,Ce._b)(Te,this.cookieName),this.lastCookieString=Te),this.lastToken}}return(M=x).\u0275fac=function(Te){return new(Te||M)(c.KVO(Ce.qQ),c.KVO(c.Agw),c.KVO(Pr))},M.\u0275prov=c.jDH({token:M,factory:M.\u0275fac}),x})();function Qr(M,x){const ne=M.url.toLowerCase();if(!(0,c.WQX)(mr)||"GET"===M.method||"HEAD"===M.method||ne.startsWith("http://")||ne.startsWith("https://"))return x(M);const Te=(0,c.WQX)(ii).getToken(),Ge=(0,c.WQX)(kr);return null!=Te&&!M.headers.has(Ge)&&(M=M.clone({headers:M.headers.set(Ge,Te)})),x(M)}var rt=function(M){return M[M.Interceptors=0]="Interceptors",M[M.LegacyInterceptors=1]="LegacyInterceptors",M[M.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",M[M.NoXsrfProtection=3]="NoXsrfProtection",M[M.JsonpSupport=4]="JsonpSupport",M[M.RequestsMadeViaParent=5]="RequestsMadeViaParent",M[M.Fetch=6]="Fetch",M}(rt||{});function Mt(M,x){return{\u0275kind:M,\u0275providers:x}}function ut(...M){const x=[fe,Jr,zt,{provide:Qe,useExisting:zt},{provide:Ze,useExisting:Jr},{provide:er,useValue:Qr,multi:!0},{provide:mr,useValue:!0},{provide:ii,useClass:Ai}];for(const ne of M)x.push(...ne.\u0275providers);return(0,c.EmA)(x)}const ye=new c.nKC("");let _n=(()=>{var M;class x{}return(M=x).\u0275fac=function(Te){return new(Te||M)},M.\u0275mod=c.$C({type:M}),M.\u0275inj=c.G2t({providers:[ut(Mt(rt.LegacyInterceptors,[{provide:ye,useFactory:ir},{provide:er,useExisting:ye,multi:!0}]))]}),x})()},4438:(Tn,gt,S)=>{"use strict";S.d(gt,{iLQ:()=>GE,sZ2:()=>yv,hnV:()=>oT,Hbi:()=>Z1,o8S:()=>Cd,BIS:()=>Ay,gRc:()=>_T,Ql9:()=>T1,Ocv:()=>O1,Z63:()=>fo,aKT:()=>Yu,uvJ:()=>Lo,zcH:()=>Za,bkB:()=>Bs,$GK:()=>bt,nKC:()=>Ge,zZn:()=>ps,_q3:()=>ZE,MKu:()=>eI,xe9:()=>uy,Co$:()=>xi,Vns:()=>so,SKi:()=>bo,Xx1:()=>Nn,Agw:()=>eh,PLl:()=>Ev,rOR:()=>Ju,sFG:()=>vm,_9s:()=>up,czy:()=>Yg,WPN:()=>oc,kdw:()=>lr,C4Q:()=>ap,NYb:()=>_1,giA:()=>rT,xvI:()=>WR,RxE:()=>QD,c1b:()=>pd,gXe:()=>ls,mal:()=>d_,L39:()=>SM,a0P:()=>FM,Ol2:()=>Q0,w6W:()=>ss,oH4:()=>pT,QZP:()=>qT,SmG:()=>V1,Rfq:()=>Qr,WQX:()=>Ne,Hps:()=>Lm,QuC:()=>po,EmA:()=>dl,Udg:()=>RM,fpN:()=>J1,HJs:()=>LM,N4e:()=>lo,vPA:()=>_d,O8t:()=>PM,H3F:()=>YD,H8p:()=>zl,KH2:()=>Qp,TgB:()=>Pp,wOt:()=>nt,WHO:()=>tT,e01:()=>nT,lNU:()=>ir,h9k:()=>$g,$MX:()=>Bi,ZF7:()=>uo,Kcf:()=>nl,e5t:()=>aI,UyX:()=>sI,cWb:()=>Py,osQ:()=>xv,H5H:()=>AE,Zy3:()=>Ot,mq5:()=>hC,JZv:()=>Jn,LfX:()=>Ut,plB:()=>il,jNT:()=>zE,zjR:()=>iT,TL$:()=>Tg,Tbb:()=>cr,rcV:()=>Rl,Vt3:()=>wp,Mj6:()=>us,GFd:()=>Wi,OA$:()=>Zi,Jv_:()=>DD,aNF:()=>TD,R7$:()=>a0,BMQ:()=>aE,AVh:()=>pE,vxM:()=>rC,wni:()=>eD,VBU:()=>_s,FsC:()=>$o,jDH:()=>fr,G2t:()=>gi,$C:()=>ul,EJ8:()=>Jo,rXU:()=>sd,nrm:()=>EE,eu8:()=>IE,bVm:()=>J_,qex:()=>Y_,k0s:()=>Q_,j41:()=>q_,RV6:()=>uC,xGo:()=>hf,KVO:()=>z,kS0:()=>$c,QTQ:()=>l0,bIt:()=>TE,lsd:()=>rD,qSk:()=>ef,XpG:()=>zC,nI1:()=>OD,bMT:()=>ND,SdG:()=>GC,NAR:()=>HC,Y8G:()=>dE,FS9:()=>wE,Mz_:()=>ry,lJ4:()=>wD,mGM:()=>nD,Dyx:()=>sC,Z7z:()=>oC,fX1:()=>iC,Njj:()=>bc,eBV:()=>Md,$dS:()=>fh,n$t:()=>Hf,xc7:()=>fE,DNE:()=>xp,EFF:()=>fD,JRh:()=>SE,SpI:()=>iy,Lme:()=>RE,DH7:()=>AD,mxI:()=>PE,R50:()=>ME,GBs:()=>tD}),S(467);let Z=null,Oe=!1,U=1;const ue=Symbol("SIGNAL");function oe(e){const t=Z;return Z=e,t}const Ce={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function Qe(e){if(Oe)throw new Error("");if(null===Z)return;Z.consumerOnSignalRead(e);const t=Z.nextProducerIndex++;Ue(Z),te.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function yt(e){Ue(e);for(let t=0;t0}function Ue(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=[])}function Fe(e){var t,r;null!==(t=e.liveConsumerNode)&&void 0!==t||(e.liveConsumerNode=[]),null!==(r=e.liveConsumerIndexOfThis)&&void 0!==r||(e.liveConsumerIndexOfThis=[])}let on=function tt(){throw new Error};function dt(){on()}let H=null;function ve(e,t){Dt()||dt(),e.equal(e.value,t)||(e.value=t,function Wt(e){var t;e.version++,function Ze(){U++}(),ht(e),null===(t=H)||void 0===t||t()}(e))}const De={...Ce,equal:function c(e,t){return Object.is(e,t)},value:void 0};const Kt=()=>{},rn={...Ce,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:e=>{null!==e.schedule&&e.schedule(e.ref)},hasRun:!1,cleanupFn:Kt};var Zn=S(1413),nr=S(8359),er=S(4412),yr=S(6354);const ir="https://g.co/ng/security#xss";class nt extends Error{constructor(t,r){super(Ot(t,r)),this.code=t}}function Ot(e,t){return`NG0${Math.abs(e)}${t?": "+t:""}`}function xn(e){return{toString:e}.toString()}const en="__parameters__";function Qn(e,t,r){return xn(()=>{const o=function Nr(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 g=new a(...d);return y.annotation=g,y;function y(A,B,Y){const de=A.hasOwnProperty(en)?A[en]:Object.defineProperty(A,en,{value:[]})[en];for(;de.length<=Y;)de.push(null);return(de[Y]=de[Y]||[]).push(g),A}}return r&&(a.prototype=Object.create(r.prototype)),a.prototype.ngMetadataName=e,a.annotationCls=a,a})}const Jn=globalThis;function ur(e){for(let t in e)if(e[t]===ur)return t;throw Error("Could not find renamed property on target object.")}function Pr(e,t){for(const r in t)t.hasOwnProperty(r)&&!e.hasOwnProperty(r)&&(e[r]=t[r])}function cr(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(cr).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 kr(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const Ai=ur({__forward_ref__:ur});function Qr(e){return e.__forward_ref__=Qr,e.toString=function(){return cr(this())},e}function pe(e){return rt(e)?e():e}function rt(e){return"function"==typeof e&&e.hasOwnProperty(Ai)&&e.__forward_ref__===Qr}function fr(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function gi(e){return{providers:e.providers||[],imports:e.imports||[]}}function pr(e){return te(e,M)||te(e,ne)}function Ut(e){return null!==pr(e)}function te(e,t){return e.hasOwnProperty(t)?e[t]:null}function ze(e){return e&&(e.hasOwnProperty(x)||e.hasOwnProperty(Te))?e[x]:null}const M=ur({\u0275prov:ur}),x=ur({\u0275inj:ur}),ne=ur({ngInjectableDef:ur}),Te=ur({ngInjectorDef:ur});class Ge{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=fr({token:this,providedIn:r.providedIn||"root",factory:r.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function Tr(e){return e&&!!e.\u0275providers}const Gn=ur({\u0275cmp:ur}),Cr=ur({\u0275dir:ur}),ai=ur({\u0275pipe:ur}),li=ur({\u0275mod:ur}),ei=ur({\u0275fac:ur}),Lr=ur({__NG_ELEMENT_ID__:ur}),mi=ur({__NG_ENV_ID__:ur});function Wn(e){return"string"==typeof e?e:null==e?"":String(e)}function oi(e,t){throw new nt(-201,!1)}var bt=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}(bt||{});let he;function le(){return he}function W(e){const t=he;return he=e,t}function $e(e,t,r){const o=pr(e);return o&&"root"==o.providedIn?void 0===o.value?o.value=o.factory():o.value:r&bt.Optional?null:void 0!==t?t:void oi()}const jt={},In="__NG_DI_FLAG__",Fn="ngTempTokenPath",j=/\n/gm,P="__source";let Ee;function sr(e){const t=Ee;return Ee=e,t}function ni(e,t=bt.Default){if(void 0===Ee)throw new nt(-203,!1);return null===Ee?$e(e,void 0,t):Ee.get(e,t&bt.Optional?null:void 0,t)}function z(e,t=bt.Default){return(le()||ni)(pe(e),t)}function Ne(e,t=bt.Default){return z(e,et(t))}function et(e){return typeof e>"u"||"number"==typeof e?e:(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function wt(e){const t=[];for(let r=0;rArray.isArray(r)?wi(r,t):t(r))}function Ni(e,t,r){t>=e.length?e.push(r):e.splice(t,0,r)}function ki(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Ji(e,t,r){let o=Io(e,t);return o>=0?e[1|o]=r:(o=~o,function Ti(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 Bo(e,t){const r=Io(e,t);if(r>=0)return e[1|r]}function Io(e,t){return function no(e,t,r){let o=0,a=e.length>>r;for(;a!==o;){const d=o+(a-o>>1),g=e[d<t?a=d:o=d+1}return~(a<t){g=d-1;break}}}for(;d-1){let d;for(;++ad?"":a[Y+1].toLowerCase(),2&o&&B!==de){if(Ae(o))return!1;g=!0}}}}else{if(!g&&!Ae(o)&&!Ae(A))return!1;if(g&&Ae(A))continue;g=!1,o=A|1&o}}return Ae(o)||g}function Ae(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+="."+g:4&o&&(a+=" "+g);else""!==a&&!Ae(g)&&(t+=wo(d,a),a=""),o=g,d=d||!Ae(o);r++}return""!==a&&(t+=wo(d,a)),t}function _s(e){return xn(()=>{var t;const r=La(e),o={...r,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===Ms.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||ls.Emulated,styles:e.styles||Kr,_:null,schemas:e.schemas||null,tView:null,id:""};jo(o);const a=e.dependencies;return o.directiveDefs=ys(a,!1),o.pipeDefs=ys(a,!0),o.id=function Hr(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 Gs(e){return Rr(e)||ji(e)}function fa(e){return null!==e}function ul(e){return xn(()=>({type:e.type,bootstrap:e.bootstrap||Kr,declarations:e.declarations||Kr,imports:e.imports||Kr,exports:e.exports||Kr,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function pa(e,t){if(null==e)return ko;const r={};for(const a in e)if(e.hasOwnProperty(a)){const d=e[a];let g,y,A=us.None;var o;Array.isArray(d)?(A=d[0],g=d[1],y=null!==(o=d[2])&&void 0!==o?o:g):(g=d,y=d),t?(r[g]=A!==us.None?[a,A]:a,t[g]=y):r[g]=a}return r}function $o(e){return xn(()=>{const t=La(e);return jo(t),t})}function Jo(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 Rr(e){return e[Gn]||null}function ji(e){return e[Cr]||null}function zi(e){return e[ai]||null}function po(e){const t=Rr(e)||ji(e)||zi(e);return null!==t&&t.standalone}function bi(e,t){const r=e[li]||null;if(!r&&!0===t)throw new Error(`Type ${cr(e)} does not have '\u0275mod' property.`);return r}function La(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||ko,exportAs:e.exportAs||null,standalone:!0===e.standalone,signals:!0===e.signals,selectors:e.selectors||Kr,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:pa(e.inputs,t),outputs:pa(e.outputs),debugInfo:null}}function jo(e){var t;null===(t=e.features)||void 0===t||t.forEach(r=>r(e))}function ys(e,t){if(!e)return null;const r=t?zi:Gs;return()=>("function"==typeof e?e():e).map(o=>r(o)).filter(fa)}function dl(e){return{\u0275providers:e}}function Ws(...e){return{\u0275providers:Va(0,e),\u0275fromNgModule:!0}}function Va(e,...t){const r=[],o=new Set;let a;const d=g=>{r.push(g)};return wi(t,g=>{const y=g;hl(y,d,[],o)&&(a||(a=[]),a.push(y))}),void 0!==a&&Es(a,d),r}function Es(e,t){for(let r=0;r{t(d,o)})}}function hl(e,t,r,o){if(!(e=pe(e)))return!1;let a=null,d=ze(e);const g=!d&&Rr(e);if(d||g){if(g&&!g.standalone)return!1;a=e}else{const A=e.ngModule;if(d=ze(A),!d)return!1;a=A}const y=o.has(a);if(g){if(y)return!1;if(o.add(a),g.dependencies){const A="function"==typeof g.dependencies?g.dependencies():g.dependencies;for(const B of A)hl(B,t,r,o)}}else{if(!d)return!1;{if(null!=d.imports&&!y){let B;o.add(a);try{wi(d.imports,Y=>{hl(Y,t,r,o)&&(B||(B=[]),B.push(Y))})}finally{}void 0!==B&&Es(B,t)}if(!y){const B=qr(a)||(()=>new a);t({provide:a,useFactory:B,deps:Kr},a),t({provide:Rs,useValue:a,multi:!0},a),t({provide:fo,useValue:()=>z(a),multi:!0},a)}const A=d.providers;if(null!=A&&!y){const B=e;Ul(A,Y=>{t(Y,B)})}}}return a!==e&&void 0!==e.providers}function Ul(e,t){for(let r of e)Tr(r)&&(r=r.\u0275providers),Array.isArray(r)?Ul(r,t):t(r)}const $l=ur({provide:String,useValue:ur});function jl(e){return null!==e&&"object"==typeof e&&$l in e}function Zo(e){return"function"==typeof e}const zl=new Ge(""),es={},Su={};let Hl;function ts(){return void 0===Hl&&(Hl=new Hs),Hl}class Lo{}class Ns extends Lo{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,Ks(t,g=>this.processProvider(g)),this.records.set(ka,$a(void 0,this)),a.has("environment")&&this.records.set(Lo,$a(void 0,this));const d=this.records.get(zl);null!=d&&"string"==typeof d.value&&this.scopes.add(d.value),this.injectorDefTypes=new Set(this.get(Rs,Kr,bt.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;const t=oe(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(),oe(t)}}onDestroy(t){return this.assertNotDestroyed(),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){this.assertNotDestroyed();const r=sr(this),o=W(void 0);try{return t()}finally{sr(r),W(o)}}get(t,r=jt,o=bt.Default){if(this.assertNotDestroyed(),t.hasOwnProperty(mi))return t[mi](this);o=et(o);const d=sr(this),g=W(void 0);try{if(!(o&bt.SkipSelf)){let A=this.records.get(t);if(void 0===A){const B=function _a(e){return"function"==typeof e||"object"==typeof e&&e instanceof Ge}(t)&&pr(t);A=B&&this.injectableDefInScope(B)?$a(Ui(t),es):null,this.records.set(t,A)}if(null!=A)return this.hydrate(t,A)}return(o&bt.Self?ts():this.parent).get(t,r=o&bt.Optional&&r===jt?null:r)}catch(y){if("NullInjectorError"===y.name){if((y[Fn]=y[Fn]||[]).unshift(cr(t)),d)throw y;return function sn(e,t,r,o){const a=e[Fn];throw t[P]&&a.unshift(t[P]),e.message=function cn(e,t,r,o=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let a=cr(t);if(Array.isArray(t))a=t.map(cr).join(" -> ");else if("object"==typeof t){let d=[];for(let g in t)if(t.hasOwnProperty(g)){let y=t[g];d.push(g+":"+("string"==typeof y?JSON.stringify(y):cr(y)))}a=`{${d.join(", ")}}`}return`${r}${o?"("+o+")":""}[${a}]: ${e.replace(j,"\n ")}`}("\n"+e.message,a,r,o),e.ngTokenPath=a,e[Fn]=null,e}(y,t,"R3InjectorError",this.source)}throw y}finally{W(g),sr(d)}}resolveInjectorInitializers(){const t=oe(null),r=sr(this),o=W(void 0);try{const d=this.get(fo,Kr,bt.Self);for(const g of d)g()}finally{sr(r),W(o),oe(t)}}toString(){const t=[],r=this.records;for(const o of r.keys())t.push(cr(o));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new nt(205,!1)}processProvider(t){let r=Zo(t=pe(t))?t:pe(t&&t.provide);const o=function Ua(e){return jl(e)?$a(void 0,e.useValue):$a(ma(e),es)}(t);if(!Zo(t)&&!0===t.multi){let a=this.records.get(r);a||(a=$a(void 0,es,!0),a.factory=()=>wt(a.multi),this.records.set(r,a)),r=t,a.multi.push(t)}this.records.set(r,o)}hydrate(t,r){const o=oe(null);try{return r.value===es&&(r.value=Su,r.value=r.factory()),"object"==typeof r.value&&r.value&&function va(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(r.value)&&this._ngOnDestroyHooks.add(r.value),r.value}finally{oe(o)}}injectableDefInScope(t){if(!t.providedIn)return!1;const r=pe(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 Ui(e){const t=pr(e),r=null!==t?t.factory:qr(e);if(null!==r)return r;if(e instanceof Ge)throw new nt(204,!1);if(e instanceof Function)return function ga(e){if(e.length>0)throw new nt(204,!1);const r=function ee(e){return e&&(e[M]||e[ne])||null}(e);return null!==r?()=>r.factory(e):()=>new e}(e);throw new nt(204,!1)}function ma(e,t,r){let o;if(Zo(e)){const a=pe(e);return qr(a)||Ui(a)}if(jl(e))o=()=>pe(e.useValue);else if(function Os(e){return!(!e||!e.useFactory)}(e))o=()=>e.useFactory(...wt(e.deps||[]));else if(function Is(e){return!(!e||!e.useExisting)}(e))o=()=>z(pe(e.useExisting));else{const a=pe(e&&(e.useClass||e.provide));if(!function zo(e){return!!e.deps}(e))return qr(a)||Ui(a);o=()=>new a(...wt(e.deps))}return o}function $a(e,t,r=!1){return{factory:e,value:t,multi:r?[]:void 0}}function Ks(e,t){for(const r of e)Array.isArray(r)?Ks(r,t):r&&Tr(r)?Ks(r.\u0275providers,t):t(r)}function lo(e,t){e instanceof Ns&&e.assertNotDestroyed();const o=sr(e),a=W(void 0);try{return t()}finally{sr(o),W(a)}}function Gl(){return void 0!==le()||null!=function it(){return Ee}()}function ya(e){if(!Gl())throw new nt(-203,!1)}const vi=0,Rn=1,Kn=2,Di=3,qi=4,Si=5,Qi=6,Ho=7,_i=8,Ki=9,ks=10,Br=11,Xs=12,vc=13,fl=14,Gi=15,Co=16,Cs=17,Go=18,qs=19,_c=20,Mi=21,Qs=22,cs=23,Gr=25,Ea=1,Wo=7,Ia=9,Xi=10;var Ru=function(e){return e[e.None=0]="None",e[e.HasTransplantedViews=2]="HasTransplantedViews",e}(Ru||{});function di(e){return Array.isArray(e)&&"object"==typeof e[Ea]}function Do(e){return Array.isArray(e)&&!0===e[Ea]}function Wl(e){return!!(4&e.flags)}function rs(e){return e.componentOffset>-1}function Ys(e){return!(1&~e.flags)}function ds(e){return!!e.template}function Kl(e){return!!(512&e[Kn])}class $i{constructor(t,r,o){this.previousValue=t,this.currentValue=r,this.firstChange=o}isFirstChange(){return this.firstChange}}function yi(e,t,r,o){null!==t?t.applyValueToInputSignal(t,o):e[r]=o}function Zi(){return Js}function Js(e){return e.type.prototype.ngOnChanges&&(e.setInput=Ga),Ha}function Ha(){const e=hs(this),t=null==e?void 0:e.current;if(t){const r=e.previous;if(r===ko)e.previous=t;else for(let o in t)r[o]=t[o];e.current=null,this.ngOnChanges(t)}}function Ga(e,t,r,o,a){const d=this.declaredInputs[o],g=hs(e)||function Ta(e,t){return e[Fs]=t}(e,{previous:ko,current:null}),y=g.current||(g.current={}),A=g.previous,B=A[d];y[d]=new $i(B&&B.currentValue,r,A===ko),yi(e,t,a,r)}Zi.ngInherit=!0;const Fs="__ngSimpleChanges__";function hs(e){return e[Fs]||null}const Ds=function(e,t,r){},ng="svg";let Pu=!1;function Pi(e){for(;Array.isArray(e);)e=e[vi];return e}function Ka(e,t){return Pi(t[e])}function is(e,t){return Pi(t[e.index])}function Ql(e,t){return e.data[t]}function Ro(e,t){const r=t[e];return di(r)?r:r[vi]}function Ic(e){return!(128&~e[Kn])}function Ts(e,t){return null==t?null:e[t]}function Cc(e){e[Cs]=0}function Sd(e){1024&e[Kn]||(e[Kn]|=1024,Ic(e)&&Ls(e))}function Yl(e){var t;return!!(9216&e[Kn]||null!==(t=e[cs])&&void 0!==t&&t.dirty)}function ml(e){var t;if(null===(t=e[ks].changeDetectionScheduler)||void 0===t||t.notify(1),Yl(e))Ls(e);else if(64&e[Kn])if(function ba(){return Pu}())e[Kn]|=1024,Ls(e);else{var r;null===(r=e[ks].changeDetectionScheduler)||void 0===r||r.notify()}}function Ls(e){var t;null===(t=e[ks].changeDetectionScheduler)||void 0===t||t.notify();let r=Zs(e);for(;null!==r&&!(8192&r[Kn])&&(r[Kn]|=8192,Ic(r));)r=Zs(r)}function Xa(e,t){if(!(256&~e[Kn]))throw new nt(911,!1);null===e[Mi]&&(e[Mi]=[]),e[Mi].push(t)}function Zs(e){const t=e[Di];return Do(t)?t[Di]:t}const gr={lFrame:Zh(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function wa(){return gr.bindingsEnabled}function Zl(){return null!==gr.skipHydrationRootTNode}function an(){return gr.lFrame.lView}function Ei(){return gr.lFrame.tView}function Md(e){return gr.lFrame.contextLView=e,e[_i]}function bc(e){return gr.lFrame.contextLView=null,e}function Vi(){let e=Qh();for(;null!==e&&64===e.type;)e=e.parent;return e}function Qh(){return gr.lFrame.currentTNode}function na(e,t){const r=gr.lFrame;r.currentTNode=e,r.isParent=t}function Ou(){return gr.lFrame.isParent}function Nu(){gr.lFrame.isParent=!1}function go(){const e=gr.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function bs(){return gr.lFrame.bindingIndex++}function oa(e){const t=gr.lFrame,r=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,r}function xd(e,t){const r=gr.lFrame;r.bindingIndex=r.bindingRootIndex=e,Od(t)}function Od(e){gr.lFrame.currentDirectiveIndex=e}function Nd(){return gr.lFrame.currentQueryIndex}function Rc(e){gr.lFrame.currentQueryIndex=e}function Mc(e){const t=e[Rn];return 2===t.type?t.declTNode:1===t.type?e[Si]:null}function Jh(e,t,r){if(r&bt.SkipSelf){let a=t,d=e;for(;!(a=a.parent,null!==a||r&bt.Host||(a=Mc(d),null===a||(d=d[fl],10&a.type))););if(null===a)return!1;t=a,e=d}const o=gr.lFrame=Fu();return o.currentTNode=t,o.lView=e,!0}function Sa(e){const t=Fu(),r=e[Rn];gr.lFrame=t,t.currentTNode=r.firstChild,t.lView=e,t.tView=r,t.contextLView=e,t.bindingIndex=r.bindingStartIndex,t.inI18n=!1}function Fu(){const e=gr.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 kd(){const e=gr.lFrame;return gr.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const Pc=kd;function Lu(){const e=kd();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 mo(){return gr.lFrame.selectedIndex}function Ra(e){gr.lFrame.selectedIndex=e}function Fi(){const e=gr.lFrame;return Ql(e.tView,e.selectedIndex)}function ef(){gr.lFrame.currentNamespace=ng}let Bu=!0;function Uu(){return Bu}function Vs(e){Bu=e}function $u(e,t){for(let B=t.directiveStart,Y=t.directiveEnd;B=o)break}else t[A]<0&&(e[Cs]+=65536),(y>14>16&&(3&e[Kn])===t&&(e[Kn]+=16384,El(y,d)):El(y,d)}const Il=-1;class Al{constructor(t,r,o){this.factory=t,this.resolving=!1,this.canSeeViewProviders=r,this.injectImpl=o}}function Cl(e){return e!==Il}function Ma(e){return 32767&e}function Dl(e,t){let r=function Fc(e){return e>>16}(e),o=t;for(;r>0;)o=o[fl],r--;return o}let zu=!0;function eu(e){const t=zu;return zu=e,t}const lf=255,Bd=5;let Lc=0;const ws={};function Hu(e,t){const r=Ud(e,t);if(-1!==r)return r;const o=t[Rn];o.firstCreatePass&&(e.injectorIndex=t.length,Mo(o.data,e),Mo(t,null),Mo(o.blueprint,null));const a=Qa(e,t),d=e.injectorIndex;if(Cl(a)){const g=Ma(a),y=Dl(a,t),A=y[Rn].data;for(let B=0;B<8;B++)t[d+B]=y[g+B]|A[g+B]}return t[d+8]=a,d}function Mo(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Ud(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=Ja(a),null===o)return Il;if(r++,a=a[fl],-1!==o.injectorIndex)return o.injectorIndex|r<<16}return Il}function Tl(e,t,r){!function hv(e,t,r){let o;"string"==typeof r?o=r.charCodeAt(0)||0:r.hasOwnProperty(Lr)&&(o=r[Lr]),null==o&&(o=r[Lr]=Lc++);const a=o&lf;t.data[e+(a>>Bd)]|=1<=0?t&lf:df:t}(r);if("function"==typeof d){if(!Jh(t,e,o))return o&bt.Host?tu(a,0,o):$d(t,r,o,a);try{let g;if(g=d(o),null!=g||o&bt.Optional)return g;oi()}finally{Pc()}}else if("number"==typeof d){let g=null,y=Ud(e,t),A=Il,B=o&bt.Host?t[Gi][Si]:null;for((-1===y||o&bt.SkipSelf)&&(A=-1===y?Qa(e,t):t[y+8],A!==Il&&nu(o,!1)?(g=t[Rn],y=Ma(A),t=Dl(A,t)):y=-1);-1!==y;){const Y=t[Rn];if(Uc(d,y,Y.data)){const de=lg(y,t,r,g,o,B);if(de!==ws)return de}A=t[y+8],A!==Il&&nu(o,t[Rn].data[y+8]===B)&&Uc(d,y,t)?(g=Y,y=Ma(A),t=Dl(A,t)):y=-1}}return a}function lg(e,t,r,o,a,d){const g=t[Rn],y=g.data[e+8],Y=jd(y,g,r,null==o?rs(y)&&zu:o!=g&&!!(3&y.type),a&bt.Host&&d===y);return null!==Y?bl(t,g,Y,y):ws}function jd(e,t,r,o,a){const d=e.providerIndexes,g=t.data,y=1048575&d,A=e.directiveStart,Y=d>>20,We=a?y+Y:e.directiveEnd;for(let ft=o?y:y+Y;ft=A&&Ft.type===r)return ft}if(a){const ft=g[A];if(ft&&ds(ft)&&ft.type===r)return A}return null}function bl(e,t,r,o){let a=e[r];const d=t.data;if(function sf(e){return e instanceof Al}(a)){const g=a;g.resolving&&function Ci(e,t){throw t&&t.join(" > "),new nt(-200,e)}(function Hn(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():Wn(e)}(d[r]));const y=eu(g.canSeeViewProviders);g.resolving=!0;const B=g.injectImpl?W(g.injectImpl):null;Jh(e,o,bt.Default);try{a=e[r]=g.factory(void 0,d,e,o),t.firstCreatePass&&r>=o.directiveStart&&function ag(e,t,r){const{ngOnChanges:o,ngOnInit:a,ngDoCheck:d}=t.type.prototype;if(o){var g,y;const de=Js(t);(null!==(g=r.preOrderHooks)&&void 0!==g?g:r.preOrderHooks=[]).push(e,de),(null!==(y=r.preOrderCheckHooks)&&void 0!==y?y:r.preOrderCheckHooks=[]).push(e,de)}var A,B,Y;a&&(null!==(A=r.preOrderHooks)&&void 0!==A?A:r.preOrderHooks=[]).push(0-e,a),d&&((null!==(B=r.preOrderHooks)&&void 0!==B?B:r.preOrderHooks=[]).push(e,d),(null!==(Y=r.preOrderCheckHooks)&&void 0!==Y?Y:r.preOrderCheckHooks=[]).push(e,d))}(r,d[r],t)}finally{null!==B&&W(B),eu(y),g.resolving=!1,Pc()}}return a}function Uc(e,t,r){return!!(r[t+(e>>Bd)]&1<{const t=e.prototype.constructor,r=t[ei]||Gu(t),o=Object.prototype;let a=Object.getPrototypeOf(e.prototype).constructor;for(;a&&a!==o;){const d=a[ei]||Gu(a);if(d&&d!==r)return d;a=Object.getPrototypeOf(a)}return d=>new d})}function Gu(e){return rt(e)?()=>{const t=Gu(pe(e));return t&&t()}:qr(e)}function Ja(e){const t=e[Rn],r=t.type;return 2===r?t.declTNode:1===r?e[Si]:null}function $c(e){return function Vc(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 dg({name:""},a,o,"");{var d;const g=null!==(d=o.name)&&void 0!==d?d:"";return dg({name:g},o.parent,o.providers,g)}}}return(e=t).THROW_IF_NOT_FOUND=jt,e.NULL=new Hs,e.\u0275prov=fr({token:e,providedIn:"any",factory:()=>z(ka)}),e.__NG_ELEMENT_ID__=-1,t})();function zc(e){return e.ngOriginalError}class Za{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&&zc(t);for(;r&&zc(r);)r=zc(r);return r||null}}const Gd=new Ge("",{providedIn:"root",factory:()=>Ne(Za).handleError.bind(void 0)});let Xu=(()=>{var e;class t{}return(e=t).__NG_ELEMENT_ID__=hg,e.__NG_ENV_ID__=r=>r,t})();class If extends Xu{constructor(t){super(),this._lView=t}onDestroy(t){return Xa(this._lView,t),()=>function Jl(e,t){if(null===e[Mi])return;const r=e[Mi].indexOf(t);-1!==r&&e[Mi].splice(r,1)}(this._lView,t)}}function hg(){return new If(an())}function Qu(){return la(Vi(),an())}function la(e,t){return new Yu(is(e,t))}let Yu=(()=>{class t{constructor(o){this.nativeElement=o}}return t.__NG_ELEMENT_ID__=Qu,t})();function iu(e){return e instanceof Yu?e.nativeElement:e}function Af(e){return t=>{setTimeout(e,void 0,t)}}const Bs=class pv extends Zn.B{constructor(t=!1){var r;super(),this.destroyRef=void 0,this.__isAsync=t,Gl()&&(this.destroyRef=null!==(r=Ne(Xu,{optional:!0}))&&void 0!==r?r:void 0)}emit(t){const r=oe(null);try{super.next(t)}finally{oe(r)}}subscribe(t,r,o){let a=t,d=r||(()=>null),g=o;if(t&&"object"==typeof t){var y,A,B;const de=t;a=null===(y=de.next)||void 0===y?void 0:y.bind(de),d=null===(A=de.error)||void 0===A?void 0:A.bind(de),g=null===(B=de.complete)||void 0===B?void 0:B.bind(de)}this.__isAsync&&(d=Af(d),a&&(a=Af(a)),g&&(g=Af(g)));const Y=super.subscribe({next:a,error:d,complete:g});return t instanceof nr.yU&&t.add(Y),Y}};function Cf(){return this._results[Symbol.iterator]()}class Ju{get changes(){var t;return null!==(t=this._changes)&&void 0!==t?t:this._changes=new Bs}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=Ju.prototype;r[Symbol.iterator]||(r[Symbol.iterator]=Cf)}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 br(e){return e.flat(Number.POSITIVE_INFINITY)}(t);(this._changesDetected=!function jr(e,t,r){if(e.length!==t.length)return!1;for(let o=0;obg}),bg="ng",Ev=new Ge(""),eh=new Ge("",{providedIn:"platform",factory:()=>"unknown"}),Ay=new Ge("",{providedIn:"root",factory:()=>{var e;return(null===(e=function lu(){if(void 0!==Dg)return Dg;if(typeof document<"u")return document;throw new nt(210,!1)}().body)||void 0===e||null===(e=e.querySelector("[ngCspNonce]"))||void 0===e?void 0:e.getAttribute("ngCspNonce"))||null}});let Dv=()=>null;function oh(e,t,r=!1){return Dv(e,t,r)}const Ng=new Ge("",{providedIn:"root",factory:()=>!1});let Lf,uh;function Qc(e){var t;return(null===(t=function kg(){if(void 0===Lf&&(Lf=null,Jn.trustedTypes))try{Lf=Jn.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Lf}())||void 0===t?void 0:t.createHTML(e))||e}function Fg(e){var t;return(null===(t=function Vf(){if(void 0===uh&&(uh=null,Jn.trustedTypes))try{uh=Jn.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return uh}())||void 0===t?void 0:t.createScriptURL(e))||e}class du{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${ir})`}}class Uf extends du{getTypeName(){return"HTML"}}class Ii extends du{getTypeName(){return"Style"}}class Mv extends du{getTypeName(){return"Script"}}class Pv extends du{getTypeName(){return"URL"}}class ch extends du{getTypeName(){return"ResourceURL"}}function Rl(e){return e instanceof du?e.changingThisBreaksApplicationSecurity:e}function uo(e,t){const r=function vo(e){return e instanceof du&&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 ${ir})`)}return r===t}function nl(e){return new Uf(e)}function Py(e){return new Ii(e)}function sI(e){return new Mv(e)}function xv(e){return new Pv(e)}function aI(e){return new ch(e)}class xy{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{const r=(new window.DOMParser).parseFromString(Qc(t),"text/html").body;return null===r?this.inertDocumentHelper.getInertBodyElement(t):(r.removeChild(r.firstChild),r)}catch{return null}}}class Vg{constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(t){const r=this.inertDocument.createElement("template");return r.innerHTML=Qc(t),r}}const lI=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Bi(e){return(e=String(e)).match(lI)?e:"unsafe:"+e}function hu(e){const t={};for(const r of e.split(","))t[r]=!0;return t}function dh(...e){const t={};for(const r of e)for(const o in r)r.hasOwnProperty(o)&&(t[o]=!0);return t}const ro=hu("area,br,col,hr,img,wbr"),Bg=hu("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Ny=hu("rp,rt"),Ov=dh(ro,dh(Bg,hu("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),dh(Ny,hu("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),dh(Ny,Bg)),Nv=hu("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Fy=dh(Nv,hu("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),hu("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),uI=hu("script,style,template");class kv{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let r=t.firstChild,o=!0,a=[];for(;r;)if(r.nodeType===Node.ELEMENT_NODE?o=this.startElement(r):r.nodeType===Node.TEXT_NODE?this.chars(r.nodeValue):this.sanitizedSomething=!0,o&&r.firstChild)a.push(r),r=ic(r);else for(;r;){r.nodeType===Node.ELEMENT_NODE&&this.endElement(r);let d=Ly(r);if(d){r=d;break}r=a.pop()}return this.buf.join("")}startElement(t){const r=fu(t).toLowerCase();if(!Ov.hasOwnProperty(r))return this.sanitizedSomething=!0,!uI.hasOwnProperty(r);this.buf.push("<"),this.buf.push(r);const o=t.attributes;for(let a=0;a"),!0}endElement(t){const r=fu(t).toLowerCase();Ov.hasOwnProperty(r)&&!ro.hasOwnProperty(r)&&(this.buf.push(""))}chars(t){this.buf.push(Fv(t))}}function Ly(e){const t=e.nextSibling;if(t&&e!==t.previousSibling)throw Vy(t);return t}function ic(e){const t=e.firstChild;if(t&&function hh(e,t){return(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}(e,t))throw Vy(t);return t}function fu(e){const t=e.nodeName;return"string"==typeof t?t:"FORM"}function Vy(e){return new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`)}const Yc=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Ug=/([^\#-~ |!])/g;function Fv(e){return e.replace(/&/g,"&").replace(Yc,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(Ug,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}let $f;function $g(e,t){let r=null;try{$f=$f||function Lg(e){const t=new Vg(e);return function Oy(){try{return!!(new window.DOMParser).parseFromString(Qc(""),"text/html")}catch{return!1}}()?new xy(t):t}(e);let o=t?String(t):"";r=$f.getInertBodyElement(o);let a=5,d=o;do{if(0===a)throw new Error("Failed to sanitize html because the input is unstable");a--,o=d,d=r.innerHTML,r=$f.getInertBodyElement(o)}while(o!==d);return Qc((new kv).sanitizeChildren(jf(r)||r))}finally{if(r){const o=jf(r)||r;for(;o.firstChild;)o.removeChild(o.firstChild)}}}function jf(e){return"content"in e&&function zf(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var oc=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}(oc||{});function fh(e){const t=Pa();return t?t.sanitize(oc.STYLE,e)||"":uo(e,"Style")?Rl(e):Wn(e)}function Jc(e){const t=Pa();return t?t.sanitize(oc.URL,e)||"":uo(e,"URL")?Rl(e):Bi(Wn(e))}function jg(e){const t=Pa();if(t)return Fg(t.sanitize(oc.RESOURCE_URL,e)||"");if(uo(e,"ResourceURL"))return Fg(Rl(e));throw new nt(904,!1)}function Hf(e,t,r){return function Wg(e,t){return"src"===t&&("embed"===e||"frame"===e||"iframe"===e||"media"===e||"script"===e)||"href"===t&&("base"===e||"link"===e)?jg:Jc}(t,r)(e)}function Pa(){const e=an();return e&&e[ks].sanitizer}const Vv=/^>|^->||--!>|)/g,Kg="\u200b$1\u200b";function ca(e){return e instanceof Function?e():e}var Yg=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(Yg||{});let zv;function Jg(e,t){return zv(e,t)}function vh(e,t,r,o,a){if(null!=o){let d,g=!1;Do(o)?d=o:di(o)&&(g=!0,o=o[vi]);const y=Pi(o);0===e&&null!==r?null==a?od(t,r,y):id(t,r,y,a||null,!0):1===e&&null!==r?id(t,r,y,a||null,!0):2===e?function Jf(e,t,r){const o=Yf(e,t);o&&function vI(e,t,r,o){e.removeChild(t,r,o)}(e,o,t,r)}(t,y,g):3===e&&t.destroyNode(y),null!=d&&function yI(e,t,r,o,a){const d=r[Wo];d!==Pi(r)&&vh(t,e,o,d,a);for(let y=Xi;yt.replace(Bv,Kg))}(t))}function xl(e,t,r){return e.createElement(t,r)}function Hv(e,t){var r;null===(r=t[ks].changeDetectionScheduler)||void 0===r||r.notify(1),xa(e,t,t[Br],2,null,null)}function Gv(e,t){const r=e[Ia],o=r.indexOf(t);r.splice(o,1)}function qf(e,t){if(e.length<=Xi)return;const r=Xi+t,o=e[r];if(o){const a=o[Co];null!==a&&a!==e&&Gv(a,o),t>0&&(e[r-1][qi]=o[qi]);const d=ki(e,Xi+t);!function qy(e,t){Hv(e,t),t[vi]=null,t[Si]=null}(o[Rn],o);const g=d[Go];null!==g&&g.detachView(d[Rn]),o[Di]=null,o[qi]=null,o[Kn]&=-129}return o}function Zg(e,t){if(!(256&t[Kn])){const r=t[Br];r.destroyNode&&xa(e,t,r,3,null,null),function pu(e){let t=e[Xs];if(!t)return em(e[Rn],e);for(;t;){let r=null;if(di(t))r=t[Xs];else{const o=t[Xi];o&&(r=o)}if(!r){for(;t&&!t[qi]&&t!==e;)di(t)&&em(t[Rn],t),t=t[Di];null===t&&(t=e),di(t)&&em(t[Rn],t),r=t&&t[qi]}t=r}}(t)}}function em(e,t){if(256&t[Kn])return;const r=oe(null);try{t[Kn]&=-129,t[Kn]|=256,t[cs]&&mt(t[cs]),function Yy(e,t){let r;if(null!=e&&null!=(r=e.destroyHooks))for(let o=0;o=0?o[g]():o[-g].unsubscribe(),d+=2}else r[d].call(o[r[d+1]]);null!==o&&(t[Ho]=null);const a=t[Mi];if(null!==a){t[Mi]=null;for(let d=0;d-1){const{encapsulation:d}=e.data[o.directiveStart+a];if(d===ls.None||d===ls.Emulated)return null}return is(o,r)}}(e,t.parent,r)}function id(e,t,r,o,a){e.insertBefore(t,r,o,a)}function od(e,t,r){e.appendChild(t,r)}function Qf(e,t,r,o,a){null!==o?id(e,t,r,o,a):od(e,t,r)}function Yf(e,t){return e.parentNode(t)}function Kv(e,t,r){return e0(e,t,r)}let qv,e0=function Xv(e,t,r){return 40&e.type?is(e,r):null};function tm(e,t,r,o){const a=Wv(e,o,t),d=t[Br],y=Kv(o.parent||t[Si],o,t);if(null!=a)if(Array.isArray(r))for(let A=0;AGr&&im(e,t,Gr,!1),Ds(g?2:0,a),r(o,a)}finally{Ra(d),Ds(g?3:1,a)}}function Jv(e,t,r){if(Wl(t)){const o=oe(null);try{const d=t.directiveEnd;for(let g=t.directiveStart;gnull;function e_(e,t,r,o,a){for(let g in t){var d;if(!t.hasOwnProperty(g))continue;const y=t[g];if(void 0===y)continue;null!==(d=o)&&void 0!==d||(o={});let A,B=us.None;Array.isArray(y)?(A=y[0],B=y[1]):A=y;let Y=g;if(null!==a){if(!a.hasOwnProperty(g))continue;Y=a[g]}0===e?g0(o,r,Y,A,B):g0(o,r,Y,A)}return o}function g0(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 Us(e,t,r,o,a,d,g,y){const A=is(t,r);let Y,B=t.inputs;!y&&null!=B&&(Y=B[o])?(i_(e,r,Y,o,a),rs(t)&&function wI(e,t){const r=Ro(t,e);16&r[Kn]||(r[Kn]|=64)}(r,t.index)):3&t.type&&(o=function bI(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(o),a=null!=g?g(a,t.value||"",o):a,d.setProperty(A,o,a))}function t_(e,t,r,o){if(wa()){const a=null===o?null:{"":-1},d=function OI(e,t){const r=e.directiveRegistry;let o=null,a=null;if(r)for(let g=0;g0;){const r=e[--t];if("number"==typeof r&&r<0)return r}return 0})(g)!=y&&g.push(y),g.push(r,o,d)}}(e,t,o,ep(e,r,a.hostVars,ti),a)}function Ol(e,t,r,o,a,d){const g=is(e,t);!function r_(e,t,r,o,a,d,g){if(null==d)e.removeAttribute(t,a,r);else{const y=null==g?Wn(d):g(d,o||"",a);e.setAttribute(t,a,y,r)}}(t[Br],g,d,e.value,r,o,a)}function VI(e,t,r,o,a,d){const g=d[t];if(null!==g)for(let y=0;y0&&(r[a-1][qi]=t),o{Ls(e.lView)},consumerOnSignalRead(){this.lView[cs]=this}},w0=100;function hm(e,t=!0,r=0){const o=e[ks],a=o.rendererFactory;var g;null===(g=a.begin)||void 0===g||g.call(a);try{!function WI(e,t){s_(e,t);let r=0;for(;Yl(e);){if(r===w0)throw new nt(103,!1);r++,s_(e,1)}}(e,r)}catch(B){throw t&&um(e,B),B}finally{var y,A;null===(y=a.end)||void 0===y||y.call(a),null===(A=o.inlineEffectRunner)||void 0===A||A.flush()}}function KI(e,t,r,o){var a;const d=t[Kn];if(!(256&~d))return;null===(a=t[ks].inlineEffectRunner)||void 0===a||a.flush(),Sa(t);let y=null,A=null;(function XI(e){return 2!==e.type})(e)&&(A=function jI(e){var t;return null!==(t=e[cs])&&void 0!==t?t:function zI(e){var t;const r=null!==(t=b0.pop())&&void 0!==t?t:Object.create(GI);return r.lView=e,r}(e)}(t),y=_t(A));try{Cc(t),function wc(e){return gr.lFrame.bindingIndex=e}(e.bindingStartIndex),null!==r&&c0(e,t,r,2,o);const B=!(3&~d);if(B){const We=e.preOrderCheckHooks;null!==We&&xc(t,We,null)}else{const We=e.preOrderHooks;null!==We&&sa(t,We,0,null),aa(t,0)}if(function qI(e){for(let t=vg(e);null!==t;t=bf(t)){if(!(t[Kn]&Ru.HasTransplantedViews))continue;const r=t[Ia];for(let o=0;o-1&&(qf(t,o),ki(r,o))}this._attachedToViewContainer=!1}Zg(this._lView[Rn],this._lView)}onDestroy(t){Xa(this._lView,t)}markForCheck(){op(this._cdRefInjectingView||this._lView)}detach(){this._lView[Kn]&=-129}reattach(){ml(this._lView),this._lView[Kn]|=128}detectChanges(){this._lView[Kn]|=1024,hm(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new nt(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,Hv(this._lView[Rn],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new nt(902,!1);this._appRef=t,ml(this._lView)}}let ap=(()=>{class t{}return t.__NG_ELEMENT_ID__=JI,t})();const P0=ap,YI=class extends P0{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=np(this._declarationLView,this._declarationTContainer,t,{embeddedViewInjector:r,dehydratedView:o});return new sp(a)}};function JI(){return fm(Vi(),an())}function fm(e,t){return 4&e.type?new YI(t,e,la(e,t)):null}let gm=()=>null;function _o(e,t){return gm(e,t)}class mm{}class Ch{}class l_{}class lp{resolveComponentFactory(t){throw function Dh(e){const t=Error(`No component factory found for ${cr(e)}.`);return t.ngComponent=e,t}(t)}}let dc=(()=>{class t{}return t.NULL=new lp,t})();class up{}let vm=(()=>{class t{constructor(){this.destroyNode=null}}return t.__NG_ELEMENT_ID__=()=>function _m(){const e=an(),r=Ro(Vi().index,e);return(di(r)?r:e)[Br]}(),t})(),ym=(()=>{var e;class t{}return(e=t).\u0275prov=fr({token:e,providedIn:"root",factory:()=>null}),t})();const cp={},c_=new Set;function Oa(e){var t,r;c_.has(e)||(c_.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 Em(...e){}class bo{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:o=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Bs(!1),this.onMicrotaskEmpty=new Bs(!1),this.onStable=new Bs(!1),this.onError=new Bs(!1),typeof Zone>"u")throw new nt(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 Im(){const e="function"==typeof Jn.requestAnimationFrame;let t=Jn[e?"requestAnimationFrame":"setTimeout"],r=Jn[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 os(e){const t=()=>{!function Cm(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(Jn,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,Ko(e),e.isCheckStableRunning=!0,Th(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),Ko(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(r,o,a,d,g,y)=>{if(function L0(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,g,y);try{return bh(e),r.invokeTask(a,d,g,y)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===d.type||e.shouldCoalesceRunChangeDetection)&&t(),Dm(e)}},onInvoke:(r,o,a,d,g,y,A)=>{try{return bh(e),r.invoke(a,d,g,y,A)}finally{e.shouldCoalesceRunChangeDetection&&t(),Dm(e)}},onHasTask:(r,o,a,d)=>{r.hasTask(a,d),o===a&&("microTask"==d.change?(e._hasPendingMicrotasks=d.microTask,Ko(e),Th(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(!bo.isInAngularZone())throw new nt(909,!1)}static assertNotInAngularZone(){if(bo.isInAngularZone())throw new nt(909,!1)}run(t,r,o){return this._inner.run(t,r,o)}runTask(t,r,o,a){const d=this._inner,g=d.scheduleEventTask("NgZoneEvent: "+a,t,Am,Em,Em);try{return d.runTask(g,r,o)}finally{d.cancelTask(g)}}runGuarded(t,r,o){return this._inner.runGuarded(t,r,o)}runOutsideAngular(t){return this._outer.run(t)}}const Am={};function Th(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 Ko(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function bh(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Dm(e){e._nesting--,Th(e)}class Tm{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Bs,this.onMicrotaskEmpty=new Bs,this.onStable=new Bs,this.onError=new Bs}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 vu=function(e){return e[e.EarlyRead=0]="EarlyRead",e[e.Write=1]="Write",e[e.MixedReadWrite=2]="MixedReadWrite",e[e.Read=3]="Read",e}(vu||{});const bm={destroy(){}};function d_(e,t){var r,o,a;!t&&ya();const d=null!==(r=null==t?void 0:t.injector)&&void 0!==r?r:Ne(ps);if(!function rl(e){return"browser"===(null!=e?e:Ne(ps)).get(eh)}(d))return bm;Oa("NgAfterNextRender");const g=d.get(ud),y=null!==(o=g.handler)&&void 0!==o?o:g.handler=new wm,A=null!==(a=null==t?void 0:t.phase)&&void 0!==a?a:vu.MixedReadWrite,B=()=>{y.unregister(de),Y()},Y=d.get(Xu).onDestroy(B),de=lo(d,()=>new dp(A,()=>{B(),e()}));return y.register(de),{destroy:B}}class dp{constructor(t,r){var o;this.phase=t,this.callbackFn=r,this.zone=Ne(bo),this.errorHandler=Ne(Za,{optional:!0}),null===(o=Ne(mm,{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 wm{constructor(){this.executingCallbacks=!1,this.buckets={[vu.EarlyRead]:new Set,[vu.Write]:new Set,[vu.MixedReadWrite]:new Set,[vu.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 ud=(()=>{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=fr({token:e,providedIn:"root",factory:()=>new e}),t})();function il(e){return!!bi(e)}function yu(e,t,r){let o=r?e.styles:null,a=r?e.classes:null,d=0;if(null!==t)for(let g=0;g0&&o0(e,r,d.join(" "))}}(Zt,Bl,Pn,o),void 0!==r&&function v_(e,t,r){const o=e.projection=[];for(let a=0;a{class t{}return t.__NG_ELEMENT_ID__=__,t})();function __(){return _p(Vi(),an())}const y_=pd,E_=class extends y_{constructor(t,r,o){super(),this._lContainer=t,this._hostTNode=r,this._hostLView=o}get element(){return la(this._hostTNode,this._hostLView)}get injector(){return new eo(this._hostTNode,this._hostLView)}get parentInjector(){const t=Qa(this._hostTNode,this._hostLView);if(Cl(t)){const r=Dl(t,this._hostLView),o=Ma(t);return new eo(r[Rn].data[o+8],r)}return new eo(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const r=Mh(this._lContainer);return null!==r&&r[t]||null}get length(){return this._lContainer.length-Xi}createEmbeddedView(t,r,o){let a,d;"number"==typeof o?a=o:null!=o&&(a=o.index,d=o.injector);const g=_o(this._lContainer,t.ssrId),y=t.createEmbeddedViewImpl(r||{},d,g);return this.insertImpl(y,a,Ih(this._hostTNode,g)),y}createComponent(t,r,o,a,d){var g,y,A;const B=t&&!function Qt(e){return"function"==typeof e}(t);let Y;if(B)Y=r;else{const Pn=r||{};Y=Pn.index,o=Pn.injector,a=Pn.projectableNodes,d=Pn.environmentInjector||Pn.ngModuleRef}const de=B?t:new Rh(Rr(t)),We=o||this.parentInjector;if(!d&&null==de.ngModule){const un=(B?We:this.parentInjector).get(Lo,null);un&&(d=un)}const ft=Rr(null!==(g=de.componentType)&&void 0!==g?g:{}),Ft=_o(this._lContainer,null!==(y=null==ft?void 0:ft.id)&&void 0!==y?y:null),Zt=null!==(A=null==Ft?void 0:Ft.firstChild)&&void 0!==A?A:null,bn=de.create(We,a,Zt,d);return this.insertImpl(bn.hostView,Y,Ih(this._hostTNode,Ft)),bn}insert(t,r){return this.insertImpl(t,r,!0)}insertImpl(t,r,o){const a=t._lView;if(function Ac(e){return Do(e[Di])}(a)){const y=this.indexOf(t);if(-1!==y)this.detach(y);else{const A=a[Di],B=new E_(A,A[Si],A[Di]);B.detach(B.indexOf(t))}}const d=this._adjustIndex(r),g=this._lContainer;return rp(g,a,d,o),t.attachToViewContainerRef(),Ni(vp(g),d,t),t}move(t,r){return this.insert(t,r)}indexOf(t){const r=Mh(this._lContainer);return null!==r?r.indexOf(t):-1}remove(t){const r=this._adjustIndex(t,-1),o=qf(this._lContainer,r);o&&(ki(vp(this._lContainer),r),Zg(o[Rn],o))}detach(t){const r=this._adjustIndex(t,-1),o=qf(this._lContainer,r);return o&&null!=ki(vp(this._lContainer),r)?new sp(o):null}_adjustIndex(t,r=0){return null==t?this.length+r:t}};function Mh(e){return e[8]}function vp(e){return e[8]||(e[8]=[])}function _p(e,t){let r;const o=t[e.index];return Do(o)?r=o:(r=E0(o,t,null,e),t[e.index]=r,am(t,r)),Iu(r,t,e,o),new E_(r,e,t)}let Iu=function Pm(e,t,r,o){if(e[Wo])return;let a;a=8&r.type?Pi(o):function Ph(e,t){const r=e[Br],o=r.createComment(""),a=is(t,e);return id(r,Yf(r,a),o,function Zy(e,t){return e.nextSibling(t)}(r,a),!1),o}(t,r),e[Wo]=a},xh=()=>!1;class Oh{constructor(t){this.queryList=t,this.matches=null}clone(){return new Oh(this.queryList)}setDirty(){this.queryList.setDirty()}}class yp{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 Nm{constructor(t=[]){this.queries=t}elementStart(t,r){for(let o=0;o0)o.push(g[y/2]);else{const B=d[y+1],Y=t[-A];for(let de=Xi;de(Qe(t),t.value);return r[ue]=t,r}(e),o=r[ue];return null!=t&&t.equal&&(o.equal=t.equal),r.set=a=>ve(o,a),r.update=a=>function Le(e,t){Dt()||dt(),ve(e,t(e.value))}(o,a),r.asReadonly=kl.bind(r),r}function kl(){const e=this[ue];if(void 0===e.readonlyFn){const t=()=>this();t[ue]=e,e.readonlyFn=t}return e.readonlyFn}function Vm(e){return Lm(e)&&"function"==typeof e.set}function wp(e){let t=function Cu(e){return Object.getPrototypeOf(e.prototype).constructor}(e.type),r=!0;const o=[e];for(;t;){let a;if(ds(e))a=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new nt(903,!1);a=t.\u0275dir}if(a){if(r){o.push(a);const g=e;g.inputs=Uh(e.inputs),g.inputTransforms=Uh(e.inputTransforms),g.declaredInputs=Uh(e.declaredInputs),g.outputs=Uh(e.outputs);const y=a.hostBindings;y&&L_(e,y);const A=a.viewQuery,B=a.contentQueries;if(A&&Sp(e,A),B&&$s(e,B),k_(e,a),Pr(e.outputs,a.outputs),ds(a)&&a.data.animation){const Y=e.data;Y.animation=(Y.animation||[]).concat(a.data.animation)}}const d=a.features;if(d)for(let g=0;g=0;o--){const a=e[o];a.hostVars=t+=a.hostVars,a.hostAttrs=Ao(a.hostAttrs,r=Ao(r,a.hostAttrs))}}(o)}function k_(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 Uh(e){return e===ko?{}:e===Kr?[]:e}function Sp(e,t){const r=e.viewQuery;e.viewQuery=r?(o,a)=>{t(o,a),r(o,a)}:t}function $s(e,t){const r=e.contentQueries;e.contentQueries=r?(o,a,d)=>{t(o,a,d),r(o,a,d)}:t}function L_(e,t){const r=e.hostBindings;e.hostBindings=r?(o,a)=>{t(o,a),r(o,a)}:t}function Wi(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 so{}class xi{}function ss(e,t){return new Du(e,null!=t?t:null,[])}class Du extends so{constructor(t,r,o){super(),this._parent=r,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new f_(this);const a=bi(t);this._bootstrapComponents=ca(a.bootstrap),this._r3Injector=Ef(t,r,[{provide:so,useValue:this},{provide:dc,useValue:this.componentFactoryResolver},...o],cr(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 js extends xi{constructor(t){super(),this.moduleType=t}create(t){return new Du(this.moduleType,t,[])}}class Mp extends so{constructor(t){super(),this.componentFactoryResolver=new f_(this),this.instance=null;const r=new Ns([...t.providers,{provide:so,useValue:this},{provide:dc,useValue:this.componentFactoryResolver}],t.parent||ts(),t.debugName,new Set(["environment"]));this.injector=r,t.runEnvironmentInitializers&&r.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}}function Q0(e,t,r=null){return new Mp({providers:e,parent:t,debugName:r,runEnvironmentInitializers:!0}).injector}let Pp=(()=>{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=fr({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();function U_(e){return!!Y0(e)&&(Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e)}function Y0(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function Tu(e,t,r){return e[t]=r}function Po(e,t,r){return!Object.is(e[t],r)&&(e[t]=r,!0)}function xp(e,t,r,o,a,d,g,y){const A=an(),B=Ei(),Y=e+Gr,de=B.firstCreatePass?function pb(e,t,r,o,a,d,g,y,A){const B=t.consts,Y=uc(t,e,4,g||null,Ts(B,y));t_(t,r,Y,Ts(B,A)),$u(t,Y);const de=Y.tView=tp(2,Y,o,a,d,t.directiveRegistry,t.pipeRegistry,null,t.schemas,B,null);return null!==t.queries&&(t.queries.template(t,Y),de.queries=t.queries.embeddedTView(Y)),Y}(Y,B,A,t,r,o,a,d,g):B.data[Y];na(de,!1);const We=uA(B,A,de,e);Uu()&&tm(B,A,We,de),to(We,A);const ft=E0(We,A,We,de);return A[Y]=ft,am(A,ft),function I_(e,t,r){return xh(e,t,r)}(ft,de,A),Ys(de)&&yh(B,A,de),null!=g&&ad(A,de,y),xp}let uA=function cA(e,t,r,o){return Vs(!0),t[Br].createComment("")};function aE(e,t,r,o){const a=an();return Po(a,bs(),t)&&(Ei(),Ol(Fi(),a,e,t,r,o)),aE}function Up(e,t,r,o){return Po(e,bs(),r)?t+Wn(r)+o:ti}function $p(e,t,r,o,a,d){const y=function $h(e,t,r,o){const a=Po(e,t,r);return Po(e,t+1,o)||a}(e,function ia(){return gr.lFrame.bindingIndex}(),r,a);return oa(2),y?t+Wn(r)+o+Wn(a)+d:ti}function K_(e,t){return e<<17|t<<2}function Ad(e){return e>>17&32767}function lE(e){return 2|e}function zh(e){return(131068&e)>>2}function uE(e,t){return-131069&e|t<<2}function cE(e){return 1|e}function $A(e,t,r,o){const a=e[r+1],d=null===t;let g=o?Ad(a):zh(a),y=!1;for(;0!==g&&(!1===y||d);){const B=e[g+1];ew(e[g],t)&&(y=!0,e[g+1]=o?cE(B):lE(B)),g=o?Ad(B):zh(B)}y&&(e[r+1]=o?lE(a):cE(a))}function ew(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&Io(e,t)>=0}function dE(e,t,r){const o=an();return Po(o,bs(),t)&&Us(Ei(),Fi(),o,e,t,o[Br],r,!1),dE}function hE(e,t,r,o,a){const g=a?"class":"style";i_(e,r,t.inputs[g],g,o)}function fE(e,t,r){return Ll(e,t,r,!1),fE}function pE(e,t){return Ll(e,t,null,!0),pE}function Ll(e,t,r,o){const a=an(),d=Ei(),g=oa(2);d.firstUpdatePass&&function qA(e,t,r,o){const a=e.data;if(null===a[r+1]){const d=a[mo()],g=function XA(e,t){return t>=e.expandoStartIndex}(e,r);(function ZA(e,t){return!!(e.flags&(t?8:16))})(d,o)&&null===t&&!g&&(t=!1),t=function uw(e,t,r,o){const a=function ku(e){const t=gr.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=Ym(r=gE(null,e,t,r,o),t.attrs,o),d=null);else{const g=t.directiveStylingLast;if(-1===g||e[g]!==a)if(r=gE(a,e,t,r,o),null===d){let A=function cw(e,t,r){const o=r?t.classBindings:t.styleBindings;if(0!==zh(o))return e[Ad(o)]}(e,t,o);void 0!==A&&Array.isArray(A)&&(A=gE(null,e,t,A[1],o),A=Ym(A,t.attrs,o),function dw(e,t,r,o){e[Ad(r?t.classBindings:t.styleBindings)]=o}(e,t,o,A))}else d=function hw(e,t,r){let o;const a=t.directiveEnd;for(let d=1+t.directiveStylingLast;d0)&&(B=!0)):Y=r,a)if(0!==A){const We=Ad(e[y+1]);e[o+1]=K_(We,y),0!==We&&(e[We+1]=uE(e[We+1],o)),e[y+1]=function Qb(e,t){return 131071&e|t<<17}(e[y+1],o)}else e[o+1]=K_(y,0),0!==y&&(e[y+1]=uE(e[y+1],o)),y=o;else e[o+1]=K_(A,0),0===y?y=o:e[A+1]=uE(e[A+1],o),A=o;B&&(e[o+1]=lE(e[o+1])),$A(e,Y,o,!0),$A(e,Y,o,!1),function Zb(e,t,r,o,a){const d=a?e.residualClasses:e.residualStyles;null!=d&&"string"==typeof t&&Io(d,t)>=0&&(r[o+1]=cE(r[o+1]))}(t,Y,e,o,d),g=K_(y,A),d?t.classBindings=g:t.styleBindings=g}(a,d,t,r,g,o)}}(d,e,g,o),t!==ti&&Po(a,g,t)&&function YA(e,t,r,o,a,d,g,y){if(!(3&t.type))return;const A=e.data,B=A[y+1],Y=function Yb(e){return!(1&~e)}(B)?JA(A,t,r,a,zh(B),g):void 0;X_(Y)||(X_(d)||function qb(e){return!(2&~e)}(B)&&(d=JA(A,null,r,a,y,g)),function EI(e,t,r,o,a){if(t)a?e.addClass(r,o):e.removeClass(r,o);else{let d=-1===o.indexOf("-")?void 0:Yg.DashCase;null==a?e.removeStyle(r,o,d):("string"==typeof a&&a.endsWith("!important")&&(a=a.slice(0,-10),d|=Yg.Important),e.setStyle(r,o,a,d))}}(o,g,Ka(mo(),r),a,d))}(d,d.data[mo()],a,a[Br],e,a[g+1]=function mw(e,t){return null==e||""===e||("string"==typeof t?e+=t:"object"==typeof e&&(e=cr(Rl(e)))),e}(t,r),o,g)}function gE(e,t,r,o,a){let d=null;const g=r.directiveEnd;let y=r.directiveStylingLast;for(-1===y?y=r.directiveStart:y++;y0;){const A=e[a],B=Array.isArray(A),Y=B?A[1]:A,de=null===Y;let We=r[a+1];We===ti&&(We=de?Kr:void 0);let ft=de?Bo(We,o):Y===o?We:void 0;if(B&&!X_(ft)&&(ft=Bo(A,o)),X_(ft)&&(y=ft,g))return y;const Ft=e[a+1];a=g?Ad(Ft):zh(Ft)}if(null!==t){let A=d?t.residualClasses:t.residualStyles;null!=A&&(y=Bo(A,o))}return y}function X_(e){return void 0!==e}class ww{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 g=this.detach(o);this.attach(o,d),this.attach(a,g)}else this.attach(o,d)}move(t,r){this.attach(r,this.detach(t))}}function mE(e,t,r,o,a){return e===r&&Object.is(t,o)?1:Object.is(a(e,t),a(r,o))?-1:0}function vE(e,t,r,o){return!(void 0===t||!t.has(o)||(e.attach(r,t.get(o)),t.delete(o),0))}function eC(e,t,r,o,a){if(vE(e,t,o,r(o,a)))e.updateValue(o,a);else{const d=e.create(o,a);e.attach(o,d)}}function tC(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 nC{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)}}}function rC(e,t,r){Oa("NgControlFlow");const o=an(),a=bs(),d=_E(o,Gr+e);if(Po(o,a,t)){const y=oe(null);try{if(dm(d,0),-1!==t){const A=yE(o[Rn],Gr+t),B=_o(d,A.tView.ssrId);rp(d,np(o,A,r,{dehydratedView:B}),0,Ih(A,B))}}finally{oe(y)}}else{const y=o_(d,0);void 0!==y&&(y[_i]=r)}}class Rw{constructor(t,r,o){this.lContainer=t,this.$implicit=r,this.$index=o}get $count(){return this.lContainer.length-Xi}}function iC(e,t){return t}class Pw{constructor(t,r,o){this.hasEmptyBlock=t,this.trackByFn=r,this.liveCollection=o}}function oC(e,t,r,o,a,d,g,y,A,B,Y,de,We){Oa("NgControlFlow");const ft=void 0!==A,Ft=an(),Zt=y?g.bind(Ft[Gi][_i]):g,bn=new Pw(ft,Zt);Ft[Gr+e]=bn,xp(e+1,t,r,o,a,d),ft&&xp(e+2,A,B,Y,de,We)}class xw extends ww{constructor(t,r,o){super(),this.lContainer=t,this.hostLView=r,this.templateTNode=o,this.needsIndexUpdate=!1}get length(){return this.lContainer.length-Xi}at(t){return this.getLView(t)[_i].$implicit}attach(t,r){const o=r[Qi];this.needsIndexUpdate||(this.needsIndexUpdate=t!==this.length),rp(this.lContainer,r,t,Ih(this.templateTNode,o))}detach(t){return this.needsIndexUpdate||(this.needsIndexUpdate=t!==this.length-1),function Ow(e,t){return qf(e,t)}(this.lContainer,t)}create(t,r){const o=_o(this.lContainer,this.templateTNode.tView.ssrId);return np(this.hostLView,this.templateTNode,new Rw(this.lContainer,r,t),{dehydratedView:o})}destroy(t){Zg(t[Rn],t)}updateValue(t,r){this.getLView(t)[_i].$implicit=r}reset(){this.needsIndexUpdate=!1}updateIndexes(){if(this.needsIndexUpdate)for(let t=0;t{e.destroy(We)})}(g,e,d.trackByFn),g.updateIndexes(),d.hasEmptyBlock){const y=bs(),A=0===g.length;if(Po(o,y,A)){const B=r+2,Y=_E(o,B);if(A){const de=yE(a,B),We=_o(Y,de.tView.ssrId);rp(Y,np(o,de,void 0,{dehydratedView:We}),0,Ih(de,We))}else dm(Y,0)}}}finally{oe(t)}}function _E(e,t){return e[t]}function yE(e,t){return Ql(e,t)}function q_(e,t,r,o){const a=an(),d=Ei(),g=Gr+e,y=a[Br],A=d.firstCreatePass?function kw(e,t,r,o,a,d){const g=t.consts,A=uc(t,e,2,o,Ts(g,a));return t_(t,r,A,Ts(g,d)),null!==A.attrs&&yu(A,A.attrs,!1),null!==A.mergedAttrs&&yu(A,A.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,A),A}(g,d,a,t,r,o):d.data[g],B=aC(d,a,A,y,t,e);a[g]=B;const Y=Ys(A);return na(A,!0),s0(y,B,A),!function Km(e){return!(32&~e.flags)}(A)&&Uu()&&tm(d,a,B,A),0===function Dc(){return gr.lFrame.elementDepthCount}()&&to(B,a),function Tc(){gr.lFrame.elementDepthCount++}(),Y&&(yh(d,a,A),Jv(d,A,a)),null!==o&&ad(a,A),q_}function Q_(){let e=Vi();Ou()?Nu():(e=e.parent,na(e,!1));const t=e;(function _l(e){return gr.skipHydrationRootTNode===e})(t)&&function qa(){gr.skipHydrationRootTNode=null}(),function ea(){gr.lFrame.elementDepthCount--}();const r=Ei();return r.firstCreatePass&&($u(r,e),Wl(e)&&r.queries.elementEnd(e)),null!=t.classesWithoutHost&&function ju(e){return!!(8&e.flags)}(t)&&hE(r,t,an(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function Ld(e){return!!(16&e.flags)}(t)&&hE(r,t,an(),t.stylesWithoutHost,!1),Q_}function EE(e,t,r,o){return q_(e,t,r,o),Q_(),EE}let aC=(e,t,r,o,a,d)=>(Vs(!0),xl(o,a,function Fd(){return gr.lFrame.currentNamespace}()));function Y_(e,t,r){const o=an(),a=Ei(),d=e+Gr,g=a.firstCreatePass?function Vw(e,t,r,o,a){const d=t.consts,g=Ts(d,o),y=uc(t,e,8,"ng-container",g);return null!==g&&yu(y,g,!0),t_(t,r,y,Ts(d,a)),null!==t.queries&&t.queries.elementStart(t,y),y}(d,a,o,t,r):a.data[d];na(g,!0);const y=lC(a,o,g,e);return o[d]=y,Uu()&&tm(a,o,y,g),to(y,o),Ys(g)&&(yh(a,o,g),Jv(a,g,o)),null!=r&&ad(o,g),Y_}function J_(){let e=Vi();const t=Ei();return Ou()?Nu():(e=e.parent,na(e,!1)),t.firstCreatePass&&($u(t,e),Wl(e)&&t.queries.elementEnd(e)),J_}function IE(e,t,r){return Y_(e,t,r),J_(),IE}let lC=(e,t,r,o)=>(Vs(!0),rd(t[Br],""));function uC(){return an()}const Hh=void 0;var jw=["en",[["a","p"],["AM","PM"],Hh],[["AM","PM"],Hh,Hh],[["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"]],Hh,[["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"]],Hh,[["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}",Hh,"{1} 'at' {0}",Hh],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function $w(e){const r=Math.floor(Math.abs(e)),o=e.toString().replace(/^[^.]*\.?/,"").length;return 1===r&&0===o?1:5}];let qp={};function AE(e){const t=function zw(e){return e.toLowerCase().replace(/_/g,"-")}(e);let r=fC(t);if(r)return r;const o=t.split("-")[0];if(r=fC(o),r)return r;if("en"===o)return jw;throw new nt(701,!1)}function hC(e){return AE(e)[Qp.PluralCase]}function fC(e){return e in qp||(qp[e]=Jn.ng&&Jn.ng.common&&Jn.ng.common.locales&&Jn.ng.common.locales[e]),qp[e]}var Qp=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}(Qp||{});const Yp="en-US";let pC=Yp;function TE(e,t,r,o){const a=an(),d=Ei(),g=Vi();return bE(d,a,a[Br],g,e,t,o),TE}function bE(e,t,r,o,a,d,g){const y=Ys(o),B=e.firstCreatePass&&C0(e),Y=t[_i],de=A0(t);let We=!0;if(3&o.type||g){const Zt=is(o,t),bn=g?g(Zt):Zt,Pn=de.length,un=g?si=>g(Pi(si[o.index])):o.index;let Wr=null;if(!g&&y&&(Wr=function BS(e,t,r,o){const a=e.cleanup;if(null!=a)for(let d=0;dA?y[A]:null}"string"==typeof g&&(d+=2)}return null}(e,t,a,o.index)),null!==Wr)(Wr.__ngLastListenerFn__||Wr).__ngNextListenerFn__=d,Wr.__ngLastListenerFn__=d,We=!1;else{d=jC(o,t,Y,d,!1);const si=r.listen(bn,a,d);de.push(d,si),B&&B.push(a,un,Pn,Pn+1)}}else d=jC(o,t,Y,d,!1);const ft=o.outputs;let Ft;if(We&&null!==ft&&(Ft=ft[a])){const Zt=Ft.length;if(Zt)for(let bn=0;bn-1?Ro(e.index,t):t);let A=$C(t,r,o,g),B=d.__ngNextListenerFn__;for(;B;)A=$C(t,r,B,g)&&A,B=B.__ngNextListenerFn__;return a&&!1===A&&g.preventDefault(),A}}function zC(e=1){return function Vu(e){return(gr.lFrame.contextLView=function rg(e,t){for(;e>0;)t=t[fl],e--;return t}(e,gr.lFrame.contextLView))[_i]}(e)}function US(e,t){let r=null;const o=function yn(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(Vs(!0),function Pl(e,t){return e.createText(t)}(t[Br],o));function SE(e){return iy("",e,""),SE}function iy(e,t,r){const o=an(),a=Up(o,e,t,r);return a!==ti&&gu(o,mo(),a),iy}function RE(e,t,r,o,a){const d=an(),g=$p(d,e,t,r,o,a);return g!==ti&&gu(d,mo(),g),RE}function ME(e,t,r){Vm(t)&&(t=t());const o=an();return Po(o,bs(),t)&&Us(Ei(),Fi(),o,e,t,o[Br],r,!1),ME}function AD(e,t){const r=Vm(e);return r&&e.set(t),r}function PE(e,t){const r=an(),o=Ei(),a=Vi();return bE(o,r,r[Br],a,e,t),PE}function xE(e,t,r,o,a){if(e=pe(e),Array.isArray(e))for(let d=0;d>20;if(Zo(e)||!e.multi){const ft=new Al(B,a,sd),Ft=NE(A,t,a?Y:Y+We,de);-1===Ft?(Tl(Hu(y,g),d,A),OE(d,e,t.length),t.push(A),y.directiveStart++,y.directiveEnd++,a&&(y.providerIndexes+=1048576),r.push(ft),g.push(ft)):(r[Ft]=ft,g[Ft]=ft)}else{const ft=NE(A,t,Y+We,de),Ft=NE(A,t,Y,Y+We),bn=Ft>=0&&r[Ft];if(a&&!bn||!a&&!(ft>=0&&r[ft])){Tl(Hu(y,g),d,A);const Pn=function sR(e,t,r,o,a){const d=new Al(e,r,sd);return d.multi=[],d.index=t,d.componentProviders=0,CD(d,a,o&&!r),d}(a?oR:iR,r.length,a,o,B);!a&&bn&&(r[Ft].providerFactory=Pn),OE(d,e,t.length,0),t.push(A),y.directiveStart++,y.directiveEnd++,a&&(y.providerIndexes+=1048576),r.push(Pn),g.push(Pn)}else OE(d,e,ft>-1?ft:Ft,CD(r[a?Ft:ft],B,!a&&o));!a&&o&&bn&&r[Ft].componentProviders++}}}function OE(e,t,r,o){const a=Zo(t),d=function As(e){return!!e.useClass}(t);if(a||d){const A=(d?pe(t.useClass):t).prototype.ngOnDestroy;if(A){const B=e.destroyHooks||(e.destroyHooks=[]);if(!a&&t.multi){const Y=B.indexOf(r);-1===Y?B.push(r,[o,A]):B[Y+1].push(o,A)}else B.push(r,A)}}}function CD(e,t,r){return r&&e.componentProviders++,e.multi.push(t)-1}function NE(e,t,r,o){for(let a=r;a{r.providersResolver=(o,a)=>function rR(e,t,r){const o=Ei();if(o.firstCreatePass){const a=ds(e);xE(r,o.data,o.blueprint,a,!0),xE(t,o.data,o.blueprint,a,!1)}}(o,a?a(e):e,t)}}let aR=(()=>{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=Va(0,o.type),d=a.length>0?Q0([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=fr({token:e,providedIn:"environment",factory:()=>new e(z(Lo))}),t})();function TD(e){Oa("NgStandalone"),e.getStandaloneInjector=t=>t.get(aR).getOrCreateStandaloneInjector(e)}function wD(e,t,r){const o=go()+e,a=an();return a[o]===ti?Tu(a,o,r?t.call(r):t()):function Wm(e,t){return e[t]}(a,o)}function SD(e,t,r,o,a,d){const g=t+r;return Po(e,g,a)?Tu(e,g+1,d?o.call(d,a):o(a)):function iv(e,t){const r=e[t];return r===ti?void 0:r}(e,g+1)}function OD(e,t){const r=Ei();let o;const a=e+Gr;var d;r.firstCreatePass?(o=function yR(e,t){if(t)for(let r=t.length-1;r>=0;r--){const o=t[r];if(e===o.name)return o}}(t,r.pipeRegistry),r.data[a]=o,o.onDestroy&&(null!==(d=r.destroyHooks)&&void 0!==d?d:r.destroyHooks=[]).push(a,o.onDestroy)):o=r.data[a];const g=o.factory||(o.factory=qr(o.type)),A=W(sd);try{const B=eu(!1),Y=g();return eu(B),function HS(e,t,r,o){r>=e.data.length&&(e.data[r]=null,e.blueprint[r]=null),t[r]=o}(r,an(),a,Y),Y}finally{W(A)}}function ND(e,t,r){const o=e+Gr,a=an(),d=function fs(e,t){return e[t]}(a,o);return function ov(e,t){return e[Rn].data[t].pure}(a,o)?SD(a,go(),t,d.transform,r,d):d.transform(r)}class QD{constructor(t){this.full=t;const r=t.split(".");this.major=r[0],this.minor=r[1],this.patch=r.slice(2).join(".")}}const WR=new QD("17.3.10");let YD=(()=>{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=fr({token:e,factory:e.\u0275fac,providedIn:"platform"}),t})();const tT=new Ge(""),nT=new Ge("");let jE,_1=(()=>{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,jE||(function y1(e){jE=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:()=>{bo.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 g=-1;a&&a>0&&(g=setTimeout(()=>{this._callbacks=this._callbacks.filter(y=>y.timeoutId!==g),o()},a)),this._callbacks.push({doneCb:o,timeoutId:g,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)(z(bo),z(rT),z(nT))},e.\u0275prov=fr({token:e,factory:e.\u0275fac}),t})(),rT=(()=>{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,g;return null!==(d=null===(g=jE)||void 0===g?void 0:g.findTestabilityInTree(this,o,a))&&void 0!==d?d:null}}return(e=t).\u0275fac=function(o){return new(o||e)},e.\u0275prov=fr({token:e,factory:e.\u0275fac,providedIn:"platform"}),t})();function zE(e){return!!e&&"function"==typeof e.then}function iT(e){return!!e&&"function"==typeof e.subscribe}const oT=new Ge("");let HE=(()=>{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=Ne(oT,{optional:!0}))&&void 0!==o?o:[]}runInitializers(){if(this.initialized)return;const o=[];for(const d of this.appInits){const g=d();if(zE(g))o.push(g);else if(iT(g)){const y=new Promise((A,B)=>{g.subscribe({complete:A,error:B})});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=fr({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();const GE=new Ge("");function lT(e,t){return Array.isArray(t)?t.reduce(lT,e):{...e,...t}}let Cd=(()=>{var e;class t{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=Ne(Gd),this.afterRenderEffectManager=Ne(ud),this.externalTestViews=new Set,this.beforeRender=new Zn.B,this.afterTick=new Zn.B,this.componentTypes=[],this.components=[],this.isStable=Ne(Pp).hasPendingTasks.pipe((0,yr.T)(o=>!o)),this._injector=Ne(Lo)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(o,a){const d=o instanceof l_;if(!this._injector.get(HE).done)throw!d&&po(o),new nt(405,!1);let y;y=d?o:this._injector.get(dc).resolveComponentFactory(o),this.componentTypes.push(y.componentType);const A=function E1(e){return e.isBoundToModule}(y)?void 0:this._injector.get(so),Y=y.create(ps.NULL,[],a||y.selector,A),de=Y.location.nativeElement,We=Y.injector.get(tT,null);return null==We||We.registerApplication(de),Y.onDestroy(()=>{this.detachView(Y.hostView),ly(this.components,Y),null==We||We.unregisterApplication(de)}),this._loadComponent(Y),Y}tick(){this._tick(!0)}_tick(o){if(this._runningTick)throw new nt(101,!1);const a=oe(null);try{this._runningTick=!0,this.detectChangesInAttachedViews(o)}catch(d){this.internalErrorHandler(d)}finally{this.afterTick.next(),this._runningTick=!1,oe(a)}}detectChangesInAttachedViews(o){let a=0;const d=this.afterRenderEffectManager;for(;;){if(a===w0)throw new nt(103,!1);if(o){const g=0===a;this.beforeRender.next(g);for(let{_lView:y,notifyErrorHandler:A}of this._views)A1(y,g,A)}if(a++,d.executeInternalCallbacks(),![...this.externalTestViews.keys(),...this._views].some(({_lView:g})=>WE(g))&&(d.execute(),![...this.externalTestViews.keys(),...this._views].some(({_lView:g})=>WE(g))))break}}attachView(o){const a=o;this._views.push(a),a.attachToAppRef(this)}detachView(o){const a=o;ly(this._views,a),a.detachFromAppRef()}_loadComponent(o){this.attachView(o.hostView),this.tick(),this.components.push(o);const a=this._injector.get(GE,[]);[...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),()=>ly(this._destroyListeners,o)}destroy(){if(this._destroyed)throw new nt(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=fr({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();function ly(e,t){const r=e.indexOf(t);r>-1&&e.splice(r,1)}function A1(e,t,r){!t&&!WE(e)||function C1(e,t,r){let o;r?(o=0,e[Kn]|=1024):o=64&e[Kn]?0:1,hm(e,t,o)}(e,r,t)}function WE(e){return Yl(e)}class D1{constructor(t,r){this.ngModuleFactory=t,this.componentFactories=r}}let T1=(()=>{var e;class t{compileModuleSync(o){return new js(o)}compileModuleAsync(o){return Promise.resolve(this.compileModuleSync(o))}compileModuleAndAllComponentsSync(o){const a=this.compileModuleSync(o),g=ca(bi(o).declarations).reduce((y,A)=>{const B=Rr(A);return B&&y.push(new Rh(B)),y},[]);return new D1(a,g)}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=fr({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),S1=(()=>{var e;class t{constructor(){this.zone=Ne(bo),this.applicationRef=Ne(Cd)}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=fr({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();function R1(){const e=Ne(bo),t=Ne(Za);return r=>e.runOutsideAngular(()=>t.handleError(r))}let P1=(()=>{var e;class t{constructor(){this.subscription=new nr.yU,this.initialized=!1,this.zone=Ne(bo),this.pendingTasks=Ne(Pp)}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(()=>{bo.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;bo.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=fr({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();const uy=new Ge("",{providedIn:"root",factory:()=>Ne(uy,bt.Optional|bt.SkipSelf)||function x1(){return typeof $localize<"u"&&$localize.locale||Yp}()}),O1=new Ge("",{providedIn:"root",factory:()=>"USD"}),KE=new Ge("");let hT=(()=>{var e;class t{constructor(o){this._injector=o,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(o,a){const d=function wh(e="zone.js",t){return"noop"===e?new Tm:"zone.js"===e?new bo(t):e}(null==a?void 0:a.ngZone,function dT(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 g=function Rp(e,t,r){return new Du(e,t,r)}(o.moduleType,this.injector,function cT(e){return[{provide:bo,useFactory:e},{provide:fo,multi:!0,useFactory:()=>{const t=Ne(S1,{optional:!0});return()=>t.initialize()}},{provide:fo,multi:!0,useFactory:()=>{const t=Ne(P1);return()=>{t.initialize()}}},{provide:Gd,useFactory:R1}]}(()=>d)),y=g.injector.get(Za,null);return d.runOutsideAngular(()=>{const A=d.onError.subscribe({next:B=>{y.handleError(B)}});g.onDestroy(()=>{ly(this._modules,g),A.unsubscribe()})}),function aT(e,t,r){try{const o=r();return zE(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=g.injector.get(HE);return A.runInitializers(),A.donePromise.then(()=>(function gC(e){"string"==typeof e&&(pC=e.toLowerCase().replace(/_/g,"-"))}(g.injector.get(uy,Yp)||Yp),this._moduleDoBootstrap(g),g))})})}bootstrapModule(o,a=[]){const d=lT({},a);return function w1(e,t,r){const o=new js(r);return Promise.resolve(o)}(0,0,o).then(g=>this.bootstrapModuleFactory(g,d))}_moduleDoBootstrap(o){const a=o.injector.get(Cd);if(o._bootstrapComponents.length>0)o._bootstrapComponents.forEach(d=>a.bootstrap(d));else{if(!o.instance.ngDoBootstrap)throw new nt(-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 nt(404,!1);this._modules.slice().forEach(a=>a.destroy()),this._destroyListeners.forEach(a=>a());const o=this._injector.get(KE,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)(z(ps))},e.\u0275prov=fr({token:e,factory:e.\u0275fac,providedIn:"platform"}),t})(),Dd=null;const fT=new Ge("");function pT(e,t,r=[]){const o=`Platform: ${t}`,a=new Ge(o);return(d=[])=>{let g=XE();if(!g||g.injector.get(fT,!1)){const y=[...r,...d,{provide:a,useValue:!0}];e?e(y):function k1(e){if(Dd&&!Dd.get(fT,!1))throw new nt(400,!1);(function sT(){!function we(e){on=e}(()=>{throw new nt(600,!1)})})(),Dd=e;const t=e.get(hT);(function mT(e){const t=e.get(Ev,null);null==t||t.forEach(r=>r())})(e)}(function gT(e=[],t){return ps.create({name:t,providers:[{provide:zl,useValue:"platform"},{provide:KE,useValue:new Set([()=>Dd=null])},...e]})}(y,o))}return function F1(e){const t=XE();if(!t)throw new nt(401,!1);return t}()}}function XE(){var e,t;return null!==(e=null===(t=Dd)||void 0===t?void 0:t.get(hT))&&void 0!==e?e:null}function V1(){}let _T=(()=>{class t{}return t.__NG_ELEMENT_ID__=B1,t})();function B1(e){return function U1(e,t,r){if(rs(e)&&!r){const o=Ro(e.index,t);return new sp(o,o)}return 47&e.type?new sp(t[Gi],t):null}(Vi(),an(),!(16&~e))}class AT{constructor(){}supports(t){return U_(t)}create(t){return new G1(t)}}const H1=(e,t)=>t;class G1{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||H1}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 g=!o||r&&r.currentIndex{g=this._trackByFn(a,y),null!==r&&Object.is(r.trackById,g)?(o&&(r=this._verifyReinsertion(r,y,g,a)),Object.is(r.item,y)||this._addIdentityChange(r,y)):(r=this._mismatch(r,y,g,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 W1(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 CT),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 CT),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 W1{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 K1{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 CT{constructor(){this.map=new Map}put(t){const r=t.trackById;let o=this.map.get(r);o||(o=new K1,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 DT(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,g=a._next;return d&&(d._next=g),g&&(g._prev=d),a._next=null,a._prev=null,a}const o=new q1(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 q1{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 bT(){return new ZE([new AT])}let ZE=(()=>{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||bT()),deps:[[t,new lr,new Nn]]}}find(o){const a=this.factories.find(d=>d.supports(o));if(null!=a)return a;throw new nt(901,!1)}}return(e=t).\u0275prov=fr({token:e,providedIn:"root",factory:bT}),t})();function wT(){return new eI([new TT])}let eI=(()=>{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||wT()),deps:[[t,new lr,new Nn]]}}find(o){const a=this.factories.find(d=>d.supports(o));if(a)return a;throw new nt(901,!1)}}return(e=t).\u0275prov=fr({token:e,providedIn:"root",factory:wT}),t})();const J1=pT(null,"core",[]);let Z1=(()=>{var e;class t{constructor(o){}}return(e=t).\u0275fac=function(o){return new(o||e)(z(Cd))},e.\u0275mod=ul({type:e}),e.\u0275inj=gi({}),t})();function SM(e){return"boolean"==typeof e?e:null!=e&&"false"!==e}function RM(e,t=NaN){return isNaN(parseFloat(e))||isNaN(Number(e))?t:Number(e)}function PM(e){const t=oe(null);try{return e()}finally{oe(t)}}const xM=new Ge("",{providedIn:"root",factory:()=>Ne(OM)});let OM=(()=>{var e;class t{}return(e=t).\u0275prov=fr({token:e,providedIn:"root",factory:()=>new NM}),t})();class NM{constructor(){this.queuedEffectCount=0,this.queues=new Map,this.pendingTasks=Ne(Pp),this.taskId=null}scheduleEffect(t){if(this.enqueue(t),null===this.taskId){const r=this.taskId=this.pendingTasks.add();queueMicrotask(()=>{this.flush(),this.pendingTasks.remove(r),this.taskId=null})}}enqueue(t){const r=t.creationZone;this.queues.has(r)||this.queues.set(r,new Set);const o=this.queues.get(r);o.has(t)||(this.queuedEffectCount++,o.add(t))}flush(){for(;this.queuedEffectCount>0;)for(const[t,r]of this.queues)null===t?this.flushQueue(r):t.run(()=>this.flushQueue(r))}flushQueue(t){for(const r of t)t.delete(r),this.queuedEffectCount--,r.run()}}class kM{constructor(t,r,o,a,d,g){this.scheduler=t,this.effectFn=r,this.creationZone=o,this.injector=d,this.watcher=function dn(e,t,r){const o=Object.create(rn);r&&(o.consumerAllowSignalWrites=!0),o.fn=e,o.schedule=t;const a=A=>{o.cleanupFn=A};return o.ref={notify:()=>St(o),run:()=>{if(null===o.fn)return;if(function Je(){return Oe}())throw new Error("Schedulers cannot synchronously execute watches while scheduling.");if(o.dirty=!1,o.hasRun&&!yt(o))return;o.hasRun=!0;const A=_t(o);try{o.cleanupFn(),o.cleanupFn=Kt,o.fn(a)}finally{Tt(o,A)}},cleanup:()=>o.cleanupFn(),destroy:()=>function g(A){(function d(A){return null===A.fn&&null===A.schedule})(A)||(mt(A),A.cleanupFn(),A.fn=null,A.schedule=null,A.cleanupFn=Kt)}(o),[ue]:o},o.ref}(y=>this.runEffect(y),()=>this.schedule(),g),this.unregisterOnDestroy=null==a?void 0:a.onDestroy(()=>this.destroy())}runEffect(t){try{this.effectFn(t)}catch(r){const o=this.injector.get(Za,null,{optional:!0});null==o||o.handleError(r)}}run(){this.watcher.run()}schedule(){this.scheduler.scheduleEffect(this)}destroy(){var t;this.watcher.destroy(),null===(t=this.unregisterOnDestroy)||void 0===t||t.call(this)}}function qT(e,t){var r,o;Oa("NgSignals"),(null==t||!t.injector)&&ya();const a=null!==(r=null==t?void 0:t.injector)&&void 0!==r?r:Ne(ps),d=!0!==(null==t?void 0:t.manualCleanup)?a.get(Xu):null,g=new kM(a.get(xM),e,typeof Zone>"u"?null:Zone.current,d,a,null!==(o=null==t?void 0:t.allowSignalWrites)&&void 0!==o&&o),y=a.get(_T,null,{optional:!0});var A,B;return y&&8&y._lView[Kn]?(null!==(B=(A=y._lView)[Qs])&&void 0!==B?B:A[Qs]=[]).push(g.watcher.notify):g.watcher.notify(),g}function FM(e,t){const r=Rr(e),o=t.elementInjector||ts();return new Rh(r).create(o,t.projectableNodes,t.hostElement,t.environmentInjector)}function LM(e){const t=Rr(e);if(!t)return null;const r=new Rh(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,gt,S)=>{"use strict";S.d(gt,{MW:()=>Ze,Wp:()=>St,XU:()=>Oe,gL:()=>U});var h=S(2214),c=S(4438),Z=S(5407);class Oe{constructor(Ye){return Ye}}class U{constructor(){return(0,h.Dk)()}}const Xe=new c.nKC("angularfire2._apps"),Je={provide:Oe,useFactory:function oe(Me){return Me&&1===Me.length?Me[0]:new Oe((0,h.Sx)())},deps:[[new c.Xx1,Xe]]},Se={provide:U,deps:[[new c.Xx1,Xe]]};function Ce(Me){return(Ye,ge)=>{const Ue=ge.get(c.Agw);(0,h.KO)("angularfire",Z.xv.full,"core"),(0,h.KO)("angularfire",Z.xv.full,"app"),(0,h.KO)("angular",c.xvI.full,Ue.toString());const Fe=Ye.runOutsideAngular(()=>Me(ge));return new Oe(Fe)}}function Ze(Me,...Ye){return(0,c.EmA)([Je,Se,{provide:Xe,useFactory:Ce(Me),multi:!0,deps:[c.SKi,c.zZn,Z.u0,...Ye]}])}const St=(0,Z.S3)(h.Wp,!0)},8737:(Tn,gt,S)=>{"use strict";S.d(gt,{Nj:()=>Qa,DF:()=>Tl,eJ:()=>Gu,xI:()=>ug,_q:()=>bl,x9:()=>qu,kQ:()=>Uc});var h=S(5407),c=S(4438),Z=S(7440),Oe=S(2214),U=S(467),ue=S(7852),oe=S(1076),Xe=S(8041),Je=S(1635),Se=S(1362);const Tt=function St(){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 oe.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 Xe.Vy("@firebase/auth");function ge(I,...f){Me.logLevel<=Xe.$b.ERROR&&Me.error(`Auth (${ue.MF}): ${I}`,...f)}function Ue(I,...f){throw vn(I,...f)}function Fe(I,...f){return vn(I,...f)}function xe(I,f,v){const w=Object.assign(Object.assign({},Tt()),{[f]:v});return new oe.FA("auth","Firebase",w).create(f,{appName:I.name})}function at(I){return xe(I,"operation-not-supported-in-this-environment","Operations that alter the current user are not supported in conjunction with FirebaseServerApp")}function vn(I,...f){if("string"!=typeof I){const v=f[0],w=[...f.slice(1)];return w[0]&&(w[0].appName=I.name),I._errorFactory.create(v,...w)}return yt.create(I,...f)}function Nt(I,f,...v){if(!I)throw vn(f,...v)}function tt(I){const f="INTERNAL ASSERTION FAILED: "+I;throw ge(f),new Error(f)}function on(I,f){I||tt(f)}function dt(){var I;return typeof self<"u"&&(null===(I=self.location)||void 0===I?void 0:I.href)||""}function H(){var I;return typeof self<"u"&&(null===(I=self.location)||void 0===I?void 0:I.protocol)||null}class se{constructor(f,v){this.shortDelay=f,this.longDelay=v,on(v>f,"Short delay should be less than long delay!"),this.isMobile=(0,oe.jZ)()||(0,oe.lV)()}get(){return function X(){return!(typeof navigator<"u"&&navigator&&"onLine"in navigator&&"boolean"==typeof navigator.onLine&&(function we(){return"http:"===H()||"https:"===H()}()||(0,oe.sr)()||"connection"in navigator))||navigator.onLine}()?this.isMobile?this.longDelay:this.shortDelay:Math.min(5e3,this.shortDelay)}}function ve(I,f){on(I.emulator,"Emulator should always be set here");const{url:v}=I.emulator;return f?`${v}${f.startsWith("/")?f.slice(1):f}`:v}class Le{static initialize(f,v,w){this.fetchImpl=f,v&&(this.headersImpl=v),w&&(this.responseImpl=w)}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 tt("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 tt("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 tt("Could not find Response implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}}const De={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"},Wt=new se(3e4,6e4);function dn(I,f){return I.tenantId&&!f.tenantId?Object.assign(Object.assign({},f),{tenantId:I.tenantId}):f}function Kt(I,f,v,w){return rn.apply(this,arguments)}function rn(){return(rn=(0,U.A)(function*(I,f,v,w,J={}){return Ln(I,J,(0,U.A)(function*(){let be={},Ct={};w&&("GET"===f?Ct=w:be={body:JSON.stringify(w)});const Xt=(0,oe.Am)(Object.assign({key:I.config.apiKey},Ct)).slice(1),Dn=yield I._getAdditionalHeaders();return Dn["Content-Type"]="application/json",I.languageCode&&(Dn["X-Firebase-Locale"]=I.languageCode),Le.fetch()(yr(I,I.config.apiHost,v,Xt),Object.assign({method:f,headers:Dn,referrerPolicy:"no-referrer"},be))}))})).apply(this,arguments)}function Ln(I,f,v){return Zn.apply(this,arguments)}function Zn(){return(Zn=(0,U.A)(function*(I,f,v){I._canInitEmulator=!1;const w=Object.assign(Object.assign({},De),f);try{const J=new ir(I),be=yield Promise.race([v(),J.promise]);J.clearNetworkTimeout();const Ct=yield be.json();if("needConfirmation"in Ct)throw nt(I,"account-exists-with-different-credential",Ct);if(be.ok&&!("errorMessage"in Ct))return Ct;{const Xt=be.ok?Ct.errorMessage:Ct.error.message,[Dn,$n]=Xt.split(" : ");if("FEDERATED_USER_ID_ALREADY_LINKED"===Dn)throw nt(I,"credential-already-in-use",Ct);if("EMAIL_EXISTS"===Dn)throw nt(I,"email-already-in-use",Ct);if("USER_DISABLED"===Dn)throw nt(I,"user-disabled",Ct);const vr=w[Dn]||Dn.toLowerCase().replace(/[_\s]+/g,"-");if($n)throw xe(I,vr,$n);Ue(I,vr)}}catch(J){if(J instanceof oe.g)throw J;Ue(I,"network-request-failed",{message:String(J)})}})).apply(this,arguments)}function nr(I,f,v,w){return er.apply(this,arguments)}function er(){return(er=(0,U.A)(function*(I,f,v,w,J={}){const be=yield Kt(I,f,v,w,J);return"mfaPendingCredential"in be&&Ue(I,"multi-factor-auth-required",{_serverResponse:be}),be})).apply(this,arguments)}function yr(I,f,v,w){const J=`${f}${v}?${w}`;return I.config.emulator?ve(I.config,J):`${I.config.apiScheme}://${J}`}function rr(I){switch(I){case"ENFORCE":return"ENFORCE";case"AUDIT":return"AUDIT";case"OFF":return"OFF";default:return"ENFORCEMENT_STATE_UNSPECIFIED"}}class ir{constructor(f){this.auth=f,this.timer=null,this.promise=new Promise((v,w)=>{this.timer=setTimeout(()=>w(Fe(this.auth,"network-request-failed")),Wt.get())})}clearNetworkTimeout(){clearTimeout(this.timer)}}function nt(I,f,v){const w={appName:I.name};v.email&&(w.email=v.email),v.phoneNumber&&(w.phoneNumber=v.phoneNumber);const J=Fe(I,f,w);return J.customData._tokenResponse=v,J}function zt(I){return void 0!==I&&void 0!==I.enterprise}class pn{constructor(f){if(this.siteKey="",this.recaptchaEnforcementState=[],void 0===f.recaptchaKey)throw new Error("recaptchaKey undefined");this.siteKey=f.recaptchaKey.split("/")[3],this.recaptchaEnforcementState=f.recaptchaEnforcementState}getProviderEnforcementState(f){if(!this.recaptchaEnforcementState||0===this.recaptchaEnforcementState.length)return null;for(const v of this.recaptchaEnforcementState)if(v.provider&&v.provider===f)return rr(v.enforcementState);return null}isProviderEnabled(f){return"ENFORCE"===this.getProviderEnforcementState(f)||"AUDIT"===this.getProviderEnforcementState(f)}}function Mn(I,f){return xn.apply(this,arguments)}function xn(){return(xn=(0,U.A)(function*(I,f){return Kt(I,"GET","/v2/recaptchaConfig",dn(I,f))})).apply(this,arguments)}function en(){return(en=(0,U.A)(function*(I,f){return Kt(I,"POST","/v1/accounts:delete",f)})).apply(this,arguments)}function Nr(I,f){return Qn.apply(this,arguments)}function Qn(){return(Qn=(0,U.A)(function*(I,f){return Kt(I,"POST","/v1/accounts:lookup",f)})).apply(this,arguments)}function Dr(I){if(I)try{const f=new Date(Number(I));if(!isNaN(f.getTime()))return f.toUTCString()}catch{}}function mr(){return(mr=(0,U.A)(function*(I,f=!1){const v=(0,oe.Ku)(I),w=yield v.getIdToken(f),J=Pr(w);Nt(J&&J.exp&&J.auth_time&&J.iat,v.auth,"internal-error");const be="object"==typeof J.firebase?J.firebase:void 0,Ct=null==be?void 0:be.sign_in_provider;return{claims:J,token:w,authTime:Dr(ur(J.auth_time)),issuedAtTime:Dr(ur(J.iat)),expirationTime:Dr(ur(J.exp)),signInProvider:Ct||null,signInSecondFactor:(null==be?void 0:be.sign_in_second_factor)||null}})).apply(this,arguments)}function ur(I){return 1e3*Number(I)}function Pr(I){const[f,v,w]=I.split(".");if(void 0===f||void 0===v||void 0===w)return ge("JWT malformed, contained fewer than 3 sections"),null;try{const J=(0,oe.u)(v);return J?JSON.parse(J):(ge("Failed to decode base64 JWT payload"),null)}catch(J){return ge("Caught error parsing JWT payload as JSON",null==J?void 0:J.toString()),null}}function cr(I){const f=Pr(I);return Nt(f,"internal-error"),Nt(typeof f.exp<"u","internal-error"),Nt(typeof f.iat<"u","internal-error"),Number(f.exp)-Number(f.iat)}function kr(I,f){return ii.apply(this,arguments)}function ii(){return(ii=(0,U.A)(function*(I,f,v=!1){if(v)return f;try{return yield f}catch(w){throw w instanceof oe.g&&function Ai({code:I}){return"auth/user-disabled"===I||"auth/user-token-expired"===I}(w)&&I.auth.currentUser===I&&(yield I.auth.signOut()),w}})).apply(this,arguments)}class Qr{constructor(f){this.user=f,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(f){var v;if(f){const w=this.errorBackoff;return this.errorBackoff=Math.min(2*this.errorBackoff,96e4),w}{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(f=!1){var v=this;if(!this.isRunning)return;const w=this.getInterval(f);this.timerId=setTimeout((0,U.A)(function*(){yield v.iteration()}),w)}iteration(){var f=this;return(0,U.A)(function*(){try{yield f.user.getIdToken(!0)}catch(v){return void("auth/network-request-failed"===(null==v?void 0:v.code)&&f.schedule(!0))}f.schedule()})()}}class pe{constructor(f,v){this.createdAt=f,this.lastLoginAt=v,this._initializeTime()}_initializeTime(){this.lastSignInTime=Dr(this.lastLoginAt),this.creationTime=Dr(this.createdAt)}_copy(f){this.createdAt=f.createdAt,this.lastLoginAt=f.lastLoginAt,this._initializeTime()}toJSON(){return{createdAt:this.createdAt,lastLoginAt:this.lastLoginAt}}}function rt(I){return Mt.apply(this,arguments)}function Mt(){return(Mt=(0,U.A)(function*(I){var f;const v=I.auth,w=yield I.getIdToken(),J=yield kr(I,Nr(v,{idToken:w}));Nt(null==J?void 0:J.users.length,v,"internal-error");const be=J.users[0];I._notifyReloadListener(be);const Ct=null!==(f=be.providerUserInfo)&&void 0!==f&&f.length?He(be.providerUserInfo):[],Xt=function ye(I,f){return[...I.filter(w=>!f.some(J=>J.providerId===w.providerId)),...f]}(I.providerData,Ct),vr=!!I.isAnonymous&&!(I.email&&be.passwordHash||null!=Xt&&Xt.length),hi={uid:be.localId,displayName:be.displayName||null,photoURL:be.photoUrl||null,email:be.email||null,emailVerified:be.emailVerified||!1,phoneNumber:be.phoneNumber||null,tenantId:be.tenantId||null,providerData:Xt,metadata:new pe(be.createdAt,be.lastLoginAt),isAnonymous:vr};Object.assign(I,hi)})).apply(this,arguments)}function ce(){return(ce=(0,U.A)(function*(I){const f=(0,oe.Ku)(I);yield rt(f),yield f.auth._persistUserIfCurrent(f),f.auth._notifyListenersIfCurrent(f)})).apply(this,arguments)}function He(I){return I.map(f=>{var{providerId:v}=f,w=(0,Je.Tt)(f,["providerId"]);return{providerId:v,uid:w.rawId||"",displayName:w.displayName||null,email:w.email||null,phoneNumber:w.phoneNumber||null,photoURL:w.photoUrl||null}})}function ie(){return(ie=(0,U.A)(function*(I,f){const v=yield Ln(I,{},(0,U.A)(function*(){const w=(0,oe.Am)({grant_type:"refresh_token",refresh_token:f}).slice(1),{tokenApiHost:J,apiKey:be}=I.config,Ct=yr(I,J,"/v1/token",`key=${be}`),Xt=yield I._getAdditionalHeaders();return Xt["Content-Type"]="application/x-www-form-urlencoded",Le.fetch()(Ct,{method:"POST",headers:Xt,body:w})}));return{accessToken:v.access_token,expiresIn:v.expires_in,refreshToken:v.refresh_token}})).apply(this,arguments)}function lt(){return(lt=(0,U.A)(function*(I,f){return Kt(I,"POST","/v2/accounts:revokeToken",dn(I,f))})).apply(this,arguments)}class Gt{constructor(){this.refreshToken=null,this.accessToken=null,this.expirationTime=null}get isExpired(){return!this.expirationTime||Date.now()>this.expirationTime-3e4}updateFromServerResponse(f){Nt(f.idToken,"internal-error"),Nt(typeof f.idToken<"u","internal-error"),Nt(typeof f.refreshToken<"u","internal-error");const v="expiresIn"in f&&typeof f.expiresIn<"u"?Number(f.expiresIn):cr(f.idToken);this.updateTokensAndExpiration(f.idToken,f.refreshToken,v)}updateFromIdToken(f){Nt(0!==f.length,"internal-error");const v=cr(f);this.updateTokensAndExpiration(f,null,v)}getToken(f,v=!1){var w=this;return(0,U.A)(function*(){return v||!w.accessToken||w.isExpired?(Nt(w.refreshToken,f,"user-token-expired"),w.refreshToken?(yield w.refresh(f,w.refreshToken),w.accessToken):null):w.accessToken})()}clearRefreshToken(){this.refreshToken=null}refresh(f,v){var w=this;return(0,U.A)(function*(){const{accessToken:J,refreshToken:be,expiresIn:Ct}=yield function Lt(I,f){return ie.apply(this,arguments)}(f,v);w.updateTokensAndExpiration(J,be,Number(Ct))})()}updateTokensAndExpiration(f,v,w){this.refreshToken=v||null,this.accessToken=f||null,this.expirationTime=Date.now()+1e3*w}static fromJSON(f,v){const{refreshToken:w,accessToken:J,expirationTime:be}=v,Ct=new Gt;return w&&(Nt("string"==typeof w,"internal-error",{appName:f}),Ct.refreshToken=w),J&&(Nt("string"==typeof J,"internal-error",{appName:f}),Ct.accessToken=J),be&&(Nt("number"==typeof be,"internal-error",{appName:f}),Ct.expirationTime=be),Ct}toJSON(){return{refreshToken:this.refreshToken,accessToken:this.accessToken,expirationTime:this.expirationTime}}_assign(f){this.accessToken=f.accessToken,this.refreshToken=f.refreshToken,this.expirationTime=f.expirationTime}_clone(){return Object.assign(new Gt,this.toJSON())}_performRefresh(){return tt("not implemented")}}function tn(I,f){Nt("string"==typeof I||typeof I>"u","internal-error",{appName:f})}class _n{constructor(f){var{uid:v,auth:w,stsTokenManager:J}=f,be=(0,Je.Tt)(f,["uid","auth","stsTokenManager"]);this.providerId="firebase",this.proactiveRefresh=new Qr(this),this.reloadUserInfo=null,this.reloadListener=null,this.uid=v,this.auth=w,this.stsTokenManager=J,this.accessToken=J.accessToken,this.displayName=be.displayName||null,this.email=be.email||null,this.emailVerified=be.emailVerified||!1,this.phoneNumber=be.phoneNumber||null,this.photoURL=be.photoURL||null,this.isAnonymous=be.isAnonymous||!1,this.tenantId=be.tenantId||null,this.providerData=be.providerData?[...be.providerData]:[],this.metadata=new pe(be.createdAt||void 0,be.lastLoginAt||void 0)}getIdToken(f){var v=this;return(0,U.A)(function*(){const w=yield kr(v,v.stsTokenManager.getToken(v.auth,f));return Nt(w,v.auth,"internal-error"),v.accessToken!==w&&(v.accessToken=w,yield v.auth._persistUserIfCurrent(v),v.auth._notifyListenersIfCurrent(v)),w})()}getIdTokenResult(f){return function Jr(I){return mr.apply(this,arguments)}(this,f)}reload(){return function ut(I){return ce.apply(this,arguments)}(this)}_assign(f){this!==f&&(Nt(this.uid===f.uid,this.auth,"internal-error"),this.displayName=f.displayName,this.photoURL=f.photoURL,this.email=f.email,this.emailVerified=f.emailVerified,this.phoneNumber=f.phoneNumber,this.isAnonymous=f.isAnonymous,this.tenantId=f.tenantId,this.providerData=f.providerData.map(v=>Object.assign({},v)),this.metadata._copy(f.metadata),this.stsTokenManager._assign(f.stsTokenManager))}_clone(f){const v=new _n(Object.assign(Object.assign({},this),{auth:f,stsTokenManager:this.stsTokenManager._clone()}));return v.metadata._copy(this.metadata),v}_onReload(f){Nt(!this.reloadListener,this.auth,"internal-error"),this.reloadListener=f,this.reloadUserInfo&&(this._notifyReloadListener(this.reloadUserInfo),this.reloadUserInfo=null)}_notifyReloadListener(f){this.reloadListener?this.reloadListener(f):this.reloadUserInfo=f}_startProactiveRefresh(){this.proactiveRefresh._start()}_stopProactiveRefresh(){this.proactiveRefresh._stop()}_updateTokensIfNecessary(f,v=!1){var w=this;return(0,U.A)(function*(){let J=!1;f.idToken&&f.idToken!==w.stsTokenManager.accessToken&&(w.stsTokenManager.updateFromServerResponse(f),J=!0),v&&(yield rt(w)),yield w.auth._persistUserIfCurrent(w),J&&w.auth._notifyListenersIfCurrent(w)})()}delete(){var f=this;return(0,U.A)(function*(){if((0,ue.xZ)(f.auth.app))return Promise.reject(at(f.auth));const v=yield f.getIdToken();return yield kr(f,function mn(I,f){return en.apply(this,arguments)}(f.auth,{idToken:v})),f.stsTokenManager.clearRefreshToken(),f.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(f=>Object.assign({},f)),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(f,v){var w,J,be,Ct,Xt,Dn,$n,vr;const hi=null!==(w=v.displayName)&&void 0!==w?w:void 0,Vo=null!==(J=v.email)&&void 0!==J?J:void 0,to=null!==(be=v.phoneNumber)&&void 0!==be?be:void 0,ua=null!==(Ct=v.photoURL)&&void 0!==Ct?Ct:void 0,Xd=null!==(Xt=v.tenantId)&&void 0!==Xt?Xt:void 0,su=null!==(Dn=v._redirectEventId)&&void 0!==Dn?Dn:void 0,qd=null!==($n=v.createdAt)&&void 0!==$n?$n:void 0,Zu=null!==(vr=v.lastLoginAt)&&void 0!==vr?vr:void 0,{uid:ec,emailVerified:tc,isAnonymous:Df,providerData:au,stsTokenManager:Tf}=v;Nt(ec&&Tf,f,"internal-error");const Qd=Gt.fromJSON(this.name,Tf);Nt("string"==typeof ec,f,"internal-error"),tn(hi,f.name),tn(Vo,f.name),Nt("boolean"==typeof tc,f,"internal-error"),Nt("boolean"==typeof Df,f,"internal-error"),tn(to,f.name),tn(ua,f.name),tn(Xd,f.name),tn(su,f.name),tn(qd,f.name),tn(Zu,f.name);const Yd=new _n({uid:ec,auth:f,email:Vo,emailVerified:tc,displayName:hi,isAnonymous:Df,photoURL:ua,phoneNumber:to,tenantId:Xd,stsTokenManager:Qd,createdAt:qd,lastLoginAt:Zu});return au&&Array.isArray(au)&&(Yd.providerData=au.map(Jd=>Object.assign({},Jd))),su&&(Yd._redirectEventId=su),Yd}static _fromIdTokenResponse(f,v,w=!1){return(0,U.A)(function*(){const J=new Gt;J.updateFromServerResponse(v);const be=new _n({uid:v.localId,auth:f,stsTokenManager:J,isAnonymous:w});return yield rt(be),be})()}static _fromGetAccountInfoResponse(f,v,w){return(0,U.A)(function*(){const J=v.users[0];Nt(void 0!==J.localId,"internal-error");const be=void 0!==J.providerUserInfo?He(J.providerUserInfo):[],Ct=!(J.email&&J.passwordHash||null!=be&&be.length),Xt=new Gt;Xt.updateFromIdToken(w);const Dn=new _n({uid:J.localId,auth:f,stsTokenManager:Xt,isAnonymous:Ct}),$n={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:be,metadata:new pe(J.createdAt,J.lastLoginAt),isAnonymous:!(J.email&&J.passwordHash||null!=be&&be.length)};return Object.assign(Dn,$n),Dn})()}}const qn=new Map;function hn(I){on(I instanceof Function,"Expected a class definition");let f=qn.get(I);return f?(on(f instanceof I,"Instance stored in cache mismatched with class"),f):(f=new I,qn.set(I,f),f)}const tr=(()=>{class I{constructor(){this.type="NONE",this.storage={}}_isAvailable(){return(0,U.A)(function*(){return!0})()}_set(v,w){var J=this;return(0,U.A)(function*(){J.storage[v]=w})()}_get(v){var w=this;return(0,U.A)(function*(){const J=w.storage[v];return void 0===J?null:J})()}_remove(v){var w=this;return(0,U.A)(function*(){delete w.storage[v]})()}_addListener(v,w){}_removeListener(v,w){}}return I.type="NONE",I})();function Ar(I,f,v){return`firebase:${I}:${f}:${v}`}class dr{constructor(f,v,w){this.persistence=f,this.auth=v,this.userKey=w;const{config:J,name:be}=this.auth;this.fullUserKey=Ar(this.userKey,J.apiKey,be),this.fullPersistenceKey=Ar("persistence",J.apiKey,be),this.boundEventHandler=v._onStorageEvent.bind(v),this.persistence._addListener(this.fullUserKey,this.boundEventHandler)}setCurrentUser(f){return this.persistence._set(this.fullUserKey,f.toJSON())}getCurrentUser(){var f=this;return(0,U.A)(function*(){const v=yield f.persistence._get(f.fullUserKey);return v?_n._fromJSON(f.auth,v):null})()}removeCurrentUser(){return this.persistence._remove(this.fullUserKey)}savePersistenceForRedirect(){return this.persistence._set(this.fullPersistenceKey,this.persistence.type)}setPersistence(f){var v=this;return(0,U.A)(function*(){if(v.persistence===f)return;const w=yield v.getCurrentUser();return yield v.removeCurrentUser(),v.persistence=f,w?v.setCurrentUser(w):void 0})()}delete(){this.persistence._removeListener(this.fullUserKey,this.boundEventHandler)}static create(f,v,w="authUser"){return(0,U.A)(function*(){if(!v.length)return new dr(hn(tr),f,w);const J=(yield Promise.all(v.map(function(){var $n=(0,U.A)(function*(vr){if(yield vr._isAvailable())return vr});return function(vr){return $n.apply(this,arguments)}}()))).filter($n=>$n);let be=J[0]||hn(tr);const Ct=Ar(w,f.config.apiKey,f.name);let Xt=null;for(const $n of v)try{const vr=yield $n._get(Ct);if(vr){const hi=_n._fromJSON(f,vr);$n!==be&&(Xt=hi),be=$n;break}}catch{}const Dn=J.filter($n=>$n._shouldAllowMigration);return be._shouldAllowMigration&&Dn.length?(be=Dn[0],Xt&&(yield be._set(Ct,Xt.toJSON())),yield Promise.all(v.map(function(){var $n=(0,U.A)(function*(vr){if(vr!==be)try{yield vr._remove(Ct)}catch{}});return function(vr){return $n.apply(this,arguments)}}())),new dr(be,f,w)):new dr(be,f,w)})()}}function $r(I){const f=I.toLowerCase();if(f.includes("opera/")||f.includes("opr/")||f.includes("opios/"))return"Opera";if(gi(f))return"IEMobile";if(f.includes("msie")||f.includes("trident/"))return"IE";if(f.includes("edge/"))return"Edge";if(Zr(f))return"Firefox";if(f.includes("silk/"))return"Silk";if(Ut(f))return"Blackberry";if(te(f))return"Webos";if(fr(f))return"Safari";if((f.includes("chrome/")||Ri(f))&&!f.includes("edge/"))return"Chrome";if(pr(f))return"Android";{const w=I.match(/([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/);if(2===(null==w?void 0:w.length))return w[1]}return"Other"}function Zr(I=(0,oe.ZQ)()){return/firefox\//i.test(I)}function fr(I=(0,oe.ZQ)()){const f=I.toLowerCase();return f.includes("safari/")&&!f.includes("chrome/")&&!f.includes("crios/")&&!f.includes("android")}function Ri(I=(0,oe.ZQ)()){return/crios\//i.test(I)}function gi(I=(0,oe.ZQ)()){return/iemobile/i.test(I)}function pr(I=(0,oe.ZQ)()){return/android/i.test(I)}function Ut(I=(0,oe.ZQ)()){return/blackberry/i.test(I)}function te(I=(0,oe.ZQ)()){return/webos/i.test(I)}function ee(I=(0,oe.ZQ)()){return/iphone|ipad|ipod/i.test(I)||/macintosh/i.test(I)&&/mobile/i.test(I)}function ne(I=(0,oe.ZQ)()){return ee(I)||pr(I)||te(I)||Ut(I)||/windows phone/i.test(I)||gi(I)}function Ge(I,f=[]){let v;switch(I){case"Browser":v=$r((0,oe.ZQ)());break;case"Worker":v=`${$r((0,oe.ZQ)())}-${I}`;break;default:v=I}const w=f.length?f.join(","):"FirebaseCore-web";return`${v}/JsCore/${ue.MF}/${w}`}class At{constructor(f){this.auth=f,this.queue=[]}pushCallback(f,v){const w=be=>new Promise((Ct,Xt)=>{try{Ct(f(be))}catch(Dn){Xt(Dn)}});w.onAbort=v,this.queue.push(w);const J=this.queue.length-1;return()=>{this.queue[J]=()=>Promise.resolve()}}runMiddleware(f){var v=this;return(0,U.A)(function*(){if(v.auth.currentUser===f)return;const w=[];try{for(const J of v.queue)yield J(f),J.onAbort&&w.push(J.onAbort)}catch(J){w.reverse();for(const be of w)try{be()}catch{}throw v.auth._errorFactory.create("login-blocked",{originalMessage:null==J?void 0:J.message})}})()}}function ln(){return(ln=(0,U.A)(function*(I,f={}){return Kt(I,"GET","/v2/passwordPolicy",dn(I,f))})).apply(this,arguments)}class Un{constructor(f){var v,w,J,be;const Ct=f.customStrengthOptions;this.customStrengthOptions={},this.customStrengthOptions.minPasswordLength=null!==(v=Ct.minPasswordLength)&&void 0!==v?v:6,Ct.maxPasswordLength&&(this.customStrengthOptions.maxPasswordLength=Ct.maxPasswordLength),void 0!==Ct.containsLowercaseCharacter&&(this.customStrengthOptions.containsLowercaseLetter=Ct.containsLowercaseCharacter),void 0!==Ct.containsUppercaseCharacter&&(this.customStrengthOptions.containsUppercaseLetter=Ct.containsUppercaseCharacter),void 0!==Ct.containsNumericCharacter&&(this.customStrengthOptions.containsNumericCharacter=Ct.containsNumericCharacter),void 0!==Ct.containsNonAlphanumericCharacter&&(this.customStrengthOptions.containsNonAlphanumericCharacter=Ct.containsNonAlphanumericCharacter),this.enforcementState=f.enforcementState,"ENFORCEMENT_STATE_UNSPECIFIED"===this.enforcementState&&(this.enforcementState="OFF"),this.allowedNonAlphanumericCharacters=null!==(J=null===(w=f.allowedNonAlphanumericCharacters)||void 0===w?void 0:w.join(""))&&void 0!==J?J:"",this.forceUpgradeOnSignin=null!==(be=f.forceUpgradeOnSignin)&&void 0!==be&&be,this.schemaVersion=f.schemaVersion}validatePassword(f){var v,w,J,be,Ct,Xt;const Dn={isValid:!0,passwordPolicy:this};return this.validatePasswordLengthOptions(f,Dn),this.validatePasswordCharacterOptions(f,Dn),Dn.isValid&&(Dn.isValid=null===(v=Dn.meetsMinPasswordLength)||void 0===v||v),Dn.isValid&&(Dn.isValid=null===(w=Dn.meetsMaxPasswordLength)||void 0===w||w),Dn.isValid&&(Dn.isValid=null===(J=Dn.containsLowercaseLetter)||void 0===J||J),Dn.isValid&&(Dn.isValid=null===(be=Dn.containsUppercaseLetter)||void 0===be||be),Dn.isValid&&(Dn.isValid=null===(Ct=Dn.containsNumericCharacter)||void 0===Ct||Ct),Dn.isValid&&(Dn.isValid=null===(Xt=Dn.containsNonAlphanumericCharacter)||void 0===Xt||Xt),Dn}validatePasswordLengthOptions(f,v){const w=this.customStrengthOptions.minPasswordLength,J=this.customStrengthOptions.maxPasswordLength;w&&(v.meetsMinPasswordLength=f.length>=w),J&&(v.meetsMaxPasswordLength=f.length<=J)}validatePasswordCharacterOptions(f,v){let w;this.updatePasswordCharacterOptionsStatuses(v,!1,!1,!1,!1);for(let J=0;J="a"&&w<="z",w>="A"&&w<="Z",w>="0"&&w<="9",this.allowedNonAlphanumericCharacters.includes(w))}updatePasswordCharacterOptionsStatuses(f,v,w,J,be){this.customStrengthOptions.containsLowercaseLetter&&(f.containsLowercaseLetter||(f.containsLowercaseLetter=v)),this.customStrengthOptions.containsUppercaseLetter&&(f.containsUppercaseLetter||(f.containsUppercaseLetter=w)),this.customStrengthOptions.containsNumericCharacter&&(f.containsNumericCharacter||(f.containsNumericCharacter=J)),this.customStrengthOptions.containsNonAlphanumericCharacter&&(f.containsNonAlphanumericCharacter||(f.containsNonAlphanumericCharacter=be))}}class xr{constructor(f,v,w,J){this.app=f,this.heartbeatServiceProvider=v,this.appCheckServiceProvider=w,this.config=J,this.currentUser=null,this.emulatorConfig=null,this.operations=Promise.resolve(),this.authStateSubscription=new Fr(this),this.idTokenSubscription=new Fr(this),this.beforeStateQueue=new At(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=f.name,this.clientVersion=J.sdkClientVersion}_initializeWithPersistence(f,v){var w=this;return v&&(this._popupRedirectResolver=hn(v)),this._initializationPromise=this.queue((0,U.A)(function*(){var J,be;if(!w._deleted&&(w.persistenceManager=yield dr.create(w,f),!w._deleted)){if(null!==(J=w._popupRedirectResolver)&&void 0!==J&&J._shouldInitProactively)try{yield w._popupRedirectResolver._initialize(w)}catch{}yield w.initializeCurrentUser(v),w.lastNotifiedUid=(null===(be=w.currentUser)||void 0===be?void 0:be.uid)||null,!w._deleted&&(w._isInitialized=!0)}})),this._initializationPromise}_onStorageEvent(){var f=this;return(0,U.A)(function*(){if(f._deleted)return;const v=yield f.assertedPersistence.getCurrentUser();if(f.currentUser||v){if(f.currentUser&&v&&f.currentUser.uid===v.uid)return f._currentUser._assign(v),void(yield f.currentUser.getIdToken());yield f._updateCurrentUser(v,!0)}})()}initializeCurrentUserFromIdToken(f){var v=this;return(0,U.A)(function*(){try{const w=yield Nr(v,{idToken:f}),J=yield _n._fromGetAccountInfoResponse(v,w,f);yield v.directlySetCurrentUser(J)}catch(w){console.warn("FirebaseServerApp could not login user with provided authIdToken: ",w),yield v.directlySetCurrentUser(null)}})()}initializeCurrentUser(f){var v=this;return(0,U.A)(function*(){var w;if((0,ue.xZ)(v.app)){const Xt=v.app.settings.authIdToken;return Xt?new Promise(Dn=>{setTimeout(()=>v.initializeCurrentUserFromIdToken(Xt).then(Dn,Dn))}):v.directlySetCurrentUser(null)}const J=yield v.assertedPersistence.getCurrentUser();let be=J,Ct=!1;if(f&&v.config.authDomain){yield v.getOrInitRedirectPersistenceManager();const Xt=null===(w=v.redirectUser)||void 0===w?void 0:w._redirectEventId,Dn=null==be?void 0:be._redirectEventId,$n=yield v.tryRedirectSignIn(f);(!Xt||Xt===Dn)&&null!=$n&&$n.user&&(be=$n.user,Ct=!0)}if(!be)return v.directlySetCurrentUser(null);if(!be._redirectEventId){if(Ct)try{yield v.beforeStateQueue.runMiddleware(be)}catch(Xt){be=J,v._popupRedirectResolver._overrideRedirectResult(v,()=>Promise.reject(Xt))}return be?v.reloadAndSetCurrentUserOrClear(be):v.directlySetCurrentUser(null)}return Nt(v._popupRedirectResolver,v,"argument-error"),yield v.getOrInitRedirectPersistenceManager(),v.redirectUser&&v.redirectUser._redirectEventId===be._redirectEventId?v.directlySetCurrentUser(be):v.reloadAndSetCurrentUserOrClear(be)})()}tryRedirectSignIn(f){var v=this;return(0,U.A)(function*(){let w=null;try{w=yield v._popupRedirectResolver._completeRedirectFn(v,f,!0)}catch{yield v._setRedirectUser(null)}return w})()}reloadAndSetCurrentUserOrClear(f){var v=this;return(0,U.A)(function*(){try{yield rt(f)}catch(w){if("auth/network-request-failed"!==(null==w?void 0:w.code))return v.directlySetCurrentUser(null)}return v.directlySetCurrentUser(f)})()}useDeviceLanguage(){this.languageCode=function fe(){if(typeof navigator>"u")return null;const I=navigator;return I.languages&&I.languages[0]||I.language||null}()}_delete(){var f=this;return(0,U.A)(function*(){f._deleted=!0})()}updateCurrentUser(f){var v=this;return(0,U.A)(function*(){if((0,ue.xZ)(v.app))return Promise.reject(at(v));const w=f?(0,oe.Ku)(f):null;return w&&Nt(w.auth.config.apiKey===v.config.apiKey,v,"invalid-user-token"),v._updateCurrentUser(w&&w._clone(v))})()}_updateCurrentUser(f,v=!1){var w=this;return(0,U.A)(function*(){if(!w._deleted)return f&&Nt(w.tenantId===f.tenantId,w,"tenant-id-mismatch"),v||(yield w.beforeStateQueue.runMiddleware(f)),w.queue((0,U.A)(function*(){yield w.directlySetCurrentUser(f),w.notifyAuthListeners()}))})()}signOut(){var f=this;return(0,U.A)(function*(){return(0,ue.xZ)(f.app)?Promise.reject(at(f)):(yield f.beforeStateQueue.runMiddleware(null),(f.redirectPersistenceManager||f._popupRedirectResolver)&&(yield f._setRedirectUser(null)),f._updateCurrentUser(null,!0))})()}setPersistence(f){var v=this;return(0,ue.xZ)(this.app)?Promise.reject(at(this)):this.queue((0,U.A)(function*(){yield v.assertedPersistence.setPersistence(hn(f))}))}_getRecaptchaConfig(){return null==this.tenantId?this._agentRecaptchaConfig:this._tenantRecaptchaConfigs[this.tenantId]}validatePassword(f){var v=this;return(0,U.A)(function*(){v._getPasswordPolicyInternal()||(yield v._updatePasswordPolicy());const w=v._getPasswordPolicyInternal();return w.schemaVersion!==v.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION?Promise.reject(v._errorFactory.create("unsupported-password-policy-schema-version",{})):w.validatePassword(f)})()}_getPasswordPolicyInternal(){return null===this.tenantId?this._projectPasswordPolicy:this._tenantPasswordPolicies[this.tenantId]}_updatePasswordPolicy(){var f=this;return(0,U.A)(function*(){const v=yield function Jt(I){return ln.apply(this,arguments)}(f),w=new Un(v);null===f.tenantId?f._projectPasswordPolicy=w:f._tenantPasswordPolicies[f.tenantId]=w})()}_getPersistence(){return this.assertedPersistence.persistence.type}_updateErrorMap(f){this._errorFactory=new oe.FA("auth","Firebase",f())}onAuthStateChanged(f,v,w){return this.registerStateListener(this.authStateSubscription,f,v,w)}beforeAuthStateChanged(f,v){return this.beforeStateQueue.pushCallback(f,v)}onIdTokenChanged(f,v,w){return this.registerStateListener(this.idTokenSubscription,f,v,w)}authStateReady(){return new Promise((f,v)=>{if(this.currentUser)f();else{const w=this.onAuthStateChanged(()=>{w(),f()},v)}})}revokeAccessToken(f){var v=this;return(0,U.A)(function*(){if(v.currentUser){const w=yield v.currentUser.getIdToken(),J={providerId:"apple.com",tokenType:"ACCESS_TOKEN",token:f,idToken:w};null!=v.tenantId&&(J.tenantId=v.tenantId),yield function ct(I,f){return lt.apply(this,arguments)}(v,J)}})()}toJSON(){var f;return{apiKey:this.config.apiKey,authDomain:this.config.authDomain,appName:this.name,currentUser:null===(f=this._currentUser)||void 0===f?void 0:f.toJSON()}}_setRedirectUser(f,v){var w=this;return(0,U.A)(function*(){const J=yield w.getOrInitRedirectPersistenceManager(v);return null===f?J.removeCurrentUser():J.setCurrentUser(f)})()}getOrInitRedirectPersistenceManager(f){var v=this;return(0,U.A)(function*(){if(!v.redirectPersistenceManager){const w=f&&hn(f)||v._popupRedirectResolver;Nt(w,v,"argument-error"),v.redirectPersistenceManager=yield dr.create(v,[hn(w._redirectPersistence)],"redirectUser"),v.redirectUser=yield v.redirectPersistenceManager.getCurrentUser()}return v.redirectPersistenceManager})()}_redirectUserForId(f){var v=this;return(0,U.A)(function*(){var w,J;return v._isInitialized&&(yield v.queue((0,U.A)(function*(){}))),(null===(w=v._currentUser)||void 0===w?void 0:w._redirectEventId)===f?v._currentUser:(null===(J=v.redirectUser)||void 0===J?void 0:J._redirectEventId)===f?v.redirectUser:null})()}_persistUserIfCurrent(f){var v=this;return(0,U.A)(function*(){if(f===v.currentUser)return v.queue((0,U.A)(function*(){return v.directlySetCurrentUser(f)}))})()}_notifyListenersIfCurrent(f){f===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 f,v;if(!this._isInitialized)return;this.idTokenSubscription.next(this.currentUser);const w=null!==(v=null===(f=this.currentUser)||void 0===f?void 0:f.uid)&&void 0!==v?v:null;this.lastNotifiedUid!==w&&(this.lastNotifiedUid=w,this.authStateSubscription.next(this.currentUser))}registerStateListener(f,v,w,J){if(this._deleted)return()=>{};const be="function"==typeof v?v:v.next.bind(v);let Ct=!1;const Xt=this._isInitialized?Promise.resolve():this._initializationPromise;if(Nt(Xt,this,"internal-error"),Xt.then(()=>{Ct||be(this.currentUser)}),"function"==typeof v){const Dn=f.addObserver(v,w,J);return()=>{Ct=!0,Dn()}}{const Dn=f.addObserver(v);return()=>{Ct=!0,Dn()}}}directlySetCurrentUser(f){var v=this;return(0,U.A)(function*(){v.currentUser&&v.currentUser!==f&&v._currentUser._stopProactiveRefresh(),f&&v.isProactiveRefreshEnabled&&f._startProactiveRefresh(),v.currentUser=f,f?yield v.assertedPersistence.setCurrentUser(f):yield v.assertedPersistence.removeCurrentUser()})()}queue(f){return this.operations=this.operations.then(f,f),this.operations}get assertedPersistence(){return Nt(this.persistenceManager,this,"internal-error"),this.persistenceManager}_logFramework(f){!f||this.frameworks.includes(f)||(this.frameworks.push(f),this.frameworks.sort(),this.clientVersion=Ge(this.config.clientPlatform,this._getFrameworks()))}_getFrameworks(){return this.frameworks}_getAdditionalHeaders(){var f=this;return(0,U.A)(function*(){var v;const w={"X-Client-Version":f.clientVersion};f.app.options.appId&&(w["X-Firebase-gmpid"]=f.app.options.appId);const J=yield null===(v=f.heartbeatServiceProvider.getImmediate({optional:!0}))||void 0===v?void 0:v.getHeartbeatsHeader();J&&(w["X-Firebase-Client"]=J);const be=yield f._getAppCheckToken();return be&&(w["X-Firebase-AppCheck"]=be),w})()}_getAppCheckToken(){var f=this;return(0,U.A)(function*(){var v;const w=yield null===(v=f.appCheckServiceProvider.getImmediate({optional:!0}))||void 0===v?void 0:v.getToken();return null!=w&&w.error&&function Ye(I,...f){Me.logLevel<=Xe.$b.WARN&&Me.warn(`Auth (${ue.MF}): ${I}`,...f)}(`Error while retrieving App Check token: ${w.error}`),null==w?void 0:w.token})()}}function On(I){return(0,oe.Ku)(I)}class Fr{constructor(f){this.auth=f,this.observer=null,this.addObserver=(0,oe.tD)(v=>this.observer=v)}get next(){return Nt(this.observer,this.auth,"internal-error"),this.observer.next.bind(this.observer)}}let Or={loadJS:()=>(0,U.A)(function*(){throw new Error("Unable to load external scripts")})(),recaptchaV2Script:"",recaptchaEnterpriseScript:"",gapiScript:""};function Tr(I){return Or.loadJS(I)}function li(I){return`__${I}${Math.floor(1e6*Math.random())}`}class mi{constructor(f){this.type="recaptcha-enterprise",this.auth=On(f)}verify(f="verify",v=!1){var w=this;return(0,U.A)(function*(){function be(){return be=(0,U.A)(function*(Xt){if(!v){if(null==Xt.tenantId&&null!=Xt._agentRecaptchaConfig)return Xt._agentRecaptchaConfig.siteKey;if(null!=Xt.tenantId&&void 0!==Xt._tenantRecaptchaConfigs[Xt.tenantId])return Xt._tenantRecaptchaConfigs[Xt.tenantId].siteKey}return new Promise(function(){var Dn=(0,U.A)(function*($n,vr){Mn(Xt,{clientType:"CLIENT_TYPE_WEB",version:"RECAPTCHA_ENTERPRISE"}).then(hi=>{if(void 0!==hi.recaptchaKey){const Vo=new pn(hi);return null==Xt.tenantId?Xt._agentRecaptchaConfig=Vo:Xt._tenantRecaptchaConfigs[Xt.tenantId]=Vo,$n(Vo.siteKey)}vr(new Error("recaptcha Enterprise site key undefined"))}).catch(hi=>{vr(hi)})});return function($n,vr){return Dn.apply(this,arguments)}}())}),be.apply(this,arguments)}function Ct(Xt,Dn,$n){const vr=window.grecaptcha;zt(vr)?vr.enterprise.ready(()=>{vr.enterprise.execute(Xt,{action:f}).then(hi=>{Dn(hi)}).catch(()=>{Dn("NO_RECAPTCHA")})}):$n(Error("No reCAPTCHA enterprise script loaded."))}return new Promise((Xt,Dn)=>{(function J(Xt){return be.apply(this,arguments)})(w.auth).then($n=>{if(!v&&zt(window.grecaptcha))Ct($n,Xt,Dn);else{if(typeof window>"u")return void Dn(new Error("RecaptchaVerifier is only supported in browser"));let vr=function Cr(){return Or.recaptchaEnterpriseScript}();0!==vr.length&&(vr+=$n),Tr(vr).then(()=>{Ct($n,Xt,Dn)}).catch(hi=>{Dn(hi)})}}).catch($n=>{Dn($n)})})})()}}function Wn(I,f,v){return Hn.apply(this,arguments)}function Hn(){return(Hn=(0,U.A)(function*(I,f,v,w=!1){const J=new mi(I);let be;try{be=yield J.verify(v)}catch{be=yield J.verify(v,!0)}const Ct=Object.assign({},f);return Object.assign(Ct,w?{captchaResp:be}:{captchaResponse:be}),Object.assign(Ct,{clientType:"CLIENT_TYPE_WEB"}),Object.assign(Ct,{recaptchaVersion:"RECAPTCHA_ENTERPRISE"}),Ct})).apply(this,arguments)}function ao(I,f,v,w){return ui.apply(this,arguments)}function ui(){return ui=(0,U.A)(function*(I,f,v,w){var J;if(null!==(J=I._getRecaptchaConfig())&&void 0!==J&&J.isProviderEnabled("EMAIL_PASSWORD_PROVIDER")){const be=yield Wn(I,f,v,"getOobCode"===v);return w(I,be)}return w(I,f).catch(function(){var be=(0,U.A)(function*(Ct){if("auth/missing-recaptcha-token"===Ct.code){console.log(`${v} is protected by reCAPTCHA Enterprise for this project. Automatically triggering the reCAPTCHA flow and restarting the flow.`);const Xt=yield Wn(I,f,v,"getOobCode"===v);return w(I,Xt)}return Promise.reject(Ct)});return function(Ct){return be.apply(this,arguments)}}())}),ui.apply(this,arguments)}function he(I){const f=I.indexOf(":");return f<0?"":I.substr(0,f+1)}function W(I){if(!I)return null;const f=Number(I);return isNaN(f)?null:f}class Ve{constructor(f,v){this.providerId=f,this.signInMethod=v}toJSON(){return tt("not implemented")}_getIdTokenResponse(f){return tt("not implemented")}_linkToIdToken(f,v){return tt("not implemented")}_getReauthenticationResolver(f){return tt("not implemented")}}function b(I,f){return j.apply(this,arguments)}function j(){return(j=(0,U.A)(function*(I,f){return Kt(I,"POST","/v1/accounts:signUp",f)})).apply(this,arguments)}function Ee(I,f){return it.apply(this,arguments)}function it(){return(it=(0,U.A)(function*(I,f){return nr(I,"POST","/v1/accounts:signInWithPassword",dn(I,f))})).apply(this,arguments)}function En(){return(En=(0,U.A)(function*(I,f){return nr(I,"POST","/v1/accounts:signInWithEmailLink",dn(I,f))})).apply(this,arguments)}function jn(){return(jn=(0,U.A)(function*(I,f){return nr(I,"POST","/v1/accounts:signInWithEmailLink",dn(I,f))})).apply(this,arguments)}class lr extends Ve{constructor(f,v,w,J=null){super("password",w),this._email=f,this._password=v,this._tenantId=J}static _fromEmailAndPassword(f,v){return new lr(f,v,"password")}static _fromEmailAndCode(f,v,w=null){return new lr(f,v,"emailLink",w)}toJSON(){return{email:this._email,password:this._password,signInMethod:this.signInMethod,tenantId:this._tenantId}}static fromJSON(f){const v="string"==typeof f?JSON.parse(f):f;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(f){var v=this;return(0,U.A)(function*(){switch(v.signInMethod){case"password":return ao(f,{returnSecureToken:!0,email:v._email,password:v._password,clientType:"CLIENT_TYPE_WEB"},"signInWithPassword",Ee);case"emailLink":return function cn(I,f){return En.apply(this,arguments)}(f,{email:v._email,oobCode:v._password});default:Ue(f,"internal-error")}})()}_linkToIdToken(f,v){var w=this;return(0,U.A)(function*(){switch(w.signInMethod){case"password":return ao(f,{idToken:v,returnSecureToken:!0,email:w._email,password:w._password,clientType:"CLIENT_TYPE_WEB"},"signUpPassword",b);case"emailLink":return function Nn(I,f){return jn.apply(this,arguments)}(f,{idToken:v,email:w._email,oobCode:w._password});default:Ue(f,"internal-error")}})()}_getReauthenticationResolver(f){return this._getIdTokenResponse(f)}}function Vn(I,f){return qr.apply(this,arguments)}function qr(){return(qr=(0,U.A)(function*(I,f){return nr(I,"POST","/v1/accounts:signInWithIdp",dn(I,f))})).apply(this,arguments)}class no{constructor(f){var v,w,J,be,Ct,Xt;const Dn=(0,oe.I9)((0,oe.hp)(f)),$n=null!==(v=Dn.apiKey)&&void 0!==v?v:null,vr=null!==(w=Dn.oobCode)&&void 0!==w?w:null,hi=function Io(I){switch(I){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=Dn.mode)&&void 0!==J?J:null);Nt($n&&vr&&hi,"argument-error"),this.apiKey=$n,this.operation=hi,this.code=vr,this.continueUrl=null!==(be=Dn.continueUrl)&&void 0!==be?be:null,this.languageCode=null!==(Ct=Dn.languageCode)&&void 0!==Ct?Ct:null,this.tenantId=null!==(Xt=Dn.tenantId)&&void 0!==Xt?Xt:null}static parseLink(f){const v=function Ss(I){const f=(0,oe.I9)((0,oe.hp)(I)).link,v=f?(0,oe.I9)((0,oe.hp)(f)).deep_link_id:null,w=(0,oe.I9)((0,oe.hp)(I)).deep_link_id;return(w?(0,oe.I9)((0,oe.hp)(w)).link:null)||w||v||f||I}(f);try{return new no(v)}catch{return null}}}let Kr=(()=>{class I{constructor(){this.providerId=I.PROVIDER_ID}static credential(v,w){return lr._fromEmailAndPassword(v,w)}static credentialWithLink(v,w){const J=no.parseLink(w);return Nt(J,"argument-error"),lr._fromEmailAndCode(v,J.code,J.tenantId)}}return I.PROVIDER_ID="password",I.EMAIL_PASSWORD_SIGN_IN_METHOD="password",I.EMAIL_LINK_SIGN_IN_METHOD="emailLink",I})();class fo{constructor(f){this.providerId=f,this.defaultLanguageCode=null,this.customParameters={}}setDefaultLanguage(f){this.defaultLanguageCode=f}setCustomParameters(f){return this.customParameters=f,this}getCustomParameters(){return this.customParameters}}class ka extends fo{constructor(){super(...arguments),this.scopes=[]}addScope(f){return this.scopes.includes(f)||this.scopes.push(f),this}getScopes(){return[...this.scopes]}}function Ao(I,f){return Fo.apply(this,arguments)}function Fo(){return(Fo=(0,U.A)(function*(I,f){return nr(I,"POST","/v1/accounts:signUp",dn(I,f))})).apply(this,arguments)}class io{constructor(f){this.user=f.user,this.providerId=f.providerId,this._tokenResponse=f._tokenResponse,this.operationType=f.operationType}static _fromIdTokenResponse(f,v,w,J=!1){return(0,U.A)(function*(){const be=yield _n._fromIdTokenResponse(f,w,J),Ct=ha(w);return new io({user:be,providerId:Ct,_tokenResponse:w,operationType:v})})()}static _forOperation(f,v,w){return(0,U.A)(function*(){yield f._updateTokensIfNecessary(w,!0);const J=ha(w);return new io({user:f,providerId:J,_tokenResponse:w,operationType:v})})()}}function ha(I){return I.providerId?I.providerId:"phoneNumber"in I?"phone":null}class N extends oe.g{constructor(f,v,w,J){var be;super(v.code,v.message),this.operationType=w,this.user=J,Object.setPrototypeOf(this,N.prototype),this.customData={appName:f.name,tenantId:null!==(be=f.tenantId)&&void 0!==be?be:void 0,_serverResponse:v.customData._serverResponse,operationType:w}}static _fromErrorAndOperation(f,v,w,J){return new N(f,v,w,J)}}function Ae(I,f,v,w){return("reauthenticate"===f?v._getReauthenticationResolver(I):v._getIdTokenResponse(I)).catch(be=>{throw"auth/multi-factor-auth-required"===be.code?N._fromErrorAndOperation(I,be,f,w):be})}function wr(){return(wr=(0,U.A)(function*(I,f,v=!1){const w=yield kr(I,f._linkToIdToken(I.auth,yield I.getIdToken()),v);return io._forOperation(I,"link",w)})).apply(this,arguments)}function Yo(){return(Yo=(0,U.A)(function*(I,f,v=!1){const{auth:w}=I;if((0,ue.xZ)(w.app))return Promise.reject(at(w));const J="reauthenticate";try{const be=yield kr(I,Ae(w,J,f,I),v);Nt(be.idToken,w,"internal-error");const Ct=Pr(be.idToken);Nt(Ct,w,"internal-error");const{sub:Xt}=Ct;return Nt(I.uid===Xt,w,"user-mismatch"),io._forOperation(I,J,be)}catch(be){throw"auth/user-not-found"===(null==be?void 0:be.code)&&Ue(w,"user-mismatch"),be}})).apply(this,arguments)}function Fa(I,f){return _s.apply(this,arguments)}function _s(){return(_s=(0,U.A)(function*(I,f,v=!1){if((0,ue.xZ)(I.app))return Promise.reject(at(I));const w="signIn",J=yield Ae(I,w,f),be=yield io._fromIdTokenResponse(I,w,J);return v||(yield I._updateCurrentUser(be.user)),be})).apply(this,arguments)}function fa(){return(fa=(0,U.A)(function*(I,f){return Fa(On(I),f)})).apply(this,arguments)}function cl(I){return Hr.apply(this,arguments)}function Hr(){return(Hr=(0,U.A)(function*(I){const f=On(I);f._getPasswordPolicyInternal()&&(yield f._updatePasswordPolicy())})).apply(this,arguments)}function Os(I,f,v){return Zo.apply(this,arguments)}function Zo(){return(Zo=(0,U.A)(function*(I,f,v){if((0,ue.xZ)(I.app))return Promise.reject(at(I));const w=On(I),Ct=yield ao(w,{returnSecureToken:!0,email:f,password:v,clientType:"CLIENT_TYPE_WEB"},"signUpPassword",Ao).catch(Dn=>{throw"auth/password-does-not-meet-requirements"===Dn.code&&cl(I),Dn}),Xt=yield io._fromIdTokenResponse(w,"signIn",Ct);return yield w._updateCurrentUser(Xt.user),Xt})).apply(this,arguments)}function As(I,f,v){return(0,ue.xZ)(I.app)?Promise.reject(at(I)):function Gs(I,f){return fa.apply(this,arguments)}((0,oe.Ku)(I),Kr.credential(f,v)).catch(function(){var w=(0,U.A)(function*(J){throw"auth/password-does-not-meet-requirements"===J.code&&cl(I),J});return function(J){return w.apply(this,arguments)}}())}function Hi(I,f,v,w){return(0,oe.Ku)(I).onIdTokenChanged(f,v,w)}const qs="__sak";class _c{constructor(f,v){this.storageRetriever=f,this.type=v}_isAvailable(){try{return this.storage?(this.storage.setItem(qs,"1"),this.storage.removeItem(qs),Promise.resolve(!0)):Promise.resolve(!1)}catch{return Promise.resolve(!1)}}_set(f,v){return this.storage.setItem(f,JSON.stringify(v)),Promise.resolve()}_get(f){const v=this.storage.getItem(f);return Promise.resolve(v?JSON.parse(v):null)}_remove(f){return this.storage.removeItem(f),Promise.resolve()}get storage(){return this.storageRetriever()}}const Ea=(()=>{class I extends _c{constructor(){super(()=>window.localStorage,"LOCAL"),this.boundEventHandler=(v,w)=>this.onStorageEvent(v,w),this.listeners={},this.localCache={},this.pollTimer=null,this.safariLocalStorageNotSynced=function Mi(){const I=(0,oe.ZQ)();return fr(I)||ee(I)}()&&function Te(){try{return!(!window||window===window.top)}catch{return!1}}(),this.fallbackToPolling=ne(),this._shouldAllowMigration=!0}forAllChangedKeys(v){for(const w of Object.keys(this.listeners)){const J=this.storage.getItem(w),be=this.localCache[w];J!==be&&v(w,be,J)}}onStorageEvent(v,w=!1){if(!v.key)return void this.forAllChangedKeys((Xt,Dn,$n)=>{this.notifyListeners(Xt,$n)});const J=v.key;if(w?this.detachListener():this.stopPolling(),this.safariLocalStorageNotSynced){const Xt=this.storage.getItem(J);if(v.newValue!==Xt)null!==v.newValue?this.storage.setItem(J,v.newValue):this.storage.removeItem(J);else if(this.localCache[J]===v.newValue&&!w)return}const be=()=>{const Xt=this.storage.getItem(J);!w&&this.localCache[J]===Xt||this.notifyListeners(J,Xt)},Ct=this.storage.getItem(J);!function x(){return(0,oe.lT)()&&10===document.documentMode}()||Ct===v.newValue||v.newValue===v.oldValue?be():setTimeout(be,10)}notifyListeners(v,w){this.localCache[v]=w;const J=this.listeners[v];if(J)for(const be of Array.from(J))be(w&&JSON.parse(w))}startPolling(){this.stopPolling(),this.pollTimer=setInterval(()=>{this.forAllChangedKeys((v,w,J)=>{this.onStorageEvent(new StorageEvent("storage",{key:v,oldValue:w,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,w){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(w)}_removeListener(v,w){this.listeners[v]&&(this.listeners[v].delete(w),0===this.listeners[v].size&&delete this.listeners[v]),0===Object.keys(this.listeners).length&&(this.detachListener(),this.stopPolling())}_set(v,w){var J=()=>super._set,be=this;return(0,U.A)(function*(){yield J().call(be,v,w),be.localCache[v]=JSON.stringify(w)})()}_get(v){var w=()=>super._get,J=this;return(0,U.A)(function*(){const be=yield w().call(J,v);return J.localCache[v]=JSON.stringify(be),be})()}_remove(v){var w=()=>super._remove,J=this;return(0,U.A)(function*(){yield w().call(J,v),delete J.localCache[v]})()}}return I.type="LOCAL",I})(),Wo=(()=>{class I extends _c{constructor(){super(()=>window.sessionStorage,"SESSION")}_addListener(v,w){}_removeListener(v,w){}}return I.type="SESSION",I})();let Ia=(()=>{class I{constructor(v){this.eventTarget=v,this.handlersMap={},this.boundEventHandler=this.handleEvent.bind(this)}static _getInstance(v){const w=this.receivers.find(be=>be.isListeningto(v));if(w)return w;const J=new I(v);return this.receivers.push(J),J}isListeningto(v){return this.eventTarget===v}handleEvent(v){var w=this;return(0,U.A)(function*(){const J=v,{eventId:be,eventType:Ct,data:Xt}=J.data,Dn=w.handlersMap[Ct];if(null==Dn||!Dn.size)return;J.ports[0].postMessage({status:"ack",eventId:be,eventType:Ct});const $n=Array.from(Dn).map(function(){var hi=(0,U.A)(function*(Vo){return Vo(J.origin,Xt)});return function(Vo){return hi.apply(this,arguments)}}()),vr=yield function pl(I){return Promise.all(I.map(function(){var f=(0,U.A)(function*(v){try{return{fulfilled:!0,value:yield v}}catch(w){return{fulfilled:!1,reason:w}}});return function(v){return f.apply(this,arguments)}}()))}($n);J.ports[0].postMessage({status:"done",eventId:be,eventType:Ct,response:vr})})()}_subscribe(v,w){0===Object.keys(this.handlersMap).length&&this.eventTarget.addEventListener("message",this.boundEventHandler),this.handlersMap[v]||(this.handlersMap[v]=new Set),this.handlersMap[v].add(w)}_unsubscribe(v,w){this.handlersMap[v]&&w&&this.handlersMap[v].delete(w),(!w||0===this.handlersMap[v].size)&&delete this.handlersMap[v],0===Object.keys(this.handlersMap).length&&this.eventTarget.removeEventListener("message",this.boundEventHandler)}}return I.receivers=[],I})();function Xi(I="",f=10){let v="";for(let w=0;w{const vr=Xi("",20);be.port1.start();const hi=setTimeout(()=>{$n(new Error("unsupported_event"))},w);Xt={messageChannel:be,onMessage(Vo){const to=Vo;if(to.data.eventId===vr)switch(to.data.status){case"ack":clearTimeout(hi),Ct=setTimeout(()=>{$n(new Error("timeout"))},3e3);break;case"done":clearTimeout(Ct),Dn(to.data.response);break;default:clearTimeout(hi),clearTimeout(Ct),$n(new Error("invalid_response"))}}},J.handlers.add(Xt),be.port1.addEventListener("message",Xt.onMessage),J.target.postMessage({eventType:f,eventId:vr,data:v},[be.port2])}).finally(()=>{Xt&&J.removeMessageHandler(Xt)})})()}}function di(){return window}function Wl(){return typeof di().WorkerGlobalScope<"u"&&"function"==typeof di().importScripts}function Ys(){return(Ys=(0,U.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",Aa="firebaseLocalStorage",Mu="fbase_key";class Ca{constructor(f){this.request=f}toPromise(){return new Promise((f,v)=>{this.request.addEventListener("success",()=>{f(this.request.result)}),this.request.addEventListener("error",()=>{v(this.request.error)})})}}function ja(I,f){return I.transaction([Aa],f?"readwrite":"readonly").objectStore(Aa)}function Td(){const I=indexedDB.open(gl,1);return new Promise((f,v)=>{I.addEventListener("error",()=>{v(I.error)}),I.addEventListener("upgradeneeded",()=>{const w=I.result;try{w.createObjectStore(Aa,{keyPath:Mu})}catch(J){v(J)}}),I.addEventListener("success",(0,U.A)(function*(){const w=I.result;w.objectStoreNames.contains(Aa)?f(w):(w.close(),yield function tg(){const I=indexedDB.deleteDatabase(gl);return new Ca(I).toPromise()}(),f(yield Td()))}))})}function Da(I,f,v){return za.apply(this,arguments)}function za(){return(za=(0,U.A)(function*(I,f,v){const w=ja(I,!0).put({[Mu]:f,value:v});return new Ca(w).toPromise()})).apply(this,arguments)}function bd(){return(bd=(0,U.A)(function*(I,f){const v=ja(I,!1).get(f),w=yield new Ca(v).toPromise();return void 0===w?null:w.value})).apply(this,arguments)}function E(I,f){const v=ja(I,!0).delete(f);return new Ca(v).toPromise()}const L=(()=>{class I{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,U.A)(function*(){return v.db||(v.db=yield Td()),v.db})()}_withRetries(v){var w=this;return(0,U.A)(function*(){let J=0;for(;;)try{const be=yield w._openDb();return yield v(be)}catch(be){if(J++>3)throw be;w.db&&(w.db.close(),w.db=void 0)}})()}initializeServiceWorkerMessaging(){var v=this;return(0,U.A)(function*(){return Wl()?v.initializeReceiver():v.initializeSender()})()}initializeReceiver(){var v=this;return(0,U.A)(function*(){v.receiver=Ia._getInstance(function Kl(){return Wl()?self:null}()),v.receiver._subscribe("keyChanged",function(){var w=(0,U.A)(function*(J,be){return{keyProcessed:(yield v._poll()).includes(be.key)}});return function(J,be){return w.apply(this,arguments)}}()),v.receiver._subscribe("ping",function(){var w=(0,U.A)(function*(J,be){return["keyChanged"]});return function(J,be){return w.apply(this,arguments)}}())})()}initializeSender(){var v=this;return(0,U.A)(function*(){var w,J;if(v.activeServiceWorker=yield function rs(){return Ys.apply(this,arguments)}(),!v.activeServiceWorker)return;v.sender=new Ru(v.activeServiceWorker);const be=yield v.sender._send("ping",{},800);be&&null!==(w=be[0])&&void 0!==w&&w.fulfilled&&null!==(J=be[0])&&void 0!==J&&J.value.includes("keyChanged")&&(v.serviceWorkerReceiverAvailable=!0)})()}notifyServiceWorker(v){var w=this;return(0,U.A)(function*(){if(w.sender&&w.activeServiceWorker&&function ds(){var I;return(null===(I=null==navigator?void 0:navigator.serviceWorker)||void 0===I?void 0:I.controller)||null}()===w.activeServiceWorker)try{yield w.sender._send("keyChanged",{key:v},w.serviceWorkerReceiverAvailable?800:50)}catch{}})()}_isAvailable(){return(0,U.A)(function*(){try{if(!indexedDB)return!1;const v=yield Td();return yield Da(v,qs,"1"),yield E(v,qs),!0}catch{}return!1})()}_withPendingWrite(v){var w=this;return(0,U.A)(function*(){w.pendingWrites++;try{yield v()}finally{w.pendingWrites--}})()}_set(v,w){var J=this;return(0,U.A)(function*(){return J._withPendingWrite((0,U.A)(function*(){return yield J._withRetries(be=>Da(be,v,w)),J.localCache[v]=w,J.notifyServiceWorker(v)}))})()}_get(v){var w=this;return(0,U.A)(function*(){const J=yield w._withRetries(be=>function Kh(I,f){return bd.apply(this,arguments)}(be,v));return w.localCache[v]=J,J})()}_remove(v){var w=this;return(0,U.A)(function*(){return w._withPendingWrite((0,U.A)(function*(){return yield w._withRetries(J=>E(J,v)),delete w.localCache[v],w.notifyServiceWorker(v)}))})()}_poll(){var v=this;return(0,U.A)(function*(){const w=yield v._withRetries(Ct=>{const Xt=ja(Ct,!1).getAll();return new Ca(Xt).toPromise()});if(!w)return[];if(0!==v.pendingWrites)return[];const J=[],be=new Set;if(0!==w.length)for(const{fbase_key:Ct,value:Xt}of w)be.add(Ct),JSON.stringify(v.localCache[Ct])!==JSON.stringify(Xt)&&(v.notifyListeners(Ct,Xt),J.push(Ct));for(const Ct of Object.keys(v.localCache))v.localCache[Ct]&&!be.has(Ct)&&(v.notifyListeners(Ct,null),J.push(Ct));return J})()}notifyListeners(v,w){this.localCache[v]=w;const J=this.listeners[v];if(J)for(const be of Array.from(J))be(w)}startPolling(){var v=this;this.stopPolling(),this.pollTimer=setInterval((0,U.A)(function*(){return v._poll()}),800)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}_addListener(v,w){0===Object.keys(this.listeners).length&&this.startPolling(),this.listeners[v]||(this.listeners[v]=new Set,this._get(v)),this.listeners[v].add(w)}_removeListener(v,w){this.listeners[v]&&(this.listeners[v].delete(w),0===this.listeners[v].size&&delete this.listeners[v]),0===Object.keys(this.listeners).length&&this.stopPolling()}}return I.type="LOCAL",I})();li("rcb"),new se(3e4,6e4);class Ro extends Ve{constructor(f){super("custom","custom"),this.params=f}_getIdTokenResponse(f){return Vn(f,this._buildIdpRequest())}_linkToIdToken(f,v){return Vn(f,this._buildIdpRequest(v))}_getReauthenticationResolver(f){return Vn(f,this._buildIdpRequest())}_buildIdpRequest(f){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 f&&(v.idToken=f),v}}function wd(I){return Fa(I.auth,new Ro(I),I.bypassAuthState)}function Ic(I){const{auth:f,user:v}=I;return Nt(v,f,"internal-error"),function So(I,f){return Yo.apply(this,arguments)}(v,new Ro(I),I.bypassAuthState)}function Ac(I){return Ts.apply(this,arguments)}function Ts(){return(Ts=(0,U.A)(function*(I){const{auth:f,user:v}=I;return Nt(v,f,"internal-error"),function Xn(I,f){return wr.apply(this,arguments)}(v,new Ro(I),I.bypassAuthState)})).apply(this,arguments)}class Cc{constructor(f,v,w,J,be=!1){this.auth=f,this.resolver=w,this.user=J,this.bypassAuthState=be,this.pendingPromise=null,this.eventManager=null,this.filter=Array.isArray(v)?v:[v]}execute(){var f=this;return new Promise(function(){var v=(0,U.A)(function*(w,J){f.pendingPromise={resolve:w,reject:J};try{f.eventManager=yield f.resolver._initialize(f.auth),yield f.onExecution(),f.eventManager.registerConsumer(f)}catch(be){f.reject(be)}});return function(w,J){return v.apply(this,arguments)}}())}onAuthEvent(f){var v=this;return(0,U.A)(function*(){const{urlResponse:w,sessionId:J,postBody:be,tenantId:Ct,error:Xt,type:Dn}=f;if(Xt)return void v.reject(Xt);const $n={auth:v.auth,requestUri:w,sessionId:J,tenantId:Ct||void 0,postBody:be||void 0,user:v.user,bypassAuthState:v.bypassAuthState};try{v.resolve(yield v.getIdpTask(Dn)($n))}catch(vr){v.reject(vr)}})()}onError(f){this.reject(f)}getIdpTask(f){switch(f){case"signInViaPopup":case"signInViaRedirect":return wd;case"linkViaPopup":case"linkViaRedirect":return Ac;case"reauthViaPopup":case"reauthViaRedirect":return Ic;default:Ue(this.auth,"internal-error")}}resolve(f){on(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.resolve(f),this.unregisterAndCleanUp()}reject(f){on(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.reject(f),this.unregisterAndCleanUp()}unregisterAndCleanUp(){this.eventManager&&this.eventManager.unregisterConsumer(this),this.pendingPromise=null,this.cleanUp()}}new se(2e3,1e4);const gr="pendingRedirect",vl=new Map;class Rd extends Cc{constructor(f,v,w=!1){super(f,["signInViaRedirect","linkViaRedirect","reauthViaRedirect","unknown"],v,void 0,w),this.eventId=null}execute(){var f=()=>super.execute,v=this;return(0,U.A)(function*(){let w=vl.get(v.auth._key());if(!w){try{const be=(yield function Dc(I,f){return Tc.apply(this,arguments)}(v.resolver,v.auth))?yield f().call(v):null;w=()=>Promise.resolve(be)}catch(J){w=()=>Promise.reject(J)}vl.set(v.auth._key(),w)}return v.bypassAuthState||vl.set(v.auth._key(),()=>Promise.resolve(null)),w()})()}onAuthEvent(f){var v=()=>super.onAuthEvent,w=this;return(0,U.A)(function*(){if("signInViaRedirect"===f.type)return v().call(w,f);if("unknown"!==f.type){if(f.eventId){const J=yield w.auth._redirectUserForId(f.eventId);if(J)return w.user=J,v().call(w,f);w.resolve(null)}}else w.resolve(null)})()}onExecution(){return(0,U.A)(function*(){})()}cleanUp(){}}function Tc(){return(Tc=(0,U.A)(function*(I,f){const v=function yl(I){return Ar(gr,I.config.apiKey,I.name)}(f),w=function qh(I){return hn(I._redirectPersistence)}(I);if(!(yield w._isAvailable()))return!1;const J="true"===(yield w._get(v));return yield w._remove(v),J})).apply(this,arguments)}function _l(I,f){vl.set(I._key(),f)}function Nu(I,f){return Pd.apply(this,arguments)}function Pd(){return(Pd=(0,U.A)(function*(I,f,v=!1){if((0,ue.xZ)(I.app))return Promise.reject(at(I));const w=On(I),J=function fs(I,f){return f?hn(f):(Nt(I._popupRedirectResolver,I,"argument-error"),I._popupRedirectResolver)}(w,f),Ct=yield new Rd(w,J,v).execute();return Ct&&!v&&(delete Ct.user._redirectEventId,yield w._persistUserIfCurrent(Ct.user),yield w._setRedirectUser(null,f)),Ct})).apply(this,arguments)}class ia{constructor(f){this.auth=f,this.cachedEventUids=new Set,this.consumers=new Set,this.queuedRedirectEvent=null,this.hasHandledPotentialRedirect=!1,this.lastProcessedEventTime=Date.now()}registerConsumer(f){this.consumers.add(f),this.queuedRedirectEvent&&this.isEventForConsumer(this.queuedRedirectEvent,f)&&(this.sendToConsumer(this.queuedRedirectEvent,f),this.saveEventToCache(this.queuedRedirectEvent),this.queuedRedirectEvent=null)}unregisterConsumer(f){this.consumers.delete(f)}onEvent(f){if(this.hasEventBeenHandled(f))return!1;let v=!1;return this.consumers.forEach(w=>{this.isEventForConsumer(f,w)&&(v=!0,this.sendToConsumer(f,w),this.saveEventToCache(f))}),this.hasHandledPotentialRedirect||!function oa(I){switch(I.type){case"signInViaRedirect":case"linkViaRedirect":case"reauthViaRedirect":return!0;case"unknown":return bs(I);default:return!1}}(f)||(this.hasHandledPotentialRedirect=!0,v||(this.queuedRedirectEvent=f,v=!0)),v}sendToConsumer(f,v){var w;if(f.error&&!bs(f)){const J=(null===(w=f.error.code)||void 0===w?void 0:w.split("auth/")[1])||"internal-error";v.onError(Fe(this.auth,J))}else v.onAuthEvent(f)}isEventForConsumer(f,v){const w=null===v.eventId||!!f.eventId&&f.eventId===v.eventId;return v.filter.includes(f.type)&&w}hasEventBeenHandled(f){return Date.now()-this.lastProcessedEventTime>=6e5&&this.cachedEventUids.clear(),this.cachedEventUids.has(wc(f))}saveEventToCache(f){this.cachedEventUids.add(wc(f)),this.lastProcessedEventTime=Date.now()}}function wc(I){return[I.type,I.eventId,I.sessionId,I.tenantId].filter(f=>f).join("-")}function bs({type:I,error:f}){return"unknown"===I&&"auth/no-auth-event"===(null==f?void 0:f.code)}function Sc(){return(Sc=(0,U.A)(function*(I,f={}){return Kt(I,"GET","/v1/projects",f)})).apply(this,arguments)}const xd=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,To=/^https?/;function ku(){return ku=(0,U.A)(function*(I){if(I.config.emulator)return;const{authorizedDomains:f}=yield function og(I){return Sc.apply(this,arguments)}(I);for(const v of f)try{if(Nd(v))return}catch{}Ue(I,"unauthorized-domain")}),ku.apply(this,arguments)}function Nd(I){const f=dt(),{protocol:v,hostname:w}=new URL(f);if(I.startsWith("chrome-extension://")){const Ct=new URL(I);return""===Ct.hostname&&""===w?"chrome-extension:"===v&&I.replace("chrome-extension://","")===f.replace("chrome-extension://",""):"chrome-extension:"===v&&Ct.hostname===w}if(!To.test(v))return!1;if(xd.test(I))return w===I;const J=I.replace(/\./g,"\\.");return new RegExp("^(.+\\."+J+"|"+J+")$","i").test(w)}const Rc=new se(3e4,6e4);function Mc(){const I=di().___jsl;if(null!=I&&I.H)for(const f of Object.keys(I.H))if(I.H[f].r=I.H[f].r||[],I.H[f].L=I.H[f].L||[],I.H[f].r=[...I.H[f].L],I.CP)for(let v=0;v{var w,J,be;function Ct(){Mc(),gapi.load("gapi.iframes",{callback:()=>{f(gapi.iframes.getContext())},ontimeout:()=>{Mc(),v(Fe(I,"network-request-failed"))},timeout:Rc.get()})}if(null!==(J=null===(w=di().gapi)||void 0===w?void 0:w.iframes)&&void 0!==J&&J.Iframe)f(gapi.iframes.getContext());else{if(null===(be=di().gapi)||void 0===be||!be.load){const Xt=li("iframefcb");return di()[Xt]=()=>{gapi.load?Ct():v(Fe(I,"network-request-failed"))},Tr(`${function ai(){return Or.gapiScript}()}?onload=${Xt}`).catch(Dn=>v(Dn))}Ct()}}).catch(f=>{throw Sa=null,f})}(I),Sa}(I),v=di().gapi;return Nt(v,I,"internal-error"),f.open({where:document.body,url:mo(I),messageHandlersFilter:v.iframes.CROSS_ORIGIN_IFRAMES_FILTER,attributes:Lu,dontclear:!0},w=>new Promise(function(){var J=(0,U.A)(function*(be,Ct){yield w.restyle({setHideOnLeave:!1});const Xt=Fe(I,"network-request-failed"),Dn=di().setTimeout(()=>{Ct(Xt)},Zh.get());function $n(){di().clearTimeout(Dn),be(w)}w.ping($n).then($n,()=>{Ct(Xt)})});return function(be,Ct){return J.apply(this,arguments)}}()))}),Fi.apply(this,arguments)}const ef={location:"yes",resizable:"yes",statusbar:"yes",toolbar:"no"};class Bu{constructor(f){this.window=f,this.associatedEvent=null}close(){if(this.window)try{this.window.close()}catch{}}}const ag="__/auth/handler",$u="emulator/auth/handler",xc=encodeURIComponent("fac");function sa(I,f,v,w,J,be){return aa.apply(this,arguments)}function aa(){return(aa=(0,U.A)(function*(I,f,v,w,J,be){Nt(I.config.authDomain,I,"auth-domain-config-required"),Nt(I.config.apiKey,I,"invalid-api-key");const Ct={apiKey:I.config.apiKey,appName:I.name,authType:v,redirectUrl:w,v:ue.MF,eventId:J};if(f instanceof fo){f.setDefaultLanguage(I.languageCode),Ct.providerId=f.providerId||"",(0,oe.Im)(f.getCustomParameters())||(Ct.customParameters=JSON.stringify(f.getCustomParameters()));for(const[vr,hi]of Object.entries(be||{}))Ct[vr]=hi}if(f instanceof ka){const vr=f.getScopes().filter(hi=>""!==hi);vr.length>0&&(Ct.scopes=vr.join(","))}I.tenantId&&(Ct.tid=I.tenantId);const Xt=Ct;for(const vr of Object.keys(Xt))void 0===Xt[vr]&&delete Xt[vr];const Dn=yield I._getAppCheckToken(),$n=Dn?`#${xc}=${encodeURIComponent(Dn)}`:"";return`${function Oc({config:I}){return I.emulator?ve(I,$u):`https://${I.authDomain}/${ag}`}(I)}?${(0,oe.Am)(Xt).slice(1)}${$n}`})).apply(this,arguments)}const El="webStorageSupport",Il=class rf{constructor(){this.eventManagers={},this.iframes={},this.originValidationPromises={},this._redirectPersistence=Wo,this._completeRedirectFn=Nu,this._overrideRedirectResult=_l}_openPopup(f,v,w,J){var be=this;return(0,U.A)(function*(){var Ct;on(null===(Ct=be.eventManagers[f._key()])||void 0===Ct?void 0:Ct.manager,"_initialize() not called before _openPopup()");const Xt=yield sa(f,v,w,dt(),J);return function Uu(I,f,v,w=500,J=600){const be=Math.max((window.screen.availHeight-J)/2,0).toString(),Ct=Math.max((window.screen.availWidth-w)/2,0).toString();let Xt="";const Dn=Object.assign(Object.assign({},ef),{width:w.toString(),height:J.toString(),top:be,left:Ct}),$n=(0,oe.ZQ)().toLowerCase();v&&(Xt=Ri($n)?"_blank":v),Zr($n)&&(f=f||"http://localhost",Dn.scrollbars="yes");const vr=Object.entries(Dn).reduce((Vo,[to,ua])=>`${Vo}${to}=${ua},`,"");if(function M(I=(0,oe.ZQ)()){var f;return ee(I)&&!(null===(f=window.navigator)||void 0===f||!f.standalone)}($n)&&"_self"!==Xt)return function Vs(I,f){const v=document.createElement("a");v.href=I,v.target=f;const w=document.createEvent("MouseEvent");w.initMouseEvent("click",!0,!0,window,1,0,0,0,0,!1,!1,!1,!1,1,null),v.dispatchEvent(w)}(f||"",Xt),new Bu(null);const hi=window.open(f||"",Xt,vr);Nt(hi,I,"popup-blocked");try{hi.focus()}catch{}return new Bu(hi)}(f,Xt,Xi())})()}_openRedirect(f,v,w,J){var be=this;return(0,U.A)(function*(){return yield be._originValidation(f),function Do(I){di().location.href=I}(yield sa(f,v,w,dt(),J)),new Promise(()=>{})})()}_initialize(f){const v=f._key();if(this.eventManagers[v]){const{manager:J,promise:be}=this.eventManagers[v];return J?Promise.resolve(J):(on(be,"If manager is not set, promise should be"),be)}const w=this.initAndGetManager(f);return this.eventManagers[v]={promise:w},w.catch(()=>{delete this.eventManagers[v]}),w}initAndGetManager(f){var v=this;return(0,U.A)(function*(){const w=yield function Ra(I){return Fi.apply(this,arguments)}(f),J=new ia(f);return w.register("authEvent",be=>(Nt(null==be?void 0:be.authEvent,f,"invalid-auth-event"),{status:J.onEvent(be.authEvent)?"ACK":"ERROR"}),gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER),v.eventManagers[f._key()]={manager:J},v.iframes[f._key()]=w,J})()}_isIframeWebStorageSupported(f,v){this.iframes[f._key()].send(El,{type:El},J=>{var be;const Ct=null===(be=null==J?void 0:J[0])||void 0===be?void 0:be[El];void 0!==Ct&&v(!!Ct),Ue(f,"internal-error")},gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER)}_originValidation(f){const v=f._key();return this.originValidationPromises[v]||(this.originValidationPromises[v]=function Od(I){return ku.apply(this,arguments)}(f)),this.originValidationPromises[v]}get _shouldInitProactively(){return ne()||fr()||ee()}};var Vd="@firebase/auth";class Ma{constructor(f){this.auth=f,this.internalListeners=new Map}getUid(){var f;return this.assertAuthConfigured(),(null===(f=this.auth.currentUser)||void 0===f?void 0:f.uid)||null}getToken(f){var v=this;return(0,U.A)(function*(){return v.assertAuthConfigured(),yield v.auth._initializationPromise,v.auth.currentUser?{accessToken:yield v.auth.currentUser.getIdToken(f)}:null})()}addAuthTokenListener(f){if(this.assertAuthConfigured(),this.internalListeners.has(f))return;const v=this.auth.onIdTokenChanged(w=>{f((null==w?void 0:w.stsTokenManager.accessToken)||null)});this.internalListeners.set(f,v),this.updateProactiveRefresh()}removeAuthTokenListener(f){this.assertAuthConfigured();const v=this.internalListeners.get(f);v&&(this.internalListeners.delete(f),v(),this.updateProactiveRefresh())}assertAuthConfigured(){Nt(this.auth._initializationPromise,"dependent-sdk-initialized-before-auth")}updateProactiveRefresh(){this.internalListeners.size>0?this.auth._startProactiveRefresh():this.auth._stopProactiveRefresh()}}const eu=(0,oe.XA)("authIdTokenMaxAge")||300;let af=null;const lf=I=>function(){var f=(0,U.A)(function*(v){const w=v&&(yield v.getIdTokenResult()),J=w&&((new Date).getTime()-Date.parse(w.issuedAtTime))/1e3;if(J&&J>eu)return;const be=null==w?void 0:w.token;af!==be&&(af=be,yield fetch(I,{method:be?"POST":"DELETE",headers:be?{Authorization:`Bearer ${be}`}:{}}))});return function(v){return f.apply(this,arguments)}}();function Bd(I=(0,ue.Sx)()){const f=(0,ue.j6)(I,"auth");if(f.isInitialized())return f.getImmediate();const v=function No(I,f){const v=(0,ue.j6)(I,"auth");if(v.isInitialized()){const J=v.getImmediate(),be=v.getOptions();if((0,oe.bD)(be,null!=f?f:{}))return J;Ue(J,"already-initialized")}return v.initialize({options:f})}(I,{popupRedirectResolver:Il,persistence:[L,Ea,Wo]}),w=(0,oe.XA)("authTokenSyncURL");if(w&&"boolean"==typeof isSecureContext&&isSecureContext){const be=new URL(w,location.origin);if(location.origin===be.origin){const Ct=lf(be.toString());(function vi(I,f,v){(0,oe.Ku)(I).beforeAuthStateChanged(f,v)})(v,Ct,()=>Ct(v.currentUser)),Hi(v,Xt=>Ct(Xt))}}const J=(0,oe.Tj)("auth");return J&&function bt(I,f,v){const w=On(I);Nt(w._canInitEmulator,w,"emulator-config-failed"),Nt(/^https?:\/\//.test(f),w,"invalid-emulator-scheme");const J=!(null==v||!v.disableWarnings),be=he(f),{host:Ct,port:Xt}=function le(I){const f=he(I),v=/(\/\/)?([^?#/]+)/.exec(I.substr(f.length));if(!v)return{host:"",port:null};const w=v[2].split("@").pop()||"",J=/^(\[[^\]]+\])(:|$)/.exec(w);if(J){const be=J[1];return{host:be,port:W(w.substr(be.length+1))}}{const[be,Ct]=w.split(":");return{host:be,port:W(Ct)}}}(f);w.config.emulator={url:`${be}//${Ct}${null===Xt?"":`:${Xt}`}/`},w.settings.appVerificationDisabledForTesting=!0,w.emulatorConfig=Object.freeze({host:Ct,port:Xt,protocol:be.replace(":",""),options:Object.freeze({disableWarnings:J})}),J||function $e(){function I(){const f=document.createElement("p"),v=f.style;f.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",f.classList.add("firebase-emulator-warning"),document.body.appendChild(f)}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",I):I())}()}(v,`http://${J}`),v}(function zr(I){Or=I})({loadJS:I=>new Promise((f,v)=>{const w=document.createElement("script");w.setAttribute("src",I),w.onload=f,w.onerror=J=>{const be=Fe("internal-error");be.customData=J,v(be)},w.type="text/javascript",w.charset="UTF-8",function Lc(){var I,f;return null!==(f=null===(I=document.getElementsByTagName("head"))||void 0===I?void 0:I[0])&&void 0!==f?f:document}().appendChild(w)}),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 Dl(I){(0,ue.om)(new Se.uA("auth",(f,{options:v})=>{const w=f.getProvider("app").getImmediate(),J=f.getProvider("heartbeat"),be=f.getProvider("app-check-internal"),{apiKey:Ct,authDomain:Xt}=w.options;Nt(Ct&&!Ct.includes(":"),"invalid-api-key",{appName:w.name});const Dn={apiKey:Ct,authDomain:Xt,clientPlatform:I,apiHost:"identitytoolkit.googleapis.com",tokenApiHost:"securetoken.googleapis.com",apiScheme:"https",sdkClientVersion:Ge(I)},$n=new xr(w,J,be,Dn);return function oi(I,f){const v=(null==f?void 0:f.persistence)||[],w=(Array.isArray(v)?v:[v]).map(hn);null!=f&&f.errorMap&&I._updateErrorMap(f.errorMap),I._initializeWithPersistence(w,null==f?void 0:f.popupRedirectResolver)}($n,v),$n},"PUBLIC").setInstantiationMode("EXPLICIT").setInstanceCreatedCallback((f,v,w)=>{f.getProvider("auth-internal").initialize()})),(0,ue.om)(new Se.uA("auth-internal",f=>{const v=On(f.getProvider("auth").getImmediate());return new Ma(v)},"PRIVATE").setInstantiationMode("EXPLICIT")),(0,ue.KO)(Vd,"1.7.4",function Fc(I){switch(I){case"Node":return"node";case"ReactNative":return"rn";case"Worker":return"webworker";case"Cordova":return"cordova";case"WebExtension":return"web-extension";default:return}}(I)),(0,ue.KO)(Vd,"1.7.4","esm2017")}("Browser");var ws=S(1985);function Hu(I){return new ws.c(function(f){return{unsubscribe:Hi(I,f.next.bind(f),f.error.bind(f),f.complete.bind(f))}})}class Qa{constructor(f){return f}}class Tl{constructor(){return(0,h.CA)("auth")}}const tu=new c.nKC("angularfire2.auth-instances");function uf(I){return(f,v)=>{const w=f.runOutsideAngular(()=>I(v));return new Qa(w)}}const cf={provide:Tl,deps:[[new c.Xx1,tu]]},lg={provide:Qa,useFactory:function $d(I,f){const v=(0,h.lR)("auth",I,f);return v&&new Qa(v)},deps:[[new c.Xx1,tu],Z.XU]};function bl(I,...f){return(0,Oe.KO)("angularfire",h.xv.full,"auth"),(0,c.EmA)([lg,cf,{provide:tu,useFactory:uf(I),multi:!0,deps:[c.SKi,c.zZn,h.u0,Z.gL,[new c.Xx1,h.Jv],...f]}])}const Uc=(0,h.S3)(Hu,!0),Gu=(0,h.S3)(Os,!0),ug=(0,h.S3)(Bd,!0),qu=(0,h.S3)(As,!0)},4262:(Tn,gt,S)=>{"use strict";S.d(gt,{_7:()=>Eh,rJ:()=>_0,kd:()=>y0,H9:()=>lm,x7:()=>cm,GG:()=>o_,aU:()=>dm,hV:()=>e_,BN:()=>P0,mZ:()=>x0});var Ze,qe,h=S(5407),c=S(4438),Z=S(7440),Oe=S(8737),U=S(2214),ue=S(467),oe=S(7852),Xe=S(1362),Je=S(8041),Se=S(1076),Ce=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Qe={};(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(xt,st,It){It||(It=0);var kt=Array(16);if("string"==typeof st)for(var Vt=0;16>Vt;++Vt)kt[Vt]=st.charCodeAt(It++)|st.charCodeAt(It++)<<8|st.charCodeAt(It++)<<16|st.charCodeAt(It++)<<24;else for(Vt=0;16>Vt;++Vt)kt[Vt]=st[It++]|st[It++]<<8|st[It++]<<16|st[It++]<<24;var qt=xt.g[3],vt=(st=xt.g[0])+(qt^(It=xt.g[1])&((Vt=xt.g[2])^qt))+kt[0]+3614090360&4294967295;vt=(It=(Vt=(qt=(st=(It=(Vt=(qt=(st=(It=(Vt=(qt=(st=(It=(Vt=(qt=(st=(It=(Vt=(qt=(st=(It=(Vt=(qt=(st=(It=(Vt=(qt=(st=(It=(Vt=(qt=(st=(It=(Vt=(qt=(st=(It=(Vt=(qt=(st=(It=(Vt=(qt=(st=(It=(Vt=(qt=(st=(It=(Vt=(qt=(st=(It=(Vt=(qt=(st=(It=(Vt=(qt=(st=It+(vt<<7&4294967295|vt>>>25))+((vt=qt+(Vt^st&(It^Vt))+kt[1]+3905402710&4294967295)<<12&4294967295|vt>>>20))+((vt=Vt+(It^qt&(st^It))+kt[2]+606105819&4294967295)<<17&4294967295|vt>>>15))+((vt=It+(st^Vt&(qt^st))+kt[3]+3250441966&4294967295)<<22&4294967295|vt>>>10))+((vt=st+(qt^It&(Vt^qt))+kt[4]+4118548399&4294967295)<<7&4294967295|vt>>>25))+((vt=qt+(Vt^st&(It^Vt))+kt[5]+1200080426&4294967295)<<12&4294967295|vt>>>20))+((vt=Vt+(It^qt&(st^It))+kt[6]+2821735955&4294967295)<<17&4294967295|vt>>>15))+((vt=It+(st^Vt&(qt^st))+kt[7]+4249261313&4294967295)<<22&4294967295|vt>>>10))+((vt=st+(qt^It&(Vt^qt))+kt[8]+1770035416&4294967295)<<7&4294967295|vt>>>25))+((vt=qt+(Vt^st&(It^Vt))+kt[9]+2336552879&4294967295)<<12&4294967295|vt>>>20))+((vt=Vt+(It^qt&(st^It))+kt[10]+4294925233&4294967295)<<17&4294967295|vt>>>15))+((vt=It+(st^Vt&(qt^st))+kt[11]+2304563134&4294967295)<<22&4294967295|vt>>>10))+((vt=st+(qt^It&(Vt^qt))+kt[12]+1804603682&4294967295)<<7&4294967295|vt>>>25))+((vt=qt+(Vt^st&(It^Vt))+kt[13]+4254626195&4294967295)<<12&4294967295|vt>>>20))+((vt=Vt+(It^qt&(st^It))+kt[14]+2792965006&4294967295)<<17&4294967295|vt>>>15))+((vt=It+(st^Vt&(qt^st))+kt[15]+1236535329&4294967295)<<22&4294967295|vt>>>10))+((vt=st+(Vt^qt&(It^Vt))+kt[1]+4129170786&4294967295)<<5&4294967295|vt>>>27))+((vt=qt+(It^Vt&(st^It))+kt[6]+3225465664&4294967295)<<9&4294967295|vt>>>23))+((vt=Vt+(st^It&(qt^st))+kt[11]+643717713&4294967295)<<14&4294967295|vt>>>18))+((vt=It+(qt^st&(Vt^qt))+kt[0]+3921069994&4294967295)<<20&4294967295|vt>>>12))+((vt=st+(Vt^qt&(It^Vt))+kt[5]+3593408605&4294967295)<<5&4294967295|vt>>>27))+((vt=qt+(It^Vt&(st^It))+kt[10]+38016083&4294967295)<<9&4294967295|vt>>>23))+((vt=Vt+(st^It&(qt^st))+kt[15]+3634488961&4294967295)<<14&4294967295|vt>>>18))+((vt=It+(qt^st&(Vt^qt))+kt[4]+3889429448&4294967295)<<20&4294967295|vt>>>12))+((vt=st+(Vt^qt&(It^Vt))+kt[9]+568446438&4294967295)<<5&4294967295|vt>>>27))+((vt=qt+(It^Vt&(st^It))+kt[14]+3275163606&4294967295)<<9&4294967295|vt>>>23))+((vt=Vt+(st^It&(qt^st))+kt[3]+4107603335&4294967295)<<14&4294967295|vt>>>18))+((vt=It+(qt^st&(Vt^qt))+kt[8]+1163531501&4294967295)<<20&4294967295|vt>>>12))+((vt=st+(Vt^qt&(It^Vt))+kt[13]+2850285829&4294967295)<<5&4294967295|vt>>>27))+((vt=qt+(It^Vt&(st^It))+kt[2]+4243563512&4294967295)<<9&4294967295|vt>>>23))+((vt=Vt+(st^It&(qt^st))+kt[7]+1735328473&4294967295)<<14&4294967295|vt>>>18))+((vt=It+(qt^st&(Vt^qt))+kt[12]+2368359562&4294967295)<<20&4294967295|vt>>>12))+((vt=st+(It^Vt^qt)+kt[5]+4294588738&4294967295)<<4&4294967295|vt>>>28))+((vt=qt+(st^It^Vt)+kt[8]+2272392833&4294967295)<<11&4294967295|vt>>>21))+((vt=Vt+(qt^st^It)+kt[11]+1839030562&4294967295)<<16&4294967295|vt>>>16))+((vt=It+(Vt^qt^st)+kt[14]+4259657740&4294967295)<<23&4294967295|vt>>>9))+((vt=st+(It^Vt^qt)+kt[1]+2763975236&4294967295)<<4&4294967295|vt>>>28))+((vt=qt+(st^It^Vt)+kt[4]+1272893353&4294967295)<<11&4294967295|vt>>>21))+((vt=Vt+(qt^st^It)+kt[7]+4139469664&4294967295)<<16&4294967295|vt>>>16))+((vt=It+(Vt^qt^st)+kt[10]+3200236656&4294967295)<<23&4294967295|vt>>>9))+((vt=st+(It^Vt^qt)+kt[13]+681279174&4294967295)<<4&4294967295|vt>>>28))+((vt=qt+(st^It^Vt)+kt[0]+3936430074&4294967295)<<11&4294967295|vt>>>21))+((vt=Vt+(qt^st^It)+kt[3]+3572445317&4294967295)<<16&4294967295|vt>>>16))+((vt=It+(Vt^qt^st)+kt[6]+76029189&4294967295)<<23&4294967295|vt>>>9))+((vt=st+(It^Vt^qt)+kt[9]+3654602809&4294967295)<<4&4294967295|vt>>>28))+((vt=qt+(st^It^Vt)+kt[12]+3873151461&4294967295)<<11&4294967295|vt>>>21))+((vt=Vt+(qt^st^It)+kt[15]+530742520&4294967295)<<16&4294967295|vt>>>16))+((vt=It+(Vt^qt^st)+kt[2]+3299628645&4294967295)<<23&4294967295|vt>>>9))+((vt=st+(Vt^(It|~qt))+kt[0]+4096336452&4294967295)<<6&4294967295|vt>>>26))+((vt=qt+(It^(st|~Vt))+kt[7]+1126891415&4294967295)<<10&4294967295|vt>>>22))+((vt=Vt+(st^(qt|~It))+kt[14]+2878612391&4294967295)<<15&4294967295|vt>>>17))+((vt=It+(qt^(Vt|~st))+kt[5]+4237533241&4294967295)<<21&4294967295|vt>>>11))+((vt=st+(Vt^(It|~qt))+kt[12]+1700485571&4294967295)<<6&4294967295|vt>>>26))+((vt=qt+(It^(st|~Vt))+kt[3]+2399980690&4294967295)<<10&4294967295|vt>>>22))+((vt=Vt+(st^(qt|~It))+kt[10]+4293915773&4294967295)<<15&4294967295|vt>>>17))+((vt=It+(qt^(Vt|~st))+kt[1]+2240044497&4294967295)<<21&4294967295|vt>>>11))+((vt=st+(Vt^(It|~qt))+kt[8]+1873313359&4294967295)<<6&4294967295|vt>>>26))+((vt=qt+(It^(st|~Vt))+kt[15]+4264355552&4294967295)<<10&4294967295|vt>>>22))+((vt=Vt+(st^(qt|~It))+kt[6]+2734768916&4294967295)<<15&4294967295|vt>>>17))+((vt=It+(qt^(Vt|~st))+kt[13]+1309151649&4294967295)<<21&4294967295|vt>>>11))+((qt=(st=It+((vt=st+(Vt^(It|~qt))+kt[4]+4149444226&4294967295)<<6&4294967295|vt>>>26))+((vt=qt+(It^(st|~Vt))+kt[11]+3174756917&4294967295)<<10&4294967295|vt>>>22))^((Vt=qt+((vt=Vt+(st^(qt|~It))+kt[2]+718787259&4294967295)<<15&4294967295|vt>>>17))|~st))+kt[9]+3951481745&4294967295,xt.g[0]=xt.g[0]+st&4294967295,xt.g[1]=xt.g[1]+(Vt+(vt<<21&4294967295|vt>>>11))&4294967295,xt.g[2]=xt.g[2]+Vt&4294967295,xt.g[3]=xt.g[3]+qt&4294967295}function _(xt,st){this.h=st;for(var It=[],kt=!0,Vt=xt.length-1;0<=Vt;Vt--){var qt=0|xt[Vt];kt&&qt==st||(It[Vt]=qt,kt=!1)}this.g=It}(function n(xt,st){function It(){}It.prototype=st.prototype,xt.D=st.prototype,xt.prototype=new It,xt.prototype.constructor=xt,xt.C=function(kt,Vt,qt){for(var vt=Array(arguments.length-2),Nl=2;Nlthis.h?this.blockSize:2*this.blockSize)-this.h);xt[0]=128;for(var st=1;stst;++st)for(var kt=0;32>kt;kt+=8)xt[It++]=this.g[st]>>>kt&255;return xt};var R={};function k(xt){return-128<=xt&&128>xt?function p(xt,st){var It=R;return Object.prototype.hasOwnProperty.call(It,xt)?It[xt]:It[xt]=st(xt)}(xt,function(st){return new _([0|st],0>st?-1:0)}):new _([0|xt],0>xt?-1:0)}function q(xt){if(isNaN(xt)||!isFinite(xt))return je;if(0>xt)return Sn(q(-xt));for(var st=[],It=1,kt=0;xt>=It;kt++)st[kt]=xt/It|0,It*=4294967296;return new _(st,0)}var je=k(0),pt=k(1),Ht=k(16777216);function An(xt){if(0!=xt.h)return!1;for(var st=0;st>>16,xt[st]&=65535,st++}function _r(xt,st){this.g=xt,this.h=st}function Yr(xt,st){if(An(st))throw Error("division by zero");if(An(xt))return new _r(je,je);if(kn(xt))return st=Yr(Sn(xt),st),new _r(Sn(st.g),Sn(st.h));if(kn(st))return st=Yr(xt,Sn(st)),new _r(Sn(st.g),st.h);if(30=kt.l(xt);)It=Li(It),kt=Li(kt);var Vt=fi(It,1),qt=fi(kt,1);for(kt=fi(kt,2),It=fi(It,2);!An(kt);){var vt=qt.add(kt);0>=vt.l(xt)&&(Vt=Vt.add(It),qt=vt),kt=fi(kt,1),It=fi(It,1)}return st=hr(xt,Vt.j(st)),new _r(Vt,st)}for(Vt=je;0<=xt.l(st);){for(It=Math.max(1,Math.floor(xt.m()/st.m())),kt=48>=(kt=Math.ceil(Math.log(It)/Math.LN2))?1:Math.pow(2,kt-48),vt=(qt=q(It)).j(st);kn(vt)||0>>31;return new _(It,xt.h)}function fi(xt,st){var It=st>>5;st%=32;for(var kt=xt.g.length-It,Vt=[],qt=0;qt>>st|xt.i(qt+It+1)<<32-st:xt.i(qt+It);return new _(Vt,xt.h)}(l=_.prototype).m=function(){if(kn(this))return-Sn(this).m();for(var xt=0,st=1,It=0;It(xt=xt||10)||36>>0).toString(xt);if(An(It=Vt))return qt+kt;for(;6>qt.length;)qt="0"+qt;kt=qt+kt}},l.i=function(xt){return 0>xt?0:xt>>16)+(this.i(Vt)>>>16)+(xt.i(Vt)>>>16);kt=vt>>>16,It[Vt]=(vt&=65535)<<16|(qt&=65535)}return new _(It,-2147483648&It[It.length-1]?-1:0)},l.j=function(xt){if(An(this)||An(xt))return je;if(kn(this))return kn(xt)?Sn(this).j(Sn(xt)):Sn(Sn(this).j(xt));if(kn(xt))return Sn(this.j(Sn(xt)));if(0>this.l(Ht)&&0>xt.l(Ht))return q(this.m()*xt.m());for(var st=this.g.length+xt.g.length,It=[],kt=0;kt<2*st;kt++)It[kt]=0;for(kt=0;kt>>16,vt=65535&this.i(kt),Nl=xt.i(Vt)>>>16,cc=65535&xt.i(Vt);It[2*kt+2*Vt]+=vt*cc,Mr(It,2*kt+2*Vt),It[2*kt+2*Vt+1]+=qt*cc,Mr(It,2*kt+2*Vt+1),It[2*kt+2*Vt+1]+=vt*Nl,Mr(It,2*kt+2*Vt+1),It[2*kt+2*Vt+2]+=qt*Nl,Mr(It,2*kt+2*Vt+2)}for(kt=0;kt(st=st||10)||36qt?(qt=q(Math.pow(st,qt)),kt=kt.j(qt).add(q(vt))):kt=(kt=kt.j(It)).add(q(vt))}return kt},Ze=Qe.Integer=_}).apply(typeof Ce<"u"?Ce:typeof self<"u"?self:typeof window<"u"?window:{});var St,_t,Tt,yt,mt,Me,Ye,ge,Ue,ht=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Dt={};(function(){var l,n="function"==typeof Object.defineProperties?Object.defineProperty:function(m,V,Q){return m==Array.prototype||m==Object.prototype||(m[V]=Q.value),m},s=function i(m){m=["object"==typeof globalThis&&globalThis,m,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof ht&&ht];for(var V=0;V{throw m},0)}function vt(){var m=pm;let V=null;return m.g&&(V=m.g,m.g=m.g.next,m.g||(m.h=null),V.next=null),V}var cc=new class hr{constructor(V,Q){this.i=V,this.j=Q,this.h=0,this.g=null}get(){let V;return 0new O0,m=>m.reset());class O0{constructor(){this.next=this.g=this.h=null}set(V,Q){this.h=V,this.g=Q,this.next=null}reset(){this.next=this.g=this.h=null}}let ld,Ah=!1,pm=new class Nl{constructor(){this.h=this.g=null}add(V,Q){const Pe=cc.get();Pe.set(V,Q),this.h?this.h.next=Pe:this.g=Pe,this.h=Pe}},gm=()=>{const m=R.Promise.resolve(void 0);ld=()=>{m.then(N0)}};var N0=()=>{for(var m;m=vt();){try{m.h.call(m.g)}catch(Q){qt(Q)}var V=cc;V.j(m),100>V.h&&(V.h++,m.next=V.g,V.g=m)}Ah=!1};function mu(){this.s=this.s,this.C=this.C}function _o(m,V){this.type=m,this.g=this.target=V,this.defaultPrevented=!1}mu.prototype.s=!1,mu.prototype.ma=function(){this.s||(this.s=!0,this.N())},mu.prototype.N=function(){if(this.C)for(;this.C.length;)this.C.shift()()},_o.prototype.h=function(){this.defaultPrevented=!0};var mm=function(){if(!R.addEventListener||!Object.defineProperty)return!1;var m=!1,V=Object.defineProperty({},"passive",{get:function(){m=!0}});try{const Q=()=>{};R.addEventListener("test",Q,V),R.removeEventListener("test",Q,V)}catch{}return m}();function Ch(m,V){if(_o.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 Q=this.type=m.type,Pe=m.changedTouches&&m.changedTouches.length?m.changedTouches[0]:null;if(this.target=m.target||m.srcElement,this.g=V,V=m.relatedTarget){if(Li){e:{try{Yr(V.nodeName);var $t=!0;break e}catch{}$t=!1}$t||(V=null)}}else"mouseover"==Q?V=m.fromElement:"mouseout"==Q&&(V=m.toElement);this.relatedTarget=V,Pe?(this.clientX=void 0!==Pe.clientX?Pe.clientX:Pe.pageX,this.clientY=void 0!==Pe.clientY?Pe.clientY:Pe.pageY,this.screenX=Pe.screenX||0,this.screenY=Pe.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:l_[m.pointerType]||"",this.state=m.state,this.i=m,m.defaultPrevented&&Ch.aa.h.call(this)}}An(Ch,_o);var l_={2:"touch",3:"pen",4:"mouse"};Ch.prototype.h=function(){Ch.aa.h.call(this);var m=this.i;m.preventDefault?m.preventDefault():m.returnValue=!1};var Dh="closure_listenable_"+(1e6*Math.random()|0),u_=0;function nA(m,V,Q,Pe,$t){this.listener=m,this.proxy=null,this.src=V,this.type=Q,this.capture=!!Pe,this.ha=$t,this.key=++u_,this.da=this.fa=!1}function lp(m){m.da=!0,m.listener=null,m.proxy=null,m.src=null,m.ha=null}function dc(m){this.src=m,this.g={},this.h=0}function up(m,V){var Q=V.type;if(Q in m.g){var nn,Pe=m.g[Q],$t=Array.prototype.indexOf.call(Pe,V,void 0);(nn=0<=$t)&&Array.prototype.splice.call(Pe,$t,1),nn&&(lp(V),0==m.g[Q].length&&(delete m.g[Q],m.h--))}}function vm(m,V,Q,Pe){for(var $t=0;$t>>0);function Cm(m){return"function"==typeof m?m:(m[Th]||(m[Th]=function(V){return m.handleEvent(V)}),m[Th])}function os(){mu.call(this),this.i=new dc(this),this.M=this,this.F=null}function Ko(m,V){var Q,Pe=m.F;if(Pe)for(Q=[];Pe;Pe=Pe.F)Q.push(Pe);if(m=m.M,Pe=V.type||V,"string"==typeof V)V=new _o(V,m);else if(V instanceof _o)V.target=V.target||m;else{var $t=V;kt(V=new _o(Pe,m),$t)}if($t=!0,Q)for(var nn=Q.length-1;0<=nn;nn--){var zn=V.g=Q[nn];$t=bh(zn,Pe,!0,V)&&$t}if($t=bh(zn=V.g=m,Pe,!0,V)&&$t,$t=bh(zn,Pe,!1,V)&&$t,Q)for(nn=0;nn{m.g=null,m.i&&(m.i=!1,Tm(m))},m.l);const V=m.h;m.h=null,m.m.apply(null,V)}An(os,mu),os.prototype[Dh]=!0,os.prototype.removeEventListener=function(m,V,Q,Pe){Em(this,m,V,Q,Pe)},os.prototype.N=function(){if(os.aa.N.call(this),this.i){var V,m=this.i;for(V in m.g){for(var Q=m.g[V],Pe=0;PePe.length)){var $t=Pe[1];if(Array.isArray($t)&&!(1>$t.length)){var nn=$t[0];if("noop"!=nn&&"stop"!=nn&&"close"!=nn)for(var zn=1;zn<$t.length;zn++)$t[zn]=""}}}return Sh(Q)}catch{return V}}(m,Q)+(Pe?" "+Pe:"")})}_u.La="serverreachability",An(h_,_o),_u.STAT_EVENT="statevent",An(Sm,_o),_u.Ma="timingevent",An(hd,_o),yu.prototype.xa=function(){this.g=!1},yu.prototype.info=function(){};var Rm,gp={NO_ERROR:0,gb:1,tb:2,sb:3,nb:4,rb:5,ub:6,Ia:7,TIMEOUT:8,xb:9},g_={lb:"complete",Hb:"success",Ja:"error",Ia:"abort",zb:"ready",Ab:"readystatechange",TIMEOUT:"timeout",vb:"incrementaldata",yb:"progress",ob:"downloadprogress",Pb:"uploadprogress"};function mp(){}function Eu(m,V,Q,Pe){this.j=m,this.i=V,this.l=Q,this.R=Pe||1,this.U=new wh(this),this.I=45e3,this.H=null,this.o=!1,this.m=this.A=this.v=this.L=this.F=this.S=this.B=null,this.D=[],this.g=null,this.C=0,this.s=this.u=null,this.X=-1,this.J=!1,this.O=0,this.M=null,this.W=this.K=this.T=this.P=!1,this.h=new m_}function m_(){this.i=null,this.g="",this.h=!1}An(mp,dp),mp.prototype.g=function(){return new XMLHttpRequest},mp.prototype.i=function(){return{}},Rm=new mp;var v_={},Mm={};function pd(m,V,Q){m.L=1,m.v=Nh(ol(V)),m.m=Q,m.P=!0,__(m,null)}function __(m,V){m.F=Date.now(),Mh(m),m.A=ol(m.v);var Q=m.A,Pe=m.R;Array.isArray(Pe)||(Pe=[String(Pe)]),Bm(Q.i,"t",Pe),m.C=0,Q=m.j.J,m.h=new m_,m.g=F_(m.j,Q?V:null,!m.m),0V.length?Mm:(V=V.slice(Pe,Pe+Q),m.C=Pe+Q,V))}function Mh(m){m.S=Date.now()+m.I,vp(m,m.I)}function vp(m,V){if(null!=m.B)throw Error("WatchDog timer not null");m.B=fp(pt(m.ba,m),V)}function _p(m){m.B&&(R.clearTimeout(m.B),m.B=null)}function Ph(m){0==m.j.G||m.J||q0(m.j,m)}function Iu(m){_p(m);var V=m.M;V&&"function"==typeof V.ma&&V.ma(),m.M=null,bm(m.U),m.g&&(V=m.g,m.g=null,V.abort(),V.ma())}function xh(m,V){try{var Q=m.j;if(0!=Q.G&&(Q.g==m||xm(Q.h,m)))if(!m.K&&xm(Q.h,m)&&3==Q.G){try{var Pe=Q.Da.g.parse(V)}catch{Pe=null}if(Array.isArray(Pe)&&3==Pe.length){var $t=Pe;if(0==$t[0]){e:if(!Q.u){if(Q.g){if(!(Q.g.F+3e3$t[2]&&Q.F&&0==Q.v&&!Q.C&&(Q.C=fp(pt(Q.Za,Q),6e3));if(1>=C_(Q.h)&&Q.ca){try{Q.ca()}catch{}Q.ca=void 0}}else Cu(Q,11)}else if((m.K||Q.g==m)&&Bh(Q),!Mr(V))for($t=Q.Da.g.parse(V),V=0;V<$t.length;V++){let xi=$t[V];if(Q.T=xi[0],xi=xi[1],2==Q.G)if("c"==xi[0]){Q.K=xi[1],Q.ia=xi[2];const ss=xi[3];null!=ss&&(Q.la=ss,Q.j.info("VER="+Q.la));const gs=xi[4];null!=gs&&(Q.Aa=gs,Q.j.info("SVER="+Q.Aa));const Du=xi[5];null!=Du&&"number"==typeof Du&&0gs)&&(3!=gs||this.g&&(this.h.h||this.g.oa()||R_(this.g)))){this.J||4!=gs||7==V||fc(),_p(this);var Q=this.g.Z();this.X=Q;t:if(y_(this)){var Pe=R_(this.g);m="";var $t=Pe.length,nn=4==Au(this.g);if(!this.h.i){if(typeof TextDecoder>"u"){Iu(this),Ph(this);var zn="";break t}this.h.i=new R.TextDecoder}for(V=0;V<$t;V++)this.h.h=!0,m+=this.h.i.decode(Pe[V],{stream:!(nn&&V==$t-1)});Pe.length=0,this.h.g+=m,this.C=0,zn=this.h.g}else zn=this.g.oa();if(this.o=200==Q,function p_(m,V,Q,Pe,$t,nn,zn){m.info(function(){return"XMLHTTP RESP ("+Pe+") [ attempt "+$t+"]: "+V+"\n"+Q+"\n"+nn+" "+zn})}(this.i,this.u,this.A,this.l,this.R,gs,Q),this.o){if(this.T&&!this.K){t:{if(this.g){var Wi,so=this.g;if((Wi=so.g?so.g.getResponseHeader("X-HTTP-Initial-Response"):null)&&!Mr(Wi)){var xi=Wi;break t}}xi=null}if(!(Q=xi)){this.o=!1,this.s=3,co(12),Iu(this),Ph(this);break e}fd(this.i,this.l,Q,"Initial handshake response via X-HTTP-Initial-Response"),this.K=!0,xh(this,Q)}if(this.P){let js;for(Q=!0;!this.J&&this.C=m.j}function C_(m){return m.h?1:m.g?m.g.size:0}function xm(m,V){return m.h?m.h==V:!!m.g&&m.g.has(V)}function Oh(m,V){m.g?m.g.add(V):m.h=V}function yp(m,V){m.h&&m.h==V?m.h=null:m.g&&m.g.has(V)&&m.g.delete(V)}function Om(m){if(null!=m.h)return m.i.concat(m.h.D);if(null!=m.g&&0!==m.g.size){let V=m.i;for(const Q of m.g.values())V=V.concat(Q.D);return V}return kn(m.i)}function D_(m,V){if(m.forEach&&"function"==typeof m.forEach)m.forEach(V,void 0);else if(k(m)||"string"==typeof m)Array.prototype.forEach.call(m,V,void 0);else for(var Q=function km(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(k(m)||"string"==typeof m){var V=[];m=m.length;for(var Q=0;QV)throw Error("Bad port number "+V);m.s=V}else m.s=null}function Fm(m,V,Q){V instanceof _d?(m.i=V,function w_(m,V){V&&!m.j&&(kl(m),m.i=null,m.g.forEach(function(Q,Pe){var $t=Pe.toLowerCase();Pe!=$t&&(Vm(this,Pe),Bm(this,$t,Q))},m)),m.j=V}(m.i,m.h)):(Q||(V=vd(V,rA)),m.i=new _d(V,m.h))}function Yi(m,V,Q){m.i.set(V,Q)}function Nh(m){return Yi(m,"zx",Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^Date.now()).toString(36)),m}function kh(m,V){return m?V?decodeURI(m.replace(/%25/g,"%2525")):decodeURIComponent(m):""}function vd(m,V,Q){return"string"==typeof m?(m=encodeURI(m).replace(V,U0),Q&&(m=m.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),m):null}function U0(m){return"%"+((m=m.charCodeAt(0))>>4&15).toString(16)+(15&m).toString(16)}pc.prototype.toString=function(){var m=[],V=this.j;V&&m.push(vd(V,Ep,!0),":");var Q=this.g;return(Q||"file"==V)&&(m.push("//"),(V=this.o)&&m.push(vd(V,Ep,!0),"@"),m.push(encodeURIComponent(String(Q)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),null!=(Q=this.s)&&m.push(":",String(Q))),(Q=this.l)&&(this.g&&"/"!=Q.charAt(0)&&m.push("/"),m.push(vd(Q,"/"==Q.charAt(0)?Lm:b_,!0))),(Q=this.i.toString())&&m.push("?",Q),(Q=this.m)&&m.push("#",vd(Q,iA)),m.join("")};var Ep=/[#\/\?@]/g,b_=/[#\?:]/g,Lm=/[#\?]/g,rA=/[#\?@]/g,iA=/#/g;function _d(m,V){this.h=this.g=null,this.i=m||null,this.j=!!V}function kl(m){m.g||(m.g=new Map,m.h=0,m.i&&function B0(m,V){if(m){m=m.split("&");for(var Q=0;Q{}),1<=this.readyState&&this.g&&4!=this.readyState&&(this.g=!1,Cp(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,Dp(this)),this.g&&(this.readyState=3,Dp(this),this.g)))if("arraybuffer"===this.responseType)m.arrayBuffer().then(this.Qa.bind(this),this.ga.bind(this));else if(typeof R.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;j0(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 V=m.value?m.value:new Uint8Array(0);(V=this.v.decode(V,{stream:!m.done}))&&(this.response=this.responseText+=V)}m.done?Cp(this):Dp(this),3==this.readyState&&j0(this)}},l.Ra=function(m){this.g&&(this.response=this.responseText=m,Cp(this))},l.Qa=function(m){this.g&&(this.response=m,Cp(this))},l.ga=function(){this.g&&Cp(this)},l.setRequestHeader=function(m,V){this.u.append(m,V)},l.getResponseHeader=function(m){return this.h&&this.h.get(m.toLowerCase())||""},l.getAllResponseHeaders=function(){if(!this.h)return"";const m=[],V=this.h.entries();for(var Q=V.next();!Q.done;)m.push((Q=Q.value)[0]+": "+Q[1]),Q=V.next();return m.join("\r\n")},Object.defineProperty(Um.prototype,"withCredentials",{get:function(){return"include"===this.m},set:function(m){this.m=m?"include":"same-origin"}}),An(yo,os);var aA=/^https?$/i,lA=["POST","PUT"];function z0(m,V){m.h=!1,m.g&&(m.j=!0,m.g.abort(),m.j=!1),m.l=V,m.m=5,H0(m),jm(m)}function H0(m){m.A||(m.A=!0,Ko(m,"complete"),Ko(m,"error"))}function G0(m){if(m.h&&typeof _<"u"&&(!m.v[1]||4!=Au(m)||2!=m.Z()))if(m.u&&4==Au(m))Dm(m.Ea,0,m);else if(Ko(m,"readystatechange"),4==Au(m)){m.h=!1;try{const zn=m.Z();e:switch(zn){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var V=!0;break e;default:V=!1}var Q;if(!(Q=V)){var Pe;if(Pe=0===zn){var $t=String(m.D).match(T_)[1]||null;!$t&&R.self&&R.self.location&&($t=R.self.location.protocol.slice(0,-1)),Pe=!aA.test($t?$t.toLowerCase():"")}Q=Pe}if(Q)Ko(m,"complete"),Ko(m,"success");else{m.m=6;try{var nn=2{}:null;m.g=null,m.v=null,V||Ko(m,"ready");try{Q.onreadystatechange=Pe}catch{}}}function W0(m){m.I&&(R.clearTimeout(m.I),m.I=null)}function Au(m){return m.g?m.g.readyState:0}function R_(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 Fl(m,V,Q){return Q&&Q.internalChannelParams&&Q.internalChannelParams[m]||V}function M_(m){this.Aa=0,this.i=[],this.j=new yu,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=Fl("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=Fl("baseRetryDelayMs",5e3,m),this.cb=Fl("retryDelaySeedMs",1e4,m),this.Wa=Fl("forwardChannelMaxRetries",2,m),this.wa=Fl("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 Pm(m&&m.concurrentRequestLimit),this.Da=new oA,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&&0xi)nn=Math.max(0,$t[so].g-100),Wi=!1;else try{sA(ss,zn,"req"+xi+"_")}catch{Pe&&Pe(ss)}}if(Wi){Pe=zn.join("&");break e}}}return m=m.i.splice(0,Q),V.D=m,Pe}function Hm(m){if(!m.g&&!m.u){m.Y=1;var V=m.Fa;ld||gm(),Ah||(ld(),Ah=!0),pm.add(V,m),m.v=0}}function Gm(m){return!(m.g||m.u||3<=m.v||(m.Y++,m.u=fp(pt(m.Fa,m),N_(m,m.v)),m.v++,0))}function bp(m){null!=m.A&&(R.clearTimeout(m.A),m.A=null)}function X0(m){m.g=new Eu(m,m.j,"rpc",m.Y),null===m.m&&(m.g.H=m.o),m.g.O=0;var V=ol(m.qa);Yi(V,"RID","rpc"),Yi(V,"SID",m.K),Yi(V,"AID",m.T),Yi(V,"CI",m.F?"0":"1"),!m.F&&m.ja&&Yi(V,"TO",m.ja),Yi(V,"TYPE","xmlhttp"),Lh(m,V),m.m&&m.o&&Tp(V,m.m,m.o),m.L&&(m.g.I=m.L);var Q=m.g;m=m.ia,Q.L=1,Q.v=Nh(ol(V)),Q.m=null,Q.P=!0,__(Q,m)}function Bh(m){null!=m.C&&(R.clearTimeout(m.C),m.C=null)}function q0(m,V){var Q=null;if(m.g==V){Bh(m),bp(m),m.g=null;var Pe=2}else{if(!xm(m.h,V))return;Q=V.D,yp(m.h,V),Pe=1}if(0!=m.G)if(V.o)if(1==Pe){Q=V.m?V.m.length:0,V=Date.now()-V.F;var $t=m.B;Ko(Pe=hp(),new hd(Pe,Q)),zm(m)}else Hm(m);else if(3==($t=V.s)||0==$t&&0=m.h.j-(m.s?1:0)||(m.s?(m.i=V.D.concat(m.i),0):1==m.G||2==m.G||m.B>=(m.Va?0:m.Wa)||(m.s=fp(pt(m.Ga,m,V),N_(m,m.B)),m.B++,0)))}(m,V)||2==Pe&&Gm(m)))switch(Q&&0{Pe.abort(),mc(0,0,!1,V)},1e4);fetch(m,{signal:Pe.signal}).then(nn=>{clearTimeout($t),mc(0,0,!!nn.ok,V)}).catch(()=>{clearTimeout($t),mc(0,0,!1,V)})}(Pe.toString(),Q)}else co(2);m.G=0,m.l&&m.l.sa(V),wp(m),x_(m)}function wp(m){if(m.G=0,m.ka=[],m.l){const V=Om(m.h);(0!=V.length||0!=m.i.length)&&(Sn(m.ka,V),Sn(m.ka,m.i),m.h.i.length=0,kn(m.i),m.i.length=0),m.l.ra()}}function k_(m,V,Q){var Pe=Q instanceof pc?ol(Q):new pc(Q);if(""!=Pe.g)V&&(Pe.g=V+"."+Pe.g),md(Pe,Pe.s);else{var $t=R.location;Pe=$t.protocol,V=V?V+"."+$t.hostname:$t.hostname,$t=+$t.port;var nn=new pc(null);Pe&&gd(nn,Pe),V&&(nn.g=V),$t&&md(nn,$t),Q&&(nn.l=Q),Pe=nn}return V=m.ya,(Q=m.D)&&V&&Yi(Pe,Q,V),Yi(Pe,"VER",m.la),Lh(m,Pe),Pe}function F_(m,V,Q){if(V&&!m.J)throw Error("Can't create secondary domain capable XhrIo object.");return(V=new yo(m.Ca&&!m.pa?new Ap({eb:Q}):m.pa)).Ha(m.J),V}function Uh(){}function Sp(){}function $s(m,V){os.call(this),this.g=new M_(V),this.l=m,this.h=V&&V.messageUrlParams||null,m=V&&V.messageHeaders||null,V&&V.clientProtocolHeaderRequired&&(m?m["X-Client-Protocol"]="webchannel":m={"X-Client-Protocol":"webchannel"}),this.g.o=m,m=V&&V.initMessageHeaders||null,V&&V.messageContentType&&(m?m["X-WebChannel-Content-Type"]=V.messageContentType:m={"X-WebChannel-Content-Type":V.messageContentType}),V&&V.va&&(m?m["X-WebChannel-Client-Profile"]=V.va:m={"X-WebChannel-Client-Profile":V.va}),this.g.S=m,(m=V&&V.Sb)&&!Mr(m)&&(this.g.m=m),this.v=V&&V.supportsCrossDomainXhr||!1,this.u=V&&V.sendRawJson||!1,(V=V&&V.httpSessionIdParam)&&!Mr(V)&&(this.g.D=V,null!==(m=this.h)&&V in m&&V in(m=this.h)&&delete m[V]),this.j=new Ed(this)}function L_(m){il.call(this),m.__headers__&&(this.headers=m.__headers__,this.statusCode=m.__status__,delete m.__headers__,delete m.__status__);var V=m.__sm__;if(V){e:{for(const Q in V){m=Q;break e}m=void 0}(this.i=m)&&(m=this.i,V=null!==V&&m in V?V[m]:void 0),this.data=V}else this.data=m}function V_(){cd.call(this),this.status=1}function Ed(m){this.g=m}(l=yo.prototype).Ha=function(m){this.J=m},l.ea=function(m,V,Q,Pe){if(this.g)throw Error("[goog.net.XhrIo] Object is active with another request="+this.D+"; newUri="+m);V=V?V.toUpperCase():"GET",this.D=m,this.l="",this.m=0,this.A=!1,this.h=!0,this.g=this.o?this.o.g():Rm.g(),this.v=function wm(m){return m.h||(m.h=m.i())}(this.o?this.o:Rm),this.g.onreadystatechange=pt(this.Ea,this);try{this.B=!0,this.g.open(V,String(m),!0),this.B=!1}catch(nn){return void z0(this,nn)}if(m=Q||"",Q=new Map(this.headers),Pe)if(Object.getPrototypeOf(Pe)===Object.prototype)for(var $t in Pe)Q.set($t,Pe[$t]);else{if("function"!=typeof Pe.keys||"function"!=typeof Pe.get)throw Error("Unknown input type for opt_headers: "+String(Pe));for(const nn of Pe.keys())Q.set(nn,Pe.get(nn))}Pe=Array.from(Q.keys()).find(nn=>"content-type"==nn.toLowerCase()),$t=R.FormData&&m instanceof R.FormData,!(0<=Array.prototype.indexOf.call(lA,V,void 0))||Pe||$t||Q.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");for(const[nn,zn]of Q)this.g.setRequestHeader(nn,zn);this.H&&(this.g.responseType=this.H),"withCredentials"in this.g&&this.g.withCredentials!==this.J&&(this.g.withCredentials=this.J);try{W0(this),this.u=!0,this.g.send(m),this.u=!1}catch(nn){z0(this,nn)}},l.abort=function(m){this.g&&this.h&&(this.h=!1,this.j=!0,this.g.abort(),this.j=!1,this.m=m||7,Ko(this,"complete"),Ko(this,"abort"),jm(this))},l.N=function(){this.g&&(this.h&&(this.h=!1,this.j=!0,this.g.abort(),this.j=!1),jm(this,!0)),yo.aa.N.call(this)},l.Ea=function(){this.s||(this.B||this.u||this.j?G0(this):this.bb())},l.bb=function(){G0(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=fp(pt(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,co(10),Fh(this),X0(this))},l.Za=function(){null!=this.C&&(this.C=null,Fh(this),Gm(this),co(19))},l.fb=function(m){m?(this.j.info("Successfully pinged google.com"),co(2)):(this.j.info("Failed to ping google.com"),co(1))},l.isActive=function(){return!!this.l&&this.l.isActive(this)},(l=Uh.prototype).ua=function(){},l.ta=function(){},l.sa=function(){},l.ra=function(){},l.isActive=function(){return!0},l.Na=function(){},Sp.prototype.g=function(m,V){return new $s(m,V)},An($s,os),$s.prototype.m=function(){this.g.l=this.j,this.v&&(this.g.J=!0),this.g.connect(this.l,this.h||void 0)},$s.prototype.close=function(){P_(this.g)},$s.prototype.o=function(m){var V=this.g;if("string"==typeof m){var Q={};Q.__data__=m,m=Q}else this.u&&((Q={}).__data__=Sh(m),m=Q);V.i.push(new I_(V.Ya++,m)),3==V.G&&zm(V)},$s.prototype.N=function(){this.g.l=null,delete this.j,P_(this.g),delete this.g,$s.aa.N.call(this)},An(L_,il),An(V_,cd),An(Ed,Uh),Ed.prototype.ua=function(){Ko(this.g,"a")},Ed.prototype.ta=function(m){Ko(this.g,new L_(m))},Ed.prototype.sa=function(m){Ko(this.g,new V_)},Ed.prototype.ra=function(){Ko(this.g,"b")},Sp.prototype.createWebChannel=Sp.prototype.g,$s.prototype.send=$s.prototype.o,$s.prototype.open=$s.prototype.m,$s.prototype.close=$s.prototype.close,Ue=Dt.createWebChannelTransport=function(){return new Sp},ge=Dt.getStatEventTarget=function(){return hp()},Ye=Dt.Event=_u,Me=Dt.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},gp.NO_ERROR=0,gp.TIMEOUT=8,gp.HTTP_ERROR=6,mt=Dt.ErrorCode=gp,g_.COMPLETE="complete",yt=Dt.EventType=g_,ud.EventType=hc,hc.OPEN="a",hc.CLOSE="b",hc.ERROR="c",hc.MESSAGE="d",os.prototype.listen=os.prototype.K,Tt=Dt.WebChannel=ud,_t=Dt.FetchXmlHttpFactory=Ap,yo.prototype.listenOnce=yo.prototype.L,yo.prototype.getLastError=yo.prototype.Ka,yo.prototype.getLastErrorCode=yo.prototype.Ba,yo.prototype.getStatus=yo.prototype.Z,yo.prototype.getResponseJson=yo.prototype.Oa,yo.prototype.getResponseText=yo.prototype.oa,yo.prototype.send=yo.prototype.ea,yo.prototype.setWithCredentials=yo.prototype.Ha,St=Dt.XhrIo=yo}).apply(typeof ht<"u"?ht:typeof self<"u"?self:typeof window<"u"?window:{});const Fe="@firebase/firestore";class xe{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}}xe.UNAUTHENTICATED=new xe(null),xe.GOOGLE_CREDENTIALS=new xe("google-credentials-uid"),xe.FIRST_PARTY=new xe("first-party-uid"),xe.MOCK_USER=new xe("mock-user");let at="10.12.1";const Rt=new Je.Vy("@firebase/firestore");function vn(){return Rt.logLevel}function tt(l,...n){if(Rt.logLevel<=Je.$b.DEBUG){const i=n.map(we);Rt.debug(`Firestore (${at}): ${l}`,...i)}}function on(l,...n){if(Rt.logLevel<=Je.$b.ERROR){const i=n.map(we);Rt.error(`Firestore (${at}): ${l}`,...i)}}function dt(l,...n){if(Rt.logLevel<=Je.$b.WARN){const i=n.map(we);Rt.warn(`Firestore (${at}): ${l}`,...i)}}function we(l){if("string"==typeof l)return l;try{return JSON.stringify(l)}catch{return l}}function H(l="Unexpected state"){const n=`FIRESTORE (${at}) INTERNAL ASSERTION FAILED: `+l;throw on(n),new Error(n)}function X(l,n){l||H()}function se(l,n){return l}const ve={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 Le extends Se.g{constructor(n,i){super(n,i),this.code=n,this.message=i,this.toString=()=>`${this.name}: [code=${this.code}]: ${this.message}`}}class De{constructor(){this.promise=new Promise((n,i)=>{this.resolve=n,this.reject=i})}}class Wt{constructor(n,i){this.user=i,this.type="OAuth",this.headers=new Map,this.headers.set("Authorization",`Bearer ${n}`)}}class dn{getToken(){return Promise.resolve(null)}invalidateToken(){}start(n,i){n.enqueueRetryable(()=>i(xe.UNAUTHENTICATED))}shutdown(){}}class Kt{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 rn{constructor(n){this.t=n,this.currentUser=xe.UNAUTHENTICATED,this.i=0,this.forceRefresh=!1,this.auth=null}start(n,i){var s=this;let u=this.i;const p=q=>this.i!==u?(u=this.i,i(q)):Promise.resolve();let _=new De;this.o=()=>{this.i++,this.currentUser=this.u(),_.resolve(),_=new De,n.enqueueRetryable(()=>p(this.currentUser))};const R=()=>{const q=_;n.enqueueRetryable((0,ue.A)(function*(){yield q.promise,yield p(s.currentUser)}))},k=q=>{tt("FirebaseAuthCredentialsProvider","Auth detected"),this.auth=q,this.auth.addAuthTokenListener(this.o),R()};this.t.onInit(q=>k(q)),setTimeout(()=>{if(!this.auth){const q=this.t.getImmediate({optional:!0});q?k(q):(tt("FirebaseAuthCredentialsProvider","Auth not yet detected"),_.resolve(),_=new De)}},0),R()}getToken(){const n=this.i,i=this.forceRefresh;return this.forceRefresh=!1,this.auth?this.auth.getToken(i).then(s=>this.i!==n?(tt("FirebaseAuthCredentialsProvider","getToken aborted due to token change."),this.getToken()):s?(X("string"==typeof s.accessToken),new Wt(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 X(null===n||"string"==typeof n),new xe(n)}}class Ln{constructor(n,i,s){this.l=n,this.h=i,this.P=s,this.type="FirstParty",this.user=xe.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 Zn{constructor(n,i,s){this.l=n,this.h=i,this.P=s}getToken(){return Promise.resolve(new Ln(this.l,this.h,this.P))}start(n,i){n.enqueueRetryable(()=>i(xe.FIRST_PARTY))}shutdown(){}invalidateToken(){}}class nr{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=p=>{null!=p.error&&tt("FirebaseAppCheckTokenProvider",`Error getting App Check token; using placeholder token instead. Error: ${p.error.message}`);const _=p.token!==this.R;return this.R=p.token,tt("FirebaseAppCheckTokenProvider",`Received ${_?"new":"existing"} token.`),_?i(p.token):Promise.resolve()};this.o=p=>{n.enqueueRetryable(()=>s(p))};const u=p=>{tt("FirebaseAppCheckTokenProvider","AppCheck detected"),this.appCheck=p,this.appCheck.addTokenListener(this.o)};this.A.onInit(p=>u(p)),setTimeout(()=>{if(!this.appCheck){const p=this.A.getImmediate({optional:!0});p?u(p):tt("FirebaseAppCheckTokenProvider","AppCheck not yet detected")}},0)}getToken(){const n=this.forceRefresh;return this.forceRefresh=!1,this.appCheck?this.appCheck.getToken(n).then(i=>i?(X("string"==typeof i.token),this.R=i.token,new nr(i.token)):null):Promise.resolve(null)}invalidateToken(){this.forceRefresh=!0}shutdown(){this.appCheck&&this.appCheck.removeTokenListener(this.o)}}function rr(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 Ot(l,n,i){return l.length===n.length&&l.every((s,u)=>i(s,n[u]))}class pn{constructor(n,i){if(this.seconds=n,this.nanoseconds=i,i<0)throw new Le(ve.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+i);if(i>=1e9)throw new Le(ve.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+i);if(n<-62135596800)throw new Le(ve.INVALID_ARGUMENT,"Timestamp seconds out of range: "+n);if(n>=253402300800)throw new Le(ve.INVALID_ARGUMENT,"Timestamp seconds out of range: "+n)}static now(){return pn.fromMillis(Date.now())}static fromDate(n){return pn.fromMillis(n.getTime())}static fromMillis(n){const i=Math.floor(n/1e3),s=Math.floor(1e6*(n-1e3*i));return new pn(i,s)}toDate(){return new Date(this.toMillis())}toMillis(){return 1e3*this.seconds+this.nanoseconds/1e6}_compareTo(n){return this.seconds===n.seconds?nt(this.nanoseconds,n.nanoseconds):nt(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 gn{constructor(n){this.timestamp=n}static fromTimestamp(n){return new gn(n)}static min(){return new gn(new pn(0,0))}static max(){return new gn(new pn(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 Sr{constructor(n,i,s){void 0===i?i=0:i>n.length&&H(),void 0===s?s=n.length-i:s>n.length-i&&H(),this.segments=n,this.offset=i,this.len=s}get length(){return this.len}isEqual(n){return 0===Sr.comparator(this,n)}child(n){const i=this.segments.slice(this.offset,this.limit());return n instanceof Sr?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 Mn extends Sr{construct(n,i,s){return new Mn(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 Le(ve.INVALID_ARGUMENT,`Invalid segment (${s}). Paths must not contain // in them.`);i.push(...s.split("/").filter(u=>u.length>0))}return new Mn(i)}static emptyPath(){return new Mn([])}}const xn=/^[_a-zA-Z][_a-zA-Z0-9]*$/;class mn extends Sr{construct(n,i,s){return new mn(n,i,s)}static isValidIdentifier(n){return xn.test(n)}canonicalString(){return this.toArray().map(n=>(n=n.replace(/\\/g,"\\\\").replace(/`/g,"\\`"),mn.isValidIdentifier(n)||(n="`"+n+"`"),n)).join(".")}toString(){return this.canonicalString()}isKeyField(){return 1===this.length&&"__name__"===this.get(0)}static keyField(){return new mn(["__name__"])}static fromServerFormat(n){const i=[];let s="",u=0;const p=()=>{if(0===s.length)throw new Le(ve.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===Mn.comparator(this.path,n.path)}toString(){return this.path.toString()}static comparator(n,i){return Mn.comparator(n.path,i.path)}static isDocumentKey(n){return n.length%2==0}static fromSegments(n){return new en(new Mn(n.slice()))}}class Pr{constructor(n,i,s){this.readTime=n,this.documentKey=i,this.largestBatchId=s}static min(){return new Pr(gn.min(),en.empty(),-1)}static max(){return new Pr(gn.max(),en.empty(),-1)}}function cr(l,n){let i=l.readTime.compareTo(n.readTime);return 0!==i?i:(i=en.comparator(l.documentKey,n.documentKey),0!==i?i:nt(l.largestBatchId,n.largestBatchId))}const kr="The current tab is not in the required state to perform this operation. It might be necessary to refresh the browser tab.";class ii{constructor(){this.onCommittedListeners=[]}addOnCommittedListener(n){this.onCommittedListeners.push(n)}raiseOnCommittedEvent(){this.onCommittedListeners.forEach(n=>n())}}function Ai(l){return Qr.apply(this,arguments)}function Qr(){return(Qr=(0,ue.A)(function*(l){if(l.code!==ve.FAILED_PRECONDITION||l.message!==kr)throw l;tt("LocalStore","Unexpectedly lost primary lease")})).apply(this,arguments)}class pe{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&&H(),this.callbackAttached=!0,this.isDone?this.error?this.wrapFailure(i,this.error):this.wrapSuccess(n,this.result):new pe((s,u)=>{this.nextCallback=p=>{this.wrapSuccess(n,p).next(s,u)},this.catchCallback=p=>{this.wrapFailure(i,p).next(s,u)}})}toPromise(){return new Promise((n,i)=>{this.next(n,i)})}wrapUserFunction(n){try{const i=n();return i instanceof pe?i:pe.resolve(i)}catch(i){return pe.reject(i)}}wrapSuccess(n,i){return n?this.wrapUserFunction(()=>n(i)):pe.resolve(i)}wrapFailure(n,i){return n?this.wrapUserFunction(()=>n(i)):pe.reject(i)}static resolve(n){return new pe((i,s)=>{i(n)})}static reject(n){return new pe((i,s)=>{s(n)})}static waitFor(n){return new pe((i,s)=>{let u=0,p=0,_=!1;n.forEach(R=>{++u,R.next(()=>{++p,_&&p===u&&i()},k=>s(k))}),_=!0,p===u&&i()})}static or(n){let i=pe.resolve(!1);for(const s of n)i=i.next(u=>u?pe.resolve(u):s());return i}static forEach(n,i){const s=[];return n.forEach((u,p)=>{s.push(i.call(this,u,p))}),this.waitFor(s)}static mapArray(n,i){return new pe((s,u)=>{const p=n.length,_=new Array(p);let R=0;for(let k=0;k{_[q]=_e,++R,R===p&&s(_)},_e=>u(_e))}})}static doWhile(n,i){return new pe((s,u)=>{const p=()=>{!0===n()?i().next(()=>{p()},u):s()};p()})}}function He(l){return"IndexedDbTransactionError"===l.name}let _n=(()=>{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 qn(l){return null==l}function hn(l){return 0===l&&1/l==-1/0}function Cr(l){let n=0;for(const i in l)Object.prototype.hasOwnProperty.call(l,i)&&n++;return n}function ai(l,n){for(const i in l)Object.prototype.hasOwnProperty.call(l,i)&&n(i,l[i])}function ei(l){for(const n in l)if(Object.prototype.hasOwnProperty.call(l,n))return!1;return!0}class Lr{constructor(n,i){this.comparator=n,this.root=i||Wn.EMPTY}insert(n,i){return new Lr(this.comparator,this.root.insert(n,i,this.comparator).copy(null,null,Wn.BLACK,null,null))}remove(n){return new Lr(this.comparator,this.root.remove(n,this.comparator).copy(null,null,Wn.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 mi(this.root,null,this.comparator,!1)}getIteratorFrom(n){return new mi(this.root,n,this.comparator,!1)}getReverseIterator(){return new mi(this.root,null,this.comparator,!0)}getReverseIteratorFrom(n){return new mi(this.root,n,this.comparator,!0)}}class mi{constructor(n,i,s,u){this.isReverse=u,this.nodeStack=[];let p=1;for(;!n.isEmpty();)if(p=i?s(n.key,i):1,i&&u&&(p*=-1),p<0)n=this.isReverse?n.left:n.right;else{if(0===p){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 Wn{constructor(n,i,s,u,p){this.key=n,this.value=i,this.color=null!=s?s:Wn.RED,this.left=null!=u?u:Wn.EMPTY,this.right=null!=p?p:Wn.EMPTY,this.size=this.left.size+1+this.right.size}copy(n,i,s,u,p){return new Wn(null!=n?n:this.key,null!=i?i:this.value,null!=s?s:this.color,null!=u?u:this.left,null!=p?p: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 p=s(n,u.key);return u=p<0?u.copy(null,null,null,u.left.insert(n,i,s),null):0===p?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 Wn.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 Wn.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,Wn.RED,null,this.right.left);return this.right.copy(null,null,this.color,n,null)}rotateRight(){const n=this.copy(null,null,Wn.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 H();const n=this.left.check();if(n!==this.right.check())throw H();return n+(this.isRed()?0:1)}}Wn.EMPTY=null,Wn.RED=!0,Wn.BLACK=!1,Wn.EMPTY=new class{constructor(){this.size=0}get key(){throw H()}get value(){throw H()}get color(){throw H()}get left(){throw H()}get right(){throw H()}copy(n,i,s,u,p){return this}insert(n,i,s){return new Wn(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 Hn{constructor(n){this.comparator=n,this.data=new Lr(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 ao(this.data.getIterator())}getIteratorFrom(n){return new ao(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 Hn)||this.size!==n.size)return!1;const i=this.data.getIterator(),s=n.data.getIterator();for(;i.hasNext();){const u=i.getNext().key,p=s.getNext().key;if(0!==this.comparator(u,p))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 Hn(this.comparator);return i.data=n,i}}class ao{constructor(n){this.iter=n}getNext(){return this.iter.getNext().key}hasNext(){return this.iter.hasNext()}}class Ci{constructor(n){this.fields=n,n.sort(mn.comparator)}static empty(){return new Ci([])}unionWith(n){let i=new Hn(mn.comparator);for(const s of this.fields)i=i.add(s);for(const s of n)i=i.add(s);return new Ci(i.toArray())}covers(n){for(const i of this.fields)if(i.isPrefixOf(n))return!0;return!1}isEqual(n){return Ot(this.fields,n.fields,(i,s)=>i.isEqual(s))}}class Eo extends Error{constructor(){super(...arguments),this.name="Base64DecodeError"}}class oi{constructor(n){this.binaryString=n}static fromBase64String(n){const i=function(u){try{return atob(u)}catch(p){throw typeof DOMException<"u"&&p instanceof DOMException?new Eo("Invalid base64 string: "+p):p}}(n);return new oi(i)}static fromUint8Array(n){const i=function(u){let p="";for(let _=0;_nre(i,n))}function Ee(l,n){if(l===n)return 0;const i=j(l),s=j(n);if(i!==s)return nt(i,s);switch(i){case 0:case 9007199254740991:return 0;case 1:return nt(l.booleanValue,n.booleanValue);case 2:return function(p,_){const R=le(p.integerValue||p.doubleValue),k=le(_.integerValue||_.doubleValue);return Rk?1:R===k?0:isNaN(R)?isNaN(k)?0:-1:1}(l,n);case 3:return it(l.timestampValue,n.timestampValue);case 4:return it(ot(l),ot(n));case 5:return nt(l.stringValue,n.stringValue);case 6:return function(p,_){const R=W(p),k=W(_);return R.compareTo(k)}(l.bytesValue,n.bytesValue);case 7:return function(p,_){const R=p.split("/"),k=_.split("/");for(let q=0;qn.mapValue.fields[i]=sn(s)),n}if(l.arrayValue){const n={arrayValue:{values:[]}};for(let i=0;i<(l.arrayValue.values||[]).length;++i)n.arrayValue.values[i]=sn(l.arrayValue.values[i]);return n}return Object.assign({},l)}function cn(l){return"__max__"===(((l.mapValue||{}).fields||{}).__type__||{}).stringValue}class Vn{constructor(n){this.value=n}static empty(){return new Vn({mapValue:{}})}field(n){if(n.isEmpty())return this.value;{let i=this.value;for(let s=0;s{if(!i.isImmediateParentOf(R)){const k=this.getFieldsMap(i);this.applyChanges(k,s,u),s={},u=[],i=R.popLast()}_?s[R.lastSegment()]=sn(_):u.push(R.lastSegment())});const p=this.getFieldsMap(i);this.applyChanges(p,s,u)}delete(n){const i=this.field(n.popLast());Yt(i)&&i.mapValue.fields&&delete i.mapValue.fields[n.lastSegment()]}isEqual(n){return re(this.value,n.value)}getFieldsMap(n){let i=this.value;i.mapValue.fields||(i.mapValue={fields:{}});for(let s=0;sn[u]=p);for(const u of s)delete n[u]}clone(){return new Vn(sn(this.value))}}function qr(l){const n=[];return ai(l.fields,(i,s)=>{const u=new mn([i]);if(Yt(s)){const p=qr(s.mapValue).fields;if(0===p.length)n.push(u);else for(const _ of p)n.push(u.child(_))}else n.push(u)}),new Ci(n)}class jr{constructor(n,i,s,u,p,_,R){this.key=n,this.documentType=i,this.version=s,this.readTime=u,this.createTime=p,this.data=_,this.documentState=R}static newInvalidDocument(n){return new jr(n,0,gn.min(),gn.min(),gn.min(),Vn.empty(),0)}static newFoundDocument(n,i,s,u){return new jr(n,1,i,gn.min(),s,u,0)}static newNoDocument(n,i){return new jr(n,2,i,gn.min(),gn.min(),Vn.empty(),0)}static newUnknownDocument(n,i){return new jr(n,3,i,gn.min(),gn.min(),Vn.empty(),2)}convertToFoundDocument(n,i){return!this.createTime.isEqual(gn.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=Vn.empty(),this.documentState=0,this}convertToUnknownDocument(n){return this.version=n,this.documentType=3,this.data=Vn.empty(),this.documentState=2,this}setHasCommittedMutations(){return this.documentState=2,this}setHasLocalMutations(){return this.documentState=1,this.version=gn.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 jr&&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 jr(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 br{constructor(n,i){this.position=n,this.inclusive=i}}function wi(l,n,i){let s=0;for(let u=0;u":return n>0;case">=":return n>=0;default:return H()}}isInequality(){return["<","<=",">",">=","!=","not-in"].indexOf(this.op)>=0}getFlattenedFilters(){return[this]}getFilters(){return[this]}}class Ti extends as{constructor(n,i){super(),this.filters=n,this.op=i,this.ae=null}static create(n,i){return new Ti(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 Bo(l){return function Io(l){for(const n of l.filters)if(n instanceof Ti)return!1;return!0}(l)&&Qo(l)}function Ss(l){if(l instanceof Ur)return l.field.canonicalString()+l.op.toString()+sr(l.value);if(Bo(l))return l.filters.map(n=>Ss(n)).join(",");{const n=l.filters.map(i=>Ss(i)).join(",");return`${l.op}(${n})`}}function no(l,n){return l instanceof Ur?(s=l,(u=n)instanceof Ur&&s.op===u.op&&s.field.isEqual(u.field)&&re(s.value,u.value)):l instanceof Ti?function(s,u){return u instanceof Ti&&s.op===u.op&&s.filters.length===u.filters.length&&s.filters.reduce((p,_,R)=>p&&no(_,u.filters[R]),!0)}(l,n):void H();var s,u}function Kr(l){return l instanceof Ur?`${(i=l).field.canonicalString()} ${i.op} ${sr(i.value)}`:l instanceof Ti?function(i){return i.op.toString()+" {"+i.getFilters().map(Kr).join(" ,")+"}"}(l):"Filter";var i}class fo extends Ur{constructor(n,i,s){super(n,i,s),this.key=en.fromName(s.referenceValue)}matches(n){const i=en.comparator(n.key,this.key);return this.matchesComparison(i)}}class ka extends Ur{constructor(n,i){super(n,"in",i),this.keys=Hs(0,i)}matches(n){return this.keys.some(i=>i.isEqual(n.key))}}class Rs extends Ur{constructor(n,i){super(n,"not-in",i),this.keys=Hs(0,i)}matches(n){return!this.keys.some(i=>i.isEqual(n.key))}}function Hs(l,n){var i;return((null===(i=n.arrayValue)||void 0===i?void 0:i.values)||[]).map(s=>en.fromName(s.referenceValue))}class Ms extends Ur{constructor(n,i){super(n,"array-contains",i)}matches(n){const i=n.data.field(this.field);return et(i)&&P(i.arrayValue,this.value)}}class ls extends Ur{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 us extends Ur{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 Uo extends Ur{constructor(n,i){super(n,"array-contains-any",i)}matches(n){const i=n.data.field(this.field);return!(!et(i)||!i.arrayValue.values)&&i.arrayValue.values.some(s=>P(this.value.arrayValue,s))}}class vs{constructor(n,i=null,s=[],u=[],p=null,_=null,R=null){this.path=n,this.collectionGroup=i,this.orderBy=s,this.filters=u,this.limit=p,this.startAt=_,this.endAt=R,this.ue=null}}function Ps(l,n=null,i=[],s=[],u=null,p=null,_=null){return new vs(l,n,i,s,u,p,_)}function xs(l){const n=se(l);if(null===n.ue){let i=n.path.canonicalString();null!==n.collectionGroup&&(i+="|cg:"+n.collectionGroup),i+="|f:",i+=n.filters.map(s=>Ss(s)).join(","),i+="|ob:",i+=n.orderBy.map(s=>{return(p=s).field.canonicalString()+p.dir;var p}).join(","),qn(n.limit)||(i+="|l:",i+=n.limit),n.startAt&&(i+="|lb:",i+=n.startAt.inclusive?"b:":"a:",i+=n.startAt.position.map(s=>sr(s)).join(",")),n.endAt&&(i+="|ub:",i+=n.endAt.inclusive?"a:":"b:",i+=n.endAt.position.map(s=>sr(s)).join(",")),n.ue=i}return n.ue}function Ao(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 R=new Hn(mn.comparator);return _.filters.forEach(k=>{k.getFlattenedFilters().forEach(q=>{q.isInequality()&&(R=R.add(q.field))})}),R})(n).forEach(p=>{i.has(p.canonicalString())||p.isKeyField()||n.ce.push(new ki(p,s))}),i.has(mn.keyField().canonicalString())||n.ce.push(new ki(mn.keyField(),s))}return n.ce}function Xn(l){const n=se(l);return n.le||(n.le=function oo(l,n){if("F"===l.limitType)return Ps(l.path,l.collectionGroup,n,l.filters,l.limit,l.startAt,l.endAt);{n=n.map(u=>new ki(u.field,"desc"===u.dir?"asc":"desc"));const i=l.endAt?new br(l.endAt.position,l.endAt.inclusive):null,s=l.startAt?new br(l.startAt.position,l.startAt.inclusive):null;return Ps(l.path,l.collectionGroup,n,l.filters,l.limit,i,s)}}(n,yn(l))),n.le}function So(l,n,i){return new K(l.path,l.collectionGroup,l.explicitOrderBy.slice(),l.filters.slice(),n,i,l.startAt,l.endAt)}function Yo(l,n){return Ao(Xn(l),Xn(n))&&l.limitType===n.limitType}function Fa(l){return`${xs(Xn(l))}|lt:${l.limitType}`}function _s(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=>Kr(u)).join(", ")}]`),qn(i.limit)||(s+=", limit: "+i.limit),i.orderBy.length>0&&(s+=`, orderBy: [${i.orderBy.map(u=>{return`${(_=u).field.canonicalString()} (${_.dir})`;var _}).join(", ")}]`),i.startAt&&(s+=", startAt: ",s+=i.startAt.inclusive?"b:":"a:",s+=i.startAt.position.map(u=>sr(u)).join(",")),i.endAt&&(s+=", endAt: ",s+=i.endAt.inclusive?"a:":"b:",s+=i.endAt.position.map(u=>sr(u)).join(",")),`Target(${s})`}(Xn(l))}; limitType=${l.limitType})`}function Gs(l,n){return n.isFoundDocument()&&function(s,u){const p=u.key.path;return null!==s.collectionGroup?u.key.hasCollectionId(s.collectionGroup)&&s.path.isPrefixOf(p):en.isDocumentKey(s.path)?s.path.isEqual(p):s.path.isImmediateParentOf(p)}(l,n)&&function(s,u){for(const p of yn(s))if(!p.field.isKeyField()&&null===u.data.field(p.field))return!1;return!0}(l,n)&&function(s,u){for(const p of s.filters)if(!p.matches(u))return!1;return!0}(l,n)&&(u=n,!((s=l).startAt&&!function(_,R,k){const q=wi(_,R,k);return _.inclusive?q<=0:q<0}(s.startAt,yn(s),u)||s.endAt&&!function(_,R,k){const q=wi(_,R,k);return _.inclusive?q>=0:q>0}(s.endAt,yn(s),u)));var s,u}function ul(l){return(n,i)=>{let s=!1;for(const u of yn(l)){const p=pa(u,n,i);if(0!==p)return p;s=s||u.field.isKeyField()}return 0}}function pa(l,n,i){const s=l.field.isKeyField()?en.comparator(n.key,i.key):function(p,_,R){const k=_.data.field(p),q=R.data.field(p);return null!==k&&null!==q?Ee(k,q):H()}(l.field,n,i);switch(l.dir){case"asc":return s;case"desc":return-1*s;default:return H()}}class $o{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,p]of s)if(this.equalsFn(u,n))return p}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 p=0;p{for(const[u,p]of s)n(u,p)})}isEmpty(){return ei(this.inner)}size(){return this.innerSize}}const Jo=new Lr(en.comparator);function Rr(){return Jo}const ji=new Lr(en.comparator);function zi(...l){let n=ji;for(const i of l)n=n.insert(i.key,i);return n}function po(l){let n=ji;return l.forEach((i,s)=>n=n.insert(i,s.overlayedDocument)),n}function bi(){return jo()}function La(){return jo()}function jo(){return new $o(l=>l.toString(),(l,n)=>l.isEqual(n))}const ys=new Lr(en.comparator),cl=new Hn(en.comparator);function Hr(...l){let n=cl;for(const i of l)n=n.add(i);return n}const dl=new Hn(nt);function Va(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:hn(n)?"-0":n}}function Es(l){return{integerValue:""+l}}function hl(l,n){return function Cn(l){return"number"==typeof l&&Number.isInteger(l)&&!hn(l)&&l<=Number.MAX_SAFE_INTEGER&&l>=Number.MIN_SAFE_INTEGER}(n)?Es(n):Va(l,n)}class Ba{constructor(){this._=void 0}}function Ul(l,n,i){return l instanceof Is?function(u,p){const _={fields:{__type__:{stringValue:"server_timestamp"},__local_write_time__:{timestampValue:{seconds:u.seconds,nanos:u.nanoseconds}}}};return p&&$e(p)&&(p=Ve(p)),p&&(_.fields.__previous_value__=p),{mapValue:_}}(i,n):l instanceof Os?Zo(l,n):l instanceof As?zl(l,n):function(u,p){const _=jl(u,p),R=Su(_)+Su(u.Pe);return Ne(_)&&Ne(u.Pe)?Es(R):Va(u.serializer,R)}(l,n)}function $l(l,n,i){return l instanceof Os?Zo(l,n):l instanceof As?zl(l,n):i}function jl(l,n){return l instanceof es?Ne(s=n)||(p=s)&&"doubleValue"in p?n:{integerValue:0}:null;var s,p}class Is extends Ba{}class Os extends Ba{constructor(n){super(),this.elements=n}}function Zo(l,n){const i=Hl(n);for(const s of l.elements)i.some(u=>re(u,s))||i.push(s);return{arrayValue:{values:i}}}class As extends Ba{constructor(n){super(),this.elements=n}}function zl(l,n){let i=Hl(n);for(const s of l.elements)i=i.filter(u=>!re(u,s));return{arrayValue:{values:i}}}class es extends Ba{constructor(n,i){super(),this.serializer=n,this.Pe=i}}function Su(l){return le(l.integerValue||l.doubleValue)}function Hl(l){return et(l)&&l.arrayValue.values?l.arrayValue.values.slice():[]}class Ns{constructor(n,i){this.version=n,this.transformResults=i}}class Ui{constructor(n,i){this.updateTime=n,this.exists=i}static none(){return new Ui}static exists(n){return new Ui(void 0,n)}static updateTime(n){return new Ui(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 ga(l,n){return void 0!==l.updateTime?n.isFoundDocument()&&n.version.isEqual(l.updateTime):void 0===l.exists||l.exists===n.isFoundDocument()}class Ua{}function ma(l,n){if(!l.hasLocalMutations||n&&0===n.fields.length)return null;if(null===n)return l.isNoDocument()?new $(l.key,Ui.none()):new Ks(l.key,l.data,Ui.none());{const i=l.data,s=Vn.empty();let u=new Hn(mn.comparator);for(let p of n.fields)if(!u.has(p)){let _=i.field(p);null===_&&p.length>1&&(p=p.popLast(),_=i.field(p)),null===_?s.delete(p):s.set(p,_),u=u.add(p)}return new lo(l.key,s,new Ci(u.toArray()),Ui.none())}}function $a(l,n,i){l instanceof Ks?function(u,p,_){const R=u.value.clone(),k=ya(u.fieldTransforms,p,_.transformResults);R.setAll(k),p.convertToFoundDocument(_.version,R).setHasCommittedMutations()}(l,n,i):l instanceof lo?function(u,p,_){if(!ga(u.precondition,p))return void p.convertToUnknownDocument(_.version);const R=ya(u.fieldTransforms,p,_.transformResults),k=p.data;k.setAll(Gl(u)),k.setAll(R),p.convertToFoundDocument(_.version,k).setHasCommittedMutations()}(l,n,i):n.convertToNoDocument(i.version).setHasCommittedMutations()}function zo(l,n,i,s){return l instanceof Ks?function(p,_,R,k){if(!ga(p.precondition,_))return R;const q=p.value.clone(),_e=C(p.fieldTransforms,k,_);return q.setAll(_e),_.convertToFoundDocument(_.version,q).setHasLocalMutations(),null}(l,n,i,s):l instanceof lo?function(p,_,R,k){if(!ga(p.precondition,_))return R;const q=C(p.fieldTransforms,k,_),_e=_.data;return _e.setAll(Gl(p)),_e.setAll(q),_.convertToFoundDocument(_.version,_e).setHasLocalMutations(),null===R?null:R.unionWith(p.fieldMask.fields).unionWith(p.fieldTransforms.map(je=>je.field))}(l,n,i,s):(R=i,ga(l.precondition,_=n)?(_.convertToNoDocument(_.version).setHasLocalMutations(),null):R);var _,R}function va(l,n){let i=null;for(const s of l.fieldTransforms){const u=n.data.field(s.field),p=jl(s.transform,u||null);null!=p&&(null===i&&(i=Vn.empty()),i.set(s.field,p))}return i||null}function _a(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&&Ot(s,u,(p,_)=>function Lo(l,n){return l.field.isEqual(n.field)&&(u=n.transform,(s=l.transform)instanceof Os&&u instanceof Os||s instanceof As&&u instanceof As?Ot(s.elements,u.elements,re):s instanceof es&&u instanceof es?re(s.Pe,u.Pe):s instanceof Is&&u instanceof Is);var s,u}(p,_))))&&(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 Ks extends Ua{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 Ua{constructor(n,i,s,u,p=[]){super(),this.key=n,this.data=i,this.fieldMask=s,this.precondition=u,this.fieldTransforms=p,this.type=1}getFieldMask(){return this.fieldMask}}function Gl(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 ya(l,n,i){const s=new Map;X(l.length===i.length);for(let u=0;u{const p=n.get(u.key),_=p.overlayedDocument;let R=this.applyToLocalView(_,p.mutatedFields);R=i.has(u.key)?null:R;const k=ma(_,R);null!==k&&s.set(u.key,k),_.isValidDocument()||_.convertToNoDocument(gn.min())}),s}keys(){return this.mutations.reduce((n,i)=>n.add(i.key),Hr())}isEqual(n){return this.batchId===n.batchId&&Ot(this.mutations,n.mutations,(i,s)=>_a(i,s))&&Ot(this.baseMutations,n.baseMutations,(i,s)=>_a(i,s))}}class Ie{constructor(n,i,s,u){this.batch=n,this.commitVersion=i,this.mutationResults=s,this.docVersions=u}static from(n,i,s){X(n.mutations.length===s.length);let u=function(){return ys}();const p=n.mutations;for(let _=0;_=8)throw new Di(`Invalid padding: ${i}`);if(s<0)throw new Di(`Invalid hash count: ${s}`);if(n.length>0&&0===this.hashCount)throw new Di(`Invalid hash count: ${s}`);if(0===n.length&&0!==i)throw new Di(`Invalid padding when bitmap length is 0: ${i}`);this.Ie=8*n.length-i,this.Te=Ze.fromNumber(this.Ie)}Ee(n,i,s){let u=n.add(i.multiply(Ze.fromNumber(s)));return 1===u.compare(Hi)&&(u=new Ze([u.getBits(0),u.getBits(1)],0)),u.modulo(this.Te).toNumber()}de(n){return!!(this.bitmap[Math.floor(n/8)]&1<_.insert(R)),_}insert(n){if(0===this.Ie)return;const i=vi(n),[s,u]=Rn(i);for(let p=0;p0&&(this.we=!0,this.pe=n)}Ce(){let n=Hr(),i=Hr(),s=Hr();return this.ge.forEach((u,p)=>{switch(p){case 0:n=n.add(u);break;case 2:i=i.add(u);break;case 1:s=s.add(u);break;default:H()}}),new Si(this.pe,this.ye,n,i,s)}ve(){this.we=!1,this.ge=Xs()}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,X(this.fe>=0)}Ne(){this.we=!0,this.ye=!0}}class ks{constructor(n){this.Le=n,this.Be=new Map,this.ke=Rr(),this.qe=Br(),this.Qe=new Lr(nt)}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:H()}})}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 p=u.target;if(Fo(p))if(0===s){const _=new en(p.path);this.Ue(i,_,jr.newNoDocument(_,gn.min()))}else X(1===s);else{const _=this.Ye(i);if(_!==s){const R=this.Ze(n),k=R?this.Xe(R,n,_):1;0!==k&&(this.je(i),this.Qe=this.Qe.insert(i,2===k?"TargetPurposeExistenceFilterMismatchBloom":"TargetPurposeExistenceFilterMismatch"))}}}}Ze(n){const i=n.me.unchangedNames;if(!i||!i.bits)return null;const{bits:{bitmap:s="",padding:u=0},hashCount:p=0}=i;let _,R;try{_=W(s).toUint8Array()}catch(k){if(k instanceof Eo)return dt("Decoding the base64 bloom filter in existence filter failed ("+k.message+"); ignoring the bloom filter and falling back to full re-query."),null;throw k}try{R=new Kn(_,u,p)}catch(k){return dt(k instanceof Di?"BloomFilter error: ":"Applying bloom filter failed: ",k),null}return 0===R.Ie?null:R}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(p=>{const _=this.Le.tt(),R=`projects/${_.projectId}/databases/${_.database}/documents/${p.path.canonicalString()}`;n.mightContain(R)||(this.Ue(i,p,null),u++)}),u}rt(n){const i=new Map;this.Be.forEach((p,_)=>{const R=this.Je(_);if(R){if(p.current&&Fo(R.target)){const k=new en(R.target.path);null!==this.ke.get(k)||this.it(_,k)||this.Ue(_,k,jr.newNoDocument(k,n))}p.be&&(i.set(_,p.Ce()),p.ve())}});let s=Hr();this.qe.forEach((p,_)=>{let R=!0;_.forEachWhile(k=>{const q=this.Je(k);return!q||"TargetPurposeLimboResolution"===q.purpose||(R=!1,!1)}),R&&(s=s.add(p))}),this.ke.forEach((p,_)=>_.setReadTime(n));const u=new qi(n,i,this.Qe,this.ke,s);return this.ke=Rr(),this.qe=Br(),this.Qe=new Lr(nt),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 Ki,this.Be.set(n,i)),i}st(n){let i=this.qe.get(n);return i||(i=new Hn(nt),this.qe=this.qe.insert(n,i)),i}ze(n){const i=null!==this.Je(n);return i||tt("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 Ki),this.Le.getRemoteKeysForTarget(n).forEach(i=>{this.Ue(n,i,null)})}it(n,i){return this.Le.getRemoteKeysForTarget(n).has(i)}}function Br(){return new Lr(en.comparator)}function Xs(){return new Lr(en.comparator)}const vc={asc:"ASCENDING",desc:"DESCENDING"},fl={"<":"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"},Gi={and:"AND",or:"OR"};class Co{constructor(n,i){this.databaseId=n,this.useProto3Json=i}}function Cs(l,n){return l.useProto3Json||qn(n)?n:{value:n}}function Go(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 qs(l,n){return l.useProto3Json?n.toBase64():n.toUint8Array()}function _c(l,n){return Go(l,n.toTimestamp())}function Mi(l){return X(!!l),gn.fromTimestamp(function(i){const s=he(i);return new pn(s.seconds,s.nanos)}(l))}function Qs(l,n){return cs(l,n).canonicalString()}function cs(l,n){const i=(u=l,new Mn(["projects",u.projectId,"databases",u.database])).child("documents");var u;return void 0===n?i:i.child(n)}function Gr(l){const n=Mn.fromString(l);return X(E(n)),n}function Ea(l,n){return Qs(l.databaseId,n.path)}function ns(l,n){const i=Gr(n);if(i.get(1)!==l.databaseId.projectId)throw new Le(ve.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 Le(ve.INVALID_ARGUMENT,"Tried to deserialize key from different database: "+i.get(3)+" vs "+l.databaseId.database);return new en(Xi(i))}function Wo(l,n){return Qs(l.databaseId,n)}function Ia(l){return new Mn(["projects",l.databaseId.projectId,"databases",l.databaseId.database]).canonicalString()}function Xi(l){return X(l.length>4&&"documents"===l.get(4)),l.popFirst(5)}function Ru(l,n,i){return{name:Ea(l,n),fields:i.value.mapValue.fields}}function Kl(l,n){return{documents:[Wo(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=Wo(l,u);const p=function(q){if(0!==q.length)return Kh(Ti.create(q,"and"))}(n.filters);p&&(i.structuredQuery.where=p);const _=function(q){if(0!==q.length)return q.map(_e=>{return{field:Da((pt=_e).field),direction:ja(pt.dir)};var pt})}(n.orderBy);_&&(i.structuredQuery.orderBy=_);const R=Cs(l,n.limit);return null!==R&&(i.structuredQuery.limit=R),n.startAt&&(i.structuredQuery.startAt={before:(q=n.startAt).inclusive,values:q.position}),n.endAt&&(i.structuredQuery.endAt=function(q){return{before:!q.inclusive,values:q.position}}(n.endAt)),{_t:i,parent:u};var q}function Aa(l){let n=function pl(l){const n=Gr(l);return 4===n.length?Mn.emptyPath():Xi(n)}(l.parent);const i=l.structuredQuery,s=i.from?i.from.length:0;let u=null;if(s>0){X(1===s);const _e=i.from[0];_e.allDescendants?u=_e.collectionId:n=n.child(_e.collectionId)}let p=[];i.where&&(p=function(je){const pt=Ca(je);return pt instanceof Ti&&Bo(pt)?pt.getFilters():[pt]}(i.where));let _=[];i.orderBy&&(_=i.orderBy.map(pt=>{return new ki(za((An=pt).field),function(Sn){switch(Sn){case"ASCENDING":return"asc";case"DESCENDING":return"desc";default:return}}(An.direction));var An}));let R=null;i.limit&&(R=function(je){let pt;return pt="object"==typeof je?je.value:je,qn(pt)?null:pt}(i.limit));let k=null;var je;i.startAt&&(k=new br((je=i.startAt).values||[],!!je.before));let q=null;return i.endAt&&(q=function(je){return new br(je.values||[],!je.before)}(i.endAt)),function N(l,n,i,s,u,p,_,R){return new K(l,n,i,s,u,p,_,R)}(n,u,_,p,R,"F",k,q)}function Ca(l){return void 0!==l.unaryFilter?function(i){switch(i.unaryFilter.op){case"IS_NAN":const s=za(i.unaryFilter.field);return Ur.create(s,"==",{doubleValue:NaN});case"IS_NULL":const u=za(i.unaryFilter.field);return Ur.create(u,"==",{nullValue:"NULL_VALUE"});case"IS_NOT_NAN":const p=za(i.unaryFilter.field);return Ur.create(p,"!=",{doubleValue:NaN});case"IS_NOT_NULL":const _=za(i.unaryFilter.field);return Ur.create(_,"!=",{nullValue:"NULL_VALUE"});default:return H()}}(l):void 0!==l.fieldFilter?Ur.create(za((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 H()}}(i.fieldFilter.op),i.fieldFilter.value):void 0!==l.compositeFilter?function(i){return Ti.create(i.compositeFilter.filters.map(s=>Ca(s)),function(u){switch(u){case"AND":return"and";case"OR":return"or";default:return H()}}(i.compositeFilter.op))}(l):H();var i}function ja(l){return vc[l]}function tg(l){return fl[l]}function Td(l){return Gi[l]}function Da(l){return{fieldPath:l.canonicalString()}}function za(l){return mn.fromServerFormat(l.fieldPath)}function Kh(l){return l instanceof Ur?function(i){if("=="===i.op){if(Et(i.value))return{unaryFilter:{field:Da(i.field),op:"IS_NAN"}};if(wt(i.value))return{unaryFilter:{field:Da(i.field),op:"IS_NULL"}}}else if("!="===i.op){if(Et(i.value))return{unaryFilter:{field:Da(i.field),op:"IS_NOT_NAN"}};if(wt(i.value))return{unaryFilter:{field:Da(i.field),op:"IS_NOT_NULL"}}}return{fieldFilter:{field:Da(i.field),op:tg(i.op),value:i.value}}}(l):l instanceof Ti?function(i){const s=i.getFilters().map(u=>Kh(u));return 1===s.length?s[0]:{compositeFilter:{op:Td(i.op),filters:s}}}(l):H()}function bd(l){const n=[];return l.fields.forEach(i=>n.push(i.canonicalString())),{fieldPaths:n}}function E(l){return l.length>=4&&"projects"===l.get(0)&&"databases"===l.get(2)}class T{constructor(n,i,s,u,p=gn.min(),_=gn.min(),R=oi.EMPTY_BYTE_STRING,k=null){this.target=n,this.targetId=i,this.purpose=s,this.sequenceNumber=u,this.snapshotVersion=p,this.lastLimboFreeSnapshotVersion=_,this.resumeToken=R,this.expectedCount=k}withSequenceNumber(n){return new T(this.target,this.targetId,this.purpose,n,this.snapshotVersion,this.lastLimboFreeSnapshotVersion,this.resumeToken,this.expectedCount)}withResumeToken(n,i){return new T(this.target,this.targetId,this.purpose,this.sequenceNumber,i,this.lastLimboFreeSnapshotVersion,n,null)}withExpectedCount(n){return new T(this.target,this.targetId,this.purpose,this.sequenceNumber,this.snapshotVersion,this.lastLimboFreeSnapshotVersion,this.resumeToken,n)}withLastLimboFreeSnapshotVersion(n){return new T(this.target,this.targetId,this.purpose,this.sequenceNumber,this.snapshotVersion,n,this.resumeToken,this.expectedCount)}}class O{constructor(n){this.ct=n}}function Vr(l){const n=Aa({parent:l.parent,structuredQuery:l.structuredQuery});return"LAST"===l.limitType?So(n,n.limit,"L"):n}class Ta{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(le(n.integerValue));else if("doubleValue"in n){const s=le(n.doubleValue);isNaN(s)?this.Et(i,13):(this.Et(i,15),hn(s)?i.dt(0):i.dt(s))}else if("timestampValue"in n){let s=n.timestampValue;this.Et(i,20),"string"==typeof s&&(s=he(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(W(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?cn(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)):H()}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),en.fromName(n).path.forEach(s=>{this.Et(i,60),this.St(s,i)})}Et(n,i){n.dt(i)}Vt(n){n.dt(2)}}Ta.bt=new Ta;class Ts{constructor(){this._n=new Cc}addToCollectionParentIndex(n,i){return this._n.add(i),pe.resolve()}getCollectionParents(n,i){return pe.resolve(this._n.getEntries(i))}addFieldIndex(n,i){return pe.resolve()}deleteFieldIndex(n,i){return pe.resolve()}deleteAllFieldIndexes(n){return pe.resolve()}createTargetIndexes(n,i){return pe.resolve()}getDocumentsMatchingTarget(n,i){return pe.resolve(null)}getIndexType(n,i){return pe.resolve(0)}getFieldIndexes(n,i){return pe.resolve([])}getNextCollectionGroupToUpdate(n){return pe.resolve(null)}getMinOffset(n,i){return pe.resolve(Pr.min())}getMinOffsetFromCollectionGroup(n,i){return pe.resolve(Pr.min())}updateCollectionGroup(n,i,s){return pe.resolve()}updateIndexEntries(n,i){return pe.resolve()}}class Cc{constructor(){this.index={}}add(n){const i=n.lastSegment(),s=n.popLast(),u=this.index[i]||new Hn(Mn.comparator),p=!u.has(s);return this.index[i]=u.add(s),p}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 Hn(Mn.comparator)).toArray()}}new Uint8Array(0);class gr{constructor(n,i,s){this.cacheSizeCollectionThreshold=n,this.percentileToCollect=i,this.maximumSequenceNumbersToCollect=s}static withCacheSize(n){return new gr(n,gr.DEFAULT_COLLECTION_PERCENTILE,gr.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT)}}gr.DEFAULT_COLLECTION_PERCENTILE=10,gr.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT=1e3,gr.DEFAULT=new gr(41943040,gr.DEFAULT_COLLECTION_PERCENTILE,gr.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT),gr.DISABLED=new gr(-1,0,0);class _l{constructor(n){this.On=n}next(){return this.On+=2,this.On}static Nn(){return new _l(0)}static Ln(){return new _l(-1)}}class na{constructor(){this.changes=new $o(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,jr.newInvalidDocument(n).setReadTime(i))}getEntry(n,i){this.assertNotApplied();const s=this.changes.get(i);return void 0!==s?pe.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 bs{constructor(n,i){this.overlayedDocument=n,this.mutatedFields=i}}class oa{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&&zo(s.mutation,u,Ci.empty(),pn.now()),u))}getDocuments(n,i){return this.remoteDocumentCache.getEntries(n,i).next(s=>this.getLocalViewOfDocuments(n,s,Hr()).next(()=>s))}getLocalViewOfDocuments(n,i,s=Hr()){const u=bi();return this.populateOverlays(n,u,i).next(()=>this.computeViews(n,i,u,s).next(p=>{let _=zi();return p.forEach((R,k)=>{_=_.insert(R,k.overlayedDocument)}),_}))}getOverlayedDocuments(n,i){const s=bi();return this.populateOverlays(n,s,i).next(()=>this.computeViews(n,i,s,Hr()))}populateOverlays(n,i,s){const u=[];return s.forEach(p=>{i.has(p)||u.push(p)}),this.documentOverlayCache.getOverlays(n,u).next(p=>{p.forEach((_,R)=>{i.set(_,R)})})}computeViews(n,i,s,u){let p=Rr();const _=jo(),R=jo();return i.forEach((k,q)=>{const _e=s.get(q.key);u.has(q.key)&&(void 0===_e||_e.mutation instanceof lo)?p=p.insert(q.key,q):void 0!==_e?(_.set(q.key,_e.mutation.getFieldMask()),zo(_e.mutation,q,_e.mutation.getFieldMask(),pn.now())):_.set(q.key,Ci.empty())}),this.recalculateAndSaveOverlays(n,p).next(k=>(k.forEach((q,_e)=>_.set(q,_e)),i.forEach((q,_e)=>{var je;return R.set(q,new bs(_e,null!==(je=_.get(q))&&void 0!==je?je:null))}),R))}recalculateAndSaveOverlays(n,i){const s=jo();let u=new Lr((_,R)=>_-R),p=Hr();return this.mutationQueue.getAllMutationBatchesAffectingDocumentKeys(n,i).next(_=>{for(const R of _)R.keys().forEach(k=>{const q=i.get(k);if(null===q)return;let _e=s.get(k)||Ci.empty();_e=R.applyToLocalView(q,_e),s.set(k,_e);const je=(u.get(R.batchId)||Hr()).add(k);u=u.insert(R.batchId,je)})}).next(()=>{const _=[],R=u.getReverseIterator();for(;R.hasNext();){const k=R.getNext(),q=k.key,_e=k.value,je=La();_e.forEach(pt=>{if(!p.has(pt)){const Ht=ma(i.get(pt),s.get(pt));null!==Ht&&je.set(pt,Ht),p=p.add(pt)}}),_.push(this.documentOverlayCache.saveOverlays(n,q,je))}return pe.waitFor(_)}).next(()=>s)}recalculateAndSaveOverlaysForDocumentKeys(n,i){return this.remoteDocumentCache.getEntries(n,i).next(s=>this.recalculateAndSaveOverlays(n,s))}getDocumentsMatchingQuery(n,i,s,u){return en.isDocumentKey((_=i).path)&&null===_.collectionGroup&&0===_.filters.length?this.getDocumentsMatchingDocumentQuery(n,i.path):function ke(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(p=>{const _=u-p.size>0?this.documentOverlayCache.getOverlaysForCollectionGroup(n,i,s.largestBatchId,u-p.size):pe.resolve(bi());let R=-1,k=p;return _.next(q=>pe.forEach(q,(_e,je)=>(R{k=k.insert(_e,pt)}))).next(()=>this.populateOverlays(n,q,p)).next(()=>this.computeViews(n,k,q,Hr())).next(_e=>({batchId:R,changes:po(_e)})))})}getDocumentsMatchingDocumentQuery(n,i){return this.getDocument(n,new en(i)).next(s=>{let u=zi();return s.isFoundDocument()&&(u=u.insert(s.key,s)),u})}getDocumentsMatchingCollectionGroupQuery(n,i,s,u){const p=i.collectionGroup;let _=zi();return this.indexManager.getCollectionParents(n,p).next(R=>pe.forEach(R,k=>{const q=(je=i,pt=k.child(p),new K(pt,null,je.explicitOrderBy.slice(),je.filters.slice(),je.limit,je.limitType,je.startAt,je.endAt));var je,pt;return this.getDocumentsMatchingCollectionQuery(n,q,s,u).next(_e=>{_e.forEach((je,pt)=>{_=_.insert(je,pt)})})}).next(()=>_))}getDocumentsMatchingCollectionQuery(n,i,s,u){let p;return this.documentOverlayCache.getOverlaysForCollection(n,i.path,s.largestBatchId).next(_=>(p=_,this.remoteDocumentCache.getDocumentsMatchingQuery(n,i,s,p,u))).next(_=>{p.forEach((k,q)=>{const _e=q.getKey();null===_.get(_e)&&(_=_.insert(_e,jr.newInvalidDocument(_e)))});let R=zi();return _.forEach((k,q)=>{const _e=p.get(k);void 0!==_e&&zo(_e.mutation,q,Ci.empty(),pn.now()),Gs(i,q)&&(R=R.insert(k,q))}),R})}}class og{constructor(n){this.serializer=n,this.cr=new Map,this.lr=new Map}getBundleMetadata(n,i){return pe.resolve(this.cr.get(i))}saveBundleMetadata(n,i){return this.cr.set(i.id,{id:(u=i).id,version:u.version,createTime:Mi(u.createTime)}),pe.resolve();var u}getNamedQuery(n,i){return pe.resolve(this.lr.get(i))}saveNamedQuery(n,i){return this.lr.set(i.name,{name:(u=i).name,query:Vr(u.bundledQuery),readTime:Mi(u.readTime)}),pe.resolve();var u}}class Sc{constructor(){this.overlays=new Lr(en.comparator),this.hr=new Map}getOverlay(n,i){return pe.resolve(this.overlays.get(i))}getOverlays(n,i){const s=bi();return pe.forEach(i,u=>this.getOverlay(n,u).next(p=>{null!==p&&s.set(u,p)})).next(()=>s)}saveOverlays(n,i,s){return s.forEach((u,p)=>{this.ht(n,i,p)}),pe.resolve()}removeOverlaysForBatchId(n,i,s){const u=this.hr.get(s);return void 0!==u&&(u.forEach(p=>this.overlays=this.overlays.remove(p)),this.hr.delete(s)),pe.resolve()}getOverlaysForCollection(n,i,s){const u=bi(),p=i.length+1,_=new en(i.child("")),R=this.overlays.getIteratorFrom(_);for(;R.hasNext();){const k=R.getNext().value,q=k.getKey();if(!i.isPrefixOf(q.path))break;q.path.length===p&&k.largestBatchId>s&&u.set(k.getKey(),k)}return pe.resolve(u)}getOverlaysForCollectionGroup(n,i,s,u){let p=new Lr((q,_e)=>q-_e);const _=this.overlays.getIterator();for(;_.hasNext();){const q=_.getNext().value;if(q.getKey().getCollectionGroup()===i&&q.largestBatchId>s){let _e=p.get(q.largestBatchId);null===_e&&(_e=bi(),p=p.insert(q.largestBatchId,_e)),_e.set(q.getKey(),q)}}const R=bi(),k=p.getIterator();for(;k.hasNext()&&(k.getNext().value.forEach((q,_e)=>R.set(q,_e)),!(R.size()>=u)););return pe.resolve(R)}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 p=this.hr.get(i);void 0===p&&(p=Hr(),this.hr.set(i,p)),this.hr.set(i,p.add(s.key))}}class xd{constructor(){this.Pr=new Hn(To.Ir),this.Tr=new Hn(To.Er)}isEmpty(){return this.Pr.isEmpty()}addReference(n,i){const s=new To(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 To(n,i))}Rr(n,i){n.forEach(s=>this.removeReference(s,i))}Vr(n){const i=new en(new Mn([])),s=new To(i,n),u=new To(i,n+1),p=[];return this.Tr.forEachInRange([s,u],_=>{this.Ar(_),p.push(_.key)}),p}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 en(new Mn([])),s=new To(i,n),u=new To(i,n+1);let p=Hr();return this.Tr.forEachInRange([s,u],_=>{p=p.add(_.key)}),p}containsKey(n){const i=new To(n,0),s=this.Pr.firstAfterOrEqual(i);return null!==s&&n.isEqual(s.key)}}class To{constructor(n,i){this.key=n,this.pr=i}static Ir(n,i){return en.comparator(n.key,i.key)||nt(n.pr,i.pr)}static Er(n,i){return nt(n.pr,i.pr)||en.comparator(n.key,i.key)}}class Od{constructor(n,i){this.indexManager=n,this.referenceDelegate=i,this.mutationQueue=[],this.yr=1,this.wr=new Hn(To.Ir)}checkEmpty(n){return pe.resolve(0===this.mutationQueue.length)}addMutationBatch(n,i,s,u){const p=this.yr;this.yr++;const _=new F(p,i,s,u);this.mutationQueue.push(_);for(const R of u)this.wr=this.wr.add(new To(R.key,p)),this.indexManager.addToCollectionParentIndex(n,R.key.path.popLast());return pe.resolve(_)}lookupMutationBatch(n,i){return pe.resolve(this.Sr(i))}getNextMutationBatchAfterBatchId(n,i){const u=this.br(i+1),p=u<0?0:u;return pe.resolve(this.mutationQueue.length>p?this.mutationQueue[p]:null)}getHighestUnacknowledgedBatchId(){return pe.resolve(0===this.mutationQueue.length?-1:this.yr-1)}getAllMutationBatches(n){return pe.resolve(this.mutationQueue.slice())}getAllMutationBatchesAffectingDocumentKey(n,i){const s=new To(i,0),u=new To(i,Number.POSITIVE_INFINITY),p=[];return this.wr.forEachInRange([s,u],_=>{const R=this.Sr(_.pr);p.push(R)}),pe.resolve(p)}getAllMutationBatchesAffectingDocumentKeys(n,i){let s=new Hn(nt);return i.forEach(u=>{const p=new To(u,0),_=new To(u,Number.POSITIVE_INFINITY);this.wr.forEachInRange([p,_],R=>{s=s.add(R.pr)})}),pe.resolve(this.Dr(s))}getAllMutationBatchesAffectingQuery(n,i){const s=i.path,u=s.length+1;let p=s;en.isDocumentKey(p)||(p=p.child(""));const _=new To(new en(p),0);let R=new Hn(nt);return this.wr.forEachWhile(k=>{const q=k.key.path;return!!s.isPrefixOf(q)&&(q.length===u&&(R=R.add(k.pr)),!0)},_),pe.resolve(this.Dr(R))}Dr(n){const i=[];return n.forEach(s=>{const u=this.Sr(s);null!==u&&i.push(u)}),i}removeMutationBatch(n,i){X(0===this.Cr(i.batchId,"removed")),this.mutationQueue.shift();let s=this.wr;return pe.forEach(i.mutations,u=>{const p=new To(u.key,i.batchId);return s=s.delete(p),this.referenceDelegate.markPotentiallyOrphaned(n,u.key)}).next(()=>{this.wr=s})}Mn(n){}containsKey(n,i){const s=new To(i,0),u=this.wr.firstAfterOrEqual(s);return pe.resolve(i.isEqual(u&&u.key))}performConsistencyCheck(n){return pe.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 ku{constructor(n){this.vr=n,this.docs=new Lr(en.comparator),this.size=0}setIndexManager(n){this.indexManager=n}addEntry(n,i){const s=i.key,u=this.docs.get(s),p=u?u.size:0,_=this.vr(i);return this.docs=this.docs.insert(s,{document:i.mutableCopy(),size:_}),this.size+=_-p,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 pe.resolve(s?s.document.mutableCopy():jr.newInvalidDocument(i))}getEntries(n,i){let s=Rr();return i.forEach(u=>{const p=this.docs.get(u);s=s.insert(u,p?p.document.mutableCopy():jr.newInvalidDocument(u))}),pe.resolve(s)}getDocumentsMatchingQuery(n,i,s,u){let p=Rr();const _=i.path,R=new en(_.child("")),k=this.docs.getIteratorFrom(R);for(;k.hasNext();){const{key:q,value:{document:_e}}=k.getNext();if(!_.isPrefixOf(q.path))break;q.path.length>_.length+1||cr(new Pr((l=_e).readTime,l.key,-1),s)<=0||(u.has(_e.key)||Gs(i,_e))&&(p=p.insert(_e.key,_e.mutableCopy()))}var l;return pe.resolve(p)}getAllFromCollectionGroup(n,i,s,u){H()}Fr(n,i){return pe.forEach(this.docs,s=>i(s))}newChangeBuffer(n){return new Nd(this)}getSize(n){return pe.resolve(this.size)}}class Nd extends na{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)}),pe.waitFor(i)}getFromCache(n,i){return this.ar.getEntry(n,i)}getAllFromCache(n,i){return this.ar.getEntries(n,i)}}class Rc{constructor(n){this.persistence=n,this.Mr=new $o(i=>xs(i),Ao),this.lastRemoteSnapshotVersion=gn.min(),this.highestTargetId=0,this.Or=0,this.Nr=new xd,this.targetCount=0,this.Lr=_l.Nn()}forEachTarget(n,i){return this.Mr.forEach((s,u)=>i(u)),pe.resolve()}getLastRemoteSnapshotVersion(n){return pe.resolve(this.lastRemoteSnapshotVersion)}getHighestSequenceNumber(n){return pe.resolve(this.Or)}allocateTargetId(n){return this.highestTargetId=this.Lr.next(),pe.resolve(this.highestTargetId)}setTargetsMetadata(n,i,s){return s&&(this.lastRemoteSnapshotVersion=s),i>this.Or&&(this.Or=i),pe.resolve()}qn(n){this.Mr.set(n.target,n);const i=n.targetId;i>this.highestTargetId&&(this.Lr=new _l(i),this.highestTargetId=i),n.sequenceNumber>this.Or&&(this.Or=n.sequenceNumber)}addTargetData(n,i){return this.qn(i),this.targetCount+=1,pe.resolve()}updateTargetData(n,i){return this.qn(i),pe.resolve()}removeTargetData(n,i){return this.Mr.delete(i.target),this.Nr.Vr(i.targetId),this.targetCount-=1,pe.resolve()}removeTargets(n,i,s){let u=0;const p=[];return this.Mr.forEach((_,R)=>{R.sequenceNumber<=i&&null===s.get(R.targetId)&&(this.Mr.delete(_),p.push(this.removeMatchingKeysForTargetId(n,R.targetId)),u++)}),pe.waitFor(p).next(()=>u)}getTargetCount(n){return pe.resolve(this.targetCount)}getTargetData(n,i){const s=this.Mr.get(i)||null;return pe.resolve(s)}addMatchingKeys(n,i,s){return this.Nr.dr(i,s),pe.resolve()}removeMatchingKeys(n,i,s){this.Nr.Rr(i,s);const u=this.persistence.referenceDelegate,p=[];return u&&i.forEach(_=>{p.push(u.markPotentiallyOrphaned(n,_))}),pe.waitFor(p)}removeMatchingKeysForTargetId(n,i){return this.Nr.Vr(i),pe.resolve()}getMatchingKeysForTargetId(n,i){const s=this.Nr.gr(i);return pe.resolve(s)}containsKey(n,i){return pe.resolve(this.Nr.containsKey(i))}}class Mc{constructor(n,i){this.Br={},this.overlays={},this.kr=new _n(0),this.qr=!1,this.qr=!0,this.referenceDelegate=n(this),this.Qr=new Rc(this),this.indexManager=new Ts,this.remoteDocumentCache=new ku(s=>this.referenceDelegate.Kr(s)),this.serializer=new O(i),this.$r=new og(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 Sc,this.overlays[n.toKey()]=i),i}getMutationQueue(n,i){let s=this.Br[n.toKey()];return s||(s=new Od(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){tt("MemoryPersistence","Starting transaction:",n);const u=new Jh(this.kr.next());return this.referenceDelegate.Ur(),s(u).next(p=>this.referenceDelegate.Wr(u).next(()=>p)).toPromise().then(p=>(u.raiseOnCommittedEvent(),p))}Gr(n,i){return pe.or(Object.values(this.Br).map(s=>()=>s.containsKey(n,i)))}}class Jh extends ii{constructor(n){super(),this.currentSequenceNumber=n}}class Sa{constructor(n){this.persistence=n,this.zr=new xd,this.jr=null}static Hr(n){return new Sa(n)}get Jr(){if(this.jr)return this.jr;throw H()}addReference(n,i,s){return this.zr.addReference(s,i),this.Jr.delete(s.toString()),pe.resolve()}removeReference(n,i,s){return this.zr.removeReference(s,i),this.Jr.add(s.toString()),pe.resolve()}markPotentiallyOrphaned(n,i){return this.Jr.add(i.toString()),pe.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(p=>this.Jr.add(p.toString()))}).next(()=>s.removeTargetData(n,i))}Ur(){this.jr=new Set}Wr(n){const i=this.persistence.getRemoteDocumentCache().newChangeBuffer();return pe.forEach(this.Jr,s=>{const u=en.fromPath(s);return this.Yr(n,u).next(p=>{p||i.removeEntry(u,gn.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 pe.or([()=>pe.resolve(this.zr.containsKey(i)),()=>this.persistence.getTargetCache().containsKey(n,i),()=>this.persistence.Gr(n,i)])}}class Fi{constructor(n,i,s,u){this.targetId=n,this.fromCache=i,this.qi=s,this.Qi=u}static Ki(n,i){let s=Hr(),u=Hr();for(const p of i.docChanges)switch(p.type){case 0:s=s.add(p.doc.key);break;case 1:u=u.add(p.doc.key)}return new Fi(n,i.fromCache,s,u)}}class ef{constructor(){this._documentReadCount=0}get documentReadCount(){return this._documentReadCount}incrementDocumentReadCount(n){this._documentReadCount+=n}}class tf{constructor(){this.$i=!1,this.Ui=!1,this.Wi=100,this.Gi=(0,Se.nr)()?8:function ut(l){const n=l.match(/Android ([\d.]+)/i),i=n?n[1].split(".").slice(0,2).join("."):"-1";return Number(i)}((0,Se.ZQ)())>0?6:4}initialize(n,i){this.zi=n,this.indexManager=i,this.$i=!0}getDocumentsMatchingQuery(n,i,s,u){const p={result:null};return this.ji(n,i).next(_=>{p.result=_}).next(()=>{if(!p.result)return this.Hi(n,i,u,s).next(_=>{p.result=_})}).next(()=>{if(p.result)return;const _=new ef;return this.Ji(n,i,_).next(R=>{if(p.result=R,this.Ui)return this.Yi(n,i,_,R.size)})}).next(()=>p.result)}Yi(n,i,s,u){return s.documentReadCountthis.Gi*u?(vn()<=Je.$b.DEBUG&&tt("QueryEngine","The SDK decides to create cache indexes for query:",_s(i),"as using cache indexes may help improve performance."),this.indexManager.createTargetIndexes(n,Xn(i))):pe.resolve())}ji(n,i){if(G(i))return pe.resolve(null);let s=Xn(i);return this.indexManager.getIndexType(n,s).next(u=>0===u?null:(null!==i.limit&&1===u&&(i=So(i,null,"F"),s=Xn(i)),this.indexManager.getDocumentsMatchingTarget(n,s).next(p=>{const _=Hr(...p);return this.zi.getDocuments(n,_).next(R=>this.indexManager.getMinOffset(n,s).next(k=>{const q=this.Zi(i,R);return this.Xi(i,q,_,k.readTime)?this.ji(n,So(i,null,"F")):this.es(n,q,i,k)}))})))}Hi(n,i,s,u){return G(i)||u.isEqual(gn.min())?pe.resolve(null):this.zi.getDocuments(n,s).next(p=>{const _=this.Zi(i,p);return this.Xi(i,_,s,u)?pe.resolve(null):(vn()<=Je.$b.DEBUG&&tt("QueryEngine","Re-using previous result from %s to execute query: %s",u.toString(),_s(i)),this.es(n,_,i,function mr(l,n){const i=l.toTimestamp().seconds,s=l.toTimestamp().nanoseconds+1,u=gn.fromTimestamp(1e9===s?new pn(i+1,0):new pn(i,s));return new Pr(u,en.empty(),n)}(u,-1)).next(R=>R))})}Zi(n,i){let s=new Hn(ul(n));return i.forEach((u,p)=>{Gs(n,p)&&(s=s.add(p))}),s}Xi(n,i,s,u){if(null===n.limit)return!1;if(s.size!==i.size)return!0;const p="F"===n.limitType?i.last():i.first();return!!p&&(p.hasPendingWrites||p.version.compareTo(u)>0)}Ji(n,i,s){return vn()<=Je.$b.DEBUG&&tt("QueryEngine","Using full collection scan to execute query:",_s(i)),this.zi.getDocumentsMatchingQuery(n,i,Pr.min(),s)}es(n,i,s,u){return this.zi.getDocumentsMatchingQuery(n,s,u).next(p=>(i.forEach(_=>{p=p.insert(_.key,_)}),p))}}class sg{constructor(n,i,s,u){this.persistence=n,this.ts=i,this.serializer=u,this.ns=new Lr(nt),this.rs=new $o(p=>xs(p),Ao),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 oa(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 Fd(l,n){return Bu.apply(this,arguments)}function Bu(){return(Bu=(0,ue.A)(function*(l,n){const i=se(l);return yield i.persistence.runTransaction("Handle user change","readonly",s=>{let u;return i.mutationQueue.getAllMutationBatches(s).next(p=>(u=p,i._s(n),i.mutationQueue.getAllMutationBatches(s))).next(p=>{const _=[],R=[];let k=Hr();for(const q of u){_.push(q.batchId);for(const _e of q.mutations)k=k.add(_e.key)}for(const q of p){R.push(q.batchId);for(const _e of q.mutations)k=k.add(_e.key)}return i.localDocuments.getDocuments(s,k).next(q=>({us:q,removedBatchIds:_,addedBatchIds:R}))})})})).apply(this,arguments)}function Vs(l){const n=se(l);return n.persistence.runTransaction("Get last remote snapshot version","readonly",i=>n.Qr.getLastRemoteSnapshotVersion(i))}function xc(l,n){const i=se(l);return i.persistence.runTransaction("Get next mutation batch","readonly",s=>(void 0===n&&(n=-1),i.mutationQueue.getNextMutationBatchAfterBatchId(s,n)))}function aa(l,n,i){return Oc.apply(this,arguments)}function Oc(){return(Oc=(0,ue.A)(function*(l,n,i){const s=se(l),u=s.ns.get(n),p=i?"readwrite":"readwrite-primary";try{i||(yield s.persistence.runTransaction("Release target",p,_=>s.persistence.referenceDelegate.removeTarget(_,u)))}catch(_){if(!He(_))throw _;tt("LocalStore",`Failed to update sequence numbers for target ${n}: ${_}`)}s.ns=s.ns.remove(n),s.rs.delete(u.target)})).apply(this,arguments)}function El(l,n,i){const s=se(l);let u=gn.min(),p=Hr();return s.persistence.runTransaction("Execute query","readwrite",_=>function(k,q,_e){const je=se(k),pt=je.rs.get(_e);return void 0!==pt?pe.resolve(je.ns.get(pt)):je.Qr.getTargetData(q,_e)}(s,_,Xn(n)).next(R=>{if(R)return u=R.lastLimboFreeSnapshotVersion,s.Qr.getMatchingKeysForTargetId(_,R.targetId).next(k=>{p=k})}).next(()=>s.ts.getDocumentsMatchingQuery(_,n,i?u:gn.min(),i?p:Hr())).next(R=>(function Al(l,n,i){let s=l.ss.get(n)||gn.min();i.forEach((u,p)=>{p.readTime.compareTo(s)>0&&(s=p.readTime)}),l.ss.set(n,s)}(s,function fa(l){return l.collectionGroup||(l.path.length%2==1?l.path.lastSegment():l.path.get(l.path.length-2))}(n),R),{documents:R,hs:p})))}class zu{constructor(){this.activeTargetIds=function Ws(){return dl}()}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 af{constructor(){this.no=new zu,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 zu,Promise.resolve()}handleUserChange(n,i,s){}setOnlineState(n){}shutdown(){}writeSequenceNumber(n){}notifyBundleLoaded(n){}}class lf{io(n){}shutdown(){}}class Bd{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(){tt("ConnectivityMonitor","Network connectivity changed: AVAILABLE");for(const n of this.uo)n(0)}ao(){tt("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 Lc=null;function ws(){return null===Lc?Lc=268435456+Math.round(2147483648*Math.random()):Lc++,"0x"+Lc.toString(16)}const hv={BatchGetDocuments:"batchGet",Commit:"commit",RunQuery:"runQuery",RunAggregationQuery:"runAggregationQuery"};class Hu{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 Mo="WebChannelConnection";class Ud extends class{constructor(i){this.databaseInfo=i,this.databaseId=i.databaseId;const s=i.ssl?"https":"http",u=encodeURIComponent(this.databaseId.projectId),p=encodeURIComponent(this.databaseId.database);this.wo=s+"://"+i.host,this.So=`projects/${u}/databases/${p}`,this.bo="(default)"===this.databaseId.database?`project_id=${u}`:`project_id=${u}&database_id=${p}`}get Do(){return!1}Co(i,s,u,p,_){const R=ws(),k=this.vo(i,s.toUriEncodedString());tt("RestConnection",`Sending RPC '${i}' ${R}:`,k,u);const q={"google-cloud-resource-prefix":this.So,"x-goog-request-params":this.bo};return this.Fo(q,p,_),this.Mo(i,k,q,u).then(_e=>(tt("RestConnection",`Received RPC '${i}' ${R}: `,_e),_e),_e=>{throw dt("RestConnection",`RPC '${i}' ${R} failed with error: `,_e,"url: ",k,"request:",u),_e})}xo(i,s,u,p,_,R){return this.Co(i,s,u,p,_)}Fo(i,s,u){i["X-Goog-Api-Client"]="gl-js/ fire/"+at,i["Content-Type"]="text/plain",this.databaseInfo.appId&&(i["X-Firebase-GMPID"]=this.databaseInfo.appId),s&&s.headers.forEach((p,_)=>i[_]=p),u&&u.headers.forEach((p,_)=>i[_]=p)}vo(i,s){return`${this.wo}/v1/${s}:${hv[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 p=ws();return new Promise((_,R)=>{const k=new St;k.setWithCredentials(!0),k.listenOnce(yt.COMPLETE,()=>{try{switch(k.getLastErrorCode()){case mt.NO_ERROR:const _e=k.getResponseJson();tt(Mo,`XHR for RPC '${n}' ${p} received:`,JSON.stringify(_e)),_(_e);break;case mt.TIMEOUT:tt(Mo,`RPC '${n}' ${p} timed out`),R(new Le(ve.DEADLINE_EXCEEDED,"Request time out"));break;case mt.HTTP_ERROR:const je=k.getStatus();if(tt(Mo,`RPC '${n}' ${p} failed with status:`,je,"response text:",k.getResponseText()),je>0){let pt=k.getResponseJson();Array.isArray(pt)&&(pt=pt[0]);const Ht=null==pt?void 0:pt.error;if(Ht&&Ht.status&&Ht.message){const An=function(Sn){const hr=Sn.toLowerCase().replace(/_/g,"-");return Object.values(ve).indexOf(hr)>=0?hr:ve.UNKNOWN}(Ht.status);R(new Le(An,Ht.message))}else R(new Le(ve.UNKNOWN,"Server responded with status "+k.getStatus()))}else R(new Le(ve.UNAVAILABLE,"Connection failed."));break;default:H()}}finally{tt(Mo,`RPC '${n}' ${p} completed.`)}});const q=JSON.stringify(u);tt(Mo,`RPC '${n}' ${p} sending request:`,u),k.send(i,"POST",q,s,15)})}Oo(n,i,s){const u=ws(),p=[this.wo,"/","google.firestore.v1.Firestore","/",n,"/channel"],_=Ue(),R=ge(),k={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},q=this.longPollingOptions.timeoutSeconds;void 0!==q&&(k.longPollingTimeout=Math.round(1e3*q)),this.useFetchStreams&&(k.xmlHttpFactory=new _t({})),this.Fo(k.initMessageHeaders,i,s),k.encodeInitMessageHeaders=!0;const _e=p.join("");tt(Mo,`Creating RPC '${n}' stream ${u}: ${_e}`,k);const je=_.createWebChannel(_e,k);let pt=!1,Ht=!1;const An=new Hu({lo:Sn=>{Ht?tt(Mo,`Not sending because RPC '${n}' stream ${u} is closed:`,Sn):(pt||(tt(Mo,`Opening RPC '${n}' stream ${u} transport.`),je.open(),pt=!0),tt(Mo,`RPC '${n}' stream ${u} sending:`,Sn),je.send(Sn))},ho:()=>je.close()}),kn=(Sn,hr,Mr)=>{Sn.listen(hr,_r=>{try{Mr(_r)}catch(Yr){setTimeout(()=>{throw Yr},0)}})};return kn(je,Tt.EventType.OPEN,()=>{Ht||(tt(Mo,`RPC '${n}' stream ${u} transport opened.`),An.mo())}),kn(je,Tt.EventType.CLOSE,()=>{Ht||(Ht=!0,tt(Mo,`RPC '${n}' stream ${u} transport closed`),An.po())}),kn(je,Tt.EventType.ERROR,Sn=>{Ht||(Ht=!0,dt(Mo,`RPC '${n}' stream ${u} transport errored:`,Sn),An.po(new Le(ve.UNAVAILABLE,"The operation could not be completed")))}),kn(je,Tt.EventType.MESSAGE,Sn=>{var hr;if(!Ht){const Mr=Sn.data[0];X(!!Mr);const Yr=Mr.error||(null===(hr=Mr[0])||void 0===hr?void 0:hr.error);if(Yr){tt(Mo,`RPC '${n}' stream ${u} received error:`,Yr);const Li=Yr.status;let fi=function(It){const kt=ar[It];if(void 0!==kt)return Xr(kt)}(Li),xt=Yr.message;void 0===fi&&(fi=ve.INTERNAL,xt="Unknown error status: "+Li+" with message "+Yr.message),Ht=!0,An.po(new Le(fi,xt)),je.close()}else tt(Mo,`RPC '${n}' stream ${u} received:`,Mr),An.yo(Mr)}}),kn(R,Ye.STAT_EVENT,Sn=>{Sn.stat===Me.PROXY?tt(Mo,`RPC '${n}' stream ${u} detected buffering proxy`):Sn.stat===Me.NOPROXY&&tt(Mo,`RPC '${n}' stream ${u} detected no buffering proxy`)}),setTimeout(()=>{An.fo()},0),An}}function Tl(){return typeof document<"u"?document:null}function Vc(l){return new Co(l,!0)}class tu{constructor(n,i,s=1e3,u=1.5,p=6e4){this.oi=n,this.timerId=i,this.No=s,this.Lo=u,this.Bo=p,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&&tt("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 $d{constructor(n,i,s,u,p,_,R,k){this.oi=n,this.Go=s,this.zo=u,this.connection=p,this.authCredentialsProvider=_,this.appCheckCredentialsProvider=R,this.listener=k,this.state=0,this.jo=0,this.Ho=null,this.Jo=null,this.stream=null,this.Yo=new tu(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,ue.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,ue.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,ue.A)(function*(){s.s_(),s.o_(),s.Yo.cancel(),s.jo++,4!==n?s.Yo.reset():i&&i.code===ve.RESOURCE_EXHAUSTED?(on(i.toString()),on("Using maximum backoff delay to prevent overloading the backend."),s.Yo.Ko()):i&&i.code===ve.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 Le(ve.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,ue.A)(function*(){n.state=0,n.start()}))}c_(n){return tt("PersistentStream",`close with error: ${n}`),this.stream=null,this.close(4,n)}a_(n){return i=>{this.oi.enqueueAndForget(()=>this.jo===n?i():(tt("PersistentStream","stream callback skipped by getCloseGuardedDispatcher."),Promise.resolve()))}}}class uf extends $d{constructor(n,i,s,u,p,_){super(n,"listen_stream_connection_backoff","listen_stream_idle","health_check_timeout",i,s,u,_),this.serializer=p}l_(n,i){return this.connection.Oo("Listen",n,i)}onMessage(n){this.Yo.reset();const i=function Wl(l,n){let i;if("targetChange"in n){const s="NO_CHANGE"===(q=n.targetChange.targetChangeType||"NO_CHANGE")?0:"ADD"===q?1:"REMOVE"===q?2:"CURRENT"===q?3:"RESET"===q?4:H(),u=n.targetChange.targetIds||[],p=function(q,_e){return q.useProto3Json?(X(void 0===_e||"string"==typeof _e),oi.fromBase64String(_e||"")):(X(void 0===_e||_e instanceof Buffer||_e instanceof Uint8Array),oi.fromUint8Array(_e||new Uint8Array))}(l,n.targetChange.resumeToken),_=n.targetChange.cause,R=_&&function(q){const _e=void 0===q.code?ve.UNKNOWN:Xr(q.code);return new Le(_e,q.message||"")}(_);i=new _i(s,u,p,R||null)}else if("documentChange"in n){const s=n.documentChange,u=ns(l,s.document.name),p=Mi(s.document.updateTime),_=s.document.createTime?Mi(s.document.createTime):gn.min(),R=new Vn({mapValue:{fields:s.document.fields}}),k=jr.newFoundDocument(u,p,_,R);i=new Qi(s.targetIds||[],s.removedTargetIds||[],k.key,k)}else if("documentDelete"in n){const s=n.documentDelete,u=ns(l,s.document),p=s.readTime?Mi(s.readTime):gn.min(),_=jr.newNoDocument(u,p);i=new Qi([],s.removedTargetIds||[],_.key,_)}else if("documentRemove"in n){const s=n.documentRemove,u=ns(l,s.document);i=new Qi([],s.removedTargetIds||[],u,null)}else{if(!("filter"in n))return H();{const s=n.filter,{count:u=0,unchangedNames:p}=s,_=new wn(u,p);i=new Ho(s.targetId,_)}}var q;return i}(this.serializer,n),s=function(p){if(!("targetChange"in p))return gn.min();const _=p.targetChange;return _.targetIds&&_.targetIds.length?gn.min():_.readTime?Mi(_.readTime):gn.min()}(n);return this.listener.h_(i,s)}P_(n){const i={};i.database=Ia(this.serializer),i.addTarget=function(p,_){let R;const k=_.target;if(R=Fo(k)?{documents:Kl(p,k)}:{query:gl(p,k)._t},R.targetId=_.targetId,_.resumeToken.approximateByteSize()>0){R.resumeToken=qs(p,_.resumeToken);const q=Cs(p,_.expectedCount);null!==q&&(R.expectedCount=q)}else if(_.snapshotVersion.compareTo(gn.min())>0){R.readTime=Go(p,_.snapshotVersion.toTimestamp());const q=Cs(p,_.expectedCount);null!==q&&(R.expectedCount=q)}return R}(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 H()}}(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=Ia(this.serializer),i.removeTarget=n,this.i_(i)}}class cf extends $d{constructor(n,i,s,u,p,_){super(n,"write_stream_connection_backoff","write_stream_idle","health_check_timeout",i,s,u,_),this.serializer=p,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(X(!!n.streamToken),this.lastStreamToken=n.streamToken,this.T_){this.Yo.reset();const i=function ds(l,n){return l&&l.length>0?(X(void 0!==n),l.map(i=>function(u,p){let _=Mi(u.updateTime?u.updateTime:p);return _.isEqual(gn.min())&&(_=Mi(p)),new Ns(_,u.transformResults||[])}(i,n))):[]}(n.writeResults,n.commitTime),s=Mi(n.commitTime);return this.listener.A_(s,i)}return X(!n.writeResults||0===n.writeResults.length),this.T_=!0,this.listener.R_()}V_(){const n={};n.database=Ia(this.serializer),this.i_(n)}d_(n){const i={streamToken:this.lastStreamToken,writes:n.map(s=>function rs(l,n){let i;if(n instanceof Ks)i={update:Ru(l,n.key,n.value)};else if(n instanceof $)i={delete:Ea(l,n.key)};else if(n instanceof lo)i={update:Ru(l,n.key,n.data),updateMask:bd(n.fieldMask)};else{if(!(n instanceof Be))return H();i={verify:Ea(l,n.key)}}return n.fieldTransforms.length>0&&(i.updateTransforms=n.fieldTransforms.map(s=>function(p,_){const R=_.transform;if(R instanceof Is)return{fieldPath:_.field.canonicalString(),setToServerValue:"REQUEST_TIME"};if(R instanceof Os)return{fieldPath:_.field.canonicalString(),appendMissingElements:{values:R.elements}};if(R instanceof As)return{fieldPath:_.field.canonicalString(),removeAllFromArray:{values:R.elements}};if(R instanceof es)return{fieldPath:_.field.canonicalString(),increment:R.Pe};throw H()}(0,s))),n.precondition.isNone||(i.currentDocument=void 0!==(p=n.precondition).updateTime?{updateTime:_c(l,p.updateTime)}:void 0!==p.exists?{exists:p.exists}:H()),i;var p}(this.serializer,s))};this.i_(i)}}class lg 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 Le(ve.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(([p,_])=>this.connection.Co(n,cs(i,s),u,p,_)).catch(p=>{throw"FirebaseError"===p.name?(p.code===ve.UNAUTHENTICATED&&(this.authCredentials.invalidateToken(),this.appCheckCredentials.invalidateToken()),p):new Le(ve.UNKNOWN,p.toString())})}xo(n,i,s,u,p){return this.f_(),Promise.all([this.authCredentials.getToken(),this.appCheckCredentials.getToken()]).then(([_,R])=>this.connection.xo(n,cs(i,s),u,_,R,p)).catch(_=>{throw"FirebaseError"===_.name?(_.code===ve.UNAUTHENTICATED&&(this.authCredentials.invalidateToken(),this.appCheckCredentials.invalidateToken()),_):new Le(ve.UNKNOWN,_.toString())})}terminate(){this.m_=!0,this.connection.terminate()}}class jd{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_?(on(i),this.y_=!1):tt("OnlineStateTracker",i)}C_(){null!==this.p_&&(this.p_.cancel(),this.p_=null)}}class bl{constructor(n,i,s,u,p){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_=p,this.O_.io(R=>{s.enqueueAndForget((0,ue.A)(function*(){var k;Ja(_)&&(tt("RemoteStore","Restarting streams for network reachability change."),yield(k=(0,ue.A)(function*(_e){const je=se(_e);je.M_.add(4),yield nu(je),je.N_.set("Unknown"),je.M_.delete(4),yield Bc(je)}),function q(_e){return k.apply(this,arguments)})(_))}))}),this.N_=new jd(s,u)}}function Bc(l){return Uc.apply(this,arguments)}function Uc(){return(Uc=(0,ue.A)(function*(l){if(Ja(l))for(const n of l.x_)yield n(!0)})).apply(this,arguments)}function nu(l){return wl.apply(this,arguments)}function wl(){return(wl=(0,ue.A)(function*(l){for(const n of l.x_)yield n(!1)})).apply(this,arguments)}function Ya(l,n){const i=se(l);i.F_.has(n.targetId)||(i.F_.set(n.targetId,n),ff(i)?Gu(i):qu(i).Xo()&&df(i,n))}function eo(l,n){const i=se(l),s=qu(i);i.F_.delete(n),s.Xo()&&hf(i,n),0===i.F_.size&&(s.Xo()?s.n_():Ja(i)&&i.N_.set("Unknown"))}function df(l,n){if(l.L_.xe(n.targetId),n.resumeToken.approximateByteSize()>0||n.snapshotVersion.compareTo(gn.min())>0){const i=l.remoteSyncer.getRemoteKeysForTarget(n.targetId).size;n=n.withExpectedCount(i)}qu(l).P_(n)}function hf(l,n){l.L_.xe(n),qu(l).I_(n)}function Gu(l){l.L_=new ks({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 ff(l){return Ja(l)&&!qu(l).Zo()&&l.F_.size>0}function Ja(l){return 0===se(l).M_.size}function $c(l){l.L_=void 0}function ug(l){return zd.apply(this,arguments)}function zd(){return(zd=(0,ue.A)(function*(l){l.N_.set("Online")})).apply(this,arguments)}function pf(l){return Wu.apply(this,arguments)}function Wu(){return(Wu=(0,ue.A)(function*(l){l.F_.forEach((n,i)=>{df(l,n)})})).apply(this,arguments)}function cg(l,n){return gf.apply(this,arguments)}function gf(){return(gf=(0,ue.A)(function*(l,n){$c(l),ff(l)?(l.N_.D_(n),Gu(l)):l.N_.set("Unknown")})).apply(this,arguments)}function fv(l,n,i){return mf.apply(this,arguments)}function mf(){return mf=(0,ue.A)(function*(l,n,i){if(l.N_.set("Online"),n instanceof _i&&2===n.state&&n.cause)try{yield(s=(0,ue.A)(function*(p,_){const R=_.cause;for(const k of _.targetIds)p.F_.has(k)&&(yield p.remoteSyncer.rejectListen(k,R),p.F_.delete(k),p.L_.removeTarget(k))}),function u(p,_){return s.apply(this,arguments)})(l,n)}catch(s){tt("RemoteStore","Failed to remove targets %s: %s ",n.targetIds.join(","),s),yield jc(l,s)}else if(n instanceof Qi?l.L_.Ke(n):n instanceof Ho?l.L_.He(n):l.L_.We(n),!i.isEqual(gn.min()))try{const s=yield Vs(l.localStore);i.compareTo(s)>=0&&(yield function(p,_){const R=p.L_.rt(_);return R.targetChanges.forEach((k,q)=>{if(k.resumeToken.approximateByteSize()>0){const _e=p.F_.get(q);_e&&p.F_.set(q,_e.withResumeToken(k.resumeToken,_))}}),R.targetMismatches.forEach((k,q)=>{const _e=p.F_.get(k);if(!_e)return;p.F_.set(k,_e.withResumeToken(oi.EMPTY_BYTE_STRING,_e.snapshotVersion)),hf(p,k);const je=new T(_e.target,k,q,_e.sequenceNumber);df(p,je)}),p.remoteSyncer.applyRemoteEvent(R)}(l,i))}catch(s){tt("RemoteStore","Failed to raise snapshot:",s),yield jc(l,s)}var s}),mf.apply(this,arguments)}function jc(l,n,i){return vf.apply(this,arguments)}function vf(){return(vf=(0,ue.A)(function*(l,n,i){if(!He(n))throw n;l.M_.add(1),yield nu(l),l.N_.set("Offline"),i||(i=()=>Vs(l.localStore)),l.asyncQueue.enqueueRetryable((0,ue.A)(function*(){tt("RemoteStore","Retrying IndexedDB access"),yield i(),l.M_.delete(1),yield Bc(l)}))})).apply(this,arguments)}function _f(l,n){return n().catch(i=>jc(l,i,n))}function Ku(l){return yf.apply(this,arguments)}function yf(){return(yf=(0,ue.A)(function*(l){const n=se(l),i=ru(n);let s=n.v_.length>0?n.v_[n.v_.length-1].batchId:-1;for(;vy(n);)try{const u=yield xc(n.localStore,s);if(null===u){0===n.v_.length&&i.n_();break}s=u.batchId,dg(n,u)}catch(u){yield jc(n,u)}Ef(n)&&ps(n)})).apply(this,arguments)}function vy(l){return Ja(l)&&l.v_.length<10}function dg(l,n){l.v_.push(n);const i=ru(l);i.Xo()&&i.E_&&i.d_(n.mutations)}function Ef(l){return Ja(l)&&!ru(l).Zo()&&l.v_.length>0}function ps(l){ru(l).start()}function _y(l){return Hd.apply(this,arguments)}function Hd(){return(Hd=(0,ue.A)(function*(l){ru(l).V_()})).apply(this,arguments)}function yy(l){return zc.apply(this,arguments)}function zc(){return(zc=(0,ue.A)(function*(l){const n=ru(l);for(const i of l.v_)n.d_(i.mutations)})).apply(this,arguments)}function Za(l,n,i){return Gd.apply(this,arguments)}function Gd(){return(Gd=(0,ue.A)(function*(l,n,i){const s=l.v_.shift(),u=Ie.from(s,n,i);yield _f(l,()=>l.remoteSyncer.applySuccessfulWrite(u)),yield Ku(l)})).apply(this,arguments)}function Xu(l,n){return If.apply(this,arguments)}function If(){return If=(0,ue.A)(function*(l,n){var i;n&&ru(l).E_&&(yield(i=(0,ue.A)(function*(u,p){if(function pi(l){switch(l){default:return H();case ve.CANCELLED:case ve.UNKNOWN:case ve.DEADLINE_EXCEEDED:case ve.RESOURCE_EXHAUSTED:case ve.INTERNAL:case ve.UNAVAILABLE:case ve.UNAUTHENTICATED:return!1;case ve.INVALID_ARGUMENT:case ve.NOT_FOUND:case ve.ALREADY_EXISTS:case ve.PERMISSION_DENIED:case ve.FAILED_PRECONDITION:case ve.ABORTED:case ve.OUT_OF_RANGE:case ve.UNIMPLEMENTED:case ve.DATA_LOSS:return!0}}(R=p.code)&&R!==ve.ABORTED){const _=u.v_.shift();ru(u).t_(),yield _f(u,()=>u.remoteSyncer.rejectFailedWrite(_.batchId,p)),yield Ku(u)}var R}),function s(u,p){return i.apply(this,arguments)})(l,n)),Ef(l)&&ps(l)}),If.apply(this,arguments)}function hg(l,n){return Wd.apply(this,arguments)}function Wd(){return(Wd=(0,ue.A)(function*(l,n){const i=se(l);i.asyncQueue.verifyOperationInProgress(),tt("RemoteStore","RemoteStore received new credentials");const s=Ja(i);i.M_.add(3),yield nu(i),s&&i.N_.set("Unknown"),yield i.remoteSyncer.handleCredentialChange(n),i.M_.delete(3),yield Bc(i)})).apply(this,arguments)}function fg(l,n){return pg.apply(this,arguments)}function pg(){return(pg=(0,ue.A)(function*(l,n){const i=se(l);n?(i.M_.delete(2),yield Bc(i)):n||(i.M_.add(2),yield nu(i),i.N_.set("Unknown"))})).apply(this,arguments)}function qu(l){return l.B_||(l.B_=function(i,s,u){const p=se(i);return p.f_(),new uf(s,p.connection,p.authCredentials,p.appCheckCredentials,p.serializer,u)}(l.datastore,l.asyncQueue,{Po:ug.bind(null,l),To:pf.bind(null,l),Ao:cg.bind(null,l),h_:fv.bind(null,l)}),l.x_.push(function(){var n=(0,ue.A)(function*(i){i?(l.B_.t_(),ff(l)?Gu(l):l.N_.set("Unknown")):(yield l.B_.stop(),$c(l))});return function(i){return n.apply(this,arguments)}}())),l.B_}function ru(l){return l.k_||(l.k_=function(i,s,u){const p=se(i);return p.f_(),new cf(s,p.connection,p.authCredentials,p.appCheckCredentials,p.serializer,u)}(l.datastore,l.asyncQueue,{Po:()=>Promise.resolve(),To:_y.bind(null,l),Ao:Xu.bind(null,l),R_:yy.bind(null,l),A_:Za.bind(null,l)}),l.x_.push(function(){var n=(0,ue.A)(function*(i){i?(l.k_.t_(),yield Ku(l)):(yield l.k_.stop(),l.v_.length>0&&(tt("RemoteStore",`Stopping write stream with ${l.v_.length} pending writes`),l.v_=[]))});return function(i){return n.apply(this,arguments)}}())),l.k_}class gg{constructor(n,i,s,u,p){this.asyncQueue=n,this.timerId=i,this.targetTimeMs=s,this.op=u,this.removalCallback=p,this.deferred=new De,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,p){const _=Date.now()+s,R=new gg(n,i,_,u,p);return R.start(s),R}start(n){this.timerHandle=setTimeout(()=>this.handleDelayElapsed(),n)}skipDelay(){return this.handleDelayElapsed()}cancel(n){null!==this.timerHandle&&(this.clearTimeout(),this.deferred.reject(new Le(ve.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 Qu(l,n){if(on("AsyncQueue",`${n}: ${l}`),He(l))return new Le(ve.UNAVAILABLE,`${n}: ${l}`);throw l}class la{constructor(n){this.comparator=n?(i,s)=>n(i,s)||en.comparator(i.key,s.key):(i,s)=>en.comparator(i.key,s.key),this.keyedMap=zi(),this.sortedSet=new Lr(this.comparator)}static emptySet(n){return new la(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 la)||this.size!==n.size)return!1;const i=this.sortedSet.getIterator(),s=n.sortedSet.getIterator();for(;i.hasNext();){const u=i.getNext().key,p=s.getNext().key;if(!u.isEqual(p))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 la;return s.comparator=this.comparator,s.keyedMap=n,s.sortedSet=i,s}}class Yu{constructor(){this.q_=new Lr(en.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}):H():this.q_=this.q_.insert(i,n)}Q_(){const n=[];return this.q_.inorderTraversal((i,s)=>{n.push(s)}),n}}class iu{constructor(n,i,s,u,p,_,R,k,q){this.query=n,this.docs=i,this.oldDocs=s,this.docChanges=u,this.mutatedKeys=p,this.fromCache=_,this.syncStateChanged=R,this.excludesMetadataChanges=k,this.hasCachedResults=q}static fromInitialDocuments(n,i,s,u,p){const _=[];return i.forEach(R=>{_.push({type:0,doc:R})}),new iu(n,i,la.emptySet(i),_,s,u,!0,!1,p)}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)&&Yo(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 Af{constructor(){this.queries=new $o(n=>Fa(n),Yo),this.onlineState="Unknown",this.z_=new Set}}function Bs(l,n){return Cf.apply(this,arguments)}function Cf(){return(Cf=(0,ue.A)(function*(l,n){const i=se(l);let s=3;const u=n.query;let p=i.queries.get(u);p?!p.W_()&&n.G_()&&(s=2):(p=new pv,s=n.G_()?0:1);try{switch(s){case 0:p.K_=yield i.onListen(u,!0);break;case 1:p.K_=yield i.onListen(u,!1);break;case 2:yield i.onFirstRemoteStoreListen(u)}}catch(_){const R=Qu(_,`Initialization of query '${_s(n.query)}' failed`);return void n.onError(R)}i.queries.set(u,p),p.U_.push(n),n.j_(i.onlineState),p.K_&&n.H_(p.K_)&&Kd(i)})).apply(this,arguments)}function Ju(l,n){return ou.apply(this,arguments)}function ou(){return(ou=(0,ue.A)(function*(l,n){const i=se(l),s=n.query;let u=3;const p=i.queries.get(s);if(p){const _=p.U_.indexOf(n);_>=0&&(p.U_.splice(_,1),0===p.U_.length?u=n.G_()?0:1:!p.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 gv(l,n){const i=se(l);let s=!1;for(const u of n){const _=i.queries.get(u.query);if(_){for(const R of _.U_)R.H_(u)&&(s=!0);_.K_=u}}s&&Kd(i)}function mg(l,n,i){const s=se(l),u=s.queries.get(n);if(u)for(const p of u.U_)p.onError(i);s.queries.delete(n)}function Kd(l){l.z_.forEach(n=>{n.next()})}var I,f;(f=I||(I={})).J_="default",f.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 iu(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=iu.fromInitialDocuments(n.query,n.docs,n.mutatedKeys,n.fromCache,n.hasCachedResults),this.Z_=!0,this.Y_.next(n)}G_(){return this.options.source!==I.Cache}}class Xt{constructor(n){this.key=n}}class Dn{constructor(n){this.key=n}}class $n{constructor(n,i){this.query=n,this.la=i,this.ha=null,this.hasCachedResults=!1,this.current=!1,this.Pa=Hr(),this.mutatedKeys=Hr(),this.Ia=ul(n),this.Ta=new la(this.Ia)}get Ea(){return this.la}da(n,i){const s=i?i.Aa:new Yu,u=i?i.Ta:this.Ta;let p=i?i.mutatedKeys:this.mutatedKeys,_=u,R=!1;const k="F"===this.query.limitType&&u.size===this.query.limit?u.last():null,q="L"===this.query.limitType&&u.size===this.query.limit?u.first():null;if(n.inorderTraversal((_e,je)=>{const pt=u.get(_e),Ht=Gs(this.query,je)?je:null,An=!!pt&&this.mutatedKeys.has(pt.key),kn=!!Ht&&(Ht.hasLocalMutations||this.mutatedKeys.has(Ht.key)&&Ht.hasCommittedMutations);let Sn=!1;pt&&Ht?pt.data.isEqual(Ht.data)?An!==kn&&(s.track({type:3,doc:Ht}),Sn=!0):this.Ra(pt,Ht)||(s.track({type:2,doc:Ht}),Sn=!0,(k&&this.Ia(Ht,k)>0||q&&this.Ia(Ht,q)<0)&&(R=!0)):!pt&&Ht?(s.track({type:0,doc:Ht}),Sn=!0):pt&&!Ht&&(s.track({type:1,doc:pt}),Sn=!0,(k||q)&&(R=!0)),Sn&&(Ht?(_=_.add(Ht),p=kn?p.add(_e):p.delete(_e)):(_=_.delete(_e),p=p.delete(_e)))}),null!==this.query.limit)for(;_.size>this.query.limit;){const _e="F"===this.query.limitType?_.last():_.first();_=_.delete(_e.key),p=p.delete(_e.key),s.track({type:1,doc:_e})}return{Ta:_,Aa:s,Xi:R,mutatedKeys:p}}Ra(n,i){return n.hasLocalMutations&&i.hasCommittedMutations&&!i.hasLocalMutations}applyChanges(n,i,s,u){const p=this.Ta;this.Ta=n.Ta,this.mutatedKeys=n.mutatedKeys;const _=n.Aa.Q_();_.sort((_e,je)=>function(Ht,An){const kn=Sn=>{switch(Sn){case 0:return 1;case 2:case 3:return 2;case 1:return 0;default:return H()}};return kn(Ht)-kn(An)}(_e.type,je.type)||this.Ia(_e.doc,je.doc)),this.Va(s),u=null!=u&&u;const R=i&&!u?this.ma():[],k=0===this.Pa.size&&this.current&&!u?1:0,q=k!==this.ha;return this.ha=k,0!==_.length||q?{snapshot:new iu(this.query,n.Ta,p,_,n.mutatedKeys,0===k,q,!1,!!s&&s.resumeToken.approximateByteSize()>0),fa:R}:{fa:R}}j_(n){return this.current&&"Offline"===n?(this.current=!1,this.applyChanges({Ta:this.Ta,Aa:new Yu,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=Hr(),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 Dn(s))}),this.Pa.forEach(s=>{n.has(s)||i.push(new Xt(s))}),i}pa(n){this.la=n.hs,this.Pa=Hr();const i=this.da(n.documents);return this.applyChanges(i,!0)}ya(){return iu.fromInitialDocuments(this.query,this.Ta,this.mutatedKeys,0===this.ha,this.hasCachedResults)}}class vr{constructor(n,i,s){this.query=n,this.targetId=i,this.view=s}}class hi{constructor(n){this.key=n,this.wa=!1}}class Vo{constructor(n,i,s,u,p,_){this.localStore=n,this.remoteStore=i,this.eventManager=s,this.sharedClientState=u,this.currentUser=p,this.maxConcurrentLimboResolutions=_,this.Sa={},this.ba=new $o(R=>Fa(R),Yo),this.Da=new Map,this.Ca=new Set,this.va=new Lr(en.comparator),this.Fa=new Map,this.Ma=new xd,this.xa={},this.Oa=new Map,this.Na=_l.Ln(),this.onlineState="Unknown",this.La=void 0}get isPrimaryClient(){return!0===this.La}}function to(l,n){return ua.apply(this,arguments)}function ua(){return(ua=(0,ue.A)(function*(l,n,i=!0){const s=nc(l);let u;const p=s.ba.get(n);return p?(s.sharedClientState.addLocalQueryTarget(p.targetId),u=p.view.ya()):u=yield qd(s,n,i,!0),u})).apply(this,arguments)}function Xd(l,n){return su.apply(this,arguments)}function su(){return(su=(0,ue.A)(function*(l,n){const i=nc(l);yield qd(i,n,!0,!1)})).apply(this,arguments)}function qd(l,n,i,s){return Zu.apply(this,arguments)}function Zu(){return(Zu=(0,ue.A)(function*(l,n,i,s){const u=yield function sa(l,n){const i=se(l);return i.persistence.runTransaction("Allocate target","readwrite",s=>{let u;return i.Qr.getTargetData(s,n).next(p=>p?(u=p,pe.resolve(u)):i.Qr.allocateTargetId(s).next(_=>(u=new T(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,Xn(n)),p=u.targetId,_=i?l.sharedClientState.addLocalQueryTarget(p):"not-current";let R;return s&&(R=yield function ec(l,n,i,s,u){return tc.apply(this,arguments)}(l,n,p,"current"===_,u.resumeToken)),l.isPrimaryClient&&i&&Ya(l.remoteStore,u),R})).apply(this,arguments)}function tc(){return tc=(0,ue.A)(function*(l,n,i,s,u){l.Ba=(je,pt,Ht)=>{return(An=(0,ue.A)(function*(Sn,hr,Mr,_r){let Yr=hr.view.da(Mr);Yr.Xi&&(Yr=yield El(Sn.localStore,hr.query,!1).then(({documents:st})=>hr.view.da(st,Yr)));const Li=_r&&_r.targetChanges.get(hr.targetId),fi=_r&&null!=_r.targetMismatches.get(hr.targetId),xt=hr.view.applyChanges(Yr,Sn.isPrimaryClient,Li,fi);return Cg(Sn,hr.targetId,xt.fa),xt.snapshot}),function kn(Sn,hr,Mr,_r){return An.apply(this,arguments)})(l,je,pt,Ht);var An};const p=yield El(l.localStore,n,!0),_=new $n(n,p.hs),R=_.da(p.documents),k=Si.createSynthesizedTargetChangeForCurrentChange(i,s&&"Offline"!==l.onlineState,u),q=_.applyChanges(R,l.isPrimaryClient,k);Cg(l,i,q.fa);const _e=new vr(n,i,_);return l.ba.set(n,_e),l.Da.has(i)?l.Da.get(i).push(n):l.Da.set(i,[n]),q.snapshot}),tc.apply(this,arguments)}function Df(l,n,i){return au.apply(this,arguments)}function au(){return(au=(0,ue.A)(function*(l,n,i){const s=se(l),u=s.ba.get(n),p=s.Da.get(u.targetId);if(p.length>1)return s.Da.set(u.targetId,p.filter(_=>!Yo(_,n))),void s.ba.delete(n);s.isPrimaryClient?(s.sharedClientState.removeLocalQueryTarget(u.targetId),s.sharedClientState.isActiveQueryTarget(u.targetId)||(yield aa(s.localStore,u.targetId,!1).then(()=>{s.sharedClientState.clearQueryState(u.targetId),i&&eo(s.remoteStore,u.targetId),Zd(s,u.targetId)}).catch(Ai))):(Zd(s,u.targetId),yield aa(s.localStore,u.targetId,!0))})).apply(this,arguments)}function Tf(l,n){return Qd.apply(this,arguments)}function Qd(){return(Qd=(0,ue.A)(function*(l,n){const i=se(l),s=i.ba.get(n),u=i.Da.get(s.targetId);i.isPrimaryClient&&1===u.length&&(i.sharedClientState.removeLocalQueryTarget(s.targetId),eo(i.remoteStore,s.targetId))})).apply(this,arguments)}function Jd(){return(Jd=(0,ue.A)(function*(l,n,i){const s=function Hc(l){const n=se(l);return n.remoteStore.remoteSyncer.applySuccessfulWrite=mv.bind(null,n),n.remoteStore.remoteSyncer.rejectFailedWrite=vv.bind(null,n),n}(l);try{const u=yield function(_,R){const k=se(_),q=pn.now(),_e=R.reduce((Ht,An)=>Ht.add(An.key),Hr());let je,pt;return k.persistence.runTransaction("Locally write mutations","readwrite",Ht=>{let An=Rr(),kn=Hr();return k.os.getEntries(Ht,_e).next(Sn=>{An=Sn,An.forEach((hr,Mr)=>{Mr.isValidDocument()||(kn=kn.add(hr))})}).next(()=>k.localDocuments.getOverlayedDocuments(Ht,An)).next(Sn=>{je=Sn;const hr=[];for(const Mr of R){const _r=va(Mr,je.get(Mr.key).overlayedDocument);null!=_r&&hr.push(new lo(Mr.key,_r,qr(_r.value.mapValue),Ui.exists(!0)))}return k.mutationQueue.addMutationBatch(Ht,q,hr,R)}).next(Sn=>{pt=Sn;const hr=Sn.applyToLocalDocumentSet(je,kn);return k.documentOverlayCache.saveOverlays(Ht,Sn.batchId,hr)})}).then(()=>({batchId:pt.batchId,changes:po(je)}))}(s.localStore,n);s.sharedClientState.addPendingMutation(u.batchId),function(_,R,k){let q=_.xa[_.currentUser.toKey()];q||(q=new Lr(nt)),q=q.insert(R,k),_.xa[_.currentUser.toKey()]=q}(s,u.batchId,i),yield Sl(s,u.changes),yield Ku(s.remoteStore)}catch(u){const p=Qu(u,"Failed to persist write");i.reject(p)}})).apply(this,arguments)}function vg(l,n){return bf.apply(this,arguments)}function bf(){return(bf=(0,ue.A)(function*(l,n){const i=se(l);try{const s=yield function ag(l,n){const i=se(l),s=n.snapshotVersion;let u=i.ns;return i.persistence.runTransaction("Apply remote event","readwrite-primary",p=>{const _=i.os.newChangeBuffer({trackRemovals:!0});u=i.ns;const R=[];n.targetChanges.forEach((_e,je)=>{const pt=u.get(je);if(!pt)return;R.push(i.Qr.removeMatchingKeys(p,_e.removedDocuments,je).next(()=>i.Qr.addMatchingKeys(p,_e.addedDocuments,je)));let Ht=pt.withSequenceNumber(p.currentSequenceNumber);var kn,Sn,hr;null!==n.targetMismatches.get(je)?Ht=Ht.withResumeToken(oi.EMPTY_BYTE_STRING,gn.min()).withLastLimboFreeSnapshotVersion(gn.min()):_e.resumeToken.approximateByteSize()>0&&(Ht=Ht.withResumeToken(_e.resumeToken,s)),u=u.insert(je,Ht),Sn=Ht,hr=_e,(0===(kn=pt).resumeToken.approximateByteSize()||Sn.snapshotVersion.toMicroseconds()-kn.snapshotVersion.toMicroseconds()>=3e8||hr.addedDocuments.size+hr.modifiedDocuments.size+hr.removedDocuments.size>0)&&R.push(i.Qr.updateTargetData(p,Ht))});let k=Rr(),q=Hr();if(n.documentUpdates.forEach(_e=>{n.resolvedLimboDocuments.has(_e)&&R.push(i.persistence.referenceDelegate.updateLimboDocument(p,_e))}),R.push(function $u(l,n,i){let s=Hr(),u=Hr();return i.forEach(p=>s=s.add(p)),n.getEntries(l,s).next(p=>{let _=Rr();return i.forEach((R,k)=>{const q=p.get(R);k.isFoundDocument()!==q.isFoundDocument()&&(u=u.add(R)),k.isNoDocument()&&k.version.isEqual(gn.min())?(n.removeEntry(R,k.readTime),_=_.insert(R,k)):!q.isValidDocument()||k.version.compareTo(q.version)>0||0===k.version.compareTo(q.version)&&q.hasPendingWrites?(n.addEntry(k),_=_.insert(R,k)):tt("LocalStore","Ignoring outdated watch update for ",R,". Current version:",q.version," Watch version:",k.version)}),{cs:_,ls:u}})}(p,_,n.documentUpdates).next(_e=>{k=_e.cs,q=_e.ls})),!s.isEqual(gn.min())){const _e=i.Qr.getLastRemoteSnapshotVersion(p).next(je=>i.Qr.setTargetsMetadata(p,p.currentSequenceNumber,s));R.push(_e)}return pe.waitFor(R).next(()=>_.apply(p)).next(()=>i.localDocuments.getLocalViewOfDocuments(p,k,q)).next(()=>k)}).then(p=>(i.ns=u,p))}(i.localStore,n);n.targetChanges.forEach((u,p)=>{const _=i.Fa.get(p);_&&(X(u.addedDocuments.size+u.modifiedDocuments.size+u.removedDocuments.size<=1),u.addedDocuments.size>0?_.wa=!0:u.modifiedDocuments.size>0?X(_.wa):u.removedDocuments.size>0&&(X(_.wa),_.wa=!1))}),yield Sl(i,s,n)}catch(s){yield Ai(s)}})).apply(this,arguments)}function _g(l,n,i){const s=se(l);if(s.isPrimaryClient&&0===i||!s.isPrimaryClient&&1===i){const u=[];s.ba.forEach((p,_)=>{const R=_.view.j_(n);R.snapshot&&u.push(R.snapshot)}),function(_,R){const k=se(_);k.onlineState=R;let q=!1;k.queries.forEach((_e,je)=>{for(const pt of je.U_)pt.j_(R)&&(q=!0)}),q&&Kd(k)}(s.eventManager,n),u.length&&s.Sa.h_(u),s.onlineState=n,s.isPrimaryClient&&s.sharedClientState.setOnlineState(n)}}function wf(l,n,i){return Sf.apply(this,arguments)}function Sf(){return(Sf=(0,ue.A)(function*(l,n,i){const s=se(l);s.sharedClientState.updateQueryState(n,"rejected",i);const u=s.Fa.get(n),p=u&&u.key;if(p){let _=new Lr(en.comparator);_=_.insert(p,jr.newNoDocument(p,gn.min()));const R=Hr().add(p),k=new qi(gn.min(),new Map,new Lr(nt),_,R);yield vg(s,k),s.va=s.va.remove(p),s.Fa.delete(n),_v(s)}else yield aa(s.localStore,n,!1).then(()=>Zd(s,n,i)).catch(Ai)})).apply(this,arguments)}function mv(l,n){return Rf.apply(this,arguments)}function Rf(){return(Rf=(0,ue.A)(function*(l,n){const i=se(l),s=n.batch.batchId;try{const u=yield function Uu(l,n){const i=se(l);return i.persistence.runTransaction("Acknowledge batch","readwrite-primary",s=>{const u=n.batch.keys(),p=i.os.newChangeBuffer({trackRemovals:!0});return function(R,k,q,_e){const je=q.batch,pt=je.keys();let Ht=pe.resolve();return pt.forEach(An=>{Ht=Ht.next(()=>_e.getEntry(k,An)).next(kn=>{const Sn=q.docVersions.get(An);X(null!==Sn),kn.version.compareTo(Sn)<0&&(je.applyToRemoteDocument(kn,q),kn.isValidDocument()&&(kn.setReadTime(q.commitVersion),_e.addEntry(kn)))})}),Ht.next(()=>R.mutationQueue.removeMutationBatch(k,je))}(i,s,n,p).next(()=>p.apply(s)).next(()=>i.mutationQueue.performConsistencyCheck(s)).next(()=>i.documentOverlayCache.removeOverlaysForBatchId(s,u,n.batch.batchId)).next(()=>i.localDocuments.recalculateAndSaveOverlaysForDocumentKeys(s,function(R){let k=Hr();for(let q=0;q0&&(k=k.add(R.batch.mutations[q].key));return k}(n))).next(()=>i.localDocuments.getDocuments(s,u))})}(i.localStore,n);Mf(i,s,null),Ig(i,s),i.sharedClientState.updateMutationState(s,"acknowledged"),yield Sl(i,u)}catch(u){yield Ai(u)}})).apply(this,arguments)}function vv(l,n,i){return yg.apply(this,arguments)}function yg(){return(yg=(0,ue.A)(function*(l,n,i){const s=se(l);try{const u=yield function(_,R){const k=se(_);return k.persistence.runTransaction("Reject batch","readwrite-primary",q=>{let _e;return k.mutationQueue.lookupMutationBatch(q,R).next(je=>(X(null!==je),_e=je.keys(),k.mutationQueue.removeMutationBatch(q,je))).next(()=>k.mutationQueue.performConsistencyCheck(q)).next(()=>k.documentOverlayCache.removeOverlaysForBatchId(q,_e,R)).next(()=>k.localDocuments.recalculateAndSaveOverlaysForDocumentKeys(q,_e)).next(()=>k.localDocuments.getDocuments(q,_e))})}(s.localStore,n);Mf(s,n,i),Ig(s,n),s.sharedClientState.updateMutationState(n,"rejected",i),yield Sl(s,u)}catch(u){yield Ai(u)}})).apply(this,arguments)}function Ig(l,n){(l.Oa.get(n)||[]).forEach(i=>{i.resolve()}),l.Oa.delete(n)}function Mf(l,n,i){const s=se(l);let u=s.xa[s.currentUser.toKey()];if(u){const p=u.get(n);p&&(i?p.reject(i):p.resolve(),u=u.remove(n)),s.xa[s.currentUser.toKey()]=u}}function Zd(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)||Ag(l,s)})}function Ag(l,n){l.Ca.delete(n.path.canonicalString());const i=l.va.get(n);null!==i&&(eo(l.remoteStore,i),l.va=l.va.remove(n),l.Fa.delete(i),_v(l))}function Cg(l,n,i){for(const s of i)s instanceof Xt?(l.Ma.addReference(s.key,n),Iy(l,s)):s instanceof Dn?(tt("SyncEngine","Document no longer in limbo: "+s.key),l.Ma.removeReference(s.key,n),l.Ma.containsKey(s.key)||Ag(l,s.key)):H()}function Iy(l,n){const i=n.key,s=i.path.canonicalString();l.va.get(i)||l.Ca.has(s)||(tt("SyncEngine","New document in limbo: "+i),l.Ca.add(s),_v(l))}function _v(l){for(;l.Ca.size>0&&l.va.size{_.push(s.Ba(k,n,i).then(q=>{if((q||i)&&s.isPrimaryClient&&s.sharedClientState.updateQueryState(k.targetId,q&&!q.fromCache?"current":"not-current"),q){u.push(q);const _e=Fi.Ki(k.targetId,q);p.push(_e)}}))}),yield Promise.all(_),s.Sa.h_(u),yield(R=(0,ue.A)(function*(q,_e){const je=se(q);try{yield je.persistence.runTransaction("notifyLocalViewChanges","readwrite",pt=>pe.forEach(_e,Ht=>pe.forEach(Ht.qi,An=>je.persistence.referenceDelegate.addReference(pt,Ht.targetId,An)).next(()=>pe.forEach(Ht.Qi,An=>je.persistence.referenceDelegate.removeReference(pt,Ht.targetId,An)))))}catch(pt){if(!He(pt))throw pt;tt("LocalStore","Failed to update sequence numbers: "+pt)}for(const pt of _e){const Ht=pt.targetId;if(!pt.fromCache){const An=je.ns.get(Ht),Sn=An.withLastLimboFreeSnapshotVersion(An.snapshotVersion);je.ns=je.ns.insert(Ht,Sn)}}}),function k(q,_e){return R.apply(this,arguments)})(s.localStore,p))}),Pf.apply(this,arguments)}function Dg(l,n){return Tg.apply(this,arguments)}function Tg(){return(Tg=(0,ue.A)(function*(l,n){const i=se(l);if(!i.currentUser.isEqual(n)){tt("SyncEngine","User change. New user:",n.toKey());const s=yield Fd(i.localStore,n);i.currentUser=n,(p=i).Oa.forEach(R=>{R.forEach(k=>{k.reject(new Le(ve.CANCELLED,"'waitForPendingWrites' promise is rejected due to a user change."))})}),p.Oa.clear(),i.sharedClientState.handleUserChange(n,s.removedBatchIds,s.addedBatchIds),yield Sl(i,s.us)}var p})).apply(this,arguments)}function lu(l,n){const i=se(l),s=i.Fa.get(n);if(s&&s.wa)return Hr().add(s.key);{let u=Hr();const p=i.Da.get(n);if(!p)return u;for(const _ of p){const R=i.ba.get(_);u=u.unionWith(R.view.Ea)}return u}}function nc(l){const n=se(l);return n.remoteStore.remoteSyncer.applyRemoteEvent=vg.bind(null,n),n.remoteStore.remoteSyncer.getRemoteKeysForTarget=lu.bind(null,n),n.remoteStore.remoteSyncer.rejectListen=wf.bind(null,n),n.Sa.h_=gv.bind(null,n.eventManager),n.Sa.ka=mg.bind(null,n.eventManager),n}class el{constructor(){this.synchronizeTabs=!1}initialize(n){var i=this;return(0,ue.A)(function*(){i.serializer=Vc(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 nf(l,n,i,s){return new sg(l,n,i,s)}(this.persistence,new tf,n.initialUser,this.serializer)}createPersistence(n){return new Mc(Sa.Hr,this.serializer)}createSharedClientState(n){return new af}terminate(){var n=this;return(0,ue.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 tl{initialize(n,i){var s=this;return(0,ue.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=>_g(s.syncEngine,u,1),s.remoteStore.remoteSyncer.handleCredentialChange=Dg.bind(null,s.syncEngine),yield fg(s.remoteStore,s.syncEngine.isPrimaryClient))})()}createEventManager(n){return new Af}createDatastore(n){const i=Vc(n.databaseInfo.databaseId),s=new Ud(n.databaseInfo);return new lg(n.authCredentials,n.appCheckCredentials,s,i)}createRemoteStore(n){return s=this.localStore,u=this.datastore,p=n.asyncQueue,_=i=>_g(this.syncEngine,i,0),R=Bd.D()?new Bd:new lf,new bl(s,u,p,_,R);var s,u,p,_,R}createSyncEngine(n,i){return function(u,p,_,R,k,q,_e){const je=new Vo(u,p,_,R,k,q);return _e&&(je.La=!0),je}(this.localStore,this.remoteStore,this.eventManager,this.sharedClientState,n.initialUser,n.maxConcurrentLimboResolutions,i)}terminate(){var n=this;return(0,ue.A)(function*(){var i,s;yield(s=(0,ue.A)(function*(p){const _=se(p);tt("RemoteStore","RemoteStore shutting down."),_.M_.add(5),yield nu(_),_.O_.shutdown(),_.N_.set("Unknown")}),function u(p){return s.apply(this,arguments)})(n.remoteStore),null===(i=n.datastore)||void 0===i||i.terminate()})()}}class Kc{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):on("Uncaught Error in snapshot listener:",n.toString())}$a(){this.muted=!0}Ka(n,i){this.muted||setTimeout(()=>{this.muted||n(i)},0)}}class wy{constructor(n,i,s,u){var p=this;this.authCredentials=n,this.appCheckCredentials=i,this.asyncQueue=s,this.databaseInfo=u,this.user=xe.UNAUTHENTICATED,this.clientId=ir.newId(),this.authCredentialListener=()=>Promise.resolve(),this.appCheckCredentialListener=()=>Promise.resolve(),this.authCredentials.start(s,function(){var _=(0,ue.A)(function*(R){tt("FirestoreClient","Received user=",R.uid),yield p.authCredentialListener(R),p.user=R});return function(R){return _.apply(this,arguments)}}()),this.appCheckCredentials.start(s,_=>(tt("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 Le(ve.FAILED_PRECONDITION,"The client has already been terminated.")}terminate(){var n=this;this.asyncQueue.enterRestrictedMode();const i=new De;return this.asyncQueue.enqueueAndForgetEvenWhileRestricted((0,ue.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=Qu(s,"Failed to shutdown persistence");i.reject(u)}})),i.promise}}function Of(l,n){return oh.apply(this,arguments)}function oh(){return oh=(0,ue.A)(function*(l,n){l.asyncQueue.verifyOperationInProgress(),tt("FirestoreClient","Initializing OfflineComponentProvider");const i=l.configuration;yield n.initialize(i);let s=i.initialUser;l.setCredentialChangeListener(function(){var u=(0,ue.A)(function*(p){s.isEqual(p)||(yield Fd(n.localStore,p),s=p)});return function(p){return u.apply(this,arguments)}}()),n.persistence.setDatabaseDeletedListener(()=>l.terminate()),l._offlineComponents=n}),oh.apply(this,arguments)}function Nf(l,n){return Rg.apply(this,arguments)}function Rg(){return(Rg=(0,ue.A)(function*(l,n){l.asyncQueue.verifyOperationInProgress();const i=yield function rc(l){return kf.apply(this,arguments)}(l);tt("FirestoreClient","Initializing OnlineComponentProvider"),yield n.initialize(i,l.configuration),l.setCredentialChangeListener(s=>hg(n.remoteStore,s)),l.setAppCheckTokenChangeListener((s,u)=>hg(n.remoteStore,u)),l._onlineComponents=n})).apply(this,arguments)}function kf(){return(kf=(0,ue.A)(function*(l){if(!l._offlineComponents)if(l._uninitializedComponentsProvider){tt("FirestoreClient","Using user provided OfflineComponentProvider");try{yield Of(l,l._uninitializedComponentsProvider._offline)}catch(n){const i=n;if(!function Tv(l){return"FirebaseError"===l.name?l.code===ve.FAILED_PRECONDITION||l.code===ve.UNIMPLEMENTED:!(typeof DOMException<"u"&&l instanceof DOMException)||22===l.code||20===l.code||11===l.code}(i))throw i;dt("Error using user provided cache. Falling back to memory cache: "+i),yield Of(l,new el)}}else tt("FirestoreClient","Using default OfflineComponentProvider"),yield Of(l,new el);return l._offlineComponents})).apply(this,arguments)}function Xc(l){return Mg.apply(this,arguments)}function Mg(){return(Mg=(0,ue.A)(function*(l){return l._onlineComponents||(l._uninitializedComponentsProvider?(tt("FirestoreClient","Using user provided OnlineComponentProvider"),yield Nf(l,l._uninitializedComponentsProvider._online)):(tt("FirestoreClient","Using default OnlineComponentProvider"),yield Nf(l,new tl))),l._onlineComponents})).apply(this,arguments)}function cu(l){return xg.apply(this,arguments)}function xg(){return(xg=(0,ue.A)(function*(l){const n=yield Xc(l),i=n.eventManager;return i.onListen=to.bind(null,n.syncEngine),i.onUnlisten=Df.bind(null,n.syncEngine),i.onFirstRemoteStoreListen=Xd.bind(null,n.syncEngine),i.onLastRemoteStoreUnlisten=Tf.bind(null,n.syncEngine),i})).apply(this,arguments)}function uh(l){const n={};return void 0!==l.timeoutSeconds&&(n.timeoutSeconds=l.timeoutSeconds),n}const Vf=new Map;function Bf(l,n,i){if(!i)throw new Le(ve.INVALID_ARGUMENT,`Function ${l}() cannot be called with an empty ${n}.`)}function Fg(l){if(!en.isDocumentKey(l))throw new Le(ve.INVALID_ARGUMENT,`Invalid document reference. Document references must have an even number of segments, but ${l} has ${l.length}.`)}function du(l){if(en.isDocumentKey(l))throw new Le(ve.INVALID_ARGUMENT,`Invalid collection reference. Collection references must have an odd number of segments, but ${l} has ${l.length}.`)}function Uf(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":H()}function Ii(l,n){if("_delegate"in l&&(l=l._delegate),!(l instanceof n)){if(n.name===l.constructor.name)throw new Le(ve.INVALID_ARGUMENT,"Type does not match the expected instance. Did you pass a reference from a different Firestore SDK?");{const i=Uf(l);throw new Le(ve.INVALID_ARGUMENT,`Expected type '${n.name}', but it was: ${i}`)}}return l}class Pv{constructor(n){var i,s;if(void 0===n.host){if(void 0!==n.ssl)throw new Le(ve.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 Le(ve.INVALID_ARGUMENT,"cacheSizeBytes must be at least 1048576");this.cacheSizeBytes=n.cacheSizeBytes}(function Rv(l,n,i,s){if(!0===n&&!0===s)throw new Le(ve.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=uh(null!==(s=n.experimentalLongPollingOptions)&&void 0!==s?s:{}),function(p){if(void 0!==p.timeoutSeconds){if(isNaN(p.timeoutSeconds))throw new Le(ve.INVALID_ARGUMENT,`invalid long polling timeout: ${p.timeoutSeconds} (must not be NaN)`);if(p.timeoutSeconds<5)throw new Le(ve.INVALID_ARGUMENT,`invalid long polling timeout: ${p.timeoutSeconds} (minimum allowed value is 5)`);if(p.timeoutSeconds>30)throw new Le(ve.INVALID_ARGUMENT,`invalid long polling timeout: ${p.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 ch{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 Pv({}),this._settingsFrozen=!1}get app(){if(!this._app)throw new Le(ve.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 Le(ve.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 Pv(n),void 0!==n.credentials&&(this._authCredentials=function(s){if(!s)return new dn;switch(s.type){case"firstParty":return new Zn(s.sessionIndex||"0",s.iamToken||null,s.authTokenFactory||null);case"provider":return s.client;default:throw new Le(ve.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=Vf.get(i);s&&(tt("ComponentProvider","Removing Datastore"),Vf.delete(i),s.terminate())}(this),Promise.resolve()}}class uo{constructor(n,i,s){this.converter=i,this._query=s,this.type="query",this.firestore=n}withConverter(n){return new uo(this.firestore,n,this._query)}}class vo{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 nl(this.firestore,this.converter,this._key.path.popLast())}withConverter(n){return new vo(this.firestore,n,this._key)}}class nl extends uo{constructor(n,i,s){super(n,i,Ae(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 vo(this.firestore,null,new en(n))}withConverter(n){return new nl(this.firestore,n,this._path)}}function Py(l,n,...i){if(l=(0,Se.Ku)(l),Bf("collection","path",n),l instanceof ch){const s=Mn.fromString(n,...i);return du(s),new nl(l,null,s)}{if(!(l instanceof vo||l instanceof nl))throw new Le(ve.INVALID_ARGUMENT,"Expected first argument to collection() to be a CollectionReference, a DocumentReference or FirebaseFirestore");const s=l._path.child(Mn.fromString(n,...i));return du(s),new nl(l.firestore,null,s)}}function xv(l,n,...i){if(l=(0,Se.Ku)(l),1===arguments.length&&(n=ir.newId()),Bf("doc","path",n),l instanceof ch){const s=Mn.fromString(n,...i);return Fg(s),new vo(l,null,new en(s))}{if(!(l instanceof vo||l instanceof nl))throw new Le(ve.INVALID_ARGUMENT,"Expected first argument to collection() to be a CollectionReference, a DocumentReference or FirebaseFirestore");const s=l._path.child(Mn.fromString(n,...i));return Fg(s),new vo(l.firestore,l instanceof nl?l.converter:null,new en(s))}}class xy{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 tu(this,"async_queue_retry"),this.hu=()=>{const i=Tl();i&&tt("AsyncQueue","Visibility state changed to "+i.visibilityState),this.Yo.Wo()};const n=Tl();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=Tl();i&&"function"==typeof i.removeEventListener&&i.removeEventListener("visibilitychange",this.hu)}}enqueue(n){if(this.Pu(),this.ou)return new Promise(()=>{});const i=new De;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,ue.A)(function*(){if(0!==n.su.length){try{yield n.su[0](),n.su.shift(),n.Yo.reset()}catch(i){if(!He(i))throw i;tt("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,on("INTERNAL UNHANDLED ERROR: ",function(_){let R=_.message||"";return _.stack&&(R=_.stack.includes(_.message)?_.stack:_.message+"\n"+_.stack),R}(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=gg.createAndSchedule(this,n,i,s,p=>this.Eu(p));return this._u.push(u),u}Pu(){this.au&&H()}verifyOperationInProgress(){}du(){var n=this;return(0,ue.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 ch{constructor(n,i,s,u){super(n,i,s,u),this.type="firestore",this._queue=new xy,this._persistenceKey=(null==u?void 0:u.name)||"[DEFAULT]"}_terminate(){return this._firestoreClient||Bg(this),this._firestoreClient.terminate()}}function dh(l,n){const i="object"==typeof l?l:(0,oe.Sx)(),s="string"==typeof l?l:n||"(default)",u=(0,oe.j6)(i,"firestore").getImmediate({identifier:s});if(!u._initialized){const p=(0,Se.yU)("firestore");p&&function Rl(l,n,i,s={}){var u;const p=(l=Ii(l,ch))._getSettings(),_=`${n}:${i}`;if("firestore.googleapis.com"!==p.host&&p.host!==_&&dt("Host has been set in both settings() and connectFirestoreEmulator(), emulator host will be used."),l._setSettings(Object.assign(Object.assign({},p),{host:_,ssl:!1})),s.mockUserToken){let R,k;if("string"==typeof s.mockUserToken)R=s.mockUserToken,k=xe.MOCK_USER;else{R=(0,Se.Fy)(s.mockUserToken,null===(u=l._app)||void 0===u?void 0:u.options.projectId);const q=s.mockUserToken.sub||s.mockUserToken.user_id;if(!q)throw new Le(ve.INVALID_ARGUMENT,"mockUserToken must contain 'sub' or 'user_id' field!");k=new xe(q)}l._authCredentials=new Kt(new Wt(R,k))}}(u,...p)}return u}function ro(l){return l._firestoreClient||Bg(l),l._firestoreClient.verifyNotTerminated(),l._firestoreClient}function Bg(l){var n,i,s;const u=l._freezeSettings(),p=(k=(null===(n=l._app)||void 0===n?void 0:n.options.appId)||"",new jt(l._databaseId,k,l._persistenceKey,(_e=u).host,_e.ssl,_e.experimentalForceLongPolling,_e.experimentalAutoDetectLongPolling,uh(_e.experimentalLongPollingOptions),_e.useFetchStreams));var k,_e;l._firestoreClient=new wy(l._authCredentials,l._appCheckCredentials,l._queue,p),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 ic{constructor(n){this._byteString=n}static fromBase64String(n){try{return new ic(oi.fromBase64String(n))}catch(i){throw new Le(ve.INVALID_ARGUMENT,"Failed to construct data from Base64 string: "+i)}}static fromUint8Array(n){return new ic(oi.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 fu{constructor(...n){for(let i=0;i90)throw new Le(ve.INVALID_ARGUMENT,"Latitude must be a number between -90 and 90, but was: "+n);if(!isFinite(i)||i<-180||i>180)throw new Le(ve.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 nt(this._lat,n._lat)||nt(this._long,n._long)}}const Fv=/^__.*__$/;class $f{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 Ks(n,this.data,i,this.fieldTransforms)}}class $g{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 jf(l){switch(l){case 0:case 2:case 1:return!0;case 3:case 4:return!1;default:throw H()}}class zf{constructor(n,i,s,u,p,_){this.settings=n,this.databaseId=i,this.serializer=s,this.ignoreUndefinedProperties=u,void 0===p&&this.mu(),this.fieldTransforms=p||[],this.fieldMask=_||[]}get path(){return this.settings.path}get fu(){return this.settings.fu}gu(n){return new zf(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 Wf(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;nk.covers(je.field))}else k=null,q=_.fieldTransforms;return new $f(new Vn(R),k,q)}class Jc extends Yc{_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 Jc}}function Pa(l,n){if(Bv(l=(0,Se.Ku)(l)))return Kg("Unsupported field value:",n,l),Vv(l,n);if(l instanceof Yc)return function(s,u){if(!jf(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 p=s._toFieldTransform(u);p&&u.fieldTransforms.push(p)}(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 p=[];let _=0;for(const R of s){let k=Pa(R,u.bu(_));null==k&&(k={nullValue:"NULL_VALUE"}),p.push(k),_++}return{arrayValue:{values:p}}}(l,n)}return function(s,u){if(null===(s=(0,Se.Ku)(s)))return{nullValue:"NULL_VALUE"};if("number"==typeof s)return hl(u.serializer,s);if("boolean"==typeof s)return{booleanValue:s};if("string"==typeof s)return{stringValue:s};if(s instanceof Date){const p=pn.fromDate(s);return{timestampValue:Go(u.serializer,p)}}if(s instanceof pn){const p=new pn(s.seconds,1e3*Math.floor(s.nanoseconds/1e3));return{timestampValue:Go(u.serializer,p)}}if(s instanceof Ug)return{geoPointValue:{latitude:s.latitude,longitude:s.longitude}};if(s instanceof ic)return{bytesValue:qs(u.serializer,s._byteString)};if(s instanceof vo){const p=u.databaseId,_=s.firestore._databaseId;if(!_.isEqual(p))throw u.Du(`Document reference is for database ${_.projectId}/${_.database} but should be for database ${p.projectId}/${p.database}`);return{referenceValue:Qs(s.firestore._databaseId||u.databaseId,s._key.path)}}throw u.Du(`Unsupported field value: ${Uf(s)}`)}(l,n)}function Vv(l,n){const i={};return ei(l)?n.path&&n.path.length>0&&n.fieldMask.push(n.path):ai(l,(s,u)=>{const p=Pa(u,n.pu(s));null!=p&&(i[s]=p)}),{mapValue:{fields:i}}}function Bv(l){return!("object"!=typeof l||null===l||l instanceof Array||l instanceof Date||l instanceof pn||l instanceof Ug||l instanceof ic||l instanceof vo||l instanceof Yc)}function Kg(l,n,i){if(!Bv(i)||"object"!=typeof(u=i)||null===u||Object.getPrototypeOf(u)!==Object.prototype&&null!==Object.getPrototypeOf(u)){const s=Uf(i);throw n.Du("an object"===s?l+" a custom object":l+" "+s)}var u}function Zc(l,n,i){if((n=(0,Se.Ku)(n))instanceof fu)return n._internalPath;if("string"==typeof n)return Gf(l,n);throw Wf("Field path arguments must be of type string or ",l,!1,void 0,i)}const Uy=new RegExp("[~\\*/\\[\\]]");function Gf(l,n,i){if(n.search(Uy)>=0)throw Wf(`Invalid field path (${n}). Paths must not contain '~', '*', '/', '[', or ']'`,l,!1,void 0,i);try{return new fu(...n.split("."))._internalPath}catch{throw Wf(`Invalid field path (${n}). Paths must not be empty, begin with '.', end with '.', or contain '..'`,l,!1,void 0,i)}}function Wf(l,n,i,s,u){const p=s&&!s.isEmpty(),_=void 0!==u;let R=`Function ${n}() called with invalid data`;i&&(R+=" (via `toFirestore()`)"),R+=". ";let k="";return(p||_)&&(k+=" (found",p&&(k+=` in field ${s}`),_&&(k+=` in document ${u}`),k+=")"),new Le(ve.INVALID_ARGUMENT,R+l+k)}function Uv(l,n){return l.some(i=>i.isEqual(n))}class ph{constructor(n,i,s,u,p){this._firestore=n,this._userDataWriter=i,this._key=s,this._document=u,this._converter=p}get id(){return this._key.path.lastSegment()}get ref(){return new vo(this._firestore,this._converter,this._key)}exists(){return null!==this._document}data(){if(this._document){if(this._converter){const n=new $y(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(ed("DocumentSnapshot.get",n));if(null!==i)return this._userDataWriter.convertValue(i)}}}class $y extends ph{data(){return super.data()}}function ed(l,n){return"string"==typeof n?Gf(l,n):n instanceof fu?n._internalPath:n._delegate._internalPath}class Qg{convertValue(n,i="none"){switch(j(n)){case 0:return null;case 1:return n.booleanValue;case 2:return le(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(W(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 H()}}convertObject(n,i){return this.convertObjectMap(n.fields,i)}convertObjectMap(n,i="none"){const s={};return ai(n,(u,p)=>{s[u]=this.convertValue(p,i)}),s}convertGeoPoint(n){return new Ug(le(n.latitude),le(n.longitude))}convertArray(n,i){return(n.values||[]).map(s=>this.convertValue(s,i))}convertServerTimestamp(n,i){switch(i){case"previous":const s=Ve(n);return null==s?null:this.convertValue(s,i);case"estimate":return this.convertTimestamp(ot(n));default:return null}}convertTimestamp(n){const i=he(n);return new pn(i.seconds,i.nanos)}convertDocumentKey(n,i){const s=Mn.fromString(n);X(E(s));const u=new In(s.get(1),s.get(3)),p=new en(s.popFirst(5));return u.isEqual(i)||on(`Document ${p} 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.`),p}}class Pl{constructor(n,i){this.hasPendingWrites=n,this.fromCache=i}isEqual(n){return this.hasPendingWrites===n.hasPendingWrites&&this.fromCache===n.fromCache}}class lc extends ph{constructor(n,i,s,u,p,_){super(n,i,s,u,_),this._firestore=n,this._firestoreImpl=n,this.metadata=p}exists(){return super.exists()}data(n={}){if(this._document){if(this._converter){const i=new rd(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(ed("DocumentSnapshot.get",n));if(null!==s)return this._userDataWriter.convertValue(s,i.serverTimestamps)}}}class rd extends lc{data(n={}){return super.data(n)}}class xl{constructor(n,i,s,u){this._firestore=n,this._userDataWriter=i,this._snapshot=u,this.metadata=new Pl(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 rd(this._firestore,this._userDataWriter,s.key,s,new Pl(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 Le(ve.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,p){if(u._snapshot.oldDocs.isEmpty()){let _=0;return u._snapshot.docChanges.map(R=>({type:"added",doc:new rd(u._firestore,u._userDataWriter,R.doc.key,R.doc,new Pl(u._snapshot.mutatedKeys.has(R.doc.key),u._snapshot.fromCache),u.query.converter),oldIndex:-1,newIndex:_++}))}{let _=u._snapshot.oldDocs;return u._snapshot.docChanges.filter(R=>p||3!==R.type).map(R=>{const k=new rd(u._firestore,u._userDataWriter,R.doc.key,R.doc,new Pl(u._snapshot.mutatedKeys.has(R.doc.key),u._snapshot.fromCache),u.query.converter);let q=-1,_e=-1;return 0!==R.type&&(q=_.indexOf(R.doc.key),_=_.delete(R.doc.key)),1!==R.type&&(_=_.add(R.doc),_e=_.indexOf(R.doc.key)),{type:qy(R.type),doc:k,oldIndex:q,newIndex:_e}})}}(this,i),this._cachedChangesIncludeMetadataChanges=i),this._cachedChanges}}function qy(l){switch(l){case 0:return"added";case 2:case 3:return"modified";case 1:return"removed";default:return H()}}function Hv(l){l=Ii(l,vo);const n=Ii(l.firestore,Bi);return function lh(l,n,i={}){const s=new De;return l.asyncQueue.enqueueAndForget((0,ue.A)(function*(){return function(p,_,R,k,q){const _e=new Kc({next:pt=>{_.enqueueAndForget(()=>Ju(p,je));const Ht=pt.docs.has(R);!Ht&&pt.fromCache?q.reject(new Le(ve.UNAVAILABLE,"Failed to get document because the client is offline.")):Ht&&pt.fromCache&&k&&"server"===k.source?q.reject(new Le(ve.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.)')):q.resolve(pt)},error:pt=>q.reject(pt)}),je=new v(Ae(R.path),_e,{includeMetadataChanges:!0,ra:!0});return Bs(p,je)}(yield cu(l),l.asyncQueue,n,i,s)})),s.promise}(ro(n),l._key).then(i=>function Qf(l,n,i){const s=i.docs.get(n._key),u=new pu(l);return new lc(l,u,n._key,s,new Pl(i.hasPendingWrites,i.fromCache),n.converter)}(n,l,i))}class pu extends Qg{constructor(n){super(),this.firestore=n}convertBytes(n){return new ic(n)}convertReference(n){const i=this.convertDocumentKey(n,this.firestore._databaseId);return new vo(this.firestore,null,i)}}function Gv(l){l=Ii(l,uo);const n=Ii(l.firestore,Bi),i=ro(n),s=new pu(n);return function jy(l){if("L"===l.limitType&&0===l.explicitOrderBy.length)throw new Le(ve.UNIMPLEMENTED,"limitToLast() queries require specifying at least one orderBy() clause")}(l._query),function Ng(l,n,i={}){const s=new De;return l.asyncQueue.enqueueAndForget((0,ue.A)(function*(){return function(p,_,R,k,q){const _e=new Kc({next:pt=>{_.enqueueAndForget(()=>Ju(p,je)),pt.fromCache&&"server"===k.source?q.reject(new Le(ve.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.)')):q.resolve(pt)},error:pt=>q.reject(pt)}),je=new v(R,_e,{includeMetadataChanges:!0,ra:!0});return Bs(p,je)}(yield cu(l),l.asyncQueue,n,i,s)})),s.promise}(i,l._query).then(u=>new xl(n,s,l,u))}function em(l,n,i){l=Ii(l,vo);const s=Ii(l.firestore,Bi),u=function mh(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 od(s,[fh(sc(s),"setDoc",l._key,u,null!==l.converter,i).toMutation(l._key,Ui.none())])}function Qy(l,n,i,...s){l=Ii(l,vo);const u=Ii(l.firestore,Bi),p=sc(u);let _;return _="string"==typeof(n=(0,Se.Ku)(n))||n instanceof fu?function Lv(l,n,i,s,u,p){const _=l.Fu(1,n,i),R=[Zc(n,s,i)],k=[u];if(p.length%2!=0)throw new Le(ve.INVALID_ARGUMENT,`Function ${n}() needs to be called with an even number of arguments that alternate between field names and values.`);for(let pt=0;pt=0;--pt)if(!Uv(q,R[pt])){const Ht=R[pt];let An=k[pt];An=(0,Se.Ku)(An);const kn=_.Su(Ht);if(An instanceof Jc)q.push(Ht);else{const Sn=Pa(An,kn);null!=Sn&&(q.push(Ht),_e.set(Ht,Sn))}}const je=new Ci(q);return new $g(_e,je,_.fieldTransforms)}(p,"updateDoc",l._key,n,i,s):function Hf(l,n,i,s){const u=l.Fu(1,n,i);Kg("Data must be an object, but it was:",u,s);const p=[],_=Vn.empty();ai(s,(k,q)=>{const _e=Gf(n,k,i);q=(0,Se.Ku)(q);const je=u.Su(_e);if(q instanceof Jc)p.push(_e);else{const pt=Pa(q,je);null!=pt&&(p.push(_e),_.set(_e,pt))}});const R=new Ci(p);return new $g(_,R,u.fieldTransforms)}(p,"updateDoc",l._key,n),od(u,[_.toMutation(l._key,Ui.exists(!0))])}function Yy(l){return od(Ii(l.firestore,Bi),[new $(l._key,Ui.none())])}function od(l,n){return function(s,u){const p=new De;return s.asyncQueue.enqueueAndForget((0,ue.A)(function*(){return function Yd(l,n,i){return Jd.apply(this,arguments)}(yield function Pg(l){return Xc(l).then(n=>n.syncEngine)}(s),u,p)})),p.promise}(ro(l),n)}!function(n,i=!0){at=oe.MF,(0,oe.om)(new Xe.uA("firestore",(s,{instanceIdentifier:u,options:p})=>{const _=s.getProvider("app").getImmediate(),R=new Bi(new rn(s.getProvider("auth-internal")),new er(s.getProvider("app-check-internal")),function(q,_e){if(!Object.prototype.hasOwnProperty.apply(q.options,["projectId"]))throw new Le(ve.INVALID_ARGUMENT,'"projectId" not provided in firebase.initializeApp.');return new In(q.options.projectId,_e)}(_,u),_);return p=Object.assign({useFetchStreams:i},p),R._setSettings(p),R},"PUBLIC").setMultipleInstances(!0)),(0,oe.KO)(Fe,"4.6.3",n),(0,oe.KO)(Fe,"4.6.3","esm2017")}();class Eh{constructor(n){return n}}const tp="firestore",sm=new c.nKC("angularfire2.firestore-instances");function h0(l){return(n,i)=>{const s=n.runOutsideAngular(()=>l(i));return new Eh(s)}}const f0={provide:class d0{constructor(){return(0,h.CA)(tp)}},deps:[[new c.Xx1,sm]]},p0={provide:Eh,useFactory:function Zv(l,n){const i=(0,h.lR)(tp,l,n);return i&&new Eh(i)},deps:[[new c.Xx1,sm],Z.XU]};function e_(l,...n){return(0,U.KO)("angularfire",h.xv.full,"fst"),(0,c.EmA)([p0,f0,{provide:sm,useFactory:h0(l),multi:!0,deps:[c.SKi,c.zZn,h.u0,Z.gL,[new c.Xx1,Oe.DF],[new c.Xx1,h.Jv],...n]}])}const _0=(0,h.S3)(Py,!0),y0=(0,h.S3)(Yy,!0),lm=(0,h.S3)(xv,!0),cm=(0,h.S3)(Hv,!0),o_=(0,h.S3)(Gv,!0),dm=(0,h.S3)(dh,!0),P0=(0,h.S3)(em,!0),x0=(0,h.S3)(Qy,!0)},9032:(Tn,gt,S)=>{"use strict";S.d(gt,{L9:()=>cr,oc:()=>Lt,v_:()=>He,cw:()=>ye});var h=S(5407),c=S(4438),Z=S(7440),Oe=S(2214),U=S(467),ue=S(7852),oe=S(1362),Xe=S(1076),Je=S(1635),Se="@firebase/vertexai-preview",Ce="0.0.2";const Qe="vertexAI",Ze="us-central1",Dt=Ce,St="gl-js";class _t{constructor(ct,lt,Gt,tn){var _n;this.app=ct,this.options=tn;const qn=null==Gt?void 0:Gt.getImmediate({optional:!0}),hn=null==lt?void 0:lt.getImmediate({optional:!0});this.auth=hn||null,this.appCheck=qn||null,this.location=(null===(_n=this.options)||void 0===_n?void 0:_n.location)||Ze}_delete(){return Promise.resolve()}}const yt=new Xe.FA("vertexAI","VertexAI",{"fetch-error":"Error fetching from {$url}: {$message}","invalid-content":"Content formatting error: {$message}","no-api-key":'The "apiKey" field is empty in the local Firebase config. Firebase VertexAI requires this field tocontain a valid API key.',"no-project-id":'The "projectId" field is empty in the local Firebase config. Firebase VertexAI requires this field tocontain a valid project ID.',"no-model":"Must provide a model name. Example: getGenerativeModel({ model: 'my-model-name' })","parse-failed":"Parsing failed: {$message}","response-error":"Response error: {$message}. Response body stored in error.customData.response"});var mt=function(ie){return ie.GENERATE_CONTENT="generateContent",ie.STREAM_GENERATE_CONTENT="streamGenerateContent",ie.COUNT_TOKENS="countTokens",ie}(mt||{});class Me{constructor(ct,lt,Gt,tn,_n){this.model=ct,this.task=lt,this.apiSettings=Gt,this.stream=tn,this.requestOptions=_n}toString(){var ct;let tn=`${(null===(ct=this.requestOptions)||void 0===ct?void 0:ct.baseUrl)||"https://firebaseml.googleapis.com"}/v2beta`;return tn+=`/projects/${this.apiSettings.project}`,tn+=`/locations/${this.apiSettings.location}`,tn+=`/${this.model}`,tn+=`:${this.task}`,this.stream&&(tn+="?alt=sse"),tn}get fullModelString(){let ct=`projects/${this.apiSettings.project}`;return ct+=`/locations/${this.apiSettings.location}`,ct+=`/${this.model}`,ct}}function ge(ie){return Ue.apply(this,arguments)}function Ue(){return(Ue=(0,U.A)(function*(ie){const ct=new Headers;if(ct.append("Content-Type","application/json"),ct.append("x-goog-api-client",function Ye(){const ie=[];return ie.push(`${St}/${Dt}`),ie.push(`fire/${Dt}`),ie.join(" ")}()),ct.append("x-goog-api-key",ie.apiSettings.apiKey),ie.apiSettings.getAppCheckToken){const lt=yield ie.apiSettings.getAppCheckToken();lt&&!lt.error&&ct.append("X-Firebase-AppCheck",lt.token)}if(ie.apiSettings.getAuthToken){const lt=yield ie.apiSettings.getAuthToken();lt&&ct.append("Authorization",`Firebase ${lt.accessToken}`)}return ct})).apply(this,arguments)}function xe(){return(xe=(0,U.A)(function*(ie,ct,lt,Gt,tn,_n){const qn=new Me(ie,ct,lt,Gt,_n);return{url:qn.toString(),fetchOptions:Object.assign(Object.assign({},vn(_n)),{method:"POST",headers:yield ge(qn),body:tn})}})).apply(this,arguments)}function at(ie,ct,lt,Gt,tn,_n){return Rt.apply(this,arguments)}function Rt(){return Rt=(0,U.A)(function*(ie,ct,lt,Gt,tn,_n){const qn=new Me(ie,ct,lt,Gt,_n);let hn;try{const Cn=yield function Fe(ie,ct,lt,Gt,tn,_n){return xe.apply(this,arguments)}(ie,ct,lt,Gt,tn,_n);if(hn=yield fetch(Cn.url,Cn.fetchOptions),!hn.ok){let tr="";try{const Ar=yield hn.json();tr=Ar.error.message,Ar.error.details&&(tr+=` ${JSON.stringify(Ar.error.details)}`)}catch{}throw new Error(`[${hn.status} ${hn.statusText}] ${tr}`)}}catch(Cn){const tr=Cn,Ar=yt.create("fetch-error",{url:qn.toString(),message:tr.message});throw Ar.stack=tr.stack,Ar}return hn}),Rt.apply(this,arguments)}function vn(ie){const ct={};if(null!=ie&&ie.timeout&&(null==ie?void 0:ie.timeout)>=0){const lt=new AbortController,Gt=lt.signal;setTimeout(()=>lt.abort(),ie.timeout),ct.signal=Gt}return ct}const Nt=["user","model","function","system"];var fe=function(ie){return ie.FINISH_REASON_UNSPECIFIED="FINISH_REASON_UNSPECIFIED",ie.STOP="STOP",ie.MAX_TOKENS="MAX_TOKENS",ie.SAFETY="SAFETY",ie.RECITATION="RECITATION",ie.OTHER="OTHER",ie}(fe||{});function Le(ie){return ie.text=()=>{if(ie.candidates&&ie.candidates.length>0){if(ie.candidates.length>1&&console.warn(`This response had ${ie.candidates.length} candidates. Returning text from the first candidate only. Access response.candidates directly to use the other candidates.`),Kt(ie.candidates[0]))throw yt.create("response-error",{message:`${rn(ie)}`,response:ie});return function De(ie){var ct,lt,Gt,tn;const _n=[];if(null!==(lt=null===(ct=ie.candidates)||void 0===ct?void 0:ct[0].content)&&void 0!==lt&<.parts)for(const qn of null===(tn=null===(Gt=ie.candidates)||void 0===Gt?void 0:Gt[0].content)||void 0===tn?void 0:tn.parts)qn.text&&_n.push(qn.text);return _n.length>0?_n.join(""):""}(ie)}if(ie.promptFeedback)throw yt.create("response-error",{message:`Text not available. ${rn(ie)}`,response:ie});return""},ie.functionCalls=()=>{if(ie.candidates&&ie.candidates.length>0){if(ie.candidates.length>1&&console.warn(`This response had ${ie.candidates.length} candidates. Returning function calls from the first candidate only. Access response.candidates directly to use the other candidates.`),Kt(ie.candidates[0]))throw yt.create("response-error",{message:`${rn(ie)}`,response:ie});return function Wt(ie){var ct,lt,Gt,tn;const _n=[];if(null!==(lt=null===(ct=ie.candidates)||void 0===ct?void 0:ct[0].content)&&void 0!==lt&<.parts)for(const qn of null===(tn=null===(Gt=ie.candidates)||void 0===Gt?void 0:Gt[0].content)||void 0===tn?void 0:tn.parts)qn.functionCall&&_n.push(qn.functionCall);if(_n.length>0)return _n}(ie)}if(ie.promptFeedback)throw yt.create("response-error",{message:`Function call not available. ${rn(ie)}`,response:ie})},ie}const dn=[fe.RECITATION,fe.SAFETY];function Kt(ie){return!!ie.finishReason&&dn.includes(ie.finishReason)}function rn(ie){var ct,lt,Gt;let tn="";if(ie.candidates&&0!==ie.candidates.length||!ie.promptFeedback){if(null!==(Gt=ie.candidates)&&void 0!==Gt&&Gt[0]){const _n=ie.candidates[0];Kt(_n)&&(tn+=`Candidate was blocked due to ${_n.finishReason}`,_n.finishMessage&&(tn+=`: ${_n.finishMessage}`))}}else tn+="Response was blocked",!(null===(ct=ie.promptFeedback)||void 0===ct)&&ct.blockReason&&(tn+=` due to ${ie.promptFeedback.blockReason}`),null!==(lt=ie.promptFeedback)&&void 0!==lt&<.blockReasonMessage&&(tn+=`: ${ie.promptFeedback.blockReasonMessage}`);return tn}const Ln=/^data\: (.*)(?:\n\n|\r\r|\r\n\r\n)/;function nr(ie){return er.apply(this,arguments)}function er(){return(er=(0,U.A)(function*(ie){const ct=[],lt=ie.getReader();for(;;){const{done:Gt,value:tn}=yield lt.read();if(Gt)return Le(ir(ct));ct.push(tn)}})).apply(this,arguments)}function yr(ie){return(0,Je.AQ)(this,arguments,function*(){const lt=ie.getReader();for(;;){const{value:Gt,done:tn}=yield(0,Je.N3)(lt.read());if(tn)break;yield yield(0,Je.N3)(Le(Gt))}})}function ir(ie){const ct=ie[ie.length-1],lt={promptFeedback:null==ct?void 0:ct.promptFeedback};for(const Gt of ie)if(Gt.candidates)for(const tn of Gt.candidates){const _n=tn.index;if(lt.candidates||(lt.candidates=[]),lt.candidates[_n]||(lt.candidates[_n]={index:tn.index}),lt.candidates[_n].citationMetadata=tn.citationMetadata,lt.candidates[_n].finishReason=tn.finishReason,lt.candidates[_n].finishMessage=tn.finishMessage,lt.candidates[_n].safetyRatings=tn.safetyRatings,tn.content&&tn.content.parts){lt.candidates[_n].content||(lt.candidates[_n].content={role:tn.content.role||"user",parts:[]});const qn={};for(const hn of tn.content.parts)hn.text&&(qn.text=hn.text),hn.functionCall&&(qn.functionCall=hn.functionCall),0===Object.keys(qn).length&&(qn.text=""),lt.candidates[_n].content.parts.push(qn)}}return lt}function nt(ie,ct,lt,Gt){return Ot.apply(this,arguments)}function Ot(){return(Ot=(0,U.A)(function*(ie,ct,lt,Gt){return function Zn(ie){const lt=function rr(ie){const ct=ie.getReader();return new ReadableStream({start(Gt){let tn="";return function _n(){return ct.read().then(({value:qn,done:hn})=>{if(hn)return tn.trim()?void Gt.error(yt.create("parse-failed",{message:"Failed to parse stream"})):void Gt.close();tn+=qn;let tr,Cn=tn.match(Ln);for(;Cn;){try{tr=JSON.parse(Cn[1])}catch{return void Gt.error(yt.create("parse-failed",{message:`Error parsing JSON response: "${Cn[1]}"`}))}Gt.enqueue(tr),tn=tn.substring(Cn[0].length),Cn=tn.match(Ln)}return _n()})}()}})}(ie.body.pipeThrough(new TextDecoderStream("utf8",{fatal:!0}))),[Gt,tn]=lt.tee();return{stream:yr(Gt),response:nr(tn)}}(yield at(ct,mt.STREAM_GENERATE_CONTENT,ie,!0,JSON.stringify(lt),Gt))})).apply(this,arguments)}function zt(ie,ct,lt,Gt){return pn.apply(this,arguments)}function pn(){return(pn=(0,U.A)(function*(ie,ct,lt,Gt){return{response:Le(yield(yield at(ct,mt.GENERATE_CONTENT,ie,!1,JSON.stringify(lt),Gt)).json())}})).apply(this,arguments)}function gn(ie){if(null!=ie){if("string"==typeof ie)return{role:"system",parts:[{text:ie}]};if(ie.text)return{role:"system",parts:[ie]};if(ie.parts)return ie.role?ie:{role:"system",parts:ie.parts}}}function Sr(ie){let ct=[];if("string"==typeof ie)ct=[{text:ie}];else for(const lt of ie)ct.push("string"==typeof lt?{text:lt}:lt);return function Mn(ie){const ct={role:"user",parts:[]},lt={role:"function",parts:[]};let Gt=!1,tn=!1;for(const _n of ie)"functionResponse"in _n?(lt.parts.push(_n),tn=!0):(ct.parts.push(_n),Gt=!0);if(Gt&&tn)throw yt.create("invalid-content",{message:"Within a single message, FunctionResponse cannot be mixed with other type of part in the request for sending chat message."});if(!Gt&&!tn)throw yt.create("invalid-content",{message:"No content is provided for sending chat message."});return Gt?ct:lt}(ct)}function xn(ie){let ct;return ct=ie.contents?ie:{contents:[Sr(ie)]},ie.systemInstruction&&(ct.systemInstruction=gn(ie.systemInstruction)),ct}const mn=["text","inlineData","functionCall","functionResponse"],en={user:["text","inlineData"],function:["functionResponse"],model:["text","functionCall"],system:["text"]},Er={user:["model"],function:["model"],model:["user","function"],system:[]},Nr="SILENT_ERROR";class Qn{constructor(ct,lt,Gt,tn){this.model=lt,this.params=Gt,this.requestOptions=tn,this._history=[],this._sendPromise=Promise.resolve(),this._apiSettings=ct,null!=Gt&&Gt.history&&(function Ir(ie){let ct=null;for(const lt of ie){const{role:Gt,parts:tn}=lt;if(!ct&&"user"!==Gt)throw yt.create("invalid-content",{message:`First content should be with role 'user', got ${Gt}`});if(!Nt.includes(Gt))throw yt.create("invalid-content",{message:`Each item should include role field. Got ${Gt} but valid roles are: ${JSON.stringify(Nt)}`});if(!Array.isArray(tn))throw yt.create("invalid-content",{message:"Content should have 'parts' property with an array of Parts"});if(0===tn.length)throw yt.create("invalid-content",{message:"Each Content should have at least one part"});const _n={text:0,inlineData:0,functionCall:0,functionResponse:0};for(const hn of tn)for(const Cn of mn)Cn in hn&&(_n[Cn]+=1);const qn=en[Gt];for(const hn of mn)if(!qn.includes(hn)&&_n[hn]>0)throw yt.create("invalid-content",{message:`Content with role '${Gt}' can't contain '${hn}' part`});if(ct&&!Er[Gt].includes(ct.role))throw yt.create("invalid-content",{message:`Content with role '${Gt}' can't follow '${ct.role}'. Valid previous roles: ${JSON.stringify(Er)}`});ct=lt}}(Gt.history),this._history=Gt.history)}getHistory(){var ct=this;return(0,U.A)(function*(){return yield ct._sendPromise,ct._history})()}sendMessage(ct){var lt=this;return(0,U.A)(function*(){var Gt,tn,_n,qn,hn;yield lt._sendPromise;const Cn=Sr(ct),tr={safetySettings:null===(Gt=lt.params)||void 0===Gt?void 0:Gt.safetySettings,generationConfig:null===(tn=lt.params)||void 0===tn?void 0:tn.generationConfig,tools:null===(_n=lt.params)||void 0===_n?void 0:_n.tools,toolConfig:null===(qn=lt.params)||void 0===qn?void 0:qn.toolConfig,systemInstruction:null===(hn=lt.params)||void 0===hn?void 0:hn.systemInstruction,contents:[...lt._history,Cn]};let Ar={};return lt._sendPromise=lt._sendPromise.then(()=>zt(lt._apiSettings,lt.model,tr,lt.requestOptions)).then(dr=>{var $r,Zr;if(dr.response.candidates&&dr.response.candidates.length>0){lt._history.push(Cn);const fr={parts:(null===($r=dr.response.candidates)||void 0===$r?void 0:$r[0].content.parts)||[],role:(null===(Zr=dr.response.candidates)||void 0===Zr?void 0:Zr[0].content.role)||"model"};lt._history.push(fr)}else{const fr=rn(dr.response);fr&&console.warn(`sendMessage() was unsuccessful. ${fr}. Inspect response object for details.`)}Ar=dr}),yield lt._sendPromise,Ar})()}sendMessageStream(ct){var lt=this;return(0,U.A)(function*(){var Gt,tn,_n,qn,hn;yield lt._sendPromise;const Cn=Sr(ct),tr={safetySettings:null===(Gt=lt.params)||void 0===Gt?void 0:Gt.safetySettings,generationConfig:null===(tn=lt.params)||void 0===tn?void 0:tn.generationConfig,tools:null===(_n=lt.params)||void 0===_n?void 0:_n.tools,toolConfig:null===(qn=lt.params)||void 0===qn?void 0:qn.toolConfig,systemInstruction:null===(hn=lt.params)||void 0===hn?void 0:hn.systemInstruction,contents:[...lt._history,Cn]},Ar=nt(lt._apiSettings,lt.model,tr,lt.requestOptions);return lt._sendPromise=lt._sendPromise.then(()=>Ar).catch(dr=>{throw new Error(Nr)}).then(dr=>dr.response).then(dr=>{if(dr.candidates&&dr.candidates.length>0){lt._history.push(Cn);const $r=Object.assign({},dr.candidates[0].content);$r.role||($r.role="model"),lt._history.push($r)}else{const $r=rn(dr);$r&&console.warn(`sendMessageStream() was unsuccessful. ${$r}. Inspect response object for details.`)}}).catch(dr=>{dr.message!==Nr&&console.error(dr)}),Ar})()}}function Jn(){return(Jn=(0,U.A)(function*(ie,ct,lt,Gt){return(yield at(ct,mt.COUNT_TOKENS,ie,!1,JSON.stringify(lt),Gt)).json()})).apply(this,arguments)}class Jr{constructor(ct,lt,Gt){var tn,_n,qn,hn;if(null===(_n=null===(tn=ct.app)||void 0===tn?void 0:tn.options)||void 0===_n||!_n.apiKey)throw yt.create("no-api-key");if(null===(hn=null===(qn=ct.app)||void 0===qn?void 0:qn.options)||void 0===hn||!hn.projectId)throw yt.create("no-project-id");this._apiSettings={apiKey:ct.app.options.apiKey,project:ct.app.options.projectId,location:ct.location},ct.appCheck&&(this._apiSettings.getAppCheckToken=()=>ct.appCheck.getToken()),ct.auth&&(this._apiSettings.getAuthToken=()=>ct.auth.getToken()),this.model=lt.model.includes("/")?lt.model.startsWith("models/")?`publishers/google/${lt.model}`:lt.model:`publishers/google/models/${lt.model}`,this.generationConfig=lt.generationConfig||{},this.safetySettings=lt.safetySettings||[],this.tools=lt.tools,this.toolConfig=lt.toolConfig,this.systemInstruction=gn(lt.systemInstruction),this.requestOptions=Gt||{}}generateContent(ct){var lt=this;return(0,U.A)(function*(){const Gt=xn(ct);return zt(lt._apiSettings,lt.model,Object.assign({generationConfig:lt.generationConfig,safetySettings:lt.safetySettings,tools:lt.tools,toolConfig:lt.toolConfig,systemInstruction:lt.systemInstruction},Gt),lt.requestOptions)})()}generateContentStream(ct){var lt=this;return(0,U.A)(function*(){const Gt=xn(ct);return nt(lt._apiSettings,lt.model,Object.assign({generationConfig:lt.generationConfig,safetySettings:lt.safetySettings,tools:lt.tools,toolConfig:lt.toolConfig,systemInstruction:lt.systemInstruction},Gt),lt.requestOptions)})()}startChat(ct){return new Qn(this._apiSettings,this.model,Object.assign({tools:this.tools,toolConfig:this.toolConfig,systemInstruction:this.systemInstruction},ct),this.requestOptions)}countTokens(ct){var lt=this;return(0,U.A)(function*(){const Gt=xn(ct);return function Dr(ie,ct,lt,Gt){return Jn.apply(this,arguments)}(lt._apiSettings,lt.model,Gt)})()}}function mr(ie=(0,ue.Sx)(),ct){return ie=(0,Xe.Ku)(ie),(0,ue.j6)(ie,Qe).getImmediate({identifier:(null==ct?void 0:ct.location)||Ze})}function ur(ie,ct,lt){if(!ct.model)throw yt.create("no-model");return new Jr(ie,ct,lt)}!function Pr(){(0,ue.om)(new oe.uA(Qe,(ie,{instanceIdentifier:ct})=>{const lt=ie.getProvider("app").getImmediate(),Gt=ie.getProvider("auth-internal"),tn=ie.getProvider("app-check-internal");return new _t(lt,Gt,tn,{location:ct})},"PUBLIC").setMultipleInstances(!0)),(0,ue.KO)(Se,Ce),(0,ue.KO)(Se,Ce,"esm2017")}();class cr{constructor(ct){return ct}}const kr="vertexai",Qr=new c.nKC("angularfire2.vertexai-instances");function rt(ie){return(ct,lt)=>{const Gt=ct.runOutsideAngular(()=>ie(lt));return new cr(Gt)}}const Mt={provide:class ii{constructor(){return(0,h.CA)(kr)}},deps:[[new c.Xx1,Qr]]},ut={provide:cr,useFactory:function pe(ie,ct){const lt=(0,h.lR)(kr,ie,ct);return lt&&new cr(lt)},deps:[[new c.Xx1,Qr],Z.XU]};function ye(ie,...ct){return(0,Oe.KO)("angularfire",h.xv.full,"vertexai"),(0,c.EmA)([ut,Mt,{provide:Qr,useFactory:rt(ie),multi:!0,deps:[c.SKi,c.zZn,h.u0,Z.gL,[new c.Xx1,h.Jv],...ct]}])}const He=(0,h.S3)(mr,!0),Lt=(0,h.S3)(ur,!0)},5407:(Tn,gt,S)=>{"use strict";S.d(gt,{xv:()=>ht,u0:()=>ge,Jv:()=>Tt,CA:()=>_t,lR:()=>St,S3:()=>on});var h=S(9842),c=S(4438),Z=S(2214),Oe=S(6780),ue=S(9687);const Xe=new class oe extends ue.q{}(class U extends Oe.R{constructor(we,H){super(we,H),this.scheduler=we,this.work=H}schedule(we,H=0){return H>0?super.schedule(we,H):(this.delay=H,this.state=we,this.scheduler.flush(this),this)}execute(we,H){return H>0||this.closed?super.execute(we,H):this._execute(we,H)}requestAsyncId(we,H,X=0){return null!=X&&X>0||null==X&&this.delay>0?super.requestAsyncId(we,H,X):(we.flush(this),0)}});var Se=S(3236),Ce=S(1985),Qe=S(8141),Ze=S(6745),qe=S(941);const ht=new c.RxE("ANGULARFIRE2_VERSION");function St(dt,we,H){if(we){if(1===we.length)return we[0];const se=we.filter(ve=>ve.app===H);if(1===se.length)return se[0]}return H.container.getProvider(dt).getImmediate({optional:!0})}const _t=(dt,we)=>{const H=we?[we]:(0,Z.Dk)(),X=[];return H.forEach(fe=>{fe.container.getProvider(dt).instances.forEach(ve=>{X.includes(ve)||X.push(ve)})}),X};class Tt{constructor(){return _t(yt)}}const yt="app-check";function mt(){}class Me{constructor(we,H=Xe){(0,h.A)(this,"zone",void 0),(0,h.A)(this,"delegate",void 0),this.zone=we,this.delegate=H}now(){return this.delegate.now()}schedule(we,H,X){const fe=this.zone;return this.delegate.schedule(function(ve){fe.runGuarded(()=>{we.apply(this,[ve])})},H,X)}}class Ye{constructor(we){(0,h.A)(this,"zone",void 0),(0,h.A)(this,"task",null),this.zone=we}call(we,H){const X=this.unscheduleTask.bind(this);return this.task=this.zone.run(()=>Zone.current.scheduleMacroTask("firebaseZoneBlock",mt,{},mt,mt)),H.pipe((0,Qe.M)({next:X,complete:X,error:X})).subscribe(we).add(X)}unscheduleTask(){setTimeout(()=>{null!=this.task&&"scheduled"===this.task.state&&(this.task.invoke(),this.task=null)},10)}}let ge=(()=>{var dt;class we{constructor(X){(0,h.A)(this,"ngZone",void 0),(0,h.A)(this,"outsideAngular",void 0),(0,h.A)(this,"insideAngular",void 0),this.ngZone=X,this.outsideAngular=X.runOutsideAngular(()=>new Me(Zone.current)),this.insideAngular=X.run(()=>new Me(Zone.current,Se.E)),globalThis.\u0275AngularFireScheduler||(globalThis.\u0275AngularFireScheduler=this)}}return dt=we,(0,h.A)(we,"\u0275fac",function(X){return new(X||dt)(c.KVO(c.SKi))}),(0,h.A)(we,"\u0275prov",c.jDH({token:dt,factory:dt.\u0275fac,providedIn:"root"})),we})();function Ue(){const dt=globalThis.\u0275AngularFireScheduler;if(!dt)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 dt}function xe(dt){return Ue().ngZone.run(()=>dt())}function vn(dt){return function Nt(dt){return function(H){return(H=H.lift(new Ye(dt.ngZone))).pipe((0,Ze._)(dt.outsideAngular),(0,qe.Q)(dt.insideAngular))}}(Ue())(dt)}const tt=(dt,we)=>function(){const X=arguments;return we&&setTimeout(()=>{"scheduled"===we.state&&we.invoke()},10),xe(()=>dt.apply(void 0,X))},on=(dt,we)=>function(){let H;const X=arguments;for(let se=0;seZone.current.scheduleMacroTask("firebaseZoneBlock",mt,{},mt,mt)))),X[se]=tt(X[se],H));const fe=function Fe(dt){return Ue().ngZone.runOutsideAngular(()=>dt())}(()=>dt.apply(this,X));if(!we){if(fe instanceof Ce.c){const se=Ue();return fe.pipe((0,Ze._)(se.outsideAngular),(0,qe.Q)(se.insideAngular))}return xe(()=>fe)}return fe instanceof Ce.c?fe.pipe(vn):fe instanceof Promise?xe(()=>new Promise((se,ve)=>fe.then(Le=>xe(()=>se(Le)),Le=>xe(()=>ve(Le))))):"function"==typeof fe&&H?function(){return setTimeout(()=>{H&&"scheduled"===H.state&&H.invoke()},10),fe.apply(this,arguments)}:xe(()=>fe)}},4341:(Tn,gt,S)=>{"use strict";S.d(gt,{YN:()=>ha,zX:()=>ki,VZ:()=>as,cz:()=>ge,kq:()=>ht,vO:()=>zt,BC:()=>Mn,vS:()=>bt});var h=S(4438),c=S(177),Z=S(8455),Oe=S(1985),U=S(3073),ue=S(8750),oe=S(9326),Xe=S(4360),Je=S(6450),Se=S(8496),Qe=S(6354);let Ze=(()=>{var K;class N{constructor(G,ke){this._renderer=G,this._elementRef=ke,this.onChange=yn=>{},this.onTouched=()=>{}}setProperty(G,ke){this._renderer.setProperty(this._elementRef.nativeElement,G,ke)}registerOnTouched(G){this.onTouched=G}registerOnChange(G){this.onChange=G}setDisabledState(G){this.setProperty("disabled",G)}}return(K=N).\u0275fac=function(G){return new(G||K)(h.rXU(h.sFG),h.rXU(h.aKT))},K.\u0275dir=h.FsC({type:K}),N})(),qe=(()=>{var K;class N extends Ze{}return(K=N).\u0275fac=(()=>{let Ae;return function(ke){return(Ae||(Ae=h.xGo(K)))(ke||K)}})(),K.\u0275dir=h.FsC({type:K,features:[h.Vt3]}),N})();const ht=new h.nKC(""),_t={provide:ht,useExisting:(0,h.Rfq)(()=>mt),multi:!0},yt=new h.nKC("");let mt=(()=>{var K;class N extends Ze{constructor(G,ke,yn){super(G,ke),this._compositionMode=yn,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function Tt(){const K=(0,c.QT)()?(0,c.QT)().getUserAgent():"";return/android (\d+)/.test(K.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(K=N).\u0275fac=function(G){return new(G||K)(h.rXU(h.sFG),h.rXU(h.aKT),h.rXU(yt,8))},K.\u0275dir=h.FsC({type:K,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,ke){1&G&&h.bIt("input",function(Xn){return ke._handleInput(Xn.target.value)})("blur",function(){return ke.onTouched()})("compositionstart",function(){return ke._compositionStart()})("compositionend",function(Xn){return ke._compositionEnd(Xn.target.value)})},features:[h.Jv_([_t]),h.Vt3]}),N})();function Me(K){return null==K||("string"==typeof K||Array.isArray(K))&&0===K.length}const ge=new h.nKC(""),Ue=new h.nKC("");function H(K){return null}function X(K){return null!=K}function fe(K){return(0,h.jNT)(K)?(0,Z.H)(K):K}function se(K){let N={};return K.forEach(Ae=>{N=null!=Ae?{...N,...Ae}:N}),0===Object.keys(N).length?null:N}function ve(K,N){return N.map(Ae=>Ae(K))}function De(K){return K.map(N=>function Le(K){return!K.validate}(N)?N:Ae=>N.validate(Ae))}function dn(K){return null!=K?function Wt(K){if(!K)return null;const N=K.filter(X);return 0==N.length?null:function(Ae){return se(ve(Ae,N))}}(De(K)):null}function rn(K){return null!=K?function Kt(K){if(!K)return null;const N=K.filter(X);return 0==N.length?null:function(Ae){return function Ce(...K){const N=(0,oe.ms)(K),{args:Ae,keys:G}=(0,U.D)(K),ke=new Oe.c(yn=>{const{length:Xn}=Ae;if(!Xn)return void yn.complete();const wr=new Array(Xn);let oo=Xn,wo=Xn;for(let So=0;So{Yo||(Yo=!0,wo--),wr[So]=Fa},()=>oo--,void 0,()=>{(!oo||!Yo)&&(wo||yn.next(G?(0,Se.e)(G,wr):wr),yn.complete())}))}});return N?ke.pipe((0,Je.I)(N)):ke}(ve(Ae,N).map(fe)).pipe((0,Qe.T)(se))}}(De(K)):null}function Ln(K,N){return null===K?[N]:Array.isArray(K)?[...K,N]:[K,N]}function er(K){return K?Array.isArray(K)?K:[K]:[]}function yr(K,N){return Array.isArray(K)?K.includes(N):K===N}function rr(K,N){const Ae=er(N);return er(K).forEach(ke=>{yr(Ae,ke)||Ae.push(ke)}),Ae}function ir(K,N){return er(N).filter(Ae=>!yr(K,Ae))}class nt{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(N){this._rawValidators=N||[],this._composedValidatorFn=dn(this._rawValidators)}_setAsyncValidators(N){this._rawAsyncValidators=N||[],this._composedAsyncValidatorFn=rn(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(N){this._onDestroyCallbacks.push(N)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(N=>N()),this._onDestroyCallbacks=[]}reset(N=void 0){this.control&&this.control.reset(N)}hasError(N,Ae){return!!this.control&&this.control.hasError(N,Ae)}getError(N,Ae){return this.control?this.control.getError(N,Ae):null}}class Ot extends nt{get formDirective(){return null}get path(){return null}}class zt extends nt{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class pn{constructor(N){this._cd=N}get isTouched(){var N;return!(null===(N=this._cd)||void 0===N||null===(N=N.control)||void 0===N||!N.touched)}get isUntouched(){var N;return!(null===(N=this._cd)||void 0===N||null===(N=N.control)||void 0===N||!N.untouched)}get isPristine(){var N;return!(null===(N=this._cd)||void 0===N||null===(N=N.control)||void 0===N||!N.pristine)}get isDirty(){var N;return!(null===(N=this._cd)||void 0===N||null===(N=N.control)||void 0===N||!N.dirty)}get isValid(){var N;return!(null===(N=this._cd)||void 0===N||null===(N=N.control)||void 0===N||!N.valid)}get isInvalid(){var N;return!(null===(N=this._cd)||void 0===N||null===(N=N.control)||void 0===N||!N.invalid)}get isPending(){var N;return!(null===(N=this._cd)||void 0===N||null===(N=N.control)||void 0===N||!N.pending)}get isSubmitted(){var N;return!(null===(N=this._cd)||void 0===N||!N.submitted)}}let Mn=(()=>{var K;class N extends pn{constructor(G){super(G)}}return(K=N).\u0275fac=function(G){return new(G||K)(h.rXU(zt,2))},K.\u0275dir=h.FsC({type:K,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(G,ke){2&G&&h.AVh("ng-untouched",ke.isUntouched)("ng-touched",ke.isTouched)("ng-pristine",ke.isPristine)("ng-dirty",ke.isDirty)("ng-valid",ke.isValid)("ng-invalid",ke.isInvalid)("ng-pending",ke.isPending)},features:[h.Vt3]}),N})();const pe="VALID",rt="INVALID",Mt="PENDING",ut="DISABLED";function ie(K){return null!=K&&!Array.isArray(K)&&"object"==typeof K}class Gt{constructor(N,Ae){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(N),this._assignAsyncValidators(Ae)}get validator(){return this._composedValidatorFn}set validator(N){this._rawValidators=this._composedValidatorFn=N}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(N){this._rawAsyncValidators=this._composedAsyncValidatorFn=N}get parent(){return this._parent}get valid(){return this.status===pe}get invalid(){return this.status===rt}get pending(){return this.status==Mt}get disabled(){return this.status===ut}get enabled(){return this.status!==ut}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(N){this._assignValidators(N)}setAsyncValidators(N){this._assignAsyncValidators(N)}addValidators(N){this.setValidators(rr(N,this._rawValidators))}addAsyncValidators(N){this.setAsyncValidators(rr(N,this._rawAsyncValidators))}removeValidators(N){this.setValidators(ir(N,this._rawValidators))}removeAsyncValidators(N){this.setAsyncValidators(ir(N,this._rawAsyncValidators))}hasValidator(N){return yr(this._rawValidators,N)}hasAsyncValidator(N){return yr(this._rawAsyncValidators,N)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(N={}){this.touched=!0,this._parent&&!N.onlySelf&&this._parent.markAsTouched(N)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(N=>N.markAllAsTouched())}markAsUntouched(N={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(Ae=>{Ae.markAsUntouched({onlySelf:!0})}),this._parent&&!N.onlySelf&&this._parent._updateTouched(N)}markAsDirty(N={}){this.pristine=!1,this._parent&&!N.onlySelf&&this._parent.markAsDirty(N)}markAsPristine(N={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(Ae=>{Ae.markAsPristine({onlySelf:!0})}),this._parent&&!N.onlySelf&&this._parent._updatePristine(N)}markAsPending(N={}){this.status=Mt,!1!==N.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!N.onlySelf&&this._parent.markAsPending(N)}disable(N={}){const Ae=this._parentMarkedDirty(N.onlySelf);this.status=ut,this.errors=null,this._forEachChild(G=>{G.disable({...N,onlySelf:!0})}),this._updateValue(),!1!==N.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...N,skipPristineCheck:Ae}),this._onDisabledChange.forEach(G=>G(!0))}enable(N={}){const Ae=this._parentMarkedDirty(N.onlySelf);this.status=pe,this._forEachChild(G=>{G.enable({...N,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:N.emitEvent}),this._updateAncestors({...N,skipPristineCheck:Ae}),this._onDisabledChange.forEach(G=>G(!1))}_updateAncestors(N){this._parent&&!N.onlySelf&&(this._parent.updateValueAndValidity(N),N.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(N){this._parent=N}getRawValue(){return this.value}updateValueAndValidity(N={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===pe||this.status===Mt)&&this._runAsyncValidator(N.emitEvent)),!1!==N.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!N.onlySelf&&this._parent.updateValueAndValidity(N)}_updateTreeValidity(N={emitEvent:!0}){this._forEachChild(Ae=>Ae._updateTreeValidity(N)),this.updateValueAndValidity({onlySelf:!0,emitEvent:N.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?ut:pe}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(N){if(this.asyncValidator){this.status=Mt,this._hasOwnPendingAsyncValidator=!0;const Ae=fe(this.asyncValidator(this));this._asyncValidationSubscription=Ae.subscribe(G=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(G,{emitEvent:N})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(N,Ae={}){this.errors=N,this._updateControlsErrors(!1!==Ae.emitEvent)}get(N){let Ae=N;return null==Ae||(Array.isArray(Ae)||(Ae=Ae.split(".")),0===Ae.length)?null:Ae.reduce((G,ke)=>G&&G._find(ke),this)}getError(N,Ae){const G=Ae?this.get(Ae):this;return G&&G.errors?G.errors[N]:null}hasError(N,Ae){return!!this.getError(N,Ae)}get root(){let N=this;for(;N._parent;)N=N._parent;return N}_updateControlsErrors(N){this.status=this._calculateStatus(),N&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(N)}_initObservables(){this.valueChanges=new h.bkB,this.statusChanges=new h.bkB}_calculateStatus(){return this._allControlsDisabled()?ut:this.errors?rt:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Mt)?Mt:this._anyControlsHaveStatus(rt)?rt:pe}_anyControlsHaveStatus(N){return this._anyControls(Ae=>Ae.status===N)}_anyControlsDirty(){return this._anyControls(N=>N.dirty)}_anyControlsTouched(){return this._anyControls(N=>N.touched)}_updatePristine(N={}){this.pristine=!this._anyControlsDirty(),this._parent&&!N.onlySelf&&this._parent._updatePristine(N)}_updateTouched(N={}){this.touched=this._anyControlsTouched(),this._parent&&!N.onlySelf&&this._parent._updateTouched(N)}_registerOnCollectionChange(N){this._onCollectionChange=N}_setUpdateStrategy(N){ie(N)&&null!=N.updateOn&&(this._updateOn=N.updateOn)}_parentMarkedDirty(N){return!N&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(N){return null}_assignValidators(N){this._rawValidators=Array.isArray(N)?N.slice():N,this._composedValidatorFn=function ye(K){return Array.isArray(K)?dn(K):K||null}(this._rawValidators)}_assignAsyncValidators(N){this._rawAsyncValidators=Array.isArray(N)?N.slice():N,this._composedAsyncValidatorFn=function Lt(K){return Array.isArray(K)?rn(K):K||null}(this._rawAsyncValidators)}}const Ar=new h.nKC("CallSetDisabledState",{providedIn:"root",factory:()=>dr}),dr="always";function Zr(K,N,Ae=dr){var G,ke;(function pr(K,N){const Ae=function Zn(K){return K._rawValidators}(K);null!==N.validator?K.setValidators(Ln(Ae,N.validator)):"function"==typeof Ae&&K.setValidators([Ae]);const G=function nr(K){return K._rawAsyncValidators}(K);null!==N.asyncValidator?K.setAsyncValidators(Ln(G,N.asyncValidator)):"function"==typeof G&&K.setAsyncValidators([G]);const ke=()=>K.updateValueAndValidity();Ri(N._rawValidators,ke),Ri(N._rawAsyncValidators,ke)})(K,N),N.valueAccessor.writeValue(K.value),(K.disabled||"always"===Ae)&&(null===(G=(ke=N.valueAccessor).setDisabledState)||void 0===G||G.call(ke,K.disabled)),function te(K,N){N.valueAccessor.registerOnChange(Ae=>{K._pendingValue=Ae,K._pendingChange=!0,K._pendingDirty=!0,"change"===K.updateOn&&ze(K,N)})}(K,N),function M(K,N){const Ae=(G,ke)=>{N.valueAccessor.writeValue(G),ke&&N.viewToModelUpdate(G)};K.registerOnChange(Ae),N._registerOnDestroy(()=>{K._unregisterOnChange(Ae)})}(K,N),function ee(K,N){N.valueAccessor.registerOnTouched(()=>{K._pendingTouched=!0,"blur"===K.updateOn&&K._pendingChange&&ze(K,N),"submit"!==K.updateOn&&K.markAsTouched()})}(K,N),function gi(K,N){if(N.valueAccessor.setDisabledState){const Ae=G=>{N.valueAccessor.setDisabledState(G)};K.registerOnDisabledChange(Ae),N._registerOnDestroy(()=>{K._unregisterOnDisabledChange(Ae)})}}(K,N)}function Ri(K,N){K.forEach(Ae=>{Ae.registerOnValidatorChange&&Ae.registerOnValidatorChange(N)})}function ze(K,N){K._pendingDirty&&K.markAsDirty(),K.setValue(K._pendingValue,{emitModelToViewChange:!1}),N.viewToModelUpdate(K._pendingValue),K._pendingChange=!1}function Cr(K,N){const Ae=K.indexOf(N);Ae>-1&&K.splice(Ae,1)}function ai(K){return"object"==typeof K&&null!==K&&2===Object.keys(K).length&&"value"in K&&"disabled"in K}Promise.resolve();const li=class extends Gt{constructor(N=null,Ae,G){super(function ce(K){return(ie(K)?K.validators:K)||null}(Ae),function He(K,N){return(ie(N)?N.asyncValidators:K)||null}(G,Ae)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(N),this._setUpdateStrategy(Ae),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),ie(Ae)&&(Ae.nonNullable||Ae.initialValueIsDefault)&&(this.defaultValue=ai(N)?N.value:N)}setValue(N,Ae={}){this.value=this._pendingValue=N,this._onChange.length&&!1!==Ae.emitModelToViewChange&&this._onChange.forEach(G=>G(this.value,!1!==Ae.emitViewToModelChange)),this.updateValueAndValidity(Ae)}patchValue(N,Ae={}){this.setValue(N,Ae)}reset(N=this.defaultValue,Ae={}){this._applyFormState(N),this.markAsPristine(Ae),this.markAsUntouched(Ae),this.setValue(this.value,Ae),this._pendingChange=!1}_updateValue(){}_anyControls(N){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(N){this._onChange.push(N)}_unregisterOnChange(N){Cr(this._onChange,N)}registerOnDisabledChange(N){this._onDisabledChange.push(N)}_unregisterOnDisabledChange(N){Cr(this._onDisabledChange,N)}_forEachChild(N){}_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(N){ai(N)?(this.value=this._pendingValue=N.value,N.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=N}},No={provide:zt,useExisting:(0,h.Rfq)(()=>bt)},oi=Promise.resolve();let bt=(()=>{var K;class N extends zt{constructor(G,ke,yn,Xn,wr,oo){super(),this._changeDetectorRef=wr,this.callSetDisabledState=oo,this.control=new li,this._registered=!1,this.name="",this.update=new h.bkB,this._parent=G,this._setValidators(ke),this._setAsyncValidators(yn),this.valueAccessor=function On(K,N){if(!N)return null;let Ae,G,ke;return Array.isArray(N),N.forEach(yn=>{yn.constructor===mt?Ae=yn:function Un(K){return Object.getPrototypeOf(K.constructor)===qe}(yn)?G=yn:ke=yn}),ke||G||Ae||null}(0,Xn)}ngOnChanges(G){if(this._checkForErrors(),!this._registered||"name"in G){if(this._registered&&(this._checkName(),this.formDirective)){const ke=G.name.previousValue;this.formDirective.removeControl({name:ke,path:this._getPath(ke)})}this._setUpControl()}"isDisabled"in G&&this._updateDisabled(G),function or(K,N){if(!K.hasOwnProperty("model"))return!1;const Ae=K.model;return!!Ae.isFirstChange()||!Object.is(N,Ae.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(){Zr(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){oi.then(()=>{var ke;this.control.setValue(G,{emitViewToModelChange:!1}),null===(ke=this._changeDetectorRef)||void 0===ke||ke.markForCheck()})}_updateDisabled(G){const ke=G.isDisabled.currentValue,yn=0!==ke&&(0,h.L39)(ke);oi.then(()=>{var Xn;yn&&!this.control.disabled?this.control.disable():!yn&&this.control.disabled&&this.control.enable(),null===(Xn=this._changeDetectorRef)||void 0===Xn||Xn.markForCheck()})}_getPath(G){return this._parent?function $r(K,N){return[...N.path,K]}(G,this._parent):[G]}}return(K=N).\u0275fac=function(G){return new(G||K)(h.rXU(Ot,9),h.rXU(ge,10),h.rXU(Ue,10),h.rXU(ht,10),h.rXU(h.gRc,8),h.rXU(Ar,8))},K.\u0275dir=h.FsC({type:K,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[h.Mj6.None,"disabled","isDisabled"],model:[h.Mj6.None,"ngModel","model"],options:[h.Mj6.None,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[h.Jv_([No]),h.Vt3,h.OA$]}),N})();function br(K){return"number"==typeof K?K:parseFloat(K)}let wi=(()=>{var K;class N{constructor(){this._validator=H}ngOnChanges(G){if(this.inputName in G){const ke=this.normalizeInput(G[this.inputName].currentValue);this._enabled=this.enabled(ke),this._validator=this._enabled?this.createValidator(ke):H,this._onChange&&this._onChange()}}validate(G){return this._validator(G)}registerOnValidatorChange(G){this._onChange=G}enabled(G){return null!=G}}return(K=N).\u0275fac=function(G){return new(G||K)},K.\u0275dir=h.FsC({type:K,features:[h.OA$]}),N})();const Ni={provide:ge,useExisting:(0,h.Rfq)(()=>ki),multi:!0};let ki=(()=>{var K;class N extends wi{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=G=>br(G),this.createValidator=G=>function Rt(K){return N=>{if(Me(N.value)||Me(K))return null;const Ae=parseFloat(N.value);return!isNaN(Ae)&&Ae>K?{max:{max:K,actual:N.value}}:null}}(G)}}return(K=N).\u0275fac=(()=>{let Ae;return function(ke){return(Ae||(Ae=h.xGo(K)))(ke||K)}})(),K.\u0275dir=h.FsC({type:K,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(G,ke){2&G&&h.BMQ("max",ke._enabled?ke.max:null)},inputs:{max:"max"},features:[h.Jv_([Ni]),h.Vt3]}),N})();const ho={provide:ge,useExisting:(0,h.Rfq)(()=>as),multi:!0};let as=(()=>{var K;class N extends wi{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=G=>br(G),this.createValidator=G=>function at(K){return N=>{if(Me(N.value)||Me(K))return null;const Ae=parseFloat(N.value);return!isNaN(Ae)&&Ae{let Ae;return function(ke){return(Ae||(Ae=h.xGo(K)))(ke||K)}})(),K.\u0275dir=h.FsC({type:K,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(G,ke){2&G&&h.BMQ("min",ke._enabled?ke.min:null)},inputs:{min:"min"},features:[h.Jv_([ho]),h.Vt3]}),N})(),ls=(()=>{var K;class N{}return(K=N).\u0275fac=function(G){return new(G||K)},K.\u0275mod=h.$C({type:K}),K.\u0275inj=h.G2t({}),N})(),ha=(()=>{var K;class N{static withConfig(G){var ke;return{ngModule:N,providers:[{provide:Ar,useValue:null!==(ke=G.callSetDisabledState)&&void 0!==ke?ke:dr}]}}}return(K=N).\u0275fac=function(G){return new(G||K)},K.\u0275mod=h.$C({type:K}),K.\u0275inj=h.G2t({imports:[ls]}),N})()},345:(Tn,gt,S)=>{"use strict";S.d(gt,{Bb:()=>er,hE:()=>ir,sG:()=>rn,up:()=>Dr});var h=S(4438),c=S(177);class Z extends c.VF{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class Oe extends Z{static makeCurrent(){(0,c.ZD)(new Oe)}onAndCancel(rt,Mt,ut){return rt.addEventListener(Mt,ut),()=>{rt.removeEventListener(Mt,ut)}}dispatchEvent(rt,Mt){rt.dispatchEvent(Mt)}remove(rt){rt.parentNode&&rt.parentNode.removeChild(rt)}createElement(rt,Mt){return(Mt=Mt||this.getDefaultDocument()).createElement(rt)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(rt){return rt.nodeType===Node.ELEMENT_NODE}isShadowRoot(rt){return rt instanceof DocumentFragment}getGlobalEventTarget(rt,Mt){return"window"===Mt?window:"document"===Mt?rt:"body"===Mt?rt.body:null}getBaseHref(rt){const Mt=function ue(){return U=U||document.querySelector("base"),U?U.getAttribute("href"):null}();return null==Mt?null:function oe(pe){return new URL(pe,document.baseURI).pathname}(Mt)}resetBaseElement(){U=null}getUserAgent(){return window.navigator.userAgent}getCookie(rt){return(0,c._b)(document.cookie,rt)}}let U=null,Je=(()=>{var pe;class rt{build(){return new XMLHttpRequest}}return(pe=rt).\u0275fac=function(ut){return new(ut||pe)},pe.\u0275prov=h.jDH({token:pe,factory:pe.\u0275fac}),rt})();const Se=new h.nKC("");let Ce=(()=>{var pe;class rt{constructor(ut,ce){this._zone=ce,this._eventNameToPlugin=new Map,ut.forEach(ye=>{ye.manager=this}),this._plugins=ut.slice().reverse()}addEventListener(ut,ce,ye){return this._findPluginFor(ce).addEventListener(ut,ce,ye)}getZone(){return this._zone}_findPluginFor(ut){let ce=this._eventNameToPlugin.get(ut);if(ce)return ce;if(ce=this._plugins.find(He=>He.supports(ut)),!ce)throw new h.wOt(5101,!1);return this._eventNameToPlugin.set(ut,ce),ce}}return(pe=rt).\u0275fac=function(ut){return new(ut||pe)(h.KVO(Se),h.KVO(h.SKi))},pe.\u0275prov=h.jDH({token:pe,factory:pe.\u0275fac}),rt})();class Qe{constructor(rt){this._doc=rt}}const Ze="ng-app-id";let qe=(()=>{var pe;class rt{constructor(ut,ce,ye,He={}){this.doc=ut,this.appId=ce,this.nonce=ye,this.platformId=He,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=(0,c.Vy)(He),this.resetHostNodes()}addStyles(ut){for(const ce of ut)1===this.changeUsageCount(ce,1)&&this.onStyleAdded(ce)}removeStyles(ut){for(const ce of ut)this.changeUsageCount(ce,-1)<=0&&this.onStyleRemoved(ce)}ngOnDestroy(){const ut=this.styleNodesInDOM;ut&&(ut.forEach(ce=>ce.remove()),ut.clear());for(const ce of this.getAllStyles())this.onStyleRemoved(ce);this.resetHostNodes()}addHost(ut){this.hostNodes.add(ut);for(const ce of this.getAllStyles())this.addStyleToHost(ut,ce)}removeHost(ut){this.hostNodes.delete(ut)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(ut){for(const ce of this.hostNodes)this.addStyleToHost(ce,ut)}onStyleRemoved(ut){var ce;const ye=this.styleRef;null===(ce=ye.get(ut))||void 0===ce||null===(ce=ce.elements)||void 0===ce||ce.forEach(He=>He.remove()),ye.delete(ut)}collectServerRenderedStyles(){var ut;const ce=null===(ut=this.doc.head)||void 0===ut?void 0:ut.querySelectorAll(`style[${Ze}="${this.appId}"]`);if(null!=ce&&ce.length){const ye=new Map;return ce.forEach(He=>{null!=He.textContent&&ye.set(He.textContent,He)}),ye}return null}changeUsageCount(ut,ce){const ye=this.styleRef;if(ye.has(ut)){const He=ye.get(ut);return He.usage+=ce,He.usage}return ye.set(ut,{usage:ce,elements:[]}),ce}getStyleElement(ut,ce){const ye=this.styleNodesInDOM,He=null==ye?void 0:ye.get(ce);if((null==He?void 0:He.parentNode)===ut)return ye.delete(ce),He.removeAttribute(Ze),He;{const Lt=this.doc.createElement("style");return this.nonce&&Lt.setAttribute("nonce",this.nonce),Lt.textContent=ce,this.platformIsServer&&Lt.setAttribute(Ze,this.appId),ut.appendChild(Lt),Lt}}addStyleToHost(ut,ce){var ye;const He=this.getStyleElement(ut,ce),Lt=this.styleRef,ie=null===(ye=Lt.get(ce))||void 0===ye?void 0:ye.elements;ie?ie.push(He):Lt.set(ce,{elements:[He],usage:1})}resetHostNodes(){const ut=this.hostNodes;ut.clear(),ut.add(this.doc.head)}}return(pe=rt).\u0275fac=function(ut){return new(ut||pe)(h.KVO(c.qQ),h.KVO(h.sZ2),h.KVO(h.BIS,8),h.KVO(h.Agw))},pe.\u0275prov=h.jDH({token:pe,factory:pe.\u0275fac}),rt})();const ht={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/"},Dt=/%COMP%/g,mt=new h.nKC("",{providedIn:"root",factory:()=>!0});function ge(pe,rt){return rt.map(Mt=>Mt.replace(Dt,pe))}let Ue=(()=>{var pe;class rt{constructor(ut,ce,ye,He,Lt,ie,ct,lt=null){this.eventManager=ut,this.sharedStylesHost=ce,this.appId=ye,this.removeStylesOnCompDestroy=He,this.doc=Lt,this.platformId=ie,this.ngZone=ct,this.nonce=lt,this.rendererByCompId=new Map,this.platformIsServer=(0,c.Vy)(ie),this.defaultRenderer=new Fe(ut,Lt,ct,this.platformIsServer)}createRenderer(ut,ce){if(!ut||!ce)return this.defaultRenderer;this.platformIsServer&&ce.encapsulation===h.gXe.ShadowDom&&(ce={...ce,encapsulation:h.gXe.Emulated});const ye=this.getOrCreateRenderer(ut,ce);return ye instanceof tt?ye.applyToHost(ut):ye instanceof Nt&&ye.applyStyles(),ye}getOrCreateRenderer(ut,ce){const ye=this.rendererByCompId;let He=ye.get(ce.id);if(!He){const Lt=this.doc,ie=this.ngZone,ct=this.eventManager,lt=this.sharedStylesHost,Gt=this.removeStylesOnCompDestroy,tn=this.platformIsServer;switch(ce.encapsulation){case h.gXe.Emulated:He=new tt(ct,lt,ce,this.appId,Gt,Lt,ie,tn);break;case h.gXe.ShadowDom:return new vn(ct,lt,ut,ce,Lt,ie,this.nonce,tn);default:He=new Nt(ct,lt,ce,Gt,Lt,ie,tn)}ye.set(ce.id,He)}return He}ngOnDestroy(){this.rendererByCompId.clear()}}return(pe=rt).\u0275fac=function(ut){return new(ut||pe)(h.KVO(Ce),h.KVO(qe),h.KVO(h.sZ2),h.KVO(mt),h.KVO(c.qQ),h.KVO(h.Agw),h.KVO(h.SKi),h.KVO(h.BIS))},pe.\u0275prov=h.jDH({token:pe,factory:pe.\u0275fac}),rt})();class Fe{constructor(rt,Mt,ut,ce){this.eventManager=rt,this.doc=Mt,this.ngZone=ut,this.platformIsServer=ce,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(rt,Mt){return Mt?this.doc.createElementNS(ht[Mt]||Mt,rt):this.doc.createElement(rt)}createComment(rt){return this.doc.createComment(rt)}createText(rt){return this.doc.createTextNode(rt)}appendChild(rt,Mt){(Rt(rt)?rt.content:rt).appendChild(Mt)}insertBefore(rt,Mt,ut){rt&&(Rt(rt)?rt.content:rt).insertBefore(Mt,ut)}removeChild(rt,Mt){rt&&rt.removeChild(Mt)}selectRootElement(rt,Mt){let ut="string"==typeof rt?this.doc.querySelector(rt):rt;if(!ut)throw new h.wOt(-5104,!1);return Mt||(ut.textContent=""),ut}parentNode(rt){return rt.parentNode}nextSibling(rt){return rt.nextSibling}setAttribute(rt,Mt,ut,ce){if(ce){Mt=ce+":"+Mt;const ye=ht[ce];ye?rt.setAttributeNS(ye,Mt,ut):rt.setAttribute(Mt,ut)}else rt.setAttribute(Mt,ut)}removeAttribute(rt,Mt,ut){if(ut){const ce=ht[ut];ce?rt.removeAttributeNS(ce,Mt):rt.removeAttribute(`${ut}:${Mt}`)}else rt.removeAttribute(Mt)}addClass(rt,Mt){rt.classList.add(Mt)}removeClass(rt,Mt){rt.classList.remove(Mt)}setStyle(rt,Mt,ut,ce){ce&(h.czy.DashCase|h.czy.Important)?rt.style.setProperty(Mt,ut,ce&h.czy.Important?"important":""):rt.style[Mt]=ut}removeStyle(rt,Mt,ut){ut&h.czy.DashCase?rt.style.removeProperty(Mt):rt.style[Mt]=""}setProperty(rt,Mt,ut){null!=rt&&(rt[Mt]=ut)}setValue(rt,Mt){rt.nodeValue=Mt}listen(rt,Mt,ut){if("string"==typeof rt&&!(rt=(0,c.QT)().getGlobalEventTarget(this.doc,rt)))throw new Error(`Unsupported event target ${rt} for event ${Mt}`);return this.eventManager.addEventListener(rt,Mt,this.decoratePreventDefault(ut))}decoratePreventDefault(rt){return Mt=>{if("__ngUnwrap__"===Mt)return rt;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>rt(Mt)):rt(Mt))&&Mt.preventDefault()}}}function Rt(pe){return"TEMPLATE"===pe.tagName&&void 0!==pe.content}class vn extends Fe{constructor(rt,Mt,ut,ce,ye,He,Lt,ie){super(rt,ye,He,ie),this.sharedStylesHost=Mt,this.hostEl=ut,this.shadowRoot=ut.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const ct=ge(ce.id,ce.styles);for(const lt of ct){const Gt=document.createElement("style");Lt&&Gt.setAttribute("nonce",Lt),Gt.textContent=lt,this.shadowRoot.appendChild(Gt)}}nodeOrShadowRoot(rt){return rt===this.hostEl?this.shadowRoot:rt}appendChild(rt,Mt){return super.appendChild(this.nodeOrShadowRoot(rt),Mt)}insertBefore(rt,Mt,ut){return super.insertBefore(this.nodeOrShadowRoot(rt),Mt,ut)}removeChild(rt,Mt){return super.removeChild(this.nodeOrShadowRoot(rt),Mt)}parentNode(rt){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(rt)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class Nt extends Fe{constructor(rt,Mt,ut,ce,ye,He,Lt,ie){super(rt,ye,He,Lt),this.sharedStylesHost=Mt,this.removeStylesOnCompDestroy=ce,this.styles=ie?ge(ie,ut.styles):ut.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class tt extends Nt{constructor(rt,Mt,ut,ce,ye,He,Lt,ie){const ct=ce+"-"+ut.id;super(rt,Mt,ut,ye,He,Lt,ie,ct),this.contentAttr=function Me(pe){return"_ngcontent-%COMP%".replace(Dt,pe)}(ct),this.hostAttr=function Ye(pe){return"_nghost-%COMP%".replace(Dt,pe)}(ct)}applyToHost(rt){this.applyStyles(),this.setAttribute(rt,this.hostAttr,"")}createElement(rt,Mt){const ut=super.createElement(rt,Mt);return super.setAttribute(ut,this.contentAttr,""),ut}}let on=(()=>{var pe;class rt extends Qe{constructor(ut){super(ut)}supports(ut){return!0}addEventListener(ut,ce,ye){return ut.addEventListener(ce,ye,!1),()=>this.removeEventListener(ut,ce,ye)}removeEventListener(ut,ce,ye){return ut.removeEventListener(ce,ye)}}return(pe=rt).\u0275fac=function(ut){return new(ut||pe)(h.KVO(c.qQ))},pe.\u0275prov=h.jDH({token:pe,factory:pe.\u0275fac}),rt})();const dt=["alt","control","meta","shift"],we={"\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"},H={alt:pe=>pe.altKey,control:pe=>pe.ctrlKey,meta:pe=>pe.metaKey,shift:pe=>pe.shiftKey};let X=(()=>{var pe;class rt extends Qe{constructor(ut){super(ut)}supports(ut){return null!=rt.parseEventName(ut)}addEventListener(ut,ce,ye){const He=rt.parseEventName(ce),Lt=rt.eventCallback(He.fullKey,ye,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,c.QT)().onAndCancel(ut,He.domEventName,Lt))}static parseEventName(ut){const ce=ut.toLowerCase().split("."),ye=ce.shift();if(0===ce.length||"keydown"!==ye&&"keyup"!==ye)return null;const He=rt._normalizeKey(ce.pop());let Lt="",ie=ce.indexOf("code");if(ie>-1&&(ce.splice(ie,1),Lt="code."),dt.forEach(lt=>{const Gt=ce.indexOf(lt);Gt>-1&&(ce.splice(Gt,1),Lt+=lt+".")}),Lt+=He,0!=ce.length||0===He.length)return null;const ct={};return ct.domEventName=ye,ct.fullKey=Lt,ct}static matchEventFullKeyCode(ut,ce){let ye=we[ut.key]||ut.key,He="";return ce.indexOf("code.")>-1&&(ye=ut.code,He="code."),!(null==ye||!ye)&&(ye=ye.toLowerCase()," "===ye?ye="space":"."===ye&&(ye="dot"),dt.forEach(Lt=>{Lt!==ye&&(0,H[Lt])(ut)&&(He+=Lt+".")}),He+=ye,He===ce)}static eventCallback(ut,ce,ye){return He=>{rt.matchEventFullKeyCode(He,ut)&&ye.runGuarded(()=>ce(He))}}static _normalizeKey(ut){return"esc"===ut?"escape":ut}}return(pe=rt).\u0275fac=function(ut){return new(ut||pe)(h.KVO(c.qQ))},pe.\u0275prov=h.jDH({token:pe,factory:pe.\u0275fac}),rt})();const rn=(0,h.oH4)(h.fpN,"browser",[{provide:h.Agw,useValue:c.AJ},{provide:h.PLl,useValue:function De(){Oe.makeCurrent()},multi:!0},{provide:c.qQ,useFactory:function dn(){return(0,h.TL$)(document),document},deps:[]}]),Ln=new h.nKC(""),Zn=[{provide:h.e01,useClass:class Xe{addToWindow(rt){h.JZv.getAngularTestability=(ut,ce=!0)=>{const ye=rt.findTestabilityInTree(ut,ce);if(null==ye)throw new h.wOt(5103,!1);return ye},h.JZv.getAllAngularTestabilities=()=>rt.getAllTestabilities(),h.JZv.getAllAngularRootElements=()=>rt.getAllRootElements(),h.JZv.frameworkStabilizers||(h.JZv.frameworkStabilizers=[]),h.JZv.frameworkStabilizers.push(ut=>{const ce=h.JZv.getAllAngularTestabilities();let ye=ce.length;const He=function(){ye--,0==ye&&ut()};ce.forEach(Lt=>{Lt.whenStable(He)})})}findTestabilityInTree(rt,Mt,ut){if(null==Mt)return null;const ce=rt.getTestability(Mt);return null!=ce?ce:ut?(0,c.QT)().isShadowRoot(Mt)?this.findTestabilityInTree(rt,Mt.host,!0):this.findTestabilityInTree(rt,Mt.parentElement,!0):null}},deps:[]},{provide:h.WHO,useClass:h.NYb,deps:[h.SKi,h.giA,h.e01]},{provide:h.NYb,useClass:h.NYb,deps:[h.SKi,h.giA,h.e01]}],nr=[{provide:h.H8p,useValue:"root"},{provide:h.zcH,useFactory:function Wt(){return new h.zcH},deps:[]},{provide:Se,useClass:on,multi:!0,deps:[c.qQ,h.SKi,h.Agw]},{provide:Se,useClass:X,multi:!0,deps:[c.qQ]},Ue,qe,Ce,{provide:h._9s,useExisting:Ue},{provide:c.N0,useClass:Je,deps:[]},[]];let er=(()=>{var pe;class rt{constructor(ut){}static withServerTransition(ut){return{ngModule:rt,providers:[{provide:h.sZ2,useValue:ut.appId}]}}}return(pe=rt).\u0275fac=function(ut){return new(ut||pe)(h.KVO(Ln,12))},pe.\u0275mod=h.$C({type:pe}),pe.\u0275inj=h.G2t({providers:[...nr,...Zn],imports:[c.MD,h.Hbi]}),rt})(),ir=(()=>{var pe;class rt{constructor(ut){this._doc=ut}getTitle(){return this._doc.title}setTitle(ut){this._doc.title=ut||""}}return(pe=rt).\u0275fac=function(ut){return new(ut||pe)(h.KVO(c.qQ))},pe.\u0275prov=h.jDH({token:pe,factory:pe.\u0275fac,providedIn:"root"}),rt})(),Dr=(()=>{var pe;class rt{}return(pe=rt).\u0275fac=function(ut){return new(ut||pe)},pe.\u0275prov=h.jDH({token:pe,factory:function(ut){let ce=null;return ce=ut?new(ut||pe):h.KVO(Jn),ce},providedIn:"root"}),rt})(),Jn=(()=>{var pe;class rt extends Dr{constructor(ut){super(),this._doc=ut}sanitize(ut,ce){if(null==ce)return null;switch(ut){case h.WPN.NONE:return ce;case h.WPN.HTML:return(0,h.ZF7)(ce,"HTML")?(0,h.rcV)(ce):(0,h.h9k)(this._doc,String(ce)).toString();case h.WPN.STYLE:return(0,h.ZF7)(ce,"Style")?(0,h.rcV)(ce):ce;case h.WPN.SCRIPT:if((0,h.ZF7)(ce,"Script"))return(0,h.rcV)(ce);throw new h.wOt(5200,!1);case h.WPN.URL:return(0,h.ZF7)(ce,"URL")?(0,h.rcV)(ce):(0,h.$MX)(String(ce));case h.WPN.RESOURCE_URL:if((0,h.ZF7)(ce,"ResourceURL"))return(0,h.rcV)(ce);throw new h.wOt(5201,!1);default:throw new h.wOt(5202,!1)}}bypassSecurityTrustHtml(ut){return(0,h.Kcf)(ut)}bypassSecurityTrustStyle(ut){return(0,h.cWb)(ut)}bypassSecurityTrustScript(ut){return(0,h.UyX)(ut)}bypassSecurityTrustUrl(ut){return(0,h.osQ)(ut)}bypassSecurityTrustResourceUrl(ut){return(0,h.e5t)(ut)}}return(pe=rt).\u0275fac=function(ut){return new(ut||pe)(h.KVO(c.qQ))},pe.\u0275prov=h.jDH({token:pe,factory:pe.\u0275fac,providedIn:"root"}),rt})()},7650:(Tn,gt,S)=>{"use strict";S.d(gt,{nX:()=>Ee,Zp:()=>Ve,wF:()=>zr,Z:()=>Or,Xk:()=>rn,Kp:()=>Ki,b:()=>wn,Ix:()=>Kn,Wk:()=>Si,iI:()=>ds,Sd:()=>ur});var h=S(467),c=S(4438),Z=S(4402),Oe=S(8455),U=S(7673),ue=S(4412),oe=S(4572),Xe=S(9350),Je=S(8793),Se=S(1985),Ce=S(8750);function Qe(E){return new Se.c(T=>{(0,Ce.Tg)(E()).subscribe(T)})}var Ze=S(1203),qe=S(8071);function ht(E,T){const O=(0,qe.T)(E)?E:()=>E,D=L=>L.error(O());return new Se.c(T?L=>T.schedule(D,0,L):D)}var Dt=S(983),St=S(8359),_t=S(9974),Tt=S(4360);function yt(){return(0,_t.N)((E,T)=>{let O=null;E._refCount++;const D=(0,Tt._)(T,void 0,void 0,void 0,()=>{if(!E||E._refCount<=0||0<--E._refCount)return void(O=null);const L=E._connection,ae=O;O=null,L&&(!ae||L===ae)&&L.unsubscribe(),T.unsubscribe()});E.subscribe(D),D.closed||(O=E.connect())})}class mt extends Se.c{constructor(T,O){super(),this.source=T,this.subjectFactory=O,this._subject=null,this._refCount=0,this._connection=null,(0,_t.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 St.yU;const O=this.getSubject();T.add(this.source.subscribe((0,Tt._)(O,void 0,()=>{this._teardown(),O.complete()},D=>{this._teardown(),O.error(D)},()=>this._teardown()))),T.closed&&(this._connection=null,T=St.yU.EMPTY)}return T}refCount(){return yt()(this)}}var Me=S(1413),Ye=S(177),ge=S(6354),Ue=S(5558),Fe=S(6697),xe=S(9172),at=S(5964),Rt=S(1397),vn=S(1594),Nt=S(274),tt=S(8141);function on(E){return(0,_t.N)((T,O)=>{let ae,D=null,L=!1;D=T.subscribe((0,Tt._)(O,void 0,void 0,Re=>{ae=(0,Ce.Tg)(E(Re,on(E)(T))),D?(D.unsubscribe(),D=null,ae.subscribe(O)):L=!0})),L&&(D.unsubscribe(),D=null,ae.subscribe(O))})}var H=S(9901);function X(E){return E<=0?()=>Dt.w:(0,_t.N)((T,O)=>{let D=[];T.subscribe((0,Tt._)(O,L=>{D.push(L),E{for(const L of D)O.next(L);O.complete()},void 0,()=>{D=null}))})}var fe=S(3774),se=S(3669),Le=S(3703),De=S(980),Wt=S(6977),dn=S(6365),Kt=S(345);const rn="primary",Ln=Symbol("RouteTitle");class Zn{constructor(T){this.params=T||{}}has(T){return Object.prototype.hasOwnProperty.call(this.params,T)}get(T){if(this.has(T)){const O=this.params[T];return Array.isArray(O)?O[0]:O}return null}getAll(T){if(this.has(T)){const O=this.params[T];return Array.isArray(O)?O:[O]}return[]}get keys(){return Object.keys(this.params)}}function nr(E){return new Zn(E)}function er(E,T,O){const D=O.path.split("/");if(D.length>E.length||"full"===O.pathMatch&&(T.hasChildren()||D.lengthD[ae]===L)}return E===T}function Ot(E){return E.length>0?E[E.length-1]:null}function zt(E){return(0,Z.A)(E)?E:(0,c.jNT)(E)?(0,Oe.H)(Promise.resolve(E)):(0,U.of)(E)}const pn={exact:function xn(E,T,O){if(!Jr(E.segments,T.segments)||!Ir(E.segments,T.segments,O)||E.numberOfChildren!==T.numberOfChildren)return!1;for(const D in T.children)if(!E.children[D]||!xn(E.children[D],T.children[D],O))return!1;return!0},subset:en},gn={exact:function Mn(E,T){return rr(E,T)},subset:function mn(E,T){return Object.keys(T).length<=Object.keys(E).length&&Object.keys(T).every(O=>nt(E[O],T[O]))},ignored:()=>!0};function Sr(E,T,O){return pn[O.paths](E.root,T.root,O.matrixParams)&&gn[O.queryParams](E.queryParams,T.queryParams)&&!("exact"===O.fragment&&E.fragment!==T.fragment)}function en(E,T,O){return Er(E,T,T.segments,O)}function Er(E,T,O,D){if(E.segments.length>O.length){const L=E.segments.slice(0,O.length);return!(!Jr(L,O)||T.hasChildren()||!Ir(L,O,D))}if(E.segments.length===O.length){if(!Jr(E.segments,O)||!Ir(E.segments,O,D))return!1;for(const L in T.children)if(!E.children[L]||!en(E.children[L],T.children[L],D))return!1;return!0}{const L=O.slice(0,E.segments.length),ae=O.slice(E.segments.length);return!!(Jr(E.segments,L)&&Ir(E.segments,L,D)&&E.children[rn])&&Er(E.children[rn],T,ae,D)}}function Ir(E,T,O){return T.every((D,L)=>gn[O](E[L].parameters,D.parameters))}class Nr{constructor(T=new Qn([],{}),O={},D=null){this.root=T,this.queryParams=O,this.fragment=D}get queryParamMap(){var T;return null!==(T=this._queryParamMap)&&void 0!==T||(this._queryParamMap=nr(this.queryParams)),this._queryParamMap}toString(){return cr.serialize(this)}}class Qn{constructor(T,O){this.segments=T,this.children=O,this.parent=null,Object.values(O).forEach(D=>D.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return kr(this)}}class Dr{constructor(T,O){this.path=T,this.parameters=O}get parameterMap(){var T;return null!==(T=this._parameterMap)&&void 0!==T||(this._parameterMap=nr(this.parameters)),this._parameterMap}toString(){return ce(this)}}function Jr(E,T){return E.length===T.length&&E.every((O,D)=>O.path===T[D].path)}let ur=(()=>{var E;class T{}return(E=T).\u0275fac=function(D){return new(D||E)},E.\u0275prov=c.jDH({token:E,factory:()=>new Pr,providedIn:"root"}),T})();class Pr{parse(T){const O=new hn(T);return new Nr(O.parseRootSegment(),O.parseQueryParams(),O.parseFragment())}serialize(T){const O=`/${ii(T.root,!0)}`,D=function He(E){const T=Object.entries(E).map(([O,D])=>Array.isArray(D)?D.map(L=>`${Qr(O)}=${Qr(L)}`).join("&"):`${Qr(O)}=${Qr(D)}`).filter(O=>O);return T.length?`?${T.join("&")}`:""}(T.queryParams);return`${O}${D}${"string"==typeof T.fragment?`#${function pe(E){return encodeURI(E)}(T.fragment)}`:""}`}}const cr=new Pr;function kr(E){return E.segments.map(T=>ce(T)).join("/")}function ii(E,T){if(!E.hasChildren())return kr(E);if(T){const O=E.children[rn]?ii(E.children[rn],!1):"",D=[];return Object.entries(E.children).forEach(([L,ae])=>{L!==rn&&D.push(`${L}:${ii(ae,!1)}`)}),D.length>0?`${O}(${D.join("//")})`:O}{const O=function mr(E,T){let O=[];return Object.entries(E.children).forEach(([D,L])=>{D===rn&&(O=O.concat(T(L,D)))}),Object.entries(E.children).forEach(([D,L])=>{D!==rn&&(O=O.concat(T(L,D)))}),O}(E,(D,L)=>L===rn?[ii(E.children[rn],!1)]:[`${L}:${ii(D,!1)}`]);return 1===Object.keys(E.children).length&&null!=E.children[rn]?`${kr(E)}/${O[0]}`:`${kr(E)}/(${O.join("//")})`}}function Ai(E){return encodeURIComponent(E).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Qr(E){return Ai(E).replace(/%3B/gi,";")}function rt(E){return Ai(E).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Mt(E){return decodeURIComponent(E)}function ut(E){return Mt(E.replace(/\+/g,"%20"))}function ce(E){return`${rt(E.path)}${function ye(E){return Object.entries(E).map(([T,O])=>`;${rt(T)}=${rt(O)}`).join("")}(E.parameters)}`}const Lt=/^[^\/()?;#]+/;function ie(E){const T=E.match(Lt);return T?T[0]:""}const ct=/^[^\/()?;=#]+/,Gt=/^[^=?&#]+/,_n=/^[^&#]+/;class hn{constructor(T){this.url=T,this.remaining=T}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Qn([],{}):new Qn([],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 O={};this.peekStartsWith("/(")&&(this.capture("/"),O=this.parseParens(!0));let D={};return this.peekStartsWith("(")&&(D=this.parseParens(!1)),(T.length>0||Object.keys(O).length>0)&&(D[rn]=new Qn(T,O)),D}parseSegment(){const T=ie(this.remaining);if(""===T&&this.peekStartsWith(";"))throw new c.wOt(4009,!1);return this.capture(T),new Dr(Mt(T),this.parseMatrixParams())}parseMatrixParams(){const T={};for(;this.consumeOptional(";");)this.parseParam(T);return T}parseParam(T){const O=function lt(E){const T=E.match(ct);return T?T[0]:""}(this.remaining);if(!O)return;this.capture(O);let D="";if(this.consumeOptional("=")){const L=ie(this.remaining);L&&(D=L,this.capture(D))}T[Mt(O)]=Mt(D)}parseQueryParam(T){const O=function tn(E){const T=E.match(Gt);return T?T[0]:""}(this.remaining);if(!O)return;this.capture(O);let D="";if(this.consumeOptional("=")){const Re=function qn(E){const T=E.match(_n);return T?T[0]:""}(this.remaining);Re&&(D=Re,this.capture(D))}const L=ut(O),ae=ut(D);if(T.hasOwnProperty(L)){let Re=T[L];Array.isArray(Re)||(Re=[Re],T[L]=Re),Re.push(ae)}else T[L]=ae}parseParens(T){const O={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const D=ie(this.remaining),L=this.remaining[D.length];if("/"!==L&&")"!==L&&";"!==L)throw new c.wOt(4010,!1);let ae;D.indexOf(":")>-1?(ae=D.slice(0,D.indexOf(":")),this.capture(ae),this.capture(":")):T&&(ae=rn);const Re=this.parseChildren();O[ae]=1===Object.keys(Re).length?Re[rn]:new Qn([],Re),this.consumeOptional("//")}return O}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 c.wOt(4011,!1)}}function Cn(E){return E.segments.length>0?new Qn([],{[rn]:E}):E}function tr(E){const T={};for(const[D,L]of Object.entries(E.children)){const ae=tr(L);if(D===rn&&0===ae.segments.length&&ae.hasChildren())for(const[Re,Pt]of Object.entries(ae.children))T[Re]=Pt;else(ae.segments.length>0||ae.hasChildren())&&(T[D]=ae)}return function Ar(E){if(1===E.numberOfChildren&&E.children[rn]){const T=E.children[rn];return new Qn(E.segments.concat(T.segments),T.children)}return E}(new Qn(E.segments,T))}function dr(E){return E instanceof Nr}function Zr(E){var T;let O;const ae=Cn(function D(Re){const Pt={};for(const Bt of Re.children){const Bn=D(Bt);Pt[Bt.outlet]=Bn}const fn=new Qn(Re.url,Pt);return Re===E&&(O=fn),fn}(E.root));return null!==(T=O)&&void 0!==T?T:ae}function fr(E,T,O,D){let L=E;for(;L.parent;)L=L.parent;if(0===T.length)return pr(L,L,L,O,D);const ae=function ee(E){if("string"==typeof E[0]&&1===E.length&&"/"===E[0])return new te(!0,0,E);let T=0,O=!1;const D=E.reduce((L,ae,Re)=>{if("object"==typeof ae&&null!=ae){if(ae.outlets){const Pt={};return Object.entries(ae.outlets).forEach(([fn,Bt])=>{Pt[fn]="string"==typeof Bt?Bt.split("/"):Bt}),[...L,{outlets:Pt}]}if(ae.segmentPath)return[...L,ae.segmentPath]}return"string"!=typeof ae?[...L,ae]:0===Re?(ae.split("/").forEach((Pt,fn)=>{0==fn&&"."===Pt||(0==fn&&""===Pt?O=!0:".."===Pt?T++:""!=Pt&&L.push(Pt))}),L):[...L,ae]},[]);return new te(O,T,D)}(T);if(ae.toRoot())return pr(L,L,new Qn([],{}),O,D);const Re=function M(E,T,O){if(E.isAbsolute)return new ze(T,!0,0);if(!O)return new ze(T,!1,NaN);if(null===O.parent)return new ze(O,!0,0);const D=Ri(E.commands[0])?0:1;return function x(E,T,O){let D=E,L=T,ae=O;for(;ae>L;){if(ae-=L,D=D.parent,!D)throw new c.wOt(4005,!1);L=D.segments.length}return new ze(D,!1,L-ae)}(O,O.segments.length-1+D,E.numberOfDoubleDots)}(ae,L,E),Pt=Re.processChildren?Ge(Re.segmentGroup,Re.index,ae.commands):Te(Re.segmentGroup,Re.index,ae.commands);return pr(L,Re.segmentGroup,Pt,O,D)}function Ri(E){return"object"==typeof E&&null!=E&&!E.outlets&&!E.segmentPath}function gi(E){return"object"==typeof E&&null!=E&&E.outlets}function pr(E,T,O,D,L){let Re,ae={};D&&Object.entries(D).forEach(([fn,Bt])=>{ae[fn]=Array.isArray(Bt)?Bt.map(Bn=>`${Bn}`):`${Bt}`}),Re=E===T?O:Ut(E,T,O);const Pt=Cn(tr(Re));return new Nr(Pt,ae,L)}function Ut(E,T,O){const D={};return Object.entries(E.children).forEach(([L,ae])=>{D[L]=ae===T?O:Ut(ae,T,O)}),new Qn(E.segments,D)}class te{constructor(T,O,D){if(this.isAbsolute=T,this.numberOfDoubleDots=O,this.commands=D,T&&D.length>0&&Ri(D[0]))throw new c.wOt(4003,!1);const L=D.find(gi);if(L&&L!==Ot(D))throw new c.wOt(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class ze{constructor(T,O,D){this.segmentGroup=T,this.processChildren=O,this.index=D}}function Te(E,T,O){var D;if(null!==(D=E)&&void 0!==D||(E=new Qn([],{})),0===E.segments.length&&E.hasChildren())return Ge(E,T,O);const L=function At(E,T,O){let D=0,L=T;const ae={match:!1,pathIndex:0,commandIndex:0};for(;L=O.length)return ae;const Re=E.segments[L],Pt=O[D];if(gi(Pt))break;const fn=`${Pt}`,Bt=D0&&void 0===fn)break;if(fn&&Bt&&"object"==typeof Bt&&void 0===Bt.outlets){if(!Un(fn,Bt,Re))return ae;D+=2}else{if(!Un(fn,{},Re))return ae;D++}L++}return{match:!0,pathIndex:L,commandIndex:D}}(E,T,O),ae=O.slice(L.commandIndex);if(L.match&&L.pathIndexae!==rn)&&E.children[rn]&&1===E.numberOfChildren&&0===E.children[rn].segments.length){const ae=Ge(E.children[rn],T,O);return new Qn(E.segments,ae.children)}return Object.entries(D).forEach(([ae,Re])=>{"string"==typeof Re&&(Re=[Re]),null!==Re&&(L[ae]=Te(E.children[ae],T,Re))}),Object.entries(E.children).forEach(([ae,Re])=>{void 0===D[ae]&&(L[ae]=Re)}),new Qn(E.segments,L)}}function Jt(E,T,O){const D=E.segments.slice(0,T);let L=0;for(;L{"string"==typeof D&&(D=[D]),null!==D&&(T[O]=Jt(new Qn([],{}),0,D))}),T}function or(E){const T={};return Object.entries(E).forEach(([O,D])=>T[O]=`${D}`),T}function Un(E,T,O){return E==O.path&&rr(T,O.parameters)}const xr="imperative";var On=function(E){return E[E.NavigationStart=0]="NavigationStart",E[E.NavigationEnd=1]="NavigationEnd",E[E.NavigationCancel=2]="NavigationCancel",E[E.NavigationError=3]="NavigationError",E[E.RoutesRecognized=4]="RoutesRecognized",E[E.ResolveStart=5]="ResolveStart",E[E.ResolveEnd=6]="ResolveEnd",E[E.GuardsCheckStart=7]="GuardsCheckStart",E[E.GuardsCheckEnd=8]="GuardsCheckEnd",E[E.RouteConfigLoadStart=9]="RouteConfigLoadStart",E[E.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",E[E.ChildActivationStart=11]="ChildActivationStart",E[E.ChildActivationEnd=12]="ChildActivationEnd",E[E.ActivationStart=13]="ActivationStart",E[E.ActivationEnd=14]="ActivationEnd",E[E.Scroll=15]="Scroll",E[E.NavigationSkipped=16]="NavigationSkipped",E}(On||{});class Fr{constructor(T,O){this.id=T,this.url=O}}class Or extends Fr{constructor(T,O,D="imperative",L=null){super(T,O),this.type=On.NavigationStart,this.navigationTrigger=D,this.restoredState=L}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class zr extends Fr{constructor(T,O,D){super(T,O),this.urlAfterRedirects=D,this.type=On.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}var Tr=function(E){return E[E.Redirect=0]="Redirect",E[E.SupersededByNewNavigation=1]="SupersededByNewNavigation",E[E.NoDataFromResolver=2]="NoDataFromResolver",E[E.GuardRejected=3]="GuardRejected",E}(Tr||{}),Gn=function(E){return E[E.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",E[E.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",E}(Gn||{});class Cr extends Fr{constructor(T,O,D,L){super(T,O),this.reason=D,this.code=L,this.type=On.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class ai extends Fr{constructor(T,O,D,L){super(T,O),this.reason=D,this.code=L,this.type=On.NavigationSkipped}}class li extends Fr{constructor(T,O,D,L){super(T,O),this.error=D,this.target=L,this.type=On.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class ei extends Fr{constructor(T,O,D,L){super(T,O),this.urlAfterRedirects=D,this.state=L,this.type=On.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Lr extends Fr{constructor(T,O,D,L){super(T,O),this.urlAfterRedirects=D,this.state=L,this.type=On.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class mi extends Fr{constructor(T,O,D,L,ae){super(T,O),this.urlAfterRedirects=D,this.state=L,this.shouldActivate=ae,this.type=On.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Wn extends Fr{constructor(T,O,D,L){super(T,O),this.urlAfterRedirects=D,this.state=L,this.type=On.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Hn extends Fr{constructor(T,O,D,L){super(T,O),this.urlAfterRedirects=D,this.state=L,this.type=On.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ao{constructor(T){this.route=T,this.type=On.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class ui{constructor(T){this.route=T,this.type=On.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Ci{constructor(T){this.snapshot=T,this.type=On.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Eo{constructor(T){this.snapshot=T,this.type=On.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class No{constructor(T){this.snapshot=T,this.type=On.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class oi{constructor(T){this.snapshot=T,this.type=On.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class bt{constructor(T,O,D){this.routerEvent=T,this.position=O,this.anchor=D,this.type=On.Scroll}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class he{}class le{constructor(T){this.url=T}}class $e{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new Ve,this.attachRef=null}}let Ve=(()=>{var E;class T{constructor(){this.contexts=new Map}onChildOutletCreated(D,L){const ae=this.getOrCreateContext(D);ae.outlet=L,this.contexts.set(D,ae)}onChildOutletDestroyed(D){const L=this.getContext(D);L&&(L.outlet=null,L.attachRef=null)}onOutletDeactivated(){const D=this.contexts;return this.contexts=new Map,D}onOutletReAttached(D){this.contexts=D}getOrCreateContext(D){let L=this.getContext(D);return L||(L=new $e,this.contexts.set(D,L)),L}getContext(D){return this.contexts.get(D)||null}}return(E=T).\u0275fac=function(D){return new(D||E)},E.\u0275prov=c.jDH({token:E,factory:E.\u0275fac,providedIn:"root"}),T})();class ot{constructor(T){this._root=T}get root(){return this._root.value}parent(T){const O=this.pathFromRoot(T);return O.length>1?O[O.length-2]:null}children(T){const O=jt(T,this._root);return O?O.children.map(D=>D.value):[]}firstChild(T){const O=jt(T,this._root);return O&&O.children.length>0?O.children[0].value:null}siblings(T){const O=In(T,this._root);return O.length<2?[]:O[O.length-2].children.map(L=>L.value).filter(L=>L!==T)}pathFromRoot(T){return In(T,this._root).map(O=>O.value)}}function jt(E,T){if(E===T.value)return T;for(const O of T.children){const D=jt(E,O);if(D)return D}return null}function In(E,T){if(E===T.value)return[T];for(const O of T.children){const D=In(E,O);if(D.length)return D.unshift(T),D}return[]}class Fn{constructor(T,O){this.value=T,this.children=O}toString(){return`TreeNode(${this.value})`}}function b(E){const T={};return E&&E.children.forEach(O=>T[O.value.outlet]=O),T}class j extends ot{constructor(T,O){super(T),this.snapshot=O,z(this,T)}toString(){return this.snapshot.toString()}}function re(E){const T=function P(E){const ae=new sr([],{},{},"",{},rn,E,null,{});return new ni("",new Fn(ae,[]))}(E),O=new ue.t([new Dr("",{})]),D=new ue.t({}),L=new ue.t({}),ae=new ue.t({}),Re=new ue.t(""),Pt=new Ee(O,D,ae,Re,L,rn,E,T.root);return Pt.snapshot=T.root,new j(new Fn(Pt,[]),T)}class Ee{constructor(T,O,D,L,ae,Re,Pt,fn){var Bt,Bn;this.urlSubject=T,this.paramsSubject=O,this.queryParamsSubject=D,this.fragmentSubject=L,this.dataSubject=ae,this.outlet=Re,this.component=Pt,this._futureSnapshot=fn,this.title=null!==(Bt=null===(Bn=this.dataSubject)||void 0===Bn?void 0:Bn.pipe((0,ge.T)(Vr=>Vr[Ln])))&&void 0!==Bt?Bt:(0,U.of)(void 0),this.url=T,this.params=O,this.queryParams=D,this.fragment=L,this.data=ae}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,ge.T)(O=>nr(O)))),this._paramMap}get queryParamMap(){var T;return null!==(T=this._queryParamMap)&&void 0!==T||(this._queryParamMap=this.queryParams.pipe((0,ge.T)(O=>nr(O)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function it(E,T,O="emptyOnly"){var D;let L;const{routeConfig:ae}=E;var Re;return L=null===T||"always"!==O&&""!==(null==ae?void 0:ae.path)&&(T.component||null!==(D=T.routeConfig)&&void 0!==D&&D.loadComponent)?{params:{...E.params},data:{...E.data},resolve:{...E.data,...null!==(Re=E._resolvedData)&&void 0!==Re?Re:{}}}:{params:{...T.params,...E.params},data:{...T.data,...E.data},resolve:{...E.data,...T.data,...null==ae?void 0:ae.data,...E._resolvedData}},ae&&wt(ae)&&(L.resolve[Ln]=ae.title),L}class sr{get title(){var T;return null===(T=this.data)||void 0===T?void 0:T[Ln]}constructor(T,O,D,L,ae,Re,Pt,fn,Bt){this.url=T,this.params=O,this.queryParams=D,this.fragment=L,this.data=ae,this.outlet=Re,this.component=Pt,this.routeConfig=fn,this._resolve=Bt}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=nr(this.params)),this._paramMap}get queryParamMap(){var T;return null!==(T=this._queryParamMap)&&void 0!==T||(this._queryParamMap=nr(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(D=>D.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class ni extends ot{constructor(T,O){super(O),this.url=T,z(this,O)}toString(){return me(this._root)}}function z(E,T){T.value._routerState=E,T.children.forEach(O=>z(E,O))}function me(E){const T=E.children.length>0?` { ${E.children.map(me).join(", ")} } `:"";return`${E.value}${T}`}function Ne(E){if(E.snapshot){const T=E.snapshot,O=E._futureSnapshot;E.snapshot=O,rr(T.queryParams,O.queryParams)||E.queryParamsSubject.next(O.queryParams),T.fragment!==O.fragment&&E.fragmentSubject.next(O.fragment),rr(T.params,O.params)||E.paramsSubject.next(O.params),function yr(E,T){if(E.length!==T.length)return!1;for(let O=0;Orr(O.parameters,T[D].parameters))}(E.url,T.url);return O&&!(!E.parent!=!T.parent)&&(!E.parent||et(E.parent,T.parent))}function wt(E){return"string"==typeof E.title||null===E.title}let Et=(()=>{var E;class T{constructor(){this.activated=null,this._activatedRoute=null,this.name=rn,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)(Ve),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)(sn,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(D){if(D.name){const{firstChange:L,previousValue:ae}=D.name;if(L)return;this.isTrackedInParentContexts(ae)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(ae)),this.initializeOutletWithName()}}ngOnDestroy(){var D;this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),null===(D=this.inputBinder)||void 0===D||D.unsubscribeFromRouteData(this)}isTrackedInParentContexts(D){var L;return(null===(L=this.parentContexts.getContext(D))||void 0===L?void 0:L.outlet)===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const D=this.parentContexts.getContext(this.name);null!=D&&D.route&&(D.attachRef?this.attach(D.attachRef,D.route):this.activateWith(D.route,D.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 D=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(D.instance),D}attach(D,L){var ae;this.activated=D,this._activatedRoute=L,this.location.insert(D.hostView),null===(ae=this.inputBinder)||void 0===ae||ae.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(D.instance)}deactivate(){if(this.activated){const D=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(D)}}activateWith(D,L){var ae;if(this.isActivated)throw new c.wOt(4013,!1);this._activatedRoute=D;const Re=this.location,fn=D.snapshot.component,Bt=this.parentContexts.getOrCreateContext(this.name).children,Bn=new Yt(D,Bt,Re.injector);this.activated=Re.createComponent(fn,{index:Re.length,injector:Bn,environmentInjector:null!=L?L:this.environmentInjector}),this.changeDetector.markForCheck(),null===(ae=this.inputBinder)||void 0===ae||ae.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}}return(E=T).\u0275fac=function(D){return new(D||E)},E.\u0275dir=c.FsC({type:E,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[c.OA$]}),T})();class Yt{__ngOutletInjector(T){return new Yt(this.route,this.childContexts,T)}constructor(T,O,D){this.route=T,this.childContexts=O,this.parent=D}get(T,O){return T===Ee?this.route:T===Ve?this.childContexts:this.parent.get(T,O)}}const sn=new c.nKC("");let cn=(()=>{var E;class T{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(D){this.unsubscribeFromRouteData(D),this.subscribeToRouteData(D)}unsubscribeFromRouteData(D){var L;null===(L=this.outletDataSubscriptions.get(D))||void 0===L||L.unsubscribe(),this.outletDataSubscriptions.delete(D)}subscribeToRouteData(D){const{activatedRoute:L}=D,ae=(0,oe.z)([L.queryParams,L.params,L.data]).pipe((0,Ue.n)(([Re,Pt,fn],Bt)=>(fn={...Re,...Pt,...fn},0===Bt?(0,U.of)(fn):Promise.resolve(fn)))).subscribe(Re=>{if(!D.isActivated||!D.activatedComponentRef||D.activatedRoute!==L||null===L.component)return void this.unsubscribeFromRouteData(D);const Pt=(0,c.HJs)(L.component);if(Pt)for(const{templateName:fn}of Pt.inputs)D.activatedComponentRef.setInput(fn,Re[fn]);else this.unsubscribeFromRouteData(D)});this.outletDataSubscriptions.set(D,ae)}}return(E=T).\u0275fac=function(D){return new(D||E)},E.\u0275prov=c.jDH({token:E,factory:E.\u0275fac}),T})();function Nn(E,T,O){if(O&&E.shouldReuseRoute(T.value,O.value.snapshot)){const D=O.value;D._futureSnapshot=T.value;const L=function jn(E,T,O){return T.children.map(D=>{for(const L of O.children)if(E.shouldReuseRoute(D.value,L.value.snapshot))return Nn(E,D,L);return Nn(E,D)})}(E,T,O);return new Fn(D,L)}{if(E.shouldAttach(T.value)){const ae=E.retrieve(T.value);if(null!==ae){const Re=ae.route;return Re.value._futureSnapshot=T.value,Re.children=T.children.map(Pt=>Nn(E,Pt)),Re}}const D=function lr(E){return new Ee(new ue.t(E.url),new ue.t(E.params),new ue.t(E.queryParams),new ue.t(E.fragment),new ue.t(E.data),E.outlet,E.component,E)}(T.value),L=T.children.map(ae=>Nn(E,ae));return new Fn(D,L)}}const Vn="ngNavigationCancelingError";function qr(E,T){const{redirectTo:O,navigationBehaviorOptions:D}=dr(T)?{redirectTo:T,navigationBehaviorOptions:void 0}:T,L=jr(!1,Tr.Redirect);return L.url=O,L.navigationBehaviorOptions=D,L}function jr(E,T){const O=new Error(`NavigationCancelingError: ${E||""}`);return O[Vn]=!0,O.cancellationCode=T,O}function wi(E){return!!E&&E[Vn]}let Ni=(()=>{var E;class T{}return(E=T).\u0275fac=function(D){return new(D||E)},E.\u0275cmp=c.VBU({type:E,selectors:[["ng-component"]],standalone:!0,features:[c.aNF],decls:1,vars:0,template:function(D,L){1&D&&c.nrm(0,"router-outlet")},dependencies:[Et],encapsulation:2}),T})();function Ss(E){const T=E.children&&E.children.map(Ss),O=T?{...E,children:T}:{...E};return!O.component&&!O.loadComponent&&(T||O.loadChildren)&&O.outlet&&O.outlet!==rn&&(O.component=Ni),O}function no(E){return E.outlet||rn}function Kr(E){var T;if(!E)return null;if(null!==(T=E.routeConfig)&&void 0!==T&&T._injector)return E.routeConfig._injector;for(let O=E.parent;O;O=O.parent){const D=O.routeConfig;if(null!=D&&D._loadedInjector)return D._loadedInjector;if(null!=D&&D._injector)return D._injector}return null}class Rs{constructor(T,O,D,L,ae){this.routeReuseStrategy=T,this.futureState=O,this.currState=D,this.forwardEvent=L,this.inputBindingEnabled=ae}activate(T){const O=this.futureState._root,D=this.currState?this.currState._root:null;this.deactivateChildRoutes(O,D,T),Ne(this.futureState.root),this.activateChildRoutes(O,D,T)}deactivateChildRoutes(T,O,D){const L=b(O);T.children.forEach(ae=>{const Re=ae.value.outlet;this.deactivateRoutes(ae,L[Re],D),delete L[Re]}),Object.values(L).forEach(ae=>{this.deactivateRouteAndItsChildren(ae,D)})}deactivateRoutes(T,O,D){const L=T.value,ae=O?O.value:null;if(L===ae)if(L.component){const Re=D.getContext(L.outlet);Re&&this.deactivateChildRoutes(T,O,Re.children)}else this.deactivateChildRoutes(T,O,D);else ae&&this.deactivateRouteAndItsChildren(O,D)}deactivateRouteAndItsChildren(T,O){T.value.component&&this.routeReuseStrategy.shouldDetach(T.value.snapshot)?this.detachAndStoreRouteSubtree(T,O):this.deactivateRouteAndOutlet(T,O)}detachAndStoreRouteSubtree(T,O){const D=O.getContext(T.value.outlet),L=D&&T.value.component?D.children:O,ae=b(T);for(const Re of Object.values(ae))this.deactivateRouteAndItsChildren(Re,L);if(D&&D.outlet){const Re=D.outlet.detach(),Pt=D.children.onOutletDeactivated();this.routeReuseStrategy.store(T.value.snapshot,{componentRef:Re,route:T,contexts:Pt})}}deactivateRouteAndOutlet(T,O){const D=O.getContext(T.value.outlet),L=D&&T.value.component?D.children:O,ae=b(T);for(const Re of Object.values(ae))this.deactivateRouteAndItsChildren(Re,L);D&&(D.outlet&&(D.outlet.deactivate(),D.children.onOutletDeactivated()),D.attachRef=null,D.route=null)}activateChildRoutes(T,O,D){const L=b(O);T.children.forEach(ae=>{this.activateRoutes(ae,L[ae.value.outlet],D),this.forwardEvent(new oi(ae.value.snapshot))}),T.children.length&&this.forwardEvent(new Eo(T.value.snapshot))}activateRoutes(T,O,D){const L=T.value,ae=O?O.value:null;if(Ne(L),L===ae)if(L.component){const Re=D.getOrCreateContext(L.outlet);this.activateChildRoutes(T,O,Re.children)}else this.activateChildRoutes(T,O,D);else if(L.component){const Re=D.getOrCreateContext(L.outlet);if(this.routeReuseStrategy.shouldAttach(L.snapshot)){const Pt=this.routeReuseStrategy.retrieve(L.snapshot);this.routeReuseStrategy.store(L.snapshot,null),Re.children.onOutletReAttached(Pt.contexts),Re.attachRef=Pt.componentRef,Re.route=Pt.route.value,Re.outlet&&Re.outlet.attach(Pt.componentRef,Pt.route.value),Ne(Pt.route.value),this.activateChildRoutes(T,null,Re.children)}else{const Pt=Kr(L.snapshot);Re.attachRef=null,Re.route=L,Re.injector=Pt,Re.outlet&&Re.outlet.activateWith(L,Re.injector),this.activateChildRoutes(T,null,Re.children)}}else this.activateChildRoutes(T,null,D)}}class Hs{constructor(T){this.path=T,this.route=this.path[this.path.length-1]}}class Ms{constructor(T,O){this.component=T,this.route=O}}function ls(E,T,O){const D=E._root;return vs(D,T?T._root:null,O,[D.value])}function Uo(E,T){const O=Symbol(),D=T.get(E,O);return D===O?"function"!=typeof E||(0,c.LfX)(E)?T.get(E):E:D}function vs(E,T,O,D,L={canDeactivateChecks:[],canActivateChecks:[]}){const ae=b(T);return E.children.forEach(Re=>{(function Ps(E,T,O,D,L={canDeactivateChecks:[],canActivateChecks:[]}){const ae=E.value,Re=T?T.value:null,Pt=O?O.getContext(E.value.outlet):null;if(Re&&ae.routeConfig===Re.routeConfig){const fn=function xs(E,T,O){if("function"==typeof O)return O(E,T);switch(O){case"pathParamsChange":return!Jr(E.url,T.url);case"pathParamsOrQueryParamsChange":return!Jr(E.url,T.url)||!rr(E.queryParams,T.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!et(E,T)||!rr(E.queryParams,T.queryParams);default:return!et(E,T)}}(Re,ae,ae.routeConfig.runGuardsAndResolvers);fn?L.canActivateChecks.push(new Hs(D)):(ae.data=Re.data,ae._resolvedData=Re._resolvedData),vs(E,T,ae.component?Pt?Pt.children:null:O,D,L),fn&&Pt&&Pt.outlet&&Pt.outlet.isActivated&&L.canDeactivateChecks.push(new Ms(Pt.outlet.component,Re))}else Re&&Ao(T,Pt,L),L.canActivateChecks.push(new Hs(D)),vs(E,null,ae.component?Pt?Pt.children:null:O,D,L)})(Re,ae[Re.value.outlet],O,D.concat([Re.value]),L),delete ae[Re.value.outlet]}),Object.entries(ae).forEach(([Re,Pt])=>Ao(Pt,O.getContext(Re),L)),L}function Ao(E,T,O){const D=b(E),L=E.value;Object.entries(D).forEach(([ae,Re])=>{Ao(Re,L.component?T?T.children.getContext(ae):null:T,O)}),O.canDeactivateChecks.push(new Ms(L.component&&T&&T.outlet&&T.outlet.isActivated?T.outlet.component:null,L))}function Fo(E){return"function"==typeof E}function G(E){return E instanceof Xe.G||"EmptyError"===(null==E?void 0:E.name)}const ke=Symbol("INITIAL_VALUE");function yn(){return(0,Ue.n)(E=>(0,oe.z)(E.map(T=>T.pipe((0,Fe.s)(1),(0,xe.Z)(ke)))).pipe((0,ge.T)(T=>{for(const O of T)if(!0!==O){if(O===ke)return ke;if(!1===O||O instanceof Nr)return O}return!0}),(0,at.p)(T=>T!==ke),(0,Fe.s)(1)))}function fa(E){return(0,Ze.F)((0,tt.M)(T=>{if(dr(T))throw qr(0,T)}),(0,ge.T)(T=>!0===T))}class pa{constructor(T){this.segmentGroup=T||null}}class $o extends Error{constructor(T){super(),this.urlTree=T}}function Jo(E){return ht(new pa(E))}class po{constructor(T,O){this.urlSerializer=T,this.urlTree=O}lineralizeSegments(T,O){let D=[],L=O.root;for(;;){if(D=D.concat(L.segments),0===L.numberOfChildren)return(0,U.of)(D);if(L.numberOfChildren>1||!L.children[rn])return ht(new c.wOt(4e3,!1));L=L.children[rn]}}applyRedirectCommands(T,O,D){const L=this.applyRedirectCreateUrlTree(O,this.urlSerializer.parse(O),T,D);if(O.startsWith("/"))throw new $o(L);return L}applyRedirectCreateUrlTree(T,O,D,L){const ae=this.createSegmentGroup(T,O.root,D,L);return new Nr(ae,this.createQueryParams(O.queryParams,this.urlTree.queryParams),O.fragment)}createQueryParams(T,O){const D={};return Object.entries(T).forEach(([L,ae])=>{if("string"==typeof ae&&ae.startsWith(":")){const Pt=ae.substring(1);D[L]=O[Pt]}else D[L]=ae}),D}createSegmentGroup(T,O,D,L){const ae=this.createSegments(T,O.segments,D,L);let Re={};return Object.entries(O.children).forEach(([Pt,fn])=>{Re[Pt]=this.createSegmentGroup(T,fn,D,L)}),new Qn(ae,Re)}createSegments(T,O,D,L){return O.map(ae=>ae.path.startsWith(":")?this.findPosParam(T,ae,L):this.findOrReturn(ae,D))}findPosParam(T,O,D){const L=D[O.path.substring(1)];if(!L)throw new c.wOt(4001,!1);return L}findOrReturn(T,O){let D=0;for(const L of O){if(L.path===T.path)return O.splice(D),L;D++}return T}}const bi={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function La(E,T,O,D,L){const ae=jo(E,T,O);return ae.matched?(D=function ki(E,T){var O;return E.providers&&!E._injector&&(E._injector=(0,c.Ol2)(E.providers,T,`Route: ${E.path}`)),null!==(O=E._injector)&&void 0!==O?O:T}(T,D),function ul(E,T,O,D){const L=T.canMatch;if(!L||0===L.length)return(0,U.of)(!0);const ae=L.map(Re=>{const Pt=Uo(Re,E);return zt(function Ae(E){return E&&Fo(E.canMatch)}(Pt)?Pt.canMatch(T,O):(0,c.N4e)(E,()=>Pt(T,O)))});return(0,U.of)(ae).pipe(yn(),fa())}(D,T,O).pipe((0,ge.T)(Re=>!0===Re?ae:{...bi}))):(0,U.of)(ae)}function jo(E,T,O){var D,L;if("**"===T.path)return function ys(E){return{matched:!0,parameters:E.length>0?Ot(E).parameters:{},consumedSegments:E,remainingSegments:[],positionalParamSegments:{}}}(O);if(""===T.path)return"full"===T.pathMatch&&(E.hasChildren()||O.length>0)?{...bi}:{matched:!0,consumedSegments:[],remainingSegments:O,parameters:{},positionalParamSegments:{}};const Re=(T.matcher||er)(O,E,T);if(!Re)return{...bi};const Pt={};Object.entries(null!==(D=Re.posParams)&&void 0!==D?D:{}).forEach(([Bt,Bn])=>{Pt[Bt]=Bn.path});const fn=Re.consumed.length>0?{...Pt,...Re.consumed[Re.consumed.length-1].parameters}:Pt;return{matched:!0,consumedSegments:Re.consumed,remainingSegments:O.slice(Re.consumed.length),parameters:fn,positionalParamSegments:null!==(L=Re.posParams)&&void 0!==L?L:{}}}function cl(E,T,O,D){return O.length>0&&function Ws(E,T,O){return O.some(D=>Es(E,T,D)&&no(D)!==rn)}(E,O,D)?{segmentGroup:new Qn(T,dl(D,new Qn(O,E.children))),slicedSegments:[]}:0===O.length&&function Va(E,T,O){return O.some(D=>Es(E,T,D))}(E,O,D)?{segmentGroup:new Qn(E.segments,Hr(E,O,D,E.children)),slicedSegments:O}:{segmentGroup:new Qn(E.segments,E.children),slicedSegments:O}}function Hr(E,T,O,D){const L={};for(const ae of O)if(Es(E,T,ae)&&!D[no(ae)]){const Re=new Qn([],{});L[no(ae)]=Re}return{...D,...L}}function dl(E,T){const O={};O[rn]=T;for(const D of E)if(""===D.path&&no(D)!==rn){const L=new Qn([],{});O[no(D)]=L}return O}function Es(E,T,O){return(!(E.hasChildren()||T.length>0)||"full"!==O.pathMatch)&&""===O.path}class Ul{}class Is{constructor(T,O,D,L,ae,Re,Pt){this.injector=T,this.configLoader=O,this.rootComponentType=D,this.config=L,this.urlTree=ae,this.paramsInheritanceStrategy=Re,this.urlSerializer=Pt,this.applyRedirects=new po(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(T){return new c.wOt(4002,`'${T.segmentGroup}'`)}recognize(){const T=cl(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(T).pipe((0,ge.T)(O=>{const D=new sr([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},rn,this.rootComponentType,null,{}),L=new Fn(D,O),ae=new ni("",L),Re=function $r(E,T,O=null,D=null){return fr(Zr(E),T,O,D)}(D,[],this.urlTree.queryParams,this.urlTree.fragment);return Re.queryParams=this.urlTree.queryParams,ae.url=this.urlSerializer.serialize(Re),this.inheritParamsAndData(ae._root,null),{state:ae,tree:Re}}))}match(T){return this.processSegmentGroup(this.injector,this.config,T,rn).pipe(on(D=>{if(D instanceof $o)return this.urlTree=D.urlTree,this.match(D.urlTree.root);throw D instanceof pa?this.noMatchError(D):D}))}inheritParamsAndData(T,O){const D=T.value,L=it(D,O,this.paramsInheritanceStrategy);D.params=Object.freeze(L.params),D.data=Object.freeze(L.data),T.children.forEach(ae=>this.inheritParamsAndData(ae,D))}processSegmentGroup(T,O,D,L){return 0===D.segments.length&&D.hasChildren()?this.processChildren(T,O,D):this.processSegment(T,O,D,D.segments,L,!0).pipe((0,ge.T)(ae=>ae instanceof Fn?[ae]:[]))}processChildren(T,O,D){const L=[];for(const ae of Object.keys(D.children))"primary"===ae?L.unshift(ae):L.push(ae);return(0,Oe.H)(L).pipe((0,Nt.H)(ae=>{const Re=D.children[ae],Pt=function ko(E,T){const O=E.filter(D=>no(D)===T);return O.push(...E.filter(D=>no(D)!==T)),O}(O,ae);return this.processSegmentGroup(T,Pt,Re,ae)}),function we(E,T){return(0,_t.N)(function dt(E,T,O,D,L){return(ae,Re)=>{let Pt=O,fn=T,Bt=0;ae.subscribe((0,Tt._)(Re,Bn=>{const Vr=Bt++;fn=Pt?E(fn,Bn,Vr):(Pt=!0,Bn),D&&Re.next(fn)},L&&(()=>{Pt&&Re.next(fn),Re.complete()})))}}(E,T,arguments.length>=2,!0))}((ae,Re)=>(ae.push(...Re),ae)),(0,H.U)(null),function ve(E,T){const O=arguments.length>=2;return D=>D.pipe(E?(0,at.p)((L,ae)=>E(L,ae,D)):se.D,X(1),O?(0,H.U)(T):(0,fe.v)(()=>new Xe.G))}(),(0,Rt.Z)(ae=>{if(null===ae)return Jo(D);const Re=As(ae);return function Os(E){E.sort((T,O)=>T.value.outlet===rn?-1:O.value.outlet===rn?1:T.value.outlet.localeCompare(O.value.outlet))}(Re),(0,U.of)(Re)}))}processSegment(T,O,D,L,ae,Re){return(0,Oe.H)(O).pipe((0,Nt.H)(Pt=>{var fn;return this.processSegmentAgainstRoute(null!==(fn=Pt._injector)&&void 0!==fn?fn:T,O,Pt,D,L,ae,Re).pipe(on(Bt=>{if(Bt instanceof pa)return(0,U.of)(null);throw Bt}))}),(0,vn.$)(Pt=>!!Pt),on(Pt=>{if(G(Pt))return function Ba(E,T,O){return 0===T.length&&!E.children[O]}(D,L,ae)?(0,U.of)(new Ul):Jo(D);throw Pt}))}processSegmentAgainstRoute(T,O,D,L,ae,Re,Pt){return function hl(E,T,O,D){return!!(no(E)===D||D!==rn&&Es(T,O,E))&&jo(T,E,O).matched}(D,L,ae,Re)?void 0===D.redirectTo?this.matchSegmentAgainstRoute(T,L,D,ae,Re):this.allowRedirects&&Pt?this.expandSegmentAgainstRouteUsingRedirect(T,L,O,D,ae,Re):Jo(L):Jo(L)}expandSegmentAgainstRouteUsingRedirect(T,O,D,L,ae,Re){const{matched:Pt,consumedSegments:fn,positionalParamSegments:Bt,remainingSegments:Bn}=jo(O,L,ae);if(!Pt)return Jo(O);L.redirectTo.startsWith("/")&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>31&&(this.allowRedirects=!1));const Vr=this.applyRedirects.applyRedirectCommands(fn,L.redirectTo,Bt);return this.applyRedirects.lineralizeSegments(L,Vr).pipe((0,Rt.Z)($i=>this.processSegment(T,D,O,$i.concat(Bn),Re,!1)))}matchSegmentAgainstRoute(T,O,D,L,ae){const Re=La(O,D,L,T);return"**"===D.path&&(O.children={}),Re.pipe((0,Ue.n)(Pt=>{var fn;return Pt.matched?(T=null!==(fn=D._injector)&&void 0!==fn?fn:T,this.getChildConfig(T,D,L).pipe((0,Ue.n)(({routes:Bt})=>{var Bn,Vr,$i;const yi=null!==(Bn=D._loadedInjector)&&void 0!==Bn?Bn:T,{consumedSegments:Zi,remainingSegments:Js,parameters:Ha}=Pt,Ga=new sr(Zi,Ha,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,function es(E){return E.data||{}}(D),no(D),null!==(Vr=null!==($i=D.component)&&void 0!==$i?$i:D._loadedComponent)&&void 0!==Vr?Vr:null,D,function Su(E){return E.resolve||{}}(D)),{segmentGroup:Fs,slicedSegments:hs}=cl(O,Zi,Js,Bt);if(0===hs.length&&Fs.hasChildren())return this.processChildren(yi,Bt,Fs).pipe((0,ge.T)(Wa=>null===Wa?null:new Fn(Ga,Wa)));if(0===Bt.length&&0===hs.length)return(0,U.of)(new Fn(Ga,[]));const Ta=no(D)===ae;return this.processSegment(yi,Bt,Fs,hs,Ta?rn:ae,!0).pipe((0,ge.T)(Wa=>new Fn(Ga,Wa instanceof Fn?[Wa]:[])))}))):Jo(O)}))}getChildConfig(T,O,D){return O.children?(0,U.of)({routes:O.children,injector:T}):O.loadChildren?void 0!==O._loadedRoutes?(0,U.of)({routes:O._loadedRoutes,injector:O._loadedInjector}):function Gs(E,T,O,D){const L=T.canLoad;if(void 0===L||0===L.length)return(0,U.of)(!0);const ae=L.map(Re=>{const Pt=Uo(Re,E);return zt(function ha(E){return E&&Fo(E.canLoad)}(Pt)?Pt.canLoad(T,O):(0,c.N4e)(E,()=>Pt(T,O)))});return(0,U.of)(ae).pipe(yn(),fa())}(T,O,D).pipe((0,Rt.Z)(L=>L?this.configLoader.loadChildren(T,O).pipe((0,tt.M)(ae=>{O._loadedRoutes=ae.routes,O._loadedInjector=ae.injector})):function zi(E){return ht(jr(!1,Tr.GuardRejected))}())):(0,U.of)({routes:[],injector:T})}}function Zo(E){const T=E.value.routeConfig;return T&&""===T.path}function As(E){const T=[],O=new Set;for(const D of E){if(!Zo(D)){T.push(D);continue}const L=T.find(ae=>D.value.routeConfig===ae.value.routeConfig);void 0!==L?(L.children.push(...D.children),O.add(L)):T.push(D)}for(const D of O){const L=As(D.children);T.push(new Fn(D.value,L))}return T.filter(D=>!O.has(D))}function Lo(E){const T=E.children.map(O=>Lo(O)).flat();return[E,...T]}function Ua(E){return(0,Ue.n)(T=>{const O=E(T);return O?(0,Oe.H)(O).pipe((0,ge.T)(()=>T)):(0,U.of)(T)})}let ma=(()=>{var E;class T{buildTitle(D){let L,ae=D.root;for(;void 0!==ae;){var Re;L=null!==(Re=this.getResolvedTitleForRoute(ae))&&void 0!==Re?Re:L,ae=ae.children.find(Pt=>Pt.outlet===rn)}return L}getResolvedTitleForRoute(D){return D.data[Ln]}}return(E=T).\u0275fac=function(D){return new(D||E)},E.\u0275prov=c.jDH({token:E,factory:()=>(0,c.WQX)($a),providedIn:"root"}),T})(),$a=(()=>{var E;class T extends ma{constructor(D){super(),this.title=D}updateTitle(D){const L=this.buildTitle(D);void 0!==L&&this.title.setTitle(L)}}return(E=T).\u0275fac=function(D){return new(D||E)(c.KVO(Kt.hE))},E.\u0275prov=c.jDH({token:E,factory:E.\u0275fac,providedIn:"root"}),T})();const zo=new c.nKC("",{providedIn:"root",factory:()=>({})}),va=new c.nKC("");let _a=(()=>{var E;class T{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=(0,c.WQX)(c.Ql9)}loadComponent(D){if(this.componentLoaders.get(D))return this.componentLoaders.get(D);if(D._loadedComponent)return(0,U.of)(D._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(D);const L=zt(D.loadComponent()).pipe((0,ge.T)(Gl),(0,tt.M)(Re=>{this.onLoadEndListener&&this.onLoadEndListener(D),D._loadedComponent=Re}),(0,De.j)(()=>{this.componentLoaders.delete(D)})),ae=new mt(L,()=>new Me.B).pipe(yt());return this.componentLoaders.set(D,ae),ae}loadChildren(D,L){if(this.childrenLoaders.get(L))return this.childrenLoaders.get(L);if(L._loadedRoutes)return(0,U.of)({routes:L._loadedRoutes,injector:L._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(L);const Re=function Ks(E,T,O,D){return zt(E.loadChildren()).pipe((0,ge.T)(Gl),(0,Rt.Z)(L=>L instanceof c.Co$||Array.isArray(L)?(0,U.of)(L):(0,Oe.H)(T.compileModuleAsync(L))),(0,ge.T)(L=>{D&&D(E);let ae,Re,Pt=!1;return Array.isArray(L)?(Re=L,!0):(ae=L.create(O).injector,Re=ae.get(va,[],{optional:!0,self:!0}).flat()),{routes:Re.map(Ss),injector:ae}}))}(L,this.compiler,D,this.onLoadEndListener).pipe((0,De.j)(()=>{this.childrenLoaders.delete(L)})),Pt=new mt(Re,()=>new Me.B).pipe(yt());return this.childrenLoaders.set(L,Pt),Pt}}return(E=T).\u0275fac=function(D){return new(D||E)},E.\u0275prov=c.jDH({token:E,factory:E.\u0275fac,providedIn:"root"}),T})();function Gl(E){return function lo(E){return E&&"object"==typeof E&&"default"in E}(E)?E.default:E}let ya=(()=>{var E;class T{}return(E=T).\u0275fac=function(D){return new(D||E)},E.\u0275prov=c.jDH({token:E,factory:()=>(0,c.WQX)(C),providedIn:"root"}),T})(),C=(()=>{var E;class T{shouldProcessUrl(D){return!0}extract(D){return D}merge(D,L){return D}}return(E=T).\u0275fac=function(D){return new(D||E)},E.\u0275prov=c.jDH({token:E,factory:E.\u0275fac,providedIn:"root"}),T})();const $=new c.nKC(""),Be=new c.nKC("");function F(E,T,O){const D=E.get(Be),L=E.get(Ye.qQ);return E.get(c.SKi).runOutsideAngular(()=>{if(!L.startViewTransition||D.skipNextTransition)return D.skipNextTransition=!1,new Promise(Bt=>setTimeout(Bt));let ae;const Re=new Promise(Bt=>{ae=Bt}),Pt=L.startViewTransition(()=>(ae(),function Ie(E){return new Promise(T=>{(0,c.mal)(T,{injector:E})})}(E))),{onViewTransitionCreated:fn}=D;return fn&&(0,c.N4e)(E,()=>fn({transition:Pt,from:T,to:O})),Re})}let Ke=(()=>{var E;class T{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new Me.B,this.transitionAbortSubject=new Me.B,this.configLoader=(0,c.WQX)(_a),this.environmentInjector=(0,c.WQX)(c.uvJ),this.urlSerializer=(0,c.WQX)(ur),this.rootContexts=(0,c.WQX)(Ve),this.location=(0,c.WQX)(Ye.aZ),this.inputBindingEnabled=null!==(0,c.WQX)(sn,{optional:!0}),this.titleStrategy=(0,c.WQX)(ma),this.options=(0,c.WQX)(zo,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=(0,c.WQX)(ya),this.createViewTransition=(0,c.WQX)($,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>(0,U.of)(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=ae=>this.events.next(new ui(ae)),this.configLoader.onLoadStartListener=ae=>this.events.next(new ao(ae))}complete(){var D;null===(D=this.transitions)||void 0===D||D.complete()}handleNavigationRequest(D){var L;const ae=++this.navigationId;null===(L=this.transitions)||void 0===L||L.next({...this.transitions.value,...D,id:ae})}setupNavigations(D,L,ae){return this.transitions=new ue.t({id:0,currentUrlTree:L,currentRawUrl:L,extractedUrl:this.urlHandlingStrategy.extract(L),urlAfterRedirects:this.urlHandlingStrategy.extract(L),rawUrl:L,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:xr,restoredState:null,currentSnapshot:ae.snapshot,targetSnapshot:null,currentRouterState:ae,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe((0,at.p)(Re=>0!==Re.id),(0,ge.T)(Re=>({...Re,extractedUrl:this.urlHandlingStrategy.extract(Re.rawUrl)})),(0,Ue.n)(Re=>{let Pt=!1,fn=!1;return(0,U.of)(Re).pipe((0,Ue.n)(Bt=>{var Bn;if(this.navigationId>Re.id)return this.cancelNavigationTransition(Re,"",Tr.SupersededByNewNavigation),Dt.w;this.currentTransition=Re,this.currentNavigation={id:Bt.id,initialUrl:Bt.rawUrl,extractedUrl:Bt.extractedUrl,trigger:Bt.source,extras:Bt.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null};const Vr=!D.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),$i=null!==(Bn=Bt.extras.onSameUrlNavigation)&&void 0!==Bn?Bn:D.onSameUrlNavigation;if(!Vr&&"reload"!==$i){const yi="";return this.events.next(new ai(Bt.id,this.urlSerializer.serialize(Bt.rawUrl),yi,Gn.IgnoredSameUrlNavigation)),Bt.resolve(null),Dt.w}if(this.urlHandlingStrategy.shouldProcessUrl(Bt.rawUrl))return(0,U.of)(Bt).pipe((0,Ue.n)(yi=>{var Zi,Js;const Ha=null===(Zi=this.transitions)||void 0===Zi?void 0:Zi.getValue();return this.events.next(new Or(yi.id,this.urlSerializer.serialize(yi.extractedUrl),yi.source,yi.restoredState)),Ha!==(null===(Js=this.transitions)||void 0===Js?void 0:Js.getValue())?Dt.w:Promise.resolve(yi)}),function Hl(E,T,O,D,L,ae){return(0,Rt.Z)(Re=>function $l(E,T,O,D,L,ae,Re="emptyOnly"){return new Is(E,T,O,D,L,Re,ae).recognize()}(E,T,O,D,Re.extractedUrl,L,ae).pipe((0,ge.T)(({state:Pt,tree:fn})=>({...Re,targetSnapshot:Pt,urlAfterRedirects:fn}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,D.config,this.urlSerializer,this.paramsInheritanceStrategy),(0,tt.M)(yi=>{Re.targetSnapshot=yi.targetSnapshot,Re.urlAfterRedirects=yi.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:yi.urlAfterRedirects};const Zi=new ei(yi.id,this.urlSerializer.serialize(yi.extractedUrl),this.urlSerializer.serialize(yi.urlAfterRedirects),yi.targetSnapshot);this.events.next(Zi)}));if(Vr&&this.urlHandlingStrategy.shouldProcessUrl(Bt.currentRawUrl)){const{id:yi,extractedUrl:Zi,source:Js,restoredState:Ha,extras:Ga}=Bt,Fs=new Or(yi,this.urlSerializer.serialize(Zi),Js,Ha);this.events.next(Fs);const hs=re(this.rootComponentType).snapshot;return this.currentTransition=Re={...Bt,targetSnapshot:hs,urlAfterRedirects:Zi,extras:{...Ga,skipLocationChange:!1,replaceUrl:!1}},this.currentNavigation.finalUrl=Zi,(0,U.of)(Re)}{const yi="";return this.events.next(new ai(Bt.id,this.urlSerializer.serialize(Bt.extractedUrl),yi,Gn.IgnoredByUrlHandlingStrategy)),Bt.resolve(null),Dt.w}}),(0,tt.M)(Bt=>{const Bn=new Lr(Bt.id,this.urlSerializer.serialize(Bt.extractedUrl),this.urlSerializer.serialize(Bt.urlAfterRedirects),Bt.targetSnapshot);this.events.next(Bn)}),(0,ge.T)(Bt=>(this.currentTransition=Re={...Bt,guards:ls(Bt.targetSnapshot,Bt.currentSnapshot,this.rootContexts)},Re)),function Xn(E,T){return(0,Rt.Z)(O=>{const{targetSnapshot:D,currentSnapshot:L,guards:{canActivateChecks:ae,canDeactivateChecks:Re}}=O;return 0===Re.length&&0===ae.length?(0,U.of)({...O,guardsResult:!0}):function wr(E,T,O,D){return(0,Oe.H)(E).pipe((0,Rt.Z)(L=>function _s(E,T,O,D,L){const ae=T&&T.routeConfig?T.routeConfig.canDeactivate:null;if(!ae||0===ae.length)return(0,U.of)(!0);const Re=ae.map(Pt=>{var fn;const Bt=null!==(fn=Kr(T))&&void 0!==fn?fn:L,Bn=Uo(Pt,Bt);return zt(function N(E){return E&&Fo(E.canDeactivate)}(Bn)?Bn.canDeactivate(E,T,O,D):(0,c.N4e)(Bt,()=>Bn(E,T,O,D))).pipe((0,vn.$)())});return(0,U.of)(Re).pipe(yn())}(L.component,L.route,O,T,D)),(0,vn.$)(L=>!0!==L,!0))}(Re,D,L,E).pipe((0,Rt.Z)(Pt=>Pt&&function io(E){return"boolean"==typeof E}(Pt)?function oo(E,T,O,D){return(0,Oe.H)(T).pipe((0,Nt.H)(L=>(0,Je.x)(function So(E,T){return null!==E&&T&&T(new Ci(E)),(0,U.of)(!0)}(L.route.parent,D),function wo(E,T){return null!==E&&T&&T(new No(E)),(0,U.of)(!0)}(L.route,D),function Fa(E,T,O){const D=T[T.length-1],ae=T.slice(0,T.length-1).reverse().map(Re=>function us(E){const T=E.routeConfig?E.routeConfig.canActivateChild:null;return T&&0!==T.length?{node:E,guards:T}:null}(Re)).filter(Re=>null!==Re).map(Re=>Qe(()=>{const Pt=Re.guards.map(fn=>{var Bt;const Bn=null!==(Bt=Kr(Re.node))&&void 0!==Bt?Bt:O,Vr=Uo(fn,Bn);return zt(function K(E){return E&&Fo(E.canActivateChild)}(Vr)?Vr.canActivateChild(D,E):(0,c.N4e)(Bn,()=>Vr(D,E))).pipe((0,vn.$)())});return(0,U.of)(Pt).pipe(yn())}));return(0,U.of)(ae).pipe(yn())}(E,L.path,O),function Yo(E,T,O){const D=T.routeConfig?T.routeConfig.canActivate:null;if(!D||0===D.length)return(0,U.of)(!0);const L=D.map(ae=>Qe(()=>{var Re;const Pt=null!==(Re=Kr(T))&&void 0!==Re?Re:O,fn=Uo(ae,Pt);return zt(function ll(E){return E&&Fo(E.canActivate)}(fn)?fn.canActivate(T,E):(0,c.N4e)(Pt,()=>fn(T,E))).pipe((0,vn.$)())}));return(0,U.of)(L).pipe(yn())}(E,L.route,O))),(0,vn.$)(L=>!0!==L,!0))}(D,ae,E,T):(0,U.of)(Pt)),(0,ge.T)(Pt=>({...O,guardsResult:Pt})))})}(this.environmentInjector,Bt=>this.events.next(Bt)),(0,tt.M)(Bt=>{if(Re.guardsResult=Bt.guardsResult,dr(Bt.guardsResult))throw qr(0,Bt.guardsResult);const Bn=new mi(Bt.id,this.urlSerializer.serialize(Bt.extractedUrl),this.urlSerializer.serialize(Bt.urlAfterRedirects),Bt.targetSnapshot,!!Bt.guardsResult);this.events.next(Bn)}),(0,at.p)(Bt=>!!Bt.guardsResult||(this.cancelNavigationTransition(Bt,"",Tr.GuardRejected),!1)),Ua(Bt=>{if(Bt.guards.canActivateChecks.length)return(0,U.of)(Bt).pipe((0,tt.M)(Bn=>{const Vr=new Wn(Bn.id,this.urlSerializer.serialize(Bn.extractedUrl),this.urlSerializer.serialize(Bn.urlAfterRedirects),Bn.targetSnapshot);this.events.next(Vr)}),(0,Ue.n)(Bn=>{let Vr=!1;return(0,U.of)(Bn).pipe(function ts(E,T){return(0,Rt.Z)(O=>{const{targetSnapshot:D,guards:{canActivateChecks:L}}=O;if(!L.length)return(0,U.of)(O);const ae=new Set(L.map(fn=>fn.route)),Re=new Set;for(const fn of ae)if(!Re.has(fn))for(const Bt of Lo(fn))Re.add(Bt);let Pt=0;return(0,Oe.H)(Re).pipe((0,Nt.H)(fn=>ae.has(fn)?function Ns(E,T,O,D){const L=E.routeConfig,ae=E._resolve;return void 0!==(null==L?void 0:L.title)&&!wt(L)&&(ae[Ln]=L.title),function Ui(E,T,O,D){const L=ir(E);if(0===L.length)return(0,U.of)({});const ae={};return(0,Oe.H)(L).pipe((0,Rt.Z)(Re=>function ga(E,T,O,D){var L;const ae=null!==(L=Kr(T))&&void 0!==L?L:D,Re=Uo(E,ae);return zt(Re.resolve?Re.resolve(T,O):(0,c.N4e)(ae,()=>Re(T,O)))}(E[Re],T,O,D).pipe((0,vn.$)(),(0,tt.M)(Pt=>{ae[Re]=Pt}))),X(1),(0,Le.u)(ae),on(Re=>G(Re)?Dt.w:ht(Re)))}(ae,E,T,D).pipe((0,ge.T)(Re=>(E._resolvedData=Re,E.data=it(E,E.parent,O).resolve,null)))}(fn,D,E,T):(fn.data=it(fn,fn.parent,E).resolve,(0,U.of)(void 0))),(0,tt.M)(()=>Pt++),X(1),(0,Rt.Z)(fn=>Pt===Re.size?(0,U.of)(O):Dt.w))})}(this.paramsInheritanceStrategy,this.environmentInjector),(0,tt.M)({next:()=>Vr=!0,complete:()=>{Vr||this.cancelNavigationTransition(Bn,"",Tr.NoDataFromResolver)}}))}),(0,tt.M)(Bn=>{const Vr=new Hn(Bn.id,this.urlSerializer.serialize(Bn.extractedUrl),this.urlSerializer.serialize(Bn.urlAfterRedirects),Bn.targetSnapshot);this.events.next(Vr)}))}),Ua(Bt=>{const Bn=Vr=>{var $i;const yi=[];null!==($i=Vr.routeConfig)&&void 0!==$i&&$i.loadComponent&&!Vr.routeConfig._loadedComponent&&yi.push(this.configLoader.loadComponent(Vr.routeConfig).pipe((0,tt.M)(Zi=>{Vr.component=Zi}),(0,ge.T)(()=>{})));for(const Zi of Vr.children)yi.push(...Bn(Zi));return yi};return(0,oe.z)(Bn(Bt.targetSnapshot.root)).pipe((0,H.U)(null),(0,Fe.s)(1))}),Ua(()=>this.afterPreactivation()),(0,Ue.n)(()=>{var Bt;const{currentSnapshot:Bn,targetSnapshot:Vr}=Re,$i=null===(Bt=this.createViewTransition)||void 0===Bt?void 0:Bt.call(this,this.environmentInjector,Bn.root,Vr.root);return $i?(0,Oe.H)($i).pipe((0,ge.T)(()=>Re)):(0,U.of)(Re)}),(0,ge.T)(Bt=>{const Bn=function En(E,T,O){const D=Nn(E,T._root,O?O._root:void 0);return new j(D,T)}(D.routeReuseStrategy,Bt.targetSnapshot,Bt.currentRouterState);return this.currentTransition=Re={...Bt,targetRouterState:Bn},this.currentNavigation.targetRouterState=Bn,Re}),(0,tt.M)(()=>{this.events.next(new he)}),((E,T,O,D)=>(0,ge.T)(L=>(new Rs(T,L.targetRouterState,L.currentRouterState,O,D).activate(E),L)))(this.rootContexts,D.routeReuseStrategy,Bt=>this.events.next(Bt),this.inputBindingEnabled),(0,Fe.s)(1),(0,tt.M)({next:Bt=>{var Bn;Pt=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new zr(Bt.id,this.urlSerializer.serialize(Bt.extractedUrl),this.urlSerializer.serialize(Bt.urlAfterRedirects))),null===(Bn=this.titleStrategy)||void 0===Bn||Bn.updateTitle(Bt.targetRouterState.snapshot),Bt.resolve(!0)},complete:()=>{Pt=!0}}),(0,Wt.Q)(this.transitionAbortSubject.pipe((0,tt.M)(Bt=>{throw Bt}))),(0,De.j)(()=>{var Bt;!Pt&&!fn&&this.cancelNavigationTransition(Re,"",Tr.SupersededByNewNavigation),(null===(Bt=this.currentTransition)||void 0===Bt?void 0:Bt.id)===Re.id&&(this.currentNavigation=null,this.currentTransition=null)}),on(Bt=>{if(fn=!0,wi(Bt))this.events.next(new Cr(Re.id,this.urlSerializer.serialize(Re.extractedUrl),Bt.message,Bt.cancellationCode)),function br(E){return wi(E)&&dr(E.url)}(Bt)?this.events.next(new le(Bt.url)):Re.resolve(!1);else{var Bn;this.events.next(new li(Re.id,this.urlSerializer.serialize(Re.extractedUrl),Bt,null!==(Bn=Re.targetSnapshot)&&void 0!==Bn?Bn:void 0));try{Re.resolve(D.errorHandler(Bt))}catch(Vr){this.options.resolveNavigationPromiseOnError?Re.resolve(!1):Re.reject(Vr)}}return Dt.w}))}))}cancelNavigationTransition(D,L,ae){const Re=new Cr(D.id,this.urlSerializer.serialize(D.extractedUrl),L,ae);this.events.next(Re),D.resolve(!1)}isUpdatingInternalState(){var D,L;return(null===(D=this.currentTransition)||void 0===D?void 0:D.extractedUrl.toString())!==(null===(L=this.currentTransition)||void 0===L?void 0:L.currentUrlTree.toString())}isUpdatedBrowserUrl(){var D,L;return this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))).toString()!==(null===(D=this.currentTransition)||void 0===D?void 0:D.extractedUrl.toString())&&!(null!==(L=this.currentTransition)&&void 0!==L&&L.extras.skipLocationChange)}}return(E=T).\u0275fac=function(D){return new(D||E)},E.\u0275prov=c.jDH({token:E,factory:E.\u0275fac,providedIn:"root"}),T})();function Qt(E){return E!==xr}let wn=(()=>{var E;class T{}return(E=T).\u0275fac=function(D){return new(D||E)},E.\u0275prov=c.jDH({token:E,factory:()=>(0,c.WQX)(Yn),providedIn:"root"}),T})();class ar{shouldDetach(T){return!1}store(T,O){}shouldAttach(T){return!1}retrieve(T){return null}shouldReuseRoute(T,O){return T.routeConfig===O.routeConfig}}let Yn=(()=>{var E;class T extends ar{}return(E=T).\u0275fac=(()=>{let O;return function(L){return(O||(O=c.xGo(E)))(L||E)}})(),E.\u0275prov=c.jDH({token:E,factory:E.\u0275fac,providedIn:"root"}),T})(),pi=(()=>{var E;class T{}return(E=T).\u0275fac=function(D){return new(D||E)},E.\u0275prov=c.jDH({token:E,factory:()=>(0,c.WQX)(Xr),providedIn:"root"}),T})(),Xr=(()=>{var E;class T extends pi{constructor(){super(...arguments),this.location=(0,c.WQX)(Ye.aZ),this.urlSerializer=(0,c.WQX)(ur),this.options=(0,c.WQX)(zo,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=(0,c.WQX)(ya),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new Nr,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=re(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){var D,L;return"computed"!==this.canceledNavigationResolution?this.currentPageId:null!==(D=null===(L=this.restoredState())||void 0===L?void 0:L.\u0275routerPageId)&&void 0!==D?D:this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(D){return this.location.subscribe(L=>{"popstate"===L.type&&D(L.url,L.state)})}handleRouterEvent(D,L){if(D instanceof Or)this.stateMemento=this.createStateMemento();else if(D instanceof ai)this.rawUrlTree=L.initialUrl;else if(D instanceof ei){if("eager"===this.urlUpdateStrategy&&!L.extras.skipLocationChange){const ae=this.urlHandlingStrategy.merge(L.finalUrl,L.initialUrl);this.setBrowserUrl(ae,L)}}else D instanceof he?(this.currentUrlTree=L.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(L.finalUrl,L.initialUrl),this.routerState=L.targetRouterState,"deferred"===this.urlUpdateStrategy&&(L.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,L))):D instanceof Cr&&(D.code===Tr.GuardRejected||D.code===Tr.NoDataFromResolver)?this.restoreHistory(L):D instanceof li?this.restoreHistory(L,!0):D instanceof zr&&(this.lastSuccessfulId=D.id,this.currentPageId=this.browserPageId)}setBrowserUrl(D,L){const ae=this.urlSerializer.serialize(D);if(this.location.isCurrentPathEqualTo(ae)||L.extras.replaceUrl){const Pt={...L.extras.state,...this.generateNgRouterState(L.id,this.browserPageId)};this.location.replaceState(ae,"",Pt)}else{const Re={...L.extras.state,...this.generateNgRouterState(L.id,this.browserPageId+1)};this.location.go(ae,"",Re)}}restoreHistory(D,L=!1){if("computed"===this.canceledNavigationResolution){const Re=this.currentPageId-this.browserPageId;0!==Re?this.location.historyGo(Re):this.currentUrlTree===D.finalUrl&&0===Re&&(this.resetState(D),this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(L&&this.resetState(D),this.resetUrlToCurrentUrlTree())}resetState(D){var L;this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,null!==(L=D.finalUrl)&&void 0!==L?L:this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(D,L){return"computed"===this.canceledNavigationResolution?{navigationId:D,\u0275routerPageId:L}:{navigationId:D}}}return(E=T).\u0275fac=(()=>{let O;return function(L){return(O||(O=c.xGo(E)))(L||E)}})(),E.\u0275prov=c.jDH({token:E,factory:E.\u0275fac,providedIn:"root"}),T})();var ci=function(E){return E[E.COMPLETE=0]="COMPLETE",E[E.FAILED=1]="FAILED",E[E.REDIRECTING=2]="REDIRECTING",E}(ci||{});function ri(E,T){E.events.pipe((0,at.p)(O=>O instanceof zr||O instanceof Cr||O instanceof li||O instanceof ai),(0,ge.T)(O=>O instanceof zr||O instanceof ai?ci.COMPLETE:O instanceof Cr&&(O.code===Tr.Redirect||O.code===Tr.SupersededByNewNavigation)?ci.REDIRECTING:ci.FAILED),(0,at.p)(O=>O!==ci.REDIRECTING),(0,Fe.s)(1)).subscribe(()=>{T()})}function Hi(E){throw E}const vi={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Rn={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Kn=(()=>{var E;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 D,L;this.disposed=!1,this.isNgZoneEnabled=!1,this.console=(0,c.WQX)(c.H3F),this.stateManager=(0,c.WQX)(pi),this.options=(0,c.WQX)(zo,{optional:!0})||{},this.pendingTasks=(0,c.WQX)(c.TgB),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=(0,c.WQX)(Ke),this.urlSerializer=(0,c.WQX)(ur),this.location=(0,c.WQX)(Ye.aZ),this.urlHandlingStrategy=(0,c.WQX)(ya),this._events=new Me.B,this.errorHandler=this.options.errorHandler||Hi,this.navigated=!1,this.routeReuseStrategy=(0,c.WQX)(wn),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=null!==(D=null===(L=(0,c.WQX)(va,{optional:!0}))||void 0===L?void 0:L.flat())&&void 0!==D?D:[],this.componentInputBindingEnabled=!!(0,c.WQX)(sn,{optional:!0}),this.eventsSubscription=new St.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:ae=>{this.console.warn(ae)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){const D=this.navigationTransitions.events.subscribe(L=>{try{const ae=this.navigationTransitions.currentTransition,Re=this.navigationTransitions.currentNavigation;if(null!==ae&&null!==Re)if(this.stateManager.handleRouterEvent(L,Re),L instanceof Cr&&L.code!==Tr.Redirect&&L.code!==Tr.SupersededByNewNavigation)this.navigated=!0;else if(L instanceof zr)this.navigated=!0;else if(L instanceof le){const Pt=this.urlHandlingStrategy.merge(L.url,ae.currentRawUrl),fn={info:ae.extras.info,skipLocationChange:ae.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||Qt(ae.source)};this.scheduleNavigation(Pt,xr,null,fn,{resolve:ae.resolve,reject:ae.reject,promise:ae.promise})}(function qi(E){return!(E instanceof he||E instanceof le)})(L)&&this._events.next(L)}catch(ae){this.navigationTransitions.transitionAbortSubject.next(ae)}});this.eventsSubscription.add(D)}resetRootComponentType(D){this.routerState.root.component=D,this.navigationTransitions.rootComponentType=D}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),xr,this.stateManager.restoredState())}setUpLocationChangeListener(){var D;null!==(D=this.nonRouterCurrentEntryChangeSubscription)&&void 0!==D||(this.nonRouterCurrentEntryChangeSubscription=this.stateManager.registerNonRouterCurrentEntryChangeListener((L,ae)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(L,"popstate",ae)},0)}))}navigateToSyncWithBrowser(D,L,ae){const Re={replaceUrl:!0},Pt=null!=ae&&ae.navigationId?ae:null;if(ae){const Bt={...ae};delete Bt.navigationId,delete Bt.\u0275routerPageId,0!==Object.keys(Bt).length&&(Re.state=Bt)}const fn=this.parseUrl(D);this.scheduleNavigation(fn,L,Pt,Re)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(D){this.config=D.map(Ss),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(D,L={}){const{relativeTo:ae,queryParams:Re,fragment:Pt,queryParamsHandling:fn,preserveFragment:Bt}=L,Bn=Bt?this.currentUrlTree.fragment:Pt;let $i,Vr=null;switch(fn){case"merge":Vr={...this.currentUrlTree.queryParams,...Re};break;case"preserve":Vr=this.currentUrlTree.queryParams;break;default:Vr=Re||null}null!==Vr&&(Vr=this.removeEmptyProps(Vr));try{$i=Zr(ae?ae.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof D[0]||!D[0].startsWith("/"))&&(D=[]),$i=this.currentUrlTree.root}return fr($i,D,Vr,null!=Bn?Bn:null)}navigateByUrl(D,L={skipLocationChange:!1}){const ae=dr(D)?D:this.parseUrl(D),Re=this.urlHandlingStrategy.merge(ae,this.rawUrlTree);return this.scheduleNavigation(Re,xr,null,L)}navigate(D,L={skipLocationChange:!1}){return function Di(E){for(let T=0;T(null!=Re&&(L[ae]=Re),L),{})}scheduleNavigation(D,L,ae,Re,Pt){if(this.disposed)return Promise.resolve(!1);let fn,Bt,Bn;Pt?(fn=Pt.resolve,Bt=Pt.reject,Bn=Pt.promise):Bn=new Promise(($i,yi)=>{fn=$i,Bt=yi});const Vr=this.pendingTasks.add();return ri(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(Vr))}),this.navigationTransitions.handleNavigationRequest({source:L,restoredState:ae,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:D,extras:Re,resolve:fn,reject:Bt,promise:Bn,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),Bn.catch($i=>Promise.reject($i))}}return(E=T).\u0275fac=function(D){return new(D||E)},E.\u0275prov=c.jDH({token:E,factory:E.\u0275fac,providedIn:"root"}),T})(),Si=(()=>{var E;class T{constructor(D,L,ae,Re,Pt,fn){var Bt;this.router=D,this.route=L,this.tabIndexAttribute=ae,this.renderer=Re,this.el=Pt,this.locationStrategy=fn,this.href=null,this.commands=null,this.onChanges=new Me.B,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;const Bn=null===(Bt=Pt.nativeElement.tagName)||void 0===Bt?void 0:Bt.toLowerCase();this.isAnchorElement="a"===Bn||"area"===Bn,this.isAnchorElement?this.subscription=D.events.subscribe(Vr=>{Vr instanceof zr&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(D){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",D)}ngOnChanges(D){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(D){null!=D?(this.commands=Array.isArray(D)?D:[D],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(D,L,ae,Re,Pt){const fn=this.urlTree;return!!(null===fn||this.isAnchorElement&&(0!==D||L||ae||Re||Pt||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(fn,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info}),!this.isAnchorElement)}ngOnDestroy(){var D;null===(D=this.subscription)||void 0===D||D.unsubscribe()}updateHref(){var D;const L=this.urlTree;this.href=null!==L&&this.locationStrategy?null===(D=this.locationStrategy)||void 0===D?void 0:D.prepareExternalUrl(this.router.serializeUrl(L)):null;const ae=null===this.href?null:(0,c.n$t)(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",ae)}applyAttributeValue(D,L){const ae=this.renderer,Re=this.el.nativeElement;null!==L?ae.setAttribute(Re,D,L):ae.removeAttribute(Re,D)}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(E=T).\u0275fac=function(D){return new(D||E)(c.rXU(Kn),c.rXU(Ee),c.kS0("tabindex"),c.rXU(c.sFG),c.rXU(c.aKT),c.rXU(Ye.hb))},E.\u0275dir=c.FsC({type:E,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(D,L){1&D&&c.bIt("click",function(Re){return L.onClick(Re.button,Re.ctrlKey,Re.shiftKey,Re.altKey,Re.metaKey)}),2&D&&c.BMQ("target",L.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$]}),T})();class _i{}let Ki=(()=>{var E;class T{preload(D,L){return L().pipe(on(()=>(0,U.of)(null)))}}return(E=T).\u0275fac=function(D){return new(D||E)},E.\u0275prov=c.jDH({token:E,factory:E.\u0275fac,providedIn:"root"}),T})(),Br=(()=>{var E;class T{constructor(D,L,ae,Re,Pt){this.router=D,this.injector=ae,this.preloadingStrategy=Re,this.loader=Pt}setUpPreloading(){this.subscription=this.router.events.pipe((0,at.p)(D=>D instanceof zr),(0,Nt.H)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(D,L){const ae=[];for(const Bt of L){var Re,Pt;Bt.providers&&!Bt._injector&&(Bt._injector=(0,c.Ol2)(Bt.providers,D,`Route: ${Bt.path}`));const Bn=null!==(Re=Bt._injector)&&void 0!==Re?Re:D,Vr=null!==(Pt=Bt._loadedInjector)&&void 0!==Pt?Pt:Bn;var fn;(Bt.loadChildren&&!Bt._loadedRoutes&&void 0===Bt.canLoad||Bt.loadComponent&&!Bt._loadedComponent)&&ae.push(this.preloadConfig(Bn,Bt)),(Bt.children||Bt._loadedRoutes)&&ae.push(this.processRoutes(Vr,null!==(fn=Bt.children)&&void 0!==fn?fn:Bt._loadedRoutes))}return(0,Oe.H)(ae).pipe((0,dn.U)())}preloadConfig(D,L){return this.preloadingStrategy.preload(L,()=>{let ae;ae=L.loadChildren&&void 0===L.canLoad?this.loader.loadChildren(D,L):(0,U.of)(null);const Re=ae.pipe((0,Rt.Z)(Pt=>{var fn;return null===Pt?(0,U.of)(void 0):(L._loadedRoutes=Pt.routes,L._loadedInjector=Pt.injector,this.processRoutes(null!==(fn=Pt.injector)&&void 0!==fn?fn:D,Pt.routes))}));if(L.loadComponent&&!L._loadedComponent){const Pt=this.loader.loadComponent(L);return(0,Oe.H)([Re,Pt]).pipe((0,dn.U)())}return Re})}}return(E=T).\u0275fac=function(D){return new(D||E)(c.KVO(Kn),c.KVO(c.Ql9),c.KVO(c.uvJ),c.KVO(_i),c.KVO(_a))},E.\u0275prov=c.jDH({token:E,factory:E.\u0275fac,providedIn:"root"}),T})();const Xs=new c.nKC("");let vc=(()=>{var E;class T{constructor(D,L,ae,Re,Pt={}){this.urlSerializer=D,this.transitions=L,this.viewportScroller=ae,this.zone=Re,this.options=Pt,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},this.environmentInjector=(0,c.WQX)(c.uvJ),Pt.scrollPositionRestoration||(Pt.scrollPositionRestoration="disabled"),Pt.anchorScrolling||(Pt.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(D=>{D instanceof Or?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=D.navigationTrigger,this.restoredId=D.restoredState?D.restoredState.navigationId:0):D instanceof zr?(this.lastId=D.id,this.scheduleScrollEvent(D,this.urlSerializer.parse(D.urlAfterRedirects).fragment)):D instanceof ai&&D.code===Gn.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(D,this.urlSerializer.parse(D.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(D=>{D instanceof bt&&(D.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(D.position):D.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(D.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(D,L){var ae=this;this.zone.runOutsideAngular((0,h.A)(function*(){yield new Promise(Re=>{setTimeout(()=>{Re()}),(0,c.mal)(()=>{Re()},{injector:ae.environmentInjector})}),ae.zone.run(()=>{ae.transitions.events.next(new bt(D,"popstate"===ae.lastSource?ae.store[ae.restoredId]:null,L))})}))}ngOnDestroy(){var D,L;null===(D=this.routerEventsSubscription)||void 0===D||D.unsubscribe(),null===(L=this.scrollEventsSubscription)||void 0===L||L.unsubscribe()}}return(E=T).\u0275fac=function(D){c.QTQ()},E.\u0275prov=c.jDH({token:E,factory:E.\u0275fac}),T})();function Co(E,T){return{\u0275kind:E,\u0275providers:T}}function Mi(){const E=(0,c.WQX)(c.zZn);return T=>{var O,D;const L=E.get(c.o8S);if(T!==L.components[0])return;const ae=E.get(Kn),Re=E.get(Qs);1===E.get(cs)&&ae.initialNavigation(),null===(O=E.get(Wo,null,c.$GK.Optional))||void 0===O||O.setUpPreloading(),null===(D=E.get(Xs,null,c.$GK.Optional))||void 0===D||D.init(),ae.resetRootComponentType(L.componentTypes[0]),Re.closed||(Re.next(),Re.complete(),Re.unsubscribe())}}const Qs=new c.nKC("",{factory:()=>new Me.B}),cs=new c.nKC("",{providedIn:"root",factory:()=>1}),Wo=new c.nKC("");function pl(E){return Co(0,[{provide:Wo,useExisting:Br},{provide:_i,useExisting:E}])}function Do(E){return Co(9,[{provide:$,useValue:F},{provide:Be,useValue:{skipNextTransition:!(null==E||!E.skipInitialTransition),...E}}])}const rs=new c.nKC("ROUTER_FORROOT_GUARD"),Ys=[Ye.aZ,{provide:ur,useClass:Pr},Kn,Ve,{provide:Ee,useFactory:function Gi(E){return E.routerState.root},deps:[Kn]},_a,[]];let ds=(()=>{var E;class T{constructor(D){}static forRoot(D,L){return{ngModule:T,providers:[Ys,[],{provide:va,multi:!0,useValue:D},{provide:rs,useFactory:Aa,deps:[[Kn,new c.Xx1,new c.kdw]]},{provide:zo,useValue:L||{}},null!=L&&L.useHash?{provide:Ye.hb,useClass:Ye.fw}:{provide:Ye.hb,useClass:Ye.Sm},{provide:Xs,useFactory:()=>{const E=(0,c.WQX)(Ye.Xr),T=(0,c.WQX)(c.SKi),O=(0,c.WQX)(zo),D=(0,c.WQX)(Ke),L=(0,c.WQX)(ur);return O.scrollOffset&&E.setOffset(O.scrollOffset),new vc(L,D,E,T,O)}},null!=L&&L.preloadingStrategy?pl(L.preloadingStrategy).\u0275providers:[],null!=L&&L.initialNavigation?Mu(L):[],null!=L&&L.bindToComponentInputs?Co(8,[cn,{provide:sn,useExisting:cn}]).\u0275providers:[],null!=L&&L.enableViewTransitions?Do().\u0275providers:[],[{provide:Ca,useFactory:Mi},{provide:c.iLQ,multi:!0,useExisting:Ca}]]}}static forChild(D){return{ngModule:T,providers:[{provide:va,multi:!0,useValue:D}]}}}return(E=T).\u0275fac=function(D){return new(D||E)(c.KVO(rs,8))},E.\u0275mod=c.$C({type:E}),E.\u0275inj=c.G2t({}),T})();function Aa(E){return"guarded"}function Mu(E){return["disabled"===E.initialNavigation?Co(3,[{provide:c.hnV,multi:!0,useFactory:()=>{const T=(0,c.WQX)(Kn);return()=>{T.setUpLocationChangeListener()}}},{provide:cs,useValue:2}]).\u0275providers:[],"enabledBlocking"===E.initialNavigation?Co(2,[{provide:cs,useValue:0},{provide:c.hnV,multi:!0,deps:[c.zZn],useFactory:T=>{const O=T.get(Ye.hj,Promise.resolve());return()=>O.then(()=>new Promise(D=>{const L=T.get(Kn),ae=T.get(Qs);ri(L,()=>{D(!0)}),T.get(Ke).afterPreactivation=()=>(D(!0),ae.closed?(0,U.of)(void 0):ae),L.initialNavigation()}))}}]).\u0275providers:[]]}const Ca=new c.nKC("")},7852:(Tn,gt,S)=>{"use strict";S.d(gt,{MF:()=>Ai,j6:()=>Dr,xZ:()=>mr,om:()=>Qn,Sx:()=>rt,Dk:()=>Mt,Wp:()=>Qr,KO:()=>ye});var h=S(467),c=S(1362),Z=S(8041),Oe=S(1076);const U=(Ut,te)=>te.some(ee=>Ut instanceof ee);let ue,oe;const Se=new WeakMap,Ce=new WeakMap,Qe=new WeakMap,Ze=new WeakMap,qe=new WeakMap;let St={get(Ut,te,ee){if(Ut instanceof IDBTransaction){if("done"===te)return Ce.get(Ut);if("objectStoreNames"===te)return Ut.objectStoreNames||Qe.get(Ut);if("store"===te)return ee.objectStoreNames[1]?void 0:ee.objectStore(ee.objectStoreNames[0])}return mt(Ut[te])},set:(Ut,te,ee)=>(Ut[te]=ee,!0),has:(Ut,te)=>Ut instanceof IDBTransaction&&("done"===te||"store"===te)||te in Ut};function yt(Ut){return"function"==typeof Ut?function Tt(Ut){return Ut!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?function Je(){return oe||(oe=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}().includes(Ut)?function(...te){return Ut.apply(Me(this),te),mt(Se.get(this))}:function(...te){return mt(Ut.apply(Me(this),te))}:function(te,...ee){const ze=Ut.call(Me(this),te,...ee);return Qe.set(ze,te.sort?te.sort():[te]),mt(ze)}}(Ut):(Ut instanceof IDBTransaction&&function Dt(Ut){if(Ce.has(Ut))return;const te=new Promise((ee,ze)=>{const M=()=>{Ut.removeEventListener("complete",x),Ut.removeEventListener("error",ne),Ut.removeEventListener("abort",ne)},x=()=>{ee(),M()},ne=()=>{ze(Ut.error||new DOMException("AbortError","AbortError")),M()};Ut.addEventListener("complete",x),Ut.addEventListener("error",ne),Ut.addEventListener("abort",ne)});Ce.set(Ut,te)}(Ut),U(Ut,function Xe(){return ue||(ue=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}())?new Proxy(Ut,St):Ut)}function mt(Ut){if(Ut instanceof IDBRequest)return function ht(Ut){const te=new Promise((ee,ze)=>{const M=()=>{Ut.removeEventListener("success",x),Ut.removeEventListener("error",ne)},x=()=>{ee(mt(Ut.result)),M()},ne=()=>{ze(Ut.error),M()};Ut.addEventListener("success",x),Ut.addEventListener("error",ne)});return te.then(ee=>{ee instanceof IDBCursor&&Se.set(ee,Ut)}).catch(()=>{}),qe.set(te,Ut),te}(Ut);if(Ze.has(Ut))return Ze.get(Ut);const te=yt(Ut);return te!==Ut&&(Ze.set(Ut,te),qe.set(te,Ut)),te}const Me=Ut=>qe.get(Ut),Ue=["get","getKey","getAll","getAllKeys","count"],Fe=["put","add","delete","clear"],xe=new Map;function at(Ut,te){if(!(Ut instanceof IDBDatabase)||te in Ut||"string"!=typeof te)return;if(xe.get(te))return xe.get(te);const ee=te.replace(/FromIndex$/,""),ze=te!==ee,M=Fe.includes(ee);if(!(ee in(ze?IDBIndex:IDBObjectStore).prototype)||!M&&!Ue.includes(ee))return;const x=function(){var ne=(0,h.A)(function*(Te,...Ge){const At=this.transaction(Te,M?"readwrite":"readonly");let Jt=At.store;return ze&&(Jt=Jt.index(Ge.shift())),(yield Promise.all([Jt[ee](...Ge),M&&At.done]))[0]});return function(Ge){return ne.apply(this,arguments)}}();return xe.set(te,x),x}!function _t(Ut){St=Ut(St)}(Ut=>({...Ut,get:(te,ee,ze)=>at(te,ee)||Ut.get(te,ee,ze),has:(te,ee)=>!!at(te,ee)||Ut.has(te,ee)}));class Rt{constructor(te){this.container=te}getPlatformInfoString(){return this.container.getProviders().map(ee=>{if(function vn(Ut){const te=Ut.getComponent();return"VERSION"===(null==te?void 0:te.type)}(ee)){const ze=ee.getImmediate();return`${ze.library}/${ze.version}`}return null}).filter(ee=>ee).join(" ")}}const Nt="@firebase/app",on=new Z.Vy("@firebase/app"),Mn="[DEFAULT]",xn={[Nt]:"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"},mn=new Map,en=new Map,Er=new Map;function Ir(Ut,te){try{Ut.container.addComponent(te)}catch(ee){on.debug(`Component ${te.name} failed to register with FirebaseApp ${Ut.name}`,ee)}}function Qn(Ut){const te=Ut.name;if(Er.has(te))return on.debug(`There were multiple attempts to register component ${te}.`),!1;Er.set(te,Ut);for(const ee of mn.values())Ir(ee,Ut);for(const ee of en.values())Ir(ee,Ut);return!0}function Dr(Ut,te){const ee=Ut.container.getProvider("heartbeat").getImmediate({optional:!0});return ee&&ee.triggerHeartbeat(),Ut.container.getProvider(te)}function mr(Ut){return void 0!==Ut.settings}const cr=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 kr{constructor(te,ee,ze){this._isDeleted=!1,this._options=Object.assign({},te),this._config=Object.assign({},ee),this._name=ee.name,this._automaticDataCollectionEnabled=ee.automaticDataCollectionEnabled,this._container=ze,this.container.addComponent(new c.uA("app",()=>this,"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(te){this.checkDestroyed(),this._automaticDataCollectionEnabled=te}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(te){this._isDeleted=te}checkDestroyed(){if(this.isDeleted)throw cr.create("app-deleted",{appName:this._name})}}const Ai="10.12.2";function Qr(Ut,te={}){let ee=Ut;"object"!=typeof te&&(te={name:te});const ze=Object.assign({name:Mn,automaticDataCollectionEnabled:!1},te),M=ze.name;if("string"!=typeof M||!M)throw cr.create("bad-app-name",{appName:String(M)});if(ee||(ee=(0,Oe.T9)()),!ee)throw cr.create("no-options");const x=mn.get(M);if(x){if((0,Oe.bD)(ee,x.options)&&(0,Oe.bD)(ze,x.config))return x;throw cr.create("duplicate-app",{appName:M})}const ne=new c.h1(M);for(const Ge of Er.values())ne.addComponent(Ge);const Te=new kr(ee,ze,ne);return mn.set(M,Te),Te}function rt(Ut=Mn){const te=mn.get(Ut);if(!te&&Ut===Mn&&(0,Oe.T9)())return Qr();if(!te)throw cr.create("no-app",{appName:Ut});return te}function Mt(){return Array.from(mn.values())}function ye(Ut,te,ee){var ze;let M=null!==(ze=xn[Ut])&&void 0!==ze?ze:Ut;ee&&(M+=`-${ee}`);const x=M.match(/\s|\//),ne=te.match(/\s|\//);if(x||ne){const Te=[`Unable to register library "${M}" with version "${te}":`];return x&&Te.push(`library name "${M}" contains illegal characters (whitespace or "/")`),x&&ne&&Te.push("and"),ne&&Te.push(`version name "${te}" contains illegal characters (whitespace or "/")`),void on.warn(Te.join(" "))}Qn(new c.uA(`${M}-version`,()=>({library:M,version:te}),"VERSION"))}const ie="firebase-heartbeat-database",ct=1,lt="firebase-heartbeat-store";let Gt=null;function tn(){return Gt||(Gt=function Ye(Ut,te,{blocked:ee,upgrade:ze,blocking:M,terminated:x}={}){const ne=indexedDB.open(Ut,te),Te=mt(ne);return ze&&ne.addEventListener("upgradeneeded",Ge=>{ze(mt(ne.result),Ge.oldVersion,Ge.newVersion,mt(ne.transaction),Ge)}),ee&&ne.addEventListener("blocked",Ge=>ee(Ge.oldVersion,Ge.newVersion,Ge)),Te.then(Ge=>{x&&Ge.addEventListener("close",()=>x()),M&&Ge.addEventListener("versionchange",At=>M(At.oldVersion,At.newVersion,At))}).catch(()=>{}),Te}(ie,ct,{upgrade:(Ut,te)=>{if(0===te)try{Ut.createObjectStore(lt)}catch(ee){console.warn(ee)}}}).catch(Ut=>{throw cr.create("idb-open",{originalErrorMessage:Ut.message})})),Gt}function qn(){return(qn=(0,h.A)(function*(Ut){try{const ee=(yield tn()).transaction(lt),ze=yield ee.objectStore(lt).get(tr(Ut));return yield ee.done,ze}catch(te){if(te instanceof Oe.g)on.warn(te.message);else{const ee=cr.create("idb-get",{originalErrorMessage:null==te?void 0:te.message});on.warn(ee.message)}}})).apply(this,arguments)}function hn(Ut,te){return Cn.apply(this,arguments)}function Cn(){return(Cn=(0,h.A)(function*(Ut,te){try{const ze=(yield tn()).transaction(lt,"readwrite");yield ze.objectStore(lt).put(te,tr(Ut)),yield ze.done}catch(ee){if(ee instanceof Oe.g)on.warn(ee.message);else{const ze=cr.create("idb-set",{originalErrorMessage:null==ee?void 0:ee.message});on.warn(ze.message)}}})).apply(this,arguments)}function tr(Ut){return`${Ut.name}!${Ut.options.appId}`}class $r{constructor(te){this.container=te,this._heartbeatsCache=null;const ee=this.container.getProvider("app").getImmediate();this._storage=new Ri(ee),this._heartbeatsCachePromise=this._storage.read().then(ze=>(this._heartbeatsCache=ze,ze))}triggerHeartbeat(){var te=this;return(0,h.A)(function*(){var ee,ze;const x=te.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),ne=Zr();if((null!=(null===(ee=te._heartbeatsCache)||void 0===ee?void 0:ee.heartbeats)||(te._heartbeatsCache=yield te._heartbeatsCachePromise,null!=(null===(ze=te._heartbeatsCache)||void 0===ze?void 0:ze.heartbeats)))&&te._heartbeatsCache.lastSentHeartbeatDate!==ne&&!te._heartbeatsCache.heartbeats.some(Te=>Te.date===ne))return te._heartbeatsCache.heartbeats.push({date:ne,agent:x}),te._heartbeatsCache.heartbeats=te._heartbeatsCache.heartbeats.filter(Te=>{const Ge=new Date(Te.date).valueOf();return Date.now()-Ge<=2592e6}),te._storage.overwrite(te._heartbeatsCache)})()}getHeartbeatsHeader(){var te=this;return(0,h.A)(function*(){var ee;if(null===te._heartbeatsCache&&(yield te._heartbeatsCachePromise),null==(null===(ee=te._heartbeatsCache)||void 0===ee?void 0:ee.heartbeats)||0===te._heartbeatsCache.heartbeats.length)return"";const ze=Zr(),{heartbeatsToSend:M,unsentEntries:x}=function fr(Ut,te=1024){const ee=[];let ze=Ut.slice();for(const M of Ut){const x=ee.find(ne=>ne.agent===M.agent);if(x){if(x.dates.push(M.date),gi(ee)>te){x.dates.pop();break}}else if(ee.push({agent:M.agent,dates:[M.date]}),gi(ee)>te){ee.pop();break}ze=ze.slice(1)}return{heartbeatsToSend:ee,unsentEntries:ze}}(te._heartbeatsCache.heartbeats),ne=(0,Oe.Uj)(JSON.stringify({version:2,heartbeats:M}));return te._heartbeatsCache.lastSentHeartbeatDate=ze,x.length>0?(te._heartbeatsCache.heartbeats=x,yield te._storage.overwrite(te._heartbeatsCache)):(te._heartbeatsCache.heartbeats=[],te._storage.overwrite(te._heartbeatsCache)),ne})()}}function Zr(){return(new Date).toISOString().substring(0,10)}class Ri{constructor(te){this.app=te,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}runIndexedDBEnvironmentCheck(){return(0,h.A)(function*(){return!!(0,Oe.zW)()&&(0,Oe.eX)().then(()=>!0).catch(()=>!1)})()}read(){var te=this;return(0,h.A)(function*(){if(yield te._canUseIndexedDBPromise){const ze=yield function _n(Ut){return qn.apply(this,arguments)}(te.app);return null!=ze&&ze.heartbeats?ze:{heartbeats:[]}}return{heartbeats:[]}})()}overwrite(te){var ee=this;return(0,h.A)(function*(){var ze;if(yield ee._canUseIndexedDBPromise){const x=yield ee.read();return hn(ee.app,{lastSentHeartbeatDate:null!==(ze=te.lastSentHeartbeatDate)&&void 0!==ze?ze:x.lastSentHeartbeatDate,heartbeats:te.heartbeats})}})()}add(te){var ee=this;return(0,h.A)(function*(){var ze;if(yield ee._canUseIndexedDBPromise){const x=yield ee.read();return hn(ee.app,{lastSentHeartbeatDate:null!==(ze=te.lastSentHeartbeatDate)&&void 0!==ze?ze:x.lastSentHeartbeatDate,heartbeats:[...x.heartbeats,...te.heartbeats]})}})()}}function gi(Ut){return(0,Oe.Uj)(JSON.stringify({version:2,heartbeats:Ut})).length}!function pr(Ut){Qn(new c.uA("platform-logger",te=>new Rt(te),"PRIVATE")),Qn(new c.uA("heartbeat",te=>new $r(te),"PRIVATE")),ye(Nt,"0.10.5",Ut),ye(Nt,"0.10.5","esm2017"),ye("fire-js","")}("")},1362:(Tn,gt,S)=>{"use strict";S.d(gt,{h1:()=>Xe,uA:()=>Z});var h=S(467),c=S(1076);class Z{constructor(Se,Ce,Qe){this.name=Se,this.instanceFactory=Ce,this.type=Qe,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(Se){return this.instantiationMode=Se,this}setMultipleInstances(Se){return this.multipleInstances=Se,this}setServiceProps(Se){return this.serviceProps=Se,this}setInstanceCreatedCallback(Se){return this.onInstanceCreated=Se,this}}const Oe="[DEFAULT]";class U{constructor(Se,Ce){this.name=Se,this.container=Ce,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(Se){const Ce=this.normalizeInstanceIdentifier(Se);if(!this.instancesDeferred.has(Ce)){const Qe=new c.cY;if(this.instancesDeferred.set(Ce,Qe),this.isInitialized(Ce)||this.shouldAutoInitialize())try{const Ze=this.getOrInitializeService({instanceIdentifier:Ce});Ze&&Qe.resolve(Ze)}catch{}}return this.instancesDeferred.get(Ce).promise}getImmediate(Se){var Ce;const Qe=this.normalizeInstanceIdentifier(null==Se?void 0:Se.identifier),Ze=null!==(Ce=null==Se?void 0:Se.optional)&&void 0!==Ce&&Ce;if(!this.isInitialized(Qe)&&!this.shouldAutoInitialize()){if(Ze)return null;throw Error(`Service ${this.name} is not available`)}try{return this.getOrInitializeService({instanceIdentifier:Qe})}catch(qe){if(Ze)return null;throw qe}}getComponent(){return this.component}setComponent(Se){if(Se.name!==this.name)throw Error(`Mismatching Component ${Se.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=Se,this.shouldAutoInitialize()){if(function oe(Je){return"EAGER"===Je.instantiationMode}(Se))try{this.getOrInitializeService({instanceIdentifier:Oe})}catch{}for(const[Ce,Qe]of this.instancesDeferred.entries()){const Ze=this.normalizeInstanceIdentifier(Ce);try{const qe=this.getOrInitializeService({instanceIdentifier:Ze});Qe.resolve(qe)}catch{}}}}clearInstance(Se=Oe){this.instancesDeferred.delete(Se),this.instancesOptions.delete(Se),this.instances.delete(Se)}delete(){var Se=this;return(0,h.A)(function*(){const Ce=Array.from(Se.instances.values());yield Promise.all([...Ce.filter(Qe=>"INTERNAL"in Qe).map(Qe=>Qe.INTERNAL.delete()),...Ce.filter(Qe=>"_delete"in Qe).map(Qe=>Qe._delete())])})()}isComponentSet(){return null!=this.component}isInitialized(Se=Oe){return this.instances.has(Se)}getOptions(Se=Oe){return this.instancesOptions.get(Se)||{}}initialize(Se={}){const{options:Ce={}}=Se,Qe=this.normalizeInstanceIdentifier(Se.instanceIdentifier);if(this.isInitialized(Qe))throw Error(`${this.name}(${Qe}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);const Ze=this.getOrInitializeService({instanceIdentifier:Qe,options:Ce});for(const[qe,ht]of this.instancesDeferred.entries())Qe===this.normalizeInstanceIdentifier(qe)&&ht.resolve(Ze);return Ze}onInit(Se,Ce){var Qe;const Ze=this.normalizeInstanceIdentifier(Ce),qe=null!==(Qe=this.onInitCallbacks.get(Ze))&&void 0!==Qe?Qe:new Set;qe.add(Se),this.onInitCallbacks.set(Ze,qe);const ht=this.instances.get(Ze);return ht&&Se(ht,Ze),()=>{qe.delete(Se)}}invokeOnInitCallbacks(Se,Ce){const Qe=this.onInitCallbacks.get(Ce);if(Qe)for(const Ze of Qe)try{Ze(Se,Ce)}catch{}}getOrInitializeService({instanceIdentifier:Se,options:Ce={}}){let Qe=this.instances.get(Se);if(!Qe&&this.component&&(Qe=this.component.instanceFactory(this.container,{instanceIdentifier:(Je=Se,Je===Oe?void 0:Je),options:Ce}),this.instances.set(Se,Qe),this.instancesOptions.set(Se,Ce),this.invokeOnInitCallbacks(Qe,Se),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,Se,Qe)}catch{}var Je;return Qe||null}normalizeInstanceIdentifier(Se=Oe){return this.component?this.component.multipleInstances?Se:Oe:Se}shouldAutoInitialize(){return!!this.component&&"EXPLICIT"!==this.component.instantiationMode}}class Xe{constructor(Se){this.name=Se,this.providers=new Map}addComponent(Se){const Ce=this.getProvider(Se.name);if(Ce.isComponentSet())throw new Error(`Component ${Se.name} has already been registered with ${this.name}`);Ce.setComponent(Se)}addOrOverwriteComponent(Se){this.getProvider(Se.name).isComponentSet()&&this.providers.delete(Se.name),this.addComponent(Se)}getProvider(Se){if(this.providers.has(Se))return this.providers.get(Se);const Ce=new U(Se,this);return this.providers.set(Se,Ce),Ce}getProviders(){return Array.from(this.providers.values())}}},8041:(Tn,gt,S)=>{"use strict";S.d(gt,{$b:()=>c,Vy:()=>oe});const h=[];var c=function(Se){return Se[Se.DEBUG=0]="DEBUG",Se[Se.VERBOSE=1]="VERBOSE",Se[Se.INFO=2]="INFO",Se[Se.WARN=3]="WARN",Se[Se.ERROR=4]="ERROR",Se[Se.SILENT=5]="SILENT",Se}(c||{});const Z={debug:c.DEBUG,verbose:c.VERBOSE,info:c.INFO,warn:c.WARN,error:c.ERROR,silent:c.SILENT},Oe=c.INFO,U={[c.DEBUG]:"log",[c.VERBOSE]:"log",[c.INFO]:"info",[c.WARN]:"warn",[c.ERROR]:"error"},ue=(Se,Ce,...Qe)=>{if(Ce{"use strict";S.d(gt,{Yq:()=>nt,TS:()=>er,sR:()=>yr,el:()=>tn,Sb:()=>mr,QE:()=>tr,CF:()=>Dr,Rg:()=>ye,p4:()=>Ar,jM:()=>pr,_t:()=>ve,q9:()=>rn,Kb:()=>Ut,CE:()=>_n,pF:()=>qn,fL:()=>$r,YV:()=>ct,er:()=>dr,z3:()=>Zr});var h=S(467),c=S(9842),Z=S(4438),Oe=S(7650),U=S(177),ue=S(5531),oe=S(4442);var Rt=S(1413),vn=S(3726),Nt=S(4412),tt=S(4572),on=S(7673),dt=S(1635),we=S(5964),H=S(5558),X=S(3294),fe=S(4341);const se=["tabsInner"];class ve{constructor(ee){(0,c.A)(this,"menuController",void 0),this.menuController=ee}open(ee){return this.menuController.open(ee)}close(ee){return this.menuController.close(ee)}toggle(ee){return this.menuController.toggle(ee)}enable(ee,ze){return this.menuController.enable(ee,ze)}swipeGesture(ee,ze){return this.menuController.swipeGesture(ee,ze)}isOpen(ee){return this.menuController.isOpen(ee)}isEnabled(ee){return this.menuController.isEnabled(ee)}get(ee){return this.menuController.get(ee)}getOpen(){return this.menuController.getOpen()}getMenus(){return this.menuController.getMenus()}registerAnimation(ee,ze){return this.menuController.registerAnimation(ee,ze)}isAnimating(){return this.menuController.isAnimating()}_getOpenSync(){return this.menuController._getOpenSync()}_createAnimation(ee,ze){return this.menuController._createAnimation(ee,ze)}_register(ee){return this.menuController._register(ee)}_unregister(ee){return this.menuController._unregister(ee)}_setOpen(ee,ze,M){return this.menuController._setOpen(ee,ze,M)}}let Wt=(()=>{var te;class ee{constructor(M,x){(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 Rt.B),(0,c.A)(this,"keyboardDidShow",new Rt.B),(0,c.A)(this,"keyboardDidHide",new Rt.B),(0,c.A)(this,"pause",new Rt.B),(0,c.A)(this,"resume",new Rt.B),(0,c.A)(this,"resize",new Rt.B),this.doc=M,x.run(()=>{var ne;let Te;this.win=M.defaultView,this.backButton.subscribeWithPriority=function(Ge,At){return this.subscribe(Jt=>Jt.register(Ge,ln=>x.run(()=>At(ln))))},Kt(this.pause,M,"pause",x),Kt(this.resume,M,"resume",x),Kt(this.backButton,M,"ionBackButton",x),Kt(this.resize,this.win,"resize",x),Kt(this.keyboardDidShow,this.win,"ionKeyboardDidShow",x),Kt(this.keyboardDidHide,this.win,"ionKeyboardDidHide",x),this._readyPromise=new Promise(Ge=>{Te=Ge}),null!==(ne=this.win)&&void 0!==ne&&ne.cordova?M.addEventListener("deviceready",()=>{Te("cordova")},{once:!0}):Te("dom")})}is(M){return(0,ue.a)(this.win,M)}platforms(){return(0,ue.g)(this.win)}ready(){return this._readyPromise}get isRTL(){return"rtl"===this.doc.dir}getQueryParam(M){return dn(this.win.location.href,M)}isLandscape(){return!this.isPortrait()}isPortrait(){var M,x;return null===(M=(x=this.win).matchMedia)||void 0===M?void 0:M.call(x,"(orientation: portrait)").matches}testUserAgent(M){const x=this.win.navigator;return!!(null!=x&&x.userAgent&&x.userAgent.indexOf(M)>=0)}url(){return this.win.location.href}width(){return this.win.innerWidth}height(){return this.win.innerHeight}}return te=ee,(0,c.A)(ee,"\u0275fac",function(M){return new(M||te)(Z.KVO(U.qQ),Z.KVO(Z.SKi))}),(0,c.A)(ee,"\u0275prov",Z.jDH({token:te,factory:te.\u0275fac,providedIn:"root"})),ee})();const dn=(te,ee)=>{ee=ee.replace(/[[\]\\]/g,"\\$&");const M=new RegExp("[\\?&]"+ee+"=([^&#]*)").exec(te);return M?decodeURIComponent(M[1].replace(/\+/g," ")):null},Kt=(te,ee,ze,M)=>{ee&&ee.addEventListener(ze,x=>{M.run(()=>{te.next(null!=x?x.detail:void 0)})})};let rn=(()=>{var te;class ee{constructor(M,x,ne,Te){(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",Zn),(0,c.A)(this,"animated",nr),(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=x,this.serializer=ne,this.router=Te,Te&&Te.events.subscribe(Ge=>{if(Ge instanceof Oe.Z){const At=Ge.restoredState?Ge.restoredState.navigationId:Ge.id;this.guessDirection=this.guessAnimation=At{this.pop(),Ge()})}navigateForward(M,x={}){return this.setDirection("forward",x.animated,x.animationDirection,x.animation),this.navigate(M,x)}navigateBack(M,x={}){return this.setDirection("back",x.animated,x.animationDirection,x.animation),this.navigate(M,x)}navigateRoot(M,x={}){return this.setDirection("root",x.animated,x.animationDirection,x.animation),this.navigate(M,x)}back(M={animated:!0,animationDirection:"back"}){return this.setDirection("back",M.animated,M.animationDirection,M.animation),this.location.back()}pop(){var M=this;return(0,h.A)(function*(){let x=M.topOutlet;for(;x;){if(yield x.pop())return!0;x=x.parentOutlet}return!1})()}setDirection(M,x,ne,Te){this.direction=M,this.animated=Ln(M,x,ne),this.animationBuilder=Te}setTopOutlet(M){this.topOutlet=M}consumeTransition(){let x,M="root";const ne=this.animationBuilder;return"auto"===this.direction?(M=this.guessDirection,x=this.guessAnimation):(x=this.animated,M=this.direction),this.direction=Zn,this.animated=nr,this.animationBuilder=void 0,{direction:M,animation:x,animationBuilder:ne}}navigate(M,x){if(Array.isArray(M))return this.router.navigate(M,x);{const ne=this.serializer.parse(M.toString());return void 0!==x.queryParams&&(ne.queryParams={...x.queryParams}),void 0!==x.fragment&&(ne.fragment=x.fragment),this.router.navigateByUrl(ne,x)}}}return te=ee,(0,c.A)(ee,"\u0275fac",function(M){return new(M||te)(Z.KVO(Wt),Z.KVO(U.aZ),Z.KVO(Oe.Sd),Z.KVO(Oe.Ix,8))}),(0,c.A)(ee,"\u0275prov",Z.jDH({token:te,factory:te.\u0275fac,providedIn:"root"})),ee})();const Ln=(te,ee,ze)=>{if(!1!==ee){if(void 0!==ze)return ze;if("forward"===te||"back"===te)return te;if("root"===te&&!0===ee)return"forward"}},Zn="auto",nr=void 0;let er=(()=>{var te;class ee{get(M,x){const ne=rr();return ne?ne.get(M,x):null}getBoolean(M,x){const ne=rr();return!!ne&&ne.getBoolean(M,x)}getNumber(M,x){const ne=rr();return ne?ne.getNumber(M,x):0}}return te=ee,(0,c.A)(ee,"\u0275fac",function(M){return new(M||te)}),(0,c.A)(ee,"\u0275prov",Z.jDH({token:te,factory:te.\u0275fac,providedIn:"root"})),ee})();const yr=new Z.nKC("USERCONFIG"),rr=()=>{if(typeof window<"u"){const te=window.Ionic;if(null!=te&&te.config)return te.config}return null};class ir{constructor(ee={}){(0,c.A)(this,"data",void 0),this.data=ee,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(ee){return this.data[ee]}}let nt=(()=>{var te;class ee{constructor(){(0,c.A)(this,"zone",(0,Z.WQX)(Z.SKi)),(0,c.A)(this,"applicationRef",(0,Z.WQX)(Z.o8S)),(0,c.A)(this,"config",(0,Z.WQX)(yr))}create(M,x,ne){var Te;return new Ot(M,x,this.applicationRef,this.zone,ne,null!==(Te=this.config.useSetInputAPI)&&void 0!==Te&&Te)}}return te=ee,(0,c.A)(ee,"\u0275fac",function(M){return new(M||te)}),(0,c.A)(ee,"\u0275prov",Z.jDH({token:te,factory:te.\u0275fac})),ee})();class Ot{constructor(ee,ze,M,x,ne,Te){(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=ee,this.injector=ze,this.applicationRef=M,this.zone=x,this.elementReferenceKey=ne,this.enableSignalsSupport=Te}attachViewToDom(ee,ze,M,x){return this.zone.run(()=>new Promise(ne=>{const Te={...M};void 0!==this.elementReferenceKey&&(Te[this.elementReferenceKey]=ee),ne(zt(this.zone,this.environmentInjector,this.injector,this.applicationRef,this.elRefMap,this.elEventsMap,ee,ze,Te,x,this.elementReferenceKey,this.enableSignalsSupport))}))}removeViewFromDom(ee,ze){return this.zone.run(()=>new Promise(M=>{const x=this.elRefMap.get(ze);if(x){x.destroy(),this.elRefMap.delete(ze);const ne=this.elEventsMap.get(ze);ne&&(ne(),this.elEventsMap.delete(ze))}M()}))}}const zt=(te,ee,ze,M,x,ne,Te,Ge,At,Jt,ln,or)=>{const Un=Z.zZn.create({providers:Mn(At),parent:ze}),xr=(0,Z.a0P)(Ge,{environmentInjector:ee,elementInjector:Un}),On=xr.instance,Fr=xr.location.nativeElement;if(At)if(ln&&void 0!==On[ln]&&console.error(`[Ionic Error]: ${ln} is a reserved property when using ${Te.tagName.toLowerCase()}. Rename or remove the "${ln}" property from ${Ge.name}.`),!0===or&&void 0!==xr.setInput){const{modal:zr,popover:Tr,...Gn}=At;for(const Cr in Gn)xr.setInput(Cr,Gn[Cr]);void 0!==zr&&Object.assign(On,{modal:zr}),void 0!==Tr&&Object.assign(On,{popover:Tr})}else Object.assign(On,At);if(Jt)for(const zr of Jt)Fr.classList.add(zr);const Or=gn(te,On,Fr);return Te.appendChild(Fr),M.attachView(xr.hostView),x.set(Fr,xr),ne.set(Fr,Or),Fr},pn=[oe.L,oe.a,oe.b,oe.c,oe.d],gn=(te,ee,ze)=>te.run(()=>{const M=pn.filter(x=>"function"==typeof ee[x]).map(x=>{const ne=Te=>ee[x](Te.detail);return ze.addEventListener(x,ne),()=>ze.removeEventListener(x,ne)});return()=>M.forEach(x=>x())}),Sr=new Z.nKC("NavParamsToken"),Mn=te=>[{provide:Sr,useValue:te},{provide:ir,useFactory:xn,deps:[Sr]}],xn=te=>new ir(te),mn=(te,ee)=>{const ze=te.prototype;ee.forEach(M=>{Object.defineProperty(ze,M,{get(){return this.el[M]},set(x){this.z.runOutsideAngular(()=>this.el[M]=x)}})})},en=(te,ee)=>{const ze=te.prototype;ee.forEach(M=>{ze[M]=function(){const x=arguments;return this.z.runOutsideAngular(()=>this.el[M].apply(this.el,x))}})},Er=(te,ee,ze)=>{ze.forEach(M=>te[M]=(0,vn.R)(ee,M))};function Ir(te){return function(ze){const{defineCustomElementFn:M,inputs:x,methods:ne}=te;return void 0!==M&&M(),x&&mn(ze,x),ne&&en(ze,ne),ze}}const Nr=["alignment","animated","arrow","keepContentsMounted","backdropDismiss","cssClass","dismissOnSelect","enterAnimation","event","isOpen","keyboardClose","leaveAnimation","mode","showBackdrop","translucent","trigger","triggerAction","reference","size","side"],Qn=["present","dismiss","onDidDismiss","onWillDismiss"];let Dr=(()=>{var te;let ee=((0,c.A)(te=class{constructor(M,x,ne){(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=ne,this.el=x.nativeElement,this.el.addEventListener("ionMount",()=>{this.isCmpOpen=!0,M.detectChanges()}),this.el.addEventListener("didDismiss",()=>{this.isCmpOpen=!1,M.detectChanges()}),Er(this,this.el,["ionPopoverDidPresent","ionPopoverWillPresent","ionPopoverWillDismiss","ionPopoverDidDismiss","didPresent","willPresent","willDismiss","didDismiss"])}},"\u0275fac",function(M){return new(M||te)(Z.rXU(Z.gRc),Z.rXU(Z.aKT),Z.rXU(Z.SKi))}),(0,c.A)(te,"\u0275dir",Z.FsC({type:te,selectors:[["ion-popover"]],contentQueries:function(M,x,ne){if(1&M&&Z.wni(ne,Z.C4Q,5),2&M){let Te;Z.mGM(Te=Z.lsd())&&(x.template=Te.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"}})),te);return ee=(0,dt.Cg)([Ir({inputs:Nr,methods:Qn})],ee),ee})();const Jn=["animated","keepContentsMounted","backdropBreakpoint","backdropDismiss","breakpoints","canDismiss","cssClass","enterAnimation","event","handle","handleBehavior","initialBreakpoint","isOpen","keyboardClose","leaveAnimation","mode","presentingElement","showBackdrop","translucent","trigger"],Jr=["present","dismiss","onDidDismiss","onWillDismiss","setCurrentBreakpoint","getCurrentBreakpoint"];let mr=(()=>{var te;let ee=((0,c.A)(te=class{constructor(M,x,ne){(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=ne,this.el=x.nativeElement,this.el.addEventListener("ionMount",()=>{this.isCmpOpen=!0,M.detectChanges()}),this.el.addEventListener("didDismiss",()=>{this.isCmpOpen=!1,M.detectChanges()}),Er(this,this.el,["ionModalDidPresent","ionModalWillPresent","ionModalWillDismiss","ionModalDidDismiss","ionBreakpointDidChange","didPresent","willPresent","willDismiss","didDismiss"])}},"\u0275fac",function(M){return new(M||te)(Z.rXU(Z.gRc),Z.rXU(Z.aKT),Z.rXU(Z.SKi))}),(0,c.A)(te,"\u0275dir",Z.FsC({type:te,selectors:[["ion-modal"]],contentQueries:function(M,x,ne){if(1&M&&Z.wni(ne,Z.C4Q,5),2&M){let Te;Z.mGM(Te=Z.lsd())&&(x.template=Te.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"}})),te);return ee=(0,dt.Cg)([Ir({inputs:Jn,methods:Jr})],ee),ee})();const Pr=(te,ee)=>((te=te.filter(ze=>ze.stackId!==ee.stackId)).push(ee),te),ii=(te,ee)=>{const ze=te.createUrlTree(["."],{relativeTo:ee});return te.serializeUrl(ze)},Ai=(te,ee)=>!ee||te.stackId!==ee.stackId,Qr=(te,ee)=>{if(!te)return;const ze=pe(ee);for(let M=0;M=te.length)return ze[M];if(ze[M]!==te[M])return}},pe=te=>te.split("/").map(ee=>ee.trim()).filter(ee=>""!==ee),rt=te=>{te&&(te.ref.destroy(),te.unlistenEvents())};class Mt{constructor(ee,ze,M,x,ne,Te){(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=ze,this.router=M,this.navCtrl=x,this.zone=ne,this.location=Te,this.tabsPrefix=void 0!==ee?pe(ee):void 0}createView(ee,ze){var M;const x=ii(this.router,ze),ne=null==ee||null===(M=ee.location)||void 0===M?void 0:M.nativeElement,Te=gn(this.zone,ee.instance,ne);return{id:this.nextId++,stackId:Qr(this.tabsPrefix,x),unlistenEvents:Te,element:ne,ref:ee,url:x}}getExistingView(ee){const ze=ii(this.router,ee),M=this.views.find(x=>x.url===ze);return M&&M.ref.changeDetectorRef.reattach(),M}setActive(ee){var ze,M;const x=this.navCtrl.consumeTransition();let{direction:ne,animation:Te,animationBuilder:Ge}=x;const At=this.activeView,Jt=Ai(ee,At);Jt&&(ne="back",Te=void 0);const ln=this.views.slice();let or;const Un=this.router;Un.getCurrentNavigation?or=Un.getCurrentNavigation():null!==(ze=Un.navigations)&&void 0!==ze&&ze.value&&(or=Un.navigations.value),null!==(M=or)&&void 0!==M&&null!==(M=M.extras)&&void 0!==M&&M.replaceUrl&&this.views.length>0&&this.views.splice(-1,1);const xr=this.views.includes(ee),On=this.insertView(ee,ne);xr||ee.ref.changeDetectorRef.detectChanges();const Fr=ee.animationBuilder;return void 0===Ge&&"back"===ne&&!Jt&&void 0!==Fr&&(Ge=Fr),At&&(At.animationBuilder=Ge),this.zone.runOutsideAngular(()=>this.wait(()=>(At&&At.ref.changeDetectorRef.detach(),ee.ref.changeDetectorRef.reattach(),this.transition(ee,At,Te,this.canGoBack(1),!1,Ge).then(()=>ut(ee,On,ln,this.location,this.zone)).then(()=>({enteringView:ee,direction:ne,animation:Te,tabSwitch:Jt})))))}canGoBack(ee,ze=this.getActiveStackId()){return this.getStack(ze).length>ee}pop(ee,ze=this.getActiveStackId()){return this.zone.run(()=>{const M=this.getStack(ze);if(M.length<=ee)return Promise.resolve(!1);const x=M[M.length-ee-1];let ne=x.url;const Te=x.savedData;if(Te){var Ge;const Jt=Te.get("primary");null!=Jt&&null!==(Ge=Jt.route)&&void 0!==Ge&&null!==(Ge=Ge._routerState)&&void 0!==Ge&&Ge.snapshot.url&&(ne=Jt.route._routerState.snapshot.url)}const{animationBuilder:At}=this.navCtrl.consumeTransition();return this.navCtrl.navigateBack(ne,{...x.savedExtras,animation:At}).then(()=>!0)})}startBackTransition(){const ee=this.activeView;if(ee){const ze=this.getStack(ee.stackId),M=ze[ze.length-2],x=M.animationBuilder;return this.wait(()=>this.transition(M,ee,"back",this.canGoBack(2),!0,x))}return Promise.resolve()}endBackTransition(ee){ee?(this.skipTransition=!0,this.pop(1)):this.activeView&&ce(this.activeView,this.views,this.views,this.location,this.zone)}getLastUrl(ee){const ze=this.getStack(ee);return ze.length>0?ze[ze.length-1]:void 0}getRootUrl(ee){const ze=this.getStack(ee);return ze.length>0?ze[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(rt),this.activeView=void 0,this.views=[]}getStack(ee){return this.views.filter(ze=>ze.stackId===ee)}insertView(ee,ze){return this.activeView=ee,this.views=((te,ee,ze)=>"root"===ze?Pr(te,ee):"forward"===ze?((te,ee)=>(te.indexOf(ee)>=0?te=te.filter(M=>M.stackId!==ee.stackId||M.id<=ee.id):te.push(ee),te))(te,ee):((te,ee)=>te.indexOf(ee)>=0?te.filter(M=>M.stackId!==ee.stackId||M.id<=ee.id):Pr(te,ee))(te,ee))(this.views,ee,ze),this.views.slice()}transition(ee,ze,M,x,ne,Te){if(this.skipTransition)return this.skipTransition=!1,Promise.resolve(!1);if(ze===ee)return Promise.resolve(!1);const Ge=ee?ee.element:void 0,At=ze?ze.element:void 0,Jt=this.containerEl;return Ge&&Ge!==At&&(Ge.classList.add("ion-page"),Ge.classList.add("ion-page-invisible"),Jt.commit)?Jt.commit(Ge,At,{duration:void 0===M?0:void 0,direction:M,showGoBack:x,progressAnimation:ne,animationBuilder:Te}):Promise.resolve(!1)}wait(ee){var ze=this;return(0,h.A)(function*(){void 0!==ze.runningTask&&(yield ze.runningTask,ze.runningTask=void 0);const M=ze.runningTask=ee();return M.finally(()=>ze.runningTask=void 0),M})()}}const ut=(te,ee,ze,M,x)=>"function"==typeof requestAnimationFrame?new Promise(ne=>{requestAnimationFrame(()=>{ce(te,ee,ze,M,x),ne()})}):Promise.resolve(),ce=(te,ee,ze,M,x)=>{x.run(()=>ze.filter(ne=>!ee.includes(ne)).forEach(rt)),ee.forEach(ne=>{const Ge=M.path().split("?")[0].split("#")[0];if(ne!==te&&ne.url!==Ge){const At=ne.element;At.setAttribute("aria-hidden","true"),At.classList.add("ion-page-hidden"),ne.ref.changeDetectorRef.detach()}})};let ye=(()=>{var te;class ee{get activatedComponentRef(){return this.activated}set animation(M){this.nativeEl.animation=M}set animated(M){this.nativeEl.animated=M}set swipeGesture(M){this._swipeGesture=M,this.nativeEl.swipeHandler=M?{canStart:()=>this.stackCtrl.canGoBack(1)&&!this.stackCtrl.hasRunningTask(),onStart:()=>this.stackCtrl.startBackTransition(),onEnd:x=>this.stackCtrl.endBackTransition(x)}:void 0}constructor(M,x,ne,Te,Ge,At,Jt,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 Nt.t(null)),(0,c.A)(this,"activated",null),(0,c.A)(this,"_activatedRoute",null),(0,c.A)(this,"name",Oe.Xk),(0,c.A)(this,"stackWillChange",new Z.bkB),(0,c.A)(this,"stackDidChange",new Z.bkB),(0,c.A)(this,"activateEvents",new Z.bkB),(0,c.A)(this,"deactivateEvents",new Z.bkB),(0,c.A)(this,"parentContexts",(0,Z.WQX)(Oe.Zp)),(0,c.A)(this,"location",(0,Z.WQX)(Z.c1b)),(0,c.A)(this,"environmentInjector",(0,Z.WQX)(Z.uvJ)),(0,c.A)(this,"inputBinder",(0,Z.WQX)(Lt,{optional:!0})),(0,c.A)(this,"supportsBindingToComponentInputs",!0),(0,c.A)(this,"config",(0,Z.WQX)(er)),(0,c.A)(this,"navCtrl",(0,Z.WQX)(rn)),this.parentOutlet=ln,this.nativeEl=Te.nativeElement,this.name=M||Oe.Xk,this.tabsPrefix="true"===x?ii(Ge,Jt):void 0,this.stackCtrl=new Mt(this.tabsPrefix,this.nativeEl,Ge,this.navCtrl,At,ne),this.parentContexts.onChildOutletCreated(this.name,this)}ngOnDestroy(){var M;this.stackCtrl.destroy(),null===(M=this.inputBinder)||void 0===M||M.unsubscribeFromRouteData(this)}getContext(){return this.parentContexts.getContext(this.name)}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(!this.activated){const M=this.getContext();null!=M&&M.route&&this.activateWith(M.route,M.injector)}new Promise(M=>((te,ee)=>{te.componentOnReady?te.componentOnReady().then(ze=>ee(ze)):(te=>{"function"==typeof __zone_symbol__requestAnimationFrame?__zone_symbol__requestAnimationFrame(te):"function"==typeof requestAnimationFrame?requestAnimationFrame(te):setTimeout(te)})(()=>ee(te))})(this.nativeEl,M)).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(M,x){throw new Error("incompatible reuse strategy")}deactivate(){if(this.activated){if(this.activatedView){const x=this.getContext();this.activatedView.savedData=new Map(x.children.contexts);const ne=this.activatedView.savedData.get("primary");if(ne&&x.route&&(ne.route={...x.route}),this.activatedView.savedExtras={},x.route){const Te=x.route.snapshot;this.activatedView.savedExtras.queryParams=Te.queryParams,this.activatedView.savedExtras.fragment=Te.fragment}}const M=this.component;this.activatedView=null,this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(M)}}activateWith(M,x){var ne;if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=M;let Te,Ge=this.stackCtrl.getExistingView(M);if(Ge){Te=this.activated=Ge.ref;const ln=Ge.savedData;ln&&(this.getContext().children.contexts=ln),this.updateActivatedRouteProxy(Te.instance,M)}else{var At;const ln=M._futureSnapshot,or=this.parentContexts.getOrCreateContext(this.name).children,Un=new Nt.t(null),xr=this.createActivatedRouteProxy(Un,M),On=new He(xr,or,this.location.injector),Fr=null!==(At=ln.routeConfig.component)&&void 0!==At?At:ln.component;Te=this.activated=this.outletContent.createComponent(Fr,{index:this.outletContent.length,injector:On,environmentInjector:null!=x?x:this.environmentInjector}),Un.next(Te.instance),Ge=this.stackCtrl.createView(this.activated,M),this.proxyMap.set(Te.instance,xr),this.currentActivatedRoute$.next({component:Te.instance,activatedRoute:M})}null===(ne=this.inputBinder)||void 0===ne||ne.bindActivatedRouteToOutletComponent(this),this.activatedView=Ge,this.navCtrl.setTopOutlet(this);const Jt=this.stackCtrl.getActiveView();this.stackWillChange.emit({enteringView:Ge,tabSwitch:Ai(Ge,Jt)}),this.stackCtrl.setActive(Ge).then(ln=>{this.activateEvents.emit(Te.instance),this.stackDidChange.emit(ln)})}canGoBack(M=1,x){return this.stackCtrl.canGoBack(M,x)}pop(M=1,x){return this.stackCtrl.pop(M,x)}getLastUrl(M){const x=this.stackCtrl.getLastUrl(M);return x?x.url:void 0}getLastRouteView(M){return this.stackCtrl.getLastUrl(M)}getRootView(M){return this.stackCtrl.getRootUrl(M)}getActiveStackId(){return this.stackCtrl.getActiveStackId()}createActivatedRouteProxy(M,x){const ne=new Oe.nX;return ne._futureSnapshot=x._futureSnapshot,ne._routerState=x._routerState,ne.snapshot=x.snapshot,ne.outlet=x.outlet,ne.component=x.component,ne._paramMap=this.proxyObservable(M,"paramMap"),ne._queryParamMap=this.proxyObservable(M,"queryParamMap"),ne.url=this.proxyObservable(M,"url"),ne.params=this.proxyObservable(M,"params"),ne.queryParams=this.proxyObservable(M,"queryParams"),ne.fragment=this.proxyObservable(M,"fragment"),ne.data=this.proxyObservable(M,"data"),ne}proxyObservable(M,x){return M.pipe((0,we.p)(ne=>!!ne),(0,H.n)(ne=>this.currentActivatedRoute$.pipe((0,we.p)(Te=>null!==Te&&Te.component===ne),(0,H.n)(Te=>Te&&Te.activatedRoute[x]),(0,X.F)())))}updateActivatedRouteProxy(M,x){const ne=this.proxyMap.get(M);if(!ne)throw new Error("Could not find activated route proxy for view");ne._futureSnapshot=x._futureSnapshot,ne._routerState=x._routerState,ne.snapshot=x.snapshot,ne.outlet=x.outlet,ne.component=x.component,this.currentActivatedRoute$.next({component:M,activatedRoute:x})}}return te=ee,(0,c.A)(ee,"\u0275fac",function(M){return new(M||te)(Z.kS0("name"),Z.kS0("tabs"),Z.rXU(U.aZ),Z.rXU(Z.aKT),Z.rXU(Oe.Ix),Z.rXU(Z.SKi),Z.rXU(Oe.nX),Z.rXU(te,12))}),(0,c.A)(ee,"\u0275dir",Z.FsC({type:te,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"]})),ee})();class He{constructor(ee,ze,M){(0,c.A)(this,"route",void 0),(0,c.A)(this,"childContexts",void 0),(0,c.A)(this,"parent",void 0),this.route=ee,this.childContexts=ze,this.parent=M}get(ee,ze){return ee===Oe.nX?this.route:ee===Oe.Zp?this.childContexts:this.parent.get(ee,ze)}}const Lt=new Z.nKC("");let ie=(()=>{var te;class ee{constructor(){(0,c.A)(this,"outletDataSubscriptions",new Map)}bindActivatedRouteToOutletComponent(M){this.unsubscribeFromRouteData(M),this.subscribeToRouteData(M)}unsubscribeFromRouteData(M){var x;null===(x=this.outletDataSubscriptions.get(M))||void 0===x||x.unsubscribe(),this.outletDataSubscriptions.delete(M)}subscribeToRouteData(M){const{activatedRoute:x}=M,ne=(0,tt.z)([x.queryParams,x.params,x.data]).pipe((0,H.n)(([Te,Ge,At],Jt)=>(At={...Te,...Ge,...At},0===Jt?(0,on.of)(At):Promise.resolve(At)))).subscribe(Te=>{if(!M.isActivated||!M.activatedComponentRef||M.activatedRoute!==x||null===x.component)return void this.unsubscribeFromRouteData(M);const Ge=(0,Z.HJs)(x.component);if(Ge)for(const{templateName:At}of Ge.inputs)M.activatedComponentRef.setInput(At,Te[At]);else this.unsubscribeFromRouteData(M)});this.outletDataSubscriptions.set(M,ne)}}return te=ee,(0,c.A)(ee,"\u0275fac",function(M){return new(M||te)}),(0,c.A)(ee,"\u0275prov",Z.jDH({token:te,factory:te.\u0275fac})),ee})();const ct=()=>({provide:Lt,useFactory:lt,deps:[Oe.Ix]});function lt(te){return null!=te&&te.componentInputBindingEnabled?new ie:null}const Gt=["color","defaultHref","disabled","icon","mode","routerAnimation","text","type"];let tn=(()=>{var te;let ee=((0,c.A)(te=class{constructor(M,x,ne,Te,Ge,At){(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=M,this.navCtrl=x,this.config=ne,this.r=Te,this.z=Ge,At.detach(),this.el=this.r.nativeElement}onClick(M){var x;const ne=this.defaultHref||this.config.get("backButtonDefaultHref");null!==(x=this.routerOutlet)&&void 0!==x&&x.canGoBack()?(this.navCtrl.setDirection("back",void 0,void 0,this.routerAnimation),this.routerOutlet.pop(),M.preventDefault()):null!=ne&&(this.navCtrl.navigateBack(ne,{animation:this.routerAnimation}),M.preventDefault())}},"\u0275fac",function(M){return new(M||te)(Z.rXU(ye,8),Z.rXU(rn),Z.rXU(er),Z.rXU(Z.aKT),Z.rXU(Z.SKi),Z.rXU(Z.gRc))}),(0,c.A)(te,"\u0275dir",Z.FsC({type:te,hostBindings:function(M,x){1&M&&Z.bIt("click",function(Te){return x.onClick(Te)})},inputs:{color:"color",defaultHref:"defaultHref",disabled:"disabled",icon:"icon",mode:"mode",routerAnimation:"routerAnimation",text:"text",type:"type"}})),te);return ee=(0,dt.Cg)([Ir({inputs:Gt})],ee),ee})(),_n=(()=>{var te;class ee{constructor(M,x,ne,Te,Ge){(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=M,this.navCtrl=x,this.elementRef=ne,this.router=Te,this.routerLink=Ge}ngOnInit(){this.updateTargetUrlAndHref()}ngOnChanges(){this.updateTargetUrlAndHref()}updateTargetUrlAndHref(){var M;if(null!==(M=this.routerLink)&&void 0!==M&&M.urlTree){const x=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.routerLink.urlTree));this.elementRef.nativeElement.href=x}}onClick(M){this.navCtrl.setDirection(this.routerDirection,void 0,void 0,this.routerAnimation),M.preventDefault()}}return te=ee,(0,c.A)(ee,"\u0275fac",function(M){return new(M||te)(Z.rXU(U.hb),Z.rXU(rn),Z.rXU(Z.aKT),Z.rXU(Oe.Ix),Z.rXU(Oe.Wk,8))}),(0,c.A)(ee,"\u0275dir",Z.FsC({type:te,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(M,x){1&M&&Z.bIt("click",function(Te){return x.onClick(Te)})},inputs:{routerDirection:"routerDirection",routerAnimation:"routerAnimation"},features:[Z.OA$]})),ee})(),qn=(()=>{var te;class ee{constructor(M,x,ne,Te,Ge){(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=M,this.navCtrl=x,this.elementRef=ne,this.router=Te,this.routerLink=Ge}ngOnInit(){this.updateTargetUrlAndHref()}ngOnChanges(){this.updateTargetUrlAndHref()}updateTargetUrlAndHref(){var M;if(null!==(M=this.routerLink)&&void 0!==M&&M.urlTree){const x=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.routerLink.urlTree));this.elementRef.nativeElement.href=x}}onClick(){this.navCtrl.setDirection(this.routerDirection,void 0,void 0,this.routerAnimation)}}return te=ee,(0,c.A)(ee,"\u0275fac",function(M){return new(M||te)(Z.rXU(U.hb),Z.rXU(rn),Z.rXU(Z.aKT),Z.rXU(Oe.Ix),Z.rXU(Oe.Wk,8))}),(0,c.A)(ee,"\u0275dir",Z.FsC({type:te,selectors:[["a","routerLink",""],["area","routerLink",""]],hostBindings:function(M,x){1&M&&Z.bIt("click",function(){return x.onClick()})},inputs:{routerDirection:"routerDirection",routerAnimation:"routerAnimation"},features:[Z.OA$]})),ee})();const hn=["animated","animation","root","rootParams","swipeGesture"],Cn=["push","insert","insertPages","pop","popTo","popToRoot","removeIndex","setRoot","setPages","getActive","getByIndex","canGoBack","getPrevious"];let tr=(()=>{var te;let ee=((0,c.A)(te=class{constructor(M,x,ne,Te,Ge,At){(0,c.A)(this,"z",void 0),(0,c.A)(this,"el",void 0),this.z=Ge,At.detach(),this.el=M.nativeElement,M.nativeElement.delegate=Te.create(x,ne),Er(this,this.el,["ionNavDidChange","ionNavWillChange"])}},"\u0275fac",function(M){return new(M||te)(Z.rXU(Z.aKT),Z.rXU(Z.uvJ),Z.rXU(Z.zZn),Z.rXU(nt),Z.rXU(Z.SKi),Z.rXU(Z.gRc))}),(0,c.A)(te,"\u0275dir",Z.FsC({type:te,inputs:{animated:"animated",animation:"animation",root:"root",rootParams:"rootParams",swipeGesture:"swipeGesture"}})),te);return ee=(0,dt.Cg)([Ir({inputs:hn,methods:Cn})],ee),ee})(),Ar=(()=>{var te;class ee{constructor(M){(0,c.A)(this,"navCtrl",void 0),(0,c.A)(this,"tabsInner",void 0),(0,c.A)(this,"ionTabsWillChange",new Z.bkB),(0,c.A)(this,"ionTabsDidChange",new Z.bkB),(0,c.A)(this,"tabBarSlot","bottom"),this.navCtrl=M}ngAfterContentInit(){this.detectSlotChanges()}ngAfterContentChecked(){this.detectSlotChanges()}onStackWillChange({enteringView:M,tabSwitch:x}){const ne=M.stackId;x&&void 0!==ne&&this.ionTabsWillChange.emit({tab:ne})}onStackDidChange({enteringView:M,tabSwitch:x}){const ne=M.stackId;x&&void 0!==ne&&(this.tabBar&&(this.tabBar.selectedTab=ne),this.ionTabsDidChange.emit({tab:ne}))}select(M){const x="string"==typeof M,ne=x?M:M.detail.tab,Te=this.outlet.getActiveStackId()===ne,Ge=`${this.outlet.tabsPrefix}/${ne}`;if(x||M.stopPropagation(),Te){const At=this.outlet.getActiveStackId(),Jt=this.outlet.getLastRouteView(At);if((null==Jt?void 0:Jt.url)===Ge)return;const ln=this.outlet.getRootView(ne);return this.navCtrl.navigateRoot(Ge,{...ln&&Ge===ln.url&&ln.savedExtras,animated:!0,animationDirection:"back"})}{const At=this.outlet.getLastRouteView(ne);return this.navCtrl.navigateRoot((null==At?void 0:At.url)||Ge,{...null==At?void 0:At.savedExtras,animated:!0,animationDirection:"back"})}}getSelected(){return this.outlet.getActiveStackId()}detectSlotChanges(){this.tabBars.forEach(M=>{const x=M.el.getAttribute("slot");x!==this.tabBarSlot&&(this.tabBarSlot=x,this.relocateTabBar())})}relocateTabBar(){const M=this.tabBar.el;"top"===this.tabBarSlot?this.tabsInner.nativeElement.before(M):this.tabsInner.nativeElement.after(M)}}return te=ee,(0,c.A)(ee,"\u0275fac",function(M){return new(M||te)(Z.rXU(rn))}),(0,c.A)(ee,"\u0275dir",Z.FsC({type:te,selectors:[["ion-tabs"]],viewQuery:function(M,x){if(1&M&&Z.GBs(se,7,Z.aKT),2&M){let ne;Z.mGM(ne=Z.lsd())&&(x.tabsInner=ne.first)}},hostBindings:function(M,x){1&M&&Z.bIt("ionTabButtonClick",function(Te){return x.select(Te)})},outputs:{ionTabsWillChange:"ionTabsWillChange",ionTabsDidChange:"ionTabsDidChange"}})),ee})();const dr=te=>"function"==typeof __zone_symbol__requestAnimationFrame?__zone_symbol__requestAnimationFrame(te):"function"==typeof requestAnimationFrame?requestAnimationFrame(te):setTimeout(te);let $r=(()=>{var te;class ee{constructor(M,x){(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=M,this.elementRef=x}writeValue(M){this.elementRef.nativeElement.value=this.lastValue=M,Zr(this.elementRef)}handleValueChange(M,x){M===this.elementRef.nativeElement&&(x!==this.lastValue&&(this.lastValue=x,this.onChange(x)),Zr(this.elementRef))}_handleBlurEvent(M){M===this.elementRef.nativeElement&&(this.onTouched(),Zr(this.elementRef))}registerOnChange(M){this.onChange=M}registerOnTouched(M){this.onTouched=M}setDisabledState(M){this.elementRef.nativeElement.disabled=M}ngOnDestroy(){this.statusChanges&&this.statusChanges.unsubscribe()}ngAfterViewInit(){let M;try{M=this.injector.get(fe.vO)}catch{}if(!M)return;M.statusChanges&&(this.statusChanges=M.statusChanges.subscribe(()=>Zr(this.elementRef)));const x=M.control;x&&["markAsTouched","markAllAsTouched","markAsUntouched","markAsDirty","markAsPristine"].forEach(Te=>{if(typeof x[Te]<"u"){const Ge=x[Te].bind(x);x[Te]=(...At)=>{Ge(...At),Zr(this.elementRef)}}})}}return te=ee,(0,c.A)(ee,"\u0275fac",function(M){return new(M||te)(Z.rXU(Z.zZn),Z.rXU(Z.aKT))}),(0,c.A)(ee,"\u0275dir",Z.FsC({type:te,hostBindings:function(M,x){1&M&&Z.bIt("ionBlur",function(Te){return x._handleBlurEvent(Te.target)})}})),ee})();const Zr=te=>{dr(()=>{const ee=te.nativeElement,ze=null!=ee.value&&ee.value.toString().length>0,M=fr(ee);Ri(ee,M);const x=ee.closest("ion-item");x&&Ri(x,ze?[...M,"item-has-value"]:M)})},fr=te=>{const ee=te.classList,ze=[];for(let M=0;M{const ze=te.classList;ze.remove("ion-valid","ion-invalid","ion-touched","ion-untouched","ion-dirty","ion-pristine"),ze.add(...ee)},gi=(te,ee)=>te.substring(0,ee.length)===ee;class pr{shouldDetach(ee){return!1}shouldAttach(ee){return!1}store(ee,ze){}retrieve(ee){return null}shouldReuseRoute(ee,ze){if(ee.routeConfig!==ze.routeConfig)return!1;const M=ee.params,x=ze.params,ne=Object.keys(M),Te=Object.keys(x);if(ne.length!==Te.length)return!1;for(const Ge of ne)if(x[Ge]!==M[Ge])return!1;return!0}}class Ut{constructor(ee){(0,c.A)(this,"ctrl",void 0),this.ctrl=ee}create(ee){return this.ctrl.create(ee||{})}dismiss(ee,ze,M){return this.ctrl.dismiss(ee,ze,M)}getTop(){return this.ctrl.getTop()}}},7863:(Tn,gt,S)=>{"use strict";S.d(gt,{hG:()=>Ci,hB:()=>dt,U1:()=>Ln,mC:()=>Zn,Jm:()=>ir,QW:()=>nt,b_:()=>Ot,I9:()=>zt,ME:()=>pn,HW:()=>gn,tN:()=>Sr,eY:()=>Mn,ZB:()=>xn,hU:()=>mn,W9:()=>en,Q8:()=>Nr,M0:()=>Jn,lO:()=>Jr,eU:()=>mr,iq:()=>ur,$w:()=>ii,uz:()=>Qr,Dg:()=>pe,he:()=>ye,nf:()=>He,oS:()=>ct,MC:()=>lt,cA:()=>Gt,Sb:()=>Lr,To:()=>fr,Ki:()=>Ri,Rg:()=>Tr,ln:()=>te,HP:()=>At,nc:()=>Un,BC:()=>On,ai:()=>zr,bv:()=>Fn,Xi:()=>bt,_t:()=>he,N7:()=>li,oY:()=>ei,Gw:()=>X});var h=S(9842),c=S(4438),Z=S(4341),Oe=S(2872),U=S(1635),ue=S(3726),oe=S(177),Xe=S(7650),qe=(S(9986),S(2725),S(8454),S(3314),S(8607),S(3664)),ht=S(464),Dt=S(5465),St=S(6002),Tt=(S(8476),S(9672));S(1970),S(6411);var ge=S(467);const Ue=qe.i,Fe=function(){var b=(0,ge.A)(function*(j,re){if(!(typeof window>"u"))return yield Ue(),(0,Tt.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]}]]]]'),re)});return function(re,P){return b.apply(this,arguments)}}(),xe=["*"],at=["outletContent"];function tt(b,j){if(1&b&&(c.j41(0,"div",1),c.eu8(1,2),c.k0s()),2&b){const re=c.XpG();c.R7$(),c.Y8G("ngTemplateOutlet",re.template)}}let dt=(()=>{var b;class j extends Oe.fL{constructor(P,Ee){super(P,Ee)}writeValue(P){this.elementRef.nativeElement.checked=this.lastValue=P,(0,Oe.z3)(this.elementRef)}_handleIonChange(P){this.handleValueChange(P,P.checked)}}return b=j,(0,h.A)(j,"\u0275fac",function(P){return new(P||b)(c.rXU(c.zZn),c.rXU(c.aKT))}),(0,h.A)(j,"\u0275dir",c.FsC({type:b,selectors:[["ion-checkbox"],["ion-toggle"]],hostBindings:function(P,Ee){1&P&&c.bIt("ionChange",function(sr){return Ee._handleIonChange(sr.target)})},features:[c.Jv_([{provide:Z.kq,useExisting:b,multi:!0}]),c.Vt3]})),j})(),X=(()=>{var b;class j extends Oe.fL{constructor(P,Ee){super(P,Ee)}_handleInputEvent(P){this.handleValueChange(P,P.value)}}return b=j,(0,h.A)(j,"\u0275fac",function(P){return new(P||b)(c.rXU(c.zZn),c.rXU(c.aKT))}),(0,h.A)(j,"\u0275dir",c.FsC({type:b,selectors:[["ion-input",3,"type","number"],["ion-textarea"],["ion-searchbar"]],hostBindings:function(P,Ee){1&P&&c.bIt("ionInput",function(sr){return Ee._handleInputEvent(sr.target)})},features:[c.Jv_([{provide:Z.kq,useExisting:b,multi:!0}]),c.Vt3]})),j})();const fe=(b,j)=>{const re=b.prototype;j.forEach(P=>{Object.defineProperty(re,P,{get(){return this.el[P]},set(Ee){this.z.runOutsideAngular(()=>this.el[P]=Ee)},configurable:!0})})},se=(b,j)=>{const re=b.prototype;j.forEach(P=>{re[P]=function(){const Ee=arguments;return this.z.runOutsideAngular(()=>this.el[P].apply(this.el,Ee))}})},ve=(b,j,re)=>{re.forEach(P=>b[P]=(0,ue.R)(j,P))};function De(b){return function(re){const{defineCustomElementFn:P,inputs:Ee,methods:it}=b;return void 0!==P&&P(),Ee&&fe(re,Ee),it&&se(re,it),re}}let Ln=(()=>{var b;let j=((0,h.A)(b=class{constructor(P,Ee,it){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=it,P.detach(),this.el=Ee.nativeElement}},"\u0275fac",function(P){return new(P||b)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(b,"\u0275cmp",c.VBU({type:b,selectors:[["ion-app"]],ngContentSelectors:xe,decls:1,vars:0,template:function(P,Ee){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),b);return j=(0,U.Cg)([De({})],j),j})(),Zn=(()=>{var b;let j=((0,h.A)(b=class{constructor(P,Ee,it){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=it,P.detach(),this.el=Ee.nativeElement}},"\u0275fac",function(P){return new(P||b)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(b,"\u0275cmp",c.VBU({type:b,selectors:[["ion-avatar"]],ngContentSelectors:xe,decls:1,vars:0,template:function(P,Ee){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),b);return j=(0,U.Cg)([De({})],j),j})(),ir=(()=>{var b;let j=((0,h.A)(b=class{constructor(P,Ee,it){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=it,P.detach(),this.el=Ee.nativeElement,ve(this,this.el,["ionFocus","ionBlur"])}},"\u0275fac",function(P){return new(P||b)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(b,"\u0275cmp",c.VBU({type:b,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:xe,decls:1,vars:0,template:function(P,Ee){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),b);return j=(0,U.Cg)([De({inputs:["buttonType","color","disabled","download","expand","fill","form","href","mode","rel","routerAnimation","routerDirection","shape","size","strong","target","type"]})],j),j})(),nt=(()=>{var b;let j=((0,h.A)(b=class{constructor(P,Ee,it){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=it,P.detach(),this.el=Ee.nativeElement}},"\u0275fac",function(P){return new(P||b)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(b,"\u0275cmp",c.VBU({type:b,selectors:[["ion-buttons"]],inputs:{collapse:"collapse"},ngContentSelectors:xe,decls:1,vars:0,template:function(P,Ee){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),b);return j=(0,U.Cg)([De({inputs:["collapse"]})],j),j})(),Ot=(()=>{var b;let j=((0,h.A)(b=class{constructor(P,Ee,it){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=it,P.detach(),this.el=Ee.nativeElement}},"\u0275fac",function(P){return new(P||b)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(b,"\u0275cmp",c.VBU({type:b,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:xe,decls:1,vars:0,template:function(P,Ee){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),b);return j=(0,U.Cg)([De({inputs:["button","color","disabled","download","href","mode","rel","routerAnimation","routerDirection","target","type"]})],j),j})(),zt=(()=>{var b;let j=((0,h.A)(b=class{constructor(P,Ee,it){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=it,P.detach(),this.el=Ee.nativeElement}},"\u0275fac",function(P){return new(P||b)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(b,"\u0275cmp",c.VBU({type:b,selectors:[["ion-card-content"]],inputs:{mode:"mode"},ngContentSelectors:xe,decls:1,vars:0,template:function(P,Ee){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),b);return j=(0,U.Cg)([De({inputs:["mode"]})],j),j})(),pn=(()=>{var b;let j=((0,h.A)(b=class{constructor(P,Ee,it){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=it,P.detach(),this.el=Ee.nativeElement}},"\u0275fac",function(P){return new(P||b)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(b,"\u0275cmp",c.VBU({type:b,selectors:[["ion-card-header"]],inputs:{color:"color",mode:"mode",translucent:"translucent"},ngContentSelectors:xe,decls:1,vars:0,template:function(P,Ee){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),b);return j=(0,U.Cg)([De({inputs:["color","mode","translucent"]})],j),j})(),gn=(()=>{var b;let j=((0,h.A)(b=class{constructor(P,Ee,it){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=it,P.detach(),this.el=Ee.nativeElement}},"\u0275fac",function(P){return new(P||b)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(b,"\u0275cmp",c.VBU({type:b,selectors:[["ion-card-subtitle"]],inputs:{color:"color",mode:"mode"},ngContentSelectors:xe,decls:1,vars:0,template:function(P,Ee){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),b);return j=(0,U.Cg)([De({inputs:["color","mode"]})],j),j})(),Sr=(()=>{var b;let j=((0,h.A)(b=class{constructor(P,Ee,it){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=it,P.detach(),this.el=Ee.nativeElement}},"\u0275fac",function(P){return new(P||b)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(b,"\u0275cmp",c.VBU({type:b,selectors:[["ion-card-title"]],inputs:{color:"color",mode:"mode"},ngContentSelectors:xe,decls:1,vars:0,template:function(P,Ee){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),b);return j=(0,U.Cg)([De({inputs:["color","mode"]})],j),j})(),Mn=(()=>{var b;let j=((0,h.A)(b=class{constructor(P,Ee,it){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=it,P.detach(),this.el=Ee.nativeElement,ve(this,this.el,["ionChange","ionFocus","ionBlur"])}},"\u0275fac",function(P){return new(P||b)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(b,"\u0275cmp",c.VBU({type:b,selectors:[["ion-checkbox"]],inputs:{alignment:"alignment",checked:"checked",color:"color",disabled:"disabled",indeterminate:"indeterminate",justify:"justify",labelPlacement:"labelPlacement",mode:"mode",name:"name",value:"value"},ngContentSelectors:xe,decls:1,vars:0,template:function(P,Ee){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),b);return j=(0,U.Cg)([De({inputs:["alignment","checked","color","disabled","indeterminate","justify","labelPlacement","mode","name","value"]})],j),j})(),xn=(()=>{var b;let j=((0,h.A)(b=class{constructor(P,Ee,it){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=it,P.detach(),this.el=Ee.nativeElement}},"\u0275fac",function(P){return new(P||b)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(b,"\u0275cmp",c.VBU({type:b,selectors:[["ion-chip"]],inputs:{color:"color",disabled:"disabled",mode:"mode",outline:"outline"},ngContentSelectors:xe,decls:1,vars:0,template:function(P,Ee){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),b);return j=(0,U.Cg)([De({inputs:["color","disabled","mode","outline"]})],j),j})(),mn=(()=>{var b;let j=((0,h.A)(b=class{constructor(P,Ee,it){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=it,P.detach(),this.el=Ee.nativeElement}},"\u0275fac",function(P){return new(P||b)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(b,"\u0275cmp",c.VBU({type:b,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:xe,decls:1,vars:0,template:function(P,Ee){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),b);return j=(0,U.Cg)([De({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"]})],j),j})(),en=(()=>{var b;let j=((0,h.A)(b=class{constructor(P,Ee,it){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=it,P.detach(),this.el=Ee.nativeElement,ve(this,this.el,["ionScrollStart","ionScroll","ionScrollEnd"])}},"\u0275fac",function(P){return new(P||b)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(b,"\u0275cmp",c.VBU({type:b,selectors:[["ion-content"]],inputs:{color:"color",fixedSlotPlacement:"fixedSlotPlacement",forceOverscroll:"forceOverscroll",fullscreen:"fullscreen",scrollEvents:"scrollEvents",scrollX:"scrollX",scrollY:"scrollY"},ngContentSelectors:xe,decls:1,vars:0,template:function(P,Ee){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),b);return j=(0,U.Cg)([De({inputs:["color","fixedSlotPlacement","forceOverscroll","fullscreen","scrollEvents","scrollX","scrollY"],methods:["getScrollElement","scrollToTop","scrollToBottom","scrollByPoint","scrollToPoint"]})],j),j})(),Nr=(()=>{var b;let j=((0,h.A)(b=class{constructor(P,Ee,it){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=it,P.detach(),this.el=Ee.nativeElement}},"\u0275fac",function(P){return new(P||b)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(b,"\u0275cmp",c.VBU({type:b,selectors:[["ion-fab"]],inputs:{activated:"activated",edge:"edge",horizontal:"horizontal",vertical:"vertical"},ngContentSelectors:xe,decls:1,vars:0,template:function(P,Ee){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),b);return j=(0,U.Cg)([De({inputs:["activated","edge","horizontal","vertical"],methods:["close"]})],j),j})(),Jn=(()=>{var b;let j=((0,h.A)(b=class{constructor(P,Ee,it){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=it,P.detach(),this.el=Ee.nativeElement}},"\u0275fac",function(P){return new(P||b)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(b,"\u0275cmp",c.VBU({type:b,selectors:[["ion-footer"]],inputs:{collapse:"collapse",mode:"mode",translucent:"translucent"},ngContentSelectors:xe,decls:1,vars:0,template:function(P,Ee){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),b);return j=(0,U.Cg)([De({inputs:["collapse","mode","translucent"]})],j),j})(),Jr=(()=>{var b;let j=((0,h.A)(b=class{constructor(P,Ee,it){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=it,P.detach(),this.el=Ee.nativeElement}},"\u0275fac",function(P){return new(P||b)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(b,"\u0275cmp",c.VBU({type:b,selectors:[["ion-grid"]],inputs:{fixed:"fixed"},ngContentSelectors:xe,decls:1,vars:0,template:function(P,Ee){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),b);return j=(0,U.Cg)([De({inputs:["fixed"]})],j),j})(),mr=(()=>{var b;let j=((0,h.A)(b=class{constructor(P,Ee,it){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=it,P.detach(),this.el=Ee.nativeElement}},"\u0275fac",function(P){return new(P||b)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(b,"\u0275cmp",c.VBU({type:b,selectors:[["ion-header"]],inputs:{collapse:"collapse",mode:"mode",translucent:"translucent"},ngContentSelectors:xe,decls:1,vars:0,template:function(P,Ee){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),b);return j=(0,U.Cg)([De({inputs:["collapse","mode","translucent"]})],j),j})(),ur=(()=>{var b;let j=((0,h.A)(b=class{constructor(P,Ee,it){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=it,P.detach(),this.el=Ee.nativeElement}},"\u0275fac",function(P){return new(P||b)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(b,"\u0275cmp",c.VBU({type:b,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:xe,decls:1,vars:0,template:function(P,Ee){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),b);return j=(0,U.Cg)([De({inputs:["color","flipRtl","icon","ios","lazy","md","mode","name","sanitize","size","src"]})],j),j})(),ii=(()=>{var b;let j=((0,h.A)(b=class{constructor(P,Ee,it){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=it,P.detach(),this.el=Ee.nativeElement,ve(this,this.el,["ionInput","ionChange","ionBlur","ionFocus"])}},"\u0275fac",function(P){return new(P||b)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(b,"\u0275cmp",c.VBU({type:b,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:xe,decls:1,vars:0,template:function(P,Ee){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),b);return j=(0,U.Cg)([De({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"]})],j),j})(),Qr=(()=>{var b;let j=((0,h.A)(b=class{constructor(P,Ee,it){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=it,P.detach(),this.el=Ee.nativeElement}},"\u0275fac",function(P){return new(P||b)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(b,"\u0275cmp",c.VBU({type:b,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:xe,decls:1,vars:0,template:function(P,Ee){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),b);return j=(0,U.Cg)([De({inputs:["button","color","detail","detailIcon","disabled","download","href","lines","mode","rel","routerAnimation","routerDirection","target","type"]})],j),j})(),pe=(()=>{var b;let j=((0,h.A)(b=class{constructor(P,Ee,it){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=it,P.detach(),this.el=Ee.nativeElement}},"\u0275fac",function(P){return new(P||b)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(b,"\u0275cmp",c.VBU({type:b,selectors:[["ion-item-divider"]],inputs:{color:"color",mode:"mode",sticky:"sticky"},ngContentSelectors:xe,decls:1,vars:0,template:function(P,Ee){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),b);return j=(0,U.Cg)([De({inputs:["color","mode","sticky"]})],j),j})(),ye=(()=>{var b;let j=((0,h.A)(b=class{constructor(P,Ee,it){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=it,P.detach(),this.el=Ee.nativeElement}},"\u0275fac",function(P){return new(P||b)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(b,"\u0275cmp",c.VBU({type:b,selectors:[["ion-label"]],inputs:{color:"color",mode:"mode",position:"position"},ngContentSelectors:xe,decls:1,vars:0,template:function(P,Ee){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),b);return j=(0,U.Cg)([De({inputs:["color","mode","position"]})],j),j})(),He=(()=>{var b;let j=((0,h.A)(b=class{constructor(P,Ee,it){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=it,P.detach(),this.el=Ee.nativeElement}},"\u0275fac",function(P){return new(P||b)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(b,"\u0275cmp",c.VBU({type:b,selectors:[["ion-list"]],inputs:{inset:"inset",lines:"lines",mode:"mode"},ngContentSelectors:xe,decls:1,vars:0,template:function(P,Ee){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),b);return j=(0,U.Cg)([De({inputs:["inset","lines","mode"],methods:["closeSlidingItems"]})],j),j})(),ct=(()=>{var b;let j=((0,h.A)(b=class{constructor(P,Ee,it){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=it,P.detach(),this.el=Ee.nativeElement,ve(this,this.el,["ionWillOpen","ionWillClose","ionDidOpen","ionDidClose"])}},"\u0275fac",function(P){return new(P||b)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(b,"\u0275cmp",c.VBU({type:b,selectors:[["ion-menu"]],inputs:{contentId:"contentId",disabled:"disabled",maxEdgeStart:"maxEdgeStart",menuId:"menuId",side:"side",swipeGesture:"swipeGesture",type:"type"},ngContentSelectors:xe,decls:1,vars:0,template:function(P,Ee){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),b);return j=(0,U.Cg)([De({inputs:["contentId","disabled","maxEdgeStart","menuId","side","swipeGesture","type"],methods:["isOpen","isActive","open","close","toggle","setOpen"]})],j),j})(),lt=(()=>{var b;let j=((0,h.A)(b=class{constructor(P,Ee,it){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=it,P.detach(),this.el=Ee.nativeElement}},"\u0275fac",function(P){return new(P||b)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(b,"\u0275cmp",c.VBU({type:b,selectors:[["ion-menu-button"]],inputs:{autoHide:"autoHide",color:"color",disabled:"disabled",menu:"menu",mode:"mode",type:"type"},ngContentSelectors:xe,decls:1,vars:0,template:function(P,Ee){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),b);return j=(0,U.Cg)([De({inputs:["autoHide","color","disabled","menu","mode","type"]})],j),j})(),Gt=(()=>{var b;let j=((0,h.A)(b=class{constructor(P,Ee,it){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=it,P.detach(),this.el=Ee.nativeElement}},"\u0275fac",function(P){return new(P||b)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(b,"\u0275cmp",c.VBU({type:b,selectors:[["ion-menu-toggle"]],inputs:{autoHide:"autoHide",menu:"menu"},ngContentSelectors:xe,decls:1,vars:0,template:function(P,Ee){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),b);return j=(0,U.Cg)([De({inputs:["autoHide","menu"]})],j),j})(),fr=(()=>{var b;let j=((0,h.A)(b=class{constructor(P,Ee,it){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=it,P.detach(),this.el=Ee.nativeElement,ve(this,this.el,["ionRefresh","ionPull","ionStart"])}},"\u0275fac",function(P){return new(P||b)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(b,"\u0275cmp",c.VBU({type:b,selectors:[["ion-refresher"]],inputs:{closeDuration:"closeDuration",disabled:"disabled",mode:"mode",pullFactor:"pullFactor",pullMax:"pullMax",pullMin:"pullMin",snapbackDuration:"snapbackDuration"},ngContentSelectors:xe,decls:1,vars:0,template:function(P,Ee){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),b);return j=(0,U.Cg)([De({inputs:["closeDuration","disabled","mode","pullFactor","pullMax","pullMin","snapbackDuration"],methods:["complete","cancel","getProgress"]})],j),j})(),Ri=(()=>{var b;let j=((0,h.A)(b=class{constructor(P,Ee,it){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=it,P.detach(),this.el=Ee.nativeElement}},"\u0275fac",function(P){return new(P||b)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(b,"\u0275cmp",c.VBU({type:b,selectors:[["ion-refresher-content"]],inputs:{pullingIcon:"pullingIcon",pullingText:"pullingText",refreshingSpinner:"refreshingSpinner",refreshingText:"refreshingText"},ngContentSelectors:xe,decls:1,vars:0,template:function(P,Ee){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),b);return j=(0,U.Cg)([De({inputs:["pullingIcon","pullingText","refreshingSpinner","refreshingText"]})],j),j})(),te=(()=>{var b;let j=((0,h.A)(b=class{constructor(P,Ee,it){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=it,P.detach(),this.el=Ee.nativeElement}},"\u0275fac",function(P){return new(P||b)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(b,"\u0275cmp",c.VBU({type:b,selectors:[["ion-row"]],ngContentSelectors:xe,decls:1,vars:0,template:function(P,Ee){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),b);return j=(0,U.Cg)([De({})],j),j})(),At=(()=>{var b;let j=((0,h.A)(b=class{constructor(P,Ee,it){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=it,P.detach(),this.el=Ee.nativeElement,ve(this,this.el,["ionSplitPaneVisible"])}},"\u0275fac",function(P){return new(P||b)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(b,"\u0275cmp",c.VBU({type:b,selectors:[["ion-split-pane"]],inputs:{contentId:"contentId",disabled:"disabled",when:"when"},ngContentSelectors:xe,decls:1,vars:0,template:function(P,Ee){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),b);return j=(0,U.Cg)([De({inputs:["contentId","disabled","when"]})],j),j})(),Un=(()=>{var b;let j=((0,h.A)(b=class{constructor(P,Ee,it){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=it,P.detach(),this.el=Ee.nativeElement,ve(this,this.el,["ionChange","ionInput","ionBlur","ionFocus"])}},"\u0275fac",function(P){return new(P||b)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(b,"\u0275cmp",c.VBU({type:b,selectors:[["ion-textarea"]],inputs:{autoGrow:"autoGrow",autocapitalize:"autocapitalize",autofocus:"autofocus",clearOnEdit:"clearOnEdit",color:"color",cols:"cols",counter:"counter",counterFormatter:"counterFormatter",debounce:"debounce",disabled:"disabled",enterkeyhint:"enterkeyhint",errorText:"errorText",fill:"fill",helperText:"helperText",inputmode:"inputmode",label:"label",labelPlacement:"labelPlacement",maxlength:"maxlength",minlength:"minlength",mode:"mode",name:"name",placeholder:"placeholder",readonly:"readonly",required:"required",rows:"rows",shape:"shape",spellcheck:"spellcheck",value:"value",wrap:"wrap"},ngContentSelectors:xe,decls:1,vars:0,template:function(P,Ee){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),b);return j=(0,U.Cg)([De({inputs:["autoGrow","autocapitalize","autofocus","clearOnEdit","color","cols","counter","counterFormatter","debounce","disabled","enterkeyhint","errorText","fill","helperText","inputmode","label","labelPlacement","maxlength","minlength","mode","name","placeholder","readonly","required","rows","shape","spellcheck","value","wrap"],methods:["setFocus","getInputElement"]})],j),j})(),On=(()=>{var b;let j=((0,h.A)(b=class{constructor(P,Ee,it){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=it,P.detach(),this.el=Ee.nativeElement}},"\u0275fac",function(P){return new(P||b)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(b,"\u0275cmp",c.VBU({type:b,selectors:[["ion-title"]],inputs:{color:"color",size:"size"},ngContentSelectors:xe,decls:1,vars:0,template:function(P,Ee){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),b);return j=(0,U.Cg)([De({inputs:["color","size"]})],j),j})(),zr=(()=>{var b;let j=((0,h.A)(b=class{constructor(P,Ee,it){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=it,P.detach(),this.el=Ee.nativeElement}},"\u0275fac",function(P){return new(P||b)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(b,"\u0275cmp",c.VBU({type:b,selectors:[["ion-toolbar"]],inputs:{color:"color",mode:"mode"},ngContentSelectors:xe,decls:1,vars:0,template:function(P,Ee){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),b);return j=(0,U.Cg)([De({inputs:["color","mode"]})],j),j})(),Tr=(()=>{var b;class j extends Oe.Rg{constructor(P,Ee,it,sr,ni,z,me,Ne){super(P,Ee,it,sr,ni,z,me,Ne),(0,h.A)(this,"parentOutlet",void 0),(0,h.A)(this,"outletContent",void 0),this.parentOutlet=Ne}}return b=j,(0,h.A)(j,"\u0275fac",function(P){return new(P||b)(c.kS0("name"),c.kS0("tabs"),c.rXU(oe.aZ),c.rXU(c.aKT),c.rXU(Xe.Ix),c.rXU(c.SKi),c.rXU(Xe.nX),c.rXU(b,12))}),(0,h.A)(j,"\u0275cmp",c.VBU({type:b,selectors:[["ion-router-outlet"]],viewQuery:function(P,Ee){if(1&P&&c.GBs(at,7,c.c1b),2&P){let it;c.mGM(it=c.lsd())&&(Ee.outletContent=it.first)}},features:[c.Vt3],ngContentSelectors:xe,decls:3,vars:0,consts:[["outletContent",""]],template:function(P,Ee){1&P&&(c.NAR(),c.qex(0,null,0),c.SdG(2),c.bVm())},encapsulation:2})),j})(),li=(()=>{var b;class j extends Oe.CE{}return b=j,(0,h.A)(j,"\u0275fac",(()=>{let re;return function(Ee){return(re||(re=c.xGo(b)))(Ee||b)}})()),(0,h.A)(j,"\u0275dir",c.FsC({type:b,selectors:[["","routerLink","",5,"a",5,"area"]],features:[c.Vt3]})),j})(),ei=(()=>{var b;class j extends Oe.pF{}return b=j,(0,h.A)(j,"\u0275fac",(()=>{let re;return function(Ee){return(re||(re=c.xGo(b)))(Ee||b)}})()),(0,h.A)(j,"\u0275dir",c.FsC({type:b,selectors:[["a","routerLink",""],["area","routerLink",""]],features:[c.Vt3]})),j})(),Lr=(()=>{var b;class j extends Oe.Sb{}return b=j,(0,h.A)(j,"\u0275fac",(()=>{let re;return function(Ee){return(re||(re=c.xGo(b)))(Ee||b)}})()),(0,h.A)(j,"\u0275cmp",c.VBU({type:b,selectors:[["ion-modal"]],features:[c.Vt3],decls:1,vars:1,consts:[["class","ion-delegate-host ion-page",4,"ngIf"],[1,"ion-delegate-host","ion-page"],[3,"ngTemplateOutlet"]],template:function(P,Ee){1&P&&c.DNE(0,tt,2,1,"div",0),2&P&&c.Y8G("ngIf",Ee.isCmpOpen||Ee.keepContentsMounted)},dependencies:[oe.bT,oe.T3],encapsulation:2,changeDetection:0})),j})();const Wn={provide:Z.cz,useExisting:(0,c.Rfq)(()=>Hn),multi:!0};let Hn=(()=>{var b;class j extends Z.zX{}return b=j,(0,h.A)(j,"\u0275fac",(()=>{let re;return function(Ee){return(re||(re=c.xGo(b)))(Ee||b)}})()),(0,h.A)(j,"\u0275dir",c.FsC({type:b,selectors:[["ion-input","type","number","max","","formControlName",""],["ion-input","type","number","max","","formControl",""],["ion-input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(P,Ee){2&P&&c.BMQ("max",Ee._enabled?Ee.max:null)},features:[c.Jv_([Wn]),c.Vt3]})),j})();const ao={provide:Z.cz,useExisting:(0,c.Rfq)(()=>ui),multi:!0};let ui=(()=>{var b;class j extends Z.VZ{}return b=j,(0,h.A)(j,"\u0275fac",(()=>{let re;return function(Ee){return(re||(re=c.xGo(b)))(Ee||b)}})()),(0,h.A)(j,"\u0275dir",c.FsC({type:b,selectors:[["ion-input","type","number","min","","formControlName",""],["ion-input","type","number","min","","formControl",""],["ion-input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(P,Ee){2&P&&c.BMQ("min",Ee._enabled?Ee.min:null)},features:[c.Jv_([ao]),c.Vt3]})),j})(),Ci=(()=>{var b;class j extends Oe.Kb{constructor(){super(St.a)}}return b=j,(0,h.A)(j,"\u0275fac",function(P){return new(P||b)}),(0,h.A)(j,"\u0275prov",c.jDH({token:b,factory:b.\u0275fac,providedIn:"root"})),j})(),bt=(()=>{var b;class j extends Oe.Kb{constructor(){super(St.l)}}return b=j,(0,h.A)(j,"\u0275fac",function(P){return new(P||b)}),(0,h.A)(j,"\u0275prov",c.jDH({token:b,factory:b.\u0275fac,providedIn:"root"})),j})(),he=(()=>{var b;class j extends Oe._t{constructor(){super(Dt.m)}}return b=j,(0,h.A)(j,"\u0275fac",function(P){return new(P||b)}),(0,h.A)(j,"\u0275prov",c.jDH({token:b,factory:b.\u0275fac,providedIn:"root"})),j})(),le=(()=>{var b;class j extends Oe.Kb{constructor(){super(St.m),(0,h.A)(this,"angularDelegate",(0,c.WQX)(Oe.Yq)),(0,h.A)(this,"injector",(0,c.WQX)(c.zZn)),(0,h.A)(this,"environmentInjector",(0,c.WQX)(c.uvJ))}create(P){return super.create({...P,delegate:this.angularDelegate.create(this.environmentInjector,this.injector,"modal")})}}return b=j,(0,h.A)(j,"\u0275fac",function(P){return new(P||b)}),(0,h.A)(j,"\u0275prov",c.jDH({token:b,factory:b.\u0275fac})),j})();class $e extends Oe.Kb{constructor(){super(St.c),(0,h.A)(this,"angularDelegate",(0,c.WQX)(Oe.Yq)),(0,h.A)(this,"injector",(0,c.WQX)(c.zZn)),(0,h.A)(this,"environmentInjector",(0,c.WQX)(c.uvJ))}create(j){return super.create({...j,delegate:this.angularDelegate.create(this.environmentInjector,this.injector,"popover")})}}const ot=(b,j,re)=>()=>{const P=j.defaultView;if(P&&typeof window<"u"){(0,ht.s)({...b,_zoneGate:it=>re.run(it)});const Ee="__zone_symbol__addEventListener"in j.body?"__zone_symbol__addEventListener":"addEventListener";return function Ye(){var b=[];if(typeof window<"u"){var j=window;(!j.customElements||j.Element&&(!j.Element.prototype.closest||!j.Element.prototype.matches||!j.Element.prototype.remove||!j.Element.prototype.getRootNode))&&b.push(S.e(7278).then(S.t.bind(S,2190,23))),("function"!=typeof Object.assign||!Object.entries||!Array.prototype.find||!Array.prototype.includes||!String.prototype.startsWith||!String.prototype.endsWith||j.NodeList&&!j.NodeList.prototype.forEach||!j.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")&&b.push(S.e(9329).then(S.t.bind(S,7783,23)))}return Promise.all(b)}().then(()=>Fe(P,{exclude:["ion-tabs","ion-tab"],syncQueue:!0,raf:Oe.er,jmp:it=>re.runOutsideAngular(it),ael(it,sr,ni,z){it[Ee](sr,ni,z)},rel(it,sr,ni,z){it.removeEventListener(sr,ni,z)}}))}};let Fn=(()=>{var b;class j{static forRoot(P={}){return{ngModule:j,providers:[{provide:Oe.sR,useValue:P},{provide:c.hnV,useFactory:ot,multi:!0,deps:[Oe.sR,oe.qQ,c.SKi]},Oe.Yq,(0,Oe.YV)()]}}}return b=j,(0,h.A)(j,"\u0275fac",function(P){return new(P||b)}),(0,h.A)(j,"\u0275mod",c.$C({type:b})),(0,h.A)(j,"\u0275inj",c.G2t({providers:[le,$e],imports:[oe.MD]})),j})()},2214:(Tn,gt,S)=>{"use strict";S.d(gt,{Dk:()=>h.Dk,KO:()=>h.KO,Sx:()=>h.Sx,Wp:()=>h.Wp});var h=S(7852);(0,h.KO)("firebase","10.12.2","app")},2820:(Tn,gt,S)=>{"use strict";S.d(gt,{$P:()=>St,sN:()=>yt,eS:()=>_t});var h=S(467),c=S(4438),Z=S(2771),Oe=S(8359),U=S(1413),ue=S(3236),oe=S(1985),Xe=S(9974),Je=S(4360),Se=S(8750),Qe=S(1584);var qe=S(5558);class ht{constructor(){this.subject=new Z.m(1),this.subscriptions=new Oe.yU}doFilter(Me){this.subject.next(Me)}dispose(){this.subscriptions.unsubscribe()}notEmpty(Me,Ye){this.subscriptions.add(this.subject.subscribe(ge=>{if(ge[Me]){const Ue=ge[Me].currentValue;null!=Ue&&Ye(Ue)}}))}has(Me,Ye){this.subscriptions.add(this.subject.subscribe(ge=>{ge[Me]&&Ye(ge[Me].currentValue)}))}notFirst(Me,Ye){this.subscriptions.add(this.subject.subscribe(ge=>{ge[Me]&&!ge[Me].isFirstChange()&&Ye(ge[Me].currentValue)}))}notFirstAndEmpty(Me,Ye){this.subscriptions.add(this.subject.subscribe(ge=>{if(ge[Me]&&!ge[Me].isFirstChange()){const Ue=ge[Me].currentValue;null!=Ue&&Ye(Ue)}}))}}const Dt=new c.nKC("NGX_ECHARTS_CONFIG");let St=(()=>{var mt;class Me{constructor(ge,Ue,Fe){this.el=Ue,this.ngZone=Fe,this.options=null,this.theme=null,this.initOpts=null,this.merge=null,this.autoResize=!0,this.loading=!1,this.loadingType="default",this.loadingOpts=null,this.chartInit=new c.bkB,this.optionsError=new c.bkB,this.chartClick=this.createLazyEvent("click"),this.chartDblClick=this.createLazyEvent("dblclick"),this.chartMouseDown=this.createLazyEvent("mousedown"),this.chartMouseMove=this.createLazyEvent("mousemove"),this.chartMouseUp=this.createLazyEvent("mouseup"),this.chartMouseOver=this.createLazyEvent("mouseover"),this.chartMouseOut=this.createLazyEvent("mouseout"),this.chartGlobalOut=this.createLazyEvent("globalout"),this.chartContextMenu=this.createLazyEvent("contextmenu"),this.chartHighlight=this.createLazyEvent("highlight"),this.chartDownplay=this.createLazyEvent("downplay"),this.chartSelectChanged=this.createLazyEvent("selectchanged"),this.chartLegendSelectChanged=this.createLazyEvent("legendselectchanged"),this.chartLegendSelected=this.createLazyEvent("legendselected"),this.chartLegendUnselected=this.createLazyEvent("legendunselected"),this.chartLegendLegendSelectAll=this.createLazyEvent("legendselectall"),this.chartLegendLegendInverseSelect=this.createLazyEvent("legendinverseselect"),this.chartLegendScroll=this.createLazyEvent("legendscroll"),this.chartDataZoom=this.createLazyEvent("datazoom"),this.chartDataRangeSelected=this.createLazyEvent("datarangeselected"),this.chartGraphRoam=this.createLazyEvent("graphroam"),this.chartGeoRoam=this.createLazyEvent("georoam"),this.chartTreeRoam=this.createLazyEvent("treeroam"),this.chartTimelineChanged=this.createLazyEvent("timelinechanged"),this.chartTimelinePlayChanged=this.createLazyEvent("timelineplaychanged"),this.chartRestore=this.createLazyEvent("restore"),this.chartDataViewChanged=this.createLazyEvent("dataviewchanged"),this.chartMagicTypeChanged=this.createLazyEvent("magictypechanged"),this.chartGeoSelectChanged=this.createLazyEvent("geoselectchanged"),this.chartGeoSelected=this.createLazyEvent("geoselected"),this.chartGeoUnselected=this.createLazyEvent("geounselected"),this.chartAxisAreaSelected=this.createLazyEvent("axisareaselected"),this.chartBrush=this.createLazyEvent("brush"),this.chartBrushEnd=this.createLazyEvent("brushend"),this.chartBrushSelected=this.createLazyEvent("brushselected"),this.chartGlobalCursorTaken=this.createLazyEvent("globalcursortaken"),this.chartRendered=this.createLazyEvent("rendered"),this.chartFinished=this.createLazyEvent("finished"),this.animationFrameID=null,this.chart$=new Z.m(1),this.resize$=new U.B,this.changeFilter=new ht,this.resizeObFired=!1,this.echarts=ge.echarts,this.theme=ge.theme||null}ngOnChanges(ge){this.changeFilter.doFilter(ge)}ngOnInit(){if(!window.ResizeObserver)throw new Error("please install a polyfill for ResizeObserver");this.resizeSub=this.resize$.pipe(function Ze(mt,Me=ue.E,Ye){const ge=(0,Qe.O)(mt,Me);return function Ce(mt,Me){return(0,Xe.N)((Ye,ge)=>{const{leading:Ue=!0,trailing:Fe=!1}=null!=Me?Me:{};let xe=!1,at=null,Rt=null,vn=!1;const Nt=()=>{null==Rt||Rt.unsubscribe(),Rt=null,Fe&&(dt(),vn&&ge.complete())},tt=()=>{Rt=null,vn&&ge.complete()},on=we=>Rt=(0,Se.Tg)(mt(we)).subscribe((0,Je._)(ge,Nt,tt)),dt=()=>{if(xe){xe=!1;const we=at;at=null,ge.next(we),!vn&&on(we)}};Ye.subscribe((0,Je._)(ge,we=>{xe=!0,at=we,(!Rt||Rt.closed)&&(Ue?dt():on(we))},()=>{vn=!0,(!(Fe&&xe&&Rt)||Rt.closed)&&ge.complete()}))})}(()=>ge,Ye)}(100,ue.E,{leading:!1,trailing:!0})).subscribe(()=>this.resize()),this.autoResize&&(this.resizeOb=this.ngZone.runOutsideAngular(()=>new window.ResizeObserver(ge=>{for(const Ue of ge)Ue.target===this.el.nativeElement&&(this.resizeObFired?this.animationFrameID=window.requestAnimationFrame(()=>{this.resize$.next()}):this.resizeObFired=!0)})),this.resizeOb.observe(this.el.nativeElement)),this.changeFilter.notFirstAndEmpty("options",ge=>this.onOptionsChange(ge)),this.changeFilter.notFirstAndEmpty("merge",ge=>this.setOption(ge)),this.changeFilter.has("loading",ge=>this.toggleLoading(!!ge)),this.changeFilter.notFirst("theme",()=>this.refreshChart())}ngOnDestroy(){window.clearTimeout(this.initChartTimer),this.resizeSub&&this.resizeSub.unsubscribe(),this.animationFrameID&&window.cancelAnimationFrame(this.animationFrameID),this.resizeOb&&this.resizeOb.unobserve(this.el.nativeElement),this.loadingSub&&this.loadingSub.unsubscribe(),this.changeFilter.dispose(),this.dispose()}ngAfterViewInit(){this.initChartTimer=window.setTimeout(()=>this.initChart())}dispose(){this.chart&&(this.chart.isDisposed()||this.chart.dispose(),this.chart=null)}resize(){this.chart&&this.chart.resize()}toggleLoading(ge){this.chart?ge?this.chart.showLoading(this.loadingType,this.loadingOpts):this.chart.hideLoading():this.loadingSub=this.chart$.subscribe(Ue=>ge?Ue.showLoading(this.loadingType,this.loadingOpts):Ue.hideLoading())}setOption(ge,Ue){if(this.chart)try{this.chart.setOption(ge,Ue)}catch(Fe){console.error(Fe),this.optionsError.emit(Fe)}}refreshChart(){var ge=this;return(0,h.A)(function*(){ge.dispose(),yield ge.initChart()})()}createChart(){const ge=this.el.nativeElement;if(window&&window.getComputedStyle){const Ue=window.getComputedStyle(ge,null).getPropertyValue("height");(!Ue||"0px"===Ue)&&(!ge.style.height||"0px"===ge.style.height)&&(ge.style.height="400px")}return this.ngZone.runOutsideAngular(()=>("function"==typeof this.echarts?this.echarts:()=>Promise.resolve(this.echarts))().then(({init:Fe})=>Fe(ge,this.theme,this.initOpts)))}initChart(){var ge=this;return(0,h.A)(function*(){yield ge.onOptionsChange(ge.options),ge.merge&&ge.chart&&ge.setOption(ge.merge)})()}onOptionsChange(ge){var Ue=this;return(0,h.A)(function*(){ge&&(Ue.chart||(Ue.chart=yield Ue.createChart(),Ue.chart$.next(Ue.chart),Ue.chartInit.emit(Ue.chart)),Ue.setOption(Ue.options,!0))})()}createLazyEvent(ge){return this.chartInit.pipe((0,qe.n)(Ue=>new oe.c(Fe=>(Ue.on(ge,xe=>this.ngZone.run(()=>Fe.next(xe))),()=>{this.chart&&(this.chart.isDisposed()||Ue.off(ge))}))))}}return(mt=Me).\u0275fac=function(ge){return new(ge||mt)(c.rXU(Dt),c.rXU(c.aKT),c.rXU(c.SKi))},mt.\u0275dir=c.FsC({type:mt,selectors:[["echarts"],["","echarts",""]],inputs:{options:"options",theme:"theme",initOpts:"initOpts",merge:"merge",autoResize:"autoResize",loading:"loading",loadingType:"loadingType",loadingOpts:"loadingOpts"},outputs:{chartInit:"chartInit",optionsError:"optionsError",chartClick:"chartClick",chartDblClick:"chartDblClick",chartMouseDown:"chartMouseDown",chartMouseMove:"chartMouseMove",chartMouseUp:"chartMouseUp",chartMouseOver:"chartMouseOver",chartMouseOut:"chartMouseOut",chartGlobalOut:"chartGlobalOut",chartContextMenu:"chartContextMenu",chartHighlight:"chartHighlight",chartDownplay:"chartDownplay",chartSelectChanged:"chartSelectChanged",chartLegendSelectChanged:"chartLegendSelectChanged",chartLegendSelected:"chartLegendSelected",chartLegendUnselected:"chartLegendUnselected",chartLegendLegendSelectAll:"chartLegendLegendSelectAll",chartLegendLegendInverseSelect:"chartLegendLegendInverseSelect",chartLegendScroll:"chartLegendScroll",chartDataZoom:"chartDataZoom",chartDataRangeSelected:"chartDataRangeSelected",chartGraphRoam:"chartGraphRoam",chartGeoRoam:"chartGeoRoam",chartTreeRoam:"chartTreeRoam",chartTimelineChanged:"chartTimelineChanged",chartTimelinePlayChanged:"chartTimelinePlayChanged",chartRestore:"chartRestore",chartDataViewChanged:"chartDataViewChanged",chartMagicTypeChanged:"chartMagicTypeChanged",chartGeoSelectChanged:"chartGeoSelectChanged",chartGeoSelected:"chartGeoSelected",chartGeoUnselected:"chartGeoUnselected",chartAxisAreaSelected:"chartAxisAreaSelected",chartBrush:"chartBrush",chartBrushEnd:"chartBrushEnd",chartBrushSelected:"chartBrushSelected",chartGlobalCursorTaken:"chartGlobalCursorTaken",chartRendered:"chartRendered",chartFinished:"chartFinished"},exportAs:["echarts"],standalone:!0,features:[c.OA$]}),Me})();const _t=(mt={})=>({provide:Dt,useFactory:()=>({...mt,echarts:()=>S.e(9697).then(S.bind(S,9697))})}),Tt=mt=>({provide:Dt,useValue:mt});let yt=(()=>{var mt;class Me{static forRoot(ge){return{ngModule:Me,providers:[Tt(ge)]}}static forChild(){return{ngModule:Me}}}return(mt=Me).\u0275fac=function(ge){return new(ge||mt)},mt.\u0275mod=c.$C({type:mt}),mt.\u0275inj=c.G2t({}),Me})()},7616:(Tn,gt,S)=>{"use strict";S.d(gt,{E:()=>Me,n:()=>Ye});var h=S(4438),c=S(177);const Z=["flamegraph-node",""];function Oe(ge,Ue){if(1&ge){const Fe=h.RV6();h.j41(0,"div",2)(1,"div",3),h.EFF(2),h.k0s(),h.j41(3,"div",2),h.qSk(),h.j41(4,"svg",4)(5,"g",5),h.bIt("click",function(){const at=h.eBV(Fe).$implicit,Rt=h.XpG();return h.Njj(Rt.frameClick.emit(at.original))})("mouseOverZoneless",function(){const at=h.eBV(Fe).$implicit,Rt=h.XpG();return h.Njj(Rt.frameMouseEnter.emit(at.original))})("mouseLeaveZoneless",function(){const at=h.eBV(Fe).$implicit,Rt=h.XpG();return h.Njj(Rt.frameMouseLeave.emit(at.original))})("zoom",function(){const at=h.eBV(Fe).$implicit,Rt=h.XpG();return h.Njj(Rt.zoom.emit(at))}),h.k0s()()()()}if(2&ge){const Fe=Ue.$implicit,xe=h.XpG();h.xc7("position","absolute")("transform","translate("+xe.getLeft(Fe)+"px,"+xe.getTop(Fe)+"px)")("height",xe.levelHeight,"px"),h.AVh("hide-bar",!(void 0===xe.minimumBarSize||xe.getWidth(Fe)>xe.minimumBarSize)),h.R7$(),h.xc7("width",xe.getWidth(Fe),"px"),h.R7$(),h.SpI(" ",Fe.label," "),h.R7$(),h.xc7("transform","scaleX("+xe.getWidth(Fe)/xe.width+")")("height",xe.levelHeight,"px"),h.R7$(2),h.Y8G("height",xe.levelHeight)("navigable",Fe.navigable)("color",Fe.color)}}function U(ge,Ue){if(1&ge){const Fe=h.RV6();h.j41(0,"ngx-flamegraph-graph",1),h.bIt("frameClick",function(at){h.eBV(Fe);const Rt=h.XpG();return h.Njj(Rt.frameClick.emit(at))})("frameMouseEnter",function(at){h.eBV(Fe);const Rt=h.XpG();return h.Njj(Rt.onFrameMouseEnter(at))})("frameMouseLeave",function(at){h.eBV(Fe);const Rt=h.XpG();return h.Njj(Rt.onFrameMouseLeave(at))})("zoom",function(at){h.eBV(Fe);const Rt=h.XpG();return h.Njj(Rt.onZoom(at))}),h.k0s()}if(2&ge){const Fe=h.XpG();h.xc7("height",Fe.depth*Fe.levelHeight,"px")("width",Fe.width,"px"),h.Y8G("layout",Fe.siblingLayout)("data",Fe.entries)("depth",Fe.depth)("levelHeight",Fe.levelHeight)("width",Fe.width)("minimumBarSize",Fe.minimumBarSize)}}const ue=ge=>ge.reduce((Ue,Fe)=>Math.max(Ue,Fe.value,ue(Fe.children||[])),-1/0),oe=([ge,Ue],Fe)=>ge+(Ue-ge)*Fe,Xe=(ge,Ue,Fe,xe,at=null,Rt=0,vn=1,Nt=0)=>{const tt=[];let on=0;ge.forEach(we=>{on+=we.value});const dt=[];return ge.forEach(we=>{var H,X,fe;let se=vn/ge.length;"relative"===Ue&&(se=we.value/on*vn||0);const ve=Math.min(we.value/Fe,1),Le=we.color||`hsl(${null!==(H=oe(xe.hue,ve))&&void 0!==H?H:0}, ${null!==(X=oe(xe.saturation,ve))&&void 0!==X?X:80}%, ${null!==(fe=oe(xe.lightness,ve))&&void 0!==fe?fe:0}%)`,Wt={label:we.label,value:we.value,siblings:dt,color:Le,widthRatio:se,originalWidthRatio:se,originalLeftRatio:Rt,leftRatio:Rt,navigable:!1,rowNumber:Nt,original:we,children:[],parent:at};at&&at.children.push(Wt);const dn=Xe(we.children||[],Ue,Fe,xe,Wt,Rt,se,Nt+1);dt.push(Wt),tt.push(Wt,...dn),Rt+=se}),tt},Je=ge=>{if(!ge||!ge.length)return 0;let Ue=0;for(const Fe of ge)Ue=Math.max(1+Je(Fe.children),Ue);return Ue},Qe=(ge,Ue)=>{Ue.widthRatio=0,Ue.leftRatio=ge,Ue.children.forEach(Fe=>Qe(ge,Fe))},Ze=ge=>{const Ue=ge.siblings.indexOf(ge);for(let Fe=0;Fe{let at=0;ge.forEach(Rt=>{at+=Rt.value}),ge.forEach(Rt=>{let vn=Rt.value/at*xe;"equal"===Ue&&(vn=xe/ge.length),Rt.widthRatio=vn,Rt.leftRatio=Fe,ht(Rt.children,Ue,Fe,vn),Fe+=vn})},Dt=ge=>{ge.navigable=!1,ge.leftRatio=ge.originalLeftRatio,ge.widthRatio=ge.originalWidthRatio,ge.children.forEach(Dt)},_t={hue:[50,0],saturation:[80,80],lightness:[55,60]};let Tt=(()=>{class ge{constructor(Fe,xe,at){this._ngZone=Fe,this._element=xe,this._renderer=at,this.navigable=!1,this.zoom=new h.bkB,this.mouseOverZoneless=new h.bkB,this.mouseLeaveZoneless=new h.bkB}ngOnInit(){this._ngZone.runOutsideAngular(()=>{this.mouseOverTeardownFn=this._renderer.listen(this._element.nativeElement,"mouseover",Fe=>this.mouseOverZoneless.emit(Fe)),this.mouseLeaveTeardownFn=this._renderer.listen(this._element.nativeElement,"mouseleave",Fe=>this.mouseLeaveZoneless.emit(Fe))})}ngOnDestroy(){this.mouseOverTeardownFn(),this.mouseLeaveTeardownFn()}}return ge.\u0275fac=function(Fe){return new(Fe||ge)(h.rXU(h.SKi),h.rXU(h.aKT),h.rXU(h.sFG))},ge.\u0275cmp=h.VBU({type:ge,selectors:[["","flamegraph-node",""]],inputs:{height:"height",navigable:"navigable",color:"color"},outputs:{zoom:"zoom",mouseOverZoneless:"mouseOverZoneless",mouseLeaveZoneless:"mouseLeaveZoneless"},attrs:Z,decls:1,vars:4,consts:[["stroke","white","stroke-width","1px","pointer-events","all","width","100%","rx","1","ry","1",1,"ngx-fg-rect",3,"dblclick"]],template:function(Fe,xe){1&Fe&&(h.qSk(),h.j41(0,"rect",0),h.bIt("dblclick",function(){return xe.zoom.emit()}),h.k0s()),2&Fe&&(h.AVh("ngx-fg-navigable",xe.navigable),h.BMQ("height",xe.height)("fill",xe.color))},styles:[".ngx-fg-navigable{opacity:.5}\n"],encapsulation:2,changeDetection:0}),ge})(),yt=(()=>{class ge{constructor(){this.selectedData=[],this.entries=[],this.frameClick=new h.bkB,this.frameMouseEnter=new h.bkB,this.frameMouseLeave=new h.bkB,this.zoom=new h.bkB}set data(Fe){this.entries=Fe}get height(){return this.levelHeight*this.depth}getTop(Fe){return Fe.rowNumber*this.levelHeight}getLeft(Fe){return Fe.leftRatio*this.width}getWidth(Fe){return Fe.widthRatio*this.width||0}}return ge.\u0275fac=function(Fe){return new(Fe||ge)},ge.\u0275cmp=h.VBU({type:ge,selectors:[["ngx-flamegraph-graph"]],inputs:{width:"width",levelHeight:"levelHeight",layout:"layout",depth:"depth",minimumBarSize:"minimumBarSize",data:"data"},outputs:{frameClick:"frameClick",frameMouseEnter:"frameMouseEnter",frameMouseLeave:"frameMouseLeave",zoom:"zoom"},decls:2,vars:3,consts:[[1,"ngx-fg-chart-wrapper"],["class","svg-wrapper",3,"hide-bar","position","transform","height",4,"ngFor","ngForOf"],[1,"svg-wrapper"],[1,"bar-text"],["width","100%","height","100%",1,"ngx-fg-svg"],["flamegraph-node","",1,"ngx-fg-svg-g",3,"click","mouseOverZoneless","mouseLeaveZoneless","zoom","height","navigable","color"]],template:function(Fe,xe){1&Fe&&(h.j41(0,"div",0),h.DNE(1,Oe,6,18,"div",1),h.k0s()),2&Fe&&(h.AVh("ngx-fg-grayscale",xe.selectedData&&xe.selectedData.length),h.R7$(),h.Y8G("ngForOf",xe.entries))},dependencies:[c.Sq,Tt],styles:[".ngx-fg-svg{pointer-events:none}ngx-flamegraph-graph{position:absolute;display:block;overflow:hidden}.svg-wrapper{width:100%;transform-origin:left}.svg-wrapper{transition:transform .333s ease-in-out,opacity .333s ease-in-out}.bar-text{position:absolute;z-index:1;overflow:hidden;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;color:#fff;padding:5px;font-family:sans-serif;font-size:80%}.hide-bar{opacity:0;pointer-events:none}\n"],encapsulation:2,changeDetection:0}),ge})();const mt=typeof ResizeObserver<"u";let Me=(()=>{class ge{constructor(Fe,xe,at){this._el=Fe,this.cdr=xe,this._ngZone=at,this.entries=[],this.depth=0,this.frameClick=new h.bkB,this.frameMouseEnter=new h.bkB,this.frameMouseLeave=new h.bkB,this.siblingLayout="relative",this.width=null,this.levelHeight=25}set config(Fe){var xe,at;this._data=Fe.data,this._colors=null!==(xe=Fe.color)&&void 0!==xe?xe:_t,this.minimumBarSize=null!==(at=Fe.minimumBarSize)&&void 0!==at?at:2,this._refresh()}get hostStyles(){return`height: ${this.depth*this.levelHeight}px `}ngOnInit(){var Fe;const xe=null===(Fe=this._el.nativeElement)||void 0===Fe?void 0:Fe.parentElement;xe&&null===this.width&&mt&&(this._resizeObserver=new ResizeObserver(()=>this._ngZone.run(()=>this._onParentResize())),this._resizeObserver.observe(xe))}ngOnDestroy(){var Fe;const xe=null===(Fe=this._el.nativeElement)||void 0===Fe?void 0:Fe.parentElement;xe&&this._resizeObserver&&mt&&this._resizeObserver.unobserve(xe)}_onParentResize(){var Fe;const xe=null===(Fe=this._el.nativeElement)||void 0===Fe?void 0:Fe.parentElement;xe&&(this.width=xe.clientWidth,this.cdr.markForCheck())}_refresh(){const{hue:Fe,saturation:xe,lightness:at}=this._colors,Rt={hue:Array.isArray(Fe)?Fe:[Fe,Fe],saturation:Array.isArray(xe)?xe:[xe,xe],lightness:Array.isArray(at)?at:[at,at]};this.entries=Xe(this._data,this.siblingLayout,ue(this._data),Rt),this.depth=Je(this._data)}onZoom(Fe){Fe.navigable&&Dt(Fe),((ge,Ue)=>{let Fe=ge;for(;Fe;)Fe.widthRatio=1,Fe.leftRatio=0,Ze(Fe),Fe=Fe.parent,Fe&&(Fe.navigable=!0);ht(ge.children,Ue)})(Fe,this.siblingLayout)}onFrameMouseEnter(Fe){0!==this.frameMouseEnter.observers.length&&this._ngZone.run(()=>this.frameMouseEnter.emit(Fe))}onFrameMouseLeave(Fe){0!==this.frameMouseLeave.observers.length&&this._ngZone.run(()=>this.frameMouseLeave.emit(Fe))}}return ge.\u0275fac=function(Fe){return new(Fe||ge)(h.rXU(h.aKT),h.rXU(h.gRc),h.rXU(h.SKi))},ge.\u0275cmp=h.VBU({type:ge,selectors:[["ngx-flamegraph"]],hostVars:1,hostBindings:function(Fe,xe){2&Fe&&h.BMQ("style",xe.hostStyles,h.$dS)},inputs:{siblingLayout:"siblingLayout",width:"width",levelHeight:"levelHeight",config:"config"},outputs:{frameClick:"frameClick",frameMouseEnter:"frameMouseEnter",frameMouseLeave:"frameMouseLeave"},decls:1,vars:1,consts:[[3,"layout","data","depth","levelHeight","width","height","minimumBarSize","frameClick","frameMouseEnter","frameMouseLeave","zoom",4,"ngIf"],[3,"frameClick","frameMouseEnter","frameMouseLeave","zoom","layout","data","depth","levelHeight","width","minimumBarSize"]],template:function(Fe,xe){1&Fe&&h.DNE(0,U,1,10,"ngx-flamegraph-graph",0),2&Fe&&h.Y8G("ngIf",null!==xe.width)},dependencies:[c.bT,yt],styles:["ngx-flamegraph{display:block}\n"],encapsulation:2,changeDetection:0}),ge})(),Ye=(()=>{class ge{}return ge.\u0275fac=function(Fe){return new(Fe||ge)},ge.\u0275mod=h.$C({type:ge}),ge.\u0275inj=h.G2t({imports:[c.MD]}),ge})()},9549:(Tn,gt,S)=>{"use strict";S.d(gt,{NN:()=>ao,y2:()=>No});var h=S(467),c=S(177),Z=S(4438),Oe=S(1413),U=S(7786),ue=S(7673),oe=S(1584),Xe=S(5558),Je=S(3703),Se=S(3294),Ce=S(2771),Qe=S(8750),Ze=S(7707),qe=S(9974);function Dt(bt,he,...le){if(!0===he)return void bt();if(!1===he)return;const W=new Ze.Ms({next:()=>{W.unsubscribe(),bt()}});return(0,Qe.Tg)(he(...le)).subscribe(W)}var _t=S(9172),Tt=S(6354),yt=S(6977);function ge(bt,he,le){if("function"==typeof bt?bt===he:bt.has(he))return arguments.length<3?he:le;throw new TypeError("Private element is not present on this object")}S(1594);var Ue=S(9842);let xe={async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null};function at(bt){xe=bt}const Rt=/[&<>"']/,vn=new RegExp(Rt.source,"g"),Nt=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,tt=new RegExp(Nt.source,"g"),on={"&":"&","<":"<",">":">",'"':""","'":"'"},dt=bt=>on[bt];function we(bt,he){if(he){if(Rt.test(bt))return bt.replace(vn,dt)}else if(Nt.test(bt))return bt.replace(tt,dt);return bt}const H=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi,fe=/(^|[^\[])\^/g;function se(bt,he){let le="string"==typeof bt?bt:bt.source;he=he||"";const W={replace:($e,Ve)=>{let ot="string"==typeof Ve?Ve:Ve.source;return ot=ot.replace(fe,"$1"),le=le.replace($e,ot),W},getRegex:()=>new RegExp(le,he)};return W}function ve(bt){try{bt=encodeURI(bt).replace(/%25/g,"%")}catch{return null}return bt}const Le={exec:()=>null};function De(bt,he){const W=bt.replace(/\|/g,(Ve,ot,jt)=>{let In=!1,Fn=ot;for(;--Fn>=0&&"\\"===jt[Fn];)In=!In;return In?"|":" |"}).split(/ \|/);let $e=0;if(W[0].trim()||W.shift(),W.length>0&&!W[W.length-1].trim()&&W.pop(),he)if(W.length>he)W.splice(he);else for(;W.length0)return{type:"space",raw:le[0]}}code(he){const le=this.rules.block.code.exec(he);if(le){const W=le[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:le[0],codeBlockStyle:"indented",text:this.options.pedantic?W:Wt(W,"\n")}}}fences(he){const le=this.rules.block.fences.exec(he);if(le){const W=le[0],$e=function rn(bt,he){const le=bt.match(/^(\s+)(?:```)/);if(null===le)return he;const W=le[1];return he.split("\n").map($e=>{const Ve=$e.match(/^\s+/);if(null===Ve)return $e;const[ot]=Ve;return ot.length>=W.length?$e.slice(W.length):$e}).join("\n")}(W,le[3]||"");return{type:"code",raw:W,lang:le[2]?le[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):le[2],text:$e}}}heading(he){const le=this.rules.block.heading.exec(he);if(le){let W=le[2].trim();if(/#$/.test(W)){const $e=Wt(W,"#");(this.options.pedantic||!$e||/ $/.test($e))&&(W=$e.trim())}return{type:"heading",raw:le[0],depth:le[1].length,text:W,tokens:this.lexer.inline(W)}}}hr(he){const le=this.rules.block.hr.exec(he);if(le)return{type:"hr",raw:le[0]}}blockquote(he){const le=this.rules.block.blockquote.exec(he);if(le){let W=le[0].replace(/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,"\n $1");W=Wt(W.replace(/^ *>[ \t]?/gm,""),"\n");const $e=this.lexer.state.top;this.lexer.state.top=!0;const Ve=this.lexer.blockTokens(W);return this.lexer.state.top=$e,{type:"blockquote",raw:le[0],tokens:Ve,text:W}}}list(he){let le=this.rules.block.list.exec(he);if(le){let W=le[1].trim();const $e=W.length>1,Ve={type:"list",raw:"",ordered:$e,start:$e?+W.slice(0,-1):"",loose:!1,items:[]};W=$e?`\\d{1,9}\\${W.slice(-1)}`:`\\${W}`,this.options.pedantic&&(W=$e?W:"[*+-]");const ot=new RegExp(`^( {0,3}${W})((?:[\t ][^\\n]*)?(?:\\n|$))`);let jt="",In="",Fn=!1;for(;he;){let b=!1;if(!(le=ot.exec(he))||this.rules.block.hr.test(he))break;jt=le[0],he=he.substring(jt.length);let j=le[2].split("\n",1)[0].replace(/^\t+/,ni=>" ".repeat(3*ni.length)),re=he.split("\n",1)[0],P=0;this.options.pedantic?(P=2,In=j.trimStart()):(P=le[2].search(/[^ ]/),P=P>4?1:P,In=j.slice(P),P+=le[1].length);let Ee=!1;if(!j&&/^ *$/.test(re)&&(jt+=re+"\n",he=he.substring(re.length+1),b=!0),!b){const ni=new RegExp(`^ {0,${Math.min(3,P-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\n]*)?(?:\\n|$))`),z=new RegExp(`^ {0,${Math.min(3,P-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),me=new RegExp(`^ {0,${Math.min(3,P-1)}}(?:\`\`\`|~~~)`),Ne=new RegExp(`^ {0,${Math.min(3,P-1)}}#`);for(;he;){const et=he.split("\n",1)[0];if(re=et,this.options.pedantic&&(re=re.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),me.test(re)||Ne.test(re)||ni.test(re)||z.test(he))break;if(re.search(/[^ ]/)>=P||!re.trim())In+="\n"+re.slice(P);else{if(Ee||j.search(/[^ ]/)>=4||me.test(j)||Ne.test(j)||z.test(j))break;In+="\n"+re}!Ee&&!re.trim()&&(Ee=!0),jt+=et+"\n",he=he.substring(et.length+1),j=re.slice(P)}}Ve.loose||(Fn?Ve.loose=!0:/\n *\n *$/.test(jt)&&(Fn=!0));let sr,it=null;this.options.gfm&&(it=/^\[[ xX]\] /.exec(In),it&&(sr="[ ] "!==it[0],In=In.replace(/^\[[ xX]\] +/,""))),Ve.items.push({type:"list_item",raw:jt,task:!!it,checked:sr,loose:!1,text:In,tokens:[]}),Ve.raw+=jt}Ve.items[Ve.items.length-1].raw=jt.trimEnd(),Ve.items[Ve.items.length-1].text=In.trimEnd(),Ve.raw=Ve.raw.trimEnd();for(let b=0;b"space"===P.type),re=j.length>0&&j.some(P=>/\n.*\n/.test(P.raw));Ve.loose=re}if(Ve.loose)for(let b=0;b$/,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",Ve=le[3]?le[3].substring(1,le[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):le[3];return{type:"def",tag:W,raw:le[0],href:$e,title:Ve}}}table(he){const le=this.rules.block.table.exec(he);if(!le||!/[:|]/.test(le[2]))return;const W=De(le[1]),$e=le[2].replace(/^\||\| *$/g,"").split("|"),Ve=le[3]&&le[3].trim()?le[3].replace(/\n[ \t]*$/,"").split("\n"):[],ot={type:"table",raw:le[0],header:[],align:[],rows:[]};if(W.length===$e.length){for(const jt of $e)/^ *-+: *$/.test(jt)?ot.align.push("right"):/^ *:-+: *$/.test(jt)?ot.align.push("center"):/^ *:-+ *$/.test(jt)?ot.align.push("left"):ot.align.push(null);for(const jt of W)ot.header.push({text:jt,tokens:this.lexer.inline(jt)});for(const jt of Ve)ot.rows.push(De(jt,ot.header.length).map(In=>({text:In,tokens:this.lexer.inline(In)})));return ot}}lheading(he){const le=this.rules.block.lheading.exec(he);if(le)return{type:"heading",raw:le[0],depth:"="===le[2].charAt(0)?1:2,text:le[1],tokens:this.lexer.inline(le[1])}}paragraph(he){const le=this.rules.block.paragraph.exec(he);if(le){const W="\n"===le[1].charAt(le[1].length-1)?le[1].slice(0,-1):le[1];return{type:"paragraph",raw:le[0],text:W,tokens:this.lexer.inline(W)}}}text(he){const le=this.rules.block.text.exec(he);if(le)return{type:"text",raw:le[0],text:le[0],tokens:this.lexer.inline(le[0])}}escape(he){const le=this.rules.inline.escape.exec(he);if(le)return{type:"escape",raw:le[0],text:we(le[1])}}tag(he){const le=this.rules.inline.tag.exec(he);if(le)return!this.lexer.state.inLink&&/^
    /i.test(le[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(le[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(le[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:le[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:le[0]}}link(he){const le=this.rules.inline.link.exec(he);if(le){const W=le[2].trim();if(!this.options.pedantic&&/^$/.test(W))return;const ot=Wt(W.slice(0,-1),"\\");if((W.length-ot.length)%2==0)return}else{const ot=function dn(bt,he){if(-1===bt.indexOf(he[1]))return-1;let le=0;for(let W=0;W-1){const In=(0===le[0].indexOf("!")?5:4)+le[1].length+ot;le[2]=le[2].substring(0,ot),le[0]=le[0].substring(0,In).trim(),le[3]=""}}let $e=le[2],Ve="";if(this.options.pedantic){const ot=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec($e);ot&&($e=ot[1],Ve=ot[3])}else Ve=le[3]?le[3].slice(1,-1):"";return $e=$e.trim(),/^$/.test(W)?$e.slice(1):$e.slice(1,-1)),Kt(le,{href:$e&&$e.replace(this.rules.inline.anyPunctuation,"$1"),title:Ve&&Ve.replace(this.rules.inline.anyPunctuation,"$1")},le[0],this.lexer)}}reflink(he,le){let W;if((W=this.rules.inline.reflink.exec(he))||(W=this.rules.inline.nolink.exec(he))){const Ve=le[(W[2]||W[1]).replace(/\s+/g," ").toLowerCase()];if(!Ve){const ot=W[0].charAt(0);return{type:"text",raw:ot,text:ot}}return Kt(W,Ve,W[0],this.lexer)}}emStrong(he,le,W=""){let $e=this.rules.inline.emStrongLDelim.exec(he);if(!(!$e||$e[3]&&W.match(/[0-9A-Za-z\xAA\xB2\xB3\xB5\xB9\xBA\xBC-\xBE\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u0660-\u0669\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0966-\u096F\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09F9\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AE6-\u0AEF\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B6F\u0B71-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0BE6-\u0BF2\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C66-\u0C6F\u0C78-\u0C7E\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D58-\u0D61\u0D66-\u0D78\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DE6-\u0DEF\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F20-\u0F33\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F-\u1049\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u1090-\u1099\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1369-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A20-\u1A54\u1A80-\u1A89\u1A90-\u1A99\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B50-\u1B59\u1B83-\u1BA0\u1BAE-\u1BE5\u1C00-\u1C23\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2070\u2071\u2074-\u2079\u207F-\u2089\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2150-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2CFD\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3192-\u3195\u31A0-\u31BF\u31F0-\u31FF\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA830-\uA835\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uA9E0-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC\u{10000}-\u{1000B}\u{1000D}-\u{10026}\u{10028}-\u{1003A}\u{1003C}\u{1003D}\u{1003F}-\u{1004D}\u{10050}-\u{1005D}\u{10080}-\u{100FA}\u{10107}-\u{10133}\u{10140}-\u{10178}\u{1018A}\u{1018B}\u{10280}-\u{1029C}\u{102A0}-\u{102D0}\u{102E1}-\u{102FB}\u{10300}-\u{10323}\u{1032D}-\u{1034A}\u{10350}-\u{10375}\u{10380}-\u{1039D}\u{103A0}-\u{103C3}\u{103C8}-\u{103CF}\u{103D1}-\u{103D5}\u{10400}-\u{1049D}\u{104A0}-\u{104A9}\u{104B0}-\u{104D3}\u{104D8}-\u{104FB}\u{10500}-\u{10527}\u{10530}-\u{10563}\u{10570}-\u{1057A}\u{1057C}-\u{1058A}\u{1058C}-\u{10592}\u{10594}\u{10595}\u{10597}-\u{105A1}\u{105A3}-\u{105B1}\u{105B3}-\u{105B9}\u{105BB}\u{105BC}\u{10600}-\u{10736}\u{10740}-\u{10755}\u{10760}-\u{10767}\u{10780}-\u{10785}\u{10787}-\u{107B0}\u{107B2}-\u{107BA}\u{10800}-\u{10805}\u{10808}\u{1080A}-\u{10835}\u{10837}\u{10838}\u{1083C}\u{1083F}-\u{10855}\u{10858}-\u{10876}\u{10879}-\u{1089E}\u{108A7}-\u{108AF}\u{108E0}-\u{108F2}\u{108F4}\u{108F5}\u{108FB}-\u{1091B}\u{10920}-\u{10939}\u{10980}-\u{109B7}\u{109BC}-\u{109CF}\u{109D2}-\u{10A00}\u{10A10}-\u{10A13}\u{10A15}-\u{10A17}\u{10A19}-\u{10A35}\u{10A40}-\u{10A48}\u{10A60}-\u{10A7E}\u{10A80}-\u{10A9F}\u{10AC0}-\u{10AC7}\u{10AC9}-\u{10AE4}\u{10AEB}-\u{10AEF}\u{10B00}-\u{10B35}\u{10B40}-\u{10B55}\u{10B58}-\u{10B72}\u{10B78}-\u{10B91}\u{10BA9}-\u{10BAF}\u{10C00}-\u{10C48}\u{10C80}-\u{10CB2}\u{10CC0}-\u{10CF2}\u{10CFA}-\u{10D23}\u{10D30}-\u{10D39}\u{10E60}-\u{10E7E}\u{10E80}-\u{10EA9}\u{10EB0}\u{10EB1}\u{10F00}-\u{10F27}\u{10F30}-\u{10F45}\u{10F51}-\u{10F54}\u{10F70}-\u{10F81}\u{10FB0}-\u{10FCB}\u{10FE0}-\u{10FF6}\u{11003}-\u{11037}\u{11052}-\u{1106F}\u{11071}\u{11072}\u{11075}\u{11083}-\u{110AF}\u{110D0}-\u{110E8}\u{110F0}-\u{110F9}\u{11103}-\u{11126}\u{11136}-\u{1113F}\u{11144}\u{11147}\u{11150}-\u{11172}\u{11176}\u{11183}-\u{111B2}\u{111C1}-\u{111C4}\u{111D0}-\u{111DA}\u{111DC}\u{111E1}-\u{111F4}\u{11200}-\u{11211}\u{11213}-\u{1122B}\u{1123F}\u{11240}\u{11280}-\u{11286}\u{11288}\u{1128A}-\u{1128D}\u{1128F}-\u{1129D}\u{1129F}-\u{112A8}\u{112B0}-\u{112DE}\u{112F0}-\u{112F9}\u{11305}-\u{1130C}\u{1130F}\u{11310}\u{11313}-\u{11328}\u{1132A}-\u{11330}\u{11332}\u{11333}\u{11335}-\u{11339}\u{1133D}\u{11350}\u{1135D}-\u{11361}\u{11400}-\u{11434}\u{11447}-\u{1144A}\u{11450}-\u{11459}\u{1145F}-\u{11461}\u{11480}-\u{114AF}\u{114C4}\u{114C5}\u{114C7}\u{114D0}-\u{114D9}\u{11580}-\u{115AE}\u{115D8}-\u{115DB}\u{11600}-\u{1162F}\u{11644}\u{11650}-\u{11659}\u{11680}-\u{116AA}\u{116B8}\u{116C0}-\u{116C9}\u{11700}-\u{1171A}\u{11730}-\u{1173B}\u{11740}-\u{11746}\u{11800}-\u{1182B}\u{118A0}-\u{118F2}\u{118FF}-\u{11906}\u{11909}\u{1190C}-\u{11913}\u{11915}\u{11916}\u{11918}-\u{1192F}\u{1193F}\u{11941}\u{11950}-\u{11959}\u{119A0}-\u{119A7}\u{119AA}-\u{119D0}\u{119E1}\u{119E3}\u{11A00}\u{11A0B}-\u{11A32}\u{11A3A}\u{11A50}\u{11A5C}-\u{11A89}\u{11A9D}\u{11AB0}-\u{11AF8}\u{11C00}-\u{11C08}\u{11C0A}-\u{11C2E}\u{11C40}\u{11C50}-\u{11C6C}\u{11C72}-\u{11C8F}\u{11D00}-\u{11D06}\u{11D08}\u{11D09}\u{11D0B}-\u{11D30}\u{11D46}\u{11D50}-\u{11D59}\u{11D60}-\u{11D65}\u{11D67}\u{11D68}\u{11D6A}-\u{11D89}\u{11D98}\u{11DA0}-\u{11DA9}\u{11EE0}-\u{11EF2}\u{11F02}\u{11F04}-\u{11F10}\u{11F12}-\u{11F33}\u{11F50}-\u{11F59}\u{11FB0}\u{11FC0}-\u{11FD4}\u{12000}-\u{12399}\u{12400}-\u{1246E}\u{12480}-\u{12543}\u{12F90}-\u{12FF0}\u{13000}-\u{1342F}\u{13441}-\u{13446}\u{14400}-\u{14646}\u{16800}-\u{16A38}\u{16A40}-\u{16A5E}\u{16A60}-\u{16A69}\u{16A70}-\u{16ABE}\u{16AC0}-\u{16AC9}\u{16AD0}-\u{16AED}\u{16B00}-\u{16B2F}\u{16B40}-\u{16B43}\u{16B50}-\u{16B59}\u{16B5B}-\u{16B61}\u{16B63}-\u{16B77}\u{16B7D}-\u{16B8F}\u{16E40}-\u{16E96}\u{16F00}-\u{16F4A}\u{16F50}\u{16F93}-\u{16F9F}\u{16FE0}\u{16FE1}\u{16FE3}\u{17000}-\u{187F7}\u{18800}-\u{18CD5}\u{18D00}-\u{18D08}\u{1AFF0}-\u{1AFF3}\u{1AFF5}-\u{1AFFB}\u{1AFFD}\u{1AFFE}\u{1B000}-\u{1B122}\u{1B132}\u{1B150}-\u{1B152}\u{1B155}\u{1B164}-\u{1B167}\u{1B170}-\u{1B2FB}\u{1BC00}-\u{1BC6A}\u{1BC70}-\u{1BC7C}\u{1BC80}-\u{1BC88}\u{1BC90}-\u{1BC99}\u{1D2C0}-\u{1D2D3}\u{1D2E0}-\u{1D2F3}\u{1D360}-\u{1D378}\u{1D400}-\u{1D454}\u{1D456}-\u{1D49C}\u{1D49E}\u{1D49F}\u{1D4A2}\u{1D4A5}\u{1D4A6}\u{1D4A9}-\u{1D4AC}\u{1D4AE}-\u{1D4B9}\u{1D4BB}\u{1D4BD}-\u{1D4C3}\u{1D4C5}-\u{1D505}\u{1D507}-\u{1D50A}\u{1D50D}-\u{1D514}\u{1D516}-\u{1D51C}\u{1D51E}-\u{1D539}\u{1D53B}-\u{1D53E}\u{1D540}-\u{1D544}\u{1D546}\u{1D54A}-\u{1D550}\u{1D552}-\u{1D6A5}\u{1D6A8}-\u{1D6C0}\u{1D6C2}-\u{1D6DA}\u{1D6DC}-\u{1D6FA}\u{1D6FC}-\u{1D714}\u{1D716}-\u{1D734}\u{1D736}-\u{1D74E}\u{1D750}-\u{1D76E}\u{1D770}-\u{1D788}\u{1D78A}-\u{1D7A8}\u{1D7AA}-\u{1D7C2}\u{1D7C4}-\u{1D7CB}\u{1D7CE}-\u{1D7FF}\u{1DF00}-\u{1DF1E}\u{1DF25}-\u{1DF2A}\u{1E030}-\u{1E06D}\u{1E100}-\u{1E12C}\u{1E137}-\u{1E13D}\u{1E140}-\u{1E149}\u{1E14E}\u{1E290}-\u{1E2AD}\u{1E2C0}-\u{1E2EB}\u{1E2F0}-\u{1E2F9}\u{1E4D0}-\u{1E4EB}\u{1E4F0}-\u{1E4F9}\u{1E7E0}-\u{1E7E6}\u{1E7E8}-\u{1E7EB}\u{1E7ED}\u{1E7EE}\u{1E7F0}-\u{1E7FE}\u{1E800}-\u{1E8C4}\u{1E8C7}-\u{1E8CF}\u{1E900}-\u{1E943}\u{1E94B}\u{1E950}-\u{1E959}\u{1EC71}-\u{1ECAB}\u{1ECAD}-\u{1ECAF}\u{1ECB1}-\u{1ECB4}\u{1ED01}-\u{1ED2D}\u{1ED2F}-\u{1ED3D}\u{1EE00}-\u{1EE03}\u{1EE05}-\u{1EE1F}\u{1EE21}\u{1EE22}\u{1EE24}\u{1EE27}\u{1EE29}-\u{1EE32}\u{1EE34}-\u{1EE37}\u{1EE39}\u{1EE3B}\u{1EE42}\u{1EE47}\u{1EE49}\u{1EE4B}\u{1EE4D}-\u{1EE4F}\u{1EE51}\u{1EE52}\u{1EE54}\u{1EE57}\u{1EE59}\u{1EE5B}\u{1EE5D}\u{1EE5F}\u{1EE61}\u{1EE62}\u{1EE64}\u{1EE67}-\u{1EE6A}\u{1EE6C}-\u{1EE72}\u{1EE74}-\u{1EE77}\u{1EE79}-\u{1EE7C}\u{1EE7E}\u{1EE80}-\u{1EE89}\u{1EE8B}-\u{1EE9B}\u{1EEA1}-\u{1EEA3}\u{1EEA5}-\u{1EEA9}\u{1EEAB}-\u{1EEBB}\u{1F100}-\u{1F10C}\u{1FBF0}-\u{1FBF9}\u{20000}-\u{2A6DF}\u{2A700}-\u{2B739}\u{2B740}-\u{2B81D}\u{2B820}-\u{2CEA1}\u{2CEB0}-\u{2EBE0}\u{2EBF0}-\u{2EE5D}\u{2F800}-\u{2FA1D}\u{30000}-\u{3134A}\u{31350}-\u{323AF}]/u))&&(!$e[1]&&!$e[2]||!W||this.rules.inline.punctuation.exec(W))){const ot=[...$e[0]].length-1;let jt,In,Fn=ot,b=0;const j="*"===$e[0][0]?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(j.lastIndex=0,le=le.slice(-1*he.length+ot);null!=($e=j.exec(le));){if(jt=$e[1]||$e[2]||$e[3]||$e[4]||$e[5]||$e[6],!jt)continue;if(In=[...jt].length,$e[3]||$e[4]){Fn+=In;continue}if(($e[5]||$e[6])&&ot%3&&!((ot+In)%3)){b+=In;continue}if(Fn-=In,Fn>0)continue;In=Math.min(In,In+Fn+b);const re=[...$e[0]][0].length,P=he.slice(0,ot+$e.index+re+In);if(Math.min(ot,In)%2){const it=P.slice(1,-1);return{type:"em",raw:P,text:it,tokens:this.lexer.inlineTokens(it)}}const Ee=P.slice(2,-2);return{type:"strong",raw:P,text:Ee,tokens:this.lexer.inlineTokens(Ee)}}}}codespan(he){const le=this.rules.inline.code.exec(he);if(le){let W=le[2].replace(/\n/g," ");const $e=/[^ ]/.test(W),Ve=/^ /.test(W)&&/ $/.test(W);return $e&&Ve&&(W=W.substring(1,W.length-1)),W=we(W,!0),{type:"codespan",raw:le[0],text:W}}}br(he){const le=this.rules.inline.br.exec(he);if(le)return{type:"br",raw:le[0]}}del(he){const le=this.rules.inline.del.exec(he);if(le)return{type:"del",raw:le[0],text:le[2],tokens:this.lexer.inlineTokens(le[2])}}autolink(he){const le=this.rules.inline.autolink.exec(he);if(le){let W,$e;return"@"===le[2]?(W=we(le[1]),$e="mailto:"+W):(W=we(le[1]),$e=W),{type:"link",raw:le[0],text:W,href:$e,tokens:[{type:"text",raw:W,text:W}]}}}url(he){let le;if(le=this.rules.inline.url.exec(he)){let Ve,ot;if("@"===le[2])Ve=we(le[0]),ot="mailto:"+Ve;else{let jt;do{var W,$e;jt=le[0],le[0]=null!==(W=null===($e=this.rules.inline._backpedal.exec(le[0]))||void 0===$e?void 0:$e[0])&&void 0!==W?W:""}while(jt!==le[0]);Ve=we(le[0]),ot="www."===le[1]?"http://"+le[0]:le[0]}return{type:"link",raw:le[0],text:Ve,href:ot,tokens:[{type:"text",raw:Ve,text:Ve}]}}}inlineText(he){const le=this.rules.inline.text.exec(he);if(le){let W;return W=this.lexer.state.inRawBlock?le[0]:we(le[0]),{type:"text",raw:le[0],text:W}}}}const yr=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,ir=/(?:[*+-]|\d{1,9}[.)])/,nt=se(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,ir).replace(/blockCode/g,/ {4}/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).getRegex(),Ot=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,pn=/(?!\s*\])(?:\\.|[^\[\]\\])+/,gn=se(/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/).replace("label",pn).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Sr=se(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,ir).getRegex(),Mn="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",xn=/|$))/,mn=se("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))","i").replace("comment",xn).replace("tag",Mn).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),en=se(Ot).replace("hr",yr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",Mn).getRegex(),Ir={blockquote:se(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",en).getRegex(),code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,def:gn,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:yr,html:mn,lheading:nt,list:Sr,newline:/^(?: *(?:\n|$))+/,paragraph:en,table:Le,text:/^[^\n]+/},Nr=se("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",yr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",Mn).getRegex(),Qn={...Ir,table:Nr,paragraph:se(Ot).replace("hr",yr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Nr).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",Mn).getRegex()},Dr={...Ir,html:se("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",xn).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Le,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:se(Ot).replace("hr",yr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",nt).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Jn=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,mr=/^( {2,}|\\)\n(?!\s*$)/,Pr="\\p{P}\\p{S}",cr=se(/^((?![*_])[\spunctuation])/,"u").replace(/punctuation/g,Pr).getRegex(),ii=se(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,"u").replace(/punct/g,Pr).getRegex(),Ai=se("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])","gu").replace(/punct/g,Pr).getRegex(),Qr=se("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])","gu").replace(/punct/g,Pr).getRegex(),pe=se(/\\([punct])/,"gu").replace(/punct/g,Pr).getRegex(),rt=se(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),Mt=se(xn).replace("(?:--\x3e|$)","--\x3e").getRegex(),ut=se("^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^").replace("comment",Mt).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),ce=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,ye=se(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",ce).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),He=se(/^!?\[(label)\]\[(ref)\]/).replace("label",ce).replace("ref",pn).getRegex(),Lt=se(/^!?\[(ref)\](?:\[\])?/).replace("ref",pn).getRegex(),ct={_backpedal:Le,anyPunctuation:pe,autolink:rt,blockSkip:/\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g,br:mr,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:Le,emStrongLDelim:ii,emStrongRDelimAst:Ai,emStrongRDelimUnd:Qr,escape:Jn,link:ye,nolink:Lt,punctuation:cr,reflink:He,reflinkSearch:se("reflink|nolink(?!\\()","g").replace("reflink",He).replace("nolink",Lt).getRegex(),tag:ut,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\In+" ".repeat(Fn.length));he;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(jt=>!!(W=jt.call({lexer:this},he,le))&&(he=he.substring(W.raw.length),le.push(W),!0)))){if(W=this.tokenizer.space(he)){he=he.substring(W.raw.length),1===W.raw.length&&le.length>0?le[le.length-1].raw+="\n":le.push(W);continue}if(W=this.tokenizer.code(he)){he=he.substring(W.raw.length),$e=le[le.length-1],!$e||"paragraph"!==$e.type&&"text"!==$e.type?le.push(W):($e.raw+="\n"+W.raw,$e.text+="\n"+W.text,this.inlineQueue[this.inlineQueue.length-1].src=$e.text);continue}if(W=this.tokenizer.fences(he)){he=he.substring(W.raw.length),le.push(W);continue}if(W=this.tokenizer.heading(he)){he=he.substring(W.raw.length),le.push(W);continue}if(W=this.tokenizer.hr(he)){he=he.substring(W.raw.length),le.push(W);continue}if(W=this.tokenizer.blockquote(he)){he=he.substring(W.raw.length),le.push(W);continue}if(W=this.tokenizer.list(he)){he=he.substring(W.raw.length),le.push(W);continue}if(W=this.tokenizer.html(he)){he=he.substring(W.raw.length),le.push(W);continue}if(W=this.tokenizer.def(he)){he=he.substring(W.raw.length),$e=le[le.length-1],!$e||"paragraph"!==$e.type&&"text"!==$e.type?this.tokens.links[W.tag]||(this.tokens.links[W.tag]={href:W.href,title:W.title}):($e.raw+="\n"+W.raw,$e.text+="\n"+W.raw,this.inlineQueue[this.inlineQueue.length-1].src=$e.text);continue}if(W=this.tokenizer.table(he)){he=he.substring(W.raw.length),le.push(W);continue}if(W=this.tokenizer.lheading(he)){he=he.substring(W.raw.length),le.push(W);continue}if(Ve=he,this.options.extensions&&this.options.extensions.startBlock){let jt=1/0;const In=he.slice(1);let Fn;this.options.extensions.startBlock.forEach(b=>{Fn=b.call({lexer:this},In),"number"==typeof Fn&&Fn>=0&&(jt=Math.min(jt,Fn))}),jt<1/0&&jt>=0&&(Ve=he.substring(0,jt+1))}if(this.state.top&&(W=this.tokenizer.paragraph(Ve))){$e=le[le.length-1],ot&&"paragraph"===$e.type?($e.raw+="\n"+W.raw,$e.text+="\n"+W.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=$e.text):le.push(W),ot=Ve.length!==he.length,he=he.substring(W.raw.length);continue}if(W=this.tokenizer.text(he)){he=he.substring(W.raw.length),$e=le[le.length-1],$e&&"text"===$e.type?($e.raw+="\n"+W.raw,$e.text+="\n"+W.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=$e.text):le.push(W);continue}if(he){const jt="Infinite loop on byte: "+he.charCodeAt(0);if(this.options.silent){console.error(jt);break}throw new Error(jt)}}return this.state.top=!0,le}inline(he,le=[]){return this.inlineQueue.push({src:he,tokens:le}),le}inlineTokens(he,le=[]){let W,$e,Ve,jt,In,Fn,ot=he;if(this.tokens.links){const b=Object.keys(this.tokens.links);if(b.length>0)for(;null!=(jt=this.tokenizer.rules.inline.reflinkSearch.exec(ot));)b.includes(jt[0].slice(jt[0].lastIndexOf("[")+1,-1))&&(ot=ot.slice(0,jt.index)+"["+"a".repeat(jt[0].length-2)+"]"+ot.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(jt=this.tokenizer.rules.inline.blockSkip.exec(ot));)ot=ot.slice(0,jt.index)+"["+"a".repeat(jt[0].length-2)+"]"+ot.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(jt=this.tokenizer.rules.inline.anyPunctuation.exec(ot));)ot=ot.slice(0,jt.index)+"++"+ot.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;he;)if(In||(Fn=""),In=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(b=>!!(W=b.call({lexer:this},he,le))&&(he=he.substring(W.raw.length),le.push(W),!0)))){if(W=this.tokenizer.escape(he)){he=he.substring(W.raw.length),le.push(W);continue}if(W=this.tokenizer.tag(he)){he=he.substring(W.raw.length),$e=le[le.length-1],$e&&"text"===W.type&&"text"===$e.type?($e.raw+=W.raw,$e.text+=W.text):le.push(W);continue}if(W=this.tokenizer.link(he)){he=he.substring(W.raw.length),le.push(W);continue}if(W=this.tokenizer.reflink(he,this.tokens.links)){he=he.substring(W.raw.length),$e=le[le.length-1],$e&&"text"===W.type&&"text"===$e.type?($e.raw+=W.raw,$e.text+=W.text):le.push(W);continue}if(W=this.tokenizer.emStrong(he,ot,Fn)){he=he.substring(W.raw.length),le.push(W);continue}if(W=this.tokenizer.codespan(he)){he=he.substring(W.raw.length),le.push(W);continue}if(W=this.tokenizer.br(he)){he=he.substring(W.raw.length),le.push(W);continue}if(W=this.tokenizer.del(he)){he=he.substring(W.raw.length),le.push(W);continue}if(W=this.tokenizer.autolink(he)){he=he.substring(W.raw.length),le.push(W);continue}if(!this.state.inLink&&(W=this.tokenizer.url(he))){he=he.substring(W.raw.length),le.push(W);continue}if(Ve=he,this.options.extensions&&this.options.extensions.startInline){let b=1/0;const j=he.slice(1);let re;this.options.extensions.startInline.forEach(P=>{re=P.call({lexer:this},j),"number"==typeof re&&re>=0&&(b=Math.min(b,re))}),b<1/0&&b>=0&&(Ve=he.substring(0,b+1))}if(W=this.tokenizer.inlineText(Ve)){he=he.substring(W.raw.length),"_"!==W.raw.slice(-1)&&(Fn=W.raw.slice(-1)),In=!0,$e=le[le.length-1],$e&&"text"===$e.type?($e.raw+=W.raw,$e.text+=W.text):le.push(W);continue}if(he){const b="Infinite loop on byte: "+he.charCodeAt(0);if(this.options.silent){console.error(b);break}throw new Error(b)}}return le}}class Cn{constructor(he){(0,Ue.A)(this,"options",void 0),this.options=he||xe}code(he,le,W){var $e;const Ve=null===($e=(le||"").match(/^\S*/))||void 0===$e?void 0:$e[0];return he=he.replace(/\n$/,"")+"\n",Ve?'
    '+(W?he:we(he,!0))+"
    \n":"
    "+(W?he:we(he,!0))+"
    \n"}blockquote(he){return`
    \n${he}
    \n`}html(he,le){return he}heading(he,le,W){return`${he}\n`}hr(){return"
    \n"}list(he,le,W){const $e=le?"ol":"ul";return"<"+$e+(le&&1!==W?' start="'+W+'"':"")+">\n"+he+"\n"}listitem(he,le,W){return`
  • ${he}
  • \n`}checkbox(he){return"'}paragraph(he){return`

    ${he}

    \n`}table(he,le){return le&&(le=`${le}`),"\n\n"+he+"\n"+le+"
    \n"}tablerow(he){return`\n${he}\n`}tablecell(he,le){const W=le.header?"th":"td";return(le.align?`<${W} align="${le.align}">`:`<${W}>`)+he+`\n`}strong(he){return`${he}`}em(he){return`${he}`}codespan(he){return`${he}`}br(){return"
    "}del(he){return`${he}`}link(he,le,W){const $e=ve(he);if(null===$e)return W;let Ve='
    ",Ve}image(he,le,W){const $e=ve(he);if(null===$e)return W;let Ve=`${W}"colon"===(le=le.toLowerCase())?":":"#"===le.charAt(0)?"x"===le.charAt(1)?String.fromCharCode(parseInt(le.substring(2),16)):String.fromCharCode(+le.substring(1)):""));continue}case"code":W+=this.renderer.code(Ve.text,Ve.lang,!!Ve.escaped);continue;case"table":{const ot=Ve;let jt="",In="";for(let b=0;b0&&"paragraph"===re.tokens[0].type?(re.tokens[0].text=sr+" "+re.tokens[0].text,re.tokens[0].tokens&&re.tokens[0].tokens.length>0&&"text"===re.tokens[0].tokens[0].type&&(re.tokens[0].tokens[0].text=sr+" "+re.tokens[0].tokens[0].text)):re.tokens.unshift({type:"text",text:sr+" "}):it+=sr+" "}it+=this.parse(re.tokens,Fn),b+=this.renderer.listitem(it,Ee,!!P)}W+=this.renderer.list(b,jt,In);continue}case"html":W+=this.renderer.html(Ve.text,Ve.block);continue;case"paragraph":W+=this.renderer.paragraph(this.parseInline(Ve.tokens));continue;case"text":{let ot=Ve,jt=ot.tokens?this.parseInline(ot.tokens):ot.text;for(;$e+1{const $e={...W},Ve={...this.defaults,...$e};!0===this.defaults.async&&!1===$e.async&&(Ve.silent||console.warn("marked(): The async option was set to true by an extension. The async: false option sent to parse will be ignored."),Ve.async=!0);const ot=ge($r,this,Ri).call(this,!!Ve.silent,!!Ve.async);if(typeof le>"u"||null===le)return ot(new Error("marked(): input parameter is undefined or null"));if("string"!=typeof le)return ot(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(le)+", string expected"));if(Ve.hooks&&(Ve.hooks.options=Ve),Ve.async)return Promise.resolve(Ve.hooks?Ve.hooks.preprocess(le):le).then(jt=>bt(jt,Ve)).then(jt=>Ve.hooks?Ve.hooks.processAllTokens(jt):jt).then(jt=>Ve.walkTokens?Promise.all(this.walkTokens(jt,Ve.walkTokens)).then(()=>jt):jt).then(jt=>he(jt,Ve)).then(jt=>Ve.hooks?Ve.hooks.postprocess(jt):jt).catch(ot);try{Ve.hooks&&(le=Ve.hooks.preprocess(le));let jt=bt(le,Ve);Ve.hooks&&(jt=Ve.hooks.processAllTokens(jt)),Ve.walkTokens&&this.walkTokens(jt,Ve.walkTokens);let In=he(jt,Ve);return Ve.hooks&&(In=Ve.hooks.postprocess(In)),In}catch(jt){return ot(jt)}}}function Ri(bt,he){return le=>{if(le.message+="\nPlease report this to https://github.com/markedjs/marked.",bt){const W="

    An error occurred:

    "+we(le.message+"",!0)+"
    ";return he?Promise.resolve(W):W}if(he)return Promise.reject(le);throw le}}const gi=new class Zr{constructor(...he){(function Ye(bt,he){(function Me(bt,he){if(he.has(bt))throw new TypeError("Cannot initialize the same private elements twice on an object")})(bt,he),he.add(bt)})(this,$r),(0,Ue.A)(this,"defaults",{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}),(0,Ue.A)(this,"options",this.setOptions),(0,Ue.A)(this,"parse",ge($r,this,fr).call(this,hn.lex,Ar.parse)),(0,Ue.A)(this,"parseInline",ge($r,this,fr).call(this,hn.lexInline,Ar.parseInline)),(0,Ue.A)(this,"Parser",Ar),(0,Ue.A)(this,"Renderer",Cn),(0,Ue.A)(this,"TextRenderer",tr),(0,Ue.A)(this,"Lexer",hn),(0,Ue.A)(this,"Tokenizer",Ln),(0,Ue.A)(this,"Hooks",dr),this.use(...he)}walkTokens(he,le){let W=[];for(const Ve of he)switch(W=W.concat(le.call(this,Ve)),Ve.type){case"table":{const ot=Ve;for(const jt of ot.header)W=W.concat(this.walkTokens(jt.tokens,le));for(const jt of ot.rows)for(const In of jt)W=W.concat(this.walkTokens(In.tokens,le));break}case"list":W=W.concat(this.walkTokens(Ve.items,le));break;default:{var $e;const ot=Ve;null!==($e=this.defaults.extensions)&&void 0!==$e&&null!==($e=$e.childTokens)&&void 0!==$e&&$e[ot.type]?this.defaults.extensions.childTokens[ot.type].forEach(jt=>{const In=ot[jt].flat(1/0);W=W.concat(this.walkTokens(In,le))}):ot.tokens&&(W=W.concat(this.walkTokens(ot.tokens,le)))}}return W}use(...he){const le=this.defaults.extensions||{renderers:{},childTokens:{}};return he.forEach(W=>{const $e={...W};if($e.async=this.defaults.async||$e.async||!1,W.extensions&&(W.extensions.forEach(Ve=>{if(!Ve.name)throw new Error("extension name required");if("renderer"in Ve){const ot=le.renderers[Ve.name];le.renderers[Ve.name]=ot?function(...jt){let In=Ve.renderer.apply(this,jt);return!1===In&&(In=ot.apply(this,jt)),In}:Ve.renderer}if("tokenizer"in Ve){if(!Ve.level||"block"!==Ve.level&&"inline"!==Ve.level)throw new Error("extension level must be 'block' or 'inline'");const ot=le[Ve.level];ot?ot.unshift(Ve.tokenizer):le[Ve.level]=[Ve.tokenizer],Ve.start&&("block"===Ve.level?le.startBlock?le.startBlock.push(Ve.start):le.startBlock=[Ve.start]:"inline"===Ve.level&&(le.startInline?le.startInline.push(Ve.start):le.startInline=[Ve.start]))}"childTokens"in Ve&&Ve.childTokens&&(le.childTokens[Ve.name]=Ve.childTokens)}),$e.extensions=le),W.renderer){const Ve=this.defaults.renderer||new Cn(this.defaults);for(const ot in W.renderer){if(!(ot in Ve))throw new Error(`renderer '${ot}' does not exist`);if("options"===ot)continue;const In=W.renderer[ot],Fn=Ve[ot];Ve[ot]=(...b)=>{let j=In.apply(Ve,b);return!1===j&&(j=Fn.apply(Ve,b)),j||""}}$e.renderer=Ve}if(W.tokenizer){const Ve=this.defaults.tokenizer||new Ln(this.defaults);for(const ot in W.tokenizer){if(!(ot in Ve))throw new Error(`tokenizer '${ot}' does not exist`);if(["options","rules","lexer"].includes(ot))continue;const In=W.tokenizer[ot],Fn=Ve[ot];Ve[ot]=(...b)=>{let j=In.apply(Ve,b);return!1===j&&(j=Fn.apply(Ve,b)),j}}$e.tokenizer=Ve}if(W.hooks){const Ve=this.defaults.hooks||new dr;for(const ot in W.hooks){if(!(ot in Ve))throw new Error(`hook '${ot}' does not exist`);if("options"===ot)continue;const In=W.hooks[ot],Fn=Ve[ot];Ve[ot]=dr.passThroughHooks.has(ot)?b=>{if(this.defaults.async)return Promise.resolve(In.call(Ve,b)).then(re=>Fn.call(Ve,re));const j=In.call(Ve,b);return Fn.call(Ve,j)}:(...b)=>{let j=In.apply(Ve,b);return!1===j&&(j=Fn.apply(Ve,b)),j}}$e.hooks=Ve}if(W.walkTokens){const Ve=this.defaults.walkTokens,ot=W.walkTokens;$e.walkTokens=function(jt){let In=[];return In.push(ot.call(this,jt)),Ve&&(In=In.concat(Ve.call(this,jt))),In}}this.defaults={...this.defaults,...$e}}),this}setOptions(he){return this.defaults={...this.defaults,...he},this}lexer(he,le){return hn.lex(he,null!=le?le:this.defaults)}parser(he,le){return Ar.parse(he,null!=le?le:this.defaults)}};function pr(bt,he){return gi.parse(bt,he)}pr.options=pr.setOptions=function(bt){return gi.setOptions(bt),at(pr.defaults=gi.defaults),pr},pr.getDefaults=function Fe(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}},pr.defaults=xe,pr.use=function(...bt){return gi.use(...bt),at(pr.defaults=gi.defaults),pr},pr.walkTokens=function(bt,he){return gi.walkTokens(bt,he)},pr.parseInline=gi.parseInline,pr.Parser=Ar,pr.parser=Ar.parse,pr.Renderer=Cn,pr.TextRenderer=tr,pr.Lexer=hn,pr.lexer=hn.lex,pr.Tokenizer=Ln,pr.Hooks=dr,pr.parse=pr;var Ge=S(1626),At=S(345);const Jt=["*"];let Un=(()=>{var bt;class he{constructor(){this._buttonClick$=new Oe.B,this.copied$=this._buttonClick$.pipe((0,Xe.n)(()=>(0,U.h)((0,ue.of)(!0),(0,oe.O)(3e3).pipe((0,Je.u)(!1)))),(0,Se.F)(),function St(bt,he,le){let W,$e=!1;return bt&&"object"==typeof bt?({bufferSize:W=1/0,windowTime:he=1/0,refCount:$e=!1,scheduler:le}=bt):W=null!=bt?bt:1/0,function ht(bt={}){const{connector:he=(()=>new Oe.B),resetOnError:le=!0,resetOnComplete:W=!0,resetOnRefCountZero:$e=!0}=bt;return Ve=>{let ot,jt,In,Fn=0,b=!1,j=!1;const re=()=>{null==jt||jt.unsubscribe(),jt=void 0},P=()=>{re(),ot=In=void 0,b=j=!1},Ee=()=>{const it=ot;P(),null==it||it.unsubscribe()};return(0,qe.N)((it,sr)=>{Fn++,!j&&!b&&re();const ni=In=null!=In?In:he();sr.add(()=>{Fn--,0===Fn&&!j&&!b&&(jt=Dt(Ee,$e))}),ni.subscribe(sr),!ot&&Fn>0&&(ot=new Ze.Ms({next:z=>ni.next(z),error:z=>{j=!0,re(),jt=Dt(P,le,z),ni.error(z)},complete:()=>{b=!0,re(),jt=Dt(P,W),ni.complete()}}),(0,Qe.Tg)(it).subscribe(ot))})(Ve)}}({connector:()=>new Ce.m(W,he,le),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:$e})}(1)),this.copiedText$=this.copied$.pipe((0,_t.Z)(!1),(0,Tt.T)(W=>W?"Copied":"Copy"))}onCopyToClipboardClick(){this._buttonClick$.next()}}return(bt=he).\u0275fac=function(W){return new(W||bt)},bt.\u0275cmp=Z.VBU({type:bt,selectors:[["markdown-clipboard"]],standalone:!0,features:[Z.aNF],decls:4,vars:7,consts:[[1,"markdown-clipboard-button",3,"click"]],template:function(W,$e){1&W&&(Z.j41(0,"button",0),Z.nI1(1,"async"),Z.bIt("click",function(){return $e.onCopyToClipboardClick()}),Z.EFF(2),Z.nI1(3,"async"),Z.k0s()),2&W&&(Z.AVh("copied",Z.bMT(1,3,$e.copied$)),Z.R7$(2),Z.JRh(Z.bMT(3,5,$e.copiedText$)))},dependencies:[c.Jj],encapsulation:2,changeDetection:0}),he})();const xr=new Z.nKC("CLIPBOARD_OPTIONS");var Or=function(bt){return bt.CommandLine="command-line",bt.LineHighlight="line-highlight",bt.LineNumbers="line-numbers",bt}(Or||{});const zr=new Z.nKC("MARKED_EXTENSIONS"),Tr=new Z.nKC("MARKED_OPTIONS"),mi=new Z.nKC("SECURITY_CONTEXT");let Hn=(()=>{var bt;class he{get options(){return this._options}set options(W){this._options={...this.DEFAULT_MARKED_OPTIONS,...W}}get renderer(){return this.options.renderer}set renderer(W){this.options.renderer=W}constructor(W,$e,Ve,ot,jt,In,Fn){this.clipboardOptions=W,this.extensions=$e,this.platform=ot,this.securityContext=jt,this.http=In,this.sanitizer=Fn,this.DEFAULT_MARKED_OPTIONS={renderer:new Cn},this.DEFAULT_KATEX_OPTIONS={delimiters:[{left:"$$",right:"$$",display:!0},{left:"$",right:"$",display:!1},{left:"\\(",right:"\\)",display:!1},{left:"\\begin{equation}",right:"\\end{equation}",display:!0},{left:"\\begin{align}",right:"\\end{align}",display:!0},{left:"\\begin{alignat}",right:"\\end{alignat}",display:!0},{left:"\\begin{gather}",right:"\\end{gather}",display:!0},{left:"\\begin{CD}",right:"\\end{CD}",display:!0},{left:"\\[",right:"\\]",display:!0}]},this.DEFAULT_MERMAID_OPTIONS={startOnLoad:!1},this.DEFAULT_CLIPBOARD_OPTIONS={buttonComponent:void 0},this.DEFAULT_PARSE_OPTIONS={decodeHtml:!1,inline:!1,emoji:!1,mermaid:!1,markedOptions:void 0,disableSanitizer:!1},this.DEFAULT_RENDER_OPTIONS={clipboard:!1,clipboardOptions:void 0,katex:!1,katexOptions:void 0,mermaid:!1,mermaidOptions:void 0},this._reload$=new Oe.B,this.reload$=this._reload$.asObservable(),this.options=Ve}parse(W,$e=this.DEFAULT_PARSE_OPTIONS){const{decodeHtml:Ve,inline:ot,emoji:jt,mermaid:In,disableSanitizer:Fn}=$e,b={...this.options,...$e.markedOptions},j=b.renderer||this.renderer||new Cn;this.extensions&&(this.renderer=this.extendsRendererForExtensions(j)),In&&(this.renderer=this.extendsRendererForMermaid(j));const re=this.trimIndentation(W),P=Ve?this.decodeHtml(re):re,Ee=jt?this.parseEmoji(P):P,it=this.parseMarked(Ee,b,ot);return(Fn?it:this.sanitizer.sanitize(this.securityContext,it))||""}render(W,$e=this.DEFAULT_RENDER_OPTIONS,Ve){const{clipboard:ot,clipboardOptions:jt,katex:In,katexOptions:Fn,mermaid:b,mermaidOptions:j}=$e;In&&this.renderKatex(W,{...this.DEFAULT_KATEX_OPTIONS,...Fn}),b&&this.renderMermaid(W,{...this.DEFAULT_MERMAID_OPTIONS,...j}),ot&&this.renderClipboard(W,Ve,{...this.DEFAULT_CLIPBOARD_OPTIONS,...this.clipboardOptions,...jt}),this.highlight(W)}reload(){this._reload$.next()}getSource(W){if(!this.http)throw new Error("[ngx-markdown] When using the `src` attribute you *have to* pass the `HttpClient` as a parameter of the `forRoot` method. See README for more information");return this.http.get(W,{responseType:"text"}).pipe((0,Tt.T)($e=>this.handleExtension(W,$e)))}highlight(W){if(!(0,c.UE)(this.platform)||typeof Prism>"u"||typeof Prism.highlightAllUnder>"u")return;W||(W=document);const $e=W.querySelectorAll('pre code:not([class*="language-"])');Array.prototype.forEach.call($e,Ve=>Ve.classList.add("language-none")),Prism.highlightAllUnder(W)}decodeHtml(W){if(!(0,c.UE)(this.platform))return W;const $e=document.createElement("textarea");return $e.innerHTML=W,$e.value}extendsRendererForExtensions(W){var $e;const Ve=W;return!0===Ve.\u0275NgxMarkdownRendererExtendedForExtensions||((null===($e=this.extensions)||void 0===$e?void 0:$e.length)>0&&pr.use(...this.extensions),Ve.\u0275NgxMarkdownRendererExtendedForExtensions=!0),W}extendsRendererForMermaid(W){const $e=W;if(!0===$e.\u0275NgxMarkdownRendererExtendedForMermaid)return W;const Ve=W.code;return W.code=function(ot,jt,In){return"mermaid"===jt?`
    ${ot}
    `:Ve.call(this,ot,jt,In)},$e.\u0275NgxMarkdownRendererExtendedForMermaid=!0,W}handleExtension(W,$e){const Ve=W.lastIndexOf("://"),ot=Ve>-1?W.substring(Ve+4):W,jt=ot.lastIndexOf("/"),In=jt>-1?ot.substring(jt+1).split("?")[0]:"",Fn=In.lastIndexOf("."),b=Fn>-1?In.substring(Fn+1):"";return b&&"md"!==b?"```"+b+"\n"+$e+"\n```":$e}parseMarked(W,$e,Ve=!1){if($e.renderer){const ot={...$e.renderer};delete ot.\u0275NgxMarkdownRendererExtendedForExtensions,delete ot.\u0275NgxMarkdownRendererExtendedForMermaid,delete $e.renderer,pr.use({renderer:ot})}return Ve?pr.parseInline(W,$e):pr.parse(W,$e)}parseEmoji(W){if(!(0,c.UE)(this.platform))return W;if(typeof joypixels>"u"||typeof joypixels.shortnameToUnicode>"u")throw new Error("[ngx-markdown] When using the `emoji` attribute you *have to* include Emoji-Toolkit files to `angular.json` or use imports. See README for more information");return joypixels.shortnameToUnicode(W)}renderKatex(W,$e){if((0,c.UE)(this.platform)){if(typeof katex>"u"||typeof renderMathInElement>"u")throw new Error("[ngx-markdown] When using the `katex` attribute you *have to* include KaTeX files to `angular.json` or use imports. See README for more information");renderMathInElement(W,$e)}}renderClipboard(W,$e,Ve){if(!(0,c.UE)(this.platform))return;if(typeof ClipboardJS>"u")throw new Error("[ngx-markdown] When using the `clipboard` attribute you *have to* include Clipboard files to `angular.json` or use imports. See README for more information");if(!$e)throw new Error("[ngx-markdown] When using the `clipboard` attribute you *have to* provide the `viewContainerRef` parameter to `MarkdownService.render()` function");const{buttonComponent:ot,buttonTemplate:jt}=Ve,In=W.querySelectorAll("pre");for(let Fn=0;Fnre.classList.add("hover"),j.onmouseleave=()=>re.classList.remove("hover"),ot){const it=$e.createComponent(ot);P=it.hostView,it.changeDetectorRef.markForCheck()}else if(jt)P=$e.createEmbeddedView(jt);else{const it=$e.createComponent(Un);P=it.hostView,it.changeDetectorRef.markForCheck()}P.rootNodes.forEach(it=>{re.appendChild(it),Ee=new ClipboardJS(it,{text:()=>b.innerText})}),P.onDestroy(()=>Ee.destroy())}}renderMermaid(W,$e=this.DEFAULT_MERMAID_OPTIONS){if(!(0,c.UE)(this.platform))return;if(typeof mermaid>"u"||typeof mermaid.initialize>"u")throw new Error("[ngx-markdown] When using the `mermaid` attribute you *have to* include Mermaid files to `angular.json` or use imports. See README for more information");const Ve=W.querySelectorAll(".mermaid");0!==Ve.length&&(mermaid.initialize($e),mermaid.run({nodes:Ve}))}trimIndentation(W){if(!W)return"";let $e;return W.split("\n").map(Ve=>{let ot=$e;return Ve.length>0&&(ot=isNaN(ot)?Ve.search(/\S|$/):Math.min(Ve.search(/\S|$/),ot)),isNaN($e)&&($e=ot),ot?Ve.substring(ot):Ve}).join("\n")}}return(bt=he).\u0275fac=function(W){return new(W||bt)(Z.KVO(xr,8),Z.KVO(zr,8),Z.KVO(Tr,8),Z.KVO(Z.Agw),Z.KVO(mi),Z.KVO(Ge.Qq,8),Z.KVO(At.up))},bt.\u0275prov=Z.jDH({token:bt,factory:bt.\u0275fac}),he})(),ao=(()=>{var bt;class he{get disableSanitizer(){return this._disableSanitizer}set disableSanitizer(W){this._disableSanitizer=this.coerceBooleanProperty(W)}get inline(){return this._inline}set inline(W){this._inline=this.coerceBooleanProperty(W)}get clipboard(){return this._clipboard}set clipboard(W){this._clipboard=this.coerceBooleanProperty(W)}get emoji(){return this._emoji}set emoji(W){this._emoji=this.coerceBooleanProperty(W)}get katex(){return this._katex}set katex(W){this._katex=this.coerceBooleanProperty(W)}get mermaid(){return this._mermaid}set mermaid(W){this._mermaid=this.coerceBooleanProperty(W)}get lineHighlight(){return this._lineHighlight}set lineHighlight(W){this._lineHighlight=this.coerceBooleanProperty(W)}get lineNumbers(){return this._lineNumbers}set lineNumbers(W){this._lineNumbers=this.coerceBooleanProperty(W)}get commandLine(){return this._commandLine}set commandLine(W){this._commandLine=this.coerceBooleanProperty(W)}constructor(W,$e,Ve){this.element=W,this.markdownService=$e,this.viewContainerRef=Ve,this.error=new Z.bkB,this.load=new Z.bkB,this.ready=new Z.bkB,this._clipboard=!1,this._commandLine=!1,this._disableSanitizer=!1,this._emoji=!1,this._inline=!1,this._katex=!1,this._lineHighlight=!1,this._lineNumbers=!1,this._mermaid=!1,this.destroyed$=new Oe.B}ngOnChanges(){this.loadContent()}loadContent(){null==this.data?null==this.src||this.handleSrc():this.handleData()}ngAfterViewInit(){!this.data&&!this.src&&this.handleTransclusion(),this.markdownService.reload$.pipe((0,yt.Q)(this.destroyed$)).subscribe(()=>this.loadContent())}ngOnDestroy(){this.destroyed$.next(),this.destroyed$.complete()}render(W,$e=!1){var Ve=this;return(0,h.A)(function*(){const ot={decodeHtml:$e,inline:Ve.inline,emoji:Ve.emoji,mermaid:Ve.mermaid,disableSanitizer:Ve.disableSanitizer},jt={clipboard:Ve.clipboard,clipboardOptions:{buttonComponent:Ve.clipboardButtonComponent,buttonTemplate:Ve.clipboardButtonTemplate},katex:Ve.katex,katexOptions:Ve.katexOptions,mermaid:Ve.mermaid,mermaidOptions:Ve.mermaidOptions},In=yield Ve.markdownService.parse(W,ot);Ve.element.nativeElement.innerHTML=In,Ve.handlePlugins(),Ve.markdownService.render(Ve.element.nativeElement,jt,Ve.viewContainerRef),Ve.ready.emit()})()}coerceBooleanProperty(W){return null!=W&&"false"!=`${String(W)}`}handleData(){this.render(this.data)}handleSrc(){this.markdownService.getSource(this.src).subscribe({next:W=>{this.render(W).then(()=>{this.load.emit(W)})},error:W=>this.error.emit(W)})}handleTransclusion(){this.render(this.element.nativeElement.innerHTML,!0)}handlePlugins(){this.commandLine&&(this.setPluginClass(this.element.nativeElement,Or.CommandLine),this.setPluginOptions(this.element.nativeElement,{dataFilterOutput:this.filterOutput,dataHost:this.host,dataPrompt:this.prompt,dataOutput:this.output,dataUser:this.user})),this.lineHighlight&&this.setPluginOptions(this.element.nativeElement,{dataLine:this.line,dataLineOffset:this.lineOffset}),this.lineNumbers&&(this.setPluginClass(this.element.nativeElement,Or.LineNumbers),this.setPluginOptions(this.element.nativeElement,{dataStart:this.start}))}setPluginClass(W,$e){const Ve=W.querySelectorAll("pre");for(let ot=0;ot{const In=$e[jt];if(In){const Fn=this.toLispCase(jt);Ve.item(ot).setAttribute(Fn,In.toString())}})}toLispCase(W){const $e=W.match(/([A-Z])/g);if(!$e)return W;let Ve=W.toString();for(let ot=0,jt=$e.length;ot{var bt;class he{static forRoot(W){return{ngModule:he,providers:[Ci(W)]}}static forChild(){return{ngModule:he}}}return(bt=he).\u0275fac=function(W){return new(W||bt)},bt.\u0275mod=Z.$C({type:bt}),bt.\u0275inj=Z.G2t({imports:[c.MD]}),he})();var oi;!function(bt){let he;var $e;let le,W;($e=he=bt.SecurityLevel||(bt.SecurityLevel={})).Strict="strict",$e.Loose="loose",$e.Antiscript="antiscript",$e.Sandbox="sandbox",function($e){$e.Base="base",$e.Forest="forest",$e.Dark="dark",$e.Default="default",$e.Neutral="neutral"}(le=bt.Theme||(bt.Theme={})),function($e){$e[$e.Debug=1]="Debug",$e[$e.Info=2]="Info",$e[$e.Warn=3]="Warn",$e[$e.Error=4]="Error",$e[$e.Fatal=5]="Fatal"}(W=bt.LogLevel||(bt.LogLevel={}))}(oi||(oi={}))},467:(Tn,gt,S)=>{"use strict";function h(Z,Oe,U,ue,oe,Xe,Je){try{var Se=Z[Xe](Je),Ce=Se.value}catch(Qe){return void U(Qe)}Se.done?Oe(Ce):Promise.resolve(Ce).then(ue,oe)}function c(Z){return function(){var Oe=this,U=arguments;return new Promise(function(ue,oe){var Xe=Z.apply(Oe,U);function Je(Ce){h(Xe,ue,oe,Je,Se,"next",Ce)}function Se(Ce){h(Xe,ue,oe,Je,Se,"throw",Ce)}Je(void 0)})}}S.d(gt,{A:()=>c})},9842:(Tn,gt,S)=>{"use strict";function h(U){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(ue){return typeof ue}:function(ue){return ue&&"function"==typeof Symbol&&ue.constructor===Symbol&&ue!==Symbol.prototype?"symbol":typeof ue})(U)}function Oe(U,ue,oe){return(ue=function Z(U){var ue=function c(U,ue){if("object"!=h(U)||!U)return U;var oe=U[Symbol.toPrimitive];if(void 0!==oe){var Xe=oe.call(U,ue||"default");if("object"!=h(Xe))return Xe;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===ue?String:Number)(U)}(U,"string");return"symbol"==h(ue)?ue:String(ue)}(ue))in U?Object.defineProperty(U,ue,{value:oe,enumerable:!0,configurable:!0,writable:!0}):U[ue]=oe,U}S.d(gt,{A:()=>Oe})},1635:(Tn,gt,S)=>{"use strict";function Oe(H,X){var fe={};for(var se in H)Object.prototype.hasOwnProperty.call(H,se)&&X.indexOf(se)<0&&(fe[se]=H[se]);if(null!=H&&"function"==typeof Object.getOwnPropertySymbols){var ve=0;for(se=Object.getOwnPropertySymbols(H);ve=0;Wt--)(De=H[Wt])&&(Le=(ve<3?De(Le):ve>3?De(X,fe,Le):De(X,fe))||Le);return ve>3&&Le&&Object.defineProperty(X,fe,Le),Le}function Qe(H,X,fe,se){return new(fe||(fe=Promise))(function(Le,De){function Wt(rn){try{Kt(se.next(rn))}catch(Ln){De(Ln)}}function dn(rn){try{Kt(se.throw(rn))}catch(Ln){De(Ln)}}function Kt(rn){rn.done?Le(rn.value):function ve(Le){return Le instanceof fe?Le:new fe(function(De){De(Le)})}(rn.value).then(Wt,dn)}Kt((se=se.apply(H,X||[])).next())})}function mt(H){return this instanceof mt?(this.v=H,this):new mt(H)}function Me(H,X,fe){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var ve,se=fe.apply(H,X||[]),Le=[];return ve={},De("next"),De("throw"),De("return"),ve[Symbol.asyncIterator]=function(){return this},ve;function De(Zn){se[Zn]&&(ve[Zn]=function(nr){return new Promise(function(er,yr){Le.push([Zn,nr,er,yr])>1||Wt(Zn,nr)})})}function Wt(Zn,nr){try{!function dn(Zn){Zn.value instanceof mt?Promise.resolve(Zn.value.v).then(Kt,rn):Ln(Le[0][2],Zn)}(se[Zn](nr))}catch(er){Ln(Le[0][3],er)}}function Kt(Zn){Wt("next",Zn)}function rn(Zn){Wt("throw",Zn)}function Ln(Zn,nr){Zn(nr),Le.shift(),Le.length&&Wt(Le[0][0],Le[0][1])}}function ge(H){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var fe,X=H[Symbol.asyncIterator];return X?X.call(H):(H=function Dt(H){var X="function"==typeof Symbol&&Symbol.iterator,fe=X&&H[X],se=0;if(fe)return fe.call(H);if(H&&"number"==typeof H.length)return{next:function(){return H&&se>=H.length&&(H=void 0),{value:H&&H[se++],done:!H}}};throw new TypeError(X?"Object is not iterable.":"Symbol.iterator is not defined.")}(H),fe={},se("next"),se("throw"),se("return"),fe[Symbol.asyncIterator]=function(){return this},fe);function se(Le){fe[Le]=H[Le]&&function(De){return new Promise(function(Wt,dn){!function ve(Le,De,Wt,dn){Promise.resolve(dn).then(function(Kt){Le({value:Kt,done:Wt})},De)}(Wt,dn,(De=H[Le](De)).done,De.value)})}}}S.d(gt,{AQ:()=>Me,Cg:()=>U,N3:()=>mt,Tt:()=>Oe,sH:()=>Qe,xN:()=>ge}),"function"==typeof SuppressedError&&SuppressedError}},Tn=>{Tn(Tn.s=63)}]); \ No newline at end of file diff --git a/www/runtime.b4b1a3858976ce41.js b/www/runtime.b4b1a3858976ce41.js deleted file mode 100644 index a9aa6db..0000000 --- a/www/runtime.b4b1a3858976ce41.js +++ /dev/null @@ -1 +0,0 @@ -(()=>{"use strict";var e,v={},g={};function f(e){var c=g[e];if(void 0!==c)return c.exports;var a=g[e]={exports:{}};return v[e].call(a.exports,a,a.exports,f),a.exports}f.m=v,e=[],f.O=(c,a,d,b)=>{if(!a){var t=1/0;for(r=0;r=b)&&Object.keys(f.O).every(p=>f.O[p](a[n]))?a.splice(n--,1):(l=!1,b0&&e[r-1][2]>b;r--)e[r]=e[r-1];e[r]=[a,d,b]},f.n=e=>{var c=e&&e.__esModule?()=>e.default:()=>e;return f.d(c,{a:c}),c},(()=>{var c,e=Object.getPrototypeOf?a=>Object.getPrototypeOf(a):a=>a.__proto__;f.t=function(a,d){if(1&d&&(a=this(a)),8&d||"object"==typeof a&&a&&(4&d&&a.__esModule||16&d&&"function"==typeof a.then))return a;var b=Object.create(null);f.r(b);var r={};c=c||[null,e({}),e([]),e(e)];for(var t=2&d&&a;"object"==typeof t&&!~c.indexOf(t);t=e(t))Object.getOwnPropertyNames(t).forEach(l=>r[l]=()=>a[l]);return r.default=()=>a,f.d(b,r),b}})(),f.d=(e,c)=>{for(var a in c)f.o(c,a)&&!f.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:c[a]})},f.f={},f.e=e=>Promise.all(Object.keys(f.f).reduce((c,a)=>(f.f[a](e,c),c),[])),f.u=e=>(({2076:"common",7278:"polyfills-dom",9329:"polyfills-core-js"}[e]||e)+"."+{246:"feca7d34fa21624f",383:"623e80bdceff0f61",441:"c8d135e5d56e5723",839:"283ada25cfa51ac0",964:"466b88054b5c618c",1049:"7ef232095c56e4df",1062:"dc4664f035384c33",1101:"83532fd95b1e4cb4",1102:"010dfe13f6ca7e15",1205:"5bfd81c3b6ceffc4",1207:"a3010e283fee40c9",1293:"ee80f2d33790618d",1459:"32c41a59c0fd4cf1",1577:"f6f558490ff910b3",1581:"863ec7b6285a1ad7",1699:"3ef910ea4e2a5d0e",2051:"c368fe66a9153379",2069:"2eb29319cb425843",2075:"1971ba880d06cc30",2076:"7162eac78dfcd0da",2144:"5d46fa3641b801f2",2348:"12b471577685ffbe",2375:"efb0d99d1467ed67",2415:"dddee43f1c9b92e7",2560:"f34ba2c5e85b55c8",2580:"dd2d37daccf76d3f",2839:"45a84ab42dbf5be1",2885:"d64fa10bd441cbc8",3151:"3e501609e759853a",3162:"825364e1635b086f",3506:"899dcc5e5d913023",3511:"16739e7034875331",3814:"4f667f072e44b4e7",3825:"331f98cf89b934e3",3935:"919f86033fc39ee2",3998:"ffd547c928c28334",4171:"f5bc55c1acb0f5c1",4183:"0d54a4cc8cbc3a61",4348:"16e6409072fc8e11",4406:"03b087c2d77cb960",4443:"74ec71e1102d5a82",4463:"ce74c63a27a7a872",4591:"7a48c0cf9464e62b",4699:"01733b3942afbe92",4867:"17817bc208c2836c",4940:"87fd705e6ac35516",5088:"adac93e88cce9318",5100:"659224ed1f94442c",5197:"cfc60de4c5213fec",5222:"9cbea5f62b0fb679",5712:"a9a2db8da6f1a8cd",5722:"626381443c213363",5887:"708ea3877f30ffcd",5949:"2ed93c457aa1e9fb",6024:"3c02ab7fe82fedfe",6433:"26eeba8bb230b119",6521:"3c5b756783b6739a",6656:"bd1aa2cc43128309",6688:"11584b254a031d91",6840:"fd32dada9c8ec44e",6927:"71b59311cb8c71c7",7030:"f2a9bf080bedfc5b",7076:"2b7ea8b1f54f4458",7179:"80391eb100990080",7240:"680a87741a5535b1",7278:"bf542500b6fca113",7356:"911eacb1ce959b5e",7372:"4ea07cfe7eb821be",7428:"cb325b96b92ea4c2",7444:"a7a196ab7cc1ae6b",7715:"38a92d2d4c3969c1",7720:"78509b154c08b472",7907:"ef61612b4bf3b859",7923:"a53b6d582c6506e1",8066:"67e76a5c3f71f306",8193:"476b12959c4b189d",8314:"52348a57ed623e38",8361:"3d466d853997fbb0",8477:"15dacf21c512c8d4",8533:"b6a5800de88c91e2",8584:"94ca33677cedf961",8805:"7a687270c4acd743",8814:"4175e28b98837400",8970:"402b7daea47854b9",9013:"b8cefd92ba4e66d6",9273:"16673f4c5278d1b8",9329:"c76198334f717402",9344:"2d668603b6130b28",9697:"57e559625e67bb53",9906:"7831fb32a0a705fa",9977:"948bf38bed890db4"}[e]+".js"),f.miniCssF=e=>{},f.o=(e,c)=>Object.prototype.hasOwnProperty.call(e,c),(()=>{var e={},c="app:";f.l=(a,d,b,r)=>{if(e[a])e[a].push(d);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:c=>c},typeof trustedTypes<"u"&&trustedTypes.createPolicy&&(e=trustedTypes.createPolicy("angular#bundler",e))),e)})(),f.tu=e=>f.tt().createScriptURL(e),f.p="",(()=>{var e={9121:0};f.f.j=(d,b)=>{var r=f.o(e,d)?e[d]:void 0;if(0!==r)if(r)b.push(r[2]);else if(9121!=d){var t=new Promise((o,s)=>r=e[d]=[o,s]);b.push(r[2]=t);var l=f.p+f.u(d),n=new Error;f.l(l,o=>{if(f.o(e,d)&&(0!==(r=e[d])&&(e[d]=void 0),r)){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,r[1](n)}},"chunk-"+d,d)}else e[d]=0},f.O.j=d=>0===e[d];var c=(d,b)=>{var n,i,[r,t,l]=b,o=0;if(r.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(d&&d(b);o{"use strict";var e,v={},g={};function f(e){var c=g[e];if(void 0!==c)return c.exports;var a=g[e]={exports:{}};return v[e].call(a.exports,a,a.exports,f),a.exports}f.m=v,e=[],f.O=(c,a,t,b)=>{if(!a){var d=1/0;for(r=0;r=b)&&Object.keys(f.O).every(p=>f.O[p](a[n]))?a.splice(n--,1):(l=!1,b0&&e[r-1][2]>b;r--)e[r]=e[r-1];e[r]=[a,t,b]},f.n=e=>{var c=e&&e.__esModule?()=>e.default:()=>e;return f.d(c,{a:c}),c},(()=>{var c,e=Object.getPrototypeOf?a=>Object.getPrototypeOf(a):a=>a.__proto__;f.t=function(a,t){if(1&t&&(a=this(a)),8&t||"object"==typeof a&&a&&(4&t&&a.__esModule||16&t&&"function"==typeof a.then))return a;var b=Object.create(null);f.r(b);var r={};c=c||[null,e({}),e([]),e(e)];for(var d=2&t&&a;"object"==typeof d&&!~c.indexOf(d);d=e(d))Object.getOwnPropertyNames(d).forEach(l=>r[l]=()=>a[l]);return r.default=()=>a,f.d(b,r),b}})(),f.d=(e,c)=>{for(var a in c)f.o(c,a)&&!f.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:c[a]})},f.f={},f.e=e=>Promise.all(Object.keys(f.f).reduce((c,a)=>(f.f[a](e,c),c),[])),f.u=e=>(({2076:"common",7278:"polyfills-dom",9329:"polyfills-core-js"}[e]||e)+"."+{441:"c8d135e5d56e5723",839:"283ada25cfa51ac0",964:"466b88054b5c618c",1010:"2bace76a66f84131",1015:"3d449385ac057e7f",1049:"7ef232095c56e4df",1081:"724852e553670d61",1102:"010dfe13f6ca7e15",1143:"9c0992c986c3ab31",1293:"ee80f2d33790618d",1313:"46ae0a0d0e94f2f8",1459:"32c41a59c0fd4cf1",1577:"f6f558490ff910b3",2075:"1971ba880d06cc30",2076:"7162eac78dfcd0da",2144:"5d46fa3641b801f2",2348:"12b471577685ffbe",2375:"efb0d99d1467ed67",2415:"dddee43f1c9b92e7",2560:"f34ba2c5e85b55c8",2580:"dd2d37daccf76d3f",2757:"3abded5cb12716d3",2885:"d64fa10bd441cbc8",3100:"be59eccfa5c9316f",3162:"825364e1635b086f",3451:"5cb648a56743fe4c",3506:"899dcc5e5d913023",3511:"16739e7034875331",3646:"554cb7eb2d8d0ce0",3814:"4f667f072e44b4e7",4171:"f5bc55c1acb0f5c1",4183:"0d54a4cc8cbc3a61",4348:"16e6409072fc8e11",4406:"03b087c2d77cb960",4443:"74ec71e1102d5a82",4463:"ce74c63a27a7a872",4591:"7a48c0cf9464e62b",4699:"01733b3942afbe92",4839:"1358f2425ffb5332",4867:"17817bc208c2836c",4914:"52404a177d9d7dd4",5054:"a36f0725f93c0766",5100:"659224ed1f94442c",5197:"cfc60de4c5213fec",5222:"9cbea5f62b0fb679",5399:"0706ad352f9b7c14",5712:"a9a2db8da6f1a8cd",5887:"708ea3877f30ffcd",5949:"2ed93c457aa1e9fb",5995:"2de4ee42f61961e5",6024:"3c02ab7fe82fedfe",6303:"1f016d3c5e585274",6433:"26eeba8bb230b119",6480:"2d3c5432c242ecc0",6521:"3c5b756783b6739a",6536:"a4f178f939f2d134",6840:"fd32dada9c8ec44e",6975:"6d2e5de0574c6402",7030:"f2a9bf080bedfc5b",7056:"ea1f1c37ffd3186d",7076:"2b7ea8b1f54f4458",7179:"80391eb100990080",7240:"680a87741a5535b1",7278:"bf542500b6fca113",7356:"911eacb1ce959b5e",7372:"4ea07cfe7eb821be",7428:"cb325b96b92ea4c2",7720:"78509b154c08b472",7762:"6371eca429bb8376",8066:"67e76a5c3f71f306",8193:"476b12959c4b189d",8314:"52348a57ed623e38",8361:"3d466d853997fbb0",8477:"15dacf21c512c8d4",8566:"52fa7b8c5c22d53f",8584:"94ca33677cedf961",8711:"4db3a14e6ae9d375",8805:"7a687270c4acd743",8814:"4175e28b98837400",8886:"87f743bcbe3c6802",8970:"402b7daea47854b9",8984:"d28cf89bc8592645",9013:"b8cefd92ba4e66d6",9070:"29b18cc91c088f3f",9273:"16673f4c5278d1b8",9329:"c76198334f717402",9344:"2d668603b6130b28",9456:"0b4cbaf1cbe8b46a",9546:"52a073ad6dd48f2b",9697:"57e559625e67bb53",9977:"948bf38bed890db4"}[e]+".js"),f.miniCssF=e=>{},f.o=(e,c)=>Object.prototype.hasOwnProperty.call(e,c),(()=>{var e={},c="app:";f.l=(a,t,b,r)=>{if(e[a])e[a].push(t);else{var d,l;if(void 0!==b)for(var n=document.getElementsByTagName("script"),i=0;i{d.onerror=d.onload=null,clearTimeout(u);var y=e[a];if(delete e[a],d.parentNode&&d.parentNode.removeChild(d),y&&y.forEach(_=>_(p)),m)return m(p)},u=setTimeout(s.bind(null,void 0,{type:"timeout",target:d}),12e4);d.onerror=s.bind(null,d.onerror),d.onload=s.bind(null,d.onload),l&&document.head.appendChild(d)}}})(),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:c=>c},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=(t,b)=>{var r=f.o(e,t)?e[t]:void 0;if(0!==r)if(r)b.push(r[2]);else if(9121!=t){var d=new Promise((o,s)=>r=e[t]=[o,s]);b.push(r[2]=d);var l=f.p+f.u(t),n=new Error;f.l(l,o=>{if(f.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var s=o&&("load"===o.type?"missing":o.type),u=o&&o.target&&o.target.src;n.message="Loading chunk "+t+" failed.\n("+s+": "+u+")",n.name="ChunkLoadError",n.type=s,n.request=u,r[1](n)}},"chunk-"+t,t)}else e[t]=0},f.O.j=t=>0===e[t];var c=(t,b)=>{var n,i,[r,d,l]=b,o=0;if(r.some(u=>0!==e[u])){for(n in d)f.o(d,n)&&(f.m[n]=d[n]);if(l)var s=l(f)}for(t&&t(b);o