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,CAAC,IAC1C,CAAA,GAAW,WAAW,CACpB,kfAEF,GAAgB,WAAW,CAAC,IAC5B,SAAS,IAAI,CAAC,WAAW,CAAC,GAC5B,C","sources":["","main.js","node_modules/.pnpm/@swc+helpers@0.5.3/node_modules/@swc/helpers/esm/_async_to_generator.js","node_modules/.pnpm/tslib@2.6.2/node_modules/tslib/tslib.es6.js","node_modules/.pnpm/@swc+helpers@0.5.3/node_modules/@swc/helpers/esm/_type_of.js","node_modules/.pnpm/beercss@3.4.12/node_modules/beercss/index.js","node_modules/.pnpm/beercss@3.4.12/node_modules/beercss/dist/cdn/beer.min.js","node_modules/.pnpm/material-dynamic-colors@1.1.0/node_modules/material-dynamic-colors/index.js","node_modules/.pnpm/material-dynamic-colors@1.1.0/node_modules/material-dynamic-colors/dist/cdn/material-dynamic-colors.min.js","node_modules/.pnpm/@swc+helpers@0.5.3/node_modules/@swc/helpers/esm/_class_call_check.js","node_modules/.pnpm/@swc+helpers@0.5.3/node_modules/@swc/helpers/esm/_create_class.js","node_modules/.pnpm/@swc+helpers@0.5.3/node_modules/@swc/helpers/esm/_object_spread.js","node_modules/.pnpm/@swc+helpers@0.5.3/node_modules/@swc/helpers/esm/_define_property.js","node_modules/.pnpm/@swc+helpers@0.5.3/node_modules/@swc/helpers/esm/_sliced_to_array.js","node_modules/.pnpm/@swc+helpers@0.5.3/node_modules/@swc/helpers/esm/_array_with_holes.js","node_modules/.pnpm/@swc+helpers@0.5.3/node_modules/@swc/helpers/esm/_iterable_to_array_limit.js","node_modules/.pnpm/@swc+helpers@0.5.3/node_modules/@swc/helpers/esm/_non_iterable_rest.js","node_modules/.pnpm/@swc+helpers@0.5.3/node_modules/@swc/helpers/esm/_unsupported_iterable_to_array.js","node_modules/.pnpm/@swc+helpers@0.5.3/node_modules/@swc/helpers/esm/_array_like_to_array.js","node_modules/.pnpm/firebase@10.7.1/node_modules/firebase/app/dist/esm/index.esm.js","node_modules/.pnpm/firebase@10.7.1/node_modules/firebase/app/index.ts","node_modules/.pnpm/@firebase+app@0.9.25/node_modules/@firebase/app/dist/esm/index.esm2017.js","node_modules/.pnpm/@firebase+app@0.9.25/node_modules/@firebase/app/src/platformLoggerService.ts","node_modules/.pnpm/@firebase+app@0.9.25/node_modules/@firebase/app/src/logger.ts","node_modules/.pnpm/@firebase+app@0.9.25/node_modules/@firebase/app/src/constants.ts","node_modules/.pnpm/@firebase+app@0.9.25/node_modules/@firebase/app/src/internal.ts","node_modules/.pnpm/@firebase+app@0.9.25/node_modules/@firebase/app/src/errors.ts","node_modules/.pnpm/@firebase+app@0.9.25/node_modules/@firebase/app/src/firebaseApp.ts","node_modules/.pnpm/@firebase+app@0.9.25/node_modules/@firebase/app/src/api.ts","node_modules/.pnpm/@firebase+app@0.9.25/node_modules/@firebase/app/src/indexeddb.ts","node_modules/.pnpm/@firebase+app@0.9.25/node_modules/@firebase/app/src/heartbeatService.ts","node_modules/.pnpm/@firebase+app@0.9.25/node_modules/@firebase/app/src/registerCoreComponents.ts","node_modules/.pnpm/@firebase+app@0.9.25/node_modules/@firebase/app/src/index.ts","node_modules/.pnpm/@swc+helpers@0.5.3/node_modules/@swc/helpers/esm/_to_consumable_array.js","node_modules/.pnpm/@swc+helpers@0.5.3/node_modules/@swc/helpers/esm/_array_without_holes.js","node_modules/.pnpm/@swc+helpers@0.5.3/node_modules/@swc/helpers/esm/_iterable_to_array.js","node_modules/.pnpm/@swc+helpers@0.5.3/node_modules/@swc/helpers/esm/_non_iterable_spread.js","node_modules/.pnpm/@firebase+component@0.6.4/node_modules/@firebase/component/dist/esm/index.esm2017.js","node_modules/.pnpm/@firebase+component@0.6.4/node_modules/@firebase/component/src/component.ts","node_modules/.pnpm/@firebase+component@0.6.4/node_modules/@firebase/component/src/constants.ts","node_modules/.pnpm/@firebase+component@0.6.4/node_modules/@firebase/component/src/provider.ts","node_modules/.pnpm/@firebase+component@0.6.4/node_modules/@firebase/component/src/component_container.ts","node_modules/.pnpm/@firebase+util@1.9.3/node_modules/@firebase/util/dist/index.esm2017.js","node_modules/.pnpm/@firebase+util@1.9.3/node_modules/@firebase/util/src/constants.ts","node_modules/.pnpm/@firebase+util@1.9.3/node_modules/@firebase/util/src/assert.ts","node_modules/.pnpm/@firebase+util@1.9.3/node_modules/@firebase/util/src/crypt.ts","node_modules/.pnpm/@firebase+util@1.9.3/node_modules/@firebase/util/src/deepCopy.ts","node_modules/.pnpm/@firebase+util@1.9.3/node_modules/@firebase/util/src/global.ts","node_modules/.pnpm/@firebase+util@1.9.3/node_modules/@firebase/util/src/defaults.ts","node_modules/.pnpm/@firebase+util@1.9.3/node_modules/@firebase/util/src/deferred.ts","node_modules/.pnpm/@firebase+util@1.9.3/node_modules/@firebase/util/src/emulator.ts","node_modules/.pnpm/@firebase+util@1.9.3/node_modules/@firebase/util/src/environment.ts","node_modules/.pnpm/@firebase+util@1.9.3/node_modules/@firebase/util/src/errors.ts","node_modules/.pnpm/@firebase+util@1.9.3/node_modules/@firebase/util/src/json.ts","node_modules/.pnpm/@firebase+util@1.9.3/node_modules/@firebase/util/src/jwt.ts","node_modules/.pnpm/@firebase+util@1.9.3/node_modules/@firebase/util/src/obj.ts","node_modules/.pnpm/@firebase+util@1.9.3/node_modules/@firebase/util/src/promise.ts","node_modules/.pnpm/@firebase+util@1.9.3/node_modules/@firebase/util/src/query.ts","node_modules/.pnpm/@firebase+util@1.9.3/node_modules/@firebase/util/src/sha1.ts","node_modules/.pnpm/@firebase+util@1.9.3/node_modules/@firebase/util/src/subscribe.ts","node_modules/.pnpm/@firebase+util@1.9.3/node_modules/@firebase/util/src/validation.ts","node_modules/.pnpm/@firebase+util@1.9.3/node_modules/@firebase/util/src/utf8.ts","node_modules/.pnpm/@firebase+util@1.9.3/node_modules/@firebase/util/src/uuid.ts","node_modules/.pnpm/@firebase+util@1.9.3/node_modules/@firebase/util/src/exponential_backoff.ts","node_modules/.pnpm/@firebase+util@1.9.3/node_modules/@firebase/util/src/formatters.ts","node_modules/.pnpm/@firebase+util@1.9.3/node_modules/@firebase/util/src/compat.ts","node_modules/.pnpm/@swc+helpers@0.5.3/node_modules/@swc/helpers/esm/_assert_this_initialized.js","node_modules/.pnpm/@swc+helpers@0.5.3/node_modules/@swc/helpers/esm/_inherits.js","node_modules/.pnpm/@swc+helpers@0.5.3/node_modules/@swc/helpers/esm/_set_prototype_of.js","node_modules/.pnpm/@swc+helpers@0.5.3/node_modules/@swc/helpers/esm/_wrap_native_super.js","node_modules/.pnpm/@swc+helpers@0.5.3/node_modules/@swc/helpers/esm/_construct.js","node_modules/.pnpm/@swc+helpers@0.5.3/node_modules/@swc/helpers/esm/_is_native_reflect_construct.js","node_modules/.pnpm/@swc+helpers@0.5.3/node_modules/@swc/helpers/esm/_get_prototype_of.js","node_modules/.pnpm/@swc+helpers@0.5.3/node_modules/@swc/helpers/esm/_is_native_function.js","node_modules/.pnpm/@swc+helpers@0.5.3/node_modules/@swc/helpers/esm/_create_super.js","node_modules/.pnpm/@swc+helpers@0.5.3/node_modules/@swc/helpers/esm/_possible_constructor_return.js","node_modules/.pnpm/process@0.11.10/node_modules/process/browser.js","node_modules/.pnpm/@firebase+logger@0.4.0/node_modules/@firebase/logger/dist/esm/index.esm2017.js","node_modules/.pnpm/@firebase+logger@0.4.0/node_modules/@firebase/logger/src/logger.ts","node_modules/.pnpm/idb@7.1.1/node_modules/idb/build/index.js","node_modules/.pnpm/@swc+helpers@0.5.3/node_modules/@swc/helpers/esm/_object_spread_props.js","node_modules/.pnpm/idb@7.1.1/node_modules/idb/build/wrap-idb-value.js","node_modules/.pnpm/@firebase+auth@1.5.1_@firebase+app@0.9.25/node_modules/@firebase/auth/dist/esm2017/index-dd468b12.js","node_modules/.pnpm/@firebase+auth@1.5.1_@firebase+app@0.9.25/node_modules/@firebase/auth/src/model/enum_maps.ts","node_modules/.pnpm/@firebase+auth@1.5.1_@firebase+app@0.9.25/node_modules/@firebase/auth/src/core/errors.ts","node_modules/.pnpm/@firebase+auth@1.5.1_@firebase+app@0.9.25/node_modules/@firebase/auth/src/core/util/log.ts","node_modules/.pnpm/@firebase+auth@1.5.1_@firebase+app@0.9.25/node_modules/@firebase/auth/src/core/util/assert.ts","node_modules/.pnpm/@firebase+auth@1.5.1_@firebase+app@0.9.25/node_modules/@firebase/auth/src/core/util/location.ts","node_modules/.pnpm/@firebase+auth@1.5.1_@firebase+app@0.9.25/node_modules/@firebase/auth/src/core/util/navigator.ts","node_modules/.pnpm/@firebase+auth@1.5.1_@firebase+app@0.9.25/node_modules/@firebase/auth/src/core/util/delay.ts","node_modules/.pnpm/@firebase+auth@1.5.1_@firebase+app@0.9.25/node_modules/@firebase/auth/src/core/util/emulator.ts","node_modules/.pnpm/@firebase+auth@1.5.1_@firebase+app@0.9.25/node_modules/@firebase/auth/src/core/util/fetch_provider.ts","node_modules/.pnpm/@firebase+auth@1.5.1_@firebase+app@0.9.25/node_modules/@firebase/auth/src/api/errors.ts","node_modules/.pnpm/@firebase+auth@1.5.1_@firebase+app@0.9.25/node_modules/@firebase/auth/src/api/index.ts","node_modules/.pnpm/@firebase+auth@1.5.1_@firebase+app@0.9.25/node_modules/@firebase/auth/src/platform_browser/recaptcha/recaptcha.ts","node_modules/.pnpm/@firebase+auth@1.5.1_@firebase+app@0.9.25/node_modules/@firebase/auth/src/api/authentication/recaptcha.ts","node_modules/.pnpm/@firebase+auth@1.5.1_@firebase+app@0.9.25/node_modules/@firebase/auth/src/api/account_management/account.ts","node_modules/.pnpm/@firebase+auth@1.5.1_@firebase+app@0.9.25/node_modules/@firebase/auth/src/core/util/time.ts","node_modules/.pnpm/@firebase+auth@1.5.1_@firebase+app@0.9.25/node_modules/@firebase/auth/src/core/user/id_token_result.ts","node_modules/.pnpm/@firebase+auth@1.5.1_@firebase+app@0.9.25/node_modules/@firebase/auth/src/core/user/invalidation.ts","node_modules/.pnpm/@firebase+auth@1.5.1_@firebase+app@0.9.25/node_modules/@firebase/auth/src/core/user/proactive_refresh.ts","node_modules/.pnpm/@firebase+auth@1.5.1_@firebase+app@0.9.25/node_modules/@firebase/auth/src/core/user/user_metadata.ts","node_modules/.pnpm/@firebase+auth@1.5.1_@firebase+app@0.9.25/node_modules/@firebase/auth/src/core/user/reload.ts","node_modules/.pnpm/@firebase+auth@1.5.1_@firebase+app@0.9.25/node_modules/@firebase/auth/src/api/authentication/token.ts","node_modules/.pnpm/@firebase+auth@1.5.1_@firebase+app@0.9.25/node_modules/@firebase/auth/src/core/user/token_manager.ts","node_modules/.pnpm/@firebase+auth@1.5.1_@firebase+app@0.9.25/node_modules/@firebase/auth/src/core/user/user_impl.ts","node_modules/.pnpm/@firebase+auth@1.5.1_@firebase+app@0.9.25/node_modules/@firebase/auth/src/core/util/instantiator.ts","node_modules/.pnpm/@firebase+auth@1.5.1_@firebase+app@0.9.25/node_modules/@firebase/auth/src/core/persistence/in_memory.ts","node_modules/.pnpm/@firebase+auth@1.5.1_@firebase+app@0.9.25/node_modules/@firebase/auth/src/core/persistence/persistence_user_manager.ts","node_modules/.pnpm/@firebase+auth@1.5.1_@firebase+app@0.9.25/node_modules/@firebase/auth/src/core/util/browser.ts","node_modules/.pnpm/@firebase+auth@1.5.1_@firebase+app@0.9.25/node_modules/@firebase/auth/src/core/util/version.ts","node_modules/.pnpm/@firebase+auth@1.5.1_@firebase+app@0.9.25/node_modules/@firebase/auth/src/core/auth/middleware.ts","node_modules/.pnpm/@firebase+auth@1.5.1_@firebase+app@0.9.25/node_modules/@firebase/auth/src/api/password_policy/get_password_policy.ts","node_modules/.pnpm/@firebase+auth@1.5.1_@firebase+app@0.9.25/node_modules/@firebase/auth/src/core/auth/password_policy_impl.ts","node_modules/.pnpm/@firebase+auth@1.5.1_@firebase+app@0.9.25/node_modules/@firebase/auth/src/core/auth/auth_impl.ts","node_modules/.pnpm/@firebase+auth@1.5.1_@firebase+app@0.9.25/node_modules/@firebase/auth/src/platform_browser/load_js.ts","node_modules/.pnpm/@firebase+auth@1.5.1_@firebase+app@0.9.25/node_modules/@firebase/auth/src/platform_browser/recaptcha/recaptcha_enterprise_verifier.ts","node_modules/.pnpm/@firebase+auth@1.5.1_@firebase+app@0.9.25/node_modules/@firebase/auth/src/core/auth/initialize.ts","node_modules/.pnpm/@firebase+auth@1.5.1_@firebase+app@0.9.25/node_modules/@firebase/auth/src/core/auth/emulator.ts","node_modules/.pnpm/@firebase+auth@1.5.1_@firebase+app@0.9.25/node_modules/@firebase/auth/src/core/credentials/auth_credential.ts","node_modules/.pnpm/@firebase+auth@1.5.1_@firebase+app@0.9.25/node_modules/@firebase/auth/src/api/account_management/email_and_password.ts","node_modules/.pnpm/@firebase+auth@1.5.1_@firebase+app@0.9.25/node_modules/@firebase/auth/src/api/authentication/email_and_password.ts","node_modules/.pnpm/@firebase+auth@1.5.1_@firebase+app@0.9.25/node_modules/@firebase/auth/src/api/authentication/email_link.ts","node_modules/.pnpm/@firebase+auth@1.5.1_@firebase+app@0.9.25/node_modules/@firebase/auth/src/core/credentials/email.ts","node_modules/.pnpm/@firebase+auth@1.5.1_@firebase+app@0.9.25/node_modules/@firebase/auth/src/api/authentication/idp.ts","node_modules/.pnpm/@firebase+auth@1.5.1_@firebase+app@0.9.25/node_modules/@firebase/auth/src/core/credentials/oauth.ts","node_modules/.pnpm/@firebase+auth@1.5.1_@firebase+app@0.9.25/node_modules/@firebase/auth/src/api/authentication/sms.ts","node_modules/.pnpm/@firebase+auth@1.5.1_@firebase+app@0.9.25/node_modules/@firebase/auth/src/core/credentials/phone.ts","node_modules/.pnpm/@firebase+auth@1.5.1_@firebase+app@0.9.25/node_modules/@firebase/auth/src/core/action_code_url.ts","node_modules/.pnpm/@firebase+auth@1.5.1_@firebase+app@0.9.25/node_modules/@firebase/auth/src/core/providers/email.ts","node_modules/.pnpm/@firebase+auth@1.5.1_@firebase+app@0.9.25/node_modules/@firebase/auth/src/core/providers/federated.ts","node_modules/.pnpm/@firebase+auth@1.5.1_@firebase+app@0.9.25/node_modules/@firebase/auth/src/core/providers/oauth.ts","node_modules/.pnpm/@firebase+auth@1.5.1_@firebase+app@0.9.25/node_modules/@firebase/auth/src/core/providers/facebook.ts","node_modules/.pnpm/@firebase+auth@1.5.1_@firebase+app@0.9.25/node_modules/@firebase/auth/src/core/providers/google.ts","node_modules/.pnpm/@firebase+auth@1.5.1_@firebase+app@0.9.25/node_modules/@firebase/auth/src/core/providers/github.ts","node_modules/.pnpm/@firebase+auth@1.5.1_@firebase+app@0.9.25/node_modules/@firebase/auth/src/core/credentials/saml.ts","node_modules/.pnpm/@firebase+auth@1.5.1_@firebase+app@0.9.25/node_modules/@firebase/auth/src/core/providers/saml.ts","node_modules/.pnpm/@firebase+auth@1.5.1_@firebase+app@0.9.25/node_modules/@firebase/auth/src/core/providers/twitter.ts","node_modules/.pnpm/@firebase+auth@1.5.1_@firebase+app@0.9.25/node_modules/@firebase/auth/src/api/authentication/sign_up.ts","node_modules/.pnpm/@firebase+auth@1.5.1_@firebase+app@0.9.25/node_modules/@firebase/auth/src/core/user/user_credential_impl.ts","node_modules/.pnpm/@firebase+auth@1.5.1_@firebase+app@0.9.25/node_modules/@firebase/auth/src/core/strategies/anonymous.ts","node_modules/.pnpm/@firebase+auth@1.5.1_@firebase+app@0.9.25/node_modules/@firebase/auth/src/mfa/mfa_error.ts","node_modules/.pnpm/@firebase+auth@1.5.1_@firebase+app@0.9.25/node_modules/@firebase/auth/src/core/util/providers.ts","node_modules/.pnpm/@firebase+auth@1.5.1_@firebase+app@0.9.25/node_modules/@firebase/auth/src/core/user/link_unlink.ts","node_modules/.pnpm/@firebase+auth@1.5.1_@firebase+app@0.9.25/node_modules/@firebase/auth/src/core/user/reauthenticate.ts","node_modules/.pnpm/@firebase+auth@1.5.1_@firebase+app@0.9.25/node_modules/@firebase/auth/src/core/strategies/credential.ts","node_modules/.pnpm/@firebase+auth@1.5.1_@firebase+app@0.9.25/node_modules/@firebase/auth/src/api/authentication/custom_token.ts","node_modules/.pnpm/@firebase+auth@1.5.1_@firebase+app@0.9.25/node_modules/@firebase/auth/src/core/strategies/custom_token.ts","node_modules/.pnpm/@firebase+auth@1.5.1_@firebase+app@0.9.25/node_modules/@firebase/auth/src/mfa/mfa_info.ts","node_modules/.pnpm/@firebase+auth@1.5.1_@firebase+app@0.9.25/node_modules/@firebase/auth/src/core/strategies/action_code_settings.ts","node_modules/.pnpm/@firebase+auth@1.5.1_@firebase+app@0.9.25/node_modules/@firebase/auth/src/core/strategies/email_and_password.ts","node_modules/.pnpm/@firebase+auth@1.5.1_@firebase+app@0.9.25/node_modules/@firebase/auth/src/core/strategies/email_link.ts","node_modules/.pnpm/@firebase+auth@1.5.1_@firebase+app@0.9.25/node_modules/@firebase/auth/src/api/authentication/create_auth_uri.ts","node_modules/.pnpm/@firebase+auth@1.5.1_@firebase+app@0.9.25/node_modules/@firebase/auth/src/core/strategies/email.ts","node_modules/.pnpm/@firebase+auth@1.5.1_@firebase+app@0.9.25/node_modules/@firebase/auth/src/api/account_management/profile.ts","node_modules/.pnpm/@firebase+auth@1.5.1_@firebase+app@0.9.25/node_modules/@firebase/auth/src/core/user/account_info.ts","node_modules/.pnpm/@firebase+auth@1.5.1_@firebase+app@0.9.25/node_modules/@firebase/auth/src/core/user/additional_user_info.ts","node_modules/.pnpm/@firebase+auth@1.5.1_@firebase+app@0.9.25/node_modules/@firebase/auth/src/core/index.ts","node_modules/.pnpm/@firebase+auth@1.5.1_@firebase+app@0.9.25/node_modules/@firebase/auth/src/mfa/mfa_session.ts","node_modules/.pnpm/@firebase+auth@1.5.1_@firebase+app@0.9.25/node_modules/@firebase/auth/src/mfa/mfa_resolver.ts","node_modules/.pnpm/@firebase+auth@1.5.1_@firebase+app@0.9.25/node_modules/@firebase/auth/src/api/account_management/mfa.ts","node_modules/.pnpm/@firebase+auth@1.5.1_@firebase+app@0.9.25/node_modules/@firebase/auth/src/mfa/mfa_user.ts","node_modules/.pnpm/@firebase+auth@1.5.1_@firebase+app@0.9.25/node_modules/@firebase/auth/src/core/persistence/index.ts","node_modules/.pnpm/@firebase+auth@1.5.1_@firebase+app@0.9.25/node_modules/@firebase/auth/src/platform_browser/persistence/browser.ts","node_modules/.pnpm/@firebase+auth@1.5.1_@firebase+app@0.9.25/node_modules/@firebase/auth/src/platform_browser/persistence/local_storage.ts","node_modules/.pnpm/@firebase+auth@1.5.1_@firebase+app@0.9.25/node_modules/@firebase/auth/src/platform_browser/persistence/session_storage.ts","node_modules/.pnpm/@firebase+auth@1.5.1_@firebase+app@0.9.25/node_modules/@firebase/auth/src/platform_browser/messagechannel/promise.ts","node_modules/.pnpm/@firebase+auth@1.5.1_@firebase+app@0.9.25/node_modules/@firebase/auth/src/platform_browser/messagechannel/receiver.ts","node_modules/.pnpm/@firebase+auth@1.5.1_@firebase+app@0.9.25/node_modules/@firebase/auth/src/core/util/event_id.ts","node_modules/.pnpm/@firebase+auth@1.5.1_@firebase+app@0.9.25/node_modules/@firebase/auth/src/platform_browser/messagechannel/sender.ts","node_modules/.pnpm/@firebase+auth@1.5.1_@firebase+app@0.9.25/node_modules/@firebase/auth/src/platform_browser/auth_window.ts","node_modules/.pnpm/@firebase+auth@1.5.1_@firebase+app@0.9.25/node_modules/@firebase/auth/src/platform_browser/util/worker.ts","node_modules/.pnpm/@firebase+auth@1.5.1_@firebase+app@0.9.25/node_modules/@firebase/auth/src/platform_browser/persistence/indexed_db.ts","node_modules/.pnpm/@firebase+auth@1.5.1_@firebase+app@0.9.25/node_modules/@firebase/auth/src/api/authentication/mfa.ts","node_modules/.pnpm/@firebase+auth@1.5.1_@firebase+app@0.9.25/node_modules/@firebase/auth/src/platform_browser/recaptcha/recaptcha_mock.ts","node_modules/.pnpm/@firebase+auth@1.5.1_@firebase+app@0.9.25/node_modules/@firebase/auth/src/platform_browser/recaptcha/recaptcha_loader.ts","node_modules/.pnpm/@firebase+auth@1.5.1_@firebase+app@0.9.25/node_modules/@firebase/auth/src/platform_browser/recaptcha/recaptcha_verifier.ts","node_modules/.pnpm/@firebase+auth@1.5.1_@firebase+app@0.9.25/node_modules/@firebase/auth/src/platform_browser/strategies/phone.ts","node_modules/.pnpm/@firebase+auth@1.5.1_@firebase+app@0.9.25/node_modules/@firebase/auth/src/platform_browser/providers/phone.ts","node_modules/.pnpm/@firebase+auth@1.5.1_@firebase+app@0.9.25/node_modules/@firebase/auth/src/core/util/resolver.ts","node_modules/.pnpm/@firebase+auth@1.5.1_@firebase+app@0.9.25/node_modules/@firebase/auth/src/core/strategies/idp.ts","node_modules/.pnpm/@firebase+auth@1.5.1_@firebase+app@0.9.25/node_modules/@firebase/auth/src/core/strategies/abstract_popup_redirect_operation.ts","node_modules/.pnpm/@firebase+auth@1.5.1_@firebase+app@0.9.25/node_modules/@firebase/auth/src/platform_browser/strategies/popup.ts","node_modules/.pnpm/@firebase+auth@1.5.1_@firebase+app@0.9.25/node_modules/@firebase/auth/src/core/strategies/redirect.ts","node_modules/.pnpm/@firebase+auth@1.5.1_@firebase+app@0.9.25/node_modules/@firebase/auth/src/platform_browser/strategies/redirect.ts","node_modules/.pnpm/@firebase+auth@1.5.1_@firebase+app@0.9.25/node_modules/@firebase/auth/src/core/auth/auth_event_manager.ts","node_modules/.pnpm/@firebase+auth@1.5.1_@firebase+app@0.9.25/node_modules/@firebase/auth/src/api/project_config/get_project_config.ts","node_modules/.pnpm/@firebase+auth@1.5.1_@firebase+app@0.9.25/node_modules/@firebase/auth/src/core/util/validate_origin.ts","node_modules/.pnpm/@firebase+auth@1.5.1_@firebase+app@0.9.25/node_modules/@firebase/auth/src/platform_browser/iframe/gapi.ts","node_modules/.pnpm/@firebase+auth@1.5.1_@firebase+app@0.9.25/node_modules/@firebase/auth/src/platform_browser/iframe/iframe.ts","node_modules/.pnpm/@firebase+auth@1.5.1_@firebase+app@0.9.25/node_modules/@firebase/auth/src/platform_browser/util/popup.ts","node_modules/.pnpm/@firebase+auth@1.5.1_@firebase+app@0.9.25/node_modules/@firebase/auth/src/core/util/handler.ts","node_modules/.pnpm/@firebase+auth@1.5.1_@firebase+app@0.9.25/node_modules/@firebase/auth/src/platform_browser/popup_redirect.ts","node_modules/.pnpm/@firebase+auth@1.5.1_@firebase+app@0.9.25/node_modules/@firebase/auth/src/mfa/mfa_assertion.ts","node_modules/.pnpm/@firebase+auth@1.5.1_@firebase+app@0.9.25/node_modules/@firebase/auth/src/platform_browser/mfa/assertions/phone.ts","node_modules/.pnpm/@firebase+auth@1.5.1_@firebase+app@0.9.25/node_modules/@firebase/auth/src/mfa/assertions/totp.ts","node_modules/.pnpm/@firebase+auth@1.5.1_@firebase+app@0.9.25/node_modules/@firebase/auth/src/core/auth/firebase_internal.ts","node_modules/.pnpm/@firebase+auth@1.5.1_@firebase+app@0.9.25/node_modules/@firebase/auth/src/core/auth/register.ts","node_modules/.pnpm/@firebase+auth@1.5.1_@firebase+app@0.9.25/node_modules/@firebase/auth/src/platform_browser/index.ts","node_modules/.pnpm/@swc+helpers@0.5.3/node_modules/@swc/helpers/esm/_get.js","node_modules/.pnpm/@swc+helpers@0.5.3/node_modules/@swc/helpers/esm/_super_prop_base.js","node_modules/.pnpm/@parcel+runtime-js@2.11.0_@parcel+core@2.11.0/node_modules/@parcel/runtime-js/lib/runtime-dc6ab0b72a752652.js","node_modules/.pnpm/@parcel+runtime-js@2.11.0_@parcel+core@2.11.0/node_modules/@parcel/runtime-js/lib/runtime-d62fc136fc654cf6.js","frontend/Main.elm"],"sourcesContent":["(function () {\n\n var $parcel$global =\n typeof globalThis !== 'undefined'\n ? globalThis\n : typeof self !== 'undefined'\n ? self\n : typeof window !== 'undefined'\n ? window\n : typeof global !== 'undefined'\n ? global\n : {};\n \nvar $parcel$modules = {};\nvar $parcel$inits = {};\n\nvar parcelRequire = $parcel$global[\"parcelRequire6a53\"];\n\nif (parcelRequire == null) {\n parcelRequire = function(id) {\n if (id in $parcel$modules) {\n return $parcel$modules[id].exports;\n }\n if (id in $parcel$inits) {\n var init = $parcel$inits[id];\n delete $parcel$inits[id];\n var module = {id: id, exports: {}};\n $parcel$modules[id] = module;\n init.call(module.exports, module, module.exports);\n return module.exports;\n }\n var err = new Error(\"Cannot find module '\" + id + \"'\");\n err.code = 'MODULE_NOT_FOUND';\n throw err;\n };\n\n parcelRequire.register = function register(id, init) {\n $parcel$inits[id] = init;\n };\n\n $parcel$global[\"parcelRequire6a53\"] = parcelRequire;\n}\n\nvar parcelRegister = parcelRequire.register;\nfunction $9167c88d5d99601b$var$asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {\n try {\n var info = gen[key](arg);\n var value = info.value;\n } catch (error) {\n reject(error);\n return;\n }\n if (info.done) resolve(value);\n else Promise.resolve(value).then(_next, _throw);\n}\nfunction $9167c88d5d99601b$export$7c398597f8905a1(fn) {\n return function() {\n var self = this, args = arguments;\n return new Promise(function(resolve, reject) {\n var gen = fn.apply(self, args);\n function _next(value) {\n $9167c88d5d99601b$var$asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value);\n }\n function _throw(err) {\n $9167c88d5d99601b$var$asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err);\n }\n _next(undefined);\n });\n };\n}\n\n\n/******************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */ /* global Reflect, Promise, SuppressedError, Symbol */ function $f822ad08ddc5bf88$export$5f0017c582d45a2d(obj) {\n \"@swc/helpers - typeof\";\n return obj && typeof Symbol !== \"undefined\" && obj.constructor === Symbol ? \"symbol\" : typeof obj;\n}\n\n\nvar $f6e09fca77e332f0$var$extendStatics = function extendStatics1(d, b) {\n $f6e09fca77e332f0$var$extendStatics = Object.setPrototypeOf || ({\n __proto__: []\n }) instanceof Array && function(d, b) {\n d.__proto__ = b;\n } || function(d, b) {\n for(var p in b)if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p];\n };\n return $f6e09fca77e332f0$var$extendStatics(d, b);\n};\nfunction $f6e09fca77e332f0$export$a8ba968b8961cb8a(d, b) {\n if (typeof b !== \"function\" && b !== null) throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n $f6e09fca77e332f0$var$extendStatics(d, b);\n function __() {\n this.constructor = d;\n }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n}\nvar $f6e09fca77e332f0$export$18ce0697a983be9b = function __assign1() {\n $f6e09fca77e332f0$export$18ce0697a983be9b = Object.assign || function __assign(t) {\n for(var s, i = 1, n = arguments.length; i < n; i++){\n s = arguments[i];\n for(var p in s)if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\n }\n return t;\n };\n return $f6e09fca77e332f0$export$18ce0697a983be9b.apply(this, arguments);\n};\nfunction $f6e09fca77e332f0$export$3c9a16f847548506(s, e) {\n var t = {};\n for(var p in s)if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") {\n for(var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++)if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n }\n return t;\n}\nfunction $f6e09fca77e332f0$export$29e00dfd3077644b(decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n else for(var i = decorators.length - 1; i >= 0; i--)if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n}\nfunction $f6e09fca77e332f0$export$d5ad3fd78186038f(paramIndex, decorator) {\n return function(target, key) {\n decorator(target, key, paramIndex);\n };\n}\nfunction $f6e09fca77e332f0$export$3a84e1ae4e97e9b0(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {\n function accept(f) {\n if (f !== void 0 && typeof f !== \"function\") throw new TypeError(\"Function expected\");\n return f;\n }\n var kind = contextIn.kind, key = kind === \"getter\" ? \"get\" : kind === \"setter\" ? \"set\" : \"value\";\n var target = !descriptorIn && ctor ? contextIn[\"static\"] ? ctor : ctor.prototype : null;\n var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});\n var _, done = false;\n for(var i = decorators.length - 1; i >= 0; i--){\n var context = {};\n for(var p in contextIn)context[p] = p === \"access\" ? {} : contextIn[p];\n for(var p in contextIn.access)context.access[p] = contextIn.access[p];\n context.addInitializer = function(f) {\n if (done) throw new TypeError(\"Cannot add initializers after decoration has completed\");\n extraInitializers.push(accept(f || null));\n };\n var result = (0, decorators[i])(kind === \"accessor\" ? {\n get: descriptor.get,\n set: descriptor.set\n } : descriptor[key], context);\n if (kind === \"accessor\") {\n if (result === void 0) continue;\n if (result === null || typeof result !== \"object\") throw new TypeError(\"Object expected\");\n if (_ = accept(result.get)) descriptor.get = _;\n if (_ = accept(result.set)) descriptor.set = _;\n if (_ = accept(result.init)) initializers.unshift(_);\n } else if (_ = accept(result)) {\n if (kind === \"field\") initializers.unshift(_);\n else descriptor[key] = _;\n }\n }\n if (target) Object.defineProperty(target, contextIn.name, descriptor);\n done = true;\n}\nfunction $f6e09fca77e332f0$export$d831c04e792af3d(thisArg, initializers, value) {\n var useValue = arguments.length > 2;\n for(var i = 0; i < initializers.length; i++)value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);\n return useValue ? value : void 0;\n}\nfunction $f6e09fca77e332f0$export$6a2a36740a146cb8(x) {\n return (typeof x === \"undefined\" ? \"undefined\" : (0, $f822ad08ddc5bf88$export$5f0017c582d45a2d)(x)) === \"symbol\" ? x : \"\".concat(x);\n}\nfunction $f6e09fca77e332f0$export$d1a06452d3489bc7(f, name, prefix) {\n if ((typeof name === \"undefined\" ? \"undefined\" : (0, $f822ad08ddc5bf88$export$5f0017c582d45a2d)(name)) === \"symbol\") name = name.description ? \"[\".concat(name.description, \"]\") : \"\";\n return Object.defineProperty(f, \"name\", {\n configurable: true,\n value: prefix ? \"\".concat(prefix, \" \", name) : name\n });\n}\nfunction $f6e09fca77e332f0$export$f1db080c865becb9(metadataKey, metadataValue) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\n}\nfunction $f6e09fca77e332f0$export$1050f835b63b671e(thisArg, _arguments, P, generator) {\n function adopt(value) {\n return value instanceof P ? value : new P(function(resolve) {\n resolve(value);\n });\n }\n return new (P || (P = Promise))(function(resolve, reject) {\n function fulfilled(value) {\n try {\n step(generator.next(value));\n } catch (e) {\n reject(e);\n }\n }\n function rejected(value) {\n try {\n step(generator[\"throw\"](value));\n } catch (e) {\n reject(e);\n }\n }\n function step(result) {\n result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);\n }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n}\nfunction $f6e09fca77e332f0$export$67ebef60e6f28a6(thisArg, body) {\n var _ = {\n label: 0,\n sent: function sent() {\n if (t[0] & 1) throw t[1];\n return t[1];\n },\n trys: [],\n ops: []\n }, f, y, t, g;\n return g = {\n next: verb(0),\n \"throw\": verb(1),\n \"return\": verb(2)\n }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() {\n return this;\n }), g;\n function verb(n) {\n return function(v) {\n return step([\n n,\n v\n ]);\n };\n }\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n while(g && (g = 0, op[0] && (_ = 0)), _)try {\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [\n op[0] & 2,\n t.value\n ];\n switch(op[0]){\n case 0:\n case 1:\n t = op;\n break;\n case 4:\n _.label++;\n return {\n value: op[1],\n done: false\n };\n case 5:\n _.label++;\n y = op[1];\n op = [\n 0\n ];\n continue;\n case 7:\n op = _.ops.pop();\n _.trys.pop();\n continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {\n _ = 0;\n continue;\n }\n if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {\n _.label = op[1];\n break;\n }\n if (op[0] === 6 && _.label < t[1]) {\n _.label = t[1];\n t = op;\n break;\n }\n if (t && _.label < t[2]) {\n _.label = t[2];\n _.ops.push(op);\n break;\n }\n if (t[2]) _.ops.pop();\n _.trys.pop();\n continue;\n }\n op = body.call(thisArg, _);\n } catch (e) {\n op = [\n 6,\n e\n ];\n y = 0;\n } finally{\n f = t = 0;\n }\n if (op[0] & 5) throw op[1];\n return {\n value: op[0] ? op[1] : void 0,\n done: true\n };\n }\n}\nvar $f6e09fca77e332f0$export$45d3717a4c69092e = Object.create ? function __createBinding(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n var desc = Object.getOwnPropertyDescriptor(m, k);\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) desc = {\n enumerable: true,\n get: function get() {\n return m[k];\n }\n };\n Object.defineProperty(o, k2, desc);\n} : function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n};\nfunction $f6e09fca77e332f0$export$f33643c0debef087(m, o) {\n for(var p in m)if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) $f6e09fca77e332f0$export$45d3717a4c69092e(o, m, p);\n}\nfunction $f6e09fca77e332f0$export$19a8beecd37a4c45(o) {\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\n if (m) return m.call(o);\n if (o && typeof o.length === \"number\") return {\n next: function next() {\n if (o && i >= o.length) o = void 0;\n return {\n value: o && o[i++],\n done: !o\n };\n }\n };\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\n}\nfunction $f6e09fca77e332f0$export$8d051b38c9118094(o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while((n === void 0 || n-- > 0) && !(r = i.next()).done)ar.push(r.value);\n } catch (error) {\n e = {\n error: error\n };\n } finally{\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n } finally{\n if (e) throw e.error;\n }\n }\n return ar;\n}\nfunction $f6e09fca77e332f0$export$afc72e2116322959() {\n for(var ar = [], i = 0; i < arguments.length; i++)ar = ar.concat($f6e09fca77e332f0$export$8d051b38c9118094(arguments[i]));\n return ar;\n}\nfunction $f6e09fca77e332f0$export$6388937ca91ccae8() {\n for(var s = 0, i = 0, il = arguments.length; i < il; i++)s += arguments[i].length;\n for(var r = Array(s), k = 0, i = 0; i < il; i++)for(var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)r[k] = a[j];\n return r;\n}\nfunction $f6e09fca77e332f0$export$1216008129fb82ed(to, from, pack) {\n if (pack || arguments.length === 2) {\n for(var i = 0, l = from.length, ar; i < l; i++)if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n}\nfunction $f6e09fca77e332f0$export$10c90e4f7922046c(v) {\n return this instanceof $f6e09fca77e332f0$export$10c90e4f7922046c ? (this.v = v, this) : new $f6e09fca77e332f0$export$10c90e4f7922046c(v);\n}\nfunction $f6e09fca77e332f0$export$e427f37a30a4de9b(thisArg, _arguments, generator) {\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function() {\n return this;\n }, i;\n function verb(n) {\n if (g[n]) i[n] = function(v) {\n return new Promise(function(a, b) {\n q.push([\n n,\n v,\n a,\n b\n ]) > 1 || resume(n, v);\n });\n };\n }\n function resume(n, v) {\n try {\n step(g[n](v));\n } catch (e) {\n settle(q[0][3], e);\n }\n }\n function step(r) {\n r.value instanceof $f6e09fca77e332f0$export$10c90e4f7922046c ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r);\n }\n function fulfill(value) {\n resume(\"next\", value);\n }\n function reject(value) {\n resume(\"throw\", value);\n }\n function settle(f, v) {\n if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]);\n }\n}\nfunction $f6e09fca77e332f0$export$bbd80228419bb833(o) {\n var i, p;\n return i = {}, verb(\"next\"), verb(\"throw\", function(e) {\n throw e;\n }), verb(\"return\"), i[Symbol.iterator] = function() {\n return this;\n }, i;\n function verb(n, f) {\n i[n] = o[n] ? function(v) {\n return (p = !p) ? {\n value: $f6e09fca77e332f0$export$10c90e4f7922046c(o[n](v)),\n done: false\n } : f ? f(v) : v;\n } : f;\n }\n}\nfunction $f6e09fca77e332f0$export$e3b29a3d6162315f(o) {\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\n var m = o[Symbol.asyncIterator], i;\n return m ? m.call(o) : (o = typeof $f6e09fca77e332f0$export$19a8beecd37a4c45 === \"function\" ? $f6e09fca77e332f0$export$19a8beecd37a4c45(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function() {\n return this;\n }, i);\n function verb(n) {\n i[n] = o[n] && function(v) {\n return new Promise(function(resolve, reject) {\n v = o[n](v), settle(resolve, reject, v.done, v.value);\n });\n };\n }\n function settle(resolve, reject, d, v) {\n Promise.resolve(v).then(function(v) {\n resolve({\n value: v,\n done: d\n });\n }, reject);\n }\n}\nfunction $f6e09fca77e332f0$export$4fb47efe1390b86f(cooked, raw) {\n if (Object.defineProperty) Object.defineProperty(cooked, \"raw\", {\n value: raw\n });\n else cooked.raw = raw;\n return cooked;\n}\nvar $f6e09fca77e332f0$var$__setModuleDefault = Object.create ? function __setModuleDefault(o, v) {\n Object.defineProperty(o, \"default\", {\n enumerable: true,\n value: v\n });\n} : function(o, v) {\n o[\"default\"] = v;\n};\nfunction $f6e09fca77e332f0$export$c21735bcef00d192(mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) {\n for(var k in mod)if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) $f6e09fca77e332f0$export$45d3717a4c69092e(result, mod, k);\n }\n $f6e09fca77e332f0$var$__setModuleDefault(result, mod);\n return result;\n}\nfunction $f6e09fca77e332f0$export$da59b14a69baef04(mod) {\n return mod && mod.__esModule ? mod : {\n default: mod\n };\n}\nfunction $f6e09fca77e332f0$export$d5dcaf168c640c35(receiver, state, kind, f) {\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\n}\nfunction $f6e09fca77e332f0$export$d40a35129aaff81f(receiver, state, value, kind, f) {\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\n return kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value), value;\n}\nfunction $f6e09fca77e332f0$export$81fdc39f203e4e04(state, receiver) {\n if (receiver === null || typeof receiver !== \"object\" && typeof receiver !== \"function\") throw new TypeError(\"Cannot use 'in' operator on non-object\");\n return typeof state === \"function\" ? receiver === state : state.has(receiver);\n}\nfunction $f6e09fca77e332f0$export$88ac25d8e944e405(env, value, async) {\n if (value !== null && value !== void 0) {\n if (typeof value !== \"object\" && typeof value !== \"function\") throw new TypeError(\"Object expected.\");\n var dispose;\n if (async) {\n if (!Symbol.asyncDispose) throw new TypeError(\"Symbol.asyncDispose is not defined.\");\n dispose = value[Symbol.asyncDispose];\n }\n if (dispose === void 0) {\n if (!Symbol.dispose) throw new TypeError(\"Symbol.dispose is not defined.\");\n dispose = value[Symbol.dispose];\n }\n if (typeof dispose !== \"function\") throw new TypeError(\"Object not disposable.\");\n env.stack.push({\n value: value,\n dispose: dispose,\n async: async\n });\n } else if (async) env.stack.push({\n async: true\n });\n return value;\n}\nvar $f6e09fca77e332f0$var$_SuppressedError = typeof SuppressedError === \"function\" ? SuppressedError : function _SuppressedError(error, suppressed, message) {\n var e = new Error(message);\n return e.name = \"SuppressedError\", e.error = error, e.suppressed = suppressed, e;\n};\nfunction $f6e09fca77e332f0$export$8f076105dc360e92(env) {\n function fail(e) {\n env.error = env.hasError ? new $f6e09fca77e332f0$var$_SuppressedError(e, env.error, \"An error was suppressed during disposal.\") : e;\n env.hasError = true;\n }\n function next() {\n while(env.stack.length){\n var rec = env.stack.pop();\n try {\n var result = rec.dispose && rec.dispose.call(rec.value);\n if (rec.async) return Promise.resolve(result).then(next, function(e) {\n fail(e);\n return next();\n });\n } catch (e) {\n fail(e);\n }\n }\n if (env.hasError) throw env.error;\n }\n return next();\n}\nvar $f6e09fca77e332f0$export$2e2bcd8739ae039 = {\n __extends: $f6e09fca77e332f0$export$a8ba968b8961cb8a,\n __assign: $f6e09fca77e332f0$export$18ce0697a983be9b,\n __rest: $f6e09fca77e332f0$export$3c9a16f847548506,\n __decorate: $f6e09fca77e332f0$export$29e00dfd3077644b,\n __param: $f6e09fca77e332f0$export$d5ad3fd78186038f,\n __metadata: $f6e09fca77e332f0$export$f1db080c865becb9,\n __awaiter: $f6e09fca77e332f0$export$1050f835b63b671e,\n __generator: $f6e09fca77e332f0$export$67ebef60e6f28a6,\n __createBinding: $f6e09fca77e332f0$export$45d3717a4c69092e,\n __exportStar: $f6e09fca77e332f0$export$f33643c0debef087,\n __values: $f6e09fca77e332f0$export$19a8beecd37a4c45,\n __read: $f6e09fca77e332f0$export$8d051b38c9118094,\n __spread: $f6e09fca77e332f0$export$afc72e2116322959,\n __spreadArrays: $f6e09fca77e332f0$export$6388937ca91ccae8,\n __spreadArray: $f6e09fca77e332f0$export$1216008129fb82ed,\n __await: $f6e09fca77e332f0$export$10c90e4f7922046c,\n __asyncGenerator: $f6e09fca77e332f0$export$e427f37a30a4de9b,\n __asyncDelegator: $f6e09fca77e332f0$export$bbd80228419bb833,\n __asyncValues: $f6e09fca77e332f0$export$e3b29a3d6162315f,\n __makeTemplateObject: $f6e09fca77e332f0$export$4fb47efe1390b86f,\n __importStar: $f6e09fca77e332f0$export$c21735bcef00d192,\n __importDefault: $f6e09fca77e332f0$export$da59b14a69baef04,\n __classPrivateFieldGet: $f6e09fca77e332f0$export$d5dcaf168c640c35,\n __classPrivateFieldSet: $f6e09fca77e332f0$export$d40a35129aaff81f,\n __classPrivateFieldIn: $f6e09fca77e332f0$export$81fdc39f203e4e04,\n __addDisposableResource: $f6e09fca77e332f0$export$88ac25d8e944e405,\n __disposeResources: $f6e09fca77e332f0$export$8f076105dc360e92\n};\n\n\n\n\n\nvar $d4725d434d7b0711$export$2e2bcd8739ae039 = function() {\n var Q = function Q(t) {\n return _Q.apply(this, arguments);\n };\n var U = function U() {\n return \"fxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx\".replace(/[xy]/g, function(t) {\n var n = Math.random() * 16 | 0;\n return (t === \"x\" ? n : n & 3 | 8).toString(16);\n });\n };\n var b = function b(t, n) {\n try {\n return typeof t == \"string\" ? (n != null ? n : document).querySelector(t) : t;\n } catch (e) {\n return null;\n }\n };\n var f = function f(t, n) {\n try {\n return typeof t == \"string\" ? (n != null ? n : document).querySelectorAll(t) : t != null ? t : R;\n } catch (e) {\n return R;\n }\n };\n var d = function d(t, n) {\n var e, r;\n return (r = (e = t == null ? void 0 : t.classList) == null ? void 0 : e.contains(n)) != null ? r : !1;\n };\n var L = function L(t, n) {\n var e;\n return ((e = t == null ? void 0 : t.tagName) == null ? void 0 : e.toLowerCase()) === n;\n };\n var k = function k(t, n) {\n var e;\n return ((e = t == null ? void 0 : t.type) == null ? void 0 : e.toLowerCase()) === n;\n };\n var v = function v(t, n) {\n var e;\n (e = t == null ? void 0 : t.classList) == null || e.add(n);\n };\n var u = function u(t, n) {\n var e;\n (e = t == null ? void 0 : t.classList) == null || e.remove(n);\n };\n var g = function g(t, n, e) {\n t == null || t.addEventListener(n, e, !0);\n };\n var X = function X(t, n, e) {\n t == null || t.removeEventListener(n, e, !0);\n };\n var Y = function Y(t, n) {\n var e;\n (e = n == null ? void 0 : n.parentNode) == null || e.insertBefore(t, n);\n };\n var _ = function _(t) {\n return t == null ? void 0 : t.previousElementSibling;\n };\n var j = function j(t) {\n return t == null ? void 0 : t.nextElementSibling;\n };\n var x = function x(t) {\n return t == null ? void 0 : t.parentElement;\n };\n var J = function J(t) {\n var n = document.createElement(\"div\");\n for(var e in t)n.setAttribute(e, t[e]);\n return n;\n };\n var T = function T(t) {\n var n = t;\n k(n, \"number\") && !n.value && (n.value = \"\"), n.placeholder || (n.placeholder = \" \"), t.getAttribute(\"data-ui\") && q(t, null);\n };\n var tt = function tt(t) {\n q(t.currentTarget, null, null, t);\n };\n var nt = function nt(t) {\n var n = t.currentTarget, e = x(n), r = b(\"input:not([type=file], [type=checkbox], [type=radio]), select, textarea\", e);\n r && r.focus();\n };\n var et = function et(t) {\n var n = t.currentTarget;\n T(n);\n };\n var rt = function rt(t) {\n var n = t.currentTarget;\n T(n);\n };\n var at = function at(t) {\n var n = t.currentTarget;\n u(n, \"active\"), m && clearTimeout(m);\n };\n var it = function it(t) {\n var n = t.currentTarget;\n D(n);\n };\n var ot = function ot(t) {\n var n = t.currentTarget;\n I(n);\n };\n var ct = function ct(t) {\n var n = t.currentTarget;\n D(n, t);\n };\n var ut = function ut(t) {\n var n = t.currentTarget;\n I(n, t);\n };\n var st = function st(t) {\n var n = t.currentTarget;\n G(n);\n };\n var Z = function Z() {\n $ && clearTimeout($), $ = setTimeout(function() {\n A();\n }, 180);\n };\n var D = function D(t, n) {\n if (n && n.key === \"Enter\") {\n var i = _(t);\n return k(i, \"file\") ? i.click() : void 0;\n }\n var e = t, r = j(t);\n !k(r, \"text\") || (r.value = e.files ? Array.from(e.files).map(function(i) {\n return i.name;\n }).join(\", \") : \"\", r.readOnly = !0, r.addEventListener(\"keydown\", ct), T(r));\n };\n var I = function I(t, n) {\n if (n && n.key === \"Enter\") {\n var i = _(t);\n return k(i, \"color\") ? i.click() : void 0;\n }\n var e = t, r = j(t);\n !k(r, \"text\") || (r.readOnly = !0, r.value = e.value, r.addEventListener(\"keydown\", ut), T(r));\n };\n var G = function G(t) {\n var n = x(t), e = b(\"span\", n), r = f(\"input\", n);\n if (!r.length || !e) return;\n var i = parseInt(getComputedStyle(document.documentElement).getPropertyValue(\"--size\")) || 16, c = 1.25 * i * 100 / r[0].offsetWidth, o = [], s = [];\n for(var y = 0; y < r.length; y++){\n var z = parseFloat(r[y].min), B = parseFloat(r[y].max), O = parseFloat(r[y].value), C = z || 0, F = B || 100, w = O || 0, K = (w - C) * 100 / (F - C), H = c / 2 - c * K / 100;\n o.push(K + H), s.push(w), z !== C && (r[y].min = \"\".concat(C)), B !== F && (r[y].max = \"\".concat(F)), O !== w && (r[y].value = \"\".concat(w));\n }\n var a = o[0], p = 0, h = 100 - p - a, S = s[0], M = s[1] || 0;\n r.length > 1 && (a = Math.abs(o[1] - o[0]), p = o[1] > o[0] ? o[0] : o[1], h = 100 - p - a, M > S && (S = s[1] || 0, M = s[0])), n.style.setProperty(\"---start\", \"\".concat(p, \"%\")), n.style.setProperty(\"---end\", \"\".concat(h, \"%\")), n.style.setProperty(\"---value1\", \"'\".concat(S, \"'\")), n.style.setProperty(\"---value2\", \"'\".concat(M, \"'\"));\n };\n var q = function q(t, n, e, r) {\n return _q.apply(this, arguments);\n };\n var E = function E(t) {\n var n = x(t);\n if (!d(n, \"tabs\")) return;\n f(\"a\", n).forEach(function(r) {\n return u(r, \"active\");\n }), v(t, \"active\");\n };\n var lt = function lt(t, n) {\n E(t);\n var e = x(n);\n if (e) for(var r = 0; r < e.children.length; r++)d(e.children[r], \"page\") && u(e.children[r], \"active\");\n v(n, \"active\");\n };\n var ft = function ft(t, n) {\n return _ft.apply(this, arguments);\n };\n var dt = function dt(t, n, e) {\n var i;\n (i = document.activeElement) == null || i.blur(), E(t), f(\".snackbar.active\").forEach(function(c) {\n return u(c, \"active\");\n }), v(n, \"active\"), g(n, \"click\", at), m && clearTimeout(m), e !== -1 && (m = setTimeout(function() {\n u(n, \"active\");\n }, e != null ? e : 6e3));\n };\n var gt = function gt() {\n if (l.light && l.dark) return l;\n var t = document.createElement(\"body\");\n t.className = \"light\", document.body.appendChild(t);\n var n = document.createElement(\"body\");\n n.className = \"dark\", document.body.appendChild(n);\n var e = getComputedStyle(t), r = getComputedStyle(n), i = [\n \"--primary\",\n \"--on-primary\",\n \"--primary-container\",\n \"--on-primary-container\",\n \"--secondary\",\n \"--on-secondary\",\n \"--secondary-container\",\n \"--on-secondary-container\",\n \"--tertiary\",\n \"--on-tertiary\",\n \"--tertiary-container\",\n \"--on-tertiary-container\",\n \"--error\",\n \"--on-error\",\n \"--error-container\",\n \"--on-error-container\",\n \"--background\",\n \"--on-background\",\n \"--surface\",\n \"--on-surface\",\n \"--surface-variant\",\n \"--on-surface-variant\",\n \"--outline\",\n \"--outline-variant\",\n \"--shadow\",\n \"--scrim\",\n \"--inverse-surface\",\n \"--inverse-on-surface\",\n \"--inverse-primary\",\n \"--surface-dim\",\n \"--surface-bright\",\n \"--surface-container-lowest\",\n \"--surface-container-low\",\n \"--surface-container\",\n \"--surface-container-high\",\n \"--surface-container-highest\"\n ];\n for(var c = 0; c < i.length; c++)l.light += i[c] + \":\" + e.getPropertyValue(i[c]) + \";\", l.dark += i[c] + \":\" + r.getPropertyValue(i[c]) + \";\";\n return document.body.removeChild(t), document.body.removeChild(n), l;\n };\n var yt = function yt(t) {\n if (!t || !globalThis.materialDynamicColors) return gt();\n var n = /dark/i.test(document.body.className) ? \"dark\" : \"light\";\n return t.light && t.dark ? (l.light = t.light, l.dark = t.dark, document.body.setAttribute(\"style\", t[n]), t) : globalThis.materialDynamicColors(t).then(function(e) {\n var r = function(i) {\n var c = \"\";\n for(var o in i){\n var s = o.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, \"$1-$2\").toLowerCase(), a = i[o];\n c += \"--\" + s + \":\" + a + \";\";\n }\n return c;\n };\n return l.light = r(e.light), l.dark = r(e.dark), document.body.setAttribute(\"style\", l[n]), l;\n });\n };\n var vt = function vt(t) {\n if (!t) return /dark/i.test(document.body.className) ? \"dark\" : \"light\";\n document.body.classList.remove(\"light\", \"dark\"), document.body.classList.add(t);\n var n = t === \"light\" ? l.light : l.dark;\n return globalThis.materialDynamicColors && document.body.setAttribute(\"style\", n), t;\n };\n var pt = function pt() {\n P || (P = new MutationObserver(Z), P.observe(document.body, {\n attributes: !0,\n attributeFilter: [\n \"value\",\n \"max\",\n \"min\"\n ],\n childList: !0,\n subtree: !0\n }), Z());\n };\n var A = function A(t, n) {\n if (t) {\n if (t === \"setup\") return pt();\n if (t === \"guid\") return U();\n if (t === \"mode\") return vt(n);\n if (t === \"theme\") return yt(n);\n var a = b(t);\n if (!a) return;\n q(a, a, n);\n }\n f(\"[data-ui]\").forEach(function(a) {\n return g(a, \"click\", tt);\n }), f(\".field > label\").forEach(function(a) {\n return g(a, \"click\", nt);\n }), f(\".field > input:not([type=file], [type=color], [type=range]), .field > select, .field > textarea\").forEach(function(a) {\n g(a, \"focus\", et), g(a, \"blur\", rt), T(a);\n }), f(\".field > input[type=file]\").forEach(function(a) {\n g(a, \"change\", it), D(a);\n }), f(\".field > input[type=color]\").forEach(function(a) {\n g(a, \"change\", ot), I(a);\n }), f(\".slider > input[type=range]\").forEach(function(a) {\n g(a, \"input\", st), G(a);\n });\n };\n var m, $, N, P;\n var l = {\n light: \"\",\n dark: \"\"\n }, R = [];\n function _Q() {\n _Q = (0, $9167c88d5d99601b$export$7c398597f8905a1)(function(t) {\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n switch(_state.label){\n case 0:\n return [\n 4,\n new Promise(function(n) {\n return setTimeout(n, t);\n })\n ];\n case 1:\n return [\n 2,\n _state.sent()\n ];\n }\n });\n });\n return _Q.apply(this, arguments);\n }\n function W(t) {\n X(document.body, \"click\", W);\n var n = t.target;\n f(\"menu.active\").forEach(function(r) {\n return V(n, r, t);\n });\n }\n function _q() {\n _q = (0, $9167c88d5d99601b$export$7c398597f8905a1)(function(t, n, e, r) {\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n switch(_state.label){\n case 0:\n if (!!(!n && (n = b(t.getAttribute(\"data-ui\")), !n))) return [\n 3,\n 3\n ];\n if (!L(n, \"dialog\")) return [\n 3,\n 2\n ];\n return [\n 4,\n ft(t, n)\n ];\n case 1:\n return [\n 2,\n _state.sent()\n ];\n case 2:\n if (L(n, \"menu\")) return [\n 2,\n V(t, n, r)\n ];\n if (d(n, \"snackbar\")) return [\n 2,\n dt(t, n, e)\n ];\n if (d(n, \"page\")) return [\n 2,\n lt(t, n)\n ];\n if (E(t), d(n, \"active\")) return [\n 2,\n u(n, \"active\")\n ];\n v(n, \"active\");\n _state.label = 3;\n case 3:\n return [\n 2\n ];\n }\n });\n });\n return _q.apply(this, arguments);\n }\n function V(t, n, e) {\n N && clearTimeout(N), N = setTimeout(function() {\n var i, c;\n if (g(document.body, \"click\", W), E(t), d(n, \"active\")) {\n if (!e) return u(n, \"active\");\n var o = e.target, s = b((i = o.getAttribute(\"data-ui\")) != null ? i : \"\"), a = o.closest(\"menu\"), p = !b(\"menu\", (c = o.closest(\"[data-ui]\")) != null ? c : void 0);\n return s && s !== a ? V(o, s) : !s && !p && a ? !1 : u(n, \"active\");\n }\n f(\"menu.active\").forEach(function(o) {\n return u(o, \"active\");\n }), v(n, \"active\");\n }, 90);\n }\n function _ft() {\n _ft = (0, $9167c88d5d99601b$export$7c398597f8905a1)(function(t, n) {\n var a, e, r, i, c, o, s, _tmp;\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n switch(_state.label){\n case 0:\n (a = document.activeElement) == null || a.blur(), E(t);\n e = _(n);\n r = n, i = d(n, \"active\") || r.open, c = d(n, \"modal\"), o = x(n), s = L(o, \"nav\");\n _tmp = d(e, \"overlay\");\n if (_tmp) return [\n 3,\n 2\n ];\n e = J({\n class: \"overlay\"\n }), Y(e, n);\n return [\n 4,\n Q(90)\n ];\n case 1:\n _tmp = _state.sent();\n _state.label = 2;\n case 2:\n _tmp, e.onclick = function() {\n c || (u(t, \"active\"), u(n, \"active\"), u(e, \"active\"), r.close());\n }, s && f(\"dialog, a, .overlay\", o).forEach(function(h) {\n u(h, \"active\"), h.open && h.close();\n }), i ? (u(t, \"active\"), u(e, \"active\"), u(n, \"active\"), r.close()) : (!L(t, \"button\") && !d(t, \"button\") && !d(t, \"chip\") && v(t, \"active\"), v(e, \"active\"), v(n, \"active\"), c ? r.showModal() : r.show());\n return [\n 2\n ];\n }\n });\n });\n return _ft.apply(this, arguments);\n }\n globalThis.addEventListener && globalThis.addEventListener(\"load\", /*#__PURE__*/ (0, $9167c88d5d99601b$export$7c398597f8905a1)(function() {\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n switch(_state.label){\n case 0:\n return [\n 4,\n A(\"setup\")\n ];\n case 1:\n return [\n 2,\n _state.sent()\n ];\n }\n });\n }));\n globalThis.beercss = A;\n globalThis.ui = A;\n return globalThis.ui;\n}();\n\n\nvar $2e8438e56f9583c3$export$2e2bcd8739ae039 = (0, $d4725d434d7b0711$export$2e2bcd8739ae039);\n\n\n\nfunction $0c3f79e99c83f58f$export$2996f80ef42b8419(instance, Constructor) {\n if (!(instance instanceof Constructor)) throw new TypeError(\"Cannot call a class as a function\");\n}\n\n\nfunction $a27186eefd8c4b26$var$_defineProperties(target, props) {\n for(var i = 0; i < props.length; i++){\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\nfunction $a27186eefd8c4b26$export$d60067ff2358eee8(Constructor, protoProps, staticProps) {\n if (protoProps) $a27186eefd8c4b26$var$_defineProperties(Constructor.prototype, protoProps);\n if (staticProps) $a27186eefd8c4b26$var$_defineProperties(Constructor, staticProps);\n return Constructor;\n}\n\n\nfunction $642625cf0cd1d5ab$export$1e71eb4bef00f6b0(obj, key, value) {\n if (key in obj) Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n else obj[key] = value;\n return obj;\n}\n\n\nfunction $187b8475682b19ca$export$581ff339ea0ba762(target) {\n for(var i = 1; i < arguments.length; i++){\n var source = arguments[i] != null ? arguments[i] : {};\n var ownKeys = Object.keys(source);\n if (typeof Object.getOwnPropertySymbols === \"function\") ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {\n return Object.getOwnPropertyDescriptor(source, sym).enumerable;\n }));\n ownKeys.forEach(function(key) {\n (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)(target, key, source[key]);\n });\n }\n return target;\n}\n\n\nfunction $7b22e7ae8985c352$export$e6256bf45c68d561(arr) {\n if (Array.isArray(arr)) return arr;\n}\n\n\nfunction $d4c13861bcdb2d71$export$2fd15edff6687200(arr, i) {\n var _i = arr == null ? null : typeof Symbol !== \"undefined\" && arr[Symbol.iterator] || arr[\"@@iterator\"];\n if (_i == null) return;\n var _arr = [];\n var _n = true;\n var _d = false;\n var _s, _e;\n try {\n for(_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true){\n _arr.push(_s.value);\n if (i && _arr.length === i) break;\n }\n } catch (err) {\n _d = true;\n _e = err;\n } finally{\n try {\n if (!_n && _i[\"return\"] != null) _i[\"return\"]();\n } finally{\n if (_d) throw _e;\n }\n }\n return _arr;\n}\n\n\nfunction $48b5df3d8adb4413$export$60dbc22abd7da546() {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\n\n\nfunction $47241cfb346e7aa2$export$79e617b1955a2616(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];\n return arr2;\n}\n\n\nfunction $c8a130eed09e6369$export$a5be06335b3a083c(o, minLen) {\n if (!o) return;\n if (typeof o === \"string\") return (0, $47241cfb346e7aa2$export$79e617b1955a2616)(o, minLen);\n var n = Object.prototype.toString.call(o).slice(8, -1);\n if (n === \"Object\" && o.constructor) n = o.constructor.name;\n if (n === \"Map\" || n === \"Set\") return Array.from(n);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return (0, $47241cfb346e7aa2$export$79e617b1955a2616)(o, minLen);\n}\n\n\nfunction $6e952d66071d1a0a$export$fdf2a89c76341bbf(arr, i) {\n return (0, $7b22e7ae8985c352$export$e6256bf45c68d561)(arr) || (0, $d4c13861bcdb2d71$export$2fd15edff6687200)(arr, i) || (0, $c8a130eed09e6369$export$a5be06335b3a083c)(arr, i) || (0, $48b5df3d8adb4413$export$60dbc22abd7da546)();\n}\n\n\n\nvar $55f93f5790aed094$export$2e2bcd8739ae039 = function() {\n var q = /**\n * @license\n * Copyright 2021 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */ function q(e) {\n return e < 0 ? -1 : e === 0 ? 0 : 1;\n };\n var nt = function nt(e, t, r) {\n return (1 - r) * e + r * t;\n };\n var qt = function qt(e, t, r) {\n return r < e ? e : r > t ? t : r;\n };\n var ht = function ht(e, t, r) {\n return r < e ? e : r > t ? t : r;\n };\n var Ot = function Ot(e) {\n return e = e % 360, e < 0 && (e = e + 360), e;\n };\n var Dt = function Dt(e) {\n return e = e % 360, e < 0 && (e = e + 360), e;\n };\n var jt = function jt(e, t) {\n return Dt(t - e) <= 180 ? 1 : -1;\n };\n var Nt = function Nt(e, t) {\n return 180 - Math.abs(Math.abs(e - t) - 180);\n };\n var bt = function bt(e, t) {\n var r = e[0] * t[0][0] + e[1] * t[0][1] + e[2] * t[0][2], n = e[0] * t[1][0] + e[1] * t[1][1] + e[2] * t[1][2], a = e[0] * t[2][0] + e[1] * t[2][1] + e[2] * t[2][2];\n return [\n r,\n n,\n a\n ];\n } /**\n * @license\n * Copyright 2021 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */ ;\n var ft = function ft(e, t, r) {\n return (-16777216 | (e & 255) << 16 | (t & 255) << 8 | r & 255) >>> 0;\n };\n var Et = function Et(e) {\n var t = tt(e[0]), r = tt(e[1]), n = tt(e[2]);\n return ft(t, r, n);\n };\n var Wt = function Wt(e) {\n return e >> 24 & 255;\n };\n var dt = function dt(e) {\n return e >> 16 & 255;\n };\n var mt = function mt(e) {\n return e >> 8 & 255;\n };\n var gt = function gt(e) {\n return e & 255;\n };\n var St = function St(e, t, r) {\n var n = Yt, a = n[0][0] * e + n[0][1] * t + n[0][2] * r, o = n[1][0] * e + n[1][1] * t + n[1][2] * r, s = n[2][0] * e + n[2][1] * t + n[2][2] * r, c = tt(a), u = tt(o), h = tt(s);\n return ft(c, u, h);\n };\n var vt = function vt(e) {\n var t = $(dt(e)), r = $(mt(e)), n = $(gt(e));\n return bt([\n t,\n r,\n n\n ], zt);\n };\n var Jt = function Jt(e, t, r) {\n var n = wt, a = (e + 16) / 116, o = t / 500 + a, s = a - r / 200, c = ut(o), u = ut(a), h = ut(s), l = c * n[0], d = u * n[1], p = h * n[2];\n return St(l, d, p);\n };\n var Xt = function Xt(e) {\n var t = $(dt(e)), r = $(mt(e)), n = $(gt(e)), a = zt, o = a[0][0] * t + a[0][1] * r + a[0][2] * n, s = a[1][0] * t + a[1][1] * r + a[1][2] * n, c = a[2][0] * t + a[2][1] * r + a[2][2] * n, u = wt, h = o / u[0], l = s / u[1], d = c / u[2], p = at(h), f = at(l), M = at(d), g = 116 * f - 16, b = 500 * (p - f), w = 200 * (f - M);\n return [\n g,\n b,\n w\n ];\n };\n var $t = function $t(e) {\n var t = Q(e), r = tt(t);\n return ft(r, r, r);\n };\n var Ct = function Ct(e) {\n var t = vt(e)[1];\n return 116 * at(t / 100) - 16;\n };\n var Q = function Q(e) {\n return 100 * ut((e + 16) / 116);\n };\n var It = function It(e) {\n return at(e / 100) * 116 - 16;\n };\n var $ = function $(e) {\n var t = e / 255;\n return t <= .040449936 ? t / 12.92 * 100 : Math.pow((t + .055) / 1.055, 2.4) * 100;\n };\n var tt = function tt(e) {\n var t = e / 100;\n var r = 0;\n return t <= .0031308 ? r = t * 12.92 : r = 1.055 * Math.pow(t, 1 / 2.4) - .055, qt(0, 255, Math.round(r * 255));\n };\n var Kt = function Kt() {\n return wt;\n };\n var at = function at(e) {\n var t = .008856451679035631, r = 24389 / 27;\n return e > t ? Math.pow(e, 1 / 3) : (r * e + 16) / 116;\n };\n var ut = function ut(e) {\n var t = .008856451679035631, r = 24389 / 27, n = e * e * e;\n return n > t ? n : (116 * e - 16) / r;\n } /**\n * @license\n * Copyright 2021 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */ ;\n var et = function et(e) {\n return e.variant === ot.FIDELITY || e.variant === ot.CONTENT;\n };\n var O = function O(e) {\n return e.variant === ot.MONOCHROME;\n };\n var Qt = function Qt(e, t, r, n) {\n var a = r, o = E.from(e, t, r);\n if (o.chroma < t) {\n var s = o.chroma;\n for(; o.chroma < t;){\n a += n ? -1 : 1;\n var c = E.from(e, t, a);\n if (s > c.chroma || Math.abs(c.chroma - t) < .4) break;\n var u = Math.abs(c.chroma - t), h = Math.abs(o.chroma - t);\n u < h && (o = c), s = Math.max(s, c.chroma);\n }\n }\n return a;\n };\n var Zt = function Zt(e) {\n return v.make(void 0, void 0, e.isDark ? 30 : 80, void 0, void 0);\n };\n var Tt = function Tt(e, t) {\n var r = e.inViewingConditions(Zt(t));\n return m.tonePrefersLightForeground(e.tone) && !m.toneAllowsLightForeground(r.tone) ? m.enableLightForeground(e.tone) : m.enableLightForeground(r.tone);\n };\n var fe = function fe(e, t) {\n return e.score > t.score ? -1 : e.score < t.score ? 1 : 0;\n };\n var F = function F(e) {\n var t = dt(e), r = mt(e), n = gt(e), a = [\n t.toString(16),\n r.toString(16),\n n.toString(16)\n ];\n var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;\n try {\n for(var _iterator = a.entries()[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){\n var _step_value = (0, $6e952d66071d1a0a$export$fdf2a89c76341bbf)(_step.value, 2), o = _step_value[0], s = _step_value[1];\n s.length === 1 && (a[o] = \"0\" + s);\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally{\n try {\n if (!_iteratorNormalCompletion && _iterator.return != null) {\n _iterator.return();\n }\n } finally{\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n return \"#\" + a.join(\"\");\n };\n var de = function de(e) {\n e = e.replace(\"#\", \"\");\n var t = e.length === 3, r = e.length === 6, n = e.length === 8;\n if (!t && !r && !n) throw new Error(\"unexpected hex \" + e);\n var a = 0, o = 0, s = 0;\n return t ? (a = J(e.slice(0, 1).repeat(2)), o = J(e.slice(1, 2).repeat(2)), s = J(e.slice(2, 3).repeat(2))) : r ? (a = J(e.slice(0, 2)), o = J(e.slice(2, 4)), s = J(e.slice(4, 6))) : n && (a = J(e.slice(2, 4)), o = J(e.slice(4, 6)), s = J(e.slice(6, 8))), (-16777216 | (a & 255) << 16 | (o & 255) << 8 | s & 255) >>> 0;\n };\n var J = function J(e) {\n return parseInt(e, 16);\n } /**\n * @license\n * Copyright 2021 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */ ;\n var me = function me(e) {\n return _me.apply(this, arguments);\n };\n var Gt = function Gt(e) {\n var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];\n var r = S.of(e);\n return {\n source: e,\n schemes: {\n light: X.light(e),\n dark: X.dark(e)\n },\n palettes: {\n primary: r.a1,\n secondary: r.a2,\n tertiary: r.a3,\n neutral: r.n1,\n neutralVariant: r.n2,\n error: r.error\n },\n customColors: t.map(function(n) {\n return ge(e, n);\n })\n };\n };\n var Lt = function Lt(e) {\n return _Lt.apply(this, arguments);\n };\n var ge = function ge(e, t) {\n var r = t.value;\n var n = r, a = e;\n t.blend && (r = xt.harmonize(n, a));\n var s = S.of(r).a1;\n return {\n color: t,\n value: r,\n light: {\n color: s.tone(40),\n onColor: s.tone(100),\n colorContainer: s.tone(90),\n onColorContainer: s.tone(10)\n },\n dark: {\n color: s.tone(80),\n onColor: s.tone(20),\n colorContainer: s.tone(30),\n onColorContainer: s.tone(90)\n }\n };\n };\n var Pt = function Pt(e) {\n var t = JSON.parse(JSON.stringify(e.schemes));\n for(var r in t)for(var n in t[r])t[r][n] = F(t[r][n]);\n return t.dark.surfaceDim = F(e.palettes.neutral.tone(6)), t.dark.surface = F(e.palettes.neutral.tone(6)), t.dark.surfaceBright = F(e.palettes.neutral.tone(24)), t.dark.surfaceContainerLowest = F(e.palettes.neutral.tone(4)), t.dark.surfaceContainerLow = F(e.palettes.neutral.tone(10)), t.dark.surfaceContainer = F(e.palettes.neutral.tone(12)), t.dark.surfaceContainerHigh = F(e.palettes.neutral.tone(17)), t.dark.surfaceContainerHighest = F(e.palettes.neutral.tone(22)), t.dark.onSurface = F(e.palettes.neutral.tone(90)), t.dark.onSurfaceVariant = F(e.palettes.neutralVariant.tone(80)), t.dark.outline = F(e.palettes.neutralVariant.tone(60)), t.dark.outlineVariant = F(e.palettes.neutralVariant.tone(30)), t.light.surfaceDim = F(e.palettes.neutral.tone(87)), t.light.surface = F(e.palettes.neutral.tone(98)), t.light.surfaceBright = F(e.palettes.neutral.tone(98)), t.light.surfaceContainerLowest = F(e.palettes.neutral.tone(100)), t.light.surfaceContainerLow = F(e.palettes.neutral.tone(96)), t.light.surfaceContainer = F(e.palettes.neutral.tone(94)), t.light.surfaceContainerHigh = F(e.palettes.neutral.tone(92)), t.light.surfaceContainerHighest = F(e.palettes.neutral.tone(90)), t.light.onSurface = F(e.palettes.neutral.tone(10)), t.light.onSurfaceVariant = F(e.palettes.neutralVariant.tone(30)), t.light.outline = F(e.palettes.neutralVariant.tone(50)), t.light.outlineVariant = F(e.palettes.neutralVariant.tone(80)), t;\n };\n var pe = function pe(e) {\n return _pe.apply(this, arguments);\n };\n var zt = [\n [\n .41233895,\n .35762064,\n .18051042\n ],\n [\n .2126,\n .7152,\n .0722\n ],\n [\n .01932141,\n .11916382,\n .95034478\n ]\n ], Yt = [\n [\n 3.2413774792388685,\n -1.5376652402851851,\n -0.49885366846268053\n ],\n [\n -0.9691452513005321,\n 1.8758853451067872,\n .04156585616912061\n ],\n [\n .05562093689691305,\n -0.20395524564742123,\n 1.0571799111220335\n ]\n ], wt = [\n 95.047,\n 100,\n 108.883\n ];\n var v = /*#__PURE__*/ function() {\n \"use strict\";\n function v(t, r, n, a, o, s, c, u, h, l) {\n (0, $0c3f79e99c83f58f$export$2996f80ef42b8419)(this, v);\n this.n = t, this.aw = r, this.nbb = n, this.ncb = a, this.c = o, this.nc = s, this.rgbD = c, this.fl = u, this.fLRoot = h, this.z = l;\n }\n (0, $a27186eefd8c4b26$export$d60067ff2358eee8)(v, null, [\n {\n key: \"make\",\n value: function make() {\n var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Kt(), r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 200 / Math.PI * Q(50) / 100, n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 50, a = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : 2, o = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !1;\n var s = t, c = s[0] * .401288 + s[1] * .650173 + s[2] * -0.051461, u = s[0] * -0.250268 + s[1] * 1.204414 + s[2] * .045854, h = s[0] * -0.002079 + s[1] * .048952 + s[2] * .953127, l = .8 + a / 10, d = l >= .9 ? nt(.59, .69, (l - .9) * 10) : nt(.525, .59, (l - .8) * 10);\n var p = o ? 1 : l * (1 - 1 / 3.6 * Math.exp((-r - 42) / 92));\n p = p > 1 ? 1 : p < 0 ? 0 : p;\n var f = l, M = [\n p * (100 / c) + 1 - p,\n p * (100 / u) + 1 - p,\n p * (100 / h) + 1 - p\n ], g = 1 / (5 * r + 1), b = g * g * g * g, w = 1 - b, y = b * r + .1 * w * w * Math.cbrt(5 * r), k = Q(n) / t[1], A = 1.48 + Math.sqrt(k), D = .725 / Math.pow(k, .2), R = D, P = [\n Math.pow(y * M[0] * c / 100, .42),\n Math.pow(y * M[1] * u / 100, .42),\n Math.pow(y * M[2] * h / 100, .42)\n ], I = [\n 400 * P[0] / (P[0] + 27.13),\n 400 * P[1] / (P[1] + 27.13),\n 400 * P[2] / (P[2] + 27.13)\n ], B = (2 * I[0] + I[1] + .05 * I[2]) * D;\n return new v(k, B, D, R, d, f, M, y, Math.pow(y, .25), A);\n }\n }\n ]);\n return v;\n }();\n v.DEFAULT = v.make(); /**\n * @license\n * Copyright 2021 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */ \n var z = /*#__PURE__*/ function() {\n \"use strict\";\n function z(t, r, n, a, o, s, c, u, h) {\n (0, $0c3f79e99c83f58f$export$2996f80ef42b8419)(this, z);\n this.hue = t, this.chroma = r, this.j = n, this.q = a, this.m = o, this.s = s, this.jstar = c, this.astar = u, this.bstar = h;\n }\n (0, $a27186eefd8c4b26$export$d60067ff2358eee8)(z, [\n {\n key: \"distance\",\n value: function distance(t) {\n var r = this.jstar - t.jstar, n = this.astar - t.astar, a = this.bstar - t.bstar, o = Math.sqrt(r * r + n * n + a * a);\n return 1.41 * Math.pow(o, .63);\n }\n },\n {\n key: \"toInt\",\n value: function toInt() {\n return this.viewed(v.DEFAULT);\n }\n },\n {\n key: \"viewed\",\n value: function viewed(t) {\n var r = this.chroma === 0 || this.j === 0 ? 0 : this.chroma / Math.sqrt(this.j / 100), n = Math.pow(r / Math.pow(1.64 - Math.pow(.29, t.n), .73), 1 / .9), a = this.hue * Math.PI / 180, o = .25 * (Math.cos(a + 2) + 3.8), s = t.aw * Math.pow(this.j / 100, 1 / t.c / t.z), c = o * (5e4 / 13) * t.nc * t.ncb, u = s / t.nbb, h = Math.sin(a), l = Math.cos(a), d = 23 * (u + .305) * n / (23 * c + 11 * n * l + 108 * n * h), p = d * l, f = d * h, M = (460 * u + 451 * p + 288 * f) / 1403, g = (460 * u - 891 * p - 261 * f) / 1403, b = (460 * u - 220 * p - 6300 * f) / 1403, w = Math.max(0, 27.13 * Math.abs(M) / (400 - Math.abs(M))), y = q(M) * (100 / t.fl) * Math.pow(w, 1 / .42), k = Math.max(0, 27.13 * Math.abs(g) / (400 - Math.abs(g))), A = q(g) * (100 / t.fl) * Math.pow(k, 1 / .42), D = Math.max(0, 27.13 * Math.abs(b) / (400 - Math.abs(b))), R = q(b) * (100 / t.fl) * Math.pow(D, 1 / .42), P = y / t.rgbD[0], I = A / t.rgbD[1], B = R / t.rgbD[2], T = 1.86206786 * P - 1.01125463 * I + .14918677 * B, V = .38752654 * P + .62144744 * I - .00897398 * B, Y = -0.0158415 * P - .03412294 * I + 1.04996444 * B;\n return St(T, V, Y);\n }\n },\n {\n key: \"xyzInViewingConditions\",\n value: function xyzInViewingConditions(t) {\n var r = this.chroma === 0 || this.j === 0 ? 0 : this.chroma / Math.sqrt(this.j / 100), n = Math.pow(r / Math.pow(1.64 - Math.pow(.29, t.n), .73), 1 / .9), a = this.hue * Math.PI / 180, o = .25 * (Math.cos(a + 2) + 3.8), s = t.aw * Math.pow(this.j / 100, 1 / t.c / t.z), c = o * (5e4 / 13) * t.nc * t.ncb, u = s / t.nbb, h = Math.sin(a), l = Math.cos(a), d = 23 * (u + .305) * n / (23 * c + 11 * n * l + 108 * n * h), p = d * l, f = d * h, M = (460 * u + 451 * p + 288 * f) / 1403, g = (460 * u - 891 * p - 261 * f) / 1403, b = (460 * u - 220 * p - 6300 * f) / 1403, w = Math.max(0, 27.13 * Math.abs(M) / (400 - Math.abs(M))), y = q(M) * (100 / t.fl) * Math.pow(w, 1 / .42), k = Math.max(0, 27.13 * Math.abs(g) / (400 - Math.abs(g))), A = q(g) * (100 / t.fl) * Math.pow(k, 1 / .42), D = Math.max(0, 27.13 * Math.abs(b) / (400 - Math.abs(b))), R = q(b) * (100 / t.fl) * Math.pow(D, 1 / .42), P = y / t.rgbD[0], I = A / t.rgbD[1], B = R / t.rgbD[2], T = 1.86206786 * P - 1.01125463 * I + .14918677 * B, V = .38752654 * P + .62144744 * I - .00897398 * B, Y = -0.0158415 * P - .03412294 * I + 1.04996444 * B;\n return [\n T,\n V,\n Y\n ];\n }\n }\n ], [\n {\n key: \"fromInt\",\n value: function fromInt(t) {\n return z.fromIntInViewingConditions(t, v.DEFAULT);\n }\n },\n {\n key: \"fromIntInViewingConditions\",\n value: function fromIntInViewingConditions(t, r) {\n var n = (t & 16711680) >> 16, a = (t & 65280) >> 8, o = t & 255, s = $(n), c = $(a), u = $(o), h = .41233895 * s + .35762064 * c + .18051042 * u, l = .2126 * s + .7152 * c + .0722 * u, d = .01932141 * s + .11916382 * c + .95034478 * u, p = .401288 * h + .650173 * l - .051461 * d, f = -0.250268 * h + 1.204414 * l + .045854 * d, M = -0.002079 * h + .048952 * l + .953127 * d, g = r.rgbD[0] * p, b = r.rgbD[1] * f, w = r.rgbD[2] * M, y = Math.pow(r.fl * Math.abs(g) / 100, .42), k = Math.pow(r.fl * Math.abs(b) / 100, .42), A = Math.pow(r.fl * Math.abs(w) / 100, .42), D = q(g) * 400 * y / (y + 27.13), R = q(b) * 400 * k / (k + 27.13), P = q(w) * 400 * A / (A + 27.13), I = (11 * D + -12 * R + P) / 11, B = (D + R - 2 * P) / 9, T = (20 * D + 20 * R + 21 * P) / 20, V = (40 * D + 20 * R + P) / 20, U = Math.atan2(B, I) * 180 / Math.PI, L = U < 0 ? U + 360 : U >= 360 ? U - 360 : U, Z = L * Math.PI / 180, st = V * r.nbb, K = 100 * Math.pow(st / r.aw, r.c * r.z), it = 4 / r.c * Math.sqrt(K / 100) * (r.aw + 4) * r.fLRoot, pt = L < 20.14 ? L + 360 : L, yt = .25 * (Math.cos(pt * Math.PI / 180 + 2) + 3.8), kt = 5e4 / 13 * yt * r.nc * r.ncb * Math.sqrt(I * I + B * B) / (T + .305), ct = Math.pow(kt, .9) * Math.pow(1.64 - Math.pow(.29, r.n), .73), Bt = ct * Math.sqrt(K / 100), Rt = Bt * r.fLRoot, Vt = 50 * Math.sqrt(ct * r.c / (r.aw + 4)), _t = (1 + 100 * .007) * K / (1 + .007 * K), Ft = 1 / .0228 * Math.log(1 + .0228 * Rt), Ht = Ft * Math.cos(Z), Ut = Ft * Math.sin(Z);\n return new z(L, Bt, K, it, Rt, Vt, _t, Ht, Ut);\n }\n },\n {\n key: \"fromJch\",\n value: function fromJch(t, r, n) {\n return z.fromJchInViewingConditions(t, r, n, v.DEFAULT);\n }\n },\n {\n key: \"fromJchInViewingConditions\",\n value: function fromJchInViewingConditions(t, r, n, a) {\n var o = 4 / a.c * Math.sqrt(t / 100) * (a.aw + 4) * a.fLRoot, s = r * a.fLRoot, c = r / Math.sqrt(t / 100), u = 50 * Math.sqrt(c * a.c / (a.aw + 4)), h = n * Math.PI / 180, l = (1 + 100 * .007) * t / (1 + .007 * t), d = 1 / .0228 * Math.log(1 + .0228 * s), p = d * Math.cos(h), f = d * Math.sin(h);\n return new z(n, r, t, o, s, u, l, p, f);\n }\n },\n {\n key: \"fromUcs\",\n value: function fromUcs(t, r, n) {\n return z.fromUcsInViewingConditions(t, r, n, v.DEFAULT);\n }\n },\n {\n key: \"fromUcsInViewingConditions\",\n value: function fromUcsInViewingConditions(t, r, n, a) {\n var o = r, s = n, c = Math.sqrt(o * o + s * s), h = (Math.exp(c * .0228) - 1) / .0228 / a.fLRoot;\n var l = Math.atan2(s, o) * (180 / Math.PI);\n l < 0 && (l += 360);\n var d = t / (1 - (t - 100) * .007);\n return z.fromJchInViewingConditions(d, h, l, a);\n }\n },\n {\n key: \"fromXyzInViewingConditions\",\n value: function fromXyzInViewingConditions(t, r, n, a) {\n var o = .401288 * t + .650173 * r - .051461 * n, s = -0.250268 * t + 1.204414 * r + .045854 * n, c = -0.002079 * t + .048952 * r + .953127 * n, u = a.rgbD[0] * o, h = a.rgbD[1] * s, l = a.rgbD[2] * c, d = Math.pow(a.fl * Math.abs(u) / 100, .42), p = Math.pow(a.fl * Math.abs(h) / 100, .42), f = Math.pow(a.fl * Math.abs(l) / 100, .42), M = q(u) * 400 * d / (d + 27.13), g = q(h) * 400 * p / (p + 27.13), b = q(l) * 400 * f / (f + 27.13), w = (11 * M + -12 * g + b) / 11, y = (M + g - 2 * b) / 9, k = (20 * M + 20 * g + 21 * b) / 20, A = (40 * M + 20 * g + b) / 20, R = Math.atan2(y, w) * 180 / Math.PI, P = R < 0 ? R + 360 : R >= 360 ? R - 360 : R, I = P * Math.PI / 180, B = A * a.nbb, T = 100 * Math.pow(B / a.aw, a.c * a.z), V = 4 / a.c * Math.sqrt(T / 100) * (a.aw + 4) * a.fLRoot, Y = P < 20.14 ? P + 360 : P, U = 1 / 4 * (Math.cos(Y * Math.PI / 180 + 2) + 3.8), Z = 5e4 / 13 * U * a.nc * a.ncb * Math.sqrt(w * w + y * y) / (k + .305), st = Math.pow(Z, .9) * Math.pow(1.64 - Math.pow(.29, a.n), .73), K = st * Math.sqrt(T / 100), it = K * a.fLRoot, pt = 50 * Math.sqrt(st * a.c / (a.aw + 4)), yt = (1 + 100 * .007) * T / (1 + .007 * T), Mt = Math.log(1 + .0228 * it) / .0228, kt = Mt * Math.cos(I), ct = Mt * Math.sin(I);\n return new z(P, K, T, V, it, pt, yt, kt, ct);\n }\n }\n ]);\n return z;\n } /**\n * @license\n * Copyright 2021 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */ ();\n var C = /*#__PURE__*/ function() {\n \"use strict\";\n function C() {\n (0, $0c3f79e99c83f58f$export$2996f80ef42b8419)(this, C);\n }\n (0, $a27186eefd8c4b26$export$d60067ff2358eee8)(C, null, [\n {\n key: \"sanitizeRadians\",\n value: function sanitizeRadians(t) {\n return (t + Math.PI * 8) % (Math.PI * 2);\n }\n },\n {\n key: \"trueDelinearized\",\n value: function trueDelinearized(t) {\n var r = t / 100;\n var n = 0;\n return r <= .0031308 ? n = r * 12.92 : n = 1.055 * Math.pow(r, 1 / 2.4) - .055, n * 255;\n }\n },\n {\n key: \"chromaticAdaptation\",\n value: function chromaticAdaptation(t) {\n var r = Math.pow(Math.abs(t), .42);\n return q(t) * 400 * r / (r + 27.13);\n }\n },\n {\n key: \"hueOf\",\n value: function hueOf(t) {\n var r = bt(t, C.SCALED_DISCOUNT_FROM_LINRGB), n = C.chromaticAdaptation(r[0]), a = C.chromaticAdaptation(r[1]), o = C.chromaticAdaptation(r[2]), s = (11 * n + -12 * a + o) / 11, c = (n + a - 2 * o) / 9;\n return Math.atan2(c, s);\n }\n },\n {\n key: \"areInCyclicOrder\",\n value: function areInCyclicOrder(t, r, n) {\n var a = C.sanitizeRadians(r - t), o = C.sanitizeRadians(n - t);\n return a < o;\n }\n },\n {\n key: \"intercept\",\n value: function intercept(t, r, n) {\n return (r - t) / (n - t);\n }\n },\n {\n key: \"lerpPoint\",\n value: function lerpPoint(t, r, n) {\n return [\n t[0] + (n[0] - t[0]) * r,\n t[1] + (n[1] - t[1]) * r,\n t[2] + (n[2] - t[2]) * r\n ];\n }\n },\n {\n key: \"setCoordinate\",\n value: function setCoordinate(t, r, n, a) {\n var o = C.intercept(t[a], r, n[a]);\n return C.lerpPoint(t, o, n);\n }\n },\n {\n key: \"isBounded\",\n value: function isBounded(t) {\n return 0 <= t && t <= 100;\n }\n },\n {\n key: \"nthVertex\",\n value: function nthVertex(t, r) {\n var n = C.Y_FROM_LINRGB[0], a = C.Y_FROM_LINRGB[1], o = C.Y_FROM_LINRGB[2], s = r % 4 <= 1 ? 0 : 100, c = r % 2 === 0 ? 0 : 100;\n if (r < 4) {\n var u = s, h = c, l = (t - u * a - h * o) / n;\n return C.isBounded(l) ? [\n l,\n u,\n h\n ] : [\n -1,\n -1,\n -1\n ];\n } else if (r < 8) {\n var u1 = s, h1 = c, l1 = (t - h1 * n - u1 * o) / a;\n return C.isBounded(l1) ? [\n h1,\n l1,\n u1\n ] : [\n -1,\n -1,\n -1\n ];\n } else {\n var u2 = s, h2 = c, l2 = (t - u2 * n - h2 * a) / o;\n return C.isBounded(l2) ? [\n u2,\n h2,\n l2\n ] : [\n -1,\n -1,\n -1\n ];\n }\n }\n },\n {\n key: \"bisectToSegment\",\n value: function bisectToSegment(t, r) {\n var n = [\n -1,\n -1,\n -1\n ], a = n, o = 0, s = 0, c = !1, u = !0;\n for(var h = 0; h < 12; h++){\n var l = C.nthVertex(t, h);\n if (l[0] < 0) continue;\n var d = C.hueOf(l);\n if (!c) {\n n = l, a = l, o = d, s = d, c = !0;\n continue;\n }\n (u || C.areInCyclicOrder(o, d, s)) && (u = !1, C.areInCyclicOrder(o, r, d) ? (a = l, s = d) : (n = l, o = d));\n }\n return [\n n,\n a\n ];\n }\n },\n {\n key: \"midpoint\",\n value: function midpoint(t, r) {\n return [\n (t[0] + r[0]) / 2,\n (t[1] + r[1]) / 2,\n (t[2] + r[2]) / 2\n ];\n }\n },\n {\n key: \"criticalPlaneBelow\",\n value: function criticalPlaneBelow(t) {\n return Math.floor(t - .5);\n }\n },\n {\n key: \"criticalPlaneAbove\",\n value: function criticalPlaneAbove(t) {\n return Math.ceil(t - .5);\n }\n },\n {\n key: \"bisectToLimit\",\n value: function bisectToLimit(t, r) {\n var n = C.bisectToSegment(t, r);\n var a = n[0], o = C.hueOf(a), s = n[1];\n for(var c = 0; c < 3; c++)if (a[c] !== s[c]) {\n var u = -1, h = 255;\n a[c] < s[c] ? (u = C.criticalPlaneBelow(C.trueDelinearized(a[c])), h = C.criticalPlaneAbove(C.trueDelinearized(s[c]))) : (u = C.criticalPlaneAbove(C.trueDelinearized(a[c])), h = C.criticalPlaneBelow(C.trueDelinearized(s[c])));\n for(var l = 0; l < 8 && !(Math.abs(h - u) <= 1); l++){\n var d = Math.floor((u + h) / 2), p = C.CRITICAL_PLANES[d], f = C.setCoordinate(a, p, s, c), M = C.hueOf(f);\n C.areInCyclicOrder(o, r, M) ? (s = f, h = d) : (a = f, o = M, u = d);\n }\n }\n return C.midpoint(a, s);\n }\n },\n {\n key: \"inverseChromaticAdaptation\",\n value: function inverseChromaticAdaptation(t) {\n var r = Math.abs(t), n = Math.max(0, 27.13 * r / (400 - r));\n return q(t) * Math.pow(n, 1 / .42);\n }\n },\n {\n key: \"findResultByJ\",\n value: function findResultByJ(t, r, n) {\n var a = Math.sqrt(n) * 11;\n var o = v.DEFAULT, s = 1 / Math.pow(1.64 - Math.pow(.29, o.n), .73), u = .25 * (Math.cos(t + 2) + 3.8) * (5e4 / 13) * o.nc * o.ncb, h = Math.sin(t), l = Math.cos(t);\n for(var d = 0; d < 5; d++){\n var p = a / 100, f = r === 0 || a === 0 ? 0 : r / Math.sqrt(p), M = Math.pow(f * s, 1 / .9), b = o.aw * Math.pow(p, 1 / o.c / o.z) / o.nbb, w = 23 * (b + .305) * M / (23 * u + 11 * M * l + 108 * M * h), y = w * l, k = w * h, A = (460 * b + 451 * y + 288 * k) / 1403, D = (460 * b - 891 * y - 261 * k) / 1403, R = (460 * b - 220 * y - 6300 * k) / 1403, P = C.inverseChromaticAdaptation(A), I = C.inverseChromaticAdaptation(D), B = C.inverseChromaticAdaptation(R), T = bt([\n P,\n I,\n B\n ], C.LINRGB_FROM_SCALED_DISCOUNT);\n if (T[0] < 0 || T[1] < 0 || T[2] < 0) return 0;\n var V = C.Y_FROM_LINRGB[0], Y = C.Y_FROM_LINRGB[1], U = C.Y_FROM_LINRGB[2], L = V * T[0] + Y * T[1] + U * T[2];\n if (L <= 0) return 0;\n if (d === 4 || Math.abs(L - n) < .002) return T[0] > 100.01 || T[1] > 100.01 || T[2] > 100.01 ? 0 : Et(T);\n a = a - (L - n) * a / (2 * L);\n }\n return 0;\n }\n },\n {\n key: \"solveToInt\",\n value: function solveToInt(t, r, n) {\n if (r < 1e-4 || n < 1e-4 || n > 99.9999) return $t(n);\n t = Dt(t);\n var a = t / 180 * Math.PI, o = Q(n), s = C.findResultByJ(a, r, o);\n if (s !== 0) return s;\n var c = C.bisectToLimit(o, a);\n return Et(c);\n }\n },\n {\n key: \"solveToCam\",\n value: function solveToCam(t, r, n) {\n return z.fromInt(C.solveToInt(t, r, n));\n }\n }\n ]);\n return C;\n }();\n C.SCALED_DISCOUNT_FROM_LINRGB = [\n [\n .001200833568784504,\n .002389694492170889,\n .0002795742885861124\n ],\n [\n .0005891086651375999,\n .0029785502573438758,\n .0003270666104008398\n ],\n [\n .00010146692491640572,\n .0005364214359186694,\n .0032979401770712076\n ]\n ];\n C.LINRGB_FROM_SCALED_DISCOUNT = [\n [\n 1373.2198709594231,\n -1100.4251190754821,\n -7.278681089101213\n ],\n [\n -271.815969077903,\n 559.6580465940733,\n -32.46047482791194\n ],\n [\n 1.9622899599665666,\n -57.173814538844006,\n 308.7233197812385\n ]\n ];\n C.Y_FROM_LINRGB = [\n .2126,\n .7152,\n .0722\n ];\n C.CRITICAL_PLANES = [\n .015176349177441876,\n .045529047532325624,\n .07588174588720938,\n .10623444424209313,\n .13658714259697685,\n .16693984095186062,\n .19729253930674434,\n .2276452376616281,\n .2579979360165119,\n .28835063437139563,\n .3188300904430532,\n .350925934958123,\n .3848314933096426,\n .42057480301049466,\n .458183274052838,\n .4976837250274023,\n .5391024159806381,\n .5824650784040898,\n .6277969426914107,\n .6751227633498623,\n .7244668422128921,\n .775853049866786,\n .829304845476233,\n .8848452951698498,\n .942497089126609,\n 1.0022825574869039,\n 1.0642236851973577,\n 1.1283421258858297,\n 1.1946592148522128,\n 1.2631959812511864,\n 1.3339731595349034,\n 1.407011200216447,\n 1.4823302800086415,\n 1.5599503113873272,\n 1.6398909516233677,\n 1.7221716113234105,\n 1.8068114625156377,\n 1.8938294463134073,\n 1.9832442801866852,\n 2.075074464868551,\n 2.1693382909216234,\n 2.2660538449872063,\n 2.36523901573795,\n 2.4669114995532007,\n 2.5710888059345764,\n 2.6777882626779785,\n 2.7870270208169257,\n 2.898822059350997,\n 3.0131901897720907,\n 3.1301480604002863,\n 3.2497121605402226,\n 3.3718988244681087,\n 3.4967242352587946,\n 3.624204428461639,\n 3.754355295633311,\n 3.887192587735158,\n 4.022731918402185,\n 4.160988767090289,\n 4.301978482107941,\n 4.445716283538092,\n 4.592217266055746,\n 4.741496401646282,\n 4.893568542229298,\n 5.048448422192488,\n 5.20615066083972,\n 5.3666897647573375,\n 5.5300801301023865,\n 5.696336044816294,\n 5.865471690767354,\n 6.037501145825082,\n 6.212438385869475,\n 6.390297286737924,\n 6.571091626112461,\n 6.7548350853498045,\n 6.941541251256611,\n 7.131223617812143,\n 7.323895587840543,\n 7.5195704746346665,\n 7.7182615035334345,\n 7.919981813454504,\n 8.124744458384042,\n 8.332562408825165,\n 8.543448553206703,\n 8.757415699253682,\n 8.974476575321063,\n 9.194643831691977,\n 9.417930041841839,\n 9.644347703669503,\n 9.873909240696694,\n 10.106627003236781,\n 10.342513269534024,\n 10.58158024687427,\n 10.8238400726681,\n 11.069304815507364,\n 11.317986476196008,\n 11.569896988756009,\n 11.825048221409341,\n 12.083451977536606,\n 12.345119996613247,\n 12.610063955123938,\n 12.878295467455942,\n 13.149826086772048,\n 13.42466730586372,\n 13.702830557985108,\n 13.984327217668513,\n 14.269168601521828,\n 14.55736596900856,\n 14.848930523210871,\n 15.143873411576273,\n 15.44220572664832,\n 15.743938506781891,\n 16.04908273684337,\n 16.35764934889634,\n 16.66964922287304,\n 16.985093187232053,\n 17.30399201960269,\n 17.62635644741625,\n 17.95219714852476,\n 18.281524751807332,\n 18.614349837764564,\n 18.95068293910138,\n 19.290534541298456,\n 19.633915083172692,\n 19.98083495742689,\n 20.331304511189067,\n 20.685334046541502,\n 21.042933821039977,\n 21.404114048223256,\n 21.76888489811322,\n 22.137256497705877,\n 22.50923893145328,\n 22.884842241736916,\n 23.264076429332462,\n 23.6469514538663,\n 24.033477234264016,\n 24.42366364919083,\n 24.817520537484558,\n 25.21505769858089,\n 25.61628489293138,\n 26.021211842414342,\n 26.429848230738664,\n 26.842203703840827,\n 27.258287870275353,\n 27.678110301598522,\n 28.10168053274597,\n 28.529008062403893,\n 28.96010235337422,\n 29.39497283293396,\n 29.83362889318845,\n 30.276079891419332,\n 30.722335150426627,\n 31.172403958865512,\n 31.62629557157785,\n 32.08401920991837,\n 32.54558406207592,\n 33.010999283389665,\n 33.4802739966603,\n 33.953417292456834,\n 34.430438229418264,\n 34.911345834551085,\n 35.39614910352207,\n 35.88485700094671,\n 36.37747846067349,\n 36.87402238606382,\n 37.37449765026789,\n 37.87891309649659,\n 38.38727753828926,\n 38.89959975977785,\n 39.41588851594697,\n 39.93615253289054,\n 40.460400508064545,\n 40.98864111053629,\n 41.520882981230194,\n 42.05713473317016,\n 42.597404951718396,\n 43.141702194811224,\n 43.6900349931913,\n 44.24241185063697,\n 44.798841244188324,\n 45.35933162437017,\n 45.92389141541209,\n 46.49252901546552,\n 47.065252796817916,\n 47.64207110610409,\n 48.22299226451468,\n 48.808024568002054,\n 49.3971762874833,\n 49.9904556690408,\n 50.587870934119984,\n 51.189430279724725,\n 51.79514187861014,\n 52.40501387947288,\n 53.0190544071392,\n 53.637271562750364,\n 54.259673423945976,\n 54.88626804504493,\n 55.517063457223934,\n 56.15206766869424,\n 56.79128866487574,\n 57.43473440856916,\n 58.08241284012621,\n 58.734331877617365,\n 59.39049941699807,\n 60.05092333227251,\n 60.715611475655585,\n 61.38457167773311,\n 62.057811747619894,\n 62.7353394731159,\n 63.417162620860914,\n 64.10328893648692,\n 64.79372614476921,\n 65.48848194977529,\n 66.18756403501224,\n 66.89098006357258,\n 67.59873767827808,\n 68.31084450182222,\n 69.02730813691093,\n 69.74813616640164,\n 70.47333615344107,\n 71.20291564160104,\n 71.93688215501312,\n 72.67524319850172,\n 73.41800625771542,\n 74.16517879925733,\n 74.9167682708136,\n 75.67278210128072,\n 76.43322770089146,\n 77.1981124613393,\n 77.96744375590167,\n 78.74122893956174,\n 79.51947534912904,\n 80.30219030335869,\n 81.08938110306934,\n 81.88105503125999,\n 82.67721935322541,\n 83.4778813166706,\n 84.28304815182372,\n 85.09272707154808,\n 85.90692527145302,\n 86.72564993000343,\n 87.54890820862819,\n 88.3767072518277,\n 89.2090541872801,\n 90.04595612594655,\n 90.88742016217518,\n 91.73345337380438,\n 92.58406282226491,\n 93.43925555268066,\n 94.29903859396902,\n 95.16341895893969,\n 96.03240364439274,\n 96.9059996312159,\n 97.78421388448044,\n 98.6670533535366,\n 99.55452497210776\n ]; /**\n * @license\n * Copyright 2021 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */ \n var E = /*#__PURE__*/ function() {\n \"use strict\";\n function E(t) {\n (0, $0c3f79e99c83f58f$export$2996f80ef42b8419)(this, E);\n this.argb = t;\n var r = z.fromInt(t);\n this.internalHue = r.hue, this.internalChroma = r.chroma, this.internalTone = Ct(t), this.argb = t;\n }\n (0, $a27186eefd8c4b26$export$d60067ff2358eee8)(E, [\n {\n key: \"toInt\",\n value: function toInt() {\n return this.argb;\n }\n },\n {\n key: \"hue\",\n get: function get() {\n return this.internalHue;\n },\n set: function set(t) {\n this.setInternalState(C.solveToInt(t, this.internalChroma, this.internalTone));\n }\n },\n {\n key: \"chroma\",\n get: function get() {\n return this.internalChroma;\n },\n set: function set(t) {\n this.setInternalState(C.solveToInt(this.internalHue, t, this.internalTone));\n }\n },\n {\n key: \"tone\",\n get: function get() {\n return this.internalTone;\n },\n set: function set(t) {\n this.setInternalState(C.solveToInt(this.internalHue, this.internalChroma, t));\n }\n },\n {\n key: \"setInternalState\",\n value: function setInternalState(t) {\n var r = z.fromInt(t);\n this.internalHue = r.hue, this.internalChroma = r.chroma, this.internalTone = Ct(t), this.argb = t;\n }\n },\n {\n key: \"inViewingConditions\",\n value: function inViewingConditions(t) {\n var n = z.fromInt(this.toInt()).xyzInViewingConditions(t), a = z.fromXyzInViewingConditions(n[0], n[1], n[2], v.make());\n return E.from(a.hue, a.chroma, It(n[1]));\n }\n }\n ], [\n {\n key: \"from\",\n value: function from(t, r, n) {\n return new E(C.solveToInt(t, r, n));\n }\n },\n {\n key: \"fromInt\",\n value: function fromInt(t) {\n return new E(t);\n }\n }\n ]);\n return E;\n } /**\n * @license\n * Copyright 2021 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */ ();\n var xt = /*#__PURE__*/ function() {\n \"use strict\";\n function xt() {\n (0, $0c3f79e99c83f58f$export$2996f80ef42b8419)(this, xt);\n }\n (0, $a27186eefd8c4b26$export$d60067ff2358eee8)(xt, null, [\n {\n key: \"harmonize\",\n value: function harmonize(t, r) {\n var n = E.fromInt(t), a = E.fromInt(r), o = Nt(n.hue, a.hue), s = Math.min(o * .5, 15), c = Dt(n.hue + s * jt(n.hue, a.hue));\n return E.from(c, n.chroma, n.tone).toInt();\n }\n },\n {\n key: \"hctHue\",\n value: function hctHue(t, r, n) {\n var a = xt.cam16Ucs(t, r, n), o = z.fromInt(a), s = z.fromInt(t);\n return E.from(o.hue, s.chroma, Ct(t)).toInt();\n }\n },\n {\n key: \"cam16Ucs\",\n value: function cam16Ucs(t, r, n) {\n var a = z.fromInt(t), o = z.fromInt(r), s = a.jstar, c = a.astar, u = a.bstar, h = o.jstar, l = o.astar, d = o.bstar, p = s + (h - s) * n, f = c + (l - c) * n, M = u + (d - u) * n;\n return z.fromUcs(p, f, M).toInt();\n }\n }\n ]);\n return xt;\n } /**\n * @license\n * Copyright 2022 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */ ();\n var N = /*#__PURE__*/ function() {\n \"use strict\";\n function N() {\n (0, $0c3f79e99c83f58f$export$2996f80ef42b8419)(this, N);\n }\n (0, $a27186eefd8c4b26$export$d60067ff2358eee8)(N, null, [\n {\n key: \"ratioOfTones\",\n value: function ratioOfTones(t, r) {\n return t = ht(0, 100, t), r = ht(0, 100, r), N.ratioOfYs(Q(t), Q(r));\n }\n },\n {\n key: \"ratioOfYs\",\n value: function ratioOfYs(t, r) {\n var n = t > r ? t : r, a = n === r ? t : r;\n return (n + 5) / (a + 5);\n }\n },\n {\n key: \"lighter\",\n value: function lighter(t, r) {\n if (t < 0 || t > 100) return -1;\n var n = Q(t), a = r * (n + 5) - 5, o = N.ratioOfYs(a, n), s = Math.abs(o - r);\n if (o < r && s > .04) return -1;\n var c = It(a) + .4;\n return c < 0 || c > 100 ? -1 : c;\n }\n },\n {\n key: \"darker\",\n value: function darker(t, r) {\n if (t < 0 || t > 100) return -1;\n var n = Q(t), a = (n + 5) / r - 5, o = N.ratioOfYs(n, a), s = Math.abs(o - r);\n if (o < r && s > .04) return -1;\n var c = It(a) - .4;\n return c < 0 || c > 100 ? -1 : c;\n }\n },\n {\n key: \"lighterUnsafe\",\n value: function lighterUnsafe(t, r) {\n var n = N.lighter(t, r);\n return n < 0 ? 100 : n;\n }\n },\n {\n key: \"darkerUnsafe\",\n value: function darkerUnsafe(t, r) {\n var n = N.darker(t, r);\n return n < 0 ? 0 : n;\n }\n }\n ]);\n return N;\n } /**\n * @license\n * Copyright 2023 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */ ();\n var At = /*#__PURE__*/ function() {\n \"use strict\";\n function At() {\n (0, $0c3f79e99c83f58f$export$2996f80ef42b8419)(this, At);\n }\n (0, $a27186eefd8c4b26$export$d60067ff2358eee8)(At, null, [\n {\n key: \"isDisliked\",\n value: function isDisliked(t) {\n var r = Math.round(t.hue) >= 90 && Math.round(t.hue) <= 111, n = Math.round(t.chroma) > 16, a = Math.round(t.tone) < 65;\n return r && n && a;\n }\n },\n {\n key: \"fixIfDisliked\",\n value: function fixIfDisliked(t) {\n return At.isDisliked(t) ? E.from(t.hue, t.chroma, 70) : t;\n }\n }\n ]);\n return At;\n } /**\n * @license\n * Copyright 2022 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */ ();\n var m = /*#__PURE__*/ function() {\n \"use strict\";\n function m(t, r, n, a, o, s, c, u) {\n (0, $0c3f79e99c83f58f$export$2996f80ef42b8419)(this, m);\n if (this.name = t, this.palette = r, this.tone = n, this.isBackground = a, this.background = o, this.secondBackground = s, this.contrastCurve = c, this.toneDeltaPair = u, this.hctCache = new Map, !o && s) throw new Error(\"Color \".concat(t, \" has secondBackgrounddefined, but background is not defined.\"));\n if (!o && c) throw new Error(\"Color \".concat(t, \" has contrastCurvedefined, but background is not defined.\"));\n if (o && !c) throw new Error(\"Color \".concat(t, \" has backgrounddefined, but contrastCurve is not defined.\"));\n }\n (0, $a27186eefd8c4b26$export$d60067ff2358eee8)(m, [\n {\n key: \"getArgb\",\n value: function getArgb(t) {\n return this.getHct(t).toInt();\n }\n },\n {\n key: \"getHct\",\n value: function getHct(t) {\n var r = this.hctCache.get(t);\n if (r != null) return r;\n var n = this.getTone(t), a = this.palette(t).getHct(n);\n return this.hctCache.size > 4 && this.hctCache.clear(), this.hctCache.set(t, a), a;\n }\n },\n {\n key: \"getTone\",\n value: function getTone(t) {\n var r = t.contrastLevel < 0;\n if (this.toneDeltaPair) {\n var n = this.toneDeltaPair(t), a = n.roleA, o = n.roleB, s = n.delta, c = n.polarity, u = n.stayTogether, l = this.background(t).getTone(t), d = c === \"nearer\" || c === \"lighter\" && !t.isDark || c === \"darker\" && t.isDark, p = d ? a : o, f = d ? o : a, M = this.name === p.name, g = t.isDark ? 1 : -1, b = p.contrastCurve.getContrast(t.contrastLevel), w = f.contrastCurve.getContrast(t.contrastLevel), y = p.tone(t);\n var k = N.ratioOfTones(l, y) >= b ? y : m.foregroundTone(l, b);\n var A = f.tone(t);\n var D = N.ratioOfTones(l, A) >= w ? A : m.foregroundTone(l, w);\n return r && (k = m.foregroundTone(l, b), D = m.foregroundTone(l, w)), (D - k) * g >= s || (D = ht(0, 100, k + s * g), (D - k) * g >= s || (k = ht(0, 100, D - s * g))), 50 <= k && k < 60 ? g > 0 ? (k = 60, D = Math.max(D, k + s * g)) : (k = 49, D = Math.min(D, k + s * g)) : 50 <= D && D < 60 && (u ? g > 0 ? (k = 60, D = Math.max(D, k + s * g)) : (k = 49, D = Math.min(D, k + s * g)) : g > 0 ? D = 60 : D = 49), M ? k : D;\n } else {\n var n1 = this.tone(t);\n if (this.background == null) return n1;\n var a1 = this.background(t).getTone(t), o1 = this.contrastCurve.getContrast(t.contrastLevel);\n if (N.ratioOfTones(a1, n1) >= o1 || (n1 = m.foregroundTone(a1, o1)), r && (n1 = m.foregroundTone(a1, o1)), this.isBackground && 50 <= n1 && n1 < 60 && (N.ratioOfTones(49, a1) >= o1 ? n1 = 49 : n1 = 60), this.secondBackground) {\n var _ref = [\n this.background,\n this.secondBackground\n ], s1 = _ref[0], c1 = _ref[1], _ref1 = [\n s1(t).getTone(t),\n c1(t).getTone(t)\n ], u1 = _ref1[0], h = _ref1[1], _ref2 = [\n Math.max(u1, h),\n Math.min(u1, h)\n ], l1 = _ref2[0], d1 = _ref2[1];\n if (N.ratioOfTones(l1, n1) >= o1 && N.ratioOfTones(d1, n1) >= o1) return n1;\n var p1 = N.lighter(l1, o1), f1 = N.darker(d1, o1), M1 = [];\n return p1 !== -1 && M1.push(p1), f1 !== -1 && M1.push(f1), m.tonePrefersLightForeground(u1) || m.tonePrefersLightForeground(h) ? p1 < 0 ? 100 : p1 : M1.length === 1 ? M1[0] : f1 < 0 ? 0 : f1;\n }\n return n1;\n }\n }\n }\n ], [\n {\n key: \"fromPalette\",\n value: function fromPalette(t) {\n var _t_name, _t_isBackground;\n return new m((_t_name = t.name) !== null && _t_name !== void 0 ? _t_name : \"\", t.palette, t.tone, (_t_isBackground = t.isBackground) !== null && _t_isBackground !== void 0 ? _t_isBackground : !1, t.background, t.secondBackground, t.contrastCurve, t.toneDeltaPair);\n }\n },\n {\n key: \"foregroundTone\",\n value: function foregroundTone(t, r) {\n var n = N.lighterUnsafe(t, r), a = N.darkerUnsafe(t, r), o = N.ratioOfTones(n, t), s = N.ratioOfTones(a, t);\n if (m.tonePrefersLightForeground(t)) {\n var u = Math.abs(o - s) < .1 && o < r && s < r;\n return o >= r || o >= s || u ? n : a;\n } else return s >= r || s >= o ? a : n;\n }\n },\n {\n key: \"tonePrefersLightForeground\",\n value: function tonePrefersLightForeground(t) {\n return Math.round(t) < 60;\n }\n },\n {\n key: \"toneAllowsLightForeground\",\n value: function toneAllowsLightForeground(t) {\n return Math.round(t) <= 49;\n }\n },\n {\n key: \"enableLightForeground\",\n value: function enableLightForeground(t) {\n return m.tonePrefersLightForeground(t) && !m.toneAllowsLightForeground(t) ? 49 : t;\n }\n }\n ]);\n return m;\n } /**\n * @license\n * Copyright 2022 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */ ();\n var ot;\n (function(e) {\n e[e.MONOCHROME = 0] = \"MONOCHROME\", e[e.NEUTRAL = 1] = \"NEUTRAL\", e[e.TONAL_SPOT = 2] = \"TONAL_SPOT\", e[e.VIBRANT = 3] = \"VIBRANT\", e[e.EXPRESSIVE = 4] = \"EXPRESSIVE\", e[e.FIDELITY = 5] = \"FIDELITY\", e[e.CONTENT = 6] = \"CONTENT\", e[e.RAINBOW = 7] = \"RAINBOW\", e[e.FRUIT_SALAD = 8] = \"FRUIT_SALAD\";\n })(ot || (ot = {})); /**\n * @license\n * Copyright 2023 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */ \n var x = /*#__PURE__*/ function() {\n \"use strict\";\n function x(t, r, n, a) {\n (0, $0c3f79e99c83f58f$export$2996f80ef42b8419)(this, x);\n this.low = t, this.normal = r, this.medium = n, this.high = a;\n }\n (0, $a27186eefd8c4b26$export$d60067ff2358eee8)(x, [\n {\n key: \"getContrast\",\n value: function getContrast(t) {\n return t <= -1 ? this.low : t < 0 ? nt(this.low, this.normal, (t - -1) / 1) : t < .5 ? nt(this.normal, this.medium, (t - 0) / .5) : t < 1 ? nt(this.medium, this.high, (t - .5) / .5) : this.high;\n }\n }\n ]);\n return x;\n } /**\n * @license\n * Copyright 2023 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */ ();\n var j = function j(t, r, n, a, o) {\n \"use strict\";\n (0, $0c3f79e99c83f58f$export$2996f80ef42b8419)(this, j);\n this.roleA = t, this.roleB = r, this.delta = n, this.polarity = a, this.stayTogether = o;\n } /**\n * @license\n * Copyright 2022 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */ ;\n var i = /*#__PURE__*/ function() {\n \"use strict\";\n function i() {\n (0, $0c3f79e99c83f58f$export$2996f80ef42b8419)(this, i);\n }\n (0, $a27186eefd8c4b26$export$d60067ff2358eee8)(i, null, [\n {\n key: \"highestSurface\",\n value: function highestSurface(t) {\n return t.isDark ? i.surfaceBright : i.surfaceDim;\n }\n }\n ]);\n return i;\n }();\n i.contentAccentToneDelta = 15;\n i.primaryPaletteKeyColor = m.fromPalette({\n name: \"primary_palette_key_color\",\n palette: function(e) {\n return e.primaryPalette;\n },\n tone: function(e) {\n return e.primaryPalette.keyColor.tone;\n }\n });\n i.secondaryPaletteKeyColor = m.fromPalette({\n name: \"secondary_palette_key_color\",\n palette: function(e) {\n return e.secondaryPalette;\n },\n tone: function(e) {\n return e.secondaryPalette.keyColor.tone;\n }\n });\n i.tertiaryPaletteKeyColor = m.fromPalette({\n name: \"tertiary_palette_key_color\",\n palette: function(e) {\n return e.tertiaryPalette;\n },\n tone: function(e) {\n return e.tertiaryPalette.keyColor.tone;\n }\n });\n i.neutralPaletteKeyColor = m.fromPalette({\n name: \"neutral_palette_key_color\",\n palette: function(e) {\n return e.neutralPalette;\n },\n tone: function(e) {\n return e.neutralPalette.keyColor.tone;\n }\n });\n i.neutralVariantPaletteKeyColor = m.fromPalette({\n name: \"neutral_variant_palette_key_color\",\n palette: function(e) {\n return e.neutralVariantPalette;\n },\n tone: function(e) {\n return e.neutralVariantPalette.keyColor.tone;\n }\n });\n i.background = m.fromPalette({\n name: \"background\",\n palette: function(e) {\n return e.neutralPalette;\n },\n tone: function(e) {\n return e.isDark ? 6 : 98;\n },\n isBackground: !0\n });\n i.onBackground = m.fromPalette({\n name: \"on_background\",\n palette: function(e) {\n return e.neutralPalette;\n },\n tone: function(e) {\n return e.isDark ? 90 : 10;\n },\n background: function(e) {\n return i.background;\n },\n contrastCurve: new x(3, 3, 4.5, 7)\n });\n i.surface = m.fromPalette({\n name: \"surface\",\n palette: function(e) {\n return e.neutralPalette;\n },\n tone: function(e) {\n return e.isDark ? 6 : 98;\n },\n isBackground: !0\n });\n i.surfaceDim = m.fromPalette({\n name: \"surface_dim\",\n palette: function(e) {\n return e.neutralPalette;\n },\n tone: function(e) {\n return e.isDark ? 6 : 87;\n },\n isBackground: !0\n });\n i.surfaceBright = m.fromPalette({\n name: \"surface_bright\",\n palette: function(e) {\n return e.neutralPalette;\n },\n tone: function(e) {\n return e.isDark ? 24 : 98;\n },\n isBackground: !0\n });\n i.surfaceContainerLowest = m.fromPalette({\n name: \"surface_container_lowest\",\n palette: function(e) {\n return e.neutralPalette;\n },\n tone: function(e) {\n return e.isDark ? 4 : 100;\n },\n isBackground: !0\n });\n i.surfaceContainerLow = m.fromPalette({\n name: \"surface_container_low\",\n palette: function(e) {\n return e.neutralPalette;\n },\n tone: function(e) {\n return e.isDark ? 10 : 96;\n },\n isBackground: !0\n });\n i.surfaceContainer = m.fromPalette({\n name: \"surface_container\",\n palette: function(e) {\n return e.neutralPalette;\n },\n tone: function(e) {\n return e.isDark ? 12 : 94;\n },\n isBackground: !0\n });\n i.surfaceContainerHigh = m.fromPalette({\n name: \"surface_container_high\",\n palette: function(e) {\n return e.neutralPalette;\n },\n tone: function(e) {\n return e.isDark ? 17 : 92;\n },\n isBackground: !0\n });\n i.surfaceContainerHighest = m.fromPalette({\n name: \"surface_container_highest\",\n palette: function(e) {\n return e.neutralPalette;\n },\n tone: function(e) {\n return e.isDark ? 22 : 90;\n },\n isBackground: !0\n });\n i.onSurface = m.fromPalette({\n name: \"on_surface\",\n palette: function(e) {\n return e.neutralPalette;\n },\n tone: function(e) {\n return e.isDark ? 90 : 10;\n },\n background: function(e) {\n return i.highestSurface(e);\n },\n contrastCurve: new x(4.5, 7, 11, 21)\n });\n i.surfaceVariant = m.fromPalette({\n name: \"surface_variant\",\n palette: function(e) {\n return e.neutralVariantPalette;\n },\n tone: function(e) {\n return e.isDark ? 30 : 90;\n },\n isBackground: !0\n });\n i.onSurfaceVariant = m.fromPalette({\n name: \"on_surface_variant\",\n palette: function(e) {\n return e.neutralVariantPalette;\n },\n tone: function(e) {\n return e.isDark ? 80 : 30;\n },\n background: function(e) {\n return i.highestSurface(e);\n },\n contrastCurve: new x(3, 4.5, 7, 11)\n });\n i.inverseSurface = m.fromPalette({\n name: \"inverse_surface\",\n palette: function(e) {\n return e.neutralPalette;\n },\n tone: function(e) {\n return e.isDark ? 90 : 20;\n }\n });\n i.inverseOnSurface = m.fromPalette({\n name: \"inverse_on_surface\",\n palette: function(e) {\n return e.neutralPalette;\n },\n tone: function(e) {\n return e.isDark ? 20 : 95;\n },\n background: function(e) {\n return i.inverseSurface;\n },\n contrastCurve: new x(4.5, 7, 11, 21)\n });\n i.outline = m.fromPalette({\n name: \"outline\",\n palette: function(e) {\n return e.neutralVariantPalette;\n },\n tone: function(e) {\n return e.isDark ? 60 : 50;\n },\n background: function(e) {\n return i.highestSurface(e);\n },\n contrastCurve: new x(1.5, 3, 4.5, 7)\n });\n i.outlineVariant = m.fromPalette({\n name: \"outline_variant\",\n palette: function(e) {\n return e.neutralVariantPalette;\n },\n tone: function(e) {\n return e.isDark ? 30 : 80;\n },\n background: function(e) {\n return i.highestSurface(e);\n },\n contrastCurve: new x(1, 1, 3, 7)\n });\n i.shadow = m.fromPalette({\n name: \"shadow\",\n palette: function(e) {\n return e.neutralPalette;\n },\n tone: function(e) {\n return 0;\n }\n });\n i.scrim = m.fromPalette({\n name: \"scrim\",\n palette: function(e) {\n return e.neutralPalette;\n },\n tone: function(e) {\n return 0;\n }\n });\n i.surfaceTint = m.fromPalette({\n name: \"surface_tint\",\n palette: function(e) {\n return e.primaryPalette;\n },\n tone: function(e) {\n return e.isDark ? 80 : 40;\n },\n isBackground: !0\n });\n i.primary = m.fromPalette({\n name: \"primary\",\n palette: function(e) {\n return e.primaryPalette;\n },\n tone: function(e) {\n return O(e) ? e.isDark ? 100 : 0 : e.isDark ? 80 : 40;\n },\n isBackground: !0,\n background: function(e) {\n return i.highestSurface(e);\n },\n contrastCurve: new x(3, 4.5, 7, 11),\n toneDeltaPair: function(e) {\n return new j(i.primaryContainer, i.primary, 15, \"nearer\", !1);\n }\n });\n i.onPrimary = m.fromPalette({\n name: \"on_primary\",\n palette: function(e) {\n return e.primaryPalette;\n },\n tone: function(e) {\n return O(e) ? e.isDark ? 10 : 90 : e.isDark ? 20 : 100;\n },\n background: function(e) {\n return i.primary;\n },\n contrastCurve: new x(4.5, 7, 11, 21)\n });\n i.primaryContainer = m.fromPalette({\n name: \"primary_container\",\n palette: function(e) {\n return e.primaryPalette;\n },\n tone: function(e) {\n return et(e) ? Tt(e.sourceColorHct, e) : O(e) ? e.isDark ? 85 : 25 : e.isDark ? 30 : 90;\n },\n isBackground: !0,\n background: function(e) {\n return i.highestSurface(e);\n },\n contrastCurve: new x(1, 1, 3, 7),\n toneDeltaPair: function(e) {\n return new j(i.primaryContainer, i.primary, 15, \"nearer\", !1);\n }\n });\n i.onPrimaryContainer = m.fromPalette({\n name: \"on_primary_container\",\n palette: function(e) {\n return e.primaryPalette;\n },\n tone: function(e) {\n return et(e) ? m.foregroundTone(i.primaryContainer.tone(e), 4.5) : O(e) ? e.isDark ? 0 : 100 : e.isDark ? 90 : 10;\n },\n background: function(e) {\n return i.primaryContainer;\n },\n contrastCurve: new x(4.5, 7, 11, 21)\n });\n i.inversePrimary = m.fromPalette({\n name: \"inverse_primary\",\n palette: function(e) {\n return e.primaryPalette;\n },\n tone: function(e) {\n return e.isDark ? 40 : 80;\n },\n background: function(e) {\n return i.inverseSurface;\n },\n contrastCurve: new x(3, 4.5, 7, 11)\n });\n i.secondary = m.fromPalette({\n name: \"secondary\",\n palette: function(e) {\n return e.secondaryPalette;\n },\n tone: function(e) {\n return e.isDark ? 80 : 40;\n },\n isBackground: !0,\n background: function(e) {\n return i.highestSurface(e);\n },\n contrastCurve: new x(3, 4.5, 7, 11),\n toneDeltaPair: function(e) {\n return new j(i.secondaryContainer, i.secondary, 15, \"nearer\", !1);\n }\n });\n i.onSecondary = m.fromPalette({\n name: \"on_secondary\",\n palette: function(e) {\n return e.secondaryPalette;\n },\n tone: function(e) {\n return O(e) ? e.isDark ? 10 : 100 : e.isDark ? 20 : 100;\n },\n background: function(e) {\n return i.secondary;\n },\n contrastCurve: new x(4.5, 7, 11, 21)\n });\n i.secondaryContainer = m.fromPalette({\n name: \"secondary_container\",\n palette: function(e) {\n return e.secondaryPalette;\n },\n tone: function(e) {\n var t = e.isDark ? 30 : 90;\n if (O(e)) return e.isDark ? 30 : 85;\n if (!et(e)) return t;\n var r = Qt(e.secondaryPalette.hue, e.secondaryPalette.chroma, t, !e.isDark);\n return r = Tt(e.secondaryPalette.getHct(r), e), r;\n },\n isBackground: !0,\n background: function(e) {\n return i.highestSurface(e);\n },\n contrastCurve: new x(1, 1, 3, 7),\n toneDeltaPair: function(e) {\n return new j(i.secondaryContainer, i.secondary, 15, \"nearer\", !1);\n }\n });\n i.onSecondaryContainer = m.fromPalette({\n name: \"on_secondary_container\",\n palette: function(e) {\n return e.secondaryPalette;\n },\n tone: function(e) {\n return et(e) ? m.foregroundTone(i.secondaryContainer.tone(e), 4.5) : e.isDark ? 90 : 10;\n },\n background: function(e) {\n return i.secondaryContainer;\n },\n contrastCurve: new x(4.5, 7, 11, 21)\n });\n i.tertiary = m.fromPalette({\n name: \"tertiary\",\n palette: function(e) {\n return e.tertiaryPalette;\n },\n tone: function(e) {\n return O(e) ? e.isDark ? 90 : 25 : e.isDark ? 80 : 40;\n },\n isBackground: !0,\n background: function(e) {\n return i.highestSurface(e);\n },\n contrastCurve: new x(3, 4.5, 7, 11),\n toneDeltaPair: function(e) {\n return new j(i.tertiaryContainer, i.tertiary, 15, \"nearer\", !1);\n }\n });\n i.onTertiary = m.fromPalette({\n name: \"on_tertiary\",\n palette: function(e) {\n return e.tertiaryPalette;\n },\n tone: function(e) {\n return O(e) ? e.isDark ? 10 : 90 : e.isDark ? 20 : 100;\n },\n background: function(e) {\n return i.tertiary;\n },\n contrastCurve: new x(4.5, 7, 11, 21)\n });\n i.tertiaryContainer = m.fromPalette({\n name: \"tertiary_container\",\n palette: function(e) {\n return e.tertiaryPalette;\n },\n tone: function(e) {\n if (O(e)) return e.isDark ? 60 : 49;\n if (!et(e)) return e.isDark ? 30 : 90;\n var t = Tt(e.tertiaryPalette.getHct(e.sourceColorHct.tone), e), r = e.tertiaryPalette.getHct(t);\n return At.fixIfDisliked(r).tone;\n },\n isBackground: !0,\n background: function(e) {\n return i.highestSurface(e);\n },\n contrastCurve: new x(1, 1, 3, 7),\n toneDeltaPair: function(e) {\n return new j(i.tertiaryContainer, i.tertiary, 15, \"nearer\", !1);\n }\n });\n i.onTertiaryContainer = m.fromPalette({\n name: \"on_tertiary_container\",\n palette: function(e) {\n return e.tertiaryPalette;\n },\n tone: function(e) {\n return O(e) ? e.isDark ? 0 : 100 : et(e) ? m.foregroundTone(i.tertiaryContainer.tone(e), 4.5) : e.isDark ? 90 : 10;\n },\n background: function(e) {\n return i.tertiaryContainer;\n },\n contrastCurve: new x(4.5, 7, 11, 21)\n });\n i.error = m.fromPalette({\n name: \"error\",\n palette: function(e) {\n return e.errorPalette;\n },\n tone: function(e) {\n return e.isDark ? 80 : 40;\n },\n isBackground: !0,\n background: function(e) {\n return i.highestSurface(e);\n },\n contrastCurve: new x(3, 4.5, 7, 11),\n toneDeltaPair: function(e) {\n return new j(i.errorContainer, i.error, 15, \"nearer\", !1);\n }\n });\n i.onError = m.fromPalette({\n name: \"on_error\",\n palette: function(e) {\n return e.errorPalette;\n },\n tone: function(e) {\n return e.isDark ? 20 : 100;\n },\n background: function(e) {\n return i.error;\n },\n contrastCurve: new x(4.5, 7, 11, 21)\n });\n i.errorContainer = m.fromPalette({\n name: \"error_container\",\n palette: function(e) {\n return e.errorPalette;\n },\n tone: function(e) {\n return e.isDark ? 30 : 90;\n },\n isBackground: !0,\n background: function(e) {\n return i.highestSurface(e);\n },\n contrastCurve: new x(1, 1, 3, 7),\n toneDeltaPair: function(e) {\n return new j(i.errorContainer, i.error, 15, \"nearer\", !1);\n }\n });\n i.onErrorContainer = m.fromPalette({\n name: \"on_error_container\",\n palette: function(e) {\n return e.errorPalette;\n },\n tone: function(e) {\n return e.isDark ? 90 : 10;\n },\n background: function(e) {\n return i.errorContainer;\n },\n contrastCurve: new x(4.5, 7, 11, 21)\n });\n i.primaryFixed = m.fromPalette({\n name: \"primary_fixed\",\n palette: function(e) {\n return e.primaryPalette;\n },\n tone: function(e) {\n return O(e) ? 40 : 90;\n },\n isBackground: !0,\n background: function(e) {\n return i.highestSurface(e);\n },\n contrastCurve: new x(1, 1, 3, 7),\n toneDeltaPair: function(e) {\n return new j(i.primaryFixed, i.primaryFixedDim, 10, \"lighter\", !0);\n }\n });\n i.primaryFixedDim = m.fromPalette({\n name: \"primary_fixed_dim\",\n palette: function(e) {\n return e.primaryPalette;\n },\n tone: function(e) {\n return O(e) ? 30 : 80;\n },\n isBackground: !0,\n background: function(e) {\n return i.highestSurface(e);\n },\n contrastCurve: new x(1, 1, 3, 7),\n toneDeltaPair: function(e) {\n return new j(i.primaryFixed, i.primaryFixedDim, 10, \"lighter\", !0);\n }\n });\n i.onPrimaryFixed = m.fromPalette({\n name: \"on_primary_fixed\",\n palette: function(e) {\n return e.primaryPalette;\n },\n tone: function(e) {\n return O(e) ? 100 : 10;\n },\n background: function(e) {\n return i.primaryFixedDim;\n },\n secondBackground: function(e) {\n return i.primaryFixed;\n },\n contrastCurve: new x(4.5, 7, 11, 21)\n });\n i.onPrimaryFixedVariant = m.fromPalette({\n name: \"on_primary_fixed_variant\",\n palette: function(e) {\n return e.primaryPalette;\n },\n tone: function(e) {\n return O(e) ? 90 : 30;\n },\n background: function(e) {\n return i.primaryFixedDim;\n },\n secondBackground: function(e) {\n return i.primaryFixed;\n },\n contrastCurve: new x(3, 4.5, 7, 11)\n });\n i.secondaryFixed = m.fromPalette({\n name: \"secondary_fixed\",\n palette: function(e) {\n return e.secondaryPalette;\n },\n tone: function(e) {\n return O(e) ? 80 : 90;\n },\n isBackground: !0,\n background: function(e) {\n return i.highestSurface(e);\n },\n contrastCurve: new x(1, 1, 3, 7),\n toneDeltaPair: function(e) {\n return new j(i.secondaryFixed, i.secondaryFixedDim, 10, \"lighter\", !0);\n }\n });\n i.secondaryFixedDim = m.fromPalette({\n name: \"secondary_fixed_dim\",\n palette: function(e) {\n return e.secondaryPalette;\n },\n tone: function(e) {\n return O(e) ? 70 : 80;\n },\n isBackground: !0,\n background: function(e) {\n return i.highestSurface(e);\n },\n contrastCurve: new x(1, 1, 3, 7),\n toneDeltaPair: function(e) {\n return new j(i.secondaryFixed, i.secondaryFixedDim, 10, \"lighter\", !0);\n }\n });\n i.onSecondaryFixed = m.fromPalette({\n name: \"on_secondary_fixed\",\n palette: function(e) {\n return e.secondaryPalette;\n },\n tone: function(e) {\n return 10;\n },\n background: function(e) {\n return i.secondaryFixedDim;\n },\n secondBackground: function(e) {\n return i.secondaryFixed;\n },\n contrastCurve: new x(4.5, 7, 11, 21)\n });\n i.onSecondaryFixedVariant = m.fromPalette({\n name: \"on_secondary_fixed_variant\",\n palette: function(e) {\n return e.secondaryPalette;\n },\n tone: function(e) {\n return O(e) ? 25 : 30;\n },\n background: function(e) {\n return i.secondaryFixedDim;\n },\n secondBackground: function(e) {\n return i.secondaryFixed;\n },\n contrastCurve: new x(3, 4.5, 7, 11)\n });\n i.tertiaryFixed = m.fromPalette({\n name: \"tertiary_fixed\",\n palette: function(e) {\n return e.tertiaryPalette;\n },\n tone: function(e) {\n return O(e) ? 40 : 90;\n },\n isBackground: !0,\n background: function(e) {\n return i.highestSurface(e);\n },\n contrastCurve: new x(1, 1, 3, 7),\n toneDeltaPair: function(e) {\n return new j(i.tertiaryFixed, i.tertiaryFixedDim, 10, \"lighter\", !0);\n }\n });\n i.tertiaryFixedDim = m.fromPalette({\n name: \"tertiary_fixed_dim\",\n palette: function(e) {\n return e.tertiaryPalette;\n },\n tone: function(e) {\n return O(e) ? 30 : 80;\n },\n isBackground: !0,\n background: function(e) {\n return i.highestSurface(e);\n },\n contrastCurve: new x(1, 1, 3, 7),\n toneDeltaPair: function(e) {\n return new j(i.tertiaryFixed, i.tertiaryFixedDim, 10, \"lighter\", !0);\n }\n });\n i.onTertiaryFixed = m.fromPalette({\n name: \"on_tertiary_fixed\",\n palette: function(e) {\n return e.tertiaryPalette;\n },\n tone: function(e) {\n return O(e) ? 100 : 10;\n },\n background: function(e) {\n return i.tertiaryFixedDim;\n },\n secondBackground: function(e) {\n return i.tertiaryFixed;\n },\n contrastCurve: new x(4.5, 7, 11, 21)\n });\n i.onTertiaryFixedVariant = m.fromPalette({\n name: \"on_tertiary_fixed_variant\",\n palette: function(e) {\n return e.tertiaryPalette;\n },\n tone: function(e) {\n return O(e) ? 90 : 30;\n },\n background: function(e) {\n return i.tertiaryFixedDim;\n },\n secondBackground: function(e) {\n return i.tertiaryFixed;\n },\n contrastCurve: new x(3, 4.5, 7, 11)\n }); /**\n * @license\n * Copyright 2021 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */ \n var G = /*#__PURE__*/ function() {\n \"use strict\";\n function G(t, r, n) {\n (0, $0c3f79e99c83f58f$export$2996f80ef42b8419)(this, G);\n this.hue = t, this.chroma = r, this.keyColor = n, this.cache = new Map;\n }\n (0, $a27186eefd8c4b26$export$d60067ff2358eee8)(G, [\n {\n key: \"tone\",\n value: function tone(t) {\n var r = this.cache.get(t);\n return r === void 0 && (r = E.from(this.hue, this.chroma, t).toInt(), this.cache.set(t, r)), r;\n }\n },\n {\n key: \"getHct\",\n value: function getHct(t) {\n return E.fromInt(this.tone(t));\n }\n }\n ], [\n {\n key: \"fromInt\",\n value: function fromInt(t) {\n var r = E.fromInt(t);\n return G.fromHct(r);\n }\n },\n {\n key: \"fromHct\",\n value: function fromHct(t) {\n return new G(t.hue, t.chroma, t);\n }\n },\n {\n key: \"fromHueAndChroma\",\n value: function fromHueAndChroma(t, r) {\n return new G(t, r, G.createKeyColor(t, r));\n }\n },\n {\n key: \"createKeyColor\",\n value: function createKeyColor(t, r) {\n var a = E.from(t, r, 50), o = Math.abs(a.chroma - r);\n for(var s = 1; s < 50; s += 1){\n if (Math.round(r) === Math.round(a.chroma)) return a;\n var c = E.from(t, r, 50 + s), u = Math.abs(c.chroma - r);\n u < o && (o = u, a = c);\n var h = E.from(t, r, 50 - s), l = Math.abs(h.chroma - r);\n l < o && (o = l, a = h);\n }\n return a;\n }\n }\n ]);\n return G;\n } /**\n * @license\n * Copyright 2021 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */ ();\n var S = /*#__PURE__*/ function() {\n \"use strict\";\n function S(t, r) {\n (0, $0c3f79e99c83f58f$export$2996f80ef42b8419)(this, S);\n var n = E.fromInt(t), a = n.hue, o = n.chroma;\n r ? (this.a1 = G.fromHueAndChroma(a, o), this.a2 = G.fromHueAndChroma(a, o / 3), this.a3 = G.fromHueAndChroma(a + 60, o / 2), this.n1 = G.fromHueAndChroma(a, Math.min(o / 12, 4)), this.n2 = G.fromHueAndChroma(a, Math.min(o / 6, 8))) : (this.a1 = G.fromHueAndChroma(a, Math.max(48, o)), this.a2 = G.fromHueAndChroma(a, 16), this.a3 = G.fromHueAndChroma(a + 60, 24), this.n1 = G.fromHueAndChroma(a, 4), this.n2 = G.fromHueAndChroma(a, 8)), this.error = G.fromHueAndChroma(25, 84);\n }\n (0, $a27186eefd8c4b26$export$d60067ff2358eee8)(S, null, [\n {\n key: \"of\",\n value: function of(t) {\n return new S(t, !1);\n }\n },\n {\n key: \"contentOf\",\n value: function contentOf(t) {\n return new S(t, !0);\n }\n },\n {\n key: \"fromColors\",\n value: function fromColors(t) {\n return S.createPaletteFromColors(!1, t);\n }\n },\n {\n key: \"contentFromColors\",\n value: function contentFromColors(t) {\n return S.createPaletteFromColors(!0, t);\n }\n },\n {\n key: \"createPaletteFromColors\",\n value: function createPaletteFromColors(t, r) {\n var n = new S(r.primary, t);\n if (r.secondary) {\n var a = new S(r.secondary, t);\n n.a2 = a.a1;\n }\n if (r.tertiary) {\n var a1 = new S(r.tertiary, t);\n n.a3 = a1.a1;\n }\n if (r.error) {\n var a2 = new S(r.error, t);\n n.error = a2.a1;\n }\n if (r.neutral) {\n var a3 = new S(r.neutral, t);\n n.n1 = a3.n1;\n }\n if (r.neutralVariant) {\n var a4 = new S(r.neutralVariant, t);\n n.n2 = a4.n2;\n }\n return n;\n }\n }\n ]);\n return S;\n } /**\n * @license\n * Copyright 2021 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */ ();\n var te = /*#__PURE__*/ function() {\n \"use strict\";\n function te() {\n (0, $0c3f79e99c83f58f$export$2996f80ef42b8419)(this, te);\n }\n (0, $a27186eefd8c4b26$export$d60067ff2358eee8)(te, [\n {\n key: \"fromInt\",\n value: function fromInt(t) {\n return Xt(t);\n }\n },\n {\n key: \"toInt\",\n value: function toInt(t) {\n return Jt(t[0], t[1], t[2]);\n }\n },\n {\n key: \"distance\",\n value: function distance(t, r) {\n var n = t[0] - r[0], a = t[1] - r[1], o = t[2] - r[2];\n return n * n + a * a + o * o;\n }\n }\n ]);\n return te;\n } /**\n * @license\n * Copyright 2021 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */ ();\n var ee = 10, re = 3;\n var ne = /*#__PURE__*/ function() {\n \"use strict\";\n function ne() {\n (0, $0c3f79e99c83f58f$export$2996f80ef42b8419)(this, ne);\n }\n (0, $a27186eefd8c4b26$export$d60067ff2358eee8)(ne, null, [\n {\n key: \"quantize\",\n value: function quantize(t, r, n) {\n var a = new Map, o = new Array, s = new Array, c = new te;\n var u = 0;\n for(var y = 0; y < t.length; y++){\n var k = t[y], A = a.get(k);\n A === void 0 ? (u++, o.push(c.fromInt(k)), s.push(k), a.set(k, 1)) : a.set(k, A + 1);\n }\n var h = new Array;\n for(var y1 = 0; y1 < u; y1++){\n var k1 = s[y1], A1 = a.get(k1);\n A1 !== void 0 && (h[y1] = A1);\n }\n var l = Math.min(n, u);\n r.length > 0 && (l = Math.min(l, r.length));\n var d = new Array;\n for(var y2 = 0; y2 < r.length; y2++)d.push(c.fromInt(r[y2]));\n var p = l - d.length;\n if (r.length === 0 && p > 0) for(var y3 = 0; y3 < p; y3++){\n var k2 = Math.random() * 100, A2 = Math.random() * 201 + -100, D = Math.random() * 201 + -100;\n d.push(new Array(k2, A2, D));\n }\n var f = new Array;\n for(var y4 = 0; y4 < u; y4++)f.push(Math.floor(Math.random() * l));\n var M = new Array;\n for(var y5 = 0; y5 < l; y5++){\n M.push(new Array);\n for(var k3 = 0; k3 < l; k3++)M[y5].push(0);\n }\n var g = new Array;\n for(var y6 = 0; y6 < l; y6++){\n g.push(new Array);\n for(var k4 = 0; k4 < l; k4++)g[y6].push(new ae);\n }\n var b = new Array;\n for(var y7 = 0; y7 < l; y7++)b.push(0);\n for(var y8 = 0; y8 < ee; y8++){\n for(var P = 0; P < l; P++){\n for(var I = P + 1; I < l; I++){\n var B = c.distance(d[P], d[I]);\n g[I][P].distance = B, g[I][P].index = P, g[P][I].distance = B, g[P][I].index = I;\n }\n g[P].sort();\n for(var I1 = 0; I1 < l; I1++)M[P][I1] = g[P][I1].index;\n }\n var k5 = 0;\n for(var P1 = 0; P1 < u; P1++){\n var I2 = o[P1], B1 = f[P1], T = d[B1], V = c.distance(I2, T);\n var Y = V, U = -1;\n for(var L = 0; L < l; L++){\n if (g[B1][L].distance >= 4 * V) continue;\n var Z = c.distance(I2, d[L]);\n Z < Y && (Y = Z, U = L);\n }\n U !== -1 && Math.abs(Math.sqrt(Y) - Math.sqrt(V)) > re && (k5++, f[P1] = U);\n }\n if (k5 === 0 && y8 !== 0) break;\n var A3 = new Array(l).fill(0), D1 = new Array(l).fill(0), R = new Array(l).fill(0);\n for(var P2 = 0; P2 < l; P2++)b[P2] = 0;\n for(var P3 = 0; P3 < u; P3++){\n var I3 = f[P3], B2 = o[P3], T1 = h[P3];\n b[I3] += T1, A3[I3] += B2[0] * T1, D1[I3] += B2[1] * T1, R[I3] += B2[2] * T1;\n }\n for(var P4 = 0; P4 < l; P4++){\n var I4 = b[P4];\n if (I4 === 0) {\n d[P4] = [\n 0,\n 0,\n 0\n ];\n continue;\n }\n var B3 = A3[P4] / I4, T2 = D1[P4] / I4, V1 = R[P4] / I4;\n d[P4] = [\n B3,\n T2,\n V1\n ];\n }\n }\n var w = new Map;\n for(var y9 = 0; y9 < l; y9++){\n var k6 = b[y9];\n if (k6 === 0) continue;\n var A4 = c.toInt(d[y9]);\n w.has(A4) || w.set(A4, k6);\n }\n return w;\n }\n }\n ]);\n return ne;\n }();\n var ae = function ae() {\n \"use strict\";\n (0, $0c3f79e99c83f58f$export$2996f80ef42b8419)(this, ae);\n this.distance = -1, this.index = -1;\n } /**\n * @license\n * Copyright 2021 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */ ;\n var oe = /*#__PURE__*/ function() {\n \"use strict\";\n function oe() {\n (0, $0c3f79e99c83f58f$export$2996f80ef42b8419)(this, oe);\n }\n (0, $a27186eefd8c4b26$export$d60067ff2358eee8)(oe, null, [\n {\n key: \"quantize\",\n value: function quantize(t) {\n var r = new Map;\n for(var n = 0; n < t.length; n++){\n var a = t[n];\n var _r_get;\n Wt(a) < 255 || r.set(a, ((_r_get = r.get(a)) !== null && _r_get !== void 0 ? _r_get : 0) + 1);\n }\n return r;\n }\n }\n ]);\n return oe;\n } /**\n * @license\n * Copyright 2021 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */ ();\n var lt = 5, W = 33, rt = 35937, _ = {\n RED: \"red\",\n GREEN: \"green\",\n BLUE: \"blue\"\n };\n var se = /*#__PURE__*/ function() {\n \"use strict\";\n function se() {\n var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [], n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : [], a = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : [], o = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : [], s = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : [];\n (0, $0c3f79e99c83f58f$export$2996f80ef42b8419)(this, se);\n this.weights = t, this.momentsR = r, this.momentsG = n, this.momentsB = a, this.moments = o, this.cubes = s;\n }\n (0, $a27186eefd8c4b26$export$d60067ff2358eee8)(se, [\n {\n key: \"quantize\",\n value: function quantize(t, r) {\n this.constructHistogram(t), this.computeMoments();\n var n = this.createBoxes(r);\n return this.createResult(n.resultCount);\n }\n },\n {\n key: \"constructHistogram\",\n value: function constructHistogram(t) {\n this.weights = Array.from({\n length: rt\n }).fill(0), this.momentsR = Array.from({\n length: rt\n }).fill(0), this.momentsG = Array.from({\n length: rt\n }).fill(0), this.momentsB = Array.from({\n length: rt\n }).fill(0), this.moments = Array.from({\n length: rt\n }).fill(0);\n var r = oe.quantize(t);\n var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;\n try {\n for(var _iterator = r.entries()[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){\n var _step_value = (0, $6e952d66071d1a0a$export$fdf2a89c76341bbf)(_step.value, 2), n = _step_value[0], a = _step_value[1];\n var o = dt(n), s = mt(n), c = gt(n), u = 8 - lt, h = (o >> u) + 1, l = (s >> u) + 1, d = (c >> u) + 1, p = this.getIndex(h, l, d);\n var _this_weights_p;\n this.weights[p] = ((_this_weights_p = this.weights[p]) !== null && _this_weights_p !== void 0 ? _this_weights_p : 0) + a, this.momentsR[p] += a * o, this.momentsG[p] += a * s, this.momentsB[p] += a * c, this.moments[p] += a * (o * o + s * s + c * c);\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally{\n try {\n if (!_iteratorNormalCompletion && _iterator.return != null) {\n _iterator.return();\n }\n } finally{\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n }\n },\n {\n key: \"computeMoments\",\n value: function computeMoments() {\n for(var t = 1; t < W; t++){\n var r = Array.from({\n length: W\n }).fill(0), n = Array.from({\n length: W\n }).fill(0), a = Array.from({\n length: W\n }).fill(0), o = Array.from({\n length: W\n }).fill(0), s = Array.from({\n length: W\n }).fill(0);\n for(var c = 1; c < W; c++){\n var u = 0, h = 0, l = 0, d = 0, p = 0;\n for(var f = 1; f < W; f++){\n var M = this.getIndex(t, c, f);\n u += this.weights[M], h += this.momentsR[M], l += this.momentsG[M], d += this.momentsB[M], p += this.moments[M], r[f] += u, n[f] += h, a[f] += l, o[f] += d, s[f] += p;\n var g = this.getIndex(t - 1, c, f);\n this.weights[M] = this.weights[g] + r[f], this.momentsR[M] = this.momentsR[g] + n[f], this.momentsG[M] = this.momentsG[g] + a[f], this.momentsB[M] = this.momentsB[g] + o[f], this.moments[M] = this.moments[g] + s[f];\n }\n }\n }\n }\n },\n {\n key: \"createBoxes\",\n value: function createBoxes(t) {\n this.cubes = Array.from({\n length: t\n }).fill(0).map(function() {\n return new ie;\n });\n var r = Array.from({\n length: t\n }).fill(0);\n this.cubes[0].r0 = 0, this.cubes[0].g0 = 0, this.cubes[0].b0 = 0, this.cubes[0].r1 = W - 1, this.cubes[0].g1 = W - 1, this.cubes[0].b1 = W - 1;\n var n = t, a = 0;\n for(var o = 1; o < t; o++){\n this.cut(this.cubes[a], this.cubes[o]) ? (r[a] = this.cubes[a].vol > 1 ? this.variance(this.cubes[a]) : 0, r[o] = this.cubes[o].vol > 1 ? this.variance(this.cubes[o]) : 0) : (r[a] = 0, o--), a = 0;\n var s = r[0];\n for(var c = 1; c <= o; c++)r[c] > s && (s = r[c], a = c);\n if (s <= 0) {\n n = o + 1;\n break;\n }\n }\n return new ce(t, n);\n }\n },\n {\n key: \"createResult\",\n value: function createResult(t) {\n var r = [];\n for(var n = 0; n < t; ++n){\n var a = this.cubes[n], o = this.volume(a, this.weights);\n if (o > 0) {\n var s = Math.round(this.volume(a, this.momentsR) / o), c = Math.round(this.volume(a, this.momentsG) / o), u = Math.round(this.volume(a, this.momentsB) / o), h = -16777216 | (s & 255) << 16 | (c & 255) << 8 | u & 255;\n r.push(h);\n }\n }\n return r;\n }\n },\n {\n key: \"variance\",\n value: function variance(t) {\n var r = this.volume(t, this.momentsR), n = this.volume(t, this.momentsG), a = this.volume(t, this.momentsB), o = this.moments[this.getIndex(t.r1, t.g1, t.b1)] - this.moments[this.getIndex(t.r1, t.g1, t.b0)] - this.moments[this.getIndex(t.r1, t.g0, t.b1)] + this.moments[this.getIndex(t.r1, t.g0, t.b0)] - this.moments[this.getIndex(t.r0, t.g1, t.b1)] + this.moments[this.getIndex(t.r0, t.g1, t.b0)] + this.moments[this.getIndex(t.r0, t.g0, t.b1)] - this.moments[this.getIndex(t.r0, t.g0, t.b0)], s = r * r + n * n + a * a, c = this.volume(t, this.weights);\n return o - s / c;\n }\n },\n {\n key: \"cut\",\n value: function cut(t, r) {\n var n = this.volume(t, this.momentsR), a = this.volume(t, this.momentsG), o = this.volume(t, this.momentsB), s = this.volume(t, this.weights), c = this.maximize(t, _.RED, t.r0 + 1, t.r1, n, a, o, s), u = this.maximize(t, _.GREEN, t.g0 + 1, t.g1, n, a, o, s), h = this.maximize(t, _.BLUE, t.b0 + 1, t.b1, n, a, o, s);\n var l;\n var d = c.maximum, p = u.maximum, f = h.maximum;\n if (d >= p && d >= f) {\n if (c.cutLocation < 0) return !1;\n l = _.RED;\n } else p >= d && p >= f ? l = _.GREEN : l = _.BLUE;\n switch(r.r1 = t.r1, r.g1 = t.g1, r.b1 = t.b1, l){\n case _.RED:\n t.r1 = c.cutLocation, r.r0 = t.r1, r.g0 = t.g0, r.b0 = t.b0;\n break;\n case _.GREEN:\n t.g1 = u.cutLocation, r.r0 = t.r0, r.g0 = t.g1, r.b0 = t.b0;\n break;\n case _.BLUE:\n t.b1 = h.cutLocation, r.r0 = t.r0, r.g0 = t.g0, r.b0 = t.b1;\n break;\n default:\n throw new Error(\"unexpected direction \" + l);\n }\n return t.vol = (t.r1 - t.r0) * (t.g1 - t.g0) * (t.b1 - t.b0), r.vol = (r.r1 - r.r0) * (r.g1 - r.g0) * (r.b1 - r.b0), !0;\n }\n },\n {\n key: \"maximize\",\n value: function maximize(t, r, n, a, o, s, c, u) {\n var h = this.bottom(t, r, this.momentsR), l = this.bottom(t, r, this.momentsG), d = this.bottom(t, r, this.momentsB), p = this.bottom(t, r, this.weights);\n var f = 0, M = -1, g = 0, b = 0, w = 0, y = 0;\n for(var k = n; k < a; k++){\n if (g = h + this.top(t, r, k, this.momentsR), b = l + this.top(t, r, k, this.momentsG), w = d + this.top(t, r, k, this.momentsB), y = p + this.top(t, r, k, this.weights), y === 0) continue;\n var A = (g * g + b * b + w * w) * 1, D = y * 1, R = A / D;\n g = o - g, b = s - b, w = c - w, y = u - y, y !== 0 && (A = (g * g + b * b + w * w) * 1, D = y * 1, R += A / D, R > f && (f = R, M = k));\n }\n return new le(M, f);\n }\n },\n {\n key: \"volume\",\n value: function volume(t, r) {\n return r[this.getIndex(t.r1, t.g1, t.b1)] - r[this.getIndex(t.r1, t.g1, t.b0)] - r[this.getIndex(t.r1, t.g0, t.b1)] + r[this.getIndex(t.r1, t.g0, t.b0)] - r[this.getIndex(t.r0, t.g1, t.b1)] + r[this.getIndex(t.r0, t.g1, t.b0)] + r[this.getIndex(t.r0, t.g0, t.b1)] - r[this.getIndex(t.r0, t.g0, t.b0)];\n }\n },\n {\n key: \"bottom\",\n value: function bottom(t, r, n) {\n switch(r){\n case _.RED:\n return -n[this.getIndex(t.r0, t.g1, t.b1)] + n[this.getIndex(t.r0, t.g1, t.b0)] + n[this.getIndex(t.r0, t.g0, t.b1)] - n[this.getIndex(t.r0, t.g0, t.b0)];\n case _.GREEN:\n return -n[this.getIndex(t.r1, t.g0, t.b1)] + n[this.getIndex(t.r1, t.g0, t.b0)] + n[this.getIndex(t.r0, t.g0, t.b1)] - n[this.getIndex(t.r0, t.g0, t.b0)];\n case _.BLUE:\n return -n[this.getIndex(t.r1, t.g1, t.b0)] + n[this.getIndex(t.r1, t.g0, t.b0)] + n[this.getIndex(t.r0, t.g1, t.b0)] - n[this.getIndex(t.r0, t.g0, t.b0)];\n default:\n throw new Error(\"unexpected direction $direction\");\n }\n }\n },\n {\n key: \"top\",\n value: function top(t, r, n, a) {\n switch(r){\n case _.RED:\n return a[this.getIndex(n, t.g1, t.b1)] - a[this.getIndex(n, t.g1, t.b0)] - a[this.getIndex(n, t.g0, t.b1)] + a[this.getIndex(n, t.g0, t.b0)];\n case _.GREEN:\n return a[this.getIndex(t.r1, n, t.b1)] - a[this.getIndex(t.r1, n, t.b0)] - a[this.getIndex(t.r0, n, t.b1)] + a[this.getIndex(t.r0, n, t.b0)];\n case _.BLUE:\n return a[this.getIndex(t.r1, t.g1, n)] - a[this.getIndex(t.r1, t.g0, n)] - a[this.getIndex(t.r0, t.g1, n)] + a[this.getIndex(t.r0, t.g0, n)];\n default:\n throw new Error(\"unexpected direction $direction\");\n }\n }\n },\n {\n key: \"getIndex\",\n value: function getIndex(t, r, n) {\n return (t << lt * 2) + (t << lt + 1) + t + (r << lt) + r + n;\n }\n }\n ]);\n return se;\n }();\n var ie = function ie() {\n \"use strict\";\n var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 0, a = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : 0, o = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : 0, s = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : 0, c = arguments.length > 6 && arguments[6] !== void 0 ? arguments[6] : 0;\n (0, $0c3f79e99c83f58f$export$2996f80ef42b8419)(this, ie);\n this.r0 = t, this.r1 = r, this.g0 = n, this.g1 = a, this.b0 = o, this.b1 = s, this.vol = c;\n };\n var ce = function ce(t, r) {\n \"use strict\";\n (0, $0c3f79e99c83f58f$export$2996f80ef42b8419)(this, ce);\n this.requestedCount = t, this.resultCount = r;\n };\n var le = function le(t, r) {\n \"use strict\";\n (0, $0c3f79e99c83f58f$export$2996f80ef42b8419)(this, le);\n this.cutLocation = t, this.maximum = r;\n } /**\n * @license\n * Copyright 2021 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */ ;\n var ue = /*#__PURE__*/ function() {\n \"use strict\";\n function ue() {\n (0, $0c3f79e99c83f58f$export$2996f80ef42b8419)(this, ue);\n }\n (0, $a27186eefd8c4b26$export$d60067ff2358eee8)(ue, null, [\n {\n key: \"quantize\",\n value: function quantize(t, r) {\n var a = new se().quantize(t, r);\n return ne.quantize(t, a, r);\n }\n }\n ]);\n return ue;\n } /**\n * @license\n * Copyright 2021 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */ ();\n var X = /*#__PURE__*/ function() {\n \"use strict\";\n function X(t) {\n (0, $0c3f79e99c83f58f$export$2996f80ef42b8419)(this, X);\n this.props = t;\n }\n (0, $a27186eefd8c4b26$export$d60067ff2358eee8)(X, [\n {\n key: \"primary\",\n get: function get() {\n return this.props.primary;\n }\n },\n {\n key: \"onPrimary\",\n get: function get() {\n return this.props.onPrimary;\n }\n },\n {\n key: \"primaryContainer\",\n get: function get() {\n return this.props.primaryContainer;\n }\n },\n {\n key: \"onPrimaryContainer\",\n get: function get() {\n return this.props.onPrimaryContainer;\n }\n },\n {\n key: \"secondary\",\n get: function get() {\n return this.props.secondary;\n }\n },\n {\n key: \"onSecondary\",\n get: function get() {\n return this.props.onSecondary;\n }\n },\n {\n key: \"secondaryContainer\",\n get: function get() {\n return this.props.secondaryContainer;\n }\n },\n {\n key: \"onSecondaryContainer\",\n get: function get() {\n return this.props.onSecondaryContainer;\n }\n },\n {\n key: \"tertiary\",\n get: function get() {\n return this.props.tertiary;\n }\n },\n {\n key: \"onTertiary\",\n get: function get() {\n return this.props.onTertiary;\n }\n },\n {\n key: \"tertiaryContainer\",\n get: function get() {\n return this.props.tertiaryContainer;\n }\n },\n {\n key: \"onTertiaryContainer\",\n get: function get() {\n return this.props.onTertiaryContainer;\n }\n },\n {\n key: \"error\",\n get: function get() {\n return this.props.error;\n }\n },\n {\n key: \"onError\",\n get: function get() {\n return this.props.onError;\n }\n },\n {\n key: \"errorContainer\",\n get: function get() {\n return this.props.errorContainer;\n }\n },\n {\n key: \"onErrorContainer\",\n get: function get() {\n return this.props.onErrorContainer;\n }\n },\n {\n key: \"background\",\n get: function get() {\n return this.props.background;\n }\n },\n {\n key: \"onBackground\",\n get: function get() {\n return this.props.onBackground;\n }\n },\n {\n key: \"surface\",\n get: function get() {\n return this.props.surface;\n }\n },\n {\n key: \"onSurface\",\n get: function get() {\n return this.props.onSurface;\n }\n },\n {\n key: \"surfaceVariant\",\n get: function get() {\n return this.props.surfaceVariant;\n }\n },\n {\n key: \"onSurfaceVariant\",\n get: function get() {\n return this.props.onSurfaceVariant;\n }\n },\n {\n key: \"outline\",\n get: function get() {\n return this.props.outline;\n }\n },\n {\n key: \"outlineVariant\",\n get: function get() {\n return this.props.outlineVariant;\n }\n },\n {\n key: \"shadow\",\n get: function get() {\n return this.props.shadow;\n }\n },\n {\n key: \"scrim\",\n get: function get() {\n return this.props.scrim;\n }\n },\n {\n key: \"inverseSurface\",\n get: function get() {\n return this.props.inverseSurface;\n }\n },\n {\n key: \"inverseOnSurface\",\n get: function get() {\n return this.props.inverseOnSurface;\n }\n },\n {\n key: \"inversePrimary\",\n get: function get() {\n return this.props.inversePrimary;\n }\n },\n {\n key: \"toJSON\",\n value: function toJSON() {\n return (0, $187b8475682b19ca$export$581ff339ea0ba762)({}, this.props);\n }\n }\n ], [\n {\n key: \"light\",\n value: function light(t) {\n return X.lightFromCorePalette(S.of(t));\n }\n },\n {\n key: \"dark\",\n value: function dark(t) {\n return X.darkFromCorePalette(S.of(t));\n }\n },\n {\n key: \"lightContent\",\n value: function lightContent(t) {\n return X.lightFromCorePalette(S.contentOf(t));\n }\n },\n {\n key: \"darkContent\",\n value: function darkContent(t) {\n return X.darkFromCorePalette(S.contentOf(t));\n }\n },\n {\n key: \"lightFromCorePalette\",\n value: function lightFromCorePalette(t) {\n return new X({\n primary: t.a1.tone(40),\n onPrimary: t.a1.tone(100),\n primaryContainer: t.a1.tone(90),\n onPrimaryContainer: t.a1.tone(10),\n secondary: t.a2.tone(40),\n onSecondary: t.a2.tone(100),\n secondaryContainer: t.a2.tone(90),\n onSecondaryContainer: t.a2.tone(10),\n tertiary: t.a3.tone(40),\n onTertiary: t.a3.tone(100),\n tertiaryContainer: t.a3.tone(90),\n onTertiaryContainer: t.a3.tone(10),\n error: t.error.tone(40),\n onError: t.error.tone(100),\n errorContainer: t.error.tone(90),\n onErrorContainer: t.error.tone(10),\n background: t.n1.tone(99),\n onBackground: t.n1.tone(10),\n surface: t.n1.tone(99),\n onSurface: t.n1.tone(10),\n surfaceVariant: t.n2.tone(90),\n onSurfaceVariant: t.n2.tone(30),\n outline: t.n2.tone(50),\n outlineVariant: t.n2.tone(80),\n shadow: t.n1.tone(0),\n scrim: t.n1.tone(0),\n inverseSurface: t.n1.tone(20),\n inverseOnSurface: t.n1.tone(95),\n inversePrimary: t.a1.tone(80)\n });\n }\n },\n {\n key: \"darkFromCorePalette\",\n value: function darkFromCorePalette(t) {\n return new X({\n primary: t.a1.tone(80),\n onPrimary: t.a1.tone(20),\n primaryContainer: t.a1.tone(30),\n onPrimaryContainer: t.a1.tone(90),\n secondary: t.a2.tone(80),\n onSecondary: t.a2.tone(20),\n secondaryContainer: t.a2.tone(30),\n onSecondaryContainer: t.a2.tone(90),\n tertiary: t.a3.tone(80),\n onTertiary: t.a3.tone(20),\n tertiaryContainer: t.a3.tone(30),\n onTertiaryContainer: t.a3.tone(90),\n error: t.error.tone(80),\n onError: t.error.tone(20),\n errorContainer: t.error.tone(30),\n onErrorContainer: t.error.tone(80),\n background: t.n1.tone(10),\n onBackground: t.n1.tone(90),\n surface: t.n1.tone(10),\n onSurface: t.n1.tone(90),\n surfaceVariant: t.n2.tone(30),\n onSurfaceVariant: t.n2.tone(80),\n outline: t.n2.tone(60),\n outlineVariant: t.n2.tone(30),\n shadow: t.n1.tone(0),\n scrim: t.n1.tone(0),\n inverseSurface: t.n1.tone(90),\n inverseOnSurface: t.n1.tone(20),\n inversePrimary: t.a1.tone(40)\n });\n }\n }\n ]);\n return X;\n } /**\n * @license\n * Copyright 2021 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */ ();\n var he = {\n desired: 4,\n fallbackColorARGB: 4282549748,\n filter: !0\n };\n var H = /*#__PURE__*/ function() {\n \"use strict\";\n function H() {\n (0, $0c3f79e99c83f58f$export$2996f80ef42b8419)(this, H);\n }\n (0, $a27186eefd8c4b26$export$d60067ff2358eee8)(H, null, [\n {\n key: \"score\",\n value: function score(t, r) {\n var _loop = function(f3) {\n d.length = 0;\n var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;\n try {\n var _loop = function() {\n var _step_value = _step.value, M = _step_value.hct;\n if (d.find(function(b) {\n return Nt(M.hue, b.hue) < f3;\n }) || d.push(M), d.length >= n) return \"break\";\n };\n for(var _iterator = l[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){\n var _ret = _loop();\n if (_ret === \"break\") break;\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally{\n try {\n if (!_iteratorNormalCompletion && _iterator.return != null) {\n _iterator.return();\n }\n } finally{\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n if (d.length >= n) return \"break\";\n };\n var _$_object_spread = (0, $187b8475682b19ca$export$581ff339ea0ba762)({}, he, r), n = _$_object_spread.desired, a = _$_object_spread.fallbackColorARGB, o = _$_object_spread.filter, s = [], c = new Array(360).fill(0);\n var u = 0;\n var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;\n try {\n for(var _iterator = t.entries()[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){\n var _step_value = (0, $6e952d66071d1a0a$export$fdf2a89c76341bbf)(_step.value, 2), f = _step_value[0], M = _step_value[1];\n var g = E.fromInt(f);\n s.push(g);\n var b = Math.floor(g.hue);\n c[b] += M, u += M;\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally{\n try {\n if (!_iteratorNormalCompletion && _iterator.return != null) {\n _iterator.return();\n }\n } finally{\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n var h = new Array(360).fill(0);\n for(var f1 = 0; f1 < 360; f1++){\n var M1 = c[f1] / u;\n for(var g1 = f1 - 14; g1 < f1 + 16; g1++){\n var b1 = Ot(g1);\n h[b1] += M1;\n }\n }\n var l = new Array;\n var _iteratorNormalCompletion1 = true, _didIteratorError1 = false, _iteratorError1 = undefined;\n try {\n for(var _iterator1 = s[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true){\n var f2 = _step1.value;\n var M2 = Ot(Math.round(f2.hue)), g2 = h[M2];\n if (o && (f2.chroma < H.CUTOFF_CHROMA || g2 <= H.CUTOFF_EXCITED_PROPORTION)) continue;\n var b2 = g2 * 100 * H.WEIGHT_PROPORTION, w = f2.chroma < H.TARGET_CHROMA ? H.WEIGHT_CHROMA_BELOW : H.WEIGHT_CHROMA_ABOVE, y = (f2.chroma - H.TARGET_CHROMA) * w, k = b2 + y;\n l.push({\n hct: f2,\n score: k\n });\n }\n } catch (err) {\n _didIteratorError1 = true;\n _iteratorError1 = err;\n } finally{\n try {\n if (!_iteratorNormalCompletion1 && _iterator1.return != null) {\n _iterator1.return();\n }\n } finally{\n if (_didIteratorError1) {\n throw _iteratorError1;\n }\n }\n }\n l.sort(fe);\n var d = [];\n for(var f3 = 90; f3 >= 15; f3--){\n var _ret = _loop(f3);\n if (_ret === \"break\") break;\n }\n var p = [];\n d.length === 0 && p.push(a);\n var _iteratorNormalCompletion2 = true, _didIteratorError2 = false, _iteratorError2 = undefined;\n try {\n for(var _iterator2 = d[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true){\n var f4 = _step2.value;\n p.push(f4.toInt());\n }\n } catch (err) {\n _didIteratorError2 = true;\n _iteratorError2 = err;\n } finally{\n try {\n if (!_iteratorNormalCompletion2 && _iterator2.return != null) {\n _iterator2.return();\n }\n } finally{\n if (_didIteratorError2) {\n throw _iteratorError2;\n }\n }\n }\n return p;\n }\n }\n ]);\n return H;\n }();\n H.TARGET_CHROMA = 48;\n H.WEIGHT_PROPORTION = .7;\n H.WEIGHT_CHROMA_ABOVE = .3;\n H.WEIGHT_CHROMA_BELOW = .1;\n H.CUTOFF_CHROMA = 5;\n H.CUTOFF_EXCITED_PROPORTION = .01; /**\n * @license\n * Copyright 2021 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */ \n function _me() {\n _me = (0, $9167c88d5d99601b$export$7c398597f8905a1)(function(e) {\n var t, r, s, c, u, h, d, n;\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n switch(_state.label){\n case 0:\n return [\n 4,\n new Promise(function(s, c) {\n var u = document.createElement(\"canvas\"), h = u.getContext(\"2d\");\n if (!h) {\n c(new Error(\"Could not get canvas context\"));\n return;\n }\n var l = function() {\n u.width = e.width, u.height = e.height, h.drawImage(e, 0, 0);\n var d = [\n 0,\n 0,\n e.width,\n e.height\n ];\n var p = e.dataset.area;\n p && /^\\d+(\\s*,\\s*\\d+){3}$/.test(p) && (d = p.split(/\\s*,\\s*/).map(function(w) {\n return parseInt(w, 10);\n }));\n var _d = (0, $6e952d66071d1a0a$export$fdf2a89c76341bbf)(d, 4), f = _d[0], M = _d[1], g = _d[2], b = _d[3];\n s(h.getImageData(f, M, g, b).data);\n };\n e.complete ? l() : e.onload = l;\n })\n ];\n case 1:\n t = _state.sent(), r = [];\n for(s = 0; s < t.length; s += 4){\n c = t[s], u = t[s + 1], h = t[s + 2];\n if (t[s + 3] < 255) continue;\n d = ft(c, u, h);\n r.push(d);\n }\n n = ue.quantize(r, 128);\n return [\n 2,\n H.score(n)[0]\n ];\n }\n });\n } /**\n * @license\n * Copyright 2021 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */ );\n return _me.apply(this, arguments);\n }\n function _Lt() {\n _Lt = (0, $9167c88d5d99601b$export$7c398597f8905a1)(function(e) {\n var t, r;\n var _arguments = arguments;\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n switch(_state.label){\n case 0:\n t = _arguments.length > 1 && _arguments[1] !== void 0 ? _arguments[1] : [];\n return [\n 4,\n me(e)\n ];\n case 1:\n r = _state.sent();\n return [\n 2,\n Gt(r, t)\n ];\n }\n });\n });\n return _Lt.apply(this, arguments);\n }\n function _pe() {\n _pe = (0, $9167c88d5d99601b$export$7c398597f8905a1)(function(e) {\n var t, r, s, s1, n, _tmp, a, o, e1;\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n switch(_state.label){\n case 0:\n t = e, r = {\n light: {},\n dark: {}\n };\n _state.label = 1;\n case 1:\n _state.trys.push([\n 1,\n 7,\n ,\n 8\n ]);\n if (typeof t == \"string\" && /^\\#[0-9a-f]+$/i.test(t)) {\n s = Gt(de(t));\n return [\n 2,\n Pt(s)\n ];\n }\n if (!t.src) return [\n 3,\n 3\n ];\n return [\n 4,\n Lt(t)\n ];\n case 2:\n s1 = _state.sent();\n return [\n 2,\n Pt(s1)\n ];\n case 3:\n n = new Blob;\n _tmp = typeof t == \"string\";\n if (!_tmp) return [\n 3,\n 5\n ];\n return [\n 4,\n fetch(t).then(function(s) {\n return s.blob();\n })\n ];\n case 4:\n _tmp = n = _state.sent();\n _state.label = 5;\n case 5:\n if (_tmp, t.size && (n = t), t.files && t.files[0] && (n = t.files[0]), t.target && t.target.files && t.target.files[0] && (n = t.target.files[0]), !n.size) return [\n 2,\n r\n ];\n a = new Image(64);\n a.src = URL.createObjectURL(n);\n return [\n 4,\n Lt(a)\n ];\n case 6:\n o = _state.sent();\n return [\n 2,\n Pt(o)\n ];\n case 7:\n e1 = _state.sent();\n return [\n 2,\n r\n ];\n case 8:\n return [\n 2\n ];\n }\n });\n });\n return _pe.apply(this, arguments);\n }\n globalThis.materialDynamicColors = pe;\n return globalThis.materialDynamicColors;\n}();\n\n\nvar $ea0624ce22c827b7$export$2e2bcd8739ae039 = (0, $55f93f5790aed094$export$2e2bcd8739ae039);\n\n\n\n\n\n\n\nfunction $63e0e037142f7533$export$7e0947b5ad3404e2(arr) {\n if (Array.isArray(arr)) return (0, $47241cfb346e7aa2$export$79e617b1955a2616)(arr);\n}\n\n\nfunction $c82e6a0b190ff4c5$export$1eb58a6e75231000(iter) {\n if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter);\n}\n\n\nfunction $747f811965b2b76e$export$e6f3c4780d19eb2b() {\n throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\n\n\n\nfunction $a279000f7ad0c22a$export$1b5e630bc3aea29f(arr) {\n return (0, $63e0e037142f7533$export$7e0947b5ad3404e2)(arr) || (0, $c82e6a0b190ff4c5$export$1eb58a6e75231000)(arr) || (0, $c8a130eed09e6369$export$a5be06335b3a083c)(arr) || (0, $747f811965b2b76e$export$e6f3c4780d19eb2b)();\n}\n\n\n\n\n\n\n\n\n\n/**\r\n * @license\r\n * Copyright 2017 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */ /**\r\n * @fileoverview Firebase constants. Some of these (@defines) can be overridden at compile-time.\r\n */ function $b419213e67ec23f4$export$f3b8ed2e4a5d10b8(self) {\n if (self === void 0) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n return self;\n}\n\n\n\n\nfunction $8105a13e55b45753$export$c2c98ac76e997b63(o, p) {\n $8105a13e55b45753$export$c2c98ac76e997b63 = Object.setPrototypeOf || function setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n return $8105a13e55b45753$export$c2c98ac76e997b63(o, p);\n}\n\n\nfunction $a3fe9d9bda1cd86f$export$7e4530ad35d3bb8(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) throw new TypeError(\"Super expression must either be null or a function\");\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n writable: true,\n configurable: true\n }\n });\n if (superClass) (0, $8105a13e55b45753$export$c2c98ac76e997b63)(subClass, superClass);\n}\n\n\n\n\nfunction $63982ecb68a23cf2$export$685354647fba1516() {\n if (typeof Reflect === \"undefined\" || !Reflect.construct) return false;\n if (Reflect.construct.sham) return false;\n if (typeof Proxy === \"function\") return true;\n try {\n Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));\n return true;\n } catch (e) {\n return false;\n }\n}\n\n\n\nfunction $f3c0d336ce198c7b$export$2d841144c5f8c4ab(Parent, args, Class) {\n if ((0, $63982ecb68a23cf2$export$685354647fba1516)()) $f3c0d336ce198c7b$export$2d841144c5f8c4ab = Reflect.construct;\n else $f3c0d336ce198c7b$export$2d841144c5f8c4ab = function construct(Parent, args, Class) {\n var a = [\n null\n ];\n a.push.apply(a, args);\n var Constructor = Function.bind.apply(Parent, a);\n var instance = new Constructor();\n if (Class) (0, $8105a13e55b45753$export$c2c98ac76e997b63)(instance, Class.prototype);\n return instance;\n };\n return $f3c0d336ce198c7b$export$2d841144c5f8c4ab.apply(null, arguments);\n}\n\n\nfunction $a1f3116cd0a6764d$export$f09211a7d3c496a1(o) {\n $a1f3116cd0a6764d$export$f09211a7d3c496a1 = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {\n return o.__proto__ || Object.getPrototypeOf(o);\n };\n return $a1f3116cd0a6764d$export$f09211a7d3c496a1(o);\n}\n\n\nfunction $db060439470c3a39$export$514eda94019f4334(fn) {\n return Function.toString.call(fn).indexOf(\"[native code]\") !== -1;\n}\n\n\n\nfunction $19ba85e74b42d450$export$2466d533fda16e33(Class) {\n var _cache = typeof Map === \"function\" ? new Map() : undefined;\n $19ba85e74b42d450$export$2466d533fda16e33 = function(Class) {\n if (Class === null || !(0, $db060439470c3a39$export$514eda94019f4334)(Class)) return Class;\n if (typeof Class !== \"function\") throw new TypeError(\"Super expression must either be null or a function\");\n if (typeof _cache !== \"undefined\") {\n if (_cache.has(Class)) return _cache.get(Class);\n _cache.set(Class, Wrapper);\n }\n function Wrapper() {\n return (0, $f3c0d336ce198c7b$export$2d841144c5f8c4ab)(Class, arguments, (0, $a1f3116cd0a6764d$export$f09211a7d3c496a1)(this).constructor);\n }\n Wrapper.prototype = Object.create(Class.prototype, {\n constructor: {\n value: Wrapper,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n return (0, $8105a13e55b45753$export$c2c98ac76e997b63)(Wrapper, Class);\n };\n return $19ba85e74b42d450$export$2466d533fda16e33(Class);\n}\n\n\n\n\n\n\nfunction $2022c8209cccad4e$export$ef97c660ca164e52(self, call) {\n if (call && ((0, $f822ad08ddc5bf88$export$5f0017c582d45a2d)(call) === \"object\" || typeof call === \"function\")) return call;\n return (0, $b419213e67ec23f4$export$f3b8ed2e4a5d10b8)(self);\n}\n\n\nfunction $60ddfe51b57fdc13$export$8dd05c13f5255580(Derived) {\n var hasNativeReflectConstruct = (0, $63982ecb68a23cf2$export$685354647fba1516)();\n return function _createSuperInternal() {\n var Super = (0, $a1f3116cd0a6764d$export$f09211a7d3c496a1)(Derived), result;\n if (hasNativeReflectConstruct) {\n var NewTarget = (0, $a1f3116cd0a6764d$export$f09211a7d3c496a1)(this).constructor;\n result = Reflect.construct(Super, arguments, NewTarget);\n } else result = Super.apply(this, arguments);\n return (0, $2022c8209cccad4e$export$ef97c660ca164e52)(this, result);\n };\n}\n\n\nvar $0b6748f4b8efa58b$exports = {};\n// shim for using process in browser\nvar $0b6748f4b8efa58b$var$process = $0b6748f4b8efa58b$exports = {};\n// cached from whatever global is present so that test runners that stub it\n// don't break things. But we need to wrap it in a try catch in case it is\n// wrapped in strict mode code which doesn't define any globals. It's inside a\n// function because try/catches deoptimize in certain engines.\nvar $0b6748f4b8efa58b$var$cachedSetTimeout;\nvar $0b6748f4b8efa58b$var$cachedClearTimeout;\nfunction $0b6748f4b8efa58b$var$defaultSetTimout() {\n throw new Error(\"setTimeout has not been defined\");\n}\nfunction $0b6748f4b8efa58b$var$defaultClearTimeout() {\n throw new Error(\"clearTimeout has not been defined\");\n}\n(function() {\n try {\n if (typeof setTimeout === \"function\") $0b6748f4b8efa58b$var$cachedSetTimeout = setTimeout;\n else $0b6748f4b8efa58b$var$cachedSetTimeout = $0b6748f4b8efa58b$var$defaultSetTimout;\n } catch (e) {\n $0b6748f4b8efa58b$var$cachedSetTimeout = $0b6748f4b8efa58b$var$defaultSetTimout;\n }\n try {\n if (typeof clearTimeout === \"function\") $0b6748f4b8efa58b$var$cachedClearTimeout = clearTimeout;\n else $0b6748f4b8efa58b$var$cachedClearTimeout = $0b6748f4b8efa58b$var$defaultClearTimeout;\n } catch (e) {\n $0b6748f4b8efa58b$var$cachedClearTimeout = $0b6748f4b8efa58b$var$defaultClearTimeout;\n }\n})();\nfunction $0b6748f4b8efa58b$var$runTimeout(fun) {\n if ($0b6748f4b8efa58b$var$cachedSetTimeout === setTimeout) //normal enviroments in sane situations\n return setTimeout(fun, 0);\n // if setTimeout wasn't available but was latter defined\n if (($0b6748f4b8efa58b$var$cachedSetTimeout === $0b6748f4b8efa58b$var$defaultSetTimout || !$0b6748f4b8efa58b$var$cachedSetTimeout) && setTimeout) {\n $0b6748f4b8efa58b$var$cachedSetTimeout = setTimeout;\n return setTimeout(fun, 0);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return $0b6748f4b8efa58b$var$cachedSetTimeout(fun, 0);\n } catch (e) {\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return $0b6748f4b8efa58b$var$cachedSetTimeout.call(null, fun, 0);\n } catch (e) {\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error\n return $0b6748f4b8efa58b$var$cachedSetTimeout.call(this, fun, 0);\n }\n }\n}\nfunction $0b6748f4b8efa58b$var$runClearTimeout(marker) {\n if ($0b6748f4b8efa58b$var$cachedClearTimeout === clearTimeout) //normal enviroments in sane situations\n return clearTimeout(marker);\n // if clearTimeout wasn't available but was latter defined\n if (($0b6748f4b8efa58b$var$cachedClearTimeout === $0b6748f4b8efa58b$var$defaultClearTimeout || !$0b6748f4b8efa58b$var$cachedClearTimeout) && clearTimeout) {\n $0b6748f4b8efa58b$var$cachedClearTimeout = clearTimeout;\n return clearTimeout(marker);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return $0b6748f4b8efa58b$var$cachedClearTimeout(marker);\n } catch (e) {\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return $0b6748f4b8efa58b$var$cachedClearTimeout.call(null, marker);\n } catch (e) {\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.\n // Some versions of I.E. have different rules for clearTimeout vs setTimeout\n return $0b6748f4b8efa58b$var$cachedClearTimeout.call(this, marker);\n }\n }\n}\nvar $0b6748f4b8efa58b$var$queue = [];\nvar $0b6748f4b8efa58b$var$draining = false;\nvar $0b6748f4b8efa58b$var$currentQueue;\nvar $0b6748f4b8efa58b$var$queueIndex = -1;\nfunction $0b6748f4b8efa58b$var$cleanUpNextTick() {\n if (!$0b6748f4b8efa58b$var$draining || !$0b6748f4b8efa58b$var$currentQueue) return;\n $0b6748f4b8efa58b$var$draining = false;\n if ($0b6748f4b8efa58b$var$currentQueue.length) $0b6748f4b8efa58b$var$queue = $0b6748f4b8efa58b$var$currentQueue.concat($0b6748f4b8efa58b$var$queue);\n else $0b6748f4b8efa58b$var$queueIndex = -1;\n if ($0b6748f4b8efa58b$var$queue.length) $0b6748f4b8efa58b$var$drainQueue();\n}\nfunction $0b6748f4b8efa58b$var$drainQueue() {\n if ($0b6748f4b8efa58b$var$draining) return;\n var timeout = $0b6748f4b8efa58b$var$runTimeout($0b6748f4b8efa58b$var$cleanUpNextTick);\n $0b6748f4b8efa58b$var$draining = true;\n var len = $0b6748f4b8efa58b$var$queue.length;\n while(len){\n $0b6748f4b8efa58b$var$currentQueue = $0b6748f4b8efa58b$var$queue;\n $0b6748f4b8efa58b$var$queue = [];\n while(++$0b6748f4b8efa58b$var$queueIndex < len)if ($0b6748f4b8efa58b$var$currentQueue) $0b6748f4b8efa58b$var$currentQueue[$0b6748f4b8efa58b$var$queueIndex].run();\n $0b6748f4b8efa58b$var$queueIndex = -1;\n len = $0b6748f4b8efa58b$var$queue.length;\n }\n $0b6748f4b8efa58b$var$currentQueue = null;\n $0b6748f4b8efa58b$var$draining = false;\n $0b6748f4b8efa58b$var$runClearTimeout(timeout);\n}\n$0b6748f4b8efa58b$var$process.nextTick = function(fun) {\n var args = new Array(arguments.length - 1);\n if (arguments.length > 1) for(var i = 1; i < arguments.length; i++)args[i - 1] = arguments[i];\n $0b6748f4b8efa58b$var$queue.push(new $0b6748f4b8efa58b$var$Item(fun, args));\n if ($0b6748f4b8efa58b$var$queue.length === 1 && !$0b6748f4b8efa58b$var$draining) $0b6748f4b8efa58b$var$runTimeout($0b6748f4b8efa58b$var$drainQueue);\n};\n// v8 likes predictible objects\nfunction $0b6748f4b8efa58b$var$Item(fun, array) {\n this.fun = fun;\n this.array = array;\n}\n$0b6748f4b8efa58b$var$Item.prototype.run = function() {\n this.fun.apply(null, this.array);\n};\n$0b6748f4b8efa58b$var$process.title = \"browser\";\n$0b6748f4b8efa58b$var$process.browser = true;\n$0b6748f4b8efa58b$var$process.env = {};\n$0b6748f4b8efa58b$var$process.argv = [];\n$0b6748f4b8efa58b$var$process.version = \"\"; // empty string to avoid regexp issues\n$0b6748f4b8efa58b$var$process.versions = {};\nfunction $0b6748f4b8efa58b$var$noop() {}\n$0b6748f4b8efa58b$var$process.on = $0b6748f4b8efa58b$var$noop;\n$0b6748f4b8efa58b$var$process.addListener = $0b6748f4b8efa58b$var$noop;\n$0b6748f4b8efa58b$var$process.once = $0b6748f4b8efa58b$var$noop;\n$0b6748f4b8efa58b$var$process.off = $0b6748f4b8efa58b$var$noop;\n$0b6748f4b8efa58b$var$process.removeListener = $0b6748f4b8efa58b$var$noop;\n$0b6748f4b8efa58b$var$process.removeAllListeners = $0b6748f4b8efa58b$var$noop;\n$0b6748f4b8efa58b$var$process.emit = $0b6748f4b8efa58b$var$noop;\n$0b6748f4b8efa58b$var$process.prependListener = $0b6748f4b8efa58b$var$noop;\n$0b6748f4b8efa58b$var$process.prependOnceListener = $0b6748f4b8efa58b$var$noop;\n$0b6748f4b8efa58b$var$process.listeners = function(name) {\n return [];\n};\n$0b6748f4b8efa58b$var$process.binding = function(name) {\n throw new Error(\"process.binding is not supported\");\n};\n$0b6748f4b8efa58b$var$process.cwd = function() {\n return \"/\";\n};\n$0b6748f4b8efa58b$var$process.chdir = function(dir) {\n throw new Error(\"process.chdir is not supported\");\n};\n$0b6748f4b8efa58b$var$process.umask = function() {\n return 0;\n};\n\n\nvar $9b50b37fb8824044$export$588c7fdda06fbb0a = {\n /**\r\n * @define {boolean} Whether this is the client Node.js SDK.\r\n */ NODE_CLIENT: false,\n /**\r\n * @define {boolean} Whether this is the Admin Node.js SDK.\r\n */ NODE_ADMIN: false,\n /**\r\n * Firebase SDK Version\r\n */ SDK_VERSION: \"${JSCORE_VERSION}\"\n};\n/**\r\n * @license\r\n * Copyright 2017 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */ /**\r\n * Throws an error if the provided assertion is falsy\r\n */ var $9b50b37fb8824044$export$a7a9523472993e97 = function assert(assertion, message) {\n if (!assertion) throw $9b50b37fb8824044$export$a39cad550e7ab28a(message);\n};\n/**\r\n * Returns an Error object suitable for throwing.\r\n */ var $9b50b37fb8824044$export$a39cad550e7ab28a = function assertionError(message) {\n return new Error(\"Firebase Database (\" + $9b50b37fb8824044$export$588c7fdda06fbb0a.SDK_VERSION + \") INTERNAL ASSERT FAILED: \" + message);\n};\n/**\r\n * @license\r\n * Copyright 2017 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */ var $9b50b37fb8824044$var$stringToByteArray$1 = function stringToByteArray$1(str) {\n // TODO(user): Use native implementations if/when available\n var out = [];\n var p = 0;\n for(var i = 0; i < str.length; i++){\n var c = str.charCodeAt(i);\n if (c < 128) out[p++] = c;\n else if (c < 2048) {\n out[p++] = c >> 6 | 192;\n out[p++] = c & 63 | 128;\n } else if ((c & 0xfc00) === 0xd800 && i + 1 < str.length && (str.charCodeAt(i + 1) & 0xfc00) === 0xdc00) {\n // Surrogate Pair\n c = 0x10000 + ((c & 0x03ff) << 10) + (str.charCodeAt(++i) & 0x03ff);\n out[p++] = c >> 18 | 240;\n out[p++] = c >> 12 & 63 | 128;\n out[p++] = c >> 6 & 63 | 128;\n out[p++] = c & 63 | 128;\n } else {\n out[p++] = c >> 12 | 224;\n out[p++] = c >> 6 & 63 | 128;\n out[p++] = c & 63 | 128;\n }\n }\n return out;\n};\n/**\r\n * Turns an array of numbers into the string given by the concatenation of the\r\n * characters to which the numbers correspond.\r\n * @param bytes Array of numbers representing characters.\r\n * @return Stringification of the array.\r\n */ var $9b50b37fb8824044$var$byteArrayToString = function byteArrayToString(bytes) {\n // TODO(user): Use native implementations if/when available\n var out = [];\n var pos = 0, c = 0;\n while(pos < bytes.length){\n var c1 = bytes[pos++];\n if (c1 < 128) out[c++] = String.fromCharCode(c1);\n else if (c1 > 191 && c1 < 224) {\n var c2 = bytes[pos++];\n out[c++] = String.fromCharCode((c1 & 31) << 6 | c2 & 63);\n } else if (c1 > 239 && c1 < 365) {\n // Surrogate Pair\n var c21 = bytes[pos++];\n var c3 = bytes[pos++];\n var c4 = bytes[pos++];\n var u = ((c1 & 7) << 18 | (c21 & 63) << 12 | (c3 & 63) << 6 | c4 & 63) - 0x10000;\n out[c++] = String.fromCharCode(0xd800 + (u >> 10));\n out[c++] = String.fromCharCode(0xdc00 + (u & 1023));\n } else {\n var c22 = bytes[pos++];\n var c31 = bytes[pos++];\n out[c++] = String.fromCharCode((c1 & 15) << 12 | (c22 & 63) << 6 | c31 & 63);\n }\n }\n return out.join(\"\");\n};\n// We define it as an object literal instead of a class because a class compiled down to es5 can't\n// be treeshaked. https://github.com/rollup/rollup/issues/1691\n// Static lookup maps, lazily populated by init_()\nvar $9b50b37fb8824044$export$b3b2de96497acc47 = {\n /**\r\n * Maps bytes to characters.\r\n */ byteToCharMap_: null,\n /**\r\n * Maps characters to bytes.\r\n */ charToByteMap_: null,\n /**\r\n * Maps bytes to websafe characters.\r\n * @private\r\n */ byteToCharMapWebSafe_: null,\n /**\r\n * Maps websafe characters to bytes.\r\n * @private\r\n */ charToByteMapWebSafe_: null,\n /**\r\n * Our default alphabet, shared between\r\n * ENCODED_VALS and ENCODED_VALS_WEBSAFE\r\n */ ENCODED_VALS_BASE: \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789\",\n /**\r\n * Our default alphabet. Value 64 (=) is special; it means \"nothing.\"\r\n */ get ENCODED_VALS () {\n return this.ENCODED_VALS_BASE + \"+/=\";\n },\n /**\r\n * Our websafe alphabet.\r\n */ get ENCODED_VALS_WEBSAFE () {\n return this.ENCODED_VALS_BASE + \"-_.\";\n },\n /**\r\n * Whether this browser supports the atob and btoa functions. This extension\r\n * started at Mozilla but is now implemented by many browsers. We use the\r\n * ASSUME_* variables to avoid pulling in the full useragent detection library\r\n * but still allowing the standard per-browser compilations.\r\n *\r\n */ HAS_NATIVE_SUPPORT: typeof atob === \"function\",\n /**\r\n * Base64-encode an array of bytes.\r\n *\r\n * @param input An array of bytes (numbers with\r\n * value in [0, 255]) to encode.\r\n * @param webSafe Boolean indicating we should use the\r\n * alternative alphabet.\r\n * @return The base64 encoded string.\r\n */ encodeByteArray: function(input, webSafe) {\n if (!Array.isArray(input)) throw Error(\"encodeByteArray takes an array as a parameter\");\n this.init_();\n var byteToCharMap = webSafe ? this.byteToCharMapWebSafe_ : this.byteToCharMap_;\n var output = [];\n for(var i = 0; i < input.length; i += 3){\n var byte1 = input[i];\n var haveByte2 = i + 1 < input.length;\n var byte2 = haveByte2 ? input[i + 1] : 0;\n var haveByte3 = i + 2 < input.length;\n var byte3 = haveByte3 ? input[i + 2] : 0;\n var outByte1 = byte1 >> 2;\n var outByte2 = (byte1 & 0x03) << 4 | byte2 >> 4;\n var outByte3 = (byte2 & 0x0f) << 2 | byte3 >> 6;\n var outByte4 = byte3 & 0x3f;\n if (!haveByte3) {\n outByte4 = 64;\n if (!haveByte2) outByte3 = 64;\n }\n output.push(byteToCharMap[outByte1], byteToCharMap[outByte2], byteToCharMap[outByte3], byteToCharMap[outByte4]);\n }\n return output.join(\"\");\n },\n /**\r\n * Base64-encode a string.\r\n *\r\n * @param input A string to encode.\r\n * @param webSafe If true, we should use the\r\n * alternative alphabet.\r\n * @return The base64 encoded string.\r\n */ encodeString: function(input, webSafe) {\n // Shortcut for Mozilla browsers that implement\n // a native base64 encoder in the form of \"btoa/atob\"\n if (this.HAS_NATIVE_SUPPORT && !webSafe) return btoa(input);\n return this.encodeByteArray($9b50b37fb8824044$var$stringToByteArray$1(input), webSafe);\n },\n /**\r\n * Base64-decode a string.\r\n *\r\n * @param input to decode.\r\n * @param webSafe True if we should use the\r\n * alternative alphabet.\r\n * @return string representing the decoded value.\r\n */ decodeString: function(input, webSafe) {\n // Shortcut for Mozilla browsers that implement\n // a native base64 encoder in the form of \"btoa/atob\"\n if (this.HAS_NATIVE_SUPPORT && !webSafe) return atob(input);\n return $9b50b37fb8824044$var$byteArrayToString(this.decodeStringToByteArray(input, webSafe));\n },\n /**\r\n * Base64-decode a string.\r\n *\r\n * In base-64 decoding, groups of four characters are converted into three\r\n * bytes. If the encoder did not apply padding, the input length may not\r\n * be a multiple of 4.\r\n *\r\n * In this case, the last group will have fewer than 4 characters, and\r\n * padding will be inferred. If the group has one or two characters, it decodes\r\n * to one byte. If the group has three characters, it decodes to two bytes.\r\n *\r\n * @param input Input to decode.\r\n * @param webSafe True if we should use the web-safe alphabet.\r\n * @return bytes representing the decoded value.\r\n */ decodeStringToByteArray: function(input, webSafe) {\n this.init_();\n var charToByteMap = webSafe ? this.charToByteMapWebSafe_ : this.charToByteMap_;\n var output = [];\n for(var i = 0; i < input.length;){\n var byte1 = charToByteMap[input.charAt(i++)];\n var haveByte2 = i < input.length;\n var byte2 = haveByte2 ? charToByteMap[input.charAt(i)] : 0;\n ++i;\n var haveByte3 = i < input.length;\n var byte3 = haveByte3 ? charToByteMap[input.charAt(i)] : 64;\n ++i;\n var haveByte4 = i < input.length;\n var byte4 = haveByte4 ? charToByteMap[input.charAt(i)] : 64;\n ++i;\n if (byte1 == null || byte2 == null || byte3 == null || byte4 == null) throw new $9b50b37fb8824044$export$55ca9d4bee46aeb3();\n var outByte1 = byte1 << 2 | byte2 >> 4;\n output.push(outByte1);\n if (byte3 !== 64) {\n var outByte2 = byte2 << 4 & 0xf0 | byte3 >> 2;\n output.push(outByte2);\n if (byte4 !== 64) {\n var outByte3 = byte3 << 6 & 0xc0 | byte4;\n output.push(outByte3);\n }\n }\n }\n return output;\n },\n /**\r\n * Lazy static initialization function. Called before\r\n * accessing any of the static map variables.\r\n * @private\r\n */ init_: function() {\n if (!this.byteToCharMap_) {\n this.byteToCharMap_ = {};\n this.charToByteMap_ = {};\n this.byteToCharMapWebSafe_ = {};\n this.charToByteMapWebSafe_ = {};\n // We want quick mappings back and forth, so we precompute two maps.\n for(var i = 0; i < this.ENCODED_VALS.length; i++){\n this.byteToCharMap_[i] = this.ENCODED_VALS.charAt(i);\n this.charToByteMap_[this.byteToCharMap_[i]] = i;\n this.byteToCharMapWebSafe_[i] = this.ENCODED_VALS_WEBSAFE.charAt(i);\n this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[i]] = i;\n // Be forgiving when decoding and correctly decode both encodings.\n if (i >= this.ENCODED_VALS_BASE.length) {\n this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(i)] = i;\n this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(i)] = i;\n }\n }\n }\n }\n};\n/**\r\n * An error encountered while decoding base64 string.\r\n */ var $9b50b37fb8824044$export$55ca9d4bee46aeb3 = /*#__PURE__*/ function(Error1) {\n \"use strict\";\n (0, $a3fe9d9bda1cd86f$export$7e4530ad35d3bb8)(DecodeBase64StringError, Error1);\n var _super = (0, $60ddfe51b57fdc13$export$8dd05c13f5255580)(DecodeBase64StringError);\n function DecodeBase64StringError() {\n (0, $0c3f79e99c83f58f$export$2996f80ef42b8419)(this, DecodeBase64StringError);\n var _this;\n _this = _super.call.apply(_super, [\n this\n ].concat(Array.prototype.slice.call(arguments)));\n _this.name = \"DecodeBase64StringError\";\n return _this;\n }\n return DecodeBase64StringError;\n}((0, $19ba85e74b42d450$export$2466d533fda16e33)(Error));\n/**\r\n * URL-safe base64 encoding\r\n */ var $9b50b37fb8824044$export$e510a73ee562749 = function base64Encode(str) {\n var utf8Bytes = $9b50b37fb8824044$var$stringToByteArray$1(str);\n return $9b50b37fb8824044$export$b3b2de96497acc47.encodeByteArray(utf8Bytes, true);\n};\n/**\r\n * URL-safe base64 encoding (without \".\" padding in the end).\r\n * e.g. Used in JSON Web Token (JWT) parts.\r\n */ var $9b50b37fb8824044$export$4b5284a3025a455 = function base64urlEncodeWithoutPadding(str) {\n // Use base64url encoding and remove padding in the end (dot characters).\n return $9b50b37fb8824044$export$e510a73ee562749(str).replace(/\\./g, \"\");\n};\n/**\r\n * URL-safe base64 decoding\r\n *\r\n * NOTE: DO NOT use the global atob() function - it does NOT support the\r\n * base64Url variant encoding.\r\n *\r\n * @param str To be decoded\r\n * @return Decoded result, if possible\r\n */ var $9b50b37fb8824044$export$c62426fdd000a97e = function base64Decode(str) {\n try {\n return $9b50b37fb8824044$export$b3b2de96497acc47.decodeString(str, true);\n } catch (e) {\n console.error(\"base64Decode failed: \", e);\n }\n return null;\n};\n/**\r\n * @license\r\n * Copyright 2017 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */ /**\r\n * Do a deep-copy of basic JavaScript Objects or Arrays.\r\n */ function $9b50b37fb8824044$export$6c40052bed430212(value) {\n return $9b50b37fb8824044$export$54e9fb29908872fa(undefined, value);\n}\n/**\r\n * Copy properties from source to target (recursively allows extension\r\n * of Objects and Arrays). Scalar values in the target are over-written.\r\n * If target is undefined, an object of the appropriate type will be created\r\n * (and returned).\r\n *\r\n * We recursively copy all child properties of plain Objects in the source- so\r\n * that namespace- like dictionaries are merged.\r\n *\r\n * Note that the target can be a function, in which case the properties in\r\n * the source Object are copied onto it as static properties of the Function.\r\n *\r\n * Note: we don't merge __proto__ to prevent prototype pollution\r\n */ function $9b50b37fb8824044$export$54e9fb29908872fa(target, source) {\n if (!(source instanceof Object)) return source;\n switch(source.constructor){\n case Date:\n // Treat Dates like scalars; if the target date object had any child\n // properties - they will be lost!\n var dateValue = source;\n return new Date(dateValue.getTime());\n case Object:\n if (target === undefined) target = {};\n break;\n case Array:\n // Always copy the array source and overwrite the target.\n target = [];\n break;\n default:\n // Not a plain Object - treat it as a scalar.\n return source;\n }\n for(var prop in source){\n // use isValidKey to guard against prototype pollution. See https://snyk.io/vuln/SNYK-JS-LODASH-450202\n if (!source.hasOwnProperty(prop) || !$9b50b37fb8824044$var$isValidKey(prop)) continue;\n target[prop] = $9b50b37fb8824044$export$54e9fb29908872fa(target[prop], source[prop]);\n }\n return target;\n}\nfunction $9b50b37fb8824044$var$isValidKey(key) {\n return key !== \"__proto__\";\n}\n/**\r\n * @license\r\n * Copyright 2022 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */ /**\r\n * Polyfill for `globalThis` object.\r\n * @returns the `globalThis` object for the given environment.\r\n * @public\r\n */ function $9b50b37fb8824044$export$a4e55266d2135a7f() {\n if (typeof self !== \"undefined\") return self;\n if (typeof window !== \"undefined\") return window;\n if (typeof $parcel$global !== \"undefined\") return $parcel$global;\n throw new Error(\"Unable to locate global object.\");\n}\n/**\r\n * @license\r\n * Copyright 2022 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */ var $9b50b37fb8824044$var$getDefaultsFromGlobal = function() {\n return $9b50b37fb8824044$export$a4e55266d2135a7f().__FIREBASE_DEFAULTS__;\n};\n/**\r\n * Attempt to read defaults from a JSON string provided to\r\n * process(.)env(.)__FIREBASE_DEFAULTS__ or a JSON file whose path is in\r\n * process(.)env(.)__FIREBASE_DEFAULTS_PATH__\r\n * The dots are in parens because certain compilers (Vite?) cannot\r\n * handle seeing that variable in comments.\r\n * See https://github.com/firebase/firebase-js-sdk/issues/6838\r\n */ var $9b50b37fb8824044$var$getDefaultsFromEnvVariable = function() {\n if (typeof $0b6748f4b8efa58b$exports === \"undefined\" || typeof $0b6748f4b8efa58b$exports.env === \"undefined\") return;\n var defaultsJsonString = undefined;\n if (defaultsJsonString) return JSON.parse(defaultsJsonString);\n};\nvar $9b50b37fb8824044$var$getDefaultsFromCookie = function() {\n if (typeof document === \"undefined\") return;\n var match;\n try {\n match = document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/);\n } catch (e) {\n // Some environments such as Angular Universal SSR have a\n // `document` object but error on accessing `document.cookie`.\n return;\n }\n var decoded = match && $9b50b37fb8824044$export$c62426fdd000a97e(match[1]);\n return decoded && JSON.parse(decoded);\n};\n/**\r\n * Get the __FIREBASE_DEFAULTS__ object. It checks in order:\r\n * (1) if such an object exists as a property of `globalThis`\r\n * (2) if such an object was provided on a shell environment variable\r\n * (3) if such an object exists in a cookie\r\n * @public\r\n */ var $9b50b37fb8824044$export$212bb2fc580a90a8 = function() {\n try {\n return $9b50b37fb8824044$var$getDefaultsFromGlobal() || $9b50b37fb8824044$var$getDefaultsFromEnvVariable() || $9b50b37fb8824044$var$getDefaultsFromCookie();\n } catch (e) {\n /**\r\n * Catch-all for being unable to get __FIREBASE_DEFAULTS__ due\r\n * to any environment case we have not accounted for. Log to\r\n * info instead of swallowing so we can find these unknown cases\r\n * and add paths for them if needed.\r\n */ console.info(\"Unable to get __FIREBASE_DEFAULTS__ due to: \".concat(e));\n return;\n }\n};\n/**\r\n * Returns emulator host stored in the __FIREBASE_DEFAULTS__ object\r\n * for the given product.\r\n * @returns a URL host formatted like `127.0.0.1:9999` or `[::1]:4000` if available\r\n * @public\r\n */ var $9b50b37fb8824044$export$9c11895284c8adad = function(productName) {\n var _a, _b;\n return (_b = (_a = $9b50b37fb8824044$export$212bb2fc580a90a8()) === null || _a === void 0 ? void 0 : _a.emulatorHosts) === null || _b === void 0 ? void 0 : _b[productName];\n};\n/**\r\n * Returns emulator hostname and port stored in the __FIREBASE_DEFAULTS__ object\r\n * for the given product.\r\n * @returns a pair of hostname and port like `[\"::1\", 4000]` if available\r\n * @public\r\n */ var $9b50b37fb8824044$export$a3febcf1f14a3a0c = function(productName) {\n var host = $9b50b37fb8824044$export$9c11895284c8adad(productName);\n if (!host) return undefined;\n var separatorIndex = host.lastIndexOf(\":\"); // Finding the last since IPv6 addr also has colons.\n if (separatorIndex <= 0 || separatorIndex + 1 === host.length) throw new Error(\"Invalid host \".concat(host, \" with no separate hostname and port!\"));\n // eslint-disable-next-line no-restricted-globals\n var port = parseInt(host.substring(separatorIndex + 1), 10);\n if (host[0] === \"[\") // Bracket-quoted `[ipv6addr]:port` => return \"ipv6addr\" (without brackets).\n return [\n host.substring(1, separatorIndex - 1),\n port\n ];\n else return [\n host.substring(0, separatorIndex),\n port\n ];\n};\n/**\r\n * Returns Firebase app config stored in the __FIREBASE_DEFAULTS__ object.\r\n * @public\r\n */ var $9b50b37fb8824044$export$3dfb6827a9f89756 = function() {\n var _a;\n return (_a = $9b50b37fb8824044$export$212bb2fc580a90a8()) === null || _a === void 0 ? void 0 : _a.config;\n};\n/**\r\n * Returns an experimental setting on the __FIREBASE_DEFAULTS__ object (properties\r\n * prefixed by \"_\")\r\n * @public\r\n */ var $9b50b37fb8824044$export$5539a1a3afe87d6 = function(name) {\n var _a;\n return (_a = $9b50b37fb8824044$export$212bb2fc580a90a8()) === null || _a === void 0 ? void 0 : _a[\"_\".concat(name)];\n};\n/**\r\n * @license\r\n * Copyright 2017 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */ var $9b50b37fb8824044$export$85f6557964517f1a = /*#__PURE__*/ function() {\n \"use strict\";\n function Deferred() {\n var _this = this;\n (0, $0c3f79e99c83f58f$export$2996f80ef42b8419)(this, Deferred);\n this.reject = function() {};\n this.resolve = function() {};\n this.promise = new Promise(function(resolve, reject) {\n _this.resolve = resolve;\n _this.reject = reject;\n });\n }\n (0, $a27186eefd8c4b26$export$d60067ff2358eee8)(Deferred, [\n {\n /**\r\n * Our API internals are not promiseified and cannot because our callback APIs have subtle expectations around\r\n * invoking promises inline, which Promises are forbidden to do. This method accepts an optional node-style callback\r\n * and returns a node-style callback which will resolve or reject the Deferred's promise.\r\n */ key: \"wrapCallback\",\n value: function wrapCallback(callback) {\n var _this = this;\n return function(error, value) {\n if (error) _this.reject(error);\n else _this.resolve(value);\n if (typeof callback === \"function\") {\n // Attaching noop handler just in case developer wasn't expecting\n // promises\n _this.promise.catch(function() {});\n // Some of our callbacks don't expect a value and our own tests\n // assert that the parameter length is 1\n if (callback.length === 1) callback(error);\n else callback(error, value);\n }\n };\n }\n }\n ]);\n return Deferred;\n}();\n/**\r\n * @license\r\n * Copyright 2021 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */ function $9b50b37fb8824044$export$367bf224123348f1(token, projectId) {\n if (token.uid) throw new Error('The \"uid\" field is no longer supported by mockUserToken. Please use \"sub\" instead for Firebase Auth User ID.');\n // Unsecured JWTs use \"none\" as the algorithm.\n var header = {\n alg: \"none\",\n type: \"JWT\"\n };\n var project = projectId || \"demo-project\";\n var iat = token.iat || 0;\n var sub = token.sub || token.user_id;\n if (!sub) throw new Error(\"mockUserToken must contain 'sub' or 'user_id' field!\");\n var payload = Object.assign({\n // Set all required fields to decent defaults\n iss: \"https://securetoken.google.com/\".concat(project),\n aud: project,\n iat: iat,\n exp: iat + 3600,\n auth_time: iat,\n sub: sub,\n user_id: sub,\n firebase: {\n sign_in_provider: \"custom\",\n identities: {}\n }\n }, token);\n // Unsecured JWTs use the empty string as a signature.\n var signature = \"\";\n return [\n $9b50b37fb8824044$export$4b5284a3025a455(JSON.stringify(header)),\n $9b50b37fb8824044$export$4b5284a3025a455(JSON.stringify(payload)),\n signature\n ].join(\".\");\n}\n/**\r\n * @license\r\n * Copyright 2017 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */ /**\r\n * Returns navigator.userAgent string or '' if it's not defined.\r\n * @return user agent string\r\n */ function $9b50b37fb8824044$export$c36915b22ce77c19() {\n if (typeof navigator !== \"undefined\" && typeof navigator[\"userAgent\"] === \"string\") return navigator[\"userAgent\"];\n else return \"\";\n}\n/**\r\n * Detect Cordova / PhoneGap / Ionic frameworks on a mobile device.\r\n *\r\n * Deliberately does not rely on checking `file://` URLs (as this fails PhoneGap\r\n * in the Ripple emulator) nor Cordova `onDeviceReady`, which would normally\r\n * wait for a callback.\r\n */ function $9b50b37fb8824044$export$872f8323f01d7ae0() {\n return typeof window !== \"undefined\" && // @ts-ignore Setting up an broadly applicable index signature for Window\n // just to deal with this case would probably be a bad idea.\n !!(window[\"cordova\"] || window[\"phonegap\"] || window[\"PhoneGap\"]) && /ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test($9b50b37fb8824044$export$c36915b22ce77c19());\n}\n/**\r\n * Detect Node.js.\r\n *\r\n * @return true if Node.js environment is detected or specified.\r\n */ // Node detection logic from: https://github.com/iliakan/detect-node/\nfunction $9b50b37fb8824044$export$8ee0fc9ee280b4ee() {\n var _a;\n var forceEnvironment = (_a = $9b50b37fb8824044$export$212bb2fc580a90a8()) === null || _a === void 0 ? void 0 : _a.forceEnvironment;\n if (forceEnvironment === \"node\") return true;\n else if (forceEnvironment === \"browser\") return false;\n try {\n return Object.prototype.toString.call($parcel$global.process) === \"[object process]\";\n } catch (e) {\n return false;\n }\n}\n/**\r\n * Detect Browser Environment\r\n */ function $9b50b37fb8824044$export$4e09c449d6c407f7() {\n return typeof self === \"object\" && self.self === self;\n}\nfunction $9b50b37fb8824044$export$caa8774a9107a58e() {\n var runtime = typeof chrome === \"object\" ? chrome.runtime : typeof browser === \"object\" ? browser.runtime : undefined;\n return typeof runtime === \"object\" && runtime.id !== undefined;\n}\n/**\r\n * Detect React Native.\r\n *\r\n * @return true if ReactNative environment is detected.\r\n */ function $9b50b37fb8824044$export$f7a1e23e542d38e3() {\n return typeof navigator === \"object\" && navigator[\"product\"] === \"ReactNative\";\n}\n/** Detects Electron apps. */ function $9b50b37fb8824044$export$f2f6a8999f8ebd30() {\n return $9b50b37fb8824044$export$c36915b22ce77c19().indexOf(\"Electron/\") >= 0;\n}\n/** Detects Internet Explorer. */ function $9b50b37fb8824044$export$7e7b1a9668aaed8() {\n var ua = $9b50b37fb8824044$export$c36915b22ce77c19();\n return ua.indexOf(\"MSIE \") >= 0 || ua.indexOf(\"Trident/\") >= 0;\n}\n/** Detects Universal Windows Platform apps. */ function $9b50b37fb8824044$export$202944b2d2824246() {\n return $9b50b37fb8824044$export$c36915b22ce77c19().indexOf(\"MSAppHost/\") >= 0;\n}\n/**\r\n * Detect whether the current SDK build is the Node version.\r\n *\r\n * @return true if it's the Node SDK build.\r\n */ function $9b50b37fb8824044$export$5d1d834fbbf8bab7() {\n return $9b50b37fb8824044$export$588c7fdda06fbb0a.NODE_CLIENT === true || $9b50b37fb8824044$export$588c7fdda06fbb0a.NODE_ADMIN === true;\n}\n/** Returns true if we are running in Safari. */ function $9b50b37fb8824044$export$95df08bae54cb4df() {\n return !$9b50b37fb8824044$export$8ee0fc9ee280b4ee() && navigator.userAgent.includes(\"Safari\") && !navigator.userAgent.includes(\"Chrome\");\n}\n/**\r\n * This method checks if indexedDB is supported by current browser/service worker context\r\n * @return true if indexedDB is supported by current browser/service worker context\r\n */ function $9b50b37fb8824044$export$3865db50535c2055() {\n try {\n return typeof indexedDB === \"object\";\n } catch (e) {\n return false;\n }\n}\n/**\r\n * This method validates browser/sw context for indexedDB by opening a dummy indexedDB database and reject\r\n * if errors occur during the database open operation.\r\n *\r\n * @throws exception if current browser/sw context can't run idb.open (ex: Safari iframe, Firefox\r\n * private browsing)\r\n */ function $9b50b37fb8824044$export$a8a3018f3d187a4d() {\n return new Promise(function(resolve, reject) {\n try {\n var preExist = true;\n var DB_CHECK_NAME = \"validate-browser-context-for-indexeddb-analytics-module\";\n var request = self.indexedDB.open(DB_CHECK_NAME);\n request.onsuccess = function() {\n request.result.close();\n // delete database only when it doesn't pre-exist\n if (!preExist) self.indexedDB.deleteDatabase(DB_CHECK_NAME);\n resolve(true);\n };\n request.onupgradeneeded = function() {\n preExist = false;\n };\n request.onerror = function() {\n var _a;\n reject(((_a = request.error) === null || _a === void 0 ? void 0 : _a.message) || \"\");\n };\n } catch (error) {\n reject(error);\n }\n });\n}\n/**\r\n *\r\n * This method checks whether cookie is enabled within current browser\r\n * @return true if cookie is enabled within current browser\r\n */ function $9b50b37fb8824044$export$f172b7eb6cf60599() {\n if (typeof navigator === \"undefined\" || !navigator.cookieEnabled) return false;\n return true;\n}\n/**\r\n * @license\r\n * Copyright 2017 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */ /**\r\n * @fileoverview Standardized Firebase Error.\r\n *\r\n * Usage:\r\n *\r\n * // Typescript string literals for type-safe codes\r\n * type Err =\r\n * 'unknown' |\r\n * 'object-not-found'\r\n * ;\r\n *\r\n * // Closure enum for type-safe error codes\r\n * // at-enum {string}\r\n * var Err = {\r\n * UNKNOWN: 'unknown',\r\n * OBJECT_NOT_FOUND: 'object-not-found',\r\n * }\r\n *\r\n * let errors: Map = {\r\n * 'generic-error': \"Unknown error\",\r\n * 'file-not-found': \"Could not find file: {$file}\",\r\n * };\r\n *\r\n * // Type-safe function - must pass a valid error code as param.\r\n * let error = new ErrorFactory('service', 'Service', errors);\r\n *\r\n * ...\r\n * throw error.create(Err.GENERIC);\r\n * ...\r\n * throw error.create(Err.FILE_NOT_FOUND, {'file': fileName});\r\n * ...\r\n * // Service: Could not file file: foo.txt (service/file-not-found).\r\n *\r\n * catch (e) {\r\n * assert(e.message === \"Could not find file: foo.txt.\");\r\n * if ((e as FirebaseError)?.code === 'service/file-not-found') {\r\n * console.log(\"Could not read file: \" + e['file']);\r\n * }\r\n * }\r\n */ var $9b50b37fb8824044$var$ERROR_NAME = \"FirebaseError\";\n// Based on code from:\n// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error#Custom_Error_Types\nvar $9b50b37fb8824044$export$dd24e9cd51226c56 = /*#__PURE__*/ function(Error1) {\n \"use strict\";\n (0, $a3fe9d9bda1cd86f$export$7e4530ad35d3bb8)(FirebaseError, Error1);\n var _super = (0, $60ddfe51b57fdc13$export$8dd05c13f5255580)(FirebaseError);\n function FirebaseError(/** The error code for this error. */ code, message, /** Custom data for this error. */ customData) {\n (0, $0c3f79e99c83f58f$export$2996f80ef42b8419)(this, FirebaseError);\n var _this;\n _this = _super.call(this, message);\n _this.code = code;\n _this.customData = customData;\n /** The custom name for all FirebaseErrors. */ _this.name = $9b50b37fb8824044$var$ERROR_NAME;\n // Fix For ES5\n // https://github.com/Microsoft/TypeScript-wiki/blob/master/Breaking-Changes.md#extending-built-ins-like-error-array-and-map-may-no-longer-work\n Object.setPrototypeOf((0, $b419213e67ec23f4$export$f3b8ed2e4a5d10b8)(_this), FirebaseError.prototype);\n // Maintains proper stack trace for where our error was thrown.\n // Only available on V8.\n if (Error.captureStackTrace) Error.captureStackTrace((0, $b419213e67ec23f4$export$f3b8ed2e4a5d10b8)(_this), $9b50b37fb8824044$export$3fa6e1b18a3b2d40.prototype.create);\n return _this;\n }\n return FirebaseError;\n}((0, $19ba85e74b42d450$export$2466d533fda16e33)(Error));\nvar $9b50b37fb8824044$export$3fa6e1b18a3b2d40 = /*#__PURE__*/ function() {\n \"use strict\";\n function ErrorFactory(service, serviceName, errors) {\n (0, $0c3f79e99c83f58f$export$2996f80ef42b8419)(this, ErrorFactory);\n this.service = service;\n this.serviceName = serviceName;\n this.errors = errors;\n }\n (0, $a27186eefd8c4b26$export$d60067ff2358eee8)(ErrorFactory, [\n {\n key: \"create\",\n value: function create(code) {\n for(var _len = arguments.length, data = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++){\n data[_key - 1] = arguments[_key];\n }\n var customData = data[0] || {};\n var fullCode = \"\".concat(this.service, \"/\").concat(code);\n var template = this.errors[code];\n var message = template ? $9b50b37fb8824044$var$replaceTemplate(template, customData) : \"Error\";\n // Service Name: Error message (service/code).\n var fullMessage = \"\".concat(this.serviceName, \": \").concat(message, \" (\").concat(fullCode, \").\");\n var error = new $9b50b37fb8824044$export$dd24e9cd51226c56(fullCode, fullMessage, customData);\n return error;\n }\n }\n ]);\n return ErrorFactory;\n}();\nfunction $9b50b37fb8824044$var$replaceTemplate(template, data) {\n return template.replace($9b50b37fb8824044$var$PATTERN, function(_, key) {\n var value = data[key];\n return value != null ? String(value) : \"<\".concat(key, \"?>\");\n });\n}\nvar $9b50b37fb8824044$var$PATTERN = /\\{\\$([^}]+)}/g;\n/**\r\n * @license\r\n * Copyright 2017 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */ /**\r\n * Evaluates a JSON string into a javascript object.\r\n *\r\n * @param {string} str A string containing JSON.\r\n * @return {*} The javascript object representing the specified JSON.\r\n */ function $9b50b37fb8824044$export$c5a53ce6a17cf18d(str) {\n return JSON.parse(str);\n}\n/**\r\n * Returns JSON representing a javascript object.\r\n * @param {*} data Javascript object to be stringified.\r\n * @return {string} The JSON contents of the object.\r\n */ function $9b50b37fb8824044$export$fac44ee5b035f737(data) {\n return JSON.stringify(data);\n}\n/**\r\n * @license\r\n * Copyright 2017 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */ /**\r\n * Decodes a Firebase auth. token into constituent parts.\r\n *\r\n * Notes:\r\n * - May return with invalid / incomplete claims if there's no native base64 decoding support.\r\n * - Doesn't check if the token is actually valid.\r\n */ var $9b50b37fb8824044$export$2f872c0f2117be69 = function decode(token) {\n var header = {}, claims = {}, data = {}, signature = \"\";\n try {\n var parts = token.split(\".\");\n header = $9b50b37fb8824044$export$c5a53ce6a17cf18d($9b50b37fb8824044$export$c62426fdd000a97e(parts[0]) || \"\");\n claims = $9b50b37fb8824044$export$c5a53ce6a17cf18d($9b50b37fb8824044$export$c62426fdd000a97e(parts[1]) || \"\");\n signature = parts[2];\n data = claims[\"d\"] || {};\n delete claims[\"d\"];\n } catch (e) {}\n return {\n header: header,\n claims: claims,\n data: data,\n signature: signature\n };\n};\n/**\r\n * Decodes a Firebase auth. token and checks the validity of its time-based claims. Will return true if the\r\n * token is within the time window authorized by the 'nbf' (not-before) and 'iat' (issued-at) claims.\r\n *\r\n * Notes:\r\n * - May return a false negative if there's no native base64 decoding support.\r\n * - Doesn't check if the token is actually valid.\r\n */ var $9b50b37fb8824044$export$5f870fcca7ae6a88 = function isValidTimestamp(token) {\n var claims = $9b50b37fb8824044$export$2f872c0f2117be69(token).claims;\n var now = Math.floor(new Date().getTime() / 1000);\n var validSince = 0, validUntil = 0;\n if (typeof claims === \"object\") {\n if (claims.hasOwnProperty(\"nbf\")) validSince = claims[\"nbf\"];\n else if (claims.hasOwnProperty(\"iat\")) validSince = claims[\"iat\"];\n if (claims.hasOwnProperty(\"exp\")) validUntil = claims[\"exp\"];\n else // token will expire after 24h by default\n validUntil = validSince + 86400;\n }\n return !!now && !!validSince && !!validUntil && now >= validSince && now <= validUntil;\n};\n/**\r\n * Decodes a Firebase auth. token and returns its issued at time if valid, null otherwise.\r\n *\r\n * Notes:\r\n * - May return null if there's no native base64 decoding support.\r\n * - Doesn't check if the token is actually valid.\r\n */ var $9b50b37fb8824044$export$701c661ec91095f2 = function issuedAtTime(token) {\n var claims = $9b50b37fb8824044$export$2f872c0f2117be69(token).claims;\n if (typeof claims === \"object\" && claims.hasOwnProperty(\"iat\")) return claims[\"iat\"];\n return null;\n};\n/**\r\n * Decodes a Firebase auth. token and checks the validity of its format. Expects a valid issued-at time.\r\n *\r\n * Notes:\r\n * - May return a false negative if there's no native base64 decoding support.\r\n * - Doesn't check if the token is actually valid.\r\n */ var $9b50b37fb8824044$export$9565ca3d387f8aa0 = function isValidFormat(token) {\n var decoded = $9b50b37fb8824044$export$2f872c0f2117be69(token), claims = decoded.claims;\n return !!claims && typeof claims === \"object\" && claims.hasOwnProperty(\"iat\");\n};\n/**\r\n * Attempts to peer into an auth token and determine if it's an admin auth token by looking at the claims portion.\r\n *\r\n * Notes:\r\n * - May return a false negative if there's no native base64 decoding support.\r\n * - Doesn't check if the token is actually valid.\r\n */ var $9b50b37fb8824044$export$fc970ed23da99565 = function isAdmin(token) {\n var claims = $9b50b37fb8824044$export$2f872c0f2117be69(token).claims;\n return typeof claims === \"object\" && claims[\"admin\"] === true;\n};\n/**\r\n * @license\r\n * Copyright 2017 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */ function $9b50b37fb8824044$export$2344b14b097df817(obj, key) {\n return Object.prototype.hasOwnProperty.call(obj, key);\n}\nfunction $9b50b37fb8824044$export$e51ae4db7b428f67(obj, key) {\n if (Object.prototype.hasOwnProperty.call(obj, key)) return obj[key];\n else return undefined;\n}\nfunction $9b50b37fb8824044$export$dd1bc94b04021eeb(obj) {\n for(var key in obj){\n if (Object.prototype.hasOwnProperty.call(obj, key)) return false;\n }\n return true;\n}\nfunction $9b50b37fb8824044$export$871de8747c9eaa88(obj, fn, contextObj) {\n var res = {};\n for(var key in obj)if (Object.prototype.hasOwnProperty.call(obj, key)) res[key] = fn.call(contextObj, obj[key], key, obj);\n return res;\n}\n/**\r\n * Deep equal two objects. Support Arrays and Objects.\r\n */ function $9b50b37fb8824044$export$9cb4719e2e525b7a(a, b) {\n if (a === b) return true;\n var aKeys = Object.keys(a);\n var bKeys = Object.keys(b);\n var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;\n try {\n for(var _iterator = aKeys[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){\n var k = _step.value;\n if (!bKeys.includes(k)) return false;\n var aProp = a[k];\n var bProp = b[k];\n if ($9b50b37fb8824044$var$isObject(aProp) && $9b50b37fb8824044$var$isObject(bProp)) {\n if (!$9b50b37fb8824044$export$9cb4719e2e525b7a(aProp, bProp)) return false;\n } else if (aProp !== bProp) return false;\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally{\n try {\n if (!_iteratorNormalCompletion && _iterator.return != null) {\n _iterator.return();\n }\n } finally{\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n var _iteratorNormalCompletion1 = true, _didIteratorError1 = false, _iteratorError1 = undefined;\n try {\n for(var _iterator1 = bKeys[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true){\n var k1 = _step1.value;\n if (!aKeys.includes(k1)) return false;\n }\n } catch (err) {\n _didIteratorError1 = true;\n _iteratorError1 = err;\n } finally{\n try {\n if (!_iteratorNormalCompletion1 && _iterator1.return != null) {\n _iterator1.return();\n }\n } finally{\n if (_didIteratorError1) {\n throw _iteratorError1;\n }\n }\n }\n return true;\n}\nfunction $9b50b37fb8824044$var$isObject(thing) {\n return thing !== null && typeof thing === \"object\";\n}\n/**\r\n * @license\r\n * Copyright 2022 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */ /**\r\n * Rejects if the given promise doesn't resolve in timeInMS milliseconds.\r\n * @internal\r\n */ function $9b50b37fb8824044$export$a9cd205a244d9f54(promise) {\n var timeInMS = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 2000;\n var deferredPromise = new $9b50b37fb8824044$export$85f6557964517f1a();\n setTimeout(function() {\n return deferredPromise.reject(\"timeout!\");\n }, timeInMS);\n promise.then(deferredPromise.resolve, deferredPromise.reject);\n return deferredPromise.promise;\n}\n/**\r\n * @license\r\n * Copyright 2017 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */ /**\r\n * Returns a querystring-formatted string (e.g. &arg=val&arg2=val2) from a\r\n * params object (e.g. {arg: 'val', arg2: 'val2'})\r\n * Note: You must prepend it with ? when adding it to a URL.\r\n */ function $9b50b37fb8824044$export$ac4103b836844853(querystringParams) {\n var params = [];\n var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;\n try {\n var _loop = function() {\n var _step_value = (0, $6e952d66071d1a0a$export$fdf2a89c76341bbf)(_step.value, 2), key = _step_value[0], value = _step_value[1];\n if (Array.isArray(value)) value.forEach(function(arrayVal) {\n params.push(encodeURIComponent(key) + \"=\" + encodeURIComponent(arrayVal));\n });\n else params.push(encodeURIComponent(key) + \"=\" + encodeURIComponent(value));\n };\n for(var _iterator = Object.entries(querystringParams)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true)_loop();\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally{\n try {\n if (!_iteratorNormalCompletion && _iterator.return != null) {\n _iterator.return();\n }\n } finally{\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n return params.length ? \"&\" + params.join(\"&\") : \"\";\n}\n/**\r\n * Decodes a querystring (e.g. ?arg=val&arg2=val2) into a params object\r\n * (e.g. {arg: 'val', arg2: 'val2'})\r\n */ function $9b50b37fb8824044$export$c1271ca4c8a70741(querystring) {\n var obj = {};\n var tokens = querystring.replace(/^\\?/, \"\").split(\"&\");\n tokens.forEach(function(token) {\n if (token) {\n var _token_split = (0, $6e952d66071d1a0a$export$fdf2a89c76341bbf)(token.split(\"=\"), 2), key = _token_split[0], value = _token_split[1];\n obj[decodeURIComponent(key)] = decodeURIComponent(value);\n }\n });\n return obj;\n}\n/**\r\n * Extract the query string part of a URL, including the leading question mark (if present).\r\n */ function $9b50b37fb8824044$export$1a8408415472d8ed(url) {\n var queryStart = url.indexOf(\"?\");\n if (!queryStart) return \"\";\n var fragmentStart = url.indexOf(\"#\", queryStart);\n return url.substring(queryStart, fragmentStart > 0 ? fragmentStart : undefined);\n}\n/**\r\n * @license\r\n * Copyright 2017 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */ /**\r\n * @fileoverview SHA-1 cryptographic hash.\r\n * Variable names follow the notation in FIPS PUB 180-3:\r\n * http://csrc.nist.gov/publications/fips/fips180-3/fips180-3_final.pdf.\r\n *\r\n * Usage:\r\n * var sha1 = new sha1();\r\n * sha1.update(bytes);\r\n * var hash = sha1.digest();\r\n *\r\n * Performance:\r\n * Chrome 23: ~400 Mbit/s\r\n * Firefox 16: ~250 Mbit/s\r\n *\r\n */ /**\r\n * SHA-1 cryptographic hash constructor.\r\n *\r\n * The properties declared here are discussed in the above algorithm document.\r\n * @constructor\r\n * @final\r\n * @struct\r\n */ var $9b50b37fb8824044$export$c85d589bf4e25fef = /*#__PURE__*/ function() {\n \"use strict\";\n function Sha1() {\n (0, $0c3f79e99c83f58f$export$2996f80ef42b8419)(this, Sha1);\n /**\r\n * Holds the previous values of accumulated variables a-e in the compress_\r\n * function.\r\n * @private\r\n */ this.chain_ = [];\n /**\r\n * A buffer holding the partially computed hash result.\r\n * @private\r\n */ this.buf_ = [];\n /**\r\n * An array of 80 bytes, each a part of the message to be hashed. Referred to\r\n * as the message schedule in the docs.\r\n * @private\r\n */ this.W_ = [];\n /**\r\n * Contains data needed to pad messages less than 64 bytes.\r\n * @private\r\n */ this.pad_ = [];\n /**\r\n * @private {number}\r\n */ this.inbuf_ = 0;\n /**\r\n * @private {number}\r\n */ this.total_ = 0;\n this.blockSize = 64;\n this.pad_[0] = 128;\n for(var i = 1; i < this.blockSize; ++i)this.pad_[i] = 0;\n this.reset();\n }\n (0, $a27186eefd8c4b26$export$d60067ff2358eee8)(Sha1, [\n {\n key: \"reset\",\n value: function reset() {\n this.chain_[0] = 0x67452301;\n this.chain_[1] = 0xefcdab89;\n this.chain_[2] = 0x98badcfe;\n this.chain_[3] = 0x10325476;\n this.chain_[4] = 0xc3d2e1f0;\n this.inbuf_ = 0;\n this.total_ = 0;\n }\n },\n {\n /**\r\n * Internal compress helper function.\r\n * @param buf Block to compress.\r\n * @param offset Offset of the block in the buffer.\r\n * @private\r\n */ key: \"compress_\",\n value: function compress_(buf, offset) {\n if (!offset) offset = 0;\n var W = this.W_;\n // get 16 big endian words\n if (typeof buf === \"string\") for(var i = 0; i < 16; i++){\n // TODO(user): [bug 8140122] Recent versions of Safari for Mac OS and iOS\n // have a bug that turns the post-increment ++ operator into pre-increment\n // during JIT compilation. We have code that depends heavily on SHA-1 for\n // correctness and which is affected by this bug, so I've removed all uses\n // of post-increment ++ in which the result value is used. We can revert\n // this change once the Safari bug\n // (https://bugs.webkit.org/show_bug.cgi?id=109036) has been fixed and\n // most clients have been updated.\n W[i] = buf.charCodeAt(offset) << 24 | buf.charCodeAt(offset + 1) << 16 | buf.charCodeAt(offset + 2) << 8 | buf.charCodeAt(offset + 3);\n offset += 4;\n }\n else for(var i1 = 0; i1 < 16; i1++){\n W[i1] = buf[offset] << 24 | buf[offset + 1] << 16 | buf[offset + 2] << 8 | buf[offset + 3];\n offset += 4;\n }\n // expand to 80 words\n for(var i2 = 16; i2 < 80; i2++){\n var t = W[i2 - 3] ^ W[i2 - 8] ^ W[i2 - 14] ^ W[i2 - 16];\n W[i2] = (t << 1 | t >>> 31) & 0xffffffff;\n }\n var a = this.chain_[0];\n var b = this.chain_[1];\n var c = this.chain_[2];\n var d = this.chain_[3];\n var e = this.chain_[4];\n var f, k;\n // TODO(user): Try to unroll this loop to speed up the computation.\n for(var i3 = 0; i3 < 80; i3++){\n if (i3 < 40) {\n if (i3 < 20) {\n f = d ^ b & (c ^ d);\n k = 0x5a827999;\n } else {\n f = b ^ c ^ d;\n k = 0x6ed9eba1;\n }\n } else if (i3 < 60) {\n f = b & c | d & (b | c);\n k = 0x8f1bbcdc;\n } else {\n f = b ^ c ^ d;\n k = 0xca62c1d6;\n }\n var t1 = (a << 5 | a >>> 27) + f + e + k + W[i3] & 0xffffffff;\n e = d;\n d = c;\n c = (b << 30 | b >>> 2) & 0xffffffff;\n b = a;\n a = t1;\n }\n this.chain_[0] = this.chain_[0] + a & 0xffffffff;\n this.chain_[1] = this.chain_[1] + b & 0xffffffff;\n this.chain_[2] = this.chain_[2] + c & 0xffffffff;\n this.chain_[3] = this.chain_[3] + d & 0xffffffff;\n this.chain_[4] = this.chain_[4] + e & 0xffffffff;\n }\n },\n {\n key: \"update\",\n value: function update(bytes, length) {\n // TODO(johnlenz): tighten the function signature and remove this check\n if (bytes == null) return;\n if (length === undefined) length = bytes.length;\n var lengthMinusBlock = length - this.blockSize;\n var n = 0;\n // Using local instead of member variables gives ~5% speedup on Firefox 16.\n var buf = this.buf_;\n var inbuf = this.inbuf_;\n // The outer while loop should execute at most twice.\n while(n < length){\n // When we have no data in the block to top up, we can directly process the\n // input buffer (assuming it contains sufficient data). This gives ~25%\n // speedup on Chrome 23 and ~15% speedup on Firefox 16, but requires that\n // the data is provided in large chunks (or in multiples of 64 bytes).\n if (inbuf === 0) while(n <= lengthMinusBlock){\n this.compress_(bytes, n);\n n += this.blockSize;\n }\n if (typeof bytes === \"string\") while(n < length){\n buf[inbuf] = bytes.charCodeAt(n);\n ++inbuf;\n ++n;\n if (inbuf === this.blockSize) {\n this.compress_(buf);\n inbuf = 0;\n break;\n }\n }\n else while(n < length){\n buf[inbuf] = bytes[n];\n ++inbuf;\n ++n;\n if (inbuf === this.blockSize) {\n this.compress_(buf);\n inbuf = 0;\n break;\n }\n }\n }\n this.inbuf_ = inbuf;\n this.total_ += length;\n }\n },\n {\n /** @override */ key: \"digest\",\n value: function digest() {\n var digest = [];\n var totalBits = this.total_ * 8;\n // Add pad 0x80 0x00*.\n if (this.inbuf_ < 56) this.update(this.pad_, 56 - this.inbuf_);\n else this.update(this.pad_, this.blockSize - (this.inbuf_ - 56));\n // Add # bits.\n for(var i = this.blockSize - 1; i >= 56; i--){\n this.buf_[i] = totalBits & 255;\n totalBits /= 256; // Don't use bit-shifting here!\n }\n this.compress_(this.buf_);\n var n = 0;\n for(var i1 = 0; i1 < 5; i1++)for(var j = 24; j >= 0; j -= 8){\n digest[n] = this.chain_[i1] >> j & 255;\n ++n;\n }\n return digest;\n }\n }\n ]);\n return Sha1;\n}();\n/**\r\n * Helper to make a Subscribe function (just like Promise helps make a\r\n * Thenable).\r\n *\r\n * @param executor Function which can make calls to a single Observer\r\n * as a proxy.\r\n * @param onNoObservers Callback when count of Observers goes to zero.\r\n */ function $9b50b37fb8824044$export$364097d812234b3f(executor, onNoObservers) {\n var proxy = new $9b50b37fb8824044$var$ObserverProxy(executor, onNoObservers);\n return proxy.subscribe.bind(proxy);\n}\n/**\r\n * Implement fan-out for any number of Observers attached via a subscribe\r\n * function.\r\n */ var $9b50b37fb8824044$var$ObserverProxy = /*#__PURE__*/ function() {\n \"use strict\";\n function ObserverProxy(executor, onNoObservers) {\n var _this = this;\n (0, $0c3f79e99c83f58f$export$2996f80ef42b8419)(this, ObserverProxy);\n this.observers = [];\n this.unsubscribes = [];\n this.observerCount = 0;\n // Micro-task scheduling by calling task.then().\n this.task = Promise.resolve();\n this.finalized = false;\n this.onNoObservers = onNoObservers;\n // Call the executor asynchronously so subscribers that are called\n // synchronously after the creation of the subscribe function\n // can still receive the very first value generated in the executor.\n this.task.then(function() {\n executor(_this);\n }).catch(function(e) {\n _this.error(e);\n });\n }\n (0, $a27186eefd8c4b26$export$d60067ff2358eee8)(ObserverProxy, [\n {\n key: \"next\",\n value: function next(value) {\n this.forEachObserver(function(observer) {\n observer.next(value);\n });\n }\n },\n {\n key: \"error\",\n value: function error(error) {\n this.forEachObserver(function(observer) {\n observer.error(error);\n });\n this.close(error);\n }\n },\n {\n key: \"complete\",\n value: function complete() {\n this.forEachObserver(function(observer) {\n observer.complete();\n });\n this.close();\n }\n },\n {\n /**\r\n * Subscribe function that can be used to add an Observer to the fan-out list.\r\n *\r\n * - We require that no event is sent to a subscriber sychronously to their\r\n * call to subscribe().\r\n */ key: \"subscribe\",\n value: function subscribe(nextOrObserver, error, complete) {\n var _this = this;\n var observer;\n if (nextOrObserver === undefined && error === undefined && complete === undefined) throw new Error(\"Missing Observer.\");\n // Assemble an Observer object when passed as callback functions.\n if ($9b50b37fb8824044$var$implementsAnyMethods(nextOrObserver, [\n \"next\",\n \"error\",\n \"complete\"\n ])) observer = nextOrObserver;\n else observer = {\n next: nextOrObserver,\n error: error,\n complete: complete\n };\n if (observer.next === undefined) observer.next = $9b50b37fb8824044$var$noop;\n if (observer.error === undefined) observer.error = $9b50b37fb8824044$var$noop;\n if (observer.complete === undefined) observer.complete = $9b50b37fb8824044$var$noop;\n var unsub = this.unsubscribeOne.bind(this, this.observers.length);\n // Attempt to subscribe to a terminated Observable - we\n // just respond to the Observer with the final error or complete\n // event.\n if (this.finalized) // eslint-disable-next-line @typescript-eslint/no-floating-promises\n this.task.then(function() {\n try {\n if (_this.finalError) observer.error(_this.finalError);\n else observer.complete();\n } catch (e) {\n // nothing\n }\n return;\n });\n this.observers.push(observer);\n return unsub;\n }\n },\n {\n // Unsubscribe is synchronous - we guarantee that no events are sent to\n // any unsubscribed Observer.\n key: \"unsubscribeOne\",\n value: function unsubscribeOne(i) {\n if (this.observers === undefined || this.observers[i] === undefined) return;\n delete this.observers[i];\n this.observerCount -= 1;\n if (this.observerCount === 0 && this.onNoObservers !== undefined) this.onNoObservers(this);\n }\n },\n {\n key: \"forEachObserver\",\n value: function forEachObserver(fn) {\n if (this.finalized) // Already closed by previous event....just eat the additional values.\n return;\n // Since sendOne calls asynchronously - there is no chance that\n // this.observers will become undefined.\n for(var i = 0; i < this.observers.length; i++)this.sendOne(i, fn);\n }\n },\n {\n // Call the Observer via one of it's callback function. We are careful to\n // confirm that the observe has not been unsubscribed since this asynchronous\n // function had been queued.\n key: \"sendOne\",\n value: function sendOne(i, fn) {\n var _this = this;\n // Execute the callback asynchronously\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\n this.task.then(function() {\n if (_this.observers !== undefined && _this.observers[i] !== undefined) try {\n fn(_this.observers[i]);\n } catch (e) {\n // Ignore exceptions raised in Observers or missing methods of an\n // Observer.\n // Log error to console. b/31404806\n if (typeof console !== \"undefined\" && console.error) console.error(e);\n }\n });\n }\n },\n {\n key: \"close\",\n value: function close(err) {\n var _this = this;\n if (this.finalized) return;\n this.finalized = true;\n if (err !== undefined) this.finalError = err;\n // Proxy is no longer needed - garbage collect references\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\n this.task.then(function() {\n _this.observers = undefined;\n _this.onNoObservers = undefined;\n });\n }\n }\n ]);\n return ObserverProxy;\n}();\n/** Turn synchronous function into one called asynchronously. */ // eslint-disable-next-line @typescript-eslint/ban-types\nfunction $9b50b37fb8824044$export$12af436354f1a4f7(fn, onError) {\n return function() {\n for(var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++){\n args[_key] = arguments[_key];\n }\n Promise.resolve(true).then(function() {\n fn.apply(void 0, (0, $a279000f7ad0c22a$export$1b5e630bc3aea29f)(args));\n }).catch(function(error) {\n if (onError) onError(error);\n });\n };\n}\n/**\r\n * Return true if the object passed in implements any of the named methods.\r\n */ function $9b50b37fb8824044$var$implementsAnyMethods(obj, methods) {\n if (typeof obj !== \"object\" || obj === null) return false;\n var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;\n try {\n for(var _iterator = methods[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){\n var method = _step.value;\n if (method in obj && typeof obj[method] === \"function\") return true;\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally{\n try {\n if (!_iteratorNormalCompletion && _iterator.return != null) {\n _iterator.return();\n }\n } finally{\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n return false;\n}\nfunction $9b50b37fb8824044$var$noop() {\n// do nothing\n}\n/**\r\n * @license\r\n * Copyright 2017 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */ /**\r\n * Check to make sure the appropriate number of arguments are provided for a public function.\r\n * Throws an error if it fails.\r\n *\r\n * @param fnName The function name\r\n * @param minCount The minimum number of arguments to allow for the function call\r\n * @param maxCount The maximum number of argument to allow for the function call\r\n * @param argCount The actual number of arguments provided.\r\n */ var $9b50b37fb8824044$export$20164226a0ed35c3 = function validateArgCount(fnName, minCount, maxCount, argCount) {\n var argError;\n if (argCount < minCount) argError = \"at least \" + minCount;\n else if (argCount > maxCount) argError = maxCount === 0 ? \"none\" : \"no more than \" + maxCount;\n if (argError) {\n var error = fnName + \" failed: Was called with \" + argCount + (argCount === 1 ? \" argument.\" : \" arguments.\") + \" Expects \" + argError + \".\";\n throw new Error(error);\n }\n};\n/**\r\n * Generates a string to prefix an error message about failed argument validation\r\n *\r\n * @param fnName The function name\r\n * @param argName The name of the argument\r\n * @return The prefix to add to the error thrown for validation.\r\n */ function $9b50b37fb8824044$export$adea4917e02d93dc(fnName, argName) {\n return \"\".concat(fnName, \" failed: \").concat(argName, \" argument \");\n}\n/**\r\n * @param fnName\r\n * @param argumentNumber\r\n * @param namespace\r\n * @param optional\r\n */ function $9b50b37fb8824044$export$8eef22622e725943(fnName, namespace, optional) {\n if (optional && !namespace) return;\n if (typeof namespace !== \"string\") //TODO: I should do more validation here. We only allow certain chars in namespaces.\n throw new Error($9b50b37fb8824044$export$adea4917e02d93dc(fnName, \"namespace\") + \"must be a valid firebase namespace.\");\n}\nfunction $9b50b37fb8824044$export$5bcd2a2eb6640dfa(fnName, argumentName, // eslint-disable-next-line @typescript-eslint/ban-types\ncallback, optional) {\n if (optional && !callback) return;\n if (typeof callback !== \"function\") throw new Error($9b50b37fb8824044$export$adea4917e02d93dc(fnName, argumentName) + \"must be a valid function.\");\n}\nfunction $9b50b37fb8824044$export$df77539402cfb523(fnName, argumentName, context, optional) {\n if (optional && !context) return;\n if (typeof context !== \"object\" || context === null) throw new Error($9b50b37fb8824044$export$adea4917e02d93dc(fnName, argumentName) + \"must be a valid context object.\");\n}\n/**\r\n * @license\r\n * Copyright 2017 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */ // Code originally came from goog.crypt.stringToUtf8ByteArray, but for some reason they\n// automatically replaced '\\r\\n' with '\\n', and they didn't handle surrogate pairs,\n// so it's been modified.\n// Note that not all Unicode characters appear as single characters in JavaScript strings.\n// fromCharCode returns the UTF-16 encoding of a character - so some Unicode characters\n// use 2 characters in Javascript. All 4-byte UTF-8 characters begin with a first\n// character in the range 0xD800 - 0xDBFF (the first character of a so-called surrogate\n// pair).\n// See http://www.ecma-international.org/ecma-262/5.1/#sec-15.1.3\n/**\r\n * @param {string} str\r\n * @return {Array}\r\n */ var $9b50b37fb8824044$export$655666783217a925 = function stringToByteArray(str) {\n var out = [];\n var p = 0;\n for(var i = 0; i < str.length; i++){\n var c = str.charCodeAt(i);\n // Is this the lead surrogate in a surrogate pair?\n if (c >= 0xd800 && c <= 0xdbff) {\n var high = c - 0xd800; // the high 10 bits.\n i++;\n $9b50b37fb8824044$export$a7a9523472993e97(i < str.length, \"Surrogate pair missing trail surrogate.\");\n var low = str.charCodeAt(i) - 0xdc00; // the low 10 bits.\n c = 0x10000 + (high << 10) + low;\n }\n if (c < 128) out[p++] = c;\n else if (c < 2048) {\n out[p++] = c >> 6 | 192;\n out[p++] = c & 63 | 128;\n } else if (c < 65536) {\n out[p++] = c >> 12 | 224;\n out[p++] = c >> 6 & 63 | 128;\n out[p++] = c & 63 | 128;\n } else {\n out[p++] = c >> 18 | 240;\n out[p++] = c >> 12 & 63 | 128;\n out[p++] = c >> 6 & 63 | 128;\n out[p++] = c & 63 | 128;\n }\n }\n return out;\n};\n/**\r\n * Calculate length without actually converting; useful for doing cheaper validation.\r\n * @param {string} str\r\n * @return {number}\r\n */ var $9b50b37fb8824044$export$9536dc0a75b20bf9 = function stringLength(str) {\n var p = 0;\n for(var i = 0; i < str.length; i++){\n var c = str.charCodeAt(i);\n if (c < 128) p++;\n else if (c < 2048) p += 2;\n else if (c >= 0xd800 && c <= 0xdbff) {\n // Lead surrogate of a surrogate pair. The pair together will take 4 bytes to represent.\n p += 4;\n i++; // skip trail surrogate.\n } else p += 3;\n }\n return p;\n};\n/**\r\n * @license\r\n * Copyright 2022 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */ /**\r\n * Copied from https://stackoverflow.com/a/2117523\r\n * Generates a new uuid.\r\n * @public\r\n */ var $9b50b37fb8824044$export$abe4376e1bf796d6 = function uuidv4() {\n return \"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx\".replace(/[xy]/g, function(c) {\n var r = Math.random() * 16 | 0, v = c === \"x\" ? r : r & 0x3 | 0x8;\n return v.toString(16);\n });\n};\n/**\r\n * @license\r\n * Copyright 2019 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */ /**\r\n * The amount of milliseconds to exponentially increase.\r\n */ var $9b50b37fb8824044$var$DEFAULT_INTERVAL_MILLIS = 1000;\n/**\r\n * The factor to backoff by.\r\n * Should be a number greater than 1.\r\n */ var $9b50b37fb8824044$var$DEFAULT_BACKOFF_FACTOR = 2;\n/**\r\n * The maximum milliseconds to increase to.\r\n *\r\n *

Visible for testing\r\n */ var $9b50b37fb8824044$export$bdf1213ffbdb096e = 14400000; // Four hours, like iOS and Android.\n/**\r\n * The percentage of backoff time to randomize by.\r\n * See\r\n * http://go/safe-client-behavior#step-1-determine-the-appropriate-retry-interval-to-handle-spike-traffic\r\n * for context.\r\n *\r\n *

Visible for testing\r\n */ var $9b50b37fb8824044$export$3518ed2cfe61fa30 = 0.5;\n/**\r\n * Based on the backoff method from\r\n * https://github.com/google/closure-library/blob/master/closure/goog/math/exponentialbackoff.js.\r\n * Extracted here so we don't need to pass metadata and a stateful ExponentialBackoff object around.\r\n */ function $9b50b37fb8824044$export$4d810c0ca64ed8e9(backoffCount) {\n var intervalMillis = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : $9b50b37fb8824044$var$DEFAULT_INTERVAL_MILLIS, backoffFactor = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : $9b50b37fb8824044$var$DEFAULT_BACKOFF_FACTOR;\n // Calculates an exponentially increasing value.\n // Deviation: calculates value from count and a constant interval, so we only need to save value\n // and count to restore state.\n var currBaseValue = intervalMillis * Math.pow(backoffFactor, backoffCount);\n // A random \"fuzz\" to avoid waves of retries.\n // Deviation: randomFactor is required.\n var randomWait = Math.round(// A fraction of the backoff value to add/subtract.\n // Deviation: changes multiplication order to improve readability.\n $9b50b37fb8824044$export$3518ed2cfe61fa30 * currBaseValue * // A random float (rounded to int by Math.round above) in the range [-1, 1]. Determines\n // if we add or subtract.\n (Math.random() - 0.5) * 2);\n // Limits backoff to max to avoid effectively permanent backoff.\n return Math.min($9b50b37fb8824044$export$bdf1213ffbdb096e, currBaseValue + randomWait);\n}\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */ /**\r\n * Provide English ordinal letters after a number\r\n */ function $9b50b37fb8824044$export$7bb39f879164e4ac(i) {\n if (!Number.isFinite(i)) return \"\".concat(i);\n return i + $9b50b37fb8824044$var$indicator(i);\n}\nfunction $9b50b37fb8824044$var$indicator(i) {\n i = Math.abs(i);\n var cent = i % 100;\n if (cent >= 10 && cent <= 20) return \"th\";\n var dec = i % 10;\n if (dec === 1) return \"st\";\n if (dec === 2) return \"nd\";\n if (dec === 3) return \"rd\";\n return \"th\";\n}\n/**\r\n * @license\r\n * Copyright 2021 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */ function $9b50b37fb8824044$export$4befe9b5fa509a1b(service) {\n if (service && service._delegate) return service._delegate;\n else return service;\n}\n\n\n/**\r\n * Component for service name T, e.g. `auth`, `auth-internal`\r\n */ var $601a68140873c3ae$export$16fa2f45be04daa8 = /*#__PURE__*/ function() {\n \"use strict\";\n function Component(name, instanceFactory, type) {\n (0, $0c3f79e99c83f58f$export$2996f80ef42b8419)(this, Component);\n this.name = name;\n this.instanceFactory = instanceFactory;\n this.type = type;\n this.multipleInstances = false;\n /**\r\n * Properties to be added to the service namespace\r\n */ this.serviceProps = {};\n this.instantiationMode = \"LAZY\" /* InstantiationMode.LAZY */ ;\n this.onInstanceCreated = null;\n }\n (0, $a27186eefd8c4b26$export$d60067ff2358eee8)(Component, [\n {\n key: \"setInstantiationMode\",\n value: function setInstantiationMode(mode) {\n this.instantiationMode = mode;\n return this;\n }\n },\n {\n key: \"setMultipleInstances\",\n value: function setMultipleInstances(multipleInstances) {\n this.multipleInstances = multipleInstances;\n return this;\n }\n },\n {\n key: \"setServiceProps\",\n value: function setServiceProps(props) {\n this.serviceProps = props;\n return this;\n }\n },\n {\n key: \"setInstanceCreatedCallback\",\n value: function setInstanceCreatedCallback(callback) {\n this.onInstanceCreated = callback;\n return this;\n }\n }\n ]);\n return Component;\n}();\n/**\r\n * @license\r\n * Copyright 2019 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */ var $601a68140873c3ae$var$DEFAULT_ENTRY_NAME = \"[DEFAULT]\";\n/**\r\n * @license\r\n * Copyright 2019 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */ /**\r\n * Provider for instance for service name T, e.g. 'auth', 'auth-internal'\r\n * NameServiceMapping[T] is an alias for the type of the instance\r\n */ var $601a68140873c3ae$export$2881499e37b75b9a = /*#__PURE__*/ function() {\n \"use strict\";\n function Provider(name, container) {\n (0, $0c3f79e99c83f58f$export$2996f80ef42b8419)(this, Provider);\n this.name = name;\n this.container = container;\n this.component = null;\n this.instances = new Map();\n this.instancesDeferred = new Map();\n this.instancesOptions = new Map();\n this.onInitCallbacks = new Map();\n }\n (0, $a27186eefd8c4b26$export$d60067ff2358eee8)(Provider, [\n {\n /**\r\n * @param identifier A provider can provide mulitple instances of a service\r\n * if this.component.multipleInstances is true.\r\n */ key: \"get\",\n value: function get(identifier) {\n // if multipleInstances is not supported, use the default name\n var normalizedIdentifier = this.normalizeInstanceIdentifier(identifier);\n if (!this.instancesDeferred.has(normalizedIdentifier)) {\n var deferred = new (0, $9b50b37fb8824044$export$85f6557964517f1a)();\n this.instancesDeferred.set(normalizedIdentifier, deferred);\n if (this.isInitialized(normalizedIdentifier) || this.shouldAutoInitialize()) // initialize the service if it can be auto-initialized\n try {\n var instance = this.getOrInitializeService({\n instanceIdentifier: normalizedIdentifier\n });\n if (instance) deferred.resolve(instance);\n } catch (e) {\n // when the instance factory throws an exception during get(), it should not cause\n // a fatal error. We just return the unresolved promise in this case.\n }\n }\n return this.instancesDeferred.get(normalizedIdentifier).promise;\n }\n },\n {\n key: \"getImmediate\",\n value: function getImmediate(options) {\n var _a;\n // if multipleInstances is not supported, use the default name\n var normalizedIdentifier = this.normalizeInstanceIdentifier(options === null || options === void 0 ? void 0 : options.identifier);\n var optional = (_a = options === null || options === void 0 ? void 0 : options.optional) !== null && _a !== void 0 ? _a : false;\n if (this.isInitialized(normalizedIdentifier) || this.shouldAutoInitialize()) try {\n return this.getOrInitializeService({\n instanceIdentifier: normalizedIdentifier\n });\n } catch (e) {\n if (optional) return null;\n else throw e;\n }\n else {\n // In case a component is not initialized and should/can not be auto-initialized at the moment, return null if the optional flag is set, or throw\n if (optional) return null;\n else throw Error(\"Service \".concat(this.name, \" is not available\"));\n }\n }\n },\n {\n key: \"getComponent\",\n value: function getComponent() {\n return this.component;\n }\n },\n {\n key: \"setComponent\",\n value: function setComponent(component) {\n if (component.name !== this.name) throw Error(\"Mismatching Component \".concat(component.name, \" for Provider \").concat(this.name, \".\"));\n if (this.component) throw Error(\"Component for \".concat(this.name, \" has already been provided\"));\n this.component = component;\n // return early without attempting to initialize the component if the component requires explicit initialization (calling `Provider.initialize()`)\n if (!this.shouldAutoInitialize()) return;\n // if the service is eager, initialize the default instance\n if ($601a68140873c3ae$var$isComponentEager(component)) try {\n this.getOrInitializeService({\n instanceIdentifier: $601a68140873c3ae$var$DEFAULT_ENTRY_NAME\n });\n } catch (e) {\n // when the instance factory for an eager Component throws an exception during the eager\n // initialization, it should not cause a fatal error.\n // TODO: Investigate if we need to make it configurable, because some component may want to cause\n // a fatal error in this case?\n }\n var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;\n try {\n // Create service instances for the pending promises and resolve them\n // NOTE: if this.multipleInstances is false, only the default instance will be created\n // and all promises with resolve with it regardless of the identifier.\n for(var _iterator = this.instancesDeferred.entries()[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){\n var _step_value = (0, $6e952d66071d1a0a$export$fdf2a89c76341bbf)(_step.value, 2), instanceIdentifier = _step_value[0], instanceDeferred = _step_value[1];\n var normalizedIdentifier = this.normalizeInstanceIdentifier(instanceIdentifier);\n try {\n // `getOrInitializeService()` should always return a valid instance since a component is guaranteed. use ! to make typescript happy.\n var instance = this.getOrInitializeService({\n instanceIdentifier: normalizedIdentifier\n });\n instanceDeferred.resolve(instance);\n } catch (e) {\n // when the instance factory throws an exception, it should not cause\n // a fatal error. We just leave the promise unresolved.\n }\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally{\n try {\n if (!_iteratorNormalCompletion && _iterator.return != null) {\n _iterator.return();\n }\n } finally{\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n }\n },\n {\n key: \"clearInstance\",\n value: function clearInstance() {\n var identifier = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : $601a68140873c3ae$var$DEFAULT_ENTRY_NAME;\n this.instancesDeferred.delete(identifier);\n this.instancesOptions.delete(identifier);\n this.instances.delete(identifier);\n }\n },\n {\n key: \"delete\",\n value: // app.delete() will call this method on every provider to delete the services\n // TODO: should we mark the provider as deleted?\n function _delete() {\n var _this = this;\n return (0, $9167c88d5d99601b$export$7c398597f8905a1)(function() {\n var services;\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n switch(_state.label){\n case 0:\n services = Array.from(_this.instances.values());\n return [\n 4,\n Promise.all((0, $a279000f7ad0c22a$export$1b5e630bc3aea29f)(services.filter(function(service) {\n return \"INTERNAL\" in service;\n }) // legacy services\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n .map(function(service) {\n return service.INTERNAL.delete();\n })).concat((0, $a279000f7ad0c22a$export$1b5e630bc3aea29f)(services.filter(function(service) {\n return \"_delete\" in service;\n }) // modularized services\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n .map(function(service) {\n return service._delete();\n }))))\n ];\n case 1:\n _state.sent();\n return [\n 2\n ];\n }\n });\n })();\n }\n },\n {\n key: \"isComponentSet\",\n value: function isComponentSet() {\n return this.component != null;\n }\n },\n {\n key: \"isInitialized\",\n value: function isInitialized() {\n var identifier = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : $601a68140873c3ae$var$DEFAULT_ENTRY_NAME;\n return this.instances.has(identifier);\n }\n },\n {\n key: \"getOptions\",\n value: function getOptions() {\n var identifier = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : $601a68140873c3ae$var$DEFAULT_ENTRY_NAME;\n return this.instancesOptions.get(identifier) || {};\n }\n },\n {\n key: \"initialize\",\n value: function initialize() {\n var opts = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};\n var _opts_options = opts.options, options = _opts_options === void 0 ? {} : _opts_options;\n var normalizedIdentifier = this.normalizeInstanceIdentifier(opts.instanceIdentifier);\n if (this.isInitialized(normalizedIdentifier)) throw Error(\"\".concat(this.name, \"(\").concat(normalizedIdentifier, \") has already been initialized\"));\n if (!this.isComponentSet()) throw Error(\"Component \".concat(this.name, \" has not been registered yet\"));\n var instance = this.getOrInitializeService({\n instanceIdentifier: normalizedIdentifier,\n options: options\n });\n var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;\n try {\n // resolve any pending promise waiting for the service instance\n for(var _iterator = this.instancesDeferred.entries()[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){\n var _step_value = (0, $6e952d66071d1a0a$export$fdf2a89c76341bbf)(_step.value, 2), instanceIdentifier = _step_value[0], instanceDeferred = _step_value[1];\n var normalizedDeferredIdentifier = this.normalizeInstanceIdentifier(instanceIdentifier);\n if (normalizedIdentifier === normalizedDeferredIdentifier) instanceDeferred.resolve(instance);\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally{\n try {\n if (!_iteratorNormalCompletion && _iterator.return != null) {\n _iterator.return();\n }\n } finally{\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n return instance;\n }\n },\n {\n /**\r\n *\r\n * @param callback - a function that will be invoked after the provider has been initialized by calling provider.initialize().\r\n * The function is invoked SYNCHRONOUSLY, so it should not execute any longrunning tasks in order to not block the program.\r\n *\r\n * @param identifier An optional instance identifier\r\n * @returns a function to unregister the callback\r\n */ key: \"onInit\",\n value: function onInit(callback, identifier) {\n var _a;\n var normalizedIdentifier = this.normalizeInstanceIdentifier(identifier);\n var existingCallbacks = (_a = this.onInitCallbacks.get(normalizedIdentifier)) !== null && _a !== void 0 ? _a : new Set();\n existingCallbacks.add(callback);\n this.onInitCallbacks.set(normalizedIdentifier, existingCallbacks);\n var existingInstance = this.instances.get(normalizedIdentifier);\n if (existingInstance) callback(existingInstance, normalizedIdentifier);\n return function() {\n existingCallbacks.delete(callback);\n };\n }\n },\n {\n /**\r\n * Invoke onInit callbacks synchronously\r\n * @param instance the service instance`\r\n */ key: \"invokeOnInitCallbacks\",\n value: function invokeOnInitCallbacks(instance, identifier) {\n var callbacks = this.onInitCallbacks.get(identifier);\n if (!callbacks) return;\n var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;\n try {\n for(var _iterator = callbacks[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){\n var callback = _step.value;\n try {\n callback(instance, identifier);\n } catch (_a) {\n // ignore errors in the onInit callback\n }\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally{\n try {\n if (!_iteratorNormalCompletion && _iterator.return != null) {\n _iterator.return();\n }\n } finally{\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n }\n },\n {\n key: \"getOrInitializeService\",\n value: function getOrInitializeService(param) {\n var instanceIdentifier = param.instanceIdentifier, _param_options = param.options, options = _param_options === void 0 ? {} : _param_options;\n var instance = this.instances.get(instanceIdentifier);\n if (!instance && this.component) {\n instance = this.component.instanceFactory(this.container, {\n instanceIdentifier: $601a68140873c3ae$var$normalizeIdentifierForFactory(instanceIdentifier),\n options: options\n });\n this.instances.set(instanceIdentifier, instance);\n this.instancesOptions.set(instanceIdentifier, options);\n /**\r\n * Invoke onInit listeners.\r\n * Note this.component.onInstanceCreated is different, which is used by the component creator,\r\n * while onInit listeners are registered by consumers of the provider.\r\n */ this.invokeOnInitCallbacks(instance, instanceIdentifier);\n /**\r\n * Order is important\r\n * onInstanceCreated() should be called after this.instances.set(instanceIdentifier, instance); which\r\n * makes `isInitialized()` return true.\r\n */ if (this.component.onInstanceCreated) try {\n this.component.onInstanceCreated(this.container, instanceIdentifier, instance);\n } catch (_a) {\n // ignore errors in the onInstanceCreatedCallback\n }\n }\n return instance || null;\n }\n },\n {\n key: \"normalizeInstanceIdentifier\",\n value: function normalizeInstanceIdentifier() {\n var identifier = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : $601a68140873c3ae$var$DEFAULT_ENTRY_NAME;\n if (this.component) return this.component.multipleInstances ? identifier : $601a68140873c3ae$var$DEFAULT_ENTRY_NAME;\n else return identifier; // assume multiple instances are supported before the component is provided.\n }\n },\n {\n key: \"shouldAutoInitialize\",\n value: function shouldAutoInitialize() {\n return !!this.component && this.component.instantiationMode !== \"EXPLICIT\" /* InstantiationMode.EXPLICIT */ ;\n }\n }\n ]);\n return Provider;\n}();\n// undefined should be passed to the service factory for the default instance\nfunction $601a68140873c3ae$var$normalizeIdentifierForFactory(identifier) {\n return identifier === $601a68140873c3ae$var$DEFAULT_ENTRY_NAME ? undefined : identifier;\n}\nfunction $601a68140873c3ae$var$isComponentEager(component) {\n return component.instantiationMode === \"EAGER\" /* InstantiationMode.EAGER */ ;\n}\n/**\r\n * @license\r\n * Copyright 2019 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */ /**\r\n * ComponentContainer that provides Providers for service name T, e.g. `auth`, `auth-internal`\r\n */ var $601a68140873c3ae$export$436a80eea5d5c0c5 = /*#__PURE__*/ function() {\n \"use strict\";\n function ComponentContainer(name) {\n (0, $0c3f79e99c83f58f$export$2996f80ef42b8419)(this, ComponentContainer);\n this.name = name;\n this.providers = new Map();\n }\n (0, $a27186eefd8c4b26$export$d60067ff2358eee8)(ComponentContainer, [\n {\n /**\r\n *\r\n * @param component Component being added\r\n * @param overwrite When a component with the same name has already been registered,\r\n * if overwrite is true: overwrite the existing component with the new component and create a new\r\n * provider with the new component. It can be useful in tests where you want to use different mocks\r\n * for different tests.\r\n * if overwrite is false: throw an exception\r\n */ key: \"addComponent\",\n value: function addComponent(component) {\n var provider = this.getProvider(component.name);\n if (provider.isComponentSet()) throw new Error(\"Component \".concat(component.name, \" has already been registered with \").concat(this.name));\n provider.setComponent(component);\n }\n },\n {\n key: \"addOrOverwriteComponent\",\n value: function addOrOverwriteComponent(component) {\n var provider = this.getProvider(component.name);\n if (provider.isComponentSet()) // delete the existing provider from the container, so we can register the new component\n this.providers.delete(component.name);\n this.addComponent(component);\n }\n },\n {\n /**\r\n * getProvider provides a type safe interface where it can only be called with a field name\r\n * present in NameServiceMapping interface.\r\n *\r\n * Firebase SDKs providing services should extend NameServiceMapping interface to register\r\n * themselves.\r\n */ key: \"getProvider\",\n value: function getProvider(name) {\n if (this.providers.has(name)) return this.providers.get(name);\n // create a Provider for a service that hasn't registered with Firebase\n var provider = new $601a68140873c3ae$export$2881499e37b75b9a(name, this);\n this.providers.set(name, provider);\n return provider;\n }\n },\n {\n key: \"getProviders\",\n value: function getProviders() {\n return Array.from(this.providers.values());\n }\n }\n ]);\n return ComponentContainer;\n}();\n\n\n/**\r\n * @license\r\n * Copyright 2017 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */ /**\r\n * A container for all of the Logger instances\r\n */ \n\n\n\nvar $01fab7a4d39b7fcc$var$instances = [];\n/**\r\n * The JS SDK supports 5 log levels and also allows a user the ability to\r\n * silence the logs altogether.\r\n *\r\n * The order is a follows:\r\n * DEBUG < VERBOSE < INFO < WARN < ERROR\r\n *\r\n * All of the log types above the current log level will be captured (i.e. if\r\n * you set the log level to `INFO`, errors will still be logged, but `DEBUG` and\r\n * `VERBOSE` logs will not)\r\n */ var $01fab7a4d39b7fcc$export$243e62d78d3b544d;\n(function(LogLevel) {\n LogLevel[LogLevel[\"DEBUG\"] = 0] = \"DEBUG\";\n LogLevel[LogLevel[\"VERBOSE\"] = 1] = \"VERBOSE\";\n LogLevel[LogLevel[\"INFO\"] = 2] = \"INFO\";\n LogLevel[LogLevel[\"WARN\"] = 3] = \"WARN\";\n LogLevel[LogLevel[\"ERROR\"] = 4] = \"ERROR\";\n LogLevel[LogLevel[\"SILENT\"] = 5] = \"SILENT\";\n})($01fab7a4d39b7fcc$export$243e62d78d3b544d || ($01fab7a4d39b7fcc$export$243e62d78d3b544d = {}));\nvar $01fab7a4d39b7fcc$var$levelStringToEnum = {\n \"debug\": $01fab7a4d39b7fcc$export$243e62d78d3b544d.DEBUG,\n \"verbose\": $01fab7a4d39b7fcc$export$243e62d78d3b544d.VERBOSE,\n \"info\": $01fab7a4d39b7fcc$export$243e62d78d3b544d.INFO,\n \"warn\": $01fab7a4d39b7fcc$export$243e62d78d3b544d.WARN,\n \"error\": $01fab7a4d39b7fcc$export$243e62d78d3b544d.ERROR,\n \"silent\": $01fab7a4d39b7fcc$export$243e62d78d3b544d.SILENT\n};\n/**\r\n * The default log level\r\n */ var $01fab7a4d39b7fcc$var$defaultLogLevel = $01fab7a4d39b7fcc$export$243e62d78d3b544d.INFO;\nvar $01fab7a4d39b7fcc$var$_obj;\n/**\r\n * By default, `console.debug` is not displayed in the developer console (in\r\n * chrome). To avoid forcing users to have to opt-in to these logs twice\r\n * (i.e. once for firebase, and once in the console), we are sending `DEBUG`\r\n * logs to the `console.log` function.\r\n */ var $01fab7a4d39b7fcc$var$ConsoleMethod = ($01fab7a4d39b7fcc$var$_obj = {}, (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)($01fab7a4d39b7fcc$var$_obj, $01fab7a4d39b7fcc$export$243e62d78d3b544d.DEBUG, \"log\"), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)($01fab7a4d39b7fcc$var$_obj, $01fab7a4d39b7fcc$export$243e62d78d3b544d.VERBOSE, \"log\"), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)($01fab7a4d39b7fcc$var$_obj, $01fab7a4d39b7fcc$export$243e62d78d3b544d.INFO, \"info\"), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)($01fab7a4d39b7fcc$var$_obj, $01fab7a4d39b7fcc$export$243e62d78d3b544d.WARN, \"warn\"), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)($01fab7a4d39b7fcc$var$_obj, $01fab7a4d39b7fcc$export$243e62d78d3b544d.ERROR, \"error\"), $01fab7a4d39b7fcc$var$_obj);\n/**\r\n * The default log handler will forward DEBUG, VERBOSE, INFO, WARN, and ERROR\r\n * messages on to their corresponding console counterparts (if the log method\r\n * is supported by the current log level)\r\n */ var $01fab7a4d39b7fcc$var$defaultLogHandler = function(instance, logType) {\n for(var _len = arguments.length, args = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++){\n args[_key - 2] = arguments[_key];\n }\n var _console;\n if (logType < instance.logLevel) return;\n var now = new Date().toISOString();\n var method = $01fab7a4d39b7fcc$var$ConsoleMethod[logType];\n if (method) (_console = console)[method].apply(_console, [\n \"[\".concat(now, \"] \").concat(instance.name, \":\")\n ].concat((0, $a279000f7ad0c22a$export$1b5e630bc3aea29f)(args)));\n else throw new Error(\"Attempted to log a message with an invalid logType (value: \".concat(logType, \")\"));\n};\nvar $01fab7a4d39b7fcc$export$efa9a398d6368992 = /*#__PURE__*/ function() {\n \"use strict\";\n function Logger(name) {\n (0, $0c3f79e99c83f58f$export$2996f80ef42b8419)(this, Logger);\n this.name = name;\n /**\r\n * The log level of the given Logger instance.\r\n */ this._logLevel = $01fab7a4d39b7fcc$var$defaultLogLevel;\n /**\r\n * The main (internal) log handler for the Logger instance.\r\n * Can be set to a new function in internal package code but not by user.\r\n */ this._logHandler = $01fab7a4d39b7fcc$var$defaultLogHandler;\n /**\r\n * The optional, additional, user-defined log handler for the Logger instance.\r\n */ this._userLogHandler = null;\n /**\r\n * Capture the current instance for later use\r\n */ $01fab7a4d39b7fcc$var$instances.push(this);\n }\n (0, $a27186eefd8c4b26$export$d60067ff2358eee8)(Logger, [\n {\n key: \"logLevel\",\n get: function get() {\n return this._logLevel;\n },\n set: function set(val) {\n if (!(val in $01fab7a4d39b7fcc$export$243e62d78d3b544d)) throw new TypeError('Invalid value \"'.concat(val, '\" assigned to `logLevel`'));\n this._logLevel = val;\n }\n },\n {\n // Workaround for setter/getter having to be the same type.\n key: \"setLogLevel\",\n value: function setLogLevel(val) {\n this._logLevel = typeof val === \"string\" ? $01fab7a4d39b7fcc$var$levelStringToEnum[val] : val;\n }\n },\n {\n key: \"logHandler\",\n get: function get() {\n return this._logHandler;\n },\n set: function set(val) {\n if (typeof val !== \"function\") throw new TypeError(\"Value assigned to `logHandler` must be a function\");\n this._logHandler = val;\n }\n },\n {\n key: \"userLogHandler\",\n get: function get() {\n return this._userLogHandler;\n },\n set: function set(val) {\n this._userLogHandler = val;\n }\n },\n {\n /**\r\n * The functions below are all based on the `console` interface\r\n */ key: \"debug\",\n value: function debug() {\n for(var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++){\n args[_key] = arguments[_key];\n }\n this._userLogHandler && this._userLogHandler.apply(this, [\n this,\n $01fab7a4d39b7fcc$export$243e62d78d3b544d.DEBUG\n ].concat((0, $a279000f7ad0c22a$export$1b5e630bc3aea29f)(args)));\n this._logHandler.apply(this, [\n this,\n $01fab7a4d39b7fcc$export$243e62d78d3b544d.DEBUG\n ].concat((0, $a279000f7ad0c22a$export$1b5e630bc3aea29f)(args)));\n }\n },\n {\n key: \"log\",\n value: function log() {\n for(var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++){\n args[_key] = arguments[_key];\n }\n this._userLogHandler && this._userLogHandler.apply(this, [\n this,\n $01fab7a4d39b7fcc$export$243e62d78d3b544d.VERBOSE\n ].concat((0, $a279000f7ad0c22a$export$1b5e630bc3aea29f)(args)));\n this._logHandler.apply(this, [\n this,\n $01fab7a4d39b7fcc$export$243e62d78d3b544d.VERBOSE\n ].concat((0, $a279000f7ad0c22a$export$1b5e630bc3aea29f)(args)));\n }\n },\n {\n key: \"info\",\n value: function info() {\n for(var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++){\n args[_key] = arguments[_key];\n }\n this._userLogHandler && this._userLogHandler.apply(this, [\n this,\n $01fab7a4d39b7fcc$export$243e62d78d3b544d.INFO\n ].concat((0, $a279000f7ad0c22a$export$1b5e630bc3aea29f)(args)));\n this._logHandler.apply(this, [\n this,\n $01fab7a4d39b7fcc$export$243e62d78d3b544d.INFO\n ].concat((0, $a279000f7ad0c22a$export$1b5e630bc3aea29f)(args)));\n }\n },\n {\n key: \"warn\",\n value: function warn() {\n for(var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++){\n args[_key] = arguments[_key];\n }\n this._userLogHandler && this._userLogHandler.apply(this, [\n this,\n $01fab7a4d39b7fcc$export$243e62d78d3b544d.WARN\n ].concat((0, $a279000f7ad0c22a$export$1b5e630bc3aea29f)(args)));\n this._logHandler.apply(this, [\n this,\n $01fab7a4d39b7fcc$export$243e62d78d3b544d.WARN\n ].concat((0, $a279000f7ad0c22a$export$1b5e630bc3aea29f)(args)));\n }\n },\n {\n key: \"error\",\n value: function error() {\n for(var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++){\n args[_key] = arguments[_key];\n }\n this._userLogHandler && this._userLogHandler.apply(this, [\n this,\n $01fab7a4d39b7fcc$export$243e62d78d3b544d.ERROR\n ].concat((0, $a279000f7ad0c22a$export$1b5e630bc3aea29f)(args)));\n this._logHandler.apply(this, [\n this,\n $01fab7a4d39b7fcc$export$243e62d78d3b544d.ERROR\n ].concat((0, $a279000f7ad0c22a$export$1b5e630bc3aea29f)(args)));\n }\n }\n ]);\n return Logger;\n}();\nfunction $01fab7a4d39b7fcc$export$c622e99c0ce7b1c9(level) {\n $01fab7a4d39b7fcc$var$instances.forEach(function(inst) {\n inst.setLogLevel(level);\n });\n}\nfunction $01fab7a4d39b7fcc$export$29577d29c84db5f6(logCallback, options) {\n var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;\n try {\n var _loop = function() {\n var instance = _step.value;\n var customLogLevel = null;\n if (options && options.level) customLogLevel = $01fab7a4d39b7fcc$var$levelStringToEnum[options.level];\n if (logCallback === null) instance.userLogHandler = null;\n else instance.userLogHandler = function(instance, level) {\n for(var _len = arguments.length, args = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++){\n args[_key - 2] = arguments[_key];\n }\n var message = args.map(function(arg) {\n if (arg == null) return null;\n else if (typeof arg === \"string\") return arg;\n else if (typeof arg === \"number\" || typeof arg === \"boolean\") return arg.toString();\n else if (arg instanceof Error) return arg.message;\n else try {\n return JSON.stringify(arg);\n } catch (ignored) {\n return null;\n }\n }).filter(function(arg) {\n return arg;\n }).join(\" \");\n if (level >= (customLogLevel !== null && customLogLevel !== void 0 ? customLogLevel : instance.logLevel)) logCallback({\n level: $01fab7a4d39b7fcc$export$243e62d78d3b544d[level].toLowerCase(),\n message: message,\n args: args,\n type: instance.name\n });\n };\n };\n for(var _iterator = $01fab7a4d39b7fcc$var$instances[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true)_loop();\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally{\n try {\n if (!_iteratorNormalCompletion && _iterator.return != null) {\n _iterator.return();\n }\n } finally{\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n}\n\n\n\n\n\nfunction $645eaebd1af01014$var$ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n if (enumerableOnly) symbols = symbols.filter(function(sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n });\n keys.push.apply(keys, symbols);\n }\n return keys;\n}\nfunction $645eaebd1af01014$export$4fa2f4023c9cbda5(target, source) {\n source = source != null ? source : {};\n if (Object.getOwnPropertyDescriptors) Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));\n else $645eaebd1af01014$var$ownKeys(Object(source)).forEach(function(key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n return target;\n}\n\n\n\n\n\nvar $f5e914c8bdbbb5f4$export$23f2a1d2818174ef = function(object, constructors) {\n return constructors.some(function(c) {\n return object instanceof c;\n });\n};\nvar $f5e914c8bdbbb5f4$var$idbProxyableTypes;\nvar $f5e914c8bdbbb5f4$var$cursorAdvanceMethods;\n// This is a function to prevent it throwing up in node environments.\nfunction $f5e914c8bdbbb5f4$var$getIdbProxyableTypes() {\n return $f5e914c8bdbbb5f4$var$idbProxyableTypes || ($f5e914c8bdbbb5f4$var$idbProxyableTypes = [\n IDBDatabase,\n IDBObjectStore,\n IDBIndex,\n IDBCursor,\n IDBTransaction\n ]);\n}\n// This is a function to prevent it throwing up in node environments.\nfunction $f5e914c8bdbbb5f4$var$getCursorAdvanceMethods() {\n return $f5e914c8bdbbb5f4$var$cursorAdvanceMethods || ($f5e914c8bdbbb5f4$var$cursorAdvanceMethods = [\n IDBCursor.prototype.advance,\n IDBCursor.prototype.continue,\n IDBCursor.prototype.continuePrimaryKey\n ]);\n}\nvar $f5e914c8bdbbb5f4$var$cursorRequestMap = new WeakMap();\nvar $f5e914c8bdbbb5f4$var$transactionDoneMap = new WeakMap();\nvar $f5e914c8bdbbb5f4$var$transactionStoreNamesMap = new WeakMap();\nvar $f5e914c8bdbbb5f4$var$transformCache = new WeakMap();\nvar $f5e914c8bdbbb5f4$export$407448d2b89b1813 = new WeakMap();\nfunction $f5e914c8bdbbb5f4$var$promisifyRequest(request) {\n var promise = new Promise(function(resolve, reject) {\n var unlisten = function() {\n request.removeEventListener(\"success\", success);\n request.removeEventListener(\"error\", error);\n };\n var success = function() {\n resolve($f5e914c8bdbbb5f4$export$efccba1c4a2ef57b(request.result));\n unlisten();\n };\n var error = function() {\n reject(request.error);\n unlisten();\n };\n request.addEventListener(\"success\", success);\n request.addEventListener(\"error\", error);\n });\n promise.then(function(value) {\n // Since cursoring reuses the IDBRequest (*sigh*), we cache it for later retrieval\n // (see wrapFunction).\n if (value instanceof IDBCursor) $f5e914c8bdbbb5f4$var$cursorRequestMap.set(value, request);\n // Catching to avoid \"Uncaught Promise exceptions\"\n }).catch(function() {});\n // This mapping exists in reverseTransformCache but doesn't doesn't exist in transformCache. This\n // is because we create many promises from a single IDBRequest.\n $f5e914c8bdbbb5f4$export$407448d2b89b1813.set(promise, request);\n return promise;\n}\nfunction $f5e914c8bdbbb5f4$var$cacheDonePromiseForTransaction(tx) {\n // Early bail if we've already created a done promise for this transaction.\n if ($f5e914c8bdbbb5f4$var$transactionDoneMap.has(tx)) return;\n var done = new Promise(function(resolve, reject) {\n var unlisten = function() {\n tx.removeEventListener(\"complete\", complete);\n tx.removeEventListener(\"error\", error);\n tx.removeEventListener(\"abort\", error);\n };\n var complete = function() {\n resolve();\n unlisten();\n };\n var error = function() {\n reject(tx.error || new DOMException(\"AbortError\", \"AbortError\"));\n unlisten();\n };\n tx.addEventListener(\"complete\", complete);\n tx.addEventListener(\"error\", error);\n tx.addEventListener(\"abort\", error);\n });\n // Cache it for later retrieval.\n $f5e914c8bdbbb5f4$var$transactionDoneMap.set(tx, done);\n}\nvar $f5e914c8bdbbb5f4$var$idbProxyTraps = {\n get: function(target, prop, receiver) {\n if (target instanceof IDBTransaction) {\n // Special handling for transaction.done.\n if (prop === \"done\") return $f5e914c8bdbbb5f4$var$transactionDoneMap.get(target);\n // Polyfill for objectStoreNames because of Edge.\n if (prop === \"objectStoreNames\") return target.objectStoreNames || $f5e914c8bdbbb5f4$var$transactionStoreNamesMap.get(target);\n // Make tx.store return the only store in the transaction, or undefined if there are many.\n if (prop === \"store\") return receiver.objectStoreNames[1] ? undefined : receiver.objectStore(receiver.objectStoreNames[0]);\n }\n // Else transform whatever we get back.\n return $f5e914c8bdbbb5f4$export$efccba1c4a2ef57b(target[prop]);\n },\n set: function(target, prop, value) {\n target[prop] = value;\n return true;\n },\n has: function(target, prop) {\n if (target instanceof IDBTransaction && (prop === \"done\" || prop === \"store\")) return true;\n return prop in target;\n }\n};\nfunction $f5e914c8bdbbb5f4$export$43caf9889c228507(callback) {\n $f5e914c8bdbbb5f4$var$idbProxyTraps = callback($f5e914c8bdbbb5f4$var$idbProxyTraps);\n}\nfunction $f5e914c8bdbbb5f4$var$wrapFunction(func) {\n // Due to expected object equality (which is enforced by the caching in `wrap`), we\n // only create one new func per func.\n // Edge doesn't support objectStoreNames (booo), so we polyfill it here.\n if (func === IDBDatabase.prototype.transaction && !(\"objectStoreNames\" in IDBTransaction.prototype)) return function(storeNames) {\n for(var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++){\n args[_key - 1] = arguments[_key];\n }\n var _func;\n var tx = (_func = func).call.apply(_func, [\n $f5e914c8bdbbb5f4$export$3b14a55fb2447963(this),\n storeNames\n ].concat((0, $a279000f7ad0c22a$export$1b5e630bc3aea29f)(args)));\n $f5e914c8bdbbb5f4$var$transactionStoreNamesMap.set(tx, storeNames.sort ? storeNames.sort() : [\n storeNames\n ]);\n return $f5e914c8bdbbb5f4$export$efccba1c4a2ef57b(tx);\n };\n // Cursor methods are special, as the behaviour is a little more different to standard IDB. In\n // IDB, you advance the cursor and wait for a new 'success' on the IDBRequest that gave you the\n // cursor. It's kinda like a promise that can resolve with many values. That doesn't make sense\n // with real promises, so each advance methods returns a new promise for the cursor object, or\n // undefined if the end of the cursor has been reached.\n if ($f5e914c8bdbbb5f4$var$getCursorAdvanceMethods().includes(func)) return function() {\n for(var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++){\n args[_key] = arguments[_key];\n }\n // Calling the original function with the proxy as 'this' causes ILLEGAL INVOCATION, so we use\n // the original object.\n func.apply($f5e914c8bdbbb5f4$export$3b14a55fb2447963(this), args);\n return $f5e914c8bdbbb5f4$export$efccba1c4a2ef57b($f5e914c8bdbbb5f4$var$cursorRequestMap.get(this));\n };\n return function() {\n for(var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++){\n args[_key] = arguments[_key];\n }\n // Calling the original function with the proxy as 'this' causes ILLEGAL INVOCATION, so we use\n // the original object.\n return $f5e914c8bdbbb5f4$export$efccba1c4a2ef57b(func.apply($f5e914c8bdbbb5f4$export$3b14a55fb2447963(this), args));\n };\n}\nfunction $f5e914c8bdbbb5f4$var$transformCachableValue(value) {\n if (typeof value === \"function\") return $f5e914c8bdbbb5f4$var$wrapFunction(value);\n // This doesn't return, it just creates a 'done' promise for the transaction,\n // which is later returned for transaction.done (see idbObjectHandler).\n if (value instanceof IDBTransaction) $f5e914c8bdbbb5f4$var$cacheDonePromiseForTransaction(value);\n if ($f5e914c8bdbbb5f4$export$23f2a1d2818174ef(value, $f5e914c8bdbbb5f4$var$getIdbProxyableTypes())) return new Proxy(value, $f5e914c8bdbbb5f4$var$idbProxyTraps);\n // Return the same value back if we're not going to transform it.\n return value;\n}\nfunction $f5e914c8bdbbb5f4$export$efccba1c4a2ef57b(value) {\n // We sometimes generate multiple promises from a single IDBRequest (eg when cursoring), because\n // IDB is weird and a single IDBRequest can yield many responses, so these can't be cached.\n if (value instanceof IDBRequest) return $f5e914c8bdbbb5f4$var$promisifyRequest(value);\n // If we've already transformed this value before, reuse the transformed value.\n // This is faster, but it also provides object equality.\n if ($f5e914c8bdbbb5f4$var$transformCache.has(value)) return $f5e914c8bdbbb5f4$var$transformCache.get(value);\n var newValue = $f5e914c8bdbbb5f4$var$transformCachableValue(value);\n // Not all types are transformed.\n // These may be primitive types, so they can't be WeakMap keys.\n if (newValue !== value) {\n $f5e914c8bdbbb5f4$var$transformCache.set(value, newValue);\n $f5e914c8bdbbb5f4$export$407448d2b89b1813.set(newValue, value);\n }\n return newValue;\n}\nvar $f5e914c8bdbbb5f4$export$3b14a55fb2447963 = function(value) {\n return $f5e914c8bdbbb5f4$export$407448d2b89b1813.get(value);\n};\n\n\n/**\n * Open a database.\n *\n * @param name Name of the database.\n * @param version Schema version.\n * @param callbacks Additional callbacks.\n */ function $2f08b141aec567d8$export$ca0ed41b1a2af7e(name, version) {\n var _ref = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, blocked = _ref.blocked, upgrade = _ref.upgrade, blocking = _ref.blocking, terminated = _ref.terminated;\n var request = indexedDB.open(name, version);\n var openPromise = (0, $f5e914c8bdbbb5f4$export$efccba1c4a2ef57b)(request);\n if (upgrade) request.addEventListener(\"upgradeneeded\", function(event) {\n upgrade((0, $f5e914c8bdbbb5f4$export$efccba1c4a2ef57b)(request.result), event.oldVersion, event.newVersion, (0, $f5e914c8bdbbb5f4$export$efccba1c4a2ef57b)(request.transaction), event);\n });\n if (blocked) request.addEventListener(\"blocked\", function(event) {\n return blocked(// Casting due to https://github.com/microsoft/TypeScript-DOM-lib-generator/pull/1405\n event.oldVersion, event.newVersion, event);\n });\n openPromise.then(function(db) {\n if (terminated) db.addEventListener(\"close\", function() {\n return terminated();\n });\n if (blocking) db.addEventListener(\"versionchange\", function(event) {\n return blocking(event.oldVersion, event.newVersion, event);\n });\n }).catch(function() {});\n return openPromise;\n}\n/**\n * Delete a database.\n *\n * @param name Name of the database.\n */ function $2f08b141aec567d8$export$9d6df0ac66a98bb2(name) {\n var blocked = (arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}).blocked;\n var request = indexedDB.deleteDatabase(name);\n if (blocked) request.addEventListener(\"blocked\", function(event) {\n return blocked(// Casting due to https://github.com/microsoft/TypeScript-DOM-lib-generator/pull/1405\n event.oldVersion, event);\n });\n return (0, $f5e914c8bdbbb5f4$export$efccba1c4a2ef57b)(request).then(function() {\n return undefined;\n });\n}\nvar $2f08b141aec567d8$var$readMethods = [\n \"get\",\n \"getKey\",\n \"getAll\",\n \"getAllKeys\",\n \"count\"\n];\nvar $2f08b141aec567d8$var$writeMethods = [\n \"put\",\n \"add\",\n \"delete\",\n \"clear\"\n];\nvar $2f08b141aec567d8$var$cachedMethods = new Map();\nfunction $2f08b141aec567d8$var$getMethod(target, prop) {\n if (!(target instanceof IDBDatabase && !(prop in target) && typeof prop === \"string\")) return;\n if ($2f08b141aec567d8$var$cachedMethods.get(prop)) return $2f08b141aec567d8$var$cachedMethods.get(prop);\n var targetFuncName = prop.replace(/FromIndex$/, \"\");\n var useIndex = prop !== targetFuncName;\n var isWrite = $2f08b141aec567d8$var$writeMethods.includes(targetFuncName);\n if (// Bail if the target doesn't exist on the target. Eg, getAll isn't in Edge.\n !(targetFuncName in (useIndex ? IDBIndex : IDBObjectStore).prototype) || !(isWrite || $2f08b141aec567d8$var$readMethods.includes(targetFuncName))) return;\n var method = function() {\n var _ref = (0, $9167c88d5d99601b$export$7c398597f8905a1)(function(storeName) {\n var _len, args, _key, _target, tx, _$target;\n var _arguments = arguments;\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n switch(_state.label){\n case 0:\n for(_len = _arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++){\n args[_key - 1] = _arguments[_key];\n }\n // isWrite ? 'readwrite' : undefined gzipps better, but fails in Edge :(\n tx = this.transaction(storeName, isWrite ? \"readwrite\" : \"readonly\");\n _$target = tx.store;\n if (useIndex) _$target = _$target.index(args.shift());\n return [\n 4,\n Promise.all([\n (_target = _$target)[targetFuncName].apply(_target, (0, $a279000f7ad0c22a$export$1b5e630bc3aea29f)(args)),\n isWrite && tx.done\n ])\n ];\n case 1:\n // Must reject if op rejects.\n // If it's a write operation, must reject if tx.done rejects.\n // Must reject with op rejection first.\n // Must resolve with op value.\n // Must handle both promises (no unhandled rejections)\n return [\n 2,\n _state.sent()[0]\n ];\n }\n });\n });\n return function method(storeName) {\n return _ref.apply(this, arguments);\n };\n }();\n $2f08b141aec567d8$var$cachedMethods.set(prop, method);\n return method;\n}\n(0, $f5e914c8bdbbb5f4$export$43caf9889c228507)(function(oldTraps) {\n return (0, $645eaebd1af01014$export$4fa2f4023c9cbda5)((0, $187b8475682b19ca$export$581ff339ea0ba762)({}, oldTraps), {\n get: function(target, prop, receiver) {\n return $2f08b141aec567d8$var$getMethod(target, prop) || oldTraps.get(target, prop, receiver);\n },\n has: function(target, prop) {\n return !!$2f08b141aec567d8$var$getMethod(target, prop) || oldTraps.has(target, prop);\n }\n });\n});\n\n\n/**\r\n * @license\r\n * Copyright 2019 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */ var $6801661115945616$var$PlatformLoggerServiceImpl = /*#__PURE__*/ function() {\n \"use strict\";\n function PlatformLoggerServiceImpl(container) {\n (0, $0c3f79e99c83f58f$export$2996f80ef42b8419)(this, PlatformLoggerServiceImpl);\n this.container = container;\n }\n (0, $a27186eefd8c4b26$export$d60067ff2358eee8)(PlatformLoggerServiceImpl, [\n {\n // In initial implementation, this will be called by installations on\n // auth token refresh, and installations will send this string.\n key: \"getPlatformInfoString\",\n value: function getPlatformInfoString() {\n var providers = this.container.getProviders();\n // Loop through providers and get library/version pairs from any that are\n // version components.\n return providers.map(function(provider) {\n if ($6801661115945616$var$isVersionServiceProvider(provider)) {\n var service = provider.getImmediate();\n return \"\".concat(service.library, \"/\").concat(service.version);\n } else return null;\n }).filter(function(logString) {\n return logString;\n }).join(\" \");\n }\n }\n ]);\n return PlatformLoggerServiceImpl;\n}();\n/**\r\n *\r\n * @param provider check if this provider provides a VersionService\r\n *\r\n * NOTE: Using Provider<'app-version'> is a hack to indicate that the provider\r\n * provides VersionService. The provider is not necessarily a 'app-version'\r\n * provider.\r\n */ function $6801661115945616$var$isVersionServiceProvider(provider) {\n var component = provider.getComponent();\n return (component === null || component === void 0 ? void 0 : component.type) === \"VERSION\" /* ComponentType.VERSION */ ;\n}\nvar $6801661115945616$var$name$o = \"@firebase/app\";\nvar $6801661115945616$var$version$1 = \"0.9.25\";\n/**\r\n * @license\r\n * Copyright 2019 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */ var $6801661115945616$var$logger = new (0, $01fab7a4d39b7fcc$export$efa9a398d6368992)(\"@firebase/app\");\nvar $6801661115945616$var$name$n = \"@firebase/app-compat\";\nvar $6801661115945616$var$name$m = \"@firebase/analytics-compat\";\nvar $6801661115945616$var$name$l = \"@firebase/analytics\";\nvar $6801661115945616$var$name$k = \"@firebase/app-check-compat\";\nvar $6801661115945616$var$name$j = \"@firebase/app-check\";\nvar $6801661115945616$var$name$i = \"@firebase/auth\";\nvar $6801661115945616$var$name$h = \"@firebase/auth-compat\";\nvar $6801661115945616$var$name$g = \"@firebase/database\";\nvar $6801661115945616$var$name$f = \"@firebase/database-compat\";\nvar $6801661115945616$var$name$e = \"@firebase/functions\";\nvar $6801661115945616$var$name$d = \"@firebase/functions-compat\";\nvar $6801661115945616$var$name$c = \"@firebase/installations\";\nvar $6801661115945616$var$name$b = \"@firebase/installations-compat\";\nvar $6801661115945616$var$name$a = \"@firebase/messaging\";\nvar $6801661115945616$var$name$9 = \"@firebase/messaging-compat\";\nvar $6801661115945616$var$name$8 = \"@firebase/performance\";\nvar $6801661115945616$var$name$7 = \"@firebase/performance-compat\";\nvar $6801661115945616$var$name$6 = \"@firebase/remote-config\";\nvar $6801661115945616$var$name$5 = \"@firebase/remote-config-compat\";\nvar $6801661115945616$var$name$4 = \"@firebase/storage\";\nvar $6801661115945616$var$name$3 = \"@firebase/storage-compat\";\nvar $6801661115945616$var$name$2 = \"@firebase/firestore\";\nvar $6801661115945616$var$name$1 = \"@firebase/firestore-compat\";\nvar $6801661115945616$var$name = \"firebase\";\nvar $6801661115945616$var$version = \"10.7.1\";\n/**\r\n * @license\r\n * Copyright 2019 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */ /**\r\n * The default app name\r\n *\r\n * @internal\r\n */ var $6801661115945616$export$9f30fa0c10967f7f = \"[DEFAULT]\";\nvar $6801661115945616$var$_obj;\nvar $6801661115945616$var$PLATFORM_LOG_STRING = ($6801661115945616$var$_obj = {}, (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)($6801661115945616$var$_obj, $6801661115945616$var$name$o, \"fire-core\"), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)($6801661115945616$var$_obj, $6801661115945616$var$name$n, \"fire-core-compat\"), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)($6801661115945616$var$_obj, $6801661115945616$var$name$l, \"fire-analytics\"), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)($6801661115945616$var$_obj, $6801661115945616$var$name$m, \"fire-analytics-compat\"), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)($6801661115945616$var$_obj, $6801661115945616$var$name$j, \"fire-app-check\"), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)($6801661115945616$var$_obj, $6801661115945616$var$name$k, \"fire-app-check-compat\"), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)($6801661115945616$var$_obj, $6801661115945616$var$name$i, \"fire-auth\"), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)($6801661115945616$var$_obj, $6801661115945616$var$name$h, \"fire-auth-compat\"), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)($6801661115945616$var$_obj, $6801661115945616$var$name$g, \"fire-rtdb\"), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)($6801661115945616$var$_obj, $6801661115945616$var$name$f, \"fire-rtdb-compat\"), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)($6801661115945616$var$_obj, $6801661115945616$var$name$e, \"fire-fn\"), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)($6801661115945616$var$_obj, $6801661115945616$var$name$d, \"fire-fn-compat\"), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)($6801661115945616$var$_obj, $6801661115945616$var$name$c, \"fire-iid\"), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)($6801661115945616$var$_obj, $6801661115945616$var$name$b, \"fire-iid-compat\"), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)($6801661115945616$var$_obj, $6801661115945616$var$name$a, \"fire-fcm\"), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)($6801661115945616$var$_obj, $6801661115945616$var$name$9, \"fire-fcm-compat\"), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)($6801661115945616$var$_obj, $6801661115945616$var$name$8, \"fire-perf\"), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)($6801661115945616$var$_obj, $6801661115945616$var$name$7, \"fire-perf-compat\"), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)($6801661115945616$var$_obj, $6801661115945616$var$name$6, \"fire-rc\"), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)($6801661115945616$var$_obj, $6801661115945616$var$name$5, \"fire-rc-compat\"), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)($6801661115945616$var$_obj, $6801661115945616$var$name$4, \"fire-gcs\"), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)($6801661115945616$var$_obj, $6801661115945616$var$name$3, \"fire-gcs-compat\"), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)($6801661115945616$var$_obj, $6801661115945616$var$name$2, \"fire-fst\"), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)($6801661115945616$var$_obj, $6801661115945616$var$name$1, \"fire-fst-compat\"), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)($6801661115945616$var$_obj, \"fire-js\", \"fire-js\"), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)($6801661115945616$var$_obj, $6801661115945616$var$name, \"fire-js-all\"), $6801661115945616$var$_obj);\n/**\r\n * @license\r\n * Copyright 2019 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */ /**\r\n * @internal\r\n */ var $6801661115945616$export$b4e3c36c855b14b5 = new Map();\n/**\r\n * Registered components.\r\n *\r\n * @internal\r\n */ // eslint-disable-next-line @typescript-eslint/no-explicit-any\nvar $6801661115945616$export$9566bce3835c0f28 = new Map();\n/**\r\n * @param component - the component being added to this app's container\r\n *\r\n * @internal\r\n */ function $6801661115945616$export$fa5244b94c62d36a(app, component) {\n try {\n app.container.addComponent(component);\n } catch (e) {\n $6801661115945616$var$logger.debug(\"Component \".concat(component.name, \" failed to register with FirebaseApp \").concat(app.name), e);\n }\n}\n/**\r\n *\r\n * @internal\r\n */ function $6801661115945616$export$4393112b42e2b41d(app, component) {\n app.container.addOrOverwriteComponent(component);\n}\n/**\r\n *\r\n * @param component - the component to register\r\n * @returns whether or not the component is registered successfully\r\n *\r\n * @internal\r\n */ function $6801661115945616$export$c930050e7bb63965(component) {\n var componentName = component.name;\n if ($6801661115945616$export$9566bce3835c0f28.has(componentName)) {\n $6801661115945616$var$logger.debug(\"There were multiple attempts to register component \".concat(componentName, \".\"));\n return false;\n }\n $6801661115945616$export$9566bce3835c0f28.set(componentName, component);\n var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;\n try {\n // add the component to existing app instances\n for(var _iterator = $6801661115945616$export$b4e3c36c855b14b5.values()[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){\n var app = _step.value;\n $6801661115945616$export$fa5244b94c62d36a(app, component);\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally{\n try {\n if (!_iteratorNormalCompletion && _iterator.return != null) {\n _iterator.return();\n }\n } finally{\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n return true;\n}\n/**\r\n *\r\n * @param app - FirebaseApp instance\r\n * @param name - service name\r\n *\r\n * @returns the provider for the service with the matching name\r\n *\r\n * @internal\r\n */ function $6801661115945616$export$fa0d6da0f5838f50(app, name) {\n var heartbeatController = app.container.getProvider(\"heartbeat\").getImmediate({\n optional: true\n });\n if (heartbeatController) heartbeatController.triggerHeartbeat();\n return app.container.getProvider(name);\n}\n/**\r\n *\r\n * @param app - FirebaseApp instance\r\n * @param name - service name\r\n * @param instanceIdentifier - service instance identifier in case the service supports multiple instances\r\n *\r\n * @internal\r\n */ function $6801661115945616$export$48d18de2ff1c45a5(app, name) {\n var instanceIdentifier = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : $6801661115945616$export$9f30fa0c10967f7f;\n $6801661115945616$export$fa0d6da0f5838f50(app, name).clearInstance(instanceIdentifier);\n}\n/**\r\n * Test only\r\n *\r\n * @internal\r\n */ function $6801661115945616$export$3685d89b9c3cdfaf() {\n $6801661115945616$export$9566bce3835c0f28.clear();\n}\nvar $6801661115945616$var$_obj1;\n/**\r\n * @license\r\n * Copyright 2019 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */ var $6801661115945616$var$ERRORS = ($6801661115945616$var$_obj1 = {}, (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)($6801661115945616$var$_obj1, \"no-app\" /* AppError.NO_APP */ , \"No Firebase App '{$appName}' has been created - call initializeApp() first\"), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)($6801661115945616$var$_obj1, \"bad-app-name\" /* AppError.BAD_APP_NAME */ , \"Illegal App name: '{$appName}\"), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)($6801661115945616$var$_obj1, \"duplicate-app\" /* AppError.DUPLICATE_APP */ , \"Firebase App named '{$appName}' already exists with different options or config\"), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)($6801661115945616$var$_obj1, \"app-deleted\" /* AppError.APP_DELETED */ , \"Firebase App named '{$appName}' already deleted\"), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)($6801661115945616$var$_obj1, \"no-options\" /* AppError.NO_OPTIONS */ , \"Need to provide options, when not being deployed to hosting via source.\"), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)($6801661115945616$var$_obj1, \"invalid-app-argument\" /* AppError.INVALID_APP_ARGUMENT */ , \"firebase.{$appName}() takes either no argument or a Firebase App instance.\"), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)($6801661115945616$var$_obj1, \"invalid-log-argument\" /* AppError.INVALID_LOG_ARGUMENT */ , \"First argument to `onLog` must be null or a function.\"), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)($6801661115945616$var$_obj1, \"idb-open\" /* AppError.IDB_OPEN */ , \"Error thrown when opening IndexedDB. Original error: {$originalErrorMessage}.\"), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)($6801661115945616$var$_obj1, \"idb-get\" /* AppError.IDB_GET */ , \"Error thrown when reading from IndexedDB. Original error: {$originalErrorMessage}.\"), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)($6801661115945616$var$_obj1, \"idb-set\" /* AppError.IDB_WRITE */ , \"Error thrown when writing to IndexedDB. Original error: {$originalErrorMessage}.\"), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)($6801661115945616$var$_obj1, \"idb-delete\" /* AppError.IDB_DELETE */ , \"Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}.\"), $6801661115945616$var$_obj1);\nvar $6801661115945616$var$ERROR_FACTORY = new (0, $9b50b37fb8824044$export$3fa6e1b18a3b2d40)(\"app\", \"Firebase\", $6801661115945616$var$ERRORS);\n/**\r\n * @license\r\n * Copyright 2019 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */ var $6801661115945616$var$FirebaseAppImpl = /*#__PURE__*/ function() {\n \"use strict\";\n function FirebaseAppImpl(options, config, container) {\n var _this = this;\n (0, $0c3f79e99c83f58f$export$2996f80ef42b8419)(this, FirebaseAppImpl);\n this._isDeleted = false;\n this._options = Object.assign({}, options);\n this._config = Object.assign({}, config);\n this._name = config.name;\n this._automaticDataCollectionEnabled = config.automaticDataCollectionEnabled;\n this._container = container;\n this.container.addComponent(new (0, $601a68140873c3ae$export$16fa2f45be04daa8)(\"app\", function() {\n return _this;\n }, \"PUBLIC\" /* ComponentType.PUBLIC */ ));\n }\n (0, $a27186eefd8c4b26$export$d60067ff2358eee8)(FirebaseAppImpl, [\n {\n key: \"automaticDataCollectionEnabled\",\n get: function get() {\n this.checkDestroyed();\n return this._automaticDataCollectionEnabled;\n },\n set: function set(val) {\n this.checkDestroyed();\n this._automaticDataCollectionEnabled = val;\n }\n },\n {\n key: \"name\",\n get: function get() {\n this.checkDestroyed();\n return this._name;\n }\n },\n {\n key: \"options\",\n get: function get() {\n this.checkDestroyed();\n return this._options;\n }\n },\n {\n key: \"config\",\n get: function get() {\n this.checkDestroyed();\n return this._config;\n }\n },\n {\n key: \"container\",\n get: function get() {\n return this._container;\n }\n },\n {\n key: \"isDeleted\",\n get: function get() {\n return this._isDeleted;\n },\n set: function set(val) {\n this._isDeleted = val;\n }\n },\n {\n /**\r\n * This function will throw an Error if the App has already been deleted -\r\n * use before performing API actions on the App.\r\n */ key: \"checkDestroyed\",\n value: function checkDestroyed() {\n if (this.isDeleted) throw $6801661115945616$var$ERROR_FACTORY.create(\"app-deleted\" /* AppError.APP_DELETED */ , {\n appName: this._name\n });\n }\n }\n ]);\n return FirebaseAppImpl;\n}();\n/**\r\n * @license\r\n * Copyright 2019 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */ /**\r\n * The current SDK version.\r\n *\r\n * @public\r\n */ var $6801661115945616$export$31499a9cd224b78c = $6801661115945616$var$version;\nfunction $6801661115945616$export$c55cfd413944906d(_options) {\n var rawConfig = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};\n var options = _options;\n if (typeof rawConfig !== \"object\") {\n var name = rawConfig;\n rawConfig = {\n name: name\n };\n }\n var config = Object.assign({\n name: $6801661115945616$export$9f30fa0c10967f7f,\n automaticDataCollectionEnabled: false\n }, rawConfig);\n var name1 = config.name;\n if (typeof name1 !== \"string\" || !name1) throw $6801661115945616$var$ERROR_FACTORY.create(\"bad-app-name\" /* AppError.BAD_APP_NAME */ , {\n appName: String(name1)\n });\n options || (options = (0, $9b50b37fb8824044$export$3dfb6827a9f89756)());\n if (!options) throw $6801661115945616$var$ERROR_FACTORY.create(\"no-options\" /* AppError.NO_OPTIONS */ );\n var existingApp = $6801661115945616$export$b4e3c36c855b14b5.get(name1);\n if (existingApp) {\n // return the existing app if options and config deep equal the ones in the existing app.\n if ((0, $9b50b37fb8824044$export$9cb4719e2e525b7a)(options, existingApp.options) && (0, $9b50b37fb8824044$export$9cb4719e2e525b7a)(config, existingApp.config)) return existingApp;\n else throw $6801661115945616$var$ERROR_FACTORY.create(\"duplicate-app\" /* AppError.DUPLICATE_APP */ , {\n appName: name1\n });\n }\n var container = new (0, $601a68140873c3ae$export$436a80eea5d5c0c5)(name1);\n var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;\n try {\n for(var _iterator = $6801661115945616$export$9566bce3835c0f28.values()[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){\n var component = _step.value;\n container.addComponent(component);\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally{\n try {\n if (!_iteratorNormalCompletion && _iterator.return != null) {\n _iterator.return();\n }\n } finally{\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n var newApp = new $6801661115945616$var$FirebaseAppImpl(options, config, container);\n $6801661115945616$export$b4e3c36c855b14b5.set(name1, newApp);\n return newApp;\n}\n/**\r\n * Retrieves a {@link @firebase/app#FirebaseApp} instance.\r\n *\r\n * When called with no arguments, the default app is returned. When an app name\r\n * is provided, the app corresponding to that name is returned.\r\n *\r\n * An exception is thrown if the app being retrieved has not yet been\r\n * initialized.\r\n *\r\n * @example\r\n * ```javascript\r\n * // Return the default app\r\n * const app = getApp();\r\n * ```\r\n *\r\n * @example\r\n * ```javascript\r\n * // Return a named app\r\n * const otherApp = getApp(\"otherApp\");\r\n * ```\r\n *\r\n * @param name - Optional name of the app to return. If no name is\r\n * provided, the default is `\"[DEFAULT]\"`.\r\n *\r\n * @returns The app corresponding to the provided app name.\r\n * If no app name is provided, the default app is returned.\r\n *\r\n * @public\r\n */ function $6801661115945616$export$f9962582c9e66d99() {\n var name = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : $6801661115945616$export$9f30fa0c10967f7f;\n var app = $6801661115945616$export$b4e3c36c855b14b5.get(name);\n if (!app && name === $6801661115945616$export$9f30fa0c10967f7f && (0, $9b50b37fb8824044$export$3dfb6827a9f89756)()) return $6801661115945616$export$c55cfd413944906d();\n if (!app) throw $6801661115945616$var$ERROR_FACTORY.create(\"no-app\" /* AppError.NO_APP */ , {\n appName: name\n });\n return app;\n}\n/**\r\n * A (read-only) array of all initialized apps.\r\n * @public\r\n */ function $6801661115945616$export$68ddedf7d44b3bdf() {\n return Array.from($6801661115945616$export$b4e3c36c855b14b5.values());\n}\nfunction $6801661115945616$export$6eec44aa53d5ea34(app) {\n return $6801661115945616$var$_deleteApp.apply(this, arguments);\n}\nfunction $6801661115945616$var$_deleteApp() {\n $6801661115945616$var$_deleteApp = /**\r\n * Renders this app unusable and frees the resources of all associated\r\n * services.\r\n *\r\n * @example\r\n * ```javascript\r\n * deleteApp(app)\r\n * .then(function() {\r\n * console.log(\"App deleted successfully\");\r\n * })\r\n * .catch(function(error) {\r\n * console.log(\"Error deleting app:\", error);\r\n * });\r\n * ```\r\n *\r\n * @public\r\n */ (0, $9167c88d5d99601b$export$7c398597f8905a1)(function(app) {\n var name;\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n switch(_state.label){\n case 0:\n name = app.name;\n if (!$6801661115945616$export$b4e3c36c855b14b5.has(name)) return [\n 3,\n 2\n ];\n $6801661115945616$export$b4e3c36c855b14b5.delete(name);\n return [\n 4,\n Promise.all(app.container.getProviders().map(function(provider) {\n return provider.delete();\n }))\n ];\n case 1:\n _state.sent();\n app.isDeleted = true;\n _state.label = 2;\n case 2:\n return [\n 2\n ];\n }\n });\n });\n return $6801661115945616$var$_deleteApp.apply(this, arguments);\n}\n/**\r\n * Registers a library's name and version for platform logging purposes.\r\n * @param library - Name of 1p or 3p library (e.g. firestore, angularfire)\r\n * @param version - Current version of that library.\r\n * @param variant - Bundle variant, e.g., node, rn, etc.\r\n *\r\n * @public\r\n */ function $6801661115945616$export$d29d5299a7137abc(libraryKeyOrName, version, variant) {\n var _a;\n // TODO: We can use this check to whitelist strings when/if we set up\n // a good whitelist system.\n var library = (_a = $6801661115945616$var$PLATFORM_LOG_STRING[libraryKeyOrName]) !== null && _a !== void 0 ? _a : libraryKeyOrName;\n if (variant) library += \"-\".concat(variant);\n var libraryMismatch = library.match(/\\s|\\//);\n var versionMismatch = version.match(/\\s|\\//);\n if (libraryMismatch || versionMismatch) {\n var warning = [\n 'Unable to register library \"'.concat(library, '\" with version \"').concat(version, '\":')\n ];\n if (libraryMismatch) warning.push('library name \"'.concat(library, '\" contains illegal characters (whitespace or \"/\")'));\n if (libraryMismatch && versionMismatch) warning.push(\"and\");\n if (versionMismatch) warning.push('version name \"'.concat(version, '\" contains illegal characters (whitespace or \"/\")'));\n $6801661115945616$var$logger.warn(warning.join(\" \"));\n return;\n }\n $6801661115945616$export$c930050e7bb63965(new (0, $601a68140873c3ae$export$16fa2f45be04daa8)(\"\".concat(library, \"-version\"), function() {\n return {\n library: library,\n version: version\n };\n }, \"VERSION\" /* ComponentType.VERSION */ ));\n}\n/**\r\n * Sets log handler for all Firebase SDKs.\r\n * @param logCallback - An optional custom log handler that executes user code whenever\r\n * the Firebase SDK makes a logging call.\r\n *\r\n * @public\r\n */ function $6801661115945616$export$a82ad227dc8163dc(logCallback, options) {\n if (logCallback !== null && typeof logCallback !== \"function\") throw $6801661115945616$var$ERROR_FACTORY.create(\"invalid-log-argument\" /* AppError.INVALID_LOG_ARGUMENT */ );\n (0, $01fab7a4d39b7fcc$export$29577d29c84db5f6)(logCallback, options);\n}\n/**\r\n * Sets log level for all Firebase SDKs.\r\n *\r\n * All of the log types above the current log level are captured (i.e. if\r\n * you set the log level to `info`, errors are logged, but `debug` and\r\n * `verbose` logs are not).\r\n *\r\n * @public\r\n */ function $6801661115945616$export$c622e99c0ce7b1c9(logLevel) {\n (0, $01fab7a4d39b7fcc$export$c622e99c0ce7b1c9)(logLevel);\n}\n/**\r\n * @license\r\n * Copyright 2021 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */ var $6801661115945616$var$DB_NAME = \"firebase-heartbeat-database\";\nvar $6801661115945616$var$DB_VERSION = 1;\nvar $6801661115945616$var$STORE_NAME = \"firebase-heartbeat-store\";\nvar $6801661115945616$var$dbPromise = null;\nfunction $6801661115945616$var$getDbPromise() {\n if (!$6801661115945616$var$dbPromise) $6801661115945616$var$dbPromise = (0, $2f08b141aec567d8$export$ca0ed41b1a2af7e)($6801661115945616$var$DB_NAME, $6801661115945616$var$DB_VERSION, {\n upgrade: function(db, oldVersion) {\n // We don't use 'break' in this switch statement, the fall-through\n // behavior is what we want, because if there are multiple versions between\n // the old version and the current version, we want ALL the migrations\n // that correspond to those versions to run, not only the last one.\n // eslint-disable-next-line default-case\n switch(oldVersion){\n case 0:\n db.createObjectStore($6801661115945616$var$STORE_NAME);\n }\n }\n }).catch(function(e) {\n throw $6801661115945616$var$ERROR_FACTORY.create(\"idb-open\" /* AppError.IDB_OPEN */ , {\n originalErrorMessage: e.message\n });\n });\n return $6801661115945616$var$dbPromise;\n}\nfunction $6801661115945616$var$readHeartbeatsFromIndexedDB(app) {\n return $6801661115945616$var$_readHeartbeatsFromIndexedDB.apply(this, arguments);\n}\nfunction $6801661115945616$var$_readHeartbeatsFromIndexedDB() {\n $6801661115945616$var$_readHeartbeatsFromIndexedDB = (0, $9167c88d5d99601b$export$7c398597f8905a1)(function(app) {\n var db, result, e, idbGetError;\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n switch(_state.label){\n case 0:\n _state.trys.push([\n 0,\n 3,\n ,\n 4\n ]);\n return [\n 4,\n $6801661115945616$var$getDbPromise()\n ];\n case 1:\n db = _state.sent();\n return [\n 4,\n db.transaction($6801661115945616$var$STORE_NAME).objectStore($6801661115945616$var$STORE_NAME).get($6801661115945616$var$computeKey(app))\n ];\n case 2:\n result = _state.sent();\n return [\n 2,\n result\n ];\n case 3:\n e = _state.sent();\n if (e instanceof (0, $9b50b37fb8824044$export$dd24e9cd51226c56)) $6801661115945616$var$logger.warn(e.message);\n else {\n idbGetError = $6801661115945616$var$ERROR_FACTORY.create(\"idb-get\" /* AppError.IDB_GET */ , {\n originalErrorMessage: e === null || e === void 0 ? void 0 : e.message\n });\n $6801661115945616$var$logger.warn(idbGetError.message);\n }\n return [\n 3,\n 4\n ];\n case 4:\n return [\n 2\n ];\n }\n });\n });\n return $6801661115945616$var$_readHeartbeatsFromIndexedDB.apply(this, arguments);\n}\nfunction $6801661115945616$var$writeHeartbeatsToIndexedDB(app, heartbeatObject) {\n return $6801661115945616$var$_writeHeartbeatsToIndexedDB.apply(this, arguments);\n}\nfunction $6801661115945616$var$_writeHeartbeatsToIndexedDB() {\n $6801661115945616$var$_writeHeartbeatsToIndexedDB = (0, $9167c88d5d99601b$export$7c398597f8905a1)(function(app, heartbeatObject) {\n var db, tx, objectStore, e, idbGetError;\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n switch(_state.label){\n case 0:\n _state.trys.push([\n 0,\n 4,\n ,\n 5\n ]);\n return [\n 4,\n $6801661115945616$var$getDbPromise()\n ];\n case 1:\n db = _state.sent();\n tx = db.transaction($6801661115945616$var$STORE_NAME, \"readwrite\");\n objectStore = tx.objectStore($6801661115945616$var$STORE_NAME);\n return [\n 4,\n objectStore.put(heartbeatObject, $6801661115945616$var$computeKey(app))\n ];\n case 2:\n _state.sent();\n return [\n 4,\n tx.done\n ];\n case 3:\n _state.sent();\n return [\n 3,\n 5\n ];\n case 4:\n e = _state.sent();\n if (e instanceof (0, $9b50b37fb8824044$export$dd24e9cd51226c56)) $6801661115945616$var$logger.warn(e.message);\n else {\n idbGetError = $6801661115945616$var$ERROR_FACTORY.create(\"idb-set\" /* AppError.IDB_WRITE */ , {\n originalErrorMessage: e === null || e === void 0 ? void 0 : e.message\n });\n $6801661115945616$var$logger.warn(idbGetError.message);\n }\n return [\n 3,\n 5\n ];\n case 5:\n return [\n 2\n ];\n }\n });\n });\n return $6801661115945616$var$_writeHeartbeatsToIndexedDB.apply(this, arguments);\n}\nfunction $6801661115945616$var$computeKey(app) {\n return \"\".concat(app.name, \"!\").concat(app.options.appId);\n}\n/**\r\n * @license\r\n * Copyright 2021 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */ var $6801661115945616$var$MAX_HEADER_BYTES = 1024;\n// 30 days\nvar $6801661115945616$var$STORED_HEARTBEAT_RETENTION_MAX_MILLIS = 2592000000;\nvar $6801661115945616$var$HeartbeatServiceImpl = /*#__PURE__*/ function() {\n \"use strict\";\n function HeartbeatServiceImpl(container) {\n var _this = this;\n (0, $0c3f79e99c83f58f$export$2996f80ef42b8419)(this, HeartbeatServiceImpl);\n this.container = container;\n /**\r\n * In-memory cache for heartbeats, used by getHeartbeatsHeader() to generate\r\n * the header string.\r\n * Stores one record per date. This will be consolidated into the standard\r\n * format of one record per user agent string before being sent as a header.\r\n * Populated from indexedDB when the controller is instantiated and should\r\n * be kept in sync with indexedDB.\r\n * Leave public for easier testing.\r\n */ this._heartbeatsCache = null;\n var app = this.container.getProvider(\"app\").getImmediate();\n this._storage = new $6801661115945616$var$HeartbeatStorageImpl(app);\n this._heartbeatsCachePromise = this._storage.read().then(function(result) {\n _this._heartbeatsCache = result;\n return result;\n });\n }\n (0, $a27186eefd8c4b26$export$d60067ff2358eee8)(HeartbeatServiceImpl, [\n {\n key: \"triggerHeartbeat\",\n value: /**\r\n * Called to report a heartbeat. The function will generate\r\n * a HeartbeatsByUserAgent object, update heartbeatsCache, and persist it\r\n * to IndexedDB.\r\n * Note that we only store one heartbeat per day. So if a heartbeat for today is\r\n * already logged, subsequent calls to this function in the same day will be ignored.\r\n */ function triggerHeartbeat() {\n var _this = this;\n return (0, $9167c88d5d99601b$export$7c398597f8905a1)(function() {\n var _a, _b, platformLogger, agent, date;\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n switch(_state.label){\n case 0:\n platformLogger = _this.container.getProvider(\"platform-logger\").getImmediate();\n // This is the \"Firebase user agent\" string from the platform logger\n // service, not the browser user agent.\n agent = platformLogger.getPlatformInfoString();\n date = $6801661115945616$var$getUTCDateString();\n if (!(((_a = _this._heartbeatsCache) === null || _a === void 0 ? void 0 : _a.heartbeats) == null)) return [\n 3,\n 2\n ];\n return [\n 4,\n _this._heartbeatsCachePromise\n ];\n case 1:\n _this._heartbeatsCache = _state.sent();\n // If we failed to construct a heartbeats cache, then return immediately.\n if (((_b = _this._heartbeatsCache) === null || _b === void 0 ? void 0 : _b.heartbeats) == null) return [\n 2\n ];\n _state.label = 2;\n case 2:\n // Do not store a heartbeat if one is already stored for this day\n // or if a header has already been sent today.\n if (_this._heartbeatsCache.lastSentHeartbeatDate === date || _this._heartbeatsCache.heartbeats.some(function(singleDateHeartbeat) {\n return singleDateHeartbeat.date === date;\n })) return [\n 2\n ];\n else // There is no entry for this date. Create one.\n _this._heartbeatsCache.heartbeats.push({\n date: date,\n agent: agent\n });\n // Remove entries older than 30 days.\n _this._heartbeatsCache.heartbeats = _this._heartbeatsCache.heartbeats.filter(function(singleDateHeartbeat) {\n var hbTimestamp = new Date(singleDateHeartbeat.date).valueOf();\n var now = Date.now();\n return now - hbTimestamp <= $6801661115945616$var$STORED_HEARTBEAT_RETENTION_MAX_MILLIS;\n });\n return [\n 2,\n _this._storage.overwrite(_this._heartbeatsCache)\n ];\n }\n });\n })();\n }\n },\n {\n key: \"getHeartbeatsHeader\",\n value: /**\r\n * Returns a base64 encoded string which can be attached to the heartbeat-specific header directly.\r\n * It also clears all heartbeats from memory as well as in IndexedDB.\r\n *\r\n * NOTE: Consuming product SDKs should not send the header if this method\r\n * returns an empty string.\r\n */ function getHeartbeatsHeader() {\n var _this = this;\n return (0, $9167c88d5d99601b$export$7c398597f8905a1)(function() {\n var _a, date, _extractHeartbeatsForHeader, heartbeatsToSend, unsentEntries, headerString;\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n switch(_state.label){\n case 0:\n if (!(_this._heartbeatsCache === null)) return [\n 3,\n 2\n ];\n return [\n 4,\n _this._heartbeatsCachePromise\n ];\n case 1:\n _state.sent();\n _state.label = 2;\n case 2:\n // If it's still null or the array is empty, there is no data to send.\n if (((_a = _this._heartbeatsCache) === null || _a === void 0 ? void 0 : _a.heartbeats) == null || _this._heartbeatsCache.heartbeats.length === 0) return [\n 2,\n \"\"\n ];\n date = $6801661115945616$var$getUTCDateString();\n // Extract as many heartbeats from the cache as will fit under the size limit.\n _extractHeartbeatsForHeader = $6801661115945616$var$extractHeartbeatsForHeader(_this._heartbeatsCache.heartbeats), heartbeatsToSend = _extractHeartbeatsForHeader.heartbeatsToSend, unsentEntries = _extractHeartbeatsForHeader.unsentEntries;\n headerString = (0, $9b50b37fb8824044$export$4b5284a3025a455)(JSON.stringify({\n version: 2,\n heartbeats: heartbeatsToSend\n }));\n // Store last sent date to prevent another being logged/sent for the same day.\n _this._heartbeatsCache.lastSentHeartbeatDate = date;\n if (!(unsentEntries.length > 0)) return [\n 3,\n 4\n ];\n // Store any unsent entries if they exist.\n _this._heartbeatsCache.heartbeats = unsentEntries;\n // This seems more likely than emptying the array (below) to lead to some odd state\n // since the cache isn't empty and this will be called again on the next request,\n // and is probably safest if we await it.\n return [\n 4,\n _this._storage.overwrite(_this._heartbeatsCache)\n ];\n case 3:\n _state.sent();\n return [\n 3,\n 5\n ];\n case 4:\n _this._heartbeatsCache.heartbeats = [];\n // Do not wait for this, to reduce latency.\n _this._storage.overwrite(_this._heartbeatsCache);\n _state.label = 5;\n case 5:\n return [\n 2,\n headerString\n ];\n }\n });\n })();\n }\n }\n ]);\n return HeartbeatServiceImpl;\n}();\nfunction $6801661115945616$var$getUTCDateString() {\n var today = new Date();\n // Returns date format 'YYYY-MM-DD'\n return today.toISOString().substring(0, 10);\n}\nfunction $6801661115945616$var$extractHeartbeatsForHeader(heartbeatsCache) {\n var maxSize = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : $6801661115945616$var$MAX_HEADER_BYTES;\n // Heartbeats grouped by user agent in the standard format to be sent in\n // the header.\n var heartbeatsToSend = [];\n // Single date format heartbeats that are not sent.\n var unsentEntries = heartbeatsCache.slice();\n var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;\n try {\n var _loop = function() {\n var singleDateHeartbeat = _step.value;\n // Look for an existing entry with the same user agent.\n var heartbeatEntry = heartbeatsToSend.find(function(hb) {\n return hb.agent === singleDateHeartbeat.agent;\n });\n if (!heartbeatEntry) {\n // If no entry for this user agent exists, create one.\n heartbeatsToSend.push({\n agent: singleDateHeartbeat.agent,\n dates: [\n singleDateHeartbeat.date\n ]\n });\n if ($6801661115945616$var$countBytes(heartbeatsToSend) > maxSize) {\n // If the header would exceed max size, remove the added heartbeat\n // entry and stop adding to the header.\n heartbeatsToSend.pop();\n return \"break\";\n }\n } else {\n heartbeatEntry.dates.push(singleDateHeartbeat.date);\n // If the header would exceed max size, remove the added date\n // and stop adding to the header.\n if ($6801661115945616$var$countBytes(heartbeatsToSend) > maxSize) {\n heartbeatEntry.dates.pop();\n return \"break\";\n }\n }\n // Pop unsent entry from queue. (Skipped if adding the entry exceeded\n // quota and the loop breaks early.)\n unsentEntries = unsentEntries.slice(1);\n };\n for(var _iterator = heartbeatsCache[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){\n var _ret = _loop();\n if (_ret === \"break\") break;\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally{\n try {\n if (!_iteratorNormalCompletion && _iterator.return != null) {\n _iterator.return();\n }\n } finally{\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n return {\n heartbeatsToSend: heartbeatsToSend,\n unsentEntries: unsentEntries\n };\n}\nvar $6801661115945616$var$HeartbeatStorageImpl = /*#__PURE__*/ function() {\n \"use strict\";\n function HeartbeatStorageImpl(app) {\n (0, $0c3f79e99c83f58f$export$2996f80ef42b8419)(this, HeartbeatStorageImpl);\n this.app = app;\n this._canUseIndexedDBPromise = this.runIndexedDBEnvironmentCheck();\n }\n (0, $a27186eefd8c4b26$export$d60067ff2358eee8)(HeartbeatStorageImpl, [\n {\n key: \"runIndexedDBEnvironmentCheck\",\n value: function runIndexedDBEnvironmentCheck() {\n return (0, $9167c88d5d99601b$export$7c398597f8905a1)(function() {\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n if (!(0, $9b50b37fb8824044$export$3865db50535c2055)()) return [\n 2,\n false\n ];\n else return [\n 2,\n (0, $9b50b37fb8824044$export$a8a3018f3d187a4d)().then(function() {\n return true;\n }).catch(function() {\n return false;\n })\n ];\n return [\n 2\n ];\n });\n })();\n }\n },\n {\n key: \"read\",\n value: /**\r\n * Read all heartbeats.\r\n */ function read() {\n var _this = this;\n return (0, $9167c88d5d99601b$export$7c398597f8905a1)(function() {\n var canUseIndexedDB, idbHeartbeatObject;\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n switch(_state.label){\n case 0:\n return [\n 4,\n _this._canUseIndexedDBPromise\n ];\n case 1:\n canUseIndexedDB = _state.sent();\n if (!!canUseIndexedDB) return [\n 3,\n 2\n ];\n return [\n 2,\n {\n heartbeats: []\n }\n ];\n case 2:\n return [\n 4,\n $6801661115945616$var$readHeartbeatsFromIndexedDB(_this.app)\n ];\n case 3:\n idbHeartbeatObject = _state.sent();\n if (idbHeartbeatObject === null || idbHeartbeatObject === void 0 ? void 0 : idbHeartbeatObject.heartbeats) return [\n 2,\n idbHeartbeatObject\n ];\n else return [\n 2,\n {\n heartbeats: []\n }\n ];\n _state.label = 4;\n case 4:\n return [\n 2\n ];\n }\n });\n })();\n }\n },\n {\n key: \"overwrite\",\n value: // overwrite the storage with the provided heartbeats\n function overwrite(heartbeatsObject) {\n var _this = this;\n return (0, $9167c88d5d99601b$export$7c398597f8905a1)(function() {\n var _a, canUseIndexedDB, existingHeartbeatsObject;\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n switch(_state.label){\n case 0:\n return [\n 4,\n _this._canUseIndexedDBPromise\n ];\n case 1:\n canUseIndexedDB = _state.sent();\n if (!!canUseIndexedDB) return [\n 3,\n 2\n ];\n return [\n 2\n ];\n case 2:\n return [\n 4,\n _this.read()\n ];\n case 3:\n existingHeartbeatsObject = _state.sent();\n return [\n 2,\n $6801661115945616$var$writeHeartbeatsToIndexedDB(_this.app, {\n lastSentHeartbeatDate: (_a = heartbeatsObject.lastSentHeartbeatDate) !== null && _a !== void 0 ? _a : existingHeartbeatsObject.lastSentHeartbeatDate,\n heartbeats: heartbeatsObject.heartbeats\n })\n ];\n case 4:\n return [\n 2\n ];\n }\n });\n })();\n }\n },\n {\n key: \"add\",\n value: // add heartbeats\n function add(heartbeatsObject) {\n var _this = this;\n return (0, $9167c88d5d99601b$export$7c398597f8905a1)(function() {\n var _a, canUseIndexedDB, existingHeartbeatsObject;\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n switch(_state.label){\n case 0:\n return [\n 4,\n _this._canUseIndexedDBPromise\n ];\n case 1:\n canUseIndexedDB = _state.sent();\n if (!!canUseIndexedDB) return [\n 3,\n 2\n ];\n return [\n 2\n ];\n case 2:\n return [\n 4,\n _this.read()\n ];\n case 3:\n existingHeartbeatsObject = _state.sent();\n return [\n 2,\n $6801661115945616$var$writeHeartbeatsToIndexedDB(_this.app, {\n lastSentHeartbeatDate: (_a = heartbeatsObject.lastSentHeartbeatDate) !== null && _a !== void 0 ? _a : existingHeartbeatsObject.lastSentHeartbeatDate,\n heartbeats: (0, $a279000f7ad0c22a$export$1b5e630bc3aea29f)(existingHeartbeatsObject.heartbeats).concat((0, $a279000f7ad0c22a$export$1b5e630bc3aea29f)(heartbeatsObject.heartbeats))\n })\n ];\n case 4:\n return [\n 2\n ];\n }\n });\n })();\n }\n }\n ]);\n return HeartbeatStorageImpl;\n}();\n/**\r\n * Calculate bytes of a HeartbeatsByUserAgent array after being wrapped\r\n * in a platform logging header JSON object, stringified, and converted\r\n * to base 64.\r\n */ function $6801661115945616$var$countBytes(heartbeatsCache) {\n // base64 has a restricted set of characters, all of which should be 1 byte.\n return (0, $9b50b37fb8824044$export$4b5284a3025a455)(// heartbeatsCache wrapper properties\n JSON.stringify({\n version: 2,\n heartbeats: heartbeatsCache\n })).length;\n}\n/**\r\n * @license\r\n * Copyright 2019 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */ function $6801661115945616$var$registerCoreComponents(variant) {\n $6801661115945616$export$c930050e7bb63965(new (0, $601a68140873c3ae$export$16fa2f45be04daa8)(\"platform-logger\", function(container) {\n return new $6801661115945616$var$PlatformLoggerServiceImpl(container);\n }, \"PRIVATE\" /* ComponentType.PRIVATE */ ));\n $6801661115945616$export$c930050e7bb63965(new (0, $601a68140873c3ae$export$16fa2f45be04daa8)(\"heartbeat\", function(container) {\n return new $6801661115945616$var$HeartbeatServiceImpl(container);\n }, \"PRIVATE\" /* ComponentType.PRIVATE */ ));\n // Register `app` package.\n $6801661115945616$export$d29d5299a7137abc($6801661115945616$var$name$o, $6801661115945616$var$version$1, variant);\n // BUILD_TARGET will be replaced by values like esm5, esm2017, cjs5, etc during the compilation\n $6801661115945616$export$d29d5299a7137abc($6801661115945616$var$name$o, $6801661115945616$var$version$1, \"esm2017\");\n // Register platform SDK identifier (no version).\n $6801661115945616$export$d29d5299a7137abc(\"fire-js\", \"\");\n}\n/**\r\n * Firebase App\r\n *\r\n * @remarks This package coordinates the communication between the different Firebase components\r\n * @packageDocumentation\r\n */ $6801661115945616$var$registerCoreComponents(\"\");\n\n\nvar $2b4fc6e181b620b5$var$name = \"firebase\";\nvar $2b4fc6e181b620b5$var$version = \"10.7.1\";\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */ (0, $6801661115945616$export$d29d5299a7137abc)($2b4fc6e181b620b5$var$name, $2b4fc6e181b620b5$var$version, \"app\");\n\n\n\n\n\n\n\n\nfunction $2cd255b5fee1c388$export$e4187255aefbc259(object, property) {\n while(!Object.prototype.hasOwnProperty.call(object, property)){\n object = (0, $a1f3116cd0a6764d$export$f09211a7d3c496a1)(object);\n if (object === null) break;\n }\n return object;\n}\n\n\nfunction $ecbc2403a053d1fd$export$afb3516d9d608401(target, property, receiver) {\n if (typeof Reflect !== \"undefined\" && Reflect.get) $ecbc2403a053d1fd$export$afb3516d9d608401 = Reflect.get;\n else $ecbc2403a053d1fd$export$afb3516d9d608401 = function get(target, property, receiver) {\n var base = (0, $2cd255b5fee1c388$export$e4187255aefbc259)(target, property);\n if (!base) return;\n var desc = Object.getOwnPropertyDescriptor(base, property);\n if (desc.get) return desc.get.call(receiver || target);\n return desc.value;\n };\n return $ecbc2403a053d1fd$export$afb3516d9d608401(target, property, receiver || target);\n}\n\n\n\n\n\n\n\n\n\n\n\n\n\n/**\r\n * @license\r\n * Copyright 2021 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */ /**\r\n * An enum of factors that may be used for multifactor authentication.\r\n *\r\n * @public\r\n */ var $f394e9ac486578e6$export$d66501df72047452 = {\n /** Phone as second factor */ PHONE: \"phone\",\n TOTP: \"totp\"\n};\n/**\r\n * Enumeration of supported providers.\r\n *\r\n * @public\r\n */ var $f394e9ac486578e6$export$ffb5f4729a158638 = {\n /** Facebook provider ID */ FACEBOOK: \"facebook.com\",\n /** GitHub provider ID */ GITHUB: \"github.com\",\n /** Google provider ID */ GOOGLE: \"google.com\",\n /** Password provider */ PASSWORD: \"password\",\n /** Phone provider */ PHONE: \"phone\",\n /** Twitter provider ID */ TWITTER: \"twitter.com\"\n};\n/**\r\n * Enumeration of supported sign-in methods.\r\n *\r\n * @public\r\n */ var $f394e9ac486578e6$export$25ce5a424b770e84 = {\n /** Email link sign in method */ EMAIL_LINK: \"emailLink\",\n /** Email/password sign in method */ EMAIL_PASSWORD: \"password\",\n /** Facebook sign in method */ FACEBOOK: \"facebook.com\",\n /** GitHub sign in method */ GITHUB: \"github.com\",\n /** Google sign in method */ GOOGLE: \"google.com\",\n /** Phone sign in method */ PHONE: \"phone\",\n /** Twitter sign in method */ TWITTER: \"twitter.com\"\n};\n/**\r\n * Enumeration of supported operation types.\r\n *\r\n * @public\r\n */ var $f394e9ac486578e6$export$c4ce752e73470fba = {\n /** Operation involving linking an additional provider to an already signed-in user. */ LINK: \"link\",\n /** Operation involving using a provider to reauthenticate an already signed-in user. */ REAUTHENTICATE: \"reauthenticate\",\n /** Operation involving signing in a user. */ SIGN_IN: \"signIn\"\n};\n/**\r\n * An enumeration of the possible email action types.\r\n *\r\n * @public\r\n */ var $f394e9ac486578e6$export$ebd11618f299a286 = {\n /** The email link sign-in action. */ EMAIL_SIGNIN: \"EMAIL_SIGNIN\",\n /** The password reset action. */ PASSWORD_RESET: \"PASSWORD_RESET\",\n /** The email revocation action. */ RECOVER_EMAIL: \"RECOVER_EMAIL\",\n /** The revert second factor addition email action. */ REVERT_SECOND_FACTOR_ADDITION: \"REVERT_SECOND_FACTOR_ADDITION\",\n /** The revert second factor addition email action. */ VERIFY_AND_CHANGE_EMAIL: \"VERIFY_AND_CHANGE_EMAIL\",\n /** The email verification action. */ VERIFY_EMAIL: \"VERIFY_EMAIL\"\n};\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */ function $f394e9ac486578e6$var$_debugErrorMap() {\n var _obj;\n return _obj = {}, (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)(_obj, \"admin-restricted-operation\" /* AuthErrorCode.ADMIN_ONLY_OPERATION */ , \"This operation is restricted to administrators only.\"), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)(_obj, \"argument-error\" /* AuthErrorCode.ARGUMENT_ERROR */ , \"\"), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)(_obj, \"app-not-authorized\" /* AuthErrorCode.APP_NOT_AUTHORIZED */ , \"This app, identified by the domain where it's hosted, is not authorized to use Firebase Authentication with the provided API key. Review your key configuration in the Google API console.\"), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)(_obj, \"app-not-installed\" /* AuthErrorCode.APP_NOT_INSTALLED */ , \"The requested mobile application corresponding to the identifier (Android package name or iOS bundle ID) provided is not installed on this device.\"), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)(_obj, \"captcha-check-failed\" /* AuthErrorCode.CAPTCHA_CHECK_FAILED */ , \"The reCAPTCHA response token provided is either invalid, expired, already used or the domain associated with it does not match the list of whitelisted domains.\"), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)(_obj, \"code-expired\" /* AuthErrorCode.CODE_EXPIRED */ , \"The SMS code has expired. Please re-send the verification code to try again.\"), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)(_obj, \"cordova-not-ready\" /* AuthErrorCode.CORDOVA_NOT_READY */ , \"Cordova framework is not ready.\"), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)(_obj, \"cors-unsupported\" /* AuthErrorCode.CORS_UNSUPPORTED */ , \"This browser is not supported.\"), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)(_obj, \"credential-already-in-use\" /* AuthErrorCode.CREDENTIAL_ALREADY_IN_USE */ , \"This credential is already associated with a different user account.\"), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)(_obj, \"custom-token-mismatch\" /* AuthErrorCode.CREDENTIAL_MISMATCH */ , \"The custom token corresponds to a different audience.\"), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)(_obj, \"requires-recent-login\" /* AuthErrorCode.CREDENTIAL_TOO_OLD_LOGIN_AGAIN */ , \"This operation is sensitive and requires recent authentication. Log in again before retrying this request.\"), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)(_obj, \"dependent-sdk-initialized-before-auth\" /* AuthErrorCode.DEPENDENT_SDK_INIT_BEFORE_AUTH */ , \"Another Firebase SDK was initialized and is trying to use Auth before Auth is initialized. Please be sure to call `initializeAuth` or `getAuth` before starting any other Firebase SDK.\"), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)(_obj, \"dynamic-link-not-activated\" /* AuthErrorCode.DYNAMIC_LINK_NOT_ACTIVATED */ , \"Please activate Dynamic Links in the Firebase Console and agree to the terms and conditions.\"), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)(_obj, \"email-change-needs-verification\" /* AuthErrorCode.EMAIL_CHANGE_NEEDS_VERIFICATION */ , \"Multi-factor users must always have a verified email.\"), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)(_obj, \"email-already-in-use\" /* AuthErrorCode.EMAIL_EXISTS */ , \"The email address is already in use by another account.\"), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)(_obj, \"emulator-config-failed\" /* AuthErrorCode.EMULATOR_CONFIG_FAILED */ , 'Auth instance has already been used to make a network call. Auth can no longer be configured to use the emulator. Try calling \"connectAuthEmulator()\" sooner.'), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)(_obj, \"expired-action-code\" /* AuthErrorCode.EXPIRED_OOB_CODE */ , \"The action code has expired.\"), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)(_obj, \"cancelled-popup-request\" /* AuthErrorCode.EXPIRED_POPUP_REQUEST */ , \"This operation has been cancelled due to another conflicting popup being opened.\"), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)(_obj, \"internal-error\" /* AuthErrorCode.INTERNAL_ERROR */ , \"An internal AuthError has occurred.\"), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)(_obj, \"invalid-app-credential\" /* AuthErrorCode.INVALID_APP_CREDENTIAL */ , \"The phone verification request contains an invalid application verifier. The reCAPTCHA token response is either invalid or expired.\"), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)(_obj, \"invalid-app-id\" /* AuthErrorCode.INVALID_APP_ID */ , \"The mobile app identifier is not registed for the current project.\"), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)(_obj, \"invalid-user-token\" /* AuthErrorCode.INVALID_AUTH */ , \"This user's credential isn't valid for this project. This can happen if the user's token has been tampered with, or if the user isn't for the project associated with this API key.\"), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)(_obj, \"invalid-auth-event\" /* AuthErrorCode.INVALID_AUTH_EVENT */ , \"An internal AuthError has occurred.\"), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)(_obj, \"invalid-verification-code\" /* AuthErrorCode.INVALID_CODE */ , \"The SMS verification code used to create the phone auth credential is invalid. Please resend the verification code sms and be sure to use the verification code provided by the user.\"), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)(_obj, \"invalid-continue-uri\" /* AuthErrorCode.INVALID_CONTINUE_URI */ , \"The continue URL provided in the request is invalid.\"), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)(_obj, \"invalid-cordova-configuration\" /* AuthErrorCode.INVALID_CORDOVA_CONFIGURATION */ , \"The following Cordova plugins must be installed to enable OAuth sign-in: cordova-plugin-buildinfo, cordova-universal-links-plugin, cordova-plugin-browsertab, cordova-plugin-inappbrowser and cordova-plugin-customurlscheme.\"), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)(_obj, \"invalid-custom-token\" /* AuthErrorCode.INVALID_CUSTOM_TOKEN */ , \"The custom token format is incorrect. Please check the documentation.\"), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)(_obj, \"invalid-dynamic-link-domain\" /* AuthErrorCode.INVALID_DYNAMIC_LINK_DOMAIN */ , \"The provided dynamic link domain is not configured or authorized for the current project.\"), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)(_obj, \"invalid-email\" /* AuthErrorCode.INVALID_EMAIL */ , \"The email address is badly formatted.\"), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)(_obj, \"invalid-emulator-scheme\" /* AuthErrorCode.INVALID_EMULATOR_SCHEME */ , \"Emulator URL must start with a valid scheme (http:// or https://).\"), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)(_obj, \"invalid-api-key\" /* AuthErrorCode.INVALID_API_KEY */ , \"Your API key is invalid, please check you have copied it correctly.\"), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)(_obj, \"invalid-cert-hash\" /* AuthErrorCode.INVALID_CERT_HASH */ , \"The SHA-1 certificate hash provided is invalid.\"), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)(_obj, \"invalid-credential\" /* AuthErrorCode.INVALID_CREDENTIAL */ , \"The supplied auth credential is incorrect, malformed or has expired.\"), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)(_obj, \"invalid-message-payload\" /* AuthErrorCode.INVALID_MESSAGE_PAYLOAD */ , \"The email template corresponding to this action contains invalid characters in its message. Please fix by going to the Auth email templates section in the Firebase Console.\"), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)(_obj, \"invalid-multi-factor-session\" /* AuthErrorCode.INVALID_MFA_SESSION */ , \"The request does not contain a valid proof of first factor successful sign-in.\"), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)(_obj, \"invalid-oauth-provider\" /* AuthErrorCode.INVALID_OAUTH_PROVIDER */ , \"EmailAuthProvider is not supported for this operation. This operation only supports OAuth providers.\"), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)(_obj, \"invalid-oauth-client-id\" /* AuthErrorCode.INVALID_OAUTH_CLIENT_ID */ , \"The OAuth client ID provided is either invalid or does not match the specified API key.\"), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)(_obj, \"unauthorized-domain\" /* AuthErrorCode.INVALID_ORIGIN */ , \"This domain is not authorized for OAuth operations for your Firebase project. Edit the list of authorized domains from the Firebase console.\"), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)(_obj, \"invalid-action-code\" /* AuthErrorCode.INVALID_OOB_CODE */ , \"The action code is invalid. This can happen if the code is malformed, expired, or has already been used.\"), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)(_obj, \"wrong-password\" /* AuthErrorCode.INVALID_PASSWORD */ , \"The password is invalid or the user does not have a password.\"), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)(_obj, \"invalid-persistence-type\" /* AuthErrorCode.INVALID_PERSISTENCE */ , \"The specified persistence type is invalid. It can only be local, session or none.\"), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)(_obj, \"invalid-phone-number\" /* AuthErrorCode.INVALID_PHONE_NUMBER */ , \"The format of the phone number provided is incorrect. Please enter the phone number in a format that can be parsed into E.164 format. E.164 phone numbers are written in the format [+][country code][subscriber number including area code].\"), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)(_obj, \"invalid-provider-id\" /* AuthErrorCode.INVALID_PROVIDER_ID */ , \"The specified provider ID is invalid.\"), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)(_obj, \"invalid-recipient-email\" /* AuthErrorCode.INVALID_RECIPIENT_EMAIL */ , \"The email corresponding to this action failed to send as the provided recipient email address is invalid.\"), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)(_obj, \"invalid-sender\" /* AuthErrorCode.INVALID_SENDER */ , \"The email template corresponding to this action contains an invalid sender email or name. Please fix by going to the Auth email templates section in the Firebase Console.\"), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)(_obj, \"invalid-verification-id\" /* AuthErrorCode.INVALID_SESSION_INFO */ , \"The verification ID used to create the phone auth credential is invalid.\"), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)(_obj, \"invalid-tenant-id\" /* AuthErrorCode.INVALID_TENANT_ID */ , \"The Auth instance's tenant ID is invalid.\"), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)(_obj, \"login-blocked\" /* AuthErrorCode.LOGIN_BLOCKED */ , \"Login blocked by user-provided method: {$originalMessage}\"), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)(_obj, \"missing-android-pkg-name\" /* AuthErrorCode.MISSING_ANDROID_PACKAGE_NAME */ , \"An Android Package Name must be provided if the Android App is required to be installed.\"), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)(_obj, \"auth-domain-config-required\" /* AuthErrorCode.MISSING_AUTH_DOMAIN */ , \"Be sure to include authDomain when calling firebase.initializeApp(), by following the instructions in the Firebase console.\"), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)(_obj, \"missing-app-credential\" /* AuthErrorCode.MISSING_APP_CREDENTIAL */ , \"The phone verification request is missing an application verifier assertion. A reCAPTCHA response token needs to be provided.\"), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)(_obj, \"missing-verification-code\" /* AuthErrorCode.MISSING_CODE */ , \"The phone auth credential was created with an empty SMS verification code.\"), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)(_obj, \"missing-continue-uri\" /* AuthErrorCode.MISSING_CONTINUE_URI */ , \"A continue URL must be provided in the request.\"), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)(_obj, \"missing-iframe-start\" /* AuthErrorCode.MISSING_IFRAME_START */ , \"An internal AuthError has occurred.\"), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)(_obj, \"missing-ios-bundle-id\" /* AuthErrorCode.MISSING_IOS_BUNDLE_ID */ , \"An iOS Bundle ID must be provided if an App Store ID is provided.\"), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)(_obj, \"missing-or-invalid-nonce\" /* AuthErrorCode.MISSING_OR_INVALID_NONCE */ , \"The request does not contain a valid nonce. This can occur if the SHA-256 hash of the provided raw nonce does not match the hashed nonce in the ID token payload.\"), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)(_obj, \"missing-password\" /* AuthErrorCode.MISSING_PASSWORD */ , \"A non-empty password must be provided\"), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)(_obj, \"missing-multi-factor-info\" /* AuthErrorCode.MISSING_MFA_INFO */ , \"No second factor identifier is provided.\"), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)(_obj, \"missing-multi-factor-session\" /* AuthErrorCode.MISSING_MFA_SESSION */ , \"The request is missing proof of first factor successful sign-in.\"), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)(_obj, \"missing-phone-number\" /* AuthErrorCode.MISSING_PHONE_NUMBER */ , \"To send verification codes, provide a phone number for the recipient.\"), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)(_obj, \"missing-verification-id\" /* AuthErrorCode.MISSING_SESSION_INFO */ , \"The phone auth credential was created with an empty verification ID.\"), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)(_obj, \"app-deleted\" /* AuthErrorCode.MODULE_DESTROYED */ , \"This instance of FirebaseApp has been deleted.\"), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)(_obj, \"multi-factor-info-not-found\" /* AuthErrorCode.MFA_INFO_NOT_FOUND */ , \"The user does not have a second factor matching the identifier provided.\"), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)(_obj, \"multi-factor-auth-required\" /* AuthErrorCode.MFA_REQUIRED */ , \"Proof of ownership of a second factor is required to complete sign-in.\"), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)(_obj, \"account-exists-with-different-credential\" /* AuthErrorCode.NEED_CONFIRMATION */ , \"An account already exists with the same email address but different sign-in credentials. Sign in using a provider associated with this email address.\"), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)(_obj, \"network-request-failed\" /* AuthErrorCode.NETWORK_REQUEST_FAILED */ , \"A network AuthError (such as timeout, interrupted connection or unreachable host) has occurred.\"), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)(_obj, \"no-auth-event\" /* AuthErrorCode.NO_AUTH_EVENT */ , \"An internal AuthError has occurred.\"), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)(_obj, \"no-such-provider\" /* AuthErrorCode.NO_SUCH_PROVIDER */ , \"User was not linked to an account with the given provider.\"), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)(_obj, \"null-user\" /* AuthErrorCode.NULL_USER */ , \"A null user object was provided as the argument for an operation which requires a non-null user object.\"), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)(_obj, \"operation-not-allowed\" /* AuthErrorCode.OPERATION_NOT_ALLOWED */ , \"The given sign-in provider is disabled for this Firebase project. Enable it in the Firebase console, under the sign-in method tab of the Auth section.\"), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)(_obj, \"operation-not-supported-in-this-environment\" /* AuthErrorCode.OPERATION_NOT_SUPPORTED */ , 'This operation is not supported in the environment this application is running on. \"location.protocol\" must be http, https or chrome-extension and web storage must be enabled.'), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)(_obj, \"popup-blocked\" /* AuthErrorCode.POPUP_BLOCKED */ , \"Unable to establish a connection with the popup. It may have been blocked by the browser.\"), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)(_obj, \"popup-closed-by-user\" /* AuthErrorCode.POPUP_CLOSED_BY_USER */ , \"The popup has been closed by the user before finalizing the operation.\"), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)(_obj, \"provider-already-linked\" /* AuthErrorCode.PROVIDER_ALREADY_LINKED */ , \"User can only be linked to one identity for the given provider.\"), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)(_obj, \"quota-exceeded\" /* AuthErrorCode.QUOTA_EXCEEDED */ , \"The project's quota for this operation has been exceeded.\"), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)(_obj, \"redirect-cancelled-by-user\" /* AuthErrorCode.REDIRECT_CANCELLED_BY_USER */ , \"The redirect operation has been cancelled by the user before finalizing.\"), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)(_obj, \"redirect-operation-pending\" /* AuthErrorCode.REDIRECT_OPERATION_PENDING */ , \"A redirect sign-in operation is already pending.\"), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)(_obj, \"rejected-credential\" /* AuthErrorCode.REJECTED_CREDENTIAL */ , \"The request contains malformed or mismatching credentials.\"), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)(_obj, \"second-factor-already-in-use\" /* AuthErrorCode.SECOND_FACTOR_ALREADY_ENROLLED */ , \"The second factor is already enrolled on this account.\"), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)(_obj, \"maximum-second-factor-count-exceeded\" /* AuthErrorCode.SECOND_FACTOR_LIMIT_EXCEEDED */ , \"The maximum allowed number of second factors on a user has been exceeded.\"), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)(_obj, \"tenant-id-mismatch\" /* AuthErrorCode.TENANT_ID_MISMATCH */ , \"The provided tenant ID does not match the Auth instance's tenant ID\"), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)(_obj, \"timeout\" /* AuthErrorCode.TIMEOUT */ , \"The operation has timed out.\"), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)(_obj, \"user-token-expired\" /* AuthErrorCode.TOKEN_EXPIRED */ , \"The user's credential is no longer valid. The user must sign in again.\"), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)(_obj, \"too-many-requests\" /* AuthErrorCode.TOO_MANY_ATTEMPTS_TRY_LATER */ , \"We have blocked all requests from this device due to unusual activity. Try again later.\"), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)(_obj, \"unauthorized-continue-uri\" /* AuthErrorCode.UNAUTHORIZED_DOMAIN */ , \"The domain of the continue URL is not whitelisted. Please whitelist the domain in the Firebase console.\"), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)(_obj, \"unsupported-first-factor\" /* AuthErrorCode.UNSUPPORTED_FIRST_FACTOR */ , \"Enrolling a second factor or signing in with a multi-factor account requires sign-in with a supported first factor.\"), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)(_obj, \"unsupported-persistence-type\" /* AuthErrorCode.UNSUPPORTED_PERSISTENCE */ , \"The current environment does not support the specified persistence type.\"), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)(_obj, \"unsupported-tenant-operation\" /* AuthErrorCode.UNSUPPORTED_TENANT_OPERATION */ , \"This operation is not supported in a multi-tenant context.\"), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)(_obj, \"unverified-email\" /* AuthErrorCode.UNVERIFIED_EMAIL */ , \"The operation requires a verified email.\"), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)(_obj, \"user-cancelled\" /* AuthErrorCode.USER_CANCELLED */ , \"The user did not grant your application the permissions it requested.\"), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)(_obj, \"user-not-found\" /* AuthErrorCode.USER_DELETED */ , \"There is no user record corresponding to this identifier. The user may have been deleted.\"), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)(_obj, \"user-disabled\" /* AuthErrorCode.USER_DISABLED */ , \"The user account has been disabled by an administrator.\"), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)(_obj, \"user-mismatch\" /* AuthErrorCode.USER_MISMATCH */ , \"The supplied credentials do not correspond to the previously signed in user.\"), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)(_obj, \"user-signed-out\" /* AuthErrorCode.USER_SIGNED_OUT */ , \"\"), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)(_obj, \"weak-password\" /* AuthErrorCode.WEAK_PASSWORD */ , \"The password must be 6 characters long or more.\"), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)(_obj, \"web-storage-unsupported\" /* AuthErrorCode.WEB_STORAGE_UNSUPPORTED */ , \"This browser is not supported or 3rd party cookies and data may be disabled.\"), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)(_obj, \"already-initialized\" /* AuthErrorCode.ALREADY_INITIALIZED */ , \"initializeAuth() has already been called with different options. To avoid this error, call initializeAuth() with the same options as when it was originally called, or call getAuth() to return the already initialized instance.\"), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)(_obj, \"missing-recaptcha-token\" /* AuthErrorCode.MISSING_RECAPTCHA_TOKEN */ , \"The reCAPTCHA token is missing when sending request to the backend.\"), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)(_obj, \"invalid-recaptcha-token\" /* AuthErrorCode.INVALID_RECAPTCHA_TOKEN */ , \"The reCAPTCHA token is invalid when sending request to the backend.\"), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)(_obj, \"invalid-recaptcha-action\" /* AuthErrorCode.INVALID_RECAPTCHA_ACTION */ , \"The reCAPTCHA action is invalid when sending request to the backend.\"), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)(_obj, \"recaptcha-not-enabled\" /* AuthErrorCode.RECAPTCHA_NOT_ENABLED */ , \"reCAPTCHA Enterprise integration is not enabled for this project.\"), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)(_obj, \"missing-client-type\" /* AuthErrorCode.MISSING_CLIENT_TYPE */ , \"The reCAPTCHA client type is missing when sending request to the backend.\"), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)(_obj, \"missing-recaptcha-version\" /* AuthErrorCode.MISSING_RECAPTCHA_VERSION */ , \"The reCAPTCHA version is missing when sending request to the backend.\"), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)(_obj, \"invalid-req-type\" /* AuthErrorCode.INVALID_REQ_TYPE */ , \"Invalid request parameters.\"), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)(_obj, \"invalid-recaptcha-version\" /* AuthErrorCode.INVALID_RECAPTCHA_VERSION */ , \"The reCAPTCHA version is invalid when sending request to the backend.\"), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)(_obj, \"unsupported-password-policy-schema-version\" /* AuthErrorCode.UNSUPPORTED_PASSWORD_POLICY_SCHEMA_VERSION */ , \"The password policy received from the backend uses a schema version that is not supported by this version of the Firebase SDK.\"), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)(_obj, \"password-does-not-meet-requirements\" /* AuthErrorCode.PASSWORD_DOES_NOT_MEET_REQUIREMENTS */ , \"The password does not meet the requirements.\"), _obj;\n}\nfunction $f394e9ac486578e6$var$_prodErrorMap() {\n // We will include this one message in the prod error map since by the very\n // nature of this error, developers will never be able to see the message\n // using the debugErrorMap (which is installed during auth initialization).\n return (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)({}, \"dependent-sdk-initialized-before-auth\" /* AuthErrorCode.DEPENDENT_SDK_INIT_BEFORE_AUTH */ , \"Another Firebase SDK was initialized and is trying to use Auth before Auth is initialized. Please be sure to call `initializeAuth` or `getAuth` before starting any other Firebase SDK.\");\n}\n/**\r\n * A verbose error map with detailed descriptions for most error codes.\r\n *\r\n * See discussion at {@link AuthErrorMap}\r\n *\r\n * @public\r\n */ var $f394e9ac486578e6$export$2329c99376c9d0a4 = $f394e9ac486578e6$var$_debugErrorMap;\n/**\r\n * A minimal error map with all verbose error messages stripped.\r\n *\r\n * See discussion at {@link AuthErrorMap}\r\n *\r\n * @public\r\n */ var $f394e9ac486578e6$export$7f8ddf7c7c20b3cd = $f394e9ac486578e6$var$_prodErrorMap;\nvar $f394e9ac486578e6$var$_DEFAULT_AUTH_ERROR_FACTORY = new (0, $9b50b37fb8824044$export$3fa6e1b18a3b2d40)(\"auth\", \"Firebase\", $f394e9ac486578e6$var$_prodErrorMap());\n/**\r\n * A map of potential `Auth` error codes, for easier comparison with errors\r\n * thrown by the SDK.\r\n *\r\n * @remarks\r\n * Note that you can't tree-shake individual keys\r\n * in the map, so by using the map you might substantially increase your\r\n * bundle size.\r\n *\r\n * @public\r\n */ var $f394e9ac486578e6$export$9bb611d729802a56 = {\n ADMIN_ONLY_OPERATION: \"auth/admin-restricted-operation\",\n ARGUMENT_ERROR: \"auth/argument-error\",\n APP_NOT_AUTHORIZED: \"auth/app-not-authorized\",\n APP_NOT_INSTALLED: \"auth/app-not-installed\",\n CAPTCHA_CHECK_FAILED: \"auth/captcha-check-failed\",\n CODE_EXPIRED: \"auth/code-expired\",\n CORDOVA_NOT_READY: \"auth/cordova-not-ready\",\n CORS_UNSUPPORTED: \"auth/cors-unsupported\",\n CREDENTIAL_ALREADY_IN_USE: \"auth/credential-already-in-use\",\n CREDENTIAL_MISMATCH: \"auth/custom-token-mismatch\",\n CREDENTIAL_TOO_OLD_LOGIN_AGAIN: \"auth/requires-recent-login\",\n DEPENDENT_SDK_INIT_BEFORE_AUTH: \"auth/dependent-sdk-initialized-before-auth\",\n DYNAMIC_LINK_NOT_ACTIVATED: \"auth/dynamic-link-not-activated\",\n EMAIL_CHANGE_NEEDS_VERIFICATION: \"auth/email-change-needs-verification\",\n EMAIL_EXISTS: \"auth/email-already-in-use\",\n EMULATOR_CONFIG_FAILED: \"auth/emulator-config-failed\",\n EXPIRED_OOB_CODE: \"auth/expired-action-code\",\n EXPIRED_POPUP_REQUEST: \"auth/cancelled-popup-request\",\n INTERNAL_ERROR: \"auth/internal-error\",\n INVALID_API_KEY: \"auth/invalid-api-key\",\n INVALID_APP_CREDENTIAL: \"auth/invalid-app-credential\",\n INVALID_APP_ID: \"auth/invalid-app-id\",\n INVALID_AUTH: \"auth/invalid-user-token\",\n INVALID_AUTH_EVENT: \"auth/invalid-auth-event\",\n INVALID_CERT_HASH: \"auth/invalid-cert-hash\",\n INVALID_CODE: \"auth/invalid-verification-code\",\n INVALID_CONTINUE_URI: \"auth/invalid-continue-uri\",\n INVALID_CORDOVA_CONFIGURATION: \"auth/invalid-cordova-configuration\",\n INVALID_CUSTOM_TOKEN: \"auth/invalid-custom-token\",\n INVALID_DYNAMIC_LINK_DOMAIN: \"auth/invalid-dynamic-link-domain\",\n INVALID_EMAIL: \"auth/invalid-email\",\n INVALID_EMULATOR_SCHEME: \"auth/invalid-emulator-scheme\",\n INVALID_IDP_RESPONSE: \"auth/invalid-credential\",\n INVALID_LOGIN_CREDENTIALS: \"auth/invalid-credential\",\n INVALID_MESSAGE_PAYLOAD: \"auth/invalid-message-payload\",\n INVALID_MFA_SESSION: \"auth/invalid-multi-factor-session\",\n INVALID_OAUTH_CLIENT_ID: \"auth/invalid-oauth-client-id\",\n INVALID_OAUTH_PROVIDER: \"auth/invalid-oauth-provider\",\n INVALID_OOB_CODE: \"auth/invalid-action-code\",\n INVALID_ORIGIN: \"auth/unauthorized-domain\",\n INVALID_PASSWORD: \"auth/wrong-password\",\n INVALID_PERSISTENCE: \"auth/invalid-persistence-type\",\n INVALID_PHONE_NUMBER: \"auth/invalid-phone-number\",\n INVALID_PROVIDER_ID: \"auth/invalid-provider-id\",\n INVALID_RECIPIENT_EMAIL: \"auth/invalid-recipient-email\",\n INVALID_SENDER: \"auth/invalid-sender\",\n INVALID_SESSION_INFO: \"auth/invalid-verification-id\",\n INVALID_TENANT_ID: \"auth/invalid-tenant-id\",\n MFA_INFO_NOT_FOUND: \"auth/multi-factor-info-not-found\",\n MFA_REQUIRED: \"auth/multi-factor-auth-required\",\n MISSING_ANDROID_PACKAGE_NAME: \"auth/missing-android-pkg-name\",\n MISSING_APP_CREDENTIAL: \"auth/missing-app-credential\",\n MISSING_AUTH_DOMAIN: \"auth/auth-domain-config-required\",\n MISSING_CODE: \"auth/missing-verification-code\",\n MISSING_CONTINUE_URI: \"auth/missing-continue-uri\",\n MISSING_IFRAME_START: \"auth/missing-iframe-start\",\n MISSING_IOS_BUNDLE_ID: \"auth/missing-ios-bundle-id\",\n MISSING_OR_INVALID_NONCE: \"auth/missing-or-invalid-nonce\",\n MISSING_MFA_INFO: \"auth/missing-multi-factor-info\",\n MISSING_MFA_SESSION: \"auth/missing-multi-factor-session\",\n MISSING_PHONE_NUMBER: \"auth/missing-phone-number\",\n MISSING_SESSION_INFO: \"auth/missing-verification-id\",\n MODULE_DESTROYED: \"auth/app-deleted\",\n NEED_CONFIRMATION: \"auth/account-exists-with-different-credential\",\n NETWORK_REQUEST_FAILED: \"auth/network-request-failed\",\n NULL_USER: \"auth/null-user\",\n NO_AUTH_EVENT: \"auth/no-auth-event\",\n NO_SUCH_PROVIDER: \"auth/no-such-provider\",\n OPERATION_NOT_ALLOWED: \"auth/operation-not-allowed\",\n OPERATION_NOT_SUPPORTED: \"auth/operation-not-supported-in-this-environment\",\n POPUP_BLOCKED: \"auth/popup-blocked\",\n POPUP_CLOSED_BY_USER: \"auth/popup-closed-by-user\",\n PROVIDER_ALREADY_LINKED: \"auth/provider-already-linked\",\n QUOTA_EXCEEDED: \"auth/quota-exceeded\",\n REDIRECT_CANCELLED_BY_USER: \"auth/redirect-cancelled-by-user\",\n REDIRECT_OPERATION_PENDING: \"auth/redirect-operation-pending\",\n REJECTED_CREDENTIAL: \"auth/rejected-credential\",\n SECOND_FACTOR_ALREADY_ENROLLED: \"auth/second-factor-already-in-use\",\n SECOND_FACTOR_LIMIT_EXCEEDED: \"auth/maximum-second-factor-count-exceeded\",\n TENANT_ID_MISMATCH: \"auth/tenant-id-mismatch\",\n TIMEOUT: \"auth/timeout\",\n TOKEN_EXPIRED: \"auth/user-token-expired\",\n TOO_MANY_ATTEMPTS_TRY_LATER: \"auth/too-many-requests\",\n UNAUTHORIZED_DOMAIN: \"auth/unauthorized-continue-uri\",\n UNSUPPORTED_FIRST_FACTOR: \"auth/unsupported-first-factor\",\n UNSUPPORTED_PERSISTENCE: \"auth/unsupported-persistence-type\",\n UNSUPPORTED_TENANT_OPERATION: \"auth/unsupported-tenant-operation\",\n UNVERIFIED_EMAIL: \"auth/unverified-email\",\n USER_CANCELLED: \"auth/user-cancelled\",\n USER_DELETED: \"auth/user-not-found\",\n USER_DISABLED: \"auth/user-disabled\",\n USER_MISMATCH: \"auth/user-mismatch\",\n USER_SIGNED_OUT: \"auth/user-signed-out\",\n WEAK_PASSWORD: \"auth/weak-password\",\n WEB_STORAGE_UNSUPPORTED: \"auth/web-storage-unsupported\",\n ALREADY_INITIALIZED: \"auth/already-initialized\",\n RECAPTCHA_NOT_ENABLED: \"auth/recaptcha-not-enabled\",\n MISSING_RECAPTCHA_TOKEN: \"auth/missing-recaptcha-token\",\n INVALID_RECAPTCHA_TOKEN: \"auth/invalid-recaptcha-token\",\n INVALID_RECAPTCHA_ACTION: \"auth/invalid-recaptcha-action\",\n MISSING_CLIENT_TYPE: \"auth/missing-client-type\",\n MISSING_RECAPTCHA_VERSION: \"auth/missing-recaptcha-version\",\n INVALID_RECAPTCHA_VERSION: \"auth/invalid-recaptcha-version\",\n INVALID_REQ_TYPE: \"auth/invalid-req-type\"\n};\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */ var $f394e9ac486578e6$var$logClient = new (0, $01fab7a4d39b7fcc$export$efa9a398d6368992)(\"@firebase/auth\");\nfunction $f394e9ac486578e6$var$_logWarn(msg) {\n for(var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++){\n args[_key - 1] = arguments[_key];\n }\n var _logClient;\n if ($f394e9ac486578e6$var$logClient.logLevel <= (0, $01fab7a4d39b7fcc$export$243e62d78d3b544d).WARN) (_logClient = $f394e9ac486578e6$var$logClient).warn.apply(_logClient, [\n \"Auth (\".concat((0, $6801661115945616$export$31499a9cd224b78c), \"): \").concat(msg)\n ].concat((0, $a279000f7ad0c22a$export$1b5e630bc3aea29f)(args)));\n}\nfunction $f394e9ac486578e6$var$_logError(msg) {\n for(var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++){\n args[_key - 1] = arguments[_key];\n }\n var _logClient;\n if ($f394e9ac486578e6$var$logClient.logLevel <= (0, $01fab7a4d39b7fcc$export$243e62d78d3b544d).ERROR) (_logClient = $f394e9ac486578e6$var$logClient).error.apply(_logClient, [\n \"Auth (\".concat((0, $6801661115945616$export$31499a9cd224b78c), \"): \").concat(msg)\n ].concat((0, $a279000f7ad0c22a$export$1b5e630bc3aea29f)(args)));\n}\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */ function $f394e9ac486578e6$export$9fa96a7d116ea3ce(authOrCode) {\n for(var _len = arguments.length, rest = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++){\n rest[_key - 1] = arguments[_key];\n }\n throw $f394e9ac486578e6$var$createErrorInternal.apply(void 0, [\n authOrCode\n ].concat((0, $a279000f7ad0c22a$export$1b5e630bc3aea29f)(rest)));\n}\nfunction $f394e9ac486578e6$export$9d398bebfec1c039(authOrCode) {\n for(var _len = arguments.length, rest = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++){\n rest[_key - 1] = arguments[_key];\n }\n return $f394e9ac486578e6$var$createErrorInternal.apply(void 0, [\n authOrCode\n ].concat((0, $a279000f7ad0c22a$export$1b5e630bc3aea29f)(rest)));\n}\nfunction $f394e9ac486578e6$var$_errorWithCustomMessage(auth, code, message) {\n var errorMap = Object.assign(Object.assign({}, $f394e9ac486578e6$export$7f8ddf7c7c20b3cd()), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)({}, code, message));\n var factory = new (0, $9b50b37fb8824044$export$3fa6e1b18a3b2d40)(\"auth\", \"Firebase\", errorMap);\n return factory.create(code, {\n appName: auth.name\n });\n}\nfunction $f394e9ac486578e6$var$_assertInstanceOf(auth, object, instance) {\n var constructorInstance = instance;\n if (!(object instanceof constructorInstance)) {\n if (constructorInstance.name !== object.constructor.name) $f394e9ac486578e6$export$9fa96a7d116ea3ce(auth, \"argument-error\" /* AuthErrorCode.ARGUMENT_ERROR */ );\n throw $f394e9ac486578e6$var$_errorWithCustomMessage(auth, \"argument-error\" /* AuthErrorCode.ARGUMENT_ERROR */ , \"Type of \".concat(object.constructor.name, \" does not match expected instance.\") + \"Did you pass a reference from a different Auth SDK?\");\n }\n}\nfunction $f394e9ac486578e6$var$createErrorInternal(authOrCode) {\n for(var _len = arguments.length, rest = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++){\n rest[_key - 1] = arguments[_key];\n }\n var _DEFAULT_AUTH_ERROR_FACTORY1;\n if (typeof authOrCode !== \"string\") {\n var _authOrCode__errorFactory;\n var code = rest[0];\n var fullParams = (0, $a279000f7ad0c22a$export$1b5e630bc3aea29f)(rest.slice(1));\n if (fullParams[0]) fullParams[0].appName = authOrCode.name;\n return (_authOrCode__errorFactory = authOrCode._errorFactory).create.apply(_authOrCode__errorFactory, [\n code\n ].concat((0, $a279000f7ad0c22a$export$1b5e630bc3aea29f)(fullParams)));\n }\n return (_DEFAULT_AUTH_ERROR_FACTORY1 = $f394e9ac486578e6$var$_DEFAULT_AUTH_ERROR_FACTORY).create.apply(_DEFAULT_AUTH_ERROR_FACTORY1, [\n authOrCode\n ].concat((0, $a279000f7ad0c22a$export$1b5e630bc3aea29f)(rest)));\n}\nfunction $f394e9ac486578e6$export$890c4ad488842ce7(assertion, authOrCode) {\n for(var _len = arguments.length, rest = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++){\n rest[_key - 2] = arguments[_key];\n }\n if (!assertion) throw $f394e9ac486578e6$var$createErrorInternal.apply(void 0, [\n authOrCode\n ].concat((0, $a279000f7ad0c22a$export$1b5e630bc3aea29f)(rest)));\n}\n/**\r\n * Unconditionally fails, throwing an internal error with the given message.\r\n *\r\n * @param failure type of failure encountered\r\n * @throws Error\r\n */ function $f394e9ac486578e6$var$debugFail(failure) {\n // Log the failure in addition to throw an exception, just in case the\n // exception is swallowed.\n var message = \"INTERNAL ASSERTION FAILED: \" + failure;\n $f394e9ac486578e6$var$_logError(message);\n // NOTE: We don't use FirebaseError here because these are internal failures\n // that cannot be handled by the user. (Also it would create a circular\n // dependency between the error and assert modules which doesn't work.)\n throw new Error(message);\n}\n/**\r\n * Fails if the given assertion condition is false, throwing an Error with the\r\n * given message if it did.\r\n *\r\n * @param assertion\r\n * @param message\r\n */ function $f394e9ac486578e6$export$1fbe638ecf81657e(assertion, message) {\n if (!assertion) $f394e9ac486578e6$var$debugFail(message);\n}\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */ function $f394e9ac486578e6$var$_getCurrentUrl() {\n var _a;\n return typeof self !== \"undefined\" && ((_a = self.location) === null || _a === void 0 ? void 0 : _a.href) || \"\";\n}\nfunction $f394e9ac486578e6$var$_isHttpOrHttps() {\n return $f394e9ac486578e6$var$_getCurrentScheme() === \"http:\" || $f394e9ac486578e6$var$_getCurrentScheme() === \"https:\";\n}\nfunction $f394e9ac486578e6$var$_getCurrentScheme() {\n var _a;\n return typeof self !== \"undefined\" && ((_a = self.location) === null || _a === void 0 ? void 0 : _a.protocol) || null;\n}\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */ /**\r\n * Determine whether the browser is working online\r\n */ function $f394e9ac486578e6$var$_isOnline() {\n if (typeof navigator !== \"undefined\" && navigator && \"onLine\" in navigator && typeof navigator.onLine === \"boolean\" && // Apply only for traditional web apps and Chrome extensions.\n // This is especially true for Cordova apps which have unreliable\n // navigator.onLine behavior unless cordova-plugin-network-information is\n // installed which overwrites the native navigator.onLine value and\n // defines navigator.connection.\n ($f394e9ac486578e6$var$_isHttpOrHttps() || (0, $9b50b37fb8824044$export$caa8774a9107a58e)() || \"connection\" in navigator)) return navigator.onLine;\n // If we can't determine the state, assume it is online.\n return true;\n}\nfunction $f394e9ac486578e6$var$_getUserLanguage() {\n if (typeof navigator === \"undefined\") return null;\n var navigatorLanguage = navigator;\n return(// Most reliable, but only supported in Chrome/Firefox.\n navigatorLanguage.languages && navigatorLanguage.languages[0] || // Supported in most browsers, but returns the language of the browser\n // UI, not the language set in browser settings.\n navigatorLanguage.language || // Couldn't determine language.\n null);\n}\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */ /**\r\n * A structure to help pick between a range of long and short delay durations\r\n * depending on the current environment. In general, the long delay is used for\r\n * mobile environments whereas short delays are used for desktop environments.\r\n */ var $f394e9ac486578e6$var$Delay = /*#__PURE__*/ function() {\n \"use strict\";\n function Delay(shortDelay, longDelay) {\n (0, $0c3f79e99c83f58f$export$2996f80ef42b8419)(this, Delay);\n this.shortDelay = shortDelay;\n this.longDelay = longDelay;\n // Internal error when improperly initialized.\n $f394e9ac486578e6$export$1fbe638ecf81657e(longDelay > shortDelay, \"Short delay should be less than long delay!\");\n this.isMobile = (0, $9b50b37fb8824044$export$872f8323f01d7ae0)() || (0, $9b50b37fb8824044$export$f7a1e23e542d38e3)();\n }\n (0, $a27186eefd8c4b26$export$d60067ff2358eee8)(Delay, [\n {\n key: \"get\",\n value: function get() {\n if (!$f394e9ac486578e6$var$_isOnline()) // Pick the shorter timeout.\n return Math.min(5000 /* DelayMin.OFFLINE */ , this.shortDelay);\n // If running in a mobile environment, return the long delay, otherwise\n // return the short delay.\n // This could be improved in the future to dynamically change based on other\n // variables instead of just reading the current environment.\n return this.isMobile ? this.longDelay : this.shortDelay;\n }\n }\n ]);\n return Delay;\n}();\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */ function $f394e9ac486578e6$var$_emulatorUrl(config, path) {\n $f394e9ac486578e6$export$1fbe638ecf81657e(config.emulator, \"Emulator should always be set here\");\n var url = config.emulator.url;\n if (!path) return url;\n return \"\".concat(url).concat(path.startsWith(\"/\") ? path.slice(1) : path);\n}\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */ var $f394e9ac486578e6$export$2ed0fc6709e59212 = /*#__PURE__*/ function() {\n \"use strict\";\n function FetchProvider() {\n (0, $0c3f79e99c83f58f$export$2996f80ef42b8419)(this, FetchProvider);\n }\n (0, $a27186eefd8c4b26$export$d60067ff2358eee8)(FetchProvider, null, [\n {\n key: \"initialize\",\n value: function initialize(fetchImpl, headersImpl, responseImpl) {\n this.fetchImpl = fetchImpl;\n if (headersImpl) this.headersImpl = headersImpl;\n if (responseImpl) this.responseImpl = responseImpl;\n }\n },\n {\n key: \"fetch\",\n value: function fetch1() {\n if (this.fetchImpl) return this.fetchImpl;\n if (typeof self !== \"undefined\" && \"fetch\" in self) return self.fetch;\n if (typeof globalThis !== \"undefined\" && globalThis.fetch) return globalThis.fetch;\n if (typeof fetch !== \"undefined\") return fetch;\n $f394e9ac486578e6$var$debugFail(\"Could not find fetch implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill\");\n }\n },\n {\n key: \"headers\",\n value: function headers() {\n if (this.headersImpl) return this.headersImpl;\n if (typeof self !== \"undefined\" && \"Headers\" in self) return self.Headers;\n if (typeof globalThis !== \"undefined\" && globalThis.Headers) return globalThis.Headers;\n if (typeof Headers !== \"undefined\") return Headers;\n $f394e9ac486578e6$var$debugFail(\"Could not find Headers implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill\");\n }\n },\n {\n key: \"response\",\n value: function response() {\n if (this.responseImpl) return this.responseImpl;\n if (typeof self !== \"undefined\" && \"Response\" in self) return self.Response;\n if (typeof globalThis !== \"undefined\" && globalThis.Response) return globalThis.Response;\n if (typeof Response !== \"undefined\") return Response;\n $f394e9ac486578e6$var$debugFail(\"Could not find Response implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill\");\n }\n }\n ]);\n return FetchProvider;\n}();\nvar $f394e9ac486578e6$var$_obj;\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */ /**\r\n * Map from errors returned by the server to errors to developer visible errors\r\n */ var $f394e9ac486578e6$var$SERVER_ERROR_MAP = ($f394e9ac486578e6$var$_obj = {}, // Custom token errors.\n(0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)($f394e9ac486578e6$var$_obj, \"CREDENTIAL_MISMATCH\" /* ServerError.CREDENTIAL_MISMATCH */ , \"custom-token-mismatch\" /* AuthErrorCode.CREDENTIAL_MISMATCH */ ), // This can only happen if the SDK sends a bad request.\n(0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)($f394e9ac486578e6$var$_obj, \"MISSING_CUSTOM_TOKEN\" /* ServerError.MISSING_CUSTOM_TOKEN */ , \"internal-error\" /* AuthErrorCode.INTERNAL_ERROR */ ), // Create Auth URI errors.\n(0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)($f394e9ac486578e6$var$_obj, \"INVALID_IDENTIFIER\" /* ServerError.INVALID_IDENTIFIER */ , \"invalid-email\" /* AuthErrorCode.INVALID_EMAIL */ ), // This can only happen if the SDK sends a bad request.\n(0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)($f394e9ac486578e6$var$_obj, \"MISSING_CONTINUE_URI\" /* ServerError.MISSING_CONTINUE_URI */ , \"internal-error\" /* AuthErrorCode.INTERNAL_ERROR */ ), // Sign in with email and password errors (some apply to sign up too).\n(0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)($f394e9ac486578e6$var$_obj, \"INVALID_PASSWORD\" /* ServerError.INVALID_PASSWORD */ , \"wrong-password\" /* AuthErrorCode.INVALID_PASSWORD */ ), // This can only happen if the SDK sends a bad request.\n(0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)($f394e9ac486578e6$var$_obj, \"MISSING_PASSWORD\" /* ServerError.MISSING_PASSWORD */ , \"missing-password\" /* AuthErrorCode.MISSING_PASSWORD */ ), // Thrown if Email Enumeration Protection is enabled in the project and the email or password is\n// invalid.\n(0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)($f394e9ac486578e6$var$_obj, \"INVALID_LOGIN_CREDENTIALS\" /* ServerError.INVALID_LOGIN_CREDENTIALS */ , \"invalid-credential\" /* AuthErrorCode.INVALID_CREDENTIAL */ ), // Sign up with email and password errors.\n(0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)($f394e9ac486578e6$var$_obj, \"EMAIL_EXISTS\" /* ServerError.EMAIL_EXISTS */ , \"email-already-in-use\" /* AuthErrorCode.EMAIL_EXISTS */ ), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)($f394e9ac486578e6$var$_obj, \"PASSWORD_LOGIN_DISABLED\" /* ServerError.PASSWORD_LOGIN_DISABLED */ , \"operation-not-allowed\" /* AuthErrorCode.OPERATION_NOT_ALLOWED */ ), // Verify assertion for sign in with credential errors:\n(0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)($f394e9ac486578e6$var$_obj, \"INVALID_IDP_RESPONSE\" /* ServerError.INVALID_IDP_RESPONSE */ , \"invalid-credential\" /* AuthErrorCode.INVALID_CREDENTIAL */ ), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)($f394e9ac486578e6$var$_obj, \"INVALID_PENDING_TOKEN\" /* ServerError.INVALID_PENDING_TOKEN */ , \"invalid-credential\" /* AuthErrorCode.INVALID_CREDENTIAL */ ), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)($f394e9ac486578e6$var$_obj, \"FEDERATED_USER_ID_ALREADY_LINKED\" /* ServerError.FEDERATED_USER_ID_ALREADY_LINKED */ , \"credential-already-in-use\" /* AuthErrorCode.CREDENTIAL_ALREADY_IN_USE */ ), // This can only happen if the SDK sends a bad request.\n(0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)($f394e9ac486578e6$var$_obj, \"MISSING_REQ_TYPE\" /* ServerError.MISSING_REQ_TYPE */ , \"internal-error\" /* AuthErrorCode.INTERNAL_ERROR */ ), // Send Password reset email errors:\n(0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)($f394e9ac486578e6$var$_obj, \"EMAIL_NOT_FOUND\" /* ServerError.EMAIL_NOT_FOUND */ , \"user-not-found\" /* AuthErrorCode.USER_DELETED */ ), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)($f394e9ac486578e6$var$_obj, \"RESET_PASSWORD_EXCEED_LIMIT\" /* ServerError.RESET_PASSWORD_EXCEED_LIMIT */ , \"too-many-requests\" /* AuthErrorCode.TOO_MANY_ATTEMPTS_TRY_LATER */ ), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)($f394e9ac486578e6$var$_obj, \"EXPIRED_OOB_CODE\" /* ServerError.EXPIRED_OOB_CODE */ , \"expired-action-code\" /* AuthErrorCode.EXPIRED_OOB_CODE */ ), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)($f394e9ac486578e6$var$_obj, \"INVALID_OOB_CODE\" /* ServerError.INVALID_OOB_CODE */ , \"invalid-action-code\" /* AuthErrorCode.INVALID_OOB_CODE */ ), // This can only happen if the SDK sends a bad request.\n(0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)($f394e9ac486578e6$var$_obj, \"MISSING_OOB_CODE\" /* ServerError.MISSING_OOB_CODE */ , \"internal-error\" /* AuthErrorCode.INTERNAL_ERROR */ ), // Operations that require ID token in request:\n(0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)($f394e9ac486578e6$var$_obj, \"CREDENTIAL_TOO_OLD_LOGIN_AGAIN\" /* ServerError.CREDENTIAL_TOO_OLD_LOGIN_AGAIN */ , \"requires-recent-login\" /* AuthErrorCode.CREDENTIAL_TOO_OLD_LOGIN_AGAIN */ ), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)($f394e9ac486578e6$var$_obj, \"INVALID_ID_TOKEN\" /* ServerError.INVALID_ID_TOKEN */ , \"invalid-user-token\" /* AuthErrorCode.INVALID_AUTH */ ), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)($f394e9ac486578e6$var$_obj, \"TOKEN_EXPIRED\" /* ServerError.TOKEN_EXPIRED */ , \"user-token-expired\" /* AuthErrorCode.TOKEN_EXPIRED */ ), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)($f394e9ac486578e6$var$_obj, \"USER_NOT_FOUND\" /* ServerError.USER_NOT_FOUND */ , \"user-token-expired\" /* AuthErrorCode.TOKEN_EXPIRED */ ), // Other errors.\n(0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)($f394e9ac486578e6$var$_obj, \"TOO_MANY_ATTEMPTS_TRY_LATER\" /* ServerError.TOO_MANY_ATTEMPTS_TRY_LATER */ , \"too-many-requests\" /* AuthErrorCode.TOO_MANY_ATTEMPTS_TRY_LATER */ ), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)($f394e9ac486578e6$var$_obj, \"PASSWORD_DOES_NOT_MEET_REQUIREMENTS\" /* ServerError.PASSWORD_DOES_NOT_MEET_REQUIREMENTS */ , \"password-does-not-meet-requirements\" /* AuthErrorCode.PASSWORD_DOES_NOT_MEET_REQUIREMENTS */ ), // Phone Auth related errors.\n(0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)($f394e9ac486578e6$var$_obj, \"INVALID_CODE\" /* ServerError.INVALID_CODE */ , \"invalid-verification-code\" /* AuthErrorCode.INVALID_CODE */ ), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)($f394e9ac486578e6$var$_obj, \"INVALID_SESSION_INFO\" /* ServerError.INVALID_SESSION_INFO */ , \"invalid-verification-id\" /* AuthErrorCode.INVALID_SESSION_INFO */ ), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)($f394e9ac486578e6$var$_obj, \"INVALID_TEMPORARY_PROOF\" /* ServerError.INVALID_TEMPORARY_PROOF */ , \"invalid-credential\" /* AuthErrorCode.INVALID_CREDENTIAL */ ), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)($f394e9ac486578e6$var$_obj, \"MISSING_SESSION_INFO\" /* ServerError.MISSING_SESSION_INFO */ , \"missing-verification-id\" /* AuthErrorCode.MISSING_SESSION_INFO */ ), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)($f394e9ac486578e6$var$_obj, \"SESSION_EXPIRED\" /* ServerError.SESSION_EXPIRED */ , \"code-expired\" /* AuthErrorCode.CODE_EXPIRED */ ), // Other action code errors when additional settings passed.\n// MISSING_CONTINUE_URI is getting mapped to INTERNAL_ERROR above.\n// This is OK as this error will be caught by client side validation.\n(0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)($f394e9ac486578e6$var$_obj, \"MISSING_ANDROID_PACKAGE_NAME\" /* ServerError.MISSING_ANDROID_PACKAGE_NAME */ , \"missing-android-pkg-name\" /* AuthErrorCode.MISSING_ANDROID_PACKAGE_NAME */ ), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)($f394e9ac486578e6$var$_obj, \"UNAUTHORIZED_DOMAIN\" /* ServerError.UNAUTHORIZED_DOMAIN */ , \"unauthorized-continue-uri\" /* AuthErrorCode.UNAUTHORIZED_DOMAIN */ ), // getProjectConfig errors when clientId is passed.\n(0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)($f394e9ac486578e6$var$_obj, \"INVALID_OAUTH_CLIENT_ID\" /* ServerError.INVALID_OAUTH_CLIENT_ID */ , \"invalid-oauth-client-id\" /* AuthErrorCode.INVALID_OAUTH_CLIENT_ID */ ), // User actions (sign-up or deletion) disabled errors.\n(0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)($f394e9ac486578e6$var$_obj, \"ADMIN_ONLY_OPERATION\" /* ServerError.ADMIN_ONLY_OPERATION */ , \"admin-restricted-operation\" /* AuthErrorCode.ADMIN_ONLY_OPERATION */ ), // Multi factor related errors.\n(0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)($f394e9ac486578e6$var$_obj, \"INVALID_MFA_PENDING_CREDENTIAL\" /* ServerError.INVALID_MFA_PENDING_CREDENTIAL */ , \"invalid-multi-factor-session\" /* AuthErrorCode.INVALID_MFA_SESSION */ ), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)($f394e9ac486578e6$var$_obj, \"MFA_ENROLLMENT_NOT_FOUND\" /* ServerError.MFA_ENROLLMENT_NOT_FOUND */ , \"multi-factor-info-not-found\" /* AuthErrorCode.MFA_INFO_NOT_FOUND */ ), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)($f394e9ac486578e6$var$_obj, \"MISSING_MFA_ENROLLMENT_ID\" /* ServerError.MISSING_MFA_ENROLLMENT_ID */ , \"missing-multi-factor-info\" /* AuthErrorCode.MISSING_MFA_INFO */ ), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)($f394e9ac486578e6$var$_obj, \"MISSING_MFA_PENDING_CREDENTIAL\" /* ServerError.MISSING_MFA_PENDING_CREDENTIAL */ , \"missing-multi-factor-session\" /* AuthErrorCode.MISSING_MFA_SESSION */ ), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)($f394e9ac486578e6$var$_obj, \"SECOND_FACTOR_EXISTS\" /* ServerError.SECOND_FACTOR_EXISTS */ , \"second-factor-already-in-use\" /* AuthErrorCode.SECOND_FACTOR_ALREADY_ENROLLED */ ), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)($f394e9ac486578e6$var$_obj, \"SECOND_FACTOR_LIMIT_EXCEEDED\" /* ServerError.SECOND_FACTOR_LIMIT_EXCEEDED */ , \"maximum-second-factor-count-exceeded\" /* AuthErrorCode.SECOND_FACTOR_LIMIT_EXCEEDED */ ), // Blocking functions related errors.\n(0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)($f394e9ac486578e6$var$_obj, \"BLOCKING_FUNCTION_ERROR_RESPONSE\" /* ServerError.BLOCKING_FUNCTION_ERROR_RESPONSE */ , \"internal-error\" /* AuthErrorCode.INTERNAL_ERROR */ ), // Recaptcha related errors.\n(0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)($f394e9ac486578e6$var$_obj, \"RECAPTCHA_NOT_ENABLED\" /* ServerError.RECAPTCHA_NOT_ENABLED */ , \"recaptcha-not-enabled\" /* AuthErrorCode.RECAPTCHA_NOT_ENABLED */ ), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)($f394e9ac486578e6$var$_obj, \"MISSING_RECAPTCHA_TOKEN\" /* ServerError.MISSING_RECAPTCHA_TOKEN */ , \"missing-recaptcha-token\" /* AuthErrorCode.MISSING_RECAPTCHA_TOKEN */ ), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)($f394e9ac486578e6$var$_obj, \"INVALID_RECAPTCHA_TOKEN\" /* ServerError.INVALID_RECAPTCHA_TOKEN */ , \"invalid-recaptcha-token\" /* AuthErrorCode.INVALID_RECAPTCHA_TOKEN */ ), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)($f394e9ac486578e6$var$_obj, \"INVALID_RECAPTCHA_ACTION\" /* ServerError.INVALID_RECAPTCHA_ACTION */ , \"invalid-recaptcha-action\" /* AuthErrorCode.INVALID_RECAPTCHA_ACTION */ ), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)($f394e9ac486578e6$var$_obj, \"MISSING_CLIENT_TYPE\" /* ServerError.MISSING_CLIENT_TYPE */ , \"missing-client-type\" /* AuthErrorCode.MISSING_CLIENT_TYPE */ ), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)($f394e9ac486578e6$var$_obj, \"MISSING_RECAPTCHA_VERSION\" /* ServerError.MISSING_RECAPTCHA_VERSION */ , \"missing-recaptcha-version\" /* AuthErrorCode.MISSING_RECAPTCHA_VERSION */ ), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)($f394e9ac486578e6$var$_obj, \"INVALID_RECAPTCHA_VERSION\" /* ServerError.INVALID_RECAPTCHA_VERSION */ , \"invalid-recaptcha-version\" /* AuthErrorCode.INVALID_RECAPTCHA_VERSION */ ), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)($f394e9ac486578e6$var$_obj, \"INVALID_REQ_TYPE\" /* ServerError.INVALID_REQ_TYPE */ , \"invalid-req-type\" /* AuthErrorCode.INVALID_REQ_TYPE */ ), $f394e9ac486578e6$var$_obj);\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */ var $f394e9ac486578e6$var$DEFAULT_API_TIMEOUT_MS = new $f394e9ac486578e6$var$Delay(30000, 60000);\nfunction $f394e9ac486578e6$var$_addTidIfNecessary(auth, request) {\n if (auth.tenantId && !request.tenantId) return Object.assign(Object.assign({}, request), {\n tenantId: auth.tenantId\n });\n return request;\n}\nfunction $f394e9ac486578e6$var$_performApiRequest(auth, method, path, request) {\n return $f394e9ac486578e6$var$__performApiRequest.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$var$__performApiRequest() {\n $f394e9ac486578e6$var$__performApiRequest = (0, $9167c88d5d99601b$export$7c398597f8905a1)(function(auth, method, path, request) {\n var customErrorMap;\n var _arguments = arguments;\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n customErrorMap = _arguments.length > 4 && _arguments[4] !== void 0 ? _arguments[4] : {};\n return [\n 2,\n $f394e9ac486578e6$var$_performFetchWithErrorHandling(auth, customErrorMap, /*#__PURE__*/ (0, $9167c88d5d99601b$export$7c398597f8905a1)(function() {\n var body, params, query, headers;\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n switch(_state.label){\n case 0:\n body = {};\n params = {};\n if (request) {\n if (method === \"GET\" /* HttpMethod.GET */ ) params = request;\n else body = {\n body: JSON.stringify(request)\n };\n }\n query = (0, $9b50b37fb8824044$export$ac4103b836844853)(Object.assign({\n key: auth.config.apiKey\n }, params)).slice(1);\n return [\n 4,\n auth._getAdditionalHeaders()\n ];\n case 1:\n headers = _state.sent();\n headers[\"Content-Type\" /* HttpHeader.CONTENT_TYPE */ ] = \"application/json\";\n if (auth.languageCode) headers[\"X-Firebase-Locale\" /* HttpHeader.X_FIREBASE_LOCALE */ ] = auth.languageCode;\n return [\n 2,\n $f394e9ac486578e6$export$2ed0fc6709e59212.fetch()($f394e9ac486578e6$var$_getFinalTarget(auth, auth.config.apiHost, path, query), Object.assign({\n method: method,\n headers: headers,\n referrerPolicy: \"no-referrer\"\n }, body))\n ];\n }\n });\n }))\n ];\n });\n });\n return $f394e9ac486578e6$var$__performApiRequest.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$var$_performFetchWithErrorHandling(auth, customErrorMap, fetchFn) {\n return $f394e9ac486578e6$var$__performFetchWithErrorHandling.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$var$__performFetchWithErrorHandling() {\n $f394e9ac486578e6$var$__performFetchWithErrorHandling = (0, $9167c88d5d99601b$export$7c398597f8905a1)(function(auth, customErrorMap, fetchFn) {\n var errorMap, networkTimeout, response, json, errorMessage, _errorMessage_split, serverErrorCode, serverErrorMessage, authError, e;\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n switch(_state.label){\n case 0:\n auth._canInitEmulator = false;\n errorMap = Object.assign(Object.assign({}, $f394e9ac486578e6$var$SERVER_ERROR_MAP), customErrorMap);\n _state.label = 1;\n case 1:\n _state.trys.push([\n 1,\n 4,\n ,\n 5\n ]);\n networkTimeout = new $f394e9ac486578e6$var$NetworkTimeout(auth);\n return [\n 4,\n Promise.race([\n fetchFn(),\n networkTimeout.promise\n ])\n ];\n case 2:\n response = _state.sent();\n // If we've reached this point, the fetch succeeded and the networkTimeout\n // didn't throw; clear the network timeout delay so that Node won't hang\n networkTimeout.clearNetworkTimeout();\n return [\n 4,\n response.json()\n ];\n case 3:\n json = _state.sent();\n if (\"needConfirmation\" in json) throw $f394e9ac486578e6$var$_makeTaggedError(auth, \"account-exists-with-different-credential\" /* AuthErrorCode.NEED_CONFIRMATION */ , json);\n if (response.ok && !(\"errorMessage\" in json)) return [\n 2,\n json\n ];\n else {\n errorMessage = response.ok ? json.errorMessage : json.error.message;\n _errorMessage_split = (0, $6e952d66071d1a0a$export$fdf2a89c76341bbf)(errorMessage.split(\" : \"), 2), serverErrorCode = _errorMessage_split[0], serverErrorMessage = _errorMessage_split[1];\n if (serverErrorCode === \"FEDERATED_USER_ID_ALREADY_LINKED\" /* ServerError.FEDERATED_USER_ID_ALREADY_LINKED */ ) throw $f394e9ac486578e6$var$_makeTaggedError(auth, \"credential-already-in-use\" /* AuthErrorCode.CREDENTIAL_ALREADY_IN_USE */ , json);\n else if (serverErrorCode === \"EMAIL_EXISTS\" /* ServerError.EMAIL_EXISTS */ ) throw $f394e9ac486578e6$var$_makeTaggedError(auth, \"email-already-in-use\" /* AuthErrorCode.EMAIL_EXISTS */ , json);\n else if (serverErrorCode === \"USER_DISABLED\" /* ServerError.USER_DISABLED */ ) throw $f394e9ac486578e6$var$_makeTaggedError(auth, \"user-disabled\" /* AuthErrorCode.USER_DISABLED */ , json);\n authError = errorMap[serverErrorCode] || serverErrorCode.toLowerCase().replace(/[_\\s]+/g, \"-\");\n if (serverErrorMessage) throw $f394e9ac486578e6$var$_errorWithCustomMessage(auth, authError, serverErrorMessage);\n else $f394e9ac486578e6$export$9fa96a7d116ea3ce(auth, authError);\n }\n return [\n 3,\n 5\n ];\n case 4:\n e = _state.sent();\n if (e instanceof (0, $9b50b37fb8824044$export$dd24e9cd51226c56)) throw e;\n // Changing this to a different error code will log user out when there is a network error\n // because we treat any error other than NETWORK_REQUEST_FAILED as token is invalid.\n // https://github.com/firebase/firebase-js-sdk/blob/4fbc73610d70be4e0852e7de63a39cb7897e8546/packages/auth/src/core/auth/auth_impl.ts#L309-L316\n $f394e9ac486578e6$export$9fa96a7d116ea3ce(auth, \"network-request-failed\" /* AuthErrorCode.NETWORK_REQUEST_FAILED */ , {\n \"message\": String(e)\n });\n return [\n 3,\n 5\n ];\n case 5:\n return [\n 2\n ];\n }\n });\n });\n return $f394e9ac486578e6$var$__performFetchWithErrorHandling.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$var$_performSignInRequest(auth, method, path, request) {\n return $f394e9ac486578e6$var$__performSignInRequest.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$var$__performSignInRequest() {\n $f394e9ac486578e6$var$__performSignInRequest = (0, $9167c88d5d99601b$export$7c398597f8905a1)(function(auth, method, path, request) {\n var customErrorMap, serverResponse;\n var _arguments = arguments;\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n switch(_state.label){\n case 0:\n customErrorMap = _arguments.length > 4 && _arguments[4] !== void 0 ? _arguments[4] : {};\n return [\n 4,\n $f394e9ac486578e6$var$_performApiRequest(auth, method, path, request, customErrorMap)\n ];\n case 1:\n serverResponse = _state.sent();\n if (\"mfaPendingCredential\" in serverResponse) $f394e9ac486578e6$export$9fa96a7d116ea3ce(auth, \"multi-factor-auth-required\" /* AuthErrorCode.MFA_REQUIRED */ , {\n _serverResponse: serverResponse\n });\n return [\n 2,\n serverResponse\n ];\n }\n });\n });\n return $f394e9ac486578e6$var$__performSignInRequest.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$var$_getFinalTarget(auth, host, path, query) {\n var base = \"\".concat(host).concat(path, \"?\").concat(query);\n if (!auth.config.emulator) return \"\".concat(auth.config.apiScheme, \"://\").concat(base);\n return $f394e9ac486578e6$var$_emulatorUrl(auth.config, base);\n}\nfunction $f394e9ac486578e6$var$_parseEnforcementState(enforcementStateStr) {\n switch(enforcementStateStr){\n case \"ENFORCE\":\n return \"ENFORCE\" /* EnforcementState.ENFORCE */ ;\n case \"AUDIT\":\n return \"AUDIT\" /* EnforcementState.AUDIT */ ;\n case \"OFF\":\n return \"OFF\" /* EnforcementState.OFF */ ;\n default:\n return \"ENFORCEMENT_STATE_UNSPECIFIED\" /* EnforcementState.ENFORCEMENT_STATE_UNSPECIFIED */ ;\n }\n}\nvar $f394e9ac486578e6$var$NetworkTimeout = /*#__PURE__*/ function() {\n \"use strict\";\n function NetworkTimeout(auth) {\n var _this = this;\n (0, $0c3f79e99c83f58f$export$2996f80ef42b8419)(this, NetworkTimeout);\n this.auth = auth;\n // Node timers and browser timers are fundamentally incompatible, but we\n // don't care about the value here\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n this.timer = null;\n this.promise = new Promise(function(_, reject) {\n _this.timer = setTimeout(function() {\n return reject($f394e9ac486578e6$export$9d398bebfec1c039(_this.auth, \"network-request-failed\" /* AuthErrorCode.NETWORK_REQUEST_FAILED */ ));\n }, $f394e9ac486578e6$var$DEFAULT_API_TIMEOUT_MS.get());\n });\n }\n (0, $a27186eefd8c4b26$export$d60067ff2358eee8)(NetworkTimeout, [\n {\n key: \"clearNetworkTimeout\",\n value: function clearNetworkTimeout() {\n clearTimeout(this.timer);\n }\n }\n ]);\n return NetworkTimeout;\n}();\nfunction $f394e9ac486578e6$var$_makeTaggedError(auth, code, response) {\n var errorParams = {\n appName: auth.name\n };\n if (response.email) errorParams.email = response.email;\n if (response.phoneNumber) errorParams.phoneNumber = response.phoneNumber;\n var error = $f394e9ac486578e6$export$9d398bebfec1c039(auth, code, errorParams);\n // We know customData is defined on error because errorParams is defined\n error.customData._tokenResponse = response;\n return error;\n}\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */ function $f394e9ac486578e6$var$isV2(grecaptcha) {\n return grecaptcha !== undefined && grecaptcha.getResponse !== undefined;\n}\nfunction $f394e9ac486578e6$var$isEnterprise(grecaptcha) {\n return grecaptcha !== undefined && grecaptcha.enterprise !== undefined;\n}\nvar $f394e9ac486578e6$var$RecaptchaConfig = /*#__PURE__*/ function() {\n \"use strict\";\n function RecaptchaConfig(response) {\n (0, $0c3f79e99c83f58f$export$2996f80ef42b8419)(this, RecaptchaConfig);\n /**\r\n * The reCAPTCHA site key.\r\n */ this.siteKey = \"\";\n /**\r\n * The list of providers and their enablement status for reCAPTCHA Enterprise.\r\n */ this.recaptchaEnforcementState = [];\n if (response.recaptchaKey === undefined) throw new Error(\"recaptchaKey undefined\");\n // Example response.recaptchaKey: \"projects/proj123/keys/sitekey123\"\n this.siteKey = response.recaptchaKey.split(\"/\")[3];\n this.recaptchaEnforcementState = response.recaptchaEnforcementState;\n }\n (0, $a27186eefd8c4b26$export$d60067ff2358eee8)(RecaptchaConfig, [\n {\n /**\r\n * Returns the reCAPTCHA Enterprise enforcement state for the given provider.\r\n *\r\n * @param providerStr - The provider whose enforcement state is to be returned.\r\n * @returns The reCAPTCHA Enterprise enforcement state for the given provider.\r\n */ key: \"getProviderEnforcementState\",\n value: function getProviderEnforcementState(providerStr) {\n if (!this.recaptchaEnforcementState || this.recaptchaEnforcementState.length === 0) return null;\n var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;\n try {\n for(var _iterator = this.recaptchaEnforcementState[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){\n var recaptchaEnforcementState = _step.value;\n if (recaptchaEnforcementState.provider && recaptchaEnforcementState.provider === providerStr) return $f394e9ac486578e6$var$_parseEnforcementState(recaptchaEnforcementState.enforcementState);\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally{\n try {\n if (!_iteratorNormalCompletion && _iterator.return != null) {\n _iterator.return();\n }\n } finally{\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n return null;\n }\n },\n {\n /**\r\n * Returns true if the reCAPTCHA Enterprise enforcement state for the provider is set to ENFORCE or AUDIT.\r\n *\r\n * @param providerStr - The provider whose enablement state is to be returned.\r\n * @returns Whether or not reCAPTCHA Enterprise protection is enabled for the given provider.\r\n */ key: \"isProviderEnabled\",\n value: function isProviderEnabled(providerStr) {\n return this.getProviderEnforcementState(providerStr) === \"ENFORCE\" /* EnforcementState.ENFORCE */ || this.getProviderEnforcementState(providerStr) === \"AUDIT\" /* EnforcementState.AUDIT */ ;\n }\n }\n ]);\n return RecaptchaConfig;\n}();\nfunction $f394e9ac486578e6$var$getRecaptchaParams(auth) {\n return $f394e9ac486578e6$var$_getRecaptchaParams.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$var$_getRecaptchaParams() {\n $f394e9ac486578e6$var$_getRecaptchaParams = /**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */ (0, $9167c88d5d99601b$export$7c398597f8905a1)(function(auth) {\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n switch(_state.label){\n case 0:\n return [\n 4,\n $f394e9ac486578e6$var$_performApiRequest(auth, \"GET\" /* HttpMethod.GET */ , \"/v1/recaptchaParams\" /* Endpoint.GET_RECAPTCHA_PARAM */ )\n ];\n case 1:\n return [\n 2,\n _state.sent().recaptchaSiteKey || \"\"\n ];\n }\n });\n });\n return $f394e9ac486578e6$var$_getRecaptchaParams.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$var$getRecaptchaConfig(auth, request) {\n return $f394e9ac486578e6$var$_getRecaptchaConfig.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$var$_getRecaptchaConfig() {\n $f394e9ac486578e6$var$_getRecaptchaConfig = (0, $9167c88d5d99601b$export$7c398597f8905a1)(function(auth, request) {\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n return [\n 2,\n $f394e9ac486578e6$var$_performApiRequest(auth, \"GET\" /* HttpMethod.GET */ , \"/v2/recaptchaConfig\" /* Endpoint.GET_RECAPTCHA_CONFIG */ , $f394e9ac486578e6$var$_addTidIfNecessary(auth, request))\n ];\n });\n });\n return $f394e9ac486578e6$var$_getRecaptchaConfig.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$var$deleteAccount(auth, request) {\n return $f394e9ac486578e6$var$_deleteAccount.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$var$_deleteAccount() {\n $f394e9ac486578e6$var$_deleteAccount = /**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */ (0, $9167c88d5d99601b$export$7c398597f8905a1)(function(auth, request) {\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n return [\n 2,\n $f394e9ac486578e6$var$_performApiRequest(auth, \"POST\" /* HttpMethod.POST */ , \"/v1/accounts:delete\" /* Endpoint.DELETE_ACCOUNT */ , request)\n ];\n });\n });\n return $f394e9ac486578e6$var$_deleteAccount.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$var$deleteLinkedAccounts(auth, request) {\n return $f394e9ac486578e6$var$_deleteLinkedAccounts.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$var$_deleteLinkedAccounts() {\n $f394e9ac486578e6$var$_deleteLinkedAccounts = (0, $9167c88d5d99601b$export$7c398597f8905a1)(function(auth, request) {\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n return [\n 2,\n $f394e9ac486578e6$var$_performApiRequest(auth, \"POST\" /* HttpMethod.POST */ , \"/v1/accounts:update\" /* Endpoint.SET_ACCOUNT_INFO */ , request)\n ];\n });\n });\n return $f394e9ac486578e6$var$_deleteLinkedAccounts.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$var$getAccountInfo(auth, request) {\n return $f394e9ac486578e6$var$_getAccountInfo.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$var$_getAccountInfo() {\n $f394e9ac486578e6$var$_getAccountInfo = (0, $9167c88d5d99601b$export$7c398597f8905a1)(function(auth, request) {\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n return [\n 2,\n $f394e9ac486578e6$var$_performApiRequest(auth, \"POST\" /* HttpMethod.POST */ , \"/v1/accounts:lookup\" /* Endpoint.GET_ACCOUNT_INFO */ , request)\n ];\n });\n });\n return $f394e9ac486578e6$var$_getAccountInfo.apply(this, arguments);\n}\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */ function $f394e9ac486578e6$var$utcTimestampToDateString(utcTimestamp) {\n if (!utcTimestamp) return undefined;\n try {\n // Convert to date object.\n var date = new Date(Number(utcTimestamp));\n // Test date is valid.\n if (!isNaN(date.getTime())) // Convert to UTC date string.\n return date.toUTCString();\n } catch (e) {\n // Do nothing. undefined will be returned.\n }\n return undefined;\n}\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */ /**\r\n * Returns a JSON Web Token (JWT) used to identify the user to a Firebase service.\r\n *\r\n * @remarks\r\n * Returns the current token if it has not expired or if it will not expire in the next five\r\n * minutes. Otherwise, this will refresh the token and return a new one.\r\n *\r\n * @param user - The user.\r\n * @param forceRefresh - Force refresh regardless of token expiration.\r\n *\r\n * @public\r\n */ function $f394e9ac486578e6$export$306ddfe3a8403e2(user) {\n var forceRefresh = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false;\n return (0, $9b50b37fb8824044$export$4befe9b5fa509a1b)(user).getIdToken(forceRefresh);\n}\nfunction $f394e9ac486578e6$export$7a38258bbe170828(user) {\n return $f394e9ac486578e6$var$_getIdTokenResult.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$var$_getIdTokenResult() {\n $f394e9ac486578e6$var$_getIdTokenResult = /**\r\n * Returns a deserialized JSON Web Token (JWT) used to identify the user to a Firebase service.\r\n *\r\n * @remarks\r\n * Returns the current token if it has not expired or if it will not expire in the next five\r\n * minutes. Otherwise, this will refresh the token and return a new one.\r\n *\r\n * @param user - The user.\r\n * @param forceRefresh - Force refresh regardless of token expiration.\r\n *\r\n * @public\r\n */ (0, $9167c88d5d99601b$export$7c398597f8905a1)(function(user) {\n var forceRefresh, userInternal, token, claims, firebase, signInProvider;\n var _arguments = arguments;\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n switch(_state.label){\n case 0:\n forceRefresh = _arguments.length > 1 && _arguments[1] !== void 0 ? _arguments[1] : false;\n userInternal = (0, $9b50b37fb8824044$export$4befe9b5fa509a1b)(user);\n return [\n 4,\n userInternal.getIdToken(forceRefresh)\n ];\n case 1:\n token = _state.sent();\n claims = $f394e9ac486578e6$var$_parseToken(token);\n $f394e9ac486578e6$export$890c4ad488842ce7(claims && claims.exp && claims.auth_time && claims.iat, userInternal.auth, \"internal-error\" /* AuthErrorCode.INTERNAL_ERROR */ );\n firebase = typeof claims.firebase === \"object\" ? claims.firebase : undefined;\n signInProvider = firebase === null || firebase === void 0 ? void 0 : firebase[\"sign_in_provider\"];\n return [\n 2,\n {\n claims: claims,\n token: token,\n authTime: $f394e9ac486578e6$var$utcTimestampToDateString($f394e9ac486578e6$var$secondsStringToMilliseconds(claims.auth_time)),\n issuedAtTime: $f394e9ac486578e6$var$utcTimestampToDateString($f394e9ac486578e6$var$secondsStringToMilliseconds(claims.iat)),\n expirationTime: $f394e9ac486578e6$var$utcTimestampToDateString($f394e9ac486578e6$var$secondsStringToMilliseconds(claims.exp)),\n signInProvider: signInProvider || null,\n signInSecondFactor: (firebase === null || firebase === void 0 ? void 0 : firebase[\"sign_in_second_factor\"]) || null\n }\n ];\n }\n });\n });\n return $f394e9ac486578e6$var$_getIdTokenResult.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$var$secondsStringToMilliseconds(seconds) {\n return Number(seconds) * 1000;\n}\nfunction $f394e9ac486578e6$var$_parseToken(token) {\n var _token_split = (0, $6e952d66071d1a0a$export$fdf2a89c76341bbf)(token.split(\".\"), 3), algorithm = _token_split[0], payload = _token_split[1], signature = _token_split[2];\n if (algorithm === undefined || payload === undefined || signature === undefined) {\n $f394e9ac486578e6$var$_logError(\"JWT malformed, contained fewer than 3 sections\");\n return null;\n }\n try {\n var decoded = (0, $9b50b37fb8824044$export$c62426fdd000a97e)(payload);\n if (!decoded) {\n $f394e9ac486578e6$var$_logError(\"Failed to decode base64 JWT payload\");\n return null;\n }\n return JSON.parse(decoded);\n } catch (e) {\n $f394e9ac486578e6$var$_logError(\"Caught error parsing JWT payload as JSON\", e === null || e === void 0 ? void 0 : e.toString());\n return null;\n }\n}\n/**\r\n * Extract expiresIn TTL from a token by subtracting the expiration from the issuance.\r\n */ function $f394e9ac486578e6$var$_tokenExpiresIn(token) {\n var parsedToken = $f394e9ac486578e6$var$_parseToken(token);\n $f394e9ac486578e6$export$890c4ad488842ce7(parsedToken, \"internal-error\" /* AuthErrorCode.INTERNAL_ERROR */ );\n $f394e9ac486578e6$export$890c4ad488842ce7(typeof parsedToken.exp !== \"undefined\", \"internal-error\" /* AuthErrorCode.INTERNAL_ERROR */ );\n $f394e9ac486578e6$export$890c4ad488842ce7(typeof parsedToken.iat !== \"undefined\", \"internal-error\" /* AuthErrorCode.INTERNAL_ERROR */ );\n return Number(parsedToken.exp) - Number(parsedToken.iat);\n}\nfunction $f394e9ac486578e6$var$_logoutIfInvalidated(user, promise) {\n return $f394e9ac486578e6$var$__logoutIfInvalidated.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$var$__logoutIfInvalidated() {\n $f394e9ac486578e6$var$__logoutIfInvalidated = /**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */ (0, $9167c88d5d99601b$export$7c398597f8905a1)(function(user, promise) {\n var bypassAuthState, e;\n var _arguments = arguments;\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n switch(_state.label){\n case 0:\n bypassAuthState = _arguments.length > 2 && _arguments[2] !== void 0 ? _arguments[2] : false;\n if (bypassAuthState) return [\n 2,\n promise\n ];\n _state.label = 1;\n case 1:\n _state.trys.push([\n 1,\n 3,\n ,\n 6\n ]);\n return [\n 4,\n promise\n ];\n case 2:\n return [\n 2,\n _state.sent()\n ];\n case 3:\n e = _state.sent();\n if (!(e instanceof (0, $9b50b37fb8824044$export$dd24e9cd51226c56) && $f394e9ac486578e6$var$isUserInvalidated(e))) return [\n 3,\n 5\n ];\n if (!(user.auth.currentUser === user)) return [\n 3,\n 5\n ];\n return [\n 4,\n user.auth.signOut()\n ];\n case 4:\n _state.sent();\n _state.label = 5;\n case 5:\n throw e;\n case 6:\n return [\n 2\n ];\n }\n });\n });\n return $f394e9ac486578e6$var$__logoutIfInvalidated.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$var$isUserInvalidated(param) {\n var code = param.code;\n return code === \"auth/user-disabled\" /* AuthErrorCode.USER_DISABLED */ || code === \"auth/user-token-expired\" /* AuthErrorCode.TOKEN_EXPIRED */ ;\n}\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */ var $f394e9ac486578e6$var$ProactiveRefresh = /*#__PURE__*/ function() {\n \"use strict\";\n function ProactiveRefresh(user) {\n (0, $0c3f79e99c83f58f$export$2996f80ef42b8419)(this, ProactiveRefresh);\n this.user = user;\n this.isRunning = false;\n // Node timers and browser timers return fundamentally different types.\n // We don't actually care what the value is but TS won't accept unknown and\n // we can't cast properly in both environments.\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n this.timerId = null;\n this.errorBackoff = 30000 /* Duration.RETRY_BACKOFF_MIN */ ;\n }\n (0, $a27186eefd8c4b26$export$d60067ff2358eee8)(ProactiveRefresh, [\n {\n key: \"_start\",\n value: function _start() {\n if (this.isRunning) return;\n this.isRunning = true;\n this.schedule();\n }\n },\n {\n key: \"_stop\",\n value: function _stop() {\n if (!this.isRunning) return;\n this.isRunning = false;\n if (this.timerId !== null) clearTimeout(this.timerId);\n }\n },\n {\n key: \"getInterval\",\n value: function getInterval(wasError) {\n var _a;\n if (wasError) {\n var interval = this.errorBackoff;\n this.errorBackoff = Math.min(this.errorBackoff * 2, 960000 /* Duration.RETRY_BACKOFF_MAX */ );\n return interval;\n } else {\n // Reset the error backoff\n this.errorBackoff = 30000 /* Duration.RETRY_BACKOFF_MIN */ ;\n var expTime = (_a = this.user.stsTokenManager.expirationTime) !== null && _a !== void 0 ? _a : 0;\n var interval1 = expTime - Date.now() - 300000 /* Duration.OFFSET */ ;\n return Math.max(0, interval1);\n }\n }\n },\n {\n key: \"schedule\",\n value: function schedule() {\n var wasError = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : false;\n if (!this.isRunning) // Just in case...\n return;\n var interval = this.getInterval(wasError);\n var _this = this;\n this.timerId = setTimeout(/*#__PURE__*/ (0, $9167c88d5d99601b$export$7c398597f8905a1)(function() {\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n switch(_state.label){\n case 0:\n return [\n 4,\n _this.iteration()\n ];\n case 1:\n _state.sent();\n return [\n 2\n ];\n }\n });\n }), interval);\n }\n },\n {\n key: \"iteration\",\n value: function iteration() {\n var _this = this;\n return (0, $9167c88d5d99601b$export$7c398597f8905a1)(function() {\n var e;\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n switch(_state.label){\n case 0:\n _state.trys.push([\n 0,\n 2,\n ,\n 3\n ]);\n return [\n 4,\n _this.user.getIdToken(true)\n ];\n case 1:\n _state.sent();\n return [\n 3,\n 3\n ];\n case 2:\n e = _state.sent();\n // Only retry on network errors\n if ((e === null || e === void 0 ? void 0 : e.code) === \"auth/network-request-failed\" /* AuthErrorCode.NETWORK_REQUEST_FAILED */ ) _this.schedule(/* wasError */ true);\n return [\n 2\n ];\n case 3:\n _this.schedule();\n return [\n 2\n ];\n }\n });\n })();\n }\n }\n ]);\n return ProactiveRefresh;\n}();\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */ var $f394e9ac486578e6$var$UserMetadata = /*#__PURE__*/ function() {\n \"use strict\";\n function UserMetadata(createdAt, lastLoginAt) {\n (0, $0c3f79e99c83f58f$export$2996f80ef42b8419)(this, UserMetadata);\n this.createdAt = createdAt;\n this.lastLoginAt = lastLoginAt;\n this._initializeTime();\n }\n (0, $a27186eefd8c4b26$export$d60067ff2358eee8)(UserMetadata, [\n {\n key: \"_initializeTime\",\n value: function _initializeTime() {\n this.lastSignInTime = $f394e9ac486578e6$var$utcTimestampToDateString(this.lastLoginAt);\n this.creationTime = $f394e9ac486578e6$var$utcTimestampToDateString(this.createdAt);\n }\n },\n {\n key: \"_copy\",\n value: function _copy(metadata) {\n this.createdAt = metadata.createdAt;\n this.lastLoginAt = metadata.lastLoginAt;\n this._initializeTime();\n }\n },\n {\n key: \"toJSON\",\n value: function toJSON() {\n return {\n createdAt: this.createdAt,\n lastLoginAt: this.lastLoginAt\n };\n }\n }\n ]);\n return UserMetadata;\n}();\nfunction $f394e9ac486578e6$var$_reloadWithoutSaving(user) {\n return $f394e9ac486578e6$var$__reloadWithoutSaving.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$var$__reloadWithoutSaving() {\n $f394e9ac486578e6$var$__reloadWithoutSaving = /**\r\n * @license\r\n * Copyright 2019 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */ (0, $9167c88d5d99601b$export$7c398597f8905a1)(function(user) {\n var _a, auth, idToken, response, coreAccount, newProviderData, providerData, oldIsAnonymous, newIsAnonymous, isAnonymous, updates;\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n switch(_state.label){\n case 0:\n auth = user.auth;\n return [\n 4,\n user.getIdToken()\n ];\n case 1:\n idToken = _state.sent();\n return [\n 4,\n $f394e9ac486578e6$var$_logoutIfInvalidated(user, $f394e9ac486578e6$var$getAccountInfo(auth, {\n idToken: idToken\n }))\n ];\n case 2:\n response = _state.sent();\n $f394e9ac486578e6$export$890c4ad488842ce7(response === null || response === void 0 ? void 0 : response.users.length, auth, \"internal-error\" /* AuthErrorCode.INTERNAL_ERROR */ );\n coreAccount = response.users[0];\n user._notifyReloadListener(coreAccount);\n newProviderData = ((_a = coreAccount.providerUserInfo) === null || _a === void 0 ? void 0 : _a.length) ? $f394e9ac486578e6$var$extractProviderData(coreAccount.providerUserInfo) : [];\n providerData = $f394e9ac486578e6$var$mergeProviderData(user.providerData, newProviderData);\n // Preserves the non-nonymous status of the stored user, even if no more\n // credentials (federated or email/password) are linked to the user. If\n // the user was previously anonymous, then use provider data to update.\n // On the other hand, if it was not anonymous before, it should never be\n // considered anonymous now.\n oldIsAnonymous = user.isAnonymous;\n newIsAnonymous = !(user.email && coreAccount.passwordHash) && !(providerData === null || providerData === void 0 ? void 0 : providerData.length);\n isAnonymous = !oldIsAnonymous ? false : newIsAnonymous;\n updates = {\n uid: coreAccount.localId,\n displayName: coreAccount.displayName || null,\n photoURL: coreAccount.photoUrl || null,\n email: coreAccount.email || null,\n emailVerified: coreAccount.emailVerified || false,\n phoneNumber: coreAccount.phoneNumber || null,\n tenantId: coreAccount.tenantId || null,\n providerData: providerData,\n metadata: new $f394e9ac486578e6$var$UserMetadata(coreAccount.createdAt, coreAccount.lastLoginAt),\n isAnonymous: isAnonymous\n };\n Object.assign(user, updates);\n return [\n 2\n ];\n }\n });\n });\n return $f394e9ac486578e6$var$__reloadWithoutSaving.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$export$d24c54395ce0c509(user) {\n return $f394e9ac486578e6$var$_reload.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$var$_reload() {\n $f394e9ac486578e6$var$_reload = /**\r\n * Reloads user account data, if signed in.\r\n *\r\n * @param user - The user.\r\n *\r\n * @public\r\n */ (0, $9167c88d5d99601b$export$7c398597f8905a1)(function(user) {\n var userInternal;\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n switch(_state.label){\n case 0:\n userInternal = (0, $9b50b37fb8824044$export$4befe9b5fa509a1b)(user);\n return [\n 4,\n $f394e9ac486578e6$var$_reloadWithoutSaving(userInternal)\n ];\n case 1:\n _state.sent();\n // Even though the current user hasn't changed, update\n // current user will trigger a persistence update w/ the\n // new info.\n return [\n 4,\n userInternal.auth._persistUserIfCurrent(userInternal)\n ];\n case 2:\n _state.sent();\n userInternal.auth._notifyListenersIfCurrent(userInternal);\n return [\n 2\n ];\n }\n });\n });\n return $f394e9ac486578e6$var$_reload.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$var$mergeProviderData(original, newData) {\n var deduped = original.filter(function(o) {\n return !newData.some(function(n) {\n return n.providerId === o.providerId;\n });\n });\n return (0, $a279000f7ad0c22a$export$1b5e630bc3aea29f)(deduped).concat((0, $a279000f7ad0c22a$export$1b5e630bc3aea29f)(newData));\n}\nfunction $f394e9ac486578e6$var$extractProviderData(providers) {\n return providers.map(function(_a) {\n var providerId = _a.providerId, provider = (0, $f6e09fca77e332f0$export$3c9a16f847548506)(_a, [\n \"providerId\"\n ]);\n return {\n providerId: providerId,\n uid: provider.rawId || \"\",\n displayName: provider.displayName || null,\n email: provider.email || null,\n phoneNumber: provider.phoneNumber || null,\n photoURL: provider.photoUrl || null\n };\n });\n}\nfunction $f394e9ac486578e6$var$requestStsToken(auth, refreshToken) {\n return $f394e9ac486578e6$var$_requestStsToken.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$var$_requestStsToken() {\n $f394e9ac486578e6$var$_requestStsToken = /**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */ (0, $9167c88d5d99601b$export$7c398597f8905a1)(function(auth, refreshToken) {\n var response;\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n switch(_state.label){\n case 0:\n return [\n 4,\n $f394e9ac486578e6$var$_performFetchWithErrorHandling(auth, {}, /*#__PURE__*/ (0, $9167c88d5d99601b$export$7c398597f8905a1)(function() {\n var body, _auth_config, tokenApiHost, apiKey, url, headers;\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n switch(_state.label){\n case 0:\n body = (0, $9b50b37fb8824044$export$ac4103b836844853)({\n \"grant_type\": \"refresh_token\",\n \"refresh_token\": refreshToken\n }).slice(1);\n _auth_config = auth.config, tokenApiHost = _auth_config.tokenApiHost, apiKey = _auth_config.apiKey;\n url = $f394e9ac486578e6$var$_getFinalTarget(auth, tokenApiHost, \"/v1/token\" /* Endpoint.TOKEN */ , \"key=\".concat(apiKey));\n return [\n 4,\n auth._getAdditionalHeaders()\n ];\n case 1:\n headers = _state.sent();\n headers[\"Content-Type\" /* HttpHeader.CONTENT_TYPE */ ] = \"application/x-www-form-urlencoded\";\n return [\n 2,\n $f394e9ac486578e6$export$2ed0fc6709e59212.fetch()(url, {\n method: \"POST\" /* HttpMethod.POST */ ,\n headers: headers,\n body: body\n })\n ];\n }\n });\n }))\n ];\n case 1:\n response = _state.sent();\n // The response comes back in snake_case. Convert to camel:\n return [\n 2,\n {\n accessToken: response.access_token,\n expiresIn: response.expires_in,\n refreshToken: response.refresh_token\n }\n ];\n }\n });\n });\n return $f394e9ac486578e6$var$_requestStsToken.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$var$revokeToken(auth, request) {\n return $f394e9ac486578e6$var$_revokeToken.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$var$_revokeToken() {\n $f394e9ac486578e6$var$_revokeToken = (0, $9167c88d5d99601b$export$7c398597f8905a1)(function(auth, request) {\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n return [\n 2,\n $f394e9ac486578e6$var$_performApiRequest(auth, \"POST\" /* HttpMethod.POST */ , \"/v2/accounts:revokeToken\" /* Endpoint.REVOKE_TOKEN */ , $f394e9ac486578e6$var$_addTidIfNecessary(auth, request))\n ];\n });\n });\n return $f394e9ac486578e6$var$_revokeToken.apply(this, arguments);\n}\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */ /**\r\n * We need to mark this class as internal explicitly to exclude it in the public typings, because\r\n * it references AuthInternal which has a circular dependency with UserInternal.\r\n *\r\n * @internal\r\n */ var $f394e9ac486578e6$var$StsTokenManager = /*#__PURE__*/ function() {\n \"use strict\";\n function StsTokenManager() {\n (0, $0c3f79e99c83f58f$export$2996f80ef42b8419)(this, StsTokenManager);\n this.refreshToken = null;\n this.accessToken = null;\n this.expirationTime = null;\n }\n (0, $a27186eefd8c4b26$export$d60067ff2358eee8)(StsTokenManager, [\n {\n key: \"isExpired\",\n get: function get() {\n return !this.expirationTime || Date.now() > this.expirationTime - 30000 /* Buffer.TOKEN_REFRESH */ ;\n }\n },\n {\n key: \"updateFromServerResponse\",\n value: function updateFromServerResponse(response) {\n $f394e9ac486578e6$export$890c4ad488842ce7(response.idToken, \"internal-error\" /* AuthErrorCode.INTERNAL_ERROR */ );\n $f394e9ac486578e6$export$890c4ad488842ce7(typeof response.idToken !== \"undefined\", \"internal-error\" /* AuthErrorCode.INTERNAL_ERROR */ );\n $f394e9ac486578e6$export$890c4ad488842ce7(typeof response.refreshToken !== \"undefined\", \"internal-error\" /* AuthErrorCode.INTERNAL_ERROR */ );\n var expiresIn = \"expiresIn\" in response && typeof response.expiresIn !== \"undefined\" ? Number(response.expiresIn) : $f394e9ac486578e6$var$_tokenExpiresIn(response.idToken);\n this.updateTokensAndExpiration(response.idToken, response.refreshToken, expiresIn);\n }\n },\n {\n key: \"getToken\",\n value: function getToken(auth) {\n var forceRefresh = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false;\n var _this = this;\n return (0, $9167c88d5d99601b$export$7c398597f8905a1)(function() {\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n switch(_state.label){\n case 0:\n $f394e9ac486578e6$export$890c4ad488842ce7(!_this.accessToken || _this.refreshToken, auth, \"user-token-expired\" /* AuthErrorCode.TOKEN_EXPIRED */ );\n if (!forceRefresh && _this.accessToken && !_this.isExpired) return [\n 2,\n _this.accessToken\n ];\n if (!_this.refreshToken) return [\n 3,\n 2\n ];\n return [\n 4,\n _this.refresh(auth, _this.refreshToken)\n ];\n case 1:\n _state.sent();\n return [\n 2,\n _this.accessToken\n ];\n case 2:\n return [\n 2,\n null\n ];\n }\n });\n })();\n }\n },\n {\n key: \"clearRefreshToken\",\n value: function clearRefreshToken() {\n this.refreshToken = null;\n }\n },\n {\n key: \"refresh\",\n value: function refresh(auth, oldToken) {\n var _this = this;\n return (0, $9167c88d5d99601b$export$7c398597f8905a1)(function() {\n var _ref, accessToken, refreshToken, expiresIn;\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n switch(_state.label){\n case 0:\n return [\n 4,\n $f394e9ac486578e6$var$requestStsToken(auth, oldToken)\n ];\n case 1:\n _ref = _state.sent(), accessToken = _ref.accessToken, refreshToken = _ref.refreshToken, expiresIn = _ref.expiresIn;\n _this.updateTokensAndExpiration(accessToken, refreshToken, Number(expiresIn));\n return [\n 2\n ];\n }\n });\n })();\n }\n },\n {\n key: \"updateTokensAndExpiration\",\n value: function updateTokensAndExpiration(accessToken, refreshToken, expiresInSec) {\n this.refreshToken = refreshToken || null;\n this.accessToken = accessToken || null;\n this.expirationTime = Date.now() + expiresInSec * 1000;\n }\n },\n {\n key: \"toJSON\",\n value: function toJSON() {\n return {\n refreshToken: this.refreshToken,\n accessToken: this.accessToken,\n expirationTime: this.expirationTime\n };\n }\n },\n {\n key: \"_assign\",\n value: function _assign(stsTokenManager) {\n this.accessToken = stsTokenManager.accessToken;\n this.refreshToken = stsTokenManager.refreshToken;\n this.expirationTime = stsTokenManager.expirationTime;\n }\n },\n {\n key: \"_clone\",\n value: function _clone() {\n return Object.assign(new StsTokenManager(), this.toJSON());\n }\n },\n {\n key: \"_performRefresh\",\n value: function _performRefresh() {\n return $f394e9ac486578e6$var$debugFail(\"not implemented\");\n }\n }\n ], [\n {\n key: \"fromJSON\",\n value: function fromJSON(appName, object) {\n var refreshToken = object.refreshToken, accessToken = object.accessToken, expirationTime = object.expirationTime;\n var manager = new StsTokenManager();\n if (refreshToken) {\n $f394e9ac486578e6$export$890c4ad488842ce7(typeof refreshToken === \"string\", \"internal-error\" /* AuthErrorCode.INTERNAL_ERROR */ , {\n appName: appName\n });\n manager.refreshToken = refreshToken;\n }\n if (accessToken) {\n $f394e9ac486578e6$export$890c4ad488842ce7(typeof accessToken === \"string\", \"internal-error\" /* AuthErrorCode.INTERNAL_ERROR */ , {\n appName: appName\n });\n manager.accessToken = accessToken;\n }\n if (expirationTime) {\n $f394e9ac486578e6$export$890c4ad488842ce7(typeof expirationTime === \"number\", \"internal-error\" /* AuthErrorCode.INTERNAL_ERROR */ , {\n appName: appName\n });\n manager.expirationTime = expirationTime;\n }\n return manager;\n }\n }\n ]);\n return StsTokenManager;\n}();\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */ function $f394e9ac486578e6$var$assertStringOrUndefined(assertion, appName) {\n $f394e9ac486578e6$export$890c4ad488842ce7(typeof assertion === \"string\" || typeof assertion === \"undefined\", \"internal-error\" /* AuthErrorCode.INTERNAL_ERROR */ , {\n appName: appName\n });\n}\nvar $f394e9ac486578e6$export$23ebac1979863676 = /*#__PURE__*/ function() {\n \"use strict\";\n function UserImpl(_a) {\n (0, $0c3f79e99c83f58f$export$2996f80ef42b8419)(this, UserImpl);\n var uid = _a.uid, auth = _a.auth, stsTokenManager = _a.stsTokenManager, opt = (0, $f6e09fca77e332f0$export$3c9a16f847548506)(_a, [\n \"uid\",\n \"auth\",\n \"stsTokenManager\"\n ]);\n // For the user object, provider is always Firebase.\n this.providerId = \"firebase\" /* ProviderId.FIREBASE */ ;\n this.proactiveRefresh = new $f394e9ac486578e6$var$ProactiveRefresh(this);\n this.reloadUserInfo = null;\n this.reloadListener = null;\n this.uid = uid;\n this.auth = auth;\n this.stsTokenManager = stsTokenManager;\n this.accessToken = stsTokenManager.accessToken;\n this.displayName = opt.displayName || null;\n this.email = opt.email || null;\n this.emailVerified = opt.emailVerified || false;\n this.phoneNumber = opt.phoneNumber || null;\n this.photoURL = opt.photoURL || null;\n this.isAnonymous = opt.isAnonymous || false;\n this.tenantId = opt.tenantId || null;\n this.providerData = opt.providerData ? (0, $a279000f7ad0c22a$export$1b5e630bc3aea29f)(opt.providerData) : [];\n this.metadata = new $f394e9ac486578e6$var$UserMetadata(opt.createdAt || undefined, opt.lastLoginAt || undefined);\n }\n (0, $a27186eefd8c4b26$export$d60067ff2358eee8)(UserImpl, [\n {\n key: \"getIdToken\",\n value: function getIdToken(forceRefresh) {\n var _this = this;\n return (0, $9167c88d5d99601b$export$7c398597f8905a1)(function() {\n var accessToken;\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n switch(_state.label){\n case 0:\n return [\n 4,\n $f394e9ac486578e6$var$_logoutIfInvalidated(_this, _this.stsTokenManager.getToken(_this.auth, forceRefresh))\n ];\n case 1:\n accessToken = _state.sent();\n $f394e9ac486578e6$export$890c4ad488842ce7(accessToken, _this.auth, \"internal-error\" /* AuthErrorCode.INTERNAL_ERROR */ );\n if (!(_this.accessToken !== accessToken)) return [\n 3,\n 3\n ];\n _this.accessToken = accessToken;\n return [\n 4,\n _this.auth._persistUserIfCurrent(_this)\n ];\n case 2:\n _state.sent();\n _this.auth._notifyListenersIfCurrent(_this);\n _state.label = 3;\n case 3:\n return [\n 2,\n accessToken\n ];\n }\n });\n })();\n }\n },\n {\n key: \"getIdTokenResult\",\n value: function getIdTokenResult1(forceRefresh) {\n return $f394e9ac486578e6$export$7a38258bbe170828(this, forceRefresh);\n }\n },\n {\n key: \"reload\",\n value: function reload1() {\n return $f394e9ac486578e6$export$d24c54395ce0c509(this);\n }\n },\n {\n key: \"_assign\",\n value: function _assign(user) {\n if (this === user) return;\n $f394e9ac486578e6$export$890c4ad488842ce7(this.uid === user.uid, this.auth, \"internal-error\" /* AuthErrorCode.INTERNAL_ERROR */ );\n this.displayName = user.displayName;\n this.photoURL = user.photoURL;\n this.email = user.email;\n this.emailVerified = user.emailVerified;\n this.phoneNumber = user.phoneNumber;\n this.isAnonymous = user.isAnonymous;\n this.tenantId = user.tenantId;\n this.providerData = user.providerData.map(function(userInfo) {\n return Object.assign({}, userInfo);\n });\n this.metadata._copy(user.metadata);\n this.stsTokenManager._assign(user.stsTokenManager);\n }\n },\n {\n key: \"_clone\",\n value: function _clone(auth) {\n var newUser = new UserImpl(Object.assign(Object.assign({}, this), {\n auth: auth,\n stsTokenManager: this.stsTokenManager._clone()\n }));\n newUser.metadata._copy(this.metadata);\n return newUser;\n }\n },\n {\n key: \"_onReload\",\n value: function _onReload(callback) {\n // There should only ever be one listener, and that is a single instance of MultiFactorUser\n $f394e9ac486578e6$export$890c4ad488842ce7(!this.reloadListener, this.auth, \"internal-error\" /* AuthErrorCode.INTERNAL_ERROR */ );\n this.reloadListener = callback;\n if (this.reloadUserInfo) {\n this._notifyReloadListener(this.reloadUserInfo);\n this.reloadUserInfo = null;\n }\n }\n },\n {\n key: \"_notifyReloadListener\",\n value: function _notifyReloadListener(userInfo) {\n if (this.reloadListener) this.reloadListener(userInfo);\n else // If no listener is subscribed yet, save the result so it's available when they do subscribe\n this.reloadUserInfo = userInfo;\n }\n },\n {\n key: \"_startProactiveRefresh\",\n value: function _startProactiveRefresh() {\n this.proactiveRefresh._start();\n }\n },\n {\n key: \"_stopProactiveRefresh\",\n value: function _stopProactiveRefresh() {\n this.proactiveRefresh._stop();\n }\n },\n {\n key: \"_updateTokensIfNecessary\",\n value: function _updateTokensIfNecessary(response) {\n var reload = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false;\n var _this = this;\n return (0, $9167c88d5d99601b$export$7c398597f8905a1)(function() {\n var tokensRefreshed;\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n switch(_state.label){\n case 0:\n tokensRefreshed = false;\n if (response.idToken && response.idToken !== _this.stsTokenManager.accessToken) {\n _this.stsTokenManager.updateFromServerResponse(response);\n tokensRefreshed = true;\n }\n if (!reload) return [\n 3,\n 2\n ];\n return [\n 4,\n $f394e9ac486578e6$var$_reloadWithoutSaving(_this)\n ];\n case 1:\n _state.sent();\n _state.label = 2;\n case 2:\n return [\n 4,\n _this.auth._persistUserIfCurrent(_this)\n ];\n case 3:\n _state.sent();\n if (tokensRefreshed) _this.auth._notifyListenersIfCurrent(_this);\n return [\n 2\n ];\n }\n });\n })();\n }\n },\n {\n key: \"delete\",\n value: function _delete() {\n var _this = this;\n return (0, $9167c88d5d99601b$export$7c398597f8905a1)(function() {\n var idToken;\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n switch(_state.label){\n case 0:\n return [\n 4,\n _this.getIdToken()\n ];\n case 1:\n idToken = _state.sent();\n return [\n 4,\n $f394e9ac486578e6$var$_logoutIfInvalidated(_this, $f394e9ac486578e6$var$deleteAccount(_this.auth, {\n idToken: idToken\n }))\n ];\n case 2:\n _state.sent();\n _this.stsTokenManager.clearRefreshToken();\n // TODO: Determine if cancellable-promises are necessary to use in this class so that delete()\n // cancels pending actions...\n return [\n 2,\n _this.auth.signOut()\n ];\n }\n });\n })();\n }\n },\n {\n key: \"toJSON\",\n value: function toJSON() {\n return Object.assign(Object.assign({\n uid: this.uid,\n email: this.email || undefined,\n emailVerified: this.emailVerified,\n displayName: this.displayName || undefined,\n isAnonymous: this.isAnonymous,\n photoURL: this.photoURL || undefined,\n phoneNumber: this.phoneNumber || undefined,\n tenantId: this.tenantId || undefined,\n providerData: this.providerData.map(function(userInfo) {\n return Object.assign({}, userInfo);\n }),\n stsTokenManager: this.stsTokenManager.toJSON(),\n // Redirect event ID must be maintained in case there is a pending\n // redirect event.\n _redirectEventId: this._redirectEventId\n }, this.metadata.toJSON()), {\n // Required for compatibility with the legacy SDK (go/firebase-auth-sdk-persistence-parsing):\n apiKey: this.auth.config.apiKey,\n appName: this.auth.name\n });\n }\n },\n {\n key: \"refreshToken\",\n get: function get() {\n return this.stsTokenManager.refreshToken || \"\";\n }\n }\n ], [\n {\n key: \"_fromJSON\",\n value: function _fromJSON(auth, object) {\n var _a, _b, _c, _d, _e, _f, _g, _h;\n var displayName = (_a = object.displayName) !== null && _a !== void 0 ? _a : undefined;\n var email = (_b = object.email) !== null && _b !== void 0 ? _b : undefined;\n var phoneNumber = (_c = object.phoneNumber) !== null && _c !== void 0 ? _c : undefined;\n var photoURL = (_d = object.photoURL) !== null && _d !== void 0 ? _d : undefined;\n var tenantId = (_e = object.tenantId) !== null && _e !== void 0 ? _e : undefined;\n var _redirectEventId = (_f = object._redirectEventId) !== null && _f !== void 0 ? _f : undefined;\n var createdAt = (_g = object.createdAt) !== null && _g !== void 0 ? _g : undefined;\n var lastLoginAt = (_h = object.lastLoginAt) !== null && _h !== void 0 ? _h : undefined;\n var uid = object.uid, emailVerified = object.emailVerified, isAnonymous = object.isAnonymous, providerData = object.providerData, plainObjectTokenManager = object.stsTokenManager;\n $f394e9ac486578e6$export$890c4ad488842ce7(uid && plainObjectTokenManager, auth, \"internal-error\" /* AuthErrorCode.INTERNAL_ERROR */ );\n var stsTokenManager = $f394e9ac486578e6$var$StsTokenManager.fromJSON(this.name, plainObjectTokenManager);\n $f394e9ac486578e6$export$890c4ad488842ce7(typeof uid === \"string\", auth, \"internal-error\" /* AuthErrorCode.INTERNAL_ERROR */ );\n $f394e9ac486578e6$var$assertStringOrUndefined(displayName, auth.name);\n $f394e9ac486578e6$var$assertStringOrUndefined(email, auth.name);\n $f394e9ac486578e6$export$890c4ad488842ce7(typeof emailVerified === \"boolean\", auth, \"internal-error\" /* AuthErrorCode.INTERNAL_ERROR */ );\n $f394e9ac486578e6$export$890c4ad488842ce7(typeof isAnonymous === \"boolean\", auth, \"internal-error\" /* AuthErrorCode.INTERNAL_ERROR */ );\n $f394e9ac486578e6$var$assertStringOrUndefined(phoneNumber, auth.name);\n $f394e9ac486578e6$var$assertStringOrUndefined(photoURL, auth.name);\n $f394e9ac486578e6$var$assertStringOrUndefined(tenantId, auth.name);\n $f394e9ac486578e6$var$assertStringOrUndefined(_redirectEventId, auth.name);\n $f394e9ac486578e6$var$assertStringOrUndefined(createdAt, auth.name);\n $f394e9ac486578e6$var$assertStringOrUndefined(lastLoginAt, auth.name);\n var user = new UserImpl({\n uid: uid,\n auth: auth,\n email: email,\n emailVerified: emailVerified,\n displayName: displayName,\n isAnonymous: isAnonymous,\n photoURL: photoURL,\n phoneNumber: phoneNumber,\n tenantId: tenantId,\n stsTokenManager: stsTokenManager,\n createdAt: createdAt,\n lastLoginAt: lastLoginAt\n });\n if (providerData && Array.isArray(providerData)) user.providerData = providerData.map(function(userInfo) {\n return Object.assign({}, userInfo);\n });\n if (_redirectEventId) user._redirectEventId = _redirectEventId;\n return user;\n }\n },\n {\n key: \"_fromIdTokenResponse\",\n value: /**\r\n * Initialize a User from an idToken server response\r\n * @param auth\r\n * @param idTokenResponse\r\n */ function _fromIdTokenResponse(auth, idTokenResponse) {\n var isAnonymous = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : false;\n return (0, $9167c88d5d99601b$export$7c398597f8905a1)(function() {\n var stsTokenManager, user;\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n switch(_state.label){\n case 0:\n stsTokenManager = new $f394e9ac486578e6$var$StsTokenManager();\n stsTokenManager.updateFromServerResponse(idTokenResponse);\n // Initialize the Firebase Auth user.\n user = new UserImpl({\n uid: idTokenResponse.localId,\n auth: auth,\n stsTokenManager: stsTokenManager,\n isAnonymous: isAnonymous\n });\n // Updates the user info and data and resolves with a user instance.\n return [\n 4,\n $f394e9ac486578e6$var$_reloadWithoutSaving(user)\n ];\n case 1:\n _state.sent();\n return [\n 2,\n user\n ];\n }\n });\n })();\n }\n }\n ]);\n return UserImpl;\n}();\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */ var $f394e9ac486578e6$var$instanceCache = new Map();\nfunction $f394e9ac486578e6$export$158acd800e1ef08b(cls) {\n $f394e9ac486578e6$export$1fbe638ecf81657e(cls instanceof Function, \"Expected a class definition\");\n var instance = $f394e9ac486578e6$var$instanceCache.get(cls);\n if (instance) {\n $f394e9ac486578e6$export$1fbe638ecf81657e(instance instanceof cls, \"Instance stored in cache mismatched with class\");\n return instance;\n }\n instance = new cls();\n $f394e9ac486578e6$var$instanceCache.set(cls, instance);\n return instance;\n}\n/**\r\n * @license\r\n * Copyright 2019 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */ var $f394e9ac486578e6$var$InMemoryPersistence = /*#__PURE__*/ function() {\n \"use strict\";\n function InMemoryPersistence() {\n (0, $0c3f79e99c83f58f$export$2996f80ef42b8419)(this, InMemoryPersistence);\n this.type = \"NONE\" /* PersistenceType.NONE */ ;\n this.storage = {};\n }\n (0, $a27186eefd8c4b26$export$d60067ff2358eee8)(InMemoryPersistence, [\n {\n key: \"_isAvailable\",\n value: function _isAvailable() {\n return (0, $9167c88d5d99601b$export$7c398597f8905a1)(function() {\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n return [\n 2,\n true\n ];\n });\n })();\n }\n },\n {\n key: \"_set\",\n value: function _set(key, value) {\n var _this = this;\n return (0, $9167c88d5d99601b$export$7c398597f8905a1)(function() {\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n _this.storage[key] = value;\n return [\n 2\n ];\n });\n })();\n }\n },\n {\n key: \"_get\",\n value: function _get(key) {\n var _this = this;\n return (0, $9167c88d5d99601b$export$7c398597f8905a1)(function() {\n var value;\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n value = _this.storage[key];\n return [\n 2,\n value === undefined ? null : value\n ];\n });\n })();\n }\n },\n {\n key: \"_remove\",\n value: function _remove(key) {\n var _this = this;\n return (0, $9167c88d5d99601b$export$7c398597f8905a1)(function() {\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n delete _this.storage[key];\n return [\n 2\n ];\n });\n })();\n }\n },\n {\n key: \"_addListener\",\n value: function _addListener(_key, _listener) {\n // Listeners are not supported for in-memory storage since it cannot be shared across windows/workers\n return;\n }\n },\n {\n key: \"_removeListener\",\n value: function _removeListener(_key, _listener) {\n // Listeners are not supported for in-memory storage since it cannot be shared across windows/workers\n return;\n }\n }\n ]);\n return InMemoryPersistence;\n}();\n$f394e9ac486578e6$var$InMemoryPersistence.type = \"NONE\";\n/**\r\n * An implementation of {@link Persistence} of type 'NONE'.\r\n *\r\n * @public\r\n */ var $f394e9ac486578e6$export$3a6d5c9ae78a2c08 = $f394e9ac486578e6$var$InMemoryPersistence;\n/**\r\n * @license\r\n * Copyright 2019 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */ function $f394e9ac486578e6$export$cf2f7c5792f80b46(key, apiKey, appName) {\n return \"firebase:\".concat(key, \":\").concat(apiKey, \":\").concat(appName);\n}\nvar $f394e9ac486578e6$var$PersistenceUserManager = /*#__PURE__*/ function() {\n \"use strict\";\n function PersistenceUserManager(persistence, auth, userKey) {\n (0, $0c3f79e99c83f58f$export$2996f80ef42b8419)(this, PersistenceUserManager);\n this.persistence = persistence;\n this.auth = auth;\n this.userKey = userKey;\n var _this_auth = this.auth, config = _this_auth.config, name = _this_auth.name;\n this.fullUserKey = $f394e9ac486578e6$export$cf2f7c5792f80b46(this.userKey, config.apiKey, name);\n this.fullPersistenceKey = $f394e9ac486578e6$export$cf2f7c5792f80b46(\"persistence\" /* KeyName.PERSISTENCE_USER */ , config.apiKey, name);\n this.boundEventHandler = auth._onStorageEvent.bind(auth);\n this.persistence._addListener(this.fullUserKey, this.boundEventHandler);\n }\n (0, $a27186eefd8c4b26$export$d60067ff2358eee8)(PersistenceUserManager, [\n {\n key: \"setCurrentUser\",\n value: function setCurrentUser(user) {\n return this.persistence._set(this.fullUserKey, user.toJSON());\n }\n },\n {\n key: \"getCurrentUser\",\n value: function getCurrentUser() {\n var _this = this;\n return (0, $9167c88d5d99601b$export$7c398597f8905a1)(function() {\n var blob;\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n switch(_state.label){\n case 0:\n return [\n 4,\n _this.persistence._get(_this.fullUserKey)\n ];\n case 1:\n blob = _state.sent();\n return [\n 2,\n blob ? $f394e9ac486578e6$export$23ebac1979863676._fromJSON(_this.auth, blob) : null\n ];\n }\n });\n })();\n }\n },\n {\n key: \"removeCurrentUser\",\n value: function removeCurrentUser() {\n return this.persistence._remove(this.fullUserKey);\n }\n },\n {\n key: \"savePersistenceForRedirect\",\n value: function savePersistenceForRedirect() {\n return this.persistence._set(this.fullPersistenceKey, this.persistence.type);\n }\n },\n {\n key: \"setPersistence\",\n value: function setPersistence(newPersistence) {\n var _this = this;\n return (0, $9167c88d5d99601b$export$7c398597f8905a1)(function() {\n var currentUser;\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n switch(_state.label){\n case 0:\n if (_this.persistence === newPersistence) return [\n 2\n ];\n return [\n 4,\n _this.getCurrentUser()\n ];\n case 1:\n currentUser = _state.sent();\n return [\n 4,\n _this.removeCurrentUser()\n ];\n case 2:\n _state.sent();\n _this.persistence = newPersistence;\n if (currentUser) return [\n 2,\n _this.setCurrentUser(currentUser)\n ];\n return [\n 2\n ];\n }\n });\n })();\n }\n },\n {\n key: \"delete\",\n value: function _delete() {\n this.persistence._removeListener(this.fullUserKey, this.boundEventHandler);\n }\n }\n ], [\n {\n key: \"create\",\n value: function create(auth, persistenceHierarchy) {\n var userKey = arguments.length > 2 && arguments[2] !== void 0 /* KeyName.AUTH_USER */ ? arguments[2] : \"authUser\";\n return (0, $9167c88d5d99601b$export$7c398597f8905a1)(function() {\n var availablePersistences, selectedPersistence, key, userToMigrate, _iteratorNormalCompletion, _didIteratorError, _iteratorError, _iterator, _step, persistence, blob, user, _a, err, migrationHierarchy;\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n switch(_state.label){\n case 0:\n if (!persistenceHierarchy.length) return [\n 2,\n new PersistenceUserManager($f394e9ac486578e6$export$158acd800e1ef08b($f394e9ac486578e6$export$3a6d5c9ae78a2c08), auth, userKey)\n ];\n return [\n 4,\n Promise.all(persistenceHierarchy.map(function() {\n var _ref = (0, $9167c88d5d99601b$export$7c398597f8905a1)(function(persistence) {\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n switch(_state.label){\n case 0:\n return [\n 4,\n persistence._isAvailable()\n ];\n case 1:\n if (_state.sent()) return [\n 2,\n persistence\n ];\n return [\n 2,\n undefined\n ];\n }\n });\n });\n return function(persistence) {\n return _ref.apply(this, arguments);\n };\n }()))\n ];\n case 1:\n availablePersistences = _state.sent().filter(function(persistence) {\n return persistence;\n });\n // Fall back to the first persistence listed, or in memory if none available\n selectedPersistence = availablePersistences[0] || $f394e9ac486578e6$export$158acd800e1ef08b($f394e9ac486578e6$export$3a6d5c9ae78a2c08);\n key = $f394e9ac486578e6$export$cf2f7c5792f80b46(userKey, auth.config.apiKey, auth.name);\n // Pull out the existing user, setting the chosen persistence to that\n // persistence if the user exists.\n userToMigrate = null;\n _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;\n _state.label = 2;\n case 2:\n _state.trys.push([\n 2,\n 9,\n 10,\n 11\n ]);\n _iterator = persistenceHierarchy[Symbol.iterator]();\n _state.label = 3;\n case 3:\n if (!!(_iteratorNormalCompletion = (_step = _iterator.next()).done)) return [\n 3,\n 8\n ];\n persistence = _step.value;\n _state.label = 4;\n case 4:\n _state.trys.push([\n 4,\n 6,\n ,\n 7\n ]);\n return [\n 4,\n persistence._get(key)\n ];\n case 5:\n blob = _state.sent();\n if (blob) {\n user = $f394e9ac486578e6$export$23ebac1979863676._fromJSON(auth, blob); // throws for unparsable blob (wrong format)\n if (persistence !== selectedPersistence) userToMigrate = user;\n selectedPersistence = persistence;\n return [\n 3,\n 8\n ];\n }\n return [\n 3,\n 7\n ];\n case 6:\n _a = _state.sent();\n return [\n 3,\n 7\n ];\n case 7:\n _iteratorNormalCompletion = true;\n return [\n 3,\n 3\n ];\n case 8:\n return [\n 3,\n 11\n ];\n case 9:\n err = _state.sent();\n _didIteratorError = true;\n _iteratorError = err;\n return [\n 3,\n 11\n ];\n case 10:\n try {\n if (!_iteratorNormalCompletion && _iterator.return != null) {\n _iterator.return();\n }\n } finally{\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n return [\n 7\n ];\n case 11:\n // If we find the user in a persistence that does support migration, use\n // that migration path (of only persistences that support migration)\n migrationHierarchy = availablePersistences.filter(function(p) {\n return p._shouldAllowMigration;\n });\n // If the persistence does _not_ allow migration, just finish off here\n if (!selectedPersistence._shouldAllowMigration || !migrationHierarchy.length) return [\n 2,\n new PersistenceUserManager(selectedPersistence, auth, userKey)\n ];\n selectedPersistence = migrationHierarchy[0];\n if (!userToMigrate) return [\n 3,\n 13\n ];\n // This normally shouldn't throw since chosenPersistence.isAvailable() is true, but if it does\n // we'll just let it bubble to surface the error.\n return [\n 4,\n selectedPersistence._set(key, userToMigrate.toJSON())\n ];\n case 12:\n _state.sent();\n _state.label = 13;\n case 13:\n // Attempt to clear the key in other persistences but ignore errors. This helps prevent issues\n // such as users getting stuck with a previous account after signing out and refreshing the tab.\n return [\n 4,\n Promise.all(persistenceHierarchy.map(function() {\n var _ref = (0, $9167c88d5d99601b$export$7c398597f8905a1)(function(persistence) {\n var _a;\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n switch(_state.label){\n case 0:\n if (!(persistence !== selectedPersistence)) return [\n 3,\n 4\n ];\n _state.label = 1;\n case 1:\n _state.trys.push([\n 1,\n 3,\n ,\n 4\n ]);\n return [\n 4,\n persistence._remove(key)\n ];\n case 2:\n _state.sent();\n return [\n 3,\n 4\n ];\n case 3:\n _a = _state.sent();\n return [\n 3,\n 4\n ];\n case 4:\n return [\n 2\n ];\n }\n });\n });\n return function(persistence) {\n return _ref.apply(this, arguments);\n };\n }()))\n ];\n case 14:\n _state.sent();\n return [\n 2,\n new PersistenceUserManager(selectedPersistence, auth, userKey)\n ];\n }\n });\n })();\n }\n }\n ]);\n return PersistenceUserManager;\n}();\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */ /**\r\n * Determine the browser for the purposes of reporting usage to the API\r\n */ function $f394e9ac486578e6$var$_getBrowserName(userAgent) {\n var ua = userAgent.toLowerCase();\n if (ua.includes(\"opera/\") || ua.includes(\"opr/\") || ua.includes(\"opios/\")) return \"Opera\" /* BrowserName.OPERA */ ;\n else if ($f394e9ac486578e6$var$_isIEMobile(ua)) // Windows phone IEMobile browser.\n return \"IEMobile\" /* BrowserName.IEMOBILE */ ;\n else if (ua.includes(\"msie\") || ua.includes(\"trident/\")) return \"IE\" /* BrowserName.IE */ ;\n else if (ua.includes(\"edge/\")) return \"Edge\" /* BrowserName.EDGE */ ;\n else if ($f394e9ac486578e6$var$_isFirefox(ua)) return \"Firefox\" /* BrowserName.FIREFOX */ ;\n else if (ua.includes(\"silk/\")) return \"Silk\" /* BrowserName.SILK */ ;\n else if ($f394e9ac486578e6$var$_isBlackBerry(ua)) // Blackberry browser.\n return \"Blackberry\" /* BrowserName.BLACKBERRY */ ;\n else if ($f394e9ac486578e6$var$_isWebOS(ua)) // WebOS default browser.\n return \"Webos\" /* BrowserName.WEBOS */ ;\n else if ($f394e9ac486578e6$var$_isSafari(ua)) return \"Safari\" /* BrowserName.SAFARI */ ;\n else if ((ua.includes(\"chrome/\") || $f394e9ac486578e6$var$_isChromeIOS(ua)) && !ua.includes(\"edge/\")) return \"Chrome\" /* BrowserName.CHROME */ ;\n else if ($f394e9ac486578e6$export$92108d983e8ee699(ua)) // Android stock browser.\n return \"Android\" /* BrowserName.ANDROID */ ;\n else {\n // Most modern browsers have name/version at end of user agent string.\n var re = /([a-zA-Z\\d\\.]+)\\/[a-zA-Z\\d\\.]*$/;\n var matches = userAgent.match(re);\n if ((matches === null || matches === void 0 ? void 0 : matches.length) === 2) return matches[1];\n }\n return \"Other\" /* BrowserName.OTHER */ ;\n}\nfunction $f394e9ac486578e6$var$_isFirefox() {\n var ua = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : (0, $9b50b37fb8824044$export$c36915b22ce77c19)();\n return /firefox\\//i.test(ua);\n}\nfunction $f394e9ac486578e6$var$_isSafari() {\n var userAgent = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : (0, $9b50b37fb8824044$export$c36915b22ce77c19)();\n var ua = userAgent.toLowerCase();\n return ua.includes(\"safari/\") && !ua.includes(\"chrome/\") && !ua.includes(\"crios/\") && !ua.includes(\"android\");\n}\nfunction $f394e9ac486578e6$var$_isChromeIOS() {\n var ua = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : (0, $9b50b37fb8824044$export$c36915b22ce77c19)();\n return /crios\\//i.test(ua);\n}\nfunction $f394e9ac486578e6$var$_isIEMobile() {\n var ua = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : (0, $9b50b37fb8824044$export$c36915b22ce77c19)();\n return /iemobile/i.test(ua);\n}\nfunction $f394e9ac486578e6$export$92108d983e8ee699() {\n var ua = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : (0, $9b50b37fb8824044$export$c36915b22ce77c19)();\n return /android/i.test(ua);\n}\nfunction $f394e9ac486578e6$var$_isBlackBerry() {\n var ua = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : (0, $9b50b37fb8824044$export$c36915b22ce77c19)();\n return /blackberry/i.test(ua);\n}\nfunction $f394e9ac486578e6$var$_isWebOS() {\n var ua = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : (0, $9b50b37fb8824044$export$c36915b22ce77c19)();\n return /webos/i.test(ua);\n}\nfunction $f394e9ac486578e6$export$d66dc83d8cfc8dd() {\n var ua = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : (0, $9b50b37fb8824044$export$c36915b22ce77c19)();\n return /iphone|ipad|ipod/i.test(ua) || /macintosh/i.test(ua) && /mobile/i.test(ua);\n}\nfunction $f394e9ac486578e6$export$91c6e00c14e7e6fd() {\n var ua = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : (0, $9b50b37fb8824044$export$c36915b22ce77c19)();\n return /(iPad|iPhone|iPod).*OS 7_\\d/i.test(ua) || /(iPad|iPhone|iPod).*OS 8_\\d/i.test(ua);\n}\nfunction $f394e9ac486578e6$var$_isIOSStandalone() {\n var ua = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : (0, $9b50b37fb8824044$export$c36915b22ce77c19)();\n var _a;\n return $f394e9ac486578e6$export$d66dc83d8cfc8dd(ua) && !!((_a = window.navigator) === null || _a === void 0 ? void 0 : _a.standalone);\n}\nfunction $f394e9ac486578e6$var$_isIE10() {\n return (0, $9b50b37fb8824044$export$7e7b1a9668aaed8)() && document.documentMode === 10;\n}\nfunction $f394e9ac486578e6$var$_isMobileBrowser() {\n var ua = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : (0, $9b50b37fb8824044$export$c36915b22ce77c19)();\n // TODO: implement getBrowserName equivalent for OS.\n return $f394e9ac486578e6$export$d66dc83d8cfc8dd(ua) || $f394e9ac486578e6$export$92108d983e8ee699(ua) || $f394e9ac486578e6$var$_isWebOS(ua) || $f394e9ac486578e6$var$_isBlackBerry(ua) || /windows phone/i.test(ua) || $f394e9ac486578e6$var$_isIEMobile(ua);\n}\nfunction $f394e9ac486578e6$var$_isIframe() {\n try {\n // Check that the current window is not the top window.\n // If so, return true.\n return !!(window && window !== window.top);\n } catch (e) {\n return false;\n }\n}\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */ /*\r\n * Determine the SDK version string\r\n */ function $f394e9ac486578e6$export$9f4f30ee63539e24(clientPlatform) {\n var frameworks = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];\n var reportedPlatform;\n switch(clientPlatform){\n case \"Browser\" /* ClientPlatform.BROWSER */ :\n // In a browser environment, report the browser name.\n reportedPlatform = $f394e9ac486578e6$var$_getBrowserName((0, $9b50b37fb8824044$export$c36915b22ce77c19)());\n break;\n case \"Worker\" /* ClientPlatform.WORKER */ :\n // Technically a worker runs from a browser but we need to differentiate a\n // worker from a browser.\n // For example: Chrome-Worker/JsCore/4.9.1/FirebaseCore-web.\n reportedPlatform = \"\".concat($f394e9ac486578e6$var$_getBrowserName((0, $9b50b37fb8824044$export$c36915b22ce77c19)()), \"-\").concat(clientPlatform);\n break;\n default:\n reportedPlatform = clientPlatform;\n }\n var reportedFrameworks = frameworks.length ? frameworks.join(\",\") : \"FirebaseCore-web\"; /* default value if no other framework is used */ \n return \"\".concat(reportedPlatform, \"/\", \"JsCore\" /* ClientImplementation.CORE */ , \"/\").concat((0, $6801661115945616$export$31499a9cd224b78c), \"/\").concat(reportedFrameworks);\n}\n/**\r\n * @license\r\n * Copyright 2022 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */ var $f394e9ac486578e6$var$AuthMiddlewareQueue = /*#__PURE__*/ function() {\n \"use strict\";\n function AuthMiddlewareQueue(auth) {\n (0, $0c3f79e99c83f58f$export$2996f80ef42b8419)(this, AuthMiddlewareQueue);\n this.auth = auth;\n this.queue = [];\n }\n (0, $a27186eefd8c4b26$export$d60067ff2358eee8)(AuthMiddlewareQueue, [\n {\n key: \"pushCallback\",\n value: function pushCallback(callback, onAbort) {\n var _this = this;\n // The callback could be sync or async. Wrap it into a\n // function that is always async.\n var wrappedCallback = function(user) {\n return new Promise(function(resolve, reject) {\n try {\n var result = callback(user);\n // Either resolve with existing promise or wrap a non-promise\n // return value into a promise.\n resolve(result);\n } catch (e) {\n // Sync callback throws.\n reject(e);\n }\n });\n };\n // Attach the onAbort if present\n wrappedCallback.onAbort = onAbort;\n this.queue.push(wrappedCallback);\n var index = this.queue.length - 1;\n return function() {\n // Unsubscribe. Replace with no-op. Do not remove from array, or it will disturb\n // indexing of other elements.\n _this.queue[index] = function() {\n return Promise.resolve();\n };\n };\n }\n },\n {\n key: \"runMiddleware\",\n value: function runMiddleware(nextUser) {\n var _this = this;\n return (0, $9167c88d5d99601b$export$7c398597f8905a1)(function() {\n var onAbortStack, _iteratorNormalCompletion, _didIteratorError, _iteratorError, _iterator, _step, beforeStateCallback, err, e, _iteratorNormalCompletion1, _didIteratorError1, _iteratorError1, _iterator1, _step1, onAbort;\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n switch(_state.label){\n case 0:\n if (_this.auth.currentUser === nextUser) return [\n 2\n ];\n // While running the middleware, build a temporary stack of onAbort\n // callbacks to call if one middleware callback rejects.\n onAbortStack = [];\n _state.label = 1;\n case 1:\n _state.trys.push([\n 1,\n 10,\n ,\n 11\n ]);\n _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;\n _state.label = 2;\n case 2:\n _state.trys.push([\n 2,\n 7,\n 8,\n 9\n ]);\n _iterator = _this.queue[Symbol.iterator]();\n _state.label = 3;\n case 3:\n if (!!(_iteratorNormalCompletion = (_step = _iterator.next()).done)) return [\n 3,\n 6\n ];\n beforeStateCallback = _step.value;\n return [\n 4,\n beforeStateCallback(nextUser)\n ];\n case 4:\n _state.sent();\n // Only push the onAbort if the callback succeeds\n if (beforeStateCallback.onAbort) onAbortStack.push(beforeStateCallback.onAbort);\n _state.label = 5;\n case 5:\n _iteratorNormalCompletion = true;\n return [\n 3,\n 3\n ];\n case 6:\n return [\n 3,\n 9\n ];\n case 7:\n err = _state.sent();\n _didIteratorError = true;\n _iteratorError = err;\n return [\n 3,\n 9\n ];\n case 8:\n try {\n if (!_iteratorNormalCompletion && _iterator.return != null) {\n _iterator.return();\n }\n } finally{\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n return [\n 7\n ];\n case 9:\n return [\n 3,\n 11\n ];\n case 10:\n e = _state.sent();\n // Run all onAbort, with separate try/catch to ignore any errors and\n // continue\n onAbortStack.reverse();\n _iteratorNormalCompletion1 = true, _didIteratorError1 = false, _iteratorError1 = undefined;\n try {\n for(_iterator1 = onAbortStack[Symbol.iterator](); !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true){\n onAbort = _step1.value;\n try {\n onAbort();\n } catch (_) {\n /* swallow error */ }\n }\n } catch (err) {\n _didIteratorError1 = true;\n _iteratorError1 = err;\n } finally{\n try {\n if (!_iteratorNormalCompletion1 && _iterator1.return != null) {\n _iterator1.return();\n }\n } finally{\n if (_didIteratorError1) {\n throw _iteratorError1;\n }\n }\n }\n throw _this.auth._errorFactory.create(\"login-blocked\" /* AuthErrorCode.LOGIN_BLOCKED */ , {\n originalMessage: e === null || e === void 0 ? void 0 : e.message\n });\n case 11:\n return [\n 2\n ];\n }\n });\n })();\n }\n }\n ]);\n return AuthMiddlewareQueue;\n}();\nfunction $f394e9ac486578e6$var$_getPasswordPolicy(auth) {\n return $f394e9ac486578e6$var$__getPasswordPolicy.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$var$__getPasswordPolicy() {\n $f394e9ac486578e6$var$__getPasswordPolicy = /**\r\n * @license\r\n * Copyright 2023 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */ /**\r\n * Fetches the password policy for the currently set tenant or the project if no tenant is set.\r\n *\r\n * @param auth Auth object.\r\n * @param request Password policy request.\r\n * @returns Password policy response.\r\n */ (0, $9167c88d5d99601b$export$7c398597f8905a1)(function(auth) {\n var request;\n var _arguments = arguments;\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n request = _arguments.length > 1 && _arguments[1] !== void 0 ? _arguments[1] : {};\n return [\n 2,\n $f394e9ac486578e6$var$_performApiRequest(auth, \"GET\" /* HttpMethod.GET */ , \"/v2/passwordPolicy\" /* Endpoint.GET_PASSWORD_POLICY */ , $f394e9ac486578e6$var$_addTidIfNecessary(auth, request))\n ];\n });\n });\n return $f394e9ac486578e6$var$__getPasswordPolicy.apply(this, arguments);\n}\n/**\r\n * @license\r\n * Copyright 2023 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */ // Minimum min password length enforced by the backend, even if no minimum length is set.\nvar $f394e9ac486578e6$var$MINIMUM_MIN_PASSWORD_LENGTH = 6;\n/**\r\n * Stores password policy requirements and provides password validation against the policy.\r\n *\r\n * @internal\r\n */ var $f394e9ac486578e6$var$PasswordPolicyImpl = /*#__PURE__*/ function() {\n \"use strict\";\n function PasswordPolicyImpl(response) {\n (0, $0c3f79e99c83f58f$export$2996f80ef42b8419)(this, PasswordPolicyImpl);\n var _a, _b, _c, _d;\n // Only include custom strength options defined in the response.\n var responseOptions = response.customStrengthOptions;\n this.customStrengthOptions = {};\n // TODO: Remove once the backend is updated to include the minimum min password length instead of undefined when there is no minimum length set.\n this.customStrengthOptions.minPasswordLength = (_a = responseOptions.minPasswordLength) !== null && _a !== void 0 ? _a : $f394e9ac486578e6$var$MINIMUM_MIN_PASSWORD_LENGTH;\n if (responseOptions.maxPasswordLength) this.customStrengthOptions.maxPasswordLength = responseOptions.maxPasswordLength;\n if (responseOptions.containsLowercaseCharacter !== undefined) this.customStrengthOptions.containsLowercaseLetter = responseOptions.containsLowercaseCharacter;\n if (responseOptions.containsUppercaseCharacter !== undefined) this.customStrengthOptions.containsUppercaseLetter = responseOptions.containsUppercaseCharacter;\n if (responseOptions.containsNumericCharacter !== undefined) this.customStrengthOptions.containsNumericCharacter = responseOptions.containsNumericCharacter;\n if (responseOptions.containsNonAlphanumericCharacter !== undefined) this.customStrengthOptions.containsNonAlphanumericCharacter = responseOptions.containsNonAlphanumericCharacter;\n this.enforcementState = response.enforcementState;\n if (this.enforcementState === \"ENFORCEMENT_STATE_UNSPECIFIED\") this.enforcementState = \"OFF\";\n // Use an empty string if no non-alphanumeric characters are specified in the response.\n this.allowedNonAlphanumericCharacters = (_c = (_b = response.allowedNonAlphanumericCharacters) === null || _b === void 0 ? void 0 : _b.join(\"\")) !== null && _c !== void 0 ? _c : \"\";\n this.forceUpgradeOnSignin = (_d = response.forceUpgradeOnSignin) !== null && _d !== void 0 ? _d : false;\n this.schemaVersion = response.schemaVersion;\n }\n (0, $a27186eefd8c4b26$export$d60067ff2358eee8)(PasswordPolicyImpl, [\n {\n key: \"validatePassword\",\n value: function validatePassword(password) {\n var _a, _b, _c, _d, _e, _f;\n var status = {\n isValid: true,\n passwordPolicy: this\n };\n // Check the password length and character options.\n this.validatePasswordLengthOptions(password, status);\n this.validatePasswordCharacterOptions(password, status);\n // Combine the status into single isValid property.\n status.isValid && (status.isValid = (_a = status.meetsMinPasswordLength) !== null && _a !== void 0 ? _a : true);\n status.isValid && (status.isValid = (_b = status.meetsMaxPasswordLength) !== null && _b !== void 0 ? _b : true);\n status.isValid && (status.isValid = (_c = status.containsLowercaseLetter) !== null && _c !== void 0 ? _c : true);\n status.isValid && (status.isValid = (_d = status.containsUppercaseLetter) !== null && _d !== void 0 ? _d : true);\n status.isValid && (status.isValid = (_e = status.containsNumericCharacter) !== null && _e !== void 0 ? _e : true);\n status.isValid && (status.isValid = (_f = status.containsNonAlphanumericCharacter) !== null && _f !== void 0 ? _f : true);\n return status;\n }\n },\n {\n /**\r\n * Validates that the password meets the length options for the policy.\r\n *\r\n * @param password Password to validate.\r\n * @param status Validation status.\r\n */ key: \"validatePasswordLengthOptions\",\n value: function validatePasswordLengthOptions(password, status) {\n var minPasswordLength = this.customStrengthOptions.minPasswordLength;\n var maxPasswordLength = this.customStrengthOptions.maxPasswordLength;\n if (minPasswordLength) status.meetsMinPasswordLength = password.length >= minPasswordLength;\n if (maxPasswordLength) status.meetsMaxPasswordLength = password.length <= maxPasswordLength;\n }\n },\n {\n /**\r\n * Validates that the password meets the character options for the policy.\r\n *\r\n * @param password Password to validate.\r\n * @param status Validation status.\r\n */ key: \"validatePasswordCharacterOptions\",\n value: function validatePasswordCharacterOptions(password, status) {\n // Assign statuses for requirements even if the password is an empty string.\n this.updatePasswordCharacterOptionsStatuses(status, /* containsLowercaseCharacter= */ false, /* containsUppercaseCharacter= */ false, /* containsNumericCharacter= */ false, /* containsNonAlphanumericCharacter= */ false);\n var passwordChar;\n for(var i = 0; i < password.length; i++){\n passwordChar = password.charAt(i);\n this.updatePasswordCharacterOptionsStatuses(status, /* containsLowercaseCharacter= */ passwordChar >= \"a\" && passwordChar <= \"z\", /* containsUppercaseCharacter= */ passwordChar >= \"A\" && passwordChar <= \"Z\", /* containsNumericCharacter= */ passwordChar >= \"0\" && passwordChar <= \"9\", /* containsNonAlphanumericCharacter= */ this.allowedNonAlphanumericCharacters.includes(passwordChar));\n }\n }\n },\n {\n /**\r\n * Updates the running validation status with the statuses for the character options.\r\n * Expected to be called each time a character is processed to update each option status\r\n * based on the current character.\r\n *\r\n * @param status Validation status.\r\n * @param containsLowercaseCharacter Whether the character is a lowercase letter.\r\n * @param containsUppercaseCharacter Whether the character is an uppercase letter.\r\n * @param containsNumericCharacter Whether the character is a numeric character.\r\n * @param containsNonAlphanumericCharacter Whether the character is a non-alphanumeric character.\r\n */ key: \"updatePasswordCharacterOptionsStatuses\",\n value: function updatePasswordCharacterOptionsStatuses(status, containsLowercaseCharacter, containsUppercaseCharacter, containsNumericCharacter, containsNonAlphanumericCharacter) {\n if (this.customStrengthOptions.containsLowercaseLetter) status.containsLowercaseLetter || (status.containsLowercaseLetter = containsLowercaseCharacter);\n if (this.customStrengthOptions.containsUppercaseLetter) status.containsUppercaseLetter || (status.containsUppercaseLetter = containsUppercaseCharacter);\n if (this.customStrengthOptions.containsNumericCharacter) status.containsNumericCharacter || (status.containsNumericCharacter = containsNumericCharacter);\n if (this.customStrengthOptions.containsNonAlphanumericCharacter) status.containsNonAlphanumericCharacter || (status.containsNonAlphanumericCharacter = containsNonAlphanumericCharacter);\n }\n }\n ]);\n return PasswordPolicyImpl;\n}();\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */ var $f394e9ac486578e6$export$91477dc880baac21 = /*#__PURE__*/ function() {\n \"use strict\";\n function AuthImpl(app, heartbeatServiceProvider, appCheckServiceProvider, config) {\n (0, $0c3f79e99c83f58f$export$2996f80ef42b8419)(this, AuthImpl);\n this.app = app;\n this.heartbeatServiceProvider = heartbeatServiceProvider;\n this.appCheckServiceProvider = appCheckServiceProvider;\n this.config = config;\n this.currentUser = null;\n this.emulatorConfig = null;\n this.operations = Promise.resolve();\n this.authStateSubscription = new $f394e9ac486578e6$var$Subscription(this);\n this.idTokenSubscription = new $f394e9ac486578e6$var$Subscription(this);\n this.beforeStateQueue = new $f394e9ac486578e6$var$AuthMiddlewareQueue(this);\n this.redirectUser = null;\n this.isProactiveRefreshEnabled = false;\n this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION = 1;\n // Any network calls will set this to true and prevent subsequent emulator\n // initialization\n this._canInitEmulator = true;\n this._isInitialized = false;\n this._deleted = false;\n this._initializationPromise = null;\n this._popupRedirectResolver = null;\n this._errorFactory = $f394e9ac486578e6$var$_DEFAULT_AUTH_ERROR_FACTORY;\n this._agentRecaptchaConfig = null;\n this._tenantRecaptchaConfigs = {};\n this._projectPasswordPolicy = null;\n this._tenantPasswordPolicies = {};\n // Tracks the last notified UID for state change listeners to prevent\n // repeated calls to the callbacks. Undefined means it's never been\n // called, whereas null means it's been called with a signed out user\n this.lastNotifiedUid = undefined;\n this.languageCode = null;\n this.tenantId = null;\n this.settings = {\n appVerificationDisabledForTesting: false\n };\n this.frameworks = [];\n this.name = app.name;\n this.clientVersion = config.sdkClientVersion;\n }\n (0, $a27186eefd8c4b26$export$d60067ff2358eee8)(AuthImpl, [\n {\n key: \"_initializeWithPersistence\",\n value: function _initializeWithPersistence(persistenceHierarchy, popupRedirectResolver) {\n if (popupRedirectResolver) this._popupRedirectResolver = $f394e9ac486578e6$export$158acd800e1ef08b(popupRedirectResolver);\n var _this = this;\n // Have to check for app deletion throughout initialization (after each\n // promise resolution)\n this._initializationPromise = this.queue(/*#__PURE__*/ (0, $9167c88d5d99601b$export$7c398597f8905a1)(function() {\n var _a, _b, e;\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n switch(_state.label){\n case 0:\n if (_this._deleted) return [\n 2\n ];\n return [\n 4,\n $f394e9ac486578e6$var$PersistenceUserManager.create(_this, persistenceHierarchy)\n ];\n case 1:\n _this.persistenceManager = _state.sent();\n if (_this._deleted) return [\n 2\n ];\n if (!((_a = _this._popupRedirectResolver) === null || _a === void 0 ? void 0 : _a._shouldInitProactively)) return [\n 3,\n 5\n ];\n _state.label = 2;\n case 2:\n _state.trys.push([\n 2,\n 4,\n ,\n 5\n ]);\n return [\n 4,\n _this._popupRedirectResolver._initialize(_this)\n ];\n case 3:\n _state.sent();\n return [\n 3,\n 5\n ];\n case 4:\n e = _state.sent();\n return [\n 3,\n 5\n ];\n case 5:\n return [\n 4,\n _this.initializeCurrentUser(popupRedirectResolver)\n ];\n case 6:\n _state.sent();\n _this.lastNotifiedUid = ((_b = _this.currentUser) === null || _b === void 0 ? void 0 : _b.uid) || null;\n if (_this._deleted) return [\n 2\n ];\n _this._isInitialized = true;\n return [\n 2\n ];\n }\n });\n }));\n return this._initializationPromise;\n }\n },\n {\n key: \"_onStorageEvent\",\n value: /**\r\n * If the persistence is changed in another window, the user manager will let us know\r\n */ function _onStorageEvent() {\n var _this = this;\n return (0, $9167c88d5d99601b$export$7c398597f8905a1)(function() {\n var user;\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n switch(_state.label){\n case 0:\n if (_this._deleted) return [\n 2\n ];\n return [\n 4,\n _this.assertedPersistence.getCurrentUser()\n ];\n case 1:\n user = _state.sent();\n if (!_this.currentUser && !user) // No change, do nothing (was signed out and remained signed out).\n return [\n 2\n ];\n if (!(_this.currentUser && user && _this.currentUser.uid === user.uid)) return [\n 3,\n 3\n ];\n // Data update, simply copy data changes.\n _this._currentUser._assign(user);\n // If tokens changed from previous user tokens, this will trigger\n // notifyAuthListeners_.\n return [\n 4,\n _this.currentUser.getIdToken()\n ];\n case 2:\n _state.sent();\n return [\n 2\n ];\n case 3:\n // Update current Auth state. Either a new login or logout.\n // Skip blocking callbacks, they should not apply to a change in another tab.\n return [\n 4,\n _this._updateCurrentUser(user, /* skipBeforeStateCallbacks */ true)\n ];\n case 4:\n _state.sent();\n return [\n 2\n ];\n }\n });\n })();\n }\n },\n {\n key: \"initializeCurrentUser\",\n value: function initializeCurrentUser(popupRedirectResolver) {\n var _this = this;\n return (0, $9167c88d5d99601b$export$7c398597f8905a1)(function() {\n var _a, previouslyStoredUser, futureCurrentUser, needsTocheckMiddleware, redirectUserEventId, storedUserEventId, result, e;\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n switch(_state.label){\n case 0:\n return [\n 4,\n _this.assertedPersistence.getCurrentUser()\n ];\n case 1:\n previouslyStoredUser = _state.sent();\n futureCurrentUser = previouslyStoredUser;\n needsTocheckMiddleware = false;\n if (!(popupRedirectResolver && _this.config.authDomain)) return [\n 3,\n 4\n ];\n return [\n 4,\n _this.getOrInitRedirectPersistenceManager()\n ];\n case 2:\n _state.sent();\n redirectUserEventId = (_a = _this.redirectUser) === null || _a === void 0 ? void 0 : _a._redirectEventId;\n storedUserEventId = futureCurrentUser === null || futureCurrentUser === void 0 ? void 0 : futureCurrentUser._redirectEventId;\n return [\n 4,\n _this.tryRedirectSignIn(popupRedirectResolver)\n ];\n case 3:\n result = _state.sent();\n // If the stored user (i.e. the old \"currentUser\") has a redirectId that\n // matches the redirect user, then we want to initially sign in with the\n // new user object from result.\n // TODO(samgho): More thoroughly test all of this\n if ((!redirectUserEventId || redirectUserEventId === storedUserEventId) && (result === null || result === void 0 ? void 0 : result.user)) {\n futureCurrentUser = result.user;\n needsTocheckMiddleware = true;\n }\n _state.label = 4;\n case 4:\n // If no user in persistence, there is no current user. Set to null.\n if (!futureCurrentUser) return [\n 2,\n _this.directlySetCurrentUser(null)\n ];\n if (!!futureCurrentUser._redirectEventId) return [\n 3,\n 9\n ];\n if (!needsTocheckMiddleware) return [\n 3,\n 8\n ];\n _state.label = 5;\n case 5:\n _state.trys.push([\n 5,\n 7,\n ,\n 8\n ]);\n return [\n 4,\n _this.beforeStateQueue.runMiddleware(futureCurrentUser)\n ];\n case 6:\n _state.sent();\n return [\n 3,\n 8\n ];\n case 7:\n e = _state.sent();\n futureCurrentUser = previouslyStoredUser;\n // We know this is available since the bit is only set when the\n // resolver is available\n _this._popupRedirectResolver._overrideRedirectResult(_this, function() {\n return Promise.reject(e);\n });\n return [\n 3,\n 8\n ];\n case 8:\n if (futureCurrentUser) return [\n 2,\n _this.reloadAndSetCurrentUserOrClear(futureCurrentUser)\n ];\n else return [\n 2,\n _this.directlySetCurrentUser(null)\n ];\n _state.label = 9;\n case 9:\n $f394e9ac486578e6$export$890c4ad488842ce7(_this._popupRedirectResolver, _this, \"argument-error\" /* AuthErrorCode.ARGUMENT_ERROR */ );\n return [\n 4,\n _this.getOrInitRedirectPersistenceManager()\n ];\n case 10:\n _state.sent();\n // If the redirect user's event ID matches the current user's event ID,\n // DO NOT reload the current user, otherwise they'll be cleared from storage.\n // This is important for the reauthenticateWithRedirect() flow.\n if (_this.redirectUser && _this.redirectUser._redirectEventId === futureCurrentUser._redirectEventId) return [\n 2,\n _this.directlySetCurrentUser(futureCurrentUser)\n ];\n return [\n 2,\n _this.reloadAndSetCurrentUserOrClear(futureCurrentUser)\n ];\n }\n });\n })();\n }\n },\n {\n key: \"tryRedirectSignIn\",\n value: function tryRedirectSignIn(redirectResolver) {\n var _this = this;\n return (0, $9167c88d5d99601b$export$7c398597f8905a1)(function() {\n var result, e;\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n switch(_state.label){\n case 0:\n // The redirect user needs to be checked (and signed in if available)\n // during auth initialization. All of the normal sign in and link/reauth\n // flows call back into auth and push things onto the promise queue. We\n // need to await the result of the redirect sign in *inside the promise\n // queue*. This presents a problem: we run into deadlock. See:\n // ┌> [Initialization] ─────┐\n // ┌> [] │\n // └─ [getRedirectResult] <─┘\n // where [] are tasks on the queue and arrows denote awaits\n // Initialization will never complete because it's waiting on something\n // that's waiting for initialization to complete!\n //\n // Instead, this method calls getRedirectResult() (stored in\n // _completeRedirectFn) with an optional parameter that instructs all of\n // the underlying auth operations to skip anything that mutates auth state.\n result = null;\n _state.label = 1;\n case 1:\n _state.trys.push([\n 1,\n 3,\n ,\n 5\n ]);\n return [\n 4,\n _this._popupRedirectResolver._completeRedirectFn(_this, redirectResolver, true)\n ];\n case 2:\n // We know this._popupRedirectResolver is set since redirectResolver\n // is passed in. The _completeRedirectFn expects the unwrapped extern.\n result = _state.sent();\n return [\n 3,\n 5\n ];\n case 3:\n e = _state.sent();\n // Swallow any errors here; the code can retrieve them in\n // getRedirectResult().\n return [\n 4,\n _this._setRedirectUser(null)\n ];\n case 4:\n _state.sent();\n return [\n 3,\n 5\n ];\n case 5:\n return [\n 2,\n result\n ];\n }\n });\n })();\n }\n },\n {\n key: \"reloadAndSetCurrentUserOrClear\",\n value: function reloadAndSetCurrentUserOrClear(user) {\n var _this = this;\n return (0, $9167c88d5d99601b$export$7c398597f8905a1)(function() {\n var e;\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n switch(_state.label){\n case 0:\n _state.trys.push([\n 0,\n 2,\n ,\n 3\n ]);\n return [\n 4,\n $f394e9ac486578e6$var$_reloadWithoutSaving(user)\n ];\n case 1:\n _state.sent();\n return [\n 3,\n 3\n ];\n case 2:\n e = _state.sent();\n if ((e === null || e === void 0 ? void 0 : e.code) !== \"auth/network-request-failed\" /* AuthErrorCode.NETWORK_REQUEST_FAILED */ ) // Something's wrong with the user's token. Log them out and remove\n // them from storage\n return [\n 2,\n _this.directlySetCurrentUser(null)\n ];\n return [\n 3,\n 3\n ];\n case 3:\n return [\n 2,\n _this.directlySetCurrentUser(user)\n ];\n }\n });\n })();\n }\n },\n {\n key: \"useDeviceLanguage\",\n value: function useDeviceLanguage() {\n this.languageCode = $f394e9ac486578e6$var$_getUserLanguage();\n }\n },\n {\n key: \"_delete\",\n value: function _delete() {\n var _this = this;\n return (0, $9167c88d5d99601b$export$7c398597f8905a1)(function() {\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n _this._deleted = true;\n return [\n 2\n ];\n });\n })();\n }\n },\n {\n key: \"updateCurrentUser\",\n value: function updateCurrentUser(userExtern) {\n var _this = this;\n return (0, $9167c88d5d99601b$export$7c398597f8905a1)(function() {\n var user;\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n // The public updateCurrentUser method needs to make a copy of the user,\n // and also check that the project matches\n user = userExtern ? (0, $9b50b37fb8824044$export$4befe9b5fa509a1b)(userExtern) : null;\n if (user) $f394e9ac486578e6$export$890c4ad488842ce7(user.auth.config.apiKey === _this.config.apiKey, _this, \"invalid-user-token\" /* AuthErrorCode.INVALID_AUTH */ );\n return [\n 2,\n _this._updateCurrentUser(user && user._clone(_this))\n ];\n });\n })();\n }\n },\n {\n key: \"_updateCurrentUser\",\n value: function _updateCurrentUser(user) {\n var skipBeforeStateCallbacks = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false;\n var _this = this;\n return (0, $9167c88d5d99601b$export$7c398597f8905a1)(function() {\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n switch(_state.label){\n case 0:\n if (_this._deleted) return [\n 2\n ];\n if (user) $f394e9ac486578e6$export$890c4ad488842ce7(_this.tenantId === user.tenantId, _this, \"tenant-id-mismatch\" /* AuthErrorCode.TENANT_ID_MISMATCH */ );\n if (!!skipBeforeStateCallbacks) return [\n 3,\n 2\n ];\n return [\n 4,\n _this.beforeStateQueue.runMiddleware(user)\n ];\n case 1:\n _state.sent();\n _state.label = 2;\n case 2:\n return [\n 2,\n _this.queue(/*#__PURE__*/ (0, $9167c88d5d99601b$export$7c398597f8905a1)(function() {\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n switch(_state.label){\n case 0:\n return [\n 4,\n _this.directlySetCurrentUser(user)\n ];\n case 1:\n _state.sent();\n _this.notifyAuthListeners();\n return [\n 2\n ];\n }\n });\n }))\n ];\n }\n });\n })();\n }\n },\n {\n key: \"signOut\",\n value: function signOut() {\n var _this = this;\n return (0, $9167c88d5d99601b$export$7c398597f8905a1)(function() {\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n switch(_state.label){\n case 0:\n // Run first, to block _setRedirectUser() if any callbacks fail.\n return [\n 4,\n _this.beforeStateQueue.runMiddleware(null)\n ];\n case 1:\n _state.sent();\n if (!(_this.redirectPersistenceManager || _this._popupRedirectResolver)) return [\n 3,\n 3\n ];\n return [\n 4,\n _this._setRedirectUser(null)\n ];\n case 2:\n _state.sent();\n _state.label = 3;\n case 3:\n // Prevent callbacks from being called again in _updateCurrentUser, as\n // they were already called in the first line.\n return [\n 2,\n _this._updateCurrentUser(null, /* skipBeforeStateCallbacks */ true)\n ];\n }\n });\n })();\n }\n },\n {\n key: \"setPersistence\",\n value: function setPersistence(persistence) {\n var _this = this;\n return this.queue(/*#__PURE__*/ (0, $9167c88d5d99601b$export$7c398597f8905a1)(function() {\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n switch(_state.label){\n case 0:\n return [\n 4,\n _this.assertedPersistence.setPersistence($f394e9ac486578e6$export$158acd800e1ef08b(persistence))\n ];\n case 1:\n _state.sent();\n return [\n 2\n ];\n }\n });\n }));\n }\n },\n {\n key: \"_getRecaptchaConfig\",\n value: function _getRecaptchaConfig() {\n if (this.tenantId == null) return this._agentRecaptchaConfig;\n else return this._tenantRecaptchaConfigs[this.tenantId];\n }\n },\n {\n key: \"validatePassword\",\n value: function validatePassword(password) {\n var _this = this;\n return (0, $9167c88d5d99601b$export$7c398597f8905a1)(function() {\n var passwordPolicy;\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n switch(_state.label){\n case 0:\n if (!!_this._getPasswordPolicyInternal()) return [\n 3,\n 2\n ];\n return [\n 4,\n _this._updatePasswordPolicy()\n ];\n case 1:\n _state.sent();\n _state.label = 2;\n case 2:\n // Password policy will be defined after fetching.\n passwordPolicy = _this._getPasswordPolicyInternal();\n // Check that the policy schema version is supported by the SDK.\n // TODO: Update this logic to use a max supported policy schema version once we have multiple schema versions.\n if (passwordPolicy.schemaVersion !== _this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION) return [\n 2,\n Promise.reject(_this._errorFactory.create(\"unsupported-password-policy-schema-version\" /* AuthErrorCode.UNSUPPORTED_PASSWORD_POLICY_SCHEMA_VERSION */ , {}))\n ];\n return [\n 2,\n passwordPolicy.validatePassword(password)\n ];\n }\n });\n })();\n }\n },\n {\n key: \"_getPasswordPolicyInternal\",\n value: function _getPasswordPolicyInternal() {\n if (this.tenantId === null) return this._projectPasswordPolicy;\n else return this._tenantPasswordPolicies[this.tenantId];\n }\n },\n {\n key: \"_updatePasswordPolicy\",\n value: function _updatePasswordPolicy() {\n var _this = this;\n return (0, $9167c88d5d99601b$export$7c398597f8905a1)(function() {\n var response, passwordPolicy;\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n switch(_state.label){\n case 0:\n return [\n 4,\n $f394e9ac486578e6$var$_getPasswordPolicy(_this)\n ];\n case 1:\n response = _state.sent();\n passwordPolicy = new $f394e9ac486578e6$var$PasswordPolicyImpl(response);\n if (_this.tenantId === null) _this._projectPasswordPolicy = passwordPolicy;\n else _this._tenantPasswordPolicies[_this.tenantId] = passwordPolicy;\n return [\n 2\n ];\n }\n });\n })();\n }\n },\n {\n key: \"_getPersistence\",\n value: function _getPersistence() {\n return this.assertedPersistence.persistence.type;\n }\n },\n {\n key: \"_updateErrorMap\",\n value: function _updateErrorMap(errorMap) {\n this._errorFactory = new (0, $9b50b37fb8824044$export$3fa6e1b18a3b2d40)(\"auth\", \"Firebase\", errorMap());\n }\n },\n {\n key: \"onAuthStateChanged\",\n value: function onAuthStateChanged(nextOrObserver, error, completed) {\n return this.registerStateListener(this.authStateSubscription, nextOrObserver, error, completed);\n }\n },\n {\n key: \"beforeAuthStateChanged\",\n value: function beforeAuthStateChanged(callback, onAbort) {\n return this.beforeStateQueue.pushCallback(callback, onAbort);\n }\n },\n {\n key: \"onIdTokenChanged\",\n value: function onIdTokenChanged(nextOrObserver, error, completed) {\n return this.registerStateListener(this.idTokenSubscription, nextOrObserver, error, completed);\n }\n },\n {\n key: \"authStateReady\",\n value: function authStateReady() {\n var _this = this;\n return new Promise(function(resolve, reject) {\n if (_this.currentUser) resolve();\n else {\n var unsubscribe = _this.onAuthStateChanged(function() {\n unsubscribe();\n resolve();\n }, reject);\n }\n });\n }\n },\n {\n key: \"revokeAccessToken\",\n value: /**\r\n * Revokes the given access token. Currently only supports Apple OAuth access tokens.\r\n */ function revokeAccessToken(token) {\n var _this = this;\n return (0, $9167c88d5d99601b$export$7c398597f8905a1)(function() {\n var idToken, request;\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n switch(_state.label){\n case 0:\n if (!_this.currentUser) return [\n 3,\n 3\n ];\n return [\n 4,\n _this.currentUser.getIdToken()\n ];\n case 1:\n idToken = _state.sent();\n // Generalize this to accept other providers once supported.\n request = {\n providerId: \"apple.com\",\n tokenType: \"ACCESS_TOKEN\" /* TokenType.ACCESS_TOKEN */ ,\n token: token,\n idToken: idToken\n };\n if (_this.tenantId != null) request.tenantId = _this.tenantId;\n return [\n 4,\n $f394e9ac486578e6$var$revokeToken(_this, request)\n ];\n case 2:\n _state.sent();\n _state.label = 3;\n case 3:\n return [\n 2\n ];\n }\n });\n })();\n }\n },\n {\n key: \"toJSON\",\n value: function toJSON() {\n var _a;\n return {\n apiKey: this.config.apiKey,\n authDomain: this.config.authDomain,\n appName: this.name,\n currentUser: (_a = this._currentUser) === null || _a === void 0 ? void 0 : _a.toJSON()\n };\n }\n },\n {\n key: \"_setRedirectUser\",\n value: function _setRedirectUser(user, popupRedirectResolver) {\n var _this = this;\n return (0, $9167c88d5d99601b$export$7c398597f8905a1)(function() {\n var redirectManager;\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n switch(_state.label){\n case 0:\n return [\n 4,\n _this.getOrInitRedirectPersistenceManager(popupRedirectResolver)\n ];\n case 1:\n redirectManager = _state.sent();\n return [\n 2,\n user === null ? redirectManager.removeCurrentUser() : redirectManager.setCurrentUser(user)\n ];\n }\n });\n })();\n }\n },\n {\n key: \"getOrInitRedirectPersistenceManager\",\n value: function getOrInitRedirectPersistenceManager(popupRedirectResolver) {\n var _this = this;\n return (0, $9167c88d5d99601b$export$7c398597f8905a1)(function() {\n var resolver;\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n switch(_state.label){\n case 0:\n if (!!_this.redirectPersistenceManager) return [\n 3,\n 3\n ];\n resolver = popupRedirectResolver && $f394e9ac486578e6$export$158acd800e1ef08b(popupRedirectResolver) || _this._popupRedirectResolver;\n $f394e9ac486578e6$export$890c4ad488842ce7(resolver, _this, \"argument-error\" /* AuthErrorCode.ARGUMENT_ERROR */ );\n return [\n 4,\n $f394e9ac486578e6$var$PersistenceUserManager.create(_this, [\n $f394e9ac486578e6$export$158acd800e1ef08b(resolver._redirectPersistence)\n ], \"redirectUser\" /* KeyName.REDIRECT_USER */ )\n ];\n case 1:\n _this.redirectPersistenceManager = _state.sent();\n return [\n 4,\n _this.redirectPersistenceManager.getCurrentUser()\n ];\n case 2:\n _this.redirectUser = _state.sent();\n _state.label = 3;\n case 3:\n return [\n 2,\n _this.redirectPersistenceManager\n ];\n }\n });\n })();\n }\n },\n {\n key: \"_redirectUserForId\",\n value: function _redirectUserForId(id) {\n var _this = this;\n return (0, $9167c88d5d99601b$export$7c398597f8905a1)(function() {\n var _a, _b;\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n switch(_state.label){\n case 0:\n if (!_this._isInitialized) return [\n 3,\n 2\n ];\n return [\n 4,\n _this.queue(/*#__PURE__*/ (0, $9167c88d5d99601b$export$7c398597f8905a1)(function() {\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n return [\n 2\n ];\n });\n }))\n ];\n case 1:\n _state.sent();\n _state.label = 2;\n case 2:\n if (((_a = _this._currentUser) === null || _a === void 0 ? void 0 : _a._redirectEventId) === id) return [\n 2,\n _this._currentUser\n ];\n if (((_b = _this.redirectUser) === null || _b === void 0 ? void 0 : _b._redirectEventId) === id) return [\n 2,\n _this.redirectUser\n ];\n return [\n 2,\n null\n ];\n }\n });\n })();\n }\n },\n {\n key: \"_persistUserIfCurrent\",\n value: function _persistUserIfCurrent(user) {\n var _this = this;\n return (0, $9167c88d5d99601b$export$7c398597f8905a1)(function() {\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n if (user === _this.currentUser) return [\n 2,\n _this.queue(/*#__PURE__*/ (0, $9167c88d5d99601b$export$7c398597f8905a1)(function() {\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n return [\n 2,\n _this.directlySetCurrentUser(user)\n ];\n });\n }))\n ];\n return [\n 2\n ];\n });\n })();\n }\n },\n {\n /** Notifies listeners only if the user is current */ key: \"_notifyListenersIfCurrent\",\n value: function _notifyListenersIfCurrent(user) {\n if (user === this.currentUser) this.notifyAuthListeners();\n }\n },\n {\n key: \"_key\",\n value: function _key() {\n return \"\".concat(this.config.authDomain, \":\").concat(this.config.apiKey, \":\").concat(this.name);\n }\n },\n {\n key: \"_startProactiveRefresh\",\n value: function _startProactiveRefresh() {\n this.isProactiveRefreshEnabled = true;\n if (this.currentUser) this._currentUser._startProactiveRefresh();\n }\n },\n {\n key: \"_stopProactiveRefresh\",\n value: function _stopProactiveRefresh() {\n this.isProactiveRefreshEnabled = false;\n if (this.currentUser) this._currentUser._stopProactiveRefresh();\n }\n },\n {\n key: \"_currentUser\",\n get: /** Returns the current user cast as the internal type */ function get() {\n return this.currentUser;\n }\n },\n {\n key: \"notifyAuthListeners\",\n value: function notifyAuthListeners() {\n var _a, _b;\n if (!this._isInitialized) return;\n this.idTokenSubscription.next(this.currentUser);\n var currentUid = (_b = (_a = this.currentUser) === null || _a === void 0 ? void 0 : _a.uid) !== null && _b !== void 0 ? _b : null;\n if (this.lastNotifiedUid !== currentUid) {\n this.lastNotifiedUid = currentUid;\n this.authStateSubscription.next(this.currentUser);\n }\n }\n },\n {\n key: \"registerStateListener\",\n value: function registerStateListener(subscription, nextOrObserver, error, completed) {\n var _this = this;\n if (this._deleted) return function() {};\n var cb = typeof nextOrObserver === \"function\" ? nextOrObserver : nextOrObserver.next.bind(nextOrObserver);\n var isUnsubscribed = false;\n var promise = this._isInitialized ? Promise.resolve() : this._initializationPromise;\n $f394e9ac486578e6$export$890c4ad488842ce7(promise, this, \"internal-error\" /* AuthErrorCode.INTERNAL_ERROR */ );\n // The callback needs to be called asynchronously per the spec.\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\n promise.then(function() {\n if (isUnsubscribed) return;\n cb(_this.currentUser);\n });\n if (typeof nextOrObserver === \"function\") {\n var unsubscribe = subscription.addObserver(nextOrObserver, error, completed);\n return function() {\n isUnsubscribed = true;\n unsubscribe();\n };\n } else {\n var unsubscribe1 = subscription.addObserver(nextOrObserver);\n return function() {\n isUnsubscribed = true;\n unsubscribe1();\n };\n }\n }\n },\n {\n key: \"directlySetCurrentUser\",\n value: /**\r\n * Unprotected (from race conditions) method to set the current user. This\r\n * should only be called from within a queued callback. This is necessary\r\n * because the queue shouldn't rely on another queued callback.\r\n */ function directlySetCurrentUser(user) {\n var _this = this;\n return (0, $9167c88d5d99601b$export$7c398597f8905a1)(function() {\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n switch(_state.label){\n case 0:\n if (_this.currentUser && _this.currentUser !== user) _this._currentUser._stopProactiveRefresh();\n if (user && _this.isProactiveRefreshEnabled) user._startProactiveRefresh();\n _this.currentUser = user;\n if (!user) return [\n 3,\n 2\n ];\n return [\n 4,\n _this.assertedPersistence.setCurrentUser(user)\n ];\n case 1:\n _state.sent();\n return [\n 3,\n 4\n ];\n case 2:\n return [\n 4,\n _this.assertedPersistence.removeCurrentUser()\n ];\n case 3:\n _state.sent();\n _state.label = 4;\n case 4:\n return [\n 2\n ];\n }\n });\n })();\n }\n },\n {\n key: \"queue\",\n value: function queue(action) {\n // In case something errors, the callback still should be called in order\n // to keep the promise chain alive\n this.operations = this.operations.then(action, action);\n return this.operations;\n }\n },\n {\n key: \"assertedPersistence\",\n get: function get() {\n $f394e9ac486578e6$export$890c4ad488842ce7(this.persistenceManager, this, \"internal-error\" /* AuthErrorCode.INTERNAL_ERROR */ );\n return this.persistenceManager;\n }\n },\n {\n key: \"_logFramework\",\n value: function _logFramework(framework) {\n if (!framework || this.frameworks.includes(framework)) return;\n this.frameworks.push(framework);\n // Sort alphabetically so that \"FirebaseCore-web,FirebaseUI-web\" and\n // \"FirebaseUI-web,FirebaseCore-web\" aren't viewed as different.\n this.frameworks.sort();\n this.clientVersion = $f394e9ac486578e6$export$9f4f30ee63539e24(this.config.clientPlatform, this._getFrameworks());\n }\n },\n {\n key: \"_getFrameworks\",\n value: function _getFrameworks() {\n return this.frameworks;\n }\n },\n {\n key: \"_getAdditionalHeaders\",\n value: function _getAdditionalHeaders() {\n var _this = this;\n return (0, $9167c88d5d99601b$export$7c398597f8905a1)(function() {\n var _a, headers, heartbeatsHeader, appCheckToken;\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n switch(_state.label){\n case 0:\n // Additional headers on every request\n headers = (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)({}, \"X-Client-Version\" /* HttpHeader.X_CLIENT_VERSION */ , _this.clientVersion);\n if (_this.app.options.appId) headers[\"X-Firebase-gmpid\" /* HttpHeader.X_FIREBASE_GMPID */ ] = _this.app.options.appId;\n return [\n 4,\n (_a = _this.heartbeatServiceProvider.getImmediate({\n optional: true\n })) === null || _a === void 0 ? void 0 : _a.getHeartbeatsHeader()\n ];\n case 1:\n heartbeatsHeader = _state.sent();\n if (heartbeatsHeader) headers[\"X-Firebase-Client\" /* HttpHeader.X_FIREBASE_CLIENT */ ] = heartbeatsHeader;\n return [\n 4,\n _this._getAppCheckToken()\n ];\n case 2:\n appCheckToken = _state.sent();\n if (appCheckToken) headers[\"X-Firebase-AppCheck\" /* HttpHeader.X_FIREBASE_APP_CHECK */ ] = appCheckToken;\n return [\n 2,\n headers\n ];\n }\n });\n })();\n }\n },\n {\n key: \"_getAppCheckToken\",\n value: function _getAppCheckToken() {\n var _this = this;\n return (0, $9167c88d5d99601b$export$7c398597f8905a1)(function() {\n var _a, appCheckTokenResult;\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n switch(_state.label){\n case 0:\n return [\n 4,\n (_a = _this.appCheckServiceProvider.getImmediate({\n optional: true\n })) === null || _a === void 0 ? void 0 : _a.getToken()\n ];\n case 1:\n appCheckTokenResult = _state.sent();\n if (appCheckTokenResult === null || appCheckTokenResult === void 0 ? void 0 : appCheckTokenResult.error) // Context: appCheck.getToken() will never throw even if an error happened.\n // In the error case, a dummy token will be returned along with an error field describing\n // the error. In general, we shouldn't care about the error condition and just use\n // the token (actual or dummy) to send requests.\n $f394e9ac486578e6$var$_logWarn(\"Error while retrieving App Check token: \".concat(appCheckTokenResult.error));\n return [\n 2,\n appCheckTokenResult === null || appCheckTokenResult === void 0 ? void 0 : appCheckTokenResult.token\n ];\n }\n });\n })();\n }\n }\n ]);\n return AuthImpl;\n}();\n/**\r\n * Method to be used to cast down to our private implmentation of Auth.\r\n * It will also handle unwrapping from the compat type if necessary\r\n *\r\n * @param auth Auth object passed in from developer\r\n */ function $f394e9ac486578e6$export$a05254e7c3aeba6e(auth) {\n return (0, $9b50b37fb8824044$export$4befe9b5fa509a1b)(auth);\n}\n/** Helper class to wrap subscriber logic */ var $f394e9ac486578e6$var$Subscription = /*#__PURE__*/ function() {\n \"use strict\";\n function Subscription(auth) {\n var _this = this;\n (0, $0c3f79e99c83f58f$export$2996f80ef42b8419)(this, Subscription);\n this.auth = auth;\n this.observer = null;\n this.addObserver = (0, $9b50b37fb8824044$export$364097d812234b3f)(function(observer) {\n return _this.observer = observer;\n });\n }\n (0, $a27186eefd8c4b26$export$d60067ff2358eee8)(Subscription, [\n {\n key: \"next\",\n get: function get() {\n $f394e9ac486578e6$export$890c4ad488842ce7(this.observer, this.auth, \"internal-error\" /* AuthErrorCode.INTERNAL_ERROR */ );\n return this.observer.next.bind(this.observer);\n }\n }\n ]);\n return Subscription;\n}();\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */ function $f394e9ac486578e6$var$getScriptParentElement() {\n var _a, _b;\n return (_b = (_a = document.getElementsByTagName(\"head\")) === null || _a === void 0 ? void 0 : _a[0]) !== null && _b !== void 0 ? _b : document;\n}\nfunction $f394e9ac486578e6$var$_loadJS(url) {\n // TODO: consider adding timeout support & cancellation\n return new Promise(function(resolve, reject) {\n var el = document.createElement(\"script\");\n el.setAttribute(\"src\", url);\n el.onload = resolve;\n el.onerror = function(e) {\n var error = $f394e9ac486578e6$export$9d398bebfec1c039(\"internal-error\" /* AuthErrorCode.INTERNAL_ERROR */ );\n error.customData = e;\n reject(error);\n };\n el.type = \"text/javascript\";\n el.charset = \"UTF-8\";\n $f394e9ac486578e6$var$getScriptParentElement().appendChild(el);\n });\n}\nfunction $f394e9ac486578e6$var$_generateCallbackName(prefix) {\n return \"__\".concat(prefix).concat(Math.floor(Math.random() * 1000000));\n}\n/* eslint-disable @typescript-eslint/no-require-imports */ var $f394e9ac486578e6$var$RECAPTCHA_ENTERPRISE_URL = \"https://www.google.com/recaptcha/enterprise.js?render=\";\nvar $f394e9ac486578e6$var$RECAPTCHA_ENTERPRISE_VERIFIER_TYPE = \"recaptcha-enterprise\";\nvar $f394e9ac486578e6$var$FAKE_TOKEN = \"NO_RECAPTCHA\";\nvar $f394e9ac486578e6$var$RecaptchaEnterpriseVerifier = /*#__PURE__*/ function() {\n \"use strict\";\n function RecaptchaEnterpriseVerifier(authExtern) {\n (0, $0c3f79e99c83f58f$export$2996f80ef42b8419)(this, RecaptchaEnterpriseVerifier);\n /**\r\n * Identifies the type of application verifier (e.g. \"recaptcha-enterprise\").\r\n */ this.type = $f394e9ac486578e6$var$RECAPTCHA_ENTERPRISE_VERIFIER_TYPE;\n this.auth = $f394e9ac486578e6$export$a05254e7c3aeba6e(authExtern);\n }\n (0, $a27186eefd8c4b26$export$d60067ff2358eee8)(RecaptchaEnterpriseVerifier, [\n {\n key: \"verify\",\n value: /**\r\n * Executes the verification process.\r\n *\r\n * @returns A Promise for a token that can be used to assert the validity of a request.\r\n */ function verify() {\n var action = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : \"verify\", forceRefresh = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false;\n var _this = this;\n return (0, $9167c88d5d99601b$export$7c398597f8905a1)(function() {\n function retrieveSiteKey(auth) {\n return _retrieveSiteKey.apply(this, arguments);\n }\n function _retrieveSiteKey() {\n _retrieveSiteKey = (0, $9167c88d5d99601b$export$7c398597f8905a1)(function(auth) {\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n if (!forceRefresh) {\n if (auth.tenantId == null && auth._agentRecaptchaConfig != null) return [\n 2,\n auth._agentRecaptchaConfig.siteKey\n ];\n if (auth.tenantId != null && auth._tenantRecaptchaConfigs[auth.tenantId] !== undefined) return [\n 2,\n auth._tenantRecaptchaConfigs[auth.tenantId].siteKey\n ];\n }\n return [\n 2,\n new Promise(function() {\n var _ref = (0, $9167c88d5d99601b$export$7c398597f8905a1)(function(resolve, reject) {\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n $f394e9ac486578e6$var$getRecaptchaConfig(auth, {\n clientType: \"CLIENT_TYPE_WEB\" /* RecaptchaClientType.WEB */ ,\n version: \"RECAPTCHA_ENTERPRISE\" /* RecaptchaVersion.ENTERPRISE */ \n }).then(function(response) {\n if (response.recaptchaKey === undefined) reject(new Error(\"recaptcha Enterprise site key undefined\"));\n else {\n var config = new $f394e9ac486578e6$var$RecaptchaConfig(response);\n if (auth.tenantId == null) auth._agentRecaptchaConfig = config;\n else auth._tenantRecaptchaConfigs[auth.tenantId] = config;\n return resolve(config.siteKey);\n }\n }).catch(function(error) {\n reject(error);\n });\n return [\n 2\n ];\n });\n });\n return function(resolve, reject) {\n return _ref.apply(this, arguments);\n };\n }())\n ];\n });\n });\n return _retrieveSiteKey.apply(this, arguments);\n }\n function retrieveRecaptchaToken(siteKey, resolve, reject) {\n var grecaptcha = window.grecaptcha;\n if ($f394e9ac486578e6$var$isEnterprise(grecaptcha)) grecaptcha.enterprise.ready(function() {\n grecaptcha.enterprise.execute(siteKey, {\n action: action\n }).then(function(token) {\n resolve(token);\n }).catch(function() {\n resolve($f394e9ac486578e6$var$FAKE_TOKEN);\n });\n });\n else reject(Error(\"No reCAPTCHA enterprise script loaded.\"));\n }\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n return [\n 2,\n new Promise(function(resolve, reject) {\n retrieveSiteKey(_this.auth).then(function(siteKey) {\n if (!forceRefresh && $f394e9ac486578e6$var$isEnterprise(window.grecaptcha)) retrieveRecaptchaToken(siteKey, resolve, reject);\n else {\n if (typeof window === \"undefined\") {\n reject(new Error(\"RecaptchaVerifier is only supported in browser\"));\n return;\n }\n $f394e9ac486578e6$var$_loadJS($f394e9ac486578e6$var$RECAPTCHA_ENTERPRISE_URL + siteKey).then(function() {\n retrieveRecaptchaToken(siteKey, resolve, reject);\n }).catch(function(error) {\n reject(error);\n });\n }\n }).catch(function(error) {\n reject(error);\n });\n })\n ];\n });\n })();\n }\n }\n ]);\n return RecaptchaEnterpriseVerifier;\n}();\nfunction $f394e9ac486578e6$var$injectRecaptchaFields(auth, request, action) {\n return $f394e9ac486578e6$var$_injectRecaptchaFields.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$var$_injectRecaptchaFields() {\n $f394e9ac486578e6$var$_injectRecaptchaFields = (0, $9167c88d5d99601b$export$7c398597f8905a1)(function(auth, request, action) {\n var captchaResp, verifier, captchaResponse, error, newRequest;\n var _arguments = arguments;\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n switch(_state.label){\n case 0:\n captchaResp = _arguments.length > 3 && _arguments[3] !== void 0 ? _arguments[3] : false;\n verifier = new $f394e9ac486578e6$var$RecaptchaEnterpriseVerifier(auth);\n _state.label = 1;\n case 1:\n _state.trys.push([\n 1,\n 3,\n ,\n 5\n ]);\n return [\n 4,\n verifier.verify(action)\n ];\n case 2:\n captchaResponse = _state.sent();\n return [\n 3,\n 5\n ];\n case 3:\n error = _state.sent();\n return [\n 4,\n verifier.verify(action, true)\n ];\n case 4:\n captchaResponse = _state.sent();\n return [\n 3,\n 5\n ];\n case 5:\n newRequest = Object.assign({}, request);\n if (!captchaResp) Object.assign(newRequest, {\n captchaResponse: captchaResponse\n });\n else Object.assign(newRequest, {\n \"captchaResp\": captchaResponse\n });\n Object.assign(newRequest, {\n \"clientType\": \"CLIENT_TYPE_WEB\" /* RecaptchaClientType.WEB */ \n });\n Object.assign(newRequest, {\n \"recaptchaVersion\": \"RECAPTCHA_ENTERPRISE\" /* RecaptchaVersion.ENTERPRISE */ \n });\n return [\n 2,\n newRequest\n ];\n }\n });\n });\n return $f394e9ac486578e6$var$_injectRecaptchaFields.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$var$handleRecaptchaFlow(authInstance, request, actionName, actionMethod) {\n return $f394e9ac486578e6$var$_handleRecaptchaFlow.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$var$_handleRecaptchaFlow() {\n $f394e9ac486578e6$var$_handleRecaptchaFlow = (0, $9167c88d5d99601b$export$7c398597f8905a1)(function(authInstance, request, actionName, actionMethod) {\n var _a, requestWithRecaptcha;\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n switch(_state.label){\n case 0:\n if (!((_a = authInstance._getRecaptchaConfig()) === null || _a === void 0 ? void 0 : _a.isProviderEnabled(\"EMAIL_PASSWORD_PROVIDER\" /* RecaptchaProvider.EMAIL_PASSWORD_PROVIDER */ ))) return [\n 3,\n 2\n ];\n return [\n 4,\n $f394e9ac486578e6$var$injectRecaptchaFields(authInstance, request, actionName, actionName === \"getOobCode\" /* RecaptchaActionName.GET_OOB_CODE */ )\n ];\n case 1:\n requestWithRecaptcha = _state.sent();\n return [\n 2,\n actionMethod(authInstance, requestWithRecaptcha)\n ];\n case 2:\n return [\n 2,\n actionMethod(authInstance, request).catch(function() {\n var _ref = (0, $9167c88d5d99601b$export$7c398597f8905a1)(function(error) {\n var requestWithRecaptcha;\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n switch(_state.label){\n case 0:\n if (!(error.code === \"auth/missing-recaptcha-token\" /* AuthErrorCode.MISSING_RECAPTCHA_TOKEN */ )) return [\n 3,\n 2\n ];\n console.log(\"\".concat(actionName, \" is protected by reCAPTCHA Enterprise for this project. Automatically triggering the reCAPTCHA flow and restarting the flow.\"));\n return [\n 4,\n $f394e9ac486578e6$var$injectRecaptchaFields(authInstance, request, actionName, actionName === \"getOobCode\" /* RecaptchaActionName.GET_OOB_CODE */ )\n ];\n case 1:\n requestWithRecaptcha = _state.sent();\n return [\n 2,\n actionMethod(authInstance, requestWithRecaptcha)\n ];\n case 2:\n return [\n 2,\n Promise.reject(error)\n ];\n case 3:\n return [\n 2\n ];\n }\n });\n });\n return function(error) {\n return _ref.apply(this, arguments);\n };\n }())\n ];\n case 3:\n return [\n 2\n ];\n }\n });\n });\n return $f394e9ac486578e6$var$_handleRecaptchaFlow.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$var$_initializeRecaptchaConfig(auth) {\n return $f394e9ac486578e6$var$__initializeRecaptchaConfig.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$var$__initializeRecaptchaConfig() {\n $f394e9ac486578e6$var$__initializeRecaptchaConfig = (0, $9167c88d5d99601b$export$7c398597f8905a1)(function(auth) {\n var authInternal, response, config, verifier;\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n switch(_state.label){\n case 0:\n authInternal = $f394e9ac486578e6$export$a05254e7c3aeba6e(auth);\n return [\n 4,\n $f394e9ac486578e6$var$getRecaptchaConfig(authInternal, {\n clientType: \"CLIENT_TYPE_WEB\" /* RecaptchaClientType.WEB */ ,\n version: \"RECAPTCHA_ENTERPRISE\" /* RecaptchaVersion.ENTERPRISE */ \n })\n ];\n case 1:\n response = _state.sent();\n config = new $f394e9ac486578e6$var$RecaptchaConfig(response);\n if (authInternal.tenantId == null) authInternal._agentRecaptchaConfig = config;\n else authInternal._tenantRecaptchaConfigs[authInternal.tenantId] = config;\n if (config.isProviderEnabled(\"EMAIL_PASSWORD_PROVIDER\" /* RecaptchaProvider.EMAIL_PASSWORD_PROVIDER */ )) {\n verifier = new $f394e9ac486578e6$var$RecaptchaEnterpriseVerifier(authInternal);\n verifier.verify();\n }\n return [\n 2\n ];\n }\n });\n });\n return $f394e9ac486578e6$var$__initializeRecaptchaConfig.apply(this, arguments);\n}\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */ /**\r\n * Initializes an {@link Auth} instance with fine-grained control over\r\n * {@link Dependencies}.\r\n *\r\n * @remarks\r\n *\r\n * This function allows more control over the {@link Auth} instance than\r\n * {@link getAuth}. `getAuth` uses platform-specific defaults to supply\r\n * the {@link Dependencies}. In general, `getAuth` is the easiest way to\r\n * initialize Auth and works for most use cases. Use `initializeAuth` if you\r\n * need control over which persistence layer is used, or to minimize bundle\r\n * size if you're not using either `signInWithPopup` or `signInWithRedirect`.\r\n *\r\n * For example, if your app only uses anonymous accounts and you only want\r\n * accounts saved for the current session, initialize `Auth` with:\r\n *\r\n * ```js\r\n * const auth = initializeAuth(app, {\r\n * persistence: browserSessionPersistence,\r\n * popupRedirectResolver: undefined,\r\n * });\r\n * ```\r\n *\r\n * @public\r\n */ function $f394e9ac486578e6$export$b4171a6734a65d42(app, deps) {\n var provider = (0, $6801661115945616$export$fa0d6da0f5838f50)(app, \"auth\");\n if (provider.isInitialized()) {\n var auth = provider.getImmediate();\n var initialOptions = provider.getOptions();\n if ((0, $9b50b37fb8824044$export$9cb4719e2e525b7a)(initialOptions, deps !== null && deps !== void 0 ? deps : {})) return auth;\n else $f394e9ac486578e6$export$9fa96a7d116ea3ce(auth, \"already-initialized\" /* AuthErrorCode.ALREADY_INITIALIZED */ );\n }\n var auth1 = provider.initialize({\n options: deps\n });\n return auth1;\n}\nfunction $f394e9ac486578e6$var$_initializeAuthInstance(auth, deps) {\n var persistence = (deps === null || deps === void 0 ? void 0 : deps.persistence) || [];\n var hierarchy = (Array.isArray(persistence) ? persistence : [\n persistence\n ]).map($f394e9ac486578e6$export$158acd800e1ef08b);\n if (deps === null || deps === void 0 ? void 0 : deps.errorMap) auth._updateErrorMap(deps.errorMap);\n // This promise is intended to float; auth initialization happens in the\n // background, meanwhile the auth object may be used by the app.\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\n auth._initializeWithPersistence(hierarchy, deps === null || deps === void 0 ? void 0 : deps.popupRedirectResolver);\n}\n/**\r\n * Changes the {@link Auth} instance to communicate with the Firebase Auth Emulator, instead of production\r\n * Firebase Auth services.\r\n *\r\n * @remarks\r\n * This must be called synchronously immediately following the first call to\r\n * {@link initializeAuth}. Do not use with production credentials as emulator\r\n * traffic is not encrypted.\r\n *\r\n *\r\n * @example\r\n * ```javascript\r\n * connectAuthEmulator(auth, 'http://127.0.0.1:9099', { disableWarnings: true });\r\n * ```\r\n *\r\n * @param auth - The {@link Auth} instance.\r\n * @param url - The URL at which the emulator is running (eg, 'http://localhost:9099').\r\n * @param options - Optional. `options.disableWarnings` defaults to `false`. Set it to\r\n * `true` to disable the warning banner attached to the DOM.\r\n *\r\n * @public\r\n */ function $f394e9ac486578e6$export$3466f893ebf79586(auth, url, options) {\n var authInternal = $f394e9ac486578e6$export$a05254e7c3aeba6e(auth);\n $f394e9ac486578e6$export$890c4ad488842ce7(authInternal._canInitEmulator, authInternal, \"emulator-config-failed\" /* AuthErrorCode.EMULATOR_CONFIG_FAILED */ );\n $f394e9ac486578e6$export$890c4ad488842ce7(/^https?:\\/\\//.test(url), authInternal, \"invalid-emulator-scheme\" /* AuthErrorCode.INVALID_EMULATOR_SCHEME */ );\n var disableWarnings = !!(options === null || options === void 0 ? void 0 : options.disableWarnings);\n var protocol = $f394e9ac486578e6$var$extractProtocol(url);\n var _extractHostAndPort = $f394e9ac486578e6$var$extractHostAndPort(url), host = _extractHostAndPort.host, port = _extractHostAndPort.port;\n var portStr = port === null ? \"\" : \":\".concat(port);\n // Always replace path with \"/\" (even if input url had no path at all, or had a different one).\n authInternal.config.emulator = {\n url: \"\".concat(protocol, \"//\").concat(host).concat(portStr, \"/\")\n };\n authInternal.settings.appVerificationDisabledForTesting = true;\n authInternal.emulatorConfig = Object.freeze({\n host: host,\n port: port,\n protocol: protocol.replace(\":\", \"\"),\n options: Object.freeze({\n disableWarnings: disableWarnings\n })\n });\n if (!disableWarnings) $f394e9ac486578e6$var$emitEmulatorWarning();\n}\nfunction $f394e9ac486578e6$var$extractProtocol(url) {\n var protocolEnd = url.indexOf(\":\");\n return protocolEnd < 0 ? \"\" : url.substr(0, protocolEnd + 1);\n}\nfunction $f394e9ac486578e6$var$extractHostAndPort(url) {\n var protocol = $f394e9ac486578e6$var$extractProtocol(url);\n var authority = /(\\/\\/)?([^?#/]+)/.exec(url.substr(protocol.length)); // Between // and /, ? or #.\n if (!authority) return {\n host: \"\",\n port: null\n };\n var hostAndPort = authority[2].split(\"@\").pop() || \"\"; // Strip out \"username:password@\".\n var bracketedIPv6 = /^(\\[[^\\]]+\\])(:|$)/.exec(hostAndPort);\n if (bracketedIPv6) {\n var host = bracketedIPv6[1];\n return {\n host: host,\n port: $f394e9ac486578e6$var$parsePort(hostAndPort.substr(host.length + 1))\n };\n } else {\n var _hostAndPort_split = (0, $6e952d66071d1a0a$export$fdf2a89c76341bbf)(hostAndPort.split(\":\"), 2), host1 = _hostAndPort_split[0], port = _hostAndPort_split[1];\n return {\n host: host1,\n port: $f394e9ac486578e6$var$parsePort(port)\n };\n }\n}\nfunction $f394e9ac486578e6$var$parsePort(portStr) {\n if (!portStr) return null;\n var port = Number(portStr);\n if (isNaN(port)) return null;\n return port;\n}\nfunction $f394e9ac486578e6$var$emitEmulatorWarning() {\n function attachBanner() {\n var el = document.createElement(\"p\");\n var sty = el.style;\n el.innerText = \"Running in emulator mode. Do not use with production credentials.\";\n sty.position = \"fixed\";\n sty.width = \"100%\";\n sty.backgroundColor = \"#ffffff\";\n sty.border = \".1em solid #000000\";\n sty.color = \"#b50000\";\n sty.bottom = \"0px\";\n sty.left = \"0px\";\n sty.margin = \"0px\";\n sty.zIndex = \"10000\";\n sty.textAlign = \"center\";\n el.classList.add(\"firebase-emulator-warning\");\n document.body.appendChild(el);\n }\n if (typeof console !== \"undefined\" && typeof console.info === \"function\") console.info(\"WARNING: You are using the Auth Emulator, which is intended for local testing only. Do not use with production credentials.\");\n if (typeof window !== \"undefined\" && typeof document !== \"undefined\") {\n if (document.readyState === \"loading\") window.addEventListener(\"DOMContentLoaded\", attachBanner);\n else attachBanner();\n }\n}\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */ /**\r\n * Interface that represents the credentials returned by an {@link AuthProvider}.\r\n *\r\n * @remarks\r\n * Implementations specify the details about each auth provider's credential requirements.\r\n *\r\n * @public\r\n */ var $f394e9ac486578e6$export$61196ced6d74a310 = /*#__PURE__*/ function() {\n \"use strict\";\n function AuthCredential(/**\r\n * The authentication provider ID for the credential.\r\n *\r\n * @remarks\r\n * For example, 'facebook.com', or 'google.com'.\r\n */ providerId, /**\r\n * The authentication sign in method for the credential.\r\n *\r\n * @remarks\r\n * For example, {@link SignInMethod}.EMAIL_PASSWORD, or\r\n * {@link SignInMethod}.EMAIL_LINK. This corresponds to the sign-in method\r\n * identifier as returned in {@link fetchSignInMethodsForEmail}.\r\n */ signInMethod) {\n (0, $0c3f79e99c83f58f$export$2996f80ef42b8419)(this, AuthCredential);\n this.providerId = providerId;\n this.signInMethod = signInMethod;\n }\n (0, $a27186eefd8c4b26$export$d60067ff2358eee8)(AuthCredential, [\n {\n /**\r\n * Returns a JSON-serializable representation of this object.\r\n *\r\n * @returns a JSON-serializable representation of this object.\r\n */ key: \"toJSON\",\n value: function toJSON() {\n return $f394e9ac486578e6$var$debugFail(\"not implemented\");\n }\n },\n {\n /** @internal */ key: \"_getIdTokenResponse\",\n value: function _getIdTokenResponse(_auth) {\n return $f394e9ac486578e6$var$debugFail(\"not implemented\");\n }\n },\n {\n /** @internal */ key: \"_linkToIdToken\",\n value: function _linkToIdToken(_auth, _idToken) {\n return $f394e9ac486578e6$var$debugFail(\"not implemented\");\n }\n },\n {\n /** @internal */ key: \"_getReauthenticationResolver\",\n value: function _getReauthenticationResolver(_auth) {\n return $f394e9ac486578e6$var$debugFail(\"not implemented\");\n }\n }\n ]);\n return AuthCredential;\n}();\nfunction $f394e9ac486578e6$var$resetPassword(auth, request) {\n return $f394e9ac486578e6$var$_resetPassword.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$var$_resetPassword() {\n $f394e9ac486578e6$var$_resetPassword = /**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */ (0, $9167c88d5d99601b$export$7c398597f8905a1)(function(auth, request) {\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n return [\n 2,\n $f394e9ac486578e6$var$_performApiRequest(auth, \"POST\" /* HttpMethod.POST */ , \"/v1/accounts:resetPassword\" /* Endpoint.RESET_PASSWORD */ , $f394e9ac486578e6$var$_addTidIfNecessary(auth, request))\n ];\n });\n });\n return $f394e9ac486578e6$var$_resetPassword.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$var$updateEmailPassword(auth, request) {\n return $f394e9ac486578e6$var$_updateEmailPassword.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$var$_updateEmailPassword() {\n $f394e9ac486578e6$var$_updateEmailPassword = (0, $9167c88d5d99601b$export$7c398597f8905a1)(function(auth, request) {\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n return [\n 2,\n $f394e9ac486578e6$var$_performApiRequest(auth, \"POST\" /* HttpMethod.POST */ , \"/v1/accounts:update\" /* Endpoint.SET_ACCOUNT_INFO */ , request)\n ];\n });\n });\n return $f394e9ac486578e6$var$_updateEmailPassword.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$var$linkEmailPassword(auth, request) {\n return $f394e9ac486578e6$var$_linkEmailPassword.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$var$_linkEmailPassword() {\n $f394e9ac486578e6$var$_linkEmailPassword = // Used for linking an email/password account to an existing idToken. Uses the same request/response\n // format as updateEmailPassword.\n (0, $9167c88d5d99601b$export$7c398597f8905a1)(function(auth, request) {\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n return [\n 2,\n $f394e9ac486578e6$var$_performApiRequest(auth, \"POST\" /* HttpMethod.POST */ , \"/v1/accounts:signUp\" /* Endpoint.SIGN_UP */ , request)\n ];\n });\n });\n return $f394e9ac486578e6$var$_linkEmailPassword.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$var$applyActionCode$1(auth, request) {\n return $f394e9ac486578e6$var$_applyActionCode$1.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$var$_applyActionCode$1() {\n $f394e9ac486578e6$var$_applyActionCode$1 = (0, $9167c88d5d99601b$export$7c398597f8905a1)(function(auth, request) {\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n return [\n 2,\n $f394e9ac486578e6$var$_performApiRequest(auth, \"POST\" /* HttpMethod.POST */ , \"/v1/accounts:update\" /* Endpoint.SET_ACCOUNT_INFO */ , $f394e9ac486578e6$var$_addTidIfNecessary(auth, request))\n ];\n });\n });\n return $f394e9ac486578e6$var$_applyActionCode$1.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$var$signInWithPassword(auth, request) {\n return $f394e9ac486578e6$var$_signInWithPassword.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$var$_signInWithPassword() {\n $f394e9ac486578e6$var$_signInWithPassword = /**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */ (0, $9167c88d5d99601b$export$7c398597f8905a1)(function(auth, request) {\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n return [\n 2,\n $f394e9ac486578e6$var$_performSignInRequest(auth, \"POST\" /* HttpMethod.POST */ , \"/v1/accounts:signInWithPassword\" /* Endpoint.SIGN_IN_WITH_PASSWORD */ , $f394e9ac486578e6$var$_addTidIfNecessary(auth, request))\n ];\n });\n });\n return $f394e9ac486578e6$var$_signInWithPassword.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$var$sendOobCode(auth, request) {\n return $f394e9ac486578e6$var$_sendOobCode.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$var$_sendOobCode() {\n $f394e9ac486578e6$var$_sendOobCode = (0, $9167c88d5d99601b$export$7c398597f8905a1)(function(auth, request) {\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n return [\n 2,\n $f394e9ac486578e6$var$_performApiRequest(auth, \"POST\" /* HttpMethod.POST */ , \"/v1/accounts:sendOobCode\" /* Endpoint.SEND_OOB_CODE */ , $f394e9ac486578e6$var$_addTidIfNecessary(auth, request))\n ];\n });\n });\n return $f394e9ac486578e6$var$_sendOobCode.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$var$sendEmailVerification$1(auth, request) {\n return $f394e9ac486578e6$var$_sendEmailVerification$1.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$var$_sendEmailVerification$1() {\n $f394e9ac486578e6$var$_sendEmailVerification$1 = (0, $9167c88d5d99601b$export$7c398597f8905a1)(function(auth, request) {\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n return [\n 2,\n $f394e9ac486578e6$var$sendOobCode(auth, request)\n ];\n });\n });\n return $f394e9ac486578e6$var$_sendEmailVerification$1.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$var$sendPasswordResetEmail$1(auth, request) {\n return $f394e9ac486578e6$var$_sendPasswordResetEmail$1.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$var$_sendPasswordResetEmail$1() {\n $f394e9ac486578e6$var$_sendPasswordResetEmail$1 = (0, $9167c88d5d99601b$export$7c398597f8905a1)(function(auth, request) {\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n return [\n 2,\n $f394e9ac486578e6$var$sendOobCode(auth, request)\n ];\n });\n });\n return $f394e9ac486578e6$var$_sendPasswordResetEmail$1.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$var$sendSignInLinkToEmail$1(auth, request) {\n return $f394e9ac486578e6$var$_sendSignInLinkToEmail$1.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$var$_sendSignInLinkToEmail$1() {\n $f394e9ac486578e6$var$_sendSignInLinkToEmail$1 = (0, $9167c88d5d99601b$export$7c398597f8905a1)(function(auth, request) {\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n return [\n 2,\n $f394e9ac486578e6$var$sendOobCode(auth, request)\n ];\n });\n });\n return $f394e9ac486578e6$var$_sendSignInLinkToEmail$1.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$var$verifyAndChangeEmail(auth, request) {\n return $f394e9ac486578e6$var$_verifyAndChangeEmail.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$var$_verifyAndChangeEmail() {\n $f394e9ac486578e6$var$_verifyAndChangeEmail = (0, $9167c88d5d99601b$export$7c398597f8905a1)(function(auth, request) {\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n return [\n 2,\n $f394e9ac486578e6$var$sendOobCode(auth, request)\n ];\n });\n });\n return $f394e9ac486578e6$var$_verifyAndChangeEmail.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$var$signInWithEmailLink$1(auth, request) {\n return $f394e9ac486578e6$var$_signInWithEmailLink$1.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$var$_signInWithEmailLink$1() {\n $f394e9ac486578e6$var$_signInWithEmailLink$1 = /**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */ (0, $9167c88d5d99601b$export$7c398597f8905a1)(function(auth, request) {\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n return [\n 2,\n $f394e9ac486578e6$var$_performSignInRequest(auth, \"POST\" /* HttpMethod.POST */ , \"/v1/accounts:signInWithEmailLink\" /* Endpoint.SIGN_IN_WITH_EMAIL_LINK */ , $f394e9ac486578e6$var$_addTidIfNecessary(auth, request))\n ];\n });\n });\n return $f394e9ac486578e6$var$_signInWithEmailLink$1.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$var$signInWithEmailLinkForLinking(auth, request) {\n return $f394e9ac486578e6$var$_signInWithEmailLinkForLinking.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$var$_signInWithEmailLinkForLinking() {\n $f394e9ac486578e6$var$_signInWithEmailLinkForLinking = (0, $9167c88d5d99601b$export$7c398597f8905a1)(function(auth, request) {\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n return [\n 2,\n $f394e9ac486578e6$var$_performSignInRequest(auth, \"POST\" /* HttpMethod.POST */ , \"/v1/accounts:signInWithEmailLink\" /* Endpoint.SIGN_IN_WITH_EMAIL_LINK */ , $f394e9ac486578e6$var$_addTidIfNecessary(auth, request))\n ];\n });\n });\n return $f394e9ac486578e6$var$_signInWithEmailLinkForLinking.apply(this, arguments);\n}\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */ /**\r\n * Interface that represents the credentials returned by {@link EmailAuthProvider} for\r\n * {@link ProviderId}.PASSWORD\r\n *\r\n * @remarks\r\n * Covers both {@link SignInMethod}.EMAIL_PASSWORD and\r\n * {@link SignInMethod}.EMAIL_LINK.\r\n *\r\n * @public\r\n */ var $f394e9ac486578e6$export$3a1a48c8f6ef640e = /*#__PURE__*/ function(AuthCredential) {\n \"use strict\";\n (0, $a3fe9d9bda1cd86f$export$7e4530ad35d3bb8)(EmailAuthCredential, AuthCredential);\n var _super = (0, $60ddfe51b57fdc13$export$8dd05c13f5255580)(EmailAuthCredential);\n function EmailAuthCredential(/** @internal */ _email, /** @internal */ _password, signInMethod) {\n var /** @internal */ _tenantId = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : null;\n (0, $0c3f79e99c83f58f$export$2996f80ef42b8419)(this, EmailAuthCredential);\n var _this;\n _this = _super.call(this, \"password\" /* ProviderId.PASSWORD */ , signInMethod);\n _this._email = _email;\n _this._password = _password;\n _this._tenantId = _tenantId;\n return _this;\n }\n (0, $a27186eefd8c4b26$export$d60067ff2358eee8)(EmailAuthCredential, [\n {\n /** {@inheritdoc AuthCredential.toJSON} */ key: \"toJSON\",\n value: function toJSON() {\n return {\n email: this._email,\n password: this._password,\n signInMethod: this.signInMethod,\n tenantId: this._tenantId\n };\n }\n },\n {\n key: \"_getIdTokenResponse\",\n value: /** @internal */ function _getIdTokenResponse(auth) {\n var _this = this;\n return (0, $9167c88d5d99601b$export$7c398597f8905a1)(function() {\n var request;\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n switch(_this.signInMethod){\n case \"password\" /* SignInMethod.EMAIL_PASSWORD */ :\n request = {\n returnSecureToken: true,\n email: _this._email,\n password: _this._password,\n clientType: \"CLIENT_TYPE_WEB\" /* RecaptchaClientType.WEB */ \n };\n return [\n 2,\n $f394e9ac486578e6$var$handleRecaptchaFlow(auth, request, \"signInWithPassword\" /* RecaptchaActionName.SIGN_IN_WITH_PASSWORD */ , $f394e9ac486578e6$var$signInWithPassword)\n ];\n case \"emailLink\" /* SignInMethod.EMAIL_LINK */ :\n return [\n 2,\n $f394e9ac486578e6$var$signInWithEmailLink$1(auth, {\n email: _this._email,\n oobCode: _this._password\n })\n ];\n default:\n $f394e9ac486578e6$export$9fa96a7d116ea3ce(auth, \"internal-error\" /* AuthErrorCode.INTERNAL_ERROR */ );\n }\n return [\n 2\n ];\n });\n })();\n }\n },\n {\n key: \"_linkToIdToken\",\n value: /** @internal */ function _linkToIdToken(auth, idToken) {\n var _this = this;\n return (0, $9167c88d5d99601b$export$7c398597f8905a1)(function() {\n var request;\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n switch(_this.signInMethod){\n case \"password\" /* SignInMethod.EMAIL_PASSWORD */ :\n request = {\n idToken: idToken,\n returnSecureToken: true,\n email: _this._email,\n password: _this._password,\n clientType: \"CLIENT_TYPE_WEB\" /* RecaptchaClientType.WEB */ \n };\n return [\n 2,\n $f394e9ac486578e6$var$handleRecaptchaFlow(auth, request, \"signUpPassword\" /* RecaptchaActionName.SIGN_UP_PASSWORD */ , $f394e9ac486578e6$var$linkEmailPassword)\n ];\n case \"emailLink\" /* SignInMethod.EMAIL_LINK */ :\n return [\n 2,\n $f394e9ac486578e6$var$signInWithEmailLinkForLinking(auth, {\n idToken: idToken,\n email: _this._email,\n oobCode: _this._password\n })\n ];\n default:\n $f394e9ac486578e6$export$9fa96a7d116ea3ce(auth, \"internal-error\" /* AuthErrorCode.INTERNAL_ERROR */ );\n }\n return [\n 2\n ];\n });\n })();\n }\n },\n {\n /** @internal */ key: \"_getReauthenticationResolver\",\n value: function _getReauthenticationResolver(auth) {\n return this._getIdTokenResponse(auth);\n }\n }\n ], [\n {\n key: \"_fromEmailAndPassword\",\n value: /** @internal */ function _fromEmailAndPassword(email, password) {\n return new EmailAuthCredential(email, password, \"password\" /* SignInMethod.EMAIL_PASSWORD */ );\n }\n },\n {\n key: \"_fromEmailAndCode\",\n value: /** @internal */ function _fromEmailAndCode(email, oobCode) {\n var tenantId = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null;\n return new EmailAuthCredential(email, oobCode, \"emailLink\" /* SignInMethod.EMAIL_LINK */ , tenantId);\n }\n },\n {\n key: \"fromJSON\",\n value: /**\r\n * Static method to deserialize a JSON representation of an object into an {@link AuthCredential}.\r\n *\r\n * @param json - Either `object` or the stringified representation of the object. When string is\r\n * provided, `JSON.parse` would be called first.\r\n *\r\n * @returns If the JSON input does not represent an {@link AuthCredential}, null is returned.\r\n */ function fromJSON(json) {\n var obj = typeof json === \"string\" ? JSON.parse(json) : json;\n if ((obj === null || obj === void 0 ? void 0 : obj.email) && (obj === null || obj === void 0 ? void 0 : obj.password)) {\n if (obj.signInMethod === \"password\" /* SignInMethod.EMAIL_PASSWORD */ ) return this._fromEmailAndPassword(obj.email, obj.password);\n else if (obj.signInMethod === \"emailLink\" /* SignInMethod.EMAIL_LINK */ ) return this._fromEmailAndCode(obj.email, obj.password, obj.tenantId);\n }\n return null;\n }\n }\n ]);\n return EmailAuthCredential;\n}($f394e9ac486578e6$export$61196ced6d74a310);\nfunction $f394e9ac486578e6$var$signInWithIdp(auth, request) {\n return $f394e9ac486578e6$var$_signInWithIdp.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$var$_signInWithIdp() {\n $f394e9ac486578e6$var$_signInWithIdp = /**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */ (0, $9167c88d5d99601b$export$7c398597f8905a1)(function(auth, request) {\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n return [\n 2,\n $f394e9ac486578e6$var$_performSignInRequest(auth, \"POST\" /* HttpMethod.POST */ , \"/v1/accounts:signInWithIdp\" /* Endpoint.SIGN_IN_WITH_IDP */ , $f394e9ac486578e6$var$_addTidIfNecessary(auth, request))\n ];\n });\n });\n return $f394e9ac486578e6$var$_signInWithIdp.apply(this, arguments);\n}\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */ var $f394e9ac486578e6$var$IDP_REQUEST_URI$1 = \"http://localhost\";\n/**\r\n * Represents the OAuth credentials returned by an {@link OAuthProvider}.\r\n *\r\n * @remarks\r\n * Implementations specify the details about each auth provider's credential requirements.\r\n *\r\n * @public\r\n */ var $f394e9ac486578e6$export$a07804094c3ecf2d = /*#__PURE__*/ function(AuthCredential) {\n \"use strict\";\n (0, $a3fe9d9bda1cd86f$export$7e4530ad35d3bb8)(OAuthCredential, AuthCredential);\n var _super = (0, $60ddfe51b57fdc13$export$8dd05c13f5255580)(OAuthCredential);\n function OAuthCredential() {\n (0, $0c3f79e99c83f58f$export$2996f80ef42b8419)(this, OAuthCredential);\n var _this;\n _this = _super.call.apply(_super, [\n this\n ].concat(Array.prototype.slice.call(arguments)));\n _this.pendingToken = null;\n return _this;\n }\n (0, $a27186eefd8c4b26$export$d60067ff2358eee8)(OAuthCredential, [\n {\n /** {@inheritdoc AuthCredential.toJSON} */ key: \"toJSON\",\n value: function toJSON() {\n return {\n idToken: this.idToken,\n accessToken: this.accessToken,\n secret: this.secret,\n nonce: this.nonce,\n pendingToken: this.pendingToken,\n providerId: this.providerId,\n signInMethod: this.signInMethod\n };\n }\n },\n {\n /** @internal */ key: \"_getIdTokenResponse\",\n value: function _getIdTokenResponse(auth) {\n var request = this.buildRequest();\n return $f394e9ac486578e6$var$signInWithIdp(auth, request);\n }\n },\n {\n /** @internal */ key: \"_linkToIdToken\",\n value: function _linkToIdToken(auth, idToken) {\n var request = this.buildRequest();\n request.idToken = idToken;\n return $f394e9ac486578e6$var$signInWithIdp(auth, request);\n }\n },\n {\n /** @internal */ key: \"_getReauthenticationResolver\",\n value: function _getReauthenticationResolver(auth) {\n var request = this.buildRequest();\n request.autoCreate = false;\n return $f394e9ac486578e6$var$signInWithIdp(auth, request);\n }\n },\n {\n key: \"buildRequest\",\n value: function buildRequest() {\n var request = {\n requestUri: $f394e9ac486578e6$var$IDP_REQUEST_URI$1,\n returnSecureToken: true\n };\n if (this.pendingToken) request.pendingToken = this.pendingToken;\n else {\n var postBody = {};\n if (this.idToken) postBody[\"id_token\"] = this.idToken;\n if (this.accessToken) postBody[\"access_token\"] = this.accessToken;\n if (this.secret) postBody[\"oauth_token_secret\"] = this.secret;\n postBody[\"providerId\"] = this.providerId;\n if (this.nonce && !this.pendingToken) postBody[\"nonce\"] = this.nonce;\n request.postBody = (0, $9b50b37fb8824044$export$ac4103b836844853)(postBody);\n }\n return request;\n }\n }\n ], [\n {\n key: \"_fromParams\",\n value: /** @internal */ function _fromParams(params) {\n var cred = new OAuthCredential(params.providerId, params.signInMethod);\n if (params.idToken || params.accessToken) {\n // OAuth 2 and either ID token or access token.\n if (params.idToken) cred.idToken = params.idToken;\n if (params.accessToken) cred.accessToken = params.accessToken;\n // Add nonce if available and no pendingToken is present.\n if (params.nonce && !params.pendingToken) cred.nonce = params.nonce;\n if (params.pendingToken) cred.pendingToken = params.pendingToken;\n } else if (params.oauthToken && params.oauthTokenSecret) {\n // OAuth 1 and OAuth token with token secret\n cred.accessToken = params.oauthToken;\n cred.secret = params.oauthTokenSecret;\n } else $f394e9ac486578e6$export$9fa96a7d116ea3ce(\"argument-error\" /* AuthErrorCode.ARGUMENT_ERROR */ );\n return cred;\n }\n },\n {\n key: \"fromJSON\",\n value: /**\r\n * Static method to deserialize a JSON representation of an object into an\r\n * {@link AuthCredential}.\r\n *\r\n * @param json - Input can be either Object or the stringified representation of the object.\r\n * When string is provided, JSON.parse would be called first.\r\n *\r\n * @returns If the JSON input does not represent an {@link AuthCredential}, null is returned.\r\n */ function fromJSON(json) {\n var obj = typeof json === \"string\" ? JSON.parse(json) : json;\n var providerId = obj.providerId, signInMethod = obj.signInMethod, rest = (0, $f6e09fca77e332f0$export$3c9a16f847548506)(obj, [\n \"providerId\",\n \"signInMethod\"\n ]);\n if (!providerId || !signInMethod) return null;\n var cred = new OAuthCredential(providerId, signInMethod);\n cred.idToken = rest.idToken || undefined;\n cred.accessToken = rest.accessToken || undefined;\n cred.secret = rest.secret;\n cred.nonce = rest.nonce;\n cred.pendingToken = rest.pendingToken || null;\n return cred;\n }\n }\n ]);\n return OAuthCredential;\n}($f394e9ac486578e6$export$61196ced6d74a310);\nfunction $f394e9ac486578e6$var$sendPhoneVerificationCode(auth, request) {\n return $f394e9ac486578e6$var$_sendPhoneVerificationCode.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$var$_sendPhoneVerificationCode() {\n $f394e9ac486578e6$var$_sendPhoneVerificationCode = /**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */ (0, $9167c88d5d99601b$export$7c398597f8905a1)(function(auth, request) {\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n return [\n 2,\n $f394e9ac486578e6$var$_performApiRequest(auth, \"POST\" /* HttpMethod.POST */ , \"/v1/accounts:sendVerificationCode\" /* Endpoint.SEND_VERIFICATION_CODE */ , $f394e9ac486578e6$var$_addTidIfNecessary(auth, request))\n ];\n });\n });\n return $f394e9ac486578e6$var$_sendPhoneVerificationCode.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$var$signInWithPhoneNumber$1(auth, request) {\n return $f394e9ac486578e6$var$_signInWithPhoneNumber$1.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$var$_signInWithPhoneNumber$1() {\n $f394e9ac486578e6$var$_signInWithPhoneNumber$1 = (0, $9167c88d5d99601b$export$7c398597f8905a1)(function(auth, request) {\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n return [\n 2,\n $f394e9ac486578e6$var$_performSignInRequest(auth, \"POST\" /* HttpMethod.POST */ , \"/v1/accounts:signInWithPhoneNumber\" /* Endpoint.SIGN_IN_WITH_PHONE_NUMBER */ , $f394e9ac486578e6$var$_addTidIfNecessary(auth, request))\n ];\n });\n });\n return $f394e9ac486578e6$var$_signInWithPhoneNumber$1.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$var$linkWithPhoneNumber$1(auth, request) {\n return $f394e9ac486578e6$var$_linkWithPhoneNumber$1.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$var$_linkWithPhoneNumber$1() {\n $f394e9ac486578e6$var$_linkWithPhoneNumber$1 = (0, $9167c88d5d99601b$export$7c398597f8905a1)(function(auth, request) {\n var response;\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n switch(_state.label){\n case 0:\n return [\n 4,\n $f394e9ac486578e6$var$_performSignInRequest(auth, \"POST\" /* HttpMethod.POST */ , \"/v1/accounts:signInWithPhoneNumber\" /* Endpoint.SIGN_IN_WITH_PHONE_NUMBER */ , $f394e9ac486578e6$var$_addTidIfNecessary(auth, request))\n ];\n case 1:\n response = _state.sent();\n if (response.temporaryProof) throw $f394e9ac486578e6$var$_makeTaggedError(auth, \"account-exists-with-different-credential\" /* AuthErrorCode.NEED_CONFIRMATION */ , response);\n return [\n 2,\n response\n ];\n }\n });\n });\n return $f394e9ac486578e6$var$_linkWithPhoneNumber$1.apply(this, arguments);\n}\nvar $f394e9ac486578e6$var$VERIFY_PHONE_NUMBER_FOR_EXISTING_ERROR_MAP_ = (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)({}, \"USER_NOT_FOUND\" /* ServerError.USER_NOT_FOUND */ , \"user-not-found\" /* AuthErrorCode.USER_DELETED */ );\nfunction $f394e9ac486578e6$var$verifyPhoneNumberForExisting(auth, request) {\n return $f394e9ac486578e6$var$_verifyPhoneNumberForExisting.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$var$_verifyPhoneNumberForExisting() {\n $f394e9ac486578e6$var$_verifyPhoneNumberForExisting = (0, $9167c88d5d99601b$export$7c398597f8905a1)(function(auth, request) {\n var apiRequest;\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n apiRequest = Object.assign(Object.assign({}, request), {\n operation: \"REAUTH\"\n });\n return [\n 2,\n $f394e9ac486578e6$var$_performSignInRequest(auth, \"POST\" /* HttpMethod.POST */ , \"/v1/accounts:signInWithPhoneNumber\" /* Endpoint.SIGN_IN_WITH_PHONE_NUMBER */ , $f394e9ac486578e6$var$_addTidIfNecessary(auth, apiRequest), $f394e9ac486578e6$var$VERIFY_PHONE_NUMBER_FOR_EXISTING_ERROR_MAP_)\n ];\n });\n });\n return $f394e9ac486578e6$var$_verifyPhoneNumberForExisting.apply(this, arguments);\n}\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */ /**\r\n * Represents the credentials returned by {@link PhoneAuthProvider}.\r\n *\r\n * @public\r\n */ var $f394e9ac486578e6$export$3722cfe417b6ed86 = /*#__PURE__*/ function(AuthCredential) {\n \"use strict\";\n (0, $a3fe9d9bda1cd86f$export$7e4530ad35d3bb8)(PhoneAuthCredential, AuthCredential);\n var _super = (0, $60ddfe51b57fdc13$export$8dd05c13f5255580)(PhoneAuthCredential);\n function PhoneAuthCredential(params) {\n (0, $0c3f79e99c83f58f$export$2996f80ef42b8419)(this, PhoneAuthCredential);\n var _this;\n _this = _super.call(this, \"phone\" /* ProviderId.PHONE */ , \"phone\" /* SignInMethod.PHONE */ );\n _this.params = params;\n return _this;\n }\n (0, $a27186eefd8c4b26$export$d60067ff2358eee8)(PhoneAuthCredential, [\n {\n /** @internal */ key: \"_getIdTokenResponse\",\n value: function _getIdTokenResponse(auth) {\n return $f394e9ac486578e6$var$signInWithPhoneNumber$1(auth, this._makeVerificationRequest());\n }\n },\n {\n /** @internal */ key: \"_linkToIdToken\",\n value: function _linkToIdToken(auth, idToken) {\n return $f394e9ac486578e6$var$linkWithPhoneNumber$1(auth, Object.assign({\n idToken: idToken\n }, this._makeVerificationRequest()));\n }\n },\n {\n /** @internal */ key: \"_getReauthenticationResolver\",\n value: function _getReauthenticationResolver(auth) {\n return $f394e9ac486578e6$var$verifyPhoneNumberForExisting(auth, this._makeVerificationRequest());\n }\n },\n {\n /** @internal */ key: \"_makeVerificationRequest\",\n value: function _makeVerificationRequest() {\n var _this_params = this.params, temporaryProof = _this_params.temporaryProof, phoneNumber = _this_params.phoneNumber, verificationId = _this_params.verificationId, verificationCode = _this_params.verificationCode;\n if (temporaryProof && phoneNumber) return {\n temporaryProof: temporaryProof,\n phoneNumber: phoneNumber\n };\n return {\n sessionInfo: verificationId,\n code: verificationCode\n };\n }\n },\n {\n /** {@inheritdoc AuthCredential.toJSON} */ key: \"toJSON\",\n value: function toJSON() {\n var obj = {\n providerId: this.providerId\n };\n if (this.params.phoneNumber) obj.phoneNumber = this.params.phoneNumber;\n if (this.params.temporaryProof) obj.temporaryProof = this.params.temporaryProof;\n if (this.params.verificationCode) obj.verificationCode = this.params.verificationCode;\n if (this.params.verificationId) obj.verificationId = this.params.verificationId;\n return obj;\n }\n }\n ], [\n {\n key: \"_fromVerification\",\n value: /** @internal */ function _fromVerification(verificationId, verificationCode) {\n return new PhoneAuthCredential({\n verificationId: verificationId,\n verificationCode: verificationCode\n });\n }\n },\n {\n key: \"_fromTokenResponse\",\n value: /** @internal */ function _fromTokenResponse(phoneNumber, temporaryProof) {\n return new PhoneAuthCredential({\n phoneNumber: phoneNumber,\n temporaryProof: temporaryProof\n });\n }\n },\n {\n key: \"fromJSON\",\n value: /** Generates a phone credential based on a plain object or a JSON string. */ function fromJSON(json) {\n if (typeof json === \"string\") json = JSON.parse(json);\n var verificationId = json.verificationId, verificationCode = json.verificationCode, phoneNumber = json.phoneNumber, temporaryProof = json.temporaryProof;\n if (!verificationCode && !verificationId && !phoneNumber && !temporaryProof) return null;\n return new PhoneAuthCredential({\n verificationId: verificationId,\n verificationCode: verificationCode,\n phoneNumber: phoneNumber,\n temporaryProof: temporaryProof\n });\n }\n }\n ]);\n return PhoneAuthCredential;\n}($f394e9ac486578e6$export$61196ced6d74a310);\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */ /**\r\n * Maps the mode string in action code URL to Action Code Info operation.\r\n *\r\n * @param mode\r\n */ function $f394e9ac486578e6$var$parseMode(mode) {\n switch(mode){\n case \"recoverEmail\":\n return \"RECOVER_EMAIL\" /* ActionCodeOperation.RECOVER_EMAIL */ ;\n case \"resetPassword\":\n return \"PASSWORD_RESET\" /* ActionCodeOperation.PASSWORD_RESET */ ;\n case \"signIn\":\n return \"EMAIL_SIGNIN\" /* ActionCodeOperation.EMAIL_SIGNIN */ ;\n case \"verifyEmail\":\n return \"VERIFY_EMAIL\" /* ActionCodeOperation.VERIFY_EMAIL */ ;\n case \"verifyAndChangeEmail\":\n return \"VERIFY_AND_CHANGE_EMAIL\" /* ActionCodeOperation.VERIFY_AND_CHANGE_EMAIL */ ;\n case \"revertSecondFactorAddition\":\n return \"REVERT_SECOND_FACTOR_ADDITION\" /* ActionCodeOperation.REVERT_SECOND_FACTOR_ADDITION */ ;\n default:\n return null;\n }\n}\n/**\r\n * Helper to parse FDL links\r\n *\r\n * @param url\r\n */ function $f394e9ac486578e6$var$parseDeepLink(url) {\n var link = (0, $9b50b37fb8824044$export$c1271ca4c8a70741)((0, $9b50b37fb8824044$export$1a8408415472d8ed)(url))[\"link\"];\n // Double link case (automatic redirect).\n var doubleDeepLink = link ? (0, $9b50b37fb8824044$export$c1271ca4c8a70741)((0, $9b50b37fb8824044$export$1a8408415472d8ed)(link))[\"deep_link_id\"] : null;\n // iOS custom scheme links.\n var iOSDeepLink = (0, $9b50b37fb8824044$export$c1271ca4c8a70741)((0, $9b50b37fb8824044$export$1a8408415472d8ed)(url))[\"deep_link_id\"];\n var iOSDoubleDeepLink = iOSDeepLink ? (0, $9b50b37fb8824044$export$c1271ca4c8a70741)((0, $9b50b37fb8824044$export$1a8408415472d8ed)(iOSDeepLink))[\"link\"] : null;\n return iOSDoubleDeepLink || iOSDeepLink || doubleDeepLink || link || url;\n}\n/**\r\n * A utility class to parse email action URLs such as password reset, email verification,\r\n * email link sign in, etc.\r\n *\r\n * @public\r\n */ var $f394e9ac486578e6$export$f38c853ae54ed474 = /*#__PURE__*/ function() {\n \"use strict\";\n function ActionCodeURL(actionLink) {\n (0, $0c3f79e99c83f58f$export$2996f80ef42b8419)(this, ActionCodeURL);\n var _a, _b, _c, _d, _e, _f;\n var searchParams = (0, $9b50b37fb8824044$export$c1271ca4c8a70741)((0, $9b50b37fb8824044$export$1a8408415472d8ed)(actionLink));\n var apiKey = (_a = searchParams[\"apiKey\" /* QueryField.API_KEY */ ]) !== null && _a !== void 0 ? _a : null;\n var code = (_b = searchParams[\"oobCode\" /* QueryField.CODE */ ]) !== null && _b !== void 0 ? _b : null;\n var operation = $f394e9ac486578e6$var$parseMode((_c = searchParams[\"mode\" /* QueryField.MODE */ ]) !== null && _c !== void 0 ? _c : null);\n // Validate API key, code and mode.\n $f394e9ac486578e6$export$890c4ad488842ce7(apiKey && code && operation, \"argument-error\" /* AuthErrorCode.ARGUMENT_ERROR */ );\n this.apiKey = apiKey;\n this.operation = operation;\n this.code = code;\n this.continueUrl = (_d = searchParams[\"continueUrl\" /* QueryField.CONTINUE_URL */ ]) !== null && _d !== void 0 ? _d : null;\n this.languageCode = (_e = searchParams[\"languageCode\" /* QueryField.LANGUAGE_CODE */ ]) !== null && _e !== void 0 ? _e : null;\n this.tenantId = (_f = searchParams[\"tenantId\" /* QueryField.TENANT_ID */ ]) !== null && _f !== void 0 ? _f : null;\n }\n (0, $a27186eefd8c4b26$export$d60067ff2358eee8)(ActionCodeURL, null, [\n {\n key: \"parseLink\",\n value: /**\r\n * Parses the email action link string and returns an {@link ActionCodeURL} if the link is valid,\r\n * otherwise returns null.\r\n *\r\n * @param link - The email action link string.\r\n * @returns The {@link ActionCodeURL} object, or null if the link is invalid.\r\n *\r\n * @public\r\n */ function parseLink(link) {\n var actionLink = $f394e9ac486578e6$var$parseDeepLink(link);\n try {\n return new ActionCodeURL(actionLink);\n } catch (_a) {\n return null;\n }\n }\n }\n ]);\n return ActionCodeURL;\n}();\n/**\r\n * Parses the email action link string and returns an {@link ActionCodeURL} if\r\n * the link is valid, otherwise returns null.\r\n *\r\n * @public\r\n */ function $f394e9ac486578e6$export$3b513254972cfc9c(link) {\n return $f394e9ac486578e6$export$f38c853ae54ed474.parseLink(link);\n}\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */ /**\r\n * Provider for generating {@link EmailAuthCredential}.\r\n *\r\n * @public\r\n */ var $f394e9ac486578e6$export$e7c866399fa523f5 = /*#__PURE__*/ function() {\n \"use strict\";\n function EmailAuthProvider() {\n (0, $0c3f79e99c83f58f$export$2996f80ef42b8419)(this, EmailAuthProvider);\n /**\r\n * Always set to {@link ProviderId}.PASSWORD, even for email link.\r\n */ this.providerId = EmailAuthProvider.PROVIDER_ID;\n }\n (0, $a27186eefd8c4b26$export$d60067ff2358eee8)(EmailAuthProvider, null, [\n {\n key: \"credential\",\n value: /**\r\n * Initialize an {@link AuthCredential} using an email and password.\r\n *\r\n * @example\r\n * ```javascript\r\n * const authCredential = EmailAuthProvider.credential(email, password);\r\n * const userCredential = await signInWithCredential(auth, authCredential);\r\n * ```\r\n *\r\n * @example\r\n * ```javascript\r\n * const userCredential = await signInWithEmailAndPassword(auth, email, password);\r\n * ```\r\n *\r\n * @param email - Email address.\r\n * @param password - User account password.\r\n * @returns The auth provider credential.\r\n */ function credential(email, password) {\n return $f394e9ac486578e6$export$3a1a48c8f6ef640e._fromEmailAndPassword(email, password);\n }\n },\n {\n key: \"credentialWithLink\",\n value: /**\r\n * Initialize an {@link AuthCredential} using an email and an email link after a sign in with\r\n * email link operation.\r\n *\r\n * @example\r\n * ```javascript\r\n * const authCredential = EmailAuthProvider.credentialWithLink(auth, email, emailLink);\r\n * const userCredential = await signInWithCredential(auth, authCredential);\r\n * ```\r\n *\r\n * @example\r\n * ```javascript\r\n * await sendSignInLinkToEmail(auth, email);\r\n * // Obtain emailLink from user.\r\n * const userCredential = await signInWithEmailLink(auth, email, emailLink);\r\n * ```\r\n *\r\n * @param auth - The {@link Auth} instance used to verify the link.\r\n * @param email - Email address.\r\n * @param emailLink - Sign-in email link.\r\n * @returns - The auth provider credential.\r\n */ function credentialWithLink(email, emailLink) {\n var actionCodeUrl = $f394e9ac486578e6$export$f38c853ae54ed474.parseLink(emailLink);\n $f394e9ac486578e6$export$890c4ad488842ce7(actionCodeUrl, \"argument-error\" /* AuthErrorCode.ARGUMENT_ERROR */ );\n return $f394e9ac486578e6$export$3a1a48c8f6ef640e._fromEmailAndCode(email, actionCodeUrl.code, actionCodeUrl.tenantId);\n }\n }\n ]);\n return EmailAuthProvider;\n}();\n/**\r\n * Always set to {@link ProviderId}.PASSWORD, even for email link.\r\n */ $f394e9ac486578e6$export$e7c866399fa523f5.PROVIDER_ID = \"password\" /* ProviderId.PASSWORD */ ;\n/**\r\n * Always set to {@link SignInMethod}.EMAIL_PASSWORD.\r\n */ $f394e9ac486578e6$export$e7c866399fa523f5.EMAIL_PASSWORD_SIGN_IN_METHOD = \"password\" /* SignInMethod.EMAIL_PASSWORD */ ;\n/**\r\n * Always set to {@link SignInMethod}.EMAIL_LINK.\r\n */ $f394e9ac486578e6$export$e7c866399fa523f5.EMAIL_LINK_SIGN_IN_METHOD = \"emailLink\" /* SignInMethod.EMAIL_LINK */ ;\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */ /**\r\n * The base class for all Federated providers (OAuth (including OIDC), SAML).\r\n *\r\n * This class is not meant to be instantiated directly.\r\n *\r\n * @public\r\n */ var $f394e9ac486578e6$var$FederatedAuthProvider = /*#__PURE__*/ function() {\n \"use strict\";\n function FederatedAuthProvider(providerId) {\n (0, $0c3f79e99c83f58f$export$2996f80ef42b8419)(this, FederatedAuthProvider);\n this.providerId = providerId;\n /** @internal */ this.defaultLanguageCode = null;\n /** @internal */ this.customParameters = {};\n }\n (0, $a27186eefd8c4b26$export$d60067ff2358eee8)(FederatedAuthProvider, [\n {\n /**\r\n * Set the language gode.\r\n *\r\n * @param languageCode - language code\r\n */ key: \"setDefaultLanguage\",\n value: function setDefaultLanguage(languageCode) {\n this.defaultLanguageCode = languageCode;\n }\n },\n {\n /**\r\n * Sets the OAuth custom parameters to pass in an OAuth request for popup and redirect sign-in\r\n * operations.\r\n *\r\n * @remarks\r\n * For a detailed list, check the reserved required OAuth 2.0 parameters such as `client_id`,\r\n * `redirect_uri`, `scope`, `response_type`, and `state` are not allowed and will be ignored.\r\n *\r\n * @param customOAuthParameters - The custom OAuth parameters to pass in the OAuth request.\r\n */ key: \"setCustomParameters\",\n value: function setCustomParameters(customOAuthParameters) {\n this.customParameters = customOAuthParameters;\n return this;\n }\n },\n {\n /**\r\n * Retrieve the current list of {@link CustomParameters}.\r\n */ key: \"getCustomParameters\",\n value: function getCustomParameters() {\n return this.customParameters;\n }\n }\n ]);\n return FederatedAuthProvider;\n}();\n/**\r\n * @license\r\n * Copyright 2019 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */ /**\r\n * Common code to all OAuth providers. This is separate from the\r\n * {@link OAuthProvider} so that child providers (like\r\n * {@link GoogleAuthProvider}) don't inherit the `credential` instance method.\r\n * Instead, they rely on a static `credential` method.\r\n */ var $f394e9ac486578e6$var$BaseOAuthProvider = /*#__PURE__*/ function(FederatedAuthProvider) {\n \"use strict\";\n (0, $a3fe9d9bda1cd86f$export$7e4530ad35d3bb8)(BaseOAuthProvider, FederatedAuthProvider);\n var _super = (0, $60ddfe51b57fdc13$export$8dd05c13f5255580)(BaseOAuthProvider);\n function BaseOAuthProvider() {\n (0, $0c3f79e99c83f58f$export$2996f80ef42b8419)(this, BaseOAuthProvider);\n var _this;\n _this = _super.call.apply(_super, [\n this\n ].concat(Array.prototype.slice.call(arguments)));\n /** @internal */ _this.scopes = [];\n return _this;\n }\n (0, $a27186eefd8c4b26$export$d60067ff2358eee8)(BaseOAuthProvider, [\n {\n /**\r\n * Add an OAuth scope to the credential.\r\n *\r\n * @param scope - Provider OAuth scope to add.\r\n */ key: \"addScope\",\n value: function addScope(scope) {\n // If not already added, add scope to list.\n if (!this.scopes.includes(scope)) this.scopes.push(scope);\n return this;\n }\n },\n {\n /**\r\n * Retrieve the current list of OAuth scopes.\r\n */ key: \"getScopes\",\n value: function getScopes() {\n return (0, $a279000f7ad0c22a$export$1b5e630bc3aea29f)(this.scopes);\n }\n }\n ]);\n return BaseOAuthProvider;\n}($f394e9ac486578e6$var$FederatedAuthProvider);\n/**\r\n * Provider for generating generic {@link OAuthCredential}.\r\n *\r\n * @example\r\n * ```javascript\r\n * // Sign in using a redirect.\r\n * const provider = new OAuthProvider('google.com');\r\n * // Start a sign in process for an unauthenticated user.\r\n * provider.addScope('profile');\r\n * provider.addScope('email');\r\n * await signInWithRedirect(auth, provider);\r\n * // This will trigger a full page redirect away from your app\r\n *\r\n * // After returning from the redirect when your app initializes you can obtain the result\r\n * const result = await getRedirectResult(auth);\r\n * if (result) {\r\n * // This is the signed-in user\r\n * const user = result.user;\r\n * // This gives you a OAuth Access Token for the provider.\r\n * const credential = provider.credentialFromResult(auth, result);\r\n * const token = credential.accessToken;\r\n * }\r\n * ```\r\n *\r\n * @example\r\n * ```javascript\r\n * // Sign in using a popup.\r\n * const provider = new OAuthProvider('google.com');\r\n * provider.addScope('profile');\r\n * provider.addScope('email');\r\n * const result = await signInWithPopup(auth, provider);\r\n *\r\n * // The signed-in user info.\r\n * const user = result.user;\r\n * // This gives you a OAuth Access Token for the provider.\r\n * const credential = provider.credentialFromResult(auth, result);\r\n * const token = credential.accessToken;\r\n * ```\r\n * @public\r\n */ var $f394e9ac486578e6$export$dc98b0b04f4c7758 = /*#__PURE__*/ function(BaseOAuthProvider) {\n \"use strict\";\n (0, $a3fe9d9bda1cd86f$export$7e4530ad35d3bb8)(OAuthProvider, BaseOAuthProvider);\n var _super = (0, $60ddfe51b57fdc13$export$8dd05c13f5255580)(OAuthProvider);\n function OAuthProvider() {\n (0, $0c3f79e99c83f58f$export$2996f80ef42b8419)(this, OAuthProvider);\n return _super.apply(this, arguments);\n }\n (0, $a27186eefd8c4b26$export$d60067ff2358eee8)(OAuthProvider, [\n {\n /**\r\n * Creates a {@link OAuthCredential} from a generic OAuth provider's access token or ID token.\r\n *\r\n * @remarks\r\n * The raw nonce is required when an ID token with a nonce field is provided. The SHA-256 hash of\r\n * the raw nonce must match the nonce field in the ID token.\r\n *\r\n * @example\r\n * ```javascript\r\n * // `googleUser` from the onsuccess Google Sign In callback.\r\n * // Initialize a generate OAuth provider with a `google.com` providerId.\r\n * const provider = new OAuthProvider('google.com');\r\n * const credential = provider.credential({\r\n * idToken: googleUser.getAuthResponse().id_token,\r\n * });\r\n * const result = await signInWithCredential(credential);\r\n * ```\r\n *\r\n * @param params - Either the options object containing the ID token, access token and raw nonce\r\n * or the ID token string.\r\n */ key: \"credential\",\n value: function credential(params) {\n return this._credential(Object.assign(Object.assign({}, params), {\n nonce: params.rawNonce\n }));\n }\n },\n {\n /** An internal credential method that accepts more permissive options */ key: \"_credential\",\n value: function _credential(params) {\n $f394e9ac486578e6$export$890c4ad488842ce7(params.idToken || params.accessToken, \"argument-error\" /* AuthErrorCode.ARGUMENT_ERROR */ );\n // For OAuthCredential, sign in method is same as providerId.\n return $f394e9ac486578e6$export$a07804094c3ecf2d._fromParams(Object.assign(Object.assign({}, params), {\n providerId: this.providerId,\n signInMethod: this.providerId\n }));\n }\n }\n ], [\n {\n key: \"credentialFromJSON\",\n value: /**\r\n * Creates an {@link OAuthCredential} from a JSON string or a plain object.\r\n * @param json - A plain object or a JSON string\r\n */ function credentialFromJSON(json) {\n var obj = typeof json === \"string\" ? JSON.parse(json) : json;\n $f394e9ac486578e6$export$890c4ad488842ce7(\"providerId\" in obj && \"signInMethod\" in obj, \"argument-error\" /* AuthErrorCode.ARGUMENT_ERROR */ );\n return $f394e9ac486578e6$export$a07804094c3ecf2d._fromParams(obj);\n }\n },\n {\n key: \"credentialFromResult\",\n value: /**\r\n * Used to extract the underlying {@link OAuthCredential} from a {@link UserCredential}.\r\n *\r\n * @param userCredential - The user credential.\r\n */ function credentialFromResult(userCredential) {\n return OAuthProvider.oauthCredentialFromTaggedObject(userCredential);\n }\n },\n {\n key: \"credentialFromError\",\n value: /**\r\n * Used to extract the underlying {@link OAuthCredential} from a {@link AuthError} which was\r\n * thrown during a sign-in, link, or reauthenticate operation.\r\n *\r\n * @param userCredential - The user credential.\r\n */ function credentialFromError(error) {\n return OAuthProvider.oauthCredentialFromTaggedObject(error.customData || {});\n }\n },\n {\n key: \"oauthCredentialFromTaggedObject\",\n value: function oauthCredentialFromTaggedObject(param) {\n var tokenResponse = param._tokenResponse;\n if (!tokenResponse) return null;\n var oauthIdToken = tokenResponse.oauthIdToken, oauthAccessToken = tokenResponse.oauthAccessToken, oauthTokenSecret = tokenResponse.oauthTokenSecret, pendingToken = tokenResponse.pendingToken, nonce = tokenResponse.nonce, providerId = tokenResponse.providerId;\n if (!oauthAccessToken && !oauthTokenSecret && !oauthIdToken && !pendingToken) return null;\n if (!providerId) return null;\n try {\n return new OAuthProvider(providerId)._credential({\n idToken: oauthIdToken,\n accessToken: oauthAccessToken,\n nonce: nonce,\n pendingToken: pendingToken\n });\n } catch (e) {\n return null;\n }\n }\n }\n ]);\n return OAuthProvider;\n}($f394e9ac486578e6$var$BaseOAuthProvider);\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */ /**\r\n * Provider for generating an {@link OAuthCredential} for {@link ProviderId}.FACEBOOK.\r\n *\r\n * @example\r\n * ```javascript\r\n * // Sign in using a redirect.\r\n * const provider = new FacebookAuthProvider();\r\n * // Start a sign in process for an unauthenticated user.\r\n * provider.addScope('user_birthday');\r\n * await signInWithRedirect(auth, provider);\r\n * // This will trigger a full page redirect away from your app\r\n *\r\n * // After returning from the redirect when your app initializes you can obtain the result\r\n * const result = await getRedirectResult(auth);\r\n * if (result) {\r\n * // This is the signed-in user\r\n * const user = result.user;\r\n * // This gives you a Facebook Access Token.\r\n * const credential = FacebookAuthProvider.credentialFromResult(result);\r\n * const token = credential.accessToken;\r\n * }\r\n * ```\r\n *\r\n * @example\r\n * ```javascript\r\n * // Sign in using a popup.\r\n * const provider = new FacebookAuthProvider();\r\n * provider.addScope('user_birthday');\r\n * const result = await signInWithPopup(auth, provider);\r\n *\r\n * // The signed-in user info.\r\n * const user = result.user;\r\n * // This gives you a Facebook Access Token.\r\n * const credential = FacebookAuthProvider.credentialFromResult(result);\r\n * const token = credential.accessToken;\r\n * ```\r\n *\r\n * @public\r\n */ var $f394e9ac486578e6$export$71cec2538cb2c617 = /*#__PURE__*/ function(BaseOAuthProvider) {\n \"use strict\";\n (0, $a3fe9d9bda1cd86f$export$7e4530ad35d3bb8)(FacebookAuthProvider, BaseOAuthProvider);\n var _super = (0, $60ddfe51b57fdc13$export$8dd05c13f5255580)(FacebookAuthProvider);\n function FacebookAuthProvider() {\n (0, $0c3f79e99c83f58f$export$2996f80ef42b8419)(this, FacebookAuthProvider);\n return _super.call(this, \"facebook.com\" /* ProviderId.FACEBOOK */ );\n }\n (0, $a27186eefd8c4b26$export$d60067ff2358eee8)(FacebookAuthProvider, null, [\n {\n key: \"credential\",\n value: /**\r\n * Creates a credential for Facebook.\r\n *\r\n * @example\r\n * ```javascript\r\n * // `event` from the Facebook auth.authResponseChange callback.\r\n * const credential = FacebookAuthProvider.credential(event.authResponse.accessToken);\r\n * const result = await signInWithCredential(credential);\r\n * ```\r\n *\r\n * @param accessToken - Facebook access token.\r\n */ function credential(accessToken) {\n return $f394e9ac486578e6$export$a07804094c3ecf2d._fromParams({\n providerId: FacebookAuthProvider.PROVIDER_ID,\n signInMethod: FacebookAuthProvider.FACEBOOK_SIGN_IN_METHOD,\n accessToken: accessToken\n });\n }\n },\n {\n key: \"credentialFromResult\",\n value: /**\r\n * Used to extract the underlying {@link OAuthCredential} from a {@link UserCredential}.\r\n *\r\n * @param userCredential - The user credential.\r\n */ function credentialFromResult(userCredential) {\n return FacebookAuthProvider.credentialFromTaggedObject(userCredential);\n }\n },\n {\n key: \"credentialFromError\",\n value: /**\r\n * Used to extract the underlying {@link OAuthCredential} from a {@link AuthError} which was\r\n * thrown during a sign-in, link, or reauthenticate operation.\r\n *\r\n * @param userCredential - The user credential.\r\n */ function credentialFromError(error) {\n return FacebookAuthProvider.credentialFromTaggedObject(error.customData || {});\n }\n },\n {\n key: \"credentialFromTaggedObject\",\n value: function credentialFromTaggedObject(param) {\n var tokenResponse = param._tokenResponse;\n if (!tokenResponse || !(\"oauthAccessToken\" in tokenResponse)) return null;\n if (!tokenResponse.oauthAccessToken) return null;\n try {\n return FacebookAuthProvider.credential(tokenResponse.oauthAccessToken);\n } catch (_a) {\n return null;\n }\n }\n }\n ]);\n return FacebookAuthProvider;\n}($f394e9ac486578e6$var$BaseOAuthProvider);\n/** Always set to {@link SignInMethod}.FACEBOOK. */ $f394e9ac486578e6$export$71cec2538cb2c617.FACEBOOK_SIGN_IN_METHOD = \"facebook.com\" /* SignInMethod.FACEBOOK */ ;\n/** Always set to {@link ProviderId}.FACEBOOK. */ $f394e9ac486578e6$export$71cec2538cb2c617.PROVIDER_ID = \"facebook.com\" /* ProviderId.FACEBOOK */ ;\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */ /**\r\n * Provider for generating an an {@link OAuthCredential} for {@link ProviderId}.GOOGLE.\r\n *\r\n * @example\r\n * ```javascript\r\n * // Sign in using a redirect.\r\n * const provider = new GoogleAuthProvider();\r\n * // Start a sign in process for an unauthenticated user.\r\n * provider.addScope('profile');\r\n * provider.addScope('email');\r\n * await signInWithRedirect(auth, provider);\r\n * // This will trigger a full page redirect away from your app\r\n *\r\n * // After returning from the redirect when your app initializes you can obtain the result\r\n * const result = await getRedirectResult(auth);\r\n * if (result) {\r\n * // This is the signed-in user\r\n * const user = result.user;\r\n * // This gives you a Google Access Token.\r\n * const credential = GoogleAuthProvider.credentialFromResult(result);\r\n * const token = credential.accessToken;\r\n * }\r\n * ```\r\n *\r\n * @example\r\n * ```javascript\r\n * // Sign in using a popup.\r\n * const provider = new GoogleAuthProvider();\r\n * provider.addScope('profile');\r\n * provider.addScope('email');\r\n * const result = await signInWithPopup(auth, provider);\r\n *\r\n * // The signed-in user info.\r\n * const user = result.user;\r\n * // This gives you a Google Access Token.\r\n * const credential = GoogleAuthProvider.credentialFromResult(result);\r\n * const token = credential.accessToken;\r\n * ```\r\n *\r\n * @public\r\n */ var $f394e9ac486578e6$export$78acf4525d8a74c4 = /*#__PURE__*/ function(BaseOAuthProvider) {\n \"use strict\";\n (0, $a3fe9d9bda1cd86f$export$7e4530ad35d3bb8)(GoogleAuthProvider, BaseOAuthProvider);\n var _super = (0, $60ddfe51b57fdc13$export$8dd05c13f5255580)(GoogleAuthProvider);\n function GoogleAuthProvider() {\n (0, $0c3f79e99c83f58f$export$2996f80ef42b8419)(this, GoogleAuthProvider);\n var _this;\n _this = _super.call(this, \"google.com\" /* ProviderId.GOOGLE */ );\n _this.addScope(\"profile\");\n return _this;\n }\n (0, $a27186eefd8c4b26$export$d60067ff2358eee8)(GoogleAuthProvider, null, [\n {\n key: \"credential\",\n value: /**\r\n * Creates a credential for Google. At least one of ID token and access token is required.\r\n *\r\n * @example\r\n * ```javascript\r\n * // \\`googleUser\\` from the onsuccess Google Sign In callback.\r\n * const credential = GoogleAuthProvider.credential(googleUser.getAuthResponse().id_token);\r\n * const result = await signInWithCredential(credential);\r\n * ```\r\n *\r\n * @param idToken - Google ID token.\r\n * @param accessToken - Google access token.\r\n */ function credential(idToken, accessToken) {\n return $f394e9ac486578e6$export$a07804094c3ecf2d._fromParams({\n providerId: GoogleAuthProvider.PROVIDER_ID,\n signInMethod: GoogleAuthProvider.GOOGLE_SIGN_IN_METHOD,\n idToken: idToken,\n accessToken: accessToken\n });\n }\n },\n {\n key: \"credentialFromResult\",\n value: /**\r\n * Used to extract the underlying {@link OAuthCredential} from a {@link UserCredential}.\r\n *\r\n * @param userCredential - The user credential.\r\n */ function credentialFromResult(userCredential) {\n return GoogleAuthProvider.credentialFromTaggedObject(userCredential);\n }\n },\n {\n key: \"credentialFromError\",\n value: /**\r\n * Used to extract the underlying {@link OAuthCredential} from a {@link AuthError} which was\r\n * thrown during a sign-in, link, or reauthenticate operation.\r\n *\r\n * @param userCredential - The user credential.\r\n */ function credentialFromError(error) {\n return GoogleAuthProvider.credentialFromTaggedObject(error.customData || {});\n }\n },\n {\n key: \"credentialFromTaggedObject\",\n value: function credentialFromTaggedObject(param) {\n var tokenResponse = param._tokenResponse;\n if (!tokenResponse) return null;\n var oauthIdToken = tokenResponse.oauthIdToken, oauthAccessToken = tokenResponse.oauthAccessToken;\n if (!oauthIdToken && !oauthAccessToken) // This could be an oauth 1 credential or a phone credential\n return null;\n try {\n return GoogleAuthProvider.credential(oauthIdToken, oauthAccessToken);\n } catch (_a) {\n return null;\n }\n }\n }\n ]);\n return GoogleAuthProvider;\n}($f394e9ac486578e6$var$BaseOAuthProvider);\n/** Always set to {@link SignInMethod}.GOOGLE. */ $f394e9ac486578e6$export$78acf4525d8a74c4.GOOGLE_SIGN_IN_METHOD = \"google.com\" /* SignInMethod.GOOGLE */ ;\n/** Always set to {@link ProviderId}.GOOGLE. */ $f394e9ac486578e6$export$78acf4525d8a74c4.PROVIDER_ID = \"google.com\" /* ProviderId.GOOGLE */ ;\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */ /**\r\n * Provider for generating an {@link OAuthCredential} for {@link ProviderId}.GITHUB.\r\n *\r\n * @remarks\r\n * GitHub requires an OAuth 2.0 redirect, so you can either handle the redirect directly, or use\r\n * the {@link signInWithPopup} handler:\r\n *\r\n * @example\r\n * ```javascript\r\n * // Sign in using a redirect.\r\n * const provider = new GithubAuthProvider();\r\n * // Start a sign in process for an unauthenticated user.\r\n * provider.addScope('repo');\r\n * await signInWithRedirect(auth, provider);\r\n * // This will trigger a full page redirect away from your app\r\n *\r\n * // After returning from the redirect when your app initializes you can obtain the result\r\n * const result = await getRedirectResult(auth);\r\n * if (result) {\r\n * // This is the signed-in user\r\n * const user = result.user;\r\n * // This gives you a Github Access Token.\r\n * const credential = GithubAuthProvider.credentialFromResult(result);\r\n * const token = credential.accessToken;\r\n * }\r\n * ```\r\n *\r\n * @example\r\n * ```javascript\r\n * // Sign in using a popup.\r\n * const provider = new GithubAuthProvider();\r\n * provider.addScope('repo');\r\n * const result = await signInWithPopup(auth, provider);\r\n *\r\n * // The signed-in user info.\r\n * const user = result.user;\r\n * // This gives you a Github Access Token.\r\n * const credential = GithubAuthProvider.credentialFromResult(result);\r\n * const token = credential.accessToken;\r\n * ```\r\n * @public\r\n */ var $f394e9ac486578e6$export$8743009a87fcb00f = /*#__PURE__*/ function(BaseOAuthProvider) {\n \"use strict\";\n (0, $a3fe9d9bda1cd86f$export$7e4530ad35d3bb8)(GithubAuthProvider, BaseOAuthProvider);\n var _super = (0, $60ddfe51b57fdc13$export$8dd05c13f5255580)(GithubAuthProvider);\n function GithubAuthProvider() {\n (0, $0c3f79e99c83f58f$export$2996f80ef42b8419)(this, GithubAuthProvider);\n return _super.call(this, \"github.com\" /* ProviderId.GITHUB */ );\n }\n (0, $a27186eefd8c4b26$export$d60067ff2358eee8)(GithubAuthProvider, null, [\n {\n key: \"credential\",\n value: /**\r\n * Creates a credential for Github.\r\n *\r\n * @param accessToken - Github access token.\r\n */ function credential(accessToken) {\n return $f394e9ac486578e6$export$a07804094c3ecf2d._fromParams({\n providerId: GithubAuthProvider.PROVIDER_ID,\n signInMethod: GithubAuthProvider.GITHUB_SIGN_IN_METHOD,\n accessToken: accessToken\n });\n }\n },\n {\n key: \"credentialFromResult\",\n value: /**\r\n * Used to extract the underlying {@link OAuthCredential} from a {@link UserCredential}.\r\n *\r\n * @param userCredential - The user credential.\r\n */ function credentialFromResult(userCredential) {\n return GithubAuthProvider.credentialFromTaggedObject(userCredential);\n }\n },\n {\n key: \"credentialFromError\",\n value: /**\r\n * Used to extract the underlying {@link OAuthCredential} from a {@link AuthError} which was\r\n * thrown during a sign-in, link, or reauthenticate operation.\r\n *\r\n * @param userCredential - The user credential.\r\n */ function credentialFromError(error) {\n return GithubAuthProvider.credentialFromTaggedObject(error.customData || {});\n }\n },\n {\n key: \"credentialFromTaggedObject\",\n value: function credentialFromTaggedObject(param) {\n var tokenResponse = param._tokenResponse;\n if (!tokenResponse || !(\"oauthAccessToken\" in tokenResponse)) return null;\n if (!tokenResponse.oauthAccessToken) return null;\n try {\n return GithubAuthProvider.credential(tokenResponse.oauthAccessToken);\n } catch (_a) {\n return null;\n }\n }\n }\n ]);\n return GithubAuthProvider;\n}($f394e9ac486578e6$var$BaseOAuthProvider);\n/** Always set to {@link SignInMethod}.GITHUB. */ $f394e9ac486578e6$export$8743009a87fcb00f.GITHUB_SIGN_IN_METHOD = \"github.com\" /* SignInMethod.GITHUB */ ;\n/** Always set to {@link ProviderId}.GITHUB. */ $f394e9ac486578e6$export$8743009a87fcb00f.PROVIDER_ID = \"github.com\" /* ProviderId.GITHUB */ ;\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */ var $f394e9ac486578e6$var$IDP_REQUEST_URI = \"http://localhost\";\n/**\r\n * @public\r\n */ var $f394e9ac486578e6$export$f96d196f7728bb5 = /*#__PURE__*/ function(AuthCredential) {\n \"use strict\";\n (0, $a3fe9d9bda1cd86f$export$7e4530ad35d3bb8)(SAMLAuthCredential, AuthCredential);\n var _super = (0, $60ddfe51b57fdc13$export$8dd05c13f5255580)(SAMLAuthCredential);\n function SAMLAuthCredential(providerId, pendingToken) {\n (0, $0c3f79e99c83f58f$export$2996f80ef42b8419)(this, SAMLAuthCredential);\n var _this;\n _this = _super.call(this, providerId, providerId);\n _this.pendingToken = pendingToken;\n return _this;\n }\n (0, $a27186eefd8c4b26$export$d60067ff2358eee8)(SAMLAuthCredential, [\n {\n /** @internal */ key: \"_getIdTokenResponse\",\n value: function _getIdTokenResponse(auth) {\n var request = this.buildRequest();\n return $f394e9ac486578e6$var$signInWithIdp(auth, request);\n }\n },\n {\n /** @internal */ key: \"_linkToIdToken\",\n value: function _linkToIdToken(auth, idToken) {\n var request = this.buildRequest();\n request.idToken = idToken;\n return $f394e9ac486578e6$var$signInWithIdp(auth, request);\n }\n },\n {\n /** @internal */ key: \"_getReauthenticationResolver\",\n value: function _getReauthenticationResolver(auth) {\n var request = this.buildRequest();\n request.autoCreate = false;\n return $f394e9ac486578e6$var$signInWithIdp(auth, request);\n }\n },\n {\n /** {@inheritdoc AuthCredential.toJSON} */ key: \"toJSON\",\n value: function toJSON() {\n return {\n signInMethod: this.signInMethod,\n providerId: this.providerId,\n pendingToken: this.pendingToken\n };\n }\n },\n {\n key: \"buildRequest\",\n value: function buildRequest() {\n return {\n requestUri: $f394e9ac486578e6$var$IDP_REQUEST_URI,\n returnSecureToken: true,\n pendingToken: this.pendingToken\n };\n }\n }\n ], [\n {\n key: \"fromJSON\",\n value: /**\r\n * Static method to deserialize a JSON representation of an object into an\r\n * {@link AuthCredential}.\r\n *\r\n * @param json - Input can be either Object or the stringified representation of the object.\r\n * When string is provided, JSON.parse would be called first.\r\n *\r\n * @returns If the JSON input does not represent an {@link AuthCredential}, null is returned.\r\n */ function fromJSON(json) {\n var obj = typeof json === \"string\" ? JSON.parse(json) : json;\n var providerId = obj.providerId, signInMethod = obj.signInMethod, pendingToken = obj.pendingToken;\n if (!providerId || !signInMethod || !pendingToken || providerId !== signInMethod) return null;\n return new SAMLAuthCredential(providerId, pendingToken);\n }\n },\n {\n key: \"_create\",\n value: /**\r\n * Helper static method to avoid exposing the constructor to end users.\r\n *\r\n * @internal\r\n */ function _create(providerId, pendingToken) {\n return new SAMLAuthCredential(providerId, pendingToken);\n }\n }\n ]);\n return SAMLAuthCredential;\n}($f394e9ac486578e6$export$61196ced6d74a310);\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */ var $f394e9ac486578e6$var$SAML_PROVIDER_PREFIX = \"saml.\";\n/**\r\n * An {@link AuthProvider} for SAML.\r\n *\r\n * @public\r\n */ var $f394e9ac486578e6$export$71511d61b312f219 = /*#__PURE__*/ function(FederatedAuthProvider) {\n \"use strict\";\n (0, $a3fe9d9bda1cd86f$export$7e4530ad35d3bb8)(SAMLAuthProvider, FederatedAuthProvider);\n var _super = (0, $60ddfe51b57fdc13$export$8dd05c13f5255580)(SAMLAuthProvider);\n function SAMLAuthProvider(providerId) {\n (0, $0c3f79e99c83f58f$export$2996f80ef42b8419)(this, SAMLAuthProvider);\n $f394e9ac486578e6$export$890c4ad488842ce7(providerId.startsWith($f394e9ac486578e6$var$SAML_PROVIDER_PREFIX), \"argument-error\" /* AuthErrorCode.ARGUMENT_ERROR */ );\n return _super.call(this, providerId);\n }\n (0, $a27186eefd8c4b26$export$d60067ff2358eee8)(SAMLAuthProvider, null, [\n {\n key: \"credentialFromResult\",\n value: /**\r\n * Generates an {@link AuthCredential} from a {@link UserCredential} after a\r\n * successful SAML flow completes.\r\n *\r\n * @remarks\r\n *\r\n * For example, to get an {@link AuthCredential}, you could write the\r\n * following code:\r\n *\r\n * ```js\r\n * const userCredential = await signInWithPopup(auth, samlProvider);\r\n * const credential = SAMLAuthProvider.credentialFromResult(userCredential);\r\n * ```\r\n *\r\n * @param userCredential - The user credential.\r\n */ function credentialFromResult(userCredential) {\n return SAMLAuthProvider.samlCredentialFromTaggedObject(userCredential);\n }\n },\n {\n key: \"credentialFromError\",\n value: /**\r\n * Used to extract the underlying {@link OAuthCredential} from a {@link AuthError} which was\r\n * thrown during a sign-in, link, or reauthenticate operation.\r\n *\r\n * @param userCredential - The user credential.\r\n */ function credentialFromError(error) {\n return SAMLAuthProvider.samlCredentialFromTaggedObject(error.customData || {});\n }\n },\n {\n key: \"credentialFromJSON\",\n value: /**\r\n * Creates an {@link AuthCredential} from a JSON string or a plain object.\r\n * @param json - A plain object or a JSON string\r\n */ function credentialFromJSON(json) {\n var credential = $f394e9ac486578e6$export$f96d196f7728bb5.fromJSON(json);\n $f394e9ac486578e6$export$890c4ad488842ce7(credential, \"argument-error\" /* AuthErrorCode.ARGUMENT_ERROR */ );\n return credential;\n }\n },\n {\n key: \"samlCredentialFromTaggedObject\",\n value: function samlCredentialFromTaggedObject(param) {\n var tokenResponse = param._tokenResponse;\n if (!tokenResponse) return null;\n var pendingToken = tokenResponse.pendingToken, providerId = tokenResponse.providerId;\n if (!pendingToken || !providerId) return null;\n try {\n return $f394e9ac486578e6$export$f96d196f7728bb5._create(providerId, pendingToken);\n } catch (e) {\n return null;\n }\n }\n }\n ]);\n return SAMLAuthProvider;\n}($f394e9ac486578e6$var$FederatedAuthProvider);\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */ /**\r\n * Provider for generating an {@link OAuthCredential} for {@link ProviderId}.TWITTER.\r\n *\r\n * @example\r\n * ```javascript\r\n * // Sign in using a redirect.\r\n * const provider = new TwitterAuthProvider();\r\n * // Start a sign in process for an unauthenticated user.\r\n * await signInWithRedirect(auth, provider);\r\n * // This will trigger a full page redirect away from your app\r\n *\r\n * // After returning from the redirect when your app initializes you can obtain the result\r\n * const result = await getRedirectResult(auth);\r\n * if (result) {\r\n * // This is the signed-in user\r\n * const user = result.user;\r\n * // This gives you a Twitter Access Token and Secret.\r\n * const credential = TwitterAuthProvider.credentialFromResult(result);\r\n * const token = credential.accessToken;\r\n * const secret = credential.secret;\r\n * }\r\n * ```\r\n *\r\n * @example\r\n * ```javascript\r\n * // Sign in using a popup.\r\n * const provider = new TwitterAuthProvider();\r\n * const result = await signInWithPopup(auth, provider);\r\n *\r\n * // The signed-in user info.\r\n * const user = result.user;\r\n * // This gives you a Twitter Access Token and Secret.\r\n * const credential = TwitterAuthProvider.credentialFromResult(result);\r\n * const token = credential.accessToken;\r\n * const secret = credential.secret;\r\n * ```\r\n *\r\n * @public\r\n */ var $f394e9ac486578e6$export$3d8c2f653ac9d0b9 = /*#__PURE__*/ function(BaseOAuthProvider) {\n \"use strict\";\n (0, $a3fe9d9bda1cd86f$export$7e4530ad35d3bb8)(TwitterAuthProvider, BaseOAuthProvider);\n var _super = (0, $60ddfe51b57fdc13$export$8dd05c13f5255580)(TwitterAuthProvider);\n function TwitterAuthProvider() {\n (0, $0c3f79e99c83f58f$export$2996f80ef42b8419)(this, TwitterAuthProvider);\n return _super.call(this, \"twitter.com\" /* ProviderId.TWITTER */ );\n }\n (0, $a27186eefd8c4b26$export$d60067ff2358eee8)(TwitterAuthProvider, null, [\n {\n key: \"credential\",\n value: /**\r\n * Creates a credential for Twitter.\r\n *\r\n * @param token - Twitter access token.\r\n * @param secret - Twitter secret.\r\n */ function credential(token, secret) {\n return $f394e9ac486578e6$export$a07804094c3ecf2d._fromParams({\n providerId: TwitterAuthProvider.PROVIDER_ID,\n signInMethod: TwitterAuthProvider.TWITTER_SIGN_IN_METHOD,\n oauthToken: token,\n oauthTokenSecret: secret\n });\n }\n },\n {\n key: \"credentialFromResult\",\n value: /**\r\n * Used to extract the underlying {@link OAuthCredential} from a {@link UserCredential}.\r\n *\r\n * @param userCredential - The user credential.\r\n */ function credentialFromResult(userCredential) {\n return TwitterAuthProvider.credentialFromTaggedObject(userCredential);\n }\n },\n {\n key: \"credentialFromError\",\n value: /**\r\n * Used to extract the underlying {@link OAuthCredential} from a {@link AuthError} which was\r\n * thrown during a sign-in, link, or reauthenticate operation.\r\n *\r\n * @param userCredential - The user credential.\r\n */ function credentialFromError(error) {\n return TwitterAuthProvider.credentialFromTaggedObject(error.customData || {});\n }\n },\n {\n key: \"credentialFromTaggedObject\",\n value: function credentialFromTaggedObject(param) {\n var tokenResponse = param._tokenResponse;\n if (!tokenResponse) return null;\n var oauthAccessToken = tokenResponse.oauthAccessToken, oauthTokenSecret = tokenResponse.oauthTokenSecret;\n if (!oauthAccessToken || !oauthTokenSecret) return null;\n try {\n return TwitterAuthProvider.credential(oauthAccessToken, oauthTokenSecret);\n } catch (_a) {\n return null;\n }\n }\n }\n ]);\n return TwitterAuthProvider;\n}($f394e9ac486578e6$var$BaseOAuthProvider);\n/** Always set to {@link SignInMethod}.TWITTER. */ $f394e9ac486578e6$export$3d8c2f653ac9d0b9.TWITTER_SIGN_IN_METHOD = \"twitter.com\" /* SignInMethod.TWITTER */ ;\n/** Always set to {@link ProviderId}.TWITTER. */ $f394e9ac486578e6$export$3d8c2f653ac9d0b9.PROVIDER_ID = \"twitter.com\" /* ProviderId.TWITTER */ ;\nfunction $f394e9ac486578e6$var$signUp(auth, request) {\n return $f394e9ac486578e6$var$_signUp.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$var$_signUp() {\n $f394e9ac486578e6$var$_signUp = /**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */ (0, $9167c88d5d99601b$export$7c398597f8905a1)(function(auth, request) {\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n return [\n 2,\n $f394e9ac486578e6$var$_performSignInRequest(auth, \"POST\" /* HttpMethod.POST */ , \"/v1/accounts:signUp\" /* Endpoint.SIGN_UP */ , $f394e9ac486578e6$var$_addTidIfNecessary(auth, request))\n ];\n });\n });\n return $f394e9ac486578e6$var$_signUp.apply(this, arguments);\n}\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */ var $f394e9ac486578e6$var$UserCredentialImpl = /*#__PURE__*/ function() {\n \"use strict\";\n function UserCredentialImpl(params) {\n (0, $0c3f79e99c83f58f$export$2996f80ef42b8419)(this, UserCredentialImpl);\n this.user = params.user;\n this.providerId = params.providerId;\n this._tokenResponse = params._tokenResponse;\n this.operationType = params.operationType;\n }\n (0, $a27186eefd8c4b26$export$d60067ff2358eee8)(UserCredentialImpl, null, [\n {\n key: \"_fromIdTokenResponse\",\n value: function _fromIdTokenResponse(auth, operationType, idTokenResponse) {\n var isAnonymous = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : false;\n return (0, $9167c88d5d99601b$export$7c398597f8905a1)(function() {\n var user, providerId, userCred;\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n switch(_state.label){\n case 0:\n return [\n 4,\n $f394e9ac486578e6$export$23ebac1979863676._fromIdTokenResponse(auth, idTokenResponse, isAnonymous)\n ];\n case 1:\n user = _state.sent();\n providerId = $f394e9ac486578e6$var$providerIdForResponse(idTokenResponse);\n userCred = new UserCredentialImpl({\n user: user,\n providerId: providerId,\n _tokenResponse: idTokenResponse,\n operationType: operationType\n });\n return [\n 2,\n userCred\n ];\n }\n });\n })();\n }\n },\n {\n key: \"_forOperation\",\n value: function _forOperation(user, operationType, response) {\n return (0, $9167c88d5d99601b$export$7c398597f8905a1)(function() {\n var providerId;\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n switch(_state.label){\n case 0:\n return [\n 4,\n user._updateTokensIfNecessary(response, /* reload */ true)\n ];\n case 1:\n _state.sent();\n providerId = $f394e9ac486578e6$var$providerIdForResponse(response);\n return [\n 2,\n new UserCredentialImpl({\n user: user,\n providerId: providerId,\n _tokenResponse: response,\n operationType: operationType\n })\n ];\n }\n });\n })();\n }\n }\n ]);\n return UserCredentialImpl;\n}();\nfunction $f394e9ac486578e6$var$providerIdForResponse(response) {\n if (response.providerId) return response.providerId;\n if (\"phoneNumber\" in response) return \"phone\" /* ProviderId.PHONE */ ;\n return null;\n}\nfunction $f394e9ac486578e6$export$34aec0b863436764(auth) {\n return $f394e9ac486578e6$var$_signInAnonymously.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$var$_signInAnonymously() {\n $f394e9ac486578e6$var$_signInAnonymously = /**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */ /**\r\n * Asynchronously signs in as an anonymous user.\r\n *\r\n * @remarks\r\n * If there is already an anonymous user signed in, that user will be returned; otherwise, a\r\n * new anonymous user identity will be created and returned.\r\n *\r\n * @param auth - The {@link Auth} instance.\r\n *\r\n * @public\r\n */ (0, $9167c88d5d99601b$export$7c398597f8905a1)(function(auth) {\n var _a, authInternal, response, userCredential;\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n switch(_state.label){\n case 0:\n authInternal = $f394e9ac486578e6$export$a05254e7c3aeba6e(auth);\n return [\n 4,\n authInternal._initializationPromise\n ];\n case 1:\n _state.sent();\n if ((_a = authInternal.currentUser) === null || _a === void 0 ? void 0 : _a.isAnonymous) // If an anonymous user is already signed in, no need to sign them in again.\n return [\n 2,\n new $f394e9ac486578e6$var$UserCredentialImpl({\n user: authInternal.currentUser,\n providerId: null,\n operationType: \"signIn\" /* OperationType.SIGN_IN */ \n })\n ];\n return [\n 4,\n $f394e9ac486578e6$var$signUp(authInternal, {\n returnSecureToken: true\n })\n ];\n case 2:\n response = _state.sent();\n return [\n 4,\n $f394e9ac486578e6$var$UserCredentialImpl._fromIdTokenResponse(authInternal, \"signIn\" /* OperationType.SIGN_IN */ , response, true)\n ];\n case 3:\n userCredential = _state.sent();\n return [\n 4,\n authInternal._updateCurrentUser(userCredential.user)\n ];\n case 4:\n _state.sent();\n return [\n 2,\n userCredential\n ];\n }\n });\n });\n return $f394e9ac486578e6$var$_signInAnonymously.apply(this, arguments);\n}\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */ var $f394e9ac486578e6$var$MultiFactorError = /*#__PURE__*/ function(FirebaseError) {\n \"use strict\";\n (0, $a3fe9d9bda1cd86f$export$7e4530ad35d3bb8)(MultiFactorError, FirebaseError);\n var _super = (0, $60ddfe51b57fdc13$export$8dd05c13f5255580)(MultiFactorError);\n function MultiFactorError(auth, error, operationType, user) {\n (0, $0c3f79e99c83f58f$export$2996f80ef42b8419)(this, MultiFactorError);\n var _this;\n var _a;\n _this = _super.call(this, error.code, error.message);\n _this.operationType = operationType;\n _this.user = user;\n // https://github.com/Microsoft/TypeScript-wiki/blob/master/Breaking-Changes.md#extending-built-ins-like-error-array-and-map-may-no-longer-work\n Object.setPrototypeOf((0, $b419213e67ec23f4$export$f3b8ed2e4a5d10b8)(_this), MultiFactorError.prototype);\n _this.customData = {\n appName: auth.name,\n tenantId: (_a = auth.tenantId) !== null && _a !== void 0 ? _a : undefined,\n _serverResponse: error.customData._serverResponse,\n operationType: operationType\n };\n return _this;\n }\n (0, $a27186eefd8c4b26$export$d60067ff2358eee8)(MultiFactorError, null, [\n {\n key: \"_fromErrorAndOperation\",\n value: function _fromErrorAndOperation(auth, error, operationType, user) {\n return new MultiFactorError(auth, error, operationType, user);\n }\n }\n ]);\n return MultiFactorError;\n}((0, $9b50b37fb8824044$export$dd24e9cd51226c56));\nfunction $f394e9ac486578e6$var$_processCredentialSavingMfaContextIfNecessary(auth, operationType, credential, user) {\n var idTokenProvider = operationType === \"reauthenticate\" /* OperationType.REAUTHENTICATE */ ? credential._getReauthenticationResolver(auth) : credential._getIdTokenResponse(auth);\n return idTokenProvider.catch(function(error) {\n if (error.code === \"auth/multi-factor-auth-required\" /* AuthErrorCode.MFA_REQUIRED */ ) throw $f394e9ac486578e6$var$MultiFactorError._fromErrorAndOperation(auth, error, operationType, user);\n throw error;\n });\n}\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */ /**\r\n * Takes a set of UserInfo provider data and converts it to a set of names\r\n */ function $f394e9ac486578e6$var$providerDataAsNames(providerData) {\n return new Set(providerData.map(function(param) {\n var providerId = param.providerId;\n return providerId;\n }).filter(function(pid) {\n return !!pid;\n }));\n}\nfunction $f394e9ac486578e6$export$2f6ca3d3b1f80bf5(user, providerId) {\n return $f394e9ac486578e6$var$_unlink.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$var$_unlink() {\n $f394e9ac486578e6$var$_unlink = /**\r\n * @license\r\n * Copyright 2019 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */ /**\r\n * Unlinks a provider from a user account.\r\n *\r\n * @param user - The user.\r\n * @param providerId - The provider to unlink.\r\n *\r\n * @public\r\n */ (0, $9167c88d5d99601b$export$7c398597f8905a1)(function(user, providerId) {\n var userInternal, providerUserInfo, _tmp, _tmp1, providersLeft;\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n switch(_state.label){\n case 0:\n userInternal = (0, $9b50b37fb8824044$export$4befe9b5fa509a1b)(user);\n return [\n 4,\n $f394e9ac486578e6$var$_assertLinkedStatus(true, userInternal, providerId)\n ];\n case 1:\n _state.sent();\n _tmp = [\n userInternal.auth\n ];\n _tmp1 = {};\n return [\n 4,\n userInternal.getIdToken()\n ];\n case 2:\n return [\n 4,\n $f394e9ac486578e6$var$deleteLinkedAccounts.apply(void 0, _tmp.concat([\n (_tmp1.idToken = _state.sent(), _tmp1.deleteProvider = [\n providerId\n ], _tmp1)\n ]))\n ];\n case 3:\n providerUserInfo = _state.sent().providerUserInfo;\n providersLeft = $f394e9ac486578e6$var$providerDataAsNames(providerUserInfo || []);\n userInternal.providerData = userInternal.providerData.filter(function(pd) {\n return providersLeft.has(pd.providerId);\n });\n if (!providersLeft.has(\"phone\" /* ProviderId.PHONE */ )) userInternal.phoneNumber = null;\n return [\n 4,\n userInternal.auth._persistUserIfCurrent(userInternal)\n ];\n case 4:\n _state.sent();\n return [\n 2,\n userInternal\n ];\n }\n });\n });\n return $f394e9ac486578e6$var$_unlink.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$var$_link$1(user, credential) {\n return $f394e9ac486578e6$var$__link$1.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$var$__link$1() {\n $f394e9ac486578e6$var$__link$1 = (0, $9167c88d5d99601b$export$7c398597f8905a1)(function(user, credential) {\n var bypassAuthState, response, _tmp, _, _tmp1;\n var _arguments = arguments;\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n switch(_state.label){\n case 0:\n bypassAuthState = _arguments.length > 2 && _arguments[2] !== void 0 ? _arguments[2] : false;\n _tmp = [\n user\n ];\n _ = credential._linkToIdToken;\n _tmp1 = [\n user.auth\n ];\n return [\n 4,\n user.getIdToken()\n ];\n case 1:\n return [\n 4,\n $f394e9ac486578e6$var$_logoutIfInvalidated.apply(void 0, _tmp.concat([\n _.apply(credential, _tmp1.concat([\n _state.sent()\n ])),\n bypassAuthState\n ]))\n ];\n case 2:\n response = _state.sent();\n return [\n 2,\n $f394e9ac486578e6$var$UserCredentialImpl._forOperation(user, \"link\" /* OperationType.LINK */ , response)\n ];\n }\n });\n });\n return $f394e9ac486578e6$var$__link$1.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$var$_assertLinkedStatus(expected, user, provider) {\n return $f394e9ac486578e6$var$__assertLinkedStatus.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$var$__assertLinkedStatus() {\n $f394e9ac486578e6$var$__assertLinkedStatus = (0, $9167c88d5d99601b$export$7c398597f8905a1)(function(expected, user, provider) {\n var providerIds, code;\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n switch(_state.label){\n case 0:\n return [\n 4,\n $f394e9ac486578e6$var$_reloadWithoutSaving(user)\n ];\n case 1:\n _state.sent();\n providerIds = $f394e9ac486578e6$var$providerDataAsNames(user.providerData);\n code = expected === false ? \"provider-already-linked\" /* AuthErrorCode.PROVIDER_ALREADY_LINKED */ : \"no-such-provider\" /* AuthErrorCode.NO_SUCH_PROVIDER */ ;\n $f394e9ac486578e6$export$890c4ad488842ce7(providerIds.has(provider) === expected, user.auth, code);\n return [\n 2\n ];\n }\n });\n });\n return $f394e9ac486578e6$var$__assertLinkedStatus.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$var$_reauthenticate(user, credential) {\n return $f394e9ac486578e6$var$__reauthenticate.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$var$__reauthenticate() {\n $f394e9ac486578e6$var$__reauthenticate = /**\r\n * @license\r\n * Copyright 2019 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */ (0, $9167c88d5d99601b$export$7c398597f8905a1)(function(user, credential) {\n var bypassAuthState, auth, operationType, response, parsed, localId, e;\n var _arguments = arguments;\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n switch(_state.label){\n case 0:\n bypassAuthState = _arguments.length > 2 && _arguments[2] !== void 0 ? _arguments[2] : false;\n auth = user.auth;\n operationType = \"reauthenticate\" /* OperationType.REAUTHENTICATE */ ;\n _state.label = 1;\n case 1:\n _state.trys.push([\n 1,\n 3,\n ,\n 4\n ]);\n return [\n 4,\n $f394e9ac486578e6$var$_logoutIfInvalidated(user, $f394e9ac486578e6$var$_processCredentialSavingMfaContextIfNecessary(auth, operationType, credential, user), bypassAuthState)\n ];\n case 2:\n response = _state.sent();\n $f394e9ac486578e6$export$890c4ad488842ce7(response.idToken, auth, \"internal-error\" /* AuthErrorCode.INTERNAL_ERROR */ );\n parsed = $f394e9ac486578e6$var$_parseToken(response.idToken);\n $f394e9ac486578e6$export$890c4ad488842ce7(parsed, auth, \"internal-error\" /* AuthErrorCode.INTERNAL_ERROR */ );\n localId = parsed.sub;\n $f394e9ac486578e6$export$890c4ad488842ce7(user.uid === localId, auth, \"user-mismatch\" /* AuthErrorCode.USER_MISMATCH */ );\n return [\n 2,\n $f394e9ac486578e6$var$UserCredentialImpl._forOperation(user, operationType, response)\n ];\n case 3:\n e = _state.sent();\n // Convert user deleted error into user mismatch\n if ((e === null || e === void 0 ? void 0 : e.code) === \"auth/user-not-found\" /* AuthErrorCode.USER_DELETED */ ) $f394e9ac486578e6$export$9fa96a7d116ea3ce(auth, \"user-mismatch\" /* AuthErrorCode.USER_MISMATCH */ );\n throw e;\n case 4:\n return [\n 2\n ];\n }\n });\n });\n return $f394e9ac486578e6$var$__reauthenticate.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$var$_signInWithCredential(auth, credential) {\n return $f394e9ac486578e6$var$__signInWithCredential.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$var$__signInWithCredential() {\n $f394e9ac486578e6$var$__signInWithCredential = /**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */ (0, $9167c88d5d99601b$export$7c398597f8905a1)(function(auth, credential) {\n var bypassAuthState, operationType, response, userCredential;\n var _arguments = arguments;\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n switch(_state.label){\n case 0:\n bypassAuthState = _arguments.length > 2 && _arguments[2] !== void 0 ? _arguments[2] : false;\n operationType = \"signIn\" /* OperationType.SIGN_IN */ ;\n return [\n 4,\n $f394e9ac486578e6$var$_processCredentialSavingMfaContextIfNecessary(auth, operationType, credential)\n ];\n case 1:\n response = _state.sent();\n return [\n 4,\n $f394e9ac486578e6$var$UserCredentialImpl._fromIdTokenResponse(auth, operationType, response)\n ];\n case 2:\n userCredential = _state.sent();\n if (!!bypassAuthState) return [\n 3,\n 4\n ];\n return [\n 4,\n auth._updateCurrentUser(userCredential.user)\n ];\n case 3:\n _state.sent();\n _state.label = 4;\n case 4:\n return [\n 2,\n userCredential\n ];\n }\n });\n });\n return $f394e9ac486578e6$var$__signInWithCredential.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$export$3c2fa207a37baaea(auth, credential) {\n return $f394e9ac486578e6$var$_signInWithCredential1.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$var$_signInWithCredential1() {\n $f394e9ac486578e6$var$_signInWithCredential1 = /**\r\n * Asynchronously signs in with the given credentials.\r\n *\r\n * @remarks\r\n * An {@link AuthProvider} can be used to generate the credential.\r\n *\r\n * @param auth - The {@link Auth} instance.\r\n * @param credential - The auth credential.\r\n *\r\n * @public\r\n */ (0, $9167c88d5d99601b$export$7c398597f8905a1)(function(auth, credential) {\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n return [\n 2,\n $f394e9ac486578e6$var$_signInWithCredential($f394e9ac486578e6$export$a05254e7c3aeba6e(auth), credential)\n ];\n });\n });\n return $f394e9ac486578e6$var$_signInWithCredential1.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$export$ce26c07117d59d6a(user, credential) {\n return $f394e9ac486578e6$var$_linkWithCredential.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$var$_linkWithCredential() {\n $f394e9ac486578e6$var$_linkWithCredential = /**\r\n * Links the user account with the given credentials.\r\n *\r\n * @remarks\r\n * An {@link AuthProvider} can be used to generate the credential.\r\n *\r\n * @param user - The user.\r\n * @param credential - The auth credential.\r\n *\r\n * @public\r\n */ (0, $9167c88d5d99601b$export$7c398597f8905a1)(function(user, credential) {\n var userInternal;\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n switch(_state.label){\n case 0:\n userInternal = (0, $9b50b37fb8824044$export$4befe9b5fa509a1b)(user);\n return [\n 4,\n $f394e9ac486578e6$var$_assertLinkedStatus(false, userInternal, credential.providerId)\n ];\n case 1:\n _state.sent();\n return [\n 2,\n $f394e9ac486578e6$var$_link$1(userInternal, credential)\n ];\n }\n });\n });\n return $f394e9ac486578e6$var$_linkWithCredential.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$export$6559d589eb85fbb6(user, credential) {\n return $f394e9ac486578e6$var$_reauthenticateWithCredential.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$var$_reauthenticateWithCredential() {\n $f394e9ac486578e6$var$_reauthenticateWithCredential = /**\r\n * Re-authenticates a user using a fresh credential.\r\n *\r\n * @remarks\r\n * Use before operations such as {@link updatePassword} that require tokens from recent sign-in\r\n * attempts. This method can be used to recover from a `CREDENTIAL_TOO_OLD_LOGIN_AGAIN` error\r\n * or a `TOKEN_EXPIRED` error.\r\n *\r\n * @param user - The user.\r\n * @param credential - The auth credential.\r\n *\r\n * @public\r\n */ (0, $9167c88d5d99601b$export$7c398597f8905a1)(function(user, credential) {\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n return [\n 2,\n $f394e9ac486578e6$var$_reauthenticate((0, $9b50b37fb8824044$export$4befe9b5fa509a1b)(user), credential)\n ];\n });\n });\n return $f394e9ac486578e6$var$_reauthenticateWithCredential.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$var$signInWithCustomToken$1(auth, request) {\n return $f394e9ac486578e6$var$_signInWithCustomToken$1.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$var$_signInWithCustomToken$1() {\n $f394e9ac486578e6$var$_signInWithCustomToken$1 = /**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */ (0, $9167c88d5d99601b$export$7c398597f8905a1)(function(auth, request) {\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n return [\n 2,\n $f394e9ac486578e6$var$_performSignInRequest(auth, \"POST\" /* HttpMethod.POST */ , \"/v1/accounts:signInWithCustomToken\" /* Endpoint.SIGN_IN_WITH_CUSTOM_TOKEN */ , $f394e9ac486578e6$var$_addTidIfNecessary(auth, request))\n ];\n });\n });\n return $f394e9ac486578e6$var$_signInWithCustomToken$1.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$export$efca4cbe5dd06740(auth, customToken) {\n return $f394e9ac486578e6$var$_signInWithCustomToken.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$var$_signInWithCustomToken() {\n $f394e9ac486578e6$var$_signInWithCustomToken = /**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */ /**\r\n * Asynchronously signs in using a custom token.\r\n *\r\n * @remarks\r\n * Custom tokens are used to integrate Firebase Auth with existing auth systems, and must\r\n * be generated by an auth backend using the\r\n * {@link https://firebase.google.com/docs/reference/admin/node/admin.auth.Auth#createcustomtoken | createCustomToken}\r\n * method in the {@link https://firebase.google.com/docs/auth/admin | Admin SDK} .\r\n *\r\n * Fails with an error if the token is invalid, expired, or not accepted by the Firebase Auth service.\r\n *\r\n * @param auth - The {@link Auth} instance.\r\n * @param customToken - The custom token to sign in with.\r\n *\r\n * @public\r\n */ (0, $9167c88d5d99601b$export$7c398597f8905a1)(function(auth, customToken) {\n var authInternal, response, cred;\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n switch(_state.label){\n case 0:\n authInternal = $f394e9ac486578e6$export$a05254e7c3aeba6e(auth);\n return [\n 4,\n $f394e9ac486578e6$var$signInWithCustomToken$1(authInternal, {\n token: customToken,\n returnSecureToken: true\n })\n ];\n case 1:\n response = _state.sent();\n return [\n 4,\n $f394e9ac486578e6$var$UserCredentialImpl._fromIdTokenResponse(authInternal, \"signIn\" /* OperationType.SIGN_IN */ , response)\n ];\n case 2:\n cred = _state.sent();\n return [\n 4,\n authInternal._updateCurrentUser(cred.user)\n ];\n case 3:\n _state.sent();\n return [\n 2,\n cred\n ];\n }\n });\n });\n return $f394e9ac486578e6$var$_signInWithCustomToken.apply(this, arguments);\n}\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */ var $f394e9ac486578e6$var$MultiFactorInfoImpl = /*#__PURE__*/ function() {\n \"use strict\";\n function MultiFactorInfoImpl(factorId, response) {\n (0, $0c3f79e99c83f58f$export$2996f80ef42b8419)(this, MultiFactorInfoImpl);\n this.factorId = factorId;\n this.uid = response.mfaEnrollmentId;\n this.enrollmentTime = new Date(response.enrolledAt).toUTCString();\n this.displayName = response.displayName;\n }\n (0, $a27186eefd8c4b26$export$d60067ff2358eee8)(MultiFactorInfoImpl, null, [\n {\n key: \"_fromServerResponse\",\n value: function _fromServerResponse(auth, enrollment) {\n if (\"phoneInfo\" in enrollment) return $f394e9ac486578e6$var$PhoneMultiFactorInfoImpl._fromServerResponse(auth, enrollment);\n else if (\"totpInfo\" in enrollment) return $f394e9ac486578e6$var$TotpMultiFactorInfoImpl._fromServerResponse(auth, enrollment);\n return $f394e9ac486578e6$export$9fa96a7d116ea3ce(auth, \"internal-error\" /* AuthErrorCode.INTERNAL_ERROR */ );\n }\n }\n ]);\n return MultiFactorInfoImpl;\n}();\nvar $f394e9ac486578e6$var$PhoneMultiFactorInfoImpl = /*#__PURE__*/ function(MultiFactorInfoImpl) {\n \"use strict\";\n (0, $a3fe9d9bda1cd86f$export$7e4530ad35d3bb8)(PhoneMultiFactorInfoImpl, MultiFactorInfoImpl);\n var _super = (0, $60ddfe51b57fdc13$export$8dd05c13f5255580)(PhoneMultiFactorInfoImpl);\n function PhoneMultiFactorInfoImpl(response) {\n (0, $0c3f79e99c83f58f$export$2996f80ef42b8419)(this, PhoneMultiFactorInfoImpl);\n var _this;\n _this = _super.call(this, \"phone\" /* FactorId.PHONE */ , response);\n _this.phoneNumber = response.phoneInfo;\n return _this;\n }\n (0, $a27186eefd8c4b26$export$d60067ff2358eee8)(PhoneMultiFactorInfoImpl, null, [\n {\n key: \"_fromServerResponse\",\n value: function _fromServerResponse(_auth, enrollment) {\n return new PhoneMultiFactorInfoImpl(enrollment);\n }\n }\n ]);\n return PhoneMultiFactorInfoImpl;\n}($f394e9ac486578e6$var$MultiFactorInfoImpl);\nvar $f394e9ac486578e6$var$TotpMultiFactorInfoImpl = /*#__PURE__*/ function(MultiFactorInfoImpl) {\n \"use strict\";\n (0, $a3fe9d9bda1cd86f$export$7e4530ad35d3bb8)(TotpMultiFactorInfoImpl, MultiFactorInfoImpl);\n var _super = (0, $60ddfe51b57fdc13$export$8dd05c13f5255580)(TotpMultiFactorInfoImpl);\n function TotpMultiFactorInfoImpl(response) {\n (0, $0c3f79e99c83f58f$export$2996f80ef42b8419)(this, TotpMultiFactorInfoImpl);\n return _super.call(this, \"totp\" /* FactorId.TOTP */ , response);\n }\n (0, $a27186eefd8c4b26$export$d60067ff2358eee8)(TotpMultiFactorInfoImpl, null, [\n {\n key: \"_fromServerResponse\",\n value: function _fromServerResponse(_auth, enrollment) {\n return new TotpMultiFactorInfoImpl(enrollment);\n }\n }\n ]);\n return TotpMultiFactorInfoImpl;\n}($f394e9ac486578e6$var$MultiFactorInfoImpl);\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */ function $f394e9ac486578e6$var$_setActionCodeSettingsOnRequest(auth, request, actionCodeSettings) {\n var _a;\n $f394e9ac486578e6$export$890c4ad488842ce7(((_a = actionCodeSettings.url) === null || _a === void 0 ? void 0 : _a.length) > 0, auth, \"invalid-continue-uri\" /* AuthErrorCode.INVALID_CONTINUE_URI */ );\n $f394e9ac486578e6$export$890c4ad488842ce7(typeof actionCodeSettings.dynamicLinkDomain === \"undefined\" || actionCodeSettings.dynamicLinkDomain.length > 0, auth, \"invalid-dynamic-link-domain\" /* AuthErrorCode.INVALID_DYNAMIC_LINK_DOMAIN */ );\n request.continueUrl = actionCodeSettings.url;\n request.dynamicLinkDomain = actionCodeSettings.dynamicLinkDomain;\n request.canHandleCodeInApp = actionCodeSettings.handleCodeInApp;\n if (actionCodeSettings.iOS) {\n $f394e9ac486578e6$export$890c4ad488842ce7(actionCodeSettings.iOS.bundleId.length > 0, auth, \"missing-ios-bundle-id\" /* AuthErrorCode.MISSING_IOS_BUNDLE_ID */ );\n request.iOSBundleId = actionCodeSettings.iOS.bundleId;\n }\n if (actionCodeSettings.android) {\n $f394e9ac486578e6$export$890c4ad488842ce7(actionCodeSettings.android.packageName.length > 0, auth, \"missing-android-pkg-name\" /* AuthErrorCode.MISSING_ANDROID_PACKAGE_NAME */ );\n request.androidInstallApp = actionCodeSettings.android.installApp;\n request.androidMinimumVersionCode = actionCodeSettings.android.minimumVersion;\n request.androidPackageName = actionCodeSettings.android.packageName;\n }\n}\nfunction $f394e9ac486578e6$var$recachePasswordPolicy(auth) {\n return $f394e9ac486578e6$var$_recachePasswordPolicy.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$var$_recachePasswordPolicy() {\n $f394e9ac486578e6$var$_recachePasswordPolicy = /**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */ /**\r\n * Updates the password policy cached in the {@link Auth} instance if a policy is already\r\n * cached for the project or tenant.\r\n *\r\n * @remarks\r\n * We only fetch the password policy if the password did not meet policy requirements and\r\n * there is an existing policy cached. A developer must call validatePassword at least\r\n * once for the cache to be automatically updated.\r\n *\r\n * @param auth - The {@link Auth} instance.\r\n *\r\n * @private\r\n */ (0, $9167c88d5d99601b$export$7c398597f8905a1)(function(auth) {\n var authInternal;\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n switch(_state.label){\n case 0:\n authInternal = $f394e9ac486578e6$export$a05254e7c3aeba6e(auth);\n if (!authInternal._getPasswordPolicyInternal()) return [\n 3,\n 2\n ];\n return [\n 4,\n authInternal._updatePasswordPolicy()\n ];\n case 1:\n _state.sent();\n _state.label = 2;\n case 2:\n return [\n 2\n ];\n }\n });\n });\n return $f394e9ac486578e6$var$_recachePasswordPolicy.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$export$a8550f7dbe79f93a(auth, email, actionCodeSettings) {\n return $f394e9ac486578e6$var$_sendPasswordResetEmail.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$var$_sendPasswordResetEmail() {\n $f394e9ac486578e6$var$_sendPasswordResetEmail = /**\r\n * Sends a password reset email to the given email address. This method does not throw an error when\r\n * there's no user account with the given email address and\r\n * [Email Enumeration Protection](https://cloud.google.com/identity-platform/docs/admin/email-enumeration-protection) is enabled.\r\n *\r\n * @remarks\r\n * To complete the password reset, call {@link confirmPasswordReset} with the code supplied in\r\n * the email sent to the user, along with the new password specified by the user.\r\n *\r\n * @example\r\n * ```javascript\r\n * const actionCodeSettings = {\r\n * url: 'https://www.example.com/?email=user@example.com',\r\n * iOS: {\r\n * bundleId: 'com.example.ios'\r\n * },\r\n * android: {\r\n * packageName: 'com.example.android',\r\n * installApp: true,\r\n * minimumVersion: '12'\r\n * },\r\n * handleCodeInApp: true\r\n * };\r\n * await sendPasswordResetEmail(auth, 'user@example.com', actionCodeSettings);\r\n * // Obtain code from user.\r\n * await confirmPasswordReset('user@example.com', code);\r\n * ```\r\n *\r\n * @param auth - The {@link Auth} instance.\r\n * @param email - The user's email address.\r\n * @param actionCodeSettings - The {@link ActionCodeSettings}.\r\n *\r\n * @public\r\n */ (0, $9167c88d5d99601b$export$7c398597f8905a1)(function(auth, email, actionCodeSettings) {\n var authInternal, request;\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n switch(_state.label){\n case 0:\n authInternal = $f394e9ac486578e6$export$a05254e7c3aeba6e(auth);\n request = {\n requestType: \"PASSWORD_RESET\" /* ActionCodeOperation.PASSWORD_RESET */ ,\n email: email,\n clientType: \"CLIENT_TYPE_WEB\" /* RecaptchaClientType.WEB */ \n };\n if (actionCodeSettings) $f394e9ac486578e6$var$_setActionCodeSettingsOnRequest(authInternal, request, actionCodeSettings);\n return [\n 4,\n $f394e9ac486578e6$var$handleRecaptchaFlow(authInternal, request, \"getOobCode\" /* RecaptchaActionName.GET_OOB_CODE */ , $f394e9ac486578e6$var$sendPasswordResetEmail$1)\n ];\n case 1:\n _state.sent();\n return [\n 2\n ];\n }\n });\n });\n return $f394e9ac486578e6$var$_sendPasswordResetEmail.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$export$2e2af4578d910ddf(auth, oobCode, newPassword) {\n return $f394e9ac486578e6$var$_confirmPasswordReset.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$var$_confirmPasswordReset() {\n $f394e9ac486578e6$var$_confirmPasswordReset = /**\r\n * Completes the password reset process, given a confirmation code and new password.\r\n *\r\n * @param auth - The {@link Auth} instance.\r\n * @param oobCode - A confirmation code sent to the user.\r\n * @param newPassword - The new password.\r\n *\r\n * @public\r\n */ (0, $9167c88d5d99601b$export$7c398597f8905a1)(function(auth, oobCode, newPassword) {\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n switch(_state.label){\n case 0:\n return [\n 4,\n $f394e9ac486578e6$var$resetPassword((0, $9b50b37fb8824044$export$4befe9b5fa509a1b)(auth), {\n oobCode: oobCode,\n newPassword: newPassword\n }).catch(function() {\n var _ref = (0, $9167c88d5d99601b$export$7c398597f8905a1)(function(error) {\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n if (error.code === \"auth/password-does-not-meet-requirements\" /* AuthErrorCode.PASSWORD_DOES_NOT_MEET_REQUIREMENTS */ ) $f394e9ac486578e6$var$recachePasswordPolicy(auth);\n throw error;\n });\n });\n return function(error) {\n return _ref.apply(this, arguments);\n };\n }())\n ];\n case 1:\n _state.sent();\n return [\n 2\n ];\n }\n });\n // Do not return the email.\n });\n return $f394e9ac486578e6$var$_confirmPasswordReset.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$export$a93c5207d687da10(auth, oobCode) {\n return $f394e9ac486578e6$var$_applyActionCode.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$var$_applyActionCode() {\n $f394e9ac486578e6$var$_applyActionCode = /**\r\n * Applies a verification code sent to the user by email or other out-of-band mechanism.\r\n *\r\n * @param auth - The {@link Auth} instance.\r\n * @param oobCode - A verification code sent to the user.\r\n *\r\n * @public\r\n */ (0, $9167c88d5d99601b$export$7c398597f8905a1)(function(auth, oobCode) {\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n switch(_state.label){\n case 0:\n return [\n 4,\n $f394e9ac486578e6$var$applyActionCode$1((0, $9b50b37fb8824044$export$4befe9b5fa509a1b)(auth), {\n oobCode: oobCode\n })\n ];\n case 1:\n _state.sent();\n return [\n 2\n ];\n }\n });\n });\n return $f394e9ac486578e6$var$_applyActionCode.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$export$c3950d9923825c02(auth, oobCode) {\n return $f394e9ac486578e6$var$_checkActionCode.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$var$_checkActionCode() {\n $f394e9ac486578e6$var$_checkActionCode = /**\r\n * Checks a verification code sent to the user by email or other out-of-band mechanism.\r\n *\r\n * @returns metadata about the code.\r\n *\r\n * @param auth - The {@link Auth} instance.\r\n * @param oobCode - A verification code sent to the user.\r\n *\r\n * @public\r\n */ (0, $9167c88d5d99601b$export$7c398597f8905a1)(function(auth, oobCode) {\n var authModular, response, operation, multiFactorInfo;\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n switch(_state.label){\n case 0:\n authModular = (0, $9b50b37fb8824044$export$4befe9b5fa509a1b)(auth);\n return [\n 4,\n $f394e9ac486578e6$var$resetPassword(authModular, {\n oobCode: oobCode\n })\n ];\n case 1:\n response = _state.sent();\n // Email could be empty only if the request type is EMAIL_SIGNIN or\n // VERIFY_AND_CHANGE_EMAIL.\n // New email should not be empty if the request type is\n // VERIFY_AND_CHANGE_EMAIL.\n // Multi-factor info could not be empty if the request type is\n // REVERT_SECOND_FACTOR_ADDITION.\n operation = response.requestType;\n $f394e9ac486578e6$export$890c4ad488842ce7(operation, authModular, \"internal-error\" /* AuthErrorCode.INTERNAL_ERROR */ );\n switch(operation){\n case \"EMAIL_SIGNIN\" /* ActionCodeOperation.EMAIL_SIGNIN */ :\n break;\n case \"VERIFY_AND_CHANGE_EMAIL\" /* ActionCodeOperation.VERIFY_AND_CHANGE_EMAIL */ :\n $f394e9ac486578e6$export$890c4ad488842ce7(response.newEmail, authModular, \"internal-error\" /* AuthErrorCode.INTERNAL_ERROR */ );\n break;\n case \"REVERT_SECOND_FACTOR_ADDITION\" /* ActionCodeOperation.REVERT_SECOND_FACTOR_ADDITION */ :\n $f394e9ac486578e6$export$890c4ad488842ce7(response.mfaInfo, authModular, \"internal-error\" /* AuthErrorCode.INTERNAL_ERROR */ );\n // fall through\n default:\n $f394e9ac486578e6$export$890c4ad488842ce7(response.email, authModular, \"internal-error\" /* AuthErrorCode.INTERNAL_ERROR */ );\n }\n // The multi-factor info for revert second factor addition\n multiFactorInfo = null;\n if (response.mfaInfo) multiFactorInfo = $f394e9ac486578e6$var$MultiFactorInfoImpl._fromServerResponse($f394e9ac486578e6$export$a05254e7c3aeba6e(authModular), response.mfaInfo);\n return [\n 2,\n {\n data: {\n email: (response.requestType === \"VERIFY_AND_CHANGE_EMAIL\" /* ActionCodeOperation.VERIFY_AND_CHANGE_EMAIL */ ? response.newEmail : response.email) || null,\n previousEmail: (response.requestType === \"VERIFY_AND_CHANGE_EMAIL\" /* ActionCodeOperation.VERIFY_AND_CHANGE_EMAIL */ ? response.email : response.newEmail) || null,\n multiFactorInfo: multiFactorInfo\n },\n operation: operation\n }\n ];\n }\n });\n });\n return $f394e9ac486578e6$var$_checkActionCode.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$export$a9c996f45e5784d0(auth, code) {\n return $f394e9ac486578e6$var$_verifyPasswordResetCode.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$var$_verifyPasswordResetCode() {\n $f394e9ac486578e6$var$_verifyPasswordResetCode = /**\r\n * Checks a password reset code sent to the user by email or other out-of-band mechanism.\r\n *\r\n * @returns the user's email address if valid.\r\n *\r\n * @param auth - The {@link Auth} instance.\r\n * @param code - A verification code sent to the user.\r\n *\r\n * @public\r\n */ (0, $9167c88d5d99601b$export$7c398597f8905a1)(function(auth, code) {\n var data;\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n switch(_state.label){\n case 0:\n return [\n 4,\n $f394e9ac486578e6$export$c3950d9923825c02((0, $9b50b37fb8824044$export$4befe9b5fa509a1b)(auth), code)\n ];\n case 1:\n data = _state.sent().data;\n // Email should always be present since a code was sent to it\n return [\n 2,\n data.email\n ];\n }\n });\n });\n return $f394e9ac486578e6$var$_verifyPasswordResetCode.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$export$7910e0436ed8d1de(auth, email, password) {\n return $f394e9ac486578e6$var$_createUserWithEmailAndPassword.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$var$_createUserWithEmailAndPassword() {\n $f394e9ac486578e6$var$_createUserWithEmailAndPassword = /**\r\n * Creates a new user account associated with the specified email address and password.\r\n *\r\n * @remarks\r\n * On successful creation of the user account, this user will also be signed in to your application.\r\n *\r\n * User account creation can fail if the account already exists or the password is invalid.\r\n *\r\n * Note: The email address acts as a unique identifier for the user and enables an email-based\r\n * password reset. This function will create a new user account and set the initial user password.\r\n *\r\n * @param auth - The {@link Auth} instance.\r\n * @param email - The user's email address.\r\n * @param password - The user's chosen password.\r\n *\r\n * @public\r\n */ (0, $9167c88d5d99601b$export$7c398597f8905a1)(function(auth, email, password) {\n var authInternal, request, signUpResponse, response, userCredential;\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n switch(_state.label){\n case 0:\n authInternal = $f394e9ac486578e6$export$a05254e7c3aeba6e(auth);\n request = {\n returnSecureToken: true,\n email: email,\n password: password,\n clientType: \"CLIENT_TYPE_WEB\" /* RecaptchaClientType.WEB */ \n };\n signUpResponse = $f394e9ac486578e6$var$handleRecaptchaFlow(authInternal, request, \"signUpPassword\" /* RecaptchaActionName.SIGN_UP_PASSWORD */ , $f394e9ac486578e6$var$signUp);\n return [\n 4,\n signUpResponse.catch(function(error) {\n if (error.code === \"auth/password-does-not-meet-requirements\" /* AuthErrorCode.PASSWORD_DOES_NOT_MEET_REQUIREMENTS */ ) $f394e9ac486578e6$var$recachePasswordPolicy(auth);\n throw error;\n })\n ];\n case 1:\n response = _state.sent();\n return [\n 4,\n $f394e9ac486578e6$var$UserCredentialImpl._fromIdTokenResponse(authInternal, \"signIn\" /* OperationType.SIGN_IN */ , response)\n ];\n case 2:\n userCredential = _state.sent();\n return [\n 4,\n authInternal._updateCurrentUser(userCredential.user)\n ];\n case 3:\n _state.sent();\n return [\n 2,\n userCredential\n ];\n }\n });\n });\n return $f394e9ac486578e6$var$_createUserWithEmailAndPassword.apply(this, arguments);\n}\n/**\r\n * Asynchronously signs in using an email and password.\r\n *\r\n * @remarks\r\n * Fails with an error if the email address and password do not match.\r\n * When [Email Enumeration Protection](https://cloud.google.com/identity-platform/docs/admin/email-enumeration-protection) is enabled,\r\n * this method fails with \"auth/invalid-credential\" in case of an invalid email/password.\r\n *\r\n * Note: The user's password is NOT the password used to access the user's email account. The\r\n * email address serves as a unique identifier for the user, and the password is used to access\r\n * the user's account in your Firebase project. See also: {@link createUserWithEmailAndPassword}.\r\n *\r\n * @param auth - The {@link Auth} instance.\r\n * @param email - The users email address.\r\n * @param password - The users password.\r\n *\r\n * @public\r\n */ function $f394e9ac486578e6$export$555508cbc6add439(auth, email, password) {\n return $f394e9ac486578e6$export$3c2fa207a37baaea((0, $9b50b37fb8824044$export$4befe9b5fa509a1b)(auth), $f394e9ac486578e6$export$e7c866399fa523f5.credential(email, password)).catch(function() {\n var _ref = (0, $9167c88d5d99601b$export$7c398597f8905a1)(function(error) {\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n if (error.code === \"auth/password-does-not-meet-requirements\" /* AuthErrorCode.PASSWORD_DOES_NOT_MEET_REQUIREMENTS */ ) $f394e9ac486578e6$var$recachePasswordPolicy(auth);\n throw error;\n });\n });\n return function(error) {\n return _ref.apply(this, arguments);\n };\n }());\n}\nfunction $f394e9ac486578e6$export$2219238a014317b0(auth, email, actionCodeSettings) {\n return $f394e9ac486578e6$var$_sendSignInLinkToEmail.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$var$_sendSignInLinkToEmail() {\n $f394e9ac486578e6$var$_sendSignInLinkToEmail = /**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */ /**\r\n * Sends a sign-in email link to the user with the specified email.\r\n *\r\n * @remarks\r\n * The sign-in operation has to always be completed in the app unlike other out of band email\r\n * actions (password reset and email verifications). This is because, at the end of the flow,\r\n * the user is expected to be signed in and their Auth state persisted within the app.\r\n *\r\n * To complete sign in with the email link, call {@link signInWithEmailLink} with the email\r\n * address and the email link supplied in the email sent to the user.\r\n *\r\n * @example\r\n * ```javascript\r\n * const actionCodeSettings = {\r\n * url: 'https://www.example.com/?email=user@example.com',\r\n * iOS: {\r\n * bundleId: 'com.example.ios'\r\n * },\r\n * android: {\r\n * packageName: 'com.example.android',\r\n * installApp: true,\r\n * minimumVersion: '12'\r\n * },\r\n * handleCodeInApp: true\r\n * };\r\n * await sendSignInLinkToEmail(auth, 'user@example.com', actionCodeSettings);\r\n * // Obtain emailLink from the user.\r\n * if(isSignInWithEmailLink(auth, emailLink)) {\r\n * await signInWithEmailLink(auth, 'user@example.com', emailLink);\r\n * }\r\n * ```\r\n *\r\n * @param authInternal - The {@link Auth} instance.\r\n * @param email - The user's email address.\r\n * @param actionCodeSettings - The {@link ActionCodeSettings}.\r\n *\r\n * @public\r\n */ (0, $9167c88d5d99601b$export$7c398597f8905a1)(function(auth, email, actionCodeSettings) {\n var authInternal, request;\n function setActionCodeSettings(request, actionCodeSettings) {\n $f394e9ac486578e6$export$890c4ad488842ce7(actionCodeSettings.handleCodeInApp, authInternal, \"argument-error\" /* AuthErrorCode.ARGUMENT_ERROR */ );\n if (actionCodeSettings) $f394e9ac486578e6$var$_setActionCodeSettingsOnRequest(authInternal, request, actionCodeSettings);\n }\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n switch(_state.label){\n case 0:\n authInternal = $f394e9ac486578e6$export$a05254e7c3aeba6e(auth);\n request = {\n requestType: \"EMAIL_SIGNIN\" /* ActionCodeOperation.EMAIL_SIGNIN */ ,\n email: email,\n clientType: \"CLIENT_TYPE_WEB\" /* RecaptchaClientType.WEB */ \n };\n setActionCodeSettings(request, actionCodeSettings);\n return [\n 4,\n $f394e9ac486578e6$var$handleRecaptchaFlow(authInternal, request, \"getOobCode\" /* RecaptchaActionName.GET_OOB_CODE */ , $f394e9ac486578e6$var$sendSignInLinkToEmail$1)\n ];\n case 1:\n _state.sent();\n return [\n 2\n ];\n }\n });\n });\n return $f394e9ac486578e6$var$_sendSignInLinkToEmail.apply(this, arguments);\n}\n/**\r\n * Checks if an incoming link is a sign-in with email link suitable for {@link signInWithEmailLink}.\r\n *\r\n * @param auth - The {@link Auth} instance.\r\n * @param emailLink - The link sent to the user's email address.\r\n *\r\n * @public\r\n */ function $f394e9ac486578e6$export$4c3d22f3d993c33f(auth, emailLink) {\n var actionCodeUrl = $f394e9ac486578e6$export$f38c853ae54ed474.parseLink(emailLink);\n return (actionCodeUrl === null || actionCodeUrl === void 0 ? void 0 : actionCodeUrl.operation) === \"EMAIL_SIGNIN\" /* ActionCodeOperation.EMAIL_SIGNIN */ ;\n}\nfunction $f394e9ac486578e6$export$f787f51d84a910ad(auth, email, emailLink) {\n return $f394e9ac486578e6$var$_signInWithEmailLink.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$var$_signInWithEmailLink() {\n $f394e9ac486578e6$var$_signInWithEmailLink = /**\r\n * Asynchronously signs in using an email and sign-in email link.\r\n *\r\n * @remarks\r\n * If no link is passed, the link is inferred from the current URL.\r\n *\r\n * Fails with an error if the email address is invalid or OTP in email link expires.\r\n *\r\n * Note: Confirm the link is a sign-in email link before calling this method firebase.auth.Auth.isSignInWithEmailLink.\r\n *\r\n * @example\r\n * ```javascript\r\n * const actionCodeSettings = {\r\n * url: 'https://www.example.com/?email=user@example.com',\r\n * iOS: {\r\n * bundleId: 'com.example.ios'\r\n * },\r\n * android: {\r\n * packageName: 'com.example.android',\r\n * installApp: true,\r\n * minimumVersion: '12'\r\n * },\r\n * handleCodeInApp: true\r\n * };\r\n * await sendSignInLinkToEmail(auth, 'user@example.com', actionCodeSettings);\r\n * // Obtain emailLink from the user.\r\n * if(isSignInWithEmailLink(auth, emailLink)) {\r\n * await signInWithEmailLink(auth, 'user@example.com', emailLink);\r\n * }\r\n * ```\r\n *\r\n * @param auth - The {@link Auth} instance.\r\n * @param email - The user's email address.\r\n * @param emailLink - The link sent to the user's email address.\r\n *\r\n * @public\r\n */ (0, $9167c88d5d99601b$export$7c398597f8905a1)(function(auth, email, emailLink) {\n var authModular, credential;\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n authModular = (0, $9b50b37fb8824044$export$4befe9b5fa509a1b)(auth);\n credential = $f394e9ac486578e6$export$e7c866399fa523f5.credentialWithLink(email, emailLink || $f394e9ac486578e6$var$_getCurrentUrl());\n // Check if the tenant ID in the email link matches the tenant ID on Auth\n // instance.\n $f394e9ac486578e6$export$890c4ad488842ce7(credential._tenantId === (authModular.tenantId || null), authModular, \"tenant-id-mismatch\" /* AuthErrorCode.TENANT_ID_MISMATCH */ );\n return [\n 2,\n $f394e9ac486578e6$export$3c2fa207a37baaea(authModular, credential)\n ];\n });\n });\n return $f394e9ac486578e6$var$_signInWithEmailLink.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$var$createAuthUri(auth, request) {\n return $f394e9ac486578e6$var$_createAuthUri.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$var$_createAuthUri() {\n $f394e9ac486578e6$var$_createAuthUri = /**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */ (0, $9167c88d5d99601b$export$7c398597f8905a1)(function(auth, request) {\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n return [\n 2,\n $f394e9ac486578e6$var$_performApiRequest(auth, \"POST\" /* HttpMethod.POST */ , \"/v1/accounts:createAuthUri\" /* Endpoint.CREATE_AUTH_URI */ , $f394e9ac486578e6$var$_addTidIfNecessary(auth, request))\n ];\n });\n });\n return $f394e9ac486578e6$var$_createAuthUri.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$export$c9170ad7d4cd7e57(auth, email) {\n return $f394e9ac486578e6$var$_fetchSignInMethodsForEmail.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$var$_fetchSignInMethodsForEmail() {\n $f394e9ac486578e6$var$_fetchSignInMethodsForEmail = /**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */ /**\r\n * Gets the list of possible sign in methods for the given email address. This method returns an\r\n * empty list when [Email Enumeration Protection](https://cloud.google.com/identity-platform/docs/admin/email-enumeration-protection) is enabled, irrespective of the number of\r\n * authentication methods available for the given email.\r\n *\r\n * @remarks\r\n * This is useful to differentiate methods of sign-in for the same provider, eg.\r\n * {@link EmailAuthProvider} which has 2 methods of sign-in,\r\n * {@link SignInMethod}.EMAIL_PASSWORD and\r\n * {@link SignInMethod}.EMAIL_LINK.\r\n *\r\n * @param auth - The {@link Auth} instance.\r\n * @param email - The user's email address.\r\n *\r\n * Deprecated. Migrating off of this method is recommended as a security best-practice.\r\n * Learn more in the Identity Platform documentation for [Email Enumeration Protection](https://cloud.google.com/identity-platform/docs/admin/email-enumeration-protection).\r\n * @public\r\n */ (0, $9167c88d5d99601b$export$7c398597f8905a1)(function(auth, email) {\n var continueUri, request, signinMethods;\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n switch(_state.label){\n case 0:\n // createAuthUri returns an error if continue URI is not http or https.\n // For environments like Cordova, Chrome extensions, native frameworks, file\n // systems, etc, use http://localhost as continue URL.\n continueUri = $f394e9ac486578e6$var$_isHttpOrHttps() ? $f394e9ac486578e6$var$_getCurrentUrl() : \"http://localhost\";\n request = {\n identifier: email,\n continueUri: continueUri\n };\n return [\n 4,\n $f394e9ac486578e6$var$createAuthUri((0, $9b50b37fb8824044$export$4befe9b5fa509a1b)(auth), request)\n ];\n case 1:\n signinMethods = _state.sent().signinMethods;\n return [\n 2,\n signinMethods || []\n ];\n }\n });\n });\n return $f394e9ac486578e6$var$_fetchSignInMethodsForEmail.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$export$ee7c8ad385a60b7b(user, actionCodeSettings) {\n return $f394e9ac486578e6$var$_sendEmailVerification.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$var$_sendEmailVerification() {\n $f394e9ac486578e6$var$_sendEmailVerification = /**\r\n * Sends a verification email to a user.\r\n *\r\n * @remarks\r\n * The verification process is completed by calling {@link applyActionCode}.\r\n *\r\n * @example\r\n * ```javascript\r\n * const actionCodeSettings = {\r\n * url: 'https://www.example.com/?email=user@example.com',\r\n * iOS: {\r\n * bundleId: 'com.example.ios'\r\n * },\r\n * android: {\r\n * packageName: 'com.example.android',\r\n * installApp: true,\r\n * minimumVersion: '12'\r\n * },\r\n * handleCodeInApp: true\r\n * };\r\n * await sendEmailVerification(user, actionCodeSettings);\r\n * // Obtain code from the user.\r\n * await applyActionCode(auth, code);\r\n * ```\r\n *\r\n * @param user - The user.\r\n * @param actionCodeSettings - The {@link ActionCodeSettings}.\r\n *\r\n * @public\r\n */ (0, $9167c88d5d99601b$export$7c398597f8905a1)(function(user, actionCodeSettings) {\n var userInternal, idToken, request, email;\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n switch(_state.label){\n case 0:\n userInternal = (0, $9b50b37fb8824044$export$4befe9b5fa509a1b)(user);\n return [\n 4,\n user.getIdToken()\n ];\n case 1:\n idToken = _state.sent();\n request = {\n requestType: \"VERIFY_EMAIL\" /* ActionCodeOperation.VERIFY_EMAIL */ ,\n idToken: idToken\n };\n if (actionCodeSettings) $f394e9ac486578e6$var$_setActionCodeSettingsOnRequest(userInternal.auth, request, actionCodeSettings);\n return [\n 4,\n $f394e9ac486578e6$var$sendEmailVerification$1(userInternal.auth, request)\n ];\n case 2:\n email = _state.sent().email;\n if (!(email !== user.email)) return [\n 3,\n 4\n ];\n return [\n 4,\n user.reload()\n ];\n case 3:\n _state.sent();\n _state.label = 4;\n case 4:\n return [\n 2\n ];\n }\n });\n });\n return $f394e9ac486578e6$var$_sendEmailVerification.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$export$995eb9fca571757(user, newEmail, actionCodeSettings) {\n return $f394e9ac486578e6$var$_verifyBeforeUpdateEmail.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$var$_verifyBeforeUpdateEmail() {\n $f394e9ac486578e6$var$_verifyBeforeUpdateEmail = /**\r\n * Sends a verification email to a new email address.\r\n *\r\n * @remarks\r\n * The user's email will be updated to the new one after being verified.\r\n *\r\n * If you have a custom email action handler, you can complete the verification process by calling\r\n * {@link applyActionCode}.\r\n *\r\n * @example\r\n * ```javascript\r\n * const actionCodeSettings = {\r\n * url: 'https://www.example.com/?email=user@example.com',\r\n * iOS: {\r\n * bundleId: 'com.example.ios'\r\n * },\r\n * android: {\r\n * packageName: 'com.example.android',\r\n * installApp: true,\r\n * minimumVersion: '12'\r\n * },\r\n * handleCodeInApp: true\r\n * };\r\n * await verifyBeforeUpdateEmail(user, 'newemail@example.com', actionCodeSettings);\r\n * // Obtain code from the user.\r\n * await applyActionCode(auth, code);\r\n * ```\r\n *\r\n * @param user - The user.\r\n * @param newEmail - The new email address to be verified before update.\r\n * @param actionCodeSettings - The {@link ActionCodeSettings}.\r\n *\r\n * @public\r\n */ (0, $9167c88d5d99601b$export$7c398597f8905a1)(function(user, newEmail, actionCodeSettings) {\n var userInternal, idToken, request, email;\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n switch(_state.label){\n case 0:\n userInternal = (0, $9b50b37fb8824044$export$4befe9b5fa509a1b)(user);\n return [\n 4,\n user.getIdToken()\n ];\n case 1:\n idToken = _state.sent();\n request = {\n requestType: \"VERIFY_AND_CHANGE_EMAIL\" /* ActionCodeOperation.VERIFY_AND_CHANGE_EMAIL */ ,\n idToken: idToken,\n newEmail: newEmail\n };\n if (actionCodeSettings) $f394e9ac486578e6$var$_setActionCodeSettingsOnRequest(userInternal.auth, request, actionCodeSettings);\n return [\n 4,\n $f394e9ac486578e6$var$verifyAndChangeEmail(userInternal.auth, request)\n ];\n case 2:\n email = _state.sent().email;\n if (!(email !== user.email)) return [\n 3,\n 4\n ];\n // If the local copy of the email on user is outdated, reload the\n // user.\n return [\n 4,\n user.reload()\n ];\n case 3:\n _state.sent();\n _state.label = 4;\n case 4:\n return [\n 2\n ];\n }\n });\n });\n return $f394e9ac486578e6$var$_verifyBeforeUpdateEmail.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$var$updateProfile$1(auth, request) {\n return $f394e9ac486578e6$var$_updateProfile$1.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$var$_updateProfile$1() {\n $f394e9ac486578e6$var$_updateProfile$1 = /**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */ (0, $9167c88d5d99601b$export$7c398597f8905a1)(function(auth, request) {\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n return [\n 2,\n $f394e9ac486578e6$var$_performApiRequest(auth, \"POST\" /* HttpMethod.POST */ , \"/v1/accounts:update\" /* Endpoint.SET_ACCOUNT_INFO */ , request)\n ];\n });\n });\n return $f394e9ac486578e6$var$_updateProfile$1.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$export$21579262ef46735b(user, _) {\n return $f394e9ac486578e6$var$_updateProfile.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$var$_updateProfile() {\n $f394e9ac486578e6$var$_updateProfile = /**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */ /**\r\n * Updates a user's profile data.\r\n *\r\n * @param user - The user.\r\n * @param profile - The profile's `displayName` and `photoURL` to update.\r\n *\r\n * @public\r\n */ (0, $9167c88d5d99601b$export$7c398597f8905a1)(function(user, param) {\n var displayName, photoUrl, userInternal, idToken, profileRequest, response, passwordProvider;\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n switch(_state.label){\n case 0:\n displayName = param.displayName, photoUrl = param.photoURL;\n if (displayName === undefined && photoUrl === undefined) return [\n 2\n ];\n userInternal = (0, $9b50b37fb8824044$export$4befe9b5fa509a1b)(user);\n return [\n 4,\n userInternal.getIdToken()\n ];\n case 1:\n idToken = _state.sent();\n profileRequest = {\n idToken: idToken,\n displayName: displayName,\n photoUrl: photoUrl,\n returnSecureToken: true\n };\n return [\n 4,\n $f394e9ac486578e6$var$_logoutIfInvalidated(userInternal, $f394e9ac486578e6$var$updateProfile$1(userInternal.auth, profileRequest))\n ];\n case 2:\n response = _state.sent();\n userInternal.displayName = response.displayName || null;\n userInternal.photoURL = response.photoUrl || null;\n // Update the password provider as well\n passwordProvider = userInternal.providerData.find(function(param) {\n var providerId = param.providerId;\n return providerId === \"password\" /* ProviderId.PASSWORD */ ;\n });\n if (passwordProvider) {\n passwordProvider.displayName = userInternal.displayName;\n passwordProvider.photoURL = userInternal.photoURL;\n }\n return [\n 4,\n userInternal._updateTokensIfNecessary(response)\n ];\n case 3:\n _state.sent();\n return [\n 2\n ];\n }\n });\n });\n return $f394e9ac486578e6$var$_updateProfile.apply(this, arguments);\n}\n/**\r\n * Updates the user's email address.\r\n *\r\n * @remarks\r\n * An email will be sent to the original email address (if it was set) that allows to revoke the\r\n * email address change, in order to protect them from account hijacking.\r\n *\r\n * Important: this is a security sensitive operation that requires the user to have recently signed\r\n * in. If this requirement isn't met, ask the user to authenticate again and then call\r\n * {@link reauthenticateWithCredential}.\r\n *\r\n * @param user - The user.\r\n * @param newEmail - The new email address.\r\n *\r\n * Throws \"auth/operation-not-allowed\" error when [Email Enumeration Protection](https://cloud.google.com/identity-platform/docs/admin/email-enumeration-protection) is enabled.\r\n * Deprecated - Use {@link verifyBeforeUpdateEmail} instead.\r\n *\r\n * @public\r\n */ function $f394e9ac486578e6$export$ab83b03e4111b1d0(user, newEmail) {\n return $f394e9ac486578e6$var$updateEmailOrPassword((0, $9b50b37fb8824044$export$4befe9b5fa509a1b)(user), newEmail, null);\n}\n/**\r\n * Updates the user's password.\r\n *\r\n * @remarks\r\n * Important: this is a security sensitive operation that requires the user to have recently signed\r\n * in. If this requirement isn't met, ask the user to authenticate again and then call\r\n * {@link reauthenticateWithCredential}.\r\n *\r\n * @param user - The user.\r\n * @param newPassword - The new password.\r\n *\r\n * @public\r\n */ function $f394e9ac486578e6$export$1a82df3d29112e01(user, newPassword) {\n return $f394e9ac486578e6$var$updateEmailOrPassword((0, $9b50b37fb8824044$export$4befe9b5fa509a1b)(user), null, newPassword);\n}\nfunction $f394e9ac486578e6$var$updateEmailOrPassword(user, email, password) {\n return $f394e9ac486578e6$var$_updateEmailOrPassword.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$var$_updateEmailOrPassword() {\n $f394e9ac486578e6$var$_updateEmailOrPassword = (0, $9167c88d5d99601b$export$7c398597f8905a1)(function(user, email, password) {\n var auth, idToken, request, response;\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n switch(_state.label){\n case 0:\n auth = user.auth;\n return [\n 4,\n user.getIdToken()\n ];\n case 1:\n idToken = _state.sent();\n request = {\n idToken: idToken,\n returnSecureToken: true\n };\n if (email) request.email = email;\n if (password) request.password = password;\n return [\n 4,\n $f394e9ac486578e6$var$_logoutIfInvalidated(user, $f394e9ac486578e6$var$updateEmailPassword(auth, request))\n ];\n case 2:\n response = _state.sent();\n return [\n 4,\n user._updateTokensIfNecessary(response, /* reload */ true)\n ];\n case 3:\n _state.sent();\n return [\n 2\n ];\n }\n });\n });\n return $f394e9ac486578e6$var$_updateEmailOrPassword.apply(this, arguments);\n}\n/**\r\n * @license\r\n * Copyright 2019 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */ /**\r\n * Parse the `AdditionalUserInfo` from the ID token response.\r\n *\r\n */ function $f394e9ac486578e6$var$_fromIdTokenResponse(idTokenResponse) {\n var _a, _b;\n if (!idTokenResponse) return null;\n var providerId = idTokenResponse.providerId;\n var profile = idTokenResponse.rawUserInfo ? JSON.parse(idTokenResponse.rawUserInfo) : {};\n var isNewUser = idTokenResponse.isNewUser || idTokenResponse.kind === \"identitytoolkit#SignupNewUserResponse\" /* IdTokenResponseKind.SignupNewUser */ ;\n if (!providerId && (idTokenResponse === null || idTokenResponse === void 0 ? void 0 : idTokenResponse.idToken)) {\n var signInProvider = (_b = (_a = $f394e9ac486578e6$var$_parseToken(idTokenResponse.idToken)) === null || _a === void 0 ? void 0 : _a.firebase) === null || _b === void 0 ? void 0 : _b[\"sign_in_provider\"];\n if (signInProvider) {\n var filteredProviderId = signInProvider !== \"anonymous\" /* ProviderId.ANONYMOUS */ && signInProvider !== \"custom\" /* ProviderId.CUSTOM */ ? signInProvider : null;\n // Uses generic class in accordance with the legacy SDK.\n return new $f394e9ac486578e6$var$GenericAdditionalUserInfo(isNewUser, filteredProviderId);\n }\n }\n if (!providerId) return null;\n switch(providerId){\n case \"facebook.com\" /* ProviderId.FACEBOOK */ :\n return new $f394e9ac486578e6$var$FacebookAdditionalUserInfo(isNewUser, profile);\n case \"github.com\" /* ProviderId.GITHUB */ :\n return new $f394e9ac486578e6$var$GithubAdditionalUserInfo(isNewUser, profile);\n case \"google.com\" /* ProviderId.GOOGLE */ :\n return new $f394e9ac486578e6$var$GoogleAdditionalUserInfo(isNewUser, profile);\n case \"twitter.com\" /* ProviderId.TWITTER */ :\n return new $f394e9ac486578e6$var$TwitterAdditionalUserInfo(isNewUser, profile, idTokenResponse.screenName || null);\n case \"custom\" /* ProviderId.CUSTOM */ :\n case \"anonymous\" /* ProviderId.ANONYMOUS */ :\n return new $f394e9ac486578e6$var$GenericAdditionalUserInfo(isNewUser, null);\n default:\n return new $f394e9ac486578e6$var$GenericAdditionalUserInfo(isNewUser, providerId, profile);\n }\n}\nvar $f394e9ac486578e6$var$GenericAdditionalUserInfo = function GenericAdditionalUserInfo(isNewUser, providerId) {\n \"use strict\";\n var profile = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};\n (0, $0c3f79e99c83f58f$export$2996f80ef42b8419)(this, GenericAdditionalUserInfo);\n this.isNewUser = isNewUser;\n this.providerId = providerId;\n this.profile = profile;\n};\nvar $f394e9ac486578e6$var$FederatedAdditionalUserInfoWithUsername = /*#__PURE__*/ function(GenericAdditionalUserInfo) {\n \"use strict\";\n (0, $a3fe9d9bda1cd86f$export$7e4530ad35d3bb8)(FederatedAdditionalUserInfoWithUsername, GenericAdditionalUserInfo);\n var _super = (0, $60ddfe51b57fdc13$export$8dd05c13f5255580)(FederatedAdditionalUserInfoWithUsername);\n function FederatedAdditionalUserInfoWithUsername(isNewUser, providerId, profile, username) {\n (0, $0c3f79e99c83f58f$export$2996f80ef42b8419)(this, FederatedAdditionalUserInfoWithUsername);\n var _this;\n _this = _super.call(this, isNewUser, providerId, profile);\n _this.username = username;\n return _this;\n }\n return FederatedAdditionalUserInfoWithUsername;\n}($f394e9ac486578e6$var$GenericAdditionalUserInfo);\nvar $f394e9ac486578e6$var$FacebookAdditionalUserInfo = /*#__PURE__*/ function(GenericAdditionalUserInfo) {\n \"use strict\";\n (0, $a3fe9d9bda1cd86f$export$7e4530ad35d3bb8)(FacebookAdditionalUserInfo, GenericAdditionalUserInfo);\n var _super = (0, $60ddfe51b57fdc13$export$8dd05c13f5255580)(FacebookAdditionalUserInfo);\n function FacebookAdditionalUserInfo(isNewUser, profile) {\n (0, $0c3f79e99c83f58f$export$2996f80ef42b8419)(this, FacebookAdditionalUserInfo);\n return _super.call(this, isNewUser, \"facebook.com\" /* ProviderId.FACEBOOK */ , profile);\n }\n return FacebookAdditionalUserInfo;\n}($f394e9ac486578e6$var$GenericAdditionalUserInfo);\nvar $f394e9ac486578e6$var$GithubAdditionalUserInfo = /*#__PURE__*/ function(FederatedAdditionalUserInfoWithUsername) {\n \"use strict\";\n (0, $a3fe9d9bda1cd86f$export$7e4530ad35d3bb8)(GithubAdditionalUserInfo, FederatedAdditionalUserInfoWithUsername);\n var _super = (0, $60ddfe51b57fdc13$export$8dd05c13f5255580)(GithubAdditionalUserInfo);\n function GithubAdditionalUserInfo(isNewUser, profile) {\n (0, $0c3f79e99c83f58f$export$2996f80ef42b8419)(this, GithubAdditionalUserInfo);\n return _super.call(this, isNewUser, \"github.com\" /* ProviderId.GITHUB */ , profile, typeof (profile === null || profile === void 0 ? void 0 : profile.login) === \"string\" ? profile === null || profile === void 0 ? void 0 : profile.login : null);\n }\n return GithubAdditionalUserInfo;\n}($f394e9ac486578e6$var$FederatedAdditionalUserInfoWithUsername);\nvar $f394e9ac486578e6$var$GoogleAdditionalUserInfo = /*#__PURE__*/ function(GenericAdditionalUserInfo) {\n \"use strict\";\n (0, $a3fe9d9bda1cd86f$export$7e4530ad35d3bb8)(GoogleAdditionalUserInfo, GenericAdditionalUserInfo);\n var _super = (0, $60ddfe51b57fdc13$export$8dd05c13f5255580)(GoogleAdditionalUserInfo);\n function GoogleAdditionalUserInfo(isNewUser, profile) {\n (0, $0c3f79e99c83f58f$export$2996f80ef42b8419)(this, GoogleAdditionalUserInfo);\n return _super.call(this, isNewUser, \"google.com\" /* ProviderId.GOOGLE */ , profile);\n }\n return GoogleAdditionalUserInfo;\n}($f394e9ac486578e6$var$GenericAdditionalUserInfo);\nvar $f394e9ac486578e6$var$TwitterAdditionalUserInfo = /*#__PURE__*/ function(FederatedAdditionalUserInfoWithUsername) {\n \"use strict\";\n (0, $a3fe9d9bda1cd86f$export$7e4530ad35d3bb8)(TwitterAdditionalUserInfo, FederatedAdditionalUserInfoWithUsername);\n var _super = (0, $60ddfe51b57fdc13$export$8dd05c13f5255580)(TwitterAdditionalUserInfo);\n function TwitterAdditionalUserInfo(isNewUser, profile, screenName) {\n (0, $0c3f79e99c83f58f$export$2996f80ef42b8419)(this, TwitterAdditionalUserInfo);\n return _super.call(this, isNewUser, \"twitter.com\" /* ProviderId.TWITTER */ , profile, screenName);\n }\n return TwitterAdditionalUserInfo;\n}($f394e9ac486578e6$var$FederatedAdditionalUserInfoWithUsername);\n/**\r\n * Extracts provider specific {@link AdditionalUserInfo} for the given credential.\r\n *\r\n * @param userCredential - The user credential.\r\n *\r\n * @public\r\n */ function $f394e9ac486578e6$export$8a5498727ef6be21(userCredential) {\n var user = userCredential.user, _tokenResponse = userCredential._tokenResponse;\n if (user.isAnonymous && !_tokenResponse) // Handle the special case where signInAnonymously() gets called twice.\n // No network call is made so there's nothing to actually fill this in\n return {\n providerId: null,\n isNewUser: false,\n profile: null\n };\n return $f394e9ac486578e6$var$_fromIdTokenResponse(_tokenResponse);\n}\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */ // Non-optional auth methods.\n/**\r\n * Changes the type of persistence on the {@link Auth} instance for the currently saved\r\n * `Auth` session and applies this type of persistence for future sign-in requests, including\r\n * sign-in with redirect requests.\r\n *\r\n * @remarks\r\n * This makes it easy for a user signing in to specify whether their session should be\r\n * remembered or not. It also makes it easier to never persist the `Auth` state for applications\r\n * that are shared by other users or have sensitive data.\r\n *\r\n * This method does not work in a Node.js environment.\r\n *\r\n * @example\r\n * ```javascript\r\n * setPersistence(auth, browserSessionPersistence);\r\n * ```\r\n *\r\n * @param auth - The {@link Auth} instance.\r\n * @param persistence - The {@link Persistence} to use.\r\n * @returns A `Promise` that resolves once the persistence change has completed\r\n *\r\n * @public\r\n */ function $f394e9ac486578e6$export$9e5f44173e64f162(auth, persistence) {\n return (0, $9b50b37fb8824044$export$4befe9b5fa509a1b)(auth).setPersistence(persistence);\n}\n/**\r\n * Loads the reCAPTCHA configuration into the `Auth` instance.\r\n *\r\n * @remarks\r\n * This will load the reCAPTCHA config, which indicates whether the reCAPTCHA\r\n * verification flow should be triggered for each auth provider, into the\r\n * current Auth session.\r\n *\r\n * If initializeRecaptchaConfig() is not invoked, the auth flow will always start\r\n * without reCAPTCHA verification. If the provider is configured to require reCAPTCHA\r\n * verification, the SDK will transparently load the reCAPTCHA config and restart the\r\n * auth flows.\r\n *\r\n * Thus, by calling this optional method, you will reduce the latency of future auth flows.\r\n * Loading the reCAPTCHA config early will also enhance the signal collected by reCAPTCHA.\r\n *\r\n * This method does not work in a Node.js environment.\r\n *\r\n * @example\r\n * ```javascript\r\n * initializeRecaptchaConfig(auth);\r\n * ```\r\n *\r\n * @param auth - The {@link Auth} instance.\r\n *\r\n * @public\r\n */ function $f394e9ac486578e6$export$625550452a3fa3ec(auth) {\n return $f394e9ac486578e6$var$_initializeRecaptchaConfig(auth);\n}\nfunction $f394e9ac486578e6$export$90a7f3efeed30595(auth, password) {\n return $f394e9ac486578e6$var$_validatePassword.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$var$_validatePassword() {\n $f394e9ac486578e6$var$_validatePassword = /**\r\n * Validates the password against the password policy configured for the project or tenant.\r\n *\r\n * @remarks\r\n * If no tenant ID is set on the `Auth` instance, then this method will use the password\r\n * policy configured for the project. Otherwise, this method will use the policy configured\r\n * for the tenant. If a password policy has not been configured, then the default policy\r\n * configured for all projects will be used.\r\n *\r\n * If an auth flow fails because a submitted password does not meet the password policy\r\n * requirements and this method has previously been called, then this method will use the\r\n * most recent policy available when called again.\r\n *\r\n * @example\r\n * ```javascript\r\n * validatePassword(auth, 'some-password');\r\n * ```\r\n *\r\n * @param auth The {@link Auth} instance.\r\n * @param password The password to validate.\r\n *\r\n * @public\r\n */ (0, $9167c88d5d99601b$export$7c398597f8905a1)(function(auth, password) {\n var authInternal;\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n authInternal = $f394e9ac486578e6$export$a05254e7c3aeba6e(auth);\n return [\n 2,\n authInternal.validatePassword(password)\n ];\n });\n });\n return $f394e9ac486578e6$var$_validatePassword.apply(this, arguments);\n}\n/**\r\n * Adds an observer for changes to the signed-in user's ID token.\r\n *\r\n * @remarks\r\n * This includes sign-in, sign-out, and token refresh events.\r\n * This will not be triggered automatically upon ID token expiration. Use {@link User.getIdToken} to refresh the ID token.\r\n *\r\n * @param auth - The {@link Auth} instance.\r\n * @param nextOrObserver - callback triggered on change.\r\n * @param error - Deprecated. This callback is never triggered. Errors\r\n * on signing in/out can be caught in promises returned from\r\n * sign-in/sign-out functions.\r\n * @param completed - Deprecated. This callback is never triggered.\r\n *\r\n * @public\r\n */ function $f394e9ac486578e6$export$efccba1c4a2ef57b(auth, nextOrObserver, error, completed) {\n return (0, $9b50b37fb8824044$export$4befe9b5fa509a1b)(auth).onIdTokenChanged(nextOrObserver, error, completed);\n}\n/**\r\n * Adds a blocking callback that runs before an auth state change\r\n * sets a new user.\r\n *\r\n * @param auth - The {@link Auth} instance.\r\n * @param callback - callback triggered before new user value is set.\r\n * If this throws, it blocks the user from being set.\r\n * @param onAbort - callback triggered if a later `beforeAuthStateChanged()`\r\n * callback throws, allowing you to undo any side effects.\r\n */ function $f394e9ac486578e6$export$d141bba7fdc215a3(auth, callback, onAbort) {\n return (0, $9b50b37fb8824044$export$4befe9b5fa509a1b)(auth).beforeAuthStateChanged(callback, onAbort);\n}\n/**\r\n * Adds an observer for changes to the user's sign-in state.\r\n *\r\n * @remarks\r\n * To keep the old behavior, see {@link onIdTokenChanged}.\r\n *\r\n * @param auth - The {@link Auth} instance.\r\n * @param nextOrObserver - callback triggered on change.\r\n * @param error - Deprecated. This callback is never triggered. Errors\r\n * on signing in/out can be caught in promises returned from\r\n * sign-in/sign-out functions.\r\n * @param completed - Deprecated. This callback is never triggered.\r\n *\r\n * @public\r\n */ function $f394e9ac486578e6$export$4a5767248b18ef41(auth, nextOrObserver, error, completed) {\n return (0, $9b50b37fb8824044$export$4befe9b5fa509a1b)(auth).onAuthStateChanged(nextOrObserver, error, completed);\n}\n/**\r\n * Sets the current language to the default device/browser preference.\r\n *\r\n * @param auth - The {@link Auth} instance.\r\n *\r\n * @public\r\n */ function $f394e9ac486578e6$export$df995fae86a55f06(auth) {\n (0, $9b50b37fb8824044$export$4befe9b5fa509a1b)(auth).useDeviceLanguage();\n}\n/**\r\n * Asynchronously sets the provided user as {@link Auth.currentUser} on the\r\n * {@link Auth} instance.\r\n *\r\n * @remarks\r\n * A new instance copy of the user provided will be made and set as currentUser.\r\n *\r\n * This will trigger {@link onAuthStateChanged} and {@link onIdTokenChanged} listeners\r\n * like other sign in methods.\r\n *\r\n * The operation fails with an error if the user to be updated belongs to a different Firebase\r\n * project.\r\n *\r\n * @param auth - The {@link Auth} instance.\r\n * @param user - The new {@link User}.\r\n *\r\n * @public\r\n */ function $f394e9ac486578e6$export$ef35774e6d314e91(auth, user) {\n return (0, $9b50b37fb8824044$export$4befe9b5fa509a1b)(auth).updateCurrentUser(user);\n}\n/**\r\n * Signs out the current user.\r\n *\r\n * @param auth - The {@link Auth} instance.\r\n *\r\n * @public\r\n */ function $f394e9ac486578e6$export$e7094788287c5e9b(auth) {\n return (0, $9b50b37fb8824044$export$4befe9b5fa509a1b)(auth).signOut();\n}\n/**\r\n * Revokes the given access token. Currently only supports Apple OAuth access tokens.\r\n *\r\n * @param auth - The {@link Auth} instance.\r\n * @param token - The Apple OAuth access token.\r\n *\r\n * @public\r\n */ function $f394e9ac486578e6$export$96f57966bedc81b4(auth, token) {\n var authInternal = $f394e9ac486578e6$export$a05254e7c3aeba6e(auth);\n return authInternal.revokeAccessToken(token);\n}\nfunction $f394e9ac486578e6$export$a9c23c6ac3fc3eca(user) {\n return $f394e9ac486578e6$var$_deleteUser.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$var$_deleteUser() {\n $f394e9ac486578e6$var$_deleteUser = /**\r\n * Deletes and signs out the user.\r\n *\r\n * @remarks\r\n * Important: this is a security-sensitive operation that requires the user to have recently\r\n * signed in. If this requirement isn't met, ask the user to authenticate again and then call\r\n * {@link reauthenticateWithCredential}.\r\n *\r\n * @param user - The user.\r\n *\r\n * @public\r\n */ (0, $9167c88d5d99601b$export$7c398597f8905a1)(function(user) {\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n return [\n 2,\n (0, $9b50b37fb8824044$export$4befe9b5fa509a1b)(user).delete()\n ];\n });\n });\n return $f394e9ac486578e6$var$_deleteUser.apply(this, arguments);\n}\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */ var $f394e9ac486578e6$var$MultiFactorSessionImpl = /*#__PURE__*/ function() {\n \"use strict\";\n function MultiFactorSessionImpl(type, credential, user) {\n (0, $0c3f79e99c83f58f$export$2996f80ef42b8419)(this, MultiFactorSessionImpl);\n this.type = type;\n this.credential = credential;\n this.user = user;\n }\n (0, $a27186eefd8c4b26$export$d60067ff2358eee8)(MultiFactorSessionImpl, [\n {\n key: \"toJSON\",\n value: function toJSON() {\n var key = this.type === \"enroll\" /* MultiFactorSessionType.ENROLL */ ? \"idToken\" : \"pendingCredential\";\n return {\n multiFactorSession: (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)({}, key, this.credential)\n };\n }\n }\n ], [\n {\n key: \"_fromIdtoken\",\n value: function _fromIdtoken(idToken, user) {\n return new MultiFactorSessionImpl(\"enroll\" /* MultiFactorSessionType.ENROLL */ , idToken, user);\n }\n },\n {\n key: \"_fromMfaPendingCredential\",\n value: function _fromMfaPendingCredential(mfaPendingCredential) {\n return new MultiFactorSessionImpl(\"signin\" /* MultiFactorSessionType.SIGN_IN */ , mfaPendingCredential);\n }\n },\n {\n key: \"fromJSON\",\n value: function fromJSON(obj) {\n var _a, _b;\n if (obj === null || obj === void 0 ? void 0 : obj.multiFactorSession) {\n if ((_a = obj.multiFactorSession) === null || _a === void 0 ? void 0 : _a.pendingCredential) return MultiFactorSessionImpl._fromMfaPendingCredential(obj.multiFactorSession.pendingCredential);\n else if ((_b = obj.multiFactorSession) === null || _b === void 0 ? void 0 : _b.idToken) return MultiFactorSessionImpl._fromIdtoken(obj.multiFactorSession.idToken);\n }\n return null;\n }\n }\n ]);\n return MultiFactorSessionImpl;\n}();\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */ var $f394e9ac486578e6$var$MultiFactorResolverImpl = /*#__PURE__*/ function() {\n \"use strict\";\n function MultiFactorResolverImpl(session, hints, signInResolver) {\n (0, $0c3f79e99c83f58f$export$2996f80ef42b8419)(this, MultiFactorResolverImpl);\n this.session = session;\n this.hints = hints;\n this.signInResolver = signInResolver;\n }\n (0, $a27186eefd8c4b26$export$d60067ff2358eee8)(MultiFactorResolverImpl, [\n {\n key: \"resolveSignIn\",\n value: function resolveSignIn(assertionExtern) {\n var _this = this;\n return (0, $9167c88d5d99601b$export$7c398597f8905a1)(function() {\n var assertion;\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n assertion = assertionExtern;\n return [\n 2,\n _this.signInResolver(assertion)\n ];\n });\n })();\n }\n }\n ], [\n {\n key: \"_fromError\",\n value: /** @internal */ function _fromError(authExtern, error) {\n var auth = $f394e9ac486578e6$export$a05254e7c3aeba6e(authExtern);\n var serverResponse = error.customData._serverResponse;\n var hints = (serverResponse.mfaInfo || []).map(function(enrollment) {\n return $f394e9ac486578e6$var$MultiFactorInfoImpl._fromServerResponse(auth, enrollment);\n });\n $f394e9ac486578e6$export$890c4ad488842ce7(serverResponse.mfaPendingCredential, auth, \"internal-error\" /* AuthErrorCode.INTERNAL_ERROR */ );\n var session = $f394e9ac486578e6$var$MultiFactorSessionImpl._fromMfaPendingCredential(serverResponse.mfaPendingCredential);\n return new MultiFactorResolverImpl(session, hints, function() {\n var _ref = (0, $9167c88d5d99601b$export$7c398597f8905a1)(function(assertion) {\n var mfaResponse, idTokenResponse, _, userCredential;\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n switch(_state.label){\n case 0:\n return [\n 4,\n assertion._process(auth, session)\n ];\n case 1:\n mfaResponse = _state.sent();\n // Clear out the unneeded fields from the old login response\n delete serverResponse.mfaInfo;\n delete serverResponse.mfaPendingCredential;\n // Use in the new token & refresh token in the old response\n idTokenResponse = Object.assign(Object.assign({}, serverResponse), {\n idToken: mfaResponse.idToken,\n refreshToken: mfaResponse.refreshToken\n });\n _ = error.operationType;\n switch(_){\n case \"signIn\" /* OperationType.SIGN_IN */ :\n return [\n 3,\n 2\n ];\n case \"reauthenticate\" /* OperationType.REAUTHENTICATE */ :\n return [\n 3,\n 5\n ];\n }\n return [\n 3,\n 6\n ];\n case 2:\n return [\n 4,\n $f394e9ac486578e6$var$UserCredentialImpl._fromIdTokenResponse(auth, error.operationType, idTokenResponse)\n ];\n case 3:\n userCredential = _state.sent();\n return [\n 4,\n auth._updateCurrentUser(userCredential.user)\n ];\n case 4:\n _state.sent();\n return [\n 2,\n userCredential\n ];\n case 5:\n $f394e9ac486578e6$export$890c4ad488842ce7(error.user, auth, \"internal-error\" /* AuthErrorCode.INTERNAL_ERROR */ );\n return [\n 2,\n $f394e9ac486578e6$var$UserCredentialImpl._forOperation(error.user, error.operationType, idTokenResponse)\n ];\n case 6:\n $f394e9ac486578e6$export$9fa96a7d116ea3ce(auth, \"internal-error\" /* AuthErrorCode.INTERNAL_ERROR */ );\n _state.label = 7;\n case 7:\n return [\n 2\n ];\n }\n });\n });\n return function(assertion) {\n return _ref.apply(this, arguments);\n };\n }());\n }\n }\n ]);\n return MultiFactorResolverImpl;\n}();\n/**\r\n * Provides a {@link MultiFactorResolver} suitable for completion of a\r\n * multi-factor flow.\r\n *\r\n * @param auth - The {@link Auth} instance.\r\n * @param error - The {@link MultiFactorError} raised during a sign-in, or\r\n * reauthentication operation.\r\n *\r\n * @public\r\n */ function $f394e9ac486578e6$export$6554612db691658e(auth, error) {\n var _a;\n var authModular = (0, $9b50b37fb8824044$export$4befe9b5fa509a1b)(auth);\n var errorInternal = error;\n $f394e9ac486578e6$export$890c4ad488842ce7(error.customData.operationType, authModular, \"argument-error\" /* AuthErrorCode.ARGUMENT_ERROR */ );\n $f394e9ac486578e6$export$890c4ad488842ce7((_a = errorInternal.customData._serverResponse) === null || _a === void 0 ? void 0 : _a.mfaPendingCredential, authModular, \"argument-error\" /* AuthErrorCode.ARGUMENT_ERROR */ );\n return $f394e9ac486578e6$var$MultiFactorResolverImpl._fromError(authModular, errorInternal);\n}\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */ function $f394e9ac486578e6$var$startEnrollPhoneMfa(auth, request) {\n return $f394e9ac486578e6$var$_performApiRequest(auth, \"POST\" /* HttpMethod.POST */ , \"/v2/accounts/mfaEnrollment:start\" /* Endpoint.START_MFA_ENROLLMENT */ , $f394e9ac486578e6$var$_addTidIfNecessary(auth, request));\n}\nfunction $f394e9ac486578e6$var$finalizeEnrollPhoneMfa(auth, request) {\n return $f394e9ac486578e6$var$_performApiRequest(auth, \"POST\" /* HttpMethod.POST */ , \"/v2/accounts/mfaEnrollment:finalize\" /* Endpoint.FINALIZE_MFA_ENROLLMENT */ , $f394e9ac486578e6$var$_addTidIfNecessary(auth, request));\n}\nfunction $f394e9ac486578e6$var$startEnrollTotpMfa(auth, request) {\n return $f394e9ac486578e6$var$_performApiRequest(auth, \"POST\" /* HttpMethod.POST */ , \"/v2/accounts/mfaEnrollment:start\" /* Endpoint.START_MFA_ENROLLMENT */ , $f394e9ac486578e6$var$_addTidIfNecessary(auth, request));\n}\nfunction $f394e9ac486578e6$var$finalizeEnrollTotpMfa(auth, request) {\n return $f394e9ac486578e6$var$_performApiRequest(auth, \"POST\" /* HttpMethod.POST */ , \"/v2/accounts/mfaEnrollment:finalize\" /* Endpoint.FINALIZE_MFA_ENROLLMENT */ , $f394e9ac486578e6$var$_addTidIfNecessary(auth, request));\n}\nfunction $f394e9ac486578e6$var$withdrawMfa(auth, request) {\n return $f394e9ac486578e6$var$_performApiRequest(auth, \"POST\" /* HttpMethod.POST */ , \"/v2/accounts/mfaEnrollment:withdraw\" /* Endpoint.WITHDRAW_MFA */ , $f394e9ac486578e6$var$_addTidIfNecessary(auth, request));\n}\nvar $f394e9ac486578e6$var$MultiFactorUserImpl = /*#__PURE__*/ function() {\n \"use strict\";\n function MultiFactorUserImpl(user) {\n var _this = this;\n (0, $0c3f79e99c83f58f$export$2996f80ef42b8419)(this, MultiFactorUserImpl);\n this.user = user;\n this.enrolledFactors = [];\n user._onReload(function(userInfo) {\n if (userInfo.mfaInfo) _this.enrolledFactors = userInfo.mfaInfo.map(function(enrollment) {\n return $f394e9ac486578e6$var$MultiFactorInfoImpl._fromServerResponse(user.auth, enrollment);\n });\n });\n }\n (0, $a27186eefd8c4b26$export$d60067ff2358eee8)(MultiFactorUserImpl, [\n {\n key: \"getSession\",\n value: function getSession() {\n var _this = this;\n return (0, $9167c88d5d99601b$export$7c398597f8905a1)(function() {\n var _;\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n switch(_state.label){\n case 0:\n _ = $f394e9ac486578e6$var$MultiFactorSessionImpl._fromIdtoken;\n return [\n 4,\n _this.user.getIdToken()\n ];\n case 1:\n return [\n 2,\n _.apply($f394e9ac486578e6$var$MultiFactorSessionImpl, [\n _state.sent(),\n _this.user\n ])\n ];\n }\n });\n })();\n }\n },\n {\n key: \"enroll\",\n value: function enroll(assertionExtern, displayName) {\n var _this = this;\n return (0, $9167c88d5d99601b$export$7c398597f8905a1)(function() {\n var assertion, session, finalizeMfaResponse;\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n switch(_state.label){\n case 0:\n assertion = assertionExtern;\n return [\n 4,\n _this.getSession()\n ];\n case 1:\n session = _state.sent();\n return [\n 4,\n $f394e9ac486578e6$var$_logoutIfInvalidated(_this.user, assertion._process(_this.user.auth, session, displayName))\n ];\n case 2:\n finalizeMfaResponse = _state.sent();\n // New tokens will be issued after enrollment of the new second factors.\n // They need to be updated on the user.\n return [\n 4,\n _this.user._updateTokensIfNecessary(finalizeMfaResponse)\n ];\n case 3:\n _state.sent();\n // The user needs to be reloaded to get the new multi-factor information\n // from server. USER_RELOADED event will be triggered and `enrolledFactors`\n // will be updated.\n return [\n 2,\n _this.user.reload()\n ];\n }\n });\n })();\n }\n },\n {\n key: \"unenroll\",\n value: function unenroll(infoOrUid) {\n var _this = this;\n return (0, $9167c88d5d99601b$export$7c398597f8905a1)(function() {\n var mfaEnrollmentId, idToken, idTokenResponse, e;\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n switch(_state.label){\n case 0:\n mfaEnrollmentId = typeof infoOrUid === \"string\" ? infoOrUid : infoOrUid.uid;\n return [\n 4,\n _this.user.getIdToken()\n ];\n case 1:\n idToken = _state.sent();\n _state.label = 2;\n case 2:\n _state.trys.push([\n 2,\n 6,\n ,\n 7\n ]);\n return [\n 4,\n $f394e9ac486578e6$var$_logoutIfInvalidated(_this.user, $f394e9ac486578e6$var$withdrawMfa(_this.user.auth, {\n idToken: idToken,\n mfaEnrollmentId: mfaEnrollmentId\n }))\n ];\n case 3:\n idTokenResponse = _state.sent();\n // Remove the second factor from the user's list.\n _this.enrolledFactors = _this.enrolledFactors.filter(function(param) {\n var uid = param.uid;\n return uid !== mfaEnrollmentId;\n });\n // Depending on whether the backend decided to revoke the user's session,\n // the tokenResponse may be empty. If the tokens were not updated (and they\n // are now invalid), reloading the user will discover this and invalidate\n // the user's state accordingly.\n return [\n 4,\n _this.user._updateTokensIfNecessary(idTokenResponse)\n ];\n case 4:\n _state.sent();\n return [\n 4,\n _this.user.reload()\n ];\n case 5:\n _state.sent();\n return [\n 3,\n 7\n ];\n case 6:\n e = _state.sent();\n throw e;\n case 7:\n return [\n 2\n ];\n }\n });\n })();\n }\n }\n ], [\n {\n key: \"_fromUser\",\n value: function _fromUser(user) {\n return new MultiFactorUserImpl(user);\n }\n }\n ]);\n return MultiFactorUserImpl;\n}();\nvar $f394e9ac486578e6$var$multiFactorUserCache = new WeakMap();\n/**\r\n * The {@link MultiFactorUser} corresponding to the user.\r\n *\r\n * @remarks\r\n * This is used to access all multi-factor properties and operations related to the user.\r\n *\r\n * @param user - The user.\r\n *\r\n * @public\r\n */ function $f394e9ac486578e6$export$493d36ec626b6698(user) {\n var userModular = (0, $9b50b37fb8824044$export$4befe9b5fa509a1b)(user);\n if (!$f394e9ac486578e6$var$multiFactorUserCache.has(userModular)) $f394e9ac486578e6$var$multiFactorUserCache.set(userModular, $f394e9ac486578e6$var$MultiFactorUserImpl._fromUser(userModular));\n return $f394e9ac486578e6$var$multiFactorUserCache.get(userModular);\n}\nvar $f394e9ac486578e6$var$STORAGE_AVAILABLE_KEY = \"__sak\";\n/**\r\n * @license\r\n * Copyright 2019 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */ // There are two different browser persistence types: local and session.\n// Both have the same implementation but use a different underlying storage\n// object.\nvar $f394e9ac486578e6$var$BrowserPersistenceClass = /*#__PURE__*/ function() {\n \"use strict\";\n function BrowserPersistenceClass(storageRetriever, type) {\n (0, $0c3f79e99c83f58f$export$2996f80ef42b8419)(this, BrowserPersistenceClass);\n this.storageRetriever = storageRetriever;\n this.type = type;\n }\n (0, $a27186eefd8c4b26$export$d60067ff2358eee8)(BrowserPersistenceClass, [\n {\n key: \"_isAvailable\",\n value: function _isAvailable() {\n try {\n if (!this.storage) return Promise.resolve(false);\n this.storage.setItem($f394e9ac486578e6$var$STORAGE_AVAILABLE_KEY, \"1\");\n this.storage.removeItem($f394e9ac486578e6$var$STORAGE_AVAILABLE_KEY);\n return Promise.resolve(true);\n } catch (_a) {\n return Promise.resolve(false);\n }\n }\n },\n {\n key: \"_set\",\n value: function _set(key, value) {\n this.storage.setItem(key, JSON.stringify(value));\n return Promise.resolve();\n }\n },\n {\n key: \"_get\",\n value: function _get(key) {\n var json = this.storage.getItem(key);\n return Promise.resolve(json ? JSON.parse(json) : null);\n }\n },\n {\n key: \"_remove\",\n value: function _remove(key) {\n this.storage.removeItem(key);\n return Promise.resolve();\n }\n },\n {\n key: \"storage\",\n get: function get() {\n return this.storageRetriever();\n }\n }\n ]);\n return BrowserPersistenceClass;\n}();\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */ function $f394e9ac486578e6$var$_iframeCannotSyncWebStorage() {\n var ua = (0, $9b50b37fb8824044$export$c36915b22ce77c19)();\n return $f394e9ac486578e6$var$_isSafari(ua) || $f394e9ac486578e6$export$d66dc83d8cfc8dd(ua);\n}\n// The polling period in case events are not supported\nvar $f394e9ac486578e6$var$_POLLING_INTERVAL_MS$1 = 1000;\n// The IE 10 localStorage cross tab synchronization delay in milliseconds\nvar $f394e9ac486578e6$var$IE10_LOCAL_STORAGE_SYNC_DELAY = 10;\nvar $f394e9ac486578e6$var$BrowserLocalPersistence = /*#__PURE__*/ function(BrowserPersistenceClass) {\n \"use strict\";\n (0, $a3fe9d9bda1cd86f$export$7e4530ad35d3bb8)(BrowserLocalPersistence, BrowserPersistenceClass);\n var _super = (0, $60ddfe51b57fdc13$export$8dd05c13f5255580)(BrowserLocalPersistence);\n function BrowserLocalPersistence() {\n (0, $0c3f79e99c83f58f$export$2996f80ef42b8419)(this, BrowserLocalPersistence);\n var _this;\n _this = _super.call(this, function() {\n return window.localStorage;\n }, \"LOCAL\" /* PersistenceType.LOCAL */ );\n _this.boundEventHandler = function(event, poll) {\n return _this.onStorageEvent(event, poll);\n };\n _this.listeners = {};\n _this.localCache = {};\n // setTimeout return value is platform specific\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n _this.pollTimer = null;\n // Safari or iOS browser and embedded in an iframe.\n _this.safariLocalStorageNotSynced = $f394e9ac486578e6$var$_iframeCannotSyncWebStorage() && $f394e9ac486578e6$var$_isIframe();\n // Whether to use polling instead of depending on window events\n _this.fallbackToPolling = $f394e9ac486578e6$var$_isMobileBrowser();\n _this._shouldAllowMigration = true;\n return _this;\n }\n (0, $a27186eefd8c4b26$export$d60067ff2358eee8)(BrowserLocalPersistence, [\n {\n key: \"forAllChangedKeys\",\n value: function forAllChangedKeys(cb) {\n var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;\n try {\n // Check all keys with listeners on them.\n for(var _iterator = Object.keys(this.listeners)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){\n var key = _step.value;\n // Get value from localStorage.\n var newValue = this.storage.getItem(key);\n var oldValue = this.localCache[key];\n // If local map value does not match, trigger listener with storage event.\n // Differentiate this simulated event from the real storage event.\n if (newValue !== oldValue) cb(key, oldValue, newValue);\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally{\n try {\n if (!_iteratorNormalCompletion && _iterator.return != null) {\n _iterator.return();\n }\n } finally{\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n }\n },\n {\n key: \"onStorageEvent\",\n value: function onStorageEvent(event) {\n var poll = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false;\n var _this = this;\n // Key would be null in some situations, like when localStorage is cleared\n if (!event.key) {\n this.forAllChangedKeys(function(key, _oldValue, newValue) {\n _this.notifyListeners(key, newValue);\n });\n return;\n }\n var key = event.key;\n // Check the mechanism how this event was detected.\n // The first event will dictate the mechanism to be used.\n if (poll) // Environment detects storage changes via polling.\n // Remove storage event listener to prevent possible event duplication.\n this.detachListener();\n else // Environment detects storage changes via storage event listener.\n // Remove polling listener to prevent possible event duplication.\n this.stopPolling();\n // Safari embedded iframe. Storage event will trigger with the delta\n // changes but no changes will be applied to the iframe localStorage.\n if (this.safariLocalStorageNotSynced) {\n // Get current iframe page value.\n var storedValue = this.storage.getItem(key);\n // Value not synchronized, synchronize manually.\n if (event.newValue !== storedValue) {\n if (event.newValue !== null) // Value changed from current value.\n this.storage.setItem(key, event.newValue);\n else // Current value deleted.\n this.storage.removeItem(key);\n } else if (this.localCache[key] === event.newValue && !poll) // Already detected and processed, do not trigger listeners again.\n return;\n }\n var triggerListeners = function() {\n // Keep local map up to date in case storage event is triggered before\n // poll.\n var storedValue = _this.storage.getItem(key);\n if (!poll && _this.localCache[key] === storedValue) // Real storage event which has already been detected, do nothing.\n // This seems to trigger in some IE browsers for some reason.\n return;\n _this.notifyListeners(key, storedValue);\n };\n var storedValue1 = this.storage.getItem(key);\n if ($f394e9ac486578e6$var$_isIE10() && storedValue1 !== event.newValue && event.newValue !== event.oldValue) // IE 10 has this weird bug where a storage event would trigger with the\n // correct key, oldValue and newValue but localStorage.getItem(key) does\n // not yield the updated value until a few milliseconds. This ensures\n // this recovers from that situation.\n setTimeout(triggerListeners, $f394e9ac486578e6$var$IE10_LOCAL_STORAGE_SYNC_DELAY);\n else triggerListeners();\n }\n },\n {\n key: \"notifyListeners\",\n value: function notifyListeners(key, value) {\n this.localCache[key] = value;\n var listeners = this.listeners[key];\n var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;\n if (listeners) try {\n for(var _iterator = Array.from(listeners)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){\n var listener = _step.value;\n listener(value ? JSON.parse(value) : value);\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally{\n try {\n if (!_iteratorNormalCompletion && _iterator.return != null) {\n _iterator.return();\n }\n } finally{\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n }\n },\n {\n key: \"startPolling\",\n value: function startPolling() {\n var _this = this;\n this.stopPolling();\n this.pollTimer = setInterval(function() {\n _this.forAllChangedKeys(function(key, oldValue, newValue) {\n _this.onStorageEvent(new StorageEvent(\"storage\", {\n key: key,\n oldValue: oldValue,\n newValue: newValue\n }), /* poll */ true);\n });\n }, $f394e9ac486578e6$var$_POLLING_INTERVAL_MS$1);\n }\n },\n {\n key: \"stopPolling\",\n value: function stopPolling() {\n if (this.pollTimer) {\n clearInterval(this.pollTimer);\n this.pollTimer = null;\n }\n }\n },\n {\n key: \"attachListener\",\n value: function attachListener() {\n window.addEventListener(\"storage\", this.boundEventHandler);\n }\n },\n {\n key: \"detachListener\",\n value: function detachListener() {\n window.removeEventListener(\"storage\", this.boundEventHandler);\n }\n },\n {\n key: \"_addListener\",\n value: function _addListener(key, listener) {\n if (Object.keys(this.listeners).length === 0) {\n // Whether browser can detect storage event when it had already been pushed to the background.\n // This may happen in some mobile browsers. A localStorage change in the foreground window\n // will not be detected in the background window via the storage event.\n // This was detected in iOS 7.x mobile browsers\n if (this.fallbackToPolling) this.startPolling();\n else this.attachListener();\n }\n if (!this.listeners[key]) {\n this.listeners[key] = new Set();\n // Populate the cache to avoid spuriously triggering on first poll.\n this.localCache[key] = this.storage.getItem(key);\n }\n this.listeners[key].add(listener);\n }\n },\n {\n key: \"_removeListener\",\n value: function _removeListener(key, listener) {\n if (this.listeners[key]) {\n this.listeners[key].delete(listener);\n if (this.listeners[key].size === 0) delete this.listeners[key];\n }\n if (Object.keys(this.listeners).length === 0) {\n this.detachListener();\n this.stopPolling();\n }\n }\n },\n {\n key: \"_set\",\n value: // Update local cache on base operations:\n function _set(key, value) {\n var _this = this;\n var _this1 = this, _superprop_get__set = function() {\n return (0, $ecbc2403a053d1fd$export$afb3516d9d608401)((0, $a1f3116cd0a6764d$export$f09211a7d3c496a1)(BrowserLocalPersistence.prototype), \"_set\", _this);\n };\n return (0, $9167c88d5d99601b$export$7c398597f8905a1)(function() {\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n switch(_state.label){\n case 0:\n return [\n 4,\n _superprop_get__set().call(_this1, key, value)\n ];\n case 1:\n _state.sent();\n _this1.localCache[key] = JSON.stringify(value);\n return [\n 2\n ];\n }\n });\n })();\n }\n },\n {\n key: \"_get\",\n value: function _get1(key) {\n var _this = this;\n var _this1 = this, _superprop_get__get = function() {\n return (0, $ecbc2403a053d1fd$export$afb3516d9d608401)((0, $a1f3116cd0a6764d$export$f09211a7d3c496a1)(BrowserLocalPersistence.prototype), \"_get\", _this);\n };\n return (0, $9167c88d5d99601b$export$7c398597f8905a1)(function() {\n var value;\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n switch(_state.label){\n case 0:\n return [\n 4,\n _superprop_get__get().call(_this1, key)\n ];\n case 1:\n value = _state.sent();\n _this1.localCache[key] = JSON.stringify(value);\n return [\n 2,\n value\n ];\n }\n });\n })();\n }\n },\n {\n key: \"_remove\",\n value: function _remove(key) {\n var _this = this;\n var _this1 = this, _superprop_get__remove = function() {\n return (0, $ecbc2403a053d1fd$export$afb3516d9d608401)((0, $a1f3116cd0a6764d$export$f09211a7d3c496a1)(BrowserLocalPersistence.prototype), \"_remove\", _this);\n };\n return (0, $9167c88d5d99601b$export$7c398597f8905a1)(function() {\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n switch(_state.label){\n case 0:\n return [\n 4,\n _superprop_get__remove().call(_this1, key)\n ];\n case 1:\n _state.sent();\n delete _this1.localCache[key];\n return [\n 2\n ];\n }\n });\n })();\n }\n }\n ]);\n return BrowserLocalPersistence;\n}($f394e9ac486578e6$var$BrowserPersistenceClass);\n$f394e9ac486578e6$var$BrowserLocalPersistence.type = \"LOCAL\";\n/**\r\n * An implementation of {@link Persistence} of type `LOCAL` using `localStorage`\r\n * for the underlying storage.\r\n *\r\n * @public\r\n */ var $f394e9ac486578e6$export$8b22cf2602fb60ce = $f394e9ac486578e6$var$BrowserLocalPersistence;\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */ var $f394e9ac486578e6$var$BrowserSessionPersistence = /*#__PURE__*/ function(BrowserPersistenceClass) {\n \"use strict\";\n (0, $a3fe9d9bda1cd86f$export$7e4530ad35d3bb8)(BrowserSessionPersistence, BrowserPersistenceClass);\n var _super = (0, $60ddfe51b57fdc13$export$8dd05c13f5255580)(BrowserSessionPersistence);\n function BrowserSessionPersistence() {\n (0, $0c3f79e99c83f58f$export$2996f80ef42b8419)(this, BrowserSessionPersistence);\n return _super.call(this, function() {\n return window.sessionStorage;\n }, \"SESSION\" /* PersistenceType.SESSION */ );\n }\n (0, $a27186eefd8c4b26$export$d60067ff2358eee8)(BrowserSessionPersistence, [\n {\n key: \"_addListener\",\n value: function _addListener(_key, _listener) {\n // Listeners are not supported for session storage since it cannot be shared across windows\n return;\n }\n },\n {\n key: \"_removeListener\",\n value: function _removeListener(_key, _listener) {\n // Listeners are not supported for session storage since it cannot be shared across windows\n return;\n }\n }\n ]);\n return BrowserSessionPersistence;\n}($f394e9ac486578e6$var$BrowserPersistenceClass);\n$f394e9ac486578e6$var$BrowserSessionPersistence.type = \"SESSION\";\n/**\r\n * An implementation of {@link Persistence} of `SESSION` using `sessionStorage`\r\n * for the underlying storage.\r\n *\r\n * @public\r\n */ var $f394e9ac486578e6$export$407448d2b89b1813 = $f394e9ac486578e6$var$BrowserSessionPersistence;\n/**\r\n * @license\r\n * Copyright 2019 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */ /**\r\n * Shim for Promise.allSettled, note the slightly different format of `fulfilled` vs `status`.\r\n *\r\n * @param promises - Array of promises to wait on.\r\n */ function $f394e9ac486578e6$var$_allSettled(promises) {\n return Promise.all(promises.map(function() {\n var _ref = (0, $9167c88d5d99601b$export$7c398597f8905a1)(function(promise) {\n var value, reason;\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n switch(_state.label){\n case 0:\n _state.trys.push([\n 0,\n 2,\n ,\n 3\n ]);\n return [\n 4,\n promise\n ];\n case 1:\n value = _state.sent();\n return [\n 2,\n {\n fulfilled: true,\n value: value\n }\n ];\n case 2:\n reason = _state.sent();\n return [\n 2,\n {\n fulfilled: false,\n reason: reason\n }\n ];\n case 3:\n return [\n 2\n ];\n }\n });\n });\n return function(promise) {\n return _ref.apply(this, arguments);\n };\n }()));\n}\n/**\r\n * @license\r\n * Copyright 2019 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */ /**\r\n * Interface class for receiving messages.\r\n *\r\n */ var $f394e9ac486578e6$var$Receiver = /*#__PURE__*/ function() {\n \"use strict\";\n function Receiver(eventTarget) {\n (0, $0c3f79e99c83f58f$export$2996f80ef42b8419)(this, Receiver);\n this.eventTarget = eventTarget;\n this.handlersMap = {};\n this.boundEventHandler = this.handleEvent.bind(this);\n }\n (0, $a27186eefd8c4b26$export$d60067ff2358eee8)(Receiver, [\n {\n key: \"isListeningto\",\n value: function isListeningto(eventTarget) {\n return this.eventTarget === eventTarget;\n }\n },\n {\n key: \"handleEvent\",\n value: /**\r\n * Fans out a MessageEvent to the appropriate listeners.\r\n *\r\n * @remarks\r\n * Sends an {@link Status.ACK} upon receipt and a {@link Status.DONE} once all handlers have\r\n * finished processing.\r\n *\r\n * @param event - The MessageEvent.\r\n *\r\n */ function handleEvent(event) {\n var _this = this;\n return (0, $9167c88d5d99601b$export$7c398597f8905a1)(function() {\n var messageEvent, _messageEvent_data, eventId, eventType, data, handlers, promises, response;\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n switch(_state.label){\n case 0:\n messageEvent = event;\n _messageEvent_data = messageEvent.data, eventId = _messageEvent_data.eventId, eventType = _messageEvent_data.eventType, data = _messageEvent_data.data;\n handlers = _this.handlersMap[eventType];\n if (!(handlers === null || handlers === void 0 ? void 0 : handlers.size)) return [\n 2\n ];\n messageEvent.ports[0].postMessage({\n status: \"ack\" /* _Status.ACK */ ,\n eventId: eventId,\n eventType: eventType\n });\n promises = Array.from(handlers).map(function() {\n var _ref = (0, $9167c88d5d99601b$export$7c398597f8905a1)(function(handler) {\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n return [\n 2,\n handler(messageEvent.origin, data)\n ];\n });\n });\n return function(handler) {\n return _ref.apply(this, arguments);\n };\n }());\n return [\n 4,\n $f394e9ac486578e6$var$_allSettled(promises)\n ];\n case 1:\n response = _state.sent();\n messageEvent.ports[0].postMessage({\n status: \"done\" /* _Status.DONE */ ,\n eventId: eventId,\n eventType: eventType,\n response: response\n });\n return [\n 2\n ];\n }\n });\n })();\n }\n },\n {\n /**\r\n * Subscribe an event handler for a particular event.\r\n *\r\n * @param eventType - Event name to subscribe to.\r\n * @param eventHandler - The event handler which should receive the events.\r\n *\r\n */ key: \"_subscribe\",\n value: function _subscribe(eventType, eventHandler) {\n if (Object.keys(this.handlersMap).length === 0) this.eventTarget.addEventListener(\"message\", this.boundEventHandler);\n if (!this.handlersMap[eventType]) this.handlersMap[eventType] = new Set();\n this.handlersMap[eventType].add(eventHandler);\n }\n },\n {\n /**\r\n * Unsubscribe an event handler from a particular event.\r\n *\r\n * @param eventType - Event name to unsubscribe from.\r\n * @param eventHandler - Optinoal event handler, if none provided, unsubscribe all handlers on this event.\r\n *\r\n */ key: \"_unsubscribe\",\n value: function _unsubscribe(eventType, eventHandler) {\n if (this.handlersMap[eventType] && eventHandler) this.handlersMap[eventType].delete(eventHandler);\n if (!eventHandler || this.handlersMap[eventType].size === 0) delete this.handlersMap[eventType];\n if (Object.keys(this.handlersMap).length === 0) this.eventTarget.removeEventListener(\"message\", this.boundEventHandler);\n }\n }\n ], [\n {\n key: \"_getInstance\",\n value: /**\r\n * Obtain an instance of a Receiver for a given event target, if none exists it will be created.\r\n *\r\n * @param eventTarget - An event target (such as window or self) through which the underlying\r\n * messages will be received.\r\n */ function _getInstance(eventTarget) {\n // The results are stored in an array since objects can't be keys for other\n // objects. In addition, setting a unique property on an event target as a\n // hash map key may not be allowed due to CORS restrictions.\n var existingInstance = this.receivers.find(function(receiver) {\n return receiver.isListeningto(eventTarget);\n });\n if (existingInstance) return existingInstance;\n var newInstance = new Receiver(eventTarget);\n this.receivers.push(newInstance);\n return newInstance;\n }\n }\n ]);\n return Receiver;\n}();\n$f394e9ac486578e6$var$Receiver.receivers = [];\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */ function $f394e9ac486578e6$export$faec65b429be379() {\n var prefix = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : \"\", digits = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 10;\n var random = \"\";\n for(var i = 0; i < digits; i++)random += Math.floor(Math.random() * 10);\n return prefix + random;\n}\n/**\r\n * @license\r\n * Copyright 2019 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */ /**\r\n * Interface for sending messages and waiting for a completion response.\r\n *\r\n */ var $f394e9ac486578e6$var$Sender = /*#__PURE__*/ function() {\n \"use strict\";\n function Sender(target) {\n (0, $0c3f79e99c83f58f$export$2996f80ef42b8419)(this, Sender);\n this.target = target;\n this.handlers = new Set();\n }\n (0, $a27186eefd8c4b26$export$d60067ff2358eee8)(Sender, [\n {\n /**\r\n * Unsubscribe the handler and remove it from our tracking Set.\r\n *\r\n * @param handler - The handler to unsubscribe.\r\n */ key: \"removeMessageHandler\",\n value: function removeMessageHandler(handler) {\n if (handler.messageChannel) {\n handler.messageChannel.port1.removeEventListener(\"message\", handler.onMessage);\n handler.messageChannel.port1.close();\n }\n this.handlers.delete(handler);\n }\n },\n {\n key: \"_send\",\n value: /**\r\n * Send a message to the Receiver located at {@link target}.\r\n *\r\n * @remarks\r\n * We'll first wait a bit for an ACK , if we get one we will wait significantly longer until the\r\n * receiver has had a chance to fully process the event.\r\n *\r\n * @param eventType - Type of event to send.\r\n * @param data - The payload of the event.\r\n * @param timeout - Timeout for waiting on an ACK from the receiver.\r\n *\r\n * @returns An array of settled promises from all the handlers that were listening on the receiver.\r\n */ function _send(eventType, data) {\n var timeout = arguments.length > 2 && arguments[2] !== void 0 /* _TimeoutDuration.ACK */ ? arguments[2] : 50;\n var _this = this;\n return (0, $9167c88d5d99601b$export$7c398597f8905a1)(function() {\n var messageChannel, completionTimer, handler;\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n messageChannel = typeof MessageChannel !== \"undefined\" ? new MessageChannel() : null;\n if (!messageChannel) throw new Error(\"connection_unavailable\" /* _MessageError.CONNECTION_UNAVAILABLE */ );\n return [\n 2,\n new Promise(function(resolve, reject) {\n var eventId = $f394e9ac486578e6$export$faec65b429be379(\"\", 20);\n messageChannel.port1.start();\n var ackTimer = setTimeout(function() {\n reject(new Error(\"unsupported_event\" /* _MessageError.UNSUPPORTED_EVENT */ ));\n }, timeout);\n handler = {\n messageChannel: messageChannel,\n onMessage: function(event) {\n var messageEvent = event;\n if (messageEvent.data.eventId !== eventId) return;\n switch(messageEvent.data.status){\n case \"ack\" /* _Status.ACK */ :\n // The receiver should ACK first.\n clearTimeout(ackTimer);\n completionTimer = setTimeout(function() {\n reject(new Error(\"timeout\" /* _MessageError.TIMEOUT */ ));\n }, 3000 /* _TimeoutDuration.COMPLETION */ );\n break;\n case \"done\" /* _Status.DONE */ :\n // Once the receiver's handlers are finished we will get the results.\n clearTimeout(completionTimer);\n resolve(messageEvent.data.response);\n break;\n default:\n clearTimeout(ackTimer);\n clearTimeout(completionTimer);\n reject(new Error(\"invalid_response\" /* _MessageError.INVALID_RESPONSE */ ));\n break;\n }\n }\n };\n _this.handlers.add(handler);\n messageChannel.port1.addEventListener(\"message\", handler.onMessage);\n _this.target.postMessage({\n eventType: eventType,\n eventId: eventId,\n data: data\n }, [\n messageChannel.port2\n ]);\n }).finally(function() {\n if (handler) _this.removeMessageHandler(handler);\n })\n ];\n });\n })();\n }\n }\n ]);\n return Sender;\n}();\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */ /**\r\n * Lazy accessor for window, since the compat layer won't tree shake this out,\r\n * we need to make sure not to mess with window unless we have to\r\n */ function $f394e9ac486578e6$var$_window() {\n return window;\n}\nfunction $f394e9ac486578e6$var$_setWindowLocation(url) {\n $f394e9ac486578e6$var$_window().location.href = url;\n}\n/**\r\n * @license\r\n * Copyright 2020 Google LLC.\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */ function $f394e9ac486578e6$var$_isWorker() {\n return typeof $f394e9ac486578e6$var$_window()[\"WorkerGlobalScope\"] !== \"undefined\" && typeof $f394e9ac486578e6$var$_window()[\"importScripts\"] === \"function\";\n}\nfunction $f394e9ac486578e6$var$_getActiveServiceWorker() {\n return $f394e9ac486578e6$var$__getActiveServiceWorker.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$var$__getActiveServiceWorker() {\n $f394e9ac486578e6$var$__getActiveServiceWorker = (0, $9167c88d5d99601b$export$7c398597f8905a1)(function() {\n var registration, _a;\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n switch(_state.label){\n case 0:\n if (!(navigator === null || navigator === void 0 ? void 0 : navigator.serviceWorker)) return [\n 2,\n null\n ];\n _state.label = 1;\n case 1:\n _state.trys.push([\n 1,\n 3,\n ,\n 4\n ]);\n return [\n 4,\n navigator.serviceWorker.ready\n ];\n case 2:\n registration = _state.sent();\n return [\n 2,\n registration.active\n ];\n case 3:\n _a = _state.sent();\n return [\n 2,\n null\n ];\n case 4:\n return [\n 2\n ];\n }\n });\n });\n return $f394e9ac486578e6$var$__getActiveServiceWorker.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$var$_getServiceWorkerController() {\n var _a;\n return ((_a = navigator === null || navigator === void 0 ? void 0 : navigator.serviceWorker) === null || _a === void 0 ? void 0 : _a.controller) || null;\n}\nfunction $f394e9ac486578e6$var$_getWorkerGlobalScope() {\n return $f394e9ac486578e6$var$_isWorker() ? self : null;\n}\n/**\r\n * @license\r\n * Copyright 2019 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */ var $f394e9ac486578e6$var$DB_NAME = \"firebaseLocalStorageDb\";\nvar $f394e9ac486578e6$var$DB_VERSION = 1;\nvar $f394e9ac486578e6$var$DB_OBJECTSTORE_NAME = \"firebaseLocalStorage\";\nvar $f394e9ac486578e6$var$DB_DATA_KEYPATH = \"fbase_key\";\n/**\r\n * Promise wrapper for IDBRequest\r\n *\r\n * Unfortunately we can't cleanly extend Promise since promises are not callable in ES6\r\n *\r\n */ var $f394e9ac486578e6$var$DBPromise = /*#__PURE__*/ function() {\n \"use strict\";\n function DBPromise(request) {\n (0, $0c3f79e99c83f58f$export$2996f80ef42b8419)(this, DBPromise);\n this.request = request;\n }\n (0, $a27186eefd8c4b26$export$d60067ff2358eee8)(DBPromise, [\n {\n key: \"toPromise\",\n value: function toPromise() {\n var _this = this;\n return new Promise(function(resolve, reject) {\n _this.request.addEventListener(\"success\", function() {\n resolve(_this.request.result);\n });\n _this.request.addEventListener(\"error\", function() {\n reject(_this.request.error);\n });\n });\n }\n }\n ]);\n return DBPromise;\n}();\nfunction $f394e9ac486578e6$var$getObjectStore(db, isReadWrite) {\n return db.transaction([\n $f394e9ac486578e6$var$DB_OBJECTSTORE_NAME\n ], isReadWrite ? \"readwrite\" : \"readonly\").objectStore($f394e9ac486578e6$var$DB_OBJECTSTORE_NAME);\n}\nfunction $f394e9ac486578e6$var$_deleteDatabase() {\n var request = indexedDB.deleteDatabase($f394e9ac486578e6$var$DB_NAME);\n return new $f394e9ac486578e6$var$DBPromise(request).toPromise();\n}\nfunction $f394e9ac486578e6$var$_openDatabase() {\n var request = indexedDB.open($f394e9ac486578e6$var$DB_NAME, $f394e9ac486578e6$var$DB_VERSION);\n return new Promise(function(resolve, reject) {\n request.addEventListener(\"error\", function() {\n reject(request.error);\n });\n request.addEventListener(\"upgradeneeded\", function() {\n var db = request.result;\n try {\n db.createObjectStore($f394e9ac486578e6$var$DB_OBJECTSTORE_NAME, {\n keyPath: $f394e9ac486578e6$var$DB_DATA_KEYPATH\n });\n } catch (e) {\n reject(e);\n }\n });\n request.addEventListener(\"success\", /*#__PURE__*/ (0, $9167c88d5d99601b$export$7c398597f8905a1)(function() {\n var db;\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n switch(_state.label){\n case 0:\n db = request.result;\n if (!!db.objectStoreNames.contains($f394e9ac486578e6$var$DB_OBJECTSTORE_NAME)) return [\n 3,\n 3\n ];\n // Need to close the database or else you get a `blocked` event\n db.close();\n return [\n 4,\n $f394e9ac486578e6$var$_deleteDatabase()\n ];\n case 1:\n _state.sent();\n return [\n 4,\n $f394e9ac486578e6$var$_openDatabase()\n ];\n case 2:\n resolve.apply(void 0, [\n _state.sent()\n ]);\n return [\n 3,\n 4\n ];\n case 3:\n resolve(db);\n _state.label = 4;\n case 4:\n return [\n 2\n ];\n }\n });\n }));\n });\n}\nfunction $f394e9ac486578e6$var$_putObject(db, key, value) {\n return $f394e9ac486578e6$var$__putObject.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$var$__putObject() {\n $f394e9ac486578e6$var$__putObject = (0, $9167c88d5d99601b$export$7c398597f8905a1)(function(db, key, value) {\n var _obj, request;\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n request = $f394e9ac486578e6$var$getObjectStore(db, true).put((_obj = {}, (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)(_obj, $f394e9ac486578e6$var$DB_DATA_KEYPATH, key), (0, $642625cf0cd1d5ab$export$1e71eb4bef00f6b0)(_obj, \"value\", value), _obj));\n return [\n 2,\n new $f394e9ac486578e6$var$DBPromise(request).toPromise()\n ];\n });\n });\n return $f394e9ac486578e6$var$__putObject.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$var$getObject(db, key) {\n return $f394e9ac486578e6$var$_getObject.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$var$_getObject() {\n $f394e9ac486578e6$var$_getObject = (0, $9167c88d5d99601b$export$7c398597f8905a1)(function(db, key) {\n var request, data;\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n switch(_state.label){\n case 0:\n request = $f394e9ac486578e6$var$getObjectStore(db, false).get(key);\n return [\n 4,\n new $f394e9ac486578e6$var$DBPromise(request).toPromise()\n ];\n case 1:\n data = _state.sent();\n return [\n 2,\n data === undefined ? null : data.value\n ];\n }\n });\n });\n return $f394e9ac486578e6$var$_getObject.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$var$_deleteObject(db, key) {\n var request = $f394e9ac486578e6$var$getObjectStore(db, true).delete(key);\n return new $f394e9ac486578e6$var$DBPromise(request).toPromise();\n}\nvar $f394e9ac486578e6$var$_POLLING_INTERVAL_MS = 800;\nvar $f394e9ac486578e6$var$_TRANSACTION_RETRY_COUNT = 3;\nvar $f394e9ac486578e6$var$IndexedDBLocalPersistence = /*#__PURE__*/ function() {\n \"use strict\";\n function IndexedDBLocalPersistence() {\n (0, $0c3f79e99c83f58f$export$2996f80ef42b8419)(this, IndexedDBLocalPersistence);\n this.type = \"LOCAL\" /* PersistenceType.LOCAL */ ;\n this._shouldAllowMigration = true;\n this.listeners = {};\n this.localCache = {};\n // setTimeout return value is platform specific\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n this.pollTimer = null;\n this.pendingWrites = 0;\n this.receiver = null;\n this.sender = null;\n this.serviceWorkerReceiverAvailable = false;\n this.activeServiceWorker = null;\n // Fire & forget the service worker registration as it may never resolve\n this._workerInitializationPromise = this.initializeServiceWorkerMessaging().then(function() {}, function() {});\n }\n (0, $a27186eefd8c4b26$export$d60067ff2358eee8)(IndexedDBLocalPersistence, [\n {\n key: \"_openDb\",\n value: function _openDb() {\n var _this = this;\n return (0, $9167c88d5d99601b$export$7c398597f8905a1)(function() {\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n switch(_state.label){\n case 0:\n if (_this.db) return [\n 2,\n _this.db\n ];\n return [\n 4,\n $f394e9ac486578e6$var$_openDatabase()\n ];\n case 1:\n _this.db = _state.sent();\n return [\n 2,\n _this.db\n ];\n }\n });\n })();\n }\n },\n {\n key: \"_withRetries\",\n value: function _withRetries(op) {\n var _this = this;\n return (0, $9167c88d5d99601b$export$7c398597f8905a1)(function() {\n var numAttempts, db, e;\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n switch(_state.label){\n case 0:\n numAttempts = 0;\n _state.label = 1;\n case 1:\n if (!true) return [\n 3,\n 7\n ];\n _state.label = 2;\n case 2:\n _state.trys.push([\n 2,\n 5,\n ,\n 6\n ]);\n return [\n 4,\n _this._openDb()\n ];\n case 3:\n db = _state.sent();\n return [\n 4,\n op(db)\n ];\n case 4:\n return [\n 2,\n _state.sent()\n ];\n case 5:\n e = _state.sent();\n if (numAttempts++ > $f394e9ac486578e6$var$_TRANSACTION_RETRY_COUNT) throw e;\n if (_this.db) {\n _this.db.close();\n _this.db = undefined;\n }\n return [\n 3,\n 6\n ];\n case 6:\n return [\n 3,\n 1\n ];\n case 7:\n return [\n 2\n ];\n }\n });\n })();\n }\n },\n {\n key: \"initializeServiceWorkerMessaging\",\n value: /**\r\n * IndexedDB events do not propagate from the main window to the worker context. We rely on a\r\n * postMessage interface to send these events to the worker ourselves.\r\n */ function initializeServiceWorkerMessaging() {\n var _this = this;\n return (0, $9167c88d5d99601b$export$7c398597f8905a1)(function() {\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n return [\n 2,\n $f394e9ac486578e6$var$_isWorker() ? _this.initializeReceiver() : _this.initializeSender()\n ];\n });\n })();\n }\n },\n {\n key: \"initializeReceiver\",\n value: /**\r\n * As the worker we should listen to events from the main window.\r\n */ function initializeReceiver() {\n var _this = this;\n return (0, $9167c88d5d99601b$export$7c398597f8905a1)(function() {\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n _this.receiver = $f394e9ac486578e6$var$Receiver._getInstance($f394e9ac486578e6$var$_getWorkerGlobalScope());\n // Refresh from persistence if we receive a KeyChanged message.\n _this.receiver._subscribe(\"keyChanged\" /* _EventType.KEY_CHANGED */ , function() {\n var _ref = (0, $9167c88d5d99601b$export$7c398597f8905a1)(function(_origin, data) {\n var keys;\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n switch(_state.label){\n case 0:\n return [\n 4,\n _this._poll()\n ];\n case 1:\n keys = _state.sent();\n return [\n 2,\n {\n keyProcessed: keys.includes(data.key)\n }\n ];\n }\n });\n });\n return function(_origin, data) {\n return _ref.apply(this, arguments);\n };\n }());\n // Let the sender know that we are listening so they give us more timeout.\n _this.receiver._subscribe(\"ping\" /* _EventType.PING */ , function() {\n var _ref = (0, $9167c88d5d99601b$export$7c398597f8905a1)(function(_origin, _data) {\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n return [\n 2,\n [\n \"keyChanged\" /* _EventType.KEY_CHANGED */ \n ]\n ];\n });\n });\n return function(_origin, _data) {\n return _ref.apply(this, arguments);\n };\n }());\n return [\n 2\n ];\n });\n })();\n }\n },\n {\n key: \"initializeSender\",\n value: /**\r\n * As the main window, we should let the worker know when keys change (set and remove).\r\n *\r\n * @remarks\r\n * {@link https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerContainer/ready | ServiceWorkerContainer.ready}\r\n * may not resolve.\r\n */ function initializeSender() {\n var _this = this;\n return (0, $9167c88d5d99601b$export$7c398597f8905a1)(function() {\n var _a, _b, results;\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n switch(_state.label){\n case 0:\n return [\n 4,\n $f394e9ac486578e6$var$_getActiveServiceWorker()\n ];\n case 1:\n // Check to see if there's an active service worker.\n _this.activeServiceWorker = _state.sent();\n if (!_this.activeServiceWorker) return [\n 2\n ];\n _this.sender = new $f394e9ac486578e6$var$Sender(_this.activeServiceWorker);\n return [\n 4,\n _this.sender._send(\"ping\" /* _EventType.PING */ , {}, 800 /* _TimeoutDuration.LONG_ACK */ )\n ];\n case 2:\n results = _state.sent();\n if (!results) return [\n 2\n ];\n if (((_a = results[0]) === null || _a === void 0 ? void 0 : _a.fulfilled) && ((_b = results[0]) === null || _b === void 0 ? void 0 : _b.value.includes(\"keyChanged\" /* _EventType.KEY_CHANGED */ ))) _this.serviceWorkerReceiverAvailable = true;\n return [\n 2\n ];\n }\n });\n })();\n }\n },\n {\n key: \"notifyServiceWorker\",\n value: /**\r\n * Let the worker know about a changed key, the exact key doesn't technically matter since the\r\n * worker will just trigger a full sync anyway.\r\n *\r\n * @remarks\r\n * For now, we only support one service worker per page.\r\n *\r\n * @param key - Storage key which changed.\r\n */ function notifyServiceWorker(key) {\n var _this = this;\n return (0, $9167c88d5d99601b$export$7c398597f8905a1)(function() {\n var _a;\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n switch(_state.label){\n case 0:\n if (!_this.sender || !_this.activeServiceWorker || $f394e9ac486578e6$var$_getServiceWorkerController() !== _this.activeServiceWorker) return [\n 2\n ];\n _state.label = 1;\n case 1:\n _state.trys.push([\n 1,\n 3,\n ,\n 4\n ]);\n return [\n 4,\n _this.sender._send(\"keyChanged\" /* _EventType.KEY_CHANGED */ , {\n key: key\n }, // Use long timeout if receiver has previously responded to a ping from us.\n _this.serviceWorkerReceiverAvailable ? 800 /* _TimeoutDuration.LONG_ACK */ : 50 /* _TimeoutDuration.ACK */ )\n ];\n case 2:\n _state.sent();\n return [\n 3,\n 4\n ];\n case 3:\n _a = _state.sent();\n return [\n 3,\n 4\n ];\n case 4:\n return [\n 2\n ];\n }\n });\n })();\n }\n },\n {\n key: \"_isAvailable\",\n value: function _isAvailable() {\n return (0, $9167c88d5d99601b$export$7c398597f8905a1)(function() {\n var db, _a;\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n switch(_state.label){\n case 0:\n _state.trys.push([\n 0,\n 4,\n ,\n 5\n ]);\n if (!indexedDB) return [\n 2,\n false\n ];\n return [\n 4,\n $f394e9ac486578e6$var$_openDatabase()\n ];\n case 1:\n db = _state.sent();\n return [\n 4,\n $f394e9ac486578e6$var$_putObject(db, $f394e9ac486578e6$var$STORAGE_AVAILABLE_KEY, \"1\")\n ];\n case 2:\n _state.sent();\n return [\n 4,\n $f394e9ac486578e6$var$_deleteObject(db, $f394e9ac486578e6$var$STORAGE_AVAILABLE_KEY)\n ];\n case 3:\n _state.sent();\n return [\n 2,\n true\n ];\n case 4:\n _a = _state.sent();\n return [\n 3,\n 5\n ];\n case 5:\n return [\n 2,\n false\n ];\n }\n });\n })();\n }\n },\n {\n key: \"_withPendingWrite\",\n value: function _withPendingWrite(write) {\n var _this = this;\n return (0, $9167c88d5d99601b$export$7c398597f8905a1)(function() {\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n switch(_state.label){\n case 0:\n _this.pendingWrites++;\n _state.label = 1;\n case 1:\n _state.trys.push([\n 1,\n ,\n 3,\n 4\n ]);\n return [\n 4,\n write()\n ];\n case 2:\n _state.sent();\n return [\n 3,\n 4\n ];\n case 3:\n _this.pendingWrites--;\n return [\n 7\n ];\n case 4:\n return [\n 2\n ];\n }\n });\n })();\n }\n },\n {\n key: \"_set\",\n value: function _set(key, value) {\n var _this = this;\n return (0, $9167c88d5d99601b$export$7c398597f8905a1)(function() {\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n return [\n 2,\n _this._withPendingWrite(/*#__PURE__*/ (0, $9167c88d5d99601b$export$7c398597f8905a1)(function() {\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n switch(_state.label){\n case 0:\n return [\n 4,\n _this._withRetries(function(db) {\n return $f394e9ac486578e6$var$_putObject(db, key, value);\n })\n ];\n case 1:\n _state.sent();\n _this.localCache[key] = value;\n return [\n 2,\n _this.notifyServiceWorker(key)\n ];\n }\n });\n }))\n ];\n });\n })();\n }\n },\n {\n key: \"_get\",\n value: function _get(key) {\n var _this = this;\n return (0, $9167c88d5d99601b$export$7c398597f8905a1)(function() {\n var obj;\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n switch(_state.label){\n case 0:\n return [\n 4,\n _this._withRetries(function(db) {\n return $f394e9ac486578e6$var$getObject(db, key);\n })\n ];\n case 1:\n obj = _state.sent();\n _this.localCache[key] = obj;\n return [\n 2,\n obj\n ];\n }\n });\n })();\n }\n },\n {\n key: \"_remove\",\n value: function _remove(key) {\n var _this = this;\n return (0, $9167c88d5d99601b$export$7c398597f8905a1)(function() {\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n return [\n 2,\n _this._withPendingWrite(/*#__PURE__*/ (0, $9167c88d5d99601b$export$7c398597f8905a1)(function() {\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n switch(_state.label){\n case 0:\n return [\n 4,\n _this._withRetries(function(db) {\n return $f394e9ac486578e6$var$_deleteObject(db, key);\n })\n ];\n case 1:\n _state.sent();\n delete _this.localCache[key];\n return [\n 2,\n _this.notifyServiceWorker(key)\n ];\n }\n });\n }))\n ];\n });\n })();\n }\n },\n {\n key: \"_poll\",\n value: function _poll() {\n var _this = this;\n return (0, $9167c88d5d99601b$export$7c398597f8905a1)(function() {\n var result, keys, keysInResult, _iteratorNormalCompletion, _didIteratorError, _iteratorError, _iterator, _step, _step_value, key, value, _iteratorNormalCompletion1, _didIteratorError1, _iteratorError1, _iterator1, _step1, localKey;\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n switch(_state.label){\n case 0:\n return [\n 4,\n _this._withRetries(function(db) {\n var getAllRequest = $f394e9ac486578e6$var$getObjectStore(db, false).getAll();\n return new $f394e9ac486578e6$var$DBPromise(getAllRequest).toPromise();\n })\n ];\n case 1:\n result = _state.sent();\n if (!result) return [\n 2,\n []\n ];\n // If we have pending writes in progress abort, we'll get picked up on the next poll\n if (_this.pendingWrites !== 0) return [\n 2,\n []\n ];\n keys = [];\n keysInResult = new Set();\n _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;\n if (result.length !== 0) try {\n for(_iterator = result[Symbol.iterator](); !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){\n _step_value = _step.value, key = _step_value.fbase_key, value = _step_value.value;\n keysInResult.add(key);\n if (JSON.stringify(_this.localCache[key]) !== JSON.stringify(value)) {\n _this.notifyListeners(key, value);\n keys.push(key);\n }\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally{\n try {\n if (!_iteratorNormalCompletion && _iterator.return != null) {\n _iterator.return();\n }\n } finally{\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n _iteratorNormalCompletion1 = true, _didIteratorError1 = false, _iteratorError1 = undefined;\n try {\n for(_iterator1 = Object.keys(_this.localCache)[Symbol.iterator](); !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true){\n localKey = _step1.value;\n if (_this.localCache[localKey] && !keysInResult.has(localKey)) {\n // Deleted\n _this.notifyListeners(localKey, null);\n keys.push(localKey);\n }\n }\n } catch (err) {\n _didIteratorError1 = true;\n _iteratorError1 = err;\n } finally{\n try {\n if (!_iteratorNormalCompletion1 && _iterator1.return != null) {\n _iterator1.return();\n }\n } finally{\n if (_didIteratorError1) {\n throw _iteratorError1;\n }\n }\n }\n return [\n 2,\n keys\n ];\n }\n });\n })();\n }\n },\n {\n key: \"notifyListeners\",\n value: function notifyListeners(key, newValue) {\n this.localCache[key] = newValue;\n var listeners = this.listeners[key];\n var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;\n if (listeners) try {\n for(var _iterator = Array.from(listeners)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){\n var listener = _step.value;\n listener(newValue);\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally{\n try {\n if (!_iteratorNormalCompletion && _iterator.return != null) {\n _iterator.return();\n }\n } finally{\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n }\n },\n {\n key: \"startPolling\",\n value: function startPolling() {\n this.stopPolling();\n var _this = this;\n this.pollTimer = setInterval(/*#__PURE__*/ (0, $9167c88d5d99601b$export$7c398597f8905a1)(function() {\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n return [\n 2,\n _this._poll()\n ];\n });\n }), $f394e9ac486578e6$var$_POLLING_INTERVAL_MS);\n }\n },\n {\n key: \"stopPolling\",\n value: function stopPolling() {\n if (this.pollTimer) {\n clearInterval(this.pollTimer);\n this.pollTimer = null;\n }\n }\n },\n {\n key: \"_addListener\",\n value: function _addListener(key, listener) {\n if (Object.keys(this.listeners).length === 0) this.startPolling();\n if (!this.listeners[key]) {\n this.listeners[key] = new Set();\n // Populate the cache to avoid spuriously triggering on first poll.\n this._get(key); // This can happen in the background async and we can return immediately.\n }\n this.listeners[key].add(listener);\n }\n },\n {\n key: \"_removeListener\",\n value: function _removeListener(key, listener) {\n if (this.listeners[key]) {\n this.listeners[key].delete(listener);\n if (this.listeners[key].size === 0) delete this.listeners[key];\n }\n if (Object.keys(this.listeners).length === 0) this.stopPolling();\n }\n }\n ]);\n return IndexedDBLocalPersistence;\n}();\n$f394e9ac486578e6$var$IndexedDBLocalPersistence.type = \"LOCAL\";\n/**\r\n * An implementation of {@link Persistence} of type `LOCAL` using `indexedDB`\r\n * for the underlying storage.\r\n *\r\n * @public\r\n */ var $f394e9ac486578e6$export$23f2a1d2818174ef = $f394e9ac486578e6$var$IndexedDBLocalPersistence;\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */ function $f394e9ac486578e6$var$startSignInPhoneMfa(auth, request) {\n return $f394e9ac486578e6$var$_performApiRequest(auth, \"POST\" /* HttpMethod.POST */ , \"/v2/accounts/mfaSignIn:start\" /* Endpoint.START_MFA_SIGN_IN */ , $f394e9ac486578e6$var$_addTidIfNecessary(auth, request));\n}\nfunction $f394e9ac486578e6$var$finalizeSignInPhoneMfa(auth, request) {\n return $f394e9ac486578e6$var$_performApiRequest(auth, \"POST\" /* HttpMethod.POST */ , \"/v2/accounts/mfaSignIn:finalize\" /* Endpoint.FINALIZE_MFA_SIGN_IN */ , $f394e9ac486578e6$var$_addTidIfNecessary(auth, request));\n}\nfunction $f394e9ac486578e6$var$finalizeSignInTotpMfa(auth, request) {\n return $f394e9ac486578e6$var$_performApiRequest(auth, \"POST\" /* HttpMethod.POST */ , \"/v2/accounts/mfaSignIn:finalize\" /* Endpoint.FINALIZE_MFA_SIGN_IN */ , $f394e9ac486578e6$var$_addTidIfNecessary(auth, request));\n}\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */ var $f394e9ac486578e6$var$_SOLVE_TIME_MS = 500;\nvar $f394e9ac486578e6$var$_EXPIRATION_TIME_MS = 60000;\nvar $f394e9ac486578e6$var$_WIDGET_ID_START = 1000000000000;\nvar $f394e9ac486578e6$var$MockReCaptcha = /*#__PURE__*/ function() {\n \"use strict\";\n function MockReCaptcha(auth) {\n (0, $0c3f79e99c83f58f$export$2996f80ef42b8419)(this, MockReCaptcha);\n this.auth = auth;\n this.counter = $f394e9ac486578e6$var$_WIDGET_ID_START;\n this._widgets = new Map();\n }\n (0, $a27186eefd8c4b26$export$d60067ff2358eee8)(MockReCaptcha, [\n {\n key: \"render\",\n value: function render(container, parameters) {\n var id = this.counter;\n this._widgets.set(id, new $f394e9ac486578e6$var$MockWidget(container, this.auth.name, parameters || {}));\n this.counter++;\n return id;\n }\n },\n {\n key: \"reset\",\n value: function reset(optWidgetId) {\n var _a;\n var id = optWidgetId || $f394e9ac486578e6$var$_WIDGET_ID_START;\n (_a = this._widgets.get(id)) === null || _a === void 0 || _a.delete();\n this._widgets.delete(id);\n }\n },\n {\n key: \"getResponse\",\n value: function getResponse(optWidgetId) {\n var _a;\n var id = optWidgetId || $f394e9ac486578e6$var$_WIDGET_ID_START;\n return ((_a = this._widgets.get(id)) === null || _a === void 0 ? void 0 : _a.getResponse()) || \"\";\n }\n },\n {\n key: \"execute\",\n value: function execute(optWidgetId) {\n var _this = this;\n return (0, $9167c88d5d99601b$export$7c398597f8905a1)(function() {\n var _a, id;\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n id = optWidgetId || $f394e9ac486578e6$var$_WIDGET_ID_START;\n (_a = _this._widgets.get(id)) === null || _a === void 0 || _a.execute();\n return [\n 2,\n \"\"\n ];\n });\n })();\n }\n }\n ]);\n return MockReCaptcha;\n}();\nvar $f394e9ac486578e6$var$MockWidget = /*#__PURE__*/ function() {\n \"use strict\";\n function MockWidget(containerOrId, appName, params) {\n var _this = this;\n (0, $0c3f79e99c83f58f$export$2996f80ef42b8419)(this, MockWidget);\n this.params = params;\n this.timerId = null;\n this.deleted = false;\n this.responseToken = null;\n this.clickHandler = function() {\n _this.execute();\n };\n var container = typeof containerOrId === \"string\" ? document.getElementById(containerOrId) : containerOrId;\n $f394e9ac486578e6$export$890c4ad488842ce7(container, \"argument-error\" /* AuthErrorCode.ARGUMENT_ERROR */ , {\n appName: appName\n });\n this.container = container;\n this.isVisible = this.params.size !== \"invisible\";\n if (this.isVisible) this.execute();\n else this.container.addEventListener(\"click\", this.clickHandler);\n }\n (0, $a27186eefd8c4b26$export$d60067ff2358eee8)(MockWidget, [\n {\n key: \"getResponse\",\n value: function getResponse() {\n this.checkIfDeleted();\n return this.responseToken;\n }\n },\n {\n key: \"delete\",\n value: function _delete() {\n this.checkIfDeleted();\n this.deleted = true;\n if (this.timerId) {\n clearTimeout(this.timerId);\n this.timerId = null;\n }\n this.container.removeEventListener(\"click\", this.clickHandler);\n }\n },\n {\n key: \"execute\",\n value: function execute() {\n var _this = this;\n this.checkIfDeleted();\n if (this.timerId) return;\n this.timerId = window.setTimeout(function() {\n _this.responseToken = $f394e9ac486578e6$var$generateRandomAlphaNumericString(50);\n var _this_params = _this.params, callback = _this_params.callback, expiredCallback = _this_params[\"expired-callback\"];\n if (callback) try {\n callback(_this.responseToken);\n } catch (e) {}\n _this.timerId = window.setTimeout(function() {\n _this.timerId = null;\n _this.responseToken = null;\n if (expiredCallback) try {\n expiredCallback();\n } catch (e) {}\n if (_this.isVisible) _this.execute();\n }, $f394e9ac486578e6$var$_EXPIRATION_TIME_MS);\n }, $f394e9ac486578e6$var$_SOLVE_TIME_MS);\n }\n },\n {\n key: \"checkIfDeleted\",\n value: function checkIfDeleted() {\n if (this.deleted) throw new Error(\"reCAPTCHA mock was already deleted!\");\n }\n }\n ]);\n return MockWidget;\n}();\nfunction $f394e9ac486578e6$var$generateRandomAlphaNumericString(len) {\n var chars = [];\n var allowedChars = \"1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ\";\n for(var i = 0; i < len; i++)chars.push(allowedChars.charAt(Math.floor(Math.random() * allowedChars.length)));\n return chars.join(\"\");\n}\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */ // ReCaptcha will load using the same callback, so the callback function needs\n// to be kept around\nvar $f394e9ac486578e6$var$_JSLOAD_CALLBACK = $f394e9ac486578e6$var$_generateCallbackName(\"rcb\");\nvar $f394e9ac486578e6$var$NETWORK_TIMEOUT_DELAY = new $f394e9ac486578e6$var$Delay(30000, 60000);\nvar $f394e9ac486578e6$var$RECAPTCHA_BASE = \"https://www.google.com/recaptcha/api.js?\";\n/**\r\n * Loader for the GReCaptcha library. There should only ever be one of this.\r\n */ var $f394e9ac486578e6$var$ReCaptchaLoaderImpl = /*#__PURE__*/ function() {\n \"use strict\";\n function ReCaptchaLoaderImpl() {\n (0, $0c3f79e99c83f58f$export$2996f80ef42b8419)(this, ReCaptchaLoaderImpl);\n var _a;\n this.hostLanguage = \"\";\n this.counter = 0;\n /**\r\n * Check for `render()` method. `window.grecaptcha` will exist if the Enterprise\r\n * version of the ReCAPTCHA script was loaded by someone else (e.g. App Check) but\r\n * `window.grecaptcha.render()` will not. Another load will add it.\r\n */ this.librarySeparatelyLoaded = !!((_a = $f394e9ac486578e6$var$_window().grecaptcha) === null || _a === void 0 ? void 0 : _a.render);\n }\n (0, $a27186eefd8c4b26$export$d60067ff2358eee8)(ReCaptchaLoaderImpl, [\n {\n key: \"load\",\n value: function load(auth) {\n var hl = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : \"\";\n var _this = this;\n $f394e9ac486578e6$export$890c4ad488842ce7($f394e9ac486578e6$var$isHostLanguageValid(hl), auth, \"argument-error\" /* AuthErrorCode.ARGUMENT_ERROR */ );\n if (this.shouldResolveImmediately(hl) && $f394e9ac486578e6$var$isV2($f394e9ac486578e6$var$_window().grecaptcha)) return Promise.resolve($f394e9ac486578e6$var$_window().grecaptcha);\n return new Promise(function(resolve, reject) {\n var networkTimeout = $f394e9ac486578e6$var$_window().setTimeout(function() {\n reject($f394e9ac486578e6$export$9d398bebfec1c039(auth, \"network-request-failed\" /* AuthErrorCode.NETWORK_REQUEST_FAILED */ ));\n }, $f394e9ac486578e6$var$NETWORK_TIMEOUT_DELAY.get());\n $f394e9ac486578e6$var$_window()[$f394e9ac486578e6$var$_JSLOAD_CALLBACK] = function() {\n $f394e9ac486578e6$var$_window().clearTimeout(networkTimeout);\n delete $f394e9ac486578e6$var$_window()[$f394e9ac486578e6$var$_JSLOAD_CALLBACK];\n var recaptcha = $f394e9ac486578e6$var$_window().grecaptcha;\n if (!recaptcha || !$f394e9ac486578e6$var$isV2(recaptcha)) {\n reject($f394e9ac486578e6$export$9d398bebfec1c039(auth, \"internal-error\" /* AuthErrorCode.INTERNAL_ERROR */ ));\n return;\n }\n // Wrap the greptcha render function so that we know if the developer has\n // called it separately\n var render = recaptcha.render;\n recaptcha.render = function(container, params) {\n var widgetId = render(container, params);\n _this.counter++;\n return widgetId;\n };\n _this.hostLanguage = hl;\n resolve(recaptcha);\n };\n var url = \"\".concat($f394e9ac486578e6$var$RECAPTCHA_BASE, \"?\").concat((0, $9b50b37fb8824044$export$ac4103b836844853)({\n onload: $f394e9ac486578e6$var$_JSLOAD_CALLBACK,\n render: \"explicit\",\n hl: hl\n }));\n $f394e9ac486578e6$var$_loadJS(url).catch(function() {\n clearTimeout(networkTimeout);\n reject($f394e9ac486578e6$export$9d398bebfec1c039(auth, \"internal-error\" /* AuthErrorCode.INTERNAL_ERROR */ ));\n });\n });\n }\n },\n {\n key: \"clearedOneInstance\",\n value: function clearedOneInstance() {\n this.counter--;\n }\n },\n {\n key: \"shouldResolveImmediately\",\n value: function shouldResolveImmediately(hl) {\n var _a;\n // We can resolve immediately if:\n // • grecaptcha is already defined AND (\n // 1. the requested language codes are the same OR\n // 2. there exists already a ReCaptcha on the page\n // 3. the library was already loaded by the app\n // In cases (2) and (3), we _can't_ reload as it would break the recaptchas\n // that are already in the page\n return !!((_a = $f394e9ac486578e6$var$_window().grecaptcha) === null || _a === void 0 ? void 0 : _a.render) && (hl === this.hostLanguage || this.counter > 0 || this.librarySeparatelyLoaded);\n }\n }\n ]);\n return ReCaptchaLoaderImpl;\n}();\nfunction $f394e9ac486578e6$var$isHostLanguageValid(hl) {\n return hl.length <= 6 && /^\\s*[a-zA-Z0-9\\-]*\\s*$/.test(hl);\n}\nvar $f394e9ac486578e6$var$MockReCaptchaLoaderImpl = /*#__PURE__*/ function() {\n \"use strict\";\n function MockReCaptchaLoaderImpl() {\n (0, $0c3f79e99c83f58f$export$2996f80ef42b8419)(this, MockReCaptchaLoaderImpl);\n }\n (0, $a27186eefd8c4b26$export$d60067ff2358eee8)(MockReCaptchaLoaderImpl, [\n {\n key: \"load\",\n value: function load(auth) {\n return (0, $9167c88d5d99601b$export$7c398597f8905a1)(function() {\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n return [\n 2,\n new $f394e9ac486578e6$var$MockReCaptcha(auth)\n ];\n });\n })();\n }\n },\n {\n key: \"clearedOneInstance\",\n value: function clearedOneInstance() {}\n }\n ]);\n return MockReCaptchaLoaderImpl;\n}();\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */ var $f394e9ac486578e6$var$RECAPTCHA_VERIFIER_TYPE = \"recaptcha\";\nvar $f394e9ac486578e6$var$DEFAULT_PARAMS = {\n theme: \"light\",\n type: \"image\"\n};\n/**\r\n * An {@link https://www.google.com/recaptcha/ | reCAPTCHA}-based application verifier.\r\n *\r\n * @remarks\r\n * `RecaptchaVerifier` does not work in a Node.js environment.\r\n *\r\n * @public\r\n */ var $f394e9ac486578e6$export$db202ddc8be9136 = /*#__PURE__*/ function() {\n \"use strict\";\n function RecaptchaVerifier(authExtern, containerOrId) {\n var parameters = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : Object.assign({}, $f394e9ac486578e6$var$DEFAULT_PARAMS);\n (0, $0c3f79e99c83f58f$export$2996f80ef42b8419)(this, RecaptchaVerifier);\n this.parameters = parameters;\n /**\r\n * The application verifier type.\r\n *\r\n * @remarks\r\n * For a reCAPTCHA verifier, this is 'recaptcha'.\r\n */ this.type = $f394e9ac486578e6$var$RECAPTCHA_VERIFIER_TYPE;\n this.destroyed = false;\n this.widgetId = null;\n this.tokenChangeListeners = new Set();\n this.renderPromise = null;\n this.recaptcha = null;\n this.auth = $f394e9ac486578e6$export$a05254e7c3aeba6e(authExtern);\n this.isInvisible = this.parameters.size === \"invisible\";\n $f394e9ac486578e6$export$890c4ad488842ce7(typeof document !== \"undefined\", this.auth, \"operation-not-supported-in-this-environment\" /* AuthErrorCode.OPERATION_NOT_SUPPORTED */ );\n var container = typeof containerOrId === \"string\" ? document.getElementById(containerOrId) : containerOrId;\n $f394e9ac486578e6$export$890c4ad488842ce7(container, this.auth, \"argument-error\" /* AuthErrorCode.ARGUMENT_ERROR */ );\n this.container = container;\n this.parameters.callback = this.makeTokenCallback(this.parameters.callback);\n this._recaptchaLoader = this.auth.settings.appVerificationDisabledForTesting ? new $f394e9ac486578e6$var$MockReCaptchaLoaderImpl() : new $f394e9ac486578e6$var$ReCaptchaLoaderImpl();\n this.validateStartingState();\n }\n (0, $a27186eefd8c4b26$export$d60067ff2358eee8)(RecaptchaVerifier, [\n {\n key: \"verify\",\n value: /**\r\n * Waits for the user to solve the reCAPTCHA and resolves with the reCAPTCHA token.\r\n *\r\n * @returns A Promise for the reCAPTCHA token.\r\n */ function verify() {\n var _this = this;\n return (0, $9167c88d5d99601b$export$7c398597f8905a1)(function() {\n var id, recaptcha, response;\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n switch(_state.label){\n case 0:\n _this.assertNotDestroyed();\n return [\n 4,\n _this.render()\n ];\n case 1:\n id = _state.sent();\n recaptcha = _this.getAssertedRecaptcha();\n response = recaptcha.getResponse(id);\n if (response) return [\n 2,\n response\n ];\n return [\n 2,\n new Promise(function(resolve) {\n var tokenChange = function(token) {\n if (!token) return; // Ignore token expirations.\n _this.tokenChangeListeners.delete(tokenChange);\n resolve(token);\n };\n _this.tokenChangeListeners.add(tokenChange);\n if (_this.isInvisible) recaptcha.execute(id);\n })\n ];\n }\n });\n })();\n }\n },\n {\n /**\r\n * Renders the reCAPTCHA widget on the page.\r\n *\r\n * @returns A Promise that resolves with the reCAPTCHA widget ID.\r\n */ key: \"render\",\n value: function render() {\n var _this = this;\n try {\n this.assertNotDestroyed();\n } catch (e) {\n // This method returns a promise. Since it's not async (we want to return the\n // _same_ promise if rendering is still occurring), the API surface should\n // reject with the error rather than just throw\n return Promise.reject(e);\n }\n if (this.renderPromise) return this.renderPromise;\n this.renderPromise = this.makeRenderPromise().catch(function(e) {\n _this.renderPromise = null;\n throw e;\n });\n return this.renderPromise;\n }\n },\n {\n /** @internal */ key: \"_reset\",\n value: function _reset() {\n this.assertNotDestroyed();\n if (this.widgetId !== null) this.getAssertedRecaptcha().reset(this.widgetId);\n }\n },\n {\n /**\r\n * Clears the reCAPTCHA widget from the page and destroys the instance.\r\n */ key: \"clear\",\n value: function clear() {\n var _this = this;\n this.assertNotDestroyed();\n this.destroyed = true;\n this._recaptchaLoader.clearedOneInstance();\n if (!this.isInvisible) this.container.childNodes.forEach(function(node) {\n _this.container.removeChild(node);\n });\n }\n },\n {\n key: \"validateStartingState\",\n value: function validateStartingState() {\n $f394e9ac486578e6$export$890c4ad488842ce7(!this.parameters.sitekey, this.auth, \"argument-error\" /* AuthErrorCode.ARGUMENT_ERROR */ );\n $f394e9ac486578e6$export$890c4ad488842ce7(this.isInvisible || !this.container.hasChildNodes(), this.auth, \"argument-error\" /* AuthErrorCode.ARGUMENT_ERROR */ );\n $f394e9ac486578e6$export$890c4ad488842ce7(typeof document !== \"undefined\", this.auth, \"operation-not-supported-in-this-environment\" /* AuthErrorCode.OPERATION_NOT_SUPPORTED */ );\n }\n },\n {\n key: \"makeTokenCallback\",\n value: function makeTokenCallback(existing) {\n var _this = this;\n return function(token) {\n _this.tokenChangeListeners.forEach(function(listener) {\n return listener(token);\n });\n if (typeof existing === \"function\") existing(token);\n else if (typeof existing === \"string\") {\n var globalFunc = $f394e9ac486578e6$var$_window()[existing];\n if (typeof globalFunc === \"function\") globalFunc(token);\n }\n };\n }\n },\n {\n key: \"assertNotDestroyed\",\n value: function assertNotDestroyed() {\n $f394e9ac486578e6$export$890c4ad488842ce7(!this.destroyed, this.auth, \"internal-error\" /* AuthErrorCode.INTERNAL_ERROR */ );\n }\n },\n {\n key: \"makeRenderPromise\",\n value: function makeRenderPromise() {\n var _this = this;\n return (0, $9167c88d5d99601b$export$7c398597f8905a1)(function() {\n var container, guaranteedEmpty;\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n switch(_state.label){\n case 0:\n return [\n 4,\n _this.init()\n ];\n case 1:\n _state.sent();\n if (!_this.widgetId) {\n container = _this.container;\n if (!_this.isInvisible) {\n guaranteedEmpty = document.createElement(\"div\");\n container.appendChild(guaranteedEmpty);\n container = guaranteedEmpty;\n }\n _this.widgetId = _this.getAssertedRecaptcha().render(container, _this.parameters);\n }\n return [\n 2,\n _this.widgetId\n ];\n }\n });\n })();\n }\n },\n {\n key: \"init\",\n value: function init() {\n var _this = this;\n return (0, $9167c88d5d99601b$export$7c398597f8905a1)(function() {\n var siteKey;\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n switch(_state.label){\n case 0:\n $f394e9ac486578e6$export$890c4ad488842ce7($f394e9ac486578e6$var$_isHttpOrHttps() && !$f394e9ac486578e6$var$_isWorker(), _this.auth, \"internal-error\" /* AuthErrorCode.INTERNAL_ERROR */ );\n return [\n 4,\n $f394e9ac486578e6$var$domReady()\n ];\n case 1:\n _state.sent();\n return [\n 4,\n _this._recaptchaLoader.load(_this.auth, _this.auth.languageCode || undefined)\n ];\n case 2:\n _this.recaptcha = _state.sent();\n return [\n 4,\n $f394e9ac486578e6$var$getRecaptchaParams(_this.auth)\n ];\n case 3:\n siteKey = _state.sent();\n $f394e9ac486578e6$export$890c4ad488842ce7(siteKey, _this.auth, \"internal-error\" /* AuthErrorCode.INTERNAL_ERROR */ );\n _this.parameters.sitekey = siteKey;\n return [\n 2\n ];\n }\n });\n })();\n }\n },\n {\n key: \"getAssertedRecaptcha\",\n value: function getAssertedRecaptcha() {\n $f394e9ac486578e6$export$890c4ad488842ce7(this.recaptcha, this.auth, \"internal-error\" /* AuthErrorCode.INTERNAL_ERROR */ );\n return this.recaptcha;\n }\n }\n ]);\n return RecaptchaVerifier;\n}();\nfunction $f394e9ac486578e6$var$domReady() {\n var resolver = null;\n return new Promise(function(resolve) {\n if (document.readyState === \"complete\") {\n resolve();\n return;\n }\n // Document not ready, wait for load before resolving.\n // Save resolver, so we can remove listener in case it was externally\n // cancelled.\n resolver = function() {\n return resolve();\n };\n window.addEventListener(\"load\", resolver);\n }).catch(function(e) {\n if (resolver) window.removeEventListener(\"load\", resolver);\n throw e;\n });\n}\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */ var $f394e9ac486578e6$var$ConfirmationResultImpl = /*#__PURE__*/ function() {\n \"use strict\";\n function ConfirmationResultImpl(verificationId, onConfirmation) {\n (0, $0c3f79e99c83f58f$export$2996f80ef42b8419)(this, ConfirmationResultImpl);\n this.verificationId = verificationId;\n this.onConfirmation = onConfirmation;\n }\n (0, $a27186eefd8c4b26$export$d60067ff2358eee8)(ConfirmationResultImpl, [\n {\n key: \"confirm\",\n value: function confirm(verificationCode) {\n var authCredential = $f394e9ac486578e6$export$3722cfe417b6ed86._fromVerification(this.verificationId, verificationCode);\n return this.onConfirmation(authCredential);\n }\n }\n ]);\n return ConfirmationResultImpl;\n}();\nfunction $f394e9ac486578e6$export$2408f22a0fab9ae5(auth, phoneNumber, appVerifier) {\n return $f394e9ac486578e6$var$_signInWithPhoneNumber.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$var$_signInWithPhoneNumber() {\n $f394e9ac486578e6$var$_signInWithPhoneNumber = /**\r\n * Asynchronously signs in using a phone number.\r\n *\r\n * @remarks\r\n * This method sends a code via SMS to the given\r\n * phone number, and returns a {@link ConfirmationResult}. After the user\r\n * provides the code sent to their phone, call {@link ConfirmationResult.confirm}\r\n * with the code to sign the user in.\r\n *\r\n * For abuse prevention, this method also requires a {@link ApplicationVerifier}.\r\n * This SDK includes a reCAPTCHA-based implementation, {@link RecaptchaVerifier}.\r\n * This function can work on other platforms that do not support the\r\n * {@link RecaptchaVerifier} (like React Native), but you need to use a\r\n * third-party {@link ApplicationVerifier} implementation.\r\n *\r\n * This method does not work in a Node.js environment.\r\n *\r\n * @example\r\n * ```javascript\r\n * // 'recaptcha-container' is the ID of an element in the DOM.\r\n * const applicationVerifier = new firebase.auth.RecaptchaVerifier('recaptcha-container');\r\n * const confirmationResult = await signInWithPhoneNumber(auth, phoneNumber, applicationVerifier);\r\n * // Obtain a verificationCode from the user.\r\n * const credential = await confirmationResult.confirm(verificationCode);\r\n * ```\r\n *\r\n * @param auth - The {@link Auth} instance.\r\n * @param phoneNumber - The user's phone number in E.164 format (e.g. +16505550101).\r\n * @param appVerifier - The {@link ApplicationVerifier}.\r\n *\r\n * @public\r\n */ (0, $9167c88d5d99601b$export$7c398597f8905a1)(function(auth, phoneNumber, appVerifier) {\n var authInternal, verificationId;\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n switch(_state.label){\n case 0:\n authInternal = $f394e9ac486578e6$export$a05254e7c3aeba6e(auth);\n return [\n 4,\n $f394e9ac486578e6$var$_verifyPhoneNumber(authInternal, phoneNumber, (0, $9b50b37fb8824044$export$4befe9b5fa509a1b)(appVerifier))\n ];\n case 1:\n verificationId = _state.sent();\n return [\n 2,\n new $f394e9ac486578e6$var$ConfirmationResultImpl(verificationId, function(cred) {\n return $f394e9ac486578e6$export$3c2fa207a37baaea(authInternal, cred);\n })\n ];\n }\n });\n });\n return $f394e9ac486578e6$var$_signInWithPhoneNumber.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$export$882b5998b3b9117c(user, phoneNumber, appVerifier) {\n return $f394e9ac486578e6$var$_linkWithPhoneNumber.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$var$_linkWithPhoneNumber() {\n $f394e9ac486578e6$var$_linkWithPhoneNumber = /**\r\n * Links the user account with the given phone number.\r\n *\r\n * @remarks\r\n * This method does not work in a Node.js environment.\r\n *\r\n * @param user - The user.\r\n * @param phoneNumber - The user's phone number in E.164 format (e.g. +16505550101).\r\n * @param appVerifier - The {@link ApplicationVerifier}.\r\n *\r\n * @public\r\n */ (0, $9167c88d5d99601b$export$7c398597f8905a1)(function(user, phoneNumber, appVerifier) {\n var userInternal, verificationId;\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n switch(_state.label){\n case 0:\n userInternal = (0, $9b50b37fb8824044$export$4befe9b5fa509a1b)(user);\n return [\n 4,\n $f394e9ac486578e6$var$_assertLinkedStatus(false, userInternal, \"phone\" /* ProviderId.PHONE */ )\n ];\n case 1:\n _state.sent();\n return [\n 4,\n $f394e9ac486578e6$var$_verifyPhoneNumber(userInternal.auth, phoneNumber, (0, $9b50b37fb8824044$export$4befe9b5fa509a1b)(appVerifier))\n ];\n case 2:\n verificationId = _state.sent();\n return [\n 2,\n new $f394e9ac486578e6$var$ConfirmationResultImpl(verificationId, function(cred) {\n return $f394e9ac486578e6$export$ce26c07117d59d6a(userInternal, cred);\n })\n ];\n }\n });\n });\n return $f394e9ac486578e6$var$_linkWithPhoneNumber.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$export$43caf9889c228507(user, phoneNumber, appVerifier) {\n return $f394e9ac486578e6$var$_reauthenticateWithPhoneNumber.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$var$_reauthenticateWithPhoneNumber() {\n $f394e9ac486578e6$var$_reauthenticateWithPhoneNumber = /**\r\n * Re-authenticates a user using a fresh phone credential.\r\n *\r\n * @remarks\r\n * Use before operations such as {@link updatePassword} that require tokens from recent sign-in attempts.\r\n *\r\n * This method does not work in a Node.js environment.\r\n *\r\n * @param user - The user.\r\n * @param phoneNumber - The user's phone number in E.164 format (e.g. +16505550101).\r\n * @param appVerifier - The {@link ApplicationVerifier}.\r\n *\r\n * @public\r\n */ (0, $9167c88d5d99601b$export$7c398597f8905a1)(function(user, phoneNumber, appVerifier) {\n var userInternal, verificationId;\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n switch(_state.label){\n case 0:\n userInternal = (0, $9b50b37fb8824044$export$4befe9b5fa509a1b)(user);\n return [\n 4,\n $f394e9ac486578e6$var$_verifyPhoneNumber(userInternal.auth, phoneNumber, (0, $9b50b37fb8824044$export$4befe9b5fa509a1b)(appVerifier))\n ];\n case 1:\n verificationId = _state.sent();\n return [\n 2,\n new $f394e9ac486578e6$var$ConfirmationResultImpl(verificationId, function(cred) {\n return $f394e9ac486578e6$export$6559d589eb85fbb6(userInternal, cred);\n })\n ];\n }\n });\n });\n return $f394e9ac486578e6$var$_reauthenticateWithPhoneNumber.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$var$_verifyPhoneNumber(auth, options, verifier) {\n return $f394e9ac486578e6$var$__verifyPhoneNumber.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$var$__verifyPhoneNumber() {\n $f394e9ac486578e6$var$__verifyPhoneNumber = /**\r\n * Returns a verification ID to be used in conjunction with the SMS code that is sent.\r\n *\r\n */ (0, $9167c88d5d99601b$export$7c398597f8905a1)(function(auth, options, verifier) {\n var _a, recaptchaToken, phoneInfoOptions, session, response, mfaEnrollmentId, response1, sessionInfo;\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n switch(_state.label){\n case 0:\n return [\n 4,\n verifier.verify()\n ];\n case 1:\n recaptchaToken = _state.sent();\n _state.label = 2;\n case 2:\n _state.trys.push([\n 2,\n ,\n 10,\n 11\n ]);\n $f394e9ac486578e6$export$890c4ad488842ce7(typeof recaptchaToken === \"string\", auth, \"argument-error\" /* AuthErrorCode.ARGUMENT_ERROR */ );\n $f394e9ac486578e6$export$890c4ad488842ce7(verifier.type === $f394e9ac486578e6$var$RECAPTCHA_VERIFIER_TYPE, auth, \"argument-error\" /* AuthErrorCode.ARGUMENT_ERROR */ );\n if (typeof options === \"string\") phoneInfoOptions = {\n phoneNumber: options\n };\n else phoneInfoOptions = options;\n if (!(\"session\" in phoneInfoOptions)) return [\n 3,\n 7\n ];\n session = phoneInfoOptions.session;\n if (!(\"phoneNumber\" in phoneInfoOptions)) return [\n 3,\n 4\n ];\n $f394e9ac486578e6$export$890c4ad488842ce7(session.type === \"enroll\" /* MultiFactorSessionType.ENROLL */ , auth, \"internal-error\" /* AuthErrorCode.INTERNAL_ERROR */ );\n return [\n 4,\n $f394e9ac486578e6$var$startEnrollPhoneMfa(auth, {\n idToken: session.credential,\n phoneEnrollmentInfo: {\n phoneNumber: phoneInfoOptions.phoneNumber,\n recaptchaToken: recaptchaToken\n }\n })\n ];\n case 3:\n response = _state.sent();\n return [\n 2,\n response.phoneSessionInfo.sessionInfo\n ];\n case 4:\n $f394e9ac486578e6$export$890c4ad488842ce7(session.type === \"signin\" /* MultiFactorSessionType.SIGN_IN */ , auth, \"internal-error\" /* AuthErrorCode.INTERNAL_ERROR */ );\n mfaEnrollmentId = ((_a = phoneInfoOptions.multiFactorHint) === null || _a === void 0 ? void 0 : _a.uid) || phoneInfoOptions.multiFactorUid;\n $f394e9ac486578e6$export$890c4ad488842ce7(mfaEnrollmentId, auth, \"missing-multi-factor-info\" /* AuthErrorCode.MISSING_MFA_INFO */ );\n return [\n 4,\n $f394e9ac486578e6$var$startSignInPhoneMfa(auth, {\n mfaPendingCredential: session.credential,\n mfaEnrollmentId: mfaEnrollmentId,\n phoneSignInInfo: {\n recaptchaToken: recaptchaToken\n }\n })\n ];\n case 5:\n response1 = _state.sent();\n return [\n 2,\n response1.phoneResponseInfo.sessionInfo\n ];\n case 6:\n return [\n 3,\n 9\n ];\n case 7:\n return [\n 4,\n $f394e9ac486578e6$var$sendPhoneVerificationCode(auth, {\n phoneNumber: phoneInfoOptions.phoneNumber,\n recaptchaToken: recaptchaToken\n })\n ];\n case 8:\n sessionInfo = _state.sent().sessionInfo;\n return [\n 2,\n sessionInfo\n ];\n case 9:\n return [\n 3,\n 11\n ];\n case 10:\n verifier._reset();\n return [\n 7\n ];\n case 11:\n return [\n 2\n ];\n }\n });\n });\n return $f394e9ac486578e6$var$__verifyPhoneNumber.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$export$3b14a55fb2447963(user, credential) {\n return $f394e9ac486578e6$var$_updatePhoneNumber.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$var$_updatePhoneNumber() {\n $f394e9ac486578e6$var$_updatePhoneNumber = /**\r\n * Updates the user's phone number.\r\n *\r\n * @remarks\r\n * This method does not work in a Node.js environment.\r\n *\r\n * @example\r\n * ```\r\n * // 'recaptcha-container' is the ID of an element in the DOM.\r\n * const applicationVerifier = new RecaptchaVerifier('recaptcha-container');\r\n * const provider = new PhoneAuthProvider(auth);\r\n * const verificationId = await provider.verifyPhoneNumber('+16505550101', applicationVerifier);\r\n * // Obtain the verificationCode from the user.\r\n * const phoneCredential = PhoneAuthProvider.credential(verificationId, verificationCode);\r\n * await updatePhoneNumber(user, phoneCredential);\r\n * ```\r\n *\r\n * @param user - The user.\r\n * @param credential - A credential authenticating the new phone number.\r\n *\r\n * @public\r\n */ (0, $9167c88d5d99601b$export$7c398597f8905a1)(function(user, credential) {\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n switch(_state.label){\n case 0:\n return [\n 4,\n $f394e9ac486578e6$var$_link$1((0, $9b50b37fb8824044$export$4befe9b5fa509a1b)(user), credential)\n ];\n case 1:\n _state.sent();\n return [\n 2\n ];\n }\n });\n });\n return $f394e9ac486578e6$var$_updatePhoneNumber.apply(this, arguments);\n}\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */ /**\r\n * Provider for generating an {@link PhoneAuthCredential}.\r\n *\r\n * @remarks\r\n * `PhoneAuthProvider` does not work in a Node.js environment.\r\n *\r\n * @example\r\n * ```javascript\r\n * // 'recaptcha-container' is the ID of an element in the DOM.\r\n * const applicationVerifier = new RecaptchaVerifier('recaptcha-container');\r\n * const provider = new PhoneAuthProvider(auth);\r\n * const verificationId = await provider.verifyPhoneNumber('+16505550101', applicationVerifier);\r\n * // Obtain the verificationCode from the user.\r\n * const phoneCredential = PhoneAuthProvider.credential(verificationId, verificationCode);\r\n * const userCredential = await signInWithCredential(auth, phoneCredential);\r\n * ```\r\n *\r\n * @public\r\n */ var $f394e9ac486578e6$export$56c0d5a1e737357d = /*#__PURE__*/ function() {\n \"use strict\";\n function PhoneAuthProvider(auth) {\n (0, $0c3f79e99c83f58f$export$2996f80ef42b8419)(this, PhoneAuthProvider);\n /** Always set to {@link ProviderId}.PHONE. */ this.providerId = PhoneAuthProvider.PROVIDER_ID;\n this.auth = $f394e9ac486578e6$export$a05254e7c3aeba6e(auth);\n }\n (0, $a27186eefd8c4b26$export$d60067ff2358eee8)(PhoneAuthProvider, [\n {\n /**\r\n *\r\n * Starts a phone number authentication flow by sending a verification code to the given phone\r\n * number.\r\n *\r\n * @example\r\n * ```javascript\r\n * const provider = new PhoneAuthProvider(auth);\r\n * const verificationId = await provider.verifyPhoneNumber(phoneNumber, applicationVerifier);\r\n * // Obtain verificationCode from the user.\r\n * const authCredential = PhoneAuthProvider.credential(verificationId, verificationCode);\r\n * const userCredential = await signInWithCredential(auth, authCredential);\r\n * ```\r\n *\r\n * @example\r\n * An alternative flow is provided using the `signInWithPhoneNumber` method.\r\n * ```javascript\r\n * const confirmationResult = signInWithPhoneNumber(auth, phoneNumber, applicationVerifier);\r\n * // Obtain verificationCode from the user.\r\n * const userCredential = confirmationResult.confirm(verificationCode);\r\n * ```\r\n *\r\n * @param phoneInfoOptions - The user's {@link PhoneInfoOptions}. The phone number should be in\r\n * E.164 format (e.g. +16505550101).\r\n * @param applicationVerifier - For abuse prevention, this method also requires a\r\n * {@link ApplicationVerifier}. This SDK includes a reCAPTCHA-based implementation,\r\n * {@link RecaptchaVerifier}.\r\n *\r\n * @returns A Promise for a verification ID that can be passed to\r\n * {@link PhoneAuthProvider.credential} to identify this flow..\r\n */ key: \"verifyPhoneNumber\",\n value: function verifyPhoneNumber(phoneOptions, applicationVerifier) {\n return $f394e9ac486578e6$var$_verifyPhoneNumber(this.auth, phoneOptions, (0, $9b50b37fb8824044$export$4befe9b5fa509a1b)(applicationVerifier));\n }\n }\n ], [\n {\n key: \"credential\",\n value: /**\r\n * Creates a phone auth credential, given the verification ID from\r\n * {@link PhoneAuthProvider.verifyPhoneNumber} and the code that was sent to the user's\r\n * mobile device.\r\n *\r\n * @example\r\n * ```javascript\r\n * const provider = new PhoneAuthProvider(auth);\r\n * const verificationId = provider.verifyPhoneNumber(phoneNumber, applicationVerifier);\r\n * // Obtain verificationCode from the user.\r\n * const authCredential = PhoneAuthProvider.credential(verificationId, verificationCode);\r\n * const userCredential = signInWithCredential(auth, authCredential);\r\n * ```\r\n *\r\n * @example\r\n * An alternative flow is provided using the `signInWithPhoneNumber` method.\r\n * ```javascript\r\n * const confirmationResult = await signInWithPhoneNumber(auth, phoneNumber, applicationVerifier);\r\n * // Obtain verificationCode from the user.\r\n * const userCredential = await confirmationResult.confirm(verificationCode);\r\n * ```\r\n *\r\n * @param verificationId - The verification ID returned from {@link PhoneAuthProvider.verifyPhoneNumber}.\r\n * @param verificationCode - The verification code sent to the user's mobile device.\r\n *\r\n * @returns The auth provider credential.\r\n */ function credential(verificationId, verificationCode) {\n return $f394e9ac486578e6$export$3722cfe417b6ed86._fromVerification(verificationId, verificationCode);\n }\n },\n {\n key: \"credentialFromResult\",\n value: /**\r\n * Generates an {@link AuthCredential} from a {@link UserCredential}.\r\n * @param userCredential - The user credential.\r\n */ function credentialFromResult(userCredential) {\n var credential = userCredential;\n return PhoneAuthProvider.credentialFromTaggedObject(credential);\n }\n },\n {\n key: \"credentialFromError\",\n value: /**\r\n * Returns an {@link AuthCredential} when passed an error.\r\n *\r\n * @remarks\r\n *\r\n * This method works for errors like\r\n * `auth/account-exists-with-different-credentials`. This is useful for\r\n * recovering when attempting to set a user's phone number but the number\r\n * in question is already tied to another account. For example, the following\r\n * code tries to update the current user's phone number, and if that\r\n * fails, links the user with the account associated with that number:\r\n *\r\n * ```js\r\n * const provider = new PhoneAuthProvider(auth);\r\n * const verificationId = await provider.verifyPhoneNumber(number, verifier);\r\n * try {\r\n * const code = ''; // Prompt the user for the verification code\r\n * await updatePhoneNumber(\r\n * auth.currentUser,\r\n * PhoneAuthProvider.credential(verificationId, code));\r\n * } catch (e) {\r\n * if ((e as FirebaseError)?.code === 'auth/account-exists-with-different-credential') {\r\n * const cred = PhoneAuthProvider.credentialFromError(e);\r\n * await linkWithCredential(auth.currentUser, cred);\r\n * }\r\n * }\r\n *\r\n * // At this point, auth.currentUser.phoneNumber === number.\r\n * ```\r\n *\r\n * @param error - The error to generate a credential from.\r\n */ function credentialFromError(error) {\n return PhoneAuthProvider.credentialFromTaggedObject(error.customData || {});\n }\n },\n {\n key: \"credentialFromTaggedObject\",\n value: function credentialFromTaggedObject(param) {\n var tokenResponse = param._tokenResponse;\n if (!tokenResponse) return null;\n var phoneNumber = tokenResponse.phoneNumber, temporaryProof = tokenResponse.temporaryProof;\n if (phoneNumber && temporaryProof) return $f394e9ac486578e6$export$3722cfe417b6ed86._fromTokenResponse(phoneNumber, temporaryProof);\n return null;\n }\n }\n ]);\n return PhoneAuthProvider;\n}();\n/** Always set to {@link ProviderId}.PHONE. */ $f394e9ac486578e6$export$56c0d5a1e737357d.PROVIDER_ID = \"phone\" /* ProviderId.PHONE */ ;\n/** Always set to {@link SignInMethod}.PHONE. */ $f394e9ac486578e6$export$56c0d5a1e737357d.PHONE_SIGN_IN_METHOD = \"phone\" /* SignInMethod.PHONE */ ;\n/**\r\n * @license\r\n * Copyright 2021 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */ /**\r\n * Chooses a popup/redirect resolver to use. This prefers the override (which\r\n * is directly passed in), and falls back to the property set on the auth\r\n * object. If neither are available, this function errors w/ an argument error.\r\n */ function $f394e9ac486578e6$var$_withDefaultResolver(auth, resolverOverride) {\n if (resolverOverride) return $f394e9ac486578e6$export$158acd800e1ef08b(resolverOverride);\n $f394e9ac486578e6$export$890c4ad488842ce7(auth._popupRedirectResolver, auth, \"argument-error\" /* AuthErrorCode.ARGUMENT_ERROR */ );\n return auth._popupRedirectResolver;\n}\n/**\r\n * @license\r\n * Copyright 2019 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */ var $f394e9ac486578e6$var$IdpCredential = /*#__PURE__*/ function(AuthCredential) {\n \"use strict\";\n (0, $a3fe9d9bda1cd86f$export$7e4530ad35d3bb8)(IdpCredential, AuthCredential);\n var _super = (0, $60ddfe51b57fdc13$export$8dd05c13f5255580)(IdpCredential);\n function IdpCredential(params) {\n (0, $0c3f79e99c83f58f$export$2996f80ef42b8419)(this, IdpCredential);\n var _this;\n _this = _super.call(this, \"custom\" /* ProviderId.CUSTOM */ , \"custom\" /* ProviderId.CUSTOM */ );\n _this.params = params;\n return _this;\n }\n (0, $a27186eefd8c4b26$export$d60067ff2358eee8)(IdpCredential, [\n {\n key: \"_getIdTokenResponse\",\n value: function _getIdTokenResponse(auth) {\n return $f394e9ac486578e6$var$signInWithIdp(auth, this._buildIdpRequest());\n }\n },\n {\n key: \"_linkToIdToken\",\n value: function _linkToIdToken(auth, idToken) {\n return $f394e9ac486578e6$var$signInWithIdp(auth, this._buildIdpRequest(idToken));\n }\n },\n {\n key: \"_getReauthenticationResolver\",\n value: function _getReauthenticationResolver(auth) {\n return $f394e9ac486578e6$var$signInWithIdp(auth, this._buildIdpRequest());\n }\n },\n {\n key: \"_buildIdpRequest\",\n value: function _buildIdpRequest(idToken) {\n var request = {\n requestUri: this.params.requestUri,\n sessionId: this.params.sessionId,\n postBody: this.params.postBody,\n tenantId: this.params.tenantId,\n pendingToken: this.params.pendingToken,\n returnSecureToken: true,\n returnIdpCredential: true\n };\n if (idToken) request.idToken = idToken;\n return request;\n }\n }\n ]);\n return IdpCredential;\n}($f394e9ac486578e6$export$61196ced6d74a310);\nfunction $f394e9ac486578e6$var$_signIn(params) {\n return $f394e9ac486578e6$var$_signInWithCredential(params.auth, new $f394e9ac486578e6$var$IdpCredential(params), params.bypassAuthState);\n}\nfunction $f394e9ac486578e6$var$_reauth(params) {\n var auth = params.auth, user = params.user;\n $f394e9ac486578e6$export$890c4ad488842ce7(user, auth, \"internal-error\" /* AuthErrorCode.INTERNAL_ERROR */ );\n return $f394e9ac486578e6$var$_reauthenticate(user, new $f394e9ac486578e6$var$IdpCredential(params), params.bypassAuthState);\n}\nfunction $f394e9ac486578e6$var$_link(params) {\n return $f394e9ac486578e6$var$__link.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$var$__link() {\n $f394e9ac486578e6$var$__link = (0, $9167c88d5d99601b$export$7c398597f8905a1)(function(params) {\n var auth, user;\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n auth = params.auth, user = params.user;\n $f394e9ac486578e6$export$890c4ad488842ce7(user, auth, \"internal-error\" /* AuthErrorCode.INTERNAL_ERROR */ );\n return [\n 2,\n $f394e9ac486578e6$var$_link$1(user, new $f394e9ac486578e6$var$IdpCredential(params), params.bypassAuthState)\n ];\n });\n });\n return $f394e9ac486578e6$var$__link.apply(this, arguments);\n}\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */ /**\r\n * Popup event manager. Handles the popup's entire lifecycle; listens to auth\r\n * events\r\n */ var $f394e9ac486578e6$var$AbstractPopupRedirectOperation = /*#__PURE__*/ function() {\n \"use strict\";\n function AbstractPopupRedirectOperation(auth, filter, resolver, user) {\n var bypassAuthState = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : false;\n (0, $0c3f79e99c83f58f$export$2996f80ef42b8419)(this, AbstractPopupRedirectOperation);\n this.auth = auth;\n this.resolver = resolver;\n this.user = user;\n this.bypassAuthState = bypassAuthState;\n this.pendingPromise = null;\n this.eventManager = null;\n this.filter = Array.isArray(filter) ? filter : [\n filter\n ];\n }\n (0, $a27186eefd8c4b26$export$d60067ff2358eee8)(AbstractPopupRedirectOperation, [\n {\n key: \"execute\",\n value: function execute() {\n var _this = this;\n return new Promise(function() {\n var _ref = (0, $9167c88d5d99601b$export$7c398597f8905a1)(function(resolve, reject) {\n var e;\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n switch(_state.label){\n case 0:\n _this.pendingPromise = {\n resolve: resolve,\n reject: reject\n };\n _state.label = 1;\n case 1:\n _state.trys.push([\n 1,\n 4,\n ,\n 5\n ]);\n return [\n 4,\n _this.resolver._initialize(_this.auth)\n ];\n case 2:\n _this.eventManager = _state.sent();\n return [\n 4,\n _this.onExecution()\n ];\n case 3:\n _state.sent();\n _this.eventManager.registerConsumer(_this);\n return [\n 3,\n 5\n ];\n case 4:\n e = _state.sent();\n _this.reject(e);\n return [\n 3,\n 5\n ];\n case 5:\n return [\n 2\n ];\n }\n });\n });\n return function(resolve, reject) {\n return _ref.apply(this, arguments);\n };\n }());\n }\n },\n {\n key: \"onAuthEvent\",\n value: function onAuthEvent(event) {\n var _this = this;\n return (0, $9167c88d5d99601b$export$7c398597f8905a1)(function() {\n var urlResponse, sessionId, postBody, tenantId, error, type, params, _, e;\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n switch(_state.label){\n case 0:\n urlResponse = event.urlResponse, sessionId = event.sessionId, postBody = event.postBody, tenantId = event.tenantId, error = event.error, type = event.type;\n if (error) {\n _this.reject(error);\n return [\n 2\n ];\n }\n params = {\n auth: _this.auth,\n requestUri: urlResponse,\n sessionId: sessionId,\n tenantId: tenantId || undefined,\n postBody: postBody || undefined,\n user: _this.user,\n bypassAuthState: _this.bypassAuthState\n };\n _state.label = 1;\n case 1:\n _state.trys.push([\n 1,\n 3,\n ,\n 4\n ]);\n _ = _this.resolve;\n return [\n 4,\n _this.getIdpTask(type)(params)\n ];\n case 2:\n _.apply(_this, [\n _state.sent()\n ]);\n return [\n 3,\n 4\n ];\n case 3:\n e = _state.sent();\n _this.reject(e);\n return [\n 3,\n 4\n ];\n case 4:\n return [\n 2\n ];\n }\n });\n })();\n }\n },\n {\n key: \"onError\",\n value: function onError(error) {\n this.reject(error);\n }\n },\n {\n key: \"getIdpTask\",\n value: function getIdpTask(type) {\n switch(type){\n case \"signInViaPopup\" /* AuthEventType.SIGN_IN_VIA_POPUP */ :\n case \"signInViaRedirect\" /* AuthEventType.SIGN_IN_VIA_REDIRECT */ :\n return $f394e9ac486578e6$var$_signIn;\n case \"linkViaPopup\" /* AuthEventType.LINK_VIA_POPUP */ :\n case \"linkViaRedirect\" /* AuthEventType.LINK_VIA_REDIRECT */ :\n return $f394e9ac486578e6$var$_link;\n case \"reauthViaPopup\" /* AuthEventType.REAUTH_VIA_POPUP */ :\n case \"reauthViaRedirect\" /* AuthEventType.REAUTH_VIA_REDIRECT */ :\n return $f394e9ac486578e6$var$_reauth;\n default:\n $f394e9ac486578e6$export$9fa96a7d116ea3ce(this.auth, \"internal-error\" /* AuthErrorCode.INTERNAL_ERROR */ );\n }\n }\n },\n {\n key: \"resolve\",\n value: function resolve(cred) {\n $f394e9ac486578e6$export$1fbe638ecf81657e(this.pendingPromise, \"Pending promise was never set\");\n this.pendingPromise.resolve(cred);\n this.unregisterAndCleanUp();\n }\n },\n {\n key: \"reject\",\n value: function reject(error) {\n $f394e9ac486578e6$export$1fbe638ecf81657e(this.pendingPromise, \"Pending promise was never set\");\n this.pendingPromise.reject(error);\n this.unregisterAndCleanUp();\n }\n },\n {\n key: \"unregisterAndCleanUp\",\n value: function unregisterAndCleanUp() {\n if (this.eventManager) this.eventManager.unregisterConsumer(this);\n this.pendingPromise = null;\n this.cleanUp();\n }\n }\n ]);\n return AbstractPopupRedirectOperation;\n}();\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */ var $f394e9ac486578e6$var$_POLL_WINDOW_CLOSE_TIMEOUT = new $f394e9ac486578e6$var$Delay(2000, 10000);\nfunction $f394e9ac486578e6$export$db3b6bfb95261072(auth, provider, resolver) {\n return $f394e9ac486578e6$var$_signInWithPopup.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$var$_signInWithPopup() {\n $f394e9ac486578e6$var$_signInWithPopup = /**\r\n * Authenticates a Firebase client using a popup-based OAuth authentication flow.\r\n *\r\n * @remarks\r\n * If succeeds, returns the signed in user along with the provider's credential. If sign in was\r\n * unsuccessful, returns an error object containing additional information about the error.\r\n *\r\n * This method does not work in a Node.js environment.\r\n *\r\n * @example\r\n * ```javascript\r\n * // Sign in using a popup.\r\n * const provider = new FacebookAuthProvider();\r\n * const result = await signInWithPopup(auth, provider);\r\n *\r\n * // The signed-in user info.\r\n * const user = result.user;\r\n * // This gives you a Facebook Access Token.\r\n * const credential = provider.credentialFromResult(auth, result);\r\n * const token = credential.accessToken;\r\n * ```\r\n *\r\n * @param auth - The {@link Auth} instance.\r\n * @param provider - The provider to authenticate. The provider has to be an {@link OAuthProvider}.\r\n * Non-OAuth providers like {@link EmailAuthProvider} will throw an error.\r\n * @param resolver - An instance of {@link PopupRedirectResolver}, optional\r\n * if already supplied to {@link initializeAuth} or provided by {@link getAuth}.\r\n *\r\n * @public\r\n */ (0, $9167c88d5d99601b$export$7c398597f8905a1)(function(auth, provider, resolver) {\n var authInternal, resolverInternal, action;\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n authInternal = $f394e9ac486578e6$export$a05254e7c3aeba6e(auth);\n $f394e9ac486578e6$var$_assertInstanceOf(auth, provider, $f394e9ac486578e6$var$FederatedAuthProvider);\n resolverInternal = $f394e9ac486578e6$var$_withDefaultResolver(authInternal, resolver);\n action = new $f394e9ac486578e6$var$PopupOperation(authInternal, \"signInViaPopup\" /* AuthEventType.SIGN_IN_VIA_POPUP */ , provider, resolverInternal);\n return [\n 2,\n action.executeNotNull()\n ];\n });\n });\n return $f394e9ac486578e6$var$_signInWithPopup.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$export$f1e1789686576879(user, provider, resolver) {\n return $f394e9ac486578e6$var$_reauthenticateWithPopup.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$var$_reauthenticateWithPopup() {\n $f394e9ac486578e6$var$_reauthenticateWithPopup = /**\r\n * Reauthenticates the current user with the specified {@link OAuthProvider} using a pop-up based\r\n * OAuth flow.\r\n *\r\n * @remarks\r\n * If the reauthentication is successful, the returned result will contain the user and the\r\n * provider's credential.\r\n *\r\n * This method does not work in a Node.js environment.\r\n *\r\n * @example\r\n * ```javascript\r\n * // Sign in using a popup.\r\n * const provider = new FacebookAuthProvider();\r\n * const result = await signInWithPopup(auth, provider);\r\n * // Reauthenticate using a popup.\r\n * await reauthenticateWithPopup(result.user, provider);\r\n * ```\r\n *\r\n * @param user - The user.\r\n * @param provider - The provider to authenticate. The provider has to be an {@link OAuthProvider}.\r\n * Non-OAuth providers like {@link EmailAuthProvider} will throw an error.\r\n * @param resolver - An instance of {@link PopupRedirectResolver}, optional\r\n * if already supplied to {@link initializeAuth} or provided by {@link getAuth}.\r\n *\r\n * @public\r\n */ (0, $9167c88d5d99601b$export$7c398597f8905a1)(function(user, provider, resolver) {\n var userInternal, resolverInternal, action;\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n userInternal = (0, $9b50b37fb8824044$export$4befe9b5fa509a1b)(user);\n $f394e9ac486578e6$var$_assertInstanceOf(userInternal.auth, provider, $f394e9ac486578e6$var$FederatedAuthProvider);\n resolverInternal = $f394e9ac486578e6$var$_withDefaultResolver(userInternal.auth, resolver);\n action = new $f394e9ac486578e6$var$PopupOperation(userInternal.auth, \"reauthViaPopup\" /* AuthEventType.REAUTH_VIA_POPUP */ , provider, resolverInternal, userInternal);\n return [\n 2,\n action.executeNotNull()\n ];\n });\n });\n return $f394e9ac486578e6$var$_reauthenticateWithPopup.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$export$4368d992c4eafac0(user, provider, resolver) {\n return $f394e9ac486578e6$var$_linkWithPopup.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$var$_linkWithPopup() {\n $f394e9ac486578e6$var$_linkWithPopup = /**\r\n * Links the authenticated provider to the user account using a pop-up based OAuth flow.\r\n *\r\n * @remarks\r\n * If the linking is successful, the returned result will contain the user and the provider's credential.\r\n *\r\n * This method does not work in a Node.js environment.\r\n *\r\n * @example\r\n * ```javascript\r\n * // Sign in using some other provider.\r\n * const result = await signInWithEmailAndPassword(auth, email, password);\r\n * // Link using a popup.\r\n * const provider = new FacebookAuthProvider();\r\n * await linkWithPopup(result.user, provider);\r\n * ```\r\n *\r\n * @param user - The user.\r\n * @param provider - The provider to authenticate. The provider has to be an {@link OAuthProvider}.\r\n * Non-OAuth providers like {@link EmailAuthProvider} will throw an error.\r\n * @param resolver - An instance of {@link PopupRedirectResolver}, optional\r\n * if already supplied to {@link initializeAuth} or provided by {@link getAuth}.\r\n *\r\n * @public\r\n */ (0, $9167c88d5d99601b$export$7c398597f8905a1)(function(user, provider, resolver) {\n var userInternal, resolverInternal, action;\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n userInternal = (0, $9b50b37fb8824044$export$4befe9b5fa509a1b)(user);\n $f394e9ac486578e6$var$_assertInstanceOf(userInternal.auth, provider, $f394e9ac486578e6$var$FederatedAuthProvider);\n resolverInternal = $f394e9ac486578e6$var$_withDefaultResolver(userInternal.auth, resolver);\n action = new $f394e9ac486578e6$var$PopupOperation(userInternal.auth, \"linkViaPopup\" /* AuthEventType.LINK_VIA_POPUP */ , provider, resolverInternal, userInternal);\n return [\n 2,\n action.executeNotNull()\n ];\n });\n });\n return $f394e9ac486578e6$var$_linkWithPopup.apply(this, arguments);\n}\n/**\r\n * Popup event manager. Handles the popup's entire lifecycle; listens to auth\r\n * events\r\n *\r\n */ var $f394e9ac486578e6$var$PopupOperation = /*#__PURE__*/ function(AbstractPopupRedirectOperation) {\n \"use strict\";\n (0, $a3fe9d9bda1cd86f$export$7e4530ad35d3bb8)(PopupOperation, AbstractPopupRedirectOperation);\n var _super = (0, $60ddfe51b57fdc13$export$8dd05c13f5255580)(PopupOperation);\n function PopupOperation(auth, filter, provider, resolver, user) {\n (0, $0c3f79e99c83f58f$export$2996f80ef42b8419)(this, PopupOperation);\n var _this;\n _this = _super.call(this, auth, filter, resolver, user);\n _this.provider = provider;\n _this.authWindow = null;\n _this.pollId = null;\n if (PopupOperation.currentPopupAction) PopupOperation.currentPopupAction.cancel();\n PopupOperation.currentPopupAction = (0, $b419213e67ec23f4$export$f3b8ed2e4a5d10b8)(_this);\n return _this;\n }\n (0, $a27186eefd8c4b26$export$d60067ff2358eee8)(PopupOperation, [\n {\n key: \"executeNotNull\",\n value: function executeNotNull() {\n var _this = this;\n return (0, $9167c88d5d99601b$export$7c398597f8905a1)(function() {\n var result;\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n switch(_state.label){\n case 0:\n return [\n 4,\n _this.execute()\n ];\n case 1:\n result = _state.sent();\n $f394e9ac486578e6$export$890c4ad488842ce7(result, _this.auth, \"internal-error\" /* AuthErrorCode.INTERNAL_ERROR */ );\n return [\n 2,\n result\n ];\n }\n });\n })();\n }\n },\n {\n key: \"onExecution\",\n value: function onExecution() {\n var _this = this;\n return (0, $9167c88d5d99601b$export$7c398597f8905a1)(function() {\n var eventId;\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n switch(_state.label){\n case 0:\n $f394e9ac486578e6$export$1fbe638ecf81657e(_this.filter.length === 1, \"Popup operations only handle one event\");\n eventId = $f394e9ac486578e6$export$faec65b429be379();\n return [\n 4,\n _this.resolver._openPopup(_this.auth, _this.provider, _this.filter[0], eventId)\n ];\n case 1:\n _this.authWindow = _state.sent();\n _this.authWindow.associatedEvent = eventId;\n // Check for web storage support and origin validation _after_ the popup is\n // loaded. These operations are slow (~1 second or so) Rather than\n // waiting on them before opening the window, optimistically open the popup\n // and check for storage support at the same time. If storage support is\n // not available, this will cause the whole thing to reject properly. It\n // will also close the popup, but since the promise has already rejected,\n // the popup closed by user poll will reject into the void.\n _this.resolver._originValidation(_this.auth).catch(function(e) {\n _this.reject(e);\n });\n _this.resolver._isIframeWebStorageSupported(_this.auth, function(isSupported) {\n if (!isSupported) _this.reject($f394e9ac486578e6$export$9d398bebfec1c039(_this.auth, \"web-storage-unsupported\" /* AuthErrorCode.WEB_STORAGE_UNSUPPORTED */ ));\n });\n // Handle user closure. Notice this does *not* use await\n _this.pollUserCancellation();\n return [\n 2\n ];\n }\n });\n })();\n }\n },\n {\n key: \"eventId\",\n get: function get() {\n var _a;\n return ((_a = this.authWindow) === null || _a === void 0 ? void 0 : _a.associatedEvent) || null;\n }\n },\n {\n key: \"cancel\",\n value: function cancel() {\n this.reject($f394e9ac486578e6$export$9d398bebfec1c039(this.auth, \"cancelled-popup-request\" /* AuthErrorCode.EXPIRED_POPUP_REQUEST */ ));\n }\n },\n {\n key: \"cleanUp\",\n value: function cleanUp() {\n if (this.authWindow) this.authWindow.close();\n if (this.pollId) window.clearTimeout(this.pollId);\n this.authWindow = null;\n this.pollId = null;\n PopupOperation.currentPopupAction = null;\n }\n },\n {\n key: \"pollUserCancellation\",\n value: function pollUserCancellation() {\n var _this = this;\n var poll = function() {\n var _a, _b;\n if ((_b = (_a = _this.authWindow) === null || _a === void 0 ? void 0 : _a.window) === null || _b === void 0 ? void 0 : _b.closed) {\n // Make sure that there is sufficient time for whatever action to\n // complete. The window could have closed but the sign in network\n // call could still be in flight. This is specifically true for\n // Firefox or if the opener is in an iframe, in which case the oauth\n // helper closes the popup.\n _this.pollId = window.setTimeout(function() {\n _this.pollId = null;\n _this.reject($f394e9ac486578e6$export$9d398bebfec1c039(_this.auth, \"popup-closed-by-user\" /* AuthErrorCode.POPUP_CLOSED_BY_USER */ ));\n }, 8000 /* _Timeout.AUTH_EVENT */ );\n return;\n }\n _this.pollId = window.setTimeout(poll, $f394e9ac486578e6$var$_POLL_WINDOW_CLOSE_TIMEOUT.get());\n };\n poll();\n }\n }\n ]);\n return PopupOperation;\n}($f394e9ac486578e6$var$AbstractPopupRedirectOperation);\n// Only one popup is ever shown at once. The lifecycle of the current popup\n// can be managed / cancelled by the constructor.\n$f394e9ac486578e6$var$PopupOperation.currentPopupAction = null;\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */ var $f394e9ac486578e6$var$PENDING_REDIRECT_KEY = \"pendingRedirect\";\n// We only get one redirect outcome for any one auth, so just store it\n// in here.\nvar $f394e9ac486578e6$var$redirectOutcomeMap = new Map();\nvar $f394e9ac486578e6$var$RedirectAction = /*#__PURE__*/ function(AbstractPopupRedirectOperation) {\n \"use strict\";\n (0, $a3fe9d9bda1cd86f$export$7e4530ad35d3bb8)(RedirectAction, AbstractPopupRedirectOperation);\n var _super = (0, $60ddfe51b57fdc13$export$8dd05c13f5255580)(RedirectAction);\n function RedirectAction(auth, resolver) {\n var bypassAuthState = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : false;\n (0, $0c3f79e99c83f58f$export$2996f80ef42b8419)(this, RedirectAction);\n var _this;\n _this = _super.call(this, auth, [\n \"signInViaRedirect\" /* AuthEventType.SIGN_IN_VIA_REDIRECT */ ,\n \"linkViaRedirect\" /* AuthEventType.LINK_VIA_REDIRECT */ ,\n \"reauthViaRedirect\" /* AuthEventType.REAUTH_VIA_REDIRECT */ ,\n \"unknown\" /* AuthEventType.UNKNOWN */ \n ], resolver, undefined, bypassAuthState);\n _this.eventId = null;\n return _this;\n }\n (0, $a27186eefd8c4b26$export$d60067ff2358eee8)(RedirectAction, [\n {\n key: \"execute\",\n value: /**\r\n * Override the execute function; if we already have a redirect result, then\r\n * just return it.\r\n */ function execute() {\n var _this = this;\n var _this1 = this, _superprop_get_execute = function() {\n return (0, $ecbc2403a053d1fd$export$afb3516d9d608401)((0, $a1f3116cd0a6764d$export$f09211a7d3c496a1)(RedirectAction.prototype), \"execute\", _this);\n };\n return (0, $9167c88d5d99601b$export$7c398597f8905a1)(function() {\n var readyOutcome, hasPendingRedirect, result, _tmp, e;\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n switch(_state.label){\n case 0:\n readyOutcome = $f394e9ac486578e6$var$redirectOutcomeMap.get(_this1.auth._key());\n if (!!readyOutcome) return [\n 3,\n 8\n ];\n _state.label = 1;\n case 1:\n _state.trys.push([\n 1,\n 6,\n ,\n 7\n ]);\n return [\n 4,\n $f394e9ac486578e6$var$_getAndClearPendingRedirectStatus(_this1.resolver, _this1.auth)\n ];\n case 2:\n hasPendingRedirect = _state.sent();\n if (!hasPendingRedirect) return [\n 3,\n 4\n ];\n return [\n 4,\n _superprop_get_execute().call(_this1)\n ];\n case 3:\n _tmp = _state.sent();\n return [\n 3,\n 5\n ];\n case 4:\n _tmp = null;\n _state.label = 5;\n case 5:\n result = _tmp;\n readyOutcome = function() {\n return Promise.resolve(result);\n };\n return [\n 3,\n 7\n ];\n case 6:\n e = _state.sent();\n readyOutcome = function() {\n return Promise.reject(e);\n };\n return [\n 3,\n 7\n ];\n case 7:\n $f394e9ac486578e6$var$redirectOutcomeMap.set(_this1.auth._key(), readyOutcome);\n _state.label = 8;\n case 8:\n // If we're not bypassing auth state, the ready outcome should be set to\n // null.\n if (!_this1.bypassAuthState) $f394e9ac486578e6$var$redirectOutcomeMap.set(_this1.auth._key(), function() {\n return Promise.resolve(null);\n });\n return [\n 2,\n readyOutcome()\n ];\n }\n });\n })();\n }\n },\n {\n key: \"onAuthEvent\",\n value: function onAuthEvent(event) {\n var _this = this;\n var _this1 = this, _superprop_get_onAuthEvent = function() {\n return (0, $ecbc2403a053d1fd$export$afb3516d9d608401)((0, $a1f3116cd0a6764d$export$f09211a7d3c496a1)(RedirectAction.prototype), \"onAuthEvent\", _this);\n };\n return (0, $9167c88d5d99601b$export$7c398597f8905a1)(function() {\n var user;\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n switch(_state.label){\n case 0:\n if (event.type === \"signInViaRedirect\" /* AuthEventType.SIGN_IN_VIA_REDIRECT */ ) return [\n 2,\n _superprop_get_onAuthEvent().call(_this1, event)\n ];\n else if (event.type === \"unknown\" /* AuthEventType.UNKNOWN */ ) {\n // This is a sentinel value indicating there's no pending redirect\n _this1.resolve(null);\n return [\n 2\n ];\n }\n if (!event.eventId) return [\n 3,\n 2\n ];\n return [\n 4,\n _this1.auth._redirectUserForId(event.eventId)\n ];\n case 1:\n user = _state.sent();\n if (user) {\n _this1.user = user;\n return [\n 2,\n _superprop_get_onAuthEvent().call(_this1, event)\n ];\n } else _this1.resolve(null);\n _state.label = 2;\n case 2:\n return [\n 2\n ];\n }\n });\n })();\n }\n },\n {\n key: \"onExecution\",\n value: function onExecution() {\n return (0, $9167c88d5d99601b$export$7c398597f8905a1)(function() {\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n return [\n 2\n ];\n });\n })();\n }\n },\n {\n key: \"cleanUp\",\n value: function cleanUp() {}\n }\n ]);\n return RedirectAction;\n}($f394e9ac486578e6$var$AbstractPopupRedirectOperation);\nfunction $f394e9ac486578e6$var$_getAndClearPendingRedirectStatus(resolver, auth) {\n return $f394e9ac486578e6$var$__getAndClearPendingRedirectStatus.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$var$__getAndClearPendingRedirectStatus() {\n $f394e9ac486578e6$var$__getAndClearPendingRedirectStatus = (0, $9167c88d5d99601b$export$7c398597f8905a1)(function(resolver, auth) {\n var key, persistence, hasPendingRedirect;\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n switch(_state.label){\n case 0:\n key = $f394e9ac486578e6$var$pendingRedirectKey(auth);\n persistence = $f394e9ac486578e6$var$resolverPersistence(resolver);\n return [\n 4,\n persistence._isAvailable()\n ];\n case 1:\n if (!_state.sent()) return [\n 2,\n false\n ];\n return [\n 4,\n persistence._get(key)\n ];\n case 2:\n hasPendingRedirect = _state.sent() === \"true\";\n return [\n 4,\n persistence._remove(key)\n ];\n case 3:\n _state.sent();\n return [\n 2,\n hasPendingRedirect\n ];\n }\n });\n });\n return $f394e9ac486578e6$var$__getAndClearPendingRedirectStatus.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$var$_setPendingRedirectStatus(resolver, auth) {\n return $f394e9ac486578e6$var$__setPendingRedirectStatus.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$var$__setPendingRedirectStatus() {\n $f394e9ac486578e6$var$__setPendingRedirectStatus = (0, $9167c88d5d99601b$export$7c398597f8905a1)(function(resolver, auth) {\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n return [\n 2,\n $f394e9ac486578e6$var$resolverPersistence(resolver)._set($f394e9ac486578e6$var$pendingRedirectKey(auth), \"true\")\n ];\n });\n });\n return $f394e9ac486578e6$var$__setPendingRedirectStatus.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$export$b9a6b53f9be3734() {\n $f394e9ac486578e6$var$redirectOutcomeMap.clear();\n}\nfunction $f394e9ac486578e6$export$a33b77bbdbb8366c(auth, result) {\n $f394e9ac486578e6$var$redirectOutcomeMap.set(auth._key(), result);\n}\nfunction $f394e9ac486578e6$var$resolverPersistence(resolver) {\n return $f394e9ac486578e6$export$158acd800e1ef08b(resolver._redirectPersistence);\n}\nfunction $f394e9ac486578e6$var$pendingRedirectKey(auth) {\n return $f394e9ac486578e6$export$cf2f7c5792f80b46($f394e9ac486578e6$var$PENDING_REDIRECT_KEY, auth.config.apiKey, auth.name);\n}\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */ /**\r\n * Authenticates a Firebase client using a full-page redirect flow.\r\n *\r\n * @remarks\r\n * To handle the results and errors for this operation, refer to {@link getRedirectResult}.\r\n * Follow the {@link https://firebase.google.com/docs/auth/web/redirect-best-practices\r\n * | best practices} when using {@link signInWithRedirect}.\r\n *\r\n * This method does not work in a Node.js environment.\r\n *\r\n * @example\r\n * ```javascript\r\n * // Sign in using a redirect.\r\n * const provider = new FacebookAuthProvider();\r\n * // You can add additional scopes to the provider:\r\n * provider.addScope('user_birthday');\r\n * // Start a sign in process for an unauthenticated user.\r\n * await signInWithRedirect(auth, provider);\r\n * // This will trigger a full page redirect away from your app\r\n *\r\n * // After returning from the redirect when your app initializes you can obtain the result\r\n * const result = await getRedirectResult(auth);\r\n * if (result) {\r\n * // This is the signed-in user\r\n * const user = result.user;\r\n * // This gives you a Facebook Access Token.\r\n * const credential = provider.credentialFromResult(auth, result);\r\n * const token = credential.accessToken;\r\n * }\r\n * // As this API can be used for sign-in, linking and reauthentication,\r\n * // check the operationType to determine what triggered this redirect\r\n * // operation.\r\n * const operationType = result.operationType;\r\n * ```\r\n *\r\n * @param auth - The {@link Auth} instance.\r\n * @param provider - The provider to authenticate. The provider has to be an {@link OAuthProvider}.\r\n * Non-OAuth providers like {@link EmailAuthProvider} will throw an error.\r\n * @param resolver - An instance of {@link PopupRedirectResolver}, optional\r\n * if already supplied to {@link initializeAuth} or provided by {@link getAuth}.\r\n *\r\n * @public\r\n */ function $f394e9ac486578e6$export$2d1720544b23b823(auth, provider, resolver) {\n return $f394e9ac486578e6$var$_signInWithRedirect(auth, provider, resolver);\n}\nfunction $f394e9ac486578e6$var$_signInWithRedirect(auth, provider, resolver) {\n return $f394e9ac486578e6$var$__signInWithRedirect.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$var$__signInWithRedirect() {\n $f394e9ac486578e6$var$__signInWithRedirect = (0, $9167c88d5d99601b$export$7c398597f8905a1)(function(auth, provider, resolver) {\n var authInternal, resolverInternal;\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n switch(_state.label){\n case 0:\n authInternal = $f394e9ac486578e6$export$a05254e7c3aeba6e(auth);\n $f394e9ac486578e6$var$_assertInstanceOf(auth, provider, $f394e9ac486578e6$var$FederatedAuthProvider);\n // Wait for auth initialization to complete, this will process pending redirects and clear the\n // PENDING_REDIRECT_KEY in persistence. This should be completed before starting a new\n // redirect and creating a PENDING_REDIRECT_KEY entry.\n return [\n 4,\n authInternal._initializationPromise\n ];\n case 1:\n _state.sent();\n resolverInternal = $f394e9ac486578e6$var$_withDefaultResolver(authInternal, resolver);\n return [\n 4,\n $f394e9ac486578e6$var$_setPendingRedirectStatus(resolverInternal, authInternal)\n ];\n case 2:\n _state.sent();\n return [\n 2,\n resolverInternal._openRedirect(authInternal, provider, \"signInViaRedirect\" /* AuthEventType.SIGN_IN_VIA_REDIRECT */ )\n ];\n }\n });\n });\n return $f394e9ac486578e6$var$__signInWithRedirect.apply(this, arguments);\n}\n/**\r\n * Reauthenticates the current user with the specified {@link OAuthProvider} using a full-page redirect flow.\r\n * @remarks\r\n * To handle the results and errors for this operation, refer to {@link getRedirectResult}.\r\n * Follow the {@link https://firebase.google.com/docs/auth/web/redirect-best-practices\r\n * | best practices} when using {@link reauthenticateWithRedirect}.\r\n *\r\n * This method does not work in a Node.js environment.\r\n *\r\n * @example\r\n * ```javascript\r\n * // Sign in using a redirect.\r\n * const provider = new FacebookAuthProvider();\r\n * const result = await signInWithRedirect(auth, provider);\r\n * // This will trigger a full page redirect away from your app\r\n *\r\n * // After returning from the redirect when your app initializes you can obtain the result\r\n * const result = await getRedirectResult(auth);\r\n * // Reauthenticate using a redirect.\r\n * await reauthenticateWithRedirect(result.user, provider);\r\n * // This will again trigger a full page redirect away from your app\r\n *\r\n * // After returning from the redirect when your app initializes you can obtain the result\r\n * const result = await getRedirectResult(auth);\r\n * ```\r\n *\r\n * @param user - The user.\r\n * @param provider - The provider to authenticate. The provider has to be an {@link OAuthProvider}.\r\n * Non-OAuth providers like {@link EmailAuthProvider} will throw an error.\r\n * @param resolver - An instance of {@link PopupRedirectResolver}, optional\r\n * if already supplied to {@link initializeAuth} or provided by {@link getAuth}.\r\n *\r\n * @public\r\n */ function $f394e9ac486578e6$export$dda1d9f60106f0e9(user, provider, resolver) {\n return $f394e9ac486578e6$var$_reauthenticateWithRedirect(user, provider, resolver);\n}\nfunction $f394e9ac486578e6$var$_reauthenticateWithRedirect(user, provider, resolver) {\n return $f394e9ac486578e6$var$__reauthenticateWithRedirect.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$var$__reauthenticateWithRedirect() {\n $f394e9ac486578e6$var$__reauthenticateWithRedirect = (0, $9167c88d5d99601b$export$7c398597f8905a1)(function(user, provider, resolver) {\n var userInternal, resolverInternal, eventId;\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n switch(_state.label){\n case 0:\n userInternal = (0, $9b50b37fb8824044$export$4befe9b5fa509a1b)(user);\n $f394e9ac486578e6$var$_assertInstanceOf(userInternal.auth, provider, $f394e9ac486578e6$var$FederatedAuthProvider);\n // Wait for auth initialization to complete, this will process pending redirects and clear the\n // PENDING_REDIRECT_KEY in persistence. This should be completed before starting a new\n // redirect and creating a PENDING_REDIRECT_KEY entry.\n return [\n 4,\n userInternal.auth._initializationPromise\n ];\n case 1:\n _state.sent();\n // Allow the resolver to error before persisting the redirect user\n resolverInternal = $f394e9ac486578e6$var$_withDefaultResolver(userInternal.auth, resolver);\n return [\n 4,\n $f394e9ac486578e6$var$_setPendingRedirectStatus(resolverInternal, userInternal.auth)\n ];\n case 2:\n _state.sent();\n return [\n 4,\n $f394e9ac486578e6$var$prepareUserForRedirect(userInternal)\n ];\n case 3:\n eventId = _state.sent();\n return [\n 2,\n resolverInternal._openRedirect(userInternal.auth, provider, \"reauthViaRedirect\" /* AuthEventType.REAUTH_VIA_REDIRECT */ , eventId)\n ];\n }\n });\n });\n return $f394e9ac486578e6$var$__reauthenticateWithRedirect.apply(this, arguments);\n}\n/**\r\n * Links the {@link OAuthProvider} to the user account using a full-page redirect flow.\r\n * @remarks\r\n * To handle the results and errors for this operation, refer to {@link getRedirectResult}.\r\n * Follow the {@link https://firebase.google.com/docs/auth/web/redirect-best-practices\r\n * | best practices} when using {@link linkWithRedirect}.\r\n *\r\n * This method does not work in a Node.js environment.\r\n *\r\n * @example\r\n * ```javascript\r\n * // Sign in using some other provider.\r\n * const result = await signInWithEmailAndPassword(auth, email, password);\r\n * // Link using a redirect.\r\n * const provider = new FacebookAuthProvider();\r\n * await linkWithRedirect(result.user, provider);\r\n * // This will trigger a full page redirect away from your app\r\n *\r\n * // After returning from the redirect when your app initializes you can obtain the result\r\n * const result = await getRedirectResult(auth);\r\n * ```\r\n *\r\n * @param user - The user.\r\n * @param provider - The provider to authenticate. The provider has to be an {@link OAuthProvider}.\r\n * Non-OAuth providers like {@link EmailAuthProvider} will throw an error.\r\n * @param resolver - An instance of {@link PopupRedirectResolver}, optional\r\n * if already supplied to {@link initializeAuth} or provided by {@link getAuth}.\r\n *\r\n * @public\r\n */ function $f394e9ac486578e6$export$39b482c5e57630a8(user, provider, resolver) {\n return $f394e9ac486578e6$var$_linkWithRedirect(user, provider, resolver);\n}\nfunction $f394e9ac486578e6$var$_linkWithRedirect(user, provider, resolver) {\n return $f394e9ac486578e6$var$__linkWithRedirect.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$var$__linkWithRedirect() {\n $f394e9ac486578e6$var$__linkWithRedirect = (0, $9167c88d5d99601b$export$7c398597f8905a1)(function(user, provider, resolver) {\n var userInternal, resolverInternal, eventId;\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n switch(_state.label){\n case 0:\n userInternal = (0, $9b50b37fb8824044$export$4befe9b5fa509a1b)(user);\n $f394e9ac486578e6$var$_assertInstanceOf(userInternal.auth, provider, $f394e9ac486578e6$var$FederatedAuthProvider);\n // Wait for auth initialization to complete, this will process pending redirects and clear the\n // PENDING_REDIRECT_KEY in persistence. This should be completed before starting a new\n // redirect and creating a PENDING_REDIRECT_KEY entry.\n return [\n 4,\n userInternal.auth._initializationPromise\n ];\n case 1:\n _state.sent();\n // Allow the resolver to error before persisting the redirect user\n resolverInternal = $f394e9ac486578e6$var$_withDefaultResolver(userInternal.auth, resolver);\n return [\n 4,\n $f394e9ac486578e6$var$_assertLinkedStatus(false, userInternal, provider.providerId)\n ];\n case 2:\n _state.sent();\n return [\n 4,\n $f394e9ac486578e6$var$_setPendingRedirectStatus(resolverInternal, userInternal.auth)\n ];\n case 3:\n _state.sent();\n return [\n 4,\n $f394e9ac486578e6$var$prepareUserForRedirect(userInternal)\n ];\n case 4:\n eventId = _state.sent();\n return [\n 2,\n resolverInternal._openRedirect(userInternal.auth, provider, \"linkViaRedirect\" /* AuthEventType.LINK_VIA_REDIRECT */ , eventId)\n ];\n }\n });\n });\n return $f394e9ac486578e6$var$__linkWithRedirect.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$export$35e795649ee09318(auth, resolver) {\n return $f394e9ac486578e6$var$_getRedirectResult.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$var$_getRedirectResult() {\n $f394e9ac486578e6$var$_getRedirectResult = /**\r\n * Returns a {@link UserCredential} from the redirect-based sign-in flow.\r\n *\r\n * @remarks\r\n * If sign-in succeeded, returns the signed in user. If sign-in was unsuccessful, fails with an\r\n * error. If no redirect operation was called, returns `null`.\r\n *\r\n * This method does not work in a Node.js environment.\r\n *\r\n * @example\r\n * ```javascript\r\n * // Sign in using a redirect.\r\n * const provider = new FacebookAuthProvider();\r\n * // You can add additional scopes to the provider:\r\n * provider.addScope('user_birthday');\r\n * // Start a sign in process for an unauthenticated user.\r\n * await signInWithRedirect(auth, provider);\r\n * // This will trigger a full page redirect away from your app\r\n *\r\n * // After returning from the redirect when your app initializes you can obtain the result\r\n * const result = await getRedirectResult(auth);\r\n * if (result) {\r\n * // This is the signed-in user\r\n * const user = result.user;\r\n * // This gives you a Facebook Access Token.\r\n * const credential = provider.credentialFromResult(auth, result);\r\n * const token = credential.accessToken;\r\n * }\r\n * // As this API can be used for sign-in, linking and reauthentication,\r\n * // check the operationType to determine what triggered this redirect\r\n * // operation.\r\n * const operationType = result.operationType;\r\n * ```\r\n *\r\n * @param auth - The {@link Auth} instance.\r\n * @param resolver - An instance of {@link PopupRedirectResolver}, optional\r\n * if already supplied to {@link initializeAuth} or provided by {@link getAuth}.\r\n *\r\n * @public\r\n */ (0, $9167c88d5d99601b$export$7c398597f8905a1)(function(auth, resolver) {\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n switch(_state.label){\n case 0:\n return [\n 4,\n $f394e9ac486578e6$export$a05254e7c3aeba6e(auth)._initializationPromise\n ];\n case 1:\n _state.sent();\n return [\n 2,\n $f394e9ac486578e6$export$53a70dd1ebbae346(auth, resolver, false)\n ];\n }\n });\n });\n return $f394e9ac486578e6$var$_getRedirectResult.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$export$53a70dd1ebbae346(auth, resolverExtern) {\n return $f394e9ac486578e6$var$__getRedirectResult.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$var$__getRedirectResult() {\n $f394e9ac486578e6$var$__getRedirectResult = (0, $9167c88d5d99601b$export$7c398597f8905a1)(function(auth, resolverExtern) {\n var bypassAuthState, authInternal, resolver, action, result;\n var _arguments = arguments;\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n switch(_state.label){\n case 0:\n bypassAuthState = _arguments.length > 2 && _arguments[2] !== void 0 ? _arguments[2] : false;\n authInternal = $f394e9ac486578e6$export$a05254e7c3aeba6e(auth);\n resolver = $f394e9ac486578e6$var$_withDefaultResolver(authInternal, resolverExtern);\n action = new $f394e9ac486578e6$var$RedirectAction(authInternal, resolver, bypassAuthState);\n return [\n 4,\n action.execute()\n ];\n case 1:\n result = _state.sent();\n if (!(result && !bypassAuthState)) return [\n 3,\n 4\n ];\n delete result.user._redirectEventId;\n return [\n 4,\n authInternal._persistUserIfCurrent(result.user)\n ];\n case 2:\n _state.sent();\n return [\n 4,\n authInternal._setRedirectUser(null, resolverExtern)\n ];\n case 3:\n _state.sent();\n _state.label = 4;\n case 4:\n return [\n 2,\n result\n ];\n }\n });\n });\n return $f394e9ac486578e6$var$__getRedirectResult.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$var$prepareUserForRedirect(user) {\n return $f394e9ac486578e6$var$_prepareUserForRedirect.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$var$_prepareUserForRedirect() {\n $f394e9ac486578e6$var$_prepareUserForRedirect = (0, $9167c88d5d99601b$export$7c398597f8905a1)(function(user) {\n var eventId;\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n switch(_state.label){\n case 0:\n eventId = $f394e9ac486578e6$export$faec65b429be379(\"\".concat(user.uid, \":::\"));\n user._redirectEventId = eventId;\n return [\n 4,\n user.auth._setRedirectUser(user)\n ];\n case 1:\n _state.sent();\n return [\n 4,\n user.auth._persistUserIfCurrent(user)\n ];\n case 2:\n _state.sent();\n return [\n 2,\n eventId\n ];\n }\n });\n });\n return $f394e9ac486578e6$var$_prepareUserForRedirect.apply(this, arguments);\n}\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */ // The amount of time to store the UIDs of seen events; this is\n// set to 10 min by default\nvar $f394e9ac486578e6$var$EVENT_DUPLICATION_CACHE_DURATION_MS = 600000;\nvar $f394e9ac486578e6$export$24baa2b76016ce0e = /*#__PURE__*/ function() {\n \"use strict\";\n function AuthEventManager(auth) {\n (0, $0c3f79e99c83f58f$export$2996f80ef42b8419)(this, AuthEventManager);\n this.auth = auth;\n this.cachedEventUids = new Set();\n this.consumers = new Set();\n this.queuedRedirectEvent = null;\n this.hasHandledPotentialRedirect = false;\n this.lastProcessedEventTime = Date.now();\n }\n (0, $a27186eefd8c4b26$export$d60067ff2358eee8)(AuthEventManager, [\n {\n key: \"registerConsumer\",\n value: function registerConsumer(authEventConsumer) {\n this.consumers.add(authEventConsumer);\n if (this.queuedRedirectEvent && this.isEventForConsumer(this.queuedRedirectEvent, authEventConsumer)) {\n this.sendToConsumer(this.queuedRedirectEvent, authEventConsumer);\n this.saveEventToCache(this.queuedRedirectEvent);\n this.queuedRedirectEvent = null;\n }\n }\n },\n {\n key: \"unregisterConsumer\",\n value: function unregisterConsumer(authEventConsumer) {\n this.consumers.delete(authEventConsumer);\n }\n },\n {\n key: \"onEvent\",\n value: function onEvent(event) {\n var _this = this;\n // Check if the event has already been handled\n if (this.hasEventBeenHandled(event)) return false;\n var handled = false;\n this.consumers.forEach(function(consumer) {\n if (_this.isEventForConsumer(event, consumer)) {\n handled = true;\n _this.sendToConsumer(event, consumer);\n _this.saveEventToCache(event);\n }\n });\n if (this.hasHandledPotentialRedirect || !$f394e9ac486578e6$var$isRedirectEvent(event)) // If we've already seen a redirect before, or this is a popup event,\n // bail now\n return handled;\n this.hasHandledPotentialRedirect = true;\n // If the redirect wasn't handled, hang on to it\n if (!handled) {\n this.queuedRedirectEvent = event;\n handled = true;\n }\n return handled;\n }\n },\n {\n key: \"sendToConsumer\",\n value: function sendToConsumer(event, consumer) {\n var _a;\n if (event.error && !$f394e9ac486578e6$var$isNullRedirectEvent(event)) {\n var code = ((_a = event.error.code) === null || _a === void 0 ? void 0 : _a.split(\"auth/\")[1]) || \"internal-error\" /* AuthErrorCode.INTERNAL_ERROR */ ;\n consumer.onError($f394e9ac486578e6$export$9d398bebfec1c039(this.auth, code));\n } else consumer.onAuthEvent(event);\n }\n },\n {\n key: \"isEventForConsumer\",\n value: function isEventForConsumer(event, consumer) {\n var eventIdMatches = consumer.eventId === null || !!event.eventId && event.eventId === consumer.eventId;\n return consumer.filter.includes(event.type) && eventIdMatches;\n }\n },\n {\n key: \"hasEventBeenHandled\",\n value: function hasEventBeenHandled(event) {\n if (Date.now() - this.lastProcessedEventTime >= $f394e9ac486578e6$var$EVENT_DUPLICATION_CACHE_DURATION_MS) this.cachedEventUids.clear();\n return this.cachedEventUids.has($f394e9ac486578e6$var$eventUid(event));\n }\n },\n {\n key: \"saveEventToCache\",\n value: function saveEventToCache(event) {\n this.cachedEventUids.add($f394e9ac486578e6$var$eventUid(event));\n this.lastProcessedEventTime = Date.now();\n }\n }\n ]);\n return AuthEventManager;\n}();\nfunction $f394e9ac486578e6$var$eventUid(e) {\n return [\n e.type,\n e.eventId,\n e.sessionId,\n e.tenantId\n ].filter(function(v) {\n return v;\n }).join(\"-\");\n}\nfunction $f394e9ac486578e6$var$isNullRedirectEvent(param) {\n var type = param.type, error = param.error;\n return type === \"unknown\" /* AuthEventType.UNKNOWN */ && (error === null || error === void 0 ? void 0 : error.code) === \"auth/no-auth-event\" /* AuthErrorCode.NO_AUTH_EVENT */ ;\n}\nfunction $f394e9ac486578e6$var$isRedirectEvent(event) {\n switch(event.type){\n case \"signInViaRedirect\" /* AuthEventType.SIGN_IN_VIA_REDIRECT */ :\n case \"linkViaRedirect\" /* AuthEventType.LINK_VIA_REDIRECT */ :\n case \"reauthViaRedirect\" /* AuthEventType.REAUTH_VIA_REDIRECT */ :\n return true;\n case \"unknown\" /* AuthEventType.UNKNOWN */ :\n return $f394e9ac486578e6$var$isNullRedirectEvent(event);\n default:\n return false;\n }\n}\nfunction $f394e9ac486578e6$export$3d12bd131bb975d1(auth) {\n return $f394e9ac486578e6$var$__getProjectConfig.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$var$__getProjectConfig() {\n $f394e9ac486578e6$var$__getProjectConfig = /**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */ (0, $9167c88d5d99601b$export$7c398597f8905a1)(function(auth) {\n var request;\n var _arguments = arguments;\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n request = _arguments.length > 1 && _arguments[1] !== void 0 ? _arguments[1] : {};\n return [\n 2,\n $f394e9ac486578e6$var$_performApiRequest(auth, \"GET\" /* HttpMethod.GET */ , \"/v1/projects\" /* Endpoint.GET_PROJECT_CONFIG */ , request)\n ];\n });\n });\n return $f394e9ac486578e6$var$__getProjectConfig.apply(this, arguments);\n}\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */ var $f394e9ac486578e6$var$IP_ADDRESS_REGEX = /^\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}$/;\nvar $f394e9ac486578e6$var$HTTP_REGEX = /^https?/;\nfunction $f394e9ac486578e6$var$_validateOrigin(auth) {\n return $f394e9ac486578e6$var$__validateOrigin.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$var$__validateOrigin() {\n $f394e9ac486578e6$var$__validateOrigin = (0, $9167c88d5d99601b$export$7c398597f8905a1)(function(auth) {\n var authorizedDomains, _iteratorNormalCompletion, _didIteratorError, _iteratorError, _iterator, _step, domain;\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n switch(_state.label){\n case 0:\n // Skip origin validation if we are in an emulated environment\n if (auth.config.emulator) return [\n 2\n ];\n return [\n 4,\n $f394e9ac486578e6$export$3d12bd131bb975d1(auth)\n ];\n case 1:\n authorizedDomains = _state.sent().authorizedDomains;\n _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;\n try {\n for(_iterator = authorizedDomains[Symbol.iterator](); !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){\n domain = _step.value;\n try {\n if ($f394e9ac486578e6$var$matchDomain(domain)) return [\n 2\n ];\n } catch (_a) {\n // Do nothing if there's a URL error; just continue searching\n }\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally{\n try {\n if (!_iteratorNormalCompletion && _iterator.return != null) {\n _iterator.return();\n }\n } finally{\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n // In the old SDK, this error also provides helpful messages.\n $f394e9ac486578e6$export$9fa96a7d116ea3ce(auth, \"unauthorized-domain\" /* AuthErrorCode.INVALID_ORIGIN */ );\n return [\n 2\n ];\n }\n });\n });\n return $f394e9ac486578e6$var$__validateOrigin.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$var$matchDomain(expected) {\n var currentUrl = $f394e9ac486578e6$var$_getCurrentUrl();\n var _ref = new URL(currentUrl), protocol = _ref.protocol, hostname = _ref.hostname;\n if (expected.startsWith(\"chrome-extension://\")) {\n var ceUrl = new URL(expected);\n if (ceUrl.hostname === \"\" && hostname === \"\") // For some reason we're not parsing chrome URLs properly\n return protocol === \"chrome-extension:\" && expected.replace(\"chrome-extension://\", \"\") === currentUrl.replace(\"chrome-extension://\", \"\");\n return protocol === \"chrome-extension:\" && ceUrl.hostname === hostname;\n }\n if (!$f394e9ac486578e6$var$HTTP_REGEX.test(protocol)) return false;\n if ($f394e9ac486578e6$var$IP_ADDRESS_REGEX.test(expected)) // The domain has to be exactly equal to the pattern, as an IP domain will\n // only contain the IP, no extra character.\n return hostname === expected;\n // Dots in pattern should be escaped.\n var escapedDomainPattern = expected.replace(/\\./g, \"\\\\.\");\n // Non ip address domains.\n // domain.com = *.domain.com OR domain.com\n var re = new RegExp(\"^(.+\\\\.\" + escapedDomainPattern + \"|\" + escapedDomainPattern + \")$\", \"i\");\n return re.test(hostname);\n}\n/**\r\n * @license\r\n * Copyright 2020 Google LLC.\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */ var $f394e9ac486578e6$var$NETWORK_TIMEOUT = new $f394e9ac486578e6$var$Delay(30000, 60000);\n/**\r\n * Reset unlaoded GApi modules. If gapi.load fails due to a network error,\r\n * it will stop working after a retrial. This is a hack to fix this issue.\r\n */ function $f394e9ac486578e6$var$resetUnloadedGapiModules() {\n // Clear last failed gapi.load state to force next gapi.load to first\n // load the failed gapi.iframes module.\n // Get gapix.beacon context.\n var beacon = $f394e9ac486578e6$var$_window().___jsl;\n var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;\n // Get current hint.\n if (beacon === null || beacon === void 0 ? void 0 : beacon.H) try {\n // Get gapi hint.\n for(var _iterator = Object.keys(beacon.H)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){\n var hint = _step.value;\n // Requested modules.\n beacon.H[hint].r = beacon.H[hint].r || [];\n // Loaded modules.\n beacon.H[hint].L = beacon.H[hint].L || [];\n // Set requested modules to a copy of the loaded modules.\n beacon.H[hint].r = (0, $a279000f7ad0c22a$export$1b5e630bc3aea29f)(beacon.H[hint].L);\n // Clear pending callbacks.\n if (beacon.CP) for(var i = 0; i < beacon.CP.length; i++)// Remove all failed pending callbacks.\n beacon.CP[i] = null;\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally{\n try {\n if (!_iteratorNormalCompletion && _iterator.return != null) {\n _iterator.return();\n }\n } finally{\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n}\nfunction $f394e9ac486578e6$var$loadGapi(auth) {\n return new Promise(function(resolve, reject) {\n var loadGapiIframe = // Function to run when gapi.load is ready.\n function loadGapiIframe() {\n // The developer may have tried to previously run gapi.load and failed.\n // Run this to fix that.\n $f394e9ac486578e6$var$resetUnloadedGapiModules();\n gapi.load(\"gapi.iframes\", {\n callback: function() {\n resolve(gapi.iframes.getContext());\n },\n ontimeout: function() {\n // The above reset may be sufficient, but having this reset after\n // failure ensures that if the developer calls gapi.load after the\n // connection is re-established and before another attempt to embed\n // the iframe, it would work and would not be broken because of our\n // failed attempt.\n // Timeout when gapi.iframes.Iframe not loaded.\n $f394e9ac486578e6$var$resetUnloadedGapiModules();\n reject($f394e9ac486578e6$export$9d398bebfec1c039(auth, \"network-request-failed\" /* AuthErrorCode.NETWORK_REQUEST_FAILED */ ));\n },\n timeout: $f394e9ac486578e6$var$NETWORK_TIMEOUT.get()\n });\n };\n var _a, _b, _c;\n if ((_b = (_a = $f394e9ac486578e6$var$_window().gapi) === null || _a === void 0 ? void 0 : _a.iframes) === null || _b === void 0 ? void 0 : _b.Iframe) // If gapi.iframes.Iframe available, resolve.\n resolve(gapi.iframes.getContext());\n else if (!!((_c = $f394e9ac486578e6$var$_window().gapi) === null || _c === void 0 ? void 0 : _c.load)) // Gapi loader ready, load gapi.iframes.\n loadGapiIframe();\n else {\n // Create a new iframe callback when this is called so as not to overwrite\n // any previous defined callback. This happens if this method is called\n // multiple times in parallel and could result in the later callback\n // overwriting the previous one. This would end up with a iframe\n // timeout.\n var cbName = $f394e9ac486578e6$var$_generateCallbackName(\"iframefcb\");\n // GApi loader not available, dynamically load platform.js.\n $f394e9ac486578e6$var$_window()[cbName] = function() {\n // GApi loader should be ready.\n if (!!gapi.load) loadGapiIframe();\n else // Gapi loader failed, throw error.\n reject($f394e9ac486578e6$export$9d398bebfec1c039(auth, \"network-request-failed\" /* AuthErrorCode.NETWORK_REQUEST_FAILED */ ));\n };\n // Load GApi loader.\n return $f394e9ac486578e6$var$_loadJS(\"https://apis.google.com/js/api.js?onload=\".concat(cbName)).catch(function(e) {\n return reject(e);\n });\n }\n }).catch(function(error) {\n // Reset cached promise to allow for retrial.\n $f394e9ac486578e6$var$cachedGApiLoader = null;\n throw error;\n });\n}\nvar $f394e9ac486578e6$var$cachedGApiLoader = null;\nfunction $f394e9ac486578e6$var$_loadGapi(auth) {\n $f394e9ac486578e6$var$cachedGApiLoader = $f394e9ac486578e6$var$cachedGApiLoader || $f394e9ac486578e6$var$loadGapi(auth);\n return $f394e9ac486578e6$var$cachedGApiLoader;\n}\n/**\r\n * @license\r\n * Copyright 2020 Google LLC.\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */ var $f394e9ac486578e6$var$PING_TIMEOUT = new $f394e9ac486578e6$var$Delay(5000, 15000);\nvar $f394e9ac486578e6$var$IFRAME_PATH = \"__/auth/iframe\";\nvar $f394e9ac486578e6$var$EMULATED_IFRAME_PATH = \"emulator/auth/iframe\";\nvar $f394e9ac486578e6$var$IFRAME_ATTRIBUTES = {\n style: {\n position: \"absolute\",\n top: \"-100px\",\n width: \"1px\",\n height: \"1px\"\n },\n \"aria-hidden\": \"true\",\n tabindex: \"-1\"\n};\n// Map from apiHost to endpoint ID for passing into iframe. In current SDK, apiHost can be set to\n// anything (not from a list of endpoints with IDs as in legacy), so this is the closest we can get.\nvar $f394e9ac486578e6$var$EID_FROM_APIHOST = new Map([\n [\n \"identitytoolkit.googleapis.com\" /* DefaultConfig.API_HOST */ ,\n \"p\"\n ],\n [\n \"staging-identitytoolkit.sandbox.googleapis.com\",\n \"s\"\n ],\n [\n \"test-identitytoolkit.sandbox.googleapis.com\",\n \"t\"\n ] // test\n]);\nfunction $f394e9ac486578e6$var$getIframeUrl(auth) {\n var config = auth.config;\n $f394e9ac486578e6$export$890c4ad488842ce7(config.authDomain, auth, \"auth-domain-config-required\" /* AuthErrorCode.MISSING_AUTH_DOMAIN */ );\n var url = config.emulator ? $f394e9ac486578e6$var$_emulatorUrl(config, $f394e9ac486578e6$var$EMULATED_IFRAME_PATH) : \"https://\".concat(auth.config.authDomain, \"/\").concat($f394e9ac486578e6$var$IFRAME_PATH);\n var params = {\n apiKey: config.apiKey,\n appName: auth.name,\n v: (0, $6801661115945616$export$31499a9cd224b78c)\n };\n var eid = $f394e9ac486578e6$var$EID_FROM_APIHOST.get(auth.config.apiHost);\n if (eid) params.eid = eid;\n var frameworks = auth._getFrameworks();\n if (frameworks.length) params.fw = frameworks.join(\",\");\n return \"\".concat(url, \"?\").concat((0, $9b50b37fb8824044$export$ac4103b836844853)(params).slice(1));\n}\nfunction $f394e9ac486578e6$var$_openIframe(auth) {\n return $f394e9ac486578e6$var$__openIframe.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$var$__openIframe() {\n $f394e9ac486578e6$var$__openIframe = (0, $9167c88d5d99601b$export$7c398597f8905a1)(function(auth) {\n var context, gapi1;\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n switch(_state.label){\n case 0:\n return [\n 4,\n $f394e9ac486578e6$var$_loadGapi(auth)\n ];\n case 1:\n context = _state.sent();\n gapi1 = $f394e9ac486578e6$var$_window().gapi;\n $f394e9ac486578e6$export$890c4ad488842ce7(gapi1, auth, \"internal-error\" /* AuthErrorCode.INTERNAL_ERROR */ );\n return [\n 2,\n context.open({\n where: document.body,\n url: $f394e9ac486578e6$var$getIframeUrl(auth),\n messageHandlersFilter: gapi1.iframes.CROSS_ORIGIN_IFRAMES_FILTER,\n attributes: $f394e9ac486578e6$var$IFRAME_ATTRIBUTES,\n dontclear: true\n }, function(iframe) {\n return new Promise(function() {\n var _ref = (0, $9167c88d5d99601b$export$7c398597f8905a1)(function(resolve, reject) {\n var networkError, networkErrorTimer;\n // Clear timer and resolve pending iframe ready promise.\n function clearTimerAndResolve() {\n $f394e9ac486578e6$var$_window().clearTimeout(networkErrorTimer);\n resolve(iframe);\n }\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n switch(_state.label){\n case 0:\n return [\n 4,\n iframe.restyle({\n // Prevent iframe from closing on mouse out.\n setHideOnLeave: false\n })\n ];\n case 1:\n _state.sent();\n networkError = $f394e9ac486578e6$export$9d398bebfec1c039(auth, \"network-request-failed\" /* AuthErrorCode.NETWORK_REQUEST_FAILED */ );\n // Confirm iframe is correctly loaded.\n // To fallback on failure, set a timeout.\n networkErrorTimer = $f394e9ac486578e6$var$_window().setTimeout(function() {\n reject(networkError);\n }, $f394e9ac486578e6$var$PING_TIMEOUT.get());\n // This returns an IThenable. However the reject part does not call\n // when the iframe is not loaded.\n iframe.ping(clearTimerAndResolve).then(clearTimerAndResolve, function() {\n reject(networkError);\n });\n return [\n 2\n ];\n }\n });\n });\n return function(resolve, reject) {\n return _ref.apply(this, arguments);\n };\n }());\n })\n ];\n }\n });\n });\n return $f394e9ac486578e6$var$__openIframe.apply(this, arguments);\n}\n/**\r\n * @license\r\n * Copyright 2020 Google LLC.\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */ var $f394e9ac486578e6$var$BASE_POPUP_OPTIONS = {\n location: \"yes\",\n resizable: \"yes\",\n statusbar: \"yes\",\n toolbar: \"no\"\n};\nvar $f394e9ac486578e6$var$DEFAULT_WIDTH = 500;\nvar $f394e9ac486578e6$var$DEFAULT_HEIGHT = 600;\nvar $f394e9ac486578e6$var$TARGET_BLANK = \"_blank\";\nvar $f394e9ac486578e6$var$FIREFOX_EMPTY_URL = \"http://localhost\";\nvar $f394e9ac486578e6$export$c03999cb2f36933f = /*#__PURE__*/ function() {\n \"use strict\";\n function AuthPopup(window1) {\n (0, $0c3f79e99c83f58f$export$2996f80ef42b8419)(this, AuthPopup);\n this.window = window1;\n this.associatedEvent = null;\n }\n (0, $a27186eefd8c4b26$export$d60067ff2358eee8)(AuthPopup, [\n {\n key: \"close\",\n value: function close() {\n if (this.window) try {\n this.window.close();\n } catch (e) {}\n }\n }\n ]);\n return AuthPopup;\n}();\nfunction $f394e9ac486578e6$var$_open(auth, url, name) {\n var width = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : $f394e9ac486578e6$var$DEFAULT_WIDTH, height = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : $f394e9ac486578e6$var$DEFAULT_HEIGHT;\n var top = Math.max((window.screen.availHeight - height) / 2, 0).toString();\n var left = Math.max((window.screen.availWidth - width) / 2, 0).toString();\n var target = \"\";\n var options = Object.assign(Object.assign({}, $f394e9ac486578e6$var$BASE_POPUP_OPTIONS), {\n width: width.toString(),\n height: height.toString(),\n top: top,\n left: left\n });\n // Chrome iOS 7 and 8 is returning an undefined popup win when target is\n // specified, even though the popup is not necessarily blocked.\n var ua = (0, $9b50b37fb8824044$export$c36915b22ce77c19)().toLowerCase();\n if (name) target = $f394e9ac486578e6$var$_isChromeIOS(ua) ? $f394e9ac486578e6$var$TARGET_BLANK : name;\n if ($f394e9ac486578e6$var$_isFirefox(ua)) {\n // Firefox complains when invalid URLs are popped out. Hacky way to bypass.\n url = url || $f394e9ac486578e6$var$FIREFOX_EMPTY_URL;\n // Firefox disables by default scrolling on popup windows, which can create\n // issues when the user has many Google accounts, for instance.\n options.scrollbars = \"yes\";\n }\n var optionsString = Object.entries(options).reduce(function(accum, param) {\n var _param = (0, $6e952d66071d1a0a$export$fdf2a89c76341bbf)(param, 2), key = _param[0], value = _param[1];\n return \"\".concat(accum).concat(key, \"=\").concat(value, \",\");\n }, \"\");\n if ($f394e9ac486578e6$var$_isIOSStandalone(ua) && target !== \"_self\") {\n $f394e9ac486578e6$var$openAsNewWindowIOS(url || \"\", target);\n return new $f394e9ac486578e6$export$c03999cb2f36933f(null);\n }\n // about:blank getting sanitized causing browsers like IE/Edge to display\n // brief error message before redirecting to handler.\n var newWin = window.open(url || \"\", target, optionsString);\n $f394e9ac486578e6$export$890c4ad488842ce7(newWin, auth, \"popup-blocked\" /* AuthErrorCode.POPUP_BLOCKED */ );\n // Flaky on IE edge, encapsulate with a try and catch.\n try {\n newWin.focus();\n } catch (e) {}\n return new $f394e9ac486578e6$export$c03999cb2f36933f(newWin);\n}\nfunction $f394e9ac486578e6$var$openAsNewWindowIOS(url, target) {\n var el = document.createElement(\"a\");\n el.href = url;\n el.target = target;\n var click = document.createEvent(\"MouseEvent\");\n click.initMouseEvent(\"click\", true, true, window, 1, 0, 0, 0, 0, false, false, false, false, 1, null);\n el.dispatchEvent(click);\n}\n/**\r\n * @license\r\n * Copyright 2021 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */ /**\r\n * URL for Authentication widget which will initiate the OAuth handshake\r\n *\r\n * @internal\r\n */ var $f394e9ac486578e6$var$WIDGET_PATH = \"__/auth/handler\";\n/**\r\n * URL for emulated environment\r\n *\r\n * @internal\r\n */ var $f394e9ac486578e6$var$EMULATOR_WIDGET_PATH = \"emulator/auth/handler\";\n/**\r\n * Fragment name for the App Check token that gets passed to the widget\r\n *\r\n * @internal\r\n */ var $f394e9ac486578e6$var$FIREBASE_APP_CHECK_FRAGMENT_ID = encodeURIComponent(\"fac\");\nfunction $f394e9ac486578e6$export$28f7fcd39efa255(auth, provider, authType, redirectUrl, eventId, additionalParams) {\n return $f394e9ac486578e6$var$__getRedirectUrl.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$var$__getRedirectUrl() {\n $f394e9ac486578e6$var$__getRedirectUrl = (0, $9167c88d5d99601b$export$7c398597f8905a1)(function(auth, provider, authType, redirectUrl, eventId, additionalParams) {\n var params, _iteratorNormalCompletion, _didIteratorError, _iteratorError, _iterator, _step, _step_value, key, value, scopes, paramsDict, _iteratorNormalCompletion1, _didIteratorError1, _iteratorError1, _iterator1, _step1, key1, appCheckToken, appCheckTokenFragment;\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n switch(_state.label){\n case 0:\n $f394e9ac486578e6$export$890c4ad488842ce7(auth.config.authDomain, auth, \"auth-domain-config-required\" /* AuthErrorCode.MISSING_AUTH_DOMAIN */ );\n $f394e9ac486578e6$export$890c4ad488842ce7(auth.config.apiKey, auth, \"invalid-api-key\" /* AuthErrorCode.INVALID_API_KEY */ );\n params = {\n apiKey: auth.config.apiKey,\n appName: auth.name,\n authType: authType,\n redirectUrl: redirectUrl,\n v: (0, $6801661115945616$export$31499a9cd224b78c),\n eventId: eventId\n };\n if (provider instanceof $f394e9ac486578e6$var$FederatedAuthProvider) {\n provider.setDefaultLanguage(auth.languageCode);\n params.providerId = provider.providerId || \"\";\n if (!(0, $9b50b37fb8824044$export$dd1bc94b04021eeb)(provider.getCustomParameters())) params.customParameters = JSON.stringify(provider.getCustomParameters());\n _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;\n try {\n // TODO set additionalParams from the provider as well?\n for(_iterator = Object.entries(additionalParams || {})[Symbol.iterator](); !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){\n _step_value = (0, $6e952d66071d1a0a$export$fdf2a89c76341bbf)(_step.value, 2), key = _step_value[0], value = _step_value[1];\n params[key] = value;\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally{\n try {\n if (!_iteratorNormalCompletion && _iterator.return != null) {\n _iterator.return();\n }\n } finally{\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n }\n if (provider instanceof $f394e9ac486578e6$var$BaseOAuthProvider) {\n scopes = provider.getScopes().filter(function(scope) {\n return scope !== \"\";\n });\n if (scopes.length > 0) params.scopes = scopes.join(\",\");\n }\n if (auth.tenantId) params.tid = auth.tenantId;\n // TODO: maybe set eid as endipointId\n // TODO: maybe set fw as Frameworks.join(\",\")\n paramsDict = params;\n _iteratorNormalCompletion1 = true, _didIteratorError1 = false, _iteratorError1 = undefined;\n try {\n for(_iterator1 = Object.keys(paramsDict)[Symbol.iterator](); !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true){\n key1 = _step1.value;\n if (paramsDict[key1] === undefined) delete paramsDict[key1];\n }\n } catch (err) {\n _didIteratorError1 = true;\n _iteratorError1 = err;\n } finally{\n try {\n if (!_iteratorNormalCompletion1 && _iterator1.return != null) {\n _iterator1.return();\n }\n } finally{\n if (_didIteratorError1) {\n throw _iteratorError1;\n }\n }\n }\n return [\n 4,\n auth._getAppCheckToken()\n ];\n case 1:\n appCheckToken = _state.sent();\n appCheckTokenFragment = appCheckToken ? \"#\".concat($f394e9ac486578e6$var$FIREBASE_APP_CHECK_FRAGMENT_ID, \"=\").concat(encodeURIComponent(appCheckToken)) : \"\";\n // Start at index 1 to skip the leading '&' in the query string\n return [\n 2,\n \"\".concat($f394e9ac486578e6$var$getHandlerBase(auth), \"?\").concat((0, $9b50b37fb8824044$export$ac4103b836844853)(paramsDict).slice(1)).concat(appCheckTokenFragment)\n ];\n }\n });\n });\n return $f394e9ac486578e6$var$__getRedirectUrl.apply(this, arguments);\n}\nfunction $f394e9ac486578e6$var$getHandlerBase(param) {\n var config = param.config;\n if (!config.emulator) return \"https://\".concat(config.authDomain, \"/\").concat($f394e9ac486578e6$var$WIDGET_PATH);\n return $f394e9ac486578e6$var$_emulatorUrl(config, $f394e9ac486578e6$var$EMULATOR_WIDGET_PATH);\n}\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */ /**\r\n * The special web storage event\r\n *\r\n */ var $f394e9ac486578e6$var$WEB_STORAGE_SUPPORT_KEY = \"webStorageSupport\";\nvar $f394e9ac486578e6$var$BrowserPopupRedirectResolver = /*#__PURE__*/ function() {\n \"use strict\";\n function BrowserPopupRedirectResolver() {\n (0, $0c3f79e99c83f58f$export$2996f80ef42b8419)(this, BrowserPopupRedirectResolver);\n this.eventManagers = {};\n this.iframes = {};\n this.originValidationPromises = {};\n this._redirectPersistence = $f394e9ac486578e6$export$407448d2b89b1813;\n this._completeRedirectFn = $f394e9ac486578e6$export$53a70dd1ebbae346;\n this._overrideRedirectResult = $f394e9ac486578e6$export$a33b77bbdbb8366c;\n }\n (0, $a27186eefd8c4b26$export$d60067ff2358eee8)(BrowserPopupRedirectResolver, [\n {\n key: \"_openPopup\",\n value: // Wrapping in async even though we don't await anywhere in order\n // to make sure errors are raised as promise rejections\n function _openPopup(auth, provider, authType, eventId) {\n var _this = this;\n return (0, $9167c88d5d99601b$export$7c398597f8905a1)(function() {\n var _a, url;\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n switch(_state.label){\n case 0:\n $f394e9ac486578e6$export$1fbe638ecf81657e((_a = _this.eventManagers[auth._key()]) === null || _a === void 0 ? void 0 : _a.manager, \"_initialize() not called before _openPopup()\");\n return [\n 4,\n $f394e9ac486578e6$export$28f7fcd39efa255(auth, provider, authType, $f394e9ac486578e6$var$_getCurrentUrl(), eventId)\n ];\n case 1:\n url = _state.sent();\n return [\n 2,\n $f394e9ac486578e6$var$_open(auth, url, $f394e9ac486578e6$export$faec65b429be379())\n ];\n }\n });\n })();\n }\n },\n {\n key: \"_openRedirect\",\n value: function _openRedirect(auth, provider, authType, eventId) {\n var _this = this;\n return (0, $9167c88d5d99601b$export$7c398597f8905a1)(function() {\n var url;\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n switch(_state.label){\n case 0:\n return [\n 4,\n _this._originValidation(auth)\n ];\n case 1:\n _state.sent();\n return [\n 4,\n $f394e9ac486578e6$export$28f7fcd39efa255(auth, provider, authType, $f394e9ac486578e6$var$_getCurrentUrl(), eventId)\n ];\n case 2:\n url = _state.sent();\n $f394e9ac486578e6$var$_setWindowLocation(url);\n return [\n 2,\n new Promise(function() {})\n ];\n }\n });\n })();\n }\n },\n {\n key: \"_initialize\",\n value: function _initialize(auth) {\n var _this = this;\n var key = auth._key();\n if (this.eventManagers[key]) {\n var _this_eventManagers_key = this.eventManagers[key], manager = _this_eventManagers_key.manager, promise = _this_eventManagers_key.promise;\n if (manager) return Promise.resolve(manager);\n else {\n $f394e9ac486578e6$export$1fbe638ecf81657e(promise, \"If manager is not set, promise should be\");\n return promise;\n }\n }\n var promise1 = this.initAndGetManager(auth);\n this.eventManagers[key] = {\n promise: promise1\n };\n // If the promise is rejected, the key should be removed so that the\n // operation can be retried later.\n promise1.catch(function() {\n delete _this.eventManagers[key];\n });\n return promise1;\n }\n },\n {\n key: \"initAndGetManager\",\n value: function initAndGetManager(auth) {\n var _this = this;\n return (0, $9167c88d5d99601b$export$7c398597f8905a1)(function() {\n var iframe, manager;\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n switch(_state.label){\n case 0:\n return [\n 4,\n $f394e9ac486578e6$var$_openIframe(auth)\n ];\n case 1:\n iframe = _state.sent();\n manager = new $f394e9ac486578e6$export$24baa2b76016ce0e(auth);\n iframe.register(\"authEvent\", function(iframeEvent) {\n $f394e9ac486578e6$export$890c4ad488842ce7(iframeEvent === null || iframeEvent === void 0 ? void 0 : iframeEvent.authEvent, auth, \"invalid-auth-event\" /* AuthErrorCode.INVALID_AUTH_EVENT */ );\n // TODO: Consider splitting redirect and popup events earlier on\n var handled = manager.onEvent(iframeEvent.authEvent);\n return {\n status: handled ? \"ACK\" /* GapiOutcome.ACK */ : \"ERROR\" /* GapiOutcome.ERROR */ \n };\n }, gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER);\n _this.eventManagers[auth._key()] = {\n manager: manager\n };\n _this.iframes[auth._key()] = iframe;\n return [\n 2,\n manager\n ];\n }\n });\n })();\n }\n },\n {\n key: \"_isIframeWebStorageSupported\",\n value: function _isIframeWebStorageSupported(auth, cb) {\n var iframe = this.iframes[auth._key()];\n iframe.send($f394e9ac486578e6$var$WEB_STORAGE_SUPPORT_KEY, {\n type: $f394e9ac486578e6$var$WEB_STORAGE_SUPPORT_KEY\n }, function(result) {\n var _a;\n var isSupported = (_a = result === null || result === void 0 ? void 0 : result[0]) === null || _a === void 0 ? void 0 : _a[$f394e9ac486578e6$var$WEB_STORAGE_SUPPORT_KEY];\n if (isSupported !== undefined) cb(!!isSupported);\n $f394e9ac486578e6$export$9fa96a7d116ea3ce(auth, \"internal-error\" /* AuthErrorCode.INTERNAL_ERROR */ );\n }, gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER);\n }\n },\n {\n key: \"_originValidation\",\n value: function _originValidation(auth) {\n var key = auth._key();\n if (!this.originValidationPromises[key]) this.originValidationPromises[key] = $f394e9ac486578e6$var$_validateOrigin(auth);\n return this.originValidationPromises[key];\n }\n },\n {\n key: \"_shouldInitProactively\",\n get: function get() {\n // Mobile browsers and Safari need to optimistically initialize\n return $f394e9ac486578e6$var$_isMobileBrowser() || $f394e9ac486578e6$var$_isSafari() || $f394e9ac486578e6$export$d66dc83d8cfc8dd();\n }\n }\n ]);\n return BrowserPopupRedirectResolver;\n}();\n/**\r\n * An implementation of {@link PopupRedirectResolver} suitable for browser\r\n * based applications.\r\n *\r\n * @remarks\r\n * This method does not work in a Node.js environment.\r\n *\r\n * @public\r\n */ var $f394e9ac486578e6$export$342063e11d6c3cad = $f394e9ac486578e6$var$BrowserPopupRedirectResolver;\nvar $f394e9ac486578e6$var$MultiFactorAssertionImpl = /*#__PURE__*/ function() {\n \"use strict\";\n function MultiFactorAssertionImpl(factorId) {\n (0, $0c3f79e99c83f58f$export$2996f80ef42b8419)(this, MultiFactorAssertionImpl);\n this.factorId = factorId;\n }\n (0, $a27186eefd8c4b26$export$d60067ff2358eee8)(MultiFactorAssertionImpl, [\n {\n key: \"_process\",\n value: function _process(auth, session, displayName) {\n switch(session.type){\n case \"enroll\" /* MultiFactorSessionType.ENROLL */ :\n return this._finalizeEnroll(auth, session.credential, displayName);\n case \"signin\" /* MultiFactorSessionType.SIGN_IN */ :\n return this._finalizeSignIn(auth, session.credential);\n default:\n return $f394e9ac486578e6$var$debugFail(\"unexpected MultiFactorSessionType\");\n }\n }\n }\n ]);\n return MultiFactorAssertionImpl;\n}();\n/**\r\n * {@inheritdoc PhoneMultiFactorAssertion}\r\n *\r\n * @public\r\n */ var $f394e9ac486578e6$var$PhoneMultiFactorAssertionImpl = /*#__PURE__*/ function(MultiFactorAssertionImpl) {\n \"use strict\";\n (0, $a3fe9d9bda1cd86f$export$7e4530ad35d3bb8)(PhoneMultiFactorAssertionImpl, MultiFactorAssertionImpl);\n var _super = (0, $60ddfe51b57fdc13$export$8dd05c13f5255580)(PhoneMultiFactorAssertionImpl);\n function PhoneMultiFactorAssertionImpl(credential) {\n (0, $0c3f79e99c83f58f$export$2996f80ef42b8419)(this, PhoneMultiFactorAssertionImpl);\n var _this;\n _this = _super.call(this, \"phone\" /* FactorId.PHONE */ );\n _this.credential = credential;\n return _this;\n }\n (0, $a27186eefd8c4b26$export$d60067ff2358eee8)(PhoneMultiFactorAssertionImpl, [\n {\n /** @internal */ key: \"_finalizeEnroll\",\n value: function _finalizeEnroll(auth, idToken, displayName) {\n return $f394e9ac486578e6$var$finalizeEnrollPhoneMfa(auth, {\n idToken: idToken,\n displayName: displayName,\n phoneVerificationInfo: this.credential._makeVerificationRequest()\n });\n }\n },\n {\n /** @internal */ key: \"_finalizeSignIn\",\n value: function _finalizeSignIn(auth, mfaPendingCredential) {\n return $f394e9ac486578e6$var$finalizeSignInPhoneMfa(auth, {\n mfaPendingCredential: mfaPendingCredential,\n phoneVerificationInfo: this.credential._makeVerificationRequest()\n });\n }\n }\n ], [\n {\n key: \"_fromCredential\",\n value: /** @internal */ function _fromCredential(credential) {\n return new PhoneMultiFactorAssertionImpl(credential);\n }\n }\n ]);\n return PhoneMultiFactorAssertionImpl;\n}($f394e9ac486578e6$var$MultiFactorAssertionImpl);\n/**\r\n * Provider for generating a {@link PhoneMultiFactorAssertion}.\r\n *\r\n * @public\r\n */ var $f394e9ac486578e6$export$953cecd6e717a553 = /*#__PURE__*/ function() {\n \"use strict\";\n function PhoneMultiFactorGenerator() {\n (0, $0c3f79e99c83f58f$export$2996f80ef42b8419)(this, PhoneMultiFactorGenerator);\n }\n (0, $a27186eefd8c4b26$export$d60067ff2358eee8)(PhoneMultiFactorGenerator, null, [\n {\n key: \"assertion\",\n value: /**\r\n * Provides a {@link PhoneMultiFactorAssertion} to confirm ownership of the phone second factor.\r\n *\r\n * @remarks\r\n * This method does not work in a Node.js environment.\r\n *\r\n * @param phoneAuthCredential - A credential provided by {@link PhoneAuthProvider.credential}.\r\n * @returns A {@link PhoneMultiFactorAssertion} which can be used with\r\n * {@link MultiFactorResolver.resolveSignIn}\r\n */ function assertion(credential) {\n return $f394e9ac486578e6$var$PhoneMultiFactorAssertionImpl._fromCredential(credential);\n }\n }\n ]);\n return PhoneMultiFactorGenerator;\n}();\n/**\r\n * The identifier of the phone second factor: `phone`.\r\n */ $f394e9ac486578e6$export$953cecd6e717a553.FACTOR_ID = \"phone\";\n/**\r\n * Provider for generating a {@link TotpMultiFactorAssertion}.\r\n *\r\n * @public\r\n */ var $f394e9ac486578e6$export$971d5caa766a69d7 = /*#__PURE__*/ function() {\n \"use strict\";\n function TotpMultiFactorGenerator() {\n (0, $0c3f79e99c83f58f$export$2996f80ef42b8419)(this, TotpMultiFactorGenerator);\n }\n (0, $a27186eefd8c4b26$export$d60067ff2358eee8)(TotpMultiFactorGenerator, null, [\n {\n key: \"assertionForEnrollment\",\n value: /**\r\n * Provides a {@link TotpMultiFactorAssertion} to confirm ownership of\r\n * the TOTP (time-based one-time password) second factor.\r\n * This assertion is used to complete enrollment in TOTP second factor.\r\n *\r\n * @param secret A {@link TotpSecret} containing the shared secret key and other TOTP parameters.\r\n * @param oneTimePassword One-time password from TOTP App.\r\n * @returns A {@link TotpMultiFactorAssertion} which can be used with\r\n * {@link MultiFactorUser.enroll}.\r\n */ function assertionForEnrollment(secret, oneTimePassword) {\n return $f394e9ac486578e6$var$TotpMultiFactorAssertionImpl._fromSecret(secret, oneTimePassword);\n }\n },\n {\n key: \"assertionForSignIn\",\n value: /**\r\n * Provides a {@link TotpMultiFactorAssertion} to confirm ownership of the TOTP second factor.\r\n * This assertion is used to complete signIn with TOTP as the second factor.\r\n *\r\n * @param enrollmentId identifies the enrolled TOTP second factor.\r\n * @param oneTimePassword One-time password from TOTP App.\r\n * @returns A {@link TotpMultiFactorAssertion} which can be used with\r\n * {@link MultiFactorResolver.resolveSignIn}.\r\n */ function assertionForSignIn(enrollmentId, oneTimePassword) {\n return $f394e9ac486578e6$var$TotpMultiFactorAssertionImpl._fromEnrollmentId(enrollmentId, oneTimePassword);\n }\n },\n {\n key: \"generateSecret\",\n value: /**\r\n * Returns a promise to {@link TotpSecret} which contains the TOTP shared secret key and other parameters.\r\n * Creates a TOTP secret as part of enrolling a TOTP second factor.\r\n * Used for generating a QR code URL or inputting into a TOTP app.\r\n * This method uses the auth instance corresponding to the user in the multiFactorSession.\r\n *\r\n * @param session The {@link MultiFactorSession} that the user is part of.\r\n * @returns A promise to {@link TotpSecret}.\r\n */ function generateSecret(session) {\n return (0, $9167c88d5d99601b$export$7c398597f8905a1)(function() {\n var _a, mfaSession, response;\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n switch(_state.label){\n case 0:\n mfaSession = session;\n $f394e9ac486578e6$export$890c4ad488842ce7(typeof ((_a = mfaSession.user) === null || _a === void 0 ? void 0 : _a.auth) !== \"undefined\", \"internal-error\" /* AuthErrorCode.INTERNAL_ERROR */ );\n return [\n 4,\n $f394e9ac486578e6$var$startEnrollTotpMfa(mfaSession.user.auth, {\n idToken: mfaSession.credential,\n totpEnrollmentInfo: {}\n })\n ];\n case 1:\n response = _state.sent();\n return [\n 2,\n $f394e9ac486578e6$export$7ccc53e8f1e7dfc5._fromStartTotpMfaEnrollmentResponse(response, mfaSession.user.auth)\n ];\n }\n });\n })();\n }\n }\n ]);\n return TotpMultiFactorGenerator;\n}();\n/**\r\n * The identifier of the TOTP second factor: `totp`.\r\n */ $f394e9ac486578e6$export$971d5caa766a69d7.FACTOR_ID = \"totp\" /* FactorId.TOTP */ ;\nvar $f394e9ac486578e6$var$TotpMultiFactorAssertionImpl = /*#__PURE__*/ function(MultiFactorAssertionImpl) {\n \"use strict\";\n (0, $a3fe9d9bda1cd86f$export$7e4530ad35d3bb8)(TotpMultiFactorAssertionImpl, MultiFactorAssertionImpl);\n var _super = (0, $60ddfe51b57fdc13$export$8dd05c13f5255580)(TotpMultiFactorAssertionImpl);\n function TotpMultiFactorAssertionImpl(otp, enrollmentId, secret) {\n (0, $0c3f79e99c83f58f$export$2996f80ef42b8419)(this, TotpMultiFactorAssertionImpl);\n var _this;\n _this = _super.call(this, \"totp\" /* FactorId.TOTP */ );\n _this.otp = otp;\n _this.enrollmentId = enrollmentId;\n _this.secret = secret;\n return _this;\n }\n (0, $a27186eefd8c4b26$export$d60067ff2358eee8)(TotpMultiFactorAssertionImpl, [\n {\n key: \"_finalizeEnroll\",\n value: /** @internal */ function _finalizeEnroll(auth, idToken, displayName) {\n var _this = this;\n return (0, $9167c88d5d99601b$export$7c398597f8905a1)(function() {\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n $f394e9ac486578e6$export$890c4ad488842ce7(typeof _this.secret !== \"undefined\", auth, \"argument-error\" /* AuthErrorCode.ARGUMENT_ERROR */ );\n return [\n 2,\n $f394e9ac486578e6$var$finalizeEnrollTotpMfa(auth, {\n idToken: idToken,\n displayName: displayName,\n totpVerificationInfo: _this.secret._makeTotpVerificationInfo(_this.otp)\n })\n ];\n });\n })();\n }\n },\n {\n key: \"_finalizeSignIn\",\n value: /** @internal */ function _finalizeSignIn(auth, mfaPendingCredential) {\n var _this = this;\n return (0, $9167c88d5d99601b$export$7c398597f8905a1)(function() {\n var totpVerificationInfo;\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n $f394e9ac486578e6$export$890c4ad488842ce7(_this.enrollmentId !== undefined && _this.otp !== undefined, auth, \"argument-error\" /* AuthErrorCode.ARGUMENT_ERROR */ );\n totpVerificationInfo = {\n verificationCode: _this.otp\n };\n return [\n 2,\n $f394e9ac486578e6$var$finalizeSignInTotpMfa(auth, {\n mfaPendingCredential: mfaPendingCredential,\n mfaEnrollmentId: _this.enrollmentId,\n totpVerificationInfo: totpVerificationInfo\n })\n ];\n });\n })();\n }\n }\n ], [\n {\n key: \"_fromSecret\",\n value: /** @internal */ function _fromSecret(secret, otp) {\n return new TotpMultiFactorAssertionImpl(otp, undefined, secret);\n }\n },\n {\n key: \"_fromEnrollmentId\",\n value: /** @internal */ function _fromEnrollmentId(enrollmentId, otp) {\n return new TotpMultiFactorAssertionImpl(otp, enrollmentId);\n }\n }\n ]);\n return TotpMultiFactorAssertionImpl;\n}($f394e9ac486578e6$var$MultiFactorAssertionImpl);\n/**\r\n * Provider for generating a {@link TotpMultiFactorAssertion}.\r\n *\r\n * Stores the shared secret key and other parameters to generate time-based OTPs.\r\n * Implements methods to retrieve the shared secret key and generate a QR code URL.\r\n * @public\r\n */ var $f394e9ac486578e6$export$7ccc53e8f1e7dfc5 = /*#__PURE__*/ function() {\n \"use strict\";\n function TotpSecret(secretKey, hashingAlgorithm, codeLength, codeIntervalSeconds, enrollmentCompletionDeadline, sessionInfo, auth) {\n (0, $0c3f79e99c83f58f$export$2996f80ef42b8419)(this, TotpSecret);\n this.sessionInfo = sessionInfo;\n this.auth = auth;\n this.secretKey = secretKey;\n this.hashingAlgorithm = hashingAlgorithm;\n this.codeLength = codeLength;\n this.codeIntervalSeconds = codeIntervalSeconds;\n this.enrollmentCompletionDeadline = enrollmentCompletionDeadline;\n }\n (0, $a27186eefd8c4b26$export$d60067ff2358eee8)(TotpSecret, [\n {\n /** @internal */ key: \"_makeTotpVerificationInfo\",\n value: function _makeTotpVerificationInfo(otp) {\n return {\n sessionInfo: this.sessionInfo,\n verificationCode: otp\n };\n }\n },\n {\n /**\r\n * Returns a QR code URL as described in\r\n * https://github.com/google/google-authenticator/wiki/Key-Uri-Format\r\n * This can be displayed to the user as a QR code to be scanned into a TOTP app like Google Authenticator.\r\n * If the optional parameters are unspecified, an accountName of and issuer of are used.\r\n *\r\n * @param accountName the name of the account/app along with a user identifier.\r\n * @param issuer issuer of the TOTP (likely the app name).\r\n * @returns A QR code URL string.\r\n */ key: \"generateQrCodeUrl\",\n value: function generateQrCodeUrl(accountName, issuer) {\n var _a;\n var useDefaults = false;\n if ($f394e9ac486578e6$var$_isEmptyString(accountName) || $f394e9ac486578e6$var$_isEmptyString(issuer)) useDefaults = true;\n if (useDefaults) {\n if ($f394e9ac486578e6$var$_isEmptyString(accountName)) accountName = ((_a = this.auth.currentUser) === null || _a === void 0 ? void 0 : _a.email) || \"unknownuser\";\n if ($f394e9ac486578e6$var$_isEmptyString(issuer)) issuer = this.auth.name;\n }\n return \"otpauth://totp/\".concat(issuer, \":\").concat(accountName, \"?secret=\").concat(this.secretKey, \"&issuer=\").concat(issuer, \"&algorithm=\").concat(this.hashingAlgorithm, \"&digits=\").concat(this.codeLength);\n }\n }\n ], [\n {\n key: \"_fromStartTotpMfaEnrollmentResponse\",\n value: /** @internal */ function _fromStartTotpMfaEnrollmentResponse(response, auth) {\n return new TotpSecret(response.totpSessionInfo.sharedSecretKey, response.totpSessionInfo.hashingAlgorithm, response.totpSessionInfo.verificationCodeLength, response.totpSessionInfo.periodSec, new Date(response.totpSessionInfo.finalizeEnrollmentTime).toUTCString(), response.totpSessionInfo.sessionInfo, auth);\n }\n }\n ]);\n return TotpSecret;\n}();\n/** @internal */ function $f394e9ac486578e6$var$_isEmptyString(input) {\n return typeof input === \"undefined\" || (input === null || input === void 0 ? void 0 : input.length) === 0;\n}\nvar $f394e9ac486578e6$var$name = \"@firebase/auth\";\nvar $f394e9ac486578e6$var$version = \"1.5.1\";\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */ var $f394e9ac486578e6$var$AuthInterop = /*#__PURE__*/ function() {\n \"use strict\";\n function AuthInterop(auth) {\n (0, $0c3f79e99c83f58f$export$2996f80ef42b8419)(this, AuthInterop);\n this.auth = auth;\n this.internalListeners = new Map();\n }\n (0, $a27186eefd8c4b26$export$d60067ff2358eee8)(AuthInterop, [\n {\n key: \"getUid\",\n value: function getUid() {\n var _a;\n this.assertAuthConfigured();\n return ((_a = this.auth.currentUser) === null || _a === void 0 ? void 0 : _a.uid) || null;\n }\n },\n {\n key: \"getToken\",\n value: function getToken(forceRefresh) {\n var _this = this;\n return (0, $9167c88d5d99601b$export$7c398597f8905a1)(function() {\n var accessToken;\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n switch(_state.label){\n case 0:\n _this.assertAuthConfigured();\n return [\n 4,\n _this.auth._initializationPromise\n ];\n case 1:\n _state.sent();\n if (!_this.auth.currentUser) return [\n 2,\n null\n ];\n return [\n 4,\n _this.auth.currentUser.getIdToken(forceRefresh)\n ];\n case 2:\n accessToken = _state.sent();\n return [\n 2,\n {\n accessToken: accessToken\n }\n ];\n }\n });\n })();\n }\n },\n {\n key: \"addAuthTokenListener\",\n value: function addAuthTokenListener(listener) {\n this.assertAuthConfigured();\n if (this.internalListeners.has(listener)) return;\n var unsubscribe = this.auth.onIdTokenChanged(function(user) {\n listener((user === null || user === void 0 ? void 0 : user.stsTokenManager.accessToken) || null);\n });\n this.internalListeners.set(listener, unsubscribe);\n this.updateProactiveRefresh();\n }\n },\n {\n key: \"removeAuthTokenListener\",\n value: function removeAuthTokenListener(listener) {\n this.assertAuthConfigured();\n var unsubscribe = this.internalListeners.get(listener);\n if (!unsubscribe) return;\n this.internalListeners.delete(listener);\n unsubscribe();\n this.updateProactiveRefresh();\n }\n },\n {\n key: \"assertAuthConfigured\",\n value: function assertAuthConfigured() {\n $f394e9ac486578e6$export$890c4ad488842ce7(this.auth._initializationPromise, \"dependent-sdk-initialized-before-auth\" /* AuthErrorCode.DEPENDENT_SDK_INIT_BEFORE_AUTH */ );\n }\n },\n {\n key: \"updateProactiveRefresh\",\n value: function updateProactiveRefresh() {\n if (this.internalListeners.size > 0) this.auth._startProactiveRefresh();\n else this.auth._stopProactiveRefresh();\n }\n }\n ]);\n return AuthInterop;\n}();\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */ function $f394e9ac486578e6$var$getVersionForPlatform(clientPlatform) {\n switch(clientPlatform){\n case \"Node\" /* ClientPlatform.NODE */ :\n return \"node\";\n case \"ReactNative\" /* ClientPlatform.REACT_NATIVE */ :\n return \"rn\";\n case \"Worker\" /* ClientPlatform.WORKER */ :\n return \"webworker\";\n case \"Cordova\" /* ClientPlatform.CORDOVA */ :\n return \"cordova\";\n default:\n return undefined;\n }\n}\n/** @internal */ function $f394e9ac486578e6$var$registerAuth(clientPlatform) {\n (0, $6801661115945616$export$c930050e7bb63965)(new (0, $601a68140873c3ae$export$16fa2f45be04daa8)(\"auth\" /* _ComponentName.AUTH */ , function(container, param) {\n var deps = param.options;\n var app = container.getProvider(\"app\").getImmediate();\n var heartbeatServiceProvider = container.getProvider(\"heartbeat\");\n var appCheckServiceProvider = container.getProvider(\"app-check-internal\");\n var _app_options = app.options, apiKey = _app_options.apiKey, authDomain = _app_options.authDomain;\n $f394e9ac486578e6$export$890c4ad488842ce7(apiKey && !apiKey.includes(\":\"), \"invalid-api-key\" /* AuthErrorCode.INVALID_API_KEY */ , {\n appName: app.name\n });\n var config = {\n apiKey: apiKey,\n authDomain: authDomain,\n clientPlatform: clientPlatform,\n apiHost: \"identitytoolkit.googleapis.com\" /* DefaultConfig.API_HOST */ ,\n tokenApiHost: \"securetoken.googleapis.com\" /* DefaultConfig.TOKEN_API_HOST */ ,\n apiScheme: \"https\" /* DefaultConfig.API_SCHEME */ ,\n sdkClientVersion: $f394e9ac486578e6$export$9f4f30ee63539e24(clientPlatform)\n };\n var authInstance = new $f394e9ac486578e6$export$91477dc880baac21(app, heartbeatServiceProvider, appCheckServiceProvider, config);\n $f394e9ac486578e6$var$_initializeAuthInstance(authInstance, deps);\n return authInstance;\n }, \"PUBLIC\" /* ComponentType.PUBLIC */ )/**\r\n * Auth can only be initialized by explicitly calling getAuth() or initializeAuth()\r\n * For why we do this, See go/firebase-next-auth-init\r\n */ .setInstantiationMode(\"EXPLICIT\" /* InstantiationMode.EXPLICIT */ )/**\r\n * Because all firebase products that depend on auth depend on auth-internal directly,\r\n * we need to initialize auth-internal after auth is initialized to make it available to other firebase products.\r\n */ .setInstanceCreatedCallback(function(container, _instanceIdentifier, _instance) {\n var authInternalProvider = container.getProvider(\"auth-internal\" /* _ComponentName.AUTH_INTERNAL */ );\n authInternalProvider.initialize();\n }));\n (0, $6801661115945616$export$c930050e7bb63965)(new (0, $601a68140873c3ae$export$16fa2f45be04daa8)(\"auth-internal\" /* _ComponentName.AUTH_INTERNAL */ , function(container) {\n var auth = $f394e9ac486578e6$export$a05254e7c3aeba6e(container.getProvider(\"auth\" /* _ComponentName.AUTH */ ).getImmediate());\n return function(auth) {\n return new $f394e9ac486578e6$var$AuthInterop(auth);\n }(auth);\n }, \"PRIVATE\" /* ComponentType.PRIVATE */ ).setInstantiationMode(\"EXPLICIT\" /* InstantiationMode.EXPLICIT */ ));\n (0, $6801661115945616$export$d29d5299a7137abc)($f394e9ac486578e6$var$name, $f394e9ac486578e6$var$version, $f394e9ac486578e6$var$getVersionForPlatform(clientPlatform));\n // BUILD_TARGET will be replaced by values like esm5, esm2017, cjs5, etc during the compilation\n (0, $6801661115945616$export$d29d5299a7137abc)($f394e9ac486578e6$var$name, $f394e9ac486578e6$var$version, \"esm2017\");\n}\n/**\r\n * @license\r\n * Copyright 2021 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */ var $f394e9ac486578e6$var$DEFAULT_ID_TOKEN_MAX_AGE = 300;\nvar $f394e9ac486578e6$var$authIdTokenMaxAge = (0, $9b50b37fb8824044$export$5539a1a3afe87d6)(\"authIdTokenMaxAge\") || $f394e9ac486578e6$var$DEFAULT_ID_TOKEN_MAX_AGE;\nvar $f394e9ac486578e6$var$lastPostedIdToken = null;\nvar $f394e9ac486578e6$var$mintCookieFactory = function(url) {\n return function() {\n var _ref = (0, $9167c88d5d99601b$export$7c398597f8905a1)(function(user) {\n var idTokenResult, _tmp, idTokenAge, idToken;\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n switch(_state.label){\n case 0:\n _tmp = user;\n if (!_tmp) return [\n 3,\n 2\n ];\n return [\n 4,\n user.getIdTokenResult()\n ];\n case 1:\n _tmp = _state.sent();\n _state.label = 2;\n case 2:\n idTokenResult = _tmp;\n idTokenAge = idTokenResult && (new Date().getTime() - Date.parse(idTokenResult.issuedAtTime)) / 1000;\n if (idTokenAge && idTokenAge > $f394e9ac486578e6$var$authIdTokenMaxAge) return [\n 2\n ];\n // Specifically trip null => undefined when logged out, to delete any existing cookie\n idToken = idTokenResult === null || idTokenResult === void 0 ? void 0 : idTokenResult.token;\n if ($f394e9ac486578e6$var$lastPostedIdToken === idToken) return [\n 2\n ];\n $f394e9ac486578e6$var$lastPostedIdToken = idToken;\n return [\n 4,\n fetch(url, {\n method: idToken ? \"POST\" : \"DELETE\",\n headers: idToken ? {\n \"Authorization\": \"Bearer \".concat(idToken)\n } : {}\n })\n ];\n case 3:\n _state.sent();\n return [\n 2\n ];\n }\n });\n });\n return function(user) {\n return _ref.apply(this, arguments);\n };\n }();\n};\n/**\r\n * Returns the Auth instance associated with the provided {@link @firebase/app#FirebaseApp}.\r\n * If no instance exists, initializes an Auth instance with platform-specific default dependencies.\r\n *\r\n * @param app - The Firebase App.\r\n *\r\n * @public\r\n */ function $f394e9ac486578e6$export$ae1af26003f05816() {\n var app = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : (0, $6801661115945616$export$f9962582c9e66d99)();\n var provider = (0, $6801661115945616$export$fa0d6da0f5838f50)(app, \"auth\");\n if (provider.isInitialized()) return provider.getImmediate();\n var auth = $f394e9ac486578e6$export$b4171a6734a65d42(app, {\n popupRedirectResolver: $f394e9ac486578e6$export$342063e11d6c3cad,\n persistence: [\n $f394e9ac486578e6$export$23f2a1d2818174ef,\n $f394e9ac486578e6$export$8b22cf2602fb60ce,\n $f394e9ac486578e6$export$407448d2b89b1813\n ]\n });\n var authTokenSyncUrl = (0, $9b50b37fb8824044$export$5539a1a3afe87d6)(\"authTokenSyncURL\");\n if (authTokenSyncUrl) {\n var mintCookie = $f394e9ac486578e6$var$mintCookieFactory(authTokenSyncUrl);\n $f394e9ac486578e6$export$d141bba7fdc215a3(auth, mintCookie, function() {\n return mintCookie(auth.currentUser);\n });\n $f394e9ac486578e6$export$efccba1c4a2ef57b(auth, function(user) {\n return mintCookie(user);\n });\n }\n var authEmulatorHost = (0, $9b50b37fb8824044$export$9c11895284c8adad)(\"auth\");\n if (authEmulatorHost) $f394e9ac486578e6$export$3466f893ebf79586(auth, \"http://\".concat(authEmulatorHost));\n return auth;\n}\n$f394e9ac486578e6$var$registerAuth(\"Browser\" /* ClientPlatform.BROWSER */ );\n\n\n\n\n\n\n\n\n\n\n\nvar $2def1c290218f6e6$exports = {};\n\n$2def1c290218f6e6$exports = (parcelRequire(\"fgnuq\")).getBundleURL(\"ipA1W\") + \"banner.e9a38beb.jpeg\";\n\n\nvar $52be3ae126f6a93a$exports = {};\n\n$52be3ae126f6a93a$exports = (parcelRequire(\"fgnuq\")).getBundleURL(\"ipA1W\") + \"logo.9da48a61.jpeg\";\n\n\nvar $3b9044c4cf843e9c$exports = {};\n!function(r) {\n \"use strict\";\n function n(r, n, e) {\n return e.a = r, e.f = n, e;\n }\n function F2(r) {\n return n(2, r, function(n) {\n return function(e) {\n return r(n, e);\n };\n });\n }\n function F3(r) {\n return n(3, r, function(n) {\n return function(e) {\n return function(t) {\n return r(n, e, t);\n };\n };\n });\n }\n function F4(r) {\n return n(4, r, function(n) {\n return function(e) {\n return function(t) {\n return function(u) {\n return r(n, e, t, u);\n };\n };\n };\n });\n }\n function F5(r) {\n return n(5, r, function(n) {\n return function(e) {\n return function(t) {\n return function(u) {\n return function(a) {\n return r(n, e, t, u, a);\n };\n };\n };\n };\n });\n }\n function F6(r) {\n return n(6, r, function(n) {\n return function(e) {\n return function(t) {\n return function(u) {\n return function(a) {\n return function(c) {\n return r(n, e, t, u, a, c);\n };\n };\n };\n };\n };\n });\n }\n function F7(r) {\n return n(7, r, function(n) {\n return function(e) {\n return function(t) {\n return function(u) {\n return function(a) {\n return function(c) {\n return function(i) {\n return r(n, e, t, u, a, c, i);\n };\n };\n };\n };\n };\n };\n });\n }\n function F8(r) {\n return n(8, r, function(n) {\n return function(e) {\n return function(t) {\n return function(u) {\n return function(a) {\n return function(c) {\n return function(i) {\n return function(o) {\n return r(n, e, t, u, a, c, i, o);\n };\n };\n };\n };\n };\n };\n };\n });\n }\n function F9(r) {\n return n(9, r, function(n) {\n return function(e) {\n return function(t) {\n return function(u) {\n return function(a) {\n return function(c) {\n return function(i) {\n return function(o) {\n return function(s) {\n return r(n, e, t, u, a, c, i, o, s);\n };\n };\n };\n };\n };\n };\n };\n };\n });\n }\n function A2(r, n, e) {\n return 2 === r.a ? r.f(n, e) : r(n)(e);\n }\n function A3(r, n, e, t) {\n return 3 === r.a ? r.f(n, e, t) : r(n)(e)(t);\n }\n function A4(r, n, e, t, u) {\n return 4 === r.a ? r.f(n, e, t, u) : r(n)(e)(t)(u);\n }\n function A5(r, n, e, t, u, a) {\n return 5 === r.a ? r.f(n, e, t, u, a) : r(n)(e)(t)(u)(a);\n }\n function A6(r, n, e, t, u, a, c) {\n return 6 === r.a ? r.f(n, e, t, u, a, c) : r(n)(e)(t)(u)(a)(c);\n }\n function A7(r, n, e, t, u, a, c, i) {\n return 7 === r.a ? r.f(n, e, t, u, a, c, i) : r(n)(e)(t)(u)(a)(c)(i);\n }\n function e(r, n) {\n for(var _$e, u = [], a = t(r, n, 0, u); a && (_$e = u.pop()); a = t(_$e.a, _$e.b, 0, u));\n return a;\n }\n function t(r, n, e, u) {\n if (r === n) return !0;\n if (\"object\" != typeof r || null === r || null === n) return \"function\" == typeof r && $(5), !1;\n if (e > 100) return u.push(i(r, n)), !0;\n for(var a in 0 > r.$ && (r = te(r), n = te(n)), r)if (!t(r[a], n[a], e + 1, u)) return !1;\n return !0;\n }\n var u = F2(e);\n function a(r, n, e) {\n if (\"object\" != typeof r) return r === n ? 0 : n > r ? -1 : 1;\n if (void 0 === r.$) return (e = a(r.a, n.a)) || (e = a(r.b, n.b)) ? e : a(r.c, n.c);\n for(; r.b && n.b && !(e = a(r.a, n.a)); r = r.b, n = n.b);\n return e || (r.b ? 1 : n.b ? -1 : 0);\n }\n var c = F2(function(r, n) {\n var _$e = a(r, n);\n return 0 > _$e ? re : _$e ? Zn : Qn;\n });\n function i(r, n) {\n return {\n a: r,\n b: n\n };\n }\n function o(r, n, e) {\n return {\n a: r,\n b: n,\n c: e\n };\n }\n function s(r, n) {\n var _$e = {};\n for(var t in r)_$e[t] = r[t];\n for(var t in n)_$e[t] = n[t];\n return _$e;\n }\n var f = F2(l);\n function l(r, n) {\n if (\"string\" == typeof r) return r + n;\n if (!r.b) return n;\n var _$e = b(r.a, n);\n r = r.b;\n for(var t = _$e; r.b; r = r.b)t = t.b = b(r.a, n);\n return _$e;\n }\n var d = {\n $: 0\n };\n function b(r, n) {\n return {\n $: 1,\n a: r,\n b: n\n };\n }\n var p = F2(b);\n function g(r) {\n for(var n = d, _$e = r.length; _$e--;)n = b(r[_$e], n);\n return n;\n }\n function v(r) {\n for(var n = []; r.b; r = r.b)n.push(r.a);\n return n;\n }\n var h = F3(function(r, n, e) {\n for(var t = []; n.b && e.b; n = n.b, e = e.b)t.push(A2(r, n.a, e.a));\n return g(t);\n }), m = F2(function(r, n) {\n return g(v(n).sort(function(n, e) {\n return a(r(n), r(e));\n }));\n }), y = F3(function(r, n, e) {\n for(var t = Array(r), u = 0; r > u; u++)t[u] = e(n + u);\n return t;\n }), w = F2(function(r, n) {\n for(var _$e = Array(r), t = 0; r > t && n.b; t++)_$e[t] = n.a, n = n.b;\n return _$e.length = t, i(_$e, n);\n });\n function $(r) {\n throw Error(\"https://github.com/elm/core/blob/1.0.0/hints/\" + r + \".md\");\n }\n var E = F2(function(r, n) {\n return r - n;\n }), T = F2(function(r, n) {\n var _$e = n % r;\n return 0 === r ? $(11) : _$e > 0 && 0 > r || 0 > _$e && r > 0 ? _$e + r : _$e;\n }), A = Math.ceil, L = Math.floor, x = Math.round, S = Math.log, N = F2(function(r, n) {\n return r + n;\n }), k = F2(function(r, n) {\n return r + n;\n }), R = F3(function(r, n, e) {\n for(var t = e.length; t--;){\n var u = e[t], a = e.charCodeAt(t);\n 56320 > a || a > 57343 || (u = e[--t] + u), n = A2(r, u, n);\n }\n return n;\n }), q = F2(function(r, n) {\n return n.split(r);\n }), I = F2(function(r, n) {\n return n.join(r);\n }), D = F3(function(r, n, e) {\n return e.slice(r, n);\n }), C = F2(function(r, n) {\n for(var _$e = n.length; _$e--;){\n var t = n[_$e], u = n.charCodeAt(_$e);\n if (56320 > u || u > 57343 || (t = n[--_$e] + t), !r(t)) return !1;\n }\n return !0;\n }), O = F2(function(r, n) {\n return n.indexOf(r) > -1;\n }), U = F2(function(r, n) {\n return 0 === n.indexOf(r);\n }), P = F2(function(r, n) {\n return n.length >= r.length && n.lastIndexOf(r) === n.length - r.length;\n }), M = F2(function(r, n) {\n var _$e = r.length;\n if (1 > _$e) return d;\n for(var t = 0, u = []; (t = n.indexOf(r, t)) > -1;)u.push(t), t += _$e;\n return g(u);\n });\n function B(r) {\n return r + \"\";\n }\n function G(r) {\n return {\n $: 2,\n b: r\n };\n }\n var j = G(function(r) {\n return \"number\" != typeof r ? tr(\"an INT\", r) : r > -2147483647 && 2147483647 > r && (0 | r) === r ? oe(r) : !isFinite(r) || r % 1 ? tr(\"an INT\", r) : oe(r);\n }), H = G(function(r) {\n return \"boolean\" == typeof r ? oe(r) : tr(\"a BOOL\", r);\n }), F = (G(function(r) {\n return \"number\" == typeof r ? oe(r) : tr(\"a FLOAT\", r);\n }), G(function(r) {\n return oe(r);\n })), V = G(function(r) {\n return \"string\" == typeof r ? oe(r) : r instanceof String ? oe(r + \"\") : tr(\"a STRING\", r);\n }), _ = F2(function(r, n) {\n return {\n $: 6,\n d: r,\n b: n\n };\n });\n function W(r, n) {\n return {\n $: 9,\n f: r,\n g: n\n };\n }\n var Y = F2(function(r, n) {\n return {\n $: 10,\n b: n,\n h: r\n };\n }), z = F2(function(r, n) {\n return W(r, [\n n\n ]);\n }), K = F3(function(r, n, e) {\n return W(r, [\n n,\n e\n ]);\n }), X = F6(function(r, n, e, t, u, a) {\n return W(r, [\n n,\n e,\n t,\n u,\n a\n ]);\n }), J = F2(function(r, n) {\n try {\n return Z(r, JSON.parse(n));\n } catch (r) {\n return ue(A2(ae, \"This is not valid JSON! \" + r.message, n));\n }\n }), Q = F2(function(r, n) {\n return Z(r, n);\n });\n function Z(r, n) {\n switch(r.$){\n case 2:\n return r.b(n);\n case 5:\n return null === n ? oe(r.c) : tr(\"null\", n);\n case 3:\n return nr(n) ? rr(r.b, n, g) : tr(\"a LIST\", n);\n case 4:\n return nr(n) ? rr(r.b, n, er) : tr(\"an ARRAY\", n);\n case 6:\n var _$e = r.d;\n if (\"object\" != typeof n || null === n || !(_$e in n)) return tr(\"an OBJECT with a field named `\" + _$e + \"`\", n);\n var t = Z(r.b, n[_$e]);\n return ut(t) ? t : ue(A2(ce, _$e, t.a));\n case 7:\n var u = r.e;\n return nr(n) ? n.length > u ? (t = Z(r.b, n[u]), ut(t) ? t : ue(A2(ie, u, t.a))) : tr(\"a LONGER array. Need index \" + u + \" but only see \" + n.length + \" entries\", n) : tr(\"an ARRAY\", n);\n case 8:\n if (\"object\" != typeof n || null === n || nr(n)) return tr(\"an OBJECT\", n);\n var a = d;\n for(var c in n)if (n.hasOwnProperty(c)) {\n if (t = Z(r.b, n[c]), !ut(t)) return ue(A2(ce, c, t.a));\n a = b(i(c, t.a), a);\n }\n return oe(qe(a));\n case 9:\n for(var o = r.f, _$s = r.g, f = 0; _$s.length > f; f++){\n if (t = Z(_$s[f], n), !ut(t)) return t;\n o = o(t.a);\n }\n return oe(o);\n case 10:\n return t = Z(r.b, n), ut(t) ? Z(r.h(t.a), n) : t;\n case 11:\n for(var _$l = d, p = r.g; p.b; p = p.b){\n if (t = Z(p.a, n), ut(t)) return t;\n _$l = b(t.a, _$l);\n }\n return ue(se(qe(_$l)));\n case 1:\n return ue(A2(ae, r.a, n));\n case 0:\n return oe(r.a);\n }\n }\n function rr(r, n, e) {\n for(var t = n.length, u = Array(t), a = 0; t > a; a++){\n var c = Z(r, n[a]);\n if (!ut(c)) return ue(A2(ie, a, c.a));\n u[a] = c.a;\n }\n return oe(e(u));\n }\n function nr(r) {\n return Array.isArray(r) || \"undefined\" != typeof FileList && r instanceof FileList;\n }\n function er(r) {\n return A2(tt, r.length, function(n) {\n return r[n];\n });\n }\n function tr(r, n) {\n return ue(A2(ae, \"Expecting \" + r, n));\n }\n function ur(r, n) {\n if (r === n) return !0;\n if (r.$ !== n.$) return !1;\n switch(r.$){\n case 0:\n case 1:\n return r.a === n.a;\n case 2:\n return r.b === n.b;\n case 5:\n return r.c === n.c;\n case 3:\n case 4:\n case 8:\n return ur(r.b, n.b);\n case 6:\n return r.d === n.d && ur(r.b, n.b);\n case 7:\n return r.e === n.e && ur(r.b, n.b);\n case 9:\n return r.f === n.f && ar(r.g, n.g);\n case 10:\n return r.h === n.h && ur(r.b, n.b);\n case 11:\n return ar(r.g, n.g);\n }\n }\n function ar(r, n) {\n var _$e = r.length;\n if (_$e !== n.length) return !1;\n for(var t = 0; _$e > t; t++)if (!ur(r[t], n[t])) return !1;\n return !0;\n }\n var cr = F2(function(r, n) {\n return JSON.stringify(n, null, r) + \"\";\n });\n function ir(r) {\n return r;\n }\n var or = F3(function(r, n, e) {\n return e[r] = n, e;\n });\n function sr(r) {\n return {\n $: 0,\n a: r\n };\n }\n function fr(r) {\n return {\n $: 2,\n b: r,\n c: null\n };\n }\n var lr = F2(function(r, n) {\n return {\n $: 3,\n b: r,\n d: n\n };\n }), dr = 0;\n function br(r) {\n var n = {\n $: 0,\n e: dr++,\n f: r,\n g: null,\n h: []\n };\n return yr(n), n;\n }\n function pr(r) {\n return fr(function(n) {\n n(sr(br(r)));\n });\n }\n function gr(r, n) {\n r.h.push(n), yr(r);\n }\n var vr = F2(function(r, n) {\n return fr(function(e) {\n gr(r, n), e(sr(0));\n });\n }), hr = !1, mr = [];\n function yr(r) {\n if (mr.push(r), !hr) {\n for(hr = !0; r = mr.shift();)wr(r);\n hr = !1;\n }\n }\n function wr(r) {\n for(; r.f;){\n var n = r.f.$;\n if (0 === n || 1 === n) {\n for(; r.g && r.g.$ !== n;)r.g = r.g.i;\n if (!r.g) return;\n r.f = r.g.b(r.f.a), r.g = r.g.i;\n } else {\n if (2 === n) return void (r.f.c = r.f.b(function(n) {\n r.f = n, yr(r);\n }));\n if (5 === n) {\n if (0 === r.h.length) return;\n r.f = r.f.b(r.h.shift());\n } else r.g = {\n $: 3 === n ? 0 : 1,\n b: r.f.b,\n i: r.g\n }, r.f = r.f.d;\n }\n }\n }\n var $r = {};\n function Er(r, n, e, t, u) {\n return {\n b: r,\n c: n,\n d: e,\n e: t,\n f: u\n };\n }\n function Tr(r, n) {\n var _$e = {\n g: n,\n h: void 0\n }, t = r.c, u = r.d, a = r.e, c = r.f;\n function i(r) {\n return A2(lr, i, {\n $: 5,\n b: function b(n) {\n var _$i = n.a;\n return 0 === n.$ ? A3(u, _$e, _$i, r) : a && c ? A4(t, _$e, _$i.i, _$i.j, r) : A3(t, _$e, a ? _$i.i : _$i.j, r);\n }\n });\n }\n return _$e.h = br(A2(lr, i, r.b));\n }\n var Ar = F2(function(r, n) {\n return fr(function(e) {\n r.g(n), e(sr(0));\n });\n }), Lr = F2(function(r, n) {\n return A2(vr, r.h, {\n $: 0,\n a: n\n });\n });\n function xr(r) {\n return function(n) {\n return {\n $: 1,\n k: r,\n l: n\n };\n };\n }\n function Sr(r) {\n return {\n $: 2,\n m: r\n };\n }\n var Nr = [], kr = !1;\n function Rr(r, n, e) {\n if (Nr.push({\n p: r,\n q: n,\n r: e\n }), !kr) {\n kr = !0;\n for(var t; t = Nr.shift();)qr(t.p, t.q, t.r);\n kr = !1;\n }\n }\n function qr(r, n, e) {\n var t = {};\n for(var u in Ir(!0, n, t, null), Ir(!1, e, t, null), r)gr(r[u], {\n $: \"fx\",\n a: t[u] || {\n i: d,\n j: d\n }\n });\n }\n function Ir(r, n, e, t) {\n switch(n.$){\n case 1:\n var u = n.k, a = function(r, n, e, t) {\n function u(r) {\n for(var _$n = e; _$n; _$n = _$n.t)r = _$n.s(r);\n return r;\n }\n return A2(r ? $r[n].e : $r[n].f, u, t);\n }(r, u, t, n.l);\n return void (e[u] = function(r, n, e) {\n return e = e || {\n i: d,\n j: d\n }, r ? e.i = b(n, e.i) : e.j = b(n, e.j), e;\n }(r, a, e[u]));\n case 2:\n for(var c = n.m; c.b; c = c.b)Ir(r, c.a, e, t);\n return;\n case 3:\n return void Ir(r, n.o, e, {\n s: n.n,\n t: t\n });\n }\n }\n function Dr(r) {\n $r[r] && $(3);\n }\n function Cr(r, n) {\n return Dr(r), $r[r] = {\n e: Or,\n u: n,\n a: Ur\n }, xr(r);\n }\n var Or = F2(function(r, n) {\n return n;\n });\n function Ur(r) {\n var n = [], _$e = $r[r].u, t = fr(function(r) {\n var n = setTimeout(function() {\n r(sr(0));\n }, 0);\n return function() {\n clearTimeout(n);\n };\n });\n return $r[r].b = t, $r[r].c = F3(function(r, u) {\n for(; u.b; u = u.b)for(var a = n, c = _$e(u.a), _$i = 0; a.length > _$i; _$i++)a[_$i](c);\n return t;\n }), {\n subscribe: function subscribe(r) {\n n.push(r);\n },\n unsubscribe: function unsubscribe(r) {\n var _$e = (n = n.slice()).indexOf(r);\n 0 > _$e || n.splice(_$e, 1);\n }\n };\n }\n var Pr, Mr = F2(function(r, n) {\n return function(e) {\n return r(n(e));\n };\n });\n var Br = \"undefined\" != typeof document ? document : {};\n function Gr(r, n) {\n r.appendChild(n);\n }\n function jr(r) {\n return {\n $: 0,\n a: r\n };\n }\n var Hr, Fr = F2(function(r, n) {\n return F2(function(e, t) {\n for(var u = [], a = 0; t.b; t = t.b){\n var c = t.a;\n a += c.b || 0, u.push(c);\n }\n return a += u.length, {\n $: 1,\n c: n,\n d: an(e),\n e: u,\n f: r,\n b: a\n };\n });\n }), Vr = Fr(void 0), _r = F2(function(r, n) {\n return F2(function(e, t) {\n for(var u = [], a = 0; t.b; t = t.b){\n var c = t.a;\n a += c.b.b || 0, u.push(c);\n }\n return a += u.length, {\n $: 2,\n c: n,\n d: an(e),\n e: u,\n f: r,\n b: a\n };\n });\n })(void 0), Wr = F2(function(r, n) {\n return {\n $: 4,\n j: r,\n k: n,\n b: 1 + (n.b || 0)\n };\n }), Yr = F2(function(r, n) {\n return {\n $: \"a0\",\n n: r,\n o: n\n };\n }), zr = F2(function(r, n) {\n return {\n $: \"a1\",\n n: r,\n o: n\n };\n }), Kr = F2(function(r, n) {\n return {\n $: \"a2\",\n n: r,\n o: n\n };\n }), Xr = F2(function(r, n) {\n return {\n $: \"a3\",\n n: r,\n o: n\n };\n }), Jr = F3(function(r, n, e) {\n return {\n $: \"a4\",\n n: n,\n o: {\n f: r,\n o: e\n }\n };\n }), Qr = /^script$/i, Zr = /^(on|formAction$)/i, rn = /^\\s*j\\s*a\\s*v\\s*a\\s*s\\s*c\\s*r\\s*i\\s*p\\s*t\\s*:/i, nn = /^\\s*(j\\s*a\\s*v\\s*a\\s*s\\s*c\\s*r\\s*i\\s*p\\s*t\\s*:|d\\s*a\\s*t\\s*a\\s*:\\s*t\\s*e\\s*x\\s*t\\s*\\/\\s*h\\s*t\\s*m\\s*l\\s*(,|;))/i;\n function en(r) {\n return Qr.test(r) ? \"p\" : r;\n }\n function tn(r) {\n return rn.test(r) ? \"\" : r;\n }\n function un(r) {\n return nn.test(r) ? \"\" : r;\n }\n function an(r) {\n for(var n = {}; r.b; r = r.b){\n var _$e = r.a, t = _$e.$, u = _$e.n, a = _$e.o;\n if (\"a2\" !== t) {\n var c = n[t] || (n[t] = {});\n \"a3\" === t && \"class\" === u ? cn(c, u, a) : c[u] = a;\n } else \"className\" === u ? cn(n, u, a) : n[u] = a;\n }\n return n;\n }\n function cn(r, n, e) {\n var t = r[n];\n r[n] = t ? t + \" \" + e : e;\n }\n function on(r, n) {\n var _$e = r.$;\n if (5 === _$e) return on(r.k || (r.k = r.m()), n);\n if (0 === _$e) return Br.createTextNode(r.a);\n if (4 === _$e) {\n for(var t = r.k, u = r.j; 4 === t.$;)\"object\" != typeof u ? u = [\n u,\n t.j\n ] : u.push(t.j), t = t.k;\n var a = {\n j: u,\n p: n\n };\n return (c = on(t, a)).elm_event_node_ref = a, c;\n }\n if (3 === _$e) return sn(c = r.h(r.g), n, r.d), c;\n var c = r.f ? Br.createElementNS(r.f, r.c) : Br.createElement(r.c);\n Pr && \"a\" == r.c && c.addEventListener(\"click\", Pr(c)), sn(c, n, r.d);\n for(var _$i = r.e, o = 0; _$i.length > o; o++)Gr(c, on(1 === _$e ? _$i[o] : _$i[o].b, n));\n return c;\n }\n function sn(r, n, e) {\n for(var t in e){\n var u = e[t];\n \"a1\" === t ? fn(r, u) : \"a0\" === t ? bn(r, n, u) : \"a3\" === t ? ln(r, u) : \"a4\" === t ? dn(r, u) : (\"value\" !== t && \"checked\" !== t || r[t] !== u) && (r[t] = u);\n }\n }\n function fn(r, n) {\n var _$e = r.style;\n for(var t in n)_$e[t] = n[t];\n }\n function ln(r, n) {\n for(var _$e in n){\n var t = n[_$e];\n void 0 !== t ? r.setAttribute(_$e, t) : r.removeAttribute(_$e);\n }\n }\n function dn(r, n) {\n for(var _$e in n){\n var t = n[_$e], u = t.f, a = t.o;\n void 0 !== a ? r.setAttributeNS(u, _$e, a) : r.removeAttributeNS(u, _$e);\n }\n }\n function bn(r, n, e) {\n var t = r.elmFs || (r.elmFs = {});\n for(var u in e){\n var a = e[u], c = t[u];\n if (a) {\n if (c) {\n if (c.q.$ === a.$) {\n c.q = a;\n continue;\n }\n r.removeEventListener(u, c);\n }\n c = pn(n, a), r.addEventListener(u, c, Hr && {\n passive: 2 > ot(a)\n }), t[u] = c;\n } else r.removeEventListener(u, c), t[u] = void 0;\n }\n }\n try {\n window.addEventListener(\"t\", null, Object.defineProperty({}, \"passive\", {\n get: function get() {\n Hr = !0;\n }\n }));\n } catch (r) {}\n function pn(r, n) {\n function e(n) {\n var t = e.q, u = Z(t.a, n);\n if (ut(u)) {\n for(var a, c = ot(t), _$i = u.a, o = c ? 3 > c ? _$i.a : _$i.cc : _$i, _$s = 1 == c ? _$i.b : 3 == c && _$i.bx, f = (_$s && n.stopPropagation(), (2 == c ? _$i.b : 3 == c && _$i.bu) && n.preventDefault(), r); a = f.j;){\n if (\"function\" == typeof a) o = a(o);\n else for(var _$l = a.length; _$l--;)o = a[_$l](o);\n f = f.p;\n }\n f(o, _$s);\n }\n }\n return e.q = n, e;\n }\n function gn(r, n) {\n return r.$ == n.$ && ur(r.a, n.a);\n }\n function vn(r, n, e, t) {\n var u = {\n $: n,\n r: e,\n s: t,\n t: void 0,\n u: void 0\n };\n return r.push(u), u;\n }\n function hn(r, n, e, t) {\n if (r !== n) {\n var u = r.$, a = n.$;\n if (u !== a) {\n if (1 !== u || 2 !== a) return void vn(e, 0, t, n);\n n = function(r) {\n for(var _$n = r.e, _$e = _$n.length, _$t = Array(_$e), u = 0; _$e > u; u++)_$t[u] = _$n[u].b;\n return {\n $: 1,\n c: r.c,\n d: r.d,\n e: _$t,\n f: r.f,\n b: r.b\n };\n }(n), a = 1;\n }\n switch(a){\n case 5:\n for(var c = r.l, _$i = n.l, o = c.length, _$s = o === _$i.length; _$s && o--;)_$s = c[o] === _$i[o];\n if (_$s) return void (n.k = r.k);\n n.k = n.m();\n var f = [];\n return hn(r.k, n.k, f, 0), void (f.length > 0 && vn(e, 1, t, f));\n case 4:\n for(var _$l = r.j, d = n.j, _$b = !1, p = r.k; 4 === p.$;)_$b = !0, \"object\" != typeof _$l ? _$l = [\n _$l,\n p.j\n ] : _$l.push(p.j), p = p.k;\n for(var _$g = n.k; 4 === _$g.$;)_$b = !0, \"object\" != typeof d ? d = [\n d,\n _$g.j\n ] : d.push(_$g.j), _$g = _$g.k;\n return _$b && _$l.length !== d.length ? void vn(e, 0, t, n) : ((_$b ? function(r, n) {\n for(var _$e = 0; r.length > _$e; _$e++)if (r[_$e] !== n[_$e]) return !1;\n return !0;\n }(_$l, d) : _$l === d) || vn(e, 2, t, d), void hn(p, _$g, e, t + 1));\n case 0:\n return void (r.a !== n.a && vn(e, 3, t, n.a));\n case 1:\n return void mn(r, n, e, t, wn);\n case 2:\n return void mn(r, n, e, t, $n);\n case 3:\n if (r.h !== n.h) return void vn(e, 0, t, n);\n var v = yn(r.d, n.d);\n v && vn(e, 4, t, v);\n var h = n.i(r.g, n.g);\n return void (h && vn(e, 5, t, h));\n }\n }\n }\n function mn(r, n, e, t, u) {\n if (r.c === n.c && r.f === n.f) {\n var a = yn(r.d, n.d);\n a && vn(e, 4, t, a), u(r, n, e, t);\n } else vn(e, 0, t, n);\n }\n function yn(r, n, e) {\n var t;\n for(var u in r)if (\"a1\" !== u && \"a0\" !== u && \"a3\" !== u && \"a4\" !== u) {\n if (u in n) {\n var a = r[u], c = n[u];\n a === c && \"value\" !== u && \"checked\" !== u || \"a0\" === e && gn(a, c) || ((t = t || {})[u] = c);\n } else (t = t || {})[u] = e ? \"a1\" === e ? \"\" : \"a0\" === e || \"a3\" === e ? void 0 : {\n f: r[u].f,\n o: void 0\n } : \"string\" == typeof r[u] ? \"\" : null;\n } else {\n var _$i = yn(r[u], n[u] || {}, u);\n _$i && ((t = t || {})[u] = _$i);\n }\n for(var o in n)o in r || ((t = t || {})[o] = n[o]);\n return t;\n }\n function wn(r, n, e, t) {\n var u = r.e, a = n.e, c = u.length, _$i = a.length;\n c > _$i ? vn(e, 6, t, {\n v: _$i,\n i: c - _$i\n }) : _$i > c && vn(e, 7, t, {\n v: c,\n e: a\n });\n for(var o = _$i > c ? c : _$i, _$s = 0; o > _$s; _$s++){\n var f = u[_$s];\n hn(f, a[_$s], e, ++t), t += f.b || 0;\n }\n }\n function $n(r, n, e, t) {\n for(var u = [], a = {}, c = [], _$i = r.e, o = n.e, _$s = _$i.length, f = o.length, _$l = 0, d = 0, _$b = t; _$s > _$l && f > d;){\n var p = (x = _$i[_$l]).a, _$g = (S = o[d]).a, v = x.b, h = S.b, m = void 0, y = void 0;\n if (p !== _$g) {\n var w = _$i[_$l + 1], $ = o[d + 1];\n if (w) {\n var E = w.a, T = w.b;\n y = _$g === E;\n }\n if ($) {\n var A = $.a, L = $.b;\n m = p === A;\n }\n if (m && y) hn(v, L, u, ++_$b), Tn(a, u, p, h, d, c), _$b += v.b || 0, An(a, u, p, T, ++_$b), _$b += T.b || 0, _$l += 2, d += 2;\n else if (m) _$b++, Tn(a, u, _$g, h, d, c), hn(v, L, u, _$b), _$b += v.b || 0, _$l += 1, d += 2;\n else if (y) An(a, u, p, v, ++_$b), _$b += v.b || 0, hn(T, h, u, ++_$b), _$b += T.b || 0, _$l += 2, d += 1;\n else {\n if (!w || E !== A) break;\n An(a, u, p, v, ++_$b), Tn(a, u, _$g, h, d, c), _$b += v.b || 0, hn(T, L, u, ++_$b), _$b += T.b || 0, _$l += 2, d += 2;\n }\n } else hn(v, h, u, ++_$b), _$b += v.b || 0, _$l++, d++;\n }\n for(; _$s > _$l;){\n var x;\n _$b++, An(a, u, (x = _$i[_$l]).a, v = x.b, _$b), _$b += v.b || 0, _$l++;\n }\n for(; f > d;){\n var S, N = N || [];\n Tn(a, u, (S = o[d]).a, S.b, void 0, N), d++;\n }\n (u.length > 0 || c.length > 0 || N) && vn(e, 8, t, {\n w: u,\n x: c,\n y: N\n });\n }\n var En = \"_elmW6BL\";\n function Tn(r, n, e, t, u, a) {\n var c = r[e];\n if (!c) return a.push({\n r: u,\n A: c = {\n c: 0,\n z: t,\n r: u,\n s: void 0\n }\n }), void (r[e] = c);\n if (1 === c.c) {\n a.push({\n r: u,\n A: c\n }), c.c = 2;\n var _$i = [];\n return hn(c.z, t, _$i, c.r), c.r = u, void (c.s.s = {\n w: _$i,\n A: c\n });\n }\n Tn(r, n, e + En, t, u, a);\n }\n function An(r, n, e, t, u) {\n var a = r[e];\n if (a) {\n if (0 === a.c) {\n a.c = 2;\n var c = [];\n return hn(t, a.z, c, u), void vn(n, 9, u, {\n w: c,\n A: a\n });\n }\n An(r, n, e + En, t, u);\n } else {\n var _$i = vn(n, 9, u, void 0);\n r[e] = {\n c: 1,\n z: t,\n r: u,\n s: _$i\n };\n }\n }\n function Ln(r, n, e, t) {\n xn(r, n, e, 0, 0, n.b, t);\n }\n function xn(r, n, e, t, u, a, c) {\n for(var _$i = e[t], o = _$i.r; o === u;){\n var _$s = _$i.$;\n if (1 === _$s) Ln(r, n.k, _$i.s, c);\n else if (8 === _$s) _$i.t = r, _$i.u = c, (f = _$i.s.w).length > 0 && xn(r, n, f, 0, u, a, c);\n else if (9 === _$s) {\n _$i.t = r, _$i.u = c;\n var f, _$l = _$i.s;\n _$l && (_$l.A.s = r, (f = _$l.w).length > 0 && xn(r, n, f, 0, u, a, c));\n } else _$i.t = r, _$i.u = c;\n if (!(_$i = e[++t]) || (o = _$i.r) > a) return t;\n }\n var d = n.$;\n if (4 === d) {\n for(var _$b = n.k; 4 === _$b.$;)_$b = _$b.k;\n return xn(r, _$b, e, t, u + 1, a, r.elm_event_node_ref);\n }\n for(var p = n.e, _$g = r.childNodes, v = 0; p.length > v; v++){\n u++;\n var h = 1 === d ? p[v] : p[v].b, m = u + (h.b || 0);\n if (!(u > o || o > m || (_$i = e[t = xn(_$g[v], h, e, t, u, m, c)]) && (o = _$i.r) <= a)) return t;\n u = m;\n }\n return t;\n }\n function Sn(r, n) {\n for(var _$e = 0; n.length > _$e; _$e++){\n var t = n[_$e], u = t.t, a = Nn(u, t);\n u === r && (r = a);\n }\n return r;\n }\n function Nn(r, n) {\n switch(n.$){\n case 0:\n return function(r, n, e) {\n var t = r.parentNode, u = on(n, e);\n return u.elm_event_node_ref || (u.elm_event_node_ref = r.elm_event_node_ref), t && u !== r && t.replaceChild(u, r), u;\n }(r, n.s, n.u);\n case 4:\n return sn(r, n.u, n.s), r;\n case 3:\n return r.replaceData(0, r.length, n.s), r;\n case 1:\n return Sn(r, n.s);\n case 2:\n return r.elm_event_node_ref ? r.elm_event_node_ref.j = n.s : r.elm_event_node_ref = {\n j: n.s,\n p: n.u\n }, r;\n case 6:\n for(var _$e = n.s, t = 0; _$e.i > t; t++)r.removeChild(r.childNodes[_$e.v]);\n return r;\n case 7:\n for(var u = (_$e = n.s).e, a = r.childNodes[t = _$e.v]; u.length > t; t++)r.insertBefore(on(u[t], n.u), a);\n return r;\n case 9:\n if (!(_$e = n.s)) return r.parentNode.removeChild(r), r;\n var c = _$e.A;\n return void 0 !== c.r && r.parentNode.removeChild(r), c.s = Sn(r, _$e.w), r;\n case 8:\n return function(r, n) {\n var _$e = n.s, t = function(r, n) {\n if (r) {\n for(var _$e = Br.createDocumentFragment(), t = 0; r.length > t; t++){\n var u = r[t].A;\n Gr(_$e, 2 === u.c ? u.s : on(u.z, n.u));\n }\n return _$e;\n }\n }(_$e.y, n);\n r = Sn(r, _$e.w);\n for(var u = _$e.x, a = 0; u.length > a; a++){\n var c = u[a], _$i = c.A, o = 2 === _$i.c ? _$i.s : on(_$i.z, n.u);\n r.insertBefore(o, r.childNodes[c.r]);\n }\n return t && Gr(r, t), r;\n }(r, n);\n case 5:\n return n.s(r);\n default:\n $(10);\n }\n }\n function kn(r) {\n if (3 === r.nodeType) return jr(r.textContent);\n if (1 !== r.nodeType) return jr(\"\");\n for(var n = d, _$e = r.attributes, t = _$e.length; t--;){\n var u = _$e[t];\n n = b(A2(Xr, u.name, u.value), n);\n }\n var a = r.tagName.toLowerCase(), c = d, _$i = r.childNodes;\n for(t = _$i.length; t--;)c = b(kn(_$i[t]), c);\n return A3(Vr, a, n, c);\n }\n var Rn = F4(function(r, n, e, t) {\n return function(r, n, e, t, u, a) {\n var c = A2(Q, r, n ? n.flags : void 0);\n ut(c) || $(2);\n var _$i = {}, o = e(c.a), _$s = o.a, f = a(d, _$s), _$l = function(r, n) {\n var _$e;\n for(var _$t in $r){\n var _$u = $r[_$t];\n _$u.a && ((_$e = _$e || {})[_$t] = _$u.a(_$t, n)), r[_$t] = Tr(_$u, n);\n }\n return _$e;\n }(_$i, d);\n function d(r, n) {\n var _$e = A2(t, r, _$s);\n f(_$s = _$e.a, n), Rr(_$i, _$e.b, u(_$s));\n }\n return Rr(_$i, o.b, u(_$s)), _$l ? {\n ports: _$l\n } : {};\n }(n, t, r.c7, r.$7, r.dn, function(n, e) {\n var _$t = r.bv && r.bv(n), u = r.dp, a = Br.title, c = Br.body, _$i = kn(c);\n return function(r, n) {\n n(r);\n var _$e = 0;\n function t() {\n _$e = 1 === _$e ? 0 : (qn(t), n(r), 1);\n }\n return function(u, a) {\n r = u, a ? (n(r), 2 === _$e && (_$e = 1)) : (0 === _$e && qn(t), _$e = 2);\n };\n }(e, function(r) {\n Pr = _$t;\n var _$e = u(r), o = Vr(\"body\")(d)(_$e.aa), _$s = function(r, n) {\n var _$e = [];\n return hn(r, n, _$e, 0), _$e;\n }(_$i, o);\n c = function(r, n, e, t) {\n return 0 === e.length ? r : (Ln(r, n, e, t), Sn(r, e));\n }(c, _$i, _$s, n), _$i = o, Pr = 0, a !== _$e.bj && (Br.title = a = _$e.bj);\n });\n });\n }), qn = (\"undefined\" != typeof cancelAnimationFrame && cancelAnimationFrame, \"undefined\" != typeof requestAnimationFrame ? requestAnimationFrame : function qn(r) {\n return setTimeout(r, 1e3 / 60);\n });\n function In() {\n return At(Br.location.href).a || $(1);\n }\n var Dn = F2(function(r, n) {\n return A2(Ft, Lt, fr(function() {\n history.pushState({}, \"\", n), r();\n }));\n }), Cn = (\"undefined\" != typeof document && document, \"undefined\" != typeof window ? window : {\n addEventListener: function addEventListener() {},\n removeEventListener: function removeEventListener() {}\n }), On = F5(function(r, n, e, t, u) {\n for(var a = r.length, c = u.length >= n + a, _$i = 0; c && a > _$i;){\n var _$s = u.charCodeAt(n);\n c = r[_$i++] === u[n++] && (10 === _$s ? (e++, t = 1) : (t++, 55296 == (63488 & _$s) ? r[_$i++] === u[n++] : 1));\n }\n return o(c ? n : -1, e, t);\n }), Un = F3(function(r, n, e) {\n return e.length > n ? 55296 == (63488 & e.charCodeAt(n)) ? r(e.substr(n, 2)) ? n + 2 : -1 : r(e[n]) ? \"\\n\" === e[n] ? -2 : n + 1 : -1 : -1;\n }), Pn = F3(function(r, n, e) {\n return e.charCodeAt(n) === r;\n }), Mn = F2(function(r, n) {\n for(; n.length > r; r++){\n var _$e = n.charCodeAt(r);\n if (48 > _$e || _$e > 57) return r;\n }\n return r;\n }), Bn = F3(function(r, n, e) {\n for(var t = 0; e.length > n; n++){\n var u = e.charCodeAt(n) - 48;\n if (0 > u || u >= r) break;\n t = r * t + u;\n }\n return i(n, t);\n }), Gn = F2(function(r, n) {\n for(var _$e = 0; n.length > r; r++){\n var t = n.charCodeAt(r);\n if (48 > t || t > 57) {\n if (65 > t || t > 70) {\n if (97 > t || t > 102) break;\n _$e = 16 * _$e + t - 87;\n } else _$e = 16 * _$e + t - 55;\n } else _$e = 16 * _$e + t - 48;\n }\n return i(r, _$e);\n }), jn = F5(function(r, n, e, t, u) {\n for(var a = u.indexOf(r, n), c = 0 > a ? u.length : a + r.length; c > n;){\n var _$i = u.charCodeAt(n++);\n 10 === _$i ? (t = 1, e++) : (t++, 55296 == (63488 & _$i) && n++);\n }\n return o(a, e, t);\n }), Hn = F3(function(r, n, e) {\n return fr(function(t) {\n function u(r) {\n t(n(e.c0.a(r)));\n }\n var a = new XMLHttpRequest;\n a.addEventListener(\"error\", function() {\n u(Vc);\n }), a.addEventListener(\"timeout\", function() {\n u(Yc);\n }), a.addEventListener(\"load\", function() {\n u(function(r, n) {\n return A2(n.status >= 200 && 300 > n.status ? Fc : jc, function(r) {\n return {\n cM: r.responseURL,\n dl: r.status,\n dm: r.statusText,\n w: Fn(r.getAllResponseHeaders())\n };\n }(n), r(n.response));\n }(e.c0.b, a));\n }), zc(e.aA) && function(r, n, e) {\n n.upload.addEventListener(\"progress\", function(t) {\n n.c || br(A2(Kc, r, i(e, Wc({\n dk: t.loaded,\n cB: t.total\n }))));\n }), n.addEventListener(\"progress\", function(t) {\n n.c || br(A2(Kc, r, i(e, _c({\n de: t.loaded,\n cB: t.lengthComputable ? fe(t.total) : le\n }))));\n });\n }(r, a, e.aA.a);\n try {\n a.open(e.ae, e.cM, !0);\n } catch (r) {\n return u(Hc(e.cM));\n }\n return function(r, n) {\n for(var _$e = n.w; _$e.b; _$e = _$e.b)r.setRequestHeader(_$e.a.a, _$e.a.b);\n r.timeout = n.Y.a || 0, r.responseType = n.c0.d, r.withCredentials = n.cV;\n }(a, e), e.aa.a && a.setRequestHeader(\"Content-Type\", e.aa.a), a.send(e.aa.b), function() {\n a.c = !0, a.abort();\n };\n });\n });\n function Fn(r) {\n if (!r) return Zt;\n for(var n = Zt, _$e = r.split(\"\\r\\n\"), t = _$e.length; t--;){\n var u = _$e[t], a = u.indexOf(\": \");\n if (a > 0) {\n var c = u.substring(0, a), _$i = u.substring(a + 2);\n n = A3(Eu, c, function(r) {\n return fe(zc(r) ? _$i + \", \" + r.a : _$i);\n }, n);\n }\n }\n return n;\n }\n var Vn = F3(function(r, n, e) {\n return {\n $: 0,\n d: r,\n b: n,\n a: e\n };\n }), _n = F2(function(r, n) {\n return {\n $: 0,\n d: n.d,\n b: n.b,\n a: function a(e) {\n return r(n.a(e));\n }\n };\n }), Wn = F2(function(r, n) {\n return {\n $: 0,\n a: r,\n b: n\n };\n }), Yn = G(function(r) {\n return \"undefined\" != typeof File && r instanceof File ? oe(r) : tr(\"a FILE\", r);\n }), zn = F2(function(r, n) {\n var _$e = \"g\";\n r.ce && (_$e += \"m\"), r.bE && (_$e += \"i\");\n try {\n return fe(RegExp(n, _$e));\n } catch (r) {\n return le;\n }\n }), Kn = F2(function(r, n) {\n return null !== n.match(r);\n }), Xn = F3(function(r, n, e) {\n for(var t, u = [], a = 0, c = e, _$i = n.lastIndex, o = -1; a++ < r && (t = n.exec(c)) && o != n.lastIndex;){\n for(var _$s = t.length - 1, f = Array(_$s); _$s > 0;){\n var _$l = t[_$s];\n f[--_$s] = _$l ? fe(_$l) : le;\n }\n u.push(A4(oh, t[0], t.index, a, g(f))), o = n.lastIndex;\n }\n return n.lastIndex = _$i, g(u);\n }), Jn = function Jn(r) {\n return {\n $: 2,\n a: r\n };\n }, Qn = 1, Zn = 2, re = 0, ne = p, ee = F3(function(r, n, e) {\n for(;;){\n if (-2 === e.$) return n;\n var t = e.d, u = r, a = A3(r, e.b, e.c, A3(ee, r, n, e.e));\n r = u, n = a, e = t;\n }\n }), te = function te(r) {\n return A3(ee, F3(function(r, n, e) {\n return A2(ne, i(r, n), e);\n }), d, r);\n }, ue = function ue(r) {\n return {\n $: 1,\n a: r\n };\n }, ae = F2(function(r, n) {\n return {\n $: 3,\n a: r,\n b: n\n };\n }), ce = F2(function(r, n) {\n return {\n $: 0,\n a: r,\n b: n\n };\n }), ie = F2(function(r, n) {\n return {\n $: 1,\n a: r,\n b: n\n };\n }), oe = function oe(r) {\n return {\n $: 0,\n a: r\n };\n }, se = function se(r) {\n return {\n $: 2,\n a: r\n };\n }, fe = function fe(r) {\n return {\n $: 0,\n a: r\n };\n }, le = {\n $: 1\n }, de = C, be = f, pe = cr, ge = B, ve = F2(function(r, n) {\n return A2(I, r, v(n));\n }), he = F2(function(r, n) {\n return g(A2(q, r, n));\n }), me = function me(r) {\n return A2(ve, \"\\n \", A2(he, \"\\n\", r));\n }, ye = F3(function(r, n, e) {\n for(;;){\n if (!e.b) return n;\n var t = e.b, u = r, a = A2(r, e.a, n);\n r = u, n = a, e = t;\n }\n }), we = function we(r) {\n return A3(ye, F2(function(r, n) {\n return n + 1;\n }), 0, r);\n }, $e = h, Ee = E, Te = F3(function(r, n, e) {\n for(;;){\n if (a(r, n) >= 1) return e;\n var t = r, u = n - 1, c = A2(ne, n, e);\n r = t, n = u, e = c;\n }\n }), Ae = F2(function(r, n) {\n return A3(Te, r, n, d);\n }), Le = F2(function(r, n) {\n return A3($e, r, A2(Ae, 0, we(n) - 1), n);\n }), xe = function xe(r) {\n var n = r.charCodeAt(0);\n return 55296 > n || n > 56319 ? n : 1024 * (n - 55296) + r.charCodeAt(1) - 56320 + 65536;\n }, Se = function Se(r) {\n var n = xe(r);\n return n >= 97 && 122 >= n;\n }, Ne = function Ne(r) {\n var n = xe(r);\n return 90 >= n && n >= 65;\n }, ke = function ke(r) {\n var n = xe(r);\n return 57 >= n && n >= 48;\n }, Re = function Re(r) {\n return Se(r) || Ne(r) || ke(r);\n }, qe = function qe(r) {\n return A3(ye, ne, d, r);\n }, Ie = function Ie(r) {\n var n = r.charCodeAt(0);\n return isNaN(n) ? le : fe(55296 > n || n > 56319 ? i(r[0], r.slice(1)) : i(r[0] + r[1], r.slice(2)));\n }, De = F2(function(r, n) {\n return \"\\n\\n(\" + ge(r + 1) + \") \" + me(Ce(n));\n }), Ce = function Ce(r) {\n return A2(Oe, r, d);\n }, Oe = F2(function(r, n) {\n r: for(;;)switch(r.$){\n case 0:\n var _$e = r.a, t = r.b, u = function() {\n var _$r = Ie(_$e);\n if (1 === _$r.$) return !1;\n var _$n, t = _$r.a, u = t.b;\n return (Se(_$n = t.a) || Ne(_$n)) && A2(de, Re, u);\n }();\n r = t, n = A2(ne, u ? \".\" + _$e : \"['\" + _$e + \"']\", n);\n continue r;\n case 1:\n t = r.b;\n var a = \"[\" + ge(r.a) + \"]\";\n r = t, n = A2(ne, a, n);\n continue r;\n case 2:\n var c = r.a;\n if (c.b) {\n if (c.b.b) {\n var _$i = (n.b ? \"The Json.Decode.oneOf at json\" + A2(ve, \"\", qe(n)) : \"Json.Decode.oneOf\") + \" failed in the following \" + ge(we(c)) + \" ways:\";\n return A2(ve, \"\\n\\n\", A2(ne, _$i, A2(Le, De, c)));\n }\n r = t = c.a;\n continue r;\n }\n return \"Ran into a Json.Decode.oneOf with no possibilities\" + (n.b ? \" at json\" + A2(ve, \"\", qe(n)) : \"!\");\n default:\n var o = r.a, _$s = r.b;\n return (_$i = n.b ? \"Problem with the value at json\" + A2(ve, \"\", qe(n)) + \":\\n\\n \" : \"Problem with the given value:\\n\\n\") + me(A2(pe, 4, _$s)) + \"\\n\\n\" + o;\n }\n }), Ue = 32, Pe = F4(function(r, n, e, t) {\n return {\n $: 0,\n a: r,\n b: n,\n c: e,\n d: t\n };\n }), Me = [], Be = A, Ge = F2(function(r, n) {\n return S(n) / S(r);\n }), je = function je(r) {\n return r;\n }, He = Be(A2(Ge, 2, Ue)), Fe = A4(Pe, 0, He, Me, Me), Ve = y, _e = F2(function(r, n) {\n return r(n);\n }), We = F2(function(r, n) {\n return n(r);\n }), Ye = u, ze = L, Ke = function Ke(r) {\n return r.length;\n }, Xe = F2(function(r, n) {\n return a(r, n) > 0 ? r : n;\n }), Je = w, Qe = F2(function(r, n) {\n for(;;){\n var _$e = A2(Je, Ue, r), t = _$e.b, u = A2(ne, {\n $: 0,\n a: _$e.a\n }, n);\n if (!t.b) return qe(u);\n r = t, n = u;\n }\n }), Ze = function Ze(r) {\n return r.a;\n }, rt = F2(function(r, n) {\n for(;;){\n var _$e = Be(n / Ue);\n if (1 === _$e) return A2(Je, Ue, r).a;\n r = A2(Qe, r, d), n = _$e;\n }\n }), nt = F2(function(r, n) {\n if (n.k) {\n var _$e = n.k * Ue, t = ze(A2(Ge, Ue, _$e - 1)), u = r ? qe(n.q) : n.q, a = A2(rt, u, n.k);\n return A4(Pe, Ke(n.l) + _$e, A2(Xe, 5, t * He), a, n.l);\n }\n return A4(Pe, Ke(n.l), He, Me, n.l);\n }), et = F5(function(r, n, e, t, u) {\n for(;;){\n if (0 > n) return A2(nt, !1, {\n q: t,\n k: e / Ue | 0,\n l: u\n });\n var a = {\n $: 1,\n a: A3(Ve, Ue, n, r)\n };\n n -= Ue, t = A2(ne, a, t);\n }\n }), tt = F2(function(r, n) {\n if (r > 0) {\n var _$e = r % Ue;\n return A5(et, n, r - _$e - Ue, r, d, A3(Ve, _$e, r - _$e, n));\n }\n return Fe;\n }), ut = function ut(r) {\n return !r.$;\n }, at = z, ct = K, it = function it(r) {\n return {\n $: 0,\n a: r\n };\n }, ot = function ot(r) {\n switch(r.$){\n case 0:\n return 0;\n case 1:\n return 1;\n case 2:\n return 2;\n default:\n return 3;\n }\n }, st = function st(r) {\n return r;\n }, ft = F6(function(r, n, e, t, u, a) {\n return {\n bY: a,\n b$: n,\n dd: t,\n cj: e,\n cp: r,\n cr: u\n };\n }), lt = O, dt = function dt(r) {\n return r.length;\n }, bt = D, pt = F2(function(r, n) {\n return 1 > r ? n : A3(bt, r, dt(n), n);\n }), gt = M, vt = function vt(r) {\n return \"\" === r;\n }, ht = F2(function(r, n) {\n return 1 > r ? \"\" : A3(bt, 0, r, n);\n }), mt = function mt(r) {\n for(var n = 0, _$e = r.charCodeAt(0), t = 43 == _$e || 45 == _$e ? 1 : 0, u = t; r.length > u; ++u){\n var a = r.charCodeAt(u);\n if (48 > a || a > 57) return le;\n n = 10 * n + a - 48;\n }\n return u == t ? le : fe(45 == _$e ? -n : n);\n }, yt = F5(function(r, n, e, t, u) {\n if (vt(u) || A2(lt, \"@\", u)) return le;\n var a = A2(gt, \":\", u);\n if (a.b) {\n if (a.b.b) return le;\n var c = a.a, _$i = mt(A2(pt, c + 1, u));\n if (1 === _$i.$) return le;\n var o = _$i;\n return fe(A6(ft, r, A2(ht, c, u), o, n, e, t));\n }\n return fe(A6(ft, r, u, le, n, e, t));\n }), wt = F4(function(r, n, e, t) {\n if (vt(t)) return le;\n var u = A2(gt, \"/\", t);\n if (u.b) {\n var a = u.a;\n return A5(yt, r, A2(pt, a, t), n, e, A2(ht, a, t));\n }\n return A5(yt, r, \"/\", n, e, t);\n }), $t = F3(function(r, n, e) {\n if (vt(e)) return le;\n var t = A2(gt, \"?\", e);\n if (t.b) {\n var u = t.a;\n return A4(wt, r, fe(A2(pt, u + 1, e)), n, A2(ht, u, e));\n }\n return A4(wt, r, le, n, e);\n }), Et = F2(function(r, n) {\n if (vt(n)) return le;\n var _$e = A2(gt, \"#\", n);\n if (_$e.b) {\n var t = _$e.a;\n return A3($t, r, fe(A2(pt, t + 1, n)), A2(ht, t, n));\n }\n return A3($t, r, le, n);\n }), Tt = U, At = function At(r) {\n return A2(Tt, \"http://\", r) ? A2(Et, 0, A2(pt, 7, r)) : A2(Tt, \"https://\", r) ? A2(Et, 1, A2(pt, 8, r)) : le;\n }, Lt = function Lt() {\n for(;;);\n }, xt = sr, St = xt(0), Nt = F4(function(r, n, e, t) {\n if (t.b) {\n var u = t.a, a = t.b;\n if (a.b) {\n var c = a.a, _$i = a.b;\n if (_$i.b) {\n var o = _$i.a, _$s = _$i.b;\n if (_$s.b) {\n var f = _$s.b;\n return A2(r, u, A2(r, c, A2(r, o, A2(r, _$s.a, e > 500 ? A3(ye, r, n, qe(f)) : A4(Nt, r, n, e + 1, f)))));\n }\n return A2(r, u, A2(r, c, A2(r, o, n)));\n }\n return A2(r, u, A2(r, c, n));\n }\n return A2(r, u, n);\n }\n return n;\n }), kt = F3(function(r, n, e) {\n return A4(Nt, r, n, 0, e);\n }), Rt = F2(function(r, n) {\n return A3(kt, F2(function(n, e) {\n return A2(ne, r(n), e);\n }), d, n);\n }), qt = lr, It = F2(function(r, n) {\n return A2(qt, function(n) {\n return xt(r(n));\n }, n);\n }), Dt = F3(function(r, n, e) {\n return A2(qt, function(n) {\n return A2(qt, function(e) {\n return xt(A2(r, n, e));\n }, e);\n }, n);\n }), Ct = function Ct(r) {\n return A3(kt, Dt(ne), xt(d), r);\n }, Ot = Ar, Ut = F2(function(r, n) {\n var _$e = n;\n return pr(A2(qt, Ot(r), _$e));\n }), Pt = F3(function(r, n) {\n return A2(It, function() {\n return 0;\n }, Ct(A2(Rt, Ut(r), n)));\n }), Mt = F3(function() {\n return xt(0);\n }), Bt = F2(function(r, n) {\n return A2(It, r, n);\n });\n $r.Task = Er(St, Pt, Mt, Bt);\n var Gt, jt, Ht = xr(\"Task\"), Ft = F2(function(r, n) {\n return Ht(A2(It, r, n));\n }), Vt = {\n $: 0\n }, _t = \"/assets/bannerx1400.jpeg\", Wt = F5(function(r, n, e, t, u) {\n return {\n bn: u,\n bp: e,\n bU: r,\n a: n,\n br: t\n };\n }), Yt = _, zt = X, Kt = V, Xt = A6(zt, Wt, A2(Yt, \"env\", Kt), A2(Yt, \"lang\", Kt), A2(Yt, \"domainURL\", Kt), A2(Yt, \"logoURL\", Kt), A2(Yt, \"bannerURL\", Kt)), Jt = Q, Qt = {\n $: -2\n }, Zt = Qt, ru = F2(function(r, n) {\n return n.$ ? le : fe(r(n.a));\n }), nu = F2(function(r, n) {\n return n.$ ? r : n.a;\n }), eu = function eu(r) {\n return A2(nu, r, function(r) {\n try {\n return fe(decodeURIComponent(r));\n } catch (r) {\n return le;\n }\n }(r));\n }, tu = F2(function(r, n) {\n return 1 > r ? n : A3(bt, 0, -r, n);\n }), uu = P, au = F3(function(r, n, e) {\n return n(r(e));\n }), cu = F2(function(r, n) {\n return fe(A2(ne, r, A2(nu, d, n)));\n }), iu = F3(function(r, n, e) {\n return A2(ve, n, A2(he, r, e));\n }), ou = A2(au, A2(iu, \"+\", \" \"), eu), su = c, fu = F2(function(r, n) {\n r: for(;;){\n if (-2 === n.$) return le;\n var _$e = n.c, t = n.d, u = n.e;\n switch(A2(su, r, n.b)){\n case 0:\n n = t;\n continue r;\n case 1:\n return fe(_$e);\n default:\n n = u;\n continue r;\n }\n }\n }), lu = F5(function(r, n, e, t, u) {\n return {\n $: -1,\n a: r,\n b: n,\n c: e,\n d: t,\n e: u\n };\n }), du = F5(function(r, n, e, t, u) {\n if (-1 !== u.$ || u.a) {\n if (-1 !== t.$ || t.a || -1 !== t.d.$ || t.d.a) return A5(lu, r, n, e, t, u);\n var a = t.d;\n return c = t.e, A5(lu, 0, t.b, t.c, A5(lu, 1, a.b, a.c, a.d, a.e), A5(lu, 1, n, e, c, u));\n }\n var c, _$i = u.b, o = u.c, _$s = u.d, f = u.e;\n return -1 !== t.$ || t.a ? A5(lu, r, _$i, o, A5(lu, 0, n, e, t, _$s), f) : A5(lu, 0, n, e, A5(lu, 1, t.b, t.c, t.d, c = t.e), A5(lu, 1, _$i, o, _$s, f));\n }), bu = F3(function(r, n, e) {\n if (-2 === e.$) return A5(lu, 0, r, n, Qt, Qt);\n var t = e.a, u = e.b, a = e.c, c = e.d, _$i = e.e;\n switch(A2(su, r, u)){\n case 0:\n return A5(du, t, u, a, A3(bu, r, n, c), _$i);\n case 1:\n return A5(lu, t, u, n, c, _$i);\n default:\n return A5(du, t, u, a, c, A3(bu, r, n, _$i));\n }\n }), pu = F3(function(r, n, e) {\n var t = A3(bu, r, n, e);\n return -1 !== t.$ || t.a ? t : A5(lu, 1, t.b, t.c, t.d, t.e);\n }), gu = function gu(r) {\n if (-1 === r.$ && -1 === r.d.$ && -1 === r.e.$) {\n if (-1 !== r.e.d.$ || r.e.d.a) {\n var n = r.d, _$e = r.e;\n return c = _$e.b, _$i = _$e.c, t = _$e.d, f = _$e.e, A5(lu, 1, r.b, r.c, A5(lu, 0, n.b, n.c, n.d, n.e), A5(lu, 0, c, _$i, t, f));\n }\n var t, u = r.d, a = r.e, c = a.b, _$i = a.c, o = (t = a.d).d, _$s = t.e, f = a.e;\n return A5(lu, 0, t.b, t.c, A5(lu, 1, r.b, r.c, A5(lu, 0, u.b, u.c, u.d, u.e), o), A5(lu, 1, c, _$i, _$s, f));\n }\n return r;\n }, vu = function vu(r) {\n if (-1 === r.$ && -1 === r.d.$ && -1 === r.e.$) {\n if (-1 !== r.d.d.$ || r.d.d.a) {\n var n = r.d, _$e = r.e;\n return _$s = _$e.b, f = _$e.c, _$l = _$e.d, d = _$e.e, A5(lu, 1, t = r.b, u = r.c, A5(lu, 0, n.b, n.c, n.d, _$i = n.e), A5(lu, 0, _$s, f, _$l, d));\n }\n var t = r.b, u = r.c, a = r.d, c = a.d, _$i = a.e, o = r.e, _$s = o.b, f = o.c, _$l = o.d, d = o.e;\n return A5(lu, 0, a.b, a.c, A5(lu, 1, c.b, c.c, c.d, c.e), A5(lu, 1, t, u, _$i, A5(lu, 0, _$s, f, _$l, d)));\n }\n return r;\n }, hu = F7(function(r, n, e, t, u, a, c) {\n if (-1 !== a.$ || a.a) {\n r: for(;;){\n if (-1 === c.$ && 1 === c.a) {\n if (-1 === c.d.$) {\n if (1 === c.d.a) return vu(n);\n break r;\n }\n return vu(n);\n }\n break r;\n }\n return n;\n }\n return A5(lu, e, a.b, a.c, a.d, A5(lu, 0, t, u, a.e, c));\n }), mu = function mu1(r) {\n if (-1 === r.$ && -1 === r.d.$) {\n var n = r.a, _$e = r.b, t = r.c, u = r.d, a = u.d, c = r.e;\n if (1 === u.a) {\n if (-1 !== a.$ || a.a) {\n var _$i = gu(r);\n if (-1 === _$i.$) {\n var o = _$i.e;\n return A5(du, _$i.a, _$i.b, _$i.c, mu(_$i.d), o);\n }\n return Qt;\n }\n return A5(lu, n, _$e, t, mu(u), c);\n }\n return A5(lu, n, _$e, t, mu(u), c);\n }\n return Qt;\n }, yu = F2(function(r, n) {\n if (-2 === n.$) return Qt;\n var _$e = n.a, t = n.b, u = n.c, c = n.d, _$i = n.e;\n if (0 > a(r, t)) {\n if (-1 === c.$ && 1 === c.a) {\n var o = c.d;\n if (-1 !== o.$ || o.a) {\n var _$s = gu(n);\n if (-1 === _$s.$) {\n var f = _$s.e;\n return A5(du, _$s.a, _$s.b, _$s.c, A2(yu, r, _$s.d), f);\n }\n return Qt;\n }\n return A5(lu, _$e, t, u, A2(yu, r, c), _$i);\n }\n return A5(lu, _$e, t, u, A2(yu, r, c), _$i);\n }\n return A2(wu, r, A7(hu, r, n, _$e, t, u, c, _$i));\n }), wu = F2(function(r, n) {\n if (-1 === n.$) {\n var t = n.a, u = n.b, a = n.c, c = n.d, _$i = n.e;\n if (e(r, u)) {\n var o = function(r) {\n for(;;){\n if (-1 !== r.$ || -1 !== r.d.$) return r;\n r = r.d;\n }\n }(_$i);\n return -1 === o.$ ? A5(du, t, o.b, o.c, c, mu(_$i)) : Qt;\n }\n return A5(du, t, u, a, c, A2(yu, r, _$i));\n }\n return Qt;\n }), $u = F2(function(r, n) {\n var _$e = A2(yu, r, n);\n return -1 !== _$e.$ || _$e.a ? _$e : A5(lu, 1, _$e.b, _$e.c, _$e.d, _$e.e);\n }), Eu = F3(function(r, n, e) {\n var t = n(A2(fu, r, e));\n return t.$ ? A2($u, r, e) : A3(pu, r, t.a, e);\n }), Tu = F2(function(r, n) {\n var _$e = A2(he, \"=\", r);\n if (_$e.b) {\n if (\"\" !== _$e.a || _$e.b.b) {\n var t = _$e.b;\n return A3(Eu, ou(_$e.a), cu(ou(A2(ve, \"=\", t))), n);\n }\n return n;\n }\n return n;\n }), Au = A2(au, he(\"&\"), A2(kt, Tu, Zt)), Lu = function Lu(r) {\n var n, _$e, t;\n return {\n bY: A2(ru, eu, r.bY),\n dd: (n = r.dd, t = function(r) {\n return A2(uu, \"/\", r) ? A2(tu, 1, r) : r;\n }(A2(Tt, \"/\", _$e = n) ? A2(pt, 1, _$e) : _$e), vt(t) ? d : A2(Rt, eu, A2(he, \"/\", t))),\n bd: A2(nu, Zt, A2(ru, Au, r.cr))\n };\n }, xu = \"/assets/logox512.jpeg\", Su = {\n $: 8\n }, Nu = {\n $: 3\n }, ku = {\n $: 0\n }, Ru = function Ru(r) {\n return {\n $: 7,\n a: r\n };\n }, qu = function qu(r) {\n return {\n $: 6,\n a: r\n };\n }, Iu = {\n $: 4\n }, Du = {\n $: 9\n }, Cu = function Cu(r) {\n return {\n $: 2,\n a: r\n };\n }, Ou = {\n $: 1\n }, Uu = {\n $: 10\n }, Pu = function Pu(r) {\n var n = r.dd;\n r: for(;;){\n if (!n.b) return fe(ku);\n if (n.b.b) {\n if (n.b.b.b) {\n if (\"order\" !== n.a || n.b.b.b.b) break r;\n switch(n.b.b.a){\n case \"success\":\n return fe(qu(n.b.a));\n case \"failure\":\n return fe(Ru(n.b.a));\n default:\n break r;\n }\n } else switch(n.a){\n case \"product\":\n return fe(Cu(n.b.a));\n case \"order\":\n return fe({\n $: 5,\n a: n.b.a\n });\n default:\n break r;\n }\n } else switch(n.a){\n case \"products\":\n return fe(Ou);\n case \"cart\":\n return fe(Nu);\n case \"orders\":\n return fe(Iu);\n case \"auth\":\n return fe(Su);\n case \"privacy-policy\":\n return fe(Du);\n case \"terms-and-conditions\":\n return fe(Uu);\n default:\n break r;\n }\n }\n return le;\n }, Mu = {\n $: 20\n }, Bu = function Bu(r) {\n return {\n $: 24,\n a: r\n };\n }, Gu = {\n $: 22\n }, ju = {\n $: 16\n }, Hu = function Hu(r) {\n return {\n $: 21,\n a: r\n };\n }, Fu = function Fu(r) {\n return {\n $: 25,\n a: r\n };\n }, Vu = function Vu(r) {\n return {\n $: 23,\n a: r\n };\n }, _u = function _u(r) {\n return {\n $: 19,\n a: r\n };\n }, Wu = function Wu(r) {\n return {\n $: 17,\n a: r\n };\n }, Yu = function Yu(r) {\n return {\n $: 28,\n a: r\n };\n }, zu = F3(function(r, n, e) {\n return {\n M: r,\n co: n,\n cq: e\n };\n }), Ku = {\n $: 1\n }, Xu = F4(function(r, n, e, t) {\n return {\n bC: n,\n bN: r,\n bR: e,\n cI: t\n };\n }), Ju = function Ju(r) {\n return {\n $: 4,\n a: r\n };\n }, Qu = function Qu(r) {\n return {\n $: 3,\n a: r\n };\n }, Zu = F2(function(r, n) {\n return n.$ ? le : r(n.a);\n }), ra = Sr, na = F8(function(r, n, e, t, u, a, c, i) {\n return {\n a1: c,\n M: r,\n a7: t,\n at: i,\n ba: n,\n bf: a,\n bk: u,\n bl: e\n };\n }), ea = F3(function(r, n, e) {\n return {\n ca: n,\n cs: e,\n ct: r\n };\n }), ta = ct(We), ua = Y, aa = function aa(r) {\n return {\n $: 1,\n a: r\n };\n }, ca = F, ia = F3(function(r, n, e) {\n var t, u = {\n $: 11,\n g: g([\n A2(at, fe, n),\n (t = e, {\n $: 5,\n c: t\n })\n ])\n }, a = A2(Yt, r, ca);\n return A2(ua, function(r) {\n var _$n = A2(Jt, a, r);\n if (_$n.$) return it(e);\n var t = A2(Jt, u, _$n.a);\n return t.$ ? aa(Ce(t.a)) : it(t.a);\n }, ca);\n }), oa = F3(function(r, n, e) {\n return ta(A3(ia, r, n, e));\n }), sa = A4(oa, \"reference\", Kt, le, A4(oa, \"link\", Kt, le, A4(oa, \"remarks\", Kt, le, it(ea)))), fa = F2(function(r, n) {\n return ta(A2(Yt, r, n));\n }), la = j, da = F9(function(r, n, e, t, u, a, c, i, o) {\n return {\n a0: t,\n M: r,\n a6: u,\n at: o,\n bb: a,\n bc: i,\n bg: c,\n bh: e,\n bj: n\n };\n }), ba = H, pa = A2(ua, function(r) {\n switch(r){\n case \"Accessories\":\n return it(0);\n case \"Bags\":\n return it(1);\n case \"Fashion\":\n return it(2);\n case \"Jewellery And Watches\":\n return it(3);\n case \"Kids\":\n return it(4);\n case \"Luxury Brands\":\n return it(5);\n case \"Miscellaneous\":\n return it(6);\n case \"Wallet And Small Items\":\n return it(7);\n default:\n return aa(\"Unknown type: \" + r);\n }\n }, Kt), ga = function ga(r) {\n return {\n $: 3,\n b: r\n };\n }, va = F3(function(r, n, e) {\n return {\n bM: r,\n cb: e,\n cL: n\n };\n }), ha = F2(function(r, n) {\n return {\n $: 1,\n a: r,\n b: n\n };\n }), ma = F3(function(r, n, e) {\n return {\n $: 0,\n a: r,\n b: n,\n c: e\n };\n }), ya = F2(function(r, n) {\n var _$e = n;\n return function(n) {\n var t = _$e(n);\n if (1 === t.$) return A2(ha, t.a, t.b);\n var u = t.a, a = t.c, c = r(t.b)(a);\n if (1 === c.$) {\n var _$i = c.a;\n return A2(ha, u || _$i, c.b);\n }\n return _$i = c.a, A3(ma, u || _$i, c.b, c.c);\n };\n }), wa = ya, $a = F2(function(r, n) {\n return {\n $: 1,\n a: r,\n b: n\n };\n }), Ea = F4(function(r, n, e, t) {\n return {\n bI: n,\n cY: t,\n cl: e,\n cy: r\n };\n }), Ta = {\n $: 0\n }, Aa = F2(function(r, n) {\n return A2($a, Ta, A4(Ea, r.cy, r.bI, n, r.e));\n }), La = (Gt = {\n $: 10\n }, function La(r) {\n return e(dt(r.b), r.c) ? A3(ma, !1, 0, r) : A2(ha, !1, A2(Aa, r, Gt));\n }), xa = Un, Sa = F5(function(r, n, t, u, c) {\n for(;;){\n var _$i = A3(xa, r, n, c.b);\n if (e(_$i, -1)) return A3(ma, 0 > a(c.c, n), 0, {\n bI: u,\n e: c.e,\n g: c.g,\n c: n,\n cy: t,\n b: c.b\n });\n e(_$i, -2) ? (n += 1, t += 1, u = 1) : (n = _$i, u += 1);\n }\n }), Na = function Na(r) {\n return function(n) {\n return A5(Sa, r, n.c, n.cy, n.bI, n);\n };\n }, ka = Na, Ra = F2(function(r) {\n return r;\n }), qa = F2(function(r, n) {\n var _$e = n;\n return function(n) {\n var t = _$e(n);\n if (1 === t.$) return A2(ha, t.a, t.b);\n var u = t.b, a = t.c;\n return A3(ma, t.a, A2(r, A3(bt, n.c, a.c, n.b), u), a);\n };\n }), Ia = function Ia(r) {\n return A2(qa, Ra, r);\n }, Da = Ia, Ca = function Ca(r) {\n return function(r) {\n return function(n) {\n return A2(ha, !1, A2(Aa, n, r));\n };\n }({\n $: 12,\n a: r\n });\n }, Oa = x, Ua = function Ua(r) {\n return function(n) {\n return A3(ma, !1, r, n);\n };\n }, Pa = Ua, Ma = function Ma(r) {\n if (0 === r.length || /[\\sxbo]/.test(r)) return le;\n var n = +r;\n return n == n ? fe(n) : le;\n }, Ba = A2(wa, function(r) {\n if (dt(r) > 9) return Ca(\"Expected at most 9 digits, but got \" + ge(dt(r)));\n var n = Ma(\"0.\" + r);\n return n.$ ? Ca('Invalid float: \"' + r + '\"') : Pa(Oa(1e3 * n.a));\n }, Da(ka(ke))), Ga = st, ja = F6(function(r, n, e, t, u, a) {\n return Ga(r + 60 * n * 60000 + 60 * (e - a) * 1e3 + 1e3 * t + u);\n }), Ha = F3(function(r, n, e) {\n var t = n, u = e;\n return function(n) {\n var _$e = t(n);\n if (1 === _$e.$) return A2(ha, _$e.a, _$e.b);\n var a = _$e.a, c = _$e.b, _$i = u(_$e.c);\n if (1 === _$i.$) {\n var o = _$i.a;\n return A2(ha, a || o, _$i.b);\n }\n o = _$i.a;\n var _$s = _$i.c;\n return A3(ma, a || o, A2(r, c, _$i.b), _$s);\n };\n }), Fa = F2(function(r, n) {\n return A3(Ha, Ra, r, n);\n }), Va = Fa, _a = F2(function(r, n) {\n return A3(Ha, _e, r, n);\n }), Wa = _a, Ya = F2(function(r, n) {\n return {\n $: 2,\n a: r,\n b: n\n };\n }), za = F3(function(r, n, e) {\n r: for(;;){\n if (e.b) {\n var t = e.b, u = (0, e.a)(r);\n if (u.$) {\n var a;\n if ((a = u).a) return a;\n n = A2(Ya, n, a.b), e = t;\n continue r;\n }\n return u;\n }\n return A2(ha, !1, n);\n }\n }), Ka = function Ka(r) {\n return function(n) {\n return A3(za, n, Ta, r);\n };\n }, Xa = Ka, Ja = function Ja(r) {\n return {\n $: 1,\n a: r\n };\n }, Qa = function Qa(r) {\n return {\n $: 0,\n a: r\n };\n }, Za = k, rc = {\n $: 11\n }, nc = F2(function(r, n) {\n return function(t) {\n var u = A3(xa, r, t.c, t.b);\n return e(u, -1) ? A2(ha, !1, A2(Aa, t, n)) : e(u, -2) ? A3(ma, !0, 0, {\n bI: 1,\n e: t.e,\n g: t.g,\n c: t.c + 1,\n cy: t.cy + 1,\n b: t.b\n }) : A3(ma, !0, 0, {\n bI: t.bI + 1,\n e: t.e,\n g: t.g,\n c: u,\n cy: t.cy,\n b: t.b\n });\n };\n }), ec = function ec(r) {\n return A2(nc, r, rc);\n }, tc = F4(function(r, n, e, t) {\n for(;;){\n var u = e(n)(t);\n if (u.$) return a = u.a, A2(ha, r || a, u.b);\n var a = u.a, c = u.b, _$i = u.c;\n if (c.$) return A3(ma, r || a, c.a, _$i);\n r = r || a, n = c.a, t = _$i;\n }\n }), uc = F2(function(r, n) {\n return function(e) {\n return A4(tc, !1, r, n, e);\n };\n }), ac = F2(function(r, n) {\n var _$e = n;\n return function(n) {\n var t = _$e(n);\n if (t.$) return A2(ha, t.a, t.b);\n var u = t.c;\n return A3(ma, t.a, r(t.b), u);\n };\n }), cc = ac, ic = function ic(r) {\n return {\n $: 1,\n a: r\n };\n }, oc = function oc(r) {\n return {\n $: 0,\n a: r\n };\n }, sc = function sc(r) {\n return r.$ ? ic(r.a) : oc(r.a);\n }, fc = F2(function(r, n) {\n return A2(uc, r, function(r) {\n return A2(cc, sc, n(r));\n });\n }), lc = function lc(r) {\n return A2(fc, \"\", function(n) {\n if (e(dt(n), r)) {\n var t = mt(n);\n return t.$ ? Ca('Invalid integer: \"' + n + '\"') : A2(cc, Ja, Pa(t.a));\n }\n return A2(cc, function(r) {\n return Qa(A2(Za, n, r));\n }, Da(ec(ke)));\n });\n }, dc = F2(function(r, n) {\n return {\n $: 0,\n a: r,\n b: n\n };\n }), bc = On, pc = function pc(r) {\n return !r;\n }, gc = function gc(r) {\n var n = r.a, t = r.b, u = !vt(n);\n return function(r) {\n var a = A5(bc, n, r.c, r.cy, r.bI, r.b), c = a.a, _$i = a.b, o = a.c;\n return e(c, -1) ? A2(ha, !1, A2(Aa, r, t)) : A3(ma, u, 0, {\n bI: o,\n e: r.e,\n g: r.g,\n c: c,\n cy: _$i,\n b: r.b\n });\n };\n }, vc = function vc(r) {\n return gc(A2(dc, r, {\n $: 8,\n a: r\n }));\n }, hc = function hc(r) {\n return Ca(\"Invalid day: \" + ge(r));\n }, mc = T, yc = function yc(r) {\n return !(A2(mc, 4, r) || !A2(mc, 100, r) && A2(mc, 400, r));\n }, wc = function wc(r) {\n var n = r - 1;\n return (n / 4 | 0) - (n / 100 | 0) + (n / 400 | 0);\n }, $c = function $c(r) {\n var n = r.a, _$e = r.b, t = r.c;\n if (0 > t) return hc(t);\n var u = function u(r) {\n var u = 31536e6 * (n - 1970), a = 864e5 * ((3 > _$e || !yc(n) ? t - 1 : t) + (wc(n) - wc(1970)));\n return Pa(r + u + a);\n };\n switch(_$e){\n case 1:\n return t > 31 ? hc(t) : u(0);\n case 2:\n return t > 29 || 29 === t && !yc(n) ? hc(t) : u(26784e5);\n case 3:\n return t > 31 ? hc(t) : u(50976e5);\n case 4:\n return t > 30 ? hc(t) : u(7776e6);\n case 5:\n return t > 31 ? hc(t) : u(10368e6);\n case 6:\n return t > 30 ? hc(t) : u(130464e5);\n case 7:\n return t > 31 ? hc(t) : u(156384e5);\n case 8:\n return t > 31 ? hc(t) : u(183168e5);\n case 9:\n return t > 30 ? hc(t) : u(209952e5);\n case 10:\n return t > 31 ? hc(t) : u(235872e5);\n case 11:\n return t > 30 ? hc(t) : u(262656e5);\n case 12:\n return t > 31 ? hc(t) : u(288576e5);\n default:\n return Ca('Invalid month: \"' + ge(_$e) + '\"');\n }\n }, Ec = A2(wa, $c, A2(Wa, A2(Wa, A2(Wa, Pa(F3(function(r, n, e) {\n return o(r, n, e);\n })), lc(4)), Xa(g([\n A2(Wa, A2(Va, Pa(st), vc(\"-\")), lc(2)),\n lc(2)\n ]))), Xa(g([\n A2(Wa, A2(Va, Pa(st), vc(\"-\")), lc(2)),\n lc(2)\n ])))), Tc = (jt = F3(function(r, n, e) {\n return r * (60 * n) + e;\n }), A2(Wa, Pa(st), Xa(g([\n A2(cc, function() {\n return 0;\n }, vc(\"Z\")),\n A2(Wa, A2(Wa, A2(Wa, Pa(jt), Xa(g([\n A2(cc, function() {\n return 1;\n }, vc(\"+\")),\n A2(cc, function() {\n return -1;\n }, vc(\"-\"))\n ]))), lc(2)), Xa(g([\n A2(Wa, A2(Va, Pa(st), vc(\":\")), lc(2)),\n lc(2),\n Pa(0)\n ]))),\n A2(Va, Pa(0), La)\n ])))), Ac = A2(wa, function(r) {\n return Xa(g([\n A2(Wa, A2(Wa, A2(Wa, A2(Wa, A2(Wa, A2(Va, Pa(ja(r)), vc(\"T\")), lc(2)), Xa(g([\n A2(Wa, A2(Va, Pa(st), vc(\":\")), lc(2)),\n lc(2)\n ]))), Xa(g([\n A2(Wa, A2(Va, Pa(st), vc(\":\")), lc(2)),\n lc(2),\n Pa(0)\n ]))), Xa(g([\n A2(Wa, A2(Va, Pa(st), vc(\".\")), Ba),\n Pa(0)\n ]))), A2(Va, Tc, La)),\n A2(Va, Pa(A6(ja, r, 0, 0, 0, 0, 0)), La)\n ]));\n }, Ec), Lc = F3(function(r, n, e) {\n return {\n bI: n,\n cl: e,\n cy: r\n };\n }), xc = function xc(r) {\n return A3(Lc, r.cy, r.bI, r.cl);\n }, Sc = F2(function(r, n) {\n r: for(;;)switch(r.$){\n case 0:\n return n;\n case 1:\n var _$e = r.b;\n r = r.a, n = A2(ne, _$e, n);\n continue r;\n default:\n var t = r.b;\n r = r.a, n = A2(Sc, t, n);\n continue r;\n }\n }), Nc = F2(function(r, n) {\n var _$e = r({\n bI: 1,\n e: d,\n g: 1,\n c: 0,\n cy: 1,\n b: n\n });\n return _$e.$ ? ue(A2(Sc, _$e.b, d)) : oe(_$e.b);\n }), kc = F2(function(r, n) {\n var _$e = A2(Nc, r, n);\n return _$e.$ ? ue(A2(Rt, xc, _$e.a)) : oe(_$e.a);\n }), Rc = function Rc(r) {\n var n = function(r) {\n return A2(kc, Ac, r);\n }(r);\n return n.$ ? aa(\"Invalid ISO date: \" + r) : it(n.a);\n }, qc = A2(ua, Rc, Kt), Ic = A3(fa, \"liveness\", ba, A3(fa, \"updated\", qc, A3(fa, \"created\", qc, it(va)))), Dc = A3(fa, \"tax\", ba, A3(fa, \"discount\", la, A3(fa, \"amount\", la, A3(fa, \"currency\", A2(ua, function(r) {\n switch(r){\n case \"GBP\":\n return it(0);\n case \"HKD\":\n return it(1);\n case \"USD\":\n return it(2);\n default:\n return aa(\"Unknown type: \" + r);\n }\n }, Kt), it(Xu))))), Cc = A3(fa, \"metadata\", Ic, A3(fa, \"published\", ba, A3(fa, \"stock\", la, A3(fa, \"price\", Dc, A3(fa, \"images\", ga(Kt), A3(fa, \"categories\", ga(pa), A3(fa, \"summary\", Kt, A3(fa, \"title\", Kt, A3(fa, \"id\", Kt, it(da)))))))))), Oc = A3(fa, \"quantity\", la, A4(oa, \"product\", Cc, le, A3(fa, \"id\", Kt, it(zu)))), Uc = A2(ua, function(r) {\n switch(r){\n case \"ongoing\":\n return it(0);\n case \"pending\":\n return it(1);\n case \"ordered\":\n return it(2);\n case \"refunded\":\n return it(3);\n case \"cancelled\":\n return it(4);\n case \"shipped\":\n return it(5);\n case \"delivered\":\n return it(6);\n default:\n return aa(\"Unknown type: \" + r);\n }\n }, Kt), Pc = F9(function(r, n, e, t, u, a, c, i, o) {\n return {\n bB: u,\n bS: e,\n M: r,\n b3: i,\n cf: n,\n ch: t,\n cG: o,\n cJ: a,\n cN: c\n };\n }), Mc = A4(oa, \"postcode\", Kt, le, A3(fa, \"country\", Kt, A4(oa, \"county\", Kt, le, A3(fa, \"city\", Kt, A4(oa, \"line_2\", Kt, le, A3(fa, \"line_1\", Kt, it(F6(function(r, n, e, t, u, a) {\n return {\n bG: e,\n bK: u,\n bL: t,\n b8: r,\n b9: n,\n ck: a\n };\n })))))))), Bc = A3(fa, \"suspended\", ba, A3(fa, \"is_admin\", ba, A3(fa, \"verified\", ba, A4(oa, \"token\", Kt, le, A4(oa, \"address\", Mc, le, A3(fa, \"phone\", Kt, A3(fa, \"email\", Kt, A3(fa, \"name\", Kt, A3(fa, \"id\", Kt, it(Pc)))))))))), Gc = A3(fa, \"metadata\", Ic, A4(oa, \"checkout\", sa, le, A3(fa, \"state\", Uc, A3(fa, \"total\", Dc, A3(fa, \"items\", ga(Oc), A4(oa, \"user\", Bc, le, A3(fa, \"owner\", Kt, A3(fa, \"id\", Kt, it(na))))))))), jc = F2(function(r, n) {\n return {\n $: 3,\n a: r,\n b: n\n };\n }), Hc = function Hc(r) {\n return {\n $: 0,\n a: r\n };\n }, Fc = F2(function(r, n) {\n return {\n $: 4,\n a: r,\n b: n\n };\n }), Vc = {\n $: 2\n }, _c = function _c(r) {\n return {\n $: 1,\n a: r\n };\n }, Wc = function Wc(r) {\n return {\n $: 0,\n a: r\n };\n }, Yc = {\n $: 1\n }, zc = function zc(r) {\n return !r.$;\n }, Kc = Lr, Xc = {\n $: 0\n }, Jc = F3(function(r, n, e) {\n var t = r(n);\n return t.$ ? e : A2(ne, t.a, e);\n }), Qc = F2(function(r, n) {\n return A3(kt, Jc(r), d, n);\n }), Zc = F2(function(r, n) {\n return {\n $: 0,\n a: r,\n b: n\n };\n }), ri = Zc, ni = Qc(function(r) {\n var n = r.b;\n return A2(ru, ri(r.a), n);\n }), ei = F2(function(r, n) {\n r: for(;;){\n if (r > 0) {\n if (n.b) {\n r -= 1, n = n.b;\n continue r;\n }\n return n;\n }\n return n;\n }\n }), ti = F2(function(r, n) {\n return A2(ei, 1, A2(he, \"/\", A3(ye, F2(function(r, n) {\n return A3(iu, \"{\" + r.a + \"}\", r.b, n);\n }), r, n)));\n }), ui = F2(function(r, n) {\n return {\n $: 0,\n a: r,\n b: n\n };\n }), ai = function ai(r) {\n return encodeURIComponent(r);\n }, ci = F2(function(r, n) {\n return A2(ui, ai(r), ai(n));\n }), ii = Qc(function(r) {\n var n = r.b;\n return A2(ru, ci(r.a), n);\n }), oi = F7(function(r, n, e, t, u, a, c) {\n return {\n al: \"https://shop4mum.com\",\n aa: A2(nu, Xc, a),\n aH: c,\n w: ni(u),\n ae: r,\n aN: A2(ti, n, e),\n aO: ii(t),\n Y: le,\n aA: le\n };\n }), si = F2(function(r, n) {\n var _$e = n;\n return s(_$e, {\n w: A2(ne, A2(ri, \"Authorization\", \"Bearer \" + r), _$e.w)\n });\n }), fi = F2(function(r, n) {\n return A2(si, n, A7(oi, \"POST\", \"/api/cart/{id}/checkout\", g([\n i(\"id\", r)\n ]), d, d, le, Gc));\n }), li = g([\n 0,\n 1,\n 2\n ]), di = J, bi = F2(function(r, n) {\n return A3(kt, F2(function(n, e) {\n return r(n) ? A2(ne, n, e) : e;\n }), d, n);\n }), pi = function pi(r) {\n return 1 === r.$ ? {\n $: 2,\n a: r.a\n } : Qu(r.a);\n }, gi = F2(function(r, n) {\n return A2(si, n, A7(oi, \"GET\", \"/api/cart/{id}\", g([\n i(\"id\", r)\n ]), d, d, le, Gc));\n }), vi = F2(function(r, n) {\n return A2(si, n, A7(oi, \"GET\", \"/api/cart\", d, g([\n i(\"q\", A2(ru, st, r))\n ]), d, le, ga(Gc)));\n }), hi = function hi(r) {\n return A2(si, r, A7(oi, \"GET\", \"/api/cart/latest\", d, d, d, le, ga(Gc)));\n }, mi = F2(function(r, n) {\n return A2(si, n, A7(oi, \"GET\", \"/api/product/{id}\", g([\n i(\"id\", r)\n ]), d, d, le, Cc));\n }), yi = F2(function(r, n) {\n return A2(si, n, A7(oi, \"GET\", \"/api/product\", d, g([\n i(\"q\", A2(ru, st, r))\n ]), d, le, ga(Cc)));\n }), wi = function wi(r) {\n return r.b ? fe(r.a) : le;\n }, $i = function $i(r) {\n return r.toLowerCase();\n }, Ei = F2(function(r, n) {\n if (!r) return n;\n var _$e = $i(n);\n switch(_$e){\n case \"out of stock\":\n return \"\\u73FE\\u6B63\\u7F3A\\u8CA8\";\n case \"- shop4mum. copyright 2024. all rights reserved.\":\n return \"- Shop4Mum. \\u7248\\u6B0A\\u6240\\u6709 2024 \\u5E74. \\u4FDD\\u7559\\u6240\\u6709\\u6B0A\\u5229.\";\n case \"at shop4mum, we go the extra mile to ensure our customers' complete satisfaction. each item is painstakingly inspected before dispatch, and we take any defects or concerns seriously. it's this dedication to excellence that keeps our customers returning, confident in their purchases and eager to engage in meaningful conversations about life.\":\n return \"\\u5728Shop4Mum\\uFF0C\\u6211\\u5011\\u7AED\\u76E1\\u6240\\u80FD\\u78BA\\u4FDD\\u5BA2\\u6236\\u5B8C\\u5168\\u6EFF\\u610F\\u3002\\u6BCF\\u4EF6\\u5546\\u54C1\\u5728\\u767C\\u9001\\u4E4B\\u524D\\u90FD\\u7D93\\u904E\\u4ED4\\u7D30\\u6AA2\\u67E5\\uFF0C\\u6211\\u5011\\u8A8D\\u771F\\u5C0D\\u5F85\\u4EFB\\u4F55\\u7F3A\\u9677\\u6216\\u7591\\u616E\\u3002\\u6B63\\u662F\\u9019\\u7A2E\\u5353\\u8D8A\\u7684\\u5949\\u737B\\u7CBE\\u795E\\u4F7F\\u6211\\u5011\\u7684\\u5BA2\\u6236\\u7E7C\\u7E8C\\u8CFC\\u7269\\uFF0C\\u5C0D\\u4ED6\\u5011\\u7684\\u8CFC\\u7269\\u5145\\u6EFF\\u4FE1\\u5FC3\\uFF0C\\u4E26\\u6E34\\u671B\\u53C3\\u8207\\u6709\\u610F\\u7FA9\\u7684\\u751F\\u6D3B\\u5C0D\\u8A71\\u3002\";\n case \"please note: you can only select single-currency products to the cart\":\n return \"\\u8ACB\\u6CE8\\u610F\\uFF1A\\u95A3\\u4E0B\\u53EA\\u53EF\\u52A0\\u5165\\u540C\\u4E00\\u8CA8\\u5E63\\u7684\\u5546\\u54C1\\u5230\\u8CFC\\u7269\\u8ECA\";\n case \"buy now\":\n return \"\\u7ACB\\u5373\\u8CFC\\u8CB7\";\n case \"buy\":\n return \"\\u8CFC\\u8CB7\";\n case \"cancel\":\n return \"\\u53D6\\u6D88\";\n case \"cancelled\":\n return \"\\u5DF2\\u53D6\\u6D88\";\n case \"close\":\n return \"\\u95DC\\u9589\";\n case \"confirm order\":\n return \"\\u78BA\\u8A8D\\u8A02\\u55AE\";\n case \"create\":\n return \"\\u5275\\u5EFA\";\n case \"deliver\":\n return \"\\u905E\\u9001\";\n case \"delivered\":\n return \"\\u5DF2\\u905E\\u9001\";\n case \"direction\":\n return \"\\u65B9\\u5411\";\n case \"edit\":\n return \"\\u7DE8\\u8F2F\";\n case \"go to payment now\":\n return \"\\u7ACB\\u5373\\u524D\\u5F80\\u4ED8\\u6B3E\";\n case \"happy shopping!\":\n return \"\\u8CFC\\u7269\\u6109\\u5FEB\\uFF01\";\n case \"home\":\n return \"\\u9996\\u9801\";\n case \"latest\":\n return \"\\u6700\\u65B0\";\n case \"order history\":\n return \"\\u8A02\\u55AE\\u6B77\\u53F2\";\n case \"ordered\":\n return \"\\u5DF2\\u4E0B\\u8A02\\u55AE\";\n case \"pick categories\":\n return \"\\u9078\\u64C7\\u985E\\u5225\";\n case \"please refresh the page\":\n return \"\\u8ACB\\u5237\\u65B0\\u9801\\u9762\";\n case \"please sign in to continue or refresh the page\":\n return \"\\u8ACB\\u767B\\u9304\\u4EE5\\u7E7C\\u7E8C\\u6216\\u5237\\u65B0\\u9801\\u9762\";\n case \"pricing\":\n return \"\\u50F9\\u683C\";\n case \"privacy policy\":\n return \"\\u96B1\\u79C1\\u653F\\u7B56\";\n case \"promotional products are coming, please check on our site again at a later time\":\n return \"\\u4FC3\\u92B7\\u7522\\u54C1\\u5373\\u5C07\\u63A8\\u51FA\\uFF0C\\u8ACB\\u7A0D\\u5F8C\\u518D\\u6B21\\u67E5\\u770B\\u6211\\u5011\\u7684\\u7DB2\\u7AD9\";\n case \"refund\":\n return \"\\u9000\\u6B3E\";\n case \"refunded\":\n return \"\\u5DF2\\u9000\\u6B3E\";\n case \"revert to ordered\":\n return \"\\u6062\\u5FA9\\u70BA\\u5DF2\\u4E0B\\u8A02\\u55AE\";\n case \"save your new product before uploading images\":\n return \"\\u5728\\u4E0A\\u50B3\\u5716\\u7247\\u4E4B\\u524D\\u4FDD\\u5B58\\u60A8\\u7684\\u65B0\\u7522\\u54C1\";\n case \"search\":\n return \"\\u641C\\u7D22\";\n case \"ship\":\n return \"\\u904B\\u9001\";\n case \"shipped\":\n return \"\\u5DF2\\u904B\\u9001\";\n case \"sign in with facebook\":\n return \"\\u4F7F\\u7528Facebook\\u767B\\u9304\";\n case \"sign in with google\":\n return \"\\u4F7F\\u7528Google\\u767B\\u9304\";\n case \"sign in\":\n return \"\\u767B\\u9304\";\n case \"sign out\":\n return \"\\u767B\\u51FA\";\n case \"sign in to manage your account and continue your checkout\":\n return \"\\u767B\\u9304\\u4EE5\\u7BA1\\u7406\\u60A8\\u7684\\u5E33\\u6236\\u4E26\\u7E7C\\u7E8C\\u7D50\\u5E33\";\n case \"start shopping\":\n return \"\\u958B\\u59CB\\u8CFC\\u7269\";\n case \"terms & conditions\":\n case \"terms and conditions\":\n return \"\\u689D\\u6B3E\\u548C\\u689D\\u4EF6\";\n case \"update\":\n return \"\\u66F4\\u65B0\";\n case \"view order\":\n return \"\\u67E5\\u770B\\u8A02\\u55AE\";\n case \"welcome to shop4mum uk\":\n return \"\\u6B61\\u8FCE\\u4F86\\u5230\\u82F1\\u570Bshop4mum\";\n case \"welcome to shop4mum, your trusted online emporium for quality products with a personal touch. our journey began back in 2014 as a modest facebook page, and today, we're proud to serve customers not only in the uk but also in hong kong and around the world. our secret to growth? a steadfast commitment to sincere and dedicated customer service.\":\n return \"\\u6B61\\u8FCE\\u4F86\\u5230Shop4Mum\\uFF0C\\u60A8\\u503C\\u5F97\\u4FE1\\u8CF4\\u7684\\u7DDA\\u4E0A\\u5546\\u5E97\\uFF0C\\u63D0\\u4F9B\\u500B\\u4EBA\\u5316\\u7684\\u9AD8\\u54C1\\u8CEA\\u7522\\u54C1\\u3002\\u6211\\u5011\\u7684\\u65C5\\u7A0B\\u59CB\\u65BC 2014 \\u5E74\\uFF0C\\u7576\\u6642\\u53EA\\u662F\\u4E00\\u500B\\u8B19\\u865B\\u7684Facebook\\u5C08\\u9801\\uFF0C\\u5982\\u4ECA\\uFF0C\\u6211\\u5011\\u81EA\\u8C6A\\u5730\\u70BA\\u4E0D\\u50C5\\u5728\\u82F1\\u570B\\uFF0C\\u9084\\u5728\\u9999\\u6E2F\\u548C\\u4E16\\u754C\\u5404\\u5730\\u7684\\u5BA2\\u6236\\u63D0\\u4F9B\\u670D\\u52D9\\u3002\\u6211\\u5011\\u6210\\u9577\\u7684\\u79D8\\u8A23\\uFF1F\\u5805\\u5B9A\\u4E0D\\u79FB\\u5730\\u81F4\\u529B\\u65BC\\u771F\\u8AA0\\u548C\\u5C08\\u6CE8\\u7684\\u5BA2\\u6236\\u670D\\u52D9\\u3002\";\n case \"what truly distinguishes us is the genuine connections we build with our customers. over the years, many have become more than just valued patrons \\u2013 they've become cherished friends. join the shop4mum family today, and experience the difference of a shopping experience where quality, care, and community seamlessly intertwine.\":\n return \"\\u771F\\u6B63\\u8B93\\u6211\\u5011\\u8207\\u773E\\u4E0D\\u540C\\u7684\\u662F\\uFF0C\\u6211\\u5011\\u8207\\u5BA2\\u6236\\u5EFA\\u7ACB\\u7684\\u771F\\u6B63\\u9023\\u63A5\\u3002\\u591A\\u5E74\\u4F86\\uFF0C\\u8A31\\u591A\\u4EBA\\u4E0D\\u50C5\\u50C5\\u662F\\u73CD\\u8CB4\\u7684\\u9867\\u5BA2 - \\u4ED6\\u5011\\u5DF2\\u7D93\\u6210\\u70BA\\u73CD\\u611B\\u7684\\u670B\\u53CB\\u3002\\u4ECA\\u5929\\u52A0\\u5165shop4mum\\u7684\\u5927\\u5BB6\\u5EAD\\uFF0C\\u9AD4\\u9A57\\u8CFC\\u7269\\u9AD4\\u9A57\\u7684\\u4E0D\\u540C\\u4E4B\\u8655\\uFF0C\\u54C1\\u8CEA\\u3001\\u95DC\\u61F7\\u548C\\u793E\\u7FA4\\u7121\\u7E2B\\u4EA4\\u878D\\u3002\";\n case \"your cart is empty\":\n return \"\\u60A8\\u7684\\u8CFC\\u7269\\u8ECA\\u662F\\u7A7A\\u7684\";\n case \"cart\":\n case \"carts\":\n return \"\\u8CFC\\u7269\\u8ECA\";\n case \"user\":\n case \"users\":\n return \"\\u7528\\u6236\";\n case \"product\":\n case \"products\":\n return \"\\u5546\\u54C1\";\n case \"order\":\n case \"orders\":\n return \"\\u8CFC\\u7269\\u55AE\";\n case \"product summary\":\n return \"\\u5546\\u54C1\\u6982\\u8981\";\n case \"cart summary\":\n return \"\\u8CFC\\u7269\\u8ECA\\u6982\\u8981\";\n case \"order success\":\n return \"\\u8CFC\\u7269\\u6210\\u529F\";\n case \"order failure\":\n return \"\\u8CFC\\u7269\\u4E0D\\u6210\\u529F\";\n case \"unable to reach the server, try again\":\n return \"\\u7121\\u6CD5\\u9023\\u63A5\\u4F3A\\u670D\\u5668\\uFF0C\\u8ACB\\u91CD\\u8A66\\u3002\";\n case \"network error, check your internet connection\":\n return \"\\u7DB2\\u8DEF\\u932F\\u8AA4\\uFF0C\\u8ACB\\u6AA2\\u67E5\\u60A8\\u7684\\u7DB2\\u8DEF\\u9023\\u7DDA\\u3002\";\n case \"the server had a problem, try again later\":\n return \"\\u4F3A\\u670D\\u5668\\u51FA\\u73FE\\u554F\\u984C\\uFF0C\\u8ACB\\u7A0D\\u5F8C\\u518D\\u8A66\\u3002\";\n case \"there are conflicts, adding product with mixed currency is not allowed\":\n return \"\\u5B58\\u5728\\u885D\\u7A81\\uFF0C\\u4E0D\\u5141\\u8A31\\u6DFB\\u52A0\\u6DF7\\u5408\\u8CA8\\u5E63\\u7684\\u7522\\u54C1\\u3002\";\n case \"verify the information you provided and try again\":\n return \"\\u8ACB\\u6838\\u5C0D\\u60A8\\u63D0\\u4F9B\\u7684\\u8CC7\\u8A0A\\uFF0C\\u7136\\u5F8C\\u91CD\\u8A66\\u3002\";\n case \"your access or permission is denied\":\n return \"\\u60A8\\u7684\\u5B58\\u53D6\\u6216\\u6B0A\\u9650\\u88AB\\u62D2\\u7D55\\u3002\";\n case \"please sign in first and try again\":\n return \"\\u8ACB\\u5148\\u767B\\u5165\\uFF0C\\u7136\\u5F8C\\u91CD\\u8A66\\u3002\";\n case \"verify your information and try again\":\n return \"\\u8ACB\\u6838\\u5C0D\\u60A8\\u7684\\u8CC7\\u8A0A\\uFF0C\\u7136\\u5F8C\\u91CD\\u8A66\\u3002\";\n case \"unknown error\":\n return \"\\u672A\\u77E5\\u932F\\u8AA4\\u3002\";\n default:\n var t = _$e;\n return A2(Tt, \"cart [\", t) ? A3(iu, \"cart\", \"\\u9078\\u8CFC\", t) : n;\n }\n }), Ti = F2(function(r, n) {\n var _$e = function() {\n switch(n.$){\n case 0:\n return \"The URL \" + n.a + \" was invalid\";\n case 1:\n return \"Unable to reach the server, try again\";\n case 2:\n return \"Network error, check your internet connection\";\n case 3:\n switch(n.a){\n case 500:\n return \"The server had a problem, try again later\";\n case 409:\n return \"There are conflicts, adding product with mixed currency is not allowed\";\n case 422:\n return \"Verify the information you provided and try again\";\n case 403:\n return \"Your access or permission is denied\";\n case 401:\n return \"Please sign in first and try again\";\n case 400:\n return \"Verify your information and try again\";\n default:\n return \"Unknown error\";\n }\n default:\n return n.a;\n }\n }();\n return A2(Ei, r, _$e);\n }), Ai = function Ai(r) {\n return A2(Ft, Lt, fr(function() {\n try {\n Cn.location = r;\n } catch (r) {\n Br.location.reload(!1);\n }\n }));\n }, Li = F2(function(r, n) {\n for(;;){\n if (!n.b) return !1;\n var _$e = n.b;\n if (r(n.a)) return !0;\n n = _$e;\n }\n }), xi = F2(function(r, n) {\n return A2(Li, function(n) {\n return e(n, r);\n }, n);\n }), Si = ra(d), Ni = F3(function(r, n, e) {\n return r(n(e));\n }), ki = function ki(r) {\n return A3(ye, F2(function(r, n) {\n return A3(or, r.a, r.b, n);\n }), {}, r);\n }, Ri = A2(Ni, ki, Qc(st)), qi = ir, Ii = F3(function(r, n, e) {\n return fe(i(r, n(e)));\n }), Di = ir, Ci = function Ci(r) {\n switch(r){\n case 0:\n return \"Accessories\";\n case 1:\n return \"Bags\";\n case 2:\n return \"Fashion\";\n case 3:\n return \"Jewellery And Watches\";\n case 4:\n return \"Kids\";\n case 5:\n return \"Luxury Brands\";\n case 6:\n return \"Miscellaneous\";\n default:\n return \"Wallet And Small Items\";\n }\n }, Oi = A2(Ni, Di, Ci), Ui = function Ui(r) {\n switch(r){\n case 0:\n return \"GBP\";\n case 1:\n return \"HKD\";\n default:\n return \"USD\";\n }\n }, Pi = A2(Ni, Di, Ui), Mi = ir, Bi = A2(Ni, Ri, function(r) {\n return g([\n A3(Ii, \"currency\", Pi, r.bN),\n A3(Ii, \"amount\", Mi, r.bC),\n A3(Ii, \"discount\", Mi, r.bR),\n A3(Ii, \"tax\", qi, r.cI)\n ]);\n }), Gi = F2(function(r, n) {\n return A3(ye, function(r) {\n return F2(function(n, e) {\n return e.push(r(n)), e;\n });\n }(r), [], n);\n }), ji = A2(Ni, Ri, function(r) {\n return g([\n A3(Ii, \"title\", Di, r.bj),\n A3(Ii, \"summary\", Di, r.bh),\n A3(Ii, \"categories\", Gi(Oi), r.a0),\n A3(Ii, \"images\", Gi(Di), r.a6),\n A3(Ii, \"price\", Bi, r.bb),\n A3(Ii, \"stock\", Mi, r.bg),\n A3(Ii, \"published\", qi, r.bc)\n ]);\n }), Hi = function Hi(r) {\n return A2(Wn, \"application/json\", A2(pe, 0, r));\n }, Fi = F2(function(r, n) {\n return A2(si, n, A7(oi, \"POST\", \"/api/product\", d, d, d, A2(ru, Hi, fe(ji(r))), Cc));\n }), Vi = Dn, _i = function _i(r) {\n return A3(ye, F2(function(r, n) {\n return n + r.cq;\n }), 0, r);\n }, Wi = {\n $: 2\n }, Yi = {\n $: 1\n }, zi = F2(function(r, n) {\n var _$e = A2(di, r, n);\n return _$e.$ ? ue({\n $: 4,\n a: Ce(_$e.a)\n }) : oe(_$e.a);\n }), Ki = F2(function(r, n) {\n switch(n.$){\n case 0:\n return ue({\n $: 0,\n a: n.a\n });\n case 1:\n return ue(Yi);\n case 2:\n return ue(Wi);\n case 3:\n return ue(function(r) {\n return {\n $: 3,\n a: r\n };\n }(n.a.dl));\n default:\n var _$e = n.b;\n if (vt(_$e)) {\n var t = A2(di, r, \"{}\");\n return t.$ ? A2(zi, r, _$e) : oe(t.a);\n }\n return A2(zi, r, _$e);\n }\n }), Xi = F2(function(r, n) {\n return A3(Vn, \"\", st, A2(au, n, r));\n }), Ji = F2(function(r, n) {\n return n.$ ? ue(r(n.a)) : oe(n.a);\n }), Qi = F3(function(r, n, e) {\n return A2(Xi, n, A2(Ni, Ji(r), Ki(e)));\n }), Zi = function Zi(r) {\n return r.a + \"=\" + r.b;\n }, ro = F3(function(r, n, e) {\n return r + \"/\" + (A2(ve, \"/\", n) + function(r) {\n return r.b ? \"?\" + A2(ve, \"&\", A2(Rt, Zi, r)) : \"\";\n }(e));\n }), no = function no(r) {\n return {\n $: 1,\n a: r\n };\n }, eo = F2(function(r, n) {\n return {\n cv: r,\n cF: n\n };\n }), to = xt(A2(eo, Zt, d)), uo = function uo(r) {\n return fr(function(n) {\n var _$e = r.f;\n 2 === _$e.$ && _$e.c && _$e.c(), r.f = null, n(sr(0));\n });\n }, ao = pr, co = F3(function(r, n, e) {\n r: for(;;){\n if (n.b) {\n var t = n.a, u = n.b;\n if (t.$) {\n var a = t.a;\n return A2(qt, function(n) {\n var t = a.aA;\n return A3(co, r, u, 1 === t.$ ? e : A3(pu, t.a, n, e));\n }, ao(A3(Hn, r, Ot(r), a)));\n }\n var c = t.a, _$i = A2(fu, c, e);\n if (1 === _$i.$) {\n n = u;\n continue r;\n }\n return A2(qt, function() {\n return A3(co, r, u, A2($u, c, e));\n }, uo(_$i.a));\n }\n return xt(e);\n }\n }), io = F4(function(r, n, e, t) {\n return A2(qt, function(r) {\n return xt(A2(eo, r, e));\n }, A3(co, r, n, t.cv));\n }), oo = F4(function(r, n, t, u) {\n var a = u.b;\n return e(n, u.a) ? fe(A2(Ot, r, a(t))) : le;\n }), so = F3(function(r, n, e) {\n return A2(qt, function() {\n return xt(e);\n }, Ct(A2(Qc, A3(oo, r, n.a, n.b), e.cF)));\n }), fo = F2(function(r, n) {\n if (n.$) {\n var _$e = n.a;\n return no({\n cV: _$e.cV,\n aa: _$e.aa,\n c0: A2(_n, r, _$e.c0),\n w: _$e.w,\n ae: _$e.ae,\n Y: _$e.Y,\n aA: _$e.aA,\n cM: _$e.cM\n });\n }\n return {\n $: 0,\n a: n.a\n };\n }), lo = F2(function(r, n) {\n return {\n $: 0,\n a: r,\n b: n\n };\n }), bo = F2(function(r, n) {\n return A2(lo, n.a, A2(au, n.b, r));\n });\n $r.Http = Er(to, io, so, fo, bo);\n var po, go, vo, ho, mo, yo, wo, $o = xr(\"Http\"), Eo = (xr(\"Http\"), F2(function(r, n) {\n var _$e, t = n;\n return _$e = {\n aa: t.aa,\n c0: r(t.aH),\n w: t.w,\n ae: t.ae,\n Y: t.Y,\n aA: t.aA,\n cM: A3(ro, t.al, t.aN, t.aO)\n }, $o(no({\n cV: !1,\n aa: _$e.aa,\n c0: _$e.c0,\n w: _$e.w,\n ae: _$e.ae,\n Y: _$e.Y,\n aA: _$e.aA,\n cM: _$e.cM\n }));\n })), To = F3(function(r, n, e) {\n return A2(Eo, A2(Qi, r, n), e);\n }), Ao = F2(function(r, n) {\n return A3(To, st, r, n);\n }), Lo = Cr(\"setLang\", Di), xo = null, So = Cr(\"signInWithFacebook\", function() {\n return xo;\n }), No = Cr(\"signInWithGoogle\", function() {\n return xo;\n }), ko = Cr(\"signOut\", function() {\n return xo;\n }), Ro = m, qo = function qo(r) {\n return r ? \"zh\" : \"en\";\n }, Io = function Io(r) {\n return {\n bY: le,\n dd: r,\n bd: Zt\n };\n }, Do = function Do(r) {\n switch(r.$){\n case 0:\n return Io(d);\n case 1:\n return Io(g([\n \"products\"\n ]));\n case 2:\n return Io(g([\n \"product\",\n r.a\n ]));\n case 3:\n return Io(g([\n \"cart\"\n ]));\n case 4:\n return Io(g([\n \"orders\"\n ]));\n case 5:\n return Io(g([\n \"order\",\n r.a\n ]));\n case 6:\n return Io(g([\n \"order\",\n r.a,\n \"success\"\n ]));\n case 7:\n return Io(g([\n \"order\",\n r.a,\n \"failure\"\n ]));\n case 8:\n return Io(g([\n \"auth\"\n ]));\n case 9:\n return Io(g([\n \"privacy-policy\"\n ]));\n default:\n return Io(g([\n \"terms-and-conditions\"\n ]));\n }\n }, Co = R, Oo = N, Uo = function Uo(r) {\n return A2(Oo, r, \"\");\n }, Po = function Po(r) {\n switch(r){\n case \"/\":\n return \"%2F\";\n case \"?\":\n return \"%3F\";\n case \"#\":\n return \"%23\";\n default:\n return Uo(r);\n }\n }, Mo = function Mo(r) {\n switch(r){\n case \"=\":\n return \"%3D\";\n case \"&\":\n return \"%26\";\n case \"#\":\n return \"%23\";\n default:\n return Uo(r);\n }\n }, Bo = function Bo(r) {\n switch(r){\n case 0:\n return Po;\n case 1:\n return Mo;\n default:\n return Uo;\n }\n }, Go = function Go(r) {\n switch(r){\n case 0:\n default:\n return !1;\n case 1:\n return !0;\n }\n }, jo = F2(function(r, n) {\n switch(n){\n case \"\\x00\":\n return \"%00\";\n case \"\\x01\":\n return \"%01\";\n case \"\\x02\":\n return \"%02\";\n case \"\\x03\":\n return \"%03\";\n case \"\\x04\":\n return \"%04\";\n case \"\\x05\":\n return \"%05\";\n case \"\\x06\":\n return \"%06\";\n case \"\\x07\":\n return \"%07\";\n case \"\\b\":\n return \"%08\";\n case \"\t\":\n return \"%09\";\n case \"\\n\":\n return \"%0A\";\n case \"\\v\":\n return \"%0B\";\n case \"\\f\":\n return \"%0C\";\n case \"\\r\":\n return \"%0D\";\n case \"\\x0e\":\n return \"%0E\";\n case \"\\x0f\":\n return \"%0F\";\n case \"\\x10\":\n return \"%10\";\n case \"\\x11\":\n return \"%11\";\n case \"\\x12\":\n return \"%12\";\n case \"\\x13\":\n return \"%13\";\n case \"\\x14\":\n return \"%14\";\n case \"\\x15\":\n return \"%15\";\n case \"\\x16\":\n return \"%16\";\n case \"\\x17\":\n return \"%17\";\n case \"\\x18\":\n return \"%18\";\n case \"\\x19\":\n return \"%19\";\n case \"\\x1a\":\n return \"%1A\";\n case \"\\x1b\":\n return \"%1B\";\n case \"\\x1c\":\n return \"%1C\";\n case \"\\x1d\":\n return \"%1D\";\n case \"\\x1e\":\n return \"%1E\";\n case \"\\x1f\":\n return \"%1F\";\n case \" \":\n return Go(r) ? \"+\" : \"%20\";\n case \"%\":\n return \"%25\";\n case \"+\":\n return Go(r) ? \"%2B\" : \"+\";\n case \"\\xa0\":\n return \"%C2%A0\";\n case \"\\u1680\":\n return \"%E1%9A%80\";\n case \"\\u2000\":\n return \"%E2%80%80\";\n case \"\\u2001\":\n return \"%E2%80%81\";\n case \"\\u2002\":\n return \"%E2%80%82\";\n case \"\\u2003\":\n return \"%E2%80%83\";\n case \"\\u2004\":\n return \"%E2%80%84\";\n case \"\\u2005\":\n return \"%E2%80%85\";\n case \"\\u2006\":\n return \"%E2%80%86\";\n case \"\\u2007\":\n return \"%E2%80%87\";\n case \"\\u2008\":\n return \"%E2%80%88\";\n case \"\\u2009\":\n return \"%E2%80%89\";\n case \"\\u200A\":\n return \"%E2%80%8A\";\n case \"\\u2028\":\n return \"%E2%80%A8\";\n case \"\\u2029\":\n return \"%E2%80%A9\";\n case \"\\u202F\":\n return \"%E2%80%AF\";\n case \"\\u205F\":\n return \"%E2%81%9F\";\n case \"\\u3000\":\n return \"%E3%80%80\";\n case \"\\uFEFF\":\n return \"%EF%BB%BF\";\n default:\n return A2(Bo, r, n);\n }\n }), Ho = F2(function(r, n) {\n return A3(Co, F2(function(n, e) {\n return l(A2(jo, r, n), e);\n }), \"\", n);\n }), Fo = F2(function(r, n) {\n return n.b ? A3(kt, ne, n, r) : r;\n }), Vo = function Vo(r) {\n return A3(kt, Fo, d, r);\n }, _o = F2(function(r, n) {\n return Vo(A2(Rt, r, n));\n }), Wo = F3(function(r, n, e) {\n for(;;){\n if (-2 === e.$) return n;\n var t = e.e, u = r, a = A3(r, e.b, e.c, A3(Wo, r, n, e.d));\n r = u, n = a, e = t;\n }\n }), Yo = F2(function(r, n) {\n return A3(Wo, F3(function(n, e, t) {\n return A2(r, n, e) ? A3(pu, n, e, t) : t;\n }), Zt, n);\n }), zo = function zo(r) {\n return !r.b;\n }, Ko = function Ko(r) {\n var n = r.a;\n return A2(Rt, function(r) {\n return !vt(n) && vt(r) ? A2(Ho, 1, n) : A2(Ho, 1, n) + \"=\" + A2(Ho, 1, r);\n }, r.b);\n }, Xo = function Xo(r) {\n var n, _$e, t, u;\n return l((u = r.dd, \"/\" + A2(ve, \"/\", A2(Rt, Ho(0), u))), l((_$e = r.bd, -2 === (t = A2(Yo, F2(function(r, n) {\n return !zo(n);\n }), _$e)).$ ? \"\" : \"?\" + A2(ve, \"&\", A2(_o, Ko, te(t)))), (n = r.bY).$ ? \"\" : \"#\" + A2(Ho, 2, n.a)));\n }, Jo = A2(au, Do, Xo), Qo = F2(function(r, n) {\n return 1 === r.$ ? n : n + \":\" + ge(r.a);\n }), Zo = F3(function(r, n, e) {\n return 1 === n.$ ? e : l(e, l(r, n.a));\n }), rs = F2(function(r, n) {\n return ze(r / n);\n }), ns = F3(function(r, n, e) {\n for(;;){\n if (!e.b) return n + r;\n var t = e.a, u = e.b;\n if (0 > a(t.bw, n)) return n + t.c;\n e = u;\n }\n }), es = F2(function(r, n) {\n var _$e = r.b;\n return A3(ns, r.a, A2(rs, n, 6e4), _$e);\n }), ts = function ts(r) {\n var n = A2(rs, r, 1440) + 719468, _$e = (0 > n ? n - 146096 : n) / 146097 | 0, t = n - 146097 * _$e, u = (t - (t / 1460 | 0) + (t / 36524 | 0) - (t / 146096 | 0)) / 365 | 0, a = t - (365 * u + (u / 4 | 0) - (u / 100 | 0)), c = (5 * a + 2) / 153 | 0, _$i = c + (10 > c ? 3 : -9);\n return {\n bP: a - ((153 * c + 2) / 5 | 0) + 1,\n cd: _$i,\n cT: u + 400 * _$e + (_$i > 2 ? 0 : 1)\n };\n }, us = F2(function(r, n) {\n return ts(A2(es, r, n)).bP;\n }), as = F2(function(r, n) {\n return A2(mc, 24, A2(rs, A2(es, r, n), 60));\n }), cs = F2(function(r, n) {\n return A2(mc, 1e3, n);\n }), is = F2(function(r, n) {\n return A2(mc, 60, A2(es, r, n));\n }), os = F2(function(r, n) {\n switch(ts(A2(es, r, n)).cd){\n case 1:\n return 0;\n case 2:\n return 1;\n case 3:\n return 2;\n case 4:\n return 3;\n case 5:\n return 4;\n case 6:\n return 5;\n case 7:\n return 6;\n case 8:\n return 7;\n case 9:\n return 8;\n case 10:\n return 9;\n case 11:\n return 10;\n default:\n return 11;\n }\n }), ss = F3(function(r, n, e) {\n return r > 0 ? A3(ss, r >> 1, l(n, n), 1 & r ? l(e, n) : e) : e;\n }), fs = F2(function(r, n) {\n return A3(ss, r, n, \"\");\n }), ls = F3(function(r, n, e) {\n return l(A2(fs, r - dt(e), Uo(n)), e);\n }), ds = F2(function(r, n) {\n return A3(ls, r, \"0\", ge(n));\n }), bs = F2(function(r, n) {\n return A2(mc, 60, A2(rs, n, 1e3));\n }), ps = F2(function(r, n) {\n return ts(A2(es, r, n)).cT;\n }), gs = F2(function(r, n) {\n return {\n $: 0,\n a: r,\n b: n\n };\n }), vs = A2(gs, 0, d), hs = function hs(r) {\n return A2(ds, 4, A2(ps, vs, r)) + \"-\" + A2(ds, 2, function(r) {\n switch(r){\n case 0:\n return 1;\n case 1:\n return 2;\n case 2:\n return 3;\n case 3:\n return 4;\n case 4:\n return 5;\n case 5:\n return 6;\n case 6:\n return 7;\n case 7:\n return 8;\n case 8:\n return 9;\n case 9:\n return 10;\n case 10:\n return 11;\n default:\n return 12;\n }\n }(A2(os, vs, r))) + \"-\" + A2(ds, 2, A2(us, vs, r)) + \"T\" + A2(ds, 2, A2(as, vs, r)) + \":\" + A2(ds, 2, A2(is, vs, r)) + \":\" + A2(ds, 2, A2(bs, vs, r)) + \".\" + A2(ds, 3, A2(cs, vs, r)) + \"Z\";\n }, ms = A2(Ni, Di, hs), ys = function ys(r) {\n return g([\n A3(Ii, \"created\", ms, r.bM),\n A3(Ii, \"updated\", ms, r.cL),\n A3(Ii, \"liveness\", qi, r.cb)\n ]);\n }, ws = A2(Ni, Ri, ys), $s = function $s(r) {\n return g([\n A3(Ii, \"id\", Di, r.M),\n A3(Ii, \"title\", Di, r.bj),\n A3(Ii, \"summary\", Di, r.bh),\n A3(Ii, \"categories\", Gi(Oi), r.a0),\n A3(Ii, \"images\", Gi(Di), r.a6),\n A3(Ii, \"price\", Bi, r.bb),\n A3(Ii, \"stock\", Mi, r.bg),\n A3(Ii, \"published\", qi, r.bc),\n A3(Ii, \"metadata\", ws, r.at)\n ]);\n }, Es = A2(Ni, Ri, $s), Ts = F2(function(r, n) {\n return i(r, n);\n }), As = F2(function(r, n) {\n return ru(A2(Ni, Ts(r), n));\n }), Ls = function Ls(r) {\n return g([\n A3(Ii, \"id\", Di, r.M),\n A3(As, \"product\", Es, r.co),\n A3(Ii, \"quantity\", Mi, r.cq)\n ]);\n }, xs = A2(Ni, Ri, Ls), Ss = F3(function(r, n, e) {\n return A2(si, e, A7(oi, \"POST\", \"/api/cart/{id}/item\", g([\n i(\"id\", r)\n ]), d, d, A2(ru, Hi, fe(xs(n))), Gc));\n }), Ns = function Ns(r) {\n switch(r){\n case 0:\n return \"ongoing\";\n case 1:\n return \"pending\";\n case 2:\n return \"ordered\";\n case 3:\n return \"refunded\";\n case 4:\n return \"cancelled\";\n case 5:\n return \"shipped\";\n default:\n return \"delivered\";\n }\n }, ks = F3(function(r, n, e) {\n return A2(si, e, A7(oi, \"POST\", \"/api/cart/{id}/update/{state}\", g([\n i(\"id\", r),\n i(\"state\", A2(st, Ns, n))\n ]), d, d, le, Gc));\n }), Rs = F3(function(r, n, e) {\n return A2(si, e, A7(oi, \"POST\", \"/api/product/{id}/update\", g([\n i(\"id\", r)\n ]), d, d, A2(ru, Hi, fe(ji(n))), Cc));\n }), qs = Wn, Is = F3(function(r, n, e) {\n return A2(si, e, A7(oi, \"POST\", \"/api/product/{id}/images\", g([\n i(\"id\", r)\n ]), d, d, fe(A2(Wn, \"\", function(r) {\n for(var _$n = new FormData; r.b; r = r.b){\n var _$e = r.a;\n _$n.append(_$e.a, _$e.b);\n }\n return _$n;\n }(A2(Rt, function(r) {\n return A2(qs, \"uploads\", r);\n }, n)))), Cc));\n }), Ds = F2(function(r, n) {\n return s(n, {\n al: r\n });\n }), Cs = F2(function(r, n) {\n return n.$ ? r : n.a;\n }), Os = F2(function(r, n) {\n r: for(;;){\n var t = A2(nu, \"\", A2(Zu, function(r) {\n return r.cJ;\n }, n.bl)), u = F2(function(r, e) {\n return A2(Ao, A2(au, pi, r), A2(Ds, n.aG.bp, e));\n });\n switch(r.$){\n case 0:\n return i(s(n, {\n z: \"\"\n }), Si);\n case 1:\n var a = r.a;\n return i(n, a.$ ? Ai(a.a) : A2(Vi, n.T, A3(Zo, \"#\", (J = a.a).bY, A3(Zo, \"?\", J.cr, l(A2(Qo, J.cj, l(J.cp ? \"https://\" : \"http://\", J.b$)), J.dd)))));\n case 2:\n var c = Pu(Lu(r.a)), o = A2(nu, !1, A2(ru, function(r) {\n return r.b3;\n }, n.bl)), f = function() {\n if (n.ak) {\n n: for(; !c.$;)switch(c.a.$){\n case 1:\n return A2(Os, ju, n);\n case 2:\n if (\"new\" === (_$e = c.a.a)) {\n var _$r = {\n a0: d,\n M: \"new\",\n a6: d,\n at: {\n bM: Ga(0),\n cb: !0,\n cL: Ga(0)\n },\n bb: A4(Xu, 0, 0, 0, !1),\n bc: !1,\n bg: -1,\n bh: \"\",\n bj: \"\"\n };\n return o ? i(s(n, {\n ab: !0,\n co: Qu(_$r)\n }), Si) : A2(Os, Ju(Su), n);\n }\n return A2(Os, {\n $: 18,\n a: _$e\n }, n);\n case 4:\n return A2(Os, o ? Gu : Ju(Su), n);\n case 8:\n return A2(Os, Gu, n);\n case 5:\n var _$e = c.a.a;\n return A2(Os, o ? Bu(_$e) : Ju(Su), n);\n case 6:\n return A2(Os, Bu(_$e = c.a.a), n);\n case 3:\n return A2(Os, Mu, n);\n default:\n break n;\n }\n return i(n, Si);\n }\n return i(n, Si);\n }(), _$b = f.b;\n return i(s(f.a, {\n E: c\n }), _$b);\n case 3:\n var p = r.a;\n return i(s(n, {\n a: p\n }), Lo(qo(p)));\n case 4:\n return i(n, A2(Vi, n.T, Jo(c = r.a)));\n case 5:\n return i(n, No(0));\n case 6:\n return i(n, So(0));\n case 7:\n var v = A2(Jt, Bc, r.a);\n if (v.$) return i(s(n, {\n ak: !0,\n bl: le\n }), A2(Vi, n.T, Jo(A2(nu, Su, n.E))));\n var h = v.a;\n return i(s(n, {\n ak: !0,\n bl: fe(h)\n }), e(n.bl, le) ? ra(g([\n A2(u, Hu, hi(A2(nu, \"\", h.cJ))),\n A2(Vi, n.T, Jo(A2(nu, Su, n.E)))\n ])) : Si);\n case 8:\n return i(n, ko(0));\n case 9:\n return i(s(n, {\n W: r.a\n }), Si);\n case 10:\n return i(s(n, {\n G: r.a\n }), Si);\n case 11:\n return i((o = A2(nu, !1, A2(ru, function(r) {\n return r.b3;\n }, n.bl))) ? s(n, {\n ab: !n.ab\n }) : n, Si);\n case 12:\n var m = r.a, y = r.b;\n switch(m.$){\n case 0:\n var w = n.co;\n if (3 === w.$) {\n var $ = s(N = w.a, {\n bj: y\n });\n return i(s(n, {\n co: Qu($)\n }), Si);\n }\n return i(n, Si);\n case 1:\n var E = n.co;\n return 3 === E.$ ? ($ = s(N = E.a, {\n bh: y\n }), i(s(n, {\n co: Qu($)\n }), Si)) : i(n, Si);\n case 2:\n var T = m.a, A = n.co;\n return 3 === A.$ ? ($ = s(N = A.a, {\n a0: A2(xi, T, N.a0) ? A2(bi, function(r) {\n return !e(r, T);\n }, N.a0) : A2(Ro, Ci, A2(ne, T, N.a0))\n }), i(s(n, {\n co: Qu($)\n }), Si)) : i(n, Si);\n case 3:\n var L = n.co;\n if (3 === L.$) {\n var x = (N = L.a).bb;\n return $ = s(N, {\n bb: s(x, {\n bN: A2(nu, 0, wi(A2(bi, function(r) {\n return e(Ui(r), y);\n }, li)))\n })\n }), i(s(n, {\n co: Qu($)\n }), Si);\n }\n return i(n, Si);\n case 4:\n var S = n.co;\n if (3 === S.$) {\n var N = S.a, k = A2(nu, 0, mt(y));\n return $ = s(N, {\n bb: s(x = N.bb, {\n bC: A2(Cs, k, A2(di, la, y))\n })\n }), i(s(n, {\n co: Qu($)\n }), Si);\n }\n return i(n, Si);\n case 5:\n var R = n.co;\n return 3 === R.$ ? (N = R.a, k = A2(nu, 0, mt(y)), $ = s(N, {\n bb: s(x = N.bb, {\n bR: A2(Cs, k, A2(di, la, y))\n })\n }), i(s(n, {\n co: Qu($)\n }), Si)) : i(n, Si);\n case 6:\n var q = n.co;\n return 3 === q.$ ? ($ = s(N = q.a, {\n bg: k = A2(nu, -1, mt(y))\n }), i(s(n, {\n co: Qu($)\n }), Si)) : i(n, Si);\n case 8:\n var I = n.co;\n return 3 === I.$ ? ($ = s(N = I.a, {\n bc: !N.bc\n }), i(s(n, {\n co: Qu($)\n }), Si)) : i(n, Si);\n default:\n var D = n.co;\n return 3 === D.$ ? ($ = s(N = D.a, {\n a6: A2(bi, function(r) {\n return !e(r, y);\n }, N.a6)\n }), i(s(n, {\n co: Qu($)\n }), Si)) : i(n, Si);\n }\n case 13:\n return i(n, Si);\n case 14:\n var C = r.a, O = n.co;\n return 3 === O.$ ? (N = O.a, i(s(n, {\n co: Ku\n }), A2(u, _u, A3(Is, N.M, C, t)))) : i(s(n, {\n co: Ku\n }), Si);\n case 15:\n var U = n.co;\n if (3 === U.$) {\n var P = {\n a0: (N = U.a).a0,\n a6: N.a6,\n bb: N.bb,\n bc: N.bc,\n bg: N.bg,\n bh: N.bh,\n bj: N.bj\n }, M = \"new\" === N.M ? A2(Fi, P, t) : A3(Rs, N.M, P, t);\n return i(s(n, {\n co: Ku\n }), A2(u, _u, M));\n }\n return i(s(n, {\n co: Ku\n }), Si);\n case 20:\n return i(s(n, {\n K: le,\n z: \"\"\n }), A2(u, Hu, hi(t)));\n case 21:\n return i(s(n, 3 === (F = r.a).$ ? {\n K: wi(F.a)\n } : {\n K: le\n }), Si);\n case 16:\n return i(s(n, {\n z: \"\",\n ax: Ku\n }), A2(u, Wu, A2(yi, le, t)));\n case 17:\n return i(s(n, 3 === (F = r.a).$ ? {\n ax: Qu(F.a)\n } : {\n ax: F\n }), Si);\n case 18:\n var _$B = r.a;\n return i(s(n, {\n z: \"\",\n co: Ku\n }), A2(u, _u, A2(mi, _$B, t)));\n case 19:\n var _$G = i(n.E, F = r.a);\n if (_$G.a.$ || 2 !== _$G.a.a.$ || \"new\" !== _$G.a.a.a || 3 !== _$G.b.$) return i(s(n, {\n co: F\n }), Si);\n var j = Ju(Cu((N = _$G.b.a).M)), H = s(n, {\n co: F\n });\n r = j, n = H;\n continue r;\n case 22:\n return i(s(n, {\n z: \"\",\n af: Ku\n }), A2(u, Vu, A2(vi, fe(\"state:ordered|shipped|delivered|cancelled|refunded\"), t)));\n case 23:\n return i(s(n, 3 === (F = r.a).$ ? {\n af: Qu(F.a)\n } : {\n af: F\n }), Si);\n case 24:\n return _$B = r.a, i(s(n, {\n z: \"\",\n D: Ku\n }), A2(u, Fu, A2(gi, _$B, t)));\n case 25:\n var F = r.a, V = n.E;\n n: for(; !V.$;)switch(V.a.$){\n case 4:\n j = Gu, H = s(n, {\n D: F\n }), r = j, n = H;\n continue r;\n case 6:\n j = Mu, H = s(n, {\n D: F\n }), r = j, n = H;\n continue r;\n default:\n break n;\n }\n return i(s(n, {\n D: F\n }), Si);\n case 26:\n var _ = A3(zu, r.a, le, r.b), W = !e(n.bl, le), Y = !e(n.K, le), z = A2(nu, \"latest\", A2(ru, function(r) {\n return r.M;\n }, n.K));\n return _$b = i(W, Y).a ? A2(u, Yu, A3(Ss, z, _, t)) : A2(Vi, n.T, Jo(Su)), i(n, _$b);\n case 27:\n var K = r.a, X = (W = !e(n.bl, le), _i(K.a7) > 0);\n return _$b = (Q = i(W, X)).a ? Q.b ? A2(u, Yu, A2(fi, K.M, t)) : Si : A2(Vi, n.T, Jo(Su)), i(n, _$b);\n case 28:\n switch((F = r.a).$){\n case 3:\n return i(s(n, {\n K: fe(K = F.a),\n z: \"\"\n }), Si);\n case 2:\n return i(s(n, {\n z: A2(Ti, n.a, F.a)\n }), Si);\n default:\n return i(n, Si);\n }\n case 29:\n return _$B = r.a, i(s(n, {\n D: Ku\n }), A2(u, Fu, A3(ks, _$B, 2, t)));\n case 30:\n return _$B = r.a, i(s(n, {\n D: Ku\n }), A2(u, Fu, A3(ks, _$B, 5, t)));\n case 31:\n return _$B = r.a, i(s(n, {\n D: Ku\n }), A2(u, Fu, A3(ks, _$B, 6, t)));\n case 32:\n return _$B = r.a, i(s(n, {\n D: Ku\n }), A2(u, Fu, A3(ks, _$B, 4, t)));\n default:\n return _$B = r.a, i(s(n, {\n D: Ku\n }), A2(u, Fu, A3(ks, _$B, 3, t)));\n }\n }\n var J, Q;\n }), Us = F3(function(r, n, e) {\n var t = A2(Jt, Xt, r), u = t.$ ? {\n bn: _t,\n bp: \"http://localhost:8080\",\n bU: \"dev\",\n a: \"en\",\n br: xu\n } : t.a, a = {\n ak: !1,\n K: le,\n aG: u,\n ab: !1,\n z: \"\",\n T: e,\n a: \"zh\" === u.a ? 1 : 0,\n D: Vt,\n af: Vt,\n E: Pu(Lu(n)),\n co: Vt,\n ax: Vt,\n W: \"\",\n G: i(0, 1),\n bl: le\n }, c = A2(Os, Jn(n), a);\n return i(c.a, c.b);\n }), Ps = function Ps(r) {\n return {\n $: 7,\n a: r\n };\n }, Ms = Sr, Bs = (po = \"signedIn\", go = ca, Dr(po), $r[po] = {\n f: Mr,\n u: go,\n a: function a(r, n) {\n var _$e = d, t = $r[r].u, u = sr(null);\n return $r[r].b = u, $r[r].c = F3(function(r, n) {\n return _$e = n, u;\n }), {\n send: function send(r) {\n var u = A2(Q, t, r);\n ut(u) || $(4);\n for(var a = u.a, c = _$e; c.b; c = c.b)n(c.a(a));\n }\n };\n }\n }, xr(po)), Gs = F2(function(r, n) {\n return A2(Kr, r, Di(n));\n }), js = Gs(\"className\"), Hs = Vr(\"div\"), Fs = Vr(\"h5\"), Vs = jr, _s = Vs, Ws = F2(function(r, n) {\n return _s(A2(Ei, r, n));\n }), Ys = function Ys(r) {\n switch(r.$){\n case 0:\n return \"Home\";\n case 1:\n return \"Products\";\n case 2:\n return \"Product Summary\";\n case 3:\n return \"Cart Summary\";\n case 4:\n return \"Order History\";\n case 5:\n return \"Order Summary\";\n case 6:\n return \"Order Success\";\n case 7:\n return \"Order Failure\";\n case 8:\n return \"User\";\n case 9:\n return \"Privacy Policy\";\n default:\n return \"Terms and Conditions\";\n }\n }, zs = Vr(\"a\"), Ks = Vr(\"cite\"), Xs = function Xs(r) {\n return A2(Gs, \"href\", tn(r));\n }, Js = Vr(\"span\"), Qs = {\n $: 11\n }, Zs = F2(function(r, n) {\n return A2(Xr, function(r) {\n return Zr.test(r) ? \"data-\" + r : r;\n }(r), un(n));\n }), rf = Zs, nf = Vr(\"button\"), ef = Vr(\"i\"), tf = Vr(\"img\"), uf = Vr(\"nav\"), af = Yr, cf = F2(function(r, n) {\n return A2(af, r, {\n $: 0,\n a: n\n });\n }), of = function of(r) {\n return A2(cf, \"click\", it(r));\n }, sf = function sf(r) {\n return A2(Gs, \"src\", un(r));\n }, ff = function ff(r) {\n return A2(ef, g([\n A2(rf, \"translate\", \"no\")\n ]), g([\n _s(r)\n ]));\n }, lf = function lf(r) {\n return {\n $: 3,\n a: r\n };\n }, df = zr, bf = df, pf = function pf(r) {\n return A2(Hs, g([\n js(\"row\")\n ]), g([\n A2(Hs, g(r.a ? [\n A2(bf, \"cursor\", \"pointer\"),\n of(lf(0))\n ] : [\n js(\"blue-text bold\")\n ]), g([\n _s(\"En\")\n ])),\n A2(Hs, g(1 === r.a ? [\n js(\"blue-text bold\")\n ] : [\n A2(bf, \"cursor\", \"pointer\"),\n of(lf(1))\n ]), g([\n _s(\"\\u4E2D\\u6587\")\n ]))\n ]));\n }, gf = function gf(r) {\n return A2(ef, g([\n A2(rf, \"translate\", \"no\"),\n js(\"extra\")\n ]), g([\n _s(r)\n ]));\n }, vf = F4(function(r, n, e, t) {\n return A2(zs, g([\n Xs(Jo(r))\n ]), g([\n gf(n),\n A2(Hs, d, g([\n A2(Ws, e, t)\n ]))\n ]));\n }), hf = function hf(r) {\n var n = A2(nu, !1, A2(ru, function(r) {\n return r.b3;\n }, r.bl)), _$e = function() {\n if (1 === r.bl.$) return d;\n var _$e = A2(nu, 0, A2(ru, we, A2(ru, function(r) {\n return r.a7;\n }, r.K))), t = _$e > 0 ? \"Cart [\" + ge(_$e) + \"]\" : \"Cart\";\n return g([\n A4(vf, Nu, \"shopping_cart\", r.a, t),\n function() {\n var _$e = o(n, r.ab, r.E);\n r: for(; _$e.a && !_$e.c.$;)switch(_$e.c.a.$){\n case 2:\n return _$e.b ? A2(nf, g([\n js(\"secondary\"),\n of(Qs)\n ]), g([\n ff(\"close\"),\n A2(Hs, d, g([\n A2(Ws, r.a, \"Close\")\n ]))\n ])) : A2(nf, g([\n js(\"tertiary\"),\n of(Qs)\n ]), g([\n ff(\"edit\"),\n A2(Hs, d, g([\n A2(Ws, r.a, \"Edit\")\n ]))\n ]));\n case 1:\n return A4(vf, Cu(\"new\"), \"add\", r.a, \"Product\");\n default:\n break r;\n }\n return A2(Ws, r.a, \"\");\n }(),\n n ? A4(vf, Iu, \"order_play\", r.a, \"Orders\") : A2(Ws, r.a, \"\")\n ]);\n }();\n return A2(uf, g([\n js(\"top row scroll\")\n ]), l(g([\n A2(zs, g([\n Xs(Jo(ku))\n ]), g([\n A2(ef, g([\n js(\"extra\"),\n A2(rf, \"translate\", \"no\")\n ]), g([\n A2(tf, g([\n sf(r.aG.br)\n ]), d)\n ])),\n A2(Hs, d, g([\n A2(Ws, r.a, \"Home\")\n ]))\n ])),\n A4(vf, Su, \"person\", r.a, \"User\"),\n A4(vf, Ou, \"category\", r.a, \"Products\")\n ]), l(_$e, g([\n pf(r)\n ]))));\n }, mf = \"fill middle-align center-align\", yf = F2(function(r, n) {\n return !A2(Li, A2(Ni, pc, r), n);\n }), wf = function wf(r) {\n if (1 === r.$) return \"N/A\";\n var n = r.a;\n return A2(ve, \", \", A2(bi, function(r) {\n return !vt(r);\n }, g([\n n.bK,\n n.bG,\n n.b8,\n A2(nu, \"\", n.b9),\n A2(nu, \"\", n.ck)\n ])));\n }, $f = function $f(r) {\n return r.b;\n }, Ef = function Ef(r) {\n return r.trim();\n }, Tf = F3(function(r, n, e) {\n var t = A2(Ro, function(r) {\n return n.a ? r.bk.bC : r.at.cL;\n }, A2(bi, function(n) {\n var _$e = function() {\n var _$r = n.bl;\n if (1 === _$r.$) return \"\";\n var _$e = _$r.a;\n return A2(ve, \", \", g([\n _$e.cf,\n _$e.bS,\n _$e.ch,\n wf(_$e.bB)\n ]));\n }(), t = $i(A2(ve, \", \", g([\n _$e,\n \"state:\" + Ns(n.bf),\n n.M,\n n.ba,\n A2(ve, \", \", A2(Rt, function(r) {\n return A2(nu, \"\", A2(ru, function(r) {\n return r.bj;\n }, r.co));\n }, n.a7))\n ])));\n return A2(yf, function(r) {\n return A2(lt, r, t);\n }, A2(bi, A2(au, Ef, A2(au, vt, pc)), A2(he, \" \", $i(r))));\n }, e));\n return n.b ? qe(t) : t;\n }), Af = function Af(r) {\n return {\n $: 32,\n a: r\n };\n }, Lf = function Lf(r) {\n return {\n $: 31,\n a: r\n };\n }, xf = function xf(r) {\n return {\n $: 33,\n a: r\n };\n }, Sf = function Sf(r) {\n return {\n $: 29,\n a: r\n };\n }, Nf = {\n $: 0\n }, kf = Vr(\"article\"), Rf = Vr(\"b\"), qf = Vr(\"details\"), If = F3(function(r, n, e) {\n r: for(;;){\n if (r > 0) {\n if (n.b) {\n var t = n.a;\n r -= 1, n = n.b, e = A2(ne, t, e);\n continue r;\n }\n return e;\n }\n return e;\n }\n }), Df = F2(function(r, n) {\n return qe(A3(If, r, n, d));\n }), Cf = F3(function(r, n, e) {\n if (n > 0) {\n var t = i(n, e);\n r: for(;;){\n n: for(;;){\n if (!t.b.b) return e;\n if (!t.b.b.b) {\n if (1 === t.a) break r;\n break n;\n }\n switch(t.a){\n case 1:\n break r;\n case 2:\n var u = t.b;\n return g([\n u.a,\n u.b.a\n ]);\n case 3:\n if (t.b.b.b.b) {\n var a = t.b, c = a.b;\n return g([\n a.a,\n c.a,\n c.b.a\n ]);\n }\n break n;\n default:\n if (t.b.b.b.b && t.b.b.b.b.b) {\n var o = t.b, _$s = o.b, f = _$s.b, _$l = f.b, _$b = _$l.b;\n return A2(ne, o.a, A2(ne, _$s.a, A2(ne, f.a, A2(ne, _$l.a, r > 1e3 ? A2(Df, n - 4, _$b) : A3(Cf, r + 1, n - 4, _$b)))));\n }\n break n;\n }\n }\n return e;\n }\n return g([\n t.b.a\n ]);\n }\n return d;\n }), Of = F2(function(r, n) {\n return A3(Cf, 0, r, n);\n }), Uf = function Uf(r) {\n return A2(ve, \" \", A2(he, \"T\", A2(ve, \"\", A2(Of, 1, A2(he, \".\", hs(r))))));\n }, Pf = Gs(\"id\"), Mf = Vr(\"label\"), Bf = Vr(\"p\"), Gf = Vr(\"summary\"), jf = F2(function(r, n) {\n return {\n $: 26,\n a: r,\n b: n\n };\n }), Hf = function Hf(r) {\n return \"/uploads/thumb-\" + r;\n }, Ff = function Ff(r) {\n return A2(tf, g([\n js(\"circle large\"),\n sf(Hf(r))\n ]), d);\n }, Vf = B, _f = F2(function(r, n) {\n var _$e = n.cI ? \" (tax inclusive)\" : \"\", t = Ui(n.bN), u = (n.bC - n.bR) / 100, a = n.bC / 100, c = n.bR > 0 ? A2(Js, g([\n js(\"padding small\")\n ]), g([\n A2(Js, g([\n js(\"overline red-text\")\n ]), g([\n _s(t + \" \" + Vf(a))\n ])),\n A2(Js, g([\n js(\"space small\")\n ]), g([\n A2(Ws, r, \" \")\n ])),\n A2(Rf, d, g([\n _s(t + \" \" + Vf(u))\n ])),\n _s(_$e)\n ])) : A2(Js, d, g([\n A2(Rf, d, g([\n _s(t + \" \" + Vf(a))\n ])),\n _s(_$e)\n ]));\n return A2(Mf, d, g([\n c\n ]));\n }), Wf = F3(function(r, n, e) {\n var t = A2(Hs, d, n ? g([\n A2(nf, g([\n js(\"button\"),\n of(A2(jf, e.M, 1))\n ]), g([\n ff(\"add\")\n ])),\n A2(nf, g([\n js(\"button tertiary\"),\n of(A2(jf, e.M, -1))\n ]), g([\n ff(\"remove\")\n ]))\n ]) : d), u = Ff(A2(nu, xu, A2(Zu, wi, A2(ru, function(r) {\n return r.a6;\n }, e.co)))), a = A2(nu, A2(Ws, r, \" - \"), A2(ru, _f(r), A2(ru, function(r) {\n return r.bb;\n }, e.co))), c = l(ge(e.cq), \" x \" + A2(nu, \"item(s)\", A2(ru, function(r) {\n return r.bj;\n }, e.co)));\n return A2(kf, d, g([\n A2(Hs, g([\n js(\"row\")\n ]), g([\n u,\n A2(Hs, g([\n js(\"max\")\n ]), g([\n A2(Rf, d, g([\n _s(c)\n ])),\n A2(Bf, d, g([\n a\n ]))\n ])),\n t\n ]))\n ]));\n }), Yf = F2(function(r, n) {\n var _$e, t = A2(nu, \"\", A2(ru, function(r) {\n return \" (\" + r + \")\";\n }, A2(Zu, function(r) {\n return r.ct;\n }, n.a1)));\n return A2(kf, g([\n Pf(n.M),\n js(\"border round\")\n ]), g([\n A2(qf, d, g([\n A2(Gf, d, g([\n A2(Mf, d, g([\n _s(Uf(n.at.cL)),\n A2(Js, g([\n js(\"padding\")\n ]), d)\n ])),\n A2(Rf, d, g([\n _s(A2(nu, \"Name: N/A\", A2(ru, function(r) {\n return r.cf;\n }, n.bl))),\n A2(Js, g([\n js(\"padding\")\n ]), d)\n ])),\n A2(Rf, d, g([\n _s(A2(nu, \"Email: N/A\", A2(ru, function(r) {\n return r.bS;\n }, n.bl))),\n A2(Js, g([\n js(\"padding\")\n ]), d)\n ])),\n A2(Rf, d, g([\n _s(A2(nu, \"Phone: N/A\", A2(ru, function(r) {\n return r.ch;\n }, n.bl))),\n A2(Js, g([\n js(\"padding\")\n ]), d)\n ])),\n A2(Hs, g([\n js(\"divider\")\n ]), d),\n A2(_f, r, n.bk),\n A2(Js, g([\n js(\"padding\")\n ]), d),\n A2(Mf, d, g([\n _s(A2(ve, \" \", g([\n \"This\",\n Ns(n.bf),\n \"order contains\",\n ge(_i(n.a7)),\n \"items\"\n ]))),\n A2(Rf, d, g([\n _s(t)\n ]))\n ]))\n ])),\n A2(Bf, g([\n js(\"padding\")\n ]), g([\n A2(Rf, d, g([\n _s(A2(nu, \"Address: N/A\", A2(ru, wf, A2(ru, function(r) {\n return r.bB;\n }, n.bl))))\n ])),\n A2(Hs, g([\n js(\"divider\")\n ]), d),\n A2(Js, g([\n js(\"padding\")\n ]), d),\n A2(Hs, d, A2(Rt, A2(Wf, r, !1), n.a7))\n ])),\n A2(nf, g([\n js(\"small\" + (5 === n.bf ? \" border\" : \"\")),\n of(5 === n.bf ? Nf : (_$e = n.M, {\n $: 30,\n a: _$e\n }))\n ]), g([\n ff(\"flight\"),\n A2(Js, d, g([\n A2(Ws, r, \"Ship\")\n ]))\n ])),\n A2(nf, g([\n js(\"small\" + (6 === n.bf ? \" border\" : \"\")),\n of(6 === n.bf ? Nf : Lf(n.M))\n ]), g([\n ff(\"playlist_add_check\"),\n A2(Js, d, g([\n A2(Ws, r, \"Deliver\")\n ]))\n ])),\n A2(nf, g([\n js(\"small tertiary\" + (2 === n.bf ? \" border\" : \"\")),\n of(2 === n.bf ? Nf : Sf(n.M))\n ]), g([\n ff(\"undo\"),\n A2(Js, d, g([\n A2(Ws, r, \"Revert to Ordered\")\n ]))\n ])),\n A2(nf, g([\n js(\"small tertiary\" + (4 === n.bf ? \" border\" : \"\")),\n of(4 === n.bf ? Nf : Af(n.M))\n ]), g([\n ff(\"delete_forever\"),\n A2(Js, d, g([\n A2(Ws, r, \"Cancel\")\n ]))\n ])),\n A2(nf, g([\n js(\"small tertiary\" + (3 === n.bf ? \" border\" : \"\")),\n of(3 === n.bf ? Nf : xf(n.M))\n ]), g([\n ff(\"money_off\"),\n A2(Js, d, g([\n A2(Ws, r, \"Refund\")\n ]))\n ]))\n ]))\n ]));\n }), zf = Vr(\"progress\"), Kf = A2(zf, d, d), Xf = function Xf(r) {\n var n = function n(r) {\n return A2(Hs, g([\n js(mf)\n ]), g([\n A2(Hs, g([\n js(\"center-align\")\n ]), g([\n A2(Fs, d, g([\n r\n ]))\n ]))\n ]));\n }, _$e = r.af;\n switch(_$e.$){\n case 0:\n return n(A2(Ws, r.a, \"Please sign in to continue or refresh the page\"));\n case 2:\n return n(_s(A2(Ti, r.a, _$e.a)));\n case 1:\n return n(Kf);\n default:\n var t = _$e.a;\n return A2(Hs, g([\n js(\"container padding\")\n ]), A2(Rt, Yf(r.a), A3(Tf, r.W, r.G, t)));\n }\n }, Jf = {\n $: 15\n }, Qf = {\n $: 3\n }, Zf = {\n $: 5\n }, rl = {\n $: 7\n }, nl = {\n $: 4\n }, el = {\n $: 8\n }, tl = {\n $: 6\n }, ul = {\n $: 1\n }, al = {\n $: 0\n }, cl = Vr(\"br\"), il = g([\n 0,\n 1,\n 2,\n 3,\n 4,\n 5,\n 6,\n 7\n ]), ol = function ol(r) {\n return Ui(r.bN) + \" \" + Vf((r.bC - r.bR) / 100) + (r.cI ? \" (tax inclusive\" : \"\");\n }, sl = Vr(\"hr\"), fl = F2(function(r, n) {\n return {\n $: 12,\n a: r,\n b: n\n };\n }), ll = F2(function(r, n) {\n return A2(Kr, r, qi(n));\n }), dl = ll(\"checked\"), bl = Vr(\"input\"), pl = F3(function(r, n, e) {\n return A2(Hs, d, g([\n A2(bl, g([\n A2(rf, \"type\", \"checkbox\"),\n dl(n),\n of(A2(fl, e, Ci(r)))\n ]), d),\n A2(Js, g([\n js(\"helper padding\")\n ]), g([\n _s(Ci(r))\n ]))\n ]));\n }), gl = F2(function(r, n) {\n return A2(Hs, d, g([\n Ff(r),\n A2(Mf, g([\n of(A2(fl, n, r))\n ]), g([\n A2(Js, d, g([\n ff(\"delete\")\n ]))\n ])),\n A2(Hs, g([\n js(\"divider\")\n ]), d)\n ]));\n }), vl = function vl(r) {\n return {\n $: 14,\n a: r\n };\n }, hl = ll(\"multiple\"), ml = F2(function(r, n) {\n return A3(kt, Yt, n, r);\n }), yl = Yn, wl = A2(ml, g([\n \"target\",\n \"files\"\n ]), ga(yl)), $l = A2(nf, g([\n js(\"circle\")\n ]), g([\n ff(\"attach_file\"),\n A2(bl, g([\n A2(rf, \"type\", \"file\"),\n hl(!0),\n A2(cf, \"change\", A2(at, vl, wl))\n ]), d)\n ])), El = function El(r) {\n return i(r, !0);\n }, Tl = F2(function(r, n) {\n return A2(af, r, {\n $: 1,\n a: n\n });\n }), Al = A2(ml, g([\n \"target\",\n \"value\"\n ]), Kt), Ll = function Ll(r) {\n return A2(Tl, \"input\", A2(at, El, A2(at, r, Al)));\n }, xl = Gs(\"value\"), Sl = F3(function(r, n, e) {\n return A2(Hs, g([\n js(\"field border round fill small max\")\n ]), g([\n A2(bl, g([\n A2(rf, \"type\", \"number\"),\n xl(ge(n)),\n Ll(fl(e))\n ]), d),\n A2(Js, g([\n js(\"helper\")\n ]), g([\n _s(r)\n ]))\n ]));\n }), Nl = Vr(\"textarea\"), kl = function kl(r) {\n return {\n $: 13,\n a: r\n };\n }, Rl = Wr, ql = Rl, Il = function Il(r) {\n return r.b;\n }, Dl = Pf(\"__RENDERED_TEXT__\"), Cl = F3(function(r, n, e) {\n return {\n $: 0,\n a: r,\n b: n,\n c: e\n };\n }), Ol = function Ol(r) {\n return !!r;\n }, Ul = function Ul(r) {\n return Vr(en(r));\n }, Pl = F2(function(r, n) {\n return A2(Kr, function(r) {\n return \"innerHTML\" == r || \"formAction\" == r ? \"data-\" + r : r;\n }(r), function(r) {\n return \"string\" == typeof r && nn.test(r) ? \"\" : r;\n }(n));\n }), Ml = Pl, Bl = F2(function(r, n) {\n return A3(Ul, \"math-text\", g([\n A2(Ml, \"display\", qi(Ol(r))),\n A2(Ml, \"content\", Di(A3(iu, \"\\\\ \\\\\", \"\\\\\\\\\", n)))\n ]), d);\n }), Gl = function Gl(r) {\n return Ef(r), A2(Bl, 1, Ef(r));\n }, jl = function jl(r) {\n var n = r.b;\n return \"i\" + ge(r.a) + \"v\" + ge(n);\n }, Hl = function Hl(r) {\n return Pf(jl(r));\n }, Fl = function Fl(r) {\n return r.a;\n }, Vl = function Vl(r) {\n return _r(en(r));\n }, _l = function _l(r) {\n return A3(Cl, r.b, r.c, r.d);\n }, Wl = function Wl(r) {\n return js(\"mm-block-\" + ge(r));\n }, Yl = Vr(\"code\"), zl = F2(function(r, n) {\n return A2(pt, dt(function(r) {\n switch(r){\n case 0:\n return \"elm\";\n case 1:\n return \"css\";\n case 2:\n return \"javascript\";\n case 3:\n return \"json\";\n case 4:\n return \"python\";\n case 5:\n return \"sql\";\n case 6:\n return \"xml\";\n default:\n return \"nolang\";\n }\n }(r)) + 1, n);\n }), Kl = F2(function(r, n) {\n return n.$ ? ue(n.a) : oe(r(n.a));\n }), Xl = function Xl(r) {\n return A2(bf, \"margin-left\", ge(0 * r) + \"px\");\n }, Jl = function Jl(r) {\n return {\n $: 1,\n a: r\n };\n }, Ql = function Ql(r) {\n return {\n $: 3,\n a: r\n };\n }, Zl = function Zl(r) {\n return {\n $: 1,\n a: r\n };\n }, rd = function rd(r) {\n return {\n $: 2,\n a: r\n };\n }, nd = {\n $: 3\n }, ed = function ed(r) {\n return s(r, {\n ap: !0\n });\n }, td = {\n $: 0\n }, ud = function ud(r) {\n return {\n aE: r,\n ao: !1,\n ap: !1,\n aK: !1,\n bi: td\n };\n }, ad = F2(function(r, n) {\n return {\n aE: n,\n ao: !1,\n ap: !1,\n aK: !1,\n bi: r\n };\n }), cd = function cd(r) {\n return {\n aE: td,\n ao: !1,\n ap: !1,\n aK: !1,\n bi: r\n };\n }, id = {\n aC: ud(Zl(\"#003800\")),\n aF: cd(Zl(\"#75715e\")),\n aI: A2(ad, Zl(\"#f8f8f2\"), Zl(\"#23241f\")),\n aJ: ud(Zl(\"#380000\")),\n an: ud(Zl(\"#343434\")),\n aP: cd(Zl(\"#ae81ff\")),\n aQ: cd(Zl(\"#e6db74\")),\n aR: cd(Zl(\"#f92672\")),\n aS: cd(Zl(\"#66d9ef\")),\n aT: cd(Zl(\"#a6e22e\")),\n aU: cd(Zl(\"#ae81ff\")),\n aV: cd(Zl(\"#fd971f\"))\n }, od = {\n cZ: g([\n i(g([\n {\n $: 0,\n a: 6\n },\n rd(3),\n Ql(nd)\n ]), ed(cd(Zl(\"#66d9ef\")))),\n i(g([\n rd(8)\n ]), ed(cd(Zl(\"#a6e22e\")))),\n i(g([\n Ql(Jl(0))\n ]), (vo = cd(Zl(\"#f92672\")), s(vo, {\n ao: !0\n })))\n ]),\n dg: id\n }, sd = F2(function(r, n) {\n var _$e = n.b;\n return i(r(n.a), _$e);\n }), fd = function fd(r) {\n return A2(ve, \"\", r);\n }, ld = F2(function(r, n) {\n if (n.b) {\n var _$e = n.a, t = n.b, u = F2(function(n, e) {\n return A2(ne, r, A2(ne, n, e));\n });\n return A2(ne, _$e, A3(kt, u, d, t));\n }\n return d;\n }), dd = function dd(r) {\n switch(r.$){\n case 0:\n return i(3, \"css-s\");\n case 1:\n return function(r) {\n switch(r){\n case 0:\n return i(4, \"css-ar-i\");\n case 1:\n return i(6, \"css-ar-p\");\n case 2:\n return i(4, \"css-ar-k\");\n default:\n return i(5, \"css-ar-v\");\n }\n }(r.a);\n case 2:\n return function(r) {\n switch(r.$){\n case 0:\n return i(4, \"css-s-e\");\n case 1:\n return i(6, \"css-s-i\");\n case 2:\n return i(6, \"css-s-cl\");\n case 3:\n return i(8, \"css-s-c\");\n case 4:\n return i(4, \"css-s-u\");\n case 5:\n return function(r) {\n switch(r){\n case 0:\n return i(6, \"css-s-a-an\");\n case 1:\n return i(3, \"css-s-a-av\");\n default:\n return i(4, \"css-s-a-o\");\n }\n }(r.a);\n case 6:\n return i(0, \"css-s-pe\");\n default:\n return i(0, \"css-s-pc\");\n }\n }(r.a);\n case 3:\n return i(5, \"css-p\");\n case 4:\n return i(5, \"css-pv\");\n case 5:\n return i(2, \"css-n\");\n default:\n return i(4, \"css-u\");\n }\n }, bd = function bd(r) {\n switch(r){\n case 0:\n return i(3, \"elm-s\");\n case 1:\n return i(4, \"elm-bs\");\n case 2:\n return i(5, \"elm-gs\");\n case 3:\n return i(7, \"elm-c\");\n case 4:\n return i(4, \"elm-k\");\n case 5:\n return i(6, \"elm-f\");\n case 6:\n return i(5, \"elm-ts\");\n default:\n return i(2, \"elm-n\");\n }\n }, pd = function pd(r) {\n switch(r){\n case 0:\n return i(2, \"js-n\");\n case 1:\n return i(3, \"js-s\");\n case 2:\n return i(4, \"js-k\");\n case 3:\n return i(5, \"js-dk\");\n case 4:\n return i(5, \"js-fe\");\n case 5:\n return i(6, \"js-f\");\n case 6:\n return i(7, \"js-lk\");\n case 7:\n return i(8, \"js-p\");\n default:\n return i(6, \"js-ce\");\n }\n }, gd = function gd() {\n return i(0, \"nolang\");\n }, vd = function vd(r) {\n switch(r){\n case 0:\n return i(2, \"py-n\");\n case 1:\n return i(3, \"py-s\");\n case 2:\n return i(4, \"py-k\");\n case 3:\n return i(5, \"py-dk\");\n case 5:\n return i(6, \"py-f\");\n case 6:\n return i(7, \"py-lk\");\n case 7:\n return i(8, \"py-p\");\n default:\n return i(0, \"py-fe\");\n }\n }, hd = function hd(r) {\n switch(r){\n case 0:\n return i(2, \"sql-n\");\n case 1:\n return i(3, \"sql-s\");\n case 2:\n return i(4, \"sql-k\");\n case 3:\n return i(5, \"sql-o\");\n case 4:\n return i(6, \"sql-f\");\n case 5:\n return i(7, \"sql-p\");\n default:\n return i(8, \"sql-l\");\n }\n }, md = function md(r) {\n switch(r){\n case 0:\n return i(4, \"xml-t\");\n case 1:\n return i(6, \"xml-a\");\n default:\n return i(3, \"xlm-av\");\n }\n }, yd = function yd(r) {\n switch(r.$){\n case 0:\n return bd(r.a).b;\n case 1:\n return md(r.a).b;\n case 2:\n return pd(r.a).b;\n case 3:\n return dd(r.a).b;\n case 4:\n return vd(r.a).b;\n case 5:\n return hd(r.a).b;\n case 6:\n return function(r) {\n switch(r){\n case 0:\n return i(2, \"nix-n\");\n case 1:\n return i(3, \"nix-s\");\n case 2:\n return i(4, \"nix-k\");\n case 3:\n return i(5, \"nix-o\");\n case 4:\n return i(6, \"nix-f\");\n case 5:\n return i(7, \"nix-p\");\n default:\n return i(8, \"nix-l\");\n }\n }(r.a).b;\n default:\n return gd().b;\n }\n }, wd = F2(function(r, n) {\n switch(n.$){\n case 0:\n return \"\";\n case 1:\n return r + (n.a + \";\");\n case 2:\n var _$e = n.b, t = n.c;\n return fd(g([\n r,\n \"rgb(\",\n ge(n.a),\n \", \",\n ge(_$e),\n \",\",\n ge(t),\n \");\"\n ]));\n default:\n _$e = n.b, t = n.c;\n var u = n.d;\n return fd(g([\n r,\n \"rgba(\",\n ge(n.a),\n \", \",\n ge(_$e),\n \",\",\n ge(t),\n \", \",\n Vf(u),\n \");\"\n ]));\n }\n }), $d = F2(function(r, n) {\n return r ? n : \"\";\n }), Ed = function Ed(r) {\n var n = r.a, _$e = r.b;\n return vt(n) ? \"\" : n + \" {\" + function(r) {\n var n = r.ap, _$e = r.aK, t = r.bi, u = r.aE;\n return fd(g([\n A2($d, r.ao, \"font-weight: bold;\"),\n A2($d, n, \"font-style: italic;\"),\n A2($d, _$e, \"text-decoration: underline;\"),\n A2(wd, \"color: \", t),\n A2(wd, \"background: \", u)\n ]));\n }(_$e) + \"}\";\n }, Td = (ho = od, yo = ho.dg, wo = ho.cZ, mo = l(g([\n i(\".elmsh\", yo.aI),\n i(\".elmsh-hl\", yo.an),\n i(\".elmsh-add\", yo.aC),\n i(\".elmsh-del\", yo.aJ),\n i(\".elmsh-comm\", yo.aF),\n i(\".elmsh1\", yo.aP),\n i(\".elmsh2\", yo.aQ),\n i(\".elmsh3\", yo.aR),\n i(\".elmsh4\", yo.aS),\n i(\".elmsh5\", yo.aT),\n i(\".elmsh6\", yo.aU),\n i(\".elmsh7\", yo.aV)\n ]), A2(Rt, sd(function(r) {\n return fd(A2(ld, \", \", A2(Rt, be(\".elmsh-\"), A2(Rt, yd, r))));\n }), wo)), fd(A2(Rt, Ed, mo))), Ad = Td, Ld = Ad, xd = function xd(r) {\n return {\n c2: r,\n an: le\n };\n }, Sd = {\n $: 2\n }, Nd = F2(function(r, n) {\n var _$e = n.a, t = n.b;\n switch(_$e.$){\n case 0:\n case 2:\n return {\n cU: \"\",\n df: 0,\n bi: t\n };\n case 1:\n return {\n cU: \"\",\n df: 1,\n bi: t\n };\n default:\n var u = r(_$e.a);\n return {\n cU: u.b,\n df: u.a,\n bi: t\n };\n }\n }), kd = F3(function(r, n, t) {\n var u = n.a, a = n.b, c = t.a, f = t.b, d = t.c;\n if (e(u, Sd)) return o(A2(ne, xd(f), c), g([\n A2(Nd, r, i(u, a))\n ]), le);\n if (e(fe(u), d)) {\n if (f.b) {\n var _$b = f.a, p = f.b;\n return o(c, A2(ne, s(_$b, {\n bi: l(a, _$b.bi)\n }), p), d);\n }\n return o(c, A2(ne, A2(Nd, r, i(u, a)), f), d);\n }\n return o(c, A2(ne, A2(Nd, r, i(u, a)), f), fe(u));\n }), Rd = F2(function(r, n) {\n return function(r) {\n var _$n = r.a;\n return A2(ne, xd(r.b), _$n);\n }(A3(ye, kd(r), o(d, d, le), n));\n }), qd = {\n $: 0\n }, Id = function Id(r) {\n return {\n $: 3,\n a: r\n };\n }, Dd = {\n $: 0\n }, Cd = function Cd(r) {\n return A2(Va, A2(Va, Pa(0), ec(r)), ka(r));\n }, Od = Zt, Ud = F2(function(r, n) {\n return A3(pu, r, 0, n);\n }), Pd = function Pd(r) {\n return A3(ye, Ud, Od, r);\n }, Md = Pd(g([\n \"and\",\n \"or\",\n \"not\",\n \"only\"\n ])), Bd = F2(function(r, n) {\n return !A2(fu, r, n).$;\n }), Gd = F2(function(r, n) {\n return A2(Bd, r, n);\n }), jd = function jd(r) {\n return \"/\" === r;\n }, Hd = function Hd(r) {\n return \"\\n\" === r;\n }, Fd = function Fd(r) {\n return \" \" === r || \"\t\" === r;\n }, Vd = function Vd(r) {\n return Fd(r) || Hd(r);\n }, _d = Pd(g([\n \":\",\n \"{\",\n \"}\",\n \",\",\n \".\",\n \"#\",\n \">\",\n \"+\",\n \"~\",\n \"*\",\n \"[\",\n \"]\",\n \"|\",\n \";\",\n \"(\",\n \")\"\n ])), Wd = function Wd(r) {\n return !(Vd(r) || jd(r) || A2(Gd, r, _d));\n }, Yd = function Yd(r) {\n return A2(cc, function(n) {\n return function(r) {\n return A2(Gd, r, Md);\n }(n) ? A2(ne, i(Id(Jl(2)), n), r) : A2(ne, i(Id(Jl(3)), n), r);\n }, Da(Cd(Wd)));\n }, zd = Pd(g([\n \"@page\",\n \"@font-face\",\n \"@swash\",\n \"@annotation\",\n \"@ornaments\",\n \"@stylistic\",\n \"@styleset\",\n \"@character-variant\"\n ])), Kd = {\n $: 1\n }, Xd = F3(function(r, n, e) {\n return A2(wa, function(e) {\n return r(l(e, n));\n }, e);\n }), Jd = F3(function(r, n, e) {\n return A2(wa, function(e) {\n return r(A2(ne, e, n));\n }, e);\n }), Qd = F2(function(r, n) {\n return A2(Va, n, ka(r));\n }), Zd = F2(function(r, n) {\n var _$e = r.bQ, t = r.b5, u = r.bT, a = r.b1;\n return Xa(g([\n A2(cc, Ra(A2(ne, _$e(u), n)), vc(u)),\n A2(cc, Ra(n), La),\n A3(Xd, Zd(r), n, Xa(a)),\n A3(Jd, Zd(r), n, A2(cc, _$e, Da(A2(Qd, t, ec(Ra(!0))))))\n ]));\n }), rb = F3(function(r, n, e) {\n var t = n.bQ, u = n.b5, a = n.bw, c = n.bT, _$i = n.b1;\n return Xa(g([\n A2(wa, function(e) {\n return 1 === r ? Pa(e) : A3(rb, r - 1, n, e);\n }, A2(cc, Ra(A2(ne, t(c), e)), vc(c))),\n A3(Jd, A2(rb, r + 1, n), e, A2(cc, t, Da(A2(Qd, u, vc(a))))),\n A3(Xd, Zd(n), e, Xa(_$i)),\n A2(cc, Ra(e), La),\n A3(Jd, A2(rb, r, n), e, A2(cc, t, Da(A2(Qd, u, ec(Ra(!0))))))\n ]));\n }), nb = F2(function(r, n) {\n var t = r.b5, u = i(Ie(r.bw), Ie(r.bT));\n if (1 === u.a.$) return Ca(\"Trying to parse a delimited helper, but the start token cannot be an empty string!\");\n if (1 === u.b.$) return Ca(\"Trying to parse a delimited helper, but the end token cannot be an empty string!\");\n var a = u.a.a.a, c = u.b.a.a;\n return r.b4 ? A3(rb, 1, s(r, {\n b5: function b5(r) {\n return t(r) && !e(r, a) && !e(r, c);\n }\n }), n) : A2(Zd, s(r, {\n b5: function b5(r) {\n return t(r) && !e(r, c);\n }\n }), n);\n }), eb = function eb(r) {\n var n = r.bw;\n return A2(wa, function(n) {\n return A2(nb, r, g([\n n\n ]));\n }, A2(cc, Ra((0, r.bQ)(n)), vc(n)));\n }, tb = A2(cc, function() {\n return g([\n i(Sd, \"\\n\")\n ]);\n }, vc(\"\\n\")), ub = eb({\n bQ: function bQ(r) {\n return i(Kd, r);\n },\n bT: \"*/\",\n b1: g([\n tb\n ]),\n b4: !1,\n b5: function b5(r) {\n return !Hd(r);\n },\n bw: \"/*\"\n }), ab = function ab(r) {\n return Xa(g([\n A2(cc, function(n) {\n return Qa(A2(ne, i(qd, n), r));\n }, Da(Cd(Fd))),\n A2(cc, function(n) {\n return Qa(l(n, r));\n }, tb),\n A2(cc, function(n) {\n return Qa(l(n, r));\n }, ub)\n ]));\n }, cb = function cb(r) {\n return A2(fc, g([\n i(Id(Jl(0)), r)\n ]), function(r) {\n return Xa(g([\n ab(r),\n A2(cc, function(n) {\n return Qa(A2(ne, i(Id(Jl(1)), n), r));\n }, Da(Cd(Wd))),\n A2(cc, function(n) {\n return Qa(A2(ne, i(qd, n), r));\n }, Da(ec(function(r) {\n return \"{\" !== r;\n }))),\n Pa(Ja(r))\n ]));\n });\n }, ib = function ib(r) {\n return Xa(g([\n A2(cc, Ra(A2(ne, i(qd, \"{\"), r)), vc(\"{\")),\n Pa(r)\n ]));\n }, ob = {\n $: 5\n }, sb = function sb(r) {\n var n = r;\n return function(r) {\n var _$e = n(r);\n return 1 === _$e.$ ? A2(ha, !1, _$e.b) : A3(ma, !1, _$e.b, _$e.c);\n };\n }, fb = sb, lb = Pd(g([\n \"'\",\n '\"',\n \"\\\\\",\n \"n\",\n \"r\",\n \"t\",\n \"b\",\n \"f\",\n \"v\"\n ])), db = A2(Va, A2(Va, Pa(0), fb(vc(\"\\\\\"))), ec(function(r) {\n return A2(Gd, r, lb);\n })), bb = A2(cc, function(r) {\n return g([\n i(Id(ob), r)\n ]);\n }, Da(db)), pb = function pb(r) {\n return \"\\\\\" === r;\n }, gb = {\n bQ: function bQ(r) {\n return i(Id(Dd), r);\n },\n bT: \"'\",\n b1: g([\n tb,\n bb\n ]),\n b4: !1,\n b5: function b5(r) {\n return !(Hd(r) || pb(r));\n },\n bw: \"'\"\n }, vb = eb(s(gb, {\n bT: '\"',\n bw: '\"'\n })), hb = eb(gb), mb = function mb(r) {\n return A2(cc, function(n) {\n return l(n, r);\n }, Xa(g([\n hb,\n vb\n ])));\n }, yb = {\n $: 4\n }, wb = F2(function(r, n) {\n return A2(wa, function(r) {\n return Xa(g([\n mb(r),\n A2(cc, function(n) {\n return A2(ne, i(Id(Dd), n), r);\n }, Da(Cd(function(r) {\n return \")\" !== r;\n }))),\n Pa(r)\n ]));\n }, A2(cc, Ra(A2(ne, i(qd, \"(\"), A2(ne, i(Id(yb), r), n))), vc(r + \"(\")));\n }), $b = function $b(r) {\n switch(r){\n case \"@import\":\n return A2(fc, g([\n i(Id(Jl(0)), r)\n ]), function(r) {\n return Xa(g([\n ab(r),\n A2(cc, Qa, A2(wb, \"url\", r)),\n A2(cc, Qa, mb(r)),\n A2(cc, Qa, Yd(r)),\n A2(cc, function(n) {\n return Qa(A2(ne, i(qd, n), r));\n }, Da(ec(function(r) {\n return \";\" !== r;\n }))),\n Pa(Ja(r))\n ]));\n });\n case \"@namespace\":\n return A2(fc, g([\n i(Id(Jl(0)), r)\n ]), function(r) {\n return Xa(g([\n ab(r),\n A2(cc, Qa, A2(wb, \"url\", r)),\n A2(cc, Qa, mb(r)),\n A2(cc, function(n) {\n return Qa(A2(ne, i(Id(Jl(1)), n), r));\n }, Da(Cd(Wd))),\n A2(cc, function(n) {\n return Qa(A2(ne, i(qd, n), r));\n }, Da(ec(function(r) {\n return \";\" !== r;\n }))),\n Pa(Ja(r))\n ]));\n });\n case \"@charset\":\n return A2(fc, g([\n i(Id(Jl(0)), r)\n ]), function(r) {\n return Xa(g([\n ab(r),\n A2(cc, Qa, mb(r)),\n A2(cc, function(n) {\n return Qa(A2(ne, i(Id(Dd), n), r));\n }, Da(Cd(Wd))),\n A2(cc, function(n) {\n return Qa(A2(ne, i(qd, n), r));\n }, Da(ec(function(r) {\n return \";\" !== r;\n }))),\n Pa(Ja(r))\n ]));\n });\n case \"@media\":\n case \"@supports\":\n return function(r) {\n return A2(wa, ib, A2(fc, g([\n i(Id(Jl(0)), r)\n ]), function(r) {\n return Xa(g([\n ab(r),\n A2(cc, Qa, mb(r)),\n A2(cc, Qa, Yd(r)),\n A2(cc, function(n) {\n return Qa(A2(ne, i(qd, n), r));\n }, Da(ec(function(r) {\n return \"{\" !== r;\n }))),\n Pa(Ja(r))\n ]));\n }));\n }(r);\n case \"@keyframes\":\n return A2(wa, ib, cb(r));\n case \"@counter-style\":\n return cb(r);\n case \"@font-feature-values\":\n return A2(wa, ib, A2(fc, g([\n i(Id(Jl(0)), r)\n ]), function(r) {\n return Xa(g([\n ab(r),\n A2(cc, function(n) {\n return Qa(A2(ne, i(Id(Jl(1)), n), r));\n }, Da(Cd(Wd))),\n A2(cc, function(n) {\n return Qa(A2(ne, i(qd, n), r));\n }, Da(ec(function(r) {\n return \"{\" !== r;\n }))),\n Pa(Ja(r))\n ]));\n }));\n default:\n return Pa(g(A2(Gd, r, zd) ? [\n i(Id(Jl(0)), r)\n ] : [\n i(qd, r)\n ]));\n }\n }, Eb = A2(wa, $b, Da(A2(Qd, Wd, vc(\"@\")))), Tb = function Tb(r) {\n return !(Vd(r) || jd(r) || \":\" === r || \";\" === r || \"}\" === r);\n }, Ab = {\n $: 6\n }, Lb = Pd(g([\n \"+\",\n \"-\",\n \"%\",\n \"*\",\n \"/\"\n ])), xb = function xb(r) {\n return A2(Gd, r, Lb);\n }, Sb = function Sb(r) {\n return Tb(r) && !(\"(\" === r || \")\" === r || \",\" === r || xb(r));\n }, Nb = function Nb(r) {\n return A2(cc, function(n) {\n return A2(ne, i(Id(ob), n), r);\n }, Da(A2(Qd, Sb, vc(\"#\"))));\n }, kb = function kb(r) {\n return \"(\" === r || \")\" === r || \":\" === r || \",\" === r || \"/\" === r;\n }, Rb = Pd(g([\n \"em\",\n \"ex\",\n \"ch\",\n \"rem\",\n \"vw\",\n \"vh\",\n \"vmin\",\n \"vmax\",\n \"cm\",\n \"mm\",\n \"q\",\n \"in\",\n \"pt\",\n \"pc\",\n \"px\",\n \"deg\",\n \"grad\",\n \"rad\",\n \"turn\",\n \"s\",\n \"ms\",\n \"Hz\",\n \"kHz\",\n \"dpi\",\n \"dpcm\",\n \"dppx\"\n ])), qb = function qb(r) {\n return ke(r) || \".\" === r;\n }, Ib = A2(Va, A2(Va, Pa(0), ec(qb)), ka(qb)), Db = A2(Va, A2(Va, Pa(0), fb(vc(\"-\"))), Ib), Cb = Xa(g([\n Ib,\n Db\n ])), Ob = A2(cc, function(r) {\n return i(Id(ob), r);\n }, Da(Cb)), Ub = function Ub(r) {\n return Xa(g([\n ab(r),\n A2(cc, Qa, mb(r)),\n A2(cc, function(n) {\n return Qa(A2(ne, n, r));\n }, Ob),\n A2(cc, Qa, Nb(r)),\n A2(cc, Qa, A2(wb, \"url\", r)),\n A2(cc, Qa, A2(wb, \"format\", r)),\n A2(cc, Qa, A2(wb, \"local\", r)),\n A2(cc, function(n) {\n return function(r) {\n return A2(Gd, r, Rb);\n }(n) ? Qa(A2(ne, i(Id(Ab), n), r)) : Qa(A2(ne, i(Id(yb), n), r));\n }, Da(Cd(Sb))),\n A2(cc, function(n) {\n return Qa(A2(ne, i(qd, n), r));\n }, Da(Cd(kb))),\n A2(cc, function(n) {\n return Qa(A2(ne, i(Id(Ab), n), r));\n }, Da(Cd(xb))),\n Pa(Ja(r))\n ]));\n }, Pb = A2(wa, function(r) {\n return A2(fc, g([\n r\n ]), Ub);\n }, A2(cc, function(r) {\n return i(qd, r);\n }, Da(Cd(Ye(\":\"))))), Mb = function Mb(r) {\n return Xa(g([\n ab(r),\n A2(cc, function(n) {\n return Qa(A2(ne, i(Id(nd), n), r));\n }, Da(Cd(Tb))),\n A2(cc, function(n) {\n return Qa(A2(ne, i(qd, n), r));\n }, Da(Cd(function(r) {\n return \";\" === r || \"/\" === r;\n }))),\n A2(cc, function(n) {\n return Qa(l(n, r));\n }, Pb),\n Pa(Ja(r))\n ]));\n }, Bb = A2(wa, function(r) {\n return A2(fc, g([\n r\n ]), Mb);\n }, A2(cc, function(r) {\n return i(qd, r);\n }, Da(Cd(function(r) {\n return \"{\" === r;\n })))), Gb = function Gb(r) {\n return {\n $: 2,\n a: r\n };\n }, jb = function jb(r) {\n return {\n $: 5,\n a: r\n };\n }, Hb = Pd(g([\n \"=\",\n \"~\",\n \"|\",\n \"^\",\n \"$\",\n \"*\"\n ])), Fb = F2(function(r, n) {\n return A3(Wo, pu, n, r);\n }), Vb = F2(function(r, n) {\n return A2(Fb, r, n);\n }), _b = Pd(g([\n \" \",\n \"\t\",\n \"\\n\"\n ])), Wb = A2(Ud, \"]\", A2(Vb, Hb, _b)), Yb = A2(cc, function(r) {\n return i(Id(Gb(jb(0))), r);\n }, Da(Cd(function(r) {\n return !A2(Gd, r, Wb);\n }))), zb = A2(cc, function(r) {\n return i(Id(Gb(jb(2))), r);\n }, Da(Xa(g([\n vc(\"~=\"),\n vc(\"|=\"),\n vc(\"^=\"),\n vc(\"$=\"),\n vc(\"*=\"),\n vc(\"=\")\n ])))), Kb = function Kb(r) {\n return Xa(g([\n ab(r),\n A2(cc, Ja, mb(r)),\n A2(cc, Ja, A2(cc, function(n) {\n return A2(ne, i(Id(Gb(jb(1))), n), r);\n }, Da(Cd(function(r) {\n return \"]\" !== r && !Vd(r);\n })))),\n Pa(Ja(r))\n ]));\n }, Xb = function Xb(r) {\n return Xa(g([\n ab(r),\n A2(cc, function(n) {\n return Qa(A2(ne, n, r));\n }, Yb),\n A2(wa, function(n) {\n return A2(cc, function(n) {\n return Qa(l(n, r));\n }, A2(fc, g([\n n\n ]), Kb));\n }, zb),\n Pa(Ja(r))\n ]));\n }, Jb = A2(wa, function(r) {\n return A2(fc, g([\n r\n ]), Xb);\n }, A2(cc, Ra(i(qd, \"[\")), vc(\"[\"))), Qb = {\n $: 2\n }, Zb = A2(cc, function(r) {\n return i(Qb, r);\n }, Da(A2(Qd, Wd, vc(\".\")))), rp = {\n $: 3\n }, np = A2(cc, function(r) {\n return i(rp, r);\n }, Da(Xa(g([\n vc(\"+\"),\n vc(\"~\"),\n vc(\">\")\n ])))), ep = {\n $: 0\n }, tp = A2(cc, function(r) {\n return i(ep, r);\n }, Da(Cd(Wd))), up = {\n $: 1\n }, ap = A2(cc, function(r) {\n return i(up, r);\n }, Da(A2(Qd, Wd, vc(\"#\")))), cp = {\n $: 7\n }, ip = A2(cc, function(r) {\n return i(cp, r);\n }, Da(A2(Qd, Wd, vc(\":\")))), op = {\n $: 6\n }, sp = A2(cc, function(r) {\n return i(op, r);\n }, Da(A2(Qd, Wd, vc(\"::\")))), fp = A2(cc, Ra(i({\n $: 4\n }, \"*\")), vc(\"*\")), lp = Xa(g([\n A2(cc, function(r) {\n var n = r.b;\n return g([\n i(Id(Gb(r.a)), n)\n ]);\n }, Xa(g([\n ap,\n Zb,\n tp,\n fp,\n np,\n sp,\n ip\n ]))),\n Jb\n ])), dp = A2(au, kc(A2(fc, d, function(r) {\n return Xa(g([\n ab(r),\n A2(cc, function(n) {\n return Qa(l(n, r));\n }, Eb),\n A2(cc, function(n) {\n return Qa(l(n, r));\n }, lp),\n A2(cc, function(n) {\n return Qa(l(n, r));\n }, Bb),\n A2(cc, function(n) {\n return Qa(A2(ne, i(qd, n), r));\n }, Da(ec(Ra(!0)))),\n Pa(Ja(r))\n ]));\n })), Kl(Rd(dd))), bp = A2(au, dp, Kl(st)), pp = A2(cc, function(r) {\n return g([\n i(Kd, r)\n ]);\n }, Da(A2(Qd, A2(Ni, pc, Hd), vc(\"--\")))), gp = A2(cc, function() {\n return g([\n i(Sd, \"\\n\")\n ]);\n }, vc(\"\\n\")), vp = eb({\n bQ: function bQ(r) {\n return i(Kd, r);\n },\n bT: \"-}\",\n b1: g([\n gp\n ]),\n b4: !0,\n b5: function b5(r) {\n return !Hd(r);\n },\n bw: \"{-\"\n }), hp = Xa(g([\n pp,\n vp\n ])), mp = Pd(g([\n \"|\",\n \".\",\n \"=\",\n \"\\\\\",\n \"/\",\n \"(\",\n \")\",\n \"-\",\n \">\",\n \"<\",\n \":\",\n \"+\",\n \"!\",\n \"$\",\n \"%\",\n \"&\",\n \"*\"\n ])), yp = function yp(r) {\n return A2(Gd, r, mp);\n }, wp = Da(Cd(yp)), $p = Pd(g([\n \",\",\n \"[\",\n \"]\",\n \"{\",\n \"}\"\n ])), Ep = function Ep(r) {\n return A2(Gd, r, $p);\n }, Tp = function Tp(r) {\n return !(Vd(r) || yp(r) || Ep(r) || function(r) {\n return '\"' === r || \"'\" === r;\n }(r));\n }, Ap = Da(A2(Qd, Tp, ec(Ne))), Lp = Da(Cd(Ep)), xp = Pd(g([\n \"+\",\n \"-\",\n \"/\",\n \"*\",\n \"=\",\n \".\",\n \"$\",\n \"<\",\n \">\",\n \":\",\n \"&\",\n \"|\",\n \"^\",\n \"?\",\n \"%\",\n \"#\",\n \"@\",\n \"~\",\n \"!\",\n \",\"\n ])), Sp = A2(cc, function(r) {\n return i(Id(5), r);\n }, Da(A2(Va, A2(Va, A2(Va, Pa(0), fb(vc(\"(\"))), fb(Cd(function(r) {\n return A2(Gd, r, xp);\n }))), fb(vc(\")\"))))), Np = Pd(g([\n \"as\",\n \"where\",\n \"let\",\n \"in\",\n \"if\",\n \"else\",\n \"then\",\n \"case\",\n \"of\",\n \"type\",\n \"alias\"\n ])), kp = function kp(r) {\n return A2(Gd, r, Np);\n }, Rp = Da(A2(Qd, Tp, ec(Se))), qp = Da(Cd(Tp)), Ip = Xa(g([\n A2(cc, function(r) {\n return i(Id(7), r);\n }, Da(Cb)),\n A2(cc, Ra(i(Id(3), \"()\")), vc(\"()\")),\n Sp,\n A2(cc, function(r) {\n return i(Id(1), r);\n }, wp),\n A2(cc, function(r) {\n return i(Id(2), r);\n }, Lp),\n A2(cc, function(r) {\n return i(Id(3), r);\n }, Ap),\n A2(cc, function(r) {\n return kp(r) ? i(Id(4), r) : i(qd, r);\n }, Rp),\n A2(cc, function(r) {\n return i(qd, r);\n }, qp)\n ])), Dp = A2(cc, function(r) {\n return g([\n i(Id(3), r)\n ]);\n }, Da(db)), Cp = {\n bQ: function bQ(r) {\n return i(Id(0), r);\n },\n bT: '\"',\n b1: g([\n gp,\n Dp\n ]),\n b4: !1,\n b5: function b5(r) {\n return !(Hd(r) || pb(r));\n },\n bw: '\"'\n }, Op = eb(Cp), Up = eb(s(Cp, {\n bT: \"'\",\n bw: \"'\"\n })), Pp = eb(s(Cp, {\n bT: '\"\"\"',\n bw: '\"\"\"'\n })), Mp = Xa(g([\n Pp,\n Op,\n Up\n ])), Bp = A2(cc, function() {\n return i(Sd, \"\\n\");\n }, vc(\"\\n\")), Gp = A2(cc, function(r) {\n return i(qd, r);\n }, Da(Cd(Fd))), jp = function jp(r) {\n return Xa(g([\n Hp(r),\n Pa(Ja(r))\n ]));\n }, Hp = function Hp(r) {\n return Xa(g([\n A2(cc, function(n) {\n return Qa(A2(ne, n, r));\n }, Gp),\n A2(wa, jp, A2(cc, function(n) {\n return A2(ne, n, r);\n }, Bp)),\n A2(cc, function(n) {\n return Qa(l(n, r));\n }, hp)\n ]));\n }, Fp = function Fp(r) {\n return Xa(g([\n Hp(r),\n A2(cc, function(n) {\n return Qa(l(n, r));\n }, Mp),\n A2(cc, function(n) {\n return Qa(A2(ne, n, r));\n }, Ip),\n Pa(Ja(r))\n ]));\n }, Vp = function Vp(r) {\n return !(Vd(r) || \"(\" === r || \")\" === r || \"-\" === r || \",\" === r);\n }, _p = Xa(g([\n A2(cc, Ra(i(Id(6), \"()\")), vc(\"()\")),\n A2(cc, Ra(i(Id(1), \"->\")), vc(\"->\")),\n A2(cc, function(r) {\n return i(qd, r);\n }, Da(Cd(function(r) {\n return \"(\" === r || \")\" === r || \"-\" === r || \",\" === r;\n }))),\n A2(cc, function(r) {\n return i(Id(6), r);\n }, Da(A2(Qd, Vp, ec(Ne)))),\n A2(cc, function(r) {\n return i(qd, r);\n }, Da(Cd(Vp)))\n ])), Wp = function Wp(r) {\n return Xa(g([\n Hp(r),\n A2(cc, function(n) {\n return Qa(A2(ne, n, r));\n }, _p),\n Pa(Ja(r))\n ]));\n }, Yp = function Yp(r) {\n return Xa(g([\n A2(cc, Ja, A2(wa, function(r) {\n return A2(fc, r, Wp);\n }, A2(cc, Ra(A2(ne, i(Id(1), \":\"), r)), vc(\":\")))),\n Hp(r),\n A2(cc, Ja, A2(fc, r, Fp)),\n Pa(Ja(r))\n ]));\n }, zp = function zp(r) {\n return \"-\" === r || \"{\" === r;\n }, Kp = Da(ec(zp)), Xp = function Xp(r) {\n return function(r) {\n var n = r.a, t = r.b, u = !vt(n);\n return function(r) {\n var a = A5(bc, n, r.c, r.cy, r.bI, r.b), c = a.a, _$i = a.b, o = a.c;\n return e(c, -1) || A3(xa, function(r) {\n return Re(r) || \"_\" === r;\n }, c, r.b) >= 0 ? A2(ha, !1, A2(Aa, r, t)) : A3(ma, u, 0, {\n bI: o,\n e: r.e,\n g: r.g,\n c: c,\n cy: _$i,\n b: r.b\n });\n };\n }(A2(dc, r, function(r) {\n return {\n $: 9,\n a: r\n };\n }(r)));\n }, Jp = function Jp(r) {\n return !(Vd(r) || zp(r) || \"(\" === r);\n }, Qp = function Qp(r) {\n return !(Vd(r) || zp(r) || \"(\" === r || \")\" === r || \",\" === r || \".\" === r);\n }, Zp = function Zp(r) {\n return Hd(r) || zp(r) || \"(\" === r || \")\" === r;\n }, rg = function rg(r) {\n var n = r.b;\n return Xa(g([\n ng(i(r.a, n)),\n Pa(Ja(n))\n ]));\n }, ng = function ng(r) {\n var n = r.a, _$e = r.b;\n return Xa(g([\n A2(cc, function(r) {\n return Qa(i(n, A2(ne, r, _$e)));\n }, Gp),\n A2(wa, rg, A2(cc, function(r) {\n return i(n, A2(ne, r, _$e));\n }, Bp)),\n A2(cc, function(r) {\n return Qa(i(n, l(r, _$e)));\n }, hp)\n ]));\n }, eg = function eg(r) {\n var n = r.a, _$e = r.b;\n return Xa(g([\n ng(i(n, _$e)),\n A2(cc, function(r) {\n return Qa(i(n + 1, r));\n }, A2(cc, Ra(A2(ne, i(qd, \"(\"), _$e)), vc(\"(\"))),\n A2(cc, function(r) {\n return n ? Qa(i(n - 1, r)) : Ja(r);\n }, A2(cc, Ra(A2(ne, i(qd, \")\"), _$e)), vc(\")\"))),\n A2(cc, function(r) {\n return Qa(i(n, A2(ne, r, _$e)));\n }, Xa(g([\n A2(cc, function(r) {\n return i(qd, r);\n }, Kp),\n A2(cc, function(r) {\n return i(qd, r);\n }, Da(Cd(A2(Ni, pc, Zp))))\n ]))),\n Pa(Ja(_$e))\n ]));\n }, tg = function tg(r) {\n return Xa(g([\n Hp(r),\n A2(cc, Ja, A2(cc, Ra(A2(ne, i(qd, \")\"), r)), vc(\")\"))),\n A2(cc, function(n) {\n return Qa(A2(ne, n, r));\n }, Xa(g([\n Sp,\n A2(cc, function(r) {\n return i(qd, r);\n }, Kp),\n A2(cc, function(r) {\n return i(qd, r);\n }, Da(Cd(function(r) {\n return \",\" === r || \".\" === r;\n }))),\n A2(cc, function(r) {\n return i(Id(6), r);\n }, Da(A2(Qd, Qp, ec(Ne)))),\n A2(cc, function(r) {\n return i(Id(5), r);\n }, Da(Cd(Qp)))\n ]))),\n A2(cc, Qa, A2(wa, function(r) {\n return A2(fc, i(0, r), eg);\n }, A2(cc, Ra(A2(ne, i(qd, \"(\"), r)), vc(\"(\")))),\n Pa(Ja(r))\n ]));\n }, ug = function ug(r) {\n return Xa(g([\n Hp(r),\n A2(cc, Qa, A2(wa, function(r) {\n return A2(fc, r, tg);\n }, A2(cc, Ra(A2(ne, i(qd, \"(\"), r)), vc(\"(\")))),\n A2(cc, function(n) {\n return Qa(A2(ne, n, r));\n }, Xa(g([\n A2(cc, function(r) {\n return i(qd, r);\n }, Kp),\n A2(cc, Ra(i(Id(4), \"exposing\")), Xp(\"exposing\")),\n A2(cc, Ra(i(Id(4), \"as\")), Xp(\"as\")),\n A2(cc, function(r) {\n return i(qd, r);\n }, Da(Cd(Jp)))\n ]))),\n Pa(Ja(r))\n ]));\n }, ag = F2(function(r, n) {\n return \"module\" === n ? A2(fc, A2(ne, i(Id(4), n), r), ug) : A2(fc, A2(ne, i(Id(5), n), r), Yp);\n }), cg = function cg(r) {\n return Xa(g([\n Hp(r),\n A2(cc, Ja, A2(wa, ag(r), Rp)),\n A2(cc, Ja, A2(fc, r, Fp)),\n Pa(Ja(r))\n ]));\n }, ig = F2(function(r, n) {\n return \"module\" === n || \"import\" === n ? A2(fc, A2(ne, i(Id(4), n), r), ug) : \"port\" === n ? A2(fc, A2(ne, i(Id(4), n), r), cg) : kp(n) ? A2(fc, A2(ne, i(Id(4), n), r), Fp) : A2(fc, A2(ne, i(Id(5), n), r), Yp);\n }), og = A2(au, kc(A2(fc, d, function(r) {\n return Xa(g([\n A2(cc, function(n) {\n return Qa(A2(ne, n, r));\n }, Gp),\n A2(cc, function(n) {\n return Qa(A2(ne, n, r));\n }, Bp),\n A2(cc, function(n) {\n return Qa(l(n, r));\n }, hp),\n A2(cc, Qa, A2(wa, ig(r), Rp)),\n A2(cc, Qa, A2(wa, function(n) {\n return A2(fc, l(n, r), Fp);\n }, Mp)),\n A2(cc, Qa, A2(wa, function(n) {\n return A2(fc, A2(ne, n, r), Fp);\n }, Ip)),\n Pa(Ja(r))\n ]));\n })), Kl(Rd(bd))), sg = A2(au, og, Kl(st)), fg = Pd(g([\n \"{\",\n \"}\",\n \"(\",\n \")\",\n \"[\",\n \"]\",\n \",\",\n \";\"\n ])), lg = A2(cc, function(r) {\n return i(qd, r);\n }, Da(Cd(function(r) {\n return A2(Gd, r, fg);\n }))), dg = function dg(r) {\n return \"/\" === r;\n }, bg = Pd(g([\n \"+\",\n \"-\",\n \"*\",\n \"/\",\n \"=\",\n \"!\",\n \"<\",\n \">\",\n \"&\",\n \"|\",\n \"?\",\n \"^\",\n \":\",\n \"~\",\n \"%\",\n \".\"\n ])), pg = A2(Vb, bg, fg), gg = function gg(r) {\n return !(function(r) {\n return A2(Gd, r, pg);\n }(r) || function(r) {\n return '\"' === r || \"'\" === r || \"`\" === r;\n }(r) || dg(r) || Vd(r));\n }, vg = A2(cc, function(r) {\n return g([\n i(Kd, r)\n ]);\n }, Da(A2(Qd, A2(Ni, pc, Hd), vc(\"//\")))), hg = A2(cc, function() {\n return g([\n i(Sd, \"\\n\")\n ]);\n }, vc(\"\\n\")), mg = eb({\n bQ: function bQ(r) {\n return i(Kd, r);\n },\n bT: \"*/\",\n b1: g([\n hg\n ]),\n b4: !1,\n b5: function b5(r) {\n return !Hd(r);\n },\n bw: \"/*\"\n }), yg = Xa(g([\n vg,\n mg\n ])), wg = function wg(r) {\n return Xa(g([\n A2(cc, function(n) {\n return Qa(A2(ne, i(qd, n), r));\n }, Da(Cd(Fd))),\n A2(cc, function(n) {\n return Qa(l(n, r));\n }, hg),\n A2(cc, function(n) {\n return Qa(l(n, r));\n }, yg)\n ]));\n }, $g = function $g(r) {\n return Xa(g([\n wg(r),\n A2(cc, function(n) {\n return Qa(A2(ne, i(Id(8), n), r));\n }, Da(Cd(gg))),\n Pa(Ja(r))\n ]));\n }, Eg = function Eg(r) {\n return Xa(g([\n wg(r),\n A2(wa, function(n) {\n return \"extends\" === n ? A2(cc, Qa, A2(fc, A2(ne, i(Id(2), n), r), $g)) : Pa(Qa(A2(ne, i(Id(5), n), r)));\n }, Da(Cd(gg))),\n Pa(Ja(r))\n ]));\n }, Tg = function Tg(r) {\n return Xa(g([\n wg(r),\n A2(cc, function(n) {\n return Qa(A2(ne, i(Id(7), n), r));\n }, Da(Cd(function(r) {\n return !(dg(r) || Vd(r) || \",\" === r || \")\" === r);\n }))),\n A2(cc, function(n) {\n return Qa(A2(ne, i(qd, n), r));\n }, Da(Cd(function(r) {\n return \"/\" === r || \",\" === r;\n }))),\n Pa(Ja(r))\n ]));\n }, Ag = function Ag(r) {\n return Xa(g([\n wg(r),\n A2(cc, function(n) {\n return Qa(A2(ne, i(Id(5), n), r));\n }, Da(Cd(gg))),\n A2(cc, function() {\n return Qa(A2(ne, i(Id(2), \"*\"), r));\n }, vc(\"*\")),\n A2(cc, Qa, A2(wa, function() {\n return A2(fc, A2(ne, i(qd, \"(\"), r), Tg);\n }, vc(\"(\"))),\n Pa(Ja(r))\n ]));\n }, Lg = F3(function(r, n, e) {\n return Xa(g([\n wg(e),\n A2(cc, function() {\n return Ja(l(A2(ne, i(qd, \"(\"), e), A2(ne, i(Id(4), r), n)));\n }, vc(\"(\")),\n Pa(Ja(l(e, A2(ne, i(qd, r), n))))\n ]));\n }), xg = Pd(g([\n \"var\",\n \"const\",\n \"let\"\n ])), Sg = Pd(g([\n \"break\",\n \"do\",\n \"instanceof\",\n \"typeof\",\n \"case\",\n \"else\",\n \"new\",\n \"catch\",\n \"finally\",\n \"return\",\n \"void\",\n \"continue\",\n \"for\",\n \"switch\",\n \"while\",\n \"debugger\",\n \"this\",\n \"with\",\n \"default\",\n \"if\",\n \"throw\",\n \"delete\",\n \"in\",\n \"try\",\n \"enum\",\n \"extends\",\n \"export\",\n \"import\",\n \"implements\",\n \"private\",\n \"public\",\n \"yield\",\n \"interface\",\n \"package\",\n \"protected\"\n ])), Ng = Pd(g([\n \"true\",\n \"false\",\n \"null\",\n \"undefined\",\n \"NaN\",\n \"Infinity\"\n ])), kg = F2(function(r, n) {\n return \"function\" === n || \"static\" === n ? A2(fc, A2(ne, i(Id(3), n), r), Ag) : \"class\" === n ? A2(fc, A2(ne, i(Id(3), n), r), Eg) : \"this\" === n || \"super\" === n ? Pa(A2(ne, i(Id(7), n), r)) : \"constructor\" === n ? A2(fc, A2(ne, i(Id(5), n), r), Ag) : A2(Gd, n, Sg) ? Pa(A2(ne, i(Id(2), n), r)) : A2(Gd, n, xg) ? Pa(A2(ne, i(Id(3), n), r)) : function(r) {\n return A2(Gd, r, Ng);\n }(n) ? Pa(A2(ne, i(Id(6), n), r)) : A2(fc, d, A2(Lg, n, r));\n }), Rg = A2(cc, function(r) {\n return i(Id(0), r);\n }, Da(Cb)), qg = A2(cc, function(r) {\n return i(Id(2), r);\n }, Da(Cd(function(r) {\n return A2(Gd, r, bg);\n }))), Ig = A2(cc, function(r) {\n return g([\n i(Id(6), r)\n ]);\n }, Da(db)), Dg = {\n bQ: function bQ(r) {\n return i(Id(1), r);\n },\n bT: \"'\",\n b1: g([\n hg,\n Ig\n ]),\n b4: !1,\n b5: function b5(r) {\n return !(Hd(r) || pb(r));\n },\n bw: \"'\"\n }, Cg = eb(s(Dg, {\n bT: '\"',\n bw: '\"'\n })), Og = eb(Dg), Ug = eb(s(Dg, {\n bT: \"`\",\n b1: g([\n hg,\n Ig\n ]),\n b5: function b5(r) {\n return !(Hd(r) || pb(r));\n },\n bw: \"`\"\n })), Pg = Xa(g([\n Og,\n Cg,\n Ug\n ])), Mg = A2(au, kc(A2(fc, d, function(r) {\n return Xa(g([\n wg(r),\n A2(cc, function(n) {\n return Qa(l(n, r));\n }, Pg),\n A2(cc, function(n) {\n return Qa(A2(ne, n, r));\n }, Xa(g([\n qg,\n lg,\n Rg\n ]))),\n A2(cc, Qa, A2(wa, kg(r), Da(Cd(gg)))),\n Pa(Ja(r))\n ]));\n })), Kl(Rd(pd))), Bg = A2(au, Mg, Kl(st)), Gg = {\n $: 5\n }, jg = Bn, Hg = Gn, Fg = F2(function(r, n) {\n return {\n bI: n.bI + (r - n.c),\n e: n.e,\n g: n.g,\n c: r,\n cy: n.cy,\n b: n.b\n };\n }), Vg = Mn, _g = Pn, Wg = F2(function(r, n) {\n if (A3(_g, 101, r, n) || A3(_g, 69, r, n)) {\n var t = r + 1, u = A3(_g, 43, t, n) || A3(_g, 45, t, n) ? t + 1 : t, a = A2(Vg, u, n);\n return e(u, a) ? -a : a;\n }\n return r;\n }), Yg = F2(function(r, n) {\n return A2(Wg, A3(_g, 46, r, n) ? A2(Vg, r + 1, n) : r, n);\n }), zg = F5(function(r, n, t, u, c) {\n var _$i = u.a, o = u.b;\n if (1 === n.$) return A2(ha, !0, A2(Aa, c, n.a));\n var _$s = n.a;\n return e(t, _$i) ? A2(ha, 0 > a(c.c, t), A2(Aa, c, r)) : A3(ma, !0, _$s(o), A2(Fg, _$i, c));\n }), Kg = F4(function(r, n, e, t) {\n return A2($a, Ta, A4(Ea, r, n, e, t));\n }), Xg = F6(function(r, n, t, u, a, c) {\n var _$i = a.a, o = A2(Yg, _$i, c.b);\n if (0 > o) return A2(ha, !0, A4(Kg, c.cy, c.bI - (o + c.c), r, c.e));\n if (e(c.c, o)) return A2(ha, !1, A2(Aa, c, n));\n if (e(_$i, o)) return A5(zg, r, t, c.c, a, c);\n if (1 === u.$) return A2(ha, !0, A2(Aa, c, r));\n var _$s = u.a, f = Ma(A3(bt, c.c, o, c.b));\n return 1 === f.$ ? A2(ha, !0, A2(Aa, c, r)) : A3(ma, !0, _$s(f.a), A2(Fg, o, c));\n }), Jg = A2(F2(function(r, n) {\n var _$e;\n return _$e = {\n bD: ue(n),\n bW: r,\n bX: oe(st),\n b_: ue(n),\n b2: oe(je),\n c8: n,\n cg: ue(n)\n }, function(r) {\n if (A3(_g, 48, r.c, r.b)) {\n var _$n = r.c + 1, t = _$n + 1;\n return A3(_g, 120, _$n, r.b) ? A5(zg, _$e.c8, _$e.b_, t, A2(Hg, t, r.b), r) : A3(_g, 111, _$n, r.b) ? A5(zg, _$e.c8, _$e.cg, t, A3(jg, 8, t, r.b), r) : A3(_g, 98, _$n, r.b) ? A5(zg, _$e.c8, _$e.bD, t, A3(jg, 2, t, r.b), r) : A6(Xg, _$e.c8, _$e.bW, _$e.b2, _$e.bX, i(_$n, 0), r);\n }\n return A6(Xg, _$e.c8, _$e.bW, _$e.b2, _$e.bX, A3(jg, 10, r.c, r.b), r);\n };\n }), Gg, Gg), Qg = A2(Va, Pa(0), fb(Jg)), Zg = A2(Va, A2(Va, Pa(0), fb(vc(\"-\"))), Qg), rv = Xa(g([\n Qg,\n Zg,\n Cb\n ])), nv = A2(cc, function(r) {\n return i(Id(2), r);\n }, Da(rv)), ev = A2(cc, function() {\n return i(Sd, \"\\n\");\n }, vc(\"\\n\")), tv = function tv(r) {\n return g([\n r\n ]);\n }, uv = Pd(g([\n '\"',\n \"\\\\\",\n \"/\",\n \"b\",\n \"f\",\n \"n\",\n \"r\",\n \"t\",\n \"u\"\n ])), av = A2(Va, A2(Va, Pa(0), fb(vc(\"\\\\\"))), ec(function(r) {\n return A2(Gd, r, uv);\n })), cv = A2(cc, function(r) {\n return g([\n i(Id(1), r)\n ]);\n }, Da(av)), iv = F2(function(r, n) {\n return A2(cc, function(r) {\n return l(r, n);\n }, eb(function(r) {\n return {\n bQ: function bQ(n) {\n return i(Id(r), n);\n },\n bT: '\"',\n b1: g([\n A2(cc, tv, ev),\n cv\n ]),\n b4: !1,\n b5: function b5(r) {\n return !(Hd(r) || pb(r));\n },\n bw: '\"'\n };\n }(r)));\n }), ov = A2(cc, function(r) {\n return i(qd, r);\n }, Da(Cd(Fd))), sv = Xa(g([\n ov,\n ev\n ])), fv = function fv(r) {\n return Xa(g([\n A2(cc, function(n) {\n return Qa(A2(ne, n, r));\n }, sv),\n A2(cc, function(n) {\n return Qa(A2(ne, n, r));\n }, A2(cc, function() {\n return i(Id(7), \",\");\n }, vc(\",\"))),\n A2(cc, function(n) {\n return Ja(A2(ne, n, r));\n }, A2(cc, function() {\n return i(Id(7), \"]\");\n }, vc(\"]\"))),\n A2(cc, function(n) {\n return Qa(l(n, r));\n }, dv()),\n Pa(Ja(r))\n ]));\n }, lv = function lv(r) {\n return Xa(g([\n A2(cc, function(n) {\n return Qa(A2(ne, n, r));\n }, sv),\n A2(cc, Qa, A2(iv, 5, r)),\n A2(cc, Qa, A2(wa, function() {\n var n = A2(ne, i(Id(6), \":\"), r);\n return A2(cc, function(r) {\n return l(r, n);\n }, Xa(g([\n A2(wa, function(r) {\n return Xa(g([\n A2(cc, function(n) {\n return l(n, g([\n r\n ]));\n }, dv()),\n Pa(g([\n r\n ]))\n ]));\n }, sv),\n dv(),\n Pa(d)\n ])));\n }, vc(\":\"))),\n A2(cc, function(n) {\n return Qa(A2(ne, n, r));\n }, A2(cc, function() {\n return i(Id(6), \",\");\n }, vc(\",\"))),\n A2(cc, function(n) {\n return Ja(A2(ne, n, r));\n }, A2(cc, function() {\n return i(Id(6), \"}\");\n }, vc(\"}\"))),\n Pa(Ja(r))\n ]));\n };\n function dv() {\n return Xa(g([\n A2(iv, 0, d),\n A2(cc, function(r) {\n return g([\n r\n ]);\n }, nv),\n pv(),\n bv(),\n A2(cc, function(r) {\n return g([\n i(Id(4), r)\n ]);\n }, Da(Xp(\"null\"))),\n A2(cc, function(r) {\n return g([\n i(Id(3), r)\n ]);\n }, Da(Xa(g([\n Xp(\"true\"),\n Xp(\"false\")\n ]))))\n ]));\n }\n function bv() {\n return A2(wa, function() {\n return A2(fc, g([\n i(Id(7), \"[\")\n ]), fv);\n }, vc(\"[\"));\n }\n function pv() {\n return A2(wa, function() {\n return A2(fc, g([\n i(Id(6), \"{\")\n ]), lv);\n }, vc(\"{\"));\n }\n var gv = dv();\n dv = function dv() {\n return gv;\n };\n var vv = bv();\n bv = function bv() {\n return vv;\n };\n var hv = pv();\n pv = function pv() {\n return hv;\n };\n var mv, yv, wv = A2(au, kc(A2(fc, d, function(r) {\n return Xa(g([\n A2(cc, function(n) {\n return Qa(A2(ne, n, r));\n }, sv),\n A2(cc, function(n) {\n return Qa(l(n, r));\n }, hv),\n A2(cc, function(n) {\n return Qa(A2(ne, i(qd, n), r));\n }, Da(ec(Ra(!0)))),\n Pa(Ja(r))\n ]));\n })), Kl(Rd(function(r) {\n switch(r){\n case 0:\n return i(3, \"json-s\");\n case 1:\n return i(2, \"json-e\");\n case 2:\n return i(2, \"json-n\");\n case 3:\n return i(4, \"json-b\");\n case 4:\n return i(4, \"json-null\");\n case 5:\n return i(5, \"json-k\");\n case 6:\n return i(0, \"json-o\");\n default:\n return i(0, \"json-a\");\n }\n }))), $v = A2(au, wv, Kl(st)), Ev = A2(cc, function() {\n return i(Sd, \"\\n\");\n }, vc(\"\\n\")), Tv = A2(cc, function(r) {\n return i(qd, r);\n }, Da(Cd(Fd))), Av = Xa(g([\n Tv,\n Ev\n ])), Lv = A2(au, kc(A2(fc, d, function(r) {\n return Xa(g([\n A2(cc, function(n) {\n return Qa(A2(ne, n, r));\n }, Av),\n A2(cc, function(n) {\n return Qa(A2(ne, i(qd, n), r));\n }, Da(ec(Ra(!0)))),\n Pa(Ja(r))\n ]));\n })), Kl(Rd(gd))), xv = A2(au, Lv, Kl(st)), Sv = Pd(g([\n \"{\",\n \"}\",\n \"(\",\n \")\",\n \"[\",\n \"]\",\n \",\",\n \";\"\n ])), Nv = A2(cc, function(r) {\n return i(qd, r);\n }, Da(Cd(function(r) {\n return A2(Gd, r, Sv);\n }))), kv = function kv(r) {\n return \"#\" === r;\n }, Rv = Pd(g([\n \"+\",\n \"-\",\n \"*\",\n \"/\",\n \"=\",\n \"!\",\n \"<\",\n \">\",\n \"&\",\n \"|\",\n \"?\",\n \"^\",\n \":\",\n \"~\",\n \"%\",\n \".\"\n ])), qv = A2(Vb, Rv, Sv), Iv = function Iv(r) {\n return !(function(r) {\n return A2(Gd, r, qv);\n }(r) || function(r) {\n return '\"' === r || \"'\" === r;\n }(r) || kv(r) || Vd(r));\n }, Dv = A2(cc, function(r) {\n return g([\n i(Kd, r)\n ]);\n }, Da(A2(Qd, A2(Ni, pc, Hd), vc(\"#\")))), Cv = A2(cc, function() {\n return g([\n i(Sd, \"\\n\")\n ]);\n }, vc(\"\\n\")), Ov = eb({\n bQ: function bQ(r) {\n return i(Kd, r);\n },\n bT: \"'''\",\n b1: g([\n Cv\n ]),\n b4: !1,\n b5: function b5(r) {\n return !Hd(r);\n },\n bw: \"'''\"\n }), Uv = Xa(g([\n Dv,\n Ov\n ])), Pv = function Pv(r) {\n return Xa(g([\n A2(cc, function(n) {\n return Qa(A2(ne, i(qd, n), r));\n }, Da(Cd(Fd))),\n A2(cc, function(n) {\n return Qa(l(n, r));\n }, Cv),\n A2(cc, function(n) {\n return Qa(l(n, r));\n }, Uv)\n ]));\n }, Mv = function Mv(r) {\n return Xa(g([\n Pv(r),\n A2(cc, function(n) {\n return Qa(A2(ne, i(Id(5), n), r));\n }, Da(Cd(Iv))),\n Pa(Ja(r))\n ]));\n }, Bv = function Bv(r) {\n return Xa(g([\n Pv(r),\n A2(cc, function(n) {\n return Qa(A2(ne, i(Id(7), n), r));\n }, Da(Cd(function(r) {\n return !(kv(r) || Vd(r) || \",\" === r || \")\" === r);\n }))),\n A2(cc, function(n) {\n return Qa(A2(ne, i(qd, n), r));\n }, Da(Cd(function(r) {\n return \"/\" === r || \",\" === r;\n }))),\n Pa(Ja(r))\n ]));\n }, Gv = function Gv(r) {\n return Xa(g([\n Pv(r),\n A2(cc, function(n) {\n return Qa(A2(ne, i(Id(5), n), r));\n }, Da(Cd(Iv))),\n A2(cc, Qa, A2(wa, function() {\n return A2(fc, A2(ne, i(qd, \"(\"), r), Bv);\n }, vc(\"(\"))),\n Pa(Ja(r))\n ]));\n }, jv = function jv(r) {\n return Xa(g([\n Pv(r),\n A2(cc, function() {\n return Ja(A2(ne, i(qd, \"(\"), r));\n }, vc(\"(\")),\n Pa(Ja(r))\n ]));\n }, Hv = Pd(g([\n \"finally\",\n \"is\",\n \"return\",\n \"continue\",\n \"for\",\n \"lambda\",\n \"try\",\n \"from\",\n \"nonlocal\",\n \"while\",\n \"and\",\n \"del\",\n \"global\",\n \"not\",\n \"with\",\n \"as\",\n \"elif\",\n \"if\",\n \"or\",\n \"yield\",\n \"assert\",\n \"else\",\n \"import\",\n \"pass\",\n \"break\",\n \"except\",\n \"in\",\n \"raise\"\n ])), Fv = Pd(g([\n \"True\",\n \"False\",\n \"None\"\n ])), Vv = F2(function(r, n) {\n return \"def\" === n ? A2(fc, A2(ne, i(Id(3), n), r), Gv) : \"class\" === n ? A2(fc, A2(ne, i(Id(3), n), r), Mv) : A2(Gd, n, Hv) ? Pa(A2(ne, i(Id(2), n), r)) : A2(Gd, n, Fv) ? Pa(A2(ne, i(Id(6), n), r)) : A2(fc, A2(ne, i(Id(4), n), r), jv);\n }), _v = A2(cc, function(r) {\n return i(Id(0), r);\n }, Da(Cb)), Wv = A2(cc, function(r) {\n return i(Id(2), r);\n }, Da(Cd(function(r) {\n return A2(Gd, r, Rv);\n }))), Yv = {\n bQ: function bQ(r) {\n return i(Id(1), r);\n },\n bT: \"'\",\n b1: g([\n Cv\n ]),\n b4: !1,\n b5: function b5(r) {\n return !(Hd(r) || pb(r));\n },\n bw: \"'\"\n }, zv = eb(s(Yv, {\n bT: '\"',\n bw: '\"'\n })), Kv = eb(Yv), Xv = Xa(g([\n Kv,\n zv\n ])), Jv = A2(au, kc(A2(fc, d, function(r) {\n return Xa(g([\n Pv(r),\n A2(cc, function(n) {\n return Qa(l(n, r));\n }, Xv),\n A2(cc, function(n) {\n return Qa(A2(ne, n, r));\n }, Xa(g([\n Wv,\n Nv,\n _v\n ]))),\n A2(cc, Qa, A2(wa, Vv(r), Da(Cd(Iv)))),\n Pa(Ja(r))\n ]));\n })), Kl(Rd(vd))), Qv = A2(au, Jv, Kl(st)), Zv = Xa(A2(Rt, A2(au, vc, A2(au, Qd(A2(Ni, pc, Hd)), A2(au, Da, cc(function(r) {\n return g([\n i(Kd, r)\n ]);\n })))), g([\n \"--\",\n \"$\",\n \"#\"\n ]))), rh = A2(cc, function() {\n return g([\n i(Sd, \"\\n\")\n ]);\n }, vc(\"\\n\")), nh = eb({\n bQ: function bQ(r) {\n return i(Kd, r);\n },\n bT: \"*/\",\n b1: g([\n rh\n ]),\n b4: !1,\n b5: A2(Ni, pc, Hd),\n bw: \"/*\"\n }), eh = Xa(g([\n Zv,\n nh\n ])), th = Pd(g([\n \";\",\n \"[\",\n \"]\",\n \"(\",\n \")\",\n \"`\",\n \",\",\n \".\"\n ])), uh = function uh(r) {\n return A2(Gd, r, th);\n }, ah = function ah(r) {\n return !(Vd(r) || uh(r));\n }, ch = Pd(g([\n \"AVG\",\n \"COUNT\",\n \"FIRST\",\n \"FORMAT\",\n \"LAST\",\n \"LCASE\",\n \"LEN\",\n \"MAX\",\n \"MID\",\n \"MIN\",\n \"MOD\",\n \"NOW\",\n \"ROUND\",\n \"SUM\",\n \"UCASE\"\n ])), ih = function ih(r) {\n return r.toUpperCase();\n }, oh = F4(function(r, n, e, t) {\n return {\n c6: n,\n aM: r,\n c9: e,\n cE: t\n };\n }), sh = Kn, fh = zn, lh = /.^/, dh = sh(A2(nu, lh, A2(fh, {\n bE: !0,\n ce: !1\n }, \"^(ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:_INSERT|COL)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURNS?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)$\"))), bh = Pd(g([\n \"TRUE\",\n \"FALSE\",\n \"NULL\"\n ])), ph = sh(A2(nu, lh, A2(fh, {\n bE: !0,\n ce: !1\n }, \"^([-+*\\\\/=%^~]|&&?|\\\\|\\\\|?|!=?|<(?:=>?|<|>)?|>[>=]?|AND|BETWEEN|IN|LIKE|NOT|OR|IS|DIV|REGEXP|RLIKE|SOUNDS LIKE|XOR)$\"))), gh = F2(function(r, n) {\n return ph(n) ? Pa(A2(ne, i(Id(3), n), r)) : A2(Gd, ih(n), ch) ? Pa(A2(ne, i(Id(4), n), r)) : dh(n) ? Pa(A2(ne, i(Id(2), n), r)) : A2(Gd, ih(n), bh) ? Pa(A2(ne, i(Id(6), n), r)) : Pa(A2(ne, i(qd, n), r));\n }), vh = A2(cc, function() {\n return i(Sd, \"\\n\");\n }, vc(\"\\n\")), hh = A2(Va, A2(Va, Pa(0), fb(vc(\"0x\"))), Cd(function(r) {\n var n = xe(r);\n return n >= 48 && 57 >= n || n >= 65 && 70 >= n || n >= 97 && 102 >= n;\n })), mh = A2(cc, function(r) {\n return i(Id(0), r);\n }, Da(Xa(g([\n hh,\n Cb\n ])))), yh = A2(cc, function(r) {\n return i(Id(5), r);\n }, Da(Cd(uh))), wh = A2(cc, function(r) {\n return i(qd, r);\n }, Da(Cd(Fd))), $h = A2(cc, function(r) {\n return g([\n i(Id(4), r)\n ]);\n }, Da(db)), Eh = {\n bQ: function bQ(r) {\n return i(Id(1), r);\n },\n bT: \"'\",\n b1: g([\n rh,\n $h\n ]),\n b4: !1,\n b5: function b5(r) {\n return !(Hd(r) || pb(r));\n },\n bw: \"'\"\n }, Th = eb(s(Eh, {\n bT: '\"',\n bw: '\"'\n })), Ah = eb(Eh), Lh = Xa(g([\n Ah,\n Th\n ])), xh = function xh(r) {\n return Xa(g([\n Sh(r),\n Pa(Ja(r))\n ]));\n }, Sh = function Sh(r) {\n return Xa(g([\n A2(cc, function(n) {\n return Qa(A2(ne, n, r));\n }, wh),\n A2(wa, xh, A2(cc, function(n) {\n return A2(ne, n, r);\n }, vh)),\n A2(cc, function(n) {\n return Qa(l(n, r));\n }, eh)\n ]));\n }, Nh = function Nh(r) {\n return Xa(g([\n Sh(r),\n A2(cc, function(n) {\n return Qa(l(n, r));\n }, Lh),\n Pa(Ja(r))\n ]));\n }, kh = A2(au, kc(A2(fc, d, function(r) {\n return Xa(g([\n A2(cc, function(n) {\n return Qa(A2(ne, n, r));\n }, wh),\n A2(cc, function(n) {\n return Qa(A2(ne, n, r));\n }, vh),\n A2(cc, function(n) {\n return Qa(A2(ne, n, r));\n }, yh),\n A2(cc, function(n) {\n return Qa(A2(ne, n, r));\n }, mh),\n A2(cc, function(n) {\n return Qa(l(n, r));\n }, eh),\n A2(cc, Qa, A2(wa, function(n) {\n return A2(fc, l(n, r), Nh);\n }, Lh)),\n A2(cc, Qa, A2(wa, gh(r), Da(Cd(ah)))),\n Pa(Ja(r))\n ]));\n })), Kl(Rd(hd))), Rh = A2(au, kh, Kl(st)), qh = A2(cc, function() {\n return i(Sd, \"\\n\");\n }, vc(\"\\n\")), Ih = {\n bQ: function bQ(r) {\n return i(Id(2), r);\n },\n bT: '\"',\n b1: g([\n A2(cc, tv, qh)\n ]),\n b4: !1,\n b5: A2(Ni, pc, Hd),\n bw: '\"'\n }, Dh = eb(s(Ih, {\n bQ: function bQ(r) {\n return i(Kd, r);\n },\n bT: \"-->\",\n bw: \"\"))));\n }), sy = F3(function(r, n, e) {\n return {\n bm: n,\n a2: e,\n cf: r\n };\n }), fy = F2(function(r, n) {\n return A2(_m, n, Zm(r));\n }), ly = A2(Mm, A2(fy, \"\", A2(Fm, A2(Gm, ey('=\"'), cy('[^\"]*')), ey('\"'))), A2(Pm, Ts, cy(\"[^=>/]+\"))), dy = F2(function(r, n) {\n return A2(Mm, r, A2(Pm, Om(Ra), n));\n }), by = F2(function(r, n) {\n return A2(Mm, jm(A2(dy, n, r)), A2(Pm, ne, n));\n }), py = F2(function(r, n) {\n return A2(_m, A2(by, r, n), Zm(d));\n }), gy = A3(Bm, Mm, A2(Mm, cy(\"[^/>\\\\s]+\"), A2(Pm, F3(function(r, n, e) {\n return A3(sy, n, e, d);\n }), ey(\"<\"))), A2(Fm, A2(Gm, iy, A2(py, iy, ly)), iy)), vy = function vy(r) {\n return {\n $: 1,\n a: r\n };\n }, hy = ry(function() {\n return A2(Pm, vy, A2(Gm, iy, cy(\"[^<]+\")));\n }), my = function my(r) {\n var n = A2(Pm, function(n) {\n return s(r, {\n a2: n\n });\n }, A2(Fm, A2(Fm, A2(Gm, A2(Gm, iy, ey(\">\")), jm(wy())), iy), ey(\"\")));\n return ry(function() {\n return Wm(g([\n A2(Gm, A2(Gm, iy, ey(\"/>\")), Zm(r)),\n n\n ]));\n });\n };\n function yy() {\n return ry(function() {\n return A2(Pm, Hm, A2(Cm, my, A2(Mm, gy, A2(Pm, Bm(Ra), iy))));\n });\n }\n function wy() {\n return ry(function() {\n return Wm(g([\n hy,\n oy,\n yy()\n ]));\n });\n }\n var $y = yy();\n yy = function yy() {\n return $y;\n };\n var Ey = wy();\n wy = function wy() {\n return Ey;\n };\n var Ty, Ay, Ly, xy, Sy, Ny = F3(function(r, n, e) {\n return {\n bO: r,\n C: n,\n V: e\n };\n }), ky = F3(function(r, n, e) {\n var t = A3(Dm, r, n, function(r) {\n return A3(Ny, r, r, 0);\n }(e));\n return t.c.$ ? ue(o(t.a, t.b, t.c.a)) : oe(o(t.a, t.b, t.c.a));\n }), Ry = A2(Pm, Qm, A2(Gm, A2(Gm, iy, ey(\"\")))), qy = Fr(\"http://www.w3.org/2000/svg\"), Iy = qy(\"svg\"), Dy = function Dy(r) {\n return r.$ || r.a.$ ? A2(Js, g([\n js(\"X5\")\n ]), d) : function(r) {\n var n = A2(Nm, function(r) {\n for(;;){\n if (!r.b) return ue(\"No svg found\");\n if (r.a.$) r = _$e = r.b;\n else {\n var n = r.a.a, _$e = r.b;\n if (\"svg\" === n.cf) return oe(A2(Iy, A2(Rt, qm, n.bm), A2(Rt, Im, n.a2)));\n r = _$e;\n }\n }\n }, function(r) {\n var n = A3(ky, A2(Gm, A2(fy, \"\", Ry), jm(Ey)), d, r);\n return n.$ ? ue(A2(ve, \" or \", n.a.c)) : oe(n.a.c);\n }(r));\n return n.$ ? A2(Js, g([\n js(\"X6\")\n ]), d) : n.a;\n }(r.a.a);\n }, Cy = F4(function(r, n, e, t) {\n var u = function() {\n switch(e){\n case 1:\n return \"\\u2022 \";\n case 2:\n return \"\\u25CA \";\n case 3:\n return \"\\u2020 \";\n case 4:\n return \"\\u2021 \";\n default:\n return \"N. \";\n }\n }();\n return A2($m, g([\n js(\"mm-ulist-item\"),\n Wl(e - 1),\n Hl(n),\n A2(Qh, r, n)\n ]), g([\n A4(pm, r, n, e, A2(Am, wm(u), t))\n ]));\n }), Oy = Vr(\"table\"), Uy = Vr(\"td\"), Py = function Py(r) {\n return js(A2(ve, \" \", A2(Rt, Ze, A2(bi, $f, r))));\n }, My = function My(r) {\n var n, _$e = r.bi, t = r.df, u = r.cU;\n return !t && vt(u) ? _s(_$e) : A2(Js, g([\n Py(g([\n i((n = t, \"elmsh\" + function() {\n switch(n){\n case 0:\n return \"0\";\n case 1:\n return \"-comm\";\n case 2:\n return \"1\";\n case 3:\n return \"2\";\n case 4:\n return \"3\";\n case 5:\n return \"4\";\n case 6:\n return \"5\";\n case 7:\n return \"6\";\n default:\n return \"7\";\n }\n }()), !!t),\n i(\"elmsh-\" + u, \"\" !== u)\n ]))\n ]), g([\n _s(_$e)\n ]));\n }, By = F3(function(r, n, t) {\n var u = t.c2, a = t.an;\n return A2(Hs, g([\n Py(g([\n i(\"elmsh-line\", !0),\n i(\"elmsh-hl\", e(a, fe(0))),\n i(\"elmsh-add\", e(a, fe(1))),\n i(\"elmsh-del\", e(a, fe(2)))\n ])),\n A2(rf, \"data-elmsh-lc\", ge(r + n))\n ]), A2(Rt, My, u));\n }), Gy = function Gy(r) {\n return A2(Yl, g([\n js(\"elmsh\")\n ]), Vo(A2(Rt, function(r) {\n var n = r.an, t = r.c2;\n return e(n, le) ? A2(Rt, My, t) : g([\n A2(Js, g([\n Py(g([\n i(\"elmsh-hl\", e(n, fe(0))),\n i(\"elmsh-add\", e(n, fe(1))),\n i(\"elmsh-del\", e(n, fe(2)))\n ]))\n ]), A2(Rt, My, t))\n ]);\n }, r)));\n }, jy = F2(function(r, n) {\n if (1 === r.$) return A2(Xh, g([\n js(\"elmsh\")\n ]), g([\n Gy(n)\n ]));\n var _$e = r.a;\n return A2(Xh, g([\n js(\"elmsh\")\n ]), tv(A2(Yl, d, A2(Le, By(_$e), n))));\n }), Hy = F2(function(r, n) {\n return A2(jy, r, n);\n }), Fy = Vr(\"tr\"), Vy = function Vy(r) {\n return r.replace(/^\\s+/, \"\");\n }, _y = function _y(r) {\n return A3(Ul, \"style\", d, g([\n _s(r)\n ]));\n }, Wy = F3(function(r, n, e) {\n if (e.a.$) switch(e.a.a.$){\n case 0:\n return A2(Hs, g([\n Hl(n),\n A2(Qh, r, n)\n ]), d);\n case 8:\n case 10:\n case 9:\n return A4(pm, r, n, u = e.b, c = e.c);\n case 3:\n return A5(ym, r, n, e.a.a.a, u = e.b, c = e.c);\n case 5:\n return A4(Sm, r, n, u = e.b, c = e.c);\n case 7:\n return A4(xm, r, n, u = e.b, c = e.c);\n case 1:\n return A4(Cy, r, n, u = e.b, c = e.c);\n case 2:\n return A5(Lm, r, n, e.a.a.a, u = e.b, c = e.c);\n case 4:\n return A2(sl, g([\n Hl(n),\n js(\"mm-thematic-break\"),\n A2(Qh, r, n)\n ]), d);\n case 11:\n return u = e.b, c = e.c, A2(Uy, g([\n js(\"mm-table-cell\")\n ]), g([\n A4(pm, r, n, u, c)\n ]));\n case 12:\n return u = e.b, c = e.c, A2(Fy, g([\n js(\"mm-table-row\")\n ]), g([\n A4(pm, r, n, u, c)\n ]));\n case 13:\n return u = e.b, c = e.c, A2(Oy, g([\n js(\"mm-table\"),\n Xl(u)\n ]), g([\n A4(pm, r, n, u, c)\n ]));\n default:\n var t = e.a.a.a;\n switch(u = e.b, c = e.c, Ef(t)){\n case \"svg\":\n return Dy(c);\n case \"invisible\":\n return A2(Js, d, d);\n default:\n return A5(Zh, t, r, n, u, c);\n }\n }\n else switch(e.a.a.$){\n case 2:\n var u = e.b;\n if (1 === (c = e.c).$) {\n var a = c.a;\n return A2(Hs, g([\n Hl(n),\n Xl(u),\n A2(Qh, r, n)\n ]), g([\n Gl(a)\n ]));\n }\n return Gl(\"\");\n case 1:\n u = e.b;\n return 1 === (c = e.c).$ ? (a = c.a, A2(Xh, g([\n Hl(n),\n Xl(u),\n A2(Qh, r, n)\n ]), g([\n _s(a)\n ]))) : Gl(\"\");\n default:\n var c, _$i = e.a.a.a;\n u = e.b;\n return 1 === (c = e.c).$ ? (a = c.a, A2(Hs, g([\n Wl(u - 1)\n ]), g([\n _y(Ld),\n A2(Cs, A2(Xh, d, g([\n A2(Yl, d, g([\n _s(a)\n ]))\n ])), A2(Kl, Hy(fe(1)), A2(Kh, _$i, Vy(A2(zl, _$i, a)))))\n ]))) : Gl(\"\");\n }\n }), Yy = F2(function(r, n) {\n return e(r, n) ? g([\n A2(bf, \"background-color\", Jh)\n ]) : g([\n A2(bf, \"background-color\", \"#fff\")\n ]);\n }), zy = F2(function(r, n) {\n if (e(Il(n), d)) {\n var t = Fl(n), u = t.a, a = t.b, c = t.c, o = t.d;\n return A3(Vl, a.$ || 2 !== a.a.$ ? \"span\" : \"spanXXX\", l(A2(Yy, r, u), g([\n of(jl(u))\n ])), g([\n i(jl(u), A3(Wy, r, u, A3(Cl, a, c, o)))\n ]));\n }\n var _$s, f = Fl(n);\n if (1 === f.b.$) switch(f.b.a.$){\n case 12:\n return u = f.a, A2(Fy, g([\n js(\"mm-table-row\"),\n A2(Qh, r, u)\n ]), A2(Rt, zy(r), Il(n)));\n case 13:\n return u = f.a, A3(Vl, \"table\", g([\n js(\"mm-table\"),\n Pf(jl(u)),\n of(jl(u)),\n A2(Qh, r, u)\n ]), g([\n i(jl(u), A2(Hs, d, A2(Rt, zy(r), Il(n))))\n ]));\n case 8:\n return u = f.a, A2(Hs, g([\n js(\"mm-plain\"),\n Pf(jl(u)),\n of(jl(u)),\n A2(Qh, r, u)\n ]), A2(Rt, zy(r), Il(n)));\n default:\n return A3(Vl, \"div\", g([\n A2(Qh, r, u = f.a)\n ]), g([\n i(jl(u), A2(Hs, g([\n Pf(jl(u)),\n of(jl(u))\n ]), g([\n A3(Wy, r, u, _l(Fl(n))),\n A2(Hs, g([\n Hl(u)\n ]), A2(Rt, zy(r), Il(n)))\n ])))\n ]));\n }\n else switch(f.b.a.$){\n case 2:\n return o = f.d, A3(Vl, \"div\", g([\n Pf(jl(u = f.a)),\n of(jl(u)),\n A2(Qh, r, u)\n ]), g([\n i(jl(u), Gl((_$s = o, _$s.$ ? _$s.a : \"\")))\n ]));\n case 1:\n return A3(Vl, \"pre\", g([\n Pf(jl(u = f.a)),\n of(jl(u)),\n A2(Qh, r, u)\n ]), g([\n i(jl(u), _s(\"OUF: Verbatim!\"))\n ]));\n default:\n return A2(Hs, g([\n Pf(jl(u = f.a)),\n of(jl(u)),\n A2(Qh, r, u)\n ]), g([\n _s(\"OUF: Code!\")\n ]));\n }\n }), Ky = F2(function(r, n) {\n return function(r) {\n return A2(Hs, g([\n Dl\n ]), r);\n }(A2(Rt, zy(r), Il(n)));\n }), Xy = F2(function(r, n) {\n return {\n $: 0,\n a: r,\n b: n\n };\n }), Jy = F4(function(r, n, e, t) {\n r: for(;;){\n var u = e.m;\n if (u.b) {\n if (u.a.b.b) {\n var a = u.a, c = a.b, o = (f = u.b, A2(r, n, a.a));\n p = r, _$g = o.a, v = {\n d: d,\n p: o.b,\n m: c\n }, h = A2(ne, s(e, {\n m: f\n }), t), r = p, n = _$g, e = v, t = h;\n continue r;\n }\n var f = u.b, _$l = A2(r, n, u.a.a);\n r = p = r, n = _$g = _$l.a, e = v = s(e, {\n d: A2(ne, A2(Xy, _$l.b, d), e.d),\n m: f\n }), t = h = t;\n } else {\n var _$b = A2(Xy, e.p, qe(e.d));\n if (!t.b) return i(n, _$b);\n var p, _$g, v, h, m = t.a;\n f = t.b;\n r = p = r, n = _$g = n, e = v = s(m, {\n d: A2(ne, _$b, m.d)\n }), t = h = f;\n }\n }\n }), Qy = F3(function(r, n, e) {\n var t = e.b, u = A2(r, n, e.a);\n return A4(Jy, r, u.a, {\n d: d,\n p: u.b,\n m: t\n }, d);\n }), Zy = F2(function(r, n) {\n return A3(Qy, F2(function(n, e) {\n return i(n + 1, A2(r, n, e));\n }), 0, n).b;\n }), rw = F2(function(r, n) {\n return A3(Qy, F2(function(n, e) {\n return i(0, r(e));\n }), 0, n).b;\n }), nw = function nw(r) {\n return {\n $: 0,\n a: r\n };\n }, ew = function ew(r) {\n return {\n $: 0,\n a: r\n };\n }, tw = F4(function(r, n, e, t) {\n return {\n $: 0,\n a: r,\n b: n,\n c: e,\n d: t\n };\n }), uw = function uw(r) {\n return {\n $: 1,\n a: r\n };\n }, aw = {\n $: 8\n }, cw = function cw(r) {\n return {\n $: 1,\n a: r\n };\n }, iw = {\n $: 1\n }, ow = function ow(r) {\n return g(r.split(/\\r\\n|\\r|\\n/g));\n }, sw = function sw(r) {\n return {\n $: 2,\n a: r\n };\n }, fw = A2(ac, sw, A2(ac, A2(iu, \"**\", \"\"), A2(ac, pt(2), Ia(A2(Fa, A2(Fa, A2(Fa, A2(Fa, Ua(0), gc(A2(dc, \"**\", \"expecting '**' to begin bold text\"))), Na(function(r) {\n return \"*\" !== r;\n })), gc(A2(dc, \"**\", \"expecting '**' to end bold text\"))), tm))))), lw = function lw(r) {\n return {\n $: 3,\n a: r\n };\n }, dw = A2(ac, lw, A2(ac, A2(iu, \"`\", \"\"), A2(ac, Ef, Ia(A2(Fa, A2(Fa, A2(Fa, Ua(0), gc(A2(dc, \"`\", \"Expecting '`' to begin inline code\"))), Na(function(r) {\n return \"`\" !== r;\n })), gc(A2(dc, \"`\", \"Expecting '`' to end inline code\"))))))), bw = F2(function(r, n) {\n return {\n $: 9,\n a: r,\n b: n\n };\n }), pw = function pw(r) {\n return Ia(Na(r));\n }, gw = A2(_a, A2(Fa, Ua(function(r) {\n return A2(bw, \"noOp\", \"@\" + r);\n }), gc(A2(dc, \"@\", \"Expecting '@' to begin tail of email address\"))), A2(Fa, pw(function(r) {\n return \" \" !== r;\n }), tm)), vw = A2(_a, A2(_a, A2(Fa, Ua(F2(function(r, n) {\n return A2(bw, r, n);\n })), gc(A2(dc, \"@\", \"Expecting '@' to begin extension element\"))), A2(Fa, Ia(em(A2(dc, \"[\", \"Expecting '[' in parseUntil\"))), gc(A2(dc, \"[\", \"Expecting '[' to continue extension element\")))), A2(Fa, A2(Fa, pw(function(r) {\n return \"]\" !== r;\n }), gc(A2(dc, \"]\", \"Expecting ']' to end extension element\"))), tm)), hw = Ka(g([\n sb(vw),\n gw\n ])), mw = function mw(r) {\n return {\n $: 7,\n a: r\n };\n }, yw = A2(ac, mw, A2(ac, A2(au, A2(iu, \"&\", \"\"), A2(au, A2(iu, \";\", \"\"), A2(iu, \" \", \"\"))), Ia(A2(Fa, A2(Fa, A2(Fa, Ua(0), gc(A2(dc, \"&\", \"Expecting '&' to begin Html entity\"))), Na(function(r) {\n return \";\" !== r;\n })), gc(A2(dc, \";\", \"Expecting ';' to end Html entity\")))))), ww = F2(function(r, n) {\n return {\n $: 11,\n a: r,\n b: n\n };\n }), $w = F2(function(r, n) {\n return {\n aw: r,\n bi: n\n };\n }), Ew = A2(ac, function(r) {\n return A2(ww, r.aw, r.bi);\n }, A2(_a, A2(_a, A2(Fa, Ua($w), gc(A2(dc, \"![\", \"Expecting '![' to begin image block\"))), A2(Fa, pw(function(r) {\n return \"]\" !== r;\n }), gc(A2(dc, \"](\", \"Expecting '](' in image block\")))), A2(Fa, A2(Fa, pw(function(r) {\n return \")\" !== r;\n }), gc(A2(dc, \")\", \"Expecting ')' to end image block\"))), Na(function(r) {\n return \"\\n\" === r;\n })))), Tw = function Tw(r) {\n return {\n $: 1,\n a: r\n };\n }, Aw = A2(ac, Tw, A2(ac, A2(iu, \"*\", \"\"), Ia(A2(Fa, A2(Fa, A2(Fa, A2(Fa, Ua(0), gc(A2(dc, \"*\", \"Expecting '*' to begin italic text\"))), Na(function(r) {\n return \"*\" !== r;\n })), gc(A2(dc, \"*\", \"Expecting '*' to end italic text\"))), tm)))), Lw = F2(function(r, n) {\n return {\n $: 10,\n a: r,\n b: n\n };\n }), xw = A2(_a, A2(Fa, Ua(st), gc(A2(dc, \"(\", \"expecting '(' to begin link url\"))), A2(Fa, A2(Fa, pw(function(r) {\n return \")\" !== r;\n }), gc(A2(dc, \")\", \"expecting ')' to end link url\"))), tm)), Sw = A2(ac, function() {\n return \" \";\n }, Ua(0)), Nw = A2(ac, function(r) {\n return function(r) {\n return \" \" === r.bi ? function(r) {\n return {\n $: 6,\n a: r\n };\n }(r.aw) : A2(Lw, r.bi, r.aw);\n }(r);\n }, A2(_a, A2(_a, A2(Fa, Ua($w), gc(A2(dc, \"[\", \"expecting '[' to begin label\"))), A2(Fa, pw(function(r) {\n return \"]\" !== r;\n }), gc(A2(dc, \"]\", \"expecting ']' to end first part of label\")))), A2(Fa, Ka(g([\n xw,\n Sw\n ])), tm))), kw = function kw(r) {\n switch(r){\n case \"`\":\n case \"[\":\n case \"*\":\n case \"&\":\n case \"@\":\n case \"\\n\":\n return !0;\n default:\n return !1;\n }\n }, Rw = function Rw(r) {\n return A2(qa, F2(function(r) {\n return wm(r);\n }), A2(Fa, A2(nc, r, \"expecting regular character to begin ordinary text line\"), Na(function(n) {\n return !(\"]\" === n) && r(n);\n })));\n }, qw = Rw(function(r) {\n return !(\"~\" === r || kw(r));\n }), Iw = function Iw(r) {\n return {\n $: 5,\n a: r\n };\n }, Dw = A2(ac, Iw, A2(ac, A2(iu, \"~~\", \"\"), A2(ac, pt(2), Ia(A2(Fa, A2(Fa, A2(Fa, A2(Fa, Ua(0), gc(A2(dc, \"~~\", \"expecting '~~' to begin strikethrough\"))), Na(function(r) {\n return \"~\" !== r;\n })), gc(A2(dc, \"~~\", \"expecting '~~' to end strikethrough\"))), tm))))), Cw = Ka(g([\n hw,\n dw,\n Ew,\n Nw,\n fw,\n Aw,\n Dw,\n yw,\n qw\n ])), Ow = function Ow(r) {\n return {\n $: 4,\n a: r\n };\n }, Uw = A2(ac, Ow, A2(ac, tu(1), A2(ac, pt(1), A2(ac, Ef, Ia(A2(Fa, A2(Fa, A2(Fa, Ua(0), gc(A2(dc, \"$\", \"Expecting '$' to begin inline math\"))), Na(function(r) {\n return \"$\" !== r;\n })), gc(A2(dc, \"$\", \"Expecting '$' to end inline math\")))))))), Pw = Rw(function(r) {\n return !(\"~\" === r || \"$\" === r || kw(r));\n }), Mw = Ka(g([\n hw,\n dw,\n Ew,\n Nw,\n fw,\n Aw,\n Dw,\n yw,\n Uw,\n Pw\n ])), Bw = Rw(A2(Ni, pc, kw)), Gw = Ka(g([\n dw,\n Ew,\n Nw,\n fw,\n Aw,\n Bw\n ])), jw = F2(function(r, n) {\n return Ka(g([\n A2(_a, Ua(function(r) {\n return oc(A2(ne, r, n));\n }), r),\n A2(ac, function() {\n return ic(qe(n));\n }, Ua(0))\n ]));\n }), Hw = function Hw(r) {\n return r.cl;\n }, Fw = F2(function(r, n) {\n var _$e;\n return _$e = A2(Nc, function(r) {\n var _$n;\n return _$n = function(r) {\n switch(r){\n case 0:\n return Gw;\n case 1:\n return Cw;\n default:\n return Mw;\n }\n }(r), A2(uc, d, jw(_$n));\n }(r), n), _$e.$ ? wm(A2(ve, \";;\\n\\n\", A2(Rt, Hw, _$e.a))) : function(r) {\n return {\n $: 12,\n a: r\n };\n }(_$e.a);\n }), Vw = F2(function(r, n) {\n return 1 > r ? \"\" : A3(bt, -r, dt(n), n);\n }), _w = F2(function(r, n) {\n return \"\" === n.L ? {\n L: r,\n as: d\n } : function(r) {\n return \".\" === A2(Vw, 1, r);\n }(n.L) ? {\n L: r,\n as: A2(ne, n.L, n.as)\n } : s(n, {\n L: n.L + \" \" + r\n });\n }), Ww = function Ww(r) {\n var n;\n return qe(A2(ne, (n = A3(ye, _w, {\n L: \"\",\n as: d\n }, r)).L, n.as));\n }, Yw = F2(function(r, n) {\n return Tm(A2(Rt, Fw(r), Ww(A2(bi, function(r) {\n return !vt(r);\n }, A2(he, \"\\n\", n))))), Tm(A2(Rt, Fw(r), Ww(A2(bi, function(r) {\n return !vt(r);\n }, A2(he, \"\\n\", n)))));\n }), zw = F2(function(r, n) {\n var _$e = n.a, t = n.b, u = n.c, a = n.d;\n if (1 === t.$) {\n var c = t.a;\n switch(c.$){\n case 7:\n var _$i = ow(a), o = Tm(A2(Rt, Yw(r), _$i));\n return A4(tw, _$e, uw(c), u, Em(o));\n case 6:\n var _$s = A3(iu, \"@@\" + c.a, \"\", a);\n return A4(tw, _$e, uw(c), u, Em(wm(_$s)));\n default:\n return A4(tw, _$e, uw(c), u, Em(A2(Yw, r, a)));\n }\n } else switch(t.a.$){\n case 0:\n return A4(tw, _$e, nw(ew(t.a.a)), u, cw(a));\n case 1:\n return A4(tw, _$e, nw(iw), u, cw(a));\n default:\n return A4(tw, _$e, uw(aw), u, Em(A2(Yw, r, a)));\n }\n }), Kw = {\n $: 2\n }, Xw = F2(function(r, n) {\n var _$e = n.a, t = n.b, u = n.c, a = n.d;\n if (1 === t.$) {\n var c = t.a;\n switch(c.$){\n case 7:\n var _$i = ow(a), o = Tm(A2(Rt, Yw(r), _$i));\n return A4(tw, _$e, uw(c), u, Em(o));\n case 6:\n var _$s = A3(iu, \"@@\" + c.a, \"\", a);\n return A4(tw, _$e, uw(c), u, Em(wm(_$s)));\n default:\n return A4(tw, _$e, uw(c), u, Em(A2(Yw, r, a)));\n }\n } else switch(t.a.$){\n case 0:\n return A4(tw, _$e, nw(ew(t.a.a)), u, cw(a));\n case 1:\n return A4(tw, _$e, nw(iw), u, cw(a));\n default:\n return A4(tw, _$e, nw(Kw), u, cw(a));\n }\n }), Jw = F2(function(r, n) {\n var _$e = n.a, t = n.b, u = n.c, a = n.d;\n return 1 === t.$ ? A4(tw, _$e, uw(t.a), u, Em(A2(Yw, r, a))) : t.a.$ ? A4(tw, _$e, uw(aw), u, Em(A2(Yw, r, a))) : A4(tw, _$e, nw(ew(t.a.a)), u, cw(a));\n }), Qw = F2(function(r, n) {\n switch(r){\n case 0:\n return A2(Jw, r, n);\n case 1:\n return A2(zw, r, n);\n default:\n return A2(Xw, r, n);\n }\n }), Zw = F3(function(r, n, e) {\n var t = e.b, u = e.c, a = e.d;\n return A4(tw, i(n, r), t, u, a);\n }), r$ = function r$(r) {\n return r.c;\n }, n$ = F4(function(r, n, e, t) {\n return {\n $: 0,\n a: r,\n b: n,\n c: e,\n d: t\n };\n }), e$ = F2(function(r, n) {\n return A4(n$, n.a, n.b, n.c + r, n.d);\n }), t$ = function t$(r) {\n return r.b;\n }, u$ = function u$(r) {\n return r.a;\n }, a$ = function a$(r) {\n var n = u$(r);\n switch(n.$){\n case 0:\n case 2:\n return qe(t$(r));\n default:\n return qe(A2(ne, n.a, t$(r)));\n }\n }, c$ = function c$(r) {\n return A2(Xy, r, d);\n }, i$ = F2(function(r, n) {\n return A2(Xy, n.a, l(n.b, g([\n r\n ])));\n }), o$ = F2(function(r, n) {\n return s(n, {\n j: r\n });\n }), s$ = function s$(r) {\n return r.j;\n }, f$ = F2(function(r, n) {\n var _$e = s$(n), t = A2(i$, c$(r), _$e);\n return A2(o$, t, n);\n }), l$ = F3(function(r, n, e) {\n for(;;){\n if (0 >= r) return e;\n var t = r - 1, u = n, a = n(e);\n r = t, n = u, e = a;\n }\n }), d$ = Xy, b$ = F4(function(r, n, e, t) {\n return A2(d$, t, l(qe(n), l(g([\n r\n ]), e)));\n }), p$ = function p$(r) {\n var n = r.r;\n if (n.b) {\n var _$e = n.a;\n return fe({\n h: _$e.h,\n i: _$e.i,\n r: n.b,\n j: A4(b$, r.j, r.i, r.h, _$e.p)\n });\n }\n return le;\n }, g$ = F2(function(r, n) {\n var _$e = p$(n);\n return A3(l$, r - 1, function(r) {\n return A2(Zu, p$, r);\n }, _$e);\n }), v$ = F3(function(r, n, e) {\n return A2(nu, e, A2(ru, f$(n), A2(g$, r, e)));\n }), h$ = function h$(r) {\n var n = r, _$e = qe(Il(n.j));\n if (_$e.b) {\n var t = _$e.a;\n return fe({\n h: d,\n i: _$e.b,\n r: A2(ne, {\n h: n.h,\n i: n.i,\n p: Fl(n.j)\n }, n.r),\n j: t\n });\n }\n return le;\n }, m$ = F2(function(r, n) {\n return A2(nu, n, A2(ru, f$(r), h$(n)));\n }), y$ = F2(function(r, n) {\n return A2(ru, r, A2(ru, Fl, A2(ru, s$, h$(n))));\n }), w$ = F3(function(r, n, e) {\n return 1 === n.$ || 1 === e.$ ? le : fe(A2(r, n.a, e.a));\n }), $$ = F3(function(r, n, e) {\n return A3(w$, Ee, fe(r(n)), A2(y$, r, e));\n }), E$ = F3(function(r, n, e) {\n var t = A3($$, r, n, e);\n if (1 === t.$) return A2(f$, n, e);\n switch(t.a){\n case 0:\n return A2(f$, n, e);\n case 1:\n return A2(m$, n, e);\n default:\n return A3(v$, -A2(nu, 0, t), n, e);\n }\n }), T$ = function T$(r) {\n var n = r, _$e = n.i;\n if (_$e.b) {\n var t = _$e.a, u = _$e.b;\n return fe({\n h: A2(ne, n.j, n.h),\n i: u,\n r: n.r,\n j: t\n });\n }\n return le;\n }, A$ = function A$(r) {\n for(;;){\n var n = T$(r);\n if (1 === n.$) return r;\n r = n.a;\n }\n }, L$ = function L$(r) {\n for(;;){\n var n = p$(r);\n if (1 === n.$) return A$(r);\n r = n.a;\n }\n }, x$ = A2(Ni, s$, L$), S$ = F3(function(r, n, e) {\n var t;\n return x$(A3(ye, F2(function(r, e) {\n return A3(E$, n, r, e);\n }), (t = c$(r), {\n h: d,\n i: d,\n r: d,\n j: t\n }), e));\n }), N$ = A4(n$, i(0, 0), uw({\n $: 0\n }), 0, \"DOCUMENT\"), k$ = F3(function(r, n, e) {\n return {\n $: 0,\n a: r,\n b: n,\n c: e\n };\n }), R$ = {\n $: 0\n }, q$ = {\n H: d,\n _: d,\n M: i(0, 0),\n aL: 0,\n aq: 0,\n ad: 0,\n S: 0,\n a9: 0\n }, I$ = A3(k$, R$, d, q$), D$ = {\n $: 13\n }, C$ = {\n $: 12\n }, O$ = function O$(r) {\n var n = r.a, t = r.b, u = r.c, a = r.d;\n return e(t, uw(C$)) && \"row\" === a ? A4(n$, n, t, u, \"\") : r;\n }, U$ = function U$(r) {\n return r.b;\n }, P$ = function P$(r) {\n switch(r.$){\n case 0:\n default:\n return le;\n case 1:\n return fe(U$(r.a));\n }\n }, M$ = {\n $: 2\n }, B$ = function B$(r) {\n return {\n $: 1,\n a: r\n };\n }, G$ = {\n $: 10\n }, j$ = A2(ac, dt, Ia(A2(Fa, Ua(0), Na(function(r) {\n return \" \" === r;\n })))), H$ = function H$(r) {\n return r.$ ? le : fe(r.a);\n }, F$ = function F$(r) {\n return A2(nu, 0, A2(ru, function(r) {\n return r / 4 | 0;\n }, H$(A2(Nc, j$, r))));\n }, V$ = A2(Fa, Ua(1), gc(A2(dc, \"css\", \"Expecting string for language, use ```nolang if language is unknown or unsupported\"))), _$ = A2(Fa, Ua(0), gc(A2(dc, \"elm\", \"Expecting string for language, use ```nolang if language is unknown or unsupported\"))), W$ = A2(Fa, Ua(2), gc(A2(dc, \"javascript\", \"Expecting string for language, use ```nolang if language is unknown or unsupported\"))), Y$ = A2(Fa, Ua(3), gc(A2(dc, \"json\", \"Expecting string for language, use ```nolang if language is unknown or unsupported\"))), z$ = A2(Fa, Ua(7), gc(A2(dc, \"nolang\", \"Expecting string for language, use ```nolang if language is unknown or unsupported\"))), K$ = A2(Fa, Ua(4), gc(A2(dc, \"python\", \"Expecting string for language, use ```nolang if language is unknown or unsupported\"))), X$ = A2(Fa, Ua(5), gc(A2(dc, \"sql\", \"Expecting string for language, use ```nolang if language is unknown or unsupported\"))), J$ = A2(Fa, Ua(6), gc(A2(dc, \"xml\", \"Expecting string for language, use ```nolang if language is unknown or unsupported\"))), Q$ = A2(ac, function(r) {\n return nw(ew(r));\n }, A2(_a, A2(Fa, Ua(st), gc(A2(dc, \"```\", \"Expecting three ticks to begin code block\"))), Ka(g([\n V$,\n _$,\n W$,\n Y$,\n K$,\n X$,\n J$,\n z$\n ])))), Z$ = Ia(A2(Fa, A2(Fa, Ua(0), Na(function(r) {\n return \"\\n\" !== r;\n })), gc(A2(dc, \"\\n\", \"expecting newline\")))), rE = A2(_a, A2(Fa, Ua(function(r) {\n return uw(function(r) {\n return {\n $: 6,\n a: r\n };\n }(r));\n }), gc(A2(dc, \"@@\", \"expecting '@@' to begin extended block\"))), Z$), nE = function nE(r) {\n return Ia(Na(r));\n }, eE = A2(ac, function(r) {\n return uw(function(r) {\n return {\n $: 3,\n a: r\n };\n }(dt(r) + 1));\n }, A2(_a, A2(Fa, A2(Fa, Ua(st), tm), gc(A2(dc, \"#\", \"Expecting '#' to begin heading block\"))), nE(function(r) {\n return \"#\" === r;\n }))), tE = {\n $: 4\n }, uE = A2(ac, function() {\n return uw(tE);\n }, A2(Fa, A2(Fa, Ua(0), tm), gc(A2(dc, \"___\", \"Expecting at least three underscores to begin thematic break\")))), aE = A2(Fa, Ua(uw({\n $: 9\n })), gc(A2(dc, \"![\", \"Expecting '![' to begin image block\"))), cE = A2(Fa, Ua(nw(Kw)), gc(A2(dc, \"$$\", \"Expecting four ticks to begin verbatim block\"))), iE = function iE(r) {\n return {\n $: 2,\n a: r\n };\n }, oE = A2(ac, function() {\n return uw(iE(0));\n }, A2(Fa, A2(Fa, A2(Fa, A2(Fa, Ua(0), nE(function(r) {\n return \" \" === r;\n })), A2(nc, function(r) {\n return ke(r);\n }, \"Expecting digit to begin ordered list item\")), Na(function(r) {\n return ke(r);\n })), gc(A2(dc, \". \", \"expecting period\")))), sE = {\n $: 7\n }, fE = A2(ac, function() {\n return uw(sE);\n }, A2(Fa, Ua(0), gc(A2(dc, \">> \", \"expecting '>> ' to begin poetry block\")))), lE = {\n $: 5\n }, dE = A2(ac, function() {\n return uw(lE);\n }, A2(Fa, Ua(0), gc(A2(dc, \"> \", \"expecting '> ' to begin quotation\")))), bE = A2(ac, function() {\n return uw(C$);\n }, A2(Fa, Ua(0), gc(A2(dc, \"| \", \"expecting '| ' to begin poetry block\")))), pE = A2(Fa, Ua(uw({\n $: 1\n })), gc(A2(dc, \"- \", \"Expecting '-' to begin list item\"))), gE = A2(Fa, Ua(nw(iw)), gc(A2(dc, \"````\", \"Expecting four ticks to begin verbatim block\"))), vE = Ka(g([\n aE,\n cE,\n pE,\n oE,\n rE,\n dE,\n fE,\n sb(gE),\n Q$,\n bE,\n eE,\n uE\n ])), hE = Ka(g([\n bE,\n aE,\n pE,\n oE,\n dE,\n Q$,\n eE,\n uE\n ])), mE = F2(function(r, n) {\n if (\"\\n\" === n) return i(0, fe(uw(G$)));\n var _$e = A2(Nc, function(r) {\n return r ? vE : hE;\n }(r), function(r) {\n return A2(pt, function(r) {\n return A2(nu, 0, H$(A2(Nc, j$, r)));\n }(r), r);\n }(n));\n if (_$e.$) return i(F$(n), fe(uw(aw)));\n var t = _$e.a;\n return i(F$(n), fe(t));\n }), yE = {\n $: 11\n }, wE = F2(function(r, n) {\n return A2(Rt, function(n) {\n return A4(n$, i(-1, -1), uw(yE), r, n);\n }, A2(bi, function(r) {\n return \"\" !== r;\n }, A2(Rt, Ef, A2(he, \"|\", n))));\n }), $E = F6(function(r, n, e, t, u, a) {\n switch(t.$){\n case 0:\n case 2:\n return A3(k$, t, u, a);\n default:\n var c = A4(n$, i(-1, -1), r, n + 1, \"row\"), o = l(A2(wE, n + 2, e), g([\n c\n ]));\n return A3(k$, B$(c), u, s(a, {\n H: o,\n a9: a.a9 + 0\n }));\n }\n }), EE = function EE(r) {\n return \"\" !== Ef(r);\n }, TE = F2(function(r, n) {\n return 1 === n.$ && !e(U$(n.a), r);\n }), AE = A2(ac, function(r) {\n return r + \". \";\n }, Ia(A2(_a, Ua(st), em(A2(dc, \".\", \"expecting '.' to begin OListItem block\"))))), LE = A2(ac, function(r) {\n return r + \"- \";\n }, Ia(A2(_a, Ua(st), em(A2(dc, \"-\", \"expecting '-' to begin UListItem block\"))))), xE = F2(function(r, n) {\n var _$e = F2(function(r, n) {\n var _$e = A2(Nc, r, n);\n return _$e.$ ? \"\" : _$e.a;\n });\n switch(r.$){\n case 0:\n case 8:\n case 9:\n case 11:\n case 12:\n case 13:\n default:\n return \"\";\n case 1:\n return A2(_$e, LE, n);\n case 2:\n return A2(_$e, AE, n);\n case 3:\n return A2(fs, r.a, \"#\") + \" \";\n case 6:\n return \"|\";\n case 4:\n return \"___\";\n case 5:\n return \"> \";\n case 7:\n return \">> \";\n }\n }), SE = F2(function(r, n) {\n return r.$ ? A2(xE, r.a, n) : function(r) {\n switch(r.$){\n case 0:\n return \"```\";\n case 1:\n return \"````\";\n default:\n return \"$$\";\n }\n }(r.a);\n }), NE = F2(function(r, n) {\n return A3(iu, A2(SE, r, n), \"\", n);\n }), kE = F2(function(r, n) {\n switch(r + 1){\n case 1:\n return i(n.aL + 1, s(n, {\n aL: n.aL + 1,\n aq: 0,\n ad: 0,\n S: 0\n }));\n case 2:\n return i(n.aq + 1, s(n, {\n aq: n.aq + 1,\n ad: 0,\n S: 0\n }));\n case 3:\n return i(n.ad + 1, s(n, {\n ad: n.ad + 1,\n S: 0\n }));\n case 4:\n return i(n.S + 1, s(n, {\n S: n.S + 1\n }));\n default:\n return i(0, n);\n }\n }), RE = F3(function(r, n, e) {\n if (function(r) {\n return 1 === r.$ && 2 === r.a.$;\n }(r)) {\n var t = A2(kE, n, e), u = t.b;\n return i(uw(iE(t.a)), u);\n }\n var a;\n return i(r, (a = r).$ || a.a.$ ? q$ : s(e, {\n _: A2(ne, r, e._)\n }));\n }), qE = F3(function(r, n, t) {\n var u = t.a, a = t.b, c = t.c, o = A2(mE, r, n);\n if (1 === o.b.$) return A3(k$, M$, a, c);\n var _$s = o.a, f = o.b.a, _$l = A2(NE, f, n), d = A3(RE, f, _$s, c), _$b = d.a, p = d.b;\n return e(_$b, uw(C$)) && A2(TE, _$b, u) ? A6($E, f, _$s, n, u, a, c) : EE(n) ? A3(k$, B$(A4(n$, i(-1, -1), _$b, _$s, _$l)), a, p) : t;\n }), IE = F3(function(r, n, e) {\n if (1 === n.$) return !e.$;\n var t = o(n.a, e, \"```\\n\" === Vy(r));\n return t.b.$ ? !t.a.$ && !t.a.a.$ && !!t.c : !(!t.a.$ && !t.a.a.$);\n }), DE = F2(function(r, n) {\n return A4(n$, n.a, n.b, n.c, l(n.d, r));\n }), CE = function CE(r) {\n return A4(n$, r.a, r.b, r.c, Ef(r.d));\n }, OE = F3(function(r, n, t) {\n var u = t.b, a = t.c;\n if (e(fe(r), P$(u$(t)))) {\n var c = u$(t);\n if (1 === c.$) {\n var _$i = c.a, o = A2(NE, r, n), f = r.$ || 1 !== r.a.$ ? CE(_$i) : _$i;\n return A3(k$, R$, A2(ne, A2(DE, o, f), u), a);\n }\n return t;\n }\n var _$l = u$(t);\n return 1 === _$l.$ ? (_$i = _$l.a, o = \"```\\n\" === Vy(n) ? \"\\n\" : n, f = CE(_$i), A3(k$, B$(A4(n$, a.M, r, F$(o), o)), A2(ne, f, u), s(a, {\n _: A2(ei, 1, a._)\n }))) : t;\n }), UE = F2(function(r, n) {\n switch(n.$){\n case 0:\n return R$;\n case 2:\n return M$;\n default:\n return B$(A2(DE, r, n.a));\n }\n }), PE = F2(function(r, n) {\n var _$e = n.a, t = n.b, u = n.c;\n switch(_$e.$){\n case 0:\n case 2:\n return A3(k$, _$e, t, u);\n default:\n var a = wi(u.H);\n if (1 === a.$) return A3(k$, A2(UE, r, _$e), t, u);\n var c = a.a;\n return A3(k$, A2(UE, r, _$e), A2(ne, c, t), s(u, {\n H: A2(ei, 1, u.H)\n }));\n }\n }), ME = function ME(r) {\n var n = r.a, t = r.b, u = r.d;\n if (e(t, uw(aw))) {\n var a = F$(u);\n return A4(n$, n, t, a, u);\n }\n return r;\n }, BE = F4(function(r, n, e, t) {\n var u = n.a, a = n.b, c = t.b, _$i = t.c, o = A2(mE, r, e);\n if (1 === o.b.$) return t;\n var _$s = o.a, f = o.b.a, _$l = A2(NE, a, e), d = A3(RE, f, _$s, _$i), _$b = d.a, p = d.b;\n return A3(k$, B$(A4(n$, u, _$b, _$s, A2(NE, _$b, _$l))), A2(ne, ME(n), c), p);\n }), GE = F6(function(r, n, e, t, u, a) {\n switch(t.$){\n case 0:\n case 2:\n return A3(k$, t, u, a);\n default:\n var c = A4(n$, i(-1, -1), uw(C$), n + 1, \"deleteMe\"), o = A4(n$, i(-1, -1), r, n + 1, \"row\"), f = l(A2(wE, n + 2, e), g([\n o\n ]));\n return A3(k$, B$(c), u, s(a, {\n H: l(a.H, f)\n }));\n }\n }), jE = F6(function(r, n, e, t, u, a) {\n return A6(A2(TE, r, t) ? $E : GE, r, n, e, t, u, a);\n }), HE = F5(function(r, n, t, u, a) {\n var c = a.a, _$i = a.b, o = a.c;\n if (1 === c.$) {\n var _$s = c.a, f = _$s.b;\n return f.$ ? e(t, uw(G$)) ? A3(k$, R$, A2(ne, ME(_$s), _$i), o) : e(t, uw(aw)) && !e(f, uw(C$)) && EE(u) ? A2(PE, u, a) : e(t, uw(C$)) ? A6(jE, t, n, u, c, _$i, o) : A4(BE, r, _$s, u, a) : A2(PE, u, a);\n }\n return a;\n }), FE = F3(function(r, n, e) {\n var t = e.c, u = A2(mE, r, n);\n if (1 === u.b.$) return A3(k$, M$, t$(e), t);\n var a = u.a, c = u.b.a;\n return A3(IE, n, function(r) {\n return wi(r.c._);\n }(e), c) ? A3(OE, c, n, e) : c.$ ? A5(HE, r, a, c, n, e) : e;\n }), VE = F3(function(r, n, e) {\n var t = function(r) {\n var _$n = r.a, _$e = r.b, t = r.c, u = function(r) {\n return wi(r.H);\n }(t);\n if (1 === u.$) return r;\n var a = P$(_$n);\n if (a.$ || 1 !== a.a.$ || 12 !== a.a.a.$) {\n var c = A4(n$, i(-1, -1), uw(D$), 0, \"tableRoot\"), o = A4(n$, i(-1, -1), uw(C$), 1, \"row\"), f = A2(Rt, O$, function(r) {\n return l(r, g([\n o,\n c\n ]));\n }(qe(t.H)));\n return A3(k$, R$, l(f, A2(bi, function(r) {\n return \"deleteMe\" !== r.d;\n }, _$e)), function(r) {\n return s(r, {\n H: d\n });\n }(t));\n }\n return r;\n }(e);\n switch(u$(t).$){\n case 0:\n return A3(qE, r, n, t);\n case 1:\n return A3(FE, r, n, t);\n default:\n return t;\n }\n }), _E = F2(function(r, n) {\n return A3(ye, F2(function(n, e) {\n return A3(VE, r, n, e);\n }), I$, n);\n }), WE = F2(function(r, n) {\n if (r.b) {\n if (r.b.b) {\n var _$e = r.b;\n return A2(ne, l(r.a, n), A2(WE, _$e, n));\n }\n return g([\n r.a\n ]);\n }\n return d;\n }), YE = function YE(r) {\n var n = ow(r);\n return A2(WE, n, \"\\n\");\n }, zE = F2(function(r, n) {\n return e$(1), a$(A2(_E, r, YE(n))), A3(S$, N$, r$, A2(Rt, e$(1), a$(A2(_E, r, YE(n)))));\n }), KE = F3(function(r, n, e) {\n return Qw(n), A2(Zy, F2(function(n, e) {\n return A3(Zw, r, n, e);\n }), A2(rw, Qw(n), A2(zE, n, e)));\n }), XE = F2(function(r, n) {\n return A2(Ky, i(0, 0), A3(KE, 0, r, n));\n }), JE = function JE(r) {\n return A2(Hs, g([\n js(\"max left-align padding\"),\n A2(bf, \"background-color\", \"white\"),\n A2(bf, \"list-style-type\", \"none\")\n ]), g([\n A2(ql, kl, A2(XE, 1, r))\n ]));\n }, QE = F3(function(r, n, e) {\n return A2(Hs, g([\n js(\"grid\")\n ]), g([\n A2(Hs, g([\n js(\"s12 m6 max\")\n ]), g([\n A2(Nl, g([\n A2(bf, \"width\", \"100%\"),\n A2(bf, \"height\", \"400px\"),\n A2(bf, \"background-color\", \"rgb(255,255,255)\"),\n A2(bf, \"padding\", \"5px\"),\n A2(bf, \"overflow\", \"scroll\"),\n xl(n),\n Ll(fl(e)),\n A2(Xr, \"rows\", ge(10))\n ]), d)\n ])),\n A2(Hs, g([\n js(\"s12 m6 left-align\"),\n A2(bf, \"padding\", \"5px\"),\n A2(bf, \"overflow\", \"scroll\"),\n A2(bf, \"background-color\", \"rgb(255,255,255)\")\n ]), g([\n JE(n)\n ]))\n ]));\n }), ZE = F3(function(r, n, e) {\n return A2(Hs, g([\n js(\"field border round fill small max\")\n ]), g([\n A2(bl, g([\n A2(rf, \"type\", \"text\"),\n xl(n),\n Ll(fl(e))\n ]), d),\n A2(Js, g([\n js(\"helper\")\n ]), g([\n _s(r)\n ]))\n ]));\n }), rT = Vr(\"option\"), nT = Vr(\"select\"), eT = ll(\"selected\"), tT = F4(function(r, n, t, u) {\n var a = function a(r) {\n return A2(rT, g([\n xl(r),\n eT(e(r, t))\n ]), g([\n _s(r)\n ]));\n };\n return A2(Hs, g([\n js(\"field label suffix border small round\")\n ]), g([\n A2(nT, g([\n Ll(fl(u))\n ]), A2(Rt, a, n)),\n A2(Mf, d, g([\n _s(r)\n ])),\n ff(\"arrow_drop_down\")\n ]));\n }), uT = F3(function(r, n, e) {\n return A2(Hs, d, g([\n A2(Mf, g([\n js(\"switch\")\n ]), g([\n A2(bl, g([\n A2(rf, \"type\", \"checkbox\"),\n dl(n),\n of(A2(fl, e, \"\"))\n ]), d),\n A2(Js, g([\n js(\"helper padding\")\n ]), g([\n _s(r)\n ]))\n ]))\n ]));\n }), aT = F2(function(r, n) {\n var _$e = function e(r) {\n return A2(Hs, g([\n js(mf)\n ]), g([\n A2(Hs, g([\n js(\"center-align\")\n ]), g([\n A2(Fs, d, g([\n r\n ]))\n ]))\n ]));\n };\n switch(n.$){\n case 0:\n return _$e(A2(Ws, r, \"Please refresh the page\"));\n case 2:\n return _$e(_s(A2(Ti, r, n.a)));\n case 1:\n return _$e(Kf);\n default:\n var t = n.a, u = A2(Rt, Ui, li);\n return A2(Hs, g([\n js(\"fill center-align padding\")\n ]), g([\n A2(Hs, g([\n js(\"center-align\")\n ]), g([\n A2(Fs, g([\n js(\"center-align\")\n ]), g([\n _s(\"new\" === t.M ? \"New Product\" : \"Edit Product\")\n ])),\n A2(Bf, d, g([\n A3(ZE, \"Title\", t.bj, al)\n ])),\n A2(Bf, d, g([\n A3(QE, \"Summary\", t.bh, ul)\n ])),\n A2(Bf, g([\n js(\"left-align border round padding\")\n ]), g([\n A2(Rf, d, g([\n A2(Ws, r, \"Pick Categories\")\n ])),\n A2(Hs, d, A2(Rt, function(r) {\n return A3(pl, r, A2(xi, r, t.a0), function(r) {\n return {\n $: 2,\n a: r\n };\n }(r));\n }, il))\n ])),\n A2(cl, d, d),\n A2(Bf, d, g([\n A4(tT, \"Currency\", u, Ui(t.bb.bN), Qf),\n A3(Sl, \"Price: \" + ol(t.bb), t.bb.bC, nl),\n A3(Sl, \"Discount: \", t.bb.bR, Zf)\n ])),\n A2(Bf, d, g([\n A3(Sl, \"Stock: \" + ge(t.bg), t.bg, tl)\n ])),\n A2(sl, d, d),\n \"new\" === t.M ? A2(Rf, d, g([\n A2(Ws, r, \"Save your new product before uploading images\")\n ])) : A2(Hs, g([\n js(\"row scroll\")\n ]), A2(ne, $l, A2(Rt, function(r) {\n return A2(gl, r, rl);\n }, t.a6))),\n A2(Hs, g([\n js(\"space\")\n ]), d),\n A2(Bf, g([\n js(\"row\")\n ]), g([\n A3(uT, \"Published?\", t.bc, el)\n ]))\n ])),\n A2(uf, g([\n js(\"padding\")\n ]), g([\n A2(nf, g([\n js(\"max\"),\n of(Jf)\n ]), g([\n A2(Js, d, g([\n ff(\"save\"),\n A2(Js, d, g([\n A2(Ws, r, \"new\" === t.M ? \"Create\" : \"Update\")\n ]))\n ]))\n ]))\n ]))\n ]));\n }\n }), cT = {\n $: 8\n }, iT = \"fill middle-align center-align\", oT = function oT(r) {\n return A2(Hs, g([\n js(iT)\n ]), g([\n A2(Hs, g([\n js(\"center-align\")\n ]), g([\n gf(\"shopping_cart_off\"),\n A2(Bf, d, g([\n A2(Fs, g([\n js(\"center-align\")\n ]), g([\n A2(Ws, r, \"Your cart is empty\")\n ])),\n A2(Hs, g([\n js(\"space\")\n ]), d),\n A2(uf, g([\n js(\"center-align\")\n ]), g([\n A2(zs, g([\n js(\"button\"),\n Xs(Jo(Ou))\n ]), g([\n A2(Ws, r, \"Start Shopping\")\n ]))\n ]))\n ]))\n ]))\n ]));\n }, sT = F2(function(r, n) {\n var _$e = A2(ve, \" \", g([\n \"Your\",\n Ns(n.bf),\n ge(_i(n.a7)),\n \"items\"\n ]));\n return A2(kf, g([\n js(\"small-width border\")\n ]), g([\n A2(Rf, d, g([\n _s(Uf(n.at.cL))\n ])),\n A2(sl, d, d),\n A2(cl, d, d),\n A2(Bf, d, g([\n _s(_$e)\n ])),\n A2(Bf, d, g([\n A2(_f, r, n.bk)\n ])),\n A2(uf, d, g([\n A2(zs, g([\n js(\"button\"),\n Xs(Jo(qu(n.M)))\n ]), g([\n A2(Ws, r, \"View Order\")\n ]))\n ]))\n ]));\n }), fT = {\n $: 6\n }, lT = {\n $: 5\n }, dT = function dT(r) {\n return 1 === r.bl.$ ? function(r) {\n return A2(Hs, g([\n js(iT)\n ]), g([\n A2(Hs, g([\n js(\"center-align\")\n ]), g([\n gf(\"login\"),\n A2(Fs, g([\n js(\"center-align\")\n ]), g([\n A2(Ws, r.a, \"Sign In\")\n ])),\n A2(Bf, d, g([\n A2(Ws, r.a, \"Sign in to manage your account and continue your checkout\")\n ])),\n A2(Hs, g([\n js(\"space\")\n ]), d),\n A2(Hs, g([\n js(\"padding\")\n ]), g([\n A2(nf, g([\n of(lT)\n ]), g([\n A2(Ws, r.a, \"Sign In with Google\")\n ])),\n A2(nf, g([\n of(fT)\n ]), g([\n A2(Ws, r.a, \"Sign In with Facebook\")\n ]))\n ]))\n ]))\n ]));\n }(r) : function(r) {\n var n = function() {\n var n = r.af;\n switch(n.$){\n case 0:\n return A2(Hs, g([\n js(\"grid center-align\")\n ]), g([\n A2(Fs, d, g([\n A2(Ws, r.a, \"Please refresh the page\")\n ]))\n ]));\n case 2:\n var _$e = n.a;\n return A2(Hs, g([\n js(\"grid center-align\")\n ]), g([\n A2(Fs, d, g([\n _s(A2(Ti, r.a, _$e))\n ]))\n ]));\n case 1:\n return A2(Hs, g([\n js(\"grid center-align\")\n ]), g([\n A2(Fs, d, g([\n Kf\n ]))\n ]));\n default:\n var t = n.a;\n return zo(t) ? oT(r.a) : A2(Hs, g([\n js(\"row scroll\")\n ]), A2(Rt, sT(r.a), t));\n }\n }();\n return A2(Hs, g([\n js(\"primary-container padding center-align\")\n ]), g([\n A2(uf, g([\n js(\"center-align\")\n ]), g([\n A2(Fs, d, g([\n A2(Ws, r.a, \"Order History\"),\n gf(\"paid\"),\n A2(nf, g([\n js(\"right secondary\"),\n of(cT)\n ]), g([\n A2(Ws, r.a, \"Sign Out\")\n ]))\n ]))\n ])),\n A2(Hs, g([\n js(\"space\")\n ]), d),\n n\n ]));\n }(r);\n }, bT = Gs(\"alt\"), pT = function pT(r) {\n switch(r.bf){\n case 0:\n case 1:\n return !0;\n default:\n return !1;\n }\n }, gT = function gT(r) {\n var n = r.bf;\n switch(n){\n case 0:\n return \"Cart Summary\";\n case 2:\n return \"Thank you! Your Order Summary\";\n case 5:\n return \"Your Shipped Order Summary\";\n default:\n return \"Your \" + Ns(n) + \" Order Summary\";\n }\n }, vT = Vr(\"h6\"), hT = function hT(r) {\n return {\n $: 27,\n a: r\n };\n }, mT = F2(function(r, n) {\n var _$e = i(n.a1, n.bf);\n if (1 === _$e.a.$) return A2(uf, d, g([\n A2(nf, g([\n js(\"button max\"),\n of(hT(n))\n ]), g([\n A2(Js, d, g([\n A2(_f, r, n.bk)\n ])),\n ff(\"shopping_bag\"),\n A2(Js, d, g([\n A2(Ws, r, \"Confirm Order\")\n ]))\n ]))\n ]));\n switch(_$e.b){\n case 0:\n var t = _$e.a.a;\n return A2(uf, d, g([\n A2(zs, g([\n js(\"button max\"),\n Xs(A2(nu, \"\", t.ca))\n ]), g([\n A2(Js, d, g([\n A2(_f, r, n.bk)\n ])),\n ff(\"shopping_bag\"),\n A2(Js, d, g([\n A2(Ws, r, \"Go to Payment Now\")\n ]))\n ]))\n ]));\n case 1:\n return t = _$e.a.a, A2(uf, d, g([\n A2(zs, g([\n js(\"button max\"),\n Xs(A2(nu, \"\", t.ca))\n ]), g([\n A2(Js, d, g([\n A2(_f, r, n.bk)\n ])),\n ff(\"shopping_bag\"),\n A2(Js, d, g([\n A2(Ws, r, \"Go to Payment Now\")\n ]))\n ]))\n ]));\n default:\n var u = _$e.b, a = A2(nu, \"\", A2(ru, function(r) {\n return \" (\" + r + \")\";\n }, A2(Zu, function(r) {\n return r.ct;\n }, n.a1))), c = A2(ve, \" \", g([\n Ns(u),\n ge(_i(n.a7)),\n \"items\"\n ]));\n return A2(uf, d, g([\n A2(Hs, g([\n js(\"tertiary responsive padding\")\n ]), g([\n A2(Rf, d, g([\n _s(Uf(n.at.cL))\n ])),\n A2(sl, d, d),\n A2(cl, d, d),\n A2(Bf, d, g([\n _s(l(c, a))\n ])),\n A2(Bf, d, g([\n A2(_f, r, n.bk)\n ])),\n A2(Hs, g([\n js(\"space\")\n ]), d)\n ]))\n ]));\n }\n }), yT = F2(function(r, n) {\n return A2(Hs, d, g([\n A2(vT, d, g([\n _s(gT(n))\n ])),\n A2(Hs, d, A2(Rt, A2(Wf, r, pT(n)), n.a7)),\n A2(mT, r, n)\n ]));\n }), wT = F2(function(r, n) {\n return A2(nu, oT(r), A2(ru, yT(r), n));\n }), $T = F2(function(r, n) {\n var _$e = function e(r) {\n return A2(Hs, g([\n js(mf)\n ]), g([\n A2(Hs, g([\n js(\"center-align\")\n ]), g([\n A2(Fs, d, g([\n r\n ]))\n ]))\n ]));\n };\n switch(n.$){\n case 0:\n return _$e(A2(Ws, r, \"Please sign in to continue or refresh the page\"));\n case 2:\n return _$e(_s(A2(Ti, r, n.a)));\n case 1:\n return _$e(Kf);\n default:\n var t = n.a;\n return A2(Hs, g([\n js(\"padding\")\n ]), g([\n A2(vT, d, g([\n _s(gT(t))\n ])),\n A2(Hs, d, A2(Rt, A2(Wf, r, pT(t)), t.a7)),\n A2(mT, r, t)\n ]));\n }\n }), ET = Vr(\"ul\"), TT = A2(Hs, g([\n js(\"container large padding\")\n ]), g([\n A2(hm, d, g([\n _s(\"Privacy Policy for Shop4Mum LTD ('Shop4Mum')\")\n ])),\n A2(Bf, d, g([\n _s(\"Last Updated: 4th March 2025\")\n ])),\n A2(Bf, d, g([\n _s(\"1. Introduction\")\n ])),\n A2(Bf, d, g([\n _s(\"Welcome to Shop4Mum, operated by Shop4Mum LTD ('we,' 'us,' or 'our'). We value your privacy and are committed to protecting your personal information. This Privacy Policy outlines how we collect, use, disclose, and safeguard your data when using our website located at \")\n ])),\n A2(zs, g([\n Xs(\"https://shop4mum.com\")\n ]), g([\n _s(\"https://shop4mum.com\")\n ])),\n _s(\" ('the Website').\"),\n A2(Bf, d, g([\n _s(\"By using our services, you acknowledge that you have read and understood this Privacy Policy and consent to our data practices.\")\n ])),\n A2(Bf, d, g([\n _s(\"2. Data Collection\")\n ])),\n A2(Bf, d, g([\n _s(\"We collect the following types of personal data for operational and legal purposes:\")\n ])),\n A2(ET, d, g([\n A2($m, d, g([\n _s(\"Full Name: For order fulfillment and identification.\")\n ])),\n A2($m, d, g([\n _s(\"Shipping Address: To ensure accurate order delivery.\")\n ])),\n A2($m, d, g([\n _s(\"Email Address: For communication, support, and account management.\")\n ])),\n A2($m, d, g([\n _s(\"Social Media Login Information (Facebook/Google): To streamline the login process.\")\n ]))\n ])),\n A2(Bf, d, g([\n _s(\"3. Payment Processing\")\n ])),\n A2(Bf, d, g([\n _s(\"We do not store payment details. Payments are securely processed via Stripe. Please refer to \")\n ])),\n A2(zs, g([\n Xs(\"https://stripe.com/privacy\")\n ]), g([\n _s(\"Stripe\\u2019s Privacy Policy\")\n ])),\n _s(\".\"),\n A2(Bf, d, g([\n _s(\"4. Data Sharing\")\n ])),\n A2(Bf, d, g([\n _s(\"We do not sell or share personal data for marketing purposes. Data may be shared only with third-party providers necessary for service fulfillment, such as payment processors and shipping partners.\")\n ])),\n A2(Bf, d, g([\n _s(\"5. User Rights Under GDPR\")\n ])),\n A2(Bf, d, g([\n _s(\"You have the following rights under GDPR:\")\n ])),\n A2(ET, d, g([\n A2($m, d, g([\n _s(\"Access: Request access to your personal data.\")\n ])),\n A2($m, d, g([\n _s(\"Correction: Update or correct your data if inaccurate.\")\n ])),\n A2($m, d, g([\n _s(\"Deletion: Request the removal of your data.\")\n ])),\n A2($m, d, g([\n _s(\"Restriction: Limit how we use your data.\")\n ])),\n A2($m, d, g([\n _s(\"Portability: Request a copy of your data in a structured format.\")\n ]))\n ])),\n A2(Bf, d, g([\n _s(\"6. Data Deletion Requests\")\n ])),\n A2(Bf, d, g([\n _s(\"To request the deletion of your personal data, please email us at \"),\n A2(zs, g([\n Xs(\"mailto:anzel_lai@hotmail.com\")\n ]), g([\n _s(\"anzel (underscore) lai (at) hotmail (dot) com\")\n ])),\n _s(\" with the subject 'Data Deletion Request'. Please include your registered email and relevant details. We will process your request within 30 days, in accordance with GDPR guidelines.\")\n ])),\n A2(Bf, d, g([\n _s(\"7. Data Retention\")\n ])),\n A2(Bf, d, g([\n _s(\"We retain personal data for up to 7 years as required for legal compliance, accounting, and auditing.\")\n ])),\n A2(Bf, d, g([\n _s(\"8. Data Security\")\n ])),\n A2(Bf, d, g([\n _s(\"We implement security measures to protect data against unauthorized access, using encryption and secure hosting on Google Cloud Platform within the United Kingdom.\")\n ])),\n A2(Bf, d, g([\n _s(\"9. Changes to This Privacy Policy\")\n ])),\n A2(Bf, d, g([\n _s(\"We may update this Privacy Policy periodically. Please review it for any changes.\")\n ])),\n A2(Bf, d, g([\n _s(\"10. Contact Us\")\n ])),\n A2(Bf, d, g([\n _s(\"For any questions regarding this Privacy Policy, please contact us at \")\n ])),\n A2(zs, g([\n Xs(\"mailto:anzel_lai@hotmail.com\")\n ]), g([\n _s(\"anzel (underscore) lai (at) hotmail (dot) com\")\n ])),\n _s(\".\")\n ])), AT = function AT(r) {\n return \"/uploads/\" + r;\n }, LT = function LT(r) {\n var n = function() {\n var n = i(e(r, xu), e(r, _t));\n return n.a || n.b ? r : AT(r);\n }();\n return A2(tf, g([\n js(\"responsive medium-width\"),\n A2(Xr, \"width\", ge(640)),\n sf(n)\n ]), d);\n }, xT = F2(function(r, n) {\n var _$e, t = function t(r) {\n return A2(Hs, g([\n js(mf)\n ]), g([\n A2(Hs, g([\n js(\"center-align\")\n ]), g([\n A2(Fs, d, g([\n r\n ]))\n ]))\n ]));\n };\n switch(n.$){\n case 0:\n return t(A2(Ws, r, \"Please refresh the page\"));\n case 2:\n return t(_s(A2(Ti, r, n.a)));\n case 1:\n return t(Kf);\n default:\n var u = n.a, a = function a(r) {\n return A2(Js, g([\n js(\"chip small\")\n ]), g([\n _s(r)\n ]));\n };\n return A2(Hs, g([\n js(\"fill center-align padding\")\n ]), g([\n A2(Hs, g([\n js(\"center-align\")\n ]), g([\n A2(Fs, g([\n js(\"center-align\")\n ]), g([\n _s(u.bj)\n ])),\n A2(Bf, d, A2(Rt, a, A2(Rt, Ci, u.a0))),\n A2(Bf, d, g([\n JE(u.bh)\n ])),\n A2(Hs, g([\n js(\"space\")\n ]), d),\n A2(Hs, g([\n js(\"row scroll\")\n ]), A2(Rt, LT, zo(u.a6) ? g([\n xu\n ]) : u.a6))\n ])),\n A2(uf, g([\n js(\"padding\")\n ]), g([\n (_$e = i(u.bc, !u.bg), _$e.a ? _$e.b ? A2(Ws, r, \"Out of stock\") : A2(nf, g([\n js(\"max\"),\n of(A2(jf, u.M, 1))\n ]), g([\n A2(Js, d, g([\n A2(_f, r, u.bb)\n ])),\n gf(\"shopping_bag\"),\n A2(Js, d, g([\n A2(Ws, r, \"Buy Now\")\n ]))\n ])) : _s(\"Not published\"))\n ]))\n ]));\n }\n }), ST = F3(function(r, n, e) {\n var t = A2(Ro, function(r) {\n return n.a ? r.bb.bC : r.at.cL;\n }, A2(bi, function(n) {\n var _$e = $i(A2(ve, \", \", l(g([\n n.bj,\n ol(n.bb)\n ]), A2(Rt, Ci, n.a0))));\n return A2(yf, function(r) {\n return A2(lt, r, _$e);\n }, A2(bi, A2(au, Ef, A2(au, vt, pc)), A2(he, \" \", $i(r))));\n }, e));\n return n.b ? qe(t) : t;\n }), NT = function NT(r) {\n return A2(nu, xu, A2(ru, AT, wi(r.a6)));\n }, kT = Vr(\"small\"), RT = F2(function(r, n) {\n return A2(kf, g([\n js(\"no-padding\"),\n A2(bf, \"min-height\", \"100%\")\n ]), g([\n A2(tf, g([\n js(\"responsive small-height\"),\n sf(NT(n)),\n A2(bf, \"cursor\", \"pointer\"),\n of(Ju(Cu(n.M)))\n ]), d),\n A2(Hs, g([\n js(\"padding\")\n ]), g([\n A2(Bf, d, g([\n A2(_f, r, n.bb)\n ])),\n A2(uf, d, g([\n A2(zs, g([\n js(\"button border\"),\n Xs(Jo(Cu(n.M)))\n ]), g([\n ff(\"image\")\n ])),\n A2(Hs, g([\n js(\"max\")\n ]), d),\n function() {\n var _$e = i(n.bc, !n.bg);\n return _$e.a ? _$e.b ? A2(Ws, r, \"Out of stock\") : A2(nf, g([\n js(\"button\"),\n of(A2(jf, n.M, 1))\n ]), g([\n ff(\"add_shopping_cart\"),\n A2(Js, d, g([\n A2(Ws, r, \"Buy\")\n ]))\n ])) : _s(\"Not published\");\n }()\n ])),\n A2(Hs, g([\n js(\"small-divider\")\n ]), d),\n A2(Bf, d, g([\n A2(Rf, d, g([\n _s(n.bj)\n ]))\n ])),\n A2(Hs, d, g([\n A2(kT, d, g([\n _s(n.bh)\n ]))\n ]))\n ]))\n ]));\n }), qT = function qT(r) {\n var n, _$e = r.ax;\n switch(_$e.$){\n case 0:\n return A2(Hs, g([\n js(\"grid center-align\")\n ]), g([\n A2(Fs, d, g([\n A2(Ws, r.a, \"Please refresh the page\")\n ]))\n ]));\n case 2:\n var t = _$e.a;\n return A2(Hs, g([\n js(\"grid center-align\")\n ]), g([\n A2(Fs, d, g([\n _s(A2(Ti, r.a, t))\n ]))\n ]));\n case 1:\n return A2(Hs, g([\n js(\"grid center-align\")\n ]), g([\n A2(Fs, d, g([\n Kf\n ]))\n ]));\n default:\n var u = _$e.a;\n return zo(u) ? (n = r.a, A2(Hs, g([\n js(iT)\n ]), g([\n A2(Hs, g([\n js(\"center-align\")\n ]), g([\n gf(\"category\"),\n A2(Bf, d, g([\n A2(Fs, g([\n js(\"center-align\")\n ]), g([\n A2(Ws, n, \"Promotional products are coming, please check on our site again at a later time\")\n ])),\n A2(Hs, g([\n js(\"space\")\n ]), d)\n ]))\n ]))\n ]))) : A2(Hs, g([\n js(\"secondary-text max center-align\")\n ]), g([\n A2(Rf, d, g([\n A2(Ws, r.a, \"Please note: you can only select single-currency products to the cart\")\n ])),\n A2(Hs, g([\n js(\"grid center-align padding\")\n ]), A2(Rt, function(n) {\n return A2(Hs, g([\n js(\"s12 m6 l3\")\n ]), g([\n A2(RT, r.a, n)\n ]));\n }, A3(ST, r.W, r.G, u)))\n ]));\n }\n }, IT = A2(Hs, g([\n js(\"container large padding\")\n ]), g([\n A2(hm, d, g([\n _s(\"Terms and Conditions for Shop4Mum\")\n ])),\n A2(Bf, d, g([\n _s(\"Last Updated: 13th January 2024\")\n ])),\n A2(Bf, d, g([\n _s(\"1. Acceptance of Terms\")\n ])),\n A2(Bf, d, g([\n _s(\"1.1. By using the e-commerce website 'Shop4Mum' (the 'Website'), operated by Shop4Mum LTD ('we,' 'us,' or 'our'), UK registered Company Number (12219118), VAT Number (332811623), you agree to comply with and be bound by these Terms and Conditions. If you do not agree to these Terms and Conditions, please refrain from using our services.\")\n ])),\n A2(Bf, d, g([\n _s(\"2. Use of the Website\")\n ])),\n A2(Bf, d, g([\n _s(\"2.1. You agree to use the Website only for lawful purposes and in a manner that does not violate any applicable laws or regulations.\")\n ])),\n A2(Bf, d, g([\n _s(\"2.2. You agree not to impersonate any person or entity, engage in any fraudulent or misleading activities, or interfere with the proper functioning of the Website.\")\n ])),\n A2(Bf, d, g([\n _s(\"3. Product Information\")\n ])),\n A2(Bf, d, g([\n _s(\"3.1. We strive to provide accurate product information, including descriptions, prices, and availability. However, we do not guarantee the accuracy or completeness of such information and reserve the right to correct any errors or omissions.\")\n ])),\n A2(Bf, d, g([\n _s(\"4. Orders and Payments\")\n ])),\n A2(Bf, d, g([\n _s(\"4.1. By placing an order on the Website, you agree to provide accurate and complete information, including your name, shipping address, and contact information.\")\n ])),\n A2(Bf, d, g([\n _s(\"4.2. Payment processing and customer data collection for transactions are handled through Stripe Checkout hosted payment forms, subject to Stripe's Privacy Policy. We do not store payment information.\")\n ])),\n A2(Bf, d, g([\n _s(\"5. Shipping and Delivery\")\n ])),\n A2(Bf, d, g([\n _s(\"5.1. We aim to fulfill orders promptly and deliver them to the provided shipping address. However, delivery times may vary, and we are not responsible for delays or issues caused by third-party delivery services.\")\n ])),\n A2(Bf, d, g([\n _s(\"6. Returns and Refunds\")\n ])),\n A2(Bf, d, g([\n _s(\"6.1. Our return and refund policy is outlined on the Website. Please review the policy before making a purchase.\")\n ])),\n A2(Bf, d, g([\n _s(\"7. Privacy\")\n ])),\n A2(Bf, d, g([\n _s(\"7.1. Your use of the Website is also governed by our Privacy Policy. Please review the Privacy Policy to understand how we collect, use, and protect your personal information.\")\n ])),\n A2(Bf, d, g([\n _s(\"8. Intellectual Property\")\n ])),\n A2(Bf, d, g([\n _s(\"8.1. All content on the Website, including text, graphics, logos, and images, is protected by intellectual property laws and is the property of Shop4Mum LTD or its licensors. You may not use, reproduce, or distribute such content without our permission.\")\n ])),\n A2(Bf, d, g([\n _s(\"9. Limitation of Liability\")\n ])),\n A2(Bf, d, g([\n _s(\"9.1. To the extent permitted by law, we shall not be liable for any direct, indirect, incidental, special, or consequential damages arising from your use of the Website or any products purchased through it.\")\n ])),\n A2(Bf, d, g([\n _s(\"10. Governing Law\")\n ])),\n A2(Bf, d, g([\n _s(\"10.1. These Terms and Conditions are governed by and construed in accordance with the laws of the United Kingdom.\")\n ])),\n A2(Bf, d, g([\n _s(\"11. Changes to Terms and Conditions\")\n ])),\n A2(Bf, d, g([\n _s(\"11.1. We may update these Terms and Conditions from time to time. The latest version will be posted on the Website. Please review them periodically.\")\n ])),\n A2(Bf, d, g([\n _s(\"12. Contact Information\")\n ])),\n A2(Bf, d, g([\n _s(\"12.1. If you have any questions or concerns about these Terms and Conditions or our services, please contact us at \")\n ])),\n A2(zs, g([\n Xs(\"mailto:anzel_lai@hotmail.com\")\n ]), g([\n _s(\"anzel (underscore) lai (at) hotmail (dot) com\")\n ])),\n _s(\".\")\n ])), DT = function DT(r) {\n if (r.ak) {\n var n = r.E;\n r: for(; !n.$;)switch(n.a.$){\n case 8:\n return dT(r);\n case 1:\n return qT(r);\n case 2:\n return A2(r.ab ? aT : xT, r.a, r.co);\n case 3:\n return A2(wT, r.a, r.K);\n case 6:\n return 1 === r.bl.$ ? dT(r) : A2($T, r.a, r.D);\n case 4:\n return Xf(r);\n case 9:\n return TT;\n case 10:\n return IT;\n default:\n break r;\n }\n return function(r) {\n var n = A2(zs, g([\n js(\"button\"),\n Xs(Jo(Ou)),\n bT(Ys(Ou))\n ]), g([\n A2(Ws, r.a, \"Happy Shopping!\")\n ]));\n return A2(Hs, g([\n js(\"middle-align center-align\")\n ]), g([\n A2(Hs, g([\n js(\"center-align\")\n ]), g([\n A2(tf, g([\n js(\"responsive\"),\n sf(r.aG.bn)\n ]), d),\n A2(Bf, d, g([\n A2(Fs, g([\n js(\"center-align\")\n ]), g([\n A2(Ws, r.a, \"Welcome to Shop4Mum UK\")\n ])),\n A2(uf, g([\n js(\"center-align\")\n ]), g([\n n\n ])),\n A2(Hs, g([\n js(\"padding\")\n ]), g([\n A2(Bf, d, g([\n A2(Ws, r.a, \"Welcome to Shop4Mum, your trusted online emporium for quality products with a personal touch. Our journey began back in 2014 as a modest Facebook page, and today, we're proud to serve customers not only in the UK but also in Hong Kong and around the world. Our secret to growth? A steadfast commitment to sincere and dedicated customer service.\")\n ])),\n A2(Bf, d, g([\n A2(Ws, r.a, \"At Shop4Mum, we go the extra mile to ensure our customers' complete satisfaction. Each item is painstakingly inspected before dispatch, and we take any defects or concerns seriously. It's this dedication to excellence that keeps our customers returning, confident in their purchases and eager to engage in meaningful conversations about life.\")\n ])),\n A2(Bf, d, g([\n A2(Ws, r.a, \"What truly distinguishes us is the genuine connections we build with our customers. Over the years, many have become more than just valued patrons \\u2013 they've become cherished friends. Join the Shop4Mum family today, and experience the difference of a shopping experience where quality, care, and community seamlessly intertwine.\")\n ]))\n ]))\n ]))\n ]))\n ]));\n }(r);\n }\n return Kf;\n }, CT = function CT(r) {\n return {\n $: 9,\n a: r\n };\n }, OT = function OT(r) {\n return A2(Hs, g([\n js(\"field label prefix border s12 l6 max\")\n ]), g([\n ff(\"search\"),\n A2(bl, g([\n A2(rf, \"type\", \"text\"),\n xl(r.W),\n Ll(CT)\n ]), d),\n A2(Mf, d, g([\n A2(Ws, r.a, \"Search\")\n ]))\n ]));\n }, UT = function UT(r) {\n return {\n $: 10,\n a: r\n };\n }, PT = function PT(r) {\n return A2(Hs, g([\n js(\"s12 l6 center-align middle-align\")\n ]), g([\n function() {\n var n = r.E;\n return n.$ || 4 !== n.a.$ ? A2(Ws, r.a, \"\") : A2(Hs, g([\n js(\"max\")\n ]), g([\n A2(nf, g([\n js(\"small border\"),\n of(CT(\"state:ordered\"))\n ]), g([\n ff(\"filter_alt\"),\n A2(Js, d, g([\n A2(Ws, r.a, \"Ordered\")\n ]))\n ])),\n A2(nf, g([\n js(\"small border\"),\n of(CT(\"state:shipped\"))\n ]), g([\n ff(\"filter_alt\"),\n A2(Js, d, g([\n A2(Ws, r.a, \"Shipped\")\n ]))\n ])),\n A2(nf, g([\n js(\"small border\"),\n of(CT(\"state:delivered\"))\n ]), g([\n ff(\"filter_alt\"),\n A2(Js, d, g([\n A2(Ws, r.a, \"Delivered\")\n ]))\n ])),\n A2(nf, g([\n js(\"small border\"),\n of(CT(\"state:cancelled\"))\n ]), g([\n ff(\"filter_alt\"),\n A2(Js, d, g([\n A2(Ws, r.a, \"Cancelled\")\n ]))\n ])),\n A2(nf, g([\n js(\"small border\"),\n of(CT(\"state:refunded\"))\n ]), g([\n ff(\"filter_alt\"),\n A2(Js, d, g([\n A2(Ws, r.a, \"Refunded\")\n ]))\n ]))\n ]));\n }(),\n A2(Hs, g([\n js(\"space\")\n ]), d),\n A2(Hs, g([\n js(\"max\")\n ]), g([\n A2(nf, g([\n js(\"small \" + (r.G.a ? \"secondary\" : \"tertiary\")),\n of(UT(i(0, r.G.b)))\n ]), g([\n ff(\"sort\"),\n A2(Js, d, g([\n A2(Ws, r.a, \"Latest\")\n ]))\n ])),\n A2(nf, g([\n js(\"small \" + (1 === r.G.a ? \"tertiary\" : \"secondary\")),\n of(UT(i(1, r.G.b)))\n ]), g([\n ff(\"sort\"),\n A2(Js, d, g([\n A2(Ws, r.a, \"Pricing\")\n ]))\n ])),\n A2(nf, g([\n js(\"small tertiary\"),\n of(UT(i(r.G.a, r.G.b ? 0 : 1)))\n ]), g([\n ff(r.G.b ? \"arrow_downward\" : \"arrow_upward\"),\n A2(Js, d, g([\n A2(Ws, r.a, \"Direction\")\n ]))\n ])),\n A2(nT, g([\n Ll(CT)\n ]), g([\n A2(rT, g([\n xl(\"\")\n ]), g([\n _s(\"ALL\")\n ])),\n A2(rT, g([\n xl(Ui(1)),\n eT(A2(lt, Ui(1), r.W))\n ]), g([\n _s(Ui(1))\n ])),\n A2(rT, g([\n xl(Ui(0)),\n eT(A2(lt, Ui(0), r.W))\n ]), g([\n _s(Ui(0))\n ]))\n ]))\n ]))\n ]));\n }, MT = (Ay = {\n c7: Us,\n da: Jn,\n db: function db(r) {\n return {\n $: 1,\n a: r\n };\n },\n dn: function dn() {\n return Ms(g([\n Bs(Ps)\n ]));\n },\n $7: Os,\n dp: function dp(r) {\n var n;\n return {\n aa: g([\n hf(r),\n A2(Hs, g([\n js(\"main primary-container responsive\")\n ]), g([\n function() {\n if (\"\" === r.z) {\n var n = r.E;\n r: for(; !n.$;)switch(n.a.$){\n case 1:\n case 4:\n return A2(Hs, g([\n js(\"padding grid\")\n ]), g([\n OT(r),\n PT(r)\n ]));\n default:\n break r;\n }\n return A2(Ws, r.a, \"\");\n }\n return A2(Hs, g([\n js(\"cpmtainer large padding\")\n ]), g([\n A2(Fs, g([\n js(\"error center-align middle-align\")\n ]), g([\n A2(Ws, r.a, r.z)\n ]))\n ]));\n }(),\n DT(r),\n A2(Hs, g([\n js(\"padding\")\n ]), d),\n (n = r.a, A2(Hs, g([\n js(\"secondary fill grid middle-align center-align\")\n ]), g([\n A2(Ks, g([\n js(\"s12 m6\")\n ]), g([\n A2(Ws, n, \"- Shop4Mum. Copyright 2024. All rights reserved.\")\n ])),\n A2(Js, g([\n js(\"s12 m6\")\n ]), g([\n A2(zs, g([\n Xs(Jo(Du))\n ]), g([\n A2(Ws, n, \"Privacy Policy\")\n ])),\n A2(Js, g([\n js(\"padding\")\n ]), d),\n A2(zs, g([\n Xs(Jo(Uu))\n ]), g([\n A2(Ws, n, \"Terms & Conditions\")\n ]))\n ]))\n ])))\n ]))\n ]),\n bj: \"Shop4Mum - \" + A2(Ei, r.a, Ys(A2(nu, ku, r.E)))\n };\n }\n }, Ly = Ay.da, xy = Ay.db, Sy = function MT() {\n Sy.a(Ly(In()));\n }, Rn({\n bv: function bv(r) {\n return Sy.a = r, Cn.addEventListener(\"popstate\", Sy), 0 > Cn.navigator.userAgent.indexOf(\"Trident\") || Cn.addEventListener(\"hashchange\", Sy), F2(function(n, e) {\n if (!(e.ctrlKey || e.metaKey || e.shiftKey || e.button >= 1 || n.target || n.hasAttribute(\"download\"))) {\n e.preventDefault();\n var t = n.href, u = In(), a = At(t).a;\n r(xy(a && u.cp === a.cp && u.b$ === a.b$ && u.cj.a === a.cj.a ? function(r) {\n return {\n $: 0,\n a: r\n };\n }(a) : function(r) {\n return {\n $: 1,\n a: r\n };\n }(t)));\n }\n });\n },\n c7: function c7(r) {\n return A3(Ay.c7, r, In(), Sy);\n },\n dp: Ay.dp,\n $7: Ay.$7,\n dn: Ay.dn\n }));\n Ty = {\n Main: {\n init: MT(ca)(0)\n }\n }, r.Elm ? function r(n, e) {\n for(var t in e)t in n ? \"init\" == t ? $(6) : r(n[t], e[t]) : n[t] = e[t];\n }(r.Elm, Ty) : r.Elm = Ty;\n}($3b9044c4cf843e9c$exports);\n\n\nvar $be2146e60594208e$var$firebaseConfig = {\n production: {\n apiKey: \"AIzaSyBT-xedKsjTGneNullkoAAxZOEmI7vN150\",\n authDomain: \"shop4mum.com\",\n projectId: \"shop4mum\",\n storageBucket: \"shop4mum.appspot.com\",\n messagingSenderId: \"71195468539\",\n appId: \"1:71195468539:web:85ff559b8670a42156465e\"\n },\n default: {\n apiKey: \"AIzaSyDrGzLJGgttidXTDNAgXMPK8pzfXvJ1Tew\",\n authDomain: \"shop4mum-qa.firebaseapp.com\",\n projectId: \"shop4mum-qa\",\n storageBucket: \"shop4mum-qa.appspot.com\",\n messagingSenderId: \"526461291954\",\n appId: \"1:526461291954:web:3ba683ea7ae0c114d328ab\"\n }\n};\n(0, $6801661115945616$export$c55cfd413944906d)($be2146e60594208e$var$firebaseConfig[\"production\"] || $be2146e60594208e$var$firebaseConfig.default);\nvar $be2146e60594208e$var$appPrefix = \"shop4mum-production\";\nvar $be2146e60594208e$var$cookieKey = \"\".concat($be2146e60594208e$var$appPrefix, \":cookieNoticeAccepted\");\nvar $be2146e60594208e$var$langKey = \"\".concat($be2146e60594208e$var$appPrefix, \":lang\");\nvar $be2146e60594208e$var$providerGoogle = new (0, $f394e9ac486578e6$export$78acf4525d8a74c4)();\nvar $be2146e60594208e$var$providerFacebook = new (0, $f394e9ac486578e6$export$71cec2538cb2c617)();\nvar $be2146e60594208e$var$auth = (0, $f394e9ac486578e6$export$ae1af26003f05816)();\nvar $be2146e60594208e$var$app = (0, $3b9044c4cf843e9c$exports.Elm).Main.init({\n node: document.getElementById(\"root\"),\n flags: {\n env: \"production\",\n lang: localStorage.getItem($be2146e60594208e$var$langKey) || navigator.language.slice(0, 2) || \"en\",\n domainURL: \"https://shop4mum.com\",\n logoURL: $52be3ae126f6a93a$exports,\n bannerURL: $2def1c290218f6e6$exports\n }\n});\nfunction $be2146e60594208e$var$getMe(token) {\n return $be2146e60594208e$var$_getMe.apply(this, arguments);\n}\nfunction $be2146e60594208e$var$_getMe() {\n $be2146e60594208e$var$_getMe = (0, $9167c88d5d99601b$export$7c398597f8905a1)(function(token) {\n var response;\n return (0, $f6e09fca77e332f0$export$67ebef60e6f28a6)(this, function(_state) {\n switch(_state.label){\n case 0:\n return [\n 4,\n fetch(\"https://shop4mum.com/api/me\", {\n method: \"GET\",\n mode: \"cors\",\n cache: \"no-cache\",\n credentials: \"same-origin\",\n headers: {\n \"Content-Type\": \"application/json\",\n Authorization: \"Bearer \" + token\n }\n })\n ];\n case 1:\n response = _state.sent();\n return [\n 2,\n response.json()\n ];\n }\n });\n });\n return $be2146e60594208e$var$_getMe.apply(this, arguments);\n}\n$be2146e60594208e$var$app.ports.signInWithGoogle.subscribe(function() {\n (0, $f394e9ac486578e6$export$db3b6bfb95261072)($be2146e60594208e$var$auth, $be2146e60594208e$var$providerGoogle).then(function(result) {\n result.user.getIdToken().then(function(idToken) {\n $be2146e60594208e$var$getMe(idToken).then(function(signedInUser) {\n $be2146e60594208e$var$app.ports.signedIn.send(signedInUser);\n }).catch(function(error) {\n $be2146e60594208e$var$app.ports.signedIn.send({\n code: error.code,\n message: error.message\n });\n });\n });\n }).catch(function(error) {\n $be2146e60594208e$var$app.ports.signedIn.send({\n code: error.code,\n message: error.message\n });\n });\n});\n$be2146e60594208e$var$app.ports.signInWithFacebook.subscribe(function() {\n (0, $f394e9ac486578e6$export$db3b6bfb95261072)($be2146e60594208e$var$auth, $be2146e60594208e$var$providerFacebook).then(function(result) {\n result.user.getIdToken().then(function(idToken) {\n $be2146e60594208e$var$getMe(idToken).then(function(signedInUser) {\n $be2146e60594208e$var$app.ports.signedIn.send(signedInUser);\n }).catch(function(error) {\n $be2146e60594208e$var$app.ports.signedIn.send({\n code: error.code,\n message: error.message\n });\n });\n });\n }).catch(function(error) {\n $be2146e60594208e$var$app.ports.signedIn.send({\n code: error.code,\n message: error.message\n });\n });\n});\n$be2146e60594208e$var$app.ports.signOut.subscribe(function() {\n (0, $f394e9ac486578e6$export$e7094788287c5e9b)($be2146e60594208e$var$auth);\n});\n$be2146e60594208e$var$app.ports.setLang.subscribe(function(lang) {\n localStorage.setItem($be2146e60594208e$var$langKey, lang);\n});\n// Observer on user info\n(0, $f394e9ac486578e6$export$4a5767248b18ef41)($be2146e60594208e$var$auth, function(user) {\n if (user) user.getIdToken().then(function(idToken) {\n $be2146e60594208e$var$getMe(idToken).then(function(signedInUser) {\n $be2146e60594208e$var$app.ports.signedIn.send(signedInUser);\n }).catch(function(error) {\n $be2146e60594208e$var$app.ports.signedIn.send({\n code: error.code,\n message: error.message\n });\n });\n });\n else $be2146e60594208e$var$app.ports.signedIn.send(null);\n});\n// Function to create and append the cookie notice\nfunction $be2146e60594208e$var$createCookieNotice() {\n var noticeContainer = document.createElement(\"div\");\n noticeContainer.style.position = \"fixed\";\n noticeContainer.style.bottom = \"0\";\n noticeContainer.style.left = \"0\";\n noticeContainer.style.right = \"0\";\n noticeContainer.style.backgroundColor = \"#333\";\n noticeContainer.style.color = \"#fff\";\n noticeContainer.style.padding = \"10px\";\n noticeContainer.style.textAlign = \"center\";\n noticeContainer.style.zIndex = \"9999\";\n var noticeText = document.createElement(\"p\");\n noticeText.textContent = \"We only use essential cookies and do not track your activity.\";\n var closeButton = document.createElement(\"button\");\n closeButton.textContent = \"Close\";\n closeButton.addEventListener(\"click\", function() {\n noticeContainer.style.display = \"none\";\n localStorage.setItem($be2146e60594208e$var$cookieKey, true);\n });\n noticeContainer.appendChild(noticeText);\n noticeContainer.appendChild(closeButton);\n document.body.appendChild(noticeContainer);\n}\n// Check if the user has accepted the notice before\nvar $be2146e60594208e$var$hasAcceptedNotice = localStorage.getItem($be2146e60594208e$var$cookieKey);\nif (!$be2146e60594208e$var$hasAcceptedNotice) $be2146e60594208e$var$createCookieNotice();\nif (navigator.userAgent.includes(\"Android\")) {\n if (navigator.userAgent.includes(\"wv\") || navigator.userAgent.includes(\"WebView\")) {\n var $be2146e60594208e$var$noticeContainer = document.createElement(\"div\");\n $be2146e60594208e$var$noticeContainer.style.position = \"fixed\";\n $be2146e60594208e$var$noticeContainer.style.fontSize = \"18px\";\n $be2146e60594208e$var$noticeContainer.style.width = \"100%\";\n $be2146e60594208e$var$noticeContainer.style.height = \"100%\";\n $be2146e60594208e$var$noticeContainer.style.top = \"0\";\n $be2146e60594208e$var$noticeContainer.style.left = \"0\";\n $be2146e60594208e$var$noticeContainer.style.right = \"0\";\n $be2146e60594208e$var$noticeContainer.style.backgroundColor = \"#333\";\n $be2146e60594208e$var$noticeContainer.style.color = \"#fff\";\n $be2146e60594208e$var$noticeContainer.style.padding = \"10px\";\n $be2146e60594208e$var$noticeContainer.style.textAlign = \"center\";\n $be2146e60594208e$var$noticeContainer.style.overflowX = \"hidden\";\n $be2146e60594208e$var$noticeContainer.style.zIndex = \"9999\";\n var $be2146e60594208e$var$noticeText = document.createElement(\"p\");\n $be2146e60594208e$var$noticeText.textContent = \"You are currently using an in-app browser, which is considered insecure. To safeguard your security, we recommend opening this link in a standard browser. You can do this by selecting the WebView menu option to open in a regular browser or by copying and pasting the link into your preferred browser manually. Please note that this is not an issue with Shop4Mum. Leading industry experts widely recognise in-app browsers (WebView) as less secure, and our priority is to protect your information.\";\n $be2146e60594208e$var$noticeContainer.appendChild($be2146e60594208e$var$noticeText);\n document.body.appendChild($be2146e60594208e$var$noticeContainer);\n }\n}\n\n})();\n//# sourceMappingURL=index.719e04a5.js.map\n","import \"beercss\";\nimport \"material-dynamic-colors\";\n\nimport { initializeApp } from \"firebase/app\";\nimport {\n FacebookAuthProvider,\n getAuth,\n GoogleAuthProvider,\n onAuthStateChanged,\n signInWithPopup,\n signOut,\n} from \"firebase/auth\";\n\nimport * as banner from \"./assets/banner.jpg?width=1400\";\nimport * as logo from \"./assets/logo.jpg?width=96\";\nimport { Elm } from \"./frontend/Main.elm\";\n\nconst firebaseConfig = {\n production: {\n apiKey: \"AIzaSyBT-xedKsjTGneNullkoAAxZOEmI7vN150\",\n authDomain: \"shop4mum.com\",\n projectId: \"shop4mum\",\n storageBucket: \"shop4mum.appspot.com\",\n messagingSenderId: \"71195468539\",\n appId: \"1:71195468539:web:85ff559b8670a42156465e\",\n },\n default: {\n apiKey: \"AIzaSyDrGzLJGgttidXTDNAgXMPK8pzfXvJ1Tew\",\n authDomain: \"shop4mum-qa.firebaseapp.com\",\n projectId: \"shop4mum-qa\",\n storageBucket: \"shop4mum-qa.appspot.com\",\n messagingSenderId: \"526461291954\",\n appId: \"1:526461291954:web:3ba683ea7ae0c114d328ab\",\n },\n};\n\ninitializeApp(firebaseConfig[process.env.ELM_ENV] || firebaseConfig.default);\n\nconst appPrefix = `shop4mum-${process.env.ELM_ENV}`;\nconst cookieKey = `${appPrefix}:cookieNoticeAccepted`;\nconst langKey = `${appPrefix}:lang`;\n\nconst providerGoogle = new GoogleAuthProvider();\nconst providerFacebook = new FacebookAuthProvider();\nconst auth = getAuth();\n\nconst app = Elm.Main.init({\n node: document.getElementById(\"root\"),\n flags: {\n env: process.env.ELM_ENV,\n lang:\n localStorage.getItem(langKey) || navigator.language.slice(0, 2) || \"en\",\n domainURL: process.env.ELM_DOMAIN_URL,\n logoURL: logo,\n bannerURL: banner,\n },\n});\n\nasync function getMe(token) {\n const response = await fetch(process.env.ELM_DOMAIN_URL + \"/api/me\", {\n method: \"GET\",\n mode: \"cors\",\n cache: \"no-cache\",\n credentials: \"same-origin\",\n headers: {\n \"Content-Type\": \"application/json\",\n Authorization: \"Bearer \" + token,\n },\n });\n return response.json();\n}\n\napp.ports.signInWithGoogle.subscribe(() => {\n signInWithPopup(auth, providerGoogle)\n .then((result) => {\n result.user.getIdToken().then((idToken) => {\n getMe(idToken)\n .then((signedInUser) => {\n app.ports.signedIn.send(signedInUser);\n })\n .catch((error) => {\n app.ports.signedIn.send({\n code: error.code,\n message: error.message,\n });\n });\n });\n })\n .catch((error) => {\n app.ports.signedIn.send({\n code: error.code,\n message: error.message,\n });\n });\n});\n\napp.ports.signInWithFacebook.subscribe(() => {\n signInWithPopup(auth, providerFacebook)\n .then((result) => {\n result.user.getIdToken().then((idToken) => {\n getMe(idToken)\n .then((signedInUser) => {\n app.ports.signedIn.send(signedInUser);\n })\n .catch((error) => {\n app.ports.signedIn.send({\n code: error.code,\n message: error.message,\n });\n });\n });\n })\n .catch((error) => {\n app.ports.signedIn.send({\n code: error.code,\n message: error.message,\n });\n });\n});\n\napp.ports.signOut.subscribe(() => {\n signOut(auth);\n});\n\napp.ports.setLang.subscribe((lang) => {\n localStorage.setItem(langKey, lang);\n});\n\n// Observer on user info\nonAuthStateChanged(auth, (user) => {\n if (user) {\n user.getIdToken().then((idToken) => {\n getMe(idToken)\n .then((signedInUser) => {\n app.ports.signedIn.send(signedInUser);\n })\n .catch((error) => {\n app.ports.signedIn.send({\n code: error.code,\n message: error.message,\n });\n });\n });\n } else {\n app.ports.signedIn.send(null);\n }\n});\n\n// Function to create and append the cookie notice\nfunction createCookieNotice() {\n const noticeContainer = document.createElement(\"div\");\n noticeContainer.style.position = \"fixed\";\n noticeContainer.style.bottom = \"0\";\n noticeContainer.style.left = \"0\";\n noticeContainer.style.right = \"0\";\n noticeContainer.style.backgroundColor = \"#333\";\n noticeContainer.style.color = \"#fff\";\n noticeContainer.style.padding = \"10px\";\n noticeContainer.style.textAlign = \"center\";\n noticeContainer.style.zIndex = \"9999\";\n\n const noticeText = document.createElement(\"p\");\n noticeText.textContent =\n \"We only use essential cookies and do not track your activity.\";\n\n const closeButton = document.createElement(\"button\");\n closeButton.textContent = \"Close\";\n closeButton.addEventListener(\"click\", () => {\n noticeContainer.style.display = \"none\";\n localStorage.setItem(cookieKey, true);\n });\n\n noticeContainer.appendChild(noticeText);\n noticeContainer.appendChild(closeButton);\n document.body.appendChild(noticeContainer);\n}\n\n// Check if the user has accepted the notice before\nconst hasAcceptedNotice = localStorage.getItem(cookieKey);\nif (!hasAcceptedNotice) {\n createCookieNotice();\n}\n\nif (navigator.userAgent.includes(\"Android\")) {\n if (navigator.userAgent.includes(\"wv\") || navigator.userAgent.includes(\"WebView\")) {\n const noticeContainer = document.createElement(\"div\");\n noticeContainer.style.position = \"fixed\";\n noticeContainer.style.fontSize = \"18px\";\n noticeContainer.style.width = \"100%\";\n noticeContainer.style.height = \"100%\";\n noticeContainer.style.top = \"0\";\n noticeContainer.style.left = \"0\";\n noticeContainer.style.right = \"0\";\n noticeContainer.style.backgroundColor = \"#333\";\n noticeContainer.style.color = \"#fff\";\n noticeContainer.style.padding = \"10px\";\n noticeContainer.style.textAlign = \"center\";\n noticeContainer.style.overflowX = \"hidden\";\n noticeContainer.style.zIndex = \"9999\";\n\n const noticeText = document.createElement(\"p\");\n noticeText.textContent =\n \"You are currently using an in-app browser, which is considered insecure. To safeguard your security, we recommend opening this link in a standard browser. You can do this by selecting the WebView menu option to open in a regular browser or by copying and pasting the link into your preferred browser manually. Please note that this is not an issue with Shop4Mum. Leading industry experts widely recognise in-app browsers (WebView) as less secure, and our priority is to protect your information.\";\n\n noticeContainer.appendChild(noticeText);\n document.body.appendChild(noticeContainer);\n }\n}\n","function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {\n try {\n var info = gen[key](arg);\n var value = info.value;\n } catch (error) {\n reject(error);\n return;\n }\n if (info.done) resolve(value);\n else Promise.resolve(value).then(_next, _throw);\n}\nexport function _async_to_generator(fn) {\n return function() {\n var self = this, args = arguments;\n\n return new Promise(function(resolve, reject) {\n var gen = fn.apply(self, args);\n\n function _next(value) {\n asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value);\n }\n\n function _throw(err) {\n asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err);\n }\n\n _next(undefined);\n });\n };\n}\nexport { _async_to_generator as _ };\n","/******************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise, SuppressedError, Symbol */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n if (typeof b !== \"function\" && b !== null)\r\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {\r\n function accept(f) { if (f !== void 0 && typeof f !== \"function\") throw new TypeError(\"Function expected\"); return f; }\r\n var kind = contextIn.kind, key = kind === \"getter\" ? \"get\" : kind === \"setter\" ? \"set\" : \"value\";\r\n var target = !descriptorIn && ctor ? contextIn[\"static\"] ? ctor : ctor.prototype : null;\r\n var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});\r\n var _, done = false;\r\n for (var i = decorators.length - 1; i >= 0; i--) {\r\n var context = {};\r\n for (var p in contextIn) context[p] = p === \"access\" ? {} : contextIn[p];\r\n for (var p in contextIn.access) context.access[p] = contextIn.access[p];\r\n context.addInitializer = function (f) { if (done) throw new TypeError(\"Cannot add initializers after decoration has completed\"); extraInitializers.push(accept(f || null)); };\r\n var result = (0, decorators[i])(kind === \"accessor\" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);\r\n if (kind === \"accessor\") {\r\n if (result === void 0) continue;\r\n if (result === null || typeof result !== \"object\") throw new TypeError(\"Object expected\");\r\n if (_ = accept(result.get)) descriptor.get = _;\r\n if (_ = accept(result.set)) descriptor.set = _;\r\n if (_ = accept(result.init)) initializers.unshift(_);\r\n }\r\n else if (_ = accept(result)) {\r\n if (kind === \"field\") initializers.unshift(_);\r\n else descriptor[key] = _;\r\n }\r\n }\r\n if (target) Object.defineProperty(target, contextIn.name, descriptor);\r\n done = true;\r\n};\r\n\r\nexport function __runInitializers(thisArg, initializers, value) {\r\n var useValue = arguments.length > 2;\r\n for (var i = 0; i < initializers.length; i++) {\r\n value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);\r\n }\r\n return useValue ? value : void 0;\r\n};\r\n\r\nexport function __propKey(x) {\r\n return typeof x === \"symbol\" ? x : \"\".concat(x);\r\n};\r\n\r\nexport function __setFunctionName(f, name, prefix) {\r\n if (typeof name === \"symbol\") name = name.description ? \"[\".concat(name.description, \"]\") : \"\";\r\n return Object.defineProperty(f, \"name\", { configurable: true, value: prefix ? \"\".concat(prefix, \" \", name) : name });\r\n};\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (g && (g = 0, op[0] && (_ = 0)), _) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n var desc = Object.getOwnPropertyDescriptor(m, k);\r\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\r\n desc = { enumerable: true, get: function() { return m[k]; } };\r\n }\r\n Object.defineProperty(o, k2, desc);\r\n}) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n});\r\n\r\nexport function __exportStar(m, o) {\r\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n}\r\n\r\nexport function __spreadArray(to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\r\n}\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nvar __setModuleDefault = Object.create ? (function(o, v) {\r\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n}) : function(o, v) {\r\n o[\"default\"] = v;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\r\n __setModuleDefault(result, mod);\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\r\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\r\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\r\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\r\n}\r\n\r\nexport function __classPrivateFieldIn(state, receiver) {\r\n if (receiver === null || (typeof receiver !== \"object\" && typeof receiver !== \"function\")) throw new TypeError(\"Cannot use 'in' operator on non-object\");\r\n return typeof state === \"function\" ? receiver === state : state.has(receiver);\r\n}\r\n\r\nexport function __addDisposableResource(env, value, async) {\r\n if (value !== null && value !== void 0) {\r\n if (typeof value !== \"object\" && typeof value !== \"function\") throw new TypeError(\"Object expected.\");\r\n var dispose;\r\n if (async) {\r\n if (!Symbol.asyncDispose) throw new TypeError(\"Symbol.asyncDispose is not defined.\");\r\n dispose = value[Symbol.asyncDispose];\r\n }\r\n if (dispose === void 0) {\r\n if (!Symbol.dispose) throw new TypeError(\"Symbol.dispose is not defined.\");\r\n dispose = value[Symbol.dispose];\r\n }\r\n if (typeof dispose !== \"function\") throw new TypeError(\"Object not disposable.\");\r\n env.stack.push({ value: value, dispose: dispose, async: async });\r\n }\r\n else if (async) {\r\n env.stack.push({ async: true });\r\n }\r\n return value;\r\n}\r\n\r\nvar _SuppressedError = typeof SuppressedError === \"function\" ? SuppressedError : function (error, suppressed, message) {\r\n var e = new Error(message);\r\n return e.name = \"SuppressedError\", e.error = error, e.suppressed = suppressed, e;\r\n};\r\n\r\nexport function __disposeResources(env) {\r\n function fail(e) {\r\n env.error = env.hasError ? new _SuppressedError(e, env.error, \"An error was suppressed during disposal.\") : e;\r\n env.hasError = true;\r\n }\r\n function next() {\r\n while (env.stack.length) {\r\n var rec = env.stack.pop();\r\n try {\r\n var result = rec.dispose && rec.dispose.call(rec.value);\r\n if (rec.async) return Promise.resolve(result).then(next, function(e) { fail(e); return next(); });\r\n }\r\n catch (e) {\r\n fail(e);\r\n }\r\n }\r\n if (env.hasError) throw env.error;\r\n }\r\n return next();\r\n}\r\n\r\nexport default {\r\n __extends: __extends,\r\n __assign: __assign,\r\n __rest: __rest,\r\n __decorate: __decorate,\r\n __param: __param,\r\n __metadata: __metadata,\r\n __awaiter: __awaiter,\r\n __generator: __generator,\r\n __createBinding: __createBinding,\r\n __exportStar: __exportStar,\r\n __values: __values,\r\n __read: __read,\r\n __spread: __spread,\r\n __spreadArrays: __spreadArrays,\r\n __spreadArray: __spreadArray,\r\n __await: __await,\r\n __asyncGenerator: __asyncGenerator,\r\n __asyncDelegator: __asyncDelegator,\r\n __asyncValues: __asyncValues,\r\n __makeTemplateObject: __makeTemplateObject,\r\n __importStar: __importStar,\r\n __importDefault: __importDefault,\r\n __classPrivateFieldGet: __classPrivateFieldGet,\r\n __classPrivateFieldSet: __classPrivateFieldSet,\r\n __classPrivateFieldIn: __classPrivateFieldIn,\r\n __addDisposableResource: __addDisposableResource,\r\n __disposeResources: __disposeResources,\r\n};\r\n","export function _type_of(obj) {\n \"@swc/helpers - typeof\";\n\n return obj && typeof Symbol !== \"undefined\" && obj.constructor === Symbol ? \"symbol\" : typeof obj;\n}\nexport { _type_of as _ };\n","import \"./dist/cdn/beer.min.css\";\nimport beercss from \"./dist/cdn/beer.min.js\";\nexport default beercss;\n","export default (() => {\nlet m,$,N,P;const l={light:\"\",dark:\"\"},R=[];async function Q(t){return await new Promise(n=>setTimeout(n,t))}function U(){return\"fxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx\".replace(/[xy]/g,t=>{const n=Math.random()*16|0;return(t===\"x\"?n:n&3|8).toString(16)})}function b(t,n){try{return typeof t==\"string\"?(n!=null?n:document).querySelector(t):t}catch{return null}}function f(t,n){try{return typeof t==\"string\"?(n!=null?n:document).querySelectorAll(t):t!=null?t:R}catch{return R}}function d(t,n){var e,r;return(r=(e=t==null?void 0:t.classList)==null?void 0:e.contains(n))!=null?r:!1}function L(t,n){var e;return((e=t==null?void 0:t.tagName)==null?void 0:e.toLowerCase())===n}function k(t,n){var e;return((e=t==null?void 0:t.type)==null?void 0:e.toLowerCase())===n}function v(t,n){var e;(e=t==null?void 0:t.classList)==null||e.add(n)}function u(t,n){var e;(e=t==null?void 0:t.classList)==null||e.remove(n)}function g(t,n,e){t==null||t.addEventListener(n,e,!0)}function X(t,n,e){t==null||t.removeEventListener(n,e,!0)}function Y(t,n){var e;(e=n==null?void 0:n.parentNode)==null||e.insertBefore(t,n)}function _(t){return t==null?void 0:t.previousElementSibling}function j(t){return t==null?void 0:t.nextElementSibling}function x(t){return t==null?void 0:t.parentElement}function J(t){const n=document.createElement(\"div\");for(const e in t)n.setAttribute(e,t[e]);return n}function T(t){const n=t;k(n,\"number\")&&!n.value&&(n.value=\"\"),n.placeholder||(n.placeholder=\" \"),t.getAttribute(\"data-ui\")&&q(t,null)}function tt(t){q(t.currentTarget,null,null,t)}function nt(t){const n=t.currentTarget,e=x(n),r=b(\"input:not([type=file], [type=checkbox], [type=radio]), select, textarea\",e);r&&r.focus()}function et(t){const n=t.currentTarget;T(n)}function rt(t){const n=t.currentTarget;T(n)}function W(t){X(document.body,\"click\",W);const n=t.target;f(\"menu.active\").forEach(r=>V(n,r,t))}function at(t){const n=t.currentTarget;u(n,\"active\"),m&&clearTimeout(m)}function it(t){const n=t.currentTarget;D(n)}function ot(t){const n=t.currentTarget;I(n)}function ct(t){const n=t.currentTarget;D(n,t)}function ut(t){const n=t.currentTarget;I(n,t)}function st(t){const n=t.currentTarget;G(n)}function Z(){$&&clearTimeout($),$=setTimeout(()=>{A()},180)}function D(t,n){if(n&&n.key===\"Enter\"){const i=_(t);return k(i,\"file\")?i.click():void 0}const e=t,r=j(t);!k(r,\"text\")||(r.value=e.files?Array.from(e.files).map(i=>i.name).join(\", \"):\"\",r.readOnly=!0,r.addEventListener(\"keydown\",ct),T(r))}function I(t,n){if(n&&n.key===\"Enter\"){const i=_(t);return k(i,\"color\")?i.click():void 0}const e=t,r=j(t);!k(r,\"text\")||(r.readOnly=!0,r.value=e.value,r.addEventListener(\"keydown\",ut),T(r))}function G(t){const n=x(t),e=b(\"span\",n),r=f(\"input\",n);if(!r.length||!e)return;const i=parseInt(getComputedStyle(document.documentElement).getPropertyValue(\"--size\"))||16,c=1.25*i*100/r[0].offsetWidth,o=[],s=[];for(let y=0;y1&&(a=Math.abs(o[1]-o[0]),p=o[1]>o[0]?o[0]:o[1],h=100-p-a,M>S&&(S=s[1]||0,M=s[0])),n.style.setProperty(\"---start\",`${p}%`),n.style.setProperty(\"---end\",`${h}%`),n.style.setProperty(\"---value1\",`'${S}'`),n.style.setProperty(\"---value2\",`'${M}'`)}async function q(t,n,e,r){if(!(!n&&(n=b(t.getAttribute(\"data-ui\")),!n))){if(L(n,\"dialog\"))return await ft(t,n);if(L(n,\"menu\"))return V(t,n,r);if(d(n,\"snackbar\"))return dt(t,n,e);if(d(n,\"page\"))return lt(t,n);if(E(t),d(n,\"active\"))return u(n,\"active\");v(n,\"active\")}}function E(t){const n=x(t);if(!d(n,\"tabs\"))return;f(\"a\",n).forEach(r=>u(r,\"active\")),v(t,\"active\")}function lt(t,n){E(t);const e=x(n);if(e)for(let r=0;r{var i,c;if(g(document.body,\"click\",W),E(t),d(n,\"active\")){if(!e)return u(n,\"active\");const o=e.target,s=b((i=o.getAttribute(\"data-ui\"))!=null?i:\"\"),a=o.closest(\"menu\"),p=!b(\"menu\",(c=o.closest(\"[data-ui]\"))!=null?c:void 0);return s&&s!==a?V(o,s):!s&&!p&&a?!1:u(n,\"active\")}f(\"menu.active\").forEach(o=>u(o,\"active\")),v(n,\"active\")},90)}async function ft(t,n){var a;(a=document.activeElement)==null||a.blur(),E(t);let e=_(n);const r=n,i=d(n,\"active\")||r.open,c=d(n,\"modal\"),o=x(n),s=L(o,\"nav\");d(e,\"overlay\")||(e=J({class:\"overlay\"}),Y(e,n),await Q(90)),e.onclick=()=>{c||(u(t,\"active\"),u(n,\"active\"),u(e,\"active\"),r.close())},s&&f(\"dialog, a, .overlay\",o).forEach(h=>{u(h,\"active\"),h.open&&h.close()}),i?(u(t,\"active\"),u(e,\"active\"),u(n,\"active\"),r.close()):(!L(t,\"button\")&&!d(t,\"button\")&&!d(t,\"chip\")&&v(t,\"active\"),v(e,\"active\"),v(n,\"active\"),c?r.showModal():r.show())}function dt(t,n,e){var i;(i=document.activeElement)==null||i.blur(),E(t),f(\".snackbar.active\").forEach(c=>u(c,\"active\")),v(n,\"active\"),g(n,\"click\",at),m&&clearTimeout(m),e!==-1&&(m=setTimeout(()=>{u(n,\"active\")},e!=null?e:6e3))}function gt(){if(l.light&&l.dark)return l;const t=document.createElement(\"body\");t.className=\"light\",document.body.appendChild(t);const n=document.createElement(\"body\");n.className=\"dark\",document.body.appendChild(n);const e=getComputedStyle(t),r=getComputedStyle(n),i=[\"--primary\",\"--on-primary\",\"--primary-container\",\"--on-primary-container\",\"--secondary\",\"--on-secondary\",\"--secondary-container\",\"--on-secondary-container\",\"--tertiary\",\"--on-tertiary\",\"--tertiary-container\",\"--on-tertiary-container\",\"--error\",\"--on-error\",\"--error-container\",\"--on-error-container\",\"--background\",\"--on-background\",\"--surface\",\"--on-surface\",\"--surface-variant\",\"--on-surface-variant\",\"--outline\",\"--outline-variant\",\"--shadow\",\"--scrim\",\"--inverse-surface\",\"--inverse-on-surface\",\"--inverse-primary\",\"--surface-dim\",\"--surface-bright\",\"--surface-container-lowest\",\"--surface-container-low\",\"--surface-container\",\"--surface-container-high\",\"--surface-container-highest\"];for(let c=0;c{const r=i=>{let c=\"\";for(const o in i){const s=o.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g,\"$1-$2\").toLowerCase(),a=i[o];c+=\"--\"+s+\":\"+a+\";\"}return c};return l.light=r(e.light),l.dark=r(e.dark),document.body.setAttribute(\"style\",l[n]),l})}function vt(t){if(!t)return/dark/i.test(document.body.className)?\"dark\":\"light\";document.body.classList.remove(\"light\",\"dark\"),document.body.classList.add(t);const n=t===\"light\"?l.light:l.dark;return globalThis.materialDynamicColors&&document.body.setAttribute(\"style\",n),t}function pt(){P||(P=new MutationObserver(Z),P.observe(document.body,{attributes:!0,attributeFilter:[\"value\",\"max\",\"min\"],childList:!0,subtree:!0}),Z())}function A(t,n){if(t){if(t===\"setup\")return pt();if(t===\"guid\")return U();if(t===\"mode\")return vt(n);if(t===\"theme\")return yt(n);const a=b(t);if(!a)return;q(a,a,n)}f(\"[data-ui]\").forEach(a=>g(a,\"click\",tt)),f(\".field > label\").forEach(a=>g(a,\"click\",nt)),f(\".field > input:not([type=file], [type=color], [type=range]), .field > select, .field > textarea\").forEach(a=>{g(a,\"focus\",et),g(a,\"blur\",rt),T(a)}),f(\".field > input[type=file]\").forEach(a=>{g(a,\"change\",it),D(a)}),f(\".field > input[type=color]\").forEach(a=>{g(a,\"change\",ot),I(a)}),f(\".slider > input[type=range]\").forEach(a=>{g(a,\"input\",st),G(a)})}globalThis.addEventListener&&globalThis.addEventListener(\"load\",async()=>await A(\"setup\"));globalThis.beercss=A;globalThis.ui=A;\nreturn globalThis.ui;\n})();","import materialDynamicColors from \"./dist/cdn/material-dynamic-colors.min.js\";\r\nexport default materialDynamicColors;","export default (() => {\n/**\n * @license\n * Copyright 2021 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */function q(e){return e<0?-1:e===0?0:1}function nt(e,t,r){return(1-r)*e+r*t}function qt(e,t,r){return rt?t:r}function ht(e,t,r){return rt?t:r}function Ot(e){return e=e%360,e<0&&(e=e+360),e}function Dt(e){return e=e%360,e<0&&(e=e+360),e}function jt(e,t){return Dt(t-e)<=180?1:-1}function Nt(e,t){return 180-Math.abs(Math.abs(e-t)-180)}function bt(e,t){const r=e[0]*t[0][0]+e[1]*t[0][1]+e[2]*t[0][2],n=e[0]*t[1][0]+e[1]*t[1][1]+e[2]*t[1][2],a=e[0]*t[2][0]+e[1]*t[2][1]+e[2]*t[2][2];return[r,n,a]}/**\n * @license\n * Copyright 2021 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */const zt=[[.41233895,.35762064,.18051042],[.2126,.7152,.0722],[.01932141,.11916382,.95034478]],Yt=[[3.2413774792388685,-1.5376652402851851,-.49885366846268053],[-.9691452513005321,1.8758853451067872,.04156585616912061],[.05562093689691305,-.20395524564742123,1.0571799111220335]],wt=[95.047,100,108.883];function ft(e,t,r){return(255<<24|(e&255)<<16|(t&255)<<8|r&255)>>>0}function Et(e){const t=tt(e[0]),r=tt(e[1]),n=tt(e[2]);return ft(t,r,n)}function Wt(e){return e>>24&255}function dt(e){return e>>16&255}function mt(e){return e>>8&255}function gt(e){return e&255}function St(e,t,r){const n=Yt,a=n[0][0]*e+n[0][1]*t+n[0][2]*r,o=n[1][0]*e+n[1][1]*t+n[1][2]*r,s=n[2][0]*e+n[2][1]*t+n[2][2]*r,c=tt(a),u=tt(o),h=tt(s);return ft(c,u,h)}function vt(e){const t=$(dt(e)),r=$(mt(e)),n=$(gt(e));return bt([t,r,n],zt)}function Jt(e,t,r){const n=wt,a=(e+16)/116,o=t/500+a,s=a-r/200,c=ut(o),u=ut(a),h=ut(s),l=c*n[0],d=u*n[1],p=h*n[2];return St(l,d,p)}function Xt(e){const t=$(dt(e)),r=$(mt(e)),n=$(gt(e)),a=zt,o=a[0][0]*t+a[0][1]*r+a[0][2]*n,s=a[1][0]*t+a[1][1]*r+a[1][2]*n,c=a[2][0]*t+a[2][1]*r+a[2][2]*n,u=wt,h=o/u[0],l=s/u[1],d=c/u[2],p=at(h),f=at(l),M=at(d),g=116*f-16,b=500*(p-f),w=200*(f-M);return[g,b,w]}function $t(e){const t=Q(e),r=tt(t);return ft(r,r,r)}function Ct(e){const t=vt(e)[1];return 116*at(t/100)-16}function Q(e){return 100*ut((e+16)/116)}function It(e){return at(e/100)*116-16}function $(e){const t=e/255;return t<=.040449936?t/12.92*100:Math.pow((t+.055)/1.055,2.4)*100}function tt(e){const t=e/100;let r=0;return t<=.0031308?r=t*12.92:r=1.055*Math.pow(t,1/2.4)-.055,qt(0,255,Math.round(r*255))}function Kt(){return wt}function at(e){const t=.008856451679035631,r=24389/27;return e>t?Math.pow(e,1/3):(r*e+16)/116}function ut(e){const t=.008856451679035631,r=24389/27,n=e*e*e;return n>t?n:(116*e-16)/r}/**\n * @license\n * Copyright 2021 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */class v{static make(t=Kt(),r=200/Math.PI*Q(50)/100,n=50,a=2,o=!1){const s=t,c=s[0]*.401288+s[1]*.650173+s[2]*-.051461,u=s[0]*-.250268+s[1]*1.204414+s[2]*.045854,h=s[0]*-.002079+s[1]*.048952+s[2]*.953127,l=.8+a/10,d=l>=.9?nt(.59,.69,(l-.9)*10):nt(.525,.59,(l-.8)*10);let p=o?1:l*(1-1/3.6*Math.exp((-r-42)/92));p=p>1?1:p<0?0:p;const f=l,M=[p*(100/c)+1-p,p*(100/u)+1-p,p*(100/h)+1-p],g=1/(5*r+1),b=g*g*g*g,w=1-b,y=b*r+.1*w*w*Math.cbrt(5*r),k=Q(n)/t[1],A=1.48+Math.sqrt(k),D=.725/Math.pow(k,.2),R=D,P=[Math.pow(y*M[0]*c/100,.42),Math.pow(y*M[1]*u/100,.42),Math.pow(y*M[2]*h/100,.42)],I=[400*P[0]/(P[0]+27.13),400*P[1]/(P[1]+27.13),400*P[2]/(P[2]+27.13)],B=(2*I[0]+I[1]+.05*I[2])*D;return new v(k,B,D,R,d,f,M,y,Math.pow(y,.25),A)}constructor(t,r,n,a,o,s,c,u,h,l){this.n=t,this.aw=r,this.nbb=n,this.ncb=a,this.c=o,this.nc=s,this.rgbD=c,this.fl=u,this.fLRoot=h,this.z=l}}v.DEFAULT=v.make();/**\n * @license\n * Copyright 2021 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */class z{constructor(t,r,n,a,o,s,c,u,h){this.hue=t,this.chroma=r,this.j=n,this.q=a,this.m=o,this.s=s,this.jstar=c,this.astar=u,this.bstar=h}distance(t){const r=this.jstar-t.jstar,n=this.astar-t.astar,a=this.bstar-t.bstar,o=Math.sqrt(r*r+n*n+a*a);return 1.41*Math.pow(o,.63)}static fromInt(t){return z.fromIntInViewingConditions(t,v.DEFAULT)}static fromIntInViewingConditions(t,r){const n=(t&16711680)>>16,a=(t&65280)>>8,o=t&255,s=$(n),c=$(a),u=$(o),h=.41233895*s+.35762064*c+.18051042*u,l=.2126*s+.7152*c+.0722*u,d=.01932141*s+.11916382*c+.95034478*u,p=.401288*h+.650173*l-.051461*d,f=-.250268*h+1.204414*l+.045854*d,M=-.002079*h+.048952*l+.953127*d,g=r.rgbD[0]*p,b=r.rgbD[1]*f,w=r.rgbD[2]*M,y=Math.pow(r.fl*Math.abs(g)/100,.42),k=Math.pow(r.fl*Math.abs(b)/100,.42),A=Math.pow(r.fl*Math.abs(w)/100,.42),D=q(g)*400*y/(y+27.13),R=q(b)*400*k/(k+27.13),P=q(w)*400*A/(A+27.13),I=(11*D+-12*R+P)/11,B=(D+R-2*P)/9,T=(20*D+20*R+21*P)/20,V=(40*D+20*R+P)/20,U=Math.atan2(B,I)*180/Math.PI,L=U<0?U+360:U>=360?U-360:U,Z=L*Math.PI/180,st=V*r.nbb,K=100*Math.pow(st/r.aw,r.c*r.z),it=4/r.c*Math.sqrt(K/100)*(r.aw+4)*r.fLRoot,pt=L<20.14?L+360:L,yt=.25*(Math.cos(pt*Math.PI/180+2)+3.8),kt=5e4/13*yt*r.nc*r.ncb*Math.sqrt(I*I+B*B)/(T+.305),ct=Math.pow(kt,.9)*Math.pow(1.64-Math.pow(.29,r.n),.73),Bt=ct*Math.sqrt(K/100),Rt=Bt*r.fLRoot,Vt=50*Math.sqrt(ct*r.c/(r.aw+4)),_t=(1+100*.007)*K/(1+.007*K),Ft=1/.0228*Math.log(1+.0228*Rt),Ht=Ft*Math.cos(Z),Ut=Ft*Math.sin(Z);return new z(L,Bt,K,it,Rt,Vt,_t,Ht,Ut)}static fromJch(t,r,n){return z.fromJchInViewingConditions(t,r,n,v.DEFAULT)}static fromJchInViewingConditions(t,r,n,a){const o=4/a.c*Math.sqrt(t/100)*(a.aw+4)*a.fLRoot,s=r*a.fLRoot,c=r/Math.sqrt(t/100),u=50*Math.sqrt(c*a.c/(a.aw+4)),h=n*Math.PI/180,l=(1+100*.007)*t/(1+.007*t),d=1/.0228*Math.log(1+.0228*s),p=d*Math.cos(h),f=d*Math.sin(h);return new z(n,r,t,o,s,u,l,p,f)}static fromUcs(t,r,n){return z.fromUcsInViewingConditions(t,r,n,v.DEFAULT)}static fromUcsInViewingConditions(t,r,n,a){const o=r,s=n,c=Math.sqrt(o*o+s*s),h=(Math.exp(c*.0228)-1)/.0228/a.fLRoot;let l=Math.atan2(s,o)*(180/Math.PI);l<0&&(l+=360);const d=t/(1-(t-100)*.007);return z.fromJchInViewingConditions(d,h,l,a)}toInt(){return this.viewed(v.DEFAULT)}viewed(t){const r=this.chroma===0||this.j===0?0:this.chroma/Math.sqrt(this.j/100),n=Math.pow(r/Math.pow(1.64-Math.pow(.29,t.n),.73),1/.9),a=this.hue*Math.PI/180,o=.25*(Math.cos(a+2)+3.8),s=t.aw*Math.pow(this.j/100,1/t.c/t.z),c=o*(5e4/13)*t.nc*t.ncb,u=s/t.nbb,h=Math.sin(a),l=Math.cos(a),d=23*(u+.305)*n/(23*c+11*n*l+108*n*h),p=d*l,f=d*h,M=(460*u+451*p+288*f)/1403,g=(460*u-891*p-261*f)/1403,b=(460*u-220*p-6300*f)/1403,w=Math.max(0,27.13*Math.abs(M)/(400-Math.abs(M))),y=q(M)*(100/t.fl)*Math.pow(w,1/.42),k=Math.max(0,27.13*Math.abs(g)/(400-Math.abs(g))),A=q(g)*(100/t.fl)*Math.pow(k,1/.42),D=Math.max(0,27.13*Math.abs(b)/(400-Math.abs(b))),R=q(b)*(100/t.fl)*Math.pow(D,1/.42),P=y/t.rgbD[0],I=A/t.rgbD[1],B=R/t.rgbD[2],T=1.86206786*P-1.01125463*I+.14918677*B,V=.38752654*P+.62144744*I-.00897398*B,Y=-.0158415*P-.03412294*I+1.04996444*B;return St(T,V,Y)}static fromXyzInViewingConditions(t,r,n,a){const o=.401288*t+.650173*r-.051461*n,s=-.250268*t+1.204414*r+.045854*n,c=-.002079*t+.048952*r+.953127*n,u=a.rgbD[0]*o,h=a.rgbD[1]*s,l=a.rgbD[2]*c,d=Math.pow(a.fl*Math.abs(u)/100,.42),p=Math.pow(a.fl*Math.abs(h)/100,.42),f=Math.pow(a.fl*Math.abs(l)/100,.42),M=q(u)*400*d/(d+27.13),g=q(h)*400*p/(p+27.13),b=q(l)*400*f/(f+27.13),w=(11*M+-12*g+b)/11,y=(M+g-2*b)/9,k=(20*M+20*g+21*b)/20,A=(40*M+20*g+b)/20,R=Math.atan2(y,w)*180/Math.PI,P=R<0?R+360:R>=360?R-360:R,I=P*Math.PI/180,B=A*a.nbb,T=100*Math.pow(B/a.aw,a.c*a.z),V=4/a.c*Math.sqrt(T/100)*(a.aw+4)*a.fLRoot,Y=P<20.14?P+360:P,U=1/4*(Math.cos(Y*Math.PI/180+2)+3.8),Z=5e4/13*U*a.nc*a.ncb*Math.sqrt(w*w+y*y)/(k+.305),st=Math.pow(Z,.9)*Math.pow(1.64-Math.pow(.29,a.n),.73),K=st*Math.sqrt(T/100),it=K*a.fLRoot,pt=50*Math.sqrt(st*a.c/(a.aw+4)),yt=(1+100*.007)*T/(1+.007*T),Mt=Math.log(1+.0228*it)/.0228,kt=Mt*Math.cos(I),ct=Mt*Math.sin(I);return new z(P,K,T,V,it,pt,yt,kt,ct)}xyzInViewingConditions(t){const r=this.chroma===0||this.j===0?0:this.chroma/Math.sqrt(this.j/100),n=Math.pow(r/Math.pow(1.64-Math.pow(.29,t.n),.73),1/.9),a=this.hue*Math.PI/180,o=.25*(Math.cos(a+2)+3.8),s=t.aw*Math.pow(this.j/100,1/t.c/t.z),c=o*(5e4/13)*t.nc*t.ncb,u=s/t.nbb,h=Math.sin(a),l=Math.cos(a),d=23*(u+.305)*n/(23*c+11*n*l+108*n*h),p=d*l,f=d*h,M=(460*u+451*p+288*f)/1403,g=(460*u-891*p-261*f)/1403,b=(460*u-220*p-6300*f)/1403,w=Math.max(0,27.13*Math.abs(M)/(400-Math.abs(M))),y=q(M)*(100/t.fl)*Math.pow(w,1/.42),k=Math.max(0,27.13*Math.abs(g)/(400-Math.abs(g))),A=q(g)*(100/t.fl)*Math.pow(k,1/.42),D=Math.max(0,27.13*Math.abs(b)/(400-Math.abs(b))),R=q(b)*(100/t.fl)*Math.pow(D,1/.42),P=y/t.rgbD[0],I=A/t.rgbD[1],B=R/t.rgbD[2],T=1.86206786*P-1.01125463*I+.14918677*B,V=.38752654*P+.62144744*I-.00897398*B,Y=-.0158415*P-.03412294*I+1.04996444*B;return[T,V,Y]}}/**\n * @license\n * Copyright 2021 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */class C{static sanitizeRadians(t){return(t+Math.PI*8)%(Math.PI*2)}static trueDelinearized(t){const r=t/100;let n=0;return r<=.0031308?n=r*12.92:n=1.055*Math.pow(r,1/2.4)-.055,n*255}static chromaticAdaptation(t){const r=Math.pow(Math.abs(t),.42);return q(t)*400*r/(r+27.13)}static hueOf(t){const r=bt(t,C.SCALED_DISCOUNT_FROM_LINRGB),n=C.chromaticAdaptation(r[0]),a=C.chromaticAdaptation(r[1]),o=C.chromaticAdaptation(r[2]),s=(11*n+-12*a+o)/11,c=(n+a-2*o)/9;return Math.atan2(c,s)}static areInCyclicOrder(t,r,n){const a=C.sanitizeRadians(r-t),o=C.sanitizeRadians(n-t);return a100.01||T[1]>100.01||T[2]>100.01?0:Et(T);a=a-(L-n)*a/(2*L)}return 0}static solveToInt(t,r,n){if(r<1e-4||n<1e-4||n>99.9999)return $t(n);t=Dt(t);const a=t/180*Math.PI,o=Q(n),s=C.findResultByJ(a,r,o);if(s!==0)return s;const c=C.bisectToLimit(o,a);return Et(c)}static solveToCam(t,r,n){return z.fromInt(C.solveToInt(t,r,n))}}C.SCALED_DISCOUNT_FROM_LINRGB=[[.001200833568784504,.002389694492170889,.0002795742885861124],[.0005891086651375999,.0029785502573438758,.0003270666104008398],[.00010146692491640572,.0005364214359186694,.0032979401770712076]];C.LINRGB_FROM_SCALED_DISCOUNT=[[1373.2198709594231,-1100.4251190754821,-7.278681089101213],[-271.815969077903,559.6580465940733,-32.46047482791194],[1.9622899599665666,-57.173814538844006,308.7233197812385]];C.Y_FROM_LINRGB=[.2126,.7152,.0722];C.CRITICAL_PLANES=[.015176349177441876,.045529047532325624,.07588174588720938,.10623444424209313,.13658714259697685,.16693984095186062,.19729253930674434,.2276452376616281,.2579979360165119,.28835063437139563,.3188300904430532,.350925934958123,.3848314933096426,.42057480301049466,.458183274052838,.4976837250274023,.5391024159806381,.5824650784040898,.6277969426914107,.6751227633498623,.7244668422128921,.775853049866786,.829304845476233,.8848452951698498,.942497089126609,1.0022825574869039,1.0642236851973577,1.1283421258858297,1.1946592148522128,1.2631959812511864,1.3339731595349034,1.407011200216447,1.4823302800086415,1.5599503113873272,1.6398909516233677,1.7221716113234105,1.8068114625156377,1.8938294463134073,1.9832442801866852,2.075074464868551,2.1693382909216234,2.2660538449872063,2.36523901573795,2.4669114995532007,2.5710888059345764,2.6777882626779785,2.7870270208169257,2.898822059350997,3.0131901897720907,3.1301480604002863,3.2497121605402226,3.3718988244681087,3.4967242352587946,3.624204428461639,3.754355295633311,3.887192587735158,4.022731918402185,4.160988767090289,4.301978482107941,4.445716283538092,4.592217266055746,4.741496401646282,4.893568542229298,5.048448422192488,5.20615066083972,5.3666897647573375,5.5300801301023865,5.696336044816294,5.865471690767354,6.037501145825082,6.212438385869475,6.390297286737924,6.571091626112461,6.7548350853498045,6.941541251256611,7.131223617812143,7.323895587840543,7.5195704746346665,7.7182615035334345,7.919981813454504,8.124744458384042,8.332562408825165,8.543448553206703,8.757415699253682,8.974476575321063,9.194643831691977,9.417930041841839,9.644347703669503,9.873909240696694,10.106627003236781,10.342513269534024,10.58158024687427,10.8238400726681,11.069304815507364,11.317986476196008,11.569896988756009,11.825048221409341,12.083451977536606,12.345119996613247,12.610063955123938,12.878295467455942,13.149826086772048,13.42466730586372,13.702830557985108,13.984327217668513,14.269168601521828,14.55736596900856,14.848930523210871,15.143873411576273,15.44220572664832,15.743938506781891,16.04908273684337,16.35764934889634,16.66964922287304,16.985093187232053,17.30399201960269,17.62635644741625,17.95219714852476,18.281524751807332,18.614349837764564,18.95068293910138,19.290534541298456,19.633915083172692,19.98083495742689,20.331304511189067,20.685334046541502,21.042933821039977,21.404114048223256,21.76888489811322,22.137256497705877,22.50923893145328,22.884842241736916,23.264076429332462,23.6469514538663,24.033477234264016,24.42366364919083,24.817520537484558,25.21505769858089,25.61628489293138,26.021211842414342,26.429848230738664,26.842203703840827,27.258287870275353,27.678110301598522,28.10168053274597,28.529008062403893,28.96010235337422,29.39497283293396,29.83362889318845,30.276079891419332,30.722335150426627,31.172403958865512,31.62629557157785,32.08401920991837,32.54558406207592,33.010999283389665,33.4802739966603,33.953417292456834,34.430438229418264,34.911345834551085,35.39614910352207,35.88485700094671,36.37747846067349,36.87402238606382,37.37449765026789,37.87891309649659,38.38727753828926,38.89959975977785,39.41588851594697,39.93615253289054,40.460400508064545,40.98864111053629,41.520882981230194,42.05713473317016,42.597404951718396,43.141702194811224,43.6900349931913,44.24241185063697,44.798841244188324,45.35933162437017,45.92389141541209,46.49252901546552,47.065252796817916,47.64207110610409,48.22299226451468,48.808024568002054,49.3971762874833,49.9904556690408,50.587870934119984,51.189430279724725,51.79514187861014,52.40501387947288,53.0190544071392,53.637271562750364,54.259673423945976,54.88626804504493,55.517063457223934,56.15206766869424,56.79128866487574,57.43473440856916,58.08241284012621,58.734331877617365,59.39049941699807,60.05092333227251,60.715611475655585,61.38457167773311,62.057811747619894,62.7353394731159,63.417162620860914,64.10328893648692,64.79372614476921,65.48848194977529,66.18756403501224,66.89098006357258,67.59873767827808,68.31084450182222,69.02730813691093,69.74813616640164,70.47333615344107,71.20291564160104,71.93688215501312,72.67524319850172,73.41800625771542,74.16517879925733,74.9167682708136,75.67278210128072,76.43322770089146,77.1981124613393,77.96744375590167,78.74122893956174,79.51947534912904,80.30219030335869,81.08938110306934,81.88105503125999,82.67721935322541,83.4778813166706,84.28304815182372,85.09272707154808,85.90692527145302,86.72564993000343,87.54890820862819,88.3767072518277,89.2090541872801,90.04595612594655,90.88742016217518,91.73345337380438,92.58406282226491,93.43925555268066,94.29903859396902,95.16341895893969,96.03240364439274,96.9059996312159,97.78421388448044,98.6670533535366,99.55452497210776];/**\n * @license\n * Copyright 2021 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */class E{static from(t,r,n){return new E(C.solveToInt(t,r,n))}static fromInt(t){return new E(t)}toInt(){return this.argb}get hue(){return this.internalHue}set hue(t){this.setInternalState(C.solveToInt(t,this.internalChroma,this.internalTone))}get chroma(){return this.internalChroma}set chroma(t){this.setInternalState(C.solveToInt(this.internalHue,t,this.internalTone))}get tone(){return this.internalTone}set tone(t){this.setInternalState(C.solveToInt(this.internalHue,this.internalChroma,t))}constructor(t){this.argb=t;const r=z.fromInt(t);this.internalHue=r.hue,this.internalChroma=r.chroma,this.internalTone=Ct(t),this.argb=t}setInternalState(t){const r=z.fromInt(t);this.internalHue=r.hue,this.internalChroma=r.chroma,this.internalTone=Ct(t),this.argb=t}inViewingConditions(t){const n=z.fromInt(this.toInt()).xyzInViewingConditions(t),a=z.fromXyzInViewingConditions(n[0],n[1],n[2],v.make());return E.from(a.hue,a.chroma,It(n[1]))}}/**\n * @license\n * Copyright 2021 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */class xt{static harmonize(t,r){const n=E.fromInt(t),a=E.fromInt(r),o=Nt(n.hue,a.hue),s=Math.min(o*.5,15),c=Dt(n.hue+s*jt(n.hue,a.hue));return E.from(c,n.chroma,n.tone).toInt()}static hctHue(t,r,n){const a=xt.cam16Ucs(t,r,n),o=z.fromInt(a),s=z.fromInt(t);return E.from(o.hue,s.chroma,Ct(t)).toInt()}static cam16Ucs(t,r,n){const a=z.fromInt(t),o=z.fromInt(r),s=a.jstar,c=a.astar,u=a.bstar,h=o.jstar,l=o.astar,d=o.bstar,p=s+(h-s)*n,f=c+(l-c)*n,M=u+(d-u)*n;return z.fromUcs(p,f,M).toInt()}}/**\n * @license\n * Copyright 2022 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */class N{static ratioOfTones(t,r){return t=ht(0,100,t),r=ht(0,100,r),N.ratioOfYs(Q(t),Q(r))}static ratioOfYs(t,r){const n=t>r?t:r,a=n===r?t:r;return(n+5)/(a+5)}static lighter(t,r){if(t<0||t>100)return-1;const n=Q(t),a=r*(n+5)-5,o=N.ratioOfYs(a,n),s=Math.abs(o-r);if(o.04)return-1;const c=It(a)+.4;return c<0||c>100?-1:c}static darker(t,r){if(t<0||t>100)return-1;const n=Q(t),a=(n+5)/r-5,o=N.ratioOfYs(n,a),s=Math.abs(o-r);if(o.04)return-1;const c=It(a)-.4;return c<0||c>100?-1:c}static lighterUnsafe(t,r){const n=N.lighter(t,r);return n<0?100:n}static darkerUnsafe(t,r){const n=N.darker(t,r);return n<0?0:n}}/**\n * @license\n * Copyright 2023 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */class At{static isDisliked(t){const r=Math.round(t.hue)>=90&&Math.round(t.hue)<=111,n=Math.round(t.chroma)>16,a=Math.round(t.tone)<65;return r&&n&&a}static fixIfDisliked(t){return At.isDisliked(t)?E.from(t.hue,t.chroma,70):t}}/**\n * @license\n * Copyright 2022 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */class m{static fromPalette(t){return new m(t.name??\"\",t.palette,t.tone,t.isBackground??!1,t.background,t.secondBackground,t.contrastCurve,t.toneDeltaPair)}constructor(t,r,n,a,o,s,c,u){if(this.name=t,this.palette=r,this.tone=n,this.isBackground=a,this.background=o,this.secondBackground=s,this.contrastCurve=c,this.toneDeltaPair=u,this.hctCache=new Map,!o&&s)throw new Error(`Color ${t} has secondBackgrounddefined, but background is not defined.`);if(!o&&c)throw new Error(`Color ${t} has contrastCurvedefined, but background is not defined.`);if(o&&!c)throw new Error(`Color ${t} has backgrounddefined, but contrastCurve is not defined.`)}getArgb(t){return this.getHct(t).toInt()}getHct(t){const r=this.hctCache.get(t);if(r!=null)return r;const n=this.getTone(t),a=this.palette(t).getHct(n);return this.hctCache.size>4&&this.hctCache.clear(),this.hctCache.set(t,a),a}getTone(t){const r=t.contrastLevel<0;if(this.toneDeltaPair){const n=this.toneDeltaPair(t),a=n.roleA,o=n.roleB,s=n.delta,c=n.polarity,u=n.stayTogether,l=this.background(t).getTone(t),d=c===\"nearer\"||c===\"lighter\"&&!t.isDark||c===\"darker\"&&t.isDark,p=d?a:o,f=d?o:a,M=this.name===p.name,g=t.isDark?1:-1,b=p.contrastCurve.getContrast(t.contrastLevel),w=f.contrastCurve.getContrast(t.contrastLevel),y=p.tone(t);let k=N.ratioOfTones(l,y)>=b?y:m.foregroundTone(l,b);const A=f.tone(t);let D=N.ratioOfTones(l,A)>=w?A:m.foregroundTone(l,w);return r&&(k=m.foregroundTone(l,b),D=m.foregroundTone(l,w)),(D-k)*g>=s||(D=ht(0,100,k+s*g),(D-k)*g>=s||(k=ht(0,100,D-s*g))),50<=k&&k<60?g>0?(k=60,D=Math.max(D,k+s*g)):(k=49,D=Math.min(D,k+s*g)):50<=D&&D<60&&(u?g>0?(k=60,D=Math.max(D,k+s*g)):(k=49,D=Math.min(D,k+s*g)):g>0?D=60:D=49),M?k:D}else{let n=this.tone(t);if(this.background==null)return n;const a=this.background(t).getTone(t),o=this.contrastCurve.getContrast(t.contrastLevel);if(N.ratioOfTones(a,n)>=o||(n=m.foregroundTone(a,o)),r&&(n=m.foregroundTone(a,o)),this.isBackground&&50<=n&&n<60&&(N.ratioOfTones(49,a)>=o?n=49:n=60),this.secondBackground){const[s,c]=[this.background,this.secondBackground],[u,h]=[s(t).getTone(t),c(t).getTone(t)],[l,d]=[Math.max(u,h),Math.min(u,h)];if(N.ratioOfTones(l,n)>=o&&N.ratioOfTones(d,n)>=o)return n;const p=N.lighter(l,o),f=N.darker(d,o),M=[];return p!==-1&&M.push(p),f!==-1&&M.push(f),m.tonePrefersLightForeground(u)||m.tonePrefersLightForeground(h)?p<0?100:p:M.length===1?M[0]:f<0?0:f}return n}}static foregroundTone(t,r){const n=N.lighterUnsafe(t,r),a=N.darkerUnsafe(t,r),o=N.ratioOfTones(n,t),s=N.ratioOfTones(a,t);if(m.tonePrefersLightForeground(t)){const u=Math.abs(o-s)<.1&&o=r||o>=s||u?n:a}else return s>=r||s>=o?a:n}static tonePrefersLightForeground(t){return Math.round(t)<60}static toneAllowsLightForeground(t){return Math.round(t)<=49}static enableLightForeground(t){return m.tonePrefersLightForeground(t)&&!m.toneAllowsLightForeground(t)?49:t}}/**\n * @license\n * Copyright 2022 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */var ot;(function(e){e[e.MONOCHROME=0]=\"MONOCHROME\",e[e.NEUTRAL=1]=\"NEUTRAL\",e[e.TONAL_SPOT=2]=\"TONAL_SPOT\",e[e.VIBRANT=3]=\"VIBRANT\",e[e.EXPRESSIVE=4]=\"EXPRESSIVE\",e[e.FIDELITY=5]=\"FIDELITY\",e[e.CONTENT=6]=\"CONTENT\",e[e.RAINBOW=7]=\"RAINBOW\",e[e.FRUIT_SALAD=8]=\"FRUIT_SALAD\"})(ot||(ot={}));/**\n * @license\n * Copyright 2023 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */class x{constructor(t,r,n,a){this.low=t,this.normal=r,this.medium=n,this.high=a}getContrast(t){return t<=-1?this.low:t<0?nt(this.low,this.normal,(t- -1)/1):t<.5?nt(this.normal,this.medium,(t-0)/.5):t<1?nt(this.medium,this.high,(t-.5)/.5):this.high}}/**\n * @license\n * Copyright 2023 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */class j{constructor(t,r,n,a,o){this.roleA=t,this.roleB=r,this.delta=n,this.polarity=a,this.stayTogether=o}}/**\n * @license\n * Copyright 2022 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */function et(e){return e.variant===ot.FIDELITY||e.variant===ot.CONTENT}function O(e){return e.variant===ot.MONOCHROME}function Qt(e,t,r,n){let a=r,o=E.from(e,t,r);if(o.chromac.chroma||Math.abs(c.chroma-t)<.4)break;const u=Math.abs(c.chroma-t),h=Math.abs(o.chroma-t);ue.primaryPalette,tone:e=>e.primaryPalette.keyColor.tone});i.secondaryPaletteKeyColor=m.fromPalette({name:\"secondary_palette_key_color\",palette:e=>e.secondaryPalette,tone:e=>e.secondaryPalette.keyColor.tone});i.tertiaryPaletteKeyColor=m.fromPalette({name:\"tertiary_palette_key_color\",palette:e=>e.tertiaryPalette,tone:e=>e.tertiaryPalette.keyColor.tone});i.neutralPaletteKeyColor=m.fromPalette({name:\"neutral_palette_key_color\",palette:e=>e.neutralPalette,tone:e=>e.neutralPalette.keyColor.tone});i.neutralVariantPaletteKeyColor=m.fromPalette({name:\"neutral_variant_palette_key_color\",palette:e=>e.neutralVariantPalette,tone:e=>e.neutralVariantPalette.keyColor.tone});i.background=m.fromPalette({name:\"background\",palette:e=>e.neutralPalette,tone:e=>e.isDark?6:98,isBackground:!0});i.onBackground=m.fromPalette({name:\"on_background\",palette:e=>e.neutralPalette,tone:e=>e.isDark?90:10,background:e=>i.background,contrastCurve:new x(3,3,4.5,7)});i.surface=m.fromPalette({name:\"surface\",palette:e=>e.neutralPalette,tone:e=>e.isDark?6:98,isBackground:!0});i.surfaceDim=m.fromPalette({name:\"surface_dim\",palette:e=>e.neutralPalette,tone:e=>e.isDark?6:87,isBackground:!0});i.surfaceBright=m.fromPalette({name:\"surface_bright\",palette:e=>e.neutralPalette,tone:e=>e.isDark?24:98,isBackground:!0});i.surfaceContainerLowest=m.fromPalette({name:\"surface_container_lowest\",palette:e=>e.neutralPalette,tone:e=>e.isDark?4:100,isBackground:!0});i.surfaceContainerLow=m.fromPalette({name:\"surface_container_low\",palette:e=>e.neutralPalette,tone:e=>e.isDark?10:96,isBackground:!0});i.surfaceContainer=m.fromPalette({name:\"surface_container\",palette:e=>e.neutralPalette,tone:e=>e.isDark?12:94,isBackground:!0});i.surfaceContainerHigh=m.fromPalette({name:\"surface_container_high\",palette:e=>e.neutralPalette,tone:e=>e.isDark?17:92,isBackground:!0});i.surfaceContainerHighest=m.fromPalette({name:\"surface_container_highest\",palette:e=>e.neutralPalette,tone:e=>e.isDark?22:90,isBackground:!0});i.onSurface=m.fromPalette({name:\"on_surface\",palette:e=>e.neutralPalette,tone:e=>e.isDark?90:10,background:e=>i.highestSurface(e),contrastCurve:new x(4.5,7,11,21)});i.surfaceVariant=m.fromPalette({name:\"surface_variant\",palette:e=>e.neutralVariantPalette,tone:e=>e.isDark?30:90,isBackground:!0});i.onSurfaceVariant=m.fromPalette({name:\"on_surface_variant\",palette:e=>e.neutralVariantPalette,tone:e=>e.isDark?80:30,background:e=>i.highestSurface(e),contrastCurve:new x(3,4.5,7,11)});i.inverseSurface=m.fromPalette({name:\"inverse_surface\",palette:e=>e.neutralPalette,tone:e=>e.isDark?90:20});i.inverseOnSurface=m.fromPalette({name:\"inverse_on_surface\",palette:e=>e.neutralPalette,tone:e=>e.isDark?20:95,background:e=>i.inverseSurface,contrastCurve:new x(4.5,7,11,21)});i.outline=m.fromPalette({name:\"outline\",palette:e=>e.neutralVariantPalette,tone:e=>e.isDark?60:50,background:e=>i.highestSurface(e),contrastCurve:new x(1.5,3,4.5,7)});i.outlineVariant=m.fromPalette({name:\"outline_variant\",palette:e=>e.neutralVariantPalette,tone:e=>e.isDark?30:80,background:e=>i.highestSurface(e),contrastCurve:new x(1,1,3,7)});i.shadow=m.fromPalette({name:\"shadow\",palette:e=>e.neutralPalette,tone:e=>0});i.scrim=m.fromPalette({name:\"scrim\",palette:e=>e.neutralPalette,tone:e=>0});i.surfaceTint=m.fromPalette({name:\"surface_tint\",palette:e=>e.primaryPalette,tone:e=>e.isDark?80:40,isBackground:!0});i.primary=m.fromPalette({name:\"primary\",palette:e=>e.primaryPalette,tone:e=>O(e)?e.isDark?100:0:e.isDark?80:40,isBackground:!0,background:e=>i.highestSurface(e),contrastCurve:new x(3,4.5,7,11),toneDeltaPair:e=>new j(i.primaryContainer,i.primary,15,\"nearer\",!1)});i.onPrimary=m.fromPalette({name:\"on_primary\",palette:e=>e.primaryPalette,tone:e=>O(e)?e.isDark?10:90:e.isDark?20:100,background:e=>i.primary,contrastCurve:new x(4.5,7,11,21)});i.primaryContainer=m.fromPalette({name:\"primary_container\",palette:e=>e.primaryPalette,tone:e=>et(e)?Tt(e.sourceColorHct,e):O(e)?e.isDark?85:25:e.isDark?30:90,isBackground:!0,background:e=>i.highestSurface(e),contrastCurve:new x(1,1,3,7),toneDeltaPair:e=>new j(i.primaryContainer,i.primary,15,\"nearer\",!1)});i.onPrimaryContainer=m.fromPalette({name:\"on_primary_container\",palette:e=>e.primaryPalette,tone:e=>et(e)?m.foregroundTone(i.primaryContainer.tone(e),4.5):O(e)?e.isDark?0:100:e.isDark?90:10,background:e=>i.primaryContainer,contrastCurve:new x(4.5,7,11,21)});i.inversePrimary=m.fromPalette({name:\"inverse_primary\",palette:e=>e.primaryPalette,tone:e=>e.isDark?40:80,background:e=>i.inverseSurface,contrastCurve:new x(3,4.5,7,11)});i.secondary=m.fromPalette({name:\"secondary\",palette:e=>e.secondaryPalette,tone:e=>e.isDark?80:40,isBackground:!0,background:e=>i.highestSurface(e),contrastCurve:new x(3,4.5,7,11),toneDeltaPair:e=>new j(i.secondaryContainer,i.secondary,15,\"nearer\",!1)});i.onSecondary=m.fromPalette({name:\"on_secondary\",palette:e=>e.secondaryPalette,tone:e=>O(e)?e.isDark?10:100:e.isDark?20:100,background:e=>i.secondary,contrastCurve:new x(4.5,7,11,21)});i.secondaryContainer=m.fromPalette({name:\"secondary_container\",palette:e=>e.secondaryPalette,tone:e=>{const t=e.isDark?30:90;if(O(e))return e.isDark?30:85;if(!et(e))return t;let r=Qt(e.secondaryPalette.hue,e.secondaryPalette.chroma,t,!e.isDark);return r=Tt(e.secondaryPalette.getHct(r),e),r},isBackground:!0,background:e=>i.highestSurface(e),contrastCurve:new x(1,1,3,7),toneDeltaPair:e=>new j(i.secondaryContainer,i.secondary,15,\"nearer\",!1)});i.onSecondaryContainer=m.fromPalette({name:\"on_secondary_container\",palette:e=>e.secondaryPalette,tone:e=>et(e)?m.foregroundTone(i.secondaryContainer.tone(e),4.5):e.isDark?90:10,background:e=>i.secondaryContainer,contrastCurve:new x(4.5,7,11,21)});i.tertiary=m.fromPalette({name:\"tertiary\",palette:e=>e.tertiaryPalette,tone:e=>O(e)?e.isDark?90:25:e.isDark?80:40,isBackground:!0,background:e=>i.highestSurface(e),contrastCurve:new x(3,4.5,7,11),toneDeltaPair:e=>new j(i.tertiaryContainer,i.tertiary,15,\"nearer\",!1)});i.onTertiary=m.fromPalette({name:\"on_tertiary\",palette:e=>e.tertiaryPalette,tone:e=>O(e)?e.isDark?10:90:e.isDark?20:100,background:e=>i.tertiary,contrastCurve:new x(4.5,7,11,21)});i.tertiaryContainer=m.fromPalette({name:\"tertiary_container\",palette:e=>e.tertiaryPalette,tone:e=>{if(O(e))return e.isDark?60:49;if(!et(e))return e.isDark?30:90;const t=Tt(e.tertiaryPalette.getHct(e.sourceColorHct.tone),e),r=e.tertiaryPalette.getHct(t);return At.fixIfDisliked(r).tone},isBackground:!0,background:e=>i.highestSurface(e),contrastCurve:new x(1,1,3,7),toneDeltaPair:e=>new j(i.tertiaryContainer,i.tertiary,15,\"nearer\",!1)});i.onTertiaryContainer=m.fromPalette({name:\"on_tertiary_container\",palette:e=>e.tertiaryPalette,tone:e=>O(e)?e.isDark?0:100:et(e)?m.foregroundTone(i.tertiaryContainer.tone(e),4.5):e.isDark?90:10,background:e=>i.tertiaryContainer,contrastCurve:new x(4.5,7,11,21)});i.error=m.fromPalette({name:\"error\",palette:e=>e.errorPalette,tone:e=>e.isDark?80:40,isBackground:!0,background:e=>i.highestSurface(e),contrastCurve:new x(3,4.5,7,11),toneDeltaPair:e=>new j(i.errorContainer,i.error,15,\"nearer\",!1)});i.onError=m.fromPalette({name:\"on_error\",palette:e=>e.errorPalette,tone:e=>e.isDark?20:100,background:e=>i.error,contrastCurve:new x(4.5,7,11,21)});i.errorContainer=m.fromPalette({name:\"error_container\",palette:e=>e.errorPalette,tone:e=>e.isDark?30:90,isBackground:!0,background:e=>i.highestSurface(e),contrastCurve:new x(1,1,3,7),toneDeltaPair:e=>new j(i.errorContainer,i.error,15,\"nearer\",!1)});i.onErrorContainer=m.fromPalette({name:\"on_error_container\",palette:e=>e.errorPalette,tone:e=>e.isDark?90:10,background:e=>i.errorContainer,contrastCurve:new x(4.5,7,11,21)});i.primaryFixed=m.fromPalette({name:\"primary_fixed\",palette:e=>e.primaryPalette,tone:e=>O(e)?40:90,isBackground:!0,background:e=>i.highestSurface(e),contrastCurve:new x(1,1,3,7),toneDeltaPair:e=>new j(i.primaryFixed,i.primaryFixedDim,10,\"lighter\",!0)});i.primaryFixedDim=m.fromPalette({name:\"primary_fixed_dim\",palette:e=>e.primaryPalette,tone:e=>O(e)?30:80,isBackground:!0,background:e=>i.highestSurface(e),contrastCurve:new x(1,1,3,7),toneDeltaPair:e=>new j(i.primaryFixed,i.primaryFixedDim,10,\"lighter\",!0)});i.onPrimaryFixed=m.fromPalette({name:\"on_primary_fixed\",palette:e=>e.primaryPalette,tone:e=>O(e)?100:10,background:e=>i.primaryFixedDim,secondBackground:e=>i.primaryFixed,contrastCurve:new x(4.5,7,11,21)});i.onPrimaryFixedVariant=m.fromPalette({name:\"on_primary_fixed_variant\",palette:e=>e.primaryPalette,tone:e=>O(e)?90:30,background:e=>i.primaryFixedDim,secondBackground:e=>i.primaryFixed,contrastCurve:new x(3,4.5,7,11)});i.secondaryFixed=m.fromPalette({name:\"secondary_fixed\",palette:e=>e.secondaryPalette,tone:e=>O(e)?80:90,isBackground:!0,background:e=>i.highestSurface(e),contrastCurve:new x(1,1,3,7),toneDeltaPair:e=>new j(i.secondaryFixed,i.secondaryFixedDim,10,\"lighter\",!0)});i.secondaryFixedDim=m.fromPalette({name:\"secondary_fixed_dim\",palette:e=>e.secondaryPalette,tone:e=>O(e)?70:80,isBackground:!0,background:e=>i.highestSurface(e),contrastCurve:new x(1,1,3,7),toneDeltaPair:e=>new j(i.secondaryFixed,i.secondaryFixedDim,10,\"lighter\",!0)});i.onSecondaryFixed=m.fromPalette({name:\"on_secondary_fixed\",palette:e=>e.secondaryPalette,tone:e=>10,background:e=>i.secondaryFixedDim,secondBackground:e=>i.secondaryFixed,contrastCurve:new x(4.5,7,11,21)});i.onSecondaryFixedVariant=m.fromPalette({name:\"on_secondary_fixed_variant\",palette:e=>e.secondaryPalette,tone:e=>O(e)?25:30,background:e=>i.secondaryFixedDim,secondBackground:e=>i.secondaryFixed,contrastCurve:new x(3,4.5,7,11)});i.tertiaryFixed=m.fromPalette({name:\"tertiary_fixed\",palette:e=>e.tertiaryPalette,tone:e=>O(e)?40:90,isBackground:!0,background:e=>i.highestSurface(e),contrastCurve:new x(1,1,3,7),toneDeltaPair:e=>new j(i.tertiaryFixed,i.tertiaryFixedDim,10,\"lighter\",!0)});i.tertiaryFixedDim=m.fromPalette({name:\"tertiary_fixed_dim\",palette:e=>e.tertiaryPalette,tone:e=>O(e)?30:80,isBackground:!0,background:e=>i.highestSurface(e),contrastCurve:new x(1,1,3,7),toneDeltaPair:e=>new j(i.tertiaryFixed,i.tertiaryFixedDim,10,\"lighter\",!0)});i.onTertiaryFixed=m.fromPalette({name:\"on_tertiary_fixed\",palette:e=>e.tertiaryPalette,tone:e=>O(e)?100:10,background:e=>i.tertiaryFixedDim,secondBackground:e=>i.tertiaryFixed,contrastCurve:new x(4.5,7,11,21)});i.onTertiaryFixedVariant=m.fromPalette({name:\"on_tertiary_fixed_variant\",palette:e=>e.tertiaryPalette,tone:e=>O(e)?90:30,background:e=>i.tertiaryFixedDim,secondBackground:e=>i.tertiaryFixed,contrastCurve:new x(3,4.5,7,11)});/**\n * @license\n * Copyright 2021 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */class G{static fromInt(t){const r=E.fromInt(t);return G.fromHct(r)}static fromHct(t){return new G(t.hue,t.chroma,t)}static fromHueAndChroma(t,r){return new G(t,r,G.createKeyColor(t,r))}constructor(t,r,n){this.hue=t,this.chroma=r,this.keyColor=n,this.cache=new Map}static createKeyColor(t,r){let a=E.from(t,r,50),o=Math.abs(a.chroma-r);for(let s=1;s<50;s+=1){if(Math.round(r)===Math.round(a.chroma))return a;const c=E.from(t,r,50+s),u=Math.abs(c.chroma-r);u0&&(l=Math.min(l,r.length));const d=new Array;for(let y=0;y0)for(let y=0;y=4*V)continue;const Z=c.distance(I,d[L]);Zre&&(k++,f[P]=U)}if(k===0&&y!==0)break;const A=new Array(l).fill(0),D=new Array(l).fill(0),R=new Array(l).fill(0);for(let P=0;P>u)+1,l=(s>>u)+1,d=(c>>u)+1,p=this.getIndex(h,l,d);this.weights[p]=(this.weights[p]??0)+a,this.momentsR[p]+=a*o,this.momentsG[p]+=a*s,this.momentsB[p]+=a*c,this.moments[p]+=a*(o*o+s*s+c*c)}}computeMoments(){for(let t=1;tnew ie);const r=Array.from({length:t}).fill(0);this.cubes[0].r0=0,this.cubes[0].g0=0,this.cubes[0].b0=0,this.cubes[0].r1=W-1,this.cubes[0].g1=W-1,this.cubes[0].b1=W-1;let n=t,a=0;for(let o=1;o1?this.variance(this.cubes[a]):0,r[o]=this.cubes[o].vol>1?this.variance(this.cubes[o]):0):(r[a]=0,o--),a=0;let s=r[0];for(let c=1;c<=o;c++)r[c]>s&&(s=r[c],a=c);if(s<=0){n=o+1;break}}return new ce(t,n)}createResult(t){const r=[];for(let n=0;n0){const s=Math.round(this.volume(a,this.momentsR)/o),c=Math.round(this.volume(a,this.momentsG)/o),u=Math.round(this.volume(a,this.momentsB)/o),h=255<<24|(s&255)<<16|(c&255)<<8|u&255;r.push(h)}}return r}variance(t){const r=this.volume(t,this.momentsR),n=this.volume(t,this.momentsG),a=this.volume(t,this.momentsB),o=this.moments[this.getIndex(t.r1,t.g1,t.b1)]-this.moments[this.getIndex(t.r1,t.g1,t.b0)]-this.moments[this.getIndex(t.r1,t.g0,t.b1)]+this.moments[this.getIndex(t.r1,t.g0,t.b0)]-this.moments[this.getIndex(t.r0,t.g1,t.b1)]+this.moments[this.getIndex(t.r0,t.g1,t.b0)]+this.moments[this.getIndex(t.r0,t.g0,t.b1)]-this.moments[this.getIndex(t.r0,t.g0,t.b0)],s=r*r+n*n+a*a,c=this.volume(t,this.weights);return o-s/c}cut(t,r){const n=this.volume(t,this.momentsR),a=this.volume(t,this.momentsG),o=this.volume(t,this.momentsB),s=this.volume(t,this.weights),c=this.maximize(t,_.RED,t.r0+1,t.r1,n,a,o,s),u=this.maximize(t,_.GREEN,t.g0+1,t.g1,n,a,o,s),h=this.maximize(t,_.BLUE,t.b0+1,t.b1,n,a,o,s);let l;const d=c.maximum,p=u.maximum,f=h.maximum;if(d>=p&&d>=f){if(c.cutLocation<0)return!1;l=_.RED}else p>=d&&p>=f?l=_.GREEN:l=_.BLUE;switch(r.r1=t.r1,r.g1=t.g1,r.b1=t.b1,l){case _.RED:t.r1=c.cutLocation,r.r0=t.r1,r.g0=t.g0,r.b0=t.b0;break;case _.GREEN:t.g1=u.cutLocation,r.r0=t.r0,r.g0=t.g1,r.b0=t.b0;break;case _.BLUE:t.b1=h.cutLocation,r.r0=t.r0,r.g0=t.g0,r.b0=t.b1;break;default:throw new Error(\"unexpected direction \"+l)}return t.vol=(t.r1-t.r0)*(t.g1-t.g0)*(t.b1-t.b0),r.vol=(r.r1-r.r0)*(r.g1-r.g0)*(r.b1-r.b0),!0}maximize(t,r,n,a,o,s,c,u){const h=this.bottom(t,r,this.momentsR),l=this.bottom(t,r,this.momentsG),d=this.bottom(t,r,this.momentsB),p=this.bottom(t,r,this.weights);let f=0,M=-1,g=0,b=0,w=0,y=0;for(let k=n;kf&&(f=R,M=k))}return new le(M,f)}volume(t,r){return r[this.getIndex(t.r1,t.g1,t.b1)]-r[this.getIndex(t.r1,t.g1,t.b0)]-r[this.getIndex(t.r1,t.g0,t.b1)]+r[this.getIndex(t.r1,t.g0,t.b0)]-r[this.getIndex(t.r0,t.g1,t.b1)]+r[this.getIndex(t.r0,t.g1,t.b0)]+r[this.getIndex(t.r0,t.g0,t.b1)]-r[this.getIndex(t.r0,t.g0,t.b0)]}bottom(t,r,n){switch(r){case _.RED:return-n[this.getIndex(t.r0,t.g1,t.b1)]+n[this.getIndex(t.r0,t.g1,t.b0)]+n[this.getIndex(t.r0,t.g0,t.b1)]-n[this.getIndex(t.r0,t.g0,t.b0)];case _.GREEN:return-n[this.getIndex(t.r1,t.g0,t.b1)]+n[this.getIndex(t.r1,t.g0,t.b0)]+n[this.getIndex(t.r0,t.g0,t.b1)]-n[this.getIndex(t.r0,t.g0,t.b0)];case _.BLUE:return-n[this.getIndex(t.r1,t.g1,t.b0)]+n[this.getIndex(t.r1,t.g0,t.b0)]+n[this.getIndex(t.r0,t.g1,t.b0)]-n[this.getIndex(t.r0,t.g0,t.b0)];default:throw new Error(\"unexpected direction $direction\")}}top(t,r,n,a){switch(r){case _.RED:return a[this.getIndex(n,t.g1,t.b1)]-a[this.getIndex(n,t.g1,t.b0)]-a[this.getIndex(n,t.g0,t.b1)]+a[this.getIndex(n,t.g0,t.b0)];case _.GREEN:return a[this.getIndex(t.r1,n,t.b1)]-a[this.getIndex(t.r1,n,t.b0)]-a[this.getIndex(t.r0,n,t.b1)]+a[this.getIndex(t.r0,n,t.b0)];case _.BLUE:return a[this.getIndex(t.r1,t.g1,n)]-a[this.getIndex(t.r1,t.g0,n)]-a[this.getIndex(t.r0,t.g1,n)]+a[this.getIndex(t.r0,t.g0,n)];default:throw new Error(\"unexpected direction $direction\")}}getIndex(t,r,n){return(t<t.score?-1:e.score=15;f--){d.length=0;for(const{hct:M}of l)if(d.find(b=>Nt(M.hue,b.hue)=n)break;if(d.length>=n)break}const p=[];d.length===0&&p.push(a);for(const f of d)p.push(f.toInt());return p}}H.TARGET_CHROMA=48;H.WEIGHT_PROPORTION=.7;H.WEIGHT_CHROMA_ABOVE=.3;H.WEIGHT_CHROMA_BELOW=.1;H.CUTOFF_CHROMA=5;H.CUTOFF_EXCITED_PROPORTION=.01;/**\n * @license\n * Copyright 2021 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */function F(e){const t=dt(e),r=mt(e),n=gt(e),a=[t.toString(16),r.toString(16),n.toString(16)];for(const[o,s]of a.entries())s.length===1&&(a[o]=\"0\"+s);return\"#\"+a.join(\"\")}function de(e){e=e.replace(\"#\",\"\");const t=e.length===3,r=e.length===6,n=e.length===8;if(!t&&!r&&!n)throw new Error(\"unexpected hex \"+e);let a=0,o=0,s=0;return t?(a=J(e.slice(0,1).repeat(2)),o=J(e.slice(1,2).repeat(2)),s=J(e.slice(2,3).repeat(2))):r?(a=J(e.slice(0,2)),o=J(e.slice(2,4)),s=J(e.slice(4,6))):n&&(a=J(e.slice(2,4)),o=J(e.slice(4,6)),s=J(e.slice(6,8))),(255<<24|(a&255)<<16|(o&255)<<8|s&255)>>>0}function J(e){return parseInt(e,16)}/**\n * @license\n * Copyright 2021 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */async function me(e){const t=await new Promise((s,c)=>{const u=document.createElement(\"canvas\"),h=u.getContext(\"2d\");if(!h){c(new Error(\"Could not get canvas context\"));return}const l=()=>{u.width=e.width,u.height=e.height,h.drawImage(e,0,0);let d=[0,0,e.width,e.height];const p=e.dataset.area;p&&/^\\d+(\\s*,\\s*\\d+){3}$/.test(p)&&(d=p.split(/\\s*,\\s*/).map(w=>parseInt(w,10)));const[f,M,g,b]=d;s(h.getImageData(f,M,g,b).data)};e.complete?l():e.onload=l}),r=[];for(let s=0;sge(e,n))}}async function Lt(e,t=[]){const r=await me(e);return Gt(r,t)}function ge(e,t){let r=t.value;const n=r,a=e;t.blend&&(r=xt.harmonize(n,a));const s=S.of(r).a1;return{color:t,value:r,light:{color:s.tone(40),onColor:s.tone(100),colorContainer:s.tone(90),onColorContainer:s.tone(10)},dark:{color:s.tone(80),onColor:s.tone(20),colorContainer:s.tone(30),onColorContainer:s.tone(90)}}}function Pt(e){let t=JSON.parse(JSON.stringify(e.schemes));for(let r in t)for(let n in t[r])t[r][n]=F(t[r][n]);return t.dark.surfaceDim=F(e.palettes.neutral.tone(6)),t.dark.surface=F(e.palettes.neutral.tone(6)),t.dark.surfaceBright=F(e.palettes.neutral.tone(24)),t.dark.surfaceContainerLowest=F(e.palettes.neutral.tone(4)),t.dark.surfaceContainerLow=F(e.palettes.neutral.tone(10)),t.dark.surfaceContainer=F(e.palettes.neutral.tone(12)),t.dark.surfaceContainerHigh=F(e.palettes.neutral.tone(17)),t.dark.surfaceContainerHighest=F(e.palettes.neutral.tone(22)),t.dark.onSurface=F(e.palettes.neutral.tone(90)),t.dark.onSurfaceVariant=F(e.palettes.neutralVariant.tone(80)),t.dark.outline=F(e.palettes.neutralVariant.tone(60)),t.dark.outlineVariant=F(e.palettes.neutralVariant.tone(30)),t.light.surfaceDim=F(e.palettes.neutral.tone(87)),t.light.surface=F(e.palettes.neutral.tone(98)),t.light.surfaceBright=F(e.palettes.neutral.tone(98)),t.light.surfaceContainerLowest=F(e.palettes.neutral.tone(100)),t.light.surfaceContainerLow=F(e.palettes.neutral.tone(96)),t.light.surfaceContainer=F(e.palettes.neutral.tone(94)),t.light.surfaceContainerHigh=F(e.palettes.neutral.tone(92)),t.light.surfaceContainerHighest=F(e.palettes.neutral.tone(90)),t.light.onSurface=F(e.palettes.neutral.tone(10)),t.light.onSurfaceVariant=F(e.palettes.neutralVariant.tone(30)),t.light.outline=F(e.palettes.neutralVariant.tone(50)),t.light.outlineVariant=F(e.palettes.neutralVariant.tone(80)),t}async function pe(e){const t=e,r={light:{},dark:{}};try{if(typeof t==\"string\"&&/^\\#[0-9a-f]+$/i.test(t)){let s=Gt(de(t));return Pt(s)}if(t.src){let s=await Lt(t);return Pt(s)}let n=new Blob;if(typeof t==\"string\"&&(n=await fetch(t).then(s=>s.blob())),t.size&&(n=t),t.files&&t.files[0]&&(n=t.files[0]),t.target&&t.target.files&&t.target.files[0]&&(n=t.target.files[0]),!n.size)return r;let a=new Image(64);a.src=URL.createObjectURL(n);let o=await Lt(a);return Pt(o)}catch{return r}}globalThis.materialDynamicColors=pe;\nreturn globalThis.materialDynamicColors;\n})();","export function _class_call_check(instance, Constructor) {\n if (!(instance instanceof Constructor)) throw new TypeError(\"Cannot call a class as a function\");\n}\nexport { _class_call_check as _ };\n","function _defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n\n if (\"value\" in descriptor) descriptor.writable = true;\n\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\nexport function _create_class(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n\n return Constructor;\n}\nexport { _create_class as _ };\n","import { _define_property } from \"./_define_property.js\";\n\nexport function _object_spread(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i] != null ? arguments[i] : {};\n var ownKeys = Object.keys(source);\n\n if (typeof Object.getOwnPropertySymbols === \"function\") {\n ownKeys = ownKeys.concat(\n Object.getOwnPropertySymbols(source).filter(function(sym) {\n return Object.getOwnPropertyDescriptor(source, sym).enumerable;\n })\n );\n }\n\n ownKeys.forEach(function(key) {\n _define_property(target, key, source[key]);\n });\n }\n\n return target;\n}\nexport { _object_spread as _ };\n","export function _define_property(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true });\n } else obj[key] = value;\n\n return obj;\n}\nexport { _define_property as _ };\n","import { _array_with_holes } from \"./_array_with_holes.js\";\nimport { _iterable_to_array_limit } from \"./_iterable_to_array_limit.js\";\nimport { _non_iterable_rest } from \"./_non_iterable_rest.js\";\nimport { _unsupported_iterable_to_array } from \"./_unsupported_iterable_to_array.js\";\n\nexport function _sliced_to_array(arr, i) {\n return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array(arr, i) || _non_iterable_rest();\n}\nexport { _sliced_to_array as _ };\n","export function _array_with_holes(arr) {\n if (Array.isArray(arr)) return arr;\n}\nexport { _array_with_holes as _ };\n","export function _iterable_to_array_limit(arr, i) {\n var _i = arr == null ? null : typeof Symbol !== \"undefined\" && arr[Symbol.iterator] || arr[\"@@iterator\"];\n\n if (_i == null) return;\n\n var _arr = [];\n var _n = true;\n var _d = false;\n var _s, _e;\n\n try {\n for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {\n _arr.push(_s.value);\n if (i && _arr.length === i) break;\n }\n } catch (err) {\n _d = true;\n _e = err;\n } finally {\n try {\n if (!_n && _i[\"return\"] != null) _i[\"return\"]();\n } finally {\n if (_d) throw _e;\n }\n }\n\n return _arr;\n}\nexport { _iterable_to_array_limit as _ };\n","export function _non_iterable_rest() {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\nexport { _non_iterable_rest as _ };\n","import { _array_like_to_array } from \"./_array_like_to_array.js\";\n\nexport function _unsupported_iterable_to_array(o, minLen) {\n if (!o) return;\n if (typeof o === \"string\") return _array_like_to_array(o, minLen);\n\n var n = Object.prototype.toString.call(o).slice(8, -1);\n\n if (n === \"Object\" && o.constructor) n = o.constructor.name;\n if (n === \"Map\" || n === \"Set\") return Array.from(n);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);\n}\nexport { _unsupported_iterable_to_array as _ };\n","export function _array_like_to_array(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n\n for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];\n\n return arr2;\n}\nexport { _array_like_to_array as _ };\n","import { registerVersion } from '@firebase/app';\nexport * from '@firebase/app';\n\nvar name = \"firebase\";\nvar version = \"10.7.1\";\n\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\nregisterVersion(name, version, 'app');\n//# sourceMappingURL=index.esm.js.map\n","/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { registerVersion } from '@firebase/app';\nimport { name, version } from '../package.json';\n\nregisterVersion(name, version, 'app');\nexport * from '@firebase/app';\n","import { Component, ComponentContainer } from '@firebase/component';\nimport { Logger, setUserLogHandler, setLogLevel as setLogLevel$1 } from '@firebase/logger';\nimport { ErrorFactory, getDefaultAppConfig, deepEqual, FirebaseError, base64urlEncodeWithoutPadding, isIndexedDBAvailable, validateIndexedDBOpenable } from '@firebase/util';\nexport { FirebaseError } from '@firebase/util';\nimport { openDB } from 'idb';\n\n/**\r\n * @license\r\n * Copyright 2019 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\nclass PlatformLoggerServiceImpl {\r\n constructor(container) {\r\n this.container = container;\r\n }\r\n // In initial implementation, this will be called by installations on\r\n // auth token refresh, and installations will send this string.\r\n getPlatformInfoString() {\r\n const providers = this.container.getProviders();\r\n // Loop through providers and get library/version pairs from any that are\r\n // version components.\r\n return providers\r\n .map(provider => {\r\n if (isVersionServiceProvider(provider)) {\r\n const service = provider.getImmediate();\r\n return `${service.library}/${service.version}`;\r\n }\r\n else {\r\n return null;\r\n }\r\n })\r\n .filter(logString => logString)\r\n .join(' ');\r\n }\r\n}\r\n/**\r\n *\r\n * @param provider check if this provider provides a VersionService\r\n *\r\n * NOTE: Using Provider<'app-version'> is a hack to indicate that the provider\r\n * provides VersionService. The provider is not necessarily a 'app-version'\r\n * provider.\r\n */\r\nfunction isVersionServiceProvider(provider) {\r\n const component = provider.getComponent();\r\n return (component === null || component === void 0 ? void 0 : component.type) === \"VERSION\" /* ComponentType.VERSION */;\r\n}\n\nconst name$o = \"@firebase/app\";\nconst version$1 = \"0.9.25\";\n\n/**\r\n * @license\r\n * Copyright 2019 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\nconst logger = new Logger('@firebase/app');\n\nconst name$n = \"@firebase/app-compat\";\n\nconst name$m = \"@firebase/analytics-compat\";\n\nconst name$l = \"@firebase/analytics\";\n\nconst name$k = \"@firebase/app-check-compat\";\n\nconst name$j = \"@firebase/app-check\";\n\nconst name$i = \"@firebase/auth\";\n\nconst name$h = \"@firebase/auth-compat\";\n\nconst name$g = \"@firebase/database\";\n\nconst name$f = \"@firebase/database-compat\";\n\nconst name$e = \"@firebase/functions\";\n\nconst name$d = \"@firebase/functions-compat\";\n\nconst name$c = \"@firebase/installations\";\n\nconst name$b = \"@firebase/installations-compat\";\n\nconst name$a = \"@firebase/messaging\";\n\nconst name$9 = \"@firebase/messaging-compat\";\n\nconst name$8 = \"@firebase/performance\";\n\nconst name$7 = \"@firebase/performance-compat\";\n\nconst name$6 = \"@firebase/remote-config\";\n\nconst name$5 = \"@firebase/remote-config-compat\";\n\nconst name$4 = \"@firebase/storage\";\n\nconst name$3 = \"@firebase/storage-compat\";\n\nconst name$2 = \"@firebase/firestore\";\n\nconst name$1 = \"@firebase/firestore-compat\";\n\nconst name = \"firebase\";\nconst version = \"10.7.1\";\n\n/**\r\n * @license\r\n * Copyright 2019 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\n/**\r\n * The default app name\r\n *\r\n * @internal\r\n */\r\nconst DEFAULT_ENTRY_NAME = '[DEFAULT]';\r\nconst PLATFORM_LOG_STRING = {\r\n [name$o]: 'fire-core',\r\n [name$n]: 'fire-core-compat',\r\n [name$l]: 'fire-analytics',\r\n [name$m]: 'fire-analytics-compat',\r\n [name$j]: 'fire-app-check',\r\n [name$k]: 'fire-app-check-compat',\r\n [name$i]: 'fire-auth',\r\n [name$h]: 'fire-auth-compat',\r\n [name$g]: 'fire-rtdb',\r\n [name$f]: 'fire-rtdb-compat',\r\n [name$e]: 'fire-fn',\r\n [name$d]: 'fire-fn-compat',\r\n [name$c]: 'fire-iid',\r\n [name$b]: 'fire-iid-compat',\r\n [name$a]: 'fire-fcm',\r\n [name$9]: 'fire-fcm-compat',\r\n [name$8]: 'fire-perf',\r\n [name$7]: 'fire-perf-compat',\r\n [name$6]: 'fire-rc',\r\n [name$5]: 'fire-rc-compat',\r\n [name$4]: 'fire-gcs',\r\n [name$3]: 'fire-gcs-compat',\r\n [name$2]: 'fire-fst',\r\n [name$1]: 'fire-fst-compat',\r\n 'fire-js': 'fire-js',\r\n [name]: 'fire-js-all'\r\n};\n\n/**\r\n * @license\r\n * Copyright 2019 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\n/**\r\n * @internal\r\n */\r\nconst _apps = new Map();\r\n/**\r\n * Registered components.\r\n *\r\n * @internal\r\n */\r\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\r\nconst _components = new Map();\r\n/**\r\n * @param component - the component being added to this app's container\r\n *\r\n * @internal\r\n */\r\nfunction _addComponent(app, component) {\r\n try {\r\n app.container.addComponent(component);\r\n }\r\n catch (e) {\r\n logger.debug(`Component ${component.name} failed to register with FirebaseApp ${app.name}`, e);\r\n }\r\n}\r\n/**\r\n *\r\n * @internal\r\n */\r\nfunction _addOrOverwriteComponent(app, component) {\r\n app.container.addOrOverwriteComponent(component);\r\n}\r\n/**\r\n *\r\n * @param component - the component to register\r\n * @returns whether or not the component is registered successfully\r\n *\r\n * @internal\r\n */\r\nfunction _registerComponent(component) {\r\n const componentName = component.name;\r\n if (_components.has(componentName)) {\r\n logger.debug(`There were multiple attempts to register component ${componentName}.`);\r\n return false;\r\n }\r\n _components.set(componentName, component);\r\n // add the component to existing app instances\r\n for (const app of _apps.values()) {\r\n _addComponent(app, component);\r\n }\r\n return true;\r\n}\r\n/**\r\n *\r\n * @param app - FirebaseApp instance\r\n * @param name - service name\r\n *\r\n * @returns the provider for the service with the matching name\r\n *\r\n * @internal\r\n */\r\nfunction _getProvider(app, name) {\r\n const heartbeatController = app.container\r\n .getProvider('heartbeat')\r\n .getImmediate({ optional: true });\r\n if (heartbeatController) {\r\n void heartbeatController.triggerHeartbeat();\r\n }\r\n return app.container.getProvider(name);\r\n}\r\n/**\r\n *\r\n * @param app - FirebaseApp instance\r\n * @param name - service name\r\n * @param instanceIdentifier - service instance identifier in case the service supports multiple instances\r\n *\r\n * @internal\r\n */\r\nfunction _removeServiceInstance(app, name, instanceIdentifier = DEFAULT_ENTRY_NAME) {\r\n _getProvider(app, name).clearInstance(instanceIdentifier);\r\n}\r\n/**\r\n * Test only\r\n *\r\n * @internal\r\n */\r\nfunction _clearComponents() {\r\n _components.clear();\r\n}\n\n/**\r\n * @license\r\n * Copyright 2019 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\nconst ERRORS = {\r\n [\"no-app\" /* AppError.NO_APP */]: \"No Firebase App '{$appName}' has been created - \" +\r\n 'call initializeApp() first',\r\n [\"bad-app-name\" /* AppError.BAD_APP_NAME */]: \"Illegal App name: '{$appName}\",\r\n [\"duplicate-app\" /* AppError.DUPLICATE_APP */]: \"Firebase App named '{$appName}' already exists with different options or config\",\r\n [\"app-deleted\" /* AppError.APP_DELETED */]: \"Firebase App named '{$appName}' already deleted\",\r\n [\"no-options\" /* AppError.NO_OPTIONS */]: 'Need to provide options, when not being deployed to hosting via source.',\r\n [\"invalid-app-argument\" /* AppError.INVALID_APP_ARGUMENT */]: 'firebase.{$appName}() takes either no argument or a ' +\r\n 'Firebase App instance.',\r\n [\"invalid-log-argument\" /* AppError.INVALID_LOG_ARGUMENT */]: 'First argument to `onLog` must be null or a function.',\r\n [\"idb-open\" /* AppError.IDB_OPEN */]: 'Error thrown when opening IndexedDB. Original error: {$originalErrorMessage}.',\r\n [\"idb-get\" /* AppError.IDB_GET */]: 'Error thrown when reading from IndexedDB. Original error: {$originalErrorMessage}.',\r\n [\"idb-set\" /* AppError.IDB_WRITE */]: 'Error thrown when writing to IndexedDB. Original error: {$originalErrorMessage}.',\r\n [\"idb-delete\" /* AppError.IDB_DELETE */]: 'Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}.'\r\n};\r\nconst ERROR_FACTORY = new ErrorFactory('app', 'Firebase', ERRORS);\n\n/**\r\n * @license\r\n * Copyright 2019 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\nclass FirebaseAppImpl {\r\n constructor(options, config, container) {\r\n this._isDeleted = false;\r\n this._options = Object.assign({}, options);\r\n this._config = Object.assign({}, config);\r\n this._name = config.name;\r\n this._automaticDataCollectionEnabled =\r\n config.automaticDataCollectionEnabled;\r\n this._container = container;\r\n this.container.addComponent(new Component('app', () => this, \"PUBLIC\" /* ComponentType.PUBLIC */));\r\n }\r\n get automaticDataCollectionEnabled() {\r\n this.checkDestroyed();\r\n return this._automaticDataCollectionEnabled;\r\n }\r\n set automaticDataCollectionEnabled(val) {\r\n this.checkDestroyed();\r\n this._automaticDataCollectionEnabled = val;\r\n }\r\n get name() {\r\n this.checkDestroyed();\r\n return this._name;\r\n }\r\n get options() {\r\n this.checkDestroyed();\r\n return this._options;\r\n }\r\n get config() {\r\n this.checkDestroyed();\r\n return this._config;\r\n }\r\n get container() {\r\n return this._container;\r\n }\r\n get isDeleted() {\r\n return this._isDeleted;\r\n }\r\n set isDeleted(val) {\r\n this._isDeleted = val;\r\n }\r\n /**\r\n * This function will throw an Error if the App has already been deleted -\r\n * use before performing API actions on the App.\r\n */\r\n checkDestroyed() {\r\n if (this.isDeleted) {\r\n throw ERROR_FACTORY.create(\"app-deleted\" /* AppError.APP_DELETED */, { appName: this._name });\r\n }\r\n }\r\n}\n\n/**\r\n * @license\r\n * Copyright 2019 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\n/**\r\n * The current SDK version.\r\n *\r\n * @public\r\n */\r\nconst SDK_VERSION = version;\r\nfunction initializeApp(_options, rawConfig = {}) {\r\n let options = _options;\r\n if (typeof rawConfig !== 'object') {\r\n const name = rawConfig;\r\n rawConfig = { name };\r\n }\r\n const config = Object.assign({ name: DEFAULT_ENTRY_NAME, automaticDataCollectionEnabled: false }, rawConfig);\r\n const name = config.name;\r\n if (typeof name !== 'string' || !name) {\r\n throw ERROR_FACTORY.create(\"bad-app-name\" /* AppError.BAD_APP_NAME */, {\r\n appName: String(name)\r\n });\r\n }\r\n options || (options = getDefaultAppConfig());\r\n if (!options) {\r\n throw ERROR_FACTORY.create(\"no-options\" /* AppError.NO_OPTIONS */);\r\n }\r\n const existingApp = _apps.get(name);\r\n if (existingApp) {\r\n // return the existing app if options and config deep equal the ones in the existing app.\r\n if (deepEqual(options, existingApp.options) &&\r\n deepEqual(config, existingApp.config)) {\r\n return existingApp;\r\n }\r\n else {\r\n throw ERROR_FACTORY.create(\"duplicate-app\" /* AppError.DUPLICATE_APP */, { appName: name });\r\n }\r\n }\r\n const container = new ComponentContainer(name);\r\n for (const component of _components.values()) {\r\n container.addComponent(component);\r\n }\r\n const newApp = new FirebaseAppImpl(options, config, container);\r\n _apps.set(name, newApp);\r\n return newApp;\r\n}\r\n/**\r\n * Retrieves a {@link @firebase/app#FirebaseApp} instance.\r\n *\r\n * When called with no arguments, the default app is returned. When an app name\r\n * is provided, the app corresponding to that name is returned.\r\n *\r\n * An exception is thrown if the app being retrieved has not yet been\r\n * initialized.\r\n *\r\n * @example\r\n * ```javascript\r\n * // Return the default app\r\n * const app = getApp();\r\n * ```\r\n *\r\n * @example\r\n * ```javascript\r\n * // Return a named app\r\n * const otherApp = getApp(\"otherApp\");\r\n * ```\r\n *\r\n * @param name - Optional name of the app to return. If no name is\r\n * provided, the default is `\"[DEFAULT]\"`.\r\n *\r\n * @returns The app corresponding to the provided app name.\r\n * If no app name is provided, the default app is returned.\r\n *\r\n * @public\r\n */\r\nfunction getApp(name = DEFAULT_ENTRY_NAME) {\r\n const app = _apps.get(name);\r\n if (!app && name === DEFAULT_ENTRY_NAME && getDefaultAppConfig()) {\r\n return initializeApp();\r\n }\r\n if (!app) {\r\n throw ERROR_FACTORY.create(\"no-app\" /* AppError.NO_APP */, { appName: name });\r\n }\r\n return app;\r\n}\r\n/**\r\n * A (read-only) array of all initialized apps.\r\n * @public\r\n */\r\nfunction getApps() {\r\n return Array.from(_apps.values());\r\n}\r\n/**\r\n * Renders this app unusable and frees the resources of all associated\r\n * services.\r\n *\r\n * @example\r\n * ```javascript\r\n * deleteApp(app)\r\n * .then(function() {\r\n * console.log(\"App deleted successfully\");\r\n * })\r\n * .catch(function(error) {\r\n * console.log(\"Error deleting app:\", error);\r\n * });\r\n * ```\r\n *\r\n * @public\r\n */\r\nasync function deleteApp(app) {\r\n const name = app.name;\r\n if (_apps.has(name)) {\r\n _apps.delete(name);\r\n await Promise.all(app.container\r\n .getProviders()\r\n .map(provider => provider.delete()));\r\n app.isDeleted = true;\r\n }\r\n}\r\n/**\r\n * Registers a library's name and version for platform logging purposes.\r\n * @param library - Name of 1p or 3p library (e.g. firestore, angularfire)\r\n * @param version - Current version of that library.\r\n * @param variant - Bundle variant, e.g., node, rn, etc.\r\n *\r\n * @public\r\n */\r\nfunction registerVersion(libraryKeyOrName, version, variant) {\r\n var _a;\r\n // TODO: We can use this check to whitelist strings when/if we set up\r\n // a good whitelist system.\r\n let library = (_a = PLATFORM_LOG_STRING[libraryKeyOrName]) !== null && _a !== void 0 ? _a : libraryKeyOrName;\r\n if (variant) {\r\n library += `-${variant}`;\r\n }\r\n const libraryMismatch = library.match(/\\s|\\//);\r\n const versionMismatch = version.match(/\\s|\\//);\r\n if (libraryMismatch || versionMismatch) {\r\n const warning = [\r\n `Unable to register library \"${library}\" with version \"${version}\":`\r\n ];\r\n if (libraryMismatch) {\r\n warning.push(`library name \"${library}\" contains illegal characters (whitespace or \"/\")`);\r\n }\r\n if (libraryMismatch && versionMismatch) {\r\n warning.push('and');\r\n }\r\n if (versionMismatch) {\r\n warning.push(`version name \"${version}\" contains illegal characters (whitespace or \"/\")`);\r\n }\r\n logger.warn(warning.join(' '));\r\n return;\r\n }\r\n _registerComponent(new Component(`${library}-version`, () => ({ library, version }), \"VERSION\" /* ComponentType.VERSION */));\r\n}\r\n/**\r\n * Sets log handler for all Firebase SDKs.\r\n * @param logCallback - An optional custom log handler that executes user code whenever\r\n * the Firebase SDK makes a logging call.\r\n *\r\n * @public\r\n */\r\nfunction onLog(logCallback, options) {\r\n if (logCallback !== null && typeof logCallback !== 'function') {\r\n throw ERROR_FACTORY.create(\"invalid-log-argument\" /* AppError.INVALID_LOG_ARGUMENT */);\r\n }\r\n setUserLogHandler(logCallback, options);\r\n}\r\n/**\r\n * Sets log level for all Firebase SDKs.\r\n *\r\n * All of the log types above the current log level are captured (i.e. if\r\n * you set the log level to `info`, errors are logged, but `debug` and\r\n * `verbose` logs are not).\r\n *\r\n * @public\r\n */\r\nfunction setLogLevel(logLevel) {\r\n setLogLevel$1(logLevel);\r\n}\n\n/**\r\n * @license\r\n * Copyright 2021 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\nconst DB_NAME = 'firebase-heartbeat-database';\r\nconst DB_VERSION = 1;\r\nconst STORE_NAME = 'firebase-heartbeat-store';\r\nlet dbPromise = null;\r\nfunction getDbPromise() {\r\n if (!dbPromise) {\r\n dbPromise = openDB(DB_NAME, DB_VERSION, {\r\n upgrade: (db, oldVersion) => {\r\n // We don't use 'break' in this switch statement, the fall-through\r\n // behavior is what we want, because if there are multiple versions between\r\n // the old version and the current version, we want ALL the migrations\r\n // that correspond to those versions to run, not only the last one.\r\n // eslint-disable-next-line default-case\r\n switch (oldVersion) {\r\n case 0:\r\n db.createObjectStore(STORE_NAME);\r\n }\r\n }\r\n }).catch(e => {\r\n throw ERROR_FACTORY.create(\"idb-open\" /* AppError.IDB_OPEN */, {\r\n originalErrorMessage: e.message\r\n });\r\n });\r\n }\r\n return dbPromise;\r\n}\r\nasync function readHeartbeatsFromIndexedDB(app) {\r\n try {\r\n const db = await getDbPromise();\r\n const result = await db\r\n .transaction(STORE_NAME)\r\n .objectStore(STORE_NAME)\r\n .get(computeKey(app));\r\n return result;\r\n }\r\n catch (e) {\r\n if (e instanceof FirebaseError) {\r\n logger.warn(e.message);\r\n }\r\n else {\r\n const idbGetError = ERROR_FACTORY.create(\"idb-get\" /* AppError.IDB_GET */, {\r\n originalErrorMessage: e === null || e === void 0 ? void 0 : e.message\r\n });\r\n logger.warn(idbGetError.message);\r\n }\r\n }\r\n}\r\nasync function writeHeartbeatsToIndexedDB(app, heartbeatObject) {\r\n try {\r\n const db = await getDbPromise();\r\n const tx = db.transaction(STORE_NAME, 'readwrite');\r\n const objectStore = tx.objectStore(STORE_NAME);\r\n await objectStore.put(heartbeatObject, computeKey(app));\r\n await tx.done;\r\n }\r\n catch (e) {\r\n if (e instanceof FirebaseError) {\r\n logger.warn(e.message);\r\n }\r\n else {\r\n const idbGetError = ERROR_FACTORY.create(\"idb-set\" /* AppError.IDB_WRITE */, {\r\n originalErrorMessage: e === null || e === void 0 ? void 0 : e.message\r\n });\r\n logger.warn(idbGetError.message);\r\n }\r\n }\r\n}\r\nfunction computeKey(app) {\r\n return `${app.name}!${app.options.appId}`;\r\n}\n\n/**\r\n * @license\r\n * Copyright 2021 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\nconst MAX_HEADER_BYTES = 1024;\r\n// 30 days\r\nconst STORED_HEARTBEAT_RETENTION_MAX_MILLIS = 30 * 24 * 60 * 60 * 1000;\r\nclass HeartbeatServiceImpl {\r\n constructor(container) {\r\n this.container = container;\r\n /**\r\n * In-memory cache for heartbeats, used by getHeartbeatsHeader() to generate\r\n * the header string.\r\n * Stores one record per date. This will be consolidated into the standard\r\n * format of one record per user agent string before being sent as a header.\r\n * Populated from indexedDB when the controller is instantiated and should\r\n * be kept in sync with indexedDB.\r\n * Leave public for easier testing.\r\n */\r\n this._heartbeatsCache = null;\r\n const app = this.container.getProvider('app').getImmediate();\r\n this._storage = new HeartbeatStorageImpl(app);\r\n this._heartbeatsCachePromise = this._storage.read().then(result => {\r\n this._heartbeatsCache = result;\r\n return result;\r\n });\r\n }\r\n /**\r\n * Called to report a heartbeat. The function will generate\r\n * a HeartbeatsByUserAgent object, update heartbeatsCache, and persist it\r\n * to IndexedDB.\r\n * Note that we only store one heartbeat per day. So if a heartbeat for today is\r\n * already logged, subsequent calls to this function in the same day will be ignored.\r\n */\r\n async triggerHeartbeat() {\r\n var _a, _b;\r\n const platformLogger = this.container\r\n .getProvider('platform-logger')\r\n .getImmediate();\r\n // This is the \"Firebase user agent\" string from the platform logger\r\n // service, not the browser user agent.\r\n const agent = platformLogger.getPlatformInfoString();\r\n const date = getUTCDateString();\r\n if (((_a = this._heartbeatsCache) === null || _a === void 0 ? void 0 : _a.heartbeats) == null) {\r\n this._heartbeatsCache = await this._heartbeatsCachePromise;\r\n // If we failed to construct a heartbeats cache, then return immediately.\r\n if (((_b = this._heartbeatsCache) === null || _b === void 0 ? void 0 : _b.heartbeats) == null) {\r\n return;\r\n }\r\n }\r\n // Do not store a heartbeat if one is already stored for this day\r\n // or if a header has already been sent today.\r\n if (this._heartbeatsCache.lastSentHeartbeatDate === date ||\r\n this._heartbeatsCache.heartbeats.some(singleDateHeartbeat => singleDateHeartbeat.date === date)) {\r\n return;\r\n }\r\n else {\r\n // There is no entry for this date. Create one.\r\n this._heartbeatsCache.heartbeats.push({ date, agent });\r\n }\r\n // Remove entries older than 30 days.\r\n this._heartbeatsCache.heartbeats = this._heartbeatsCache.heartbeats.filter(singleDateHeartbeat => {\r\n const hbTimestamp = new Date(singleDateHeartbeat.date).valueOf();\r\n const now = Date.now();\r\n return now - hbTimestamp <= STORED_HEARTBEAT_RETENTION_MAX_MILLIS;\r\n });\r\n return this._storage.overwrite(this._heartbeatsCache);\r\n }\r\n /**\r\n * Returns a base64 encoded string which can be attached to the heartbeat-specific header directly.\r\n * It also clears all heartbeats from memory as well as in IndexedDB.\r\n *\r\n * NOTE: Consuming product SDKs should not send the header if this method\r\n * returns an empty string.\r\n */\r\n async getHeartbeatsHeader() {\r\n var _a;\r\n if (this._heartbeatsCache === null) {\r\n await this._heartbeatsCachePromise;\r\n }\r\n // If it's still null or the array is empty, there is no data to send.\r\n if (((_a = this._heartbeatsCache) === null || _a === void 0 ? void 0 : _a.heartbeats) == null ||\r\n this._heartbeatsCache.heartbeats.length === 0) {\r\n return '';\r\n }\r\n const date = getUTCDateString();\r\n // Extract as many heartbeats from the cache as will fit under the size limit.\r\n const { heartbeatsToSend, unsentEntries } = extractHeartbeatsForHeader(this._heartbeatsCache.heartbeats);\r\n const headerString = base64urlEncodeWithoutPadding(JSON.stringify({ version: 2, heartbeats: heartbeatsToSend }));\r\n // Store last sent date to prevent another being logged/sent for the same day.\r\n this._heartbeatsCache.lastSentHeartbeatDate = date;\r\n if (unsentEntries.length > 0) {\r\n // Store any unsent entries if they exist.\r\n this._heartbeatsCache.heartbeats = unsentEntries;\r\n // This seems more likely than emptying the array (below) to lead to some odd state\r\n // since the cache isn't empty and this will be called again on the next request,\r\n // and is probably safest if we await it.\r\n await this._storage.overwrite(this._heartbeatsCache);\r\n }\r\n else {\r\n this._heartbeatsCache.heartbeats = [];\r\n // Do not wait for this, to reduce latency.\r\n void this._storage.overwrite(this._heartbeatsCache);\r\n }\r\n return headerString;\r\n }\r\n}\r\nfunction getUTCDateString() {\r\n const today = new Date();\r\n // Returns date format 'YYYY-MM-DD'\r\n return today.toISOString().substring(0, 10);\r\n}\r\nfunction extractHeartbeatsForHeader(heartbeatsCache, maxSize = MAX_HEADER_BYTES) {\r\n // Heartbeats grouped by user agent in the standard format to be sent in\r\n // the header.\r\n const heartbeatsToSend = [];\r\n // Single date format heartbeats that are not sent.\r\n let unsentEntries = heartbeatsCache.slice();\r\n for (const singleDateHeartbeat of heartbeatsCache) {\r\n // Look for an existing entry with the same user agent.\r\n const heartbeatEntry = heartbeatsToSend.find(hb => hb.agent === singleDateHeartbeat.agent);\r\n if (!heartbeatEntry) {\r\n // If no entry for this user agent exists, create one.\r\n heartbeatsToSend.push({\r\n agent: singleDateHeartbeat.agent,\r\n dates: [singleDateHeartbeat.date]\r\n });\r\n if (countBytes(heartbeatsToSend) > maxSize) {\r\n // If the header would exceed max size, remove the added heartbeat\r\n // entry and stop adding to the header.\r\n heartbeatsToSend.pop();\r\n break;\r\n }\r\n }\r\n else {\r\n heartbeatEntry.dates.push(singleDateHeartbeat.date);\r\n // If the header would exceed max size, remove the added date\r\n // and stop adding to the header.\r\n if (countBytes(heartbeatsToSend) > maxSize) {\r\n heartbeatEntry.dates.pop();\r\n break;\r\n }\r\n }\r\n // Pop unsent entry from queue. (Skipped if adding the entry exceeded\r\n // quota and the loop breaks early.)\r\n unsentEntries = unsentEntries.slice(1);\r\n }\r\n return {\r\n heartbeatsToSend,\r\n unsentEntries\r\n };\r\n}\r\nclass HeartbeatStorageImpl {\r\n constructor(app) {\r\n this.app = app;\r\n this._canUseIndexedDBPromise = this.runIndexedDBEnvironmentCheck();\r\n }\r\n async runIndexedDBEnvironmentCheck() {\r\n if (!isIndexedDBAvailable()) {\r\n return false;\r\n }\r\n else {\r\n return validateIndexedDBOpenable()\r\n .then(() => true)\r\n .catch(() => false);\r\n }\r\n }\r\n /**\r\n * Read all heartbeats.\r\n */\r\n async read() {\r\n const canUseIndexedDB = await this._canUseIndexedDBPromise;\r\n if (!canUseIndexedDB) {\r\n return { heartbeats: [] };\r\n }\r\n else {\r\n const idbHeartbeatObject = await readHeartbeatsFromIndexedDB(this.app);\r\n if (idbHeartbeatObject === null || idbHeartbeatObject === void 0 ? void 0 : idbHeartbeatObject.heartbeats) {\r\n return idbHeartbeatObject;\r\n }\r\n else {\r\n return { heartbeats: [] };\r\n }\r\n }\r\n }\r\n // overwrite the storage with the provided heartbeats\r\n async overwrite(heartbeatsObject) {\r\n var _a;\r\n const canUseIndexedDB = await this._canUseIndexedDBPromise;\r\n if (!canUseIndexedDB) {\r\n return;\r\n }\r\n else {\r\n const existingHeartbeatsObject = await this.read();\r\n return writeHeartbeatsToIndexedDB(this.app, {\r\n lastSentHeartbeatDate: (_a = heartbeatsObject.lastSentHeartbeatDate) !== null && _a !== void 0 ? _a : existingHeartbeatsObject.lastSentHeartbeatDate,\r\n heartbeats: heartbeatsObject.heartbeats\r\n });\r\n }\r\n }\r\n // add heartbeats\r\n async add(heartbeatsObject) {\r\n var _a;\r\n const canUseIndexedDB = await this._canUseIndexedDBPromise;\r\n if (!canUseIndexedDB) {\r\n return;\r\n }\r\n else {\r\n const existingHeartbeatsObject = await this.read();\r\n return writeHeartbeatsToIndexedDB(this.app, {\r\n lastSentHeartbeatDate: (_a = heartbeatsObject.lastSentHeartbeatDate) !== null && _a !== void 0 ? _a : existingHeartbeatsObject.lastSentHeartbeatDate,\r\n heartbeats: [\r\n ...existingHeartbeatsObject.heartbeats,\r\n ...heartbeatsObject.heartbeats\r\n ]\r\n });\r\n }\r\n }\r\n}\r\n/**\r\n * Calculate bytes of a HeartbeatsByUserAgent array after being wrapped\r\n * in a platform logging header JSON object, stringified, and converted\r\n * to base 64.\r\n */\r\nfunction countBytes(heartbeatsCache) {\r\n // base64 has a restricted set of characters, all of which should be 1 byte.\r\n return base64urlEncodeWithoutPadding(\r\n // heartbeatsCache wrapper properties\r\n JSON.stringify({ version: 2, heartbeats: heartbeatsCache })).length;\r\n}\n\n/**\r\n * @license\r\n * Copyright 2019 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\nfunction registerCoreComponents(variant) {\r\n _registerComponent(new Component('platform-logger', container => new PlatformLoggerServiceImpl(container), \"PRIVATE\" /* ComponentType.PRIVATE */));\r\n _registerComponent(new Component('heartbeat', container => new HeartbeatServiceImpl(container), \"PRIVATE\" /* ComponentType.PRIVATE */));\r\n // Register `app` package.\r\n registerVersion(name$o, version$1, variant);\r\n // BUILD_TARGET will be replaced by values like esm5, esm2017, cjs5, etc during the compilation\r\n registerVersion(name$o, version$1, 'esm2017');\r\n // Register platform SDK identifier (no version).\r\n registerVersion('fire-js', '');\r\n}\n\n/**\r\n * Firebase App\r\n *\r\n * @remarks This package coordinates the communication between the different Firebase components\r\n * @packageDocumentation\r\n */\r\nregisterCoreComponents('');\n\nexport { SDK_VERSION, DEFAULT_ENTRY_NAME as _DEFAULT_ENTRY_NAME, _addComponent, _addOrOverwriteComponent, _apps, _clearComponents, _components, _getProvider, _registerComponent, _removeServiceInstance, deleteApp, getApp, getApps, initializeApp, onLog, registerVersion, setLogLevel };\n//# sourceMappingURL=index.esm2017.js.map\n","/**\n * @license\n * Copyright 2019 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {\n ComponentContainer,\n ComponentType,\n Provider,\n Name\n} from '@firebase/component';\nimport { PlatformLoggerService, VersionService } from './types';\n\nexport class PlatformLoggerServiceImpl implements PlatformLoggerService {\n constructor(private readonly container: ComponentContainer) {}\n // In initial implementation, this will be called by installations on\n // auth token refresh, and installations will send this string.\n getPlatformInfoString(): string {\n const providers = this.container.getProviders();\n // Loop through providers and get library/version pairs from any that are\n // version components.\n return providers\n .map(provider => {\n if (isVersionServiceProvider(provider)) {\n const service = provider.getImmediate() as VersionService;\n return `${service.library}/${service.version}`;\n } else {\n return null;\n }\n })\n .filter(logString => logString)\n .join(' ');\n }\n}\n/**\n *\n * @param provider check if this provider provides a VersionService\n *\n * NOTE: Using Provider<'app-version'> is a hack to indicate that the provider\n * provides VersionService. The provider is not necessarily a 'app-version'\n * provider.\n */\nfunction isVersionServiceProvider(provider: Provider): boolean {\n const component = provider.getComponent();\n return component?.type === ComponentType.VERSION;\n}\n","/**\n * @license\n * Copyright 2019 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { Logger } from '@firebase/logger';\n\nexport const logger = new Logger('@firebase/app');\n","/**\n * @license\n * Copyright 2019 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { name as appName } from '../package.json';\nimport { name as appCompatName } from '../../app-compat/package.json';\nimport { name as analyticsCompatName } from '../../../packages/analytics-compat/package.json';\nimport { name as analyticsName } from '../../../packages/analytics/package.json';\nimport { name as appCheckCompatName } from '../../../packages/app-check-compat/package.json';\nimport { name as appCheckName } from '../../../packages/app-check/package.json';\nimport { name as authName } from '../../../packages/auth/package.json';\nimport { name as authCompatName } from '../../../packages/auth-compat/package.json';\nimport { name as databaseName } from '../../../packages/database/package.json';\nimport { name as databaseCompatName } from '../../../packages/database-compat/package.json';\nimport { name as functionsName } from '../../../packages/functions/package.json';\nimport { name as functionsCompatName } from '../../../packages/functions-compat/package.json';\nimport { name as installationsName } from '../../../packages/installations/package.json';\nimport { name as installationsCompatName } from '../../../packages/installations-compat/package.json';\nimport { name as messagingName } from '../../../packages/messaging/package.json';\nimport { name as messagingCompatName } from '../../../packages/messaging-compat/package.json';\nimport { name as performanceName } from '../../../packages/performance/package.json';\nimport { name as performanceCompatName } from '../../../packages/performance-compat/package.json';\nimport { name as remoteConfigName } from '../../../packages/remote-config/package.json';\nimport { name as remoteConfigCompatName } from '../../../packages/remote-config-compat/package.json';\nimport { name as storageName } from '../../../packages/storage/package.json';\nimport { name as storageCompatName } from '../../../packages/storage-compat/package.json';\nimport { name as firestoreName } from '../../../packages/firestore/package.json';\nimport { name as firestoreCompatName } from '../../../packages/firestore-compat/package.json';\nimport { name as packageName } from '../../../packages/firebase/package.json';\n\n/**\n * The default app name\n *\n * @internal\n */\nexport const DEFAULT_ENTRY_NAME = '[DEFAULT]';\n\nexport const PLATFORM_LOG_STRING = {\n [appName]: 'fire-core',\n [appCompatName]: 'fire-core-compat',\n [analyticsName]: 'fire-analytics',\n [analyticsCompatName]: 'fire-analytics-compat',\n [appCheckName]: 'fire-app-check',\n [appCheckCompatName]: 'fire-app-check-compat',\n [authName]: 'fire-auth',\n [authCompatName]: 'fire-auth-compat',\n [databaseName]: 'fire-rtdb',\n [databaseCompatName]: 'fire-rtdb-compat',\n [functionsName]: 'fire-fn',\n [functionsCompatName]: 'fire-fn-compat',\n [installationsName]: 'fire-iid',\n [installationsCompatName]: 'fire-iid-compat',\n [messagingName]: 'fire-fcm',\n [messagingCompatName]: 'fire-fcm-compat',\n [performanceName]: 'fire-perf',\n [performanceCompatName]: 'fire-perf-compat',\n [remoteConfigName]: 'fire-rc',\n [remoteConfigCompatName]: 'fire-rc-compat',\n [storageName]: 'fire-gcs',\n [storageCompatName]: 'fire-gcs-compat',\n [firestoreName]: 'fire-fst',\n [firestoreCompatName]: 'fire-fst-compat',\n 'fire-js': 'fire-js', // Platform identifier for JS SDK.\n [packageName]: 'fire-js-all'\n} as const;\n","/**\n * @license\n * Copyright 2019 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { FirebaseApp } from './public-types';\nimport { Component, Provider, Name } from '@firebase/component';\nimport { logger } from './logger';\nimport { DEFAULT_ENTRY_NAME } from './constants';\nimport { FirebaseAppImpl } from './firebaseApp';\n\n/**\n * @internal\n */\nexport const _apps = new Map();\n\n/**\n * Registered components.\n *\n * @internal\n */\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport const _components = new Map>();\n\n/**\n * @param component - the component being added to this app's container\n *\n * @internal\n */\nexport function _addComponent(\n app: FirebaseApp,\n component: Component\n): void {\n try {\n (app as FirebaseAppImpl).container.addComponent(component);\n } catch (e) {\n logger.debug(\n `Component ${component.name} failed to register with FirebaseApp ${app.name}`,\n e\n );\n }\n}\n\n/**\n *\n * @internal\n */\nexport function _addOrOverwriteComponent(\n app: FirebaseApp,\n component: Component\n): void {\n (app as FirebaseAppImpl).container.addOrOverwriteComponent(component);\n}\n\n/**\n *\n * @param component - the component to register\n * @returns whether or not the component is registered successfully\n *\n * @internal\n */\nexport function _registerComponent(\n component: Component\n): boolean {\n const componentName = component.name;\n if (_components.has(componentName)) {\n logger.debug(\n `There were multiple attempts to register component ${componentName}.`\n );\n\n return false;\n }\n\n _components.set(componentName, component);\n\n // add the component to existing app instances\n for (const app of _apps.values()) {\n _addComponent(app as FirebaseAppImpl, component);\n }\n\n return true;\n}\n\n/**\n *\n * @param app - FirebaseApp instance\n * @param name - service name\n *\n * @returns the provider for the service with the matching name\n *\n * @internal\n */\nexport function _getProvider(\n app: FirebaseApp,\n name: T\n): Provider {\n const heartbeatController = (app as FirebaseAppImpl).container\n .getProvider('heartbeat')\n .getImmediate({ optional: true });\n if (heartbeatController) {\n void heartbeatController.triggerHeartbeat();\n }\n return (app as FirebaseAppImpl).container.getProvider(name);\n}\n\n/**\n *\n * @param app - FirebaseApp instance\n * @param name - service name\n * @param instanceIdentifier - service instance identifier in case the service supports multiple instances\n *\n * @internal\n */\nexport function _removeServiceInstance(\n app: FirebaseApp,\n name: T,\n instanceIdentifier: string = DEFAULT_ENTRY_NAME\n): void {\n _getProvider(app, name).clearInstance(instanceIdentifier);\n}\n\n/**\n * Test only\n *\n * @internal\n */\nexport function _clearComponents(): void {\n _components.clear();\n}\n\n/**\n * Exported in order to be used in app-compat package\n */\nexport { DEFAULT_ENTRY_NAME as _DEFAULT_ENTRY_NAME };\n","/**\n * @license\n * Copyright 2019 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { ErrorFactory, ErrorMap } from '@firebase/util';\n\nexport const enum AppError {\n NO_APP = 'no-app',\n BAD_APP_NAME = 'bad-app-name',\n DUPLICATE_APP = 'duplicate-app',\n APP_DELETED = 'app-deleted',\n NO_OPTIONS = 'no-options',\n INVALID_APP_ARGUMENT = 'invalid-app-argument',\n INVALID_LOG_ARGUMENT = 'invalid-log-argument',\n IDB_OPEN = 'idb-open',\n IDB_GET = 'idb-get',\n IDB_WRITE = 'idb-set',\n IDB_DELETE = 'idb-delete'\n}\n\nconst ERRORS: ErrorMap = {\n [AppError.NO_APP]:\n \"No Firebase App '{$appName}' has been created - \" +\n 'call initializeApp() first',\n [AppError.BAD_APP_NAME]: \"Illegal App name: '{$appName}\",\n [AppError.DUPLICATE_APP]:\n \"Firebase App named '{$appName}' already exists with different options or config\",\n [AppError.APP_DELETED]: \"Firebase App named '{$appName}' already deleted\",\n [AppError.NO_OPTIONS]:\n 'Need to provide options, when not being deployed to hosting via source.',\n [AppError.INVALID_APP_ARGUMENT]:\n 'firebase.{$appName}() takes either no argument or a ' +\n 'Firebase App instance.',\n [AppError.INVALID_LOG_ARGUMENT]:\n 'First argument to `onLog` must be null or a function.',\n [AppError.IDB_OPEN]:\n 'Error thrown when opening IndexedDB. Original error: {$originalErrorMessage}.',\n [AppError.IDB_GET]:\n 'Error thrown when reading from IndexedDB. Original error: {$originalErrorMessage}.',\n [AppError.IDB_WRITE]:\n 'Error thrown when writing to IndexedDB. Original error: {$originalErrorMessage}.',\n [AppError.IDB_DELETE]:\n 'Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}.'\n};\n\ninterface ErrorParams {\n [AppError.NO_APP]: { appName: string };\n [AppError.BAD_APP_NAME]: { appName: string };\n [AppError.DUPLICATE_APP]: { appName: string };\n [AppError.APP_DELETED]: { appName: string };\n [AppError.INVALID_APP_ARGUMENT]: { appName: string };\n [AppError.IDB_OPEN]: { originalErrorMessage?: string };\n [AppError.IDB_GET]: { originalErrorMessage?: string };\n [AppError.IDB_WRITE]: { originalErrorMessage?: string };\n [AppError.IDB_DELETE]: { originalErrorMessage?: string };\n}\n\nexport const ERROR_FACTORY = new ErrorFactory(\n 'app',\n 'Firebase',\n ERRORS\n);\n","/**\n * @license\n * Copyright 2019 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {\n FirebaseApp,\n FirebaseOptions,\n FirebaseAppSettings\n} from './public-types';\nimport {\n ComponentContainer,\n Component,\n ComponentType\n} from '@firebase/component';\nimport { ERROR_FACTORY, AppError } from './errors';\n\nexport class FirebaseAppImpl implements FirebaseApp {\n private readonly _options: FirebaseOptions;\n private readonly _name: string;\n /**\n * Original config values passed in as a constructor parameter.\n * It is only used to compare with another config object to support idempotent initializeApp().\n *\n * Updating automaticDataCollectionEnabled on the App instance will not change its value in _config.\n */\n private readonly _config: Required;\n private _automaticDataCollectionEnabled: boolean;\n private _isDeleted = false;\n private readonly _container: ComponentContainer;\n\n constructor(\n options: FirebaseOptions,\n config: Required,\n container: ComponentContainer\n ) {\n this._options = { ...options };\n this._config = { ...config };\n this._name = config.name;\n this._automaticDataCollectionEnabled =\n config.automaticDataCollectionEnabled;\n this._container = container;\n this.container.addComponent(\n new Component('app', () => this, ComponentType.PUBLIC)\n );\n }\n\n get automaticDataCollectionEnabled(): boolean {\n this.checkDestroyed();\n return this._automaticDataCollectionEnabled;\n }\n\n set automaticDataCollectionEnabled(val: boolean) {\n this.checkDestroyed();\n this._automaticDataCollectionEnabled = val;\n }\n\n get name(): string {\n this.checkDestroyed();\n return this._name;\n }\n\n get options(): FirebaseOptions {\n this.checkDestroyed();\n return this._options;\n }\n\n get config(): Required {\n this.checkDestroyed();\n return this._config;\n }\n\n get container(): ComponentContainer {\n return this._container;\n }\n\n get isDeleted(): boolean {\n return this._isDeleted;\n }\n\n set isDeleted(val: boolean) {\n this._isDeleted = val;\n }\n\n /**\n * This function will throw an Error if the App has already been deleted -\n * use before performing API actions on the App.\n */\n private checkDestroyed(): void {\n if (this.isDeleted) {\n throw ERROR_FACTORY.create(AppError.APP_DELETED, { appName: this._name });\n }\n }\n}\n","/**\n * @license\n * Copyright 2019 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {\n FirebaseApp,\n FirebaseOptions,\n FirebaseAppSettings\n} from './public-types';\nimport { DEFAULT_ENTRY_NAME, PLATFORM_LOG_STRING } from './constants';\nimport { ERROR_FACTORY, AppError } from './errors';\nimport {\n ComponentContainer,\n Component,\n Name,\n ComponentType\n} from '@firebase/component';\nimport { version } from '../../firebase/package.json';\nimport { FirebaseAppImpl } from './firebaseApp';\nimport { _apps, _components, _registerComponent } from './internal';\nimport { logger } from './logger';\nimport {\n LogLevelString,\n setLogLevel as setLogLevelImpl,\n LogCallback,\n LogOptions,\n setUserLogHandler\n} from '@firebase/logger';\nimport { deepEqual, getDefaultAppConfig } from '@firebase/util';\n\nexport { FirebaseError } from '@firebase/util';\n\n/**\n * The current SDK version.\n *\n * @public\n */\nexport const SDK_VERSION = version;\n\n/**\n * Creates and initializes a {@link @firebase/app#FirebaseApp} instance.\n *\n * See\n * {@link\n * https://firebase.google.com/docs/web/setup#add_firebase_to_your_app\n * | Add Firebase to your app} and\n * {@link\n * https://firebase.google.com/docs/web/setup#multiple-projects\n * | Initialize multiple projects} for detailed documentation.\n *\n * @example\n * ```javascript\n *\n * // Initialize default app\n * // Retrieve your own options values by adding a web app on\n * // https://console.firebase.google.com\n * initializeApp({\n * apiKey: \"AIza....\", // Auth / General Use\n * authDomain: \"YOUR_APP.firebaseapp.com\", // Auth with popup/redirect\n * databaseURL: \"https://YOUR_APP.firebaseio.com\", // Realtime Database\n * storageBucket: \"YOUR_APP.appspot.com\", // Storage\n * messagingSenderId: \"123456789\" // Cloud Messaging\n * });\n * ```\n *\n * @example\n * ```javascript\n *\n * // Initialize another app\n * const otherApp = initializeApp({\n * databaseURL: \"https://.firebaseio.com\",\n * storageBucket: \".appspot.com\"\n * }, \"otherApp\");\n * ```\n *\n * @param options - Options to configure the app's services.\n * @param name - Optional name of the app to initialize. If no name\n * is provided, the default is `\"[DEFAULT]\"`.\n *\n * @returns The initialized app.\n *\n * @public\n */\nexport function initializeApp(\n options: FirebaseOptions,\n name?: string\n): FirebaseApp;\n/**\n * Creates and initializes a FirebaseApp instance.\n *\n * @param options - Options to configure the app's services.\n * @param config - FirebaseApp Configuration\n *\n * @public\n */\nexport function initializeApp(\n options: FirebaseOptions,\n config?: FirebaseAppSettings\n): FirebaseApp;\n/**\n * Creates and initializes a FirebaseApp instance.\n *\n * @public\n */\nexport function initializeApp(): FirebaseApp;\nexport function initializeApp(\n _options?: FirebaseOptions,\n rawConfig = {}\n): FirebaseApp {\n let options = _options;\n\n if (typeof rawConfig !== 'object') {\n const name = rawConfig;\n rawConfig = { name };\n }\n\n const config: Required = {\n name: DEFAULT_ENTRY_NAME,\n automaticDataCollectionEnabled: false,\n ...rawConfig\n };\n const name = config.name;\n\n if (typeof name !== 'string' || !name) {\n throw ERROR_FACTORY.create(AppError.BAD_APP_NAME, {\n appName: String(name)\n });\n }\n\n options ||= getDefaultAppConfig();\n\n if (!options) {\n throw ERROR_FACTORY.create(AppError.NO_OPTIONS);\n }\n\n const existingApp = _apps.get(name) as FirebaseAppImpl;\n if (existingApp) {\n // return the existing app if options and config deep equal the ones in the existing app.\n if (\n deepEqual(options, existingApp.options) &&\n deepEqual(config, existingApp.config)\n ) {\n return existingApp;\n } else {\n throw ERROR_FACTORY.create(AppError.DUPLICATE_APP, { appName: name });\n }\n }\n\n const container = new ComponentContainer(name);\n for (const component of _components.values()) {\n container.addComponent(component);\n }\n\n const newApp = new FirebaseAppImpl(options, config, container);\n\n _apps.set(name, newApp);\n\n return newApp;\n}\n\n/**\n * Retrieves a {@link @firebase/app#FirebaseApp} instance.\n *\n * When called with no arguments, the default app is returned. When an app name\n * is provided, the app corresponding to that name is returned.\n *\n * An exception is thrown if the app being retrieved has not yet been\n * initialized.\n *\n * @example\n * ```javascript\n * // Return the default app\n * const app = getApp();\n * ```\n *\n * @example\n * ```javascript\n * // Return a named app\n * const otherApp = getApp(\"otherApp\");\n * ```\n *\n * @param name - Optional name of the app to return. If no name is\n * provided, the default is `\"[DEFAULT]\"`.\n *\n * @returns The app corresponding to the provided app name.\n * If no app name is provided, the default app is returned.\n *\n * @public\n */\nexport function getApp(name: string = DEFAULT_ENTRY_NAME): FirebaseApp {\n const app = _apps.get(name);\n if (!app && name === DEFAULT_ENTRY_NAME && getDefaultAppConfig()) {\n return initializeApp();\n }\n if (!app) {\n throw ERROR_FACTORY.create(AppError.NO_APP, { appName: name });\n }\n\n return app;\n}\n\n/**\n * A (read-only) array of all initialized apps.\n * @public\n */\nexport function getApps(): FirebaseApp[] {\n return Array.from(_apps.values());\n}\n\n/**\n * Renders this app unusable and frees the resources of all associated\n * services.\n *\n * @example\n * ```javascript\n * deleteApp(app)\n * .then(function() {\n * console.log(\"App deleted successfully\");\n * })\n * .catch(function(error) {\n * console.log(\"Error deleting app:\", error);\n * });\n * ```\n *\n * @public\n */\nexport async function deleteApp(app: FirebaseApp): Promise {\n const name = app.name;\n if (_apps.has(name)) {\n _apps.delete(name);\n await Promise.all(\n (app as FirebaseAppImpl).container\n .getProviders()\n .map(provider => provider.delete())\n );\n (app as FirebaseAppImpl).isDeleted = true;\n }\n}\n\n/**\n * Registers a library's name and version for platform logging purposes.\n * @param library - Name of 1p or 3p library (e.g. firestore, angularfire)\n * @param version - Current version of that library.\n * @param variant - Bundle variant, e.g., node, rn, etc.\n *\n * @public\n */\nexport function registerVersion(\n libraryKeyOrName: string,\n version: string,\n variant?: string\n): void {\n // TODO: We can use this check to whitelist strings when/if we set up\n // a good whitelist system.\n let library = PLATFORM_LOG_STRING[libraryKeyOrName] ?? libraryKeyOrName;\n if (variant) {\n library += `-${variant}`;\n }\n const libraryMismatch = library.match(/\\s|\\//);\n const versionMismatch = version.match(/\\s|\\//);\n if (libraryMismatch || versionMismatch) {\n const warning = [\n `Unable to register library \"${library}\" with version \"${version}\":`\n ];\n if (libraryMismatch) {\n warning.push(\n `library name \"${library}\" contains illegal characters (whitespace or \"/\")`\n );\n }\n if (libraryMismatch && versionMismatch) {\n warning.push('and');\n }\n if (versionMismatch) {\n warning.push(\n `version name \"${version}\" contains illegal characters (whitespace or \"/\")`\n );\n }\n logger.warn(warning.join(' '));\n return;\n }\n _registerComponent(\n new Component(\n `${library}-version` as Name,\n () => ({ library, version }),\n ComponentType.VERSION\n )\n );\n}\n\n/**\n * Sets log handler for all Firebase SDKs.\n * @param logCallback - An optional custom log handler that executes user code whenever\n * the Firebase SDK makes a logging call.\n *\n * @public\n */\nexport function onLog(\n logCallback: LogCallback | null,\n options?: LogOptions\n): void {\n if (logCallback !== null && typeof logCallback !== 'function') {\n throw ERROR_FACTORY.create(AppError.INVALID_LOG_ARGUMENT);\n }\n setUserLogHandler(logCallback, options);\n}\n\n/**\n * Sets log level for all Firebase SDKs.\n *\n * All of the log types above the current log level are captured (i.e. if\n * you set the log level to `info`, errors are logged, but `debug` and\n * `verbose` logs are not).\n *\n * @public\n */\nexport function setLogLevel(logLevel: LogLevelString): void {\n setLogLevelImpl(logLevel);\n}\n","/**\n * @license\n * Copyright 2021 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { FirebaseError } from '@firebase/util';\nimport { DBSchema, openDB, IDBPDatabase } from 'idb';\nimport { AppError, ERROR_FACTORY } from './errors';\nimport { FirebaseApp } from './public-types';\nimport { HeartbeatsInIndexedDB } from './types';\nimport { logger } from './logger';\n\nconst DB_NAME = 'firebase-heartbeat-database';\nconst DB_VERSION = 1;\nconst STORE_NAME = 'firebase-heartbeat-store';\n\ninterface AppDB extends DBSchema {\n 'firebase-heartbeat-store': {\n key: string;\n value: HeartbeatsInIndexedDB;\n };\n}\n\nlet dbPromise: Promise> | null = null;\nfunction getDbPromise(): Promise> {\n if (!dbPromise) {\n dbPromise = openDB(DB_NAME, DB_VERSION, {\n upgrade: (db, oldVersion) => {\n // We don't use 'break' in this switch statement, the fall-through\n // behavior is what we want, because if there are multiple versions between\n // the old version and the current version, we want ALL the migrations\n // that correspond to those versions to run, not only the last one.\n // eslint-disable-next-line default-case\n switch (oldVersion) {\n case 0:\n db.createObjectStore(STORE_NAME);\n }\n }\n }).catch(e => {\n throw ERROR_FACTORY.create(AppError.IDB_OPEN, {\n originalErrorMessage: e.message\n });\n });\n }\n return dbPromise;\n}\n\nexport async function readHeartbeatsFromIndexedDB(\n app: FirebaseApp\n): Promise {\n try {\n const db = await getDbPromise();\n const result = await db\n .transaction(STORE_NAME)\n .objectStore(STORE_NAME)\n .get(computeKey(app));\n return result;\n } catch (e) {\n if (e instanceof FirebaseError) {\n logger.warn(e.message);\n } else {\n const idbGetError = ERROR_FACTORY.create(AppError.IDB_GET, {\n originalErrorMessage: (e as Error)?.message\n });\n logger.warn(idbGetError.message);\n }\n }\n}\n\nexport async function writeHeartbeatsToIndexedDB(\n app: FirebaseApp,\n heartbeatObject: HeartbeatsInIndexedDB\n): Promise {\n try {\n const db = await getDbPromise();\n const tx = db.transaction(STORE_NAME, 'readwrite');\n const objectStore = tx.objectStore(STORE_NAME);\n await objectStore.put(heartbeatObject, computeKey(app));\n await tx.done;\n } catch (e) {\n if (e instanceof FirebaseError) {\n logger.warn(e.message);\n } else {\n const idbGetError = ERROR_FACTORY.create(AppError.IDB_WRITE, {\n originalErrorMessage: (e as Error)?.message\n });\n logger.warn(idbGetError.message);\n }\n }\n}\n\nfunction computeKey(app: FirebaseApp): string {\n return `${app.name}!${app.options.appId}`;\n}\n","/**\n * @license\n * Copyright 2021 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { ComponentContainer } from '@firebase/component';\nimport {\n base64urlEncodeWithoutPadding,\n isIndexedDBAvailable,\n validateIndexedDBOpenable\n} from '@firebase/util';\nimport {\n readHeartbeatsFromIndexedDB,\n writeHeartbeatsToIndexedDB\n} from './indexeddb';\nimport { FirebaseApp } from './public-types';\nimport {\n HeartbeatsByUserAgent,\n HeartbeatService,\n HeartbeatsInIndexedDB,\n HeartbeatStorage,\n SingleDateHeartbeat\n} from './types';\n\nconst MAX_HEADER_BYTES = 1024;\n// 30 days\nconst STORED_HEARTBEAT_RETENTION_MAX_MILLIS = 30 * 24 * 60 * 60 * 1000;\n\nexport class HeartbeatServiceImpl implements HeartbeatService {\n /**\n * The persistence layer for heartbeats\n * Leave public for easier testing.\n */\n _storage: HeartbeatStorageImpl;\n\n /**\n * In-memory cache for heartbeats, used by getHeartbeatsHeader() to generate\n * the header string.\n * Stores one record per date. This will be consolidated into the standard\n * format of one record per user agent string before being sent as a header.\n * Populated from indexedDB when the controller is instantiated and should\n * be kept in sync with indexedDB.\n * Leave public for easier testing.\n */\n _heartbeatsCache: HeartbeatsInIndexedDB | null = null;\n\n /**\n * the initialization promise for populating heartbeatCache.\n * If getHeartbeatsHeader() is called before the promise resolves\n * (hearbeatsCache == null), it should wait for this promise\n * Leave public for easier testing.\n */\n _heartbeatsCachePromise: Promise;\n constructor(private readonly container: ComponentContainer) {\n const app = this.container.getProvider('app').getImmediate();\n this._storage = new HeartbeatStorageImpl(app);\n this._heartbeatsCachePromise = this._storage.read().then(result => {\n this._heartbeatsCache = result;\n return result;\n });\n }\n\n /**\n * Called to report a heartbeat. The function will generate\n * a HeartbeatsByUserAgent object, update heartbeatsCache, and persist it\n * to IndexedDB.\n * Note that we only store one heartbeat per day. So if a heartbeat for today is\n * already logged, subsequent calls to this function in the same day will be ignored.\n */\n async triggerHeartbeat(): Promise {\n const platformLogger = this.container\n .getProvider('platform-logger')\n .getImmediate();\n\n // This is the \"Firebase user agent\" string from the platform logger\n // service, not the browser user agent.\n const agent = platformLogger.getPlatformInfoString();\n const date = getUTCDateString();\n if (this._heartbeatsCache?.heartbeats == null) {\n this._heartbeatsCache = await this._heartbeatsCachePromise;\n // If we failed to construct a heartbeats cache, then return immediately.\n if (this._heartbeatsCache?.heartbeats == null) {\n return;\n }\n }\n // Do not store a heartbeat if one is already stored for this day\n // or if a header has already been sent today.\n if (\n this._heartbeatsCache.lastSentHeartbeatDate === date ||\n this._heartbeatsCache.heartbeats.some(\n singleDateHeartbeat => singleDateHeartbeat.date === date\n )\n ) {\n return;\n } else {\n // There is no entry for this date. Create one.\n this._heartbeatsCache.heartbeats.push({ date, agent });\n }\n // Remove entries older than 30 days.\n this._heartbeatsCache.heartbeats = this._heartbeatsCache.heartbeats.filter(\n singleDateHeartbeat => {\n const hbTimestamp = new Date(singleDateHeartbeat.date).valueOf();\n const now = Date.now();\n return now - hbTimestamp <= STORED_HEARTBEAT_RETENTION_MAX_MILLIS;\n }\n );\n return this._storage.overwrite(this._heartbeatsCache);\n }\n\n /**\n * Returns a base64 encoded string which can be attached to the heartbeat-specific header directly.\n * It also clears all heartbeats from memory as well as in IndexedDB.\n *\n * NOTE: Consuming product SDKs should not send the header if this method\n * returns an empty string.\n */\n async getHeartbeatsHeader(): Promise {\n if (this._heartbeatsCache === null) {\n await this._heartbeatsCachePromise;\n }\n // If it's still null or the array is empty, there is no data to send.\n if (\n this._heartbeatsCache?.heartbeats == null ||\n this._heartbeatsCache.heartbeats.length === 0\n ) {\n return '';\n }\n const date = getUTCDateString();\n // Extract as many heartbeats from the cache as will fit under the size limit.\n const { heartbeatsToSend, unsentEntries } = extractHeartbeatsForHeader(\n this._heartbeatsCache.heartbeats\n );\n const headerString = base64urlEncodeWithoutPadding(\n JSON.stringify({ version: 2, heartbeats: heartbeatsToSend })\n );\n // Store last sent date to prevent another being logged/sent for the same day.\n this._heartbeatsCache.lastSentHeartbeatDate = date;\n if (unsentEntries.length > 0) {\n // Store any unsent entries if they exist.\n this._heartbeatsCache.heartbeats = unsentEntries;\n // This seems more likely than emptying the array (below) to lead to some odd state\n // since the cache isn't empty and this will be called again on the next request,\n // and is probably safest if we await it.\n await this._storage.overwrite(this._heartbeatsCache);\n } else {\n this._heartbeatsCache.heartbeats = [];\n // Do not wait for this, to reduce latency.\n void this._storage.overwrite(this._heartbeatsCache);\n }\n return headerString;\n }\n}\n\nfunction getUTCDateString(): string {\n const today = new Date();\n // Returns date format 'YYYY-MM-DD'\n return today.toISOString().substring(0, 10);\n}\n\nexport function extractHeartbeatsForHeader(\n heartbeatsCache: SingleDateHeartbeat[],\n maxSize = MAX_HEADER_BYTES\n): {\n heartbeatsToSend: HeartbeatsByUserAgent[];\n unsentEntries: SingleDateHeartbeat[];\n} {\n // Heartbeats grouped by user agent in the standard format to be sent in\n // the header.\n const heartbeatsToSend: HeartbeatsByUserAgent[] = [];\n // Single date format heartbeats that are not sent.\n let unsentEntries = heartbeatsCache.slice();\n for (const singleDateHeartbeat of heartbeatsCache) {\n // Look for an existing entry with the same user agent.\n const heartbeatEntry = heartbeatsToSend.find(\n hb => hb.agent === singleDateHeartbeat.agent\n );\n if (!heartbeatEntry) {\n // If no entry for this user agent exists, create one.\n heartbeatsToSend.push({\n agent: singleDateHeartbeat.agent,\n dates: [singleDateHeartbeat.date]\n });\n if (countBytes(heartbeatsToSend) > maxSize) {\n // If the header would exceed max size, remove the added heartbeat\n // entry and stop adding to the header.\n heartbeatsToSend.pop();\n break;\n }\n } else {\n heartbeatEntry.dates.push(singleDateHeartbeat.date);\n // If the header would exceed max size, remove the added date\n // and stop adding to the header.\n if (countBytes(heartbeatsToSend) > maxSize) {\n heartbeatEntry.dates.pop();\n break;\n }\n }\n // Pop unsent entry from queue. (Skipped if adding the entry exceeded\n // quota and the loop breaks early.)\n unsentEntries = unsentEntries.slice(1);\n }\n return {\n heartbeatsToSend,\n unsentEntries\n };\n}\n\nexport class HeartbeatStorageImpl implements HeartbeatStorage {\n private _canUseIndexedDBPromise: Promise;\n constructor(public app: FirebaseApp) {\n this._canUseIndexedDBPromise = this.runIndexedDBEnvironmentCheck();\n }\n async runIndexedDBEnvironmentCheck(): Promise {\n if (!isIndexedDBAvailable()) {\n return false;\n } else {\n return validateIndexedDBOpenable()\n .then(() => true)\n .catch(() => false);\n }\n }\n /**\n * Read all heartbeats.\n */\n async read(): Promise {\n const canUseIndexedDB = await this._canUseIndexedDBPromise;\n if (!canUseIndexedDB) {\n return { heartbeats: [] };\n } else {\n const idbHeartbeatObject = await readHeartbeatsFromIndexedDB(this.app);\n if (idbHeartbeatObject?.heartbeats) {\n return idbHeartbeatObject;\n } else {\n return { heartbeats: [] };\n }\n }\n }\n // overwrite the storage with the provided heartbeats\n async overwrite(heartbeatsObject: HeartbeatsInIndexedDB): Promise {\n const canUseIndexedDB = await this._canUseIndexedDBPromise;\n if (!canUseIndexedDB) {\n return;\n } else {\n const existingHeartbeatsObject = await this.read();\n return writeHeartbeatsToIndexedDB(this.app, {\n lastSentHeartbeatDate:\n heartbeatsObject.lastSentHeartbeatDate ??\n existingHeartbeatsObject.lastSentHeartbeatDate,\n heartbeats: heartbeatsObject.heartbeats\n });\n }\n }\n // add heartbeats\n async add(heartbeatsObject: HeartbeatsInIndexedDB): Promise {\n const canUseIndexedDB = await this._canUseIndexedDBPromise;\n if (!canUseIndexedDB) {\n return;\n } else {\n const existingHeartbeatsObject = await this.read();\n return writeHeartbeatsToIndexedDB(this.app, {\n lastSentHeartbeatDate:\n heartbeatsObject.lastSentHeartbeatDate ??\n existingHeartbeatsObject.lastSentHeartbeatDate,\n heartbeats: [\n ...existingHeartbeatsObject.heartbeats,\n ...heartbeatsObject.heartbeats\n ]\n });\n }\n }\n}\n\n/**\n * Calculate bytes of a HeartbeatsByUserAgent array after being wrapped\n * in a platform logging header JSON object, stringified, and converted\n * to base 64.\n */\nexport function countBytes(heartbeatsCache: HeartbeatsByUserAgent[]): number {\n // base64 has a restricted set of characters, all of which should be 1 byte.\n return base64urlEncodeWithoutPadding(\n // heartbeatsCache wrapper properties\n JSON.stringify({ version: 2, heartbeats: heartbeatsCache })\n ).length;\n}\n","/**\n * @license\n * Copyright 2019 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { Component, ComponentType } from '@firebase/component';\nimport { PlatformLoggerServiceImpl } from './platformLoggerService';\nimport { name, version } from '../package.json';\nimport { _registerComponent } from './internal';\nimport { registerVersion } from './api';\nimport { HeartbeatServiceImpl } from './heartbeatService';\n\nexport function registerCoreComponents(variant?: string): void {\n _registerComponent(\n new Component(\n 'platform-logger',\n container => new PlatformLoggerServiceImpl(container),\n ComponentType.PRIVATE\n )\n );\n _registerComponent(\n new Component(\n 'heartbeat',\n container => new HeartbeatServiceImpl(container),\n ComponentType.PRIVATE\n )\n );\n\n // Register `app` package.\n registerVersion(name, version, variant);\n // BUILD_TARGET will be replaced by values like esm5, esm2017, cjs5, etc during the compilation\n registerVersion(name, version, '__BUILD_TARGET__');\n // Register platform SDK identifier (no version).\n registerVersion('fire-js', '');\n}\n","/**\n * Firebase App\n *\n * @remarks This package coordinates the communication between the different Firebase components\n * @packageDocumentation\n */\n\n/**\n * @license\n * Copyright 2019 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { registerCoreComponents } from './registerCoreComponents';\n\nexport * from './api';\nexport * from './internal';\nexport * from './public-types';\n\nregisterCoreComponents('__RUNTIME_ENV__');\n","import { _array_without_holes } from \"./_array_without_holes.js\";\nimport { _iterable_to_array } from \"./_iterable_to_array.js\";\nimport { _non_iterable_spread } from \"./_non_iterable_spread.js\";\nimport { _unsupported_iterable_to_array } from \"./_unsupported_iterable_to_array.js\";\n\nexport function _to_consumable_array(arr) {\n return _array_without_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array(arr) || _non_iterable_spread();\n}\nexport { _to_consumable_array as _ };\n","import { _array_like_to_array } from \"./_array_like_to_array.js\";\n\nexport function _array_without_holes(arr) {\n if (Array.isArray(arr)) return _array_like_to_array(arr);\n}\nexport { _array_without_holes as _ };\n","export function _iterable_to_array(iter) {\n if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) {\n return Array.from(iter);\n }\n}\nexport { _iterable_to_array as _ };\n","export function _non_iterable_spread() {\n throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\nexport { _non_iterable_spread as _ };\n","import { Deferred } from '@firebase/util';\n\n/**\r\n * Component for service name T, e.g. `auth`, `auth-internal`\r\n */\r\nclass Component {\r\n /**\r\n *\r\n * @param name The public service name, e.g. app, auth, firestore, database\r\n * @param instanceFactory Service factory responsible for creating the public interface\r\n * @param type whether the service provided by the component is public or private\r\n */\r\n constructor(name, instanceFactory, type) {\r\n this.name = name;\r\n this.instanceFactory = instanceFactory;\r\n this.type = type;\r\n this.multipleInstances = false;\r\n /**\r\n * Properties to be added to the service namespace\r\n */\r\n this.serviceProps = {};\r\n this.instantiationMode = \"LAZY\" /* InstantiationMode.LAZY */;\r\n this.onInstanceCreated = null;\r\n }\r\n setInstantiationMode(mode) {\r\n this.instantiationMode = mode;\r\n return this;\r\n }\r\n setMultipleInstances(multipleInstances) {\r\n this.multipleInstances = multipleInstances;\r\n return this;\r\n }\r\n setServiceProps(props) {\r\n this.serviceProps = props;\r\n return this;\r\n }\r\n setInstanceCreatedCallback(callback) {\r\n this.onInstanceCreated = callback;\r\n return this;\r\n }\r\n}\n\n/**\r\n * @license\r\n * Copyright 2019 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\nconst DEFAULT_ENTRY_NAME = '[DEFAULT]';\n\n/**\r\n * @license\r\n * Copyright 2019 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\n/**\r\n * Provider for instance for service name T, e.g. 'auth', 'auth-internal'\r\n * NameServiceMapping[T] is an alias for the type of the instance\r\n */\r\nclass Provider {\r\n constructor(name, container) {\r\n this.name = name;\r\n this.container = container;\r\n this.component = null;\r\n this.instances = new Map();\r\n this.instancesDeferred = new Map();\r\n this.instancesOptions = new Map();\r\n this.onInitCallbacks = new Map();\r\n }\r\n /**\r\n * @param identifier A provider can provide mulitple instances of a service\r\n * if this.component.multipleInstances is true.\r\n */\r\n get(identifier) {\r\n // if multipleInstances is not supported, use the default name\r\n const normalizedIdentifier = this.normalizeInstanceIdentifier(identifier);\r\n if (!this.instancesDeferred.has(normalizedIdentifier)) {\r\n const deferred = new Deferred();\r\n this.instancesDeferred.set(normalizedIdentifier, deferred);\r\n if (this.isInitialized(normalizedIdentifier) ||\r\n this.shouldAutoInitialize()) {\r\n // initialize the service if it can be auto-initialized\r\n try {\r\n const instance = this.getOrInitializeService({\r\n instanceIdentifier: normalizedIdentifier\r\n });\r\n if (instance) {\r\n deferred.resolve(instance);\r\n }\r\n }\r\n catch (e) {\r\n // when the instance factory throws an exception during get(), it should not cause\r\n // a fatal error. We just return the unresolved promise in this case.\r\n }\r\n }\r\n }\r\n return this.instancesDeferred.get(normalizedIdentifier).promise;\r\n }\r\n getImmediate(options) {\r\n var _a;\r\n // if multipleInstances is not supported, use the default name\r\n const normalizedIdentifier = this.normalizeInstanceIdentifier(options === null || options === void 0 ? void 0 : options.identifier);\r\n const optional = (_a = options === null || options === void 0 ? void 0 : options.optional) !== null && _a !== void 0 ? _a : false;\r\n if (this.isInitialized(normalizedIdentifier) ||\r\n this.shouldAutoInitialize()) {\r\n try {\r\n return this.getOrInitializeService({\r\n instanceIdentifier: normalizedIdentifier\r\n });\r\n }\r\n catch (e) {\r\n if (optional) {\r\n return null;\r\n }\r\n else {\r\n throw e;\r\n }\r\n }\r\n }\r\n else {\r\n // In case a component is not initialized and should/can not be auto-initialized at the moment, return null if the optional flag is set, or throw\r\n if (optional) {\r\n return null;\r\n }\r\n else {\r\n throw Error(`Service ${this.name} is not available`);\r\n }\r\n }\r\n }\r\n getComponent() {\r\n return this.component;\r\n }\r\n setComponent(component) {\r\n if (component.name !== this.name) {\r\n throw Error(`Mismatching Component ${component.name} for Provider ${this.name}.`);\r\n }\r\n if (this.component) {\r\n throw Error(`Component for ${this.name} has already been provided`);\r\n }\r\n this.component = component;\r\n // return early without attempting to initialize the component if the component requires explicit initialization (calling `Provider.initialize()`)\r\n if (!this.shouldAutoInitialize()) {\r\n return;\r\n }\r\n // if the service is eager, initialize the default instance\r\n if (isComponentEager(component)) {\r\n try {\r\n this.getOrInitializeService({ instanceIdentifier: DEFAULT_ENTRY_NAME });\r\n }\r\n catch (e) {\r\n // when the instance factory for an eager Component throws an exception during the eager\r\n // initialization, it should not cause a fatal error.\r\n // TODO: Investigate if we need to make it configurable, because some component may want to cause\r\n // a fatal error in this case?\r\n }\r\n }\r\n // Create service instances for the pending promises and resolve them\r\n // NOTE: if this.multipleInstances is false, only the default instance will be created\r\n // and all promises with resolve with it regardless of the identifier.\r\n for (const [instanceIdentifier, instanceDeferred] of this.instancesDeferred.entries()) {\r\n const normalizedIdentifier = this.normalizeInstanceIdentifier(instanceIdentifier);\r\n try {\r\n // `getOrInitializeService()` should always return a valid instance since a component is guaranteed. use ! to make typescript happy.\r\n const instance = this.getOrInitializeService({\r\n instanceIdentifier: normalizedIdentifier\r\n });\r\n instanceDeferred.resolve(instance);\r\n }\r\n catch (e) {\r\n // when the instance factory throws an exception, it should not cause\r\n // a fatal error. We just leave the promise unresolved.\r\n }\r\n }\r\n }\r\n clearInstance(identifier = DEFAULT_ENTRY_NAME) {\r\n this.instancesDeferred.delete(identifier);\r\n this.instancesOptions.delete(identifier);\r\n this.instances.delete(identifier);\r\n }\r\n // app.delete() will call this method on every provider to delete the services\r\n // TODO: should we mark the provider as deleted?\r\n async delete() {\r\n const services = Array.from(this.instances.values());\r\n await Promise.all([\r\n ...services\r\n .filter(service => 'INTERNAL' in service) // legacy services\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n .map(service => service.INTERNAL.delete()),\r\n ...services\r\n .filter(service => '_delete' in service) // modularized services\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n .map(service => service._delete())\r\n ]);\r\n }\r\n isComponentSet() {\r\n return this.component != null;\r\n }\r\n isInitialized(identifier = DEFAULT_ENTRY_NAME) {\r\n return this.instances.has(identifier);\r\n }\r\n getOptions(identifier = DEFAULT_ENTRY_NAME) {\r\n return this.instancesOptions.get(identifier) || {};\r\n }\r\n initialize(opts = {}) {\r\n const { options = {} } = opts;\r\n const normalizedIdentifier = this.normalizeInstanceIdentifier(opts.instanceIdentifier);\r\n if (this.isInitialized(normalizedIdentifier)) {\r\n throw Error(`${this.name}(${normalizedIdentifier}) has already been initialized`);\r\n }\r\n if (!this.isComponentSet()) {\r\n throw Error(`Component ${this.name} has not been registered yet`);\r\n }\r\n const instance = this.getOrInitializeService({\r\n instanceIdentifier: normalizedIdentifier,\r\n options\r\n });\r\n // resolve any pending promise waiting for the service instance\r\n for (const [instanceIdentifier, instanceDeferred] of this.instancesDeferred.entries()) {\r\n const normalizedDeferredIdentifier = this.normalizeInstanceIdentifier(instanceIdentifier);\r\n if (normalizedIdentifier === normalizedDeferredIdentifier) {\r\n instanceDeferred.resolve(instance);\r\n }\r\n }\r\n return instance;\r\n }\r\n /**\r\n *\r\n * @param callback - a function that will be invoked after the provider has been initialized by calling provider.initialize().\r\n * The function is invoked SYNCHRONOUSLY, so it should not execute any longrunning tasks in order to not block the program.\r\n *\r\n * @param identifier An optional instance identifier\r\n * @returns a function to unregister the callback\r\n */\r\n onInit(callback, identifier) {\r\n var _a;\r\n const normalizedIdentifier = this.normalizeInstanceIdentifier(identifier);\r\n const existingCallbacks = (_a = this.onInitCallbacks.get(normalizedIdentifier)) !== null && _a !== void 0 ? _a : new Set();\r\n existingCallbacks.add(callback);\r\n this.onInitCallbacks.set(normalizedIdentifier, existingCallbacks);\r\n const existingInstance = this.instances.get(normalizedIdentifier);\r\n if (existingInstance) {\r\n callback(existingInstance, normalizedIdentifier);\r\n }\r\n return () => {\r\n existingCallbacks.delete(callback);\r\n };\r\n }\r\n /**\r\n * Invoke onInit callbacks synchronously\r\n * @param instance the service instance`\r\n */\r\n invokeOnInitCallbacks(instance, identifier) {\r\n const callbacks = this.onInitCallbacks.get(identifier);\r\n if (!callbacks) {\r\n return;\r\n }\r\n for (const callback of callbacks) {\r\n try {\r\n callback(instance, identifier);\r\n }\r\n catch (_a) {\r\n // ignore errors in the onInit callback\r\n }\r\n }\r\n }\r\n getOrInitializeService({ instanceIdentifier, options = {} }) {\r\n let instance = this.instances.get(instanceIdentifier);\r\n if (!instance && this.component) {\r\n instance = this.component.instanceFactory(this.container, {\r\n instanceIdentifier: normalizeIdentifierForFactory(instanceIdentifier),\r\n options\r\n });\r\n this.instances.set(instanceIdentifier, instance);\r\n this.instancesOptions.set(instanceIdentifier, options);\r\n /**\r\n * Invoke onInit listeners.\r\n * Note this.component.onInstanceCreated is different, which is used by the component creator,\r\n * while onInit listeners are registered by consumers of the provider.\r\n */\r\n this.invokeOnInitCallbacks(instance, instanceIdentifier);\r\n /**\r\n * Order is important\r\n * onInstanceCreated() should be called after this.instances.set(instanceIdentifier, instance); which\r\n * makes `isInitialized()` return true.\r\n */\r\n if (this.component.onInstanceCreated) {\r\n try {\r\n this.component.onInstanceCreated(this.container, instanceIdentifier, instance);\r\n }\r\n catch (_a) {\r\n // ignore errors in the onInstanceCreatedCallback\r\n }\r\n }\r\n }\r\n return instance || null;\r\n }\r\n normalizeInstanceIdentifier(identifier = DEFAULT_ENTRY_NAME) {\r\n if (this.component) {\r\n return this.component.multipleInstances ? identifier : DEFAULT_ENTRY_NAME;\r\n }\r\n else {\r\n return identifier; // assume multiple instances are supported before the component is provided.\r\n }\r\n }\r\n shouldAutoInitialize() {\r\n return (!!this.component &&\r\n this.component.instantiationMode !== \"EXPLICIT\" /* InstantiationMode.EXPLICIT */);\r\n }\r\n}\r\n// undefined should be passed to the service factory for the default instance\r\nfunction normalizeIdentifierForFactory(identifier) {\r\n return identifier === DEFAULT_ENTRY_NAME ? undefined : identifier;\r\n}\r\nfunction isComponentEager(component) {\r\n return component.instantiationMode === \"EAGER\" /* InstantiationMode.EAGER */;\r\n}\n\n/**\r\n * @license\r\n * Copyright 2019 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\n/**\r\n * ComponentContainer that provides Providers for service name T, e.g. `auth`, `auth-internal`\r\n */\r\nclass ComponentContainer {\r\n constructor(name) {\r\n this.name = name;\r\n this.providers = new Map();\r\n }\r\n /**\r\n *\r\n * @param component Component being added\r\n * @param overwrite When a component with the same name has already been registered,\r\n * if overwrite is true: overwrite the existing component with the new component and create a new\r\n * provider with the new component. It can be useful in tests where you want to use different mocks\r\n * for different tests.\r\n * if overwrite is false: throw an exception\r\n */\r\n addComponent(component) {\r\n const provider = this.getProvider(component.name);\r\n if (provider.isComponentSet()) {\r\n throw new Error(`Component ${component.name} has already been registered with ${this.name}`);\r\n }\r\n provider.setComponent(component);\r\n }\r\n addOrOverwriteComponent(component) {\r\n const provider = this.getProvider(component.name);\r\n if (provider.isComponentSet()) {\r\n // delete the existing provider from the container, so we can register the new component\r\n this.providers.delete(component.name);\r\n }\r\n this.addComponent(component);\r\n }\r\n /**\r\n * getProvider provides a type safe interface where it can only be called with a field name\r\n * present in NameServiceMapping interface.\r\n *\r\n * Firebase SDKs providing services should extend NameServiceMapping interface to register\r\n * themselves.\r\n */\r\n getProvider(name) {\r\n if (this.providers.has(name)) {\r\n return this.providers.get(name);\r\n }\r\n // create a Provider for a service that hasn't registered with Firebase\r\n const provider = new Provider(name, this);\r\n this.providers.set(name, provider);\r\n return provider;\r\n }\r\n getProviders() {\r\n return Array.from(this.providers.values());\r\n }\r\n}\n\nexport { Component, ComponentContainer, Provider };\n//# sourceMappingURL=index.esm2017.js.map\n","/**\n * @license\n * Copyright 2019 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport {\n InstantiationMode,\n InstanceFactory,\n ComponentType,\n Dictionary,\n Name,\n onInstanceCreatedCallback\n} from './types';\n\n/**\n * Component for service name T, e.g. `auth`, `auth-internal`\n */\nexport class Component {\n multipleInstances = false;\n /**\n * Properties to be added to the service namespace\n */\n serviceProps: Dictionary = {};\n\n instantiationMode = InstantiationMode.LAZY;\n\n onInstanceCreated: onInstanceCreatedCallback | null = null;\n\n /**\n *\n * @param name The public service name, e.g. app, auth, firestore, database\n * @param instanceFactory Service factory responsible for creating the public interface\n * @param type whether the service provided by the component is public or private\n */\n constructor(\n readonly name: T,\n readonly instanceFactory: InstanceFactory,\n readonly type: ComponentType\n ) {}\n\n setInstantiationMode(mode: InstantiationMode): this {\n this.instantiationMode = mode;\n return this;\n }\n\n setMultipleInstances(multipleInstances: boolean): this {\n this.multipleInstances = multipleInstances;\n return this;\n }\n\n setServiceProps(props: Dictionary): this {\n this.serviceProps = props;\n return this;\n }\n\n setInstanceCreatedCallback(callback: onInstanceCreatedCallback): this {\n this.onInstanceCreated = callback;\n return this;\n }\n}\n","/**\n * @license\n * Copyright 2019 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport const DEFAULT_ENTRY_NAME = '[DEFAULT]';\n","/**\n * @license\n * Copyright 2019 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { Deferred } from '@firebase/util';\nimport { ComponentContainer } from './component_container';\nimport { DEFAULT_ENTRY_NAME } from './constants';\nimport {\n InitializeOptions,\n InstantiationMode,\n Name,\n NameServiceMapping,\n OnInitCallBack\n} from './types';\nimport { Component } from './component';\n\n/**\n * Provider for instance for service name T, e.g. 'auth', 'auth-internal'\n * NameServiceMapping[T] is an alias for the type of the instance\n */\nexport class Provider {\n private component: Component | null = null;\n private readonly instances: Map = new Map();\n private readonly instancesDeferred: Map<\n string,\n Deferred\n > = new Map();\n private readonly instancesOptions: Map> =\n new Map();\n private onInitCallbacks: Map>> = new Map();\n\n constructor(\n private readonly name: T,\n private readonly container: ComponentContainer\n ) {}\n\n /**\n * @param identifier A provider can provide mulitple instances of a service\n * if this.component.multipleInstances is true.\n */\n get(identifier?: string): Promise {\n // if multipleInstances is not supported, use the default name\n const normalizedIdentifier = this.normalizeInstanceIdentifier(identifier);\n\n if (!this.instancesDeferred.has(normalizedIdentifier)) {\n const deferred = new Deferred();\n this.instancesDeferred.set(normalizedIdentifier, deferred);\n\n if (\n this.isInitialized(normalizedIdentifier) ||\n this.shouldAutoInitialize()\n ) {\n // initialize the service if it can be auto-initialized\n try {\n const instance = this.getOrInitializeService({\n instanceIdentifier: normalizedIdentifier\n });\n if (instance) {\n deferred.resolve(instance);\n }\n } catch (e) {\n // when the instance factory throws an exception during get(), it should not cause\n // a fatal error. We just return the unresolved promise in this case.\n }\n }\n }\n\n return this.instancesDeferred.get(normalizedIdentifier)!.promise;\n }\n\n /**\n *\n * @param options.identifier A provider can provide mulitple instances of a service\n * if this.component.multipleInstances is true.\n * @param options.optional If optional is false or not provided, the method throws an error when\n * the service is not immediately available.\n * If optional is true, the method returns null if the service is not immediately available.\n */\n getImmediate(options: {\n identifier?: string;\n optional: true;\n }): NameServiceMapping[T] | null;\n getImmediate(options?: {\n identifier?: string;\n optional?: false;\n }): NameServiceMapping[T];\n getImmediate(options?: {\n identifier?: string;\n optional?: boolean;\n }): NameServiceMapping[T] | null {\n // if multipleInstances is not supported, use the default name\n const normalizedIdentifier = this.normalizeInstanceIdentifier(\n options?.identifier\n );\n const optional = options?.optional ?? false;\n\n if (\n this.isInitialized(normalizedIdentifier) ||\n this.shouldAutoInitialize()\n ) {\n try {\n return this.getOrInitializeService({\n instanceIdentifier: normalizedIdentifier\n });\n } catch (e) {\n if (optional) {\n return null;\n } else {\n throw e;\n }\n }\n } else {\n // In case a component is not initialized and should/can not be auto-initialized at the moment, return null if the optional flag is set, or throw\n if (optional) {\n return null;\n } else {\n throw Error(`Service ${this.name} is not available`);\n }\n }\n }\n\n getComponent(): Component | null {\n return this.component;\n }\n\n setComponent(component: Component): void {\n if (component.name !== this.name) {\n throw Error(\n `Mismatching Component ${component.name} for Provider ${this.name}.`\n );\n }\n\n if (this.component) {\n throw Error(`Component for ${this.name} has already been provided`);\n }\n\n this.component = component;\n\n // return early without attempting to initialize the component if the component requires explicit initialization (calling `Provider.initialize()`)\n if (!this.shouldAutoInitialize()) {\n return;\n }\n\n // if the service is eager, initialize the default instance\n if (isComponentEager(component)) {\n try {\n this.getOrInitializeService({ instanceIdentifier: DEFAULT_ENTRY_NAME });\n } catch (e) {\n // when the instance factory for an eager Component throws an exception during the eager\n // initialization, it should not cause a fatal error.\n // TODO: Investigate if we need to make it configurable, because some component may want to cause\n // a fatal error in this case?\n }\n }\n\n // Create service instances for the pending promises and resolve them\n // NOTE: if this.multipleInstances is false, only the default instance will be created\n // and all promises with resolve with it regardless of the identifier.\n for (const [\n instanceIdentifier,\n instanceDeferred\n ] of this.instancesDeferred.entries()) {\n const normalizedIdentifier =\n this.normalizeInstanceIdentifier(instanceIdentifier);\n\n try {\n // `getOrInitializeService()` should always return a valid instance since a component is guaranteed. use ! to make typescript happy.\n const instance = this.getOrInitializeService({\n instanceIdentifier: normalizedIdentifier\n })!;\n instanceDeferred.resolve(instance);\n } catch (e) {\n // when the instance factory throws an exception, it should not cause\n // a fatal error. We just leave the promise unresolved.\n }\n }\n }\n\n clearInstance(identifier: string = DEFAULT_ENTRY_NAME): void {\n this.instancesDeferred.delete(identifier);\n this.instancesOptions.delete(identifier);\n this.instances.delete(identifier);\n }\n\n // app.delete() will call this method on every provider to delete the services\n // TODO: should we mark the provider as deleted?\n async delete(): Promise {\n const services = Array.from(this.instances.values());\n\n await Promise.all([\n ...services\n .filter(service => 'INTERNAL' in service) // legacy services\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n .map(service => (service as any).INTERNAL!.delete()),\n ...services\n .filter(service => '_delete' in service) // modularized services\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n .map(service => (service as any)._delete())\n ]);\n }\n\n isComponentSet(): boolean {\n return this.component != null;\n }\n\n isInitialized(identifier: string = DEFAULT_ENTRY_NAME): boolean {\n return this.instances.has(identifier);\n }\n\n getOptions(identifier: string = DEFAULT_ENTRY_NAME): Record {\n return this.instancesOptions.get(identifier) || {};\n }\n\n initialize(opts: InitializeOptions = {}): NameServiceMapping[T] {\n const { options = {} } = opts;\n const normalizedIdentifier = this.normalizeInstanceIdentifier(\n opts.instanceIdentifier\n );\n if (this.isInitialized(normalizedIdentifier)) {\n throw Error(\n `${this.name}(${normalizedIdentifier}) has already been initialized`\n );\n }\n\n if (!this.isComponentSet()) {\n throw Error(`Component ${this.name} has not been registered yet`);\n }\n\n const instance = this.getOrInitializeService({\n instanceIdentifier: normalizedIdentifier,\n options\n })!;\n\n // resolve any pending promise waiting for the service instance\n for (const [\n instanceIdentifier,\n instanceDeferred\n ] of this.instancesDeferred.entries()) {\n const normalizedDeferredIdentifier =\n this.normalizeInstanceIdentifier(instanceIdentifier);\n if (normalizedIdentifier === normalizedDeferredIdentifier) {\n instanceDeferred.resolve(instance);\n }\n }\n\n return instance;\n }\n\n /**\n *\n * @param callback - a function that will be invoked after the provider has been initialized by calling provider.initialize().\n * The function is invoked SYNCHRONOUSLY, so it should not execute any longrunning tasks in order to not block the program.\n *\n * @param identifier An optional instance identifier\n * @returns a function to unregister the callback\n */\n onInit(callback: OnInitCallBack, identifier?: string): () => void {\n const normalizedIdentifier = this.normalizeInstanceIdentifier(identifier);\n const existingCallbacks =\n this.onInitCallbacks.get(normalizedIdentifier) ??\n new Set>();\n existingCallbacks.add(callback);\n this.onInitCallbacks.set(normalizedIdentifier, existingCallbacks);\n\n const existingInstance = this.instances.get(normalizedIdentifier);\n if (existingInstance) {\n callback(existingInstance, normalizedIdentifier);\n }\n\n return () => {\n existingCallbacks.delete(callback);\n };\n }\n\n /**\n * Invoke onInit callbacks synchronously\n * @param instance the service instance`\n */\n private invokeOnInitCallbacks(\n instance: NameServiceMapping[T],\n identifier: string\n ): void {\n const callbacks = this.onInitCallbacks.get(identifier);\n if (!callbacks) {\n return;\n }\n for (const callback of callbacks) {\n try {\n callback(instance, identifier);\n } catch {\n // ignore errors in the onInit callback\n }\n }\n }\n\n private getOrInitializeService({\n instanceIdentifier,\n options = {}\n }: {\n instanceIdentifier: string;\n options?: Record;\n }): NameServiceMapping[T] | null {\n let instance = this.instances.get(instanceIdentifier);\n if (!instance && this.component) {\n instance = this.component.instanceFactory(this.container, {\n instanceIdentifier: normalizeIdentifierForFactory(instanceIdentifier),\n options\n });\n this.instances.set(instanceIdentifier, instance);\n this.instancesOptions.set(instanceIdentifier, options);\n\n /**\n * Invoke onInit listeners.\n * Note this.component.onInstanceCreated is different, which is used by the component creator,\n * while onInit listeners are registered by consumers of the provider.\n */\n this.invokeOnInitCallbacks(instance, instanceIdentifier);\n\n /**\n * Order is important\n * onInstanceCreated() should be called after this.instances.set(instanceIdentifier, instance); which\n * makes `isInitialized()` return true.\n */\n if (this.component.onInstanceCreated) {\n try {\n this.component.onInstanceCreated(\n this.container,\n instanceIdentifier,\n instance\n );\n } catch {\n // ignore errors in the onInstanceCreatedCallback\n }\n }\n }\n\n return instance || null;\n }\n\n private normalizeInstanceIdentifier(\n identifier: string = DEFAULT_ENTRY_NAME\n ): string {\n if (this.component) {\n return this.component.multipleInstances ? identifier : DEFAULT_ENTRY_NAME;\n } else {\n return identifier; // assume multiple instances are supported before the component is provided.\n }\n }\n\n private shouldAutoInitialize(): boolean {\n return (\n !!this.component &&\n this.component.instantiationMode !== InstantiationMode.EXPLICIT\n );\n }\n}\n\n// undefined should be passed to the service factory for the default instance\nfunction normalizeIdentifierForFactory(identifier: string): string | undefined {\n return identifier === DEFAULT_ENTRY_NAME ? undefined : identifier;\n}\n\nfunction isComponentEager(component: Component): boolean {\n return component.instantiationMode === InstantiationMode.EAGER;\n}\n","/**\n * @license\n * Copyright 2019 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { Provider } from './provider';\nimport { Component } from './component';\nimport { Name } from './types';\n\n/**\n * ComponentContainer that provides Providers for service name T, e.g. `auth`, `auth-internal`\n */\nexport class ComponentContainer {\n private readonly providers = new Map>();\n\n constructor(private readonly name: string) {}\n\n /**\n *\n * @param component Component being added\n * @param overwrite When a component with the same name has already been registered,\n * if overwrite is true: overwrite the existing component with the new component and create a new\n * provider with the new component. It can be useful in tests where you want to use different mocks\n * for different tests.\n * if overwrite is false: throw an exception\n */\n addComponent(component: Component): void {\n const provider = this.getProvider(component.name);\n if (provider.isComponentSet()) {\n throw new Error(\n `Component ${component.name} has already been registered with ${this.name}`\n );\n }\n\n provider.setComponent(component);\n }\n\n addOrOverwriteComponent(component: Component): void {\n const provider = this.getProvider(component.name);\n if (provider.isComponentSet()) {\n // delete the existing provider from the container, so we can register the new component\n this.providers.delete(component.name);\n }\n\n this.addComponent(component);\n }\n\n /**\n * getProvider provides a type safe interface where it can only be called with a field name\n * present in NameServiceMapping interface.\n *\n * Firebase SDKs providing services should extend NameServiceMapping interface to register\n * themselves.\n */\n getProvider(name: T): Provider {\n if (this.providers.has(name)) {\n return this.providers.get(name) as unknown as Provider;\n }\n\n // create a Provider for a service that hasn't registered with Firebase\n const provider = new Provider(name, this);\n this.providers.set(name, provider as unknown as Provider);\n\n return provider as Provider;\n }\n\n getProviders(): Array> {\n return Array.from(this.providers.values());\n }\n}\n","/**\r\n * @license\r\n * Copyright 2017 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\n/**\r\n * @fileoverview Firebase constants. Some of these (@defines) can be overridden at compile-time.\r\n */\r\nconst CONSTANTS = {\r\n /**\r\n * @define {boolean} Whether this is the client Node.js SDK.\r\n */\r\n NODE_CLIENT: false,\r\n /**\r\n * @define {boolean} Whether this is the Admin Node.js SDK.\r\n */\r\n NODE_ADMIN: false,\r\n /**\r\n * Firebase SDK Version\r\n */\r\n SDK_VERSION: '${JSCORE_VERSION}'\r\n};\n\n/**\r\n * @license\r\n * Copyright 2017 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\n/**\r\n * Throws an error if the provided assertion is falsy\r\n */\r\nconst assert = function (assertion, message) {\r\n if (!assertion) {\r\n throw assertionError(message);\r\n }\r\n};\r\n/**\r\n * Returns an Error object suitable for throwing.\r\n */\r\nconst assertionError = function (message) {\r\n return new Error('Firebase Database (' +\r\n CONSTANTS.SDK_VERSION +\r\n ') INTERNAL ASSERT FAILED: ' +\r\n message);\r\n};\n\n/**\r\n * @license\r\n * Copyright 2017 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\nconst stringToByteArray$1 = function (str) {\r\n // TODO(user): Use native implementations if/when available\r\n const out = [];\r\n let p = 0;\r\n for (let i = 0; i < str.length; i++) {\r\n let c = str.charCodeAt(i);\r\n if (c < 128) {\r\n out[p++] = c;\r\n }\r\n else if (c < 2048) {\r\n out[p++] = (c >> 6) | 192;\r\n out[p++] = (c & 63) | 128;\r\n }\r\n else if ((c & 0xfc00) === 0xd800 &&\r\n i + 1 < str.length &&\r\n (str.charCodeAt(i + 1) & 0xfc00) === 0xdc00) {\r\n // Surrogate Pair\r\n c = 0x10000 + ((c & 0x03ff) << 10) + (str.charCodeAt(++i) & 0x03ff);\r\n out[p++] = (c >> 18) | 240;\r\n out[p++] = ((c >> 12) & 63) | 128;\r\n out[p++] = ((c >> 6) & 63) | 128;\r\n out[p++] = (c & 63) | 128;\r\n }\r\n else {\r\n out[p++] = (c >> 12) | 224;\r\n out[p++] = ((c >> 6) & 63) | 128;\r\n out[p++] = (c & 63) | 128;\r\n }\r\n }\r\n return out;\r\n};\r\n/**\r\n * Turns an array of numbers into the string given by the concatenation of the\r\n * characters to which the numbers correspond.\r\n * @param bytes Array of numbers representing characters.\r\n * @return Stringification of the array.\r\n */\r\nconst byteArrayToString = function (bytes) {\r\n // TODO(user): Use native implementations if/when available\r\n const out = [];\r\n let pos = 0, c = 0;\r\n while (pos < bytes.length) {\r\n const c1 = bytes[pos++];\r\n if (c1 < 128) {\r\n out[c++] = String.fromCharCode(c1);\r\n }\r\n else if (c1 > 191 && c1 < 224) {\r\n const c2 = bytes[pos++];\r\n out[c++] = String.fromCharCode(((c1 & 31) << 6) | (c2 & 63));\r\n }\r\n else if (c1 > 239 && c1 < 365) {\r\n // Surrogate Pair\r\n const c2 = bytes[pos++];\r\n const c3 = bytes[pos++];\r\n const c4 = bytes[pos++];\r\n const u = (((c1 & 7) << 18) | ((c2 & 63) << 12) | ((c3 & 63) << 6) | (c4 & 63)) -\r\n 0x10000;\r\n out[c++] = String.fromCharCode(0xd800 + (u >> 10));\r\n out[c++] = String.fromCharCode(0xdc00 + (u & 1023));\r\n }\r\n else {\r\n const c2 = bytes[pos++];\r\n const c3 = bytes[pos++];\r\n out[c++] = String.fromCharCode(((c1 & 15) << 12) | ((c2 & 63) << 6) | (c3 & 63));\r\n }\r\n }\r\n return out.join('');\r\n};\r\n// We define it as an object literal instead of a class because a class compiled down to es5 can't\r\n// be treeshaked. https://github.com/rollup/rollup/issues/1691\r\n// Static lookup maps, lazily populated by init_()\r\nconst base64 = {\r\n /**\r\n * Maps bytes to characters.\r\n */\r\n byteToCharMap_: null,\r\n /**\r\n * Maps characters to bytes.\r\n */\r\n charToByteMap_: null,\r\n /**\r\n * Maps bytes to websafe characters.\r\n * @private\r\n */\r\n byteToCharMapWebSafe_: null,\r\n /**\r\n * Maps websafe characters to bytes.\r\n * @private\r\n */\r\n charToByteMapWebSafe_: null,\r\n /**\r\n * Our default alphabet, shared between\r\n * ENCODED_VALS and ENCODED_VALS_WEBSAFE\r\n */\r\n ENCODED_VALS_BASE: 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' + 'abcdefghijklmnopqrstuvwxyz' + '0123456789',\r\n /**\r\n * Our default alphabet. Value 64 (=) is special; it means \"nothing.\"\r\n */\r\n get ENCODED_VALS() {\r\n return this.ENCODED_VALS_BASE + '+/=';\r\n },\r\n /**\r\n * Our websafe alphabet.\r\n */\r\n get ENCODED_VALS_WEBSAFE() {\r\n return this.ENCODED_VALS_BASE + '-_.';\r\n },\r\n /**\r\n * Whether this browser supports the atob and btoa functions. This extension\r\n * started at Mozilla but is now implemented by many browsers. We use the\r\n * ASSUME_* variables to avoid pulling in the full useragent detection library\r\n * but still allowing the standard per-browser compilations.\r\n *\r\n */\r\n HAS_NATIVE_SUPPORT: typeof atob === 'function',\r\n /**\r\n * Base64-encode an array of bytes.\r\n *\r\n * @param input An array of bytes (numbers with\r\n * value in [0, 255]) to encode.\r\n * @param webSafe Boolean indicating we should use the\r\n * alternative alphabet.\r\n * @return The base64 encoded string.\r\n */\r\n encodeByteArray(input, webSafe) {\r\n if (!Array.isArray(input)) {\r\n throw Error('encodeByteArray takes an array as a parameter');\r\n }\r\n this.init_();\r\n const byteToCharMap = webSafe\r\n ? this.byteToCharMapWebSafe_\r\n : this.byteToCharMap_;\r\n const output = [];\r\n for (let i = 0; i < input.length; i += 3) {\r\n const byte1 = input[i];\r\n const haveByte2 = i + 1 < input.length;\r\n const byte2 = haveByte2 ? input[i + 1] : 0;\r\n const haveByte3 = i + 2 < input.length;\r\n const byte3 = haveByte3 ? input[i + 2] : 0;\r\n const outByte1 = byte1 >> 2;\r\n const outByte2 = ((byte1 & 0x03) << 4) | (byte2 >> 4);\r\n let outByte3 = ((byte2 & 0x0f) << 2) | (byte3 >> 6);\r\n let outByte4 = byte3 & 0x3f;\r\n if (!haveByte3) {\r\n outByte4 = 64;\r\n if (!haveByte2) {\r\n outByte3 = 64;\r\n }\r\n }\r\n output.push(byteToCharMap[outByte1], byteToCharMap[outByte2], byteToCharMap[outByte3], byteToCharMap[outByte4]);\r\n }\r\n return output.join('');\r\n },\r\n /**\r\n * Base64-encode a string.\r\n *\r\n * @param input A string to encode.\r\n * @param webSafe If true, we should use the\r\n * alternative alphabet.\r\n * @return The base64 encoded string.\r\n */\r\n encodeString(input, webSafe) {\r\n // Shortcut for Mozilla browsers that implement\r\n // a native base64 encoder in the form of \"btoa/atob\"\r\n if (this.HAS_NATIVE_SUPPORT && !webSafe) {\r\n return btoa(input);\r\n }\r\n return this.encodeByteArray(stringToByteArray$1(input), webSafe);\r\n },\r\n /**\r\n * Base64-decode a string.\r\n *\r\n * @param input to decode.\r\n * @param webSafe True if we should use the\r\n * alternative alphabet.\r\n * @return string representing the decoded value.\r\n */\r\n decodeString(input, webSafe) {\r\n // Shortcut for Mozilla browsers that implement\r\n // a native base64 encoder in the form of \"btoa/atob\"\r\n if (this.HAS_NATIVE_SUPPORT && !webSafe) {\r\n return atob(input);\r\n }\r\n return byteArrayToString(this.decodeStringToByteArray(input, webSafe));\r\n },\r\n /**\r\n * Base64-decode a string.\r\n *\r\n * In base-64 decoding, groups of four characters are converted into three\r\n * bytes. If the encoder did not apply padding, the input length may not\r\n * be a multiple of 4.\r\n *\r\n * In this case, the last group will have fewer than 4 characters, and\r\n * padding will be inferred. If the group has one or two characters, it decodes\r\n * to one byte. If the group has three characters, it decodes to two bytes.\r\n *\r\n * @param input Input to decode.\r\n * @param webSafe True if we should use the web-safe alphabet.\r\n * @return bytes representing the decoded value.\r\n */\r\n decodeStringToByteArray(input, webSafe) {\r\n this.init_();\r\n const charToByteMap = webSafe\r\n ? this.charToByteMapWebSafe_\r\n : this.charToByteMap_;\r\n const output = [];\r\n for (let i = 0; i < input.length;) {\r\n const byte1 = charToByteMap[input.charAt(i++)];\r\n const haveByte2 = i < input.length;\r\n const byte2 = haveByte2 ? charToByteMap[input.charAt(i)] : 0;\r\n ++i;\r\n const haveByte3 = i < input.length;\r\n const byte3 = haveByte3 ? charToByteMap[input.charAt(i)] : 64;\r\n ++i;\r\n const haveByte4 = i < input.length;\r\n const byte4 = haveByte4 ? charToByteMap[input.charAt(i)] : 64;\r\n ++i;\r\n if (byte1 == null || byte2 == null || byte3 == null || byte4 == null) {\r\n throw new DecodeBase64StringError();\r\n }\r\n const outByte1 = (byte1 << 2) | (byte2 >> 4);\r\n output.push(outByte1);\r\n if (byte3 !== 64) {\r\n const outByte2 = ((byte2 << 4) & 0xf0) | (byte3 >> 2);\r\n output.push(outByte2);\r\n if (byte4 !== 64) {\r\n const outByte3 = ((byte3 << 6) & 0xc0) | byte4;\r\n output.push(outByte3);\r\n }\r\n }\r\n }\r\n return output;\r\n },\r\n /**\r\n * Lazy static initialization function. Called before\r\n * accessing any of the static map variables.\r\n * @private\r\n */\r\n init_() {\r\n if (!this.byteToCharMap_) {\r\n this.byteToCharMap_ = {};\r\n this.charToByteMap_ = {};\r\n this.byteToCharMapWebSafe_ = {};\r\n this.charToByteMapWebSafe_ = {};\r\n // We want quick mappings back and forth, so we precompute two maps.\r\n for (let i = 0; i < this.ENCODED_VALS.length; i++) {\r\n this.byteToCharMap_[i] = this.ENCODED_VALS.charAt(i);\r\n this.charToByteMap_[this.byteToCharMap_[i]] = i;\r\n this.byteToCharMapWebSafe_[i] = this.ENCODED_VALS_WEBSAFE.charAt(i);\r\n this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[i]] = i;\r\n // Be forgiving when decoding and correctly decode both encodings.\r\n if (i >= this.ENCODED_VALS_BASE.length) {\r\n this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(i)] = i;\r\n this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(i)] = i;\r\n }\r\n }\r\n }\r\n }\r\n};\r\n/**\r\n * An error encountered while decoding base64 string.\r\n */\r\nclass DecodeBase64StringError extends Error {\r\n constructor() {\r\n super(...arguments);\r\n this.name = 'DecodeBase64StringError';\r\n }\r\n}\r\n/**\r\n * URL-safe base64 encoding\r\n */\r\nconst base64Encode = function (str) {\r\n const utf8Bytes = stringToByteArray$1(str);\r\n return base64.encodeByteArray(utf8Bytes, true);\r\n};\r\n/**\r\n * URL-safe base64 encoding (without \".\" padding in the end).\r\n * e.g. Used in JSON Web Token (JWT) parts.\r\n */\r\nconst base64urlEncodeWithoutPadding = function (str) {\r\n // Use base64url encoding and remove padding in the end (dot characters).\r\n return base64Encode(str).replace(/\\./g, '');\r\n};\r\n/**\r\n * URL-safe base64 decoding\r\n *\r\n * NOTE: DO NOT use the global atob() function - it does NOT support the\r\n * base64Url variant encoding.\r\n *\r\n * @param str To be decoded\r\n * @return Decoded result, if possible\r\n */\r\nconst base64Decode = function (str) {\r\n try {\r\n return base64.decodeString(str, true);\r\n }\r\n catch (e) {\r\n console.error('base64Decode failed: ', e);\r\n }\r\n return null;\r\n};\n\n/**\r\n * @license\r\n * Copyright 2017 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\n/**\r\n * Do a deep-copy of basic JavaScript Objects or Arrays.\r\n */\r\nfunction deepCopy(value) {\r\n return deepExtend(undefined, value);\r\n}\r\n/**\r\n * Copy properties from source to target (recursively allows extension\r\n * of Objects and Arrays). Scalar values in the target are over-written.\r\n * If target is undefined, an object of the appropriate type will be created\r\n * (and returned).\r\n *\r\n * We recursively copy all child properties of plain Objects in the source- so\r\n * that namespace- like dictionaries are merged.\r\n *\r\n * Note that the target can be a function, in which case the properties in\r\n * the source Object are copied onto it as static properties of the Function.\r\n *\r\n * Note: we don't merge __proto__ to prevent prototype pollution\r\n */\r\nfunction deepExtend(target, source) {\r\n if (!(source instanceof Object)) {\r\n return source;\r\n }\r\n switch (source.constructor) {\r\n case Date:\r\n // Treat Dates like scalars; if the target date object had any child\r\n // properties - they will be lost!\r\n const dateValue = source;\r\n return new Date(dateValue.getTime());\r\n case Object:\r\n if (target === undefined) {\r\n target = {};\r\n }\r\n break;\r\n case Array:\r\n // Always copy the array source and overwrite the target.\r\n target = [];\r\n break;\r\n default:\r\n // Not a plain Object - treat it as a scalar.\r\n return source;\r\n }\r\n for (const prop in source) {\r\n // use isValidKey to guard against prototype pollution. See https://snyk.io/vuln/SNYK-JS-LODASH-450202\r\n if (!source.hasOwnProperty(prop) || !isValidKey(prop)) {\r\n continue;\r\n }\r\n target[prop] = deepExtend(target[prop], source[prop]);\r\n }\r\n return target;\r\n}\r\nfunction isValidKey(key) {\r\n return key !== '__proto__';\r\n}\n\n/**\r\n * @license\r\n * Copyright 2022 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\n/**\r\n * Polyfill for `globalThis` object.\r\n * @returns the `globalThis` object for the given environment.\r\n * @public\r\n */\r\nfunction getGlobal() {\r\n if (typeof self !== 'undefined') {\r\n return self;\r\n }\r\n if (typeof window !== 'undefined') {\r\n return window;\r\n }\r\n if (typeof global !== 'undefined') {\r\n return global;\r\n }\r\n throw new Error('Unable to locate global object.');\r\n}\n\n/**\r\n * @license\r\n * Copyright 2022 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\nconst getDefaultsFromGlobal = () => getGlobal().__FIREBASE_DEFAULTS__;\r\n/**\r\n * Attempt to read defaults from a JSON string provided to\r\n * process(.)env(.)__FIREBASE_DEFAULTS__ or a JSON file whose path is in\r\n * process(.)env(.)__FIREBASE_DEFAULTS_PATH__\r\n * The dots are in parens because certain compilers (Vite?) cannot\r\n * handle seeing that variable in comments.\r\n * See https://github.com/firebase/firebase-js-sdk/issues/6838\r\n */\r\nconst getDefaultsFromEnvVariable = () => {\r\n if (typeof process === 'undefined' || typeof process.env === 'undefined') {\r\n return;\r\n }\r\n const defaultsJsonString = process.env.__FIREBASE_DEFAULTS__;\r\n if (defaultsJsonString) {\r\n return JSON.parse(defaultsJsonString);\r\n }\r\n};\r\nconst getDefaultsFromCookie = () => {\r\n if (typeof document === 'undefined') {\r\n return;\r\n }\r\n let match;\r\n try {\r\n match = document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/);\r\n }\r\n catch (e) {\r\n // Some environments such as Angular Universal SSR have a\r\n // `document` object but error on accessing `document.cookie`.\r\n return;\r\n }\r\n const decoded = match && base64Decode(match[1]);\r\n return decoded && JSON.parse(decoded);\r\n};\r\n/**\r\n * Get the __FIREBASE_DEFAULTS__ object. It checks in order:\r\n * (1) if such an object exists as a property of `globalThis`\r\n * (2) if such an object was provided on a shell environment variable\r\n * (3) if such an object exists in a cookie\r\n * @public\r\n */\r\nconst getDefaults = () => {\r\n try {\r\n return (getDefaultsFromGlobal() ||\r\n getDefaultsFromEnvVariable() ||\r\n getDefaultsFromCookie());\r\n }\r\n catch (e) {\r\n /**\r\n * Catch-all for being unable to get __FIREBASE_DEFAULTS__ due\r\n * to any environment case we have not accounted for. Log to\r\n * info instead of swallowing so we can find these unknown cases\r\n * and add paths for them if needed.\r\n */\r\n console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${e}`);\r\n return;\r\n }\r\n};\r\n/**\r\n * Returns emulator host stored in the __FIREBASE_DEFAULTS__ object\r\n * for the given product.\r\n * @returns a URL host formatted like `127.0.0.1:9999` or `[::1]:4000` if available\r\n * @public\r\n */\r\nconst getDefaultEmulatorHost = (productName) => { var _a, _b; return (_b = (_a = getDefaults()) === null || _a === void 0 ? void 0 : _a.emulatorHosts) === null || _b === void 0 ? void 0 : _b[productName]; };\r\n/**\r\n * Returns emulator hostname and port stored in the __FIREBASE_DEFAULTS__ object\r\n * for the given product.\r\n * @returns a pair of hostname and port like `[\"::1\", 4000]` if available\r\n * @public\r\n */\r\nconst getDefaultEmulatorHostnameAndPort = (productName) => {\r\n const host = getDefaultEmulatorHost(productName);\r\n if (!host) {\r\n return undefined;\r\n }\r\n const separatorIndex = host.lastIndexOf(':'); // Finding the last since IPv6 addr also has colons.\r\n if (separatorIndex <= 0 || separatorIndex + 1 === host.length) {\r\n throw new Error(`Invalid host ${host} with no separate hostname and port!`);\r\n }\r\n // eslint-disable-next-line no-restricted-globals\r\n const port = parseInt(host.substring(separatorIndex + 1), 10);\r\n if (host[0] === '[') {\r\n // Bracket-quoted `[ipv6addr]:port` => return \"ipv6addr\" (without brackets).\r\n return [host.substring(1, separatorIndex - 1), port];\r\n }\r\n else {\r\n return [host.substring(0, separatorIndex), port];\r\n }\r\n};\r\n/**\r\n * Returns Firebase app config stored in the __FIREBASE_DEFAULTS__ object.\r\n * @public\r\n */\r\nconst getDefaultAppConfig = () => { var _a; return (_a = getDefaults()) === null || _a === void 0 ? void 0 : _a.config; };\r\n/**\r\n * Returns an experimental setting on the __FIREBASE_DEFAULTS__ object (properties\r\n * prefixed by \"_\")\r\n * @public\r\n */\r\nconst getExperimentalSetting = (name) => { var _a; return (_a = getDefaults()) === null || _a === void 0 ? void 0 : _a[`_${name}`]; };\n\n/**\r\n * @license\r\n * Copyright 2017 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\nclass Deferred {\r\n constructor() {\r\n this.reject = () => { };\r\n this.resolve = () => { };\r\n this.promise = new Promise((resolve, reject) => {\r\n this.resolve = resolve;\r\n this.reject = reject;\r\n });\r\n }\r\n /**\r\n * Our API internals are not promiseified and cannot because our callback APIs have subtle expectations around\r\n * invoking promises inline, which Promises are forbidden to do. This method accepts an optional node-style callback\r\n * and returns a node-style callback which will resolve or reject the Deferred's promise.\r\n */\r\n wrapCallback(callback) {\r\n return (error, value) => {\r\n if (error) {\r\n this.reject(error);\r\n }\r\n else {\r\n this.resolve(value);\r\n }\r\n if (typeof callback === 'function') {\r\n // Attaching noop handler just in case developer wasn't expecting\r\n // promises\r\n this.promise.catch(() => { });\r\n // Some of our callbacks don't expect a value and our own tests\r\n // assert that the parameter length is 1\r\n if (callback.length === 1) {\r\n callback(error);\r\n }\r\n else {\r\n callback(error, value);\r\n }\r\n }\r\n };\r\n }\r\n}\n\n/**\r\n * @license\r\n * Copyright 2021 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\nfunction createMockUserToken(token, projectId) {\r\n if (token.uid) {\r\n throw new Error('The \"uid\" field is no longer supported by mockUserToken. Please use \"sub\" instead for Firebase Auth User ID.');\r\n }\r\n // Unsecured JWTs use \"none\" as the algorithm.\r\n const header = {\r\n alg: 'none',\r\n type: 'JWT'\r\n };\r\n const project = projectId || 'demo-project';\r\n const iat = token.iat || 0;\r\n const sub = token.sub || token.user_id;\r\n if (!sub) {\r\n throw new Error(\"mockUserToken must contain 'sub' or 'user_id' field!\");\r\n }\r\n const payload = Object.assign({ \r\n // Set all required fields to decent defaults\r\n iss: `https://securetoken.google.com/${project}`, aud: project, iat, exp: iat + 3600, auth_time: iat, sub, user_id: sub, firebase: {\r\n sign_in_provider: 'custom',\r\n identities: {}\r\n } }, token);\r\n // Unsecured JWTs use the empty string as a signature.\r\n const signature = '';\r\n return [\r\n base64urlEncodeWithoutPadding(JSON.stringify(header)),\r\n base64urlEncodeWithoutPadding(JSON.stringify(payload)),\r\n signature\r\n ].join('.');\r\n}\n\n/**\r\n * @license\r\n * Copyright 2017 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\n/**\r\n * Returns navigator.userAgent string or '' if it's not defined.\r\n * @return user agent string\r\n */\r\nfunction getUA() {\r\n if (typeof navigator !== 'undefined' &&\r\n typeof navigator['userAgent'] === 'string') {\r\n return navigator['userAgent'];\r\n }\r\n else {\r\n return '';\r\n }\r\n}\r\n/**\r\n * Detect Cordova / PhoneGap / Ionic frameworks on a mobile device.\r\n *\r\n * Deliberately does not rely on checking `file://` URLs (as this fails PhoneGap\r\n * in the Ripple emulator) nor Cordova `onDeviceReady`, which would normally\r\n * wait for a callback.\r\n */\r\nfunction isMobileCordova() {\r\n return (typeof window !== 'undefined' &&\r\n // @ts-ignore Setting up an broadly applicable index signature for Window\r\n // just to deal with this case would probably be a bad idea.\r\n !!(window['cordova'] || window['phonegap'] || window['PhoneGap']) &&\r\n /ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(getUA()));\r\n}\r\n/**\r\n * Detect Node.js.\r\n *\r\n * @return true if Node.js environment is detected or specified.\r\n */\r\n// Node detection logic from: https://github.com/iliakan/detect-node/\r\nfunction isNode() {\r\n var _a;\r\n const forceEnvironment = (_a = getDefaults()) === null || _a === void 0 ? void 0 : _a.forceEnvironment;\r\n if (forceEnvironment === 'node') {\r\n return true;\r\n }\r\n else if (forceEnvironment === 'browser') {\r\n return false;\r\n }\r\n try {\r\n return (Object.prototype.toString.call(global.process) === '[object process]');\r\n }\r\n catch (e) {\r\n return false;\r\n }\r\n}\r\n/**\r\n * Detect Browser Environment\r\n */\r\nfunction isBrowser() {\r\n return typeof self === 'object' && self.self === self;\r\n}\r\nfunction isBrowserExtension() {\r\n const runtime = typeof chrome === 'object'\r\n ? chrome.runtime\r\n : typeof browser === 'object'\r\n ? browser.runtime\r\n : undefined;\r\n return typeof runtime === 'object' && runtime.id !== undefined;\r\n}\r\n/**\r\n * Detect React Native.\r\n *\r\n * @return true if ReactNative environment is detected.\r\n */\r\nfunction isReactNative() {\r\n return (typeof navigator === 'object' && navigator['product'] === 'ReactNative');\r\n}\r\n/** Detects Electron apps. */\r\nfunction isElectron() {\r\n return getUA().indexOf('Electron/') >= 0;\r\n}\r\n/** Detects Internet Explorer. */\r\nfunction isIE() {\r\n const ua = getUA();\r\n return ua.indexOf('MSIE ') >= 0 || ua.indexOf('Trident/') >= 0;\r\n}\r\n/** Detects Universal Windows Platform apps. */\r\nfunction isUWP() {\r\n return getUA().indexOf('MSAppHost/') >= 0;\r\n}\r\n/**\r\n * Detect whether the current SDK build is the Node version.\r\n *\r\n * @return true if it's the Node SDK build.\r\n */\r\nfunction isNodeSdk() {\r\n return CONSTANTS.NODE_CLIENT === true || CONSTANTS.NODE_ADMIN === true;\r\n}\r\n/** Returns true if we are running in Safari. */\r\nfunction isSafari() {\r\n return (!isNode() &&\r\n navigator.userAgent.includes('Safari') &&\r\n !navigator.userAgent.includes('Chrome'));\r\n}\r\n/**\r\n * This method checks if indexedDB is supported by current browser/service worker context\r\n * @return true if indexedDB is supported by current browser/service worker context\r\n */\r\nfunction isIndexedDBAvailable() {\r\n try {\r\n return typeof indexedDB === 'object';\r\n }\r\n catch (e) {\r\n return false;\r\n }\r\n}\r\n/**\r\n * This method validates browser/sw context for indexedDB by opening a dummy indexedDB database and reject\r\n * if errors occur during the database open operation.\r\n *\r\n * @throws exception if current browser/sw context can't run idb.open (ex: Safari iframe, Firefox\r\n * private browsing)\r\n */\r\nfunction validateIndexedDBOpenable() {\r\n return new Promise((resolve, reject) => {\r\n try {\r\n let preExist = true;\r\n const DB_CHECK_NAME = 'validate-browser-context-for-indexeddb-analytics-module';\r\n const request = self.indexedDB.open(DB_CHECK_NAME);\r\n request.onsuccess = () => {\r\n request.result.close();\r\n // delete database only when it doesn't pre-exist\r\n if (!preExist) {\r\n self.indexedDB.deleteDatabase(DB_CHECK_NAME);\r\n }\r\n resolve(true);\r\n };\r\n request.onupgradeneeded = () => {\r\n preExist = false;\r\n };\r\n request.onerror = () => {\r\n var _a;\r\n reject(((_a = request.error) === null || _a === void 0 ? void 0 : _a.message) || '');\r\n };\r\n }\r\n catch (error) {\r\n reject(error);\r\n }\r\n });\r\n}\r\n/**\r\n *\r\n * This method checks whether cookie is enabled within current browser\r\n * @return true if cookie is enabled within current browser\r\n */\r\nfunction areCookiesEnabled() {\r\n if (typeof navigator === 'undefined' || !navigator.cookieEnabled) {\r\n return false;\r\n }\r\n return true;\r\n}\n\n/**\r\n * @license\r\n * Copyright 2017 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\n/**\r\n * @fileoverview Standardized Firebase Error.\r\n *\r\n * Usage:\r\n *\r\n * // Typescript string literals for type-safe codes\r\n * type Err =\r\n * 'unknown' |\r\n * 'object-not-found'\r\n * ;\r\n *\r\n * // Closure enum for type-safe error codes\r\n * // at-enum {string}\r\n * var Err = {\r\n * UNKNOWN: 'unknown',\r\n * OBJECT_NOT_FOUND: 'object-not-found',\r\n * }\r\n *\r\n * let errors: Map = {\r\n * 'generic-error': \"Unknown error\",\r\n * 'file-not-found': \"Could not find file: {$file}\",\r\n * };\r\n *\r\n * // Type-safe function - must pass a valid error code as param.\r\n * let error = new ErrorFactory('service', 'Service', errors);\r\n *\r\n * ...\r\n * throw error.create(Err.GENERIC);\r\n * ...\r\n * throw error.create(Err.FILE_NOT_FOUND, {'file': fileName});\r\n * ...\r\n * // Service: Could not file file: foo.txt (service/file-not-found).\r\n *\r\n * catch (e) {\r\n * assert(e.message === \"Could not find file: foo.txt.\");\r\n * if ((e as FirebaseError)?.code === 'service/file-not-found') {\r\n * console.log(\"Could not read file: \" + e['file']);\r\n * }\r\n * }\r\n */\r\nconst ERROR_NAME = 'FirebaseError';\r\n// Based on code from:\r\n// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error#Custom_Error_Types\r\nclass FirebaseError extends Error {\r\n constructor(\r\n /** The error code for this error. */\r\n code, message, \r\n /** Custom data for this error. */\r\n customData) {\r\n super(message);\r\n this.code = code;\r\n this.customData = customData;\r\n /** The custom name for all FirebaseErrors. */\r\n this.name = ERROR_NAME;\r\n // Fix For ES5\r\n // https://github.com/Microsoft/TypeScript-wiki/blob/master/Breaking-Changes.md#extending-built-ins-like-error-array-and-map-may-no-longer-work\r\n Object.setPrototypeOf(this, FirebaseError.prototype);\r\n // Maintains proper stack trace for where our error was thrown.\r\n // Only available on V8.\r\n if (Error.captureStackTrace) {\r\n Error.captureStackTrace(this, ErrorFactory.prototype.create);\r\n }\r\n }\r\n}\r\nclass ErrorFactory {\r\n constructor(service, serviceName, errors) {\r\n this.service = service;\r\n this.serviceName = serviceName;\r\n this.errors = errors;\r\n }\r\n create(code, ...data) {\r\n const customData = data[0] || {};\r\n const fullCode = `${this.service}/${code}`;\r\n const template = this.errors[code];\r\n const message = template ? replaceTemplate(template, customData) : 'Error';\r\n // Service Name: Error message (service/code).\r\n const fullMessage = `${this.serviceName}: ${message} (${fullCode}).`;\r\n const error = new FirebaseError(fullCode, fullMessage, customData);\r\n return error;\r\n }\r\n}\r\nfunction replaceTemplate(template, data) {\r\n return template.replace(PATTERN, (_, key) => {\r\n const value = data[key];\r\n return value != null ? String(value) : `<${key}?>`;\r\n });\r\n}\r\nconst PATTERN = /\\{\\$([^}]+)}/g;\n\n/**\r\n * @license\r\n * Copyright 2017 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\n/**\r\n * Evaluates a JSON string into a javascript object.\r\n *\r\n * @param {string} str A string containing JSON.\r\n * @return {*} The javascript object representing the specified JSON.\r\n */\r\nfunction jsonEval(str) {\r\n return JSON.parse(str);\r\n}\r\n/**\r\n * Returns JSON representing a javascript object.\r\n * @param {*} data Javascript object to be stringified.\r\n * @return {string} The JSON contents of the object.\r\n */\r\nfunction stringify(data) {\r\n return JSON.stringify(data);\r\n}\n\n/**\r\n * @license\r\n * Copyright 2017 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\n/**\r\n * Decodes a Firebase auth. token into constituent parts.\r\n *\r\n * Notes:\r\n * - May return with invalid / incomplete claims if there's no native base64 decoding support.\r\n * - Doesn't check if the token is actually valid.\r\n */\r\nconst decode = function (token) {\r\n let header = {}, claims = {}, data = {}, signature = '';\r\n try {\r\n const parts = token.split('.');\r\n header = jsonEval(base64Decode(parts[0]) || '');\r\n claims = jsonEval(base64Decode(parts[1]) || '');\r\n signature = parts[2];\r\n data = claims['d'] || {};\r\n delete claims['d'];\r\n }\r\n catch (e) { }\r\n return {\r\n header,\r\n claims,\r\n data,\r\n signature\r\n };\r\n};\r\n/**\r\n * Decodes a Firebase auth. token and checks the validity of its time-based claims. Will return true if the\r\n * token is within the time window authorized by the 'nbf' (not-before) and 'iat' (issued-at) claims.\r\n *\r\n * Notes:\r\n * - May return a false negative if there's no native base64 decoding support.\r\n * - Doesn't check if the token is actually valid.\r\n */\r\nconst isValidTimestamp = function (token) {\r\n const claims = decode(token).claims;\r\n const now = Math.floor(new Date().getTime() / 1000);\r\n let validSince = 0, validUntil = 0;\r\n if (typeof claims === 'object') {\r\n if (claims.hasOwnProperty('nbf')) {\r\n validSince = claims['nbf'];\r\n }\r\n else if (claims.hasOwnProperty('iat')) {\r\n validSince = claims['iat'];\r\n }\r\n if (claims.hasOwnProperty('exp')) {\r\n validUntil = claims['exp'];\r\n }\r\n else {\r\n // token will expire after 24h by default\r\n validUntil = validSince + 86400;\r\n }\r\n }\r\n return (!!now &&\r\n !!validSince &&\r\n !!validUntil &&\r\n now >= validSince &&\r\n now <= validUntil);\r\n};\r\n/**\r\n * Decodes a Firebase auth. token and returns its issued at time if valid, null otherwise.\r\n *\r\n * Notes:\r\n * - May return null if there's no native base64 decoding support.\r\n * - Doesn't check if the token is actually valid.\r\n */\r\nconst issuedAtTime = function (token) {\r\n const claims = decode(token).claims;\r\n if (typeof claims === 'object' && claims.hasOwnProperty('iat')) {\r\n return claims['iat'];\r\n }\r\n return null;\r\n};\r\n/**\r\n * Decodes a Firebase auth. token and checks the validity of its format. Expects a valid issued-at time.\r\n *\r\n * Notes:\r\n * - May return a false negative if there's no native base64 decoding support.\r\n * - Doesn't check if the token is actually valid.\r\n */\r\nconst isValidFormat = function (token) {\r\n const decoded = decode(token), claims = decoded.claims;\r\n return !!claims && typeof claims === 'object' && claims.hasOwnProperty('iat');\r\n};\r\n/**\r\n * Attempts to peer into an auth token and determine if it's an admin auth token by looking at the claims portion.\r\n *\r\n * Notes:\r\n * - May return a false negative if there's no native base64 decoding support.\r\n * - Doesn't check if the token is actually valid.\r\n */\r\nconst isAdmin = function (token) {\r\n const claims = decode(token).claims;\r\n return typeof claims === 'object' && claims['admin'] === true;\r\n};\n\n/**\r\n * @license\r\n * Copyright 2017 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\nfunction contains(obj, key) {\r\n return Object.prototype.hasOwnProperty.call(obj, key);\r\n}\r\nfunction safeGet(obj, key) {\r\n if (Object.prototype.hasOwnProperty.call(obj, key)) {\r\n return obj[key];\r\n }\r\n else {\r\n return undefined;\r\n }\r\n}\r\nfunction isEmpty(obj) {\r\n for (const key in obj) {\r\n if (Object.prototype.hasOwnProperty.call(obj, key)) {\r\n return false;\r\n }\r\n }\r\n return true;\r\n}\r\nfunction map(obj, fn, contextObj) {\r\n const res = {};\r\n for (const key in obj) {\r\n if (Object.prototype.hasOwnProperty.call(obj, key)) {\r\n res[key] = fn.call(contextObj, obj[key], key, obj);\r\n }\r\n }\r\n return res;\r\n}\r\n/**\r\n * Deep equal two objects. Support Arrays and Objects.\r\n */\r\nfunction deepEqual(a, b) {\r\n if (a === b) {\r\n return true;\r\n }\r\n const aKeys = Object.keys(a);\r\n const bKeys = Object.keys(b);\r\n for (const k of aKeys) {\r\n if (!bKeys.includes(k)) {\r\n return false;\r\n }\r\n const aProp = a[k];\r\n const bProp = b[k];\r\n if (isObject(aProp) && isObject(bProp)) {\r\n if (!deepEqual(aProp, bProp)) {\r\n return false;\r\n }\r\n }\r\n else if (aProp !== bProp) {\r\n return false;\r\n }\r\n }\r\n for (const k of bKeys) {\r\n if (!aKeys.includes(k)) {\r\n return false;\r\n }\r\n }\r\n return true;\r\n}\r\nfunction isObject(thing) {\r\n return thing !== null && typeof thing === 'object';\r\n}\n\n/**\r\n * @license\r\n * Copyright 2022 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\n/**\r\n * Rejects if the given promise doesn't resolve in timeInMS milliseconds.\r\n * @internal\r\n */\r\nfunction promiseWithTimeout(promise, timeInMS = 2000) {\r\n const deferredPromise = new Deferred();\r\n setTimeout(() => deferredPromise.reject('timeout!'), timeInMS);\r\n promise.then(deferredPromise.resolve, deferredPromise.reject);\r\n return deferredPromise.promise;\r\n}\n\n/**\r\n * @license\r\n * Copyright 2017 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\n/**\r\n * Returns a querystring-formatted string (e.g. &arg=val&arg2=val2) from a\r\n * params object (e.g. {arg: 'val', arg2: 'val2'})\r\n * Note: You must prepend it with ? when adding it to a URL.\r\n */\r\nfunction querystring(querystringParams) {\r\n const params = [];\r\n for (const [key, value] of Object.entries(querystringParams)) {\r\n if (Array.isArray(value)) {\r\n value.forEach(arrayVal => {\r\n params.push(encodeURIComponent(key) + '=' + encodeURIComponent(arrayVal));\r\n });\r\n }\r\n else {\r\n params.push(encodeURIComponent(key) + '=' + encodeURIComponent(value));\r\n }\r\n }\r\n return params.length ? '&' + params.join('&') : '';\r\n}\r\n/**\r\n * Decodes a querystring (e.g. ?arg=val&arg2=val2) into a params object\r\n * (e.g. {arg: 'val', arg2: 'val2'})\r\n */\r\nfunction querystringDecode(querystring) {\r\n const obj = {};\r\n const tokens = querystring.replace(/^\\?/, '').split('&');\r\n tokens.forEach(token => {\r\n if (token) {\r\n const [key, value] = token.split('=');\r\n obj[decodeURIComponent(key)] = decodeURIComponent(value);\r\n }\r\n });\r\n return obj;\r\n}\r\n/**\r\n * Extract the query string part of a URL, including the leading question mark (if present).\r\n */\r\nfunction extractQuerystring(url) {\r\n const queryStart = url.indexOf('?');\r\n if (!queryStart) {\r\n return '';\r\n }\r\n const fragmentStart = url.indexOf('#', queryStart);\r\n return url.substring(queryStart, fragmentStart > 0 ? fragmentStart : undefined);\r\n}\n\n/**\r\n * @license\r\n * Copyright 2017 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\n/**\r\n * @fileoverview SHA-1 cryptographic hash.\r\n * Variable names follow the notation in FIPS PUB 180-3:\r\n * http://csrc.nist.gov/publications/fips/fips180-3/fips180-3_final.pdf.\r\n *\r\n * Usage:\r\n * var sha1 = new sha1();\r\n * sha1.update(bytes);\r\n * var hash = sha1.digest();\r\n *\r\n * Performance:\r\n * Chrome 23: ~400 Mbit/s\r\n * Firefox 16: ~250 Mbit/s\r\n *\r\n */\r\n/**\r\n * SHA-1 cryptographic hash constructor.\r\n *\r\n * The properties declared here are discussed in the above algorithm document.\r\n * @constructor\r\n * @final\r\n * @struct\r\n */\r\nclass Sha1 {\r\n constructor() {\r\n /**\r\n * Holds the previous values of accumulated variables a-e in the compress_\r\n * function.\r\n * @private\r\n */\r\n this.chain_ = [];\r\n /**\r\n * A buffer holding the partially computed hash result.\r\n * @private\r\n */\r\n this.buf_ = [];\r\n /**\r\n * An array of 80 bytes, each a part of the message to be hashed. Referred to\r\n * as the message schedule in the docs.\r\n * @private\r\n */\r\n this.W_ = [];\r\n /**\r\n * Contains data needed to pad messages less than 64 bytes.\r\n * @private\r\n */\r\n this.pad_ = [];\r\n /**\r\n * @private {number}\r\n */\r\n this.inbuf_ = 0;\r\n /**\r\n * @private {number}\r\n */\r\n this.total_ = 0;\r\n this.blockSize = 512 / 8;\r\n this.pad_[0] = 128;\r\n for (let i = 1; i < this.blockSize; ++i) {\r\n this.pad_[i] = 0;\r\n }\r\n this.reset();\r\n }\r\n reset() {\r\n this.chain_[0] = 0x67452301;\r\n this.chain_[1] = 0xefcdab89;\r\n this.chain_[2] = 0x98badcfe;\r\n this.chain_[3] = 0x10325476;\r\n this.chain_[4] = 0xc3d2e1f0;\r\n this.inbuf_ = 0;\r\n this.total_ = 0;\r\n }\r\n /**\r\n * Internal compress helper function.\r\n * @param buf Block to compress.\r\n * @param offset Offset of the block in the buffer.\r\n * @private\r\n */\r\n compress_(buf, offset) {\r\n if (!offset) {\r\n offset = 0;\r\n }\r\n const W = this.W_;\r\n // get 16 big endian words\r\n if (typeof buf === 'string') {\r\n for (let i = 0; i < 16; i++) {\r\n // TODO(user): [bug 8140122] Recent versions of Safari for Mac OS and iOS\r\n // have a bug that turns the post-increment ++ operator into pre-increment\r\n // during JIT compilation. We have code that depends heavily on SHA-1 for\r\n // correctness and which is affected by this bug, so I've removed all uses\r\n // of post-increment ++ in which the result value is used. We can revert\r\n // this change once the Safari bug\r\n // (https://bugs.webkit.org/show_bug.cgi?id=109036) has been fixed and\r\n // most clients have been updated.\r\n W[i] =\r\n (buf.charCodeAt(offset) << 24) |\r\n (buf.charCodeAt(offset + 1) << 16) |\r\n (buf.charCodeAt(offset + 2) << 8) |\r\n buf.charCodeAt(offset + 3);\r\n offset += 4;\r\n }\r\n }\r\n else {\r\n for (let i = 0; i < 16; i++) {\r\n W[i] =\r\n (buf[offset] << 24) |\r\n (buf[offset + 1] << 16) |\r\n (buf[offset + 2] << 8) |\r\n buf[offset + 3];\r\n offset += 4;\r\n }\r\n }\r\n // expand to 80 words\r\n for (let i = 16; i < 80; i++) {\r\n const t = W[i - 3] ^ W[i - 8] ^ W[i - 14] ^ W[i - 16];\r\n W[i] = ((t << 1) | (t >>> 31)) & 0xffffffff;\r\n }\r\n let a = this.chain_[0];\r\n let b = this.chain_[1];\r\n let c = this.chain_[2];\r\n let d = this.chain_[3];\r\n let e = this.chain_[4];\r\n let f, k;\r\n // TODO(user): Try to unroll this loop to speed up the computation.\r\n for (let i = 0; i < 80; i++) {\r\n if (i < 40) {\r\n if (i < 20) {\r\n f = d ^ (b & (c ^ d));\r\n k = 0x5a827999;\r\n }\r\n else {\r\n f = b ^ c ^ d;\r\n k = 0x6ed9eba1;\r\n }\r\n }\r\n else {\r\n if (i < 60) {\r\n f = (b & c) | (d & (b | c));\r\n k = 0x8f1bbcdc;\r\n }\r\n else {\r\n f = b ^ c ^ d;\r\n k = 0xca62c1d6;\r\n }\r\n }\r\n const t = (((a << 5) | (a >>> 27)) + f + e + k + W[i]) & 0xffffffff;\r\n e = d;\r\n d = c;\r\n c = ((b << 30) | (b >>> 2)) & 0xffffffff;\r\n b = a;\r\n a = t;\r\n }\r\n this.chain_[0] = (this.chain_[0] + a) & 0xffffffff;\r\n this.chain_[1] = (this.chain_[1] + b) & 0xffffffff;\r\n this.chain_[2] = (this.chain_[2] + c) & 0xffffffff;\r\n this.chain_[3] = (this.chain_[3] + d) & 0xffffffff;\r\n this.chain_[4] = (this.chain_[4] + e) & 0xffffffff;\r\n }\r\n update(bytes, length) {\r\n // TODO(johnlenz): tighten the function signature and remove this check\r\n if (bytes == null) {\r\n return;\r\n }\r\n if (length === undefined) {\r\n length = bytes.length;\r\n }\r\n const lengthMinusBlock = length - this.blockSize;\r\n let n = 0;\r\n // Using local instead of member variables gives ~5% speedup on Firefox 16.\r\n const buf = this.buf_;\r\n let inbuf = this.inbuf_;\r\n // The outer while loop should execute at most twice.\r\n while (n < length) {\r\n // When we have no data in the block to top up, we can directly process the\r\n // input buffer (assuming it contains sufficient data). This gives ~25%\r\n // speedup on Chrome 23 and ~15% speedup on Firefox 16, but requires that\r\n // the data is provided in large chunks (or in multiples of 64 bytes).\r\n if (inbuf === 0) {\r\n while (n <= lengthMinusBlock) {\r\n this.compress_(bytes, n);\r\n n += this.blockSize;\r\n }\r\n }\r\n if (typeof bytes === 'string') {\r\n while (n < length) {\r\n buf[inbuf] = bytes.charCodeAt(n);\r\n ++inbuf;\r\n ++n;\r\n if (inbuf === this.blockSize) {\r\n this.compress_(buf);\r\n inbuf = 0;\r\n // Jump to the outer loop so we use the full-block optimization.\r\n break;\r\n }\r\n }\r\n }\r\n else {\r\n while (n < length) {\r\n buf[inbuf] = bytes[n];\r\n ++inbuf;\r\n ++n;\r\n if (inbuf === this.blockSize) {\r\n this.compress_(buf);\r\n inbuf = 0;\r\n // Jump to the outer loop so we use the full-block optimization.\r\n break;\r\n }\r\n }\r\n }\r\n }\r\n this.inbuf_ = inbuf;\r\n this.total_ += length;\r\n }\r\n /** @override */\r\n digest() {\r\n const digest = [];\r\n let totalBits = this.total_ * 8;\r\n // Add pad 0x80 0x00*.\r\n if (this.inbuf_ < 56) {\r\n this.update(this.pad_, 56 - this.inbuf_);\r\n }\r\n else {\r\n this.update(this.pad_, this.blockSize - (this.inbuf_ - 56));\r\n }\r\n // Add # bits.\r\n for (let i = this.blockSize - 1; i >= 56; i--) {\r\n this.buf_[i] = totalBits & 255;\r\n totalBits /= 256; // Don't use bit-shifting here!\r\n }\r\n this.compress_(this.buf_);\r\n let n = 0;\r\n for (let i = 0; i < 5; i++) {\r\n for (let j = 24; j >= 0; j -= 8) {\r\n digest[n] = (this.chain_[i] >> j) & 255;\r\n ++n;\r\n }\r\n }\r\n return digest;\r\n }\r\n}\n\n/**\r\n * Helper to make a Subscribe function (just like Promise helps make a\r\n * Thenable).\r\n *\r\n * @param executor Function which can make calls to a single Observer\r\n * as a proxy.\r\n * @param onNoObservers Callback when count of Observers goes to zero.\r\n */\r\nfunction createSubscribe(executor, onNoObservers) {\r\n const proxy = new ObserverProxy(executor, onNoObservers);\r\n return proxy.subscribe.bind(proxy);\r\n}\r\n/**\r\n * Implement fan-out for any number of Observers attached via a subscribe\r\n * function.\r\n */\r\nclass ObserverProxy {\r\n /**\r\n * @param executor Function which can make calls to a single Observer\r\n * as a proxy.\r\n * @param onNoObservers Callback when count of Observers goes to zero.\r\n */\r\n constructor(executor, onNoObservers) {\r\n this.observers = [];\r\n this.unsubscribes = [];\r\n this.observerCount = 0;\r\n // Micro-task scheduling by calling task.then().\r\n this.task = Promise.resolve();\r\n this.finalized = false;\r\n this.onNoObservers = onNoObservers;\r\n // Call the executor asynchronously so subscribers that are called\r\n // synchronously after the creation of the subscribe function\r\n // can still receive the very first value generated in the executor.\r\n this.task\r\n .then(() => {\r\n executor(this);\r\n })\r\n .catch(e => {\r\n this.error(e);\r\n });\r\n }\r\n next(value) {\r\n this.forEachObserver((observer) => {\r\n observer.next(value);\r\n });\r\n }\r\n error(error) {\r\n this.forEachObserver((observer) => {\r\n observer.error(error);\r\n });\r\n this.close(error);\r\n }\r\n complete() {\r\n this.forEachObserver((observer) => {\r\n observer.complete();\r\n });\r\n this.close();\r\n }\r\n /**\r\n * Subscribe function that can be used to add an Observer to the fan-out list.\r\n *\r\n * - We require that no event is sent to a subscriber sychronously to their\r\n * call to subscribe().\r\n */\r\n subscribe(nextOrObserver, error, complete) {\r\n let observer;\r\n if (nextOrObserver === undefined &&\r\n error === undefined &&\r\n complete === undefined) {\r\n throw new Error('Missing Observer.');\r\n }\r\n // Assemble an Observer object when passed as callback functions.\r\n if (implementsAnyMethods(nextOrObserver, [\r\n 'next',\r\n 'error',\r\n 'complete'\r\n ])) {\r\n observer = nextOrObserver;\r\n }\r\n else {\r\n observer = {\r\n next: nextOrObserver,\r\n error,\r\n complete\r\n };\r\n }\r\n if (observer.next === undefined) {\r\n observer.next = noop;\r\n }\r\n if (observer.error === undefined) {\r\n observer.error = noop;\r\n }\r\n if (observer.complete === undefined) {\r\n observer.complete = noop;\r\n }\r\n const unsub = this.unsubscribeOne.bind(this, this.observers.length);\r\n // Attempt to subscribe to a terminated Observable - we\r\n // just respond to the Observer with the final error or complete\r\n // event.\r\n if (this.finalized) {\r\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\r\n this.task.then(() => {\r\n try {\r\n if (this.finalError) {\r\n observer.error(this.finalError);\r\n }\r\n else {\r\n observer.complete();\r\n }\r\n }\r\n catch (e) {\r\n // nothing\r\n }\r\n return;\r\n });\r\n }\r\n this.observers.push(observer);\r\n return unsub;\r\n }\r\n // Unsubscribe is synchronous - we guarantee that no events are sent to\r\n // any unsubscribed Observer.\r\n unsubscribeOne(i) {\r\n if (this.observers === undefined || this.observers[i] === undefined) {\r\n return;\r\n }\r\n delete this.observers[i];\r\n this.observerCount -= 1;\r\n if (this.observerCount === 0 && this.onNoObservers !== undefined) {\r\n this.onNoObservers(this);\r\n }\r\n }\r\n forEachObserver(fn) {\r\n if (this.finalized) {\r\n // Already closed by previous event....just eat the additional values.\r\n return;\r\n }\r\n // Since sendOne calls asynchronously - there is no chance that\r\n // this.observers will become undefined.\r\n for (let i = 0; i < this.observers.length; i++) {\r\n this.sendOne(i, fn);\r\n }\r\n }\r\n // Call the Observer via one of it's callback function. We are careful to\r\n // confirm that the observe has not been unsubscribed since this asynchronous\r\n // function had been queued.\r\n sendOne(i, fn) {\r\n // Execute the callback asynchronously\r\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\r\n this.task.then(() => {\r\n if (this.observers !== undefined && this.observers[i] !== undefined) {\r\n try {\r\n fn(this.observers[i]);\r\n }\r\n catch (e) {\r\n // Ignore exceptions raised in Observers or missing methods of an\r\n // Observer.\r\n // Log error to console. b/31404806\r\n if (typeof console !== 'undefined' && console.error) {\r\n console.error(e);\r\n }\r\n }\r\n }\r\n });\r\n }\r\n close(err) {\r\n if (this.finalized) {\r\n return;\r\n }\r\n this.finalized = true;\r\n if (err !== undefined) {\r\n this.finalError = err;\r\n }\r\n // Proxy is no longer needed - garbage collect references\r\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\r\n this.task.then(() => {\r\n this.observers = undefined;\r\n this.onNoObservers = undefined;\r\n });\r\n }\r\n}\r\n/** Turn synchronous function into one called asynchronously. */\r\n// eslint-disable-next-line @typescript-eslint/ban-types\r\nfunction async(fn, onError) {\r\n return (...args) => {\r\n Promise.resolve(true)\r\n .then(() => {\r\n fn(...args);\r\n })\r\n .catch((error) => {\r\n if (onError) {\r\n onError(error);\r\n }\r\n });\r\n };\r\n}\r\n/**\r\n * Return true if the object passed in implements any of the named methods.\r\n */\r\nfunction implementsAnyMethods(obj, methods) {\r\n if (typeof obj !== 'object' || obj === null) {\r\n return false;\r\n }\r\n for (const method of methods) {\r\n if (method in obj && typeof obj[method] === 'function') {\r\n return true;\r\n }\r\n }\r\n return false;\r\n}\r\nfunction noop() {\r\n // do nothing\r\n}\n\n/**\r\n * @license\r\n * Copyright 2017 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\n/**\r\n * Check to make sure the appropriate number of arguments are provided for a public function.\r\n * Throws an error if it fails.\r\n *\r\n * @param fnName The function name\r\n * @param minCount The minimum number of arguments to allow for the function call\r\n * @param maxCount The maximum number of argument to allow for the function call\r\n * @param argCount The actual number of arguments provided.\r\n */\r\nconst validateArgCount = function (fnName, minCount, maxCount, argCount) {\r\n let argError;\r\n if (argCount < minCount) {\r\n argError = 'at least ' + minCount;\r\n }\r\n else if (argCount > maxCount) {\r\n argError = maxCount === 0 ? 'none' : 'no more than ' + maxCount;\r\n }\r\n if (argError) {\r\n const error = fnName +\r\n ' failed: Was called with ' +\r\n argCount +\r\n (argCount === 1 ? ' argument.' : ' arguments.') +\r\n ' Expects ' +\r\n argError +\r\n '.';\r\n throw new Error(error);\r\n }\r\n};\r\n/**\r\n * Generates a string to prefix an error message about failed argument validation\r\n *\r\n * @param fnName The function name\r\n * @param argName The name of the argument\r\n * @return The prefix to add to the error thrown for validation.\r\n */\r\nfunction errorPrefix(fnName, argName) {\r\n return `${fnName} failed: ${argName} argument `;\r\n}\r\n/**\r\n * @param fnName\r\n * @param argumentNumber\r\n * @param namespace\r\n * @param optional\r\n */\r\nfunction validateNamespace(fnName, namespace, optional) {\r\n if (optional && !namespace) {\r\n return;\r\n }\r\n if (typeof namespace !== 'string') {\r\n //TODO: I should do more validation here. We only allow certain chars in namespaces.\r\n throw new Error(errorPrefix(fnName, 'namespace') + 'must be a valid firebase namespace.');\r\n }\r\n}\r\nfunction validateCallback(fnName, argumentName, \r\n// eslint-disable-next-line @typescript-eslint/ban-types\r\ncallback, optional) {\r\n if (optional && !callback) {\r\n return;\r\n }\r\n if (typeof callback !== 'function') {\r\n throw new Error(errorPrefix(fnName, argumentName) + 'must be a valid function.');\r\n }\r\n}\r\nfunction validateContextObject(fnName, argumentName, context, optional) {\r\n if (optional && !context) {\r\n return;\r\n }\r\n if (typeof context !== 'object' || context === null) {\r\n throw new Error(errorPrefix(fnName, argumentName) + 'must be a valid context object.');\r\n }\r\n}\n\n/**\r\n * @license\r\n * Copyright 2017 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\n// Code originally came from goog.crypt.stringToUtf8ByteArray, but for some reason they\r\n// automatically replaced '\\r\\n' with '\\n', and they didn't handle surrogate pairs,\r\n// so it's been modified.\r\n// Note that not all Unicode characters appear as single characters in JavaScript strings.\r\n// fromCharCode returns the UTF-16 encoding of a character - so some Unicode characters\r\n// use 2 characters in Javascript. All 4-byte UTF-8 characters begin with a first\r\n// character in the range 0xD800 - 0xDBFF (the first character of a so-called surrogate\r\n// pair).\r\n// See http://www.ecma-international.org/ecma-262/5.1/#sec-15.1.3\r\n/**\r\n * @param {string} str\r\n * @return {Array}\r\n */\r\nconst stringToByteArray = function (str) {\r\n const out = [];\r\n let p = 0;\r\n for (let i = 0; i < str.length; i++) {\r\n let c = str.charCodeAt(i);\r\n // Is this the lead surrogate in a surrogate pair?\r\n if (c >= 0xd800 && c <= 0xdbff) {\r\n const high = c - 0xd800; // the high 10 bits.\r\n i++;\r\n assert(i < str.length, 'Surrogate pair missing trail surrogate.');\r\n const low = str.charCodeAt(i) - 0xdc00; // the low 10 bits.\r\n c = 0x10000 + (high << 10) + low;\r\n }\r\n if (c < 128) {\r\n out[p++] = c;\r\n }\r\n else if (c < 2048) {\r\n out[p++] = (c >> 6) | 192;\r\n out[p++] = (c & 63) | 128;\r\n }\r\n else if (c < 65536) {\r\n out[p++] = (c >> 12) | 224;\r\n out[p++] = ((c >> 6) & 63) | 128;\r\n out[p++] = (c & 63) | 128;\r\n }\r\n else {\r\n out[p++] = (c >> 18) | 240;\r\n out[p++] = ((c >> 12) & 63) | 128;\r\n out[p++] = ((c >> 6) & 63) | 128;\r\n out[p++] = (c & 63) | 128;\r\n }\r\n }\r\n return out;\r\n};\r\n/**\r\n * Calculate length without actually converting; useful for doing cheaper validation.\r\n * @param {string} str\r\n * @return {number}\r\n */\r\nconst stringLength = function (str) {\r\n let p = 0;\r\n for (let i = 0; i < str.length; i++) {\r\n const c = str.charCodeAt(i);\r\n if (c < 128) {\r\n p++;\r\n }\r\n else if (c < 2048) {\r\n p += 2;\r\n }\r\n else if (c >= 0xd800 && c <= 0xdbff) {\r\n // Lead surrogate of a surrogate pair. The pair together will take 4 bytes to represent.\r\n p += 4;\r\n i++; // skip trail surrogate.\r\n }\r\n else {\r\n p += 3;\r\n }\r\n }\r\n return p;\r\n};\n\n/**\r\n * @license\r\n * Copyright 2022 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\n/**\r\n * Copied from https://stackoverflow.com/a/2117523\r\n * Generates a new uuid.\r\n * @public\r\n */\r\nconst uuidv4 = function () {\r\n return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, c => {\r\n const r = (Math.random() * 16) | 0, v = c === 'x' ? r : (r & 0x3) | 0x8;\r\n return v.toString(16);\r\n });\r\n};\n\n/**\r\n * @license\r\n * Copyright 2019 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\n/**\r\n * The amount of milliseconds to exponentially increase.\r\n */\r\nconst DEFAULT_INTERVAL_MILLIS = 1000;\r\n/**\r\n * The factor to backoff by.\r\n * Should be a number greater than 1.\r\n */\r\nconst DEFAULT_BACKOFF_FACTOR = 2;\r\n/**\r\n * The maximum milliseconds to increase to.\r\n *\r\n *

Visible for testing\r\n */\r\nconst MAX_VALUE_MILLIS = 4 * 60 * 60 * 1000; // Four hours, like iOS and Android.\r\n/**\r\n * The percentage of backoff time to randomize by.\r\n * See\r\n * http://go/safe-client-behavior#step-1-determine-the-appropriate-retry-interval-to-handle-spike-traffic\r\n * for context.\r\n *\r\n *

Visible for testing\r\n */\r\nconst RANDOM_FACTOR = 0.5;\r\n/**\r\n * Based on the backoff method from\r\n * https://github.com/google/closure-library/blob/master/closure/goog/math/exponentialbackoff.js.\r\n * Extracted here so we don't need to pass metadata and a stateful ExponentialBackoff object around.\r\n */\r\nfunction calculateBackoffMillis(backoffCount, intervalMillis = DEFAULT_INTERVAL_MILLIS, backoffFactor = DEFAULT_BACKOFF_FACTOR) {\r\n // Calculates an exponentially increasing value.\r\n // Deviation: calculates value from count and a constant interval, so we only need to save value\r\n // and count to restore state.\r\n const currBaseValue = intervalMillis * Math.pow(backoffFactor, backoffCount);\r\n // A random \"fuzz\" to avoid waves of retries.\r\n // Deviation: randomFactor is required.\r\n const randomWait = Math.round(\r\n // A fraction of the backoff value to add/subtract.\r\n // Deviation: changes multiplication order to improve readability.\r\n RANDOM_FACTOR *\r\n currBaseValue *\r\n // A random float (rounded to int by Math.round above) in the range [-1, 1]. Determines\r\n // if we add or subtract.\r\n (Math.random() - 0.5) *\r\n 2);\r\n // Limits backoff to max to avoid effectively permanent backoff.\r\n return Math.min(MAX_VALUE_MILLIS, currBaseValue + randomWait);\r\n}\n\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\n/**\r\n * Provide English ordinal letters after a number\r\n */\r\nfunction ordinal(i) {\r\n if (!Number.isFinite(i)) {\r\n return `${i}`;\r\n }\r\n return i + indicator(i);\r\n}\r\nfunction indicator(i) {\r\n i = Math.abs(i);\r\n const cent = i % 100;\r\n if (cent >= 10 && cent <= 20) {\r\n return 'th';\r\n }\r\n const dec = i % 10;\r\n if (dec === 1) {\r\n return 'st';\r\n }\r\n if (dec === 2) {\r\n return 'nd';\r\n }\r\n if (dec === 3) {\r\n return 'rd';\r\n }\r\n return 'th';\r\n}\n\n/**\r\n * @license\r\n * Copyright 2021 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\nfunction getModularInstance(service) {\r\n if (service && service._delegate) {\r\n return service._delegate;\r\n }\r\n else {\r\n return service;\r\n }\r\n}\n\nexport { CONSTANTS, DecodeBase64StringError, Deferred, ErrorFactory, FirebaseError, MAX_VALUE_MILLIS, RANDOM_FACTOR, Sha1, areCookiesEnabled, assert, assertionError, async, base64, base64Decode, base64Encode, base64urlEncodeWithoutPadding, calculateBackoffMillis, contains, createMockUserToken, createSubscribe, decode, deepCopy, deepEqual, deepExtend, errorPrefix, extractQuerystring, getDefaultAppConfig, getDefaultEmulatorHost, getDefaultEmulatorHostnameAndPort, getDefaults, getExperimentalSetting, getGlobal, getModularInstance, getUA, isAdmin, isBrowser, isBrowserExtension, isElectron, isEmpty, isIE, isIndexedDBAvailable, isMobileCordova, isNode, isNodeSdk, isReactNative, isSafari, isUWP, isValidFormat, isValidTimestamp, issuedAtTime, jsonEval, map, ordinal, promiseWithTimeout, querystring, querystringDecode, safeGet, stringLength, stringToByteArray, stringify, uuidv4, validateArgCount, validateCallback, validateContextObject, validateIndexedDBOpenable, validateNamespace };\n//# sourceMappingURL=index.esm2017.js.map\n","/**\n * @license\n * Copyright 2017 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/**\n * @fileoverview Firebase constants. Some of these (@defines) can be overridden at compile-time.\n */\n\nexport const CONSTANTS = {\n /**\n * @define {boolean} Whether this is the client Node.js SDK.\n */\n NODE_CLIENT: false,\n /**\n * @define {boolean} Whether this is the Admin Node.js SDK.\n */\n NODE_ADMIN: false,\n\n /**\n * Firebase SDK Version\n */\n SDK_VERSION: '${JSCORE_VERSION}'\n};\n","/**\n * @license\n * Copyright 2017 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { CONSTANTS } from './constants';\n\n/**\n * Throws an error if the provided assertion is falsy\n */\nexport const assert = function (assertion: unknown, message: string): void {\n if (!assertion) {\n throw assertionError(message);\n }\n};\n\n/**\n * Returns an Error object suitable for throwing.\n */\nexport const assertionError = function (message: string): Error {\n return new Error(\n 'Firebase Database (' +\n CONSTANTS.SDK_VERSION +\n ') INTERNAL ASSERT FAILED: ' +\n message\n );\n};\n","/**\n * @license\n * Copyright 2017 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nconst stringToByteArray = function (str: string): number[] {\n // TODO(user): Use native implementations if/when available\n const out: number[] = [];\n let p = 0;\n for (let i = 0; i < str.length; i++) {\n let c = str.charCodeAt(i);\n if (c < 128) {\n out[p++] = c;\n } else if (c < 2048) {\n out[p++] = (c >> 6) | 192;\n out[p++] = (c & 63) | 128;\n } else if (\n (c & 0xfc00) === 0xd800 &&\n i + 1 < str.length &&\n (str.charCodeAt(i + 1) & 0xfc00) === 0xdc00\n ) {\n // Surrogate Pair\n c = 0x10000 + ((c & 0x03ff) << 10) + (str.charCodeAt(++i) & 0x03ff);\n out[p++] = (c >> 18) | 240;\n out[p++] = ((c >> 12) & 63) | 128;\n out[p++] = ((c >> 6) & 63) | 128;\n out[p++] = (c & 63) | 128;\n } else {\n out[p++] = (c >> 12) | 224;\n out[p++] = ((c >> 6) & 63) | 128;\n out[p++] = (c & 63) | 128;\n }\n }\n return out;\n};\n\n/**\n * Turns an array of numbers into the string given by the concatenation of the\n * characters to which the numbers correspond.\n * @param bytes Array of numbers representing characters.\n * @return Stringification of the array.\n */\nconst byteArrayToString = function (bytes: number[]): string {\n // TODO(user): Use native implementations if/when available\n const out: string[] = [];\n let pos = 0,\n c = 0;\n while (pos < bytes.length) {\n const c1 = bytes[pos++];\n if (c1 < 128) {\n out[c++] = String.fromCharCode(c1);\n } else if (c1 > 191 && c1 < 224) {\n const c2 = bytes[pos++];\n out[c++] = String.fromCharCode(((c1 & 31) << 6) | (c2 & 63));\n } else if (c1 > 239 && c1 < 365) {\n // Surrogate Pair\n const c2 = bytes[pos++];\n const c3 = bytes[pos++];\n const c4 = bytes[pos++];\n const u =\n (((c1 & 7) << 18) | ((c2 & 63) << 12) | ((c3 & 63) << 6) | (c4 & 63)) -\n 0x10000;\n out[c++] = String.fromCharCode(0xd800 + (u >> 10));\n out[c++] = String.fromCharCode(0xdc00 + (u & 1023));\n } else {\n const c2 = bytes[pos++];\n const c3 = bytes[pos++];\n out[c++] = String.fromCharCode(\n ((c1 & 15) << 12) | ((c2 & 63) << 6) | (c3 & 63)\n );\n }\n }\n return out.join('');\n};\n\ninterface Base64 {\n byteToCharMap_: { [key: number]: string } | null;\n charToByteMap_: { [key: string]: number } | null;\n byteToCharMapWebSafe_: { [key: number]: string } | null;\n charToByteMapWebSafe_: { [key: string]: number } | null;\n ENCODED_VALS_BASE: string;\n readonly ENCODED_VALS: string;\n readonly ENCODED_VALS_WEBSAFE: string;\n HAS_NATIVE_SUPPORT: boolean;\n encodeByteArray(input: number[] | Uint8Array, webSafe?: boolean): string;\n encodeString(input: string, webSafe?: boolean): string;\n decodeString(input: string, webSafe: boolean): string;\n decodeStringToByteArray(input: string, webSafe: boolean): number[];\n init_(): void;\n}\n\n// We define it as an object literal instead of a class because a class compiled down to es5 can't\n// be treeshaked. https://github.com/rollup/rollup/issues/1691\n// Static lookup maps, lazily populated by init_()\nexport const base64: Base64 = {\n /**\n * Maps bytes to characters.\n */\n byteToCharMap_: null,\n\n /**\n * Maps characters to bytes.\n */\n charToByteMap_: null,\n\n /**\n * Maps bytes to websafe characters.\n * @private\n */\n byteToCharMapWebSafe_: null,\n\n /**\n * Maps websafe characters to bytes.\n * @private\n */\n charToByteMapWebSafe_: null,\n\n /**\n * Our default alphabet, shared between\n * ENCODED_VALS and ENCODED_VALS_WEBSAFE\n */\n ENCODED_VALS_BASE:\n 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' + 'abcdefghijklmnopqrstuvwxyz' + '0123456789',\n\n /**\n * Our default alphabet. Value 64 (=) is special; it means \"nothing.\"\n */\n get ENCODED_VALS() {\n return this.ENCODED_VALS_BASE + '+/=';\n },\n\n /**\n * Our websafe alphabet.\n */\n get ENCODED_VALS_WEBSAFE() {\n return this.ENCODED_VALS_BASE + '-_.';\n },\n\n /**\n * Whether this browser supports the atob and btoa functions. This extension\n * started at Mozilla but is now implemented by many browsers. We use the\n * ASSUME_* variables to avoid pulling in the full useragent detection library\n * but still allowing the standard per-browser compilations.\n *\n */\n HAS_NATIVE_SUPPORT: typeof atob === 'function',\n\n /**\n * Base64-encode an array of bytes.\n *\n * @param input An array of bytes (numbers with\n * value in [0, 255]) to encode.\n * @param webSafe Boolean indicating we should use the\n * alternative alphabet.\n * @return The base64 encoded string.\n */\n encodeByteArray(input: number[] | Uint8Array, webSafe?: boolean): string {\n if (!Array.isArray(input)) {\n throw Error('encodeByteArray takes an array as a parameter');\n }\n\n this.init_();\n\n const byteToCharMap = webSafe\n ? this.byteToCharMapWebSafe_!\n : this.byteToCharMap_!;\n\n const output = [];\n\n for (let i = 0; i < input.length; i += 3) {\n const byte1 = input[i];\n const haveByte2 = i + 1 < input.length;\n const byte2 = haveByte2 ? input[i + 1] : 0;\n const haveByte3 = i + 2 < input.length;\n const byte3 = haveByte3 ? input[i + 2] : 0;\n\n const outByte1 = byte1 >> 2;\n const outByte2 = ((byte1 & 0x03) << 4) | (byte2 >> 4);\n let outByte3 = ((byte2 & 0x0f) << 2) | (byte3 >> 6);\n let outByte4 = byte3 & 0x3f;\n\n if (!haveByte3) {\n outByte4 = 64;\n\n if (!haveByte2) {\n outByte3 = 64;\n }\n }\n\n output.push(\n byteToCharMap[outByte1],\n byteToCharMap[outByte2],\n byteToCharMap[outByte3],\n byteToCharMap[outByte4]\n );\n }\n\n return output.join('');\n },\n\n /**\n * Base64-encode a string.\n *\n * @param input A string to encode.\n * @param webSafe If true, we should use the\n * alternative alphabet.\n * @return The base64 encoded string.\n */\n encodeString(input: string, webSafe?: boolean): string {\n // Shortcut for Mozilla browsers that implement\n // a native base64 encoder in the form of \"btoa/atob\"\n if (this.HAS_NATIVE_SUPPORT && !webSafe) {\n return btoa(input);\n }\n return this.encodeByteArray(stringToByteArray(input), webSafe);\n },\n\n /**\n * Base64-decode a string.\n *\n * @param input to decode.\n * @param webSafe True if we should use the\n * alternative alphabet.\n * @return string representing the decoded value.\n */\n decodeString(input: string, webSafe: boolean): string {\n // Shortcut for Mozilla browsers that implement\n // a native base64 encoder in the form of \"btoa/atob\"\n if (this.HAS_NATIVE_SUPPORT && !webSafe) {\n return atob(input);\n }\n return byteArrayToString(this.decodeStringToByteArray(input, webSafe));\n },\n\n /**\n * Base64-decode a string.\n *\n * In base-64 decoding, groups of four characters are converted into three\n * bytes. If the encoder did not apply padding, the input length may not\n * be a multiple of 4.\n *\n * In this case, the last group will have fewer than 4 characters, and\n * padding will be inferred. If the group has one or two characters, it decodes\n * to one byte. If the group has three characters, it decodes to two bytes.\n *\n * @param input Input to decode.\n * @param webSafe True if we should use the web-safe alphabet.\n * @return bytes representing the decoded value.\n */\n decodeStringToByteArray(input: string, webSafe: boolean): number[] {\n this.init_();\n\n const charToByteMap = webSafe\n ? this.charToByteMapWebSafe_!\n : this.charToByteMap_!;\n\n const output: number[] = [];\n\n for (let i = 0; i < input.length; ) {\n const byte1 = charToByteMap[input.charAt(i++)];\n\n const haveByte2 = i < input.length;\n const byte2 = haveByte2 ? charToByteMap[input.charAt(i)] : 0;\n ++i;\n\n const haveByte3 = i < input.length;\n const byte3 = haveByte3 ? charToByteMap[input.charAt(i)] : 64;\n ++i;\n\n const haveByte4 = i < input.length;\n const byte4 = haveByte4 ? charToByteMap[input.charAt(i)] : 64;\n ++i;\n\n if (byte1 == null || byte2 == null || byte3 == null || byte4 == null) {\n throw new DecodeBase64StringError();\n }\n\n const outByte1 = (byte1 << 2) | (byte2 >> 4);\n output.push(outByte1);\n\n if (byte3 !== 64) {\n const outByte2 = ((byte2 << 4) & 0xf0) | (byte3 >> 2);\n output.push(outByte2);\n\n if (byte4 !== 64) {\n const outByte3 = ((byte3 << 6) & 0xc0) | byte4;\n output.push(outByte3);\n }\n }\n }\n\n return output;\n },\n\n /**\n * Lazy static initialization function. Called before\n * accessing any of the static map variables.\n * @private\n */\n init_() {\n if (!this.byteToCharMap_) {\n this.byteToCharMap_ = {};\n this.charToByteMap_ = {};\n this.byteToCharMapWebSafe_ = {};\n this.charToByteMapWebSafe_ = {};\n\n // We want quick mappings back and forth, so we precompute two maps.\n for (let i = 0; i < this.ENCODED_VALS.length; i++) {\n this.byteToCharMap_[i] = this.ENCODED_VALS.charAt(i);\n this.charToByteMap_[this.byteToCharMap_[i]] = i;\n this.byteToCharMapWebSafe_[i] = this.ENCODED_VALS_WEBSAFE.charAt(i);\n this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[i]] = i;\n\n // Be forgiving when decoding and correctly decode both encodings.\n if (i >= this.ENCODED_VALS_BASE.length) {\n this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(i)] = i;\n this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(i)] = i;\n }\n }\n }\n }\n};\n\n/**\n * An error encountered while decoding base64 string.\n */\nexport class DecodeBase64StringError extends Error {\n readonly name = 'DecodeBase64StringError';\n}\n\n/**\n * URL-safe base64 encoding\n */\nexport const base64Encode = function (str: string): string {\n const utf8Bytes = stringToByteArray(str);\n return base64.encodeByteArray(utf8Bytes, true);\n};\n\n/**\n * URL-safe base64 encoding (without \".\" padding in the end).\n * e.g. Used in JSON Web Token (JWT) parts.\n */\nexport const base64urlEncodeWithoutPadding = function (str: string): string {\n // Use base64url encoding and remove padding in the end (dot characters).\n return base64Encode(str).replace(/\\./g, '');\n};\n\n/**\n * URL-safe base64 decoding\n *\n * NOTE: DO NOT use the global atob() function - it does NOT support the\n * base64Url variant encoding.\n *\n * @param str To be decoded\n * @return Decoded result, if possible\n */\nexport const base64Decode = function (str: string): string | null {\n try {\n return base64.decodeString(str, true);\n } catch (e) {\n console.error('base64Decode failed: ', e);\n }\n return null;\n};\n","/**\n * @license\n * Copyright 2017 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/**\n * Do a deep-copy of basic JavaScript Objects or Arrays.\n */\nexport function deepCopy(value: T): T {\n return deepExtend(undefined, value) as T;\n}\n\n/**\n * Copy properties from source to target (recursively allows extension\n * of Objects and Arrays). Scalar values in the target are over-written.\n * If target is undefined, an object of the appropriate type will be created\n * (and returned).\n *\n * We recursively copy all child properties of plain Objects in the source- so\n * that namespace- like dictionaries are merged.\n *\n * Note that the target can be a function, in which case the properties in\n * the source Object are copied onto it as static properties of the Function.\n *\n * Note: we don't merge __proto__ to prevent prototype pollution\n */\nexport function deepExtend(target: unknown, source: unknown): unknown {\n if (!(source instanceof Object)) {\n return source;\n }\n\n switch (source.constructor) {\n case Date:\n // Treat Dates like scalars; if the target date object had any child\n // properties - they will be lost!\n const dateValue = source as Date;\n return new Date(dateValue.getTime());\n\n case Object:\n if (target === undefined) {\n target = {};\n }\n break;\n case Array:\n // Always copy the array source and overwrite the target.\n target = [];\n break;\n\n default:\n // Not a plain Object - treat it as a scalar.\n return source;\n }\n\n for (const prop in source) {\n // use isValidKey to guard against prototype pollution. See https://snyk.io/vuln/SNYK-JS-LODASH-450202\n if (!source.hasOwnProperty(prop) || !isValidKey(prop)) {\n continue;\n }\n (target as Record)[prop] = deepExtend(\n (target as Record)[prop],\n (source as Record)[prop]\n );\n }\n\n return target;\n}\n\nfunction isValidKey(key: string): boolean {\n return key !== '__proto__';\n}\n","/**\n * @license\n * Copyright 2022 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/**\n * Polyfill for `globalThis` object.\n * @returns the `globalThis` object for the given environment.\n * @public\n */\nexport function getGlobal(): typeof globalThis {\n if (typeof self !== 'undefined') {\n return self;\n }\n if (typeof window !== 'undefined') {\n return window;\n }\n if (typeof global !== 'undefined') {\n return global;\n }\n throw new Error('Unable to locate global object.');\n}\n","/**\n * @license\n * Copyright 2022 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { base64Decode } from './crypt';\nimport { getGlobal } from './global';\n\n/**\n * Keys for experimental properties on the `FirebaseDefaults` object.\n * @public\n */\nexport type ExperimentalKey = 'authTokenSyncURL' | 'authIdTokenMaxAge';\n\n/**\n * An object that can be injected into the environment as __FIREBASE_DEFAULTS__,\n * either as a property of globalThis, a shell environment variable, or a\n * cookie.\n *\n * This object can be used to automatically configure and initialize\n * a Firebase app as well as any emulators.\n *\n * @public\n */\nexport interface FirebaseDefaults {\n config?: Record;\n emulatorHosts?: Record;\n _authTokenSyncURL?: string;\n _authIdTokenMaxAge?: number;\n /**\n * Override Firebase's runtime environment detection and\n * force the SDK to act as if it were in the specified environment.\n */\n forceEnvironment?: 'browser' | 'node';\n [key: string]: unknown;\n}\n\ndeclare global {\n // Need `var` for this to work.\n // eslint-disable-next-line no-var\n var __FIREBASE_DEFAULTS__: FirebaseDefaults | undefined;\n}\n\nconst getDefaultsFromGlobal = (): FirebaseDefaults | undefined =>\n getGlobal().__FIREBASE_DEFAULTS__;\n\n/**\n * Attempt to read defaults from a JSON string provided to\n * process(.)env(.)__FIREBASE_DEFAULTS__ or a JSON file whose path is in\n * process(.)env(.)__FIREBASE_DEFAULTS_PATH__\n * The dots are in parens because certain compilers (Vite?) cannot\n * handle seeing that variable in comments.\n * See https://github.com/firebase/firebase-js-sdk/issues/6838\n */\nconst getDefaultsFromEnvVariable = (): FirebaseDefaults | undefined => {\n if (typeof process === 'undefined' || typeof process.env === 'undefined') {\n return;\n }\n const defaultsJsonString = process.env.__FIREBASE_DEFAULTS__;\n if (defaultsJsonString) {\n return JSON.parse(defaultsJsonString);\n }\n};\n\nconst getDefaultsFromCookie = (): FirebaseDefaults | undefined => {\n if (typeof document === 'undefined') {\n return;\n }\n let match;\n try {\n match = document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/);\n } catch (e) {\n // Some environments such as Angular Universal SSR have a\n // `document` object but error on accessing `document.cookie`.\n return;\n }\n const decoded = match && base64Decode(match[1]);\n return decoded && JSON.parse(decoded);\n};\n\n/**\n * Get the __FIREBASE_DEFAULTS__ object. It checks in order:\n * (1) if such an object exists as a property of `globalThis`\n * (2) if such an object was provided on a shell environment variable\n * (3) if such an object exists in a cookie\n * @public\n */\nexport const getDefaults = (): FirebaseDefaults | undefined => {\n try {\n return (\n getDefaultsFromGlobal() ||\n getDefaultsFromEnvVariable() ||\n getDefaultsFromCookie()\n );\n } catch (e) {\n /**\n * Catch-all for being unable to get __FIREBASE_DEFAULTS__ due\n * to any environment case we have not accounted for. Log to\n * info instead of swallowing so we can find these unknown cases\n * and add paths for them if needed.\n */\n console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${e}`);\n return;\n }\n};\n\n/**\n * Returns emulator host stored in the __FIREBASE_DEFAULTS__ object\n * for the given product.\n * @returns a URL host formatted like `127.0.0.1:9999` or `[::1]:4000` if available\n * @public\n */\nexport const getDefaultEmulatorHost = (\n productName: string\n): string | undefined => getDefaults()?.emulatorHosts?.[productName];\n\n/**\n * Returns emulator hostname and port stored in the __FIREBASE_DEFAULTS__ object\n * for the given product.\n * @returns a pair of hostname and port like `[\"::1\", 4000]` if available\n * @public\n */\nexport const getDefaultEmulatorHostnameAndPort = (\n productName: string\n): [hostname: string, port: number] | undefined => {\n const host = getDefaultEmulatorHost(productName);\n if (!host) {\n return undefined;\n }\n const separatorIndex = host.lastIndexOf(':'); // Finding the last since IPv6 addr also has colons.\n if (separatorIndex <= 0 || separatorIndex + 1 === host.length) {\n throw new Error(`Invalid host ${host} with no separate hostname and port!`);\n }\n // eslint-disable-next-line no-restricted-globals\n const port = parseInt(host.substring(separatorIndex + 1), 10);\n if (host[0] === '[') {\n // Bracket-quoted `[ipv6addr]:port` => return \"ipv6addr\" (without brackets).\n return [host.substring(1, separatorIndex - 1), port];\n } else {\n return [host.substring(0, separatorIndex), port];\n }\n};\n\n/**\n * Returns Firebase app config stored in the __FIREBASE_DEFAULTS__ object.\n * @public\n */\nexport const getDefaultAppConfig = (): Record | undefined =>\n getDefaults()?.config;\n\n/**\n * Returns an experimental setting on the __FIREBASE_DEFAULTS__ object (properties\n * prefixed by \"_\")\n * @public\n */\nexport const getExperimentalSetting = (\n name: T\n): FirebaseDefaults[`_${T}`] =>\n getDefaults()?.[`_${name}`] as FirebaseDefaults[`_${T}`];\n","/**\n * @license\n * Copyright 2017 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport class Deferred {\n promise: Promise;\n reject: (value?: unknown) => void = () => {};\n resolve: (value?: unknown) => void = () => {};\n constructor() {\n this.promise = new Promise((resolve, reject) => {\n this.resolve = resolve as (value?: unknown) => void;\n this.reject = reject as (value?: unknown) => void;\n });\n }\n\n /**\n * Our API internals are not promiseified and cannot because our callback APIs have subtle expectations around\n * invoking promises inline, which Promises are forbidden to do. This method accepts an optional node-style callback\n * and returns a node-style callback which will resolve or reject the Deferred's promise.\n */\n wrapCallback(\n callback?: (error?: unknown, value?: unknown) => void\n ): (error: unknown, value?: unknown) => void {\n return (error, value?) => {\n if (error) {\n this.reject(error);\n } else {\n this.resolve(value);\n }\n if (typeof callback === 'function') {\n // Attaching noop handler just in case developer wasn't expecting\n // promises\n this.promise.catch(() => {});\n\n // Some of our callbacks don't expect a value and our own tests\n // assert that the parameter length is 1\n if (callback.length === 1) {\n callback(error);\n } else {\n callback(error, value);\n }\n }\n };\n }\n}\n","/**\n * @license\n * Copyright 2021 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { base64urlEncodeWithoutPadding } from './crypt';\n\n// Firebase Auth tokens contain snake_case claims following the JWT standard / convention.\n/* eslint-disable camelcase */\n\nexport type FirebaseSignInProvider =\n | 'custom'\n | 'email'\n | 'password'\n | 'phone'\n | 'anonymous'\n | 'google.com'\n | 'facebook.com'\n | 'github.com'\n | 'twitter.com'\n | 'microsoft.com'\n | 'apple.com';\n\ninterface FirebaseIdToken {\n // Always set to https://securetoken.google.com/PROJECT_ID\n iss: string;\n\n // Always set to PROJECT_ID\n aud: string;\n\n // The user's unique ID\n sub: string;\n\n // The token issue time, in seconds since epoch\n iat: number;\n\n // The token expiry time, normally 'iat' + 3600\n exp: number;\n\n // The user's unique ID. Must be equal to 'sub'\n user_id: string;\n\n // The time the user authenticated, normally 'iat'\n auth_time: number;\n\n // The sign in provider, only set when the provider is 'anonymous'\n provider_id?: 'anonymous';\n\n // The user's primary email\n email?: string;\n\n // The user's email verification status\n email_verified?: boolean;\n\n // The user's primary phone number\n phone_number?: string;\n\n // The user's display name\n name?: string;\n\n // The user's profile photo URL\n picture?: string;\n\n // Information on all identities linked to this user\n firebase: {\n // The primary sign-in provider\n sign_in_provider: FirebaseSignInProvider;\n\n // A map of providers to the user's list of unique identifiers from\n // each provider\n identities?: { [provider in FirebaseSignInProvider]?: string[] };\n };\n\n // Custom claims set by the developer\n [claim: string]: unknown;\n\n uid?: never; // Try to catch a common mistake of \"uid\" (should be \"sub\" instead).\n}\n\nexport type EmulatorMockTokenOptions = ({ user_id: string } | { sub: string }) &\n Partial;\n\nexport function createMockUserToken(\n token: EmulatorMockTokenOptions,\n projectId?: string\n): string {\n if (token.uid) {\n throw new Error(\n 'The \"uid\" field is no longer supported by mockUserToken. Please use \"sub\" instead for Firebase Auth User ID.'\n );\n }\n // Unsecured JWTs use \"none\" as the algorithm.\n const header = {\n alg: 'none',\n type: 'JWT'\n };\n\n const project = projectId || 'demo-project';\n const iat = token.iat || 0;\n const sub = token.sub || token.user_id;\n if (!sub) {\n throw new Error(\"mockUserToken must contain 'sub' or 'user_id' field!\");\n }\n\n const payload: FirebaseIdToken = {\n // Set all required fields to decent defaults\n iss: `https://securetoken.google.com/${project}`,\n aud: project,\n iat,\n exp: iat + 3600,\n auth_time: iat,\n sub,\n user_id: sub,\n firebase: {\n sign_in_provider: 'custom',\n identities: {}\n },\n\n // Override with user options\n ...token\n };\n\n // Unsecured JWTs use the empty string as a signature.\n const signature = '';\n return [\n base64urlEncodeWithoutPadding(JSON.stringify(header)),\n base64urlEncodeWithoutPadding(JSON.stringify(payload)),\n signature\n ].join('.');\n}\n","/**\n * @license\n * Copyright 2017 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { CONSTANTS } from './constants';\nimport { getDefaults } from './defaults';\n\n/**\n * Returns navigator.userAgent string or '' if it's not defined.\n * @return user agent string\n */\nexport function getUA(): string {\n if (\n typeof navigator !== 'undefined' &&\n typeof navigator['userAgent'] === 'string'\n ) {\n return navigator['userAgent'];\n } else {\n return '';\n }\n}\n\n/**\n * Detect Cordova / PhoneGap / Ionic frameworks on a mobile device.\n *\n * Deliberately does not rely on checking `file://` URLs (as this fails PhoneGap\n * in the Ripple emulator) nor Cordova `onDeviceReady`, which would normally\n * wait for a callback.\n */\nexport function isMobileCordova(): boolean {\n return (\n typeof window !== 'undefined' &&\n // @ts-ignore Setting up an broadly applicable index signature for Window\n // just to deal with this case would probably be a bad idea.\n !!(window['cordova'] || window['phonegap'] || window['PhoneGap']) &&\n /ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(getUA())\n );\n}\n\n/**\n * Detect Node.js.\n *\n * @return true if Node.js environment is detected or specified.\n */\n// Node detection logic from: https://github.com/iliakan/detect-node/\nexport function isNode(): boolean {\n const forceEnvironment = getDefaults()?.forceEnvironment;\n if (forceEnvironment === 'node') {\n return true;\n } else if (forceEnvironment === 'browser') {\n return false;\n }\n\n try {\n return (\n Object.prototype.toString.call(global.process) === '[object process]'\n );\n } catch (e) {\n return false;\n }\n}\n\n/**\n * Detect Browser Environment\n */\nexport function isBrowser(): boolean {\n return typeof self === 'object' && self.self === self;\n}\n\n/**\n * Detect browser extensions (Chrome and Firefox at least).\n */\ninterface BrowserRuntime {\n id?: unknown;\n}\ndeclare const chrome: { runtime?: BrowserRuntime };\ndeclare const browser: { runtime?: BrowserRuntime };\nexport function isBrowserExtension(): boolean {\n const runtime =\n typeof chrome === 'object'\n ? chrome.runtime\n : typeof browser === 'object'\n ? browser.runtime\n : undefined;\n return typeof runtime === 'object' && runtime.id !== undefined;\n}\n\n/**\n * Detect React Native.\n *\n * @return true if ReactNative environment is detected.\n */\nexport function isReactNative(): boolean {\n return (\n typeof navigator === 'object' && navigator['product'] === 'ReactNative'\n );\n}\n\n/** Detects Electron apps. */\nexport function isElectron(): boolean {\n return getUA().indexOf('Electron/') >= 0;\n}\n\n/** Detects Internet Explorer. */\nexport function isIE(): boolean {\n const ua = getUA();\n return ua.indexOf('MSIE ') >= 0 || ua.indexOf('Trident/') >= 0;\n}\n\n/** Detects Universal Windows Platform apps. */\nexport function isUWP(): boolean {\n return getUA().indexOf('MSAppHost/') >= 0;\n}\n\n/**\n * Detect whether the current SDK build is the Node version.\n *\n * @return true if it's the Node SDK build.\n */\nexport function isNodeSdk(): boolean {\n return CONSTANTS.NODE_CLIENT === true || CONSTANTS.NODE_ADMIN === true;\n}\n\n/** Returns true if we are running in Safari. */\nexport function isSafari(): boolean {\n return (\n !isNode() &&\n navigator.userAgent.includes('Safari') &&\n !navigator.userAgent.includes('Chrome')\n );\n}\n\n/**\n * This method checks if indexedDB is supported by current browser/service worker context\n * @return true if indexedDB is supported by current browser/service worker context\n */\nexport function isIndexedDBAvailable(): boolean {\n try {\n return typeof indexedDB === 'object';\n } catch (e) {\n return false;\n }\n}\n\n/**\n * This method validates browser/sw context for indexedDB by opening a dummy indexedDB database and reject\n * if errors occur during the database open operation.\n *\n * @throws exception if current browser/sw context can't run idb.open (ex: Safari iframe, Firefox\n * private browsing)\n */\nexport function validateIndexedDBOpenable(): Promise {\n return new Promise((resolve, reject) => {\n try {\n let preExist: boolean = true;\n const DB_CHECK_NAME =\n 'validate-browser-context-for-indexeddb-analytics-module';\n const request = self.indexedDB.open(DB_CHECK_NAME);\n request.onsuccess = () => {\n request.result.close();\n // delete database only when it doesn't pre-exist\n if (!preExist) {\n self.indexedDB.deleteDatabase(DB_CHECK_NAME);\n }\n resolve(true);\n };\n request.onupgradeneeded = () => {\n preExist = false;\n };\n\n request.onerror = () => {\n reject(request.error?.message || '');\n };\n } catch (error) {\n reject(error);\n }\n });\n}\n\n/**\n *\n * This method checks whether cookie is enabled within current browser\n * @return true if cookie is enabled within current browser\n */\nexport function areCookiesEnabled(): boolean {\n if (typeof navigator === 'undefined' || !navigator.cookieEnabled) {\n return false;\n }\n return true;\n}\n","/**\n * @license\n * Copyright 2017 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n/**\n * @fileoverview Standardized Firebase Error.\n *\n * Usage:\n *\n * // Typescript string literals for type-safe codes\n * type Err =\n * 'unknown' |\n * 'object-not-found'\n * ;\n *\n * // Closure enum for type-safe error codes\n * // at-enum {string}\n * var Err = {\n * UNKNOWN: 'unknown',\n * OBJECT_NOT_FOUND: 'object-not-found',\n * }\n *\n * let errors: Map = {\n * 'generic-error': \"Unknown error\",\n * 'file-not-found': \"Could not find file: {$file}\",\n * };\n *\n * // Type-safe function - must pass a valid error code as param.\n * let error = new ErrorFactory('service', 'Service', errors);\n *\n * ...\n * throw error.create(Err.GENERIC);\n * ...\n * throw error.create(Err.FILE_NOT_FOUND, {'file': fileName});\n * ...\n * // Service: Could not file file: foo.txt (service/file-not-found).\n *\n * catch (e) {\n * assert(e.message === \"Could not find file: foo.txt.\");\n * if ((e as FirebaseError)?.code === 'service/file-not-found') {\n * console.log(\"Could not read file: \" + e['file']);\n * }\n * }\n */\n\nexport type ErrorMap = {\n readonly [K in ErrorCode]: string;\n};\n\nconst ERROR_NAME = 'FirebaseError';\n\nexport interface StringLike {\n toString(): string;\n}\n\nexport interface ErrorData {\n [key: string]: unknown;\n}\n\n// Based on code from:\n// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error#Custom_Error_Types\nexport class FirebaseError extends Error {\n /** The custom name for all FirebaseErrors. */\n readonly name: string = ERROR_NAME;\n\n constructor(\n /** The error code for this error. */\n readonly code: string,\n message: string,\n /** Custom data for this error. */\n public customData?: Record\n ) {\n super(message);\n\n // Fix For ES5\n // https://github.com/Microsoft/TypeScript-wiki/blob/master/Breaking-Changes.md#extending-built-ins-like-error-array-and-map-may-no-longer-work\n Object.setPrototypeOf(this, FirebaseError.prototype);\n\n // Maintains proper stack trace for where our error was thrown.\n // Only available on V8.\n if (Error.captureStackTrace) {\n Error.captureStackTrace(this, ErrorFactory.prototype.create);\n }\n }\n}\n\nexport class ErrorFactory<\n ErrorCode extends string,\n ErrorParams extends { readonly [K in ErrorCode]?: ErrorData } = {}\n> {\n constructor(\n private readonly service: string,\n private readonly serviceName: string,\n private readonly errors: ErrorMap\n ) {}\n\n create(\n code: K,\n ...data: K extends keyof ErrorParams ? [ErrorParams[K]] : []\n ): FirebaseError {\n const customData = (data[0] as ErrorData) || {};\n const fullCode = `${this.service}/${code}`;\n const template = this.errors[code];\n\n const message = template ? replaceTemplate(template, customData) : 'Error';\n // Service Name: Error message (service/code).\n const fullMessage = `${this.serviceName}: ${message} (${fullCode}).`;\n\n const error = new FirebaseError(fullCode, fullMessage, customData);\n\n return error;\n }\n}\n\nfunction replaceTemplate(template: string, data: ErrorData): string {\n return template.replace(PATTERN, (_, key) => {\n const value = data[key];\n return value != null ? String(value) : `<${key}?>`;\n });\n}\n\nconst PATTERN = /\\{\\$([^}]+)}/g;\n","/**\n * @license\n * Copyright 2017 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/**\n * Evaluates a JSON string into a javascript object.\n *\n * @param {string} str A string containing JSON.\n * @return {*} The javascript object representing the specified JSON.\n */\nexport function jsonEval(str: string): unknown {\n return JSON.parse(str);\n}\n\n/**\n * Returns JSON representing a javascript object.\n * @param {*} data Javascript object to be stringified.\n * @return {string} The JSON contents of the object.\n */\nexport function stringify(data: unknown): string {\n return JSON.stringify(data);\n}\n","/**\n * @license\n * Copyright 2017 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { base64Decode } from './crypt';\nimport { jsonEval } from './json';\n\ninterface Claims {\n [key: string]: {};\n}\n\ninterface DecodedToken {\n header: object;\n claims: Claims;\n data: object;\n signature: string;\n}\n\n/**\n * Decodes a Firebase auth. token into constituent parts.\n *\n * Notes:\n * - May return with invalid / incomplete claims if there's no native base64 decoding support.\n * - Doesn't check if the token is actually valid.\n */\nexport const decode = function (token: string): DecodedToken {\n let header = {},\n claims: Claims = {},\n data = {},\n signature = '';\n\n try {\n const parts = token.split('.');\n header = jsonEval(base64Decode(parts[0]) || '') as object;\n claims = jsonEval(base64Decode(parts[1]) || '') as Claims;\n signature = parts[2];\n data = claims['d'] || {};\n delete claims['d'];\n } catch (e) {}\n\n return {\n header,\n claims,\n data,\n signature\n };\n};\n\ninterface DecodedToken {\n header: object;\n claims: Claims;\n data: object;\n signature: string;\n}\n\n/**\n * Decodes a Firebase auth. token and checks the validity of its time-based claims. Will return true if the\n * token is within the time window authorized by the 'nbf' (not-before) and 'iat' (issued-at) claims.\n *\n * Notes:\n * - May return a false negative if there's no native base64 decoding support.\n * - Doesn't check if the token is actually valid.\n */\nexport const isValidTimestamp = function (token: string): boolean {\n const claims: Claims = decode(token).claims;\n const now: number = Math.floor(new Date().getTime() / 1000);\n let validSince: number = 0,\n validUntil: number = 0;\n\n if (typeof claims === 'object') {\n if (claims.hasOwnProperty('nbf')) {\n validSince = claims['nbf'] as number;\n } else if (claims.hasOwnProperty('iat')) {\n validSince = claims['iat'] as number;\n }\n\n if (claims.hasOwnProperty('exp')) {\n validUntil = claims['exp'] as number;\n } else {\n // token will expire after 24h by default\n validUntil = validSince + 86400;\n }\n }\n\n return (\n !!now &&\n !!validSince &&\n !!validUntil &&\n now >= validSince &&\n now <= validUntil\n );\n};\n\n/**\n * Decodes a Firebase auth. token and returns its issued at time if valid, null otherwise.\n *\n * Notes:\n * - May return null if there's no native base64 decoding support.\n * - Doesn't check if the token is actually valid.\n */\nexport const issuedAtTime = function (token: string): number | null {\n const claims: Claims = decode(token).claims;\n if (typeof claims === 'object' && claims.hasOwnProperty('iat')) {\n return claims['iat'] as number;\n }\n return null;\n};\n\n/**\n * Decodes a Firebase auth. token and checks the validity of its format. Expects a valid issued-at time.\n *\n * Notes:\n * - May return a false negative if there's no native base64 decoding support.\n * - Doesn't check if the token is actually valid.\n */\nexport const isValidFormat = function (token: string): boolean {\n const decoded = decode(token),\n claims = decoded.claims;\n\n return !!claims && typeof claims === 'object' && claims.hasOwnProperty('iat');\n};\n\n/**\n * Attempts to peer into an auth token and determine if it's an admin auth token by looking at the claims portion.\n *\n * Notes:\n * - May return a false negative if there's no native base64 decoding support.\n * - Doesn't check if the token is actually valid.\n */\nexport const isAdmin = function (token: string): boolean {\n const claims: Claims = decode(token).claims;\n return typeof claims === 'object' && claims['admin'] === true;\n};\n","/**\n * @license\n * Copyright 2017 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport function contains(obj: T, key: string): boolean {\n return Object.prototype.hasOwnProperty.call(obj, key);\n}\n\nexport function safeGet(\n obj: T,\n key: K\n): T[K] | undefined {\n if (Object.prototype.hasOwnProperty.call(obj, key)) {\n return obj[key];\n } else {\n return undefined;\n }\n}\n\nexport function isEmpty(obj: object): obj is {} {\n for (const key in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, key)) {\n return false;\n }\n }\n return true;\n}\n\nexport function map(\n obj: { [key in K]: V },\n fn: (value: V, key: K, obj: { [key in K]: V }) => U,\n contextObj?: unknown\n): { [key in K]: U } {\n const res: Partial<{ [key in K]: U }> = {};\n for (const key in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, key)) {\n res[key] = fn.call(contextObj, obj[key], key, obj);\n }\n }\n return res as { [key in K]: U };\n}\n\n/**\n * Deep equal two objects. Support Arrays and Objects.\n */\nexport function deepEqual(a: object, b: object): boolean {\n if (a === b) {\n return true;\n }\n\n const aKeys = Object.keys(a);\n const bKeys = Object.keys(b);\n for (const k of aKeys) {\n if (!bKeys.includes(k)) {\n return false;\n }\n\n const aProp = (a as Record)[k];\n const bProp = (b as Record)[k];\n if (isObject(aProp) && isObject(bProp)) {\n if (!deepEqual(aProp, bProp)) {\n return false;\n }\n } else if (aProp !== bProp) {\n return false;\n }\n }\n\n for (const k of bKeys) {\n if (!aKeys.includes(k)) {\n return false;\n }\n }\n return true;\n}\n\nfunction isObject(thing: unknown): thing is object {\n return thing !== null && typeof thing === 'object';\n}\n","/**\n * @license\n * Copyright 2022 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { Deferred } from './deferred';\n\n/**\n * Rejects if the given promise doesn't resolve in timeInMS milliseconds.\n * @internal\n */\nexport function promiseWithTimeout(\n promise: Promise,\n timeInMS = 2000\n): Promise {\n const deferredPromise = new Deferred();\n setTimeout(() => deferredPromise.reject('timeout!'), timeInMS);\n promise.then(deferredPromise.resolve, deferredPromise.reject);\n return deferredPromise.promise;\n}\n","/**\n * @license\n * Copyright 2017 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/**\n * Returns a querystring-formatted string (e.g. &arg=val&arg2=val2) from a\n * params object (e.g. {arg: 'val', arg2: 'val2'})\n * Note: You must prepend it with ? when adding it to a URL.\n */\nexport function querystring(querystringParams: {\n [key: string]: string | number;\n}): string {\n const params = [];\n for (const [key, value] of Object.entries(querystringParams)) {\n if (Array.isArray(value)) {\n value.forEach(arrayVal => {\n params.push(\n encodeURIComponent(key) + '=' + encodeURIComponent(arrayVal)\n );\n });\n } else {\n params.push(encodeURIComponent(key) + '=' + encodeURIComponent(value));\n }\n }\n return params.length ? '&' + params.join('&') : '';\n}\n\n/**\n * Decodes a querystring (e.g. ?arg=val&arg2=val2) into a params object\n * (e.g. {arg: 'val', arg2: 'val2'})\n */\nexport function querystringDecode(querystring: string): Record {\n const obj: Record = {};\n const tokens = querystring.replace(/^\\?/, '').split('&');\n\n tokens.forEach(token => {\n if (token) {\n const [key, value] = token.split('=');\n obj[decodeURIComponent(key)] = decodeURIComponent(value);\n }\n });\n return obj;\n}\n\n/**\n * Extract the query string part of a URL, including the leading question mark (if present).\n */\nexport function extractQuerystring(url: string): string {\n const queryStart = url.indexOf('?');\n if (!queryStart) {\n return '';\n }\n const fragmentStart = url.indexOf('#', queryStart);\n return url.substring(\n queryStart,\n fragmentStart > 0 ? fragmentStart : undefined\n );\n}\n","/**\n * @license\n * Copyright 2017 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/**\n * @fileoverview SHA-1 cryptographic hash.\n * Variable names follow the notation in FIPS PUB 180-3:\n * http://csrc.nist.gov/publications/fips/fips180-3/fips180-3_final.pdf.\n *\n * Usage:\n * var sha1 = new sha1();\n * sha1.update(bytes);\n * var hash = sha1.digest();\n *\n * Performance:\n * Chrome 23: ~400 Mbit/s\n * Firefox 16: ~250 Mbit/s\n *\n */\n\n/**\n * SHA-1 cryptographic hash constructor.\n *\n * The properties declared here are discussed in the above algorithm document.\n * @constructor\n * @final\n * @struct\n */\nexport class Sha1 {\n /**\n * Holds the previous values of accumulated variables a-e in the compress_\n * function.\n * @private\n */\n private chain_: number[] = [];\n\n /**\n * A buffer holding the partially computed hash result.\n * @private\n */\n private buf_: number[] = [];\n\n /**\n * An array of 80 bytes, each a part of the message to be hashed. Referred to\n * as the message schedule in the docs.\n * @private\n */\n private W_: number[] = [];\n\n /**\n * Contains data needed to pad messages less than 64 bytes.\n * @private\n */\n private pad_: number[] = [];\n\n /**\n * @private {number}\n */\n private inbuf_: number = 0;\n\n /**\n * @private {number}\n */\n private total_: number = 0;\n\n blockSize: number;\n\n constructor() {\n this.blockSize = 512 / 8;\n\n this.pad_[0] = 128;\n for (let i = 1; i < this.blockSize; ++i) {\n this.pad_[i] = 0;\n }\n\n this.reset();\n }\n\n reset(): void {\n this.chain_[0] = 0x67452301;\n this.chain_[1] = 0xefcdab89;\n this.chain_[2] = 0x98badcfe;\n this.chain_[3] = 0x10325476;\n this.chain_[4] = 0xc3d2e1f0;\n\n this.inbuf_ = 0;\n this.total_ = 0;\n }\n\n /**\n * Internal compress helper function.\n * @param buf Block to compress.\n * @param offset Offset of the block in the buffer.\n * @private\n */\n compress_(buf: number[] | Uint8Array | string, offset?: number): void {\n if (!offset) {\n offset = 0;\n }\n\n const W = this.W_;\n\n // get 16 big endian words\n if (typeof buf === 'string') {\n for (let i = 0; i < 16; i++) {\n // TODO(user): [bug 8140122] Recent versions of Safari for Mac OS and iOS\n // have a bug that turns the post-increment ++ operator into pre-increment\n // during JIT compilation. We have code that depends heavily on SHA-1 for\n // correctness and which is affected by this bug, so I've removed all uses\n // of post-increment ++ in which the result value is used. We can revert\n // this change once the Safari bug\n // (https://bugs.webkit.org/show_bug.cgi?id=109036) has been fixed and\n // most clients have been updated.\n W[i] =\n (buf.charCodeAt(offset) << 24) |\n (buf.charCodeAt(offset + 1) << 16) |\n (buf.charCodeAt(offset + 2) << 8) |\n buf.charCodeAt(offset + 3);\n offset += 4;\n }\n } else {\n for (let i = 0; i < 16; i++) {\n W[i] =\n (buf[offset] << 24) |\n (buf[offset + 1] << 16) |\n (buf[offset + 2] << 8) |\n buf[offset + 3];\n offset += 4;\n }\n }\n\n // expand to 80 words\n for (let i = 16; i < 80; i++) {\n const t = W[i - 3] ^ W[i - 8] ^ W[i - 14] ^ W[i - 16];\n W[i] = ((t << 1) | (t >>> 31)) & 0xffffffff;\n }\n\n let a = this.chain_[0];\n let b = this.chain_[1];\n let c = this.chain_[2];\n let d = this.chain_[3];\n let e = this.chain_[4];\n let f, k;\n\n // TODO(user): Try to unroll this loop to speed up the computation.\n for (let i = 0; i < 80; i++) {\n if (i < 40) {\n if (i < 20) {\n f = d ^ (b & (c ^ d));\n k = 0x5a827999;\n } else {\n f = b ^ c ^ d;\n k = 0x6ed9eba1;\n }\n } else {\n if (i < 60) {\n f = (b & c) | (d & (b | c));\n k = 0x8f1bbcdc;\n } else {\n f = b ^ c ^ d;\n k = 0xca62c1d6;\n }\n }\n\n const t = (((a << 5) | (a >>> 27)) + f + e + k + W[i]) & 0xffffffff;\n e = d;\n d = c;\n c = ((b << 30) | (b >>> 2)) & 0xffffffff;\n b = a;\n a = t;\n }\n\n this.chain_[0] = (this.chain_[0] + a) & 0xffffffff;\n this.chain_[1] = (this.chain_[1] + b) & 0xffffffff;\n this.chain_[2] = (this.chain_[2] + c) & 0xffffffff;\n this.chain_[3] = (this.chain_[3] + d) & 0xffffffff;\n this.chain_[4] = (this.chain_[4] + e) & 0xffffffff;\n }\n\n update(bytes?: number[] | Uint8Array | string, length?: number): void {\n // TODO(johnlenz): tighten the function signature and remove this check\n if (bytes == null) {\n return;\n }\n\n if (length === undefined) {\n length = bytes.length;\n }\n\n const lengthMinusBlock = length - this.blockSize;\n let n = 0;\n // Using local instead of member variables gives ~5% speedup on Firefox 16.\n const buf = this.buf_;\n let inbuf = this.inbuf_;\n\n // The outer while loop should execute at most twice.\n while (n < length) {\n // When we have no data in the block to top up, we can directly process the\n // input buffer (assuming it contains sufficient data). This gives ~25%\n // speedup on Chrome 23 and ~15% speedup on Firefox 16, but requires that\n // the data is provided in large chunks (or in multiples of 64 bytes).\n if (inbuf === 0) {\n while (n <= lengthMinusBlock) {\n this.compress_(bytes, n);\n n += this.blockSize;\n }\n }\n\n if (typeof bytes === 'string') {\n while (n < length) {\n buf[inbuf] = bytes.charCodeAt(n);\n ++inbuf;\n ++n;\n if (inbuf === this.blockSize) {\n this.compress_(buf);\n inbuf = 0;\n // Jump to the outer loop so we use the full-block optimization.\n break;\n }\n }\n } else {\n while (n < length) {\n buf[inbuf] = bytes[n];\n ++inbuf;\n ++n;\n if (inbuf === this.blockSize) {\n this.compress_(buf);\n inbuf = 0;\n // Jump to the outer loop so we use the full-block optimization.\n break;\n }\n }\n }\n }\n\n this.inbuf_ = inbuf;\n this.total_ += length;\n }\n\n /** @override */\n digest(): number[] {\n const digest: number[] = [];\n let totalBits = this.total_ * 8;\n\n // Add pad 0x80 0x00*.\n if (this.inbuf_ < 56) {\n this.update(this.pad_, 56 - this.inbuf_);\n } else {\n this.update(this.pad_, this.blockSize - (this.inbuf_ - 56));\n }\n\n // Add # bits.\n for (let i = this.blockSize - 1; i >= 56; i--) {\n this.buf_[i] = totalBits & 255;\n totalBits /= 256; // Don't use bit-shifting here!\n }\n\n this.compress_(this.buf_);\n\n let n = 0;\n for (let i = 0; i < 5; i++) {\n for (let j = 24; j >= 0; j -= 8) {\n digest[n] = (this.chain_[i] >> j) & 255;\n ++n;\n }\n }\n return digest;\n }\n}\n","/**\n * @license\n * Copyright 2017 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nexport type NextFn = (value: T) => void;\nexport type ErrorFn = (error: Error) => void;\nexport type CompleteFn = () => void;\n\nexport interface Observer {\n // Called once for each value in a stream of values.\n next: NextFn;\n\n // A stream terminates by a single call to EITHER error() or complete().\n error: ErrorFn;\n\n // No events will be sent to next() once complete() is called.\n complete: CompleteFn;\n}\n\nexport type PartialObserver = Partial>;\n\n// TODO: Support also Unsubscribe.unsubscribe?\nexport type Unsubscribe = () => void;\n\n/**\n * The Subscribe interface has two forms - passing the inline function\n * callbacks, or a object interface with callback properties.\n */\nexport interface Subscribe {\n (next?: NextFn, error?: ErrorFn, complete?: CompleteFn): Unsubscribe;\n (observer: PartialObserver): Unsubscribe;\n}\n\nexport interface Observable {\n // Subscribe method\n subscribe: Subscribe;\n}\n\nexport type Executor = (observer: Observer) => void;\n\n/**\n * Helper to make a Subscribe function (just like Promise helps make a\n * Thenable).\n *\n * @param executor Function which can make calls to a single Observer\n * as a proxy.\n * @param onNoObservers Callback when count of Observers goes to zero.\n */\nexport function createSubscribe(\n executor: Executor,\n onNoObservers?: Executor\n): Subscribe {\n const proxy = new ObserverProxy(executor, onNoObservers);\n return proxy.subscribe.bind(proxy);\n}\n\n/**\n * Implement fan-out for any number of Observers attached via a subscribe\n * function.\n */\nclass ObserverProxy implements Observer {\n private observers: Array> | undefined = [];\n private unsubscribes: Unsubscribe[] = [];\n private onNoObservers: Executor | undefined;\n private observerCount = 0;\n // Micro-task scheduling by calling task.then().\n private task = Promise.resolve();\n private finalized = false;\n private finalError?: Error;\n\n /**\n * @param executor Function which can make calls to a single Observer\n * as a proxy.\n * @param onNoObservers Callback when count of Observers goes to zero.\n */\n constructor(executor: Executor, onNoObservers?: Executor) {\n this.onNoObservers = onNoObservers;\n // Call the executor asynchronously so subscribers that are called\n // synchronously after the creation of the subscribe function\n // can still receive the very first value generated in the executor.\n this.task\n .then(() => {\n executor(this);\n })\n .catch(e => {\n this.error(e);\n });\n }\n\n next(value: T): void {\n this.forEachObserver((observer: Observer) => {\n observer.next(value);\n });\n }\n\n error(error: Error): void {\n this.forEachObserver((observer: Observer) => {\n observer.error(error);\n });\n this.close(error);\n }\n\n complete(): void {\n this.forEachObserver((observer: Observer) => {\n observer.complete();\n });\n this.close();\n }\n\n /**\n * Subscribe function that can be used to add an Observer to the fan-out list.\n *\n * - We require that no event is sent to a subscriber sychronously to their\n * call to subscribe().\n */\n subscribe(\n nextOrObserver?: NextFn | PartialObserver,\n error?: ErrorFn,\n complete?: CompleteFn\n ): Unsubscribe {\n let observer: Observer;\n\n if (\n nextOrObserver === undefined &&\n error === undefined &&\n complete === undefined\n ) {\n throw new Error('Missing Observer.');\n }\n\n // Assemble an Observer object when passed as callback functions.\n if (\n implementsAnyMethods(nextOrObserver as { [key: string]: unknown }, [\n 'next',\n 'error',\n 'complete'\n ])\n ) {\n observer = nextOrObserver as Observer;\n } else {\n observer = {\n next: nextOrObserver as NextFn,\n error,\n complete\n } as Observer;\n }\n\n if (observer.next === undefined) {\n observer.next = noop as NextFn;\n }\n if (observer.error === undefined) {\n observer.error = noop as ErrorFn;\n }\n if (observer.complete === undefined) {\n observer.complete = noop as CompleteFn;\n }\n\n const unsub = this.unsubscribeOne.bind(this, this.observers!.length);\n\n // Attempt to subscribe to a terminated Observable - we\n // just respond to the Observer with the final error or complete\n // event.\n if (this.finalized) {\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\n this.task.then(() => {\n try {\n if (this.finalError) {\n observer.error(this.finalError);\n } else {\n observer.complete();\n }\n } catch (e) {\n // nothing\n }\n return;\n });\n }\n\n this.observers!.push(observer as Observer);\n\n return unsub;\n }\n\n // Unsubscribe is synchronous - we guarantee that no events are sent to\n // any unsubscribed Observer.\n private unsubscribeOne(i: number): void {\n if (this.observers === undefined || this.observers[i] === undefined) {\n return;\n }\n\n delete this.observers[i];\n\n this.observerCount -= 1;\n if (this.observerCount === 0 && this.onNoObservers !== undefined) {\n this.onNoObservers(this);\n }\n }\n\n private forEachObserver(fn: (observer: Observer) => void): void {\n if (this.finalized) {\n // Already closed by previous event....just eat the additional values.\n return;\n }\n\n // Since sendOne calls asynchronously - there is no chance that\n // this.observers will become undefined.\n for (let i = 0; i < this.observers!.length; i++) {\n this.sendOne(i, fn);\n }\n }\n\n // Call the Observer via one of it's callback function. We are careful to\n // confirm that the observe has not been unsubscribed since this asynchronous\n // function had been queued.\n private sendOne(i: number, fn: (observer: Observer) => void): void {\n // Execute the callback asynchronously\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\n this.task.then(() => {\n if (this.observers !== undefined && this.observers[i] !== undefined) {\n try {\n fn(this.observers[i]);\n } catch (e) {\n // Ignore exceptions raised in Observers or missing methods of an\n // Observer.\n // Log error to console. b/31404806\n if (typeof console !== 'undefined' && console.error) {\n console.error(e);\n }\n }\n }\n });\n }\n\n private close(err?: Error): void {\n if (this.finalized) {\n return;\n }\n this.finalized = true;\n if (err !== undefined) {\n this.finalError = err;\n }\n // Proxy is no longer needed - garbage collect references\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\n this.task.then(() => {\n this.observers = undefined;\n this.onNoObservers = undefined;\n });\n }\n}\n\n/** Turn synchronous function into one called asynchronously. */\n// eslint-disable-next-line @typescript-eslint/ban-types\nexport function async(fn: Function, onError?: ErrorFn): Function {\n return (...args: unknown[]) => {\n Promise.resolve(true)\n .then(() => {\n fn(...args);\n })\n .catch((error: Error) => {\n if (onError) {\n onError(error);\n }\n });\n };\n}\n\n/**\n * Return true if the object passed in implements any of the named methods.\n */\nfunction implementsAnyMethods(\n obj: { [key: string]: unknown },\n methods: string[]\n): boolean {\n if (typeof obj !== 'object' || obj === null) {\n return false;\n }\n\n for (const method of methods) {\n if (method in obj && typeof obj[method] === 'function') {\n return true;\n }\n }\n\n return false;\n}\n\nfunction noop(): void {\n // do nothing\n}\n","/**\n * @license\n * Copyright 2017 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/**\n * Check to make sure the appropriate number of arguments are provided for a public function.\n * Throws an error if it fails.\n *\n * @param fnName The function name\n * @param minCount The minimum number of arguments to allow for the function call\n * @param maxCount The maximum number of argument to allow for the function call\n * @param argCount The actual number of arguments provided.\n */\nexport const validateArgCount = function (\n fnName: string,\n minCount: number,\n maxCount: number,\n argCount: number\n): void {\n let argError;\n if (argCount < minCount) {\n argError = 'at least ' + minCount;\n } else if (argCount > maxCount) {\n argError = maxCount === 0 ? 'none' : 'no more than ' + maxCount;\n }\n if (argError) {\n const error =\n fnName +\n ' failed: Was called with ' +\n argCount +\n (argCount === 1 ? ' argument.' : ' arguments.') +\n ' Expects ' +\n argError +\n '.';\n throw new Error(error);\n }\n};\n\n/**\n * Generates a string to prefix an error message about failed argument validation\n *\n * @param fnName The function name\n * @param argName The name of the argument\n * @return The prefix to add to the error thrown for validation.\n */\nexport function errorPrefix(fnName: string, argName: string): string {\n return `${fnName} failed: ${argName} argument `;\n}\n\n/**\n * @param fnName\n * @param argumentNumber\n * @param namespace\n * @param optional\n */\nexport function validateNamespace(\n fnName: string,\n namespace: string,\n optional: boolean\n): void {\n if (optional && !namespace) {\n return;\n }\n if (typeof namespace !== 'string') {\n //TODO: I should do more validation here. We only allow certain chars in namespaces.\n throw new Error(\n errorPrefix(fnName, 'namespace') + 'must be a valid firebase namespace.'\n );\n }\n}\n\nexport function validateCallback(\n fnName: string,\n argumentName: string,\n // eslint-disable-next-line @typescript-eslint/ban-types\n callback: Function,\n optional: boolean\n): void {\n if (optional && !callback) {\n return;\n }\n if (typeof callback !== 'function') {\n throw new Error(\n errorPrefix(fnName, argumentName) + 'must be a valid function.'\n );\n }\n}\n\nexport function validateContextObject(\n fnName: string,\n argumentName: string,\n context: unknown,\n optional: boolean\n): void {\n if (optional && !context) {\n return;\n }\n if (typeof context !== 'object' || context === null) {\n throw new Error(\n errorPrefix(fnName, argumentName) + 'must be a valid context object.'\n );\n }\n}\n","/**\n * @license\n * Copyright 2017 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { assert } from './assert';\n\n// Code originally came from goog.crypt.stringToUtf8ByteArray, but for some reason they\n// automatically replaced '\\r\\n' with '\\n', and they didn't handle surrogate pairs,\n// so it's been modified.\n\n// Note that not all Unicode characters appear as single characters in JavaScript strings.\n// fromCharCode returns the UTF-16 encoding of a character - so some Unicode characters\n// use 2 characters in Javascript. All 4-byte UTF-8 characters begin with a first\n// character in the range 0xD800 - 0xDBFF (the first character of a so-called surrogate\n// pair).\n// See http://www.ecma-international.org/ecma-262/5.1/#sec-15.1.3\n\n/**\n * @param {string} str\n * @return {Array}\n */\nexport const stringToByteArray = function (str: string): number[] {\n const out: number[] = [];\n let p = 0;\n for (let i = 0; i < str.length; i++) {\n let c = str.charCodeAt(i);\n\n // Is this the lead surrogate in a surrogate pair?\n if (c >= 0xd800 && c <= 0xdbff) {\n const high = c - 0xd800; // the high 10 bits.\n i++;\n assert(i < str.length, 'Surrogate pair missing trail surrogate.');\n const low = str.charCodeAt(i) - 0xdc00; // the low 10 bits.\n c = 0x10000 + (high << 10) + low;\n }\n\n if (c < 128) {\n out[p++] = c;\n } else if (c < 2048) {\n out[p++] = (c >> 6) | 192;\n out[p++] = (c & 63) | 128;\n } else if (c < 65536) {\n out[p++] = (c >> 12) | 224;\n out[p++] = ((c >> 6) & 63) | 128;\n out[p++] = (c & 63) | 128;\n } else {\n out[p++] = (c >> 18) | 240;\n out[p++] = ((c >> 12) & 63) | 128;\n out[p++] = ((c >> 6) & 63) | 128;\n out[p++] = (c & 63) | 128;\n }\n }\n return out;\n};\n\n/**\n * Calculate length without actually converting; useful for doing cheaper validation.\n * @param {string} str\n * @return {number}\n */\nexport const stringLength = function (str: string): number {\n let p = 0;\n for (let i = 0; i < str.length; i++) {\n const c = str.charCodeAt(i);\n if (c < 128) {\n p++;\n } else if (c < 2048) {\n p += 2;\n } else if (c >= 0xd800 && c <= 0xdbff) {\n // Lead surrogate of a surrogate pair. The pair together will take 4 bytes to represent.\n p += 4;\n i++; // skip trail surrogate.\n } else {\n p += 3;\n }\n }\n return p;\n};\n","/**\n * @license\n * Copyright 2022 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/**\n * Copied from https://stackoverflow.com/a/2117523\n * Generates a new uuid.\n * @public\n */\nexport const uuidv4 = function (): string {\n return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, c => {\n const r = (Math.random() * 16) | 0,\n v = c === 'x' ? r : (r & 0x3) | 0x8;\n return v.toString(16);\n });\n};\n","/**\n * @license\n * Copyright 2019 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/**\n * The amount of milliseconds to exponentially increase.\n */\nconst DEFAULT_INTERVAL_MILLIS = 1000;\n\n/**\n * The factor to backoff by.\n * Should be a number greater than 1.\n */\nconst DEFAULT_BACKOFF_FACTOR = 2;\n\n/**\n * The maximum milliseconds to increase to.\n *\n *

Visible for testing\n */\nexport const MAX_VALUE_MILLIS = 4 * 60 * 60 * 1000; // Four hours, like iOS and Android.\n\n/**\n * The percentage of backoff time to randomize by.\n * See\n * http://go/safe-client-behavior#step-1-determine-the-appropriate-retry-interval-to-handle-spike-traffic\n * for context.\n *\n *

Visible for testing\n */\nexport const RANDOM_FACTOR = 0.5;\n\n/**\n * Based on the backoff method from\n * https://github.com/google/closure-library/blob/master/closure/goog/math/exponentialbackoff.js.\n * Extracted here so we don't need to pass metadata and a stateful ExponentialBackoff object around.\n */\nexport function calculateBackoffMillis(\n backoffCount: number,\n intervalMillis: number = DEFAULT_INTERVAL_MILLIS,\n backoffFactor: number = DEFAULT_BACKOFF_FACTOR\n): number {\n // Calculates an exponentially increasing value.\n // Deviation: calculates value from count and a constant interval, so we only need to save value\n // and count to restore state.\n const currBaseValue = intervalMillis * Math.pow(backoffFactor, backoffCount);\n\n // A random \"fuzz\" to avoid waves of retries.\n // Deviation: randomFactor is required.\n const randomWait = Math.round(\n // A fraction of the backoff value to add/subtract.\n // Deviation: changes multiplication order to improve readability.\n RANDOM_FACTOR *\n currBaseValue *\n // A random float (rounded to int by Math.round above) in the range [-1, 1]. Determines\n // if we add or subtract.\n (Math.random() - 0.5) *\n 2\n );\n\n // Limits backoff to max to avoid effectively permanent backoff.\n return Math.min(MAX_VALUE_MILLIS, currBaseValue + randomWait);\n}\n","/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/**\n * Provide English ordinal letters after a number\n */\nexport function ordinal(i: number): string {\n if (!Number.isFinite(i)) {\n return `${i}`;\n }\n return i + indicator(i);\n}\n\nfunction indicator(i: number): string {\n i = Math.abs(i);\n const cent = i % 100;\n if (cent >= 10 && cent <= 20) {\n return 'th';\n }\n const dec = i % 10;\n if (dec === 1) {\n return 'st';\n }\n if (dec === 2) {\n return 'nd';\n }\n if (dec === 3) {\n return 'rd';\n }\n return 'th';\n}\n","/**\n * @license\n * Copyright 2021 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport interface Compat {\n _delegate: T;\n}\n\nexport function getModularInstance(\n service: Compat | ExpService\n): ExpService {\n if (service && (service as Compat)._delegate) {\n return (service as Compat)._delegate;\n } else {\n return service as ExpService;\n }\n}\n","export function _assert_this_initialized(self) {\n if (self === void 0) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n\n return self;\n}\nexport { _assert_this_initialized as _ };\n","import { _set_prototype_of } from \"./_set_prototype_of.js\";\n\nexport function _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function\");\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } });\n\n if (superClass) _set_prototype_of(subClass, superClass);\n}\nexport { _inherits as _ };\n","export function _set_prototype_of(o, p) {\n _set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {\n o.__proto__ = p;\n\n return o;\n };\n\n return _set_prototype_of(o, p);\n}\nexport { _set_prototype_of as _ };\n","import { _construct } from \"./_construct.js\";\nimport { _get_prototype_of } from \"./_get_prototype_of.js\";\nimport { _is_native_function } from \"./_is_native_function.js\";\nimport { _set_prototype_of } from \"./_set_prototype_of.js\";\n\nexport function _wrap_native_super(Class) {\n var _cache = typeof Map === \"function\" ? new Map() : undefined;\n _wrap_native_super = function(Class) {\n if (Class === null || !_is_native_function(Class)) return Class;\n if (typeof Class !== \"function\") throw new TypeError(\"Super expression must either be null or a function\");\n if (typeof _cache !== \"undefined\") {\n if (_cache.has(Class)) return _cache.get(Class);\n _cache.set(Class, Wrapper);\n }\n\n function Wrapper() {\n return _construct(Class, arguments, _get_prototype_of(this).constructor);\n }\n Wrapper.prototype = Object.create(Class.prototype, { constructor: { value: Wrapper, enumerable: false, writable: true, configurable: true } });\n\n return _set_prototype_of(Wrapper, Class);\n };\n\n return _wrap_native_super(Class);\n}\nexport { _wrap_native_super as _ };\n","import { _is_native_reflect_construct } from \"./_is_native_reflect_construct.js\";\nimport { _set_prototype_of } from \"./_set_prototype_of.js\";\nexport function _construct(Parent, args, Class) {\n if (_is_native_reflect_construct()) _construct = Reflect.construct;\n else {\n _construct = function construct(Parent, args, Class) {\n var a = [null];\n a.push.apply(a, args);\n var Constructor = Function.bind.apply(Parent, a);\n var instance = new Constructor();\n\n if (Class) _set_prototype_of(instance, Class.prototype);\n\n return instance;\n };\n }\n\n return _construct.apply(null, arguments);\n}\nexport { _construct as _ };\n","export function _is_native_reflect_construct() {\n if (typeof Reflect === \"undefined\" || !Reflect.construct) return false;\n if (Reflect.construct.sham) return false;\n if (typeof Proxy === \"function\") return true;\n\n try {\n Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));\n\n return true;\n } catch (e) {\n return false;\n }\n}\nexport { _is_native_reflect_construct as _ };\n","export function _get_prototype_of(o) {\n _get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {\n return o.__proto__ || Object.getPrototypeOf(o);\n };\n\n return _get_prototype_of(o);\n}\nexport { _get_prototype_of as _ };\n","export function _is_native_function(fn) {\n return Function.toString.call(fn).indexOf(\"[native code]\") !== -1;\n}\nexport { _is_native_function as _ };\n","import { _get_prototype_of } from \"./_get_prototype_of.js\";\nimport { _is_native_reflect_construct } from \"./_is_native_reflect_construct.js\";\nimport { _possible_constructor_return } from \"./_possible_constructor_return.js\";\n\nexport function _create_super(Derived) {\n var hasNativeReflectConstruct = _is_native_reflect_construct();\n\n return function _createSuperInternal() {\n var Super = _get_prototype_of(Derived), result;\n\n if (hasNativeReflectConstruct) {\n var NewTarget = _get_prototype_of(this).constructor;\n result = Reflect.construct(Super, arguments, NewTarget);\n } else {\n result = Super.apply(this, arguments);\n }\n\n return _possible_constructor_return(this, result);\n };\n}\nexport { _create_super as _ };\n","import { _assert_this_initialized } from \"./_assert_this_initialized.js\";\nimport { _type_of } from \"./_type_of.js\";\n\nexport function _possible_constructor_return(self, call) {\n if (call && (_type_of(call) === \"object\" || typeof call === \"function\")) return call;\n\n return _assert_this_initialized(self);\n}\nexport { _possible_constructor_return as _ };\n","// shim for using process in browser\nvar process = module.exports = {};\n\n// cached from whatever global is present so that test runners that stub it\n// don't break things. But we need to wrap it in a try catch in case it is\n// wrapped in strict mode code which doesn't define any globals. It's inside a\n// function because try/catches deoptimize in certain engines.\n\nvar cachedSetTimeout;\nvar cachedClearTimeout;\n\nfunction defaultSetTimout() {\n throw new Error('setTimeout has not been defined');\n}\nfunction defaultClearTimeout () {\n throw new Error('clearTimeout has not been defined');\n}\n(function () {\n try {\n if (typeof setTimeout === 'function') {\n cachedSetTimeout = setTimeout;\n } else {\n cachedSetTimeout = defaultSetTimout;\n }\n } catch (e) {\n cachedSetTimeout = defaultSetTimout;\n }\n try {\n if (typeof clearTimeout === 'function') {\n cachedClearTimeout = clearTimeout;\n } else {\n cachedClearTimeout = defaultClearTimeout;\n }\n } catch (e) {\n cachedClearTimeout = defaultClearTimeout;\n }\n} ())\nfunction runTimeout(fun) {\n if (cachedSetTimeout === setTimeout) {\n //normal enviroments in sane situations\n return setTimeout(fun, 0);\n }\n // if setTimeout wasn't available but was latter defined\n if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {\n cachedSetTimeout = setTimeout;\n return setTimeout(fun, 0);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedSetTimeout(fun, 0);\n } catch(e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedSetTimeout.call(null, fun, 0);\n } catch(e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error\n return cachedSetTimeout.call(this, fun, 0);\n }\n }\n\n\n}\nfunction runClearTimeout(marker) {\n if (cachedClearTimeout === clearTimeout) {\n //normal enviroments in sane situations\n return clearTimeout(marker);\n }\n // if clearTimeout wasn't available but was latter defined\n if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {\n cachedClearTimeout = clearTimeout;\n return clearTimeout(marker);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedClearTimeout(marker);\n } catch (e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedClearTimeout.call(null, marker);\n } catch (e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.\n // Some versions of I.E. have different rules for clearTimeout vs setTimeout\n return cachedClearTimeout.call(this, marker);\n }\n }\n\n\n\n}\nvar queue = [];\nvar draining = false;\nvar currentQueue;\nvar queueIndex = -1;\n\nfunction cleanUpNextTick() {\n if (!draining || !currentQueue) {\n return;\n }\n draining = false;\n if (currentQueue.length) {\n queue = currentQueue.concat(queue);\n } else {\n queueIndex = -1;\n }\n if (queue.length) {\n drainQueue();\n }\n}\n\nfunction drainQueue() {\n if (draining) {\n return;\n }\n var timeout = runTimeout(cleanUpNextTick);\n draining = true;\n\n var len = queue.length;\n while(len) {\n currentQueue = queue;\n queue = [];\n while (++queueIndex < len) {\n if (currentQueue) {\n currentQueue[queueIndex].run();\n }\n }\n queueIndex = -1;\n len = queue.length;\n }\n currentQueue = null;\n draining = false;\n runClearTimeout(timeout);\n}\n\nprocess.nextTick = function (fun) {\n var args = new Array(arguments.length - 1);\n if (arguments.length > 1) {\n for (var i = 1; i < arguments.length; i++) {\n args[i - 1] = arguments[i];\n }\n }\n queue.push(new Item(fun, args));\n if (queue.length === 1 && !draining) {\n runTimeout(drainQueue);\n }\n};\n\n// v8 likes predictible objects\nfunction Item(fun, array) {\n this.fun = fun;\n this.array = array;\n}\nItem.prototype.run = function () {\n this.fun.apply(null, this.array);\n};\nprocess.title = 'browser';\nprocess.browser = true;\nprocess.env = {};\nprocess.argv = [];\nprocess.version = ''; // empty string to avoid regexp issues\nprocess.versions = {};\n\nfunction noop() {}\n\nprocess.on = noop;\nprocess.addListener = noop;\nprocess.once = noop;\nprocess.off = noop;\nprocess.removeListener = noop;\nprocess.removeAllListeners = noop;\nprocess.emit = noop;\nprocess.prependListener = noop;\nprocess.prependOnceListener = noop;\n\nprocess.listeners = function (name) { return [] }\n\nprocess.binding = function (name) {\n throw new Error('process.binding is not supported');\n};\n\nprocess.cwd = function () { return '/' };\nprocess.chdir = function (dir) {\n throw new Error('process.chdir is not supported');\n};\nprocess.umask = function() { return 0; };\n","/**\r\n * @license\r\n * Copyright 2017 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\n/**\r\n * A container for all of the Logger instances\r\n */\r\nconst instances = [];\r\n/**\r\n * The JS SDK supports 5 log levels and also allows a user the ability to\r\n * silence the logs altogether.\r\n *\r\n * The order is a follows:\r\n * DEBUG < VERBOSE < INFO < WARN < ERROR\r\n *\r\n * All of the log types above the current log level will be captured (i.e. if\r\n * you set the log level to `INFO`, errors will still be logged, but `DEBUG` and\r\n * `VERBOSE` logs will not)\r\n */\r\nvar LogLevel;\r\n(function (LogLevel) {\r\n LogLevel[LogLevel[\"DEBUG\"] = 0] = \"DEBUG\";\r\n LogLevel[LogLevel[\"VERBOSE\"] = 1] = \"VERBOSE\";\r\n LogLevel[LogLevel[\"INFO\"] = 2] = \"INFO\";\r\n LogLevel[LogLevel[\"WARN\"] = 3] = \"WARN\";\r\n LogLevel[LogLevel[\"ERROR\"] = 4] = \"ERROR\";\r\n LogLevel[LogLevel[\"SILENT\"] = 5] = \"SILENT\";\r\n})(LogLevel || (LogLevel = {}));\r\nconst levelStringToEnum = {\r\n 'debug': LogLevel.DEBUG,\r\n 'verbose': LogLevel.VERBOSE,\r\n 'info': LogLevel.INFO,\r\n 'warn': LogLevel.WARN,\r\n 'error': LogLevel.ERROR,\r\n 'silent': LogLevel.SILENT\r\n};\r\n/**\r\n * The default log level\r\n */\r\nconst defaultLogLevel = LogLevel.INFO;\r\n/**\r\n * By default, `console.debug` is not displayed in the developer console (in\r\n * chrome). To avoid forcing users to have to opt-in to these logs twice\r\n * (i.e. once for firebase, and once in the console), we are sending `DEBUG`\r\n * logs to the `console.log` function.\r\n */\r\nconst ConsoleMethod = {\r\n [LogLevel.DEBUG]: 'log',\r\n [LogLevel.VERBOSE]: 'log',\r\n [LogLevel.INFO]: 'info',\r\n [LogLevel.WARN]: 'warn',\r\n [LogLevel.ERROR]: 'error'\r\n};\r\n/**\r\n * The default log handler will forward DEBUG, VERBOSE, INFO, WARN, and ERROR\r\n * messages on to their corresponding console counterparts (if the log method\r\n * is supported by the current log level)\r\n */\r\nconst defaultLogHandler = (instance, logType, ...args) => {\r\n if (logType < instance.logLevel) {\r\n return;\r\n }\r\n const now = new Date().toISOString();\r\n const method = ConsoleMethod[logType];\r\n if (method) {\r\n console[method](`[${now}] ${instance.name}:`, ...args);\r\n }\r\n else {\r\n throw new Error(`Attempted to log a message with an invalid logType (value: ${logType})`);\r\n }\r\n};\r\nclass Logger {\r\n /**\r\n * Gives you an instance of a Logger to capture messages according to\r\n * Firebase's logging scheme.\r\n *\r\n * @param name The name that the logs will be associated with\r\n */\r\n constructor(name) {\r\n this.name = name;\r\n /**\r\n * The log level of the given Logger instance.\r\n */\r\n this._logLevel = defaultLogLevel;\r\n /**\r\n * The main (internal) log handler for the Logger instance.\r\n * Can be set to a new function in internal package code but not by user.\r\n */\r\n this._logHandler = defaultLogHandler;\r\n /**\r\n * The optional, additional, user-defined log handler for the Logger instance.\r\n */\r\n this._userLogHandler = null;\r\n /**\r\n * Capture the current instance for later use\r\n */\r\n instances.push(this);\r\n }\r\n get logLevel() {\r\n return this._logLevel;\r\n }\r\n set logLevel(val) {\r\n if (!(val in LogLevel)) {\r\n throw new TypeError(`Invalid value \"${val}\" assigned to \\`logLevel\\``);\r\n }\r\n this._logLevel = val;\r\n }\r\n // Workaround for setter/getter having to be the same type.\r\n setLogLevel(val) {\r\n this._logLevel = typeof val === 'string' ? levelStringToEnum[val] : val;\r\n }\r\n get logHandler() {\r\n return this._logHandler;\r\n }\r\n set logHandler(val) {\r\n if (typeof val !== 'function') {\r\n throw new TypeError('Value assigned to `logHandler` must be a function');\r\n }\r\n this._logHandler = val;\r\n }\r\n get userLogHandler() {\r\n return this._userLogHandler;\r\n }\r\n set userLogHandler(val) {\r\n this._userLogHandler = val;\r\n }\r\n /**\r\n * The functions below are all based on the `console` interface\r\n */\r\n debug(...args) {\r\n this._userLogHandler && this._userLogHandler(this, LogLevel.DEBUG, ...args);\r\n this._logHandler(this, LogLevel.DEBUG, ...args);\r\n }\r\n log(...args) {\r\n this._userLogHandler &&\r\n this._userLogHandler(this, LogLevel.VERBOSE, ...args);\r\n this._logHandler(this, LogLevel.VERBOSE, ...args);\r\n }\r\n info(...args) {\r\n this._userLogHandler && this._userLogHandler(this, LogLevel.INFO, ...args);\r\n this._logHandler(this, LogLevel.INFO, ...args);\r\n }\r\n warn(...args) {\r\n this._userLogHandler && this._userLogHandler(this, LogLevel.WARN, ...args);\r\n this._logHandler(this, LogLevel.WARN, ...args);\r\n }\r\n error(...args) {\r\n this._userLogHandler && this._userLogHandler(this, LogLevel.ERROR, ...args);\r\n this._logHandler(this, LogLevel.ERROR, ...args);\r\n }\r\n}\r\nfunction setLogLevel(level) {\r\n instances.forEach(inst => {\r\n inst.setLogLevel(level);\r\n });\r\n}\r\nfunction setUserLogHandler(logCallback, options) {\r\n for (const instance of instances) {\r\n let customLogLevel = null;\r\n if (options && options.level) {\r\n customLogLevel = levelStringToEnum[options.level];\r\n }\r\n if (logCallback === null) {\r\n instance.userLogHandler = null;\r\n }\r\n else {\r\n instance.userLogHandler = (instance, level, ...args) => {\r\n const message = args\r\n .map(arg => {\r\n if (arg == null) {\r\n return null;\r\n }\r\n else if (typeof arg === 'string') {\r\n return arg;\r\n }\r\n else if (typeof arg === 'number' || typeof arg === 'boolean') {\r\n return arg.toString();\r\n }\r\n else if (arg instanceof Error) {\r\n return arg.message;\r\n }\r\n else {\r\n try {\r\n return JSON.stringify(arg);\r\n }\r\n catch (ignored) {\r\n return null;\r\n }\r\n }\r\n })\r\n .filter(arg => arg)\r\n .join(' ');\r\n if (level >= (customLogLevel !== null && customLogLevel !== void 0 ? customLogLevel : instance.logLevel)) {\r\n logCallback({\r\n level: LogLevel[level].toLowerCase(),\r\n message,\r\n args,\r\n type: instance.name\r\n });\r\n }\r\n };\r\n }\r\n }\r\n}\n\nexport { LogLevel, Logger, setLogLevel, setUserLogHandler };\n//# sourceMappingURL=index.esm2017.js.map\n","/**\n * @license\n * Copyright 2017 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport type LogLevelString =\n | 'debug'\n | 'verbose'\n | 'info'\n | 'warn'\n | 'error'\n | 'silent';\n\nexport interface LogOptions {\n level: LogLevelString;\n}\n\nexport type LogCallback = (callbackParams: LogCallbackParams) => void;\n\nexport interface LogCallbackParams {\n level: LogLevelString;\n message: string;\n args: unknown[];\n type: string;\n}\n\n/**\n * A container for all of the Logger instances\n */\nexport const instances: Logger[] = [];\n\n/**\n * The JS SDK supports 5 log levels and also allows a user the ability to\n * silence the logs altogether.\n *\n * The order is a follows:\n * DEBUG < VERBOSE < INFO < WARN < ERROR\n *\n * All of the log types above the current log level will be captured (i.e. if\n * you set the log level to `INFO`, errors will still be logged, but `DEBUG` and\n * `VERBOSE` logs will not)\n */\nexport enum LogLevel {\n DEBUG,\n VERBOSE,\n INFO,\n WARN,\n ERROR,\n SILENT\n}\n\nconst levelStringToEnum: { [key in LogLevelString]: LogLevel } = {\n 'debug': LogLevel.DEBUG,\n 'verbose': LogLevel.VERBOSE,\n 'info': LogLevel.INFO,\n 'warn': LogLevel.WARN,\n 'error': LogLevel.ERROR,\n 'silent': LogLevel.SILENT\n};\n\n/**\n * The default log level\n */\nconst defaultLogLevel: LogLevel = LogLevel.INFO;\n\n/**\n * We allow users the ability to pass their own log handler. We will pass the\n * type of log, the current log level, and any other arguments passed (i.e. the\n * messages that the user wants to log) to this function.\n */\nexport type LogHandler = (\n loggerInstance: Logger,\n logType: LogLevel,\n ...args: unknown[]\n) => void;\n\n/**\n * By default, `console.debug` is not displayed in the developer console (in\n * chrome). To avoid forcing users to have to opt-in to these logs twice\n * (i.e. once for firebase, and once in the console), we are sending `DEBUG`\n * logs to the `console.log` function.\n */\nconst ConsoleMethod = {\n [LogLevel.DEBUG]: 'log',\n [LogLevel.VERBOSE]: 'log',\n [LogLevel.INFO]: 'info',\n [LogLevel.WARN]: 'warn',\n [LogLevel.ERROR]: 'error'\n};\n\n/**\n * The default log handler will forward DEBUG, VERBOSE, INFO, WARN, and ERROR\n * messages on to their corresponding console counterparts (if the log method\n * is supported by the current log level)\n */\nconst defaultLogHandler: LogHandler = (instance, logType, ...args): void => {\n if (logType < instance.logLevel) {\n return;\n }\n const now = new Date().toISOString();\n const method = ConsoleMethod[logType as keyof typeof ConsoleMethod];\n if (method) {\n console[method as 'log' | 'info' | 'warn' | 'error'](\n `[${now}] ${instance.name}:`,\n ...args\n );\n } else {\n throw new Error(\n `Attempted to log a message with an invalid logType (value: ${logType})`\n );\n }\n};\n\nexport class Logger {\n /**\n * Gives you an instance of a Logger to capture messages according to\n * Firebase's logging scheme.\n *\n * @param name The name that the logs will be associated with\n */\n constructor(public name: string) {\n /**\n * Capture the current instance for later use\n */\n instances.push(this);\n }\n\n /**\n * The log level of the given Logger instance.\n */\n private _logLevel = defaultLogLevel;\n\n get logLevel(): LogLevel {\n return this._logLevel;\n }\n\n set logLevel(val: LogLevel) {\n if (!(val in LogLevel)) {\n throw new TypeError(`Invalid value \"${val}\" assigned to \\`logLevel\\``);\n }\n this._logLevel = val;\n }\n\n // Workaround for setter/getter having to be the same type.\n setLogLevel(val: LogLevel | LogLevelString): void {\n this._logLevel = typeof val === 'string' ? levelStringToEnum[val] : val;\n }\n\n /**\n * The main (internal) log handler for the Logger instance.\n * Can be set to a new function in internal package code but not by user.\n */\n private _logHandler: LogHandler = defaultLogHandler;\n get logHandler(): LogHandler {\n return this._logHandler;\n }\n set logHandler(val: LogHandler) {\n if (typeof val !== 'function') {\n throw new TypeError('Value assigned to `logHandler` must be a function');\n }\n this._logHandler = val;\n }\n\n /**\n * The optional, additional, user-defined log handler for the Logger instance.\n */\n private _userLogHandler: LogHandler | null = null;\n get userLogHandler(): LogHandler | null {\n return this._userLogHandler;\n }\n set userLogHandler(val: LogHandler | null) {\n this._userLogHandler = val;\n }\n\n /**\n * The functions below are all based on the `console` interface\n */\n\n debug(...args: unknown[]): void {\n this._userLogHandler && this._userLogHandler(this, LogLevel.DEBUG, ...args);\n this._logHandler(this, LogLevel.DEBUG, ...args);\n }\n log(...args: unknown[]): void {\n this._userLogHandler &&\n this._userLogHandler(this, LogLevel.VERBOSE, ...args);\n this._logHandler(this, LogLevel.VERBOSE, ...args);\n }\n info(...args: unknown[]): void {\n this._userLogHandler && this._userLogHandler(this, LogLevel.INFO, ...args);\n this._logHandler(this, LogLevel.INFO, ...args);\n }\n warn(...args: unknown[]): void {\n this._userLogHandler && this._userLogHandler(this, LogLevel.WARN, ...args);\n this._logHandler(this, LogLevel.WARN, ...args);\n }\n error(...args: unknown[]): void {\n this._userLogHandler && this._userLogHandler(this, LogLevel.ERROR, ...args);\n this._logHandler(this, LogLevel.ERROR, ...args);\n }\n}\n\nexport function setLogLevel(level: LogLevelString | LogLevel): void {\n instances.forEach(inst => {\n inst.setLogLevel(level);\n });\n}\n\nexport function setUserLogHandler(\n logCallback: LogCallback | null,\n options?: LogOptions\n): void {\n for (const instance of instances) {\n let customLogLevel: LogLevel | null = null;\n if (options && options.level) {\n customLogLevel = levelStringToEnum[options.level];\n }\n if (logCallback === null) {\n instance.userLogHandler = null;\n } else {\n instance.userLogHandler = (\n instance: Logger,\n level: LogLevel,\n ...args: unknown[]\n ) => {\n const message = args\n .map(arg => {\n if (arg == null) {\n return null;\n } else if (typeof arg === 'string') {\n return arg;\n } else if (typeof arg === 'number' || typeof arg === 'boolean') {\n return arg.toString();\n } else if (arg instanceof Error) {\n return arg.message;\n } else {\n try {\n return JSON.stringify(arg);\n } catch (ignored) {\n return null;\n }\n }\n })\n .filter(arg => arg)\n .join(' ');\n if (level >= (customLogLevel ?? instance.logLevel)) {\n logCallback({\n level: LogLevel[level].toLowerCase() as LogLevelString,\n message,\n args,\n type: instance.name\n });\n }\n };\n }\n }\n}\n","import { w as wrap, r as replaceTraps } from './wrap-idb-value.js';\nexport { u as unwrap, w as wrap } from './wrap-idb-value.js';\n\n/**\n * Open a database.\n *\n * @param name Name of the database.\n * @param version Schema version.\n * @param callbacks Additional callbacks.\n */\nfunction openDB(name, version, { blocked, upgrade, blocking, terminated } = {}) {\n const request = indexedDB.open(name, version);\n const openPromise = wrap(request);\n if (upgrade) {\n request.addEventListener('upgradeneeded', (event) => {\n upgrade(wrap(request.result), event.oldVersion, event.newVersion, wrap(request.transaction), event);\n });\n }\n if (blocked) {\n request.addEventListener('blocked', (event) => blocked(\n // Casting due to https://github.com/microsoft/TypeScript-DOM-lib-generator/pull/1405\n event.oldVersion, event.newVersion, event));\n }\n openPromise\n .then((db) => {\n if (terminated)\n db.addEventListener('close', () => terminated());\n if (blocking) {\n db.addEventListener('versionchange', (event) => blocking(event.oldVersion, event.newVersion, event));\n }\n })\n .catch(() => { });\n return openPromise;\n}\n/**\n * Delete a database.\n *\n * @param name Name of the database.\n */\nfunction deleteDB(name, { blocked } = {}) {\n const request = indexedDB.deleteDatabase(name);\n if (blocked) {\n request.addEventListener('blocked', (event) => blocked(\n // Casting due to https://github.com/microsoft/TypeScript-DOM-lib-generator/pull/1405\n event.oldVersion, event));\n }\n return wrap(request).then(() => undefined);\n}\n\nconst readMethods = ['get', 'getKey', 'getAll', 'getAllKeys', 'count'];\nconst writeMethods = ['put', 'add', 'delete', 'clear'];\nconst cachedMethods = new Map();\nfunction getMethod(target, prop) {\n if (!(target instanceof IDBDatabase &&\n !(prop in target) &&\n typeof prop === 'string')) {\n return;\n }\n if (cachedMethods.get(prop))\n return cachedMethods.get(prop);\n const targetFuncName = prop.replace(/FromIndex$/, '');\n const useIndex = prop !== targetFuncName;\n const isWrite = writeMethods.includes(targetFuncName);\n if (\n // Bail if the target doesn't exist on the target. Eg, getAll isn't in Edge.\n !(targetFuncName in (useIndex ? IDBIndex : IDBObjectStore).prototype) ||\n !(isWrite || readMethods.includes(targetFuncName))) {\n return;\n }\n const method = async function (storeName, ...args) {\n // isWrite ? 'readwrite' : undefined gzipps better, but fails in Edge :(\n const tx = this.transaction(storeName, isWrite ? 'readwrite' : 'readonly');\n let target = tx.store;\n if (useIndex)\n target = target.index(args.shift());\n // Must reject if op rejects.\n // If it's a write operation, must reject if tx.done rejects.\n // Must reject with op rejection first.\n // Must resolve with op value.\n // Must handle both promises (no unhandled rejections)\n return (await Promise.all([\n target[targetFuncName](...args),\n isWrite && tx.done,\n ]))[0];\n };\n cachedMethods.set(prop, method);\n return method;\n}\nreplaceTraps((oldTraps) => ({\n ...oldTraps,\n get: (target, prop, receiver) => getMethod(target, prop) || oldTraps.get(target, prop, receiver),\n has: (target, prop) => !!getMethod(target, prop) || oldTraps.has(target, prop),\n}));\n\nexport { deleteDB, openDB };\n","function ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n if (enumerableOnly) {\n symbols = symbols.filter(function(sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n });\n }\n keys.push.apply(keys, symbols);\n }\n\n return keys;\n}\nexport function _object_spread_props(target, source) {\n source = source != null ? source : {};\n\n if (Object.getOwnPropertyDescriptors) Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));\n else {\n ownKeys(Object(source)).forEach(function(key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n\n return target;\n}\nexport { _object_spread_props as _ };\n","const instanceOfAny = (object, constructors) => constructors.some((c) => object instanceof c);\n\nlet idbProxyableTypes;\nlet cursorAdvanceMethods;\n// This is a function to prevent it throwing up in node environments.\nfunction getIdbProxyableTypes() {\n return (idbProxyableTypes ||\n (idbProxyableTypes = [\n IDBDatabase,\n IDBObjectStore,\n IDBIndex,\n IDBCursor,\n IDBTransaction,\n ]));\n}\n// This is a function to prevent it throwing up in node environments.\nfunction getCursorAdvanceMethods() {\n return (cursorAdvanceMethods ||\n (cursorAdvanceMethods = [\n IDBCursor.prototype.advance,\n IDBCursor.prototype.continue,\n IDBCursor.prototype.continuePrimaryKey,\n ]));\n}\nconst cursorRequestMap = new WeakMap();\nconst transactionDoneMap = new WeakMap();\nconst transactionStoreNamesMap = new WeakMap();\nconst transformCache = new WeakMap();\nconst reverseTransformCache = new WeakMap();\nfunction promisifyRequest(request) {\n const promise = new Promise((resolve, reject) => {\n const unlisten = () => {\n request.removeEventListener('success', success);\n request.removeEventListener('error', error);\n };\n const success = () => {\n resolve(wrap(request.result));\n unlisten();\n };\n const error = () => {\n reject(request.error);\n unlisten();\n };\n request.addEventListener('success', success);\n request.addEventListener('error', error);\n });\n promise\n .then((value) => {\n // Since cursoring reuses the IDBRequest (*sigh*), we cache it for later retrieval\n // (see wrapFunction).\n if (value instanceof IDBCursor) {\n cursorRequestMap.set(value, request);\n }\n // Catching to avoid \"Uncaught Promise exceptions\"\n })\n .catch(() => { });\n // This mapping exists in reverseTransformCache but doesn't doesn't exist in transformCache. This\n // is because we create many promises from a single IDBRequest.\n reverseTransformCache.set(promise, request);\n return promise;\n}\nfunction cacheDonePromiseForTransaction(tx) {\n // Early bail if we've already created a done promise for this transaction.\n if (transactionDoneMap.has(tx))\n return;\n const done = new Promise((resolve, reject) => {\n const unlisten = () => {\n tx.removeEventListener('complete', complete);\n tx.removeEventListener('error', error);\n tx.removeEventListener('abort', error);\n };\n const complete = () => {\n resolve();\n unlisten();\n };\n const error = () => {\n reject(tx.error || new DOMException('AbortError', 'AbortError'));\n unlisten();\n };\n tx.addEventListener('complete', complete);\n tx.addEventListener('error', error);\n tx.addEventListener('abort', error);\n });\n // Cache it for later retrieval.\n transactionDoneMap.set(tx, done);\n}\nlet idbProxyTraps = {\n get(target, prop, receiver) {\n if (target instanceof IDBTransaction) {\n // Special handling for transaction.done.\n if (prop === 'done')\n return transactionDoneMap.get(target);\n // Polyfill for objectStoreNames because of Edge.\n if (prop === 'objectStoreNames') {\n return target.objectStoreNames || transactionStoreNamesMap.get(target);\n }\n // Make tx.store return the only store in the transaction, or undefined if there are many.\n if (prop === 'store') {\n return receiver.objectStoreNames[1]\n ? undefined\n : receiver.objectStore(receiver.objectStoreNames[0]);\n }\n }\n // Else transform whatever we get back.\n return wrap(target[prop]);\n },\n set(target, prop, value) {\n target[prop] = value;\n return true;\n },\n has(target, prop) {\n if (target instanceof IDBTransaction &&\n (prop === 'done' || prop === 'store')) {\n return true;\n }\n return prop in target;\n },\n};\nfunction replaceTraps(callback) {\n idbProxyTraps = callback(idbProxyTraps);\n}\nfunction wrapFunction(func) {\n // Due to expected object equality (which is enforced by the caching in `wrap`), we\n // only create one new func per func.\n // Edge doesn't support objectStoreNames (booo), so we polyfill it here.\n if (func === IDBDatabase.prototype.transaction &&\n !('objectStoreNames' in IDBTransaction.prototype)) {\n return function (storeNames, ...args) {\n const tx = func.call(unwrap(this), storeNames, ...args);\n transactionStoreNamesMap.set(tx, storeNames.sort ? storeNames.sort() : [storeNames]);\n return wrap(tx);\n };\n }\n // Cursor methods are special, as the behaviour is a little more different to standard IDB. In\n // IDB, you advance the cursor and wait for a new 'success' on the IDBRequest that gave you the\n // cursor. It's kinda like a promise that can resolve with many values. That doesn't make sense\n // with real promises, so each advance methods returns a new promise for the cursor object, or\n // undefined if the end of the cursor has been reached.\n if (getCursorAdvanceMethods().includes(func)) {\n return function (...args) {\n // Calling the original function with the proxy as 'this' causes ILLEGAL INVOCATION, so we use\n // the original object.\n func.apply(unwrap(this), args);\n return wrap(cursorRequestMap.get(this));\n };\n }\n return function (...args) {\n // Calling the original function with the proxy as 'this' causes ILLEGAL INVOCATION, so we use\n // the original object.\n return wrap(func.apply(unwrap(this), args));\n };\n}\nfunction transformCachableValue(value) {\n if (typeof value === 'function')\n return wrapFunction(value);\n // This doesn't return, it just creates a 'done' promise for the transaction,\n // which is later returned for transaction.done (see idbObjectHandler).\n if (value instanceof IDBTransaction)\n cacheDonePromiseForTransaction(value);\n if (instanceOfAny(value, getIdbProxyableTypes()))\n return new Proxy(value, idbProxyTraps);\n // Return the same value back if we're not going to transform it.\n return value;\n}\nfunction wrap(value) {\n // We sometimes generate multiple promises from a single IDBRequest (eg when cursoring), because\n // IDB is weird and a single IDBRequest can yield many responses, so these can't be cached.\n if (value instanceof IDBRequest)\n return promisifyRequest(value);\n // If we've already transformed this value before, reuse the transformed value.\n // This is faster, but it also provides object equality.\n if (transformCache.has(value))\n return transformCache.get(value);\n const newValue = transformCachableValue(value);\n // Not all types are transformed.\n // These may be primitive types, so they can't be WeakMap keys.\n if (newValue !== value) {\n transformCache.set(value, newValue);\n reverseTransformCache.set(newValue, value);\n }\n return newValue;\n}\nconst unwrap = (value) => reverseTransformCache.get(value);\n\nexport { reverseTransformCache as a, instanceOfAny as i, replaceTraps as r, unwrap as u, wrap as w };\n","import { ErrorFactory, isBrowserExtension, isMobileCordova, isReactNative, FirebaseError, querystring, getModularInstance, base64Decode, getUA, isIE, createSubscribe, deepEqual, querystringDecode, extractQuerystring, isEmpty, getExperimentalSetting, getDefaultEmulatorHost } from '@firebase/util';\nimport { SDK_VERSION, _getProvider, _registerComponent, registerVersion, getApp } from '@firebase/app';\nimport { Logger, LogLevel } from '@firebase/logger';\nimport { __rest } from 'tslib';\nimport { Component } from '@firebase/component';\n\n/**\r\n * @license\r\n * Copyright 2021 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\n/**\r\n * An enum of factors that may be used for multifactor authentication.\r\n *\r\n * @public\r\n */\r\nconst FactorId = {\r\n /** Phone as second factor */\r\n PHONE: 'phone',\r\n TOTP: 'totp'\r\n};\r\n/**\r\n * Enumeration of supported providers.\r\n *\r\n * @public\r\n */\r\nconst ProviderId = {\r\n /** Facebook provider ID */\r\n FACEBOOK: 'facebook.com',\r\n /** GitHub provider ID */\r\n GITHUB: 'github.com',\r\n /** Google provider ID */\r\n GOOGLE: 'google.com',\r\n /** Password provider */\r\n PASSWORD: 'password',\r\n /** Phone provider */\r\n PHONE: 'phone',\r\n /** Twitter provider ID */\r\n TWITTER: 'twitter.com'\r\n};\r\n/**\r\n * Enumeration of supported sign-in methods.\r\n *\r\n * @public\r\n */\r\nconst SignInMethod = {\r\n /** Email link sign in method */\r\n EMAIL_LINK: 'emailLink',\r\n /** Email/password sign in method */\r\n EMAIL_PASSWORD: 'password',\r\n /** Facebook sign in method */\r\n FACEBOOK: 'facebook.com',\r\n /** GitHub sign in method */\r\n GITHUB: 'github.com',\r\n /** Google sign in method */\r\n GOOGLE: 'google.com',\r\n /** Phone sign in method */\r\n PHONE: 'phone',\r\n /** Twitter sign in method */\r\n TWITTER: 'twitter.com'\r\n};\r\n/**\r\n * Enumeration of supported operation types.\r\n *\r\n * @public\r\n */\r\nconst OperationType = {\r\n /** Operation involving linking an additional provider to an already signed-in user. */\r\n LINK: 'link',\r\n /** Operation involving using a provider to reauthenticate an already signed-in user. */\r\n REAUTHENTICATE: 'reauthenticate',\r\n /** Operation involving signing in a user. */\r\n SIGN_IN: 'signIn'\r\n};\r\n/**\r\n * An enumeration of the possible email action types.\r\n *\r\n * @public\r\n */\r\nconst ActionCodeOperation = {\r\n /** The email link sign-in action. */\r\n EMAIL_SIGNIN: 'EMAIL_SIGNIN',\r\n /** The password reset action. */\r\n PASSWORD_RESET: 'PASSWORD_RESET',\r\n /** The email revocation action. */\r\n RECOVER_EMAIL: 'RECOVER_EMAIL',\r\n /** The revert second factor addition email action. */\r\n REVERT_SECOND_FACTOR_ADDITION: 'REVERT_SECOND_FACTOR_ADDITION',\r\n /** The revert second factor addition email action. */\r\n VERIFY_AND_CHANGE_EMAIL: 'VERIFY_AND_CHANGE_EMAIL',\r\n /** The email verification action. */\r\n VERIFY_EMAIL: 'VERIFY_EMAIL'\r\n};\n\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\nfunction _debugErrorMap() {\r\n return {\r\n [\"admin-restricted-operation\" /* AuthErrorCode.ADMIN_ONLY_OPERATION */]: 'This operation is restricted to administrators only.',\r\n [\"argument-error\" /* AuthErrorCode.ARGUMENT_ERROR */]: '',\r\n [\"app-not-authorized\" /* AuthErrorCode.APP_NOT_AUTHORIZED */]: \"This app, identified by the domain where it's hosted, is not \" +\r\n 'authorized to use Firebase Authentication with the provided API key. ' +\r\n 'Review your key configuration in the Google API console.',\r\n [\"app-not-installed\" /* AuthErrorCode.APP_NOT_INSTALLED */]: 'The requested mobile application corresponding to the identifier (' +\r\n 'Android package name or iOS bundle ID) provided is not installed on ' +\r\n 'this device.',\r\n [\"captcha-check-failed\" /* AuthErrorCode.CAPTCHA_CHECK_FAILED */]: 'The reCAPTCHA response token provided is either invalid, expired, ' +\r\n 'already used or the domain associated with it does not match the list ' +\r\n 'of whitelisted domains.',\r\n [\"code-expired\" /* AuthErrorCode.CODE_EXPIRED */]: 'The SMS code has expired. Please re-send the verification code to try ' +\r\n 'again.',\r\n [\"cordova-not-ready\" /* AuthErrorCode.CORDOVA_NOT_READY */]: 'Cordova framework is not ready.',\r\n [\"cors-unsupported\" /* AuthErrorCode.CORS_UNSUPPORTED */]: 'This browser is not supported.',\r\n [\"credential-already-in-use\" /* AuthErrorCode.CREDENTIAL_ALREADY_IN_USE */]: 'This credential is already associated with a different user account.',\r\n [\"custom-token-mismatch\" /* AuthErrorCode.CREDENTIAL_MISMATCH */]: 'The custom token corresponds to a different audience.',\r\n [\"requires-recent-login\" /* AuthErrorCode.CREDENTIAL_TOO_OLD_LOGIN_AGAIN */]: 'This operation is sensitive and requires recent authentication. Log in ' +\r\n 'again before retrying this request.',\r\n [\"dependent-sdk-initialized-before-auth\" /* AuthErrorCode.DEPENDENT_SDK_INIT_BEFORE_AUTH */]: 'Another Firebase SDK was initialized and is trying to use Auth before Auth is ' +\r\n 'initialized. Please be sure to call `initializeAuth` or `getAuth` before ' +\r\n 'starting any other Firebase SDK.',\r\n [\"dynamic-link-not-activated\" /* AuthErrorCode.DYNAMIC_LINK_NOT_ACTIVATED */]: 'Please activate Dynamic Links in the Firebase Console and agree to the terms and ' +\r\n 'conditions.',\r\n [\"email-change-needs-verification\" /* AuthErrorCode.EMAIL_CHANGE_NEEDS_VERIFICATION */]: 'Multi-factor users must always have a verified email.',\r\n [\"email-already-in-use\" /* AuthErrorCode.EMAIL_EXISTS */]: 'The email address is already in use by another account.',\r\n [\"emulator-config-failed\" /* AuthErrorCode.EMULATOR_CONFIG_FAILED */]: 'Auth instance has already been used to make a network call. Auth can ' +\r\n 'no longer be configured to use the emulator. Try calling ' +\r\n '\"connectAuthEmulator()\" sooner.',\r\n [\"expired-action-code\" /* AuthErrorCode.EXPIRED_OOB_CODE */]: 'The action code has expired.',\r\n [\"cancelled-popup-request\" /* AuthErrorCode.EXPIRED_POPUP_REQUEST */]: 'This operation has been cancelled due to another conflicting popup being opened.',\r\n [\"internal-error\" /* AuthErrorCode.INTERNAL_ERROR */]: 'An internal AuthError has occurred.',\r\n [\"invalid-app-credential\" /* AuthErrorCode.INVALID_APP_CREDENTIAL */]: 'The phone verification request contains an invalid application verifier.' +\r\n ' The reCAPTCHA token response is either invalid or expired.',\r\n [\"invalid-app-id\" /* AuthErrorCode.INVALID_APP_ID */]: 'The mobile app identifier is not registed for the current project.',\r\n [\"invalid-user-token\" /* AuthErrorCode.INVALID_AUTH */]: \"This user's credential isn't valid for this project. This can happen \" +\r\n \"if the user's token has been tampered with, or if the user isn't for \" +\r\n 'the project associated with this API key.',\r\n [\"invalid-auth-event\" /* AuthErrorCode.INVALID_AUTH_EVENT */]: 'An internal AuthError has occurred.',\r\n [\"invalid-verification-code\" /* AuthErrorCode.INVALID_CODE */]: 'The SMS verification code used to create the phone auth credential is ' +\r\n 'invalid. Please resend the verification code sms and be sure to use the ' +\r\n 'verification code provided by the user.',\r\n [\"invalid-continue-uri\" /* AuthErrorCode.INVALID_CONTINUE_URI */]: 'The continue URL provided in the request is invalid.',\r\n [\"invalid-cordova-configuration\" /* AuthErrorCode.INVALID_CORDOVA_CONFIGURATION */]: 'The following Cordova plugins must be installed to enable OAuth sign-in: ' +\r\n 'cordova-plugin-buildinfo, cordova-universal-links-plugin, ' +\r\n 'cordova-plugin-browsertab, cordova-plugin-inappbrowser and ' +\r\n 'cordova-plugin-customurlscheme.',\r\n [\"invalid-custom-token\" /* AuthErrorCode.INVALID_CUSTOM_TOKEN */]: 'The custom token format is incorrect. Please check the documentation.',\r\n [\"invalid-dynamic-link-domain\" /* AuthErrorCode.INVALID_DYNAMIC_LINK_DOMAIN */]: 'The provided dynamic link domain is not configured or authorized for the current project.',\r\n [\"invalid-email\" /* AuthErrorCode.INVALID_EMAIL */]: 'The email address is badly formatted.',\r\n [\"invalid-emulator-scheme\" /* AuthErrorCode.INVALID_EMULATOR_SCHEME */]: 'Emulator URL must start with a valid scheme (http:// or https://).',\r\n [\"invalid-api-key\" /* AuthErrorCode.INVALID_API_KEY */]: 'Your API key is invalid, please check you have copied it correctly.',\r\n [\"invalid-cert-hash\" /* AuthErrorCode.INVALID_CERT_HASH */]: 'The SHA-1 certificate hash provided is invalid.',\r\n [\"invalid-credential\" /* AuthErrorCode.INVALID_CREDENTIAL */]: 'The supplied auth credential is incorrect, malformed or has expired.',\r\n [\"invalid-message-payload\" /* AuthErrorCode.INVALID_MESSAGE_PAYLOAD */]: 'The email template corresponding to this action contains invalid characters in its message. ' +\r\n 'Please fix by going to the Auth email templates section in the Firebase Console.',\r\n [\"invalid-multi-factor-session\" /* AuthErrorCode.INVALID_MFA_SESSION */]: 'The request does not contain a valid proof of first factor successful sign-in.',\r\n [\"invalid-oauth-provider\" /* AuthErrorCode.INVALID_OAUTH_PROVIDER */]: 'EmailAuthProvider is not supported for this operation. This operation ' +\r\n 'only supports OAuth providers.',\r\n [\"invalid-oauth-client-id\" /* AuthErrorCode.INVALID_OAUTH_CLIENT_ID */]: 'The OAuth client ID provided is either invalid or does not match the ' +\r\n 'specified API key.',\r\n [\"unauthorized-domain\" /* AuthErrorCode.INVALID_ORIGIN */]: 'This domain is not authorized for OAuth operations for your Firebase ' +\r\n 'project. Edit the list of authorized domains from the Firebase console.',\r\n [\"invalid-action-code\" /* AuthErrorCode.INVALID_OOB_CODE */]: 'The action code is invalid. This can happen if the code is malformed, ' +\r\n 'expired, or has already been used.',\r\n [\"wrong-password\" /* AuthErrorCode.INVALID_PASSWORD */]: 'The password is invalid or the user does not have a password.',\r\n [\"invalid-persistence-type\" /* AuthErrorCode.INVALID_PERSISTENCE */]: 'The specified persistence type is invalid. It can only be local, session or none.',\r\n [\"invalid-phone-number\" /* AuthErrorCode.INVALID_PHONE_NUMBER */]: 'The format of the phone number provided is incorrect. Please enter the ' +\r\n 'phone number in a format that can be parsed into E.164 format. E.164 ' +\r\n 'phone numbers are written in the format [+][country code][subscriber ' +\r\n 'number including area code].',\r\n [\"invalid-provider-id\" /* AuthErrorCode.INVALID_PROVIDER_ID */]: 'The specified provider ID is invalid.',\r\n [\"invalid-recipient-email\" /* AuthErrorCode.INVALID_RECIPIENT_EMAIL */]: 'The email corresponding to this action failed to send as the provided ' +\r\n 'recipient email address is invalid.',\r\n [\"invalid-sender\" /* AuthErrorCode.INVALID_SENDER */]: 'The email template corresponding to this action contains an invalid sender email or name. ' +\r\n 'Please fix by going to the Auth email templates section in the Firebase Console.',\r\n [\"invalid-verification-id\" /* AuthErrorCode.INVALID_SESSION_INFO */]: 'The verification ID used to create the phone auth credential is invalid.',\r\n [\"invalid-tenant-id\" /* AuthErrorCode.INVALID_TENANT_ID */]: \"The Auth instance's tenant ID is invalid.\",\r\n [\"login-blocked\" /* AuthErrorCode.LOGIN_BLOCKED */]: 'Login blocked by user-provided method: {$originalMessage}',\r\n [\"missing-android-pkg-name\" /* AuthErrorCode.MISSING_ANDROID_PACKAGE_NAME */]: 'An Android Package Name must be provided if the Android App is required to be installed.',\r\n [\"auth-domain-config-required\" /* AuthErrorCode.MISSING_AUTH_DOMAIN */]: 'Be sure to include authDomain when calling firebase.initializeApp(), ' +\r\n 'by following the instructions in the Firebase console.',\r\n [\"missing-app-credential\" /* AuthErrorCode.MISSING_APP_CREDENTIAL */]: 'The phone verification request is missing an application verifier ' +\r\n 'assertion. A reCAPTCHA response token needs to be provided.',\r\n [\"missing-verification-code\" /* AuthErrorCode.MISSING_CODE */]: 'The phone auth credential was created with an empty SMS verification code.',\r\n [\"missing-continue-uri\" /* AuthErrorCode.MISSING_CONTINUE_URI */]: 'A continue URL must be provided in the request.',\r\n [\"missing-iframe-start\" /* AuthErrorCode.MISSING_IFRAME_START */]: 'An internal AuthError has occurred.',\r\n [\"missing-ios-bundle-id\" /* AuthErrorCode.MISSING_IOS_BUNDLE_ID */]: 'An iOS Bundle ID must be provided if an App Store ID is provided.',\r\n [\"missing-or-invalid-nonce\" /* AuthErrorCode.MISSING_OR_INVALID_NONCE */]: 'The request does not contain a valid nonce. This can occur if the ' +\r\n 'SHA-256 hash of the provided raw nonce does not match the hashed nonce ' +\r\n 'in the ID token payload.',\r\n [\"missing-password\" /* AuthErrorCode.MISSING_PASSWORD */]: 'A non-empty password must be provided',\r\n [\"missing-multi-factor-info\" /* AuthErrorCode.MISSING_MFA_INFO */]: 'No second factor identifier is provided.',\r\n [\"missing-multi-factor-session\" /* AuthErrorCode.MISSING_MFA_SESSION */]: 'The request is missing proof of first factor successful sign-in.',\r\n [\"missing-phone-number\" /* AuthErrorCode.MISSING_PHONE_NUMBER */]: 'To send verification codes, provide a phone number for the recipient.',\r\n [\"missing-verification-id\" /* AuthErrorCode.MISSING_SESSION_INFO */]: 'The phone auth credential was created with an empty verification ID.',\r\n [\"app-deleted\" /* AuthErrorCode.MODULE_DESTROYED */]: 'This instance of FirebaseApp has been deleted.',\r\n [\"multi-factor-info-not-found\" /* AuthErrorCode.MFA_INFO_NOT_FOUND */]: 'The user does not have a second factor matching the identifier provided.',\r\n [\"multi-factor-auth-required\" /* AuthErrorCode.MFA_REQUIRED */]: 'Proof of ownership of a second factor is required to complete sign-in.',\r\n [\"account-exists-with-different-credential\" /* AuthErrorCode.NEED_CONFIRMATION */]: 'An account already exists with the same email address but different ' +\r\n 'sign-in credentials. Sign in using a provider associated with this ' +\r\n 'email address.',\r\n [\"network-request-failed\" /* AuthErrorCode.NETWORK_REQUEST_FAILED */]: 'A network AuthError (such as timeout, interrupted connection or unreachable host) has occurred.',\r\n [\"no-auth-event\" /* AuthErrorCode.NO_AUTH_EVENT */]: 'An internal AuthError has occurred.',\r\n [\"no-such-provider\" /* AuthErrorCode.NO_SUCH_PROVIDER */]: 'User was not linked to an account with the given provider.',\r\n [\"null-user\" /* AuthErrorCode.NULL_USER */]: 'A null user object was provided as the argument for an operation which ' +\r\n 'requires a non-null user object.',\r\n [\"operation-not-allowed\" /* AuthErrorCode.OPERATION_NOT_ALLOWED */]: 'The given sign-in provider is disabled for this Firebase project. ' +\r\n 'Enable it in the Firebase console, under the sign-in method tab of the ' +\r\n 'Auth section.',\r\n [\"operation-not-supported-in-this-environment\" /* AuthErrorCode.OPERATION_NOT_SUPPORTED */]: 'This operation is not supported in the environment this application is ' +\r\n 'running on. \"location.protocol\" must be http, https or chrome-extension' +\r\n ' and web storage must be enabled.',\r\n [\"popup-blocked\" /* AuthErrorCode.POPUP_BLOCKED */]: 'Unable to establish a connection with the popup. It may have been blocked by the browser.',\r\n [\"popup-closed-by-user\" /* AuthErrorCode.POPUP_CLOSED_BY_USER */]: 'The popup has been closed by the user before finalizing the operation.',\r\n [\"provider-already-linked\" /* AuthErrorCode.PROVIDER_ALREADY_LINKED */]: 'User can only be linked to one identity for the given provider.',\r\n [\"quota-exceeded\" /* AuthErrorCode.QUOTA_EXCEEDED */]: \"The project's quota for this operation has been exceeded.\",\r\n [\"redirect-cancelled-by-user\" /* AuthErrorCode.REDIRECT_CANCELLED_BY_USER */]: 'The redirect operation has been cancelled by the user before finalizing.',\r\n [\"redirect-operation-pending\" /* AuthErrorCode.REDIRECT_OPERATION_PENDING */]: 'A redirect sign-in operation is already pending.',\r\n [\"rejected-credential\" /* AuthErrorCode.REJECTED_CREDENTIAL */]: 'The request contains malformed or mismatching credentials.',\r\n [\"second-factor-already-in-use\" /* AuthErrorCode.SECOND_FACTOR_ALREADY_ENROLLED */]: 'The second factor is already enrolled on this account.',\r\n [\"maximum-second-factor-count-exceeded\" /* AuthErrorCode.SECOND_FACTOR_LIMIT_EXCEEDED */]: 'The maximum allowed number of second factors on a user has been exceeded.',\r\n [\"tenant-id-mismatch\" /* AuthErrorCode.TENANT_ID_MISMATCH */]: \"The provided tenant ID does not match the Auth instance's tenant ID\",\r\n [\"timeout\" /* AuthErrorCode.TIMEOUT */]: 'The operation has timed out.',\r\n [\"user-token-expired\" /* AuthErrorCode.TOKEN_EXPIRED */]: \"The user's credential is no longer valid. The user must sign in again.\",\r\n [\"too-many-requests\" /* AuthErrorCode.TOO_MANY_ATTEMPTS_TRY_LATER */]: 'We have blocked all requests from this device due to unusual activity. ' +\r\n 'Try again later.',\r\n [\"unauthorized-continue-uri\" /* AuthErrorCode.UNAUTHORIZED_DOMAIN */]: 'The domain of the continue URL is not whitelisted. Please whitelist ' +\r\n 'the domain in the Firebase console.',\r\n [\"unsupported-first-factor\" /* AuthErrorCode.UNSUPPORTED_FIRST_FACTOR */]: 'Enrolling a second factor or signing in with a multi-factor account requires sign-in with a supported first factor.',\r\n [\"unsupported-persistence-type\" /* AuthErrorCode.UNSUPPORTED_PERSISTENCE */]: 'The current environment does not support the specified persistence type.',\r\n [\"unsupported-tenant-operation\" /* AuthErrorCode.UNSUPPORTED_TENANT_OPERATION */]: 'This operation is not supported in a multi-tenant context.',\r\n [\"unverified-email\" /* AuthErrorCode.UNVERIFIED_EMAIL */]: 'The operation requires a verified email.',\r\n [\"user-cancelled\" /* AuthErrorCode.USER_CANCELLED */]: 'The user did not grant your application the permissions it requested.',\r\n [\"user-not-found\" /* AuthErrorCode.USER_DELETED */]: 'There is no user record corresponding to this identifier. The user may ' +\r\n 'have been deleted.',\r\n [\"user-disabled\" /* AuthErrorCode.USER_DISABLED */]: 'The user account has been disabled by an administrator.',\r\n [\"user-mismatch\" /* AuthErrorCode.USER_MISMATCH */]: 'The supplied credentials do not correspond to the previously signed in user.',\r\n [\"user-signed-out\" /* AuthErrorCode.USER_SIGNED_OUT */]: '',\r\n [\"weak-password\" /* AuthErrorCode.WEAK_PASSWORD */]: 'The password must be 6 characters long or more.',\r\n [\"web-storage-unsupported\" /* AuthErrorCode.WEB_STORAGE_UNSUPPORTED */]: 'This browser is not supported or 3rd party cookies and data may be disabled.',\r\n [\"already-initialized\" /* AuthErrorCode.ALREADY_INITIALIZED */]: 'initializeAuth() has already been called with ' +\r\n 'different options. To avoid this error, call initializeAuth() with the ' +\r\n 'same options as when it was originally called, or call getAuth() to return the' +\r\n ' already initialized instance.',\r\n [\"missing-recaptcha-token\" /* AuthErrorCode.MISSING_RECAPTCHA_TOKEN */]: 'The reCAPTCHA token is missing when sending request to the backend.',\r\n [\"invalid-recaptcha-token\" /* AuthErrorCode.INVALID_RECAPTCHA_TOKEN */]: 'The reCAPTCHA token is invalid when sending request to the backend.',\r\n [\"invalid-recaptcha-action\" /* AuthErrorCode.INVALID_RECAPTCHA_ACTION */]: 'The reCAPTCHA action is invalid when sending request to the backend.',\r\n [\"recaptcha-not-enabled\" /* AuthErrorCode.RECAPTCHA_NOT_ENABLED */]: 'reCAPTCHA Enterprise integration is not enabled for this project.',\r\n [\"missing-client-type\" /* AuthErrorCode.MISSING_CLIENT_TYPE */]: 'The reCAPTCHA client type is missing when sending request to the backend.',\r\n [\"missing-recaptcha-version\" /* AuthErrorCode.MISSING_RECAPTCHA_VERSION */]: 'The reCAPTCHA version is missing when sending request to the backend.',\r\n [\"invalid-req-type\" /* AuthErrorCode.INVALID_REQ_TYPE */]: 'Invalid request parameters.',\r\n [\"invalid-recaptcha-version\" /* AuthErrorCode.INVALID_RECAPTCHA_VERSION */]: 'The reCAPTCHA version is invalid when sending request to the backend.',\r\n [\"unsupported-password-policy-schema-version\" /* AuthErrorCode.UNSUPPORTED_PASSWORD_POLICY_SCHEMA_VERSION */]: 'The password policy received from the backend uses a schema version that is not supported by this version of the Firebase SDK.',\r\n [\"password-does-not-meet-requirements\" /* AuthErrorCode.PASSWORD_DOES_NOT_MEET_REQUIREMENTS */]: 'The password does not meet the requirements.'\r\n };\r\n}\r\nfunction _prodErrorMap() {\r\n // We will include this one message in the prod error map since by the very\r\n // nature of this error, developers will never be able to see the message\r\n // using the debugErrorMap (which is installed during auth initialization).\r\n return {\r\n [\"dependent-sdk-initialized-before-auth\" /* AuthErrorCode.DEPENDENT_SDK_INIT_BEFORE_AUTH */]: 'Another Firebase SDK was initialized and is trying to use Auth before Auth is ' +\r\n 'initialized. Please be sure to call `initializeAuth` or `getAuth` before ' +\r\n 'starting any other Firebase SDK.'\r\n };\r\n}\r\n/**\r\n * A verbose error map with detailed descriptions for most error codes.\r\n *\r\n * See discussion at {@link AuthErrorMap}\r\n *\r\n * @public\r\n */\r\nconst debugErrorMap = _debugErrorMap;\r\n/**\r\n * A minimal error map with all verbose error messages stripped.\r\n *\r\n * See discussion at {@link AuthErrorMap}\r\n *\r\n * @public\r\n */\r\nconst prodErrorMap = _prodErrorMap;\r\nconst _DEFAULT_AUTH_ERROR_FACTORY = new ErrorFactory('auth', 'Firebase', _prodErrorMap());\r\n/**\r\n * A map of potential `Auth` error codes, for easier comparison with errors\r\n * thrown by the SDK.\r\n *\r\n * @remarks\r\n * Note that you can't tree-shake individual keys\r\n * in the map, so by using the map you might substantially increase your\r\n * bundle size.\r\n *\r\n * @public\r\n */\r\nconst AUTH_ERROR_CODES_MAP_DO_NOT_USE_INTERNALLY = {\r\n ADMIN_ONLY_OPERATION: 'auth/admin-restricted-operation',\r\n ARGUMENT_ERROR: 'auth/argument-error',\r\n APP_NOT_AUTHORIZED: 'auth/app-not-authorized',\r\n APP_NOT_INSTALLED: 'auth/app-not-installed',\r\n CAPTCHA_CHECK_FAILED: 'auth/captcha-check-failed',\r\n CODE_EXPIRED: 'auth/code-expired',\r\n CORDOVA_NOT_READY: 'auth/cordova-not-ready',\r\n CORS_UNSUPPORTED: 'auth/cors-unsupported',\r\n CREDENTIAL_ALREADY_IN_USE: 'auth/credential-already-in-use',\r\n CREDENTIAL_MISMATCH: 'auth/custom-token-mismatch',\r\n CREDENTIAL_TOO_OLD_LOGIN_AGAIN: 'auth/requires-recent-login',\r\n DEPENDENT_SDK_INIT_BEFORE_AUTH: 'auth/dependent-sdk-initialized-before-auth',\r\n DYNAMIC_LINK_NOT_ACTIVATED: 'auth/dynamic-link-not-activated',\r\n EMAIL_CHANGE_NEEDS_VERIFICATION: 'auth/email-change-needs-verification',\r\n EMAIL_EXISTS: 'auth/email-already-in-use',\r\n EMULATOR_CONFIG_FAILED: 'auth/emulator-config-failed',\r\n EXPIRED_OOB_CODE: 'auth/expired-action-code',\r\n EXPIRED_POPUP_REQUEST: 'auth/cancelled-popup-request',\r\n INTERNAL_ERROR: 'auth/internal-error',\r\n INVALID_API_KEY: 'auth/invalid-api-key',\r\n INVALID_APP_CREDENTIAL: 'auth/invalid-app-credential',\r\n INVALID_APP_ID: 'auth/invalid-app-id',\r\n INVALID_AUTH: 'auth/invalid-user-token',\r\n INVALID_AUTH_EVENT: 'auth/invalid-auth-event',\r\n INVALID_CERT_HASH: 'auth/invalid-cert-hash',\r\n INVALID_CODE: 'auth/invalid-verification-code',\r\n INVALID_CONTINUE_URI: 'auth/invalid-continue-uri',\r\n INVALID_CORDOVA_CONFIGURATION: 'auth/invalid-cordova-configuration',\r\n INVALID_CUSTOM_TOKEN: 'auth/invalid-custom-token',\r\n INVALID_DYNAMIC_LINK_DOMAIN: 'auth/invalid-dynamic-link-domain',\r\n INVALID_EMAIL: 'auth/invalid-email',\r\n INVALID_EMULATOR_SCHEME: 'auth/invalid-emulator-scheme',\r\n INVALID_IDP_RESPONSE: 'auth/invalid-credential',\r\n INVALID_LOGIN_CREDENTIALS: 'auth/invalid-credential',\r\n INVALID_MESSAGE_PAYLOAD: 'auth/invalid-message-payload',\r\n INVALID_MFA_SESSION: 'auth/invalid-multi-factor-session',\r\n INVALID_OAUTH_CLIENT_ID: 'auth/invalid-oauth-client-id',\r\n INVALID_OAUTH_PROVIDER: 'auth/invalid-oauth-provider',\r\n INVALID_OOB_CODE: 'auth/invalid-action-code',\r\n INVALID_ORIGIN: 'auth/unauthorized-domain',\r\n INVALID_PASSWORD: 'auth/wrong-password',\r\n INVALID_PERSISTENCE: 'auth/invalid-persistence-type',\r\n INVALID_PHONE_NUMBER: 'auth/invalid-phone-number',\r\n INVALID_PROVIDER_ID: 'auth/invalid-provider-id',\r\n INVALID_RECIPIENT_EMAIL: 'auth/invalid-recipient-email',\r\n INVALID_SENDER: 'auth/invalid-sender',\r\n INVALID_SESSION_INFO: 'auth/invalid-verification-id',\r\n INVALID_TENANT_ID: 'auth/invalid-tenant-id',\r\n MFA_INFO_NOT_FOUND: 'auth/multi-factor-info-not-found',\r\n MFA_REQUIRED: 'auth/multi-factor-auth-required',\r\n MISSING_ANDROID_PACKAGE_NAME: 'auth/missing-android-pkg-name',\r\n MISSING_APP_CREDENTIAL: 'auth/missing-app-credential',\r\n MISSING_AUTH_DOMAIN: 'auth/auth-domain-config-required',\r\n MISSING_CODE: 'auth/missing-verification-code',\r\n MISSING_CONTINUE_URI: 'auth/missing-continue-uri',\r\n MISSING_IFRAME_START: 'auth/missing-iframe-start',\r\n MISSING_IOS_BUNDLE_ID: 'auth/missing-ios-bundle-id',\r\n MISSING_OR_INVALID_NONCE: 'auth/missing-or-invalid-nonce',\r\n MISSING_MFA_INFO: 'auth/missing-multi-factor-info',\r\n MISSING_MFA_SESSION: 'auth/missing-multi-factor-session',\r\n MISSING_PHONE_NUMBER: 'auth/missing-phone-number',\r\n MISSING_SESSION_INFO: 'auth/missing-verification-id',\r\n MODULE_DESTROYED: 'auth/app-deleted',\r\n NEED_CONFIRMATION: 'auth/account-exists-with-different-credential',\r\n NETWORK_REQUEST_FAILED: 'auth/network-request-failed',\r\n NULL_USER: 'auth/null-user',\r\n NO_AUTH_EVENT: 'auth/no-auth-event',\r\n NO_SUCH_PROVIDER: 'auth/no-such-provider',\r\n OPERATION_NOT_ALLOWED: 'auth/operation-not-allowed',\r\n OPERATION_NOT_SUPPORTED: 'auth/operation-not-supported-in-this-environment',\r\n POPUP_BLOCKED: 'auth/popup-blocked',\r\n POPUP_CLOSED_BY_USER: 'auth/popup-closed-by-user',\r\n PROVIDER_ALREADY_LINKED: 'auth/provider-already-linked',\r\n QUOTA_EXCEEDED: 'auth/quota-exceeded',\r\n REDIRECT_CANCELLED_BY_USER: 'auth/redirect-cancelled-by-user',\r\n REDIRECT_OPERATION_PENDING: 'auth/redirect-operation-pending',\r\n REJECTED_CREDENTIAL: 'auth/rejected-credential',\r\n SECOND_FACTOR_ALREADY_ENROLLED: 'auth/second-factor-already-in-use',\r\n SECOND_FACTOR_LIMIT_EXCEEDED: 'auth/maximum-second-factor-count-exceeded',\r\n TENANT_ID_MISMATCH: 'auth/tenant-id-mismatch',\r\n TIMEOUT: 'auth/timeout',\r\n TOKEN_EXPIRED: 'auth/user-token-expired',\r\n TOO_MANY_ATTEMPTS_TRY_LATER: 'auth/too-many-requests',\r\n UNAUTHORIZED_DOMAIN: 'auth/unauthorized-continue-uri',\r\n UNSUPPORTED_FIRST_FACTOR: 'auth/unsupported-first-factor',\r\n UNSUPPORTED_PERSISTENCE: 'auth/unsupported-persistence-type',\r\n UNSUPPORTED_TENANT_OPERATION: 'auth/unsupported-tenant-operation',\r\n UNVERIFIED_EMAIL: 'auth/unverified-email',\r\n USER_CANCELLED: 'auth/user-cancelled',\r\n USER_DELETED: 'auth/user-not-found',\r\n USER_DISABLED: 'auth/user-disabled',\r\n USER_MISMATCH: 'auth/user-mismatch',\r\n USER_SIGNED_OUT: 'auth/user-signed-out',\r\n WEAK_PASSWORD: 'auth/weak-password',\r\n WEB_STORAGE_UNSUPPORTED: 'auth/web-storage-unsupported',\r\n ALREADY_INITIALIZED: 'auth/already-initialized',\r\n RECAPTCHA_NOT_ENABLED: 'auth/recaptcha-not-enabled',\r\n MISSING_RECAPTCHA_TOKEN: 'auth/missing-recaptcha-token',\r\n INVALID_RECAPTCHA_TOKEN: 'auth/invalid-recaptcha-token',\r\n INVALID_RECAPTCHA_ACTION: 'auth/invalid-recaptcha-action',\r\n MISSING_CLIENT_TYPE: 'auth/missing-client-type',\r\n MISSING_RECAPTCHA_VERSION: 'auth/missing-recaptcha-version',\r\n INVALID_RECAPTCHA_VERSION: 'auth/invalid-recaptcha-version',\r\n INVALID_REQ_TYPE: 'auth/invalid-req-type'\r\n};\n\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\nconst logClient = new Logger('@firebase/auth');\r\nfunction _logWarn(msg, ...args) {\r\n if (logClient.logLevel <= LogLevel.WARN) {\r\n logClient.warn(`Auth (${SDK_VERSION}): ${msg}`, ...args);\r\n }\r\n}\r\nfunction _logError(msg, ...args) {\r\n if (logClient.logLevel <= LogLevel.ERROR) {\r\n logClient.error(`Auth (${SDK_VERSION}): ${msg}`, ...args);\r\n }\r\n}\n\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\nfunction _fail(authOrCode, ...rest) {\r\n throw createErrorInternal(authOrCode, ...rest);\r\n}\r\nfunction _createError(authOrCode, ...rest) {\r\n return createErrorInternal(authOrCode, ...rest);\r\n}\r\nfunction _errorWithCustomMessage(auth, code, message) {\r\n const errorMap = Object.assign(Object.assign({}, prodErrorMap()), { [code]: message });\r\n const factory = new ErrorFactory('auth', 'Firebase', errorMap);\r\n return factory.create(code, {\r\n appName: auth.name\r\n });\r\n}\r\nfunction _assertInstanceOf(auth, object, instance) {\r\n const constructorInstance = instance;\r\n if (!(object instanceof constructorInstance)) {\r\n if (constructorInstance.name !== object.constructor.name) {\r\n _fail(auth, \"argument-error\" /* AuthErrorCode.ARGUMENT_ERROR */);\r\n }\r\n throw _errorWithCustomMessage(auth, \"argument-error\" /* AuthErrorCode.ARGUMENT_ERROR */, `Type of ${object.constructor.name} does not match expected instance.` +\r\n `Did you pass a reference from a different Auth SDK?`);\r\n }\r\n}\r\nfunction createErrorInternal(authOrCode, ...rest) {\r\n if (typeof authOrCode !== 'string') {\r\n const code = rest[0];\r\n const fullParams = [...rest.slice(1)];\r\n if (fullParams[0]) {\r\n fullParams[0].appName = authOrCode.name;\r\n }\r\n return authOrCode._errorFactory.create(code, ...fullParams);\r\n }\r\n return _DEFAULT_AUTH_ERROR_FACTORY.create(authOrCode, ...rest);\r\n}\r\nfunction _assert(assertion, authOrCode, ...rest) {\r\n if (!assertion) {\r\n throw createErrorInternal(authOrCode, ...rest);\r\n }\r\n}\r\n/**\r\n * Unconditionally fails, throwing an internal error with the given message.\r\n *\r\n * @param failure type of failure encountered\r\n * @throws Error\r\n */\r\nfunction debugFail(failure) {\r\n // Log the failure in addition to throw an exception, just in case the\r\n // exception is swallowed.\r\n const message = `INTERNAL ASSERTION FAILED: ` + failure;\r\n _logError(message);\r\n // NOTE: We don't use FirebaseError here because these are internal failures\r\n // that cannot be handled by the user. (Also it would create a circular\r\n // dependency between the error and assert modules which doesn't work.)\r\n throw new Error(message);\r\n}\r\n/**\r\n * Fails if the given assertion condition is false, throwing an Error with the\r\n * given message if it did.\r\n *\r\n * @param assertion\r\n * @param message\r\n */\r\nfunction debugAssert(assertion, message) {\r\n if (!assertion) {\r\n debugFail(message);\r\n }\r\n}\n\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\nfunction _getCurrentUrl() {\r\n var _a;\r\n return (typeof self !== 'undefined' && ((_a = self.location) === null || _a === void 0 ? void 0 : _a.href)) || '';\r\n}\r\nfunction _isHttpOrHttps() {\r\n return _getCurrentScheme() === 'http:' || _getCurrentScheme() === 'https:';\r\n}\r\nfunction _getCurrentScheme() {\r\n var _a;\r\n return (typeof self !== 'undefined' && ((_a = self.location) === null || _a === void 0 ? void 0 : _a.protocol)) || null;\r\n}\n\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\n/**\r\n * Determine whether the browser is working online\r\n */\r\nfunction _isOnline() {\r\n if (typeof navigator !== 'undefined' &&\r\n navigator &&\r\n 'onLine' in navigator &&\r\n typeof navigator.onLine === 'boolean' &&\r\n // Apply only for traditional web apps and Chrome extensions.\r\n // This is especially true for Cordova apps which have unreliable\r\n // navigator.onLine behavior unless cordova-plugin-network-information is\r\n // installed which overwrites the native navigator.onLine value and\r\n // defines navigator.connection.\r\n (_isHttpOrHttps() || isBrowserExtension() || 'connection' in navigator)) {\r\n return navigator.onLine;\r\n }\r\n // If we can't determine the state, assume it is online.\r\n return true;\r\n}\r\nfunction _getUserLanguage() {\r\n if (typeof navigator === 'undefined') {\r\n return null;\r\n }\r\n const navigatorLanguage = navigator;\r\n return (\r\n // Most reliable, but only supported in Chrome/Firefox.\r\n (navigatorLanguage.languages && navigatorLanguage.languages[0]) ||\r\n // Supported in most browsers, but returns the language of the browser\r\n // UI, not the language set in browser settings.\r\n navigatorLanguage.language ||\r\n // Couldn't determine language.\r\n null);\r\n}\n\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\n/**\r\n * A structure to help pick between a range of long and short delay durations\r\n * depending on the current environment. In general, the long delay is used for\r\n * mobile environments whereas short delays are used for desktop environments.\r\n */\r\nclass Delay {\r\n constructor(shortDelay, longDelay) {\r\n this.shortDelay = shortDelay;\r\n this.longDelay = longDelay;\r\n // Internal error when improperly initialized.\r\n debugAssert(longDelay > shortDelay, 'Short delay should be less than long delay!');\r\n this.isMobile = isMobileCordova() || isReactNative();\r\n }\r\n get() {\r\n if (!_isOnline()) {\r\n // Pick the shorter timeout.\r\n return Math.min(5000 /* DelayMin.OFFLINE */, this.shortDelay);\r\n }\r\n // If running in a mobile environment, return the long delay, otherwise\r\n // return the short delay.\r\n // This could be improved in the future to dynamically change based on other\r\n // variables instead of just reading the current environment.\r\n return this.isMobile ? this.longDelay : this.shortDelay;\r\n }\r\n}\n\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\nfunction _emulatorUrl(config, path) {\r\n debugAssert(config.emulator, 'Emulator should always be set here');\r\n const { url } = config.emulator;\r\n if (!path) {\r\n return url;\r\n }\r\n return `${url}${path.startsWith('/') ? path.slice(1) : path}`;\r\n}\n\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\nclass FetchProvider {\r\n static initialize(fetchImpl, headersImpl, responseImpl) {\r\n this.fetchImpl = fetchImpl;\r\n if (headersImpl) {\r\n this.headersImpl = headersImpl;\r\n }\r\n if (responseImpl) {\r\n this.responseImpl = responseImpl;\r\n }\r\n }\r\n static fetch() {\r\n if (this.fetchImpl) {\r\n return this.fetchImpl;\r\n }\r\n if (typeof self !== 'undefined' && 'fetch' in self) {\r\n return self.fetch;\r\n }\r\n if (typeof globalThis !== 'undefined' && globalThis.fetch) {\r\n return globalThis.fetch;\r\n }\r\n if (typeof fetch !== 'undefined') {\r\n return fetch;\r\n }\r\n debugFail('Could not find fetch implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill');\r\n }\r\n static headers() {\r\n if (this.headersImpl) {\r\n return this.headersImpl;\r\n }\r\n if (typeof self !== 'undefined' && 'Headers' in self) {\r\n return self.Headers;\r\n }\r\n if (typeof globalThis !== 'undefined' && globalThis.Headers) {\r\n return globalThis.Headers;\r\n }\r\n if (typeof Headers !== 'undefined') {\r\n return Headers;\r\n }\r\n debugFail('Could not find Headers implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill');\r\n }\r\n static response() {\r\n if (this.responseImpl) {\r\n return this.responseImpl;\r\n }\r\n if (typeof self !== 'undefined' && 'Response' in self) {\r\n return self.Response;\r\n }\r\n if (typeof globalThis !== 'undefined' && globalThis.Response) {\r\n return globalThis.Response;\r\n }\r\n if (typeof Response !== 'undefined') {\r\n return Response;\r\n }\r\n debugFail('Could not find Response implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill');\r\n }\r\n}\n\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\n/**\r\n * Map from errors returned by the server to errors to developer visible errors\r\n */\r\nconst SERVER_ERROR_MAP = {\r\n // Custom token errors.\r\n [\"CREDENTIAL_MISMATCH\" /* ServerError.CREDENTIAL_MISMATCH */]: \"custom-token-mismatch\" /* AuthErrorCode.CREDENTIAL_MISMATCH */,\r\n // This can only happen if the SDK sends a bad request.\r\n [\"MISSING_CUSTOM_TOKEN\" /* ServerError.MISSING_CUSTOM_TOKEN */]: \"internal-error\" /* AuthErrorCode.INTERNAL_ERROR */,\r\n // Create Auth URI errors.\r\n [\"INVALID_IDENTIFIER\" /* ServerError.INVALID_IDENTIFIER */]: \"invalid-email\" /* AuthErrorCode.INVALID_EMAIL */,\r\n // This can only happen if the SDK sends a bad request.\r\n [\"MISSING_CONTINUE_URI\" /* ServerError.MISSING_CONTINUE_URI */]: \"internal-error\" /* AuthErrorCode.INTERNAL_ERROR */,\r\n // Sign in with email and password errors (some apply to sign up too).\r\n [\"INVALID_PASSWORD\" /* ServerError.INVALID_PASSWORD */]: \"wrong-password\" /* AuthErrorCode.INVALID_PASSWORD */,\r\n // This can only happen if the SDK sends a bad request.\r\n [\"MISSING_PASSWORD\" /* ServerError.MISSING_PASSWORD */]: \"missing-password\" /* AuthErrorCode.MISSING_PASSWORD */,\r\n // Thrown if Email Enumeration Protection is enabled in the project and the email or password is\r\n // invalid.\r\n [\"INVALID_LOGIN_CREDENTIALS\" /* ServerError.INVALID_LOGIN_CREDENTIALS */]: \"invalid-credential\" /* AuthErrorCode.INVALID_CREDENTIAL */,\r\n // Sign up with email and password errors.\r\n [\"EMAIL_EXISTS\" /* ServerError.EMAIL_EXISTS */]: \"email-already-in-use\" /* AuthErrorCode.EMAIL_EXISTS */,\r\n [\"PASSWORD_LOGIN_DISABLED\" /* ServerError.PASSWORD_LOGIN_DISABLED */]: \"operation-not-allowed\" /* AuthErrorCode.OPERATION_NOT_ALLOWED */,\r\n // Verify assertion for sign in with credential errors:\r\n [\"INVALID_IDP_RESPONSE\" /* ServerError.INVALID_IDP_RESPONSE */]: \"invalid-credential\" /* AuthErrorCode.INVALID_CREDENTIAL */,\r\n [\"INVALID_PENDING_TOKEN\" /* ServerError.INVALID_PENDING_TOKEN */]: \"invalid-credential\" /* AuthErrorCode.INVALID_CREDENTIAL */,\r\n [\"FEDERATED_USER_ID_ALREADY_LINKED\" /* ServerError.FEDERATED_USER_ID_ALREADY_LINKED */]: \"credential-already-in-use\" /* AuthErrorCode.CREDENTIAL_ALREADY_IN_USE */,\r\n // This can only happen if the SDK sends a bad request.\r\n [\"MISSING_REQ_TYPE\" /* ServerError.MISSING_REQ_TYPE */]: \"internal-error\" /* AuthErrorCode.INTERNAL_ERROR */,\r\n // Send Password reset email errors:\r\n [\"EMAIL_NOT_FOUND\" /* ServerError.EMAIL_NOT_FOUND */]: \"user-not-found\" /* AuthErrorCode.USER_DELETED */,\r\n [\"RESET_PASSWORD_EXCEED_LIMIT\" /* ServerError.RESET_PASSWORD_EXCEED_LIMIT */]: \"too-many-requests\" /* AuthErrorCode.TOO_MANY_ATTEMPTS_TRY_LATER */,\r\n [\"EXPIRED_OOB_CODE\" /* ServerError.EXPIRED_OOB_CODE */]: \"expired-action-code\" /* AuthErrorCode.EXPIRED_OOB_CODE */,\r\n [\"INVALID_OOB_CODE\" /* ServerError.INVALID_OOB_CODE */]: \"invalid-action-code\" /* AuthErrorCode.INVALID_OOB_CODE */,\r\n // This can only happen if the SDK sends a bad request.\r\n [\"MISSING_OOB_CODE\" /* ServerError.MISSING_OOB_CODE */]: \"internal-error\" /* AuthErrorCode.INTERNAL_ERROR */,\r\n // Operations that require ID token in request:\r\n [\"CREDENTIAL_TOO_OLD_LOGIN_AGAIN\" /* ServerError.CREDENTIAL_TOO_OLD_LOGIN_AGAIN */]: \"requires-recent-login\" /* AuthErrorCode.CREDENTIAL_TOO_OLD_LOGIN_AGAIN */,\r\n [\"INVALID_ID_TOKEN\" /* ServerError.INVALID_ID_TOKEN */]: \"invalid-user-token\" /* AuthErrorCode.INVALID_AUTH */,\r\n [\"TOKEN_EXPIRED\" /* ServerError.TOKEN_EXPIRED */]: \"user-token-expired\" /* AuthErrorCode.TOKEN_EXPIRED */,\r\n [\"USER_NOT_FOUND\" /* ServerError.USER_NOT_FOUND */]: \"user-token-expired\" /* AuthErrorCode.TOKEN_EXPIRED */,\r\n // Other errors.\r\n [\"TOO_MANY_ATTEMPTS_TRY_LATER\" /* ServerError.TOO_MANY_ATTEMPTS_TRY_LATER */]: \"too-many-requests\" /* AuthErrorCode.TOO_MANY_ATTEMPTS_TRY_LATER */,\r\n [\"PASSWORD_DOES_NOT_MEET_REQUIREMENTS\" /* ServerError.PASSWORD_DOES_NOT_MEET_REQUIREMENTS */]: \"password-does-not-meet-requirements\" /* AuthErrorCode.PASSWORD_DOES_NOT_MEET_REQUIREMENTS */,\r\n // Phone Auth related errors.\r\n [\"INVALID_CODE\" /* ServerError.INVALID_CODE */]: \"invalid-verification-code\" /* AuthErrorCode.INVALID_CODE */,\r\n [\"INVALID_SESSION_INFO\" /* ServerError.INVALID_SESSION_INFO */]: \"invalid-verification-id\" /* AuthErrorCode.INVALID_SESSION_INFO */,\r\n [\"INVALID_TEMPORARY_PROOF\" /* ServerError.INVALID_TEMPORARY_PROOF */]: \"invalid-credential\" /* AuthErrorCode.INVALID_CREDENTIAL */,\r\n [\"MISSING_SESSION_INFO\" /* ServerError.MISSING_SESSION_INFO */]: \"missing-verification-id\" /* AuthErrorCode.MISSING_SESSION_INFO */,\r\n [\"SESSION_EXPIRED\" /* ServerError.SESSION_EXPIRED */]: \"code-expired\" /* AuthErrorCode.CODE_EXPIRED */,\r\n // Other action code errors when additional settings passed.\r\n // MISSING_CONTINUE_URI is getting mapped to INTERNAL_ERROR above.\r\n // This is OK as this error will be caught by client side validation.\r\n [\"MISSING_ANDROID_PACKAGE_NAME\" /* ServerError.MISSING_ANDROID_PACKAGE_NAME */]: \"missing-android-pkg-name\" /* AuthErrorCode.MISSING_ANDROID_PACKAGE_NAME */,\r\n [\"UNAUTHORIZED_DOMAIN\" /* ServerError.UNAUTHORIZED_DOMAIN */]: \"unauthorized-continue-uri\" /* AuthErrorCode.UNAUTHORIZED_DOMAIN */,\r\n // getProjectConfig errors when clientId is passed.\r\n [\"INVALID_OAUTH_CLIENT_ID\" /* ServerError.INVALID_OAUTH_CLIENT_ID */]: \"invalid-oauth-client-id\" /* AuthErrorCode.INVALID_OAUTH_CLIENT_ID */,\r\n // User actions (sign-up or deletion) disabled errors.\r\n [\"ADMIN_ONLY_OPERATION\" /* ServerError.ADMIN_ONLY_OPERATION */]: \"admin-restricted-operation\" /* AuthErrorCode.ADMIN_ONLY_OPERATION */,\r\n // Multi factor related errors.\r\n [\"INVALID_MFA_PENDING_CREDENTIAL\" /* ServerError.INVALID_MFA_PENDING_CREDENTIAL */]: \"invalid-multi-factor-session\" /* AuthErrorCode.INVALID_MFA_SESSION */,\r\n [\"MFA_ENROLLMENT_NOT_FOUND\" /* ServerError.MFA_ENROLLMENT_NOT_FOUND */]: \"multi-factor-info-not-found\" /* AuthErrorCode.MFA_INFO_NOT_FOUND */,\r\n [\"MISSING_MFA_ENROLLMENT_ID\" /* ServerError.MISSING_MFA_ENROLLMENT_ID */]: \"missing-multi-factor-info\" /* AuthErrorCode.MISSING_MFA_INFO */,\r\n [\"MISSING_MFA_PENDING_CREDENTIAL\" /* ServerError.MISSING_MFA_PENDING_CREDENTIAL */]: \"missing-multi-factor-session\" /* AuthErrorCode.MISSING_MFA_SESSION */,\r\n [\"SECOND_FACTOR_EXISTS\" /* ServerError.SECOND_FACTOR_EXISTS */]: \"second-factor-already-in-use\" /* AuthErrorCode.SECOND_FACTOR_ALREADY_ENROLLED */,\r\n [\"SECOND_FACTOR_LIMIT_EXCEEDED\" /* ServerError.SECOND_FACTOR_LIMIT_EXCEEDED */]: \"maximum-second-factor-count-exceeded\" /* AuthErrorCode.SECOND_FACTOR_LIMIT_EXCEEDED */,\r\n // Blocking functions related errors.\r\n [\"BLOCKING_FUNCTION_ERROR_RESPONSE\" /* ServerError.BLOCKING_FUNCTION_ERROR_RESPONSE */]: \"internal-error\" /* AuthErrorCode.INTERNAL_ERROR */,\r\n // Recaptcha related errors.\r\n [\"RECAPTCHA_NOT_ENABLED\" /* ServerError.RECAPTCHA_NOT_ENABLED */]: \"recaptcha-not-enabled\" /* AuthErrorCode.RECAPTCHA_NOT_ENABLED */,\r\n [\"MISSING_RECAPTCHA_TOKEN\" /* ServerError.MISSING_RECAPTCHA_TOKEN */]: \"missing-recaptcha-token\" /* AuthErrorCode.MISSING_RECAPTCHA_TOKEN */,\r\n [\"INVALID_RECAPTCHA_TOKEN\" /* ServerError.INVALID_RECAPTCHA_TOKEN */]: \"invalid-recaptcha-token\" /* AuthErrorCode.INVALID_RECAPTCHA_TOKEN */,\r\n [\"INVALID_RECAPTCHA_ACTION\" /* ServerError.INVALID_RECAPTCHA_ACTION */]: \"invalid-recaptcha-action\" /* AuthErrorCode.INVALID_RECAPTCHA_ACTION */,\r\n [\"MISSING_CLIENT_TYPE\" /* ServerError.MISSING_CLIENT_TYPE */]: \"missing-client-type\" /* AuthErrorCode.MISSING_CLIENT_TYPE */,\r\n [\"MISSING_RECAPTCHA_VERSION\" /* ServerError.MISSING_RECAPTCHA_VERSION */]: \"missing-recaptcha-version\" /* AuthErrorCode.MISSING_RECAPTCHA_VERSION */,\r\n [\"INVALID_RECAPTCHA_VERSION\" /* ServerError.INVALID_RECAPTCHA_VERSION */]: \"invalid-recaptcha-version\" /* AuthErrorCode.INVALID_RECAPTCHA_VERSION */,\r\n [\"INVALID_REQ_TYPE\" /* ServerError.INVALID_REQ_TYPE */]: \"invalid-req-type\" /* AuthErrorCode.INVALID_REQ_TYPE */\r\n};\n\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\nconst DEFAULT_API_TIMEOUT_MS = new Delay(30000, 60000);\r\nfunction _addTidIfNecessary(auth, request) {\r\n if (auth.tenantId && !request.tenantId) {\r\n return Object.assign(Object.assign({}, request), { tenantId: auth.tenantId });\r\n }\r\n return request;\r\n}\r\nasync function _performApiRequest(auth, method, path, request, customErrorMap = {}) {\r\n return _performFetchWithErrorHandling(auth, customErrorMap, async () => {\r\n let body = {};\r\n let params = {};\r\n if (request) {\r\n if (method === \"GET\" /* HttpMethod.GET */) {\r\n params = request;\r\n }\r\n else {\r\n body = {\r\n body: JSON.stringify(request)\r\n };\r\n }\r\n }\r\n const query = querystring(Object.assign({ key: auth.config.apiKey }, params)).slice(1);\r\n const headers = await auth._getAdditionalHeaders();\r\n headers[\"Content-Type\" /* HttpHeader.CONTENT_TYPE */] = 'application/json';\r\n if (auth.languageCode) {\r\n headers[\"X-Firebase-Locale\" /* HttpHeader.X_FIREBASE_LOCALE */] = auth.languageCode;\r\n }\r\n return FetchProvider.fetch()(_getFinalTarget(auth, auth.config.apiHost, path, query), Object.assign({ method,\r\n headers, referrerPolicy: 'no-referrer' }, body));\r\n });\r\n}\r\nasync function _performFetchWithErrorHandling(auth, customErrorMap, fetchFn) {\r\n auth._canInitEmulator = false;\r\n const errorMap = Object.assign(Object.assign({}, SERVER_ERROR_MAP), customErrorMap);\r\n try {\r\n const networkTimeout = new NetworkTimeout(auth);\r\n const response = await Promise.race([\r\n fetchFn(),\r\n networkTimeout.promise\r\n ]);\r\n // If we've reached this point, the fetch succeeded and the networkTimeout\r\n // didn't throw; clear the network timeout delay so that Node won't hang\r\n networkTimeout.clearNetworkTimeout();\r\n const json = await response.json();\r\n if ('needConfirmation' in json) {\r\n throw _makeTaggedError(auth, \"account-exists-with-different-credential\" /* AuthErrorCode.NEED_CONFIRMATION */, json);\r\n }\r\n if (response.ok && !('errorMessage' in json)) {\r\n return json;\r\n }\r\n else {\r\n const errorMessage = response.ok ? json.errorMessage : json.error.message;\r\n const [serverErrorCode, serverErrorMessage] = errorMessage.split(' : ');\r\n if (serverErrorCode === \"FEDERATED_USER_ID_ALREADY_LINKED\" /* ServerError.FEDERATED_USER_ID_ALREADY_LINKED */) {\r\n throw _makeTaggedError(auth, \"credential-already-in-use\" /* AuthErrorCode.CREDENTIAL_ALREADY_IN_USE */, json);\r\n }\r\n else if (serverErrorCode === \"EMAIL_EXISTS\" /* ServerError.EMAIL_EXISTS */) {\r\n throw _makeTaggedError(auth, \"email-already-in-use\" /* AuthErrorCode.EMAIL_EXISTS */, json);\r\n }\r\n else if (serverErrorCode === \"USER_DISABLED\" /* ServerError.USER_DISABLED */) {\r\n throw _makeTaggedError(auth, \"user-disabled\" /* AuthErrorCode.USER_DISABLED */, json);\r\n }\r\n const authError = errorMap[serverErrorCode] ||\r\n serverErrorCode\r\n .toLowerCase()\r\n .replace(/[_\\s]+/g, '-');\r\n if (serverErrorMessage) {\r\n throw _errorWithCustomMessage(auth, authError, serverErrorMessage);\r\n }\r\n else {\r\n _fail(auth, authError);\r\n }\r\n }\r\n }\r\n catch (e) {\r\n if (e instanceof FirebaseError) {\r\n throw e;\r\n }\r\n // Changing this to a different error code will log user out when there is a network error\r\n // because we treat any error other than NETWORK_REQUEST_FAILED as token is invalid.\r\n // https://github.com/firebase/firebase-js-sdk/blob/4fbc73610d70be4e0852e7de63a39cb7897e8546/packages/auth/src/core/auth/auth_impl.ts#L309-L316\r\n _fail(auth, \"network-request-failed\" /* AuthErrorCode.NETWORK_REQUEST_FAILED */, { 'message': String(e) });\r\n }\r\n}\r\nasync function _performSignInRequest(auth, method, path, request, customErrorMap = {}) {\r\n const serverResponse = (await _performApiRequest(auth, method, path, request, customErrorMap));\r\n if ('mfaPendingCredential' in serverResponse) {\r\n _fail(auth, \"multi-factor-auth-required\" /* AuthErrorCode.MFA_REQUIRED */, {\r\n _serverResponse: serverResponse\r\n });\r\n }\r\n return serverResponse;\r\n}\r\nfunction _getFinalTarget(auth, host, path, query) {\r\n const base = `${host}${path}?${query}`;\r\n if (!auth.config.emulator) {\r\n return `${auth.config.apiScheme}://${base}`;\r\n }\r\n return _emulatorUrl(auth.config, base);\r\n}\r\nfunction _parseEnforcementState(enforcementStateStr) {\r\n switch (enforcementStateStr) {\r\n case 'ENFORCE':\r\n return \"ENFORCE\" /* EnforcementState.ENFORCE */;\r\n case 'AUDIT':\r\n return \"AUDIT\" /* EnforcementState.AUDIT */;\r\n case 'OFF':\r\n return \"OFF\" /* EnforcementState.OFF */;\r\n default:\r\n return \"ENFORCEMENT_STATE_UNSPECIFIED\" /* EnforcementState.ENFORCEMENT_STATE_UNSPECIFIED */;\r\n }\r\n}\r\nclass NetworkTimeout {\r\n constructor(auth) {\r\n this.auth = auth;\r\n // Node timers and browser timers are fundamentally incompatible, but we\r\n // don't care about the value here\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n this.timer = null;\r\n this.promise = new Promise((_, reject) => {\r\n this.timer = setTimeout(() => {\r\n return reject(_createError(this.auth, \"network-request-failed\" /* AuthErrorCode.NETWORK_REQUEST_FAILED */));\r\n }, DEFAULT_API_TIMEOUT_MS.get());\r\n });\r\n }\r\n clearNetworkTimeout() {\r\n clearTimeout(this.timer);\r\n }\r\n}\r\nfunction _makeTaggedError(auth, code, response) {\r\n const errorParams = {\r\n appName: auth.name\r\n };\r\n if (response.email) {\r\n errorParams.email = response.email;\r\n }\r\n if (response.phoneNumber) {\r\n errorParams.phoneNumber = response.phoneNumber;\r\n }\r\n const error = _createError(auth, code, errorParams);\r\n // We know customData is defined on error because errorParams is defined\r\n error.customData._tokenResponse = response;\r\n return error;\r\n}\n\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\nfunction isV2(grecaptcha) {\r\n return (grecaptcha !== undefined &&\r\n grecaptcha.getResponse !== undefined);\r\n}\r\nfunction isEnterprise(grecaptcha) {\r\n return (grecaptcha !== undefined &&\r\n grecaptcha.enterprise !== undefined);\r\n}\r\nclass RecaptchaConfig {\r\n constructor(response) {\r\n /**\r\n * The reCAPTCHA site key.\r\n */\r\n this.siteKey = '';\r\n /**\r\n * The list of providers and their enablement status for reCAPTCHA Enterprise.\r\n */\r\n this.recaptchaEnforcementState = [];\r\n if (response.recaptchaKey === undefined) {\r\n throw new Error('recaptchaKey undefined');\r\n }\r\n // Example response.recaptchaKey: \"projects/proj123/keys/sitekey123\"\r\n this.siteKey = response.recaptchaKey.split('/')[3];\r\n this.recaptchaEnforcementState = response.recaptchaEnforcementState;\r\n }\r\n /**\r\n * Returns the reCAPTCHA Enterprise enforcement state for the given provider.\r\n *\r\n * @param providerStr - The provider whose enforcement state is to be returned.\r\n * @returns The reCAPTCHA Enterprise enforcement state for the given provider.\r\n */\r\n getProviderEnforcementState(providerStr) {\r\n if (!this.recaptchaEnforcementState ||\r\n this.recaptchaEnforcementState.length === 0) {\r\n return null;\r\n }\r\n for (const recaptchaEnforcementState of this.recaptchaEnforcementState) {\r\n if (recaptchaEnforcementState.provider &&\r\n recaptchaEnforcementState.provider === providerStr) {\r\n return _parseEnforcementState(recaptchaEnforcementState.enforcementState);\r\n }\r\n }\r\n return null;\r\n }\r\n /**\r\n * Returns true if the reCAPTCHA Enterprise enforcement state for the provider is set to ENFORCE or AUDIT.\r\n *\r\n * @param providerStr - The provider whose enablement state is to be returned.\r\n * @returns Whether or not reCAPTCHA Enterprise protection is enabled for the given provider.\r\n */\r\n isProviderEnabled(providerStr) {\r\n return (this.getProviderEnforcementState(providerStr) ===\r\n \"ENFORCE\" /* EnforcementState.ENFORCE */ ||\r\n this.getProviderEnforcementState(providerStr) === \"AUDIT\" /* EnforcementState.AUDIT */);\r\n }\r\n}\n\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\nasync function getRecaptchaParams(auth) {\r\n return ((await _performApiRequest(auth, \"GET\" /* HttpMethod.GET */, \"/v1/recaptchaParams\" /* Endpoint.GET_RECAPTCHA_PARAM */)).recaptchaSiteKey || '');\r\n}\r\nasync function getRecaptchaConfig(auth, request) {\r\n return _performApiRequest(auth, \"GET\" /* HttpMethod.GET */, \"/v2/recaptchaConfig\" /* Endpoint.GET_RECAPTCHA_CONFIG */, _addTidIfNecessary(auth, request));\r\n}\n\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\nasync function deleteAccount(auth, request) {\r\n return _performApiRequest(auth, \"POST\" /* HttpMethod.POST */, \"/v1/accounts:delete\" /* Endpoint.DELETE_ACCOUNT */, request);\r\n}\r\nasync function deleteLinkedAccounts(auth, request) {\r\n return _performApiRequest(auth, \"POST\" /* HttpMethod.POST */, \"/v1/accounts:update\" /* Endpoint.SET_ACCOUNT_INFO */, request);\r\n}\r\nasync function getAccountInfo(auth, request) {\r\n return _performApiRequest(auth, \"POST\" /* HttpMethod.POST */, \"/v1/accounts:lookup\" /* Endpoint.GET_ACCOUNT_INFO */, request);\r\n}\n\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\nfunction utcTimestampToDateString(utcTimestamp) {\r\n if (!utcTimestamp) {\r\n return undefined;\r\n }\r\n try {\r\n // Convert to date object.\r\n const date = new Date(Number(utcTimestamp));\r\n // Test date is valid.\r\n if (!isNaN(date.getTime())) {\r\n // Convert to UTC date string.\r\n return date.toUTCString();\r\n }\r\n }\r\n catch (e) {\r\n // Do nothing. undefined will be returned.\r\n }\r\n return undefined;\r\n}\n\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\n/**\r\n * Returns a JSON Web Token (JWT) used to identify the user to a Firebase service.\r\n *\r\n * @remarks\r\n * Returns the current token if it has not expired or if it will not expire in the next five\r\n * minutes. Otherwise, this will refresh the token and return a new one.\r\n *\r\n * @param user - The user.\r\n * @param forceRefresh - Force refresh regardless of token expiration.\r\n *\r\n * @public\r\n */\r\nfunction getIdToken(user, forceRefresh = false) {\r\n return getModularInstance(user).getIdToken(forceRefresh);\r\n}\r\n/**\r\n * Returns a deserialized JSON Web Token (JWT) used to identify the user to a Firebase service.\r\n *\r\n * @remarks\r\n * Returns the current token if it has not expired or if it will not expire in the next five\r\n * minutes. Otherwise, this will refresh the token and return a new one.\r\n *\r\n * @param user - The user.\r\n * @param forceRefresh - Force refresh regardless of token expiration.\r\n *\r\n * @public\r\n */\r\nasync function getIdTokenResult(user, forceRefresh = false) {\r\n const userInternal = getModularInstance(user);\r\n const token = await userInternal.getIdToken(forceRefresh);\r\n const claims = _parseToken(token);\r\n _assert(claims && claims.exp && claims.auth_time && claims.iat, userInternal.auth, \"internal-error\" /* AuthErrorCode.INTERNAL_ERROR */);\r\n const firebase = typeof claims.firebase === 'object' ? claims.firebase : undefined;\r\n const signInProvider = firebase === null || firebase === void 0 ? void 0 : firebase['sign_in_provider'];\r\n return {\r\n claims,\r\n token,\r\n authTime: utcTimestampToDateString(secondsStringToMilliseconds(claims.auth_time)),\r\n issuedAtTime: utcTimestampToDateString(secondsStringToMilliseconds(claims.iat)),\r\n expirationTime: utcTimestampToDateString(secondsStringToMilliseconds(claims.exp)),\r\n signInProvider: signInProvider || null,\r\n signInSecondFactor: (firebase === null || firebase === void 0 ? void 0 : firebase['sign_in_second_factor']) || null\r\n };\r\n}\r\nfunction secondsStringToMilliseconds(seconds) {\r\n return Number(seconds) * 1000;\r\n}\r\nfunction _parseToken(token) {\r\n const [algorithm, payload, signature] = token.split('.');\r\n if (algorithm === undefined ||\r\n payload === undefined ||\r\n signature === undefined) {\r\n _logError('JWT malformed, contained fewer than 3 sections');\r\n return null;\r\n }\r\n try {\r\n const decoded = base64Decode(payload);\r\n if (!decoded) {\r\n _logError('Failed to decode base64 JWT payload');\r\n return null;\r\n }\r\n return JSON.parse(decoded);\r\n }\r\n catch (e) {\r\n _logError('Caught error parsing JWT payload as JSON', e === null || e === void 0 ? void 0 : e.toString());\r\n return null;\r\n }\r\n}\r\n/**\r\n * Extract expiresIn TTL from a token by subtracting the expiration from the issuance.\r\n */\r\nfunction _tokenExpiresIn(token) {\r\n const parsedToken = _parseToken(token);\r\n _assert(parsedToken, \"internal-error\" /* AuthErrorCode.INTERNAL_ERROR */);\r\n _assert(typeof parsedToken.exp !== 'undefined', \"internal-error\" /* AuthErrorCode.INTERNAL_ERROR */);\r\n _assert(typeof parsedToken.iat !== 'undefined', \"internal-error\" /* AuthErrorCode.INTERNAL_ERROR */);\r\n return Number(parsedToken.exp) - Number(parsedToken.iat);\r\n}\n\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\nasync function _logoutIfInvalidated(user, promise, bypassAuthState = false) {\r\n if (bypassAuthState) {\r\n return promise;\r\n }\r\n try {\r\n return await promise;\r\n }\r\n catch (e) {\r\n if (e instanceof FirebaseError && isUserInvalidated(e)) {\r\n if (user.auth.currentUser === user) {\r\n await user.auth.signOut();\r\n }\r\n }\r\n throw e;\r\n }\r\n}\r\nfunction isUserInvalidated({ code }) {\r\n return (code === `auth/${\"user-disabled\" /* AuthErrorCode.USER_DISABLED */}` ||\r\n code === `auth/${\"user-token-expired\" /* AuthErrorCode.TOKEN_EXPIRED */}`);\r\n}\n\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\nclass ProactiveRefresh {\r\n constructor(user) {\r\n this.user = user;\r\n this.isRunning = false;\r\n // Node timers and browser timers return fundamentally different types.\r\n // We don't actually care what the value is but TS won't accept unknown and\r\n // we can't cast properly in both environments.\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n this.timerId = null;\r\n this.errorBackoff = 30000 /* Duration.RETRY_BACKOFF_MIN */;\r\n }\r\n _start() {\r\n if (this.isRunning) {\r\n return;\r\n }\r\n this.isRunning = true;\r\n this.schedule();\r\n }\r\n _stop() {\r\n if (!this.isRunning) {\r\n return;\r\n }\r\n this.isRunning = false;\r\n if (this.timerId !== null) {\r\n clearTimeout(this.timerId);\r\n }\r\n }\r\n getInterval(wasError) {\r\n var _a;\r\n if (wasError) {\r\n const interval = this.errorBackoff;\r\n this.errorBackoff = Math.min(this.errorBackoff * 2, 960000 /* Duration.RETRY_BACKOFF_MAX */);\r\n return interval;\r\n }\r\n else {\r\n // Reset the error backoff\r\n this.errorBackoff = 30000 /* Duration.RETRY_BACKOFF_MIN */;\r\n const expTime = (_a = this.user.stsTokenManager.expirationTime) !== null && _a !== void 0 ? _a : 0;\r\n const interval = expTime - Date.now() - 300000 /* Duration.OFFSET */;\r\n return Math.max(0, interval);\r\n }\r\n }\r\n schedule(wasError = false) {\r\n if (!this.isRunning) {\r\n // Just in case...\r\n return;\r\n }\r\n const interval = this.getInterval(wasError);\r\n this.timerId = setTimeout(async () => {\r\n await this.iteration();\r\n }, interval);\r\n }\r\n async iteration() {\r\n try {\r\n await this.user.getIdToken(true);\r\n }\r\n catch (e) {\r\n // Only retry on network errors\r\n if ((e === null || e === void 0 ? void 0 : e.code) ===\r\n `auth/${\"network-request-failed\" /* AuthErrorCode.NETWORK_REQUEST_FAILED */}`) {\r\n this.schedule(/* wasError */ true);\r\n }\r\n return;\r\n }\r\n this.schedule();\r\n }\r\n}\n\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\nclass UserMetadata {\r\n constructor(createdAt, lastLoginAt) {\r\n this.createdAt = createdAt;\r\n this.lastLoginAt = lastLoginAt;\r\n this._initializeTime();\r\n }\r\n _initializeTime() {\r\n this.lastSignInTime = utcTimestampToDateString(this.lastLoginAt);\r\n this.creationTime = utcTimestampToDateString(this.createdAt);\r\n }\r\n _copy(metadata) {\r\n this.createdAt = metadata.createdAt;\r\n this.lastLoginAt = metadata.lastLoginAt;\r\n this._initializeTime();\r\n }\r\n toJSON() {\r\n return {\r\n createdAt: this.createdAt,\r\n lastLoginAt: this.lastLoginAt\r\n };\r\n }\r\n}\n\n/**\r\n * @license\r\n * Copyright 2019 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\nasync function _reloadWithoutSaving(user) {\r\n var _a;\r\n const auth = user.auth;\r\n const idToken = await user.getIdToken();\r\n const response = await _logoutIfInvalidated(user, getAccountInfo(auth, { idToken }));\r\n _assert(response === null || response === void 0 ? void 0 : response.users.length, auth, \"internal-error\" /* AuthErrorCode.INTERNAL_ERROR */);\r\n const coreAccount = response.users[0];\r\n user._notifyReloadListener(coreAccount);\r\n const newProviderData = ((_a = coreAccount.providerUserInfo) === null || _a === void 0 ? void 0 : _a.length)\r\n ? extractProviderData(coreAccount.providerUserInfo)\r\n : [];\r\n const providerData = mergeProviderData(user.providerData, newProviderData);\r\n // Preserves the non-nonymous status of the stored user, even if no more\r\n // credentials (federated or email/password) are linked to the user. If\r\n // the user was previously anonymous, then use provider data to update.\r\n // On the other hand, if it was not anonymous before, it should never be\r\n // considered anonymous now.\r\n const oldIsAnonymous = user.isAnonymous;\r\n const newIsAnonymous = !(user.email && coreAccount.passwordHash) && !(providerData === null || providerData === void 0 ? void 0 : providerData.length);\r\n const isAnonymous = !oldIsAnonymous ? false : newIsAnonymous;\r\n const updates = {\r\n uid: coreAccount.localId,\r\n displayName: coreAccount.displayName || null,\r\n photoURL: coreAccount.photoUrl || null,\r\n email: coreAccount.email || null,\r\n emailVerified: coreAccount.emailVerified || false,\r\n phoneNumber: coreAccount.phoneNumber || null,\r\n tenantId: coreAccount.tenantId || null,\r\n providerData,\r\n metadata: new UserMetadata(coreAccount.createdAt, coreAccount.lastLoginAt),\r\n isAnonymous\r\n };\r\n Object.assign(user, updates);\r\n}\r\n/**\r\n * Reloads user account data, if signed in.\r\n *\r\n * @param user - The user.\r\n *\r\n * @public\r\n */\r\nasync function reload(user) {\r\n const userInternal = getModularInstance(user);\r\n await _reloadWithoutSaving(userInternal);\r\n // Even though the current user hasn't changed, update\r\n // current user will trigger a persistence update w/ the\r\n // new info.\r\n await userInternal.auth._persistUserIfCurrent(userInternal);\r\n userInternal.auth._notifyListenersIfCurrent(userInternal);\r\n}\r\nfunction mergeProviderData(original, newData) {\r\n const deduped = original.filter(o => !newData.some(n => n.providerId === o.providerId));\r\n return [...deduped, ...newData];\r\n}\r\nfunction extractProviderData(providers) {\r\n return providers.map((_a) => {\r\n var { providerId } = _a, provider = __rest(_a, [\"providerId\"]);\r\n return {\r\n providerId,\r\n uid: provider.rawId || '',\r\n displayName: provider.displayName || null,\r\n email: provider.email || null,\r\n phoneNumber: provider.phoneNumber || null,\r\n photoURL: provider.photoUrl || null\r\n };\r\n });\r\n}\n\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\nasync function requestStsToken(auth, refreshToken) {\r\n const response = await _performFetchWithErrorHandling(auth, {}, async () => {\r\n const body = querystring({\r\n 'grant_type': 'refresh_token',\r\n 'refresh_token': refreshToken\r\n }).slice(1);\r\n const { tokenApiHost, apiKey } = auth.config;\r\n const url = _getFinalTarget(auth, tokenApiHost, \"/v1/token\" /* Endpoint.TOKEN */, `key=${apiKey}`);\r\n const headers = await auth._getAdditionalHeaders();\r\n headers[\"Content-Type\" /* HttpHeader.CONTENT_TYPE */] = 'application/x-www-form-urlencoded';\r\n return FetchProvider.fetch()(url, {\r\n method: \"POST\" /* HttpMethod.POST */,\r\n headers,\r\n body\r\n });\r\n });\r\n // The response comes back in snake_case. Convert to camel:\r\n return {\r\n accessToken: response.access_token,\r\n expiresIn: response.expires_in,\r\n refreshToken: response.refresh_token\r\n };\r\n}\r\nasync function revokeToken(auth, request) {\r\n return _performApiRequest(auth, \"POST\" /* HttpMethod.POST */, \"/v2/accounts:revokeToken\" /* Endpoint.REVOKE_TOKEN */, _addTidIfNecessary(auth, request));\r\n}\n\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\n/**\r\n * We need to mark this class as internal explicitly to exclude it in the public typings, because\r\n * it references AuthInternal which has a circular dependency with UserInternal.\r\n *\r\n * @internal\r\n */\r\nclass StsTokenManager {\r\n constructor() {\r\n this.refreshToken = null;\r\n this.accessToken = null;\r\n this.expirationTime = null;\r\n }\r\n get isExpired() {\r\n return (!this.expirationTime ||\r\n Date.now() > this.expirationTime - 30000 /* Buffer.TOKEN_REFRESH */);\r\n }\r\n updateFromServerResponse(response) {\r\n _assert(response.idToken, \"internal-error\" /* AuthErrorCode.INTERNAL_ERROR */);\r\n _assert(typeof response.idToken !== 'undefined', \"internal-error\" /* AuthErrorCode.INTERNAL_ERROR */);\r\n _assert(typeof response.refreshToken !== 'undefined', \"internal-error\" /* AuthErrorCode.INTERNAL_ERROR */);\r\n const expiresIn = 'expiresIn' in response && typeof response.expiresIn !== 'undefined'\r\n ? Number(response.expiresIn)\r\n : _tokenExpiresIn(response.idToken);\r\n this.updateTokensAndExpiration(response.idToken, response.refreshToken, expiresIn);\r\n }\r\n async getToken(auth, forceRefresh = false) {\r\n _assert(!this.accessToken || this.refreshToken, auth, \"user-token-expired\" /* AuthErrorCode.TOKEN_EXPIRED */);\r\n if (!forceRefresh && this.accessToken && !this.isExpired) {\r\n return this.accessToken;\r\n }\r\n if (this.refreshToken) {\r\n await this.refresh(auth, this.refreshToken);\r\n return this.accessToken;\r\n }\r\n return null;\r\n }\r\n clearRefreshToken() {\r\n this.refreshToken = null;\r\n }\r\n async refresh(auth, oldToken) {\r\n const { accessToken, refreshToken, expiresIn } = await requestStsToken(auth, oldToken);\r\n this.updateTokensAndExpiration(accessToken, refreshToken, Number(expiresIn));\r\n }\r\n updateTokensAndExpiration(accessToken, refreshToken, expiresInSec) {\r\n this.refreshToken = refreshToken || null;\r\n this.accessToken = accessToken || null;\r\n this.expirationTime = Date.now() + expiresInSec * 1000;\r\n }\r\n static fromJSON(appName, object) {\r\n const { refreshToken, accessToken, expirationTime } = object;\r\n const manager = new StsTokenManager();\r\n if (refreshToken) {\r\n _assert(typeof refreshToken === 'string', \"internal-error\" /* AuthErrorCode.INTERNAL_ERROR */, {\r\n appName\r\n });\r\n manager.refreshToken = refreshToken;\r\n }\r\n if (accessToken) {\r\n _assert(typeof accessToken === 'string', \"internal-error\" /* AuthErrorCode.INTERNAL_ERROR */, {\r\n appName\r\n });\r\n manager.accessToken = accessToken;\r\n }\r\n if (expirationTime) {\r\n _assert(typeof expirationTime === 'number', \"internal-error\" /* AuthErrorCode.INTERNAL_ERROR */, {\r\n appName\r\n });\r\n manager.expirationTime = expirationTime;\r\n }\r\n return manager;\r\n }\r\n toJSON() {\r\n return {\r\n refreshToken: this.refreshToken,\r\n accessToken: this.accessToken,\r\n expirationTime: this.expirationTime\r\n };\r\n }\r\n _assign(stsTokenManager) {\r\n this.accessToken = stsTokenManager.accessToken;\r\n this.refreshToken = stsTokenManager.refreshToken;\r\n this.expirationTime = stsTokenManager.expirationTime;\r\n }\r\n _clone() {\r\n return Object.assign(new StsTokenManager(), this.toJSON());\r\n }\r\n _performRefresh() {\r\n return debugFail('not implemented');\r\n }\r\n}\n\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\nfunction assertStringOrUndefined(assertion, appName) {\r\n _assert(typeof assertion === 'string' || typeof assertion === 'undefined', \"internal-error\" /* AuthErrorCode.INTERNAL_ERROR */, { appName });\r\n}\r\nclass UserImpl {\r\n constructor(_a) {\r\n var { uid, auth, stsTokenManager } = _a, opt = __rest(_a, [\"uid\", \"auth\", \"stsTokenManager\"]);\r\n // For the user object, provider is always Firebase.\r\n this.providerId = \"firebase\" /* ProviderId.FIREBASE */;\r\n this.proactiveRefresh = new ProactiveRefresh(this);\r\n this.reloadUserInfo = null;\r\n this.reloadListener = null;\r\n this.uid = uid;\r\n this.auth = auth;\r\n this.stsTokenManager = stsTokenManager;\r\n this.accessToken = stsTokenManager.accessToken;\r\n this.displayName = opt.displayName || null;\r\n this.email = opt.email || null;\r\n this.emailVerified = opt.emailVerified || false;\r\n this.phoneNumber = opt.phoneNumber || null;\r\n this.photoURL = opt.photoURL || null;\r\n this.isAnonymous = opt.isAnonymous || false;\r\n this.tenantId = opt.tenantId || null;\r\n this.providerData = opt.providerData ? [...opt.providerData] : [];\r\n this.metadata = new UserMetadata(opt.createdAt || undefined, opt.lastLoginAt || undefined);\r\n }\r\n async getIdToken(forceRefresh) {\r\n const accessToken = await _logoutIfInvalidated(this, this.stsTokenManager.getToken(this.auth, forceRefresh));\r\n _assert(accessToken, this.auth, \"internal-error\" /* AuthErrorCode.INTERNAL_ERROR */);\r\n if (this.accessToken !== accessToken) {\r\n this.accessToken = accessToken;\r\n await this.auth._persistUserIfCurrent(this);\r\n this.auth._notifyListenersIfCurrent(this);\r\n }\r\n return accessToken;\r\n }\r\n getIdTokenResult(forceRefresh) {\r\n return getIdTokenResult(this, forceRefresh);\r\n }\r\n reload() {\r\n return reload(this);\r\n }\r\n _assign(user) {\r\n if (this === user) {\r\n return;\r\n }\r\n _assert(this.uid === user.uid, this.auth, \"internal-error\" /* AuthErrorCode.INTERNAL_ERROR */);\r\n this.displayName = user.displayName;\r\n this.photoURL = user.photoURL;\r\n this.email = user.email;\r\n this.emailVerified = user.emailVerified;\r\n this.phoneNumber = user.phoneNumber;\r\n this.isAnonymous = user.isAnonymous;\r\n this.tenantId = user.tenantId;\r\n this.providerData = user.providerData.map(userInfo => (Object.assign({}, userInfo)));\r\n this.metadata._copy(user.metadata);\r\n this.stsTokenManager._assign(user.stsTokenManager);\r\n }\r\n _clone(auth) {\r\n const newUser = new UserImpl(Object.assign(Object.assign({}, this), { auth, stsTokenManager: this.stsTokenManager._clone() }));\r\n newUser.metadata._copy(this.metadata);\r\n return newUser;\r\n }\r\n _onReload(callback) {\r\n // There should only ever be one listener, and that is a single instance of MultiFactorUser\r\n _assert(!this.reloadListener, this.auth, \"internal-error\" /* AuthErrorCode.INTERNAL_ERROR */);\r\n this.reloadListener = callback;\r\n if (this.reloadUserInfo) {\r\n this._notifyReloadListener(this.reloadUserInfo);\r\n this.reloadUserInfo = null;\r\n }\r\n }\r\n _notifyReloadListener(userInfo) {\r\n if (this.reloadListener) {\r\n this.reloadListener(userInfo);\r\n }\r\n else {\r\n // If no listener is subscribed yet, save the result so it's available when they do subscribe\r\n this.reloadUserInfo = userInfo;\r\n }\r\n }\r\n _startProactiveRefresh() {\r\n this.proactiveRefresh._start();\r\n }\r\n _stopProactiveRefresh() {\r\n this.proactiveRefresh._stop();\r\n }\r\n async _updateTokensIfNecessary(response, reload = false) {\r\n let tokensRefreshed = false;\r\n if (response.idToken &&\r\n response.idToken !== this.stsTokenManager.accessToken) {\r\n this.stsTokenManager.updateFromServerResponse(response);\r\n tokensRefreshed = true;\r\n }\r\n if (reload) {\r\n await _reloadWithoutSaving(this);\r\n }\r\n await this.auth._persistUserIfCurrent(this);\r\n if (tokensRefreshed) {\r\n this.auth._notifyListenersIfCurrent(this);\r\n }\r\n }\r\n async delete() {\r\n const idToken = await this.getIdToken();\r\n await _logoutIfInvalidated(this, deleteAccount(this.auth, { idToken }));\r\n this.stsTokenManager.clearRefreshToken();\r\n // TODO: Determine if cancellable-promises are necessary to use in this class so that delete()\r\n // cancels pending actions...\r\n return this.auth.signOut();\r\n }\r\n toJSON() {\r\n return Object.assign(Object.assign({ uid: this.uid, email: this.email || undefined, emailVerified: this.emailVerified, displayName: this.displayName || undefined, isAnonymous: this.isAnonymous, photoURL: this.photoURL || undefined, phoneNumber: this.phoneNumber || undefined, tenantId: this.tenantId || undefined, providerData: this.providerData.map(userInfo => (Object.assign({}, userInfo))), stsTokenManager: this.stsTokenManager.toJSON(), \r\n // Redirect event ID must be maintained in case there is a pending\r\n // redirect event.\r\n _redirectEventId: this._redirectEventId }, this.metadata.toJSON()), { \r\n // Required for compatibility with the legacy SDK (go/firebase-auth-sdk-persistence-parsing):\r\n apiKey: this.auth.config.apiKey, appName: this.auth.name });\r\n }\r\n get refreshToken() {\r\n return this.stsTokenManager.refreshToken || '';\r\n }\r\n static _fromJSON(auth, object) {\r\n var _a, _b, _c, _d, _e, _f, _g, _h;\r\n const displayName = (_a = object.displayName) !== null && _a !== void 0 ? _a : undefined;\r\n const email = (_b = object.email) !== null && _b !== void 0 ? _b : undefined;\r\n const phoneNumber = (_c = object.phoneNumber) !== null && _c !== void 0 ? _c : undefined;\r\n const photoURL = (_d = object.photoURL) !== null && _d !== void 0 ? _d : undefined;\r\n const tenantId = (_e = object.tenantId) !== null && _e !== void 0 ? _e : undefined;\r\n const _redirectEventId = (_f = object._redirectEventId) !== null && _f !== void 0 ? _f : undefined;\r\n const createdAt = (_g = object.createdAt) !== null && _g !== void 0 ? _g : undefined;\r\n const lastLoginAt = (_h = object.lastLoginAt) !== null && _h !== void 0 ? _h : undefined;\r\n const { uid, emailVerified, isAnonymous, providerData, stsTokenManager: plainObjectTokenManager } = object;\r\n _assert(uid && plainObjectTokenManager, auth, \"internal-error\" /* AuthErrorCode.INTERNAL_ERROR */);\r\n const stsTokenManager = StsTokenManager.fromJSON(this.name, plainObjectTokenManager);\r\n _assert(typeof uid === 'string', auth, \"internal-error\" /* AuthErrorCode.INTERNAL_ERROR */);\r\n assertStringOrUndefined(displayName, auth.name);\r\n assertStringOrUndefined(email, auth.name);\r\n _assert(typeof emailVerified === 'boolean', auth, \"internal-error\" /* AuthErrorCode.INTERNAL_ERROR */);\r\n _assert(typeof isAnonymous === 'boolean', auth, \"internal-error\" /* AuthErrorCode.INTERNAL_ERROR */);\r\n assertStringOrUndefined(phoneNumber, auth.name);\r\n assertStringOrUndefined(photoURL, auth.name);\r\n assertStringOrUndefined(tenantId, auth.name);\r\n assertStringOrUndefined(_redirectEventId, auth.name);\r\n assertStringOrUndefined(createdAt, auth.name);\r\n assertStringOrUndefined(lastLoginAt, auth.name);\r\n const user = new UserImpl({\r\n uid,\r\n auth,\r\n email,\r\n emailVerified,\r\n displayName,\r\n isAnonymous,\r\n photoURL,\r\n phoneNumber,\r\n tenantId,\r\n stsTokenManager,\r\n createdAt,\r\n lastLoginAt\r\n });\r\n if (providerData && Array.isArray(providerData)) {\r\n user.providerData = providerData.map(userInfo => (Object.assign({}, userInfo)));\r\n }\r\n if (_redirectEventId) {\r\n user._redirectEventId = _redirectEventId;\r\n }\r\n return user;\r\n }\r\n /**\r\n * Initialize a User from an idToken server response\r\n * @param auth\r\n * @param idTokenResponse\r\n */\r\n static async _fromIdTokenResponse(auth, idTokenResponse, isAnonymous = false) {\r\n const stsTokenManager = new StsTokenManager();\r\n stsTokenManager.updateFromServerResponse(idTokenResponse);\r\n // Initialize the Firebase Auth user.\r\n const user = new UserImpl({\r\n uid: idTokenResponse.localId,\r\n auth,\r\n stsTokenManager,\r\n isAnonymous\r\n });\r\n // Updates the user info and data and resolves with a user instance.\r\n await _reloadWithoutSaving(user);\r\n return user;\r\n }\r\n}\n\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\nconst instanceCache = new Map();\r\nfunction _getInstance(cls) {\r\n debugAssert(cls instanceof Function, 'Expected a class definition');\r\n let instance = instanceCache.get(cls);\r\n if (instance) {\r\n debugAssert(instance instanceof cls, 'Instance stored in cache mismatched with class');\r\n return instance;\r\n }\r\n instance = new cls();\r\n instanceCache.set(cls, instance);\r\n return instance;\r\n}\n\n/**\r\n * @license\r\n * Copyright 2019 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\nclass InMemoryPersistence {\r\n constructor() {\r\n this.type = \"NONE\" /* PersistenceType.NONE */;\r\n this.storage = {};\r\n }\r\n async _isAvailable() {\r\n return true;\r\n }\r\n async _set(key, value) {\r\n this.storage[key] = value;\r\n }\r\n async _get(key) {\r\n const value = this.storage[key];\r\n return value === undefined ? null : value;\r\n }\r\n async _remove(key) {\r\n delete this.storage[key];\r\n }\r\n _addListener(_key, _listener) {\r\n // Listeners are not supported for in-memory storage since it cannot be shared across windows/workers\r\n return;\r\n }\r\n _removeListener(_key, _listener) {\r\n // Listeners are not supported for in-memory storage since it cannot be shared across windows/workers\r\n return;\r\n }\r\n}\r\nInMemoryPersistence.type = 'NONE';\r\n/**\r\n * An implementation of {@link Persistence} of type 'NONE'.\r\n *\r\n * @public\r\n */\r\nconst inMemoryPersistence = InMemoryPersistence;\n\n/**\r\n * @license\r\n * Copyright 2019 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\nfunction _persistenceKeyName(key, apiKey, appName) {\r\n return `${\"firebase\" /* Namespace.PERSISTENCE */}:${key}:${apiKey}:${appName}`;\r\n}\r\nclass PersistenceUserManager {\r\n constructor(persistence, auth, userKey) {\r\n this.persistence = persistence;\r\n this.auth = auth;\r\n this.userKey = userKey;\r\n const { config, name } = this.auth;\r\n this.fullUserKey = _persistenceKeyName(this.userKey, config.apiKey, name);\r\n this.fullPersistenceKey = _persistenceKeyName(\"persistence\" /* KeyName.PERSISTENCE_USER */, config.apiKey, name);\r\n this.boundEventHandler = auth._onStorageEvent.bind(auth);\r\n this.persistence._addListener(this.fullUserKey, this.boundEventHandler);\r\n }\r\n setCurrentUser(user) {\r\n return this.persistence._set(this.fullUserKey, user.toJSON());\r\n }\r\n async getCurrentUser() {\r\n const blob = await this.persistence._get(this.fullUserKey);\r\n return blob ? UserImpl._fromJSON(this.auth, blob) : null;\r\n }\r\n removeCurrentUser() {\r\n return this.persistence._remove(this.fullUserKey);\r\n }\r\n savePersistenceForRedirect() {\r\n return this.persistence._set(this.fullPersistenceKey, this.persistence.type);\r\n }\r\n async setPersistence(newPersistence) {\r\n if (this.persistence === newPersistence) {\r\n return;\r\n }\r\n const currentUser = await this.getCurrentUser();\r\n await this.removeCurrentUser();\r\n this.persistence = newPersistence;\r\n if (currentUser) {\r\n return this.setCurrentUser(currentUser);\r\n }\r\n }\r\n delete() {\r\n this.persistence._removeListener(this.fullUserKey, this.boundEventHandler);\r\n }\r\n static async create(auth, persistenceHierarchy, userKey = \"authUser\" /* KeyName.AUTH_USER */) {\r\n if (!persistenceHierarchy.length) {\r\n return new PersistenceUserManager(_getInstance(inMemoryPersistence), auth, userKey);\r\n }\r\n // Eliminate any persistences that are not available\r\n const availablePersistences = (await Promise.all(persistenceHierarchy.map(async (persistence) => {\r\n if (await persistence._isAvailable()) {\r\n return persistence;\r\n }\r\n return undefined;\r\n }))).filter(persistence => persistence);\r\n // Fall back to the first persistence listed, or in memory if none available\r\n let selectedPersistence = availablePersistences[0] ||\r\n _getInstance(inMemoryPersistence);\r\n const key = _persistenceKeyName(userKey, auth.config.apiKey, auth.name);\r\n // Pull out the existing user, setting the chosen persistence to that\r\n // persistence if the user exists.\r\n let userToMigrate = null;\r\n // Note, here we check for a user in _all_ persistences, not just the\r\n // ones deemed available. If we can migrate a user out of a broken\r\n // persistence, we will (but only if that persistence supports migration).\r\n for (const persistence of persistenceHierarchy) {\r\n try {\r\n const blob = await persistence._get(key);\r\n if (blob) {\r\n const user = UserImpl._fromJSON(auth, blob); // throws for unparsable blob (wrong format)\r\n if (persistence !== selectedPersistence) {\r\n userToMigrate = user;\r\n }\r\n selectedPersistence = persistence;\r\n break;\r\n }\r\n }\r\n catch (_a) { }\r\n }\r\n // If we find the user in a persistence that does support migration, use\r\n // that migration path (of only persistences that support migration)\r\n const migrationHierarchy = availablePersistences.filter(p => p._shouldAllowMigration);\r\n // If the persistence does _not_ allow migration, just finish off here\r\n if (!selectedPersistence._shouldAllowMigration ||\r\n !migrationHierarchy.length) {\r\n return new PersistenceUserManager(selectedPersistence, auth, userKey);\r\n }\r\n selectedPersistence = migrationHierarchy[0];\r\n if (userToMigrate) {\r\n // This normally shouldn't throw since chosenPersistence.isAvailable() is true, but if it does\r\n // we'll just let it bubble to surface the error.\r\n await selectedPersistence._set(key, userToMigrate.toJSON());\r\n }\r\n // Attempt to clear the key in other persistences but ignore errors. This helps prevent issues\r\n // such as users getting stuck with a previous account after signing out and refreshing the tab.\r\n await Promise.all(persistenceHierarchy.map(async (persistence) => {\r\n if (persistence !== selectedPersistence) {\r\n try {\r\n await persistence._remove(key);\r\n }\r\n catch (_a) { }\r\n }\r\n }));\r\n return new PersistenceUserManager(selectedPersistence, auth, userKey);\r\n }\r\n}\n\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\n/**\r\n * Determine the browser for the purposes of reporting usage to the API\r\n */\r\nfunction _getBrowserName(userAgent) {\r\n const ua = userAgent.toLowerCase();\r\n if (ua.includes('opera/') || ua.includes('opr/') || ua.includes('opios/')) {\r\n return \"Opera\" /* BrowserName.OPERA */;\r\n }\r\n else if (_isIEMobile(ua)) {\r\n // Windows phone IEMobile browser.\r\n return \"IEMobile\" /* BrowserName.IEMOBILE */;\r\n }\r\n else if (ua.includes('msie') || ua.includes('trident/')) {\r\n return \"IE\" /* BrowserName.IE */;\r\n }\r\n else if (ua.includes('edge/')) {\r\n return \"Edge\" /* BrowserName.EDGE */;\r\n }\r\n else if (_isFirefox(ua)) {\r\n return \"Firefox\" /* BrowserName.FIREFOX */;\r\n }\r\n else if (ua.includes('silk/')) {\r\n return \"Silk\" /* BrowserName.SILK */;\r\n }\r\n else if (_isBlackBerry(ua)) {\r\n // Blackberry browser.\r\n return \"Blackberry\" /* BrowserName.BLACKBERRY */;\r\n }\r\n else if (_isWebOS(ua)) {\r\n // WebOS default browser.\r\n return \"Webos\" /* BrowserName.WEBOS */;\r\n }\r\n else if (_isSafari(ua)) {\r\n return \"Safari\" /* BrowserName.SAFARI */;\r\n }\r\n else if ((ua.includes('chrome/') || _isChromeIOS(ua)) &&\r\n !ua.includes('edge/')) {\r\n return \"Chrome\" /* BrowserName.CHROME */;\r\n }\r\n else if (_isAndroid(ua)) {\r\n // Android stock browser.\r\n return \"Android\" /* BrowserName.ANDROID */;\r\n }\r\n else {\r\n // Most modern browsers have name/version at end of user agent string.\r\n const re = /([a-zA-Z\\d\\.]+)\\/[a-zA-Z\\d\\.]*$/;\r\n const matches = userAgent.match(re);\r\n if ((matches === null || matches === void 0 ? void 0 : matches.length) === 2) {\r\n return matches[1];\r\n }\r\n }\r\n return \"Other\" /* BrowserName.OTHER */;\r\n}\r\nfunction _isFirefox(ua = getUA()) {\r\n return /firefox\\//i.test(ua);\r\n}\r\nfunction _isSafari(userAgent = getUA()) {\r\n const ua = userAgent.toLowerCase();\r\n return (ua.includes('safari/') &&\r\n !ua.includes('chrome/') &&\r\n !ua.includes('crios/') &&\r\n !ua.includes('android'));\r\n}\r\nfunction _isChromeIOS(ua = getUA()) {\r\n return /crios\\//i.test(ua);\r\n}\r\nfunction _isIEMobile(ua = getUA()) {\r\n return /iemobile/i.test(ua);\r\n}\r\nfunction _isAndroid(ua = getUA()) {\r\n return /android/i.test(ua);\r\n}\r\nfunction _isBlackBerry(ua = getUA()) {\r\n return /blackberry/i.test(ua);\r\n}\r\nfunction _isWebOS(ua = getUA()) {\r\n return /webos/i.test(ua);\r\n}\r\nfunction _isIOS(ua = getUA()) {\r\n return (/iphone|ipad|ipod/i.test(ua) ||\r\n (/macintosh/i.test(ua) && /mobile/i.test(ua)));\r\n}\r\nfunction _isIOS7Or8(ua = getUA()) {\r\n return (/(iPad|iPhone|iPod).*OS 7_\\d/i.test(ua) ||\r\n /(iPad|iPhone|iPod).*OS 8_\\d/i.test(ua));\r\n}\r\nfunction _isIOSStandalone(ua = getUA()) {\r\n var _a;\r\n return _isIOS(ua) && !!((_a = window.navigator) === null || _a === void 0 ? void 0 : _a.standalone);\r\n}\r\nfunction _isIE10() {\r\n return isIE() && document.documentMode === 10;\r\n}\r\nfunction _isMobileBrowser(ua = getUA()) {\r\n // TODO: implement getBrowserName equivalent for OS.\r\n return (_isIOS(ua) ||\r\n _isAndroid(ua) ||\r\n _isWebOS(ua) ||\r\n _isBlackBerry(ua) ||\r\n /windows phone/i.test(ua) ||\r\n _isIEMobile(ua));\r\n}\r\nfunction _isIframe() {\r\n try {\r\n // Check that the current window is not the top window.\r\n // If so, return true.\r\n return !!(window && window !== window.top);\r\n }\r\n catch (e) {\r\n return false;\r\n }\r\n}\n\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\n/*\r\n * Determine the SDK version string\r\n */\r\nfunction _getClientVersion(clientPlatform, frameworks = []) {\r\n let reportedPlatform;\r\n switch (clientPlatform) {\r\n case \"Browser\" /* ClientPlatform.BROWSER */:\r\n // In a browser environment, report the browser name.\r\n reportedPlatform = _getBrowserName(getUA());\r\n break;\r\n case \"Worker\" /* ClientPlatform.WORKER */:\r\n // Technically a worker runs from a browser but we need to differentiate a\r\n // worker from a browser.\r\n // For example: Chrome-Worker/JsCore/4.9.1/FirebaseCore-web.\r\n reportedPlatform = `${_getBrowserName(getUA())}-${clientPlatform}`;\r\n break;\r\n default:\r\n reportedPlatform = clientPlatform;\r\n }\r\n const reportedFrameworks = frameworks.length\r\n ? frameworks.join(',')\r\n : 'FirebaseCore-web'; /* default value if no other framework is used */\r\n return `${reportedPlatform}/${\"JsCore\" /* ClientImplementation.CORE */}/${SDK_VERSION}/${reportedFrameworks}`;\r\n}\n\n/**\r\n * @license\r\n * Copyright 2022 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\nclass AuthMiddlewareQueue {\r\n constructor(auth) {\r\n this.auth = auth;\r\n this.queue = [];\r\n }\r\n pushCallback(callback, onAbort) {\r\n // The callback could be sync or async. Wrap it into a\r\n // function that is always async.\r\n const wrappedCallback = (user) => new Promise((resolve, reject) => {\r\n try {\r\n const result = callback(user);\r\n // Either resolve with existing promise or wrap a non-promise\r\n // return value into a promise.\r\n resolve(result);\r\n }\r\n catch (e) {\r\n // Sync callback throws.\r\n reject(e);\r\n }\r\n });\r\n // Attach the onAbort if present\r\n wrappedCallback.onAbort = onAbort;\r\n this.queue.push(wrappedCallback);\r\n const index = this.queue.length - 1;\r\n return () => {\r\n // Unsubscribe. Replace with no-op. Do not remove from array, or it will disturb\r\n // indexing of other elements.\r\n this.queue[index] = () => Promise.resolve();\r\n };\r\n }\r\n async runMiddleware(nextUser) {\r\n if (this.auth.currentUser === nextUser) {\r\n return;\r\n }\r\n // While running the middleware, build a temporary stack of onAbort\r\n // callbacks to call if one middleware callback rejects.\r\n const onAbortStack = [];\r\n try {\r\n for (const beforeStateCallback of this.queue) {\r\n await beforeStateCallback(nextUser);\r\n // Only push the onAbort if the callback succeeds\r\n if (beforeStateCallback.onAbort) {\r\n onAbortStack.push(beforeStateCallback.onAbort);\r\n }\r\n }\r\n }\r\n catch (e) {\r\n // Run all onAbort, with separate try/catch to ignore any errors and\r\n // continue\r\n onAbortStack.reverse();\r\n for (const onAbort of onAbortStack) {\r\n try {\r\n onAbort();\r\n }\r\n catch (_) {\r\n /* swallow error */\r\n }\r\n }\r\n throw this.auth._errorFactory.create(\"login-blocked\" /* AuthErrorCode.LOGIN_BLOCKED */, {\r\n originalMessage: e === null || e === void 0 ? void 0 : e.message\r\n });\r\n }\r\n }\r\n}\n\n/**\r\n * @license\r\n * Copyright 2023 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\n/**\r\n * Fetches the password policy for the currently set tenant or the project if no tenant is set.\r\n *\r\n * @param auth Auth object.\r\n * @param request Password policy request.\r\n * @returns Password policy response.\r\n */\r\nasync function _getPasswordPolicy(auth, request = {}) {\r\n return _performApiRequest(auth, \"GET\" /* HttpMethod.GET */, \"/v2/passwordPolicy\" /* Endpoint.GET_PASSWORD_POLICY */, _addTidIfNecessary(auth, request));\r\n}\n\n/**\r\n * @license\r\n * Copyright 2023 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\n// Minimum min password length enforced by the backend, even if no minimum length is set.\r\nconst MINIMUM_MIN_PASSWORD_LENGTH = 6;\r\n/**\r\n * Stores password policy requirements and provides password validation against the policy.\r\n *\r\n * @internal\r\n */\r\nclass PasswordPolicyImpl {\r\n constructor(response) {\r\n var _a, _b, _c, _d;\r\n // Only include custom strength options defined in the response.\r\n const responseOptions = response.customStrengthOptions;\r\n this.customStrengthOptions = {};\r\n // TODO: Remove once the backend is updated to include the minimum min password length instead of undefined when there is no minimum length set.\r\n this.customStrengthOptions.minPasswordLength =\r\n (_a = responseOptions.minPasswordLength) !== null && _a !== void 0 ? _a : MINIMUM_MIN_PASSWORD_LENGTH;\r\n if (responseOptions.maxPasswordLength) {\r\n this.customStrengthOptions.maxPasswordLength =\r\n responseOptions.maxPasswordLength;\r\n }\r\n if (responseOptions.containsLowercaseCharacter !== undefined) {\r\n this.customStrengthOptions.containsLowercaseLetter =\r\n responseOptions.containsLowercaseCharacter;\r\n }\r\n if (responseOptions.containsUppercaseCharacter !== undefined) {\r\n this.customStrengthOptions.containsUppercaseLetter =\r\n responseOptions.containsUppercaseCharacter;\r\n }\r\n if (responseOptions.containsNumericCharacter !== undefined) {\r\n this.customStrengthOptions.containsNumericCharacter =\r\n responseOptions.containsNumericCharacter;\r\n }\r\n if (responseOptions.containsNonAlphanumericCharacter !== undefined) {\r\n this.customStrengthOptions.containsNonAlphanumericCharacter =\r\n responseOptions.containsNonAlphanumericCharacter;\r\n }\r\n this.enforcementState = response.enforcementState;\r\n if (this.enforcementState === 'ENFORCEMENT_STATE_UNSPECIFIED') {\r\n this.enforcementState = 'OFF';\r\n }\r\n // Use an empty string if no non-alphanumeric characters are specified in the response.\r\n this.allowedNonAlphanumericCharacters =\r\n (_c = (_b = response.allowedNonAlphanumericCharacters) === null || _b === void 0 ? void 0 : _b.join('')) !== null && _c !== void 0 ? _c : '';\r\n this.forceUpgradeOnSignin = (_d = response.forceUpgradeOnSignin) !== null && _d !== void 0 ? _d : false;\r\n this.schemaVersion = response.schemaVersion;\r\n }\r\n validatePassword(password) {\r\n var _a, _b, _c, _d, _e, _f;\r\n const status = {\r\n isValid: true,\r\n passwordPolicy: this\r\n };\r\n // Check the password length and character options.\r\n this.validatePasswordLengthOptions(password, status);\r\n this.validatePasswordCharacterOptions(password, status);\r\n // Combine the status into single isValid property.\r\n status.isValid && (status.isValid = (_a = status.meetsMinPasswordLength) !== null && _a !== void 0 ? _a : true);\r\n status.isValid && (status.isValid = (_b = status.meetsMaxPasswordLength) !== null && _b !== void 0 ? _b : true);\r\n status.isValid && (status.isValid = (_c = status.containsLowercaseLetter) !== null && _c !== void 0 ? _c : true);\r\n status.isValid && (status.isValid = (_d = status.containsUppercaseLetter) !== null && _d !== void 0 ? _d : true);\r\n status.isValid && (status.isValid = (_e = status.containsNumericCharacter) !== null && _e !== void 0 ? _e : true);\r\n status.isValid && (status.isValid = (_f = status.containsNonAlphanumericCharacter) !== null && _f !== void 0 ? _f : true);\r\n return status;\r\n }\r\n /**\r\n * Validates that the password meets the length options for the policy.\r\n *\r\n * @param password Password to validate.\r\n * @param status Validation status.\r\n */\r\n validatePasswordLengthOptions(password, status) {\r\n const minPasswordLength = this.customStrengthOptions.minPasswordLength;\r\n const maxPasswordLength = this.customStrengthOptions.maxPasswordLength;\r\n if (minPasswordLength) {\r\n status.meetsMinPasswordLength = password.length >= minPasswordLength;\r\n }\r\n if (maxPasswordLength) {\r\n status.meetsMaxPasswordLength = password.length <= maxPasswordLength;\r\n }\r\n }\r\n /**\r\n * Validates that the password meets the character options for the policy.\r\n *\r\n * @param password Password to validate.\r\n * @param status Validation status.\r\n */\r\n validatePasswordCharacterOptions(password, status) {\r\n // Assign statuses for requirements even if the password is an empty string.\r\n this.updatePasswordCharacterOptionsStatuses(status, \r\n /* containsLowercaseCharacter= */ false, \r\n /* containsUppercaseCharacter= */ false, \r\n /* containsNumericCharacter= */ false, \r\n /* containsNonAlphanumericCharacter= */ false);\r\n let passwordChar;\r\n for (let i = 0; i < password.length; i++) {\r\n passwordChar = password.charAt(i);\r\n this.updatePasswordCharacterOptionsStatuses(status, \r\n /* containsLowercaseCharacter= */ passwordChar >= 'a' &&\r\n passwordChar <= 'z', \r\n /* containsUppercaseCharacter= */ passwordChar >= 'A' &&\r\n passwordChar <= 'Z', \r\n /* containsNumericCharacter= */ passwordChar >= '0' &&\r\n passwordChar <= '9', \r\n /* containsNonAlphanumericCharacter= */ this.allowedNonAlphanumericCharacters.includes(passwordChar));\r\n }\r\n }\r\n /**\r\n * Updates the running validation status with the statuses for the character options.\r\n * Expected to be called each time a character is processed to update each option status\r\n * based on the current character.\r\n *\r\n * @param status Validation status.\r\n * @param containsLowercaseCharacter Whether the character is a lowercase letter.\r\n * @param containsUppercaseCharacter Whether the character is an uppercase letter.\r\n * @param containsNumericCharacter Whether the character is a numeric character.\r\n * @param containsNonAlphanumericCharacter Whether the character is a non-alphanumeric character.\r\n */\r\n updatePasswordCharacterOptionsStatuses(status, containsLowercaseCharacter, containsUppercaseCharacter, containsNumericCharacter, containsNonAlphanumericCharacter) {\r\n if (this.customStrengthOptions.containsLowercaseLetter) {\r\n status.containsLowercaseLetter || (status.containsLowercaseLetter = containsLowercaseCharacter);\r\n }\r\n if (this.customStrengthOptions.containsUppercaseLetter) {\r\n status.containsUppercaseLetter || (status.containsUppercaseLetter = containsUppercaseCharacter);\r\n }\r\n if (this.customStrengthOptions.containsNumericCharacter) {\r\n status.containsNumericCharacter || (status.containsNumericCharacter = containsNumericCharacter);\r\n }\r\n if (this.customStrengthOptions.containsNonAlphanumericCharacter) {\r\n status.containsNonAlphanumericCharacter || (status.containsNonAlphanumericCharacter = containsNonAlphanumericCharacter);\r\n }\r\n }\r\n}\n\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\nclass AuthImpl {\r\n constructor(app, heartbeatServiceProvider, appCheckServiceProvider, config) {\r\n this.app = app;\r\n this.heartbeatServiceProvider = heartbeatServiceProvider;\r\n this.appCheckServiceProvider = appCheckServiceProvider;\r\n this.config = config;\r\n this.currentUser = null;\r\n this.emulatorConfig = null;\r\n this.operations = Promise.resolve();\r\n this.authStateSubscription = new Subscription(this);\r\n this.idTokenSubscription = new Subscription(this);\r\n this.beforeStateQueue = new AuthMiddlewareQueue(this);\r\n this.redirectUser = null;\r\n this.isProactiveRefreshEnabled = false;\r\n this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION = 1;\r\n // Any network calls will set this to true and prevent subsequent emulator\r\n // initialization\r\n this._canInitEmulator = true;\r\n this._isInitialized = false;\r\n this._deleted = false;\r\n this._initializationPromise = null;\r\n this._popupRedirectResolver = null;\r\n this._errorFactory = _DEFAULT_AUTH_ERROR_FACTORY;\r\n this._agentRecaptchaConfig = null;\r\n this._tenantRecaptchaConfigs = {};\r\n this._projectPasswordPolicy = null;\r\n this._tenantPasswordPolicies = {};\r\n // Tracks the last notified UID for state change listeners to prevent\r\n // repeated calls to the callbacks. Undefined means it's never been\r\n // called, whereas null means it's been called with a signed out user\r\n this.lastNotifiedUid = undefined;\r\n this.languageCode = null;\r\n this.tenantId = null;\r\n this.settings = { appVerificationDisabledForTesting: false };\r\n this.frameworks = [];\r\n this.name = app.name;\r\n this.clientVersion = config.sdkClientVersion;\r\n }\r\n _initializeWithPersistence(persistenceHierarchy, popupRedirectResolver) {\r\n if (popupRedirectResolver) {\r\n this._popupRedirectResolver = _getInstance(popupRedirectResolver);\r\n }\r\n // Have to check for app deletion throughout initialization (after each\r\n // promise resolution)\r\n this._initializationPromise = this.queue(async () => {\r\n var _a, _b;\r\n if (this._deleted) {\r\n return;\r\n }\r\n this.persistenceManager = await PersistenceUserManager.create(this, persistenceHierarchy);\r\n if (this._deleted) {\r\n return;\r\n }\r\n // Initialize the resolver early if necessary (only applicable to web:\r\n // this will cause the iframe to load immediately in certain cases)\r\n if ((_a = this._popupRedirectResolver) === null || _a === void 0 ? void 0 : _a._shouldInitProactively) {\r\n // If this fails, don't halt auth loading\r\n try {\r\n await this._popupRedirectResolver._initialize(this);\r\n }\r\n catch (e) {\r\n /* Ignore the error */\r\n }\r\n }\r\n await this.initializeCurrentUser(popupRedirectResolver);\r\n this.lastNotifiedUid = ((_b = this.currentUser) === null || _b === void 0 ? void 0 : _b.uid) || null;\r\n if (this._deleted) {\r\n return;\r\n }\r\n this._isInitialized = true;\r\n });\r\n return this._initializationPromise;\r\n }\r\n /**\r\n * If the persistence is changed in another window, the user manager will let us know\r\n */\r\n async _onStorageEvent() {\r\n if (this._deleted) {\r\n return;\r\n }\r\n const user = await this.assertedPersistence.getCurrentUser();\r\n if (!this.currentUser && !user) {\r\n // No change, do nothing (was signed out and remained signed out).\r\n return;\r\n }\r\n // If the same user is to be synchronized.\r\n if (this.currentUser && user && this.currentUser.uid === user.uid) {\r\n // Data update, simply copy data changes.\r\n this._currentUser._assign(user);\r\n // If tokens changed from previous user tokens, this will trigger\r\n // notifyAuthListeners_.\r\n await this.currentUser.getIdToken();\r\n return;\r\n }\r\n // Update current Auth state. Either a new login or logout.\r\n // Skip blocking callbacks, they should not apply to a change in another tab.\r\n await this._updateCurrentUser(user, /* skipBeforeStateCallbacks */ true);\r\n }\r\n async initializeCurrentUser(popupRedirectResolver) {\r\n var _a;\r\n // First check to see if we have a pending redirect event.\r\n const previouslyStoredUser = (await this.assertedPersistence.getCurrentUser());\r\n let futureCurrentUser = previouslyStoredUser;\r\n let needsTocheckMiddleware = false;\r\n if (popupRedirectResolver && this.config.authDomain) {\r\n await this.getOrInitRedirectPersistenceManager();\r\n const redirectUserEventId = (_a = this.redirectUser) === null || _a === void 0 ? void 0 : _a._redirectEventId;\r\n const storedUserEventId = futureCurrentUser === null || futureCurrentUser === void 0 ? void 0 : futureCurrentUser._redirectEventId;\r\n const result = await this.tryRedirectSignIn(popupRedirectResolver);\r\n // If the stored user (i.e. the old \"currentUser\") has a redirectId that\r\n // matches the redirect user, then we want to initially sign in with the\r\n // new user object from result.\r\n // TODO(samgho): More thoroughly test all of this\r\n if ((!redirectUserEventId || redirectUserEventId === storedUserEventId) &&\r\n (result === null || result === void 0 ? void 0 : result.user)) {\r\n futureCurrentUser = result.user;\r\n needsTocheckMiddleware = true;\r\n }\r\n }\r\n // If no user in persistence, there is no current user. Set to null.\r\n if (!futureCurrentUser) {\r\n return this.directlySetCurrentUser(null);\r\n }\r\n if (!futureCurrentUser._redirectEventId) {\r\n // This isn't a redirect link operation, we can reload and bail.\r\n // First though, ensure that we check the middleware is happy.\r\n if (needsTocheckMiddleware) {\r\n try {\r\n await this.beforeStateQueue.runMiddleware(futureCurrentUser);\r\n }\r\n catch (e) {\r\n futureCurrentUser = previouslyStoredUser;\r\n // We know this is available since the bit is only set when the\r\n // resolver is available\r\n this._popupRedirectResolver._overrideRedirectResult(this, () => Promise.reject(e));\r\n }\r\n }\r\n if (futureCurrentUser) {\r\n return this.reloadAndSetCurrentUserOrClear(futureCurrentUser);\r\n }\r\n else {\r\n return this.directlySetCurrentUser(null);\r\n }\r\n }\r\n _assert(this._popupRedirectResolver, this, \"argument-error\" /* AuthErrorCode.ARGUMENT_ERROR */);\r\n await this.getOrInitRedirectPersistenceManager();\r\n // If the redirect user's event ID matches the current user's event ID,\r\n // DO NOT reload the current user, otherwise they'll be cleared from storage.\r\n // This is important for the reauthenticateWithRedirect() flow.\r\n if (this.redirectUser &&\r\n this.redirectUser._redirectEventId === futureCurrentUser._redirectEventId) {\r\n return this.directlySetCurrentUser(futureCurrentUser);\r\n }\r\n return this.reloadAndSetCurrentUserOrClear(futureCurrentUser);\r\n }\r\n async tryRedirectSignIn(redirectResolver) {\r\n // The redirect user needs to be checked (and signed in if available)\r\n // during auth initialization. All of the normal sign in and link/reauth\r\n // flows call back into auth and push things onto the promise queue. We\r\n // need to await the result of the redirect sign in *inside the promise\r\n // queue*. This presents a problem: we run into deadlock. See:\r\n // ┌> [Initialization] ─────┐\r\n // ┌> [] │\r\n // └─ [getRedirectResult] <─┘\r\n // where [] are tasks on the queue and arrows denote awaits\r\n // Initialization will never complete because it's waiting on something\r\n // that's waiting for initialization to complete!\r\n //\r\n // Instead, this method calls getRedirectResult() (stored in\r\n // _completeRedirectFn) with an optional parameter that instructs all of\r\n // the underlying auth operations to skip anything that mutates auth state.\r\n let result = null;\r\n try {\r\n // We know this._popupRedirectResolver is set since redirectResolver\r\n // is passed in. The _completeRedirectFn expects the unwrapped extern.\r\n result = await this._popupRedirectResolver._completeRedirectFn(this, redirectResolver, true);\r\n }\r\n catch (e) {\r\n // Swallow any errors here; the code can retrieve them in\r\n // getRedirectResult().\r\n await this._setRedirectUser(null);\r\n }\r\n return result;\r\n }\r\n async reloadAndSetCurrentUserOrClear(user) {\r\n try {\r\n await _reloadWithoutSaving(user);\r\n }\r\n catch (e) {\r\n if ((e === null || e === void 0 ? void 0 : e.code) !==\r\n `auth/${\"network-request-failed\" /* AuthErrorCode.NETWORK_REQUEST_FAILED */}`) {\r\n // Something's wrong with the user's token. Log them out and remove\r\n // them from storage\r\n return this.directlySetCurrentUser(null);\r\n }\r\n }\r\n return this.directlySetCurrentUser(user);\r\n }\r\n useDeviceLanguage() {\r\n this.languageCode = _getUserLanguage();\r\n }\r\n async _delete() {\r\n this._deleted = true;\r\n }\r\n async updateCurrentUser(userExtern) {\r\n // The public updateCurrentUser method needs to make a copy of the user,\r\n // and also check that the project matches\r\n const user = userExtern\r\n ? getModularInstance(userExtern)\r\n : null;\r\n if (user) {\r\n _assert(user.auth.config.apiKey === this.config.apiKey, this, \"invalid-user-token\" /* AuthErrorCode.INVALID_AUTH */);\r\n }\r\n return this._updateCurrentUser(user && user._clone(this));\r\n }\r\n async _updateCurrentUser(user, skipBeforeStateCallbacks = false) {\r\n if (this._deleted) {\r\n return;\r\n }\r\n if (user) {\r\n _assert(this.tenantId === user.tenantId, this, \"tenant-id-mismatch\" /* AuthErrorCode.TENANT_ID_MISMATCH */);\r\n }\r\n if (!skipBeforeStateCallbacks) {\r\n await this.beforeStateQueue.runMiddleware(user);\r\n }\r\n return this.queue(async () => {\r\n await this.directlySetCurrentUser(user);\r\n this.notifyAuthListeners();\r\n });\r\n }\r\n async signOut() {\r\n // Run first, to block _setRedirectUser() if any callbacks fail.\r\n await this.beforeStateQueue.runMiddleware(null);\r\n // Clear the redirect user when signOut is called\r\n if (this.redirectPersistenceManager || this._popupRedirectResolver) {\r\n await this._setRedirectUser(null);\r\n }\r\n // Prevent callbacks from being called again in _updateCurrentUser, as\r\n // they were already called in the first line.\r\n return this._updateCurrentUser(null, /* skipBeforeStateCallbacks */ true);\r\n }\r\n setPersistence(persistence) {\r\n return this.queue(async () => {\r\n await this.assertedPersistence.setPersistence(_getInstance(persistence));\r\n });\r\n }\r\n _getRecaptchaConfig() {\r\n if (this.tenantId == null) {\r\n return this._agentRecaptchaConfig;\r\n }\r\n else {\r\n return this._tenantRecaptchaConfigs[this.tenantId];\r\n }\r\n }\r\n async validatePassword(password) {\r\n if (!this._getPasswordPolicyInternal()) {\r\n await this._updatePasswordPolicy();\r\n }\r\n // Password policy will be defined after fetching.\r\n const passwordPolicy = this._getPasswordPolicyInternal();\r\n // Check that the policy schema version is supported by the SDK.\r\n // TODO: Update this logic to use a max supported policy schema version once we have multiple schema versions.\r\n if (passwordPolicy.schemaVersion !==\r\n this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION) {\r\n return Promise.reject(this._errorFactory.create(\"unsupported-password-policy-schema-version\" /* AuthErrorCode.UNSUPPORTED_PASSWORD_POLICY_SCHEMA_VERSION */, {}));\r\n }\r\n return passwordPolicy.validatePassword(password);\r\n }\r\n _getPasswordPolicyInternal() {\r\n if (this.tenantId === null) {\r\n return this._projectPasswordPolicy;\r\n }\r\n else {\r\n return this._tenantPasswordPolicies[this.tenantId];\r\n }\r\n }\r\n async _updatePasswordPolicy() {\r\n const response = await _getPasswordPolicy(this);\r\n const passwordPolicy = new PasswordPolicyImpl(response);\r\n if (this.tenantId === null) {\r\n this._projectPasswordPolicy = passwordPolicy;\r\n }\r\n else {\r\n this._tenantPasswordPolicies[this.tenantId] = passwordPolicy;\r\n }\r\n }\r\n _getPersistence() {\r\n return this.assertedPersistence.persistence.type;\r\n }\r\n _updateErrorMap(errorMap) {\r\n this._errorFactory = new ErrorFactory('auth', 'Firebase', errorMap());\r\n }\r\n onAuthStateChanged(nextOrObserver, error, completed) {\r\n return this.registerStateListener(this.authStateSubscription, nextOrObserver, error, completed);\r\n }\r\n beforeAuthStateChanged(callback, onAbort) {\r\n return this.beforeStateQueue.pushCallback(callback, onAbort);\r\n }\r\n onIdTokenChanged(nextOrObserver, error, completed) {\r\n return this.registerStateListener(this.idTokenSubscription, nextOrObserver, error, completed);\r\n }\r\n authStateReady() {\r\n return new Promise((resolve, reject) => {\r\n if (this.currentUser) {\r\n resolve();\r\n }\r\n else {\r\n const unsubscribe = this.onAuthStateChanged(() => {\r\n unsubscribe();\r\n resolve();\r\n }, reject);\r\n }\r\n });\r\n }\r\n /**\r\n * Revokes the given access token. Currently only supports Apple OAuth access tokens.\r\n */\r\n async revokeAccessToken(token) {\r\n if (this.currentUser) {\r\n const idToken = await this.currentUser.getIdToken();\r\n // Generalize this to accept other providers once supported.\r\n const request = {\r\n providerId: 'apple.com',\r\n tokenType: \"ACCESS_TOKEN\" /* TokenType.ACCESS_TOKEN */,\r\n token,\r\n idToken\r\n };\r\n if (this.tenantId != null) {\r\n request.tenantId = this.tenantId;\r\n }\r\n await revokeToken(this, request);\r\n }\r\n }\r\n toJSON() {\r\n var _a;\r\n return {\r\n apiKey: this.config.apiKey,\r\n authDomain: this.config.authDomain,\r\n appName: this.name,\r\n currentUser: (_a = this._currentUser) === null || _a === void 0 ? void 0 : _a.toJSON()\r\n };\r\n }\r\n async _setRedirectUser(user, popupRedirectResolver) {\r\n const redirectManager = await this.getOrInitRedirectPersistenceManager(popupRedirectResolver);\r\n return user === null\r\n ? redirectManager.removeCurrentUser()\r\n : redirectManager.setCurrentUser(user);\r\n }\r\n async getOrInitRedirectPersistenceManager(popupRedirectResolver) {\r\n if (!this.redirectPersistenceManager) {\r\n const resolver = (popupRedirectResolver && _getInstance(popupRedirectResolver)) ||\r\n this._popupRedirectResolver;\r\n _assert(resolver, this, \"argument-error\" /* AuthErrorCode.ARGUMENT_ERROR */);\r\n this.redirectPersistenceManager = await PersistenceUserManager.create(this, [_getInstance(resolver._redirectPersistence)], \"redirectUser\" /* KeyName.REDIRECT_USER */);\r\n this.redirectUser =\r\n await this.redirectPersistenceManager.getCurrentUser();\r\n }\r\n return this.redirectPersistenceManager;\r\n }\r\n async _redirectUserForId(id) {\r\n var _a, _b;\r\n // Make sure we've cleared any pending persistence actions if we're not in\r\n // the initializer\r\n if (this._isInitialized) {\r\n await this.queue(async () => { });\r\n }\r\n if (((_a = this._currentUser) === null || _a === void 0 ? void 0 : _a._redirectEventId) === id) {\r\n return this._currentUser;\r\n }\r\n if (((_b = this.redirectUser) === null || _b === void 0 ? void 0 : _b._redirectEventId) === id) {\r\n return this.redirectUser;\r\n }\r\n return null;\r\n }\r\n async _persistUserIfCurrent(user) {\r\n if (user === this.currentUser) {\r\n return this.queue(async () => this.directlySetCurrentUser(user));\r\n }\r\n }\r\n /** Notifies listeners only if the user is current */\r\n _notifyListenersIfCurrent(user) {\r\n if (user === this.currentUser) {\r\n this.notifyAuthListeners();\r\n }\r\n }\r\n _key() {\r\n return `${this.config.authDomain}:${this.config.apiKey}:${this.name}`;\r\n }\r\n _startProactiveRefresh() {\r\n this.isProactiveRefreshEnabled = true;\r\n if (this.currentUser) {\r\n this._currentUser._startProactiveRefresh();\r\n }\r\n }\r\n _stopProactiveRefresh() {\r\n this.isProactiveRefreshEnabled = false;\r\n if (this.currentUser) {\r\n this._currentUser._stopProactiveRefresh();\r\n }\r\n }\r\n /** Returns the current user cast as the internal type */\r\n get _currentUser() {\r\n return this.currentUser;\r\n }\r\n notifyAuthListeners() {\r\n var _a, _b;\r\n if (!this._isInitialized) {\r\n return;\r\n }\r\n this.idTokenSubscription.next(this.currentUser);\r\n const currentUid = (_b = (_a = this.currentUser) === null || _a === void 0 ? void 0 : _a.uid) !== null && _b !== void 0 ? _b : null;\r\n if (this.lastNotifiedUid !== currentUid) {\r\n this.lastNotifiedUid = currentUid;\r\n this.authStateSubscription.next(this.currentUser);\r\n }\r\n }\r\n registerStateListener(subscription, nextOrObserver, error, completed) {\r\n if (this._deleted) {\r\n return () => { };\r\n }\r\n const cb = typeof nextOrObserver === 'function'\r\n ? nextOrObserver\r\n : nextOrObserver.next.bind(nextOrObserver);\r\n let isUnsubscribed = false;\r\n const promise = this._isInitialized\r\n ? Promise.resolve()\r\n : this._initializationPromise;\r\n _assert(promise, this, \"internal-error\" /* AuthErrorCode.INTERNAL_ERROR */);\r\n // The callback needs to be called asynchronously per the spec.\r\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\r\n promise.then(() => {\r\n if (isUnsubscribed) {\r\n return;\r\n }\r\n cb(this.currentUser);\r\n });\r\n if (typeof nextOrObserver === 'function') {\r\n const unsubscribe = subscription.addObserver(nextOrObserver, error, completed);\r\n return () => {\r\n isUnsubscribed = true;\r\n unsubscribe();\r\n };\r\n }\r\n else {\r\n const unsubscribe = subscription.addObserver(nextOrObserver);\r\n return () => {\r\n isUnsubscribed = true;\r\n unsubscribe();\r\n };\r\n }\r\n }\r\n /**\r\n * Unprotected (from race conditions) method to set the current user. This\r\n * should only be called from within a queued callback. This is necessary\r\n * because the queue shouldn't rely on another queued callback.\r\n */\r\n async directlySetCurrentUser(user) {\r\n if (this.currentUser && this.currentUser !== user) {\r\n this._currentUser._stopProactiveRefresh();\r\n }\r\n if (user && this.isProactiveRefreshEnabled) {\r\n user._startProactiveRefresh();\r\n }\r\n this.currentUser = user;\r\n if (user) {\r\n await this.assertedPersistence.setCurrentUser(user);\r\n }\r\n else {\r\n await this.assertedPersistence.removeCurrentUser();\r\n }\r\n }\r\n queue(action) {\r\n // In case something errors, the callback still should be called in order\r\n // to keep the promise chain alive\r\n this.operations = this.operations.then(action, action);\r\n return this.operations;\r\n }\r\n get assertedPersistence() {\r\n _assert(this.persistenceManager, this, \"internal-error\" /* AuthErrorCode.INTERNAL_ERROR */);\r\n return this.persistenceManager;\r\n }\r\n _logFramework(framework) {\r\n if (!framework || this.frameworks.includes(framework)) {\r\n return;\r\n }\r\n this.frameworks.push(framework);\r\n // Sort alphabetically so that \"FirebaseCore-web,FirebaseUI-web\" and\r\n // \"FirebaseUI-web,FirebaseCore-web\" aren't viewed as different.\r\n this.frameworks.sort();\r\n this.clientVersion = _getClientVersion(this.config.clientPlatform, this._getFrameworks());\r\n }\r\n _getFrameworks() {\r\n return this.frameworks;\r\n }\r\n async _getAdditionalHeaders() {\r\n var _a;\r\n // Additional headers on every request\r\n const headers = {\r\n [\"X-Client-Version\" /* HttpHeader.X_CLIENT_VERSION */]: this.clientVersion\r\n };\r\n if (this.app.options.appId) {\r\n headers[\"X-Firebase-gmpid\" /* HttpHeader.X_FIREBASE_GMPID */] = this.app.options.appId;\r\n }\r\n // If the heartbeat service exists, add the heartbeat string\r\n const heartbeatsHeader = await ((_a = this.heartbeatServiceProvider\r\n .getImmediate({\r\n optional: true\r\n })) === null || _a === void 0 ? void 0 : _a.getHeartbeatsHeader());\r\n if (heartbeatsHeader) {\r\n headers[\"X-Firebase-Client\" /* HttpHeader.X_FIREBASE_CLIENT */] = heartbeatsHeader;\r\n }\r\n // If the App Check service exists, add the App Check token in the headers\r\n const appCheckToken = await this._getAppCheckToken();\r\n if (appCheckToken) {\r\n headers[\"X-Firebase-AppCheck\" /* HttpHeader.X_FIREBASE_APP_CHECK */] = appCheckToken;\r\n }\r\n return headers;\r\n }\r\n async _getAppCheckToken() {\r\n var _a;\r\n const appCheckTokenResult = await ((_a = this.appCheckServiceProvider\r\n .getImmediate({ optional: true })) === null || _a === void 0 ? void 0 : _a.getToken());\r\n if (appCheckTokenResult === null || appCheckTokenResult === void 0 ? void 0 : appCheckTokenResult.error) {\r\n // Context: appCheck.getToken() will never throw even if an error happened.\r\n // In the error case, a dummy token will be returned along with an error field describing\r\n // the error. In general, we shouldn't care about the error condition and just use\r\n // the token (actual or dummy) to send requests.\r\n _logWarn(`Error while retrieving App Check token: ${appCheckTokenResult.error}`);\r\n }\r\n return appCheckTokenResult === null || appCheckTokenResult === void 0 ? void 0 : appCheckTokenResult.token;\r\n }\r\n}\r\n/**\r\n * Method to be used to cast down to our private implmentation of Auth.\r\n * It will also handle unwrapping from the compat type if necessary\r\n *\r\n * @param auth Auth object passed in from developer\r\n */\r\nfunction _castAuth(auth) {\r\n return getModularInstance(auth);\r\n}\r\n/** Helper class to wrap subscriber logic */\r\nclass Subscription {\r\n constructor(auth) {\r\n this.auth = auth;\r\n this.observer = null;\r\n this.addObserver = createSubscribe(observer => (this.observer = observer));\r\n }\r\n get next() {\r\n _assert(this.observer, this.auth, \"internal-error\" /* AuthErrorCode.INTERNAL_ERROR */);\r\n return this.observer.next.bind(this.observer);\r\n }\r\n}\n\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\nfunction getScriptParentElement() {\r\n var _a, _b;\r\n return (_b = (_a = document.getElementsByTagName('head')) === null || _a === void 0 ? void 0 : _a[0]) !== null && _b !== void 0 ? _b : document;\r\n}\r\nfunction _loadJS(url) {\r\n // TODO: consider adding timeout support & cancellation\r\n return new Promise((resolve, reject) => {\r\n const el = document.createElement('script');\r\n el.setAttribute('src', url);\r\n el.onload = resolve;\r\n el.onerror = e => {\r\n const error = _createError(\"internal-error\" /* AuthErrorCode.INTERNAL_ERROR */);\r\n error.customData = e;\r\n reject(error);\r\n };\r\n el.type = 'text/javascript';\r\n el.charset = 'UTF-8';\r\n getScriptParentElement().appendChild(el);\r\n });\r\n}\r\nfunction _generateCallbackName(prefix) {\r\n return `__${prefix}${Math.floor(Math.random() * 1000000)}`;\r\n}\n\n/* eslint-disable @typescript-eslint/no-require-imports */\r\nconst RECAPTCHA_ENTERPRISE_URL = 'https://www.google.com/recaptcha/enterprise.js?render=';\r\nconst RECAPTCHA_ENTERPRISE_VERIFIER_TYPE = 'recaptcha-enterprise';\r\nconst FAKE_TOKEN = 'NO_RECAPTCHA';\r\nclass RecaptchaEnterpriseVerifier {\r\n /**\r\n *\r\n * @param authExtern - The corresponding Firebase {@link Auth} instance.\r\n *\r\n */\r\n constructor(authExtern) {\r\n /**\r\n * Identifies the type of application verifier (e.g. \"recaptcha-enterprise\").\r\n */\r\n this.type = RECAPTCHA_ENTERPRISE_VERIFIER_TYPE;\r\n this.auth = _castAuth(authExtern);\r\n }\r\n /**\r\n * Executes the verification process.\r\n *\r\n * @returns A Promise for a token that can be used to assert the validity of a request.\r\n */\r\n async verify(action = 'verify', forceRefresh = false) {\r\n async function retrieveSiteKey(auth) {\r\n if (!forceRefresh) {\r\n if (auth.tenantId == null && auth._agentRecaptchaConfig != null) {\r\n return auth._agentRecaptchaConfig.siteKey;\r\n }\r\n if (auth.tenantId != null &&\r\n auth._tenantRecaptchaConfigs[auth.tenantId] !== undefined) {\r\n return auth._tenantRecaptchaConfigs[auth.tenantId].siteKey;\r\n }\r\n }\r\n return new Promise(async (resolve, reject) => {\r\n getRecaptchaConfig(auth, {\r\n clientType: \"CLIENT_TYPE_WEB\" /* RecaptchaClientType.WEB */,\r\n version: \"RECAPTCHA_ENTERPRISE\" /* RecaptchaVersion.ENTERPRISE */\r\n })\r\n .then(response => {\r\n if (response.recaptchaKey === undefined) {\r\n reject(new Error('recaptcha Enterprise site key undefined'));\r\n }\r\n else {\r\n const config = new RecaptchaConfig(response);\r\n if (auth.tenantId == null) {\r\n auth._agentRecaptchaConfig = config;\r\n }\r\n else {\r\n auth._tenantRecaptchaConfigs[auth.tenantId] = config;\r\n }\r\n return resolve(config.siteKey);\r\n }\r\n })\r\n .catch(error => {\r\n reject(error);\r\n });\r\n });\r\n }\r\n function retrieveRecaptchaToken(siteKey, resolve, reject) {\r\n const grecaptcha = window.grecaptcha;\r\n if (isEnterprise(grecaptcha)) {\r\n grecaptcha.enterprise.ready(() => {\r\n grecaptcha.enterprise\r\n .execute(siteKey, { action })\r\n .then(token => {\r\n resolve(token);\r\n })\r\n .catch(() => {\r\n resolve(FAKE_TOKEN);\r\n });\r\n });\r\n }\r\n else {\r\n reject(Error('No reCAPTCHA enterprise script loaded.'));\r\n }\r\n }\r\n return new Promise((resolve, reject) => {\r\n retrieveSiteKey(this.auth)\r\n .then(siteKey => {\r\n if (!forceRefresh && isEnterprise(window.grecaptcha)) {\r\n retrieveRecaptchaToken(siteKey, resolve, reject);\r\n }\r\n else {\r\n if (typeof window === 'undefined') {\r\n reject(new Error('RecaptchaVerifier is only supported in browser'));\r\n return;\r\n }\r\n _loadJS(RECAPTCHA_ENTERPRISE_URL + siteKey)\r\n .then(() => {\r\n retrieveRecaptchaToken(siteKey, resolve, reject);\r\n })\r\n .catch(error => {\r\n reject(error);\r\n });\r\n }\r\n })\r\n .catch(error => {\r\n reject(error);\r\n });\r\n });\r\n }\r\n}\r\nasync function injectRecaptchaFields(auth, request, action, captchaResp = false) {\r\n const verifier = new RecaptchaEnterpriseVerifier(auth);\r\n let captchaResponse;\r\n try {\r\n captchaResponse = await verifier.verify(action);\r\n }\r\n catch (error) {\r\n captchaResponse = await verifier.verify(action, true);\r\n }\r\n const newRequest = Object.assign({}, request);\r\n if (!captchaResp) {\r\n Object.assign(newRequest, { captchaResponse });\r\n }\r\n else {\r\n Object.assign(newRequest, { 'captchaResp': captchaResponse });\r\n }\r\n Object.assign(newRequest, { 'clientType': \"CLIENT_TYPE_WEB\" /* RecaptchaClientType.WEB */ });\r\n Object.assign(newRequest, {\r\n 'recaptchaVersion': \"RECAPTCHA_ENTERPRISE\" /* RecaptchaVersion.ENTERPRISE */\r\n });\r\n return newRequest;\r\n}\r\nasync function handleRecaptchaFlow(authInstance, request, actionName, actionMethod) {\r\n var _a;\r\n if ((_a = authInstance\r\n ._getRecaptchaConfig()) === null || _a === void 0 ? void 0 : _a.isProviderEnabled(\"EMAIL_PASSWORD_PROVIDER\" /* RecaptchaProvider.EMAIL_PASSWORD_PROVIDER */)) {\r\n const requestWithRecaptcha = await injectRecaptchaFields(authInstance, request, actionName, actionName === \"getOobCode\" /* RecaptchaActionName.GET_OOB_CODE */);\r\n return actionMethod(authInstance, requestWithRecaptcha);\r\n }\r\n else {\r\n return actionMethod(authInstance, request).catch(async (error) => {\r\n if (error.code === `auth/${\"missing-recaptcha-token\" /* AuthErrorCode.MISSING_RECAPTCHA_TOKEN */}`) {\r\n console.log(`${actionName} is protected by reCAPTCHA Enterprise for this project. Automatically triggering the reCAPTCHA flow and restarting the flow.`);\r\n const requestWithRecaptcha = await injectRecaptchaFields(authInstance, request, actionName, actionName === \"getOobCode\" /* RecaptchaActionName.GET_OOB_CODE */);\r\n return actionMethod(authInstance, requestWithRecaptcha);\r\n }\r\n else {\r\n return Promise.reject(error);\r\n }\r\n });\r\n }\r\n}\r\nasync function _initializeRecaptchaConfig(auth) {\r\n const authInternal = _castAuth(auth);\r\n const response = await getRecaptchaConfig(authInternal, {\r\n clientType: \"CLIENT_TYPE_WEB\" /* RecaptchaClientType.WEB */,\r\n version: \"RECAPTCHA_ENTERPRISE\" /* RecaptchaVersion.ENTERPRISE */\r\n });\r\n const config = new RecaptchaConfig(response);\r\n if (authInternal.tenantId == null) {\r\n authInternal._agentRecaptchaConfig = config;\r\n }\r\n else {\r\n authInternal._tenantRecaptchaConfigs[authInternal.tenantId] = config;\r\n }\r\n if (config.isProviderEnabled(\"EMAIL_PASSWORD_PROVIDER\" /* RecaptchaProvider.EMAIL_PASSWORD_PROVIDER */)) {\r\n const verifier = new RecaptchaEnterpriseVerifier(authInternal);\r\n void verifier.verify();\r\n }\r\n}\n\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\n/**\r\n * Initializes an {@link Auth} instance with fine-grained control over\r\n * {@link Dependencies}.\r\n *\r\n * @remarks\r\n *\r\n * This function allows more control over the {@link Auth} instance than\r\n * {@link getAuth}. `getAuth` uses platform-specific defaults to supply\r\n * the {@link Dependencies}. In general, `getAuth` is the easiest way to\r\n * initialize Auth and works for most use cases. Use `initializeAuth` if you\r\n * need control over which persistence layer is used, or to minimize bundle\r\n * size if you're not using either `signInWithPopup` or `signInWithRedirect`.\r\n *\r\n * For example, if your app only uses anonymous accounts and you only want\r\n * accounts saved for the current session, initialize `Auth` with:\r\n *\r\n * ```js\r\n * const auth = initializeAuth(app, {\r\n * persistence: browserSessionPersistence,\r\n * popupRedirectResolver: undefined,\r\n * });\r\n * ```\r\n *\r\n * @public\r\n */\r\nfunction initializeAuth(app, deps) {\r\n const provider = _getProvider(app, 'auth');\r\n if (provider.isInitialized()) {\r\n const auth = provider.getImmediate();\r\n const initialOptions = provider.getOptions();\r\n if (deepEqual(initialOptions, deps !== null && deps !== void 0 ? deps : {})) {\r\n return auth;\r\n }\r\n else {\r\n _fail(auth, \"already-initialized\" /* AuthErrorCode.ALREADY_INITIALIZED */);\r\n }\r\n }\r\n const auth = provider.initialize({ options: deps });\r\n return auth;\r\n}\r\nfunction _initializeAuthInstance(auth, deps) {\r\n const persistence = (deps === null || deps === void 0 ? void 0 : deps.persistence) || [];\r\n const hierarchy = (Array.isArray(persistence) ? persistence : [persistence]).map(_getInstance);\r\n if (deps === null || deps === void 0 ? void 0 : deps.errorMap) {\r\n auth._updateErrorMap(deps.errorMap);\r\n }\r\n // This promise is intended to float; auth initialization happens in the\r\n // background, meanwhile the auth object may be used by the app.\r\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\r\n auth._initializeWithPersistence(hierarchy, deps === null || deps === void 0 ? void 0 : deps.popupRedirectResolver);\r\n}\n\n/**\r\n * Changes the {@link Auth} instance to communicate with the Firebase Auth Emulator, instead of production\r\n * Firebase Auth services.\r\n *\r\n * @remarks\r\n * This must be called synchronously immediately following the first call to\r\n * {@link initializeAuth}. Do not use with production credentials as emulator\r\n * traffic is not encrypted.\r\n *\r\n *\r\n * @example\r\n * ```javascript\r\n * connectAuthEmulator(auth, 'http://127.0.0.1:9099', { disableWarnings: true });\r\n * ```\r\n *\r\n * @param auth - The {@link Auth} instance.\r\n * @param url - The URL at which the emulator is running (eg, 'http://localhost:9099').\r\n * @param options - Optional. `options.disableWarnings` defaults to `false`. Set it to\r\n * `true` to disable the warning banner attached to the DOM.\r\n *\r\n * @public\r\n */\r\nfunction connectAuthEmulator(auth, url, options) {\r\n const authInternal = _castAuth(auth);\r\n _assert(authInternal._canInitEmulator, authInternal, \"emulator-config-failed\" /* AuthErrorCode.EMULATOR_CONFIG_FAILED */);\r\n _assert(/^https?:\\/\\//.test(url), authInternal, \"invalid-emulator-scheme\" /* AuthErrorCode.INVALID_EMULATOR_SCHEME */);\r\n const disableWarnings = !!(options === null || options === void 0 ? void 0 : options.disableWarnings);\r\n const protocol = extractProtocol(url);\r\n const { host, port } = extractHostAndPort(url);\r\n const portStr = port === null ? '' : `:${port}`;\r\n // Always replace path with \"/\" (even if input url had no path at all, or had a different one).\r\n authInternal.config.emulator = { url: `${protocol}//${host}${portStr}/` };\r\n authInternal.settings.appVerificationDisabledForTesting = true;\r\n authInternal.emulatorConfig = Object.freeze({\r\n host,\r\n port,\r\n protocol: protocol.replace(':', ''),\r\n options: Object.freeze({ disableWarnings })\r\n });\r\n if (!disableWarnings) {\r\n emitEmulatorWarning();\r\n }\r\n}\r\nfunction extractProtocol(url) {\r\n const protocolEnd = url.indexOf(':');\r\n return protocolEnd < 0 ? '' : url.substr(0, protocolEnd + 1);\r\n}\r\nfunction extractHostAndPort(url) {\r\n const protocol = extractProtocol(url);\r\n const authority = /(\\/\\/)?([^?#/]+)/.exec(url.substr(protocol.length)); // Between // and /, ? or #.\r\n if (!authority) {\r\n return { host: '', port: null };\r\n }\r\n const hostAndPort = authority[2].split('@').pop() || ''; // Strip out \"username:password@\".\r\n const bracketedIPv6 = /^(\\[[^\\]]+\\])(:|$)/.exec(hostAndPort);\r\n if (bracketedIPv6) {\r\n const host = bracketedIPv6[1];\r\n return { host, port: parsePort(hostAndPort.substr(host.length + 1)) };\r\n }\r\n else {\r\n const [host, port] = hostAndPort.split(':');\r\n return { host, port: parsePort(port) };\r\n }\r\n}\r\nfunction parsePort(portStr) {\r\n if (!portStr) {\r\n return null;\r\n }\r\n const port = Number(portStr);\r\n if (isNaN(port)) {\r\n return null;\r\n }\r\n return port;\r\n}\r\nfunction emitEmulatorWarning() {\r\n function attachBanner() {\r\n const el = document.createElement('p');\r\n const sty = el.style;\r\n el.innerText =\r\n 'Running in emulator mode. Do not use with production credentials.';\r\n sty.position = 'fixed';\r\n sty.width = '100%';\r\n sty.backgroundColor = '#ffffff';\r\n sty.border = '.1em solid #000000';\r\n sty.color = '#b50000';\r\n sty.bottom = '0px';\r\n sty.left = '0px';\r\n sty.margin = '0px';\r\n sty.zIndex = '10000';\r\n sty.textAlign = 'center';\r\n el.classList.add('firebase-emulator-warning');\r\n document.body.appendChild(el);\r\n }\r\n if (typeof console !== 'undefined' && typeof console.info === 'function') {\r\n console.info('WARNING: You are using the Auth Emulator,' +\r\n ' which is intended for local testing only. Do not use with' +\r\n ' production credentials.');\r\n }\r\n if (typeof window !== 'undefined' && typeof document !== 'undefined') {\r\n if (document.readyState === 'loading') {\r\n window.addEventListener('DOMContentLoaded', attachBanner);\r\n }\r\n else {\r\n attachBanner();\r\n }\r\n }\r\n}\n\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\n/**\r\n * Interface that represents the credentials returned by an {@link AuthProvider}.\r\n *\r\n * @remarks\r\n * Implementations specify the details about each auth provider's credential requirements.\r\n *\r\n * @public\r\n */\r\nclass AuthCredential {\r\n /** @internal */\r\n constructor(\r\n /**\r\n * The authentication provider ID for the credential.\r\n *\r\n * @remarks\r\n * For example, 'facebook.com', or 'google.com'.\r\n */\r\n providerId, \r\n /**\r\n * The authentication sign in method for the credential.\r\n *\r\n * @remarks\r\n * For example, {@link SignInMethod}.EMAIL_PASSWORD, or\r\n * {@link SignInMethod}.EMAIL_LINK. This corresponds to the sign-in method\r\n * identifier as returned in {@link fetchSignInMethodsForEmail}.\r\n */\r\n signInMethod) {\r\n this.providerId = providerId;\r\n this.signInMethod = signInMethod;\r\n }\r\n /**\r\n * Returns a JSON-serializable representation of this object.\r\n *\r\n * @returns a JSON-serializable representation of this object.\r\n */\r\n toJSON() {\r\n return debugFail('not implemented');\r\n }\r\n /** @internal */\r\n _getIdTokenResponse(_auth) {\r\n return debugFail('not implemented');\r\n }\r\n /** @internal */\r\n _linkToIdToken(_auth, _idToken) {\r\n return debugFail('not implemented');\r\n }\r\n /** @internal */\r\n _getReauthenticationResolver(_auth) {\r\n return debugFail('not implemented');\r\n }\r\n}\n\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\nasync function resetPassword(auth, request) {\r\n return _performApiRequest(auth, \"POST\" /* HttpMethod.POST */, \"/v1/accounts:resetPassword\" /* Endpoint.RESET_PASSWORD */, _addTidIfNecessary(auth, request));\r\n}\r\nasync function updateEmailPassword(auth, request) {\r\n return _performApiRequest(auth, \"POST\" /* HttpMethod.POST */, \"/v1/accounts:update\" /* Endpoint.SET_ACCOUNT_INFO */, request);\r\n}\r\n// Used for linking an email/password account to an existing idToken. Uses the same request/response\r\n// format as updateEmailPassword.\r\nasync function linkEmailPassword(auth, request) {\r\n return _performApiRequest(auth, \"POST\" /* HttpMethod.POST */, \"/v1/accounts:signUp\" /* Endpoint.SIGN_UP */, request);\r\n}\r\nasync function applyActionCode$1(auth, request) {\r\n return _performApiRequest(auth, \"POST\" /* HttpMethod.POST */, \"/v1/accounts:update\" /* Endpoint.SET_ACCOUNT_INFO */, _addTidIfNecessary(auth, request));\r\n}\n\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\nasync function signInWithPassword(auth, request) {\r\n return _performSignInRequest(auth, \"POST\" /* HttpMethod.POST */, \"/v1/accounts:signInWithPassword\" /* Endpoint.SIGN_IN_WITH_PASSWORD */, _addTidIfNecessary(auth, request));\r\n}\r\nasync function sendOobCode(auth, request) {\r\n return _performApiRequest(auth, \"POST\" /* HttpMethod.POST */, \"/v1/accounts:sendOobCode\" /* Endpoint.SEND_OOB_CODE */, _addTidIfNecessary(auth, request));\r\n}\r\nasync function sendEmailVerification$1(auth, request) {\r\n return sendOobCode(auth, request);\r\n}\r\nasync function sendPasswordResetEmail$1(auth, request) {\r\n return sendOobCode(auth, request);\r\n}\r\nasync function sendSignInLinkToEmail$1(auth, request) {\r\n return sendOobCode(auth, request);\r\n}\r\nasync function verifyAndChangeEmail(auth, request) {\r\n return sendOobCode(auth, request);\r\n}\n\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\nasync function signInWithEmailLink$1(auth, request) {\r\n return _performSignInRequest(auth, \"POST\" /* HttpMethod.POST */, \"/v1/accounts:signInWithEmailLink\" /* Endpoint.SIGN_IN_WITH_EMAIL_LINK */, _addTidIfNecessary(auth, request));\r\n}\r\nasync function signInWithEmailLinkForLinking(auth, request) {\r\n return _performSignInRequest(auth, \"POST\" /* HttpMethod.POST */, \"/v1/accounts:signInWithEmailLink\" /* Endpoint.SIGN_IN_WITH_EMAIL_LINK */, _addTidIfNecessary(auth, request));\r\n}\n\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\n/**\r\n * Interface that represents the credentials returned by {@link EmailAuthProvider} for\r\n * {@link ProviderId}.PASSWORD\r\n *\r\n * @remarks\r\n * Covers both {@link SignInMethod}.EMAIL_PASSWORD and\r\n * {@link SignInMethod}.EMAIL_LINK.\r\n *\r\n * @public\r\n */\r\nclass EmailAuthCredential extends AuthCredential {\r\n /** @internal */\r\n constructor(\r\n /** @internal */\r\n _email, \r\n /** @internal */\r\n _password, signInMethod, \r\n /** @internal */\r\n _tenantId = null) {\r\n super(\"password\" /* ProviderId.PASSWORD */, signInMethod);\r\n this._email = _email;\r\n this._password = _password;\r\n this._tenantId = _tenantId;\r\n }\r\n /** @internal */\r\n static _fromEmailAndPassword(email, password) {\r\n return new EmailAuthCredential(email, password, \"password\" /* SignInMethod.EMAIL_PASSWORD */);\r\n }\r\n /** @internal */\r\n static _fromEmailAndCode(email, oobCode, tenantId = null) {\r\n return new EmailAuthCredential(email, oobCode, \"emailLink\" /* SignInMethod.EMAIL_LINK */, tenantId);\r\n }\r\n /** {@inheritdoc AuthCredential.toJSON} */\r\n toJSON() {\r\n return {\r\n email: this._email,\r\n password: this._password,\r\n signInMethod: this.signInMethod,\r\n tenantId: this._tenantId\r\n };\r\n }\r\n /**\r\n * Static method to deserialize a JSON representation of an object into an {@link AuthCredential}.\r\n *\r\n * @param json - Either `object` or the stringified representation of the object. When string is\r\n * provided, `JSON.parse` would be called first.\r\n *\r\n * @returns If the JSON input does not represent an {@link AuthCredential}, null is returned.\r\n */\r\n static fromJSON(json) {\r\n const obj = typeof json === 'string' ? JSON.parse(json) : json;\r\n if ((obj === null || obj === void 0 ? void 0 : obj.email) && (obj === null || obj === void 0 ? void 0 : obj.password)) {\r\n if (obj.signInMethod === \"password\" /* SignInMethod.EMAIL_PASSWORD */) {\r\n return this._fromEmailAndPassword(obj.email, obj.password);\r\n }\r\n else if (obj.signInMethod === \"emailLink\" /* SignInMethod.EMAIL_LINK */) {\r\n return this._fromEmailAndCode(obj.email, obj.password, obj.tenantId);\r\n }\r\n }\r\n return null;\r\n }\r\n /** @internal */\r\n async _getIdTokenResponse(auth) {\r\n switch (this.signInMethod) {\r\n case \"password\" /* SignInMethod.EMAIL_PASSWORD */:\r\n const request = {\r\n returnSecureToken: true,\r\n email: this._email,\r\n password: this._password,\r\n clientType: \"CLIENT_TYPE_WEB\" /* RecaptchaClientType.WEB */\r\n };\r\n return handleRecaptchaFlow(auth, request, \"signInWithPassword\" /* RecaptchaActionName.SIGN_IN_WITH_PASSWORD */, signInWithPassword);\r\n case \"emailLink\" /* SignInMethod.EMAIL_LINK */:\r\n return signInWithEmailLink$1(auth, {\r\n email: this._email,\r\n oobCode: this._password\r\n });\r\n default:\r\n _fail(auth, \"internal-error\" /* AuthErrorCode.INTERNAL_ERROR */);\r\n }\r\n }\r\n /** @internal */\r\n async _linkToIdToken(auth, idToken) {\r\n switch (this.signInMethod) {\r\n case \"password\" /* SignInMethod.EMAIL_PASSWORD */:\r\n const request = {\r\n idToken,\r\n returnSecureToken: true,\r\n email: this._email,\r\n password: this._password,\r\n clientType: \"CLIENT_TYPE_WEB\" /* RecaptchaClientType.WEB */\r\n };\r\n return handleRecaptchaFlow(auth, request, \"signUpPassword\" /* RecaptchaActionName.SIGN_UP_PASSWORD */, linkEmailPassword);\r\n case \"emailLink\" /* SignInMethod.EMAIL_LINK */:\r\n return signInWithEmailLinkForLinking(auth, {\r\n idToken,\r\n email: this._email,\r\n oobCode: this._password\r\n });\r\n default:\r\n _fail(auth, \"internal-error\" /* AuthErrorCode.INTERNAL_ERROR */);\r\n }\r\n }\r\n /** @internal */\r\n _getReauthenticationResolver(auth) {\r\n return this._getIdTokenResponse(auth);\r\n }\r\n}\n\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\nasync function signInWithIdp(auth, request) {\r\n return _performSignInRequest(auth, \"POST\" /* HttpMethod.POST */, \"/v1/accounts:signInWithIdp\" /* Endpoint.SIGN_IN_WITH_IDP */, _addTidIfNecessary(auth, request));\r\n}\n\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\nconst IDP_REQUEST_URI$1 = 'http://localhost';\r\n/**\r\n * Represents the OAuth credentials returned by an {@link OAuthProvider}.\r\n *\r\n * @remarks\r\n * Implementations specify the details about each auth provider's credential requirements.\r\n *\r\n * @public\r\n */\r\nclass OAuthCredential extends AuthCredential {\r\n constructor() {\r\n super(...arguments);\r\n this.pendingToken = null;\r\n }\r\n /** @internal */\r\n static _fromParams(params) {\r\n const cred = new OAuthCredential(params.providerId, params.signInMethod);\r\n if (params.idToken || params.accessToken) {\r\n // OAuth 2 and either ID token or access token.\r\n if (params.idToken) {\r\n cred.idToken = params.idToken;\r\n }\r\n if (params.accessToken) {\r\n cred.accessToken = params.accessToken;\r\n }\r\n // Add nonce if available and no pendingToken is present.\r\n if (params.nonce && !params.pendingToken) {\r\n cred.nonce = params.nonce;\r\n }\r\n if (params.pendingToken) {\r\n cred.pendingToken = params.pendingToken;\r\n }\r\n }\r\n else if (params.oauthToken && params.oauthTokenSecret) {\r\n // OAuth 1 and OAuth token with token secret\r\n cred.accessToken = params.oauthToken;\r\n cred.secret = params.oauthTokenSecret;\r\n }\r\n else {\r\n _fail(\"argument-error\" /* AuthErrorCode.ARGUMENT_ERROR */);\r\n }\r\n return cred;\r\n }\r\n /** {@inheritdoc AuthCredential.toJSON} */\r\n toJSON() {\r\n return {\r\n idToken: this.idToken,\r\n accessToken: this.accessToken,\r\n secret: this.secret,\r\n nonce: this.nonce,\r\n pendingToken: this.pendingToken,\r\n providerId: this.providerId,\r\n signInMethod: this.signInMethod\r\n };\r\n }\r\n /**\r\n * Static method to deserialize a JSON representation of an object into an\r\n * {@link AuthCredential}.\r\n *\r\n * @param json - Input can be either Object or the stringified representation of the object.\r\n * When string is provided, JSON.parse would be called first.\r\n *\r\n * @returns If the JSON input does not represent an {@link AuthCredential}, null is returned.\r\n */\r\n static fromJSON(json) {\r\n const obj = typeof json === 'string' ? JSON.parse(json) : json;\r\n const { providerId, signInMethod } = obj, rest = __rest(obj, [\"providerId\", \"signInMethod\"]);\r\n if (!providerId || !signInMethod) {\r\n return null;\r\n }\r\n const cred = new OAuthCredential(providerId, signInMethod);\r\n cred.idToken = rest.idToken || undefined;\r\n cred.accessToken = rest.accessToken || undefined;\r\n cred.secret = rest.secret;\r\n cred.nonce = rest.nonce;\r\n cred.pendingToken = rest.pendingToken || null;\r\n return cred;\r\n }\r\n /** @internal */\r\n _getIdTokenResponse(auth) {\r\n const request = this.buildRequest();\r\n return signInWithIdp(auth, request);\r\n }\r\n /** @internal */\r\n _linkToIdToken(auth, idToken) {\r\n const request = this.buildRequest();\r\n request.idToken = idToken;\r\n return signInWithIdp(auth, request);\r\n }\r\n /** @internal */\r\n _getReauthenticationResolver(auth) {\r\n const request = this.buildRequest();\r\n request.autoCreate = false;\r\n return signInWithIdp(auth, request);\r\n }\r\n buildRequest() {\r\n const request = {\r\n requestUri: IDP_REQUEST_URI$1,\r\n returnSecureToken: true\r\n };\r\n if (this.pendingToken) {\r\n request.pendingToken = this.pendingToken;\r\n }\r\n else {\r\n const postBody = {};\r\n if (this.idToken) {\r\n postBody['id_token'] = this.idToken;\r\n }\r\n if (this.accessToken) {\r\n postBody['access_token'] = this.accessToken;\r\n }\r\n if (this.secret) {\r\n postBody['oauth_token_secret'] = this.secret;\r\n }\r\n postBody['providerId'] = this.providerId;\r\n if (this.nonce && !this.pendingToken) {\r\n postBody['nonce'] = this.nonce;\r\n }\r\n request.postBody = querystring(postBody);\r\n }\r\n return request;\r\n }\r\n}\n\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\nasync function sendPhoneVerificationCode(auth, request) {\r\n return _performApiRequest(auth, \"POST\" /* HttpMethod.POST */, \"/v1/accounts:sendVerificationCode\" /* Endpoint.SEND_VERIFICATION_CODE */, _addTidIfNecessary(auth, request));\r\n}\r\nasync function signInWithPhoneNumber$1(auth, request) {\r\n return _performSignInRequest(auth, \"POST\" /* HttpMethod.POST */, \"/v1/accounts:signInWithPhoneNumber\" /* Endpoint.SIGN_IN_WITH_PHONE_NUMBER */, _addTidIfNecessary(auth, request));\r\n}\r\nasync function linkWithPhoneNumber$1(auth, request) {\r\n const response = await _performSignInRequest(auth, \"POST\" /* HttpMethod.POST */, \"/v1/accounts:signInWithPhoneNumber\" /* Endpoint.SIGN_IN_WITH_PHONE_NUMBER */, _addTidIfNecessary(auth, request));\r\n if (response.temporaryProof) {\r\n throw _makeTaggedError(auth, \"account-exists-with-different-credential\" /* AuthErrorCode.NEED_CONFIRMATION */, response);\r\n }\r\n return response;\r\n}\r\nconst VERIFY_PHONE_NUMBER_FOR_EXISTING_ERROR_MAP_ = {\r\n [\"USER_NOT_FOUND\" /* ServerError.USER_NOT_FOUND */]: \"user-not-found\" /* AuthErrorCode.USER_DELETED */\r\n};\r\nasync function verifyPhoneNumberForExisting(auth, request) {\r\n const apiRequest = Object.assign(Object.assign({}, request), { operation: 'REAUTH' });\r\n return _performSignInRequest(auth, \"POST\" /* HttpMethod.POST */, \"/v1/accounts:signInWithPhoneNumber\" /* Endpoint.SIGN_IN_WITH_PHONE_NUMBER */, _addTidIfNecessary(auth, apiRequest), VERIFY_PHONE_NUMBER_FOR_EXISTING_ERROR_MAP_);\r\n}\n\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\n/**\r\n * Represents the credentials returned by {@link PhoneAuthProvider}.\r\n *\r\n * @public\r\n */\r\nclass PhoneAuthCredential extends AuthCredential {\r\n constructor(params) {\r\n super(\"phone\" /* ProviderId.PHONE */, \"phone\" /* SignInMethod.PHONE */);\r\n this.params = params;\r\n }\r\n /** @internal */\r\n static _fromVerification(verificationId, verificationCode) {\r\n return new PhoneAuthCredential({ verificationId, verificationCode });\r\n }\r\n /** @internal */\r\n static _fromTokenResponse(phoneNumber, temporaryProof) {\r\n return new PhoneAuthCredential({ phoneNumber, temporaryProof });\r\n }\r\n /** @internal */\r\n _getIdTokenResponse(auth) {\r\n return signInWithPhoneNumber$1(auth, this._makeVerificationRequest());\r\n }\r\n /** @internal */\r\n _linkToIdToken(auth, idToken) {\r\n return linkWithPhoneNumber$1(auth, Object.assign({ idToken }, this._makeVerificationRequest()));\r\n }\r\n /** @internal */\r\n _getReauthenticationResolver(auth) {\r\n return verifyPhoneNumberForExisting(auth, this._makeVerificationRequest());\r\n }\r\n /** @internal */\r\n _makeVerificationRequest() {\r\n const { temporaryProof, phoneNumber, verificationId, verificationCode } = this.params;\r\n if (temporaryProof && phoneNumber) {\r\n return { temporaryProof, phoneNumber };\r\n }\r\n return {\r\n sessionInfo: verificationId,\r\n code: verificationCode\r\n };\r\n }\r\n /** {@inheritdoc AuthCredential.toJSON} */\r\n toJSON() {\r\n const obj = {\r\n providerId: this.providerId\r\n };\r\n if (this.params.phoneNumber) {\r\n obj.phoneNumber = this.params.phoneNumber;\r\n }\r\n if (this.params.temporaryProof) {\r\n obj.temporaryProof = this.params.temporaryProof;\r\n }\r\n if (this.params.verificationCode) {\r\n obj.verificationCode = this.params.verificationCode;\r\n }\r\n if (this.params.verificationId) {\r\n obj.verificationId = this.params.verificationId;\r\n }\r\n return obj;\r\n }\r\n /** Generates a phone credential based on a plain object or a JSON string. */\r\n static fromJSON(json) {\r\n if (typeof json === 'string') {\r\n json = JSON.parse(json);\r\n }\r\n const { verificationId, verificationCode, phoneNumber, temporaryProof } = json;\r\n if (!verificationCode &&\r\n !verificationId &&\r\n !phoneNumber &&\r\n !temporaryProof) {\r\n return null;\r\n }\r\n return new PhoneAuthCredential({\r\n verificationId,\r\n verificationCode,\r\n phoneNumber,\r\n temporaryProof\r\n });\r\n }\r\n}\n\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\n/**\r\n * Maps the mode string in action code URL to Action Code Info operation.\r\n *\r\n * @param mode\r\n */\r\nfunction parseMode(mode) {\r\n switch (mode) {\r\n case 'recoverEmail':\r\n return \"RECOVER_EMAIL\" /* ActionCodeOperation.RECOVER_EMAIL */;\r\n case 'resetPassword':\r\n return \"PASSWORD_RESET\" /* ActionCodeOperation.PASSWORD_RESET */;\r\n case 'signIn':\r\n return \"EMAIL_SIGNIN\" /* ActionCodeOperation.EMAIL_SIGNIN */;\r\n case 'verifyEmail':\r\n return \"VERIFY_EMAIL\" /* ActionCodeOperation.VERIFY_EMAIL */;\r\n case 'verifyAndChangeEmail':\r\n return \"VERIFY_AND_CHANGE_EMAIL\" /* ActionCodeOperation.VERIFY_AND_CHANGE_EMAIL */;\r\n case 'revertSecondFactorAddition':\r\n return \"REVERT_SECOND_FACTOR_ADDITION\" /* ActionCodeOperation.REVERT_SECOND_FACTOR_ADDITION */;\r\n default:\r\n return null;\r\n }\r\n}\r\n/**\r\n * Helper to parse FDL links\r\n *\r\n * @param url\r\n */\r\nfunction parseDeepLink(url) {\r\n const link = querystringDecode(extractQuerystring(url))['link'];\r\n // Double link case (automatic redirect).\r\n const doubleDeepLink = link\r\n ? querystringDecode(extractQuerystring(link))['deep_link_id']\r\n : null;\r\n // iOS custom scheme links.\r\n const iOSDeepLink = querystringDecode(extractQuerystring(url))['deep_link_id'];\r\n const iOSDoubleDeepLink = iOSDeepLink\r\n ? querystringDecode(extractQuerystring(iOSDeepLink))['link']\r\n : null;\r\n return iOSDoubleDeepLink || iOSDeepLink || doubleDeepLink || link || url;\r\n}\r\n/**\r\n * A utility class to parse email action URLs such as password reset, email verification,\r\n * email link sign in, etc.\r\n *\r\n * @public\r\n */\r\nclass ActionCodeURL {\r\n /**\r\n * @param actionLink - The link from which to extract the URL.\r\n * @returns The {@link ActionCodeURL} object, or null if the link is invalid.\r\n *\r\n * @internal\r\n */\r\n constructor(actionLink) {\r\n var _a, _b, _c, _d, _e, _f;\r\n const searchParams = querystringDecode(extractQuerystring(actionLink));\r\n const apiKey = (_a = searchParams[\"apiKey\" /* QueryField.API_KEY */]) !== null && _a !== void 0 ? _a : null;\r\n const code = (_b = searchParams[\"oobCode\" /* QueryField.CODE */]) !== null && _b !== void 0 ? _b : null;\r\n const operation = parseMode((_c = searchParams[\"mode\" /* QueryField.MODE */]) !== null && _c !== void 0 ? _c : null);\r\n // Validate API key, code and mode.\r\n _assert(apiKey && code && operation, \"argument-error\" /* AuthErrorCode.ARGUMENT_ERROR */);\r\n this.apiKey = apiKey;\r\n this.operation = operation;\r\n this.code = code;\r\n this.continueUrl = (_d = searchParams[\"continueUrl\" /* QueryField.CONTINUE_URL */]) !== null && _d !== void 0 ? _d : null;\r\n this.languageCode = (_e = searchParams[\"languageCode\" /* QueryField.LANGUAGE_CODE */]) !== null && _e !== void 0 ? _e : null;\r\n this.tenantId = (_f = searchParams[\"tenantId\" /* QueryField.TENANT_ID */]) !== null && _f !== void 0 ? _f : null;\r\n }\r\n /**\r\n * Parses the email action link string and returns an {@link ActionCodeURL} if the link is valid,\r\n * otherwise returns null.\r\n *\r\n * @param link - The email action link string.\r\n * @returns The {@link ActionCodeURL} object, or null if the link is invalid.\r\n *\r\n * @public\r\n */\r\n static parseLink(link) {\r\n const actionLink = parseDeepLink(link);\r\n try {\r\n return new ActionCodeURL(actionLink);\r\n }\r\n catch (_a) {\r\n return null;\r\n }\r\n }\r\n}\r\n/**\r\n * Parses the email action link string and returns an {@link ActionCodeURL} if\r\n * the link is valid, otherwise returns null.\r\n *\r\n * @public\r\n */\r\nfunction parseActionCodeURL(link) {\r\n return ActionCodeURL.parseLink(link);\r\n}\n\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\n/**\r\n * Provider for generating {@link EmailAuthCredential}.\r\n *\r\n * @public\r\n */\r\nclass EmailAuthProvider {\r\n constructor() {\r\n /**\r\n * Always set to {@link ProviderId}.PASSWORD, even for email link.\r\n */\r\n this.providerId = EmailAuthProvider.PROVIDER_ID;\r\n }\r\n /**\r\n * Initialize an {@link AuthCredential} using an email and password.\r\n *\r\n * @example\r\n * ```javascript\r\n * const authCredential = EmailAuthProvider.credential(email, password);\r\n * const userCredential = await signInWithCredential(auth, authCredential);\r\n * ```\r\n *\r\n * @example\r\n * ```javascript\r\n * const userCredential = await signInWithEmailAndPassword(auth, email, password);\r\n * ```\r\n *\r\n * @param email - Email address.\r\n * @param password - User account password.\r\n * @returns The auth provider credential.\r\n */\r\n static credential(email, password) {\r\n return EmailAuthCredential._fromEmailAndPassword(email, password);\r\n }\r\n /**\r\n * Initialize an {@link AuthCredential} using an email and an email link after a sign in with\r\n * email link operation.\r\n *\r\n * @example\r\n * ```javascript\r\n * const authCredential = EmailAuthProvider.credentialWithLink(auth, email, emailLink);\r\n * const userCredential = await signInWithCredential(auth, authCredential);\r\n * ```\r\n *\r\n * @example\r\n * ```javascript\r\n * await sendSignInLinkToEmail(auth, email);\r\n * // Obtain emailLink from user.\r\n * const userCredential = await signInWithEmailLink(auth, email, emailLink);\r\n * ```\r\n *\r\n * @param auth - The {@link Auth} instance used to verify the link.\r\n * @param email - Email address.\r\n * @param emailLink - Sign-in email link.\r\n * @returns - The auth provider credential.\r\n */\r\n static credentialWithLink(email, emailLink) {\r\n const actionCodeUrl = ActionCodeURL.parseLink(emailLink);\r\n _assert(actionCodeUrl, \"argument-error\" /* AuthErrorCode.ARGUMENT_ERROR */);\r\n return EmailAuthCredential._fromEmailAndCode(email, actionCodeUrl.code, actionCodeUrl.tenantId);\r\n }\r\n}\r\n/**\r\n * Always set to {@link ProviderId}.PASSWORD, even for email link.\r\n */\r\nEmailAuthProvider.PROVIDER_ID = \"password\" /* ProviderId.PASSWORD */;\r\n/**\r\n * Always set to {@link SignInMethod}.EMAIL_PASSWORD.\r\n */\r\nEmailAuthProvider.EMAIL_PASSWORD_SIGN_IN_METHOD = \"password\" /* SignInMethod.EMAIL_PASSWORD */;\r\n/**\r\n * Always set to {@link SignInMethod}.EMAIL_LINK.\r\n */\r\nEmailAuthProvider.EMAIL_LINK_SIGN_IN_METHOD = \"emailLink\" /* SignInMethod.EMAIL_LINK */;\n\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\n/**\r\n * The base class for all Federated providers (OAuth (including OIDC), SAML).\r\n *\r\n * This class is not meant to be instantiated directly.\r\n *\r\n * @public\r\n */\r\nclass FederatedAuthProvider {\r\n /**\r\n * Constructor for generic OAuth providers.\r\n *\r\n * @param providerId - Provider for which credentials should be generated.\r\n */\r\n constructor(providerId) {\r\n this.providerId = providerId;\r\n /** @internal */\r\n this.defaultLanguageCode = null;\r\n /** @internal */\r\n this.customParameters = {};\r\n }\r\n /**\r\n * Set the language gode.\r\n *\r\n * @param languageCode - language code\r\n */\r\n setDefaultLanguage(languageCode) {\r\n this.defaultLanguageCode = languageCode;\r\n }\r\n /**\r\n * Sets the OAuth custom parameters to pass in an OAuth request for popup and redirect sign-in\r\n * operations.\r\n *\r\n * @remarks\r\n * For a detailed list, check the reserved required OAuth 2.0 parameters such as `client_id`,\r\n * `redirect_uri`, `scope`, `response_type`, and `state` are not allowed and will be ignored.\r\n *\r\n * @param customOAuthParameters - The custom OAuth parameters to pass in the OAuth request.\r\n */\r\n setCustomParameters(customOAuthParameters) {\r\n this.customParameters = customOAuthParameters;\r\n return this;\r\n }\r\n /**\r\n * Retrieve the current list of {@link CustomParameters}.\r\n */\r\n getCustomParameters() {\r\n return this.customParameters;\r\n }\r\n}\n\n/**\r\n * @license\r\n * Copyright 2019 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\n/**\r\n * Common code to all OAuth providers. This is separate from the\r\n * {@link OAuthProvider} so that child providers (like\r\n * {@link GoogleAuthProvider}) don't inherit the `credential` instance method.\r\n * Instead, they rely on a static `credential` method.\r\n */\r\nclass BaseOAuthProvider extends FederatedAuthProvider {\r\n constructor() {\r\n super(...arguments);\r\n /** @internal */\r\n this.scopes = [];\r\n }\r\n /**\r\n * Add an OAuth scope to the credential.\r\n *\r\n * @param scope - Provider OAuth scope to add.\r\n */\r\n addScope(scope) {\r\n // If not already added, add scope to list.\r\n if (!this.scopes.includes(scope)) {\r\n this.scopes.push(scope);\r\n }\r\n return this;\r\n }\r\n /**\r\n * Retrieve the current list of OAuth scopes.\r\n */\r\n getScopes() {\r\n return [...this.scopes];\r\n }\r\n}\r\n/**\r\n * Provider for generating generic {@link OAuthCredential}.\r\n *\r\n * @example\r\n * ```javascript\r\n * // Sign in using a redirect.\r\n * const provider = new OAuthProvider('google.com');\r\n * // Start a sign in process for an unauthenticated user.\r\n * provider.addScope('profile');\r\n * provider.addScope('email');\r\n * await signInWithRedirect(auth, provider);\r\n * // This will trigger a full page redirect away from your app\r\n *\r\n * // After returning from the redirect when your app initializes you can obtain the result\r\n * const result = await getRedirectResult(auth);\r\n * if (result) {\r\n * // This is the signed-in user\r\n * const user = result.user;\r\n * // This gives you a OAuth Access Token for the provider.\r\n * const credential = provider.credentialFromResult(auth, result);\r\n * const token = credential.accessToken;\r\n * }\r\n * ```\r\n *\r\n * @example\r\n * ```javascript\r\n * // Sign in using a popup.\r\n * const provider = new OAuthProvider('google.com');\r\n * provider.addScope('profile');\r\n * provider.addScope('email');\r\n * const result = await signInWithPopup(auth, provider);\r\n *\r\n * // The signed-in user info.\r\n * const user = result.user;\r\n * // This gives you a OAuth Access Token for the provider.\r\n * const credential = provider.credentialFromResult(auth, result);\r\n * const token = credential.accessToken;\r\n * ```\r\n * @public\r\n */\r\nclass OAuthProvider extends BaseOAuthProvider {\r\n /**\r\n * Creates an {@link OAuthCredential} from a JSON string or a plain object.\r\n * @param json - A plain object or a JSON string\r\n */\r\n static credentialFromJSON(json) {\r\n const obj = typeof json === 'string' ? JSON.parse(json) : json;\r\n _assert('providerId' in obj && 'signInMethod' in obj, \"argument-error\" /* AuthErrorCode.ARGUMENT_ERROR */);\r\n return OAuthCredential._fromParams(obj);\r\n }\r\n /**\r\n * Creates a {@link OAuthCredential} from a generic OAuth provider's access token or ID token.\r\n *\r\n * @remarks\r\n * The raw nonce is required when an ID token with a nonce field is provided. The SHA-256 hash of\r\n * the raw nonce must match the nonce field in the ID token.\r\n *\r\n * @example\r\n * ```javascript\r\n * // `googleUser` from the onsuccess Google Sign In callback.\r\n * // Initialize a generate OAuth provider with a `google.com` providerId.\r\n * const provider = new OAuthProvider('google.com');\r\n * const credential = provider.credential({\r\n * idToken: googleUser.getAuthResponse().id_token,\r\n * });\r\n * const result = await signInWithCredential(credential);\r\n * ```\r\n *\r\n * @param params - Either the options object containing the ID token, access token and raw nonce\r\n * or the ID token string.\r\n */\r\n credential(params) {\r\n return this._credential(Object.assign(Object.assign({}, params), { nonce: params.rawNonce }));\r\n }\r\n /** An internal credential method that accepts more permissive options */\r\n _credential(params) {\r\n _assert(params.idToken || params.accessToken, \"argument-error\" /* AuthErrorCode.ARGUMENT_ERROR */);\r\n // For OAuthCredential, sign in method is same as providerId.\r\n return OAuthCredential._fromParams(Object.assign(Object.assign({}, params), { providerId: this.providerId, signInMethod: this.providerId }));\r\n }\r\n /**\r\n * Used to extract the underlying {@link OAuthCredential} from a {@link UserCredential}.\r\n *\r\n * @param userCredential - The user credential.\r\n */\r\n static credentialFromResult(userCredential) {\r\n return OAuthProvider.oauthCredentialFromTaggedObject(userCredential);\r\n }\r\n /**\r\n * Used to extract the underlying {@link OAuthCredential} from a {@link AuthError} which was\r\n * thrown during a sign-in, link, or reauthenticate operation.\r\n *\r\n * @param userCredential - The user credential.\r\n */\r\n static credentialFromError(error) {\r\n return OAuthProvider.oauthCredentialFromTaggedObject((error.customData || {}));\r\n }\r\n static oauthCredentialFromTaggedObject({ _tokenResponse: tokenResponse }) {\r\n if (!tokenResponse) {\r\n return null;\r\n }\r\n const { oauthIdToken, oauthAccessToken, oauthTokenSecret, pendingToken, nonce, providerId } = tokenResponse;\r\n if (!oauthAccessToken &&\r\n !oauthTokenSecret &&\r\n !oauthIdToken &&\r\n !pendingToken) {\r\n return null;\r\n }\r\n if (!providerId) {\r\n return null;\r\n }\r\n try {\r\n return new OAuthProvider(providerId)._credential({\r\n idToken: oauthIdToken,\r\n accessToken: oauthAccessToken,\r\n nonce,\r\n pendingToken\r\n });\r\n }\r\n catch (e) {\r\n return null;\r\n }\r\n }\r\n}\n\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\n/**\r\n * Provider for generating an {@link OAuthCredential} for {@link ProviderId}.FACEBOOK.\r\n *\r\n * @example\r\n * ```javascript\r\n * // Sign in using a redirect.\r\n * const provider = new FacebookAuthProvider();\r\n * // Start a sign in process for an unauthenticated user.\r\n * provider.addScope('user_birthday');\r\n * await signInWithRedirect(auth, provider);\r\n * // This will trigger a full page redirect away from your app\r\n *\r\n * // After returning from the redirect when your app initializes you can obtain the result\r\n * const result = await getRedirectResult(auth);\r\n * if (result) {\r\n * // This is the signed-in user\r\n * const user = result.user;\r\n * // This gives you a Facebook Access Token.\r\n * const credential = FacebookAuthProvider.credentialFromResult(result);\r\n * const token = credential.accessToken;\r\n * }\r\n * ```\r\n *\r\n * @example\r\n * ```javascript\r\n * // Sign in using a popup.\r\n * const provider = new FacebookAuthProvider();\r\n * provider.addScope('user_birthday');\r\n * const result = await signInWithPopup(auth, provider);\r\n *\r\n * // The signed-in user info.\r\n * const user = result.user;\r\n * // This gives you a Facebook Access Token.\r\n * const credential = FacebookAuthProvider.credentialFromResult(result);\r\n * const token = credential.accessToken;\r\n * ```\r\n *\r\n * @public\r\n */\r\nclass FacebookAuthProvider extends BaseOAuthProvider {\r\n constructor() {\r\n super(\"facebook.com\" /* ProviderId.FACEBOOK */);\r\n }\r\n /**\r\n * Creates a credential for Facebook.\r\n *\r\n * @example\r\n * ```javascript\r\n * // `event` from the Facebook auth.authResponseChange callback.\r\n * const credential = FacebookAuthProvider.credential(event.authResponse.accessToken);\r\n * const result = await signInWithCredential(credential);\r\n * ```\r\n *\r\n * @param accessToken - Facebook access token.\r\n */\r\n static credential(accessToken) {\r\n return OAuthCredential._fromParams({\r\n providerId: FacebookAuthProvider.PROVIDER_ID,\r\n signInMethod: FacebookAuthProvider.FACEBOOK_SIGN_IN_METHOD,\r\n accessToken\r\n });\r\n }\r\n /**\r\n * Used to extract the underlying {@link OAuthCredential} from a {@link UserCredential}.\r\n *\r\n * @param userCredential - The user credential.\r\n */\r\n static credentialFromResult(userCredential) {\r\n return FacebookAuthProvider.credentialFromTaggedObject(userCredential);\r\n }\r\n /**\r\n * Used to extract the underlying {@link OAuthCredential} from a {@link AuthError} which was\r\n * thrown during a sign-in, link, or reauthenticate operation.\r\n *\r\n * @param userCredential - The user credential.\r\n */\r\n static credentialFromError(error) {\r\n return FacebookAuthProvider.credentialFromTaggedObject((error.customData || {}));\r\n }\r\n static credentialFromTaggedObject({ _tokenResponse: tokenResponse }) {\r\n if (!tokenResponse || !('oauthAccessToken' in tokenResponse)) {\r\n return null;\r\n }\r\n if (!tokenResponse.oauthAccessToken) {\r\n return null;\r\n }\r\n try {\r\n return FacebookAuthProvider.credential(tokenResponse.oauthAccessToken);\r\n }\r\n catch (_a) {\r\n return null;\r\n }\r\n }\r\n}\r\n/** Always set to {@link SignInMethod}.FACEBOOK. */\r\nFacebookAuthProvider.FACEBOOK_SIGN_IN_METHOD = \"facebook.com\" /* SignInMethod.FACEBOOK */;\r\n/** Always set to {@link ProviderId}.FACEBOOK. */\r\nFacebookAuthProvider.PROVIDER_ID = \"facebook.com\" /* ProviderId.FACEBOOK */;\n\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\n/**\r\n * Provider for generating an an {@link OAuthCredential} for {@link ProviderId}.GOOGLE.\r\n *\r\n * @example\r\n * ```javascript\r\n * // Sign in using a redirect.\r\n * const provider = new GoogleAuthProvider();\r\n * // Start a sign in process for an unauthenticated user.\r\n * provider.addScope('profile');\r\n * provider.addScope('email');\r\n * await signInWithRedirect(auth, provider);\r\n * // This will trigger a full page redirect away from your app\r\n *\r\n * // After returning from the redirect when your app initializes you can obtain the result\r\n * const result = await getRedirectResult(auth);\r\n * if (result) {\r\n * // This is the signed-in user\r\n * const user = result.user;\r\n * // This gives you a Google Access Token.\r\n * const credential = GoogleAuthProvider.credentialFromResult(result);\r\n * const token = credential.accessToken;\r\n * }\r\n * ```\r\n *\r\n * @example\r\n * ```javascript\r\n * // Sign in using a popup.\r\n * const provider = new GoogleAuthProvider();\r\n * provider.addScope('profile');\r\n * provider.addScope('email');\r\n * const result = await signInWithPopup(auth, provider);\r\n *\r\n * // The signed-in user info.\r\n * const user = result.user;\r\n * // This gives you a Google Access Token.\r\n * const credential = GoogleAuthProvider.credentialFromResult(result);\r\n * const token = credential.accessToken;\r\n * ```\r\n *\r\n * @public\r\n */\r\nclass GoogleAuthProvider extends BaseOAuthProvider {\r\n constructor() {\r\n super(\"google.com\" /* ProviderId.GOOGLE */);\r\n this.addScope('profile');\r\n }\r\n /**\r\n * Creates a credential for Google. At least one of ID token and access token is required.\r\n *\r\n * @example\r\n * ```javascript\r\n * // \\`googleUser\\` from the onsuccess Google Sign In callback.\r\n * const credential = GoogleAuthProvider.credential(googleUser.getAuthResponse().id_token);\r\n * const result = await signInWithCredential(credential);\r\n * ```\r\n *\r\n * @param idToken - Google ID token.\r\n * @param accessToken - Google access token.\r\n */\r\n static credential(idToken, accessToken) {\r\n return OAuthCredential._fromParams({\r\n providerId: GoogleAuthProvider.PROVIDER_ID,\r\n signInMethod: GoogleAuthProvider.GOOGLE_SIGN_IN_METHOD,\r\n idToken,\r\n accessToken\r\n });\r\n }\r\n /**\r\n * Used to extract the underlying {@link OAuthCredential} from a {@link UserCredential}.\r\n *\r\n * @param userCredential - The user credential.\r\n */\r\n static credentialFromResult(userCredential) {\r\n return GoogleAuthProvider.credentialFromTaggedObject(userCredential);\r\n }\r\n /**\r\n * Used to extract the underlying {@link OAuthCredential} from a {@link AuthError} which was\r\n * thrown during a sign-in, link, or reauthenticate operation.\r\n *\r\n * @param userCredential - The user credential.\r\n */\r\n static credentialFromError(error) {\r\n return GoogleAuthProvider.credentialFromTaggedObject((error.customData || {}));\r\n }\r\n static credentialFromTaggedObject({ _tokenResponse: tokenResponse }) {\r\n if (!tokenResponse) {\r\n return null;\r\n }\r\n const { oauthIdToken, oauthAccessToken } = tokenResponse;\r\n if (!oauthIdToken && !oauthAccessToken) {\r\n // This could be an oauth 1 credential or a phone credential\r\n return null;\r\n }\r\n try {\r\n return GoogleAuthProvider.credential(oauthIdToken, oauthAccessToken);\r\n }\r\n catch (_a) {\r\n return null;\r\n }\r\n }\r\n}\r\n/** Always set to {@link SignInMethod}.GOOGLE. */\r\nGoogleAuthProvider.GOOGLE_SIGN_IN_METHOD = \"google.com\" /* SignInMethod.GOOGLE */;\r\n/** Always set to {@link ProviderId}.GOOGLE. */\r\nGoogleAuthProvider.PROVIDER_ID = \"google.com\" /* ProviderId.GOOGLE */;\n\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\n/**\r\n * Provider for generating an {@link OAuthCredential} for {@link ProviderId}.GITHUB.\r\n *\r\n * @remarks\r\n * GitHub requires an OAuth 2.0 redirect, so you can either handle the redirect directly, or use\r\n * the {@link signInWithPopup} handler:\r\n *\r\n * @example\r\n * ```javascript\r\n * // Sign in using a redirect.\r\n * const provider = new GithubAuthProvider();\r\n * // Start a sign in process for an unauthenticated user.\r\n * provider.addScope('repo');\r\n * await signInWithRedirect(auth, provider);\r\n * // This will trigger a full page redirect away from your app\r\n *\r\n * // After returning from the redirect when your app initializes you can obtain the result\r\n * const result = await getRedirectResult(auth);\r\n * if (result) {\r\n * // This is the signed-in user\r\n * const user = result.user;\r\n * // This gives you a Github Access Token.\r\n * const credential = GithubAuthProvider.credentialFromResult(result);\r\n * const token = credential.accessToken;\r\n * }\r\n * ```\r\n *\r\n * @example\r\n * ```javascript\r\n * // Sign in using a popup.\r\n * const provider = new GithubAuthProvider();\r\n * provider.addScope('repo');\r\n * const result = await signInWithPopup(auth, provider);\r\n *\r\n * // The signed-in user info.\r\n * const user = result.user;\r\n * // This gives you a Github Access Token.\r\n * const credential = GithubAuthProvider.credentialFromResult(result);\r\n * const token = credential.accessToken;\r\n * ```\r\n * @public\r\n */\r\nclass GithubAuthProvider extends BaseOAuthProvider {\r\n constructor() {\r\n super(\"github.com\" /* ProviderId.GITHUB */);\r\n }\r\n /**\r\n * Creates a credential for Github.\r\n *\r\n * @param accessToken - Github access token.\r\n */\r\n static credential(accessToken) {\r\n return OAuthCredential._fromParams({\r\n providerId: GithubAuthProvider.PROVIDER_ID,\r\n signInMethod: GithubAuthProvider.GITHUB_SIGN_IN_METHOD,\r\n accessToken\r\n });\r\n }\r\n /**\r\n * Used to extract the underlying {@link OAuthCredential} from a {@link UserCredential}.\r\n *\r\n * @param userCredential - The user credential.\r\n */\r\n static credentialFromResult(userCredential) {\r\n return GithubAuthProvider.credentialFromTaggedObject(userCredential);\r\n }\r\n /**\r\n * Used to extract the underlying {@link OAuthCredential} from a {@link AuthError} which was\r\n * thrown during a sign-in, link, or reauthenticate operation.\r\n *\r\n * @param userCredential - The user credential.\r\n */\r\n static credentialFromError(error) {\r\n return GithubAuthProvider.credentialFromTaggedObject((error.customData || {}));\r\n }\r\n static credentialFromTaggedObject({ _tokenResponse: tokenResponse }) {\r\n if (!tokenResponse || !('oauthAccessToken' in tokenResponse)) {\r\n return null;\r\n }\r\n if (!tokenResponse.oauthAccessToken) {\r\n return null;\r\n }\r\n try {\r\n return GithubAuthProvider.credential(tokenResponse.oauthAccessToken);\r\n }\r\n catch (_a) {\r\n return null;\r\n }\r\n }\r\n}\r\n/** Always set to {@link SignInMethod}.GITHUB. */\r\nGithubAuthProvider.GITHUB_SIGN_IN_METHOD = \"github.com\" /* SignInMethod.GITHUB */;\r\n/** Always set to {@link ProviderId}.GITHUB. */\r\nGithubAuthProvider.PROVIDER_ID = \"github.com\" /* ProviderId.GITHUB */;\n\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\nconst IDP_REQUEST_URI = 'http://localhost';\r\n/**\r\n * @public\r\n */\r\nclass SAMLAuthCredential extends AuthCredential {\r\n /** @internal */\r\n constructor(providerId, pendingToken) {\r\n super(providerId, providerId);\r\n this.pendingToken = pendingToken;\r\n }\r\n /** @internal */\r\n _getIdTokenResponse(auth) {\r\n const request = this.buildRequest();\r\n return signInWithIdp(auth, request);\r\n }\r\n /** @internal */\r\n _linkToIdToken(auth, idToken) {\r\n const request = this.buildRequest();\r\n request.idToken = idToken;\r\n return signInWithIdp(auth, request);\r\n }\r\n /** @internal */\r\n _getReauthenticationResolver(auth) {\r\n const request = this.buildRequest();\r\n request.autoCreate = false;\r\n return signInWithIdp(auth, request);\r\n }\r\n /** {@inheritdoc AuthCredential.toJSON} */\r\n toJSON() {\r\n return {\r\n signInMethod: this.signInMethod,\r\n providerId: this.providerId,\r\n pendingToken: this.pendingToken\r\n };\r\n }\r\n /**\r\n * Static method to deserialize a JSON representation of an object into an\r\n * {@link AuthCredential}.\r\n *\r\n * @param json - Input can be either Object or the stringified representation of the object.\r\n * When string is provided, JSON.parse would be called first.\r\n *\r\n * @returns If the JSON input does not represent an {@link AuthCredential}, null is returned.\r\n */\r\n static fromJSON(json) {\r\n const obj = typeof json === 'string' ? JSON.parse(json) : json;\r\n const { providerId, signInMethod, pendingToken } = obj;\r\n if (!providerId ||\r\n !signInMethod ||\r\n !pendingToken ||\r\n providerId !== signInMethod) {\r\n return null;\r\n }\r\n return new SAMLAuthCredential(providerId, pendingToken);\r\n }\r\n /**\r\n * Helper static method to avoid exposing the constructor to end users.\r\n *\r\n * @internal\r\n */\r\n static _create(providerId, pendingToken) {\r\n return new SAMLAuthCredential(providerId, pendingToken);\r\n }\r\n buildRequest() {\r\n return {\r\n requestUri: IDP_REQUEST_URI,\r\n returnSecureToken: true,\r\n pendingToken: this.pendingToken\r\n };\r\n }\r\n}\n\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\nconst SAML_PROVIDER_PREFIX = 'saml.';\r\n/**\r\n * An {@link AuthProvider} for SAML.\r\n *\r\n * @public\r\n */\r\nclass SAMLAuthProvider extends FederatedAuthProvider {\r\n /**\r\n * Constructor. The providerId must start with \"saml.\"\r\n * @param providerId - SAML provider ID.\r\n */\r\n constructor(providerId) {\r\n _assert(providerId.startsWith(SAML_PROVIDER_PREFIX), \"argument-error\" /* AuthErrorCode.ARGUMENT_ERROR */);\r\n super(providerId);\r\n }\r\n /**\r\n * Generates an {@link AuthCredential} from a {@link UserCredential} after a\r\n * successful SAML flow completes.\r\n *\r\n * @remarks\r\n *\r\n * For example, to get an {@link AuthCredential}, you could write the\r\n * following code:\r\n *\r\n * ```js\r\n * const userCredential = await signInWithPopup(auth, samlProvider);\r\n * const credential = SAMLAuthProvider.credentialFromResult(userCredential);\r\n * ```\r\n *\r\n * @param userCredential - The user credential.\r\n */\r\n static credentialFromResult(userCredential) {\r\n return SAMLAuthProvider.samlCredentialFromTaggedObject(userCredential);\r\n }\r\n /**\r\n * Used to extract the underlying {@link OAuthCredential} from a {@link AuthError} which was\r\n * thrown during a sign-in, link, or reauthenticate operation.\r\n *\r\n * @param userCredential - The user credential.\r\n */\r\n static credentialFromError(error) {\r\n return SAMLAuthProvider.samlCredentialFromTaggedObject((error.customData || {}));\r\n }\r\n /**\r\n * Creates an {@link AuthCredential} from a JSON string or a plain object.\r\n * @param json - A plain object or a JSON string\r\n */\r\n static credentialFromJSON(json) {\r\n const credential = SAMLAuthCredential.fromJSON(json);\r\n _assert(credential, \"argument-error\" /* AuthErrorCode.ARGUMENT_ERROR */);\r\n return credential;\r\n }\r\n static samlCredentialFromTaggedObject({ _tokenResponse: tokenResponse }) {\r\n if (!tokenResponse) {\r\n return null;\r\n }\r\n const { pendingToken, providerId } = tokenResponse;\r\n if (!pendingToken || !providerId) {\r\n return null;\r\n }\r\n try {\r\n return SAMLAuthCredential._create(providerId, pendingToken);\r\n }\r\n catch (e) {\r\n return null;\r\n }\r\n }\r\n}\n\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\n/**\r\n * Provider for generating an {@link OAuthCredential} for {@link ProviderId}.TWITTER.\r\n *\r\n * @example\r\n * ```javascript\r\n * // Sign in using a redirect.\r\n * const provider = new TwitterAuthProvider();\r\n * // Start a sign in process for an unauthenticated user.\r\n * await signInWithRedirect(auth, provider);\r\n * // This will trigger a full page redirect away from your app\r\n *\r\n * // After returning from the redirect when your app initializes you can obtain the result\r\n * const result = await getRedirectResult(auth);\r\n * if (result) {\r\n * // This is the signed-in user\r\n * const user = result.user;\r\n * // This gives you a Twitter Access Token and Secret.\r\n * const credential = TwitterAuthProvider.credentialFromResult(result);\r\n * const token = credential.accessToken;\r\n * const secret = credential.secret;\r\n * }\r\n * ```\r\n *\r\n * @example\r\n * ```javascript\r\n * // Sign in using a popup.\r\n * const provider = new TwitterAuthProvider();\r\n * const result = await signInWithPopup(auth, provider);\r\n *\r\n * // The signed-in user info.\r\n * const user = result.user;\r\n * // This gives you a Twitter Access Token and Secret.\r\n * const credential = TwitterAuthProvider.credentialFromResult(result);\r\n * const token = credential.accessToken;\r\n * const secret = credential.secret;\r\n * ```\r\n *\r\n * @public\r\n */\r\nclass TwitterAuthProvider extends BaseOAuthProvider {\r\n constructor() {\r\n super(\"twitter.com\" /* ProviderId.TWITTER */);\r\n }\r\n /**\r\n * Creates a credential for Twitter.\r\n *\r\n * @param token - Twitter access token.\r\n * @param secret - Twitter secret.\r\n */\r\n static credential(token, secret) {\r\n return OAuthCredential._fromParams({\r\n providerId: TwitterAuthProvider.PROVIDER_ID,\r\n signInMethod: TwitterAuthProvider.TWITTER_SIGN_IN_METHOD,\r\n oauthToken: token,\r\n oauthTokenSecret: secret\r\n });\r\n }\r\n /**\r\n * Used to extract the underlying {@link OAuthCredential} from a {@link UserCredential}.\r\n *\r\n * @param userCredential - The user credential.\r\n */\r\n static credentialFromResult(userCredential) {\r\n return TwitterAuthProvider.credentialFromTaggedObject(userCredential);\r\n }\r\n /**\r\n * Used to extract the underlying {@link OAuthCredential} from a {@link AuthError} which was\r\n * thrown during a sign-in, link, or reauthenticate operation.\r\n *\r\n * @param userCredential - The user credential.\r\n */\r\n static credentialFromError(error) {\r\n return TwitterAuthProvider.credentialFromTaggedObject((error.customData || {}));\r\n }\r\n static credentialFromTaggedObject({ _tokenResponse: tokenResponse }) {\r\n if (!tokenResponse) {\r\n return null;\r\n }\r\n const { oauthAccessToken, oauthTokenSecret } = tokenResponse;\r\n if (!oauthAccessToken || !oauthTokenSecret) {\r\n return null;\r\n }\r\n try {\r\n return TwitterAuthProvider.credential(oauthAccessToken, oauthTokenSecret);\r\n }\r\n catch (_a) {\r\n return null;\r\n }\r\n }\r\n}\r\n/** Always set to {@link SignInMethod}.TWITTER. */\r\nTwitterAuthProvider.TWITTER_SIGN_IN_METHOD = \"twitter.com\" /* SignInMethod.TWITTER */;\r\n/** Always set to {@link ProviderId}.TWITTER. */\r\nTwitterAuthProvider.PROVIDER_ID = \"twitter.com\" /* ProviderId.TWITTER */;\n\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\nasync function signUp(auth, request) {\r\n return _performSignInRequest(auth, \"POST\" /* HttpMethod.POST */, \"/v1/accounts:signUp\" /* Endpoint.SIGN_UP */, _addTidIfNecessary(auth, request));\r\n}\n\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\nclass UserCredentialImpl {\r\n constructor(params) {\r\n this.user = params.user;\r\n this.providerId = params.providerId;\r\n this._tokenResponse = params._tokenResponse;\r\n this.operationType = params.operationType;\r\n }\r\n static async _fromIdTokenResponse(auth, operationType, idTokenResponse, isAnonymous = false) {\r\n const user = await UserImpl._fromIdTokenResponse(auth, idTokenResponse, isAnonymous);\r\n const providerId = providerIdForResponse(idTokenResponse);\r\n const userCred = new UserCredentialImpl({\r\n user,\r\n providerId,\r\n _tokenResponse: idTokenResponse,\r\n operationType\r\n });\r\n return userCred;\r\n }\r\n static async _forOperation(user, operationType, response) {\r\n await user._updateTokensIfNecessary(response, /* reload */ true);\r\n const providerId = providerIdForResponse(response);\r\n return new UserCredentialImpl({\r\n user,\r\n providerId,\r\n _tokenResponse: response,\r\n operationType\r\n });\r\n }\r\n}\r\nfunction providerIdForResponse(response) {\r\n if (response.providerId) {\r\n return response.providerId;\r\n }\r\n if ('phoneNumber' in response) {\r\n return \"phone\" /* ProviderId.PHONE */;\r\n }\r\n return null;\r\n}\n\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\n/**\r\n * Asynchronously signs in as an anonymous user.\r\n *\r\n * @remarks\r\n * If there is already an anonymous user signed in, that user will be returned; otherwise, a\r\n * new anonymous user identity will be created and returned.\r\n *\r\n * @param auth - The {@link Auth} instance.\r\n *\r\n * @public\r\n */\r\nasync function signInAnonymously(auth) {\r\n var _a;\r\n const authInternal = _castAuth(auth);\r\n await authInternal._initializationPromise;\r\n if ((_a = authInternal.currentUser) === null || _a === void 0 ? void 0 : _a.isAnonymous) {\r\n // If an anonymous user is already signed in, no need to sign them in again.\r\n return new UserCredentialImpl({\r\n user: authInternal.currentUser,\r\n providerId: null,\r\n operationType: \"signIn\" /* OperationType.SIGN_IN */\r\n });\r\n }\r\n const response = await signUp(authInternal, {\r\n returnSecureToken: true\r\n });\r\n const userCredential = await UserCredentialImpl._fromIdTokenResponse(authInternal, \"signIn\" /* OperationType.SIGN_IN */, response, true);\r\n await authInternal._updateCurrentUser(userCredential.user);\r\n return userCredential;\r\n}\n\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\nclass MultiFactorError extends FirebaseError {\r\n constructor(auth, error, operationType, user) {\r\n var _a;\r\n super(error.code, error.message);\r\n this.operationType = operationType;\r\n this.user = user;\r\n // https://github.com/Microsoft/TypeScript-wiki/blob/master/Breaking-Changes.md#extending-built-ins-like-error-array-and-map-may-no-longer-work\r\n Object.setPrototypeOf(this, MultiFactorError.prototype);\r\n this.customData = {\r\n appName: auth.name,\r\n tenantId: (_a = auth.tenantId) !== null && _a !== void 0 ? _a : undefined,\r\n _serverResponse: error.customData._serverResponse,\r\n operationType\r\n };\r\n }\r\n static _fromErrorAndOperation(auth, error, operationType, user) {\r\n return new MultiFactorError(auth, error, operationType, user);\r\n }\r\n}\r\nfunction _processCredentialSavingMfaContextIfNecessary(auth, operationType, credential, user) {\r\n const idTokenProvider = operationType === \"reauthenticate\" /* OperationType.REAUTHENTICATE */\r\n ? credential._getReauthenticationResolver(auth)\r\n : credential._getIdTokenResponse(auth);\r\n return idTokenProvider.catch(error => {\r\n if (error.code === `auth/${\"multi-factor-auth-required\" /* AuthErrorCode.MFA_REQUIRED */}`) {\r\n throw MultiFactorError._fromErrorAndOperation(auth, error, operationType, user);\r\n }\r\n throw error;\r\n });\r\n}\n\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\n/**\r\n * Takes a set of UserInfo provider data and converts it to a set of names\r\n */\r\nfunction providerDataAsNames(providerData) {\r\n return new Set(providerData\r\n .map(({ providerId }) => providerId)\r\n .filter(pid => !!pid));\r\n}\n\n/**\r\n * @license\r\n * Copyright 2019 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\n/**\r\n * Unlinks a provider from a user account.\r\n *\r\n * @param user - The user.\r\n * @param providerId - The provider to unlink.\r\n *\r\n * @public\r\n */\r\nasync function unlink(user, providerId) {\r\n const userInternal = getModularInstance(user);\r\n await _assertLinkedStatus(true, userInternal, providerId);\r\n const { providerUserInfo } = await deleteLinkedAccounts(userInternal.auth, {\r\n idToken: await userInternal.getIdToken(),\r\n deleteProvider: [providerId]\r\n });\r\n const providersLeft = providerDataAsNames(providerUserInfo || []);\r\n userInternal.providerData = userInternal.providerData.filter(pd => providersLeft.has(pd.providerId));\r\n if (!providersLeft.has(\"phone\" /* ProviderId.PHONE */)) {\r\n userInternal.phoneNumber = null;\r\n }\r\n await userInternal.auth._persistUserIfCurrent(userInternal);\r\n return userInternal;\r\n}\r\nasync function _link$1(user, credential, bypassAuthState = false) {\r\n const response = await _logoutIfInvalidated(user, credential._linkToIdToken(user.auth, await user.getIdToken()), bypassAuthState);\r\n return UserCredentialImpl._forOperation(user, \"link\" /* OperationType.LINK */, response);\r\n}\r\nasync function _assertLinkedStatus(expected, user, provider) {\r\n await _reloadWithoutSaving(user);\r\n const providerIds = providerDataAsNames(user.providerData);\r\n const code = expected === false\r\n ? \"provider-already-linked\" /* AuthErrorCode.PROVIDER_ALREADY_LINKED */\r\n : \"no-such-provider\" /* AuthErrorCode.NO_SUCH_PROVIDER */;\r\n _assert(providerIds.has(provider) === expected, user.auth, code);\r\n}\n\n/**\r\n * @license\r\n * Copyright 2019 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\nasync function _reauthenticate(user, credential, bypassAuthState = false) {\r\n const { auth } = user;\r\n const operationType = \"reauthenticate\" /* OperationType.REAUTHENTICATE */;\r\n try {\r\n const response = await _logoutIfInvalidated(user, _processCredentialSavingMfaContextIfNecessary(auth, operationType, credential, user), bypassAuthState);\r\n _assert(response.idToken, auth, \"internal-error\" /* AuthErrorCode.INTERNAL_ERROR */);\r\n const parsed = _parseToken(response.idToken);\r\n _assert(parsed, auth, \"internal-error\" /* AuthErrorCode.INTERNAL_ERROR */);\r\n const { sub: localId } = parsed;\r\n _assert(user.uid === localId, auth, \"user-mismatch\" /* AuthErrorCode.USER_MISMATCH */);\r\n return UserCredentialImpl._forOperation(user, operationType, response);\r\n }\r\n catch (e) {\r\n // Convert user deleted error into user mismatch\r\n if ((e === null || e === void 0 ? void 0 : e.code) === `auth/${\"user-not-found\" /* AuthErrorCode.USER_DELETED */}`) {\r\n _fail(auth, \"user-mismatch\" /* AuthErrorCode.USER_MISMATCH */);\r\n }\r\n throw e;\r\n }\r\n}\n\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\nasync function _signInWithCredential(auth, credential, bypassAuthState = false) {\r\n const operationType = \"signIn\" /* OperationType.SIGN_IN */;\r\n const response = await _processCredentialSavingMfaContextIfNecessary(auth, operationType, credential);\r\n const userCredential = await UserCredentialImpl._fromIdTokenResponse(auth, operationType, response);\r\n if (!bypassAuthState) {\r\n await auth._updateCurrentUser(userCredential.user);\r\n }\r\n return userCredential;\r\n}\r\n/**\r\n * Asynchronously signs in with the given credentials.\r\n *\r\n * @remarks\r\n * An {@link AuthProvider} can be used to generate the credential.\r\n *\r\n * @param auth - The {@link Auth} instance.\r\n * @param credential - The auth credential.\r\n *\r\n * @public\r\n */\r\nasync function signInWithCredential(auth, credential) {\r\n return _signInWithCredential(_castAuth(auth), credential);\r\n}\r\n/**\r\n * Links the user account with the given credentials.\r\n *\r\n * @remarks\r\n * An {@link AuthProvider} can be used to generate the credential.\r\n *\r\n * @param user - The user.\r\n * @param credential - The auth credential.\r\n *\r\n * @public\r\n */\r\nasync function linkWithCredential(user, credential) {\r\n const userInternal = getModularInstance(user);\r\n await _assertLinkedStatus(false, userInternal, credential.providerId);\r\n return _link$1(userInternal, credential);\r\n}\r\n/**\r\n * Re-authenticates a user using a fresh credential.\r\n *\r\n * @remarks\r\n * Use before operations such as {@link updatePassword} that require tokens from recent sign-in\r\n * attempts. This method can be used to recover from a `CREDENTIAL_TOO_OLD_LOGIN_AGAIN` error\r\n * or a `TOKEN_EXPIRED` error.\r\n *\r\n * @param user - The user.\r\n * @param credential - The auth credential.\r\n *\r\n * @public\r\n */\r\nasync function reauthenticateWithCredential(user, credential) {\r\n return _reauthenticate(getModularInstance(user), credential);\r\n}\n\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\nasync function signInWithCustomToken$1(auth, request) {\r\n return _performSignInRequest(auth, \"POST\" /* HttpMethod.POST */, \"/v1/accounts:signInWithCustomToken\" /* Endpoint.SIGN_IN_WITH_CUSTOM_TOKEN */, _addTidIfNecessary(auth, request));\r\n}\n\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\n/**\r\n * Asynchronously signs in using a custom token.\r\n *\r\n * @remarks\r\n * Custom tokens are used to integrate Firebase Auth with existing auth systems, and must\r\n * be generated by an auth backend using the\r\n * {@link https://firebase.google.com/docs/reference/admin/node/admin.auth.Auth#createcustomtoken | createCustomToken}\r\n * method in the {@link https://firebase.google.com/docs/auth/admin | Admin SDK} .\r\n *\r\n * Fails with an error if the token is invalid, expired, or not accepted by the Firebase Auth service.\r\n *\r\n * @param auth - The {@link Auth} instance.\r\n * @param customToken - The custom token to sign in with.\r\n *\r\n * @public\r\n */\r\nasync function signInWithCustomToken(auth, customToken) {\r\n const authInternal = _castAuth(auth);\r\n const response = await signInWithCustomToken$1(authInternal, {\r\n token: customToken,\r\n returnSecureToken: true\r\n });\r\n const cred = await UserCredentialImpl._fromIdTokenResponse(authInternal, \"signIn\" /* OperationType.SIGN_IN */, response);\r\n await authInternal._updateCurrentUser(cred.user);\r\n return cred;\r\n}\n\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\nclass MultiFactorInfoImpl {\r\n constructor(factorId, response) {\r\n this.factorId = factorId;\r\n this.uid = response.mfaEnrollmentId;\r\n this.enrollmentTime = new Date(response.enrolledAt).toUTCString();\r\n this.displayName = response.displayName;\r\n }\r\n static _fromServerResponse(auth, enrollment) {\r\n if ('phoneInfo' in enrollment) {\r\n return PhoneMultiFactorInfoImpl._fromServerResponse(auth, enrollment);\r\n }\r\n else if ('totpInfo' in enrollment) {\r\n return TotpMultiFactorInfoImpl._fromServerResponse(auth, enrollment);\r\n }\r\n return _fail(auth, \"internal-error\" /* AuthErrorCode.INTERNAL_ERROR */);\r\n }\r\n}\r\nclass PhoneMultiFactorInfoImpl extends MultiFactorInfoImpl {\r\n constructor(response) {\r\n super(\"phone\" /* FactorId.PHONE */, response);\r\n this.phoneNumber = response.phoneInfo;\r\n }\r\n static _fromServerResponse(_auth, enrollment) {\r\n return new PhoneMultiFactorInfoImpl(enrollment);\r\n }\r\n}\r\nclass TotpMultiFactorInfoImpl extends MultiFactorInfoImpl {\r\n constructor(response) {\r\n super(\"totp\" /* FactorId.TOTP */, response);\r\n }\r\n static _fromServerResponse(_auth, enrollment) {\r\n return new TotpMultiFactorInfoImpl(enrollment);\r\n }\r\n}\n\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\nfunction _setActionCodeSettingsOnRequest(auth, request, actionCodeSettings) {\r\n var _a;\r\n _assert(((_a = actionCodeSettings.url) === null || _a === void 0 ? void 0 : _a.length) > 0, auth, \"invalid-continue-uri\" /* AuthErrorCode.INVALID_CONTINUE_URI */);\r\n _assert(typeof actionCodeSettings.dynamicLinkDomain === 'undefined' ||\r\n actionCodeSettings.dynamicLinkDomain.length > 0, auth, \"invalid-dynamic-link-domain\" /* AuthErrorCode.INVALID_DYNAMIC_LINK_DOMAIN */);\r\n request.continueUrl = actionCodeSettings.url;\r\n request.dynamicLinkDomain = actionCodeSettings.dynamicLinkDomain;\r\n request.canHandleCodeInApp = actionCodeSettings.handleCodeInApp;\r\n if (actionCodeSettings.iOS) {\r\n _assert(actionCodeSettings.iOS.bundleId.length > 0, auth, \"missing-ios-bundle-id\" /* AuthErrorCode.MISSING_IOS_BUNDLE_ID */);\r\n request.iOSBundleId = actionCodeSettings.iOS.bundleId;\r\n }\r\n if (actionCodeSettings.android) {\r\n _assert(actionCodeSettings.android.packageName.length > 0, auth, \"missing-android-pkg-name\" /* AuthErrorCode.MISSING_ANDROID_PACKAGE_NAME */);\r\n request.androidInstallApp = actionCodeSettings.android.installApp;\r\n request.androidMinimumVersionCode =\r\n actionCodeSettings.android.minimumVersion;\r\n request.androidPackageName = actionCodeSettings.android.packageName;\r\n }\r\n}\n\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\n/**\r\n * Updates the password policy cached in the {@link Auth} instance if a policy is already\r\n * cached for the project or tenant.\r\n *\r\n * @remarks\r\n * We only fetch the password policy if the password did not meet policy requirements and\r\n * there is an existing policy cached. A developer must call validatePassword at least\r\n * once for the cache to be automatically updated.\r\n *\r\n * @param auth - The {@link Auth} instance.\r\n *\r\n * @private\r\n */\r\nasync function recachePasswordPolicy(auth) {\r\n const authInternal = _castAuth(auth);\r\n if (authInternal._getPasswordPolicyInternal()) {\r\n await authInternal._updatePasswordPolicy();\r\n }\r\n}\r\n/**\r\n * Sends a password reset email to the given email address. This method does not throw an error when\r\n * there's no user account with the given email address and\r\n * [Email Enumeration Protection](https://cloud.google.com/identity-platform/docs/admin/email-enumeration-protection) is enabled.\r\n *\r\n * @remarks\r\n * To complete the password reset, call {@link confirmPasswordReset} with the code supplied in\r\n * the email sent to the user, along with the new password specified by the user.\r\n *\r\n * @example\r\n * ```javascript\r\n * const actionCodeSettings = {\r\n * url: 'https://www.example.com/?email=user@example.com',\r\n * iOS: {\r\n * bundleId: 'com.example.ios'\r\n * },\r\n * android: {\r\n * packageName: 'com.example.android',\r\n * installApp: true,\r\n * minimumVersion: '12'\r\n * },\r\n * handleCodeInApp: true\r\n * };\r\n * await sendPasswordResetEmail(auth, 'user@example.com', actionCodeSettings);\r\n * // Obtain code from user.\r\n * await confirmPasswordReset('user@example.com', code);\r\n * ```\r\n *\r\n * @param auth - The {@link Auth} instance.\r\n * @param email - The user's email address.\r\n * @param actionCodeSettings - The {@link ActionCodeSettings}.\r\n *\r\n * @public\r\n */\r\nasync function sendPasswordResetEmail(auth, email, actionCodeSettings) {\r\n const authInternal = _castAuth(auth);\r\n const request = {\r\n requestType: \"PASSWORD_RESET\" /* ActionCodeOperation.PASSWORD_RESET */,\r\n email,\r\n clientType: \"CLIENT_TYPE_WEB\" /* RecaptchaClientType.WEB */\r\n };\r\n if (actionCodeSettings) {\r\n _setActionCodeSettingsOnRequest(authInternal, request, actionCodeSettings);\r\n }\r\n await handleRecaptchaFlow(authInternal, request, \"getOobCode\" /* RecaptchaActionName.GET_OOB_CODE */, sendPasswordResetEmail$1);\r\n}\r\n/**\r\n * Completes the password reset process, given a confirmation code and new password.\r\n *\r\n * @param auth - The {@link Auth} instance.\r\n * @param oobCode - A confirmation code sent to the user.\r\n * @param newPassword - The new password.\r\n *\r\n * @public\r\n */\r\nasync function confirmPasswordReset(auth, oobCode, newPassword) {\r\n await resetPassword(getModularInstance(auth), {\r\n oobCode,\r\n newPassword\r\n })\r\n .catch(async (error) => {\r\n if (error.code ===\r\n `auth/${\"password-does-not-meet-requirements\" /* AuthErrorCode.PASSWORD_DOES_NOT_MEET_REQUIREMENTS */}`) {\r\n void recachePasswordPolicy(auth);\r\n }\r\n throw error;\r\n });\r\n // Do not return the email.\r\n}\r\n/**\r\n * Applies a verification code sent to the user by email or other out-of-band mechanism.\r\n *\r\n * @param auth - The {@link Auth} instance.\r\n * @param oobCode - A verification code sent to the user.\r\n *\r\n * @public\r\n */\r\nasync function applyActionCode(auth, oobCode) {\r\n await applyActionCode$1(getModularInstance(auth), { oobCode });\r\n}\r\n/**\r\n * Checks a verification code sent to the user by email or other out-of-band mechanism.\r\n *\r\n * @returns metadata about the code.\r\n *\r\n * @param auth - The {@link Auth} instance.\r\n * @param oobCode - A verification code sent to the user.\r\n *\r\n * @public\r\n */\r\nasync function checkActionCode(auth, oobCode) {\r\n const authModular = getModularInstance(auth);\r\n const response = await resetPassword(authModular, { oobCode });\r\n // Email could be empty only if the request type is EMAIL_SIGNIN or\r\n // VERIFY_AND_CHANGE_EMAIL.\r\n // New email should not be empty if the request type is\r\n // VERIFY_AND_CHANGE_EMAIL.\r\n // Multi-factor info could not be empty if the request type is\r\n // REVERT_SECOND_FACTOR_ADDITION.\r\n const operation = response.requestType;\r\n _assert(operation, authModular, \"internal-error\" /* AuthErrorCode.INTERNAL_ERROR */);\r\n switch (operation) {\r\n case \"EMAIL_SIGNIN\" /* ActionCodeOperation.EMAIL_SIGNIN */:\r\n break;\r\n case \"VERIFY_AND_CHANGE_EMAIL\" /* ActionCodeOperation.VERIFY_AND_CHANGE_EMAIL */:\r\n _assert(response.newEmail, authModular, \"internal-error\" /* AuthErrorCode.INTERNAL_ERROR */);\r\n break;\r\n case \"REVERT_SECOND_FACTOR_ADDITION\" /* ActionCodeOperation.REVERT_SECOND_FACTOR_ADDITION */:\r\n _assert(response.mfaInfo, authModular, \"internal-error\" /* AuthErrorCode.INTERNAL_ERROR */);\r\n // fall through\r\n default:\r\n _assert(response.email, authModular, \"internal-error\" /* AuthErrorCode.INTERNAL_ERROR */);\r\n }\r\n // The multi-factor info for revert second factor addition\r\n let multiFactorInfo = null;\r\n if (response.mfaInfo) {\r\n multiFactorInfo = MultiFactorInfoImpl._fromServerResponse(_castAuth(authModular), response.mfaInfo);\r\n }\r\n return {\r\n data: {\r\n email: (response.requestType === \"VERIFY_AND_CHANGE_EMAIL\" /* ActionCodeOperation.VERIFY_AND_CHANGE_EMAIL */\r\n ? response.newEmail\r\n : response.email) || null,\r\n previousEmail: (response.requestType === \"VERIFY_AND_CHANGE_EMAIL\" /* ActionCodeOperation.VERIFY_AND_CHANGE_EMAIL */\r\n ? response.email\r\n : response.newEmail) || null,\r\n multiFactorInfo\r\n },\r\n operation\r\n };\r\n}\r\n/**\r\n * Checks a password reset code sent to the user by email or other out-of-band mechanism.\r\n *\r\n * @returns the user's email address if valid.\r\n *\r\n * @param auth - The {@link Auth} instance.\r\n * @param code - A verification code sent to the user.\r\n *\r\n * @public\r\n */\r\nasync function verifyPasswordResetCode(auth, code) {\r\n const { data } = await checkActionCode(getModularInstance(auth), code);\r\n // Email should always be present since a code was sent to it\r\n return data.email;\r\n}\r\n/**\r\n * Creates a new user account associated with the specified email address and password.\r\n *\r\n * @remarks\r\n * On successful creation of the user account, this user will also be signed in to your application.\r\n *\r\n * User account creation can fail if the account already exists or the password is invalid.\r\n *\r\n * Note: The email address acts as a unique identifier for the user and enables an email-based\r\n * password reset. This function will create a new user account and set the initial user password.\r\n *\r\n * @param auth - The {@link Auth} instance.\r\n * @param email - The user's email address.\r\n * @param password - The user's chosen password.\r\n *\r\n * @public\r\n */\r\nasync function createUserWithEmailAndPassword(auth, email, password) {\r\n const authInternal = _castAuth(auth);\r\n const request = {\r\n returnSecureToken: true,\r\n email,\r\n password,\r\n clientType: \"CLIENT_TYPE_WEB\" /* RecaptchaClientType.WEB */\r\n };\r\n const signUpResponse = handleRecaptchaFlow(authInternal, request, \"signUpPassword\" /* RecaptchaActionName.SIGN_UP_PASSWORD */, signUp);\r\n const response = await signUpResponse.catch(error => {\r\n if (error.code === `auth/${\"password-does-not-meet-requirements\" /* AuthErrorCode.PASSWORD_DOES_NOT_MEET_REQUIREMENTS */}`) {\r\n void recachePasswordPolicy(auth);\r\n }\r\n throw error;\r\n });\r\n const userCredential = await UserCredentialImpl._fromIdTokenResponse(authInternal, \"signIn\" /* OperationType.SIGN_IN */, response);\r\n await authInternal._updateCurrentUser(userCredential.user);\r\n return userCredential;\r\n}\r\n/**\r\n * Asynchronously signs in using an email and password.\r\n *\r\n * @remarks\r\n * Fails with an error if the email address and password do not match.\r\n * When [Email Enumeration Protection](https://cloud.google.com/identity-platform/docs/admin/email-enumeration-protection) is enabled,\r\n * this method fails with \"auth/invalid-credential\" in case of an invalid email/password.\r\n *\r\n * Note: The user's password is NOT the password used to access the user's email account. The\r\n * email address serves as a unique identifier for the user, and the password is used to access\r\n * the user's account in your Firebase project. See also: {@link createUserWithEmailAndPassword}.\r\n *\r\n * @param auth - The {@link Auth} instance.\r\n * @param email - The users email address.\r\n * @param password - The users password.\r\n *\r\n * @public\r\n */\r\nfunction signInWithEmailAndPassword(auth, email, password) {\r\n return signInWithCredential(getModularInstance(auth), EmailAuthProvider.credential(email, password)).catch(async (error) => {\r\n if (error.code === `auth/${\"password-does-not-meet-requirements\" /* AuthErrorCode.PASSWORD_DOES_NOT_MEET_REQUIREMENTS */}`) {\r\n void recachePasswordPolicy(auth);\r\n }\r\n throw error;\r\n });\r\n}\n\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\n/**\r\n * Sends a sign-in email link to the user with the specified email.\r\n *\r\n * @remarks\r\n * The sign-in operation has to always be completed in the app unlike other out of band email\r\n * actions (password reset and email verifications). This is because, at the end of the flow,\r\n * the user is expected to be signed in and their Auth state persisted within the app.\r\n *\r\n * To complete sign in with the email link, call {@link signInWithEmailLink} with the email\r\n * address and the email link supplied in the email sent to the user.\r\n *\r\n * @example\r\n * ```javascript\r\n * const actionCodeSettings = {\r\n * url: 'https://www.example.com/?email=user@example.com',\r\n * iOS: {\r\n * bundleId: 'com.example.ios'\r\n * },\r\n * android: {\r\n * packageName: 'com.example.android',\r\n * installApp: true,\r\n * minimumVersion: '12'\r\n * },\r\n * handleCodeInApp: true\r\n * };\r\n * await sendSignInLinkToEmail(auth, 'user@example.com', actionCodeSettings);\r\n * // Obtain emailLink from the user.\r\n * if(isSignInWithEmailLink(auth, emailLink)) {\r\n * await signInWithEmailLink(auth, 'user@example.com', emailLink);\r\n * }\r\n * ```\r\n *\r\n * @param authInternal - The {@link Auth} instance.\r\n * @param email - The user's email address.\r\n * @param actionCodeSettings - The {@link ActionCodeSettings}.\r\n *\r\n * @public\r\n */\r\nasync function sendSignInLinkToEmail(auth, email, actionCodeSettings) {\r\n const authInternal = _castAuth(auth);\r\n const request = {\r\n requestType: \"EMAIL_SIGNIN\" /* ActionCodeOperation.EMAIL_SIGNIN */,\r\n email,\r\n clientType: \"CLIENT_TYPE_WEB\" /* RecaptchaClientType.WEB */\r\n };\r\n function setActionCodeSettings(request, actionCodeSettings) {\r\n _assert(actionCodeSettings.handleCodeInApp, authInternal, \"argument-error\" /* AuthErrorCode.ARGUMENT_ERROR */);\r\n if (actionCodeSettings) {\r\n _setActionCodeSettingsOnRequest(authInternal, request, actionCodeSettings);\r\n }\r\n }\r\n setActionCodeSettings(request, actionCodeSettings);\r\n await handleRecaptchaFlow(authInternal, request, \"getOobCode\" /* RecaptchaActionName.GET_OOB_CODE */, sendSignInLinkToEmail$1);\r\n}\r\n/**\r\n * Checks if an incoming link is a sign-in with email link suitable for {@link signInWithEmailLink}.\r\n *\r\n * @param auth - The {@link Auth} instance.\r\n * @param emailLink - The link sent to the user's email address.\r\n *\r\n * @public\r\n */\r\nfunction isSignInWithEmailLink(auth, emailLink) {\r\n const actionCodeUrl = ActionCodeURL.parseLink(emailLink);\r\n return (actionCodeUrl === null || actionCodeUrl === void 0 ? void 0 : actionCodeUrl.operation) === \"EMAIL_SIGNIN\" /* ActionCodeOperation.EMAIL_SIGNIN */;\r\n}\r\n/**\r\n * Asynchronously signs in using an email and sign-in email link.\r\n *\r\n * @remarks\r\n * If no link is passed, the link is inferred from the current URL.\r\n *\r\n * Fails with an error if the email address is invalid or OTP in email link expires.\r\n *\r\n * Note: Confirm the link is a sign-in email link before calling this method firebase.auth.Auth.isSignInWithEmailLink.\r\n *\r\n * @example\r\n * ```javascript\r\n * const actionCodeSettings = {\r\n * url: 'https://www.example.com/?email=user@example.com',\r\n * iOS: {\r\n * bundleId: 'com.example.ios'\r\n * },\r\n * android: {\r\n * packageName: 'com.example.android',\r\n * installApp: true,\r\n * minimumVersion: '12'\r\n * },\r\n * handleCodeInApp: true\r\n * };\r\n * await sendSignInLinkToEmail(auth, 'user@example.com', actionCodeSettings);\r\n * // Obtain emailLink from the user.\r\n * if(isSignInWithEmailLink(auth, emailLink)) {\r\n * await signInWithEmailLink(auth, 'user@example.com', emailLink);\r\n * }\r\n * ```\r\n *\r\n * @param auth - The {@link Auth} instance.\r\n * @param email - The user's email address.\r\n * @param emailLink - The link sent to the user's email address.\r\n *\r\n * @public\r\n */\r\nasync function signInWithEmailLink(auth, email, emailLink) {\r\n const authModular = getModularInstance(auth);\r\n const credential = EmailAuthProvider.credentialWithLink(email, emailLink || _getCurrentUrl());\r\n // Check if the tenant ID in the email link matches the tenant ID on Auth\r\n // instance.\r\n _assert(credential._tenantId === (authModular.tenantId || null), authModular, \"tenant-id-mismatch\" /* AuthErrorCode.TENANT_ID_MISMATCH */);\r\n return signInWithCredential(authModular, credential);\r\n}\n\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\nasync function createAuthUri(auth, request) {\r\n return _performApiRequest(auth, \"POST\" /* HttpMethod.POST */, \"/v1/accounts:createAuthUri\" /* Endpoint.CREATE_AUTH_URI */, _addTidIfNecessary(auth, request));\r\n}\n\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\n/**\r\n * Gets the list of possible sign in methods for the given email address. This method returns an\r\n * empty list when [Email Enumeration Protection](https://cloud.google.com/identity-platform/docs/admin/email-enumeration-protection) is enabled, irrespective of the number of\r\n * authentication methods available for the given email.\r\n *\r\n * @remarks\r\n * This is useful to differentiate methods of sign-in for the same provider, eg.\r\n * {@link EmailAuthProvider} which has 2 methods of sign-in,\r\n * {@link SignInMethod}.EMAIL_PASSWORD and\r\n * {@link SignInMethod}.EMAIL_LINK.\r\n *\r\n * @param auth - The {@link Auth} instance.\r\n * @param email - The user's email address.\r\n *\r\n * Deprecated. Migrating off of this method is recommended as a security best-practice.\r\n * Learn more in the Identity Platform documentation for [Email Enumeration Protection](https://cloud.google.com/identity-platform/docs/admin/email-enumeration-protection).\r\n * @public\r\n */\r\nasync function fetchSignInMethodsForEmail(auth, email) {\r\n // createAuthUri returns an error if continue URI is not http or https.\r\n // For environments like Cordova, Chrome extensions, native frameworks, file\r\n // systems, etc, use http://localhost as continue URL.\r\n const continueUri = _isHttpOrHttps() ? _getCurrentUrl() : 'http://localhost';\r\n const request = {\r\n identifier: email,\r\n continueUri\r\n };\r\n const { signinMethods } = await createAuthUri(getModularInstance(auth), request);\r\n return signinMethods || [];\r\n}\r\n/**\r\n * Sends a verification email to a user.\r\n *\r\n * @remarks\r\n * The verification process is completed by calling {@link applyActionCode}.\r\n *\r\n * @example\r\n * ```javascript\r\n * const actionCodeSettings = {\r\n * url: 'https://www.example.com/?email=user@example.com',\r\n * iOS: {\r\n * bundleId: 'com.example.ios'\r\n * },\r\n * android: {\r\n * packageName: 'com.example.android',\r\n * installApp: true,\r\n * minimumVersion: '12'\r\n * },\r\n * handleCodeInApp: true\r\n * };\r\n * await sendEmailVerification(user, actionCodeSettings);\r\n * // Obtain code from the user.\r\n * await applyActionCode(auth, code);\r\n * ```\r\n *\r\n * @param user - The user.\r\n * @param actionCodeSettings - The {@link ActionCodeSettings}.\r\n *\r\n * @public\r\n */\r\nasync function sendEmailVerification(user, actionCodeSettings) {\r\n const userInternal = getModularInstance(user);\r\n const idToken = await user.getIdToken();\r\n const request = {\r\n requestType: \"VERIFY_EMAIL\" /* ActionCodeOperation.VERIFY_EMAIL */,\r\n idToken\r\n };\r\n if (actionCodeSettings) {\r\n _setActionCodeSettingsOnRequest(userInternal.auth, request, actionCodeSettings);\r\n }\r\n const { email } = await sendEmailVerification$1(userInternal.auth, request);\r\n if (email !== user.email) {\r\n await user.reload();\r\n }\r\n}\r\n/**\r\n * Sends a verification email to a new email address.\r\n *\r\n * @remarks\r\n * The user's email will be updated to the new one after being verified.\r\n *\r\n * If you have a custom email action handler, you can complete the verification process by calling\r\n * {@link applyActionCode}.\r\n *\r\n * @example\r\n * ```javascript\r\n * const actionCodeSettings = {\r\n * url: 'https://www.example.com/?email=user@example.com',\r\n * iOS: {\r\n * bundleId: 'com.example.ios'\r\n * },\r\n * android: {\r\n * packageName: 'com.example.android',\r\n * installApp: true,\r\n * minimumVersion: '12'\r\n * },\r\n * handleCodeInApp: true\r\n * };\r\n * await verifyBeforeUpdateEmail(user, 'newemail@example.com', actionCodeSettings);\r\n * // Obtain code from the user.\r\n * await applyActionCode(auth, code);\r\n * ```\r\n *\r\n * @param user - The user.\r\n * @param newEmail - The new email address to be verified before update.\r\n * @param actionCodeSettings - The {@link ActionCodeSettings}.\r\n *\r\n * @public\r\n */\r\nasync function verifyBeforeUpdateEmail(user, newEmail, actionCodeSettings) {\r\n const userInternal = getModularInstance(user);\r\n const idToken = await user.getIdToken();\r\n const request = {\r\n requestType: \"VERIFY_AND_CHANGE_EMAIL\" /* ActionCodeOperation.VERIFY_AND_CHANGE_EMAIL */,\r\n idToken,\r\n newEmail\r\n };\r\n if (actionCodeSettings) {\r\n _setActionCodeSettingsOnRequest(userInternal.auth, request, actionCodeSettings);\r\n }\r\n const { email } = await verifyAndChangeEmail(userInternal.auth, request);\r\n if (email !== user.email) {\r\n // If the local copy of the email on user is outdated, reload the\r\n // user.\r\n await user.reload();\r\n }\r\n}\n\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\nasync function updateProfile$1(auth, request) {\r\n return _performApiRequest(auth, \"POST\" /* HttpMethod.POST */, \"/v1/accounts:update\" /* Endpoint.SET_ACCOUNT_INFO */, request);\r\n}\n\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\n/**\r\n * Updates a user's profile data.\r\n *\r\n * @param user - The user.\r\n * @param profile - The profile's `displayName` and `photoURL` to update.\r\n *\r\n * @public\r\n */\r\nasync function updateProfile(user, { displayName, photoURL: photoUrl }) {\r\n if (displayName === undefined && photoUrl === undefined) {\r\n return;\r\n }\r\n const userInternal = getModularInstance(user);\r\n const idToken = await userInternal.getIdToken();\r\n const profileRequest = {\r\n idToken,\r\n displayName,\r\n photoUrl,\r\n returnSecureToken: true\r\n };\r\n const response = await _logoutIfInvalidated(userInternal, updateProfile$1(userInternal.auth, profileRequest));\r\n userInternal.displayName = response.displayName || null;\r\n userInternal.photoURL = response.photoUrl || null;\r\n // Update the password provider as well\r\n const passwordProvider = userInternal.providerData.find(({ providerId }) => providerId === \"password\" /* ProviderId.PASSWORD */);\r\n if (passwordProvider) {\r\n passwordProvider.displayName = userInternal.displayName;\r\n passwordProvider.photoURL = userInternal.photoURL;\r\n }\r\n await userInternal._updateTokensIfNecessary(response);\r\n}\r\n/**\r\n * Updates the user's email address.\r\n *\r\n * @remarks\r\n * An email will be sent to the original email address (if it was set) that allows to revoke the\r\n * email address change, in order to protect them from account hijacking.\r\n *\r\n * Important: this is a security sensitive operation that requires the user to have recently signed\r\n * in. If this requirement isn't met, ask the user to authenticate again and then call\r\n * {@link reauthenticateWithCredential}.\r\n *\r\n * @param user - The user.\r\n * @param newEmail - The new email address.\r\n *\r\n * Throws \"auth/operation-not-allowed\" error when [Email Enumeration Protection](https://cloud.google.com/identity-platform/docs/admin/email-enumeration-protection) is enabled.\r\n * Deprecated - Use {@link verifyBeforeUpdateEmail} instead.\r\n *\r\n * @public\r\n */\r\nfunction updateEmail(user, newEmail) {\r\n return updateEmailOrPassword(getModularInstance(user), newEmail, null);\r\n}\r\n/**\r\n * Updates the user's password.\r\n *\r\n * @remarks\r\n * Important: this is a security sensitive operation that requires the user to have recently signed\r\n * in. If this requirement isn't met, ask the user to authenticate again and then call\r\n * {@link reauthenticateWithCredential}.\r\n *\r\n * @param user - The user.\r\n * @param newPassword - The new password.\r\n *\r\n * @public\r\n */\r\nfunction updatePassword(user, newPassword) {\r\n return updateEmailOrPassword(getModularInstance(user), null, newPassword);\r\n}\r\nasync function updateEmailOrPassword(user, email, password) {\r\n const { auth } = user;\r\n const idToken = await user.getIdToken();\r\n const request = {\r\n idToken,\r\n returnSecureToken: true\r\n };\r\n if (email) {\r\n request.email = email;\r\n }\r\n if (password) {\r\n request.password = password;\r\n }\r\n const response = await _logoutIfInvalidated(user, updateEmailPassword(auth, request));\r\n await user._updateTokensIfNecessary(response, /* reload */ true);\r\n}\n\n/**\r\n * @license\r\n * Copyright 2019 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\n/**\r\n * Parse the `AdditionalUserInfo` from the ID token response.\r\n *\r\n */\r\nfunction _fromIdTokenResponse(idTokenResponse) {\r\n var _a, _b;\r\n if (!idTokenResponse) {\r\n return null;\r\n }\r\n const { providerId } = idTokenResponse;\r\n const profile = idTokenResponse.rawUserInfo\r\n ? JSON.parse(idTokenResponse.rawUserInfo)\r\n : {};\r\n const isNewUser = idTokenResponse.isNewUser ||\r\n idTokenResponse.kind === \"identitytoolkit#SignupNewUserResponse\" /* IdTokenResponseKind.SignupNewUser */;\r\n if (!providerId && (idTokenResponse === null || idTokenResponse === void 0 ? void 0 : idTokenResponse.idToken)) {\r\n const signInProvider = (_b = (_a = _parseToken(idTokenResponse.idToken)) === null || _a === void 0 ? void 0 : _a.firebase) === null || _b === void 0 ? void 0 : _b['sign_in_provider'];\r\n if (signInProvider) {\r\n const filteredProviderId = signInProvider !== \"anonymous\" /* ProviderId.ANONYMOUS */ &&\r\n signInProvider !== \"custom\" /* ProviderId.CUSTOM */\r\n ? signInProvider\r\n : null;\r\n // Uses generic class in accordance with the legacy SDK.\r\n return new GenericAdditionalUserInfo(isNewUser, filteredProviderId);\r\n }\r\n }\r\n if (!providerId) {\r\n return null;\r\n }\r\n switch (providerId) {\r\n case \"facebook.com\" /* ProviderId.FACEBOOK */:\r\n return new FacebookAdditionalUserInfo(isNewUser, profile);\r\n case \"github.com\" /* ProviderId.GITHUB */:\r\n return new GithubAdditionalUserInfo(isNewUser, profile);\r\n case \"google.com\" /* ProviderId.GOOGLE */:\r\n return new GoogleAdditionalUserInfo(isNewUser, profile);\r\n case \"twitter.com\" /* ProviderId.TWITTER */:\r\n return new TwitterAdditionalUserInfo(isNewUser, profile, idTokenResponse.screenName || null);\r\n case \"custom\" /* ProviderId.CUSTOM */:\r\n case \"anonymous\" /* ProviderId.ANONYMOUS */:\r\n return new GenericAdditionalUserInfo(isNewUser, null);\r\n default:\r\n return new GenericAdditionalUserInfo(isNewUser, providerId, profile);\r\n }\r\n}\r\nclass GenericAdditionalUserInfo {\r\n constructor(isNewUser, providerId, profile = {}) {\r\n this.isNewUser = isNewUser;\r\n this.providerId = providerId;\r\n this.profile = profile;\r\n }\r\n}\r\nclass FederatedAdditionalUserInfoWithUsername extends GenericAdditionalUserInfo {\r\n constructor(isNewUser, providerId, profile, username) {\r\n super(isNewUser, providerId, profile);\r\n this.username = username;\r\n }\r\n}\r\nclass FacebookAdditionalUserInfo extends GenericAdditionalUserInfo {\r\n constructor(isNewUser, profile) {\r\n super(isNewUser, \"facebook.com\" /* ProviderId.FACEBOOK */, profile);\r\n }\r\n}\r\nclass GithubAdditionalUserInfo extends FederatedAdditionalUserInfoWithUsername {\r\n constructor(isNewUser, profile) {\r\n super(isNewUser, \"github.com\" /* ProviderId.GITHUB */, profile, typeof (profile === null || profile === void 0 ? void 0 : profile.login) === 'string' ? profile === null || profile === void 0 ? void 0 : profile.login : null);\r\n }\r\n}\r\nclass GoogleAdditionalUserInfo extends GenericAdditionalUserInfo {\r\n constructor(isNewUser, profile) {\r\n super(isNewUser, \"google.com\" /* ProviderId.GOOGLE */, profile);\r\n }\r\n}\r\nclass TwitterAdditionalUserInfo extends FederatedAdditionalUserInfoWithUsername {\r\n constructor(isNewUser, profile, screenName) {\r\n super(isNewUser, \"twitter.com\" /* ProviderId.TWITTER */, profile, screenName);\r\n }\r\n}\r\n/**\r\n * Extracts provider specific {@link AdditionalUserInfo} for the given credential.\r\n *\r\n * @param userCredential - The user credential.\r\n *\r\n * @public\r\n */\r\nfunction getAdditionalUserInfo(userCredential) {\r\n const { user, _tokenResponse } = userCredential;\r\n if (user.isAnonymous && !_tokenResponse) {\r\n // Handle the special case where signInAnonymously() gets called twice.\r\n // No network call is made so there's nothing to actually fill this in\r\n return {\r\n providerId: null,\r\n isNewUser: false,\r\n profile: null\r\n };\r\n }\r\n return _fromIdTokenResponse(_tokenResponse);\r\n}\n\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\n// Non-optional auth methods.\r\n/**\r\n * Changes the type of persistence on the {@link Auth} instance for the currently saved\r\n * `Auth` session and applies this type of persistence for future sign-in requests, including\r\n * sign-in with redirect requests.\r\n *\r\n * @remarks\r\n * This makes it easy for a user signing in to specify whether their session should be\r\n * remembered or not. It also makes it easier to never persist the `Auth` state for applications\r\n * that are shared by other users or have sensitive data.\r\n *\r\n * This method does not work in a Node.js environment.\r\n *\r\n * @example\r\n * ```javascript\r\n * setPersistence(auth, browserSessionPersistence);\r\n * ```\r\n *\r\n * @param auth - The {@link Auth} instance.\r\n * @param persistence - The {@link Persistence} to use.\r\n * @returns A `Promise` that resolves once the persistence change has completed\r\n *\r\n * @public\r\n */\r\nfunction setPersistence(auth, persistence) {\r\n return getModularInstance(auth).setPersistence(persistence);\r\n}\r\n/**\r\n * Loads the reCAPTCHA configuration into the `Auth` instance.\r\n *\r\n * @remarks\r\n * This will load the reCAPTCHA config, which indicates whether the reCAPTCHA\r\n * verification flow should be triggered for each auth provider, into the\r\n * current Auth session.\r\n *\r\n * If initializeRecaptchaConfig() is not invoked, the auth flow will always start\r\n * without reCAPTCHA verification. If the provider is configured to require reCAPTCHA\r\n * verification, the SDK will transparently load the reCAPTCHA config and restart the\r\n * auth flows.\r\n *\r\n * Thus, by calling this optional method, you will reduce the latency of future auth flows.\r\n * Loading the reCAPTCHA config early will also enhance the signal collected by reCAPTCHA.\r\n *\r\n * This method does not work in a Node.js environment.\r\n *\r\n * @example\r\n * ```javascript\r\n * initializeRecaptchaConfig(auth);\r\n * ```\r\n *\r\n * @param auth - The {@link Auth} instance.\r\n *\r\n * @public\r\n */\r\nfunction initializeRecaptchaConfig(auth) {\r\n return _initializeRecaptchaConfig(auth);\r\n}\r\n/**\r\n * Validates the password against the password policy configured for the project or tenant.\r\n *\r\n * @remarks\r\n * If no tenant ID is set on the `Auth` instance, then this method will use the password\r\n * policy configured for the project. Otherwise, this method will use the policy configured\r\n * for the tenant. If a password policy has not been configured, then the default policy\r\n * configured for all projects will be used.\r\n *\r\n * If an auth flow fails because a submitted password does not meet the password policy\r\n * requirements and this method has previously been called, then this method will use the\r\n * most recent policy available when called again.\r\n *\r\n * @example\r\n * ```javascript\r\n * validatePassword(auth, 'some-password');\r\n * ```\r\n *\r\n * @param auth The {@link Auth} instance.\r\n * @param password The password to validate.\r\n *\r\n * @public\r\n */\r\nasync function validatePassword(auth, password) {\r\n const authInternal = _castAuth(auth);\r\n return authInternal.validatePassword(password);\r\n}\r\n/**\r\n * Adds an observer for changes to the signed-in user's ID token.\r\n *\r\n * @remarks\r\n * This includes sign-in, sign-out, and token refresh events.\r\n * This will not be triggered automatically upon ID token expiration. Use {@link User.getIdToken} to refresh the ID token.\r\n *\r\n * @param auth - The {@link Auth} instance.\r\n * @param nextOrObserver - callback triggered on change.\r\n * @param error - Deprecated. This callback is never triggered. Errors\r\n * on signing in/out can be caught in promises returned from\r\n * sign-in/sign-out functions.\r\n * @param completed - Deprecated. This callback is never triggered.\r\n *\r\n * @public\r\n */\r\nfunction onIdTokenChanged(auth, nextOrObserver, error, completed) {\r\n return getModularInstance(auth).onIdTokenChanged(nextOrObserver, error, completed);\r\n}\r\n/**\r\n * Adds a blocking callback that runs before an auth state change\r\n * sets a new user.\r\n *\r\n * @param auth - The {@link Auth} instance.\r\n * @param callback - callback triggered before new user value is set.\r\n * If this throws, it blocks the user from being set.\r\n * @param onAbort - callback triggered if a later `beforeAuthStateChanged()`\r\n * callback throws, allowing you to undo any side effects.\r\n */\r\nfunction beforeAuthStateChanged(auth, callback, onAbort) {\r\n return getModularInstance(auth).beforeAuthStateChanged(callback, onAbort);\r\n}\r\n/**\r\n * Adds an observer for changes to the user's sign-in state.\r\n *\r\n * @remarks\r\n * To keep the old behavior, see {@link onIdTokenChanged}.\r\n *\r\n * @param auth - The {@link Auth} instance.\r\n * @param nextOrObserver - callback triggered on change.\r\n * @param error - Deprecated. This callback is never triggered. Errors\r\n * on signing in/out can be caught in promises returned from\r\n * sign-in/sign-out functions.\r\n * @param completed - Deprecated. This callback is never triggered.\r\n *\r\n * @public\r\n */\r\nfunction onAuthStateChanged(auth, nextOrObserver, error, completed) {\r\n return getModularInstance(auth).onAuthStateChanged(nextOrObserver, error, completed);\r\n}\r\n/**\r\n * Sets the current language to the default device/browser preference.\r\n *\r\n * @param auth - The {@link Auth} instance.\r\n *\r\n * @public\r\n */\r\nfunction useDeviceLanguage(auth) {\r\n getModularInstance(auth).useDeviceLanguage();\r\n}\r\n/**\r\n * Asynchronously sets the provided user as {@link Auth.currentUser} on the\r\n * {@link Auth} instance.\r\n *\r\n * @remarks\r\n * A new instance copy of the user provided will be made and set as currentUser.\r\n *\r\n * This will trigger {@link onAuthStateChanged} and {@link onIdTokenChanged} listeners\r\n * like other sign in methods.\r\n *\r\n * The operation fails with an error if the user to be updated belongs to a different Firebase\r\n * project.\r\n *\r\n * @param auth - The {@link Auth} instance.\r\n * @param user - The new {@link User}.\r\n *\r\n * @public\r\n */\r\nfunction updateCurrentUser(auth, user) {\r\n return getModularInstance(auth).updateCurrentUser(user);\r\n}\r\n/**\r\n * Signs out the current user.\r\n *\r\n * @param auth - The {@link Auth} instance.\r\n *\r\n * @public\r\n */\r\nfunction signOut(auth) {\r\n return getModularInstance(auth).signOut();\r\n}\r\n/**\r\n * Revokes the given access token. Currently only supports Apple OAuth access tokens.\r\n *\r\n * @param auth - The {@link Auth} instance.\r\n * @param token - The Apple OAuth access token.\r\n *\r\n * @public\r\n */\r\nfunction revokeAccessToken(auth, token) {\r\n const authInternal = _castAuth(auth);\r\n return authInternal.revokeAccessToken(token);\r\n}\r\n/**\r\n * Deletes and signs out the user.\r\n *\r\n * @remarks\r\n * Important: this is a security-sensitive operation that requires the user to have recently\r\n * signed in. If this requirement isn't met, ask the user to authenticate again and then call\r\n * {@link reauthenticateWithCredential}.\r\n *\r\n * @param user - The user.\r\n *\r\n * @public\r\n */\r\nasync function deleteUser(user) {\r\n return getModularInstance(user).delete();\r\n}\n\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\nclass MultiFactorSessionImpl {\r\n constructor(type, credential, user) {\r\n this.type = type;\r\n this.credential = credential;\r\n this.user = user;\r\n }\r\n static _fromIdtoken(idToken, user) {\r\n return new MultiFactorSessionImpl(\"enroll\" /* MultiFactorSessionType.ENROLL */, idToken, user);\r\n }\r\n static _fromMfaPendingCredential(mfaPendingCredential) {\r\n return new MultiFactorSessionImpl(\"signin\" /* MultiFactorSessionType.SIGN_IN */, mfaPendingCredential);\r\n }\r\n toJSON() {\r\n const key = this.type === \"enroll\" /* MultiFactorSessionType.ENROLL */\r\n ? 'idToken'\r\n : 'pendingCredential';\r\n return {\r\n multiFactorSession: {\r\n [key]: this.credential\r\n }\r\n };\r\n }\r\n static fromJSON(obj) {\r\n var _a, _b;\r\n if (obj === null || obj === void 0 ? void 0 : obj.multiFactorSession) {\r\n if ((_a = obj.multiFactorSession) === null || _a === void 0 ? void 0 : _a.pendingCredential) {\r\n return MultiFactorSessionImpl._fromMfaPendingCredential(obj.multiFactorSession.pendingCredential);\r\n }\r\n else if ((_b = obj.multiFactorSession) === null || _b === void 0 ? void 0 : _b.idToken) {\r\n return MultiFactorSessionImpl._fromIdtoken(obj.multiFactorSession.idToken);\r\n }\r\n }\r\n return null;\r\n }\r\n}\n\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\nclass MultiFactorResolverImpl {\r\n constructor(session, hints, signInResolver) {\r\n this.session = session;\r\n this.hints = hints;\r\n this.signInResolver = signInResolver;\r\n }\r\n /** @internal */\r\n static _fromError(authExtern, error) {\r\n const auth = _castAuth(authExtern);\r\n const serverResponse = error.customData._serverResponse;\r\n const hints = (serverResponse.mfaInfo || []).map(enrollment => MultiFactorInfoImpl._fromServerResponse(auth, enrollment));\r\n _assert(serverResponse.mfaPendingCredential, auth, \"internal-error\" /* AuthErrorCode.INTERNAL_ERROR */);\r\n const session = MultiFactorSessionImpl._fromMfaPendingCredential(serverResponse.mfaPendingCredential);\r\n return new MultiFactorResolverImpl(session, hints, async (assertion) => {\r\n const mfaResponse = await assertion._process(auth, session);\r\n // Clear out the unneeded fields from the old login response\r\n delete serverResponse.mfaInfo;\r\n delete serverResponse.mfaPendingCredential;\r\n // Use in the new token & refresh token in the old response\r\n const idTokenResponse = Object.assign(Object.assign({}, serverResponse), { idToken: mfaResponse.idToken, refreshToken: mfaResponse.refreshToken });\r\n // TODO: we should collapse this switch statement into UserCredentialImpl._forOperation and have it support the SIGN_IN case\r\n switch (error.operationType) {\r\n case \"signIn\" /* OperationType.SIGN_IN */:\r\n const userCredential = await UserCredentialImpl._fromIdTokenResponse(auth, error.operationType, idTokenResponse);\r\n await auth._updateCurrentUser(userCredential.user);\r\n return userCredential;\r\n case \"reauthenticate\" /* OperationType.REAUTHENTICATE */:\r\n _assert(error.user, auth, \"internal-error\" /* AuthErrorCode.INTERNAL_ERROR */);\r\n return UserCredentialImpl._forOperation(error.user, error.operationType, idTokenResponse);\r\n default:\r\n _fail(auth, \"internal-error\" /* AuthErrorCode.INTERNAL_ERROR */);\r\n }\r\n });\r\n }\r\n async resolveSignIn(assertionExtern) {\r\n const assertion = assertionExtern;\r\n return this.signInResolver(assertion);\r\n }\r\n}\r\n/**\r\n * Provides a {@link MultiFactorResolver} suitable for completion of a\r\n * multi-factor flow.\r\n *\r\n * @param auth - The {@link Auth} instance.\r\n * @param error - The {@link MultiFactorError} raised during a sign-in, or\r\n * reauthentication operation.\r\n *\r\n * @public\r\n */\r\nfunction getMultiFactorResolver(auth, error) {\r\n var _a;\r\n const authModular = getModularInstance(auth);\r\n const errorInternal = error;\r\n _assert(error.customData.operationType, authModular, \"argument-error\" /* AuthErrorCode.ARGUMENT_ERROR */);\r\n _assert((_a = errorInternal.customData._serverResponse) === null || _a === void 0 ? void 0 : _a.mfaPendingCredential, authModular, \"argument-error\" /* AuthErrorCode.ARGUMENT_ERROR */);\r\n return MultiFactorResolverImpl._fromError(authModular, errorInternal);\r\n}\n\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\nfunction startEnrollPhoneMfa(auth, request) {\r\n return _performApiRequest(auth, \"POST\" /* HttpMethod.POST */, \"/v2/accounts/mfaEnrollment:start\" /* Endpoint.START_MFA_ENROLLMENT */, _addTidIfNecessary(auth, request));\r\n}\r\nfunction finalizeEnrollPhoneMfa(auth, request) {\r\n return _performApiRequest(auth, \"POST\" /* HttpMethod.POST */, \"/v2/accounts/mfaEnrollment:finalize\" /* Endpoint.FINALIZE_MFA_ENROLLMENT */, _addTidIfNecessary(auth, request));\r\n}\r\nfunction startEnrollTotpMfa(auth, request) {\r\n return _performApiRequest(auth, \"POST\" /* HttpMethod.POST */, \"/v2/accounts/mfaEnrollment:start\" /* Endpoint.START_MFA_ENROLLMENT */, _addTidIfNecessary(auth, request));\r\n}\r\nfunction finalizeEnrollTotpMfa(auth, request) {\r\n return _performApiRequest(auth, \"POST\" /* HttpMethod.POST */, \"/v2/accounts/mfaEnrollment:finalize\" /* Endpoint.FINALIZE_MFA_ENROLLMENT */, _addTidIfNecessary(auth, request));\r\n}\r\nfunction withdrawMfa(auth, request) {\r\n return _performApiRequest(auth, \"POST\" /* HttpMethod.POST */, \"/v2/accounts/mfaEnrollment:withdraw\" /* Endpoint.WITHDRAW_MFA */, _addTidIfNecessary(auth, request));\r\n}\n\nclass MultiFactorUserImpl {\r\n constructor(user) {\r\n this.user = user;\r\n this.enrolledFactors = [];\r\n user._onReload(userInfo => {\r\n if (userInfo.mfaInfo) {\r\n this.enrolledFactors = userInfo.mfaInfo.map(enrollment => MultiFactorInfoImpl._fromServerResponse(user.auth, enrollment));\r\n }\r\n });\r\n }\r\n static _fromUser(user) {\r\n return new MultiFactorUserImpl(user);\r\n }\r\n async getSession() {\r\n return MultiFactorSessionImpl._fromIdtoken(await this.user.getIdToken(), this.user);\r\n }\r\n async enroll(assertionExtern, displayName) {\r\n const assertion = assertionExtern;\r\n const session = (await this.getSession());\r\n const finalizeMfaResponse = await _logoutIfInvalidated(this.user, assertion._process(this.user.auth, session, displayName));\r\n // New tokens will be issued after enrollment of the new second factors.\r\n // They need to be updated on the user.\r\n await this.user._updateTokensIfNecessary(finalizeMfaResponse);\r\n // The user needs to be reloaded to get the new multi-factor information\r\n // from server. USER_RELOADED event will be triggered and `enrolledFactors`\r\n // will be updated.\r\n return this.user.reload();\r\n }\r\n async unenroll(infoOrUid) {\r\n const mfaEnrollmentId = typeof infoOrUid === 'string' ? infoOrUid : infoOrUid.uid;\r\n const idToken = await this.user.getIdToken();\r\n try {\r\n const idTokenResponse = await _logoutIfInvalidated(this.user, withdrawMfa(this.user.auth, {\r\n idToken,\r\n mfaEnrollmentId\r\n }));\r\n // Remove the second factor from the user's list.\r\n this.enrolledFactors = this.enrolledFactors.filter(({ uid }) => uid !== mfaEnrollmentId);\r\n // Depending on whether the backend decided to revoke the user's session,\r\n // the tokenResponse may be empty. If the tokens were not updated (and they\r\n // are now invalid), reloading the user will discover this and invalidate\r\n // the user's state accordingly.\r\n await this.user._updateTokensIfNecessary(idTokenResponse);\r\n await this.user.reload();\r\n }\r\n catch (e) {\r\n throw e;\r\n }\r\n }\r\n}\r\nconst multiFactorUserCache = new WeakMap();\r\n/**\r\n * The {@link MultiFactorUser} corresponding to the user.\r\n *\r\n * @remarks\r\n * This is used to access all multi-factor properties and operations related to the user.\r\n *\r\n * @param user - The user.\r\n *\r\n * @public\r\n */\r\nfunction multiFactor(user) {\r\n const userModular = getModularInstance(user);\r\n if (!multiFactorUserCache.has(userModular)) {\r\n multiFactorUserCache.set(userModular, MultiFactorUserImpl._fromUser(userModular));\r\n }\r\n return multiFactorUserCache.get(userModular);\r\n}\n\nconst STORAGE_AVAILABLE_KEY = '__sak';\n\n/**\r\n * @license\r\n * Copyright 2019 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\n// There are two different browser persistence types: local and session.\r\n// Both have the same implementation but use a different underlying storage\r\n// object.\r\nclass BrowserPersistenceClass {\r\n constructor(storageRetriever, type) {\r\n this.storageRetriever = storageRetriever;\r\n this.type = type;\r\n }\r\n _isAvailable() {\r\n try {\r\n if (!this.storage) {\r\n return Promise.resolve(false);\r\n }\r\n this.storage.setItem(STORAGE_AVAILABLE_KEY, '1');\r\n this.storage.removeItem(STORAGE_AVAILABLE_KEY);\r\n return Promise.resolve(true);\r\n }\r\n catch (_a) {\r\n return Promise.resolve(false);\r\n }\r\n }\r\n _set(key, value) {\r\n this.storage.setItem(key, JSON.stringify(value));\r\n return Promise.resolve();\r\n }\r\n _get(key) {\r\n const json = this.storage.getItem(key);\r\n return Promise.resolve(json ? JSON.parse(json) : null);\r\n }\r\n _remove(key) {\r\n this.storage.removeItem(key);\r\n return Promise.resolve();\r\n }\r\n get storage() {\r\n return this.storageRetriever();\r\n }\r\n}\n\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\nfunction _iframeCannotSyncWebStorage() {\r\n const ua = getUA();\r\n return _isSafari(ua) || _isIOS(ua);\r\n}\r\n// The polling period in case events are not supported\r\nconst _POLLING_INTERVAL_MS$1 = 1000;\r\n// The IE 10 localStorage cross tab synchronization delay in milliseconds\r\nconst IE10_LOCAL_STORAGE_SYNC_DELAY = 10;\r\nclass BrowserLocalPersistence extends BrowserPersistenceClass {\r\n constructor() {\r\n super(() => window.localStorage, \"LOCAL\" /* PersistenceType.LOCAL */);\r\n this.boundEventHandler = (event, poll) => this.onStorageEvent(event, poll);\r\n this.listeners = {};\r\n this.localCache = {};\r\n // setTimeout return value is platform specific\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n this.pollTimer = null;\r\n // Safari or iOS browser and embedded in an iframe.\r\n this.safariLocalStorageNotSynced = _iframeCannotSyncWebStorage() && _isIframe();\r\n // Whether to use polling instead of depending on window events\r\n this.fallbackToPolling = _isMobileBrowser();\r\n this._shouldAllowMigration = true;\r\n }\r\n forAllChangedKeys(cb) {\r\n // Check all keys with listeners on them.\r\n for (const key of Object.keys(this.listeners)) {\r\n // Get value from localStorage.\r\n const newValue = this.storage.getItem(key);\r\n const oldValue = this.localCache[key];\r\n // If local map value does not match, trigger listener with storage event.\r\n // Differentiate this simulated event from the real storage event.\r\n if (newValue !== oldValue) {\r\n cb(key, oldValue, newValue);\r\n }\r\n }\r\n }\r\n onStorageEvent(event, poll = false) {\r\n // Key would be null in some situations, like when localStorage is cleared\r\n if (!event.key) {\r\n this.forAllChangedKeys((key, _oldValue, newValue) => {\r\n this.notifyListeners(key, newValue);\r\n });\r\n return;\r\n }\r\n const key = event.key;\r\n // Check the mechanism how this event was detected.\r\n // The first event will dictate the mechanism to be used.\r\n if (poll) {\r\n // Environment detects storage changes via polling.\r\n // Remove storage event listener to prevent possible event duplication.\r\n this.detachListener();\r\n }\r\n else {\r\n // Environment detects storage changes via storage event listener.\r\n // Remove polling listener to prevent possible event duplication.\r\n this.stopPolling();\r\n }\r\n // Safari embedded iframe. Storage event will trigger with the delta\r\n // changes but no changes will be applied to the iframe localStorage.\r\n if (this.safariLocalStorageNotSynced) {\r\n // Get current iframe page value.\r\n const storedValue = this.storage.getItem(key);\r\n // Value not synchronized, synchronize manually.\r\n if (event.newValue !== storedValue) {\r\n if (event.newValue !== null) {\r\n // Value changed from current value.\r\n this.storage.setItem(key, event.newValue);\r\n }\r\n else {\r\n // Current value deleted.\r\n this.storage.removeItem(key);\r\n }\r\n }\r\n else if (this.localCache[key] === event.newValue && !poll) {\r\n // Already detected and processed, do not trigger listeners again.\r\n return;\r\n }\r\n }\r\n const triggerListeners = () => {\r\n // Keep local map up to date in case storage event is triggered before\r\n // poll.\r\n const storedValue = this.storage.getItem(key);\r\n if (!poll && this.localCache[key] === storedValue) {\r\n // Real storage event which has already been detected, do nothing.\r\n // This seems to trigger in some IE browsers for some reason.\r\n return;\r\n }\r\n this.notifyListeners(key, storedValue);\r\n };\r\n const storedValue = this.storage.getItem(key);\r\n if (_isIE10() &&\r\n storedValue !== event.newValue &&\r\n event.newValue !== event.oldValue) {\r\n // IE 10 has this weird bug where a storage event would trigger with the\r\n // correct key, oldValue and newValue but localStorage.getItem(key) does\r\n // not yield the updated value until a few milliseconds. This ensures\r\n // this recovers from that situation.\r\n setTimeout(triggerListeners, IE10_LOCAL_STORAGE_SYNC_DELAY);\r\n }\r\n else {\r\n triggerListeners();\r\n }\r\n }\r\n notifyListeners(key, value) {\r\n this.localCache[key] = value;\r\n const listeners = this.listeners[key];\r\n if (listeners) {\r\n for (const listener of Array.from(listeners)) {\r\n listener(value ? JSON.parse(value) : value);\r\n }\r\n }\r\n }\r\n startPolling() {\r\n this.stopPolling();\r\n this.pollTimer = setInterval(() => {\r\n this.forAllChangedKeys((key, oldValue, newValue) => {\r\n this.onStorageEvent(new StorageEvent('storage', {\r\n key,\r\n oldValue,\r\n newValue\r\n }), \r\n /* poll */ true);\r\n });\r\n }, _POLLING_INTERVAL_MS$1);\r\n }\r\n stopPolling() {\r\n if (this.pollTimer) {\r\n clearInterval(this.pollTimer);\r\n this.pollTimer = null;\r\n }\r\n }\r\n attachListener() {\r\n window.addEventListener('storage', this.boundEventHandler);\r\n }\r\n detachListener() {\r\n window.removeEventListener('storage', this.boundEventHandler);\r\n }\r\n _addListener(key, listener) {\r\n if (Object.keys(this.listeners).length === 0) {\r\n // Whether browser can detect storage event when it had already been pushed to the background.\r\n // This may happen in some mobile browsers. A localStorage change in the foreground window\r\n // will not be detected in the background window via the storage event.\r\n // This was detected in iOS 7.x mobile browsers\r\n if (this.fallbackToPolling) {\r\n this.startPolling();\r\n }\r\n else {\r\n this.attachListener();\r\n }\r\n }\r\n if (!this.listeners[key]) {\r\n this.listeners[key] = new Set();\r\n // Populate the cache to avoid spuriously triggering on first poll.\r\n this.localCache[key] = this.storage.getItem(key);\r\n }\r\n this.listeners[key].add(listener);\r\n }\r\n _removeListener(key, listener) {\r\n if (this.listeners[key]) {\r\n this.listeners[key].delete(listener);\r\n if (this.listeners[key].size === 0) {\r\n delete this.listeners[key];\r\n }\r\n }\r\n if (Object.keys(this.listeners).length === 0) {\r\n this.detachListener();\r\n this.stopPolling();\r\n }\r\n }\r\n // Update local cache on base operations:\r\n async _set(key, value) {\r\n await super._set(key, value);\r\n this.localCache[key] = JSON.stringify(value);\r\n }\r\n async _get(key) {\r\n const value = await super._get(key);\r\n this.localCache[key] = JSON.stringify(value);\r\n return value;\r\n }\r\n async _remove(key) {\r\n await super._remove(key);\r\n delete this.localCache[key];\r\n }\r\n}\r\nBrowserLocalPersistence.type = 'LOCAL';\r\n/**\r\n * An implementation of {@link Persistence} of type `LOCAL` using `localStorage`\r\n * for the underlying storage.\r\n *\r\n * @public\r\n */\r\nconst browserLocalPersistence = BrowserLocalPersistence;\n\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\nclass BrowserSessionPersistence extends BrowserPersistenceClass {\r\n constructor() {\r\n super(() => window.sessionStorage, \"SESSION\" /* PersistenceType.SESSION */);\r\n }\r\n _addListener(_key, _listener) {\r\n // Listeners are not supported for session storage since it cannot be shared across windows\r\n return;\r\n }\r\n _removeListener(_key, _listener) {\r\n // Listeners are not supported for session storage since it cannot be shared across windows\r\n return;\r\n }\r\n}\r\nBrowserSessionPersistence.type = 'SESSION';\r\n/**\r\n * An implementation of {@link Persistence} of `SESSION` using `sessionStorage`\r\n * for the underlying storage.\r\n *\r\n * @public\r\n */\r\nconst browserSessionPersistence = BrowserSessionPersistence;\n\n/**\r\n * @license\r\n * Copyright 2019 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\n/**\r\n * Shim for Promise.allSettled, note the slightly different format of `fulfilled` vs `status`.\r\n *\r\n * @param promises - Array of promises to wait on.\r\n */\r\nfunction _allSettled(promises) {\r\n return Promise.all(promises.map(async (promise) => {\r\n try {\r\n const value = await promise;\r\n return {\r\n fulfilled: true,\r\n value\r\n };\r\n }\r\n catch (reason) {\r\n return {\r\n fulfilled: false,\r\n reason\r\n };\r\n }\r\n }));\r\n}\n\n/**\r\n * @license\r\n * Copyright 2019 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\n/**\r\n * Interface class for receiving messages.\r\n *\r\n */\r\nclass Receiver {\r\n constructor(eventTarget) {\r\n this.eventTarget = eventTarget;\r\n this.handlersMap = {};\r\n this.boundEventHandler = this.handleEvent.bind(this);\r\n }\r\n /**\r\n * Obtain an instance of a Receiver for a given event target, if none exists it will be created.\r\n *\r\n * @param eventTarget - An event target (such as window or self) through which the underlying\r\n * messages will be received.\r\n */\r\n static _getInstance(eventTarget) {\r\n // The results are stored in an array since objects can't be keys for other\r\n // objects. In addition, setting a unique property on an event target as a\r\n // hash map key may not be allowed due to CORS restrictions.\r\n const existingInstance = this.receivers.find(receiver => receiver.isListeningto(eventTarget));\r\n if (existingInstance) {\r\n return existingInstance;\r\n }\r\n const newInstance = new Receiver(eventTarget);\r\n this.receivers.push(newInstance);\r\n return newInstance;\r\n }\r\n isListeningto(eventTarget) {\r\n return this.eventTarget === eventTarget;\r\n }\r\n /**\r\n * Fans out a MessageEvent to the appropriate listeners.\r\n *\r\n * @remarks\r\n * Sends an {@link Status.ACK} upon receipt and a {@link Status.DONE} once all handlers have\r\n * finished processing.\r\n *\r\n * @param event - The MessageEvent.\r\n *\r\n */\r\n async handleEvent(event) {\r\n const messageEvent = event;\r\n const { eventId, eventType, data } = messageEvent.data;\r\n const handlers = this.handlersMap[eventType];\r\n if (!(handlers === null || handlers === void 0 ? void 0 : handlers.size)) {\r\n return;\r\n }\r\n messageEvent.ports[0].postMessage({\r\n status: \"ack\" /* _Status.ACK */,\r\n eventId,\r\n eventType\r\n });\r\n const promises = Array.from(handlers).map(async (handler) => handler(messageEvent.origin, data));\r\n const response = await _allSettled(promises);\r\n messageEvent.ports[0].postMessage({\r\n status: \"done\" /* _Status.DONE */,\r\n eventId,\r\n eventType,\r\n response\r\n });\r\n }\r\n /**\r\n * Subscribe an event handler for a particular event.\r\n *\r\n * @param eventType - Event name to subscribe to.\r\n * @param eventHandler - The event handler which should receive the events.\r\n *\r\n */\r\n _subscribe(eventType, eventHandler) {\r\n if (Object.keys(this.handlersMap).length === 0) {\r\n this.eventTarget.addEventListener('message', this.boundEventHandler);\r\n }\r\n if (!this.handlersMap[eventType]) {\r\n this.handlersMap[eventType] = new Set();\r\n }\r\n this.handlersMap[eventType].add(eventHandler);\r\n }\r\n /**\r\n * Unsubscribe an event handler from a particular event.\r\n *\r\n * @param eventType - Event name to unsubscribe from.\r\n * @param eventHandler - Optinoal event handler, if none provided, unsubscribe all handlers on this event.\r\n *\r\n */\r\n _unsubscribe(eventType, eventHandler) {\r\n if (this.handlersMap[eventType] && eventHandler) {\r\n this.handlersMap[eventType].delete(eventHandler);\r\n }\r\n if (!eventHandler || this.handlersMap[eventType].size === 0) {\r\n delete this.handlersMap[eventType];\r\n }\r\n if (Object.keys(this.handlersMap).length === 0) {\r\n this.eventTarget.removeEventListener('message', this.boundEventHandler);\r\n }\r\n }\r\n}\r\nReceiver.receivers = [];\n\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\nfunction _generateEventId(prefix = '', digits = 10) {\r\n let random = '';\r\n for (let i = 0; i < digits; i++) {\r\n random += Math.floor(Math.random() * 10);\r\n }\r\n return prefix + random;\r\n}\n\n/**\r\n * @license\r\n * Copyright 2019 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\n/**\r\n * Interface for sending messages and waiting for a completion response.\r\n *\r\n */\r\nclass Sender {\r\n constructor(target) {\r\n this.target = target;\r\n this.handlers = new Set();\r\n }\r\n /**\r\n * Unsubscribe the handler and remove it from our tracking Set.\r\n *\r\n * @param handler - The handler to unsubscribe.\r\n */\r\n removeMessageHandler(handler) {\r\n if (handler.messageChannel) {\r\n handler.messageChannel.port1.removeEventListener('message', handler.onMessage);\r\n handler.messageChannel.port1.close();\r\n }\r\n this.handlers.delete(handler);\r\n }\r\n /**\r\n * Send a message to the Receiver located at {@link target}.\r\n *\r\n * @remarks\r\n * We'll first wait a bit for an ACK , if we get one we will wait significantly longer until the\r\n * receiver has had a chance to fully process the event.\r\n *\r\n * @param eventType - Type of event to send.\r\n * @param data - The payload of the event.\r\n * @param timeout - Timeout for waiting on an ACK from the receiver.\r\n *\r\n * @returns An array of settled promises from all the handlers that were listening on the receiver.\r\n */\r\n async _send(eventType, data, timeout = 50 /* _TimeoutDuration.ACK */) {\r\n const messageChannel = typeof MessageChannel !== 'undefined' ? new MessageChannel() : null;\r\n if (!messageChannel) {\r\n throw new Error(\"connection_unavailable\" /* _MessageError.CONNECTION_UNAVAILABLE */);\r\n }\r\n // Node timers and browser timers return fundamentally different types.\r\n // We don't actually care what the value is but TS won't accept unknown and\r\n // we can't cast properly in both environments.\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n let completionTimer;\r\n let handler;\r\n return new Promise((resolve, reject) => {\r\n const eventId = _generateEventId('', 20);\r\n messageChannel.port1.start();\r\n const ackTimer = setTimeout(() => {\r\n reject(new Error(\"unsupported_event\" /* _MessageError.UNSUPPORTED_EVENT */));\r\n }, timeout);\r\n handler = {\r\n messageChannel,\r\n onMessage(event) {\r\n const messageEvent = event;\r\n if (messageEvent.data.eventId !== eventId) {\r\n return;\r\n }\r\n switch (messageEvent.data.status) {\r\n case \"ack\" /* _Status.ACK */:\r\n // The receiver should ACK first.\r\n clearTimeout(ackTimer);\r\n completionTimer = setTimeout(() => {\r\n reject(new Error(\"timeout\" /* _MessageError.TIMEOUT */));\r\n }, 3000 /* _TimeoutDuration.COMPLETION */);\r\n break;\r\n case \"done\" /* _Status.DONE */:\r\n // Once the receiver's handlers are finished we will get the results.\r\n clearTimeout(completionTimer);\r\n resolve(messageEvent.data.response);\r\n break;\r\n default:\r\n clearTimeout(ackTimer);\r\n clearTimeout(completionTimer);\r\n reject(new Error(\"invalid_response\" /* _MessageError.INVALID_RESPONSE */));\r\n break;\r\n }\r\n }\r\n };\r\n this.handlers.add(handler);\r\n messageChannel.port1.addEventListener('message', handler.onMessage);\r\n this.target.postMessage({\r\n eventType,\r\n eventId,\r\n data\r\n }, [messageChannel.port2]);\r\n }).finally(() => {\r\n if (handler) {\r\n this.removeMessageHandler(handler);\r\n }\r\n });\r\n }\r\n}\n\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\n/**\r\n * Lazy accessor for window, since the compat layer won't tree shake this out,\r\n * we need to make sure not to mess with window unless we have to\r\n */\r\nfunction _window() {\r\n return window;\r\n}\r\nfunction _setWindowLocation(url) {\r\n _window().location.href = url;\r\n}\n\n/**\r\n * @license\r\n * Copyright 2020 Google LLC.\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\nfunction _isWorker() {\r\n return (typeof _window()['WorkerGlobalScope'] !== 'undefined' &&\r\n typeof _window()['importScripts'] === 'function');\r\n}\r\nasync function _getActiveServiceWorker() {\r\n if (!(navigator === null || navigator === void 0 ? void 0 : navigator.serviceWorker)) {\r\n return null;\r\n }\r\n try {\r\n const registration = await navigator.serviceWorker.ready;\r\n return registration.active;\r\n }\r\n catch (_a) {\r\n return null;\r\n }\r\n}\r\nfunction _getServiceWorkerController() {\r\n var _a;\r\n return ((_a = navigator === null || navigator === void 0 ? void 0 : navigator.serviceWorker) === null || _a === void 0 ? void 0 : _a.controller) || null;\r\n}\r\nfunction _getWorkerGlobalScope() {\r\n return _isWorker() ? self : null;\r\n}\n\n/**\r\n * @license\r\n * Copyright 2019 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\nconst DB_NAME = 'firebaseLocalStorageDb';\r\nconst DB_VERSION = 1;\r\nconst DB_OBJECTSTORE_NAME = 'firebaseLocalStorage';\r\nconst DB_DATA_KEYPATH = 'fbase_key';\r\n/**\r\n * Promise wrapper for IDBRequest\r\n *\r\n * Unfortunately we can't cleanly extend Promise since promises are not callable in ES6\r\n *\r\n */\r\nclass DBPromise {\r\n constructor(request) {\r\n this.request = request;\r\n }\r\n toPromise() {\r\n return new Promise((resolve, reject) => {\r\n this.request.addEventListener('success', () => {\r\n resolve(this.request.result);\r\n });\r\n this.request.addEventListener('error', () => {\r\n reject(this.request.error);\r\n });\r\n });\r\n }\r\n}\r\nfunction getObjectStore(db, isReadWrite) {\r\n return db\r\n .transaction([DB_OBJECTSTORE_NAME], isReadWrite ? 'readwrite' : 'readonly')\r\n .objectStore(DB_OBJECTSTORE_NAME);\r\n}\r\nfunction _deleteDatabase() {\r\n const request = indexedDB.deleteDatabase(DB_NAME);\r\n return new DBPromise(request).toPromise();\r\n}\r\nfunction _openDatabase() {\r\n const request = indexedDB.open(DB_NAME, DB_VERSION);\r\n return new Promise((resolve, reject) => {\r\n request.addEventListener('error', () => {\r\n reject(request.error);\r\n });\r\n request.addEventListener('upgradeneeded', () => {\r\n const db = request.result;\r\n try {\r\n db.createObjectStore(DB_OBJECTSTORE_NAME, { keyPath: DB_DATA_KEYPATH });\r\n }\r\n catch (e) {\r\n reject(e);\r\n }\r\n });\r\n request.addEventListener('success', async () => {\r\n const db = request.result;\r\n // Strange bug that occurs in Firefox when multiple tabs are opened at the\r\n // same time. The only way to recover seems to be deleting the database\r\n // and re-initializing it.\r\n // https://github.com/firebase/firebase-js-sdk/issues/634\r\n if (!db.objectStoreNames.contains(DB_OBJECTSTORE_NAME)) {\r\n // Need to close the database or else you get a `blocked` event\r\n db.close();\r\n await _deleteDatabase();\r\n resolve(await _openDatabase());\r\n }\r\n else {\r\n resolve(db);\r\n }\r\n });\r\n });\r\n}\r\nasync function _putObject(db, key, value) {\r\n const request = getObjectStore(db, true).put({\r\n [DB_DATA_KEYPATH]: key,\r\n value\r\n });\r\n return new DBPromise(request).toPromise();\r\n}\r\nasync function getObject(db, key) {\r\n const request = getObjectStore(db, false).get(key);\r\n const data = await new DBPromise(request).toPromise();\r\n return data === undefined ? null : data.value;\r\n}\r\nfunction _deleteObject(db, key) {\r\n const request = getObjectStore(db, true).delete(key);\r\n return new DBPromise(request).toPromise();\r\n}\r\nconst _POLLING_INTERVAL_MS = 800;\r\nconst _TRANSACTION_RETRY_COUNT = 3;\r\nclass IndexedDBLocalPersistence {\r\n constructor() {\r\n this.type = \"LOCAL\" /* PersistenceType.LOCAL */;\r\n this._shouldAllowMigration = true;\r\n this.listeners = {};\r\n this.localCache = {};\r\n // setTimeout return value is platform specific\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n this.pollTimer = null;\r\n this.pendingWrites = 0;\r\n this.receiver = null;\r\n this.sender = null;\r\n this.serviceWorkerReceiverAvailable = false;\r\n this.activeServiceWorker = null;\r\n // Fire & forget the service worker registration as it may never resolve\r\n this._workerInitializationPromise =\r\n this.initializeServiceWorkerMessaging().then(() => { }, () => { });\r\n }\r\n async _openDb() {\r\n if (this.db) {\r\n return this.db;\r\n }\r\n this.db = await _openDatabase();\r\n return this.db;\r\n }\r\n async _withRetries(op) {\r\n let numAttempts = 0;\r\n while (true) {\r\n try {\r\n const db = await this._openDb();\r\n return await op(db);\r\n }\r\n catch (e) {\r\n if (numAttempts++ > _TRANSACTION_RETRY_COUNT) {\r\n throw e;\r\n }\r\n if (this.db) {\r\n this.db.close();\r\n this.db = undefined;\r\n }\r\n // TODO: consider adding exponential backoff\r\n }\r\n }\r\n }\r\n /**\r\n * IndexedDB events do not propagate from the main window to the worker context. We rely on a\r\n * postMessage interface to send these events to the worker ourselves.\r\n */\r\n async initializeServiceWorkerMessaging() {\r\n return _isWorker() ? this.initializeReceiver() : this.initializeSender();\r\n }\r\n /**\r\n * As the worker we should listen to events from the main window.\r\n */\r\n async initializeReceiver() {\r\n this.receiver = Receiver._getInstance(_getWorkerGlobalScope());\r\n // Refresh from persistence if we receive a KeyChanged message.\r\n this.receiver._subscribe(\"keyChanged\" /* _EventType.KEY_CHANGED */, async (_origin, data) => {\r\n const keys = await this._poll();\r\n return {\r\n keyProcessed: keys.includes(data.key)\r\n };\r\n });\r\n // Let the sender know that we are listening so they give us more timeout.\r\n this.receiver._subscribe(\"ping\" /* _EventType.PING */, async (_origin, _data) => {\r\n return [\"keyChanged\" /* _EventType.KEY_CHANGED */];\r\n });\r\n }\r\n /**\r\n * As the main window, we should let the worker know when keys change (set and remove).\r\n *\r\n * @remarks\r\n * {@link https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerContainer/ready | ServiceWorkerContainer.ready}\r\n * may not resolve.\r\n */\r\n async initializeSender() {\r\n var _a, _b;\r\n // Check to see if there's an active service worker.\r\n this.activeServiceWorker = await _getActiveServiceWorker();\r\n if (!this.activeServiceWorker) {\r\n return;\r\n }\r\n this.sender = new Sender(this.activeServiceWorker);\r\n // Ping the service worker to check what events they can handle.\r\n const results = await this.sender._send(\"ping\" /* _EventType.PING */, {}, 800 /* _TimeoutDuration.LONG_ACK */);\r\n if (!results) {\r\n return;\r\n }\r\n if (((_a = results[0]) === null || _a === void 0 ? void 0 : _a.fulfilled) &&\r\n ((_b = results[0]) === null || _b === void 0 ? void 0 : _b.value.includes(\"keyChanged\" /* _EventType.KEY_CHANGED */))) {\r\n this.serviceWorkerReceiverAvailable = true;\r\n }\r\n }\r\n /**\r\n * Let the worker know about a changed key, the exact key doesn't technically matter since the\r\n * worker will just trigger a full sync anyway.\r\n *\r\n * @remarks\r\n * For now, we only support one service worker per page.\r\n *\r\n * @param key - Storage key which changed.\r\n */\r\n async notifyServiceWorker(key) {\r\n if (!this.sender ||\r\n !this.activeServiceWorker ||\r\n _getServiceWorkerController() !== this.activeServiceWorker) {\r\n return;\r\n }\r\n try {\r\n await this.sender._send(\"keyChanged\" /* _EventType.KEY_CHANGED */, { key }, \r\n // Use long timeout if receiver has previously responded to a ping from us.\r\n this.serviceWorkerReceiverAvailable\r\n ? 800 /* _TimeoutDuration.LONG_ACK */\r\n : 50 /* _TimeoutDuration.ACK */);\r\n }\r\n catch (_a) {\r\n // This is a best effort approach. Ignore errors.\r\n }\r\n }\r\n async _isAvailable() {\r\n try {\r\n if (!indexedDB) {\r\n return false;\r\n }\r\n const db = await _openDatabase();\r\n await _putObject(db, STORAGE_AVAILABLE_KEY, '1');\r\n await _deleteObject(db, STORAGE_AVAILABLE_KEY);\r\n return true;\r\n }\r\n catch (_a) { }\r\n return false;\r\n }\r\n async _withPendingWrite(write) {\r\n this.pendingWrites++;\r\n try {\r\n await write();\r\n }\r\n finally {\r\n this.pendingWrites--;\r\n }\r\n }\r\n async _set(key, value) {\r\n return this._withPendingWrite(async () => {\r\n await this._withRetries((db) => _putObject(db, key, value));\r\n this.localCache[key] = value;\r\n return this.notifyServiceWorker(key);\r\n });\r\n }\r\n async _get(key) {\r\n const obj = (await this._withRetries((db) => getObject(db, key)));\r\n this.localCache[key] = obj;\r\n return obj;\r\n }\r\n async _remove(key) {\r\n return this._withPendingWrite(async () => {\r\n await this._withRetries((db) => _deleteObject(db, key));\r\n delete this.localCache[key];\r\n return this.notifyServiceWorker(key);\r\n });\r\n }\r\n async _poll() {\r\n // TODO: check if we need to fallback if getAll is not supported\r\n const result = await this._withRetries((db) => {\r\n const getAllRequest = getObjectStore(db, false).getAll();\r\n return new DBPromise(getAllRequest).toPromise();\r\n });\r\n if (!result) {\r\n return [];\r\n }\r\n // If we have pending writes in progress abort, we'll get picked up on the next poll\r\n if (this.pendingWrites !== 0) {\r\n return [];\r\n }\r\n const keys = [];\r\n const keysInResult = new Set();\r\n if (result.length !== 0) {\r\n for (const { fbase_key: key, value } of result) {\r\n keysInResult.add(key);\r\n if (JSON.stringify(this.localCache[key]) !== JSON.stringify(value)) {\r\n this.notifyListeners(key, value);\r\n keys.push(key);\r\n }\r\n }\r\n }\r\n for (const localKey of Object.keys(this.localCache)) {\r\n if (this.localCache[localKey] && !keysInResult.has(localKey)) {\r\n // Deleted\r\n this.notifyListeners(localKey, null);\r\n keys.push(localKey);\r\n }\r\n }\r\n return keys;\r\n }\r\n notifyListeners(key, newValue) {\r\n this.localCache[key] = newValue;\r\n const listeners = this.listeners[key];\r\n if (listeners) {\r\n for (const listener of Array.from(listeners)) {\r\n listener(newValue);\r\n }\r\n }\r\n }\r\n startPolling() {\r\n this.stopPolling();\r\n this.pollTimer = setInterval(async () => this._poll(), _POLLING_INTERVAL_MS);\r\n }\r\n stopPolling() {\r\n if (this.pollTimer) {\r\n clearInterval(this.pollTimer);\r\n this.pollTimer = null;\r\n }\r\n }\r\n _addListener(key, listener) {\r\n if (Object.keys(this.listeners).length === 0) {\r\n this.startPolling();\r\n }\r\n if (!this.listeners[key]) {\r\n this.listeners[key] = new Set();\r\n // Populate the cache to avoid spuriously triggering on first poll.\r\n void this._get(key); // This can happen in the background async and we can return immediately.\r\n }\r\n this.listeners[key].add(listener);\r\n }\r\n _removeListener(key, listener) {\r\n if (this.listeners[key]) {\r\n this.listeners[key].delete(listener);\r\n if (this.listeners[key].size === 0) {\r\n delete this.listeners[key];\r\n }\r\n }\r\n if (Object.keys(this.listeners).length === 0) {\r\n this.stopPolling();\r\n }\r\n }\r\n}\r\nIndexedDBLocalPersistence.type = 'LOCAL';\r\n/**\r\n * An implementation of {@link Persistence} of type `LOCAL` using `indexedDB`\r\n * for the underlying storage.\r\n *\r\n * @public\r\n */\r\nconst indexedDBLocalPersistence = IndexedDBLocalPersistence;\n\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\nfunction startSignInPhoneMfa(auth, request) {\r\n return _performApiRequest(auth, \"POST\" /* HttpMethod.POST */, \"/v2/accounts/mfaSignIn:start\" /* Endpoint.START_MFA_SIGN_IN */, _addTidIfNecessary(auth, request));\r\n}\r\nfunction finalizeSignInPhoneMfa(auth, request) {\r\n return _performApiRequest(auth, \"POST\" /* HttpMethod.POST */, \"/v2/accounts/mfaSignIn:finalize\" /* Endpoint.FINALIZE_MFA_SIGN_IN */, _addTidIfNecessary(auth, request));\r\n}\r\nfunction finalizeSignInTotpMfa(auth, request) {\r\n return _performApiRequest(auth, \"POST\" /* HttpMethod.POST */, \"/v2/accounts/mfaSignIn:finalize\" /* Endpoint.FINALIZE_MFA_SIGN_IN */, _addTidIfNecessary(auth, request));\r\n}\n\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\nconst _SOLVE_TIME_MS = 500;\r\nconst _EXPIRATION_TIME_MS = 60000;\r\nconst _WIDGET_ID_START = 1000000000000;\r\nclass MockReCaptcha {\r\n constructor(auth) {\r\n this.auth = auth;\r\n this.counter = _WIDGET_ID_START;\r\n this._widgets = new Map();\r\n }\r\n render(container, parameters) {\r\n const id = this.counter;\r\n this._widgets.set(id, new MockWidget(container, this.auth.name, parameters || {}));\r\n this.counter++;\r\n return id;\r\n }\r\n reset(optWidgetId) {\r\n var _a;\r\n const id = optWidgetId || _WIDGET_ID_START;\r\n void ((_a = this._widgets.get(id)) === null || _a === void 0 ? void 0 : _a.delete());\r\n this._widgets.delete(id);\r\n }\r\n getResponse(optWidgetId) {\r\n var _a;\r\n const id = optWidgetId || _WIDGET_ID_START;\r\n return ((_a = this._widgets.get(id)) === null || _a === void 0 ? void 0 : _a.getResponse()) || '';\r\n }\r\n async execute(optWidgetId) {\r\n var _a;\r\n const id = optWidgetId || _WIDGET_ID_START;\r\n void ((_a = this._widgets.get(id)) === null || _a === void 0 ? void 0 : _a.execute());\r\n return '';\r\n }\r\n}\r\nclass MockWidget {\r\n constructor(containerOrId, appName, params) {\r\n this.params = params;\r\n this.timerId = null;\r\n this.deleted = false;\r\n this.responseToken = null;\r\n this.clickHandler = () => {\r\n this.execute();\r\n };\r\n const container = typeof containerOrId === 'string'\r\n ? document.getElementById(containerOrId)\r\n : containerOrId;\r\n _assert(container, \"argument-error\" /* AuthErrorCode.ARGUMENT_ERROR */, { appName });\r\n this.container = container;\r\n this.isVisible = this.params.size !== 'invisible';\r\n if (this.isVisible) {\r\n this.execute();\r\n }\r\n else {\r\n this.container.addEventListener('click', this.clickHandler);\r\n }\r\n }\r\n getResponse() {\r\n this.checkIfDeleted();\r\n return this.responseToken;\r\n }\r\n delete() {\r\n this.checkIfDeleted();\r\n this.deleted = true;\r\n if (this.timerId) {\r\n clearTimeout(this.timerId);\r\n this.timerId = null;\r\n }\r\n this.container.removeEventListener('click', this.clickHandler);\r\n }\r\n execute() {\r\n this.checkIfDeleted();\r\n if (this.timerId) {\r\n return;\r\n }\r\n this.timerId = window.setTimeout(() => {\r\n this.responseToken = generateRandomAlphaNumericString(50);\r\n const { callback, 'expired-callback': expiredCallback } = this.params;\r\n if (callback) {\r\n try {\r\n callback(this.responseToken);\r\n }\r\n catch (e) { }\r\n }\r\n this.timerId = window.setTimeout(() => {\r\n this.timerId = null;\r\n this.responseToken = null;\r\n if (expiredCallback) {\r\n try {\r\n expiredCallback();\r\n }\r\n catch (e) { }\r\n }\r\n if (this.isVisible) {\r\n this.execute();\r\n }\r\n }, _EXPIRATION_TIME_MS);\r\n }, _SOLVE_TIME_MS);\r\n }\r\n checkIfDeleted() {\r\n if (this.deleted) {\r\n throw new Error('reCAPTCHA mock was already deleted!');\r\n }\r\n }\r\n}\r\nfunction generateRandomAlphaNumericString(len) {\r\n const chars = [];\r\n const allowedChars = '1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';\r\n for (let i = 0; i < len; i++) {\r\n chars.push(allowedChars.charAt(Math.floor(Math.random() * allowedChars.length)));\r\n }\r\n return chars.join('');\r\n}\n\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\n// ReCaptcha will load using the same callback, so the callback function needs\r\n// to be kept around\r\nconst _JSLOAD_CALLBACK = _generateCallbackName('rcb');\r\nconst NETWORK_TIMEOUT_DELAY = new Delay(30000, 60000);\r\nconst RECAPTCHA_BASE = 'https://www.google.com/recaptcha/api.js?';\r\n/**\r\n * Loader for the GReCaptcha library. There should only ever be one of this.\r\n */\r\nclass ReCaptchaLoaderImpl {\r\n constructor() {\r\n var _a;\r\n this.hostLanguage = '';\r\n this.counter = 0;\r\n /**\r\n * Check for `render()` method. `window.grecaptcha` will exist if the Enterprise\r\n * version of the ReCAPTCHA script was loaded by someone else (e.g. App Check) but\r\n * `window.grecaptcha.render()` will not. Another load will add it.\r\n */\r\n this.librarySeparatelyLoaded = !!((_a = _window().grecaptcha) === null || _a === void 0 ? void 0 : _a.render);\r\n }\r\n load(auth, hl = '') {\r\n _assert(isHostLanguageValid(hl), auth, \"argument-error\" /* AuthErrorCode.ARGUMENT_ERROR */);\r\n if (this.shouldResolveImmediately(hl) && isV2(_window().grecaptcha)) {\r\n return Promise.resolve(_window().grecaptcha);\r\n }\r\n return new Promise((resolve, reject) => {\r\n const networkTimeout = _window().setTimeout(() => {\r\n reject(_createError(auth, \"network-request-failed\" /* AuthErrorCode.NETWORK_REQUEST_FAILED */));\r\n }, NETWORK_TIMEOUT_DELAY.get());\r\n _window()[_JSLOAD_CALLBACK] = () => {\r\n _window().clearTimeout(networkTimeout);\r\n delete _window()[_JSLOAD_CALLBACK];\r\n const recaptcha = _window().grecaptcha;\r\n if (!recaptcha || !isV2(recaptcha)) {\r\n reject(_createError(auth, \"internal-error\" /* AuthErrorCode.INTERNAL_ERROR */));\r\n return;\r\n }\r\n // Wrap the greptcha render function so that we know if the developer has\r\n // called it separately\r\n const render = recaptcha.render;\r\n recaptcha.render = (container, params) => {\r\n const widgetId = render(container, params);\r\n this.counter++;\r\n return widgetId;\r\n };\r\n this.hostLanguage = hl;\r\n resolve(recaptcha);\r\n };\r\n const url = `${RECAPTCHA_BASE}?${querystring({\r\n onload: _JSLOAD_CALLBACK,\r\n render: 'explicit',\r\n hl\r\n })}`;\r\n _loadJS(url).catch(() => {\r\n clearTimeout(networkTimeout);\r\n reject(_createError(auth, \"internal-error\" /* AuthErrorCode.INTERNAL_ERROR */));\r\n });\r\n });\r\n }\r\n clearedOneInstance() {\r\n this.counter--;\r\n }\r\n shouldResolveImmediately(hl) {\r\n var _a;\r\n // We can resolve immediately if:\r\n // • grecaptcha is already defined AND (\r\n // 1. the requested language codes are the same OR\r\n // 2. there exists already a ReCaptcha on the page\r\n // 3. the library was already loaded by the app\r\n // In cases (2) and (3), we _can't_ reload as it would break the recaptchas\r\n // that are already in the page\r\n return (!!((_a = _window().grecaptcha) === null || _a === void 0 ? void 0 : _a.render) &&\r\n (hl === this.hostLanguage ||\r\n this.counter > 0 ||\r\n this.librarySeparatelyLoaded));\r\n }\r\n}\r\nfunction isHostLanguageValid(hl) {\r\n return hl.length <= 6 && /^\\s*[a-zA-Z0-9\\-]*\\s*$/.test(hl);\r\n}\r\nclass MockReCaptchaLoaderImpl {\r\n async load(auth) {\r\n return new MockReCaptcha(auth);\r\n }\r\n clearedOneInstance() { }\r\n}\n\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\nconst RECAPTCHA_VERIFIER_TYPE = 'recaptcha';\r\nconst DEFAULT_PARAMS = {\r\n theme: 'light',\r\n type: 'image'\r\n};\r\n/**\r\n * An {@link https://www.google.com/recaptcha/ | reCAPTCHA}-based application verifier.\r\n *\r\n * @remarks\r\n * `RecaptchaVerifier` does not work in a Node.js environment.\r\n *\r\n * @public\r\n */\r\nclass RecaptchaVerifier {\r\n /**\r\n * @param authExtern - The corresponding Firebase {@link Auth} instance.\r\n *\r\n * @param containerOrId - The reCAPTCHA container parameter.\r\n *\r\n * @remarks\r\n * This has different meaning depending on whether the reCAPTCHA is hidden or visible. For a\r\n * visible reCAPTCHA the container must be empty. If a string is used, it has to correspond to\r\n * an element ID. The corresponding element must also must be in the DOM at the time of\r\n * initialization.\r\n *\r\n * @param parameters - The optional reCAPTCHA parameters.\r\n *\r\n * @remarks\r\n * Check the reCAPTCHA docs for a comprehensive list. All parameters are accepted except for\r\n * the sitekey. Firebase Auth backend provisions a reCAPTCHA for each project and will\r\n * configure this upon rendering. For an invisible reCAPTCHA, a size key must have the value\r\n * 'invisible'.\r\n */\r\n constructor(authExtern, containerOrId, parameters = Object.assign({}, DEFAULT_PARAMS)) {\r\n this.parameters = parameters;\r\n /**\r\n * The application verifier type.\r\n *\r\n * @remarks\r\n * For a reCAPTCHA verifier, this is 'recaptcha'.\r\n */\r\n this.type = RECAPTCHA_VERIFIER_TYPE;\r\n this.destroyed = false;\r\n this.widgetId = null;\r\n this.tokenChangeListeners = new Set();\r\n this.renderPromise = null;\r\n this.recaptcha = null;\r\n this.auth = _castAuth(authExtern);\r\n this.isInvisible = this.parameters.size === 'invisible';\r\n _assert(typeof document !== 'undefined', this.auth, \"operation-not-supported-in-this-environment\" /* AuthErrorCode.OPERATION_NOT_SUPPORTED */);\r\n const container = typeof containerOrId === 'string'\r\n ? document.getElementById(containerOrId)\r\n : containerOrId;\r\n _assert(container, this.auth, \"argument-error\" /* AuthErrorCode.ARGUMENT_ERROR */);\r\n this.container = container;\r\n this.parameters.callback = this.makeTokenCallback(this.parameters.callback);\r\n this._recaptchaLoader = this.auth.settings.appVerificationDisabledForTesting\r\n ? new MockReCaptchaLoaderImpl()\r\n : new ReCaptchaLoaderImpl();\r\n this.validateStartingState();\r\n // TODO: Figure out if sdk version is needed\r\n }\r\n /**\r\n * Waits for the user to solve the reCAPTCHA and resolves with the reCAPTCHA token.\r\n *\r\n * @returns A Promise for the reCAPTCHA token.\r\n */\r\n async verify() {\r\n this.assertNotDestroyed();\r\n const id = await this.render();\r\n const recaptcha = this.getAssertedRecaptcha();\r\n const response = recaptcha.getResponse(id);\r\n if (response) {\r\n return response;\r\n }\r\n return new Promise(resolve => {\r\n const tokenChange = (token) => {\r\n if (!token) {\r\n return; // Ignore token expirations.\r\n }\r\n this.tokenChangeListeners.delete(tokenChange);\r\n resolve(token);\r\n };\r\n this.tokenChangeListeners.add(tokenChange);\r\n if (this.isInvisible) {\r\n recaptcha.execute(id);\r\n }\r\n });\r\n }\r\n /**\r\n * Renders the reCAPTCHA widget on the page.\r\n *\r\n * @returns A Promise that resolves with the reCAPTCHA widget ID.\r\n */\r\n render() {\r\n try {\r\n this.assertNotDestroyed();\r\n }\r\n catch (e) {\r\n // This method returns a promise. Since it's not async (we want to return the\r\n // _same_ promise if rendering is still occurring), the API surface should\r\n // reject with the error rather than just throw\r\n return Promise.reject(e);\r\n }\r\n if (this.renderPromise) {\r\n return this.renderPromise;\r\n }\r\n this.renderPromise = this.makeRenderPromise().catch(e => {\r\n this.renderPromise = null;\r\n throw e;\r\n });\r\n return this.renderPromise;\r\n }\r\n /** @internal */\r\n _reset() {\r\n this.assertNotDestroyed();\r\n if (this.widgetId !== null) {\r\n this.getAssertedRecaptcha().reset(this.widgetId);\r\n }\r\n }\r\n /**\r\n * Clears the reCAPTCHA widget from the page and destroys the instance.\r\n */\r\n clear() {\r\n this.assertNotDestroyed();\r\n this.destroyed = true;\r\n this._recaptchaLoader.clearedOneInstance();\r\n if (!this.isInvisible) {\r\n this.container.childNodes.forEach(node => {\r\n this.container.removeChild(node);\r\n });\r\n }\r\n }\r\n validateStartingState() {\r\n _assert(!this.parameters.sitekey, this.auth, \"argument-error\" /* AuthErrorCode.ARGUMENT_ERROR */);\r\n _assert(this.isInvisible || !this.container.hasChildNodes(), this.auth, \"argument-error\" /* AuthErrorCode.ARGUMENT_ERROR */);\r\n _assert(typeof document !== 'undefined', this.auth, \"operation-not-supported-in-this-environment\" /* AuthErrorCode.OPERATION_NOT_SUPPORTED */);\r\n }\r\n makeTokenCallback(existing) {\r\n return token => {\r\n this.tokenChangeListeners.forEach(listener => listener(token));\r\n if (typeof existing === 'function') {\r\n existing(token);\r\n }\r\n else if (typeof existing === 'string') {\r\n const globalFunc = _window()[existing];\r\n if (typeof globalFunc === 'function') {\r\n globalFunc(token);\r\n }\r\n }\r\n };\r\n }\r\n assertNotDestroyed() {\r\n _assert(!this.destroyed, this.auth, \"internal-error\" /* AuthErrorCode.INTERNAL_ERROR */);\r\n }\r\n async makeRenderPromise() {\r\n await this.init();\r\n if (!this.widgetId) {\r\n let container = this.container;\r\n if (!this.isInvisible) {\r\n const guaranteedEmpty = document.createElement('div');\r\n container.appendChild(guaranteedEmpty);\r\n container = guaranteedEmpty;\r\n }\r\n this.widgetId = this.getAssertedRecaptcha().render(container, this.parameters);\r\n }\r\n return this.widgetId;\r\n }\r\n async init() {\r\n _assert(_isHttpOrHttps() && !_isWorker(), this.auth, \"internal-error\" /* AuthErrorCode.INTERNAL_ERROR */);\r\n await domReady();\r\n this.recaptcha = await this._recaptchaLoader.load(this.auth, this.auth.languageCode || undefined);\r\n const siteKey = await getRecaptchaParams(this.auth);\r\n _assert(siteKey, this.auth, \"internal-error\" /* AuthErrorCode.INTERNAL_ERROR */);\r\n this.parameters.sitekey = siteKey;\r\n }\r\n getAssertedRecaptcha() {\r\n _assert(this.recaptcha, this.auth, \"internal-error\" /* AuthErrorCode.INTERNAL_ERROR */);\r\n return this.recaptcha;\r\n }\r\n}\r\nfunction domReady() {\r\n let resolver = null;\r\n return new Promise(resolve => {\r\n if (document.readyState === 'complete') {\r\n resolve();\r\n return;\r\n }\r\n // Document not ready, wait for load before resolving.\r\n // Save resolver, so we can remove listener in case it was externally\r\n // cancelled.\r\n resolver = () => resolve();\r\n window.addEventListener('load', resolver);\r\n }).catch(e => {\r\n if (resolver) {\r\n window.removeEventListener('load', resolver);\r\n }\r\n throw e;\r\n });\r\n}\n\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\nclass ConfirmationResultImpl {\r\n constructor(verificationId, onConfirmation) {\r\n this.verificationId = verificationId;\r\n this.onConfirmation = onConfirmation;\r\n }\r\n confirm(verificationCode) {\r\n const authCredential = PhoneAuthCredential._fromVerification(this.verificationId, verificationCode);\r\n return this.onConfirmation(authCredential);\r\n }\r\n}\r\n/**\r\n * Asynchronously signs in using a phone number.\r\n *\r\n * @remarks\r\n * This method sends a code via SMS to the given\r\n * phone number, and returns a {@link ConfirmationResult}. After the user\r\n * provides the code sent to their phone, call {@link ConfirmationResult.confirm}\r\n * with the code to sign the user in.\r\n *\r\n * For abuse prevention, this method also requires a {@link ApplicationVerifier}.\r\n * This SDK includes a reCAPTCHA-based implementation, {@link RecaptchaVerifier}.\r\n * This function can work on other platforms that do not support the\r\n * {@link RecaptchaVerifier} (like React Native), but you need to use a\r\n * third-party {@link ApplicationVerifier} implementation.\r\n *\r\n * This method does not work in a Node.js environment.\r\n *\r\n * @example\r\n * ```javascript\r\n * // 'recaptcha-container' is the ID of an element in the DOM.\r\n * const applicationVerifier = new firebase.auth.RecaptchaVerifier('recaptcha-container');\r\n * const confirmationResult = await signInWithPhoneNumber(auth, phoneNumber, applicationVerifier);\r\n * // Obtain a verificationCode from the user.\r\n * const credential = await confirmationResult.confirm(verificationCode);\r\n * ```\r\n *\r\n * @param auth - The {@link Auth} instance.\r\n * @param phoneNumber - The user's phone number in E.164 format (e.g. +16505550101).\r\n * @param appVerifier - The {@link ApplicationVerifier}.\r\n *\r\n * @public\r\n */\r\nasync function signInWithPhoneNumber(auth, phoneNumber, appVerifier) {\r\n const authInternal = _castAuth(auth);\r\n const verificationId = await _verifyPhoneNumber(authInternal, phoneNumber, getModularInstance(appVerifier));\r\n return new ConfirmationResultImpl(verificationId, cred => signInWithCredential(authInternal, cred));\r\n}\r\n/**\r\n * Links the user account with the given phone number.\r\n *\r\n * @remarks\r\n * This method does not work in a Node.js environment.\r\n *\r\n * @param user - The user.\r\n * @param phoneNumber - The user's phone number in E.164 format (e.g. +16505550101).\r\n * @param appVerifier - The {@link ApplicationVerifier}.\r\n *\r\n * @public\r\n */\r\nasync function linkWithPhoneNumber(user, phoneNumber, appVerifier) {\r\n const userInternal = getModularInstance(user);\r\n await _assertLinkedStatus(false, userInternal, \"phone\" /* ProviderId.PHONE */);\r\n const verificationId = await _verifyPhoneNumber(userInternal.auth, phoneNumber, getModularInstance(appVerifier));\r\n return new ConfirmationResultImpl(verificationId, cred => linkWithCredential(userInternal, cred));\r\n}\r\n/**\r\n * Re-authenticates a user using a fresh phone credential.\r\n *\r\n * @remarks\r\n * Use before operations such as {@link updatePassword} that require tokens from recent sign-in attempts.\r\n *\r\n * This method does not work in a Node.js environment.\r\n *\r\n * @param user - The user.\r\n * @param phoneNumber - The user's phone number in E.164 format (e.g. +16505550101).\r\n * @param appVerifier - The {@link ApplicationVerifier}.\r\n *\r\n * @public\r\n */\r\nasync function reauthenticateWithPhoneNumber(user, phoneNumber, appVerifier) {\r\n const userInternal = getModularInstance(user);\r\n const verificationId = await _verifyPhoneNumber(userInternal.auth, phoneNumber, getModularInstance(appVerifier));\r\n return new ConfirmationResultImpl(verificationId, cred => reauthenticateWithCredential(userInternal, cred));\r\n}\r\n/**\r\n * Returns a verification ID to be used in conjunction with the SMS code that is sent.\r\n *\r\n */\r\nasync function _verifyPhoneNumber(auth, options, verifier) {\r\n var _a;\r\n const recaptchaToken = await verifier.verify();\r\n try {\r\n _assert(typeof recaptchaToken === 'string', auth, \"argument-error\" /* AuthErrorCode.ARGUMENT_ERROR */);\r\n _assert(verifier.type === RECAPTCHA_VERIFIER_TYPE, auth, \"argument-error\" /* AuthErrorCode.ARGUMENT_ERROR */);\r\n let phoneInfoOptions;\r\n if (typeof options === 'string') {\r\n phoneInfoOptions = {\r\n phoneNumber: options\r\n };\r\n }\r\n else {\r\n phoneInfoOptions = options;\r\n }\r\n if ('session' in phoneInfoOptions) {\r\n const session = phoneInfoOptions.session;\r\n if ('phoneNumber' in phoneInfoOptions) {\r\n _assert(session.type === \"enroll\" /* MultiFactorSessionType.ENROLL */, auth, \"internal-error\" /* AuthErrorCode.INTERNAL_ERROR */);\r\n const response = await startEnrollPhoneMfa(auth, {\r\n idToken: session.credential,\r\n phoneEnrollmentInfo: {\r\n phoneNumber: phoneInfoOptions.phoneNumber,\r\n recaptchaToken\r\n }\r\n });\r\n return response.phoneSessionInfo.sessionInfo;\r\n }\r\n else {\r\n _assert(session.type === \"signin\" /* MultiFactorSessionType.SIGN_IN */, auth, \"internal-error\" /* AuthErrorCode.INTERNAL_ERROR */);\r\n const mfaEnrollmentId = ((_a = phoneInfoOptions.multiFactorHint) === null || _a === void 0 ? void 0 : _a.uid) ||\r\n phoneInfoOptions.multiFactorUid;\r\n _assert(mfaEnrollmentId, auth, \"missing-multi-factor-info\" /* AuthErrorCode.MISSING_MFA_INFO */);\r\n const response = await startSignInPhoneMfa(auth, {\r\n mfaPendingCredential: session.credential,\r\n mfaEnrollmentId,\r\n phoneSignInInfo: {\r\n recaptchaToken\r\n }\r\n });\r\n return response.phoneResponseInfo.sessionInfo;\r\n }\r\n }\r\n else {\r\n const { sessionInfo } = await sendPhoneVerificationCode(auth, {\r\n phoneNumber: phoneInfoOptions.phoneNumber,\r\n recaptchaToken\r\n });\r\n return sessionInfo;\r\n }\r\n }\r\n finally {\r\n verifier._reset();\r\n }\r\n}\r\n/**\r\n * Updates the user's phone number.\r\n *\r\n * @remarks\r\n * This method does not work in a Node.js environment.\r\n *\r\n * @example\r\n * ```\r\n * // 'recaptcha-container' is the ID of an element in the DOM.\r\n * const applicationVerifier = new RecaptchaVerifier('recaptcha-container');\r\n * const provider = new PhoneAuthProvider(auth);\r\n * const verificationId = await provider.verifyPhoneNumber('+16505550101', applicationVerifier);\r\n * // Obtain the verificationCode from the user.\r\n * const phoneCredential = PhoneAuthProvider.credential(verificationId, verificationCode);\r\n * await updatePhoneNumber(user, phoneCredential);\r\n * ```\r\n *\r\n * @param user - The user.\r\n * @param credential - A credential authenticating the new phone number.\r\n *\r\n * @public\r\n */\r\nasync function updatePhoneNumber(user, credential) {\r\n await _link$1(getModularInstance(user), credential);\r\n}\n\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\n/**\r\n * Provider for generating an {@link PhoneAuthCredential}.\r\n *\r\n * @remarks\r\n * `PhoneAuthProvider` does not work in a Node.js environment.\r\n *\r\n * @example\r\n * ```javascript\r\n * // 'recaptcha-container' is the ID of an element in the DOM.\r\n * const applicationVerifier = new RecaptchaVerifier('recaptcha-container');\r\n * const provider = new PhoneAuthProvider(auth);\r\n * const verificationId = await provider.verifyPhoneNumber('+16505550101', applicationVerifier);\r\n * // Obtain the verificationCode from the user.\r\n * const phoneCredential = PhoneAuthProvider.credential(verificationId, verificationCode);\r\n * const userCredential = await signInWithCredential(auth, phoneCredential);\r\n * ```\r\n *\r\n * @public\r\n */\r\nclass PhoneAuthProvider {\r\n /**\r\n * @param auth - The Firebase {@link Auth} instance in which sign-ins should occur.\r\n *\r\n */\r\n constructor(auth) {\r\n /** Always set to {@link ProviderId}.PHONE. */\r\n this.providerId = PhoneAuthProvider.PROVIDER_ID;\r\n this.auth = _castAuth(auth);\r\n }\r\n /**\r\n *\r\n * Starts a phone number authentication flow by sending a verification code to the given phone\r\n * number.\r\n *\r\n * @example\r\n * ```javascript\r\n * const provider = new PhoneAuthProvider(auth);\r\n * const verificationId = await provider.verifyPhoneNumber(phoneNumber, applicationVerifier);\r\n * // Obtain verificationCode from the user.\r\n * const authCredential = PhoneAuthProvider.credential(verificationId, verificationCode);\r\n * const userCredential = await signInWithCredential(auth, authCredential);\r\n * ```\r\n *\r\n * @example\r\n * An alternative flow is provided using the `signInWithPhoneNumber` method.\r\n * ```javascript\r\n * const confirmationResult = signInWithPhoneNumber(auth, phoneNumber, applicationVerifier);\r\n * // Obtain verificationCode from the user.\r\n * const userCredential = confirmationResult.confirm(verificationCode);\r\n * ```\r\n *\r\n * @param phoneInfoOptions - The user's {@link PhoneInfoOptions}. The phone number should be in\r\n * E.164 format (e.g. +16505550101).\r\n * @param applicationVerifier - For abuse prevention, this method also requires a\r\n * {@link ApplicationVerifier}. This SDK includes a reCAPTCHA-based implementation,\r\n * {@link RecaptchaVerifier}.\r\n *\r\n * @returns A Promise for a verification ID that can be passed to\r\n * {@link PhoneAuthProvider.credential} to identify this flow..\r\n */\r\n verifyPhoneNumber(phoneOptions, applicationVerifier) {\r\n return _verifyPhoneNumber(this.auth, phoneOptions, getModularInstance(applicationVerifier));\r\n }\r\n /**\r\n * Creates a phone auth credential, given the verification ID from\r\n * {@link PhoneAuthProvider.verifyPhoneNumber} and the code that was sent to the user's\r\n * mobile device.\r\n *\r\n * @example\r\n * ```javascript\r\n * const provider = new PhoneAuthProvider(auth);\r\n * const verificationId = provider.verifyPhoneNumber(phoneNumber, applicationVerifier);\r\n * // Obtain verificationCode from the user.\r\n * const authCredential = PhoneAuthProvider.credential(verificationId, verificationCode);\r\n * const userCredential = signInWithCredential(auth, authCredential);\r\n * ```\r\n *\r\n * @example\r\n * An alternative flow is provided using the `signInWithPhoneNumber` method.\r\n * ```javascript\r\n * const confirmationResult = await signInWithPhoneNumber(auth, phoneNumber, applicationVerifier);\r\n * // Obtain verificationCode from the user.\r\n * const userCredential = await confirmationResult.confirm(verificationCode);\r\n * ```\r\n *\r\n * @param verificationId - The verification ID returned from {@link PhoneAuthProvider.verifyPhoneNumber}.\r\n * @param verificationCode - The verification code sent to the user's mobile device.\r\n *\r\n * @returns The auth provider credential.\r\n */\r\n static credential(verificationId, verificationCode) {\r\n return PhoneAuthCredential._fromVerification(verificationId, verificationCode);\r\n }\r\n /**\r\n * Generates an {@link AuthCredential} from a {@link UserCredential}.\r\n * @param userCredential - The user credential.\r\n */\r\n static credentialFromResult(userCredential) {\r\n const credential = userCredential;\r\n return PhoneAuthProvider.credentialFromTaggedObject(credential);\r\n }\r\n /**\r\n * Returns an {@link AuthCredential} when passed an error.\r\n *\r\n * @remarks\r\n *\r\n * This method works for errors like\r\n * `auth/account-exists-with-different-credentials`. This is useful for\r\n * recovering when attempting to set a user's phone number but the number\r\n * in question is already tied to another account. For example, the following\r\n * code tries to update the current user's phone number, and if that\r\n * fails, links the user with the account associated with that number:\r\n *\r\n * ```js\r\n * const provider = new PhoneAuthProvider(auth);\r\n * const verificationId = await provider.verifyPhoneNumber(number, verifier);\r\n * try {\r\n * const code = ''; // Prompt the user for the verification code\r\n * await updatePhoneNumber(\r\n * auth.currentUser,\r\n * PhoneAuthProvider.credential(verificationId, code));\r\n * } catch (e) {\r\n * if ((e as FirebaseError)?.code === 'auth/account-exists-with-different-credential') {\r\n * const cred = PhoneAuthProvider.credentialFromError(e);\r\n * await linkWithCredential(auth.currentUser, cred);\r\n * }\r\n * }\r\n *\r\n * // At this point, auth.currentUser.phoneNumber === number.\r\n * ```\r\n *\r\n * @param error - The error to generate a credential from.\r\n */\r\n static credentialFromError(error) {\r\n return PhoneAuthProvider.credentialFromTaggedObject((error.customData || {}));\r\n }\r\n static credentialFromTaggedObject({ _tokenResponse: tokenResponse }) {\r\n if (!tokenResponse) {\r\n return null;\r\n }\r\n const { phoneNumber, temporaryProof } = tokenResponse;\r\n if (phoneNumber && temporaryProof) {\r\n return PhoneAuthCredential._fromTokenResponse(phoneNumber, temporaryProof);\r\n }\r\n return null;\r\n }\r\n}\r\n/** Always set to {@link ProviderId}.PHONE. */\r\nPhoneAuthProvider.PROVIDER_ID = \"phone\" /* ProviderId.PHONE */;\r\n/** Always set to {@link SignInMethod}.PHONE. */\r\nPhoneAuthProvider.PHONE_SIGN_IN_METHOD = \"phone\" /* SignInMethod.PHONE */;\n\n/**\r\n * @license\r\n * Copyright 2021 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\n/**\r\n * Chooses a popup/redirect resolver to use. This prefers the override (which\r\n * is directly passed in), and falls back to the property set on the auth\r\n * object. If neither are available, this function errors w/ an argument error.\r\n */\r\nfunction _withDefaultResolver(auth, resolverOverride) {\r\n if (resolverOverride) {\r\n return _getInstance(resolverOverride);\r\n }\r\n _assert(auth._popupRedirectResolver, auth, \"argument-error\" /* AuthErrorCode.ARGUMENT_ERROR */);\r\n return auth._popupRedirectResolver;\r\n}\n\n/**\r\n * @license\r\n * Copyright 2019 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\nclass IdpCredential extends AuthCredential {\r\n constructor(params) {\r\n super(\"custom\" /* ProviderId.CUSTOM */, \"custom\" /* ProviderId.CUSTOM */);\r\n this.params = params;\r\n }\r\n _getIdTokenResponse(auth) {\r\n return signInWithIdp(auth, this._buildIdpRequest());\r\n }\r\n _linkToIdToken(auth, idToken) {\r\n return signInWithIdp(auth, this._buildIdpRequest(idToken));\r\n }\r\n _getReauthenticationResolver(auth) {\r\n return signInWithIdp(auth, this._buildIdpRequest());\r\n }\r\n _buildIdpRequest(idToken) {\r\n const request = {\r\n requestUri: this.params.requestUri,\r\n sessionId: this.params.sessionId,\r\n postBody: this.params.postBody,\r\n tenantId: this.params.tenantId,\r\n pendingToken: this.params.pendingToken,\r\n returnSecureToken: true,\r\n returnIdpCredential: true\r\n };\r\n if (idToken) {\r\n request.idToken = idToken;\r\n }\r\n return request;\r\n }\r\n}\r\nfunction _signIn(params) {\r\n return _signInWithCredential(params.auth, new IdpCredential(params), params.bypassAuthState);\r\n}\r\nfunction _reauth(params) {\r\n const { auth, user } = params;\r\n _assert(user, auth, \"internal-error\" /* AuthErrorCode.INTERNAL_ERROR */);\r\n return _reauthenticate(user, new IdpCredential(params), params.bypassAuthState);\r\n}\r\nasync function _link(params) {\r\n const { auth, user } = params;\r\n _assert(user, auth, \"internal-error\" /* AuthErrorCode.INTERNAL_ERROR */);\r\n return _link$1(user, new IdpCredential(params), params.bypassAuthState);\r\n}\n\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\n/**\r\n * Popup event manager. Handles the popup's entire lifecycle; listens to auth\r\n * events\r\n */\r\nclass AbstractPopupRedirectOperation {\r\n constructor(auth, filter, resolver, user, bypassAuthState = false) {\r\n this.auth = auth;\r\n this.resolver = resolver;\r\n this.user = user;\r\n this.bypassAuthState = bypassAuthState;\r\n this.pendingPromise = null;\r\n this.eventManager = null;\r\n this.filter = Array.isArray(filter) ? filter : [filter];\r\n }\r\n execute() {\r\n return new Promise(async (resolve, reject) => {\r\n this.pendingPromise = { resolve, reject };\r\n try {\r\n this.eventManager = await this.resolver._initialize(this.auth);\r\n await this.onExecution();\r\n this.eventManager.registerConsumer(this);\r\n }\r\n catch (e) {\r\n this.reject(e);\r\n }\r\n });\r\n }\r\n async onAuthEvent(event) {\r\n const { urlResponse, sessionId, postBody, tenantId, error, type } = event;\r\n if (error) {\r\n this.reject(error);\r\n return;\r\n }\r\n const params = {\r\n auth: this.auth,\r\n requestUri: urlResponse,\r\n sessionId: sessionId,\r\n tenantId: tenantId || undefined,\r\n postBody: postBody || undefined,\r\n user: this.user,\r\n bypassAuthState: this.bypassAuthState\r\n };\r\n try {\r\n this.resolve(await this.getIdpTask(type)(params));\r\n }\r\n catch (e) {\r\n this.reject(e);\r\n }\r\n }\r\n onError(error) {\r\n this.reject(error);\r\n }\r\n getIdpTask(type) {\r\n switch (type) {\r\n case \"signInViaPopup\" /* AuthEventType.SIGN_IN_VIA_POPUP */:\r\n case \"signInViaRedirect\" /* AuthEventType.SIGN_IN_VIA_REDIRECT */:\r\n return _signIn;\r\n case \"linkViaPopup\" /* AuthEventType.LINK_VIA_POPUP */:\r\n case \"linkViaRedirect\" /* AuthEventType.LINK_VIA_REDIRECT */:\r\n return _link;\r\n case \"reauthViaPopup\" /* AuthEventType.REAUTH_VIA_POPUP */:\r\n case \"reauthViaRedirect\" /* AuthEventType.REAUTH_VIA_REDIRECT */:\r\n return _reauth;\r\n default:\r\n _fail(this.auth, \"internal-error\" /* AuthErrorCode.INTERNAL_ERROR */);\r\n }\r\n }\r\n resolve(cred) {\r\n debugAssert(this.pendingPromise, 'Pending promise was never set');\r\n this.pendingPromise.resolve(cred);\r\n this.unregisterAndCleanUp();\r\n }\r\n reject(error) {\r\n debugAssert(this.pendingPromise, 'Pending promise was never set');\r\n this.pendingPromise.reject(error);\r\n this.unregisterAndCleanUp();\r\n }\r\n unregisterAndCleanUp() {\r\n if (this.eventManager) {\r\n this.eventManager.unregisterConsumer(this);\r\n }\r\n this.pendingPromise = null;\r\n this.cleanUp();\r\n }\r\n}\n\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\nconst _POLL_WINDOW_CLOSE_TIMEOUT = new Delay(2000, 10000);\r\n/**\r\n * Authenticates a Firebase client using a popup-based OAuth authentication flow.\r\n *\r\n * @remarks\r\n * If succeeds, returns the signed in user along with the provider's credential. If sign in was\r\n * unsuccessful, returns an error object containing additional information about the error.\r\n *\r\n * This method does not work in a Node.js environment.\r\n *\r\n * @example\r\n * ```javascript\r\n * // Sign in using a popup.\r\n * const provider = new FacebookAuthProvider();\r\n * const result = await signInWithPopup(auth, provider);\r\n *\r\n * // The signed-in user info.\r\n * const user = result.user;\r\n * // This gives you a Facebook Access Token.\r\n * const credential = provider.credentialFromResult(auth, result);\r\n * const token = credential.accessToken;\r\n * ```\r\n *\r\n * @param auth - The {@link Auth} instance.\r\n * @param provider - The provider to authenticate. The provider has to be an {@link OAuthProvider}.\r\n * Non-OAuth providers like {@link EmailAuthProvider} will throw an error.\r\n * @param resolver - An instance of {@link PopupRedirectResolver}, optional\r\n * if already supplied to {@link initializeAuth} or provided by {@link getAuth}.\r\n *\r\n * @public\r\n */\r\nasync function signInWithPopup(auth, provider, resolver) {\r\n const authInternal = _castAuth(auth);\r\n _assertInstanceOf(auth, provider, FederatedAuthProvider);\r\n const resolverInternal = _withDefaultResolver(authInternal, resolver);\r\n const action = new PopupOperation(authInternal, \"signInViaPopup\" /* AuthEventType.SIGN_IN_VIA_POPUP */, provider, resolverInternal);\r\n return action.executeNotNull();\r\n}\r\n/**\r\n * Reauthenticates the current user with the specified {@link OAuthProvider} using a pop-up based\r\n * OAuth flow.\r\n *\r\n * @remarks\r\n * If the reauthentication is successful, the returned result will contain the user and the\r\n * provider's credential.\r\n *\r\n * This method does not work in a Node.js environment.\r\n *\r\n * @example\r\n * ```javascript\r\n * // Sign in using a popup.\r\n * const provider = new FacebookAuthProvider();\r\n * const result = await signInWithPopup(auth, provider);\r\n * // Reauthenticate using a popup.\r\n * await reauthenticateWithPopup(result.user, provider);\r\n * ```\r\n *\r\n * @param user - The user.\r\n * @param provider - The provider to authenticate. The provider has to be an {@link OAuthProvider}.\r\n * Non-OAuth providers like {@link EmailAuthProvider} will throw an error.\r\n * @param resolver - An instance of {@link PopupRedirectResolver}, optional\r\n * if already supplied to {@link initializeAuth} or provided by {@link getAuth}.\r\n *\r\n * @public\r\n */\r\nasync function reauthenticateWithPopup(user, provider, resolver) {\r\n const userInternal = getModularInstance(user);\r\n _assertInstanceOf(userInternal.auth, provider, FederatedAuthProvider);\r\n const resolverInternal = _withDefaultResolver(userInternal.auth, resolver);\r\n const action = new PopupOperation(userInternal.auth, \"reauthViaPopup\" /* AuthEventType.REAUTH_VIA_POPUP */, provider, resolverInternal, userInternal);\r\n return action.executeNotNull();\r\n}\r\n/**\r\n * Links the authenticated provider to the user account using a pop-up based OAuth flow.\r\n *\r\n * @remarks\r\n * If the linking is successful, the returned result will contain the user and the provider's credential.\r\n *\r\n * This method does not work in a Node.js environment.\r\n *\r\n * @example\r\n * ```javascript\r\n * // Sign in using some other provider.\r\n * const result = await signInWithEmailAndPassword(auth, email, password);\r\n * // Link using a popup.\r\n * const provider = new FacebookAuthProvider();\r\n * await linkWithPopup(result.user, provider);\r\n * ```\r\n *\r\n * @param user - The user.\r\n * @param provider - The provider to authenticate. The provider has to be an {@link OAuthProvider}.\r\n * Non-OAuth providers like {@link EmailAuthProvider} will throw an error.\r\n * @param resolver - An instance of {@link PopupRedirectResolver}, optional\r\n * if already supplied to {@link initializeAuth} or provided by {@link getAuth}.\r\n *\r\n * @public\r\n */\r\nasync function linkWithPopup(user, provider, resolver) {\r\n const userInternal = getModularInstance(user);\r\n _assertInstanceOf(userInternal.auth, provider, FederatedAuthProvider);\r\n const resolverInternal = _withDefaultResolver(userInternal.auth, resolver);\r\n const action = new PopupOperation(userInternal.auth, \"linkViaPopup\" /* AuthEventType.LINK_VIA_POPUP */, provider, resolverInternal, userInternal);\r\n return action.executeNotNull();\r\n}\r\n/**\r\n * Popup event manager. Handles the popup's entire lifecycle; listens to auth\r\n * events\r\n *\r\n */\r\nclass PopupOperation extends AbstractPopupRedirectOperation {\r\n constructor(auth, filter, provider, resolver, user) {\r\n super(auth, filter, resolver, user);\r\n this.provider = provider;\r\n this.authWindow = null;\r\n this.pollId = null;\r\n if (PopupOperation.currentPopupAction) {\r\n PopupOperation.currentPopupAction.cancel();\r\n }\r\n PopupOperation.currentPopupAction = this;\r\n }\r\n async executeNotNull() {\r\n const result = await this.execute();\r\n _assert(result, this.auth, \"internal-error\" /* AuthErrorCode.INTERNAL_ERROR */);\r\n return result;\r\n }\r\n async onExecution() {\r\n debugAssert(this.filter.length === 1, 'Popup operations only handle one event');\r\n const eventId = _generateEventId();\r\n this.authWindow = await this.resolver._openPopup(this.auth, this.provider, this.filter[0], // There's always one, see constructor\r\n eventId);\r\n this.authWindow.associatedEvent = eventId;\r\n // Check for web storage support and origin validation _after_ the popup is\r\n // loaded. These operations are slow (~1 second or so) Rather than\r\n // waiting on them before opening the window, optimistically open the popup\r\n // and check for storage support at the same time. If storage support is\r\n // not available, this will cause the whole thing to reject properly. It\r\n // will also close the popup, but since the promise has already rejected,\r\n // the popup closed by user poll will reject into the void.\r\n this.resolver._originValidation(this.auth).catch(e => {\r\n this.reject(e);\r\n });\r\n this.resolver._isIframeWebStorageSupported(this.auth, isSupported => {\r\n if (!isSupported) {\r\n this.reject(_createError(this.auth, \"web-storage-unsupported\" /* AuthErrorCode.WEB_STORAGE_UNSUPPORTED */));\r\n }\r\n });\r\n // Handle user closure. Notice this does *not* use await\r\n this.pollUserCancellation();\r\n }\r\n get eventId() {\r\n var _a;\r\n return ((_a = this.authWindow) === null || _a === void 0 ? void 0 : _a.associatedEvent) || null;\r\n }\r\n cancel() {\r\n this.reject(_createError(this.auth, \"cancelled-popup-request\" /* AuthErrorCode.EXPIRED_POPUP_REQUEST */));\r\n }\r\n cleanUp() {\r\n if (this.authWindow) {\r\n this.authWindow.close();\r\n }\r\n if (this.pollId) {\r\n window.clearTimeout(this.pollId);\r\n }\r\n this.authWindow = null;\r\n this.pollId = null;\r\n PopupOperation.currentPopupAction = null;\r\n }\r\n pollUserCancellation() {\r\n const poll = () => {\r\n var _a, _b;\r\n if ((_b = (_a = this.authWindow) === null || _a === void 0 ? void 0 : _a.window) === null || _b === void 0 ? void 0 : _b.closed) {\r\n // Make sure that there is sufficient time for whatever action to\r\n // complete. The window could have closed but the sign in network\r\n // call could still be in flight. This is specifically true for\r\n // Firefox or if the opener is in an iframe, in which case the oauth\r\n // helper closes the popup.\r\n this.pollId = window.setTimeout(() => {\r\n this.pollId = null;\r\n this.reject(_createError(this.auth, \"popup-closed-by-user\" /* AuthErrorCode.POPUP_CLOSED_BY_USER */));\r\n }, 8000 /* _Timeout.AUTH_EVENT */);\r\n return;\r\n }\r\n this.pollId = window.setTimeout(poll, _POLL_WINDOW_CLOSE_TIMEOUT.get());\r\n };\r\n poll();\r\n }\r\n}\r\n// Only one popup is ever shown at once. The lifecycle of the current popup\r\n// can be managed / cancelled by the constructor.\r\nPopupOperation.currentPopupAction = null;\n\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\nconst PENDING_REDIRECT_KEY = 'pendingRedirect';\r\n// We only get one redirect outcome for any one auth, so just store it\r\n// in here.\r\nconst redirectOutcomeMap = new Map();\r\nclass RedirectAction extends AbstractPopupRedirectOperation {\r\n constructor(auth, resolver, bypassAuthState = false) {\r\n super(auth, [\r\n \"signInViaRedirect\" /* AuthEventType.SIGN_IN_VIA_REDIRECT */,\r\n \"linkViaRedirect\" /* AuthEventType.LINK_VIA_REDIRECT */,\r\n \"reauthViaRedirect\" /* AuthEventType.REAUTH_VIA_REDIRECT */,\r\n \"unknown\" /* AuthEventType.UNKNOWN */\r\n ], resolver, undefined, bypassAuthState);\r\n this.eventId = null;\r\n }\r\n /**\r\n * Override the execute function; if we already have a redirect result, then\r\n * just return it.\r\n */\r\n async execute() {\r\n let readyOutcome = redirectOutcomeMap.get(this.auth._key());\r\n if (!readyOutcome) {\r\n try {\r\n const hasPendingRedirect = await _getAndClearPendingRedirectStatus(this.resolver, this.auth);\r\n const result = hasPendingRedirect ? await super.execute() : null;\r\n readyOutcome = () => Promise.resolve(result);\r\n }\r\n catch (e) {\r\n readyOutcome = () => Promise.reject(e);\r\n }\r\n redirectOutcomeMap.set(this.auth._key(), readyOutcome);\r\n }\r\n // If we're not bypassing auth state, the ready outcome should be set to\r\n // null.\r\n if (!this.bypassAuthState) {\r\n redirectOutcomeMap.set(this.auth._key(), () => Promise.resolve(null));\r\n }\r\n return readyOutcome();\r\n }\r\n async onAuthEvent(event) {\r\n if (event.type === \"signInViaRedirect\" /* AuthEventType.SIGN_IN_VIA_REDIRECT */) {\r\n return super.onAuthEvent(event);\r\n }\r\n else if (event.type === \"unknown\" /* AuthEventType.UNKNOWN */) {\r\n // This is a sentinel value indicating there's no pending redirect\r\n this.resolve(null);\r\n return;\r\n }\r\n if (event.eventId) {\r\n const user = await this.auth._redirectUserForId(event.eventId);\r\n if (user) {\r\n this.user = user;\r\n return super.onAuthEvent(event);\r\n }\r\n else {\r\n this.resolve(null);\r\n }\r\n }\r\n }\r\n async onExecution() { }\r\n cleanUp() { }\r\n}\r\nasync function _getAndClearPendingRedirectStatus(resolver, auth) {\r\n const key = pendingRedirectKey(auth);\r\n const persistence = resolverPersistence(resolver);\r\n if (!(await persistence._isAvailable())) {\r\n return false;\r\n }\r\n const hasPendingRedirect = (await persistence._get(key)) === 'true';\r\n await persistence._remove(key);\r\n return hasPendingRedirect;\r\n}\r\nasync function _setPendingRedirectStatus(resolver, auth) {\r\n return resolverPersistence(resolver)._set(pendingRedirectKey(auth), 'true');\r\n}\r\nfunction _clearRedirectOutcomes() {\r\n redirectOutcomeMap.clear();\r\n}\r\nfunction _overrideRedirectResult(auth, result) {\r\n redirectOutcomeMap.set(auth._key(), result);\r\n}\r\nfunction resolverPersistence(resolver) {\r\n return _getInstance(resolver._redirectPersistence);\r\n}\r\nfunction pendingRedirectKey(auth) {\r\n return _persistenceKeyName(PENDING_REDIRECT_KEY, auth.config.apiKey, auth.name);\r\n}\n\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\n/**\r\n * Authenticates a Firebase client using a full-page redirect flow.\r\n *\r\n * @remarks\r\n * To handle the results and errors for this operation, refer to {@link getRedirectResult}.\r\n * Follow the {@link https://firebase.google.com/docs/auth/web/redirect-best-practices\r\n * | best practices} when using {@link signInWithRedirect}.\r\n *\r\n * This method does not work in a Node.js environment.\r\n *\r\n * @example\r\n * ```javascript\r\n * // Sign in using a redirect.\r\n * const provider = new FacebookAuthProvider();\r\n * // You can add additional scopes to the provider:\r\n * provider.addScope('user_birthday');\r\n * // Start a sign in process for an unauthenticated user.\r\n * await signInWithRedirect(auth, provider);\r\n * // This will trigger a full page redirect away from your app\r\n *\r\n * // After returning from the redirect when your app initializes you can obtain the result\r\n * const result = await getRedirectResult(auth);\r\n * if (result) {\r\n * // This is the signed-in user\r\n * const user = result.user;\r\n * // This gives you a Facebook Access Token.\r\n * const credential = provider.credentialFromResult(auth, result);\r\n * const token = credential.accessToken;\r\n * }\r\n * // As this API can be used for sign-in, linking and reauthentication,\r\n * // check the operationType to determine what triggered this redirect\r\n * // operation.\r\n * const operationType = result.operationType;\r\n * ```\r\n *\r\n * @param auth - The {@link Auth} instance.\r\n * @param provider - The provider to authenticate. The provider has to be an {@link OAuthProvider}.\r\n * Non-OAuth providers like {@link EmailAuthProvider} will throw an error.\r\n * @param resolver - An instance of {@link PopupRedirectResolver}, optional\r\n * if already supplied to {@link initializeAuth} or provided by {@link getAuth}.\r\n *\r\n * @public\r\n */\r\nfunction signInWithRedirect(auth, provider, resolver) {\r\n return _signInWithRedirect(auth, provider, resolver);\r\n}\r\nasync function _signInWithRedirect(auth, provider, resolver) {\r\n const authInternal = _castAuth(auth);\r\n _assertInstanceOf(auth, provider, FederatedAuthProvider);\r\n // Wait for auth initialization to complete, this will process pending redirects and clear the\r\n // PENDING_REDIRECT_KEY in persistence. This should be completed before starting a new\r\n // redirect and creating a PENDING_REDIRECT_KEY entry.\r\n await authInternal._initializationPromise;\r\n const resolverInternal = _withDefaultResolver(authInternal, resolver);\r\n await _setPendingRedirectStatus(resolverInternal, authInternal);\r\n return resolverInternal._openRedirect(authInternal, provider, \"signInViaRedirect\" /* AuthEventType.SIGN_IN_VIA_REDIRECT */);\r\n}\r\n/**\r\n * Reauthenticates the current user with the specified {@link OAuthProvider} using a full-page redirect flow.\r\n * @remarks\r\n * To handle the results and errors for this operation, refer to {@link getRedirectResult}.\r\n * Follow the {@link https://firebase.google.com/docs/auth/web/redirect-best-practices\r\n * | best practices} when using {@link reauthenticateWithRedirect}.\r\n *\r\n * This method does not work in a Node.js environment.\r\n *\r\n * @example\r\n * ```javascript\r\n * // Sign in using a redirect.\r\n * const provider = new FacebookAuthProvider();\r\n * const result = await signInWithRedirect(auth, provider);\r\n * // This will trigger a full page redirect away from your app\r\n *\r\n * // After returning from the redirect when your app initializes you can obtain the result\r\n * const result = await getRedirectResult(auth);\r\n * // Reauthenticate using a redirect.\r\n * await reauthenticateWithRedirect(result.user, provider);\r\n * // This will again trigger a full page redirect away from your app\r\n *\r\n * // After returning from the redirect when your app initializes you can obtain the result\r\n * const result = await getRedirectResult(auth);\r\n * ```\r\n *\r\n * @param user - The user.\r\n * @param provider - The provider to authenticate. The provider has to be an {@link OAuthProvider}.\r\n * Non-OAuth providers like {@link EmailAuthProvider} will throw an error.\r\n * @param resolver - An instance of {@link PopupRedirectResolver}, optional\r\n * if already supplied to {@link initializeAuth} or provided by {@link getAuth}.\r\n *\r\n * @public\r\n */\r\nfunction reauthenticateWithRedirect(user, provider, resolver) {\r\n return _reauthenticateWithRedirect(user, provider, resolver);\r\n}\r\nasync function _reauthenticateWithRedirect(user, provider, resolver) {\r\n const userInternal = getModularInstance(user);\r\n _assertInstanceOf(userInternal.auth, provider, FederatedAuthProvider);\r\n // Wait for auth initialization to complete, this will process pending redirects and clear the\r\n // PENDING_REDIRECT_KEY in persistence. This should be completed before starting a new\r\n // redirect and creating a PENDING_REDIRECT_KEY entry.\r\n await userInternal.auth._initializationPromise;\r\n // Allow the resolver to error before persisting the redirect user\r\n const resolverInternal = _withDefaultResolver(userInternal.auth, resolver);\r\n await _setPendingRedirectStatus(resolverInternal, userInternal.auth);\r\n const eventId = await prepareUserForRedirect(userInternal);\r\n return resolverInternal._openRedirect(userInternal.auth, provider, \"reauthViaRedirect\" /* AuthEventType.REAUTH_VIA_REDIRECT */, eventId);\r\n}\r\n/**\r\n * Links the {@link OAuthProvider} to the user account using a full-page redirect flow.\r\n * @remarks\r\n * To handle the results and errors for this operation, refer to {@link getRedirectResult}.\r\n * Follow the {@link https://firebase.google.com/docs/auth/web/redirect-best-practices\r\n * | best practices} when using {@link linkWithRedirect}.\r\n *\r\n * This method does not work in a Node.js environment.\r\n *\r\n * @example\r\n * ```javascript\r\n * // Sign in using some other provider.\r\n * const result = await signInWithEmailAndPassword(auth, email, password);\r\n * // Link using a redirect.\r\n * const provider = new FacebookAuthProvider();\r\n * await linkWithRedirect(result.user, provider);\r\n * // This will trigger a full page redirect away from your app\r\n *\r\n * // After returning from the redirect when your app initializes you can obtain the result\r\n * const result = await getRedirectResult(auth);\r\n * ```\r\n *\r\n * @param user - The user.\r\n * @param provider - The provider to authenticate. The provider has to be an {@link OAuthProvider}.\r\n * Non-OAuth providers like {@link EmailAuthProvider} will throw an error.\r\n * @param resolver - An instance of {@link PopupRedirectResolver}, optional\r\n * if already supplied to {@link initializeAuth} or provided by {@link getAuth}.\r\n *\r\n * @public\r\n */\r\nfunction linkWithRedirect(user, provider, resolver) {\r\n return _linkWithRedirect(user, provider, resolver);\r\n}\r\nasync function _linkWithRedirect(user, provider, resolver) {\r\n const userInternal = getModularInstance(user);\r\n _assertInstanceOf(userInternal.auth, provider, FederatedAuthProvider);\r\n // Wait for auth initialization to complete, this will process pending redirects and clear the\r\n // PENDING_REDIRECT_KEY in persistence. This should be completed before starting a new\r\n // redirect and creating a PENDING_REDIRECT_KEY entry.\r\n await userInternal.auth._initializationPromise;\r\n // Allow the resolver to error before persisting the redirect user\r\n const resolverInternal = _withDefaultResolver(userInternal.auth, resolver);\r\n await _assertLinkedStatus(false, userInternal, provider.providerId);\r\n await _setPendingRedirectStatus(resolverInternal, userInternal.auth);\r\n const eventId = await prepareUserForRedirect(userInternal);\r\n return resolverInternal._openRedirect(userInternal.auth, provider, \"linkViaRedirect\" /* AuthEventType.LINK_VIA_REDIRECT */, eventId);\r\n}\r\n/**\r\n * Returns a {@link UserCredential} from the redirect-based sign-in flow.\r\n *\r\n * @remarks\r\n * If sign-in succeeded, returns the signed in user. If sign-in was unsuccessful, fails with an\r\n * error. If no redirect operation was called, returns `null`.\r\n *\r\n * This method does not work in a Node.js environment.\r\n *\r\n * @example\r\n * ```javascript\r\n * // Sign in using a redirect.\r\n * const provider = new FacebookAuthProvider();\r\n * // You can add additional scopes to the provider:\r\n * provider.addScope('user_birthday');\r\n * // Start a sign in process for an unauthenticated user.\r\n * await signInWithRedirect(auth, provider);\r\n * // This will trigger a full page redirect away from your app\r\n *\r\n * // After returning from the redirect when your app initializes you can obtain the result\r\n * const result = await getRedirectResult(auth);\r\n * if (result) {\r\n * // This is the signed-in user\r\n * const user = result.user;\r\n * // This gives you a Facebook Access Token.\r\n * const credential = provider.credentialFromResult(auth, result);\r\n * const token = credential.accessToken;\r\n * }\r\n * // As this API can be used for sign-in, linking and reauthentication,\r\n * // check the operationType to determine what triggered this redirect\r\n * // operation.\r\n * const operationType = result.operationType;\r\n * ```\r\n *\r\n * @param auth - The {@link Auth} instance.\r\n * @param resolver - An instance of {@link PopupRedirectResolver}, optional\r\n * if already supplied to {@link initializeAuth} or provided by {@link getAuth}.\r\n *\r\n * @public\r\n */\r\nasync function getRedirectResult(auth, resolver) {\r\n await _castAuth(auth)._initializationPromise;\r\n return _getRedirectResult(auth, resolver, false);\r\n}\r\nasync function _getRedirectResult(auth, resolverExtern, bypassAuthState = false) {\r\n const authInternal = _castAuth(auth);\r\n const resolver = _withDefaultResolver(authInternal, resolverExtern);\r\n const action = new RedirectAction(authInternal, resolver, bypassAuthState);\r\n const result = await action.execute();\r\n if (result && !bypassAuthState) {\r\n delete result.user._redirectEventId;\r\n await authInternal._persistUserIfCurrent(result.user);\r\n await authInternal._setRedirectUser(null, resolverExtern);\r\n }\r\n return result;\r\n}\r\nasync function prepareUserForRedirect(user) {\r\n const eventId = _generateEventId(`${user.uid}:::`);\r\n user._redirectEventId = eventId;\r\n await user.auth._setRedirectUser(user);\r\n await user.auth._persistUserIfCurrent(user);\r\n return eventId;\r\n}\n\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\n// The amount of time to store the UIDs of seen events; this is\r\n// set to 10 min by default\r\nconst EVENT_DUPLICATION_CACHE_DURATION_MS = 10 * 60 * 1000;\r\nclass AuthEventManager {\r\n constructor(auth) {\r\n this.auth = auth;\r\n this.cachedEventUids = new Set();\r\n this.consumers = new Set();\r\n this.queuedRedirectEvent = null;\r\n this.hasHandledPotentialRedirect = false;\r\n this.lastProcessedEventTime = Date.now();\r\n }\r\n registerConsumer(authEventConsumer) {\r\n this.consumers.add(authEventConsumer);\r\n if (this.queuedRedirectEvent &&\r\n this.isEventForConsumer(this.queuedRedirectEvent, authEventConsumer)) {\r\n this.sendToConsumer(this.queuedRedirectEvent, authEventConsumer);\r\n this.saveEventToCache(this.queuedRedirectEvent);\r\n this.queuedRedirectEvent = null;\r\n }\r\n }\r\n unregisterConsumer(authEventConsumer) {\r\n this.consumers.delete(authEventConsumer);\r\n }\r\n onEvent(event) {\r\n // Check if the event has already been handled\r\n if (this.hasEventBeenHandled(event)) {\r\n return false;\r\n }\r\n let handled = false;\r\n this.consumers.forEach(consumer => {\r\n if (this.isEventForConsumer(event, consumer)) {\r\n handled = true;\r\n this.sendToConsumer(event, consumer);\r\n this.saveEventToCache(event);\r\n }\r\n });\r\n if (this.hasHandledPotentialRedirect || !isRedirectEvent(event)) {\r\n // If we've already seen a redirect before, or this is a popup event,\r\n // bail now\r\n return handled;\r\n }\r\n this.hasHandledPotentialRedirect = true;\r\n // If the redirect wasn't handled, hang on to it\r\n if (!handled) {\r\n this.queuedRedirectEvent = event;\r\n handled = true;\r\n }\r\n return handled;\r\n }\r\n sendToConsumer(event, consumer) {\r\n var _a;\r\n if (event.error && !isNullRedirectEvent(event)) {\r\n const code = ((_a = event.error.code) === null || _a === void 0 ? void 0 : _a.split('auth/')[1]) ||\r\n \"internal-error\" /* AuthErrorCode.INTERNAL_ERROR */;\r\n consumer.onError(_createError(this.auth, code));\r\n }\r\n else {\r\n consumer.onAuthEvent(event);\r\n }\r\n }\r\n isEventForConsumer(event, consumer) {\r\n const eventIdMatches = consumer.eventId === null ||\r\n (!!event.eventId && event.eventId === consumer.eventId);\r\n return consumer.filter.includes(event.type) && eventIdMatches;\r\n }\r\n hasEventBeenHandled(event) {\r\n if (Date.now() - this.lastProcessedEventTime >=\r\n EVENT_DUPLICATION_CACHE_DURATION_MS) {\r\n this.cachedEventUids.clear();\r\n }\r\n return this.cachedEventUids.has(eventUid(event));\r\n }\r\n saveEventToCache(event) {\r\n this.cachedEventUids.add(eventUid(event));\r\n this.lastProcessedEventTime = Date.now();\r\n }\r\n}\r\nfunction eventUid(e) {\r\n return [e.type, e.eventId, e.sessionId, e.tenantId].filter(v => v).join('-');\r\n}\r\nfunction isNullRedirectEvent({ type, error }) {\r\n return (type === \"unknown\" /* AuthEventType.UNKNOWN */ &&\r\n (error === null || error === void 0 ? void 0 : error.code) === `auth/${\"no-auth-event\" /* AuthErrorCode.NO_AUTH_EVENT */}`);\r\n}\r\nfunction isRedirectEvent(event) {\r\n switch (event.type) {\r\n case \"signInViaRedirect\" /* AuthEventType.SIGN_IN_VIA_REDIRECT */:\r\n case \"linkViaRedirect\" /* AuthEventType.LINK_VIA_REDIRECT */:\r\n case \"reauthViaRedirect\" /* AuthEventType.REAUTH_VIA_REDIRECT */:\r\n return true;\r\n case \"unknown\" /* AuthEventType.UNKNOWN */:\r\n return isNullRedirectEvent(event);\r\n default:\r\n return false;\r\n }\r\n}\n\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\nasync function _getProjectConfig(auth, request = {}) {\r\n return _performApiRequest(auth, \"GET\" /* HttpMethod.GET */, \"/v1/projects\" /* Endpoint.GET_PROJECT_CONFIG */, request);\r\n}\n\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\nconst IP_ADDRESS_REGEX = /^\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}$/;\r\nconst HTTP_REGEX = /^https?/;\r\nasync function _validateOrigin(auth) {\r\n // Skip origin validation if we are in an emulated environment\r\n if (auth.config.emulator) {\r\n return;\r\n }\r\n const { authorizedDomains } = await _getProjectConfig(auth);\r\n for (const domain of authorizedDomains) {\r\n try {\r\n if (matchDomain(domain)) {\r\n return;\r\n }\r\n }\r\n catch (_a) {\r\n // Do nothing if there's a URL error; just continue searching\r\n }\r\n }\r\n // In the old SDK, this error also provides helpful messages.\r\n _fail(auth, \"unauthorized-domain\" /* AuthErrorCode.INVALID_ORIGIN */);\r\n}\r\nfunction matchDomain(expected) {\r\n const currentUrl = _getCurrentUrl();\r\n const { protocol, hostname } = new URL(currentUrl);\r\n if (expected.startsWith('chrome-extension://')) {\r\n const ceUrl = new URL(expected);\r\n if (ceUrl.hostname === '' && hostname === '') {\r\n // For some reason we're not parsing chrome URLs properly\r\n return (protocol === 'chrome-extension:' &&\r\n expected.replace('chrome-extension://', '') ===\r\n currentUrl.replace('chrome-extension://', ''));\r\n }\r\n return protocol === 'chrome-extension:' && ceUrl.hostname === hostname;\r\n }\r\n if (!HTTP_REGEX.test(protocol)) {\r\n return false;\r\n }\r\n if (IP_ADDRESS_REGEX.test(expected)) {\r\n // The domain has to be exactly equal to the pattern, as an IP domain will\r\n // only contain the IP, no extra character.\r\n return hostname === expected;\r\n }\r\n // Dots in pattern should be escaped.\r\n const escapedDomainPattern = expected.replace(/\\./g, '\\\\.');\r\n // Non ip address domains.\r\n // domain.com = *.domain.com OR domain.com\r\n const re = new RegExp('^(.+\\\\.' + escapedDomainPattern + '|' + escapedDomainPattern + ')$', 'i');\r\n return re.test(hostname);\r\n}\n\n/**\r\n * @license\r\n * Copyright 2020 Google LLC.\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\nconst NETWORK_TIMEOUT = new Delay(30000, 60000);\r\n/**\r\n * Reset unlaoded GApi modules. If gapi.load fails due to a network error,\r\n * it will stop working after a retrial. This is a hack to fix this issue.\r\n */\r\nfunction resetUnloadedGapiModules() {\r\n // Clear last failed gapi.load state to force next gapi.load to first\r\n // load the failed gapi.iframes module.\r\n // Get gapix.beacon context.\r\n const beacon = _window().___jsl;\r\n // Get current hint.\r\n if (beacon === null || beacon === void 0 ? void 0 : beacon.H) {\r\n // Get gapi hint.\r\n for (const hint of Object.keys(beacon.H)) {\r\n // Requested modules.\r\n beacon.H[hint].r = beacon.H[hint].r || [];\r\n // Loaded modules.\r\n beacon.H[hint].L = beacon.H[hint].L || [];\r\n // Set requested modules to a copy of the loaded modules.\r\n beacon.H[hint].r = [...beacon.H[hint].L];\r\n // Clear pending callbacks.\r\n if (beacon.CP) {\r\n for (let i = 0; i < beacon.CP.length; i++) {\r\n // Remove all failed pending callbacks.\r\n beacon.CP[i] = null;\r\n }\r\n }\r\n }\r\n }\r\n}\r\nfunction loadGapi(auth) {\r\n return new Promise((resolve, reject) => {\r\n var _a, _b, _c;\r\n // Function to run when gapi.load is ready.\r\n function loadGapiIframe() {\r\n // The developer may have tried to previously run gapi.load and failed.\r\n // Run this to fix that.\r\n resetUnloadedGapiModules();\r\n gapi.load('gapi.iframes', {\r\n callback: () => {\r\n resolve(gapi.iframes.getContext());\r\n },\r\n ontimeout: () => {\r\n // The above reset may be sufficient, but having this reset after\r\n // failure ensures that if the developer calls gapi.load after the\r\n // connection is re-established and before another attempt to embed\r\n // the iframe, it would work and would not be broken because of our\r\n // failed attempt.\r\n // Timeout when gapi.iframes.Iframe not loaded.\r\n resetUnloadedGapiModules();\r\n reject(_createError(auth, \"network-request-failed\" /* AuthErrorCode.NETWORK_REQUEST_FAILED */));\r\n },\r\n timeout: NETWORK_TIMEOUT.get()\r\n });\r\n }\r\n if ((_b = (_a = _window().gapi) === null || _a === void 0 ? void 0 : _a.iframes) === null || _b === void 0 ? void 0 : _b.Iframe) {\r\n // If gapi.iframes.Iframe available, resolve.\r\n resolve(gapi.iframes.getContext());\r\n }\r\n else if (!!((_c = _window().gapi) === null || _c === void 0 ? void 0 : _c.load)) {\r\n // Gapi loader ready, load gapi.iframes.\r\n loadGapiIframe();\r\n }\r\n else {\r\n // Create a new iframe callback when this is called so as not to overwrite\r\n // any previous defined callback. This happens if this method is called\r\n // multiple times in parallel and could result in the later callback\r\n // overwriting the previous one. This would end up with a iframe\r\n // timeout.\r\n const cbName = _generateCallbackName('iframefcb');\r\n // GApi loader not available, dynamically load platform.js.\r\n _window()[cbName] = () => {\r\n // GApi loader should be ready.\r\n if (!!gapi.load) {\r\n loadGapiIframe();\r\n }\r\n else {\r\n // Gapi loader failed, throw error.\r\n reject(_createError(auth, \"network-request-failed\" /* AuthErrorCode.NETWORK_REQUEST_FAILED */));\r\n }\r\n };\r\n // Load GApi loader.\r\n return _loadJS(`https://apis.google.com/js/api.js?onload=${cbName}`)\r\n .catch(e => reject(e));\r\n }\r\n }).catch(error => {\r\n // Reset cached promise to allow for retrial.\r\n cachedGApiLoader = null;\r\n throw error;\r\n });\r\n}\r\nlet cachedGApiLoader = null;\r\nfunction _loadGapi(auth) {\r\n cachedGApiLoader = cachedGApiLoader || loadGapi(auth);\r\n return cachedGApiLoader;\r\n}\n\n/**\r\n * @license\r\n * Copyright 2020 Google LLC.\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\nconst PING_TIMEOUT = new Delay(5000, 15000);\r\nconst IFRAME_PATH = '__/auth/iframe';\r\nconst EMULATED_IFRAME_PATH = 'emulator/auth/iframe';\r\nconst IFRAME_ATTRIBUTES = {\r\n style: {\r\n position: 'absolute',\r\n top: '-100px',\r\n width: '1px',\r\n height: '1px'\r\n },\r\n 'aria-hidden': 'true',\r\n tabindex: '-1'\r\n};\r\n// Map from apiHost to endpoint ID for passing into iframe. In current SDK, apiHost can be set to\r\n// anything (not from a list of endpoints with IDs as in legacy), so this is the closest we can get.\r\nconst EID_FROM_APIHOST = new Map([\r\n [\"identitytoolkit.googleapis.com\" /* DefaultConfig.API_HOST */, 'p'],\r\n ['staging-identitytoolkit.sandbox.googleapis.com', 's'],\r\n ['test-identitytoolkit.sandbox.googleapis.com', 't'] // test\r\n]);\r\nfunction getIframeUrl(auth) {\r\n const config = auth.config;\r\n _assert(config.authDomain, auth, \"auth-domain-config-required\" /* AuthErrorCode.MISSING_AUTH_DOMAIN */);\r\n const url = config.emulator\r\n ? _emulatorUrl(config, EMULATED_IFRAME_PATH)\r\n : `https://${auth.config.authDomain}/${IFRAME_PATH}`;\r\n const params = {\r\n apiKey: config.apiKey,\r\n appName: auth.name,\r\n v: SDK_VERSION\r\n };\r\n const eid = EID_FROM_APIHOST.get(auth.config.apiHost);\r\n if (eid) {\r\n params.eid = eid;\r\n }\r\n const frameworks = auth._getFrameworks();\r\n if (frameworks.length) {\r\n params.fw = frameworks.join(',');\r\n }\r\n return `${url}?${querystring(params).slice(1)}`;\r\n}\r\nasync function _openIframe(auth) {\r\n const context = await _loadGapi(auth);\r\n const gapi = _window().gapi;\r\n _assert(gapi, auth, \"internal-error\" /* AuthErrorCode.INTERNAL_ERROR */);\r\n return context.open({\r\n where: document.body,\r\n url: getIframeUrl(auth),\r\n messageHandlersFilter: gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER,\r\n attributes: IFRAME_ATTRIBUTES,\r\n dontclear: true\r\n }, (iframe) => new Promise(async (resolve, reject) => {\r\n await iframe.restyle({\r\n // Prevent iframe from closing on mouse out.\r\n setHideOnLeave: false\r\n });\r\n const networkError = _createError(auth, \"network-request-failed\" /* AuthErrorCode.NETWORK_REQUEST_FAILED */);\r\n // Confirm iframe is correctly loaded.\r\n // To fallback on failure, set a timeout.\r\n const networkErrorTimer = _window().setTimeout(() => {\r\n reject(networkError);\r\n }, PING_TIMEOUT.get());\r\n // Clear timer and resolve pending iframe ready promise.\r\n function clearTimerAndResolve() {\r\n _window().clearTimeout(networkErrorTimer);\r\n resolve(iframe);\r\n }\r\n // This returns an IThenable. However the reject part does not call\r\n // when the iframe is not loaded.\r\n iframe.ping(clearTimerAndResolve).then(clearTimerAndResolve, () => {\r\n reject(networkError);\r\n });\r\n }));\r\n}\n\n/**\r\n * @license\r\n * Copyright 2020 Google LLC.\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\nconst BASE_POPUP_OPTIONS = {\r\n location: 'yes',\r\n resizable: 'yes',\r\n statusbar: 'yes',\r\n toolbar: 'no'\r\n};\r\nconst DEFAULT_WIDTH = 500;\r\nconst DEFAULT_HEIGHT = 600;\r\nconst TARGET_BLANK = '_blank';\r\nconst FIREFOX_EMPTY_URL = 'http://localhost';\r\nclass AuthPopup {\r\n constructor(window) {\r\n this.window = window;\r\n this.associatedEvent = null;\r\n }\r\n close() {\r\n if (this.window) {\r\n try {\r\n this.window.close();\r\n }\r\n catch (e) { }\r\n }\r\n }\r\n}\r\nfunction _open(auth, url, name, width = DEFAULT_WIDTH, height = DEFAULT_HEIGHT) {\r\n const top = Math.max((window.screen.availHeight - height) / 2, 0).toString();\r\n const left = Math.max((window.screen.availWidth - width) / 2, 0).toString();\r\n let target = '';\r\n const options = Object.assign(Object.assign({}, BASE_POPUP_OPTIONS), { width: width.toString(), height: height.toString(), top,\r\n left });\r\n // Chrome iOS 7 and 8 is returning an undefined popup win when target is\r\n // specified, even though the popup is not necessarily blocked.\r\n const ua = getUA().toLowerCase();\r\n if (name) {\r\n target = _isChromeIOS(ua) ? TARGET_BLANK : name;\r\n }\r\n if (_isFirefox(ua)) {\r\n // Firefox complains when invalid URLs are popped out. Hacky way to bypass.\r\n url = url || FIREFOX_EMPTY_URL;\r\n // Firefox disables by default scrolling on popup windows, which can create\r\n // issues when the user has many Google accounts, for instance.\r\n options.scrollbars = 'yes';\r\n }\r\n const optionsString = Object.entries(options).reduce((accum, [key, value]) => `${accum}${key}=${value},`, '');\r\n if (_isIOSStandalone(ua) && target !== '_self') {\r\n openAsNewWindowIOS(url || '', target);\r\n return new AuthPopup(null);\r\n }\r\n // about:blank getting sanitized causing browsers like IE/Edge to display\r\n // brief error message before redirecting to handler.\r\n const newWin = window.open(url || '', target, optionsString);\r\n _assert(newWin, auth, \"popup-blocked\" /* AuthErrorCode.POPUP_BLOCKED */);\r\n // Flaky on IE edge, encapsulate with a try and catch.\r\n try {\r\n newWin.focus();\r\n }\r\n catch (e) { }\r\n return new AuthPopup(newWin);\r\n}\r\nfunction openAsNewWindowIOS(url, target) {\r\n const el = document.createElement('a');\r\n el.href = url;\r\n el.target = target;\r\n const click = document.createEvent('MouseEvent');\r\n click.initMouseEvent('click', true, true, window, 1, 0, 0, 0, 0, false, false, false, false, 1, null);\r\n el.dispatchEvent(click);\r\n}\n\n/**\r\n * @license\r\n * Copyright 2021 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\n/**\r\n * URL for Authentication widget which will initiate the OAuth handshake\r\n *\r\n * @internal\r\n */\r\nconst WIDGET_PATH = '__/auth/handler';\r\n/**\r\n * URL for emulated environment\r\n *\r\n * @internal\r\n */\r\nconst EMULATOR_WIDGET_PATH = 'emulator/auth/handler';\r\n/**\r\n * Fragment name for the App Check token that gets passed to the widget\r\n *\r\n * @internal\r\n */\r\nconst FIREBASE_APP_CHECK_FRAGMENT_ID = encodeURIComponent('fac');\r\nasync function _getRedirectUrl(auth, provider, authType, redirectUrl, eventId, additionalParams) {\r\n _assert(auth.config.authDomain, auth, \"auth-domain-config-required\" /* AuthErrorCode.MISSING_AUTH_DOMAIN */);\r\n _assert(auth.config.apiKey, auth, \"invalid-api-key\" /* AuthErrorCode.INVALID_API_KEY */);\r\n const params = {\r\n apiKey: auth.config.apiKey,\r\n appName: auth.name,\r\n authType,\r\n redirectUrl,\r\n v: SDK_VERSION,\r\n eventId\r\n };\r\n if (provider instanceof FederatedAuthProvider) {\r\n provider.setDefaultLanguage(auth.languageCode);\r\n params.providerId = provider.providerId || '';\r\n if (!isEmpty(provider.getCustomParameters())) {\r\n params.customParameters = JSON.stringify(provider.getCustomParameters());\r\n }\r\n // TODO set additionalParams from the provider as well?\r\n for (const [key, value] of Object.entries(additionalParams || {})) {\r\n params[key] = value;\r\n }\r\n }\r\n if (provider instanceof BaseOAuthProvider) {\r\n const scopes = provider.getScopes().filter(scope => scope !== '');\r\n if (scopes.length > 0) {\r\n params.scopes = scopes.join(',');\r\n }\r\n }\r\n if (auth.tenantId) {\r\n params.tid = auth.tenantId;\r\n }\r\n // TODO: maybe set eid as endipointId\r\n // TODO: maybe set fw as Frameworks.join(\",\")\r\n const paramsDict = params;\r\n for (const key of Object.keys(paramsDict)) {\r\n if (paramsDict[key] === undefined) {\r\n delete paramsDict[key];\r\n }\r\n }\r\n // Sets the App Check token to pass to the widget\r\n const appCheckToken = await auth._getAppCheckToken();\r\n const appCheckTokenFragment = appCheckToken\r\n ? `#${FIREBASE_APP_CHECK_FRAGMENT_ID}=${encodeURIComponent(appCheckToken)}`\r\n : '';\r\n // Start at index 1 to skip the leading '&' in the query string\r\n return `${getHandlerBase(auth)}?${querystring(paramsDict).slice(1)}${appCheckTokenFragment}`;\r\n}\r\nfunction getHandlerBase({ config }) {\r\n if (!config.emulator) {\r\n return `https://${config.authDomain}/${WIDGET_PATH}`;\r\n }\r\n return _emulatorUrl(config, EMULATOR_WIDGET_PATH);\r\n}\n\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\n/**\r\n * The special web storage event\r\n *\r\n */\r\nconst WEB_STORAGE_SUPPORT_KEY = 'webStorageSupport';\r\nclass BrowserPopupRedirectResolver {\r\n constructor() {\r\n this.eventManagers = {};\r\n this.iframes = {};\r\n this.originValidationPromises = {};\r\n this._redirectPersistence = browserSessionPersistence;\r\n this._completeRedirectFn = _getRedirectResult;\r\n this._overrideRedirectResult = _overrideRedirectResult;\r\n }\r\n // Wrapping in async even though we don't await anywhere in order\r\n // to make sure errors are raised as promise rejections\r\n async _openPopup(auth, provider, authType, eventId) {\r\n var _a;\r\n debugAssert((_a = this.eventManagers[auth._key()]) === null || _a === void 0 ? void 0 : _a.manager, '_initialize() not called before _openPopup()');\r\n const url = await _getRedirectUrl(auth, provider, authType, _getCurrentUrl(), eventId);\r\n return _open(auth, url, _generateEventId());\r\n }\r\n async _openRedirect(auth, provider, authType, eventId) {\r\n await this._originValidation(auth);\r\n const url = await _getRedirectUrl(auth, provider, authType, _getCurrentUrl(), eventId);\r\n _setWindowLocation(url);\r\n return new Promise(() => { });\r\n }\r\n _initialize(auth) {\r\n const key = auth._key();\r\n if (this.eventManagers[key]) {\r\n const { manager, promise } = this.eventManagers[key];\r\n if (manager) {\r\n return Promise.resolve(manager);\r\n }\r\n else {\r\n debugAssert(promise, 'If manager is not set, promise should be');\r\n return promise;\r\n }\r\n }\r\n const promise = this.initAndGetManager(auth);\r\n this.eventManagers[key] = { promise };\r\n // If the promise is rejected, the key should be removed so that the\r\n // operation can be retried later.\r\n promise.catch(() => {\r\n delete this.eventManagers[key];\r\n });\r\n return promise;\r\n }\r\n async initAndGetManager(auth) {\r\n const iframe = await _openIframe(auth);\r\n const manager = new AuthEventManager(auth);\r\n iframe.register('authEvent', (iframeEvent) => {\r\n _assert(iframeEvent === null || iframeEvent === void 0 ? void 0 : iframeEvent.authEvent, auth, \"invalid-auth-event\" /* AuthErrorCode.INVALID_AUTH_EVENT */);\r\n // TODO: Consider splitting redirect and popup events earlier on\r\n const handled = manager.onEvent(iframeEvent.authEvent);\r\n return { status: handled ? \"ACK\" /* GapiOutcome.ACK */ : \"ERROR\" /* GapiOutcome.ERROR */ };\r\n }, gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER);\r\n this.eventManagers[auth._key()] = { manager };\r\n this.iframes[auth._key()] = iframe;\r\n return manager;\r\n }\r\n _isIframeWebStorageSupported(auth, cb) {\r\n const iframe = this.iframes[auth._key()];\r\n iframe.send(WEB_STORAGE_SUPPORT_KEY, { type: WEB_STORAGE_SUPPORT_KEY }, result => {\r\n var _a;\r\n const isSupported = (_a = result === null || result === void 0 ? void 0 : result[0]) === null || _a === void 0 ? void 0 : _a[WEB_STORAGE_SUPPORT_KEY];\r\n if (isSupported !== undefined) {\r\n cb(!!isSupported);\r\n }\r\n _fail(auth, \"internal-error\" /* AuthErrorCode.INTERNAL_ERROR */);\r\n }, gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER);\r\n }\r\n _originValidation(auth) {\r\n const key = auth._key();\r\n if (!this.originValidationPromises[key]) {\r\n this.originValidationPromises[key] = _validateOrigin(auth);\r\n }\r\n return this.originValidationPromises[key];\r\n }\r\n get _shouldInitProactively() {\r\n // Mobile browsers and Safari need to optimistically initialize\r\n return _isMobileBrowser() || _isSafari() || _isIOS();\r\n }\r\n}\r\n/**\r\n * An implementation of {@link PopupRedirectResolver} suitable for browser\r\n * based applications.\r\n *\r\n * @remarks\r\n * This method does not work in a Node.js environment.\r\n *\r\n * @public\r\n */\r\nconst browserPopupRedirectResolver = BrowserPopupRedirectResolver;\n\nclass MultiFactorAssertionImpl {\r\n constructor(factorId) {\r\n this.factorId = factorId;\r\n }\r\n _process(auth, session, displayName) {\r\n switch (session.type) {\r\n case \"enroll\" /* MultiFactorSessionType.ENROLL */:\r\n return this._finalizeEnroll(auth, session.credential, displayName);\r\n case \"signin\" /* MultiFactorSessionType.SIGN_IN */:\r\n return this._finalizeSignIn(auth, session.credential);\r\n default:\r\n return debugFail('unexpected MultiFactorSessionType');\r\n }\r\n }\r\n}\n\n/**\r\n * {@inheritdoc PhoneMultiFactorAssertion}\r\n *\r\n * @public\r\n */\r\nclass PhoneMultiFactorAssertionImpl extends MultiFactorAssertionImpl {\r\n constructor(credential) {\r\n super(\"phone\" /* FactorId.PHONE */);\r\n this.credential = credential;\r\n }\r\n /** @internal */\r\n static _fromCredential(credential) {\r\n return new PhoneMultiFactorAssertionImpl(credential);\r\n }\r\n /** @internal */\r\n _finalizeEnroll(auth, idToken, displayName) {\r\n return finalizeEnrollPhoneMfa(auth, {\r\n idToken,\r\n displayName,\r\n phoneVerificationInfo: this.credential._makeVerificationRequest()\r\n });\r\n }\r\n /** @internal */\r\n _finalizeSignIn(auth, mfaPendingCredential) {\r\n return finalizeSignInPhoneMfa(auth, {\r\n mfaPendingCredential,\r\n phoneVerificationInfo: this.credential._makeVerificationRequest()\r\n });\r\n }\r\n}\r\n/**\r\n * Provider for generating a {@link PhoneMultiFactorAssertion}.\r\n *\r\n * @public\r\n */\r\nclass PhoneMultiFactorGenerator {\r\n constructor() { }\r\n /**\r\n * Provides a {@link PhoneMultiFactorAssertion} to confirm ownership of the phone second factor.\r\n *\r\n * @remarks\r\n * This method does not work in a Node.js environment.\r\n *\r\n * @param phoneAuthCredential - A credential provided by {@link PhoneAuthProvider.credential}.\r\n * @returns A {@link PhoneMultiFactorAssertion} which can be used with\r\n * {@link MultiFactorResolver.resolveSignIn}\r\n */\r\n static assertion(credential) {\r\n return PhoneMultiFactorAssertionImpl._fromCredential(credential);\r\n }\r\n}\r\n/**\r\n * The identifier of the phone second factor: `phone`.\r\n */\r\nPhoneMultiFactorGenerator.FACTOR_ID = 'phone';\n\n/**\r\n * Provider for generating a {@link TotpMultiFactorAssertion}.\r\n *\r\n * @public\r\n */\r\nclass TotpMultiFactorGenerator {\r\n /**\r\n * Provides a {@link TotpMultiFactorAssertion} to confirm ownership of\r\n * the TOTP (time-based one-time password) second factor.\r\n * This assertion is used to complete enrollment in TOTP second factor.\r\n *\r\n * @param secret A {@link TotpSecret} containing the shared secret key and other TOTP parameters.\r\n * @param oneTimePassword One-time password from TOTP App.\r\n * @returns A {@link TotpMultiFactorAssertion} which can be used with\r\n * {@link MultiFactorUser.enroll}.\r\n */\r\n static assertionForEnrollment(secret, oneTimePassword) {\r\n return TotpMultiFactorAssertionImpl._fromSecret(secret, oneTimePassword);\r\n }\r\n /**\r\n * Provides a {@link TotpMultiFactorAssertion} to confirm ownership of the TOTP second factor.\r\n * This assertion is used to complete signIn with TOTP as the second factor.\r\n *\r\n * @param enrollmentId identifies the enrolled TOTP second factor.\r\n * @param oneTimePassword One-time password from TOTP App.\r\n * @returns A {@link TotpMultiFactorAssertion} which can be used with\r\n * {@link MultiFactorResolver.resolveSignIn}.\r\n */\r\n static assertionForSignIn(enrollmentId, oneTimePassword) {\r\n return TotpMultiFactorAssertionImpl._fromEnrollmentId(enrollmentId, oneTimePassword);\r\n }\r\n /**\r\n * Returns a promise to {@link TotpSecret} which contains the TOTP shared secret key and other parameters.\r\n * Creates a TOTP secret as part of enrolling a TOTP second factor.\r\n * Used for generating a QR code URL or inputting into a TOTP app.\r\n * This method uses the auth instance corresponding to the user in the multiFactorSession.\r\n *\r\n * @param session The {@link MultiFactorSession} that the user is part of.\r\n * @returns A promise to {@link TotpSecret}.\r\n */\r\n static async generateSecret(session) {\r\n var _a;\r\n const mfaSession = session;\r\n _assert(typeof ((_a = mfaSession.user) === null || _a === void 0 ? void 0 : _a.auth) !== 'undefined', \"internal-error\" /* AuthErrorCode.INTERNAL_ERROR */);\r\n const response = await startEnrollTotpMfa(mfaSession.user.auth, {\r\n idToken: mfaSession.credential,\r\n totpEnrollmentInfo: {}\r\n });\r\n return TotpSecret._fromStartTotpMfaEnrollmentResponse(response, mfaSession.user.auth);\r\n }\r\n}\r\n/**\r\n * The identifier of the TOTP second factor: `totp`.\r\n */\r\nTotpMultiFactorGenerator.FACTOR_ID = \"totp\" /* FactorId.TOTP */;\r\nclass TotpMultiFactorAssertionImpl extends MultiFactorAssertionImpl {\r\n constructor(otp, enrollmentId, secret) {\r\n super(\"totp\" /* FactorId.TOTP */);\r\n this.otp = otp;\r\n this.enrollmentId = enrollmentId;\r\n this.secret = secret;\r\n }\r\n /** @internal */\r\n static _fromSecret(secret, otp) {\r\n return new TotpMultiFactorAssertionImpl(otp, undefined, secret);\r\n }\r\n /** @internal */\r\n static _fromEnrollmentId(enrollmentId, otp) {\r\n return new TotpMultiFactorAssertionImpl(otp, enrollmentId);\r\n }\r\n /** @internal */\r\n async _finalizeEnroll(auth, idToken, displayName) {\r\n _assert(typeof this.secret !== 'undefined', auth, \"argument-error\" /* AuthErrorCode.ARGUMENT_ERROR */);\r\n return finalizeEnrollTotpMfa(auth, {\r\n idToken,\r\n displayName,\r\n totpVerificationInfo: this.secret._makeTotpVerificationInfo(this.otp)\r\n });\r\n }\r\n /** @internal */\r\n async _finalizeSignIn(auth, mfaPendingCredential) {\r\n _assert(this.enrollmentId !== undefined && this.otp !== undefined, auth, \"argument-error\" /* AuthErrorCode.ARGUMENT_ERROR */);\r\n const totpVerificationInfo = { verificationCode: this.otp };\r\n return finalizeSignInTotpMfa(auth, {\r\n mfaPendingCredential,\r\n mfaEnrollmentId: this.enrollmentId,\r\n totpVerificationInfo\r\n });\r\n }\r\n}\r\n/**\r\n * Provider for generating a {@link TotpMultiFactorAssertion}.\r\n *\r\n * Stores the shared secret key and other parameters to generate time-based OTPs.\r\n * Implements methods to retrieve the shared secret key and generate a QR code URL.\r\n * @public\r\n */\r\nclass TotpSecret {\r\n // The public members are declared outside the constructor so the docs can be generated.\r\n constructor(secretKey, hashingAlgorithm, codeLength, codeIntervalSeconds, enrollmentCompletionDeadline, sessionInfo, auth) {\r\n this.sessionInfo = sessionInfo;\r\n this.auth = auth;\r\n this.secretKey = secretKey;\r\n this.hashingAlgorithm = hashingAlgorithm;\r\n this.codeLength = codeLength;\r\n this.codeIntervalSeconds = codeIntervalSeconds;\r\n this.enrollmentCompletionDeadline = enrollmentCompletionDeadline;\r\n }\r\n /** @internal */\r\n static _fromStartTotpMfaEnrollmentResponse(response, auth) {\r\n return new TotpSecret(response.totpSessionInfo.sharedSecretKey, response.totpSessionInfo.hashingAlgorithm, response.totpSessionInfo.verificationCodeLength, response.totpSessionInfo.periodSec, new Date(response.totpSessionInfo.finalizeEnrollmentTime).toUTCString(), response.totpSessionInfo.sessionInfo, auth);\r\n }\r\n /** @internal */\r\n _makeTotpVerificationInfo(otp) {\r\n return { sessionInfo: this.sessionInfo, verificationCode: otp };\r\n }\r\n /**\r\n * Returns a QR code URL as described in\r\n * https://github.com/google/google-authenticator/wiki/Key-Uri-Format\r\n * This can be displayed to the user as a QR code to be scanned into a TOTP app like Google Authenticator.\r\n * If the optional parameters are unspecified, an accountName of and issuer of are used.\r\n *\r\n * @param accountName the name of the account/app along with a user identifier.\r\n * @param issuer issuer of the TOTP (likely the app name).\r\n * @returns A QR code URL string.\r\n */\r\n generateQrCodeUrl(accountName, issuer) {\r\n var _a;\r\n let useDefaults = false;\r\n if (_isEmptyString(accountName) || _isEmptyString(issuer)) {\r\n useDefaults = true;\r\n }\r\n if (useDefaults) {\r\n if (_isEmptyString(accountName)) {\r\n accountName = ((_a = this.auth.currentUser) === null || _a === void 0 ? void 0 : _a.email) || 'unknownuser';\r\n }\r\n if (_isEmptyString(issuer)) {\r\n issuer = this.auth.name;\r\n }\r\n }\r\n return `otpauth://totp/${issuer}:${accountName}?secret=${this.secretKey}&issuer=${issuer}&algorithm=${this.hashingAlgorithm}&digits=${this.codeLength}`;\r\n }\r\n}\r\n/** @internal */\r\nfunction _isEmptyString(input) {\r\n return typeof input === 'undefined' || (input === null || input === void 0 ? void 0 : input.length) === 0;\r\n}\n\nvar name = \"@firebase/auth\";\nvar version = \"1.5.1\";\n\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\nclass AuthInterop {\r\n constructor(auth) {\r\n this.auth = auth;\r\n this.internalListeners = new Map();\r\n }\r\n getUid() {\r\n var _a;\r\n this.assertAuthConfigured();\r\n return ((_a = this.auth.currentUser) === null || _a === void 0 ? void 0 : _a.uid) || null;\r\n }\r\n async getToken(forceRefresh) {\r\n this.assertAuthConfigured();\r\n await this.auth._initializationPromise;\r\n if (!this.auth.currentUser) {\r\n return null;\r\n }\r\n const accessToken = await this.auth.currentUser.getIdToken(forceRefresh);\r\n return { accessToken };\r\n }\r\n addAuthTokenListener(listener) {\r\n this.assertAuthConfigured();\r\n if (this.internalListeners.has(listener)) {\r\n return;\r\n }\r\n const unsubscribe = this.auth.onIdTokenChanged(user => {\r\n listener((user === null || user === void 0 ? void 0 : user.stsTokenManager.accessToken) || null);\r\n });\r\n this.internalListeners.set(listener, unsubscribe);\r\n this.updateProactiveRefresh();\r\n }\r\n removeAuthTokenListener(listener) {\r\n this.assertAuthConfigured();\r\n const unsubscribe = this.internalListeners.get(listener);\r\n if (!unsubscribe) {\r\n return;\r\n }\r\n this.internalListeners.delete(listener);\r\n unsubscribe();\r\n this.updateProactiveRefresh();\r\n }\r\n assertAuthConfigured() {\r\n _assert(this.auth._initializationPromise, \"dependent-sdk-initialized-before-auth\" /* AuthErrorCode.DEPENDENT_SDK_INIT_BEFORE_AUTH */);\r\n }\r\n updateProactiveRefresh() {\r\n if (this.internalListeners.size > 0) {\r\n this.auth._startProactiveRefresh();\r\n }\r\n else {\r\n this.auth._stopProactiveRefresh();\r\n }\r\n }\r\n}\n\n/**\r\n * @license\r\n * Copyright 2020 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\nfunction getVersionForPlatform(clientPlatform) {\r\n switch (clientPlatform) {\r\n case \"Node\" /* ClientPlatform.NODE */:\r\n return 'node';\r\n case \"ReactNative\" /* ClientPlatform.REACT_NATIVE */:\r\n return 'rn';\r\n case \"Worker\" /* ClientPlatform.WORKER */:\r\n return 'webworker';\r\n case \"Cordova\" /* ClientPlatform.CORDOVA */:\r\n return 'cordova';\r\n default:\r\n return undefined;\r\n }\r\n}\r\n/** @internal */\r\nfunction registerAuth(clientPlatform) {\r\n _registerComponent(new Component(\"auth\" /* _ComponentName.AUTH */, (container, { options: deps }) => {\r\n const app = container.getProvider('app').getImmediate();\r\n const heartbeatServiceProvider = container.getProvider('heartbeat');\r\n const appCheckServiceProvider = container.getProvider('app-check-internal');\r\n const { apiKey, authDomain } = app.options;\r\n _assert(apiKey && !apiKey.includes(':'), \"invalid-api-key\" /* AuthErrorCode.INVALID_API_KEY */, { appName: app.name });\r\n const config = {\r\n apiKey,\r\n authDomain,\r\n clientPlatform,\r\n apiHost: \"identitytoolkit.googleapis.com\" /* DefaultConfig.API_HOST */,\r\n tokenApiHost: \"securetoken.googleapis.com\" /* DefaultConfig.TOKEN_API_HOST */,\r\n apiScheme: \"https\" /* DefaultConfig.API_SCHEME */,\r\n sdkClientVersion: _getClientVersion(clientPlatform)\r\n };\r\n const authInstance = new AuthImpl(app, heartbeatServiceProvider, appCheckServiceProvider, config);\r\n _initializeAuthInstance(authInstance, deps);\r\n return authInstance;\r\n }, \"PUBLIC\" /* ComponentType.PUBLIC */)\r\n /**\r\n * Auth can only be initialized by explicitly calling getAuth() or initializeAuth()\r\n * For why we do this, See go/firebase-next-auth-init\r\n */\r\n .setInstantiationMode(\"EXPLICIT\" /* InstantiationMode.EXPLICIT */)\r\n /**\r\n * Because all firebase products that depend on auth depend on auth-internal directly,\r\n * we need to initialize auth-internal after auth is initialized to make it available to other firebase products.\r\n */\r\n .setInstanceCreatedCallback((container, _instanceIdentifier, _instance) => {\r\n const authInternalProvider = container.getProvider(\"auth-internal\" /* _ComponentName.AUTH_INTERNAL */);\r\n authInternalProvider.initialize();\r\n }));\r\n _registerComponent(new Component(\"auth-internal\" /* _ComponentName.AUTH_INTERNAL */, container => {\r\n const auth = _castAuth(container.getProvider(\"auth\" /* _ComponentName.AUTH */).getImmediate());\r\n return (auth => new AuthInterop(auth))(auth);\r\n }, \"PRIVATE\" /* ComponentType.PRIVATE */).setInstantiationMode(\"EXPLICIT\" /* InstantiationMode.EXPLICIT */));\r\n registerVersion(name, version, getVersionForPlatform(clientPlatform));\r\n // BUILD_TARGET will be replaced by values like esm5, esm2017, cjs5, etc during the compilation\r\n registerVersion(name, version, 'esm2017');\r\n}\n\n/**\r\n * @license\r\n * Copyright 2021 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\nconst DEFAULT_ID_TOKEN_MAX_AGE = 5 * 60;\r\nconst authIdTokenMaxAge = getExperimentalSetting('authIdTokenMaxAge') || DEFAULT_ID_TOKEN_MAX_AGE;\r\nlet lastPostedIdToken = null;\r\nconst mintCookieFactory = (url) => async (user) => {\r\n const idTokenResult = user && (await user.getIdTokenResult());\r\n const idTokenAge = idTokenResult &&\r\n (new Date().getTime() - Date.parse(idTokenResult.issuedAtTime)) / 1000;\r\n if (idTokenAge && idTokenAge > authIdTokenMaxAge) {\r\n return;\r\n }\r\n // Specifically trip null => undefined when logged out, to delete any existing cookie\r\n const idToken = idTokenResult === null || idTokenResult === void 0 ? void 0 : idTokenResult.token;\r\n if (lastPostedIdToken === idToken) {\r\n return;\r\n }\r\n lastPostedIdToken = idToken;\r\n await fetch(url, {\r\n method: idToken ? 'POST' : 'DELETE',\r\n headers: idToken\r\n ? {\r\n 'Authorization': `Bearer ${idToken}`\r\n }\r\n : {}\r\n });\r\n};\r\n/**\r\n * Returns the Auth instance associated with the provided {@link @firebase/app#FirebaseApp}.\r\n * If no instance exists, initializes an Auth instance with platform-specific default dependencies.\r\n *\r\n * @param app - The Firebase App.\r\n *\r\n * @public\r\n */\r\nfunction getAuth(app = getApp()) {\r\n const provider = _getProvider(app, 'auth');\r\n if (provider.isInitialized()) {\r\n return provider.getImmediate();\r\n }\r\n const auth = initializeAuth(app, {\r\n popupRedirectResolver: browserPopupRedirectResolver,\r\n persistence: [\r\n indexedDBLocalPersistence,\r\n browserLocalPersistence,\r\n browserSessionPersistence\r\n ]\r\n });\r\n const authTokenSyncUrl = getExperimentalSetting('authTokenSyncURL');\r\n if (authTokenSyncUrl) {\r\n const mintCookie = mintCookieFactory(authTokenSyncUrl);\r\n beforeAuthStateChanged(auth, mintCookie, () => mintCookie(auth.currentUser));\r\n onIdTokenChanged(auth, user => mintCookie(user));\r\n }\r\n const authEmulatorHost = getDefaultEmulatorHost('auth');\r\n if (authEmulatorHost) {\r\n connectAuthEmulator(auth, `http://${authEmulatorHost}`);\r\n }\r\n return auth;\r\n}\r\nregisterAuth(\"Browser\" /* ClientPlatform.BROWSER */);\n\nexport { TwitterAuthProvider as $, ActionCodeOperation as A, updateCurrentUser as B, signOut as C, revokeAccessToken as D, deleteUser as E, FactorId as F, debugErrorMap as G, prodErrorMap as H, AUTH_ERROR_CODES_MAP_DO_NOT_USE_INTERNALLY as I, initializeAuth as J, connectAuthEmulator as K, AuthCredential as L, EmailAuthCredential as M, OAuthCredential as N, OperationType as O, PhoneAuthProvider as P, PhoneAuthCredential as Q, RecaptchaVerifier as R, SignInMethod as S, TotpMultiFactorGenerator as T, inMemoryPersistence as U, EmailAuthProvider as V, FacebookAuthProvider as W, GoogleAuthProvider as X, GithubAuthProvider as Y, OAuthProvider as Z, SAMLAuthProvider as _, browserSessionPersistence as a, signInAnonymously as a0, signInWithCredential as a1, linkWithCredential as a2, reauthenticateWithCredential as a3, signInWithCustomToken as a4, sendPasswordResetEmail as a5, confirmPasswordReset as a6, applyActionCode as a7, checkActionCode as a8, verifyPasswordResetCode as a9, _isIOS7Or8 as aA, _createError as aB, _assert as aC, AuthEventManager as aD, _getInstance as aE, _persistenceKeyName as aF, _getRedirectResult as aG, _overrideRedirectResult as aH, _clearRedirectOutcomes as aI, _castAuth as aJ, UserImpl as aK, AuthImpl as aL, _getClientVersion as aM, _generateEventId as aN, AuthPopup as aO, FetchProvider as aP, SAMLAuthCredential as aQ, createUserWithEmailAndPassword as aa, signInWithEmailAndPassword as ab, sendSignInLinkToEmail as ac, isSignInWithEmailLink as ad, signInWithEmailLink as ae, fetchSignInMethodsForEmail as af, sendEmailVerification as ag, verifyBeforeUpdateEmail as ah, ActionCodeURL as ai, parseActionCodeURL as aj, updateProfile as ak, updateEmail as al, updatePassword as am, getIdToken as an, getIdTokenResult as ao, unlink as ap, getAdditionalUserInfo as aq, reload as ar, getMultiFactorResolver as as, multiFactor as at, debugAssert as au, _isIOS as av, _isAndroid as aw, _fail as ax, _getRedirectUrl as ay, _getProjectConfig as az, browserLocalPersistence as b, signInWithPopup as c, linkWithPopup as d, reauthenticateWithPopup as e, signInWithRedirect as f, linkWithRedirect as g, reauthenticateWithRedirect as h, indexedDBLocalPersistence as i, getRedirectResult as j, browserPopupRedirectResolver as k, linkWithPhoneNumber as l, PhoneMultiFactorGenerator as m, TotpSecret as n, getAuth as o, ProviderId as p, setPersistence as q, reauthenticateWithPhoneNumber as r, signInWithPhoneNumber as s, initializeRecaptchaConfig as t, updatePhoneNumber as u, validatePassword as v, onIdTokenChanged as w, beforeAuthStateChanged as x, onAuthStateChanged as y, useDeviceLanguage as z };\n//# sourceMappingURL=index-dd468b12.js.map\n","/**\n * @license\n * Copyright 2021 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/**\n * An enum of factors that may be used for multifactor authentication.\n *\n * @public\n */\nexport const FactorId = {\n /** Phone as second factor */\n PHONE: 'phone',\n TOTP: 'totp'\n} as const;\n\n/**\n * Enumeration of supported providers.\n *\n * @public\n */\nexport const ProviderId = {\n /** Facebook provider ID */\n FACEBOOK: 'facebook.com',\n /** GitHub provider ID */\n GITHUB: 'github.com',\n /** Google provider ID */\n GOOGLE: 'google.com',\n /** Password provider */\n PASSWORD: 'password',\n /** Phone provider */\n PHONE: 'phone',\n /** Twitter provider ID */\n TWITTER: 'twitter.com'\n} as const;\n\n/**\n * Enumeration of supported sign-in methods.\n *\n * @public\n */\nexport const SignInMethod = {\n /** Email link sign in method */\n EMAIL_LINK: 'emailLink',\n /** Email/password sign in method */\n EMAIL_PASSWORD: 'password',\n /** Facebook sign in method */\n FACEBOOK: 'facebook.com',\n /** GitHub sign in method */\n GITHUB: 'github.com',\n /** Google sign in method */\n GOOGLE: 'google.com',\n /** Phone sign in method */\n PHONE: 'phone',\n /** Twitter sign in method */\n TWITTER: 'twitter.com'\n} as const;\n\n/**\n * Enumeration of supported operation types.\n *\n * @public\n */\nexport const OperationType = {\n /** Operation involving linking an additional provider to an already signed-in user. */\n LINK: 'link',\n /** Operation involving using a provider to reauthenticate an already signed-in user. */\n REAUTHENTICATE: 'reauthenticate',\n /** Operation involving signing in a user. */\n SIGN_IN: 'signIn'\n} as const;\n\n/**\n * An enumeration of the possible email action types.\n *\n * @public\n */\nexport const ActionCodeOperation = {\n /** The email link sign-in action. */\n EMAIL_SIGNIN: 'EMAIL_SIGNIN',\n /** The password reset action. */\n PASSWORD_RESET: 'PASSWORD_RESET',\n /** The email revocation action. */\n RECOVER_EMAIL: 'RECOVER_EMAIL',\n /** The revert second factor addition email action. */\n REVERT_SECOND_FACTOR_ADDITION: 'REVERT_SECOND_FACTOR_ADDITION',\n /** The revert second factor addition email action. */\n VERIFY_AND_CHANGE_EMAIL: 'VERIFY_AND_CHANGE_EMAIL',\n /** The email verification action. */\n VERIFY_EMAIL: 'VERIFY_EMAIL'\n} as const;\n","/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { AuthErrorMap, User } from '../model/public_types';\nimport { ErrorFactory, ErrorMap } from '@firebase/util';\n\nimport { IdTokenMfaResponse } from '../api/authentication/mfa';\nimport { AppName } from '../model/auth';\nimport { AuthCredential } from './credentials';\n\n/**\n * Enumeration of Firebase Auth error codes.\n *\n * @internal\n */\nexport const enum AuthErrorCode {\n ADMIN_ONLY_OPERATION = 'admin-restricted-operation',\n ARGUMENT_ERROR = 'argument-error',\n APP_NOT_AUTHORIZED = 'app-not-authorized',\n APP_NOT_INSTALLED = 'app-not-installed',\n CAPTCHA_CHECK_FAILED = 'captcha-check-failed',\n CODE_EXPIRED = 'code-expired',\n CORDOVA_NOT_READY = 'cordova-not-ready',\n CORS_UNSUPPORTED = 'cors-unsupported',\n CREDENTIAL_ALREADY_IN_USE = 'credential-already-in-use',\n CREDENTIAL_MISMATCH = 'custom-token-mismatch',\n CREDENTIAL_TOO_OLD_LOGIN_AGAIN = 'requires-recent-login',\n DEPENDENT_SDK_INIT_BEFORE_AUTH = 'dependent-sdk-initialized-before-auth',\n DYNAMIC_LINK_NOT_ACTIVATED = 'dynamic-link-not-activated',\n EMAIL_CHANGE_NEEDS_VERIFICATION = 'email-change-needs-verification',\n EMAIL_EXISTS = 'email-already-in-use',\n EMULATOR_CONFIG_FAILED = 'emulator-config-failed',\n EXPIRED_OOB_CODE = 'expired-action-code',\n EXPIRED_POPUP_REQUEST = 'cancelled-popup-request',\n INTERNAL_ERROR = 'internal-error',\n INVALID_API_KEY = 'invalid-api-key',\n INVALID_APP_CREDENTIAL = 'invalid-app-credential',\n INVALID_APP_ID = 'invalid-app-id',\n INVALID_AUTH = 'invalid-user-token',\n INVALID_AUTH_EVENT = 'invalid-auth-event',\n INVALID_CERT_HASH = 'invalid-cert-hash',\n INVALID_CODE = 'invalid-verification-code',\n INVALID_CONTINUE_URI = 'invalid-continue-uri',\n INVALID_CORDOVA_CONFIGURATION = 'invalid-cordova-configuration',\n INVALID_CUSTOM_TOKEN = 'invalid-custom-token',\n INVALID_DYNAMIC_LINK_DOMAIN = 'invalid-dynamic-link-domain',\n INVALID_EMAIL = 'invalid-email',\n INVALID_EMULATOR_SCHEME = 'invalid-emulator-scheme',\n INVALID_CREDENTIAL = 'invalid-credential',\n INVALID_MESSAGE_PAYLOAD = 'invalid-message-payload',\n INVALID_MFA_SESSION = 'invalid-multi-factor-session',\n INVALID_OAUTH_CLIENT_ID = 'invalid-oauth-client-id',\n INVALID_OAUTH_PROVIDER = 'invalid-oauth-provider',\n INVALID_OOB_CODE = 'invalid-action-code',\n INVALID_ORIGIN = 'unauthorized-domain',\n INVALID_PASSWORD = 'wrong-password',\n INVALID_PERSISTENCE = 'invalid-persistence-type',\n INVALID_PHONE_NUMBER = 'invalid-phone-number',\n INVALID_PROVIDER_ID = 'invalid-provider-id',\n INVALID_RECIPIENT_EMAIL = 'invalid-recipient-email',\n INVALID_SENDER = 'invalid-sender',\n INVALID_SESSION_INFO = 'invalid-verification-id',\n INVALID_TENANT_ID = 'invalid-tenant-id',\n LOGIN_BLOCKED = 'login-blocked',\n MFA_INFO_NOT_FOUND = 'multi-factor-info-not-found',\n MFA_REQUIRED = 'multi-factor-auth-required',\n MISSING_ANDROID_PACKAGE_NAME = 'missing-android-pkg-name',\n MISSING_APP_CREDENTIAL = 'missing-app-credential',\n MISSING_AUTH_DOMAIN = 'auth-domain-config-required',\n MISSING_CODE = 'missing-verification-code',\n MISSING_CONTINUE_URI = 'missing-continue-uri',\n MISSING_IFRAME_START = 'missing-iframe-start',\n MISSING_IOS_BUNDLE_ID = 'missing-ios-bundle-id',\n MISSING_OR_INVALID_NONCE = 'missing-or-invalid-nonce',\n MISSING_MFA_INFO = 'missing-multi-factor-info',\n MISSING_MFA_SESSION = 'missing-multi-factor-session',\n MISSING_PHONE_NUMBER = 'missing-phone-number',\n MISSING_PASSWORD = 'missing-password',\n MISSING_SESSION_INFO = 'missing-verification-id',\n MODULE_DESTROYED = 'app-deleted',\n NEED_CONFIRMATION = 'account-exists-with-different-credential',\n NETWORK_REQUEST_FAILED = 'network-request-failed',\n NULL_USER = 'null-user',\n NO_AUTH_EVENT = 'no-auth-event',\n NO_SUCH_PROVIDER = 'no-such-provider',\n OPERATION_NOT_ALLOWED = 'operation-not-allowed',\n OPERATION_NOT_SUPPORTED = 'operation-not-supported-in-this-environment',\n POPUP_BLOCKED = 'popup-blocked',\n POPUP_CLOSED_BY_USER = 'popup-closed-by-user',\n PROVIDER_ALREADY_LINKED = 'provider-already-linked',\n QUOTA_EXCEEDED = 'quota-exceeded',\n REDIRECT_CANCELLED_BY_USER = 'redirect-cancelled-by-user',\n REDIRECT_OPERATION_PENDING = 'redirect-operation-pending',\n REJECTED_CREDENTIAL = 'rejected-credential',\n SECOND_FACTOR_ALREADY_ENROLLED = 'second-factor-already-in-use',\n SECOND_FACTOR_LIMIT_EXCEEDED = 'maximum-second-factor-count-exceeded',\n TENANT_ID_MISMATCH = 'tenant-id-mismatch',\n TIMEOUT = 'timeout',\n TOKEN_EXPIRED = 'user-token-expired',\n TOO_MANY_ATTEMPTS_TRY_LATER = 'too-many-requests',\n UNAUTHORIZED_DOMAIN = 'unauthorized-continue-uri',\n UNSUPPORTED_FIRST_FACTOR = 'unsupported-first-factor',\n UNSUPPORTED_PERSISTENCE = 'unsupported-persistence-type',\n UNSUPPORTED_TENANT_OPERATION = 'unsupported-tenant-operation',\n UNVERIFIED_EMAIL = 'unverified-email',\n USER_CANCELLED = 'user-cancelled',\n USER_DELETED = 'user-not-found',\n USER_DISABLED = 'user-disabled',\n USER_MISMATCH = 'user-mismatch',\n USER_SIGNED_OUT = 'user-signed-out',\n WEAK_PASSWORD = 'weak-password',\n WEB_STORAGE_UNSUPPORTED = 'web-storage-unsupported',\n ALREADY_INITIALIZED = 'already-initialized',\n RECAPTCHA_NOT_ENABLED = 'recaptcha-not-enabled',\n MISSING_RECAPTCHA_TOKEN = 'missing-recaptcha-token',\n INVALID_RECAPTCHA_TOKEN = 'invalid-recaptcha-token',\n INVALID_RECAPTCHA_ACTION = 'invalid-recaptcha-action',\n MISSING_CLIENT_TYPE = 'missing-client-type',\n MISSING_RECAPTCHA_VERSION = 'missing-recaptcha-version',\n INVALID_RECAPTCHA_VERSION = 'invalid-recaptcha-version',\n INVALID_REQ_TYPE = 'invalid-req-type',\n UNSUPPORTED_PASSWORD_POLICY_SCHEMA_VERSION = 'unsupported-password-policy-schema-version',\n PASSWORD_DOES_NOT_MEET_REQUIREMENTS = 'password-does-not-meet-requirements'\n}\n\nfunction _debugErrorMap(): ErrorMap {\n return {\n [AuthErrorCode.ADMIN_ONLY_OPERATION]:\n 'This operation is restricted to administrators only.',\n [AuthErrorCode.ARGUMENT_ERROR]: '',\n [AuthErrorCode.APP_NOT_AUTHORIZED]:\n \"This app, identified by the domain where it's hosted, is not \" +\n 'authorized to use Firebase Authentication with the provided API key. ' +\n 'Review your key configuration in the Google API console.',\n [AuthErrorCode.APP_NOT_INSTALLED]:\n 'The requested mobile application corresponding to the identifier (' +\n 'Android package name or iOS bundle ID) provided is not installed on ' +\n 'this device.',\n [AuthErrorCode.CAPTCHA_CHECK_FAILED]:\n 'The reCAPTCHA response token provided is either invalid, expired, ' +\n 'already used or the domain associated with it does not match the list ' +\n 'of whitelisted domains.',\n [AuthErrorCode.CODE_EXPIRED]:\n 'The SMS code has expired. Please re-send the verification code to try ' +\n 'again.',\n [AuthErrorCode.CORDOVA_NOT_READY]: 'Cordova framework is not ready.',\n [AuthErrorCode.CORS_UNSUPPORTED]: 'This browser is not supported.',\n [AuthErrorCode.CREDENTIAL_ALREADY_IN_USE]:\n 'This credential is already associated with a different user account.',\n [AuthErrorCode.CREDENTIAL_MISMATCH]:\n 'The custom token corresponds to a different audience.',\n [AuthErrorCode.CREDENTIAL_TOO_OLD_LOGIN_AGAIN]:\n 'This operation is sensitive and requires recent authentication. Log in ' +\n 'again before retrying this request.',\n [AuthErrorCode.DEPENDENT_SDK_INIT_BEFORE_AUTH]:\n 'Another Firebase SDK was initialized and is trying to use Auth before Auth is ' +\n 'initialized. Please be sure to call `initializeAuth` or `getAuth` before ' +\n 'starting any other Firebase SDK.',\n [AuthErrorCode.DYNAMIC_LINK_NOT_ACTIVATED]:\n 'Please activate Dynamic Links in the Firebase Console and agree to the terms and ' +\n 'conditions.',\n [AuthErrorCode.EMAIL_CHANGE_NEEDS_VERIFICATION]:\n 'Multi-factor users must always have a verified email.',\n [AuthErrorCode.EMAIL_EXISTS]:\n 'The email address is already in use by another account.',\n [AuthErrorCode.EMULATOR_CONFIG_FAILED]:\n 'Auth instance has already been used to make a network call. Auth can ' +\n 'no longer be configured to use the emulator. Try calling ' +\n '\"connectAuthEmulator()\" sooner.',\n [AuthErrorCode.EXPIRED_OOB_CODE]: 'The action code has expired.',\n [AuthErrorCode.EXPIRED_POPUP_REQUEST]:\n 'This operation has been cancelled due to another conflicting popup being opened.',\n [AuthErrorCode.INTERNAL_ERROR]: 'An internal AuthError has occurred.',\n [AuthErrorCode.INVALID_APP_CREDENTIAL]:\n 'The phone verification request contains an invalid application verifier.' +\n ' The reCAPTCHA token response is either invalid or expired.',\n [AuthErrorCode.INVALID_APP_ID]:\n 'The mobile app identifier is not registed for the current project.',\n [AuthErrorCode.INVALID_AUTH]:\n \"This user's credential isn't valid for this project. This can happen \" +\n \"if the user's token has been tampered with, or if the user isn't for \" +\n 'the project associated with this API key.',\n [AuthErrorCode.INVALID_AUTH_EVENT]: 'An internal AuthError has occurred.',\n [AuthErrorCode.INVALID_CODE]:\n 'The SMS verification code used to create the phone auth credential is ' +\n 'invalid. Please resend the verification code sms and be sure to use the ' +\n 'verification code provided by the user.',\n [AuthErrorCode.INVALID_CONTINUE_URI]:\n 'The continue URL provided in the request is invalid.',\n [AuthErrorCode.INVALID_CORDOVA_CONFIGURATION]:\n 'The following Cordova plugins must be installed to enable OAuth sign-in: ' +\n 'cordova-plugin-buildinfo, cordova-universal-links-plugin, ' +\n 'cordova-plugin-browsertab, cordova-plugin-inappbrowser and ' +\n 'cordova-plugin-customurlscheme.',\n [AuthErrorCode.INVALID_CUSTOM_TOKEN]:\n 'The custom token format is incorrect. Please check the documentation.',\n [AuthErrorCode.INVALID_DYNAMIC_LINK_DOMAIN]:\n 'The provided dynamic link domain is not configured or authorized for the current project.',\n [AuthErrorCode.INVALID_EMAIL]: 'The email address is badly formatted.',\n [AuthErrorCode.INVALID_EMULATOR_SCHEME]:\n 'Emulator URL must start with a valid scheme (http:// or https://).',\n [AuthErrorCode.INVALID_API_KEY]:\n 'Your API key is invalid, please check you have copied it correctly.',\n [AuthErrorCode.INVALID_CERT_HASH]:\n 'The SHA-1 certificate hash provided is invalid.',\n [AuthErrorCode.INVALID_CREDENTIAL]:\n 'The supplied auth credential is incorrect, malformed or has expired.',\n [AuthErrorCode.INVALID_MESSAGE_PAYLOAD]:\n 'The email template corresponding to this action contains invalid characters in its message. ' +\n 'Please fix by going to the Auth email templates section in the Firebase Console.',\n [AuthErrorCode.INVALID_MFA_SESSION]:\n 'The request does not contain a valid proof of first factor successful sign-in.',\n [AuthErrorCode.INVALID_OAUTH_PROVIDER]:\n 'EmailAuthProvider is not supported for this operation. This operation ' +\n 'only supports OAuth providers.',\n [AuthErrorCode.INVALID_OAUTH_CLIENT_ID]:\n 'The OAuth client ID provided is either invalid or does not match the ' +\n 'specified API key.',\n [AuthErrorCode.INVALID_ORIGIN]:\n 'This domain is not authorized for OAuth operations for your Firebase ' +\n 'project. Edit the list of authorized domains from the Firebase console.',\n [AuthErrorCode.INVALID_OOB_CODE]:\n 'The action code is invalid. This can happen if the code is malformed, ' +\n 'expired, or has already been used.',\n [AuthErrorCode.INVALID_PASSWORD]:\n 'The password is invalid or the user does not have a password.',\n [AuthErrorCode.INVALID_PERSISTENCE]:\n 'The specified persistence type is invalid. It can only be local, session or none.',\n [AuthErrorCode.INVALID_PHONE_NUMBER]:\n 'The format of the phone number provided is incorrect. Please enter the ' +\n 'phone number in a format that can be parsed into E.164 format. E.164 ' +\n 'phone numbers are written in the format [+][country code][subscriber ' +\n 'number including area code].',\n [AuthErrorCode.INVALID_PROVIDER_ID]:\n 'The specified provider ID is invalid.',\n [AuthErrorCode.INVALID_RECIPIENT_EMAIL]:\n 'The email corresponding to this action failed to send as the provided ' +\n 'recipient email address is invalid.',\n [AuthErrorCode.INVALID_SENDER]:\n 'The email template corresponding to this action contains an invalid sender email or name. ' +\n 'Please fix by going to the Auth email templates section in the Firebase Console.',\n [AuthErrorCode.INVALID_SESSION_INFO]:\n 'The verification ID used to create the phone auth credential is invalid.',\n [AuthErrorCode.INVALID_TENANT_ID]:\n \"The Auth instance's tenant ID is invalid.\",\n [AuthErrorCode.LOGIN_BLOCKED]:\n 'Login blocked by user-provided method: {$originalMessage}',\n [AuthErrorCode.MISSING_ANDROID_PACKAGE_NAME]:\n 'An Android Package Name must be provided if the Android App is required to be installed.',\n [AuthErrorCode.MISSING_AUTH_DOMAIN]:\n 'Be sure to include authDomain when calling firebase.initializeApp(), ' +\n 'by following the instructions in the Firebase console.',\n [AuthErrorCode.MISSING_APP_CREDENTIAL]:\n 'The phone verification request is missing an application verifier ' +\n 'assertion. A reCAPTCHA response token needs to be provided.',\n [AuthErrorCode.MISSING_CODE]:\n 'The phone auth credential was created with an empty SMS verification code.',\n [AuthErrorCode.MISSING_CONTINUE_URI]:\n 'A continue URL must be provided in the request.',\n [AuthErrorCode.MISSING_IFRAME_START]: 'An internal AuthError has occurred.',\n [AuthErrorCode.MISSING_IOS_BUNDLE_ID]:\n 'An iOS Bundle ID must be provided if an App Store ID is provided.',\n [AuthErrorCode.MISSING_OR_INVALID_NONCE]:\n 'The request does not contain a valid nonce. This can occur if the ' +\n 'SHA-256 hash of the provided raw nonce does not match the hashed nonce ' +\n 'in the ID token payload.',\n [AuthErrorCode.MISSING_PASSWORD]: 'A non-empty password must be provided',\n [AuthErrorCode.MISSING_MFA_INFO]:\n 'No second factor identifier is provided.',\n [AuthErrorCode.MISSING_MFA_SESSION]:\n 'The request is missing proof of first factor successful sign-in.',\n [AuthErrorCode.MISSING_PHONE_NUMBER]:\n 'To send verification codes, provide a phone number for the recipient.',\n [AuthErrorCode.MISSING_SESSION_INFO]:\n 'The phone auth credential was created with an empty verification ID.',\n [AuthErrorCode.MODULE_DESTROYED]:\n 'This instance of FirebaseApp has been deleted.',\n [AuthErrorCode.MFA_INFO_NOT_FOUND]:\n 'The user does not have a second factor matching the identifier provided.',\n [AuthErrorCode.MFA_REQUIRED]:\n 'Proof of ownership of a second factor is required to complete sign-in.',\n [AuthErrorCode.NEED_CONFIRMATION]:\n 'An account already exists with the same email address but different ' +\n 'sign-in credentials. Sign in using a provider associated with this ' +\n 'email address.',\n [AuthErrorCode.NETWORK_REQUEST_FAILED]:\n 'A network AuthError (such as timeout, interrupted connection or unreachable host) has occurred.',\n [AuthErrorCode.NO_AUTH_EVENT]: 'An internal AuthError has occurred.',\n [AuthErrorCode.NO_SUCH_PROVIDER]:\n 'User was not linked to an account with the given provider.',\n [AuthErrorCode.NULL_USER]:\n 'A null user object was provided as the argument for an operation which ' +\n 'requires a non-null user object.',\n [AuthErrorCode.OPERATION_NOT_ALLOWED]:\n 'The given sign-in provider is disabled for this Firebase project. ' +\n 'Enable it in the Firebase console, under the sign-in method tab of the ' +\n 'Auth section.',\n [AuthErrorCode.OPERATION_NOT_SUPPORTED]:\n 'This operation is not supported in the environment this application is ' +\n 'running on. \"location.protocol\" must be http, https or chrome-extension' +\n ' and web storage must be enabled.',\n [AuthErrorCode.POPUP_BLOCKED]:\n 'Unable to establish a connection with the popup. It may have been blocked by the browser.',\n [AuthErrorCode.POPUP_CLOSED_BY_USER]:\n 'The popup has been closed by the user before finalizing the operation.',\n [AuthErrorCode.PROVIDER_ALREADY_LINKED]:\n 'User can only be linked to one identity for the given provider.',\n [AuthErrorCode.QUOTA_EXCEEDED]:\n \"The project's quota for this operation has been exceeded.\",\n [AuthErrorCode.REDIRECT_CANCELLED_BY_USER]:\n 'The redirect operation has been cancelled by the user before finalizing.',\n [AuthErrorCode.REDIRECT_OPERATION_PENDING]:\n 'A redirect sign-in operation is already pending.',\n [AuthErrorCode.REJECTED_CREDENTIAL]:\n 'The request contains malformed or mismatching credentials.',\n [AuthErrorCode.SECOND_FACTOR_ALREADY_ENROLLED]:\n 'The second factor is already enrolled on this account.',\n [AuthErrorCode.SECOND_FACTOR_LIMIT_EXCEEDED]:\n 'The maximum allowed number of second factors on a user has been exceeded.',\n [AuthErrorCode.TENANT_ID_MISMATCH]:\n \"The provided tenant ID does not match the Auth instance's tenant ID\",\n [AuthErrorCode.TIMEOUT]: 'The operation has timed out.',\n [AuthErrorCode.TOKEN_EXPIRED]:\n \"The user's credential is no longer valid. The user must sign in again.\",\n [AuthErrorCode.TOO_MANY_ATTEMPTS_TRY_LATER]:\n 'We have blocked all requests from this device due to unusual activity. ' +\n 'Try again later.',\n [AuthErrorCode.UNAUTHORIZED_DOMAIN]:\n 'The domain of the continue URL is not whitelisted. Please whitelist ' +\n 'the domain in the Firebase console.',\n [AuthErrorCode.UNSUPPORTED_FIRST_FACTOR]:\n 'Enrolling a second factor or signing in with a multi-factor account requires sign-in with a supported first factor.',\n [AuthErrorCode.UNSUPPORTED_PERSISTENCE]:\n 'The current environment does not support the specified persistence type.',\n [AuthErrorCode.UNSUPPORTED_TENANT_OPERATION]:\n 'This operation is not supported in a multi-tenant context.',\n [AuthErrorCode.UNVERIFIED_EMAIL]:\n 'The operation requires a verified email.',\n [AuthErrorCode.USER_CANCELLED]:\n 'The user did not grant your application the permissions it requested.',\n [AuthErrorCode.USER_DELETED]:\n 'There is no user record corresponding to this identifier. The user may ' +\n 'have been deleted.',\n [AuthErrorCode.USER_DISABLED]:\n 'The user account has been disabled by an administrator.',\n [AuthErrorCode.USER_MISMATCH]:\n 'The supplied credentials do not correspond to the previously signed in user.',\n [AuthErrorCode.USER_SIGNED_OUT]: '',\n [AuthErrorCode.WEAK_PASSWORD]:\n 'The password must be 6 characters long or more.',\n [AuthErrorCode.WEB_STORAGE_UNSUPPORTED]:\n 'This browser is not supported or 3rd party cookies and data may be disabled.',\n [AuthErrorCode.ALREADY_INITIALIZED]:\n 'initializeAuth() has already been called with ' +\n 'different options. To avoid this error, call initializeAuth() with the ' +\n 'same options as when it was originally called, or call getAuth() to return the' +\n ' already initialized instance.',\n [AuthErrorCode.MISSING_RECAPTCHA_TOKEN]:\n 'The reCAPTCHA token is missing when sending request to the backend.',\n [AuthErrorCode.INVALID_RECAPTCHA_TOKEN]:\n 'The reCAPTCHA token is invalid when sending request to the backend.',\n [AuthErrorCode.INVALID_RECAPTCHA_ACTION]:\n 'The reCAPTCHA action is invalid when sending request to the backend.',\n [AuthErrorCode.RECAPTCHA_NOT_ENABLED]:\n 'reCAPTCHA Enterprise integration is not enabled for this project.',\n [AuthErrorCode.MISSING_CLIENT_TYPE]:\n 'The reCAPTCHA client type is missing when sending request to the backend.',\n [AuthErrorCode.MISSING_RECAPTCHA_VERSION]:\n 'The reCAPTCHA version is missing when sending request to the backend.',\n [AuthErrorCode.INVALID_REQ_TYPE]: 'Invalid request parameters.',\n [AuthErrorCode.INVALID_RECAPTCHA_VERSION]:\n 'The reCAPTCHA version is invalid when sending request to the backend.',\n [AuthErrorCode.UNSUPPORTED_PASSWORD_POLICY_SCHEMA_VERSION]:\n 'The password policy received from the backend uses a schema version that is not supported by this version of the Firebase SDK.',\n [AuthErrorCode.PASSWORD_DOES_NOT_MEET_REQUIREMENTS]:\n 'The password does not meet the requirements.'\n };\n}\n\nexport interface ErrorMapRetriever extends AuthErrorMap {\n (): ErrorMap;\n}\n\nfunction _prodErrorMap(): ErrorMap {\n // We will include this one message in the prod error map since by the very\n // nature of this error, developers will never be able to see the message\n // using the debugErrorMap (which is installed during auth initialization).\n return {\n [AuthErrorCode.DEPENDENT_SDK_INIT_BEFORE_AUTH]:\n 'Another Firebase SDK was initialized and is trying to use Auth before Auth is ' +\n 'initialized. Please be sure to call `initializeAuth` or `getAuth` before ' +\n 'starting any other Firebase SDK.'\n } as ErrorMap;\n}\n\n/**\n * A verbose error map with detailed descriptions for most error codes.\n *\n * See discussion at {@link AuthErrorMap}\n *\n * @public\n */\nexport const debugErrorMap: AuthErrorMap = _debugErrorMap;\n\n/**\n * A minimal error map with all verbose error messages stripped.\n *\n * See discussion at {@link AuthErrorMap}\n *\n * @public\n */\nexport const prodErrorMap: AuthErrorMap = _prodErrorMap;\n\nexport interface NamedErrorParams {\n appName: AppName;\n credential?: AuthCredential;\n email?: string;\n phoneNumber?: string;\n tenantId?: string;\n user?: User;\n _serverResponse?: object;\n}\n\n/**\n * @internal\n */\ntype GenericAuthErrorParams = {\n [key in Exclude<\n AuthErrorCode,\n | AuthErrorCode.ARGUMENT_ERROR\n | AuthErrorCode.DEPENDENT_SDK_INIT_BEFORE_AUTH\n | AuthErrorCode.INTERNAL_ERROR\n | AuthErrorCode.MFA_REQUIRED\n | AuthErrorCode.NO_AUTH_EVENT\n | AuthErrorCode.OPERATION_NOT_SUPPORTED\n >]: {\n appName?: AppName;\n email?: string;\n phoneNumber?: string;\n message?: string;\n };\n};\n\n/**\n * @internal\n */\nexport interface AuthErrorParams extends GenericAuthErrorParams {\n [AuthErrorCode.ARGUMENT_ERROR]: { appName?: AppName };\n [AuthErrorCode.DEPENDENT_SDK_INIT_BEFORE_AUTH]: { appName?: AppName };\n [AuthErrorCode.INTERNAL_ERROR]: { appName?: AppName };\n [AuthErrorCode.LOGIN_BLOCKED]: {\n appName?: AppName;\n originalMessage?: string;\n };\n [AuthErrorCode.OPERATION_NOT_SUPPORTED]: { appName?: AppName };\n [AuthErrorCode.NO_AUTH_EVENT]: { appName?: AppName };\n [AuthErrorCode.MFA_REQUIRED]: {\n appName: AppName;\n _serverResponse: IdTokenMfaResponse;\n };\n [AuthErrorCode.INVALID_CORDOVA_CONFIGURATION]: {\n appName: AppName;\n missingPlugin?: string;\n };\n}\n\nexport const _DEFAULT_AUTH_ERROR_FACTORY = new ErrorFactory<\n AuthErrorCode,\n AuthErrorParams\n>('auth', 'Firebase', _prodErrorMap());\n\n/**\n * A map of potential `Auth` error codes, for easier comparison with errors\n * thrown by the SDK.\n *\n * @remarks\n * Note that you can't tree-shake individual keys\n * in the map, so by using the map you might substantially increase your\n * bundle size.\n *\n * @public\n */\nexport const AUTH_ERROR_CODES_MAP_DO_NOT_USE_INTERNALLY = {\n ADMIN_ONLY_OPERATION: 'auth/admin-restricted-operation',\n ARGUMENT_ERROR: 'auth/argument-error',\n APP_NOT_AUTHORIZED: 'auth/app-not-authorized',\n APP_NOT_INSTALLED: 'auth/app-not-installed',\n CAPTCHA_CHECK_FAILED: 'auth/captcha-check-failed',\n CODE_EXPIRED: 'auth/code-expired',\n CORDOVA_NOT_READY: 'auth/cordova-not-ready',\n CORS_UNSUPPORTED: 'auth/cors-unsupported',\n CREDENTIAL_ALREADY_IN_USE: 'auth/credential-already-in-use',\n CREDENTIAL_MISMATCH: 'auth/custom-token-mismatch',\n CREDENTIAL_TOO_OLD_LOGIN_AGAIN: 'auth/requires-recent-login',\n DEPENDENT_SDK_INIT_BEFORE_AUTH: 'auth/dependent-sdk-initialized-before-auth',\n DYNAMIC_LINK_NOT_ACTIVATED: 'auth/dynamic-link-not-activated',\n EMAIL_CHANGE_NEEDS_VERIFICATION: 'auth/email-change-needs-verification',\n EMAIL_EXISTS: 'auth/email-already-in-use',\n EMULATOR_CONFIG_FAILED: 'auth/emulator-config-failed',\n EXPIRED_OOB_CODE: 'auth/expired-action-code',\n EXPIRED_POPUP_REQUEST: 'auth/cancelled-popup-request',\n INTERNAL_ERROR: 'auth/internal-error',\n INVALID_API_KEY: 'auth/invalid-api-key',\n INVALID_APP_CREDENTIAL: 'auth/invalid-app-credential',\n INVALID_APP_ID: 'auth/invalid-app-id',\n INVALID_AUTH: 'auth/invalid-user-token',\n INVALID_AUTH_EVENT: 'auth/invalid-auth-event',\n INVALID_CERT_HASH: 'auth/invalid-cert-hash',\n INVALID_CODE: 'auth/invalid-verification-code',\n INVALID_CONTINUE_URI: 'auth/invalid-continue-uri',\n INVALID_CORDOVA_CONFIGURATION: 'auth/invalid-cordova-configuration',\n INVALID_CUSTOM_TOKEN: 'auth/invalid-custom-token',\n INVALID_DYNAMIC_LINK_DOMAIN: 'auth/invalid-dynamic-link-domain',\n INVALID_EMAIL: 'auth/invalid-email',\n INVALID_EMULATOR_SCHEME: 'auth/invalid-emulator-scheme',\n INVALID_IDP_RESPONSE: 'auth/invalid-credential',\n INVALID_LOGIN_CREDENTIALS: 'auth/invalid-credential',\n INVALID_MESSAGE_PAYLOAD: 'auth/invalid-message-payload',\n INVALID_MFA_SESSION: 'auth/invalid-multi-factor-session',\n INVALID_OAUTH_CLIENT_ID: 'auth/invalid-oauth-client-id',\n INVALID_OAUTH_PROVIDER: 'auth/invalid-oauth-provider',\n INVALID_OOB_CODE: 'auth/invalid-action-code',\n INVALID_ORIGIN: 'auth/unauthorized-domain',\n INVALID_PASSWORD: 'auth/wrong-password',\n INVALID_PERSISTENCE: 'auth/invalid-persistence-type',\n INVALID_PHONE_NUMBER: 'auth/invalid-phone-number',\n INVALID_PROVIDER_ID: 'auth/invalid-provider-id',\n INVALID_RECIPIENT_EMAIL: 'auth/invalid-recipient-email',\n INVALID_SENDER: 'auth/invalid-sender',\n INVALID_SESSION_INFO: 'auth/invalid-verification-id',\n INVALID_TENANT_ID: 'auth/invalid-tenant-id',\n MFA_INFO_NOT_FOUND: 'auth/multi-factor-info-not-found',\n MFA_REQUIRED: 'auth/multi-factor-auth-required',\n MISSING_ANDROID_PACKAGE_NAME: 'auth/missing-android-pkg-name',\n MISSING_APP_CREDENTIAL: 'auth/missing-app-credential',\n MISSING_AUTH_DOMAIN: 'auth/auth-domain-config-required',\n MISSING_CODE: 'auth/missing-verification-code',\n MISSING_CONTINUE_URI: 'auth/missing-continue-uri',\n MISSING_IFRAME_START: 'auth/missing-iframe-start',\n MISSING_IOS_BUNDLE_ID: 'auth/missing-ios-bundle-id',\n MISSING_OR_INVALID_NONCE: 'auth/missing-or-invalid-nonce',\n MISSING_MFA_INFO: 'auth/missing-multi-factor-info',\n MISSING_MFA_SESSION: 'auth/missing-multi-factor-session',\n MISSING_PHONE_NUMBER: 'auth/missing-phone-number',\n MISSING_SESSION_INFO: 'auth/missing-verification-id',\n MODULE_DESTROYED: 'auth/app-deleted',\n NEED_CONFIRMATION: 'auth/account-exists-with-different-credential',\n NETWORK_REQUEST_FAILED: 'auth/network-request-failed',\n NULL_USER: 'auth/null-user',\n NO_AUTH_EVENT: 'auth/no-auth-event',\n NO_SUCH_PROVIDER: 'auth/no-such-provider',\n OPERATION_NOT_ALLOWED: 'auth/operation-not-allowed',\n OPERATION_NOT_SUPPORTED: 'auth/operation-not-supported-in-this-environment',\n POPUP_BLOCKED: 'auth/popup-blocked',\n POPUP_CLOSED_BY_USER: 'auth/popup-closed-by-user',\n PROVIDER_ALREADY_LINKED: 'auth/provider-already-linked',\n QUOTA_EXCEEDED: 'auth/quota-exceeded',\n REDIRECT_CANCELLED_BY_USER: 'auth/redirect-cancelled-by-user',\n REDIRECT_OPERATION_PENDING: 'auth/redirect-operation-pending',\n REJECTED_CREDENTIAL: 'auth/rejected-credential',\n SECOND_FACTOR_ALREADY_ENROLLED: 'auth/second-factor-already-in-use',\n SECOND_FACTOR_LIMIT_EXCEEDED: 'auth/maximum-second-factor-count-exceeded',\n TENANT_ID_MISMATCH: 'auth/tenant-id-mismatch',\n TIMEOUT: 'auth/timeout',\n TOKEN_EXPIRED: 'auth/user-token-expired',\n TOO_MANY_ATTEMPTS_TRY_LATER: 'auth/too-many-requests',\n UNAUTHORIZED_DOMAIN: 'auth/unauthorized-continue-uri',\n UNSUPPORTED_FIRST_FACTOR: 'auth/unsupported-first-factor',\n UNSUPPORTED_PERSISTENCE: 'auth/unsupported-persistence-type',\n UNSUPPORTED_TENANT_OPERATION: 'auth/unsupported-tenant-operation',\n UNVERIFIED_EMAIL: 'auth/unverified-email',\n USER_CANCELLED: 'auth/user-cancelled',\n USER_DELETED: 'auth/user-not-found',\n USER_DISABLED: 'auth/user-disabled',\n USER_MISMATCH: 'auth/user-mismatch',\n USER_SIGNED_OUT: 'auth/user-signed-out',\n WEAK_PASSWORD: 'auth/weak-password',\n WEB_STORAGE_UNSUPPORTED: 'auth/web-storage-unsupported',\n ALREADY_INITIALIZED: 'auth/already-initialized',\n RECAPTCHA_NOT_ENABLED: 'auth/recaptcha-not-enabled',\n MISSING_RECAPTCHA_TOKEN: 'auth/missing-recaptcha-token',\n INVALID_RECAPTCHA_TOKEN: 'auth/invalid-recaptcha-token',\n INVALID_RECAPTCHA_ACTION: 'auth/invalid-recaptcha-action',\n MISSING_CLIENT_TYPE: 'auth/missing-client-type',\n MISSING_RECAPTCHA_VERSION: 'auth/missing-recaptcha-version',\n INVALID_RECAPTCHA_VERSION: 'auth/invalid-recaptcha-version',\n INVALID_REQ_TYPE: 'auth/invalid-req-type'\n} as const;\n","/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { Logger, LogLevel } from '@firebase/logger';\nimport { SDK_VERSION } from '@firebase/app';\n\nexport { LogLevel };\n\nconst logClient = new Logger('@firebase/auth');\n\n// Helper methods are needed because variables can't be exported as read/write\nexport function _getLogLevel(): LogLevel {\n return logClient.logLevel;\n}\n\nexport function _setLogLevel(newLevel: LogLevel): void {\n logClient.logLevel = newLevel;\n}\n\nexport function _logDebug(msg: string, ...args: string[]): void {\n if (logClient.logLevel <= LogLevel.DEBUG) {\n logClient.debug(`Auth (${SDK_VERSION}): ${msg}`, ...args);\n }\n}\n\nexport function _logWarn(msg: string, ...args: string[]): void {\n if (logClient.logLevel <= LogLevel.WARN) {\n logClient.warn(`Auth (${SDK_VERSION}): ${msg}`, ...args);\n }\n}\n\nexport function _logError(msg: string, ...args: string[]): void {\n if (logClient.logLevel <= LogLevel.ERROR) {\n logClient.error(`Auth (${SDK_VERSION}): ${msg}`, ...args);\n }\n}\n","/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { Auth } from '../../model/public_types';\nimport { ErrorFactory, FirebaseError } from '@firebase/util';\nimport { AuthInternal } from '../../model/auth';\nimport {\n _DEFAULT_AUTH_ERROR_FACTORY,\n AuthErrorCode,\n AuthErrorParams,\n prodErrorMap,\n ErrorMapRetriever\n} from '../errors';\nimport { _logError } from './log';\n\ntype AuthErrorListParams = K extends keyof AuthErrorParams\n ? [AuthErrorParams[K]]\n : [];\ntype LessAppName = Omit;\n\n/**\n * Unconditionally fails, throwing a developer facing INTERNAL_ERROR\n *\n * @example\n * ```javascript\n * fail(auth, AuthErrorCode.MFA_REQUIRED); // Error: the MFA_REQUIRED error needs more params than appName\n * fail(auth, AuthErrorCode.MFA_REQUIRED, {serverResponse}); // Compiles\n * fail(AuthErrorCode.INTERNAL_ERROR); // Compiles; internal error does not need appName\n * fail(AuthErrorCode.USER_DELETED); // Error: USER_DELETED requires app name\n * fail(auth, AuthErrorCode.USER_DELETED); // Compiles; USER_DELETED _only_ needs app name\n * ```\n *\n * @param appName App name for tagging the error\n * @throws FirebaseError\n */\nexport function _fail(\n code: K,\n ...data: {} extends AuthErrorParams[K]\n ? [AuthErrorParams[K]?]\n : [AuthErrorParams[K]]\n): never;\nexport function _fail(\n auth: Auth,\n code: K,\n ...data: {} extends LessAppName ? [LessAppName?] : [LessAppName]\n): never;\nexport function _fail(\n authOrCode: Auth | K,\n ...rest: unknown[]\n): never {\n throw createErrorInternal(authOrCode, ...rest);\n}\n\nexport function _createError(\n code: K,\n ...data: {} extends AuthErrorParams[K]\n ? [AuthErrorParams[K]?]\n : [AuthErrorParams[K]]\n): FirebaseError;\nexport function _createError(\n auth: Auth,\n code: K,\n ...data: {} extends LessAppName ? [LessAppName?] : [LessAppName]\n): FirebaseError;\nexport function _createError(\n authOrCode: Auth | K,\n ...rest: unknown[]\n): FirebaseError {\n return createErrorInternal(authOrCode, ...rest);\n}\n\nexport function _errorWithCustomMessage(\n auth: Auth,\n code: AuthErrorCode,\n message: string\n): FirebaseError {\n const errorMap = {\n ...(prodErrorMap as ErrorMapRetriever)(),\n [code]: message\n };\n const factory = new ErrorFactory(\n 'auth',\n 'Firebase',\n errorMap\n );\n return factory.create(code, {\n appName: auth.name\n });\n}\n\nexport function _assertInstanceOf(\n auth: Auth,\n object: object,\n instance: unknown\n): void {\n const constructorInstance = instance as { new (...args: unknown[]): unknown };\n if (!(object instanceof constructorInstance)) {\n if (constructorInstance.name !== object.constructor.name) {\n _fail(auth, AuthErrorCode.ARGUMENT_ERROR);\n }\n\n throw _errorWithCustomMessage(\n auth,\n AuthErrorCode.ARGUMENT_ERROR,\n `Type of ${object.constructor.name} does not match expected instance.` +\n `Did you pass a reference from a different Auth SDK?`\n );\n }\n}\n\nfunction createErrorInternal(\n authOrCode: Auth | K,\n ...rest: unknown[]\n): FirebaseError {\n if (typeof authOrCode !== 'string') {\n const code = rest[0] as K;\n const fullParams = [...rest.slice(1)] as AuthErrorListParams;\n if (fullParams[0]) {\n fullParams[0].appName = authOrCode.name;\n }\n\n return (authOrCode as AuthInternal)._errorFactory.create(\n code,\n ...fullParams\n );\n }\n\n return _DEFAULT_AUTH_ERROR_FACTORY.create(\n authOrCode,\n ...(rest as AuthErrorListParams)\n );\n}\n\nexport function _assert(\n assertion: unknown,\n code: K,\n ...data: {} extends AuthErrorParams[K]\n ? [AuthErrorParams[K]?]\n : [AuthErrorParams[K]]\n): asserts assertion;\nexport function _assert(\n assertion: unknown,\n auth: Auth,\n code: K,\n ...data: {} extends LessAppName ? [LessAppName?] : [LessAppName]\n): asserts assertion;\nexport function _assert(\n assertion: unknown,\n authOrCode: Auth | K,\n ...rest: unknown[]\n): asserts assertion {\n if (!assertion) {\n throw createErrorInternal(authOrCode, ...rest);\n }\n}\n\n// We really do want to accept literally any function type here\n// eslint-disable-next-line @typescript-eslint/ban-types\ntype TypeExpectation = Function | string | MapType;\n\ninterface MapType extends Record {}\n\nclass Optional {\n constructor(readonly type: TypeExpectation) {}\n}\n\nexport function opt(type: TypeExpectation): Optional {\n return new Optional(type);\n}\n\n/**\n * Asserts the runtime types of arguments. The 'expected' field can be one of\n * a class, a string (representing a \"typeof\" call), or a record map of name\n * to type. Furthermore, the opt() function can be used to mark a field as\n * optional. For example:\n *\n * function foo(auth: Auth, profile: {displayName?: string}, update = false) {\n * assertTypes(arguments, [AuthImpl, {displayName: opt('string')}, opt('boolean')]);\n * }\n *\n * opt() can be used for any type:\n * function foo(auth?: Auth) {\n * assertTypes(arguments, [opt(AuthImpl)]);\n * }\n *\n * The string types can be or'd together, and you can use \"null\" as well (note\n * that typeof null === 'object'; this is an edge case). For example:\n *\n * function foo(profile: {displayName?: string | null}) {\n * assertTypes(arguments, [{displayName: opt('string|null')}]);\n * }\n *\n * @param args\n * @param expected\n */\nexport function assertTypes(\n args: Omit,\n ...expected: Array\n): void {\n if (args.length > expected.length) {\n _fail(AuthErrorCode.ARGUMENT_ERROR, {});\n }\n\n for (let i = 0; i < expected.length; i++) {\n let expect = expected[i];\n const arg = args[i];\n\n if (expect instanceof Optional) {\n // If the arg is undefined, then it matches \"optional\" and we can move to\n // the next arg\n if (typeof arg === 'undefined') {\n continue;\n }\n expect = expect.type;\n }\n\n if (typeof expect === 'string') {\n // Handle the edge case for null because typeof null === 'object'\n if (expect.includes('null') && arg === null) {\n continue;\n }\n\n const required = expect.split('|');\n _assert(required.includes(typeof arg), AuthErrorCode.ARGUMENT_ERROR, {});\n } else if (typeof expect === 'object') {\n // Recursively check record arguments\n const record = arg as Record;\n const map = expect as MapType;\n const keys = Object.keys(expect);\n\n assertTypes(\n keys.map(k => record[k]),\n ...keys.map(k => map[k])\n );\n } else {\n _assert(arg instanceof expect, AuthErrorCode.ARGUMENT_ERROR, {});\n }\n }\n}\n\n/**\n * Unconditionally fails, throwing an internal error with the given message.\n *\n * @param failure type of failure encountered\n * @throws Error\n */\nexport function debugFail(failure: string): never {\n // Log the failure in addition to throw an exception, just in case the\n // exception is swallowed.\n const message = `INTERNAL ASSERTION FAILED: ` + failure;\n _logError(message);\n\n // NOTE: We don't use FirebaseError here because these are internal failures\n // that cannot be handled by the user. (Also it would create a circular\n // dependency between the error and assert modules which doesn't work.)\n throw new Error(message);\n}\n\n/**\n * Fails if the given assertion condition is false, throwing an Error with the\n * given message if it did.\n *\n * @param assertion\n * @param message\n */\nexport function debugAssert(\n assertion: unknown,\n message: string\n): asserts assertion {\n if (!assertion) {\n debugFail(message);\n }\n}\n","/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport function _getCurrentUrl(): string {\n return (typeof self !== 'undefined' && self.location?.href) || '';\n}\n\nexport function _isHttpOrHttps(): boolean {\n return _getCurrentScheme() === 'http:' || _getCurrentScheme() === 'https:';\n}\n\nexport function _getCurrentScheme(): string | null {\n return (typeof self !== 'undefined' && self.location?.protocol) || null;\n}\n","/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { isBrowserExtension } from '@firebase/util';\nimport { _isHttpOrHttps } from './location';\n\n/**\n * Determine whether the browser is working online\n */\nexport function _isOnline(): boolean {\n if (\n typeof navigator !== 'undefined' &&\n navigator &&\n 'onLine' in navigator &&\n typeof navigator.onLine === 'boolean' &&\n // Apply only for traditional web apps and Chrome extensions.\n // This is especially true for Cordova apps which have unreliable\n // navigator.onLine behavior unless cordova-plugin-network-information is\n // installed which overwrites the native navigator.onLine value and\n // defines navigator.connection.\n (_isHttpOrHttps() || isBrowserExtension() || 'connection' in navigator)\n ) {\n return navigator.onLine;\n }\n // If we can't determine the state, assume it is online.\n return true;\n}\n\nexport function _getUserLanguage(): string | null {\n if (typeof navigator === 'undefined') {\n return null;\n }\n const navigatorLanguage: NavigatorLanguage = navigator;\n return (\n // Most reliable, but only supported in Chrome/Firefox.\n (navigatorLanguage.languages && navigatorLanguage.languages[0]) ||\n // Supported in most browsers, but returns the language of the browser\n // UI, not the language set in browser settings.\n navigatorLanguage.language ||\n // Couldn't determine language.\n null\n );\n}\n","/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { isMobileCordova, isReactNative } from '@firebase/util';\nimport { _isOnline } from './navigator';\nimport { debugAssert } from './assert';\n\nexport const enum DelayMin {\n OFFLINE = 5000\n}\n\n/**\n * A structure to help pick between a range of long and short delay durations\n * depending on the current environment. In general, the long delay is used for\n * mobile environments whereas short delays are used for desktop environments.\n */\nexport class Delay {\n // The default value for the offline delay timeout in ms.\n\n private readonly isMobile: boolean;\n constructor(\n private readonly shortDelay: number,\n private readonly longDelay: number\n ) {\n // Internal error when improperly initialized.\n debugAssert(\n longDelay > shortDelay,\n 'Short delay should be less than long delay!'\n );\n this.isMobile = isMobileCordova() || isReactNative();\n }\n\n get(): number {\n if (!_isOnline()) {\n // Pick the shorter timeout.\n return Math.min(DelayMin.OFFLINE, this.shortDelay);\n }\n // If running in a mobile environment, return the long delay, otherwise\n // return the short delay.\n // This could be improved in the future to dynamically change based on other\n // variables instead of just reading the current environment.\n return this.isMobile ? this.longDelay : this.shortDelay;\n }\n}\n","/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { ConfigInternal } from '../../model/auth';\nimport { debugAssert } from './assert';\n\nexport function _emulatorUrl(config: ConfigInternal, path?: string): string {\n debugAssert(config.emulator, 'Emulator should always be set here');\n const { url } = config.emulator;\n\n if (!path) {\n return url;\n }\n\n return `${url}${path.startsWith('/') ? path.slice(1) : path}`;\n}\n","/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { debugFail } from './assert';\n\nexport class FetchProvider {\n private static fetchImpl: typeof fetch | null;\n private static headersImpl: typeof Headers | null;\n private static responseImpl: typeof Response | null;\n\n static initialize(\n fetchImpl: typeof fetch,\n headersImpl?: typeof Headers,\n responseImpl?: typeof Response\n ): void {\n this.fetchImpl = fetchImpl;\n if (headersImpl) {\n this.headersImpl = headersImpl;\n }\n if (responseImpl) {\n this.responseImpl = responseImpl;\n }\n }\n\n static fetch(): typeof fetch {\n if (this.fetchImpl) {\n return this.fetchImpl;\n }\n if (typeof self !== 'undefined' && 'fetch' in self) {\n return self.fetch;\n }\n if (typeof globalThis !== 'undefined' && globalThis.fetch) {\n return globalThis.fetch;\n }\n if (typeof fetch !== 'undefined') {\n return fetch;\n }\n debugFail(\n 'Could not find fetch implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill'\n );\n }\n\n static headers(): typeof Headers {\n if (this.headersImpl) {\n return this.headersImpl;\n }\n if (typeof self !== 'undefined' && 'Headers' in self) {\n return self.Headers;\n }\n if (typeof globalThis !== 'undefined' && globalThis.Headers) {\n return globalThis.Headers;\n }\n if (typeof Headers !== 'undefined') {\n return Headers;\n }\n debugFail(\n 'Could not find Headers implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill'\n );\n }\n\n static response(): typeof Response {\n if (this.responseImpl) {\n return this.responseImpl;\n }\n if (typeof self !== 'undefined' && 'Response' in self) {\n return self.Response;\n }\n if (typeof globalThis !== 'undefined' && globalThis.Response) {\n return globalThis.Response;\n }\n if (typeof Response !== 'undefined') {\n return Response;\n }\n debugFail(\n 'Could not find Response implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill'\n );\n }\n}\n","/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { AuthErrorCode } from '../core/errors';\n\n/**\n * Errors that can be returned by the backend\n */\nexport const enum ServerError {\n ADMIN_ONLY_OPERATION = 'ADMIN_ONLY_OPERATION',\n BLOCKING_FUNCTION_ERROR_RESPONSE = 'BLOCKING_FUNCTION_ERROR_RESPONSE',\n CAPTCHA_CHECK_FAILED = 'CAPTCHA_CHECK_FAILED',\n CORS_UNSUPPORTED = 'CORS_UNSUPPORTED',\n CREDENTIAL_MISMATCH = 'CREDENTIAL_MISMATCH',\n CREDENTIAL_TOO_OLD_LOGIN_AGAIN = 'CREDENTIAL_TOO_OLD_LOGIN_AGAIN',\n DYNAMIC_LINK_NOT_ACTIVATED = 'DYNAMIC_LINK_NOT_ACTIVATED',\n EMAIL_CHANGE_NEEDS_VERIFICATION = 'EMAIL_CHANGE_NEEDS_VERIFICATION',\n EMAIL_EXISTS = 'EMAIL_EXISTS',\n EMAIL_NOT_FOUND = 'EMAIL_NOT_FOUND',\n EXPIRED_OOB_CODE = 'EXPIRED_OOB_CODE',\n FEDERATED_USER_ID_ALREADY_LINKED = 'FEDERATED_USER_ID_ALREADY_LINKED',\n INVALID_APP_CREDENTIAL = 'INVALID_APP_CREDENTIAL',\n INVALID_APP_ID = 'INVALID_APP_ID',\n INVALID_CERT_HASH = 'INVALID_CERT_HASH',\n INVALID_CODE = 'INVALID_CODE',\n INVALID_CONTINUE_URI = 'INVALID_CONTINUE_URI',\n INVALID_CUSTOM_TOKEN = 'INVALID_CUSTOM_TOKEN',\n INVALID_DYNAMIC_LINK_DOMAIN = 'INVALID_DYNAMIC_LINK_DOMAIN',\n INVALID_EMAIL = 'INVALID_EMAIL',\n INVALID_ID_TOKEN = 'INVALID_ID_TOKEN',\n INVALID_IDP_RESPONSE = 'INVALID_IDP_RESPONSE',\n INVALID_IDENTIFIER = 'INVALID_IDENTIFIER',\n INVALID_LOGIN_CREDENTIALS = 'INVALID_LOGIN_CREDENTIALS',\n INVALID_MESSAGE_PAYLOAD = 'INVALID_MESSAGE_PAYLOAD',\n INVALID_MFA_PENDING_CREDENTIAL = 'INVALID_MFA_PENDING_CREDENTIAL',\n INVALID_OAUTH_CLIENT_ID = 'INVALID_OAUTH_CLIENT_ID',\n INVALID_OOB_CODE = 'INVALID_OOB_CODE',\n INVALID_PASSWORD = 'INVALID_PASSWORD',\n INVALID_PENDING_TOKEN = 'INVALID_PENDING_TOKEN',\n INVALID_PHONE_NUMBER = 'INVALID_PHONE_NUMBER',\n INVALID_PROVIDER_ID = 'INVALID_PROVIDER_ID',\n INVALID_RECIPIENT_EMAIL = 'INVALID_RECIPIENT_EMAIL',\n INVALID_SENDER = 'INVALID_SENDER',\n INVALID_SESSION_INFO = 'INVALID_SESSION_INFO',\n INVALID_TEMPORARY_PROOF = 'INVALID_TEMPORARY_PROOF',\n INVALID_TENANT_ID = 'INVALID_TENANT_ID',\n MFA_ENROLLMENT_NOT_FOUND = 'MFA_ENROLLMENT_NOT_FOUND',\n MISSING_ANDROID_PACKAGE_NAME = 'MISSING_ANDROID_PACKAGE_NAME',\n MISSING_APP_CREDENTIAL = 'MISSING_APP_CREDENTIAL',\n MISSING_CODE = 'MISSING_CODE',\n MISSING_CONTINUE_URI = 'MISSING_CONTINUE_URI',\n MISSING_CUSTOM_TOKEN = 'MISSING_CUSTOM_TOKEN',\n MISSING_IOS_BUNDLE_ID = 'MISSING_IOS_BUNDLE_ID',\n MISSING_MFA_ENROLLMENT_ID = 'MISSING_MFA_ENROLLMENT_ID',\n MISSING_MFA_PENDING_CREDENTIAL = 'MISSING_MFA_PENDING_CREDENTIAL',\n MISSING_OOB_CODE = 'MISSING_OOB_CODE',\n MISSING_OR_INVALID_NONCE = 'MISSING_OR_INVALID_NONCE',\n MISSING_PASSWORD = 'MISSING_PASSWORD',\n MISSING_REQ_TYPE = 'MISSING_REQ_TYPE',\n MISSING_PHONE_NUMBER = 'MISSING_PHONE_NUMBER',\n MISSING_SESSION_INFO = 'MISSING_SESSION_INFO',\n OPERATION_NOT_ALLOWED = 'OPERATION_NOT_ALLOWED',\n PASSWORD_LOGIN_DISABLED = 'PASSWORD_LOGIN_DISABLED',\n QUOTA_EXCEEDED = 'QUOTA_EXCEEDED',\n RESET_PASSWORD_EXCEED_LIMIT = 'RESET_PASSWORD_EXCEED_LIMIT',\n REJECTED_CREDENTIAL = 'REJECTED_CREDENTIAL',\n SECOND_FACTOR_EXISTS = 'SECOND_FACTOR_EXISTS',\n SECOND_FACTOR_LIMIT_EXCEEDED = 'SECOND_FACTOR_LIMIT_EXCEEDED',\n SESSION_EXPIRED = 'SESSION_EXPIRED',\n TENANT_ID_MISMATCH = 'TENANT_ID_MISMATCH',\n TOKEN_EXPIRED = 'TOKEN_EXPIRED',\n TOO_MANY_ATTEMPTS_TRY_LATER = 'TOO_MANY_ATTEMPTS_TRY_LATER',\n UNSUPPORTED_FIRST_FACTOR = 'UNSUPPORTED_FIRST_FACTOR',\n UNSUPPORTED_TENANT_OPERATION = 'UNSUPPORTED_TENANT_OPERATION',\n UNAUTHORIZED_DOMAIN = 'UNAUTHORIZED_DOMAIN',\n UNVERIFIED_EMAIL = 'UNVERIFIED_EMAIL',\n USER_CANCELLED = 'USER_CANCELLED',\n USER_DISABLED = 'USER_DISABLED',\n USER_NOT_FOUND = 'USER_NOT_FOUND',\n WEAK_PASSWORD = 'WEAK_PASSWORD',\n RECAPTCHA_NOT_ENABLED = 'RECAPTCHA_NOT_ENABLED',\n MISSING_RECAPTCHA_TOKEN = 'MISSING_RECAPTCHA_TOKEN',\n INVALID_RECAPTCHA_TOKEN = 'INVALID_RECAPTCHA_TOKEN',\n INVALID_RECAPTCHA_ACTION = 'INVALID_RECAPTCHA_ACTION',\n MISSING_CLIENT_TYPE = 'MISSING_CLIENT_TYPE',\n MISSING_RECAPTCHA_VERSION = 'MISSING_RECAPTCHA_VERSION',\n INVALID_RECAPTCHA_VERSION = 'INVALID_RECAPTCHA_VERSION',\n INVALID_REQ_TYPE = 'INVALID_REQ_TYPE',\n PASSWORD_DOES_NOT_MEET_REQUIREMENTS = 'PASSWORD_DOES_NOT_MEET_REQUIREMENTS'\n}\n\n/**\n * API Response in the event of an error\n */\nexport interface JsonError {\n error: {\n code: number;\n message: string;\n errors?: [\n {\n message: ServerError;\n domain: string;\n reason: string;\n }\n ];\n };\n}\n\n/**\n * Type definition for a map from server errors to developer visible errors\n */\nexport declare type ServerErrorMap = {\n readonly [K in ApiError]: AuthErrorCode;\n};\n\n/**\n * Map from errors returned by the server to errors to developer visible errors\n */\nexport const SERVER_ERROR_MAP: Partial> = {\n // Custom token errors.\n [ServerError.CREDENTIAL_MISMATCH]: AuthErrorCode.CREDENTIAL_MISMATCH,\n // This can only happen if the SDK sends a bad request.\n [ServerError.MISSING_CUSTOM_TOKEN]: AuthErrorCode.INTERNAL_ERROR,\n\n // Create Auth URI errors.\n [ServerError.INVALID_IDENTIFIER]: AuthErrorCode.INVALID_EMAIL,\n // This can only happen if the SDK sends a bad request.\n [ServerError.MISSING_CONTINUE_URI]: AuthErrorCode.INTERNAL_ERROR,\n\n // Sign in with email and password errors (some apply to sign up too).\n [ServerError.INVALID_PASSWORD]: AuthErrorCode.INVALID_PASSWORD,\n // This can only happen if the SDK sends a bad request.\n [ServerError.MISSING_PASSWORD]: AuthErrorCode.MISSING_PASSWORD,\n // Thrown if Email Enumeration Protection is enabled in the project and the email or password is\n // invalid.\n [ServerError.INVALID_LOGIN_CREDENTIALS]: AuthErrorCode.INVALID_CREDENTIAL,\n\n // Sign up with email and password errors.\n [ServerError.EMAIL_EXISTS]: AuthErrorCode.EMAIL_EXISTS,\n [ServerError.PASSWORD_LOGIN_DISABLED]: AuthErrorCode.OPERATION_NOT_ALLOWED,\n\n // Verify assertion for sign in with credential errors:\n [ServerError.INVALID_IDP_RESPONSE]: AuthErrorCode.INVALID_CREDENTIAL,\n [ServerError.INVALID_PENDING_TOKEN]: AuthErrorCode.INVALID_CREDENTIAL,\n [ServerError.FEDERATED_USER_ID_ALREADY_LINKED]:\n AuthErrorCode.CREDENTIAL_ALREADY_IN_USE,\n\n // This can only happen if the SDK sends a bad request.\n [ServerError.MISSING_REQ_TYPE]: AuthErrorCode.INTERNAL_ERROR,\n\n // Send Password reset email errors:\n [ServerError.EMAIL_NOT_FOUND]: AuthErrorCode.USER_DELETED,\n [ServerError.RESET_PASSWORD_EXCEED_LIMIT]:\n AuthErrorCode.TOO_MANY_ATTEMPTS_TRY_LATER,\n\n [ServerError.EXPIRED_OOB_CODE]: AuthErrorCode.EXPIRED_OOB_CODE,\n [ServerError.INVALID_OOB_CODE]: AuthErrorCode.INVALID_OOB_CODE,\n // This can only happen if the SDK sends a bad request.\n [ServerError.MISSING_OOB_CODE]: AuthErrorCode.INTERNAL_ERROR,\n\n // Operations that require ID token in request:\n [ServerError.CREDENTIAL_TOO_OLD_LOGIN_AGAIN]:\n AuthErrorCode.CREDENTIAL_TOO_OLD_LOGIN_AGAIN,\n [ServerError.INVALID_ID_TOKEN]: AuthErrorCode.INVALID_AUTH,\n [ServerError.TOKEN_EXPIRED]: AuthErrorCode.TOKEN_EXPIRED,\n [ServerError.USER_NOT_FOUND]: AuthErrorCode.TOKEN_EXPIRED,\n\n // Other errors.\n [ServerError.TOO_MANY_ATTEMPTS_TRY_LATER]:\n AuthErrorCode.TOO_MANY_ATTEMPTS_TRY_LATER,\n [ServerError.PASSWORD_DOES_NOT_MEET_REQUIREMENTS]:\n AuthErrorCode.PASSWORD_DOES_NOT_MEET_REQUIREMENTS,\n\n // Phone Auth related errors.\n [ServerError.INVALID_CODE]: AuthErrorCode.INVALID_CODE,\n [ServerError.INVALID_SESSION_INFO]: AuthErrorCode.INVALID_SESSION_INFO,\n [ServerError.INVALID_TEMPORARY_PROOF]: AuthErrorCode.INVALID_CREDENTIAL,\n [ServerError.MISSING_SESSION_INFO]: AuthErrorCode.MISSING_SESSION_INFO,\n [ServerError.SESSION_EXPIRED]: AuthErrorCode.CODE_EXPIRED,\n\n // Other action code errors when additional settings passed.\n // MISSING_CONTINUE_URI is getting mapped to INTERNAL_ERROR above.\n // This is OK as this error will be caught by client side validation.\n [ServerError.MISSING_ANDROID_PACKAGE_NAME]:\n AuthErrorCode.MISSING_ANDROID_PACKAGE_NAME,\n [ServerError.UNAUTHORIZED_DOMAIN]: AuthErrorCode.UNAUTHORIZED_DOMAIN,\n\n // getProjectConfig errors when clientId is passed.\n [ServerError.INVALID_OAUTH_CLIENT_ID]: AuthErrorCode.INVALID_OAUTH_CLIENT_ID,\n\n // User actions (sign-up or deletion) disabled errors.\n [ServerError.ADMIN_ONLY_OPERATION]: AuthErrorCode.ADMIN_ONLY_OPERATION,\n\n // Multi factor related errors.\n [ServerError.INVALID_MFA_PENDING_CREDENTIAL]:\n AuthErrorCode.INVALID_MFA_SESSION,\n [ServerError.MFA_ENROLLMENT_NOT_FOUND]: AuthErrorCode.MFA_INFO_NOT_FOUND,\n [ServerError.MISSING_MFA_ENROLLMENT_ID]: AuthErrorCode.MISSING_MFA_INFO,\n [ServerError.MISSING_MFA_PENDING_CREDENTIAL]:\n AuthErrorCode.MISSING_MFA_SESSION,\n [ServerError.SECOND_FACTOR_EXISTS]:\n AuthErrorCode.SECOND_FACTOR_ALREADY_ENROLLED,\n [ServerError.SECOND_FACTOR_LIMIT_EXCEEDED]:\n AuthErrorCode.SECOND_FACTOR_LIMIT_EXCEEDED,\n\n // Blocking functions related errors.\n [ServerError.BLOCKING_FUNCTION_ERROR_RESPONSE]: AuthErrorCode.INTERNAL_ERROR,\n\n // Recaptcha related errors.\n [ServerError.RECAPTCHA_NOT_ENABLED]: AuthErrorCode.RECAPTCHA_NOT_ENABLED,\n [ServerError.MISSING_RECAPTCHA_TOKEN]: AuthErrorCode.MISSING_RECAPTCHA_TOKEN,\n [ServerError.INVALID_RECAPTCHA_TOKEN]: AuthErrorCode.INVALID_RECAPTCHA_TOKEN,\n [ServerError.INVALID_RECAPTCHA_ACTION]:\n AuthErrorCode.INVALID_RECAPTCHA_ACTION,\n [ServerError.MISSING_CLIENT_TYPE]: AuthErrorCode.MISSING_CLIENT_TYPE,\n [ServerError.MISSING_RECAPTCHA_VERSION]:\n AuthErrorCode.MISSING_RECAPTCHA_VERSION,\n [ServerError.INVALID_RECAPTCHA_VERSION]:\n AuthErrorCode.INVALID_RECAPTCHA_VERSION,\n [ServerError.INVALID_REQ_TYPE]: AuthErrorCode.INVALID_REQ_TYPE\n};\n","/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { FirebaseError, querystring } from '@firebase/util';\n\nimport { AuthErrorCode, NamedErrorParams } from '../core/errors';\nimport {\n _createError,\n _errorWithCustomMessage,\n _fail\n} from '../core/util/assert';\nimport { Delay } from '../core/util/delay';\nimport { _emulatorUrl } from '../core/util/emulator';\nimport { FetchProvider } from '../core/util/fetch_provider';\nimport { Auth } from '../model/public_types';\nimport { AuthInternal, ConfigInternal } from '../model/auth';\nimport { IdTokenResponse, TaggedWithTokenResponse } from '../model/id_token';\nimport { IdTokenMfaResponse } from './authentication/mfa';\nimport { SERVER_ERROR_MAP, ServerError, ServerErrorMap } from './errors';\n\nexport const enum HttpMethod {\n POST = 'POST',\n GET = 'GET'\n}\n\nexport const enum HttpHeader {\n CONTENT_TYPE = 'Content-Type',\n X_FIREBASE_LOCALE = 'X-Firebase-Locale',\n X_CLIENT_VERSION = 'X-Client-Version',\n X_FIREBASE_GMPID = 'X-Firebase-gmpid',\n X_FIREBASE_CLIENT = 'X-Firebase-Client',\n X_FIREBASE_APP_CHECK = 'X-Firebase-AppCheck'\n}\n\nexport const enum Endpoint {\n CREATE_AUTH_URI = '/v1/accounts:createAuthUri',\n DELETE_ACCOUNT = '/v1/accounts:delete',\n RESET_PASSWORD = '/v1/accounts:resetPassword',\n SIGN_UP = '/v1/accounts:signUp',\n SIGN_IN_WITH_CUSTOM_TOKEN = '/v1/accounts:signInWithCustomToken',\n SIGN_IN_WITH_EMAIL_LINK = '/v1/accounts:signInWithEmailLink',\n SIGN_IN_WITH_IDP = '/v1/accounts:signInWithIdp',\n SIGN_IN_WITH_PASSWORD = '/v1/accounts:signInWithPassword',\n SIGN_IN_WITH_PHONE_NUMBER = '/v1/accounts:signInWithPhoneNumber',\n SEND_VERIFICATION_CODE = '/v1/accounts:sendVerificationCode',\n SEND_OOB_CODE = '/v1/accounts:sendOobCode',\n SET_ACCOUNT_INFO = '/v1/accounts:update',\n GET_ACCOUNT_INFO = '/v1/accounts:lookup',\n GET_RECAPTCHA_PARAM = '/v1/recaptchaParams',\n START_MFA_ENROLLMENT = '/v2/accounts/mfaEnrollment:start',\n FINALIZE_MFA_ENROLLMENT = '/v2/accounts/mfaEnrollment:finalize',\n START_MFA_SIGN_IN = '/v2/accounts/mfaSignIn:start',\n FINALIZE_MFA_SIGN_IN = '/v2/accounts/mfaSignIn:finalize',\n WITHDRAW_MFA = '/v2/accounts/mfaEnrollment:withdraw',\n GET_PROJECT_CONFIG = '/v1/projects',\n GET_RECAPTCHA_CONFIG = '/v2/recaptchaConfig',\n GET_PASSWORD_POLICY = '/v2/passwordPolicy',\n TOKEN = '/v1/token',\n REVOKE_TOKEN = '/v2/accounts:revokeToken'\n}\n\nexport const enum RecaptchaClientType {\n WEB = 'CLIENT_TYPE_WEB',\n ANDROID = 'CLIENT_TYPE_ANDROID',\n IOS = 'CLIENT_TYPE_IOS'\n}\n\nexport const enum RecaptchaVersion {\n ENTERPRISE = 'RECAPTCHA_ENTERPRISE'\n}\n\nexport const enum RecaptchaActionName {\n SIGN_IN_WITH_PASSWORD = 'signInWithPassword',\n GET_OOB_CODE = 'getOobCode',\n SIGN_UP_PASSWORD = 'signUpPassword'\n}\n\nexport const enum EnforcementState {\n ENFORCE = 'ENFORCE',\n AUDIT = 'AUDIT',\n OFF = 'OFF',\n ENFORCEMENT_STATE_UNSPECIFIED = 'ENFORCEMENT_STATE_UNSPECIFIED'\n}\n\n// Providers that have reCAPTCHA Enterprise support.\nexport const enum RecaptchaProvider {\n EMAIL_PASSWORD_PROVIDER = 'EMAIL_PASSWORD_PROVIDER'\n}\n\nexport const DEFAULT_API_TIMEOUT_MS = new Delay(30_000, 60_000);\n\nexport function _addTidIfNecessary(\n auth: Auth,\n request: T\n): T {\n if (auth.tenantId && !request.tenantId) {\n return {\n ...request,\n tenantId: auth.tenantId\n };\n }\n return request;\n}\n\nexport async function _performApiRequest(\n auth: Auth,\n method: HttpMethod,\n path: Endpoint,\n request?: T,\n customErrorMap: Partial> = {}\n): Promise {\n return _performFetchWithErrorHandling(auth, customErrorMap, async () => {\n let body = {};\n let params = {};\n if (request) {\n if (method === HttpMethod.GET) {\n params = request;\n } else {\n body = {\n body: JSON.stringify(request)\n };\n }\n }\n\n const query = querystring({\n key: auth.config.apiKey,\n ...params\n }).slice(1);\n\n const headers = await (auth as AuthInternal)._getAdditionalHeaders();\n headers[HttpHeader.CONTENT_TYPE] = 'application/json';\n\n if (auth.languageCode) {\n headers[HttpHeader.X_FIREBASE_LOCALE] = auth.languageCode;\n }\n\n return FetchProvider.fetch()(\n _getFinalTarget(auth, auth.config.apiHost, path, query),\n {\n method,\n headers,\n referrerPolicy: 'no-referrer',\n ...body\n }\n );\n });\n}\n\nexport async function _performFetchWithErrorHandling(\n auth: Auth,\n customErrorMap: Partial>,\n fetchFn: () => Promise\n): Promise {\n (auth as AuthInternal)._canInitEmulator = false;\n const errorMap = { ...SERVER_ERROR_MAP, ...customErrorMap };\n try {\n const networkTimeout = new NetworkTimeout(auth);\n const response: Response = await Promise.race>([\n fetchFn(),\n networkTimeout.promise\n ]);\n\n // If we've reached this point, the fetch succeeded and the networkTimeout\n // didn't throw; clear the network timeout delay so that Node won't hang\n networkTimeout.clearNetworkTimeout();\n\n const json = await response.json();\n if ('needConfirmation' in json) {\n throw _makeTaggedError(auth, AuthErrorCode.NEED_CONFIRMATION, json);\n }\n\n if (response.ok && !('errorMessage' in json)) {\n return json;\n } else {\n const errorMessage = response.ok ? json.errorMessage : json.error.message;\n const [serverErrorCode, serverErrorMessage] = errorMessage.split(' : ');\n if (serverErrorCode === ServerError.FEDERATED_USER_ID_ALREADY_LINKED) {\n throw _makeTaggedError(\n auth,\n AuthErrorCode.CREDENTIAL_ALREADY_IN_USE,\n json\n );\n } else if (serverErrorCode === ServerError.EMAIL_EXISTS) {\n throw _makeTaggedError(auth, AuthErrorCode.EMAIL_EXISTS, json);\n } else if (serverErrorCode === ServerError.USER_DISABLED) {\n throw _makeTaggedError(auth, AuthErrorCode.USER_DISABLED, json);\n }\n const authError =\n errorMap[serverErrorCode as ServerError] ||\n (serverErrorCode\n .toLowerCase()\n .replace(/[_\\s]+/g, '-') as unknown as AuthErrorCode);\n if (serverErrorMessage) {\n throw _errorWithCustomMessage(auth, authError, serverErrorMessage);\n } else {\n _fail(auth, authError);\n }\n }\n } catch (e) {\n if (e instanceof FirebaseError) {\n throw e;\n }\n // Changing this to a different error code will log user out when there is a network error\n // because we treat any error other than NETWORK_REQUEST_FAILED as token is invalid.\n // https://github.com/firebase/firebase-js-sdk/blob/4fbc73610d70be4e0852e7de63a39cb7897e8546/packages/auth/src/core/auth/auth_impl.ts#L309-L316\n _fail(auth, AuthErrorCode.NETWORK_REQUEST_FAILED, { 'message': String(e) });\n }\n}\n\nexport async function _performSignInRequest(\n auth: Auth,\n method: HttpMethod,\n path: Endpoint,\n request?: T,\n customErrorMap: Partial> = {}\n): Promise {\n const serverResponse = (await _performApiRequest(\n auth,\n method,\n path,\n request,\n customErrorMap\n )) as V;\n if ('mfaPendingCredential' in serverResponse) {\n _fail(auth, AuthErrorCode.MFA_REQUIRED, {\n _serverResponse: serverResponse\n });\n }\n\n return serverResponse;\n}\n\nexport function _getFinalTarget(\n auth: Auth,\n host: string,\n path: string,\n query: string\n): string {\n const base = `${host}${path}?${query}`;\n\n if (!(auth as AuthInternal).config.emulator) {\n return `${auth.config.apiScheme}://${base}`;\n }\n\n return _emulatorUrl(auth.config as ConfigInternal, base);\n}\n\nexport function _parseEnforcementState(\n enforcementStateStr: string\n): EnforcementState {\n switch (enforcementStateStr) {\n case 'ENFORCE':\n return EnforcementState.ENFORCE;\n case 'AUDIT':\n return EnforcementState.AUDIT;\n case 'OFF':\n return EnforcementState.OFF;\n default:\n return EnforcementState.ENFORCEMENT_STATE_UNSPECIFIED;\n }\n}\n\nclass NetworkTimeout {\n // Node timers and browser timers are fundamentally incompatible, but we\n // don't care about the value here\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n private timer: any | null = null;\n readonly promise = new Promise((_, reject) => {\n this.timer = setTimeout(() => {\n return reject(\n _createError(this.auth, AuthErrorCode.NETWORK_REQUEST_FAILED)\n );\n }, DEFAULT_API_TIMEOUT_MS.get());\n });\n\n clearNetworkTimeout(): void {\n clearTimeout(this.timer);\n }\n\n constructor(private readonly auth: Auth) {}\n}\n\ninterface PotentialResponse extends IdTokenResponse {\n email?: string;\n phoneNumber?: string;\n}\n\nexport function _makeTaggedError(\n auth: Auth,\n code: AuthErrorCode,\n response: PotentialResponse\n): FirebaseError {\n const errorParams: NamedErrorParams = {\n appName: auth.name\n };\n\n if (response.email) {\n errorParams.email = response.email;\n }\n if (response.phoneNumber) {\n errorParams.phoneNumber = response.phoneNumber;\n }\n\n const error = _createError(auth, code, errorParams);\n\n // We know customData is defined on error because errorParams is defined\n (error.customData! as TaggedWithTokenResponse)._tokenResponse = response;\n return error;\n}\n","/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { RecaptchaParameters } from '../../model/public_types';\nimport {\n GetRecaptchaConfigResponse,\n RecaptchaEnforcementProviderState\n} from '../../api/authentication/recaptcha';\nimport { EnforcementState, _parseEnforcementState } from '../../api/index';\n\n// reCAPTCHA v2 interface\nexport interface Recaptcha {\n render: (container: HTMLElement, parameters: RecaptchaParameters) => number;\n getResponse: (id: number) => string;\n execute: (id: number) => unknown;\n reset: (id: number) => unknown;\n}\n\nexport function isV2(\n grecaptcha: Recaptcha | GreCAPTCHA | undefined\n): grecaptcha is Recaptcha {\n return (\n grecaptcha !== undefined &&\n (grecaptcha as Recaptcha).getResponse !== undefined\n );\n}\n\n// reCAPTCHA Enterprise & v3 shared interface\nexport interface GreCAPTCHATopLevel extends GreCAPTCHA {\n enterprise: GreCAPTCHA;\n}\n\n// reCAPTCHA Enterprise interface\nexport interface GreCAPTCHA {\n ready: (callback: () => void) => void;\n execute: (siteKey: string, options: { action: string }) => Promise;\n render: (\n container: string | HTMLElement,\n parameters: GreCAPTCHARenderOption\n ) => string;\n}\n\nexport interface GreCAPTCHARenderOption {\n sitekey: string;\n size: 'invisible';\n}\n\nexport function isEnterprise(\n grecaptcha: Recaptcha | GreCAPTCHA | undefined\n): grecaptcha is GreCAPTCHATopLevel {\n return (\n grecaptcha !== undefined &&\n (grecaptcha as GreCAPTCHATopLevel).enterprise !== undefined\n );\n}\n\n// TODO(chuanr): Replace this with the AuthWindow after resolving the dependency issue in Node.js env.\ndeclare global {\n interface Window {\n grecaptcha?: Recaptcha | GreCAPTCHATopLevel;\n }\n}\n\nexport class RecaptchaConfig {\n /**\n * The reCAPTCHA site key.\n */\n siteKey: string = '';\n\n /**\n * The list of providers and their enablement status for reCAPTCHA Enterprise.\n */\n recaptchaEnforcementState: RecaptchaEnforcementProviderState[] = [];\n\n constructor(response: GetRecaptchaConfigResponse) {\n if (response.recaptchaKey === undefined) {\n throw new Error('recaptchaKey undefined');\n }\n // Example response.recaptchaKey: \"projects/proj123/keys/sitekey123\"\n this.siteKey = response.recaptchaKey.split('/')[3];\n this.recaptchaEnforcementState = response.recaptchaEnforcementState;\n }\n\n /**\n * Returns the reCAPTCHA Enterprise enforcement state for the given provider.\n *\n * @param providerStr - The provider whose enforcement state is to be returned.\n * @returns The reCAPTCHA Enterprise enforcement state for the given provider.\n */\n getProviderEnforcementState(providerStr: string): EnforcementState | null {\n if (\n !this.recaptchaEnforcementState ||\n this.recaptchaEnforcementState.length === 0\n ) {\n return null;\n }\n\n for (const recaptchaEnforcementState of this.recaptchaEnforcementState) {\n if (\n recaptchaEnforcementState.provider &&\n recaptchaEnforcementState.provider === providerStr\n ) {\n return _parseEnforcementState(\n recaptchaEnforcementState.enforcementState\n );\n }\n }\n return null;\n }\n\n /**\n * Returns true if the reCAPTCHA Enterprise enforcement state for the provider is set to ENFORCE or AUDIT.\n *\n * @param providerStr - The provider whose enablement state is to be returned.\n * @returns Whether or not reCAPTCHA Enterprise protection is enabled for the given provider.\n */\n isProviderEnabled(providerStr: string): boolean {\n return (\n this.getProviderEnforcementState(providerStr) ===\n EnforcementState.ENFORCE ||\n this.getProviderEnforcementState(providerStr) === EnforcementState.AUDIT\n );\n }\n}\n","/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {\n Endpoint,\n HttpMethod,\n RecaptchaClientType,\n RecaptchaVersion,\n _performApiRequest,\n _addTidIfNecessary\n} from '../index';\nimport { Auth } from '../../model/public_types';\n\ninterface GetRecaptchaParamResponse {\n recaptchaSiteKey?: string;\n}\n\nexport async function getRecaptchaParams(auth: Auth): Promise {\n return (\n (\n await _performApiRequest(\n auth,\n HttpMethod.GET,\n Endpoint.GET_RECAPTCHA_PARAM\n )\n ).recaptchaSiteKey || ''\n );\n}\n\n// The following functions are for reCAPTCHA enterprise integration.\ninterface GetRecaptchaConfigRequest {\n tenantId?: string;\n clientType?: RecaptchaClientType;\n version?: RecaptchaVersion;\n}\n\nexport interface RecaptchaEnforcementProviderState {\n provider: string;\n enforcementState: string;\n}\n\nexport interface GetRecaptchaConfigResponse {\n recaptchaKey: string;\n recaptchaEnforcementState: RecaptchaEnforcementProviderState[];\n}\n\nexport async function getRecaptchaConfig(\n auth: Auth,\n request: GetRecaptchaConfigRequest\n): Promise {\n return _performApiRequest<\n GetRecaptchaConfigRequest,\n GetRecaptchaConfigResponse\n >(\n auth,\n HttpMethod.GET,\n Endpoint.GET_RECAPTCHA_CONFIG,\n _addTidIfNecessary(auth, request)\n );\n}\n","/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { Endpoint, HttpMethod, _performApiRequest } from '../index';\nimport { MfaEnrollment } from './mfa';\nimport { Auth } from '../../model/public_types';\n\nexport interface DeleteAccountRequest {\n idToken: string;\n}\n\nexport async function deleteAccount(\n auth: Auth,\n request: DeleteAccountRequest\n): Promise {\n return _performApiRequest(\n auth,\n HttpMethod.POST,\n Endpoint.DELETE_ACCOUNT,\n request\n );\n}\n\nexport interface ProviderUserInfo {\n providerId: string;\n rawId?: string;\n email?: string;\n displayName?: string;\n photoUrl?: string;\n phoneNumber?: string;\n}\n\nexport interface DeleteLinkedAccountsRequest {\n idToken: string;\n deleteProvider: string[];\n}\n\nexport interface DeleteLinkedAccountsResponse {\n providerUserInfo: ProviderUserInfo[];\n}\n\nexport async function deleteLinkedAccounts(\n auth: Auth,\n request: DeleteLinkedAccountsRequest\n): Promise {\n return _performApiRequest<\n DeleteLinkedAccountsRequest,\n DeleteLinkedAccountsResponse\n >(auth, HttpMethod.POST, Endpoint.SET_ACCOUNT_INFO, request);\n}\n\nexport interface APIUserInfo {\n localId?: string;\n displayName?: string;\n photoUrl?: string;\n email?: string;\n emailVerified?: boolean;\n phoneNumber?: string;\n lastLoginAt?: number;\n createdAt?: number;\n tenantId?: string;\n passwordHash?: string;\n providerUserInfo?: ProviderUserInfo[];\n mfaInfo?: MfaEnrollment[];\n}\n\nexport interface GetAccountInfoRequest {\n idToken: string;\n}\n\nexport interface GetAccountInfoResponse {\n users: APIUserInfo[];\n}\n\nexport async function getAccountInfo(\n auth: Auth,\n request: GetAccountInfoRequest\n): Promise {\n return _performApiRequest(\n auth,\n HttpMethod.POST,\n Endpoint.GET_ACCOUNT_INFO,\n request\n );\n}\n","/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport function utcTimestampToDateString(\n utcTimestamp?: string | number\n): string | undefined {\n if (!utcTimestamp) {\n return undefined;\n }\n try {\n // Convert to date object.\n const date = new Date(Number(utcTimestamp));\n // Test date is valid.\n if (!isNaN(date.getTime())) {\n // Convert to UTC date string.\n return date.toUTCString();\n }\n } catch (e) {\n // Do nothing. undefined will be returned.\n }\n return undefined;\n}\n","/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { IdTokenResult, ParsedToken, User } from '../../model/public_types';\nimport { base64Decode, getModularInstance } from '@firebase/util';\n\nimport { UserInternal } from '../../model/user';\nimport { _assert } from '../util/assert';\nimport { _logError } from '../util/log';\nimport { utcTimestampToDateString } from '../util/time';\nimport { AuthErrorCode } from '../errors';\n\n/**\n * Returns a JSON Web Token (JWT) used to identify the user to a Firebase service.\n *\n * @remarks\n * Returns the current token if it has not expired or if it will not expire in the next five\n * minutes. Otherwise, this will refresh the token and return a new one.\n *\n * @param user - The user.\n * @param forceRefresh - Force refresh regardless of token expiration.\n *\n * @public\n */\nexport function getIdToken(user: User, forceRefresh = false): Promise {\n return getModularInstance(user).getIdToken(forceRefresh);\n}\n\n/**\n * Returns a deserialized JSON Web Token (JWT) used to identify the user to a Firebase service.\n *\n * @remarks\n * Returns the current token if it has not expired or if it will not expire in the next five\n * minutes. Otherwise, this will refresh the token and return a new one.\n *\n * @param user - The user.\n * @param forceRefresh - Force refresh regardless of token expiration.\n *\n * @public\n */\nexport async function getIdTokenResult(\n user: User,\n forceRefresh = false\n): Promise {\n const userInternal = getModularInstance(user) as UserInternal;\n const token = await userInternal.getIdToken(forceRefresh);\n const claims = _parseToken(token);\n\n _assert(\n claims && claims.exp && claims.auth_time && claims.iat,\n userInternal.auth,\n AuthErrorCode.INTERNAL_ERROR\n );\n const firebase =\n typeof claims.firebase === 'object' ? claims.firebase : undefined;\n\n const signInProvider: string | undefined = firebase?.['sign_in_provider'];\n\n return {\n claims,\n token,\n authTime: utcTimestampToDateString(\n secondsStringToMilliseconds(claims.auth_time)\n )!,\n issuedAtTime: utcTimestampToDateString(\n secondsStringToMilliseconds(claims.iat)\n )!,\n expirationTime: utcTimestampToDateString(\n secondsStringToMilliseconds(claims.exp)\n )!,\n signInProvider: signInProvider || null,\n signInSecondFactor: firebase?.['sign_in_second_factor'] || null\n };\n}\n\nfunction secondsStringToMilliseconds(seconds: string): number {\n return Number(seconds) * 1000;\n}\n\nexport function _parseToken(token: string): ParsedToken | null {\n const [algorithm, payload, signature] = token.split('.');\n if (\n algorithm === undefined ||\n payload === undefined ||\n signature === undefined\n ) {\n _logError('JWT malformed, contained fewer than 3 sections');\n return null;\n }\n\n try {\n const decoded = base64Decode(payload);\n if (!decoded) {\n _logError('Failed to decode base64 JWT payload');\n return null;\n }\n return JSON.parse(decoded);\n } catch (e) {\n _logError(\n 'Caught error parsing JWT payload as JSON',\n (e as Error)?.toString()\n );\n return null;\n }\n}\n\n/**\n * Extract expiresIn TTL from a token by subtracting the expiration from the issuance.\n */\nexport function _tokenExpiresIn(token: string): number {\n const parsedToken = _parseToken(token);\n _assert(parsedToken, AuthErrorCode.INTERNAL_ERROR);\n _assert(typeof parsedToken.exp !== 'undefined', AuthErrorCode.INTERNAL_ERROR);\n _assert(typeof parsedToken.iat !== 'undefined', AuthErrorCode.INTERNAL_ERROR);\n return Number(parsedToken.exp) - Number(parsedToken.iat);\n}\n","/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { FirebaseError } from '@firebase/util';\n\nimport { UserInternal } from '../../model/user';\nimport { AuthErrorCode } from '../errors';\n\nexport async function _logoutIfInvalidated(\n user: UserInternal,\n promise: Promise,\n bypassAuthState = false\n): Promise {\n if (bypassAuthState) {\n return promise;\n }\n try {\n return await promise;\n } catch (e) {\n if (e instanceof FirebaseError && isUserInvalidated(e)) {\n if (user.auth.currentUser === user) {\n await user.auth.signOut();\n }\n }\n\n throw e;\n }\n}\n\nfunction isUserInvalidated({ code }: FirebaseError): boolean {\n return (\n code === `auth/${AuthErrorCode.USER_DISABLED}` ||\n code === `auth/${AuthErrorCode.TOKEN_EXPIRED}`\n );\n}\n","/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { FirebaseError } from '@firebase/util';\nimport { UserInternal } from '../../model/user';\nimport { AuthErrorCode } from '../errors';\n\n// Refresh the token five minutes before expiration\nexport const enum Duration {\n OFFSET = 5 * 1000 * 60,\n RETRY_BACKOFF_MIN = 30 * 1000,\n RETRY_BACKOFF_MAX = 16 * 60 * 1000\n}\n\nexport class ProactiveRefresh {\n private isRunning = false;\n\n // Node timers and browser timers return fundamentally different types.\n // We don't actually care what the value is but TS won't accept unknown and\n // we can't cast properly in both environments.\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n private timerId: any | null = null;\n private errorBackoff = Duration.RETRY_BACKOFF_MIN;\n\n constructor(private readonly user: UserInternal) {}\n\n _start(): void {\n if (this.isRunning) {\n return;\n }\n\n this.isRunning = true;\n this.schedule();\n }\n\n _stop(): void {\n if (!this.isRunning) {\n return;\n }\n\n this.isRunning = false;\n if (this.timerId !== null) {\n clearTimeout(this.timerId);\n }\n }\n\n private getInterval(wasError: boolean): number {\n if (wasError) {\n const interval = this.errorBackoff;\n this.errorBackoff = Math.min(\n this.errorBackoff * 2,\n Duration.RETRY_BACKOFF_MAX\n );\n return interval;\n } else {\n // Reset the error backoff\n this.errorBackoff = Duration.RETRY_BACKOFF_MIN;\n const expTime = this.user.stsTokenManager.expirationTime ?? 0;\n const interval = expTime - Date.now() - Duration.OFFSET;\n\n return Math.max(0, interval);\n }\n }\n\n private schedule(wasError = false): void {\n if (!this.isRunning) {\n // Just in case...\n return;\n }\n\n const interval = this.getInterval(wasError);\n this.timerId = setTimeout(async () => {\n await this.iteration();\n }, interval);\n }\n\n private async iteration(): Promise {\n try {\n await this.user.getIdToken(true);\n } catch (e) {\n // Only retry on network errors\n if (\n (e as FirebaseError)?.code ===\n `auth/${AuthErrorCode.NETWORK_REQUEST_FAILED}`\n ) {\n this.schedule(/* wasError */ true);\n }\n\n return;\n }\n this.schedule();\n }\n}\n","/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { UserMetadata as UserMetadataType } from '../../model/public_types';\n\nimport { utcTimestampToDateString } from '../util/time';\n\nexport class UserMetadata implements UserMetadataType {\n creationTime?: string;\n lastSignInTime?: string;\n\n constructor(\n private createdAt?: string | number,\n private lastLoginAt?: string | number\n ) {\n this._initializeTime();\n }\n\n private _initializeTime(): void {\n this.lastSignInTime = utcTimestampToDateString(this.lastLoginAt);\n this.creationTime = utcTimestampToDateString(this.createdAt);\n }\n\n _copy(metadata: UserMetadata): void {\n this.createdAt = metadata.createdAt;\n this.lastLoginAt = metadata.lastLoginAt;\n this._initializeTime();\n }\n\n toJSON(): object {\n return {\n createdAt: this.createdAt,\n lastLoginAt: this.lastLoginAt\n };\n }\n}\n","/**\n * @license\n * Copyright 2019 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { User, UserInfo } from '../../model/public_types';\n\nimport {\n getAccountInfo,\n ProviderUserInfo\n} from '../../api/account_management/account';\nimport { UserInternal } from '../../model/user';\nimport { AuthErrorCode } from '../errors';\nimport { _assert } from '../util/assert';\nimport { _logoutIfInvalidated } from './invalidation';\nimport { UserMetadata } from './user_metadata';\nimport { getModularInstance } from '@firebase/util';\n\nexport async function _reloadWithoutSaving(user: UserInternal): Promise {\n const auth = user.auth;\n const idToken = await user.getIdToken();\n const response = await _logoutIfInvalidated(\n user,\n getAccountInfo(auth, { idToken })\n );\n\n _assert(response?.users.length, auth, AuthErrorCode.INTERNAL_ERROR);\n\n const coreAccount = response.users[0];\n\n user._notifyReloadListener(coreAccount);\n\n const newProviderData = coreAccount.providerUserInfo?.length\n ? extractProviderData(coreAccount.providerUserInfo)\n : [];\n\n const providerData = mergeProviderData(user.providerData, newProviderData);\n\n // Preserves the non-nonymous status of the stored user, even if no more\n // credentials (federated or email/password) are linked to the user. If\n // the user was previously anonymous, then use provider data to update.\n // On the other hand, if it was not anonymous before, it should never be\n // considered anonymous now.\n const oldIsAnonymous = user.isAnonymous;\n const newIsAnonymous =\n !(user.email && coreAccount.passwordHash) && !providerData?.length;\n const isAnonymous = !oldIsAnonymous ? false : newIsAnonymous;\n\n const updates: Partial = {\n uid: coreAccount.localId,\n displayName: coreAccount.displayName || null,\n photoURL: coreAccount.photoUrl || null,\n email: coreAccount.email || null,\n emailVerified: coreAccount.emailVerified || false,\n phoneNumber: coreAccount.phoneNumber || null,\n tenantId: coreAccount.tenantId || null,\n providerData,\n metadata: new UserMetadata(coreAccount.createdAt, coreAccount.lastLoginAt),\n isAnonymous\n };\n\n Object.assign(user, updates);\n}\n\n/**\n * Reloads user account data, if signed in.\n *\n * @param user - The user.\n *\n * @public\n */\nexport async function reload(user: User): Promise {\n const userInternal: UserInternal = getModularInstance(user) as UserInternal;\n await _reloadWithoutSaving(userInternal);\n\n // Even though the current user hasn't changed, update\n // current user will trigger a persistence update w/ the\n // new info.\n await userInternal.auth._persistUserIfCurrent(userInternal);\n userInternal.auth._notifyListenersIfCurrent(userInternal);\n}\n\nfunction mergeProviderData(\n original: UserInfo[],\n newData: UserInfo[]\n): UserInfo[] {\n const deduped = original.filter(\n o => !newData.some(n => n.providerId === o.providerId)\n );\n return [...deduped, ...newData];\n}\n\nfunction extractProviderData(providers: ProviderUserInfo[]): UserInfo[] {\n return providers.map(({ providerId, ...provider }) => {\n return {\n providerId,\n uid: provider.rawId || '',\n displayName: provider.displayName || null,\n email: provider.email || null,\n phoneNumber: provider.phoneNumber || null,\n photoURL: provider.photoUrl || null\n };\n });\n}\n","/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/* eslint-disable camelcase */\n\nimport { querystring } from '@firebase/util';\n\nimport {\n _getFinalTarget,\n _performFetchWithErrorHandling,\n _performApiRequest,\n _addTidIfNecessary,\n HttpMethod,\n HttpHeader,\n Endpoint\n} from '../index';\nimport { FetchProvider } from '../../core/util/fetch_provider';\nimport { Auth } from '../../model/public_types';\nimport { AuthInternal } from '../../model/auth';\n\nexport const enum TokenType {\n REFRESH_TOKEN = 'REFRESH_TOKEN',\n ACCESS_TOKEN = 'ACCESS_TOKEN'\n}\n\n/** The server responses with snake_case; we convert to camelCase */\ninterface RequestStsTokenServerResponse {\n access_token: string;\n expires_in: string;\n refresh_token: string;\n}\n\nexport interface RequestStsTokenResponse {\n accessToken: string;\n expiresIn: string;\n refreshToken: string;\n}\n\nexport interface RevokeTokenRequest {\n providerId: string;\n tokenType: TokenType;\n token: string;\n idToken: string;\n tenantId?: string;\n}\n\nexport interface RevokeTokenResponse {}\n\nexport async function requestStsToken(\n auth: Auth,\n refreshToken: string\n): Promise {\n const response =\n await _performFetchWithErrorHandling(\n auth,\n {},\n async () => {\n const body = querystring({\n 'grant_type': 'refresh_token',\n 'refresh_token': refreshToken\n }).slice(1);\n const { tokenApiHost, apiKey } = auth.config;\n const url = _getFinalTarget(\n auth,\n tokenApiHost,\n Endpoint.TOKEN,\n `key=${apiKey}`\n );\n\n const headers = await (auth as AuthInternal)._getAdditionalHeaders();\n headers[HttpHeader.CONTENT_TYPE] = 'application/x-www-form-urlencoded';\n\n return FetchProvider.fetch()(url, {\n method: HttpMethod.POST,\n headers,\n body\n });\n }\n );\n\n // The response comes back in snake_case. Convert to camel:\n return {\n accessToken: response.access_token,\n expiresIn: response.expires_in,\n refreshToken: response.refresh_token\n };\n}\n\nexport async function revokeToken(\n auth: Auth,\n request: RevokeTokenRequest\n): Promise {\n return _performApiRequest(\n auth,\n HttpMethod.POST,\n Endpoint.REVOKE_TOKEN,\n _addTidIfNecessary(auth, request)\n );\n}\n","/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { FinalizeMfaResponse } from '../../api/authentication/mfa';\nimport { requestStsToken } from '../../api/authentication/token';\nimport { AuthInternal } from '../../model/auth';\nimport { IdTokenResponse } from '../../model/id_token';\nimport { AuthErrorCode } from '../errors';\nimport { PersistedBlob } from '../persistence';\nimport { _assert, debugFail } from '../util/assert';\nimport { _tokenExpiresIn } from './id_token_result';\n\n/**\n * The number of milliseconds before the official expiration time of a token\n * to refresh that token, to provide a buffer for RPCs to complete.\n */\nexport const enum Buffer {\n TOKEN_REFRESH = 30_000\n}\n\n/**\n * We need to mark this class as internal explicitly to exclude it in the public typings, because\n * it references AuthInternal which has a circular dependency with UserInternal.\n *\n * @internal\n */\nexport class StsTokenManager {\n refreshToken: string | null = null;\n accessToken: string | null = null;\n expirationTime: number | null = null;\n\n get isExpired(): boolean {\n return (\n !this.expirationTime ||\n Date.now() > this.expirationTime - Buffer.TOKEN_REFRESH\n );\n }\n\n updateFromServerResponse(\n response: IdTokenResponse | FinalizeMfaResponse\n ): void {\n _assert(response.idToken, AuthErrorCode.INTERNAL_ERROR);\n _assert(\n typeof response.idToken !== 'undefined',\n AuthErrorCode.INTERNAL_ERROR\n );\n _assert(\n typeof response.refreshToken !== 'undefined',\n AuthErrorCode.INTERNAL_ERROR\n );\n const expiresIn =\n 'expiresIn' in response && typeof response.expiresIn !== 'undefined'\n ? Number(response.expiresIn)\n : _tokenExpiresIn(response.idToken);\n this.updateTokensAndExpiration(\n response.idToken,\n response.refreshToken,\n expiresIn\n );\n }\n\n async getToken(\n auth: AuthInternal,\n forceRefresh = false\n ): Promise {\n _assert(\n !this.accessToken || this.refreshToken,\n auth,\n AuthErrorCode.TOKEN_EXPIRED\n );\n\n if (!forceRefresh && this.accessToken && !this.isExpired) {\n return this.accessToken;\n }\n\n if (this.refreshToken) {\n await this.refresh(auth, this.refreshToken!);\n return this.accessToken;\n }\n\n return null;\n }\n\n clearRefreshToken(): void {\n this.refreshToken = null;\n }\n\n private async refresh(auth: AuthInternal, oldToken: string): Promise {\n const { accessToken, refreshToken, expiresIn } = await requestStsToken(\n auth,\n oldToken\n );\n this.updateTokensAndExpiration(\n accessToken,\n refreshToken,\n Number(expiresIn)\n );\n }\n\n private updateTokensAndExpiration(\n accessToken: string,\n refreshToken: string,\n expiresInSec: number\n ): void {\n this.refreshToken = refreshToken || null;\n this.accessToken = accessToken || null;\n this.expirationTime = Date.now() + expiresInSec * 1000;\n }\n\n static fromJSON(appName: string, object: PersistedBlob): StsTokenManager {\n const { refreshToken, accessToken, expirationTime } = object;\n\n const manager = new StsTokenManager();\n if (refreshToken) {\n _assert(typeof refreshToken === 'string', AuthErrorCode.INTERNAL_ERROR, {\n appName\n });\n manager.refreshToken = refreshToken;\n }\n if (accessToken) {\n _assert(typeof accessToken === 'string', AuthErrorCode.INTERNAL_ERROR, {\n appName\n });\n manager.accessToken = accessToken;\n }\n if (expirationTime) {\n _assert(\n typeof expirationTime === 'number',\n AuthErrorCode.INTERNAL_ERROR,\n {\n appName\n }\n );\n manager.expirationTime = expirationTime;\n }\n return manager;\n }\n\n toJSON(): object {\n return {\n refreshToken: this.refreshToken,\n accessToken: this.accessToken,\n expirationTime: this.expirationTime\n };\n }\n\n _assign(stsTokenManager: StsTokenManager): void {\n this.accessToken = stsTokenManager.accessToken;\n this.refreshToken = stsTokenManager.refreshToken;\n this.expirationTime = stsTokenManager.expirationTime;\n }\n\n _clone(): StsTokenManager {\n return Object.assign(new StsTokenManager(), this.toJSON());\n }\n\n _performRefresh(): never {\n return debugFail('not implemented');\n }\n}\n","/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { IdTokenResult } from '../../model/public_types';\nimport { NextFn } from '@firebase/util';\n\nimport {\n APIUserInfo,\n deleteAccount\n} from '../../api/account_management/account';\nimport { FinalizeMfaResponse } from '../../api/authentication/mfa';\nimport { AuthInternal } from '../../model/auth';\nimport { IdTokenResponse } from '../../model/id_token';\nimport {\n MutableUserInfo,\n UserInternal,\n UserParameters\n} from '../../model/user';\nimport { AuthErrorCode } from '../errors';\nimport { PersistedBlob } from '../persistence';\nimport { _assert } from '../util/assert';\nimport { getIdTokenResult } from './id_token_result';\nimport { _logoutIfInvalidated } from './invalidation';\nimport { ProactiveRefresh } from './proactive_refresh';\nimport { _reloadWithoutSaving, reload } from './reload';\nimport { StsTokenManager } from './token_manager';\nimport { UserMetadata } from './user_metadata';\nimport { ProviderId } from '../../model/enums';\n\nfunction assertStringOrUndefined(\n assertion: unknown,\n appName: string\n): asserts assertion is string | undefined {\n _assert(\n typeof assertion === 'string' || typeof assertion === 'undefined',\n AuthErrorCode.INTERNAL_ERROR,\n { appName }\n );\n}\n\nexport class UserImpl implements UserInternal {\n // For the user object, provider is always Firebase.\n readonly providerId = ProviderId.FIREBASE;\n stsTokenManager: StsTokenManager;\n // Last known accessToken so we know when it changes\n private accessToken: string | null;\n\n uid: string;\n auth: AuthInternal;\n emailVerified: boolean;\n isAnonymous: boolean;\n tenantId: string | null;\n readonly metadata: UserMetadata;\n providerData: MutableUserInfo[];\n\n // Optional fields from UserInfo\n displayName: string | null;\n email: string | null;\n phoneNumber: string | null;\n photoURL: string | null;\n\n _redirectEventId?: string;\n private readonly proactiveRefresh = new ProactiveRefresh(this);\n\n constructor({ uid, auth, stsTokenManager, ...opt }: UserParameters) {\n this.uid = uid;\n this.auth = auth;\n this.stsTokenManager = stsTokenManager;\n this.accessToken = stsTokenManager.accessToken;\n this.displayName = opt.displayName || null;\n this.email = opt.email || null;\n this.emailVerified = opt.emailVerified || false;\n this.phoneNumber = opt.phoneNumber || null;\n this.photoURL = opt.photoURL || null;\n this.isAnonymous = opt.isAnonymous || false;\n this.tenantId = opt.tenantId || null;\n this.providerData = opt.providerData ? [...opt.providerData] : [];\n this.metadata = new UserMetadata(\n opt.createdAt || undefined,\n opt.lastLoginAt || undefined\n );\n }\n\n async getIdToken(forceRefresh?: boolean): Promise {\n const accessToken = await _logoutIfInvalidated(\n this,\n this.stsTokenManager.getToken(this.auth, forceRefresh)\n );\n _assert(accessToken, this.auth, AuthErrorCode.INTERNAL_ERROR);\n\n if (this.accessToken !== accessToken) {\n this.accessToken = accessToken;\n await this.auth._persistUserIfCurrent(this);\n this.auth._notifyListenersIfCurrent(this);\n }\n\n return accessToken;\n }\n\n getIdTokenResult(forceRefresh?: boolean): Promise {\n return getIdTokenResult(this, forceRefresh);\n }\n\n reload(): Promise {\n return reload(this);\n }\n\n private reloadUserInfo: APIUserInfo | null = null;\n private reloadListener: NextFn | null = null;\n\n _assign(user: UserInternal): void {\n if (this === user) {\n return;\n }\n _assert(this.uid === user.uid, this.auth, AuthErrorCode.INTERNAL_ERROR);\n this.displayName = user.displayName;\n this.photoURL = user.photoURL;\n this.email = user.email;\n this.emailVerified = user.emailVerified;\n this.phoneNumber = user.phoneNumber;\n this.isAnonymous = user.isAnonymous;\n this.tenantId = user.tenantId;\n this.providerData = user.providerData.map(userInfo => ({ ...userInfo }));\n this.metadata._copy(user.metadata);\n this.stsTokenManager._assign(user.stsTokenManager);\n }\n\n _clone(auth: AuthInternal): UserInternal {\n const newUser = new UserImpl({\n ...this,\n auth,\n stsTokenManager: this.stsTokenManager._clone()\n });\n newUser.metadata._copy(this.metadata);\n return newUser;\n }\n\n _onReload(callback: NextFn): void {\n // There should only ever be one listener, and that is a single instance of MultiFactorUser\n _assert(!this.reloadListener, this.auth, AuthErrorCode.INTERNAL_ERROR);\n this.reloadListener = callback;\n if (this.reloadUserInfo) {\n this._notifyReloadListener(this.reloadUserInfo);\n this.reloadUserInfo = null;\n }\n }\n\n _notifyReloadListener(userInfo: APIUserInfo): void {\n if (this.reloadListener) {\n this.reloadListener(userInfo);\n } else {\n // If no listener is subscribed yet, save the result so it's available when they do subscribe\n this.reloadUserInfo = userInfo;\n }\n }\n\n _startProactiveRefresh(): void {\n this.proactiveRefresh._start();\n }\n\n _stopProactiveRefresh(): void {\n this.proactiveRefresh._stop();\n }\n\n async _updateTokensIfNecessary(\n response: IdTokenResponse | FinalizeMfaResponse,\n reload = false\n ): Promise {\n let tokensRefreshed = false;\n if (\n response.idToken &&\n response.idToken !== this.stsTokenManager.accessToken\n ) {\n this.stsTokenManager.updateFromServerResponse(response);\n tokensRefreshed = true;\n }\n\n if (reload) {\n await _reloadWithoutSaving(this);\n }\n\n await this.auth._persistUserIfCurrent(this);\n if (tokensRefreshed) {\n this.auth._notifyListenersIfCurrent(this);\n }\n }\n\n async delete(): Promise {\n const idToken = await this.getIdToken();\n await _logoutIfInvalidated(this, deleteAccount(this.auth, { idToken }));\n this.stsTokenManager.clearRefreshToken();\n\n // TODO: Determine if cancellable-promises are necessary to use in this class so that delete()\n // cancels pending actions...\n\n return this.auth.signOut();\n }\n\n toJSON(): PersistedBlob {\n return {\n uid: this.uid,\n email: this.email || undefined,\n emailVerified: this.emailVerified,\n displayName: this.displayName || undefined,\n isAnonymous: this.isAnonymous,\n photoURL: this.photoURL || undefined,\n phoneNumber: this.phoneNumber || undefined,\n tenantId: this.tenantId || undefined,\n providerData: this.providerData.map(userInfo => ({ ...userInfo })),\n stsTokenManager: this.stsTokenManager.toJSON(),\n // Redirect event ID must be maintained in case there is a pending\n // redirect event.\n _redirectEventId: this._redirectEventId,\n ...this.metadata.toJSON(),\n\n // Required for compatibility with the legacy SDK (go/firebase-auth-sdk-persistence-parsing):\n apiKey: this.auth.config.apiKey,\n appName: this.auth.name\n // Missing authDomain will be tolerated by the legacy SDK.\n // stsTokenManager.apiKey isn't actually required (despite the legacy SDK persisting it).\n };\n }\n\n get refreshToken(): string {\n return this.stsTokenManager.refreshToken || '';\n }\n\n static _fromJSON(auth: AuthInternal, object: PersistedBlob): UserInternal {\n const displayName = object.displayName ?? undefined;\n const email = object.email ?? undefined;\n const phoneNumber = object.phoneNumber ?? undefined;\n const photoURL = object.photoURL ?? undefined;\n const tenantId = object.tenantId ?? undefined;\n const _redirectEventId = object._redirectEventId ?? undefined;\n const createdAt = object.createdAt ?? undefined;\n const lastLoginAt = object.lastLoginAt ?? undefined;\n const {\n uid,\n emailVerified,\n isAnonymous,\n providerData,\n stsTokenManager: plainObjectTokenManager\n } = object;\n\n _assert(uid && plainObjectTokenManager, auth, AuthErrorCode.INTERNAL_ERROR);\n\n const stsTokenManager = StsTokenManager.fromJSON(\n this.name,\n plainObjectTokenManager as PersistedBlob\n );\n\n _assert(typeof uid === 'string', auth, AuthErrorCode.INTERNAL_ERROR);\n assertStringOrUndefined(displayName, auth.name);\n assertStringOrUndefined(email, auth.name);\n _assert(\n typeof emailVerified === 'boolean',\n auth,\n AuthErrorCode.INTERNAL_ERROR\n );\n _assert(\n typeof isAnonymous === 'boolean',\n auth,\n AuthErrorCode.INTERNAL_ERROR\n );\n assertStringOrUndefined(phoneNumber, auth.name);\n assertStringOrUndefined(photoURL, auth.name);\n assertStringOrUndefined(tenantId, auth.name);\n assertStringOrUndefined(_redirectEventId, auth.name);\n assertStringOrUndefined(createdAt, auth.name);\n assertStringOrUndefined(lastLoginAt, auth.name);\n const user = new UserImpl({\n uid,\n auth,\n email,\n emailVerified,\n displayName,\n isAnonymous,\n photoURL,\n phoneNumber,\n tenantId,\n stsTokenManager,\n createdAt,\n lastLoginAt\n });\n\n if (providerData && Array.isArray(providerData)) {\n user.providerData = providerData.map(userInfo => ({ ...userInfo }));\n }\n\n if (_redirectEventId) {\n user._redirectEventId = _redirectEventId;\n }\n\n return user;\n }\n\n /**\n * Initialize a User from an idToken server response\n * @param auth\n * @param idTokenResponse\n */\n static async _fromIdTokenResponse(\n auth: AuthInternal,\n idTokenResponse: IdTokenResponse,\n isAnonymous: boolean = false\n ): Promise {\n const stsTokenManager = new StsTokenManager();\n stsTokenManager.updateFromServerResponse(idTokenResponse);\n\n // Initialize the Firebase Auth user.\n const user = new UserImpl({\n uid: idTokenResponse.localId,\n auth,\n stsTokenManager,\n isAnonymous\n });\n\n // Updates the user info and data and resolves with a user instance.\n await _reloadWithoutSaving(user);\n return user;\n }\n}\n","/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { debugAssert } from './assert';\n\n/**\n * Our API has a lot of one-off constants that are used to do things.\n * Unfortunately we can't export these as classes instantiated directly since\n * the constructor may side effect and therefore can't be proven to be safely\n * culled. Instead, we export these classes themselves as a lowerCamelCase\n * constant, and instantiate them under the hood.\n */\nexport interface SingletonInstantiator {\n new (): T;\n}\n\nconst instanceCache: Map = new Map();\n\nexport function _getInstance(cls: unknown): T {\n debugAssert(cls instanceof Function, 'Expected a class definition');\n let instance = instanceCache.get(cls) as T | undefined;\n\n if (instance) {\n debugAssert(\n instance instanceof cls,\n 'Instance stored in cache mismatched with class'\n );\n return instance;\n }\n\n instance = new (cls as SingletonInstantiator)();\n instanceCache.set(cls, instance);\n return instance;\n}\n\nexport function _clearInstanceMap(): void {\n instanceCache.clear();\n}\n","/**\n * @license\n * Copyright 2019 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { Persistence } from '../../model/public_types';\n\nimport {\n PersistenceInternal,\n PersistenceType,\n PersistenceValue,\n StorageEventListener\n} from '../persistence';\n\nexport class InMemoryPersistence implements PersistenceInternal {\n static type: 'NONE' = 'NONE';\n readonly type = PersistenceType.NONE;\n storage: Record = {};\n\n async _isAvailable(): Promise {\n return true;\n }\n\n async _set(key: string, value: PersistenceValue): Promise {\n this.storage[key] = value;\n }\n\n async _get(key: string): Promise {\n const value = this.storage[key];\n return value === undefined ? null : (value as T);\n }\n\n async _remove(key: string): Promise {\n delete this.storage[key];\n }\n\n _addListener(_key: string, _listener: StorageEventListener): void {\n // Listeners are not supported for in-memory storage since it cannot be shared across windows/workers\n return;\n }\n\n _removeListener(_key: string, _listener: StorageEventListener): void {\n // Listeners are not supported for in-memory storage since it cannot be shared across windows/workers\n return;\n }\n}\n\n/**\n * An implementation of {@link Persistence} of type 'NONE'.\n *\n * @public\n */\nexport const inMemoryPersistence: Persistence = InMemoryPersistence;\n","/**\n * @license\n * Copyright 2019 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { ApiKey, AppName, AuthInternal } from '../../model/auth';\nimport { UserInternal } from '../../model/user';\nimport { PersistedBlob, PersistenceInternal } from '../persistence';\nimport { UserImpl } from '../user/user_impl';\nimport { _getInstance } from '../util/instantiator';\nimport { inMemoryPersistence } from './in_memory';\n\nexport const enum KeyName {\n AUTH_USER = 'authUser',\n AUTH_EVENT = 'authEvent',\n REDIRECT_USER = 'redirectUser',\n PERSISTENCE_USER = 'persistence'\n}\nexport const enum Namespace {\n PERSISTENCE = 'firebase'\n}\n\nexport function _persistenceKeyName(\n key: string,\n apiKey: ApiKey,\n appName: AppName\n): string {\n return `${Namespace.PERSISTENCE}:${key}:${apiKey}:${appName}`;\n}\n\nexport class PersistenceUserManager {\n private readonly fullUserKey: string;\n private readonly fullPersistenceKey: string;\n private readonly boundEventHandler: () => void;\n\n private constructor(\n public persistence: PersistenceInternal,\n private readonly auth: AuthInternal,\n private readonly userKey: string\n ) {\n const { config, name } = this.auth;\n this.fullUserKey = _persistenceKeyName(this.userKey, config.apiKey, name);\n this.fullPersistenceKey = _persistenceKeyName(\n KeyName.PERSISTENCE_USER,\n config.apiKey,\n name\n );\n this.boundEventHandler = auth._onStorageEvent.bind(auth);\n this.persistence._addListener(this.fullUserKey, this.boundEventHandler);\n }\n\n setCurrentUser(user: UserInternal): Promise {\n return this.persistence._set(this.fullUserKey, user.toJSON());\n }\n\n async getCurrentUser(): Promise {\n const blob = await this.persistence._get(this.fullUserKey);\n return blob ? UserImpl._fromJSON(this.auth, blob) : null;\n }\n\n removeCurrentUser(): Promise {\n return this.persistence._remove(this.fullUserKey);\n }\n\n savePersistenceForRedirect(): Promise {\n return this.persistence._set(\n this.fullPersistenceKey,\n this.persistence.type\n );\n }\n\n async setPersistence(newPersistence: PersistenceInternal): Promise {\n if (this.persistence === newPersistence) {\n return;\n }\n\n const currentUser = await this.getCurrentUser();\n await this.removeCurrentUser();\n\n this.persistence = newPersistence;\n\n if (currentUser) {\n return this.setCurrentUser(currentUser);\n }\n }\n\n delete(): void {\n this.persistence._removeListener(this.fullUserKey, this.boundEventHandler);\n }\n\n static async create(\n auth: AuthInternal,\n persistenceHierarchy: PersistenceInternal[],\n userKey = KeyName.AUTH_USER\n ): Promise {\n if (!persistenceHierarchy.length) {\n return new PersistenceUserManager(\n _getInstance(inMemoryPersistence),\n auth,\n userKey\n );\n }\n\n // Eliminate any persistences that are not available\n const availablePersistences = (\n await Promise.all(\n persistenceHierarchy.map(async persistence => {\n if (await persistence._isAvailable()) {\n return persistence;\n }\n return undefined;\n })\n )\n ).filter(persistence => persistence) as PersistenceInternal[];\n\n // Fall back to the first persistence listed, or in memory if none available\n let selectedPersistence =\n availablePersistences[0] ||\n _getInstance(inMemoryPersistence);\n\n const key = _persistenceKeyName(userKey, auth.config.apiKey, auth.name);\n\n // Pull out the existing user, setting the chosen persistence to that\n // persistence if the user exists.\n let userToMigrate: UserInternal | null = null;\n // Note, here we check for a user in _all_ persistences, not just the\n // ones deemed available. If we can migrate a user out of a broken\n // persistence, we will (but only if that persistence supports migration).\n for (const persistence of persistenceHierarchy) {\n try {\n const blob = await persistence._get(key);\n if (blob) {\n const user = UserImpl._fromJSON(auth, blob); // throws for unparsable blob (wrong format)\n if (persistence !== selectedPersistence) {\n userToMigrate = user;\n }\n selectedPersistence = persistence;\n break;\n }\n } catch {}\n }\n\n // If we find the user in a persistence that does support migration, use\n // that migration path (of only persistences that support migration)\n const migrationHierarchy = availablePersistences.filter(\n p => p._shouldAllowMigration\n );\n\n // If the persistence does _not_ allow migration, just finish off here\n if (\n !selectedPersistence._shouldAllowMigration ||\n !migrationHierarchy.length\n ) {\n return new PersistenceUserManager(selectedPersistence, auth, userKey);\n }\n\n selectedPersistence = migrationHierarchy[0];\n if (userToMigrate) {\n // This normally shouldn't throw since chosenPersistence.isAvailable() is true, but if it does\n // we'll just let it bubble to surface the error.\n await selectedPersistence._set(key, userToMigrate.toJSON());\n }\n\n // Attempt to clear the key in other persistences but ignore errors. This helps prevent issues\n // such as users getting stuck with a previous account after signing out and refreshing the tab.\n await Promise.all(\n persistenceHierarchy.map(async persistence => {\n if (persistence !== selectedPersistence) {\n try {\n await persistence._remove(key);\n } catch {}\n }\n })\n );\n return new PersistenceUserManager(selectedPersistence, auth, userKey);\n }\n}\n","/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { isIE, getUA } from '@firebase/util';\n\ninterface NavigatorStandalone extends Navigator {\n standalone?: unknown;\n}\n\ninterface Document {\n documentMode?: number;\n}\n\n/**\n * Enums for Browser name.\n */\nexport const enum BrowserName {\n ANDROID = 'Android',\n BLACKBERRY = 'Blackberry',\n EDGE = 'Edge',\n FIREFOX = 'Firefox',\n IE = 'IE',\n IEMOBILE = 'IEMobile',\n OPERA = 'Opera',\n OTHER = 'Other',\n CHROME = 'Chrome',\n SAFARI = 'Safari',\n SILK = 'Silk',\n WEBOS = 'Webos'\n}\n\n/**\n * Determine the browser for the purposes of reporting usage to the API\n */\nexport function _getBrowserName(userAgent: string): BrowserName | string {\n const ua = userAgent.toLowerCase();\n if (ua.includes('opera/') || ua.includes('opr/') || ua.includes('opios/')) {\n return BrowserName.OPERA;\n } else if (_isIEMobile(ua)) {\n // Windows phone IEMobile browser.\n return BrowserName.IEMOBILE;\n } else if (ua.includes('msie') || ua.includes('trident/')) {\n return BrowserName.IE;\n } else if (ua.includes('edge/')) {\n return BrowserName.EDGE;\n } else if (_isFirefox(ua)) {\n return BrowserName.FIREFOX;\n } else if (ua.includes('silk/')) {\n return BrowserName.SILK;\n } else if (_isBlackBerry(ua)) {\n // Blackberry browser.\n return BrowserName.BLACKBERRY;\n } else if (_isWebOS(ua)) {\n // WebOS default browser.\n return BrowserName.WEBOS;\n } else if (_isSafari(ua)) {\n return BrowserName.SAFARI;\n } else if (\n (ua.includes('chrome/') || _isChromeIOS(ua)) &&\n !ua.includes('edge/')\n ) {\n return BrowserName.CHROME;\n } else if (_isAndroid(ua)) {\n // Android stock browser.\n return BrowserName.ANDROID;\n } else {\n // Most modern browsers have name/version at end of user agent string.\n const re = /([a-zA-Z\\d\\.]+)\\/[a-zA-Z\\d\\.]*$/;\n const matches = userAgent.match(re);\n if (matches?.length === 2) {\n return matches[1];\n }\n }\n return BrowserName.OTHER;\n}\n\nexport function _isFirefox(ua = getUA()): boolean {\n return /firefox\\//i.test(ua);\n}\n\nexport function _isSafari(userAgent = getUA()): boolean {\n const ua = userAgent.toLowerCase();\n return (\n ua.includes('safari/') &&\n !ua.includes('chrome/') &&\n !ua.includes('crios/') &&\n !ua.includes('android')\n );\n}\n\nexport function _isChromeIOS(ua = getUA()): boolean {\n return /crios\\//i.test(ua);\n}\n\nexport function _isIEMobile(ua = getUA()): boolean {\n return /iemobile/i.test(ua);\n}\n\nexport function _isAndroid(ua = getUA()): boolean {\n return /android/i.test(ua);\n}\n\nexport function _isBlackBerry(ua = getUA()): boolean {\n return /blackberry/i.test(ua);\n}\n\nexport function _isWebOS(ua = getUA()): boolean {\n return /webos/i.test(ua);\n}\n\nexport function _isIOS(ua = getUA()): boolean {\n return (\n /iphone|ipad|ipod/i.test(ua) ||\n (/macintosh/i.test(ua) && /mobile/i.test(ua))\n );\n}\n\nexport function _isIOS7Or8(ua = getUA()): boolean {\n return (\n /(iPad|iPhone|iPod).*OS 7_\\d/i.test(ua) ||\n /(iPad|iPhone|iPod).*OS 8_\\d/i.test(ua)\n );\n}\n\nexport function _isIOSStandalone(ua = getUA()): boolean {\n return _isIOS(ua) && !!(window.navigator as NavigatorStandalone)?.standalone;\n}\n\nexport function _isIE10(): boolean {\n return isIE() && (document as Document).documentMode === 10;\n}\n\nexport function _isMobileBrowser(ua: string = getUA()): boolean {\n // TODO: implement getBrowserName equivalent for OS.\n return (\n _isIOS(ua) ||\n _isAndroid(ua) ||\n _isWebOS(ua) ||\n _isBlackBerry(ua) ||\n /windows phone/i.test(ua) ||\n _isIEMobile(ua)\n );\n}\n\nexport function _isIframe(): boolean {\n try {\n // Check that the current window is not the top window.\n // If so, return true.\n return !!(window && window !== window.top);\n } catch (e) {\n return false;\n }\n}\n","/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { SDK_VERSION } from '@firebase/app';\nimport { _getBrowserName } from './browser';\nimport { getUA } from '@firebase/util';\n\nexport const enum ClientImplementation {\n CORE = 'JsCore'\n}\n\n/**\n * @internal\n */\nexport const enum ClientPlatform {\n BROWSER = 'Browser',\n NODE = 'Node',\n REACT_NATIVE = 'ReactNative',\n CORDOVA = 'Cordova',\n WORKER = 'Worker'\n}\n\n/*\n * Determine the SDK version string\n */\nexport function _getClientVersion(\n clientPlatform: ClientPlatform,\n frameworks: readonly string[] = []\n): string {\n let reportedPlatform: string;\n switch (clientPlatform) {\n case ClientPlatform.BROWSER:\n // In a browser environment, report the browser name.\n reportedPlatform = _getBrowserName(getUA());\n break;\n case ClientPlatform.WORKER:\n // Technically a worker runs from a browser but we need to differentiate a\n // worker from a browser.\n // For example: Chrome-Worker/JsCore/4.9.1/FirebaseCore-web.\n reportedPlatform = `${_getBrowserName(getUA())}-${clientPlatform}`;\n break;\n default:\n reportedPlatform = clientPlatform;\n }\n const reportedFrameworks = frameworks.length\n ? frameworks.join(',')\n : 'FirebaseCore-web'; /* default value if no other framework is used */\n return `${reportedPlatform}/${ClientImplementation.CORE}/${SDK_VERSION}/${reportedFrameworks}`;\n}\n","/**\n * @license\n * Copyright 2022 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { AuthInternal } from '../../model/auth';\nimport { Unsubscribe, User } from '../../model/public_types';\nimport { AuthErrorCode } from '../errors';\n\ninterface MiddlewareEntry {\n (user: User | null): Promise;\n onAbort?: () => void;\n}\n\nexport class AuthMiddlewareQueue {\n private readonly queue: MiddlewareEntry[] = [];\n\n constructor(private readonly auth: AuthInternal) {}\n\n pushCallback(\n callback: (user: User | null) => void | Promise,\n onAbort?: () => void\n ): Unsubscribe {\n // The callback could be sync or async. Wrap it into a\n // function that is always async.\n const wrappedCallback: MiddlewareEntry = (\n user: User | null\n ): Promise =>\n new Promise((resolve, reject) => {\n try {\n const result = callback(user);\n // Either resolve with existing promise or wrap a non-promise\n // return value into a promise.\n resolve(result);\n } catch (e) {\n // Sync callback throws.\n reject(e);\n }\n });\n // Attach the onAbort if present\n wrappedCallback.onAbort = onAbort;\n this.queue.push(wrappedCallback);\n\n const index = this.queue.length - 1;\n return () => {\n // Unsubscribe. Replace with no-op. Do not remove from array, or it will disturb\n // indexing of other elements.\n this.queue[index] = () => Promise.resolve();\n };\n }\n\n async runMiddleware(nextUser: User | null): Promise {\n if (this.auth.currentUser === nextUser) {\n return;\n }\n\n // While running the middleware, build a temporary stack of onAbort\n // callbacks to call if one middleware callback rejects.\n\n const onAbortStack: Array<() => void> = [];\n try {\n for (const beforeStateCallback of this.queue) {\n await beforeStateCallback(nextUser);\n\n // Only push the onAbort if the callback succeeds\n if (beforeStateCallback.onAbort) {\n onAbortStack.push(beforeStateCallback.onAbort);\n }\n }\n } catch (e) {\n // Run all onAbort, with separate try/catch to ignore any errors and\n // continue\n onAbortStack.reverse();\n for (const onAbort of onAbortStack) {\n try {\n onAbort();\n } catch (_) {\n /* swallow error */\n }\n }\n\n throw this.auth._errorFactory.create(AuthErrorCode.LOGIN_BLOCKED, {\n originalMessage: (e as Error)?.message\n });\n }\n }\n}\n","/**\n * @license\n * Copyright 2023 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {\n _performApiRequest,\n Endpoint,\n HttpMethod,\n _addTidIfNecessary\n} from '../index';\nimport { Auth } from '../../model/public_types';\n\n/**\n * Request object for fetching the password policy.\n */\nexport interface GetPasswordPolicyRequest {\n tenantId?: string;\n}\n\n/**\n * Response object for fetching the password policy.\n */\nexport interface GetPasswordPolicyResponse {\n customStrengthOptions: {\n minPasswordLength?: number;\n maxPasswordLength?: number;\n containsLowercaseCharacter?: boolean;\n containsUppercaseCharacter?: boolean;\n containsNumericCharacter?: boolean;\n containsNonAlphanumericCharacter?: boolean;\n };\n allowedNonAlphanumericCharacters?: string[];\n enforcementState: string;\n forceUpgradeOnSignin?: boolean;\n schemaVersion: number;\n}\n\n/**\n * Fetches the password policy for the currently set tenant or the project if no tenant is set.\n *\n * @param auth Auth object.\n * @param request Password policy request.\n * @returns Password policy response.\n */\nexport async function _getPasswordPolicy(\n auth: Auth,\n request: GetPasswordPolicyRequest = {}\n): Promise {\n return _performApiRequest<\n GetPasswordPolicyRequest,\n GetPasswordPolicyResponse\n >(\n auth,\n HttpMethod.GET,\n Endpoint.GET_PASSWORD_POLICY,\n _addTidIfNecessary(auth, request)\n );\n}\n","/**\n * @license\n * Copyright 2023 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { GetPasswordPolicyResponse } from '../../api/password_policy/get_password_policy';\nimport {\n PasswordPolicyCustomStrengthOptions,\n PasswordPolicyInternal,\n PasswordValidationStatusInternal\n} from '../../model/password_policy';\nimport { PasswordValidationStatus } from '../../model/public_types';\n\n// Minimum min password length enforced by the backend, even if no minimum length is set.\nconst MINIMUM_MIN_PASSWORD_LENGTH = 6;\n\n/**\n * Stores password policy requirements and provides password validation against the policy.\n *\n * @internal\n */\nexport class PasswordPolicyImpl implements PasswordPolicyInternal {\n readonly customStrengthOptions: PasswordPolicyCustomStrengthOptions;\n readonly allowedNonAlphanumericCharacters: string;\n readonly enforcementState: string;\n readonly forceUpgradeOnSignin: boolean;\n readonly schemaVersion: number;\n\n constructor(response: GetPasswordPolicyResponse) {\n // Only include custom strength options defined in the response.\n const responseOptions = response.customStrengthOptions;\n this.customStrengthOptions = {};\n // TODO: Remove once the backend is updated to include the minimum min password length instead of undefined when there is no minimum length set.\n this.customStrengthOptions.minPasswordLength =\n responseOptions.minPasswordLength ?? MINIMUM_MIN_PASSWORD_LENGTH;\n if (responseOptions.maxPasswordLength) {\n this.customStrengthOptions.maxPasswordLength =\n responseOptions.maxPasswordLength;\n }\n if (responseOptions.containsLowercaseCharacter !== undefined) {\n this.customStrengthOptions.containsLowercaseLetter =\n responseOptions.containsLowercaseCharacter;\n }\n if (responseOptions.containsUppercaseCharacter !== undefined) {\n this.customStrengthOptions.containsUppercaseLetter =\n responseOptions.containsUppercaseCharacter;\n }\n if (responseOptions.containsNumericCharacter !== undefined) {\n this.customStrengthOptions.containsNumericCharacter =\n responseOptions.containsNumericCharacter;\n }\n if (responseOptions.containsNonAlphanumericCharacter !== undefined) {\n this.customStrengthOptions.containsNonAlphanumericCharacter =\n responseOptions.containsNonAlphanumericCharacter;\n }\n\n this.enforcementState = response.enforcementState;\n if (this.enforcementState === 'ENFORCEMENT_STATE_UNSPECIFIED') {\n this.enforcementState = 'OFF';\n }\n\n // Use an empty string if no non-alphanumeric characters are specified in the response.\n this.allowedNonAlphanumericCharacters =\n response.allowedNonAlphanumericCharacters?.join('') ?? '';\n\n this.forceUpgradeOnSignin = response.forceUpgradeOnSignin ?? false;\n this.schemaVersion = response.schemaVersion;\n }\n\n validatePassword(password: string): PasswordValidationStatus {\n const status: PasswordValidationStatusInternal = {\n isValid: true,\n passwordPolicy: this\n };\n\n // Check the password length and character options.\n this.validatePasswordLengthOptions(password, status);\n this.validatePasswordCharacterOptions(password, status);\n\n // Combine the status into single isValid property.\n status.isValid &&= status.meetsMinPasswordLength ?? true;\n status.isValid &&= status.meetsMaxPasswordLength ?? true;\n status.isValid &&= status.containsLowercaseLetter ?? true;\n status.isValid &&= status.containsUppercaseLetter ?? true;\n status.isValid &&= status.containsNumericCharacter ?? true;\n status.isValid &&= status.containsNonAlphanumericCharacter ?? true;\n\n return status;\n }\n\n /**\n * Validates that the password meets the length options for the policy.\n *\n * @param password Password to validate.\n * @param status Validation status.\n */\n private validatePasswordLengthOptions(\n password: string,\n status: PasswordValidationStatusInternal\n ): void {\n const minPasswordLength = this.customStrengthOptions.minPasswordLength;\n const maxPasswordLength = this.customStrengthOptions.maxPasswordLength;\n if (minPasswordLength) {\n status.meetsMinPasswordLength = password.length >= minPasswordLength;\n }\n if (maxPasswordLength) {\n status.meetsMaxPasswordLength = password.length <= maxPasswordLength;\n }\n }\n\n /**\n * Validates that the password meets the character options for the policy.\n *\n * @param password Password to validate.\n * @param status Validation status.\n */\n private validatePasswordCharacterOptions(\n password: string,\n status: PasswordValidationStatusInternal\n ): void {\n // Assign statuses for requirements even if the password is an empty string.\n this.updatePasswordCharacterOptionsStatuses(\n status,\n /* containsLowercaseCharacter= */ false,\n /* containsUppercaseCharacter= */ false,\n /* containsNumericCharacter= */ false,\n /* containsNonAlphanumericCharacter= */ false\n );\n\n let passwordChar;\n for (let i = 0; i < password.length; i++) {\n passwordChar = password.charAt(i);\n this.updatePasswordCharacterOptionsStatuses(\n status,\n /* containsLowercaseCharacter= */ passwordChar >= 'a' &&\n passwordChar <= 'z',\n /* containsUppercaseCharacter= */ passwordChar >= 'A' &&\n passwordChar <= 'Z',\n /* containsNumericCharacter= */ passwordChar >= '0' &&\n passwordChar <= '9',\n /* containsNonAlphanumericCharacter= */ this.allowedNonAlphanumericCharacters.includes(\n passwordChar\n )\n );\n }\n }\n\n /**\n * Updates the running validation status with the statuses for the character options.\n * Expected to be called each time a character is processed to update each option status\n * based on the current character.\n *\n * @param status Validation status.\n * @param containsLowercaseCharacter Whether the character is a lowercase letter.\n * @param containsUppercaseCharacter Whether the character is an uppercase letter.\n * @param containsNumericCharacter Whether the character is a numeric character.\n * @param containsNonAlphanumericCharacter Whether the character is a non-alphanumeric character.\n */\n private updatePasswordCharacterOptionsStatuses(\n status: PasswordValidationStatusInternal,\n containsLowercaseCharacter: boolean,\n containsUppercaseCharacter: boolean,\n containsNumericCharacter: boolean,\n containsNonAlphanumericCharacter: boolean\n ): void {\n if (this.customStrengthOptions.containsLowercaseLetter) {\n status.containsLowercaseLetter ||= containsLowercaseCharacter;\n }\n if (this.customStrengthOptions.containsUppercaseLetter) {\n status.containsUppercaseLetter ||= containsUppercaseCharacter;\n }\n if (this.customStrengthOptions.containsNumericCharacter) {\n status.containsNumericCharacter ||= containsNumericCharacter;\n }\n if (this.customStrengthOptions.containsNonAlphanumericCharacter) {\n status.containsNonAlphanumericCharacter ||=\n containsNonAlphanumericCharacter;\n }\n }\n}\n","/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { _FirebaseService, FirebaseApp } from '@firebase/app';\nimport { Provider } from '@firebase/component';\nimport { AppCheckInternalComponentName } from '@firebase/app-check-interop-types';\nimport {\n Auth,\n AuthErrorMap,\n AuthSettings,\n EmulatorConfig,\n NextOrObserver,\n Persistence,\n PopupRedirectResolver,\n User,\n UserCredential,\n CompleteFn,\n ErrorFn,\n NextFn,\n Unsubscribe,\n PasswordValidationStatus\n} from '../../model/public_types';\nimport {\n createSubscribe,\n ErrorFactory,\n FirebaseError,\n getModularInstance,\n Observer,\n Subscribe\n} from '@firebase/util';\n\nimport { AuthInternal, ConfigInternal } from '../../model/auth';\nimport { PopupRedirectResolverInternal } from '../../model/popup_redirect';\nimport { UserInternal } from '../../model/user';\nimport {\n AuthErrorCode,\n AuthErrorParams,\n ErrorMapRetriever,\n _DEFAULT_AUTH_ERROR_FACTORY\n} from '../errors';\nimport { PersistenceInternal } from '../persistence';\nimport {\n KeyName,\n PersistenceUserManager\n} from '../persistence/persistence_user_manager';\nimport { _reloadWithoutSaving } from '../user/reload';\nimport { _assert } from '../util/assert';\nimport { _getInstance } from '../util/instantiator';\nimport { _getUserLanguage } from '../util/navigator';\nimport { _getClientVersion } from '../util/version';\nimport { HttpHeader } from '../../api';\nimport {\n RevokeTokenRequest,\n TokenType,\n revokeToken\n} from '../../api/authentication/token';\nimport { AuthMiddlewareQueue } from './middleware';\nimport { RecaptchaConfig } from '../../platform_browser/recaptcha/recaptcha';\nimport { _logWarn } from '../util/log';\nimport { _getPasswordPolicy } from '../../api/password_policy/get_password_policy';\nimport { PasswordPolicyInternal } from '../../model/password_policy';\nimport { PasswordPolicyImpl } from './password_policy_impl';\n\ninterface AsyncAction {\n (): Promise;\n}\n\nexport const enum DefaultConfig {\n TOKEN_API_HOST = 'securetoken.googleapis.com',\n API_HOST = 'identitytoolkit.googleapis.com',\n API_SCHEME = 'https'\n}\n\nexport class AuthImpl implements AuthInternal, _FirebaseService {\n currentUser: User | null = null;\n emulatorConfig: EmulatorConfig | null = null;\n private operations = Promise.resolve();\n private persistenceManager?: PersistenceUserManager;\n private redirectPersistenceManager?: PersistenceUserManager;\n private authStateSubscription = new Subscription(this);\n private idTokenSubscription = new Subscription(this);\n private readonly beforeStateQueue = new AuthMiddlewareQueue(this);\n private redirectUser: UserInternal | null = null;\n private isProactiveRefreshEnabled = false;\n private readonly EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION: number = 1;\n\n // Any network calls will set this to true and prevent subsequent emulator\n // initialization\n _canInitEmulator = true;\n _isInitialized = false;\n _deleted = false;\n _initializationPromise: Promise | null = null;\n _popupRedirectResolver: PopupRedirectResolverInternal | null = null;\n _errorFactory: ErrorFactory =\n _DEFAULT_AUTH_ERROR_FACTORY;\n _agentRecaptchaConfig: RecaptchaConfig | null = null;\n _tenantRecaptchaConfigs: Record = {};\n _projectPasswordPolicy: PasswordPolicyInternal | null = null;\n _tenantPasswordPolicies: Record = {};\n readonly name: string;\n\n // Tracks the last notified UID for state change listeners to prevent\n // repeated calls to the callbacks. Undefined means it's never been\n // called, whereas null means it's been called with a signed out user\n private lastNotifiedUid: string | null | undefined = undefined;\n\n languageCode: string | null = null;\n tenantId: string | null = null;\n settings: AuthSettings = { appVerificationDisabledForTesting: false };\n\n constructor(\n public readonly app: FirebaseApp,\n private readonly heartbeatServiceProvider: Provider<'heartbeat'>,\n private readonly appCheckServiceProvider: Provider,\n public readonly config: ConfigInternal\n ) {\n this.name = app.name;\n this.clientVersion = config.sdkClientVersion;\n }\n\n _initializeWithPersistence(\n persistenceHierarchy: PersistenceInternal[],\n popupRedirectResolver?: PopupRedirectResolver\n ): Promise {\n if (popupRedirectResolver) {\n this._popupRedirectResolver = _getInstance(popupRedirectResolver);\n }\n\n // Have to check for app deletion throughout initialization (after each\n // promise resolution)\n this._initializationPromise = this.queue(async () => {\n if (this._deleted) {\n return;\n }\n\n this.persistenceManager = await PersistenceUserManager.create(\n this,\n persistenceHierarchy\n );\n\n if (this._deleted) {\n return;\n }\n\n // Initialize the resolver early if necessary (only applicable to web:\n // this will cause the iframe to load immediately in certain cases)\n if (this._popupRedirectResolver?._shouldInitProactively) {\n // If this fails, don't halt auth loading\n try {\n await this._popupRedirectResolver._initialize(this);\n } catch (e) {\n /* Ignore the error */\n }\n }\n\n await this.initializeCurrentUser(popupRedirectResolver);\n this.lastNotifiedUid = this.currentUser?.uid || null;\n\n if (this._deleted) {\n return;\n }\n\n this._isInitialized = true;\n });\n\n return this._initializationPromise;\n }\n\n /**\n * If the persistence is changed in another window, the user manager will let us know\n */\n async _onStorageEvent(): Promise {\n if (this._deleted) {\n return;\n }\n\n const user = await this.assertedPersistence.getCurrentUser();\n\n if (!this.currentUser && !user) {\n // No change, do nothing (was signed out and remained signed out).\n return;\n }\n\n // If the same user is to be synchronized.\n if (this.currentUser && user && this.currentUser.uid === user.uid) {\n // Data update, simply copy data changes.\n this._currentUser._assign(user);\n // If tokens changed from previous user tokens, this will trigger\n // notifyAuthListeners_.\n await this.currentUser.getIdToken();\n return;\n }\n\n // Update current Auth state. Either a new login or logout.\n // Skip blocking callbacks, they should not apply to a change in another tab.\n await this._updateCurrentUser(user, /* skipBeforeStateCallbacks */ true);\n }\n\n private async initializeCurrentUser(\n popupRedirectResolver?: PopupRedirectResolver\n ): Promise {\n // First check to see if we have a pending redirect event.\n const previouslyStoredUser =\n (await this.assertedPersistence.getCurrentUser()) as UserInternal | null;\n let futureCurrentUser = previouslyStoredUser;\n let needsTocheckMiddleware = false;\n if (popupRedirectResolver && this.config.authDomain) {\n await this.getOrInitRedirectPersistenceManager();\n const redirectUserEventId = this.redirectUser?._redirectEventId;\n const storedUserEventId = futureCurrentUser?._redirectEventId;\n const result = await this.tryRedirectSignIn(popupRedirectResolver);\n\n // If the stored user (i.e. the old \"currentUser\") has a redirectId that\n // matches the redirect user, then we want to initially sign in with the\n // new user object from result.\n // TODO(samgho): More thoroughly test all of this\n if (\n (!redirectUserEventId || redirectUserEventId === storedUserEventId) &&\n result?.user\n ) {\n futureCurrentUser = result.user as UserInternal;\n needsTocheckMiddleware = true;\n }\n }\n\n // If no user in persistence, there is no current user. Set to null.\n if (!futureCurrentUser) {\n return this.directlySetCurrentUser(null);\n }\n\n if (!futureCurrentUser._redirectEventId) {\n // This isn't a redirect link operation, we can reload and bail.\n // First though, ensure that we check the middleware is happy.\n if (needsTocheckMiddleware) {\n try {\n await this.beforeStateQueue.runMiddleware(futureCurrentUser);\n } catch (e) {\n futureCurrentUser = previouslyStoredUser;\n // We know this is available since the bit is only set when the\n // resolver is available\n this._popupRedirectResolver!._overrideRedirectResult(this, () =>\n Promise.reject(e)\n );\n }\n }\n\n if (futureCurrentUser) {\n return this.reloadAndSetCurrentUserOrClear(futureCurrentUser);\n } else {\n return this.directlySetCurrentUser(null);\n }\n }\n\n _assert(this._popupRedirectResolver, this, AuthErrorCode.ARGUMENT_ERROR);\n await this.getOrInitRedirectPersistenceManager();\n\n // If the redirect user's event ID matches the current user's event ID,\n // DO NOT reload the current user, otherwise they'll be cleared from storage.\n // This is important for the reauthenticateWithRedirect() flow.\n if (\n this.redirectUser &&\n this.redirectUser._redirectEventId === futureCurrentUser._redirectEventId\n ) {\n return this.directlySetCurrentUser(futureCurrentUser);\n }\n\n return this.reloadAndSetCurrentUserOrClear(futureCurrentUser);\n }\n\n private async tryRedirectSignIn(\n redirectResolver: PopupRedirectResolver\n ): Promise {\n // The redirect user needs to be checked (and signed in if available)\n // during auth initialization. All of the normal sign in and link/reauth\n // flows call back into auth and push things onto the promise queue. We\n // need to await the result of the redirect sign in *inside the promise\n // queue*. This presents a problem: we run into deadlock. See:\n // ┌> [Initialization] ─────┐\n // ┌> [] │\n // └─ [getRedirectResult] <─┘\n // where [] are tasks on the queue and arrows denote awaits\n // Initialization will never complete because it's waiting on something\n // that's waiting for initialization to complete!\n //\n // Instead, this method calls getRedirectResult() (stored in\n // _completeRedirectFn) with an optional parameter that instructs all of\n // the underlying auth operations to skip anything that mutates auth state.\n\n let result: UserCredential | null = null;\n try {\n // We know this._popupRedirectResolver is set since redirectResolver\n // is passed in. The _completeRedirectFn expects the unwrapped extern.\n result = await this._popupRedirectResolver!._completeRedirectFn(\n this,\n redirectResolver,\n true\n );\n } catch (e) {\n // Swallow any errors here; the code can retrieve them in\n // getRedirectResult().\n await this._setRedirectUser(null);\n }\n\n return result;\n }\n\n private async reloadAndSetCurrentUserOrClear(\n user: UserInternal\n ): Promise {\n try {\n await _reloadWithoutSaving(user);\n } catch (e) {\n if (\n (e as FirebaseError)?.code !==\n `auth/${AuthErrorCode.NETWORK_REQUEST_FAILED}`\n ) {\n // Something's wrong with the user's token. Log them out and remove\n // them from storage\n return this.directlySetCurrentUser(null);\n }\n }\n\n return this.directlySetCurrentUser(user);\n }\n\n useDeviceLanguage(): void {\n this.languageCode = _getUserLanguage();\n }\n\n async _delete(): Promise {\n this._deleted = true;\n }\n\n async updateCurrentUser(userExtern: User | null): Promise {\n // The public updateCurrentUser method needs to make a copy of the user,\n // and also check that the project matches\n const user = userExtern\n ? (getModularInstance(userExtern) as UserInternal)\n : null;\n if (user) {\n _assert(\n user.auth.config.apiKey === this.config.apiKey,\n this,\n AuthErrorCode.INVALID_AUTH\n );\n }\n return this._updateCurrentUser(user && user._clone(this));\n }\n\n async _updateCurrentUser(\n user: User | null,\n skipBeforeStateCallbacks: boolean = false\n ): Promise {\n if (this._deleted) {\n return;\n }\n if (user) {\n _assert(\n this.tenantId === user.tenantId,\n this,\n AuthErrorCode.TENANT_ID_MISMATCH\n );\n }\n\n if (!skipBeforeStateCallbacks) {\n await this.beforeStateQueue.runMiddleware(user);\n }\n\n return this.queue(async () => {\n await this.directlySetCurrentUser(user as UserInternal | null);\n this.notifyAuthListeners();\n });\n }\n\n async signOut(): Promise {\n // Run first, to block _setRedirectUser() if any callbacks fail.\n await this.beforeStateQueue.runMiddleware(null);\n // Clear the redirect user when signOut is called\n if (this.redirectPersistenceManager || this._popupRedirectResolver) {\n await this._setRedirectUser(null);\n }\n\n // Prevent callbacks from being called again in _updateCurrentUser, as\n // they were already called in the first line.\n return this._updateCurrentUser(null, /* skipBeforeStateCallbacks */ true);\n }\n\n setPersistence(persistence: Persistence): Promise {\n return this.queue(async () => {\n await this.assertedPersistence.setPersistence(_getInstance(persistence));\n });\n }\n\n _getRecaptchaConfig(): RecaptchaConfig | null {\n if (this.tenantId == null) {\n return this._agentRecaptchaConfig;\n } else {\n return this._tenantRecaptchaConfigs[this.tenantId];\n }\n }\n\n async validatePassword(password: string): Promise {\n if (!this._getPasswordPolicyInternal()) {\n await this._updatePasswordPolicy();\n }\n\n // Password policy will be defined after fetching.\n const passwordPolicy: PasswordPolicyInternal =\n this._getPasswordPolicyInternal()!;\n\n // Check that the policy schema version is supported by the SDK.\n // TODO: Update this logic to use a max supported policy schema version once we have multiple schema versions.\n if (\n passwordPolicy.schemaVersion !==\n this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION\n ) {\n return Promise.reject(\n this._errorFactory.create(\n AuthErrorCode.UNSUPPORTED_PASSWORD_POLICY_SCHEMA_VERSION,\n {}\n )\n );\n }\n\n return passwordPolicy.validatePassword(password);\n }\n\n _getPasswordPolicyInternal(): PasswordPolicyInternal | null {\n if (this.tenantId === null) {\n return this._projectPasswordPolicy;\n } else {\n return this._tenantPasswordPolicies[this.tenantId];\n }\n }\n\n async _updatePasswordPolicy(): Promise {\n const response = await _getPasswordPolicy(this);\n\n const passwordPolicy: PasswordPolicyInternal = new PasswordPolicyImpl(\n response\n );\n\n if (this.tenantId === null) {\n this._projectPasswordPolicy = passwordPolicy;\n } else {\n this._tenantPasswordPolicies[this.tenantId] = passwordPolicy;\n }\n }\n\n _getPersistence(): string {\n return this.assertedPersistence.persistence.type;\n }\n\n _updateErrorMap(errorMap: AuthErrorMap): void {\n this._errorFactory = new ErrorFactory(\n 'auth',\n 'Firebase',\n (errorMap as ErrorMapRetriever)()\n );\n }\n\n onAuthStateChanged(\n nextOrObserver: NextOrObserver,\n error?: ErrorFn,\n completed?: CompleteFn\n ): Unsubscribe {\n return this.registerStateListener(\n this.authStateSubscription,\n nextOrObserver,\n error,\n completed\n );\n }\n\n beforeAuthStateChanged(\n callback: (user: User | null) => void | Promise,\n onAbort?: () => void\n ): Unsubscribe {\n return this.beforeStateQueue.pushCallback(callback, onAbort);\n }\n\n onIdTokenChanged(\n nextOrObserver: NextOrObserver,\n error?: ErrorFn,\n completed?: CompleteFn\n ): Unsubscribe {\n return this.registerStateListener(\n this.idTokenSubscription,\n nextOrObserver,\n error,\n completed\n );\n }\n\n authStateReady(): Promise {\n return new Promise((resolve, reject) => {\n if (this.currentUser) {\n resolve();\n } else {\n const unsubscribe = this.onAuthStateChanged(() => {\n unsubscribe();\n resolve();\n }, reject);\n }\n });\n }\n\n /**\n * Revokes the given access token. Currently only supports Apple OAuth access tokens.\n */\n async revokeAccessToken(token: string): Promise {\n if (this.currentUser) {\n const idToken = await this.currentUser.getIdToken();\n // Generalize this to accept other providers once supported.\n const request: RevokeTokenRequest = {\n providerId: 'apple.com',\n tokenType: TokenType.ACCESS_TOKEN,\n token,\n idToken\n };\n if (this.tenantId != null) {\n request.tenantId = this.tenantId;\n }\n await revokeToken(this, request);\n }\n }\n\n toJSON(): object {\n return {\n apiKey: this.config.apiKey,\n authDomain: this.config.authDomain,\n appName: this.name,\n currentUser: this._currentUser?.toJSON()\n };\n }\n\n async _setRedirectUser(\n user: UserInternal | null,\n popupRedirectResolver?: PopupRedirectResolver\n ): Promise {\n const redirectManager = await this.getOrInitRedirectPersistenceManager(\n popupRedirectResolver\n );\n return user === null\n ? redirectManager.removeCurrentUser()\n : redirectManager.setCurrentUser(user);\n }\n\n private async getOrInitRedirectPersistenceManager(\n popupRedirectResolver?: PopupRedirectResolver\n ): Promise {\n if (!this.redirectPersistenceManager) {\n const resolver: PopupRedirectResolverInternal | null =\n (popupRedirectResolver && _getInstance(popupRedirectResolver)) ||\n this._popupRedirectResolver;\n _assert(resolver, this, AuthErrorCode.ARGUMENT_ERROR);\n this.redirectPersistenceManager = await PersistenceUserManager.create(\n this,\n [_getInstance(resolver._redirectPersistence)],\n KeyName.REDIRECT_USER\n );\n this.redirectUser =\n await this.redirectPersistenceManager.getCurrentUser();\n }\n\n return this.redirectPersistenceManager;\n }\n\n async _redirectUserForId(id: string): Promise {\n // Make sure we've cleared any pending persistence actions if we're not in\n // the initializer\n if (this._isInitialized) {\n await this.queue(async () => {});\n }\n\n if (this._currentUser?._redirectEventId === id) {\n return this._currentUser;\n }\n\n if (this.redirectUser?._redirectEventId === id) {\n return this.redirectUser;\n }\n\n return null;\n }\n\n async _persistUserIfCurrent(user: UserInternal): Promise {\n if (user === this.currentUser) {\n return this.queue(async () => this.directlySetCurrentUser(user));\n }\n }\n\n /** Notifies listeners only if the user is current */\n _notifyListenersIfCurrent(user: UserInternal): void {\n if (user === this.currentUser) {\n this.notifyAuthListeners();\n }\n }\n\n _key(): string {\n return `${this.config.authDomain}:${this.config.apiKey}:${this.name}`;\n }\n\n _startProactiveRefresh(): void {\n this.isProactiveRefreshEnabled = true;\n if (this.currentUser) {\n this._currentUser._startProactiveRefresh();\n }\n }\n\n _stopProactiveRefresh(): void {\n this.isProactiveRefreshEnabled = false;\n if (this.currentUser) {\n this._currentUser._stopProactiveRefresh();\n }\n }\n\n /** Returns the current user cast as the internal type */\n get _currentUser(): UserInternal {\n return this.currentUser as UserInternal;\n }\n\n private notifyAuthListeners(): void {\n if (!this._isInitialized) {\n return;\n }\n\n this.idTokenSubscription.next(this.currentUser);\n\n const currentUid = this.currentUser?.uid ?? null;\n if (this.lastNotifiedUid !== currentUid) {\n this.lastNotifiedUid = currentUid;\n this.authStateSubscription.next(this.currentUser);\n }\n }\n\n private registerStateListener(\n subscription: Subscription,\n nextOrObserver: NextOrObserver,\n error?: ErrorFn,\n completed?: CompleteFn\n ): Unsubscribe {\n if (this._deleted) {\n return () => {};\n }\n\n const cb =\n typeof nextOrObserver === 'function'\n ? nextOrObserver\n : nextOrObserver.next.bind(nextOrObserver);\n\n let isUnsubscribed = false;\n\n const promise = this._isInitialized\n ? Promise.resolve()\n : this._initializationPromise;\n _assert(promise, this, AuthErrorCode.INTERNAL_ERROR);\n // The callback needs to be called asynchronously per the spec.\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\n promise.then(() => {\n if (isUnsubscribed) {\n return;\n }\n cb(this.currentUser);\n });\n\n if (typeof nextOrObserver === 'function') {\n const unsubscribe = subscription.addObserver(\n nextOrObserver,\n error,\n completed\n );\n return () => {\n isUnsubscribed = true;\n unsubscribe();\n };\n } else {\n const unsubscribe = subscription.addObserver(nextOrObserver);\n return () => {\n isUnsubscribed = true;\n unsubscribe();\n };\n }\n }\n\n /**\n * Unprotected (from race conditions) method to set the current user. This\n * should only be called from within a queued callback. This is necessary\n * because the queue shouldn't rely on another queued callback.\n */\n private async directlySetCurrentUser(\n user: UserInternal | null\n ): Promise {\n if (this.currentUser && this.currentUser !== user) {\n this._currentUser._stopProactiveRefresh();\n }\n if (user && this.isProactiveRefreshEnabled) {\n user._startProactiveRefresh();\n }\n\n this.currentUser = user;\n\n if (user) {\n await this.assertedPersistence.setCurrentUser(user);\n } else {\n await this.assertedPersistence.removeCurrentUser();\n }\n }\n\n private queue(action: AsyncAction): Promise {\n // In case something errors, the callback still should be called in order\n // to keep the promise chain alive\n this.operations = this.operations.then(action, action);\n return this.operations;\n }\n\n private get assertedPersistence(): PersistenceUserManager {\n _assert(this.persistenceManager, this, AuthErrorCode.INTERNAL_ERROR);\n return this.persistenceManager;\n }\n\n private frameworks: string[] = [];\n private clientVersion: string;\n _logFramework(framework: string): void {\n if (!framework || this.frameworks.includes(framework)) {\n return;\n }\n this.frameworks.push(framework);\n\n // Sort alphabetically so that \"FirebaseCore-web,FirebaseUI-web\" and\n // \"FirebaseUI-web,FirebaseCore-web\" aren't viewed as different.\n this.frameworks.sort();\n this.clientVersion = _getClientVersion(\n this.config.clientPlatform,\n this._getFrameworks()\n );\n }\n _getFrameworks(): readonly string[] {\n return this.frameworks;\n }\n async _getAdditionalHeaders(): Promise> {\n // Additional headers on every request\n const headers: Record = {\n [HttpHeader.X_CLIENT_VERSION]: this.clientVersion\n };\n\n if (this.app.options.appId) {\n headers[HttpHeader.X_FIREBASE_GMPID] = this.app.options.appId;\n }\n\n // If the heartbeat service exists, add the heartbeat string\n const heartbeatsHeader = await this.heartbeatServiceProvider\n .getImmediate({\n optional: true\n })\n ?.getHeartbeatsHeader();\n if (heartbeatsHeader) {\n headers[HttpHeader.X_FIREBASE_CLIENT] = heartbeatsHeader;\n }\n\n // If the App Check service exists, add the App Check token in the headers\n const appCheckToken = await this._getAppCheckToken();\n if (appCheckToken) {\n headers[HttpHeader.X_FIREBASE_APP_CHECK] = appCheckToken;\n }\n\n return headers;\n }\n\n async _getAppCheckToken(): Promise {\n const appCheckTokenResult = await this.appCheckServiceProvider\n .getImmediate({ optional: true })\n ?.getToken();\n if (appCheckTokenResult?.error) {\n // Context: appCheck.getToken() will never throw even if an error happened.\n // In the error case, a dummy token will be returned along with an error field describing\n // the error. In general, we shouldn't care about the error condition and just use\n // the token (actual or dummy) to send requests.\n _logWarn(\n `Error while retrieving App Check token: ${appCheckTokenResult.error}`\n );\n }\n return appCheckTokenResult?.token;\n }\n}\n\n/**\n * Method to be used to cast down to our private implmentation of Auth.\n * It will also handle unwrapping from the compat type if necessary\n *\n * @param auth Auth object passed in from developer\n */\nexport function _castAuth(auth: Auth): AuthInternal {\n return getModularInstance(auth) as AuthInternal;\n}\n\n/** Helper class to wrap subscriber logic */\nclass Subscription {\n private observer: Observer | null = null;\n readonly addObserver: Subscribe = createSubscribe(\n observer => (this.observer = observer)\n );\n\n constructor(readonly auth: AuthInternal) {}\n\n get next(): NextFn {\n _assert(this.observer, this.auth, AuthErrorCode.INTERNAL_ERROR);\n return this.observer.next.bind(this.observer);\n }\n}\n","/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { AuthErrorCode } from '../core/errors';\nimport { _createError } from '../core/util/assert';\n\nfunction getScriptParentElement(): HTMLDocument | HTMLHeadElement {\n return document.getElementsByTagName('head')?.[0] ?? document;\n}\n\nexport function _loadJS(url: string): Promise {\n // TODO: consider adding timeout support & cancellation\n return new Promise((resolve, reject) => {\n const el = document.createElement('script');\n el.setAttribute('src', url);\n el.onload = resolve;\n el.onerror = e => {\n const error = _createError(AuthErrorCode.INTERNAL_ERROR);\n error.customData = e as unknown as Record;\n reject(error);\n };\n el.type = 'text/javascript';\n el.charset = 'UTF-8';\n getScriptParentElement().appendChild(el);\n });\n}\n\nexport function _generateCallbackName(prefix: string): string {\n return `__${prefix}${Math.floor(Math.random() * 1000000)}`;\n}\n","/* eslint-disable @typescript-eslint/no-require-imports */\n/**\n * @license\n * Copyright 2022 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { isEnterprise, RecaptchaConfig } from './recaptcha';\nimport { getRecaptchaConfig } from '../../api/authentication/recaptcha';\nimport {\n RecaptchaClientType,\n RecaptchaVersion,\n RecaptchaActionName,\n RecaptchaProvider\n} from '../../api';\n\nimport { Auth } from '../../model/public_types';\nimport { AuthInternal } from '../../model/auth';\nimport { _castAuth } from '../../core/auth/auth_impl';\nimport * as jsHelpers from '../load_js';\nimport { AuthErrorCode } from '../../core/errors';\n\nconst RECAPTCHA_ENTERPRISE_URL =\n 'https://www.google.com/recaptcha/enterprise.js?render=';\n\nexport const RECAPTCHA_ENTERPRISE_VERIFIER_TYPE = 'recaptcha-enterprise';\nexport const FAKE_TOKEN = 'NO_RECAPTCHA';\n\nexport class RecaptchaEnterpriseVerifier {\n /**\n * Identifies the type of application verifier (e.g. \"recaptcha-enterprise\").\n */\n readonly type = RECAPTCHA_ENTERPRISE_VERIFIER_TYPE;\n\n private readonly auth: AuthInternal;\n\n /**\n *\n * @param authExtern - The corresponding Firebase {@link Auth} instance.\n *\n */\n constructor(authExtern: Auth) {\n this.auth = _castAuth(authExtern);\n }\n\n /**\n * Executes the verification process.\n *\n * @returns A Promise for a token that can be used to assert the validity of a request.\n */\n async verify(\n action: string = 'verify',\n forceRefresh = false\n ): Promise {\n async function retrieveSiteKey(auth: AuthInternal): Promise {\n if (!forceRefresh) {\n if (auth.tenantId == null && auth._agentRecaptchaConfig != null) {\n return auth._agentRecaptchaConfig.siteKey;\n }\n if (\n auth.tenantId != null &&\n auth._tenantRecaptchaConfigs[auth.tenantId] !== undefined\n ) {\n return auth._tenantRecaptchaConfigs[auth.tenantId].siteKey;\n }\n }\n\n return new Promise(async (resolve, reject) => {\n getRecaptchaConfig(auth, {\n clientType: RecaptchaClientType.WEB,\n version: RecaptchaVersion.ENTERPRISE\n })\n .then(response => {\n if (response.recaptchaKey === undefined) {\n reject(new Error('recaptcha Enterprise site key undefined'));\n } else {\n const config = new RecaptchaConfig(response);\n if (auth.tenantId == null) {\n auth._agentRecaptchaConfig = config;\n } else {\n auth._tenantRecaptchaConfigs[auth.tenantId] = config;\n }\n return resolve(config.siteKey);\n }\n })\n .catch(error => {\n reject(error);\n });\n });\n }\n\n function retrieveRecaptchaToken(\n siteKey: string,\n resolve: (value: string | PromiseLike) => void,\n reject: (reason?: unknown) => void\n ): void {\n const grecaptcha = window.grecaptcha;\n if (isEnterprise(grecaptcha)) {\n grecaptcha.enterprise.ready(() => {\n grecaptcha.enterprise\n .execute(siteKey, { action })\n .then(token => {\n resolve(token);\n })\n .catch(() => {\n resolve(FAKE_TOKEN);\n });\n });\n } else {\n reject(Error('No reCAPTCHA enterprise script loaded.'));\n }\n }\n\n return new Promise((resolve, reject) => {\n retrieveSiteKey(this.auth)\n .then(siteKey => {\n if (!forceRefresh && isEnterprise(window.grecaptcha)) {\n retrieveRecaptchaToken(siteKey, resolve, reject);\n } else {\n if (typeof window === 'undefined') {\n reject(\n new Error('RecaptchaVerifier is only supported in browser')\n );\n return;\n }\n jsHelpers\n ._loadJS(RECAPTCHA_ENTERPRISE_URL + siteKey)\n .then(() => {\n retrieveRecaptchaToken(siteKey, resolve, reject);\n })\n .catch(error => {\n reject(error);\n });\n }\n })\n .catch(error => {\n reject(error);\n });\n });\n }\n}\n\nexport async function injectRecaptchaFields(\n auth: AuthInternal,\n request: T,\n action: RecaptchaActionName,\n captchaResp = false\n): Promise {\n const verifier = new RecaptchaEnterpriseVerifier(auth);\n let captchaResponse;\n try {\n captchaResponse = await verifier.verify(action);\n } catch (error) {\n captchaResponse = await verifier.verify(action, true);\n }\n const newRequest = { ...request };\n if (!captchaResp) {\n Object.assign(newRequest, { captchaResponse });\n } else {\n Object.assign(newRequest, { 'captchaResp': captchaResponse });\n }\n Object.assign(newRequest, { 'clientType': RecaptchaClientType.WEB });\n Object.assign(newRequest, {\n 'recaptchaVersion': RecaptchaVersion.ENTERPRISE\n });\n return newRequest;\n}\n\ntype ActionMethod = (\n auth: Auth,\n request: TRequest\n) => Promise;\n\nexport async function handleRecaptchaFlow(\n authInstance: AuthInternal,\n request: TRequest,\n actionName: RecaptchaActionName,\n actionMethod: ActionMethod\n): Promise {\n if (\n authInstance\n ._getRecaptchaConfig()\n ?.isProviderEnabled(RecaptchaProvider.EMAIL_PASSWORD_PROVIDER)\n ) {\n const requestWithRecaptcha = await injectRecaptchaFields(\n authInstance,\n request,\n actionName,\n actionName === RecaptchaActionName.GET_OOB_CODE\n );\n return actionMethod(authInstance, requestWithRecaptcha);\n } else {\n return actionMethod(authInstance, request).catch(async error => {\n if (error.code === `auth/${AuthErrorCode.MISSING_RECAPTCHA_TOKEN}`) {\n console.log(\n `${actionName} is protected by reCAPTCHA Enterprise for this project. Automatically triggering the reCAPTCHA flow and restarting the flow.`\n );\n const requestWithRecaptcha = await injectRecaptchaFields(\n authInstance,\n request,\n actionName,\n actionName === RecaptchaActionName.GET_OOB_CODE\n );\n return actionMethod(authInstance, requestWithRecaptcha);\n } else {\n return Promise.reject(error);\n }\n });\n }\n}\n\nexport async function _initializeRecaptchaConfig(auth: Auth): Promise {\n const authInternal = _castAuth(auth);\n\n const response = await getRecaptchaConfig(authInternal, {\n clientType: RecaptchaClientType.WEB,\n version: RecaptchaVersion.ENTERPRISE\n });\n\n const config = new RecaptchaConfig(response);\n if (authInternal.tenantId == null) {\n authInternal._agentRecaptchaConfig = config;\n } else {\n authInternal._tenantRecaptchaConfigs[authInternal.tenantId] = config;\n }\n\n if (config.isProviderEnabled(RecaptchaProvider.EMAIL_PASSWORD_PROVIDER)) {\n const verifier = new RecaptchaEnterpriseVerifier(authInternal);\n void verifier.verify();\n }\n}\n","/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { _getProvider, FirebaseApp } from '@firebase/app';\nimport { deepEqual } from '@firebase/util';\nimport { Auth, Dependencies } from '../../model/public_types';\n\nimport { AuthErrorCode } from '../errors';\nimport { PersistenceInternal } from '../persistence';\nimport { _fail } from '../util/assert';\nimport { _getInstance } from '../util/instantiator';\nimport { AuthImpl } from './auth_impl';\n\n/**\n * Initializes an {@link Auth} instance with fine-grained control over\n * {@link Dependencies}.\n *\n * @remarks\n *\n * This function allows more control over the {@link Auth} instance than\n * {@link getAuth}. `getAuth` uses platform-specific defaults to supply\n * the {@link Dependencies}. In general, `getAuth` is the easiest way to\n * initialize Auth and works for most use cases. Use `initializeAuth` if you\n * need control over which persistence layer is used, or to minimize bundle\n * size if you're not using either `signInWithPopup` or `signInWithRedirect`.\n *\n * For example, if your app only uses anonymous accounts and you only want\n * accounts saved for the current session, initialize `Auth` with:\n *\n * ```js\n * const auth = initializeAuth(app, {\n * persistence: browserSessionPersistence,\n * popupRedirectResolver: undefined,\n * });\n * ```\n *\n * @public\n */\nexport function initializeAuth(app: FirebaseApp, deps?: Dependencies): Auth {\n const provider = _getProvider(app, 'auth');\n\n if (provider.isInitialized()) {\n const auth = provider.getImmediate() as AuthImpl;\n const initialOptions = provider.getOptions() as Dependencies;\n if (deepEqual(initialOptions, deps ?? {})) {\n return auth;\n } else {\n _fail(auth, AuthErrorCode.ALREADY_INITIALIZED);\n }\n }\n\n const auth = provider.initialize({ options: deps }) as AuthImpl;\n\n return auth;\n}\n\nexport function _initializeAuthInstance(\n auth: AuthImpl,\n deps?: Dependencies\n): void {\n const persistence = deps?.persistence || [];\n const hierarchy = (\n Array.isArray(persistence) ? persistence : [persistence]\n ).map(_getInstance);\n if (deps?.errorMap) {\n auth._updateErrorMap(deps.errorMap);\n }\n\n // This promise is intended to float; auth initialization happens in the\n // background, meanwhile the auth object may be used by the app.\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\n auth._initializeWithPersistence(hierarchy, deps?.popupRedirectResolver);\n}\n","/**\n * @license\n * Copyright 2021 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { Auth } from '../../model/public_types';\nimport { AuthErrorCode } from '../errors';\nimport { _assert } from '../util/assert';\nimport { _castAuth } from './auth_impl';\n\n/**\n * Changes the {@link Auth} instance to communicate with the Firebase Auth Emulator, instead of production\n * Firebase Auth services.\n *\n * @remarks\n * This must be called synchronously immediately following the first call to\n * {@link initializeAuth}. Do not use with production credentials as emulator\n * traffic is not encrypted.\n *\n *\n * @example\n * ```javascript\n * connectAuthEmulator(auth, 'http://127.0.0.1:9099', { disableWarnings: true });\n * ```\n *\n * @param auth - The {@link Auth} instance.\n * @param url - The URL at which the emulator is running (eg, 'http://localhost:9099').\n * @param options - Optional. `options.disableWarnings` defaults to `false`. Set it to\n * `true` to disable the warning banner attached to the DOM.\n *\n * @public\n */\nexport function connectAuthEmulator(\n auth: Auth,\n url: string,\n options?: { disableWarnings: boolean }\n): void {\n const authInternal = _castAuth(auth);\n _assert(\n authInternal._canInitEmulator,\n authInternal,\n AuthErrorCode.EMULATOR_CONFIG_FAILED\n );\n\n _assert(\n /^https?:\\/\\//.test(url),\n authInternal,\n AuthErrorCode.INVALID_EMULATOR_SCHEME\n );\n\n const disableWarnings = !!options?.disableWarnings;\n\n const protocol = extractProtocol(url);\n const { host, port } = extractHostAndPort(url);\n const portStr = port === null ? '' : `:${port}`;\n\n // Always replace path with \"/\" (even if input url had no path at all, or had a different one).\n authInternal.config.emulator = { url: `${protocol}//${host}${portStr}/` };\n authInternal.settings.appVerificationDisabledForTesting = true;\n authInternal.emulatorConfig = Object.freeze({\n host,\n port,\n protocol: protocol.replace(':', ''),\n options: Object.freeze({ disableWarnings })\n });\n\n if (!disableWarnings) {\n emitEmulatorWarning();\n }\n}\n\nfunction extractProtocol(url: string): string {\n const protocolEnd = url.indexOf(':');\n return protocolEnd < 0 ? '' : url.substr(0, protocolEnd + 1);\n}\n\nfunction extractHostAndPort(url: string): {\n host: string;\n port: number | null;\n} {\n const protocol = extractProtocol(url);\n const authority = /(\\/\\/)?([^?#/]+)/.exec(url.substr(protocol.length)); // Between // and /, ? or #.\n if (!authority) {\n return { host: '', port: null };\n }\n const hostAndPort = authority[2].split('@').pop() || ''; // Strip out \"username:password@\".\n const bracketedIPv6 = /^(\\[[^\\]]+\\])(:|$)/.exec(hostAndPort);\n if (bracketedIPv6) {\n const host = bracketedIPv6[1];\n return { host, port: parsePort(hostAndPort.substr(host.length + 1)) };\n } else {\n const [host, port] = hostAndPort.split(':');\n return { host, port: parsePort(port) };\n }\n}\n\nfunction parsePort(portStr: string): number | null {\n if (!portStr) {\n return null;\n }\n const port = Number(portStr);\n if (isNaN(port)) {\n return null;\n }\n return port;\n}\n\nfunction emitEmulatorWarning(): void {\n function attachBanner(): void {\n const el = document.createElement('p');\n const sty = el.style;\n el.innerText =\n 'Running in emulator mode. Do not use with production credentials.';\n sty.position = 'fixed';\n sty.width = '100%';\n sty.backgroundColor = '#ffffff';\n sty.border = '.1em solid #000000';\n sty.color = '#b50000';\n sty.bottom = '0px';\n sty.left = '0px';\n sty.margin = '0px';\n sty.zIndex = '10000';\n sty.textAlign = 'center';\n el.classList.add('firebase-emulator-warning');\n document.body.appendChild(el);\n }\n\n if (typeof console !== 'undefined' && typeof console.info === 'function') {\n console.info(\n 'WARNING: You are using the Auth Emulator,' +\n ' which is intended for local testing only. Do not use with' +\n ' production credentials.'\n );\n }\n if (typeof window !== 'undefined' && typeof document !== 'undefined') {\n if (document.readyState === 'loading') {\n window.addEventListener('DOMContentLoaded', attachBanner);\n } else {\n attachBanner();\n }\n }\n}\n","/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { PhoneOrOauthTokenResponse } from '../../api/authentication/mfa';\nimport { AuthInternal } from '../../model/auth';\nimport { IdTokenResponse } from '../../model/id_token';\nimport { debugFail } from '../util/assert';\n\n/**\n * Interface that represents the credentials returned by an {@link AuthProvider}.\n *\n * @remarks\n * Implementations specify the details about each auth provider's credential requirements.\n *\n * @public\n */\nexport class AuthCredential {\n /** @internal */\n protected constructor(\n /**\n * The authentication provider ID for the credential.\n *\n * @remarks\n * For example, 'facebook.com', or 'google.com'.\n */\n readonly providerId: string,\n /**\n * The authentication sign in method for the credential.\n *\n * @remarks\n * For example, {@link SignInMethod}.EMAIL_PASSWORD, or\n * {@link SignInMethod}.EMAIL_LINK. This corresponds to the sign-in method\n * identifier as returned in {@link fetchSignInMethodsForEmail}.\n */\n readonly signInMethod: string\n ) {}\n\n /**\n * Returns a JSON-serializable representation of this object.\n *\n * @returns a JSON-serializable representation of this object.\n */\n toJSON(): object {\n return debugFail('not implemented');\n }\n\n /** @internal */\n _getIdTokenResponse(_auth: AuthInternal): Promise {\n return debugFail('not implemented');\n }\n /** @internal */\n _linkToIdToken(\n _auth: AuthInternal,\n _idToken: string\n ): Promise {\n return debugFail('not implemented');\n }\n /** @internal */\n _getReauthenticationResolver(_auth: AuthInternal): Promise {\n return debugFail('not implemented');\n }\n}\n","/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { ActionCodeOperation, Auth } from '../../model/public_types';\n\nimport {\n Endpoint,\n HttpMethod,\n _addTidIfNecessary,\n _performApiRequest\n} from '../index';\nimport { IdTokenResponse } from '../../model/id_token';\nimport { MfaEnrollment } from './mfa';\nimport { SignUpRequest, SignUpResponse } from '../authentication/sign_up';\n\nexport interface ResetPasswordRequest {\n oobCode: string;\n newPassword?: string;\n tenantId?: string;\n}\n\nexport interface ResetPasswordResponse {\n email: string;\n newEmail?: string;\n requestType?: ActionCodeOperation;\n mfaInfo?: MfaEnrollment;\n}\n\nexport async function resetPassword(\n auth: Auth,\n request: ResetPasswordRequest\n): Promise {\n return _performApiRequest(\n auth,\n HttpMethod.POST,\n Endpoint.RESET_PASSWORD,\n _addTidIfNecessary(auth, request)\n );\n}\nexport interface UpdateEmailPasswordRequest {\n idToken: string;\n returnSecureToken?: boolean;\n email?: string;\n password?: string;\n}\n\nexport interface UpdateEmailPasswordResponse extends IdTokenResponse {}\n\nexport async function updateEmailPassword(\n auth: Auth,\n request: UpdateEmailPasswordRequest\n): Promise {\n return _performApiRequest<\n UpdateEmailPasswordRequest,\n UpdateEmailPasswordResponse\n >(auth, HttpMethod.POST, Endpoint.SET_ACCOUNT_INFO, request);\n}\n\n// Used for linking an email/password account to an existing idToken. Uses the same request/response\n// format as updateEmailPassword.\nexport async function linkEmailPassword(\n auth: Auth,\n request: SignUpRequest\n): Promise {\n return _performApiRequest(\n auth,\n HttpMethod.POST,\n Endpoint.SIGN_UP,\n request\n );\n}\n\nexport interface ApplyActionCodeRequest {\n oobCode: string;\n tenantId?: string;\n}\n\nexport interface ApplyActionCodeResponse {}\n\nexport async function applyActionCode(\n auth: Auth,\n request: ApplyActionCodeRequest\n): Promise {\n return _performApiRequest(\n auth,\n HttpMethod.POST,\n Endpoint.SET_ACCOUNT_INFO,\n _addTidIfNecessary(auth, request)\n );\n}\n","/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { ActionCodeOperation, Auth } from '../../model/public_types';\n\nimport {\n Endpoint,\n HttpMethod,\n RecaptchaClientType,\n RecaptchaVersion,\n _addTidIfNecessary,\n _performApiRequest,\n _performSignInRequest\n} from '../index';\nimport { IdToken, IdTokenResponse } from '../../model/id_token';\n\nexport interface SignInWithPasswordRequest {\n returnSecureToken?: boolean;\n email: string;\n password: string;\n tenantId?: string;\n captchaResponse?: string;\n clientType?: RecaptchaClientType;\n recaptchaVersion?: RecaptchaVersion;\n}\n\nexport interface SignInWithPasswordResponse extends IdTokenResponse {\n email: string;\n displayName: string;\n}\n\nexport async function signInWithPassword(\n auth: Auth,\n request: SignInWithPasswordRequest\n): Promise {\n return _performSignInRequest<\n SignInWithPasswordRequest,\n SignInWithPasswordResponse\n >(\n auth,\n HttpMethod.POST,\n Endpoint.SIGN_IN_WITH_PASSWORD,\n _addTidIfNecessary(auth, request)\n );\n}\n\nexport interface GetOobCodeRequest {\n email?: string; // Everything except VERIFY_AND_CHANGE_EMAIL\n continueUrl?: string;\n iOSBundleId?: string;\n iosAppStoreId?: string;\n androidPackageName?: string;\n androidInstallApp?: boolean;\n androidMinimumVersionCode?: string;\n canHandleCodeInApp?: boolean;\n dynamicLinkDomain?: string;\n tenantId?: string;\n targetProjectid?: string;\n}\n\nexport interface VerifyEmailRequest extends GetOobCodeRequest {\n requestType: ActionCodeOperation.VERIFY_EMAIL;\n idToken: IdToken;\n}\n\nexport interface PasswordResetRequest extends GetOobCodeRequest {\n requestType: ActionCodeOperation.PASSWORD_RESET;\n email: string;\n captchaResp?: string;\n clientType?: RecaptchaClientType;\n recaptchaVersion?: RecaptchaVersion;\n}\n\nexport interface EmailSignInRequest extends GetOobCodeRequest {\n requestType: ActionCodeOperation.EMAIL_SIGNIN;\n email: string;\n captchaResp?: string;\n clientType?: RecaptchaClientType;\n recaptchaVersion?: RecaptchaVersion;\n}\n\nexport interface VerifyAndChangeEmailRequest extends GetOobCodeRequest {\n requestType: ActionCodeOperation.VERIFY_AND_CHANGE_EMAIL;\n idToken: IdToken;\n newEmail: string;\n}\n\ninterface GetOobCodeResponse {\n email: string;\n}\n\nexport interface VerifyEmailResponse extends GetOobCodeResponse {}\nexport interface PasswordResetResponse extends GetOobCodeResponse {}\nexport interface EmailSignInResponse extends GetOobCodeResponse {}\nexport interface VerifyAndChangeEmailResponse extends GetOobCodeRequest {}\n\nasync function sendOobCode(\n auth: Auth,\n request: GetOobCodeRequest\n): Promise {\n return _performApiRequest(\n auth,\n HttpMethod.POST,\n Endpoint.SEND_OOB_CODE,\n _addTidIfNecessary(auth, request)\n );\n}\n\nexport async function sendEmailVerification(\n auth: Auth,\n request: VerifyEmailRequest\n): Promise {\n return sendOobCode(auth, request);\n}\n\nexport async function sendPasswordResetEmail(\n auth: Auth,\n request: PasswordResetRequest\n): Promise {\n return sendOobCode(auth, request);\n}\n\nexport async function sendSignInLinkToEmail(\n auth: Auth,\n request: EmailSignInRequest\n): Promise {\n return sendOobCode(auth, request);\n}\n\nexport async function verifyAndChangeEmail(\n auth: Auth,\n request: VerifyAndChangeEmailRequest\n): Promise {\n return sendOobCode(auth, request);\n}\n","/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {\n _performSignInRequest,\n Endpoint,\n HttpMethod,\n _addTidIfNecessary\n} from '../index';\nimport { IdTokenResponse } from '../../model/id_token';\nimport { Auth } from '../../model/public_types';\n\nexport interface SignInWithEmailLinkRequest {\n email: string;\n oobCode: string;\n tenantId?: string;\n}\n\nexport interface SignInWithEmailLinkResponse extends IdTokenResponse {\n email: string;\n isNewUser: boolean;\n}\n\nexport async function signInWithEmailLink(\n auth: Auth,\n request: SignInWithEmailLinkRequest\n): Promise {\n return _performSignInRequest<\n SignInWithEmailLinkRequest,\n SignInWithEmailLinkResponse\n >(\n auth,\n HttpMethod.POST,\n Endpoint.SIGN_IN_WITH_EMAIL_LINK,\n _addTidIfNecessary(auth, request)\n );\n}\n\nexport interface SignInWithEmailLinkForLinkingRequest\n extends SignInWithEmailLinkRequest {\n idToken: string;\n}\n\nexport async function signInWithEmailLinkForLinking(\n auth: Auth,\n request: SignInWithEmailLinkForLinkingRequest\n): Promise {\n return _performSignInRequest<\n SignInWithEmailLinkForLinkingRequest,\n SignInWithEmailLinkResponse\n >(\n auth,\n HttpMethod.POST,\n Endpoint.SIGN_IN_WITH_EMAIL_LINK,\n _addTidIfNecessary(auth, request)\n );\n}\n","/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { ProviderId, SignInMethod } from '../../model/enums';\n\nimport { linkEmailPassword } from '../../api/account_management/email_and_password';\nimport {\n signInWithPassword,\n SignInWithPasswordRequest\n} from '../../api/authentication/email_and_password';\nimport {\n signInWithEmailLink,\n signInWithEmailLinkForLinking\n} from '../../api/authentication/email_link';\nimport { AuthInternal } from '../../model/auth';\nimport { IdTokenResponse } from '../../model/id_token';\nimport { AuthErrorCode } from '../errors';\nimport { _fail } from '../util/assert';\nimport { AuthCredential } from './auth_credential';\nimport { handleRecaptchaFlow } from '../../platform_browser/recaptcha/recaptcha_enterprise_verifier';\nimport { RecaptchaActionName, RecaptchaClientType } from '../../api';\nimport { SignUpRequest } from '../../api/authentication/sign_up';\n/**\n * Interface that represents the credentials returned by {@link EmailAuthProvider} for\n * {@link ProviderId}.PASSWORD\n *\n * @remarks\n * Covers both {@link SignInMethod}.EMAIL_PASSWORD and\n * {@link SignInMethod}.EMAIL_LINK.\n *\n * @public\n */\nexport class EmailAuthCredential extends AuthCredential {\n /** @internal */\n private constructor(\n /** @internal */\n readonly _email: string,\n /** @internal */\n readonly _password: string,\n signInMethod: SignInMethod,\n /** @internal */\n readonly _tenantId: string | null = null\n ) {\n super(ProviderId.PASSWORD, signInMethod);\n }\n\n /** @internal */\n static _fromEmailAndPassword(\n email: string,\n password: string\n ): EmailAuthCredential {\n return new EmailAuthCredential(\n email,\n password,\n SignInMethod.EMAIL_PASSWORD\n );\n }\n\n /** @internal */\n static _fromEmailAndCode(\n email: string,\n oobCode: string,\n tenantId: string | null = null\n ): EmailAuthCredential {\n return new EmailAuthCredential(\n email,\n oobCode,\n SignInMethod.EMAIL_LINK,\n tenantId\n );\n }\n\n /** {@inheritdoc AuthCredential.toJSON} */\n toJSON(): object {\n return {\n email: this._email,\n password: this._password,\n signInMethod: this.signInMethod,\n tenantId: this._tenantId\n };\n }\n\n /**\n * Static method to deserialize a JSON representation of an object into an {@link AuthCredential}.\n *\n * @param json - Either `object` or the stringified representation of the object. When string is\n * provided, `JSON.parse` would be called first.\n *\n * @returns If the JSON input does not represent an {@link AuthCredential}, null is returned.\n */\n static fromJSON(json: object | string): EmailAuthCredential | null {\n const obj = typeof json === 'string' ? JSON.parse(json) : json;\n if (obj?.email && obj?.password) {\n if (obj.signInMethod === SignInMethod.EMAIL_PASSWORD) {\n return this._fromEmailAndPassword(obj.email, obj.password);\n } else if (obj.signInMethod === SignInMethod.EMAIL_LINK) {\n return this._fromEmailAndCode(obj.email, obj.password, obj.tenantId);\n }\n }\n return null;\n }\n\n /** @internal */\n async _getIdTokenResponse(auth: AuthInternal): Promise {\n switch (this.signInMethod) {\n case SignInMethod.EMAIL_PASSWORD:\n const request: SignInWithPasswordRequest = {\n returnSecureToken: true,\n email: this._email,\n password: this._password,\n clientType: RecaptchaClientType.WEB\n };\n return handleRecaptchaFlow(\n auth,\n request,\n RecaptchaActionName.SIGN_IN_WITH_PASSWORD,\n signInWithPassword\n );\n case SignInMethod.EMAIL_LINK:\n return signInWithEmailLink(auth, {\n email: this._email,\n oobCode: this._password\n });\n default:\n _fail(auth, AuthErrorCode.INTERNAL_ERROR);\n }\n }\n\n /** @internal */\n async _linkToIdToken(\n auth: AuthInternal,\n idToken: string\n ): Promise {\n switch (this.signInMethod) {\n case SignInMethod.EMAIL_PASSWORD:\n const request: SignUpRequest = {\n idToken,\n returnSecureToken: true,\n email: this._email,\n password: this._password,\n clientType: RecaptchaClientType.WEB\n };\n return handleRecaptchaFlow(\n auth,\n request,\n RecaptchaActionName.SIGN_UP_PASSWORD,\n linkEmailPassword\n );\n case SignInMethod.EMAIL_LINK:\n return signInWithEmailLinkForLinking(auth, {\n idToken,\n email: this._email,\n oobCode: this._password\n });\n default:\n _fail(auth, AuthErrorCode.INTERNAL_ERROR);\n }\n }\n\n /** @internal */\n _getReauthenticationResolver(auth: AuthInternal): Promise {\n return this._getIdTokenResponse(auth);\n }\n}\n","/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {\n Endpoint,\n HttpMethod,\n _addTidIfNecessary,\n _performSignInRequest\n} from '../index';\nimport { IdToken, IdTokenResponse } from '../../model/id_token';\nimport { Auth } from '../../model/public_types';\n\nexport interface SignInWithIdpRequest {\n requestUri: string;\n postBody?: string;\n sessionId?: string;\n tenantId?: string;\n returnSecureToken: boolean;\n returnIdpCredential?: boolean;\n idToken?: IdToken;\n autoCreate?: boolean;\n pendingToken?: string;\n}\n\n/**\n * @internal\n */\nexport interface SignInWithIdpResponse extends IdTokenResponse {\n oauthAccessToken?: string;\n oauthTokenSecret?: string;\n nonce?: string;\n oauthIdToken?: string;\n pendingToken?: string;\n}\n\nexport async function signInWithIdp(\n auth: Auth,\n request: SignInWithIdpRequest\n): Promise {\n return _performSignInRequest(\n auth,\n HttpMethod.POST,\n Endpoint.SIGN_IN_WITH_IDP,\n _addTidIfNecessary(auth, request)\n );\n}\n","/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { querystring } from '@firebase/util';\n\nimport {\n signInWithIdp,\n SignInWithIdpRequest\n} from '../../api/authentication/idp';\nimport { AuthInternal } from '../../model/auth';\nimport { IdTokenResponse } from '../../model/id_token';\nimport { AuthErrorCode } from '../errors';\nimport { _fail } from '../util/assert';\nimport { AuthCredential } from './auth_credential';\n\nconst IDP_REQUEST_URI = 'http://localhost';\n\nexport interface OAuthCredentialParams {\n // OAuth 2 uses either id token or access token\n idToken?: string | null;\n accessToken?: string | null;\n\n // These fields are used with OAuth 1\n oauthToken?: string;\n secret?: string;\n oauthTokenSecret?: string;\n\n // Nonce is only set if pendingToken is not present\n nonce?: string;\n pendingToken?: string;\n\n // Utilities\n providerId: string;\n signInMethod: string;\n}\n\n/**\n * Represents the OAuth credentials returned by an {@link OAuthProvider}.\n *\n * @remarks\n * Implementations specify the details about each auth provider's credential requirements.\n *\n * @public\n */\nexport class OAuthCredential extends AuthCredential {\n /**\n * The OAuth ID token associated with the credential if it belongs to an OIDC provider,\n * such as `google.com`.\n * @readonly\n */\n idToken?: string;\n /**\n * The OAuth access token associated with the credential if it belongs to an\n * {@link OAuthProvider}, such as `facebook.com`, `twitter.com`, etc.\n * @readonly\n */\n accessToken?: string;\n /**\n * The OAuth access token secret associated with the credential if it belongs to an OAuth 1.0\n * provider, such as `twitter.com`.\n * @readonly\n */\n secret?: string;\n\n private nonce?: string;\n private pendingToken: string | null = null;\n\n /** @internal */\n static _fromParams(params: OAuthCredentialParams): OAuthCredential {\n const cred = new OAuthCredential(params.providerId, params.signInMethod);\n\n if (params.idToken || params.accessToken) {\n // OAuth 2 and either ID token or access token.\n if (params.idToken) {\n cred.idToken = params.idToken;\n }\n\n if (params.accessToken) {\n cred.accessToken = params.accessToken;\n }\n\n // Add nonce if available and no pendingToken is present.\n if (params.nonce && !params.pendingToken) {\n cred.nonce = params.nonce;\n }\n\n if (params.pendingToken) {\n cred.pendingToken = params.pendingToken;\n }\n } else if (params.oauthToken && params.oauthTokenSecret) {\n // OAuth 1 and OAuth token with token secret\n cred.accessToken = params.oauthToken;\n cred.secret = params.oauthTokenSecret;\n } else {\n _fail(AuthErrorCode.ARGUMENT_ERROR);\n }\n\n return cred;\n }\n\n /** {@inheritdoc AuthCredential.toJSON} */\n toJSON(): object {\n return {\n idToken: this.idToken,\n accessToken: this.accessToken,\n secret: this.secret,\n nonce: this.nonce,\n pendingToken: this.pendingToken,\n providerId: this.providerId,\n signInMethod: this.signInMethod\n };\n }\n\n /**\n * Static method to deserialize a JSON representation of an object into an\n * {@link AuthCredential}.\n *\n * @param json - Input can be either Object or the stringified representation of the object.\n * When string is provided, JSON.parse would be called first.\n *\n * @returns If the JSON input does not represent an {@link AuthCredential}, null is returned.\n */\n static fromJSON(json: string | object): OAuthCredential | null {\n const obj = typeof json === 'string' ? JSON.parse(json) : json;\n const { providerId, signInMethod, ...rest }: OAuthCredentialParams = obj;\n if (!providerId || !signInMethod) {\n return null;\n }\n\n const cred = new OAuthCredential(providerId, signInMethod);\n cred.idToken = rest.idToken || undefined;\n cred.accessToken = rest.accessToken || undefined;\n cred.secret = rest.secret;\n cred.nonce = rest.nonce;\n cred.pendingToken = rest.pendingToken || null;\n return cred;\n }\n\n /** @internal */\n _getIdTokenResponse(auth: AuthInternal): Promise {\n const request = this.buildRequest();\n return signInWithIdp(auth, request);\n }\n\n /** @internal */\n _linkToIdToken(\n auth: AuthInternal,\n idToken: string\n ): Promise {\n const request = this.buildRequest();\n request.idToken = idToken;\n return signInWithIdp(auth, request);\n }\n\n /** @internal */\n _getReauthenticationResolver(auth: AuthInternal): Promise {\n const request = this.buildRequest();\n request.autoCreate = false;\n return signInWithIdp(auth, request);\n }\n\n private buildRequest(): SignInWithIdpRequest {\n const request: SignInWithIdpRequest = {\n requestUri: IDP_REQUEST_URI,\n returnSecureToken: true\n };\n\n if (this.pendingToken) {\n request.pendingToken = this.pendingToken;\n } else {\n const postBody: Record = {};\n if (this.idToken) {\n postBody['id_token'] = this.idToken;\n }\n if (this.accessToken) {\n postBody['access_token'] = this.accessToken;\n }\n if (this.secret) {\n postBody['oauth_token_secret'] = this.secret;\n }\n\n postBody['providerId'] = this.providerId;\n if (this.nonce && !this.pendingToken) {\n postBody['nonce'] = this.nonce;\n }\n\n request.postBody = querystring(postBody);\n }\n\n return request;\n }\n}\n","/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {\n Endpoint,\n HttpMethod,\n _addTidIfNecessary,\n _makeTaggedError,\n _performApiRequest,\n _performSignInRequest\n} from '../index';\nimport { AuthErrorCode } from '../../core/errors';\nimport { IdTokenResponse } from '../../model/id_token';\nimport { ServerError, ServerErrorMap } from '../errors';\nimport { Auth } from '../../model/public_types';\n\nexport interface SendPhoneVerificationCodeRequest {\n phoneNumber: string;\n recaptchaToken: string;\n tenantId?: string;\n}\n\nexport interface SendPhoneVerificationCodeResponse {\n sessionInfo: string;\n}\n\nexport async function sendPhoneVerificationCode(\n auth: Auth,\n request: SendPhoneVerificationCodeRequest\n): Promise {\n return _performApiRequest<\n SendPhoneVerificationCodeRequest,\n SendPhoneVerificationCodeResponse\n >(\n auth,\n HttpMethod.POST,\n Endpoint.SEND_VERIFICATION_CODE,\n _addTidIfNecessary(auth, request)\n );\n}\n\n/**\n * @internal\n */\nexport interface SignInWithPhoneNumberRequest {\n temporaryProof?: string;\n phoneNumber?: string;\n sessionInfo?: string;\n code?: string;\n tenantId?: string;\n}\n\nexport interface LinkWithPhoneNumberRequest\n extends SignInWithPhoneNumberRequest {\n idToken: string;\n}\n\n/**\n * @internal\n */\nexport interface SignInWithPhoneNumberResponse extends IdTokenResponse {\n temporaryProof?: string;\n phoneNumber?: string;\n}\n\nexport async function signInWithPhoneNumber(\n auth: Auth,\n request: SignInWithPhoneNumberRequest\n): Promise {\n return _performSignInRequest<\n SignInWithPhoneNumberRequest,\n SignInWithPhoneNumberResponse\n >(\n auth,\n HttpMethod.POST,\n Endpoint.SIGN_IN_WITH_PHONE_NUMBER,\n _addTidIfNecessary(auth, request)\n );\n}\n\nexport async function linkWithPhoneNumber(\n auth: Auth,\n request: LinkWithPhoneNumberRequest\n): Promise {\n const response = await _performSignInRequest<\n LinkWithPhoneNumberRequest,\n SignInWithPhoneNumberResponse\n >(\n auth,\n HttpMethod.POST,\n Endpoint.SIGN_IN_WITH_PHONE_NUMBER,\n _addTidIfNecessary(auth, request)\n );\n if (response.temporaryProof) {\n throw _makeTaggedError(auth, AuthErrorCode.NEED_CONFIRMATION, response);\n }\n return response;\n}\n\ninterface VerifyPhoneNumberForExistingRequest\n extends SignInWithPhoneNumberRequest {\n operation: 'REAUTH';\n}\n\nconst VERIFY_PHONE_NUMBER_FOR_EXISTING_ERROR_MAP_: Partial<\n ServerErrorMap\n> = {\n [ServerError.USER_NOT_FOUND]: AuthErrorCode.USER_DELETED\n};\n\nexport async function verifyPhoneNumberForExisting(\n auth: Auth,\n request: SignInWithPhoneNumberRequest\n): Promise {\n const apiRequest: VerifyPhoneNumberForExistingRequest = {\n ...request,\n operation: 'REAUTH'\n };\n return _performSignInRequest<\n VerifyPhoneNumberForExistingRequest,\n SignInWithPhoneNumberResponse\n >(\n auth,\n HttpMethod.POST,\n Endpoint.SIGN_IN_WITH_PHONE_NUMBER,\n _addTidIfNecessary(auth, apiRequest),\n VERIFY_PHONE_NUMBER_FOR_EXISTING_ERROR_MAP_\n );\n}\n","/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { ProviderId, SignInMethod } from '../../model/enums';\n\nimport { PhoneOrOauthTokenResponse } from '../../api/authentication/mfa';\nimport {\n linkWithPhoneNumber,\n signInWithPhoneNumber,\n SignInWithPhoneNumberRequest,\n verifyPhoneNumberForExisting\n} from '../../api/authentication/sms';\nimport { AuthInternal } from '../../model/auth';\nimport { IdTokenResponse } from '../../model/id_token';\nimport { AuthCredential } from './auth_credential';\n\nexport interface PhoneAuthCredentialParameters {\n verificationId?: string;\n verificationCode?: string;\n phoneNumber?: string;\n temporaryProof?: string;\n}\n\n/**\n * Represents the credentials returned by {@link PhoneAuthProvider}.\n *\n * @public\n */\nexport class PhoneAuthCredential extends AuthCredential {\n private constructor(private readonly params: PhoneAuthCredentialParameters) {\n super(ProviderId.PHONE, SignInMethod.PHONE);\n }\n\n /** @internal */\n static _fromVerification(\n verificationId: string,\n verificationCode: string\n ): PhoneAuthCredential {\n return new PhoneAuthCredential({ verificationId, verificationCode });\n }\n\n /** @internal */\n static _fromTokenResponse(\n phoneNumber: string,\n temporaryProof: string\n ): PhoneAuthCredential {\n return new PhoneAuthCredential({ phoneNumber, temporaryProof });\n }\n\n /** @internal */\n _getIdTokenResponse(auth: AuthInternal): Promise {\n return signInWithPhoneNumber(auth, this._makeVerificationRequest());\n }\n\n /** @internal */\n _linkToIdToken(\n auth: AuthInternal,\n idToken: string\n ): Promise {\n return linkWithPhoneNumber(auth, {\n idToken,\n ...this._makeVerificationRequest()\n });\n }\n\n /** @internal */\n _getReauthenticationResolver(auth: AuthInternal): Promise {\n return verifyPhoneNumberForExisting(auth, this._makeVerificationRequest());\n }\n\n /** @internal */\n _makeVerificationRequest(): SignInWithPhoneNumberRequest {\n const { temporaryProof, phoneNumber, verificationId, verificationCode } =\n this.params;\n if (temporaryProof && phoneNumber) {\n return { temporaryProof, phoneNumber };\n }\n\n return {\n sessionInfo: verificationId,\n code: verificationCode\n };\n }\n\n /** {@inheritdoc AuthCredential.toJSON} */\n toJSON(): object {\n const obj: Record = {\n providerId: this.providerId\n };\n if (this.params.phoneNumber) {\n obj.phoneNumber = this.params.phoneNumber;\n }\n if (this.params.temporaryProof) {\n obj.temporaryProof = this.params.temporaryProof;\n }\n if (this.params.verificationCode) {\n obj.verificationCode = this.params.verificationCode;\n }\n if (this.params.verificationId) {\n obj.verificationId = this.params.verificationId;\n }\n\n return obj;\n }\n\n /** Generates a phone credential based on a plain object or a JSON string. */\n static fromJSON(json: object | string): PhoneAuthCredential | null {\n if (typeof json === 'string') {\n json = JSON.parse(json);\n }\n\n const { verificationId, verificationCode, phoneNumber, temporaryProof } =\n json as { [key: string]: string };\n if (\n !verificationCode &&\n !verificationId &&\n !phoneNumber &&\n !temporaryProof\n ) {\n return null;\n }\n\n return new PhoneAuthCredential({\n verificationId,\n verificationCode,\n phoneNumber,\n temporaryProof\n });\n }\n}\n","/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { extractQuerystring, querystringDecode } from '@firebase/util';\nimport { ActionCodeOperation } from '../model/public_types';\nimport { AuthErrorCode } from './errors';\nimport { _assert } from './util/assert';\n\n/**\n * Enums for fields in URL query string.\n *\n * @enum {string}\n */\nconst enum QueryField {\n API_KEY = 'apiKey',\n CODE = 'oobCode',\n CONTINUE_URL = 'continueUrl',\n LANGUAGE_CODE = 'languageCode',\n MODE = 'mode',\n TENANT_ID = 'tenantId'\n}\n\n/**\n * Maps the mode string in action code URL to Action Code Info operation.\n *\n * @param mode\n */\nfunction parseMode(mode: string | null): ActionCodeOperation | null {\n switch (mode) {\n case 'recoverEmail':\n return ActionCodeOperation.RECOVER_EMAIL;\n case 'resetPassword':\n return ActionCodeOperation.PASSWORD_RESET;\n case 'signIn':\n return ActionCodeOperation.EMAIL_SIGNIN;\n case 'verifyEmail':\n return ActionCodeOperation.VERIFY_EMAIL;\n case 'verifyAndChangeEmail':\n return ActionCodeOperation.VERIFY_AND_CHANGE_EMAIL;\n case 'revertSecondFactorAddition':\n return ActionCodeOperation.REVERT_SECOND_FACTOR_ADDITION;\n default:\n return null;\n }\n}\n\n/**\n * Helper to parse FDL links\n *\n * @param url\n */\nfunction parseDeepLink(url: string): string {\n const link = querystringDecode(extractQuerystring(url))['link'];\n\n // Double link case (automatic redirect).\n const doubleDeepLink = link\n ? querystringDecode(extractQuerystring(link))['deep_link_id']\n : null;\n // iOS custom scheme links.\n const iOSDeepLink = querystringDecode(extractQuerystring(url))[\n 'deep_link_id'\n ];\n const iOSDoubleDeepLink = iOSDeepLink\n ? querystringDecode(extractQuerystring(iOSDeepLink))['link']\n : null;\n return iOSDoubleDeepLink || iOSDeepLink || doubleDeepLink || link || url;\n}\n\n/**\n * A utility class to parse email action URLs such as password reset, email verification,\n * email link sign in, etc.\n *\n * @public\n */\nexport class ActionCodeURL {\n /**\n * The API key of the email action link.\n */\n readonly apiKey: string;\n /**\n * The action code of the email action link.\n */\n readonly code: string;\n /**\n * The continue URL of the email action link. Null if not provided.\n */\n readonly continueUrl: string | null;\n /**\n * The language code of the email action link. Null if not provided.\n */\n readonly languageCode: string | null;\n /**\n * The action performed by the email action link. It returns from one of the types from\n * {@link ActionCodeInfo}\n */\n readonly operation: string;\n /**\n * The tenant ID of the email action link. Null if the email action is from the parent project.\n */\n readonly tenantId: string | null;\n\n /**\n * @param actionLink - The link from which to extract the URL.\n * @returns The {@link ActionCodeURL} object, or null if the link is invalid.\n *\n * @internal\n */\n constructor(actionLink: string) {\n const searchParams = querystringDecode(extractQuerystring(actionLink));\n const apiKey = searchParams[QueryField.API_KEY] ?? null;\n const code = searchParams[QueryField.CODE] ?? null;\n const operation = parseMode(searchParams[QueryField.MODE] ?? null);\n // Validate API key, code and mode.\n _assert(apiKey && code && operation, AuthErrorCode.ARGUMENT_ERROR);\n this.apiKey = apiKey;\n this.operation = operation;\n this.code = code;\n this.continueUrl = searchParams[QueryField.CONTINUE_URL] ?? null;\n this.languageCode = searchParams[QueryField.LANGUAGE_CODE] ?? null;\n this.tenantId = searchParams[QueryField.TENANT_ID] ?? null;\n }\n\n /**\n * Parses the email action link string and returns an {@link ActionCodeURL} if the link is valid,\n * otherwise returns null.\n *\n * @param link - The email action link string.\n * @returns The {@link ActionCodeURL} object, or null if the link is invalid.\n *\n * @public\n */\n static parseLink(link: string): ActionCodeURL | null {\n const actionLink = parseDeepLink(link);\n try {\n return new ActionCodeURL(actionLink);\n } catch {\n return null;\n }\n }\n}\n\n/**\n * Parses the email action link string and returns an {@link ActionCodeURL} if\n * the link is valid, otherwise returns null.\n *\n * @public\n */\nexport function parseActionCodeURL(link: string): ActionCodeURL | null {\n return ActionCodeURL.parseLink(link);\n}\n","/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { ProviderId, SignInMethod } from '../../model/enums';\nimport { AuthProvider } from '../../model/public_types';\n\nimport { ActionCodeURL } from '../action_code_url';\nimport { EmailAuthCredential } from '../credentials/email';\nimport { AuthErrorCode } from '../errors';\nimport { _assert } from '../util/assert';\n\n/**\n * Provider for generating {@link EmailAuthCredential}.\n *\n * @public\n */\nexport class EmailAuthProvider implements AuthProvider {\n /**\n * Always set to {@link ProviderId}.PASSWORD, even for email link.\n */\n static readonly PROVIDER_ID: 'password' = ProviderId.PASSWORD;\n /**\n * Always set to {@link SignInMethod}.EMAIL_PASSWORD.\n */\n static readonly EMAIL_PASSWORD_SIGN_IN_METHOD: 'password' =\n SignInMethod.EMAIL_PASSWORD;\n /**\n * Always set to {@link SignInMethod}.EMAIL_LINK.\n */\n static readonly EMAIL_LINK_SIGN_IN_METHOD: 'emailLink' =\n SignInMethod.EMAIL_LINK;\n /**\n * Always set to {@link ProviderId}.PASSWORD, even for email link.\n */\n readonly providerId = EmailAuthProvider.PROVIDER_ID;\n\n /**\n * Initialize an {@link AuthCredential} using an email and password.\n *\n * @example\n * ```javascript\n * const authCredential = EmailAuthProvider.credential(email, password);\n * const userCredential = await signInWithCredential(auth, authCredential);\n * ```\n *\n * @example\n * ```javascript\n * const userCredential = await signInWithEmailAndPassword(auth, email, password);\n * ```\n *\n * @param email - Email address.\n * @param password - User account password.\n * @returns The auth provider credential.\n */\n static credential(email: string, password: string): EmailAuthCredential {\n return EmailAuthCredential._fromEmailAndPassword(email, password);\n }\n\n /**\n * Initialize an {@link AuthCredential} using an email and an email link after a sign in with\n * email link operation.\n *\n * @example\n * ```javascript\n * const authCredential = EmailAuthProvider.credentialWithLink(auth, email, emailLink);\n * const userCredential = await signInWithCredential(auth, authCredential);\n * ```\n *\n * @example\n * ```javascript\n * await sendSignInLinkToEmail(auth, email);\n * // Obtain emailLink from user.\n * const userCredential = await signInWithEmailLink(auth, email, emailLink);\n * ```\n *\n * @param auth - The {@link Auth} instance used to verify the link.\n * @param email - Email address.\n * @param emailLink - Sign-in email link.\n * @returns - The auth provider credential.\n */\n static credentialWithLink(\n email: string,\n emailLink: string\n ): EmailAuthCredential {\n const actionCodeUrl = ActionCodeURL.parseLink(emailLink);\n _assert(actionCodeUrl, AuthErrorCode.ARGUMENT_ERROR);\n\n return EmailAuthCredential._fromEmailAndCode(\n email,\n actionCodeUrl.code,\n actionCodeUrl.tenantId\n );\n }\n}\n","/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { AuthProvider } from '../../model/public_types';\n\n/**\n * Map of OAuth Custom Parameters.\n *\n * @public\n */\nexport type CustomParameters = Record;\n\n/**\n * The base class for all Federated providers (OAuth (including OIDC), SAML).\n *\n * This class is not meant to be instantiated directly.\n *\n * @public\n */\nexport abstract class FederatedAuthProvider implements AuthProvider {\n /** @internal */\n defaultLanguageCode: string | null = null;\n /** @internal */\n private customParameters: CustomParameters = {};\n\n /**\n * Constructor for generic OAuth providers.\n *\n * @param providerId - Provider for which credentials should be generated.\n */\n constructor(readonly providerId: string) {}\n\n /**\n * Set the language gode.\n *\n * @param languageCode - language code\n */\n setDefaultLanguage(languageCode: string | null): void {\n this.defaultLanguageCode = languageCode;\n }\n\n /**\n * Sets the OAuth custom parameters to pass in an OAuth request for popup and redirect sign-in\n * operations.\n *\n * @remarks\n * For a detailed list, check the reserved required OAuth 2.0 parameters such as `client_id`,\n * `redirect_uri`, `scope`, `response_type`, and `state` are not allowed and will be ignored.\n *\n * @param customOAuthParameters - The custom OAuth parameters to pass in the OAuth request.\n */\n setCustomParameters(customOAuthParameters: CustomParameters): AuthProvider {\n this.customParameters = customOAuthParameters;\n return this;\n }\n\n /**\n * Retrieve the current list of {@link CustomParameters}.\n */\n getCustomParameters(): CustomParameters {\n return this.customParameters;\n }\n}\n","/**\n * @license\n * Copyright 2019 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { AuthProvider, UserCredential } from '../../model/public_types';\n\nimport { _assert } from '../util/assert';\nimport { AuthErrorCode } from '../errors';\n\nimport { OAuthCredential, OAuthCredentialParams } from '../credentials/oauth';\nimport { UserCredentialInternal } from '../../model/user';\nimport { FirebaseError } from '@firebase/util';\nimport { TaggedWithTokenResponse } from '../../model/id_token';\nimport { SignInWithIdpResponse } from '../../../internal';\nimport { FederatedAuthProvider } from './federated';\n\n/**\n * Defines the options for initializing an {@link OAuthCredential}.\n *\n * @remarks\n * For ID tokens with nonce claim, the raw nonce has to also be provided.\n *\n * @public\n */\nexport interface OAuthCredentialOptions {\n /**\n * The OAuth ID token used to initialize the {@link OAuthCredential}.\n */\n idToken?: string;\n /**\n * The OAuth access token used to initialize the {@link OAuthCredential}.\n */\n accessToken?: string;\n /**\n * The raw nonce associated with the ID token.\n *\n * @remarks\n * It is required when an ID token with a nonce field is provided. The SHA-256 hash of the\n * raw nonce must match the nonce field in the ID token.\n */\n rawNonce?: string;\n}\n\n/**\n * Common code to all OAuth providers. This is separate from the\n * {@link OAuthProvider} so that child providers (like\n * {@link GoogleAuthProvider}) don't inherit the `credential` instance method.\n * Instead, they rely on a static `credential` method.\n */\nexport abstract class BaseOAuthProvider\n extends FederatedAuthProvider\n implements AuthProvider\n{\n /** @internal */\n private scopes: string[] = [];\n\n /**\n * Add an OAuth scope to the credential.\n *\n * @param scope - Provider OAuth scope to add.\n */\n addScope(scope: string): AuthProvider {\n // If not already added, add scope to list.\n if (!this.scopes.includes(scope)) {\n this.scopes.push(scope);\n }\n return this;\n }\n\n /**\n * Retrieve the current list of OAuth scopes.\n */\n getScopes(): string[] {\n return [...this.scopes];\n }\n}\n\n/**\n * Provider for generating generic {@link OAuthCredential}.\n *\n * @example\n * ```javascript\n * // Sign in using a redirect.\n * const provider = new OAuthProvider('google.com');\n * // Start a sign in process for an unauthenticated user.\n * provider.addScope('profile');\n * provider.addScope('email');\n * await signInWithRedirect(auth, provider);\n * // This will trigger a full page redirect away from your app\n *\n * // After returning from the redirect when your app initializes you can obtain the result\n * const result = await getRedirectResult(auth);\n * if (result) {\n * // This is the signed-in user\n * const user = result.user;\n * // This gives you a OAuth Access Token for the provider.\n * const credential = provider.credentialFromResult(auth, result);\n * const token = credential.accessToken;\n * }\n * ```\n *\n * @example\n * ```javascript\n * // Sign in using a popup.\n * const provider = new OAuthProvider('google.com');\n * provider.addScope('profile');\n * provider.addScope('email');\n * const result = await signInWithPopup(auth, provider);\n *\n * // The signed-in user info.\n * const user = result.user;\n * // This gives you a OAuth Access Token for the provider.\n * const credential = provider.credentialFromResult(auth, result);\n * const token = credential.accessToken;\n * ```\n * @public\n */\nexport class OAuthProvider extends BaseOAuthProvider {\n /**\n * Creates an {@link OAuthCredential} from a JSON string or a plain object.\n * @param json - A plain object or a JSON string\n */\n static credentialFromJSON(json: object | string): OAuthCredential {\n const obj = typeof json === 'string' ? JSON.parse(json) : json;\n _assert(\n 'providerId' in obj && 'signInMethod' in obj,\n AuthErrorCode.ARGUMENT_ERROR\n );\n return OAuthCredential._fromParams(obj);\n }\n\n /**\n * Creates a {@link OAuthCredential} from a generic OAuth provider's access token or ID token.\n *\n * @remarks\n * The raw nonce is required when an ID token with a nonce field is provided. The SHA-256 hash of\n * the raw nonce must match the nonce field in the ID token.\n *\n * @example\n * ```javascript\n * // `googleUser` from the onsuccess Google Sign In callback.\n * // Initialize a generate OAuth provider with a `google.com` providerId.\n * const provider = new OAuthProvider('google.com');\n * const credential = provider.credential({\n * idToken: googleUser.getAuthResponse().id_token,\n * });\n * const result = await signInWithCredential(credential);\n * ```\n *\n * @param params - Either the options object containing the ID token, access token and raw nonce\n * or the ID token string.\n */\n credential(params: OAuthCredentialOptions): OAuthCredential {\n return this._credential({ ...params, nonce: params.rawNonce });\n }\n\n /** An internal credential method that accepts more permissive options */\n private _credential(\n params: Omit\n ): OAuthCredential {\n _assert(params.idToken || params.accessToken, AuthErrorCode.ARGUMENT_ERROR);\n // For OAuthCredential, sign in method is same as providerId.\n return OAuthCredential._fromParams({\n ...params,\n providerId: this.providerId,\n signInMethod: this.providerId\n });\n }\n\n /**\n * Used to extract the underlying {@link OAuthCredential} from a {@link UserCredential}.\n *\n * @param userCredential - The user credential.\n */\n static credentialFromResult(\n userCredential: UserCredential\n ): OAuthCredential | null {\n return OAuthProvider.oauthCredentialFromTaggedObject(\n userCredential as UserCredentialInternal\n );\n }\n /**\n * Used to extract the underlying {@link OAuthCredential} from a {@link AuthError} which was\n * thrown during a sign-in, link, or reauthenticate operation.\n *\n * @param userCredential - The user credential.\n */\n static credentialFromError(error: FirebaseError): OAuthCredential | null {\n return OAuthProvider.oauthCredentialFromTaggedObject(\n (error.customData || {}) as TaggedWithTokenResponse\n );\n }\n\n private static oauthCredentialFromTaggedObject({\n _tokenResponse: tokenResponse\n }: TaggedWithTokenResponse): OAuthCredential | null {\n if (!tokenResponse) {\n return null;\n }\n\n const {\n oauthIdToken,\n oauthAccessToken,\n oauthTokenSecret,\n pendingToken,\n nonce,\n providerId\n } = tokenResponse as SignInWithIdpResponse;\n if (\n !oauthAccessToken &&\n !oauthTokenSecret &&\n !oauthIdToken &&\n !pendingToken\n ) {\n return null;\n }\n\n if (!providerId) {\n return null;\n }\n\n try {\n return new OAuthProvider(providerId)._credential({\n idToken: oauthIdToken,\n accessToken: oauthAccessToken,\n nonce,\n pendingToken\n });\n } catch (e) {\n return null;\n }\n }\n}\n","/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { UserCredential } from '../../model/public_types';\nimport { FirebaseError } from '@firebase/util';\n\nimport { TaggedWithTokenResponse } from '../../model/id_token';\nimport { UserCredentialInternal } from '../../model/user';\nimport { OAuthCredential } from '../credentials/oauth';\nimport { BaseOAuthProvider } from './oauth';\nimport { ProviderId, SignInMethod } from '../../model/enums';\n\n/**\n * Provider for generating an {@link OAuthCredential} for {@link ProviderId}.FACEBOOK.\n *\n * @example\n * ```javascript\n * // Sign in using a redirect.\n * const provider = new FacebookAuthProvider();\n * // Start a sign in process for an unauthenticated user.\n * provider.addScope('user_birthday');\n * await signInWithRedirect(auth, provider);\n * // This will trigger a full page redirect away from your app\n *\n * // After returning from the redirect when your app initializes you can obtain the result\n * const result = await getRedirectResult(auth);\n * if (result) {\n * // This is the signed-in user\n * const user = result.user;\n * // This gives you a Facebook Access Token.\n * const credential = FacebookAuthProvider.credentialFromResult(result);\n * const token = credential.accessToken;\n * }\n * ```\n *\n * @example\n * ```javascript\n * // Sign in using a popup.\n * const provider = new FacebookAuthProvider();\n * provider.addScope('user_birthday');\n * const result = await signInWithPopup(auth, provider);\n *\n * // The signed-in user info.\n * const user = result.user;\n * // This gives you a Facebook Access Token.\n * const credential = FacebookAuthProvider.credentialFromResult(result);\n * const token = credential.accessToken;\n * ```\n *\n * @public\n */\nexport class FacebookAuthProvider extends BaseOAuthProvider {\n /** Always set to {@link SignInMethod}.FACEBOOK. */\n static readonly FACEBOOK_SIGN_IN_METHOD: 'facebook.com' =\n SignInMethod.FACEBOOK;\n /** Always set to {@link ProviderId}.FACEBOOK. */\n static readonly PROVIDER_ID: 'facebook.com' = ProviderId.FACEBOOK;\n\n constructor() {\n super(ProviderId.FACEBOOK);\n }\n\n /**\n * Creates a credential for Facebook.\n *\n * @example\n * ```javascript\n * // `event` from the Facebook auth.authResponseChange callback.\n * const credential = FacebookAuthProvider.credential(event.authResponse.accessToken);\n * const result = await signInWithCredential(credential);\n * ```\n *\n * @param accessToken - Facebook access token.\n */\n static credential(accessToken: string): OAuthCredential {\n return OAuthCredential._fromParams({\n providerId: FacebookAuthProvider.PROVIDER_ID,\n signInMethod: FacebookAuthProvider.FACEBOOK_SIGN_IN_METHOD,\n accessToken\n });\n }\n\n /**\n * Used to extract the underlying {@link OAuthCredential} from a {@link UserCredential}.\n *\n * @param userCredential - The user credential.\n */\n static credentialFromResult(\n userCredential: UserCredential\n ): OAuthCredential | null {\n return FacebookAuthProvider.credentialFromTaggedObject(\n userCredential as UserCredentialInternal\n );\n }\n\n /**\n * Used to extract the underlying {@link OAuthCredential} from a {@link AuthError} which was\n * thrown during a sign-in, link, or reauthenticate operation.\n *\n * @param userCredential - The user credential.\n */\n static credentialFromError(error: FirebaseError): OAuthCredential | null {\n return FacebookAuthProvider.credentialFromTaggedObject(\n (error.customData || {}) as TaggedWithTokenResponse\n );\n }\n\n private static credentialFromTaggedObject({\n _tokenResponse: tokenResponse\n }: TaggedWithTokenResponse): OAuthCredential | null {\n if (!tokenResponse || !('oauthAccessToken' in tokenResponse)) {\n return null;\n }\n\n if (!tokenResponse.oauthAccessToken) {\n return null;\n }\n\n try {\n return FacebookAuthProvider.credential(tokenResponse.oauthAccessToken);\n } catch {\n return null;\n }\n }\n}\n","/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { UserCredential } from '../../model/public_types';\nimport { FirebaseError } from '@firebase/util';\n\nimport { SignInWithIdpResponse } from '../../api/authentication/idp';\nimport { TaggedWithTokenResponse } from '../../model/id_token';\nimport { UserCredentialInternal } from '../../model/user';\nimport { OAuthCredential } from '../credentials/oauth';\nimport { BaseOAuthProvider } from './oauth';\nimport { ProviderId, SignInMethod } from '../../model/enums';\n\n/**\n * Provider for generating an an {@link OAuthCredential} for {@link ProviderId}.GOOGLE.\n *\n * @example\n * ```javascript\n * // Sign in using a redirect.\n * const provider = new GoogleAuthProvider();\n * // Start a sign in process for an unauthenticated user.\n * provider.addScope('profile');\n * provider.addScope('email');\n * await signInWithRedirect(auth, provider);\n * // This will trigger a full page redirect away from your app\n *\n * // After returning from the redirect when your app initializes you can obtain the result\n * const result = await getRedirectResult(auth);\n * if (result) {\n * // This is the signed-in user\n * const user = result.user;\n * // This gives you a Google Access Token.\n * const credential = GoogleAuthProvider.credentialFromResult(result);\n * const token = credential.accessToken;\n * }\n * ```\n *\n * @example\n * ```javascript\n * // Sign in using a popup.\n * const provider = new GoogleAuthProvider();\n * provider.addScope('profile');\n * provider.addScope('email');\n * const result = await signInWithPopup(auth, provider);\n *\n * // The signed-in user info.\n * const user = result.user;\n * // This gives you a Google Access Token.\n * const credential = GoogleAuthProvider.credentialFromResult(result);\n * const token = credential.accessToken;\n * ```\n *\n * @public\n */\nexport class GoogleAuthProvider extends BaseOAuthProvider {\n /** Always set to {@link SignInMethod}.GOOGLE. */\n static readonly GOOGLE_SIGN_IN_METHOD: 'google.com' = SignInMethod.GOOGLE;\n /** Always set to {@link ProviderId}.GOOGLE. */\n static readonly PROVIDER_ID: 'google.com' = ProviderId.GOOGLE;\n\n constructor() {\n super(ProviderId.GOOGLE);\n this.addScope('profile');\n }\n\n /**\n * Creates a credential for Google. At least one of ID token and access token is required.\n *\n * @example\n * ```javascript\n * // \\`googleUser\\` from the onsuccess Google Sign In callback.\n * const credential = GoogleAuthProvider.credential(googleUser.getAuthResponse().id_token);\n * const result = await signInWithCredential(credential);\n * ```\n *\n * @param idToken - Google ID token.\n * @param accessToken - Google access token.\n */\n static credential(\n idToken?: string | null,\n accessToken?: string | null\n ): OAuthCredential {\n return OAuthCredential._fromParams({\n providerId: GoogleAuthProvider.PROVIDER_ID,\n signInMethod: GoogleAuthProvider.GOOGLE_SIGN_IN_METHOD,\n idToken,\n accessToken\n });\n }\n\n /**\n * Used to extract the underlying {@link OAuthCredential} from a {@link UserCredential}.\n *\n * @param userCredential - The user credential.\n */\n static credentialFromResult(\n userCredential: UserCredential\n ): OAuthCredential | null {\n return GoogleAuthProvider.credentialFromTaggedObject(\n userCredential as UserCredentialInternal\n );\n }\n /**\n * Used to extract the underlying {@link OAuthCredential} from a {@link AuthError} which was\n * thrown during a sign-in, link, or reauthenticate operation.\n *\n * @param userCredential - The user credential.\n */\n static credentialFromError(error: FirebaseError): OAuthCredential | null {\n return GoogleAuthProvider.credentialFromTaggedObject(\n (error.customData || {}) as TaggedWithTokenResponse\n );\n }\n\n private static credentialFromTaggedObject({\n _tokenResponse: tokenResponse\n }: TaggedWithTokenResponse): OAuthCredential | null {\n if (!tokenResponse) {\n return null;\n }\n\n const { oauthIdToken, oauthAccessToken } =\n tokenResponse as SignInWithIdpResponse;\n if (!oauthIdToken && !oauthAccessToken) {\n // This could be an oauth 1 credential or a phone credential\n return null;\n }\n\n try {\n return GoogleAuthProvider.credential(oauthIdToken, oauthAccessToken);\n } catch {\n return null;\n }\n }\n}\n","/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { UserCredential } from '../../model/public_types';\nimport { FirebaseError } from '@firebase/util';\n\nimport { TaggedWithTokenResponse } from '../../model/id_token';\nimport { UserCredentialInternal } from '../../model/user';\nimport { OAuthCredential } from '../credentials/oauth';\nimport { BaseOAuthProvider } from './oauth';\nimport { ProviderId, SignInMethod } from '../../model/enums';\n\n/**\n * Provider for generating an {@link OAuthCredential} for {@link ProviderId}.GITHUB.\n *\n * @remarks\n * GitHub requires an OAuth 2.0 redirect, so you can either handle the redirect directly, or use\n * the {@link signInWithPopup} handler:\n *\n * @example\n * ```javascript\n * // Sign in using a redirect.\n * const provider = new GithubAuthProvider();\n * // Start a sign in process for an unauthenticated user.\n * provider.addScope('repo');\n * await signInWithRedirect(auth, provider);\n * // This will trigger a full page redirect away from your app\n *\n * // After returning from the redirect when your app initializes you can obtain the result\n * const result = await getRedirectResult(auth);\n * if (result) {\n * // This is the signed-in user\n * const user = result.user;\n * // This gives you a Github Access Token.\n * const credential = GithubAuthProvider.credentialFromResult(result);\n * const token = credential.accessToken;\n * }\n * ```\n *\n * @example\n * ```javascript\n * // Sign in using a popup.\n * const provider = new GithubAuthProvider();\n * provider.addScope('repo');\n * const result = await signInWithPopup(auth, provider);\n *\n * // The signed-in user info.\n * const user = result.user;\n * // This gives you a Github Access Token.\n * const credential = GithubAuthProvider.credentialFromResult(result);\n * const token = credential.accessToken;\n * ```\n * @public\n */\nexport class GithubAuthProvider extends BaseOAuthProvider {\n /** Always set to {@link SignInMethod}.GITHUB. */\n static readonly GITHUB_SIGN_IN_METHOD: 'github.com' = SignInMethod.GITHUB;\n /** Always set to {@link ProviderId}.GITHUB. */\n static readonly PROVIDER_ID: 'github.com' = ProviderId.GITHUB;\n\n constructor() {\n super(ProviderId.GITHUB);\n }\n\n /**\n * Creates a credential for Github.\n *\n * @param accessToken - Github access token.\n */\n static credential(accessToken: string): OAuthCredential {\n return OAuthCredential._fromParams({\n providerId: GithubAuthProvider.PROVIDER_ID,\n signInMethod: GithubAuthProvider.GITHUB_SIGN_IN_METHOD,\n accessToken\n });\n }\n\n /**\n * Used to extract the underlying {@link OAuthCredential} from a {@link UserCredential}.\n *\n * @param userCredential - The user credential.\n */\n static credentialFromResult(\n userCredential: UserCredential\n ): OAuthCredential | null {\n return GithubAuthProvider.credentialFromTaggedObject(\n userCredential as UserCredentialInternal\n );\n }\n\n /**\n * Used to extract the underlying {@link OAuthCredential} from a {@link AuthError} which was\n * thrown during a sign-in, link, or reauthenticate operation.\n *\n * @param userCredential - The user credential.\n */\n static credentialFromError(error: FirebaseError): OAuthCredential | null {\n return GithubAuthProvider.credentialFromTaggedObject(\n (error.customData || {}) as TaggedWithTokenResponse\n );\n }\n\n private static credentialFromTaggedObject({\n _tokenResponse: tokenResponse\n }: TaggedWithTokenResponse): OAuthCredential | null {\n if (!tokenResponse || !('oauthAccessToken' in tokenResponse)) {\n return null;\n }\n\n if (!tokenResponse.oauthAccessToken) {\n return null;\n }\n\n try {\n return GithubAuthProvider.credential(tokenResponse.oauthAccessToken);\n } catch {\n return null;\n }\n }\n}\n","/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/**\n * Represents the SAML credentials returned by an {@link SAMLAuthProvider}.\n *\n * @public\n */\n\nimport {\n signInWithIdp,\n SignInWithIdpRequest\n} from '../../api/authentication/idp';\nimport { AuthInternal } from '../../model/auth';\nimport { IdTokenResponse } from '../../model/id_token';\nimport { AuthCredential } from './auth_credential';\n\nconst IDP_REQUEST_URI = 'http://localhost';\n\n/**\n * @public\n */\nexport class SAMLAuthCredential extends AuthCredential {\n /** @internal */\n private constructor(\n providerId: string,\n private readonly pendingToken: string\n ) {\n super(providerId, providerId);\n }\n\n /** @internal */\n _getIdTokenResponse(auth: AuthInternal): Promise {\n const request = this.buildRequest();\n return signInWithIdp(auth, request);\n }\n\n /** @internal */\n _linkToIdToken(\n auth: AuthInternal,\n idToken: string\n ): Promise {\n const request = this.buildRequest();\n request.idToken = idToken;\n return signInWithIdp(auth, request);\n }\n\n /** @internal */\n _getReauthenticationResolver(auth: AuthInternal): Promise {\n const request = this.buildRequest();\n request.autoCreate = false;\n return signInWithIdp(auth, request);\n }\n\n /** {@inheritdoc AuthCredential.toJSON} */\n toJSON(): object {\n return {\n signInMethod: this.signInMethod,\n providerId: this.providerId,\n pendingToken: this.pendingToken\n };\n }\n\n /**\n * Static method to deserialize a JSON representation of an object into an\n * {@link AuthCredential}.\n *\n * @param json - Input can be either Object or the stringified representation of the object.\n * When string is provided, JSON.parse would be called first.\n *\n * @returns If the JSON input does not represent an {@link AuthCredential}, null is returned.\n */\n static fromJSON(json: string | object): SAMLAuthCredential | null {\n const obj = typeof json === 'string' ? JSON.parse(json) : json;\n const { providerId, signInMethod, pendingToken }: Record =\n obj;\n if (\n !providerId ||\n !signInMethod ||\n !pendingToken ||\n providerId !== signInMethod\n ) {\n return null;\n }\n\n return new SAMLAuthCredential(providerId, pendingToken);\n }\n\n /**\n * Helper static method to avoid exposing the constructor to end users.\n *\n * @internal\n */\n static _create(providerId: string, pendingToken: string): SAMLAuthCredential {\n return new SAMLAuthCredential(providerId, pendingToken);\n }\n\n private buildRequest(): SignInWithIdpRequest {\n return {\n requestUri: IDP_REQUEST_URI,\n returnSecureToken: true,\n pendingToken: this.pendingToken\n };\n }\n}\n","/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { FirebaseError } from '@firebase/util';\nimport { SignInWithIdpResponse } from '../../api/authentication/idp';\nimport { TaggedWithTokenResponse } from '../../model/id_token';\nimport { UserCredential } from '../../model/public_types';\nimport { UserCredentialInternal } from '../../model/user';\nimport { AuthCredential } from '../credentials';\nimport { SAMLAuthCredential } from '../credentials/saml';\nimport { AuthErrorCode } from '../errors';\nimport { _assert } from '../util/assert';\nimport { FederatedAuthProvider } from './federated';\n\nconst SAML_PROVIDER_PREFIX = 'saml.';\n\n/**\n * An {@link AuthProvider} for SAML.\n *\n * @public\n */\nexport class SAMLAuthProvider extends FederatedAuthProvider {\n /**\n * Constructor. The providerId must start with \"saml.\"\n * @param providerId - SAML provider ID.\n */\n constructor(providerId: string) {\n _assert(\n providerId.startsWith(SAML_PROVIDER_PREFIX),\n AuthErrorCode.ARGUMENT_ERROR\n );\n super(providerId);\n }\n\n /**\n * Generates an {@link AuthCredential} from a {@link UserCredential} after a\n * successful SAML flow completes.\n *\n * @remarks\n *\n * For example, to get an {@link AuthCredential}, you could write the\n * following code:\n *\n * ```js\n * const userCredential = await signInWithPopup(auth, samlProvider);\n * const credential = SAMLAuthProvider.credentialFromResult(userCredential);\n * ```\n *\n * @param userCredential - The user credential.\n */\n static credentialFromResult(\n userCredential: UserCredential\n ): AuthCredential | null {\n return SAMLAuthProvider.samlCredentialFromTaggedObject(\n userCredential as UserCredentialInternal\n );\n }\n\n /**\n * Used to extract the underlying {@link OAuthCredential} from a {@link AuthError} which was\n * thrown during a sign-in, link, or reauthenticate operation.\n *\n * @param userCredential - The user credential.\n */\n static credentialFromError(error: FirebaseError): AuthCredential | null {\n return SAMLAuthProvider.samlCredentialFromTaggedObject(\n (error.customData || {}) as TaggedWithTokenResponse\n );\n }\n\n /**\n * Creates an {@link AuthCredential} from a JSON string or a plain object.\n * @param json - A plain object or a JSON string\n */\n static credentialFromJSON(json: string | object): AuthCredential {\n const credential = SAMLAuthCredential.fromJSON(json);\n _assert(credential, AuthErrorCode.ARGUMENT_ERROR);\n return credential;\n }\n\n private static samlCredentialFromTaggedObject({\n _tokenResponse: tokenResponse\n }: TaggedWithTokenResponse): SAMLAuthCredential | null {\n if (!tokenResponse) {\n return null;\n }\n\n const { pendingToken, providerId } = tokenResponse as SignInWithIdpResponse;\n\n if (!pendingToken || !providerId) {\n return null;\n }\n\n try {\n return SAMLAuthCredential._create(providerId, pendingToken);\n } catch (e) {\n return null;\n }\n }\n}\n","/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/**\n * @license\n * Copyright 2020 Twitter LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { UserCredential } from '../../model/public_types';\nimport { FirebaseError } from '@firebase/util';\n\nimport { SignInWithIdpResponse } from '../../api/authentication/idp';\nimport { TaggedWithTokenResponse } from '../../model/id_token';\nimport { UserCredentialInternal } from '../../model/user';\nimport { OAuthCredential } from '../credentials/oauth';\nimport { BaseOAuthProvider } from './oauth';\nimport { ProviderId, SignInMethod } from '../../model/enums';\n\n/**\n * Provider for generating an {@link OAuthCredential} for {@link ProviderId}.TWITTER.\n *\n * @example\n * ```javascript\n * // Sign in using a redirect.\n * const provider = new TwitterAuthProvider();\n * // Start a sign in process for an unauthenticated user.\n * await signInWithRedirect(auth, provider);\n * // This will trigger a full page redirect away from your app\n *\n * // After returning from the redirect when your app initializes you can obtain the result\n * const result = await getRedirectResult(auth);\n * if (result) {\n * // This is the signed-in user\n * const user = result.user;\n * // This gives you a Twitter Access Token and Secret.\n * const credential = TwitterAuthProvider.credentialFromResult(result);\n * const token = credential.accessToken;\n * const secret = credential.secret;\n * }\n * ```\n *\n * @example\n * ```javascript\n * // Sign in using a popup.\n * const provider = new TwitterAuthProvider();\n * const result = await signInWithPopup(auth, provider);\n *\n * // The signed-in user info.\n * const user = result.user;\n * // This gives you a Twitter Access Token and Secret.\n * const credential = TwitterAuthProvider.credentialFromResult(result);\n * const token = credential.accessToken;\n * const secret = credential.secret;\n * ```\n *\n * @public\n */\nexport class TwitterAuthProvider extends BaseOAuthProvider {\n /** Always set to {@link SignInMethod}.TWITTER. */\n static readonly TWITTER_SIGN_IN_METHOD: 'twitter.com' = SignInMethod.TWITTER;\n /** Always set to {@link ProviderId}.TWITTER. */\n static readonly PROVIDER_ID: 'twitter.com' = ProviderId.TWITTER;\n\n constructor() {\n super(ProviderId.TWITTER);\n }\n\n /**\n * Creates a credential for Twitter.\n *\n * @param token - Twitter access token.\n * @param secret - Twitter secret.\n */\n static credential(token: string, secret: string): OAuthCredential {\n return OAuthCredential._fromParams({\n providerId: TwitterAuthProvider.PROVIDER_ID,\n signInMethod: TwitterAuthProvider.TWITTER_SIGN_IN_METHOD,\n oauthToken: token,\n oauthTokenSecret: secret\n });\n }\n\n /**\n * Used to extract the underlying {@link OAuthCredential} from a {@link UserCredential}.\n *\n * @param userCredential - The user credential.\n */\n static credentialFromResult(\n userCredential: UserCredential\n ): OAuthCredential | null {\n return TwitterAuthProvider.credentialFromTaggedObject(\n userCredential as UserCredentialInternal\n );\n }\n\n /**\n * Used to extract the underlying {@link OAuthCredential} from a {@link AuthError} which was\n * thrown during a sign-in, link, or reauthenticate operation.\n *\n * @param userCredential - The user credential.\n */\n static credentialFromError(error: FirebaseError): OAuthCredential | null {\n return TwitterAuthProvider.credentialFromTaggedObject(\n (error.customData || {}) as TaggedWithTokenResponse\n );\n }\n\n private static credentialFromTaggedObject({\n _tokenResponse: tokenResponse\n }: TaggedWithTokenResponse): OAuthCredential | null {\n if (!tokenResponse) {\n return null;\n }\n const { oauthAccessToken, oauthTokenSecret } =\n tokenResponse as SignInWithIdpResponse;\n if (!oauthAccessToken || !oauthTokenSecret) {\n return null;\n }\n\n try {\n return TwitterAuthProvider.credential(oauthAccessToken, oauthTokenSecret);\n } catch {\n return null;\n }\n }\n}\n","/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {\n Endpoint,\n HttpMethod,\n RecaptchaClientType,\n RecaptchaVersion,\n _addTidIfNecessary,\n _performSignInRequest\n} from '../index';\nimport { IdTokenResponse } from '../../model/id_token';\nimport { Auth } from '../../model/public_types';\n\nexport interface SignUpRequest {\n idToken?: string;\n returnSecureToken?: boolean;\n email?: string;\n password?: string;\n tenantId?: string;\n captchaResponse?: string;\n clientType?: RecaptchaClientType;\n recaptchaVersion?: RecaptchaVersion;\n}\n\nexport interface SignUpResponse extends IdTokenResponse {\n displayName?: string;\n email?: string;\n}\n\nexport async function signUp(\n auth: Auth,\n request: SignUpRequest\n): Promise {\n return _performSignInRequest(\n auth,\n HttpMethod.POST,\n Endpoint.SIGN_UP,\n _addTidIfNecessary(auth, request)\n );\n}\n","/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { PhoneOrOauthTokenResponse } from '../../api/authentication/mfa';\nimport { IdTokenResponse } from '../../model/id_token';\nimport { UserInternal, UserCredentialInternal } from '../../model/user';\nimport { UserImpl } from './user_impl';\nimport { AuthInternal } from '../../model/auth';\nimport { OperationType, ProviderId } from '../../model/enums';\n\ninterface UserCredentialParams {\n readonly user: UserInternal;\n readonly providerId: ProviderId | string | null;\n readonly _tokenResponse?: PhoneOrOauthTokenResponse;\n readonly operationType: OperationType;\n}\n\nexport class UserCredentialImpl\n implements UserCredentialInternal, UserCredentialParams\n{\n readonly user: UserInternal;\n readonly providerId: ProviderId | string | null;\n readonly _tokenResponse: PhoneOrOauthTokenResponse | undefined;\n readonly operationType: OperationType;\n\n constructor(params: UserCredentialParams) {\n this.user = params.user;\n this.providerId = params.providerId;\n this._tokenResponse = params._tokenResponse;\n this.operationType = params.operationType;\n }\n\n static async _fromIdTokenResponse(\n auth: AuthInternal,\n operationType: OperationType,\n idTokenResponse: IdTokenResponse,\n isAnonymous: boolean = false\n ): Promise {\n const user = await UserImpl._fromIdTokenResponse(\n auth,\n idTokenResponse,\n isAnonymous\n );\n const providerId = providerIdForResponse(idTokenResponse);\n const userCred = new UserCredentialImpl({\n user,\n providerId,\n _tokenResponse: idTokenResponse,\n operationType\n });\n return userCred;\n }\n\n static async _forOperation(\n user: UserInternal,\n operationType: OperationType,\n response: PhoneOrOauthTokenResponse\n ): Promise {\n await user._updateTokensIfNecessary(response, /* reload */ true);\n const providerId = providerIdForResponse(response);\n return new UserCredentialImpl({\n user,\n providerId,\n _tokenResponse: response,\n operationType\n });\n }\n}\n\nfunction providerIdForResponse(\n response: IdTokenResponse\n): ProviderId | string | null {\n if (response.providerId) {\n return response.providerId;\n }\n\n if ('phoneNumber' in response) {\n return ProviderId.PHONE;\n }\n\n return null;\n}\n","/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { Auth, UserCredential } from '../../model/public_types';\nimport { signUp } from '../../api/authentication/sign_up';\nimport { UserInternal } from '../../model/user';\nimport { UserCredentialImpl } from '../user/user_credential_impl';\nimport { _castAuth } from '../auth/auth_impl';\nimport { OperationType } from '../../model/enums';\n\n/**\n * Asynchronously signs in as an anonymous user.\n *\n * @remarks\n * If there is already an anonymous user signed in, that user will be returned; otherwise, a\n * new anonymous user identity will be created and returned.\n *\n * @param auth - The {@link Auth} instance.\n *\n * @public\n */\nexport async function signInAnonymously(auth: Auth): Promise {\n const authInternal = _castAuth(auth);\n await authInternal._initializationPromise;\n if (authInternal.currentUser?.isAnonymous) {\n // If an anonymous user is already signed in, no need to sign them in again.\n return new UserCredentialImpl({\n user: authInternal.currentUser as UserInternal,\n providerId: null,\n operationType: OperationType.SIGN_IN\n });\n }\n const response = await signUp(authInternal, {\n returnSecureToken: true\n });\n const userCredential = await UserCredentialImpl._fromIdTokenResponse(\n authInternal,\n OperationType.SIGN_IN,\n response,\n true\n );\n await authInternal._updateCurrentUser(userCredential.user);\n return userCredential;\n}\n","/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { MultiFactorError as MultiFactorErrorPublic } from '../model/public_types';\nimport { FirebaseError } from '@firebase/util';\nimport { AuthInternal } from '../model/auth';\nimport { IdTokenResponse } from '../model/id_token';\nimport { AuthErrorCode } from '../core/errors';\nimport { UserInternal } from '../model/user';\nimport { AuthCredential } from '../core/credentials';\nimport { IdTokenMfaResponse } from '../api/authentication/mfa';\nimport { OperationType } from '../model/enums';\n\nexport type MultiFactorErrorData = MultiFactorErrorPublic['customData'] & {\n _serverResponse: IdTokenMfaResponse;\n};\n\nexport class MultiFactorError\n extends FirebaseError\n implements MultiFactorErrorPublic\n{\n readonly customData: MultiFactorErrorData;\n\n private constructor(\n auth: AuthInternal,\n error: FirebaseError,\n readonly operationType: OperationType,\n readonly user?: UserInternal\n ) {\n super(error.code, error.message);\n // https://github.com/Microsoft/TypeScript-wiki/blob/master/Breaking-Changes.md#extending-built-ins-like-error-array-and-map-may-no-longer-work\n Object.setPrototypeOf(this, MultiFactorError.prototype);\n this.customData = {\n appName: auth.name,\n tenantId: auth.tenantId ?? undefined,\n _serverResponse: error.customData!._serverResponse as IdTokenMfaResponse,\n operationType\n };\n }\n\n static _fromErrorAndOperation(\n auth: AuthInternal,\n error: FirebaseError,\n operationType: OperationType,\n user?: UserInternal\n ): MultiFactorError {\n return new MultiFactorError(auth, error, operationType, user);\n }\n}\n\nexport function _processCredentialSavingMfaContextIfNecessary(\n auth: AuthInternal,\n operationType: OperationType,\n credential: AuthCredential,\n user?: UserInternal\n): Promise {\n const idTokenProvider =\n operationType === OperationType.REAUTHENTICATE\n ? credential._getReauthenticationResolver(auth)\n : credential._getIdTokenResponse(auth);\n\n return idTokenProvider.catch(error => {\n if (error.code === `auth/${AuthErrorCode.MFA_REQUIRED}`) {\n throw MultiFactorError._fromErrorAndOperation(\n auth,\n error,\n operationType,\n user\n );\n }\n\n throw error;\n });\n}\n","/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport interface ProviderAssociatedObject {\n providerId?: string;\n}\n\n/**\n * Takes a set of UserInfo provider data and converts it to a set of names\n */\nexport function providerDataAsNames(\n providerData: T[]\n): Set {\n return new Set(\n providerData\n .map(({ providerId }) => providerId)\n .filter(pid => !!pid) as string[]\n );\n}\n","/**\n * @license\n * Copyright 2019 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { User } from '../../model/public_types';\n\nimport { deleteLinkedAccounts } from '../../api/account_management/account';\nimport { UserInternal, UserCredentialInternal } from '../../model/user';\nimport { AuthCredential } from '../credentials';\nimport { AuthErrorCode } from '../errors';\nimport { _assert } from '../util/assert';\nimport { providerDataAsNames } from '../util/providers';\nimport { _logoutIfInvalidated } from './invalidation';\nimport { _reloadWithoutSaving } from './reload';\nimport { UserCredentialImpl } from './user_credential_impl';\nimport { getModularInstance } from '@firebase/util';\nimport { OperationType, ProviderId } from '../../model/enums';\n\n/**\n * Unlinks a provider from a user account.\n *\n * @param user - The user.\n * @param providerId - The provider to unlink.\n *\n * @public\n */\nexport async function unlink(user: User, providerId: string): Promise {\n const userInternal = getModularInstance(user) as UserInternal;\n await _assertLinkedStatus(true, userInternal, providerId);\n const { providerUserInfo } = await deleteLinkedAccounts(userInternal.auth, {\n idToken: await userInternal.getIdToken(),\n deleteProvider: [providerId]\n });\n\n const providersLeft = providerDataAsNames(providerUserInfo || []);\n\n userInternal.providerData = userInternal.providerData.filter(pd =>\n providersLeft.has(pd.providerId)\n );\n if (!providersLeft.has(ProviderId.PHONE)) {\n userInternal.phoneNumber = null;\n }\n\n await userInternal.auth._persistUserIfCurrent(userInternal);\n return userInternal;\n}\n\nexport async function _link(\n user: UserInternal,\n credential: AuthCredential,\n bypassAuthState = false\n): Promise {\n const response = await _logoutIfInvalidated(\n user,\n credential._linkToIdToken(user.auth, await user.getIdToken()),\n bypassAuthState\n );\n return UserCredentialImpl._forOperation(user, OperationType.LINK, response);\n}\n\nexport async function _assertLinkedStatus(\n expected: boolean,\n user: UserInternal,\n provider: string\n): Promise {\n await _reloadWithoutSaving(user);\n const providerIds = providerDataAsNames(user.providerData);\n\n const code =\n expected === false\n ? AuthErrorCode.PROVIDER_ALREADY_LINKED\n : AuthErrorCode.NO_SUCH_PROVIDER;\n _assert(providerIds.has(provider) === expected, user.auth, code);\n}\n","/**\n * @license\n * Copyright 2019 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { FirebaseError } from '@firebase/util';\nimport { _processCredentialSavingMfaContextIfNecessary } from '../../mfa/mfa_error';\nimport { OperationType } from '../../model/enums';\nimport { UserInternal } from '../../model/user';\nimport { AuthCredential } from '../credentials';\nimport { AuthErrorCode } from '../errors';\nimport { _assert, _fail } from '../util/assert';\nimport { _parseToken } from './id_token_result';\nimport { _logoutIfInvalidated } from './invalidation';\nimport { UserCredentialImpl } from './user_credential_impl';\n\nexport async function _reauthenticate(\n user: UserInternal,\n credential: AuthCredential,\n bypassAuthState = false\n): Promise {\n const { auth } = user;\n const operationType = OperationType.REAUTHENTICATE;\n\n try {\n const response = await _logoutIfInvalidated(\n user,\n _processCredentialSavingMfaContextIfNecessary(\n auth,\n operationType,\n credential,\n user\n ),\n bypassAuthState\n );\n _assert(response.idToken, auth, AuthErrorCode.INTERNAL_ERROR);\n const parsed = _parseToken(response.idToken);\n _assert(parsed, auth, AuthErrorCode.INTERNAL_ERROR);\n\n const { sub: localId } = parsed;\n _assert(user.uid === localId, auth, AuthErrorCode.USER_MISMATCH);\n\n return UserCredentialImpl._forOperation(user, operationType, response);\n } catch (e) {\n // Convert user deleted error into user mismatch\n if ((e as FirebaseError)?.code === `auth/${AuthErrorCode.USER_DELETED}`) {\n _fail(auth, AuthErrorCode.USER_MISMATCH);\n }\n throw e;\n }\n}\n","/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { UserCredential, Auth, User } from '../../model/public_types';\n\nimport { _processCredentialSavingMfaContextIfNecessary } from '../../mfa/mfa_error';\nimport { AuthInternal } from '../../model/auth';\nimport { UserInternal } from '../../model/user';\nimport { AuthCredential } from '../credentials';\nimport { _assertLinkedStatus, _link } from '../user/link_unlink';\nimport { _reauthenticate } from '../user/reauthenticate';\nimport { UserCredentialImpl } from '../user/user_credential_impl';\nimport { _castAuth } from '../auth/auth_impl';\nimport { getModularInstance } from '@firebase/util';\nimport { OperationType } from '../../model/enums';\n\nexport async function _signInWithCredential(\n auth: AuthInternal,\n credential: AuthCredential,\n bypassAuthState = false\n): Promise {\n const operationType = OperationType.SIGN_IN;\n const response = await _processCredentialSavingMfaContextIfNecessary(\n auth,\n operationType,\n credential\n );\n const userCredential = await UserCredentialImpl._fromIdTokenResponse(\n auth,\n operationType,\n response\n );\n\n if (!bypassAuthState) {\n await auth._updateCurrentUser(userCredential.user);\n }\n return userCredential;\n}\n\n/**\n * Asynchronously signs in with the given credentials.\n *\n * @remarks\n * An {@link AuthProvider} can be used to generate the credential.\n *\n * @param auth - The {@link Auth} instance.\n * @param credential - The auth credential.\n *\n * @public\n */\nexport async function signInWithCredential(\n auth: Auth,\n credential: AuthCredential\n): Promise {\n return _signInWithCredential(_castAuth(auth), credential);\n}\n\n/**\n * Links the user account with the given credentials.\n *\n * @remarks\n * An {@link AuthProvider} can be used to generate the credential.\n *\n * @param user - The user.\n * @param credential - The auth credential.\n *\n * @public\n */\nexport async function linkWithCredential(\n user: User,\n credential: AuthCredential\n): Promise {\n const userInternal = getModularInstance(user) as UserInternal;\n\n await _assertLinkedStatus(false, userInternal, credential.providerId);\n\n return _link(userInternal, credential);\n}\n\n/**\n * Re-authenticates a user using a fresh credential.\n *\n * @remarks\n * Use before operations such as {@link updatePassword} that require tokens from recent sign-in\n * attempts. This method can be used to recover from a `CREDENTIAL_TOO_OLD_LOGIN_AGAIN` error\n * or a `TOKEN_EXPIRED` error.\n *\n * @param user - The user.\n * @param credential - The auth credential.\n *\n * @public\n */\nexport async function reauthenticateWithCredential(\n user: User,\n credential: AuthCredential\n): Promise {\n return _reauthenticate(getModularInstance(user) as UserInternal, credential);\n}\n","/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {\n Endpoint,\n HttpMethod,\n _addTidIfNecessary,\n _performSignInRequest\n} from '../index';\nimport { IdTokenResponse } from '../../model/id_token';\nimport { Auth } from '../../model/public_types';\n\nexport interface SignInWithCustomTokenRequest {\n token: string;\n returnSecureToken: boolean;\n tenantId?: string;\n}\n\nexport interface SignInWithCustomTokenResponse extends IdTokenResponse {}\n\nexport async function signInWithCustomToken(\n auth: Auth,\n request: SignInWithCustomTokenRequest\n): Promise {\n return _performSignInRequest<\n SignInWithCustomTokenRequest,\n SignInWithCustomTokenResponse\n >(\n auth,\n HttpMethod.POST,\n Endpoint.SIGN_IN_WITH_CUSTOM_TOKEN,\n _addTidIfNecessary(auth, request)\n );\n}\n","/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { Auth, UserCredential } from '../../model/public_types';\n\nimport { signInWithCustomToken as getIdTokenResponse } from '../../api/authentication/custom_token';\nimport { IdTokenResponse } from '../../model/id_token';\nimport { UserCredentialImpl } from '../user/user_credential_impl';\nimport { _castAuth } from '../auth/auth_impl';\nimport { OperationType } from '../../model/enums';\n\n/**\n * Asynchronously signs in using a custom token.\n *\n * @remarks\n * Custom tokens are used to integrate Firebase Auth with existing auth systems, and must\n * be generated by an auth backend using the\n * {@link https://firebase.google.com/docs/reference/admin/node/admin.auth.Auth#createcustomtoken | createCustomToken}\n * method in the {@link https://firebase.google.com/docs/auth/admin | Admin SDK} .\n *\n * Fails with an error if the token is invalid, expired, or not accepted by the Firebase Auth service.\n *\n * @param auth - The {@link Auth} instance.\n * @param customToken - The custom token to sign in with.\n *\n * @public\n */\nexport async function signInWithCustomToken(\n auth: Auth,\n customToken: string\n): Promise {\n const authInternal = _castAuth(auth);\n const response: IdTokenResponse = await getIdTokenResponse(authInternal, {\n token: customToken,\n returnSecureToken: true\n });\n const cred = await UserCredentialImpl._fromIdTokenResponse(\n authInternal,\n OperationType.SIGN_IN,\n response\n );\n await authInternal._updateCurrentUser(cred.user);\n return cred;\n}\n","/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {\n FactorId,\n MultiFactorInfo,\n PhoneMultiFactorInfo,\n TotpMultiFactorInfo\n} from '../model/public_types';\nimport {\n PhoneMfaEnrollment,\n MfaEnrollment,\n TotpMfaEnrollment\n} from '../api/account_management/mfa';\nimport { AuthErrorCode } from '../core/errors';\nimport { _fail } from '../core/util/assert';\nimport { AuthInternal } from '../model/auth';\n\nexport abstract class MultiFactorInfoImpl implements MultiFactorInfo {\n readonly uid: string;\n readonly displayName?: string | null;\n readonly enrollmentTime: string;\n\n protected constructor(readonly factorId: FactorId, response: MfaEnrollment) {\n this.uid = response.mfaEnrollmentId;\n this.enrollmentTime = new Date(response.enrolledAt).toUTCString();\n this.displayName = response.displayName;\n }\n\n static _fromServerResponse(\n auth: AuthInternal,\n enrollment: MfaEnrollment\n ): MultiFactorInfoImpl {\n if ('phoneInfo' in enrollment) {\n return PhoneMultiFactorInfoImpl._fromServerResponse(auth, enrollment);\n } else if ('totpInfo' in enrollment) {\n return TotpMultiFactorInfoImpl._fromServerResponse(auth, enrollment);\n }\n return _fail(auth, AuthErrorCode.INTERNAL_ERROR);\n }\n}\n\nexport class PhoneMultiFactorInfoImpl\n extends MultiFactorInfoImpl\n implements PhoneMultiFactorInfo\n{\n readonly phoneNumber: string;\n\n private constructor(response: PhoneMfaEnrollment) {\n super(FactorId.PHONE, response);\n this.phoneNumber = response.phoneInfo;\n }\n\n static _fromServerResponse(\n _auth: AuthInternal,\n enrollment: MfaEnrollment\n ): PhoneMultiFactorInfoImpl {\n return new PhoneMultiFactorInfoImpl(enrollment as PhoneMfaEnrollment);\n }\n}\nexport class TotpMultiFactorInfoImpl\n extends MultiFactorInfoImpl\n implements TotpMultiFactorInfo\n{\n private constructor(response: TotpMfaEnrollment) {\n super(FactorId.TOTP, response);\n }\n\n static _fromServerResponse(\n _auth: AuthInternal,\n enrollment: MfaEnrollment\n ): TotpMultiFactorInfoImpl {\n return new TotpMultiFactorInfoImpl(enrollment as TotpMfaEnrollment);\n }\n}\n","/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { ActionCodeSettings, Auth } from '../../model/public_types';\n\nimport { GetOobCodeRequest } from '../../api/authentication/email_and_password';\nimport { AuthErrorCode } from '../errors';\nimport { _assert } from '../util/assert';\n\nexport function _setActionCodeSettingsOnRequest(\n auth: Auth,\n request: GetOobCodeRequest,\n actionCodeSettings: ActionCodeSettings\n): void {\n _assert(\n actionCodeSettings.url?.length > 0,\n auth,\n AuthErrorCode.INVALID_CONTINUE_URI\n );\n _assert(\n typeof actionCodeSettings.dynamicLinkDomain === 'undefined' ||\n actionCodeSettings.dynamicLinkDomain.length > 0,\n auth,\n AuthErrorCode.INVALID_DYNAMIC_LINK_DOMAIN\n );\n\n request.continueUrl = actionCodeSettings.url;\n request.dynamicLinkDomain = actionCodeSettings.dynamicLinkDomain;\n request.canHandleCodeInApp = actionCodeSettings.handleCodeInApp;\n\n if (actionCodeSettings.iOS) {\n _assert(\n actionCodeSettings.iOS.bundleId.length > 0,\n auth,\n AuthErrorCode.MISSING_IOS_BUNDLE_ID\n );\n request.iOSBundleId = actionCodeSettings.iOS.bundleId;\n }\n\n if (actionCodeSettings.android) {\n _assert(\n actionCodeSettings.android.packageName.length > 0,\n auth,\n AuthErrorCode.MISSING_ANDROID_PACKAGE_NAME\n );\n request.androidInstallApp = actionCodeSettings.android.installApp;\n request.androidMinimumVersionCode =\n actionCodeSettings.android.minimumVersion;\n request.androidPackageName = actionCodeSettings.android.packageName;\n }\n}\n","/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {\n ActionCodeInfo,\n ActionCodeOperation,\n ActionCodeSettings,\n Auth,\n UserCredential\n} from '../../model/public_types';\n\nimport * as account from '../../api/account_management/email_and_password';\nimport * as authentication from '../../api/authentication/email_and_password';\nimport { signUp, SignUpRequest } from '../../api/authentication/sign_up';\nimport { MultiFactorInfoImpl } from '../../mfa/mfa_info';\nimport { EmailAuthProvider } from '../providers/email';\nimport { UserCredentialImpl } from '../user/user_credential_impl';\nimport { _assert } from '../util/assert';\nimport { _setActionCodeSettingsOnRequest } from './action_code_settings';\nimport { signInWithCredential } from './credential';\nimport { _castAuth } from '../auth/auth_impl';\nimport { AuthErrorCode } from '../errors';\nimport { getModularInstance } from '@firebase/util';\nimport { OperationType } from '../../model/enums';\nimport { handleRecaptchaFlow } from '../../platform_browser/recaptcha/recaptcha_enterprise_verifier';\nimport { IdTokenResponse } from '../../model/id_token';\nimport { RecaptchaActionName, RecaptchaClientType } from '../../api';\n\n/**\n * Updates the password policy cached in the {@link Auth} instance if a policy is already\n * cached for the project or tenant.\n *\n * @remarks\n * We only fetch the password policy if the password did not meet policy requirements and\n * there is an existing policy cached. A developer must call validatePassword at least\n * once for the cache to be automatically updated.\n *\n * @param auth - The {@link Auth} instance.\n *\n * @private\n */\nasync function recachePasswordPolicy(auth: Auth): Promise {\n const authInternal = _castAuth(auth);\n if (authInternal._getPasswordPolicyInternal()) {\n await authInternal._updatePasswordPolicy();\n }\n}\n\n/**\n * Sends a password reset email to the given email address. This method does not throw an error when\n * there's no user account with the given email address and\n * [Email Enumeration Protection](https://cloud.google.com/identity-platform/docs/admin/email-enumeration-protection) is enabled.\n *\n * @remarks\n * To complete the password reset, call {@link confirmPasswordReset} with the code supplied in\n * the email sent to the user, along with the new password specified by the user.\n *\n * @example\n * ```javascript\n * const actionCodeSettings = {\n * url: 'https://www.example.com/?email=user@example.com',\n * iOS: {\n * bundleId: 'com.example.ios'\n * },\n * android: {\n * packageName: 'com.example.android',\n * installApp: true,\n * minimumVersion: '12'\n * },\n * handleCodeInApp: true\n * };\n * await sendPasswordResetEmail(auth, 'user@example.com', actionCodeSettings);\n * // Obtain code from user.\n * await confirmPasswordReset('user@example.com', code);\n * ```\n *\n * @param auth - The {@link Auth} instance.\n * @param email - The user's email address.\n * @param actionCodeSettings - The {@link ActionCodeSettings}.\n *\n * @public\n */\nexport async function sendPasswordResetEmail(\n auth: Auth,\n email: string,\n actionCodeSettings?: ActionCodeSettings\n): Promise {\n const authInternal = _castAuth(auth);\n const request: authentication.PasswordResetRequest = {\n requestType: ActionCodeOperation.PASSWORD_RESET,\n email,\n clientType: RecaptchaClientType.WEB\n };\n if (actionCodeSettings) {\n _setActionCodeSettingsOnRequest(authInternal, request, actionCodeSettings);\n }\n await handleRecaptchaFlow(\n authInternal,\n request,\n RecaptchaActionName.GET_OOB_CODE,\n authentication.sendPasswordResetEmail\n );\n}\n\n/**\n * Completes the password reset process, given a confirmation code and new password.\n *\n * @param auth - The {@link Auth} instance.\n * @param oobCode - A confirmation code sent to the user.\n * @param newPassword - The new password.\n *\n * @public\n */\nexport async function confirmPasswordReset(\n auth: Auth,\n oobCode: string,\n newPassword: string\n): Promise {\n await account\n .resetPassword(getModularInstance(auth), {\n oobCode,\n newPassword\n })\n .catch(async error => {\n if (\n error.code ===\n `auth/${AuthErrorCode.PASSWORD_DOES_NOT_MEET_REQUIREMENTS}`\n ) {\n void recachePasswordPolicy(auth);\n }\n\n throw error;\n });\n // Do not return the email.\n}\n\n/**\n * Applies a verification code sent to the user by email or other out-of-band mechanism.\n *\n * @param auth - The {@link Auth} instance.\n * @param oobCode - A verification code sent to the user.\n *\n * @public\n */\nexport async function applyActionCode(\n auth: Auth,\n oobCode: string\n): Promise {\n await account.applyActionCode(getModularInstance(auth), { oobCode });\n}\n\n/**\n * Checks a verification code sent to the user by email or other out-of-band mechanism.\n *\n * @returns metadata about the code.\n *\n * @param auth - The {@link Auth} instance.\n * @param oobCode - A verification code sent to the user.\n *\n * @public\n */\nexport async function checkActionCode(\n auth: Auth,\n oobCode: string\n): Promise {\n const authModular = getModularInstance(auth);\n const response = await account.resetPassword(authModular, { oobCode });\n\n // Email could be empty only if the request type is EMAIL_SIGNIN or\n // VERIFY_AND_CHANGE_EMAIL.\n // New email should not be empty if the request type is\n // VERIFY_AND_CHANGE_EMAIL.\n // Multi-factor info could not be empty if the request type is\n // REVERT_SECOND_FACTOR_ADDITION.\n const operation = response.requestType;\n _assert(operation, authModular, AuthErrorCode.INTERNAL_ERROR);\n switch (operation) {\n case ActionCodeOperation.EMAIL_SIGNIN:\n break;\n case ActionCodeOperation.VERIFY_AND_CHANGE_EMAIL:\n _assert(response.newEmail, authModular, AuthErrorCode.INTERNAL_ERROR);\n break;\n case ActionCodeOperation.REVERT_SECOND_FACTOR_ADDITION:\n _assert(response.mfaInfo, authModular, AuthErrorCode.INTERNAL_ERROR);\n // fall through\n default:\n _assert(response.email, authModular, AuthErrorCode.INTERNAL_ERROR);\n }\n\n // The multi-factor info for revert second factor addition\n let multiFactorInfo: MultiFactorInfoImpl | null = null;\n if (response.mfaInfo) {\n multiFactorInfo = MultiFactorInfoImpl._fromServerResponse(\n _castAuth(authModular),\n response.mfaInfo\n );\n }\n\n return {\n data: {\n email:\n (response.requestType === ActionCodeOperation.VERIFY_AND_CHANGE_EMAIL\n ? response.newEmail\n : response.email) || null,\n previousEmail:\n (response.requestType === ActionCodeOperation.VERIFY_AND_CHANGE_EMAIL\n ? response.email\n : response.newEmail) || null,\n multiFactorInfo\n },\n operation\n };\n}\n\n/**\n * Checks a password reset code sent to the user by email or other out-of-band mechanism.\n *\n * @returns the user's email address if valid.\n *\n * @param auth - The {@link Auth} instance.\n * @param code - A verification code sent to the user.\n *\n * @public\n */\nexport async function verifyPasswordResetCode(\n auth: Auth,\n code: string\n): Promise {\n const { data } = await checkActionCode(getModularInstance(auth), code);\n // Email should always be present since a code was sent to it\n return data.email!;\n}\n\n/**\n * Creates a new user account associated with the specified email address and password.\n *\n * @remarks\n * On successful creation of the user account, this user will also be signed in to your application.\n *\n * User account creation can fail if the account already exists or the password is invalid.\n *\n * Note: The email address acts as a unique identifier for the user and enables an email-based\n * password reset. This function will create a new user account and set the initial user password.\n *\n * @param auth - The {@link Auth} instance.\n * @param email - The user's email address.\n * @param password - The user's chosen password.\n *\n * @public\n */\nexport async function createUserWithEmailAndPassword(\n auth: Auth,\n email: string,\n password: string\n): Promise {\n const authInternal = _castAuth(auth);\n const request: SignUpRequest = {\n returnSecureToken: true,\n email,\n password,\n clientType: RecaptchaClientType.WEB\n };\n const signUpResponse: Promise = handleRecaptchaFlow(\n authInternal,\n request,\n RecaptchaActionName.SIGN_UP_PASSWORD,\n signUp\n );\n const response = await signUpResponse.catch(error => {\n if (\n error.code === `auth/${AuthErrorCode.PASSWORD_DOES_NOT_MEET_REQUIREMENTS}`\n ) {\n void recachePasswordPolicy(auth);\n }\n\n throw error;\n });\n\n const userCredential = await UserCredentialImpl._fromIdTokenResponse(\n authInternal,\n OperationType.SIGN_IN,\n response\n );\n await authInternal._updateCurrentUser(userCredential.user);\n\n return userCredential;\n}\n\n/**\n * Asynchronously signs in using an email and password.\n *\n * @remarks\n * Fails with an error if the email address and password do not match.\n * When [Email Enumeration Protection](https://cloud.google.com/identity-platform/docs/admin/email-enumeration-protection) is enabled,\n * this method fails with \"auth/invalid-credential\" in case of an invalid email/password.\n *\n * Note: The user's password is NOT the password used to access the user's email account. The\n * email address serves as a unique identifier for the user, and the password is used to access\n * the user's account in your Firebase project. See also: {@link createUserWithEmailAndPassword}.\n *\n * @param auth - The {@link Auth} instance.\n * @param email - The users email address.\n * @param password - The users password.\n *\n * @public\n */\nexport function signInWithEmailAndPassword(\n auth: Auth,\n email: string,\n password: string\n): Promise {\n return signInWithCredential(\n getModularInstance(auth),\n EmailAuthProvider.credential(email, password)\n ).catch(async error => {\n if (\n error.code === `auth/${AuthErrorCode.PASSWORD_DOES_NOT_MEET_REQUIREMENTS}`\n ) {\n void recachePasswordPolicy(auth);\n }\n\n throw error;\n });\n}\n","/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {\n ActionCodeOperation,\n ActionCodeSettings,\n Auth,\n UserCredential\n} from '../../model/public_types';\n\nimport * as api from '../../api/authentication/email_and_password';\nimport { ActionCodeURL } from '../action_code_url';\nimport { EmailAuthProvider } from '../providers/email';\nimport { _getCurrentUrl } from '../util/location';\nimport { _setActionCodeSettingsOnRequest } from './action_code_settings';\nimport { signInWithCredential } from './credential';\nimport { AuthErrorCode } from '../errors';\nimport { _assert } from '../util/assert';\nimport { getModularInstance } from '@firebase/util';\nimport { _castAuth } from '../auth/auth_impl';\nimport { handleRecaptchaFlow } from '../../platform_browser/recaptcha/recaptcha_enterprise_verifier';\nimport { RecaptchaActionName, RecaptchaClientType } from '../../api';\n\n/**\n * Sends a sign-in email link to the user with the specified email.\n *\n * @remarks\n * The sign-in operation has to always be completed in the app unlike other out of band email\n * actions (password reset and email verifications). This is because, at the end of the flow,\n * the user is expected to be signed in and their Auth state persisted within the app.\n *\n * To complete sign in with the email link, call {@link signInWithEmailLink} with the email\n * address and the email link supplied in the email sent to the user.\n *\n * @example\n * ```javascript\n * const actionCodeSettings = {\n * url: 'https://www.example.com/?email=user@example.com',\n * iOS: {\n * bundleId: 'com.example.ios'\n * },\n * android: {\n * packageName: 'com.example.android',\n * installApp: true,\n * minimumVersion: '12'\n * },\n * handleCodeInApp: true\n * };\n * await sendSignInLinkToEmail(auth, 'user@example.com', actionCodeSettings);\n * // Obtain emailLink from the user.\n * if(isSignInWithEmailLink(auth, emailLink)) {\n * await signInWithEmailLink(auth, 'user@example.com', emailLink);\n * }\n * ```\n *\n * @param authInternal - The {@link Auth} instance.\n * @param email - The user's email address.\n * @param actionCodeSettings - The {@link ActionCodeSettings}.\n *\n * @public\n */\nexport async function sendSignInLinkToEmail(\n auth: Auth,\n email: string,\n actionCodeSettings: ActionCodeSettings\n): Promise {\n const authInternal = _castAuth(auth);\n const request: api.EmailSignInRequest = {\n requestType: ActionCodeOperation.EMAIL_SIGNIN,\n email,\n clientType: RecaptchaClientType.WEB\n };\n function setActionCodeSettings(\n request: api.EmailSignInRequest,\n actionCodeSettings: ActionCodeSettings\n ): void {\n _assert(\n actionCodeSettings.handleCodeInApp,\n authInternal,\n AuthErrorCode.ARGUMENT_ERROR\n );\n if (actionCodeSettings) {\n _setActionCodeSettingsOnRequest(\n authInternal,\n request,\n actionCodeSettings\n );\n }\n }\n setActionCodeSettings(request, actionCodeSettings);\n await handleRecaptchaFlow(\n authInternal,\n request,\n RecaptchaActionName.GET_OOB_CODE,\n api.sendSignInLinkToEmail\n );\n}\n\n/**\n * Checks if an incoming link is a sign-in with email link suitable for {@link signInWithEmailLink}.\n *\n * @param auth - The {@link Auth} instance.\n * @param emailLink - The link sent to the user's email address.\n *\n * @public\n */\nexport function isSignInWithEmailLink(auth: Auth, emailLink: string): boolean {\n const actionCodeUrl = ActionCodeURL.parseLink(emailLink);\n return actionCodeUrl?.operation === ActionCodeOperation.EMAIL_SIGNIN;\n}\n\n/**\n * Asynchronously signs in using an email and sign-in email link.\n *\n * @remarks\n * If no link is passed, the link is inferred from the current URL.\n *\n * Fails with an error if the email address is invalid or OTP in email link expires.\n *\n * Note: Confirm the link is a sign-in email link before calling this method firebase.auth.Auth.isSignInWithEmailLink.\n *\n * @example\n * ```javascript\n * const actionCodeSettings = {\n * url: 'https://www.example.com/?email=user@example.com',\n * iOS: {\n * bundleId: 'com.example.ios'\n * },\n * android: {\n * packageName: 'com.example.android',\n * installApp: true,\n * minimumVersion: '12'\n * },\n * handleCodeInApp: true\n * };\n * await sendSignInLinkToEmail(auth, 'user@example.com', actionCodeSettings);\n * // Obtain emailLink from the user.\n * if(isSignInWithEmailLink(auth, emailLink)) {\n * await signInWithEmailLink(auth, 'user@example.com', emailLink);\n * }\n * ```\n *\n * @param auth - The {@link Auth} instance.\n * @param email - The user's email address.\n * @param emailLink - The link sent to the user's email address.\n *\n * @public\n */\nexport async function signInWithEmailLink(\n auth: Auth,\n email: string,\n emailLink?: string\n): Promise {\n const authModular = getModularInstance(auth);\n const credential = EmailAuthProvider.credentialWithLink(\n email,\n emailLink || _getCurrentUrl()\n );\n // Check if the tenant ID in the email link matches the tenant ID on Auth\n // instance.\n _assert(\n credential._tenantId === (authModular.tenantId || null),\n authModular,\n AuthErrorCode.TENANT_ID_MISMATCH\n );\n return signInWithCredential(authModular, credential);\n}\n","/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {\n Endpoint,\n HttpMethod,\n _addTidIfNecessary,\n _performApiRequest\n} from '../index';\nimport { Auth } from '../../model/public_types';\n\nexport interface CreateAuthUriRequest {\n identifier: string;\n continueUri: string;\n tenantId?: string;\n}\n\nexport interface CreateAuthUriResponse {\n signinMethods: string[];\n}\n\nexport async function createAuthUri(\n auth: Auth,\n request: CreateAuthUriRequest\n): Promise {\n return _performApiRequest(\n auth,\n HttpMethod.POST,\n Endpoint.CREATE_AUTH_URI,\n _addTidIfNecessary(auth, request)\n );\n}\n","/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {\n ActionCodeOperation,\n ActionCodeSettings,\n Auth,\n User\n} from '../../model/public_types';\n\nimport {\n createAuthUri,\n CreateAuthUriRequest\n} from '../../api/authentication/create_auth_uri';\nimport * as api from '../../api/authentication/email_and_password';\nimport { UserInternal } from '../../model/user';\nimport { _getCurrentUrl, _isHttpOrHttps } from '../util/location';\nimport { _setActionCodeSettingsOnRequest } from './action_code_settings';\nimport { getModularInstance } from '@firebase/util';\n\n/**\n * Gets the list of possible sign in methods for the given email address. This method returns an\n * empty list when [Email Enumeration Protection](https://cloud.google.com/identity-platform/docs/admin/email-enumeration-protection) is enabled, irrespective of the number of\n * authentication methods available for the given email.\n *\n * @remarks\n * This is useful to differentiate methods of sign-in for the same provider, eg.\n * {@link EmailAuthProvider} which has 2 methods of sign-in,\n * {@link SignInMethod}.EMAIL_PASSWORD and\n * {@link SignInMethod}.EMAIL_LINK.\n *\n * @param auth - The {@link Auth} instance.\n * @param email - The user's email address.\n *\n * Deprecated. Migrating off of this method is recommended as a security best-practice.\n * Learn more in the Identity Platform documentation for [Email Enumeration Protection](https://cloud.google.com/identity-platform/docs/admin/email-enumeration-protection).\n * @public\n */\nexport async function fetchSignInMethodsForEmail(\n auth: Auth,\n email: string\n): Promise {\n // createAuthUri returns an error if continue URI is not http or https.\n // For environments like Cordova, Chrome extensions, native frameworks, file\n // systems, etc, use http://localhost as continue URL.\n const continueUri = _isHttpOrHttps() ? _getCurrentUrl() : 'http://localhost';\n const request: CreateAuthUriRequest = {\n identifier: email,\n continueUri\n };\n\n const { signinMethods } = await createAuthUri(\n getModularInstance(auth),\n request\n );\n\n return signinMethods || [];\n}\n\n/**\n * Sends a verification email to a user.\n *\n * @remarks\n * The verification process is completed by calling {@link applyActionCode}.\n *\n * @example\n * ```javascript\n * const actionCodeSettings = {\n * url: 'https://www.example.com/?email=user@example.com',\n * iOS: {\n * bundleId: 'com.example.ios'\n * },\n * android: {\n * packageName: 'com.example.android',\n * installApp: true,\n * minimumVersion: '12'\n * },\n * handleCodeInApp: true\n * };\n * await sendEmailVerification(user, actionCodeSettings);\n * // Obtain code from the user.\n * await applyActionCode(auth, code);\n * ```\n *\n * @param user - The user.\n * @param actionCodeSettings - The {@link ActionCodeSettings}.\n *\n * @public\n */\nexport async function sendEmailVerification(\n user: User,\n actionCodeSettings?: ActionCodeSettings | null\n): Promise {\n const userInternal = getModularInstance(user) as UserInternal;\n const idToken = await user.getIdToken();\n const request: api.VerifyEmailRequest = {\n requestType: ActionCodeOperation.VERIFY_EMAIL,\n idToken\n };\n if (actionCodeSettings) {\n _setActionCodeSettingsOnRequest(\n userInternal.auth,\n request,\n actionCodeSettings\n );\n }\n\n const { email } = await api.sendEmailVerification(userInternal.auth, request);\n\n if (email !== user.email) {\n await user.reload();\n }\n}\n\n/**\n * Sends a verification email to a new email address.\n *\n * @remarks\n * The user's email will be updated to the new one after being verified.\n *\n * If you have a custom email action handler, you can complete the verification process by calling\n * {@link applyActionCode}.\n *\n * @example\n * ```javascript\n * const actionCodeSettings = {\n * url: 'https://www.example.com/?email=user@example.com',\n * iOS: {\n * bundleId: 'com.example.ios'\n * },\n * android: {\n * packageName: 'com.example.android',\n * installApp: true,\n * minimumVersion: '12'\n * },\n * handleCodeInApp: true\n * };\n * await verifyBeforeUpdateEmail(user, 'newemail@example.com', actionCodeSettings);\n * // Obtain code from the user.\n * await applyActionCode(auth, code);\n * ```\n *\n * @param user - The user.\n * @param newEmail - The new email address to be verified before update.\n * @param actionCodeSettings - The {@link ActionCodeSettings}.\n *\n * @public\n */\nexport async function verifyBeforeUpdateEmail(\n user: User,\n newEmail: string,\n actionCodeSettings?: ActionCodeSettings | null\n): Promise {\n const userInternal = getModularInstance(user) as UserInternal;\n const idToken = await user.getIdToken();\n const request: api.VerifyAndChangeEmailRequest = {\n requestType: ActionCodeOperation.VERIFY_AND_CHANGE_EMAIL,\n idToken,\n newEmail\n };\n if (actionCodeSettings) {\n _setActionCodeSettingsOnRequest(\n userInternal.auth,\n request,\n actionCodeSettings\n );\n }\n\n const { email } = await api.verifyAndChangeEmail(userInternal.auth, request);\n\n if (email !== user.email) {\n // If the local copy of the email on user is outdated, reload the\n // user.\n await user.reload();\n }\n}\n","/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { Endpoint, HttpMethod, _performApiRequest } from '../index';\nimport { IdTokenResponse } from '../../model/id_token';\nimport { Auth } from '../../model/public_types';\n\nexport interface UpdateProfileRequest {\n idToken: string;\n displayName?: string | null;\n photoUrl?: string | null;\n returnSecureToken: boolean;\n}\n\nexport interface UpdateProfileResponse extends IdTokenResponse {\n displayName?: string | null;\n photoUrl?: string | null;\n}\n\nexport async function updateProfile(\n auth: Auth,\n request: UpdateProfileRequest\n): Promise {\n return _performApiRequest(\n auth,\n HttpMethod.POST,\n Endpoint.SET_ACCOUNT_INFO,\n request\n );\n}\n","/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { User } from '../../model/public_types';\n\nimport {\n updateEmailPassword as apiUpdateEmailPassword,\n UpdateEmailPasswordRequest\n} from '../../api/account_management/email_and_password';\nimport { updateProfile as apiUpdateProfile } from '../../api/account_management/profile';\nimport { UserInternal } from '../../model/user';\nimport { _logoutIfInvalidated } from './invalidation';\nimport { getModularInstance } from '@firebase/util';\nimport { ProviderId } from '../../model/enums';\n\n/**\n * Updates a user's profile data.\n *\n * @param user - The user.\n * @param profile - The profile's `displayName` and `photoURL` to update.\n *\n * @public\n */\nexport async function updateProfile(\n user: User,\n {\n displayName,\n photoURL: photoUrl\n }: { displayName?: string | null; photoURL?: string | null }\n): Promise {\n if (displayName === undefined && photoUrl === undefined) {\n return;\n }\n\n const userInternal = getModularInstance(user) as UserInternal;\n const idToken = await userInternal.getIdToken();\n const profileRequest = {\n idToken,\n displayName,\n photoUrl,\n returnSecureToken: true\n };\n const response = await _logoutIfInvalidated(\n userInternal,\n apiUpdateProfile(userInternal.auth, profileRequest)\n );\n\n userInternal.displayName = response.displayName || null;\n userInternal.photoURL = response.photoUrl || null;\n\n // Update the password provider as well\n const passwordProvider = userInternal.providerData.find(\n ({ providerId }) => providerId === ProviderId.PASSWORD\n );\n if (passwordProvider) {\n passwordProvider.displayName = userInternal.displayName;\n passwordProvider.photoURL = userInternal.photoURL;\n }\n\n await userInternal._updateTokensIfNecessary(response);\n}\n\n/**\n * Updates the user's email address.\n *\n * @remarks\n * An email will be sent to the original email address (if it was set) that allows to revoke the\n * email address change, in order to protect them from account hijacking.\n *\n * Important: this is a security sensitive operation that requires the user to have recently signed\n * in. If this requirement isn't met, ask the user to authenticate again and then call\n * {@link reauthenticateWithCredential}.\n *\n * @param user - The user.\n * @param newEmail - The new email address.\n *\n * Throws \"auth/operation-not-allowed\" error when [Email Enumeration Protection](https://cloud.google.com/identity-platform/docs/admin/email-enumeration-protection) is enabled.\n * Deprecated - Use {@link verifyBeforeUpdateEmail} instead.\n *\n * @public\n */\nexport function updateEmail(user: User, newEmail: string): Promise {\n return updateEmailOrPassword(\n getModularInstance(user) as UserInternal,\n newEmail,\n null\n );\n}\n\n/**\n * Updates the user's password.\n *\n * @remarks\n * Important: this is a security sensitive operation that requires the user to have recently signed\n * in. If this requirement isn't met, ask the user to authenticate again and then call\n * {@link reauthenticateWithCredential}.\n *\n * @param user - The user.\n * @param newPassword - The new password.\n *\n * @public\n */\nexport function updatePassword(user: User, newPassword: string): Promise {\n return updateEmailOrPassword(\n getModularInstance(user) as UserInternal,\n null,\n newPassword\n );\n}\n\nasync function updateEmailOrPassword(\n user: UserInternal,\n email: string | null,\n password: string | null\n): Promise {\n const { auth } = user;\n const idToken = await user.getIdToken();\n const request: UpdateEmailPasswordRequest = {\n idToken,\n returnSecureToken: true\n };\n\n if (email) {\n request.email = email;\n }\n\n if (password) {\n request.password = password;\n }\n\n const response = await _logoutIfInvalidated(\n user,\n apiUpdateEmailPassword(auth, request)\n );\n await user._updateTokensIfNecessary(response, /* reload */ true);\n}\n","/**\n * @license\n * Copyright 2019 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { AdditionalUserInfo, UserCredential } from '../../model/public_types';\nimport { IdTokenResponse, IdTokenResponseKind } from '../../model/id_token';\nimport { _parseToken } from './id_token_result';\nimport { UserCredentialInternal } from '../../model/user';\nimport { ProviderId } from '../../model/enums';\n\n/**\n * Parse the `AdditionalUserInfo` from the ID token response.\n *\n */\nexport function _fromIdTokenResponse(\n idTokenResponse?: IdTokenResponse\n): AdditionalUserInfo | null {\n if (!idTokenResponse) {\n return null;\n }\n const { providerId } = idTokenResponse;\n const profile = idTokenResponse.rawUserInfo\n ? JSON.parse(idTokenResponse.rawUserInfo)\n : {};\n const isNewUser =\n idTokenResponse.isNewUser ||\n idTokenResponse.kind === IdTokenResponseKind.SignupNewUser;\n if (!providerId && idTokenResponse?.idToken) {\n const signInProvider = _parseToken(idTokenResponse.idToken)?.firebase?.[\n 'sign_in_provider'\n ];\n if (signInProvider) {\n const filteredProviderId =\n signInProvider !== ProviderId.ANONYMOUS &&\n signInProvider !== ProviderId.CUSTOM\n ? (signInProvider as ProviderId)\n : null;\n // Uses generic class in accordance with the legacy SDK.\n return new GenericAdditionalUserInfo(isNewUser, filteredProviderId);\n }\n }\n if (!providerId) {\n return null;\n }\n switch (providerId) {\n case ProviderId.FACEBOOK:\n return new FacebookAdditionalUserInfo(isNewUser, profile);\n case ProviderId.GITHUB:\n return new GithubAdditionalUserInfo(isNewUser, profile);\n case ProviderId.GOOGLE:\n return new GoogleAdditionalUserInfo(isNewUser, profile);\n case ProviderId.TWITTER:\n return new TwitterAdditionalUserInfo(\n isNewUser,\n profile,\n idTokenResponse.screenName || null\n );\n case ProviderId.CUSTOM:\n case ProviderId.ANONYMOUS:\n return new GenericAdditionalUserInfo(isNewUser, null);\n default:\n return new GenericAdditionalUserInfo(isNewUser, providerId, profile);\n }\n}\n\nclass GenericAdditionalUserInfo implements AdditionalUserInfo {\n constructor(\n readonly isNewUser: boolean,\n readonly providerId: ProviderId | string | null,\n readonly profile: Record = {}\n ) {}\n}\n\nclass FederatedAdditionalUserInfoWithUsername extends GenericAdditionalUserInfo {\n constructor(\n isNewUser: boolean,\n providerId: ProviderId,\n profile: Record,\n readonly username: string | null\n ) {\n super(isNewUser, providerId, profile);\n }\n}\n\nclass FacebookAdditionalUserInfo extends GenericAdditionalUserInfo {\n constructor(isNewUser: boolean, profile: Record) {\n super(isNewUser, ProviderId.FACEBOOK, profile);\n }\n}\n\nclass GithubAdditionalUserInfo extends FederatedAdditionalUserInfoWithUsername {\n constructor(isNewUser: boolean, profile: Record) {\n super(\n isNewUser,\n ProviderId.GITHUB,\n profile,\n typeof profile?.login === 'string' ? profile?.login : null\n );\n }\n}\n\nclass GoogleAdditionalUserInfo extends GenericAdditionalUserInfo {\n constructor(isNewUser: boolean, profile: Record) {\n super(isNewUser, ProviderId.GOOGLE, profile);\n }\n}\n\nclass TwitterAdditionalUserInfo extends FederatedAdditionalUserInfoWithUsername {\n constructor(\n isNewUser: boolean,\n profile: Record,\n screenName: string | null\n ) {\n super(isNewUser, ProviderId.TWITTER, profile, screenName);\n }\n}\n\n/**\n * Extracts provider specific {@link AdditionalUserInfo} for the given credential.\n *\n * @param userCredential - The user credential.\n *\n * @public\n */\nexport function getAdditionalUserInfo(\n userCredential: UserCredential\n): AdditionalUserInfo | null {\n const { user, _tokenResponse } = userCredential as UserCredentialInternal;\n if (user.isAnonymous && !_tokenResponse) {\n // Handle the special case where signInAnonymously() gets called twice.\n // No network call is made so there's nothing to actually fill this in\n return {\n providerId: null,\n isNewUser: false,\n profile: null\n };\n }\n\n return _fromIdTokenResponse(_tokenResponse);\n}\n","/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { getModularInstance } from '@firebase/util';\nimport {\n Auth,\n NextOrObserver,\n Persistence,\n User,\n CompleteFn,\n ErrorFn,\n Unsubscribe,\n PasswordValidationStatus\n} from '../model/public_types';\nimport { _initializeRecaptchaConfig } from '../platform_browser/recaptcha/recaptcha_enterprise_verifier';\nimport { _castAuth } from '../core/auth/auth_impl';\n\nexport {\n debugErrorMap,\n prodErrorMap,\n AUTH_ERROR_CODES_MAP_DO_NOT_USE_INTERNALLY as AuthErrorCodes\n} from './errors';\n\n// Non-optional auth methods.\n/**\n * Changes the type of persistence on the {@link Auth} instance for the currently saved\n * `Auth` session and applies this type of persistence for future sign-in requests, including\n * sign-in with redirect requests.\n *\n * @remarks\n * This makes it easy for a user signing in to specify whether their session should be\n * remembered or not. It also makes it easier to never persist the `Auth` state for applications\n * that are shared by other users or have sensitive data.\n *\n * This method does not work in a Node.js environment.\n *\n * @example\n * ```javascript\n * setPersistence(auth, browserSessionPersistence);\n * ```\n *\n * @param auth - The {@link Auth} instance.\n * @param persistence - The {@link Persistence} to use.\n * @returns A `Promise` that resolves once the persistence change has completed\n *\n * @public\n */\nexport function setPersistence(\n auth: Auth,\n persistence: Persistence\n): Promise {\n return getModularInstance(auth).setPersistence(persistence);\n}\n\n/**\n * Loads the reCAPTCHA configuration into the `Auth` instance.\n *\n * @remarks\n * This will load the reCAPTCHA config, which indicates whether the reCAPTCHA\n * verification flow should be triggered for each auth provider, into the\n * current Auth session.\n *\n * If initializeRecaptchaConfig() is not invoked, the auth flow will always start\n * without reCAPTCHA verification. If the provider is configured to require reCAPTCHA\n * verification, the SDK will transparently load the reCAPTCHA config and restart the\n * auth flows.\n *\n * Thus, by calling this optional method, you will reduce the latency of future auth flows.\n * Loading the reCAPTCHA config early will also enhance the signal collected by reCAPTCHA.\n *\n * This method does not work in a Node.js environment.\n *\n * @example\n * ```javascript\n * initializeRecaptchaConfig(auth);\n * ```\n *\n * @param auth - The {@link Auth} instance.\n *\n * @public\n */\nexport function initializeRecaptchaConfig(auth: Auth): Promise {\n return _initializeRecaptchaConfig(auth);\n}\n\n/**\n * Validates the password against the password policy configured for the project or tenant.\n *\n * @remarks\n * If no tenant ID is set on the `Auth` instance, then this method will use the password\n * policy configured for the project. Otherwise, this method will use the policy configured\n * for the tenant. If a password policy has not been configured, then the default policy\n * configured for all projects will be used.\n *\n * If an auth flow fails because a submitted password does not meet the password policy\n * requirements and this method has previously been called, then this method will use the\n * most recent policy available when called again.\n *\n * @example\n * ```javascript\n * validatePassword(auth, 'some-password');\n * ```\n *\n * @param auth The {@link Auth} instance.\n * @param password The password to validate.\n *\n * @public\n */\nexport async function validatePassword(\n auth: Auth,\n password: string\n): Promise {\n const authInternal = _castAuth(auth);\n return authInternal.validatePassword(password);\n}\n\n/**\n * Adds an observer for changes to the signed-in user's ID token.\n *\n * @remarks\n * This includes sign-in, sign-out, and token refresh events.\n * This will not be triggered automatically upon ID token expiration. Use {@link User.getIdToken} to refresh the ID token.\n *\n * @param auth - The {@link Auth} instance.\n * @param nextOrObserver - callback triggered on change.\n * @param error - Deprecated. This callback is never triggered. Errors\n * on signing in/out can be caught in promises returned from\n * sign-in/sign-out functions.\n * @param completed - Deprecated. This callback is never triggered.\n *\n * @public\n */\nexport function onIdTokenChanged(\n auth: Auth,\n nextOrObserver: NextOrObserver,\n error?: ErrorFn,\n completed?: CompleteFn\n): Unsubscribe {\n return getModularInstance(auth).onIdTokenChanged(\n nextOrObserver,\n error,\n completed\n );\n}\n/**\n * Adds a blocking callback that runs before an auth state change\n * sets a new user.\n *\n * @param auth - The {@link Auth} instance.\n * @param callback - callback triggered before new user value is set.\n * If this throws, it blocks the user from being set.\n * @param onAbort - callback triggered if a later `beforeAuthStateChanged()`\n * callback throws, allowing you to undo any side effects.\n */\nexport function beforeAuthStateChanged(\n auth: Auth,\n callback: (user: User | null) => void | Promise,\n onAbort?: () => void\n): Unsubscribe {\n return getModularInstance(auth).beforeAuthStateChanged(callback, onAbort);\n}\n/**\n * Adds an observer for changes to the user's sign-in state.\n *\n * @remarks\n * To keep the old behavior, see {@link onIdTokenChanged}.\n *\n * @param auth - The {@link Auth} instance.\n * @param nextOrObserver - callback triggered on change.\n * @param error - Deprecated. This callback is never triggered. Errors\n * on signing in/out can be caught in promises returned from\n * sign-in/sign-out functions.\n * @param completed - Deprecated. This callback is never triggered.\n *\n * @public\n */\nexport function onAuthStateChanged(\n auth: Auth,\n nextOrObserver: NextOrObserver,\n error?: ErrorFn,\n completed?: CompleteFn\n): Unsubscribe {\n return getModularInstance(auth).onAuthStateChanged(\n nextOrObserver,\n error,\n completed\n );\n}\n/**\n * Sets the current language to the default device/browser preference.\n *\n * @param auth - The {@link Auth} instance.\n *\n * @public\n */\nexport function useDeviceLanguage(auth: Auth): void {\n getModularInstance(auth).useDeviceLanguage();\n}\n/**\n * Asynchronously sets the provided user as {@link Auth.currentUser} on the\n * {@link Auth} instance.\n *\n * @remarks\n * A new instance copy of the user provided will be made and set as currentUser.\n *\n * This will trigger {@link onAuthStateChanged} and {@link onIdTokenChanged} listeners\n * like other sign in methods.\n *\n * The operation fails with an error if the user to be updated belongs to a different Firebase\n * project.\n *\n * @param auth - The {@link Auth} instance.\n * @param user - The new {@link User}.\n *\n * @public\n */\nexport function updateCurrentUser(\n auth: Auth,\n user: User | null\n): Promise {\n return getModularInstance(auth).updateCurrentUser(user);\n}\n/**\n * Signs out the current user.\n *\n * @param auth - The {@link Auth} instance.\n *\n * @public\n */\nexport function signOut(auth: Auth): Promise {\n return getModularInstance(auth).signOut();\n}\n\n/**\n * Revokes the given access token. Currently only supports Apple OAuth access tokens.\n *\n * @param auth - The {@link Auth} instance.\n * @param token - The Apple OAuth access token.\n *\n * @public\n */\nexport function revokeAccessToken(auth: Auth, token: string): Promise {\n const authInternal = _castAuth(auth);\n return authInternal.revokeAccessToken(token);\n}\n\nexport { initializeAuth } from './auth/initialize';\nexport { connectAuthEmulator } from './auth/emulator';\n\n// credentials\nexport { AuthCredential } from './credentials';\nexport { EmailAuthCredential } from './credentials/email';\nexport { OAuthCredential } from './credentials/oauth';\nexport { PhoneAuthCredential } from './credentials/phone';\n\n// persistence\nexport { inMemoryPersistence } from './persistence/in_memory';\n\n// providers\nexport { EmailAuthProvider } from './providers/email';\nexport { FacebookAuthProvider } from './providers/facebook';\nexport { CustomParameters } from './providers/federated';\nexport { GoogleAuthProvider } from './providers/google';\nexport { GithubAuthProvider } from './providers/github';\nexport { OAuthProvider, OAuthCredentialOptions } from './providers/oauth';\nexport { SAMLAuthProvider } from './providers/saml';\nexport { TwitterAuthProvider } from './providers/twitter';\n\n// strategies\nexport { signInAnonymously } from './strategies/anonymous';\nexport {\n signInWithCredential,\n linkWithCredential,\n reauthenticateWithCredential\n} from './strategies/credential';\nexport { signInWithCustomToken } from './strategies/custom_token';\nexport {\n sendPasswordResetEmail,\n confirmPasswordReset,\n applyActionCode,\n checkActionCode,\n verifyPasswordResetCode,\n createUserWithEmailAndPassword,\n signInWithEmailAndPassword\n} from './strategies/email_and_password';\nexport {\n sendSignInLinkToEmail,\n isSignInWithEmailLink,\n signInWithEmailLink\n} from './strategies/email_link';\nexport {\n fetchSignInMethodsForEmail,\n sendEmailVerification,\n verifyBeforeUpdateEmail\n} from './strategies/email';\n\n// core\nexport { ActionCodeURL, parseActionCodeURL } from './action_code_url';\n\n// user\nexport {\n updateProfile,\n updateEmail,\n updatePassword\n} from './user/account_info';\nexport { getIdToken, getIdTokenResult } from './user/id_token_result';\nexport { unlink } from './user/link_unlink';\nexport { getAdditionalUserInfo } from './user/additional_user_info';\n\n// Non-optional user methods.\nexport { reload } from './user/reload';\n/**\n * Deletes and signs out the user.\n *\n * @remarks\n * Important: this is a security-sensitive operation that requires the user to have recently\n * signed in. If this requirement isn't met, ask the user to authenticate again and then call\n * {@link reauthenticateWithCredential}.\n *\n * @param user - The user.\n *\n * @public\n */\nexport async function deleteUser(user: User): Promise {\n return getModularInstance(user).delete();\n}\n","/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { UserInternal } from '../model/user';\nimport { MultiFactorSession } from '../model/public_types';\n\nexport const enum MultiFactorSessionType {\n ENROLL = 'enroll',\n SIGN_IN = 'signin'\n}\n\ninterface SerializedMultiFactorSession {\n multiFactorSession: {\n idToken?: string;\n pendingCredential?: string;\n };\n}\n\nexport class MultiFactorSessionImpl implements MultiFactorSession {\n private constructor(\n readonly type: MultiFactorSessionType,\n readonly credential: string,\n readonly user?: UserInternal\n ) {}\n\n static _fromIdtoken(\n idToken: string,\n user?: UserInternal\n ): MultiFactorSessionImpl {\n return new MultiFactorSessionImpl(\n MultiFactorSessionType.ENROLL,\n idToken,\n user\n );\n }\n\n static _fromMfaPendingCredential(\n mfaPendingCredential: string\n ): MultiFactorSessionImpl {\n return new MultiFactorSessionImpl(\n MultiFactorSessionType.SIGN_IN,\n mfaPendingCredential\n );\n }\n\n toJSON(): SerializedMultiFactorSession {\n const key =\n this.type === MultiFactorSessionType.ENROLL\n ? 'idToken'\n : 'pendingCredential';\n return {\n multiFactorSession: {\n [key]: this.credential\n }\n };\n }\n\n static fromJSON(\n obj: Partial\n ): MultiFactorSessionImpl | null {\n if (obj?.multiFactorSession) {\n if (obj.multiFactorSession?.pendingCredential) {\n return MultiFactorSessionImpl._fromMfaPendingCredential(\n obj.multiFactorSession.pendingCredential\n );\n } else if (obj.multiFactorSession?.idToken) {\n return MultiFactorSessionImpl._fromIdtoken(\n obj.multiFactorSession.idToken\n );\n }\n }\n return null;\n }\n}\n","/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {\n Auth,\n MultiFactorResolver,\n UserCredential,\n MultiFactorError\n} from '../model/public_types';\n\nimport { _castAuth } from '../core/auth/auth_impl';\nimport { AuthErrorCode } from '../core/errors';\nimport { UserCredentialImpl } from '../core/user/user_credential_impl';\nimport { _assert, _fail } from '../core/util/assert';\nimport { UserCredentialInternal } from '../model/user';\nimport { MultiFactorAssertionImpl } from './mfa_assertion';\nimport { MultiFactorError as MultiFactorErrorInternal } from './mfa_error';\nimport { MultiFactorInfoImpl } from './mfa_info';\nimport { MultiFactorSessionImpl } from './mfa_session';\nimport { getModularInstance } from '@firebase/util';\nimport { OperationType } from '../model/enums';\n\nexport class MultiFactorResolverImpl implements MultiFactorResolver {\n private constructor(\n readonly session: MultiFactorSessionImpl,\n readonly hints: MultiFactorInfoImpl[],\n private readonly signInResolver: (\n assertion: MultiFactorAssertionImpl\n ) => Promise\n ) {}\n\n /** @internal */\n static _fromError(\n authExtern: Auth,\n error: MultiFactorErrorInternal\n ): MultiFactorResolverImpl {\n const auth = _castAuth(authExtern);\n const serverResponse = error.customData._serverResponse;\n const hints = (serverResponse.mfaInfo || []).map(enrollment =>\n MultiFactorInfoImpl._fromServerResponse(auth, enrollment)\n );\n\n _assert(\n serverResponse.mfaPendingCredential,\n auth,\n AuthErrorCode.INTERNAL_ERROR\n );\n const session = MultiFactorSessionImpl._fromMfaPendingCredential(\n serverResponse.mfaPendingCredential\n );\n\n return new MultiFactorResolverImpl(\n session,\n hints,\n async (\n assertion: MultiFactorAssertionImpl\n ): Promise => {\n const mfaResponse = await assertion._process(auth, session);\n // Clear out the unneeded fields from the old login response\n delete serverResponse.mfaInfo;\n delete serverResponse.mfaPendingCredential;\n\n // Use in the new token & refresh token in the old response\n const idTokenResponse = {\n ...serverResponse,\n idToken: mfaResponse.idToken,\n refreshToken: mfaResponse.refreshToken\n };\n\n // TODO: we should collapse this switch statement into UserCredentialImpl._forOperation and have it support the SIGN_IN case\n switch (error.operationType) {\n case OperationType.SIGN_IN:\n const userCredential =\n await UserCredentialImpl._fromIdTokenResponse(\n auth,\n error.operationType,\n idTokenResponse\n );\n await auth._updateCurrentUser(userCredential.user);\n return userCredential;\n case OperationType.REAUTHENTICATE:\n _assert(error.user, auth, AuthErrorCode.INTERNAL_ERROR);\n return UserCredentialImpl._forOperation(\n error.user,\n error.operationType,\n idTokenResponse\n );\n default:\n _fail(auth, AuthErrorCode.INTERNAL_ERROR);\n }\n }\n );\n }\n\n async resolveSignIn(\n assertionExtern: MultiFactorAssertionImpl\n ): Promise {\n const assertion = assertionExtern as MultiFactorAssertionImpl;\n return this.signInResolver(assertion);\n }\n}\n\n/**\n * Provides a {@link MultiFactorResolver} suitable for completion of a\n * multi-factor flow.\n *\n * @param auth - The {@link Auth} instance.\n * @param error - The {@link MultiFactorError} raised during a sign-in, or\n * reauthentication operation.\n *\n * @public\n */\nexport function getMultiFactorResolver(\n auth: Auth,\n error: MultiFactorError\n): MultiFactorResolver {\n const authModular = getModularInstance(auth);\n const errorInternal = error as MultiFactorErrorInternal;\n _assert(\n error.customData.operationType,\n authModular,\n AuthErrorCode.ARGUMENT_ERROR\n );\n _assert(\n errorInternal.customData._serverResponse?.mfaPendingCredential,\n authModular,\n AuthErrorCode.ARGUMENT_ERROR\n );\n\n return MultiFactorResolverImpl._fromError(authModular, errorInternal);\n}\n","/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {\n Endpoint,\n HttpMethod,\n _addTidIfNecessary,\n _performApiRequest\n} from '../index';\nimport { SignInWithPhoneNumberRequest } from '../authentication/sms';\nimport { FinalizeMfaResponse } from '../authentication/mfa';\nimport { AuthInternal } from '../../model/auth';\n\n/**\n * MFA Info as returned by the API.\n */\ninterface BaseMfaEnrollment {\n mfaEnrollmentId: string;\n enrolledAt: number;\n displayName?: string;\n}\n\n/**\n * An MFA provided by SMS verification.\n */\nexport interface PhoneMfaEnrollment extends BaseMfaEnrollment {\n phoneInfo: string;\n}\n\n/**\n * An MFA provided by TOTP (Time-based One Time Password).\n */\nexport interface TotpMfaEnrollment extends BaseMfaEnrollment {}\n\n/**\n * MfaEnrollment can be any subtype of BaseMfaEnrollment, currently only PhoneMfaEnrollment and TotpMfaEnrollment are supported.\n */\nexport type MfaEnrollment = PhoneMfaEnrollment | TotpMfaEnrollment;\n\nexport interface StartPhoneMfaEnrollmentRequest {\n idToken: string;\n phoneEnrollmentInfo: {\n phoneNumber: string;\n recaptchaToken: string;\n };\n tenantId?: string;\n}\n\nexport interface StartPhoneMfaEnrollmentResponse {\n phoneSessionInfo: {\n sessionInfo: string;\n };\n}\n\nexport function startEnrollPhoneMfa(\n auth: AuthInternal,\n request: StartPhoneMfaEnrollmentRequest\n): Promise {\n return _performApiRequest<\n StartPhoneMfaEnrollmentRequest,\n StartPhoneMfaEnrollmentResponse\n >(\n auth,\n HttpMethod.POST,\n Endpoint.START_MFA_ENROLLMENT,\n _addTidIfNecessary(auth, request)\n );\n}\n\nexport interface FinalizePhoneMfaEnrollmentRequest {\n idToken: string;\n phoneVerificationInfo: SignInWithPhoneNumberRequest;\n displayName?: string | null;\n tenantId?: string;\n}\n\nexport interface FinalizePhoneMfaEnrollmentResponse\n extends FinalizeMfaResponse {}\n\nexport function finalizeEnrollPhoneMfa(\n auth: AuthInternal,\n request: FinalizePhoneMfaEnrollmentRequest\n): Promise {\n return _performApiRequest<\n FinalizePhoneMfaEnrollmentRequest,\n FinalizePhoneMfaEnrollmentResponse\n >(\n auth,\n HttpMethod.POST,\n Endpoint.FINALIZE_MFA_ENROLLMENT,\n _addTidIfNecessary(auth, request)\n );\n}\nexport interface StartTotpMfaEnrollmentRequest {\n idToken: string;\n totpEnrollmentInfo: {};\n tenantId?: string;\n}\n\nexport interface StartTotpMfaEnrollmentResponse {\n totpSessionInfo: {\n sharedSecretKey: string;\n verificationCodeLength: number;\n hashingAlgorithm: string;\n periodSec: number;\n sessionInfo: string;\n finalizeEnrollmentTime: number;\n };\n}\n\nexport function startEnrollTotpMfa(\n auth: AuthInternal,\n request: StartTotpMfaEnrollmentRequest\n): Promise {\n return _performApiRequest<\n StartTotpMfaEnrollmentRequest,\n StartTotpMfaEnrollmentResponse\n >(\n auth,\n HttpMethod.POST,\n Endpoint.START_MFA_ENROLLMENT,\n _addTidIfNecessary(auth, request)\n );\n}\n\nexport interface TotpVerificationInfo {\n sessionInfo: string;\n verificationCode: string;\n}\nexport interface FinalizeTotpMfaEnrollmentRequest {\n idToken: string;\n totpVerificationInfo: TotpVerificationInfo;\n displayName?: string | null;\n tenantId?: string;\n}\n\nexport interface FinalizeTotpMfaEnrollmentResponse\n extends FinalizeMfaResponse {}\n\nexport function finalizeEnrollTotpMfa(\n auth: AuthInternal,\n request: FinalizeTotpMfaEnrollmentRequest\n): Promise {\n return _performApiRequest<\n FinalizeTotpMfaEnrollmentRequest,\n FinalizeTotpMfaEnrollmentResponse\n >(\n auth,\n HttpMethod.POST,\n Endpoint.FINALIZE_MFA_ENROLLMENT,\n _addTidIfNecessary(auth, request)\n );\n}\n\nexport interface WithdrawMfaRequest {\n idToken: string;\n mfaEnrollmentId: string;\n tenantId?: string;\n}\n\nexport interface WithdrawMfaResponse extends FinalizeMfaResponse {}\n\nexport function withdrawMfa(\n auth: AuthInternal,\n request: WithdrawMfaRequest\n): Promise {\n return _performApiRequest(\n auth,\n HttpMethod.POST,\n Endpoint.WITHDRAW_MFA,\n _addTidIfNecessary(auth, request)\n );\n}\n","/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport {\n MultiFactorAssertion,\n MultiFactorInfo,\n MultiFactorSession,\n MultiFactorUser,\n User\n} from '../model/public_types';\n\nimport { withdrawMfa } from '../api/account_management/mfa';\nimport { _logoutIfInvalidated } from '../core/user/invalidation';\nimport { UserInternal } from '../model/user';\nimport { MultiFactorAssertionImpl } from './mfa_assertion';\nimport { MultiFactorInfoImpl } from './mfa_info';\nimport { MultiFactorSessionImpl } from './mfa_session';\nimport { getModularInstance } from '@firebase/util';\n\nexport class MultiFactorUserImpl implements MultiFactorUser {\n enrolledFactors: MultiFactorInfo[] = [];\n\n private constructor(readonly user: UserInternal) {\n user._onReload(userInfo => {\n if (userInfo.mfaInfo) {\n this.enrolledFactors = userInfo.mfaInfo.map(enrollment =>\n MultiFactorInfoImpl._fromServerResponse(user.auth, enrollment)\n );\n }\n });\n }\n\n static _fromUser(user: UserInternal): MultiFactorUserImpl {\n return new MultiFactorUserImpl(user);\n }\n\n async getSession(): Promise {\n return MultiFactorSessionImpl._fromIdtoken(\n await this.user.getIdToken(),\n this.user\n );\n }\n\n async enroll(\n assertionExtern: MultiFactorAssertion,\n displayName?: string | null\n ): Promise {\n const assertion = assertionExtern as MultiFactorAssertionImpl;\n const session = (await this.getSession()) as MultiFactorSessionImpl;\n const finalizeMfaResponse = await _logoutIfInvalidated(\n this.user,\n assertion._process(this.user.auth, session, displayName)\n );\n // New tokens will be issued after enrollment of the new second factors.\n // They need to be updated on the user.\n await this.user._updateTokensIfNecessary(finalizeMfaResponse);\n // The user needs to be reloaded to get the new multi-factor information\n // from server. USER_RELOADED event will be triggered and `enrolledFactors`\n // will be updated.\n return this.user.reload();\n }\n\n async unenroll(infoOrUid: MultiFactorInfo | string): Promise {\n const mfaEnrollmentId =\n typeof infoOrUid === 'string' ? infoOrUid : infoOrUid.uid;\n const idToken = await this.user.getIdToken();\n try {\n const idTokenResponse = await _logoutIfInvalidated(\n this.user,\n withdrawMfa(this.user.auth, {\n idToken,\n mfaEnrollmentId\n })\n );\n // Remove the second factor from the user's list.\n this.enrolledFactors = this.enrolledFactors.filter(\n ({ uid }) => uid !== mfaEnrollmentId\n );\n // Depending on whether the backend decided to revoke the user's session,\n // the tokenResponse may be empty. If the tokens were not updated (and they\n // are now invalid), reloading the user will discover this and invalidate\n // the user's state accordingly.\n await this.user._updateTokensIfNecessary(idTokenResponse);\n await this.user.reload();\n } catch (e) {\n throw e;\n }\n }\n}\n\nconst multiFactorUserCache = new WeakMap();\n\n/**\n * The {@link MultiFactorUser} corresponding to the user.\n *\n * @remarks\n * This is used to access all multi-factor properties and operations related to the user.\n *\n * @param user - The user.\n *\n * @public\n */\nexport function multiFactor(user: User): MultiFactorUser {\n const userModular = getModularInstance(user);\n if (!multiFactorUserCache.has(userModular)) {\n multiFactorUserCache.set(\n userModular,\n MultiFactorUserImpl._fromUser(userModular as UserInternal)\n );\n }\n return multiFactorUserCache.get(userModular)!;\n}\n","/**\n * @license\n * Copyright 2019 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { Persistence } from '../../model/public_types';\n\nexport const enum PersistenceType {\n SESSION = 'SESSION',\n LOCAL = 'LOCAL',\n NONE = 'NONE'\n}\n\nexport type PersistedBlob = Record;\n\nexport interface Instantiator {\n (blob: PersistedBlob): T;\n}\n\nexport type PersistenceValue = PersistedBlob | string;\n\nexport const STORAGE_AVAILABLE_KEY = '__sak';\n\nexport interface StorageEventListener {\n (value: PersistenceValue | null): void;\n}\n\nexport interface PersistenceInternal extends Persistence {\n type: PersistenceType;\n _isAvailable(): Promise;\n _set(key: string, value: PersistenceValue): Promise;\n _get(key: string): Promise;\n _remove(key: string): Promise;\n _addListener(key: string, listener: StorageEventListener): void;\n _removeListener(key: string, listener: StorageEventListener): void;\n // Should this persistence allow migration up the chosen hierarchy?\n _shouldAllowMigration?: boolean;\n}\n","/**\n * @license\n * Copyright 2019 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {\n PersistenceValue,\n STORAGE_AVAILABLE_KEY,\n PersistenceType\n} from '../../core/persistence';\n\n// There are two different browser persistence types: local and session.\n// Both have the same implementation but use a different underlying storage\n// object.\n\nexport abstract class BrowserPersistenceClass {\n protected constructor(\n protected readonly storageRetriever: () => Storage,\n readonly type: PersistenceType\n ) {}\n\n _isAvailable(): Promise {\n try {\n if (!this.storage) {\n return Promise.resolve(false);\n }\n this.storage.setItem(STORAGE_AVAILABLE_KEY, '1');\n this.storage.removeItem(STORAGE_AVAILABLE_KEY);\n return Promise.resolve(true);\n } catch {\n return Promise.resolve(false);\n }\n }\n\n _set(key: string, value: PersistenceValue): Promise {\n this.storage.setItem(key, JSON.stringify(value));\n return Promise.resolve();\n }\n\n _get(key: string): Promise {\n const json = this.storage.getItem(key);\n return Promise.resolve(json ? JSON.parse(json) : null);\n }\n\n _remove(key: string): Promise {\n this.storage.removeItem(key);\n return Promise.resolve();\n }\n\n protected get storage(): Storage {\n return this.storageRetriever();\n }\n}\n","/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { Persistence } from '../../model/public_types';\n\nimport { getUA } from '@firebase/util';\nimport {\n _isSafari,\n _isIOS,\n _isIframe,\n _isMobileBrowser,\n _isIE10\n} from '../../core/util/browser';\nimport {\n PersistenceInternal as InternalPersistence,\n PersistenceType,\n PersistenceValue,\n StorageEventListener\n} from '../../core/persistence';\nimport { BrowserPersistenceClass } from './browser';\n\nfunction _iframeCannotSyncWebStorage(): boolean {\n const ua = getUA();\n return _isSafari(ua) || _isIOS(ua);\n}\n\n// The polling period in case events are not supported\nexport const _POLLING_INTERVAL_MS = 1000;\n\n// The IE 10 localStorage cross tab synchronization delay in milliseconds\nconst IE10_LOCAL_STORAGE_SYNC_DELAY = 10;\n\nclass BrowserLocalPersistence\n extends BrowserPersistenceClass\n implements InternalPersistence\n{\n static type: 'LOCAL' = 'LOCAL';\n\n constructor() {\n super(() => window.localStorage, PersistenceType.LOCAL);\n }\n\n private readonly boundEventHandler = (\n event: StorageEvent,\n poll?: boolean\n ): void => this.onStorageEvent(event, poll);\n private readonly listeners: Record> = {};\n private readonly localCache: Record = {};\n // setTimeout return value is platform specific\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n private pollTimer: any | null = null;\n\n // Safari or iOS browser and embedded in an iframe.\n private readonly safariLocalStorageNotSynced =\n _iframeCannotSyncWebStorage() && _isIframe();\n // Whether to use polling instead of depending on window events\n private readonly fallbackToPolling = _isMobileBrowser();\n readonly _shouldAllowMigration = true;\n\n private forAllChangedKeys(\n cb: (key: string, oldValue: string | null, newValue: string | null) => void\n ): void {\n // Check all keys with listeners on them.\n for (const key of Object.keys(this.listeners)) {\n // Get value from localStorage.\n const newValue = this.storage.getItem(key);\n const oldValue = this.localCache[key];\n // If local map value does not match, trigger listener with storage event.\n // Differentiate this simulated event from the real storage event.\n if (newValue !== oldValue) {\n cb(key, oldValue, newValue);\n }\n }\n }\n\n private onStorageEvent(event: StorageEvent, poll = false): void {\n // Key would be null in some situations, like when localStorage is cleared\n if (!event.key) {\n this.forAllChangedKeys(\n (key: string, _oldValue: string | null, newValue: string | null) => {\n this.notifyListeners(key, newValue);\n }\n );\n return;\n }\n\n const key = event.key;\n\n // Check the mechanism how this event was detected.\n // The first event will dictate the mechanism to be used.\n if (poll) {\n // Environment detects storage changes via polling.\n // Remove storage event listener to prevent possible event duplication.\n this.detachListener();\n } else {\n // Environment detects storage changes via storage event listener.\n // Remove polling listener to prevent possible event duplication.\n this.stopPolling();\n }\n\n // Safari embedded iframe. Storage event will trigger with the delta\n // changes but no changes will be applied to the iframe localStorage.\n if (this.safariLocalStorageNotSynced) {\n // Get current iframe page value.\n const storedValue = this.storage.getItem(key);\n // Value not synchronized, synchronize manually.\n if (event.newValue !== storedValue) {\n if (event.newValue !== null) {\n // Value changed from current value.\n this.storage.setItem(key, event.newValue);\n } else {\n // Current value deleted.\n this.storage.removeItem(key);\n }\n } else if (this.localCache[key] === event.newValue && !poll) {\n // Already detected and processed, do not trigger listeners again.\n return;\n }\n }\n\n const triggerListeners = (): void => {\n // Keep local map up to date in case storage event is triggered before\n // poll.\n const storedValue = this.storage.getItem(key);\n if (!poll && this.localCache[key] === storedValue) {\n // Real storage event which has already been detected, do nothing.\n // This seems to trigger in some IE browsers for some reason.\n return;\n }\n this.notifyListeners(key, storedValue);\n };\n\n const storedValue = this.storage.getItem(key);\n if (\n _isIE10() &&\n storedValue !== event.newValue &&\n event.newValue !== event.oldValue\n ) {\n // IE 10 has this weird bug where a storage event would trigger with the\n // correct key, oldValue and newValue but localStorage.getItem(key) does\n // not yield the updated value until a few milliseconds. This ensures\n // this recovers from that situation.\n setTimeout(triggerListeners, IE10_LOCAL_STORAGE_SYNC_DELAY);\n } else {\n triggerListeners();\n }\n }\n\n private notifyListeners(key: string, value: string | null): void {\n this.localCache[key] = value;\n const listeners = this.listeners[key];\n if (listeners) {\n for (const listener of Array.from(listeners)) {\n listener(value ? JSON.parse(value) : value);\n }\n }\n }\n\n private startPolling(): void {\n this.stopPolling();\n\n this.pollTimer = setInterval(() => {\n this.forAllChangedKeys(\n (key: string, oldValue: string | null, newValue: string | null) => {\n this.onStorageEvent(\n new StorageEvent('storage', {\n key,\n oldValue,\n newValue\n }),\n /* poll */ true\n );\n }\n );\n }, _POLLING_INTERVAL_MS);\n }\n\n private stopPolling(): void {\n if (this.pollTimer) {\n clearInterval(this.pollTimer);\n this.pollTimer = null;\n }\n }\n\n private attachListener(): void {\n window.addEventListener('storage', this.boundEventHandler);\n }\n\n private detachListener(): void {\n window.removeEventListener('storage', this.boundEventHandler);\n }\n\n _addListener(key: string, listener: StorageEventListener): void {\n if (Object.keys(this.listeners).length === 0) {\n // Whether browser can detect storage event when it had already been pushed to the background.\n // This may happen in some mobile browsers. A localStorage change in the foreground window\n // will not be detected in the background window via the storage event.\n // This was detected in iOS 7.x mobile browsers\n if (this.fallbackToPolling) {\n this.startPolling();\n } else {\n this.attachListener();\n }\n }\n if (!this.listeners[key]) {\n this.listeners[key] = new Set();\n // Populate the cache to avoid spuriously triggering on first poll.\n this.localCache[key] = this.storage.getItem(key);\n }\n this.listeners[key].add(listener);\n }\n\n _removeListener(key: string, listener: StorageEventListener): void {\n if (this.listeners[key]) {\n this.listeners[key].delete(listener);\n\n if (this.listeners[key].size === 0) {\n delete this.listeners[key];\n }\n }\n\n if (Object.keys(this.listeners).length === 0) {\n this.detachListener();\n this.stopPolling();\n }\n }\n\n // Update local cache on base operations:\n\n async _set(key: string, value: PersistenceValue): Promise {\n await super._set(key, value);\n this.localCache[key] = JSON.stringify(value);\n }\n\n async _get(key: string): Promise {\n const value = await super._get(key);\n this.localCache[key] = JSON.stringify(value);\n return value;\n }\n\n async _remove(key: string): Promise {\n await super._remove(key);\n delete this.localCache[key];\n }\n}\n\n/**\n * An implementation of {@link Persistence} of type `LOCAL` using `localStorage`\n * for the underlying storage.\n *\n * @public\n */\nexport const browserLocalPersistence: Persistence = BrowserLocalPersistence;\n","/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { Persistence } from '../../model/public_types';\n\nimport {\n PersistenceInternal as InternalPersistence,\n PersistenceType,\n StorageEventListener\n} from '../../core/persistence';\nimport { BrowserPersistenceClass } from './browser';\n\nclass BrowserSessionPersistence\n extends BrowserPersistenceClass\n implements InternalPersistence\n{\n static type: 'SESSION' = 'SESSION';\n\n constructor() {\n super(() => window.sessionStorage, PersistenceType.SESSION);\n }\n\n _addListener(_key: string, _listener: StorageEventListener): void {\n // Listeners are not supported for session storage since it cannot be shared across windows\n return;\n }\n\n _removeListener(_key: string, _listener: StorageEventListener): void {\n // Listeners are not supported for session storage since it cannot be shared across windows\n return;\n }\n}\n\n/**\n * An implementation of {@link Persistence} of `SESSION` using `sessionStorage`\n * for the underlying storage.\n *\n * @public\n */\nexport const browserSessionPersistence: Persistence = BrowserSessionPersistence;\n","/**\n * @license\n * Copyright 2019 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/** TODO: remove this once tslib has a polyfill for Promise.allSettled */\ninterface PromiseFulfilledResult {\n fulfilled: true;\n value: T;\n}\n\ninterface PromiseRejectedResult {\n fulfilled: false;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n reason: any;\n}\n\nexport type PromiseSettledResult =\n | PromiseFulfilledResult\n | PromiseRejectedResult;\n\n/**\n * Shim for Promise.allSettled, note the slightly different format of `fulfilled` vs `status`.\n *\n * @param promises - Array of promises to wait on.\n */\nexport function _allSettled(\n promises: Array>\n): Promise>> {\n return Promise.all(\n promises.map(async promise => {\n try {\n const value = await promise;\n return {\n fulfilled: true,\n value\n } as PromiseFulfilledResult;\n } catch (reason) {\n return {\n fulfilled: false,\n reason\n } as PromiseRejectedResult;\n }\n })\n );\n}\n","/**\n * @license\n * Copyright 2019 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {\n ReceiverHandler,\n _EventType,\n _ReceiverResponse,\n SenderMessageEvent,\n _Status,\n _SenderRequest\n} from './index';\nimport { _allSettled } from './promise';\n\n/**\n * Interface class for receiving messages.\n *\n */\nexport class Receiver {\n private static readonly receivers: Receiver[] = [];\n private readonly boundEventHandler: EventListener;\n\n private readonly handlersMap: {\n // Typescript doesn't have existential types :(\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n [eventType: string]: Set>;\n } = {};\n\n constructor(private readonly eventTarget: EventTarget) {\n this.boundEventHandler = this.handleEvent.bind(this);\n }\n\n /**\n * Obtain an instance of a Receiver for a given event target, if none exists it will be created.\n *\n * @param eventTarget - An event target (such as window or self) through which the underlying\n * messages will be received.\n */\n static _getInstance(eventTarget: EventTarget): Receiver {\n // The results are stored in an array since objects can't be keys for other\n // objects. In addition, setting a unique property on an event target as a\n // hash map key may not be allowed due to CORS restrictions.\n const existingInstance = this.receivers.find(receiver =>\n receiver.isListeningto(eventTarget)\n );\n if (existingInstance) {\n return existingInstance;\n }\n const newInstance = new Receiver(eventTarget);\n this.receivers.push(newInstance);\n return newInstance;\n }\n\n private isListeningto(eventTarget: EventTarget): boolean {\n return this.eventTarget === eventTarget;\n }\n\n /**\n * Fans out a MessageEvent to the appropriate listeners.\n *\n * @remarks\n * Sends an {@link Status.ACK} upon receipt and a {@link Status.DONE} once all handlers have\n * finished processing.\n *\n * @param event - The MessageEvent.\n *\n */\n private async handleEvent<\n T extends _ReceiverResponse,\n S extends _SenderRequest\n >(event: Event): Promise {\n const messageEvent = event as MessageEvent>;\n const { eventId, eventType, data } = messageEvent.data;\n\n const handlers: Set> | undefined =\n this.handlersMap[eventType];\n if (!handlers?.size) {\n return;\n }\n\n messageEvent.ports[0].postMessage({\n status: _Status.ACK,\n eventId,\n eventType\n });\n\n const promises = Array.from(handlers).map(async handler =>\n handler(messageEvent.origin, data)\n );\n const response = await _allSettled(promises);\n messageEvent.ports[0].postMessage({\n status: _Status.DONE,\n eventId,\n eventType,\n response\n });\n }\n\n /**\n * Subscribe an event handler for a particular event.\n *\n * @param eventType - Event name to subscribe to.\n * @param eventHandler - The event handler which should receive the events.\n *\n */\n _subscribe(\n eventType: _EventType,\n eventHandler: ReceiverHandler\n ): void {\n if (Object.keys(this.handlersMap).length === 0) {\n this.eventTarget.addEventListener('message', this.boundEventHandler);\n }\n\n if (!this.handlersMap[eventType]) {\n this.handlersMap[eventType] = new Set();\n }\n\n this.handlersMap[eventType].add(eventHandler);\n }\n\n /**\n * Unsubscribe an event handler from a particular event.\n *\n * @param eventType - Event name to unsubscribe from.\n * @param eventHandler - Optinoal event handler, if none provided, unsubscribe all handlers on this event.\n *\n */\n _unsubscribe(\n eventType: _EventType,\n eventHandler?: ReceiverHandler\n ): void {\n if (this.handlersMap[eventType] && eventHandler) {\n this.handlersMap[eventType].delete(eventHandler);\n }\n if (!eventHandler || this.handlersMap[eventType].size === 0) {\n delete this.handlersMap[eventType];\n }\n\n if (Object.keys(this.handlersMap).length === 0) {\n this.eventTarget.removeEventListener('message', this.boundEventHandler);\n }\n }\n}\n","/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport function _generateEventId(prefix = '', digits = 10): string {\n let random = '';\n for (let i = 0; i < digits; i++) {\n random += Math.floor(Math.random() * 10);\n }\n return prefix + random;\n}\n","/**\n * @license\n * Copyright 2019 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { _generateEventId } from '../../core/util/event_id';\nimport {\n _SenderRequest,\n _EventType,\n ReceiverMessageEvent,\n _MessageError,\n SenderMessageEvent,\n _Status,\n _ReceiverMessageResponse,\n _ReceiverResponse,\n _TimeoutDuration\n} from './index';\n\ninterface MessageHandler {\n messageChannel: MessageChannel;\n onMessage: EventListenerOrEventListenerObject;\n}\n\n/**\n * Interface for sending messages and waiting for a completion response.\n *\n */\nexport class Sender {\n private readonly handlers = new Set();\n\n constructor(private readonly target: ServiceWorker) {}\n\n /**\n * Unsubscribe the handler and remove it from our tracking Set.\n *\n * @param handler - The handler to unsubscribe.\n */\n private removeMessageHandler(handler: MessageHandler): void {\n if (handler.messageChannel) {\n handler.messageChannel.port1.removeEventListener(\n 'message',\n handler.onMessage\n );\n handler.messageChannel.port1.close();\n }\n this.handlers.delete(handler);\n }\n\n /**\n * Send a message to the Receiver located at {@link target}.\n *\n * @remarks\n * We'll first wait a bit for an ACK , if we get one we will wait significantly longer until the\n * receiver has had a chance to fully process the event.\n *\n * @param eventType - Type of event to send.\n * @param data - The payload of the event.\n * @param timeout - Timeout for waiting on an ACK from the receiver.\n *\n * @returns An array of settled promises from all the handlers that were listening on the receiver.\n */\n async _send(\n eventType: _EventType,\n data: S,\n timeout = _TimeoutDuration.ACK\n ): Promise<_ReceiverMessageResponse> {\n const messageChannel =\n typeof MessageChannel !== 'undefined' ? new MessageChannel() : null;\n if (!messageChannel) {\n throw new Error(_MessageError.CONNECTION_UNAVAILABLE);\n }\n // Node timers and browser timers return fundamentally different types.\n // We don't actually care what the value is but TS won't accept unknown and\n // we can't cast properly in both environments.\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n let completionTimer: any;\n let handler: MessageHandler;\n return new Promise<_ReceiverMessageResponse>((resolve, reject) => {\n const eventId = _generateEventId('', 20);\n messageChannel.port1.start();\n const ackTimer = setTimeout(() => {\n reject(new Error(_MessageError.UNSUPPORTED_EVENT));\n }, timeout);\n handler = {\n messageChannel,\n onMessage(event: Event): void {\n const messageEvent = event as MessageEvent>;\n if (messageEvent.data.eventId !== eventId) {\n return;\n }\n switch (messageEvent.data.status) {\n case _Status.ACK:\n // The receiver should ACK first.\n clearTimeout(ackTimer);\n completionTimer = setTimeout(() => {\n reject(new Error(_MessageError.TIMEOUT));\n }, _TimeoutDuration.COMPLETION);\n break;\n case _Status.DONE:\n // Once the receiver's handlers are finished we will get the results.\n clearTimeout(completionTimer);\n resolve(messageEvent.data.response);\n break;\n default:\n clearTimeout(ackTimer);\n clearTimeout(completionTimer);\n reject(new Error(_MessageError.INVALID_RESPONSE));\n break;\n }\n }\n };\n this.handlers.add(handler);\n messageChannel.port1.addEventListener('message', handler.onMessage);\n this.target.postMessage(\n {\n eventType,\n eventId,\n data\n } as SenderMessageEvent,\n [messageChannel.port2]\n );\n }).finally(() => {\n if (handler) {\n this.removeMessageHandler(handler);\n }\n });\n }\n}\n","/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { Recaptcha, GreCAPTCHATopLevel } from './recaptcha/recaptcha';\n\n/**\n * A specialized window type that melds the normal window type plus the\n * various bits we need. The three different blocks that are &'d together\n * cant be defined in the same block together.\n */\nexport type AuthWindow = {\n // Standard window types\n [T in keyof Window]: Window[T];\n} & {\n // Any known / named properties we want to add\n grecaptcha?: Recaptcha | GreCAPTCHATopLevel;\n /* eslint-disable-next-line @typescript-eslint/no-explicit-any */\n ___jsl?: Record;\n gapi?: typeof gapi;\n} & {\n // A final catch-all for callbacks (which will have random names) that\n // we will stick on the window.\n [callback: string]: (...args: unknown[]) => void;\n};\n\n/**\n * Lazy accessor for window, since the compat layer won't tree shake this out,\n * we need to make sure not to mess with window unless we have to\n */\nexport function _window(): AuthWindow {\n return window as unknown as AuthWindow;\n}\n\nexport function _setWindowLocation(url: string): void {\n _window().location.href = url;\n}\n","/**\n * @license\n * Copyright 2020 Google LLC.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { _window } from '../auth_window';\n\nexport function _isWorker(): boolean {\n return (\n typeof _window()['WorkerGlobalScope'] !== 'undefined' &&\n typeof _window()['importScripts'] === 'function'\n );\n}\n\nexport async function _getActiveServiceWorker(): Promise {\n if (!navigator?.serviceWorker) {\n return null;\n }\n try {\n const registration = await navigator.serviceWorker.ready;\n return registration.active;\n } catch {\n return null;\n }\n}\n\nexport function _getServiceWorkerController(): ServiceWorker | null {\n return navigator?.serviceWorker?.controller || null;\n}\n\nexport function _getWorkerGlobalScope(): ServiceWorker | null {\n return _isWorker() ? (self as unknown as ServiceWorker) : null;\n}\n","/**\n * @license\n * Copyright 2019 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { Persistence } from '../../model/public_types';\nimport {\n PersistedBlob,\n PersistenceInternal as InternalPersistence,\n PersistenceType,\n PersistenceValue,\n StorageEventListener,\n STORAGE_AVAILABLE_KEY\n} from '../../core/persistence/';\nimport {\n _EventType,\n _PingResponse,\n KeyChangedResponse,\n KeyChangedRequest,\n PingRequest,\n _TimeoutDuration\n} from '../messagechannel/index';\nimport { Receiver } from '../messagechannel/receiver';\nimport { Sender } from '../messagechannel/sender';\nimport {\n _isWorker,\n _getActiveServiceWorker,\n _getServiceWorkerController,\n _getWorkerGlobalScope\n} from '../util/worker';\n\nexport const DB_NAME = 'firebaseLocalStorageDb';\nconst DB_VERSION = 1;\nconst DB_OBJECTSTORE_NAME = 'firebaseLocalStorage';\nconst DB_DATA_KEYPATH = 'fbase_key';\n\ninterface DBObject {\n [DB_DATA_KEYPATH]: string;\n value: PersistedBlob;\n}\n\n/**\n * Promise wrapper for IDBRequest\n *\n * Unfortunately we can't cleanly extend Promise since promises are not callable in ES6\n *\n */\nclass DBPromise {\n constructor(private readonly request: IDBRequest) {}\n\n toPromise(): Promise {\n return new Promise((resolve, reject) => {\n this.request.addEventListener('success', () => {\n resolve(this.request.result);\n });\n this.request.addEventListener('error', () => {\n reject(this.request.error);\n });\n });\n }\n}\n\nfunction getObjectStore(db: IDBDatabase, isReadWrite: boolean): IDBObjectStore {\n return db\n .transaction([DB_OBJECTSTORE_NAME], isReadWrite ? 'readwrite' : 'readonly')\n .objectStore(DB_OBJECTSTORE_NAME);\n}\n\nexport async function _clearDatabase(db: IDBDatabase): Promise {\n const objectStore = getObjectStore(db, true);\n return new DBPromise(objectStore.clear()).toPromise();\n}\n\nexport function _deleteDatabase(): Promise {\n const request = indexedDB.deleteDatabase(DB_NAME);\n return new DBPromise(request).toPromise();\n}\n\nexport function _openDatabase(): Promise {\n const request = indexedDB.open(DB_NAME, DB_VERSION);\n return new Promise((resolve, reject) => {\n request.addEventListener('error', () => {\n reject(request.error);\n });\n\n request.addEventListener('upgradeneeded', () => {\n const db = request.result;\n\n try {\n db.createObjectStore(DB_OBJECTSTORE_NAME, { keyPath: DB_DATA_KEYPATH });\n } catch (e) {\n reject(e);\n }\n });\n\n request.addEventListener('success', async () => {\n const db: IDBDatabase = request.result;\n // Strange bug that occurs in Firefox when multiple tabs are opened at the\n // same time. The only way to recover seems to be deleting the database\n // and re-initializing it.\n // https://github.com/firebase/firebase-js-sdk/issues/634\n\n if (!db.objectStoreNames.contains(DB_OBJECTSTORE_NAME)) {\n // Need to close the database or else you get a `blocked` event\n db.close();\n await _deleteDatabase();\n resolve(await _openDatabase());\n } else {\n resolve(db);\n }\n });\n });\n}\n\nexport async function _putObject(\n db: IDBDatabase,\n key: string,\n value: PersistenceValue | string\n): Promise {\n const request = getObjectStore(db, true).put({\n [DB_DATA_KEYPATH]: key,\n value\n });\n return new DBPromise(request).toPromise();\n}\n\nasync function getObject(\n db: IDBDatabase,\n key: string\n): Promise {\n const request = getObjectStore(db, false).get(key);\n const data = await new DBPromise(request).toPromise();\n return data === undefined ? null : data.value;\n}\n\nexport function _deleteObject(db: IDBDatabase, key: string): Promise {\n const request = getObjectStore(db, true).delete(key);\n return new DBPromise(request).toPromise();\n}\n\nexport const _POLLING_INTERVAL_MS = 800;\nexport const _TRANSACTION_RETRY_COUNT = 3;\n\nclass IndexedDBLocalPersistence implements InternalPersistence {\n static type: 'LOCAL' = 'LOCAL';\n\n type = PersistenceType.LOCAL;\n db?: IDBDatabase;\n readonly _shouldAllowMigration = true;\n\n private readonly listeners: Record> = {};\n private readonly localCache: Record = {};\n // setTimeout return value is platform specific\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n private pollTimer: any | null = null;\n private pendingWrites = 0;\n\n private receiver: Receiver | null = null;\n private sender: Sender | null = null;\n private serviceWorkerReceiverAvailable = false;\n private activeServiceWorker: ServiceWorker | null = null;\n // Visible for testing only\n readonly _workerInitializationPromise: Promise;\n\n constructor() {\n // Fire & forget the service worker registration as it may never resolve\n this._workerInitializationPromise =\n this.initializeServiceWorkerMessaging().then(\n () => {},\n () => {}\n );\n }\n\n async _openDb(): Promise {\n if (this.db) {\n return this.db;\n }\n this.db = await _openDatabase();\n return this.db;\n }\n\n async _withRetries(op: (db: IDBDatabase) => Promise): Promise {\n let numAttempts = 0;\n\n while (true) {\n try {\n const db = await this._openDb();\n return await op(db);\n } catch (e) {\n if (numAttempts++ > _TRANSACTION_RETRY_COUNT) {\n throw e;\n }\n if (this.db) {\n this.db.close();\n this.db = undefined;\n }\n // TODO: consider adding exponential backoff\n }\n }\n }\n\n /**\n * IndexedDB events do not propagate from the main window to the worker context. We rely on a\n * postMessage interface to send these events to the worker ourselves.\n */\n private async initializeServiceWorkerMessaging(): Promise {\n return _isWorker() ? this.initializeReceiver() : this.initializeSender();\n }\n\n /**\n * As the worker we should listen to events from the main window.\n */\n private async initializeReceiver(): Promise {\n this.receiver = Receiver._getInstance(_getWorkerGlobalScope()!);\n // Refresh from persistence if we receive a KeyChanged message.\n this.receiver._subscribe(\n _EventType.KEY_CHANGED,\n async (_origin: string, data: KeyChangedRequest) => {\n const keys = await this._poll();\n return {\n keyProcessed: keys.includes(data.key)\n };\n }\n );\n // Let the sender know that we are listening so they give us more timeout.\n this.receiver._subscribe(\n _EventType.PING,\n async (_origin: string, _data: PingRequest) => {\n return [_EventType.KEY_CHANGED];\n }\n );\n }\n\n /**\n * As the main window, we should let the worker know when keys change (set and remove).\n *\n * @remarks\n * {@link https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerContainer/ready | ServiceWorkerContainer.ready}\n * may not resolve.\n */\n private async initializeSender(): Promise {\n // Check to see if there's an active service worker.\n this.activeServiceWorker = await _getActiveServiceWorker();\n if (!this.activeServiceWorker) {\n return;\n }\n this.sender = new Sender(this.activeServiceWorker);\n // Ping the service worker to check what events they can handle.\n const results = await this.sender._send<_PingResponse, PingRequest>(\n _EventType.PING,\n {},\n _TimeoutDuration.LONG_ACK\n );\n if (!results) {\n return;\n }\n if (\n results[0]?.fulfilled &&\n results[0]?.value.includes(_EventType.KEY_CHANGED)\n ) {\n this.serviceWorkerReceiverAvailable = true;\n }\n }\n\n /**\n * Let the worker know about a changed key, the exact key doesn't technically matter since the\n * worker will just trigger a full sync anyway.\n *\n * @remarks\n * For now, we only support one service worker per page.\n *\n * @param key - Storage key which changed.\n */\n private async notifyServiceWorker(key: string): Promise {\n if (\n !this.sender ||\n !this.activeServiceWorker ||\n _getServiceWorkerController() !== this.activeServiceWorker\n ) {\n return;\n }\n try {\n await this.sender._send(\n _EventType.KEY_CHANGED,\n { key },\n // Use long timeout if receiver has previously responded to a ping from us.\n this.serviceWorkerReceiverAvailable\n ? _TimeoutDuration.LONG_ACK\n : _TimeoutDuration.ACK\n );\n } catch {\n // This is a best effort approach. Ignore errors.\n }\n }\n\n async _isAvailable(): Promise {\n try {\n if (!indexedDB) {\n return false;\n }\n const db = await _openDatabase();\n await _putObject(db, STORAGE_AVAILABLE_KEY, '1');\n await _deleteObject(db, STORAGE_AVAILABLE_KEY);\n return true;\n } catch {}\n return false;\n }\n\n private async _withPendingWrite(write: () => Promise): Promise {\n this.pendingWrites++;\n try {\n await write();\n } finally {\n this.pendingWrites--;\n }\n }\n\n async _set(key: string, value: PersistenceValue): Promise {\n return this._withPendingWrite(async () => {\n await this._withRetries((db: IDBDatabase) => _putObject(db, key, value));\n this.localCache[key] = value;\n return this.notifyServiceWorker(key);\n });\n }\n\n async _get(key: string): Promise {\n const obj = (await this._withRetries((db: IDBDatabase) =>\n getObject(db, key)\n )) as T;\n this.localCache[key] = obj;\n return obj;\n }\n\n async _remove(key: string): Promise {\n return this._withPendingWrite(async () => {\n await this._withRetries((db: IDBDatabase) => _deleteObject(db, key));\n delete this.localCache[key];\n return this.notifyServiceWorker(key);\n });\n }\n\n private async _poll(): Promise {\n // TODO: check if we need to fallback if getAll is not supported\n const result = await this._withRetries((db: IDBDatabase) => {\n const getAllRequest = getObjectStore(db, false).getAll();\n return new DBPromise(getAllRequest).toPromise();\n });\n\n if (!result) {\n return [];\n }\n\n // If we have pending writes in progress abort, we'll get picked up on the next poll\n if (this.pendingWrites !== 0) {\n return [];\n }\n\n const keys = [];\n const keysInResult = new Set();\n if (result.length !== 0) {\n for (const { fbase_key: key, value } of result) {\n keysInResult.add(key);\n if (JSON.stringify(this.localCache[key]) !== JSON.stringify(value)) {\n this.notifyListeners(key, value as PersistenceValue);\n keys.push(key);\n }\n }\n }\n\n for (const localKey of Object.keys(this.localCache)) {\n if (this.localCache[localKey] && !keysInResult.has(localKey)) {\n // Deleted\n this.notifyListeners(localKey, null);\n keys.push(localKey);\n }\n }\n return keys;\n }\n\n private notifyListeners(\n key: string,\n newValue: PersistenceValue | null\n ): void {\n this.localCache[key] = newValue;\n const listeners = this.listeners[key];\n if (listeners) {\n for (const listener of Array.from(listeners)) {\n listener(newValue);\n }\n }\n }\n\n private startPolling(): void {\n this.stopPolling();\n\n this.pollTimer = setInterval(\n async () => this._poll(),\n _POLLING_INTERVAL_MS\n );\n }\n\n private stopPolling(): void {\n if (this.pollTimer) {\n clearInterval(this.pollTimer);\n this.pollTimer = null;\n }\n }\n\n _addListener(key: string, listener: StorageEventListener): void {\n if (Object.keys(this.listeners).length === 0) {\n this.startPolling();\n }\n if (!this.listeners[key]) {\n this.listeners[key] = new Set();\n // Populate the cache to avoid spuriously triggering on first poll.\n void this._get(key); // This can happen in the background async and we can return immediately.\n }\n this.listeners[key].add(listener);\n }\n\n _removeListener(key: string, listener: StorageEventListener): void {\n if (this.listeners[key]) {\n this.listeners[key].delete(listener);\n\n if (this.listeners[key].size === 0) {\n delete this.listeners[key];\n }\n }\n\n if (Object.keys(this.listeners).length === 0) {\n this.stopPolling();\n }\n }\n}\n\n/**\n * An implementation of {@link Persistence} of type `LOCAL` using `indexedDB`\n * for the underlying storage.\n *\n * @public\n */\nexport const indexedDBLocalPersistence: Persistence = IndexedDBLocalPersistence;\n","/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {\n _performApiRequest,\n Endpoint,\n HttpMethod,\n _addTidIfNecessary\n} from '../index';\nimport { Auth } from '../../model/public_types';\nimport { IdTokenResponse } from '../../model/id_token';\nimport { MfaEnrollment } from '../account_management/mfa';\nimport { SignInWithIdpResponse } from './idp';\nimport {\n SignInWithPhoneNumberRequest,\n SignInWithPhoneNumberResponse\n} from './sms';\n\nexport interface FinalizeMfaResponse {\n idToken: string;\n refreshToken: string;\n}\n\n/**\n * @internal\n */\nexport interface IdTokenMfaResponse extends IdTokenResponse {\n mfaPendingCredential?: string;\n mfaInfo?: MfaEnrollment[];\n}\n\nexport interface StartPhoneMfaSignInRequest {\n mfaPendingCredential: string;\n mfaEnrollmentId: string;\n phoneSignInInfo: {\n recaptchaToken: string;\n };\n tenantId?: string;\n}\n\nexport interface StartPhoneMfaSignInResponse {\n phoneResponseInfo: {\n sessionInfo: string;\n };\n}\n\nexport function startSignInPhoneMfa(\n auth: Auth,\n request: StartPhoneMfaSignInRequest\n): Promise {\n return _performApiRequest<\n StartPhoneMfaSignInRequest,\n StartPhoneMfaSignInResponse\n >(\n auth,\n HttpMethod.POST,\n Endpoint.START_MFA_SIGN_IN,\n _addTidIfNecessary(auth, request)\n );\n}\n\nexport interface FinalizePhoneMfaSignInRequest {\n mfaPendingCredential: string;\n phoneVerificationInfo: SignInWithPhoneNumberRequest;\n tenantId?: string;\n}\n\n// TOTP MFA Sign in only has a finalize phase. Phone MFA has a start phase to initiate sending an\n// SMS and a finalize phase to complete sign in. With TOTP, the user already has the OTP in the\n// TOTP/Authenticator app.\nexport interface FinalizeTotpMfaSignInRequest {\n mfaPendingCredential: string;\n totpVerificationInfo: { verificationCode: string };\n tenantId?: string;\n mfaEnrollmentId: string;\n}\n\nexport interface FinalizePhoneMfaSignInResponse extends FinalizeMfaResponse {}\n\nexport interface FinalizeTotpMfaSignInResponse extends FinalizeMfaResponse {}\n\nexport function finalizeSignInPhoneMfa(\n auth: Auth,\n request: FinalizePhoneMfaSignInRequest\n): Promise {\n return _performApiRequest<\n FinalizePhoneMfaSignInRequest,\n FinalizePhoneMfaSignInResponse\n >(\n auth,\n HttpMethod.POST,\n Endpoint.FINALIZE_MFA_SIGN_IN,\n _addTidIfNecessary(auth, request)\n );\n}\n\nexport function finalizeSignInTotpMfa(\n auth: Auth,\n request: FinalizeTotpMfaSignInRequest\n): Promise {\n return _performApiRequest<\n FinalizeTotpMfaSignInRequest,\n FinalizeTotpMfaSignInResponse\n >(\n auth,\n HttpMethod.POST,\n Endpoint.FINALIZE_MFA_SIGN_IN,\n _addTidIfNecessary(auth, request)\n );\n}\n\n/**\n * @internal\n */\nexport type PhoneOrOauthTokenResponse =\n | SignInWithPhoneNumberResponse\n | SignInWithIdpResponse\n | IdTokenResponse;\n","/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { AuthErrorCode } from '../../core/errors';\nimport { _assert } from '../../core/util/assert';\nimport { AuthInternal } from '../../model/auth';\nimport { RecaptchaParameters } from '../../model/public_types';\nimport {\n Recaptcha,\n GreCAPTCHATopLevel,\n GreCAPTCHARenderOption,\n GreCAPTCHA\n} from './recaptcha';\n\nexport const _SOLVE_TIME_MS = 500;\nexport const _EXPIRATION_TIME_MS = 60_000;\nexport const _WIDGET_ID_START = 1_000_000_000_000;\n\nexport interface Widget {\n getResponse: () => string | null;\n delete: () => void;\n execute: () => void;\n}\n\nexport class MockReCaptcha implements Recaptcha {\n private counter = _WIDGET_ID_START;\n _widgets = new Map();\n\n constructor(private readonly auth: AuthInternal) {}\n\n render(\n container: string | HTMLElement,\n parameters?: RecaptchaParameters\n ): number {\n const id = this.counter;\n this._widgets.set(\n id,\n new MockWidget(container, this.auth.name, parameters || {})\n );\n this.counter++;\n return id;\n }\n\n reset(optWidgetId?: number): void {\n const id = optWidgetId || _WIDGET_ID_START;\n void this._widgets.get(id)?.delete();\n this._widgets.delete(id);\n }\n\n getResponse(optWidgetId?: number): string {\n const id = optWidgetId || _WIDGET_ID_START;\n return this._widgets.get(id)?.getResponse() || '';\n }\n\n async execute(optWidgetId?: number | string): Promise {\n const id: number = (optWidgetId as number) || _WIDGET_ID_START;\n void this._widgets.get(id)?.execute();\n return '';\n }\n}\n\nexport class MockGreCAPTCHATopLevel implements GreCAPTCHATopLevel {\n enterprise: GreCAPTCHA = new MockGreCAPTCHA();\n ready(callback: () => void): void {\n callback();\n }\n\n execute(\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n _siteKey: string,\n _options: { action: string }\n ): Promise {\n return Promise.resolve('token');\n }\n render(\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n _container: string | HTMLElement,\n _parameters: GreCAPTCHARenderOption\n ): string {\n return '';\n }\n}\n\nexport class MockGreCAPTCHA implements GreCAPTCHA {\n ready(callback: () => void): void {\n callback();\n }\n\n execute(\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n _siteKey: string,\n _options: { action: string }\n ): Promise {\n return Promise.resolve('token');\n }\n render(\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n _container: string | HTMLElement,\n _parameters: GreCAPTCHARenderOption\n ): string {\n return '';\n }\n}\n\nexport class MockWidget {\n private readonly container: HTMLElement;\n private readonly isVisible: boolean;\n private timerId: number | null = null;\n private deleted = false;\n private responseToken: string | null = null;\n private readonly clickHandler = (): void => {\n this.execute();\n };\n\n constructor(\n containerOrId: string | HTMLElement,\n appName: string,\n private readonly params: RecaptchaParameters\n ) {\n const container =\n typeof containerOrId === 'string'\n ? document.getElementById(containerOrId)\n : containerOrId;\n _assert(container, AuthErrorCode.ARGUMENT_ERROR, { appName });\n\n this.container = container;\n this.isVisible = this.params.size !== 'invisible';\n if (this.isVisible) {\n this.execute();\n } else {\n this.container.addEventListener('click', this.clickHandler);\n }\n }\n\n getResponse(): string | null {\n this.checkIfDeleted();\n return this.responseToken;\n }\n\n delete(): void {\n this.checkIfDeleted();\n this.deleted = true;\n if (this.timerId) {\n clearTimeout(this.timerId);\n this.timerId = null;\n }\n this.container.removeEventListener('click', this.clickHandler);\n }\n\n execute(): void {\n this.checkIfDeleted();\n if (this.timerId) {\n return;\n }\n\n this.timerId = window.setTimeout(() => {\n this.responseToken = generateRandomAlphaNumericString(50);\n const { callback, 'expired-callback': expiredCallback } = this.params;\n if (callback) {\n try {\n callback(this.responseToken);\n } catch (e) {}\n }\n\n this.timerId = window.setTimeout(() => {\n this.timerId = null;\n this.responseToken = null;\n if (expiredCallback) {\n try {\n expiredCallback();\n } catch (e) {}\n }\n\n if (this.isVisible) {\n this.execute();\n }\n }, _EXPIRATION_TIME_MS);\n }, _SOLVE_TIME_MS);\n }\n\n private checkIfDeleted(): void {\n if (this.deleted) {\n throw new Error('reCAPTCHA mock was already deleted!');\n }\n }\n}\n\nfunction generateRandomAlphaNumericString(len: number): string {\n const chars = [];\n const allowedChars =\n '1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';\n for (let i = 0; i < len; i++) {\n chars.push(\n allowedChars.charAt(Math.floor(Math.random() * allowedChars.length))\n );\n }\n return chars.join('');\n}\n","/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { querystring } from '@firebase/util';\n\nimport { AuthErrorCode } from '../../core/errors';\nimport { _assert, _createError } from '../../core/util/assert';\nimport { Delay } from '../../core/util/delay';\nimport { AuthInternal } from '../../model/auth';\nimport { _window } from '../auth_window';\nimport * as jsHelpers from '../load_js';\nimport { Recaptcha, isV2 } from './recaptcha';\nimport { MockReCaptcha } from './recaptcha_mock';\n\n// ReCaptcha will load using the same callback, so the callback function needs\n// to be kept around\nexport const _JSLOAD_CALLBACK = jsHelpers._generateCallbackName('rcb');\nconst NETWORK_TIMEOUT_DELAY = new Delay(30000, 60000);\nconst RECAPTCHA_BASE = 'https://www.google.com/recaptcha/api.js?';\n\n/**\n * We need to mark this interface as internal explicitly to exclude it in the public typings, because\n * it references AuthInternal which has a circular dependency with UserInternal.\n *\n * @internal\n */\nexport interface ReCaptchaLoader {\n load(auth: AuthInternal, hl?: string): Promise;\n clearedOneInstance(): void;\n}\n\n/**\n * Loader for the GReCaptcha library. There should only ever be one of this.\n */\nexport class ReCaptchaLoaderImpl implements ReCaptchaLoader {\n private hostLanguage = '';\n private counter = 0;\n /**\n * Check for `render()` method. `window.grecaptcha` will exist if the Enterprise\n * version of the ReCAPTCHA script was loaded by someone else (e.g. App Check) but\n * `window.grecaptcha.render()` will not. Another load will add it.\n */\n private readonly librarySeparatelyLoaded = !!_window().grecaptcha?.render;\n\n load(auth: AuthInternal, hl = ''): Promise {\n _assert(isHostLanguageValid(hl), auth, AuthErrorCode.ARGUMENT_ERROR);\n\n if (this.shouldResolveImmediately(hl) && isV2(_window().grecaptcha)) {\n return Promise.resolve(_window().grecaptcha! as Recaptcha);\n }\n return new Promise((resolve, reject) => {\n const networkTimeout = _window().setTimeout(() => {\n reject(_createError(auth, AuthErrorCode.NETWORK_REQUEST_FAILED));\n }, NETWORK_TIMEOUT_DELAY.get());\n\n _window()[_JSLOAD_CALLBACK] = () => {\n _window().clearTimeout(networkTimeout);\n delete _window()[_JSLOAD_CALLBACK];\n\n const recaptcha = _window().grecaptcha as Recaptcha;\n\n if (!recaptcha || !isV2(recaptcha)) {\n reject(_createError(auth, AuthErrorCode.INTERNAL_ERROR));\n return;\n }\n\n // Wrap the greptcha render function so that we know if the developer has\n // called it separately\n const render = recaptcha.render;\n recaptcha.render = (container, params) => {\n const widgetId = render(container, params);\n this.counter++;\n return widgetId;\n };\n\n this.hostLanguage = hl;\n resolve(recaptcha);\n };\n\n const url = `${RECAPTCHA_BASE}?${querystring({\n onload: _JSLOAD_CALLBACK,\n render: 'explicit',\n hl\n })}`;\n\n jsHelpers._loadJS(url).catch(() => {\n clearTimeout(networkTimeout);\n reject(_createError(auth, AuthErrorCode.INTERNAL_ERROR));\n });\n });\n }\n\n clearedOneInstance(): void {\n this.counter--;\n }\n\n private shouldResolveImmediately(hl: string): boolean {\n // We can resolve immediately if:\n // • grecaptcha is already defined AND (\n // 1. the requested language codes are the same OR\n // 2. there exists already a ReCaptcha on the page\n // 3. the library was already loaded by the app\n // In cases (2) and (3), we _can't_ reload as it would break the recaptchas\n // that are already in the page\n return (\n !!_window().grecaptcha?.render &&\n (hl === this.hostLanguage ||\n this.counter > 0 ||\n this.librarySeparatelyLoaded)\n );\n }\n}\n\nfunction isHostLanguageValid(hl: string): boolean {\n return hl.length <= 6 && /^\\s*[a-zA-Z0-9\\-]*\\s*$/.test(hl);\n}\n\nexport class MockReCaptchaLoaderImpl implements ReCaptchaLoader {\n async load(auth: AuthInternal): Promise {\n return new MockReCaptcha(auth);\n }\n\n clearedOneInstance(): void {}\n}\n","/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { Auth, RecaptchaParameters } from '../../model/public_types';\nimport { getRecaptchaParams } from '../../api/authentication/recaptcha';\nimport { _castAuth } from '../../core/auth/auth_impl';\nimport { AuthErrorCode } from '../../core/errors';\nimport { _assert } from '../../core/util/assert';\nimport { _isHttpOrHttps } from '../../core/util/location';\nimport { ApplicationVerifierInternal } from '../../model/application_verifier';\nimport { AuthInternal } from '../../model/auth';\nimport { _window } from '../auth_window';\nimport { _isWorker } from '../util/worker';\nimport { Recaptcha } from './recaptcha';\nimport {\n MockReCaptchaLoaderImpl,\n ReCaptchaLoader,\n ReCaptchaLoaderImpl\n} from './recaptcha_loader';\n\nexport const RECAPTCHA_VERIFIER_TYPE = 'recaptcha';\n\nconst DEFAULT_PARAMS: RecaptchaParameters = {\n theme: 'light',\n type: 'image'\n};\n\ntype TokenCallback = (token: string) => void;\n\n/**\n * An {@link https://www.google.com/recaptcha/ | reCAPTCHA}-based application verifier.\n *\n * @remarks\n * `RecaptchaVerifier` does not work in a Node.js environment.\n *\n * @public\n */\nexport class RecaptchaVerifier implements ApplicationVerifierInternal {\n /**\n * The application verifier type.\n *\n * @remarks\n * For a reCAPTCHA verifier, this is 'recaptcha'.\n */\n readonly type = RECAPTCHA_VERIFIER_TYPE;\n private destroyed = false;\n private widgetId: number | null = null;\n private readonly container: HTMLElement;\n private readonly isInvisible: boolean;\n private readonly tokenChangeListeners = new Set();\n private renderPromise: Promise | null = null;\n private readonly auth: AuthInternal;\n\n /** @internal */\n readonly _recaptchaLoader: ReCaptchaLoader;\n private recaptcha: Recaptcha | null = null;\n\n /**\n * @param authExtern - The corresponding Firebase {@link Auth} instance.\n *\n * @param containerOrId - The reCAPTCHA container parameter.\n *\n * @remarks\n * This has different meaning depending on whether the reCAPTCHA is hidden or visible. For a\n * visible reCAPTCHA the container must be empty. If a string is used, it has to correspond to\n * an element ID. The corresponding element must also must be in the DOM at the time of\n * initialization.\n *\n * @param parameters - The optional reCAPTCHA parameters.\n *\n * @remarks\n * Check the reCAPTCHA docs for a comprehensive list. All parameters are accepted except for\n * the sitekey. Firebase Auth backend provisions a reCAPTCHA for each project and will\n * configure this upon rendering. For an invisible reCAPTCHA, a size key must have the value\n * 'invisible'.\n */\n constructor(\n authExtern: Auth,\n containerOrId: HTMLElement | string,\n private readonly parameters: RecaptchaParameters = {\n ...DEFAULT_PARAMS\n }\n ) {\n this.auth = _castAuth(authExtern);\n this.isInvisible = this.parameters.size === 'invisible';\n _assert(\n typeof document !== 'undefined',\n this.auth,\n AuthErrorCode.OPERATION_NOT_SUPPORTED\n );\n const container =\n typeof containerOrId === 'string'\n ? document.getElementById(containerOrId)\n : containerOrId;\n _assert(container, this.auth, AuthErrorCode.ARGUMENT_ERROR);\n\n this.container = container;\n this.parameters.callback = this.makeTokenCallback(this.parameters.callback);\n\n this._recaptchaLoader = this.auth.settings.appVerificationDisabledForTesting\n ? new MockReCaptchaLoaderImpl()\n : new ReCaptchaLoaderImpl();\n\n this.validateStartingState();\n // TODO: Figure out if sdk version is needed\n }\n\n /**\n * Waits for the user to solve the reCAPTCHA and resolves with the reCAPTCHA token.\n *\n * @returns A Promise for the reCAPTCHA token.\n */\n async verify(): Promise {\n this.assertNotDestroyed();\n const id = await this.render();\n const recaptcha = this.getAssertedRecaptcha();\n\n const response = recaptcha.getResponse(id);\n if (response) {\n return response;\n }\n\n return new Promise(resolve => {\n const tokenChange = (token: string): void => {\n if (!token) {\n return; // Ignore token expirations.\n }\n this.tokenChangeListeners.delete(tokenChange);\n resolve(token);\n };\n\n this.tokenChangeListeners.add(tokenChange);\n if (this.isInvisible) {\n recaptcha.execute(id);\n }\n });\n }\n\n /**\n * Renders the reCAPTCHA widget on the page.\n *\n * @returns A Promise that resolves with the reCAPTCHA widget ID.\n */\n render(): Promise {\n try {\n this.assertNotDestroyed();\n } catch (e) {\n // This method returns a promise. Since it's not async (we want to return the\n // _same_ promise if rendering is still occurring), the API surface should\n // reject with the error rather than just throw\n return Promise.reject(e);\n }\n\n if (this.renderPromise) {\n return this.renderPromise;\n }\n\n this.renderPromise = this.makeRenderPromise().catch(e => {\n this.renderPromise = null;\n throw e;\n });\n\n return this.renderPromise;\n }\n\n /** @internal */\n _reset(): void {\n this.assertNotDestroyed();\n if (this.widgetId !== null) {\n this.getAssertedRecaptcha().reset(this.widgetId);\n }\n }\n\n /**\n * Clears the reCAPTCHA widget from the page and destroys the instance.\n */\n clear(): void {\n this.assertNotDestroyed();\n this.destroyed = true;\n this._recaptchaLoader.clearedOneInstance();\n if (!this.isInvisible) {\n this.container.childNodes.forEach(node => {\n this.container.removeChild(node);\n });\n }\n }\n\n private validateStartingState(): void {\n _assert(!this.parameters.sitekey, this.auth, AuthErrorCode.ARGUMENT_ERROR);\n _assert(\n this.isInvisible || !this.container.hasChildNodes(),\n this.auth,\n AuthErrorCode.ARGUMENT_ERROR\n );\n _assert(\n typeof document !== 'undefined',\n this.auth,\n AuthErrorCode.OPERATION_NOT_SUPPORTED\n );\n }\n\n private makeTokenCallback(\n existing: TokenCallback | string | undefined\n ): TokenCallback {\n return token => {\n this.tokenChangeListeners.forEach(listener => listener(token));\n if (typeof existing === 'function') {\n existing(token);\n } else if (typeof existing === 'string') {\n const globalFunc = _window()[existing];\n if (typeof globalFunc === 'function') {\n globalFunc(token);\n }\n }\n };\n }\n\n private assertNotDestroyed(): void {\n _assert(!this.destroyed, this.auth, AuthErrorCode.INTERNAL_ERROR);\n }\n\n private async makeRenderPromise(): Promise {\n await this.init();\n if (!this.widgetId) {\n let container = this.container;\n if (!this.isInvisible) {\n const guaranteedEmpty = document.createElement('div');\n container.appendChild(guaranteedEmpty);\n container = guaranteedEmpty;\n }\n\n this.widgetId = this.getAssertedRecaptcha().render(\n container,\n this.parameters\n );\n }\n\n return this.widgetId;\n }\n\n private async init(): Promise {\n _assert(\n _isHttpOrHttps() && !_isWorker(),\n this.auth,\n AuthErrorCode.INTERNAL_ERROR\n );\n\n await domReady();\n this.recaptcha = await this._recaptchaLoader.load(\n this.auth,\n this.auth.languageCode || undefined\n );\n\n const siteKey = await getRecaptchaParams(this.auth);\n _assert(siteKey, this.auth, AuthErrorCode.INTERNAL_ERROR);\n this.parameters.sitekey = siteKey;\n }\n\n private getAssertedRecaptcha(): Recaptcha {\n _assert(this.recaptcha, this.auth, AuthErrorCode.INTERNAL_ERROR);\n return this.recaptcha;\n }\n}\n\nfunction domReady(): Promise {\n let resolver: (() => void) | null = null;\n return new Promise(resolve => {\n if (document.readyState === 'complete') {\n resolve();\n return;\n }\n\n // Document not ready, wait for load before resolving.\n // Save resolver, so we can remove listener in case it was externally\n // cancelled.\n resolver = () => resolve();\n window.addEventListener('load', resolver);\n }).catch(e => {\n if (resolver) {\n window.removeEventListener('load', resolver);\n }\n\n throw e;\n });\n}\n","/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {\n ApplicationVerifier,\n Auth,\n ConfirmationResult,\n PhoneInfoOptions,\n User,\n UserCredential\n} from '../../model/public_types';\n\nimport { startEnrollPhoneMfa } from '../../api/account_management/mfa';\nimport { startSignInPhoneMfa } from '../../api/authentication/mfa';\nimport { sendPhoneVerificationCode } from '../../api/authentication/sms';\nimport { ApplicationVerifierInternal } from '../../model/application_verifier';\nimport { PhoneAuthCredential } from '../../core/credentials/phone';\nimport { AuthErrorCode } from '../../core/errors';\nimport { _assertLinkedStatus, _link } from '../../core/user/link_unlink';\nimport { _assert } from '../../core/util/assert';\nimport { AuthInternal } from '../../model/auth';\nimport {\n linkWithCredential,\n reauthenticateWithCredential,\n signInWithCredential\n} from '../../core/strategies/credential';\nimport {\n MultiFactorSessionImpl,\n MultiFactorSessionType\n} from '../../mfa/mfa_session';\nimport { UserInternal } from '../../model/user';\nimport { RECAPTCHA_VERIFIER_TYPE } from '../recaptcha/recaptcha_verifier';\nimport { _castAuth } from '../../core/auth/auth_impl';\nimport { getModularInstance } from '@firebase/util';\nimport { ProviderId } from '../../model/enums';\n\ninterface OnConfirmationCallback {\n (credential: PhoneAuthCredential): Promise;\n}\n\nclass ConfirmationResultImpl implements ConfirmationResult {\n constructor(\n readonly verificationId: string,\n private readonly onConfirmation: OnConfirmationCallback\n ) {}\n\n confirm(verificationCode: string): Promise {\n const authCredential = PhoneAuthCredential._fromVerification(\n this.verificationId,\n verificationCode\n );\n return this.onConfirmation(authCredential);\n }\n}\n\n/**\n * Asynchronously signs in using a phone number.\n *\n * @remarks\n * This method sends a code via SMS to the given\n * phone number, and returns a {@link ConfirmationResult}. After the user\n * provides the code sent to their phone, call {@link ConfirmationResult.confirm}\n * with the code to sign the user in.\n *\n * For abuse prevention, this method also requires a {@link ApplicationVerifier}.\n * This SDK includes a reCAPTCHA-based implementation, {@link RecaptchaVerifier}.\n * This function can work on other platforms that do not support the\n * {@link RecaptchaVerifier} (like React Native), but you need to use a\n * third-party {@link ApplicationVerifier} implementation.\n *\n * This method does not work in a Node.js environment.\n *\n * @example\n * ```javascript\n * // 'recaptcha-container' is the ID of an element in the DOM.\n * const applicationVerifier = new firebase.auth.RecaptchaVerifier('recaptcha-container');\n * const confirmationResult = await signInWithPhoneNumber(auth, phoneNumber, applicationVerifier);\n * // Obtain a verificationCode from the user.\n * const credential = await confirmationResult.confirm(verificationCode);\n * ```\n *\n * @param auth - The {@link Auth} instance.\n * @param phoneNumber - The user's phone number in E.164 format (e.g. +16505550101).\n * @param appVerifier - The {@link ApplicationVerifier}.\n *\n * @public\n */\nexport async function signInWithPhoneNumber(\n auth: Auth,\n phoneNumber: string,\n appVerifier: ApplicationVerifier\n): Promise {\n const authInternal = _castAuth(auth);\n const verificationId = await _verifyPhoneNumber(\n authInternal,\n phoneNumber,\n getModularInstance(appVerifier as ApplicationVerifierInternal)\n );\n return new ConfirmationResultImpl(verificationId, cred =>\n signInWithCredential(authInternal, cred)\n );\n}\n\n/**\n * Links the user account with the given phone number.\n *\n * @remarks\n * This method does not work in a Node.js environment.\n *\n * @param user - The user.\n * @param phoneNumber - The user's phone number in E.164 format (e.g. +16505550101).\n * @param appVerifier - The {@link ApplicationVerifier}.\n *\n * @public\n */\nexport async function linkWithPhoneNumber(\n user: User,\n phoneNumber: string,\n appVerifier: ApplicationVerifier\n): Promise {\n const userInternal = getModularInstance(user) as UserInternal;\n await _assertLinkedStatus(false, userInternal, ProviderId.PHONE);\n const verificationId = await _verifyPhoneNumber(\n userInternal.auth,\n phoneNumber,\n getModularInstance(appVerifier as ApplicationVerifierInternal)\n );\n return new ConfirmationResultImpl(verificationId, cred =>\n linkWithCredential(userInternal, cred)\n );\n}\n\n/**\n * Re-authenticates a user using a fresh phone credential.\n *\n * @remarks\n * Use before operations such as {@link updatePassword} that require tokens from recent sign-in attempts.\n *\n * This method does not work in a Node.js environment.\n *\n * @param user - The user.\n * @param phoneNumber - The user's phone number in E.164 format (e.g. +16505550101).\n * @param appVerifier - The {@link ApplicationVerifier}.\n *\n * @public\n */\nexport async function reauthenticateWithPhoneNumber(\n user: User,\n phoneNumber: string,\n appVerifier: ApplicationVerifier\n): Promise {\n const userInternal = getModularInstance(user) as UserInternal;\n const verificationId = await _verifyPhoneNumber(\n userInternal.auth,\n phoneNumber,\n getModularInstance(appVerifier as ApplicationVerifierInternal)\n );\n return new ConfirmationResultImpl(verificationId, cred =>\n reauthenticateWithCredential(userInternal, cred)\n );\n}\n\n/**\n * Returns a verification ID to be used in conjunction with the SMS code that is sent.\n *\n */\nexport async function _verifyPhoneNumber(\n auth: AuthInternal,\n options: PhoneInfoOptions | string,\n verifier: ApplicationVerifierInternal\n): Promise {\n const recaptchaToken = await verifier.verify();\n\n try {\n _assert(\n typeof recaptchaToken === 'string',\n auth,\n AuthErrorCode.ARGUMENT_ERROR\n );\n _assert(\n verifier.type === RECAPTCHA_VERIFIER_TYPE,\n auth,\n AuthErrorCode.ARGUMENT_ERROR\n );\n\n let phoneInfoOptions: PhoneInfoOptions;\n\n if (typeof options === 'string') {\n phoneInfoOptions = {\n phoneNumber: options\n };\n } else {\n phoneInfoOptions = options;\n }\n\n if ('session' in phoneInfoOptions) {\n const session = phoneInfoOptions.session as MultiFactorSessionImpl;\n\n if ('phoneNumber' in phoneInfoOptions) {\n _assert(\n session.type === MultiFactorSessionType.ENROLL,\n auth,\n AuthErrorCode.INTERNAL_ERROR\n );\n const response = await startEnrollPhoneMfa(auth, {\n idToken: session.credential,\n phoneEnrollmentInfo: {\n phoneNumber: phoneInfoOptions.phoneNumber,\n recaptchaToken\n }\n });\n return response.phoneSessionInfo.sessionInfo;\n } else {\n _assert(\n session.type === MultiFactorSessionType.SIGN_IN,\n auth,\n AuthErrorCode.INTERNAL_ERROR\n );\n const mfaEnrollmentId =\n phoneInfoOptions.multiFactorHint?.uid ||\n phoneInfoOptions.multiFactorUid;\n _assert(mfaEnrollmentId, auth, AuthErrorCode.MISSING_MFA_INFO);\n const response = await startSignInPhoneMfa(auth, {\n mfaPendingCredential: session.credential,\n mfaEnrollmentId,\n phoneSignInInfo: {\n recaptchaToken\n }\n });\n return response.phoneResponseInfo.sessionInfo;\n }\n } else {\n const { sessionInfo } = await sendPhoneVerificationCode(auth, {\n phoneNumber: phoneInfoOptions.phoneNumber,\n recaptchaToken\n });\n return sessionInfo;\n }\n } finally {\n verifier._reset();\n }\n}\n\n/**\n * Updates the user's phone number.\n *\n * @remarks\n * This method does not work in a Node.js environment.\n *\n * @example\n * ```\n * // 'recaptcha-container' is the ID of an element in the DOM.\n * const applicationVerifier = new RecaptchaVerifier('recaptcha-container');\n * const provider = new PhoneAuthProvider(auth);\n * const verificationId = await provider.verifyPhoneNumber('+16505550101', applicationVerifier);\n * // Obtain the verificationCode from the user.\n * const phoneCredential = PhoneAuthProvider.credential(verificationId, verificationCode);\n * await updatePhoneNumber(user, phoneCredential);\n * ```\n *\n * @param user - The user.\n * @param credential - A credential authenticating the new phone number.\n *\n * @public\n */\nexport async function updatePhoneNumber(\n user: User,\n credential: PhoneAuthCredential\n): Promise {\n await _link(getModularInstance(user) as UserInternal, credential);\n}\n","/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {\n Auth,\n PhoneInfoOptions,\n ApplicationVerifier,\n UserCredential\n} from '../../model/public_types';\n\nimport { SignInWithPhoneNumberResponse } from '../../api/authentication/sms';\nimport { ApplicationVerifierInternal as ApplicationVerifierInternal } from '../../model/application_verifier';\nimport { AuthInternal as AuthInternal } from '../../model/auth';\nimport { UserCredentialInternal as UserCredentialInternal } from '../../model/user';\nimport { PhoneAuthCredential } from '../../core/credentials/phone';\nimport { _verifyPhoneNumber } from '../strategies/phone';\nimport { _castAuth } from '../../core/auth/auth_impl';\nimport { AuthCredential } from '../../core';\nimport { FirebaseError, getModularInstance } from '@firebase/util';\nimport { TaggedWithTokenResponse } from '../../model/id_token';\nimport { ProviderId, SignInMethod } from '../../model/enums';\n\n/**\n * Provider for generating an {@link PhoneAuthCredential}.\n *\n * @remarks\n * `PhoneAuthProvider` does not work in a Node.js environment.\n *\n * @example\n * ```javascript\n * // 'recaptcha-container' is the ID of an element in the DOM.\n * const applicationVerifier = new RecaptchaVerifier('recaptcha-container');\n * const provider = new PhoneAuthProvider(auth);\n * const verificationId = await provider.verifyPhoneNumber('+16505550101', applicationVerifier);\n * // Obtain the verificationCode from the user.\n * const phoneCredential = PhoneAuthProvider.credential(verificationId, verificationCode);\n * const userCredential = await signInWithCredential(auth, phoneCredential);\n * ```\n *\n * @public\n */\nexport class PhoneAuthProvider {\n /** Always set to {@link ProviderId}.PHONE. */\n static readonly PROVIDER_ID: 'phone' = ProviderId.PHONE;\n /** Always set to {@link SignInMethod}.PHONE. */\n static readonly PHONE_SIGN_IN_METHOD: 'phone' = SignInMethod.PHONE;\n\n /** Always set to {@link ProviderId}.PHONE. */\n readonly providerId = PhoneAuthProvider.PROVIDER_ID;\n private readonly auth: AuthInternal;\n\n /**\n * @param auth - The Firebase {@link Auth} instance in which sign-ins should occur.\n *\n */\n constructor(auth: Auth) {\n this.auth = _castAuth(auth);\n }\n\n /**\n *\n * Starts a phone number authentication flow by sending a verification code to the given phone\n * number.\n *\n * @example\n * ```javascript\n * const provider = new PhoneAuthProvider(auth);\n * const verificationId = await provider.verifyPhoneNumber(phoneNumber, applicationVerifier);\n * // Obtain verificationCode from the user.\n * const authCredential = PhoneAuthProvider.credential(verificationId, verificationCode);\n * const userCredential = await signInWithCredential(auth, authCredential);\n * ```\n *\n * @example\n * An alternative flow is provided using the `signInWithPhoneNumber` method.\n * ```javascript\n * const confirmationResult = signInWithPhoneNumber(auth, phoneNumber, applicationVerifier);\n * // Obtain verificationCode from the user.\n * const userCredential = confirmationResult.confirm(verificationCode);\n * ```\n *\n * @param phoneInfoOptions - The user's {@link PhoneInfoOptions}. The phone number should be in\n * E.164 format (e.g. +16505550101).\n * @param applicationVerifier - For abuse prevention, this method also requires a\n * {@link ApplicationVerifier}. This SDK includes a reCAPTCHA-based implementation,\n * {@link RecaptchaVerifier}.\n *\n * @returns A Promise for a verification ID that can be passed to\n * {@link PhoneAuthProvider.credential} to identify this flow..\n */\n verifyPhoneNumber(\n phoneOptions: PhoneInfoOptions | string,\n applicationVerifier: ApplicationVerifier\n ): Promise {\n return _verifyPhoneNumber(\n this.auth,\n phoneOptions,\n getModularInstance(applicationVerifier as ApplicationVerifierInternal)\n );\n }\n\n /**\n * Creates a phone auth credential, given the verification ID from\n * {@link PhoneAuthProvider.verifyPhoneNumber} and the code that was sent to the user's\n * mobile device.\n *\n * @example\n * ```javascript\n * const provider = new PhoneAuthProvider(auth);\n * const verificationId = provider.verifyPhoneNumber(phoneNumber, applicationVerifier);\n * // Obtain verificationCode from the user.\n * const authCredential = PhoneAuthProvider.credential(verificationId, verificationCode);\n * const userCredential = signInWithCredential(auth, authCredential);\n * ```\n *\n * @example\n * An alternative flow is provided using the `signInWithPhoneNumber` method.\n * ```javascript\n * const confirmationResult = await signInWithPhoneNumber(auth, phoneNumber, applicationVerifier);\n * // Obtain verificationCode from the user.\n * const userCredential = await confirmationResult.confirm(verificationCode);\n * ```\n *\n * @param verificationId - The verification ID returned from {@link PhoneAuthProvider.verifyPhoneNumber}.\n * @param verificationCode - The verification code sent to the user's mobile device.\n *\n * @returns The auth provider credential.\n */\n static credential(\n verificationId: string,\n verificationCode: string\n ): PhoneAuthCredential {\n return PhoneAuthCredential._fromVerification(\n verificationId,\n verificationCode\n );\n }\n\n /**\n * Generates an {@link AuthCredential} from a {@link UserCredential}.\n * @param userCredential - The user credential.\n */\n static credentialFromResult(\n userCredential: UserCredential\n ): AuthCredential | null {\n const credential = userCredential as UserCredentialInternal;\n return PhoneAuthProvider.credentialFromTaggedObject(credential);\n }\n\n /**\n * Returns an {@link AuthCredential} when passed an error.\n *\n * @remarks\n *\n * This method works for errors like\n * `auth/account-exists-with-different-credentials`. This is useful for\n * recovering when attempting to set a user's phone number but the number\n * in question is already tied to another account. For example, the following\n * code tries to update the current user's phone number, and if that\n * fails, links the user with the account associated with that number:\n *\n * ```js\n * const provider = new PhoneAuthProvider(auth);\n * const verificationId = await provider.verifyPhoneNumber(number, verifier);\n * try {\n * const code = ''; // Prompt the user for the verification code\n * await updatePhoneNumber(\n * auth.currentUser,\n * PhoneAuthProvider.credential(verificationId, code));\n * } catch (e) {\n * if ((e as FirebaseError)?.code === 'auth/account-exists-with-different-credential') {\n * const cred = PhoneAuthProvider.credentialFromError(e);\n * await linkWithCredential(auth.currentUser, cred);\n * }\n * }\n *\n * // At this point, auth.currentUser.phoneNumber === number.\n * ```\n *\n * @param error - The error to generate a credential from.\n */\n static credentialFromError(error: FirebaseError): AuthCredential | null {\n return PhoneAuthProvider.credentialFromTaggedObject(\n (error.customData || {}) as TaggedWithTokenResponse\n );\n }\n\n private static credentialFromTaggedObject({\n _tokenResponse: tokenResponse\n }: TaggedWithTokenResponse): AuthCredential | null {\n if (!tokenResponse) {\n return null;\n }\n const { phoneNumber, temporaryProof } =\n tokenResponse as SignInWithPhoneNumberResponse;\n if (phoneNumber && temporaryProof) {\n return PhoneAuthCredential._fromTokenResponse(\n phoneNumber,\n temporaryProof\n );\n }\n return null;\n }\n}\n","/**\n * @license\n * Copyright 2021 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { PopupRedirectResolver } from '../../model/public_types';\nimport { AuthInternal } from '../../model/auth';\nimport { PopupRedirectResolverInternal } from '../../model/popup_redirect';\nimport { AuthErrorCode } from '../errors';\nimport { _assert } from './assert';\nimport { _getInstance } from './instantiator';\n\n/**\n * Chooses a popup/redirect resolver to use. This prefers the override (which\n * is directly passed in), and falls back to the property set on the auth\n * object. If neither are available, this function errors w/ an argument error.\n */\nexport function _withDefaultResolver(\n auth: AuthInternal,\n resolverOverride: PopupRedirectResolver | undefined\n): PopupRedirectResolverInternal {\n if (resolverOverride) {\n return _getInstance(resolverOverride);\n }\n\n _assert(auth._popupRedirectResolver, auth, AuthErrorCode.ARGUMENT_ERROR);\n\n return auth._popupRedirectResolver;\n}\n","/**\n * @license\n * Copyright 2019 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {\n signInWithIdp,\n SignInWithIdpRequest\n} from '../../api/authentication/idp';\nimport { PhoneOrOauthTokenResponse } from '../../api/authentication/mfa';\nimport { AuthInternal } from '../../model/auth';\nimport { IdTokenResponse } from '../../model/id_token';\nimport { UserInternal, UserCredentialInternal } from '../../model/user';\nimport { AuthCredential } from '../credentials';\nimport { _link as _linkUser } from '../user/link_unlink';\nimport { _reauthenticate } from '../user/reauthenticate';\nimport { _assert } from '../util/assert';\nimport { _signInWithCredential } from './credential';\nimport { AuthErrorCode } from '../errors';\nimport { ProviderId } from '../../model/enums';\n\nexport interface IdpTaskParams {\n auth: AuthInternal;\n requestUri: string;\n sessionId?: string;\n tenantId?: string;\n postBody?: string;\n pendingToken?: string;\n user?: UserInternal;\n bypassAuthState?: boolean;\n}\n\nexport type IdpTask = (\n params: IdpTaskParams\n) => Promise;\n\nclass IdpCredential extends AuthCredential {\n constructor(readonly params: IdpTaskParams) {\n super(ProviderId.CUSTOM, ProviderId.CUSTOM);\n }\n\n _getIdTokenResponse(auth: AuthInternal): Promise {\n return signInWithIdp(auth, this._buildIdpRequest());\n }\n\n _linkToIdToken(\n auth: AuthInternal,\n idToken: string\n ): Promise {\n return signInWithIdp(auth, this._buildIdpRequest(idToken));\n }\n\n _getReauthenticationResolver(auth: AuthInternal): Promise {\n return signInWithIdp(auth, this._buildIdpRequest());\n }\n\n private _buildIdpRequest(idToken?: string): SignInWithIdpRequest {\n const request: SignInWithIdpRequest = {\n requestUri: this.params.requestUri,\n sessionId: this.params.sessionId,\n postBody: this.params.postBody,\n tenantId: this.params.tenantId,\n pendingToken: this.params.pendingToken,\n returnSecureToken: true,\n returnIdpCredential: true\n };\n\n if (idToken) {\n request.idToken = idToken;\n }\n\n return request;\n }\n}\n\nexport function _signIn(\n params: IdpTaskParams\n): Promise {\n return _signInWithCredential(\n params.auth,\n new IdpCredential(params),\n params.bypassAuthState\n ) as Promise;\n}\n\nexport function _reauth(\n params: IdpTaskParams\n): Promise {\n const { auth, user } = params;\n _assert(user, auth, AuthErrorCode.INTERNAL_ERROR);\n return _reauthenticate(\n user,\n new IdpCredential(params),\n params.bypassAuthState\n );\n}\n\nexport async function _link(\n params: IdpTaskParams\n): Promise {\n const { auth, user } = params;\n _assert(user, auth, AuthErrorCode.INTERNAL_ERROR);\n return _linkUser(user, new IdpCredential(params), params.bypassAuthState);\n}\n","/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { FirebaseError } from '@firebase/util';\n\nimport {\n AuthEvent,\n AuthEventConsumer,\n AuthEventType,\n EventManager,\n PopupRedirectResolverInternal\n} from '../../model/popup_redirect';\nimport { UserInternal, UserCredentialInternal } from '../../model/user';\nimport { AuthErrorCode } from '../errors';\nimport { debugAssert, _fail } from '../util/assert';\nimport {\n _link,\n _reauth,\n _signIn,\n IdpTask,\n IdpTaskParams\n} from '../strategies/idp';\nimport { AuthInternal } from '../../model/auth';\n\ninterface PendingPromise {\n resolve: (cred: UserCredentialInternal | null) => void;\n reject: (error: Error) => void;\n}\n\n/**\n * Popup event manager. Handles the popup's entire lifecycle; listens to auth\n * events\n */\nexport abstract class AbstractPopupRedirectOperation\n implements AuthEventConsumer\n{\n private pendingPromise: PendingPromise | null = null;\n private eventManager: EventManager | null = null;\n readonly filter: AuthEventType[];\n\n abstract eventId: string | null;\n\n constructor(\n protected readonly auth: AuthInternal,\n filter: AuthEventType | AuthEventType[],\n protected readonly resolver: PopupRedirectResolverInternal,\n protected user?: UserInternal,\n protected readonly bypassAuthState = false\n ) {\n this.filter = Array.isArray(filter) ? filter : [filter];\n }\n\n abstract onExecution(): Promise;\n\n execute(): Promise {\n return new Promise(\n async (resolve, reject) => {\n this.pendingPromise = { resolve, reject };\n\n try {\n this.eventManager = await this.resolver._initialize(this.auth);\n await this.onExecution();\n this.eventManager.registerConsumer(this);\n } catch (e) {\n this.reject(e as Error);\n }\n }\n );\n }\n\n async onAuthEvent(event: AuthEvent): Promise {\n const { urlResponse, sessionId, postBody, tenantId, error, type } = event;\n if (error) {\n this.reject(error);\n return;\n }\n\n const params: IdpTaskParams = {\n auth: this.auth,\n requestUri: urlResponse!,\n sessionId: sessionId!,\n tenantId: tenantId || undefined,\n postBody: postBody || undefined,\n user: this.user,\n bypassAuthState: this.bypassAuthState\n };\n\n try {\n this.resolve(await this.getIdpTask(type)(params));\n } catch (e) {\n this.reject(e as Error);\n }\n }\n\n onError(error: FirebaseError): void {\n this.reject(error);\n }\n\n private getIdpTask(type: AuthEventType): IdpTask {\n switch (type) {\n case AuthEventType.SIGN_IN_VIA_POPUP:\n case AuthEventType.SIGN_IN_VIA_REDIRECT:\n return _signIn;\n case AuthEventType.LINK_VIA_POPUP:\n case AuthEventType.LINK_VIA_REDIRECT:\n return _link;\n case AuthEventType.REAUTH_VIA_POPUP:\n case AuthEventType.REAUTH_VIA_REDIRECT:\n return _reauth;\n default:\n _fail(this.auth, AuthErrorCode.INTERNAL_ERROR);\n }\n }\n\n protected resolve(cred: UserCredentialInternal | null): void {\n debugAssert(this.pendingPromise, 'Pending promise was never set');\n this.pendingPromise.resolve(cred);\n this.unregisterAndCleanUp();\n }\n\n protected reject(error: Error): void {\n debugAssert(this.pendingPromise, 'Pending promise was never set');\n this.pendingPromise.reject(error);\n this.unregisterAndCleanUp();\n }\n\n private unregisterAndCleanUp(): void {\n if (this.eventManager) {\n this.eventManager.unregisterConsumer(this);\n }\n\n this.pendingPromise = null;\n this.cleanUp();\n }\n\n abstract cleanUp(): void;\n}\n","/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {\n Auth,\n AuthProvider,\n PopupRedirectResolver,\n User,\n UserCredential\n} from '../../model/public_types';\n\nimport { _castAuth } from '../../core/auth/auth_impl';\nimport { AuthErrorCode } from '../../core/errors';\nimport {\n _assert,\n debugAssert,\n _createError,\n _assertInstanceOf\n} from '../../core/util/assert';\nimport { Delay } from '../../core/util/delay';\nimport { _generateEventId } from '../../core/util/event_id';\nimport { AuthInternal } from '../../model/auth';\nimport {\n AuthEventType,\n PopupRedirectResolverInternal\n} from '../../model/popup_redirect';\nimport { UserInternal } from '../../model/user';\nimport { _withDefaultResolver } from '../../core/util/resolver';\nimport { AuthPopup } from '../util/popup';\nimport { AbstractPopupRedirectOperation } from '../../core/strategies/abstract_popup_redirect_operation';\nimport { FederatedAuthProvider } from '../../core/providers/federated';\nimport { getModularInstance } from '@firebase/util';\n\n/*\n * The event timeout is the same on mobile and desktop, no need for Delay. Set this to 8s since\n * blocking functions can take upto 7s to complete sign in, as documented in:\n * https://cloud.google.com/identity-platform/docs/blocking-functions#understanding_blocking_functions\n * https://firebase.google.com/docs/auth/extend-with-blocking-functions#understanding_blocking_functions\n */\nexport const enum _Timeout {\n AUTH_EVENT = 8000\n}\nexport const _POLL_WINDOW_CLOSE_TIMEOUT = new Delay(2000, 10000);\n\n/**\n * Authenticates a Firebase client using a popup-based OAuth authentication flow.\n *\n * @remarks\n * If succeeds, returns the signed in user along with the provider's credential. If sign in was\n * unsuccessful, returns an error object containing additional information about the error.\n *\n * This method does not work in a Node.js environment.\n *\n * @example\n * ```javascript\n * // Sign in using a popup.\n * const provider = new FacebookAuthProvider();\n * const result = await signInWithPopup(auth, provider);\n *\n * // The signed-in user info.\n * const user = result.user;\n * // This gives you a Facebook Access Token.\n * const credential = provider.credentialFromResult(auth, result);\n * const token = credential.accessToken;\n * ```\n *\n * @param auth - The {@link Auth} instance.\n * @param provider - The provider to authenticate. The provider has to be an {@link OAuthProvider}.\n * Non-OAuth providers like {@link EmailAuthProvider} will throw an error.\n * @param resolver - An instance of {@link PopupRedirectResolver}, optional\n * if already supplied to {@link initializeAuth} or provided by {@link getAuth}.\n *\n * @public\n */\nexport async function signInWithPopup(\n auth: Auth,\n provider: AuthProvider,\n resolver?: PopupRedirectResolver\n): Promise {\n const authInternal = _castAuth(auth);\n _assertInstanceOf(auth, provider, FederatedAuthProvider);\n const resolverInternal = _withDefaultResolver(authInternal, resolver);\n const action = new PopupOperation(\n authInternal,\n AuthEventType.SIGN_IN_VIA_POPUP,\n provider,\n resolverInternal\n );\n return action.executeNotNull();\n}\n\n/**\n * Reauthenticates the current user with the specified {@link OAuthProvider} using a pop-up based\n * OAuth flow.\n *\n * @remarks\n * If the reauthentication is successful, the returned result will contain the user and the\n * provider's credential.\n *\n * This method does not work in a Node.js environment.\n *\n * @example\n * ```javascript\n * // Sign in using a popup.\n * const provider = new FacebookAuthProvider();\n * const result = await signInWithPopup(auth, provider);\n * // Reauthenticate using a popup.\n * await reauthenticateWithPopup(result.user, provider);\n * ```\n *\n * @param user - The user.\n * @param provider - The provider to authenticate. The provider has to be an {@link OAuthProvider}.\n * Non-OAuth providers like {@link EmailAuthProvider} will throw an error.\n * @param resolver - An instance of {@link PopupRedirectResolver}, optional\n * if already supplied to {@link initializeAuth} or provided by {@link getAuth}.\n *\n * @public\n */\nexport async function reauthenticateWithPopup(\n user: User,\n provider: AuthProvider,\n resolver?: PopupRedirectResolver\n): Promise {\n const userInternal = getModularInstance(user) as UserInternal;\n _assertInstanceOf(userInternal.auth, provider, FederatedAuthProvider);\n const resolverInternal = _withDefaultResolver(userInternal.auth, resolver);\n const action = new PopupOperation(\n userInternal.auth,\n AuthEventType.REAUTH_VIA_POPUP,\n provider,\n resolverInternal,\n userInternal\n );\n return action.executeNotNull();\n}\n\n/**\n * Links the authenticated provider to the user account using a pop-up based OAuth flow.\n *\n * @remarks\n * If the linking is successful, the returned result will contain the user and the provider's credential.\n *\n * This method does not work in a Node.js environment.\n *\n * @example\n * ```javascript\n * // Sign in using some other provider.\n * const result = await signInWithEmailAndPassword(auth, email, password);\n * // Link using a popup.\n * const provider = new FacebookAuthProvider();\n * await linkWithPopup(result.user, provider);\n * ```\n *\n * @param user - The user.\n * @param provider - The provider to authenticate. The provider has to be an {@link OAuthProvider}.\n * Non-OAuth providers like {@link EmailAuthProvider} will throw an error.\n * @param resolver - An instance of {@link PopupRedirectResolver}, optional\n * if already supplied to {@link initializeAuth} or provided by {@link getAuth}.\n *\n * @public\n */\nexport async function linkWithPopup(\n user: User,\n provider: AuthProvider,\n resolver?: PopupRedirectResolver\n): Promise {\n const userInternal = getModularInstance(user) as UserInternal;\n _assertInstanceOf(userInternal.auth, provider, FederatedAuthProvider);\n const resolverInternal = _withDefaultResolver(userInternal.auth, resolver);\n\n const action = new PopupOperation(\n userInternal.auth,\n AuthEventType.LINK_VIA_POPUP,\n provider,\n resolverInternal,\n userInternal\n );\n return action.executeNotNull();\n}\n\n/**\n * Popup event manager. Handles the popup's entire lifecycle; listens to auth\n * events\n *\n */\nclass PopupOperation extends AbstractPopupRedirectOperation {\n // Only one popup is ever shown at once. The lifecycle of the current popup\n // can be managed / cancelled by the constructor.\n private static currentPopupAction: PopupOperation | null = null;\n private authWindow: AuthPopup | null = null;\n private pollId: number | null = null;\n\n constructor(\n auth: AuthInternal,\n filter: AuthEventType,\n private readonly provider: AuthProvider,\n resolver: PopupRedirectResolverInternal,\n user?: UserInternal\n ) {\n super(auth, filter, resolver, user);\n if (PopupOperation.currentPopupAction) {\n PopupOperation.currentPopupAction.cancel();\n }\n\n PopupOperation.currentPopupAction = this;\n }\n\n async executeNotNull(): Promise {\n const result = await this.execute();\n _assert(result, this.auth, AuthErrorCode.INTERNAL_ERROR);\n return result;\n }\n\n async onExecution(): Promise {\n debugAssert(\n this.filter.length === 1,\n 'Popup operations only handle one event'\n );\n const eventId = _generateEventId();\n this.authWindow = await this.resolver._openPopup(\n this.auth,\n this.provider,\n this.filter[0], // There's always one, see constructor\n eventId\n );\n this.authWindow.associatedEvent = eventId;\n\n // Check for web storage support and origin validation _after_ the popup is\n // loaded. These operations are slow (~1 second or so) Rather than\n // waiting on them before opening the window, optimistically open the popup\n // and check for storage support at the same time. If storage support is\n // not available, this will cause the whole thing to reject properly. It\n // will also close the popup, but since the promise has already rejected,\n // the popup closed by user poll will reject into the void.\n this.resolver._originValidation(this.auth).catch(e => {\n this.reject(e);\n });\n\n this.resolver._isIframeWebStorageSupported(this.auth, isSupported => {\n if (!isSupported) {\n this.reject(\n _createError(this.auth, AuthErrorCode.WEB_STORAGE_UNSUPPORTED)\n );\n }\n });\n\n // Handle user closure. Notice this does *not* use await\n this.pollUserCancellation();\n }\n\n get eventId(): string | null {\n return this.authWindow?.associatedEvent || null;\n }\n\n cancel(): void {\n this.reject(_createError(this.auth, AuthErrorCode.EXPIRED_POPUP_REQUEST));\n }\n\n cleanUp(): void {\n if (this.authWindow) {\n this.authWindow.close();\n }\n\n if (this.pollId) {\n window.clearTimeout(this.pollId);\n }\n\n this.authWindow = null;\n this.pollId = null;\n PopupOperation.currentPopupAction = null;\n }\n\n private pollUserCancellation(): void {\n const poll = (): void => {\n if (this.authWindow?.window?.closed) {\n // Make sure that there is sufficient time for whatever action to\n // complete. The window could have closed but the sign in network\n // call could still be in flight. This is specifically true for\n // Firefox or if the opener is in an iframe, in which case the oauth\n // helper closes the popup.\n this.pollId = window.setTimeout(() => {\n this.pollId = null;\n this.reject(\n _createError(this.auth, AuthErrorCode.POPUP_CLOSED_BY_USER)\n );\n }, _Timeout.AUTH_EVENT);\n return;\n }\n\n this.pollId = window.setTimeout(poll, _POLL_WINDOW_CLOSE_TIMEOUT.get());\n };\n\n poll();\n }\n}\n","/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { AuthInternal } from '../../model/auth';\nimport {\n AuthEvent,\n AuthEventType,\n PopupRedirectResolverInternal\n} from '../../model/popup_redirect';\nimport { UserCredentialInternal } from '../../model/user';\nimport { PersistenceInternal } from '../persistence';\nimport { _persistenceKeyName } from '../persistence/persistence_user_manager';\nimport { _getInstance } from '../util/instantiator';\nimport { AbstractPopupRedirectOperation } from './abstract_popup_redirect_operation';\n\nconst PENDING_REDIRECT_KEY = 'pendingRedirect';\n\n// We only get one redirect outcome for any one auth, so just store it\n// in here.\nconst redirectOutcomeMap: Map<\n string,\n () => Promise\n> = new Map();\n\nexport class RedirectAction extends AbstractPopupRedirectOperation {\n eventId = null;\n\n constructor(\n auth: AuthInternal,\n resolver: PopupRedirectResolverInternal,\n bypassAuthState = false\n ) {\n super(\n auth,\n [\n AuthEventType.SIGN_IN_VIA_REDIRECT,\n AuthEventType.LINK_VIA_REDIRECT,\n AuthEventType.REAUTH_VIA_REDIRECT,\n AuthEventType.UNKNOWN\n ],\n resolver,\n undefined,\n bypassAuthState\n );\n }\n\n /**\n * Override the execute function; if we already have a redirect result, then\n * just return it.\n */\n async execute(): Promise {\n let readyOutcome = redirectOutcomeMap.get(this.auth._key());\n if (!readyOutcome) {\n try {\n const hasPendingRedirect = await _getAndClearPendingRedirectStatus(\n this.resolver,\n this.auth\n );\n const result = hasPendingRedirect ? await super.execute() : null;\n readyOutcome = () => Promise.resolve(result);\n } catch (e) {\n readyOutcome = () => Promise.reject(e);\n }\n\n redirectOutcomeMap.set(this.auth._key(), readyOutcome);\n }\n\n // If we're not bypassing auth state, the ready outcome should be set to\n // null.\n if (!this.bypassAuthState) {\n redirectOutcomeMap.set(this.auth._key(), () => Promise.resolve(null));\n }\n\n return readyOutcome();\n }\n\n async onAuthEvent(event: AuthEvent): Promise {\n if (event.type === AuthEventType.SIGN_IN_VIA_REDIRECT) {\n return super.onAuthEvent(event);\n } else if (event.type === AuthEventType.UNKNOWN) {\n // This is a sentinel value indicating there's no pending redirect\n this.resolve(null);\n return;\n }\n\n if (event.eventId) {\n const user = await this.auth._redirectUserForId(event.eventId);\n if (user) {\n this.user = user;\n return super.onAuthEvent(event);\n } else {\n this.resolve(null);\n }\n }\n }\n\n async onExecution(): Promise {}\n\n cleanUp(): void {}\n}\n\nexport async function _getAndClearPendingRedirectStatus(\n resolver: PopupRedirectResolverInternal,\n auth: AuthInternal\n): Promise {\n const key = pendingRedirectKey(auth);\n const persistence = resolverPersistence(resolver);\n if (!(await persistence._isAvailable())) {\n return false;\n }\n const hasPendingRedirect = (await persistence._get(key)) === 'true';\n await persistence._remove(key);\n return hasPendingRedirect;\n}\n\nexport async function _setPendingRedirectStatus(\n resolver: PopupRedirectResolverInternal,\n auth: AuthInternal\n): Promise {\n return resolverPersistence(resolver)._set(pendingRedirectKey(auth), 'true');\n}\n\nexport function _clearRedirectOutcomes(): void {\n redirectOutcomeMap.clear();\n}\n\nexport function _overrideRedirectResult(\n auth: AuthInternal,\n result: () => Promise\n): void {\n redirectOutcomeMap.set(auth._key(), result);\n}\n\nfunction resolverPersistence(\n resolver: PopupRedirectResolverInternal\n): PersistenceInternal {\n return _getInstance(resolver._redirectPersistence);\n}\n\nfunction pendingRedirectKey(auth: AuthInternal): string {\n return _persistenceKeyName(\n PENDING_REDIRECT_KEY,\n auth.config.apiKey,\n auth.name\n );\n}\n","/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {\n Auth,\n AuthProvider,\n PopupRedirectResolver,\n User,\n UserCredential\n} from '../../model/public_types';\n\nimport { _castAuth } from '../../core/auth/auth_impl';\nimport { _assertLinkedStatus } from '../../core/user/link_unlink';\nimport { _assertInstanceOf } from '../../core/util/assert';\nimport { _generateEventId } from '../../core/util/event_id';\nimport { AuthEventType } from '../../model/popup_redirect';\nimport { UserInternal } from '../../model/user';\nimport { _withDefaultResolver } from '../../core/util/resolver';\nimport {\n RedirectAction,\n _setPendingRedirectStatus\n} from '../../core/strategies/redirect';\nimport { FederatedAuthProvider } from '../../core/providers/federated';\nimport { getModularInstance } from '@firebase/util';\n\n/**\n * Authenticates a Firebase client using a full-page redirect flow.\n *\n * @remarks\n * To handle the results and errors for this operation, refer to {@link getRedirectResult}.\n * Follow the {@link https://firebase.google.com/docs/auth/web/redirect-best-practices\n * | best practices} when using {@link signInWithRedirect}.\n *\n * This method does not work in a Node.js environment.\n *\n * @example\n * ```javascript\n * // Sign in using a redirect.\n * const provider = new FacebookAuthProvider();\n * // You can add additional scopes to the provider:\n * provider.addScope('user_birthday');\n * // Start a sign in process for an unauthenticated user.\n * await signInWithRedirect(auth, provider);\n * // This will trigger a full page redirect away from your app\n *\n * // After returning from the redirect when your app initializes you can obtain the result\n * const result = await getRedirectResult(auth);\n * if (result) {\n * // This is the signed-in user\n * const user = result.user;\n * // This gives you a Facebook Access Token.\n * const credential = provider.credentialFromResult(auth, result);\n * const token = credential.accessToken;\n * }\n * // As this API can be used for sign-in, linking and reauthentication,\n * // check the operationType to determine what triggered this redirect\n * // operation.\n * const operationType = result.operationType;\n * ```\n *\n * @param auth - The {@link Auth} instance.\n * @param provider - The provider to authenticate. The provider has to be an {@link OAuthProvider}.\n * Non-OAuth providers like {@link EmailAuthProvider} will throw an error.\n * @param resolver - An instance of {@link PopupRedirectResolver}, optional\n * if already supplied to {@link initializeAuth} or provided by {@link getAuth}.\n *\n * @public\n */\nexport function signInWithRedirect(\n auth: Auth,\n provider: AuthProvider,\n resolver?: PopupRedirectResolver\n): Promise {\n return _signInWithRedirect(auth, provider, resolver) as Promise;\n}\n\nexport async function _signInWithRedirect(\n auth: Auth,\n provider: AuthProvider,\n resolver?: PopupRedirectResolver\n): Promise {\n const authInternal = _castAuth(auth);\n _assertInstanceOf(auth, provider, FederatedAuthProvider);\n // Wait for auth initialization to complete, this will process pending redirects and clear the\n // PENDING_REDIRECT_KEY in persistence. This should be completed before starting a new\n // redirect and creating a PENDING_REDIRECT_KEY entry.\n await authInternal._initializationPromise;\n const resolverInternal = _withDefaultResolver(authInternal, resolver);\n await _setPendingRedirectStatus(resolverInternal, authInternal);\n\n return resolverInternal._openRedirect(\n authInternal,\n provider,\n AuthEventType.SIGN_IN_VIA_REDIRECT\n );\n}\n\n/**\n * Reauthenticates the current user with the specified {@link OAuthProvider} using a full-page redirect flow.\n * @remarks\n * To handle the results and errors for this operation, refer to {@link getRedirectResult}.\n * Follow the {@link https://firebase.google.com/docs/auth/web/redirect-best-practices\n * | best practices} when using {@link reauthenticateWithRedirect}.\n *\n * This method does not work in a Node.js environment.\n *\n * @example\n * ```javascript\n * // Sign in using a redirect.\n * const provider = new FacebookAuthProvider();\n * const result = await signInWithRedirect(auth, provider);\n * // This will trigger a full page redirect away from your app\n *\n * // After returning from the redirect when your app initializes you can obtain the result\n * const result = await getRedirectResult(auth);\n * // Reauthenticate using a redirect.\n * await reauthenticateWithRedirect(result.user, provider);\n * // This will again trigger a full page redirect away from your app\n *\n * // After returning from the redirect when your app initializes you can obtain the result\n * const result = await getRedirectResult(auth);\n * ```\n *\n * @param user - The user.\n * @param provider - The provider to authenticate. The provider has to be an {@link OAuthProvider}.\n * Non-OAuth providers like {@link EmailAuthProvider} will throw an error.\n * @param resolver - An instance of {@link PopupRedirectResolver}, optional\n * if already supplied to {@link initializeAuth} or provided by {@link getAuth}.\n *\n * @public\n */\nexport function reauthenticateWithRedirect(\n user: User,\n provider: AuthProvider,\n resolver?: PopupRedirectResolver\n): Promise {\n return _reauthenticateWithRedirect(\n user,\n provider,\n resolver\n ) as Promise;\n}\nexport async function _reauthenticateWithRedirect(\n user: User,\n provider: AuthProvider,\n resolver?: PopupRedirectResolver\n): Promise {\n const userInternal = getModularInstance(user) as UserInternal;\n _assertInstanceOf(userInternal.auth, provider, FederatedAuthProvider);\n // Wait for auth initialization to complete, this will process pending redirects and clear the\n // PENDING_REDIRECT_KEY in persistence. This should be completed before starting a new\n // redirect and creating a PENDING_REDIRECT_KEY entry.\n await userInternal.auth._initializationPromise;\n // Allow the resolver to error before persisting the redirect user\n const resolverInternal = _withDefaultResolver(userInternal.auth, resolver);\n await _setPendingRedirectStatus(resolverInternal, userInternal.auth);\n\n const eventId = await prepareUserForRedirect(userInternal);\n return resolverInternal._openRedirect(\n userInternal.auth,\n provider,\n AuthEventType.REAUTH_VIA_REDIRECT,\n eventId\n );\n}\n\n/**\n * Links the {@link OAuthProvider} to the user account using a full-page redirect flow.\n * @remarks\n * To handle the results and errors for this operation, refer to {@link getRedirectResult}.\n * Follow the {@link https://firebase.google.com/docs/auth/web/redirect-best-practices\n * | best practices} when using {@link linkWithRedirect}.\n *\n * This method does not work in a Node.js environment.\n *\n * @example\n * ```javascript\n * // Sign in using some other provider.\n * const result = await signInWithEmailAndPassword(auth, email, password);\n * // Link using a redirect.\n * const provider = new FacebookAuthProvider();\n * await linkWithRedirect(result.user, provider);\n * // This will trigger a full page redirect away from your app\n *\n * // After returning from the redirect when your app initializes you can obtain the result\n * const result = await getRedirectResult(auth);\n * ```\n *\n * @param user - The user.\n * @param provider - The provider to authenticate. The provider has to be an {@link OAuthProvider}.\n * Non-OAuth providers like {@link EmailAuthProvider} will throw an error.\n * @param resolver - An instance of {@link PopupRedirectResolver}, optional\n * if already supplied to {@link initializeAuth} or provided by {@link getAuth}.\n *\n * @public\n */\nexport function linkWithRedirect(\n user: User,\n provider: AuthProvider,\n resolver?: PopupRedirectResolver\n): Promise {\n return _linkWithRedirect(user, provider, resolver) as Promise;\n}\nexport async function _linkWithRedirect(\n user: User,\n provider: AuthProvider,\n resolver?: PopupRedirectResolver\n): Promise {\n const userInternal = getModularInstance(user) as UserInternal;\n _assertInstanceOf(userInternal.auth, provider, FederatedAuthProvider);\n // Wait for auth initialization to complete, this will process pending redirects and clear the\n // PENDING_REDIRECT_KEY in persistence. This should be completed before starting a new\n // redirect and creating a PENDING_REDIRECT_KEY entry.\n await userInternal.auth._initializationPromise;\n // Allow the resolver to error before persisting the redirect user\n const resolverInternal = _withDefaultResolver(userInternal.auth, resolver);\n await _assertLinkedStatus(false, userInternal, provider.providerId);\n await _setPendingRedirectStatus(resolverInternal, userInternal.auth);\n\n const eventId = await prepareUserForRedirect(userInternal);\n return resolverInternal._openRedirect(\n userInternal.auth,\n provider,\n AuthEventType.LINK_VIA_REDIRECT,\n eventId\n );\n}\n\n/**\n * Returns a {@link UserCredential} from the redirect-based sign-in flow.\n *\n * @remarks\n * If sign-in succeeded, returns the signed in user. If sign-in was unsuccessful, fails with an\n * error. If no redirect operation was called, returns `null`.\n *\n * This method does not work in a Node.js environment.\n *\n * @example\n * ```javascript\n * // Sign in using a redirect.\n * const provider = new FacebookAuthProvider();\n * // You can add additional scopes to the provider:\n * provider.addScope('user_birthday');\n * // Start a sign in process for an unauthenticated user.\n * await signInWithRedirect(auth, provider);\n * // This will trigger a full page redirect away from your app\n *\n * // After returning from the redirect when your app initializes you can obtain the result\n * const result = await getRedirectResult(auth);\n * if (result) {\n * // This is the signed-in user\n * const user = result.user;\n * // This gives you a Facebook Access Token.\n * const credential = provider.credentialFromResult(auth, result);\n * const token = credential.accessToken;\n * }\n * // As this API can be used for sign-in, linking and reauthentication,\n * // check the operationType to determine what triggered this redirect\n * // operation.\n * const operationType = result.operationType;\n * ```\n *\n * @param auth - The {@link Auth} instance.\n * @param resolver - An instance of {@link PopupRedirectResolver}, optional\n * if already supplied to {@link initializeAuth} or provided by {@link getAuth}.\n *\n * @public\n */\nexport async function getRedirectResult(\n auth: Auth,\n resolver?: PopupRedirectResolver\n): Promise {\n await _castAuth(auth)._initializationPromise;\n return _getRedirectResult(auth, resolver, false);\n}\n\nexport async function _getRedirectResult(\n auth: Auth,\n resolverExtern?: PopupRedirectResolver,\n bypassAuthState = false\n): Promise {\n const authInternal = _castAuth(auth);\n const resolver = _withDefaultResolver(authInternal, resolverExtern);\n const action = new RedirectAction(authInternal, resolver, bypassAuthState);\n const result = await action.execute();\n\n if (result && !bypassAuthState) {\n delete result.user._redirectEventId;\n await authInternal._persistUserIfCurrent(result.user as UserInternal);\n await authInternal._setRedirectUser(null, resolverExtern);\n }\n\n return result;\n}\n\nasync function prepareUserForRedirect(user: UserInternal): Promise {\n const eventId = _generateEventId(`${user.uid}:::`);\n user._redirectEventId = eventId;\n await user.auth._setRedirectUser(user);\n await user.auth._persistUserIfCurrent(user);\n return eventId;\n}\n","/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {\n AuthEvent,\n AuthEventConsumer,\n AuthEventType,\n EventManager\n} from '../../model/popup_redirect';\nimport { AuthErrorCode } from '../errors';\nimport { AuthInternal } from '../../model/auth';\nimport { _createError } from '../util/assert';\n\n// The amount of time to store the UIDs of seen events; this is\n// set to 10 min by default\nconst EVENT_DUPLICATION_CACHE_DURATION_MS = 10 * 60 * 1000;\n\nexport class AuthEventManager implements EventManager {\n private readonly cachedEventUids: Set = new Set();\n private readonly consumers: Set = new Set();\n protected queuedRedirectEvent: AuthEvent | null = null;\n protected hasHandledPotentialRedirect = false;\n private lastProcessedEventTime = Date.now();\n\n constructor(private readonly auth: AuthInternal) {}\n\n registerConsumer(authEventConsumer: AuthEventConsumer): void {\n this.consumers.add(authEventConsumer);\n\n if (\n this.queuedRedirectEvent &&\n this.isEventForConsumer(this.queuedRedirectEvent, authEventConsumer)\n ) {\n this.sendToConsumer(this.queuedRedirectEvent, authEventConsumer);\n this.saveEventToCache(this.queuedRedirectEvent);\n this.queuedRedirectEvent = null;\n }\n }\n\n unregisterConsumer(authEventConsumer: AuthEventConsumer): void {\n this.consumers.delete(authEventConsumer);\n }\n\n onEvent(event: AuthEvent): boolean {\n // Check if the event has already been handled\n if (this.hasEventBeenHandled(event)) {\n return false;\n }\n\n let handled = false;\n this.consumers.forEach(consumer => {\n if (this.isEventForConsumer(event, consumer)) {\n handled = true;\n this.sendToConsumer(event, consumer);\n this.saveEventToCache(event);\n }\n });\n\n if (this.hasHandledPotentialRedirect || !isRedirectEvent(event)) {\n // If we've already seen a redirect before, or this is a popup event,\n // bail now\n return handled;\n }\n\n this.hasHandledPotentialRedirect = true;\n\n // If the redirect wasn't handled, hang on to it\n if (!handled) {\n this.queuedRedirectEvent = event;\n handled = true;\n }\n\n return handled;\n }\n\n private sendToConsumer(event: AuthEvent, consumer: AuthEventConsumer): void {\n if (event.error && !isNullRedirectEvent(event)) {\n const code =\n (event.error.code?.split('auth/')[1] as AuthErrorCode) ||\n AuthErrorCode.INTERNAL_ERROR;\n consumer.onError(_createError(this.auth, code));\n } else {\n consumer.onAuthEvent(event);\n }\n }\n\n private isEventForConsumer(\n event: AuthEvent,\n consumer: AuthEventConsumer\n ): boolean {\n const eventIdMatches =\n consumer.eventId === null ||\n (!!event.eventId && event.eventId === consumer.eventId);\n return consumer.filter.includes(event.type) && eventIdMatches;\n }\n\n private hasEventBeenHandled(event: AuthEvent): boolean {\n if (\n Date.now() - this.lastProcessedEventTime >=\n EVENT_DUPLICATION_CACHE_DURATION_MS\n ) {\n this.cachedEventUids.clear();\n }\n\n return this.cachedEventUids.has(eventUid(event));\n }\n\n private saveEventToCache(event: AuthEvent): void {\n this.cachedEventUids.add(eventUid(event));\n this.lastProcessedEventTime = Date.now();\n }\n}\n\nfunction eventUid(e: AuthEvent): string {\n return [e.type, e.eventId, e.sessionId, e.tenantId].filter(v => v).join('-');\n}\n\nfunction isNullRedirectEvent({ type, error }: AuthEvent): boolean {\n return (\n type === AuthEventType.UNKNOWN &&\n error?.code === `auth/${AuthErrorCode.NO_AUTH_EVENT}`\n );\n}\n\nfunction isRedirectEvent(event: AuthEvent): boolean {\n switch (event.type) {\n case AuthEventType.SIGN_IN_VIA_REDIRECT:\n case AuthEventType.LINK_VIA_REDIRECT:\n case AuthEventType.REAUTH_VIA_REDIRECT:\n return true;\n case AuthEventType.UNKNOWN:\n return isNullRedirectEvent(event);\n default:\n return false;\n }\n}\n","/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { _performApiRequest, Endpoint, HttpMethod } from '../index';\nimport { Auth } from '../../model/public_types';\n\nexport interface GetProjectConfigRequest {\n androidPackageName?: string;\n iosBundleId?: string;\n}\n\nexport interface GetProjectConfigResponse {\n authorizedDomains: string[];\n}\n\nexport async function _getProjectConfig(\n auth: Auth,\n request: GetProjectConfigRequest = {}\n): Promise {\n return _performApiRequest(\n auth,\n HttpMethod.GET,\n Endpoint.GET_PROJECT_CONFIG,\n request\n );\n}\n","/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { _getProjectConfig } from '../../api/project_config/get_project_config';\nimport { AuthInternal } from '../../model/auth';\nimport { AuthErrorCode } from '../errors';\nimport { _fail } from './assert';\nimport { _getCurrentUrl } from './location';\n\nconst IP_ADDRESS_REGEX = /^\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}$/;\nconst HTTP_REGEX = /^https?/;\n\nexport async function _validateOrigin(auth: AuthInternal): Promise {\n // Skip origin validation if we are in an emulated environment\n if (auth.config.emulator) {\n return;\n }\n\n const { authorizedDomains } = await _getProjectConfig(auth);\n\n for (const domain of authorizedDomains) {\n try {\n if (matchDomain(domain)) {\n return;\n }\n } catch {\n // Do nothing if there's a URL error; just continue searching\n }\n }\n\n // In the old SDK, this error also provides helpful messages.\n _fail(auth, AuthErrorCode.INVALID_ORIGIN);\n}\n\nfunction matchDomain(expected: string): boolean {\n const currentUrl = _getCurrentUrl();\n const { protocol, hostname } = new URL(currentUrl);\n if (expected.startsWith('chrome-extension://')) {\n const ceUrl = new URL(expected);\n\n if (ceUrl.hostname === '' && hostname === '') {\n // For some reason we're not parsing chrome URLs properly\n return (\n protocol === 'chrome-extension:' &&\n expected.replace('chrome-extension://', '') ===\n currentUrl.replace('chrome-extension://', '')\n );\n }\n\n return protocol === 'chrome-extension:' && ceUrl.hostname === hostname;\n }\n\n if (!HTTP_REGEX.test(protocol)) {\n return false;\n }\n\n if (IP_ADDRESS_REGEX.test(expected)) {\n // The domain has to be exactly equal to the pattern, as an IP domain will\n // only contain the IP, no extra character.\n return hostname === expected;\n }\n\n // Dots in pattern should be escaped.\n const escapedDomainPattern = expected.replace(/\\./g, '\\\\.');\n // Non ip address domains.\n // domain.com = *.domain.com OR domain.com\n const re = new RegExp(\n '^(.+\\\\.' + escapedDomainPattern + '|' + escapedDomainPattern + ')$',\n 'i'\n );\n return re.test(hostname);\n}\n","/**\n * @license\n * Copyright 2020 Google LLC.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { AuthErrorCode } from '../../core/errors';\nimport { _createError } from '../../core/util/assert';\nimport { Delay } from '../../core/util/delay';\nimport { AuthInternal } from '../../model/auth';\nimport { _window } from '../auth_window';\nimport * as js from '../load_js';\n\nconst NETWORK_TIMEOUT = new Delay(30000, 60000);\n\n/**\n * Reset unlaoded GApi modules. If gapi.load fails due to a network error,\n * it will stop working after a retrial. This is a hack to fix this issue.\n */\nfunction resetUnloadedGapiModules(): void {\n // Clear last failed gapi.load state to force next gapi.load to first\n // load the failed gapi.iframes module.\n // Get gapix.beacon context.\n const beacon = _window().___jsl;\n // Get current hint.\n if (beacon?.H) {\n // Get gapi hint.\n for (const hint of Object.keys(beacon.H)) {\n // Requested modules.\n beacon.H[hint].r = beacon.H[hint].r || [];\n // Loaded modules.\n beacon.H[hint].L = beacon.H[hint].L || [];\n // Set requested modules to a copy of the loaded modules.\n beacon.H[hint].r = [...beacon.H[hint].L];\n // Clear pending callbacks.\n if (beacon.CP) {\n for (let i = 0; i < beacon.CP.length; i++) {\n // Remove all failed pending callbacks.\n beacon.CP[i] = null;\n }\n }\n }\n }\n}\n\nfunction loadGapi(auth: AuthInternal): Promise {\n return new Promise((resolve, reject) => {\n // Function to run when gapi.load is ready.\n function loadGapiIframe(): void {\n // The developer may have tried to previously run gapi.load and failed.\n // Run this to fix that.\n resetUnloadedGapiModules();\n gapi.load('gapi.iframes', {\n callback: () => {\n resolve(gapi.iframes.getContext());\n },\n ontimeout: () => {\n // The above reset may be sufficient, but having this reset after\n // failure ensures that if the developer calls gapi.load after the\n // connection is re-established and before another attempt to embed\n // the iframe, it would work and would not be broken because of our\n // failed attempt.\n // Timeout when gapi.iframes.Iframe not loaded.\n resetUnloadedGapiModules();\n reject(_createError(auth, AuthErrorCode.NETWORK_REQUEST_FAILED));\n },\n timeout: NETWORK_TIMEOUT.get()\n });\n }\n\n if (_window().gapi?.iframes?.Iframe) {\n // If gapi.iframes.Iframe available, resolve.\n resolve(gapi.iframes.getContext());\n } else if (!!_window().gapi?.load) {\n // Gapi loader ready, load gapi.iframes.\n loadGapiIframe();\n } else {\n // Create a new iframe callback when this is called so as not to overwrite\n // any previous defined callback. This happens if this method is called\n // multiple times in parallel and could result in the later callback\n // overwriting the previous one. This would end up with a iframe\n // timeout.\n const cbName = js._generateCallbackName('iframefcb');\n // GApi loader not available, dynamically load platform.js.\n _window()[cbName] = () => {\n // GApi loader should be ready.\n if (!!gapi.load) {\n loadGapiIframe();\n } else {\n // Gapi loader failed, throw error.\n reject(_createError(auth, AuthErrorCode.NETWORK_REQUEST_FAILED));\n }\n };\n // Load GApi loader.\n return js\n ._loadJS(`https://apis.google.com/js/api.js?onload=${cbName}`)\n .catch(e => reject(e));\n }\n }).catch(error => {\n // Reset cached promise to allow for retrial.\n cachedGApiLoader = null;\n throw error;\n });\n}\n\nlet cachedGApiLoader: Promise | null = null;\nexport function _loadGapi(auth: AuthInternal): Promise {\n cachedGApiLoader = cachedGApiLoader || loadGapi(auth);\n return cachedGApiLoader;\n}\n\nexport function _resetLoader(): void {\n cachedGApiLoader = null;\n}\n","/**\n * @license\n * Copyright 2020 Google LLC.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { SDK_VERSION } from '@firebase/app';\nimport { querystring } from '@firebase/util';\nimport { DefaultConfig } from '../../../internal';\n\nimport { AuthErrorCode } from '../../core/errors';\nimport { _assert, _createError } from '../../core/util/assert';\nimport { Delay } from '../../core/util/delay';\nimport { _emulatorUrl } from '../../core/util/emulator';\nimport { AuthInternal } from '../../model/auth';\nimport { _window } from '../auth_window';\nimport * as gapiLoader from './gapi';\n\nconst PING_TIMEOUT = new Delay(5000, 15000);\nconst IFRAME_PATH = '__/auth/iframe';\nconst EMULATED_IFRAME_PATH = 'emulator/auth/iframe';\n\nconst IFRAME_ATTRIBUTES = {\n style: {\n position: 'absolute',\n top: '-100px',\n width: '1px',\n height: '1px'\n },\n 'aria-hidden': 'true',\n tabindex: '-1'\n};\n\n// Map from apiHost to endpoint ID for passing into iframe. In current SDK, apiHost can be set to\n// anything (not from a list of endpoints with IDs as in legacy), so this is the closest we can get.\nconst EID_FROM_APIHOST = new Map([\n [DefaultConfig.API_HOST, 'p'], // production\n ['staging-identitytoolkit.sandbox.googleapis.com', 's'], // staging\n ['test-identitytoolkit.sandbox.googleapis.com', 't'] // test\n]);\n\nfunction getIframeUrl(auth: AuthInternal): string {\n const config = auth.config;\n _assert(config.authDomain, auth, AuthErrorCode.MISSING_AUTH_DOMAIN);\n const url = config.emulator\n ? _emulatorUrl(config, EMULATED_IFRAME_PATH)\n : `https://${auth.config.authDomain}/${IFRAME_PATH}`;\n\n const params: Record = {\n apiKey: config.apiKey,\n appName: auth.name,\n v: SDK_VERSION\n };\n const eid = EID_FROM_APIHOST.get(auth.config.apiHost);\n if (eid) {\n params.eid = eid;\n }\n const frameworks = auth._getFrameworks();\n if (frameworks.length) {\n params.fw = frameworks.join(',');\n }\n return `${url}?${querystring(params).slice(1)}`;\n}\n\nexport async function _openIframe(\n auth: AuthInternal\n): Promise {\n const context = await gapiLoader._loadGapi(auth);\n const gapi = _window().gapi;\n _assert(gapi, auth, AuthErrorCode.INTERNAL_ERROR);\n return context.open(\n {\n where: document.body,\n url: getIframeUrl(auth),\n messageHandlersFilter: gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER,\n attributes: IFRAME_ATTRIBUTES,\n dontclear: true\n },\n (iframe: gapi.iframes.Iframe) =>\n new Promise(async (resolve, reject) => {\n await iframe.restyle({\n // Prevent iframe from closing on mouse out.\n setHideOnLeave: false\n });\n\n const networkError = _createError(\n auth,\n AuthErrorCode.NETWORK_REQUEST_FAILED\n );\n // Confirm iframe is correctly loaded.\n // To fallback on failure, set a timeout.\n const networkErrorTimer = _window().setTimeout(() => {\n reject(networkError);\n }, PING_TIMEOUT.get());\n // Clear timer and resolve pending iframe ready promise.\n function clearTimerAndResolve(): void {\n _window().clearTimeout(networkErrorTimer);\n resolve(iframe);\n }\n // This returns an IThenable. However the reject part does not call\n // when the iframe is not loaded.\n iframe.ping(clearTimerAndResolve).then(clearTimerAndResolve, () => {\n reject(networkError);\n });\n })\n );\n}\n","/**\n * @license\n * Copyright 2020 Google LLC.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { getUA } from '@firebase/util';\n\nimport { AuthErrorCode } from '../../core/errors';\nimport { _assert } from '../../core/util/assert';\nimport {\n _isChromeIOS,\n _isFirefox,\n _isIOSStandalone\n} from '../../core/util/browser';\nimport { AuthInternal } from '../../model/auth';\n\nconst BASE_POPUP_OPTIONS = {\n location: 'yes',\n resizable: 'yes',\n statusbar: 'yes',\n toolbar: 'no'\n};\n\nconst DEFAULT_WIDTH = 500;\nconst DEFAULT_HEIGHT = 600;\nconst TARGET_BLANK = '_blank';\n\nconst FIREFOX_EMPTY_URL = 'http://localhost';\n\nexport class AuthPopup {\n associatedEvent: string | null = null;\n\n constructor(readonly window: Window | null) {}\n\n close(): void {\n if (this.window) {\n try {\n this.window.close();\n } catch (e) {}\n }\n }\n}\n\nexport function _open(\n auth: AuthInternal,\n url?: string,\n name?: string,\n width = DEFAULT_WIDTH,\n height = DEFAULT_HEIGHT\n): AuthPopup {\n const top = Math.max((window.screen.availHeight - height) / 2, 0).toString();\n const left = Math.max((window.screen.availWidth - width) / 2, 0).toString();\n let target = '';\n\n const options: { [key: string]: string } = {\n ...BASE_POPUP_OPTIONS,\n width: width.toString(),\n height: height.toString(),\n top,\n left\n };\n\n // Chrome iOS 7 and 8 is returning an undefined popup win when target is\n // specified, even though the popup is not necessarily blocked.\n const ua = getUA().toLowerCase();\n\n if (name) {\n target = _isChromeIOS(ua) ? TARGET_BLANK : name;\n }\n\n if (_isFirefox(ua)) {\n // Firefox complains when invalid URLs are popped out. Hacky way to bypass.\n url = url || FIREFOX_EMPTY_URL;\n // Firefox disables by default scrolling on popup windows, which can create\n // issues when the user has many Google accounts, for instance.\n options.scrollbars = 'yes';\n }\n\n const optionsString = Object.entries(options).reduce(\n (accum, [key, value]) => `${accum}${key}=${value},`,\n ''\n );\n\n if (_isIOSStandalone(ua) && target !== '_self') {\n openAsNewWindowIOS(url || '', target);\n return new AuthPopup(null);\n }\n\n // about:blank getting sanitized causing browsers like IE/Edge to display\n // brief error message before redirecting to handler.\n const newWin = window.open(url || '', target, optionsString);\n _assert(newWin, auth, AuthErrorCode.POPUP_BLOCKED);\n\n // Flaky on IE edge, encapsulate with a try and catch.\n try {\n newWin.focus();\n } catch (e) {}\n\n return new AuthPopup(newWin);\n}\n\nfunction openAsNewWindowIOS(url: string, target: string): void {\n const el = document.createElement('a');\n el.href = url;\n el.target = target;\n const click = document.createEvent('MouseEvent');\n click.initMouseEvent(\n 'click',\n true,\n true,\n window,\n 1,\n 0,\n 0,\n 0,\n 0,\n false,\n false,\n false,\n false,\n 1,\n null\n );\n el.dispatchEvent(click);\n}\n","/**\n * @license\n * Copyright 2021 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { SDK_VERSION } from '@firebase/app';\nimport { AuthProvider } from '../../model/public_types';\nimport { ApiKey, AppName, AuthInternal } from '../../model/auth';\nimport { AuthEventType } from '../../model/popup_redirect';\nimport { AuthErrorCode } from '../errors';\nimport { _assert } from './assert';\nimport { isEmpty, querystring } from '@firebase/util';\nimport { _emulatorUrl } from './emulator';\nimport { FederatedAuthProvider } from '../providers/federated';\nimport { BaseOAuthProvider } from '../providers/oauth';\n\n/**\n * URL for Authentication widget which will initiate the OAuth handshake\n *\n * @internal\n */\nconst WIDGET_PATH = '__/auth/handler';\n\n/**\n * URL for emulated environment\n *\n * @internal\n */\nconst EMULATOR_WIDGET_PATH = 'emulator/auth/handler';\n\n/**\n * Fragment name for the App Check token that gets passed to the widget\n *\n * @internal\n */\nconst FIREBASE_APP_CHECK_FRAGMENT_ID = encodeURIComponent('fac');\n\n// eslint-disable-next-line @typescript-eslint/consistent-type-definitions\ntype WidgetParams = {\n apiKey: ApiKey;\n appName: AppName;\n authType: AuthEventType;\n redirectUrl?: string;\n v: string;\n providerId?: string;\n scopes?: string;\n customParameters?: string;\n eventId?: string;\n tid?: string;\n} & { [key: string]: string | undefined };\n\nexport async function _getRedirectUrl(\n auth: AuthInternal,\n provider: AuthProvider,\n authType: AuthEventType,\n redirectUrl?: string,\n eventId?: string,\n additionalParams?: Record\n): Promise {\n _assert(auth.config.authDomain, auth, AuthErrorCode.MISSING_AUTH_DOMAIN);\n _assert(auth.config.apiKey, auth, AuthErrorCode.INVALID_API_KEY);\n\n const params: WidgetParams = {\n apiKey: auth.config.apiKey,\n appName: auth.name,\n authType,\n redirectUrl,\n v: SDK_VERSION,\n eventId\n };\n\n if (provider instanceof FederatedAuthProvider) {\n provider.setDefaultLanguage(auth.languageCode);\n params.providerId = provider.providerId || '';\n if (!isEmpty(provider.getCustomParameters())) {\n params.customParameters = JSON.stringify(provider.getCustomParameters());\n }\n\n // TODO set additionalParams from the provider as well?\n for (const [key, value] of Object.entries(additionalParams || {})) {\n params[key] = value;\n }\n }\n\n if (provider instanceof BaseOAuthProvider) {\n const scopes = provider.getScopes().filter(scope => scope !== '');\n if (scopes.length > 0) {\n params.scopes = scopes.join(',');\n }\n }\n\n if (auth.tenantId) {\n params.tid = auth.tenantId;\n }\n\n // TODO: maybe set eid as endipointId\n // TODO: maybe set fw as Frameworks.join(\",\")\n\n const paramsDict = params as Record;\n for (const key of Object.keys(paramsDict)) {\n if (paramsDict[key] === undefined) {\n delete paramsDict[key];\n }\n }\n\n // Sets the App Check token to pass to the widget\n const appCheckToken = await auth._getAppCheckToken();\n const appCheckTokenFragment = appCheckToken\n ? `#${FIREBASE_APP_CHECK_FRAGMENT_ID}=${encodeURIComponent(appCheckToken)}`\n : '';\n\n // Start at index 1 to skip the leading '&' in the query string\n return `${getHandlerBase(auth)}?${querystring(paramsDict).slice(\n 1\n )}${appCheckTokenFragment}`;\n}\n\nfunction getHandlerBase({ config }: AuthInternal): string {\n if (!config.emulator) {\n return `https://${config.authDomain}/${WIDGET_PATH}`;\n }\n\n return _emulatorUrl(config, EMULATOR_WIDGET_PATH);\n}\n","/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { AuthProvider, PopupRedirectResolver } from '../model/public_types';\n\nimport { AuthEventManager } from '../core/auth/auth_event_manager';\nimport { AuthErrorCode } from '../core/errors';\nimport { _assert, debugAssert, _fail } from '../core/util/assert';\nimport { _generateEventId } from '../core/util/event_id';\nimport { _getCurrentUrl } from '../core/util/location';\nimport { _validateOrigin } from '../core/util/validate_origin';\nimport { AuthInternal } from '../model/auth';\nimport {\n AuthEventType,\n EventManager,\n GapiAuthEvent,\n GapiOutcome,\n PopupRedirectResolverInternal\n} from '../model/popup_redirect';\nimport { _setWindowLocation } from './auth_window';\nimport { _openIframe } from './iframe/iframe';\nimport { browserSessionPersistence } from './persistence/session_storage';\nimport { _open, AuthPopup } from './util/popup';\nimport { _getRedirectResult } from './strategies/redirect';\nimport { _getRedirectUrl } from '../core/util/handler';\nimport { _isIOS, _isMobileBrowser, _isSafari } from '../core/util/browser';\nimport { _overrideRedirectResult } from '../core/strategies/redirect';\n\n/**\n * The special web storage event\n *\n */\nconst WEB_STORAGE_SUPPORT_KEY = 'webStorageSupport';\n\ninterface WebStorageSupportMessage extends gapi.iframes.Message {\n [index: number]: Record;\n}\n\ninterface ManagerOrPromise {\n manager?: EventManager;\n promise?: Promise;\n}\n\nclass BrowserPopupRedirectResolver implements PopupRedirectResolverInternal {\n private readonly eventManagers: Record = {};\n private readonly iframes: Record = {};\n private readonly originValidationPromises: Record> = {};\n\n readonly _redirectPersistence = browserSessionPersistence;\n\n // Wrapping in async even though we don't await anywhere in order\n // to make sure errors are raised as promise rejections\n async _openPopup(\n auth: AuthInternal,\n provider: AuthProvider,\n authType: AuthEventType,\n eventId?: string\n ): Promise {\n debugAssert(\n this.eventManagers[auth._key()]?.manager,\n '_initialize() not called before _openPopup()'\n );\n\n const url = await _getRedirectUrl(\n auth,\n provider,\n authType,\n _getCurrentUrl(),\n eventId\n );\n return _open(auth, url, _generateEventId());\n }\n\n async _openRedirect(\n auth: AuthInternal,\n provider: AuthProvider,\n authType: AuthEventType,\n eventId?: string\n ): Promise {\n await this._originValidation(auth);\n const url = await _getRedirectUrl(\n auth,\n provider,\n authType,\n _getCurrentUrl(),\n eventId\n );\n _setWindowLocation(url);\n return new Promise(() => {});\n }\n\n _initialize(auth: AuthInternal): Promise {\n const key = auth._key();\n if (this.eventManagers[key]) {\n const { manager, promise } = this.eventManagers[key];\n if (manager) {\n return Promise.resolve(manager);\n } else {\n debugAssert(promise, 'If manager is not set, promise should be');\n return promise;\n }\n }\n\n const promise = this.initAndGetManager(auth);\n this.eventManagers[key] = { promise };\n\n // If the promise is rejected, the key should be removed so that the\n // operation can be retried later.\n promise.catch(() => {\n delete this.eventManagers[key];\n });\n\n return promise;\n }\n\n private async initAndGetManager(auth: AuthInternal): Promise {\n const iframe = await _openIframe(auth);\n const manager = new AuthEventManager(auth);\n iframe.register(\n 'authEvent',\n (iframeEvent: GapiAuthEvent | null) => {\n _assert(iframeEvent?.authEvent, auth, AuthErrorCode.INVALID_AUTH_EVENT);\n // TODO: Consider splitting redirect and popup events earlier on\n\n const handled = manager.onEvent(iframeEvent.authEvent);\n return { status: handled ? GapiOutcome.ACK : GapiOutcome.ERROR };\n },\n gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER\n );\n\n this.eventManagers[auth._key()] = { manager };\n this.iframes[auth._key()] = iframe;\n return manager;\n }\n\n _isIframeWebStorageSupported(\n auth: AuthInternal,\n cb: (supported: boolean) => unknown\n ): void {\n const iframe = this.iframes[auth._key()];\n iframe.send(\n WEB_STORAGE_SUPPORT_KEY,\n { type: WEB_STORAGE_SUPPORT_KEY },\n result => {\n const isSupported = result?.[0]?.[WEB_STORAGE_SUPPORT_KEY];\n if (isSupported !== undefined) {\n cb(!!isSupported);\n }\n\n _fail(auth, AuthErrorCode.INTERNAL_ERROR);\n },\n gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER\n );\n }\n\n _originValidation(auth: AuthInternal): Promise {\n const key = auth._key();\n if (!this.originValidationPromises[key]) {\n this.originValidationPromises[key] = _validateOrigin(auth);\n }\n\n return this.originValidationPromises[key];\n }\n\n get _shouldInitProactively(): boolean {\n // Mobile browsers and Safari need to optimistically initialize\n return _isMobileBrowser() || _isSafari() || _isIOS();\n }\n\n _completeRedirectFn = _getRedirectResult;\n\n _overrideRedirectResult = _overrideRedirectResult;\n}\n\n/**\n * An implementation of {@link PopupRedirectResolver} suitable for browser\n * based applications.\n *\n * @remarks\n * This method does not work in a Node.js environment.\n *\n * @public\n */\nexport const browserPopupRedirectResolver: PopupRedirectResolver =\n BrowserPopupRedirectResolver;\n","/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { FactorId, MultiFactorAssertion } from '../model/public_types';\nimport { debugFail } from '../core/util/assert';\nimport { MultiFactorSessionImpl, MultiFactorSessionType } from './mfa_session';\nimport { FinalizeMfaResponse } from '../api/authentication/mfa';\nimport { AuthInternal } from '../model/auth';\n\nexport abstract class MultiFactorAssertionImpl implements MultiFactorAssertion {\n protected constructor(readonly factorId: FactorId) {}\n\n _process(\n auth: AuthInternal,\n session: MultiFactorSessionImpl,\n displayName?: string | null\n ): Promise {\n switch (session.type) {\n case MultiFactorSessionType.ENROLL:\n return this._finalizeEnroll(auth, session.credential, displayName);\n case MultiFactorSessionType.SIGN_IN:\n return this._finalizeSignIn(auth, session.credential);\n default:\n return debugFail('unexpected MultiFactorSessionType');\n }\n }\n\n abstract _finalizeEnroll(\n auth: AuthInternal,\n idToken: string,\n displayName?: string | null\n ): Promise;\n abstract _finalizeSignIn(\n auth: AuthInternal,\n mfaPendingCredential: string\n ): Promise;\n}\n","/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport {\n FactorId,\n PhoneMultiFactorAssertion\n} from '../../../model/public_types';\n\nimport { MultiFactorAssertionImpl } from '../../../mfa/mfa_assertion';\nimport { AuthInternal } from '../../../model/auth';\nimport { finalizeEnrollPhoneMfa } from '../../../api/account_management/mfa';\nimport { PhoneAuthCredential } from '../../../core/credentials/phone';\nimport {\n finalizeSignInPhoneMfa,\n FinalizeMfaResponse\n} from '../../../api/authentication/mfa';\n\n/**\n * {@inheritdoc PhoneMultiFactorAssertion}\n *\n * @public\n */\nexport class PhoneMultiFactorAssertionImpl\n extends MultiFactorAssertionImpl\n implements PhoneMultiFactorAssertion\n{\n private constructor(private readonly credential: PhoneAuthCredential) {\n super(FactorId.PHONE);\n }\n\n /** @internal */\n static _fromCredential(\n credential: PhoneAuthCredential\n ): PhoneMultiFactorAssertionImpl {\n return new PhoneMultiFactorAssertionImpl(credential);\n }\n\n /** @internal */\n _finalizeEnroll(\n auth: AuthInternal,\n idToken: string,\n displayName?: string | null\n ): Promise {\n return finalizeEnrollPhoneMfa(auth, {\n idToken,\n displayName,\n phoneVerificationInfo: this.credential._makeVerificationRequest()\n });\n }\n\n /** @internal */\n _finalizeSignIn(\n auth: AuthInternal,\n mfaPendingCredential: string\n ): Promise {\n return finalizeSignInPhoneMfa(auth, {\n mfaPendingCredential,\n phoneVerificationInfo: this.credential._makeVerificationRequest()\n });\n }\n}\n\n/**\n * Provider for generating a {@link PhoneMultiFactorAssertion}.\n *\n * @public\n */\nexport class PhoneMultiFactorGenerator {\n private constructor() {}\n\n /**\n * Provides a {@link PhoneMultiFactorAssertion} to confirm ownership of the phone second factor.\n *\n * @remarks\n * This method does not work in a Node.js environment.\n *\n * @param phoneAuthCredential - A credential provided by {@link PhoneAuthProvider.credential}.\n * @returns A {@link PhoneMultiFactorAssertion} which can be used with\n * {@link MultiFactorResolver.resolveSignIn}\n */\n static assertion(credential: PhoneAuthCredential): PhoneMultiFactorAssertion {\n return PhoneMultiFactorAssertionImpl._fromCredential(credential);\n }\n\n /**\n * The identifier of the phone second factor: `phone`.\n */\n static FACTOR_ID = 'phone';\n}\n","/**\n * @license\n * Copyright 2022 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport {\n TotpMultiFactorAssertion,\n MultiFactorSession,\n FactorId\n} from '../../model/public_types';\nimport { AuthInternal } from '../../model/auth';\nimport {\n finalizeEnrollTotpMfa,\n startEnrollTotpMfa,\n StartTotpMfaEnrollmentResponse,\n TotpVerificationInfo\n} from '../../api/account_management/mfa';\nimport {\n FinalizeMfaResponse,\n finalizeSignInTotpMfa\n} from '../../api/authentication/mfa';\nimport { MultiFactorAssertionImpl } from '../../mfa/mfa_assertion';\nimport { MultiFactorSessionImpl } from '../mfa_session';\nimport { AuthErrorCode } from '../../core/errors';\nimport { _assert } from '../../core/util/assert';\n\n/**\n * Provider for generating a {@link TotpMultiFactorAssertion}.\n *\n * @public\n */\nexport class TotpMultiFactorGenerator {\n /**\n * Provides a {@link TotpMultiFactorAssertion} to confirm ownership of\n * the TOTP (time-based one-time password) second factor.\n * This assertion is used to complete enrollment in TOTP second factor.\n *\n * @param secret A {@link TotpSecret} containing the shared secret key and other TOTP parameters.\n * @param oneTimePassword One-time password from TOTP App.\n * @returns A {@link TotpMultiFactorAssertion} which can be used with\n * {@link MultiFactorUser.enroll}.\n */\n static assertionForEnrollment(\n secret: TotpSecret,\n oneTimePassword: string\n ): TotpMultiFactorAssertion {\n return TotpMultiFactorAssertionImpl._fromSecret(secret, oneTimePassword);\n }\n\n /**\n * Provides a {@link TotpMultiFactorAssertion} to confirm ownership of the TOTP second factor.\n * This assertion is used to complete signIn with TOTP as the second factor.\n *\n * @param enrollmentId identifies the enrolled TOTP second factor.\n * @param oneTimePassword One-time password from TOTP App.\n * @returns A {@link TotpMultiFactorAssertion} which can be used with\n * {@link MultiFactorResolver.resolveSignIn}.\n */\n static assertionForSignIn(\n enrollmentId: string,\n oneTimePassword: string\n ): TotpMultiFactorAssertion {\n return TotpMultiFactorAssertionImpl._fromEnrollmentId(\n enrollmentId,\n oneTimePassword\n );\n }\n\n /**\n * Returns a promise to {@link TotpSecret} which contains the TOTP shared secret key and other parameters.\n * Creates a TOTP secret as part of enrolling a TOTP second factor.\n * Used for generating a QR code URL or inputting into a TOTP app.\n * This method uses the auth instance corresponding to the user in the multiFactorSession.\n *\n * @param session The {@link MultiFactorSession} that the user is part of.\n * @returns A promise to {@link TotpSecret}.\n */\n static async generateSecret(\n session: MultiFactorSession\n ): Promise {\n const mfaSession = session as MultiFactorSessionImpl;\n _assert(\n typeof mfaSession.user?.auth !== 'undefined',\n AuthErrorCode.INTERNAL_ERROR\n );\n const response = await startEnrollTotpMfa(mfaSession.user.auth, {\n idToken: mfaSession.credential,\n totpEnrollmentInfo: {}\n });\n return TotpSecret._fromStartTotpMfaEnrollmentResponse(\n response,\n mfaSession.user.auth\n );\n }\n\n /**\n * The identifier of the TOTP second factor: `totp`.\n */\n static FACTOR_ID: 'totp' = FactorId.TOTP;\n}\n\nexport class TotpMultiFactorAssertionImpl\n extends MultiFactorAssertionImpl\n implements TotpMultiFactorAssertion\n{\n constructor(\n readonly otp: string,\n readonly enrollmentId?: string,\n readonly secret?: TotpSecret\n ) {\n super(FactorId.TOTP);\n }\n\n /** @internal */\n static _fromSecret(\n secret: TotpSecret,\n otp: string\n ): TotpMultiFactorAssertionImpl {\n return new TotpMultiFactorAssertionImpl(otp, undefined, secret);\n }\n\n /** @internal */\n static _fromEnrollmentId(\n enrollmentId: string,\n otp: string\n ): TotpMultiFactorAssertionImpl {\n return new TotpMultiFactorAssertionImpl(otp, enrollmentId);\n }\n\n /** @internal */\n async _finalizeEnroll(\n auth: AuthInternal,\n idToken: string,\n displayName?: string | null\n ): Promise {\n _assert(\n typeof this.secret !== 'undefined',\n auth,\n AuthErrorCode.ARGUMENT_ERROR\n );\n return finalizeEnrollTotpMfa(auth, {\n idToken,\n displayName,\n totpVerificationInfo: this.secret._makeTotpVerificationInfo(this.otp)\n });\n }\n\n /** @internal */\n async _finalizeSignIn(\n auth: AuthInternal,\n mfaPendingCredential: string\n ): Promise {\n _assert(\n this.enrollmentId !== undefined && this.otp !== undefined,\n auth,\n AuthErrorCode.ARGUMENT_ERROR\n );\n const totpVerificationInfo = { verificationCode: this.otp };\n return finalizeSignInTotpMfa(auth, {\n mfaPendingCredential,\n mfaEnrollmentId: this.enrollmentId,\n totpVerificationInfo\n });\n }\n}\n\n/**\n * Provider for generating a {@link TotpMultiFactorAssertion}.\n *\n * Stores the shared secret key and other parameters to generate time-based OTPs.\n * Implements methods to retrieve the shared secret key and generate a QR code URL.\n * @public\n */\nexport class TotpSecret {\n /**\n * Shared secret key/seed used for enrolling in TOTP MFA and generating OTPs.\n */\n readonly secretKey: string;\n /**\n * Hashing algorithm used.\n */\n readonly hashingAlgorithm: string;\n /**\n * Length of the one-time passwords to be generated.\n */\n readonly codeLength: number;\n /**\n * The interval (in seconds) when the OTP codes should change.\n */\n readonly codeIntervalSeconds: number;\n /**\n * The timestamp (UTC string) by which TOTP enrollment should be completed.\n */\n // This can be used by callers to show a countdown of when to enter OTP code by.\n readonly enrollmentCompletionDeadline: string;\n\n // The public members are declared outside the constructor so the docs can be generated.\n private constructor(\n secretKey: string,\n hashingAlgorithm: string,\n codeLength: number,\n codeIntervalSeconds: number,\n enrollmentCompletionDeadline: string,\n private readonly sessionInfo: string,\n private readonly auth: AuthInternal\n ) {\n this.secretKey = secretKey;\n this.hashingAlgorithm = hashingAlgorithm;\n this.codeLength = codeLength;\n this.codeIntervalSeconds = codeIntervalSeconds;\n this.enrollmentCompletionDeadline = enrollmentCompletionDeadline;\n }\n\n /** @internal */\n static _fromStartTotpMfaEnrollmentResponse(\n response: StartTotpMfaEnrollmentResponse,\n auth: AuthInternal\n ): TotpSecret {\n return new TotpSecret(\n response.totpSessionInfo.sharedSecretKey,\n response.totpSessionInfo.hashingAlgorithm,\n response.totpSessionInfo.verificationCodeLength,\n response.totpSessionInfo.periodSec,\n new Date(response.totpSessionInfo.finalizeEnrollmentTime).toUTCString(),\n response.totpSessionInfo.sessionInfo,\n auth\n );\n }\n\n /** @internal */\n _makeTotpVerificationInfo(otp: string): TotpVerificationInfo {\n return { sessionInfo: this.sessionInfo, verificationCode: otp };\n }\n\n /**\n * Returns a QR code URL as described in\n * https://github.com/google/google-authenticator/wiki/Key-Uri-Format\n * This can be displayed to the user as a QR code to be scanned into a TOTP app like Google Authenticator.\n * If the optional parameters are unspecified, an accountName of and issuer of are used.\n *\n * @param accountName the name of the account/app along with a user identifier.\n * @param issuer issuer of the TOTP (likely the app name).\n * @returns A QR code URL string.\n */\n generateQrCodeUrl(accountName?: string, issuer?: string): string {\n let useDefaults = false;\n if (_isEmptyString(accountName) || _isEmptyString(issuer)) {\n useDefaults = true;\n }\n if (useDefaults) {\n if (_isEmptyString(accountName)) {\n accountName = this.auth.currentUser?.email || 'unknownuser';\n }\n if (_isEmptyString(issuer)) {\n issuer = this.auth.name;\n }\n }\n return `otpauth://totp/${issuer}:${accountName}?secret=${this.secretKey}&issuer=${issuer}&algorithm=${this.hashingAlgorithm}&digits=${this.codeLength}`;\n }\n}\n\n/** @internal */\nfunction _isEmptyString(input?: string): boolean {\n return typeof input === 'undefined' || input?.length === 0;\n}\n","/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { Unsubscribe } from '@firebase/util';\nimport { FirebaseAuthInternal } from '@firebase/auth-interop-types';\n\nimport { AuthInternal } from '../../model/auth';\nimport { UserInternal } from '../../model/user';\nimport { _assert } from '../util/assert';\nimport { AuthErrorCode } from '../errors';\n\ninterface TokenListener {\n (tok: string | null): unknown;\n}\n\nexport class AuthInterop implements FirebaseAuthInternal {\n private readonly internalListeners: Map =\n new Map();\n\n constructor(private readonly auth: AuthInternal) {}\n\n getUid(): string | null {\n this.assertAuthConfigured();\n return this.auth.currentUser?.uid || null;\n }\n\n async getToken(\n forceRefresh?: boolean\n ): Promise<{ accessToken: string } | null> {\n this.assertAuthConfigured();\n await this.auth._initializationPromise;\n if (!this.auth.currentUser) {\n return null;\n }\n\n const accessToken = await this.auth.currentUser.getIdToken(forceRefresh);\n return { accessToken };\n }\n\n addAuthTokenListener(listener: TokenListener): void {\n this.assertAuthConfigured();\n if (this.internalListeners.has(listener)) {\n return;\n }\n\n const unsubscribe = this.auth.onIdTokenChanged(user => {\n listener(\n (user as UserInternal | null)?.stsTokenManager.accessToken || null\n );\n });\n this.internalListeners.set(listener, unsubscribe);\n this.updateProactiveRefresh();\n }\n\n removeAuthTokenListener(listener: TokenListener): void {\n this.assertAuthConfigured();\n const unsubscribe = this.internalListeners.get(listener);\n if (!unsubscribe) {\n return;\n }\n\n this.internalListeners.delete(listener);\n unsubscribe();\n this.updateProactiveRefresh();\n }\n\n private assertAuthConfigured(): void {\n _assert(\n this.auth._initializationPromise,\n AuthErrorCode.DEPENDENT_SDK_INIT_BEFORE_AUTH\n );\n }\n\n private updateProactiveRefresh(): void {\n if (this.internalListeners.size > 0) {\n this.auth._startProactiveRefresh();\n } else {\n this.auth._stopProactiveRefresh();\n }\n }\n}\n","/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { _registerComponent, registerVersion } from '@firebase/app';\nimport {\n Component,\n ComponentType,\n InstantiationMode\n} from '@firebase/component';\n\nimport { name, version } from '../../../package.json';\nimport { AuthErrorCode } from '../errors';\nimport { _assert } from '../util/assert';\nimport { _getClientVersion, ClientPlatform } from '../util/version';\nimport { _castAuth, AuthImpl, DefaultConfig } from './auth_impl';\nimport { AuthInterop } from './firebase_internal';\nimport { ConfigInternal } from '../../model/auth';\nimport { Dependencies } from '../../model/public_types';\nimport { _initializeAuthInstance } from './initialize';\n\nexport const enum _ComponentName {\n AUTH = 'auth',\n AUTH_INTERNAL = 'auth-internal'\n}\n\nfunction getVersionForPlatform(\n clientPlatform: ClientPlatform\n): string | undefined {\n switch (clientPlatform) {\n case ClientPlatform.NODE:\n return 'node';\n case ClientPlatform.REACT_NATIVE:\n return 'rn';\n case ClientPlatform.WORKER:\n return 'webworker';\n case ClientPlatform.CORDOVA:\n return 'cordova';\n default:\n return undefined;\n }\n}\n\n/** @internal */\nexport function registerAuth(clientPlatform: ClientPlatform): void {\n _registerComponent(\n new Component(\n _ComponentName.AUTH,\n (container, { options: deps }: { options?: Dependencies }) => {\n const app = container.getProvider('app').getImmediate()!;\n const heartbeatServiceProvider =\n container.getProvider<'heartbeat'>('heartbeat');\n const appCheckServiceProvider =\n container.getProvider<'app-check-internal'>('app-check-internal');\n const { apiKey, authDomain } = app.options;\n\n _assert(\n apiKey && !apiKey.includes(':'),\n AuthErrorCode.INVALID_API_KEY,\n { appName: app.name }\n );\n\n const config: ConfigInternal = {\n apiKey,\n authDomain,\n clientPlatform,\n apiHost: DefaultConfig.API_HOST,\n tokenApiHost: DefaultConfig.TOKEN_API_HOST,\n apiScheme: DefaultConfig.API_SCHEME,\n sdkClientVersion: _getClientVersion(clientPlatform)\n };\n\n const authInstance = new AuthImpl(\n app,\n heartbeatServiceProvider,\n appCheckServiceProvider,\n config\n );\n _initializeAuthInstance(authInstance, deps);\n\n return authInstance;\n },\n ComponentType.PUBLIC\n )\n /**\n * Auth can only be initialized by explicitly calling getAuth() or initializeAuth()\n * For why we do this, See go/firebase-next-auth-init\n */\n .setInstantiationMode(InstantiationMode.EXPLICIT)\n /**\n * Because all firebase products that depend on auth depend on auth-internal directly,\n * we need to initialize auth-internal after auth is initialized to make it available to other firebase products.\n */\n .setInstanceCreatedCallback(\n (container, _instanceIdentifier, _instance) => {\n const authInternalProvider = container.getProvider(\n _ComponentName.AUTH_INTERNAL\n );\n authInternalProvider.initialize();\n }\n )\n );\n\n _registerComponent(\n new Component(\n _ComponentName.AUTH_INTERNAL,\n container => {\n const auth = _castAuth(\n container.getProvider(_ComponentName.AUTH).getImmediate()!\n );\n return (auth => new AuthInterop(auth))(auth);\n },\n ComponentType.PRIVATE\n ).setInstantiationMode(InstantiationMode.EXPLICIT)\n );\n\n registerVersion(name, version, getVersionForPlatform(clientPlatform));\n // BUILD_TARGET will be replaced by values like esm5, esm2017, cjs5, etc during the compilation\n registerVersion(name, version, '__BUILD_TARGET__');\n}\n","/**\n * @license\n * Copyright 2021 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { FirebaseApp, getApp, _getProvider } from '@firebase/app';\n\nimport {\n initializeAuth,\n beforeAuthStateChanged,\n onIdTokenChanged,\n connectAuthEmulator\n} from '..';\nimport { registerAuth } from '../core/auth/register';\nimport { ClientPlatform } from '../core/util/version';\nimport { browserLocalPersistence } from './persistence/local_storage';\nimport { browserSessionPersistence } from './persistence/session_storage';\nimport { indexedDBLocalPersistence } from './persistence/indexed_db';\nimport { browserPopupRedirectResolver } from './popup_redirect';\nimport { Auth, User } from '../model/public_types';\nimport { getDefaultEmulatorHost, getExperimentalSetting } from '@firebase/util';\n\nconst DEFAULT_ID_TOKEN_MAX_AGE = 5 * 60;\nconst authIdTokenMaxAge =\n getExperimentalSetting('authIdTokenMaxAge') || DEFAULT_ID_TOKEN_MAX_AGE;\n\nlet lastPostedIdToken: string | undefined | null = null;\n\nconst mintCookieFactory = (url: string) => async (user: User | null) => {\n const idTokenResult = user && (await user.getIdTokenResult());\n const idTokenAge =\n idTokenResult &&\n (new Date().getTime() - Date.parse(idTokenResult.issuedAtTime)) / 1_000;\n if (idTokenAge && idTokenAge > authIdTokenMaxAge) {\n return;\n }\n // Specifically trip null => undefined when logged out, to delete any existing cookie\n const idToken = idTokenResult?.token;\n if (lastPostedIdToken === idToken) {\n return;\n }\n lastPostedIdToken = idToken;\n await fetch(url, {\n method: idToken ? 'POST' : 'DELETE',\n headers: idToken\n ? {\n 'Authorization': `Bearer ${idToken}`\n }\n : {}\n });\n};\n\n/**\n * Returns the Auth instance associated with the provided {@link @firebase/app#FirebaseApp}.\n * If no instance exists, initializes an Auth instance with platform-specific default dependencies.\n *\n * @param app - The Firebase App.\n *\n * @public\n */\nexport function getAuth(app: FirebaseApp = getApp()): Auth {\n const provider = _getProvider(app, 'auth');\n\n if (provider.isInitialized()) {\n return provider.getImmediate();\n }\n\n const auth = initializeAuth(app, {\n popupRedirectResolver: browserPopupRedirectResolver,\n persistence: [\n indexedDBLocalPersistence,\n browserLocalPersistence,\n browserSessionPersistence\n ]\n });\n\n const authTokenSyncUrl = getExperimentalSetting('authTokenSyncURL');\n if (authTokenSyncUrl) {\n const mintCookie = mintCookieFactory(authTokenSyncUrl);\n beforeAuthStateChanged(auth, mintCookie, () =>\n mintCookie(auth.currentUser)\n );\n onIdTokenChanged(auth, user => mintCookie(user));\n }\n\n const authEmulatorHost = getDefaultEmulatorHost('auth');\n if (authEmulatorHost) {\n connectAuthEmulator(auth, `http://${authEmulatorHost}`);\n }\n\n return auth;\n}\n\nregisterAuth(ClientPlatform.BROWSER);\n","import { _super_prop_base } from \"./_super_prop_base.js\";\n\nexport function _get(target, property, receiver) {\n if (typeof Reflect !== \"undefined\" && Reflect.get) _get = Reflect.get;\n else {\n _get = function get(target, property, receiver) {\n var base = _super_prop_base(target, property);\n\n if (!base) return;\n\n var desc = Object.getOwnPropertyDescriptor(base, property);\n\n if (desc.get) return desc.get.call(receiver || target);\n\n return desc.value;\n };\n }\n\n return _get(target, property, receiver || target);\n}\nexport { _get as _ };\n","import { _get_prototype_of } from \"./_get_prototype_of.js\";\n\nexport function _super_prop_base(object, property) {\n while (!Object.prototype.hasOwnProperty.call(object, property)) {\n object = _get_prototype_of(object);\n if (object === null) break;\n }\n\n return object;\n}\nexport { _super_prop_base as _ };\n","module.exports = require('./helpers/bundle-url').getBundleURL('ipA1W') + \"banner.e9a38beb.jpeg\";","module.exports = require('./helpers/bundle-url').getBundleURL('ipA1W') + \"logo.9da48a61.jpeg\";","port module Main exposing (..)\n\nimport Api\nimport Api.Data exposing (..)\nimport Api.Request.Carts exposing (..)\nimport Api.Request.Products exposing (..)\nimport Api.Time exposing (Posix, dateTimeToString)\nimport AppUrl\nimport Browser\nimport Browser.Navigation\nimport File\nimport Html as H\nimport Html.Attributes as A\nimport Html.Events as E\nimport Http\nimport Json.Decode\nimport Markdown.Option exposing (..)\nimport Markdown.Render exposing (MarkdownMsg(..), MarkdownOutput(..))\nimport Page exposing (Page(..))\nimport PrivacyPolicy exposing (viewPrivacyPolicy)\nimport RemoteData exposing (WebData)\nimport TermsAndConditions exposing (viewTermsAndConditions)\nimport Time exposing (millisToPosix)\nimport Translation exposing (Lang(..), i18n, i18nFrom, stringToLang)\nimport Url exposing (Url)\n\n\nmain : Program Flags Model Msg\nmain =\n Browser.application\n { init = init\n , view = view\n , update = update\n , subscriptions = subscriptions\n , onUrlRequest = LinkClicked\n , onUrlChange = UrlChanged\n }\n\n\n\n-- CONSTANTS\n\n\nlogoURL : String\nlogoURL =\n \"/assets/logox512.jpeg\"\n\n\nbannerURL : String\nbannerURL =\n \"/assets/bannerx1400.jpeg\"\n\n\nlargeWrapper : String\nlargeWrapper =\n \"fill middle-align center-align\"\n\n\nmediumWrapper : String\nmediumWrapper =\n \"fill middle-align center-align\"\n\n\n\n-- MODEL\n\n\ntype alias Flags =\n Json.Decode.Value\n\n\ntype Field\n = ProductTitle\n | ProductSummary\n | ProductCategories Category\n | ProductCurrency\n | ProductPrice\n | ProductDiscountPrice\n | ProductStock\n | ProductImages\n | ProductPublished\n\n\ntype alias Sorting =\n ( SortBy, Direction )\n\n\ntype SortBy\n = Latest\n | Pricing\n\n\ntype Direction\n = Asc\n | Desc\n\n\ntype alias Model =\n { key : Browser.Navigation.Key\n , page : Maybe Page.Page\n , lang : Lang\n , editing : Bool\n , appReady : Bool\n , user : Maybe User\n , cart : Maybe Cart\n , products : WebData (List Product)\n , product : WebData Product\n , orders : WebData (List Cart)\n , order : WebData Cart\n , config : Config\n , search : String\n , sorting : Sorting\n , error : String\n }\n\n\ntype alias Config =\n { env : String\n , lang : String\n , domainURL : String\n , logoURL : String\n , bannerURL : String\n }\n\n\nconfigDecoder : Json.Decode.Decoder Config\nconfigDecoder =\n Json.Decode.map5 Config\n (Json.Decode.field \"env\" Json.Decode.string)\n (Json.Decode.field \"lang\" Json.Decode.string)\n (Json.Decode.field \"domainURL\" Json.Decode.string)\n (Json.Decode.field \"logoURL\" Json.Decode.string)\n (Json.Decode.field \"bannerURL\" Json.Decode.string)\n\n\ninit :\n Flags\n -> Url\n -> Browser.Navigation.Key\n -> ( Model, Cmd Msg )\ninit flags url key =\n let\n decoded =\n Json.Decode.decodeValue configDecoder <|\n flags\n\n parsed =\n case decoded of\n Ok config ->\n config\n\n Err _ ->\n { env = \"dev\"\n , lang = \"en\"\n , domainURL = \"http://localhost:8080\"\n , logoURL = logoURL\n , bannerURL = bannerURL\n }\n\n inited =\n { key = key\n , page = Page.parse (AppUrl.fromUrl url)\n , lang =\n if parsed.lang == \"zh\" then\n Zh\n\n else\n En\n , editing = False\n , appReady = False\n , user = Nothing\n , cart = Nothing\n , products = RemoteData.NotAsked\n , product = RemoteData.NotAsked\n , orders = RemoteData.NotAsked\n , order = RemoteData.NotAsked\n , config = parsed\n , search = \"\"\n , sorting = ( Latest, Desc )\n , error = \"\"\n }\n\n ( model, cmdMsg ) =\n update (UrlChanged url) inited\n in\n ( model\n , cmdMsg\n )\n\n\n\n-- MSG\n\n\ntype Msg\n = NoOp\n | LinkClicked Browser.UrlRequest\n | UrlChanged Url\n | SetLang Lang\n | PushPage Page\n | SignInWithGoogle\n | SignInWithFacebook\n | SignedIn Json.Decode.Value\n | SignOut\n | SetSearch String\n | SetSorting Sorting\n | ToggleEdit\n | EditField Field String\n | MarkdownMsg Markdown.Render.MarkdownMsg\n | ApiUploadProductImage (List File.File)\n | ApiPutProduct\n | ApiGetProducts\n | ApiGotProducts (WebData (List Product))\n | ApiGetProduct String\n | ApiGotProduct (WebData Product)\n | ApiGetCart\n | ApiGotCart (WebData (List Cart))\n | ApiGetOrders\n | ApiGotOrders (WebData (List Cart))\n | ApiGetOrder String\n | ApiGotOrder (WebData Cart)\n | ApiAddToCart String Int\n | ApiCheckoutCart Cart\n | ApiGotUpdatedCart (WebData Cart)\n | ApiRevertOrder String\n | ApiShipOrder String\n | ApiDeliverOrder String\n | ApiCancelOrder String\n | ApiRefundOrder String\n\n\nupdate : Msg -> Model -> ( Model, Cmd Msg )\nupdate msg model =\n let\n token =\n model.user\n |> Maybe.andThen .token\n |> Maybe.withDefault \"\"\n\n apiSendWith cmd req =\n req\n |> Api.withBasePath model.config.domainURL\n |> Api.send (RemoteData.fromResult >> cmd)\n in\n case msg of\n NoOp ->\n ( { model | error = \"\" }, Cmd.none )\n\n LinkClicked urlRequest ->\n case urlRequest of\n Browser.Internal url ->\n ( model\n , Browser.Navigation.pushUrl\n model.key\n <|\n Url.toString url\n )\n\n Browser.External url ->\n ( model\n , Browser.Navigation.load url\n )\n\n UrlChanged url ->\n let\n page =\n Page.parse (AppUrl.fromUrl url)\n\n isAdmin =\n model.user\n |> Maybe.map .isAdmin\n |> Maybe.withDefault False\n\n ( model_, cmdMsg ) =\n if model.appReady then\n case page of\n Just PageProducts ->\n update ApiGetProducts model\n\n Just (PageProduct id) ->\n case id of\n \"new\" ->\n let\n body =\n { id = \"new\"\n , title = \"\"\n , summary = \"\"\n , categories = []\n , images = []\n , price = Money CurrencyGBP 0 0 False\n , stock = -1\n , published = False\n , metadata =\n { created = millisToPosix 0\n , updated = millisToPosix 0\n , liveness = True\n }\n }\n in\n if not isAdmin then\n update (PushPage PageAuth) model\n\n else\n ( { model\n | editing = True\n , product = RemoteData.Success body\n }\n , Cmd.none\n )\n\n _ ->\n update (ApiGetProduct id) model\n\n Just PageOrders ->\n if not isAdmin then\n update (PushPage PageAuth) model\n\n else\n update ApiGetOrders model\n\n Just PageAuth ->\n update ApiGetOrders model\n\n Just (PageOrder id) ->\n if not isAdmin then\n update (PushPage PageAuth) model\n\n else\n update (ApiGetOrder id) model\n\n Just (PageOrderSuccess id) ->\n update (ApiGetOrder id) model\n\n Just PageCart ->\n update ApiGetCart model\n\n _ ->\n ( model, Cmd.none )\n\n else\n ( model, Cmd.none )\n in\n ( { model_\n | page = page\n }\n , cmdMsg\n )\n\n SetLang lang ->\n ( { model | lang = lang }, setLang <| stringToLang lang )\n\n PushPage page ->\n ( model\n , Page.toString page\n |> Browser.Navigation.pushUrl model.key\n )\n\n SignInWithGoogle ->\n ( model, signInWithGoogle () )\n\n SignInWithFacebook ->\n ( model, signInWithFacebook () )\n\n SignedIn v ->\n case Json.Decode.decodeValue userDecoder v of\n Ok user ->\n ( { model\n | user = Just user\n , appReady = True\n }\n , if model.user == Nothing then\n Cmd.batch\n [ user.token\n |> Maybe.withDefault \"\"\n |> getLatestCart\n |> apiSendWith ApiGotCart\n , Page.toString (Maybe.withDefault PageAuth model.page)\n |> Browser.Navigation.pushUrl model.key\n ]\n\n else\n Cmd.none\n )\n\n Err _ ->\n ( { model\n | user = Nothing\n , appReady = True\n }\n , Page.toString (Maybe.withDefault PageAuth model.page)\n |> Browser.Navigation.pushUrl model.key\n )\n\n SignOut ->\n ( model, signOut () )\n\n SetSearch search ->\n ( { model | search = search }, Cmd.none )\n\n SetSorting sorting ->\n ( { model | sorting = sorting }, Cmd.none )\n\n ToggleEdit ->\n let\n isAdmin =\n model.user\n |> Maybe.map .isAdmin\n |> Maybe.withDefault False\n in\n if isAdmin then\n ( { model | editing = not model.editing }, Cmd.none )\n\n else\n ( model, Cmd.none )\n\n EditField field txt ->\n case field of\n ProductTitle ->\n case model.product of\n RemoteData.Success product ->\n let\n p =\n { product | title = txt }\n in\n ( { model | product = RemoteData.Success p }, Cmd.none )\n\n _ ->\n ( model, Cmd.none )\n\n ProductSummary ->\n case model.product of\n RemoteData.Success product ->\n let\n p =\n { product | summary = txt }\n in\n ( { model | product = RemoteData.Success p }, Cmd.none )\n\n _ ->\n ( model, Cmd.none )\n\n ProductCategories cat ->\n case model.product of\n RemoteData.Success product ->\n let\n cats =\n if List.member cat product.categories then\n List.filter (\\c -> c /= cat) product.categories\n\n else\n List.sortBy stringFromCategory <| cat :: product.categories\n\n p =\n { product | categories = cats }\n in\n ( { model | product = RemoteData.Success p }, Cmd.none )\n\n _ ->\n ( model, Cmd.none )\n\n ProductCurrency ->\n case model.product of\n RemoteData.Success product ->\n let\n currency =\n currencyVariants\n |> List.filter\n (\\c -> stringFromCurrency c == txt)\n |> List.head\n |> Maybe.withDefault CurrencyGBP\n\n price =\n product.price\n\n p =\n { product\n | price = { price | currency = currency }\n }\n in\n ( { model | product = RemoteData.Success p }, Cmd.none )\n\n _ ->\n ( model, Cmd.none )\n\n ProductPrice ->\n case model.product of\n RemoteData.Success product ->\n let\n trimmed =\n String.toInt txt\n |> Maybe.withDefault 0\n\n amount =\n Json.Decode.decodeString Json.Decode.int txt\n |> Result.withDefault trimmed\n\n price =\n product.price\n\n p =\n { product | price = { price | amount = amount } }\n in\n ( { model | product = RemoteData.Success p }, Cmd.none )\n\n _ ->\n ( model, Cmd.none )\n\n ProductDiscountPrice ->\n case model.product of\n RemoteData.Success product ->\n let\n trimmed =\n String.toInt txt\n |> Maybe.withDefault 0\n\n amount =\n Json.Decode.decodeString Json.Decode.int txt\n |> Result.withDefault trimmed\n\n price =\n product.price\n\n p =\n { product | price = { price | discount = amount } }\n in\n ( { model | product = RemoteData.Success p }, Cmd.none )\n\n _ ->\n ( model, Cmd.none )\n\n ProductStock ->\n case model.product of\n RemoteData.Success product ->\n let\n trimmed =\n String.toInt txt\n |> Maybe.withDefault -1\n\n p =\n { product | stock = trimmed }\n in\n ( { model | product = RemoteData.Success p }, Cmd.none )\n\n _ ->\n ( model, Cmd.none )\n\n ProductPublished ->\n case model.product of\n RemoteData.Success product ->\n let\n p =\n { product | published = not product.published }\n in\n ( { model | product = RemoteData.Success p }, Cmd.none )\n\n _ ->\n ( model, Cmd.none )\n\n ProductImages ->\n case model.product of\n RemoteData.Success product ->\n let\n ims =\n List.filter (\\i -> i /= txt) product.images\n\n p =\n { product | images = ims }\n in\n ( { model | product = RemoteData.Success p }, Cmd.none )\n\n _ ->\n ( model, Cmd.none )\n\n MarkdownMsg _ ->\n ( model, Cmd.none )\n\n ApiUploadProductImage files ->\n case model.product of\n RemoteData.Success product ->\n ( { model | product = RemoteData.Loading }\n , uploadProductImages product.id files token\n |> apiSendWith ApiGotProduct\n )\n\n _ ->\n ( { model | product = RemoteData.Loading }, Cmd.none )\n\n ApiPutProduct ->\n case model.product of\n RemoteData.Success product ->\n let\n body =\n { title = product.title\n , summary = product.summary\n , categories = product.categories\n , images = product.images\n , price = product.price\n , stock = product.stock\n , published = product.published\n }\n\n action =\n case product.id of\n \"new\" ->\n postProduct body token\n\n _ ->\n updateProduct product.id body token\n in\n ( { model | product = RemoteData.Loading }\n , action\n |> apiSendWith ApiGotProduct\n )\n\n _ ->\n ( { model | product = RemoteData.Loading }, Cmd.none )\n\n ApiGetCart ->\n ( { model\n | cart = Nothing\n , error = \"\"\n }\n , getLatestCart token\n |> apiSendWith ApiGotCart\n )\n\n ApiGotCart response ->\n case response of\n RemoteData.Success latests ->\n ( { model\n | cart = List.head latests\n }\n , Cmd.none\n )\n\n _ ->\n ( { model\n | cart = Nothing\n }\n , Cmd.none\n )\n\n ApiGetProducts ->\n ( { model\n | products = RemoteData.Loading\n , error = \"\"\n }\n , getProducts Nothing token\n |> apiSendWith ApiGotProducts\n )\n\n ApiGotProducts response ->\n case response of\n RemoteData.Success products ->\n ( { model\n | products = RemoteData.Success products\n }\n , Cmd.none\n )\n\n _ ->\n ( { model | products = response }, Cmd.none )\n\n ApiGetProduct id ->\n ( { model\n | product = RemoteData.Loading\n , error = \"\"\n }\n , getProduct id token\n |> apiSendWith ApiGotProduct\n )\n\n ApiGotProduct response ->\n case ( model.page, response ) of\n ( Just (PageProduct \"new\"), RemoteData.Success product ) ->\n update (PushPage <| PageProduct product.id) { model | product = response }\n\n ( _, _ ) ->\n ( { model | product = response }, Cmd.none )\n\n ApiGetOrders ->\n ( { model\n | orders = RemoteData.Loading\n , error = \"\"\n }\n , getCarts (Just \"state:ordered|shipped|delivered|cancelled|refunded\") token\n |> apiSendWith ApiGotOrders\n )\n\n ApiGotOrders response ->\n case response of\n RemoteData.Success orders ->\n ( { model\n | orders = RemoteData.Success orders\n }\n , Cmd.none\n )\n\n _ ->\n ( { model | orders = response }, Cmd.none )\n\n ApiGetOrder id ->\n ( { model\n | order = RemoteData.Loading\n , error = \"\"\n }\n , getCart id token\n |> apiSendWith ApiGotOrder\n )\n\n ApiGotOrder response ->\n case model.page of\n Just PageOrders ->\n update ApiGetOrders { model | order = response }\n\n Just (PageOrderSuccess _) ->\n update ApiGetCart { model | order = response }\n\n _ ->\n ( { model | order = response }, Cmd.none )\n\n ApiAddToCart productId qty ->\n let\n hasUser =\n model.user /= Nothing\n\n hasCart =\n model.cart /= Nothing\n\n cartId =\n model.cart\n |> Maybe.map .id\n |> Maybe.withDefault \"latest\"\n\n item =\n LineItem productId Nothing qty\n\n cmdMsg =\n case ( hasUser, hasCart ) of\n ( False, _ ) ->\n Page.toString PageAuth\n |> Browser.Navigation.pushUrl model.key\n\n ( _, _ ) ->\n updateCartItem cartId item token\n |> apiSendWith ApiGotUpdatedCart\n in\n ( model, cmdMsg )\n\n ApiCheckoutCart cart ->\n let\n hasUser =\n model.user /= Nothing\n\n hasItems =\n quantityItems cart.items > 0\n\n cmdMsg =\n case ( hasUser, hasItems ) of\n ( False, _ ) ->\n Page.toString PageAuth\n |> Browser.Navigation.pushUrl model.key\n\n ( _, True ) ->\n checkoutCart cart.id token\n |> apiSendWith ApiGotUpdatedCart\n\n ( _, _ ) ->\n Cmd.none\n in\n ( model, cmdMsg )\n\n ApiGotUpdatedCart response ->\n case response of\n RemoteData.Success cart ->\n ( { model\n | cart = Just cart\n , error = \"\"\n }\n , Cmd.none\n )\n\n RemoteData.Failure err ->\n ( { model\n | error = httpError model.lang err\n }\n , Cmd.none\n )\n\n _ ->\n ( model, Cmd.none )\n\n ApiRevertOrder id ->\n ( { model | order = RemoteData.Loading }\n , updateCartState id StateOrdered token\n |> apiSendWith ApiGotOrder\n )\n\n ApiShipOrder id ->\n ( { model | order = RemoteData.Loading }\n , updateCartState id StateShipped token\n |> apiSendWith ApiGotOrder\n )\n\n ApiDeliverOrder id ->\n ( { model | order = RemoteData.Loading }\n , updateCartState id StateDelivered token\n |> apiSendWith ApiGotOrder\n )\n\n ApiCancelOrder id ->\n ( { model | order = RemoteData.Loading }\n , updateCartState id StateCancelled token\n |> apiSendWith ApiGotOrder\n )\n\n ApiRefundOrder id ->\n ( { model | order = RemoteData.Loading }\n , updateCartState id StateRefunded token\n |> apiSendWith ApiGotOrder\n )\n\n\n\n-- CMD\n\n\nport signInWithGoogle : () -> Cmd msg\n\n\nport signInWithFacebook : () -> Cmd msg\n\n\nport signedIn : (Json.Decode.Value -> msg) -> Sub msg\n\n\nport signOut : () -> Cmd msg\n\n\nport setLang : String -> Cmd msg\n\n\n\n-- SUBSCRIPTIONS\n\n\nsubscriptions : Model -> Sub Msg\nsubscriptions _ =\n Sub.batch [ signedIn SignedIn ]\n\n\n\n-- HELPERS\n\n\nproductCardImage : Product -> String\nproductCardImage product =\n List.head product.images\n |> Maybe.map uploadURL\n |> Maybe.withDefault logoURL\n\n\nuploadURL : String -> String\nuploadURL im =\n \"/uploads/\" ++ im\n\n\nthumbnailURL : String -> String\nthumbnailURL im =\n \"/uploads/thumb-\" ++ im\n\n\nhttpError : Lang -> Http.Error -> String\nhttpError lang error =\n let\n err =\n case error of\n Http.BadUrl url ->\n \"The URL \" ++ url ++ \" was invalid\"\n\n Http.Timeout ->\n \"Unable to reach the server, try again\"\n\n Http.NetworkError ->\n \"Network error, check your internet connection\"\n\n Http.BadStatus 500 ->\n \"The server had a problem, try again later\"\n\n Http.BadStatus 409 ->\n \"There are conflicts, adding product with mixed currency is not allowed\"\n\n Http.BadStatus 422 ->\n \"Verify the information you provided and try again\"\n\n Http.BadStatus 403 ->\n \"Your access or permission is denied\"\n\n Http.BadStatus 401 ->\n \"Please sign in first and try again\"\n\n Http.BadStatus 400 ->\n \"Verify your information and try again\"\n\n Http.BadStatus _ ->\n \"Unknown error\"\n\n Http.BadBody errorMessage ->\n errorMessage\n in\n i18nFrom lang err\n\n\nformatPrice : Money -> String\nformatPrice money =\n stringFromCurrency money.currency\n ++ \" \"\n ++ String.fromFloat (toFloat (money.amount - money.discount) / 100)\n ++ (if money.tax then\n \" (tax inclusive\"\n\n else\n \"\"\n )\n\n\nviewPrice : Lang -> Money -> H.Html Msg\nviewPrice lang money =\n let\n txtCurrency =\n stringFromCurrency money.currency\n\n txtTax =\n if money.tax then\n \" (tax inclusive)\"\n\n else\n \"\"\n\n amount =\n toFloat money.amount / 100\n\n discounted =\n toFloat (money.amount - money.discount) / 100\n\n amountLabel =\n if money.discount > 0 then\n H.span [ A.class \"padding small\" ]\n [ H.span [ A.class \"overline red-text\" ] [ H.text <| txtCurrency ++ \" \" ++ String.fromFloat amount ]\n , H.span [ A.class \"space small\" ] [ i18n lang \" \" ]\n , H.b [] [ H.text <| txtCurrency ++ \" \" ++ String.fromFloat discounted ]\n , H.text txtTax\n ]\n\n else\n H.span []\n [ H.b []\n [ H.text <| txtCurrency ++ \" \" ++ String.fromFloat amount ]\n , H.text txtTax\n ]\n in\n H.label []\n [ amountLabel\n ]\n\n\nformatDateTime : Posix -> String\nformatDateTime posix =\n dateTimeToString posix\n |> String.split \".\"\n |> List.take 1\n |> String.join \"\"\n |> String.split \"T\"\n |> String.join \" \"\n\n\ncartStateTitle : Cart -> String\ncartStateTitle cart =\n case cart.state of\n StateOngoing ->\n \"Cart Summary\"\n\n StateOrdered ->\n \"Thank you! Your Order Summary\"\n\n StateShipped ->\n \"Your Shipped Order Summary\"\n\n other ->\n let\n m =\n stringFromState other\n in\n \"Your \" ++ m ++ \" Order Summary\"\n\n\nquantityItems : List LineItem -> Int\nquantityItems items =\n List.foldl (\\item acc -> acc + item.quantity) 0 items\n\n\n\n-- VIEWS\n\n\nviewPage : Model -> H.Html Msg\nviewPage model =\n if not model.appReady then\n viewLoading\n\n else\n case model.page of\n Just PageAuth ->\n viewAuth model\n\n Just PageProducts ->\n viewProducts model\n\n Just (PageProduct _) ->\n if model.editing then\n viewAdminProduct model.lang model.product\n\n else\n viewProduct model.lang model.product\n\n Just PageCart ->\n viewLatestCart model.lang model.cart\n\n Just (PageOrderSuccess _) ->\n case model.user of\n Nothing ->\n viewAuth model\n\n Just _ ->\n viewOrderSummary model.lang model.order\n\n Just PageOrders ->\n viewAdminOrders model\n\n Just PagePrivacyPolicy ->\n viewPrivacyPolicy\n\n Just PageTermsAndConditions ->\n viewTermsAndConditions\n\n _ ->\n viewHome model\n\n\nviewSearch : Model -> H.Html Msg\nviewSearch model =\n H.div [ A.class \"field label prefix border s12 l6 max\" ]\n [ viewIcon \"search\"\n , H.input\n [ A.attribute \"type\" \"text\"\n , A.value model.search\n , E.onInput SetSearch\n ]\n []\n , H.label [] [ i18n model.lang \"Search\" ]\n ]\n\n\nviewSorting : Model -> H.Html Msg\nviewSorting model =\n H.div [ A.class \"s12 l6 center-align middle-align\" ]\n [ case model.page of\n Just PageOrders ->\n H.div [ A.class \"max\" ]\n [ H.button\n [ A.class \"small border\"\n , E.onClick <| SetSearch \"state:ordered\"\n ]\n [ viewIcon \"filter_alt\", H.span [] [ i18n model.lang \"Ordered\" ] ]\n , H.button\n [ A.class \"small border\"\n , E.onClick <| SetSearch \"state:shipped\"\n ]\n [ viewIcon \"filter_alt\", H.span [] [ i18n model.lang \"Shipped\" ] ]\n , H.button\n [ A.class \"small border\"\n , E.onClick <| SetSearch \"state:delivered\"\n ]\n [ viewIcon \"filter_alt\", H.span [] [ i18n model.lang \"Delivered\" ] ]\n , H.button\n [ A.class \"small border\"\n , E.onClick <| SetSearch \"state:cancelled\"\n ]\n [ viewIcon \"filter_alt\", H.span [] [ i18n model.lang \"Cancelled\" ] ]\n , H.button\n [ A.class \"small border\"\n , E.onClick <| SetSearch \"state:refunded\"\n ]\n [ viewIcon \"filter_alt\", H.span [] [ i18n model.lang \"Refunded\" ] ]\n ]\n\n _ ->\n i18n model.lang \"\"\n , H.div [ A.class \"space\" ] []\n , H.div [ A.class \"max\" ]\n [ H.button\n [ A.class\n (\"small \"\n ++ (if Tuple.first model.sorting == Latest then\n \"tertiary\"\n\n else\n \"secondary\"\n )\n )\n , E.onClick <| SetSorting ( Latest, Tuple.second model.sorting )\n ]\n [ viewIcon \"sort\", H.span [] [ i18n model.lang \"Latest\" ] ]\n , H.button\n [ A.class\n (\"small \"\n ++ (if Tuple.first model.sorting == Pricing then\n \"tertiary\"\n\n else\n \"secondary\"\n )\n )\n , E.onClick <| SetSorting ( Pricing, Tuple.second model.sorting )\n ]\n [ viewIcon \"sort\", H.span [] [ i18n model.lang \"Pricing\" ] ]\n , H.button\n [ A.class \"small tertiary\"\n , E.onClick <|\n SetSorting\n ( Tuple.first model.sorting\n , if Tuple.second model.sorting == Asc then\n Desc\n\n else\n Asc\n )\n ]\n [ viewIcon\n (if Tuple.second model.sorting == Asc then\n \"arrow_upward\"\n\n else\n \"arrow_downward\"\n )\n , H.span [] [ i18n model.lang \"Direction\" ]\n ]\n , H.select\n [ E.onInput SetSearch ]\n [ H.option\n [ A.value \"\"\n ]\n [ H.text \"ALL\" ]\n , H.option\n [ A.value <| stringFromCurrency CurrencyHKD\n , A.selected <| String.contains (stringFromCurrency CurrencyHKD) model.search\n ]\n [ H.text <| stringFromCurrency CurrencyHKD ]\n , H.option\n [ A.value <| stringFromCurrency CurrencyGBP\n , A.selected <| String.contains (stringFromCurrency CurrencyGBP) model.search\n ]\n [ H.text <| stringFromCurrency CurrencyGBP ]\n ]\n ]\n ]\n\n\nview : Model -> Browser.Document Msg\nview model =\n { title =\n Maybe.withDefault PageHome model.page\n |> Page.toTitle\n |> i18nFrom model.lang\n |> (++) \"Shop4Mum - \"\n , body =\n [ viewNav model\n , H.div\n [ A.class \"main primary-container responsive\" ]\n [ case model.error of\n \"\" ->\n case model.page of\n Just PageProducts ->\n H.div [ A.class \"padding grid\" ]\n [ viewSearch model\n , viewSorting model\n ]\n\n Just PageOrders ->\n H.div [ A.class \"padding grid\" ]\n [ viewSearch model\n , viewSorting model\n ]\n\n _ ->\n i18n model.lang \"\"\n\n _ ->\n H.div [ A.class \"cpmtainer large padding\" ]\n [ H.h5 [ A.class \"error center-align middle-align\" ]\n [ i18n model.lang model.error ]\n ]\n , viewPage model\n , H.div [ A.class \"padding\" ] []\n , viewFooter model.lang\n ]\n ]\n }\n\n\nviewIconExtra : String -> H.Html Msg\nviewIconExtra ico =\n H.i\n [ A.attribute \"translate\" \"no\"\n , A.class \"extra\"\n ]\n [ H.text ico ]\n\n\nviewIcon : String -> H.Html Msg\nviewIcon ico =\n H.i [ A.attribute \"translate\" \"no\" ]\n [ H.text ico ]\n\n\nviewNavLink : Page.Page -> String -> Lang -> String -> H.Html Msg\nviewNavLink p ico lang txt =\n H.a [ A.href <| Page.toString p ]\n [ viewIconExtra ico\n , H.div [] [ i18n lang txt ]\n ]\n\n\nviewNav : Model -> H.Html Msg\nviewNav model =\n let\n isAdmin =\n model.user\n |> Maybe.map .isAdmin\n |> Maybe.withDefault False\n\n authProtected =\n case model.user of\n Nothing ->\n []\n\n Just _ ->\n let\n numItems =\n model.cart\n |> Maybe.map .items\n |> Maybe.map List.length\n |> Maybe.withDefault 0\n\n cartText =\n if numItems > 0 then\n \"Cart [\" ++ String.fromInt numItems ++ \"]\"\n\n else\n \"Cart\"\n in\n [ viewNavLink PageCart \"shopping_cart\" model.lang cartText\n , case ( isAdmin, model.editing, model.page ) of\n ( True, False, Just (PageProduct _) ) ->\n H.button\n [ A.class \"tertiary\"\n , E.onClick ToggleEdit\n ]\n [ viewIcon \"edit\"\n , H.div [] [ i18n model.lang \"Edit\" ]\n ]\n\n ( True, True, Just (PageProduct _) ) ->\n H.button\n [ A.class \"secondary\"\n , E.onClick ToggleEdit\n ]\n [ viewIcon \"close\"\n , H.div [] [ i18n model.lang \"Close\" ]\n ]\n\n ( True, _, Just PageProducts ) ->\n viewNavLink (PageProduct \"new\") \"add\" model.lang \"Product\"\n\n ( _, _, _ ) ->\n i18n model.lang \"\"\n , if isAdmin then\n viewNavLink PageOrders \"order_play\" model.lang \"Orders\"\n\n else\n i18n model.lang \"\"\n ]\n in\n H.nav [ A.class \"top row scroll\" ] <|\n [ H.a\n [ A.href <| Page.toString PageHome ]\n [ H.i\n [ A.class \"extra\"\n , A.attribute \"translate\" \"no\"\n ]\n [ H.img [ A.src model.config.logoURL ] [] ]\n , H.div [] [ i18n model.lang \"Home\" ]\n ]\n , viewNavLink PageAuth \"person\" model.lang \"User\"\n , viewNavLink PageProducts \"category\" model.lang \"Products\"\n ]\n ++ authProtected\n ++ [ viewLang model ]\n\n\nviewLang : Model -> H.Html Msg\nviewLang model =\n H.div [ A.class \"row\" ]\n [ H.div\n (case model.lang of\n En ->\n [ A.class \"blue-text bold\" ]\n\n _ ->\n [ A.style \"cursor\" \"pointer\"\n , E.onClick <| SetLang En\n ]\n )\n [ H.text <| \"En\" ]\n , H.div\n (case model.lang of\n Zh ->\n [ A.class \"blue-text bold\" ]\n\n _ ->\n [ A.style \"cursor\" \"pointer\"\n , E.onClick <| SetLang Zh\n ]\n )\n [ H.text <| \"中文\" ]\n ]\n\n\nviewFooter : Lang -> H.Html Msg\nviewFooter lang =\n H.div [ A.class \"secondary fill grid middle-align center-align\" ]\n [ H.cite [ A.class \"s12 m6\" ]\n [ i18n lang \"- Shop4Mum. Copyright 2024. All rights reserved.\" ]\n , H.span [ A.class \"s12 m6\" ]\n [ H.a [ A.href <| Page.toString PagePrivacyPolicy ] [ i18n lang \"Privacy Policy\" ]\n , H.span [ A.class \"padding\" ] []\n , H.a [ A.href <| Page.toString PageTermsAndConditions ] [ i18n lang \"Terms & Conditions\" ]\n ]\n ]\n\n\nviewAuth : Model -> H.Html Msg\nviewAuth model =\n case model.user of\n Nothing ->\n viewSignIn model\n\n Just _ ->\n viewProfile model\n\n\nviewSignIn : Model -> H.Html Msg\nviewSignIn model =\n H.div [ A.class mediumWrapper ]\n [ H.div [ A.class \"center-align\" ]\n [ viewIconExtra \"login\"\n , H.h5 [ A.class \"center-align\" ]\n [ i18n model.lang \"Sign In\" ]\n , H.p []\n [ i18n model.lang \"Sign in to manage your account and continue your checkout\" ]\n , H.div [ A.class \"space\" ] []\n , H.div [ A.class \"padding\" ]\n [ H.button [ E.onClick SignInWithGoogle ]\n [ i18n model.lang \"Sign In with Google\" ]\n , H.button [ E.onClick SignInWithFacebook ]\n [ i18n model.lang \"Sign In with Facebook\" ]\n ]\n ]\n ]\n\n\nviewProfile : Model -> H.Html Msg\nviewProfile model =\n let\n viewOrderHistory =\n case model.orders of\n RemoteData.NotAsked ->\n H.div [ A.class \"grid center-align\" ]\n [ H.h5 [] [ i18n model.lang \"Please refresh the page\" ] ]\n\n RemoteData.Failure err ->\n H.div [ A.class \"grid center-align\" ]\n [ H.h5 [] [ H.text <| httpError model.lang err ] ]\n\n RemoteData.Loading ->\n H.div [ A.class \"grid center-align\" ]\n [ H.h5 [] [ viewLoading ] ]\n\n RemoteData.Success orders ->\n if List.isEmpty orders then\n viewEmptyCart model.lang\n\n else\n List.map (viewOrderCard model.lang) orders\n |> H.div [ A.class \"row scroll\" ]\n in\n H.div [ A.class \"primary-container padding center-align\" ]\n [ H.nav [ A.class \"center-align\" ]\n [ H.h5 []\n [ i18n model.lang \"Order History\"\n , viewIconExtra \"paid\"\n , H.button\n [ A.class \"right secondary\"\n , E.onClick SignOut\n ]\n [ i18n model.lang \"Sign Out\" ]\n ]\n ]\n , H.div [ A.class \"space\" ] []\n , viewOrderHistory\n ]\n\n\nviewOrderCard : Lang -> Cart -> H.Html Msg\nviewOrderCard lang order =\n let\n itemText =\n String.join \" \" <|\n [ \"Your\"\n , stringFromState order.state\n , String.fromInt (quantityItems order.items)\n , \"items\"\n ]\n in\n H.article [ A.class \"small-width border\" ]\n [ H.b [] [ H.text <| formatDateTime order.metadata.updated ]\n , H.hr [] []\n , H.br [] []\n , H.p []\n [ H.text itemText ]\n , H.p [] [ viewPrice lang order.total ]\n , H.nav []\n [ H.a\n [ A.class \"button\"\n , A.href <| Page.toString (PageOrderSuccess order.id)\n ]\n [ i18n lang \"View Order\" ]\n ]\n ]\n\n\nviewHome : Model -> H.Html Msg\nviewHome model =\n let\n cta =\n H.a\n [ A.class \"button\"\n , A.href <| Page.toString PageProducts\n , A.alt <| Page.toTitle PageProducts\n ]\n [ i18n model.lang \"Happy Shopping!\" ]\n in\n H.div\n [ A.class \"middle-align center-align\" ]\n [ H.div [ A.class \"center-align\" ]\n [ H.img\n [ A.class \"responsive\"\n , A.src model.config.bannerURL\n ]\n []\n , H.p []\n [ H.h5 [ A.class \"center-align\" ]\n [ i18n model.lang \"Welcome to Shop4Mum UK\" ]\n , H.nav [ A.class \"center-align\" ]\n [ cta ]\n , H.div [ A.class \"padding\" ]\n [ H.p []\n [ i18n model.lang \"Welcome to Shop4Mum, your trusted online emporium for quality products with a personal touch. Our journey began back in 2014 as a modest Facebook page, and today, we're proud to serve customers not only in the UK but also in Hong Kong and around the world. Our secret to growth? A steadfast commitment to sincere and dedicated customer service.\"\n ]\n , H.p []\n [ i18n model.lang \"At Shop4Mum, we go the extra mile to ensure our customers' complete satisfaction. Each item is painstakingly inspected before dispatch, and we take any defects or concerns seriously. It's this dedication to excellence that keeps our customers returning, confident in their purchases and eager to engage in meaningful conversations about life.\" ]\n , H.p []\n [ i18n model.lang \"What truly distinguishes us is the genuine connections we build with our customers. Over the years, many have become more than just valued patrons – they've become cherished friends. Join the Shop4Mum family today, and experience the difference of a shopping experience where quality, care, and community seamlessly intertwine.\" ]\n ]\n ]\n ]\n ]\n\n\nviewImage : String -> H.Html Msg\nviewImage im =\n let\n dest =\n case ( im == logoURL, im == bannerURL ) of\n ( True, _ ) ->\n im\n\n ( _, True ) ->\n im\n\n _ ->\n uploadURL im\n in\n H.img\n [ A.class \"responsive medium-width\"\n , A.width 640\n , A.src dest\n ]\n []\n\n\nviewLoading : H.Html Msg\nviewLoading =\n H.progress [] []\n\n\nviewProductCard : Lang -> Product -> H.Html Msg\nviewProductCard lang product =\n H.article\n [ A.class \"no-padding\"\n , A.style \"min-height\" \"100%\"\n ]\n [ H.img\n [ A.class \"responsive small-height\"\n , A.src <| productCardImage product\n , A.style \"cursor\" \"pointer\"\n , E.onClick <| PushPage (PageProduct product.id)\n ]\n []\n , H.div [ A.class \"padding\" ]\n [ H.p []\n [ viewPrice lang product.price ]\n , H.nav []\n [ H.a\n [ A.class \"button border\"\n , PageProduct product.id\n |> Page.toString\n |> A.href\n ]\n [ viewIcon \"image\" ]\n , H.div [ A.class \"max\" ] []\n , case ( product.published, product.stock == 0 ) of\n ( False, _ ) ->\n H.text \"Not published\"\n\n ( True, True ) ->\n i18n lang \"Out of stock\"\n\n ( _, _ ) ->\n H.button\n [ A.class \"button\"\n , E.onClick <| ApiAddToCart product.id 1\n ]\n [ viewIcon \"add_shopping_cart\"\n , H.span [] [ i18n lang \"Buy\" ]\n ]\n ]\n , H.div [ A.class \"small-divider\" ] []\n , H.p [] [ H.b [] [ H.text product.title ] ]\n , H.div []\n [ H.small [] [ H.text product.summary ] ]\n ]\n ]\n\n\nsortProducts : String -> Sorting -> List Product -> List Product\nsortProducts search sorting items =\n let\n filtered =\n List.filter\n (\\item ->\n let\n terms =\n ([ item.title\n , formatPrice item.price\n ]\n ++ List.map stringFromCategory item.categories\n )\n |> String.join \", \"\n |> String.toLower\n in\n search\n |> String.toLower\n |> String.split \" \"\n |> List.filter (String.trim >> String.isEmpty >> not)\n |> List.all (\\s -> String.contains s terms)\n )\n items\n\n sorted =\n List.sortBy\n (\\item ->\n let\n m =\n item.metadata\n\n p =\n item.price\n in\n case Tuple.first sorting of\n Latest ->\n Time.posixToMillis m.updated\n\n Pricing ->\n p.amount\n )\n filtered\n in\n case Tuple.second sorting of\n Asc ->\n sorted\n\n Desc ->\n List.reverse sorted\n\n\nsortOrders : String -> Sorting -> List Cart -> List Cart\nsortOrders search sorting items =\n let\n filtered =\n List.filter\n (\\item ->\n let\n u =\n case item.user of\n Nothing ->\n \"\"\n\n Just user ->\n [ user.name\n , user.email\n , user.phone\n , formatAddress user.address\n ]\n |> String.join \", \"\n\n terms =\n [ u\n , \"state:\" ++ stringFromState item.state\n , item.id\n , item.owner\n , String.join \", \" <|\n List.map\n (\\p ->\n p.product\n |> Maybe.map .title\n |> Maybe.withDefault \"\"\n )\n item.items\n ]\n |> String.join \", \"\n |> String.toLower\n in\n search\n |> String.toLower\n |> String.split \" \"\n |> List.filter (String.trim >> String.isEmpty >> not)\n |> List.all (\\s -> String.contains s terms)\n )\n items\n\n sorted =\n List.sortBy\n (\\item ->\n let\n m =\n item.metadata\n\n p =\n item.total\n in\n case Tuple.first sorting of\n Latest ->\n Time.posixToMillis m.updated\n\n Pricing ->\n p.amount\n )\n filtered\n in\n case Tuple.second sorting of\n Asc ->\n sorted\n\n Desc ->\n List.reverse sorted\n\n\nviewProducts : Model -> H.Html Msg\nviewProducts model =\n case model.products of\n RemoteData.NotAsked ->\n H.div [ A.class \"grid center-align\" ]\n [ H.h5 [] [ i18n model.lang \"Please refresh the page\" ] ]\n\n RemoteData.Failure err ->\n H.div [ A.class \"grid center-align\" ]\n [ H.h5 [] [ H.text <| httpError model.lang err ] ]\n\n RemoteData.Loading ->\n H.div [ A.class \"grid center-align\" ]\n [ H.h5 [] [ viewLoading ] ]\n\n RemoteData.Success products ->\n if List.isEmpty products then\n viewEmptyProduct model.lang\n\n else\n H.div [ A.class \"secondary-text max center-align\" ]\n [ H.b []\n [ i18n model.lang <|\n \"Please note: you can only select single-currency products to the cart\"\n ]\n , List.map\n (\\p ->\n H.div [ A.class \"s12 m6 l3\" ] <|\n [ viewProductCard model.lang p ]\n )\n (sortProducts model.search model.sorting products)\n |> H.div [ A.class \"grid center-align padding\" ]\n ]\n\n\nviewProduct : Lang -> WebData Product -> H.Html Msg\nviewProduct lang result =\n let\n viewWrapper viewTitle =\n H.div\n [ A.class largeWrapper ]\n [ H.div [ A.class \"center-align\" ]\n [ H.h5 [] [ viewTitle ] ]\n ]\n in\n case result of\n RemoteData.NotAsked ->\n viewWrapper <|\n i18n lang \"Please refresh the page\"\n\n RemoteData.Failure err ->\n viewWrapper <|\n H.text <|\n httpError lang err\n\n RemoteData.Loading ->\n viewWrapper viewLoading\n\n RemoteData.Success product ->\n let\n viewLabel s =\n H.span [ A.class \"chip small\" ] [ H.text s ]\n in\n H.div\n [ A.class \"fill center-align padding\" ]\n [ H.div\n [ A.class \"center-align\" ]\n [ H.h5\n [ A.class \"center-align\" ]\n [ H.text product.title ]\n , product.categories\n |> List.map stringFromCategory\n |> List.map viewLabel\n |> H.p []\n , H.p [] [ viewMarkdown product.summary ]\n , H.div [ A.class \"space\" ] []\n , List.map viewImage\n (if List.isEmpty product.images then\n [ logoURL ]\n\n else\n product.images\n )\n |> H.div [ A.class \"row scroll\" ]\n ]\n , H.nav\n [ A.class \"padding\" ]\n [ case ( product.published, product.stock == 0 ) of\n ( False, _ ) ->\n H.text \"Not published\"\n\n ( True, True ) ->\n i18n lang \"Out of stock\"\n\n ( _, _ ) ->\n H.button\n [ A.class \"max\"\n , E.onClick <| ApiAddToCart product.id 1\n ]\n [ H.span []\n [ viewPrice lang product.price\n ]\n , viewIconExtra \"shopping_bag\"\n , H.span []\n [ i18n lang \"Buy Now\" ]\n ]\n ]\n ]\n\n\nviewEmptyProduct : Lang -> H.Html Msg\nviewEmptyProduct lang =\n H.div\n [ A.class mediumWrapper ]\n [ H.div [ A.class \"center-align\" ]\n [ viewIconExtra \"category\"\n , H.p\n []\n [ H.h5 [ A.class \"center-align\" ]\n [ i18n lang \"Promotional products are coming, please check on our site again at a later time\" ]\n , H.div [ A.class \"space\" ] []\n ]\n ]\n ]\n\n\nviewLatestCart : Lang -> Maybe Cart -> H.Html Msg\nviewLatestCart lang cart =\n cart\n |> Maybe.map (viewCartSummary lang)\n |> Maybe.withDefault (viewEmptyCart lang)\n\n\nviewEmptyCart : Lang -> H.Html Msg\nviewEmptyCart lang =\n H.div\n [ A.class mediumWrapper ]\n [ H.div [ A.class \"center-align\" ]\n [ viewIconExtra \"shopping_cart_off\"\n , H.p\n []\n [ H.h5 [ A.class \"center-align\" ]\n [ i18n lang \"Your cart is empty\" ]\n , H.div [ A.class \"space\" ] []\n , H.nav [ A.class \"center-align\" ]\n [ H.a\n [ A.class \"button\"\n , A.href <|\n Page.toString PageProducts\n ]\n [ i18n lang \"Start Shopping\" ]\n ]\n ]\n ]\n ]\n\n\nviewCartThumbnail : String -> H.Html Msg\nviewCartThumbnail im =\n H.img\n [ A.class \"circle large\"\n , A.src <| thumbnailURL im\n ]\n []\n\n\nviewCartItem : Lang -> Bool -> LineItem -> H.Html Msg\nviewCartItem lang editable item =\n let\n thumb =\n item.product\n |> Maybe.map .images\n |> Maybe.andThen List.head\n |> Maybe.withDefault logoURL\n |> viewCartThumbnail\n\n brief =\n let\n qty =\n String.fromInt item.quantity\n in\n item.product\n |> Maybe.map .title\n |> Maybe.withDefault \"item(s)\"\n |> (++) \" x \"\n |> (++) qty\n\n productPrice =\n item.product\n |> Maybe.map .price\n |> Maybe.map (viewPrice lang)\n |> Maybe.withDefault (i18n lang \" - \")\n\n viewItemEdit =\n if editable then\n H.div []\n [ H.button\n [ A.class \"button\"\n , E.onClick <| ApiAddToCart item.id 1\n ]\n [ viewIcon \"add\" ]\n , H.button\n [ A.class \"button tertiary\"\n , E.onClick <| ApiAddToCart item.id -1\n ]\n [ viewIcon \"remove\" ]\n ]\n\n else\n H.div [] []\n in\n H.article []\n [ H.div [ A.class \"row\" ]\n [ thumb\n , H.div [ A.class \"max\" ]\n [ H.b []\n [ H.text brief\n ]\n , H.p []\n [ productPrice ]\n ]\n , viewItemEdit\n ]\n ]\n\n\nviewCartAction : Lang -> Cart -> H.Html Msg\nviewCartAction lang cart =\n case ( cart.checkout, cart.state ) of\n ( Nothing, _ ) ->\n H.nav []\n [ H.button\n [ A.class \"button max\"\n , E.onClick <| ApiCheckoutCart cart\n ]\n [ H.span [] [ viewPrice lang cart.total ]\n , viewIcon \"shopping_bag\"\n , H.span [] [ i18n lang \"Confirm Order\" ]\n ]\n ]\n\n ( Just checkout, StateOngoing ) ->\n H.nav []\n [ H.a\n [ A.class \"button max\"\n , A.href <| Maybe.withDefault \"\" checkout.link\n ]\n [ H.span [] [ viewPrice lang cart.total ]\n , viewIcon \"shopping_bag\"\n , H.span [] [ i18n lang \"Go to Payment Now\" ]\n ]\n ]\n\n ( Just checkout, StatePending ) ->\n H.nav []\n [ H.a\n [ A.class \"button max\"\n , A.href <| Maybe.withDefault \"\" checkout.link\n ]\n [ H.span [] [ viewPrice lang cart.total ]\n , viewIcon \"shopping_bag\"\n , H.span [] [ i18n lang \"Go to Payment Now\" ]\n ]\n ]\n\n ( _, state ) ->\n let\n itemText =\n String.join \" \" <|\n [ stringFromState state\n , String.fromInt (quantityItems cart.items)\n , \"items\"\n ]\n\n remarksText =\n cart.checkout\n |> Maybe.andThen .remarks\n |> Maybe.map (\\s -> \" (\" ++ s ++ \")\")\n |> Maybe.withDefault \"\"\n in\n H.nav []\n [ H.div [ A.class \"tertiary responsive padding\" ]\n [ H.b [] [ H.text <| formatDateTime cart.metadata.updated ]\n , H.hr [] []\n , H.br [] []\n , H.p []\n [ H.text <| itemText ++ remarksText ]\n , H.p []\n [ viewPrice lang cart.total ]\n , H.div [ A.class \"space\" ] []\n ]\n ]\n\n\ncartIsEditable : Cart -> Bool\ncartIsEditable cart =\n case cart.state of\n StateOngoing ->\n True\n\n StatePending ->\n True\n\n _ ->\n False\n\n\nviewCartSummary : Lang -> Cart -> H.Html Msg\nviewCartSummary lang cart =\n H.div []\n [ H.h6 []\n [ H.text <|\n cartStateTitle cart\n ]\n , H.div [] <|\n List.map (viewCartItem lang <| cartIsEditable cart) cart.items\n , viewCartAction lang cart\n ]\n\n\nviewOrderSummary : Lang -> WebData Cart -> H.Html Msg\nviewOrderSummary lang result =\n let\n viewWrapper viewTitle =\n H.div\n [ A.class largeWrapper ]\n [ H.div [ A.class \"center-align\" ]\n [ H.h5 [] [ viewTitle ] ]\n ]\n in\n case result of\n RemoteData.NotAsked ->\n viewWrapper <|\n i18n lang \"Please sign in to continue or refresh the page\"\n\n RemoteData.Failure err ->\n viewWrapper <|\n H.text <|\n httpError lang err\n\n RemoteData.Loading ->\n viewWrapper viewLoading\n\n RemoteData.Success cart ->\n H.div [ A.class \"padding\" ]\n [ H.h6 []\n [ H.text <|\n cartStateTitle cart\n ]\n , H.div [] <|\n List.map (viewCartItem lang <| cartIsEditable cart) cart.items\n , viewCartAction lang cart\n ]\n\n\nviewAdminOrder : Lang -> Cart -> H.Html Msg\nviewAdminOrder lang order =\n let\n remarksText =\n order.checkout\n |> Maybe.andThen .remarks\n |> Maybe.map (\\s -> \" (\" ++ s ++ \")\")\n |> Maybe.withDefault \"\"\n in\n H.article [ A.id order.id, A.class \"border round\" ]\n [ H.details []\n [ H.summary []\n [ H.label []\n [ H.text <| formatDateTime order.metadata.updated\n , H.span [ A.class \"padding\" ] []\n ]\n , H.b []\n [ order.user\n |> Maybe.map .name\n |> Maybe.withDefault \"Name: N/A\"\n |> H.text\n , H.span [ A.class \"padding\" ] []\n ]\n , H.b []\n [ order.user\n |> Maybe.map .email\n |> Maybe.withDefault \"Email: N/A\"\n |> H.text\n , H.span [ A.class \"padding\" ] []\n ]\n , H.b []\n [ order.user\n |> Maybe.map .phone\n |> Maybe.withDefault \"Phone: N/A\"\n |> H.text\n , H.span [ A.class \"padding\" ] []\n ]\n , H.div [ A.class \"divider\" ] []\n , viewPrice lang order.total\n , H.span [ A.class \"padding\" ] []\n , H.label []\n [ [ \"This\"\n , stringFromState order.state\n , \"order contains\"\n , String.fromInt (quantityItems order.items)\n , \"items\"\n ]\n |> String.join \" \"\n |> H.text\n , H.b [] [ H.text remarksText ]\n ]\n ]\n , H.p [ A.class \"padding\" ]\n [ H.b []\n [ order.user\n |> Maybe.map .address\n |> Maybe.map formatAddress\n |> Maybe.withDefault \"Address: N/A\"\n |> H.text\n ]\n , H.div [ A.class \"divider\" ] []\n , H.span [ A.class \"padding\" ] []\n , H.div [] <|\n List.map (viewCartItem lang False) order.items\n ]\n , H.button\n [ A.class <|\n \"small\"\n ++ (if order.state == StateShipped then\n \" border\"\n\n else\n \"\"\n )\n , E.onClick <|\n if order.state == StateShipped then\n NoOp\n\n else\n ApiShipOrder order.id\n ]\n [ viewIcon \"flight\", H.span [] [ i18n lang \"Ship\" ] ]\n , H.button\n [ A.class <|\n \"small\"\n ++ (if order.state == StateDelivered then\n \" border\"\n\n else\n \"\"\n )\n , E.onClick <|\n if order.state == StateDelivered then\n NoOp\n\n else\n ApiDeliverOrder order.id\n ]\n [ viewIcon \"playlist_add_check\", H.span [] [ i18n lang \"Deliver\" ] ]\n , H.button\n [ A.class <|\n \"small tertiary\"\n ++ (if order.state == StateOrdered then\n \" border\"\n\n else\n \"\"\n )\n , E.onClick <|\n if order.state == StateOrdered then\n NoOp\n\n else\n ApiRevertOrder order.id\n ]\n [ viewIcon \"undo\", H.span [] [ i18n lang \"Revert to Ordered\" ] ]\n , H.button\n [ A.class <|\n \"small tertiary\"\n ++ (if order.state == StateCancelled then\n \" border\"\n\n else\n \"\"\n )\n , E.onClick <|\n if order.state == StateCancelled then\n NoOp\n\n else\n ApiCancelOrder order.id\n ]\n [ viewIcon \"delete_forever\", H.span [] [ i18n lang \"Cancel\" ] ]\n , H.button\n [ A.class <|\n \"small tertiary\"\n ++ (if order.state == StateRefunded then\n \" border\"\n\n else\n \"\"\n )\n , E.onClick <|\n if order.state == StateRefunded then\n NoOp\n\n else\n ApiRefundOrder order.id\n ]\n [ viewIcon \"money_off\", H.span [] [ i18n lang \"Refund\" ] ]\n ]\n ]\n\n\nviewAdminOrders : Model -> H.Html Msg\nviewAdminOrders model =\n let\n viewWrapper viewTitle =\n H.div\n [ A.class largeWrapper ]\n [ H.div [ A.class \"center-align\" ]\n [ H.h5 [] [ viewTitle ] ]\n ]\n in\n case model.orders of\n RemoteData.NotAsked ->\n viewWrapper <|\n i18n model.lang \"Please sign in to continue or refresh the page\"\n\n RemoteData.Failure err ->\n viewWrapper <|\n H.text <|\n httpError model.lang err\n\n RemoteData.Loading ->\n viewWrapper viewLoading\n\n RemoteData.Success orders ->\n sortOrders model.search model.sorting orders\n |> List.map (viewAdminOrder model.lang)\n |> H.div [ A.class \"container padding\" ]\n\n\nformatAddress : Maybe Address -> String\nformatAddress address =\n case address of\n Nothing ->\n \"N/A\"\n\n Just a ->\n [ a.country\n , a.city\n , a.line1\n , Maybe.withDefault \"\" a.line2\n , Maybe.withDefault \"\" a.postcode\n ]\n |> List.filter (\\f -> not (String.isEmpty f))\n |> String.join \", \"\n\n\nviewTextInput : String -> String -> Field -> H.Html Msg\nviewTextInput subject txt field =\n H.div [ A.class \"field border round fill small max\" ]\n [ H.input\n [ A.attribute \"type\" \"text\"\n , A.value txt\n , E.onInput <| EditField field\n ]\n []\n , H.span [ A.class \"helper\" ] [ H.text subject ]\n ]\n\n\nviewTextAreaInput : String -> String -> Field -> H.Html Msg\nviewTextAreaInput _ txt field =\n H.div [ A.class \"grid\" ]\n [ H.div [ A.class \"s12 m6 max\" ]\n [ H.textarea\n [ A.style \"width\" \"100%\"\n , A.style \"height\" \"400px\"\n , A.style \"background-color\" \"rgb(255,255,255)\"\n , A.style \"padding\" \"5px\"\n , A.style \"overflow\" \"scroll\"\n , A.value txt\n , E.onInput <| EditField field\n , A.rows 10\n ]\n []\n ]\n , H.div\n [ A.class \"s12 m6 left-align\"\n , A.style \"padding\" \"5px\"\n , A.style \"overflow\" \"scroll\"\n , A.style \"background-color\" \"rgb(255,255,255)\"\n ]\n [ viewMarkdown txt ]\n ]\n\n\nviewMarkdown : String -> H.Html Msg\nviewMarkdown txt =\n H.div\n [ A.class \"max left-align padding\"\n , A.style \"background-color\" \"white\"\n , A.style \"list-style-type\" \"none\"\n ]\n [ Markdown.Render.toHtml Extended txt\n |> H.map MarkdownMsg\n ]\n\n\nviewNumberInput : String -> Int -> Field -> H.Html Msg\nviewNumberInput subject num field =\n H.div [ A.class \"field border round fill small max\" ]\n [ H.input\n [ A.attribute \"type\" \"number\"\n , A.value <| String.fromInt num\n , E.onInput <|\n EditField field\n ]\n []\n , H.span [ A.class \"helper\" ] [ H.text subject ]\n ]\n\n\nviewTextSelect : String -> List String -> String -> Field -> H.Html Msg\nviewTextSelect subject opts selected field =\n let\n viewOption opt =\n H.option\n [ A.value opt\n , A.selected <| opt == selected\n ]\n [ H.text opt ]\n in\n H.div [ A.class \"field label suffix border small round\" ]\n [ H.select [ E.onInput <| EditField field ] <| List.map viewOption opts\n , H.label [] [ H.text subject ]\n , viewIcon \"arrow_drop_down\"\n ]\n\n\nviewCategorySelect : Category -> Bool -> Field -> H.Html Msg\nviewCategorySelect cat bool field =\n H.div []\n [ H.input\n [ A.attribute \"type\" \"checkbox\"\n , A.checked bool\n , E.onClick <| EditField field (stringFromCategory cat)\n ]\n []\n , H.span [ A.class \"helper padding\" ] [ H.text <| stringFromCategory cat ]\n ]\n\n\nviewToggleInput : String -> Bool -> Field -> H.Html Msg\nviewToggleInput subject bool field =\n H.div []\n [ H.label [ A.class \"switch\" ]\n [ H.input\n [ A.attribute \"type\" \"checkbox\"\n , A.checked bool\n , E.onClick <| EditField field \"\"\n ]\n []\n , H.span [ A.class \"helper padding\" ] [ H.text subject ]\n ]\n ]\n\n\nviewImageSelect : String -> Field -> H.Html Msg\nviewImageSelect im field =\n H.div []\n [ viewCartThumbnail im\n , H.label [ E.onClick <| EditField field im ]\n [ H.span\n []\n [ viewIcon \"delete\" ]\n ]\n , H.div [ A.class \"divider\" ] []\n ]\n\n\nviewImageUpload : H.Html Msg\nviewImageUpload =\n H.button [ A.class \"circle\" ]\n [ viewIcon \"attach_file\"\n , H.input\n [ A.attribute \"type\" \"file\"\n , A.multiple True\n , E.on \"change\"\n (Json.Decode.map ApiUploadProductImage uploadDecoder)\n ]\n []\n ]\n\n\nuploadDecoder : Json.Decode.Decoder (List File.File)\nuploadDecoder =\n Json.Decode.at [ \"target\", \"files\" ] (Json.Decode.list File.decoder)\n\n\nviewAdminProduct : Lang -> WebData Product -> H.Html Msg\nviewAdminProduct lang result =\n let\n viewWrapper viewTitle =\n H.div\n [ A.class largeWrapper ]\n [ H.div [ A.class \"center-align\" ]\n [ H.h5 [] [ viewTitle ] ]\n ]\n in\n case result of\n RemoteData.NotAsked ->\n viewWrapper <|\n i18n lang \"Please refresh the page\"\n\n RemoteData.Failure err ->\n viewWrapper <|\n H.text <|\n httpError lang err\n\n RemoteData.Loading ->\n viewWrapper viewLoading\n\n RemoteData.Success product ->\n let\n currencies =\n List.map stringFromCurrency currencyVariants\n in\n H.div\n [ A.class \"fill center-align padding\" ]\n [ H.div\n [ A.class \"center-align\" ]\n [ H.h5\n [ A.class \"center-align\" ]\n [ H.text <|\n case product.id of\n \"new\" ->\n \"New Product\"\n\n _ ->\n \"Edit Product\"\n ]\n , H.p [] [ viewTextInput \"Title\" product.title ProductTitle ]\n , H.p [] [ viewTextAreaInput \"Summary\" product.summary ProductSummary ]\n , H.p [ A.class \"left-align border round padding\" ]\n [ H.b [] [ i18n lang \"Pick Categories\" ]\n , H.div [] <|\n List.map\n (\\cat ->\n viewCategorySelect cat (List.member cat product.categories) (ProductCategories cat)\n )\n categoryVariants\n ]\n , H.br [] []\n , H.p []\n [ viewTextSelect \"Currency\" currencies (stringFromCurrency product.price.currency) ProductCurrency\n , viewNumberInput (\"Price: \" ++ formatPrice product.price) product.price.amount ProductPrice\n , viewNumberInput \"Discount: \" product.price.discount ProductDiscountPrice\n ]\n , H.p []\n [ viewNumberInput (\"Stock: \" ++ String.fromInt product.stock) product.stock ProductStock\n ]\n , H.hr [] []\n , case product.id of\n \"new\" ->\n H.b [] [ i18n lang \"Save your new product before uploading images\" ]\n\n _ ->\n H.div [ A.class \"row scroll\" ] <|\n viewImageUpload\n :: List.map (\\im -> viewImageSelect im ProductImages) product.images\n , H.div [ A.class \"space\" ] []\n , H.p [ A.class \"row\" ]\n [ viewToggleInput \"Published?\" product.published ProductPublished ]\n ]\n , H.nav\n [ A.class \"padding\" ]\n [ H.button\n [ A.class \"max\"\n , E.onClick <| ApiPutProduct\n ]\n [ H.span []\n [ viewIcon \"save\"\n , H.span []\n [ case product.id of\n \"new\" ->\n i18n lang \"Create\"\n\n _ ->\n i18n lang \"Update\"\n ]\n ]\n ]\n ]\n ]\n"],"names":["oldTraps","target","source","LogLevel","clientPlatform","noticeContainer","noticeText","closeButton","$0b6748f4b8efa58b$var$cachedSetTimeout","$0b6748f4b8efa58b$var$cachedClearTimeout","$0b6748f4b8efa58b$var$currentQueue","$01fab7a4d39b7fcc$export$243e62d78d3b544d","$01fab7a4d39b7fcc$var$_obj","$f5e914c8bdbbb5f4$var$idbProxyableTypes","$f5e914c8bdbbb5f4$var$cursorAdvanceMethods","$6801661115945616$var$_obj","$6801661115945616$var$_obj1","$f394e9ac486578e6$var$_obj","$parcel$global","globalThis","self","window","global","$parcel$modules","$parcel$inits","parcelRequire","$9167c88d5d99601b$var$asyncGeneratorStep","gen","resolve","reject","_next","_throw","key","arg","info","value","error","done","Promise","then","$9167c88d5d99601b$export$7c398597f8905a1","fn","args","arguments","apply","err","undefined","$f6e09fca77e332f0$export$3c9a16f847548506","s","e","t","p","Object","prototype","hasOwnProperty","call","indexOf","getOwnPropertySymbols","i","length","propertyIsEnumerable","$f6e09fca77e332f0$export$67ebef60e6f28a6","thisArg","body","f","y","g","_","label","sent","trys","ops","next","verb","Symbol","iterator","n","v","step","op","TypeError","pop","push","$0c3f79e99c83f58f$export$2996f80ef42b8419","instance","Constructor","$a27186eefd8c4b26$var$_defineProperties","props","descriptor","enumerable","configurable","writable","defineProperty","$a27186eefd8c4b26$export$d60067ff2358eee8","protoProps","staticProps","$642625cf0cd1d5ab$export$1e71eb4bef00f6b0","obj","$187b8475682b19ca$export$581ff339ea0ba762","ownKeys","keys","concat","filter","sym","getOwnPropertyDescriptor","forEach","$47241cfb346e7aa2$export$79e617b1955a2616","arr","len","arr2","Array","$c8a130eed09e6369$export$a5be06335b3a083c","o","minLen","toString","slice","constructor","name","from","test","$6e952d66071d1a0a$export$fdf2a89c76341bbf","isArray","_s","_e","_i","_arr","_n","_d","$a279000f7ad0c22a$export$1b5e630bc3aea29f","iter","$b419213e67ec23f4$export$f3b8ed2e4a5d10b8","ReferenceError","$8105a13e55b45753$export$c2c98ac76e997b63","setPrototypeOf","__proto__","$a3fe9d9bda1cd86f$export$7e4530ad35d3bb8","subClass","superClass","create","$63982ecb68a23cf2$export$685354647fba1516","Reflect","construct","sham","Proxy","Boolean","valueOf","$f3c0d336ce198c7b$export$2d841144c5f8c4ab","Parent","Class","a","Function","bind","$a1f3116cd0a6764d$export$f09211a7d3c496a1","getPrototypeOf","$19ba85e74b42d450$export$2466d533fda16e33","_cache","Map","has","get","set","Wrapper","$60ddfe51b57fdc13$export$8dd05c13f5255580","Derived","hasNativeReflectConstruct","result","Super","NewTarget","id","exports","init","module","Error","code","register","SuppressedError","m","$","N","P","b","document","querySelector","querySelectorAll","R","d","r","classList","contains","L","tagName","toLowerCase","k","type","add","u","remove","addEventListener","X","removeEventListener","Y","parentNode","insertBefore","previousElementSibling","j","nextElementSibling","x","parentElement","J","createElement","setAttribute","T","placeholder","getAttribute","q","tt","currentTarget","nt","focus","et","rt","at","clearTimeout","it","D","ot","I","ct","ut","st","G","Z","setTimeout","A","click","files","map","join","readOnly","c","parseInt","getComputedStyle","documentElement","getPropertyValue","offsetWidth","z","parseFloat","min","B","max","O","C","F","w","K","H","h","S","M","Math","abs","style","setProperty","_q","E","lt","children","dt","activeElement","blur","gt","l","light","dark","className","appendChild","removeChild","yt","materialDynamicColors","replace","vt","pt","MutationObserver","observe","attributes","attributeFilter","childList","subtree","random","_Q","_state","W","V","ft","_ft","closest","open","class","Q","onclick","close","showModal","show","beercss","ui","ht","Ot","Dt","Nt","bt","Et","mt","St","Yt","Jt","wt","Xt","zt","$t","Ct","It","pow","round","variant","FIDELITY","CONTENT","MONOCHROME","Qt","chroma","Tt","inViewingConditions","make","isDark","tonePrefersLightForeground","tone","toneAllowsLightForeground","enableLightForeground","fe","score","_iteratorNormalCompletion","_didIteratorError","_iteratorError","_step","_iterator","entries","_step_value","return","de","repeat","Gt","of","schemes","palettes","primary","a1","secondary","a2","tertiary","a3","neutral","n1","neutralVariant","n2","customColors","ge","Lt","_Lt","blend","xt","harmonize","color","onColor","colorContainer","onColorContainer","Pt","JSON","parse","stringify","surfaceDim","surface","surfaceBright","surfaceContainerLowest","surfaceContainerLow","surfaceContainer","surfaceContainerHigh","surfaceContainerHighest","onSurface","onSurfaceVariant","outline","outlineVariant","aw","nbb","ncb","nc","rgbD","fl","fLRoot","PI","exp","cbrt","sqrt","DEFAULT","hue","jstar","astar","bstar","viewed","cos","sin","fromIntInViewingConditions","U","atan2","Bt","Rt","Vt","Ft","log","fromJchInViewingConditions","fromUcsInViewingConditions","Mt","SCALED_DISCOUNT_FROM_LINRGB","chromaticAdaptation","sanitizeRadians","intercept","lerpPoint","Y_FROM_LINRGB","isBounded","l1","h1","u1","l2","u2","h2","nthVertex","hueOf","areInCyclicOrder","floor","ceil","bisectToSegment","criticalPlaneBelow","trueDelinearized","criticalPlaneAbove","CRITICAL_PLANES","setCoordinate","midpoint","inverseChromaticAdaptation","LINRGB_FROM_SCALED_DISCOUNT","findResultByJ","bisectToLimit","fromInt","solveToInt","argb","internalHue","internalChroma","internalTone","setInternalState","toInt","xyzInViewingConditions","fromXyzInViewingConditions","cam16Ucs","fromUcs","ratioOfYs","lighter","darker","At","isDisliked","palette","isBackground","background","secondBackground","contrastCurve","toneDeltaPair","hctCache","getHct","getTone","size","clear","contrastLevel","roleA","roleB","delta","polarity","stayTogether","getContrast","ratioOfTones","foregroundTone","o1","_ref","s1","c1","_ref1","_ref2","d1","p1","f1","M1","_t_name","_t_isBackground","lighterUnsafe","darkerUnsafe","NEUTRAL","TONAL_SPOT","VIBRANT","EXPRESSIVE","RAINBOW","FRUIT_SALAD","low","normal","medium","high","contentAccentToneDelta","primaryPaletteKeyColor","fromPalette","primaryPalette","keyColor","secondaryPaletteKeyColor","secondaryPalette","tertiaryPaletteKeyColor","tertiaryPalette","neutralPaletteKeyColor","neutralPalette","neutralVariantPaletteKeyColor","neutralVariantPalette","onBackground","highestSurface","surfaceVariant","inverseSurface","inverseOnSurface","shadow","scrim","surfaceTint","primaryContainer","onPrimary","sourceColorHct","onPrimaryContainer","inversePrimary","secondaryContainer","onSecondary","onSecondaryContainer","tertiaryContainer","onTertiary","fixIfDisliked","onTertiaryContainer","errorPalette","errorContainer","onError","onErrorContainer","primaryFixed","primaryFixedDim","onPrimaryFixed","onPrimaryFixedVariant","secondaryFixed","secondaryFixedDim","onSecondaryFixed","onSecondaryFixedVariant","tertiaryFixed","tertiaryFixedDim","onTertiaryFixed","onTertiaryFixedVariant","cache","fromHct","createKeyColor","fromHueAndChroma","createPaletteFromColors","a4","te","ne","y1","k1","A1","y2","y3","k2","A2","y4","y5","k3","y6","k4","ae","y7","y8","distance","index","sort","I1","k5","P1","I2","B1","A3","fill","D1","P2","P3","I3","B2","T1","P4","I4","B3","T2","V1","y9","k6","A4","oe","_r_get","Wt","RED","GREEN","BLUE","se","weights","momentsR","momentsG","momentsB","moments","cubes","constructHistogram","computeMoments","createBoxes","createResult","resultCount","quantize","_this_weights_p","getIndex","ie","r0","g0","b0","r1","g1","b1","cut","vol","variance","ce","volume","maximize","maximum","cutLocation","bottom","top","le","requestedCount","ue","lightFromCorePalette","darkFromCorePalette","contentOf","he","desired","fallbackColorARGB","_loop","f3","_ret","hct","find","_$_object_spread","_iteratorNormalCompletion1","_didIteratorError1","_iteratorError1","_step1","_iterator1","f2","g2","CUTOFF_CHROMA","CUTOFF_EXCITED_PROPORTION","b2","WEIGHT_PROPORTION","TARGET_CHROMA","WEIGHT_CHROMA_BELOW","WEIGHT_CHROMA_ABOVE","_iteratorNormalCompletion2","_didIteratorError2","_iteratorError2","_step2","_iterator2","f4","_me","getContext","width","height","drawImage","dataset","area","split","getImageData","data","complete","onload","_arguments","me","_pe","src","Blob","fetch","blob","_tmp","Image","URL","createObjectURL","$0b6748f4b8efa58b$exports","$0b6748f4b8efa58b$var$process","$0b6748f4b8efa58b$var$defaultSetTimout","$0b6748f4b8efa58b$var$defaultClearTimeout","$0b6748f4b8efa58b$var$runTimeout","fun","$0b6748f4b8efa58b$var$queue","$0b6748f4b8efa58b$var$draining","$0b6748f4b8efa58b$var$queueIndex","$0b6748f4b8efa58b$var$cleanUpNextTick","$0b6748f4b8efa58b$var$drainQueue","timeout","run","$0b6748f4b8efa58b$var$runClearTimeout","marker","$0b6748f4b8efa58b$var$Item","array","$0b6748f4b8efa58b$var$noop","nextTick","title","browser","env","argv","version","versions","on","addListener","once","off","removeListener","removeAllListeners","emit","prependListener","prependOnceListener","listeners","binding","cwd","chdir","dir","umask","$9b50b37fb8824044$var$stringToByteArray$1","str","out","charCodeAt","$9b50b37fb8824044$var$byteArrayToString","bytes","pos","String","fromCharCode","c2","c21","c3","c4","c22","c31","$9b50b37fb8824044$export$b3b2de96497acc47","byteToCharMap_","charToByteMap_","byteToCharMapWebSafe_","charToByteMapWebSafe_","ENCODED_VALS_BASE","ENCODED_VALS","ENCODED_VALS_WEBSAFE","HAS_NATIVE_SUPPORT","atob","encodeByteArray","input","webSafe","init_","byteToCharMap","output","byte1","haveByte2","byte2","haveByte3","byte3","outByte1","outByte2","outByte3","outByte4","encodeString","btoa","decodeString","decodeStringToByteArray","charToByteMap","charAt","byte4","haveByte4","$9b50b37fb8824044$export$55ca9d4bee46aeb3","Error1","DecodeBase64StringError","_super","_this","$9b50b37fb8824044$export$e510a73ee562749","utf8Bytes","$9b50b37fb8824044$export$4b5284a3025a455","$9b50b37fb8824044$export$c62426fdd000a97e","console","$9b50b37fb8824044$var$getDefaultsFromEnvVariable","defaultsJsonString","$9b50b37fb8824044$var$getDefaultsFromCookie","match","cookie","decoded","$9b50b37fb8824044$export$212bb2fc580a90a8","$9b50b37fb8824044$var$getDefaultsFromGlobal","$9b50b37fb8824044$export$a4e55266d2135a7f","__FIREBASE_DEFAULTS__","$9b50b37fb8824044$export$9c11895284c8adad","productName","_a","_b","emulatorHosts","$9b50b37fb8824044$export$3dfb6827a9f89756","config","$9b50b37fb8824044$export$5539a1a3afe87d6","$9b50b37fb8824044$export$85f6557964517f1a","Deferred","promise","callback","catch","$9b50b37fb8824044$export$c36915b22ce77c19","navigator","$9b50b37fb8824044$export$dd24e9cd51226c56","FirebaseError","message","customData","captureStackTrace","$9b50b37fb8824044$export$3fa6e1b18a3b2d40","ErrorFactory","service","serviceName","errors","_len","_key","fullCode","template","$9b50b37fb8824044$var$PATTERN","fullMessage","$9b50b37fb8824044$export$9cb4719e2e525b7a","aKeys","bKeys","includes","aProp","bProp","$9b50b37fb8824044$var$isObject","thing","$9b50b37fb8824044$export$ac4103b836844853","querystringParams","params","arrayVal","encodeURIComponent","$9b50b37fb8824044$export$c1271ca4c8a70741","querystring","tokens","token","_token_split","decodeURIComponent","$9b50b37fb8824044$export$1a8408415472d8ed","url","queryStart","fragmentStart","substring","$9b50b37fb8824044$var$ObserverProxy","ObserverProxy","executor","onNoObservers","observers","unsubscribes","observerCount","task","finalized","forEachObserver","observer","nextOrObserver","$9b50b37fb8824044$var$implementsAnyMethods","methods","method","$9b50b37fb8824044$var$noop","unsub","unsubscribeOne","finalError","sendOne","$9b50b37fb8824044$export$4befe9b5fa509a1b","_delegate","$601a68140873c3ae$export$16fa2f45be04daa8","Component","instanceFactory","multipleInstances","serviceProps","instantiationMode","onInstanceCreated","mode","$601a68140873c3ae$var$DEFAULT_ENTRY_NAME","$601a68140873c3ae$export$2881499e37b75b9a","Provider","container","component","instances","instancesDeferred","instancesOptions","onInitCallbacks","identifier","normalizedIdentifier","normalizeInstanceIdentifier","deferred","isInitialized","shouldAutoInitialize","getOrInitializeService","instanceIdentifier","options","optional","instanceDeferred","delete","services","all","values","INTERNAL","_delete","opts","_opts_options","isComponentSet","normalizedDeferredIdentifier","existingCallbacks","Set","existingInstance","callbacks","param","_param_options","invokeOnInitCallbacks","$601a68140873c3ae$export$436a80eea5d5c0c5","ComponentContainer","providers","provider","getProvider","setComponent","addComponent","$01fab7a4d39b7fcc$var$instances","$01fab7a4d39b7fcc$var$levelStringToEnum","DEBUG","VERBOSE","INFO","WARN","ERROR","SILENT","$01fab7a4d39b7fcc$var$defaultLogLevel","$01fab7a4d39b7fcc$var$ConsoleMethod","$01fab7a4d39b7fcc$var$defaultLogHandler","logType","_console","logLevel","now","Date","toISOString","$01fab7a4d39b7fcc$export$efa9a398d6368992","Logger","_logLevel","_logHandler","_userLogHandler","val","$f5e914c8bdbbb5f4$var$cursorRequestMap","WeakMap","$f5e914c8bdbbb5f4$var$transactionDoneMap","$f5e914c8bdbbb5f4$var$transactionStoreNamesMap","$f5e914c8bdbbb5f4$var$transformCache","$f5e914c8bdbbb5f4$export$407448d2b89b1813","$f5e914c8bdbbb5f4$var$idbProxyTraps","prop","receiver","IDBTransaction","objectStoreNames","objectStore","$f5e914c8bdbbb5f4$export$efccba1c4a2ef57b","IDBRequest","unlisten","request","success","IDBCursor","newValue","func","IDBDatabase","transaction","$f5e914c8bdbbb5f4$var$getCursorAdvanceMethods","advance","continue","continuePrimaryKey","$f5e914c8bdbbb5f4$export$3b14a55fb2447963","storeNames","tx","$f5e914c8bdbbb5f4$var$cacheDonePromiseForTransaction","DOMException","constructors","IDBObjectStore","IDBIndex","some","object","$2f08b141aec567d8$var$readMethods","$2f08b141aec567d8$var$writeMethods","$2f08b141aec567d8$var$cachedMethods","$2f08b141aec567d8$var$getMethod","targetFuncName","useIndex","isWrite","storeName","_target","_$target","store","shift","getOwnPropertyDescriptors","defineProperties","$645eaebd1af01014$var$ownKeys","enumerableOnly","symbols","$6801661115945616$var$PlatformLoggerServiceImpl","PlatformLoggerServiceImpl","getProviders","getComponent","getImmediate","library","logString","$6801661115945616$var$name$o","$6801661115945616$var$version$1","$6801661115945616$var$logger","$6801661115945616$export$9f30fa0c10967f7f","$6801661115945616$var$PLATFORM_LOG_STRING","$6801661115945616$export$b4e3c36c855b14b5","$6801661115945616$export$9566bce3835c0f28","$6801661115945616$export$c930050e7bb63965","componentName","debug","app","$6801661115945616$export$fa5244b94c62d36a","$6801661115945616$export$fa0d6da0f5838f50","heartbeatController","triggerHeartbeat","$6801661115945616$var$ERROR_FACTORY","$6801661115945616$var$FirebaseAppImpl","FirebaseAppImpl","_isDeleted","_options","assign","_config","_name","_automaticDataCollectionEnabled","automaticDataCollectionEnabled","_container","checkDestroyed","isDeleted","appName","$6801661115945616$export$31499a9cd224b78c","$6801661115945616$export$c55cfd413944906d","rawConfig","name1","existingApp","newApp","$6801661115945616$export$d29d5299a7137abc","libraryKeyOrName","libraryMismatch","versionMismatch","warning","warn","$6801661115945616$var$STORE_NAME","$6801661115945616$var$dbPromise","$6801661115945616$var$getDbPromise","blocked","upgrade","blocking","terminated","indexedDB","openPromise","event","oldVersion","newVersion","db","createObjectStore","originalErrorMessage","$6801661115945616$var$_readHeartbeatsFromIndexedDB","idbGetError","$6801661115945616$var$computeKey","$6801661115945616$var$writeHeartbeatsToIndexedDB","heartbeatObject","$6801661115945616$var$_writeHeartbeatsToIndexedDB","put","appId","$6801661115945616$var$HeartbeatServiceImpl","HeartbeatServiceImpl","_heartbeatsCache","_storage","$6801661115945616$var$HeartbeatStorageImpl","_heartbeatsCachePromise","read","agent","date","platformLogger","getPlatformInfoString","$6801661115945616$var$getUTCDateString","heartbeats","lastSentHeartbeatDate","singleDateHeartbeat","hbTimestamp","overwrite","_extractHeartbeatsForHeader","heartbeatsToSend","unsentEntries","headerString","$6801661115945616$var$extractHeartbeatsForHeader","heartbeatsCache","maxSize","heartbeatEntry","hb","dates","$6801661115945616$var$countBytes","today","HeartbeatStorageImpl","_canUseIndexedDBPromise","runIndexedDBEnvironmentCheck","preExist","DB_CHECK_NAME","onsuccess","deleteDatabase","onupgradeneeded","onerror","idbHeartbeatObject","$6801661115945616$var$readHeartbeatsFromIndexedDB","heartbeatsObject","existingHeartbeatsObject","$ecbc2403a053d1fd$export$afb3516d9d608401","property","base","desc","$f394e9ac486578e6$var$_prodErrorMap","$f394e9ac486578e6$var$_DEFAULT_AUTH_ERROR_FACTORY","$f394e9ac486578e6$var$logClient","$f394e9ac486578e6$var$_logError","msg","$f394e9ac486578e6$export$9fa96a7d116ea3ce","authOrCode","rest","$f394e9ac486578e6$var$createErrorInternal","$f394e9ac486578e6$export$9d398bebfec1c039","$f394e9ac486578e6$var$_errorWithCustomMessage","auth","factory","$f394e9ac486578e6$export$7f8ddf7c7c20b3cd","_authOrCode__errorFactory","fullParams","_errorFactory","$f394e9ac486578e6$export$890c4ad488842ce7","assertion","$f394e9ac486578e6$var$debugFail","failure","$f394e9ac486578e6$var$_getCurrentUrl","location","href","$f394e9ac486578e6$var$_getCurrentScheme","protocol","$f394e9ac486578e6$var$Delay","Delay","shortDelay","longDelay","isMobile","runtime","onLine","$f394e9ac486578e6$var$_isHttpOrHttps","chrome","$f394e9ac486578e6$var$_emulatorUrl","path","emulator","startsWith","$f394e9ac486578e6$export$2ed0fc6709e59212","FetchProvider","fetchImpl","headersImpl","responseImpl","Headers","Response","$f394e9ac486578e6$var$SERVER_ERROR_MAP","$f394e9ac486578e6$var$DEFAULT_API_TIMEOUT_MS","$f394e9ac486578e6$var$_addTidIfNecessary","tenantId","$f394e9ac486578e6$var$_performApiRequest","$f394e9ac486578e6$var$__performApiRequest","$f394e9ac486578e6$var$_performFetchWithErrorHandling","query","headers","apiKey","_getAdditionalHeaders","languageCode","$f394e9ac486578e6$var$_getFinalTarget","apiHost","referrerPolicy","customErrorMap","fetchFn","$f394e9ac486578e6$var$__performFetchWithErrorHandling","errorMap","networkTimeout","response","json","_errorMessage_split","serverErrorCode","serverErrorMessage","authError","_canInitEmulator","$f394e9ac486578e6$var$NetworkTimeout","race","clearNetworkTimeout","$f394e9ac486578e6$var$_makeTaggedError","ok","errorMessage","$f394e9ac486578e6$var$_performSignInRequest","$f394e9ac486578e6$var$__performSignInRequest","serverResponse","_serverResponse","host","apiScheme","NetworkTimeout","timer","errorParams","email","phoneNumber","_tokenResponse","$f394e9ac486578e6$var$isEnterprise","grecaptcha","enterprise","$f394e9ac486578e6$var$RecaptchaConfig","RecaptchaConfig","siteKey","recaptchaEnforcementState","recaptchaKey","providerStr","$f394e9ac486578e6$var$_parseEnforcementState","enforcementStateStr","enforcementState","getProviderEnforcementState","$f394e9ac486578e6$var$_getRecaptchaConfig","$f394e9ac486578e6$var$_deleteAccount","$f394e9ac486578e6$var$_getAccountInfo","$f394e9ac486578e6$var$utcTimestampToDateString","utcTimestamp","Number","isNaN","getTime","toUTCString","$f394e9ac486578e6$var$_getIdTokenResult","user","forceRefresh","userInternal","claims","firebase","signInProvider","getIdToken","$f394e9ac486578e6$var$_parseToken","auth_time","iat","authTime","$f394e9ac486578e6$var$secondsStringToMilliseconds","issuedAtTime","expirationTime","signInSecondFactor","seconds","algorithm","payload","signature","$f394e9ac486578e6$var$_logoutIfInvalidated","$f394e9ac486578e6$var$__logoutIfInvalidated","currentUser","signOut","$f394e9ac486578e6$var$ProactiveRefresh","ProactiveRefresh","isRunning","timerId","errorBackoff","schedule","wasError","expTime","stsTokenManager","interval","getInterval","iteration","$f394e9ac486578e6$var$UserMetadata","UserMetadata","createdAt","lastLoginAt","_initializeTime","lastSignInTime","creationTime","metadata","$f394e9ac486578e6$var$_reloadWithoutSaving","$f394e9ac486578e6$var$__reloadWithoutSaving","idToken","coreAccount","newProviderData","providerData","oldIsAnonymous","newIsAnonymous","isAnonymous","$f394e9ac486578e6$var$getAccountInfo","users","_notifyReloadListener","providerUserInfo","providerId","uid","rawId","displayName","photoURL","photoUrl","original","newData","passwordHash","localId","emailVerified","$f394e9ac486578e6$var$_reload","_persistUserIfCurrent","_notifyListenersIfCurrent","$f394e9ac486578e6$var$_requestStsToken","refreshToken","_auth_config","tokenApiHost","accessToken","access_token","expiresIn","expires_in","refresh_token","$f394e9ac486578e6$var$_revokeToken","$f394e9ac486578e6$var$StsTokenManager","StsTokenManager","parsedToken","updateTokensAndExpiration","isExpired","refresh","oldToken","$f394e9ac486578e6$var$requestStsToken","expiresInSec","toJSON","manager","$f394e9ac486578e6$var$assertStringOrUndefined","$f394e9ac486578e6$export$23ebac1979863676","UserImpl","opt","proactiveRefresh","reloadUserInfo","reloadListener","getToken","$f394e9ac486578e6$export$7a38258bbe170828","$f394e9ac486578e6$export$d24c54395ce0c509","userInfo","_copy","_assign","newUser","_clone","_start","_stop","reload","tokensRefreshed","updateFromServerResponse","$f394e9ac486578e6$var$deleteAccount","clearRefreshToken","_redirectEventId","_c","_f","_g","_h","plainObjectTokenManager","fromJSON","idTokenResponse","$f394e9ac486578e6$var$instanceCache","$f394e9ac486578e6$export$158acd800e1ef08b","cls","$f394e9ac486578e6$var$InMemoryPersistence","InMemoryPersistence","storage","_listener","$f394e9ac486578e6$export$cf2f7c5792f80b46","$f394e9ac486578e6$var$PersistenceUserManager","PersistenceUserManager","persistence","userKey","_this_auth","fullUserKey","fullPersistenceKey","boundEventHandler","_onStorageEvent","_addListener","_set","_get","_fromJSON","_remove","newPersistence","getCurrentUser","removeCurrentUser","setCurrentUser","_removeListener","persistenceHierarchy","availablePersistences","selectedPersistence","userToMigrate","migrationHierarchy","_isAvailable","_shouldAllowMigration","$f394e9ac486578e6$var$_getBrowserName","userAgent","ua","$f394e9ac486578e6$var$_isIEMobile","$f394e9ac486578e6$var$_isFirefox","$f394e9ac486578e6$var$_isBlackBerry","$f394e9ac486578e6$var$_isWebOS","$f394e9ac486578e6$var$_isSafari","$f394e9ac486578e6$var$_isChromeIOS","$f394e9ac486578e6$export$92108d983e8ee699","matches","$f394e9ac486578e6$export$d66dc83d8cfc8dd","$f394e9ac486578e6$var$_isMobileBrowser","$f394e9ac486578e6$export$9f4f30ee63539e24","reportedPlatform","frameworks","reportedFrameworks","$f394e9ac486578e6$var$AuthMiddlewareQueue","AuthMiddlewareQueue","queue","onAbort","wrappedCallback","nextUser","onAbortStack","beforeStateCallback","reverse","originalMessage","$f394e9ac486578e6$var$__getPasswordPolicy","$f394e9ac486578e6$var$PasswordPolicyImpl","PasswordPolicyImpl","responseOptions","customStrengthOptions","minPasswordLength","maxPasswordLength","containsLowercaseCharacter","containsLowercaseLetter","containsUppercaseCharacter","containsUppercaseLetter","containsNumericCharacter","containsNonAlphanumericCharacter","allowedNonAlphanumericCharacters","forceUpgradeOnSignin","schemaVersion","password","status","isValid","passwordPolicy","validatePasswordLengthOptions","validatePasswordCharacterOptions","meetsMinPasswordLength","meetsMaxPasswordLength","updatePasswordCharacterOptionsStatuses","passwordChar","$f394e9ac486578e6$export$91477dc880baac21","AuthImpl","heartbeatServiceProvider","appCheckServiceProvider","emulatorConfig","operations","authStateSubscription","$f394e9ac486578e6$var$Subscription","idTokenSubscription","beforeStateQueue","redirectUser","isProactiveRefreshEnabled","EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION","_isInitialized","_deleted","_initializationPromise","_popupRedirectResolver","_agentRecaptchaConfig","_tenantRecaptchaConfigs","_projectPasswordPolicy","_tenantPasswordPolicies","lastNotifiedUid","settings","appVerificationDisabledForTesting","clientVersion","sdkClientVersion","popupRedirectResolver","persistenceManager","_shouldInitProactively","_initialize","initializeCurrentUser","assertedPersistence","_currentUser","_updateCurrentUser","previouslyStoredUser","futureCurrentUser","needsTocheckMiddleware","redirectUserEventId","storedUserEventId","authDomain","getOrInitRedirectPersistenceManager","tryRedirectSignIn","directlySetCurrentUser","runMiddleware","_overrideRedirectResult","reloadAndSetCurrentUserOrClear","redirectResolver","_completeRedirectFn","_setRedirectUser","$f394e9ac486578e6$var$_getUserLanguage","navigatorLanguage","languages","language","userExtern","skipBeforeStateCallbacks","notifyAuthListeners","redirectPersistenceManager","setPersistence","_getPasswordPolicyInternal","_updatePasswordPolicy","validatePassword","$f394e9ac486578e6$var$_getPasswordPolicy","completed","registerStateListener","pushCallback","unsubscribe","onAuthStateChanged","tokenType","$f394e9ac486578e6$var$revokeToken","redirectManager","resolver","_redirectPersistence","_startProactiveRefresh","_stopProactiveRefresh","currentUid","subscription","cb","isUnsubscribed","addObserver","unsubscribe1","action","framework","_getFrameworks","heartbeatsHeader","appCheckToken","getHeartbeatsHeader","_getAppCheckToken","appCheckTokenResult","$f394e9ac486578e6$var$_logWarn","Subscription","proxy","subscribe","$f394e9ac486578e6$var$_loadJS","el","charset","$f394e9ac486578e6$var$getScriptParentElement","getElementsByTagName","$f394e9ac486578e6$var$_generateCallbackName","prefix","$f394e9ac486578e6$var$RecaptchaEnterpriseVerifier","RecaptchaEnterpriseVerifier","authExtern","_retrieveSiteKey","$f394e9ac486578e6$var$getRecaptchaConfig","clientType","retrieveRecaptchaToken","ready","execute","retrieveSiteKey","$f394e9ac486578e6$var$RECAPTCHA_ENTERPRISE_URL","$f394e9ac486578e6$var$injectRecaptchaFields","$f394e9ac486578e6$var$_injectRecaptchaFields","captchaResp","verifier","captchaResponse","newRequest","verify","$f394e9ac486578e6$var$handleRecaptchaFlow","authInstance","actionName","actionMethod","$f394e9ac486578e6$var$_handleRecaptchaFlow","_getRecaptchaConfig","isProviderEnabled","$f394e9ac486578e6$var$extractProtocol","protocolEnd","substr","$f394e9ac486578e6$var$parsePort","portStr","port","$f394e9ac486578e6$export$61196ced6d74a310","AuthCredential","signInMethod","_auth","_idToken","$f394e9ac486578e6$var$linkEmailPassword","$f394e9ac486578e6$var$_linkEmailPassword","$f394e9ac486578e6$var$signInWithPassword","$f394e9ac486578e6$var$_signInWithPassword","$f394e9ac486578e6$var$_signInWithEmailLink$1","$f394e9ac486578e6$var$_signInWithEmailLinkForLinking","$f394e9ac486578e6$export$3a1a48c8f6ef640e","EmailAuthCredential","_email","_password","_tenantId","returnSecureToken","$f394e9ac486578e6$var$signInWithEmailLink$1","oobCode","$f394e9ac486578e6$var$signInWithEmailLinkForLinking","_getIdTokenResponse","_fromEmailAndPassword","_fromEmailAndCode","$f394e9ac486578e6$var$signInWithIdp","$f394e9ac486578e6$var$_signInWithIdp","$f394e9ac486578e6$export$a07804094c3ecf2d","OAuthCredential","pendingToken","secret","nonce","buildRequest","autoCreate","requestUri","postBody","cred","oauthToken","oauthTokenSecret","$f394e9ac486578e6$var$_sendPhoneVerificationCode","$f394e9ac486578e6$var$_signInWithPhoneNumber$1","$f394e9ac486578e6$var$_linkWithPhoneNumber$1","temporaryProof","$f394e9ac486578e6$var$VERIFY_PHONE_NUMBER_FOR_EXISTING_ERROR_MAP_","$f394e9ac486578e6$var$_verifyPhoneNumberForExisting","operation","$f394e9ac486578e6$export$3722cfe417b6ed86","PhoneAuthCredential","$f394e9ac486578e6$var$signInWithPhoneNumber$1","_makeVerificationRequest","$f394e9ac486578e6$var$linkWithPhoneNumber$1","$f394e9ac486578e6$var$verifyPhoneNumberForExisting","_this_params","verificationId","verificationCode","sessionInfo","$f394e9ac486578e6$export$f38c853ae54ed474","ActionCodeURL","actionLink","searchParams","$f394e9ac486578e6$var$parseMode","continueUrl","link","doubleDeepLink","iOSDeepLink","iOSDoubleDeepLink","$f394e9ac486578e6$export$e7c866399fa523f5","EmailAuthProvider","PROVIDER_ID","emailLink","actionCodeUrl","parseLink","EMAIL_PASSWORD_SIGN_IN_METHOD","EMAIL_LINK_SIGN_IN_METHOD","$f394e9ac486578e6$var$FederatedAuthProvider","FederatedAuthProvider","defaultLanguageCode","customParameters","customOAuthParameters","$f394e9ac486578e6$var$BaseOAuthProvider","BaseOAuthProvider","scopes","scope","$f394e9ac486578e6$export$71cec2538cb2c617","FacebookAuthProvider","_fromParams","FACEBOOK_SIGN_IN_METHOD","userCredential","credentialFromTaggedObject","tokenResponse","oauthAccessToken","credential","$f394e9ac486578e6$export$78acf4525d8a74c4","GoogleAuthProvider","addScope","GOOGLE_SIGN_IN_METHOD","oauthIdToken","$f394e9ac486578e6$export$8743009a87fcb00f","GithubAuthProvider","GITHUB_SIGN_IN_METHOD","$f394e9ac486578e6$export$3d8c2f653ac9d0b9","TwitterAuthProvider","TWITTER_SIGN_IN_METHOD","$f394e9ac486578e6$var$UserCredentialImpl","UserCredentialImpl","operationType","_fromIdTokenResponse","$f394e9ac486578e6$var$providerIdForResponse","_updateTokensIfNecessary","$f394e9ac486578e6$var$MultiFactorError","MultiFactorError","$f394e9ac486578e6$var$_processCredentialSavingMfaContextIfNecessary","idTokenProvider","_getReauthenticationResolver","_fromErrorAndOperation","$f394e9ac486578e6$var$__link$1","bypassAuthState","_tmp1","_linkToIdToken","_forOperation","$f394e9ac486578e6$var$__reauthenticate","parsed","sub","$f394e9ac486578e6$var$__signInWithCredential","$f394e9ac486578e6$var$MultiFactorInfoImpl","MultiFactorInfoImpl","factorId","mfaEnrollmentId","enrollmentTime","enrolledAt","enrollment","$f394e9ac486578e6$var$PhoneMultiFactorInfoImpl","_fromServerResponse","$f394e9ac486578e6$var$TotpMultiFactorInfoImpl","PhoneMultiFactorInfoImpl","phoneInfo","TotpMultiFactorInfoImpl","$f394e9ac486578e6$var$STORAGE_AVAILABLE_KEY","$f394e9ac486578e6$var$BrowserPersistenceClass","BrowserPersistenceClass","storageRetriever","setItem","removeItem","getItem","$f394e9ac486578e6$var$BrowserLocalPersistence","BrowserLocalPersistence","localStorage","poll","onStorageEvent","localCache","pollTimer","safariLocalStorageNotSynced","$f394e9ac486578e6$var$_iframeCannotSyncWebStorage","$f394e9ac486578e6$var$_isIframe","fallbackToPolling","oldValue","forAllChangedKeys","_oldValue","notifyListeners","detachListener","stopPolling","storedValue","triggerListeners","storedValue1","$f394e9ac486578e6$var$_isIE10","documentMode","listener","setInterval","StorageEvent","clearInterval","startPolling","attachListener","_this1","_superprop_get__set","_superprop_get__get","_superprop_get__remove","$f394e9ac486578e6$var$BrowserSessionPersistence","BrowserSessionPersistence","sessionStorage","$f394e9ac486578e6$var$Receiver","Receiver","eventTarget","handlersMap","handleEvent","messageEvent","_messageEvent_data","eventId","eventType","handlers","ports","postMessage","promises","handler","origin","fulfilled","reason","eventHandler","receivers","isListeningto","newInstance","$f394e9ac486578e6$export$faec65b429be379","digits","$f394e9ac486578e6$var$Sender","Sender","messageChannel","port1","onMessage","completionTimer","MessageChannel","start","ackTimer","port2","finally","removeMessageHandler","$f394e9ac486578e6$var$_window","$f394e9ac486578e6$var$_isWorker","$f394e9ac486578e6$var$__getActiveServiceWorker","serviceWorker","registration","active","$f394e9ac486578e6$var$DB_NAME","$f394e9ac486578e6$var$DB_OBJECTSTORE_NAME","$f394e9ac486578e6$var$DB_DATA_KEYPATH","$f394e9ac486578e6$var$DBPromise","DBPromise","$f394e9ac486578e6$var$getObjectStore","isReadWrite","$f394e9ac486578e6$var$_openDatabase","keyPath","toPromise","$f394e9ac486578e6$var$_putObject","$f394e9ac486578e6$var$__putObject","_obj","$f394e9ac486578e6$var$_getObject","$f394e9ac486578e6$var$_deleteObject","$f394e9ac486578e6$var$IndexedDBLocalPersistence","IndexedDBLocalPersistence","pendingWrites","sender","serviceWorkerReceiverAvailable","activeServiceWorker","_workerInitializationPromise","initializeServiceWorkerMessaging","numAttempts","_openDb","initializeReceiver","initializeSender","_getInstance","_subscribe","_origin","_poll","keyProcessed","_data","results","$f394e9ac486578e6$var$_getActiveServiceWorker","_send","$f394e9ac486578e6$var$_getServiceWorkerController","controller","write","_withPendingWrite","_withRetries","notifyServiceWorker","$f394e9ac486578e6$var$getObject","keysInResult","localKey","getAll","fbase_key","$f394e9ac486578e6$var$__verifyPhoneNumber","recaptchaToken","phoneInfoOptions","session","phoneEnrollmentInfo","phoneSessionInfo","multiFactorHint","multiFactorUid","mfaPendingCredential","phoneSignInInfo","response1","phoneResponseInfo","$f394e9ac486578e6$var$sendPhoneVerificationCode","_reset","$f394e9ac486578e6$export$56c0d5a1e737357d","PhoneAuthProvider","phoneOptions","applicationVerifier","$f394e9ac486578e6$var$_verifyPhoneNumber","_fromVerification","_fromTokenResponse","$f394e9ac486578e6$var$_withDefaultResolver","resolverOverride","PHONE_SIGN_IN_METHOD","$f394e9ac486578e6$var$IdpCredential","IdpCredential","_buildIdpRequest","sessionId","returnIdpCredential","$f394e9ac486578e6$var$_signIn","$f394e9ac486578e6$var$_signInWithCredential","$f394e9ac486578e6$var$_reauth","$f394e9ac486578e6$var$_reauthenticate","$f394e9ac486578e6$var$_link","$f394e9ac486578e6$var$__link","$f394e9ac486578e6$var$_link$1","$f394e9ac486578e6$var$AbstractPopupRedirectOperation","AbstractPopupRedirectOperation","pendingPromise","eventManager","onExecution","registerConsumer","urlResponse","getIdpTask","unregisterAndCleanUp","unregisterConsumer","cleanUp","$f394e9ac486578e6$var$_POLL_WINDOW_CLOSE_TIMEOUT","$f394e9ac486578e6$export$db3b6bfb95261072","$f394e9ac486578e6$var$_signInWithPopup","authInternal","resolverInternal","$f394e9ac486578e6$var$_assertInstanceOf","constructorInstance","$f394e9ac486578e6$var$PopupOperation","executeNotNull","PopupOperation","authWindow","pollId","currentPopupAction","cancel","_openPopup","associatedEvent","_originValidation","_isIframeWebStorageSupported","isSupported","pollUserCancellation","closed","$f394e9ac486578e6$var$redirectOutcomeMap","$f394e9ac486578e6$var$RedirectAction","RedirectAction","readyOutcome","$f394e9ac486578e6$var$_getAndClearPendingRedirectStatus","$f394e9ac486578e6$var$__getAndClearPendingRedirectStatus","_superprop_get_execute","_superprop_get_onAuthEvent","_redirectUserForId","hasPendingRedirect","$f394e9ac486578e6$export$a33b77bbdbb8366c","$f394e9ac486578e6$export$53a70dd1ebbae346","resolverExtern","$f394e9ac486578e6$var$__getRedirectResult","$f394e9ac486578e6$export$24baa2b76016ce0e","AuthEventManager","cachedEventUids","consumers","queuedRedirectEvent","hasHandledPotentialRedirect","lastProcessedEventTime","authEventConsumer","isEventForConsumer","sendToConsumer","saveEventToCache","hasEventBeenHandled","handled","consumer","$f394e9ac486578e6$var$isRedirectEvent","$f394e9ac486578e6$var$isNullRedirectEvent","onAuthEvent","eventIdMatches","$f394e9ac486578e6$var$eventUid","$f394e9ac486578e6$var$__getProjectConfig","$f394e9ac486578e6$var$IP_ADDRESS_REGEX","$f394e9ac486578e6$var$HTTP_REGEX","$f394e9ac486578e6$var$__validateOrigin","authorizedDomains","domain","$f394e9ac486578e6$export$3d12bd131bb975d1","$f394e9ac486578e6$var$matchDomain","expected","currentUrl","hostname","ceUrl","escapedDomainPattern","re","RegExp","$f394e9ac486578e6$var$NETWORK_TIMEOUT","$f394e9ac486578e6$var$resetUnloadedGapiModules","beacon","___jsl","hint","CP","$f394e9ac486578e6$var$cachedGApiLoader","$f394e9ac486578e6$var$PING_TIMEOUT","$f394e9ac486578e6$var$IFRAME_ATTRIBUTES","position","tabindex","$f394e9ac486578e6$var$EID_FROM_APIHOST","$f394e9ac486578e6$var$__openIframe","context","gapi1","eid","loadGapiIframe","gapi","load","iframes","ontimeout","Iframe","cbName","where","fw","messageHandlersFilter","CROSS_ORIGIN_IFRAMES_FILTER","dontclear","iframe","networkError","networkErrorTimer","clearTimerAndResolve","restyle","setHideOnLeave","ping","$f394e9ac486578e6$var$BASE_POPUP_OPTIONS","resizable","statusbar","toolbar","$f394e9ac486578e6$export$c03999cb2f36933f","AuthPopup","window1","$f394e9ac486578e6$var$FIREBASE_APP_CHECK_FRAGMENT_ID","$f394e9ac486578e6$export$28f7fcd39efa255","authType","redirectUrl","additionalParams","$f394e9ac486578e6$var$__getRedirectUrl","paramsDict","key1","appCheckTokenFragment","setDefaultLanguage","getCustomParameters","getScopes","tid","$f394e9ac486578e6$var$WEB_STORAGE_SUPPORT_KEY","$f394e9ac486578e6$var$BrowserPopupRedirectResolver","BrowserPopupRedirectResolver","eventManagers","originValidationPromises","$f394e9ac486578e6$var$_open","screen","availHeight","left","availWidth","scrollbars","optionsString","reduce","accum","_param","$f394e9ac486578e6$var$_isIOSStandalone","standalone","createEvent","initMouseEvent","dispatchEvent","newWin","_this_eventManagers_key","promise1","initAndGetManager","$f394e9ac486578e6$var$_openIframe","iframeEvent","authEvent","onEvent","send","$f394e9ac486578e6$var$_validateOrigin","$f394e9ac486578e6$var$MultiFactorAssertionImpl","MultiFactorAssertionImpl","_finalizeEnroll","_finalizeSignIn","$f394e9ac486578e6$var$PhoneMultiFactorAssertionImpl","PhoneMultiFactorAssertionImpl","phoneVerificationInfo","$f394e9ac486578e6$export$953cecd6e717a553","PhoneMultiFactorGenerator","_fromCredential","FACTOR_ID","$f394e9ac486578e6$export$971d5caa766a69d7","TotpMultiFactorGenerator","oneTimePassword","$f394e9ac486578e6$var$TotpMultiFactorAssertionImpl","_fromSecret","enrollmentId","_fromEnrollmentId","mfaSession","totpEnrollmentInfo","$f394e9ac486578e6$export$7ccc53e8f1e7dfc5","_fromStartTotpMfaEnrollmentResponse","TotpMultiFactorAssertionImpl","otp","totpVerificationInfo","_makeTotpVerificationInfo","TotpSecret","secretKey","hashingAlgorithm","codeLength","codeIntervalSeconds","enrollmentCompletionDeadline","accountName","issuer","useDefaults","$f394e9ac486578e6$var$_isEmptyString","totpSessionInfo","sharedSecretKey","verificationCodeLength","periodSec","finalizeEnrollmentTime","$f394e9ac486578e6$var$name","$f394e9ac486578e6$var$version","$f394e9ac486578e6$var$AuthInterop","AuthInterop","internalListeners","assertAuthConfigured","onIdTokenChanged","updateProactiveRefresh","$f394e9ac486578e6$var$authIdTokenMaxAge","$f394e9ac486578e6$var$lastPostedIdToken","$f394e9ac486578e6$var$mintCookieFactory","idTokenResult","idTokenAge","getIdTokenResult","hierarchy","deps","_app_options","_updateErrorMap","_initializeWithPersistence","setInstantiationMode","setInstanceCreatedCallback","_instanceIdentifier","_instance","authInternalProvider","initialize","$f394e9ac486578e6$var$getVersionForPlatform","$2def1c290218f6e6$exports","getBundleURL","$52be3ae126f6a93a$exports","$3b9044c4cf843e9c$exports","F2","F3","F4","F5","F6","F7","F9","A5","A6","A7","_$e","Zn","Qn","lastIndexOf","tr","isFinite","nr","rr","er","qe","_$s","_$l","FileList","ur","ar","cr","ir","or","sr","fr","lr","dr","br","yr","pr","gr","vr","hr","mr","wr","$r","Er","Ar","Lr","xr","Sr","Nr","kr","Rr","qr","Ir","_$n","Cr","Dr","Or","Ur","_$i","splice","Pr","Mr","Br","Gr","jr","Hr","Fr","an","Vr","_r","Wr","Yr","zr","Kr","Xr","Jr","Qr","Zr","rn","nn","en","tn","un","cn","createTextNode","elm_event_node_ref","sn","createElementNS","bn","elmFs","pn","cc","bx","stopPropagation","bu","preventDefault","passive","ln","removeAttribute","dn","setAttributeNS","removeAttributeNS","vn","hn","_$t","_$b","_$g","mn","wn","$n","yn","Tn","An","En","Rn","flags","_$u","Tr","c7","$7","bv","dp","kn","nodeType","textContent","childNodes","qn","aa","Ln","xn","Sn","Nn","replaceChild","replaceData","createDocumentFragment","bj","cancelAnimationFrame","requestAnimationFrame","In","Dn","history","pushState","Cn","On","Un","Pn","Mn","Bn","Gn","jn","Hn","c0","XMLHttpRequest","Vc","Yc","Fc","jc","cM","responseURL","dl","dm","statusText","Fn","Zt","Eu","zc","getAllResponseHeaders","aA","upload","Kc","Wc","dk","loaded","cB","total","lengthComputable","Hc","setRequestHeader","responseType","withCredentials","cV","abort","Vn","Wn","Yn","File","zn","bE","Kn","Xn","lastIndex","exec","oh","Jn","ee","ve","ye","we","Te","Ae","Le","xe","Se","Ne","ke","Re","Ie","De","Ce","Oe","_$r","Pe","Me","Be","Ge","je","He","Fe","We","ze","Ke","Xe","Qe","Ze","bY","b$","dd","cj","cp","kt","Ut","Task","jt","Ht","_t","bp","bU","ru","nu","eu","tu","au","cu","iu","ou","fu","lu","du","pu","gu","vu","hu","mu","yu","wu","$u","Tu","Au","Lu","bd","xu","Su","Nu","ku","qu","Iu","Du","Cu","Ou","Uu","Pu","Mu","Bu","Gu","ju","Hu","Fu","Vu","_u","Wu","Yu","zu","co","cq","Ku","Xu","bC","bN","bR","cI","Ju","Qu","Zu","na","a7","ba","bf","bk","bl","ea","ca","cs","ta","ia","oa","sa","fa","da","a0","a6","bb","bc","bg","bh","pa","ga","va","bM","cL","ha","ma","ya","$a","Ea","bI","cY","cl","cy","Ta","Aa","La","Sa","Na","Ra","qa","Ia","Ca","Oa","Ua","Ma","Ba","Pa","Da","ka","ja","Ga","Ha","Fa","Ya","za","Ka","Ja","Qa","rc","ec","tc","uc","ac","ic","oc","sc","fc","lc","dc","pc","gc","vc","hc","yc","wc","Ec","Xa","Tc","Ac","Lc","xc","Sc","Nc","kc","qc","Ic","Dc","Cc","Oc","Uc","Pc","bB","bS","b3","cf","ch","cG","cJ","cN","Mc","bG","bK","bL","b8","b9","ck","Bc","Gc","Xc","Jc","Qc","Zc","ni","ri","ei","ti","ai","ci","ii","oi","al","aH","aN","aO","si","fi","li","bi","pi","gi","vi","hi","mi","yi","wi","$i","Ei","Ti","Ai","Li","xi","Si","ra","Ni","Ri","Ii","Ci","Oi","Ui","Pi","Bi","Gi","ji","Hi","Fi","Wi","Yi","zi","Ki","Xi","Ji","Qi","Zi","ro","no","eo","cv","cF","to","uo","ao","io","oo","so","fo","lo","bo","Http","po","mo","yo","wo","$o","Eo","To","Ao","Lo","So","No","ko","Io","Uo","Po","Mo","Bo","Go","jo","Ho","Fo","Vo","_o","Wo","Yo","zo","Ko","Jo","Qo","Zo","rs","ns","bw","es","ts","bP","cd","cT","us","as","is","os","ss","fs","ls","ds","bs","ps","vs","hs","ms","ws","Es","Ts","As","xs","Ss","Ns","ks","Rs","Is","FormData","append","Ds","Cs","Os","aG","ak","ab","ax","_$B","_$G","af","Us","Ps","Bs","Gs","Di","js","Hs","Fs","Ws","Ys","zs","Ks","Xs","Js","Qs","Zs","nf","ef","tf","uf","sf","ff","lf","gf","vf","hf","mf","yf","wf","$f","Ef","trim","Tf","Nf","kf","Rf","qf","If","Df","Cf","Of","Uf","Pf","Mf","Bf","Gf","jf","Ff","Wf","Yf","Kf","Xf","Jf","Qf","Zf","rl","nl","tl","ul","il","ol","sl","ll","qi","pl","gl","hl","ml","wl","$l","El","Tl","Al","Ll","xl","Sl","Nl","kl","Il","Dl","Cl","Ul","Pl","Bl","Gl","jl","Hl","Fl","Vl","Wl","Yl","zl","Kl","Xl","Jl","Ql","Zl","rd","nd","ed","ap","td","ud","aE","aK","ad","aC","aF","aI","aJ","aP","aQ","aR","aS","aT","aU","aV","od","cZ","dg","sd","fd","ld","pd","gd","vd","hd","md","yd","wd","$d","Td","ho","be","xd","Sd","Nd","cU","df","kd","Rd","qd","Id","Dd","Cd","Ud","Pd","Md","Bd","Gd","jd","Hd","Fd","Vd","Wd","Yd","zd","Kd","Xd","Jd","Qd","Zd","bQ","b5","bT","rb","nb","b4","eb","tb","ub","ib","ob","sb","lb","fb","pb","gb","vb","mb","yb","wb","Eb","Tb","Ab","Lb","xb","Sb","kb","Rb","qb","Ib","Db","Cb","Ob","Ub","Pb","Ye","Mb","Bb","Gb","jb","Hb","Fb","Vb","Wb","Yb","zb","Kb","Xb","Jb","Qb","Zb","rp","np","ep","tp","up","ip","sp","fp","lp","pp","gp","vp","hp","mp","yp","wp","$p","Ep","Tp","Ap","Lp","xp","Sp","Np","kp","Rp","qp","Ip","Dp","Cp","Op","Up","Mp","Bp","Gp","jp","Hp","Fp","Vp","_p","Wp","Yp","zp","Kp","Xp","Jp","Qp","Zp","rg","ng","eg","tg","ug","ag","cg","ig","og","sg","fg","lg","pg","gg","vg","hg","mg","yg","wg","$g","Eg","Tg","Ag","Lg","xg","Sg","Ng","kg","Rg","qg","Ig","Dg","Cg","Og","Ug","Pg","Mg","Bg","Gg","Fg","Wg","Yg","zg","Kg","Xg","Jg","bD","bW","bX","b_","c8","Qg","Zg","nv","ev","tv","uv","av","iv","sv","fv","dv","lv","pv","gv","vv","hv","mv","yv","wv","$v","Ev","Av","Lv","xv","Sv","Nv","kv","Rv","qv","Iv","Dv","Cv","Ov","Uv","Pv","Mv","Bv","Gv","jv","Hv","Fv","Vv","_v","Wv","Yv","zv","Xv","Jv","Qv","Zv","rh","nh","eh","th","uh","ah","ih","toUpperCase","c6","aM","c9","cE","lh","dh","sh","ph","gh","vh","hh","mh","yh","wh","$h","Eh","Th","Lh","xh","Sh","Nh","kh","Rh","qh","Ih","Dh","Ch","Ph","Mh","Bh","Gh","jh","Hh","Fh","Vh","Yh","zh","Kh","Xh","Jh","Qh","Zh","rm","em","tm","am","cm","im","om","sm","fm","lm","bm","pm","gm","vm","hm","mm","ym","wm","$m","Em","Tm","Am","Lm","xm","Sm","Nm","km","qm","Im","Rm","Dm","Cm","Om","Um","Pm","Mm","Bm","Gm","jm","Hm","Fm","Vm","_m","Wm","Ym","zm","Km","Jm","Xm","Qm","Zm","ry","ny","ey","ay","iy","oy","sy","fy","ly","dy","by","py","gy","vy","hy","my","wy","yy","$y","Ey","Ty","Ay","Ly","xy","Sy","Ny","bO","ky","Ry","Iy","qy","Dy","Cy","Oy","Uy","Py","My","By","jy","Hy","Fy","Vy","Wy","Yy","zy","Ky","Xy","Jy","Qy","Zy","rw","nw","ew","tw","uw","cw","iw","ow","dw","pw","gw","hw","yw","ww","$w","Ew","Aw","Lw","xw","Sw","Nw","kw","Rw","qw","Dw","Cw","Mw","Gw","jw","Hw","Fw","Vw","_w","Ww","Yw","zw","Kw","Xw","Jw","Qw","Zw","r$","n$","e$","t$","u$","a$","c$","i$","o$","s$","f$","l$","p$","g$","v$","h$","m$","y$","w$","$$","E$","T$","A$","x$","S$","N$","k$","R$","q$","aL","aq","a9","I$","D$","C$","O$","U$","P$","M$","B$","G$","j$","H$","F$","V$","_$","W$","Y$","z$","K$","X$","J$","Q$","Z$","rE","nE","eE","tE","uE","iE","oE","sE","fE","lE","dE","pE","vE","hE","mE","yE","wE","$E","EE","TE","AE","LE","xE","SE","NE","kE","RE","qE","IE","DE","CE","OE","UE","PE","ME","BE","GE","jE","HE","FE","VE","_E","WE","YE","zE","KE","XE","JE","QE","ZE","rT","nT","eT","tT","uT","iT","oT","sT","fT","lT","dT","pT","gT","vT","mT","yT","wT","$T","ET","TT","AT","LT","xT","ST","kT","RT","qT","IT","DT","CT","UT","PT","Main","MT","Ms","ctrlKey","metaKey","shiftKey","button","hasAttribute","Elm","$be2146e60594208e$var$firebaseConfig","production","projectId","storageBucket","messagingSenderId","default","$be2146e60594208e$var$appPrefix","$be2146e60594208e$var$cookieKey","$be2146e60594208e$var$langKey","$be2146e60594208e$var$providerGoogle","$be2146e60594208e$var$providerFacebook","$be2146e60594208e$var$auth","disableWarnings","_extractHostAndPort","$f394e9ac486578e6$export$b4171a6734a65d42","getOptions","authTokenSyncUrl","mintCookie","beforeAuthStateChanged","authEmulatorHost","$f394e9ac486578e6$var$extractHostAndPort","authority","hostAndPort","bracketedIPv6","_hostAndPort_split","freeze","$f394e9ac486578e6$var$emitEmulatorWarning","attachBanner","sty","innerText","backgroundColor","border","margin","zIndex","textAlign","readyState","$be2146e60594208e$var$app","node","getElementById","lang","domainURL","logoURL","bannerURL","$be2146e60594208e$var$getMe","$be2146e60594208e$var$_getMe","credentials","Authorization","signInWithGoogle","signedInUser","signedIn","signInWithFacebook","setLang","right","padding","display","$be2146e60594208e$var$noticeContainer","fontSize","overflowX","$be2146e60594208e$var$noticeText","appCompatName","analyticsName","analyticsCompatName","appCheckName","appCheckCompatName","authName","authCompatName","databaseName","databaseCompatName","functionsName","functionsCompatName","installationsName","installationsCompatName","messagingName","messagingCompatName","performanceName","performanceCompatName","remoteConfigName","remoteConfigCompatName","storageName","storageCompatName","firestoreName","firestoreCompatName","packageName","setLogLevelImpl","stringToByteArray","jsHelpers\r\n ._loadJS","applyActionCode","sendEmailVerification","sendPasswordResetEmail","sendSignInLinkToEmail","signInWithEmailLink","IDP_REQUEST_URI","signInWithPhoneNumber","linkWithPhoneNumber","_link","signInWithCustomToken","getIdTokenResponse","authentication.sendPasswordResetEmail","account\r\n .resetPassword","account.applyActionCode","account.resetPassword","api.sendSignInLinkToEmail","api.sendEmailVerification","api.verifyAndChangeEmail","updateProfile","apiUpdateProfile","apiUpdateEmailPassword","_POLLING_INTERVAL_MS","jsHelpers._generateCallbackName","jsHelpers._loadJS","_linkUser","js._generateCallbackName","js\r\n ._loadJS","gapiLoader._loadGapi"],"version":3,"file":"index.719e04a5.js.map"}