diff --git a/.env b/.env
new file mode 100644
index 000000000..7d910f148
--- /dev/null
+++ b/.env
@@ -0,0 +1 @@
+SKIP_PREFLIGHT_CHECK=true
\ No newline at end of file
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 000000000..89967363f
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,20 @@
+# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
+
+# dependencies
+/node_modules
+/.pnp
+.pnp.js
+
+# testing
+/coverage
+
+# misc
+.DS_Store
+.env.local
+.env.development.local
+.env.test.local
+.env.production.local
+
+npm-debug.log*
+yarn-debug.log*
+yarn-error.log*
diff --git a/ObjetivosDeAprendizaje.md b/ObjetivosDeAprendizaje.md
new file mode 100644
index 000000000..b2b4e9ba7
--- /dev/null
+++ b/ObjetivosDeAprendizaje.md
@@ -0,0 +1,352 @@
+# Burger Queen
+
+## Preámbulo
+
+[React](https://reactjs.org/), [Vue](https://es.vuejs.org/index.html) y [Angular](https://angular.io/)
+son algunos de los _frameworks_ y _librerías_ de JavaScript más utilizados por
+lxs desarrolladorxs alrededor del mundo, y hay una razón para eso.
+En el contexto del navegador, [_mantener la interfaz sincronizada con el estado
+es difícil_](https://medium.com/dailyjs/the-deepest-reason-why-modern-javascript-frameworks-exist-933b86ebc445).
+Al elegir un _framework_ o _librería_ para nuestra interfaz, nos apoyamos en una
+serie de convenciones e implementaciones _probadas_ y _documentadas_ para
+resolver un problema común a toda interfaz web. Esto nos permite concentrarnos
+mejor (dedicar más tiempo) en las características _específicas_ de
+nuestra aplicación.
+
+Cuando elegimos una de estas tecnologías no solo importamos un pedacito de
+código para reusarlo (lo cuál es un gran valor per se), si no que adoptamos una
+**arquitectura**, una serie de **principios de diseño**, un **paradigma**, unas
+**abstracciones**, un **vocabulario**, una **comunidad**, etc...
+
+Como desarrolladora Front-end, estos kits de desarrollo pueden resultarte
+de gran ayuda para implementar rápidamente características de los proyectos en
+los que trabajes.
+
+## Resumen del proyecto
+
+Esta vez tenemos un proyecto 100% por encargo. Si bien siempre puedes (y debes)
+hacer sugerencias de mejoras y/o cambios, muchas veces trabajarás en proyectos
+en los que primero hay que asegurarse de cumplir con lo requerido.
+
+Un pequeño restaurante de hamburguesas, que está creciendo, necesita una
+interfaz en la que puedan tomar pedidos usando una _tablet_, y enviarlos
+a la cocina para que se preparen ordenada y eficientemente (a través de un
+_backend_ del que nos darán detalles más adelante).
+
+![burger-queen](https://user-images.githubusercontent.com/110297/42118136-996b4a52-7bc6-11e8-8a03-ada078754715.jpg)
+
+Esta es la información que tenemos del cliente:
+
+> Somos **Burguer Queen**, una cadena de comida 24hrs.
+>
+> Nuestra propuesta de servicio 24hrs ha tenido muy buena acogida y, para
+> seguir creciendo, necesitamos un sistema que nos ayude a tomar los pedidos de
+> nuestros clientes.
+>
+> Tenemos 2 menús: uno muy sencillo para el desayuno:
+>
+> | Ítem | Precio \$ |
+> | ------------------------- | --------- |
+> | Café americano | 5 |
+> | Café con leche | 7 |
+> | Sandwich de jamón y queso | 10 |
+> | Jugo de frutas natural | 7 |
+>
+> Y otro menú para el resto del día:
+>
+> | Ítem | Precio |
+> | -------------------- | ------ |
+> | **Hamburguesas** | **\$** |
+> | Hamburguesa simple | 10 |
+> | Hamburguesa doble | 15 |
+> | **Acompañamientos** | **\$** |
+> | Papas fritas | 5 |
+> | Aros de cebolla | 5 |
+> | **Para tomar** | **\$** |
+> | Agua 500ml | 5 |
+> | Agua 750ml | 7 |
+> | Bebida/gaseosa 500ml | 7 |
+> | Bebida/gaseosa 750ml | 10 |
+>
+> **Importante:** Lxs clientes pueden escoger entre hamburguesas de res,
+> de pollo, o vegetariana. Además, por \$ 1 adicional, pueden agregarle queso
+> o huevo.
+>
+> Nuestros clientes son bastante indecisos, por lo que es muy común que cambien
+> el pedido varias veces antes de finalizarlo.
+
+La interfaz debe mostrar los dos menús (desayuno y resto del día), cada uno
+con todos sus _productos_. El usuario debe poder ir eligiendo qué _productos_
+agregar y la interfaz debe ir mostrando el _resumen del pedido_ con el
+costo total.
+
+![out](https://user-images.githubusercontent.com/110297/45984241-b8b51c00-c025-11e8-8fa4-a390016bee9d.gif)
+
+## Objetivos de aprendizaje
+
+1. El objetivo principal de es aprender a construir una _interfaz web_ usando
+ el _framework_ elegido ([React](https://reactjs.org/), [Vue](https://es.vuejs.org/index.html) o [Angular](https://angular.io/)) o vanilla JS. Todos estos frameworks de
+ Front-end atacan el mismo problema: **cómo mantener la interfaz y el estado
+ sincronizados**. Así que esta experiencia espera familiarizarte con el concepto
+ de _estado de pantalla_, y cómo cada cambio sobre el estado se va a
+ ir reflejando en la interfaz (por ejemplo, cada vez que agregamos un _producto_
+ a un _pedido_, la interfaz debe actualizar la lista del pedido y el total).
+
+2. Como objetivo secundario, deberás seguir las recomendaciones para PWAs
+ (_Progressive Web Apps_), lo cual incluye conceptos como **offline**. Para
+ guiarte con respecto a este tema te recomendamos usar [Lighthouse](https://developers.google.com/web/tools/lighthouse/?hl=es),
+ que es una herramienta de Google que nos ayuda a asegurar que nuestras web apps
+ sigan "buenas prácticas". De hecho, usaremos Lighthouse a la hora de evaluar el
+ proyecto.
+
+Recuerda colocar en esta seccion los objetivos de aprendizaje que quedaron
+pendientes de tu proyecto anterior.
+
+### HTML y CSS
+
+- [ ] HTML semántico
+- [ ] CSS flexbox
+- [ ] Sass
+- [ ] Maquetación
+
+### Frontend Development
+
+- [ ] Componentes
+- [ ] Manejo del estado
+
+### PWA
+
+- [ ] Concepto
+- [ ] Utilidad
+- [ ] Que es [Workbox](https://developers.google.com/web/tools/workbox)
+- [ ] Qué es un `serviceWorker`
+
+### Angular
+
+- [ ] [Uso de Components | Templates](https://angular.io/guide/architecture-components#introduction-to-components)
+- [ ] [Directivas estructurales (ngIf / ngFor)](https://angular.io/guide/template-syntax#built-in-structural-directives)
+- [ ] [@Input | @Ouput](https://angular.io/guide/component-interaction#component-interaction)
+- [ ] [Creación y uso de servicios](https://angular.io/guide/architecture-services#providing-services)
+- [ ] [Manejos de rutas](https://angular.io/guide/router)
+- [ ] [Uso de Observables](https://angular.io/guide/observables-in-angular)
+- [ ] [Uso de HttpClient](https://angular.io/guide/http)
+- [ ] [Estilos de componentes (ngStyle / ngClass)](https://angular.io/guide/template-syntax#built-in-directives)
+
+### React
+
+- [ ] [`JSX`](https://es.reactjs.org/docs/introducing-jsx.html)
+- [ ] [Componentes `class` y componentes `function`](https://es.reactjs.org/docs/components-and-props.html#function-and-class-components)
+- [ ] `props`
+- [ ] [Manejo de eventos](https://es.reactjs.org/docs/handling-events.html)
+- [ ] [Listas y keys](https://es.reactjs.org/docs/lists-and-keys.html)
+- [ ] [Renderizado condicional](https://es.reactjs.org/docs/conditional-rendering.html)
+- [ ] [Levantamiento de estados](https://es.reactjs.org/docs/lifting-state-up.html)
+- [ ] [`hooks`](https://es.reactjs.org/docs/hooks-intro.html)
+- [ ] [`CSS` modules](https://create-react-app.dev/docs/adding-a-css-modules-stylesheet)
+- [ ] [React Router](https://reacttraining.com/react-router/web)
+
+### Vue
+
+- [ ] [Instancia de Vue.js](https://es.vuejs.org/v2/guide/instance.html)
+- [ ] [Datos y métodos](https://es.vuejs.org/v2/guide/instance.html#Datos-y-Metodos)
+- [ ] [Uso y creación de Componentes](https://vuejs.org/v2/guide/components.html)
+- [ ] [Props](https://es.vuejs.org/v2/guide/components.html#Pasando-datos-a-componentes-secundarios-con-Props)
+- [ ] Directivas ([v-bind](https://es.vuejs.org/v2/api/#v-bind) | [v-model](https://es.vuejs.org/v2/guide/forms.html))
+- [ ] Renderizado condicional ([v-if](https://es.vuejs.org/v2/guide/conditional.html#v-if) | [v-else](https://es.vuejs.org/v2/guide/conditional.html#v-else))
+- [ ] Iteraciones ([v-for](https://es.vuejs.org/v2/guide/list.html#Mapeando-una-matriz-a-elementos-con-v-for))
+- [ ] Eventos ([v-on](https://es.vuejs.org/v2/guide/events.html))
+- [ ] [Propiedades Computadas y Observadores](https://es.vuejs.org/v2/guide/computed.html)
+- [ ] [Router](https://router.vuejs.org/guide/#html)
+- [ ] [Clases y Estilos](https://es.vuejs.org/v2/guide/class-and-style.html)
+- [ ] [Gestión de Estado](https://es.vuejs.org/v2/guide/state-management.html#Gestion-de-estado-simple-desde-cero)
+
+### Firebase
+
+- [ ] Firestore
+- [ ] Firebase security rules
+- [ ] Observables
+
+### Testing
+
+- [ ] Testeo de tus interfaces
+- [ ] Testeo de componentes
+- [ ] Testeo asíncrono
+- [ ] Mocking
+
+### Colaboración en Github
+
+- [ ] Branches
+- [ ] Pull Requests
+- [ ] Tags
+
+### Organización en Github
+
+- [ ] Projects
+- [ ] Issues
+- [ ] Labels
+- [ ] Milestones
+
+### Buenas prácticas de desarrollo
+
+- [ ] Modularización
+- [ ] Nomenclatura / Semántica
+- [ ] Linting
+
+---
+
+## Consideraciones
+
+- Este proyecto se debe "resolver" de a pares.
+
+- La duración propuesta del proyecto es 5 sprints, con una duración de una semana cada uno.
+
+- Trabaja en una historia hasta terminarla antes de pasar a la siguiente.
+
+- Trabaja hasta la historia que puedas en el tiempo especificado.
+
+- La lógica del proyecto debe estar implementada completamente en JavaScript
+ (ES6+), HTML y CSS y empaquetada de manera automatizada.
+
+- En este proyecto Sí está permitido usar librerías o frameworks
+ (debes elegir entre [React](https://reactjs.org/), [Vue](https://es.vuejs.org/index.html),
+ [Angular](https://angular.io/) o Vanilla Js).
+
+- La aplicación debe ser un _Single Page App_. Los pedidos los tomaremos desde una
+ _tablet_, pero **no queremos una app nativa**, sino una web app que sea
+ **responsive** y pueda funcionar **offline**.
+
+- La interfaz debe estar diseñada específicamente para correr en
+ **tablets**.
+
+- Necesitamos pensar bien en el aspecto UX de quienes van a tomar los pedidos,
+ el tamaño y aspecto de los botones, la visibilidad del estado actual del
+ pedido, etc.
+
+- La aplicación desplegada debe tener 80% o más el las puntuaciones de
+ Performance, Progressive Web App, Accessibility y Best Practices de Lighthouse.
+
+- Deberas de guardar la información de los pedidos realizados por
+ lo cual te recomendamos utilizar [Firebase](https://firebase.google.com/).
+
+- La aplicación debe hacer uso de `npm-scripts` y contar con scripts `start`,
+ `test`, `build` y `deploy`, que se encarguen de arrancar, correr las pruebas,
+ empaquetar y desplegar la aplicación respectivamente.
+
+- Los tests unitarios deben cubrir un mínimo del 90% de _statements_, _functions_,
+ _lines_ y _branches_.
+
+- Por otro lado, deberás definir la estructura de carpetas y archivos que consideres
+ necesaria. Puedes guiarte de las convenciones del _framework_ elegido. Por ende,
+ los _tests_ y el _setup_ necesario para ejecutarlos, serán hechos por ti.
+
+## Criterios de aceptación del proyecto
+
+### Definición del producto
+
+El [_Product Owner_](https://www.youtube.com/watch?v=r2hU7MVIzxs&t=202s) nos presenta este _backlog_ que es el resultado de su trabajo con el cliente hasta hoy.
+
+---
+
+#### [Historia de usuario 1] Mesero/a debe poder tomar pedido de cliente
+
+Yo como meserx quiero tomar el pedido de un cliente para no depender de mi mala
+memoria, para saber cuánto cobrar, y enviarlo a la cocina para evitar errores y
+que se puedan ir preparando en orden.
+
+##### Criterios de aceptación
+
+Lo que debe ocurrir para que se satisfagan las necesidades del usuario
+
+- Anotar nombre de cliente.
+- Agregar productos al pedido.
+- Eliminar productos.
+- Ver resumen y el total de la compra.
+- Enviar pedido a cocina (guardar en alguna base de datos).
+- Se ve y funciona bien en una _tablet_
+
+##### Definición de terminado
+
+Lo acordado que debe ocurrir para decir que la historia está terminada.
+
+- Debes haber recibido _code review_ de al menos una compañera.
+- Haces _test_ unitarios y, además, has testeado tu producto manualmente.
+- Hiciste _tests_ de usabilidad e incorporaste el _feedback_ del usuario.
+- Desplegaste tu aplicación y has etiquetado tu versión (git tag).
+
+---
+
+#### [Historia de usuario 2] Jefe de cocina debe ver los pedidos
+
+Yo como jefx de cocina quiero ver los pedidos de los clientes en orden y
+marcar cuáles están listos para saber qué se debe cocinar y avisar a lxs meserxs
+que un pedido está listo para servirlo a un cliente.
+
+##### Criterios de aceptación
+
+- Ver los pedidos ordenados según se van haciendo.
+- Marcar los pedidos que se han preparado y están listos para servirse.
+- Ver el tiempo que tomó prepara el pedido desde que llegó hasta que se
+ marcó como completado.
+
+##### Definición de terminado
+
+- Debes haber recibido _code review_ de al menos una compañera.
+- Haces _test_ unitarios y, además, has testeado tu producto manualmente.
+- Hiciste _tests_ de usabilidad e incorporaste el _feedback_ del usuario.
+- Desplegaste tu aplicación y has etiquetado tu versión (git tag).
+
+---
+
+#### [Historia de usuario 3] Meserx debe ver pedidos listos para servir
+
+Yo como meserx quiero ver los pedidos que están preparados para entregarlos
+rápidamente a los clientes que las hicieron.
+
+##### Criterios de aceptación
+
+- Ver listado de pedido listos para servir.
+- Marcar pedidos que han sido entregados.
+
+##### Definición de terminado
+
+- Debes haber recibido _code review_ de al menos una compañera.
+- Haces _test_ unitarios y, además, has testeado tu producto manualmente.
+- Hiciste _tests_ de usabilidad e incorporaste el _feedback_ del usuario.
+- Desplegaste tu aplicación y has etiquetado tu versión (git tag).
+- Los datos se deben mantener íntegros, incluso después de que un pedido ha
+ terminado. Todo esto para poder tener estadísticas en el futuro.
+
+---
+
+## Pistas / Tips
+
+### Frameworks / libraries
+
+- [React](https://reactjs.org/)
+- [Angular](https://angular.io/)
+- [Vue](https://es.vuejs.org/index.html)
+
+### Herramientas
+
+- [npm-scripts](https://docs.npmjs.com/misc/scripts)
+- [Babel](https://babeljs.io/)
+- [webpack](https://webpack.js.org/)
+
+### PWA
+
+- [Tu primera Progressive Web App - Google developers](https://developers.google.com/web/fundamentals/codelabs/your-first-pwapp/?hl=es)
+- [Progressive Web Apps - codigofacilito.com](https://codigofacilito.com/articulos/progressive-apps)
+- [offlinefirst.org](http://offlinefirst.org/)
+- [Usando Service Workers - MDN](https://developer.mozilla.org/es/docs/Web/API/Service_Worker_API/Using_Service_Workers)
+- [Cómo habilitar datos sin conexión - Firebase Docs](https://firebase.google.com/docs/firestore/manage-data/enable-offline?hl=es-419)
+
+### Serverless
+
+- [Qué es eso de serverless? - @PamRucinque en Medium](https://medium.com/@PamRucinque/qu%C3%A9-es-eso-de-serverless-f4f6c8949b87)
+- [Qué es Serverless? | FooBar - YouTube](https://www.youtube.com/watch?v=_SYHUpLi-2U)
+- [Firebase](https://firebase.google.com/)
+- [Serverless Architectures - Martin Fowler](https://www.martinfowler.com/articles/serverless.html)
+
+### Cloud functions
+
+- [Cloud functions - Firebase Docs](https://firebase.google.com/docs/functions/?hl=es-419)
diff --git a/README.md b/README.md
index b2b4e9ba7..4fca3c642 100644
--- a/README.md
+++ b/README.md
@@ -1,352 +1,14 @@
-# Burger Queen
+# Burger Queen
-## Preámbulo
+Burger Queen 👑 is a Web App designed for restaurants, that allows you to Create, Update, Read and Delete orders in real time.
-[React](https://reactjs.org/), [Vue](https://es.vuejs.org/index.html) y [Angular](https://angular.io/)
-son algunos de los _frameworks_ y _librerías_ de JavaScript más utilizados por
-lxs desarrolladorxs alrededor del mundo, y hay una razón para eso.
-En el contexto del navegador, [_mantener la interfaz sincronizada con el estado
-es difícil_](https://medium.com/dailyjs/the-deepest-reason-why-modern-javascript-frameworks-exist-933b86ebc445).
-Al elegir un _framework_ o _librería_ para nuestra interfaz, nos apoyamos en una
-serie de convenciones e implementaciones _probadas_ y _documentadas_ para
-resolver un problema común a toda interfaz web. Esto nos permite concentrarnos
-mejor (dedicar más tiempo) en las características _específicas_ de
-nuestra aplicación.
+You must login to view the view the contents, and you can do so with the following credentials:
-Cuando elegimos una de estas tecnologías no solo importamos un pedacito de
-código para reusarlo (lo cuál es un gran valor per se), si no que adoptamos una
-**arquitectura**, una serie de **principios de diseño**, un **paradigma**, unas
-**abstracciones**, un **vocabulario**, una **comunidad**, etc...
+E-mail: keupa@bq.com || mara@bq.com
+Password: 123456
-Como desarrolladora Front-end, estos kits de desarrollo pueden resultarte
-de gran ayuda para implementar rápidamente características de los proyectos en
-los que trabajes.
+Technologies used: HTML5, CSS3, Firebase and React.
-## Resumen del proyecto
+[Demo](https://i.pinimg.com/originals/e9/02/2c/e9022cd0abbf53461b6cdcafa10e4674.jpg)
-Esta vez tenemos un proyecto 100% por encargo. Si bien siempre puedes (y debes)
-hacer sugerencias de mejoras y/o cambios, muchas veces trabajarás en proyectos
-en los que primero hay que asegurarse de cumplir con lo requerido.
-
-Un pequeño restaurante de hamburguesas, que está creciendo, necesita una
-interfaz en la que puedan tomar pedidos usando una _tablet_, y enviarlos
-a la cocina para que se preparen ordenada y eficientemente (a través de un
-_backend_ del que nos darán detalles más adelante).
-
-![burger-queen](https://user-images.githubusercontent.com/110297/42118136-996b4a52-7bc6-11e8-8a03-ada078754715.jpg)
-
-Esta es la información que tenemos del cliente:
-
-> Somos **Burguer Queen**, una cadena de comida 24hrs.
->
-> Nuestra propuesta de servicio 24hrs ha tenido muy buena acogida y, para
-> seguir creciendo, necesitamos un sistema que nos ayude a tomar los pedidos de
-> nuestros clientes.
->
-> Tenemos 2 menús: uno muy sencillo para el desayuno:
->
-> | Ítem | Precio \$ |
-> | ------------------------- | --------- |
-> | Café americano | 5 |
-> | Café con leche | 7 |
-> | Sandwich de jamón y queso | 10 |
-> | Jugo de frutas natural | 7 |
->
-> Y otro menú para el resto del día:
->
-> | Ítem | Precio |
-> | -------------------- | ------ |
-> | **Hamburguesas** | **\$** |
-> | Hamburguesa simple | 10 |
-> | Hamburguesa doble | 15 |
-> | **Acompañamientos** | **\$** |
-> | Papas fritas | 5 |
-> | Aros de cebolla | 5 |
-> | **Para tomar** | **\$** |
-> | Agua 500ml | 5 |
-> | Agua 750ml | 7 |
-> | Bebida/gaseosa 500ml | 7 |
-> | Bebida/gaseosa 750ml | 10 |
->
-> **Importante:** Lxs clientes pueden escoger entre hamburguesas de res,
-> de pollo, o vegetariana. Además, por \$ 1 adicional, pueden agregarle queso
-> o huevo.
->
-> Nuestros clientes son bastante indecisos, por lo que es muy común que cambien
-> el pedido varias veces antes de finalizarlo.
-
-La interfaz debe mostrar los dos menús (desayuno y resto del día), cada uno
-con todos sus _productos_. El usuario debe poder ir eligiendo qué _productos_
-agregar y la interfaz debe ir mostrando el _resumen del pedido_ con el
-costo total.
-
-![out](https://user-images.githubusercontent.com/110297/45984241-b8b51c00-c025-11e8-8fa4-a390016bee9d.gif)
-
-## Objetivos de aprendizaje
-
-1. El objetivo principal de es aprender a construir una _interfaz web_ usando
- el _framework_ elegido ([React](https://reactjs.org/), [Vue](https://es.vuejs.org/index.html) o [Angular](https://angular.io/)) o vanilla JS. Todos estos frameworks de
- Front-end atacan el mismo problema: **cómo mantener la interfaz y el estado
- sincronizados**. Así que esta experiencia espera familiarizarte con el concepto
- de _estado de pantalla_, y cómo cada cambio sobre el estado se va a
- ir reflejando en la interfaz (por ejemplo, cada vez que agregamos un _producto_
- a un _pedido_, la interfaz debe actualizar la lista del pedido y el total).
-
-2. Como objetivo secundario, deberás seguir las recomendaciones para PWAs
- (_Progressive Web Apps_), lo cual incluye conceptos como **offline**. Para
- guiarte con respecto a este tema te recomendamos usar [Lighthouse](https://developers.google.com/web/tools/lighthouse/?hl=es),
- que es una herramienta de Google que nos ayuda a asegurar que nuestras web apps
- sigan "buenas prácticas". De hecho, usaremos Lighthouse a la hora de evaluar el
- proyecto.
-
-Recuerda colocar en esta seccion los objetivos de aprendizaje que quedaron
-pendientes de tu proyecto anterior.
-
-### HTML y CSS
-
-- [ ] HTML semántico
-- [ ] CSS flexbox
-- [ ] Sass
-- [ ] Maquetación
-
-### Frontend Development
-
-- [ ] Componentes
-- [ ] Manejo del estado
-
-### PWA
-
-- [ ] Concepto
-- [ ] Utilidad
-- [ ] Que es [Workbox](https://developers.google.com/web/tools/workbox)
-- [ ] Qué es un `serviceWorker`
-
-### Angular
-
-- [ ] [Uso de Components | Templates](https://angular.io/guide/architecture-components#introduction-to-components)
-- [ ] [Directivas estructurales (ngIf / ngFor)](https://angular.io/guide/template-syntax#built-in-structural-directives)
-- [ ] [@Input | @Ouput](https://angular.io/guide/component-interaction#component-interaction)
-- [ ] [Creación y uso de servicios](https://angular.io/guide/architecture-services#providing-services)
-- [ ] [Manejos de rutas](https://angular.io/guide/router)
-- [ ] [Uso de Observables](https://angular.io/guide/observables-in-angular)
-- [ ] [Uso de HttpClient](https://angular.io/guide/http)
-- [ ] [Estilos de componentes (ngStyle / ngClass)](https://angular.io/guide/template-syntax#built-in-directives)
-
-### React
-
-- [ ] [`JSX`](https://es.reactjs.org/docs/introducing-jsx.html)
-- [ ] [Componentes `class` y componentes `function`](https://es.reactjs.org/docs/components-and-props.html#function-and-class-components)
-- [ ] `props`
-- [ ] [Manejo de eventos](https://es.reactjs.org/docs/handling-events.html)
-- [ ] [Listas y keys](https://es.reactjs.org/docs/lists-and-keys.html)
-- [ ] [Renderizado condicional](https://es.reactjs.org/docs/conditional-rendering.html)
-- [ ] [Levantamiento de estados](https://es.reactjs.org/docs/lifting-state-up.html)
-- [ ] [`hooks`](https://es.reactjs.org/docs/hooks-intro.html)
-- [ ] [`CSS` modules](https://create-react-app.dev/docs/adding-a-css-modules-stylesheet)
-- [ ] [React Router](https://reacttraining.com/react-router/web)
-
-### Vue
-
-- [ ] [Instancia de Vue.js](https://es.vuejs.org/v2/guide/instance.html)
-- [ ] [Datos y métodos](https://es.vuejs.org/v2/guide/instance.html#Datos-y-Metodos)
-- [ ] [Uso y creación de Componentes](https://vuejs.org/v2/guide/components.html)
-- [ ] [Props](https://es.vuejs.org/v2/guide/components.html#Pasando-datos-a-componentes-secundarios-con-Props)
-- [ ] Directivas ([v-bind](https://es.vuejs.org/v2/api/#v-bind) | [v-model](https://es.vuejs.org/v2/guide/forms.html))
-- [ ] Renderizado condicional ([v-if](https://es.vuejs.org/v2/guide/conditional.html#v-if) | [v-else](https://es.vuejs.org/v2/guide/conditional.html#v-else))
-- [ ] Iteraciones ([v-for](https://es.vuejs.org/v2/guide/list.html#Mapeando-una-matriz-a-elementos-con-v-for))
-- [ ] Eventos ([v-on](https://es.vuejs.org/v2/guide/events.html))
-- [ ] [Propiedades Computadas y Observadores](https://es.vuejs.org/v2/guide/computed.html)
-- [ ] [Router](https://router.vuejs.org/guide/#html)
-- [ ] [Clases y Estilos](https://es.vuejs.org/v2/guide/class-and-style.html)
-- [ ] [Gestión de Estado](https://es.vuejs.org/v2/guide/state-management.html#Gestion-de-estado-simple-desde-cero)
-
-### Firebase
-
-- [ ] Firestore
-- [ ] Firebase security rules
-- [ ] Observables
-
-### Testing
-
-- [ ] Testeo de tus interfaces
-- [ ] Testeo de componentes
-- [ ] Testeo asíncrono
-- [ ] Mocking
-
-### Colaboración en Github
-
-- [ ] Branches
-- [ ] Pull Requests
-- [ ] Tags
-
-### Organización en Github
-
-- [ ] Projects
-- [ ] Issues
-- [ ] Labels
-- [ ] Milestones
-
-### Buenas prácticas de desarrollo
-
-- [ ] Modularización
-- [ ] Nomenclatura / Semántica
-- [ ] Linting
-
----
-
-## Consideraciones
-
-- Este proyecto se debe "resolver" de a pares.
-
-- La duración propuesta del proyecto es 5 sprints, con una duración de una semana cada uno.
-
-- Trabaja en una historia hasta terminarla antes de pasar a la siguiente.
-
-- Trabaja hasta la historia que puedas en el tiempo especificado.
-
-- La lógica del proyecto debe estar implementada completamente en JavaScript
- (ES6+), HTML y CSS y empaquetada de manera automatizada.
-
-- En este proyecto Sí está permitido usar librerías o frameworks
- (debes elegir entre [React](https://reactjs.org/), [Vue](https://es.vuejs.org/index.html),
- [Angular](https://angular.io/) o Vanilla Js).
-
-- La aplicación debe ser un _Single Page App_. Los pedidos los tomaremos desde una
- _tablet_, pero **no queremos una app nativa**, sino una web app que sea
- **responsive** y pueda funcionar **offline**.
-
-- La interfaz debe estar diseñada específicamente para correr en
- **tablets**.
-
-- Necesitamos pensar bien en el aspecto UX de quienes van a tomar los pedidos,
- el tamaño y aspecto de los botones, la visibilidad del estado actual del
- pedido, etc.
-
-- La aplicación desplegada debe tener 80% o más el las puntuaciones de
- Performance, Progressive Web App, Accessibility y Best Practices de Lighthouse.
-
-- Deberas de guardar la información de los pedidos realizados por
- lo cual te recomendamos utilizar [Firebase](https://firebase.google.com/).
-
-- La aplicación debe hacer uso de `npm-scripts` y contar con scripts `start`,
- `test`, `build` y `deploy`, que se encarguen de arrancar, correr las pruebas,
- empaquetar y desplegar la aplicación respectivamente.
-
-- Los tests unitarios deben cubrir un mínimo del 90% de _statements_, _functions_,
- _lines_ y _branches_.
-
-- Por otro lado, deberás definir la estructura de carpetas y archivos que consideres
- necesaria. Puedes guiarte de las convenciones del _framework_ elegido. Por ende,
- los _tests_ y el _setup_ necesario para ejecutarlos, serán hechos por ti.
-
-## Criterios de aceptación del proyecto
-
-### Definición del producto
-
-El [_Product Owner_](https://www.youtube.com/watch?v=r2hU7MVIzxs&t=202s) nos presenta este _backlog_ que es el resultado de su trabajo con el cliente hasta hoy.
-
----
-
-#### [Historia de usuario 1] Mesero/a debe poder tomar pedido de cliente
-
-Yo como meserx quiero tomar el pedido de un cliente para no depender de mi mala
-memoria, para saber cuánto cobrar, y enviarlo a la cocina para evitar errores y
-que se puedan ir preparando en orden.
-
-##### Criterios de aceptación
-
-Lo que debe ocurrir para que se satisfagan las necesidades del usuario
-
-- Anotar nombre de cliente.
-- Agregar productos al pedido.
-- Eliminar productos.
-- Ver resumen y el total de la compra.
-- Enviar pedido a cocina (guardar en alguna base de datos).
-- Se ve y funciona bien en una _tablet_
-
-##### Definición de terminado
-
-Lo acordado que debe ocurrir para decir que la historia está terminada.
-
-- Debes haber recibido _code review_ de al menos una compañera.
-- Haces _test_ unitarios y, además, has testeado tu producto manualmente.
-- Hiciste _tests_ de usabilidad e incorporaste el _feedback_ del usuario.
-- Desplegaste tu aplicación y has etiquetado tu versión (git tag).
-
----
-
-#### [Historia de usuario 2] Jefe de cocina debe ver los pedidos
-
-Yo como jefx de cocina quiero ver los pedidos de los clientes en orden y
-marcar cuáles están listos para saber qué se debe cocinar y avisar a lxs meserxs
-que un pedido está listo para servirlo a un cliente.
-
-##### Criterios de aceptación
-
-- Ver los pedidos ordenados según se van haciendo.
-- Marcar los pedidos que se han preparado y están listos para servirse.
-- Ver el tiempo que tomó prepara el pedido desde que llegó hasta que se
- marcó como completado.
-
-##### Definición de terminado
-
-- Debes haber recibido _code review_ de al menos una compañera.
-- Haces _test_ unitarios y, además, has testeado tu producto manualmente.
-- Hiciste _tests_ de usabilidad e incorporaste el _feedback_ del usuario.
-- Desplegaste tu aplicación y has etiquetado tu versión (git tag).
-
----
-
-#### [Historia de usuario 3] Meserx debe ver pedidos listos para servir
-
-Yo como meserx quiero ver los pedidos que están preparados para entregarlos
-rápidamente a los clientes que las hicieron.
-
-##### Criterios de aceptación
-
-- Ver listado de pedido listos para servir.
-- Marcar pedidos que han sido entregados.
-
-##### Definición de terminado
-
-- Debes haber recibido _code review_ de al menos una compañera.
-- Haces _test_ unitarios y, además, has testeado tu producto manualmente.
-- Hiciste _tests_ de usabilidad e incorporaste el _feedback_ del usuario.
-- Desplegaste tu aplicación y has etiquetado tu versión (git tag).
-- Los datos se deben mantener íntegros, incluso después de que un pedido ha
- terminado. Todo esto para poder tener estadísticas en el futuro.
-
----
-
-## Pistas / Tips
-
-### Frameworks / libraries
-
-- [React](https://reactjs.org/)
-- [Angular](https://angular.io/)
-- [Vue](https://es.vuejs.org/index.html)
-
-### Herramientas
-
-- [npm-scripts](https://docs.npmjs.com/misc/scripts)
-- [Babel](https://babeljs.io/)
-- [webpack](https://webpack.js.org/)
-
-### PWA
-
-- [Tu primera Progressive Web App - Google developers](https://developers.google.com/web/fundamentals/codelabs/your-first-pwapp/?hl=es)
-- [Progressive Web Apps - codigofacilito.com](https://codigofacilito.com/articulos/progressive-apps)
-- [offlinefirst.org](http://offlinefirst.org/)
-- [Usando Service Workers - MDN](https://developer.mozilla.org/es/docs/Web/API/Service_Worker_API/Using_Service_Workers)
-- [Cómo habilitar datos sin conexión - Firebase Docs](https://firebase.google.com/docs/firestore/manage-data/enable-offline?hl=es-419)
-
-### Serverless
-
-- [Qué es eso de serverless? - @PamRucinque en Medium](https://medium.com/@PamRucinque/qu%C3%A9-es-eso-de-serverless-f4f6c8949b87)
-- [Qué es Serverless? | FooBar - YouTube](https://www.youtube.com/watch?v=_SYHUpLi-2U)
-- [Firebase](https://firebase.google.com/)
-- [Serverless Architectures - Martin Fowler](https://www.martinfowler.com/articles/serverless.html)
-
-### Cloud functions
-
-- [Cloud functions - Firebase Docs](https://firebase.google.com/docs/functions/?hl=es-419)
+Created by [Keupa de la Peña](https://github.com/keupa) & [Mara Mulato](https://github.com/maranyil)
diff --git a/build/asset-manifest.json b/build/asset-manifest.json
new file mode 100644
index 000000000..2cc041fef
--- /dev/null
+++ b/build/asset-manifest.json
@@ -0,0 +1,38 @@
+{
+ "files": {
+ "main.css": "/static/css/main.36f15960.chunk.css",
+ "main.js": "/static/js/main.b5c3fb02.chunk.js",
+ "main.js.map": "/static/js/main.b5c3fb02.chunk.js.map",
+ "runtime-main.js": "/static/js/runtime-main.19e996be.js",
+ "runtime-main.js.map": "/static/js/runtime-main.19e996be.js.map",
+ "static/css/2.d34346ea.chunk.css": "/static/css/2.d34346ea.chunk.css",
+ "static/js/2.29bfcd43.chunk.js": "/static/js/2.29bfcd43.chunk.js",
+ "static/js/2.29bfcd43.chunk.js.map": "/static/js/2.29bfcd43.chunk.js.map",
+ "index.html": "/index.html",
+ "precache-manifest.5f85d8cbce6d405260944d39fcc955a0.js": "/precache-manifest.5f85d8cbce6d405260944d39fcc955a0.js",
+ "service-worker.js": "/service-worker.js",
+ "static/css/2.d34346ea.chunk.css.map": "/static/css/2.d34346ea.chunk.css.map",
+ "static/css/main.36f15960.chunk.css.map": "/static/css/main.36f15960.chunk.css.map",
+ "static/js/2.29bfcd43.chunk.js.LICENSE.txt": "/static/js/2.29bfcd43.chunk.js.LICENSE.txt",
+ "static/media/LogoBQ.svg": "/static/media/LogoBQ.431d6a8b.svg",
+ "static/media/american-coffee.webp": "/static/media/american-coffee.664bd145.webp",
+ "static/media/coffee-milk.webp": "/static/media/coffee-milk.b27ee13f.webp",
+ "static/media/double-hamb.webp": "/static/media/double-hamb.cf6c9ef2.webp",
+ "static/media/fries.webp": "/static/media/fries.e727c2cf.webp",
+ "static/media/juice.webp": "/static/media/juice.8bba1fa5.webp",
+ "static/media/logout.svg": "/static/media/logout.961342c0.svg",
+ "static/media/onion-rings.webp": "/static/media/onion-rings.86f422f8.webp",
+ "static/media/sandwich.webp": "/static/media/sandwich.dfde5530.webp",
+ "static/media/simple-hamb.webp": "/static/media/simple-hamb.0b0091c7.webp",
+ "static/media/soda.webp": "/static/media/soda.fb0b5006.webp",
+ "static/media/trash.svg": "/static/media/trash.5a226e36.svg",
+ "static/media/wata.webp": "/static/media/wata.374b0228.webp"
+ },
+ "entrypoints": [
+ "static/js/runtime-main.19e996be.js",
+ "static/css/2.d34346ea.chunk.css",
+ "static/js/2.29bfcd43.chunk.js",
+ "static/css/main.36f15960.chunk.css",
+ "static/js/main.b5c3fb02.chunk.js"
+ ]
+}
\ No newline at end of file
diff --git a/build/favicon.ico b/build/favicon.ico
new file mode 100644
index 000000000..41733dc42
Binary files /dev/null and b/build/favicon.ico differ
diff --git a/build/index.html b/build/index.html
new file mode 100644
index 000000000..297f92c11
--- /dev/null
+++ b/build/index.html
@@ -0,0 +1 @@
+
Burger ♛ Queen
\ No newline at end of file
diff --git a/build/manifest.json b/build/manifest.json
new file mode 100644
index 000000000..b043ee91e
--- /dev/null
+++ b/build/manifest.json
@@ -0,0 +1,25 @@
+{
+ "short_name": "React App",
+ "name": "Create React App Sample",
+ "icons": [
+ {
+ "src": "favicon.ico",
+ "sizes": "128x128 64x64 32x32 24x24 16x16",
+ "type": "image/x-icon"
+ },
+ {
+ "src": "logo192.png",
+ "type": "image/png",
+ "sizes": "128x128"
+ },
+ {
+ "src": "logo512.png",
+ "type": "image/png",
+ "sizes": "128x128"
+ }
+ ],
+ "start_url": ".",
+ "display": "standalone",
+ "theme_color": "#000000",
+ "background_color": "#ffffff"
+}
diff --git a/build/precache-manifest.5f85d8cbce6d405260944d39fcc955a0.js b/build/precache-manifest.5f85d8cbce6d405260944d39fcc955a0.js
new file mode 100644
index 000000000..3f6fe0bee
--- /dev/null
+++ b/build/precache-manifest.5f85d8cbce6d405260944d39fcc955a0.js
@@ -0,0 +1,82 @@
+self.__precacheManifest = (self.__precacheManifest || []).concat([
+ {
+ "revision": "15f78e27b2538e3d269fd1adcc07b867",
+ "url": "/index.html"
+ },
+ {
+ "revision": "e8212fef7ea35c608479",
+ "url": "/static/css/2.d34346ea.chunk.css"
+ },
+ {
+ "revision": "f7c3ce5c0aa793d40b50",
+ "url": "/static/css/main.36f15960.chunk.css"
+ },
+ {
+ "revision": "e8212fef7ea35c608479",
+ "url": "/static/js/2.29bfcd43.chunk.js"
+ },
+ {
+ "revision": "544111c69119227bbf075a65771ccdb1",
+ "url": "/static/js/2.29bfcd43.chunk.js.LICENSE.txt"
+ },
+ {
+ "revision": "f7c3ce5c0aa793d40b50",
+ "url": "/static/js/main.b5c3fb02.chunk.js"
+ },
+ {
+ "revision": "91dbc765750696e66f95",
+ "url": "/static/js/runtime-main.19e996be.js"
+ },
+ {
+ "revision": "431d6a8b94b154cad61dffadc35f57bf",
+ "url": "/static/media/LogoBQ.431d6a8b.svg"
+ },
+ {
+ "revision": "664bd14593e629b1e9d4c400f3549623",
+ "url": "/static/media/american-coffee.664bd145.webp"
+ },
+ {
+ "revision": "b27ee13f5e485c8f8930a3ad84b6d949",
+ "url": "/static/media/coffee-milk.b27ee13f.webp"
+ },
+ {
+ "revision": "cf6c9ef27b151ddf44f0af1e067456b5",
+ "url": "/static/media/double-hamb.cf6c9ef2.webp"
+ },
+ {
+ "revision": "e727c2cf0817f4d0ea8f638aa20161ad",
+ "url": "/static/media/fries.e727c2cf.webp"
+ },
+ {
+ "revision": "8bba1fa5d2ffef5c8a0e18c89b7a0aa3",
+ "url": "/static/media/juice.8bba1fa5.webp"
+ },
+ {
+ "revision": "961342c08a3e2f4b501a877a76834596",
+ "url": "/static/media/logout.961342c0.svg"
+ },
+ {
+ "revision": "86f422f84d3c744b089c46c0e54de3f7",
+ "url": "/static/media/onion-rings.86f422f8.webp"
+ },
+ {
+ "revision": "dfde55304b41352107638543b1ed02f6",
+ "url": "/static/media/sandwich.dfde5530.webp"
+ },
+ {
+ "revision": "0b0091c735a00f6b6083720ff52d4c22",
+ "url": "/static/media/simple-hamb.0b0091c7.webp"
+ },
+ {
+ "revision": "fb0b500699329733372ad0f652413a5c",
+ "url": "/static/media/soda.fb0b5006.webp"
+ },
+ {
+ "revision": "5a226e36b139f8e3415d5de7358db0ed",
+ "url": "/static/media/trash.5a226e36.svg"
+ },
+ {
+ "revision": "374b02287cdbaf49b396c4989dd3dde8",
+ "url": "/static/media/wata.374b0228.webp"
+ }
+]);
\ No newline at end of file
diff --git a/build/robots.txt b/build/robots.txt
new file mode 100644
index 000000000..e9e57dc4d
--- /dev/null
+++ b/build/robots.txt
@@ -0,0 +1,3 @@
+# https://www.robotstxt.org/robotstxt.html
+User-agent: *
+Disallow:
diff --git a/build/service-worker.js b/build/service-worker.js
new file mode 100644
index 000000000..9cba471f0
--- /dev/null
+++ b/build/service-worker.js
@@ -0,0 +1,39 @@
+/**
+ * Welcome to your Workbox-powered service worker!
+ *
+ * You'll need to register this file in your web app and you should
+ * disable HTTP caching for this file too.
+ * See https://goo.gl/nhQhGp
+ *
+ * The rest of the code is auto-generated. Please don't update this file
+ * directly; instead, make changes to your Workbox build configuration
+ * and re-run your build process.
+ * See https://goo.gl/2aRDsh
+ */
+
+importScripts("https://storage.googleapis.com/workbox-cdn/releases/4.3.1/workbox-sw.js");
+
+importScripts(
+ "/precache-manifest.5f85d8cbce6d405260944d39fcc955a0.js"
+);
+
+self.addEventListener('message', (event) => {
+ if (event.data && event.data.type === 'SKIP_WAITING') {
+ self.skipWaiting();
+ }
+});
+
+workbox.core.clientsClaim();
+
+/**
+ * The workboxSW.precacheAndRoute() method efficiently caches and responds to
+ * requests for URLs in the manifest.
+ * See https://goo.gl/S9QRab
+ */
+self.__precacheManifest = [].concat(self.__precacheManifest || []);
+workbox.precaching.precacheAndRoute(self.__precacheManifest, {});
+
+workbox.routing.registerNavigationRoute(workbox.precaching.getCacheKeyForURL("/index.html"), {
+
+ blacklist: [/^\/_/,/\/[^/?]+\.[^/]+$/],
+});
diff --git a/build/static/css/2.d34346ea.chunk.css b/build/static/css/2.d34346ea.chunk.css
new file mode 100644
index 000000000..b084945d1
--- /dev/null
+++ b/build/static/css/2.d34346ea.chunk.css
@@ -0,0 +1,2 @@
+.Toastify__toast-container{z-index:9999;-webkit-transform:translateZ(9999px);position:fixed;padding:4px;width:320px;box-sizing:border-box;color:#fff}.Toastify__toast-container--top-left{top:1em;left:1em}.Toastify__toast-container--top-center{top:1em;left:50%;transform:translateX(-50%)}.Toastify__toast-container--top-right{top:1em;right:1em}.Toastify__toast-container--bottom-left{bottom:1em;left:1em}.Toastify__toast-container--bottom-center{bottom:1em;left:50%;transform:translateX(-50%)}.Toastify__toast-container--bottom-right{bottom:1em;right:1em}@media only screen and (max-width:480px){.Toastify__toast-container{width:100vw;padding:0;left:0;margin:0}.Toastify__toast-container--top-center,.Toastify__toast-container--top-left,.Toastify__toast-container--top-right{top:0;transform:translateX(0)}.Toastify__toast-container--bottom-center,.Toastify__toast-container--bottom-left,.Toastify__toast-container--bottom-right{bottom:0;transform:translateX(0)}.Toastify__toast-container--rtl{right:0;left:auto}}.Toastify__toast{position:relative;min-height:64px;box-sizing:border-box;margin-bottom:1rem;padding:8px;border-radius:1px;box-shadow:0 1px 10px 0 rgba(0,0,0,.1),0 2px 15px 0 rgba(0,0,0,.05);display:flex;justify-content:space-between;max-height:800px;overflow:hidden;font-family:sans-serif;cursor:pointer;direction:ltr}.Toastify__toast--rtl{direction:rtl}.Toastify__toast--dark{background:#121212;color:#fff}.Toastify__toast--default{background:#fff;color:#aaa}.Toastify__toast--info{background:#3498db}.Toastify__toast--success{background:#07bc0c}.Toastify__toast--warning{background:#f1c40f}.Toastify__toast--error{background:#e74c3c}.Toastify__toast-body{margin:auto 0;flex:1 1 auto}@media only screen and (max-width:480px){.Toastify__toast{margin-bottom:0}}.Toastify__close-button{color:#fff;background:transparent;outline:none;border:none;padding:0;cursor:pointer;opacity:.7;transition:.3s ease;align-self:flex-start}.Toastify__close-button--default{color:#000;opacity:.3}.Toastify__close-button>svg{fill:currentColor;height:16px;width:14px}.Toastify__close-button:focus,.Toastify__close-button:hover{opacity:1}@-webkit-keyframes Toastify__trackProgress{0%{transform:scaleX(1)}to{transform:scaleX(0)}}@keyframes Toastify__trackProgress{0%{transform:scaleX(1)}to{transform:scaleX(0)}}.Toastify__progress-bar{position:absolute;bottom:0;left:0;width:100%;height:5px;z-index:9999;opacity:.7;background-color:hsla(0,0%,100%,.7);transform-origin:left}.Toastify__progress-bar--animated{-webkit-animation:Toastify__trackProgress linear 1 forwards;animation:Toastify__trackProgress linear 1 forwards}.Toastify__progress-bar--controlled{transition:transform .2s}.Toastify__progress-bar--rtl{right:0;left:auto;transform-origin:right}.Toastify__progress-bar--default{background:linear-gradient(90deg,#4cd964,#5ac8fa,#007aff,#34aadc,#5856d6,#ff2d55)}.Toastify__progress-bar--dark{background:#bb86fc}@-webkit-keyframes Toastify__bounceInRight{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(3000px,0,0)}60%{opacity:1;transform:translate3d(-25px,0,0)}75%{transform:translate3d(10px,0,0)}90%{transform:translate3d(-5px,0,0)}to{transform:none}}@keyframes Toastify__bounceInRight{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(3000px,0,0)}60%{opacity:1;transform:translate3d(-25px,0,0)}75%{transform:translate3d(10px,0,0)}90%{transform:translate3d(-5px,0,0)}to{transform:none}}@-webkit-keyframes Toastify__bounceOutRight{20%{opacity:1;transform:translate3d(-20px,0,0)}to{opacity:0;transform:translate3d(2000px,0,0)}}@keyframes Toastify__bounceOutRight{20%{opacity:1;transform:translate3d(-20px,0,0)}to{opacity:0;transform:translate3d(2000px,0,0)}}@-webkit-keyframes Toastify__bounceInLeft{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(-3000px,0,0)}60%{opacity:1;transform:translate3d(25px,0,0)}75%{transform:translate3d(-10px,0,0)}90%{transform:translate3d(5px,0,0)}to{transform:none}}@keyframes Toastify__bounceInLeft{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(-3000px,0,0)}60%{opacity:1;transform:translate3d(25px,0,0)}75%{transform:translate3d(-10px,0,0)}90%{transform:translate3d(5px,0,0)}to{transform:none}}@-webkit-keyframes Toastify__bounceOutLeft{20%{opacity:1;transform:translate3d(20px,0,0)}to{opacity:0;transform:translate3d(-2000px,0,0)}}@keyframes Toastify__bounceOutLeft{20%{opacity:1;transform:translate3d(20px,0,0)}to{opacity:0;transform:translate3d(-2000px,0,0)}}@-webkit-keyframes Toastify__bounceInUp{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,3000px,0)}60%{opacity:1;transform:translate3d(0,-20px,0)}75%{transform:translate3d(0,10px,0)}90%{transform:translate3d(0,-5px,0)}to{transform:translateZ(0)}}@keyframes Toastify__bounceInUp{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,3000px,0)}60%{opacity:1;transform:translate3d(0,-20px,0)}75%{transform:translate3d(0,10px,0)}90%{transform:translate3d(0,-5px,0)}to{transform:translateZ(0)}}@-webkit-keyframes Toastify__bounceOutUp{20%{transform:translate3d(0,-10px,0)}40%,45%{opacity:1;transform:translate3d(0,20px,0)}to{opacity:0;transform:translate3d(0,-2000px,0)}}@keyframes Toastify__bounceOutUp{20%{transform:translate3d(0,-10px,0)}40%,45%{opacity:1;transform:translate3d(0,20px,0)}to{opacity:0;transform:translate3d(0,-2000px,0)}}@-webkit-keyframes Toastify__bounceInDown{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,-3000px,0)}60%{opacity:1;transform:translate3d(0,25px,0)}75%{transform:translate3d(0,-10px,0)}90%{transform:translate3d(0,5px,0)}to{transform:none}}@keyframes Toastify__bounceInDown{0%,60%,75%,90%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,-3000px,0)}60%{opacity:1;transform:translate3d(0,25px,0)}75%{transform:translate3d(0,-10px,0)}90%{transform:translate3d(0,5px,0)}to{transform:none}}@-webkit-keyframes Toastify__bounceOutDown{20%{transform:translate3d(0,10px,0)}40%,45%{opacity:1;transform:translate3d(0,-20px,0)}to{opacity:0;transform:translate3d(0,2000px,0)}}@keyframes Toastify__bounceOutDown{20%{transform:translate3d(0,10px,0)}40%,45%{opacity:1;transform:translate3d(0,-20px,0)}to{opacity:0;transform:translate3d(0,2000px,0)}}.Toastify__bounce-enter--bottom-left,.Toastify__bounce-enter--top-left{-webkit-animation-name:Toastify__bounceInLeft;animation-name:Toastify__bounceInLeft}.Toastify__bounce-enter--bottom-right,.Toastify__bounce-enter--top-right{-webkit-animation-name:Toastify__bounceInRight;animation-name:Toastify__bounceInRight}.Toastify__bounce-enter--top-center{-webkit-animation-name:Toastify__bounceInDown;animation-name:Toastify__bounceInDown}.Toastify__bounce-enter--bottom-center{-webkit-animation-name:Toastify__bounceInUp;animation-name:Toastify__bounceInUp}.Toastify__bounce-exit--bottom-left,.Toastify__bounce-exit--top-left{-webkit-animation-name:Toastify__bounceOutLeft;animation-name:Toastify__bounceOutLeft}.Toastify__bounce-exit--bottom-right,.Toastify__bounce-exit--top-right{-webkit-animation-name:Toastify__bounceOutRight;animation-name:Toastify__bounceOutRight}.Toastify__bounce-exit--top-center{-webkit-animation-name:Toastify__bounceOutUp;animation-name:Toastify__bounceOutUp}.Toastify__bounce-exit--bottom-center{-webkit-animation-name:Toastify__bounceOutDown;animation-name:Toastify__bounceOutDown}@-webkit-keyframes Toastify__zoomIn{0%{opacity:0;transform:scale3d(.3,.3,.3)}50%{opacity:1}}@keyframes Toastify__zoomIn{0%{opacity:0;transform:scale3d(.3,.3,.3)}50%{opacity:1}}@-webkit-keyframes Toastify__zoomOut{0%{opacity:1}50%{opacity:0;transform:scale3d(.3,.3,.3)}to{opacity:0}}@keyframes Toastify__zoomOut{0%{opacity:1}50%{opacity:0;transform:scale3d(.3,.3,.3)}to{opacity:0}}.Toastify__zoom-enter{-webkit-animation-name:Toastify__zoomIn;animation-name:Toastify__zoomIn}.Toastify__zoom-exit{-webkit-animation-name:Toastify__zoomOut;animation-name:Toastify__zoomOut}@-webkit-keyframes Toastify__flipIn{0%{transform:perspective(400px) rotateX(90deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in;opacity:0}40%{transform:perspective(400px) rotateX(-20deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}60%{transform:perspective(400px) rotateX(10deg);opacity:1}80%{transform:perspective(400px) rotateX(-5deg)}to{transform:perspective(400px)}}@keyframes Toastify__flipIn{0%{transform:perspective(400px) rotateX(90deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in;opacity:0}40%{transform:perspective(400px) rotateX(-20deg);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}60%{transform:perspective(400px) rotateX(10deg);opacity:1}80%{transform:perspective(400px) rotateX(-5deg)}to{transform:perspective(400px)}}@-webkit-keyframes Toastify__flipOut{0%{transform:perspective(400px)}30%{transform:perspective(400px) rotateX(-20deg);opacity:1}to{transform:perspective(400px) rotateX(90deg);opacity:0}}@keyframes Toastify__flipOut{0%{transform:perspective(400px)}30%{transform:perspective(400px) rotateX(-20deg);opacity:1}to{transform:perspective(400px) rotateX(90deg);opacity:0}}.Toastify__flip-enter{-webkit-animation-name:Toastify__flipIn;animation-name:Toastify__flipIn}.Toastify__flip-exit{-webkit-animation-name:Toastify__flipOut;animation-name:Toastify__flipOut}@-webkit-keyframes Toastify__slideInRight{0%{transform:translate3d(110%,0,0);visibility:visible}to{transform:translateZ(0)}}@keyframes Toastify__slideInRight{0%{transform:translate3d(110%,0,0);visibility:visible}to{transform:translateZ(0)}}@-webkit-keyframes Toastify__slideInLeft{0%{transform:translate3d(-110%,0,0);visibility:visible}to{transform:translateZ(0)}}@keyframes Toastify__slideInLeft{0%{transform:translate3d(-110%,0,0);visibility:visible}to{transform:translateZ(0)}}@-webkit-keyframes Toastify__slideInUp{0%{transform:translate3d(0,110%,0);visibility:visible}to{transform:translateZ(0)}}@keyframes Toastify__slideInUp{0%{transform:translate3d(0,110%,0);visibility:visible}to{transform:translateZ(0)}}@-webkit-keyframes Toastify__slideInDown{0%{transform:translate3d(0,-110%,0);visibility:visible}to{transform:translateZ(0)}}@keyframes Toastify__slideInDown{0%{transform:translate3d(0,-110%,0);visibility:visible}to{transform:translateZ(0)}}@-webkit-keyframes Toastify__slideOutRight{0%{transform:translateZ(0)}to{visibility:hidden;transform:translate3d(110%,0,0)}}@keyframes Toastify__slideOutRight{0%{transform:translateZ(0)}to{visibility:hidden;transform:translate3d(110%,0,0)}}@-webkit-keyframes Toastify__slideOutLeft{0%{transform:translateZ(0)}to{visibility:hidden;transform:translate3d(-110%,0,0)}}@keyframes Toastify__slideOutLeft{0%{transform:translateZ(0)}to{visibility:hidden;transform:translate3d(-110%,0,0)}}@-webkit-keyframes Toastify__slideOutDown{0%{transform:translateZ(0)}to{visibility:hidden;transform:translate3d(0,500px,0)}}@keyframes Toastify__slideOutDown{0%{transform:translateZ(0)}to{visibility:hidden;transform:translate3d(0,500px,0)}}@-webkit-keyframes Toastify__slideOutUp{0%{transform:translateZ(0)}to{visibility:hidden;transform:translate3d(0,-500px,0)}}@keyframes Toastify__slideOutUp{0%{transform:translateZ(0)}to{visibility:hidden;transform:translate3d(0,-500px,0)}}.Toastify__slide-enter--bottom-left,.Toastify__slide-enter--top-left{-webkit-animation-name:Toastify__slideInLeft;animation-name:Toastify__slideInLeft}.Toastify__slide-enter--bottom-right,.Toastify__slide-enter--top-right{-webkit-animation-name:Toastify__slideInRight;animation-name:Toastify__slideInRight}.Toastify__slide-enter--top-center{-webkit-animation-name:Toastify__slideInDown;animation-name:Toastify__slideInDown}.Toastify__slide-enter--bottom-center{-webkit-animation-name:Toastify__slideInUp;animation-name:Toastify__slideInUp}.Toastify__slide-exit--bottom-left,.Toastify__slide-exit--top-left{-webkit-animation-name:Toastify__slideOutLeft;animation-name:Toastify__slideOutLeft}.Toastify__slide-exit--bottom-right,.Toastify__slide-exit--top-right{-webkit-animation-name:Toastify__slideOutRight;animation-name:Toastify__slideOutRight}.Toastify__slide-exit--top-center{-webkit-animation-name:Toastify__slideOutUp;animation-name:Toastify__slideOutUp}.Toastify__slide-exit--bottom-center{-webkit-animation-name:Toastify__slideOutDown;animation-name:Toastify__slideOutDown}
+/*# sourceMappingURL=2.d34346ea.chunk.css.map */
\ No newline at end of file
diff --git a/build/static/css/2.d34346ea.chunk.css.map b/build/static/css/2.d34346ea.chunk.css.map
new file mode 100644
index 000000000..96bf35282
--- /dev/null
+++ b/build/static/css/2.d34346ea.chunk.css.map
@@ -0,0 +1 @@
+{"version":3,"sources":["../scss/_toastContainer.scss","../scss/_variables.scss","ReactToastify.css","../scss/_toast.scss","../scss/_closeButton.scss","../scss/_progressBar.scss","../scss/animations/_bounce.scss","../scss/animations/_zoom.scss","../scss/animations/_flip.scss","../scss/animations/_slide.scss"],"names":[],"mappings":"AAAA,2BACI,YCmBS,CDlBT,oCAAA,CACA,cAAA,CACA,WAAA,CACA,WCJa,CDKb,qBAAA,CACA,UECJ,CFAI,qCACI,OAAA,CACA,QEER,CFAI,uCACI,OAAA,CACA,QAAA,CACA,0BEER,CFAI,sCACI,OAAA,CACA,SEER,CFAI,wCACI,UAAA,CACA,QEER,CFAI,0CACI,UAAA,CACA,QAAA,CACA,0BEER,CFAI,yCACI,UAAA,CACA,SEER,CFEA,yCACI,2BACI,WAAA,CACA,SAAA,CACA,MAAA,CACA,QECN,CFAM,kHAGI,KAAA,CACA,uBEAV,CFEM,2HAGI,QAAA,CACA,uBEFV,CFIM,gCACE,OAAA,CACA,SEFR,CACF,CCvDA,iBACI,iBAAA,CACA,eFCkB,CEAlB,qBAAA,CACA,kBAAA,CACA,WAAA,CACA,iBAAA,CACA,mEAAA,CACA,YAAA,CACA,6BAAA,CACA,gBFNkB,CEOlB,eAAA,CACA,sBFOa,CENb,cAAA,CACA,aDyDJ,CCxDI,sBACI,aD0DR,CCxDI,uBACI,kBFZQ,CEaR,UD0DR,CCxDI,0BACI,eFjBW,CEkBX,UD0DR,CCxDI,uBACI,kBD0DR,CCxDI,0BACI,kBD0DR,CCxDI,0BACI,kBD0DR,CCxDI,wBACI,kBD0DR,CCxDI,sBACI,aAAA,CACA,aD0DR,CCtDA,yCACE,iBACE,eDyDF,CACF,CExGA,wBACE,UAAA,CACA,sBAAA,CACA,YAAA,CACA,WAAA,CACA,SAAA,CACA,cAAA,CACA,UAAA,CACA,mBAAA,CACA,qBF0GF,CExGE,iCACE,UAAA,CACA,UF0GJ,CEvGE,4BACE,iBAAA,CACA,WAAA,CACA,UFyGJ,CEtGE,4DACE,SFwGJ,CG/HA,2CACE,GACE,mBHkIF,CGhIA,GACE,mBHkIF,CACF,CGxIA,mCACE,GACE,mBHkIF,CGhIA,GACE,mBHkIF,CACF,CG/HA,wBACE,iBAAA,CACA,QAAA,CACA,MAAA,CACA,UAAA,CACA,UAAA,CACA,YJKW,CIJX,UAAA,CACA,mCAAA,CACA,qBHiIF,CG/HE,kCACE,2DAAA,CAAA,mDHiIJ,CG9HE,oCACE,wBHgIJ,CG7HE,6BACE,OAAA,CACA,SAAA,CACA,sBH+HJ,CG5HE,iCACE,iFH8HJ,CG3HE,8BACE,kBH6HJ,CIhKA,2CACI,kBAJA,+DAAA,CAAA,uDJuKF,CI5JE,GACI,SAAA,CACA,iCJ8JN,CI5JE,IACI,SAAA,CACA,gCJ8JN,CI5JE,IACI,+BJ8JN,CI5JE,IACI,+BJ8JN,CI5JE,GACI,cJ8JN,CACF,CItLA,mCACI,kBAJA,+DAAA,CAAA,uDJuKF,CI5JE,GACI,SAAA,CACA,iCJ8JN,CI5JE,IACI,SAAA,CACA,gCJ8JN,CI5JE,IACI,+BJ8JN,CI5JE,IACI,+BJ8JN,CI5JE,GACI,cJ8JN,CACF,CI3JA,4CACI,IACI,SAAA,CACA,gCJ6JN,CI3JE,GACI,SAAA,CACA,iCJ6JN,CACF,CIrKA,oCACI,IACI,SAAA,CACA,gCJ6JN,CI3JE,GACI,SAAA,CACA,iCJ6JN,CACF,CI1JA,0CACI,kBA1CA,+DAAA,CAAA,uDJuMF,CItJE,GACI,SAAA,CACA,kCJwJN,CItJE,IACI,SAAA,CACA,+BJwJN,CItJE,IACI,gCJwJN,CItJE,IACI,8BJwJN,CItJE,GACI,cJwJN,CACF,CIhLA,kCACI,kBA1CA,+DAAA,CAAA,uDJuMF,CItJE,GACI,SAAA,CACA,kCJwJN,CItJE,IACI,SAAA,CACA,+BJwJN,CItJE,IACI,gCJwJN,CItJE,IACI,8BJwJN,CItJE,GACI,cJwJN,CACF,CIrJA,2CACI,IACI,SAAA,CACA,+BJuJN,CIrJE,GACI,SAAA,CACA,kCJuJN,CACF,CI/JA,mCACI,IACI,SAAA,CACA,+BJuJN,CIrJE,GACI,SAAA,CACA,kCJuJN,CACF,CIpJA,wCACI,kBAhFA,+DAAA,CAAA,uDJuOF,CIhJE,GACI,SAAA,CACA,iCJkJN,CIhJE,IACI,SAAA,CACA,gCJkJN,CIhJE,IACI,+BJkJN,CIhJE,IACI,+BJkJN,CIhJE,GACI,uBJkJN,CACF,CI1KA,gCACI,kBAhFA,+DAAA,CAAA,uDJuOF,CIhJE,GACI,SAAA,CACA,iCJkJN,CIhJE,IACI,SAAA,CACA,gCJkJN,CIhJE,IACI,+BJkJN,CIhJE,IACI,+BJkJN,CIhJE,GACI,uBJkJN,CACF,CI/IA,yCACI,IACI,gCJiJN,CI/IE,QAEI,SAAA,CACA,+BJgJN,CI9IE,GACI,SAAA,CACA,kCJgJN,CACF,CI5JA,iCACI,IACI,gCJiJN,CI/IE,QAEI,SAAA,CACA,+BJgJN,CI9IE,GACI,SAAA,CACA,kCJgJN,CACF,CI7IA,0CACI,kBA1HA,+DAAA,CAAA,uDJ0QF,CIzIE,GACI,SAAA,CACA,kCJ2IN,CIzIE,IACI,SAAA,CACA,+BJ2IN,CIzIE,IACI,gCJ2IN,CIzIE,IACI,8BJ2IN,CIzIE,GACI,cJ2IN,CACF,CInKA,kCACI,kBA1HA,+DAAA,CAAA,uDJ0QF,CIzIE,GACI,SAAA,CACA,kCJ2IN,CIzIE,IACI,SAAA,CACA,+BJ2IN,CIzIE,IACI,gCJ2IN,CIzIE,IACI,8BJ2IN,CIzIE,GACI,cJ2IN,CACF,CIxIA,2CACI,IACI,+BJ0IN,CIxIE,QAEI,SAAA,CACA,gCJyIN,CIvIE,GACI,SAAA,CACA,iCJyIN,CACF,CIrJA,mCACI,IACI,+BJ0IN,CIxIE,QAEI,SAAA,CACA,gCJyIN,CIvIE,GACI,SAAA,CACA,iCJyIN,CACF,CIrII,uEAEI,6CAAA,CAAA,qCJsIR,CIpII,yEAEI,8CAAA,CAAA,sCJqIR,CInII,oCACI,6CAAA,CAAA,qCJqIR,CInII,uCACI,2CAAA,CAAA,mCJqIR,CIhII,qEAEI,8CAAA,CAAA,sCJkIR,CIhII,uEAEI,+CAAA,CAAA,uCJiIR,CI/HI,mCACI,4CAAA,CAAA,oCJiIR,CI/HI,sCACI,8CAAA,CAAA,sCJiIR,CKnUA,oCACI,GACI,SAAA,CACA,2BLsUN,CKpUE,IACI,SLsUN,CACF,CK7UA,4BACI,GACI,SAAA,CACA,2BLsUN,CKpUE,IACI,SLsUN,CACF,CKnUA,qCACI,GACI,SLqUN,CKnUE,IACI,SAAA,CACA,2BLqUN,CKnUE,GACI,SLqUN,CACF,CK/UA,6BACI,GACI,SLqUN,CKnUE,IACI,SAAA,CACA,2BLqUN,CKnUE,GACI,SLqUN,CACF,CKlUA,sBACI,uCAAA,CAAA,+BLoUJ,CKjUA,qBACI,wCAAA,CAAA,gCLoUJ,CMhWA,oCACI,GACI,2CAAA,CACA,yCAAA,CAAA,iCAAA,CACA,SNmWN,CMjWE,IACI,4CAAA,CACA,yCAAA,CAAA,iCNmWN,CMjWE,IACI,2CAAA,CACA,SNmWN,CMjWE,IACI,2CNmWN,CMjWE,GACI,4BNmWN,CACF,CMtXA,4BACI,GACI,2CAAA,CACA,yCAAA,CAAA,iCAAA,CACA,SNmWN,CMjWE,IACI,4CAAA,CACA,yCAAA,CAAA,iCNmWN,CMjWE,IACI,2CAAA,CACA,SNmWN,CMjWE,IACI,2CNmWN,CMjWE,GACI,4BNmWN,CACF,CMhWA,qCACI,GACI,4BNkWN,CMhWE,IACI,4CAAA,CACA,SNkWN,CMhWE,GACI,2CAAA,CACA,SNkWN,CACF,CM7WA,6BACI,GACI,4BNkWN,CMhWE,IACI,4CAAA,CACA,SNkWN,CMhWE,GACI,2CAAA,CACA,SNkWN,CACF,CM/VA,sBACI,uCAAA,CAAA,+BNiWJ,CM9VA,qBACI,wCAAA,CAAA,gCNiWJ,COtYA,0CACI,GACI,+BAAA,CACA,kBPyYN,COvYE,GARA,uBPkZF,CACF,COhZA,kCACI,GACI,+BAAA,CACA,kBPyYN,COvYE,GARA,uBPkZF,CACF,COtYA,yCACI,GACI,gCAAA,CACA,kBPwYN,COtYE,GAlBA,uBP2ZF,CACF,CO/YA,iCACI,GACI,gCAAA,CACA,kBPwYN,COtYE,GAlBA,uBP2ZF,CACF,COrYA,uCACI,GACI,+BAAA,CACA,kBPuYN,COrYE,GA5BA,uBPoaF,CACF,CO9YA,+BACI,GACI,+BAAA,CACA,kBPuYN,COrYE,GA5BA,uBPoaF,CACF,COpYA,yCACI,GACI,gCAAA,CACA,kBPsYN,COpYE,GAtCA,uBP6aF,CACF,CO7YA,iCACI,GACI,gCAAA,CACA,kBPsYN,COpYE,GAtCA,uBP6aF,CACF,COnYA,2CACI,GA5CA,uBPkbF,COnYE,GACI,iBAAA,CACA,+BPqYN,CACF,CO5YA,mCACI,GA5CA,uBPkbF,COnYE,GACI,iBAAA,CACA,+BPqYN,CACF,COlYA,0CACI,GAtDA,uBP2bF,COlYE,GACI,iBAAA,CACA,gCPoYN,CACF,CO3YA,kCACI,GAtDA,uBP2bF,COlYE,GACI,iBAAA,CACA,gCPoYN,CACF,COjYA,0CACI,GAhEA,uBPocF,COjYE,GACI,iBAAA,CACA,gCPmYN,CACF,CO1YA,kCACI,GAhEA,uBPocF,COjYE,GACI,iBAAA,CACA,gCPmYN,CACF,COhYA,wCACI,GA1EA,uBP6cF,COhYE,GACI,iBAAA,CACA,iCPkYN,CACF,COzYA,gCACI,GA1EA,uBP6cF,COhYE,GACI,iBAAA,CACA,iCPkYN,CACF,CO9XI,qEAEI,4CAAA,CAAA,oCP+XR,CO7XI,uEAEI,6CAAA,CAAA,qCP8XR,CO5XI,mCACI,4CAAA,CAAA,oCP8XR,CO5XI,sCACI,0CAAA,CAAA,kCP8XR,COzXI,mEAEI,6CAAA,CAAA,qCP2XR,COzXI,qEAEI,8CAAA,CAAA,sCP0XR,COxXI,kCACI,2CAAA,CAAA,mCP0XR,COxXI,qCACI,6CAAA,CAAA,qCP0XR","file":"2.d34346ea.chunk.css"}
\ No newline at end of file
diff --git a/build/static/css/main.36f15960.chunk.css b/build/static/css/main.36f15960.chunk.css
new file mode 100644
index 000000000..d8072f03c
--- /dev/null
+++ b/build/static/css/main.36f15960.chunk.css
@@ -0,0 +1,2 @@
+body{margin:0;padding:0;min-height:100vh;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background-color:#f2f2f2}code{font-family:source-code-pro,Menlo,Monaco,Consolas,"Courier New",monospace}*,body,html{box-sizing:border-box;font-family:"Montserrat",sans-serif;color:#170000!important}#root,body{width:100%;height:100%}#root{max-width:100%}.input-form{background:#b8aae0;width:100vw;height:100vh;overflow:hidden;position:relative;align-items:center}.form-container,.input-form{display:flex;flex-direction:column;justify-content:center}.bq-logo{width:15%;height:auto}.inputf{display:table-cell;vertical-align:middle;padding:0 10px;margin-bottom:25px;border-radius:12px;border-style:none;height:35px;width:300px;font-size:18px}button.btn{font-family:"Montserrat",sans-serif;font-size:18px;font-weight:700;width:150px;height:50px;border:0;border-radius:15px;background-color:#c6b3fd;box-shadow:-3px 6px #ae9cdf;margin-left:auto;margin-right:auto}.beverage{background:#87d5c2}.beverage,.meal{display:flex;flex-direction:column;margin:10px;width:170px;height:170px;align-items:center;border-radius:25px;font-family:"Montserrat",sans-serif;overflow:hidden}.meal{background:#ffcf87}img{width:60%;height:60%;margin:5px 0 0}h2{margin:0;font-weight:700}h2,p{font-size:17px}p{margin:5px 0 10px}.toggle-container{display:flex;align-items:center;width:400px;padding-bottom:20px;height:auto;justify-content:space-between}button.toggle{font-size:25px;width:192px;height:58px;border:0;border-radius:16px}.order-list-container{display:grid;grid-template-columns:3fr 1.5fr 1.2fr 1fr 1fr;align-items:center}h3,h4{font-size:18px;font-weight:400}input[type=number]{font-size:18px;width:40px;height:30px;border:none;border-radius:2px;padding-left:15px}.trash{width:70%;height:auto;padding:0 0 10px 20px}button.yellowbtn{font-family:"Montserrat",sans-serif;font-size:18px;font-weight:700;width:150px;height:50px;border:0;border-radius:15px;background-color:#c6b3fd;box-shadow:-3px 6px #ae9cdf;justify-content:center}button.green{background-color:#afd14e;box-shadow:-3px 6px #94c217}button.green,button.orange{font-family:"Montserrat",sans-serif;font-size:18px;margin:12px 0 6px;font-weight:700;width:150px;height:50px;border:0;border-radius:15px}button.orange{background-color:#f88a57;box-shadow:-3px 6px #fc7d42}button.red{font-family:"Montserrat",sans-serif;font-size:18px;margin:12px 0 6px;font-weight:700;width:150px;height:50px;border:0;border-radius:15px;background-color:#dc6363;box-shadow:-3px 6px #db4949}*{color:#170000}.toggle-btn{display:flex;justify-content:center;align-content:center;grid-area:toggle}.items-container{display:flex;flex-wrap:wrap;grid-area:menu;position:relative;border-radius:20px;width:400px;background-color:#fffcfc;padding:10px 0 10px 9px}.menu-parent{width:100vw;height:100%;padding:30px 60px 30px 130px}.container{margin-bottom:20px}.menu-container{display:flex;flex-direction:column;float:left}.order-container{float:left;margin:0}.order-note{width:560px;height:auto;border-radius:20px;background-color:#ded2ff;grid-area:order;padding:30px 20px 20px 35px;margin-left:60px}.total{font-size:18px;font-weight:700;text-align:right;padding:35px}h1{font-size:28px;font-family:"Montserrat",sans-serif;text-align:center;margin-right:10px}.center,.table{display:flex;justify-content:center}.table{flex-direction:row;align-items:center}input[type=number].table-number{font-weight:bolder;width:45px!important;height:30px!important;font-size:25px;padding-left:14px}.titles-container{display:grid;grid-template-columns:3fr 1.2fr 1.2fr 1fr 1fr;align-items:center}h4.bold{font-weight:700;justify-content:center}.rounder-edges{border-radius:4px;text-align:center}.center-align{text-align:center;font-size:18px;margin-top:40px}hr.solid{border:none;background-color:#170000;color:#170000;height:2px;margin:-5px 45px 5px 25px}.plusminus{border:none;background:transparent;font-size:25px;margin:5px}.menuToggle{display:inline-block;position:relative;top:-58px;left:35px;z-index:1;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.menuToggle a{text-decoration:none;color:#232323;transition:color .3s ease}.menuToggle a:hover{color:#fff}.menu li:hover{color:#fff;transition-duration:.5s}.menuToggle input{display:block;width:50px;height:42px;position:absolute;top:-7px;left:-5px;cursor:pointer;opacity:0;z-index:2;-webkit-touch-callout:none}.menuToggle span{display:block;width:33px;height:4px;margin-bottom:5px;position:relative;background:#232323;border-radius:3px;z-index:1;transform-origin:4px 0;transition:transform .5s cubic-bezier(.77,.2,.05,1),background .5s cubic-bezier(.77,.2,.05,1),opacity .55s ease}.menuToggle span:first-child{transform-origin:0 0}.menuToggle span:nth-last-child(2){transform-origin:0 100%}.menuToggle input:checked~span{opacity:1;transform:rotate(45deg) translate(-2px,-1px);background:#232323}.menuToggle input:checked~span:nth-last-child(3){opacity:0;transform:rotate(0deg) scale(.2)}.menuToggle input:checked~span:nth-last-child(2){transform:rotate(-45deg) translateY(-1px)}.menu{position:absolute;width:300px;height:200vh;margin:-100px 0 0 -50px;padding:125px 30px 30px;text-align:center;background:#b8aae0;list-style-type:none;-webkit-font-smoothing:antialiased;transform-origin:0 0;transform:translate(-100%);transition:transform .5s cubic-bezier(.77,.2,.05,1)}.menu h1{font-size:35px}.menu li{padding:20px 0;font-size:30px}li:hover{color:#ffffdb!important}.menuToggle input:checked~ul{transform:none}.topbar{display:flex;justify-content:center;height:100px;width:100%;background-color:#b8aae0;margin-top:-21px;text-align:center;vertical-align:middle;line-height:100px}.topbar h1{font-size:35px;font-weight:400;margin-top:7px;padding-top:5px}.white{font-weight:700;color:#ffffdb!important}.logout{width:2.3%;height:auto}.my-masonry-grid{display:flex;margin-left:-10px;padding:30px 30px 30px 80px;width:auto}.my-masonry-grid_column{padding-left:60px;margin-bottom:20px;background-clip:padding-box}.green-note{background-color:#ddfc84}.green-note,.orange-note{width:300px;border-radius:9px;text-align:center;justify-content:center;align-items:center;padding:20px 0;margin-bottom:30px}.orange-note{background-color:#fca884}.red-note{width:300px;border-radius:9px;text-align:center;align-items:center;padding:20px 0;margin-bottom:30px;background-color:#d47878}.red-note,h2.table{justify-content:center}h2.table{font-size:28px;font-weight:700}.products-on-note{display:grid;grid-template-columns:80% 20%;padding:0 30px 0 10px}li.product-name{font-size:20px;text-align:left}p.product-quantity{font-size:20px;text-align:right;font-weight:700;padding-top:12px}ul.note-ul{list-style:none}ul.note-ul li:before{content:"\22C6";display:inline-block;width:1em;margin-left:-1em}.no-orders-message-container{display:flex;justify-content:center;padding-top:250px}.no-orders-message{font-size:25px}
+/*# sourceMappingURL=main.36f15960.chunk.css.map */
\ No newline at end of file
diff --git a/build/static/css/main.36f15960.chunk.css.map b/build/static/css/main.36f15960.chunk.css.map
new file mode 100644
index 000000000..81a3c22a8
--- /dev/null
+++ b/build/static/css/main.36f15960.chunk.css.map
@@ -0,0 +1 @@
+{"version":3,"sources":["index.css","Forms.css","MenuElement.css","ToggleMenu.css","OrderItem.css","Button.css","BMenu.css","Navbar.css","Note.css"],"names":[],"mappings":"AAAA,KACC,QAAW,CACR,SAAW,CACX,gBAAiB,CACpB,kCAAmC,CACnC,iCAAkC,CAClC,wBACC,CAEA,KACD,yEAEC,CAEA,YACD,qBAAsB,CACtB,mCAAqC,CACrC,uBACC,CAOA,WAJC,UAAW,CACX,WAOD,CAJA,MAGD,cACC,CC7BF,YAII,kBAAmB,CACnB,WAAY,CACZ,YAAa,CAChB,eAAe,CACZ,iBAAiB,CACjB,kBACJ,CAEA,4BAXI,YAAa,CACb,qBAAsB,CACtB,sBAaJ,CAEA,SACI,SAAU,CACV,WACJ,CAEA,QACI,kBAAmB,CACnB,qBAAsB,CACtB,cAA0B,CAC1B,kBAAmB,CACnB,kBAAmB,CACnB,iBAAkB,CAClB,WAAY,CACZ,WAAY,CACZ,cACJ,CAEA,WACI,mCAAqC,CACrC,cAAe,CACf,eAAiB,CACjB,WAAY,CACZ,WAAY,CACZ,QAAS,CACT,kBAAmB,CACnB,wBAAyB,CACzB,2BAAuC,CACvC,gBAAiB,CACjB,iBACJ,CC/CA,UAaI,kBAKJ,CAEA,gBAlBI,YAAY,CACZ,qBAAsB,CAEtB,WAAY,CACZ,WAAY,CACZ,YAAa,CAEb,kBAAmB,CAEnB,kBAAmB,CAInB,mCAAqC,CAErC,eAqBJ,CAlBA,MAaI,kBAKJ,CAEA,IACI,SAAU,CACV,UAAW,CAEX,cACJ,CAEA,GACI,QAAuB,CAGvB,eACJ,CAEA,KAJI,cAQJ,CAJA,EACI,iBAGJ,CC1DA,kBAEI,YAAa,CACb,kBAAmB,CACnB,WAAY,CACZ,mBAAoB,CACpB,WAAY,CACZ,6BAEJ,CAEA,cACI,cAAe,CACf,WAAY,CACZ,WAAY,CACZ,QAAS,CACT,kBACJ,CCjBA,sBACI,YAAa,CACb,6CAA8C,CAC9C,kBACJ,CAOA,MACI,cAAe,CACf,eACJ,CAEA,mBAEI,cAAe,CACf,UAAW,CACX,WAAY,CACZ,WAAY,CACZ,iBAAkB,CAClB,iBACJ,CAEA,OACI,SAAU,CACV,WAAY,CACZ,qBACJ,CC9BA,iBAEI,mCAAqC,CACrC,cAAe,CACf,eAAiB,CACjB,WAAY,CACZ,WAAY,CACZ,QAAS,CACT,kBAAmB,CACnB,wBAAyB,CACzB,2BAAuC,CACvC,sBACJ,CAEA,aAUI,wBAAyB,CACzB,2BACJ,CAEA,2BAZI,mCAAqC,CACrC,cAAe,CACf,iBAAwB,CACxB,eAAiB,CACjB,WAAY,CACZ,WAAY,CACZ,QAAS,CACT,kBAiBJ,CAZA,cAUI,wBAAmC,CACnC,2BACJ,CAEA,WAEI,mCAAqC,CACrC,cAAe,CACf,iBAAwB,CACxB,eAAiB,CACjB,WAAY,CACZ,WAAY,CACZ,QAAS,CACT,kBAAmB,CACnB,wBAAyB,CACzB,2BACJ,CLtDA,EACI,aACJ,CAEA,YACI,YAAa,CACb,sBAAuB,CACvB,oBAAqB,CACrB,gBACJ,CAEA,iBACI,YAAa,CACb,cAAe,CACf,cAAe,CACf,iBAAkB,CAClB,kBAAmB,CACnB,WAAY,CACZ,wBAAyB,CACzB,uBAEJ,CAEA,aACI,WAAY,CACZ,WAAY,CACZ,4BACJ,CAEA,WACI,kBACJ,CAEA,gBACI,YAAY,CACZ,qBAAsB,CACtB,UACJ,CAEA,iBACI,UAAU,CACV,QACJ,CAEA,YACI,WAAY,CACZ,WAAY,CACZ,kBAAmB,CACnB,wBAAyB,CACzB,eAAgB,CAChB,2BAA4B,CAC5B,gBACJ,CAEA,OACI,cAAe,CACf,eAAiB,CACjB,gBAAiB,CACjB,YACJ,CAEA,GACI,cAAe,CACf,mCAAqC,CACrC,iBAAkB,CAClB,iBACJ,CAOA,eAJI,YAAa,CACb,sBAQJ,CALA,OAEI,kBAAmB,CACnB,kBAEJ,CAEA,gCACI,kBAAmB,CACnB,oBAAsB,CACtB,qBAAuB,CACvB,cAAe,CACf,iBACJ,CAEA,kBACI,YAAa,CACb,6CAA8C,CAC9C,kBACJ,CAEA,QACI,eAAiB,CACjB,sBACJ,CAEA,eACI,iBAAkB,CAClB,iBACJ,CAEA,cACI,iBAAkB,CAClB,cAAe,CACf,eACJ,CAEA,SACI,WAAY,CACZ,wBAAyB,CACzB,aAAc,CACd,UAAW,CACX,yBACJ,CAEA,WACI,WAAY,CACZ,sBAAuB,CACvB,cAAe,CACf,UACJ,CM3HA,YACE,oBAAqB,CACrB,iBAAkB,CAClB,SAAU,CACV,SAAU,CAEV,SAAU,CAEV,wBAAyB,CACzB,qBAAiB,CAAjB,oBAAiB,CAAjB,gBACF,CAEA,cACE,oBAAqB,CACrB,aAAc,CAEd,yBACF,CAEA,oBACE,UACF,CAEA,eACE,UAAc,CACd,uBACF,CAGA,kBACE,aAAc,CACd,UAAW,CACX,WAAY,CACZ,iBAAkB,CAClB,QAAS,CACT,SAAU,CAEV,cAAe,CAEf,SAAU,CACV,SAAU,CAEV,0BACF,CAGA,iBACE,aAAc,CACd,UAAW,CACX,UAAW,CACX,iBAAkB,CAClB,iBAAkB,CAElB,kBAAmB,CACnB,iBAAkB,CAElB,SAAU,CAEV,sBAAyB,CAEzB,+GAGF,CAEA,6BAEE,oBACF,CAEA,mCAEE,uBACF,CAIA,+BAEE,SAAU,CACV,4CAA8C,CAC9C,kBACF,CAKA,iDAEE,SAAU,CACV,gCACF,CAGA,iDAEE,yCACF,CAGA,MACE,iBAAkB,CAClB,WAAY,CACZ,YAAa,CACb,uBAAwB,CAExB,uBAAkB,CAClB,iBAAkB,CAElB,kBAAmB,CACnB,oBAAqB,CACrB,kCAAmC,CAGnC,oBAAuB,CACvB,0BAA8B,CAE9B,mDACF,CAEA,SACE,cACF,CAEA,SACE,cAAe,CACf,cACF,CAEA,SACE,uBACF,CAGA,6BAEE,cACF,CCzIA,QACI,YAAa,CACb,sBAAuB,CACvB,YAAa,CACb,UAAW,CACX,wBAAyB,CACzB,gBAAiB,CACjB,iBAAkB,CAClB,qBAAsB,CACtB,iBACJ,CAEA,WACI,cAAe,CACf,eAAmB,CACnB,cAAe,CACf,eACJ,CAEA,OACI,eAAiB,CACjB,uBACJ,CAEA,QACI,UAAW,CACX,WACJ,CC3BA,iBAGI,YAAa,CACb,iBAAkB,CAClB,2BAA6B,CAC7B,UACF,CAEA,wBACE,iBAAkB,CAClB,kBAAmB,CACnB,2BACF,CAEA,YAQE,wBACJ,CAEA,yBAVI,WAAY,CACZ,iBAAkB,CAClB,iBAAkB,CAClB,sBAAuB,CACvB,kBAAmB,CACnB,cAA0B,CAC1B,kBAaJ,CATA,aAQI,wBACJ,CAEA,UACI,WAAY,CACZ,iBAAkB,CAClB,iBAAkB,CAElB,kBAAmB,CACnB,cAA0B,CAC1B,kBAAmB,CACnB,wBACJ,CAGA,mBARI,sBAYJ,CAJA,SACI,cAAe,CACf,eAEJ,CAEA,kBACI,YAAa,CACb,6BAA8B,CAC9B,qBACJ,CAEA,gBACI,cAAe,CACf,eAEJ,CAEA,mBACI,cAAe,CACf,gBAAiB,CACjB,eAAiB,CACjB,gBAEJ,CAEA,WACI,eACJ,CAEA,qBACI,eAAgB,CAChB,oBAAqB,CACrB,SAAU,CACV,gBACF,CAEF,6BACI,YAAa,CACb,sBAAuB,CACvB,iBACJ,CACA,mBACI,cAEJ","file":"main.36f15960.chunk.css","sourcesContent":["*{\n color: #170000; \n}\n\n.toggle-btn{\n display: flex; \n justify-content: center;\n align-content: center;\n grid-area: toggle; \n}\n\n.items-container{\n display: flex;\n flex-wrap: wrap;\n grid-area: menu; \n position: relative; \n border-radius: 20px;\n width: 400px; \n background-color: #FFFCFC;\n padding: 10px 0px 10px 9px; \n\n}\n\n.menu-parent{\n width: 100vw;\n height: 100%; \n padding: 30px 60px 30px 130px; \n}\n\n.container{\n margin-bottom: 20px; \n}\n\n.menu-container{\n display:flex; \n flex-direction: column;\n float:left;\n}\n\n.order-container{\n float:left; \n margin: 0px 0px 0px 0px; \n}\n\n.order-note{ \n width: 560px;\n height: auto; \n border-radius: 20px; \n background-color: #DED2FF; \n grid-area: order; \n padding: 30px 20px 20px 35px; \n margin-left: 60px; \n}\n\n.total{\n font-size: 18px; \n font-weight: bold; \n text-align: right; \n padding: 35px; \n}\n\nh1{\n font-size: 28px; \n font-family: 'Montserrat', sans-serif; \n text-align: center; \n margin-right: 10px; \n}\n\n.center{\n display: flex; \n justify-content: center;\n}\n\n.table{\n display:flex; \n flex-direction: row;\n align-items: center;\n justify-content: center;\n}\n\ninput[type=number].table-number{\n font-weight: bolder;\n width: 45px !important; \n height: 30px !important; \n font-size: 25px; \n padding-left: 14px; \n}\n\n.titles-container{\n display: grid; \n grid-template-columns: 3fr 1.2fr 1.2fr 1fr 1fr; \n align-items: center; \n}\n\nh4.bold{\n font-weight: bold; \n justify-content: center;\n}\n\n.rounder-edges{\n border-radius: 4px; \n text-align: center; \n}\n\n.center-align{\n text-align: center;\n font-size: 18px; \n margin-top: 40px; \n}\n\nhr.solid{ \n border: none;\n background-color: #170000;\n color: #170000;\n height: 2px;\n margin: -5px 45px 5px 25px; \n}\n\n.plusminus{\n border: none; \n background: transparent; \n font-size: 25px; \n margin: 5px; \n}",".input-form{\n display: flex; \n flex-direction: column;\n justify-content: center;\n background: #B8AAE0;\n width: 100vw;\n height: 100vh; \n\toverflow:hidden;\n position:relative; \n align-items:center; \n}\n\n.form-container{\n display: flex; \n flex-direction: column; \n justify-content: center;\n}\n\n.bq-logo{\n width: 15%;\n height: auto; \n}\n\n.inputf {\n display: table-cell;\n vertical-align: middle;\n padding: 0px 10px 0px 10px;\n margin-bottom: 25px; \n border-radius: 12px;\n border-style: none;\n height: 35px;\n width: 300px;\n font-size: 18px; \n}\n\nbutton.btn {\n font-family: 'Montserrat', sans-serif;\n font-size: 18px;;\n font-weight: bold; \n width: 150px; \n height: 50px; \n border: 0; \n border-radius: 15px;\n background-color: #C6B3FD;\n box-shadow: -3px 6px rgb(174, 156, 223);\n margin-left: auto;\n margin-right: auto;\n}",".beverage{\n \n display:flex; \n flex-direction: column;\n\n margin: 10px; \n width: 170px; \n height: 170px; \n\n align-items: center;\n \n border-radius: 25px; \n\n background: #87D5C2;\n\n font-family: 'Montserrat', sans-serif; \n\n overflow: hidden;\n}\n\n.meal{\n \n display:flex; \n flex-direction: column;\n\n margin: 10px; \n width: 170px; \n height: 170px; \n\n align-items: center;\n \n border-radius: 25px; \n\n background: #FFCF87;\n\n font-family: 'Montserrat', sans-serif; \n\n overflow: hidden;\n}\n\nimg{\n width: 60%; \n height: 60%; \n\n margin: 5px 0px 0px 0px; \n}\n\nh2{\n margin: 0px 0px 0px 0px; \n\n font-size: 17px; \n font-weight: bold;\n}\n\np{\n margin: 5px 0px 10px 0px; \n\n font-size: 17px; \n}",".toggle-container{\n\n display: flex; \n align-items: center; \n width: 400px;\n padding-bottom: 20px; \n height: auto; \n justify-content: space-between;\n \n}\n\nbutton.toggle{\n font-size: 25px;\n width: 192px; \n height: 58px; \n border: 0; \n border-radius: 16px;\n}\n",".order-list-container{\n display: grid; \n grid-template-columns: 3fr 1.5fr 1.2fr 1fr 1fr; \n align-items: center;\n}\n\nh3{\n font-size: 18px; \n font-weight: normal;\n}\n\nh4{\n font-size: 18px; \n font-weight: normal;\n}\n\ninput[type=number]{\n\n font-size: 18px; \n width: 40px; \n height: 30px; \n border: none; \n border-radius: 2px;\n padding-left: 15px; \n}\n\n.trash{\n width: 70%;\n height: auto; \n padding: 0px 0px 10px 20px; \n}\n","button.yellowbtn{\n\n font-family: 'Montserrat', sans-serif;\n font-size: 18px;;\n font-weight: bold; \n width: 150px; \n height: 50px; \n border: 0; \n border-radius: 15px;\n background-color: #C6B3FD;\n box-shadow: -3px 6px rgb(174, 156, 223);\n justify-content: center; \n}\n\nbutton.green{\n\n font-family: 'Montserrat', sans-serif;\n font-size: 18px;\n margin: 12px 0px 6px 0px; \n font-weight: bold; \n width: 150px; \n height: 50px; \n border: 0; \n border-radius: 15px;\n background-color: #AFD14E;\n box-shadow: -3px 6px rgb(148, 194, 23); \n}\n\nbutton.orange{\n\n font-family: 'Montserrat', sans-serif;\n font-size: 18px;\n margin: 12px 0px 6px 0px; \n font-weight: bold; \n width: 150px; \n height: 50px; \n border: 0; \n border-radius: 15px;\n background-color: rgb(248, 138, 87);\n box-shadow: -3px 6px rgb(252, 125, 66); \n}\n\nbutton.red{\n\n font-family: 'Montserrat', sans-serif;\n font-size: 18px;\n margin: 12px 0px 6px 0px; \n font-weight: bold; \n width: 150px; \n height: 50px; \n border: 0; \n border-radius: 15px;\n background-color: #DC6363;\n box-shadow: -3px 6px rgb(219, 73, 73); \n}\n\n",".menuToggle {\n display: inline-block;\n position: relative;\n top: -58px;\n left: 35px;\n \n z-index: 1;\n \n -webkit-user-select: none;\n user-select: none;\n}\n\n.menuToggle a {\n text-decoration: none;\n color: #232323;\n \n transition: color 0.3s ease;\n}\n\n.menuToggle a:hover {\n color: #ffffff;\n}\n\n.menu li:hover {\n color: #ffffff;\n transition-duration: .5s; \n}\n\n\n.menuToggle input {\n display: block;\n width: 50px;\n height: 42px;\n position: absolute;\n top: -7px;\n left: -5px;\n \n cursor: pointer;\n \n opacity: 0; /* hide this */\n z-index: 2; /* and place it over the hamburger */\n \n -webkit-touch-callout: none;\n}\n\n/* Just a quick hamburger */\n.menuToggle span {\n display: block;\n width: 33px;\n height: 4px;\n margin-bottom: 5px;\n position: relative;\n \n background: #232323;\n border-radius: 3px;\n \n z-index: 1;\n \n transform-origin: 4px 0px;\n \n transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0),\n background 0.5s cubic-bezier(0.77,0.2,0.05,1.0),\n opacity 0.55s ease;\n}\n\n.menuToggle span:first-child\n{\n transform-origin: 0% 0%;\n}\n\n.menuToggle span:nth-last-child(2)\n{\n transform-origin: 0% 100%;\n}\n\n/* Transform the slices of hamburger\ninto a crossmark. */\n.menuToggle input:checked ~ span\n{\n opacity: 1;\n transform: rotate(45deg) translate(-2px, -1px);\n background: #232323;\n}\n\n/*\n * But let's hide the middle one.\n */\n.menuToggle input:checked ~ span:nth-last-child(3)\n{\n opacity: 0;\n transform: rotate(0deg) scale(0.2, 0.2);\n}\n\n\n.menuToggle input:checked ~ span:nth-last-child(2)\n{\n transform: rotate(-45deg) translate(0, -1px);\n}\n\n/* Make this absolute at the top left of the screen */\n.menu {\n position: absolute;\n width: 300px;\n height: 200vh;\n margin: -100px 0 0 -50px;\n padding: 30px;\n padding-top: 125px;\n text-align: center;\n \n background: #B8AAE0;\n list-style-type: none;\n -webkit-font-smoothing: antialiased;\n /* to stop flickering of text in safari */\n \n transform-origin: 0% 0%;\n transform: translate(-100%, 0);\n \n transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0);\n}\n\n.menu h1 {\n font-size: 35px;\n}\n\n.menu li {\n padding: 20px 0;\n font-size: 30px;\n}\n\nli:hover{\n color: #ffffdb !important;\n}\n\n/* slide it from the left */\n.menuToggle input:checked ~ ul\n{\n transform: none;\n}\n",".topbar {\n display: flex; \n justify-content: center;\n height: 100px;\n width: 100%; \n background-color: #B8AAE0;\n margin-top: -21px;\n text-align: center;\n vertical-align: middle;\n line-height: 100px; \n}\n\n.topbar h1 {\n font-size: 35px;\n font-weight: normal; \n margin-top: 7px;\n padding-top: 5px;\n}\n\n.white{\n font-weight: bold; \n color: #ffffdb !important; \n}\n\n.logout{\n width: 2.3%;\n height: auto; \n}\n\n\n",".my-masonry-grid {\n display: -webkit-box; /* Not needed if autoprefixing */\n display: -ms-flexbox; /* Not needed if autoprefixing */\n display: flex;\n margin-left: -10px; /* gutter size offset */\n padding: 30px 30px 30px 80px ; \n width: auto;\n }\n \n .my-masonry-grid_column {\n padding-left: 60px; /* gutter size */\n margin-bottom: 20px; \n background-clip: padding-box;\n }\n\n .green-note{ \n width: 300px; \n border-radius: 9px;\n text-align: center; \n justify-content: center;\n align-items: center;\n padding: 20px 0px 20px 0px; \n margin-bottom: 30px; \n background-color: #DDFC84; \n}\n\n.orange-note{ \n width: 300px; \n border-radius: 9px;\n text-align: center; \n justify-content: center;\n align-items: center;\n padding: 20px 0px 20px 0px; \n margin-bottom: 30px; \n background-color: #FCA884; \n}\n\n.red-note{ \n width: 300px; \n border-radius: 9px;\n text-align: center; \n justify-content: center;\n align-items: center;\n padding: 20px 0px 20px 0px; \n margin-bottom: 30px; \n background-color: rgb(212, 120, 120); \n}\n\n\nh2.table{\n font-size: 28px; \n font-weight: bold; \n justify-content: center;\n}\n\n.products-on-note {\n display: grid; \n grid-template-columns: 80% 20%;\n padding: 0px 30px 0px 10px; \n}\n\nli.product-name{\n font-size: 20px; \n text-align: left; \n \n}\n\np.product-quantity{\n font-size: 20px;\n text-align: right; \n font-weight: bold;\n padding-top: 12px; \n\n}\n\nul.note-ul{\n list-style: none;\n}\n\nul.note-ul li::before {\n content: \"\\22C6\"; /* Add content: \\2022 is the CSS Code/unicode for a bullet */\n display: inline-block; /* Needed to add space between the bullet and the text */\n width: 1em; /* Also needed for space (tweak if needed) */\n margin-left: -1em; /* Also needed for space (tweak if needed) */\n }\n\n.no-orders-message-container{\n display: flex; \n justify-content: center;\n padding-top: 250px; \n}\n.no-orders-message{\n font-size: 25px; \n \n}"]}
\ No newline at end of file
diff --git a/build/static/js/2.29bfcd43.chunk.js b/build/static/js/2.29bfcd43.chunk.js
new file mode 100644
index 000000000..4e7fdecb8
--- /dev/null
+++ b/build/static/js/2.29bfcd43.chunk.js
@@ -0,0 +1,3 @@
+/*! For license information please see 2.29bfcd43.chunk.js.LICENSE.txt */
+(this["webpackJsonpburger-queen"]=this["webpackJsonpburger-queen"]||[]).push([[2],[function(t,e,n){"use strict";t.exports=n(51)},function(t,e,n){"use strict";n.d(e,"a",(function(){return _})),n.d(e,"b",(function(){return k})),n.d(e,"c",(function(){return m})),n.d(e,"d",(function(){return P})),n.d(e,"e",(function(){return y})),n.d(e,"f",(function(){return S})),n.d(e,"g",(function(){return L})),n.d(e,"h",(function(){return D}));var r=n(6),i=n(0),o=n.n(i),a=(n(13),n(8)),s=n(27),u=n(7),c=n(4),l=n(28),f=n.n(l),h=(n(32),n(11)),p=n(36),d=n.n(p),v=function(t){var e=Object(s.a)();return e.displayName=t,e}("Router-History"),y=function(t){var e=Object(s.a)();return e.displayName=t,e}("Router"),m=function(t){function e(e){var n;return(n=t.call(this,e)||this).state={location:e.history.location},n._isMounted=!1,n._pendingLocation=null,e.staticContext||(n.unlisten=e.history.listen((function(t){n._isMounted?n.setState({location:t}):n._pendingLocation=t}))),n}Object(r.a)(e,t),e.computeRootMatch=function(t){return{path:"/",url:"/",params:{},isExact:"/"===t}};var n=e.prototype;return n.componentDidMount=function(){this._isMounted=!0,this._pendingLocation&&this.setState({location:this._pendingLocation})},n.componentWillUnmount=function(){this.unlisten&&this.unlisten()},n.render=function(){return o.a.createElement(y.Provider,{value:{history:this.props.history,location:this.state.location,match:e.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},o.a.createElement(v.Provider,{children:this.props.children||null,value:this.props.history}))},e}(o.a.Component);o.a.Component;var g=function(t){function e(){return t.apply(this,arguments)||this}Object(r.a)(e,t);var n=e.prototype;return n.componentDidMount=function(){this.props.onMount&&this.props.onMount.call(this,this)},n.componentDidUpdate=function(t){this.props.onUpdate&&this.props.onUpdate.call(this,this,t)},n.componentWillUnmount=function(){this.props.onUnmount&&this.props.onUnmount.call(this,this)},n.render=function(){return null},e}(o.a.Component);var b={},w=0;function E(t,e){return void 0===t&&(t="/"),void 0===e&&(e={}),"/"===t?t:function(t){if(b[t])return b[t];var e=f.a.compile(t);return w<1e4&&(b[t]=e,w++),e}(t)(e,{pretty:!0})}function _(t){var e=t.computedMatch,n=t.to,r=t.push,i=void 0!==r&&r;return o.a.createElement(y.Consumer,null,(function(t){t||Object(u.a)(!1);var r=t.history,s=t.staticContext,l=i?r.push:r.replace,f=Object(a.c)(e?"string"===typeof n?E(n,e.params):Object(c.a)({},n,{pathname:E(n.pathname,e.params)}):n);return s?(l(f),null):o.a.createElement(g,{onMount:function(){l(f)},onUpdate:function(t,e){var n=Object(a.c)(e.to);Object(a.f)(n,Object(c.a)({},f,{key:n.key}))||l(f)},to:n})}))}var T={},I=0;function S(t,e){void 0===e&&(e={}),("string"===typeof e||Array.isArray(e))&&(e={path:e});var n=e,r=n.path,i=n.exact,o=void 0!==i&&i,a=n.strict,s=void 0!==a&&a,u=n.sensitive,c=void 0!==u&&u;return[].concat(r).reduce((function(e,n){if(!n&&""!==n)return null;if(e)return e;var r=function(t,e){var n=""+e.end+e.strict+e.sensitive,r=T[n]||(T[n]={});if(r[t])return r[t];var i=[],o={regexp:f()(t,i,e),keys:i};return I<1e4&&(r[t]=o,I++),o}(n,{end:o,strict:s,sensitive:c}),i=r.regexp,a=r.keys,u=i.exec(t);if(!u)return null;var l=u[0],h=u.slice(1),p=t===l;return o&&!p?null:{path:n,url:"/"===n&&""===l?"/":l,isExact:p,params:a.reduce((function(t,e,n){return t[e.name]=h[n],t}),{})}}),null)}var k=function(t){function e(){return t.apply(this,arguments)||this}return Object(r.a)(e,t),e.prototype.render=function(){var t=this;return o.a.createElement(y.Consumer,null,(function(e){e||Object(u.a)(!1);var n=t.props.location||e.location,r=t.props.computedMatch?t.props.computedMatch:t.props.path?S(n.pathname,t.props):e.match,i=Object(c.a)({},e,{location:n,match:r}),a=t.props,s=a.children,l=a.component,f=a.render;return Array.isArray(s)&&0===s.length&&(s=null),o.a.createElement(y.Provider,{value:i},i.match?s?"function"===typeof s?s(i):s:l?o.a.createElement(l,i):f?f(i):null:"function"===typeof s?s(i):null)}))},e}(o.a.Component);function x(t){return"/"===t.charAt(0)?t:"/"+t}function N(t,e){if(!t)return e;var n=x(t);return 0!==e.pathname.indexOf(n)?e:Object(c.a)({},e,{pathname:e.pathname.substr(n.length)})}function A(t){return"string"===typeof t?t:Object(a.e)(t)}function O(t){return function(){Object(u.a)(!1)}}function C(){}o.a.Component;var P=function(t){function e(){return t.apply(this,arguments)||this}return Object(r.a)(e,t),e.prototype.render=function(){var t=this;return o.a.createElement(y.Consumer,null,(function(e){e||Object(u.a)(!1);var n,r,i=t.props.location||e.location;return o.a.Children.forEach(t.props.children,(function(t){if(null==r&&o.a.isValidElement(t)){n=t;var a=t.props.path||t.props.from;r=a?S(i.pathname,Object(c.a)({},t.props,{path:a})):e.match}})),r?o.a.cloneElement(n,{location:i,computedMatch:r}):null}))},e}(o.a.Component);function D(t){var e="withRouter("+(t.displayName||t.name)+")",n=function(e){var n=e.wrappedComponentRef,r=Object(h.a)(e,["wrappedComponentRef"]);return o.a.createElement(y.Consumer,null,(function(e){return e||Object(u.a)(!1),o.a.createElement(t,Object(c.a)({},r,e,{ref:n}))}))};return n.displayName=e,n.WrappedComponent=t,d()(n,t)}var R=o.a.useContext;function L(){return R(y).location}},function(t,e,n){"use strict";n.d(e,"a",(function(){return R})),n.d(e,"b",(function(){return Q}));var r=n(0),i=n.n(r),o=n(12),a=n.n(o),s=n(11),u=n(6),c=(n(13),!1),l=i.a.createContext(null),f=function(t){function e(e,n){var r;r=t.call(this,e,n)||this;var i,o=n&&!n.isMounting?e.enter:e.appear;return r.appearStatus=null,e.in?o?(i="exited",r.appearStatus="entering"):i="entered":i=e.unmountOnExit||e.mountOnEnter?"unmounted":"exited",r.state={status:i},r.nextCallback=null,r}Object(u.a)(e,t),e.getDerivedStateFromProps=function(t,e){return t.in&&"unmounted"===e.status?{status:"exited"}:null};var n=e.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(t){var e=null;if(t!==this.props){var n=this.state.status;this.props.in?"entering"!==n&&"entered"!==n&&(e="entering"):"entering"!==n&&"entered"!==n||(e="exiting")}this.updateStatus(!1,e)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var t,e,n,r=this.props.timeout;return t=e=n=r,null!=r&&"number"!==typeof r&&(t=r.exit,e=r.enter,n=void 0!==r.appear?r.appear:e),{exit:t,enter:e,appear:n}},n.updateStatus=function(t,e){void 0===t&&(t=!1),null!==e?(this.cancelNextCallback(),"entering"===e?this.performEnter(t):this.performExit()):this.props.unmountOnExit&&"exited"===this.state.status&&this.setState({status:"unmounted"})},n.performEnter=function(t){var e=this,n=this.props.enter,r=this.context?this.context.isMounting:t,i=this.props.nodeRef?[r]:[a.a.findDOMNode(this),r],o=i[0],s=i[1],u=this.getTimeouts(),l=r?u.appear:u.enter;!t&&!n||c?this.safeSetState({status:"entered"},(function(){e.props.onEntered(o)})):(this.props.onEnter(o,s),this.safeSetState({status:"entering"},(function(){e.props.onEntering(o,s),e.onTransitionEnd(l,(function(){e.safeSetState({status:"entered"},(function(){e.props.onEntered(o,s)}))}))})))},n.performExit=function(){var t=this,e=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:a.a.findDOMNode(this);e&&!c?(this.props.onExit(r),this.safeSetState({status:"exiting"},(function(){t.props.onExiting(r),t.onTransitionEnd(n.exit,(function(){t.safeSetState({status:"exited"},(function(){t.props.onExited(r)}))}))}))):this.safeSetState({status:"exited"},(function(){t.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(t,e){e=this.setNextCallback(e),this.setState(t,e)},n.setNextCallback=function(t){var e=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,e.nextCallback=null,t(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(t,e){this.setNextCallback(e);var n=this.props.nodeRef?this.props.nodeRef.current:a.a.findDOMNode(this),r=null==t&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],o=i[0],s=i[1];this.props.addEndListener(o,s)}null!=t&&setTimeout(this.nextCallback,t)}else setTimeout(this.nextCallback,0)},n.render=function(){var t=this.state.status;if("unmounted"===t)return null;var e=this.props,n=e.children,r=(e.in,e.mountOnEnter,e.unmountOnExit,e.appear,e.enter,e.exit,e.timeout,e.addEndListener,e.onEnter,e.onEntering,e.onEntered,e.onExit,e.onExiting,e.onExited,e.nodeRef,Object(s.a)(e,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return i.a.createElement(l.Provider,{value:null},"function"===typeof n?n(t,r):i.a.cloneElement(i.a.Children.only(n),r))},e}(i.a.Component);function h(){}f.contextType=l,f.propTypes={},f.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:h,onEntering:h,onEntered:h,onExit:h,onExiting:h,onExited:h},f.UNMOUNTED="unmounted",f.EXITED="exited",f.ENTERING="entering",f.ENTERED="entered",f.EXITING="exiting";var p=f,d=n(17),v=n.n(d);function y(){return(y=Object.assign||function(t){for(var e=1;e=0||(i[n]=t[n]);return i}var g={list:new Map,emitQueue:new Map,on:function(t,e){return this.list.has(t)||this.list.set(t,[]),this.list.get(t).push(e),this},off:function(t,e){if(e){var n=this.list.get(t).filter((function(t){return t!==e}));return this.list.set(t,n),this}return this.list.delete(t),this},cancelEmit:function(t){var e=this.emitQueue.get(t);return e&&(e.forEach((function(t){return clearTimeout(t)})),this.emitQueue.delete(t)),this},emit:function(t){for(var e=this,n=arguments.length,r=new Array(n>1?n-1:0),i=1;i=1?"onTransitionEnd":"onAnimationEnd"]=f&&h<1?null:function(){d&&a()},n);return Object(r.createElement)("div",Object.assign({className:g,style:m},b))}C.defaultProps={type:N.DEFAULT,hide:!1};var P=function(t){var e,n=function(t){var e=Object(r.useState)(!0),n=e[0],i=e[1],o=Object(r.useState)(!1),a=o[0],s=o[1],u=Object(r.useRef)(null),c=X({start:0,x:0,y:0,deltaX:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,boundingRect:null}),l=X(t,!0),f=t.autoClose,h=t.pauseOnHover,p=t.closeToast,d=t.onClick,v=t.closeOnClick;function y(e){var n=u.current;c.canCloseOnClick=!0,c.canDrag=!0,c.boundingRect=n.getBoundingClientRect(),n.style.transition="",c.start=c.x=J(e.nativeEvent),c.removalDistance=n.offsetWidth*(t.draggablePercent/100)}function m(){if(c.boundingRect){var e=c.boundingRect,n=e.top,r=e.bottom,i=e.left,o=e.right;t.pauseOnHover&&c.x>=i&&c.x<=o&&c.y>=n&&c.y<=r?b():g()}}function g(){i(!0)}function b(){i(!1)}function w(t){var e=u.current;c.canDrag&&(n&&b(),c.x=J(t),c.deltaX=c.x-c.start,c.y=function(t){return t.targetTouches&&t.targetTouches.length>=1?t.targetTouches[0].clientY:t.clientY}(t),c.start!==c.x&&(c.canCloseOnClick=!1),e.style.transform="translateX("+c.deltaX+"px)",e.style.opacity=""+(1-Math.abs(c.deltaX/c.removalDistance)))}function E(){var e=u.current;if(c.canDrag){if(c.canDrag=!1,Math.abs(c.deltaX)>c.removalDistance)return s(!0),void t.closeToast();e.style.transition="transform 0.2s, opacity 0.2s",e.style.transform="translateX(0)",e.style.opacity="1"}}Object(r.useEffect)((function(){return _(t.onOpen)&&t.onOpen(Object(r.isValidElement)(t.children)&&t.children.props),function(){_(l.onClose)&&l.onClose(Object(r.isValidElement)(l.children)&&l.children.props)}}),[]),Object(r.useEffect)((function(){return t.draggable&&(document.addEventListener("mousemove",w),document.addEventListener("mouseup",E),document.addEventListener("touchmove",w),document.addEventListener("touchend",E)),function(){t.draggable&&(document.removeEventListener("mousemove",w),document.removeEventListener("mouseup",E),document.removeEventListener("touchmove",w),document.removeEventListener("touchend",E))}}),[t.draggable]),Object(r.useEffect)((function(){return t.pauseOnFocusLoss&&(window.addEventListener("focus",g),window.addEventListener("blur",b)),function(){t.pauseOnFocusLoss&&(window.removeEventListener("focus",g),window.removeEventListener("blur",b))}}),[t.pauseOnFocusLoss]);var T={onMouseDown:y,onTouchStart:y,onMouseUp:m,onTouchEnd:m};f&&h&&(T.onMouseEnter=b,T.onMouseLeave=g);v&&(T.onClick=function(t){d&&d(t),c.canCloseOnClick&&p()});return{playToast:g,pauseToast:b,isRunning:n,preventExitTransition:a,toastRef:u,eventHandlers:T}}(t),i=n.isRunning,o=n.preventExitTransition,a=n.toastRef,s=n.eventHandlers,u=t.closeButton,c=t.children,l=t.autoClose,f=t.onClick,h=t.type,p=t.hideProgressBar,d=t.closeToast,y=t.transition,m=t.position,g=t.className,b=t.style,w=t.bodyClassName,E=t.bodyStyle,T=t.progressClassName,I=t.progressStyle,S=t.updateId,k=t.role,x=t.progress,N=t.rtl,A=t.toastId,O=t.deleteToast,P=v()("Toastify__toast","Toastify__toast--"+h,((e={})["Toastify__toast--rtl"]=N,e),g),D=!!x;return Object(r.createElement)(y,{in:t.in,appear:!0,done:O,position:m,preventExitTransition:o,nodeRef:a},Object(r.createElement)("div",Object.assign({id:A,onClick:f,className:P},s,{style:b,ref:a}),Object(r.createElement)("div",Object.assign({},t.in&&{role:k},{className:v()("Toastify__toast-body",w),style:E}),c),function(t){if(!t)return null;var e={closeToast:d,type:h};return _(t)?t(e):Object(r.isValidElement)(t)?Object(r.cloneElement)(t,e):void 0}(u),(l||D)&&Object(r.createElement)(C,Object.assign({},S&&!D?{key:"pb-"+S}:{},{rtl:N,delay:l,isRunning:i,isIn:t.in,closeToast:d,hide:p,type:h,style:I,className:T,controlledProgress:D,progress:x}))))},D=A({enter:"Toastify__bounce-enter",exit:"Toastify__bounce-exit",appendPosition:!0}),R=A({enter:"Toastify__slide-enter",exit:"Toastify__slide-exit",duration:[450,750],appendPosition:!0}),L=function(t){var e=t.children,n=t.className,i=t.style,o=m(t,["children","className","style"]);return delete o.in,Object(r.createElement)("div",{className:n,style:i},r.Children.map(e,(function(t){return Object(r.cloneElement)(t,o)})))},j=function(t){var e=function(t){var e=Object(r.useReducer)((function(t){return t+1}),0)[1],n=Object(r.useReducer)(Y,[]),i=n[0],o=n[1],a=Object(r.useRef)(null),s=X(0),u=X([]),c=X({}),l=X({toastKey:1,displayedToast:0,props:t,containerId:null,isToastActive:f,getToast:function(t){return c[t]||null}});function f(t){return-1!==i.indexOf(t)}function h(t){var e=t.containerId,n=l.props,r=n.limit,i=n.enableMultiContainer;r&&(!e||l.containerId===e&&i)&&(s-=u.length,u=[])}function p(t){var e=u.length;if((s=I(t)?s-1:s-l.displayedToast)<0&&(s=0),e>0){var n=I(t)?1:l.props.limit;if(1===e||1===n)l.displayedToast++,d();else{var r=n>e?e:n;l.displayedToast=r;for(var i=0;i0?S:x),hideProgressBar:w(f.hideProgressBar)?f.hideProgressBar:v.hideProgressBar,progress:f.progress,role:E(f.role)?f.role:v.role,deleteToast:function(){!function(t){delete c[t],e()}(h)}};_(f.onOpen)&&(N.onOpen=f.onOpen),_(f.onClose)&&(N.onClose=f.onClose);var A=v.closeButton;!1===f.closeButton||k(f.closeButton)?A=f.closeButton:!0===f.closeButton&&(A=!k(v.closeButton)||v.closeButton),N.closeButton=A;var O=t;Object(r.isValidElement)(t)&&!E(t.type)?O=Object(r.cloneElement)(t,{closeToast:g}):_(t)&&(O=t({closeToast:g})),v.limit&&v.limit>0&&s>v.limit&&I?u.push({toastContent:O,toastProps:N,staleId:o}):b(i)&&i>0?setTimeout((function(){y(O,N,o)}),i):y(O,N,o)}}function y(t,e,n){var r=e.toastId;c[r]={content:t,props:e},o({type:"ADD",toastId:r,staleId:n})}function S(e){for(var n={},r=t.newestOnTop?Object.keys(c).reverse():Object.keys(c),i=0;i0}function G(t,e){var n=function(t){return q()?V.get(t||M):null}(e.containerId);return n?n.getToast(t):null}function H(){return(Math.random().toString(36)+Date.now().toString(36)).substr(2,10)}function W(t){return t&&(E(t.toastId)||b(t.toastId))?t.toastId:H()}function K(t,e){return q()?g.emit(0,t,e):(z.push({content:t,options:e}),B&&S&&(B=!1,U=document.createElement("div"),document.body.appendChild(U),Object(o.render)(Object(r.createElement)(j,Object.assign({},F)),U))),e.toastId}function $(t,e){return y(y({},e),{},{type:e&&e.type||t,toastId:W(e)})}var Q=function(t,e){return K(t,$(N.DEFAULT,e))};function X(t,e){void 0===e&&(e=!1);var n=Object(r.useRef)(t);return Object(r.useEffect)((function(){e&&(n.current=t)})),n.current}function Y(t,e){switch(e.type){case"ADD":return[].concat(t,[e.toastId]).filter((function(t){return t!==e.staleId}));case"REMOVE":return I(e.toastId)?t.filter((function(t){return t!==e.toastId})):[]}}function J(t){return t.targetTouches&&t.targetTouches.length>=1?t.targetTouches[0].clientX:t.clientX}Q.success=function(t,e){return K(t,$(N.SUCCESS,e))},Q.info=function(t,e){return K(t,$(N.INFO,e))},Q.error=function(t,e){return K(t,$(N.ERROR,e))},Q.warning=function(t,e){return K(t,$(N.WARNING,e))},Q.dark=function(t,e){return K(t,$(N.DARK,e))},Q.warn=Q.warning,Q.dismiss=function(t){return q()&&g.emit(1,t)},Q.clearWaitingQueue=function(t){return void 0===t&&(t={}),q()&&g.emit(5,t)},Q.isActive=function(t){var e=!1;return V.forEach((function(n){n.isToastActive&&n.isToastActive(t)&&(e=!0)})),e},Q.update=function(t,e){void 0===e&&(e={}),setTimeout((function(){var n=G(t,e);if(n){var r=n.props,i=n.content,o=y(y(y({},r),e),{},{toastId:e.toastId||t,updateId:H()});o.toastId!==t&&(o.staleId=t);var a="undefined"!==typeof o.render?o.render:i;delete o.render,K(a,o)}}),0)},Q.done=function(t){Q.update(t,{progress:1})},Q.onChange=function(t){return _(t)&&g.on(4,t),function(){_(t)&&g.off(4,t)}},Q.configure=function(t){void 0===t&&(t={}),B=!0,F=t},Q.POSITION=x,Q.TYPE=N,g.on(2,(function(t){M=t.containerId||t,V.set(M,t),z.forEach((function(t){g.emit(0,t.content,t.options)})),z=[]})).on(3,(function(t){V.delete(t.containerId||t),0===V.size&&g.off(0).off(1).off(5),S&&U&&document.body.removeChild(U)}))},function(t,e,n){"use strict";function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function o(t){for(var e=1;e=0;h--){var p=a[h];"."===p?o(a,h):".."===p?(o(a,h),f++):f&&(o(a,h),f--)}if(!c)for(;f--;f)a.unshift("..");!c||""===a[0]||a[0]&&i(a[0])||a.unshift("");var d=a.join("/");return n&&"/"!==d.substr(-1)&&(d+="/"),d};function s(t){return t.valueOf?t.valueOf():Object.prototype.valueOf.call(t)}var u=function t(e,n){if(e===n)return!0;if(null==e||null==n)return!1;if(Array.isArray(e))return Array.isArray(n)&&e.length===n.length&&e.every((function(e,r){return t(e,n[r])}));if("object"===typeof e||"object"===typeof n){var r=s(e),i=s(n);return r!==e||i!==n?t(r,i):Object.keys(Object.assign({},e,n)).every((function(r){return t(e[r],n[r])}))}return!1},c=n(7);function l(t){return"/"===t.charAt(0)?t:"/"+t}function f(t){return"/"===t.charAt(0)?t.substr(1):t}function h(t,e){return function(t,e){return 0===t.toLowerCase().indexOf(e.toLowerCase())&&-1!=="/?#".indexOf(t.charAt(e.length))}(t,e)?t.substr(e.length):t}function p(t){return"/"===t.charAt(t.length-1)?t.slice(0,-1):t}function d(t){var e=t.pathname,n=t.search,r=t.hash,i=e||"/";return n&&"?"!==n&&(i+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(i+="#"===r.charAt(0)?r:"#"+r),i}function v(t,e,n,i){var o;"string"===typeof t?(o=function(t){var e=t||"/",n="",r="",i=e.indexOf("#");-1!==i&&(r=e.substr(i),e=e.substr(0,i));var o=e.indexOf("?");return-1!==o&&(n=e.substr(o),e=e.substr(0,o)),{pathname:e,search:"?"===n?"":n,hash:"#"===r?"":r}}(t)).state=e:(void 0===(o=Object(r.a)({},t)).pathname&&(o.pathname=""),o.search?"?"!==o.search.charAt(0)&&(o.search="?"+o.search):o.search="",o.hash?"#"!==o.hash.charAt(0)&&(o.hash="#"+o.hash):o.hash="",void 0!==e&&void 0===o.state&&(o.state=e));try{o.pathname=decodeURI(o.pathname)}catch(s){throw s instanceof URIError?new URIError('Pathname "'+o.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):s}return n&&(o.key=n),i?o.pathname?"/"!==o.pathname.charAt(0)&&(o.pathname=a(o.pathname,i.pathname)):o.pathname=i.pathname:o.pathname||(o.pathname="/"),o}function y(t,e){return t.pathname===e.pathname&&t.search===e.search&&t.hash===e.hash&&t.key===e.key&&u(t.state,e.state)}function m(){var t=null;var e=[];return{setPrompt:function(e){return t=e,function(){t===e&&(t=null)}},confirmTransitionTo:function(e,n,r,i){if(null!=t){var o="function"===typeof t?t(e,n):t;"string"===typeof o?"function"===typeof r?r(o,i):i(!0):i(!1!==o)}else i(!0)},appendListener:function(t){var n=!0;function r(){n&&t.apply(void 0,arguments)}return e.push(r),function(){n=!1,e=e.filter((function(t){return t!==r}))}},notifyListeners:function(){for(var t=arguments.length,n=new Array(t),r=0;re?n.splice(e,n.length-e,r):n.push(r),f({action:"PUSH",location:r,index:e,entries:n})}}))},replace:function(t,e){var r=v(t,e,h(),w.location);l.confirmTransitionTo(r,"REPLACE",n,(function(t){t&&(w.entries[w.index]=r,f({action:"REPLACE",location:r}))}))},go:b,goBack:function(){b(-1)},goForward:function(){b(1)},canGo:function(t){var e=w.index+t;return e>=0&&e=0||(i[n]=t[n]);return i}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";!function t(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE){0;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}}(),t.exports=n(52)},function(t,e,n){t.exports=n(64)()},function(t,e,n){t.exports=n(56)},function(t,e,n){"use strict";function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a}function u(t,e){return function(n,r){e(n,r,t)}}function c(t,e){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(t,e)}function l(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{u(r.next(t))}catch(e){o(e)}}function s(t){try{u(r.throw(t))}catch(e){o(e)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))}function f(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function v(t,e){var n="function"===typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function y(){for(var t=[],e=0;e1||s(t,e)}))})}function s(t,e){try{(n=i[t](e)).value instanceof g?Promise.resolve(n.value.v).then(u,c):l(o[0][2],n)}catch(r){l(o[0][3],r)}var n}function u(t){s("next",t)}function c(t){s("throw",t)}function l(t,e){t(e),o.shift(),o.length&&s(o[0][0],o[0][1])}}function w(t){var e,n;return e={},r("next"),r("throw",(function(t){throw t})),r("return"),e[Symbol.iterator]=function(){return this},e;function r(r,i){e[r]=t[r]?function(e){return(n=!n)?{value:g(t[r](e)),done:"return"===r}:i?i(e):e}:i}}function E(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=d(t),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(n){e[n]=t[n]&&function(e){return new Promise((function(r,i){(function(t,e,n,r){Promise.resolve(r).then((function(e){t({value:e,done:n})}),e)})(r,i,(e=t[n](e)).done,e.value)}))}}}function _(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}function T(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function I(t){return t&&t.__esModule?t:{default:t}}function S(t,e){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)}function k(t,e,n){if(!e.has(t))throw new TypeError("attempted to set private field on non-instance");return e.set(t,n),n}},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}t.exports=n},function(t,e,n){"use strict";function r(t,e,n,r,i,o,a){try{var s=t[o](a),u=s.value}catch(c){return void n(c)}s.done?e(u):Promise.resolve(u).then(r,i)}function i(t){return function(){var e=this,n=arguments;return new Promise((function(i,o){var a=t.apply(e,n);function s(t){r(a,i,o,s,u,"next",t)}function u(t){r(a,i,o,s,u,"throw",t)}s(void 0)}))}}n.d(e,"a",(function(){return i}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(15);function i(t,e){if(t){if("string"===typeof t)return Object(r.a)(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Object(r.a)(t,e):void 0}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=Object.assign||function(t){for(var e=1;e0&&t<=a&&a=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}(t,["children","breakpointCols","columnClassName","columnAttrs","column","className"]),r=e;return"string"!==typeof e&&(this.logDeprecated('The property "className" requires a string'),"undefined"===typeof e&&(r="my-masonry-grid")),u.default.createElement("div",i({},n,{className:r}),this.renderColumns())}}]),e}(u.default.Component);l.defaultProps=c,e.default=l},,function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i,o=n(18),a=n(25),s=n(30),u=n(31),c=((r={})["no-app"]="No Firebase App '{$appName}' has been created - call Firebase App.initializeApp()",r["bad-app-name"]="Illegal App name: '{$appName}",r["duplicate-app"]="Firebase App named '{$appName}' already exists",r["app-deleted"]="Firebase App named '{$appName}' already deleted",r["invalid-app-argument"]="firebase.{$appName}() takes either no argument or a Firebase App instance.",r["invalid-log-argument"]="First argument to `onLog` must be null or a function.",r),l=new a.ErrorFactory("app","Firebase",c),f=((i={})["@firebase/app"]="fire-core",i["@firebase/analytics"]="fire-analytics",i["@firebase/auth"]="fire-auth",i["@firebase/database"]="fire-rtdb",i["@firebase/functions"]="fire-fn",i["@firebase/installations"]="fire-iid",i["@firebase/messaging"]="fire-fcm",i["@firebase/performance"]="fire-perf",i["@firebase/remote-config"]="fire-rc",i["@firebase/storage"]="fire-gcs",i["@firebase/firestore"]="fire-fst",i["fire-js"]="fire-js",i["firebase-wrapper"]="fire-js-all",i),h=new u.Logger("@firebase/app"),p=function(){function t(t,e,n){var r,i,u=this;this.firebase_=n,this.isDeleted_=!1,this.name_=e.name,this.automaticDataCollectionEnabled_=e.automaticDataCollectionEnabled||!1,this.options_=a.deepCopy(t),this.container=new s.ComponentContainer(e.name),this._addComponent(new s.Component("app",(function(){return u}),"PUBLIC"));try{for(var c=o.__values(this.firebase_.INTERNAL.components.values()),l=c.next();!l.done;l=c.next()){var f=l.value;this._addComponent(f)}}catch(h){r={error:h}}finally{try{l&&!l.done&&(i=c.return)&&i.call(c)}finally{if(r)throw r.error}}}return Object.defineProperty(t.prototype,"automaticDataCollectionEnabled",{get:function(){return this.checkDestroyed_(),this.automaticDataCollectionEnabled_},set:function(t){this.checkDestroyed_(),this.automaticDataCollectionEnabled_=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.checkDestroyed_(),this.name_},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"options",{get:function(){return this.checkDestroyed_(),this.options_},enumerable:!1,configurable:!0}),t.prototype.delete=function(){var t=this;return new Promise((function(e){t.checkDestroyed_(),e()})).then((function(){return t.firebase_.INTERNAL.removeApp(t.name_),Promise.all(t.container.getProviders().map((function(t){return t.delete()})))})).then((function(){t.isDeleted_=!0}))},t.prototype._getService=function(t,e){return void 0===e&&(e="[DEFAULT]"),this.checkDestroyed_(),this.container.getProvider(t).getImmediate({identifier:e})},t.prototype._removeServiceInstance=function(t,e){void 0===e&&(e="[DEFAULT]"),this.container.getProvider(t).clearInstance(e)},t.prototype._addComponent=function(t){try{this.container.addComponent(t)}catch(e){h.debug("Component "+t.name+" failed to register with FirebaseApp "+this.name,e)}},t.prototype._addOrOverwriteComponent=function(t){this.container.addOrOverwriteComponent(t)},t.prototype.checkDestroyed_=function(){if(this.isDeleted_)throw l.create("app-deleted",{appName:this.name_})},t}();p.prototype.name&&p.prototype.options||p.prototype.delete||console.log("dc");var d=function t(){var e=function(t){var e={},n=new Map,r={__esModule:!0,initializeApp:function(n,i){void 0===i&&(i={});if("object"!==typeof i||null===i){i={name:i}}var o=i;void 0===o.name&&(o.name="[DEFAULT]");var s=o.name;if("string"!==typeof s||!s)throw l.create("bad-app-name",{appName:String(s)});if(a.contains(e,s))throw l.create("duplicate-app",{appName:s});var u=new t(n,o,r);return e[s]=u,u},app:i,registerVersion:function(t,e,n){var r,i=null!==(r=f[t])&&void 0!==r?r:t;n&&(i+="-"+n);var o=i.match(/\s|\//),a=e.match(/\s|\//);if(o||a){var u=['Unable to register library "'+i+'" with version "'+e+'":'];return o&&u.push('library name "'+i+'" contains illegal characters (whitespace or "/")'),o&&a&&u.push("and"),a&&u.push('version name "'+e+'" contains illegal characters (whitespace or "/")'),void h.warn(u.join(" "))}c(new s.Component(i+"-version",(function(){return{library:i,version:e}}),"VERSION"))},setLogLevel:u.setLogLevel,onLog:function(t,e){if(null!==t&&"function"!==typeof t)throw l.create("invalid-log-argument",{appName:name});u.setUserLogHandler(t,e)},apps:null,SDK_VERSION:"7.16.0",INTERNAL:{registerComponent:c,removeApp:function(t){delete e[t]},components:n,useAsService:function(t,e){if("serverAuth"===e)return null;return e}}};function i(t){if(t=t||"[DEFAULT]",!a.contains(e,t))throw l.create("no-app",{appName:t});return e[t]}function c(s){var u,c,f=s.name;if(n.has(f))return h.debug("There were multiple attempts to register component "+f+"."),"PUBLIC"===s.type?r[f]:null;if(n.set(f,s),"PUBLIC"===s.type){var p=function(t){if(void 0===t&&(t=i()),"function"!==typeof t[f])throw l.create("invalid-app-argument",{appName:f});return t[f]()};void 0!==s.serviceProps&&a.deepExtend(p,s.serviceProps),r[f]=p,t.prototype[f]=function(){for(var t=[],e=0;e=0&&h.warn("\n Warning: You are trying to load Firebase while using Firebase Performance standalone script.\n You should load Firebase Performance with this instance of Firebase to avoid loading duplicate code.\n ")}var m=d.initializeApp;d.initializeApp=function(){for(var t=[],e=0;e>6|192,e[n++]=63&i|128):55296===(64512&i)&&r+1>18|240,e[n++]=i>>12&63|128,e[n++]=i>>6&63|128,e[n++]=63&i|128):(e[n++]=i>>12|224,e[n++]=i>>6&63|128,e[n++]=63&i|128)}return e},u={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:function(t,e){if(!Array.isArray(t))throw Error("encodeByteArray takes an array as a parameter");this.init_();for(var n=e?this.byteToCharMapWebSafe_:this.byteToCharMap_,r=[],i=0;i>2,f=(3&o)<<4|s>>4,h=(15&s)<<2|c>>6,p=63&c;u||(p=64,a||(h=64)),r.push(n[l],n[f],n[h],n[p])}return r.join("")},encodeString:function(t,e){return this.HAS_NATIVE_SUPPORT&&!e?btoa(t):this.encodeByteArray(s(t),e)},decodeString:function(t,e){return this.HAS_NATIVE_SUPPORT&&!e?atob(t):function(t){for(var e=[],n=0,r=0;n191&&i<224){var o=t[n++];e[r++]=String.fromCharCode((31&i)<<6|63&o)}else if(i>239&&i<365){var a=((7&i)<<18|(63&(o=t[n++]))<<12|(63&(s=t[n++]))<<6|63&t[n++])-65536;e[r++]=String.fromCharCode(55296+(a>>10)),e[r++]=String.fromCharCode(56320+(1023&a))}else{o=t[n++];var s=t[n++];e[r++]=String.fromCharCode((15&i)<<12|(63&o)<<6|63&s)}}return e.join("")}(this.decodeStringToByteArray(t,e))},decodeStringToByteArray:function(t,e){this.init_();for(var n=e?this.charToByteMapWebSafe_:this.charToByteMap_,r=[],i=0;i>4;if(r.push(c),64!==s){var l=a<<4&240|s>>2;if(r.push(l),64!==u){var f=s<<6&192|u;r.push(f)}}}return r},init_:function(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(var t=0;t=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(t)]=t,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(t)]=t)}}},c=function(t){try{return u.decodeString(t,!0)}catch(e){console.error("base64Decode failed: ",e)}return null};function l(t,e){if(!(e instanceof Object))return e;switch(e.constructor){case Date:return new Date(e.getTime());case Object:void 0===t&&(t={});break;case Array:t=[];break;default:return e}for(var n in e)e.hasOwnProperty(n)&&(t[n]=l(t[n],e[n]));return t}var f=function(){function t(){var t=this;this.reject=function(){},this.resolve=function(){},this.promise=new Promise((function(e,n){t.resolve=e,t.reject=n}))}return t.prototype.wrapCallback=function(t){var e=this;return function(n,r){n?e.reject(n):e.resolve(r),"function"===typeof t&&(e.promise.catch((function(){})),1===t.length?t(n):t(n,r))}},t}();function h(){return"undefined"!==typeof navigator&&"string"===typeof navigator.userAgent?navigator.userAgent:""}function p(){try{return"[object process]"===Object.prototype.toString.call(t.process)}catch(e){return!1}}var d=function(t){function e(n,r){var i=t.call(this,r)||this;return i.code=n,i.name="FirebaseError",Object.setPrototypeOf(i,e.prototype),Error.captureStackTrace&&Error.captureStackTrace(i,v.prototype.create),i}return r.__extends(e,t),e}(Error),v=function(){function t(t,e,n){this.service=t,this.serviceName=e,this.errors=n}return t.prototype.create=function(t){for(var e=[],n=1;n"}))}var m=/\{\$([^}]+)}/g;function g(t){return JSON.parse(t)}var b=function(t){var e={},n={},r={},i="";try{var o=t.split(".");e=g(c(o[0])||""),n=g(c(o[1])||""),i=o[2],r=n.d||{},delete n.d}catch(a){}return{header:e,claims:n,data:r,signature:i}};var w=function(){function t(){this.chain_=[],this.buf_=[],this.W_=[],this.pad_=[],this.inbuf_=0,this.total_=0,this.blockSize=64,this.pad_[0]=128;for(var t=1;t>>31)}var o,a,s=this.chain_[0],u=this.chain_[1],c=this.chain_[2],l=this.chain_[3],f=this.chain_[4];for(r=0;r<80;r++){r<40?r<20?(o=l^u&(c^l),a=1518500249):(o=u^c^l,a=1859775393):r<60?(o=u&c|l&(u|c),a=2400959708):(o=u^c^l,a=3395469782);i=(s<<5|s>>>27)+o+f+a+n[r]&4294967295;f=l,l=c,c=4294967295&(u<<30|u>>>2),u=s,s=i}this.chain_[0]=this.chain_[0]+s&4294967295,this.chain_[1]=this.chain_[1]+u&4294967295,this.chain_[2]=this.chain_[2]+c&4294967295,this.chain_[3]=this.chain_[3]+l&4294967295,this.chain_[4]=this.chain_[4]+f&4294967295},t.prototype.update=function(t,e){if(null!=t){void 0===e&&(e=t.length);for(var n=e-this.blockSize,r=0,i=this.buf_,o=this.inbuf_;r=56;n--)this.buf_[n]=255&e,e/=256;this.compress_(this.buf_);var r=0;for(n=0;n<5;n++)for(var i=24;i>=0;i-=8)t[r]=this.chain_[n]>>i&255,++r;return t},t}();var E=function(){function t(t,e){var n=this;this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Promise.resolve(),this.finalized=!1,this.onNoObservers=e,this.task.then((function(){t(n)})).catch((function(t){n.error(t)}))}return t.prototype.next=function(t){this.forEachObserver((function(e){e.next(t)}))},t.prototype.error=function(t){this.forEachObserver((function(e){e.error(t)})),this.close(t)},t.prototype.complete=function(){this.forEachObserver((function(t){t.complete()})),this.close()},t.prototype.subscribe=function(t,e,n){var r,i=this;if(void 0===t&&void 0===e&&void 0===n)throw new Error("Missing Observer.");void 0===(r=function(t,e){if("object"!==typeof t||null===t)return!1;for(var n=0,r=e;n 4. Need to update it?")}var i=t+" failed: ";return i+=r+" argument "}e.CONSTANTS=i,e.Deferred=f,e.ErrorFactory=v,e.FirebaseError=d,e.Sha1=w,e.assert=o,e.assertionError=a,e.async=function(t,e){return function(){for(var n=[],r=0;r=0},e.isEmpty=function(t){for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e))return!1;return!0},e.isIE=function(){var t=h();return t.indexOf("MSIE ")>=0||t.indexOf("Trident/")>=0},e.isMobileCordova=function(){return"undefined"!==typeof window&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(h())},e.isNode=p,e.isNodeSdk=function(){return!0===i.NODE_CLIENT||!0===i.NODE_ADMIN},e.isReactNative=function(){return"object"===typeof navigator&&"ReactNative"===navigator.product},e.isSafari=function(){return!p()&&navigator.userAgent.includes("Safari")&&!navigator.userAgent.includes("Chrome")},e.isUWP=function(){return h().indexOf("MSAppHost/")>=0},e.isValidFormat=function(t){var e=b(t).claims;return!!e&&"object"===typeof e&&e.hasOwnProperty("iat")},e.isValidTimestamp=function(t){var e=b(t).claims,n=Math.floor((new Date).getTime()/1e3),r=0,i=0;return"object"===typeof e&&(e.hasOwnProperty("nbf")?r=e.nbf:e.hasOwnProperty("iat")&&(r=e.iat),i=e.hasOwnProperty("exp")?e.exp:r+86400),!!n&&!!r&&!!i&&n>=r&&n<=i},e.issuedAtTime=function(t){var e=b(t).claims;return"object"===typeof e&&e.hasOwnProperty("iat")?e.iat:null},e.jsonEval=g,e.map=function(t,e,n){var r={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(r[i]=e.call(n,t[i],i,t));return r},e.querystring=function(t){for(var e=[],n=function(t,n){Array.isArray(n)?n.forEach((function(n){e.push(encodeURIComponent(t)+"="+encodeURIComponent(n))})):e.push(encodeURIComponent(t)+"="+encodeURIComponent(n))},r=0,i=Object.entries(t);r=55296&&r<=56319?(e+=4,n++):e+=3}return e},e.stringToByteArray=function(t){for(var e=[],n=0,r=0;r=55296&&i<=56319){var a=i-55296;r++,o(r>6|192,e[n++]=63&i|128):i<65536?(e[n++]=i>>12|224,e[n++]=i>>6&63|128,e[n++]=63&i|128):(e[n++]=i>>18|240,e[n++]=i>>12&63|128,e[n++]=i>>6&63|128,e[n++]=63&i|128)}return e},e.stringify=function(t){return JSON.stringify(t)},e.validateArgCount=function(t,e,n,r){var i;if(rn&&(i=0===n?"none":"no more than "+n),i)throw new Error(t+" failed: Was called with "+r+(1===r?" argument.":" arguments.")+" Expects "+i+".")},e.validateCallback=function(t,e,n,r){if((!r||n)&&"function"!==typeof n)throw new Error(T(t,e,r)+"must be a valid function.")},e.validateContextObject=function(t,e,n,r){if((!r||n)&&("object"!==typeof n||null===n))throw new Error(T(t,e,r)+"must be a valid context object.")},e.validateNamespace=function(t,e,n,r){if((!r||n)&&"string"!==typeof n)throw new Error(T(t,e,r)+"must be a valid firebase namespace.")}}).call(this,n(19))},function(t,e,n){},function(t,e,n){"use strict";(function(t){var r=n(0),i=n.n(r),o=n(6),a=n(13),s=n.n(a),u="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof t?t:{};function c(t){var e=[];return{on:function(t){e.push(t)},off:function(t){e=e.filter((function(e){return e!==t}))},get:function(){return t},set:function(n,r){t=n,e.forEach((function(e){return e(t,r)}))}}}var l=i.a.createContext||function(t,e){var n,i,a="__create-react-context-"+function(){var t="__global_unique_id__";return u[t]=(u[t]||0)+1}()+"__",l=function(t){function n(){var e;return(e=t.apply(this,arguments)||this).emitter=c(e.props.value),e}Object(o.a)(n,t);var r=n.prototype;return r.getChildContext=function(){var t;return(t={})[a]=this.emitter,t},r.componentWillReceiveProps=function(t){if(this.props.value!==t.value){var n,r=this.props.value,i=t.value;((o=r)===(a=i)?0!==o||1/o===1/a:o!==o&&a!==a)?n=0:(n="function"===typeof e?e(r,i):1073741823,0!==(n|=0)&&this.emitter.set(t.value,n))}var o,a},r.render=function(){return this.props.children},n}(r.Component);l.childContextTypes=((n={})[a]=s.a.object.isRequired,n);var f=function(e){function n(){var t;return(t=e.apply(this,arguments)||this).state={value:t.getValue()},t.onUpdate=function(e,n){0!==((0|t.observedBits)&n)&&t.setState({value:t.getValue()})},t}Object(o.a)(n,e);var r=n.prototype;return r.componentWillReceiveProps=function(t){var e=t.observedBits;this.observedBits=void 0===e||null===e?1073741823:e},r.componentDidMount=function(){this.context[a]&&this.context[a].on(this.onUpdate);var t=this.props.observedBits;this.observedBits=void 0===t||null===t?1073741823:t},r.componentWillUnmount=function(){this.context[a]&&this.context[a].off(this.onUpdate)},r.getValue=function(){return this.context[a]?this.context[a].get():t},r.render=function(){return(t=this.props.children,Array.isArray(t)?t[0]:t)(this.state.value);var t},n}(r.Component);return f.contextTypes=((i={})[a]=s.a.object,i),{Provider:l,Consumer:f}};e.a=l}).call(this,n(19))},function(t,e,n){var r=n(66);t.exports=p,t.exports.parse=o,t.exports.compile=function(t,e){return s(o(t,e),e)},t.exports.tokensToFunction=s,t.exports.tokensToRegExp=h;var i=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function o(t,e){for(var n,r=[],o=0,a=0,s="",l=e&&e.delimiter||"/";null!=(n=i.exec(t));){var f=n[0],h=n[1],p=n.index;if(s+=t.slice(a,p),a=p+f.length,h)s+=h[1];else{var d=t[a],v=n[2],y=n[3],m=n[4],g=n[5],b=n[6],w=n[7];s&&(r.push(s),s="");var E=null!=v&&null!=d&&d!==v,_="+"===b||"*"===b,T="?"===b||"*"===b,I=n[2]||l,S=m||g;r.push({name:y||o++,prefix:v||"",delimiter:I,optional:T,repeat:_,partial:E,asterisk:!!w,pattern:S?c(S):w?".*":"[^"+u(I)+"]+?"})}}return a=(null!==r&&void 0!==r?r:e.logLevel)&&t({level:o[n].toLowerCase(),message:s,args:i,type:e.name})}},r=0,i=a;r>>((3&e)<<3)&255;return i}}},function(t,e){for(var n=[],r=0;r<256;++r)n[r]=(r+256).toString(16).substr(1);t.exports=function(t,e){var r=e||0,i=n;return[i[t[r++]],i[t[r++]],i[t[r++]],i[t[r++]],"-",i[t[r++]],i[t[r++]],"-",i[t[r++]],i[t[r++]],"-",i[t[r++]],i[t[r++]],"-",i[t[r++]],i[t[r++]],i[t[r++]],i[t[r++]],i[t[r++]],i[t[r++]]].join("")}},,function(t,e,n){"use strict";var r=n(32),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function u(t){return r.isMemo(t)?a:s[t.$$typeof]||i}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var c=Object.defineProperty,l=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,h=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,d=Object.prototype;t.exports=function t(e,n,r){if("string"!==typeof n){if(d){var i=p(n);i&&i!==d&&t(e,i,r)}var a=l(n);f&&(a=a.concat(f(n)));for(var s=u(e),v=u(n),y=0;yO.length&&O.push(t)}function D(t,e,n){return null==t?0:function t(e,n,r,i){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var u=!1;if(null===e)u=!0;else switch(s){case"string":case"number":u=!0;break;case"object":switch(e.$$typeof){case o:case a:u=!0}}if(u)return r(i,e,""===n?"."+R(e,0):n),1;if(u=0,n=""===n?".":n+":",Array.isArray(e))for(var c=0;ce}return!1}(e,n,i,r)&&(n=null),r||null===i?function(t){return!!q.call(H,t)||!q.call(G,t)&&(B.test(t)?H[t]=!0:(G[t]=!0,!1))}(e)&&(null===n?t.removeAttribute(e):t.setAttribute(e,""+n)):i.mustUseProperty?t[i.propertyName]=null===n?3!==i.type&&"":n:(e=i.attributeName,r=i.attributeNamespace,null===n?t.removeAttribute(e):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?t.setAttributeNS(r,e,n):t.setAttribute(e,n))))}X.hasOwnProperty("ReactCurrentDispatcher")||(X.ReactCurrentDispatcher={current:null}),X.hasOwnProperty("ReactCurrentBatchConfig")||(X.ReactCurrentBatchConfig={suspense:null});var J=/^(.*)[\\\/]/,Z="function"===typeof Symbol&&Symbol.for,tt=Z?Symbol.for("react.element"):60103,et=Z?Symbol.for("react.portal"):60106,nt=Z?Symbol.for("react.fragment"):60107,rt=Z?Symbol.for("react.strict_mode"):60108,it=Z?Symbol.for("react.profiler"):60114,ot=Z?Symbol.for("react.provider"):60109,at=Z?Symbol.for("react.context"):60110,st=Z?Symbol.for("react.concurrent_mode"):60111,ut=Z?Symbol.for("react.forward_ref"):60112,ct=Z?Symbol.for("react.suspense"):60113,lt=Z?Symbol.for("react.suspense_list"):60120,ft=Z?Symbol.for("react.memo"):60115,ht=Z?Symbol.for("react.lazy"):60116,pt=Z?Symbol.for("react.block"):60121,dt="function"===typeof Symbol&&Symbol.iterator;function vt(t){return null===t||"object"!==typeof t?null:"function"===typeof(t=dt&&t[dt]||t["@@iterator"])?t:null}function yt(t){if(null==t)return null;if("function"===typeof t)return t.displayName||t.name||null;if("string"===typeof t)return t;switch(t){case nt:return"Fragment";case et:return"Portal";case it:return"Profiler";case rt:return"StrictMode";case ct:return"Suspense";case lt:return"SuspenseList"}if("object"===typeof t)switch(t.$$typeof){case at:return"Context.Consumer";case ot:return"Context.Provider";case ut:var e=t.render;return e=e.displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case ft:return yt(t.type);case pt:return yt(t.render);case ht:if(t=1===t._status?t._result:null)return yt(t)}return null}function mt(t){var e="";do{t:switch(t.tag){case 3:case 4:case 6:case 7:case 10:case 9:var n="";break t;default:var r=t._debugOwner,i=t._debugSource,o=yt(t.type);n=null,r&&(n=yt(r.type)),r=o,o="",i?o=" (at "+i.fileName.replace(J,"")+":"+i.lineNumber+")":n&&(o=" (created by "+n+")"),n="\n in "+(r||"Unknown")+o}e+=n,t=t.return}while(t);return e}function gt(t){switch(typeof t){case"boolean":case"number":case"object":case"string":case"undefined":return t;default:return""}}function bt(t){var e=t.type;return(t=t.nodeName)&&"input"===t.toLowerCase()&&("checkbox"===e||"radio"===e)}function wt(t){t._valueTracker||(t._valueTracker=function(t){var e=bt(t)?"checked":"value",n=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),r=""+t[e];if(!t.hasOwnProperty(e)&&"undefined"!==typeof n&&"function"===typeof n.get&&"function"===typeof n.set){var i=n.get,o=n.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return i.call(this)},set:function(t){r=""+t,o.call(this,t)}}),Object.defineProperty(t,e,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(t){r=""+t},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}(t))}function Et(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),r="";return t&&(r=bt(t)?t.checked?"true":"false":t.value),(t=r)!==n&&(e.setValue(t),!0)}function _t(t,e){var n=e.checked;return i({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:t._wrapperState.initialChecked})}function Tt(t,e){var n=null==e.defaultValue?"":e.defaultValue,r=null!=e.checked?e.checked:e.defaultChecked;n=gt(null!=e.value?e.value:n),t._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===e.type||"radio"===e.type?null!=e.checked:null!=e.value}}function It(t,e){null!=(e=e.checked)&&Y(t,"checked",e,!1)}function St(t,e){It(t,e);var n=gt(e.value),r=e.type;if(null!=n)"number"===r?(0===n&&""===t.value||t.value!=n)&&(t.value=""+n):t.value!==""+n&&(t.value=""+n);else if("submit"===r||"reset"===r)return void t.removeAttribute("value");e.hasOwnProperty("value")?xt(t,e.type,n):e.hasOwnProperty("defaultValue")&&xt(t,e.type,gt(e.defaultValue)),null==e.checked&&null!=e.defaultChecked&&(t.defaultChecked=!!e.defaultChecked)}function kt(t,e,n){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var r=e.type;if(!("submit"!==r&&"reset"!==r||void 0!==e.value&&null!==e.value))return;e=""+t._wrapperState.initialValue,n||e===t.value||(t.value=e),t.defaultValue=e}""!==(n=t.name)&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,""!==n&&(t.name=n)}function xt(t,e,n){"number"===e&&t.ownerDocument.activeElement===t||(null==n?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+n&&(t.defaultValue=""+n))}function Nt(t,e){return t=i({children:void 0},e),(e=function(t){var e="";return r.Children.forEach(t,(function(t){null!=t&&(e+=t)})),e}(e.children))&&(t.children=e),t}function At(t,e,n,r){if(t=t.options,e){e={};for(var i=0;i=n.length))throw Error(a(93));n=n[0]}e=n}null==e&&(e=""),n=e}t._wrapperState={initialValue:gt(n)}}function Pt(t,e){var n=gt(e.value),r=gt(e.defaultValue);null!=n&&((n=""+n)!==t.value&&(t.value=n),null==e.defaultValue&&t.defaultValue!==n&&(t.defaultValue=n)),null!=r&&(t.defaultValue=""+r)}function Dt(t){var e=t.textContent;e===t._wrapperState.initialValue&&""!==e&&null!==e&&(t.value=e)}var Rt="http://www.w3.org/1999/xhtml",Lt="http://www.w3.org/2000/svg";function jt(t){switch(t){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Mt(t,e){return null==t||"http://www.w3.org/1999/xhtml"===t?jt(e):"http://www.w3.org/2000/svg"===t&&"foreignObject"===e?"http://www.w3.org/1999/xhtml":t}var Ut,Ft=function(t){return"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,n,r,i){MSApp.execUnsafeLocalFunction((function(){return t(e,n)}))}:t}((function(t,e){if(t.namespaceURI!==Lt||"innerHTML"in t)t.innerHTML=e;else{for((Ut=Ut||document.createElement("div")).innerHTML="",e=Ut.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}}));function Vt(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&3===n.nodeType)return void(n.nodeValue=e)}t.textContent=e}function zt(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var Bt={animationend:zt("Animation","AnimationEnd"),animationiteration:zt("Animation","AnimationIteration"),animationstart:zt("Animation","AnimationStart"),transitionend:zt("Transition","TransitionEnd")},qt={},Gt={};function Ht(t){if(qt[t])return qt[t];if(!Bt[t])return t;var e,n=Bt[t];for(e in n)if(n.hasOwnProperty(e)&&e in Gt)return qt[t]=n[e];return t}x&&(Gt=document.createElement("div").style,"AnimationEvent"in window||(delete Bt.animationend.animation,delete Bt.animationiteration.animation,delete Bt.animationstart.animation),"TransitionEvent"in window||delete Bt.transitionend.transition);var Wt=Ht("animationend"),Kt=Ht("animationiteration"),$t=Ht("animationstart"),Qt=Ht("transitionend"),Xt="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Yt=new("function"===typeof WeakMap?WeakMap:Map);function Jt(t){var e=Yt.get(t);return void 0===e&&(e=new Map,Yt.set(t,e)),e}function Zt(t){var e=t,n=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do{0!==(1026&(e=t).effectTag)&&(n=e.return),t=e.return}while(t)}return 3===e.tag?n:null}function te(t){if(13===t.tag){var e=t.memoizedState;if(null===e&&(null!==(t=t.alternate)&&(e=t.memoizedState)),null!==e)return e.dehydrated}return null}function ee(t){if(Zt(t)!==t)throw Error(a(188))}function ne(t){if(!(t=function(t){var e=t.alternate;if(!e){if(null===(e=Zt(t)))throw Error(a(188));return e!==t?null:t}for(var n=t,r=e;;){var i=n.return;if(null===i)break;var o=i.alternate;if(null===o){if(null!==(r=i.return)){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return ee(i),t;if(o===r)return ee(i),e;o=o.sibling}throw Error(a(188))}if(n.return!==r.return)n=i,r=o;else{for(var s=!1,u=i.child;u;){if(u===n){s=!0,n=i,r=o;break}if(u===r){s=!0,r=i,n=o;break}u=u.sibling}if(!s){for(u=o.child;u;){if(u===n){s=!0,n=o,r=i;break}if(u===r){s=!0,r=o,n=i;break}u=u.sibling}if(!s)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(3!==n.tag)throw Error(a(188));return n.stateNode.current===n?t:e}(t)))return null;for(var e=t;;){if(5===e.tag||6===e.tag)return e;if(e.child)e.child.return=e,e=e.child;else{if(e===t)break;for(;!e.sibling;){if(!e.return||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}}return null}function re(t,e){if(null==e)throw Error(a(30));return null==t?e:Array.isArray(t)?Array.isArray(e)?(t.push.apply(t,e),t):(t.push(e),t):Array.isArray(e)?[t].concat(e):[t,e]}function ie(t,e,n){Array.isArray(t)?t.forEach(e,n):t&&e.call(n,t)}var oe=null;function ae(t){if(t){var e=t._dispatchListeners,n=t._dispatchInstances;if(Array.isArray(e))for(var r=0;rle.length&&le.push(t)}function he(t,e,n,r){if(le.length){var i=le.pop();return i.topLevelType=t,i.eventSystemFlags=r,i.nativeEvent=e,i.targetInst=n,i}return{topLevelType:t,eventSystemFlags:r,nativeEvent:e,targetInst:n,ancestors:[]}}function pe(t){var e=t.targetInst,n=e;do{if(!n){t.ancestors.push(n);break}var r=n;if(3===r.tag)r=r.stateNode.containerInfo;else{for(;r.return;)r=r.return;r=3!==r.tag?null:r.stateNode.containerInfo}if(!r)break;5!==(e=n.tag)&&6!==e||t.ancestors.push(n),n=xn(r)}while(n);for(n=0;n=e)return{node:r,offset:e-t};t=n}t:{for(;r;){if(r.nextSibling){r=r.nextSibling;break t}r=r.parentNode}r=void 0}r=fn(r)}}function pn(){for(var t=window,e=ln();e instanceof t.HTMLIFrameElement;){try{var n="string"===typeof e.contentWindow.location.href}catch(r){n=!1}if(!n)break;e=ln((t=e.contentWindow).document)}return e}function dn(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&("input"===e&&("text"===t.type||"search"===t.type||"tel"===t.type||"url"===t.type||"password"===t.type)||"textarea"===e||"true"===t.contentEditable)}var vn=null,yn=null;function mn(t,e){switch(t){case"button":case"input":case"select":case"textarea":return!!e.autoFocus}return!1}function gn(t,e){return"textarea"===t||"option"===t||"noscript"===t||"string"===typeof e.children||"number"===typeof e.children||"object"===typeof e.dangerouslySetInnerHTML&&null!==e.dangerouslySetInnerHTML&&null!=e.dangerouslySetInnerHTML.__html}var bn="function"===typeof setTimeout?setTimeout:void 0,wn="function"===typeof clearTimeout?clearTimeout:void 0;function En(t){for(;null!=t;t=t.nextSibling){var e=t.nodeType;if(1===e||3===e)break}return t}function _n(t){t=t.previousSibling;for(var e=0;t;){if(8===t.nodeType){var n=t.data;if("$"===n||"$!"===n||"$?"===n){if(0===e)return t;e--}else"/$"===n&&e++}t=t.previousSibling}return null}var Tn=Math.random().toString(36).slice(2),In="__reactInternalInstance$"+Tn,Sn="__reactEventHandlers$"+Tn,kn="__reactContainere$"+Tn;function xn(t){var e=t[In];if(e)return e;for(var n=t.parentNode;n;){if(e=n[kn]||n[In]){if(n=e.alternate,null!==e.child||null!==n&&null!==n.child)for(t=_n(t);null!==t;){if(n=t[In])return n;t=_n(t)}return e}n=(t=n).parentNode}return null}function Nn(t){return!(t=t[In]||t[kn])||5!==t.tag&&6!==t.tag&&13!==t.tag&&3!==t.tag?null:t}function An(t){if(5===t.tag||6===t.tag)return t.stateNode;throw Error(a(33))}function On(t){return t[Sn]||null}function Cn(t){do{t=t.return}while(t&&5!==t.tag);return t||null}function Pn(t,e){var n=t.stateNode;if(!n)return null;var r=d(n);if(!r)return null;n=r[e];t:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(t=t.type)||"input"===t||"select"===t||"textarea"===t)),t=!r;break t;default:t=!1}if(t)return null;if(n&&"function"!==typeof n)throw Error(a(231,e,typeof n));return n}function Dn(t,e,n){(e=Pn(t,n.dispatchConfig.phasedRegistrationNames[e]))&&(n._dispatchListeners=re(n._dispatchListeners,e),n._dispatchInstances=re(n._dispatchInstances,t))}function Rn(t){if(t&&t.dispatchConfig.phasedRegistrationNames){for(var e=t._targetInst,n=[];e;)n.push(e),e=Cn(e);for(e=n.length;0this.eventPool.length&&this.eventPool.push(t)}function Kn(t){t.eventPool=[],t.getPooled=Hn,t.release=Wn}i(Gn.prototype,{preventDefault:function(){this.defaultPrevented=!0;var t=this.nativeEvent;t&&(t.preventDefault?t.preventDefault():"unknown"!==typeof t.returnValue&&(t.returnValue=!1),this.isDefaultPrevented=Bn)},stopPropagation:function(){var t=this.nativeEvent;t&&(t.stopPropagation?t.stopPropagation():"unknown"!==typeof t.cancelBubble&&(t.cancelBubble=!0),this.isPropagationStopped=Bn)},persist:function(){this.isPersistent=Bn},isPersistent:qn,destructor:function(){var t,e=this.constructor.Interface;for(t in e)this[t]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=qn,this._dispatchInstances=this._dispatchListeners=null}}),Gn.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},Gn.extend=function(t){function e(){}function n(){return r.apply(this,arguments)}var r=this;e.prototype=r.prototype;var o=new e;return i(o,n.prototype),n.prototype=o,n.prototype.constructor=n,n.Interface=i({},r.Interface,t),n.extend=r.extend,Kn(n),n},Kn(Gn);var $n=Gn.extend({data:null}),Qn=Gn.extend({data:null}),Xn=[9,13,27,32],Yn=x&&"CompositionEvent"in window,Jn=null;x&&"documentMode"in document&&(Jn=document.documentMode);var Zn=x&&"TextEvent"in window&&!Jn,tr=x&&(!Yn||Jn&&8=Jn),er=String.fromCharCode(32),nr={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},rr=!1;function ir(t,e){switch(t){case"keyup":return-1!==Xn.indexOf(e.keyCode);case"keydown":return 229!==e.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function or(t){return"object"===typeof(t=t.detail)&&"data"in t?t.data:null}var ar=!1;var sr={eventTypes:nr,extractEvents:function(t,e,n,r){var i;if(Yn)t:{switch(t){case"compositionstart":var o=nr.compositionStart;break t;case"compositionend":o=nr.compositionEnd;break t;case"compositionupdate":o=nr.compositionUpdate;break t}o=void 0}else ar?ir(t,n)&&(o=nr.compositionEnd):"keydown"===t&&229===n.keyCode&&(o=nr.compositionStart);return o?(tr&&"ko"!==n.locale&&(ar||o!==nr.compositionStart?o===nr.compositionEnd&&ar&&(i=zn()):(Fn="value"in(Un=r)?Un.value:Un.textContent,ar=!0)),o=$n.getPooled(o,e,n,r),i?o.data=i:null!==(i=or(n))&&(o.data=i),Mn(o),i=o):i=null,(t=Zn?function(t,e){switch(t){case"compositionend":return or(e);case"keypress":return 32!==e.which?null:(rr=!0,er);case"textInput":return(t=e.data)===er&&rr?null:t;default:return null}}(t,n):function(t,e){if(ar)return"compositionend"===t||!Yn&&ir(t,e)?(t=zn(),Vn=Fn=Un=null,ar=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1=document.documentMode,zr={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},Br=null,qr=null,Gr=null,Hr=!1;function Wr(t,e){var n=e.window===e?e.document:9===e.nodeType?e:e.ownerDocument;return Hr||null==Br||Br!==ln(n)?null:("selectionStart"in(n=Br)&&dn(n)?n={start:n.selectionStart,end:n.selectionEnd}:n={anchorNode:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset},Gr&&Fr(Gr,n)?null:(Gr=n,(t=Gn.getPooled(zr.select,qr,t,e)).type="select",t.target=Br,Mn(t),t))}var Kr={eventTypes:zr,extractEvents:function(t,e,n,r,i,o){if(!(o=!(i=o||(r.window===r?r.document:9===r.nodeType?r:r.ownerDocument)))){t:{i=Jt(i),o=S.onSelect;for(var a=0;asi||(t.current=ai[si],ai[si]=null,si--)}function ci(t,e){si++,ai[si]=t.current,t.current=e}var li={},fi={current:li},hi={current:!1},pi=li;function di(t,e){var n=t.type.contextTypes;if(!n)return li;var r=t.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===e)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=e[i];return r&&((t=t.stateNode).__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=o),o}function vi(t){return null!==(t=t.childContextTypes)&&void 0!==t}function yi(){ui(hi),ui(fi)}function mi(t,e,n){if(fi.current!==li)throw Error(a(168));ci(fi,e),ci(hi,n)}function gi(t,e,n){var r=t.stateNode;if(t=e.childContextTypes,"function"!==typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in t))throw Error(a(108,yt(e)||"Unknown",o));return i({},n,{},r)}function bi(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||li,pi=fi.current,ci(fi,t),ci(hi,hi.current),!0}function wi(t,e,n){var r=t.stateNode;if(!r)throw Error(a(169));n?(t=gi(t,e,pi),r.__reactInternalMemoizedMergedChildContext=t,ui(hi),ui(fi),ci(fi,t)):ui(hi),ci(hi,n)}var Ei=o.unstable_runWithPriority,_i=o.unstable_scheduleCallback,Ti=o.unstable_cancelCallback,Ii=o.unstable_requestPaint,Si=o.unstable_now,ki=o.unstable_getCurrentPriorityLevel,xi=o.unstable_ImmediatePriority,Ni=o.unstable_UserBlockingPriority,Ai=o.unstable_NormalPriority,Oi=o.unstable_LowPriority,Ci=o.unstable_IdlePriority,Pi={},Di=o.unstable_shouldYield,Ri=void 0!==Ii?Ii:function(){},Li=null,ji=null,Mi=!1,Ui=Si(),Fi=1e4>Ui?Si:function(){return Si()-Ui};function Vi(){switch(ki()){case xi:return 99;case Ni:return 98;case Ai:return 97;case Oi:return 96;case Ci:return 95;default:throw Error(a(332))}}function zi(t){switch(t){case 99:return xi;case 98:return Ni;case 97:return Ai;case 96:return Oi;case 95:return Ci;default:throw Error(a(332))}}function Bi(t,e){return t=zi(t),Ei(t,e)}function qi(t,e,n){return t=zi(t),_i(t,e,n)}function Gi(t){return null===Li?(Li=[t],ji=_i(xi,Wi)):Li.push(t),Pi}function Hi(){if(null!==ji){var t=ji;ji=null,Ti(t)}Wi()}function Wi(){if(!Mi&&null!==Li){Mi=!0;var t=0;try{var e=Li;Bi(99,(function(){for(;t=e&&(Oa=!0),t.firstContext=null)}function ro(t,e){if(Ji!==t&&!1!==e&&0!==e)if("number"===typeof e&&1073741823!==e||(Ji=t,e=1073741823),e={context:t,observedBits:e,next:null},null===Yi){if(null===Xi)throw Error(a(308));Yi=e,Xi.dependencies={expirationTime:0,firstContext:e,responders:null}}else Yi=Yi.next=e;return t._currentValue}var io=!1;function oo(t){t.updateQueue={baseState:t.memoizedState,baseQueue:null,shared:{pending:null},effects:null}}function ao(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,baseQueue:t.baseQueue,shared:t.shared,effects:t.effects})}function so(t,e){return(t={expirationTime:t,suspenseConfig:e,tag:0,payload:null,callback:null,next:null}).next=t}function uo(t,e){if(null!==(t=t.updateQueue)){var n=(t=t.shared).pending;null===n?e.next=e:(e.next=n.next,n.next=e),t.pending=e}}function co(t,e){var n=t.alternate;null!==n&&ao(n,t),null===(n=(t=t.updateQueue).baseQueue)?(t.baseQueue=e.next=e,e.next=e):(e.next=n.next,n.next=e)}function lo(t,e,n,r){var o=t.updateQueue;io=!1;var a=o.baseQueue,s=o.shared.pending;if(null!==s){if(null!==a){var u=a.next;a.next=s.next,s.next=u}a=s,o.shared.pending=null,null!==(u=t.alternate)&&(null!==(u=u.updateQueue)&&(u.baseQueue=s))}if(null!==a){u=a.next;var c=o.baseState,l=0,f=null,h=null,p=null;if(null!==u)for(var d=u;;){if((s=d.expirationTime)l&&(l=s)}else{null!==p&&(p=p.next={expirationTime:1073741823,suspenseConfig:d.suspenseConfig,tag:d.tag,payload:d.payload,callback:d.callback,next:null}),ou(s,d.suspenseConfig);t:{var y=t,m=d;switch(s=e,v=n,m.tag){case 1:if("function"===typeof(y=m.payload)){c=y.call(v,c,s);break t}c=y;break t;case 3:y.effectTag=-4097&y.effectTag|64;case 0:if(null===(s="function"===typeof(y=m.payload)?y.call(v,c,s):y)||void 0===s)break t;c=i({},c,s);break t;case 2:io=!0}}null!==d.callback&&(t.effectTag|=32,null===(s=o.effects)?o.effects=[d]:s.push(d))}if(null===(d=d.next)||d===u){if(null===(s=o.shared.pending))break;d=a.next=s.next,s.next=u,o.baseQueue=a=s,o.shared.pending=null}}null===p?f=c:p.next=h,o.baseState=f,o.baseQueue=p,au(l),t.expirationTime=l,t.memoizedState=c}}function fo(t,e,n){if(t=e.effects,e.effects=null,null!==t)for(e=0;ev?(y=f,f=null):y=f.sibling;var m=p(i,f,s[v],u);if(null===m){null===f&&(f=y);break}t&&f&&null===m.alternate&&e(i,f),a=o(m,a,v),null===l?c=m:l.sibling=m,l=m,f=y}if(v===s.length)return n(i,f),c;if(null===f){for(;vy?(m=v,v=null):m=v.sibling;var b=p(i,v,g.value,c);if(null===b){null===v&&(v=m);break}t&&v&&null===b.alternate&&e(i,v),s=o(b,s,y),null===f?l=b:f.sibling=b,f=b,v=m}if(g.done)return n(i,v),l;if(null===v){for(;!g.done;y++,g=u.next())null!==(g=h(i,g.value,c))&&(s=o(g,s,y),null===f?l=g:f.sibling=g,f=g);return l}for(v=r(i,v);!g.done;y++,g=u.next())null!==(g=d(v,i,y,g.value,c))&&(t&&null!==g.alternate&&v.delete(null===g.key?y:g.key),s=o(g,s,y),null===f?l=g:f.sibling=g,f=g);return t&&v.forEach((function(t){return e(i,t)})),l}return function(t,r,o,u){var c="object"===typeof o&&null!==o&&o.type===nt&&null===o.key;c&&(o=o.props.children);var l="object"===typeof o&&null!==o;if(l)switch(o.$$typeof){case tt:t:{for(l=o.key,c=r;null!==c;){if(c.key===l){switch(c.tag){case 7:if(o.type===nt){n(t,c.sibling),(r=i(c,o.props.children)).return=t,t=r;break t}break;default:if(c.elementType===o.type){n(t,c.sibling),(r=i(c,o.props)).ref=_o(t,c,o),r.return=t,t=r;break t}}n(t,c);break}e(t,c),c=c.sibling}o.type===nt?((r=Nu(o.props.children,t.mode,u,o.key)).return=t,t=r):((u=xu(o.type,o.key,o.props,null,t.mode,u)).ref=_o(t,r,o),u.return=t,t=u)}return s(t);case et:t:{for(c=o.key;null!==r;){if(r.key===c){if(4===r.tag&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(t,r.sibling),(r=i(r,o.children||[])).return=t,t=r;break t}n(t,r);break}e(t,r),r=r.sibling}(r=Ou(o,t.mode,u)).return=t,t=r}return s(t)}if("string"===typeof o||"number"===typeof o)return o=""+o,null!==r&&6===r.tag?(n(t,r.sibling),(r=i(r,o)).return=t,t=r):(n(t,r),(r=Au(o,t.mode,u)).return=t,t=r),s(t);if(Eo(o))return v(t,r,o,u);if(vt(o))return y(t,r,o,u);if(l&&To(t,o),"undefined"===typeof o&&!c)switch(t.tag){case 1:case 0:throw t=t.type,Error(a(152,t.displayName||t.name||"Component"))}return n(t,r)}}var So=Io(!0),ko=Io(!1),xo={},No={current:xo},Ao={current:xo},Oo={current:xo};function Co(t){if(t===xo)throw Error(a(174));return t}function Po(t,e){switch(ci(Oo,e),ci(Ao,t),ci(No,xo),t=e.nodeType){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:Mt(null,"");break;default:e=Mt(e=(t=8===t?e.parentNode:e).namespaceURI||null,t=t.tagName)}ui(No),ci(No,e)}function Do(){ui(No),ui(Ao),ui(Oo)}function Ro(t){Co(Oo.current);var e=Co(No.current),n=Mt(e,t.type);e!==n&&(ci(Ao,t),ci(No,n))}function Lo(t){Ao.current===t&&(ui(No),ui(Ao))}var jo={current:0};function Mo(t){for(var e=t;null!==e;){if(13===e.tag){var n=e.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return e}else if(19===e.tag&&void 0!==e.memoizedProps.revealOrder){if(0!==(64&e.effectTag))return e}else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break;for(;null===e.sibling;){if(null===e.return||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}function Uo(t,e){return{responder:t,props:e}}var Fo=X.ReactCurrentDispatcher,Vo=X.ReactCurrentBatchConfig,zo=0,Bo=null,qo=null,Go=null,Ho=!1;function Wo(){throw Error(a(321))}function Ko(t,e){if(null===e)return!1;for(var n=0;no))throw Error(a(301));o+=1,Go=qo=null,e.updateQueue=null,Fo.current=ba,t=n(r,i)}while(e.expirationTime===zo)}if(Fo.current=ya,e=null!==qo&&null!==qo.next,zo=0,Go=qo=Bo=null,Ho=!1,e)throw Error(a(300));return t}function Qo(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Go?Bo.memoizedState=Go=t:Go=Go.next=t,Go}function Xo(){if(null===qo){var t=Bo.alternate;t=null!==t?t.memoizedState:null}else t=qo.next;var e=null===Go?Bo.memoizedState:Go.next;if(null!==e)Go=e,qo=t;else{if(null===t)throw Error(a(310));t={memoizedState:(qo=t).memoizedState,baseState:qo.baseState,baseQueue:qo.baseQueue,queue:qo.queue,next:null},null===Go?Bo.memoizedState=Go=t:Go=Go.next=t}return Go}function Yo(t,e){return"function"===typeof e?e(t):e}function Jo(t){var e=Xo(),n=e.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=t;var r=qo,i=r.baseQueue,o=n.pending;if(null!==o){if(null!==i){var s=i.next;i.next=o.next,o.next=s}r.baseQueue=i=o,n.pending=null}if(null!==i){i=i.next,r=r.baseState;var u=s=o=null,c=i;do{var l=c.expirationTime;if(lBo.expirationTime&&(Bo.expirationTime=l,au(l))}else null!==u&&(u=u.next={expirationTime:1073741823,suspenseConfig:c.suspenseConfig,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null}),ou(l,c.suspenseConfig),r=c.eagerReducer===t?c.eagerState:t(r,c.action);c=c.next}while(null!==c&&c!==i);null===u?o=r:u.next=s,Mr(r,e.memoizedState)||(Oa=!0),e.memoizedState=r,e.baseState=o,e.baseQueue=u,n.lastRenderedState=r}return[e.memoizedState,n.dispatch]}function Zo(t){var e=Xo(),n=e.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=t;var r=n.dispatch,i=n.pending,o=e.memoizedState;if(null!==i){n.pending=null;var s=i=i.next;do{o=t(o,s.action),s=s.next}while(s!==i);Mr(o,e.memoizedState)||(Oa=!0),e.memoizedState=o,null===e.baseQueue&&(e.baseState=o),n.lastRenderedState=o}return[o,r]}function ta(t){var e=Qo();return"function"===typeof t&&(t=t()),e.memoizedState=e.baseState=t,t=(t=e.queue={pending:null,dispatch:null,lastRenderedReducer:Yo,lastRenderedState:t}).dispatch=va.bind(null,Bo,t),[e.memoizedState,t]}function ea(t,e,n,r){return t={tag:t,create:e,destroy:n,deps:r,next:null},null===(e=Bo.updateQueue)?(e={lastEffect:null},Bo.updateQueue=e,e.lastEffect=t.next=t):null===(n=e.lastEffect)?e.lastEffect=t.next=t:(r=n.next,n.next=t,t.next=r,e.lastEffect=t),t}function na(){return Xo().memoizedState}function ra(t,e,n,r){var i=Qo();Bo.effectTag|=t,i.memoizedState=ea(1|e,n,void 0,void 0===r?null:r)}function ia(t,e,n,r){var i=Xo();r=void 0===r?null:r;var o=void 0;if(null!==qo){var a=qo.memoizedState;if(o=a.destroy,null!==r&&Ko(r,a.deps))return void ea(e,n,o,r)}Bo.effectTag|=t,i.memoizedState=ea(1|e,n,o,r)}function oa(t,e){return ra(516,4,t,e)}function aa(t,e){return ia(516,4,t,e)}function sa(t,e){return ia(4,2,t,e)}function ua(t,e){return"function"===typeof e?(t=t(),e(t),function(){e(null)}):null!==e&&void 0!==e?(t=t(),e.current=t,function(){e.current=null}):void 0}function ca(t,e,n){return n=null!==n&&void 0!==n?n.concat([t]):null,ia(4,2,ua.bind(null,e,t),n)}function la(){}function fa(t,e){return Qo().memoizedState=[t,void 0===e?null:e],t}function ha(t,e){var n=Xo();e=void 0===e?null:e;var r=n.memoizedState;return null!==r&&null!==e&&Ko(e,r[1])?r[0]:(n.memoizedState=[t,e],t)}function pa(t,e){var n=Xo();e=void 0===e?null:e;var r=n.memoizedState;return null!==r&&null!==e&&Ko(e,r[1])?r[0]:(t=t(),n.memoizedState=[t,e],t)}function da(t,e,n){var r=Vi();Bi(98>r?98:r,(function(){t(!0)})),Bi(97<\/script>",t=t.removeChild(t.firstChild)):"string"===typeof r.is?t=u.createElement(o,{is:r.is}):(t=u.createElement(o),"select"===o&&(u=t,r.multiple?u.multiple=!0:r.size&&(u.size=r.size))):t=u.createElementNS(t,o),t[In]=e,t[Sn]=r,Va(t,e),e.stateNode=t,u=an(o,r),o){case"iframe":case"object":case"embed":Ke("load",t),c=r;break;case"video":case"audio":for(c=0;cr.tailExpiration&&1e)&&Bs.set(t,e))}}function Qs(t,e){t.expirationTime=(t=n>(t=t.nextKnownPendingLevel)?n:t)&&e!==t?0:t}function Ys(t){if(0!==t.lastExpiredTime)t.callbackExpirationTime=1073741823,t.callbackPriority=99,t.callbackNode=Gi(Zs.bind(null,t));else{var e=Xs(t),n=t.callbackNode;if(0===e)null!==n&&(t.callbackNode=null,t.callbackExpirationTime=0,t.callbackPriority=90);else{var r=Ws();if(1073741823===e?r=99:1===e||2===e?r=95:r=0>=(r=10*(1073741821-e)-10*(1073741821-r))?99:250>=r?98:5250>=r?97:95,null!==n){var i=t.callbackPriority;if(t.callbackExpirationTime===e&&i>=r)return;n!==Pi&&Ti(n)}t.callbackExpirationTime=e,t.callbackPriority=r,e=1073741823===e?Gi(Zs.bind(null,t)):qi(r,Js.bind(null,t),{timeout:10*(1073741821-e)-Fi()}),t.callbackNode=e}}}function Js(t,e){if(Hs=0,e)return Lu(t,e=Ws()),Ys(t),null;var n=Xs(t);if(0!==n){if(e=t.callbackNode,0!==(48&Ts))throw Error(a(327));if(vu(),t===Is&&n===ks||nu(t,n),null!==Ss){var r=Ts;Ts|=16;for(var i=iu();;)try{uu();break}catch(u){ru(t,u)}if(Zi(),Ts=r,gs.current=i,1===xs)throw e=Ns,nu(t,n),Du(t,n),Ys(t),e;if(null===Ss)switch(i=t.finishedWork=t.current.alternate,t.finishedExpirationTime=n,r=xs,Is=null,r){case ws:case 1:throw Error(a(345));case 2:Lu(t,2=n){t.lastPingedTime=n,nu(t,n);break}}if(0!==(o=Xs(t))&&o!==n)break;if(0!==r&&r!==n){t.lastPingedTime=r;break}t.timeoutHandle=bn(hu.bind(null,t),i);break}hu(t);break;case _s:if(Du(t,n),n===(r=t.lastSuspendedTime)&&(t.nextKnownPendingLevel=fu(i)),Ds&&(0===(i=t.lastPingedTime)||i>=n)){t.lastPingedTime=n,nu(t,n);break}if(0!==(i=Xs(t))&&i!==n)break;if(0!==r&&r!==n){t.lastPingedTime=r;break}if(1073741823!==Os?r=10*(1073741821-Os)-Fi():1073741823===As?r=0:(r=10*(1073741821-As)-5e3,0>(r=(i=Fi())-r)&&(r=0),(n=10*(1073741821-n)-i)<(r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*ms(r/1960))-r)&&(r=n)),10=(r=0|s.busyMinDurationMs)?r=0:(i=0|s.busyDelayMs,r=(o=Fi()-(10*(1073741821-o)-(0|s.timeoutMs||5e3)))<=i?0:i+r-o),10 component higher in the tree to provide a loading indicator or placeholder to display."+mt(a))}5!==xs&&(xs=2),s=Ja(s,a),f=o;do{switch(f.tag){case 3:u=s,f.effectTag|=4096,f.expirationTime=e,co(f,ds(f,u,e));break t;case 1:u=s;var w=f.type,E=f.stateNode;if(0===(64&f.effectTag)&&("function"===typeof w.getDerivedStateFromError||null!==E&&"function"===typeof E.componentDidCatch&&(null===Us||!Us.has(E)))){f.effectTag|=4096,f.expirationTime=e,co(f,vs(f,u,e));break t}}f=f.return}while(null!==f)}Ss=lu(Ss)}catch(_){e=_;continue}break}}function iu(){var t=gs.current;return gs.current=ya,null===t?ya:t}function ou(t,e){tPs&&(Ps=t)}function su(){for(;null!==Ss;)Ss=cu(Ss)}function uu(){for(;null!==Ss&&!Di();)Ss=cu(Ss)}function cu(t){var e=ys(t.alternate,t,ks);return t.memoizedProps=t.pendingProps,null===e&&(e=lu(t)),bs.current=null,e}function lu(t){Ss=t;do{var e=Ss.alternate;if(t=Ss.return,0===(2048&Ss.effectTag)){if(e=Xa(e,Ss,ks),1===ks||1!==Ss.childExpirationTime){for(var n=0,r=Ss.child;null!==r;){var i=r.expirationTime,o=r.childExpirationTime;i>n&&(n=i),o>n&&(n=o),r=r.sibling}Ss.childExpirationTime=n}if(null!==e)return e;null!==t&&0===(2048&t.effectTag)&&(null===t.firstEffect&&(t.firstEffect=Ss.firstEffect),null!==Ss.lastEffect&&(null!==t.lastEffect&&(t.lastEffect.nextEffect=Ss.firstEffect),t.lastEffect=Ss.lastEffect),1(t=t.childExpirationTime)?e:t}function hu(t){var e=Vi();return Bi(99,pu.bind(null,t,e)),null}function pu(t,e){do{vu()}while(null!==Vs);if(0!==(48&Ts))throw Error(a(327));var n=t.finishedWork,r=t.finishedExpirationTime;if(null===n)return null;if(t.finishedWork=null,t.finishedExpirationTime=0,n===t.current)throw Error(a(177));t.callbackNode=null,t.callbackExpirationTime=0,t.callbackPriority=90,t.nextKnownPendingLevel=0;var i=fu(n);if(t.firstPendingTime=i,r<=t.lastSuspendedTime?t.firstSuspendedTime=t.lastSuspendedTime=t.nextKnownPendingLevel=0:r<=t.firstSuspendedTime&&(t.firstSuspendedTime=r-1),r<=t.lastPingedTime&&(t.lastPingedTime=0),r<=t.lastExpiredTime&&(t.lastExpiredTime=0),t===Is&&(Ss=Is=null,ks=0),1u&&(l=u,u=s,s=l),l=hn(w,s),f=hn(w,u),l&&f&&(1!==_.rangeCount||_.anchorNode!==l.node||_.anchorOffset!==l.offset||_.focusNode!==f.node||_.focusOffset!==f.offset)&&((E=E.createRange()).setStart(l.node,l.offset),_.removeAllRanges(),s>u?(_.addRange(E),_.extend(f.node,f.offset)):(E.setEnd(f.node,f.offset),_.addRange(E))))),E=[];for(_=w;_=_.parentNode;)1===_.nodeType&&E.push({element:_,left:_.scrollLeft,top:_.scrollTop});for("function"===typeof w.focus&&w.focus(),w=0;w=n?Ga(t,e,n):(ci(jo,1&jo.current),null!==(e=$a(t,e,n))?e.sibling:null);ci(jo,1&jo.current);break;case 19:if(r=e.childExpirationTime>=n,0!==(64&t.effectTag)){if(r)return Ka(t,e,n);e.effectTag|=64}if(null!==(i=e.memoizedState)&&(i.rendering=null,i.tail=null),ci(jo,jo.current),!r)return null}return $a(t,e,n)}Oa=!1}}else Oa=!1;switch(e.expirationTime=0,e.tag){case 2:if(r=e.type,null!==t&&(t.alternate=null,e.alternate=null,e.effectTag|=2),t=e.pendingProps,i=di(e,fi.current),no(e,n),i=$o(null,e,r,t,i,n),e.effectTag|=1,"object"===typeof i&&null!==i&&"function"===typeof i.render&&void 0===i.$$typeof){if(e.tag=1,e.memoizedState=null,e.updateQueue=null,vi(r)){var o=!0;bi(e)}else o=!1;e.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,oo(e);var s=r.getDerivedStateFromProps;"function"===typeof s&&vo(e,r,s,t),i.updater=yo,e.stateNode=i,i._reactInternalFiber=e,wo(e,r,t,n),e=Ua(null,e,r,!0,o,n)}else e.tag=0,Ca(null,e,i,n),e=e.child;return e;case 16:t:{if(i=e.elementType,null!==t&&(t.alternate=null,e.alternate=null,e.effectTag|=2),t=e.pendingProps,function(t){if(-1===t._status){t._status=0;var e=t._ctor;e=e(),t._result=e,e.then((function(e){0===t._status&&(e=e.default,t._status=1,t._result=e)}),(function(e){0===t._status&&(t._status=2,t._result=e)}))}}(i),1!==i._status)throw i._result;switch(i=i._result,e.type=i,o=e.tag=function(t){if("function"===typeof t)return Su(t)?1:0;if(void 0!==t&&null!==t){if((t=t.$$typeof)===ut)return 11;if(t===ft)return 14}return 2}(i),t=$i(i,t),o){case 0:e=ja(null,e,i,t,n);break t;case 1:e=Ma(null,e,i,t,n);break t;case 11:e=Pa(null,e,i,t,n);break t;case 14:e=Da(null,e,i,$i(i.type,t),r,n);break t}throw Error(a(306,i,""))}return e;case 0:return r=e.type,i=e.pendingProps,ja(t,e,r,i=e.elementType===r?i:$i(r,i),n);case 1:return r=e.type,i=e.pendingProps,Ma(t,e,r,i=e.elementType===r?i:$i(r,i),n);case 3:if(Fa(e),r=e.updateQueue,null===t||null===r)throw Error(a(282));if(r=e.pendingProps,i=null!==(i=e.memoizedState)?i.element:null,ao(t,e),lo(e,r,null,n),(r=e.memoizedState.element)===i)Na(),e=$a(t,e,n);else{if((i=e.stateNode.hydrate)&&(Ea=En(e.stateNode.containerInfo.firstChild),wa=e,i=_a=!0),i)for(n=ko(e,null,r,n),e.child=n;n;)n.effectTag=-3&n.effectTag|1024,n=n.sibling;else Ca(t,e,r,n),Na();e=e.child}return e;case 5:return Ro(e),null===t&&Sa(e),r=e.type,i=e.pendingProps,o=null!==t?t.memoizedProps:null,s=i.children,gn(r,i)?s=null:null!==o&&gn(r,o)&&(e.effectTag|=16),La(t,e),4&e.mode&&1!==n&&i.hidden?(e.expirationTime=e.childExpirationTime=1,e=null):(Ca(t,e,s,n),e=e.child),e;case 6:return null===t&&Sa(e),null;case 13:return Ga(t,e,n);case 4:return Po(e,e.stateNode.containerInfo),r=e.pendingProps,null===t?e.child=So(e,null,r,n):Ca(t,e,r,n),e.child;case 11:return r=e.type,i=e.pendingProps,Pa(t,e,r,i=e.elementType===r?i:$i(r,i),n);case 7:return Ca(t,e,e.pendingProps,n),e.child;case 8:case 12:return Ca(t,e,e.pendingProps.children,n),e.child;case 10:t:{r=e.type._context,i=e.pendingProps,s=e.memoizedProps,o=i.value;var u=e.type._context;if(ci(Qi,u._currentValue),u._currentValue=o,null!==s)if(u=s.value,0===(o=Mr(u,o)?0:0|("function"===typeof r._calculateChangedBits?r._calculateChangedBits(u,o):1073741823))){if(s.children===i.children&&!hi.current){e=$a(t,e,n);break t}}else for(null!==(u=e.child)&&(u.return=e);null!==u;){var c=u.dependencies;if(null!==c){s=u.child;for(var l=c.firstContext;null!==l;){if(l.context===r&&0!==(l.observedBits&o)){1===u.tag&&((l=so(n,null)).tag=2,uo(u,l)),u.expirationTime=e&&t<=e}function Du(t,e){var n=t.firstSuspendedTime,r=t.lastSuspendedTime;ne||0===n)&&(t.lastSuspendedTime=e),e<=t.lastPingedTime&&(t.lastPingedTime=0),e<=t.lastExpiredTime&&(t.lastExpiredTime=0)}function Ru(t,e){e>t.firstPendingTime&&(t.firstPendingTime=e);var n=t.firstSuspendedTime;0!==n&&(e>=n?t.firstSuspendedTime=t.lastSuspendedTime=t.nextKnownPendingLevel=0:e>=t.lastSuspendedTime&&(t.lastSuspendedTime=e+1),e>t.nextKnownPendingLevel&&(t.nextKnownPendingLevel=e))}function Lu(t,e){var n=t.lastExpiredTime;(0===n||n>e)&&(t.lastExpiredTime=e)}function ju(t,e,n,r){var i=e.current,o=Ws(),s=ho.suspense;o=Ks(o,i,s);t:if(n){e:{if(Zt(n=n._reactInternalFiber)!==n||1!==n.tag)throw Error(a(170));var u=n;do{switch(u.tag){case 3:u=u.stateNode.context;break e;case 1:if(vi(u.type)){u=u.stateNode.__reactInternalMemoizedMergedChildContext;break e}}u=u.return}while(null!==u);throw Error(a(171))}if(1===n.tag){var c=n.type;if(vi(c)){n=gi(n,c,u);break t}}n=u}else n=li;return null===e.context?e.context=n:e.pendingContext=n,(e=so(o,s)).payload={element:t},null!==(r=void 0===r?null:r)&&(e.callback=r),uo(i,e),$s(i,o),o}function Mu(t){if(!(t=t.current).child)return null;switch(t.child.tag){case 5:default:return t.child.stateNode}}function Uu(t,e){null!==(t=t.memoizedState)&&null!==t.dehydrated&&t.retryTime=_},s=function(){},e.unstable_forceFrameRate=function(t){0>t||125>>1,i=t[r];if(!(void 0!==i&&0N(a,n))void 0!==u&&0>N(u,a)?(t[r]=u,t[s]=n,r=s):(t[r]=a,t[o]=n,r=o);else{if(!(void 0!==u&&0>N(u,n)))break t;t[r]=u,t[s]=n,r=s}}}return e}return null}function N(t,e){var n=t.sortIndex-e.sortIndex;return 0!==n?n:t.id-e.id}var A=[],O=[],C=1,P=null,D=3,R=!1,L=!1,j=!1;function M(t){for(var e=k(O);null!==e;){if(null===e.callback)x(O);else{if(!(e.startTime<=t))break;x(O),e.sortIndex=e.expirationTime,S(A,e)}e=k(O)}}function U(t){if(j=!1,M(t),!L)if(null!==k(A))L=!0,r(F);else{var e=k(O);null!==e&&i(U,e.startTime-t)}}function F(t,n){L=!1,j&&(j=!1,o()),R=!0;var r=D;try{for(M(n),P=k(A);null!==P&&(!(P.expirationTime>n)||t&&!a());){var s=P.callback;if(null!==s){P.callback=null,D=P.priorityLevel;var u=s(P.expirationTime<=n);n=e.unstable_now(),"function"===typeof u?P.callback=u:P===k(A)&&x(A),M(n)}else x(A);P=k(A)}if(null!==P)var c=!0;else{var l=k(O);null!==l&&i(U,l.startTime-n),c=!1}return c}finally{P=null,D=r,R=!1}}function V(t){switch(t){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var z=s;e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(t){t.callback=null},e.unstable_continueExecution=function(){L||R||(L=!0,r(F))},e.unstable_getCurrentPriorityLevel=function(){return D},e.unstable_getFirstCallbackNode=function(){return k(A)},e.unstable_next=function(t){switch(D){case 1:case 2:case 3:var e=3;break;default:e=D}var n=D;D=e;try{return t()}finally{D=n}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=z,e.unstable_runWithPriority=function(t,e){switch(t){case 1:case 2:case 3:case 4:case 5:break;default:t=3}var n=D;D=t;try{return e()}finally{D=n}},e.unstable_scheduleCallback=function(t,n,a){var s=e.unstable_now();if("object"===typeof a&&null!==a){var u=a.delay;u="number"===typeof u&&0s?(t.sortIndex=u,S(O,t),null===k(A)&&t===k(O)&&(j?o():j=!0,i(U,u-s))):(t.sortIndex=a,S(A,t),L||R||(L=!0,r(F))),t},e.unstable_shouldYield=function(){var t=e.unstable_now();M(t);var n=k(A);return n!==P&&null!==P&&null!==n&&null!==n.callback&&n.startTime<=t&&n.expirationTime=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),u=n.call(o,"finallyLoc");if(s&&u){if(this.prev=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),E(n),c}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;E(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:T(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),c}},t}(t.exports);try{regeneratorRuntime=r}catch(i){Function("r","regeneratorRuntime = r")(r)}},function(t,e,n){"use strict";n(58)},function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0});var r,i=n(18),o=(r=n(24))&&"object"==typeof r&&"default"in r?r.default:r,a=n(31),s=n(25),u=n(60),c=n(30),l=o.SDK_VERSION,f=new a.Logger("@firebase/firestore");function h(){return f.logLevel}function p(t){for(var e=[],n=1;ne?1:0}function _(t,e,n){return t.length===e.length&&t.every((function(t,r){return n(t,e[r])}))}function T(t){return t+"\0"}var I=function(t,e,n,r,i){this.s=t,this.persistenceKey=e,this.host=n,this.ssl=r,this.forceLongPolling=i},S=function(){function t(t,e){this.projectId=t,this.database=e||"(default)"}return Object.defineProperty(t.prototype,"i",{get:function(){return"(default)"===this.database},enumerable:!1,configurable:!0}),t.prototype.isEqual=function(e){return e instanceof t&&e.projectId===this.projectId&&e.database===this.database},t.prototype.o=function(t){return E(this.projectId,t.projectId)||E(this.database,t.database)},t}();function k(t){var e=0;for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e++;return e}function x(t,e){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e(n,t[n])}function N(t){for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e))return!1;return!0}var A=function(){function t(t,e){this.h=t,this.u=e,this.l={}}return t.prototype.get=function(t){var e=this.h(t),n=this.l[e];if(void 0!==n)for(var r=0,i=n;r=1e9)throw new C(O.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+e);if(t<-62135596800)throw new C(O.INVALID_ARGUMENT,"Timestamp seconds out of range: "+t);if(t>=253402300800)throw new C(O.INVALID_ARGUMENT,"Timestamp seconds out of range: "+t)}return t.now=function(){return t.fromMillis(Date.now())},t.fromDate=function(e){return t.fromMillis(e.getTime())},t.fromMillis=function(e){var n=Math.floor(e/1e3);return new t(n,1e6*(e-1e3*n))},t.prototype.toDate=function(){return new Date(this.toMillis())},t.prototype.toMillis=function(){return 1e3*this.seconds+this.nanoseconds/1e6},t.prototype.T=function(t){return this.seconds===t.seconds?E(this.nanoseconds,t.nanoseconds):E(this.seconds,t.seconds)},t.prototype.isEqual=function(t){return t.seconds===this.seconds&&t.nanoseconds===this.nanoseconds},t.prototype.toString=function(){return"Timestamp(seconds="+this.seconds+", nanoseconds="+this.nanoseconds+")"},t.prototype.valueOf=function(){var t=this.seconds- -62135596800;return String(t).padStart(12,"0")+"."+String(this.nanoseconds).padStart(9,"0")},t}(),D=function(){function t(t){this.timestamp=t}return t.I=function(e){return new t(e)},t.min=function(){return new t(new P(0,0))},t.prototype.o=function(t){return this.timestamp.T(t.timestamp)},t.prototype.isEqual=function(t){return this.timestamp.isEqual(t.timestamp)},t.prototype.m=function(){return 1e6*this.timestamp.seconds+this.timestamp.nanoseconds/1e3},t.prototype.toString=function(){return"SnapshotVersion("+this.timestamp.toString()+")"},t.prototype.A=function(){return this.timestamp},t}(),R=function(){function t(t,e,n){void 0===e?e=0:e>t.length&&y(),void 0===n?n=t.length-e:n>t.length-e&&y(),this.segments=t,this.offset=e,this.R=n}return Object.defineProperty(t.prototype,"length",{get:function(){return this.R},enumerable:!1,configurable:!0}),t.prototype.isEqual=function(e){return 0===t.P(this,e)},t.prototype.child=function(e){var n=this.segments.slice(this.offset,this.limit());return e instanceof t?e.forEach((function(t){n.push(t)})):n.push(e),this.V(n)},t.prototype.limit=function(){return this.offset+this.length},t.prototype.g=function(t){return t=void 0===t?1:t,this.V(this.segments,this.offset+t,this.length-t)},t.prototype.p=function(){return this.V(this.segments,this.offset,this.length-1)},t.prototype.v=function(){return this.segments[this.offset]},t.prototype.S=function(){return this.get(this.length-1)},t.prototype.get=function(t){return this.segments[this.offset+t]},t.prototype._=function(){return 0===this.length},t.prototype.D=function(t){if(t.lengtho)return 1}return t.lengthe.length?1:0},t}(),L=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.V=function(t,n,r){return new e(t,n,r)},e.prototype.N=function(){return this.F().join("/")},e.prototype.toString=function(){return this.N()},e.$=function(t){if(t.indexOf("//")>=0)throw new C(O.INVALID_ARGUMENT,"Invalid path ("+t+"). Paths must not contain // in them.");return new e(t.split("/").filter((function(t){return t.length>0})))},e.k=function(){return new e([])},e}(R),j=/^[_a-zA-Z][_a-zA-Z0-9]*$/,M=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.V=function(t,n,r){return new e(t,n,r)},e.M=function(t){return j.test(t)},e.prototype.N=function(){return this.F().map((function(t){return t=t.replace("\\","\\\\").replace("`","\\`"),e.M(t)||(t="`"+t+"`"),t})).join(".")},e.prototype.toString=function(){return this.N()},e.prototype.O=function(){return 1===this.length&&"__name__"===this.get(0)},e.L=function(){return new e(["__name__"])},e.B=function(t){for(var n=[],r="",i=0,o=function(){if(0===r.length)throw new C(O.INVALID_ARGUMENT,"Invalid field path ("+t+"). Paths must not be empty, begin with '.', end with '.', or contain '..'");n.push(r),r=""},a=!1;i=2&&this.path.get(this.path.length-2)===t},t.prototype.isEqual=function(t){return null!==t&&0===L.P(this.path,t.path)},t.prototype.toString=function(){return this.path.toString()},t.P=function(t,e){return L.P(t.path,e.path)},t.W=function(t){return t.length%2==0},t.j=function(e){return new t(new L(e.slice()))},t}();function F(t){return null==t}function V(t){return-0===t&&1/t==-1/0}function z(t){return"number"==typeof t&&Number.isInteger(t)&&!V(t)&&t<=Number.MAX_SAFE_INTEGER&&t>=Number.MIN_SAFE_INTEGER}var B=function(t,e,n,r,i,o,a){void 0===e&&(e=null),void 0===n&&(n=[]),void 0===r&&(r=[]),void 0===i&&(i=null),void 0===o&&(o=null),void 0===a&&(a=null),this.path=t,this.collectionGroup=e,this.orderBy=n,this.filters=r,this.limit=i,this.startAt=o,this.endAt=a,this.K=null};function q(t,e,n,r,i,o,a){return void 0===e&&(e=null),void 0===n&&(n=[]),void 0===r&&(r=[]),void 0===i&&(i=null),void 0===o&&(o=null),void 0===a&&(a=null),new B(t,e,n,r,i,o,a)}function G(t){var e=g(t);if(null===e.K){var n=e.path.N();null!==e.collectionGroup&&(n+="|cg:"+e.collectionGroup),n+="|f:",n+=e.filters.map((function(t){return function(t){return t.field.N()+t.op.toString()+Lt(t.value)}(t)})).join(","),n+="|ob:",n+=e.orderBy.map((function(t){return(e=t).field.N()+e.dir;var e})).join(","),F(e.limit)||(n+="|l:",n+=e.limit),e.startAt&&(n+="|lb:",n+=wn(e.startAt)),e.endAt&&(n+="|ub:",n+=wn(e.endAt)),e.K=n}return e.K}function H(t,e){if(t.limit!==e.limit)return!1;if(t.orderBy.length!==e.orderBy.length)return!1;for(var n=0;n0&&(e=e.right)}return null},t.prototype.indexOf=function(t){for(var e=0,n=this.root;!n._();){var r=this.P(t,n.key);if(0===r)return e+n.left.size;r<0?n=n.left:(e+=n.left.size+1,n=n.right)}return-1},t.prototype._=function(){return this.root._()},Object.defineProperty(t.prototype,"size",{get:function(){return this.root.size},enumerable:!1,configurable:!0}),t.prototype.it=function(){return this.root.it()},t.prototype.rt=function(){return this.root.rt()},t.prototype.ot=function(t){return this.root.ot(t)},t.prototype.forEach=function(t){this.ot((function(e,n){return t(e,n),!1}))},t.prototype.toString=function(){var t=[];return this.ot((function(e,n){return t.push(e+":"+n),!1})),"{"+t.join(", ")+"}"},t.prototype.ht=function(t){return this.root.ht(t)},t.prototype.at=function(){return new et(this.root,null,this.P,!1)},t.prototype.ut=function(t){return new et(this.root,t,this.P,!1)},t.prototype.ct=function(){return new et(this.root,null,this.P,!0)},t.prototype.lt=function(t){return new et(this.root,t,this.P,!0)},t}(),et=function(){function t(t,e,n,r){this._t=r,this.ft=[];for(var i=1;!t._();)if(i=e?n(t.key,e):1,r&&(i*=-1),i<0)t=this._t?t.left:t.right;else{if(0===i){this.ft.push(t);break}this.ft.push(t),t=this._t?t.right:t.left}}return t.prototype.dt=function(){var t=this.ft.pop(),e={key:t.key,value:t.value};if(this._t)for(t=t.left;!t._();)this.ft.push(t),t=t.right;else for(t=t.right;!t._();)this.ft.push(t),t=t.left;return e},t.prototype.wt=function(){return this.ft.length>0},t.prototype.Tt=function(){if(0===this.ft.length)return null;var t=this.ft[this.ft.length-1];return{key:t.key,value:t.value}},t}(),nt=function(){function t(e,n,r,i,o){this.key=e,this.value=n,this.color=null!=r?r:t.RED,this.left=null!=i?i:t.EMPTY,this.right=null!=o?o:t.EMPTY,this.size=this.left.size+1+this.right.size}return t.prototype.copy=function(e,n,r,i,o){return new t(null!=e?e:this.key,null!=n?n:this.value,null!=r?r:this.color,null!=i?i:this.left,null!=o?o:this.right)},t.prototype._=function(){return!1},t.prototype.ot=function(t){return this.left.ot(t)||t(this.key,this.value)||this.right.ot(t)},t.prototype.ht=function(t){return this.right.ht(t)||t(this.key,this.value)||this.left.ht(t)},t.prototype.min=function(){return this.left._()?this:this.left.min()},t.prototype.it=function(){return this.min().key},t.prototype.rt=function(){return this.right._()?this.key:this.right.rt()},t.prototype.nt=function(t,e,n){var r=this,i=n(t,r.key);return(r=i<0?r.copy(null,null,null,r.left.nt(t,e,n),null):0===i?r.copy(null,e,null,null,null):r.copy(null,null,null,null,r.right.nt(t,e,n))).Et()},t.prototype.It=function(){if(this.left._())return t.EMPTY;var e=this;return e.left.At()||e.left.left.At()||(e=e.Rt()),(e=e.copy(null,null,null,e.left.It(),null)).Et()},t.prototype.remove=function(e,n){var r,i=this;if(n(e,i.key)<0)i.left._()||i.left.At()||i.left.left.At()||(i=i.Rt()),i=i.copy(null,null,null,i.left.remove(e,n),null);else{if(i.left.At()&&(i=i.Pt()),i.right._()||i.right.At()||i.right.left.At()||(i=i.Vt()),0===n(e,i.key)){if(i.right._())return t.EMPTY;r=i.right.min(),i=i.copy(r.key,r.value,null,null,i.right.It())}i=i.copy(null,null,null,null,i.right.remove(e,n))}return i.Et()},t.prototype.At=function(){return this.color},t.prototype.Et=function(){var t=this;return t.right.At()&&!t.left.At()&&(t=t.gt()),t.left.At()&&t.left.left.At()&&(t=t.Pt()),t.left.At()&&t.right.At()&&(t=t.yt()),t},t.prototype.Rt=function(){var t=this.yt();return t.right.left.At()&&(t=(t=(t=t.copy(null,null,null,null,t.right.Pt())).gt()).yt()),t},t.prototype.Vt=function(){var t=this.yt();return t.left.left.At()&&(t=(t=t.Pt()).yt()),t},t.prototype.gt=function(){var e=this.copy(null,null,t.RED,null,this.right.left);return this.right.copy(null,null,this.color,e,null)},t.prototype.Pt=function(){var e=this.copy(null,null,t.RED,this.left.right,null);return this.left.copy(null,null,this.color,null,e)},t.prototype.yt=function(){var t=this.left.copy(null,null,!this.left.color,null,null),e=this.right.copy(null,null,!this.right.color,null,null);return this.copy(null,null,!this.color,t,e)},t.prototype.pt=function(){var t=this.bt();return Math.pow(2,t)<=this.size+1},t.prototype.bt=function(){if(this.At()&&this.left.At())throw y();if(this.right.At())throw y();var t=this.left.bt();if(t!==this.right.bt())throw y();return t+(this.At()?0:1)},t}();nt.EMPTY=null,nt.RED=!0,nt.st=!1,nt.EMPTY=new(function(){function t(){this.size=0}return Object.defineProperty(t.prototype,"key",{get:function(){throw y()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){throw y()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"color",{get:function(){throw y()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"left",{get:function(){throw y()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"right",{get:function(){throw y()},enumerable:!1,configurable:!0}),t.prototype.copy=function(t,e,n,r,i){return this},t.prototype.nt=function(t,e,n){return new nt(t,e)},t.prototype.remove=function(t,e){return this},t.prototype._=function(){return!0},t.prototype.ot=function(t){return!1},t.prototype.ht=function(t){return!1},t.prototype.it=function(){return null},t.prototype.rt=function(){return null},t.prototype.At=function(){return!1},t.prototype.pt=function(){return!0},t.prototype.bt=function(){return 0},t}());var rt=function(){function t(t){this.P=t,this.data=new tt(this.P)}return t.prototype.has=function(t){return null!==this.data.get(t)},t.prototype.first=function(){return this.data.it()},t.prototype.last=function(){return this.data.rt()},Object.defineProperty(t.prototype,"size",{get:function(){return this.data.size},enumerable:!1,configurable:!0}),t.prototype.indexOf=function(t){return this.data.indexOf(t)},t.prototype.forEach=function(t){this.data.ot((function(e,n){return t(e),!1}))},t.prototype.vt=function(t,e){for(var n=this.data.ut(t[0]);n.wt();){var r=n.dt();if(this.P(r.key,t[1])>=0)return;e(r.key)}},t.prototype.St=function(t,e){var n;for(n=void 0!==e?this.data.ut(e):this.data.at();n.wt();)if(!t(n.dt().key))return},t.prototype.Dt=function(t){var e=this.data.ut(t);return e.wt()?e.dt().key:null},t.prototype.at=function(){return new it(this.data.at())},t.prototype.ut=function(t){return new it(this.data.ut(t))},t.prototype.add=function(t){return this.copy(this.data.remove(t).nt(t,!0))},t.prototype.delete=function(t){return this.has(t)?this.copy(this.data.remove(t)):this},t.prototype._=function(){return this.data._()},t.prototype.Ct=function(t){var e=this;return e.size0&&(this.oe=!0,this.ie=t)},t.prototype.ce=function(){var t=ht(),e=ht(),n=ht();return this.se.forEach((function(r,i){switch(i){case 0:t=t.add(r);break;case 2:e=e.add(r);break;case 1:n=n.add(r);break;default:y()}})),new bt(this.ie,this.re,t,e,n)},t.prototype.le=function(){this.oe=!1,this.se=kt()},t.prototype._e=function(t,e){this.oe=!0,this.se=this.se.nt(t,e)},t.prototype.fe=function(t){this.oe=!0,this.se=this.se.remove(t)},t.prototype.de=function(){this.ne+=1},t.prototype.we=function(){this.ne-=1},t.prototype.Te=function(){this.oe=!0,this.re=!0},t}(),It=function(){function t(t){this.Ee=t,this.Ie=new Map,this.me=at(),this.Ae=St(),this.Re=new rt(E)}return t.prototype.Pe=function(t){for(var e=0,n=t.Zt;e0?t.targetIds.forEach(e):this.Ie.forEach((function(t,r){n.ve(r)&&e(r)}))},t.prototype.De=function(t){var e=t.targetId,n=t.ee.count,r=this.Ce(e);if(r){var i=r.target;if(W(i))if(0===n){var o=new U(i.path);this.ge(e,o,new on(o,D.min()))}else m(1===n);else this.Fe(e)!==n&&(this.Se(e),this.Re=this.Re.add(e))}},t.prototype.Ne=function(t){var e=this,n=new Map;this.Ie.forEach((function(r,i){var o=e.Ce(i);if(o){if(r.Ht&&W(o.target)){var a=new U(o.target.path);null!==e.me.get(a)||e.$e(i,a)||e.ge(i,a,new on(a,t))}r.ae&&(n.set(i,r.ce()),r.le())}}));var r=ht();this.Ae.forEach((function(t,n){var i=!0;n.St((function(t){var n=e.Ce(t);return!n||2===n.J||(i=!1,!1)})),i&&(r=r.add(t))}));var i=new gt(t,n,this.Re,this.me,r);return this.me=at(),this.Ae=St(),this.Re=new rt(E),i},t.prototype.Ve=function(t,e){if(this.ve(t)){var n=this.$e(t,e.key)?2:0;this.be(t)._e(e.key,n),this.me=this.me.nt(e.key,e),this.Ae=this.Ae.nt(e.key,this.ke(e.key).add(t))}},t.prototype.ge=function(t,e,n){if(this.ve(t)){var r=this.be(t);this.$e(t,e)?r._e(e,1):r.fe(e),this.Ae=this.Ae.nt(e,this.ke(e).delete(t)),n&&(this.me=this.me.nt(e,n))}},t.prototype.removeTarget=function(t){this.Ie.delete(t)},t.prototype.Fe=function(t){var e=this.be(t).ce();return this.Ee.xe(t).size+e.Yt.size-e.Xt.size},t.prototype.de=function(t){this.be(t).de()},t.prototype.be=function(t){var e=this.Ie.get(t);return e||(e=new Tt,this.Ie.set(t,e)),e},t.prototype.ke=function(t){var e=this.Ae.get(t);return e||(e=new rt(E),this.Ae=this.Ae.nt(t,e)),e},t.prototype.ve=function(t){var e=null!==this.Ce(t);return e||p("WatchChangeAggregator","Detected inactive target",t),e},t.prototype.Ce=function(t){var e=this.Ie.get(t);return e&&e.he?null:this.Ee.Me(t)},t.prototype.Se=function(t){var e=this;this.Ie.set(t,new Tt),this.Ee.xe(t).forEach((function(n){e.ge(t,n,null)}))},t.prototype.$e=function(t,e){return this.Ee.xe(t).has(e)},t}();function St(){return new tt(U.P)}function kt(){return new tt(U.P)}function xt(t){var e,n;return"server_timestamp"===(null===(n=((null===(e=null==t?void 0:t.mapValue)||void 0===e?void 0:e.fields)||{}).__type__)||void 0===n?void 0:n.stringValue)}function Nt(t){var e=jt(t.mapValue.fields.__local_write_time__.timestampValue);return new P(e.seconds,e.nanos)}var At=new RegExp(/^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(?:\.(\d+))?Z$/);function Ot(t){return"nullValue"in t?0:"booleanValue"in t?1:"integerValue"in t||"doubleValue"in t?2:"timestampValue"in t?3:"stringValue"in t?5:"bytesValue"in t?6:"referenceValue"in t?7:"geoPointValue"in t?8:"arrayValue"in t?9:"mapValue"in t?xt(t)?4:10:y()}function Ct(t,e){var n=Ot(t);if(n!==Ot(e))return!1;switch(n){case 0:return!0;case 1:return t.booleanValue===e.booleanValue;case 4:return Nt(t).isEqual(Nt(e));case 3:return function(t,e){if("string"==typeof t.timestampValue&&"string"==typeof e.timestampValue&&t.timestampValue.length===e.timestampValue.length)return t.timestampValue===e.timestampValue;var n=jt(t.timestampValue),r=jt(e.timestampValue);return n.seconds===r.seconds&&n.nanos===r.nanos}(t,e);case 5:return t.stringValue===e.stringValue;case 6:return function(t,e){return Ut(t.bytesValue).isEqual(Ut(e.bytesValue))}(t,e);case 7:return t.referenceValue===e.referenceValue;case 8:return function(t,e){return Mt(t.geoPointValue.latitude)===Mt(e.geoPointValue.latitude)&&Mt(t.geoPointValue.longitude)===Mt(e.geoPointValue.longitude)}(t,e);case 2:return function(t,e){if("integerValue"in t&&"integerValue"in e)return Mt(t.integerValue)===Mt(e.integerValue);if("doubleValue"in t&&"doubleValue"in e){var n=Mt(t.doubleValue),r=Mt(e.doubleValue);return n===r?V(n)===V(r):isNaN(n)&&isNaN(r)}return!1}(t,e);case 9:return _(t.arrayValue.values||[],e.arrayValue.values||[],Ct);case 10:return function(t,e){var n=t.mapValue.fields||{},r=e.mapValue.fields||{};if(k(n)!==k(r))return!1;for(var i in n)if(n.hasOwnProperty(i)&&(void 0===r[i]||!Ct(n[i],r[i])))return!1;return!0}(t,e);default:return y()}}function Pt(t,e){return void 0!==(t.values||[]).find((function(t){return Ct(t,e)}))}function Dt(t,e){var n=Ot(t),r=Ot(e);if(n!==r)return E(n,r);switch(n){case 0:return 0;case 1:return E(t.booleanValue,e.booleanValue);case 2:return function(t,e){var n=Mt(t.integerValue||t.doubleValue),r=Mt(e.integerValue||e.doubleValue);return nr?1:n===r?0:isNaN(n)?isNaN(r)?0:-1:1}(t,e);case 3:return Rt(t.timestampValue,e.timestampValue);case 4:return Rt(Nt(t),Nt(e));case 5:return E(t.stringValue,e.stringValue);case 6:return function(t,e){var n=Ut(t),r=Ut(e);return n.o(r)}(t.bytesValue,e.bytesValue);case 7:return function(t,e){for(var n=t.split("/"),r=e.split("/"),i=0;i":"GREATER_THAN",">=":"GREATER_THAN_OR_EQUAL","==":"EQUAL","array-contains":"ARRAY_CONTAINS",in:"IN","array-contains-any":"ARRAY_CONTAINS_ANY"},Kt=function(t,e){this.s=t,this.Oe=e};function $t(t){return{integerValue:""+t}}function Qt(t,e){if(t.Oe){if(isNaN(e))return{doubleValue:"NaN"};if(e===1/0)return{doubleValue:"Infinity"};if(e===-1/0)return{doubleValue:"-Infinity"}}return{doubleValue:V(e)?"-0":e}}function Xt(t,e){return z(e)?$t(e):Qt(t,e)}function Yt(t,e){return t.Oe?new Date(1e3*e.seconds).toISOString().replace(/\.\d*/,"").replace("Z","")+"."+("000000000"+e.nanoseconds).slice(-9)+"Z":{seconds:""+e.seconds,nanos:e.nanoseconds}}function Jt(t,e){return t.Oe?e.toBase64():e.toUint8Array()}function Zt(t,e){return Yt(t,e.A())}function te(t){return m(!!t),D.I(function(t){var e=jt(t);return new P(e.seconds,e.nanos)}(t))}function ee(t,e){return function(t){return new L(["projects",t.projectId,"databases",t.database])}(t).child("documents").child(e).N()}function ne(t){var e=L.$(t);return m(Ee(e)),e}function re(t,e){return ee(t.s,e.path)}function ie(t,e){var n=ne(e);return m(n.get(1)===t.s.projectId),m(!n.get(3)&&!t.s.database||n.get(3)===t.s.database),new U(ue(n))}function oe(t,e){return ee(t.s,e)}function ae(t){var e=ne(t);return 4===e.length?L.k():ue(e)}function se(t){return new L(["projects",t.s.projectId,"databases",t.s.database]).N()}function ue(t){return m(t.length>4&&"documents"===t.get(4)),t.g(5)}function ce(t,e,n){return{name:re(t,e),fields:n.proto.mapValue.fields}}function le(t,e){var n;if(e instanceof He)n={update:ce(t,e.key,e.value)};else if(e instanceof Ye)n={delete:re(t,e.key)};else if(e instanceof We)n={update:ce(t,e.key,e.data),updateMask:we(e.Le)};else if(e instanceof $e)n={transform:{document:re(t,e.key),fieldTransforms:e.fieldTransforms.map((function(t){return function(t,e){var n=e.transform;if(n instanceof ke)return{fieldPath:e.field.N(),setToServerValue:"REQUEST_TIME"};if(n instanceof xe)return{fieldPath:e.field.N(),appendMissingElements:{values:n.elements}};if(n instanceof Ae)return{fieldPath:e.field.N(),removeAllFromArray:{values:n.elements}};if(n instanceof Ce)return{fieldPath:e.field.N(),increment:n.Be};throw y()}(0,t)}))}};else{if(!(e instanceof Je))return y();n={verify:re(t,e.key)}}return e.Ue.qe||(n.currentDocument=function(t,e){return void 0!==e.updateTime?{updateTime:Zt(t,e.updateTime)}:void 0!==e.exists?{exists:e.exists}:y()}(t,e.Ue)),n}function fe(t,e){var n=e.currentDocument?function(t){return void 0!==t.updateTime?Me.updateTime(te(t.updateTime)):void 0!==t.exists?Me.exists(t.exists):Me.Qe()}(e.currentDocument):Me.Qe();if(e.update){e.update.name;var r=ie(t,e.update.name),i=new Ze({mapValue:{fields:e.update.fields}});if(e.updateMask){var o=function(t){var e=t.fieldPaths||[];return new Re(e.map((function(t){return M.B(t)})))}(e.updateMask);return new We(r,i,o,n)}return new He(r,i,n)}if(e.delete){var a=ie(t,e.delete);return new Ye(a,n)}if(e.transform){var s=ie(t,e.transform.document),u=e.transform.fieldTransforms.map((function(e){return function(t,e){var n=null;if("setToServerValue"in e)m("REQUEST_TIME"===e.setToServerValue),n=new ke;else if("appendMissingElements"in e){var r=e.appendMissingElements.values||[];n=new xe(r)}else if("removeAllFromArray"in e){var i=e.removeAllFromArray.values||[];n=new Ae(i)}else"increment"in e?n=new Ce(t,e.increment):y();var o=M.B(e.fieldPath);return new Le(o,n)}(t,e)}));return m(!0===n.exists),new $e(s,u)}if(e.verify){var c=ie(t,e.verify);return new Je(c,n)}return y()}function he(t,e){return{documents:[oe(t,e.path)]}}function pe(t,e){var n={structuredQuery:{}},r=e.path;null!==e.collectionGroup?(n.parent=oe(t,r),n.structuredQuery.from=[{collectionId:e.collectionGroup,allDescendants:!0}]):(n.parent=oe(t,r.p()),n.structuredQuery.from=[{collectionId:r.S()}]);var i=function(t){if(0!==t.length){var e=t.map((function(t){return t instanceof pn?function(t){if("=="===t.op){if(qt(t.value))return{unaryFilter:{field:ye(t.field),op:"IS_NAN"}};if(Bt(t.value))return{unaryFilter:{field:ye(t.field),op:"IS_NULL"}}}return{fieldFilter:{field:ye(t.field),op:(e=t.op,Wt[e]),value:t.value}};var e}(t):y()}));return 1===e.length?e[0]:{compositeFilter:{op:"AND",filters:e}}}}(e.filters);i&&(n.structuredQuery.where=i);var o=function(t){if(0!==t.length)return t.map((function(t){return{field:ye((e=t).field),direction:(n=e.dir,Ht[n])};var e,n}))}(e.orderBy);o&&(n.structuredQuery.orderBy=o);var a=function(t,e){return t.Oe||F(e)?e:{value:e}}(t,e.limit);return null!==a&&(n.structuredQuery.limit=a),e.startAt&&(n.structuredQuery.startAt=de(e.startAt)),e.endAt&&(n.structuredQuery.endAt=de(e.endAt)),n}function de(t){return{before:t.before,values:t.position}}function ve(t){var e=!!t.before,n=t.values||[];return new bn(n,e)}function ye(t){return{fieldPath:t.N()}}function me(t){return M.B(t.fieldPath)}function ge(t){return pn.create(me(t.fieldFilter.field),function(t){switch(t){case"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"ARRAY_CONTAINS_ANY":return"array-contains-any";case"OPERATOR_UNSPECIFIED":default:return y()}}(t.fieldFilter.op),t.fieldFilter.value)}function be(t){switch(t.unaryFilter.op){case"IS_NAN":var e=me(t.unaryFilter.field);return pn.create(e,"==",{doubleValue:NaN});case"IS_NULL":var n=me(t.unaryFilter.field);return pn.create(n,"==",{nullValue:"NULL_VALUE"});case"OPERATOR_UNSPECIFIED":default:return y()}}function we(t){var e=[];return t.fields.forEach((function(t){return e.push(t.N())})),{fieldPaths:e}}function Ee(t){return t.length>=4&&"projects"===t.get(0)&&"databases"===t.get(2)}var _e=function(){this.je=void 0};function Te(t,e,n){return t instanceof ke?function(t,e){var n={fields:{__type__:{stringValue:"server_timestamp"},__local_write_time__:{timestampValue:{seconds:t.seconds,nanos:t.nanoseconds}}}};return e&&(n.fields.__previous_value__=e),{mapValue:n}}(n,e):t instanceof xe?Ne(t,e):t instanceof Ae?Oe(t,e):function(t,e){var n=Se(t,e),r=Pe(n)+Pe(t.Be);return Vt(n)&&Vt(t.Be)?$t(r):Qt(t.serializer,r)}(t,e)}function Ie(t,e,n){return t instanceof xe?Ne(t,e):t instanceof Ae?Oe(t,e):n}function Se(t,e){return t instanceof Ce?Vt(n=e)||function(t){return!!t&&"doubleValue"in t}(n)?e:{integerValue:0}:null;var n}var ke=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e}(_e),xe=function(t){function e(e){var n=this;return(n=t.call(this)||this).elements=e,n}return i.__extends(e,t),e}(_e);function Ne(t,e){for(var n=De(e),r=function(t){n.some((function(e){return Ct(e,t)}))||n.push(t)},i=0,o=t.elements;i0?this.en[this.en.length-1].dir:"asc";this.sn.push(new Tn(M.L(),a))}}}return this.sn},enumerable:!1,configurable:!0}),t.prototype.cn=function(e){var n=this.filters.concat([e]);return new t(this.path,this.collectionGroup,this.en.slice(),n,this.limit,this.nn,this.startAt,this.endAt)},t.prototype.ln=function(e){var n=this.en.concat([e]);return new t(this.path,this.collectionGroup,n,this.filters.slice(),this.limit,this.nn,this.startAt,this.endAt)},t.prototype._n=function(e){return new t(this.path,this.collectionGroup,this.en.slice(),this.filters.slice(),e,"F",this.startAt,this.endAt)},t.prototype.fn=function(e){return new t(this.path,this.collectionGroup,this.en.slice(),this.filters.slice(),e,"L",this.startAt,this.endAt)},t.prototype.dn=function(e){return new t(this.path,this.collectionGroup,this.en.slice(),this.filters.slice(),this.limit,this.nn,e,this.endAt)},t.prototype.wn=function(e){return new t(this.path,this.collectionGroup,this.en.slice(),this.filters.slice(),this.limit,this.nn,this.startAt,e)},t.prototype.Tn=function(e){return new t(e,null,this.en.slice(),this.filters.slice(),this.limit,this.nn,this.startAt,this.endAt)},t.prototype.En=function(){return 0===this.filters.length&&null===this.limit&&null==this.startAt&&null==this.endAt&&(0===this.en.length||1===this.en.length&&this.en[0].field.O())},t.prototype.In=function(){return!F(this.limit)&&"F"===this.nn},t.prototype.mn=function(){return!F(this.limit)&&"L"===this.nn},t.prototype.un=function(){return this.en.length>0?this.en[0].field:null},t.prototype.an=function(){for(var t=0,e=this.filters;t=0)return r.op}return null},t.prototype.Pn=function(){return W(this.We())},t.prototype.Vn=function(){return null!==this.collectionGroup},t.prototype.We=function(){if(!this.rn)if("F"===this.nn)this.rn=q(this.path,this.collectionGroup,this.orderBy,this.filters,this.limit,this.startAt,this.endAt);else{for(var t=[],e=0,n=this.orderBy;e0&&(e+=", orderBy: ["+t.orderBy.map((function(t){return(e=t).field.N()+" ("+e.dir+")";var e})).join(", ")+"]"),t.startAt&&(e+=", startAt: "+wn(t.startAt)),t.endAt&&(e+=", endAt: "+wn(t.endAt)),"Target("+e+")"}(t.We())+"; limitType="+t.nn+")"}function fn(t,e){return function(t,e){var n=e.key.path;return null!==t.collectionGroup?e.key.U(t.collectionGroup)&&t.path.D(n):U.W(t.path)?t.path.isEqual(n):t.path.C(n)}(t,e)&&function(t,e){for(var n=0,r=t.en;n":return t>0;case">=":return t>=0;default:return y()}},e.prototype.An=function(){return["<","<=",">",">="].indexOf(this.op)>=0},e}((function(){})),dn=function(t){function e(e,n,r){var i=this;return(i=t.call(this,e,n,r)||this).key=U.q(r.referenceValue),i}return i.__extends(e,t),e.prototype.matches=function(t){var e=U.P(t.key,this.key);return this.gn(e)},e}(pn),vn=function(t){function e(e,n){var r=this;return(r=t.call(this,e,"in",n)||this).keys=(n.arrayValue.values||[]).map((function(t){return U.q(t.referenceValue)})),r}return i.__extends(e,t),e.prototype.matches=function(t){return this.keys.some((function(e){return e.isEqual(t.key)}))},e}(pn),yn=function(t){function e(e,n){return t.call(this,e,"array-contains",n)||this}return i.__extends(e,t),e.prototype.matches=function(t){var e=t.field(this.field);return zt(e)&&Pt(e.arrayValue,this.value)},e}(pn),mn=function(t){function e(e,n){return t.call(this,e,"in",n)||this}return i.__extends(e,t),e.prototype.matches=function(t){var e=t.field(this.field);return null!==e&&Pt(this.value.arrayValue,e)},e}(pn),gn=function(t){function e(e,n){return t.call(this,e,"array-contains-any",n)||this}return i.__extends(e,t),e.prototype.matches=function(t){var e=this,n=t.field(this.field);return!(!zt(n)||!n.arrayValue.values)&&n.arrayValue.values.some((function(t){return Pt(e.value.arrayValue,t)}))},e}(pn),bn=function(t,e){this.position=t,this.before=e};function wn(t){return(t.before?"b":"a")+":"+t.position.map((function(t){return Lt(t)})).join(",")}function En(t,e,n){for(var r=0,i=0;i0&&p("ExponentialBackoff","Backing off for "+i+" ms (base delay: "+this.Fs+" ms, delay with jitter: "+n+" ms, last attempt: "+r+" ms ago)"),this.Ns=this.bs.Os(this.vs,i,(function(){return e.$s=Date.now(),t()})),this.Fs*=this.Ds,this.Fsthis.Cs&&(this.Fs=this.Cs)},t.prototype.Ls=function(){null!==this.Ns&&(this.Ns.Bs(),this.Ns=null)},t.prototype.cancel=function(){null!==this.Ns&&(this.Ns.cancel(),this.Ns=null)},t.prototype.Ms=function(){return(Math.random()-.5)*this.Fs},t}();function Mn(t){for(var e="",n=0;n0&&(e=Fn(e)),e=Un(t.get(n),e);return Fn(e)}function Un(t,e){for(var n=e,r=t.length,i=0;i=2),2===e)return m("\x01"===t.charAt(0)&&"\x01"===t.charAt(1)),L.k();for(var n=e-2,r=[],i="",o=0;on)&&y(),t.charAt(a+1)){case"\x01":var s=t.substring(o,a),u=void 0;0===i.length?u=s:(u=i+=s,i=""),r.push(u);break;case"\x10":i+=t.substring(o,a),i+="\0";break;case"\x11":i+=t.substring(o,a+1);break;default:y()}o=a+2}return new L(r)}var zn=function(){function t(){this.qs=new Bn}return t.prototype.Us=function(t,e){return this.qs.add(e),Nn.resolve()},t.prototype.Ts=function(t,e){return Nn.resolve(this.qs.getEntries(e))},t}(),Bn=function(){function t(){this.index={}}return t.prototype.add=function(t){var e=t.S(),n=t.p(),r=this.index[e]||new rt(L.P),i=!r.has(n);return this.index[e]=r.add(n),i},t.prototype.has=function(t){var e=t.S(),n=t.p(),r=this.index[e];return r&&r.has(n)},t.prototype.getEntries=function(t){return(this.index[t]||new rt(L.P)).F()},t}(),qn=function(){function t(){this.Qs=new Bn}return t.prototype.Us=function(t,e){var n=this;if(!this.Qs.has(e)){var r=e.S(),i=e.p();t.Zn((function(){n.Qs.add(e)}));var o={collectionId:r,parent:Mn(i)};return Gn(t).put(o)}return Nn.resolve()},t.prototype.Ts=function(t,e){var n=[],r=IDBKeyRange.bound([e,""],[T(e),""],!1,!0);return Gn(t).Ws(r).next((function(t){for(var r=0,i=t;r0){m(1===r);var o=n.from[0];o.allDescendants?i=o.collectionId:e=e.child(o.collectionId)}var a=[];n.where&&(a=function t(e){return e?void 0!==e.unaryFilter?[be(e)]:void 0!==e.fieldFilter?[ge(e)]:void 0!==e.compositeFilter?e.compositeFilter.filters.map((function(e){return t(e)})).reduce((function(t,e){return t.concat(e)})):y():[]}(n.where));var s=[];n.orderBy&&(s=n.orderBy.map((function(t){return new Tn(me((e=t).field),function(t){switch(t){case"ASCENDING":return"asc";case"DESCENDING":return"desc";default:return}}(e.direction));var e})));var u=null;n.limit&&(u=function(t){var e;return F(e="object"==typeof t?t.value:t)?null:e}(n.limit));var c=null;n.startAt&&(c=ve(n.startAt));var l=null;return n.endAt&&(l=ve(n.endAt)),new sn(e,i,s,a,u,"F",c,l).We()}(t.query),new X(e,t.targetId,0,t.lastListenSequenceNumber,n,r,K.fromBase64String(t.resumeToken))}function tr(t,e){var n,r=Xn(e.X),i=Xn(e.lastLimboFreeSnapshotVersion);n=W(e.target)?he(t.Ks,e.target):pe(t.Ks,e.target);var o=e.resumeToken.toBase64();return new jr(e.targetId,G(e.target),r,o,e.sequenceNumber,i,n)}var er=function(){function t(t,e){this.serializer=t,this.ss=e}return t.prototype.jn=function(t,e,n){return rr(t).put(ir(e),n)},t.prototype.Gn=function(t,e){var n=rr(t),r=ir(e);return n.delete(r)},t.prototype.updateMetadata=function(t,e){var n=this;return this.getMetadata(t).next((function(r){return r.byteSize+=e,n.Gs(t,r)}))},t.prototype.zn=function(t,e){var n=this;return rr(t).get(ir(e)).next((function(t){return n.zs(t)}))},t.prototype.Hs=function(t,e){var n=this;return rr(t).get(ir(e)).next((function(t){var e=n.zs(t);return e?{Ys:e,size:or(t)}:null}))},t.prototype.getEntries=function(t,e){var n=this,r=st();return this.Js(t,e,(function(t,e){var i=n.zs(e);r=r.nt(t,i)})).next((function(){return r}))},t.prototype.Xs=function(t,e){var n=this,r=st(),i=new tt(U.P);return this.Js(t,e,(function(t,e){var o=n.zs(e);o?(r=r.nt(t,o),i=i.nt(t,or(e))):(r=r.nt(t,null),i=i.nt(t,0))})).next((function(){return{Zs:r,ti:i}}))},t.prototype.Js=function(t,e,n){if(e._())return Nn.resolve();var r=IDBKeyRange.bound(e.first().path.F(),e.last().path.F()),i=e.at(),o=i.dt();return rr(t).ei({range:r},(function(t,e,r){for(var a=U.j(t);o&&U.P(o,a)<0;)n(o,null),o=i.dt();o&&o.isEqual(a)&&(n(o,e),o=i.wt()?i.dt():null),o?r.ni(o.path.F()):r.done()})).next((function(){for(;o;)n(o,null),o=i.wt()?i.dt():null}))},t.prototype._s=function(t,e,n){var r=this,i=ct(),o=e.path.length+1,a={};if(n.isEqual(D.min())){var s=e.path.F();a.range=IDBKeyRange.lowerBound(s)}else{var u=e.path.F(),c=$n(n);a.range=IDBKeyRange.lowerBound([u,c],!0),a.index=Rr.collectionReadTimeIndex}return rr(t).ei(a,(function(t,n,a){if(t.length===o){var s=Wn(r.serializer,n);e.path.D(s.key.path)?s instanceof rn&&fn(e,s)&&(i=i.nt(s.key,s)):a.done()}})).next((function(){return i}))},t.prototype.si=function(t,e){var n=this,r=at(),i=$n(e),o=rr(t),a=IDBKeyRange.lowerBound(i,!0);return o.ei({index:Rr.readTimeIndex,range:a},(function(t,e){var o=Wn(n.serializer,e);r=r.nt(o.key,o),i=e.readTime})).next((function(){return{ii:r,readTime:Qn(i)}}))},t.prototype.ri=function(t){var e=rr(t),n=D.min();return e.ei({index:Rr.readTimeIndex,reverse:!0},(function(t,e,r){e.readTime&&(n=Qn(e.readTime)),r.done()})).next((function(){return n}))},t.prototype.oi=function(e){return new t.hi(this,!!e&&e.ai)},t.prototype.ui=function(t){return this.getMetadata(t).next((function(t){return t.byteSize}))},t.prototype.getMetadata=function(t){return nr(t).get(Lr.key).next((function(t){return m(!!t),t}))},t.prototype.Gs=function(t,e){return nr(t).put(Lr.key,e)},t.prototype.zs=function(t){if(t){var e=Wn(this.serializer,t);return e instanceof on&&e.version.isEqual(D.min())?null:e}return null},t}();function nr(t){return pr.js(t,Lr.store)}function rr(t){return pr.js(t,Rr.store)}function ir(t){return t.path.F()}function or(t){var e;if(t.document)e=t.document;else if(t.unknownDocument)e=t.unknownDocument;else{if(!t.noDocument)throw y();e=t.noDocument}return JSON.stringify(e).length}er.hi=function(t){function e(e,n){var r=this;return(r=t.call(this)||this).ci=e,r.ai=n,r.li=new A((function(t){return t.toString()}),(function(t,e){return t.isEqual(e)})),r}return i.__extends(e,t),e.prototype.Jn=function(t){var e=this,n=[],r=0,i=new rt((function(t,e){return E(t.N(),e.N())}));return this.Un.forEach((function(o,a){var s=e.li.get(o);if(a){var u=Kn(e.ci.serializer,a,e.readTime);i=i.add(o.path.p());var c=or(u);r+=c-s,n.push(e.ci.jn(t,o,u))}else if(r-=s,e.ai){var l=Kn(e.ci.serializer,new on(o,D.min()),e.readTime);n.push(e.ci.jn(t,o,l))}else n.push(e.ci.Gn(t,o))})),i.forEach((function(r){n.push(e.ci.ss.Us(t,r))})),n.push(this.ci.updateMetadata(t,r)),Nn.Bn(n)},e.prototype.Hn=function(t,e){var n=this;return this.ci.Hs(t,e).next((function(t){return null===t?(n.li.set(e,0),null):(n.li.set(e,t.size),t.Ys)}))},e.prototype.Yn=function(t,e){var n=this;return this.ci.Xs(t,e).next((function(t){var e=t.Zs;return t.ti.forEach((function(t,e){n.li.set(t,e)})),e}))},e}(An);var ar=function(){function t(t){this._i=t}return t.prototype.next=function(){return this._i+=2,this._i},t.fi=function(){return new t(0)},t.di=function(){return new t(-1)},t}(),sr=function(){function t(t,e){this.wi=t,this.serializer=e}return t.prototype.Ti=function(t){var e=this;return this.Ei(t).next((function(n){var r=new ar(n.highestTargetId);return n.highestTargetId=r.next(),e.Ii(t,n).next((function(){return n.highestTargetId}))}))},t.prototype.mi=function(t){return this.Ei(t).next((function(t){return D.I(new P(t.lastRemoteSnapshotVersion.seconds,t.lastRemoteSnapshotVersion.nanoseconds))}))},t.prototype.Ai=function(t){return this.Ei(t).next((function(t){return t.highestListenSequenceNumber}))},t.prototype.Ri=function(t,e,n){var r=this;return this.Ei(t).next((function(i){return i.highestListenSequenceNumber=e,n&&(i.lastRemoteSnapshotVersion=n.A()),e>i.highestListenSequenceNumber&&(i.highestListenSequenceNumber=e),r.Ii(t,i)}))},t.prototype.Pi=function(t,e){var n=this;return this.Vi(t,e).next((function(){return n.Ei(t).next((function(r){return r.targetCount+=1,n.gi(e,r),n.Ii(t,r)}))}))},t.prototype.yi=function(t,e){return this.Vi(t,e)},t.prototype.pi=function(t,e){var n=this;return this.bi(t,e.targetId).next((function(){return ur(t).delete(e.targetId)})).next((function(){return n.Ei(t)})).next((function(e){return m(e.targetCount>0),e.targetCount-=1,n.Ii(t,e)}))},t.prototype.vi=function(t,e,n){var r=this,i=0,o=[];return ur(t).ei((function(a,s){var u=Zn(s);u.sequenceNumber<=e&&null===n.get(u.targetId)&&(i++,o.push(r.pi(t,u)))})).next((function(){return Nn.Bn(o)})).next((function(){return i}))},t.prototype.pe=function(t,e){return ur(t).ei((function(t,n){var r=Zn(n);e(r)}))},t.prototype.Ei=function(t){return cr(t).get(Ur.key).next((function(t){return m(null!==t),t}))},t.prototype.Ii=function(t,e){return cr(t).put(Ur.key,e)},t.prototype.Vi=function(t,e){return ur(t).put(tr(this.serializer,e))},t.prototype.gi=function(t,e){var n=!1;return t.targetId>e.highestTargetId&&(e.highestTargetId=t.targetId,n=!0),t.sequenceNumber>e.highestListenSequenceNumber&&(e.highestListenSequenceNumber=t.sequenceNumber,n=!0),n},t.prototype.Si=function(t){return this.Ei(t).next((function(t){return t.targetCount}))},t.prototype.Di=function(t,e){var n=G(e),r=IDBKeyRange.bound([n,Number.NEGATIVE_INFINITY],[n,Number.POSITIVE_INFINITY]),i=null;return ur(t).ei({range:r,index:jr.queryTargetsIndexName},(function(t,n,r){var o=Zn(n);H(e,o.target)&&(i=o,r.done())})).next((function(){return i}))},t.prototype.Ci=function(t,e,n){var r=this,i=[],o=lr(t);return e.forEach((function(e){var a=Mn(e.path);i.push(o.put(new Mr(n,a))),i.push(r.wi.Fi(t,n,e))})),Nn.Bn(i)},t.prototype.Ni=function(t,e,n){var r=this,i=lr(t);return Nn.forEach(e,(function(e){var o=Mn(e.path);return Nn.Bn([i.delete([n,o]),r.wi.$i(t,n,e)])}))},t.prototype.bi=function(t,e){var n=lr(t),r=IDBKeyRange.bound([e],[e+1],!1,!0);return n.delete(r)},t.prototype.ki=function(t,e){var n=IDBKeyRange.bound([e],[e+1],!1,!0),r=lr(t),i=ht();return r.ei({range:n,xi:!0},(function(t,e,n){var r=Vn(t[1]),o=new U(r);i=i.add(o)})).next((function(){return i}))},t.prototype.Mi=function(t,e){var n=Mn(e.path),r=IDBKeyRange.bound([n],[T(n)],!1,!0),i=0;return lr(t).ei({index:Mr.documentTargetsIndex,xi:!0,range:r},(function(t,e,n){var r=t[0];t[1],0!==r&&(i++,n.done())})).next((function(){return i>0}))},t.prototype.Me=function(t,e){return ur(t).get(e).next((function(t){return t?Zn(t):null}))},t}();function ur(t){return pr.js(t,jr.store)}function cr(t){return pr.js(t,Ur.store)}function lr(t){return pr.js(t,Mr.store)}var fr="Failed to obtain exclusive access to the persistence layer. To allow shared access, make sure to invoke `enablePersistence()` with `synchronizeTabs:true` in all tabs. If you are using `experimentalForceOwningTab:true`, make sure that only one tab has persistence enabled at any given time.",hr=function(t){function e(e,n){var r=this;return(r=t.call(this)||this).Oi=e,r.Li=n,r}return i.__extends(e,t),e}(Cn),pr=function(){function t(e,n,r,i,o,a,s,u,c,l){if(this.allowTabSynchronization=e,this.persistenceKey=n,this.clientId=r,this.bs=o,this.window=a,this.document=s,this.Bi=c,this.qi=l,this.Ui=null,this.Qi=!1,this.isPrimary=!1,this.networkEnabled=!0,this.Wi=null,this.inForeground=!1,this.ji=null,this.Ki=null,this.Gi=Number.NEGATIVE_INFINITY,this.zi=function(t){return Promise.resolve()},!t.Hi())throw new C(O.UNIMPLEMENTED,"This platform is either missing IndexedDB or is known to have an incomplete implementation. Offline persistence has been disabled.");this.wi=new yr(this,i),this.Yi=n+"main",this.serializer=new Hn(u),this.Ji=new sr(this.wi,this.serializer),this.ss=new qn,this.es=new er(this.serializer,this.ss),this.window&&this.window.localStorage?this.Xi=this.window.localStorage:(this.Xi=null,!1===l&&d("IndexedDbPersistence","LocalStorage is unavailable. As a result, persistence may not work reliably. In particular enablePersistence() could fail immediately after refreshing the page."))}return t.js=function(t,e){if(t instanceof hr)return qr.js(t.Oi,e);throw y()},t.prototype.start=function(){var t=this;return qr.Zi(this.Yi,Sr,new kr(this.serializer)).then((function(e){return t.tr=e,t.er()})).then((function(){if(!t.isPrimary&&!t.allowTabSynchronization)throw new C(O.FAILED_PRECONDITION,fr);return t.nr(),t.sr(),t.ir(),t.runTransaction("getHighestListenSequenceNumber","readonly",(function(e){return t.Ji.Ai(e)}))})).then((function(e){t.Ui=new Rn(e,t.Bi)})).then((function(){t.Qi=!0})).catch((function(e){return t.tr&&t.tr.close(),Promise.reject(e)}))},t.prototype.rr=function(t){var e=this;return this.zi=function(n){return i.__awaiter(e,void 0,void 0,(function(){return i.__generator(this,(function(e){return this.or?[2,t(n)]:[2]}))}))},t(this.isPrimary)},t.prototype.hr=function(t){var e=this;this.tr.ar((function(n){return i.__awaiter(e,void 0,void 0,(function(){return i.__generator(this,(function(e){switch(e.label){case 0:return null===n.newVersion?[4,t()]:[3,2];case 1:e.sent(),e.label=2;case 2:return[2]}}))}))}))},t.prototype.ur=function(t){var e=this;this.networkEnabled!==t&&(this.networkEnabled=t,this.bs.cr((function(){return i.__awaiter(e,void 0,void 0,(function(){return i.__generator(this,(function(t){switch(t.label){case 0:return this.or?[4,this.er()]:[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}}))}))})))},t.prototype.er=function(){var t=this;return this.runTransaction("updateClientMetadataAndTryBecomePrimary","readwrite",(function(e){return vr(e).put(new zr(t.clientId,Date.now(),t.networkEnabled,t.inForeground)).next((function(){if(t.isPrimary)return t.lr(e).next((function(e){e||(t.isPrimary=!1,t.bs._r((function(){return t.zi(!1)})))}))})).next((function(){return t.dr(e)})).next((function(n){return t.isPrimary&&!n?t.wr(e).next((function(){return!1})):!!n&&t.Tr(e).next((function(){return!0}))}))})).catch((function(e){if(Wr(e))return p("IndexedDbPersistence","Failed to extend owner lease: ",e),t.isPrimary;if(!t.allowTabSynchronization)throw e;return p("IndexedDbPersistence","Releasing owner lease after error during lease refresh",e),!1})).then((function(e){t.isPrimary!==e&&t.bs._r((function(){return t.zi(e)})),t.isPrimary=e}))},t.prototype.lr=function(t){var e=this;return dr(t).get(Nr.key).next((function(t){return Nn.resolve(e.Er(t))}))},t.prototype.Ir=function(t){return vr(t).delete(this.clientId)},t.prototype.mr=function(){return i.__awaiter(this,void 0,void 0,(function(){var e,n,r,o,a=this;return i.__generator(this,(function(i){switch(i.label){case 0:return!this.isPrimary||this.Ar(this.Gi,18e5)?[3,2]:(this.Gi=Date.now(),[4,this.runTransaction("maybeGarbageCollectMultiClientState","readwrite-primary",(function(e){var n=t.js(e,zr.store);return n.Ws().next((function(t){var e=a.Rr(t,18e5),r=t.filter((function(t){return-1===e.indexOf(t)}));return Nn.forEach(r,(function(t){return n.delete(t.clientId)})).next((function(){return r}))}))})).catch((function(){return[]}))]);case 1:if(e=i.sent(),this.Xi)for(n=0,r=e;nn&&(d("Detected an update time that is in the future: "+t+" > "+n),1))},t.prototype.nr=function(){var t=this;null!==this.document&&"function"==typeof this.document.addEventListener&&(this.ji=function(){t.bs.cr((function(){return t.inForeground="visible"===t.document.visibilityState,t.er()}))},this.document.addEventListener("visibilitychange",this.ji),this.inForeground="visible"===this.document.visibilityState)},t.prototype.pr=function(){this.ji&&(this.document.removeEventListener("visibilitychange",this.ji),this.ji=null)},t.prototype.sr=function(){var t,e=this;"function"==typeof(null===(t=this.window)||void 0===t?void 0:t.addEventListener)&&(this.Wi=function(){e.yr(),e.bs.cr((function(){return e.gr()}))},this.window.addEventListener("unload",this.Wi))},t.prototype.br=function(){this.Wi&&(this.window.removeEventListener("unload",this.Wi),this.Wi=null)},t.prototype.Vr=function(t){var e;try{var n=null!==(null===(e=this.Xi)||void 0===e?void 0:e.getItem(this.Pr(t)));return p("IndexedDbPersistence","Client '"+t+"' "+(n?"is":"is not")+" zombied in LocalStorage"),n}catch(t){return d("IndexedDbPersistence","Failed to get zombied client id.",t),!1}},t.prototype.yr=function(){if(this.Xi)try{this.Xi.setItem(this.Pr(this.clientId),String(Date.now()))}catch(t){d("Failed to set zombie client id.",t)}},t.prototype.vr=function(){if(this.Xi)try{this.Xi.removeItem(this.Pr(this.clientId))}catch(t){}},t.prototype.Pr=function(t){return"firestore_zombie_"+this.persistenceKey+"_"+t},t}();function dr(t){return pr.js(t,Nr.store)}function vr(t){return pr.js(t,zr.store)}var yr=function(){function t(t,e){this.db=t,this.xr=new si(this,e)}return t.prototype.Mr=function(t){var e=this.Or(t);return this.db.Fr().Si(t).next((function(t){return e.next((function(e){return t+e}))}))},t.prototype.Or=function(t){var e=0;return this.Lr(t,(function(t){e++})).next((function(){return e}))},t.prototype.pe=function(t,e){return this.db.Fr().pe(t,e)},t.prototype.Lr=function(t,e){return this.Br(t,(function(t,n){return e(n)}))},t.prototype.Fi=function(t,e,n){return mr(t,n)},t.prototype.$i=function(t,e,n){return mr(t,n)},t.prototype.vi=function(t,e,n){return this.db.Fr().vi(t,e,n)},t.prototype.qr=function(t,e){return mr(t,e)},t.prototype.Ur=function(t,e){return function(t,e){var n=!1;return Ir(t).Qr((function(r){return wr(t,r,e).next((function(t){return t&&(n=!0),Nn.resolve(!t)}))})).next((function(){return n}))}(t,e)},t.prototype.Wr=function(t,e){var n=this,r=this.db.Nr().oi(),i=[],o=0;return this.Br(t,(function(a,s){if(s<=e){var u=n.Ur(t,a).next((function(e){if(!e)return o++,r.zn(t,a).next((function(){return r.Gn(a),lr(t).delete([0,Mn(a.path)])}))}));i.push(u)}})).next((function(){return Nn.Bn(i)})).next((function(){return r.apply(t)})).next((function(){return o}))},t.prototype.removeTarget=function(t,e){var n=e.Z(t.Li);return this.db.Fr().yi(t,n)},t.prototype.jr=function(t,e){return mr(t,e)},t.prototype.Br=function(t,e){var n,r=lr(t),i=Rn.ps;return r.ei({index:Mr.documentTargetsIndex},(function(t,r){var o=t[0],a=(t[1],r.path),s=r.sequenceNumber;0===o?(i!==Rn.ps&&e(new U(Vn(n)),i),i=s,n=a):i=Rn.ps})).next((function(){i!==Rn.ps&&e(new U(Vn(n)),i)}))},t.prototype.Kr=function(t){return this.db.Nr().ui(t)},t}();function mr(t,e){return lr(t).put(function(t,e){return new Mr(0,Mn(t.path),e)}(e,t.Li))}function gr(t,e){var n=t.projectId;return t.i||(n+="."+t.database),"firestore/"+e+"/"+n+"/"}var br=function(){function t(t,e,n,r){this.userId=t,this.serializer=e,this.ss=n,this.wi=r,this.Gr={}}return t.Cr=function(e,n,r,i){return m(""!==e.uid),new t(e.zr()?e.uid:"",n,r,i)},t.prototype.Hr=function(t){var e=!0,n=IDBKeyRange.bound([this.userId,Number.NEGATIVE_INFINITY],[this.userId,Number.POSITIVE_INFINITY]);return _r(t).ei({index:Or.userMutationsIndex,range:n},(function(t,n,r){e=!1,r.done()})).next((function(){return e}))},t.prototype.Yr=function(t,e,n,r){var i=this,o=Tr(t),a=_r(t);return a.add({}).next((function(s){m("number"==typeof s);for(var u=new kn(s,e,n,r),c=function(t,e,n){var r=n.baseMutations.map((function(e){return le(t.Ks,e)})),i=n.mutations.map((function(e){return le(t.Ks,e)}));return new Or(e,n.batchId,n.yn.toMillis(),r,i)}(i.serializer,i.userId,u),l=[],f=new rt((function(t,e){return E(t.N(),e.N())})),h=0,p=r;h=r),o=Jn(n.serializer,e)),i.done()})).next((function(){return o}))},t.prototype.to=function(t){var e=IDBKeyRange.upperBound([this.userId,Number.POSITIVE_INFINITY]),n=-1;return _r(t).ei({index:Or.userMutationsIndex,range:e,reverse:!0},(function(t,e,r){n=e.batchId,r.done()})).next((function(){return n}))},t.prototype.eo=function(t){var e=this,n=IDBKeyRange.bound([this.userId,-1],[this.userId,Number.POSITIVE_INFINITY]);return _r(t).Ws(Or.userMutationsIndex,n).next((function(t){return t.map((function(t){return Jn(e.serializer,t)}))}))},t.prototype.os=function(t,e){var n=this,r=Cr.prefixForPath(this.userId,e.path),i=IDBKeyRange.lowerBound(r),o=[];return Tr(t).ei({range:i},(function(r,i,a){var s=r[0],u=r[1],c=r[2],l=Vn(u);if(s===n.userId&&e.path.isEqual(l))return _r(t).get(c).next((function(t){if(!t)throw y();m(t.userId===n.userId),o.push(Jn(n.serializer,t))}));a.done()})).next((function(){return o}))},t.prototype.ls=function(t,e){var n=this,r=new rt(E),i=[];return e.forEach((function(e){var o=Cr.prefixForPath(n.userId,e.path),a=IDBKeyRange.lowerBound(o),s=Tr(t).ei({range:a},(function(t,i,o){var a=t[0],s=t[1],u=t[2],c=Vn(s);a===n.userId&&e.path.isEqual(c)?r=r.add(u):o.done()}));i.push(s)})),Nn.Bn(i).next((function(){return n.no(t,r)}))},t.prototype.Es=function(t,e){var n=this,r=e.path,i=r.length+1,o=Cr.prefixForPath(this.userId,r),a=IDBKeyRange.lowerBound(o),s=new rt(E);return Tr(t).ei({range:a},(function(t,e,o){var a=t[0],u=t[1],c=t[2],l=Vn(u);a===n.userId&&r.D(l)?l.length===i&&(s=s.add(c)):o.done()})).next((function(){return n.no(t,s)}))},t.prototype.no=function(t,e){var n=this,r=[],i=[];return e.forEach((function(e){i.push(_r(t).get(e).next((function(t){if(null===t)throw y();m(t.userId===n.userId),r.push(Jn(n.serializer,t))})))})),Nn.Bn(i).next((function(){return r}))},t.prototype.so=function(t,e){var n=this;return Er(t.Oi,this.userId,e).next((function(r){return t.Zn((function(){n.io(e.batchId)})),Nn.forEach(r,(function(e){return n.wi.qr(t,e)}))}))},t.prototype.io=function(t){delete this.Gr[t]},t.prototype.ro=function(t){var e=this;return this.Hr(t).next((function(n){if(!n)return Nn.resolve();var r=IDBKeyRange.lowerBound(Cr.prefixForUser(e.userId)),i=[];return Tr(t).ei({range:r},(function(t,n,r){if(t[0]===e.userId){var o=Vn(t[1]);i.push(o)}else r.done()})).next((function(){m(0===i.length)}))}))},t.prototype.Mi=function(t,e){return wr(t,this.userId,e)},t.prototype.oo=function(t){var e=this;return Ir(t).get(this.userId).next((function(t){return t||new Ar(e.userId,-1,"")}))},t}();function wr(t,e,n){var r=Cr.prefixForPath(e,n.path),i=r[1],o=IDBKeyRange.lowerBound(r),a=!1;return Tr(t).ei({range:o,xi:!0},(function(t,n,r){var o=t[0],s=t[1];t[2],o===e&&s===i&&(a=!0),r.done()})).next((function(){return a}))}function Er(t,e,n){var r=t.store(Or.store),i=t.store(Cr.store),o=[],a=IDBKeyRange.only(n.batchId),s=0,u=r.ei({range:a},(function(t,e,n){return s++,n.delete()}));o.push(u.next((function(){m(1===s)})));for(var c=[],l=0,f=n.mutations;l=0&&r<=Sr);var o=new Kr(e);n<1&&r>=1&&(function(t){t.createObjectStore(Nr.store)}(t),function(t){t.createObjectStore(Ar.store,{keyPath:Ar.keyPath}),t.createObjectStore(Or.store,{keyPath:Or.keyPath,autoIncrement:!0}).createIndex(Or.userMutationsIndex,Or.userMutationsKeyPath,{unique:!0}),t.createObjectStore(Cr.store)}(t),Vr(t),function(t){t.createObjectStore(Rr.store)}(t));var a=Nn.resolve();return n<3&&r>=3&&(0!==n&&(function(t){t.deleteObjectStore(Mr.store),t.deleteObjectStore(jr.store),t.deleteObjectStore(Ur.store)}(t),Vr(t)),a=a.next((function(){return function(t){var e=t.store(Ur.store),n=new Ur(0,0,D.min().A(),0);return e.put(Ur.key,n)}(o)}))),n<4&&r>=4&&(0!==n&&(a=a.next((function(){return function(t,e){return e.store(Or.store).Ws().next((function(n){t.deleteObjectStore(Or.store),t.createObjectStore(Or.store,{keyPath:Or.keyPath,autoIncrement:!0}).createIndex(Or.userMutationsIndex,Or.userMutationsKeyPath,{unique:!0});var r=e.store(Or.store),i=n.map((function(t){return r.put(t)}));return Nn.Bn(i)}))}(t,o)}))),a=a.next((function(){!function(t){t.createObjectStore(zr.store,{keyPath:zr.keyPath})}(t)}))),n<5&&r>=5&&(a=a.next((function(){return i.removeAcknowledgedMutations(o)}))),n<6&&r>=6&&(a=a.next((function(){return function(t){t.createObjectStore(Lr.store)}(t),i.addDocumentGlobal(o)}))),n<7&&r>=7&&(a=a.next((function(){return i.ensureSequenceNumbers(o)}))),n<8&&r>=8&&(a=a.next((function(){return i.createCollectionParentIndex(t,o)}))),n<9&&r>=9&&(a=a.next((function(){!function(t){t.objectStoreNames.contains("remoteDocumentChanges")&&t.deleteObjectStore("remoteDocumentChanges")}(t),function(t){var e=t.objectStore(Rr.store);e.createIndex(Rr.readTimeIndex,Rr.readTimeIndexPath,{unique:!1}),e.createIndex(Rr.collectionReadTimeIndex,Rr.collectionReadTimeIndexPath,{unique:!1})}(e)}))),n<10&&r>=10&&(a=a.next((function(){return i.rewriteCanonicalIds(o)}))),a},t.prototype.addDocumentGlobal=function(t){var e=0;return t.store(Rr.store).ei((function(t,n){e+=or(n)})).next((function(){var n=new Lr(e);return t.store(Lr.store).put(Lr.key,n)}))},t.prototype.removeAcknowledgedMutations=function(t){var e=this,n=t.store(Ar.store),r=t.store(Or.store);return n.Ws().next((function(n){return Nn.forEach(n,(function(n){var i=IDBKeyRange.bound([n.userId,-1],[n.userId,n.lastAcknowledgedBatchId]);return r.Ws(Or.userMutationsIndex,i).next((function(r){return Nn.forEach(r,(function(r){m(r.userId===n.userId);var i=Jn(e.serializer,r);return Er(t,n.userId,i).next((function(){}))}))}))}))}))},t.prototype.ensureSequenceNumbers=function(t){var e=t.store(Mr.store),n=t.store(Rr.store);return t.store(Ur.store).get(Ur.key).next((function(t){var r=[];return n.ei((function(n,i){var o=new L(n),a=function(t){return[0,Mn(t)]}(o);r.push(e.get(a).next((function(n){return n?Nn.resolve():function(n){return e.put(new Mr(0,Mn(n),t.highestListenSequenceNumber))}(o)})))})).next((function(){return Nn.Bn(r)}))}))},t.prototype.createCollectionParentIndex=function(t,e){t.createObjectStore(Fr.store,{keyPath:Fr.keyPath});var n=e.store(Fr.store),r=new Bn,i=function(t){if(r.add(t)){var e=t.S(),i=t.p();return n.put({collectionId:e,parent:Mn(i)})}};return e.store(Rr.store).ei({xi:!0},(function(t,e){var n=new L(t);return i(n.p())})).next((function(){return e.store(Cr.store).ei({xi:!0},(function(t,e){t[0];var n=t[1],r=(t[2],Vn(n));return i(r.p())}))}))},t.prototype.rewriteCanonicalIds=function(t){var e=this,n=t.store(jr.store);return n.ei((function(t,r){var i=Zn(r),o=tr(e.serializer,i);return n.put(o)}))},t}(),xr=function(t,e){this.seconds=t,this.nanoseconds=e},Nr=function(t,e,n){this.ownerId=t,this.allowTabSynchronization=e,this.leaseTimestampMs=n};Nr.store="owner",Nr.key="owner";var Ar=function(t,e,n){this.userId=t,this.lastAcknowledgedBatchId=e,this.lastStreamToken=n};Ar.store="mutationQueues",Ar.keyPath="userId";var Or=function(t,e,n,r,i){this.userId=t,this.batchId=e,this.localWriteTimeMs=n,this.baseMutations=r,this.mutations=i};Or.store="mutations",Or.keyPath="batchId",Or.userMutationsIndex="userMutationsIndex",Or.userMutationsKeyPath=["userId","batchId"];var Cr=function(){function t(){}return t.prefixForUser=function(t){return[t]},t.prefixForPath=function(t,e){return[t,Mn(e)]},t.key=function(t,e,n){return[t,Mn(e),n]},t}();Cr.store="documentMutations",Cr.PLACEHOLDER=new Cr;var Pr=function(t,e){this.path=t,this.readTime=e},Dr=function(t,e){this.path=t,this.version=e},Rr=function(t,e,n,r,i,o){this.unknownDocument=t,this.noDocument=e,this.document=n,this.hasCommittedMutations=r,this.readTime=i,this.parentPath=o};Rr.store="remoteDocuments",Rr.readTimeIndex="readTimeIndex",Rr.readTimeIndexPath="readTime",Rr.collectionReadTimeIndex="collectionReadTimeIndex",Rr.collectionReadTimeIndexPath=["parentPath","readTime"];var Lr=function(t){this.byteSize=t};Lr.store="remoteDocumentGlobal",Lr.key="remoteDocumentGlobalKey";var jr=function(t,e,n,r,i,o,a){this.targetId=t,this.canonicalId=e,this.readTime=n,this.resumeToken=r,this.lastListenSequenceNumber=i,this.lastLimboFreeSnapshotVersion=o,this.query=a};jr.store="targets",jr.keyPath="targetId",jr.queryTargetsIndexName="queryTargetsIndex",jr.queryTargetsKeyPath=["canonicalId","targetId"];var Mr=function(t,e,n){this.targetId=t,this.path=e,this.sequenceNumber=n};Mr.store="targetDocuments",Mr.keyPath=["targetId","path"],Mr.documentTargetsIndex="documentTargetsIndex",Mr.documentTargetsKeyPath=["path","targetId"];var Ur=function(t,e,n,r){this.highestTargetId=t,this.highestListenSequenceNumber=e,this.lastRemoteSnapshotVersion=n,this.targetCount=r};Ur.key="targetGlobalKey",Ur.store="targetGlobal";var Fr=function(t,e){this.collectionId=t,this.parent=e};function Vr(t){t.createObjectStore(Mr.store,{keyPath:Mr.keyPath}).createIndex(Mr.documentTargetsIndex,Mr.documentTargetsKeyPath,{unique:!0}),t.createObjectStore(jr.store,{keyPath:jr.keyPath}).createIndex(jr.queryTargetsIndexName,jr.queryTargetsKeyPath,{unique:!0}),t.createObjectStore(Ur.store)}Fr.store="collectionParents",Fr.keyPath=["collectionId","parent"];var zr=function(t,e,n,r){this.clientId=t,this.updateTimeMs=e,this.networkEnabled=n,this.inForeground=r};zr.store="clientMetadata",zr.keyPath="clientId";var Br=i.__spreadArrays(i.__spreadArrays(i.__spreadArrays([Ar.store,Or.store,Cr.store,Rr.store,jr.store,Nr.store,Ur.store,Mr.store],[zr.store]),[Lr.store]),[Fr.store]),qr=function(){function e(t){this.db=t,12.2===e.ho(s.getUA())&&d("Firestore persistence suffers from a bug in iOS 12.2 Safari that may cause your app to stop working. See https://stackoverflow.com/q/56496296/110915 for details and a potential workaround.")}return e.Zi=function(t,n,r){return p("SimpleDb","Opening database:",t),new Nn((function(i,o){var a=indexedDB.open(t,n);a.onsuccess=function(t){var n=t.target.result;i(new e(n))},a.onblocked=function(){o(new C(O.FAILED_PRECONDITION,"Cannot upgrade IndexedDB schema while another tab is open. Close all tabs that access Firestore and reload this page to proceed."))},a.onerror=function(t){var e=t.target.error;"VersionError"===e.name?o(new C(O.FAILED_PRECONDITION,"A newer version of the Firestore SDK was previously used and so the persisted data is not compatible with the version of the SDK you are now using. The SDK will operate with persistence disabled. If you need persistence, please re-upgrade to a newer version of the SDK or else clear the persisted IndexedDB data for your app to start fresh.")):o(e)},a.onupgradeneeded=function(e){p("SimpleDb",'Database "'+t+'" requires upgrade from version:',e.oldVersion);var n=e.target.result;r.createOrUpgrade(n,a.transaction,e.oldVersion,Sr).next((function(){p("SimpleDb","Database upgrade to version "+Sr+" complete")}))}})).On()},e.delete=function(t){return p("SimpleDb","Removing database:",t),Qr(window.indexedDB.deleteDatabase(t)).On()},e.Hi=function(){if("undefined"==typeof indexedDB)return!1;if(e.ao())return!0;var t=s.getUA(),n=e.ho(t),r=00||t.indexOf("Trident/")>0||t.indexOf("Edge/")>0||r||o)},e.ao=function(){var e;return"undefined"!=typeof t&&"YES"===(null===(e=Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}))||void 0===e?void 0:e.co)},e.js=function(t,e){return t.store(e)},e.ho=function(t){var e=t.match(/i(?:phone|pad|pod) os ([\d_]+)/i),n=e?e[1].split("_").slice(0,2).join("."):"-1";return Number(n)},e.uo=function(t){var e=t.match(/Android ([\d.]+)/i),n=e?e[1].split(".").slice(0,2).join("."):"-1";return Number(n)},e.prototype.ar=function(t){this.db.onversionchange=function(e){return t(e)}},e.prototype.runTransaction=function(t,e,n){return i.__awaiter(this,void 0,void 0,(function(){var r,o,a,s,u;return i.__generator(this,(function(c){switch(c.label){case 0:r="readonly"===t,o=0,a=function(){var t,a,u,c,l;return i.__generator(this,(function(i){switch(i.label){case 0:++o,t=Kr.open(s.db,r?"readonly":"readwrite",e),i.label=1;case 1:return i.trys.push([1,3,,4]),a=n(t).catch((function(e){return t.abort(e),Nn.reject(e)})).On(),u={},a.catch((function(){})),[4,t.lo];case 2:return[2,(u.value=(i.sent(),a),u)];case 3:return c=i.sent(),l="FirebaseError"!==c.name&&o<3,p("SimpleDb","Transaction failed with error: %s. Retrying: %s.",c.message,l),l?[3,4]:[2,{value:Promise.reject(c)}];case 4:return[2]}}))},s=this,c.label=1;case 1:return[5,a()];case 2:if("object"==typeof(u=c.sent()))return[2,u.value];c.label=3;case 3:return[3,1];case 4:return[2]}}))}))},e.prototype.close=function(){this.db.close()},e}(),Gr=function(){function t(t){this._o=t,this.fo=!1,this.do=null}return Object.defineProperty(t.prototype,"$n",{get:function(){return this.fo},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"wo",{get:function(){return this.do},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cursor",{set:function(t){this._o=t},enumerable:!1,configurable:!0}),t.prototype.done=function(){this.fo=!0},t.prototype.ni=function(t){this.do=t},t.prototype.delete=function(){return Qr(this._o.delete())},t}(),Hr=function(t){function e(e){var n=this;return(n=t.call(this,O.UNAVAILABLE,"IndexedDB transaction failed: "+e)||this).name="IndexedDbTransactionError",n}return i.__extends(e,t),e}(C);function Wr(t){return"IndexedDbTransactionError"===t.name}var Kr=function(){function t(t){var e=this;this.transaction=t,this.aborted=!1,this.To=new Ln,this.transaction.oncomplete=function(){e.To.resolve()},this.transaction.onabort=function(){t.error?e.To.reject(new Hr(t.error)):e.To.resolve()},this.transaction.onerror=function(t){var n=Yr(t.target.error);e.To.reject(new Hr(n))}}return t.open=function(e,n,r){return new t(e.transaction(r,n))},Object.defineProperty(t.prototype,"lo",{get:function(){return this.To.promise},enumerable:!1,configurable:!0}),t.prototype.abort=function(t){t&&this.To.reject(t),this.aborted||(p("SimpleDb","Aborting transaction:",t?t.message:"Client-initiated abort"),this.aborted=!0,this.transaction.abort())},t.prototype.store=function(t){var e=this.transaction.objectStore(t);return new $r(e)},t}(),$r=function(){function t(t){this.store=t}return t.prototype.put=function(t,e){var n;return void 0!==e?(p("SimpleDb","PUT",this.store.name,t,e),n=this.store.put(e,t)):(p("SimpleDb","PUT",this.store.name,"",t),n=this.store.put(t)),Qr(n)},t.prototype.add=function(t){return p("SimpleDb","ADD",this.store.name,t,t),Qr(this.store.add(t))},t.prototype.get=function(t){var e=this;return Qr(this.store.get(t)).next((function(n){return void 0===n&&(n=null),p("SimpleDb","GET",e.store.name,t,n),n}))},t.prototype.delete=function(t){return p("SimpleDb","DELETE",this.store.name,t),Qr(this.store.delete(t))},t.prototype.count=function(){return p("SimpleDb","COUNT",this.store.name),Qr(this.store.count())},t.prototype.Ws=function(t,e){var n=this.cursor(this.options(t,e)),r=[];return this.Eo(n,(function(t,e){r.push(e)})).next((function(){return r}))},t.prototype.Io=function(t,e){p("SimpleDb","DELETE ALL",this.store.name);var n=this.options(t,e);n.xi=!1;var r=this.cursor(n);return this.Eo(r,(function(t,e,n){return n.delete()}))},t.prototype.ei=function(t,e){var n;e?n=t:(n={},e=t);var r=this.cursor(n);return this.Eo(r,e)},t.prototype.Qr=function(t){var e=this.cursor({});return new Nn((function(n,r){e.onerror=function(t){var e=Yr(t.target.error);r(e)},e.onsuccess=function(e){var r=e.target.result;r?t(r.primaryKey,r.value).next((function(t){t?r.continue():n()})):n()}}))},t.prototype.Eo=function(t,e){var n=[];return new Nn((function(r,i){t.onerror=function(t){i(t.target.error)},t.onsuccess=function(t){var i=t.target.result;if(i){var o=new Gr(i),a=e(i.primaryKey,i.value,o);if(a instanceof Nn){var s=a.catch((function(t){return o.done(),Nn.reject(t)}));n.push(s)}o.$n?r():null===o.wo?i.continue():i.continue(o.wo)}else r()}})).next((function(){return Nn.Bn(n)}))},t.prototype.options=function(t,e){var n=void 0;return void 0!==t&&("string"==typeof t?n=t:e=t),{index:n,range:e}},t.prototype.cursor=function(t){var e="next";if(t.reverse&&(e="prev"),t.index){var n=this.store.index(t.index);return t.xi?n.openKeyCursor(t.range,e):n.openCursor(t.range,e)}return this.store.openCursor(t.range,e)},t}();function Qr(t){return new Nn((function(e,n){t.onsuccess=function(t){var n=t.target.result;e(n)},t.onerror=function(t){var e=Yr(t.target.error);n(e)}}))}var Xr=!1;function Yr(t){var e=qr.ho(s.getUA());if(e>=12.2&&e<13){var n="An internal error was encountered in the Indexed Database server";if(t.message.indexOf(n)>=0){var r=new C("internal","IOS_INDEXEDDB_BUG1: IndexedDb has thrown '"+n+"'. This is likely due to an unavoidable bug in iOS. See https://stackoverflow.com/q/56496296/110915 for details and a potential workaround.");return Xr||(Xr=!0,setTimeout((function(){throw r}),0)),r}}return t}function Jr(){return"undefined"!=typeof window?window:null}var Zr=function(){function t(t,e,n,r,i){this.mo=t,this.vs=e,this.Ao=n,this.op=r,this.Ro=i,this.Po=new Ln,this.then=this.Po.promise.then.bind(this.Po.promise),this.Po.promise.catch((function(t){}))}return t.Vo=function(e,n,r,i,o){var a=new t(e,n,Date.now()+r,i,o);return a.start(r),a},t.prototype.start=function(t){var e=this;this.yo=setTimeout((function(){return e.po()}),t)},t.prototype.Bs=function(){return this.po()},t.prototype.cancel=function(t){null!==this.yo&&(this.clearTimeout(),this.Po.reject(new C(O.CANCELLED,"Operation cancelled"+(t?": "+t:""))))},t.prototype.po=function(){var t=this;this.mo.cr((function(){return null!==t.yo?(t.clearTimeout(),t.op().then((function(e){return t.Po.resolve(e)}))):Promise.resolve()}))},t.prototype.clearTimeout=function(){null!==this.yo&&(this.Ro(this),clearTimeout(this.yo),this.yo=null)},t}(),ti=function(){function t(){var t=this;this.bo=Promise.resolve(),this.vo=[],this.So=!1,this.Do=[],this.Co=null,this.Fo=!1,this.No=[],this.$o=new jn(this,"async_queue_retry"),this.ko=function(){return t.$o.Ls()};var e=Jr();e&&"function"==typeof e.addEventListener&&e.addEventListener("visibilitychange",this.ko)}return Object.defineProperty(t.prototype,"xo",{get:function(){return this.So},enumerable:!1,configurable:!0}),t.prototype.cr=function(t){this.enqueue(t)},t.prototype.Mo=function(t){this.Oo(),this.Lo(t)},t.prototype.Bo=function(t){return this.Oo(),this.Lo(t)},t.prototype.qo=function(t){return i.__awaiter(this,void 0,void 0,(function(){var e;return i.__generator(this,(function(n){switch(n.label){case 0:return this.Oo(),this.So?[3,2]:(this.So=!0,(e=Jr())&&e.removeEventListener("visibilitychange",this.ko),[4,this.Bo(t)]);case 1:n.sent(),n.label=2;case 2:return[2]}}))}))},t.prototype.enqueue=function(t){return this.Oo(),this.So?new Promise((function(t){})):this.Lo(t)},t.prototype._r=function(t){var e=this;this.vo.push(t),this.cr((function(){return e.Uo()}))},t.prototype.Uo=function(){return i.__awaiter(this,void 0,void 0,(function(){var t,e=this;return i.__generator(this,(function(n){switch(n.label){case 0:if(0===this.vo.length)return[3,5];n.label=1;case 1:return n.trys.push([1,3,,4]),[4,this.vo[0]()];case 2:return n.sent(),this.vo.shift(),this.$o.reset(),[3,4];case 3:if(!Wr(t=n.sent()))throw t;return p("AsyncQueue","Operation failed with retryable error: "+t),[3,4];case 4:this.vo.length>0&&this.$o.xs((function(){return e.Uo()})),n.label=5;case 5:return[2]}}))}))},t.prototype.Lo=function(t){var e=this,n=this.bo.then((function(){return e.Fo=!0,t().catch((function(t){throw e.Co=t,e.Fo=!1,d("INTERNAL UNHANDLED ERROR: ",function(t){var e=t.message||"";return t.stack&&(e=t.stack.includes(t.message)?t.stack:t.message+"\n"+t.stack),e}(t)),t})).then((function(t){return e.Fo=!1,t}))}));return this.bo=n,n},t.prototype.Os=function(t,e,n){var r=this;this.Oo(),this.No.indexOf(t)>-1&&(e=0);var i=Zr.Vo(this,t,e,n,(function(t){return r.Qo(t)}));return this.Do.push(i),i},t.prototype.Oo=function(){this.Co&&y()},t.prototype.Wo=function(){},t.prototype.jo=function(){return i.__awaiter(this,void 0,void 0,(function(){var t;return i.__generator(this,(function(e){switch(e.label){case 0:return[4,t=this.bo];case 1:e.sent(),e.label=2;case 2:if(t!==this.bo)return[3,0];e.label=3;case 3:return[2]}}))}))},t.prototype.Ko=function(t){for(var e=0,n=this.Do;el.params.rh?(p("LruGarbageCollector","Capping sequence numbers to collect down to the maximum of "+l.params.rh+" from "+e),r=l.params.rh):r=e,o=Date.now(),l.Rh(t,r)})).next((function(r){return n=r,s=Date.now(),l.vi(t,n,e)})).next((function(e){return i=e,u=Date.now(),l.Wr(t,n)})).next((function(t){return c=Date.now(),h()<=a.LogLevel.DEBUG&&p("LruGarbageCollector","LRU Garbage Collection\n\tCounted targets in "+(o-f)+"ms\n\tDetermined least recently used "+r+" in "+(s-o)+"ms\n\tRemoved "+i+" targets in "+(u-s)+"ms\n\tRemoved "+t+" documents in "+(c-u)+"ms\nTotal Duration: "+(c-f)+"ms"),Nn.resolve({Zo:!0,th:r,eh:i,nh:t})}))},t}(),ui=function(){function t(t,e,n){this.persistence=t,this.gh=e,this.yh=new tt(E),this.ph=new A((function(t){return G(t)}),H),this.bh=D.min(),this.ns=t.Dr(n),this.vh=t.Nr(),this.Ji=t.Fr(),this.Sh=new Pn(this.vh,this.ns,this.persistence.$r()),this.gh.Dh(this.Sh)}return t.prototype.start=function(){return Promise.resolve()},t.prototype.Ch=function(t){return i.__awaiter(this,void 0,void 0,(function(){var e,n,r,o=this;return i.__generator(this,(function(i){switch(i.label){case 0:return e=this.ns,n=this.Sh,[4,this.persistence.runTransaction("Handle user change","readonly",(function(r){var i;return o.ns.eo(r).next((function(a){return i=a,e=o.persistence.Dr(t),n=new Pn(o.vh,e,o.persistence.$r()),e.eo(r)})).next((function(t){for(var e=[],o=[],a=ht(),s=0,u=i;s0){var l=u.tt(c,r).Z(o.Li);i=i.nt(a,l),t.Bh(u,l,e)&&s.push(n.Ji.yi(o,l))}}}));var u=at(),c=ht();if(e.jt.forEach((function(t,e){c=c.add(t)})),s.push(a.getEntries(o,c).next((function(t){e.jt.forEach((function(i,c){var l=t.get(i);c instanceof on&&c.version.isEqual(D.min())?(a.Gn(i,r),u=u.nt(i,c)):null==l||c.version.o(l.version)>0||0===c.version.o(l.version)&&l.hasPendingWrites?(a.jn(c,r),u=u.nt(i,c)):p("LocalStore","Ignoring outdated watch update for ",i,". Current version:",l.version," Watch version:",c.version),e.Kt.has(i)&&s.push(n.persistence.wi.jr(o,i))}))}))),!r.isEqual(D.min())){var l=n.Ji.mi(o).next((function(t){return n.Ji.Ri(o,o.Li,r)}));s.push(l)}return Nn.Bn(s).next((function(){return a.apply(o)})).next((function(){return n.Sh.cs(o,u)}))})).then((function(t){return n.yh=i,t}))},t.Bh=function(t,e,n){return m(e.resumeToken.H()>0),0===t.resumeToken.H()||e.X.m()-t.X.m()>=this.qh||n.Yt.size+n.Jt.size+n.Xt.size>0},t.prototype.Uh=function(t){return i.__awaiter(this,void 0,void 0,(function(){var e,n,r,o,a,s,u,c,l=this;return i.__generator(this,(function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,this.persistence.runTransaction("notifyLocalViewChanges","readwrite",(function(e){return Nn.forEach(t,(function(t){return Nn.forEach(t.ms,(function(n){return l.persistence.wi.Fi(e,t.targetId,n)})).next((function(){return Nn.forEach(t.As,(function(n){return l.persistence.wi.$i(e,t.targetId,n)}))}))}))}))];case 1:return i.sent(),[3,3];case 2:if(!Wr(e=i.sent()))throw e;return p("LocalStore","Failed to update sequence numbers: "+e),[3,3];case 3:for(n=0,r=t;n0)&&(e.yh=e.yh.nt(n.targetId,n),e.ph.set(t,n.targetId)),n}))},t.prototype.Di=function(t,e){var n=this.ph.get(e);return void 0!==n?Nn.resolve(this.yh.get(n)):this.Ji.Di(t,e)},t.prototype.Kh=function(t,e){return i.__awaiter(this,void 0,void 0,(function(){var n,r,o,a=this;return i.__generator(this,(function(i){switch(i.label){case 0:n=this.yh.get(t),r=e?"readwrite":"readwrite-primary",i.label=1;case 1:return i.trys.push([1,4,,5]),e?[3,3]:[4,this.persistence.runTransaction("Release target",r,(function(t){return a.persistence.wi.removeTarget(t,n)}))];case 2:i.sent(),i.label=3;case 3:return[3,5];case 4:if(!Wr(o=i.sent()))throw o;return p("LocalStore","Failed to update sequence numbers for target "+t+": "+o),[3,5];case 5:return this.yh=this.yh.remove(t),this.ph.delete(n.target),[2]}}))}))},t.prototype.Gh=function(t,e){var n=this,r=D.min(),i=ht();return this.persistence.runTransaction("Execute query","readonly",(function(o){return n.Di(o,t.We()).next((function(t){if(t)return r=t.lastLimboFreeSnapshotVersion,n.Ji.ki(o,t.targetId).next((function(t){i=t}))})).next((function(){return n.gh._s(o,t,e?r:D.min(),e?i:ht())})).next((function(t){return{documents:t,zh:i}}))}))},t.prototype.Mh=function(t,e,n){var r=this,i=e.batch,o=i.keys(),a=Nn.resolve();return o.forEach((function(r){a=a.next((function(){return n.zn(t,r)})).next((function(t){var o=t,a=e.Cn.get(r);m(null!==a),(!o||o.version.o(a)<0)&&(o=i.pn(r,o,e))&&n.jn(o,e.Dn)}))})),a.next((function(){return r.ns.so(t,i)}))},t.prototype.Ih=function(t){var e=this;return this.persistence.runTransaction("Collect garbage","readwrite-primary",(function(n){return t.Ph(n,e.yh)}))},t}();function ci(t,e,n){return new ui(t,e,n)}ui.qh=3e8;var li=function(t){function e(e,n,r){var i=this;return(i=t.call(this,e,n,r)||this).persistence=e,i.ns=e.Dr(r),i.vh=e.Nr(),i.Ji=e.Fr(),i}return i.__extends(e,t),e.prototype.start=function(){return this.Hh()},e.prototype.Yh=function(t){var e=this;return this.persistence.runTransaction("Lookup mutation documents","readonly",(function(n){return e.ns.Xr(n,t).next((function(t){return t?e.Sh.us(n,t):Nn.resolve(null)}))}))},e.prototype.Jh=function(t){this.ns.io(t)},e.prototype.ur=function(t){this.persistence.ur(t)},e.prototype.Sr=function(){return this.persistence.Sr()},e.prototype.Xh=function(t){var e=this,n=this.yh.get(t);return n?Promise.resolve(n.target):this.persistence.runTransaction("Get target data","readonly",(function(n){return e.Ji.Me(n,t).next((function(t){return t?t.target:null}))}))},e.prototype.si=function(){var t=this;return this.persistence.runTransaction("Get new document changes","readonly",(function(e){return t.vh.si(e,t.bh)})).then((function(e){var n=e.ii,r=e.readTime;return t.bh=r,n}))},e.prototype.Hh=function(){return i.__awaiter(this,void 0,void 0,(function(){var t,e=this;return i.__generator(this,(function(n){switch(n.label){case 0:return t=this,[4,this.persistence.runTransaction("Synchronize last document change read time","readonly",(function(t){return e.vh.ri(t)}))];case 1:return t.bh=n.sent(),[2]}}))}))},e}(ui);function fi(t){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(e){if(t.code!==O.FAILED_PRECONDITION||t.message!==On)throw t;return p("LocalStore","Unexpectedly lost primary lease"),[2]}))}))}var hi=function(){function t(){this.Zh=new rt(pi.ta),this.ea=new rt(pi.na)}return t.prototype._=function(){return this.Zh._()},t.prototype.Fi=function(t,e){var n=new pi(t,e);this.Zh=this.Zh.add(n),this.ea=this.ea.add(n)},t.prototype.sa=function(t,e){var n=this;t.forEach((function(t){return n.Fi(t,e)}))},t.prototype.$i=function(t,e){this.ia(new pi(t,e))},t.prototype.ra=function(t,e){var n=this;t.forEach((function(t){return n.$i(t,e)}))},t.prototype.oa=function(t){var e=this,n=new U(new L([])),r=new pi(n,t),i=new pi(n,t+1),o=[];return this.ea.vt([r,i],(function(t){e.ia(t),o.push(t.key)})),o},t.prototype.ha=function(){var t=this;this.Zh.forEach((function(e){return t.ia(e)}))},t.prototype.ia=function(t){this.Zh=this.Zh.delete(t),this.ea=this.ea.delete(t)},t.prototype.aa=function(t){var e=new U(new L([])),n=new pi(e,t),r=new pi(e,t+1),i=ht();return this.ea.vt([n,r],(function(t){i=i.add(t.key)})),i},t.prototype.Mi=function(t){var e=new pi(t,0),n=this.Zh.Dt(e);return null!==n&&t.isEqual(n.key)},t}(),pi=function(){function t(t,e){this.key=t,this.ua=e}return t.ta=function(t,e){return U.P(t.key,e.key)||E(t.ua,e.ua)},t.na=function(t,e){return E(t.ua,e.ua)||U.P(t.key,e.key)},t}();function di(t,e){if(0!==e.length)throw new C(O.INVALID_ARGUMENT,"Function "+t+"() does not support arguments, but was called with "+Pi(e.length,"argument")+".")}function vi(t,e,n){if(e.length!==n)throw new C(O.INVALID_ARGUMENT,"Function "+t+"() requires "+Pi(n,"argument")+", but was called with "+Pi(e.length,"argument")+".")}function yi(t,e,n){if(e.lengthr)throw new C(O.INVALID_ARGUMENT,"Function "+t+"() requires between "+n+" and "+r+" arguments, but was called with "+Pi(e.length,"argument")+".")}function gi(t,e,n,r){Ii(t,e,Ci(n)+" argument",r)}function bi(t,e,n,r){void 0!==r&&gi(t,e,n,r)}function wi(t,e,n,r){Ii(t,e,n+" option",r)}function Ei(t,e,n,r){void 0!==r&&wi(t,e,n,r)}function _i(t,e,n,r,i){void 0!==r&&function(t,e,n,r,i){for(var o=[],a=0,s=i;a20&&(t=t.substring(0,20)+"..."),JSON.stringify(t);if("number"==typeof t||"boolean"==typeof t)return""+t;if("object"==typeof t){if(t instanceof Array)return"an array";var e=function(t){if(t.constructor){var e=/function\s+([^\s(]+)\s*\(/.exec(t.constructor.toString());if(e&&e.length>1)return e[1]}return null}(t);return e?"a custom "+e+" object":"an object"}return"function"==typeof t?"a function":y()}function xi(t,e,n){if(void 0===n)throw new C(O.INVALID_ARGUMENT,"Function "+t+"() requires a valid "+Ci(e)+" argument, but it was undefined.")}function Ni(t,e,n){x(e,(function(e,r){if(n.indexOf(e)<0)throw new C(O.INVALID_ARGUMENT,"Unknown option '"+e+"' passed to function "+t+"(). Available options: "+n.join(", "))}))}function Ai(t,e,n,r){var i=ki(r);return new C(O.INVALID_ARGUMENT,"Function "+t+"() requires its "+Ci(n)+" argument to be a "+e+", but it was: "+i)}function Oi(t,e,n){if(n<=0)throw new C(O.INVALID_ARGUMENT,"Function "+t+"() requires its "+Ci(e)+" argument to be a positive number, but it was: "+n+".")}function Ci(t){switch(t){case 1:return"first";case 2:return"second";case 3:return"third";default:return t+"th"}}function Pi(t,e){return t+" "+e+(1===t?"":"s")}function Di(){if("undefined"==typeof Uint8Array)throw new C(O.UNIMPLEMENTED,"Uint8Arrays are not available in this environment.")}function Ri(){if("undefined"==typeof atob)throw new C(O.UNIMPLEMENTED,"Blobs are unavailable in Firestore in this environment.")}var Li=function(){function t(t){Ri(),this.ca=t}return t.fromBase64String=function(e){vi("Blob.fromBase64String",arguments,1),gi("Blob.fromBase64String","string",1,e),Ri();try{return new t(K.fromBase64String(e))}catch(e){throw new C(O.INVALID_ARGUMENT,"Failed to construct Blob from Base64 string: "+e)}},t.fromUint8Array=function(e){if(vi("Blob.fromUint8Array",arguments,1),Di(),!(e instanceof Uint8Array))throw Ai("Blob.fromUint8Array","Uint8Array",1,e);return new t(K.fromUint8Array(e))},t.prototype.toBase64=function(){return vi("Blob.toBase64",arguments,0),Ri(),this.ca.toBase64()},t.prototype.toUint8Array=function(){return vi("Blob.toUint8Array",arguments,0),Di(),this.ca.toUint8Array()},t.prototype.toString=function(){return"Blob(base64: "+this.toBase64()+")"},t.prototype.isEqual=function(t){return this.ca.isEqual(t.ca)},t}(),ji=function(t){!function(t,e,n,r){if(!(e instanceof Array)||e.length<1)throw new C(O.INVALID_ARGUMENT,"Function FieldPath() requires its fieldNames argument to be an array with at least "+Pi(1,"element")+".")}(0,t);for(var e=0;e90)throw new C(O.INVALID_ARGUMENT,"Latitude must be a number between -90 and 90, but was: "+t);if(!isFinite(e)||e<-180||e>180)throw new C(O.INVALID_ARGUMENT,"Longitude must be a number between -180 and 180, but was: "+e);this.Ra=t,this.Pa=e}return Object.defineProperty(t.prototype,"latitude",{get:function(){return this.Ra},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"longitude",{get:function(){return this.Pa},enumerable:!1,configurable:!0}),t.prototype.isEqual=function(t){return this.Ra===t.Ra&&this.Pa===t.Pa},t.prototype.T=function(t){return E(this.Ra,t.Ra)||E(this.Pa,t.Pa)},t}();function Qi(t){return new Kt(t,!0)}var Xi=/^__.*__$/,Yi=function(t,e,n){this.Va=t,this.ga=e,this.ya=n},Ji=function(){function t(t,e,n){this.data=t,this.Le=e,this.fieldTransforms=n}return t.prototype.pa=function(t,e){var n=[];return null!==this.Le?n.push(new We(t,this.data,this.Le,e)):n.push(new He(t,this.data,e)),this.fieldTransforms.length>0&&n.push(new $e(t,this.fieldTransforms)),n},t}(),Zi=function(){function t(t,e,n){this.data=t,this.Le=e,this.fieldTransforms=n}return t.prototype.pa=function(t,e){var n=[new We(t,this.data,this.Le,e)];return this.fieldTransforms.length>0&&n.push(new $e(t,this.fieldTransforms)),n},t}();function to(t){switch(t){case 0:case 2:case 1:return!0;case 3:case 4:return!1;default:throw y()}}var eo=function(){function t(t,e,n,r,i,o){this.settings=t,this.s=e,this.serializer=n,this.ignoreUndefinedProperties=r,void 0===i&&this.ba(),this.fieldTransforms=i||[],this.Le=o||[]}return Object.defineProperty(t.prototype,"path",{get:function(){return this.settings.path},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"wa",{get:function(){return this.settings.wa},enumerable:!1,configurable:!0}),t.prototype.va=function(e){return new t(Object.assign(Object.assign({},this.settings),e),this.s,this.serializer,this.ignoreUndefinedProperties,this.fieldTransforms,this.Le)},t.prototype.Sa=function(t){var e,n=null===(e=this.path)||void 0===e?void 0:e.child(t),r=this.va({path:n,Ia:!1});return r.Da(t),r},t.prototype.Ca=function(t){var e,n=null===(e=this.path)||void 0===e?void 0:e.child(t),r=this.va({path:n,Ia:!1});return r.ba(),r},t.prototype.Fa=function(t){return this.va({path:void 0,Ia:!0})},t.prototype.Ta=function(t){return po(t,this.settings.methodName,this.settings.Na||!1,this.path,this.settings.Ea)},t.prototype.contains=function(t){return void 0!==this.Le.find((function(e){return t.D(e)}))||void 0!==this.fieldTransforms.find((function(e){return t.D(e.field)}))},t.prototype.ba=function(){if(this.path)for(var t=0;t=0;--h)if(!vo(l,s[h])){var p=s[h],d=u[h],v=a.Ca(p);if(d instanceof Fi&&d._a instanceof Vi)l.push(p);else{var y=so(d,v);null!=y&&(l.push(p),f.set(p,y))}}var m=new Re(l);return new Zi(f.ze(),m,a.fieldTransforms)}function ao(t,e,n,r){return void 0===r&&(r=!1),so(n,t.$a(r?4:3,e))}function so(t,e){if(co(t))return lo("Unsupported field value:",e,t),uo(t,e);if(t instanceof Fi)return function(t,e){if(!to(e.wa))throw e.Ta(t.fa+"() can only be used with update() and set()");if(!e.path)throw e.Ta(t.fa+"() is not currently supported inside arrays");var n=t.da(e);n&&e.fieldTransforms.push(n)}(t,e),null;if(e.path&&e.Le.push(e.path),t instanceof Array){if(e.settings.Ia&&4!==e.wa)throw e.Ta("Nested arrays are not supported");return function(t,e){for(var n=[],r=0,i=0,o=t;i0&&e.Le.push(e.path):x(t,(function(t,r){var i=so(r,e.Sa(t));null!=i&&(n[t]=i)})),{mapValue:{fields:n}}}function co(t){return!("object"!=typeof t||null===t||t instanceof Array||t instanceof Date||t instanceof P||t instanceof $i||t instanceof Li||t instanceof Yi||t instanceof Fi)}function lo(t,e,n){if(!co(n)||!Si(n)){var r=ki(n);throw"an object"===r?e.Ta(t+" a custom object"):e.Ta(t+" "+r)}}function fo(t,e,n){if(e instanceof ji)return e.la;if("string"==typeof e)return ho(t,e);throw po("Field path arguments must be of type string or FieldPath.",t,!1,void 0,n)}function ho(t,e,n){try{return function(t){if(t.search(Ui)>=0)throw new C(O.INVALID_ARGUMENT,"Invalid field path ("+t+"). Paths must not contain '~', '*', '/', '[', or ']'");try{return new(Mi.bind.apply(Mi,i.__spreadArrays([void 0],t.split("."))))}catch(i){throw new C(O.INVALID_ARGUMENT,"Invalid field path ("+t+"). Paths must not be empty, begin with '.', end with '.', or contain '..'")}}(e).la}catch(e){throw po((r=e)instanceof Error?r.message:r.toString(),t,!1,void 0,n)}var r}function po(t,e,n,r,i){var o=r&&!r._(),a=void 0!==i,s="Function "+e+"() called with invalid data";n&&(s+=" (via `toFirestore()`)");var u="";return(o||a)&&(u+=" (found",o&&(u+=" in field "+r),a&&(u+=" in document "+i),u+=")"),new C(O.INVALID_ARGUMENT,(s+=". ")+t+u)}function vo(t,e){return t.some((function(t){return t.isEqual(e)}))}var yo=function(){function t(t){this.uid=t}return t.prototype.zr=function(){return null!=this.uid},t.prototype.ka=function(){return this.zr()?"uid:"+this.uid:"anonymous-user"},t.prototype.isEqual=function(t){return t.uid===this.uid},t}();yo.UNAUTHENTICATED=new yo(null),yo.xa=new yo("google-credentials-uid"),yo.Ma=new yo("first-party-uid");var mo=function(t,e){this.user=e,this.type="OAuth",this.Oa={},this.Oa.Authorization="Bearer "+t},go=function(){function t(){this.La=null}return t.prototype.getToken=function(){return Promise.resolve(null)},t.prototype.Ba=function(){},t.prototype.qa=function(t){this.La=t,t(yo.UNAUTHENTICATED)},t.prototype.Ua=function(){this.La=null},t}(),bo=function(){function t(t){var e=this;this.Qa=null,this.currentUser=yo.UNAUTHENTICATED,this.Wa=!1,this.ja=0,this.La=null,this.forceRefresh=!1,this.Qa=function(){e.ja++,e.currentUser=e.Ka(),e.Wa=!0,e.La&&e.La(e.currentUser)},this.ja=0,this.auth=t.getImmediate({optional:!0}),this.auth?this.auth.addAuthTokenListener(this.Qa):(this.Qa(null),t.get().then((function(t){e.auth=t,e.Qa&&e.auth.addAuthTokenListener(e.Qa)}),(function(){})))}return t.prototype.getToken=function(){var t=this,e=this.ja,n=this.forceRefresh;return this.forceRefresh=!1,this.auth?this.auth.getToken(n).then((function(n){return t.ja!==e?(p("FirebaseCredentialsProvider","getToken aborted due to token change."),t.getToken()):n?(m("string"==typeof n.accessToken),new mo(n.accessToken,t.currentUser)):null})):Promise.resolve(null)},t.prototype.Ba=function(){this.forceRefresh=!0},t.prototype.qa=function(t){this.La=t,this.Wa&&t(this.currentUser)},t.prototype.Ua=function(){this.auth&&this.auth.removeAuthTokenListener(this.Qa),this.Qa=null,this.La=null},t.prototype.Ka=function(){var t=this.auth&&this.auth.getUid();return m(null===t||"string"==typeof t),new yo(t)},t}(),wo=function(){function t(t,e){this.Ga=t,this.za=e,this.type="FirstParty",this.user=yo.Ma}return Object.defineProperty(t.prototype,"Oa",{get:function(){var t={"X-Goog-AuthUser":this.za},e=this.Ga.auth.Ha([]);return e&&(t.Authorization=e),t},enumerable:!1,configurable:!0}),t}(),Eo=function(){function t(t,e){this.Ga=t,this.za=e}return t.prototype.getToken=function(){return Promise.resolve(new wo(this.Ga,this.za))},t.prototype.qa=function(t){t(yo.Ma)},t.prototype.Ua=function(){},t.prototype.Ba=function(){},t}(),_o=function(){function t(t,e,n,r,i,o){this.bs=t,this.Ya=n,this.Ja=r,this.Xa=i,this.listener=o,this.state=0,this.Za=0,this.tu=null,this.stream=null,this.$o=new jn(t,e)}return t.prototype.eu=function(){return 1===this.state||2===this.state||4===this.state},t.prototype.nu=function(){return 2===this.state},t.prototype.start=function(){3!==this.state?this.auth():this.su()},t.prototype.stop=function(){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){switch(t.label){case 0:return this.eu()?[4,this.close(0)]:[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}}))}))},t.prototype.iu=function(){this.state=0,this.$o.reset()},t.prototype.ru=function(){var t=this;this.nu()&&null===this.tu&&(this.tu=this.bs.Os(this.Ya,6e4,(function(){return t.ou()})))},t.prototype.hu=function(t){this.au(),this.stream.send(t)},t.prototype.ou=function(){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){return this.nu()?[2,this.close(0)]:[2]}))}))},t.prototype.au=function(){this.tu&&(this.tu.cancel(),this.tu=null)},t.prototype.close=function(t,e){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(n){switch(n.label){case 0:return this.au(),this.$o.cancel(),this.Za++,3!==t?this.$o.reset():e&&e.code===O.RESOURCE_EXHAUSTED?(d(e.toString()),d("Using maximum backoff delay to prevent overloading the backend."),this.$o.ks()):e&&e.code===O.UNAUTHENTICATED&&this.Xa.Ba(),null!==this.stream&&(this.uu(),this.stream.close(),this.stream=null),this.state=t,[4,this.listener.cu(e)];case 1:return n.sent(),[2]}}))}))},t.prototype.uu=function(){},t.prototype.auth=function(){var t=this;this.state=1;var e=this.lu(this.Za),n=this.Za;this.Xa.getToken().then((function(e){t.Za===n&&t._u(e)}),(function(n){e((function(){var e=new C(O.UNKNOWN,"Fetching auth token failed: "+n.message);return t.fu(e)}))}))},t.prototype._u=function(t){var e=this,n=this.lu(this.Za);this.stream=this.du(t),this.stream.wu((function(){n((function(){return e.state=2,e.listener.wu()}))})),this.stream.cu((function(t){n((function(){return e.fu(t)}))})),this.stream.onMessage((function(t){n((function(){return e.onMessage(t)}))}))},t.prototype.su=function(){var t=this;this.state=4,this.$o.xs((function(){return i.__awaiter(t,void 0,void 0,(function(){return i.__generator(this,(function(t){return this.state=0,this.start(),[2]}))}))}))},t.prototype.fu=function(t){return p("PersistentStream","close with error: "+t),this.stream=null,this.close(3,t)},t.prototype.lu=function(t){var e=this;return function(n){e.bs.cr((function(){return e.Za===t?n():(p("PersistentStream","stream callback skipped by getCloseGuardedDispatcher."),Promise.resolve())}))}},t}(),To=function(t){function e(e,n,r,i,o){var a=this;return(a=t.call(this,e,"listen_stream_connection_backoff","listen_stream_idle",n,r,o)||this).serializer=i,a}return i.__extends(e,t),e.prototype.du=function(t){return this.Ja.Tu("Listen",t)},e.prototype.onMessage=function(t){this.$o.reset();var e=function(t,e){var n;if("targetChange"in e){e.targetChange;var r=function(t){return"NO_CHANGE"===t?0:"ADD"===t?1:"REMOVE"===t?2:"CURRENT"===t?3:"RESET"===t?4:y()}(e.targetChange.targetChangeType||"NO_CHANGE"),i=e.targetChange.targetIds||[],o=function(t,e){return t.Oe?(m(void 0===e||"string"==typeof e),K.fromBase64String(e||"")):(m(void 0===e||e instanceof Uint8Array),K.fromUint8Array(e||new Uint8Array))}(t,e.targetChange.resumeToken),a=e.targetChange.cause,s=a&&function(t){var e=void 0===t.code?O.UNKNOWN:Z(t.code);return new C(e,t.message||"")}(a);n=new _t(r,i,o,s||null)}else if("documentChange"in e){e.documentChange;var u=e.documentChange;u.document,u.document.name,u.document.updateTime;var c=ie(t,u.document.name),l=te(u.document.updateTime),f=new Ze({mapValue:{fields:u.document.fields}}),h=new rn(c,l,f,{}),p=u.targetIds||[],d=u.removedTargetIds||[];n=new wt(p,d,h.key,h)}else if("documentDelete"in e){e.documentDelete;var v=e.documentDelete;v.document;var g=ie(t,v.document),b=v.readTime?te(v.readTime):D.min(),w=new on(g,b),E=v.removedTargetIds||[];n=new wt([],E,w.key,w)}else if("documentRemove"in e){e.documentRemove;var _=e.documentRemove;_.document;var T=ie(t,_.document),I=_.removedTargetIds||[];n=new wt([],I,T,null)}else{if(!("filter"in e))return y();e.filter;var S=e.filter;S.targetId;var k=S.count||0,x=new Y(k),N=S.targetId;n=new Et(N,x)}return n}(this.serializer,t),n=function(t){if(!("targetChange"in t))return D.min();var e=t.targetChange;return e.targetIds&&e.targetIds.length?D.min():e.readTime?te(e.readTime):D.min()}(t);return this.listener.Eu(e,n)},e.prototype.Iu=function(t){var e={};e.database=se(this.serializer),e.addTarget=function(t,e){var n,r=e.target;return(n=W(r)?{documents:he(t,r)}:{query:pe(t,r)}).targetId=e.targetId,e.resumeToken.H()>0&&(n.resumeToken=Jt(t,e.resumeToken)),n}(this.serializer,t);var n=function(t,e){var n=function(t,e){switch(e){case 0:return null;case 1:return"existence-filter-mismatch";case 2:return"limbo-document";default:return y()}}(0,e.J);return null==n?null:{"goog-listen-tags":n}}(this.serializer,t);n&&(e.labels=n),this.hu(e)},e.prototype.mu=function(t){var e={};e.database=se(this.serializer),e.removeTarget=t,this.hu(e)},e}(_o),Io=function(t){function e(e,n,r,i,o){var a=this;return(a=t.call(this,e,"write_stream_connection_backoff","write_stream_idle",n,r,o)||this).serializer=i,a.Au=!1,a}return i.__extends(e,t),Object.defineProperty(e.prototype,"Ru",{get:function(){return this.Au},enumerable:!1,configurable:!0}),e.prototype.start=function(){this.Au=!1,this.lastStreamToken=void 0,t.prototype.start.call(this)},e.prototype.uu=function(){this.Au&&this.Pu([])},e.prototype.du=function(t){return this.Ja.Tu("Write",t)},e.prototype.onMessage=function(t){if(m(!!t.streamToken),this.lastStreamToken=t.streamToken,this.Au){this.$o.reset();var e=function(t,e){return t&&t.length>0?(m(void 0!==e),t.map((function(t){return function(t,e){var n=t.updateTime?te(t.updateTime):te(e);n.isEqual(D.min())&&(n=te(e));var r=null;return t.transformResults&&t.transformResults.length>0&&(r=t.transformResults),new je(n,r)}(t,e)}))):[]}(t.writeResults,t.commitTime),n=te(t.commitTime);return this.listener.Vu(n,e)}return m(!t.writeResults||0===t.writeResults.length),this.Au=!0,this.listener.gu()},e.prototype.yu=function(){var t={};t.database=se(this.serializer),this.hu(t)},e.prototype.Pu=function(t){var e=this,n={streamToken:this.lastStreamToken,writes:t.map((function(t){return le(e.serializer,t)}))};this.hu(n)},e}(_o),So=function(t){function e(e,n,r){var i=this;return(i=t.call(this)||this).Ja=e,i.credentials=n,i.serializer=r,i.pu=!1,i}return i.__extends(e,t),e.prototype.bu=function(){if(this.pu)throw new C(O.FAILED_PRECONDITION,"The client has already been terminated.")},e.prototype.vu=function(t,e){var n=this;return this.bu(),this.credentials.getToken().then((function(r){return n.Ja.vu(t,e,r)})).catch((function(t){throw t.code===O.UNAUTHENTICATED&&n.credentials.Ba(),t}))},e.prototype.Su=function(t,e){var n=this;return this.bu(),this.credentials.getToken().then((function(r){return n.Ja.Su(t,e,r)})).catch((function(t){throw t.code===O.UNAUTHENTICATED&&n.credentials.Ba(),t}))},e}((function(){this.je=void 0})),ko=function(){function t(t){this.Du=t,this.Cu=new Map,this.mutations=[],this.Fu=!1,this.Nu=null,this.$u=new Set}return t.prototype.ku=function(t){return i.__awaiter(this,void 0,void 0,(function(){var e,n=this;return i.__generator(this,(function(r){switch(r.label){case 0:if(this.xu(),this.mutations.length>0)throw new C(O.INVALID_ARGUMENT,"Firestore transactions require all reads to be executed before all writes.");return[4,function(t,e){return i.__awaiter(this,void 0,void 0,(function(){var n,r,o,a,s;return i.__generator(this,(function(i){switch(i.label){case 0:return n=g(t),r={database:se(n.serializer),documents:e.map((function(t){return re(n.serializer,t)}))},[4,n.Su("BatchGetDocuments",r)];case 1:return o=i.sent(),a=new Map,o.forEach((function(t){var e=function(t,e){return"found"in e?function(t,e){m(!!e.found),e.found.name,e.found.updateTime;var n=ie(t,e.found.name),r=te(e.found.updateTime),i=new Ze({mapValue:{fields:e.found.fields}});return new rn(n,r,i,{})}(t,e):"missing"in e?function(t,e){m(!!e.missing),m(!!e.readTime);var n=ie(t,e.missing),r=te(e.readTime);return new on(n,r)}(t,e):y()}(n.serializer,t);a.set(e.key.toString(),e)})),s=[],[2,(e.forEach((function(t){var e=a.get(t.toString());m(!!e),s.push(e)})),s)]}}))}))}(this.Du,t)];case 1:return[2,((e=r.sent()).forEach((function(t){t instanceof on||t instanceof rn?n.Mu(t):y()})),e)]}}))}))},t.prototype.set=function(t,e){this.write(e.pa(t,this.Ue(t))),this.$u.add(t)},t.prototype.update=function(t,e){try{this.write(e.pa(t,this.Ou(t)))}catch(t){this.Nu=t}this.$u.add(t)},t.prototype.delete=function(t){this.write([new Ye(t,this.Ue(t))]),this.$u.add(t)},t.prototype.commit=function(){return i.__awaiter(this,void 0,void 0,(function(){var t,e=this;return i.__generator(this,(function(n){switch(n.label){case 0:if(this.xu(),this.Nu)throw this.Nu;return t=this.Cu,this.mutations.forEach((function(e){t.delete(e.key.toString())})),t.forEach((function(t,n){var r=new U(L.$(n));e.mutations.push(new Je(r,e.Ue(r)))})),[4,function(t,e){return i.__awaiter(this,void 0,void 0,(function(){var n,r;return i.__generator(this,(function(i){switch(i.label){case 0:return n=g(t),r={database:se(n.serializer),writes:e.map((function(t){return le(n.serializer,t)}))},[4,n.vu("Commit",r)];case 1:return i.sent(),[2]}}))}))}(this.Du,this.mutations)];case 1:return n.sent(),this.Fu=!0,[2]}}))}))},t.prototype.Mu=function(t){var e;if(t instanceof rn)e=t.version;else{if(!(t instanceof on))throw y();e=D.min()}var n=this.Cu.get(t.key.toString());if(n){if(!e.isEqual(n))throw new C(O.ABORTED,"Document version changed between two reads.")}else this.Cu.set(t.key.toString(),e)},t.prototype.Ue=function(t){var e=this.Cu.get(t.toString());return!this.$u.has(t)&&e?Me.updateTime(e):Me.Qe()},t.prototype.Ou=function(t){var e=this.Cu.get(t.toString());if(!this.$u.has(t)&&e){if(e.isEqual(D.min()))throw new C(O.INVALID_ARGUMENT,"Can't update a document that doesn't exist.");return Me.updateTime(e)}return Me.exists(!0)},t.prototype.write=function(t){this.xu(),this.mutations=this.mutations.concat(t)},t.prototype.xu=function(){},t}(),xo=function(){function t(t,e){this.mo=t,this.Lu=e,this.state="Unknown",this.Bu=0,this.qu=null,this.Uu=!0}return t.prototype.Qu=function(){var t=this;0===this.Bu&&(this.Wu("Unknown"),this.qu=this.mo.Os("online_state_timeout",1e4,(function(){return t.qu=null,t.ju("Backend didn't respond within 10 seconds."),t.Wu("Offline"),Promise.resolve()})))},t.prototype.Ku=function(t){"Online"===this.state?this.Wu("Unknown"):(this.Bu++,this.Bu>=1&&(this.Gu(),this.ju("Connection failed 1 times. Most recent error: "+t.toString()),this.Wu("Offline")))},t.prototype.set=function(t){this.Gu(),this.Bu=0,"Online"===t&&(this.Uu=!1),this.Wu(t)},t.prototype.Wu=function(t){t!==this.state&&(this.state=t,this.Lu(t))},t.prototype.ju=function(t){var e="Could not reach Cloud Firestore backend. "+t+"\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.Uu?(d(e),this.Uu=!1):p("OnlineStateTracker",e)},t.prototype.Gu=function(){null!==this.qu&&(this.qu.cancel(),this.qu=null)},t}(),No=function(){function t(t,e,n,r,o){var a=this;this.zu=t,this.Du=e,this.mo=n,this.Hu=[],this.Yu=new Map,this.Ju=null,this.Xu=new Set,this.Zu=o,this.Zu.tc((function(t){n.cr((function(){return i.__awaiter(a,void 0,void 0,(function(){return i.__generator(this,(function(t){switch(t.label){case 0:return this.ec()?(p("RemoteStore","Restarting streams for network reachability change."),[4,this.nc()]):[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}}))}))}))})),this.sc=new xo(n,r),this.ic=function(t,e,n){var r=g(t);return new To(e,r.Ja,r.credentials,r.serializer,n)}(this.Du,n,{wu:this.rc.bind(this),cu:this.oc.bind(this),Eu:this.hc.bind(this)}),this.ac=function(t,e,n){var r=g(t);return new Io(e,r.Ja,r.credentials,r.serializer,n)}(this.Du,n,{wu:this.uc.bind(this),cu:this.cc.bind(this),gu:this.lc.bind(this),Vu:this.Vu.bind(this)})}return t.prototype.start=function(){return this.enableNetwork()},t.prototype.enableNetwork=function(){return this.Xu.delete(0),this._c()},t.prototype._c=function(){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){switch(t.label){case 0:return this.ec()?(this.fc()?this.dc():this.sc.set("Unknown"),[4,this.wc()]):[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}}))}))},t.prototype.disableNetwork=function(){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){switch(t.label){case 0:return this.Xu.add(0),[4,this.Tc()];case 1:return t.sent(),this.sc.set("Offline"),[2]}}))}))},t.prototype.Tc=function(){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){switch(t.label){case 0:return[4,this.ac.stop()];case 1:return t.sent(),[4,this.ic.stop()];case 2:return t.sent(),this.Hu.length>0&&(p("RemoteStore","Stopping write stream with "+this.Hu.length+" pending writes"),this.Hu=[]),this.Ec(),[2]}}))}))},t.prototype.gr=function(){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){switch(t.label){case 0:return p("RemoteStore","RemoteStore shutting down."),this.Xu.add(5),[4,this.Tc()];case 1:return t.sent(),this.Zu.gr(),this.sc.set("Unknown"),[2]}}))}))},t.prototype.listen=function(t){this.Yu.has(t.targetId)||(this.Yu.set(t.targetId,t),this.fc()?this.dc():this.ic.nu()&&this.Ic(t))},t.prototype.mc=function(t){this.Yu.delete(t),this.ic.nu()&&this.Ac(t),0===this.Yu.size&&(this.ic.nu()?this.ic.ru():this.ec()&&this.sc.set("Unknown"))},t.prototype.Me=function(t){return this.Yu.get(t)||null},t.prototype.xe=function(t){return this.Rc.xe(t)},t.prototype.Ic=function(t){this.Ju.de(t.targetId),this.ic.Iu(t)},t.prototype.Ac=function(t){this.Ju.de(t),this.ic.mu(t)},t.prototype.dc=function(){this.Ju=new It(this),this.ic.start(),this.sc.Qu()},t.prototype.fc=function(){return this.ec()&&!this.ic.eu()&&this.Yu.size>0},t.prototype.ec=function(){return 0===this.Xu.size},t.prototype.Ec=function(){this.Ju=null},t.prototype.rc=function(){return i.__awaiter(this,void 0,void 0,(function(){var t=this;return i.__generator(this,(function(e){return this.Yu.forEach((function(e,n){t.Ic(e)})),[2]}))}))},t.prototype.oc=function(t){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(e){return this.Ec(),this.fc()?(this.sc.Ku(t),this.dc()):this.sc.set("Unknown"),[2]}))}))},t.prototype.hc=function(t,e){return i.__awaiter(this,void 0,void 0,(function(){var n,r,o;return i.__generator(this,(function(i){switch(i.label){case 0:if(this.sc.set("Online"),!(t instanceof _t&&2===t.state&&t.cause))return[3,6];i.label=1;case 1:return i.trys.push([1,3,,5]),[4,this.Pc(t)];case 2:return i.sent(),[3,5];case 3:return n=i.sent(),p("RemoteStore","Failed to remove targets %s: %s ",t.targetIds.join(","),n),[4,this.Vc(n)];case 4:return i.sent(),[3,5];case 5:return[3,13];case 6:if(t instanceof wt?this.Ju.Pe(t):t instanceof Et?this.Ju.De(t):this.Ju.ye(t),e.isEqual(D.min()))return[3,13];i.label=7;case 7:return i.trys.push([7,11,,13]),[4,this.zu.mi()];case 8:return r=i.sent(),e.o(r)>=0?[4,this.gc(e)]:[3,10];case 9:i.sent(),i.label=10;case 10:return[3,13];case 11:return p("RemoteStore","Failed to raise snapshot:",o=i.sent()),[4,this.Vc(o)];case 12:return i.sent(),[3,13];case 13:return[2]}}))}))},t.prototype.Vc=function(t,e){return i.__awaiter(this,void 0,void 0,(function(){var n=this;return i.__generator(this,(function(r){switch(r.label){case 0:if(!Wr(t))throw t;return this.Xu.add(1),[4,this.Tc()];case 1:return r.sent(),this.sc.set("Offline"),e||(e=function(){return n.zu.mi()}),this.mo._r((function(){return i.__awaiter(n,void 0,void 0,(function(){return i.__generator(this,(function(t){switch(t.label){case 0:return p("RemoteStore","Retrying IndexedDB access"),[4,e()];case 1:return t.sent(),this.Xu.delete(1),[4,this._c()];case 2:return t.sent(),[2]}}))}))})),[2]}}))}))},t.prototype.yc=function(t){var e=this;return t().catch((function(n){return e.Vc(n,t)}))},t.prototype.gc=function(t){var e=this,n=this.Ju.Ne(t);return n.Qt.forEach((function(n,r){if(n.resumeToken.H()>0){var i=e.Yu.get(r);i&&e.Yu.set(r,i.tt(n.resumeToken,t))}})),n.Wt.forEach((function(t){var n=e.Yu.get(t);if(n){e.Yu.set(t,n.tt(K.Y,n.X)),e.Ac(t);var r=new X(n.target,t,1,n.sequenceNumber);e.Ic(r)}})),this.Rc.Lh(n)},t.prototype.Pc=function(t){return i.__awaiter(this,void 0,void 0,(function(){var e,n,r,o;return i.__generator(this,(function(i){switch(i.label){case 0:e=t.cause,n=0,r=t.targetIds,i.label=1;case 1:return n0?this.Hu[this.Hu.length-1].batchId:-1,r.label=1;case 1:if(!this.bc())return[3,7];r.label=2;case 2:return r.trys.push([2,4,,6]),[4,this.zu.Qh(t)];case 3:return null===(e=r.sent())?(0===this.Hu.length&&this.ac.ru(),[3,7]):(t=e.batchId,this.vc(e),[3,6]);case 4:return n=r.sent(),[4,this.Vc(n)];case 5:return r.sent(),[3,6];case 6:return[3,1];case 7:return this.Sc()&&this.Dc(),[2]}}))}))},t.prototype.bc=function(){return this.ec()&&this.Hu.length<10},t.prototype.Cc=function(){return this.Hu.length},t.prototype.vc=function(t){this.Hu.push(t),this.ac.nu()&&this.ac.Ru&&this.ac.Pu(t.mutations)},t.prototype.Sc=function(){return this.ec()&&!this.ac.eu()&&this.Hu.length>0},t.prototype.Dc=function(){this.ac.start()},t.prototype.uc=function(){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){return this.ac.yu(),[2]}))}))},t.prototype.lc=function(){return i.__awaiter(this,void 0,void 0,(function(){var t,e,n;return i.__generator(this,(function(r){for(t=0,e=this.Hu;t0||c&&n.Nl(f,c)<0)&&(s=!0)):!l&&f?(r.track({type:0,doc:f}),d=!0):l&&!f&&(r.track({type:1,doc:l}),d=!0,(u||c)&&(s=!0)),d&&(f?(a=a.add(f),o=p?o.add(t):o.delete(t)):(a=a.delete(t),o=o.delete(t)))})),this.query.In()||this.query.mn())for(;a.size>this.query.limit;){var l=this.query.In()?a.last():a.first();a=a.delete(l.key),o=o.delete(l.key),r.track({type:1,doc:l})}return{$l:a,Ml:r,Ll:s,Lt:o}},t.prototype.Ol=function(t,e){return t.Ge&&e.hasCommittedMutations&&!e.Ge},t.prototype.Jn=function(t,e,n){var r=this,i=this.$l;this.$l=t.$l,this.Lt=t.Lt;var o=t.Ml.Mt();o.sort((function(t,e){return function(t,e){var n=function(t){switch(t){case 0:return 1;case 2:case 3:return 2;case 1:return 0;default:return y()}};return n(t)-n(e)}(t.type,e.type)||r.Nl(t.doc,e.doc)})),this.Bl(n);var a=e?this.ql():[],s=0===this.Fl.size&&this.Ht?1:0,u=s!==this.Cl;return this.Cl=s,0!==o.length||u?{snapshot:new mt(this.query,t.$l,i,o,t.Lt,0===s,u,!1),Ul:a}:{Ul:a}},t.prototype.Ql=function(t){return this.Ht&&"Offline"===t?(this.Ht=!1,this.Jn({$l:this.$l,Ml:new yt,Lt:this.Lt,Ll:!1},!1)):{Ul:[]}},t.prototype.Wl=function(t){return!this.Dl.has(t)&&!!this.$l.has(t)&&!this.$l.get(t).Ge},t.prototype.Bl=function(t){var e=this;t&&(t.Yt.forEach((function(t){return e.Dl=e.Dl.add(t)})),t.Jt.forEach((function(t){})),t.Xt.forEach((function(t){return e.Dl=e.Dl.delete(t)})),this.Ht=t.Ht)},t.prototype.ql=function(){var t=this;if(!this.Ht)return[];var e=this.Fl;this.Fl=ht(),this.$l.forEach((function(e){t.Wl(e.key)&&(t.Fl=t.Fl.add(e.key))}));var n=[];return e.forEach((function(e){t.Fl.has(e)||n.push(new Vo(e))})),this.Fl.forEach((function(t){e.has(t)||n.push(new Fo(t))})),n},t.prototype.jl=function(t){this.Dl=t.zh,this.Fl=ht();var e=this.xl(t.documents);return this.Jn(e,!0)},t.prototype.Kl=function(){return mt.Ut(this.query,this.$l,this.Lt,0===this.Cl)},t}(),Bo=function(){function t(t,e,n,r){this.mo=t,this.Du=e,this.updateFunction=n,this.Po=r,this.Gl=5,this.$o=new jn(this.mo,"transaction_retry")}return t.prototype.run=function(){this.zl()},t.prototype.zl=function(){var t=this;this.$o.xs((function(){return i.__awaiter(t,void 0,void 0,(function(){var t,e,n=this;return i.__generator(this,(function(r){return t=new ko(this.Du),(e=this.Hl(t))&&e.then((function(e){n.mo.cr((function(){return t.commit().then((function(){n.Po.resolve(e)})).catch((function(t){n.Yl(t)}))}))})).catch((function(t){n.Yl(t)})),[2]}))}))}))},t.prototype.Hl=function(t){try{var e=this.updateFunction(t);return!F(e)&&e.catch&&e.then?e:(this.Po.reject(Error("Transaction callback must return a Promise")),null)}catch(t){return this.Po.reject(t),null}},t.prototype.Yl=function(t){var e=this;this.Gl>0&&this.Jl(t)?(this.Gl-=1,this.mo.cr((function(){return e.zl(),Promise.resolve()}))):this.Po.reject(t)},t.prototype.Jl=function(t){if("FirebaseError"===t.name){var e=t.code;return"aborted"===e||"failed-precondition"===e||!J(e)}return!1},t}(),qo=function(t,e,n){this.query=t,this.targetId=e,this.view=n},Go=function(t){this.key=t,this.Xl=!1},Ho=function(){function t(t,e,n,r,i,o){this.zu=t,this.Zl=e,this.Du=n,this.t_=r,this.currentUser=i,this.e_=o,this.n_=null,this.s_=new A((function(t){return cn(t)}),un),this.i_=new Map,this.r_=[],this.o_=new tt(U.P),this.h_=new Map,this.a_=new hi,this.u_={},this.c_=new Map,this.l_=ar.di(),this.onlineState="Unknown"}return Object.defineProperty(t.prototype,"__",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.subscribe=function(t){this.n_=t},t.prototype.listen=function(t){return i.__awaiter(this,void 0,void 0,(function(){var e,n,r,o,a;return i.__generator(this,(function(i){switch(i.label){case 0:return this.f_("listen()"),(r=this.s_.get(t))?(e=r.targetId,this.t_.ul(e),n=r.view.Kl(),[3,4]):[3,1];case 1:return[4,this.zu.jh(t.We())];case 2:return o=i.sent(),a=this.t_.ul(o.targetId),e=o.targetId,[4,this.d_(t,e,"current"===a)];case 3:n=i.sent(),this.__&&this.Zl.listen(o),i.label=4;case 4:return[2,n]}}))}))},t.prototype.d_=function(t,e,n){return i.__awaiter(this,void 0,void 0,(function(){var r,o,a,s,u,c;return i.__generator(this,(function(i){switch(i.label){case 0:return[4,this.zu.Gh(t,!0)];case 1:return r=i.sent(),o=new zo(t,r.zh),a=o.xl(r.documents),s=bt.zt(e,n&&"Offline"!==this.onlineState),u=o.Jn(a,this.__,s),this.w_(e,u.Ul),c=new qo(t,e,o),[2,(this.s_.set(t,c),this.i_.has(e)?this.i_.get(e).push(t):this.i_.set(e,[t]),u.snapshot)]}}))}))},t.prototype.mc=function(t){return i.__awaiter(this,void 0,void 0,(function(){var e,n,r=this;return i.__generator(this,(function(i){switch(i.label){case 0:return this.f_("unlisten()"),e=this.s_.get(t),(n=this.i_.get(e.targetId)).length>1?[2,(this.i_.set(e.targetId,n.filter((function(e){return!un(e,t)}))),void this.s_.delete(t))]:this.__?(this.t_.ll(e.targetId),this.t_.il(e.targetId)?[3,2]:[4,this.zu.Kh(e.targetId,!1).then((function(){r.t_.fl(e.targetId),r.Zl.mc(e.targetId),r.T_(e.targetId)})).catch(fi)]):[3,3];case 1:i.sent(),i.label=2;case 2:return[3,5];case 3:return this.T_(e.targetId),[4,this.zu.Kh(e.targetId,!0)];case 4:i.sent(),i.label=5;case 5:return[2]}}))}))},t.prototype.write=function(t,e){return i.__awaiter(this,void 0,void 0,(function(){var n,r,o;return i.__generator(this,(function(i){switch(i.label){case 0:this.f_("write()"),i.label=1;case 1:return i.trys.push([1,5,,6]),[4,this.zu.kh(t)];case 2:return n=i.sent(),this.t_.rl(n.batchId),this.E_(n.batchId,e),[4,this.I_(n.Un)];case 3:return i.sent(),[4,this.Zl.wc()];case 4:return i.sent(),[3,6];case 5:return r=i.sent(),o=ei(r,"Failed to persist write"),e.reject(o),[3,6];case 6:return[2]}}))}))},t.prototype.runTransaction=function(t,e,n){new Bo(t,this.Du,e,n).run()},t.prototype.Lh=function(t){return i.__awaiter(this,void 0,void 0,(function(){var e,n=this;return i.__generator(this,(function(r){switch(r.label){case 0:this.f_("applyRemoteEvent()"),r.label=1;case 1:return r.trys.push([1,4,,6]),[4,this.zu.Lh(t)];case 2:return e=r.sent(),t.Qt.forEach((function(t,e){var r=n.h_.get(e);r&&(m(t.Yt.size+t.Jt.size+t.Xt.size<=1),t.Yt.size>0?r.Xl=!0:t.Jt.size>0?m(r.Xl):t.Xt.size>0&&(m(r.Xl),r.Xl=!1))})),[4,this.I_(e,t)];case 3:return r.sent(),[3,6];case 4:return[4,fi(r.sent())];case 5:return r.sent(),[3,6];case 6:return[2]}}))}))},t.prototype.Ql=function(t,e){this.f_("applyOnlineStateChange()");var n=[];this.s_.forEach((function(e,r){var i=r.view.Ql(t);i.snapshot&&n.push(i.snapshot)})),this.n_.m_(t),this.n_.Eu(n),this.onlineState=t},t.prototype.pc=function(t,e){return i.__awaiter(this,void 0,void 0,(function(){var n,r,o,a,s,u=this;return i.__generator(this,(function(i){switch(i.label){case 0:return this.f_("rejectListens()"),this.t_.dl(t,"rejected",e),n=this.h_.get(t),(r=n&&n.key)?(o=(o=new tt(U.P)).nt(r,new on(r,D.min())),a=ht().add(r),s=new gt(D.min(),new Map,new rt(E),o,a),[4,this.Lh(s)]):[3,2];case 1:return i.sent(),this.o_=this.o_.remove(r),this.h_.delete(t),this.A_(),[3,4];case 2:return[4,this.zu.Kh(t,!1).then((function(){return u.T_(t,e)})).catch(fi)];case 3:i.sent(),i.label=4;case 4:return[2]}}))}))},t.prototype.Fc=function(t){return i.__awaiter(this,void 0,void 0,(function(){var e,n;return i.__generator(this,(function(r){switch(r.label){case 0:this.f_("applySuccessfulWrite()"),e=t.batch.batchId,r.label=1;case 1:return r.trys.push([1,4,,6]),[4,this.zu.xh(t)];case 2:return n=r.sent(),this.R_(e,null),this.P_(e),this.t_.hl(e,"acknowledged"),[4,this.I_(n)];case 3:return r.sent(),[3,6];case 4:return[4,fi(r.sent())];case 5:return r.sent(),[3,6];case 6:return[2]}}))}))},t.prototype.$c=function(t,e){return i.__awaiter(this,void 0,void 0,(function(){var n;return i.__generator(this,(function(r){switch(r.label){case 0:this.f_("rejectFailedWrite()"),r.label=1;case 1:return r.trys.push([1,4,,6]),[4,this.zu.Oh(t)];case 2:return n=r.sent(),this.R_(t,e),this.P_(t),this.t_.hl(t,"rejected",e),[4,this.I_(n)];case 3:return r.sent(),[3,6];case 4:return[4,fi(r.sent())];case 5:return r.sent(),[3,6];case 6:return[2]}}))}))},t.prototype.V_=function(t){return i.__awaiter(this,void 0,void 0,(function(){var e,n,r,o;return i.__generator(this,(function(i){switch(i.label){case 0:this.Zl.ec()||p("SyncEngine","The network is disabled. The task returned by 'awaitPendingWrites()' will not complete until the network is enabled."),i.label=1;case 1:return i.trys.push([1,3,,4]),[4,this.zu.to()];case 2:return-1===(e=i.sent())?[2,void t.resolve()]:((n=this.c_.get(e)||[]).push(t),this.c_.set(e,n),[3,4]);case 3:return r=i.sent(),o=ei(r,"Initialization of waitForPendingWrites() operation failed"),t.reject(o),[3,4];case 4:return[2]}}))}))},t.prototype.P_=function(t){(this.c_.get(t)||[]).forEach((function(t){t.resolve()})),this.c_.delete(t)},t.prototype.g_=function(t){this.c_.forEach((function(e){e.forEach((function(e){e.reject(new C(O.CANCELLED,t))}))})),this.c_.clear()},t.prototype.E_=function(t,e){var n=this.u_[this.currentUser.ka()];n||(n=new tt(E)),n=n.nt(t,e),this.u_[this.currentUser.ka()]=n},t.prototype.R_=function(t,e){var n=this.u_[this.currentUser.ka()];if(n){var r=n.get(t);r&&(e?r.reject(e):r.resolve(),n=n.remove(t)),this.u_[this.currentUser.ka()]=n}},t.prototype.T_=function(t,e){var n=this;void 0===e&&(e=null),this.t_.ll(t);for(var r=0,i=this.i_.get(t);r0&&this.o_.size=0&&(r.listeners.splice(o,1),n=0===r.listeners.length),n?[2,(this.M_.delete(e),this.Rc.mc(e))]:[2]}))}))},t.prototype.Eu=function(t){for(var e=!1,n=0,r=t;n0)return!0;var e=this.j_&&this.j_.hasPendingWrites!==t.hasPendingWrites;return!(!t.Bt&&!e)&&!0===this.options.includeMetadataChanges},t.prototype.z_=function(t){t=mt.Ut(t.query,t.docs,t.Lt,t.fromCache),this.W_=!0,this.Q_.next(t)},t}(),Yo=function(){function t(){}return t.prototype.Dh=function(t){this.Y_=t},t.prototype._s=function(t,e,n,r){var i=this;return e.En()||n.isEqual(D.min())?this.J_(t,e):this.Y_.us(t,r).next((function(o){var s=i.X_(e,o);return(e.In()||e.mn())&&i.Ll(e.nn,s,r,n)?i.J_(t,e):(h()<=a.LogLevel.DEBUG&&p("IndexFreeQueryEngine","Re-using previous result from %s to execute query: %s",n.toString(),ln(e)),i.Y_._s(t,e,n).next((function(t){return s.forEach((function(e){t=t.nt(e.key,e)})),t})))}))},t.prototype.X_=function(t,e){var n=new rt(hn(t));return e.forEach((function(e,r){r instanceof rn&&fn(t,r)&&(n=n.add(r))})),n},t.prototype.Ll=function(t,e,n,r){if(n.size!==e.size)return!0;var i="F"===t?e.last():e.first();return!!i&&(i.hasPendingWrites||i.version.o(r)>0)},t.prototype.J_=function(t,e){return h()<=a.LogLevel.DEBUG&&p("IndexFreeQueryEngine","Using full collection scan to execute query:",ln(e)),this.Y_._s(t,e,D.min())},t}(),Jo=function(){function t(t,e){this.ss=t,this.wi=e,this.ns=[],this.Z_=1,this.tf=new rt(pi.ta)}return t.prototype.Hr=function(t){return Nn.resolve(0===this.ns.length)},t.prototype.Yr=function(t,e,n,r){var i=this.Z_;this.Z_++,this.ns.length>0&&this.ns[this.ns.length-1];var o=new kn(i,e,n,r);this.ns.push(o);for(var a=0,s=r;ai?this.ns[i]:null)},t.prototype.to=function(){return Nn.resolve(0===this.ns.length?-1:this.Z_-1)},t.prototype.eo=function(t){return Nn.resolve(this.ns.slice())},t.prototype.os=function(t,e){var n=this,r=new pi(e,0),i=new pi(e,Number.POSITIVE_INFINITY),o=[];return this.tf.vt([r,i],(function(t){var e=n.ef(t.ua);o.push(e)})),Nn.resolve(o)},t.prototype.ls=function(t,e){var n=this,r=new rt(E);return e.forEach((function(t){var e=new pi(t,0),i=new pi(t,Number.POSITIVE_INFINITY);n.tf.vt([e,i],(function(t){r=r.add(t.ua)}))})),Nn.resolve(this.sf(r))},t.prototype.Es=function(t,e){var n=e.path,r=n.length+1,i=n;U.W(i)||(i=i.child(""));var o=new pi(new U(i),0),a=new rt(E);return this.tf.St((function(t){var e=t.key.path;return!!n.D(e)&&(e.length===r&&(a=a.add(t.ua)),!0)}),o),Nn.resolve(this.sf(a))},t.prototype.sf=function(t){var e=this,n=[];return t.forEach((function(t){var r=e.ef(t);null!==r&&n.push(r)})),n},t.prototype.so=function(t,e){var n=this;m(0===this.if(e.batchId,"removed")),this.ns.shift();var r=this.tf;return Nn.forEach(e.mutations,(function(i){var o=new pi(i.key,e.batchId);return r=r.delete(o),n.wi.qr(t,i.key)})).next((function(){n.tf=r}))},t.prototype.io=function(t){},t.prototype.Mi=function(t,e){var n=new pi(e,0),r=this.tf.Dt(n);return Nn.resolve(e.isEqual(r&&r.key))},t.prototype.ro=function(t){return this.ns.length,Nn.resolve()},t.prototype.if=function(t,e){return this.nf(t)},t.prototype.nf=function(t){return 0===this.ns.length?0:t-this.ns[0].batchId},t.prototype.ef=function(t){var e=this.nf(t);return e<0||e>=this.ns.length?null:this.ns[e]},t}(),Zo=function(){function t(t,e){this.ss=t,this.rf=e,this.docs=new tt(U.P),this.size=0}return t.prototype.jn=function(t,e,n){var r=e.key,i=this.docs.get(r),o=i?i.size:0,a=this.rf(e);return this.docs=this.docs.nt(r,{Ys:e,size:a,readTime:n}),this.size+=a-o,this.ss.Us(t,r.path.p())},t.prototype.Gn=function(t){var e=this.docs.get(t);e&&(this.docs=this.docs.remove(t),this.size-=e.size)},t.prototype.zn=function(t,e){var n=this.docs.get(e);return Nn.resolve(n?n.Ys:null)},t.prototype.getEntries=function(t,e){var n=this,r=st();return e.forEach((function(t){var e=n.docs.get(t);r=r.nt(t,e?e.Ys:null)})),Nn.resolve(r)},t.prototype._s=function(t,e,n){for(var r=ct(),i=new U(e.path.child("")),o=this.docs.ut(i);o.wt();){var a=o.dt(),s=a.key,u=a.value,c=u.Ys,l=u.readTime;if(!e.path.D(s.path))break;l.o(n)<=0||c instanceof rn&&fn(e,c)&&(r=r.nt(c.key,c))}return Nn.resolve(r)},t.prototype.hf=function(t,e){return Nn.forEach(this.docs,(function(t){return e(t)}))},t.prototype.oi=function(e){return new t.hi(this)},t.prototype.ui=function(t){return Nn.resolve(this.size)},t}();Zo.hi=function(t){function e(e){var n=this;return(n=t.call(this)||this).ci=e,n}return i.__extends(e,t),e.prototype.Jn=function(t){var e=this,n=[];return this.Un.forEach((function(r,i){i?n.push(e.ci.jn(t,i,e.readTime)):e.ci.Gn(r)})),Nn.Bn(n)},e.prototype.Hn=function(t,e){return this.ci.zn(t,e)},e.prototype.Yn=function(t,e){return this.ci.getEntries(t,e)},e}(An);var ta=function(){function t(t){this.persistence=t,this.af=new A((function(t){return G(t)}),H),this.lastRemoteSnapshotVersion=D.min(),this.highestTargetId=0,this.uf=0,this.cf=new hi,this.targetCount=0,this.lf=ar.fi()}return t.prototype.pe=function(t,e){return this.af.forEach((function(t,n){return e(n)})),Nn.resolve()},t.prototype.mi=function(t){return Nn.resolve(this.lastRemoteSnapshotVersion)},t.prototype.Ai=function(t){return Nn.resolve(this.uf)},t.prototype.Ti=function(t){return this.highestTargetId=this.lf.next(),Nn.resolve(this.highestTargetId)},t.prototype.Ri=function(t,e,n){return n&&(this.lastRemoteSnapshotVersion=n),e>this.uf&&(this.uf=e),Nn.resolve()},t.prototype.Vi=function(t){this.af.set(t.target,t);var e=t.targetId;e>this.highestTargetId&&(this.lf=new ar(e),this.highestTargetId=e),t.sequenceNumber>this.uf&&(this.uf=t.sequenceNumber)},t.prototype.Pi=function(t,e){return this.Vi(e),this.targetCount+=1,Nn.resolve()},t.prototype.yi=function(t,e){return this.Vi(e),Nn.resolve()},t.prototype.pi=function(t,e){return this.af.delete(e.target),this.cf.oa(e.targetId),this.targetCount-=1,Nn.resolve()},t.prototype.vi=function(t,e,n){var r=this,i=0,o=[];return this.af.forEach((function(a,s){s.sequenceNumber<=e&&null===n.get(s.targetId)&&(r.af.delete(a),o.push(r.bi(t,s.targetId)),i++)})),Nn.Bn(o).next((function(){return i}))},t.prototype.Si=function(t){return Nn.resolve(this.targetCount)},t.prototype.Di=function(t,e){var n=this.af.get(e)||null;return Nn.resolve(n)},t.prototype.Ci=function(t,e,n){return this.cf.sa(e,n),Nn.resolve()},t.prototype.Ni=function(t,e,n){this.cf.ra(e,n);var r=this.persistence.wi,i=[];return r&&e.forEach((function(e){i.push(r.qr(t,e))})),Nn.Bn(i)},t.prototype.bi=function(t,e){return this.cf.oa(e),Nn.resolve()},t.prototype.ki=function(t,e){var n=this.cf.aa(e);return Nn.resolve(n)},t.prototype.Mi=function(t,e){return Nn.resolve(this.cf.Mi(e))},t}(),ea=function(){function t(t){var e=this;this._f={},this.Ui=new Rn(0),this.Qi=!1,this.Qi=!0,this.wi=t(this),this.Ji=new ta(this),this.ss=new zn,this.es=new Zo(this.ss,(function(t){return e.wi.ff(t)}))}return t.prototype.start=function(){return Promise.resolve()},t.prototype.gr=function(){return this.Qi=!1,Promise.resolve()},Object.defineProperty(t.prototype,"or",{get:function(){return this.Qi},enumerable:!1,configurable:!0}),t.prototype.hr=function(){},t.prototype.$r=function(){return this.ss},t.prototype.Dr=function(t){var e=this._f[t.ka()];return e||(e=new Jo(this.ss,this.wi),this._f[t.ka()]=e),e},t.prototype.Fr=function(){return this.Ji},t.prototype.Nr=function(){return this.es},t.prototype.runTransaction=function(t,e,n){var r=this;p("MemoryPersistence","Starting transaction:",t);var i=new na(this.Ui.next());return this.wi.df(),n(i).next((function(t){return r.wi.wf(i).next((function(){return t}))})).On().then((function(t){return i.ts(),t}))},t.prototype.Tf=function(t,e){return Nn.qn(Object.values(this._f).map((function(n){return function(){return n.Mi(t,e)}})))},t}(),na=function(t){function e(e){var n=this;return(n=t.call(this)||this).Li=e,n}return i.__extends(e,t),e}(Cn),ra=function(){function t(t){this.persistence=t,this.Ef=new hi,this.If=null}return t.mf=function(e){return new t(e)},Object.defineProperty(t.prototype,"Af",{get:function(){if(this.If)return this.If;throw y()},enumerable:!1,configurable:!0}),t.prototype.Fi=function(t,e,n){return this.Ef.Fi(n,e),this.Af.delete(n),Nn.resolve()},t.prototype.$i=function(t,e,n){return this.Ef.$i(n,e),this.Af.add(n),Nn.resolve()},t.prototype.qr=function(t,e){return this.Af.add(e),Nn.resolve()},t.prototype.removeTarget=function(t,e){var n=this;this.Ef.oa(e.targetId).forEach((function(t){return n.Af.add(t)}));var r=this.persistence.Fr();return r.ki(t,e.targetId).next((function(t){t.forEach((function(t){return n.Af.add(t)}))})).next((function(){return r.pi(t,e)}))},t.prototype.df=function(){this.If=new Set},t.prototype.wf=function(t){var e=this,n=this.persistence.Nr().oi();return Nn.forEach(this.Af,(function(r){return e.Rf(t,r).next((function(t){t||n.Gn(r)}))})).next((function(){return e.If=null,n.apply(t)}))},t.prototype.jr=function(t,e){var n=this;return this.Rf(t,e).next((function(t){t?n.Af.delete(e):n.Af.add(e)}))},t.prototype.ff=function(t){return 0},t.prototype.Rf=function(t,e){var n=this;return Nn.qn([function(){return Nn.resolve(n.Ef.Mi(e))},function(){return n.persistence.Fr().Mi(t,e)},function(){return n.persistence.Tf(t,e)}])},t}(),ia=function(){function t(t){this.Pf=t.Pf,this.Vf=t.Vf}return t.prototype.wu=function(t){this.gf=t},t.prototype.cu=function(t){this.yf=t},t.prototype.onMessage=function(t){this.pf=t},t.prototype.close=function(){this.Vf()},t.prototype.send=function(t){this.Pf(t)},t.prototype.bf=function(){this.gf()},t.prototype.vf=function(t){this.yf(t)},t.prototype.Sf=function(t){this.pf(t)},t}(),oa={BatchGetDocuments:"batchGet",Commit:"commit"},aa="gl-js/ fire/"+l,sa=function(){function t(t){this.s=t.s;var e=t.ssl?"https":"http";this.Df=e+"://"+t.host,this.forceLongPolling=t.forceLongPolling}return t.prototype.Cf=function(t,e){if(e)for(var n in e.Oa)e.Oa.hasOwnProperty(n)&&(t[n]=e.Oa[n]);t["X-Goog-Api-Client"]=aa},t.prototype.vu=function(t,e,n){var r=this,i=this.Ff(t);return new Promise((function(o,a){var s=new u.XhrIo;s.listenOnce(u.EventType.COMPLETE,(function(){try{switch(s.getLastErrorCode()){case u.ErrorCode.NO_ERROR:var e=s.getResponseJson();p("Connection","XHR received:",JSON.stringify(e)),o(e);break;case u.ErrorCode.TIMEOUT:p("Connection",'RPC "'+t+'" timed out'),a(new C(O.DEADLINE_EXCEEDED,"Request time out"));break;case u.ErrorCode.HTTP_ERROR:var n=s.getStatus();if(p("Connection",'RPC "'+t+'" failed with status:',n,"response text:",s.getResponseText()),n>0){var r=s.getResponseJson().error;if(r&&r.status&&r.message){var i=function(t){var e=t.toLowerCase().replace("_","-");return Object.values(O).indexOf(e)>=0?e:O.UNKNOWN}(r.status);a(new C(i,r.message))}else a(new C(O.UNKNOWN,"Server responded with status "+s.getStatus()))}else p("Connection",'RPC "'+t+'" failed'),a(new C(O.UNAVAILABLE,"Connection failed."));break;default:y()}}finally{p("Connection",'RPC "'+t+'" completed.')}}));var c=Object.assign({},e);delete c.database;var l=JSON.stringify(c);p("Connection","XHR sending: ",i+" "+l);var f={"Content-Type":"text/plain"};r.Cf(f,n),s.send(i,"POST",l,f,15)}))},t.prototype.Su=function(t,e,n){return this.vu(t,e,n)},t.prototype.Tu=function(t,e){var n=[this.Df,"/","google.firestore.v1.Firestore","/",t,"/channel"],r=u.createWebChannelTransport(),o={httpSessionIdParam:"gsessionid",initMessageHeaders:{},messageUrlParams:{database:"projects/"+this.s.projectId+"/databases/"+this.s.database},sendRawJson:!0,supportsCrossDomainXhr:!0,internalChannelParams:{forwardChannelRequestTimeoutMs:6e5},forceLongPolling:this.forceLongPolling};this.Cf(o.initMessageHeaders,e),s.isMobileCordova()||s.isReactNative()||s.isElectron()||s.isIE()||s.isUWP()||s.isBrowserExtension()||(o.httpHeadersOverwriteParam="$httpHeaders");var c=n.join("");p("Connection","Creating WebChannel: "+c+" "+o);var h=r.createWebChannel(c,o),d=!1,y=!1,g=new ia({Pf:function(t){y?p("Connection","Not sending because WebChannel is closed:",t):(d||(p("Connection","Opening WebChannel transport."),h.open(),d=!0),p("Connection","WebChannel sending:",t),h.send(t))},Vf:function(){return h.close()}}),b=function(t,e){h.listen(t,(function(t){try{e(t)}catch(t){setTimeout((function(){throw t}),0)}}))};return b(u.WebChannel.EventType.OPEN,(function(){y||p("Connection","WebChannel transport opened.")})),b(u.WebChannel.EventType.CLOSE,(function(){y||(y=!0,p("Connection","WebChannel transport closed"),g.vf())})),b(u.WebChannel.EventType.ERROR,(function(t){y||(y=!0,function(t){for(var e=[],n=1;n=0)throw new C(O.INVALID_ARGUMENT,"Invalid collection ID '"+t+"' passed to function Firestore.collectionGroup(). Collection IDs must not contain '/'.");return this.md(),new Aa(new sn(L.k(),t),this,null)},t.prototype.runTransaction=function(t){var e=this;return vi("Firestore.runTransaction",arguments,1),gi("Firestore.runTransaction","function",1,t),this.md().transaction((function(n){return t(new Ea(e,n))}))},t.prototype.batch=function(){return this.md(),new _a(this)},Object.defineProperty(t,"logLevel",{get:function(){switch(h()){case a.LogLevel.DEBUG:return"debug";case a.LogLevel.ERROR:return"error";case a.LogLevel.SILENT:return"silent";case a.LogLevel.WARN:return"warn";case a.LogLevel.INFO:return"info";case a.LogLevel.VERBOSE:return"verbose";default:return"error"}},enumerable:!1,configurable:!0}),t.setLogLevel=function(t){var e;vi("Firestore.setLogLevel",arguments,1),Ti("setLogLevel",["debug","error","silent","warn","info","verbose"],1,t),e=t,f.setLogLevel(e)},t.prototype.Nd=function(){return this.yd.timestampsInSnapshots},t}();function wa(t,e){var n=new da({next:function(){e.next&&e.next()},error:function(t){throw y()}});return t.q_(n),function(){n.od(),t.U_(n)}}var Ea=function(){function t(t,e){this.$d=t,this.kd=e}return t.prototype.get=function(t){var e=this;vi("Transaction.get",arguments,1);var n=ja("Transaction.get",t,this.$d);return this.kd.ku([n.ga]).then((function(t){if(!t||1!==t.length)return y();var r=t[0];if(r instanceof on)return new ka(e.$d,n.ga,null,!1,!1,n.ya);if(r instanceof rn)return new ka(e.$d,n.ga,r,!1,!1,n.ya);throw y()}))},t.prototype.set=function(t,e,n){mi("Transaction.set",arguments,2,3);var r=ja("Transaction.set",t,this.$d);n=Da("Transaction.set",n);var i=Ua(r.ya,e,n),o=ro(this.$d.pd,"Transaction.set",r.ga,i,null!==r.ya,n);return this.kd.set(r.ga,o),this},t.prototype.update=function(t,e,n){for(var r,i,o=[],a=3;a0?this.$d.md().write(this.xd):Promise.resolve()},t.prototype.Od=function(){if(this.Md)throw new C(O.FAILED_PRECONDITION,"A write batch can no longer be used after commit() has been called.")},t}(),Ta=function(t){function e(e,n,r){var i=this;return(i=t.call(this,n.Va,e,r)||this).ga=e,i.firestore=n,i.ya=r,i.Ad=i.firestore.md(),i}return i.__extends(e,t),e.Fd=function(t,n,r){if(t.length%2!=0)throw new C(O.INVALID_ARGUMENT,"Invalid document reference. Document references must have an even number of segments, but "+t.N()+" has "+t.length);return new e(new U(t),n,r)},Object.defineProperty(e.prototype,"id",{get:function(){return this.ga.path.S()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"parent",{get:function(){return new Pa(this.ga.path.p(),this.firestore,this.ya)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return this.ga.path.N()},enumerable:!1,configurable:!0}),e.prototype.collection=function(t){if(vi("DocumentReference.collection",arguments,1),gi("DocumentReference.collection","non-empty string",1,t),!t)throw new C(O.INVALID_ARGUMENT,"Must provide a non-empty collection name to collection()");var e=L.$(t);return new Pa(this.ga.path.child(e),this.firestore,null)},e.prototype.isEqual=function(t){if(!(t instanceof e))throw Ai("isEqual","DocumentReference",1,t);return this.firestore===t.firestore&&this.ga.isEqual(t.ga)&&this.ya===t.ya},e.prototype.set=function(t,e){mi("DocumentReference.set",arguments,1,2),e=Da("DocumentReference.set",e);var n=Ua(this.ya,t,e),r=ro(this.firestore.pd,"DocumentReference.set",this.ga,n,null!==this.ya,e);return this.Ad.write(r.pa(this.ga,Me.Qe()))},e.prototype.update=function(t,e){for(var n,r=[],i=2;i=",">","array-contains","in","array-contains-any"],2,n),o=fo("Query.where",t),a=this.Wd(o,i,r);return new e(this.Qd.cn(a),this.firestore,this.ya)},e.prototype.orderBy=function(t,n){var r;if(mi("Query.orderBy",arguments,1,2),bi("Query.orderBy","non-empty string",2,n),void 0===n||"asc"===n)r="asc";else{if("desc"!==n)throw new C(O.INVALID_ARGUMENT,"Function Query.orderBy() has unknown direction '"+n+"', expected 'asc' or 'desc'.");r="desc"}var i=fo("Query.orderBy",t),o=this.zd(i,r);return new e(this.Qd.ln(o),this.firestore,this.ya)},e.prototype.limit=function(t){return vi("Query.limit",arguments,1),gi("Query.limit","number",1,t),Oi("Query.limit",1,t),new e(this.Qd._n(t),this.firestore,this.ya)},e.prototype.limitToLast=function(t){return vi("Query.limitToLast",arguments,1),gi("Query.limitToLast","number",1,t),Oi("Query.limitToLast",1,t),new e(this.Qd.fn(t),this.firestore,this.ya)},e.prototype.startAt=function(t){for(var n=[],r=1;rr.length)throw new C(O.INVALID_ARGUMENT,"Too many arguments provided to "+t+"(). The number of arguments must be less than or equal to the number of Query.orderBy() clauses");for(var i=[],o=0;o10)throw new C(O.INVALID_ARGUMENT,"Invalid Query. '"+e.toString()+"' filters support a maximum of 10 elements in the value array.");if(t.indexOf(null)>=0)throw new C(O.INVALID_ARGUMENT,"Invalid Query. '"+e.toString()+"' filters cannot contain 'null' in the value array.");if(t.filter((function(t){return Number.isNaN(t)})).length>0)throw new C(O.INVALID_ARGUMENT,"Invalid Query. '"+e.toString()+"' filters cannot contain 'NaN' in the value array.")},t.prototype.Gd=function(t){if(t instanceof pn){var e=["array-contains","array-contains-any"],n=["in","array-contains-any"],r=e.indexOf(t.op)>=0,i=n.indexOf(t.op)>=0;if(t.An()){var o=this.Qd.an();if(null!==o&&!o.isEqual(t.field))throw new C(O.INVALID_ARGUMENT,"Invalid query. All where filters with an inequality (<, <=, >, or >=) must be on the same field. But you have inequality filters on '"+o.toString()+"' and '"+t.field.toString()+"'");var a=this.Qd.un();null!==a&&this.Xd(t.field,a)}else if(i||r){var s=null;if(i&&(s=this.Qd.Rn(n)),null===s&&r&&(s=this.Qd.Rn(e)),null!==s)throw s===t.op?new C(O.INVALID_ARGUMENT,"Invalid query. You cannot use more than one '"+t.op.toString()+"' filter."):new C(O.INVALID_ARGUMENT,"Invalid query. You cannot use '"+t.op.toString()+"' filters with '"+s.toString()+"' filters.")}}},t.prototype.Hd=function(t){if(null===this.Qd.un()){var e=this.Qd.an();null!==e&&this.Xd(e,t.field)}},t.prototype.Xd=function(t,e){if(!e.isEqual(t))throw new C(O.INVALID_ARGUMENT,"Invalid query. You have a where filter with an inequality (<, <=, >, or >=) on field '"+t.toString()+"' and so you must also use '"+t.toString()+"' as your first Query.orderBy(), but your first Query.orderBy() is on field '"+e.toString()+"' instead.")},t}());function Oa(t,e,n,r){var i=function(t){console.error("Uncaught Error in onSnapshot:",t)};r.error&&(i=r.error.bind(r));var o=new da({next:function(t){r.next&&r.next(t)},error:i}),a=t.listen(e,o,n);return function(){o.od(),t.mc(a)}}var Ca=function(){function t(t,e,n,r){this.$d=t,this.tw=e,this.ew=n,this.ya=r,this.nw=null,this.sw=null,this.metadata=new Sa(n.hasPendingWrites,n.fromCache)}return Object.defineProperty(t.prototype,"docs",{get:function(){var t=[];return this.forEach((function(e){return t.push(e)})),t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"empty",{get:function(){return this.ew.docs._()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){return this.ew.docs.size},enumerable:!1,configurable:!0}),t.prototype.forEach=function(t,e){var n=this;mi("QuerySnapshot.forEach",arguments,1,2),gi("QuerySnapshot.forEach","function",1,t),this.ew.docs.forEach((function(r){t.call(e,n.iw(r,n.metadata.fromCache,n.ew.Lt.has(r.key)))}))},Object.defineProperty(t.prototype,"query",{get:function(){return new Aa(this.tw,this.$d,this.ya)},enumerable:!1,configurable:!0}),t.prototype.docChanges=function(t){t&&(Ni("QuerySnapshot.docChanges",t,["includeMetadataChanges"]),Ei("QuerySnapshot.docChanges","boolean","includeMetadataChanges",t.includeMetadataChanges));var e=!(!t||!t.includeMetadataChanges);if(e&&this.ew.qt)throw new C(O.INVALID_ARGUMENT,"To include metadata changes with your document changes, you must also pass { includeMetadataChanges:true } to onSnapshot().");return this.nw&&this.sw===e||(this.nw=function(t,e,n){if(t.Ot._()){var r=0;return t.docChanges.map((function(e){var i=n(e.doc,t.fromCache,t.Lt.has(e.doc.key));return e.doc,{type:"added",doc:i,oldIndex:-1,newIndex:r++}}))}var i=t.Ot;return t.docChanges.filter((function(t){return e||3!==t.type})).map((function(e){var r=n(e.doc,t.fromCache,t.Lt.has(e.doc.key)),o=-1,a=-1;return 0!==e.type&&(o=i.indexOf(e.doc.key),i=i.delete(e.doc.key)),1!==e.type&&(a=(i=i.add(e.doc)).indexOf(e.doc.key)),{type:Ma(e.type),doc:r,oldIndex:o,newIndex:a}}))}(this.ew,e,this.iw.bind(this)),this.sw=e),this.nw},t.prototype.isEqual=function(e){if(!(e instanceof t))throw Ai("isEqual","QuerySnapshot",1,e);return this.$d===e.$d&&un(this.tw,e.tw)&&this.ew.isEqual(e.ew)&&this.ya===e.ya},t.prototype.iw=function(t,e,n){return new xa(this.$d,t.key,t,e,n,this.ya)},t}(),Pa=function(t){function e(e,n,r){var i=this;if((i=t.call(this,sn.hn(e),n,r)||this).rw=e,e.length%2!=1)throw new C(O.INVALID_ARGUMENT,"Invalid collection reference. Collection references must have an odd number of segments, but "+e.N()+" has "+e.length);return i}return i.__extends(e,t),Object.defineProperty(e.prototype,"id",{get:function(){return this.Qd.path.S()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"parent",{get:function(){var t=this.Qd.path.p();return t._()?null:new Ta(new U(t),this.firestore,null)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return this.Qd.path.N()},enumerable:!1,configurable:!0}),e.prototype.doc=function(t){mi("CollectionReference.doc",arguments,0,1),0===arguments.length&&(t=w.t()),gi("CollectionReference.doc","non-empty string",1,t);var e=L.$(t);return Ta.Fd(this.Qd.path.child(e),this.firestore,this.ya)},e.prototype.add=function(t){vi("CollectionReference.add",arguments,1),gi("CollectionReference.add","object",1,this.ya?this.ya.toFirestore(t):t);var e=this.doc();return e.set(t).then((function(){return e}))},e.prototype.withConverter=function(t){return new e(this.rw,this.firestore,t)},e}(Aa);function Da(t,e){if(void 0===e)return{merge:!1};if(Ni(t,e,["merge","mergeFields"]),Ei(t,"boolean","merge",e.merge),function(t,e,n,r,i){void 0!==r&&function(t,e,n,r,i){if(!(r instanceof Array))throw new C(O.INVALID_ARGUMENT,"Function "+t+"() requires its "+e+" option to be an array, but it was: "+ki(r));for(var o=0;o1)for(var n=1;n=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}n.d(e,"ErrorCode",(function(){return Xn})),n.d(e,"EventType",(function(){return Yn})),n.d(e,"WebChannel",(function(){return Jn})),n.d(e,"XhrIo",(function(){return Zn})),n.d(e,"createWebChannelTransport",(function(){return Qn}));var i,o="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof t?t:"undefined"!==typeof self?self:{},a=a||{},s=o||self;function u(){}function c(t){var e=typeof t;if("object"==e){if(!t)return"null";if(t instanceof Array)return"array";if(t instanceof Object)return e;var n=Object.prototype.toString.call(t);if("[object Window]"==n)return"object";if("[object Array]"==n||"number"==typeof t.length&&"undefined"!=typeof t.splice&&"undefined"!=typeof t.propertyIsEnumerable&&!t.propertyIsEnumerable("splice"))return"array";if("[object Function]"==n||"undefined"!=typeof t.call&&"undefined"!=typeof t.propertyIsEnumerable&&!t.propertyIsEnumerable("call"))return"function"}else if("function"==e&&"undefined"==typeof t.call)return"object";return e}function l(t){var e=c(t);return"array"==e||"object"==e&&"number"==typeof t.length}function f(t){var e=typeof t;return"object"==e&&null!=t||"function"==e}var h="closure_uid_"+(1e9*Math.random()>>>0),p=0;function d(t,e,n){return t.call.apply(t.bind,arguments)}function v(t,e,n){if(!t)throw Error();if(2e?1:0}t:{var O=s.navigator;if(O){var C=O.userAgent;if(C){k=C;break t}}k=""}function P(t,e,n){for(var r in t)e.call(n,t[r],r,t)}function D(t){var e={};for(var n in t)e[n]=t[n];return e}var R="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function L(t,e){for(var n,r,i=1;iparseFloat(H)){M=String(K);break t}}M=H}var $,Q={};function X(t){return function(t,e){var n=Q;return Object.prototype.hasOwnProperty.call(n,t)?n[t]:n[t]=e(t)}(t,(function(){for(var e=0,n=x(String(M)).split("."),r=x(String(t)).split("."),i=Math.max(n.length,r.length),o=0;0==e&&o=t.keyCode)&&(t.keyCode=-1)}catch(e){}};var ot="closure_listenable_"+(1e6*Math.random()|0),at=0;function st(t,e,n,r,i){this.listener=t,this.proxy=null,this.src=e,this.type=n,this.capture=!!r,this.aa=i,this.key=++at,this.V=this.X=!1}function ut(t){t.V=!0,t.listener=null,t.proxy=null,t.src=null,t.aa=null}function ct(t){this.src=t,this.a={},this.b=0}function lt(t,e){var n=e.type;if(n in t.a){var r,i=t.a[n],o=E(i,e);(r=0<=o)&&Array.prototype.splice.call(i,o,1),r&&(ut(e),0==t.a[n].length&&(delete t.a[n],t.b--))}}function ft(t,e,n,r){for(var i=0;i>>0);function _t(t){return"function"==c(t)?t:(t[Et]||(t[Et]=function(e){return t.handleEvent(e)}),t[Et])}function Tt(){w.call(this),this.c=new ct(this),this.J=this,this.A=null}function It(t,e,n,r){if(!(e=t.c.a[String(e)]))return!0;e=e.concat();for(var i=!0,o=0;oe.length?pe:(e=e.substr(r,n),t.w=r+n,e))}function ge(t){t.P=g()+t.N,be(t,t.N)}function be(t,e){if(null!=t.h)throw Error("WatchDog timer not null");t.h=Zt(y(t.Qa,t),e)}function we(t){t.h&&(s.clearTimeout(t.h),t.h=null)}function Ee(t){0==t.g.u||t.l||jn(t.g,t)}function _e(t){we(t);var e=t.D;e&&"function"==typeof e.da&&e.da(),t.D=null,Mt(t.O),Gt(t.G),t.a&&(e=t.a,t.a=null,e.abort(),e.da())}function Te(t,e){try{var n=t.g;if(0!=n.u&&(n.a==t||nn(n.b,t)))if(n.A=t.H,!t.o&&nn(n.b,t)&&3==n.u){try{var r=n.ja.a.parse(e)}catch(v){r=null}if(Array.isArray(r)&&3==r.length){var i=r;if(0==i[0]){t:if(!n.i){if(n.a){if(!(n.a.s+3e3i[2]&&n.U&&0==n.m&&!n.l&&(n.l=Zt(y(n.Na,n),6e3));if(1>=en(n.b)&&n.O){try{n.O()}catch(v){}n.O=void 0}}else Un(n,11)}else if((t.o||n.a==t)&&Ln(n),!S(e))for(e=r=n.ja.a.parse(e),r=0;re||3==e&&!z&&!this.a.Y())){this.l||4!=e||7==n||Qt(8==n||0>=r?3:2),we(this);var i=this.a.S();this.H=i;var o=this.a.Y();if(this.b=200==i){if(this.R&&!this.o){e:{if(this.a){var a,s=this.a;if((a=s.a?s.a.getResponseHeader("X-HTTP-Initial-Response"):null)&&!S(a)){var u=a;break e}}u=null}if(!u){this.b=!1,this.c=3,Yt(12),_e(this),Ee(this);break t}this.o=!0,Te(this,u)}this.F?(ye(this,e,o),z&&this.b&&3==e&&(qt(this.G,this.O,"tick",this.Ra),this.O.start())):Te(this,o),4==e&&_e(this),this.b&&!this.l&&(4==e?jn(this.g,this):(this.b=!1,ge(this)))}else 400==i&&0e)throw Error("Bad port number "+e);t.h=e}else t.h=null}function Re(t,e,n){e instanceof He?(t.b=e,function(t,e){e&&!t.f&&(We(t),t.c=null,t.a.forEach((function(t,e){var n=e.toLowerCase();e!=n&&(Ke(this,e),Qe(this,n,t))}),t)),t.f=e}(t.b,t.a)):(n||(e=Ue(e,qe)),t.b=new He(e,t.a))}function Le(t,e,n){t.b.set(e,n)}function je(t){return Le(t,"zx",Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^g()).toString(36)),t}function Me(t,e){return t?e?decodeURI(t.replace(/%25/g,"%2525")):decodeURIComponent(t):""}function Ue(t,e,n){return"string"===typeof t?(t=encodeURI(t).replace(e,Fe),n&&(t=t.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),t):null}function Fe(t){return"%"+((t=t.charCodeAt(0))>>4&15).toString(16)+(15&t).toString(16)}Ae.prototype.toString=function(){var t=[],e=this.f;e&&t.push(Ue(e,Ve,!0),":");var n=this.c;return(n||"file"==e)&&(t.push("//"),(e=this.j)&&t.push(Ue(e,Ve,!0),"@"),t.push(encodeURIComponent(String(n)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),null!=(n=this.h)&&t.push(":",String(n))),(n=this.g)&&(this.c&&"/"!=n.charAt(0)&&t.push("/"),t.push(Ue(n,"/"==n.charAt(0)?Be:ze,!0))),(n=this.b.toString())&&t.push("?",n),(n=this.i)&&t.push("#",Ue(n,Ge)),t.join("")};var Ve=/[#\/\?@]/g,ze=/[#\?:]/g,Be=/[#\?]/g,qe=/[#\?@]/g,Ge=/#/g;function He(t,e){this.b=this.a=null,this.c=t||null,this.f=!!e}function We(t){t.a||(t.a=new Se,t.b=0,t.c&&function(t,e){if(t){t=t.split("&");for(var n=0;n2*t.c&&ke(t)))}function $e(t,e){return We(t),e=Xe(t,e),xe(t.a.b,e)}function Qe(t,e,n){Ke(t,e),0=t.f}function en(t){return t.b?1:t.a?t.a.size:0}function nn(t,e){return t.b?t.b==e:!!t.a&&t.a.has(e)}function rn(t,e){t.a?t.a.add(e):t.b=e}function on(t,e){t.b&&t.b==e?t.b=null:t.a&&t.a.has(e)&&t.a.delete(e)}function an(t){var e,n;if(null!=t.b)return t.c.concat(t.b.i);if(null!=t.a&&0!==t.a.size){var i=t.c;try{for(var o=r(t.a.values()),a=o.next();!a.done;a=o.next()){var s=a.value;i=i.concat(s.i)}}catch(u){e={error:u}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}return i}return I(t.c)}function sn(){}function un(){this.a=new sn}function cn(t,e,n){var r=n||"";try{Ie(t,(function(t,n){var i=t;f(t)&&(i=St(t)),e.push(r+n+"="+encodeURIComponent(i))}))}catch(i){throw e.push(r+"type="+encodeURIComponent("_badmap")),i}}function ln(t,e,n,r,i){try{e.onload=null,e.onerror=null,e.onabort=null,e.ontimeout=null,i(r)}catch(o){}}Je.prototype.cancel=function(){var t,e;if(this.c=an(this),this.b)this.b.cancel(),this.b=null;else if(this.a&&0!==this.a.size){try{for(var n=r(this.a.values()),i=n.next();!i.done;i=n.next()){i.value.cancel()}}catch(o){t={error:o}}finally{try{i&&!i.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}this.a.clear()}},sn.prototype.stringify=function(t){return s.JSON.stringify(t,void 0)},sn.prototype.parse=function(t){return s.JSON.parse(t,void 0)};var fn=s.JSON.parse;function hn(t){Tt.call(this),this.headers=new Se,this.G=t||null,this.b=!1,this.s=this.a=null,this.D="",this.h=0,this.f="",this.g=this.w=this.l=this.v=!1,this.o=0,this.m=null,this.H=pn,this.B=this.F=!1}b(hn,Tt);var pn="",dn=/^https?$/i,vn=["POST","PUT"];function yn(t){return"content-type"==t.toLowerCase()}function mn(t,e){t.b=!1,t.a&&(t.g=!0,t.a.abort(),t.g=!1),t.f=e,t.h=5,gn(t),wn(t)}function gn(t){t.v||(t.v=!0,t.dispatchEvent("complete"),t.dispatchEvent("error"))}function bn(t){if(t.b&&"undefined"!=typeof a&&(!t.s[1]||4!=_n(t)||2!=t.S()))if(t.l&&4==_n(t))Ut(t.va,0,t);else if(t.dispatchEvent("readystatechange"),4==_n(t)){t.b=!1;try{var e,n=t.S();t:switch(n){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var r=!0;break t;default:r=!1}if(!(e=r)){var i;if(i=0===n){var o=String(t.D).match(Ne)[1]||null;if(!o&&s.self&&s.self.location){var u=s.self.location.protocol;o=u.substr(0,u.length-1)}i=!dn.test(o?o.toLowerCase():"")}e=i}if(e)t.dispatchEvent("complete"),t.dispatchEvent("success");else{t.h=6;try{var c=2<_n(t)?t.a.statusText:""}catch(l){c=""}t.f=c+" ["+t.S()+"]",gn(t)}}finally{wn(t)}}}function wn(t,e){if(t.a){En(t);var n=t.a,r=t.s[0]?u:null;t.a=null,t.s=null,e||t.dispatchEvent("ready");try{n.onreadystatechange=r}catch(i){}}}function En(t){t.a&&t.B&&(t.a.ontimeout=null),t.m&&(s.clearTimeout(t.m),t.m=null)}function _n(t){return t.a?t.a.readyState:0}function Tn(t,e,n){t:{for(r in n){var r=!1;break t}r=!0}r||(n=function(t){var e="";return P(t,(function(t,n){e+=n,e+=":",e+=t,e+="\r\n"})),e}(n),"string"===typeof t?null!=n&&encodeURIComponent(String(n)):Le(t,e,n))}function In(t,e,n){return n&&n.internalChannelParams&&n.internalChannelParams[t]||e}function Sn(t){this.f=[],this.R=this.ea=this.v=this.P=this.a=this.ha=this.s=this.N=this.h=this.F=this.j=null,this.Fa=this.H=0,this.Ca=In("failFast",!1,t),this.U=this.l=this.i=this.g=this.c=null,this.W=!0,this.A=this.ia=this.G=-1,this.J=this.m=this.o=0,this.Ba=In("baseRetryDelayMs",5e3,t),this.Ga=In("retryDelaySeedMs",1e4,t),this.Da=In("forwardChannelMaxRetries",2,t),this.ga=In("forwardChannelRequestTimeoutMs",2e4,t),this.Ea=t&&t.nb||void 0,this.D=void 0,this.w=t&&t.supportsCrossDomainXhr||!1,this.B="",this.b=new Je(t&&t.concurrentRequestLimit),this.ja=new un,this.fa=t&&t.fastHandshake||!1,t&&t.forceLongPolling&&(this.W=!1),this.O=void 0}function kn(t){if(xn(t),3==t.u){var e=t.H++,n=Oe(t.v);Le(n,"SID",t.B),Le(n,"RID",e),Le(n,"TYPE","terminate"),Cn(t,n),(e=new le(t,e,void 0)).B=2,e.f=je(Oe(n)),n=!1,s.navigator&&s.navigator.sendBeacon&&(n=s.navigator.sendBeacon(e.f.toString(),"")),!n&&s.Image&&((new Image).src=e.f,n=!0),n||(e.a=zn(e.g,null),e.a.$(e.f)),e.s=g(),ge(e)}Fn(t)}function xn(t){t.a&&(t.a.cancel(),t.a=null),t.i&&(s.clearTimeout(t.i),t.i=null),Ln(t),t.b.cancel(),t.g&&("number"===typeof t.g&&s.clearTimeout(t.g),t.g=null)}function Nn(t,e){t.f.push(new Ye(t.Fa++,e)),3==t.u&&An(t)}function An(t){tn(t.b)||t.g||(t.g=!0,Pt(t.xa,t),t.o=0)}function On(t,e){var n;n=e?e.W:t.H++;var r=Oe(t.v);Le(r,"SID",t.B),Le(r,"RID",n),Le(r,"AID",t.G),Cn(t,r),t.h&&t.j&&Tn(r,t.h,t.j),n=new le(t,n,t.o+1),null===t.h&&(n.m=t.j),e&&(t.f=e.i.concat(t.f)),e=Pn(t,n,1e3),n.setTimeout(Math.round(.5*t.ga)+Math.round(.5*t.ga*Math.random())),rn(t.b,n),de(n,r,e)}function Cn(t,e){t.c&&Ie({},(function(t,n){Le(e,n,t)}))}function Pn(t,e,n){n=Math.min(t.f.length,n);var r=t.c?y(t.c.Ha,t.c,t):null;t:for(var i=t.f,o=-1;;){var a=["count="+n];-1==o?0(c-=o))o=Math.max(0,i[u].b-100),s=!1;else try{cn(l,a,"req"+c+"_")}catch(f){r&&r(l)}}if(s){r=a.join("&");break t}}return t=t.f.splice(0,n),e.i=t,r}function Dn(t){t.a||t.i||(t.J=1,Pt(t.wa,t),t.m=0)}function Rn(t){return!(t.a||t.i||3<=t.m)&&(t.J++,t.i=Zt(y(t.wa,t),Mn(t,t.m)),t.m++,!0)}function Ln(t){null!=t.l&&(s.clearTimeout(t.l),t.l=null)}function jn(t,e){var n=null;if(t.a==e){Ln(t),t.a=null;var r=2}else{if(!nn(t.b,e))return;n=e.i,on(t.b,e),r=1}if(t.A=e.H,0!=t.u)if(e.b)if(1==r){n=e.j?e.j.length:0,e=g()-e.s;var i=t.o;(r=Kt()).dispatchEvent(new Jt(r,n,e,i)),An(t)}else Dn(t);else if(3==(i=e.c)||0==i&&0=t.b.f-(t.g?1:0))&&(t.g?(t.f=e.i.concat(t.f),!0):!(1==t.u||2==t.u||t.o>=(t.Ca?0:t.Da))&&(t.g=Zt(y(t.xa,t,e),Mn(t,t.o)),t.o++,!0))}(t,e)||2==r&&Rn(t)))switch(n&&0e?null:"string"===typeof t?t.charAt(e):t[e]}(i.K()),n=s.FormData&&t instanceof s.FormData,!(0<=E(vn,e))||r||n||i.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8"),i.forEach((function(t,e){this.a.setRequestHeader(e,t)}),this),this.H&&(this.a.responseType=this.H),"withCredentials"in this.a&&this.a.withCredentials!==this.F&&(this.a.withCredentials=this.F);try{En(this),0>>0),b=0;function w(t,e,n){return t.call.apply(t.bind,arguments)}function E(t,e,n){if(!t)throw Error();if(2t.b&&(t.b++,e.next=t.a,t.a=e)}function F(){this.b=this.a=null}N=P("__EID__")?"__EID__":void 0,S(R,Error),R.prototype.name="CustomError",S(L,R),L.prototype.name="AssertionError",M.prototype.get=function(){if(0/g,it=/"/g,ot=/'/g,at=/\x00/g,st=/[\x00&<>"']/;function ut(t,e){return-1!=t.indexOf(e)}function ct(t,e){return te?1:0}t:{var lt=c.navigator;if(lt){var ft=lt.userAgent;if(ft){Z=ft;break t}}Z=""}function ht(t){return ut(Z,t)}function pt(t,e){for(var n in t)e.call(void 0,t[n],n,t)}function dt(t){for(var e in t)return!1;return!0}function vt(t){var e,n={};for(e in t)n[e]=t[e];return n}var yt="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function mt(t,e){for(var n,r,i=1;i"}else o=void 0===t?"undefined":null===t?"null":typeof t;j("Argument is not a %s (or a non-Element, non-Location mock); got: %s",e,o)}}function bt(t,e){this.a=t===_t&&e||"",this.b=Et}function wt(t){return t instanceof bt&&t.constructor===bt&&t.b===Et?t.a:(j("expected object of type Const, got '"+t+"'"),"type_error:Const")}bt.prototype.ra=!0,bt.prototype.qa=function(){return this.a},bt.prototype.toString=function(){return"Const{"+this.a+"}"};var Et={},_t={},Tt=new bt(_t,"");function It(t,e){this.a=t===Ot&&e||"",this.b=At}function St(t){return t instanceof It&&t.constructor===It&&t.b===At?t.a:(j("expected object of type TrustedResourceUrl, got '"+t+"' of type "+p(t)),"type_error:TrustedResourceUrl")}function kt(t,e){var n=wt(t);if(!Nt.test(n))throw Error("Invalid TrustedResourceUrl format: "+n);return t=n.replace(xt,(function(t,r){if(!Object.prototype.hasOwnProperty.call(e,r))throw Error('Found marker, "'+r+'", in format string, "'+n+'", but no valid label mapping found in args: '+JSON.stringify(e));return(t=e[r])instanceof bt?wt(t):encodeURIComponent(String(t))})),new It(Ot,t)}It.prototype.ra=!0,It.prototype.qa=function(){return this.a.toString()},It.prototype.toString=function(){return"TrustedResourceUrl{"+this.a+"}"};var xt=/%{(\w+)}/g,Nt=/^((https:)?\/\/[0-9a-z.:[\]-]+\/|\/[^/\\]|[^:/\\%]+\/|[^:/\\%]*[?#]|about:blank#)/i,At={},Ot={};function Ct(t,e){this.a=t===jt&&e||"",this.b=Lt}function Pt(t){return t instanceof Ct&&t.constructor===Ct&&t.b===Lt?t.a:(j("expected object of type SafeUrl, got '"+t+"' of type "+p(t)),"type_error:SafeUrl")}Ct.prototype.ra=!0,Ct.prototype.qa=function(){return this.a.toString()},Ct.prototype.toString=function(){return"SafeUrl{"+this.a+"}"};var Dt=/^(?:(?:https?|mailto|ftp):|[^:/?#]*(?:[/?#]|$))/i;function Rt(t){return t instanceof Ct?t:(t="object"==typeof t&&t.ra?t.qa():String(t),Dt.test(t)||(t="about:invalid#zClosurez"),new Ct(jt,t))}var Lt={},jt={};function Mt(){this.a="",this.b=Ft}function Ut(t){return t instanceof Mt&&t.constructor===Mt&&t.b===Ft?t.a:(j("expected object of type SafeHtml, got '"+t+"' of type "+p(t)),"type_error:SafeHtml")}Mt.prototype.ra=!0,Mt.prototype.qa=function(){return this.a.toString()},Mt.prototype.toString=function(){return"SafeHtml{"+this.a+"}"};var Ft={};function Vt(t){var e=new Mt;return e.a=t,e}Vt("");var zt=Vt("");function Bt(t,e){for(var n=t.split("%s"),r="",i=Array.prototype.slice.call(arguments,1);i.length&&1")&&(t=t.replace(rt,">")),-1!=t.indexOf('"')&&(t=t.replace(it,""")),-1!=t.indexOf("'")&&(t=t.replace(ot,"'")),-1!=t.indexOf("\0")&&(t=t.replace(at,""))),t}function Gt(t){return Gt[" "](t),t}Vt(" "),Gt[" "]=h;var Ht,Wt=ht("Opera"),Kt=ht("Trident")||ht("MSIE"),$t=ht("Edge"),Qt=$t||Kt,Xt=ht("Gecko")&&!(ut(Z.toLowerCase(),"webkit")&&!ht("Edge"))&&!(ht("Trident")||ht("MSIE"))&&!ht("Edge"),Yt=ut(Z.toLowerCase(),"webkit")&&!ht("Edge");function Jt(){var t=c.document;return t?t.documentMode:void 0}t:{var Zt="",te=function(){var t=Z;return Xt?/rv:([^\);]+)(\)|;)/.exec(t):$t?/Edge\/([\d\.]+)/.exec(t):Kt?/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(t):Yt?/WebKit\/(\S+)/.exec(t):Wt?/(?:Version)[ \/]?(\S+)/.exec(t):void 0}();if(te&&(Zt=te?te[1]:""),Kt){var ee=Jt();if(null!=ee&&ee>parseFloat(Zt)){Ht=String(ee);break t}}Ht=Zt}var ne,re={};function ie(t){return function(t,e){var n=re;return Object.prototype.hasOwnProperty.call(n,t)?n[t]:n[t]=e(t)}(t,(function(){for(var e=0,n=tt(String(Ht)).split("."),r=tt(String(t)).split("."),i=Math.max(n.length,r.length),o=0;0==e&&o=t.keyCode)&&(t.keyCode=-1)}catch(e){}},Xe.prototype.f=function(){return this.a};var Je="closure_listenable_"+(1e6*Math.random()|0),Ze=0;function tn(t,e,n,r,i){this.listener=t,this.proxy=null,this.src=e,this.type=n,this.capture=!!r,this.Ta=i,this.key=++Ze,this.ua=this.Na=!1}function en(t){t.ua=!0,t.listener=null,t.proxy=null,t.src=null,t.Ta=null}function nn(t){this.src=t,this.a={},this.b=0}function rn(t,e){var n=e.type;n in t.a&&Q(t.a[n],e)&&(en(e),0==t.a[n].length&&(delete t.a[n],t.b--))}function on(t,e,n,r){for(var i=0;ir.keyCode||void 0!=r.returnValue)){t:{var i=!1;if(0==r.keyCode)try{r.keyCode=-1;break t}catch(a){i=!0}(i||void 0==r.returnValue)&&(r.returnValue=!0)}for(r=[],i=e.b;i;i=i.parentNode)r.push(i);for(t=t.type,i=r.length-1;0<=i;i--){e.b=r[i];var o=dn(r[i],t,!0,e);n=n&&o}for(i=0;i>>0);function bn(t){return v(t)?t:(t[gn]||(t[gn]=function(e){return t.handleEvent(e)}),t[gn])}function wn(){ze.call(this),this.u=new nn(this),this.Yb=this,this.eb=null}function En(t,e,n,r,i){t.u.add(String(e),n,!1,r,i)}function _n(t,e,n,r,i){t.u.add(String(e),n,!0,r,i)}function Tn(t,e,n,r){if(!(e=t.u.a[String(e)]))return!0;e=e.concat();for(var i=!0,o=0;oe)throw Error("Bad port number "+e);t.l=e}else t.l=null}function Ln(t,e,n){e instanceof $n?(t.a=e,function(t,e){e&&!t.f&&(Qn(t),t.c=null,t.a.forEach((function(t,e){var n=e.toLowerCase();e!=n&&(Yn(this,e),Zn(this,n,t))}),t)),t.f=e}(t.a,t.h)):(n||(e=zn(e,Wn)),t.a=new $n(e,t.h))}function jn(t,e,n){t.a.set(e,n)}function Mn(t,e){return t.a.get(e)}function Un(t){return t instanceof Pn?new Pn(t):new Pn(t,void 0)}function Fn(t,e){var n=new Pn(null,void 0);return Dn(n,"https"),t&&(n.b=t),e&&(n.c=e),n}function Vn(t,e){return t?e?decodeURI(t.replace(/%25/g,"%2525")):decodeURIComponent(t):""}function zn(t,e,n){return"string"===typeof t?(t=encodeURI(t).replace(e,Bn),n&&(t=t.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),t):null}function Bn(t){return"%"+((t=t.charCodeAt(0))>>4&15).toString(16)+(15&t).toString(16)}Pn.prototype.toString=function(){var t=[],e=this.f;e&&t.push(zn(e,qn,!0),":");var n=this.b;return(n||"file"==e)&&(t.push("//"),(e=this.i)&&t.push(zn(e,qn,!0),"@"),t.push(encodeURIComponent(String(n)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),null!=(n=this.l)&&t.push(":",String(n))),(n=this.c)&&(this.b&&"/"!=n.charAt(0)&&t.push("/"),t.push(zn(n,"/"==n.charAt(0)?Hn:Gn,!0))),(n=this.a.toString())&&t.push("?",n),(n=this.g)&&t.push("#",zn(n,Kn)),t.join("")},Pn.prototype.resolve=function(t){var e=new Pn(this),n=!!t.f;n?Dn(e,t.f):n=!!t.i,n?e.i=t.i:n=!!t.b,n?e.b=t.b:n=null!=t.l;var r=t.c;if(n)Rn(e,t.l);else if(n=!!t.c){if("/"!=r.charAt(0))if(this.b&&!this.c)r="/"+r;else{var i=e.c.lastIndexOf("/");-1!=i&&(r=e.c.substr(0,i+1)+r)}if(".."==(i=r)||"."==i)r="";else if(ut(i,"./")||ut(i,"/.")){r=0==i.lastIndexOf("/",0),i=i.split("/");for(var o=[],a=0;a2*t.c&&An(t)))}function Jn(t,e){return Qn(t),e=er(t,e),On(t.a.b,e)}function Zn(t,e,n){Yn(t,e),0'),r=a.document)&&(r.write(Ut(t)),r.close())):(a=r.open(Pt(e),n,a))&&t.noopener&&(a.opener=null),a)try{a.focus()}catch(s){}return a}var pr=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,dr=/^[^@]+@[^@]+$/;function vr(){var t=null;return new we((function(e){"complete"==c.document.readyState?e():(t=function(){e()},ln(window,"load",t))})).o((function(e){throw fn(window,"load",t),e}))}function yr(t){return t=t||kr(),!("file:"!==Cr()&&"ionic:"!==Cr()||!t.toLowerCase().match(/iphone|ipad|ipod|android/))}function mr(){var t=c.window;try{return!(!t||t==t.top)}catch(e){return!1}}function gr(){return"undefined"!==typeof c.WorkerGlobalScope&&"function"===typeof c.importScripts}function br(){return r.INTERNAL.hasOwnProperty("reactNative")?"ReactNative":r.INTERNAL.hasOwnProperty("node")?"Node":gr()?"Worker":"Browser"}function wr(){var t=br();return"ReactNative"===t||"Node"===t}var Er="Firefox",_r="Chrome";function Tr(t){var e=t.toLowerCase();return ut(e,"opera/")||ut(e,"opr/")||ut(e,"opios/")?"Opera":ut(e,"iemobile")?"IEMobile":ut(e,"msie")||ut(e,"trident/")?"IE":ut(e,"edge/")?"Edge":ut(e,"firefox/")?Er:ut(e,"silk/")?"Silk":ut(e,"blackberry")?"Blackberry":ut(e,"webos")?"Webos":!ut(e,"safari/")||ut(e,"chrome/")||ut(e,"crios/")||ut(e,"android")?!ut(e,"chrome/")&&!ut(e,"crios/")||ut(e,"edge/")?ut(e,"android")?"Android":(t=t.match(/([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/))&&2==t.length?t[1]:"Other":_r:"Safari"}var Ir={jd:"FirebaseCore-web",ld:"FirebaseUI-web"};function Sr(t,e){e=e||[];var n,r=[],i={};for(n in Ir)i[Ir[n]]=!0;for(n=0;ne)throw Error("Short delay should be less than long delay!");this.a=t,this.c=e,t=kr(),e=br(),this.b=lr(t)||"ReactNative"===e}function Vr(){var t=c.document;return!t||"undefined"===typeof t.visibilityState||"visible"==t.visibilityState}function zr(t){try{var e=new Date(parseInt(t,10));if(!isNaN(e.getTime())&&!/[^0-9]/.test(t))return e.toUTCString()}catch(n){}return null}function Br(){return!(!xr("fireauth.oauthhelper",c)&&!xr("fireauth.iframe",c))}Fr.prototype.get=function(){var t=c.navigator;return!t||"boolean"!==typeof t.onLine||!Or()&&"chrome-extension:"!==Cr()&&"undefined"===typeof t.connection||t.onLine?this.b?this.c:this.a:Math.min(5e3,this.a)};var qr,Gr={};function Hr(t){Gr[t]||(Gr[t]=!0,"undefined"!==typeof console&&"function"===typeof console.warn&&console.warn(t))}try{var Wr={};Object.defineProperty(Wr,"abcd",{configurable:!0,enumerable:!0,value:1}),Object.defineProperty(Wr,"abcd",{configurable:!0,enumerable:!0,value:2}),qr=2==Wr.abcd}catch(aa){qr=!1}function Kr(t,e,n){qr?Object.defineProperty(t,e,{configurable:!0,enumerable:!0,value:n}):t[e]=n}function $r(t,e){if(e)for(var n in e)e.hasOwnProperty(n)&&Kr(t,n,e[n])}function Qr(t){var e={};return $r(e,t),e}function Xr(t){var e=t;if("object"==typeof t&&null!=t)for(var n in e="length"in t?[]:{},t)Kr(e,n,Xr(t[n]));return e}function Yr(t){var e=t&&(t[ni]?"phone":null);if(!(e&&t&&t[ei]))throw new k("internal-error","Internal assert: invalid MultiFactorInfo object");Kr(this,"uid",t[ei]),Kr(this,"displayName",t[Zr]||null);var n=null;t[ti]&&(n=new Date(t[ti]).toUTCString()),Kr(this,"enrollmentTime",n),Kr(this,"factorId",e)}function Jr(t){try{var e=new ri(t)}catch(n){e=null}return e}Yr.prototype.v=function(){return{uid:this.uid,displayName:this.displayName,factorId:this.factorId,enrollmentTime:this.enrollmentTime}};var Zr="displayName",ti="enrolledAt",ei="mfaEnrollmentId",ni="phoneInfo";function ri(t){Yr.call(this,t),Kr(this,"phoneNumber",t[ni])}function ii(t){var e={},n=t[ui],r=t[li],i=t[fi];if(t=Jr(t[ci]),!i||i!=ai&&i!=si&&!n||i==si&&!r||i==oi&&!t)throw Error("Invalid checkActionCode response!");i==si?(e[pi]=n||null,e[vi]=n||null,e[hi]=r):(e[pi]=r||null,e[vi]=r||null,e[hi]=n||null),e[di]=t||null,Kr(this,mi,i),Kr(this,yi,Xr(e))}S(ri,Yr),ri.prototype.v=function(){var t=ri.Za.v.call(this);return t.phoneNumber=this.phoneNumber,t};var oi="REVERT_SECOND_FACTOR_ADDITION",ai="EMAIL_SIGNIN",si="VERIFY_AND_CHANGE_EMAIL",ui="email",ci="mfaInfo",li="newEmail",fi="requestType",hi="email",pi="fromEmail",di="multiFactorInfo",vi="previousEmail",yi="data",mi="operation";function gi(t){var e=Mn(t=Un(t),bi)||null,n=Mn(t,wi)||null,r=Mn(t,Ti)||null;if(r=r&&Si[r]||null,!e||!n||!r)throw new k("argument-error",bi+", "+wi+"and "+Ti+" are required in a valid action code URL.");$r(this,{apiKey:e,operation:r,code:n,continueUrl:Mn(t,Ei)||null,languageCode:Mn(t,_i)||null,tenantId:Mn(t,Ii)||null})}var bi="apiKey",wi="oobCode",Ei="continueUrl",_i="languageCode",Ti="mode",Ii="tenantId",Si={recoverEmail:"RECOVER_EMAIL",resetPassword:"PASSWORD_RESET",revertSecondFactorAddition:oi,signIn:ai,verifyAndChangeEmail:si,verifyEmail:"VERIFY_EMAIL"};function ki(t){try{return new gi(t)}catch(e){return null}}function xi(t){var e=t[Pi];if("undefined"===typeof e)throw new k("missing-continue-uri");if("string"!==typeof e||"string"===typeof e&&!e.length)throw new k("invalid-continue-uri");this.h=e,this.b=this.a=null,this.g=!1;var n=t[Ni];if(n&&"object"===typeof n){e=n[Li];var r=n[Di];if(n=n[Ri],"string"===typeof e&&e.length){if(this.a=e,"undefined"!==typeof r&&"boolean"!==typeof r)throw new k("argument-error",Di+" property must be a boolean when specified.");if(this.g=!!r,"undefined"!==typeof n&&("string"!==typeof n||"string"===typeof n&&!n.length))throw new k("argument-error",Ri+" property must be a non empty string when specified.");this.b=n||null}else{if("undefined"!==typeof e)throw new k("argument-error",Li+" property must be a non empty string when specified.");if("undefined"!==typeof r||"undefined"!==typeof n)throw new k("missing-android-pkg-name")}}else if("undefined"!==typeof n)throw new k("argument-error",Ni+" property must be a non null object when specified.");if(this.f=null,(e=t[Ci])&&"object"===typeof e){if("string"===typeof(e=e[ji])&&e.length)this.f=e;else if("undefined"!==typeof e)throw new k("argument-error",ji+" property must be a non empty string when specified.")}else if("undefined"!==typeof e)throw new k("argument-error",Ci+" property must be a non null object when specified.");if("undefined"!==typeof(e=t[Oi])&&"boolean"!==typeof e)throw new k("argument-error",Oi+" property must be a boolean when specified.");if(this.c=!!e,"undefined"!==typeof(t=t[Ai])&&("string"!==typeof t||"string"===typeof t&&!t.length))throw new k("argument-error",Ai+" property must be a non empty string when specified.");this.i=t||null}var Ni="android",Ai="dynamicLinkDomain",Oi="handleCodeInApp",Ci="iOS",Pi="url",Di="installApp",Ri="minimumVersion",Li="packageName",ji="bundleId";function Mi(t){var e={};for(var n in e.continueUrl=t.h,e.canHandleCodeInApp=t.c,(e.androidPackageName=t.a)&&(e.androidMinimumVersion=t.b,e.androidInstallApp=t.g),e.iOSBundleId=t.f,e.dynamicLinkDomain=t.i,e)null===e[n]&&delete e[n];return e}var Ui=null;function Fi(t){var e="";return function(t,e){function n(e){for(;rn;n++)for(var r=t.concat(e[n].split("")),i=0;i>4),64!=a&&(e(o<<4&240|a>>2),64!=s&&e(a<<6&192|s))}}(t,(function(t){e+=String.fromCharCode(t)})),e}function Vi(t){var e=Bi(t);if(!(e&&e.sub&&e.iss&&e.aud&&e.exp))throw Error("Invalid JWT");this.g=t,this.c=e.exp,this.h=e.sub,I(),this.a=e.provider_id||e.firebase&&e.firebase.sign_in_provider||null,this.f=e.firebase&&e.firebase.tenant||null,this.b=!!e.is_anonymous||"anonymous"==this.a}function zi(t){try{return new Vi(t)}catch(e){return null}}function Bi(t){if(!t)return null;if(3!=(t=t.split(".")).length)return null;for(var e=(4-(t=t[1]).length%4)%4,n=0;n Auth section -> Sign in method tab.",t):"http"==r||"https"==r?n=Bt("This domain (%s) is not authorized to run this operation. Add it to the OAuth redirect domains list in the Firebase console -> Auth section -> Sign in method tab.",t):e="operation-not-supported-in-this-environment",k.call(this,e,n)}function Go(t,e,n){k.call(this,t,n),(t=e||{}).Gb&&Kr(this,"email",t.Gb),t.da&&Kr(this,"phoneNumber",t.da),t.credential&&Kr(this,"credential",t.credential),t.Wb&&Kr(this,"tenantId",t.Wb)}function Ho(t){if(t.code){var e=t.code||"";0==e.indexOf(A)&&(e=e.substring(A.length));var n={credential:jo(t),Wb:t.tenantId};if(t.email)n.Gb=t.email;else if(t.phoneNumber)n.da=t.phoneNumber;else if(!n.credential)return new k(e,t.message||void 0);return new Go(e,n,t.message)}return null}function Wo(){}function Ko(t){return t.c||(t.c=t.b())}function $o(){}function Qo(t){if(!t.f&&"undefined"==typeof XMLHttpRequest&&"undefined"!=typeof ActiveXObject){for(var e=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"],n=0;n=function t(e){return e.c?e.c:e.a?t(e.a):(j("Root logger has no level set."),null)}(this).value)for(v(e)&&(e=e()),t=new Zo(t,String(e),this.f),n&&(t.a=n),n=this;n;)n=n.a};var aa,sa={},ua=null;function ca(t){var e;if(ua||(ua=new ta(""),sa[""]=ua,ua.c=ia),!(e=sa[t])){e=new ta(t);var n=t.lastIndexOf("."),r=t.substr(n+1);(n=ca(t.substr(0,n))).b||(n.b={}),n.b[r]=e,e.a=n,sa[t]=e}return e}function la(t,e){t&&t.log(oa,e,void 0)}function fa(t){this.f=t}function ha(t){wn.call(this),this.s=t,this.readyState=pa,this.status=0,this.responseType=this.responseText=this.response=this.statusText="",this.onreadystatechange=null,this.i=new Headers,this.b=null,this.m="GET",this.g="",this.a=!1,this.h=ca("goog.net.FetchXmlHttp"),this.l=this.c=this.f=null}S(fa,Wo),fa.prototype.a=function(){return new ha(this.f)},fa.prototype.b=(aa={},function(){return aa}),S(ha,wn);var pa=0;function da(t){t.c.read().then(t.nc.bind(t)).catch(t.Sa.bind(t))}function va(t,e){e&&t.f&&(t.status=t.f.status,t.statusText=t.f.statusText),t.readyState=4,t.f=null,t.c=null,t.l=null,ya(t)}function ya(t){t.onreadystatechange&&t.onreadystatechange.call(t)}function ma(t){wn.call(this),this.headers=new Nn,this.D=t||null,this.c=!1,this.B=this.a=null,this.h=this.P=this.l="",this.f=this.O=this.i=this.N=!1,this.g=0,this.s=null,this.m=ga,this.w=this.R=!1}(e=ha.prototype).open=function(t,e){if(this.readyState!=pa)throw this.abort(),Error("Error reopening a connection");this.m=t,this.g=e,this.readyState=1,ya(this)},e.send=function(t){if(1!=this.readyState)throw this.abort(),Error("need to call open() first. ");this.a=!0;var e={headers:this.i,method:this.m,credentials:void 0,cache:void 0};t&&(e.body=t),this.s.fetch(new Request(this.g,e)).then(this.sc.bind(this),this.Sa.bind(this))},e.abort=function(){this.response=this.responseText="",this.i=new Headers,this.status=0,this.c&&this.c.cancel("Request was aborted."),1<=this.readyState&&this.a&&4!=this.readyState&&(this.a=!1,va(this,!1)),this.readyState=pa},e.sc=function(t){this.a&&(this.f=t,this.b||(this.b=t.headers,this.readyState=2,ya(this)),this.a&&(this.readyState=3,ya(this),this.a&&("arraybuffer"===this.responseType?t.arrayBuffer().then(this.qc.bind(this),this.Sa.bind(this)):"undefined"!==typeof c.ReadableStream&&"body"in t?(this.response=this.responseText="",this.c=t.body.getReader(),this.l=new TextDecoder,da(this)):t.text().then(this.rc.bind(this),this.Sa.bind(this)))))},e.nc=function(t){if(this.a){var e=this.l.decode(t.value?t.value:new Uint8Array(0),{stream:!t.done});e&&(this.response=this.responseText+=e),t.done?va(this,!0):ya(this),3==this.readyState&&da(this)}},e.rc=function(t){this.a&&(this.response=this.responseText=t,va(this,!0))},e.qc=function(t){this.a&&(this.response=t,va(this,!0))},e.Sa=function(t){var e=this.h;e&&e.log(ra,"Failed to fetch url "+this.g,t instanceof Error?t:Error(t)),this.a&&va(this,!0)},e.setRequestHeader=function(t,e){this.i.append(t,e)},e.getResponseHeader=function(t){return this.b?this.b.get(t.toLowerCase())||"":((t=this.h)&&t.log(ra,"Attempting to get response header but no headers have been received for url: "+this.g,void 0),"")},e.getAllResponseHeaders=function(){if(!this.b){var t=this.h;return t&&t.log(ra,"Attempting to get all response headers but no headers have been received for url: "+this.g,void 0),""}t=[];for(var e=this.b.entries(),n=e.next();!n.done;)n=n.value,t.push(n[0]+": "+n[1]),n=e.next();return t.join("\r\n")},S(ma,wn);var ga="";ma.prototype.b=ca("goog.net.XhrIo");var ba=/^https?$/i,wa=["POST","PUT"];function Ea(t,e,n,r,i){if(t.a)throw Error("[goog.net.XhrIo] Object is active with another request="+t.l+"; newUri="+e);n=n?n.toUpperCase():"GET",t.l=e,t.h="",t.P=n,t.N=!1,t.c=!0,t.a=t.D?t.D.a():zo.a(),t.B=t.D?Ko(t.D):Ko(zo),t.a.onreadystatechange=_(t.Sb,t);try{la(t.b,Oa(t,"Opening Xhr")),t.O=!0,t.a.open(n,String(e),!0),t.O=!1}catch(a){return la(t.b,Oa(t,"Error opening Xhr: "+a.message)),void Ta(t,a)}e=r||"";var o=new Nn(t.headers);i&&function(t,e){if(t.forEach&&"function"==typeof t.forEach)t.forEach(e,void 0);else if(d(t)||"string"===typeof t)G(t,e,void 0);else for(var n=xn(t),r=kn(t),i=r.length,o=0;oe?null:"string"===typeof t?t.charAt(e):t[e]}(o.X()),r=c.FormData&&e instanceof c.FormData,!$(wa,n)||i||r||o.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8"),o.forEach((function(t,e){this.a.setRequestHeader(e,t)}),t),t.m&&(t.a.responseType=t.m),"withCredentials"in t.a&&t.a.withCredentials!==t.R&&(t.a.withCredentials=t.R);try{xa(t),0=e.l&&e.cancel())}this.w?this.w.call(this.s,this):this.u=!0,this.a||(t=new Ua(this),Da(this),Pa(this,!1,t))}},Ca.prototype.m=function(t,e){this.i=!1,Pa(this,t,e)},Ca.prototype.then=function(t,e,n){var r,i,o=new we((function(t,e){r=t,i=e}));return Ra(this,r,(function(t){t instanceof Ua?o.cancel():i(t)})),o.then(t,e,n)},Ca.prototype.$goog_Thenable=!0,S(Ma,R),Ma.prototype.message="Deferred has already fired",Ma.prototype.name="AlreadyCalledError",S(Ua,R),Ua.prototype.message="Deferred was canceled",Ua.prototype.name="CanceledError",Fa.prototype.c=function(){throw delete Va[this.a],this.b};var Va={};function za(t){var e={},n=e.document||document,r=St(t).toString(),i=he(document,"SCRIPT"),o={Tb:i,Ka:void 0},a=new Ca(o),s=null,u=null!=e.timeout?e.timeout:5e3;return 0t)&&(!Kt||!ne||9e;e++){i=0|n[e-15],r=0|n[e-2];var o=(0|n[e-16])+((i>>>7|i<<25)^(i>>>18|i<<14)^i>>>3)|0,a=(0|n[e-7])+((r>>>17|r<<15)^(r>>>19|r<<13)^r>>>10)|0;n[e]=o+a|0}r=0|t.a[0],i=0|t.a[1];var s=0|t.a[2],u=0|t.a[3],c=0|t.a[4],l=0|t.a[5],f=0|t.a[6];for(o=0|t.a[7],e=0;64>e;e++){var h=((r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10))+(r&i^r&s^i&s)|0;a=(o=o+((c>>>6|c<<26)^(c>>>11|c<<21)^(c>>>25|c<<7))|0)+((a=(a=c&l^~c&f)+(0|nc[e])|0)+(0|n[e])|0)|0,o=f,f=l,l=c,c=u+a|0,u=s,s=i,i=r,r=a+h|0}t.a[0]=t.a[0]+r|0,t.a[1]=t.a[1]+i|0,t.a[2]=t.a[2]+s|0,t.a[3]=t.a[3]+u|0,t.a[4]=t.a[4]+c|0,t.a[5]=t.a[5]+l|0,t.a[6]=t.a[6]+f|0,t.a[7]=t.a[7]+o|0}function hc(t,e,n){void 0===n&&(n=e.length);var r=0,i=t.c;if("string"===typeof e)for(;r=o&&o==(0|o)))throw Error("message must be a byte array");t.f[i++]=o,i==t.b&&(fc(t),i=0)}}t.c=i,t.g+=n}oc.prototype.reset=function(){this.g=this.c=0,this.a=c.Int32Array?new Int32Array(this.h):J(this.h)};var pc=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function dc(){oc.call(this,8,vc)}S(dc,oc);var vc=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];function yc(t,e,n,r,i){this.u=t,this.i=e,this.l=n,this.m=r||null,this.s=i||null,this.h=e+":"+n,this.w=new ic,this.g=new ec(this.h),this.f=null,this.b=[],this.a=this.c=null}function mc(t){return new k("invalid-cordova-configuration",t)}function gc(t){var e=new dc;hc(e,t),t=[];var n=8*e.g;56>e.c?hc(e,lc,56-e.c):hc(e,lc,e.b-(e.c-56));for(var r=63;56<=r;r--)e.f[r]=255&n,n/=256;for(fc(e),r=n=0;r>i&255;return function(t){return W(t,(function(t){return 1<(t=t.toString(16)).length?t:"0"+t})).join("")}(t)}function bc(t,e){for(var n=0;nt.f&&(t.a=t.f),e)}(e,n)).then((function(){return function(){var t=c.document,e=null;return Vr()||!t?xe():new we((function(n){e=function(){Vr()&&(t.removeEventListener("visibilitychange",e,!1),n())},t.addEventListener("visibilitychange",e,!1)})).o((function(n){throw t.removeEventListener("visibilitychange",e,!1),n}))}()})).then((function(){return e.h()})).then((function(){t(e,!0)})).o((function(n){e.i(n)&&t(e,!1)}))}(this,!0)},al.prototype.stop=function(){this.b&&(this.b.cancel(),this.b=null)},sl.prototype.v=function(){return{apiKey:this.c.c,refreshToken:this.a,accessToken:this.b&&this.b.toString(),expirationTime:ul(this)}},sl.prototype.getToken=function(t){return t=!!t,this.b&&!this.a?Ne(new k("user-token-expired")):t||!this.b||I()>ul(this)-3e4?this.a?ll(this,{grant_type:"refresh_token",refresh_token:this.a}):xe(null):xe({accessToken:this.b.toString(),refreshToken:this.a})},fl.prototype.v=function(){return{lastLoginAt:this.b,createdAt:this.a}},S(pl,wn),pl.prototype.va=function(t){this.oa=t,es(this.a,t)},pl.prototype.ja=function(){return this.oa},pl.prototype.Ea=function(){return J(this.W)},pl.prototype.Ma=function(){this.B.b&&(this.B.stop(),this.B.start())},Kr(pl.prototype,"providerId","firebase"),(e=pl.prototype).reload=function(){var t=this;return Fl(this,Sl(this).then((function(){return Cl(t).then((function(){return El(t)})).then(Il)})))},e.mc=function(t){return this.I(t).then((function(t){return new $c(t)}))},e.I=function(t){var e=this;return Fl(this,Sl(this).then((function(){return e.b.getToken(t)})).then((function(t){if(!t)throw new k("internal-error");return t.accessToken!=e.xa&&(wl(e,t.accessToken),e.dispatchEvent(new rl("tokenChanged"))),Al(e,"refreshToken",t.refreshToken),t.accessToken})))},e.Ic=function(t){if(!(t=t.users)||!t.length)throw new k("internal-error");Tl(this,{uid:(t=t[0]).localId,displayName:t.displayName,photoURL:t.photoUrl,email:t.email,emailVerified:!!t.emailVerified,phoneNumber:t.phoneNumber,lastLoginAt:t.lastLoginAt,createdAt:t.createdAt,tenantId:t.tenantId});for(var e=function(t){return(t=t.providerUserInfo)&&t.length?W(t,(function(t){return new hl(t.rawId,t.providerId,t.email,t.displayName,t.photoUrl,t.phoneNumber)})):[]}(t),n=0;nthis.s&&(this.s=0),0==this.s&&uf(this)&&bl(uf(this)),this.removeAuthTokenListener(t)},e.addAuthTokenListener=function(t){var e=this;this.m.push(t),ff(this,this.h.then((function(){e.l||$(e.m,t)&&t(cf(e))})))},e.removeAuthTokenListener=function(t){X(this.m,(function(e){return e==t}))},e.delete=function(){this.l=!0;for(var t=0;ti||i>=jf.length)throw new k("internal-error","Argument validator received an unsupported number of arguments.");n=jf[i],r=(r?"":n+" argument ")+(e.name?'"'+e.name+'" ':"")+"must be "+e.J+".";break t}r=null}}if(r)throw new k("argument-error",t+" failed: "+r)}(e=kf.prototype).Ga=function(){var t=this;return this.f?this.f:this.f=Pf(this,xe().then((function(){if(Or()&&!gr())return vr();throw new k("operation-not-supported-in-this-environment","RecaptchaVerifier is only supported in a browser HTTP/HTTPS environment.")})).then((function(){return t.m.g(t.w())})).then((function(e){return t.g=e,Zs(t.s,js,{})})).then((function(e){t.a[Af]=e.recaptchaSiteKey})).o((function(e){throw t.f=null,e})))},e.render=function(){Df(this);var t=this;return Pf(this,this.Ga().then((function(){if(null===t.c){var e=t.u;if(!t.i){var n=ae(e);e=function(t,e,n){var r=arguments,i=document,o=String(r[0]),a=r[1];if(!oe&&a&&(a.name||a.type)){if(o=["<",o],a.name&&o.push(' name="',qt(a.name),'"'),a.type){o.push(' type="',qt(a.type),'"');var s={};mt(s,a),delete s.type,a=s}o.push(">"),o=o.join("")}return o=he(i,o),a&&("string"===typeof a?o.className=a:Array.isArray(a)?o.className=a.join(" "):se(o,a)),2s)&&void 0===t.nsecs&&(v=0),v>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");s=d,u=v,i=h;var m=(1e4*(268435455&(d+=122192928e5))+v)%4294967296;l[c++]=m>>>24&255,l[c++]=m>>>16&255,l[c++]=m>>>8&255,l[c++]=255&m;var g=d/4294967296*1e4&268435455;l[c++]=g>>>8&255,l[c++]=255&g,l[c++]=g>>>24&15|16,l[c++]=g>>>16&255,l[c++]=h>>>8|128,l[c++]=255&h;for(var b=0;b<6;++b)l[c+b]=f[b];return e||a(l)}},function(t,e,n){var r=n(33),i=n(34);t.exports=function(t,e,n){var o=e&&n||0;"string"==typeof t&&(e="binary"===t?new Array(16):null,t=null);var a=(t=t||{}).random||(t.rng||r)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,e)for(var s=0;s<16;++s)e[o+s]=a[s];return e||i(a)}},,,,,,,,function(t,e,n){"use strict";t.exports=n(78)},function(t,e,n){"use strict";var r=n(79),i="function"===typeof Symbol&&Symbol.for,o=i?Symbol.for("react.element"):60103,a=i?Symbol.for("react.portal"):60106,s=i?Symbol.for("react.fragment"):60107,u=i?Symbol.for("react.strict_mode"):60108,c=i?Symbol.for("react.profiler"):60114,l=i?Symbol.for("react.provider"):60109,f=i?Symbol.for("react.context"):60110,h=i?Symbol.for("react.forward_ref"):60112,p=i?Symbol.for("react.suspense"):60113,d=i?Symbol.for("react.memo"):60115,v=i?Symbol.for("react.lazy"):60116,y="function"===typeof Symbol&&Symbol.iterator;function m(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,n=1;nO.length&&O.push(t)}function D(t,e,n){return null==t?0:function t(e,n,r,i){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var u=!1;if(null===e)u=!0;else switch(s){case"string":case"number":u=!0;break;case"object":switch(e.$$typeof){case o:case a:u=!0}}if(u)return r(i,e,""===n?"."+R(e,0):n),1;if(u=0,n=""===n?".":n+":",Array.isArray(e))for(var c=0;c {\n const context = createContext();\n context.displayName = name;\n\n return context;\n};\n\nexport default createNamedContext;\n","// TODO: Replace with React.createContext once we can assume React 16+\nimport createContext from \"mini-create-react-context\";\n\nconst createNamedContext = name => {\n const context = createContext();\n context.displayName = name;\n\n return context;\n};\n\nconst context = /*#__PURE__*/ createNamedContext(\"Router\");\nexport default context;\n","import React from \"react\";\nimport PropTypes from \"prop-types\";\nimport warning from \"tiny-warning\";\n\nimport HistoryContext from \"./HistoryContext.js\";\nimport RouterContext from \"./RouterContext.js\";\n\n/**\n * The public API for putting history on context.\n */\nclass Router extends React.Component {\n static computeRootMatch(pathname) {\n return { path: \"/\", url: \"/\", params: {}, isExact: pathname === \"/\" };\n }\n\n constructor(props) {\n super(props);\n\n this.state = {\n location: props.history.location\n };\n\n // This is a bit of a hack. We have to start listening for location\n // changes here in the constructor in case there are any s\n // on the initial render. If there are, they will replace/push when\n // they mount and since cDM fires in children before parents, we may\n // get a new location before the is mounted.\n this._isMounted = false;\n this._pendingLocation = null;\n\n if (!props.staticContext) {\n this.unlisten = props.history.listen(location => {\n if (this._isMounted) {\n this.setState({ location });\n } else {\n this._pendingLocation = location;\n }\n });\n }\n }\n\n componentDidMount() {\n this._isMounted = true;\n\n if (this._pendingLocation) {\n this.setState({ location: this._pendingLocation });\n }\n }\n\n componentWillUnmount() {\n if (this.unlisten) this.unlisten();\n }\n\n render() {\n return (\n \n \n \n );\n }\n}\n\nif (__DEV__) {\n Router.propTypes = {\n children: PropTypes.node,\n history: PropTypes.object.isRequired,\n staticContext: PropTypes.object\n };\n\n Router.prototype.componentDidUpdate = function(prevProps) {\n warning(\n prevProps.history === this.props.history,\n \"You cannot change \"\n );\n };\n}\n\nexport default Router;\n","import React from \"react\";\nimport PropTypes from \"prop-types\";\nimport { createMemoryHistory as createHistory } from \"history\";\nimport warning from \"tiny-warning\";\n\nimport Router from \"./Router.js\";\n\n/**\n * The public API for a that stores location in memory.\n */\nclass MemoryRouter extends React.Component {\n history = createHistory(this.props);\n\n render() {\n return ;\n }\n}\n\nif (__DEV__) {\n MemoryRouter.propTypes = {\n initialEntries: PropTypes.array,\n initialIndex: PropTypes.number,\n getUserConfirmation: PropTypes.func,\n keyLength: PropTypes.number,\n children: PropTypes.node\n };\n\n MemoryRouter.prototype.componentDidMount = function() {\n warning(\n !this.props.history,\n \" ignores the history prop. To use a custom history, \" +\n \"use `import { Router }` instead of `import { MemoryRouter as Router }`.\"\n );\n };\n}\n\nexport default MemoryRouter;\n","import React from \"react\";\n\nclass Lifecycle extends React.Component {\n componentDidMount() {\n if (this.props.onMount) this.props.onMount.call(this, this);\n }\n\n componentDidUpdate(prevProps) {\n if (this.props.onUpdate) this.props.onUpdate.call(this, this, prevProps);\n }\n\n componentWillUnmount() {\n if (this.props.onUnmount) this.props.onUnmount.call(this, this);\n }\n\n render() {\n return null;\n }\n}\n\nexport default Lifecycle;\n","import pathToRegexp from \"path-to-regexp\";\n\nconst cache = {};\nconst cacheLimit = 10000;\nlet cacheCount = 0;\n\nfunction compilePath(path) {\n if (cache[path]) return cache[path];\n\n const generator = pathToRegexp.compile(path);\n\n if (cacheCount < cacheLimit) {\n cache[path] = generator;\n cacheCount++;\n }\n\n return generator;\n}\n\n/**\n * Public API for generating a URL pathname from a path and parameters.\n */\nfunction generatePath(path = \"/\", params = {}) {\n return path === \"/\" ? path : compilePath(path)(params, { pretty: true });\n}\n\nexport default generatePath;\n","import React from \"react\";\nimport PropTypes from \"prop-types\";\nimport { createLocation, locationsAreEqual } from \"history\";\nimport invariant from \"tiny-invariant\";\n\nimport Lifecycle from \"./Lifecycle.js\";\nimport RouterContext from \"./RouterContext.js\";\nimport generatePath from \"./generatePath.js\";\n\n/**\n * The public API for navigating programmatically with a component.\n */\nfunction Redirect({ computedMatch, to, push = false }) {\n return (\n \n {context => {\n invariant(context, \"You should not use outside a \");\n\n const { history, staticContext } = context;\n\n const method = push ? history.push : history.replace;\n const location = createLocation(\n computedMatch\n ? typeof to === \"string\"\n ? generatePath(to, computedMatch.params)\n : {\n ...to,\n pathname: generatePath(to.pathname, computedMatch.params)\n }\n : to\n );\n\n // When rendering in a static context,\n // set the new location immediately.\n if (staticContext) {\n method(location);\n return null;\n }\n\n return (\n {\n method(location);\n }}\n onUpdate={(self, prevProps) => {\n const prevLocation = createLocation(prevProps.to);\n if (\n !locationsAreEqual(prevLocation, {\n ...location,\n key: prevLocation.key\n })\n ) {\n method(location);\n }\n }}\n to={to}\n />\n );\n }}\n \n );\n}\n\nif (__DEV__) {\n Redirect.propTypes = {\n push: PropTypes.bool,\n from: PropTypes.string,\n to: PropTypes.oneOfType([PropTypes.string, PropTypes.object]).isRequired\n };\n}\n\nexport default Redirect;\n","import pathToRegexp from \"path-to-regexp\";\n\nconst cache = {};\nconst cacheLimit = 10000;\nlet cacheCount = 0;\n\nfunction compilePath(path, options) {\n const cacheKey = `${options.end}${options.strict}${options.sensitive}`;\n const pathCache = cache[cacheKey] || (cache[cacheKey] = {});\n\n if (pathCache[path]) return pathCache[path];\n\n const keys = [];\n const regexp = pathToRegexp(path, keys, options);\n const result = { regexp, keys };\n\n if (cacheCount < cacheLimit) {\n pathCache[path] = result;\n cacheCount++;\n }\n\n return result;\n}\n\n/**\n * Public API for matching a URL pathname to a path.\n */\nfunction matchPath(pathname, options = {}) {\n if (typeof options === \"string\" || Array.isArray(options)) {\n options = { path: options };\n }\n\n const { path, exact = false, strict = false, sensitive = false } = options;\n\n const paths = [].concat(path);\n\n return paths.reduce((matched, path) => {\n if (!path && path !== \"\") return null;\n if (matched) return matched;\n\n const { regexp, keys } = compilePath(path, {\n end: exact,\n strict,\n sensitive\n });\n const match = regexp.exec(pathname);\n\n if (!match) return null;\n\n const [url, ...values] = match;\n const isExact = pathname === url;\n\n if (exact && !isExact) return null;\n\n return {\n path, // the path used to match\n url: path === \"/\" && url === \"\" ? \"/\" : url, // the matched portion of the URL\n isExact, // whether or not we matched exactly\n params: keys.reduce((memo, key, index) => {\n memo[key.name] = values[index];\n return memo;\n }, {})\n };\n }, null);\n}\n\nexport default matchPath;\n","import React from \"react\";\nimport { isValidElementType } from \"react-is\";\nimport PropTypes from \"prop-types\";\nimport invariant from \"tiny-invariant\";\nimport warning from \"tiny-warning\";\n\nimport RouterContext from \"./RouterContext.js\";\nimport matchPath from \"./matchPath.js\";\n\nfunction isEmptyChildren(children) {\n return React.Children.count(children) === 0;\n}\n\nfunction evalChildrenDev(children, props, path) {\n const value = children(props);\n\n warning(\n value !== undefined,\n \"You returned `undefined` from the `children` function of \" +\n `, but you ` +\n \"should have returned a React element or `null`\"\n );\n\n return value || null;\n}\n\n/**\n * The public API for matching a single path and rendering.\n */\nclass Route extends React.Component {\n render() {\n return (\n \n {context => {\n invariant(context, \"You should not use outside a \");\n\n const location = this.props.location || context.location;\n const match = this.props.computedMatch\n ? this.props.computedMatch // already computed the match for us\n : this.props.path\n ? matchPath(location.pathname, this.props)\n : context.match;\n\n const props = { ...context, location, match };\n\n let { children, component, render } = this.props;\n\n // Preact uses an empty array as children by\n // default, so use null if that's the case.\n if (Array.isArray(children) && children.length === 0) {\n children = null;\n }\n\n return (\n \n {props.match\n ? children\n ? typeof children === \"function\"\n ? __DEV__\n ? evalChildrenDev(children, props, this.props.path)\n : children(props)\n : children\n : component\n ? React.createElement(component, props)\n : render\n ? render(props)\n : null\n : typeof children === \"function\"\n ? __DEV__\n ? evalChildrenDev(children, props, this.props.path)\n : children(props)\n : null}\n \n );\n }}\n \n );\n }\n}\n\nif (__DEV__) {\n Route.propTypes = {\n children: PropTypes.oneOfType([PropTypes.func, PropTypes.node]),\n component: (props, propName) => {\n if (props[propName] && !isValidElementType(props[propName])) {\n return new Error(\n `Invalid prop 'component' supplied to 'Route': the prop is not a valid React component`\n );\n }\n },\n exact: PropTypes.bool,\n location: PropTypes.object,\n path: PropTypes.oneOfType([\n PropTypes.string,\n PropTypes.arrayOf(PropTypes.string)\n ]),\n render: PropTypes.func,\n sensitive: PropTypes.bool,\n strict: PropTypes.bool\n };\n\n Route.prototype.componentDidMount = function() {\n warning(\n !(\n this.props.children &&\n !isEmptyChildren(this.props.children) &&\n this.props.component\n ),\n \"You should not use and in the same route; will be ignored\"\n );\n\n warning(\n !(\n this.props.children &&\n !isEmptyChildren(this.props.children) &&\n this.props.render\n ),\n \"You should not use and in the same route; will be ignored\"\n );\n\n warning(\n !(this.props.component && this.props.render),\n \"You should not use and in the same route; will be ignored\"\n );\n };\n\n Route.prototype.componentDidUpdate = function(prevProps) {\n warning(\n !(this.props.location && !prevProps.location),\n ' elements should not change from uncontrolled to controlled (or vice versa). You initially used no \"location\" prop and then provided one on a subsequent render.'\n );\n\n warning(\n !(!this.props.location && prevProps.location),\n ' elements should not change from controlled to uncontrolled (or vice versa). You provided a \"location\" prop initially but omitted it on a subsequent render.'\n );\n };\n}\n\nexport default Route;\n","import React from \"react\";\nimport PropTypes from \"prop-types\";\nimport { createLocation, createPath } from \"history\";\nimport invariant from \"tiny-invariant\";\nimport warning from \"tiny-warning\";\n\nimport Router from \"./Router.js\";\n\nfunction addLeadingSlash(path) {\n return path.charAt(0) === \"/\" ? path : \"/\" + path;\n}\n\nfunction addBasename(basename, location) {\n if (!basename) return location;\n\n return {\n ...location,\n pathname: addLeadingSlash(basename) + location.pathname\n };\n}\n\nfunction stripBasename(basename, location) {\n if (!basename) return location;\n\n const base = addLeadingSlash(basename);\n\n if (location.pathname.indexOf(base) !== 0) return location;\n\n return {\n ...location,\n pathname: location.pathname.substr(base.length)\n };\n}\n\nfunction createURL(location) {\n return typeof location === \"string\" ? location : createPath(location);\n}\n\nfunction staticHandler(methodName) {\n return () => {\n invariant(false, \"You cannot %s with \", methodName);\n };\n}\n\nfunction noop() {}\n\n/**\n * The public top-level API for a \"static\" , so-called because it\n * can't actually change the current location. Instead, it just records\n * location changes in a context object. Useful mainly in testing and\n * server-rendering scenarios.\n */\nclass StaticRouter extends React.Component {\n navigateTo(location, action) {\n const { basename = \"\", context = {} } = this.props;\n context.action = action;\n context.location = addBasename(basename, createLocation(location));\n context.url = createURL(context.location);\n }\n\n handlePush = location => this.navigateTo(location, \"PUSH\");\n handleReplace = location => this.navigateTo(location, \"REPLACE\");\n handleListen = () => noop;\n handleBlock = () => noop;\n\n render() {\n const { basename = \"\", context = {}, location = \"/\", ...rest } = this.props;\n\n const history = {\n createHref: path => addLeadingSlash(basename + createURL(path)),\n action: \"POP\",\n location: stripBasename(basename, createLocation(location)),\n push: this.handlePush,\n replace: this.handleReplace,\n go: staticHandler(\"go\"),\n goBack: staticHandler(\"goBack\"),\n goForward: staticHandler(\"goForward\"),\n listen: this.handleListen,\n block: this.handleBlock\n };\n\n return ;\n }\n}\n\nif (__DEV__) {\n StaticRouter.propTypes = {\n basename: PropTypes.string,\n context: PropTypes.object,\n location: PropTypes.oneOfType([PropTypes.string, PropTypes.object])\n };\n\n StaticRouter.prototype.componentDidMount = function() {\n warning(\n !this.props.history,\n \" ignores the history prop. To use a custom history, \" +\n \"use `import { Router }` instead of `import { StaticRouter as Router }`.\"\n );\n };\n}\n\nexport default StaticRouter;\n","import React from \"react\";\nimport PropTypes from \"prop-types\";\nimport invariant from \"tiny-invariant\";\nimport warning from \"tiny-warning\";\n\nimport RouterContext from \"./RouterContext.js\";\nimport matchPath from \"./matchPath.js\";\n\n/**\n * The public API for rendering the first that matches.\n */\nclass Switch extends React.Component {\n render() {\n return (\n \n {context => {\n invariant(context, \"You should not use outside a \");\n\n const location = this.props.location || context.location;\n\n let element, match;\n\n // We use React.Children.forEach instead of React.Children.toArray().find()\n // here because toArray adds keys to all child elements and we do not want\n // to trigger an unmount/remount for two s that render the same\n // component at different URLs.\n React.Children.forEach(this.props.children, child => {\n if (match == null && React.isValidElement(child)) {\n element = child;\n\n const path = child.props.path || child.props.from;\n\n match = path\n ? matchPath(location.pathname, { ...child.props, path })\n : context.match;\n }\n });\n\n return match\n ? React.cloneElement(element, { location, computedMatch: match })\n : null;\n }}\n \n );\n }\n}\n\nif (__DEV__) {\n Switch.propTypes = {\n children: PropTypes.node,\n location: PropTypes.object\n };\n\n Switch.prototype.componentDidUpdate = function(prevProps) {\n warning(\n !(this.props.location && !prevProps.location),\n ' elements should not change from uncontrolled to controlled (or vice versa). You initially used no \"location\" prop and then provided one on a subsequent render.'\n );\n\n warning(\n !(!this.props.location && prevProps.location),\n ' elements should not change from controlled to uncontrolled (or vice versa). You provided a \"location\" prop initially but omitted it on a subsequent render.'\n );\n };\n}\n\nexport default Switch;\n","import React from \"react\";\nimport PropTypes from \"prop-types\";\nimport hoistStatics from \"hoist-non-react-statics\";\nimport invariant from \"tiny-invariant\";\n\nimport RouterContext from \"./RouterContext.js\";\n\n/**\n * A public higher-order component to access the imperative API\n */\nfunction withRouter(Component) {\n const displayName = `withRouter(${Component.displayName || Component.name})`;\n const C = props => {\n const { wrappedComponentRef, ...remainingProps } = props;\n\n return (\n \n {context => {\n invariant(\n context,\n `You should not use <${displayName} /> outside a `\n );\n return (\n \n );\n }}\n \n );\n };\n\n C.displayName = displayName;\n C.WrappedComponent = Component;\n\n if (__DEV__) {\n C.propTypes = {\n wrappedComponentRef: PropTypes.oneOfType([\n PropTypes.string,\n PropTypes.func,\n PropTypes.object\n ])\n };\n }\n\n return hoistStatics(C, Component);\n}\n\nexport default withRouter;\n","import React from \"react\";\nimport invariant from \"tiny-invariant\";\n\nimport Context from \"./RouterContext.js\";\nimport HistoryContext from \"./HistoryContext.js\";\nimport matchPath from \"./matchPath.js\";\n\nconst useContext = React.useContext;\n\nexport function useHistory() {\n if (__DEV__) {\n invariant(\n typeof useContext === \"function\",\n \"You must use React >= 16.8 in order to use useHistory()\"\n );\n }\n\n return useContext(HistoryContext);\n}\n\nexport function useLocation() {\n if (__DEV__) {\n invariant(\n typeof useContext === \"function\",\n \"You must use React >= 16.8 in order to use useLocation()\"\n );\n }\n\n return useContext(Context).location;\n}\n\nexport function useParams() {\n if (__DEV__) {\n invariant(\n typeof useContext === \"function\",\n \"You must use React >= 16.8 in order to use useParams()\"\n );\n }\n\n const match = useContext(Context).match;\n return match ? match.params : {};\n}\n\nexport function useRouteMatch(path) {\n if (__DEV__) {\n invariant(\n typeof useContext === \"function\",\n \"You must use React >= 16.8 in order to use useRouteMatch()\"\n );\n }\n\n const location = useLocation();\n const match = useContext(Context).match;\n\n return path ? matchPath(location.pathname, path) : match;\n}\n","export default {\n disabled: false\n};","import React from 'react';\nexport default React.createContext(null);","import _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _inheritsLoose from \"@babel/runtime/helpers/esm/inheritsLoose\";\nimport PropTypes from 'prop-types';\nimport React from 'react';\nimport ReactDOM from 'react-dom';\nimport config from './config';\nimport { timeoutsShape } from './utils/PropTypes';\nimport TransitionGroupContext from './TransitionGroupContext';\nexport var UNMOUNTED = 'unmounted';\nexport var EXITED = 'exited';\nexport var ENTERING = 'entering';\nexport var ENTERED = 'entered';\nexport var EXITING = 'exiting';\n/**\n * The Transition component lets you describe a transition from one component\n * state to another _over time_ with a simple declarative API. Most commonly\n * it's used to animate the mounting and unmounting of a component, but can also\n * be used to describe in-place transition states as well.\n *\n * ---\n *\n * **Note**: `Transition` is a platform-agnostic base component. If you're using\n * transitions in CSS, you'll probably want to use\n * [`CSSTransition`](https://reactcommunity.org/react-transition-group/css-transition)\n * instead. It inherits all the features of `Transition`, but contains\n * additional features necessary to play nice with CSS transitions (hence the\n * name of the component).\n *\n * ---\n *\n * By default the `Transition` component does not alter the behavior of the\n * component it renders, it only tracks \"enter\" and \"exit\" states for the\n * components. It's up to you to give meaning and effect to those states. For\n * example we can add styles to a component when it enters or exits:\n *\n * ```jsx\n * import { Transition } from 'react-transition-group';\n *\n * const duration = 300;\n *\n * const defaultStyle = {\n * transition: `opacity ${duration}ms ease-in-out`,\n * opacity: 0,\n * }\n *\n * const transitionStyles = {\n * entering: { opacity: 1 },\n * entered: { opacity: 1 },\n * exiting: { opacity: 0 },\n * exited: { opacity: 0 },\n * };\n *\n * const Fade = ({ in: inProp }) => (\n * \n * {state => (\n *
\n * I'm a fade Transition!\n *
\n * )}\n * \n * );\n * ```\n *\n * There are 4 main states a Transition can be in:\n * - `'entering'`\n * - `'entered'`\n * - `'exiting'`\n * - `'exited'`\n *\n * Transition state is toggled via the `in` prop. When `true` the component\n * begins the \"Enter\" stage. During this stage, the component will shift from\n * its current transition state, to `'entering'` for the duration of the\n * transition and then to the `'entered'` stage once it's complete. Let's take\n * the following example (we'll use the\n * [useState](https://reactjs.org/docs/hooks-reference.html#usestate) hook):\n *\n * ```jsx\n * function App() {\n * const [inProp, setInProp] = useState(false);\n * return (\n *